var $wnd = $wnd || window.parent; var __gwtModuleFunction = $wnd.circuitjs1; var $sendStats = __gwtModuleFunction.__sendStats; $sendStats('moduleStartup', 'moduleEvalStart'); var $gwt_version = "2.8.2"; var $strongName = 'D4B0A4D2B21470577B4DC7B4A8A76F45'; 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 = 2147483647, $intern_1 = 3.141592653589793, $intern_2 = 6.283185307179586, $intern_3 = {3:1, 4:1, 6:1}, $intern_4 = {28:1, 25:1, 27:1, 23:1, 29:1, 22:1, 24:1}, $intern_5 = {71:1, 119:1, 94:1, 122:1, 85:1, 98:1, 121:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 120:1, 96:1, 97:1, 95:1, 124:1, 125:1, 123:1, 86:1, 90:1, 88:1, 89:1, 87:1, 91:1, 102:1, 101:1, 100:1, 99:1, 28:1, 25:1, 27:1, 82:1, 116:1, 105:1, 115:1, 23:1, 29:1, 92:1, 117:1, 118:1, 93:1, 22:1, 24:1}, $intern_6 = {3:1, 42:1}, $intern_7 = {3:1, 13:1, 42:1}, $intern_8 = 65535, $intern_9 = {150:1, 30:1, 3:1, 16:1, 15:1}, $intern_10 = {46:1, 30:1, 3:1, 16:1, 15:1}, $intern_11 = {45:1, 30:1, 3:1, 16:1, 15:1}, $intern_12 = {161:1, 30:1, 3:1, 16:1, 15:1}, $intern_13 = {30:1, 162:1, 3:1, 16:1, 15:1}, $intern_14 = {30:1, 163:1, 3:1, 16:1, 15:1}, $intern_15 = {30:1, 164:1, 3:1, 16:1, 15:1}, $intern_16 = {103:1, 3:1, 16:1, 15:1}, $intern_17 = {30:1, 218:1, 3:1, 16:1, 15:1}, $intern_18 = {30:1, 151:1, 3:1, 16:1, 15:1}, $intern_19 = {217:1, 3:1, 13:1, 42:1}, $intern_20 = {156:1, 3:1, 13:1, 42:1}, $intern_21 = {3:1, 4:1}, $intern_22 = 1000, $intern_23 = {3:1, 4:1, 6:1, 41:1}, $intern_24 = 1024, $intern_25 = {17:1, 3:1, 4:1}, $intern_26 = Infinity, $intern_27 = 4194303, $intern_28 = 1048575, $intern_29 = 524288, $intern_30 = 4194304, $intern_31 = 17592186044416, $intern_32 = 1000000000, $intern_33 = -17592186044416, $intern_34 = 0.01, $intern_35 = {458:1, 3:1}, $intern_36 = 0.02, $intern_37 = {956:1, 11:1}, $intern_38 = {957:1, 11:1}, $intern_39 = {958:1, 11:1}, $intern_40 = {11:1, 954:1}, $intern_41 = {250:1, 11:1}, $intern_42 = 4096, $intern_43 = 2048, $intern_44 = 16384, $intern_45 = 65536, $intern_46 = 131072, $intern_47 = 262144, $intern_48 = 1048576, $intern_49 = 2097152, $intern_50 = 8388608, $intern_51 = 16777216, $intern_52 = 33554432, $intern_53 = 67108864, $intern_54 = {28:1, 25:1, 27:1, 23:1, 44:1, 29:1, 22:1, 24:1, 36:1}, $intern_55 = {172:1, 71:1, 119:1, 94:1, 122:1, 85:1, 98:1, 121:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 120:1, 96:1, 97:1, 95:1, 124:1, 125:1, 123:1, 86:1, 90:1, 88:1, 89:1, 87:1, 91:1, 102:1, 101:1, 100:1, 99:1, 28:1, 210:1, 25:1, 134:1, 60:1, 27:1, 230:1, 190:1, 166:1, 82:1, 116:1, 248:1, 206:1, 105:1, 115:1, 59:1, 146:1, 50:1, 229:1, 23:1, 196:1, 29:1, 92:1, 117:1, 118:1, 93:1, 22:1, 24:1}, $intern_56 = {37:1, 11:1}, $intern_57 = {28:1, 64:1, 25:1, 27:1, 67:1, 23:1, 44:1, 29:1, 48:1, 22:1, 24:1, 36:1}, $intern_58 = {28:1, 64:1, 25:1, 60:1, 27:1, 67:1, 59:1, 50:1, 23:1, 44:1, 29:1, 48:1, 22:1, 24:1, 36:1, 107:1}, $intern_59 = {172:1, 71:1, 94:1, 85:1, 98:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 96:1, 97:1, 95:1, 86:1, 90:1, 88:1, 89:1, 87:1, 91:1, 102:1, 101:1, 100:1, 99:1, 28:1, 25:1, 207:1, 134:1, 27:1, 315:1, 206:1, 227:1, 50:1, 23:1, 196:1, 29:1, 33:1, 176:1, 92:1, 93:1, 22:1, 24:1}, $intern_60 = {172:1, 71:1, 94:1, 85:1, 98:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 96:1, 97:1, 95:1, 86:1, 90:1, 88:1, 89:1, 87:1, 91:1, 102:1, 101:1, 100:1, 99:1, 28:1, 25:1, 207:1, 134:1, 60:1, 27:1, 315:1, 248:1, 206:1, 59:1, 227:1, 50:1, 23:1, 196:1, 29:1, 33:1, 176:1, 92:1, 93:1, 22:1, 24:1}, $intern_61 = {28:1, 25:1, 27:1, 23:1, 44:1, 29:1, 209:1, 22:1, 24:1, 36:1}, $intern_62 = {71:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 28:1, 25:1, 27:1, 23:1, 44:1, 29:1, 22:1, 24:1, 36:1}, $intern_63 = {28:1, 25:1, 27:1, 227:1, 23:1, 44:1, 29:1, 22:1, 24:1, 36:1}, $intern_64 = {71:1, 119:1, 94:1, 122:1, 85:1, 98:1, 121:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 120:1, 96:1, 97:1, 95:1, 124:1, 125:1, 123:1, 86:1, 90:1, 88:1, 89:1, 87:1, 91:1, 102:1, 101:1, 100:1, 99:1, 28:1, 25:1, 134:1, 27:1, 82:1, 116:1, 105:1, 115:1, 146:1, 23:1, 29:1, 92:1, 117:1, 118:1, 93:1, 22:1, 24:1}, $intern_65 = {959:1, 11:1}, $intern_66 = {28:1, 64:1, 25:1, 27:1, 67:1, 23:1, 29:1, 58:1, 999:1, 22:1, 24:1, 107:1}, $intern_67 = {60:1, 105:1, 59:1, 50:1, 23:1, 40:1, 22:1}, $intern_68 = {139:1, 11:1}, $intern_69 = {28:1, 25:1, 27:1, 23:1, 44:1, 29:1, 289:1, 22:1, 24:1, 36:1}, $intern_70 = {172:1, 71:1, 119:1, 94:1, 122:1, 85:1, 98:1, 121:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 120:1, 96:1, 97:1, 95:1, 124:1, 125:1, 123:1, 86:1, 90:1, 88:1, 89:1, 87:1, 91:1, 102:1, 101:1, 100:1, 99:1, 28:1, 210:1, 25:1, 207:1, 134:1, 27:1, 230:1, 82:1, 116:1, 105:1, 115:1, 146:1, 50:1, 229:1, 23:1, 29:1, 92:1, 117:1, 118:1, 93:1, 22:1, 24:1}, $intern_71 = {155:1, 11:1}, $intern_72 = {168:1, 3:1, 16:1, 15:1}, $intern_73 = {36:1}, $intern_74 = {128:1}, $intern_75 = {1003:1, 128:1}, $intern_76 = {12:1, 3:1, 4:1}, $intern_77 = 0.48, $intern_78 = {80:1, 3:1, 4:1, 6:1}, $intern_79 = 1.0E-14, $intern_80 = 1.0E-9, $intern_81 = 1000000000000, $intern_82 = 1.0E-6, $intern_83 = 0.001, $intern_84 = 1000000, $intern_85 = {8:1, 10:1}, $intern_86 = 0.6366197723675814, $intern_87 = 1.0E-4, $intern_88 = 10000, $intern_89 = 1.5707963267948966, $intern_90 = 0.15915494309189535, $intern_91 = {8:1, 10:1, 56:1}, $intern_92 = {8:1, 10:1, 47:1, 56:1}, $intern_93 = 1.7976931348623157E308, $intern_94 = 10000000000, $intern_95 = {26:1, 3:1, 4:1}, $intern_96 = -1.5707963267948966, $intern_97 = 100000000, $intern_98 = 4294901760, $intern_99 = {8:1, 10:1, 133:1}, $intern_100 = {8:1, 10:1, 61:1}, $intern_101 = -1.0E-6, $intern_102 = 1.0E-12, $intern_103 = {143:1, 8:1, 10:1}, $intern_104 = -30000, $intern_105 = {8:1, 202:1, 10:1}, $intern_106 = 1.0471975511965976, $intern_107 = 2.0943951023931953, $intern_108 = 38.662284941040014, $intern_109 = 0.025865, $intern_110 = {8:1, 154:1, 10:1}, $intern_111 = 1.7143528192808883E-7, $intern_112 = 1.0E-8, $intern_113 = -2147483648, $intern_114 = 1.0E-15, $intern_115 = {208:1, 11:1}, $intern_116 = {173:1, 11:1}, $intern_117 = {155:1, 71:1, 119:1, 94:1, 122:1, 85:1, 98:1, 121:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 120:1, 96:1, 97:1, 95:1, 124:1, 125:1, 123:1, 86:1, 90:1, 88:1, 89:1, 87:1, 91:1, 102:1, 101:1, 100:1, 99:1, 28:1, 11:1, 25:1, 27:1, 82:1, 116:1, 105:1, 115:1, 146:1, 23:1, 29:1, 92:1, 117:1, 118:1, 93:1, 22:1, 24:1}, $intern_118 = 0.3333, $intern_119 = 0.6666, $intern_120 = 100000, $intern_121 = {131:1, 11:1, 8:1, 10:1, 129:1}, $intern_122 = 0.16666666666666666, $intern_123 = {131:1, 11:1, 8:1, 10:1, 185:1, 129:1}, $intern_124 = 0.0099, $intern_125 = {131:1, 11:1, 8:1, 10:1}, $intern_126 = {131:1, 11:1, 8:1, 10:1, 153:1}, $intern_127 = 0.8297872340425532, $intern_128 = 0.0231, $intern_129 = 0.005, $intern_130 = 0.0625, $intern_131 = 0.499, $intern_132 = {208:1, 173:1, 131:1, 28:1, 64:1, 11:1, 25:1, 27:1, 67:1, 23:1, 44:1, 29:1, 48:1, 22:1, 24:1, 36:1}, $intern_133 = {228:1, 11:1}, $intern_134 = 3.7E-4, $intern_135 = 0.0047, $intern_136 = -20.192307692307693, $intern_137 = 4294967295, $intern_138 = {8:1, 10:1, 195:1}, $intern_139 = {16:1, 212:1}, $intern_140 = {36:1, 149:1, 171:1}, $intern_141 = {36:1, 149:1, 171:1, 313:1}, $intern_142 = {247:1}, $intern_143 = 15525485, $intern_144 = 5.9604644775390625E-8; var _, prototypesByTypeId_0, initFnList_0, permutationId = -1; 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; i < initFnList.length; i++) { initFnList[i](); } } 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; i < arguments.length; i++) { initFnList.push(arguments[i]); } } function typeMarkerFn(){ } function toString_9(object){ var number; if (Array.isArray(object) && object.typeMarker === typeMarkerFn) { return $getName(getClass__Ljava_lang_Class___devirtual$(object)) + '@' + (number = hashCode__I__devirtual$(object) >>> 0 , number.toString(16)); } return object.toString(); } function portableObjCreate(obj){ function F(){ } ; F.prototype = obj || {}; return new F; } function emptyMethod(){ } function defineClass(typeId, superTypeIdOrPrototype, castableTypeMap){ var prototypesByTypeId = prototypesByTypeId_0, superPrototype; var prototype_0 = prototypesByTypeId[typeId]; var clazz = prototype_0 instanceof Array?prototype_0[0]:null; if (prototype_0 && !clazz) { _ = prototype_0; } else { _ = (superPrototype = superTypeIdOrPrototype && superTypeIdOrPrototype.prototype , !superPrototype && (superPrototype = prototypesByTypeId_0[superTypeIdOrPrototype]) , portableObjCreate(superPrototype)); _.castableTypeMap = castableTypeMap; !superTypeIdOrPrototype && (_.typeMarker = typeMarkerFn); prototypesByTypeId[typeId] = _; } for (var i = 3; i < arguments.length; ++i) { arguments[i].prototype = _; } clazz && (_.___clazz = clazz); } function bootstrap(){ prototypesByTypeId_0 = {}; !Array.isArray && (Array.isArray = function(vArg){ return Object.prototype.toString.call(vArg) === '[object Array]'; } ); function now_0(){ return (new Date).getTime(); } !Date.now && (Date.now = now_0); } bootstrap(); function Object_0(){ } function equals_Ljava_lang_Object__Z__devirtual$(this$static, other){ return instanceOfString(this$static)?$equals_1(this$static, other):instanceOfDouble(this$static)?(checkCriticalNotNull(this$static) , this$static === other):instanceOfBoolean(this$static)?(checkCriticalNotNull(this$static) , this$static === other):hasJavaObjectVirtualDispatch(this$static)?this$static.equals_0(other):isJavaArray(this$static)?this$static === other:!!this$static && !!this$static.equals?this$static.equals(other):maskUndefined(this$static) === maskUndefined(other); } function getClass__Ljava_lang_Class___devirtual$(this$static){ return instanceOfString(this$static)?Ljava_lang_String_2_classLit:instanceOfDouble(this$static)?Ljava_lang_Double_2_classLit:instanceOfBoolean(this$static)?Ljava_lang_Boolean_2_classLit:hasJavaObjectVirtualDispatch(this$static)?this$static.___clazz:isJavaArray(this$static)?this$static.___clazz:this$static.___clazz || Array.isArray(this$static) && getClassLiteralForArray(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, 1) || Lcom_google_gwt_core_client_JavaScriptObject_2_classLit; } function hashCode__I__devirtual$(this$static){ return instanceOfString(this$static)?getHashCode_0(this$static):instanceOfDouble(this$static)?round_int((checkCriticalNotNull(this$static) , this$static)):instanceOfBoolean(this$static)?(checkCriticalNotNull(this$static) , this$static)?1231:1237:hasJavaObjectVirtualDispatch(this$static)?this$static.hashCode_0():isJavaArray(this$static)?getHashCode(this$static):$hashCode(this$static); } defineClass(1, null, {}, Object_0); _.equals_0 = function equals(other){ return this === other; } ; _.getClass_0 = function getClass_0(){ return this.___clazz; } ; _.hashCode_0 = function hashCode_0(){ return getHashCode(this); } ; _.toString_0 = function toString_0(){ var number; return $getName(getClass__Ljava_lang_Class___devirtual$(this)) + '@' + (number = hashCode__I__devirtual$(this) >>> 0 , number.toString(16)); } ; _.equals = function(other){ return this.equals_0(other); } ; _.hashCode = function(){ return this.hashCode_0(); } ; _.toString = function(){ return this.toString_0(); } ; function canCast(src_0, dstId){ if (instanceOfString(src_0)) { return !!stringCastMap[dstId]; } else if (src_0.castableTypeMap) { return !!src_0.castableTypeMap[dstId]; } else if (instanceOfDouble(src_0)) { return !!doubleCastMap[dstId]; } else if (instanceOfBoolean(src_0)) { return !!booleanCastMap[dstId]; } return false; } function charToString(x_0){ return String.fromCharCode(x_0); } function hasJavaObjectVirtualDispatch(src_0){ return !Array.isArray(src_0) && src_0.typeMarker === typeMarkerFn; } function instanceOf(src_0, dstId){ return src_0 != null && canCast(src_0, dstId); } function instanceOfBoolean(src_0){ return typeof src_0 === 'boolean'; } function instanceOfDouble(src_0){ return typeof src_0 === 'number'; } function instanceOfJso(src_0){ return src_0 != null && (typeof src_0 === 'object' || typeof src_0 === 'function') && !(src_0.typeMarker === typeMarkerFn); } function instanceOfString(src_0){ return typeof src_0 === 'string'; } function maskUndefined(src_0){ return src_0 == null?null:src_0; } function round_int(x_0){ return Math.max(Math.min(x_0, $intern_0), -2147483648) | 0; } var booleanCastMap, doubleCastMap, 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){ var clazz; clazz = createClassObject(packageName, compoundClassName); maybeSetClassLiteral(typeId, clazz); return clazz; } function createForEnum(packageName, compoundClassName, typeId, enumConstantsFunc){ var clazz; clazz = createClassObject(packageName, compoundClassName); maybeSetClassLiteral(typeId, clazz); clazz.modifiers = enumConstantsFunc?8:0; 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; return prototypesByTypeId_0[typeId]; } 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; while (!strings[i] || strings[i] == '') { i++; } var result = strings[i++]; for (; i < strings.length; i++) { if (!strings[i] || strings[i] == '') { continue; } result += separator + strings[i]; } 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(318, 1, {}, Class); _.createClassLiteralForArray = function createClassLiteralForArray(dimensions){ var clazz; clazz = new Class; clazz.modifiers = 4; dimensions > 1?(clazz.componentType = getClassLiteralForArray_0(this, dimensions - 1)):(clazz.componentType = this); return clazz; } ; _.getCanonicalName = function getCanonicalName(){ $ensureNamesAreInitialized(this); return this.canonicalName; } ; _.getName_0 = function getName_0(){ return $getName(this); } ; _.getSimpleName = function getSimpleName(){ return $getSimpleName(this); } ; _.isArray_0 = function isArray(){ return (this.modifiers & 4) != 0; } ; _.isPrimitive = function isPrimitive(){ return (this.modifiers & 1) != 0; } ; _.toString_0 = function toString_25(){ 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); var Ljava_lang_Class_2_classLit = createForClass('java.lang', 'Class', 318); function $cancel(this$static){ if (!this$static.isRunning_0) { return; } this$static.wasStarted = this$static.isStarted; this$static.element = null; this$static.isRunning_0 = false; this$static.isStarted = false; if (this$static.requestHandle) { this$static.requestHandle.cancel(); this$static.requestHandle = null; } this$static.onCancel(); } function $run(this$static, duration, startTime, element){ $cancel(this$static); this$static.isRunning_0 = true; this$static.isStarted = false; this$static.duration = duration; this$static.startTime = startTime; this$static.element = element; ++this$static.runId; $execute(this$static.callback, now_1()); } function $run_0(this$static, duration, element){ $run(this$static, duration, now_1(), element); } 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 + $wnd.Math.cos($intern_1 + progress * $intern_1)) / 2); return this$static.isRunning_0 && this$static.runId == curRunId; } if (!this$static.isStarted && curTime >= this$static.startTime) { this$static.isStarted = true; this$static.onStart(); if (!(this$static.isRunning_0 && this$static.runId == curRunId)) { return false; } } if (finished) { this$static.isRunning_0 = false; this$static.isStarted = false; this$static.onComplete(); return false; } return true; } function Animation(){ Animation_0.call(this, (!instance && (instance = !!$wnd.requestAnimationFrame && !!$wnd.cancelAnimationFrame?new AnimationSchedulerImplStandard:new AnimationSchedulerImplTimer) , instance)); } function Animation_0(scheduler){ this.callback = new Animation$1(this); this.scheduler = scheduler; } defineClass(287, 1, {}); _.onCancel = function onCancel(){ this.wasStarted && this.onComplete(); } ; _.onComplete = function onComplete(){ this.onUpdate((1 + $wnd.Math.cos($intern_2)) / 2); } ; _.onStart = function onStart(){ this.onUpdate((1 + $wnd.Math.cos($intern_1)) / 2); } ; _.duration = -1; _.isRunning_0 = 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', 287); 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(524, 1, {}, Animation$1); _.execute = function execute(timestamp){ $execute(this, timestamp); } ; var Lcom_google_gwt_animation_client_Animation$1_2_classLit = createForClass('com.google.gwt.animation.client', 'Animation/1', 524); defineClass(997, 1, {}); var instance; var Lcom_google_gwt_animation_client_AnimationScheduler_2_classLit = createForClass('com.google.gwt.animation.client', 'AnimationScheduler', 997); defineClass(311, 1, {311:1}); var Lcom_google_gwt_animation_client_AnimationScheduler$AnimationHandle_2_classLit = createForClass('com.google.gwt.animation.client', 'AnimationScheduler/AnimationHandle', 311); 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(940, 997, {}, AnimationSchedulerImplStandard); _.requestAnimationFrame_0 = function requestAnimationFrame_0(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', 940); function AnimationSchedulerImplStandard$1(val$handle){ this.val$handle2 = val$handle; } defineClass(941, 311, {311:1}, AnimationSchedulerImplStandard$1); _.cancel = function cancel(){ cancelImpl(this.val$handle2); } ; var Lcom_google_gwt_animation_client_AnimationSchedulerImplStandard$1_2_classLit = createForClass('com.google.gwt.animation.client', 'AnimationSchedulerImplStandard/1', 941); function $cancelAnimationFrame(this$static, requestId){ $remove_13(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 = initUnidimensionalArray(Lcom_google_gwt_animation_client_AnimationSchedulerImplTimer$AnimationHandleImpl_2_classLit, {1017:1, 3:1, 4:1, 6:1}, 312, this$static.animationRequests.array.length, 0, 1); curAnimations = $toArray_0(this$static.animationRequests, curAnimations); duration = new Duration; for (requestId$index = 0 , requestId$max = curAnimations.length; requestId$index < requestId$max; ++requestId$index) { requestId = curAnimations[requestId$index]; $remove_13(this$static.animationRequests, requestId); $execute(requestId.callback, duration.start_0); } this$static.animationRequests.array.length > 0 && $schedule(this$static.timer, $wnd.Math.max(5, 16 - (now_1() - duration.start_0))); } function AnimationSchedulerImplTimer(){ this.animationRequests = new ArrayList; this.timer = new AnimationSchedulerImplTimer$1(this); } defineClass(942, 997, {}, AnimationSchedulerImplTimer); _.requestAnimationFrame_0 = function requestAnimationFrame_1(callback, element){ var requestId; requestId = new AnimationSchedulerImplTimer$AnimationHandleImpl(this, callback); $add_8(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', 942); 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 toJs(new IllegalArgumentException_0('must be non-negative')); } !!this$static.timerId && $cancel_0(this$static); this$static.isRepeating = false; this$static.timerId = valueOf_0(setTimeout_0(createCallback(this$static, this$static.cancelCounter), delayMillis)); } function $scheduleRepeating(this$static, periodMillis){ if (periodMillis <= 0) { throw toJs(new IllegalArgumentException_0('must be positive')); } !!this$static.timerId && $cancel_0(this$static); this$static.isRepeating = true; this$static.timerId = valueOf_0(setInterval_0(createCallback(this$static, this$static.cancelCounter), periodMillis)); } 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(213, 1, {}); _.fire = function fire(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', 213); function AnimationSchedulerImplTimer$1(this$0){ this.this$01 = this$0; Timer.call(this); } defineClass(943, 213, {}, AnimationSchedulerImplTimer$1); _.run = function run_0(){ $updateAnimations(this.this$01); } ; var Lcom_google_gwt_animation_client_AnimationSchedulerImplTimer$1_2_classLit = createForClass('com.google.gwt.animation.client', 'AnimationSchedulerImplTimer/1', 943); function AnimationSchedulerImplTimer$AnimationHandleImpl(this$0, callback){ this.this$01 = this$0; this.callback = callback; } defineClass(312, 311, {311:1, 312:1}, AnimationSchedulerImplTimer$AnimationHandleImpl); _.cancel = function cancel_0(){ $cancelAnimationFrame(this.this$01, this); } ; var Lcom_google_gwt_animation_client_AnimationSchedulerImplTimer$AnimationHandleImpl_2_classLit = createForClass('com.google.gwt.animation.client', 'AnimationSchedulerImplTimer/AnimationHandleImpl', 312); function $set(this$static, element){ $setAttribute(element, 'role', this$static.roleName); } function $setAriaHaspopupProperty(element, value_0){ $set_0(($clinit_Property() , HASPOPUP), element, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_Boolean_2_classLit, 1), $intern_3, 281, 8, [($clinit_Boolean() , value_0?true:false)])); } function RoleImpl(roleName){ this.roleName = roleName; } defineClass(35, 1, {}); var Lcom_google_gwt_aria_client_RoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'RoleImpl', 35); function AlertRoleImpl(){ RoleImpl.call(this, 'alert'); } defineClass(834, 35, {}, AlertRoleImpl); var Lcom_google_gwt_aria_client_AlertRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'AlertRoleImpl', 834); function AlertdialogRoleImpl(){ RoleImpl.call(this, 'alertdialog'); } defineClass(833, 35, {}, AlertdialogRoleImpl); var Lcom_google_gwt_aria_client_AlertdialogRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'AlertdialogRoleImpl', 833); function ApplicationRoleImpl(){ RoleImpl.call(this, 'application'); } defineClass(835, 35, {}, ApplicationRoleImpl); var Lcom_google_gwt_aria_client_ApplicationRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ApplicationRoleImpl', 835); function $getAriaValue(this$static, value_0){ var buf, item_0, item$index, item$max; buf = new StringBuilder; for (item$index = 0 , item$max = value_0.length; item$index < item$max; ++item$index) { item_0 = value_0[item$index]; $append_4($append_4(buf, this$static.getSingleValue(item_0)), ' '); } return $trim(buf.string); } function $set_0(this$static, element, values){ $setAttribute(element, this$static.name_0, $getAriaValue(this$static, values)); } function Attribute(name_0){ this.name_0 = name_0; } defineClass(450, 1, {}); var Lcom_google_gwt_aria_client_Attribute_2_classLit = createForClass('com.google.gwt.aria.client', 'Attribute', 450); function AriaValueAttribute(name_0){ Attribute.call(this, name_0); } defineClass(111, 450, {}, AriaValueAttribute); _.getSingleValue = function getSingleValue(value_0){ return value_0.id_0; } ; var Lcom_google_gwt_aria_client_AriaValueAttribute_2_classLit = createForClass('com.google.gwt.aria.client', 'AriaValueAttribute', 111); function ArticleRoleImpl(){ RoleImpl.call(this, 'article'); } defineClass(836, 35, {}, ArticleRoleImpl); var Lcom_google_gwt_aria_client_ArticleRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ArticleRoleImpl', 836); function BannerRoleImpl(){ RoleImpl.call(this, 'banner'); } defineClass(837, 35, {}, BannerRoleImpl); var Lcom_google_gwt_aria_client_BannerRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'BannerRoleImpl', 837); function ButtonRoleImpl(){ RoleImpl.call(this, 'button'); } defineClass(838, 35, {}, ButtonRoleImpl); var Lcom_google_gwt_aria_client_ButtonRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ButtonRoleImpl', 838); function CheckboxRoleImpl(){ RoleImpl.call(this, 'checkbox'); } defineClass(839, 35, {}, CheckboxRoleImpl); var Lcom_google_gwt_aria_client_CheckboxRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'CheckboxRoleImpl', 839); function ColumnheaderRoleImpl(){ RoleImpl.call(this, 'columnheader'); } defineClass(840, 35, {}, ColumnheaderRoleImpl); var Lcom_google_gwt_aria_client_ColumnheaderRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ColumnheaderRoleImpl', 840); function ComboboxRoleImpl(){ RoleImpl.call(this, 'combobox'); } defineClass(841, 35, {}, ComboboxRoleImpl); var Lcom_google_gwt_aria_client_ComboboxRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ComboboxRoleImpl', 841); function ComplementaryRoleImpl(){ RoleImpl.call(this, 'complementary'); } defineClass(842, 35, {}, ComplementaryRoleImpl); var Lcom_google_gwt_aria_client_ComplementaryRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ComplementaryRoleImpl', 842); function ContentinfoRoleImpl(){ RoleImpl.call(this, 'contentinfo'); } defineClass(843, 35, {}, ContentinfoRoleImpl); var Lcom_google_gwt_aria_client_ContentinfoRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ContentinfoRoleImpl', 843); function DefinitionRoleImpl(){ RoleImpl.call(this, 'definition'); } defineClass(844, 35, {}, DefinitionRoleImpl); var Lcom_google_gwt_aria_client_DefinitionRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'DefinitionRoleImpl', 844); function DialogRoleImpl(){ RoleImpl.call(this, 'dialog'); } defineClass(845, 35, {}, DialogRoleImpl); var Lcom_google_gwt_aria_client_DialogRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'DialogRoleImpl', 845); function DirectoryRoleImpl(){ RoleImpl.call(this, 'directory'); } defineClass(846, 35, {}, DirectoryRoleImpl); var Lcom_google_gwt_aria_client_DirectoryRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'DirectoryRoleImpl', 846); function DocumentRoleImpl(){ RoleImpl.call(this, 'document'); } defineClass(847, 35, {}, DocumentRoleImpl); var Lcom_google_gwt_aria_client_DocumentRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'DocumentRoleImpl', 847); function FormRoleImpl(){ RoleImpl.call(this, 'form'); } defineClass(848, 35, {}, FormRoleImpl); var Lcom_google_gwt_aria_client_FormRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'FormRoleImpl', 848); function GridRoleImpl(){ RoleImpl.call(this, 'grid'); } defineClass(850, 35, {}, GridRoleImpl); var Lcom_google_gwt_aria_client_GridRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'GridRoleImpl', 850); function GridcellRoleImpl(){ RoleImpl.call(this, 'gridcell'); } defineClass(849, 35, {}, GridcellRoleImpl); var Lcom_google_gwt_aria_client_GridcellRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'GridcellRoleImpl', 849); function GroupRoleImpl(){ RoleImpl.call(this, 'group'); } defineClass(851, 35, {}, GroupRoleImpl); var Lcom_google_gwt_aria_client_GroupRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'GroupRoleImpl', 851); function HeadingRoleImpl(){ RoleImpl.call(this, 'heading'); } defineClass(852, 35, {}, HeadingRoleImpl); var Lcom_google_gwt_aria_client_HeadingRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'HeadingRoleImpl', 852); function $init(this$static, elementId){ this$static.id_0 = elementId; } function Id(element){ $init(this, element.id); } defineClass(302, 1, {1018:1, 302:1}, Id); var Lcom_google_gwt_aria_client_Id_2_classLit = createForClass('com.google.gwt.aria.client', 'Id', 302); function ImgRoleImpl(){ RoleImpl.call(this, 'img'); } defineClass(853, 35, {}, ImgRoleImpl); var Lcom_google_gwt_aria_client_ImgRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ImgRoleImpl', 853); function LinkRoleImpl(){ RoleImpl.call(this, 'link'); } defineClass(854, 35, {}, LinkRoleImpl); var Lcom_google_gwt_aria_client_LinkRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'LinkRoleImpl', 854); function ListRoleImpl(){ RoleImpl.call(this, 'list'); } defineClass(857, 35, {}, ListRoleImpl); var Lcom_google_gwt_aria_client_ListRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ListRoleImpl', 857); function ListboxRoleImpl(){ RoleImpl.call(this, 'listbox'); } defineClass(855, 35, {}, ListboxRoleImpl); var Lcom_google_gwt_aria_client_ListboxRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ListboxRoleImpl', 855); function ListitemRoleImpl(){ RoleImpl.call(this, 'listitem'); } defineClass(856, 35, {}, ListitemRoleImpl); var Lcom_google_gwt_aria_client_ListitemRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ListitemRoleImpl', 856); function LogRoleImpl(){ RoleImpl.call(this, 'log'); } defineClass(858, 35, {}, LogRoleImpl); var Lcom_google_gwt_aria_client_LogRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'LogRoleImpl', 858); function MainRoleImpl(){ RoleImpl.call(this, 'main'); } defineClass(859, 35, {}, MainRoleImpl); var Lcom_google_gwt_aria_client_MainRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'MainRoleImpl', 859); function MarqueeRoleImpl(){ RoleImpl.call(this, 'marquee'); } defineClass(860, 35, {}, MarqueeRoleImpl); var Lcom_google_gwt_aria_client_MarqueeRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'MarqueeRoleImpl', 860); function MathRoleImpl(){ RoleImpl.call(this, 'math'); } defineClass(861, 35, {}, MathRoleImpl); var Lcom_google_gwt_aria_client_MathRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'MathRoleImpl', 861); function MenuRoleImpl(){ RoleImpl.call(this, 'menu'); } defineClass(866, 35, {}, MenuRoleImpl); var Lcom_google_gwt_aria_client_MenuRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'MenuRoleImpl', 866); function $setAriaActivedescendantProperty(element, value_0){ $set_0(($clinit_Property() , ACTIVEDESCENDANT), element, stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_aria_client_Id_2_classLit, 1), $intern_3, 302, 0, [value_0])); } function MenubarRoleImpl(){ RoleImpl.call(this, 'menubar'); } defineClass(862, 35, {}, MenubarRoleImpl); var Lcom_google_gwt_aria_client_MenubarRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'MenubarRoleImpl', 862); function MenuitemRoleImpl(){ RoleImpl.call(this, 'menuitem'); } defineClass(865, 35, {}, MenuitemRoleImpl); var Lcom_google_gwt_aria_client_MenuitemRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'MenuitemRoleImpl', 865); function MenuitemcheckboxRoleImpl(){ RoleImpl.call(this, 'menuitemcheckbox'); } defineClass(863, 35, {}, MenuitemcheckboxRoleImpl); var Lcom_google_gwt_aria_client_MenuitemcheckboxRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'MenuitemcheckboxRoleImpl', 863); function MenuitemradioRoleImpl(){ RoleImpl.call(this, 'menuitemradio'); } defineClass(864, 35, {}, MenuitemradioRoleImpl); var Lcom_google_gwt_aria_client_MenuitemradioRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'MenuitemradioRoleImpl', 864); function NavigationRoleImpl(){ RoleImpl.call(this, 'navigation'); } defineClass(867, 35, {}, NavigationRoleImpl); var Lcom_google_gwt_aria_client_NavigationRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'NavigationRoleImpl', 867); function NoteRoleImpl(){ RoleImpl.call(this, 'note'); } defineClass(868, 35, {}, NoteRoleImpl); var Lcom_google_gwt_aria_client_NoteRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'NoteRoleImpl', 868); function OptionRoleImpl(){ RoleImpl.call(this, 'option'); } defineClass(869, 35, {}, OptionRoleImpl); var Lcom_google_gwt_aria_client_OptionRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'OptionRoleImpl', 869); function PresentationRoleImpl(){ RoleImpl.call(this, 'presentation'); } defineClass(870, 35, {}, PresentationRoleImpl); var Lcom_google_gwt_aria_client_PresentationRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'PresentationRoleImpl', 870); function PrimitiveValueAttribute(name_0){ Attribute.call(this, name_0); } defineClass(114, 450, {}, PrimitiveValueAttribute); _.getSingleValue = function getSingleValue_0(value_0){ return value_0 == null?'null':toString_9(value_0); } ; var Lcom_google_gwt_aria_client_PrimitiveValueAttribute_2_classLit = createForClass('com.google.gwt.aria.client', 'PrimitiveValueAttribute', 114); function ProgressbarRoleImpl(){ RoleImpl.call(this, 'progressbar'); } defineClass(871, 35, {}, ProgressbarRoleImpl); var Lcom_google_gwt_aria_client_ProgressbarRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ProgressbarRoleImpl', 871); function $clinit_Property(){ $clinit_Property = emptyMethod; ACTIVEDESCENDANT = new AriaValueAttribute('aria-activedescendant'); new PrimitiveValueAttribute('aria-atomic'); new AriaValueAttribute('aria-autocomplete'); new AriaValueAttribute('aria-controls'); new AriaValueAttribute('aria-describedby'); new AriaValueAttribute('aria-dropeffect'); new AriaValueAttribute('aria-flowto'); HASPOPUP = new PrimitiveValueAttribute('aria-haspopup'); new PrimitiveValueAttribute('aria-label'); new AriaValueAttribute('aria-labelledby'); new PrimitiveValueAttribute('aria-level'); new AriaValueAttribute('aria-live'); new PrimitiveValueAttribute('aria-multiline'); new PrimitiveValueAttribute('aria-multiselectable'); new AriaValueAttribute('aria-orientation'); new AriaValueAttribute('aria-owns'); new PrimitiveValueAttribute('aria-posinset'); new PrimitiveValueAttribute('aria-readonly'); new AriaValueAttribute('aria-relevant'); new PrimitiveValueAttribute('aria-required'); new PrimitiveValueAttribute('aria-setsize'); new AriaValueAttribute('aria-sort'); new PrimitiveValueAttribute('aria-valuemax'); new PrimitiveValueAttribute('aria-valuemin'); new PrimitiveValueAttribute('aria-valuenow'); new PrimitiveValueAttribute('aria-valuetext'); } var ACTIVEDESCENDANT, HASPOPUP; function RadioRoleImpl(){ RoleImpl.call(this, 'radio'); } defineClass(873, 35, {}, RadioRoleImpl); var Lcom_google_gwt_aria_client_RadioRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'RadioRoleImpl', 873); function RadiogroupRoleImpl(){ RoleImpl.call(this, 'radiogroup'); } defineClass(872, 35, {}, RadiogroupRoleImpl); var Lcom_google_gwt_aria_client_RadiogroupRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'RadiogroupRoleImpl', 872); function RegionRoleImpl(){ RoleImpl.call(this, 'region'); } defineClass(874, 35, {}, RegionRoleImpl); var Lcom_google_gwt_aria_client_RegionRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'RegionRoleImpl', 874); function $clinit_Roles(){ $clinit_Roles = emptyMethod; ALERTDIALOG = new AlertdialogRoleImpl; ALERT = new AlertRoleImpl; APPLICATION = new ApplicationRoleImpl; ARTICLE = new ArticleRoleImpl; BANNER = new BannerRoleImpl; BUTTON = new ButtonRoleImpl; CHECKBOX = new CheckboxRoleImpl; COLUMNHEADER = new ColumnheaderRoleImpl; COMBOBOX = new ComboboxRoleImpl; COMPLEMENTARY = new ComplementaryRoleImpl; CONTENTINFO = new ContentinfoRoleImpl; DEFINITION = new DefinitionRoleImpl; DIALOG = new DialogRoleImpl; DIRECTORY = new DirectoryRoleImpl; DOCUMENT = new DocumentRoleImpl; FORM = new FormRoleImpl; GRIDCELL = new GridcellRoleImpl; GRID = new GridRoleImpl; GROUP = new GroupRoleImpl; HEADING = new HeadingRoleImpl; IMG = new ImgRoleImpl; LINK = new LinkRoleImpl; LISTBOX = new ListboxRoleImpl; LISTITEM = new ListitemRoleImpl; LIST = new ListRoleImpl; LOG = new LogRoleImpl; MAIN = new MainRoleImpl; MARQUEE = new MarqueeRoleImpl; MATH = new MathRoleImpl; MENUBAR = new MenubarRoleImpl; MENUITEMCHECKBOX = new MenuitemcheckboxRoleImpl; MENUITEMRADIO = new MenuitemradioRoleImpl; MENUITEM = new MenuitemRoleImpl; MENU = new MenuRoleImpl; NAVIGATION = new NavigationRoleImpl; NOTE = new NoteRoleImpl; OPTION = new OptionRoleImpl; PRESENTATION = new PresentationRoleImpl; PROGRESSBAR = new ProgressbarRoleImpl; RADIOGROUP = new RadiogroupRoleImpl; RADIO = new RadioRoleImpl; REGION = new RegionRoleImpl; ROWGROUP = new RowgroupRoleImpl; ROWHEADER = new RowheaderRoleImpl; ROW = new RowRoleImpl; SCROLLBAR = new ScrollbarRoleImpl; SEARCH = new SearchRoleImpl; SEPARATOR = new SeparatorRoleImpl; SLIDER = new SliderRoleImpl; SPINBUTTON = new SpinbuttonRoleImpl; STATUS = new StatusRoleImpl; TABLIST = new TablistRoleImpl; TABPANEL = new TabpanelRoleImpl; TAB = new TabRoleImpl; TEXTBOX = new TextboxRoleImpl; TIMER = new TimerRoleImpl; TOOLBAR = new ToolbarRoleImpl; TOOLTIP = new TooltipRoleImpl; TREEGRID = new TreegridRoleImpl; TREEITEM = new TreeitemRoleImpl; TREE = new TreeRoleImpl; ROLES_MAP = new HashMap; $putStringValue(ROLES_MAP, 'region', REGION); $putStringValue(ROLES_MAP, 'alert', ALERT); $putStringValue(ROLES_MAP, 'dialog', DIALOG); $putStringValue(ROLES_MAP, 'alertdialog', ALERTDIALOG); $putStringValue(ROLES_MAP, 'application', APPLICATION); $putStringValue(ROLES_MAP, 'document', DOCUMENT); $putStringValue(ROLES_MAP, 'article', ARTICLE); $putStringValue(ROLES_MAP, 'banner', BANNER); $putStringValue(ROLES_MAP, 'button', BUTTON); $putStringValue(ROLES_MAP, 'checkbox', CHECKBOX); $putStringValue(ROLES_MAP, 'gridcell', GRIDCELL); $putStringValue(ROLES_MAP, 'columnheader', COLUMNHEADER); $putStringValue(ROLES_MAP, 'group', GROUP); $putStringValue(ROLES_MAP, 'combobox', COMBOBOX); $putStringValue(ROLES_MAP, 'complementary', COMPLEMENTARY); $putStringValue(ROLES_MAP, 'contentinfo', CONTENTINFO); $putStringValue(ROLES_MAP, 'definition', DEFINITION); $putStringValue(ROLES_MAP, 'list', LIST); $putStringValue(ROLES_MAP, 'directory', DIRECTORY); $putStringValue(ROLES_MAP, 'form', FORM); $putStringValue(ROLES_MAP, 'grid', GRID); $putStringValue(ROLES_MAP, 'heading', HEADING); $putStringValue(ROLES_MAP, 'img', IMG); $putStringValue(ROLES_MAP, 'link', LINK); $putStringValue(ROLES_MAP, 'listbox', LISTBOX); $putStringValue(ROLES_MAP, 'listitem', LISTITEM); $putStringValue(ROLES_MAP, 'log', LOG); $putStringValue(ROLES_MAP, 'main', MAIN); $putStringValue(ROLES_MAP, 'marquee', MARQUEE); $putStringValue(ROLES_MAP, 'math', MATH); $putStringValue(ROLES_MAP, 'menu', MENU); $putStringValue(ROLES_MAP, 'menubar', MENUBAR); $putStringValue(ROLES_MAP, 'menuitem', MENUITEM); $putStringValue(ROLES_MAP, 'menuitemcheckbox', MENUITEMCHECKBOX); $putStringValue(ROLES_MAP, 'option', OPTION); $putStringValue(ROLES_MAP, 'radio', RADIO); $putStringValue(ROLES_MAP, 'menuitemradio', MENUITEMRADIO); $putStringValue(ROLES_MAP, 'navigation', NAVIGATION); $putStringValue(ROLES_MAP, 'note', NOTE); $putStringValue(ROLES_MAP, 'presentation', PRESENTATION); $putStringValue(ROLES_MAP, 'progressbar', PROGRESSBAR); $putStringValue(ROLES_MAP, 'radiogroup', RADIOGROUP); $putStringValue(ROLES_MAP, 'row', ROW); $putStringValue(ROLES_MAP, 'rowgroup', ROWGROUP); $putStringValue(ROLES_MAP, 'rowheader', ROWHEADER); $putStringValue(ROLES_MAP, 'search', SEARCH); $putStringValue(ROLES_MAP, 'separator', SEPARATOR); $putStringValue(ROLES_MAP, 'scrollbar', SCROLLBAR); $putStringValue(ROLES_MAP, 'slider', SLIDER); $putStringValue(ROLES_MAP, 'spinbutton', SPINBUTTON); $putStringValue(ROLES_MAP, 'status', STATUS); $putStringValue(ROLES_MAP, 'tab', TAB); $putStringValue(ROLES_MAP, 'tablist', TABLIST); $putStringValue(ROLES_MAP, 'tabpanel', TABPANEL); $putStringValue(ROLES_MAP, 'textbox', TEXTBOX); $putStringValue(ROLES_MAP, 'timer', TIMER); $putStringValue(ROLES_MAP, 'toolbar', TOOLBAR); $putStringValue(ROLES_MAP, 'tooltip', TOOLTIP); $putStringValue(ROLES_MAP, 'tree', TREE); $putStringValue(ROLES_MAP, 'treegrid', TREEGRID); $putStringValue(ROLES_MAP, 'treeitem', TREEITEM); } var ALERT, ALERTDIALOG, APPLICATION, ARTICLE, BANNER, BUTTON, CHECKBOX, COLUMNHEADER, COMBOBOX, COMPLEMENTARY, CONTENTINFO, DEFINITION, DIALOG, DIRECTORY, DOCUMENT, FORM, GRID, GRIDCELL, GROUP, HEADING, IMG, LINK, LIST, LISTBOX, LISTITEM, LOG, MAIN, MARQUEE, MATH, MENU, MENUBAR, MENUITEM, MENUITEMCHECKBOX, MENUITEMRADIO, NAVIGATION, NOTE, OPTION, PRESENTATION, PROGRESSBAR, RADIO, RADIOGROUP, REGION, ROLES_MAP, ROW, ROWGROUP, ROWHEADER, SCROLLBAR, SEARCH, SEPARATOR, SLIDER, SPINBUTTON, STATUS, TAB, TABLIST, TABPANEL, TEXTBOX, TIMER, TOOLBAR, TOOLTIP, TREE, TREEGRID, TREEITEM; function RowRoleImpl(){ RoleImpl.call(this, 'row'); } defineClass(877, 35, {}, RowRoleImpl); var Lcom_google_gwt_aria_client_RowRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'RowRoleImpl', 877); function RowgroupRoleImpl(){ RoleImpl.call(this, 'rowgroup'); } defineClass(875, 35, {}, RowgroupRoleImpl); var Lcom_google_gwt_aria_client_RowgroupRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'RowgroupRoleImpl', 875); function RowheaderRoleImpl(){ RoleImpl.call(this, 'rowheader'); } defineClass(876, 35, {}, RowheaderRoleImpl); var Lcom_google_gwt_aria_client_RowheaderRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'RowheaderRoleImpl', 876); function ScrollbarRoleImpl(){ RoleImpl.call(this, 'scrollbar'); } defineClass(878, 35, {}, ScrollbarRoleImpl); var Lcom_google_gwt_aria_client_ScrollbarRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ScrollbarRoleImpl', 878); function SearchRoleImpl(){ RoleImpl.call(this, 'search'); } defineClass(879, 35, {}, SearchRoleImpl); var Lcom_google_gwt_aria_client_SearchRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'SearchRoleImpl', 879); function SeparatorRoleImpl(){ RoleImpl.call(this, 'separator'); } defineClass(880, 35, {}, SeparatorRoleImpl); var Lcom_google_gwt_aria_client_SeparatorRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'SeparatorRoleImpl', 880); function SliderRoleImpl(){ RoleImpl.call(this, 'slider'); } defineClass(881, 35, {}, SliderRoleImpl); var Lcom_google_gwt_aria_client_SliderRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'SliderRoleImpl', 881); function SpinbuttonRoleImpl(){ RoleImpl.call(this, 'spinbutton'); } defineClass(882, 35, {}, SpinbuttonRoleImpl); var Lcom_google_gwt_aria_client_SpinbuttonRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'SpinbuttonRoleImpl', 882); function $clinit_State(){ $clinit_State = emptyMethod; new PrimitiveValueAttribute('aria-busy'); new AriaValueAttribute('aria-checked'); new PrimitiveValueAttribute('aria-disabled'); new AriaValueAttribute('aria-expanded'); new AriaValueAttribute('aria-grabbed'); HIDDEN = new PrimitiveValueAttribute('aria-hidden'); new AriaValueAttribute('aria-invalid'); new AriaValueAttribute('aria-pressed'); new AriaValueAttribute('aria-selected'); } var HIDDEN; function StatusRoleImpl(){ RoleImpl.call(this, 'status'); } defineClass(883, 35, {}, StatusRoleImpl); var Lcom_google_gwt_aria_client_StatusRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'StatusRoleImpl', 883); function TabRoleImpl(){ RoleImpl.call(this, 'tab'); } defineClass(886, 35, {}, TabRoleImpl); var Lcom_google_gwt_aria_client_TabRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'TabRoleImpl', 886); function TablistRoleImpl(){ RoleImpl.call(this, 'tablist'); } defineClass(884, 35, {}, TablistRoleImpl); var Lcom_google_gwt_aria_client_TablistRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'TablistRoleImpl', 884); function TabpanelRoleImpl(){ RoleImpl.call(this, 'tabpanel'); } defineClass(885, 35, {}, TabpanelRoleImpl); var Lcom_google_gwt_aria_client_TabpanelRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'TabpanelRoleImpl', 885); function TextboxRoleImpl(){ RoleImpl.call(this, 'textbox'); } defineClass(887, 35, {}, TextboxRoleImpl); var Lcom_google_gwt_aria_client_TextboxRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'TextboxRoleImpl', 887); function TimerRoleImpl(){ RoleImpl.call(this, 'timer'); } defineClass(888, 35, {}, TimerRoleImpl); var Lcom_google_gwt_aria_client_TimerRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'TimerRoleImpl', 888); function ToolbarRoleImpl(){ RoleImpl.call(this, 'toolbar'); } defineClass(889, 35, {}, ToolbarRoleImpl); var Lcom_google_gwt_aria_client_ToolbarRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'ToolbarRoleImpl', 889); function TooltipRoleImpl(){ RoleImpl.call(this, 'tooltip'); } defineClass(890, 35, {}, TooltipRoleImpl); var Lcom_google_gwt_aria_client_TooltipRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'TooltipRoleImpl', 890); function TreeRoleImpl(){ RoleImpl.call(this, 'tree'); } defineClass(893, 35, {}, TreeRoleImpl); var Lcom_google_gwt_aria_client_TreeRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'TreeRoleImpl', 893); function TreegridRoleImpl(){ RoleImpl.call(this, 'treegrid'); } defineClass(891, 35, {}, TreegridRoleImpl); var Lcom_google_gwt_aria_client_TreegridRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'TreegridRoleImpl', 891); function TreeitemRoleImpl(){ RoleImpl.call(this, 'treeitem'); } defineClass(892, 35, {}, TreeitemRoleImpl); var Lcom_google_gwt_aria_client_TreeitemRoleImpl_2_classLit = createForClass('com.google.gwt.aria.client', 'TreeitemRoleImpl', 892); function $addStyleDependentName(this$static, styleSuffix){ $setStyleName_0(this$static, getStylePrimaryName(($clinit_DOM() , this$static.element)) + '-' + styleSuffix, true); } function $addStyleName(this$static, style){ setStyleName(this$static.getStyleElement(), style, true); } function $getAbsoluteLeft(this$static){ return $getAbsoluteLeft_0(($clinit_DOM() , this$static.element)); } function $getAbsoluteTop(this$static){ return $getBoundingClientRectTop(($clinit_DOM() , this$static.element)) + $wnd.pageYOffset | 0; } function $getElement(this$static){ return $clinit_DOM() , this$static.element; } function $getOffsetHeight(this$static){ return $getPropertyInt(($clinit_DOM() , this$static.element), 'offsetHeight'); } function $getOffsetWidth(this$static){ return $getPropertyInt(($clinit_DOM() , this$static.element), 'offsetWidth'); } function $removeStyleDependentName(this$static){ $setStyleName_0(this$static, getStylePrimaryName(($clinit_DOM() , this$static.element)) + '-' + 'current', false); } function $removeStyleName(this$static, style){ setStyleName(($clinit_DOM() , this$static.element), style, false); } function $resolvePotentialElement(){ throw toJs(new UnsupportedOperationException); } function $setElement(this$static, elem){ $setElement_0(this$static, ($clinit_DOM() , elem)); } function $setElement_0(this$static, elem){ this$static.element = elem; } function $setHeight(this$static, height){ ($clinit_DOM() , this$static.element).style['height'] = height; } function $setStyleName(this$static, style){ $setClassName(this$static.getStyleElement(), style); } function $setStyleName_0(this$static, style, add_0){ setStyleName(this$static.getStyleElement(), style, add_0); } function $setStylePrimaryName(this$static, style){ setStylePrimaryName(($clinit_DOM() , this$static.element), style); } function $setTitle(this$static, title_0){ title_0 == null || title_0.length == 0?(($clinit_DOM() , this$static.element).removeAttribute('title') , undefined):$setAttribute(($clinit_DOM() , this$static.element), 'title', title_0); } function $setVisible(this$static, visible){ setVisible(($clinit_DOM() , this$static.element), visible); } function $setWidth(this$static, width_0){ ($clinit_DOM() , this$static.element).style['width'] = width_0; } function $sinkBitlessEvent(this$static, eventTypeName){ $clinit_DOM(); $sinkBitlessEvent_0(this$static.element, eventTypeName); } function getStylePrimaryName(elem){ var fullClassName, spaceIdx; fullClassName = elem.className || ''; spaceIdx = $indexOf_1(fullClassName, fromCodePoint(32)); if (spaceIdx >= 0) { return fullClassName.substr(0, spaceIdx); } return fullClassName; } function setStyleName(elem, style, add_0){ if (!elem) { throw toJs(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 toJs(new IllegalArgumentException_0('Style names cannot be empty')); } add_0?$addClassName(elem, style):$removeClassName(elem, style); } function setStylePrimaryName(elem, style){ if (!elem) { throw toJs(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 toJs(new IllegalArgumentException_0('Style names cannot be empty')); } updatePrimaryAndDependentStyleNames(elem, style); } function setVisible(elem, visible){ elem.style.display = visible?'':'none'; visible?elem.removeAttribute('aria-hidden'):elem.setAttribute('aria-hidden', 'true'); } 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 = 1, n = classes.length; i < n; i++) { var name_0 = classes[i]; name_0.length > oldPrimaryStyleLen && name_0.charAt(oldPrimaryStyleLen) == '-' && name_0.indexOf(oldPrimaryStyle) == 0 && (classes[i] = newPrimaryStyle + name_0.substring(oldPrimaryStyleLen)); } elem.className = classes.join(' '); } defineClass(22, 1, {23:1, 22:1}); _.getOffsetHeight = function getOffsetHeight(){ return $getOffsetHeight(this); } ; _.getStyleElement = function getStyleElement(){ return $clinit_DOM() , this.element; } ; _.resolvePotentialElement = function resolvePotentialElement(){ return $resolvePotentialElement(); } ; _.setHeight_0 = function setHeight(height){ $setHeight(this, height); } ; _.setWidth_0 = function setWidth(width_0){ $setWidth(this, width_0); } ; _.toString_0 = function toString_1(){ if (!this.element) { return '(null handle)'; } return ($clinit_DOM() , this.element).outerHTML; } ; var Lcom_google_gwt_user_client_ui_UIObject_2_classLit = createForClass('com.google.gwt.user.client.ui', 'UIObject', 22); 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.sinkEvents(typeInt); return $addHandler_0(!this$static.handlerManager?(this$static.handlerManager = new HandlerManager(this$static)):this$static.handlerManager, type_0, handler); } function $addHandler(this$static, handler, type_0){ return $addHandler_0(!this$static.handlerManager?(this$static.handlerManager = new HandlerManager(this$static)):this$static.handlerManager, type_0, handler); } function $fireEvent(this$static, event_0){ !!this$static.handlerManager && $fireEvent_0(this$static.handlerManager, event_0); } function $onAttach(this$static){ var bitsToAdd; if (this$static.isAttached()) { throw toJs(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_0(this$static, true); } function $onBrowserEvent(this$static, event_0){ var related; switch ($clinit_DOM() , $eventGetTypeInt(event_0.type)) { case 16: case 32: related = event_0.relatedTarget; if (!!related && isOrHasChildImpl(this$static.element, related)) { return; } } fireNativeEvent(event_0, this$static, this$static.element); } function $onDetach(this$static){ if (!this$static.isAttached()) { throw toJs(new IllegalStateException_0("Should only call onDetach when the widget is attached to the browser's document")); } try { this$static.onUnload(); fire_0(this$static, false); } finally { try { this$static.doDetachChildren(); } finally { $clinit_DOM(); this$static.element.__listener = null; this$static.attached = false; } } } function $removeFromParent(this$static){ if (!this$static.parent_0) { $clinit_RootPanel(); $contains_3(widgetsToDetach, this$static) && detachNow(this$static); } else if (instanceOf(this$static.parent_0, 44)) { this$static.parent_0.remove_0(this$static); } else if (this$static.parent_0) { throw toJs(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 toJs(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_0(($clinit_DOM() , this$static.element), eventBitsToAdd | (this$static.element.__eventBits || 0)):(this$static.eventsToSink |= eventBitsToAdd); } defineClass(24, 22, $intern_4); _.doAttachChildren = function doAttachChildren(){ } ; _.doDetachChildren = function doDetachChildren(){ } ; _.fireEvent = function fireEvent(event_0){ $fireEvent(this, event_0); } ; _.isAttached = function isAttached(){ return this.attached; } ; _.onAttach = function onAttach(){ $onAttach(this); } ; _.onBrowserEvent = function onBrowserEvent(event_0){ $onBrowserEvent(this, event_0); } ; _.onDetach = function onDetach(){ $onDetach(this); } ; _.onLoad = function onLoad(){ } ; _.onUnload = function onUnload(){ } ; _.sinkEvents = function sinkEvents(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', 24); function $setEnabled(this$static, enabled){ ($clinit_DOM() , this$static.element)['disabled'] = !enabled; } function $setFocus(this$static){ ($clinit_DOM() , this$static.element).focus(); } function FocusWidget(elem){ $setElement_0(this, ($clinit_DOM() , elem)); } defineClass(82, 24, $intern_5); _.getTabIndex = function getTabIndex(){ return $getTabIndex(($clinit_DOM() , this.element)); } ; _.onAttach = function onAttach_0(){ var tabIndex; $onAttach(this); tabIndex = this.getTabIndex(); -1 == tabIndex && this.setTabIndex(0); } ; _.setTabIndex = function setTabIndex(index_0){ $setTabIndex(($clinit_DOM() , this.element), index_0); } ; var Lcom_google_gwt_user_client_ui_FocusWidget_2_classLit = createForClass('com.google.gwt.user.client.ui', 'FocusWidget', 82); function $getContext2d(this$static){ return ($clinit_DOM() , this$static.element).getContext('2d'); } function $getCoordinateSpaceWidth(this$static){ return ($clinit_DOM() , this$static.element).width; } function $setCoordinateSpaceHeight(this$static, height){ $setHeight_0(($clinit_DOM() , this$static.element), height); } function $setCoordinateSpaceWidth(this$static, width_0){ $setWidth_0(($clinit_DOM() , this$static.element), width_0); } function $toDataUrl(this$static){ return ($clinit_DOM() , this$static.element).toDataURL(); } function Canvas_0(element){ $setElement_0(this, ($clinit_DOM() , element)); } function createIfSupported(){ var element; !detector && (detector = new Canvas$CanvasElementSupportDetectedMaybe); element = $doc.createElement('canvas'); if (!element.getContext) { return null; } return new Canvas_0(element); } defineClass(668, 82, $intern_5, Canvas_0); var detector; var Lcom_google_gwt_canvas_client_Canvas_2_classLit = createForClass('com.google.gwt.canvas.client', 'Canvas', 668); defineClass(982, 1, {}); var Lcom_google_gwt_canvas_client_Canvas$CanvasElementSupportDetector_2_classLit = createForClass('com.google.gwt.canvas.client', 'Canvas/CanvasElementSupportDetector', 982); function Canvas$CanvasElementSupportDetectedMaybe(){ } defineClass(669, 982, {}, Canvas$CanvasElementSupportDetectedMaybe); var Lcom_google_gwt_canvas_client_Canvas$CanvasElementSupportDetectedMaybe_2_classLit = createForClass('com.google.gwt.canvas.client', 'Canvas/CanvasElementSupportDetectedMaybe', 669); function $hashCode(this$static){ return !!this$static && !!this$static.hashCode?this$static.hashCode():getHashCode(this$static); } var Lcom_google_gwt_core_client_JavaScriptObject_2_classLit = createForClass('com.google.gwt.core.client', 'JavaScriptObject$', 0); function $addColorStop(this$static, offset, color_0){ this$static.addColorStop(offset, color_0); } function $arc(this$static, x_0, y_0, radius, startAngle, endAngle){ this$static.arc(x_0, y_0, radius, startAngle, endAngle, false); } function $arc_0(this$static, x_0, y_0, radius, startAngle, endAngle, anticlockwise){ this$static.arc(x_0, y_0, radius, startAngle, endAngle, anticlockwise); } function $bezierCurveTo(this$static, cp1x, cp1y, cp2x, cp2y, x_0, y_0){ this$static.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x_0, y_0); } function $createLinearGradient(this$static, x0, y0, x1, y1){ return this$static.createLinearGradient(x0, y0, x1, y1); } function $drawImage(this$static, image, dx, dy){ this$static.drawImage(image, dx, dy); } function $fillRect(this$static, x_0, y_0, w, h){ this$static.fillRect(x_0, y_0, w, h); } function $fillText(this$static, text_0, x_0, y_0){ this$static.fillText && this$static.fillText(text_0, x_0, y_0); } function $lineTo(this$static, x_0, y_0){ this$static.lineTo(x_0, y_0); } function $measureText(this$static, text_0){ return this$static.measureText(text_0); } function $moveTo(this$static, x_0, y_0){ this$static.moveTo(x_0, y_0); } function $rect(this$static, x_0, y_0, w, h){ this$static.rect(x_0, y_0, w, h); } function $scale(this$static, x_0, y_0){ this$static.scale(x_0, y_0); } function $setFillStyleWeb(this$static, fillStyle){ this$static.fillStyle = fillStyle; } function $setFont(this$static, f){ this$static.font = f; } function $setGlobalAlpha(this$static, alpha_0){ this$static.globalAlpha = alpha_0; } function $setLineCap(this$static, lineCap){ this$static.lineCap = lineCap; } function $setLineWidth(this$static, lineWidth){ this$static.lineWidth = lineWidth; } function $setStrokeStyleWeb(this$static, strokeStyle){ this$static.strokeStyle = strokeStyle; } function $setTransform(this$static, m11, m12, m21, m22, dx, dy){ this$static.setTransform(m11, m12, m21, m22, dx, dy); } function $strokeRect(this$static, x_0, y_0, w, h){ this$static.strokeRect(x_0, y_0, w, h); } function $transform(this$static, m11, m12, m21, m22, dx, dy){ this$static.transform(m11, m12, m21, m22, dx, dy); } function $translate(this$static, x_0, y_0){ this$static.translate(x_0, y_0); } function Enum(name_0, ordinal){ this.name_0 = name_0; this.ordinal = ordinal; } defineClass(15, 1, {3:1, 16:1, 15:1}); _.compareTo = function compareTo(other){ return this.ordinal - other.ordinal; } ; _.equals_0 = function equals_0(other){ return this === other; } ; _.hashCode_0 = function hashCode_1(){ return getHashCode(this); } ; _.toString_0 = function toString_2(){ return this.name_0 != null?this.name_0:'' + this.ordinal; } ; _.ordinal = 0; var Ljava_lang_Enum_2_classLit = createForClass('java.lang', 'Enum', 15); function $clinit_Context2d$LineCap(){ $clinit_Context2d$LineCap = emptyMethod; BUTT = new Context2d$LineCap('BUTT', 0, 'butt'); ROUND = new Context2d$LineCap('ROUND', 1, 'round'); SQUARE = new Context2d$LineCap('SQUARE', 2, 'square'); } function Context2d$LineCap(enum$name, enum$ordinal, value_0){ Enum.call(this, enum$name, enum$ordinal); this.value_0 = value_0; } function values_0(){ $clinit_Context2d$LineCap(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_canvas_dom_client_Context2d$LineCap_2_classLit, 1), $intern_3, 239, 0, [BUTT, ROUND, SQUARE]); } defineClass(239, 15, {239:1, 3:1, 16:1, 15:1}, Context2d$LineCap); var BUTT, ROUND, SQUARE; var Lcom_google_gwt_canvas_dom_client_Context2d$LineCap_2_classLit = createForEnum('com.google.gwt.canvas.dom.client', 'Context2d/LineCap', 239, values_0); function $$init(this$static){ this$static.stackTrace = initUnidimensionalArray(Ljava_lang_StackTraceElement_2_classLit, $intern_3, 187, 0, 0, 1); } function $addSuppressed(this$static, exception){ checkCriticalNotNull_0(exception, 'Cannot suppress a null exception.'); checkCriticalArgument_0(exception != this$static, 'Exception can not suppress itself.'); if (this$static.disableSuppression) { return; } this$static.suppressedExceptions == null?(this$static.suppressedExceptions = stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_Throwable_2_classLit, 1), $intern_3, 42, 0, [exception])):(this$static.suppressedExceptions[this$static.suppressedExceptions.length] = exception); } function $fillInStackTrace(this$static){ if (this$static.writetableStackTrace) { this$static.backingJsObject !== '__noinit__' && this$static.initializeBackingError(); this$static.stackTrace = null; } return this$static; } function $initCause(this$static, cause){ checkCriticalState_0(!this$static.cause, "Can't overwrite cause"); checkCriticalArgument_0(cause != this$static, 'Self-causation not permitted'); this$static.cause = cause; return this$static; } function $printStackTraceImpl(this$static, out, ident){ var t, t$array, t$index, t$max, theCause; $printStackTraceItems(this$static); for (t$array = (this$static.suppressedExceptions == null && (this$static.suppressedExceptions = initUnidimensionalArray(Ljava_lang_Throwable_2_classLit, $intern_3, 42, 0, 0, 1)) , this$static.suppressedExceptions) , t$index = 0 , t$max = t$array.length; t$index < t$max; ++t$index) { t = t$array[t$index]; $printStackTraceImpl(t, out, '\t' + ident); } theCause = this$static.cause; !!theCause && $printStackTraceImpl(theCause, out, ident); } function $printStackTraceItems(this$static){ var element$array, element$index, element$max, stackTrace; for (element$array = (this$static.stackTrace == null && (this$static.stackTrace = ($clinit_StackTraceCreator() , stackTrace = collector.getStackTrace(this$static) , dropInternalFrames(stackTrace))) , this$static.stackTrace) , element$index = 0 , element$max = element$array.length; element$index < element$max; ++element$index) ; } function $setBackingJsObject(this$static, backingJsObject){ this$static.backingJsObject = backingJsObject; backingJsObject != null && setPropertySafe(backingJsObject, '__java$exception', this$static); } function $toString(this$static, message){ var className; className = $getName(this$static.___clazz); return message == null?className:className + ': ' + message; } function Throwable(message, cause){ $$init(this); this.cause = cause; this.detailMessage = message; $fillInStackTrace(this); this.initializeBackingError(); } function fixIE(e){ if (!('stack' in e)) { try { throw e; } catch (ignored) { } } return e; } defineClass(42, 1, $intern_6); _.createError = function createError(msg){ return new Error(msg); } ; _.getMessage = function getMessage(){ return this.detailMessage; } ; _.initializeBackingError = function initializeBackingError(){ var className, errorMessage, message; message = this.detailMessage == null?null:this.detailMessage.replace(new RegExp('\n', 'g'), ' '); errorMessage = (className = $getName(this.___clazz) , message == null?className:className + ': ' + message); $setBackingJsObject(this, fixIE(this.createError(errorMessage))); captureStackTrace(this); } ; _.toString_0 = function toString_3(){ return $toString(this, this.getMessage()); } ; _.backingJsObject = '__noinit__'; _.disableSuppression = false; _.writetableStackTrace = true; var Ljava_lang_Throwable_2_classLit = createForClass('java.lang', 'Throwable', 42); function Exception(message){ $$init(this); this.detailMessage = message; $fillInStackTrace(this); this.initializeBackingError(); } defineClass(13, 42, $intern_7); var Ljava_lang_Exception_2_classLit = createForClass('java.lang', 'Exception', 13); function RuntimeException(){ $$init(this); $fillInStackTrace(this); this.initializeBackingError(); } function RuntimeException_0(message){ Exception.call(this, message); } function RuntimeException_1(message, cause){ Throwable.call(this, message, cause); } defineClass(83, 13, $intern_7, RuntimeException_0); var Ljava_lang_RuntimeException_2_classLit = createForClass('java.lang', 'RuntimeException', 83); function CodeDownloadException(message){ RuntimeException_0.call(this, message); } defineClass(992, 83, $intern_7, CodeDownloadException); var Lcom_google_gwt_core_client_CodeDownloadException_2_classLit = createForClass('com.google.gwt.core.client', 'CodeDownloadException', 992); function $elapsedMillis(this$static){ return now_1() - this$static.start_0; } function Duration(){ this.start_0 = now_1(); } defineClass(284, 1, {}, Duration); _.start_0 = 0; var Lcom_google_gwt_core_client_Duration_2_classLit = createForClass('com.google.gwt.core.client', 'Duration', 284); defineClass(282, 83, $intern_7); var Ljava_lang_JsException_2_classLit = createForClass('java.lang', 'JsException', 282); defineClass(467, 282, $intern_7); var Lcom_google_gwt_core_client_impl_JavaScriptExceptionBase_2_classLit = createForClass('com.google.gwt.core.client.impl', 'JavaScriptExceptionBase', 467); 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)?exception == null?null:exception.name:instanceOfString(exception)?'String':$getName(getClass__Ljava_lang_Class___devirtual$(exception)); this$static.description = this$static.description + ': ' + (instanceOfJso(exception)?exception == null?null:exception.message:exception + ''); this$static.message_0 = '(' + this$static.name_0 + ') ' + this$static.description; } } function JavaScriptException(e){ $clinit_JavaScriptException(); $$init(this); $fillInStackTrace(this); this.backingJsObject = e; e != null && setPropertySafe(e, '__java$exception', this); this.detailMessage = e == null?'null':toString_9(e); this.description = ''; this.e = e; this.description = ''; } defineClass(135, 467, {135:1, 3:1, 13:1, 42:1}, JavaScriptException); _.getMessage = function getMessage_0(){ return $ensureInit(this) , this.message_0; } ; _.getThrown = function getThrown(){ 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', 135); function now_1(){ if (Date.now) { return Date.now(); } return (new Date).getTime(); } defineClass(960, 1, {}); var Lcom_google_gwt_core_client_Scheduler_2_classLit = createForClass('com.google.gwt.core.client', 'Scheduler', 960); function $clinit_ScriptInjector(){ $clinit_ScriptInjector = emptyMethod; } 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(null); } ); scriptElement.onerror = $entry(function(){ clearCallbacks(); if (callback) { var ex = new CodeDownloadException('onerror() called.'); callback.onFailure(ex); } } ); scriptElement.onreadystatechange = $entry(function(){ /loaded|complete/.test(scriptElement.readyState) && scriptElement.onload(); } ); } function nativeRemove(scriptElement){ scriptElement.parentNode.removeChild(scriptElement); } function nativeSetSrc(element, url_0){ $clinit_ScriptInjector(); element.src = url_0; } function $inject(this$static){ var doc, scriptElement, wnd; wnd = ($clinit_ScriptInjector() , window); doc = wnd.document; scriptElement = doc.createElement('script'); !!this$static.callback && attachListeners(scriptElement, this$static.callback, false); nativeSetSrc(scriptElement, this$static.scriptUrl); (doc.head || doc.getElementsByTagName('head')[0]).appendChild(scriptElement); return scriptElement; } function $setCallback(this$static, callback){ this$static.callback = callback; return this$static; } function ScriptInjector$FromUrl(){ this.scriptUrl = 'canvas2svg.js'; } defineClass(794, 1, {}, ScriptInjector$FromUrl); var Lcom_google_gwt_core_client_ScriptInjector$FromUrl_2_classLit = createForClass('com.google.gwt.core.client', 'ScriptInjector/FromUrl', 794); function $clinit_Impl(){ $clinit_Impl = emptyMethod; !!($clinit_StackTraceCreator() , collector); } 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){ $clinit_Impl(); return function(){ return entry0_0(jsFunction, this, arguments); var __0; } ; } function entry0_0(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 getModuleBaseURL(){ $clinit_Impl(); var key = '__gwtDevModeHook:' + $moduleName + ':moduleBase'; var global = $wnd || self; return global[key] || $moduleBase; } function reportToBrowser(e){ $clinit_Impl(); $wnd.setTimeout(function(){ throw e; } , 0); } function watchdogEntryDepthCancel(timerId){ $wnd.clearTimeout(timerId); } function watchdogEntryDepthRun(){ entryDepth != 0 && (entryDepth = 0); watchdogEntryDepthTimerId = -1; } var entryDepth = 0, watchdogEntryDepthLastScheduled = 0, watchdogEntryDepthTimerId = -1; function $clinit_SchedulerImpl(){ $clinit_SchedulerImpl = emptyMethod; INSTANCE = new SchedulerImpl; } 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, 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; i < length_0; i++) { t = tasks[i]; if (!t) { continue; } executedSomeTask = true; if (!t[0].execute_0()) { tasks[i] = null; canceledSomeTasks = true; } } if (!executedSomeTask) { break; } } if (canceledSomeTasks) { newTasks = []; for (i = 0; i < length_0; i++) { !!tasks[i] && (newTasks[newTasks.length] = tasks[i] , undefined); } 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 SchedulerImpl(){ } function execute_0(cmd){ return cmd.execute_0(); } function push_0(queue, task){ !queue && (queue = []); queue[queue.length] = task; return queue; } function runScheduledTasks(tasks, rescheduled){ var e, i, j, t; for (i = 0 , j = tasks.length; i < j; i++) { t = tasks[i]; try { t[1]?t[0].execute_0() && (rescheduled = push_0(rescheduled, t)):t[0].execute_1(); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 42)) { e = $e0; $clinit_Impl(); reportToBrowser(instanceOf(e, 135)?e.getThrown():e); } else throw toJs($e0); } } return rescheduled; } function scheduleFixedDelayImpl(cmd, delayMs){ $clinit_SchedulerImpl(); function callback(){ var ret = $entry(execute_0)(cmd); ret && $wnd.setTimeout(callback, delayMs); } $wnd.setTimeout(callback, delayMs); } defineClass(479, 960, {}, SchedulerImpl); _.flushRunning = false; _.shouldBeRunning = false; var INSTANCE; var Lcom_google_gwt_core_client_impl_SchedulerImpl_2_classLit = createForClass('com.google.gwt.core.client.impl', 'SchedulerImpl', 479); function SchedulerImpl$Flusher(this$0){ this.this$01 = this$0; } defineClass(480, 1, {}, SchedulerImpl$Flusher); _.execute_0 = function execute_1(){ 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', 480); function SchedulerImpl$Rescuer(this$0){ this.this$01 = this$0; } defineClass(481, 1, {}, SchedulerImpl$Rescuer); _.execute_0 = function execute_2(){ 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', 481); function $clinit_StackTraceCreator(){ $clinit_StackTraceCreator = emptyMethod; var c, enforceLegacy; enforceLegacy = !supportsErrorStack(); c = new StackTraceCreator$CollectorModernNoSourceMap; collector = enforceLegacy?new StackTraceCreator$CollectorLegacy:c; } function captureStackTrace(error){ $clinit_StackTraceCreator(); collector.collect(error); } function dropInternalFrames(stackTrace){ var dropFrameUntilFnName, dropFrameUntilFnName2, i, numberOfFramesToSearch; dropFrameUntilFnName = 'captureStackTrace'; dropFrameUntilFnName2 = 'initializeBackingError'; numberOfFramesToSearch = $wnd.Math.min(stackTrace.length, 5); for (i = numberOfFramesToSearch - 1; i >= 0; i--) { if ($equals_1(stackTrace[i].methodName, dropFrameUntilFnName) || $equals_1(stackTrace[i].methodName, dropFrameUntilFnName2)) { stackTrace.length >= i + 1 && stackTrace.splice(0, i + 1); break; } } return stackTrace; } function extractFunctionName(fnName){ var fnRE = /function(?:\s+([\w$]+))?\s*\(/; var match_0 = fnRE.exec(fnName); return match_0 && match_0[1] || 'anonymous'; } function parseInt_0(number){ $clinit_StackTraceCreator(); return parseInt(number) || -1; } function supportsErrorStack(){ if (Error.stackTraceLimit > 0) { $wnd.Error.stackTraceLimit = Error.stackTraceLimit = 64; return true; } return 'stack' in new Error; } var collector; defineClass(970, 1, {}); var Lcom_google_gwt_core_client_impl_StackTraceCreator$Collector_2_classLit = createForClass('com.google.gwt.core.client.impl', 'StackTraceCreator/Collector', 970); function StackTraceCreator$CollectorLegacy(){ } defineClass(468, 970, {}, StackTraceCreator$CollectorLegacy); _.collect = function collect(error){ var seen = {}, name_1; var fnStack = []; error['fnStack'] = fnStack; var callee = arguments.callee.caller; while (callee) { var name_0 = ($clinit_StackTraceCreator() , callee.name || (callee.name = extractFunctionName(callee.toString()))); fnStack.push(name_0); var keyName = ':' + name_0; var withThisName = seen[keyName]; if (withThisName) { var i, j; for (i = 0 , j = withThisName.length; i < j; i++) { if (withThisName[i] === callee) { return; } } } (withThisName || (seen[keyName] = [])).push(callee); callee = callee.caller; } } ; _.getStackTrace = function getStackTrace(t){ var i, length_0, stack_0, stackTrace; stack_0 = ($clinit_StackTraceCreator() , t && t['fnStack']?t['fnStack']:[]); length_0 = stack_0.length; stackTrace = initUnidimensionalArray(Ljava_lang_StackTraceElement_2_classLit, $intern_3, 187, length_0, 0, 1); for (i = 0; i < length_0; i++) { stackTrace[i] = new StackTraceElement(stack_0[i], null, -1); } return stackTrace; } ; var Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorLegacy_2_classLit = createForClass('com.google.gwt.core.client.impl', 'StackTraceCreator/CollectorLegacy', 468); function $parse(this$static, stString){ var closeParen, col, endFileUrlIndex, fileName, index_0, lastColonIndex, line, location_0, toReturn; if (stString.length == 0) { return this$static.createSte('Unknown', 'anonymous', -1, -1); } toReturn = $trim(stString); $equals_1(toReturn.substr(0, 3), 'at ') && (toReturn = toReturn.substr(3)); toReturn = toReturn.replace(/\[.*?\]/g, ''); index_0 = toReturn.indexOf('('); if (index_0 == -1) { index_0 = toReturn.indexOf('@'); if (index_0 == -1) { location_0 = toReturn; toReturn = ''; } else { location_0 = $trim(toReturn.substr(index_0 + 1)); toReturn = $trim(toReturn.substr(0, index_0)); } } else { closeParen = toReturn.indexOf(')', index_0); location_0 = toReturn.substr(index_0 + 1, closeParen - (index_0 + 1)); toReturn = $trim(toReturn.substr(0, index_0)); } index_0 = $indexOf_1(toReturn, fromCodePoint(46)); index_0 != -1 && (toReturn = toReturn.substr(index_0 + 1)); (toReturn.length == 0 || $equals_1(toReturn, 'Anonymous function')) && (toReturn = 'anonymous'); lastColonIndex = $lastIndexOf(location_0, fromCodePoint(58)); endFileUrlIndex = $lastIndexOf_0(location_0, fromCodePoint(58), lastColonIndex - 1); line = -1; col = -1; fileName = 'Unknown'; if (lastColonIndex != -1 && endFileUrlIndex != -1) { fileName = location_0.substr(0, endFileUrlIndex); line = parseInt_0(location_0.substr(endFileUrlIndex + 1, lastColonIndex - (endFileUrlIndex + 1))); col = parseInt_0(location_0.substr(lastColonIndex + 1)); } return this$static.createSte(fileName, toReturn, line, col); } defineClass(971, 970, {}); _.collect = function collect_0(error){ } ; _.createSte = function createSte(fileName, method, line, col){ return new StackTraceElement(method, fileName + '@' + col, line < 0?-1:line); } ; _.getStackTrace = function getStackTrace_0(t){ var addIndex, i, length_0, stack_0, stackTrace, ste, e; stack_0 = ($clinit_StackTraceCreator() , e = t.backingJsObject , e && e.stack?e.stack.split('\n'):[]); stackTrace = initUnidimensionalArray(Ljava_lang_StackTraceElement_2_classLit, $intern_3, 187, 0, 0, 1); addIndex = 0; length_0 = stack_0.length; if (length_0 == 0) { return stackTrace; } ste = $parse(this, stack_0[0]); $equals_1(ste.methodName, 'anonymous') || (stackTrace[addIndex++] = ste); for (i = 1; i < length_0; i++) { stackTrace[addIndex++] = $parse(this, stack_0[i]); } return stackTrace; } ; var Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorModern_2_classLit = createForClass('com.google.gwt.core.client.impl', 'StackTraceCreator/CollectorModern', 971); function StackTraceCreator$CollectorModernNoSourceMap(){ } defineClass(469, 971, {}, StackTraceCreator$CollectorModernNoSourceMap); _.createSte = function createSte_0(fileName, method, line, col){ return new StackTraceElement(method, fileName, -1); } ; var Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorModernNoSourceMap_2_classLit = createForClass('com.google.gwt.core.client.impl', 'StackTraceCreator/CollectorModernNoSourceMap', 469); function $appendChild(this$static, newChild){ return this$static.appendChild(newChild); } 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 $removeChild(this$static, oldChild){ return this$static.removeChild(oldChild); } function is(o){ try { return !!o && !!o.nodeType; } catch (e) { return false; } } function $addClassName(this$static, className){ var idx, oldClassName; className = trimClassName(className); oldClassName = this$static.className || ''; idx = indexOfName(oldClassName, className); if (idx == -1) { oldClassName.length > 0?(this$static.className = oldClassName + ' ' + className || '' , undefined):(this$static.className = className || '' , undefined); return true; } return false; } 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 $removeClassName(this$static, className){ var begin, end, idx, newClassName, oldStyle; className = trimClassName(className); oldStyle = this$static.className || ''; 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); this$static.className = 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 $setInnerHTML(this$static, html){ this$static.innerHTML = html || ''; } 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 || (checkCriticalStringElementIndex(idx - 1, nameList.length) , nameList.charCodeAt(idx - 1) == 32)) { last = idx + name_0.length; lastPos = nameList.length; if (last == lastPos || last < lastPos && (checkCriticalStringElementIndex(last, nameList.length) , 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 $setHref(this$static, href_0){ this$static.href = href_0; } function $setHeight_0(this$static, height){ this$static.height = height; } function $setWidth_0(this$static, width_0){ this$static.width = width_0; } function $createCheckInputElement(doc){ var e = doc.createElement('INPUT'); e.type = 'checkbox'; e.value = 'on'; return e; } function $createInputElement(doc, type_0){ var e = doc.createElement('INPUT'); e.type = type_0; return e; } function $getFirstChildElement(elem){ var child = elem.firstChild; while (child && child.nodeType != 1) child = child.nextSibling; return child; } function $getParentElement(node){ var parent_0 = node.parentNode; (!parent_0 || parent_0.nodeType != 1) && (parent_0 = null); return parent_0; } function $createInputRadioElement(doc, name_0){ var elem = doc.createElement('INPUT'); elem.type = 'radio'; elem.name = name_0; elem.value = 'on'; return elem; } function $eventGetButton(evt){ var button = evt.button; if (button == 1) { return 4; } else if (button == 2) { return 2; } return 1; } function $setInnerText(elem, text_0){ elem.textContent = text_0 || ''; } function $createScriptElement(doc, source){ var elem; elem = doc.createElement('script'); elem.textContent = source || ''; return elem; } function $eventGetMouseWheelVelocityY(evt){ return Math.round(-evt.wheelDelta / 40) || 0; } function $isRTL(elem){ return elem.ownerDocument.defaultView.getComputedStyle(elem, '').direction == 'rtl'; } function $getAbsoluteLeft_0(elem){ var left; left = $getBoundingClientRectLeft(elem) + $wnd.pageXOffset; $isRTL(elem) && (left += $getParentOffsetDelta(elem)); return left | 0; } function $getBoundingClientRectLeft(elem){ try { return elem.getBoundingClientRect().left; } catch (e) { return 0; } } function $getBoundingClientRectTop(elem){ try { return elem.getBoundingClientRect().top; } catch (e) { return 0; } } function $getParentOffsetDelta(elem){ var offsetParent = elem.offsetParent; if (offsetParent) { return offsetParent.offsetWidth - offsetParent.clientWidth; } return 0; } function $getScrollLeft(elem){ var left; left = (elem.scrollLeft || 0) | 0; $isRTL(elem) && (left = -left); return left; } function $getTabIndex(elem){ return elem.tabIndex < $intern_8?elem.tabIndex:-(elem.tabIndex % $intern_8) - 1; } function $selectRemoveOption(select, index_0){ try { select.remove(index_0); } catch (e) { select.removeChild(select.childNodes[index_0]); } } function $setScrollLeft(elem, left){ $isRTL(elem) && (left = -left); elem.scrollLeft = left; } function isOrHasChildImpl(parent_0, child){ if (parent_0.nodeType != 1 && parent_0.nodeType != 9) { return parent_0 == child; } if (child.nodeType != 1) { child = child.parentNode; if (!child) { return false; } } if (parent_0.nodeType == 9) { return parent_0 === child || parent_0.body && parent_0.body.contains(child); } else { return parent_0 === child || parent_0.contains(child); } } function $createUniqueId(this$static){ !this$static.gwt_uid && (this$static.gwt_uid = 1); return 'gwt-uid-' + this$static.gwt_uid++; } function $getClientHeight(this$static){ return ($equals_1(this$static.compatMode, 'CSS1Compat')?this$static.documentElement:this$static.body).clientHeight | 0; } function $getClientWidth(this$static){ return ($equals_1(this$static.compatMode, 'CSS1Compat')?this$static.documentElement:this$static.body).clientWidth | 0; } function $getScrollHeight(this$static){ return (($equals_1(this$static.compatMode, 'CSS1Compat')?this$static.documentElement:this$static.body).scrollHeight || 0) | 0; } function $getScrollWidth(this$static){ return (($equals_1(this$static.compatMode, 'CSS1Compat')?this$static.documentElement:this$static.body).scrollWidth || 0) | 0; } function $setTitle_0(this$static, title_0){ this$static.title = title_0; } function $setChecked(this$static, checked){ this$static.checked = checked; } function $setDefaultChecked(this$static, defaultChecked){ this$static.defaultChecked = defaultChecked; } function $setDisabled(this$static, disabled){ this$static.disabled = disabled; } function $setName(this$static, name_0){ this$static.name = name_0; } function $setHtmlFor(this$static, htmlFor){ this$static.htmlFor = htmlFor; } function $setSelectedIndex(this$static, index_0){ this$static.selectedIndex = index_0; } function $setSize(this$static, size_0){ this$static.size = size_0; } function $clinit_Style$BorderStyle(){ $clinit_Style$BorderStyle = emptyMethod; NONE = new Style$BorderStyle$1; DOTTED = new Style$BorderStyle$2; DASHED = new Style$BorderStyle$3; HIDDEN_0 = 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_1(){ $clinit_Style$BorderStyle(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$BorderStyle_2_classLit, 1), $intern_3, 150, 0, [NONE, DOTTED, DASHED, HIDDEN_0, SOLID]); } defineClass(150, 15, $intern_9); var DASHED, DOTTED, HIDDEN_0, NONE, SOLID; var Lcom_google_gwt_dom_client_Style$BorderStyle_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/BorderStyle', 150, values_1); function Style$BorderStyle$1(){ Style$BorderStyle.call(this, 'NONE', 0); } defineClass(584, 150, $intern_9, Style$BorderStyle$1); var Lcom_google_gwt_dom_client_Style$BorderStyle$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/BorderStyle/1', 584, null); function Style$BorderStyle$2(){ Style$BorderStyle.call(this, 'DOTTED', 1); } defineClass(585, 150, $intern_9, Style$BorderStyle$2); var Lcom_google_gwt_dom_client_Style$BorderStyle$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/BorderStyle/2', 585, null); function Style$BorderStyle$3(){ Style$BorderStyle.call(this, 'DASHED', 2); } defineClass(586, 150, $intern_9, Style$BorderStyle$3); var Lcom_google_gwt_dom_client_Style$BorderStyle$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/BorderStyle/3', 586, null); function Style$BorderStyle$4(){ Style$BorderStyle.call(this, 'HIDDEN', 3); } defineClass(587, 150, $intern_9, Style$BorderStyle$4); var Lcom_google_gwt_dom_client_Style$BorderStyle$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/BorderStyle/4', 587, null); function Style$BorderStyle$5(){ Style$BorderStyle.call(this, 'SOLID', 4); } defineClass(588, 150, $intern_9, Style$BorderStyle$5); var Lcom_google_gwt_dom_client_Style$BorderStyle$5_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/BorderStyle/5', 588, null); function $clinit_Style$Cursor(){ $clinit_Style$Cursor = emptyMethod; DEFAULT = new Style$Cursor$1; AUTO = new Style$Cursor$2; CROSSHAIR = new Style$Cursor$3; POINTER = new Style$Cursor$4; MOVE = new Style$Cursor$5; E_RESIZE = new Style$Cursor$6; NE_RESIZE = new Style$Cursor$7; NW_RESIZE = new Style$Cursor$8; N_RESIZE = new Style$Cursor$9; SE_RESIZE = new Style$Cursor$10; SW_RESIZE = new Style$Cursor$11; S_RESIZE = new Style$Cursor$12; W_RESIZE = new Style$Cursor$13; TEXT = new Style$Cursor$14; WAIT = new Style$Cursor$15; HELP = new Style$Cursor$16; COL_RESIZE = new Style$Cursor$17; ROW_RESIZE = new Style$Cursor$18; } function Style$Cursor(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function values_2(){ $clinit_Style$Cursor(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$Cursor_2_classLit, 1), $intern_3, 46, 0, [DEFAULT, AUTO, CROSSHAIR, POINTER, MOVE, E_RESIZE, NE_RESIZE, NW_RESIZE, N_RESIZE, SE_RESIZE, SW_RESIZE, S_RESIZE, W_RESIZE, TEXT, WAIT, HELP, COL_RESIZE, ROW_RESIZE]); } defineClass(46, 15, $intern_10); var AUTO, COL_RESIZE, CROSSHAIR, DEFAULT, E_RESIZE, HELP, MOVE, NE_RESIZE, NW_RESIZE, N_RESIZE, POINTER, ROW_RESIZE, SE_RESIZE, SW_RESIZE, S_RESIZE, TEXT, WAIT, W_RESIZE; var Lcom_google_gwt_dom_client_Style$Cursor_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor', 46, values_2); function Style$Cursor$1(){ Style$Cursor.call(this, 'DEFAULT', 0); } defineClass(589, 46, $intern_10, Style$Cursor$1); var Lcom_google_gwt_dom_client_Style$Cursor$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/1', 589, null); function Style$Cursor$10(){ Style$Cursor.call(this, 'SE_RESIZE', 9); } defineClass(598, 46, $intern_10, Style$Cursor$10); var Lcom_google_gwt_dom_client_Style$Cursor$10_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/10', 598, null); function Style$Cursor$11(){ Style$Cursor.call(this, 'SW_RESIZE', 10); } defineClass(599, 46, $intern_10, Style$Cursor$11); var Lcom_google_gwt_dom_client_Style$Cursor$11_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/11', 599, null); function Style$Cursor$12(){ Style$Cursor.call(this, 'S_RESIZE', 11); } defineClass(600, 46, $intern_10, Style$Cursor$12); var Lcom_google_gwt_dom_client_Style$Cursor$12_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/12', 600, null); function Style$Cursor$13(){ Style$Cursor.call(this, 'W_RESIZE', 12); } defineClass(601, 46, $intern_10, Style$Cursor$13); var Lcom_google_gwt_dom_client_Style$Cursor$13_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/13', 601, null); function Style$Cursor$14(){ Style$Cursor.call(this, 'TEXT', 13); } defineClass(602, 46, $intern_10, Style$Cursor$14); var Lcom_google_gwt_dom_client_Style$Cursor$14_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/14', 602, null); function Style$Cursor$15(){ Style$Cursor.call(this, 'WAIT', 14); } defineClass(603, 46, $intern_10, Style$Cursor$15); var Lcom_google_gwt_dom_client_Style$Cursor$15_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/15', 603, null); function Style$Cursor$16(){ Style$Cursor.call(this, 'HELP', 15); } defineClass(604, 46, $intern_10, Style$Cursor$16); var Lcom_google_gwt_dom_client_Style$Cursor$16_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/16', 604, null); function Style$Cursor$17(){ Style$Cursor.call(this, 'COL_RESIZE', 16); } defineClass(605, 46, $intern_10, Style$Cursor$17); var Lcom_google_gwt_dom_client_Style$Cursor$17_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/17', 605, null); function Style$Cursor$18(){ Style$Cursor.call(this, 'ROW_RESIZE', 17); } defineClass(606, 46, $intern_10, Style$Cursor$18); var Lcom_google_gwt_dom_client_Style$Cursor$18_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/18', 606, null); function Style$Cursor$2(){ Style$Cursor.call(this, 'AUTO', 1); } defineClass(590, 46, $intern_10, Style$Cursor$2); var Lcom_google_gwt_dom_client_Style$Cursor$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/2', 590, null); function Style$Cursor$3(){ Style$Cursor.call(this, 'CROSSHAIR', 2); } defineClass(591, 46, $intern_10, Style$Cursor$3); var Lcom_google_gwt_dom_client_Style$Cursor$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/3', 591, null); function Style$Cursor$4(){ Style$Cursor.call(this, 'POINTER', 3); } defineClass(592, 46, $intern_10, Style$Cursor$4); var Lcom_google_gwt_dom_client_Style$Cursor$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/4', 592, null); function Style$Cursor$5(){ Style$Cursor.call(this, 'MOVE', 4); } defineClass(593, 46, $intern_10, Style$Cursor$5); var Lcom_google_gwt_dom_client_Style$Cursor$5_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/5', 593, null); function Style$Cursor$6(){ Style$Cursor.call(this, 'E_RESIZE', 5); } defineClass(594, 46, $intern_10, Style$Cursor$6); var Lcom_google_gwt_dom_client_Style$Cursor$6_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/6', 594, null); function Style$Cursor$7(){ Style$Cursor.call(this, 'NE_RESIZE', 6); } defineClass(595, 46, $intern_10, Style$Cursor$7); var Lcom_google_gwt_dom_client_Style$Cursor$7_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/7', 595, null); function Style$Cursor$8(){ Style$Cursor.call(this, 'NW_RESIZE', 7); } defineClass(596, 46, $intern_10, Style$Cursor$8); var Lcom_google_gwt_dom_client_Style$Cursor$8_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/8', 596, null); function Style$Cursor$9(){ Style$Cursor.call(this, 'N_RESIZE', 8); } defineClass(597, 46, $intern_10, Style$Cursor$9); var Lcom_google_gwt_dom_client_Style$Cursor$9_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Cursor/9', 597, 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; FLEX = new Style$Display$18; INLINE_FLEX = new Style$Display$19; } function Style$Display(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function values_3(){ $clinit_Style$Display(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$Display_2_classLit, 1), $intern_3, 45, 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, FLEX, INLINE_FLEX]); } defineClass(45, 15, $intern_11); var BLOCK, FLEX, INITIAL, INLINE, INLINE_BLOCK, INLINE_FLEX, 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', 45, values_3); function Style$Display$1(){ Style$Display.call(this, 'NONE', 0); } defineClass(607, 45, $intern_11, Style$Display$1); _.getCssName = function getCssName(){ return 'none'; } ; var Lcom_google_gwt_dom_client_Style$Display$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/1', 607, null); function Style$Display$10(){ Style$Display.call(this, 'TABLE_COLUMN_GROUP', 9); } defineClass(616, 45, $intern_11, Style$Display$10); _.getCssName = function getCssName_0(){ return 'table-column-group'; } ; var Lcom_google_gwt_dom_client_Style$Display$10_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/10', 616, null); function Style$Display$11(){ Style$Display.call(this, 'TABLE_HEADER_GROUP', 10); } defineClass(617, 45, $intern_11, Style$Display$11); _.getCssName = function getCssName_1(){ return 'table-header-group'; } ; var Lcom_google_gwt_dom_client_Style$Display$11_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/11', 617, null); function Style$Display$12(){ Style$Display.call(this, 'TABLE_FOOTER_GROUP', 11); } defineClass(618, 45, $intern_11, Style$Display$12); _.getCssName = function getCssName_2(){ return 'table-footer-group'; } ; var Lcom_google_gwt_dom_client_Style$Display$12_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/12', 618, null); function Style$Display$13(){ Style$Display.call(this, 'TABLE_ROW_GROUP', 12); } defineClass(619, 45, $intern_11, Style$Display$13); _.getCssName = function getCssName_3(){ return 'table-row-group'; } ; var Lcom_google_gwt_dom_client_Style$Display$13_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/13', 619, null); function Style$Display$14(){ Style$Display.call(this, 'TABLE_CELL', 13); } defineClass(620, 45, $intern_11, Style$Display$14); _.getCssName = function getCssName_4(){ return 'table-cell'; } ; var Lcom_google_gwt_dom_client_Style$Display$14_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/14', 620, null); function Style$Display$15(){ Style$Display.call(this, 'TABLE_COLUMN', 14); } defineClass(621, 45, $intern_11, Style$Display$15); _.getCssName = function getCssName_5(){ return 'table-column'; } ; var Lcom_google_gwt_dom_client_Style$Display$15_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/15', 621, null); function Style$Display$16(){ Style$Display.call(this, 'TABLE_ROW', 15); } defineClass(622, 45, $intern_11, Style$Display$16); _.getCssName = function getCssName_6(){ return 'table-row'; } ; var Lcom_google_gwt_dom_client_Style$Display$16_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/16', 622, null); function Style$Display$17(){ Style$Display.call(this, 'INITIAL', 16); } defineClass(623, 45, $intern_11, Style$Display$17); _.getCssName = function getCssName_7(){ return 'initial'; } ; var Lcom_google_gwt_dom_client_Style$Display$17_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/17', 623, null); function Style$Display$18(){ Style$Display.call(this, 'FLEX', 17); } defineClass(624, 45, $intern_11, Style$Display$18); _.getCssName = function getCssName_8(){ return 'flex'; } ; var Lcom_google_gwt_dom_client_Style$Display$18_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/18', 624, null); function Style$Display$19(){ Style$Display.call(this, 'INLINE_FLEX', 18); } defineClass(625, 45, $intern_11, Style$Display$19); _.getCssName = function getCssName_9(){ return 'inline-flex'; } ; var Lcom_google_gwt_dom_client_Style$Display$19_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/19', 625, null); function Style$Display$2(){ Style$Display.call(this, 'BLOCK', 1); } defineClass(608, 45, $intern_11, Style$Display$2); _.getCssName = function getCssName_10(){ return 'block'; } ; var Lcom_google_gwt_dom_client_Style$Display$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/2', 608, null); function Style$Display$3(){ Style$Display.call(this, 'INLINE', 2); } defineClass(609, 45, $intern_11, Style$Display$3); _.getCssName = function getCssName_11(){ return 'inline'; } ; var Lcom_google_gwt_dom_client_Style$Display$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/3', 609, null); function Style$Display$4(){ Style$Display.call(this, 'INLINE_BLOCK', 3); } defineClass(610, 45, $intern_11, Style$Display$4); _.getCssName = function getCssName_12(){ return 'inline-block'; } ; var Lcom_google_gwt_dom_client_Style$Display$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/4', 610, null); function Style$Display$5(){ Style$Display.call(this, 'INLINE_TABLE', 4); } defineClass(611, 45, $intern_11, Style$Display$5); _.getCssName = function getCssName_13(){ return 'inline-table'; } ; var Lcom_google_gwt_dom_client_Style$Display$5_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/5', 611, null); function Style$Display$6(){ Style$Display.call(this, 'LIST_ITEM', 5); } defineClass(612, 45, $intern_11, Style$Display$6); _.getCssName = function getCssName_14(){ return 'list-item'; } ; var Lcom_google_gwt_dom_client_Style$Display$6_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/6', 612, null); function Style$Display$7(){ Style$Display.call(this, 'RUN_IN', 6); } defineClass(613, 45, $intern_11, Style$Display$7); _.getCssName = function getCssName_15(){ return 'run-in'; } ; var Lcom_google_gwt_dom_client_Style$Display$7_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/7', 613, null); function Style$Display$8(){ Style$Display.call(this, 'TABLE', 7); } defineClass(614, 45, $intern_11, Style$Display$8); _.getCssName = function getCssName_16(){ return 'table'; } ; var Lcom_google_gwt_dom_client_Style$Display$8_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/8', 614, null); function Style$Display$9(){ Style$Display.call(this, 'TABLE_CAPTION', 8); } defineClass(615, 45, $intern_11, Style$Display$9); _.getCssName = function getCssName_17(){ return 'table-caption'; } ; var Lcom_google_gwt_dom_client_Style$Display$9_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/9', 615, null); function $clinit_Style$FontWeight(){ $clinit_Style$FontWeight = emptyMethod; NORMAL = new Style$FontWeight$1; BOLD = new Style$FontWeight$2; BOLDER = new Style$FontWeight$3; LIGHTER = new Style$FontWeight$4; } function Style$FontWeight(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function values_4(){ $clinit_Style$FontWeight(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$FontWeight_2_classLit, 1), $intern_3, 161, 0, [NORMAL, BOLD, BOLDER, LIGHTER]); } defineClass(161, 15, $intern_12); var BOLD, BOLDER, LIGHTER, NORMAL; var Lcom_google_gwt_dom_client_Style$FontWeight_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/FontWeight', 161, values_4); function Style$FontWeight$1(){ Style$FontWeight.call(this, 'NORMAL', 0); } defineClass(626, 161, $intern_12, Style$FontWeight$1); var Lcom_google_gwt_dom_client_Style$FontWeight$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/FontWeight/1', 626, null); function Style$FontWeight$2(){ Style$FontWeight.call(this, 'BOLD', 1); } defineClass(627, 161, $intern_12, Style$FontWeight$2); var Lcom_google_gwt_dom_client_Style$FontWeight$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/FontWeight/2', 627, null); function Style$FontWeight$3(){ Style$FontWeight.call(this, 'BOLDER', 2); } defineClass(628, 161, $intern_12, Style$FontWeight$3); var Lcom_google_gwt_dom_client_Style$FontWeight$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/FontWeight/3', 628, null); function Style$FontWeight$4(){ Style$FontWeight.call(this, 'LIGHTER', 3); } defineClass(629, 161, $intern_12, Style$FontWeight$4); var Lcom_google_gwt_dom_client_Style$FontWeight$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/FontWeight/4', 629, null); function $clinit_Style$Overflow(){ $clinit_Style$Overflow = emptyMethod; VISIBLE = new Style$Overflow$1; HIDDEN_1 = new Style$Overflow$2; SCROLL = new Style$Overflow$3; AUTO_0 = new Style$Overflow$4; } function Style$Overflow(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function values_5(){ $clinit_Style$Overflow(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$Overflow_2_classLit, 1), $intern_3, 162, 0, [VISIBLE, HIDDEN_1, SCROLL, AUTO_0]); } defineClass(162, 15, $intern_13); var AUTO_0, HIDDEN_1, SCROLL, VISIBLE; var Lcom_google_gwt_dom_client_Style$Overflow_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Overflow', 162, values_5); function Style$Overflow$1(){ Style$Overflow.call(this, 'VISIBLE', 0); } defineClass(630, 162, $intern_13, Style$Overflow$1); var Lcom_google_gwt_dom_client_Style$Overflow$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Overflow/1', 630, null); function Style$Overflow$2(){ Style$Overflow.call(this, 'HIDDEN', 1); } defineClass(631, 162, $intern_13, Style$Overflow$2); var Lcom_google_gwt_dom_client_Style$Overflow$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Overflow/2', 631, null); function Style$Overflow$3(){ Style$Overflow.call(this, 'SCROLL', 2); } defineClass(632, 162, $intern_13, Style$Overflow$3); var Lcom_google_gwt_dom_client_Style$Overflow$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Overflow/3', 632, null); function Style$Overflow$4(){ Style$Overflow.call(this, 'AUTO', 3); } defineClass(633, 162, $intern_13, Style$Overflow$4); var Lcom_google_gwt_dom_client_Style$Overflow$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Overflow/4', 633, 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_6(){ $clinit_Style$Position(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$Position_2_classLit, 1), $intern_3, 163, 0, [STATIC, RELATIVE, ABSOLUTE, FIXED]); } defineClass(163, 15, $intern_14); var ABSOLUTE, FIXED, RELATIVE, STATIC; var Lcom_google_gwt_dom_client_Style$Position_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Position', 163, values_6); function Style$Position$1(){ Style$Position.call(this, 'STATIC', 0); } defineClass(634, 163, $intern_14, Style$Position$1); var Lcom_google_gwt_dom_client_Style$Position$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Position/1', 634, null); function Style$Position$2(){ Style$Position.call(this, 'RELATIVE', 1); } defineClass(635, 163, $intern_14, Style$Position$2); var Lcom_google_gwt_dom_client_Style$Position$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Position/2', 635, null); function Style$Position$3(){ Style$Position.call(this, 'ABSOLUTE', 2); } defineClass(636, 163, $intern_14, Style$Position$3); var Lcom_google_gwt_dom_client_Style$Position$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Position/3', 636, null); function Style$Position$4(){ Style$Position.call(this, 'FIXED', 3); } defineClass(637, 163, $intern_14, Style$Position$4); var Lcom_google_gwt_dom_client_Style$Position$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Position/4', 637, 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_7(){ $clinit_Style$TextAlign(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$TextAlign_2_classLit, 1), $intern_3, 164, 0, [CENTER, JUSTIFY, LEFT, RIGHT]); } defineClass(164, 15, $intern_15); var CENTER, JUSTIFY, LEFT, RIGHT; var Lcom_google_gwt_dom_client_Style$TextAlign_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/TextAlign', 164, values_7); function Style$TextAlign$1(){ Style$TextAlign.call(this, 'CENTER', 0); } defineClass(638, 164, $intern_15, Style$TextAlign$1); var Lcom_google_gwt_dom_client_Style$TextAlign$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/TextAlign/1', 638, null); function Style$TextAlign$2(){ Style$TextAlign.call(this, 'JUSTIFY', 1); } defineClass(639, 164, $intern_15, Style$TextAlign$2); var Lcom_google_gwt_dom_client_Style$TextAlign$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/TextAlign/2', 639, null); function Style$TextAlign$3(){ Style$TextAlign.call(this, 'LEFT', 2); } defineClass(640, 164, $intern_15, Style$TextAlign$3); var Lcom_google_gwt_dom_client_Style$TextAlign$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/TextAlign/3', 640, null); function Style$TextAlign$4(){ Style$TextAlign.call(this, 'RIGHT', 3); } defineClass(641, 164, $intern_15, Style$TextAlign$4); var Lcom_google_gwt_dom_client_Style$TextAlign$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/TextAlign/4', 641, 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_8(){ $clinit_Style$Unit(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$Unit_2_classLit, 1), $intern_3, 103, 0, [PX, PCT, EM, EX, PT, PC, IN, CM, MM]); } defineClass(103, 15, $intern_16); 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', 103, values_8); function Style$Unit$1(){ Style$Unit.call(this, 'PX', 0); } defineClass(575, 103, $intern_16, Style$Unit$1); _.getType_0 = function getType(){ return 'px'; } ; var Lcom_google_gwt_dom_client_Style$Unit$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/1', 575, null); function Style$Unit$2(){ Style$Unit.call(this, 'PCT', 1); } defineClass(576, 103, $intern_16, Style$Unit$2); _.getType_0 = function getType_0(){ return '%'; } ; var Lcom_google_gwt_dom_client_Style$Unit$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/2', 576, null); function Style$Unit$3(){ Style$Unit.call(this, 'EM', 2); } defineClass(577, 103, $intern_16, Style$Unit$3); _.getType_0 = function getType_1(){ return 'em'; } ; var Lcom_google_gwt_dom_client_Style$Unit$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/3', 577, null); function Style$Unit$4(){ Style$Unit.call(this, 'EX', 3); } defineClass(578, 103, $intern_16, Style$Unit$4); _.getType_0 = function getType_2(){ return 'ex'; } ; var Lcom_google_gwt_dom_client_Style$Unit$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/4', 578, null); function Style$Unit$5(){ Style$Unit.call(this, 'PT', 4); } defineClass(579, 103, $intern_16, Style$Unit$5); _.getType_0 = function getType_3(){ return 'pt'; } ; var Lcom_google_gwt_dom_client_Style$Unit$5_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/5', 579, null); function Style$Unit$6(){ Style$Unit.call(this, 'PC', 5); } defineClass(580, 103, $intern_16, Style$Unit$6); _.getType_0 = function getType_4(){ return 'pc'; } ; var Lcom_google_gwt_dom_client_Style$Unit$6_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/6', 580, null); function Style$Unit$7(){ Style$Unit.call(this, 'IN', 6); } defineClass(581, 103, $intern_16, Style$Unit$7); _.getType_0 = function getType_5(){ return 'in'; } ; var Lcom_google_gwt_dom_client_Style$Unit$7_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/7', 581, null); function Style$Unit$8(){ Style$Unit.call(this, 'CM', 7); } defineClass(582, 103, $intern_16, Style$Unit$8); _.getType_0 = function getType_6(){ return 'cm'; } ; var Lcom_google_gwt_dom_client_Style$Unit$8_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/8', 582, null); function Style$Unit$9(){ Style$Unit.call(this, 'MM', 8); } defineClass(583, 103, $intern_16, Style$Unit$9); _.getType_0 = function getType_7(){ return 'mm'; } ; var Lcom_google_gwt_dom_client_Style$Unit$9_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/9', 583, null); function $clinit_Style$Visibility(){ $clinit_Style$Visibility = emptyMethod; VISIBLE_0 = new Style$Visibility$1; HIDDEN_2 = new Style$Visibility$2; } function Style$Visibility(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function values_9(){ $clinit_Style$Visibility(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$Visibility_2_classLit, 1), $intern_3, 218, 0, [VISIBLE_0, HIDDEN_2]); } defineClass(218, 15, $intern_17); var HIDDEN_2, VISIBLE_0; var Lcom_google_gwt_dom_client_Style$Visibility_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Visibility', 218, values_9); function Style$Visibility$1(){ Style$Visibility.call(this, 'VISIBLE', 0); } defineClass(642, 218, $intern_17, Style$Visibility$1); var Lcom_google_gwt_dom_client_Style$Visibility$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Visibility/1', 642, null); function Style$Visibility$2(){ Style$Visibility.call(this, 'HIDDEN', 1); } defineClass(643, 218, $intern_17, Style$Visibility$2); var Lcom_google_gwt_dom_client_Style$Visibility$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Visibility/2', 643, null); function $clinit_Style$WhiteSpace(){ $clinit_Style$WhiteSpace = emptyMethod; NORMAL_0 = 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_10(){ $clinit_Style$WhiteSpace(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$WhiteSpace_2_classLit, 1), $intern_3, 151, 0, [NORMAL_0, NOWRAP, PRE, PRE_LINE, PRE_WRAP]); } defineClass(151, 15, $intern_18); var NORMAL_0, NOWRAP, PRE, PRE_LINE, PRE_WRAP; var Lcom_google_gwt_dom_client_Style$WhiteSpace_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/WhiteSpace', 151, values_10); function Style$WhiteSpace$1(){ Style$WhiteSpace.call(this, 'NORMAL', 0); } defineClass(644, 151, $intern_18, Style$WhiteSpace$1); var Lcom_google_gwt_dom_client_Style$WhiteSpace$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/WhiteSpace/1', 644, null); function Style$WhiteSpace$2(){ Style$WhiteSpace.call(this, 'NOWRAP', 1); } defineClass(645, 151, $intern_18, Style$WhiteSpace$2); var Lcom_google_gwt_dom_client_Style$WhiteSpace$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/WhiteSpace/2', 645, null); function Style$WhiteSpace$3(){ Style$WhiteSpace.call(this, 'PRE', 2); } defineClass(646, 151, $intern_18, Style$WhiteSpace$3); var Lcom_google_gwt_dom_client_Style$WhiteSpace$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/WhiteSpace/3', 646, null); function Style$WhiteSpace$4(){ Style$WhiteSpace.call(this, 'PRE_LINE', 3); } defineClass(647, 151, $intern_18, Style$WhiteSpace$4); var Lcom_google_gwt_dom_client_Style$WhiteSpace$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/WhiteSpace/4', 647, null); function Style$WhiteSpace$5(){ Style$WhiteSpace.call(this, 'PRE_WRAP', 4); } defineClass(648, 151, $intern_18, Style$WhiteSpace$5); var Lcom_google_gwt_dom_client_Style$WhiteSpace$5_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/WhiteSpace/5', 648, null); function $setRows(this$static, rows_0){ this$static.rows = rows_0; } function $getRelativeX(this$static, target){ return ((this$static.clientX || 0) | 0) - $getAbsoluteLeft_0(target) + $getScrollLeft(target) + ($wnd.pageXOffset | 0); } defineClass(977, 1, {}); _.toString_0 = function toString_4(){ return 'An event type'; } ; var Lcom_google_web_bindery_event_shared_Event_2_classLit = createForClass('com.google.web.bindery.event.shared', 'Event', 977); function $overrideSource(this$static, source){ this$static.source = source; } defineClass(978, 977, {}); _.revive = function revive(){ this.dead = false; this.source = null; } ; _.dead = false; var Lcom_google_gwt_event_shared_GwtEvent_2_classLit = createForClass('com.google.gwt.event.shared', 'GwtEvent', 978); 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 = $unsafeGet(registered, nativeEvent.type); if (types) { for (type$iterator = types.iterator(); type$iterator.hasNext_0();) { type_0 = type$iterator.next_1(); currentNative = type_0.flyweight.nativeEvent; currentRelativeElem = type_0.flyweight.relativeElem; $setNativeEvent(type_0.flyweight, nativeEvent); $setRelativeElement(type_0.flyweight, relativeElem); $fireEvent(handlerSource, type_0.flyweight); $setNativeEvent(type_0.flyweight, currentNative); $setRelativeElement(type_0.flyweight, currentRelativeElem); } } } } defineClass(984, 978, {}); _.getAssociatedType = function getAssociatedType(){ return this.getAssociatedType_0(); } ; var registered; var Lcom_google_gwt_event_dom_client_DomEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'DomEvent', 984); function $clinit_BlurEvent(){ $clinit_BlurEvent = emptyMethod; TYPE = new DomEvent$Type('blur', new BlurEvent); } function BlurEvent(){ } defineClass(832, 984, {}, BlurEvent); _.dispatch = function dispatch(handler){ !handler.this$01.shownChildMenu && $selectItem(handler.this$01, null); } ; _.getAssociatedType_0 = function getAssociatedType_0(){ return TYPE; } ; var TYPE; var Lcom_google_gwt_event_dom_client_BlurEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'BlurEvent', 832); function $clinit_ChangeEvent(){ $clinit_ChangeEvent = emptyMethod; TYPE_0 = new DomEvent$Type('change', new ChangeEvent); } function ChangeEvent(){ } defineClass(801, 984, {}, ChangeEvent); _.dispatch = function dispatch_0(handler){ handler.onChange(this); } ; _.getAssociatedType_0 = function getAssociatedType_1(){ return TYPE_0; } ; var TYPE_0; var Lcom_google_gwt_event_dom_client_ChangeEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'ChangeEvent', 801); defineClass(985, 984, {}); var Lcom_google_gwt_event_dom_client_HumanInputEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'HumanInputEvent', 985); function $getX(this$static){ var e, relativeElem; relativeElem = this$static.relativeElem; if (relativeElem) { return e = this$static.nativeEvent , ((e.clientX || 0) | 0) - $getAbsoluteLeft_0(relativeElem) + $getScrollLeft(relativeElem) + ($wnd.pageXOffset | 0); } return (this$static.nativeEvent.clientX || 0) | 0; } function $getY(this$static){ var e, relativeElem; relativeElem = this$static.relativeElem; if (relativeElem) { return e = this$static.nativeEvent , ((e.clientY || 0) | 0) - ($getBoundingClientRectTop(relativeElem) + $wnd.pageYOffset | 0) + ((relativeElem.scrollTop || 0) | 0) + ($wnd.pageYOffset | 0); } return (this$static.nativeEvent.clientY || 0) | 0; } defineClass(986, 985, {}); var Lcom_google_gwt_event_dom_client_MouseEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'MouseEvent', 986); function $clinit_ClickEvent(){ $clinit_ClickEvent = emptyMethod; TYPE_1 = new DomEvent$Type('click', new ClickEvent); } function ClickEvent(){ } defineClass(680, 986, {}, ClickEvent); _.dispatch = function dispatch_1(handler){ handler.onClick(this); } ; _.getAssociatedType_0 = function getAssociatedType_2(){ return TYPE_1; } ; var TYPE_1; var Lcom_google_gwt_event_dom_client_ClickEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'ClickEvent', 680); function $clinit_ContextMenuEvent(){ $clinit_ContextMenuEvent = emptyMethod; TYPE_2 = new DomEvent$Type('contextmenu', new ContextMenuEvent); } function ContextMenuEvent(){ } defineClass(708, 984, {}, ContextMenuEvent); _.dispatch = function dispatch_2(handler){ $onContextMenu(handler, this); } ; _.getAssociatedType_0 = function getAssociatedType_3(){ return TYPE_2; } ; var TYPE_2; var Lcom_google_gwt_event_dom_client_ContextMenuEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'ContextMenuEvent', 708); defineClass(484, 1, {}); _.hashCode_0 = function hashCode_2(){ return this.index_0; } ; _.toString_0 = function toString_5(){ 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', 484); function GwtEvent$Type(){ this.index_0 = ++nextHashCode; } defineClass(158, 484, {}, GwtEvent$Type); var Lcom_google_gwt_event_shared_GwtEvent$Type_2_classLit = createForClass('com.google.gwt.event.shared', 'GwtEvent/Type', 158); function DomEvent$Type(eventName, flyweight){ var types; GwtEvent$Type.call(this); this.flyweight = flyweight; !registered && (registered = new PrivateMap); types = $unsafeGet(registered, eventName); if (!types) { types = new ArrayList; $unsafePut(registered, eventName, types); } types.add_1(this); this.name_0 = eventName; } defineClass(104, 158, {104:1}, DomEvent$Type); var Lcom_google_gwt_event_dom_client_DomEvent$Type_2_classLit = createForClass('com.google.gwt.event.dom.client', 'DomEvent/Type', 104); function $clinit_DoubleClickEvent(){ $clinit_DoubleClickEvent = emptyMethod; TYPE_3 = new DomEvent$Type('dblclick', new DoubleClickEvent); } function DoubleClickEvent(){ } defineClass(811, 986, {}, DoubleClickEvent); _.dispatch = function dispatch_3(handler){ handler.onDoubleClick(this); } ; _.getAssociatedType_0 = function getAssociatedType_4(){ return TYPE_3; } ; var TYPE_3; var Lcom_google_gwt_event_dom_client_DoubleClickEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'DoubleClickEvent', 811); defineClass(988, 984, {}); var Lcom_google_gwt_event_dom_client_KeyEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'KeyEvent', 988); defineClass(989, 988, {}); var Lcom_google_gwt_event_dom_client_KeyCodeEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'KeyCodeEvent', 989); function maybeSwapArrowKeysForRtl(code_0, isRtl){ isRtl && (code_0 == 39?(code_0 = 37):code_0 == 37 && (code_0 = 39)); return code_0; } function $clinit_KeyDownEvent(){ $clinit_KeyDownEvent = emptyMethod; TYPE_4 = new DomEvent$Type('keydown', new KeyDownEvent); } function KeyDownEvent(){ } defineClass(817, 989, {}, KeyDownEvent); _.dispatch = function dispatch_4(handler){ $onKeyDown(handler, this); } ; _.getAssociatedType_0 = function getAssociatedType_5(){ return TYPE_4; } ; var TYPE_4; var Lcom_google_gwt_event_dom_client_KeyDownEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'KeyDownEvent', 817); function $clinit_KeyPressEvent(){ $clinit_KeyPressEvent = emptyMethod; TYPE_5 = new DomEvent$Type('keypress', new KeyPressEvent); } function KeyPressEvent(){ } defineClass(818, 988, {}, KeyPressEvent); _.dispatch = function dispatch_5(handler){ var cc; !!this.nativeEvent && (this.nativeEvent.preventDefault() , undefined); cc = (this.nativeEvent.charCode || 0) & $intern_8; cc >= 32 && cc < 127 && $setRowShortcut(handler.this$01, handler.val$row2, handler.val$text3, String.fromCharCode(cc)); } ; _.getAssociatedType_0 = function getAssociatedType_6(){ return TYPE_5; } ; var TYPE_5; var Lcom_google_gwt_event_dom_client_KeyPressEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'KeyPressEvent', 818); function $clinit_KeyUpEvent(){ $clinit_KeyUpEvent = emptyMethod; TYPE_6 = new DomEvent$Type('keyup', new KeyUpEvent); } function KeyUpEvent(){ } defineClass(821, 989, {}, KeyUpEvent); _.dispatch = function dispatch_6(handler){ handler.onKeyUp(this); } ; _.getAssociatedType_0 = function getAssociatedType_7(){ return TYPE_6; } ; var TYPE_6; var Lcom_google_gwt_event_dom_client_KeyUpEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'KeyUpEvent', 821); function $clinit_MouseDownEvent(){ $clinit_MouseDownEvent = emptyMethod; TYPE_7 = new DomEvent$Type('mousedown', new MouseDownEvent); } function MouseDownEvent(){ } defineClass(802, 986, {}, MouseDownEvent); _.dispatch = function dispatch_7(handler){ handler.onMouseDown(this); } ; _.getAssociatedType_0 = function getAssociatedType_8(){ return TYPE_7; } ; var TYPE_7; var Lcom_google_gwt_event_dom_client_MouseDownEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'MouseDownEvent', 802); function $clinit_MouseMoveEvent(){ $clinit_MouseMoveEvent = emptyMethod; TYPE_8 = new DomEvent$Type('mousemove', new MouseMoveEvent); } function MouseMoveEvent(){ } defineClass(804, 986, {}, MouseMoveEvent); _.dispatch = function dispatch_8(handler){ handler.onMouseMove(this); } ; _.getAssociatedType_0 = function getAssociatedType_9(){ return TYPE_8; } ; var TYPE_8; var Lcom_google_gwt_event_dom_client_MouseMoveEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'MouseMoveEvent', 804); function $clinit_MouseOutEvent(){ $clinit_MouseOutEvent = emptyMethod; TYPE_9 = new DomEvent$Type('mouseout', new MouseOutEvent); } function MouseOutEvent(){ } defineClass(799, 986, {}, MouseOutEvent); _.dispatch = function dispatch_9(handler){ handler.onMouseOut(this); } ; _.getAssociatedType_0 = function getAssociatedType_10(){ return TYPE_9; } ; var TYPE_9; var Lcom_google_gwt_event_dom_client_MouseOutEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'MouseOutEvent', 799); function $clinit_MouseOverEvent(){ $clinit_MouseOverEvent = emptyMethod; TYPE_10 = new DomEvent$Type('mouseover', new MouseOverEvent); } function MouseOverEvent(){ } defineClass(798, 986, {}, MouseOverEvent); _.dispatch = function dispatch_10(handler){ handler.onMouseOver(this); } ; _.getAssociatedType_0 = function getAssociatedType_11(){ return TYPE_10; } ; var TYPE_10; var Lcom_google_gwt_event_dom_client_MouseOverEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'MouseOverEvent', 798); function $clinit_MouseUpEvent(){ $clinit_MouseUpEvent = emptyMethod; TYPE_11 = new DomEvent$Type('mouseup', new MouseUpEvent); } function MouseUpEvent(){ } defineClass(803, 986, {}, MouseUpEvent); _.dispatch = function dispatch_11(handler){ handler.onMouseUp(this); } ; _.getAssociatedType_0 = function getAssociatedType_12(){ return TYPE_11; } ; var TYPE_11; var Lcom_google_gwt_event_dom_client_MouseUpEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'MouseUpEvent', 803); function $clinit_MouseWheelEvent(){ $clinit_MouseWheelEvent = emptyMethod; TYPE_12 = new DomEvent$Type('mousewheel', new MouseWheelEvent_0); new DomEvent$Type('DOMMouseScroll', new MouseWheelEvent_0); } function MouseWheelEvent_0(){ } defineClass(351, 986, {}, MouseWheelEvent_0); _.dispatch = function dispatch_12(handler){ handler.onMouseWheel(this); } ; _.getAssociatedType_0 = function getAssociatedType_13(){ return TYPE_12; } ; var TYPE_12; var Lcom_google_gwt_event_dom_client_MouseWheelEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'MouseWheelEvent', 351); 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(812, 1, {}, PrivateMap); var Lcom_google_gwt_event_dom_client_PrivateMap_2_classLit = createForClass('com.google.gwt.event.dom.client', 'PrivateMap', 812); defineClass(987, 985, {}); var impl; var Lcom_google_gwt_event_dom_client_TouchEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'TouchEvent', 987); function $clinit_TouchCancelEvent(){ $clinit_TouchCancelEvent = emptyMethod; TYPE_13 = new DomEvent$Type('touchcancel', new TouchCancelEvent); } function TouchCancelEvent(){ } defineClass(810, 987, {}, TouchCancelEvent); _.dispatch = function dispatch_13(handler){ handler.onTouchCancel(this); } ; _.getAssociatedType_0 = function getAssociatedType_14(){ return TYPE_13; } ; var TYPE_13; var Lcom_google_gwt_event_dom_client_TouchCancelEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'TouchCancelEvent', 810); function $clinit_TouchEndEvent(){ $clinit_TouchEndEvent = emptyMethod; TYPE_14 = new DomEvent$Type('touchend', new TouchEndEvent); } function TouchEndEvent(){ } defineClass(809, 987, {}, TouchEndEvent); _.dispatch = function dispatch_14(handler){ handler.onTouchEnd(this); } ; _.getAssociatedType_0 = function getAssociatedType_15(){ return TYPE_14; } ; var TYPE_14; var Lcom_google_gwt_event_dom_client_TouchEndEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'TouchEndEvent', 809); defineClass(806, 1, {}); var Lcom_google_gwt_event_dom_client_TouchEvent$TouchSupportDetector_2_classLit = createForClass('com.google.gwt.event.dom.client', 'TouchEvent/TouchSupportDetector', 806); function TouchEvent$TouchSupportDetectorNo(){ } defineClass(807, 806, {}, TouchEvent$TouchSupportDetectorNo); var Lcom_google_gwt_event_dom_client_TouchEvent$TouchSupportDetectorNo_2_classLit = createForClass('com.google.gwt.event.dom.client', 'TouchEvent/TouchSupportDetectorNo', 807); function $clinit_TouchMoveEvent(){ $clinit_TouchMoveEvent = emptyMethod; TYPE_15 = new DomEvent$Type('touchmove', new TouchMoveEvent); } function TouchMoveEvent(){ } defineClass(808, 987, {}, TouchMoveEvent); _.dispatch = function dispatch_15(handler){ handler.onTouchMove(this); } ; _.getAssociatedType_0 = function getAssociatedType_16(){ return TYPE_15; } ; var TYPE_15; var Lcom_google_gwt_event_dom_client_TouchMoveEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'TouchMoveEvent', 808); function $clinit_TouchStartEvent(){ $clinit_TouchStartEvent = emptyMethod; TYPE_16 = new DomEvent$Type('touchstart', new TouchStartEvent); } function TouchStartEvent(){ } defineClass(805, 987, {}, TouchStartEvent); _.dispatch = function dispatch_16(handler){ handler.onTouchStart(this); } ; _.getAssociatedType_0 = function getAssociatedType_17(){ return TYPE_16; } ; var TYPE_16; var Lcom_google_gwt_event_dom_client_TouchStartEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'TouchStartEvent', 805); function AttachEvent(attached){ this.attached = attached; } function fire_0(source, attached){ var event_0; if (TYPE_17) { event_0 = new AttachEvent(attached); !!source.handlerManager && $fireEvent_0(source.handlerManager, event_0); } } defineClass(895, 978, {}, AttachEvent); _.dispatch = function dispatch_17(handler){ this.attached?$setupBustClickHandler(handler.this$01):$removeBustClickHandler(handler.this$01); } ; _.getAssociatedType = function getAssociatedType_18(){ return TYPE_17; } ; _.attached = false; var TYPE_17; var Lcom_google_gwt_event_logical_shared_AttachEvent_2_classLit = createForClass('com.google.gwt.event.logical.shared', 'AttachEvent', 895); function CloseEvent_0(autoClosed){ this.autoClosed = autoClosed; } function fire_1(source, autoClosed){ var event_0; if (TYPE_18) { event_0 = new CloseEvent_0(autoClosed); source.fireEvent(event_0); } } defineClass(816, 978, {}, CloseEvent_0); _.dispatch = function dispatch_18(handler){ handler.onClose(this); } ; _.getAssociatedType = function getAssociatedType_19(){ return TYPE_18; } ; _.autoClosed = false; var TYPE_18; var Lcom_google_gwt_event_logical_shared_CloseEvent_2_classLit = createForClass('com.google.gwt.event.logical.shared', 'CloseEvent', 816); function ResizeEvent(width_0){ this.width_0 = width_0; } function fire_2(source, width_0){ var event_0; if (TYPE_19) { event_0 = new ResizeEvent(width_0); $fireEvent_0(source, event_0); } } defineClass(566, 978, {}, ResizeEvent); _.dispatch = function dispatch_19(handler){ handler.onResize(this); } ; _.getAssociatedType = function getAssociatedType_20(){ return TYPE_19; } ; _.width_0 = 0; var TYPE_19; var Lcom_google_gwt_event_logical_shared_ResizeEvent_2_classLit = createForClass('com.google.gwt.event.logical.shared', 'ResizeEvent', 566); function ValueChangeEvent(value_0){ this.value_0 = value_0; } function fire_3(source, value_0){ var event_0; if (TYPE_20) { event_0 = new ValueChangeEvent(value_0); source.fireEvent(event_0); } } function fireIfNotEqual(source, oldValue, newValue){ var event_0; if (!!TYPE_20 && oldValue != newValue && (oldValue == null || (checkCriticalNotNull(oldValue) , oldValue != newValue))) { event_0 = new ValueChangeEvent(newValue); !!source.handlerManager && $fireEvent_0(source.handlerManager, event_0); } } defineClass(360, 978, {}, ValueChangeEvent); _.dispatch = function dispatch_20(handler){ handler.onValueChange(this); } ; _.getAssociatedType = function getAssociatedType_21(){ return TYPE_20; } ; var TYPE_20; var Lcom_google_gwt_event_logical_shared_ValueChangeEvent_2_classLit = createForClass('com.google.gwt.event.logical.shared', 'ValueChangeEvent', 360); function $addHandler_0(this$static, type_0, handler){ return new LegacyHandlerWrapper($doAdd(this$static.eventBus, type_0, handler)); } function $fireEvent_0(this$static, event_0){ var e, oldSource; !event_0.dead || event_0.revive(); oldSource = event_0.source; $overrideSource(event_0, this$static.source); try { $doFire(this$static.eventBus, event_0); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 217)) { e = $e0; throw toJs(new UmbrellaException_0(e.causes)); } else throw toJs($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(214, 1, {25:1}, HandlerManager, HandlerManager_0); _.fireEvent = function fireEvent_0(event_0){ $fireEvent_0(this, event_0); } ; var Lcom_google_gwt_event_shared_HandlerManager_2_classLit = createForClass('com.google.gwt.event.shared', 'HandlerManager', 214); defineClass(979, 1, {}); var Lcom_google_web_bindery_event_shared_EventBus_2_classLit = createForClass('com.google.web.bindery.event.shared', 'EventBus', 979); function $defer(this$static, command){ !this$static.deferredDeltas && (this$static.deferredDeltas = new ArrayList); $add_8(this$static.deferredDeltas, command); } function $doAdd(this$static, type_0, handler){ var l_0; if (!type_0) { throw toJs(new NullPointerException_0('Cannot add a handler with a null type')); } if (!handler) { throw toJs(new NullPointerException_0('Cannot add a null handler')); } this$static.firingDepth > 0?$defer(this$static, new SimpleEventBus$2(this$static, type_0, handler)):(l_0 = $ensureHandlerList(this$static, type_0, null) , l_0.add_1(handler)); return new SimpleEventBus$1(this$static, type_0, handler); } function $doAddNow(this$static, type_0, source, handler){ var l_0; l_0 = $ensureHandlerList(this$static, type_0, source); l_0.add_1(handler); } function $doFire(this$static, event_0){ var causes, directHandlers, e, handler, handlers, it; if (!event_0) { throw toJs(new NullPointerException_0('Cannot fire null event')); } try { ++this$static.firingDepth; handlers = (directHandlers = $getHandlerList(this$static, event_0.getAssociatedType(), null) , directHandlers); causes = null; it = this$static.isReverseOrder?handlers.listIterator_0(handlers.size_1()):handlers.listIterator(); while (this$static.isReverseOrder?it.hasPrevious():it.hasNext_0()) { handler = this$static.isReverseOrder?it.previous():it.next_1(); try { event_0.dispatch(handler); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 42)) { e = $e0; !causes && (causes = new HashSet); $put_0(causes.map_0, e, causes); } else throw toJs($e0); } } if (causes) { throw toJs(new UmbrellaException(causes)); } } finally { --this$static.firingDepth; this$static.firingDepth == 0 && $handleQueuedAddsAndRemoves(this$static); } } function $doRemoveNow(this$static, type_0, source, handler){ var l_0, removed, sourceMap; l_0 = $getHandlerList(this$static, type_0, source); removed = l_0.remove_2(handler); removed && l_0.isEmpty() && (sourceMap = $get_1(this$static.map_0, type_0) , $remove_16(sourceMap.hashCodeMap, source) , sourceMap.hashCodeMap.size_0 + sourceMap.stringMap.size_0 == 0 && $remove_7(this$static.map_0, type_0) , undefined); } function $ensureHandlerList(this$static, type_0, source){ var handlers, sourceMap; sourceMap = $get_1(this$static.map_0, type_0); if (!sourceMap) { sourceMap = new HashMap; $put_0(this$static.map_0, type_0, sourceMap); } handlers = getEntryValueOrNull($getEntry(sourceMap.hashCodeMap, source)); if (!handlers) { handlers = new ArrayList; $put_1(sourceMap.hashCodeMap, source, handlers); } return handlers; } function $getHandlerList(this$static, type_0, source){ var handlers, sourceMap; sourceMap = $get_1(this$static.map_0, type_0); if (!sourceMap) { return $clinit_Collections() , $clinit_Collections() , EMPTY_LIST; } handlers = getEntryValueOrNull($getEntry(sourceMap.hashCodeMap, source)); 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 ArrayList$1(this$static.deferredDeltas); c$iterator.i < c$iterator.this$01.array.length;) { c = $next_4(c$iterator); c.execute_1(); } } finally { this$static.deferredDeltas = null; } } } function $isEventHandled_0(this$static, eventKey){ return $containsKey(this$static.map_0, eventKey); } defineClass(486, 979, {}); _.firingDepth = 0; _.isReverseOrder = false; var Lcom_google_web_bindery_event_shared_SimpleEventBus_2_classLit = createForClass('com.google.web.bindery.event.shared', 'SimpleEventBus', 486); 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(487, 486, {}, HandlerManager$Bus); var Lcom_google_gwt_event_shared_HandlerManager$Bus_2_classLit = createForClass('com.google.gwt.event.shared', 'HandlerManager/Bus', 487); function LegacyHandlerWrapper(real){ this.real = real; } defineClass(793, 1, {1006:1}, LegacyHandlerWrapper); var Lcom_google_gwt_event_shared_LegacyHandlerWrapper_2_classLit = createForClass('com.google.gwt.event.shared', 'LegacyHandlerWrapper', 793); function UmbrellaException(causes){ var cause, cause$iterator, i; RuntimeException_1.call(this, makeMessage(causes), causes.isEmpty()?null:causes.iterator().next_1()); this.causes = causes; i = 0; for (cause$iterator = causes.iterator(); cause$iterator.hasNext_0();) { cause = cause$iterator.next_1(); if (i++ == 0) { continue; } $addSuppressed(this, cause); } } function makeMessage(causes){ var b, count, first, t, t$iterator; count = causes.size_1(); if (count == 0) { return null; } b = new StringBuilder_1(count == 1?'Exception caught: ':count + ' exceptions caught: '); first = true; for (t$iterator = causes.iterator(); t$iterator.hasNext_0();) { t = t$iterator.next_1(); first?(first = false):(b.string += '; ' , b); $append_4(b, t.getMessage()); } return b.string; } defineClass(217, 83, $intern_19, UmbrellaException); var Lcom_google_web_bindery_event_shared_UmbrellaException_2_classLit = createForClass('com.google.web.bindery.event.shared', 'UmbrellaException', 217); function UmbrellaException_0(causes){ UmbrellaException.call(this, causes); } defineClass(333, 217, $intern_19, UmbrellaException_0); var Lcom_google_gwt_event_shared_UmbrellaException_2_classLit = createForClass('com.google.gwt.event.shared', 'UmbrellaException', 333); 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 $fireOnResponseReceived(this$static, callback){ var response, xhr; if (!this$static.xmlHttpRequest) { return; } $cancel_0(this$static.timer); xhr = this$static.xmlHttpRequest; this$static.xmlHttpRequest = null; response = new ResponseImpl(xhr); callback.onResponseReceived(this$static, response); } function $fireOnTimeout(this$static){ if (!this$static.xmlHttpRequest) { return; } $cancel_1(this$static); this$static.callback.onError(this$static, new RequestTimeoutException(this$static.timeoutMillis)); } function Request_0(xmlHttpRequest, timeoutMillis, callback){ this.timer = new Request$1(this); if (!xmlHttpRequest) { throw toJs(new NullPointerException); } if (timeoutMillis < 0) { throw toJs(new IllegalArgumentException); } this.callback = callback; this.timeoutMillis = timeoutMillis; this.xmlHttpRequest = xmlHttpRequest; timeoutMillis > 0 && $schedule(this.timer, timeoutMillis); } defineClass(476, 1, {}, Request_0); _.timeoutMillis = 0; var Lcom_google_gwt_http_client_Request_2_classLit = createForClass('com.google.gwt.http.client', 'Request', 476); function Request$1(this$0){ this.this$01 = this$0; Timer.call(this); } defineClass(478, 213, {}, Request$1); _.run = function run_1(){ $fireOnTimeout(this.this$01); } ; var Lcom_google_gwt_http_client_Request$1_2_classLit = createForClass('com.google.gwt.http.client', 'Request/1', 478); function $clinit_RequestBuilder(){ $clinit_RequestBuilder = emptyMethod; new RequestBuilder$Method('DELETE'); GET = new RequestBuilder$Method('GET'); new RequestBuilder$Method('HEAD'); new RequestBuilder$Method('POST'); new RequestBuilder$Method('PUT'); } function $doSend(this$static, callback){ var e, request, requestPermissionException, xmlHttpRequest; xmlHttpRequest = new $wnd.XMLHttpRequest; try { $open(xmlHttpRequest, this$static.httpMethod, this$static.url_0); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 135)) { e = $e0; requestPermissionException = new RequestPermissionException(this$static.url_0); $initCause(requestPermissionException, new RequestException(e.getMessage())); throw toJs(requestPermissionException); } else throw toJs($e0); } xmlHttpRequest.setRequestHeader('Content-Type', 'text/plain; charset=utf-8'); this$static.includeCredentials && (xmlHttpRequest.withCredentials = true , undefined); request = new Request_0(xmlHttpRequest, this$static.timeoutMillis, callback); $setOnReadyStateChange(xmlHttpRequest, new RequestBuilder$1(request, callback)); try { xmlHttpRequest.send(null); } catch ($e1) { $e1 = toJava($e1); if (instanceOf($e1, 135)) { e = $e1; throw toJs(new RequestException(e.getMessage())); } else throw toJs($e1); } return request; } function $sendRequest(this$static, callback){ throwIfNull('callback', callback); return $doSend(this$static, callback); } function RequestBuilder(httpMethod, url_0){ $clinit_RequestBuilder(); RequestBuilder_0.call(this, !httpMethod?null:httpMethod.name_0, url_0); } function RequestBuilder_0(httpMethod, url_0){ throwIfEmptyOrNull('httpMethod', httpMethod); throwIfEmptyOrNull('url', url_0); this.httpMethod = httpMethod; this.url_0 = url_0; } defineClass(231, 1, {}, RequestBuilder); _.includeCredentials = false; _.timeoutMillis = 0; var GET; var Lcom_google_gwt_http_client_RequestBuilder_2_classLit = createForClass('com.google.gwt.http.client', 'RequestBuilder', 231); function RequestBuilder$1(val$request, val$callback){ this.val$request2 = val$request; this.val$callback3 = val$callback; } defineClass(475, 1, {}, RequestBuilder$1); _.onReadyStateChange = function onReadyStateChange(xhr){ if (xhr.readyState == 4) { $clearOnReadyStateChange(xhr); $fireOnResponseReceived(this.val$request2, this.val$callback3); } } ; var Lcom_google_gwt_http_client_RequestBuilder$1_2_classLit = createForClass('com.google.gwt.http.client', 'RequestBuilder/1', 475); function RequestBuilder$Method(name_0){ this.name_0 = name_0; } defineClass(234, 1, {}, RequestBuilder$Method); _.toString_0 = function toString_6(){ return this.name_0; } ; var Lcom_google_gwt_http_client_RequestBuilder$Method_2_classLit = createForClass('com.google.gwt.http.client', 'RequestBuilder/Method', 234); function RequestException(message){ Exception.call(this, message); } defineClass(156, 13, $intern_20, RequestException); var Lcom_google_gwt_http_client_RequestException_2_classLit = createForClass('com.google.gwt.http.client', 'RequestException', 156); function RequestPermissionException(url_0){ RequestException.call(this, 'The URL ' + url_0 + ' is invalid or violates the same-origin security restriction'); } defineClass(567, 156, $intern_20, RequestPermissionException); var Lcom_google_gwt_http_client_RequestPermissionException_2_classLit = createForClass('com.google.gwt.http.client', 'RequestPermissionException', 567); function RequestTimeoutException(timeoutMillis){ RequestException.call(this, 'A request timeout has expired after ' + timeoutMillis + ' ms'); } defineClass(936, 156, $intern_20, RequestTimeoutException); var Lcom_google_gwt_http_client_RequestTimeoutException_2_classLit = createForClass('com.google.gwt.http.client', 'RequestTimeoutException', 936); defineClass(976, 1, {}); var Lcom_google_gwt_http_client_Response_2_classLit = createForClass('com.google.gwt.http.client', 'Response', 976); function ResponseImpl(xmlHttpRequest){ this.xmlHttpRequest = xmlHttpRequest; } defineClass(477, 976, {}, ResponseImpl); var Lcom_google_gwt_http_client_ResponseImpl_2_classLit = createForClass('com.google.gwt.http.client', 'ResponseImpl', 477); function throwIfEmptyOrNull(name_0, value_0){ throwIfNull(name_0, value_0); if (0 == $trim(value_0).length) { throw toJs(new IllegalArgumentException_0(name_0 + ' cannot be empty')); } } function throwIfNull(name_0, value_0){ if (null == value_0) { throw toJs(new NullPointerException_0(name_0 + ' cannot be null')); } } function decodeQueryStringImpl(encodedURLComponent){ var regexp = /\+/g; return decodeURIComponent(encodedURLComponent.replace(regexp, '%20')); } 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_0; } function setDirectionOnElement(elem, direction){ switch (direction.ordinal) { case 0: { elem['dir'] = 'rtl'; break; } case 1: { elem['dir'] = 'ltr'; break; } case 2: { getDirectionOnElement(elem) != ($clinit_HasDirection$Direction() , DEFAULT_0) && (elem['dir'] = '' , undefined); break; } } } function $getDefaultNative(){ return ['USD', 'US$', 2, 'US$', '$']; } function $clinit_DateTimeFormat(){ $clinit_DateTimeFormat = emptyMethod; new HashMap; } function $addPart(this$static, buf, count){ var oldLength; if (buf.string.length > 0) { $add_8(this$static.patternParts, new DateTimeFormat$PatternPart(buf.string, count)); oldLength = buf.string.length; 0 < oldLength?(buf.string = buf.string.substr(0, 0)):0 > oldLength && (buf.string += valueOf_2(initUnidimensionalArray(C_classLit, $intern_21, 7, -oldLength, 15, 1))); } } function $format(this$static, date, timeZone){ var ch_0, diff, i, j, keepDate, keepTime, n, toAppendTo, trailQuote; !timeZone && (timeZone = createTimeZone(date.jsdate.getTimezoneOffset())); diff = (date.jsdate.getTimezoneOffset() - timeZone.standardOffset) * 60000; keepDate = new Date_1(add_2(fromDouble_0(date.jsdate.getTime()), diff)); keepTime = keepDate; if (keepDate.jsdate.getTimezoneOffset() != date.jsdate.getTimezoneOffset()) { diff > 0?(diff -= 86400000):(diff += 86400000); keepTime = new Date_1(add_2(fromDouble_0(date.jsdate.getTime()), diff)); } toAppendTo = new StringBuilder_0; n = this$static.pattern.length; for (i = 0; i < n;) { ch_0 = $charAt_0(this$static.pattern, i); if (ch_0 >= 97 && ch_0 <= 122 || ch_0 >= 65 && ch_0 <= 90) { for (j = i + 1; j < n && $charAt_0(this$static.pattern, j) == ch_0; ++j) ; $subFormat(toAppendTo, ch_0, j - i, keepDate, keepTime, timeZone); i = j; } else if (ch_0 == 39) { ++i; if (i < n && $charAt_0(this$static.pattern, i) == 39) { toAppendTo.string += "'"; ++i; continue; } trailQuote = false; while (!trailQuote) { j = i; while (j < n && $charAt_0(this$static.pattern, j) != 39) { ++j; } if (j >= n) { throw toJs(new IllegalArgumentException_0("Missing trailing '")); } j + 1 < n && $charAt_0(this$static.pattern, j + 1) == 39?++j:(trailQuote = true); $append_4(toAppendTo, $substring_0(this$static.pattern, i, j)); i = j + 1; } } else { toAppendTo.string += String.fromCharCode(ch_0); ++i; } } return toAppendTo.string; } function $formatFractionalSeconds(buf, count, date){ var time, value_0; time = fromDouble_0(date.jsdate.getTime()); if (compare_0(time, 0) < 0) { value_0 = $intern_22 - toInt_0(mod(neg_1(time), $intern_22)); value_0 == $intern_22 && (value_0 = 0); } else { value_0 = toInt_0(mod(time, $intern_22)); } if (count == 1) { value_0 = $wnd.Math.min((value_0 + 50) / 100 | 0, 9); $append_0(buf, 48 + value_0 & $intern_8); } else if (count == 2) { value_0 = $wnd.Math.min((value_0 + 5) / 10 | 0, 99); $zeroPaddingNumber(buf, value_0, 2); } else { $zeroPaddingNumber(buf, value_0, 3); count > 3 && $zeroPaddingNumber(buf, 0, count - 3); } } function $formatMonth(buf, count, date){ var value_0; value_0 = date.jsdate.getMonth(); switch (count) { case 5: $append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'])[value_0]); break; case 4: $append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'])[value_0]); break; case 3: $append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'])[value_0]); break; default:$zeroPaddingNumber(buf, value_0 + 1, count); } } function $formatYear(buf, count, date){ var value_0; value_0 = date.jsdate.getFullYear() - 1900 + 1900; value_0 < 0 && (value_0 = -value_0); switch (count) { case 1: buf.string += value_0; break; case 2: $zeroPaddingNumber(buf, value_0 % 100, 2); break; default:$zeroPaddingNumber(buf, value_0, count); } } function $getNextCharCountInPattern(pattern, start_0){ var ch_0, next; ch_0 = (checkCriticalStringElementIndex(start_0, pattern.length) , pattern.charCodeAt(start_0)); next = start_0 + 1; while (next < pattern.length && (checkCriticalStringElementIndex(next, pattern.length) , pattern.charCodeAt(next) == ch_0)) { ++next; } return next - start_0; } function $identifyAbutStart(this$static){ var abut, i, len; abut = false; len = this$static.patternParts.array.length; for (i = 0; i < len; i++) { if ($isNumeric($get_2(this$static.patternParts, i))) { if (!abut && i + 1 < len && $isNumeric($get_2(this$static.patternParts, i + 1))) { abut = true; $get_2(this$static.patternParts, i).abutStart = true; } } else { abut = false; } } } function $isNumeric(part){ var i; if (part.count <= 0) { return false; } i = $indexOf_1('MLydhHmsSDkK', fromCodePoint($charAt_0(part.text_0, 0))); return i > 1 || i >= 0 && part.count < 3; } function $parsePattern(this$static, pattern){ var buf, ch_0, count, i, inQuote; buf = new StringBuilder_0; inQuote = false; for (i = 0; i < pattern.length; i++) { ch_0 = (checkCriticalStringElementIndex(i, pattern.length) , pattern.charCodeAt(i)); if (ch_0 == 32) { $addPart(this$static, buf, 0); buf.string += ' '; $addPart(this$static, buf, 0); while (i + 1 < pattern.length && (checkCriticalStringElementIndex(i + 1, pattern.length) , pattern.charCodeAt(i + 1) == 32)) { ++i; } continue; } if (inQuote) { if (ch_0 == 39) { if (i + 1 < pattern.length && (checkCriticalStringElementIndex(i + 1, pattern.length) , pattern.charCodeAt(i + 1) == 39)) { buf.string += "'"; ++i; } else { inQuote = false; } } else { buf.string += String.fromCharCode(ch_0); } continue; } if ($indexOf_1('GyMLdkHmsSEcDahKzZv', fromCodePoint(ch_0)) > 0) { $addPart(this$static, buf, 0); buf.string += String.fromCharCode(ch_0); count = $getNextCharCountInPattern(pattern, i); $addPart(this$static, buf, count); i += count - 1; continue; } if (ch_0 == 39) { if (i + 1 < pattern.length && (checkCriticalStringElementIndex(i + 1, pattern.length) , pattern.charCodeAt(i + 1) == 39)) { buf.string += "'"; ++i; } else { inQuote = true; } } else { buf.string += String.fromCharCode(ch_0); } } $addPart(this$static, buf, 0); $identifyAbutStart(this$static); } function $subFormat(buf, ch_0, count, adjustedDate, adjustedTime, timezone){ var value_0, value0, value1, value10, value2, value3, value4, value5, value6, value7, value8, value9; switch (ch_0) { case 71: value0 = adjustedDate.jsdate.getFullYear() - 1900 >= -1900?1:0; count >= 4?$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['Before Christ', 'Anno Domini'])[value0]):$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['BC', 'AD'])[value0]); break; case 121: $formatYear(buf, count, adjustedDate); break; case 77: $formatMonth(buf, count, adjustedDate); break; case 107: value1 = adjustedTime.jsdate.getHours(); value1 == 0?$zeroPaddingNumber(buf, 24, count):$zeroPaddingNumber(buf, value1, count); break; case 83: $formatFractionalSeconds(buf, count, adjustedTime); break; case 69: value2 = adjustedDate.jsdate.getDay(); count == 5?$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['S', 'M', 'T', 'W', 'T', 'F', 'S'])[value2]):count == 4?$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'])[value2]):$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'])[value2]); break; case 97: adjustedTime.jsdate.getHours() >= 12 && adjustedTime.jsdate.getHours() < 24?$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['AM', 'PM'])[1]):$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['AM', 'PM'])[0]); break; case 104: value3 = adjustedTime.jsdate.getHours() % 12; value3 == 0?$zeroPaddingNumber(buf, 12, count):$zeroPaddingNumber(buf, value3, count); break; case 75: value4 = adjustedTime.jsdate.getHours() % 12; $zeroPaddingNumber(buf, value4, count); break; case 72: value5 = adjustedTime.jsdate.getHours(); $zeroPaddingNumber(buf, value5, count); break; case 99: value6 = adjustedDate.jsdate.getDay(); count == 5?$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['S', 'M', 'T', 'W', 'T', 'F', 'S'])[value6]):count == 4?$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'])[value6]):count == 3?$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'])[value6]):$zeroPaddingNumber(buf, value6, 1); break; case 76: value7 = adjustedDate.jsdate.getMonth(); count == 5?$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'])[value7]):count == 4?$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'])[value7]):count == 3?$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'])[value7]):$zeroPaddingNumber(buf, value7 + 1, count); break; case 81: value8 = adjustedDate.jsdate.getMonth() / 3 | 0; count < 4?$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['Q1', 'Q2', 'Q3', 'Q4'])[value8]):$append_4(buf, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'])[value8]); break; case 100: value9 = adjustedDate.jsdate.getDate(); $zeroPaddingNumber(buf, value9, count); break; case 109: value10 = adjustedTime.jsdate.getMinutes(); $zeroPaddingNumber(buf, value10, count); break; case 115: value_0 = adjustedTime.jsdate.getSeconds(); $zeroPaddingNumber(buf, value_0, count); break; case 122: count < 4?$append_4(buf, timezone.tzNames[0]):$append_4(buf, timezone.tzNames[1]); break; case 118: $append_4(buf, timezone.timezoneID); break; case 90: count < 3?$append_4(buf, $getRFCTimeZoneString(timezone)):count == 3?$append_4(buf, $getISOTimeZoneString(timezone)):$append_4(buf, composeGMTString(timezone.standardOffset)); break; default:return false; } return true; } function $zeroPaddingNumber(buf, value_0, minWidth){ var b, i; b = 10; for (i = 0; i < minWidth - 1; i++) { value_0 < b && (buf.string += '0' , buf); b *= 10; } buf.string += value_0; } defineClass(815, 1, {}); var Lcom_google_gwt_i18n_shared_DateTimeFormat_2_classLit = createForClass('com.google.gwt.i18n.shared', 'DateTimeFormat', 815); function $clinit_DateTimeFormat_0(){ $clinit_DateTimeFormat_0 = emptyMethod; $clinit_DateTimeFormat(); cache = new HashMap; } function DateTimeFormat(pattern){ $clinit_DateTimeFormat(); this.patternParts = new ArrayList; this.pattern = pattern; $parsePattern(this, pattern); } function getFormat(pattern, dtfi){ $clinit_DateTimeFormat_0(); var defaultDtfi, dtf; defaultDtfi = $getDateTimeFormatInfo(($clinit_LocaleInfo() , $clinit_LocaleInfo() , instance_0)); dtf = null; dtfi == defaultDtfi && (dtf = $getStringValue(cache, pattern)); if (!dtf) { dtf = new DateTimeFormat(pattern); dtfi == defaultDtfi && $putStringValue(cache, pattern, dtf); } return dtf; } defineClass(353, 815, {353:1}, DateTimeFormat); var cache; var Lcom_google_gwt_i18n_client_DateTimeFormat_2_classLit = createForClass('com.google.gwt.i18n.client', 'DateTimeFormat', 353); defineClass(994, 1, {}); var Lcom_google_gwt_i18n_shared_DefaultDateTimeFormatInfo_2_classLit = createForClass('com.google.gwt.i18n.shared', 'DefaultDateTimeFormatInfo', 994); defineClass(995, 994, {}); var Lcom_google_gwt_i18n_client_DefaultDateTimeFormatInfo_2_classLit = createForClass('com.google.gwt.i18n.client', 'DefaultDateTimeFormatInfo', 995); function $clinit_HasDirection$Direction(){ $clinit_HasDirection$Direction = emptyMethod; RTL = new HasDirection$Direction('RTL', 0); LTR = new HasDirection$Direction('LTR', 1); DEFAULT_0 = new HasDirection$Direction('DEFAULT', 2); } function HasDirection$Direction(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function values_11(){ $clinit_HasDirection$Direction(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_i18n_client_HasDirection$Direction_2_classLit, 1), $intern_3, 237, 0, [RTL, LTR, DEFAULT_0]); } defineClass(237, 15, {237:1, 3:1, 16:1, 15:1}, HasDirection$Direction); var DEFAULT_0, LTR, RTL; var Lcom_google_gwt_i18n_client_HasDirection$Direction_2_classLit = createForEnum('com.google.gwt.i18n.client', 'HasDirection/Direction', 237, values_11); function $clinit_LocaleInfo(){ $clinit_LocaleInfo = emptyMethod; instance_0 = new LocaleInfo; } function $getDateTimeFormatInfo(this$static){ !this$static.dateTimeFormatInfo && (this$static.dateTimeFormatInfo = new DateTimeFormatInfoImpl); return this$static.dateTimeFormatInfo; } function $getNumberConstants(this$static){ !this$static.numberConstants && (this$static.numberConstants = new NumberConstantsImpl_); return this$static.numberConstants; } function LocaleInfo(){ } defineClass(795, 1, {}, LocaleInfo); var instance_0; var Lcom_google_gwt_i18n_client_LocaleInfo_2_classLit = createForClass('com.google.gwt.i18n.client', 'LocaleInfo', 795); function $clinit_NumberFormat(){ $clinit_NumberFormat = emptyMethod; $getNumberConstants(($clinit_LocaleInfo() , $clinit_LocaleInfo() , instance_0)); } function $addExponent(this$static, digits){ var exponentDigits, i; digits.string += 'E'; if (this$static.exponent < 0) { this$static.exponent = -this$static.exponent; digits.string += '-'; } exponentDigits = '' + this$static.exponent; for (i = exponentDigits.length; i < this$static.minExponentDigits; ++i) { digits.string += '0'; } digits.string += exponentDigits; } function $addZeroAndDecimal(this$static, digits, decimalSeparator){ if (this$static.digitsLength == 0) { digits.string = digits.string.substr(0, 0) + '0' + digits.string.substr(0); ++this$static.decimalPosition; ++this$static.digitsLength; } if (this$static.decimalPosition < this$static.digitsLength || this$static.decimalSeparatorAlwaysShown) { $insert_4(digits, this$static.decimalPosition, String.fromCharCode(decimalSeparator)); ++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(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 && $charAt_0(digits.string, 0) == 48) { this$static.exponent = 0; this$static.decimalPosition = this$static.minimumIntegerDigits; } } function $format_0(this$static, number){ var buf, isNegative, preRound, scale; if (isNaN(number)) { return 'NaN'; } isNegative = number < 0 || number == 0 && 1 / number < 0; isNegative && (number = -number); buf = new StringBuilder; if (!isNaN(number) && !isFinite(number)) { $append_4(buf, isNegative?this$static.negativePrefix:this$static.positivePrefix); buf.string += '\u221E'; $append_4(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(buf, preRound, buf.string.length); } $format_1(this$static, isNegative, buf, scale); return buf.string; } function $format_1(this$static, isNegative, digits, scale){ var currentGroupingSize, decimalSeparator, groupingSeparator, useExponent, zeroChar; if (this$static.isCurrencyFormat) { decimalSeparator = (checkCriticalStringElementIndex(0, '.'.length) , '.'.charCodeAt(0)); groupingSeparator = (checkCriticalStringElementIndex(0, ','.length) , ','.charCodeAt(0)); } else { decimalSeparator = (checkCriticalStringElementIndex(0, '.'.length) , '.'.charCodeAt(0)); groupingSeparator = (checkCriticalStringElementIndex(0, ','.length) , ','.charCodeAt(0)); } this$static.exponent = 0; this$static.digitsLength = digits.string.length; this$static.decimalPosition = this$static.digitsLength + scale; useExponent = this$static.useExponentialNotation; currentGroupingSize = this$static.groupingSize; this$static.decimalPosition > $intern_24 && (useExponent = true); useExponent && $computeExponent(this$static, digits); $processLeadingZeros(this$static, digits); $roundValue(this$static, digits); $insertGroupingSeparators(this$static, digits, groupingSeparator, currentGroupingSize); $adjustFractionDigits(this$static, digits); $addZeroAndDecimal(this$static, digits, decimalSeparator); useExponent && $addExponent(this$static, digits); zeroChar = (checkCriticalStringElementIndex(0, '0'.length) , '0'.charCodeAt(0)); zeroChar != 48 && $localizeDigits(digits, zeroChar); $insert_4(digits, 0, isNegative?this$static.negativePrefix:this$static.positivePrefix); $append_4(digits, isNegative?this$static.negativeSuffix:this$static.positiveSuffix); } function $getDigit(ch_0){ var zeroChar; if (48 <= ch_0 && ch_0 <= 57) { return ch_0 - 48; } else { zeroChar = (checkCriticalStringElementIndex(0, '0'.length) , '0'.charCodeAt(0)); return zeroChar <= ch_0 && ch_0 <= zeroChar + 9?ch_0 - zeroChar:-1; } } function $insertGroupingSeparators(this$static, digits, groupingSeparator, g){ var i; if (g > 0) { for (i = g; i < this$static.decimalPosition; i += g + 1) { $insert_4(digits, this$static.decimalPosition - i, String.fromCharCode(groupingSeparator)); ++this$static.decimalPosition; ++this$static.digitsLength; } } } function $localizeDigits(digits, zero){ var ch_0, i, n; n = digits.string.length; for (i = 0; i < n; ++i) { ch_0 = $charAt_0(digits.string, i); ch_0 >= 48 && ch_0 <= 57 && $setCharAt(digits, i, ch_0 - 48 + zero & $intern_8); } } function $parse_0(this$static, text_0){ var pos, result; pos = stampJavaTypeInfo(getClassLiteralForArray(I_classLit, 1), $intern_25, 7, 15, [0]); result = $parse_1(this$static, text_0, pos); if (pos[0] == 0 || pos[0] != text_0.length) { throw toJs(new NumberFormatException(text_0)); } return result; } function $parse_1(this$static, text_0, inOutPos){ var gotNegative, gotNegativePrefix, gotNegativeSuffix, gotPositive, gotPositivePrefix, gotPositiveSuffix, ret, tempPos, valueOnly; gotPositivePrefix = $startsWith_0(text_0, this$static.positivePrefix, inOutPos[0]); gotNegativePrefix = $startsWith_0(text_0, this$static.negativePrefix, inOutPos[0]); gotPositiveSuffix = $endsWith(text_0, this$static.positiveSuffix); gotNegativeSuffix = $endsWith(text_0, this$static.negativeSuffix); gotPositive = gotPositivePrefix && gotPositiveSuffix; gotNegative = gotNegativePrefix && gotNegativeSuffix; if (gotPositive && gotNegative) { this$static.positivePrefix.length > this$static.negativePrefix.length?(gotNegative = false):this$static.positivePrefix.length < this$static.negativePrefix.length?(gotPositive = false):this$static.positiveSuffix.length > this$static.negativeSuffix.length?(gotNegative = false):this$static.positiveSuffix.length < this$static.negativeSuffix.length?(gotPositive = false):(gotNegative = false); } else if (!gotPositive && !gotNegative) { throw toJs(new NumberFormatException(text_0 + ' does not have either positive or negative affixes')); } if (gotPositive) { inOutPos[0] += this$static.positivePrefix.length; valueOnly = $substring_0(text_0, inOutPos[0], text_0.length - this$static.positiveSuffix.length); } else { inOutPos[0] += this$static.negativePrefix.length; valueOnly = $substring_0(text_0, inOutPos[0], text_0.length - this$static.negativeSuffix.length); } if ($equals_1(valueOnly, '\u221E')) { inOutPos[0] += '\u221E'.length; ret = $intern_26; } else if ($equals_1(valueOnly, 'NaN')) { inOutPos[0] += 'NaN'.length; ret = NaN; } else { tempPos = stampJavaTypeInfo(getClassLiteralForArray(I_classLit, 1), $intern_25, 7, 15, [0]); ret = $parseNumber(this$static, valueOnly, tempPos); inOutPos[0] += tempPos[0]; } gotPositive?(inOutPos[0] += this$static.positiveSuffix.length):gotNegative && (inOutPos[0] += this$static.negativeSuffix.length); gotNegative && (ret = -ret); return ret; } function $parseAffix(this$static, pattern, start_0, affix, inNegativePattern){ var ch_0, inQuote, len, pos; $delete(affix, 0, affix.string.length); inQuote = false; len = pattern.length; for (pos = start_0; pos < len; ++pos) { ch_0 = (checkCriticalStringElementIndex(pos, pattern.length) , pattern.charCodeAt(pos)); if (ch_0 == 39) { if (pos + 1 < len && (checkCriticalStringElementIndex(pos + 1, pattern.length) , pattern.charCodeAt(pos + 1) == 39)) { ++pos; affix.string += "'"; } else { inQuote = !inQuote; } continue; } if (inQuote) { affix.string += String.fromCharCode(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 && (checkCriticalStringElementIndex(pos + 1, pattern.length) , pattern.charCodeAt(pos + 1) == 164)) { ++pos; if (pos < len - 2 && (checkCriticalStringElementIndex(pos + 1, pattern.length) , pattern.charCodeAt(pos + 1) == 164) && (checkCriticalStringElementIndex(pos + 2, pattern.length) , pattern.charCodeAt(pos + 2) == 164)) { pos += 2; $append_4(affix, $getSimpleCurrencySymbol(this$static.currencyData)); } else { $append_4(affix, this$static.currencyData[0]); } } else { $append_4(affix, this$static.currencyData[1]); } break; case 37: if (!inNegativePattern) { if (this$static.multiplier != 1) { throw toJs(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 toJs(new IllegalArgumentException_0('Too many percent/per mille characters in pattern "' + pattern + '"')); } this$static.multiplier = $intern_22; } affix.string += '\u2030'; break; case 45: affix.string += '-'; break; default:affix.string += String.fromCharCode(ch_0); } } } return len - start_0; } function $parseNumber(this$static, text_0, pos){ var ch_0, decimal, digit, grouping, normalizedText, ret, sawDecimal, sawDigit, sawExponent, scale; sawDecimal = false; sawExponent = false; sawDigit = false; scale = 1; decimal = this$static.isCurrencyFormat?'.':'.'; grouping = this$static.isCurrencyFormat?',':','; normalizedText = new StringBuilder; for (; pos[0] < text_0.length; ++pos[0]) { ch_0 = $charAt_0(text_0, pos[0]); digit = $getDigit(ch_0); if (digit >= 0 && digit <= 9) { $append_0(normalizedText, digit + 48 & $intern_8); sawDigit = true; } else if (ch_0 == (checkCriticalStringElementIndex(0, decimal.length) , decimal.charCodeAt(0))) { if (sawDecimal || sawExponent) { break; } normalizedText.string += '.'; sawDecimal = true; } else if (ch_0 == (checkCriticalStringElementIndex(0, grouping.length) , grouping.charCodeAt(0))) { if (sawDecimal || sawExponent) { break; } continue; } else if (ch_0 == (checkCriticalStringElementIndex(0, 'E'.length) , 'E'.charCodeAt(0))) { if (sawExponent) { break; } normalizedText.string += 'E'; sawExponent = true; } else if (ch_0 == 43 || ch_0 == 45) { normalizedText.string += String.fromCharCode(ch_0); } else if (ch_0 == (checkCriticalStringElementIndex(0, '%'.length) , '%'.charCodeAt(0))) { if (scale != 1) { break; } scale = 100; if (sawDigit) { ++pos[0]; break; } } else if (ch_0 == (checkCriticalStringElementIndex(0, '\u2030'.length) , '\u2030'.charCodeAt(0))) { if (scale != 1) { break; } scale = $intern_22; if (sawDigit) { ++pos[0]; break; } } else { break; } } try { ret = __parseAndValidateDouble(normalizedText.string); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 147)) { throw toJs(new NumberFormatException(text_0)); } else throw toJs($e0); } ret = ret / scale; return ret; } function $parsePattern_0(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 && (checkCriticalStringElementIndex(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 = (checkCriticalStringElementIndex(pos, pattern.length) , pattern.charCodeAt(pos)); switch (ch_0) { case 35: zeroDigitCount > 0?++digitRightCount:++digitLeftCount; groupingCount >= 0 && decimalPos < 0 && ++groupingCount; break; case 48: if (digitRightCount > 0) { throw toJs(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 toJs(new IllegalArgumentException_0('Multiple decimal separators in pattern "' + pattern + '"')); } decimalPos = digitLeftCount + zeroDigitCount + digitRightCount; break; case 69: if (!ignorePattern) { if (this$static.useExponentialNotation) { throw toJs(new IllegalArgumentException_0('Multiple exponential symbols in pattern "' + pattern + '"')); } this$static.useExponentialNotation = true; this$static.minExponentDigits = 0; } while (pos + 1 < len && (checkCriticalStringElementIndex(pos + 1, pattern.length) , pattern.charCodeAt(pos + 1) == 48)) { ++pos; ignorePattern || ++this$static.minExponentDigits; } if (!ignorePattern && digitLeftCount + zeroDigitCount < 1 || this$static.minExponentDigits < 1) { throw toJs(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 toJs(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, 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_4(digits, 0, prefix.string); } else if (this$static.decimalPosition > this$static.minimumIntegerDigits) { strip = this$static.decimalPosition - this$static.minimumIntegerDigits; for (i = 0; i < strip; ++i) { if ($charAt_0(digits.string, i) != 48) { strip = i; 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){ var carry, digit; carry = true; while (carry && i >= 0) { digit = $charAt_0(digits.string, i); if (digit == 57) { $setCharAt(digits, i--, 48); } else { $setCharAt(digits, i, digit + 1 & $intern_8); carry = false; } } if (carry) { digits.string = digits.string.substr(0, 0) + '1' + digits.string.substr(0); ++this$static.decimalPosition; ++this$static.digitsLength; } } function $roundValue(this$static, digits){ var i; if (this$static.digitsLength > this$static.decimalPosition + this$static.maximumFractionDigits && $charAt(digits, this$static.decimalPosition + this$static.maximumFractionDigits) >= 53) { i = this$static.decimalPosition + this$static.maximumFractionDigits - 1; $propagateCarry(this$static, digits, i); } } function NumberFormat(pattern, cdata, userSuppliedPattern){ if (!cdata) { throw toJs(new IllegalArgumentException_0('Unknown currency code')); } this.pattern = pattern; this.currencyData = cdata; $parsePattern_0(this, this.pattern); if (!userSuppliedPattern && this.isCurrencyFormat) { this.minimumFractionDigits = this.currencyData[2] & 7; this.maximumFractionDigits = this.minimumFractionDigits; } } function NumberFormat_0(pattern, cdata){ $clinit_NumberFormat(); NumberFormat.call(this, pattern, cdata, true); } function toScaledString(buf, val){ var dot, expDigits, expIdx, scale, startLen; startLen = buf.string.length; $append_4(buf, val.toPrecision(20)); scale = 0; expIdx = $indexOf_2(buf.string, 'e', startLen); expIdx < 0 && (expIdx = $indexOf_2(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), 10)); $delete(buf, expIdx, buf.string.length); } dot = $indexOf_2(buf.string, '.', startLen); if (dot >= 0) { buf.string = $substring_0(buf.string, 0, dot) + '' + $substring(buf.string, dot + 1); scale -= buf.string.length - dot; } return scale; } defineClass(191, 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 Lcom_google_gwt_i18n_client_NumberFormat_2_classLit = createForClass('com.google.gwt.i18n.client', 'NumberFormat', 191); function $getISOTimeZoneString(this$static){ var data_0, offset; offset = -this$static.standardOffset; data_0 = stampJavaTypeInfo(getClassLiteralForArray(C_classLit, 1), $intern_21, 7, 15, [43, 48, 48, 58, 48, 48]); if (offset < 0) { data_0[0] = 45; offset = -offset; } data_0[1] = data_0[1] + ((offset / 60 | 0) / 10 | 0) & $intern_8; data_0[2] = data_0[2] + (offset / 60 | 0) % 10 & $intern_8; data_0[4] = data_0[4] + (offset % 60 / 10 | 0) & $intern_8; data_0[5] = data_0[5] + offset % 10 & $intern_8; return valueOf_3(data_0, data_0.length); } function $getRFCTimeZoneString(this$static){ var data_0, offset; offset = -this$static.standardOffset; data_0 = stampJavaTypeInfo(getClassLiteralForArray(C_classLit, 1), $intern_21, 7, 15, [43, 48, 48, 48, 48]); if (offset < 0) { data_0[0] = 45; offset = -offset; } data_0[1] = data_0[1] + ((offset / 60 | 0) / 10 | 0) & $intern_8; data_0[2] = data_0[2] + (offset / 60 | 0) % 10 & $intern_8; data_0[3] = data_0[3] + (offset % 60 / 10 | 0) & $intern_8; data_0[4] = data_0[4] + offset % 10 & $intern_8; return valueOf_3(data_0, data_0.length); } function TimeZone(){ } function composeGMTString(offset){ var data_0; data_0 = stampJavaTypeInfo(getClassLiteralForArray(C_classLit, 1), $intern_21, 7, 15, [71, 77, 84, 45, 48, 48, 58, 48, 48]); if (offset <= 0) { data_0[3] = 43; offset = -offset; } data_0[4] = data_0[4] + ((offset / 60 | 0) / 10 | 0) & $intern_8; data_0[5] = data_0[5] + (offset / 60 | 0) % 10 & $intern_8; data_0[7] = data_0[7] + (offset % 60 / 10 | 0) & $intern_8; data_0[8] = data_0[8] + offset % 10 & $intern_8; return valueOf_3(data_0, data_0.length); } function composePOSIXTimeZoneID(offset){ var str; if (offset == 0) { return 'Etc/GMT'; } if (offset < 0) { offset = -offset; str = 'Etc/GMT-'; } else { str = 'Etc/GMT+'; } return str + offsetDisplay(offset); } function composeUTCString(offset){ var str; if (offset == 0) { return 'UTC'; } if (offset < 0) { offset = -offset; str = 'UTC+'; } else { str = 'UTC-'; } return str + offsetDisplay(offset); } function createTimeZone(timeZoneOffsetInMinutes){ var tz; tz = new TimeZone; tz.standardOffset = timeZoneOffsetInMinutes; tz.timezoneID = composePOSIXTimeZoneID(timeZoneOffsetInMinutes); tz.tzNames = initUnidimensionalArray(Ljava_lang_String_2_classLit, $intern_23, 2, 2, 6, 1); tz.tzNames[0] = composeUTCString(timeZoneOffsetInMinutes); tz.tzNames[1] = composeUTCString(timeZoneOffsetInMinutes); return tz; } function offsetDisplay(offset){ var hour, mins; hour = offset / 60 | 0; mins = offset % 60; if (mins == 0) { return '' + hour; } return '' + hour + ':' + ('' + mins); } defineClass(934, 1, {}, TimeZone); _.standardOffset = 0; var Lcom_google_gwt_i18n_client_TimeZone_2_classLit = createForClass('com.google.gwt.i18n.client', 'TimeZone', 934); function NumberConstantsImpl_(){ } defineClass(918, 1, {}, NumberConstantsImpl_); var Lcom_google_gwt_i18n_client_constants_NumberConstantsImpl_1_2_classLit = createForClass('com.google.gwt.i18n.client.constants', 'NumberConstantsImpl_', 918); function $getSimpleCurrencySymbol(this$static){ return this$static[4] || this$static[1]; } function DateTimeFormatInfoImpl(){ } defineClass(933, 995, {}, DateTimeFormatInfoImpl); var Lcom_google_gwt_i18n_client_impl_cldr_DateTimeFormatInfoImpl_2_classLit = createForClass('com.google.gwt.i18n.client.impl.cldr', 'DateTimeFormatInfoImpl', 933); function DateTimeFormat$PatternPart(txt, cnt){ this.text_0 = txt; this.count = cnt; this.abutStart = false; } defineClass(354, 1, {354:1}, DateTimeFormat$PatternPart); _.abutStart = false; _.count = 0; var Lcom_google_gwt_i18n_shared_DateTimeFormat$PatternPart_2_classLit = createForClass('com.google.gwt.i18n.shared', 'DateTimeFormat/PatternPart', 354); function getClassLiteralForArray(clazz, dimensions){ return getClassLiteralForArray_0(clazz, dimensions); } function getElementTypeCategory(array){ return array.__elementTypeCategory$ == null?10:array.__elementTypeCategory$; } function initMultidimensionalArray(leafClassLiteral, castableTypeMapExprs, elementTypeIds, leafElementTypeCategory, dimExprs, count){ return initMultidimensionalArray_0(leafClassLiteral, castableTypeMapExprs, elementTypeIds, leafElementTypeCategory, dimExprs, 0, count); } function initMultidimensionalArray_0(leafClassLiteral, castableTypeMapExprs, elementTypeIds, leafElementTypeCategory, dimExprs, index_0, count){ var elementTypeCategory, i, isLastDimension, length_0, result; length_0 = dimExprs[index_0]; isLastDimension = index_0 == count - 1; elementTypeCategory = isLastDimension?leafElementTypeCategory:0; result = initializeArrayElementsWithDefaults(elementTypeCategory, length_0); leafElementTypeCategory != 10 && stampJavaTypeInfo(getClassLiteralForArray(leafClassLiteral, count - index_0), castableTypeMapExprs[index_0], elementTypeIds[index_0], elementTypeCategory, result); if (!isLastDimension) { ++index_0; for (i = 0; i < length_0; ++i) { result[i] = initMultidimensionalArray_0(leafClassLiteral, castableTypeMapExprs, elementTypeIds, leafElementTypeCategory, dimExprs, index_0, count); } } return result; } function initUnidimensionalArray(leafClassLiteral, castableTypeMap, elementTypeId, length_0, elementTypeCategory, dimensions){ var result; result = initializeArrayElementsWithDefaults(elementTypeCategory, length_0); elementTypeCategory != 10 && stampJavaTypeInfo(getClassLiteralForArray(leafClassLiteral, dimensions), castableTypeMap, elementTypeId, elementTypeCategory, result); return result; } function initializeArrayElementsWithDefaults(elementTypeCategory, length_0){ var array = new Array(length_0); var initValue; switch (elementTypeCategory) { case 14: case 15: initValue = 0; break; case 16: initValue = false; break; default:return array; } for (var i = 0; i < length_0; ++i) { array[i] = initValue; } return array; } function isJavaArray(src_0){ return Array.isArray(src_0) && src_0.typeMarker === typeMarkerFn; } function stampJavaTypeInfo(arrayClass, castableTypeMap, elementTypeId, elementTypeCategory, array){ array.___clazz = arrayClass; array.castableTypeMap = castableTypeMap; array.typeMarker = typeMarkerFn; array.__elementTypeId$ = elementTypeId; array.__elementTypeCategory$ = elementTypeCategory; return array; } function stampJavaTypeInfo_0(array, referenceType){ getElementTypeCategory(referenceType) != 10 && stampJavaTypeInfo(getClass__Ljava_lang_Class___devirtual$(referenceType), referenceType.castableTypeMap, referenceType.__elementTypeId$, getElementTypeCategory(referenceType), array); return array; } function create(value_0){ var a0, a1, a2; a0 = value_0 & $intern_27; a1 = value_0 >> 22 & $intern_27; a2 = value_0 < 0?$intern_28:0; return create0(a0, a1, a2); } function create_0(a){ return create0(a.l, a.m, a.h); } function create0(l_0, m, h){ return {l:l_0, 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 toJs(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_29 && b.m == 0 && b.l == 0) { return divModByMinValue(a, computeRemainder); } negative = false; if (b.h >> 19 != 0) { b = neg_0(b); negative = true; } bpower = powerOfTwo(b); aIsNegative = false; aIsMinValue = false; aIsCopy = false; if (a.h == $intern_29 && a.m == 0 && a.l == 0) { aIsMinValue = true; aIsNegative = true; if (bpower == -1) { a = create_0(($clinit_BigLongLib$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_0(a); aIsCopy = true; negative = !negative; } if (bpower != -1) { return divModByShift(a, bpower, negative, aIsNegative, computeRemainder); } if (compare(a, b) < 0) { computeRemainder && (aIsNegative?(remainder_0 = neg_0(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_29 && a.m == 0 && a.l == 0) { computeRemainder && (remainder_0 = create0(0, 0, 0)); return create_0(($clinit_BigLongLib$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_0(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; bshift.h = 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_0(a); aIsMinValue && (remainder_0 = sub_0(remainder_0, ($clinit_BigLongLib$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_27; neg1 = ~a.m + (neg0 == 0?1:0) & $intern_27; neg2 = ~a.h + (neg0 == 0 && neg1 == 0?1:0) & $intern_28; a.l = neg0; a.m = neg1; a.h = 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_0, m; l_0 = a.l; if ((l_0 & l_0 - 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 == 0) { return -1; } if (h == 0 && m == 0 && l_0 != 0) { return numberOfTrailingZeros(l_0); } if (h == 0 && m != 0 && l_0 == 0) { return numberOfTrailingZeros(m) + 22; } if (h != 0 && m == 0 && l_0 == 0) { return numberOfTrailingZeros(h) + 44; } return -1; } function toDoubleHelper(a){ return a.l + a.m * $intern_30 + a.h * $intern_31; } 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; } a.l = sum0 & $intern_27; a.m = sum1 & $intern_27; a.h = sum2 & $intern_28; return true; } var remainder_0; function add_1(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 create0(sum0 & $intern_27, sum1 & $intern_27, sum2 & $intern_28); } function and(a, b){ return create0(a.l & b.l, a.m & b.m, a.h & b.h); } function compare(a, b){ var a0, a1, a2, b0, b1, b2, signA, signB; signA = a.h >> 19; signB = b.h >> 19; if (signA != signB) { return signB - signA; } a2 = a.h; b2 = b.h; if (a2 != b2) { return a2 - b2; } a1 = a.m; b1 = b.m; if (a1 != b1) { return a1 - b1; } a0 = a.l; b0 = b.l; return a0 - b0; } function fromDouble(value_0){ var a0, a1, a2, negative, result; if (isNaN(value_0)) { return $clinit_BigLongLib$Const() , ZERO; } if (value_0 < -9223372036854775808) { return $clinit_BigLongLib$Const() , MIN_VALUE; } if (value_0 >= 9223372036854775807) { return $clinit_BigLongLib$Const() , MAX_VALUE; } negative = false; if (value_0 < 0) { negative = true; value_0 = -value_0; } a2 = 0; if (value_0 >= $intern_31) { a2 = round_int(value_0 / $intern_31); value_0 -= a2 * $intern_31; } a1 = 0; if (value_0 >= $intern_30) { a1 = round_int(value_0 / $intern_30); value_0 -= a1 * $intern_30; } a0 = round_int(value_0); result = create0(a0, a1, a2); negative && negate(result); return result; } function mul(a, b){ var a0, a1, a2, a3, a4, b0, b1, b2, b3, b4, c0, c00, c01, c1, c10, c11, c12, c13, c2, c22, c23, c24, p0, p1, p2, p3, p4; a0 = a.l & 8191; a1 = a.l >> 13 | (a.m & 15) << 9; a2 = a.m >> 4 & 8191; a3 = a.m >> 17 | (a.h & 255) << 5; a4 = (a.h & 1048320) >> 8; b0 = b.l & 8191; b1 = b.l >> 13 | (b.m & 15) << 9; b2 = b.m >> 4 & 8191; b3 = b.m >> 17 | (b.h & 255) << 5; b4 = (b.h & 1048320) >> 8; p0 = a0 * b0; p1 = a1 * b0; p2 = a2 * b0; p3 = a3 * b0; p4 = a4 * b0; if (b1 != 0) { p1 += a0 * b1; p2 += a1 * b1; p3 += a2 * b1; p4 += a3 * b1; } if (b2 != 0) { p2 += a0 * b2; p3 += a1 * b2; p4 += a2 * b2; } if (b3 != 0) { p3 += a0 * b3; p4 += a1 * b3; } b4 != 0 && (p4 += a0 * b4); c00 = p0 & $intern_27; c01 = (p1 & 511) << 13; c0 = c00 + c01; c10 = p0 >> 22; c11 = p1 >> 9; c12 = (p2 & 262143) << 4; c13 = (p3 & 31) << 17; c1 = c10 + c11 + c12 + c13; c22 = p2 >> 18; c23 = p3 >> 5; c24 = (p4 & 4095) << 8; c2 = c22 + c23 + c24; c1 += c0 >> 22; c0 &= $intern_27; c2 += c1 >> 22; c1 &= $intern_27; c2 &= $intern_28; return create0(c0, c1, c2); } function neg_0(a){ var neg0, neg1, neg2; neg0 = ~a.l + 1 & $intern_27; neg1 = ~a.m + (neg0 == 0?1:0) & $intern_27; neg2 = ~a.h + (neg0 == 0 && neg1 == 0?1:0) & $intern_28; return create0(neg0, neg1, neg2); } function or(a, b){ return create0(a.l | b.l, a.m | b.m, a.h | b.h); } 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 create0(res0 & $intern_27, res1 & $intern_27, res2 & $intern_28); } function shr(a, n){ var a2, negative, res0, res1, res2; n &= 63; a2 = a.h; negative = (a2 & $intern_29) != 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_28:0; res1 = a2 >> n - 22; res0 = a.m >> n - 22 | a2 << 44 - n; } else { res2 = negative?$intern_28:0; res1 = negative?$intern_27:0; res0 = a2 >> n - 44; } return create0(res0 & $intern_27, res1 & $intern_27, res2 & $intern_28); } function shru(a, n){ var a2, res0, res1, res2; n &= 63; a2 = a.h & $intern_28; 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 = 0; res1 = a2 >>> n - 22; res0 = a.m >> n - 22 | a.h << 44 - n; } else { res2 = 0; res1 = 0; res0 = a2 >>> n - 44; } return create0(res0 & $intern_27, res1 & $intern_27, res2 & $intern_28); } 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 create0(sum0 & $intern_27, sum1 & $intern_27, sum2 & $intern_28); } function toDouble(a){ if (compare(a, ($clinit_BigLongLib$Const() , ZERO)) < 0) { return -toDoubleHelper(neg_0(a)); } return a.l + a.m * $intern_30 + a.h * $intern_31; } function toInt(a){ return a.l | a.m << 22; } function toString_7(a){ var digits, rem, res, tenPowerLong, zeroesNeeded; if (a.l == 0 && a.m == 0 && a.h == 0) { return '0'; } if (a.h == $intern_29 && a.m == 0 && a.l == 0) { return '-9223372036854775808'; } if (a.h >> 19 != 0) { return '-' + toString_7(neg_0(a)); } rem = a; res = ''; while (!(rem.l == 0 && rem.m == 0 && rem.h == 0)) { tenPowerLong = create($intern_32); 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; } function xor(a, b){ return create0(a.l ^ b.l, a.m ^ b.m, a.h ^ b.h); } function $clinit_BigLongLib$Const(){ $clinit_BigLongLib$Const = emptyMethod; MAX_VALUE = create0($intern_27, $intern_27, 524287); MIN_VALUE = create0(0, 0, $intern_29); ONE = create(1); create(2); ZERO = create(0); } var MAX_VALUE, MIN_VALUE, ONE, ZERO; function toJava(e){ var javaException; if (instanceOf(e, 42)) { return e; } javaException = e && e['__java$exception']; if (!javaException) { javaException = new JavaScriptException(e); captureStackTrace(javaException); } return javaException; } function toJs(t){ return t.backingJsObject; } function add_2(a, b){ var result; if (isSmallLong0(a) && isSmallLong0(b)) { result = a + b; if ($intern_33 < result && result < $intern_31) { return result; } } return createLongEmul(add_1(isSmallLong0(a)?toBigLong(a):a, isSmallLong0(b)?toBigLong(b):b)); } function compare_0(a, b){ var result; if (isSmallLong0(a) && isSmallLong0(b)) { result = a - b; if (!isNaN(result)) { return result; } } return compare(isSmallLong0(a)?toBigLong(a):a, isSmallLong0(b)?toBigLong(b):b); } function createLongEmul(big_0){ var a2; a2 = big_0.h; if (a2 == 0) { return big_0.l + big_0.m * $intern_30; } if (a2 == $intern_28) { return big_0.l + big_0.m * $intern_30 - $intern_31; } return big_0; } function eq_0(a, b){ return compare_0(a, b) == 0; } function fromDouble_0(value_0){ if ($intern_33 < value_0 && value_0 < $intern_31) { return value_0 < 0?$wnd.Math.ceil(value_0):$wnd.Math.floor(value_0); } return createLongEmul(fromDouble(value_0)); } function gt(a, b){ return compare_0(a, b) > 0; } function gte_0(a, b){ return compare_0(a, b) >= 0; } function isSmallLong0(value_0){ return typeof value_0 === 'number'; } function lt(a, b){ return compare_0(a, b) < 0; } function mod(a, b){ var result; if (isSmallLong0(a) && isSmallLong0(b)) { result = a % b; if ($intern_33 < result && result < $intern_31) { return result; } } return createLongEmul((divMod(isSmallLong0(a)?toBigLong(a):a, isSmallLong0(b)?toBigLong(b):b, true) , remainder_0)); } function mul_0(a, b){ var result; if (isSmallLong0(a) && isSmallLong0(b)) { result = a * b; if ($intern_33 < result && result < $intern_31) { return result; } } return createLongEmul(mul(isSmallLong0(a)?toBigLong(a):a, isSmallLong0(b)?toBigLong(b):b)); } function neg_1(a){ var result; if (isSmallLong0(a)) { result = 0 - a; if (!isNaN(result)) { return result; } } return createLongEmul(neg_0(a)); } function neq(a, b){ return compare_0(a, b) != 0; } function or_0(a, b){ return createLongEmul(or(isSmallLong0(a)?toBigLong(a):a, isSmallLong0(b)?toBigLong(b):b)); } function shr_0(a, n){ return createLongEmul(shr(isSmallLong0(a)?toBigLong(a):a, n)); } function sub_1(a, b){ var result; if (isSmallLong0(a) && isSmallLong0(b)) { result = a - b; if ($intern_33 < result && result < $intern_31) { return result; } } return createLongEmul(sub_0(isSmallLong0(a)?toBigLong(a):a, isSmallLong0(b)?toBigLong(b):b)); } function toBigLong(longValue){ var a0, a1, a3, value_0; value_0 = longValue; a3 = 0; if (value_0 < 0) { value_0 += $intern_31; a3 = $intern_28; } a1 = round_int(value_0 / $intern_30); a0 = round_int(value_0 - a1 * $intern_30); return create0(a0, a1, a3); } function toDouble_0(a){ var d; if (isSmallLong0(a)) { d = a; return d == -0.?0:d; } return toDouble(a); } function toInt_0(a){ if (isSmallLong0(a)) { return a | 0; } return toInt(a); } function toString_8(a){ if (isSmallLong0(a)) { return '' + a; } return toString_7(a); } function xor_0(a, b){ return createLongEmul(xor(isSmallLong0(a)?toBigLong(a):a, isSmallLong0(b)?toBigLong(b):b)); } function init(){ $wnd.setTimeout($entry(assertCompileTimeUserAgent)); $onModuleLoad(); $loadLocale(); } function $adjustHorizontalConstraints(this$static, parentWidth, l_0){ var leftPx, rightPx, widthPx; leftPx = l_0.left_0 * $getUnitSize(this$static, l_0.leftUnit, false); rightPx = l_0.right * $getUnitSize(this$static, l_0.rightUnit, false); widthPx = l_0.width_0 * $getUnitSize(this$static, l_0.widthUnit, false); if (l_0.setLeft && !l_0.setTargetLeft) { l_0.setLeft = false; if (l_0.setWidth) { l_0.setTargetRight = true; l_0.sourceRight = (parentWidth - (leftPx + widthPx)) / $getUnitSize(this$static, l_0.targetRightUnit, false); } else { l_0.setTargetWidth = true; l_0.sourceWidth = (parentWidth - (leftPx + rightPx)) / $getUnitSize(this$static, l_0.targetWidthUnit, false); } } else if (l_0.setWidth && !l_0.setTargetWidth) { l_0.setWidth = false; if (l_0.setLeft) { l_0.setTargetRight = true; l_0.sourceRight = (parentWidth - (leftPx + widthPx)) / $getUnitSize(this$static, l_0.targetRightUnit, false); } else { l_0.setTargetLeft = true; l_0.sourceLeft = (parentWidth - (rightPx + widthPx)) / $getUnitSize(this$static, l_0.targetLeftUnit, false); } } else if (l_0.setRight && !l_0.setTargetRight) { l_0.setRight = false; if (l_0.setWidth) { l_0.setTargetLeft = true; l_0.sourceLeft = (parentWidth - (rightPx + widthPx)) / $getUnitSize(this$static, l_0.targetLeftUnit, false); } else { l_0.setTargetWidth = true; l_0.sourceWidth = (parentWidth - (leftPx + rightPx)) / $getUnitSize(this$static, l_0.targetWidthUnit, false); } } l_0.setLeft = l_0.setTargetLeft; l_0.setRight = l_0.setTargetRight; l_0.setWidth = l_0.setTargetWidth; l_0.leftUnit = l_0.targetLeftUnit; l_0.rightUnit = l_0.targetRightUnit; l_0.widthUnit = l_0.targetWidthUnit; } function $adjustVerticalConstraints(this$static, parentHeight, l_0){ var bottomPx, heightPx, topPx; topPx = l_0.top_0 * $getUnitSize(this$static, l_0.topUnit, true); bottomPx = l_0.bottom_0 * $getUnitSize(this$static, l_0.bottomUnit, true); heightPx = l_0.height_0 * $getUnitSize(this$static, l_0.heightUnit, true); if (l_0.setTop && !l_0.setTargetTop) { l_0.setTop = false; if (l_0.setHeight) { l_0.setTargetBottom = true; l_0.sourceBottom = (parentHeight - (topPx + heightPx)) / $getUnitSize(this$static, l_0.targetBottomUnit, true); } else { l_0.setTargetHeight = true; l_0.sourceHeight = (parentHeight - (topPx + bottomPx)) / $getUnitSize(this$static, l_0.targetHeightUnit, true); } } else if (l_0.setHeight && !l_0.setTargetHeight) { l_0.setHeight = false; if (l_0.setTop) { l_0.setTargetBottom = true; l_0.sourceBottom = (parentHeight - (topPx + heightPx)) / $getUnitSize(this$static, l_0.targetBottomUnit, true); } else { l_0.setTargetTop = true; l_0.sourceTop = (parentHeight - (bottomPx + heightPx)) / $getUnitSize(this$static, l_0.targetTopUnit, true); } } else if (l_0.setBottom && !l_0.setTargetBottom) { l_0.setBottom = false; if (l_0.setHeight) { l_0.setTargetTop = true; l_0.sourceTop = (parentHeight - (bottomPx + heightPx)) / $getUnitSize(this$static, l_0.targetTopUnit, true); } else { l_0.setTargetHeight = true; l_0.sourceHeight = (parentHeight - (topPx + bottomPx)) / $getUnitSize(this$static, l_0.targetHeightUnit, true); } } l_0.setTop = l_0.setTargetTop; l_0.setBottom = l_0.setTargetBottom; l_0.setHeight = l_0.setTargetHeight; l_0.topUnit = l_0.targetTopUnit; l_0.bottomUnit = l_0.targetBottomUnit; l_0.heightUnit = l_0.targetHeightUnit; } function $attachChild(this$static, child, userObject){ var container, layer; container = $attachChild_0(this$static.parentElem, child); layer = new Layout$Layer(container, child, userObject); $add_8(this$static.layers, layer); return layer; } function $getUnitSize(this$static, unit, vertical){ return $getUnitSizeInPixels(this$static.impl, this$static.parentElem, unit, vertical); } function $layout(this$static, duration, callback){ var child, l_0, l$iterator, l$iterator0, parentHeight, parentWidth; !!this$static.animation && $cancel(this$static.animation); if (duration == 0) { for (l$iterator0 = new ArrayList$1(this$static.layers); l$iterator0.i < l$iterator0.this$01.array.length;) { l_0 = $next_4(l$iterator0); l_0.left_0 = l_0.sourceLeft = l_0.targetLeft; l_0.top_0 = l_0.sourceTop = l_0.targetTop; l_0.right = l_0.sourceRight = l_0.targetRight; l_0.bottom_0 = l_0.sourceBottom = l_0.targetBottom; l_0.width_0 = l_0.sourceWidth = l_0.targetWidth; l_0.height_0 = l_0.sourceHeight = l_0.targetHeight; l_0.setLeft = l_0.setTargetLeft; l_0.setTop = l_0.setTargetTop; l_0.setRight = l_0.setTargetRight; l_0.setBottom = l_0.setTargetBottom; l_0.setWidth = l_0.setTargetWidth; l_0.setHeight = l_0.setTargetHeight; l_0.leftUnit = l_0.targetLeftUnit; l_0.topUnit = l_0.targetTopUnit; l_0.rightUnit = l_0.targetRightUnit; l_0.bottomUnit = l_0.targetBottomUnit; l_0.widthUnit = l_0.targetWidthUnit; l_0.heightUnit = l_0.targetHeightUnit; $layout_0(l_0); !!callback && (child = l_0.userObject , instanceOf(child, 209) && child.onResize_0()); } return; } parentWidth = this$static.parentElem.clientWidth | 0; parentHeight = this$static.parentElem.clientHeight | 0; for (l$iterator = new ArrayList$1(this$static.layers); l$iterator.i < l$iterator.this$01.array.length;) { l_0 = $next_4(l$iterator); $adjustHorizontalConstraints(this$static, parentWidth, l_0); $adjustVerticalConstraints(this$static, parentHeight, l_0); } this$static.animation = new Layout$1(this$static, callback); $run_0(this$static.animation, duration, this$static.parentElem); } function $removeChild_0(this$static, layer){ $removeChild_1(layer.container, layer.child); $remove_13(this$static.layers, layer); } function Layout(parent_0){ this.impl = new LayoutImpl; this.layers = new ArrayList; this.parentElem = parent_0; $initParent(this.impl, parent_0); } defineClass(334, 1, {}, Layout); var Lcom_google_gwt_layout_client_Layout_2_classLit = createForClass('com.google.gwt.layout.client', 'Layout', 334); function Layout$1(this$0, val$callback){ this.this$01 = this$0; this.val$callback2 = val$callback; Animation.call(this); } defineClass(574, 287, {}, Layout$1); _.onCancel = function onCancel_0(){ this.this$01.animation = null; $layout(this.this$01, 0, null); } ; _.onComplete = function onComplete_0(){ this.this$01.animation = null; $layout(this.this$01, 0, null); } ; _.onUpdate = function onUpdate(progress){ var child, l_0, l$iterator; for (l$iterator = new ArrayList$1(this.this$01.layers); l$iterator.i < l$iterator.this$01.array.length;) { l_0 = $next_4(l$iterator); l_0.setTargetLeft && (l_0.left_0 = l_0.sourceLeft + (l_0.targetLeft - l_0.sourceLeft) * progress); l_0.setTargetRight && (l_0.right = l_0.sourceRight + (l_0.targetRight - l_0.sourceRight) * progress); l_0.setTargetTop && (l_0.top_0 = l_0.sourceTop + (l_0.targetTop - l_0.sourceTop) * progress); l_0.setTargetBottom && (l_0.bottom_0 = l_0.sourceBottom + (l_0.targetBottom - l_0.sourceBottom) * progress); l_0.setTargetWidth && (l_0.width_0 = l_0.sourceWidth + (l_0.targetWidth - l_0.sourceWidth) * progress); l_0.setTargetHeight && (l_0.height_0 = l_0.sourceHeight + (l_0.targetHeight - l_0.sourceHeight) * progress); $layout_0(l_0); !!this.val$callback2 && (child = l_0.userObject , instanceOf(child, 209) && child.onResize_0()); } } ; var Lcom_google_gwt_layout_client_Layout$1_2_classLit = createForClass('com.google.gwt.layout.client', 'Layout/1', 574); function $setBottomHeight(this$static, bottom, bottomUnit, height, heightUnit){ this$static.setTargetBottom = this$static.setTargetHeight = true; this$static.setTargetTop = false; this$static.targetBottom = bottom; this$static.targetHeight = height; this$static.targetBottomUnit = bottomUnit; this$static.targetHeightUnit = heightUnit; } function $setLeftRight(this$static, left, leftUnit, right, rightUnit){ this$static.setTargetLeft = this$static.setTargetRight = true; this$static.setTargetWidth = false; this$static.targetLeft = left; this$static.targetRight = right; this$static.targetLeftUnit = leftUnit; this$static.targetRightUnit = rightUnit; } function $setLeftWidth(this$static, left, leftUnit, width_0, widthUnit){ this$static.setTargetLeft = this$static.setTargetWidth = true; this$static.setTargetRight = false; this$static.targetLeft = left; this$static.targetWidth = width_0; this$static.targetLeftUnit = leftUnit; this$static.targetWidthUnit = widthUnit; } function $setRightWidth(this$static, right, rightUnit, width_0, widthUnit){ this$static.setTargetRight = this$static.setTargetWidth = true; this$static.setTargetLeft = false; this$static.targetRight = right; this$static.targetWidth = width_0; this$static.targetRightUnit = rightUnit; this$static.targetWidthUnit = widthUnit; } function $setTopBottom(this$static, top_0, topUnit, bottom, bottomUnit){ this$static.setTargetTop = this$static.setTargetBottom = true; this$static.setTargetHeight = false; this$static.targetTop = top_0; this$static.targetBottom = bottom; this$static.targetTopUnit = topUnit; this$static.targetBottomUnit = bottomUnit; } function $setTopHeight(this$static, top_0, topUnit, height, heightUnit){ this$static.setTargetTop = this$static.setTargetHeight = true; this$static.setTargetBottom = false; this$static.targetTop = top_0; this$static.targetHeight = height; this$static.targetTopUnit = topUnit; this$static.targetHeightUnit = heightUnit; } function Layout$Layer(container, child, userObject){ this.targetLeftUnit = ($clinit_Style$Unit() , PX); this.targetTopUnit = PX; this.targetRightUnit = PX; this.targetBottomUnit = PX; this.container = container; this.child = child; this.userObject = userObject; } defineClass(335, 1, {335:1}, Layout$Layer); _.bottom_0 = 0; _.height_0 = 0; _.left_0 = 0; _.right = 0; _.setBottom = false; _.setHeight = false; _.setLeft = false; _.setRight = false; _.setTargetBottom = true; _.setTargetHeight = false; _.setTargetLeft = true; _.setTargetRight = true; _.setTargetTop = true; _.setTargetWidth = false; _.setTop = false; _.setWidth = false; _.sourceBottom = 0; _.sourceHeight = 0; _.sourceLeft = 0; _.sourceRight = 0; _.sourceTop = 0; _.sourceWidth = 0; _.targetBottom = 0; _.targetHeight = 0; _.targetLeft = 0; _.targetRight = 0; _.targetTop = 0; _.targetWidth = 0; _.top_0 = 0; _.visible = true; _.width_0 = 0; var Lcom_google_gwt_layout_client_Layout$Layer_2_classLit = createForClass('com.google.gwt.layout.client', 'Layout/Layer', 335); function $clinit_LayoutImpl(){ $clinit_LayoutImpl = emptyMethod; fixedRuler = createRuler(($clinit_Style$Unit() , CM), CM); $appendChild($doc.body, fixedRuler); } function $attachChild_0(parent_0, child){ var container; container = $doc.createElement('div'); container.appendChild(child); container.style['position'] = ($clinit_Style$Position() , 'absolute'); container.style['overflow'] = ($clinit_Style$Overflow() , 'hidden'); $fillParent(child); parent_0.insertBefore(container, null); return container; } function $fillParent(elem){ var style; style = elem.style; style['position'] = ($clinit_Style$Position() , 'absolute'); style['left'] = ($clinit_Style$Unit() , '0.0px'); style['top'] = '0.0px'; style['right'] = '0.0px'; style['bottom'] = '0.0px'; } function $getUnitSizeInPixels(this$static, parent_0, unit, vertical){ if (!unit) { return 1; } switch (unit.ordinal) { case 1: return (vertical?parent_0.clientHeight | 0:parent_0.clientWidth | 0) / 100; case 2: return ((this$static.relativeRuler.offsetWidth || 0) | 0) / 10; case 3: return ((this$static.relativeRuler.offsetHeight || 0) | 0) / 10; case 7: return ((fixedRuler.offsetWidth || 0) | 0) * 0.1; case 8: return ((fixedRuler.offsetWidth || 0) | 0) * $intern_34; case 6: return ((fixedRuler.offsetWidth || 0) | 0) * 0.254; case 4: return ((fixedRuler.offsetWidth || 0) | 0) * 0.00353; case 5: return ((fixedRuler.offsetWidth || 0) | 0) * 0.0423; default:case 0: return 1; } } function $initParent(this$static, parent_0){ parent_0.style['position'] = ($clinit_Style$Position() , 'relative'); $appendChild(parent_0, this$static.relativeRuler = createRuler(($clinit_Style$Unit() , EM), EX)); } function $layout_0(layer){ var style; style = layer.container.style; layer.visible?(style['display'] = '' , undefined):(style['display'] = ($clinit_Style$Display() , 'none') , undefined); style['left'] = layer.setLeft?layer.left_0 + 'px':''; style['top'] = layer.setTop?layer.top_0 + 'px':''; style['right'] = layer.setRight?layer.right + 'px':''; style['bottom'] = layer.setBottom?layer.bottom_0 + 'px':''; style['width'] = layer.setWidth?layer.width_0 + 'px':''; style['height'] = layer.setHeight?layer.height_0 + 'px':''; style = layer.child.style; switch (2) { case 2: style['left'] = ($clinit_Style$Unit() , '0.0px'); style['right'] = '0.0px'; } switch (2) { case 2: style['top'] = ($clinit_Style$Unit() , '0.0px'); style['bottom'] = '0.0px'; } } function $removeChild_1(container, child){ var parent_0, parent0, style; parent0 = $getParentElement(container); !!parent0 && parent0.removeChild(container); $getParentElement(child) == container && (parent_0 = $getParentElement(child) , !!parent_0 && parent_0.removeChild(child)); style = child.style; style['position'] = ''; style['left'] = ''; style['top'] = ''; style['width'] = ''; style['height'] = ''; } function LayoutImpl(){ $clinit_LayoutImpl(); } function createRuler(widthUnit, heightUnit){ var ruler, style; ruler = $doc.createElement('div'); ruler.innerHTML = ' '; style = ruler.style; style['position'] = ($clinit_Style$Position() , 'absolute'); style['zIndex'] = '-32767'; style['top'] = -20 + heightUnit.getType_0(); style['width'] = 10 + widthUnit.getType_0(); style['height'] = 10 + heightUnit.getType_0(); style['visibility'] = ($clinit_Style$Visibility() , 'hidden'); $set_0(($clinit_State() , HIDDEN), ruler, stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_Boolean_2_classLit, 1), $intern_3, 281, 8, [($clinit_Boolean() , true)])); return ruler; } defineClass(796, 1, {}, LayoutImpl); var fixedRuler; var Lcom_google_gwt_layout_client_LayoutImpl_2_classLit = createForClass('com.google.gwt.layout.client', 'LayoutImpl', 796); 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 ImageResourcePrototype(url_0){ this.left_0 = 0; this.top_0 = 0; this.height_0 = 9; this.width_0 = 5; this.url_0 = url_0; } defineClass(937, 1, {}, ImageResourcePrototype); _.height_0 = 0; _.left_0 = 0; _.top_0 = 0; _.width_0 = 0; var Lcom_google_gwt_resources_client_impl_ImageResourcePrototype_2_classLit = createForClass('com.google.gwt.resources.client.impl', 'ImageResourcePrototype', 937); function $append(this$static, styles){ $append_4(this$static.sb, styles.css); return this$static; } function SafeStylesBuilder(){ this.sb = new StringBuilder; } defineClass(945, 1, {}, SafeStylesBuilder); var Lcom_google_gwt_safecss_shared_SafeStylesBuilder_2_classLit = createForClass('com.google.gwt.safecss.shared', 'SafeStylesBuilder', 945); function SafeStylesString(css){ verifySafeStylesConstraints(css); this.css = css; } defineClass(205, 1, {1019:1, 205:1, 3:1}, SafeStylesString); _.equals_0 = function equals_1(obj){ if (!instanceOf(obj, 205)) { return false; } return $equals_1(this.css, obj.css); } ; _.hashCode_0 = function hashCode_3(){ return getHashCode_0(this.css); } ; var Lcom_google_gwt_safecss_shared_SafeStylesString_2_classLit = createForClass('com.google.gwt.safecss.shared', 'SafeStylesString', 205); function verifySafeStylesConstraints(styles){ if (styles == null) { throw toJs(new NullPointerException_0('css is null')); } } function OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(html){ if (html == null) { throw toJs(new NullPointerException_0('html is null')); } this.html = html; } defineClass(949, 1, $intern_35, OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml); _.asString = function asString(){ return this.html; } ; _.equals_0 = function equals_2(obj){ if (!instanceOf(obj, 458)) { return false; } return $equals_1(this.html, obj.asString()); } ; _.hashCode_0 = function hashCode_4(){ return getHashCode_0(this.html); } ; var Lcom_google_gwt_safehtml_shared_OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml_2_classLit = createForClass('com.google.gwt.safehtml.shared', 'OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml', 949); function SafeHtmlString(html){ if (html == null) { throw toJs(new NullPointerException_0('html is null')); } this.html = html; } defineClass(109, 1, $intern_35, SafeHtmlString); _.asString = function asString_0(){ return this.html; } ; _.equals_0 = function equals_3(obj){ if (!instanceOf(obj, 458)) { return false; } return $equals_1(this.html, obj.asString()); } ; _.hashCode_0 = function hashCode_5(){ return getHashCode_0(this.html); } ; _.toString_0 = function toString_10(){ return 'safe: "' + this.html + '"'; } ; var Lcom_google_gwt_safehtml_shared_SafeHtmlString_2_classLit = createForClass('com.google.gwt.safehtml.shared', 'SafeHtmlString', 109); function $clinit_SafeHtmlUtils(){ $clinit_SafeHtmlUtils = emptyMethod; new SafeHtmlString(''); HTML_CHARS_RE = new RegExp('[&<>\'"]'); AMP_RE = new RegExp('&', 'g'); GT_RE = new RegExp('>', 'g'); LT_RE = new RegExp('<', 'g'); SQUOT_RE = new RegExp("'", 'g'); QUOT_RE = new RegExp('"', 'g'); } function htmlEscape(s){ $clinit_SafeHtmlUtils(); if (!$test(HTML_CHARS_RE, s)) { return s; } s.indexOf('&') != -1 && (s = $replace(AMP_RE, s, '&')); s.indexOf('<') != -1 && (s = $replace(LT_RE, s, '<')); s.indexOf('>') != -1 && (s = $replace(GT_RE, s, '>')); s.indexOf('"') != -1 && (s = $replace(QUOT_RE, s, '"')); s.indexOf("'") != -1 && (s = $replace(SQUOT_RE, s, ''')); return s; } var AMP_RE, GT_RE, HTML_CHARS_RE, LT_RE, QUOT_RE, SQUOT_RE; function SafeUriString(uri_0){ this.uri_0 = uri_0; } defineClass(277, 1, {1015:1, 277:1}, SafeUriString); _.equals_0 = function equals_4(obj){ if (!instanceOf(obj, 277)) { return false; } return $equals_1(this.uri_0, obj.uri_0); } ; _.hashCode_0 = function hashCode_6(){ return getHashCode_0(this.uri_0); } ; _.toString_0 = function toString_11(){ return 'safe: "' + this.uri_0 + '"'; } ; var Lcom_google_gwt_safehtml_shared_SafeUriString_2_classLit = createForClass('com.google.gwt.safehtml.shared', 'SafeUriString', 277); function $clinit_UriUtils(){ $clinit_UriUtils = emptyMethod; new RegExp('%5B', 'g'); new RegExp('%5D', 'g'); } function $getItem(this$static, key){ return $getItem_0(this$static.storage, key); } function $removeItem(this$static, key){ $removeItem_0(this$static.storage, key); } function $setItem(this$static, key, data_0){ $setItem_0(this$static.storage, key, data_0); } function Storage_0(storage){ this.storage = storage; } defineClass(68, 1, {}, Storage_0); var localStorage_0, sessionStorage_0; var Lcom_google_gwt_storage_client_Storage_2_classLit = createForClass('com.google.gwt.storage.client', 'Storage', 68); function $clinit_Storage$StorageSupportDetector(){ $clinit_Storage$StorageSupportDetector = emptyMethod; localStorageSupported = checkStorageSupport('localStorage'); sessionStorageSupported = checkStorageSupport('sessionStorage'); } function checkStorageSupport(storage){ var c = '_gwt_dummy_'; try { $wnd[storage].setItem(c, c); $wnd[storage].removeItem(c); return true; } catch (e) { return false; } } var localStorageSupported = false, sessionStorageSupported = false; function $getItem_0(storage, key){ return $wnd[storage].getItem(key); } function $getLength(storage){ return $wnd[storage].length; } function $key(storage, index_0){ return index_0 >= 0 && index_0 < $wnd[storage].length?$wnd[storage].key(index_0):null; } function $removeItem_0(storage, key){ $wnd[storage].getItem(key); $wnd[storage].removeItem(key); } function $setItem_0(storage, key, data_0){ $wnd[storage].getItem(key); $wnd[storage].setItem(key, data_0); } defineClass(991, 1, {}); var Lcom_google_gwt_text_shared_AbstractRenderer_2_classLit = createForClass('com.google.gwt.text.shared', 'AbstractRenderer', 991); function PassthroughParser(){ } defineClass(830, 1, {}, PassthroughParser); var INSTANCE_0; var Lcom_google_gwt_text_shared_testing_PassthroughParser_2_classLit = createForClass('com.google.gwt.text.shared.testing', 'PassthroughParser', 830); function PassthroughRenderer(){ } defineClass(829, 991, {}, PassthroughRenderer); var INSTANCE_1; var Lcom_google_gwt_text_shared_testing_PassthroughRenderer_2_classLit = createForClass('com.google.gwt.text.shared.testing', 'PassthroughRenderer', 829); function $calcNewVelocity(initialVelocity, decelFactor, oldVelocity, minDecel){ var maxVelocityX, minVelocityX, newVelocity; newVelocity = initialVelocity * decelFactor; if (oldVelocity >= 0) { maxVelocityX = $wnd.Math.max(0, oldVelocity - minDecel); newVelocity = $wnd.Math.min(newVelocity, maxVelocityX); } else { minVelocityX = $wnd.Math.min(0, oldVelocity + minDecel); newVelocity = $wnd.Math.max(newVelocity, minVelocityX); } return newVelocity; } function $updateState(state){ var decelFactor, dist, elapsedMillis, ellapsedMillis, initialVelocity, minDecel, newVelocity, newVelocityX, newVelocityY, oldVelocity, position, totalEllapsedMillis; ellapsedMillis = state.elapsedMillis; totalEllapsedMillis = state.cumulativeElapsedMillis; initialVelocity = state.initialVelocity; oldVelocity = state.velocity; decelFactor = $wnd.Math.pow(0.9993, totalEllapsedMillis); minDecel = ellapsedMillis * 5.0E-4; newVelocityX = $calcNewVelocity(initialVelocity.x_0, decelFactor, oldVelocity.x_0, minDecel); newVelocityY = $calcNewVelocity(initialVelocity.y_0, decelFactor, oldVelocity.y_0, minDecel); newVelocity = new Point(newVelocityX, newVelocityY); state.velocity = newVelocity; elapsedMillis = state.elapsedMillis; dist = $mult(newVelocity, new Point(elapsedMillis, elapsedMillis)); position = state.position; $setPosition(state, new Point(position.x_0 + dist.x_0, position.y_0 + dist.y_0)); if ($wnd.Math.abs(newVelocity.x_0) < $intern_36 && $wnd.Math.abs(newVelocity.y_0) < $intern_36) { return false; } return true; } function DefaultMomentum(){ } defineClass(946, 1, {}, DefaultMomentum); var Lcom_google_gwt_touch_client_DefaultMomentum_2_classLit = createForClass('com.google.gwt.touch.client', 'DefaultMomentum', 946); function $setCumulativeElapsedMillis(this$static, cumulativeElapsedMillis){ this$static.cumulativeElapsedMillis = cumulativeElapsedMillis; } function $setElapsedMillis(this$static, elapsedMillis){ this$static.elapsedMillis = elapsedMillis; } function $setPosition(this$static, position){ this$static.position = position; } function Momentum$State(initialPosition, initialVelocity){ this.initialVelocity = initialVelocity; this.position = new Point_0(initialPosition); this.velocity = new Point_0(initialVelocity); } defineClass(947, 1, {}, Momentum$State); _.cumulativeElapsedMillis = 0; _.elapsedMillis = 0; var Lcom_google_gwt_touch_client_Momentum$State_2_classLit = createForClass('com.google.gwt.touch.client', 'Momentum/State', 947); function $minus(this$static, c){ return new Point(this$static.x_0 - c.x_0, this$static.y_0 - c.y_0); } function $mult(this$static, c){ return new Point(this$static.x_0 * c.x_0, this$static.y_0 * c.y_0); } function $plus(this$static, c){ return new Point(this$static.x_0 + c.x_0, this$static.y_0 + c.y_0); } function Point(x_0, y_0){ this.x_0 = x_0; this.y_0 = y_0; } function Point_0(c){ Point.call(this, c.x_0, c.y_0); } defineClass(112, 1, {112:1}, Point, Point_0); _.equals_0 = function equals_5(obj){ var c; if (!instanceOf(obj, 112)) { return false; } c = obj; return this.x_0 == c.x_0 && this.y_0 == c.y_0; } ; _.hashCode_0 = function hashCode_7(){ return round_int(this.x_0) ^ round_int(this.y_0); } ; _.toString_0 = function toString_12(){ return 'Point(' + this.x_0 + ',' + this.y_0 + ')'; } ; _.x_0 = 0; _.y_0 = 0; var Lcom_google_gwt_touch_client_Point_2_classLit = createForClass('com.google.gwt.touch.client', 'Point', 112); function $calculateEndVelocity(from, to){ var dist, time; time = to.time - from.time; if (time <= 0) { return null; } dist = $minus(from.point, to.point); return new Point(dist.x_0 / time, dist.y_0 / time); } function $cancelAll(this$static){ this$static.touching = false; this$static.dragging = false; this$static.momentumCommand = null; } function $getWidgetScrollPosition(this$static){ return new Point($getHorizontalScrollPosition(this$static.widget), $getVerticalScrollPosition(this$static.widget)); } function $hitTest(point1, point2){ var absDiffX, absDiffY, diff; diff = new Point(point1.x_0 - point2.x_0, point1.y_0 - point2.y_0); absDiffX = $wnd.Math.abs(diff.x_0); absDiffY = $wnd.Math.abs(diff.y_0); return absDiffX <= 25 && absDiffY <= 25; } function $isClickScrollTriggeringTouch(this$static, clickPoint){ if (this$static.recentScrollTriggeringTouchPosition.point) { return $hitTest(clickPoint, this$static.recentScrollTriggeringTouchPosition.point); } return false; } function $isClickTouchPositionDuringMomentum(this$static, clickPoint){ var currentTime, point, point$iterator, same; currentTime = now_1(); same = false; for (point$iterator = new ArrayList$1(this$static.touchPositionsDuringMomentum); point$iterator.i < point$iterator.this$01.array.length;) { point = $next_4(point$iterator); if (currentTime - point.time <= 2500 && $hitTest(clickPoint, point.point)) { same = true; break; } } return same; } function $onDragEnd(this$static){ var endVelocity; if (!this$static.momentum) { return; } endVelocity = $calculateEndVelocity(this$static.recentTouchPosition, this$static.lastTouchPosition); if (endVelocity) { this$static.momentumCommand = new TouchScroller$MomentumCommand(this$static, endVelocity); scheduleFixedDelayImpl(($clinit_SchedulerImpl() , this$static.momentumCommand), 16); } } function $onTouchEnd(this$static){ if (!this$static.touching) { return; } this$static.touching = false; if (this$static.dragging) { this$static.dragging = false; $onDragEnd(this$static); } } function $onTouchMove(this$static, event_0){ var absDiffX, absDiffY, diff, hMax, hMin, hPosition, touch, touchPoint, touchTime, touches, trackingTime, vMax, vPosition, diff_0, curScrollPosition; if (!this$static.touching) { return; } touch = (touches = event_0.nativeEvent.touches , touches.length > 0?touches[0]:null); touchPoint = new Point((touch.pageX || 0) | 0, (touch.pageY || 0) | 0); touchTime = now_1(); $setTemporalPoint(this$static.lastTouchPosition, touchPoint, touchTime); if (!this$static.dragging) { diff = $minus(touchPoint, this$static.startTouchPosition); absDiffX = $wnd.Math.abs(diff.x_0); absDiffY = $wnd.Math.abs(diff.y_0); if (absDiffX > 5 || absDiffY > 5) { $setTemporalPoint(this$static.recentScrollTriggeringTouchPosition, this$static.recentTouchPosition.point, this$static.recentTouchPosition.time); if (absDiffX > absDiffY) { hPosition = $getHorizontalScrollPosition(this$static.widget); hMin = $getMinimumHorizontalScrollPosition_0(this$static.widget); hMax = $getMaximumHorizontalScrollPosition_0(this$static.widget); if (diff.x_0 < 0 && hMax <= hPosition) { $cancelAll(this$static); return; } else if (diff.x_0 > 0 && hMin >= hPosition) { $cancelAll(this$static); return; } } else { vPosition = $getVerticalScrollPosition(this$static.widget); vMax = $getMaximumVerticalScrollPosition(this$static.widget); if (diff.y_0 < 0 && vMax <= vPosition) { $cancelAll(this$static); return; } else if (diff.y_0 > 0 && 0 >= vPosition) { $cancelAll(this$static); return; } } this$static.dragging = true; } } !!event_0.nativeEvent && (event_0.nativeEvent.preventDefault() , undefined); if (this$static.dragging) { diff_0 = $minus(this$static.startTouchPosition, this$static.lastTouchPosition.point); curScrollPosition = $plus(this$static.startScrollPosition, diff_0); $setHorizontalScrollPosition(this$static.widget, round_int(curScrollPosition.x_0)); $setVerticalScrollPosition(this$static.widget, round_int(curScrollPosition.y_0)); trackingTime = touchTime - this$static.recentTouchPosition.time; if (trackingTime > 200 && !!this$static.recentTouchPositionOnDeck) { $setTemporalPoint(this$static.recentTouchPosition, this$static.recentTouchPositionOnDeck.point, this$static.recentTouchPositionOnDeck.time); this$static.recentTouchPositionOnDeck = null; } else trackingTime > 100 && !this$static.recentTouchPositionOnDeck && (this$static.recentTouchPositionOnDeck = new TouchScroller$TemporalPoint_0(touchPoint, touchTime)); } } function $onTouchStart(this$static, event_0){ var startTouchTime, touch, touches; $setTemporalPoint(this$static.recentScrollTriggeringTouchPosition, null, 0); if (this$static.touching) { return; } touch = (touches = event_0.nativeEvent.touches , touches.length > 0?touches[0]:null); this$static.startTouchPosition = new Point((touch.pageX || 0) | 0, (touch.pageY || 0) | 0); startTouchTime = now_1(); $setTemporalPoint(this$static.recentTouchPosition, this$static.startTouchPosition, startTouchTime); $setTemporalPoint(this$static.lastTouchPosition, this$static.startTouchPosition, startTouchTime); this$static.recentTouchPositionOnDeck = null; if (this$static.momentumCommand) { $add_8(this$static.touchPositionsDuringMomentum, new TouchScroller$TemporalPoint_0(this$static.startTouchPosition, startTouchTime)); scheduleFixedDelayImpl(($clinit_SchedulerImpl() , this$static.momentumTouchRemovalCommand), 2500); } this$static.startScrollPosition = new Point($getHorizontalScrollPosition(this$static.widget), $getVerticalScrollPosition(this$static.widget)); $cancelAll(this$static); this$static.touching = true; } function $removeAttachHandler(this$static){ if (this$static.attachHandlerReg) { $removeHandler(this$static.attachHandlerReg.real); this$static.attachHandlerReg = null; } } function $removeBustClickHandler(this$static){ if (this$static.bustClickHandlerReg) { $removeHandler(this$static.bustClickHandlerReg.real); this$static.bustClickHandlerReg = null; } } function $setMomentum(this$static, momentum){ this$static.momentum = momentum; } function $setTargetWidget(this$static, widget){ var reg, reg$iterator; if (this$static.widget == widget) { return; } $cancelAll(this$static); for (reg$iterator = new ArrayList$1(this$static.handlerRegs); reg$iterator.i < reg$iterator.this$01.array.length;) { reg = $next_4(reg$iterator); $removeHandler(reg.real); } this$static.handlerRegs.array = initUnidimensionalArray(Ljava_lang_Object_2_classLit, $intern_3, 1, 0, 5, 1); $removeAttachHandler(this$static); $removeBustClickHandler(this$static); this$static.widget = widget; widget.attached && ($removeBustClickHandler(this$static) , this$static.bustClickHandlerReg = addNativePreviewHandler(new TouchScroller$6(this$static))); this$static.attachHandlerReg = $addHandler(widget, new TouchScroller$1(this$static), (!TYPE_17 && (TYPE_17 = new GwtEvent$Type) , TYPE_17)); $add_8(this$static.handlerRegs, $addDomHandler(widget, new TouchScroller$2(this$static), ($clinit_TouchStartEvent() , $clinit_TouchStartEvent() , TYPE_16))); $add_8(this$static.handlerRegs, $addDomHandler(widget, new TouchScroller$3(this$static), ($clinit_TouchMoveEvent() , $clinit_TouchMoveEvent() , TYPE_15))); $add_8(this$static.handlerRegs, $addDomHandler(widget, new TouchScroller$4(this$static), ($clinit_TouchEndEvent() , $clinit_TouchEndEvent() , TYPE_14))); $add_8(this$static.handlerRegs, $addDomHandler(widget, new TouchScroller$5(this$static), ($clinit_TouchCancelEvent() , $clinit_TouchCancelEvent() , TYPE_13))); } function $setWidgetScrollPosition(this$static, position){ $setHorizontalScrollPosition(this$static.widget, round_int(position.x_0)); $setVerticalScrollPosition(this$static.widget, round_int(position.y_0)); } function $setupBustClickHandler(this$static){ $removeBustClickHandler(this$static); this$static.bustClickHandlerReg = addNativePreviewHandler(new TouchScroller$6(this$static)); } function TouchScroller(){ this.handlerRegs = new ArrayList; this.lastTouchPosition = new TouchScroller$TemporalPoint; this.recentTouchPosition = new TouchScroller$TemporalPoint; this.recentScrollTriggeringTouchPosition = new TouchScroller$TemporalPoint; this.touchPositionsDuringMomentum = new ArrayList; this.momentumTouchRemovalCommand = new TouchScroller$MomentumTouchRemovalCommand(this); $setMomentum(this, new DefaultMomentum); } defineClass(906, 1, {}, TouchScroller); _.dragging = false; _.touching = false; var isSupported; var Lcom_google_gwt_touch_client_TouchScroller_2_classLit = createForClass('com.google.gwt.touch.client', 'TouchScroller', 906); function TouchScroller$1(this$0){ this.this$01 = this$0; } defineClass(910, 1, {1016:1, 11:1}, TouchScroller$1); var Lcom_google_gwt_touch_client_TouchScroller$1_2_classLit = createForClass('com.google.gwt.touch.client', 'TouchScroller/1', 910); function TouchScroller$2(this$0){ this.this$01 = this$0; } defineClass(911, 1, $intern_37, TouchScroller$2); _.onTouchStart = function onTouchStart(event_0){ $onTouchStart(this.this$01, event_0); } ; var Lcom_google_gwt_touch_client_TouchScroller$2_2_classLit = createForClass('com.google.gwt.touch.client', 'TouchScroller/2', 911); function TouchScroller$3(this$0){ this.this$01 = this$0; } defineClass(912, 1, {1000:1, 11:1}, TouchScroller$3); _.onTouchMove = function onTouchMove(event_0){ $onTouchMove(this.this$01, event_0); } ; var Lcom_google_gwt_touch_client_TouchScroller$3_2_classLit = createForClass('com.google.gwt.touch.client', 'TouchScroller/3', 912); function TouchScroller$4(this$0){ this.this$01 = this$0; } defineClass(913, 1, $intern_38, TouchScroller$4); _.onTouchEnd = function onTouchEnd(event_0){ $onTouchEnd(this.this$01); } ; var Lcom_google_gwt_touch_client_TouchScroller$4_2_classLit = createForClass('com.google.gwt.touch.client', 'TouchScroller/4', 913); function TouchScroller$5(this$0){ this.this$01 = this$0; } defineClass(914, 1, $intern_39, TouchScroller$5); _.onTouchCancel = function onTouchCancel(event_0){ $onTouchEnd(this.this$01); } ; var Lcom_google_gwt_touch_client_TouchScroller$5_2_classLit = createForClass('com.google.gwt.touch.client', 'TouchScroller/5', 914); function TouchScroller$6(this$0){ this.this$01 = this$0; } defineClass(447, 1, $intern_40, TouchScroller$6); _.onPreviewNativeEvent = function onPreviewNativeEvent(event_0){ var clickPoint; if (1 == $getTypeInt(event_0.nativeEvent)) { clickPoint = new Point((event_0.nativeEvent.clientX || 0) | 0, (event_0.nativeEvent.clientY || 0) | 0); if ($isClickScrollTriggeringTouch(this.this$01, clickPoint) || $isClickTouchPositionDuringMomentum(this.this$01, clickPoint)) { event_0.isCanceled = true; event_0.nativeEvent.stopPropagation(); event_0.nativeEvent.preventDefault(); } } } ; var Lcom_google_gwt_touch_client_TouchScroller$6_2_classLit = createForClass('com.google.gwt.touch.client', 'TouchScroller/6', 447); function $finish(this$static){ if (this$static.windowResizeHandler) { $removeHandler(this$static.windowResizeHandler.real); this$static.windowResizeHandler = null; } this$static == this$static.this$01.momentumCommand && (this$static.this$01.momentumCommand = null); } function TouchScroller$MomentumCommand(this$0, endVelocity){ this.this$01 = this$0; this.duration = new Duration; this.initialPosition = $getWidgetScrollPosition(this.this$01); this.state = new Momentum$State(this.initialPosition, endVelocity); this.windowResizeHandler = addResizeHandler(new TouchScroller$MomentumCommand$1(this)); } defineClass(907, 1, {}, TouchScroller$MomentumCommand); _.execute_0 = function execute_3(){ var cumulativeElapsedMillis, hMax, hMin, hPos, notDone, vMax, vPos; if (this != this.this$01.momentumCommand) { $finish(this); return false; } cumulativeElapsedMillis = $elapsedMillis(this.duration); $setElapsedMillis(this.state, cumulativeElapsedMillis - this.lastElapsedMillis); this.lastElapsedMillis = cumulativeElapsedMillis; $setCumulativeElapsedMillis(this.state, cumulativeElapsedMillis); notDone = $updateState(this.state); notDone || $finish(this); $setWidgetScrollPosition(this.this$01, this.state.position); hPos = round_int(this.state.position.x_0); hMin = $getMinimumHorizontalScrollPosition_0(this.this$01.widget); hMax = $getMaximumHorizontalScrollPosition_0(this.this$01.widget); vMax = $getMaximumVerticalScrollPosition(this.this$01.widget); vPos = round_int(this.state.position.y_0); if ((vMax <= vPos || 0 >= vPos) && (hMax <= hPos || hMin >= hPos)) { $finish(this); return false; } return notDone; } ; _.lastElapsedMillis = 0; var Lcom_google_gwt_touch_client_TouchScroller$MomentumCommand_2_classLit = createForClass('com.google.gwt.touch.client', 'TouchScroller/MomentumCommand', 907); function TouchScroller$MomentumCommand$1(this$1){ this.this$11 = this$1; } defineClass(909, 1, $intern_41, TouchScroller$MomentumCommand$1); _.onResize = function onResize(event_0){ $finish(this.this$11); } ; var Lcom_google_gwt_touch_client_TouchScroller$MomentumCommand$1_2_classLit = createForClass('com.google.gwt.touch.client', 'TouchScroller/MomentumCommand/1', 909); function TouchScroller$MomentumTouchRemovalCommand(this$0){ this.this$01 = this$0; } defineClass(908, 1, {}, TouchScroller$MomentumTouchRemovalCommand); _.execute_0 = function execute_4(){ var currentTime, iter, point; currentTime = now_1(); iter = new ArrayList$1(this.this$01.touchPositionsDuringMomentum); while (iter.i < iter.this$01.array.length) { point = $next_4(iter); currentTime - point.time >= 2500 && $remove_14(iter); } return this.this$01.touchPositionsDuringMomentum.array.length != 0; } ; var Lcom_google_gwt_touch_client_TouchScroller$MomentumTouchRemovalCommand_2_classLit = createForClass('com.google.gwt.touch.client', 'TouchScroller/MomentumTouchRemovalCommand', 908); function $setTemporalPoint(this$static, point, time){ this$static.point = point; this$static.time = time; } function TouchScroller$TemporalPoint(){ } function TouchScroller$TemporalPoint_0(point, time){ this.point = point; this.time = time; } defineClass(226, 1, {226:1}, TouchScroller$TemporalPoint, TouchScroller$TemporalPoint_0); _.time = 0; var Lcom_google_gwt_touch_client_TouchScroller$TemporalPoint_2_classLit = createForClass('com.google.gwt.touch.client', 'TouchScroller/TemporalPoint', 226); defineClass(950, 1, {11:1}); var Lcom_google_gwt_user_client_BaseListenerWrapper_2_classLit = createForClass('com.google.gwt.user.client', 'BaseListenerWrapper', 950); function $clinit_DOM(){ $clinit_DOM = emptyMethod; $clinit_DOMImplStandard(); } 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(evt.type) == 8192 && (sCaptureElem = null); listener.onBrowserEvent(evt); currentEvent = prevCurrentEvent; } function insertChild(parent_0, child, index_0){ $clinit_DOM(); $insertChild(parent_0, resolve(child), index_0); } function isPotential(o){ $clinit_DOM(); try { return !!o && !!o.__gwt_resolve; } catch (e) { return false; } } function previewEvent(evt){ $clinit_DOM(); var ret; ret = fire_4(handlers_0, evt); if (!ret && !!evt) { evt.stopPropagation(); evt.preventDefault(); } return ret; } function releaseCapture(elem){ $clinit_DOM(); !!sCaptureElem && elem == sCaptureElem && (sCaptureElem = null); $maybeInitializeEventSystem(); ($clinit_DOMImplStandard() , captureElem) == elem && (captureElem = null); } function resolve(maybePotential){ $clinit_DOM(); return maybePotential.__gwt_resolve?maybePotential.__gwt_resolve():maybePotential; } function setCapture(elem){ $clinit_DOM(); sCaptureElem = elem; $maybeInitializeEventSystem(); $clinit_DOMImplStandard() , captureElem = elem; } function sinkEvents_0(elem, eventBits){ $clinit_DOM(); $maybeInitializeEventSystem(); $sinkEventsImpl(elem, eventBits); } var currentEvent = null, sCaptureElem; function $onModuleLoad(){ var allowedModes, currentMode, i; currentMode = $doc.compatMode; allowedModes = stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, ['CSS1Compat']); for (i = 0; i < allowedModes.length; i++) { if ($equals_1(allowedModes[i], currentMode)) { return; } } allowedModes.length == 1 && $equals_1('CSS1Compat', allowedModes[0]) && $equals_1('BackCompat', currentMode)?"GWT no longer supports Quirks Mode (document.compatMode=' BackCompat').
Make sure your application's host HTML page has a Standards Mode (document.compatMode=' CSS1Compat') doctype,
e.g. by using <!doctype html> at the start of your application's HTML page.

To continue using this unsupported rendering mode and risk layout problems, suppress this message by adding
the following line to your*.gwt.xml module file:
  <extend-configuration-property name=\"document.compatMode\" value=\"" + currentMode + '"/>':"Your *.gwt.xml module configuration prohibits the use of the current document rendering mode (document.compatMode=' " + currentMode + "').
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(this$static.type); } function addNativePreviewHandler(handler){ $clinit_DOM(); $maybeInitializeEventSystem(); !TYPE_21 && (TYPE_21 = new GwtEvent$Type); if (!handlers_0) { handlers_0 = new HandlerManager_0(null, true); singleton = new Event$NativePreviewEvent; } return $addHandler_0(handlers_0, TYPE_21, handler); } function getEventsSunk(elem){ return $clinit_DOM() , elem.__eventBits || 0; } function getTypeInt(typeName){ return $eventGetTypeInt(($clinit_DOM() , typeName)); } function releaseCapture_0(elem){ $clinit_DOM(); !!sCaptureElem && elem == sCaptureElem && (sCaptureElem = null); $maybeInitializeEventSystem(); ($clinit_DOMImplStandard() , captureElem) == elem && (captureElem = null); } function setCapture_0(elem){ $clinit_DOM(); sCaptureElem = elem; $maybeInitializeEventSystem(); $clinit_DOMImplStandard() , captureElem = elem; } function sinkEvents_1(elem, eventBits){ $clinit_DOM(); $maybeInitializeEventSystem(); $sinkEventsImpl(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_4(handlers, nativeEvent){ var lastIsCanceled, lastIsConsumed, lastIsFirstHandler, lastNativeEvent, ret; if (!!TYPE_21 && !!handlers && $isEventHandled(handlers, TYPE_21)) { lastIsCanceled = singleton.isCanceled; lastIsConsumed = singleton.isConsumed; lastIsFirstHandler = singleton.isFirstHandler; lastNativeEvent = singleton.nativeEvent; $revive(singleton); $setNativeEvent_0(singleton, nativeEvent); $fireEvent_0(handlers, singleton); ret = !(singleton.isCanceled && !singleton.isConsumed); singleton.isCanceled = lastIsCanceled; singleton.isConsumed = lastIsConsumed; singleton.isFirstHandler = lastIsFirstHandler; singleton.nativeEvent = lastNativeEvent; return ret; } return true; } defineClass(483, 978, {}, Event$NativePreviewEvent); _.dispatch = function dispatch_21(handler){ handler.onPreviewNativeEvent(this); singleton.isFirstHandler = false; } ; _.getAssociatedType = function getAssociatedType_22(){ return TYPE_21; } ; _.revive = function revive_0(){ $revive(this); } ; _.isCanceled = false; _.isConsumed = false; _.isFirstHandler = false; var TYPE_21, singleton; var Lcom_google_gwt_user_client_Event$NativePreviewEvent_2_classLit = createForClass('com.google.gwt.user.client', 'Event/NativePreviewEvent', 483); 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, href_0, hashLoc; hashToken = (href_0 = $wnd.location.href , hashLoc = href_0.indexOf('#') , hashLoc > 0?href_0.substring(hashLoc):''); if (hashToken == null || hashToken.length == 0) { return ''; } return $decode(hashToken.substr(1)); } function onHashChanged(){ $clinit_History(); var hashToken; hashToken = getDecodedHash(); if (!$equals_1(hashToken, token)) { token = hashToken; fire_3(historyEventSource, hashToken); } } var historyEventSource, token; function $addValueChangeHandler(this$static, handler){ return $addHandler_0(this$static.handlers, (!TYPE_20 && (TYPE_20 = new GwtEvent$Type) , TYPE_20), handler); } function History$HistoryEventSource(){ this.handlers = new HandlerManager(null); } defineClass(904, 1, {210:1, 25:1}, History$HistoryEventSource); _.fireEvent = function fireEvent_1(event_0){ $fireEvent_0(this.handlers, event_0); } ; var Lcom_google_gwt_user_client_History$HistoryEventSource_2_classLit = createForClass('com.google.gwt.user.client', 'History/HistoryEventSource', 904); function History$HistoryImpl(){ var handler; handler = $entry(onHashChanged); $wnd.addEventListener('hashchange', handler, false); } defineClass(905, 1, {}, History$HistoryImpl); var Lcom_google_gwt_user_client_History$HistoryImpl_2_classLit = createForClass('com.google.gwt.user.client', 'History/HistoryImpl', 905); function $decode(toDecode){ return $wnd.decodeURI(toDecode.replace('%23', '#')); } function addCloseHandler(handler){ maybeInitializeCloseHandlers(); return addHandler(TYPE_18?TYPE_18:(TYPE_18 = new GwtEvent$Type), handler); } function addHandler(type_0, handler){ return $addHandler_0((!handlers_1 && (handlers_1 = new Window$WindowHandlers) , handlers_1), type_0, handler); } function addResizeHandler(handler){ maybeInitializeCloseHandlers(); maybeInitializeResizeHandlers(); return addHandler((!TYPE_19 && (TYPE_19 = new GwtEvent$Type) , TYPE_19), handler); } function addWindowClosingHandler(handler){ maybeInitializeCloseHandlers(); return addHandler(($clinit_Window$ClosingEvent() , $clinit_Window$ClosingEvent() , TYPE_22), handler); } function alert_0(msg){ $wnd.alert(msg); } function confirm_2(msg){ return $wnd.confirm(msg); } function maybeInitializeCloseHandlers(){ if (!closeHandlersInitialized) { $initHandler('function __gwt_initWindowCloseHandler(beforeunload, unload) {\n var wnd = window\n , oldOnBeforeUnload = wnd.onbeforeunload\n , oldOnUnload = wnd.onunload;\n \n wnd.onbeforeunload = function(evt) {\n var ret, oldRet;\n try {\n ret = beforeunload();\n } finally {\n oldRet = oldOnBeforeUnload && oldOnBeforeUnload(evt);\n }\n // Avoid returning null as IE6 will coerce it into a string.\n // Ensure that "" gets returned properly.\n if (ret != null) {\n return ret;\n }\n if (oldRet != null) {\n return oldRet;\n }\n // returns undefined.\n };\n \n wnd.onunload = function(evt) {\n try {\n unload();\n } finally {\n oldOnUnload && oldOnUnload(evt);\n wnd.onresize = null;\n wnd.onscroll = null;\n wnd.onbeforeunload = null;\n wnd.onunload = null;\n }\n };\n \n // Remove the reference once we\'ve initialize the handler\n wnd.__gwt_initWindowCloseHandler = undefined;\n}\n', new WindowImplIE$1); closeHandlersInitialized = true; } } function maybeInitializeResizeHandlers(){ if (!resizeHandlersInitialized) { $initHandler("function __gwt_initWindowResizeHandler(resize) {\n var wnd = window, oldOnResize = wnd.onresize;\n \n wnd.onresize = function(evt) {\n try {\n resize();\n } finally {\n oldOnResize && oldOnResize(evt);\n }\n };\n \n // Remove the reference once we've initialize the handler\n wnd.__gwt_initWindowResizeHandler = undefined;\n}\n", new WindowImplIE$2); resizeHandlersInitialized = true; } } function onClosed(){ closeHandlersInitialized && fire_1((!handlers_1 && (handlers_1 = new Window$WindowHandlers) , handlers_1), false); } function onClosing(){ var event_0; if (closeHandlersInitialized) { event_0 = new Window$ClosingEvent; !!handlers_1 && $fireEvent_0(handlers_1, event_0); return event_0.message_0; } return null; } function onResize_0(){ 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_2((!handlers_1 && (handlers_1 = new Window$WindowHandlers) , handlers_1), width_0); } } } var closeHandlersInitialized = false, handlers_1, lastResizeHeight = 0, lastResizeWidth = 0, resizeHandlersInitialized = false; function $clinit_Window$ClosingEvent(){ $clinit_Window$ClosingEvent = emptyMethod; TYPE_22 = new GwtEvent$Type; } function $setMessage(this$static, message){ this$static.message_0 = message; } function Window$ClosingEvent(){ $clinit_Window$ClosingEvent(); } defineClass(485, 978, {}, Window$ClosingEvent); _.dispatch = function dispatch_22(handler){ handler.this$01.app.unsavedChanges && !($wnd.openFile != undefined) && $setMessage(this, LS('Are you sure? There are unsaved changes.')); } ; _.getAssociatedType = function getAssociatedType_23(){ return TYPE_22; } ; _.message_0 = null; var TYPE_22; var Lcom_google_gwt_user_client_Window$ClosingEvent_2_classLit = createForClass('com.google.gwt.user.client', 'Window/ClosingEvent', 485); function Window$WindowHandlers(){ HandlerManager.call(this, null); } defineClass(283, 214, {64:1, 25:1}, Window$WindowHandlers); var Lcom_google_gwt_user_client_Window$WindowHandlers_2_classLit = createForClass('com.google.gwt.user.client', 'Window/WindowHandlers', 283); function $eventGetTypeInt(eventType){ switch (eventType) { case 'blur': return $intern_42; case 'change': return $intern_24; case 'click': return 1; case 'dblclick': return 2; case 'focus': return $intern_43; 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 $intern_44; case 'error': return $intern_45; case 'DOMMouseScroll': case 'mousewheel': return $intern_46; case 'contextmenu': return $intern_47; case 'paste': return $intern_29; case 'touchstart': return $intern_48; case 'touchmove': return $intern_49; case 'touchend': return $intern_30; case 'touchcancel': return $intern_50; case 'gesturestart': return $intern_51; case 'gesturechange': return $intern_52; case 'gestureend': return $intern_53; default:return -1; } } function $maybeInitializeEventSystem(){ if (!eventSystemIsInitialized) { $initEventSystem(); eventSystemIsInitialized = true; } } function getEventListener(elem){ var maybeListener = elem.__listener; return !instanceOfJso(maybeListener) && instanceOf(maybeListener, 27)?maybeListener:null; } function setEventListener(elem, listener){ elem.__listener = listener; } var eventSystemIsInitialized = false; 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(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 $getChildCount(elem){ var count = 0, child = elem.firstChild; while (child) { child.nodeType == 1 && ++count; child = child.nextSibling; } return count; } 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 $insertChild(parent_0, toAdd, index_0){ var count = 0, child = parent_0.firstChild, before = null; while (child) { if (child.nodeType == 1) { if (count == index_0) { before = child; break; } ++count; } child = child.nextSibling; } parent_0.insertBefore(toAdd, before); } function $sinkBitlessEvent_0(elem, eventTypeName){ $maybeInitializeEventSystem(); $sinkBitlessEventImpl(elem, eventTypeName); $equals_1('dragover', eventTypeName) && $sinkBitlessEventImpl(elem, 'dragenter'); } function $sinkBitlessEventImpl(elem, eventTypeName){ var dispatchMap = bitlessEventDispatchers; var 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 & $intern_24 && (elem.onchange = bits & $intern_24?dispatchEvent_2:null); chMask & $intern_43 && (elem.onfocus = bits & $intern_43?dispatchEvent_2:null); chMask & $intern_42 && (elem.onblur = bits & $intern_42?dispatchEvent_2:null); chMask & 8192 && (elem.onlosecapture = bits & 8192?dispatchEvent_2:null); chMask & $intern_44 && (elem.onscroll = bits & $intern_44?dispatchEvent_2:null); chMask & 32768 && (elem.onload = bits & 32768?dispatchUnhandledEvent:null); chMask & $intern_45 && (elem.onerror = bits & $intern_45?dispatchEvent_2:null); chMask & $intern_46 && (elem.onmousewheel = bits & $intern_46?dispatchEvent_2:null); chMask & $intern_47 && (elem.oncontextmenu = bits & $intern_47?dispatchEvent_2:null); chMask & $intern_29 && (elem.onpaste = bits & $intern_29?dispatchEvent_2:null); chMask & $intern_48 && (elem.ontouchstart = bits & $intern_48?dispatchEvent_2:null); chMask & $intern_49 && (elem.ontouchmove = bits & $intern_49?dispatchEvent_2:null); chMask & $intern_30 && (elem.ontouchend = bits & $intern_30?dispatchEvent_2:null); chMask & $intern_50 && (elem.ontouchcancel = bits & $intern_50?dispatchEvent_2:null); chMask & $intern_51 && (elem.ongesturestart = bits & $intern_51?dispatchEvent_2:null); chMask & $intern_52 && (elem.ongesturechange = bits & $intern_52?dispatchEvent_2:null); chMask & $intern_53 && (elem.ongestureend = bits & $intern_53?dispatchEvent_2:null); } function dispatchCapturedEvent(evt){ previewEvent(evt); } function dispatchCapturedMouseEvent(evt){ var cancelled; cancelled = !previewEvent(evt); if (cancelled || !captureElem) { return; } dispatchEvent_0(evt, captureElem) && (evt.stopPropagation() , undefined); } function dispatchDragEvent(evt){ evt.preventDefault(); 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 = evt.currentTarget || $wnd; element['__gwtLastUnhandledEvent'] = evt.type; dispatchEvent_3(evt); } function getFirstAncestorWithListener(evt){ var curElem; curElem = evt.currentTarget || $wnd; while (!!curElem && !getEventListener(curElem)) { curElem = curElem.parentNode; } return curElem; } var bitlessEventDispatchers, captureElem, captureEventDispatchers, dispatchEvent_2, dispatchUnhandledEvent; function $get(this$static, elem){ var index_0; index_0 = getIndex(elem); if (index_0 < 0) { return null; } return $get_2(this$static.uiObjectList, index_0); } function $put(this$static, uiObject){ var index_0; if (!this$static.freeList) { index_0 = this$static.uiObjectList.array.length; $add_8(this$static.uiObjectList, uiObject); } else { index_0 = this$static.freeList.index_0; $set_1(this$static.uiObjectList, index_0, uiObject); this$static.freeList = this$static.freeList.next_0; } ($clinit_DOM() , uiObject.element)['__uiObjectID'] = index_0; } function $removeByElement(this$static, elem){ var index_0; index_0 = getIndex(elem); elem['__uiObjectID'] = null; $set_1(this$static.uiObjectList, index_0, null); this$static.freeList = new ElementMapperImpl$FreeNode(index_0, this$static.freeList); } function ElementMapperImpl(){ this.uiObjectList = new ArrayList; } function getIndex(elem){ var index_0 = elem['__uiObjectID']; return index_0 == null?-1:index_0; } defineClass(819, 1, {}, ElementMapperImpl); _.freeList = null; var Lcom_google_gwt_user_client_impl_ElementMapperImpl_2_classLit = createForClass('com.google.gwt.user.client.impl', 'ElementMapperImpl', 819); function ElementMapperImpl$FreeNode(index_0, next){ this.index_0 = index_0; this.next_0 = next; } defineClass(820, 1, {}, ElementMapperImpl$FreeNode); _.index_0 = 0; var Lcom_google_gwt_user_client_impl_ElementMapperImpl$FreeNode_2_classLit = createForClass('com.google.gwt.user.client.impl', 'ElementMapperImpl/FreeNode', 820); function foreach_0(map_0, fn){ for (var e in map_0) { map_0.hasOwnProperty(e) && fn(e, map_0[e]); } } function $initHandler(initFunc, cmd){ var scriptElem; scriptElem = $createScriptElement($doc, initFunc); $appendChild($doc.body, scriptElem); cmd.execute_1(); $removeChild($doc.body, scriptElem); } function WindowImplIE$1(){ } defineClass(564, 1, {}, WindowImplIE$1); _.execute_1 = function execute_5(){ $wnd.__gwt_initWindowCloseHandler($entry(onClosing), $entry(onClosed)); } ; var Lcom_google_gwt_user_client_impl_WindowImplIE$1_2_classLit = createForClass('com.google.gwt.user.client.impl', 'WindowImplIE/1', 564); function WindowImplIE$2(){ } defineClass(565, 1, {}, WindowImplIE$2); _.execute_1 = function execute_6(){ $wnd.__gwt_initWindowResizeHandler($entry(onResize_0)); } ; var Lcom_google_gwt_user_client_impl_WindowImplIE$2_2_classLit = createForClass('com.google.gwt.user.client.impl', 'WindowImplIE/2', 565); function $adopt(this$static, child){ $setParent(child, this$static); } defineClass(981, 24, $intern_54); _.add_0 = function add_3(child){ throw toJs(new UnsupportedOperationException_0('This panel does not support no-arg add()')); } ; _.doAttachChildren = function doAttachChildren_0(){ tryCommand(this, ($clinit_AttachDetachException() , attachCommand)); } ; _.doDetachChildren = function doDetachChildren_0(){ tryCommand(this, ($clinit_AttachDetachException() , detachCommand)); } ; var Lcom_google_gwt_user_client_ui_Panel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'Panel', 981); function $add(this$static, child, container){ $removeFromParent(child); $add_6(this$static.children, child); $clinit_DOM(); $appendChild(container, resolve(child.element)); $setParent(child, this$static); } function $adjustIndex(this$static, child, beforeIndex){ var idx; $checkIndexBoundsForInsertion(this$static, beforeIndex); if (child.parent_0 == this$static) { idx = $indexOf(this$static.children, child); idx < beforeIndex && --beforeIndex; } return beforeIndex; } function $checkIndexBoundsForInsertion(this$static, index_0){ if (index_0 < 0 || index_0 > this$static.children.size_0) { throw toJs(new IndexOutOfBoundsException); } } function $getWidget(this$static, index_0){ return $get_0(this$static.children, index_0); } function $getWidgetIndex(this$static, child){ return $indexOf(this$static.children, child); } function $insert(this$static, child, container, beforeIndex){ beforeIndex = $adjustIndex(this$static, child, beforeIndex); $removeFromParent(child); $insert_3(this$static.children, child, beforeIndex); $clinit_DOM(); $appendChild(container, resolve(child.element)); $setParent(child, this$static); } function $remove(this$static, index_0){ return $remove_4(this$static, $get_0(this$static.children, index_0)); } 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(elem)), elem); $remove_6(this$static.children, w); } return true; } function ComplexPanel(){ this.children = new WidgetCollection(this); } defineClass(238, 981, $intern_54); _.iterator = function iterator_0(){ return new WidgetCollection$WidgetIterator(this.children); } ; _.remove_0 = function remove_0(w){ return $remove_0(this, w); } ; var Lcom_google_gwt_user_client_ui_ComplexPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ComplexPanel', 238); function $add_0(this$static, w){ $add(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){ elem.style['left'] = ''; elem.style['top'] = ''; elem.style['position'] = ''; } defineClass(670, 238, $intern_54); _.add_0 = function add_4(w){ $add_0(this, w); } ; _.remove_0 = function remove_1(w){ return $remove_1(this, w); } ; var Lcom_google_gwt_user_client_ui_AbsolutePanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'AbsolutePanel', 670); function create_1(resource){ return new ClippedImagePrototype(resource.url_0, resource.left_0, resource.top_0, resource.width_0, resource.height_0); } defineClass(993, 1, {}); var Lcom_google_gwt_user_client_ui_AbstractImagePrototype_2_classLit = createForClass('com.google.gwt.user.client.ui', 'AbstractImagePrototype', 993); function $clinit_HasHorizontalAlignment(){ $clinit_HasHorizontalAlignment = emptyMethod; ALIGN_CENTER = new HasHorizontalAlignment$HorizontalAlignmentConstant(($clinit_Style$TextAlign() , 'center')); new HasHorizontalAlignment$HorizontalAlignmentConstant('justify'); ALIGN_LEFT = new HasHorizontalAlignment$HorizontalAlignmentConstant('left'); ALIGN_RIGHT = new HasHorizontalAlignment$HorizontalAlignmentConstant('right'); ALIGN_LOCALE_START = ($clinit_LocaleInfo() , ALIGN_LEFT); ALIGN_LOCALE_END = ALIGN_RIGHT; ALIGN_DEFAULT = ALIGN_LOCALE_START; } var ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHT; function Anchor_0(text_0, href_0){ $setElement(this, $doc.createElement('a')); ($clinit_DOM() , this.element).className = 'gwt-Anchor'; this.directionalTextHelper = new DirectionalTextHelper(this.element); $setTextOrHtml(this.directionalTextHelper, text_0, false); $setHref(this.element, href_0); } defineClass(198, 82, {71:1, 119:1, 94:1, 122:1, 85:1, 98:1, 121:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 120:1, 96:1, 97:1, 95:1, 124:1, 125:1, 123:1, 86:1, 90:1, 88:1, 89:1, 87:1, 91:1, 102:1, 101:1, 100:1, 99:1, 28:1, 25:1, 207:1, 134:1, 60:1, 27:1, 82:1, 116:1, 248:1, 206:1, 105:1, 115:1, 59:1, 227:1, 146:1, 50:1, 23:1, 196:1, 29:1, 92:1, 117:1, 118:1, 93:1, 22:1, 24:1}, Anchor_0); _.getTabIndex = function getTabIndex_0(){ return $getTabIndex(($clinit_DOM() , this.element)); } ; _.setTabIndex = function setTabIndex_0(index_0){ $setTabIndex(($clinit_DOM() , this.element), index_0); } ; var Lcom_google_gwt_user_client_ui_Anchor_2_classLit = createForClass('com.google.gwt.user.client.ui', 'Anchor', 198); 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(); w$iterator.hasNext_0();) { w = w$iterator.next_1(); try { c.execute_2(w); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 42)) { e = $e0; !caught && (caught = new HashSet); $put_0(caught.map_0, e, caught); } else throw toJs($e0); } } if (caught) { throw toJs(new AttachDetachException(caught)); } } defineClass(570, 333, $intern_19, AttachDetachException); var attachCommand, detachCommand; var Lcom_google_gwt_user_client_ui_AttachDetachException_2_classLit = createForClass('com.google.gwt.user.client.ui', 'AttachDetachException', 570); function AttachDetachException$1(){ } defineClass(571, 1, {}, AttachDetachException$1); _.execute_2 = function execute_7(w){ w.onAttach(); } ; var Lcom_google_gwt_user_client_ui_AttachDetachException$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'AttachDetachException/1', 571); function AttachDetachException$2(){ } defineClass(572, 1, {}, AttachDetachException$2); _.execute_2 = function execute_8(w){ w.onDetach(); } ; var Lcom_google_gwt_user_client_ui_AttachDetachException$2_2_classLit = createForClass('com.google.gwt.user.client.ui', 'AttachDetachException/2', 572); function $setHTML(this$static, html){ $setInnerHTML(($clinit_DOM() , this$static.element), html); } function ButtonBase(elem){ FocusWidget.call(this, elem); } defineClass(190, 82, {71:1, 119:1, 94:1, 122:1, 85:1, 98:1, 121:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 120:1, 96:1, 97:1, 95:1, 124:1, 125:1, 123:1, 86:1, 90:1, 88:1, 89:1, 87:1, 91:1, 102:1, 101:1, 100:1, 99:1, 28:1, 25:1, 60:1, 27:1, 190:1, 82:1, 116:1, 105:1, 115:1, 59:1, 50:1, 23:1, 29:1, 92:1, 117:1, 118:1, 93:1, 22:1, 24:1}); var Lcom_google_gwt_user_client_ui_ButtonBase_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ButtonBase', 190); function Button(){ var e; ButtonBase.call(this, (e = $doc.createElement('BUTTON') , e.setAttribute('type', 'button') , e)); ($clinit_DOM() , this.element).className = 'gwt-Button'; } function Button_0(html){ Button_1.call(this, html.html); } function Button_1(html){ Button.call(this); $setInnerHTML(($clinit_DOM() , this.element), html); } defineClass(31, 190, {71:1, 119:1, 94:1, 122:1, 85:1, 98:1, 121:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 120:1, 96:1, 97:1, 95:1, 124:1, 125:1, 123:1, 86:1, 90:1, 88:1, 89:1, 87:1, 91:1, 102:1, 101:1, 100:1, 99:1, 28:1, 25:1, 60:1, 27:1, 31:1, 190:1, 82:1, 116:1, 105:1, 115:1, 59:1, 50:1, 23:1, 29:1, 92:1, 117:1, 118:1, 93:1, 22:1, 24:1}, Button, Button_0, Button_1); var Lcom_google_gwt_user_client_ui_Button_2_classLit = createForClass('com.google.gwt.user.client.ui', 'Button', 31); function $getWidgetTd(this$static, w){ if (w.parent_0 != this$static) { return null; } return $clinit_DOM() , $getParentElement(w.element); } function $setCellHorizontalAlignment(td, align_0){ ($clinit_DOM() , td)['align'] = align_0.textAlignString; } function $setCellVerticalAlignment(td, align_0){ $setCellVerticalAlignment_0(($clinit_DOM() , td), align_0); } function $setCellVerticalAlignment_0(td, align_0){ td.style['verticalAlign'] = align_0.verticalAlignString; } function $setCellVerticalAlignment_1(this$static, w, align_0){ var td; td = $getWidgetTd(this$static, w); !!td && $setCellVerticalAlignment_0(($clinit_DOM() , td), align_0); } function CellPanel(){ ComplexPanel.call(this); this.table = ($clinit_DOM() , $doc.createElement('table')); this.body_0 = $doc.createElement('tbody'); $appendChild(this.table, resolve(this.body_0)); $setElement(this, this.table); } defineClass(336, 238, $intern_54); var Lcom_google_gwt_user_client_ui_CellPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'CellPanel', 336); function $addValueChangeHandler_0(this$static, handler){ if (!this$static.valueChangeHandlerInitialized) { this$static.ensureDomEventHandlers(); this$static.valueChangeHandlerInitialized = true; } return $addHandler(this$static, handler, (!TYPE_20 && (TYPE_20 = new GwtEvent$Type) , TYPE_20)); } function $getValue(this$static){ return this$static.attached?($clinit_Boolean() , this$static.inputElem.checked?true:false):($clinit_Boolean() , this$static.inputElem.defaultChecked?true:false); } function $setEnabled_0(this$static, enabled){ $setDisabled(this$static.inputElem, !enabled); enabled?$setStyleName_0(this$static, getStylePrimaryName(($clinit_DOM() , this$static.element)) + '-' + 'disabled', false):$setStyleName_0(this$static, getStylePrimaryName(($clinit_DOM() , this$static.element)) + '-' + 'disabled', true); } function $setValue(this$static, value_0){ var oldValue; value_0 == null && (value_0 = ($clinit_Boolean() , FALSE)); oldValue = this$static.attached?($clinit_Boolean() , this$static.inputElem.checked?true:false):($clinit_Boolean() , this$static.inputElem.defaultChecked?true:false); $setChecked(this$static.inputElem, (checkCriticalNotNull(value_0) , value_0)); $setDefaultChecked(this$static.inputElem, (checkCriticalNotNull(value_0) , value_0)); checkCriticalNotNull(value_0); if (value_0 == oldValue) { return; } } function CheckBox(elem){ var uid; ButtonBase.call(this, ($clinit_DOM() , $doc.createElement('span'))); this.inputElem = elem; this.labelElem = $doc.createElement('label'); $appendChild(this.element, this.inputElem); $appendChild(this.element, this.labelElem); uid = $createUniqueId($doc); this.inputElem['id'] = uid; $setHtmlFor(this.labelElem, uid); this.directionalTextHelper = new DirectionalTextHelper(this.labelElem); !!this.inputElem && (this.inputElem.tabIndex = 0 , undefined); } function CheckBox_0(label_0){ CheckBox.call(this, ($clinit_DOM() , $createCheckInputElement($doc))); this.element.className = 'gwt-CheckBox'; $setTextOrHtml(this.directionalTextHelper, label_0, false); } defineClass(166, 190, $intern_55); _.ensureDomEventHandlers = function ensureDomEventHandlers(){ $addDomHandler(this, new CheckBox$1(this), ($clinit_ClickEvent() , $clinit_ClickEvent() , TYPE_1)); } ; _.getTabIndex = function getTabIndex_1(){ return $getTabIndex(this.inputElem); } ; _.onLoad = function onLoad_0(){ $clinit_DOM(); this.inputElem.__listener = this; } ; _.onUnload = function onUnload_0(){ $clinit_DOM(); this.inputElem.__listener = null; $setValue(this, this.attached?($clinit_Boolean() , this.inputElem.checked?true:false):($clinit_Boolean() , this.inputElem.defaultChecked?true:false)); } ; _.setTabIndex = function setTabIndex_1(index_0){ !!this.inputElem && $setTabIndex(this.inputElem, index_0); } ; _.sinkEvents = function sinkEvents_2(eventBitsToAdd){ this.eventsToSink == -1?sinkEvents_1(this.inputElem, eventBitsToAdd | getEventsSunk(this.inputElem)):this.eventsToSink == -1?sinkEvents_0(($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', 166); function CheckBox$1(this$0){ this.this$01 = this$0; } defineClass(710, 1, $intern_56, CheckBox$1); _.onClick = function onClick(event_0){ fire_3(this.this$01, $getValue(this.this$01)); } ; var Lcom_google_gwt_user_client_ui_CheckBox$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'CheckBox/1', 710); function $checkInit(this$static){ if (!this$static.widget) { throw toJs(new IllegalStateException_0('initWidget() is not called yet')); } } function $initWidget(this$static, widget){ var elem; if (this$static.widget) { throw toJs(new IllegalStateException_0('Composite.initWidget() may only be called once.')); } if (!widget) { throw toJs(new NullPointerException_0('widget cannot be null')); } $removeFromParent(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); } defineClass(983, 24, $intern_4); _.isAttached = function isAttached_0(){ if (this.widget) { return this.widget.attached; } return false; } ; _.onAttach = function onAttach_1(){ $checkInit(this); if (this.eventsToSink != -1) { $sinkEvents(this.widget, this.eventsToSink); this.eventsToSink = -1; } $onAttach(this.widget); $clinit_DOM(); this.element.__listener = this; fire_0(this, true); } ; _.onBrowserEvent = function onBrowserEvent_0(event_0){ $onBrowserEvent(this, event_0); $onBrowserEvent(this.widget, event_0); } ; _.onDetach = function onDetach_0(){ try { fire_0(this, false); } finally { $onDetach(this.widget); } } ; _.resolvePotentialElement = function resolvePotentialElement_0(){ $setElement(this, $resolvePotentialElement()); return $clinit_DOM() , this.element; } ; var Lcom_google_gwt_user_client_ui_Composite_2_classLit = createForClass('com.google.gwt.user.client.ui', 'Composite', 983); function $add_1(this$static, w){ if (this$static.getWidget()) { throw toJs(new IllegalStateException_0('SimplePanel can only contain one child widget')); } this$static.setWidget(w); } 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(w); !!this$static.widget && this$static.remove_0(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() , $doc.createElement('div'))); } function SimplePanel_0(elem){ $setElement_0(this, ($clinit_DOM() , elem)); } defineClass(255, 981, $intern_54); _.add_0 = function add_5(w){ $add_1(this, w); } ; _.getContainerElement = function getContainerElement(){ return $clinit_DOM() , this.element; } ; _.getWidget = function getWidget(){ return this.widget; } ; _.iterator = function iterator_1(){ return new SimplePanel$1(this); } ; _.remove_0 = function remove_2(w){ return $remove_2(this, w); } ; _.setWidget = function setWidget(w){ $setWidget(this, w); } ; var Lcom_google_gwt_user_client_ui_SimplePanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'SimplePanel', 255); function $center(this$static){ var elem, initiallyAnimated, initiallyShowing, left, top_0; initiallyShowing = this$static.showing; initiallyAnimated = this$static.isAnimationEnabled; if (!initiallyShowing) { ($clinit_DOM() , this$static.element).style['visibility'] = 'hidden'; !!this$static.glass && (this$static.glass.style['visibility'] = 'hidden' , undefined); this$static.isAnimationEnabled = false; this$static.show(); } elem = ($clinit_DOM() , this$static.element); elem.style['left'] = ($clinit_Style$Unit() , '0.0px'); elem.style['top'] = '0.0px'; left = $getClientWidth($doc) - $getPropertyInt(this$static.element, 'offsetWidth') >> 1; top_0 = $getClientHeight($doc) - $getPropertyInt(this$static.element, 'offsetHeight') >> 1; $setPopupPosition(this$static, $wnd.Math.max(($wnd.pageXOffset | 0) + left, 0), $wnd.Math.max(($wnd.pageYOffset | 0) + top_0, 0)); if (!initiallyShowing) { this$static.isAnimationEnabled = initiallyAnimated; if (initiallyAnimated) { this$static.element.style['clip'] = 'rect(0px, 0px, 0px, 0px)'; this$static.element.style['visibility'] = 'visible'; !!this$static.glass && (this$static.glass.style['visibility'] = 'visible' , undefined); $run(this$static.resizeAnimation, 200, now_1(), null); } else { this$static.element.style['visibility'] = 'visible'; !!this$static.glass && (this$static.glass.style['visibility'] = 'visible' , undefined); } } } function $eventTargetsPopup(this$static, event_0){ var target; target = event_0.target; if (is_0(target)) { return isOrHasChildImpl(($clinit_DOM() , this$static.element), target); } return false; } function $hide(this$static, autoClosed){ if (!this$static.showing) { return; } $setState(this$static.resizeAnimation, false, false); fire_1(this$static, autoClosed); } 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_0(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; } this$static.onPreviewNativeEvent(event_0); 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(nativeEvent.type)); switch (type_0) { case 512: case 256: case 128: { return; } case 4: case $intern_48: { if (sCaptureElem) { event_0.isConsumed = true; return; } } if (!eventTargetsPopupOrPartner && this$static.autoHide) { this$static.hide(true); return; } break; case 8: case 64: case 1: case 2: case $intern_30: { if (sCaptureElem) { event_0.isConsumed = true; return; } break; } case $intern_43: { target = nativeEvent.target; if (this$static.modal && !eventTargetsPopupOrPartner && !!target) { target.blur && target != $doc.body && target.blur(); event_0.isCanceled = true; return; } break; } } } function $setAnimationType(this$static, type_0){ this$static.animType = type_0?type_0:($clinit_PopupPanel$AnimationType() , CENTER_1); } function $setGlassEnabled(this$static){ this$static.isGlassEnabled = true; if (!this$static.glass) { this$static.glass = $doc.createElement('div'); $setClassName(this$static.glass, this$static.glassStyleName); this$static.glass.style['position'] = ($clinit_Style$Position() , 'absolute'); this$static.glass.style['left'] = ($clinit_Style$Unit() , '0.0px'); this$static.glass.style['top'] = '0.0px'; } } function $setPopupPosition(this$static, left, top_0){ var elem; this$static.leftPosition = left; this$static.topPosition = top_0; left -= 0; top_0 -= 0; elem = ($clinit_DOM() , this$static.element); elem.style['left'] = left + ($clinit_Style$Unit() , 'px'); elem.style['top'] = top_0 + 'px'; } function $setPopupPositionAndShow(this$static, callback){ ($clinit_DOM() , this$static.element).style['visibility'] = 'hidden'; !!this$static.glass && (this$static.glass.style['visibility'] = 'hidden' , undefined); this$static.show(); callback.setPosition($getPropertyInt(this$static.element, 'offsetWidth'), $getPropertyInt(this$static.element, 'offsetHeight')); this$static.element.style['visibility'] = 'visible'; !!this$static.glass && (this$static.glass.style['visibility'] = 'visible' , undefined); } function $setVisible_0(this$static){ ($clinit_DOM() , this$static.element).style['visibility'] = 'hidden'; !!this$static.glass && (this$static.glass.style['visibility'] = 'hidden' , undefined); } function $setWidget_0(this$static, w){ $setWidget(this$static, w); $maybeUpdateSize(this$static); } function $show(this$static){ if (this$static.showing) { return; } else this$static.attached && $removeFromParent(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)); } } function PopupPanel(){ SimplePanel.call(this); this.glassResizer = new PopupPanel$1(this); this.animType = ($clinit_PopupPanel$AnimationType() , CENTER_1); this.glassStyleName = 'gwt-PopupPanelGlass'; this.isAnimationEnabled = false; this.leftPosition = -1; this.resizeAnimation = new PopupPanel$ResizeAnimation(this); this.topPosition = -1; $appendChild(($clinit_DOM() , this.element), $doc.createElement('div')); $setPopupPosition(this, 0, 0); $getParentElement($getFirstChildElement(this.element)).className = 'gwt-PopupPanel'; (null , $getFirstChildElement(this.element)).className = 'popupContent'; } function PopupPanel_0(autoHide){ PopupPanel.call(this); this.autoHide = autoHide; this.autoHideOnHistoryEvents = autoHide; } defineClass(48, 255, $intern_57, PopupPanel_0); _.getContainerElement = function getContainerElement_0(){ return $clinit_DOM() , $getFirstChildElement(this.element); } ; _.getOffsetHeight = function getOffsetHeight_0(){ return $getPropertyInt(($clinit_DOM() , this.element), 'offsetHeight'); } ; _.getStyleElement = function getStyleElement_0(){ return $getParentElement(($clinit_DOM() , $getFirstChildElement(this.element))); } ; _.hide = function hide(autoClosed){ $hide(this, autoClosed); } ; _.onPreviewNativeEvent = function onPreviewNativeEvent_0(event_0){ event_0.isFirstHandler && false && (event_0.isCanceled = true); } ; _.onUnload = function onUnload_1(){ this.showing && $setState(this.resizeAnimation, false, true); } ; _.setHeight_0 = function setHeight_0(height){ this.desiredHeight = height; $maybeUpdateSize(this); height.length == 0 && (this.desiredHeight = null); } ; _.setWidget = function setWidget_0(w){ $setWidget_0(this, w); } ; _.setWidth_0 = function setWidth_0(width_0){ this.desiredWidth = width_0; $maybeUpdateSize(this); width_0.length == 0 && (this.desiredWidth = null); } ; _.show = function show_0(){ $show(this); } ; _.autoHide = false; _.autoHideOnHistoryEvents = false; _.isAnimationEnabled = false; _.isGlassEnabled = false; _.leftPosition = 0; _.modal = false; _.previewAllNativeEvents = false; _.showing = false; _.topPosition = 0; var Lcom_google_gwt_user_client_ui_PopupPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'PopupPanel', 48); function $setWidget_1(this$static, w){ $setWidget(this$static.decPanel, w); $maybeUpdateSize(this$static); } function DecoratedPopupPanel(autoHide, modal, prefix){ var rowStyles; PopupPanel_0.call(this, autoHide); this.modal = modal; rowStyles = stampJavaTypeInfo(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_23, 2, 6, [prefix + 'Top', prefix + 'Middle', prefix + 'Bottom']); this.decPanel = new DecoratorPanel(rowStyles); $setStyleName(this.decPanel, ''); setStylePrimaryName($getParentElement(($clinit_DOM() , $getFirstChildElement(this.element))), 'gwt-DecoratedPopupPanel'); $setWidget_0(this, this.decPanel); setStyleName($getFirstChildElement(this.element), 'popupContent', false); setStyleName($getContainerElement(this.decPanel), prefix + 'Content', true); } defineClass(329, 48, $intern_57); _.doAttachChildren = function doAttachChildren_1(){ $onAttach(this.decPanel); } ; _.doDetachChildren = function doDetachChildren_1(){ $onDetach(this.decPanel); } ; _.getWidget = function getWidget_0(){ return this.decPanel.widget; } ; _.iterator = function iterator_2(){ return new SimplePanel$1(this.decPanel); } ; _.remove_0 = function remove_3(w){ return $remove_2(this.decPanel, w); } ; _.setWidget = function setWidget_1(w){ $setWidget_1(this, w); } ; var Lcom_google_gwt_user_client_ui_DecoratedPopupPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'DecoratedPopupPanel', 329); function $getCellElement(this$static){ var td, tr; tr = ($clinit_DOM() , $getChild(this$static.tbody, 0)); td = (null , $getChild(tr, 1)); return null , $getFirstChildElement(td); } function $getContainerElement(this$static){ return $clinit_DOM() , this$static.containerElem; } function DecoratorPanel(rowStyles){ var i, row, table, trElem; SimplePanel_0.call(this, ($clinit_DOM() , $doc.createElement('table'))); table = this.element; this.tbody = $doc.createElement('tbody'); $appendChild(table, resolve(this.tbody)); table['cellSpacing'] = 0; table['cellPadding'] = 0; for (i = 0; i < rowStyles.length; i++) { row = (trElem = $doc.createElement('tr') , trElem.className = rowStyles[i] || '' , undefined , $clinit_LocaleInfo() , $appendChild(trElem, resolve(createTD(rowStyles[i] + 'Left'))) , $appendChild(trElem, resolve(createTD(rowStyles[i] + 'Center'))) , $appendChild(trElem, resolve(createTD(rowStyles[i] + 'Right'))) , trElem); $appendChild(this.tbody, resolve(row)); i == 1 && (this.containerElem = $getFirstChildElement($getChild(row, 1))); } this.element.className = 'gwt-DecoratorPanel'; } function createTD(styleName){ var inner, tdElem; tdElem = ($clinit_DOM() , $doc.createElement('td')); inner = $doc.createElement('div'); $appendChild(tdElem, resolve(inner)); tdElem.className = styleName || ''; inner.className = styleName + 'Inner' || ''; return tdElem; } defineClass(814, 255, $intern_54, DecoratorPanel); _.getContainerElement = function getContainerElement_1(){ return $getContainerElement(this); } ; var Lcom_google_gwt_user_client_ui_DecoratorPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'DecoratorPanel', 814); function $beginDragging(this$static, event_0){ $onMouseDown(this$static, $getX(event_0), $getY(event_0)); } function $continueDragging(this$static, event_0){ $onMouseMove(this$static, $getX(event_0), $getY(event_0)); } function $endDragging(this$static, event_0){ $onMouseUp(($getX(event_0) , $getY(event_0) , this$static)); } function $hide_0(this$static, autoClosed){ if (this$static.resizeHandlerRegistration) { $removeHandler(this$static.resizeHandlerRegistration.real); this$static.resizeHandlerRegistration = null; } $hide(this$static, autoClosed); } function $isCaptionEvent(this$static, event_0){ var target; target = event_0.target; if (is_0(target)) { return isOrHasChildImpl($getParentElement(($clinit_DOM() , $getCellElement(this$static.decPanel))), target); } return false; } function $onMouseDown(this$static, x_0, y_0){ $clinit_DOM(); if (!sCaptureElem) { this$static.dragging_0 = true; setCapture(this$static.element); this$static.dragStartX = x_0; this$static.dragStartY = y_0; } } function $onMouseMove(this$static, x_0, y_0){ var absX, absY; if (this$static.dragging_0) { absX = x_0 + $getAbsoluteLeft_0(($clinit_DOM() , this$static.element)); absY = y_0 + ($getBoundingClientRectTop(this$static.element) + $wnd.pageYOffset | 0); if (absX < this$static.clientLeft || absX >= this$static.windowWidth || absY < this$static.clientTop) { return; } $setPopupPosition(this$static, absX - this$static.dragStartX, absY - this$static.dragStartY); } } function $onMouseUp(this$static){ this$static.dragging_0 = false; releaseCapture(($clinit_DOM() , this$static.element)); } function $setText(this$static, text_0){ $setText_0(this$static.caption, text_0); } function $show_0(this$static){ !this$static.resizeHandlerRegistration && (this$static.resizeHandlerRegistration = addResizeHandler(new DialogBox$1(this$static))); $show(this$static); } function DialogBox(captionWidget){ var mouseHandler, td; DecoratedPopupPanel.call(this, false, true, 'dialog'); $removeFromParent(captionWidget); this.caption = captionWidget; td = ($clinit_DOM() , $getCellElement(this.decPanel)); $appendChild(td, resolve($getElement(this.caption))); $adopt(this, this.caption); $getParentElement($getFirstChildElement(this.element)).className = 'gwt-DialogBox'; this.windowWidth = $getClientWidth($doc); this.clientLeft = 0; this.clientTop = 0; mouseHandler = new DialogBox$MouseHandler(this); $addDomHandler(this, mouseHandler, ($clinit_MouseDownEvent() , $clinit_MouseDownEvent() , TYPE_7)); $addDomHandler(this, mouseHandler, ($clinit_MouseUpEvent() , $clinit_MouseUpEvent() , TYPE_11)); $addDomHandler(this, mouseHandler, ($clinit_MouseMoveEvent() , $clinit_MouseMoveEvent() , TYPE_8)); $addDomHandler(this, mouseHandler, ($clinit_MouseOverEvent() , $clinit_MouseOverEvent() , TYPE_10)); $addDomHandler(this, mouseHandler, ($clinit_MouseOutEvent() , $clinit_MouseOutEvent() , TYPE_9)); } defineClass(256, 329, $intern_58); _.doAttachChildren = function doAttachChildren_2(){ try { $onAttach(this.decPanel); } finally { $onAttach(this.caption); } } ; _.doDetachChildren = function doDetachChildren_2(){ try { $onDetach(this.decPanel); } finally { $onDetach(this.caption); } } ; _.hide = function hide_0(autoClosed){ $hide_0(this, autoClosed); } ; _.onBrowserEvent = function onBrowserEvent_1(event_0){ switch ($clinit_DOM() , $eventGetTypeInt(event_0.type)) { case 4: case 8: case 64: case 16: case 32: if (!this.dragging_0 && !$isCaptionEvent(this, event_0)) { return; } } $onBrowserEvent(this, event_0); } ; _.onPreviewNativeEvent = function onPreviewNativeEvent_1(event_0){ var nativeEvent; nativeEvent = event_0.nativeEvent; !event_0.isCanceled && $getTypeInt(event_0.nativeEvent) == 4 && $isCaptionEvent(this, nativeEvent) && (nativeEvent.preventDefault() , undefined); event_0.isFirstHandler && false && (event_0.isCanceled = true); } ; _.show = function show_1(){ $show_0(this); } ; _.clientLeft = 0; _.clientTop = 0; _.dragStartX = 0; _.dragStartY = 0; _.dragging_0 = false; _.windowWidth = 0; var Lcom_google_gwt_user_client_ui_DialogBox_2_classLit = createForClass('com.google.gwt.user.client.ui', 'DialogBox', 256); function DialogBox$1(this$0){ this.this$01 = this$0; } defineClass(126, 1, $intern_41, DialogBox$1); _.onResize = function onResize_1(event_0){ this.this$01.windowWidth = event_0.width_0; } ; var Lcom_google_gwt_user_client_ui_DialogBox$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'DialogBox/1', 126); function $clinit_HasAutoHorizontalAlignment(){ $clinit_HasAutoHorizontalAlignment = emptyMethod; ALIGN_CONTENT_START = new HasHorizontalAlignment$AutoHorizontalAlignmentConstant; } var ALIGN_CONTENT_START; function $setHorizontalAlignment(this$static, align_0){ this$static.autoHorizontalAlignment = align_0; $updateHorizontalAlignment(this$static); } function $updateHorizontalAlignment(this$static){ var align_0; !this$static.autoHorizontalAlignment?(align_0 = null):this$static.autoHorizontalAlignment?(align_0 = this$static.autoHorizontalAlignment):(align_0 = this$static.autoHorizontalAlignment == ($clinit_HasAutoHorizontalAlignment() , ALIGN_CONTENT_START)?startOf(this$static.directionalTextHelper.textDir):endOf(this$static.directionalTextHelper.textDir)); if (align_0 != this$static.horzAlign) { this$static.horzAlign = align_0; ($clinit_DOM() , this$static.element).style['textAlign'] = !this$static.horzAlign?'':this$static.horzAlign.textAlignString; } } function LabelBase(element){ $setElement_0(this, ($clinit_DOM() , element)); this.directionalTextHelper = new DirectionalTextHelper(this.element); } defineClass(176, 24, {28:1, 25:1, 134:1, 27:1, 315:1, 227:1, 23:1, 196:1, 29:1, 176:1, 22:1, 24:1}); var Lcom_google_gwt_user_client_ui_LabelBase_2_classLit = createForClass('com.google.gwt.user.client.ui', 'LabelBase', 176); function $setText_0(this$static, text_0){ $setTextOrHtml(this$static.directionalTextHelper, text_0, false); $updateHorizontalAlignment(this$static); } function Label(){ LabelBase.call(this, $doc.createElement('div')); ($clinit_DOM() , this.element).className = 'gwt-Label'; } function Label_0(element){ LabelBase.call(this, ($equalsIgnoreCase('span', element.tagName) , element)); } function Label_1(text_0){ Label.call(this); $setTextOrHtml(this.directionalTextHelper, text_0, false); $updateHorizontalAlignment(this); } function Label_2(text_0){ Label_1.call(this, text_0); ($clinit_DOM() , this.element).style['whiteSpace'] = ($clinit_Style$WhiteSpace() , 'normal'); } defineClass(33, 176, $intern_59, Label, Label_1, Label_2); var Lcom_google_gwt_user_client_ui_Label_2_classLit = createForClass('com.google.gwt.user.client.ui', 'Label', 33); function HTML(){ Label_0.call(this, $doc.createElement('div')); ($clinit_DOM() , this.element).className = 'gwt-HTML'; } function HTML_0(html){ HTML.call(this); $setTextOrHtml(this.directionalTextHelper, html, true); $updateHorizontalAlignment(this); } defineClass(257, 33, $intern_60, HTML_0); var Lcom_google_gwt_user_client_ui_HTML_2_classLit = createForClass('com.google.gwt.user.client.ui', 'HTML', 257); function DialogBox$CaptionImpl(){ HTML.call(this); ($clinit_DOM() , this.element).className = 'Caption'; } defineClass(517, 257, $intern_60, DialogBox$CaptionImpl); var Lcom_google_gwt_user_client_ui_DialogBox$CaptionImpl_2_classLit = createForClass('com.google.gwt.user.client.ui', 'DialogBox/CaptionImpl', 517); function DialogBox$MouseHandler(this$0){ this.this$01 = this$0; } defineClass(518, 1, {208:1, 457:1, 173:1, 228:1, 316:1, 11:1}, DialogBox$MouseHandler); _.onMouseDown = function onMouseDown(event_0){ $beginDragging(this.this$01, event_0); } ; _.onMouseMove = function onMouseMove(event_0){ $continueDragging(this.this$01, event_0); } ; _.onMouseOut = function onMouseOut(event_0){ } ; _.onMouseOver = function onMouseOver(event_0){ } ; _.onMouseUp = function onMouseUp(event_0){ $endDragging(this.this$01, event_0); } ; var Lcom_google_gwt_user_client_ui_DialogBox$MouseHandler_2_classLit = createForClass('com.google.gwt.user.client.ui', 'DialogBox/MouseHandler', 518); 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(292, 1, {134:1}, DirectionalTextHelper); var Lcom_google_gwt_user_client_ui_DirectionalTextHelper_2_classLit = createForClass('com.google.gwt.user.client.ui', 'DirectionalTextHelper', 292); function $addEast(this$static, widget, size_0){ $insert_0(this$static, widget, ($clinit_DockLayoutPanel$Direction() , EAST), size_0); } function $addNorth(this$static, widget, size_0){ $insert_0(this$static, widget, ($clinit_DockLayoutPanel$Direction() , NORTH), size_0); } function $doLayout(this$static){ var bottom, child, child$iterator, data_0, layer, left, right, top_0; left = 0; top_0 = 0; right = 0; bottom = 0; for (child$iterator = new WidgetCollection$WidgetIterator(this$static.children); child$iterator.index_0 < child$iterator.this$01.size_0;) { child = $next_1(child$iterator); data_0 = child.layoutData; layer = data_0.layer; if (data_0.hidden) { layer.visible = false; continue; } switch ($getResolvedDirection(data_0.direction_0).ordinal) { case 0: $setLeftRight(layer, left, this$static.unit, right, this$static.unit); $setTopHeight(layer, top_0, this$static.unit, data_0.size_0, this$static.unit); top_0 += data_0.size_0; break; case 2: $setLeftRight(layer, left, this$static.unit, right, this$static.unit); $setBottomHeight(layer, bottom, this$static.unit, data_0.size_0, this$static.unit); bottom += data_0.size_0; break; case 3: $setTopBottom(layer, top_0, this$static.unit, bottom, this$static.unit); $setLeftWidth(layer, left, this$static.unit, data_0.size_0, this$static.unit); left += data_0.size_0; break; case 1: $setTopBottom(layer, top_0, this$static.unit, bottom, this$static.unit); $setRightWidth(layer, right, this$static.unit, data_0.size_0, this$static.unit); right += data_0.size_0; break; case 4: $setLeftRight(layer, left, this$static.unit, right, this$static.unit); $setTopBottom(layer, top_0, this$static.unit, bottom, this$static.unit); } layer.visible = true; } } function $getResolvedDirection(direction){ if (direction == ($clinit_DockLayoutPanel$Direction() , LINE_START)) { return $clinit_LocaleInfo() , WEST; } else if (direction == LINE_END) { return $clinit_LocaleInfo() , EAST; } return direction; } function $insert_0(this$static, widget, direction, size_0){ var children, data_0, layer; $removeFromParent(widget); children = this$static.children; $insert_3(children, widget, children.size_0); direction == ($clinit_DockLayoutPanel$Direction() , CENTER_0) && (this$static.center = widget); layer = $attachChild(this$static.layout, ($clinit_DOM() , widget.element), widget); data_0 = new DockLayoutPanel$LayoutData(direction, size_0, layer); widget.layoutData = data_0; $setParent(widget, this$static); $schedule_0(this$static.layoutCmd); } function $setWidgetHidden(this$static, widget, hidden){ var data_0; data_0 = widget.layoutData; if (data_0.hidden == hidden) { return; } data_0.hidden = hidden; $schedule_0(this$static.layoutCmd); } function DockLayoutPanel(unit){ ComplexPanel.call(this); this.unit = unit; $setElement(this, $doc.createElement('div')); this.layout = new Layout(($clinit_DOM() , this.element)); this.layoutCmd = new DockLayoutPanel$DockAnimateCommand(this, this.layout); } defineClass(568, 238, $intern_61, DockLayoutPanel); _.add_0 = function add_6(widget){ $insert_0(this, widget, ($clinit_DockLayoutPanel$Direction() , CENTER_0), 0); } ; _.onAttach = function onAttach_2(){ $onAttach(this); } ; _.onDetach = function onDetach_1(){ $onDetach(this); } ; _.onResize_0 = function onResize_2(){ var child, child$iterator; for (child$iterator = new WidgetCollection$WidgetIterator(this.children); child$iterator.index_0 < child$iterator.this$01.size_0;) { child = $next_1(child$iterator); instanceOf(child, 209) && child.onResize_0(); } } ; _.remove_0 = function remove_4(w){ var data_0, removed; removed = $remove_0(this, w); if (removed) { w == this.center && (this.center = null); data_0 = w.layoutData; $removeChild_0(this.layout, data_0.layer); } return removed; } ; var Lcom_google_gwt_user_client_ui_DockLayoutPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'DockLayoutPanel', 568); function $clinit_DockLayoutPanel$Direction(){ $clinit_DockLayoutPanel$Direction = emptyMethod; NORTH = new DockLayoutPanel$Direction('NORTH', 0); EAST = new DockLayoutPanel$Direction('EAST', 1); SOUTH = new DockLayoutPanel$Direction('SOUTH', 2); WEST = new DockLayoutPanel$Direction('WEST', 3); CENTER_0 = new DockLayoutPanel$Direction('CENTER', 4); LINE_START = new DockLayoutPanel$Direction('LINE_START', 5); LINE_END = new DockLayoutPanel$Direction('LINE_END', 6); } function DockLayoutPanel$Direction(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function values_12(){ $clinit_DockLayoutPanel$Direction(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_user_client_ui_DockLayoutPanel$Direction_2_classLit, 1), $intern_3, 178, 0, [NORTH, EAST, SOUTH, WEST, CENTER_0, LINE_START, LINE_END]); } defineClass(178, 15, {178:1, 3:1, 16:1, 15:1}, DockLayoutPanel$Direction); var CENTER_0, EAST, LINE_END, LINE_START, NORTH, SOUTH, WEST; var Lcom_google_gwt_user_client_ui_DockLayoutPanel$Direction_2_classLit = createForEnum('com.google.gwt.user.client.ui', 'DockLayoutPanel/Direction', 178, values_12); function $schedule_0(this$static){ this$static.duration = 0; this$static.canceled_0 = false; if (!this$static.scheduled) { this$static.scheduled = true; $scheduleFinally(($clinit_SchedulerImpl() , INSTANCE), this$static); } } function LayoutCommand(layout){ this.layout = layout; } defineClass(332, 1, {}, LayoutCommand); _.doBeforeLayout = function doBeforeLayout(){ } ; _.execute_1 = function execute_9(){ this.scheduled = false; if (this.canceled_0) { return; } this.doBeforeLayout(); $layout(this.layout, this.duration, new LayoutCommand$1); } ; _.canceled_0 = false; _.duration = 0; _.scheduled = false; var Lcom_google_gwt_user_client_ui_LayoutCommand_2_classLit = createForClass('com.google.gwt.user.client.ui', 'LayoutCommand', 332); function DockLayoutPanel$DockAnimateCommand(this$0, layout){ this.this$01 = this$0; LayoutCommand.call(this, layout); } defineClass(569, 332, {}, DockLayoutPanel$DockAnimateCommand); _.doBeforeLayout = function doBeforeLayout_0(){ $doLayout(this.this$01); } ; var Lcom_google_gwt_user_client_ui_DockLayoutPanel$DockAnimateCommand_2_classLit = createForClass('com.google.gwt.user.client.ui', 'DockLayoutPanel/DockAnimateCommand', 569); function DockLayoutPanel$LayoutData(direction, size_0, layer){ this.direction_0 = direction; this.size_0 = size_0; this.layer = layer; } defineClass(331, 1, {331:1}, DockLayoutPanel$LayoutData); _.hidden = false; _.size_0 = 0; var Lcom_google_gwt_user_client_ui_DockLayoutPanel$LayoutData_2_classLit = createForClass('com.google.gwt.user.client.ui', 'DockLayoutPanel/LayoutData', 331); function $setName_0(this$static, name_0){ $setName(($clinit_DOM() , this$static.element), name_0); } function FileUpload(){ FileUpload_0.call(this, $createInputElement($doc, 'file')); ($clinit_DOM() , this.element).className = 'gwt-FileUpload'; } function FileUpload_0(element){ $setElement_0(this, ($clinit_DOM() , element)); } defineClass(240, 82, {71:1, 119:1, 94:1, 122:1, 85:1, 98:1, 121:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 120:1, 96:1, 97:1, 95:1, 124:1, 125:1, 123:1, 86:1, 90:1, 88:1, 89:1, 87:1, 91:1, 102:1, 101:1, 100:1, 99:1, 28:1, 25:1, 27:1, 82:1, 116:1, 105:1, 115:1, 146:1, 23:1, 29:1, 92:1, 117:1, 118:1, 93:1, 22:1, 24:1}, FileUpload); var Lcom_google_gwt_user_client_ui_FileUpload_2_classLit = createForClass('com.google.gwt.user.client.ui', 'FileUpload', 240); function $addCells(tbody, row, num){ var i, rowElem, tdElement; rowElem = tbody.rows[row]; for (i = 0; i < num; i++) { tdElement = $doc.createElement('td'); rowElem.appendChild(tdElement); } } function $checkCellBounds(this$static, row, column){ var cellSize; $checkRowBounds(this$static, row); if (column < 0) { throw toJs(new IndexOutOfBoundsException_0('Column ' + column + ' must be non-negative: ' + column)); } cellSize = this$static.numColumns; if (cellSize <= column) { throw toJs(new IndexOutOfBoundsException_0('Column index: ' + column + ', Column size: ' + this$static.numColumns)); } } function $checkRowBounds(this$static, row){ var rowSize; rowSize = this$static.getRowCount(); if (row >= rowSize || row < 0) { throw toJs(new IndexOutOfBoundsException_0('Row index: ' + row + ', Row size: ' + rowSize)); } } function $cleanCell(this$static, row, column, clearInnerHTML){ var td; td = $getRawElement(this$static.cellFormatter, row, column); $internalClearCell(this$static, ($clinit_DOM() , td), clearInnerHTML); return td; } function $getDOMCellCount(tableBody, row){ var rowElement; rowElement = tableBody.rows[row]; return rowElement.cells.length; } function $getDOMRowCount(tbody){ return ($clinit_DOM() , tbody).rows.length; } function $internalClearCell(this$static, td, clearInnerHTML){ var maybeChild, widget; maybeChild = ($clinit_DOM() , $getFirstChildElement(td)); widget = null; !!maybeChild && (widget = $get(this$static.widgetMap, maybeChild)); if (widget) { $remove_3(this$static, widget); return true; } else { clearInnerHTML && (td.innerHTML = '' , undefined); return false; } } function $remove_3(this$static, widget){ var elem; if (widget.parent_0 != this$static) { return false; } try { $setParent(widget, null); } finally { elem = ($clinit_DOM() , widget.element); $removeChild((null , $getParentElement(elem)), elem); $removeByElement(this$static.widgetMap, elem); } return true; } function $removeRow(this$static, row){ var column, columnCount, td; columnCount = this$static.numColumns; for (column = 0; column < columnCount; ++column) { td = $getRawElement(this$static.cellFormatter, row, column); $internalClearCell(this$static, ($clinit_DOM() , td), false); } $removeChild(this$static.bodyElem, $getRow(this$static.bodyElem, row)); } function $setCellFormatter(this$static, cellFormatter){ this$static.cellFormatter = cellFormatter; } function $setColumnFormatter(this$static, formatter){ !!this$static.columnFormatter && (formatter.columnGroup = this$static.columnFormatter.columnGroup); this$static.columnFormatter = formatter; $prepareColumnGroup(this$static.columnFormatter); } function $setRowFormatter(this$static, rowFormatter){ this$static.rowFormatter = rowFormatter; } function $setText_1(this$static, row, text_0){ var td; $prepareCell(this$static, row, 0); td = $cleanCell(this$static, row, 0, text_0 == null); text_0 != null && (td.textContent = text_0 || '' , undefined); } function $setWidget_2(this$static, row, column, widget){ var td; this$static.prepareCell(row, column); td = $cleanCell(this$static, row, column, true); if (widget) { $removeFromParent(widget); $put(this$static.widgetMap, widget); $clinit_DOM(); $appendChild(td, resolve(widget.element)); $setParent(widget, this$static); } } function HTMLTable(){ this.widgetMap = new ElementMapperImpl; this.tableElem = ($clinit_DOM() , $doc.createElement('table')); this.bodyElem = $doc.createElement('tbody'); $appendChild(this.tableElem, resolve(this.bodyElem)); $setElement(this, this.tableElem); } defineClass(342, 981, $intern_62); _.iterator = function iterator_3(){ return new HTMLTable$1(this); } ; _.remove_0 = function remove_5(widget){ return $remove_3(this, widget); } ; var Lcom_google_gwt_user_client_ui_HTMLTable_2_classLit = createForClass('com.google.gwt.user.client.ui', 'HTMLTable', 342); function $prepareCell(this$static, row, column){ var cellCount, required; $prepareRow(this$static, row); if (column < 0) { throw toJs(new IndexOutOfBoundsException_0('Cannot create a column with a negative index: ' + column)); } cellCount = ($checkRowBounds(this$static, row) , $getDOMCellCount(($clinit_DOM() , this$static.bodyElem), row)); required = column + 1 - cellCount; required > 0 && $addCells(this$static.bodyElem, row, required); } function $prepareRow(this$static, row){ var i, rowCount, tr; if (row < 0) { throw toJs(new IndexOutOfBoundsException_0('Cannot create a row with a negative index: ' + row)); } rowCount = $getDOMRowCount(this$static.bodyElem); for (i = rowCount; i <= row; i++) { i != $getDOMRowCount(this$static.bodyElem) && $checkRowBounds(this$static, i); tr = ($clinit_DOM() , $doc.createElement('tr')); insertChild(this$static.bodyElem, tr, i); } } function FlexTable(){ HTMLTable.call(this); $setCellFormatter(this, new FlexTable$FlexCellFormatter(this)); $setRowFormatter(this, new HTMLTable$RowFormatter(this)); $setColumnFormatter(this, new HTMLTable$ColumnFormatter(this)); } defineClass(740, 342, $intern_62, FlexTable); _.getRowCount = function getRowCount(){ return $getDOMRowCount(this.bodyElem); } ; _.prepareCell = function prepareCell(row, column){ $prepareCell(this, row, column); } ; _.prepareRow = function prepareRow(row){ $prepareRow(this, row); } ; var Lcom_google_gwt_user_client_ui_FlexTable_2_classLit = createForClass('com.google.gwt.user.client.ui', 'FlexTable', 740); function $getCellElement_0(tbody, row, col){ return tbody.rows[row].cells[col]; } function $getRawElement(this$static, row, column){ return $getCellElement_0(this$static.this$01.bodyElem, row, column); } function $setVerticalAlignment(this$static, row, column, align_0){ this$static.this$01.prepareCell(row, column); $getCellElement_0(this$static.this$01.bodyElem, row, column).style['verticalAlign'] = align_0.verticalAlignString; } function HTMLTable$CellFormatter(this$0){ this.this$01 = this$0; } defineClass(343, 1, {}, HTMLTable$CellFormatter); var Lcom_google_gwt_user_client_ui_HTMLTable$CellFormatter_2_classLit = createForClass('com.google.gwt.user.client.ui', 'HTMLTable/CellFormatter', 343); function FlexTable$FlexCellFormatter(this$0){ HTMLTable$CellFormatter.call(this, this$0); } defineClass(741, 343, {}, FlexTable$FlexCellFormatter); var Lcom_google_gwt_user_client_ui_FlexTable$FlexCellFormatter_2_classLit = createForClass('com.google.gwt.user.client.ui', 'FlexTable/FlexCellFormatter', 741); function $add_2(this$static, w){ $add(this$static, w, ($clinit_DOM() , this$static.element)); } function FlowPanel(){ ComplexPanel.call(this); $setElement(this, $doc.createElement('div')); } defineClass(219, 238, $intern_54, FlowPanel); _.add_0 = function add_7(w){ $add_2(this, w); } ; var Lcom_google_gwt_user_client_ui_FlowPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'FlowPanel', 219); function Frame_0(){ $setElement(this, $doc.createElement('iframe')); ($clinit_DOM() , this.element).className = 'gwt-Frame'; this.element.src = 'iframe.html'; } defineClass(338, 24, $intern_4, Frame_0); var Lcom_google_gwt_user_client_ui_Frame_2_classLit = createForClass('com.google.gwt.user.client.ui', 'Frame', 338); function $prepareRow_0(this$static, row){ if (row < 0) { throw toJs(new IndexOutOfBoundsException_0('Cannot access a row with a negative index: ' + row)); } if (row >= this$static.numRows) { throw toJs(new IndexOutOfBoundsException_0('Row index: ' + row + ', Row size: ' + this$static.numRows)); } } function $removeRow_0(this$static, row){ $removeRow(this$static, row); --this$static.numRows; } function $resizeColumns(this$static, columns){ var i, j, td, tr, tr_0, td_0, td_1; if (this$static.numColumns == columns) { return; } if (columns < 0) { throw toJs(new IndexOutOfBoundsException_0('Cannot set number of columns to ' + columns)); } if (this$static.numColumns > columns) { for (i = 0; i < this$static.numRows; i++) { for (j = this$static.numColumns - 1; j >= columns; j--) { $checkCellBounds(this$static, i, j); td = $cleanCell(this$static, i, j, false); tr = $getRow(this$static.bodyElem, i); tr.removeChild(td); } } } else { for (i = 0; i < this$static.numRows; i++) { for (j = this$static.numColumns; j < columns; j++) { tr_0 = $getRow(this$static.bodyElem, i); td_0 = (td_1 = ($clinit_DOM() , $doc.createElement('td')) , td_1.innerHTML = ' ' , $clinit_DOM() , td_1); $insertChild(tr_0, resolve(td_0), j); } } } this$static.numColumns = columns; $resizeColumnGroup(this$static.columnFormatter, columns, false); } function $resizeRows(this$static, rows_0){ if (this$static.numRows == rows_0) { return; } if (rows_0 < 0) { throw toJs(new IndexOutOfBoundsException_0('Cannot set number of rows to ' + rows_0)); } if (this$static.numRows < rows_0) { addRows(($clinit_DOM() , this$static.bodyElem), rows_0 - this$static.numRows, this$static.numColumns); this$static.numRows = rows_0; } else { while (this$static.numRows > rows_0) { $removeRow_0(this$static, this$static.numRows - 1); } } } function Grid(rows_0, columns){ HTMLTable.call(this); $setCellFormatter(this, new HTMLTable$CellFormatter(this)); $setRowFormatter(this, new HTMLTable$RowFormatter(this)); $setColumnFormatter(this, new HTMLTable$ColumnFormatter(this)); $resizeColumns(this, columns); $resizeRows(this, rows_0); } function addRows(table, rows_0, columns){ var td = $doc.createElement('td'); td.innerHTML = ' '; var row = $doc.createElement('tr'); for (var cellNum = 0; cellNum < columns; cellNum++) { var cell = td.cloneNode(true); row.appendChild(cell); } table.appendChild(row); for (var rowNum = 1; rowNum < rows_0; rowNum++) { table.appendChild(row.cloneNode(true)); } } defineClass(169, 342, $intern_62, Grid); _.getRowCount = function getRowCount_0(){ return this.numRows; } ; _.prepareCell = function prepareCell_0(row, column){ $prepareRow_0(this, row); if (column < 0) { throw toJs(new IndexOutOfBoundsException_0('Cannot access a column with a negative index: ' + column)); } if (column >= this.numColumns) { throw toJs(new IndexOutOfBoundsException_0('Column index: ' + column + ', Column size: ' + this.numColumns)); } } ; _.prepareRow = function prepareRow_0(row){ $prepareRow_0(this, row); } ; _.numColumns = 0; _.numRows = 0; var Lcom_google_gwt_user_client_ui_Grid_2_classLit = createForClass('com.google.gwt.user.client.ui', 'Grid', 169); function $findNext(this$static){ while (++this$static.nextIndex < this$static.widgetList.array.length) { if ($get_2(this$static.widgetList, this$static.nextIndex) != null) { return; } } } function $next(this$static){ var result; if (this$static.nextIndex >= this$static.widgetList.array.length) { throw toJs(new NoSuchElementException); } result = $get_2(this$static.widgetList, this$static.nextIndex); this$static.lastIndex = this$static.nextIndex; $findNext(this$static); return result; } function HTMLTable$1(this$0){ this.this$01 = this$0; this.widgetList = this.this$01.widgetMap.uiObjectList; $findNext(this); } defineClass(742, 1, {}, HTMLTable$1); _.next_1 = function next_0(){ return $next(this); } ; _.hasNext_0 = function hasNext(){ return this.nextIndex < this.widgetList.array.length; } ; _.remove_1 = function remove_6(){ var w; if (this.lastIndex < 0) { throw toJs(new IllegalStateException); } w = $get_2(this.widgetList, this.lastIndex); $removeFromParent(w); this.lastIndex = -1; } ; _.lastIndex = -1; _.nextIndex = -1; var Lcom_google_gwt_user_client_ui_HTMLTable$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'HTMLTable/1', 742); function $prepareColumnGroup(this$static){ if (!this$static.columnGroup) { this$static.columnGroup = ($clinit_DOM() , $doc.createElement('colgroup')); insertChild(this$static.this$01.tableElem, this$static.columnGroup, 0); $appendChild(this$static.columnGroup, resolve($doc.createElement('col'))); } } function $resizeColumnGroup(this$static, columns, growOnly){ var i, num; columns = $wnd.Math.max(columns, 1); num = this$static.columnGroup.childNodes.length; if (num < columns) { for (i = num; i < columns; i++) { $appendChild(this$static.columnGroup, $doc.createElement('col')); } } else if (!growOnly && num > columns) { for (i = num; i > columns; i--) { $removeChild(this$static.columnGroup, this$static.columnGroup.lastChild); } } } function HTMLTable$ColumnFormatter(this$0){ this.this$01 = this$0; } defineClass(344, 1, {}, HTMLTable$ColumnFormatter); var Lcom_google_gwt_user_client_ui_HTMLTable$ColumnFormatter_2_classLit = createForClass('com.google.gwt.user.client.ui', 'HTMLTable/ColumnFormatter', 344); function $getRow(tbody, row){ return $getRow_0(($clinit_DOM() , tbody), row); } function $getRow_0(tbody, row){ return $clinit_DOM() , tbody.rows[row]; } function $setVisible_1(this$static, row, visible){ var e; e = (this$static.this$01.prepareRow(row) , $clinit_DOM() , $getRow(this$static.this$01.bodyElem, row)); setVisible(e, visible); } function HTMLTable$RowFormatter(this$0){ this.this$01 = this$0; } defineClass(345, 1, {}, HTMLTable$RowFormatter); var Lcom_google_gwt_user_client_ui_HTMLTable$RowFormatter_2_classLit = createForClass('com.google.gwt.user.client.ui', 'HTMLTable/RowFormatter', 345); function $clinit_HasVerticalAlignment(){ $clinit_HasVerticalAlignment = emptyMethod; ALIGN_BOTTOM = new HasVerticalAlignment$VerticalAlignmentConstant('bottom'); ALIGN_MIDDLE = new HasVerticalAlignment$VerticalAlignmentConstant('middle'); ALIGN_TOP = new HasVerticalAlignment$VerticalAlignmentConstant('top'); } var ALIGN_BOTTOM, ALIGN_MIDDLE, ALIGN_TOP; function HasHorizontalAlignment$AutoHorizontalAlignmentConstant(){ } defineClass(525, 1, {}, HasHorizontalAlignment$AutoHorizontalAlignmentConstant); var Lcom_google_gwt_user_client_ui_HasHorizontalAlignment$AutoHorizontalAlignmentConstant_2_classLit = createForClass('com.google.gwt.user.client.ui', 'HasHorizontalAlignment/AutoHorizontalAlignmentConstant', 525); function HasHorizontalAlignment$HorizontalAlignmentConstant(textAlignString){ this.textAlignString = textAlignString; } function endOf(direction){ return direction == ($clinit_HasDirection$Direction() , LTR)?($clinit_HasHorizontalAlignment() , ALIGN_RIGHT):direction == RTL?($clinit_HasHorizontalAlignment() , ALIGN_LEFT):($clinit_HasHorizontalAlignment() , ALIGN_LOCALE_END); } function startOf(direction){ return direction == ($clinit_HasDirection$Direction() , LTR)?($clinit_HasHorizontalAlignment() , ALIGN_LEFT):direction == RTL?($clinit_HasHorizontalAlignment() , ALIGN_RIGHT):($clinit_HasHorizontalAlignment() , ALIGN_LOCALE_START); } defineClass(258, 525, {}, HasHorizontalAlignment$HorizontalAlignmentConstant); var Lcom_google_gwt_user_client_ui_HasHorizontalAlignment$HorizontalAlignmentConstant_2_classLit = createForClass('com.google.gwt.user.client.ui', 'HasHorizontalAlignment/HorizontalAlignmentConstant', 258); function HasVerticalAlignment$VerticalAlignmentConstant(verticalAlignString){ this.verticalAlignString = verticalAlignString; } defineClass(288, 1, {}, HasVerticalAlignment$VerticalAlignmentConstant); var Lcom_google_gwt_user_client_ui_HasVerticalAlignment$VerticalAlignmentConstant_2_classLit = createForClass('com.google.gwt.user.client.ui', 'HasVerticalAlignment/VerticalAlignmentConstant', 288); function $add_3(this$static, w){ var td, td_0; td = (td_0 = ($clinit_DOM() , $doc.createElement('td')) , $setCellHorizontalAlignment(td_0, this$static.horzAlign) , $setCellVerticalAlignment(td_0, this$static.vertAlign) , td_0); $appendChild(this$static.tableRow, resolve(td)); $add(this$static, w, td); } function $setHorizontalAlignment_0(this$static, align_0){ this$static.horzAlign = align_0; } function $setVerticalAlignment_0(this$static, align_0){ this$static.vertAlign = align_0; } function HorizontalPanel(){ CellPanel.call(this); this.horzAlign = ($clinit_HasHorizontalAlignment() , ALIGN_DEFAULT); this.vertAlign = ($clinit_HasVerticalAlignment() , ALIGN_TOP); this.tableRow = ($clinit_DOM() , $doc.createElement('tr')); $appendChild(this.body_0, resolve(this.tableRow)); this.table['cellSpacing'] = '0'; this.table['cellPadding'] = '0'; } defineClass(81, 336, $intern_63, HorizontalPanel); _.add_0 = function add_8(w){ $add_3(this, w); } ; _.remove_0 = function remove_7(w){ var removed, td; td = ($clinit_DOM() , $getParentElement(w.element)); removed = $remove_0(this, w); removed && $removeChild(this.tableRow, td); return removed; } ; var Lcom_google_gwt_user_client_ui_HorizontalPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'HorizontalPanel', 81); function InlineLabel(){ Label_0.call(this, $doc.createElement('span')); ($clinit_DOM() , this.element).className = 'gwt-InlineLabel'; $setTextOrHtml(this.directionalTextHelper, '', false); $updateHorizontalAlignment(this); } defineClass(290, 33, $intern_59, InlineLabel); var Lcom_google_gwt_user_client_ui_InlineLabel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'InlineLabel', 290); function LayoutCommand$1(){ } defineClass(573, 1, {}, LayoutCommand$1); var Lcom_google_gwt_user_client_ui_LayoutCommand$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'LayoutCommand/1', 573); function $add_4(this$static, widget){ $insert_1(this$static, widget, this$static.children.size_0); } function $insert_1(this$static, widget, beforeIndex){ var layer; $removeFromParent(widget); $insert_3(this$static.children, widget, beforeIndex); layer = $attachChild(this$static.layout, ($clinit_DOM() , widget.element), widget); widget.layoutData = layer; $setParent(widget, this$static); $schedule_0(this$static.layoutCmd); } function $onResize(this$static){ var child, child$iterator; for (child$iterator = new WidgetCollection$WidgetIterator(this$static.children); child$iterator.index_0 < child$iterator.this$01.size_0;) { child = $next_1(child$iterator); instanceOf(child, 209) && child.onResize_0(); } } defineClass(649, 238, $intern_61); _.add_0 = function add_9(widget){ $add_4(this, widget); } ; _.onAttach = function onAttach_3(){ $onAttach(this); } ; _.onDetach = function onDetach_2(){ $onDetach(this); } ; _.onResize_0 = function onResize_3(){ $onResize(this); } ; _.remove_0 = function remove_8(w){ var removed; removed = $remove_0(this, w); removed && $removeChild_0(this.layout, w.layoutData); return removed; } ; var Lcom_google_gwt_user_client_ui_LayoutPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'LayoutPanel', 649); function $addItem(this$static, item_0){ $insertItem(this$static, item_0, item_0, -1); } function $checkIndex(this$static, index_0){ if (index_0 < 0 || index_0 >= ($clinit_DOM() , this$static.element).options.length) { throw toJs(new IndexOutOfBoundsException); } } function $getItemText(this$static, index_0){ $checkIndex(this$static, index_0); return $getOptionText(($clinit_DOM() , this$static.element).options[index_0]); } function $getOptionText(option){ var text_0; text_0 = option.text; option.hasAttribute('bidiwrapped') && text_0.length > 1 && (text_0 = $substring_0(text_0, 1, text_0.length - 1)); return text_0; } function $getSelectedItemText(this$static){ var index_0; index_0 = ($clinit_DOM() , this$static.element).selectedIndex; return index_0 == -1?null:($checkIndex(this$static, index_0) , $getOptionText(this$static.element.options[index_0])); } function $insertItem(this$static, item_0, value_0, index_0){ var before, itemCount, option, select; select = ($clinit_DOM() , this$static.element); option = $doc.createElement('option'); option.text = item_0; option.removeAttribute('bidiwrapped'); option.value = value_0; itemCount = select.options.length; (index_0 < 0 || index_0 > itemCount) && (index_0 = itemCount); if (index_0 == itemCount) { select.add(option, null); } else { before = select.options[index_0]; select.add(option, before); } } function $removeItem_1(this$static, index_0){ $checkIndex(this$static, index_0); $selectRemoveOption(($clinit_DOM() , this$static.element), index_0); } function $setItemSelected(this$static){ $checkIndex(this$static, 0); ($clinit_DOM() , this$static.element).options[0].selected = true; } function $setSelectedIndex_0(this$static, index_0){ $setSelectedIndex(($clinit_DOM() , this$static.element), index_0); } function $setVisibleItemCount(this$static, visibleItems){ $setSize(($clinit_DOM() , this$static.element), visibleItems); } function ListBox(){ FocusWidget.call(this, $doc.createElement('select')); ($clinit_DOM() , this.element).className = 'gwt-ListBox'; } defineClass(180, 82, $intern_64, ListBox); var Lcom_google_gwt_user_client_ui_ListBox_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ListBox', 180); defineClass(951, 950, {11:1}); var Lcom_google_gwt_user_client_ui_ListenerWrapper_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ListenerWrapper', 951); function ListenerWrapper$WrappedPopupListener(listener){ this.listener = listener; } defineClass(952, 951, $intern_65, ListenerWrapper$WrappedPopupListener); _.onClose = function onClose(event_0){ $onPopupClosed(this.listener, event_0.autoClosed); } ; var Lcom_google_gwt_user_client_ui_ListenerWrapper$WrappedPopupListener_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ListenerWrapper/WrappedPopupListener', 952); function $addItem_0(this$static, item_0){ return $insertItem_0(this$static, item_0, this$static.allItems.array.length); } function $addItemElement(this$static, beforeIndex, tdElem){ var tr; if (this$static.vertical) { tr = ($clinit_DOM() , $doc.createElement('tr')); insertChild(this$static.body_0, tr, beforeIndex); $appendChild(tr, resolve(tdElem)); } else { tr = ($clinit_DOM() , $getChild(this$static.body_0, 0)); $insertChild(tr, resolve(tdElem), beforeIndex); } } function $addSeparator(this$static, separator){ return $insertSeparator(this$static, separator, this$static.allItems.array.length); } function $clearItems(this$static){ var container, item_0, item$iterator; $selectItem(this$static, null); container = this$static.vertical?this$static.body_0:($clinit_DOM() , $getChild(this$static.body_0, 0)); while ($clinit_DOM() , $getChildCount(container) > 0) { $removeChild(container, $getChild(container, 0)); } for (item$iterator = new ArrayList$1(this$static.allItems); item$iterator.i < item$iterator.this$01.array.length;) { item_0 = $next_4(item$iterator); item_0.element['colSpan'] = 1; instanceOf(item_0, 197)?item_0:(item_0.parentMenu = null); } this$static.items.array = initUnidimensionalArray(Ljava_lang_Object_2_classLit, $intern_3, 1, 0, 5, 1); this$static.allItems.array = initUnidimensionalArray(Ljava_lang_Object_2_classLit, $intern_3, 1, 0, 5, 1); } function $close(this$static, focus_0){ if (this$static.parentMenu) { $hide(this$static.parentMenu.popup, !focus_0); focus_0 && $focus(this$static.parentMenu); } } function $doItemAction(this$static, item_0, fireCommand, focus_0){ var cmd; if (!item_0.enabled) { return; } $selectItem(this$static, item_0); if (fireCommand && !!item_0.command) { this$static.parentMenu?$close(this$static, false):$selectItem(this$static, null); ($clinit_DOM() , this$static.element).blur(); cmd = item_0.command; $scheduleFinally(($clinit_SchedulerImpl() , INSTANCE), new MenuBar$1(cmd)); if (this$static.shownChildMenu) { $onHide(this$static.shownChildMenu, focus_0); $hide(this$static.popup, false); this$static.shownChildMenu = null; $selectItem(this$static, null); } } else if (item_0.subMenu) { if (!this$static.shownChildMenu) { $openPopup(this$static, item_0); } else if (item_0.subMenu != this$static.shownChildMenu) { $onHide(this$static.shownChildMenu, focus_0); $hide(this$static.popup, false); $openPopup(this$static, item_0); } else if (fireCommand && !this$static.autoOpen) { $onHide(this$static.shownChildMenu, focus_0); $hide(this$static.popup, false); this$static.shownChildMenu = null; $selectItem(this$static, item_0); } } else if (this$static.autoOpen && !!this$static.shownChildMenu) { $onHide(this$static.shownChildMenu, focus_0); $hide(this$static.popup, false); this$static.shownChildMenu = null; } } function $findItem(this$static, hItem){ var item_0, item$iterator; for (item$iterator = new ArrayList$1(this$static.items); item$iterator.i < item$iterator.this$01.array.length;) { item_0 = $next_4(item$iterator); if (isOrHasChildImpl(($clinit_DOM() , item_0.element), hItem)) { return item_0; } } return null; } function $focus(this$static){ ($clinit_DOM() , this$static.element).focus(); } function $init_0(this$static, vertical, subMenuIcon){ var outer, table, tr, e; this$static.subMenuIcon = subMenuIcon; table = ($clinit_DOM() , $doc.createElement('table')); this$static.body_0 = $doc.createElement('tbody'); $appendChild(table, resolve(this$static.body_0)); if (!vertical) { tr = $doc.createElement('tr'); $appendChild(this$static.body_0, resolve(tr)); } this$static.vertical = vertical; outer = (e = $doc.createElement('div') , e.tabIndex = 0 , undefined , e); $appendChild(outer, resolve(table)); $setElement_0(this$static, outer); $clinit_Roles(); $set(MENUBAR, this$static.element); this$static.eventsToSink == -1?sinkEvents_0(this$static.element, 2225 | (this$static.element.__eventBits || 0)):(this$static.eventsToSink |= 2225); this$static.element.className = 'gwt-MenuBar'; vertical?$setStyleName_0(this$static, getStylePrimaryName(this$static.element) + '-' + 'vertical', true):$setStyleName_0(this$static, getStylePrimaryName(this$static.element) + '-' + 'horizontal', true); this$static.element.style['outline'] = '0px'; this$static.element.setAttribute('hideFocus', 'true'); $addDomHandler(this$static, new MenuBar$2(this$static), ($clinit_BlurEvent() , $clinit_BlurEvent() , TYPE)); } function $insertItem_0(this$static, item_0, beforeIndex){ var i, itemsIndex; if (beforeIndex < 0 || beforeIndex > this$static.allItems.array.length) { throw toJs(new IndexOutOfBoundsException); } $add_7(this$static.allItems, beforeIndex, item_0); itemsIndex = 0; for (i = 0; i < beforeIndex; i++) { instanceOf($get_2(this$static.allItems, i), 40) && ++itemsIndex; } $add_7(this$static.items, itemsIndex, item_0); $addItemElement(this$static, beforeIndex, ($clinit_DOM() , item_0.element)); item_0.parentMenu = this$static; $setStyleName_0(item_0, getStylePrimaryName(item_0.element) + '-' + 'selected', false); $updateSubmenuIcon(this$static, item_0); return item_0; } function $insertSeparator(this$static, separator, beforeIndex){ if (beforeIndex < 0 || beforeIndex > this$static.allItems.array.length) { throw toJs(new IndexOutOfBoundsException); } this$static.vertical && (($clinit_DOM() , separator.element)['colSpan'] = 2 , undefined); $addItemElement(this$static, beforeIndex, ($clinit_DOM() , separator.element)); $add_7(this$static.allItems, beforeIndex, separator); return separator; } function $itemOver(this$static, item_0, focus_0){ var focus_1; if (!item_0) { if (!!this$static.selectedItem && !!this$static.shownChildMenu && this$static.shownChildMenu == this$static.selectedItem.subMenu) { return; } } if (!!item_0 && !item_0.enabled) { return; } $selectItem(this$static, item_0); focus_0 && this$static.focusOnHover && (($clinit_DOM() , this$static.element).focus() , undefined); !!item_0 && (!!this$static.shownChildMenu || !!this$static.parentMenu || this$static.autoOpen) && $doItemAction(this$static, item_0, false, this$static.focusOnHover); } function $moveSelectionDown(this$static){ if ($selectFirstItemIfNoneSelected(this$static)) { return; } if (this$static.vertical) { $selectNextItem(this$static); } else { if (!!this$static.selectedItem.subMenu && this$static.selectedItem.subMenu.items.array.length != 0 && (!this$static.shownChildMenu || !this$static.shownChildMenu.selectedItem)) { !this$static.shownChildMenu && $doItemAction(this$static, this$static.selectedItem, false, true); $focus(this$static.selectedItem.subMenu); } else !!this$static.parentMenu && (this$static.parentMenu.vertical?$selectNextItem(this$static.parentMenu):$moveSelectionDown(this$static.parentMenu)); } } function $moveSelectionUp(this$static){ if ($selectFirstItemIfNoneSelected(this$static)) { return; } !this$static.shownChildMenu && this$static.vertical?$selectPrevItem(this$static):!!this$static.parentMenu && this$static.parentMenu.vertical?$selectPrevItem(this$static.parentMenu):$close(this$static, true); } function $moveToNextItem(this$static){ if ($selectFirstItemIfNoneSelected(this$static)) { return; } if (this$static.vertical) { if (!!this$static.selectedItem.subMenu && this$static.selectedItem.subMenu.items.array.length != 0 && (!this$static.shownChildMenu || !this$static.shownChildMenu.selectedItem)) { !this$static.shownChildMenu && $doItemAction(this$static, this$static.selectedItem, false, true); $focus(this$static.selectedItem.subMenu); } else !!this$static.parentMenu && (this$static.parentMenu.vertical?$moveToNextItem(this$static.parentMenu):$selectNextItem(this$static.parentMenu)); } else { $selectNextItem(this$static); } } function $moveToPrevItem(this$static){ if ($selectFirstItemIfNoneSelected(this$static)) { return; } this$static.vertical?!!this$static.parentMenu && !this$static.parentMenu.vertical?$selectPrevItem(this$static.parentMenu):$close(this$static, true):$selectPrevItem(this$static); } function $onBrowserEvent_0(this$static, event_0){ var item_0, keyCode; item_0 = $findItem(this$static, ($clinit_DOM() , event_0.target)); switch ($eventGetTypeInt(event_0.type)) { case 1: { this$static.element.focus(); !!item_0 && $doItemAction(this$static, item_0, true, true); break; } case 16: { !!item_0 && $itemOver(this$static, item_0, true); break; } case 32: { !!item_0 && $itemOver(this$static, null, false); break; } case $intern_43: { $selectFirstItemIfNoneSelected(this$static); break; } case 128: { keyCode = event_0.keyCode | 0; $clinit_LocaleInfo(); keyCode = maybeSwapArrowKeysForRtl(keyCode, false); switch (keyCode) { case 37: $moveToPrevItem(this$static); event_0.stopPropagation(); event_0.preventDefault(); break; case 39: $moveToNextItem(this$static); event_0.stopPropagation(); event_0.preventDefault(); break; case 38: $moveSelectionUp(this$static); event_0.stopPropagation(); event_0.preventDefault(); break; case 40: $moveSelectionDown(this$static); event_0.stopPropagation(); event_0.preventDefault(); break; case 27: this$static.parentMenu?$close(this$static, false):$selectItem(this$static, null); !this$static.parentMenu && !!this$static.popup && $hide(this$static.popup, false); event_0.stopPropagation(); event_0.preventDefault(); break; case 9: this$static.parentMenu?$close(this$static, false):$selectItem(this$static, null); !this$static.parentMenu && !!this$static.popup && $hide(this$static.popup, false); break; case 13: if (!$selectFirstItemIfNoneSelected(this$static)) { $doItemAction(this$static, this$static.selectedItem, true, true); event_0.stopPropagation(); event_0.preventDefault(); } } break; } } $onBrowserEvent(this$static, event_0); } function $onHide(this$static, focus_0){ var focus_1; if (this$static.shownChildMenu) { $onHide(this$static.shownChildMenu, focus_0); $hide(this$static.popup, false); focus_0 && (($clinit_DOM() , this$static.element).focus() , undefined); } } function $onPopupClosed(this$static, autoClosed){ autoClosed && (this$static.parentMenu?$close(this$static, false):$selectItem(this$static, null)); $onHide(this$static, !autoClosed && this$static.focusOnHover); fire_1(this$static, false); this$static.shownChildMenu = null; this$static.popup = null; !!this$static.parentMenu && !!this$static.parentMenu.popup && (this$static.parentMenu.popup.previewAllNativeEvents = true , undefined); } function $openPopup(this$static, item_0){ !!this$static.parentMenu && !!this$static.parentMenu.popup && (this$static.parentMenu.popup.previewAllNativeEvents = false , undefined); this$static.shownChildMenu = item_0.subMenu; $selectItem(this$static.shownChildMenu, null); this$static.shownChildMenu.parentMenu = this$static; this$static.popup = new MenuBar$MenuPopup(this$static); $setWidget_1(this$static.popup, this$static.shownChildMenu); $addHandler(this$static.popup, new ListenerWrapper$WrappedPopupListener(this$static), TYPE_18?TYPE_18:(TYPE_18 = new GwtEvent$Type)); $setPopupPositionAndShow(this$static.popup, new MenuBar$3(this$static, item_0)); } function $selectFirstItemIfNoneSelected(this$static){ var nextItem, nextItem$iterator; if (!this$static.selectedItem) { for (nextItem$iterator = new ArrayList$1(this$static.items); nextItem$iterator.i < nextItem$iterator.this$01.array.length;) { nextItem = $next_4(nextItem$iterator); if (nextItem.enabled) { $selectItem(this$static, nextItem); break; } } return true; } return false; } function $selectItem(this$static, item_0){ var td, tr; if (item_0 == this$static.selectedItem) { return; } if (this$static.selectedItem) { $setSelectionStyle(this$static.selectedItem); if (this$static.vertical) { tr = ($clinit_DOM() , $getParentElement($getElement(this$static.selectedItem))); if ($getChildCount(tr) == 2) { td = $getChild(tr, 1); setStyleName(td, 'subMenuIcon-selected', false); } } } if (item_0) { $setStyleName_0(item_0, getStylePrimaryName(($clinit_DOM() , item_0.element)) + '-' + 'selected', true); if (this$static.vertical) { tr = $getParentElement(item_0.element); if ($getChildCount(tr) == 2) { td = $getChild(tr, 1); setStyleName(td, 'subMenuIcon-selected', true); } } $clinit_Roles(); $setAriaActivedescendantProperty(this$static.element, new Id(item_0.element)); } this$static.selectedItem = item_0; } function $selectNextItem(this$static){ var firstIndex, index_0, itemToBeSelected; if (!this$static.selectedItem) { return; } index_0 = $indexOf_3(this$static.items, this$static.selectedItem, 0); firstIndex = index_0; while (true) { index_0 = index_0 + 1; index_0 == this$static.items.array.length && (index_0 = 0); if (index_0 == firstIndex) { itemToBeSelected = $get_2(this$static.items, firstIndex); break; } else { itemToBeSelected = $get_2(this$static.items, index_0); if (itemToBeSelected.enabled) { break; } } } $selectItem(this$static, itemToBeSelected); !!this$static.shownChildMenu && $doItemAction(this$static, itemToBeSelected, false, true); } function $selectPrevItem(this$static){ var firstIndex, index_0, itemToBeSelected; if (!this$static.selectedItem) { return; } index_0 = $indexOf_3(this$static.items, this$static.selectedItem, 0); firstIndex = index_0; while (true) { index_0 = index_0 - 1; index_0 < 0 && (index_0 = this$static.items.array.length - 1); if (index_0 == firstIndex) { itemToBeSelected = $get_2(this$static.items, firstIndex); break; } else { itemToBeSelected = $get_2(this$static.items, index_0); if (itemToBeSelected.enabled) { break; } } } $selectItem(this$static, itemToBeSelected); !!this$static.shownChildMenu && $doItemAction(this$static, itemToBeSelected, false, true); } function $updateSubmenuIcon(this$static, item_0){ var container, idx, submenu, td, tdCount, tr; if (!this$static.vertical) { return; } idx = $indexOf_3(this$static.allItems, item_0, 0); if (idx == -1) { return; } container = this$static.vertical?this$static.body_0:($clinit_DOM() , $getChild(this$static.body_0, 0)); tr = ($clinit_DOM() , $getChild(container, idx)); tdCount = $getChildCount(tr); submenu = item_0.subMenu; if (!submenu) { tdCount == 2 && $removeChild(tr, $getChild(tr, 1)); item_0.element['colSpan'] = 2; } else if (tdCount == 1) { item_0.element['colSpan'] = 1; td = $doc.createElement('td'); td['vAlign'] = 'middle'; $setInnerHTML(td, $getSafeHtml_0(this$static.subMenuIcon).html); td.className = 'subMenuIcon'; $appendChild(tr, resolve(td)); } } function MenuBar(){ MenuBar_0.call(this, false); } function MenuBar_0(vertical){ this.allItems = new ArrayList; this.items = new ArrayList; $init_0(this, vertical, create_1(($clinit_MenuBar_Resources_default_InlineClientBundleGenerator$menuBarSubMenuIconInitializer() , menuBarSubMenuIcon))); } defineClass(58, 24, $intern_66, MenuBar, MenuBar_0); _.onBrowserEvent = function onBrowserEvent_2(event_0){ $onBrowserEvent_0(this, event_0); } ; _.onDetach = function onDetach_3(){ !!this.popup && $hide(this.popup, false); $onDetach(this); } ; _.autoOpen = false; _.focusOnHover = true; _.subMenuIcon = null; _.vertical = false; var Lcom_google_gwt_user_client_ui_MenuBar_2_classLit = createForClass('com.google.gwt.user.client.ui', 'MenuBar', 58); function MenuBar$1(val$cmd){ this.val$cmd2 = val$cmd; } defineClass(548, 1, {}, MenuBar$1); _.execute_1 = function execute_10(){ this.val$cmd2.execute_1(); } ; var Lcom_google_gwt_user_client_ui_MenuBar$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'MenuBar/1', 548); function MenuBar$2(this$0){ this.this$01 = this$0; } defineClass(549, 1, {1008:1, 11:1}, MenuBar$2); var Lcom_google_gwt_user_client_ui_MenuBar$2_2_classLit = createForClass('com.google.gwt.user.client.ui', 'MenuBar/2', 549); function MenuBar$3(this$0, val$item){ this.this$01 = this$0; this.val$item2 = val$item; } defineClass(550, 1, {}, MenuBar$3); _.setPosition = function setPosition(offsetWidth, offsetHeight){ this.this$01.vertical?$positionNextTo(this.this$01.popup, this.val$item2):$positionBelow(this.this$01.popup, this.val$item2); } ; var Lcom_google_gwt_user_client_ui_MenuBar$3_2_classLit = createForClass('com.google.gwt.user.client.ui', 'MenuBar/3', 550); function $leftOf(object){ return $getAbsoluteLeft_0(($clinit_DOM() , object.element)); } function $positionBelow(this$static, target){ var left, top_0; top_0 = $getAbsoluteTop(this$static.this$01) + $getOffsetHeight(this$static.this$01); left = this$static.towardsEast?$getAbsoluteLeft_0(($clinit_DOM() , target.element)):$getAbsoluteLeft_0(($clinit_DOM() , target.element)) + $getPropertyInt(target.element, 'offsetWidth') - $getPropertyInt(this$static.element, 'offsetWidth'); $setPositionInClient(this$static, left, top_0); } function $positionNextTo(this$static, target){ var left, leftIfTowardEast, leftIfTowardWest, offsetTop, overflowIfTowardsEast, overflowIfTowardsWest, top_0; offsetTop = $getAbsoluteTop(target.subMenu) - ($getBoundingClientRectTop(($clinit_DOM() , this$static.element)) + $wnd.pageYOffset | 0); top_0 = ($getBoundingClientRectTop(target.element) + $wnd.pageYOffset | 0) - offsetTop; leftIfTowardEast = $rightOf(this$static.this$01); leftIfTowardWest = $leftOf(this$static.this$01) - $getPropertyInt(this$static.element, 'offsetWidth'); overflowIfTowardsEast = leftIfTowardEast + $getPropertyInt(this$static.element, 'offsetWidth') - (($wnd.pageXOffset | 0) + $getClientWidth($doc)); overflowIfTowardsWest = ($wnd.pageXOffset | 0) - leftIfTowardWest; overflowIfTowardsEast <= 0 && overflowIfTowardsWest <= 0?!!this$static.this$01.parentMenu && !!this$static.this$01.parentMenu.popup && (this$static.towardsEast = this$static.this$01.parentMenu.popup.towardsEast):(this$static.towardsEast = overflowIfTowardsEast < overflowIfTowardsWest); left = this$static.towardsEast?leftIfTowardEast:leftIfTowardWest; $setPositionInClient(this$static, left, top_0); } function $rightOf(object){ return $getAbsoluteLeft_0(($clinit_DOM() , object.element)) + $getPropertyInt(object.element, 'offsetWidth'); } function $setPositionInClient(this$static, left, top_0){ if ($getPropertyInt(($clinit_DOM() , this$static.element), 'offsetWidth') < $getClientWidth($doc)) { left = $wnd.Math.min(left, ($wnd.pageXOffset | 0) + $getClientWidth($doc) - $getPropertyInt(this$static.element, 'offsetWidth')); left = $wnd.Math.max($wnd.pageXOffset | 0, left); } $setPopupPosition(this$static, left, top_0); } function MenuBar$MenuPopup(this$0){ var primaryStyleName; this.this$01 = this$0; DecoratedPopupPanel.call(this, true, false, 'menuPopup'); this.towardsEast = ($clinit_LocaleInfo() , true); $setAnimationType(this, ($clinit_PopupPanel$AnimationType() , ONE_WAY_CORNER)); this.isAnimationEnabled = false; $getParentElement(($clinit_DOM() , $getFirstChildElement(this.element))).className = 'gwt-MenuBarPopup'; primaryStyleName = getStylePrimaryName(this$0.element); $equals_1('gwt-MenuBar', primaryStyleName) || setStyleName($getParentElement($getFirstChildElement(this.element)), primaryStyleName + 'Popup', true); this.previewAllNativeEvents = true; } defineClass(547, 329, $intern_57, MenuBar$MenuPopup); _.onPreviewNativeEvent = function onPreviewNativeEvent_2(event_0){ var parentMenuElement, target; if (!event_0.isCanceled) { switch ($getTypeInt(event_0.nativeEvent)) { case 4: target = event_0.nativeEvent.target; parentMenuElement = $getElement(this.this$01); if (isOrHasChildImpl(parentMenuElement, target)) { event_0.isCanceled = true; return; } event_0.isFirstHandler && false && (event_0.isCanceled = true); event_0.isCanceled && $selectItem(this.this$01, null); return; } } event_0.isFirstHandler && false && (event_0.isCanceled = true); } ; _.towardsEast = false; var Lcom_google_gwt_user_client_ui_MenuBar$MenuPopup_2_classLit = createForClass('com.google.gwt.user.client.ui', 'MenuBar/MenuPopup', 547); var menuBarSubMenuIcon; function $clinit_MenuBar_Resources_default_InlineClientBundleGenerator$menuBarSubMenuIconInitializer(){ $clinit_MenuBar_Resources_default_InlineClientBundleGenerator$menuBarSubMenuIconInitializer = emptyMethod; menuBarSubMenuIcon = new ImageResourcePrototype(($clinit_UriUtils() , new SafeUriString(($clinit_LocaleInfo() , 'data:image/gif;base64,R0lGODlhBQAJAIAAAAAAAAAAACH5BAEAAAEALAAAAAAFAAkAAAIMRB5gp9v2YlJsJRQKADs=')))); } function $setCommand(this$static, cmd){ this$static.command = cmd; } function $setEnabled_1(this$static, enabled){ enabled?$setStyleName_0(this$static, getStylePrimaryName(($clinit_DOM() , this$static.element)) + '-' + 'disabled', false):$setStyleName_0(this$static, getStylePrimaryName(($clinit_DOM() , this$static.element)) + '-' + 'disabled', true); this$static.enabled = enabled; } function $setScheduledCommand(this$static, cmd){ this$static.command = cmd; } function $setSelectionStyle(this$static){ $setStyleName_0(this$static, getStylePrimaryName(($clinit_DOM() , this$static.element)) + '-' + 'selected', false); } function $setSubMenu(this$static, subMenu){ this$static.subMenu = subMenu; !!this$static.parentMenu && $updateSubmenuIcon(this$static.parentMenu, this$static); if (subMenu) { ($clinit_DOM() , subMenu.element).tabIndex = -1; $clinit_Roles(); $setAriaHaspopupProperty(this$static.element, true); } else { $clinit_Roles(); $setAriaHaspopupProperty(($clinit_DOM() , this$static.element), false); } } function MenuItem(html, cmd){ MenuItem_4.call(this, html.html, cmd); } function MenuItem_0(html, subMenu){ MenuItem_5.call(this, html.html, subMenu); } function MenuItem_1(text_0, cmd){ MenuItem_3.call(this, text_0, false); this.command = cmd; } function MenuItem_2(text_0, subMenu){ MenuItem_3.call(this, text_0, false); $setSubMenu(this, subMenu); } function MenuItem_3(text_0, asHTML){ $setElement_0(this, ($clinit_DOM() , $doc.createElement('td'))); $setStyleName_0(this, getStylePrimaryName(this.element) + '-' + 'selected', false); asHTML?$setInnerHTML(this.element, text_0):$setInnerText(this.element, text_0); this.element.className = 'gwt-MenuItem'; $setAttribute(this.element, 'id', $createUniqueId($doc)); $clinit_Roles(); $set(MENUITEM, this.element); } function MenuItem_4(text_0, cmd){ MenuItem_3.call(this, text_0, true); this.command = cmd; } function MenuItem_5(text_0, subMenu){ MenuItem_3.call(this, text_0, true); $setSubMenu(this, subMenu); } defineClass(40, 22, $intern_67, MenuItem, MenuItem_0, MenuItem_1, MenuItem_2); _.enabled = true; var Lcom_google_gwt_user_client_ui_MenuItem_2_classLit = createForClass('com.google.gwt.user.client.ui', 'MenuItem', 40); function MenuItemSeparator(){ var div; $setElement_0(this, ($clinit_DOM() , $doc.createElement('td'))); this.element.className = 'gwt-MenuItemSeparator'; div = $doc.createElement('div'); $appendChild(this.element, resolve(div)); div.className = 'menuSeparatorInner'; } defineClass(197, 22, {23:1, 197:1, 22:1}, MenuItemSeparator); var Lcom_google_gwt_user_client_ui_MenuItemSeparator_2_classLit = createForClass('com.google.gwt.user.client.ui', 'MenuItemSeparator', 197); function $onResize_0(this$static){ var height, style, width_0, winHeight, winWidth; style = this$static.this$01.glass.style; winWidth = $getClientWidth($doc); winHeight = $getClientHeight($doc); style['display'] = ($clinit_Style$Display() , 'none'); style['width'] = ($clinit_Style$Unit() , '0.0px'); style['height'] = '0.0px'; width_0 = $getScrollWidth($doc); height = $getScrollHeight($doc); style['width'] = $wnd.Math.max(width_0, winWidth) + 'px'; style['height'] = $wnd.Math.max(height, winHeight) + 'px'; style['display'] = 'block'; } function PopupPanel$1(this$0){ this.this$01 = this$0; } defineClass(521, 1, $intern_41, PopupPanel$1); _.onResize = function onResize_4(event_0){ $onResize_0(this); } ; var Lcom_google_gwt_user_client_ui_PopupPanel$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'PopupPanel/1', 521); function PopupPanel$3(this$0){ this.this$01 = this$0; } defineClass(522, 1, $intern_40, PopupPanel$3); _.onPreviewNativeEvent = function onPreviewNativeEvent_3(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', 522); function PopupPanel$4(this$0){ this.this$01 = this$0; } defineClass(523, 1, $intern_68, PopupPanel$4); _.onValueChange = function onValueChange(event_0){ this.this$01.autoHideOnHistoryEvents && this.this$01.hide(false); } ; var Lcom_google_gwt_user_client_ui_PopupPanel$4_2_classLit = createForClass('com.google.gwt.user.client.ui', 'PopupPanel/4', 523); function $clinit_PopupPanel$AnimationType(){ $clinit_PopupPanel$AnimationType = emptyMethod; CENTER_1 = new PopupPanel$AnimationType('CENTER', 0); ONE_WAY_CORNER = new PopupPanel$AnimationType('ONE_WAY_CORNER', 1); ROLL_DOWN = new PopupPanel$AnimationType('ROLL_DOWN', 2); } function PopupPanel$AnimationType(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function values_13(){ $clinit_PopupPanel$AnimationType(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_user_client_ui_PopupPanel$AnimationType_2_classLit, 1), $intern_3, 236, 0, [CENTER_1, ONE_WAY_CORNER, ROLL_DOWN]); } defineClass(236, 15, {236:1, 3:1, 16:1, 15:1}, PopupPanel$AnimationType); var CENTER_1, ONE_WAY_CORNER, ROLL_DOWN; var Lcom_google_gwt_user_client_ui_PopupPanel$AnimationType_2_classLit = createForEnum('com.google.gwt.user.client.ui', 'PopupPanel/AnimationType', 236, values_13); 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_0(this$static.curPanel.glassResizer); 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(($clinit_RootPanel() , get_1()), this$static.curPanel); } $getElement(this$static.curPanel).style['clip'] = 'rect(auto, auto, auto, auto)'; $getElement(this$static.curPanel).style['overflow'] = 'visible'; } function $onInstantaneousRun(this$static){ $maybeShowGlass(this$static); if (this$static.showing) { $getElement(this$static.curPanel).style['position'] = 'absolute'; this$static.curPanel.topPosition != -1 && $setPopupPosition(this$static.curPanel, this$static.curPanel.leftPosition, this$static.curPanel.topPosition); $add_0(($clinit_RootPanel() , get_1()), this$static.curPanel); } else { this$static.isUnloading || $remove_1(($clinit_RootPanel() , get_1()), this$static.curPanel); } $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 (this$static.curPanel.animType.ordinal) { case 2: right = this$static.offsetWidth_0; bottom = height; break; 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; break; case 1: $clinit_LocaleInfo(); right = width_0; bottom = height; } $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.curPanel.animType != ($clinit_PopupPanel$AnimationType() , CENTER_1) && !showing && (animate = false); this$static.showing = showing; if (animate) { if (showing) { $maybeShowGlass(this$static); $getElement(this$static.curPanel).style['position'] = 'absolute'; this$static.curPanel.topPosition != -1 && $setPopupPosition(this$static.curPanel, this$static.curPanel.leftPosition, this$static.curPanel.topPosition); $getElement(this$static.curPanel).style['clip'] = 'rect(0px, 0px, 0px, 0px)'; $add_0(($clinit_RootPanel() , get_1()), this$static.curPanel); this$static.showTimer = new PopupPanel$ResizeAnimation$1(this$static); $schedule(this$static.showTimer, 1); } else { $run(this$static, 200, now_1(), null); } } else { $onInstantaneousRun(this$static); } } function PopupPanel$ResizeAnimation(panel){ Animation.call(this); this.curPanel = panel; } defineClass(519, 287, {}, PopupPanel$ResizeAnimation); _.onComplete = function onComplete_1(){ $onComplete(this); } ; _.onStart = function onStart_0(){ this.offsetHeight_0 = $getPropertyInt($getElement(this.curPanel), 'offsetHeight'); this.offsetWidth_0 = $getPropertyInt($getElement(this.curPanel), 'offsetWidth'); $getElement(this.curPanel).style['overflow'] = 'hidden'; $onUpdate(this, (1 + $wnd.Math.cos($intern_1)) / 2); } ; _.onUpdate = function onUpdate_0(progress){ $onUpdate(this, progress); } ; _.curPanel = null; _.glassShowing = false; _.isUnloading = false; _.offsetHeight_0 = 0; _.offsetWidth_0 = -1; _.showing = false; var Lcom_google_gwt_user_client_ui_PopupPanel$ResizeAnimation_2_classLit = createForClass('com.google.gwt.user.client.ui', 'PopupPanel/ResizeAnimation', 519); function PopupPanel$ResizeAnimation$1(this$1){ this.this$11 = this$1; Timer.call(this); } defineClass(520, 213, {}, PopupPanel$ResizeAnimation$1); _.run = function run_2(){ this.this$11.showTimer = null; $run_0(this.this$11, 200, null); } ; var Lcom_google_gwt_user_client_ui_PopupPanel$ResizeAnimation$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'PopupPanel/ResizeAnimation/1', 520); 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; } function $sinkEvents_0(this$static, eventBitsToAdd){ if (this$static.eventsToSink == -1) { sinkEvents_1(this$static.inputElem, eventBitsToAdd | getEventsSunk(this$static.inputElem)); sinkEvents_1(this$static.labelElem, eventBitsToAdd | getEventsSunk(this$static.labelElem)); } else { this$static.eventsToSink == -1?sinkEvents_1(this$static.inputElem, eventBitsToAdd | getEventsSunk(this$static.inputElem)):this$static.eventsToSink == -1?sinkEvents_0(($clinit_DOM() , this$static.element), eventBitsToAdd | (this$static.element.__eventBits || 0)):(this$static.eventsToSink |= eventBitsToAdd); } } function RadioButton(name_0, label_0){ CheckBox.call(this, ($clinit_DOM() , $createInputRadioElement($doc, name_0))); this.element.className = 'gwt-RadioButton'; $sinkEvents_0(this, 1); $sinkEvents_0(this, 8); $sinkEvents_0(this, $intern_42); $sinkEvents_0(this, 128); $setTextOrHtml(this.directionalTextHelper, label_0, false); } defineClass(159, 166, $intern_55, RadioButton); _.ensureDomEventHandlers = function ensureDomEventHandlers_0(){ } ; _.onBrowserEvent = function onBrowserEvent_3(event_0){ var target; switch ($clinit_DOM() , $eventGetTypeInt(event_0.type)) { case 8: case $intern_42: case 128: this.oldValue = this.attached?($clinit_Boolean() , this.inputElem.checked?true:false):($clinit_Boolean() , this.inputElem.defaultChecked?true:false); break; case 1: target = event_0.target; if (is_0(target) && isOrHasChildImpl(this.labelElem, target)) { this.oldValue = this.attached?($clinit_Boolean() , this.inputElem.checked?true:false):($clinit_Boolean() , this.inputElem.defaultChecked?true:false); return; } $onBrowserEvent(this, event_0); fireIfNotEqual(this, this.oldValue, this.attached?($clinit_Boolean() , this.inputElem.checked?true:false):($clinit_Boolean() , this.inputElem.defaultChecked?true:false)); return; } $onBrowserEvent(this, event_0); } ; _.sinkEvents = function sinkEvents_3(eventBitsToAdd){ $sinkEvents_0(this, eventBitsToAdd); } ; var Lcom_google_gwt_user_client_ui_RadioButton_2_classLit = createForClass('com.google.gwt.user.client.ui', 'RadioButton', 159); function RootLayoutPanel(){ ComplexPanel.call(this); $setElement(this, $doc.createElement('div')); this.layout = new Layout(($clinit_DOM() , this.element)); this.layoutCmd = new LayoutCommand(this.layout); addResizeHandler(new RootLayoutPanel$1(this)); } function get_0(){ if (!singleton_0) { singleton_0 = new RootLayoutPanel; $add_0(($clinit_RootPanel() , get_1()), singleton_0); } return singleton_0; } defineClass(650, 649, $intern_61, RootLayoutPanel); _.onLoad = function onLoad_1(){ $fillParent(this.layout.parentElem); } ; var singleton_0; var Lcom_google_gwt_user_client_ui_RootLayoutPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'RootLayoutPanel', 650); function RootLayoutPanel$1(this$0){ this.this$01 = this$0; } defineClass(651, 1, $intern_41, RootLayoutPanel$1); _.onResize = function onResize_5(event_0){ $onResize(this.this$01); } ; var Lcom_google_gwt_user_client_ui_RootLayoutPanel$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'RootLayoutPanel/1', 651); 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_15(widgetsToDetach, widget); } } function detachWidgets(){ $clinit_RootPanel(); try { tryCommand(widgetsToDetach, maybeDetachCommand); } finally { $reset_13(widgetsToDetach.map_0); $reset_13(rootPanels); } } function get_1(){ $clinit_RootPanel(); var rp; rp = $get_1(rootPanels, null); if (rp) { return rp; } if ($size(rootPanels) == 0) { addCloseHandler(new RootPanel$2); $clinit_LocaleInfo(); } rp = new RootPanel$DefaultRootPanel; $put_0(rootPanels, null, rp); $add_9(widgetsToDetach, rp); return rp; } defineClass(289, 670, $intern_69); var maybeDetachCommand, rootPanels, widgetsToDetach; var Lcom_google_gwt_user_client_ui_RootPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'RootPanel', 289); function RootPanel$1(){ } defineClass(672, 1, {}, RootPanel$1); _.execute_2 = function execute_11(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', 672); function RootPanel$2(){ } defineClass(673, 1, $intern_65, RootPanel$2); _.onClose = function onClose_0(closeEvent){ detachWidgets(); } ; var Lcom_google_gwt_user_client_ui_RootPanel$2_2_classLit = createForClass('com.google.gwt.user.client.ui', 'RootPanel/2', 673); function RootPanel$DefaultRootPanel(){ RootPanel.call(this, $doc.body); } defineClass(671, 289, $intern_69, RootPanel$DefaultRootPanel); var Lcom_google_gwt_user_client_ui_RootPanel$DefaultRootPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'RootPanel/DefaultRootPanel', 671); function $getMaximumHorizontalScrollPosition(scrollable){ return $isRtl(scrollable)?0:((scrollable.scrollWidth || 0) | 0) - (scrollable.clientWidth | 0); } function $getMinimumHorizontalScrollPosition(scrollable){ return $isRtl(scrollable)?(scrollable.clientWidth | 0) - ((scrollable.scrollWidth || 0) | 0):0; } function $isRtl(scrollable){ var computedStyle = $doc.defaultView.getComputedStyle(scrollable, null); return computedStyle.getPropertyValue('direction') == 'rtl'; } function ScrollImpl(){ } defineClass(299, 1, {}, ScrollImpl); var impl_0; var Lcom_google_gwt_user_client_ui_ScrollImpl_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ScrollImpl', 299); function $getHorizontalScrollPosition(this$static){ return $getScrollLeft(($clinit_DOM() , this$static.scrollableElem)); } function $getMaximumHorizontalScrollPosition_0(this$static){ return $getMaximumHorizontalScrollPosition((!impl_0 && (impl_0 = new ScrollImpl) , $clinit_DOM() , this$static.scrollableElem)); } function $getMaximumVerticalScrollPosition(this$static){ return ((($clinit_DOM() , this$static.scrollableElem).scrollHeight || 0) | 0) - (this$static.scrollableElem.clientHeight | 0); } function $getMinimumHorizontalScrollPosition_0(this$static){ return $getMinimumHorizontalScrollPosition((!impl_0 && (impl_0 = new ScrollImpl) , $clinit_DOM() , this$static.scrollableElem)); } function $getVerticalScrollPosition(this$static){ return (($clinit_DOM() , this$static.scrollableElem).scrollTop || 0) | 0; } function $setHorizontalScrollPosition(this$static, position){ $setScrollLeft(($clinit_DOM() , this$static.scrollableElem), position); } function $setTouchScrollingDisabled(this$static){ var scroller; if (this$static.touchScroller) { return false; } this$static.touchScroller = (scroller = (isSupported == null && (isSupported = ($clinit_Boolean() , !impl && (impl = new TouchEvent$TouchSupportDetectorNo) , false)) , $booleanValue(isSupported)?new TouchScroller:null) , !!scroller && $setTargetWidget(scroller, this$static) , scroller); return !this$static.touchScroller; } function $setVerticalScrollPosition(this$static, position){ $setScrollTop(($clinit_DOM() , this$static.scrollableElem), position); } function ScrollPanel(){ SimplePanel.call(this); this.scrollableElem = ($clinit_DOM() , this.element); this.containerElem = $doc.createElement('div'); $appendChild(this.scrollableElem, this.containerElem); this.scrollableElem.style['overflow'] = ($clinit_Style$Overflow() , 'auto'); this.scrollableElem.style['position'] = ($clinit_Style$Position() , 'relative'); this.containerElem.style['position'] = 'relative'; this.scrollableElem.style['zoom'] = '1'; this.containerElem.style['zoom'] = '1'; $setTouchScrollingDisabled(this); !impl_0 && (impl_0 = new ScrollImpl); } defineClass(739, 255, $intern_61, ScrollPanel); _.getContainerElement = function getContainerElement_2(){ return $clinit_DOM() , this.containerElem; } ; _.onAttach = function onAttach_4(){ $onAttach(this); $clinit_DOM(); this.scrollableElem.__listener = this; } ; _.onDetach = function onDetach_4(){ $clinit_DOM(); this.scrollableElem.__listener = null; $onDetach(this); } ; _.onResize_0 = function onResize_6(){ var child; child = this.widget; !!child && instanceOf(child, 209) && child.onResize_0(); } ; _.setHeight_0 = function setHeight_1(height){ ($clinit_DOM() , this.element).style['height'] = height; } ; _.setWidth_0 = function setWidth_1(width_0){ ($clinit_DOM() , this.element).style['width'] = width_0; } ; var Lcom_google_gwt_user_client_ui_ScrollPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ScrollPanel', 739); function $next_0(this$static){ if (!this$static.hasElement || !this$static.this$01.widget) { throw toJs(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(330, 1, {}, SimplePanel$1); _.next_1 = function next_1(){ return $next_0(this); } ; _.hasNext_0 = function hasNext_0(){ return this.hasElement; } ; _.remove_1 = function remove_9(){ !!this.returned && this.this$01.remove_0(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', 330); function $addValueChangeHandler_1(this$static, handler){ if (!this$static.valueChangeHandlerInitialized) { this$static.valueChangeHandlerInitialized = true; $addDomHandler(this$static, new ValueBoxBase$1(this$static), ($clinit_ChangeEvent() , $clinit_ChangeEvent() , TYPE_0)); } return $addHandler(this$static, handler, (!TYPE_20 && (TYPE_20 = new GwtEvent$Type) , TYPE_20)); } function $getText(this$static){ return $getPropertyString(($clinit_DOM() , this$static.element), 'value'); } function $getValueOrThrow(this$static){ var parseResult, text_0; text_0 = $getPropertyString(($clinit_DOM() , this$static.element), 'value'); parseResult = (checkCriticalNotNull(text_0) , text_0); if ($equals_1('', text_0)) { return null; } return parseResult; } function $selectAll(this$static){ var length_0; length_0 = $getPropertyString(($clinit_DOM() , this$static.element), 'value').length; length_0 > 0 && $setSelectionRange(this$static, length_0); } function $setSelectionRange(this$static, length_0){ if (!this$static.attached) { return; } if (length_0 < 0) { throw toJs(new IndexOutOfBoundsException_0('Length must be a positive integer. Length: ' + length_0)); } if (length_0 > $getPropertyString(($clinit_DOM() , this$static.element), 'value').length) { throw toJs(new IndexOutOfBoundsException_0('From Index: 0 To Index: ' + length_0 + ' Text Length: ' + $getPropertyString(this$static.element, 'value').length)); } $setSelectionRange_0(this$static.element, 0, length_0); } function $setText_2(this$static, text_0){ ($clinit_DOM() , this$static.element)['value'] = text_0 != null?text_0:''; } function ValueBoxBase(elem){ FocusWidget.call(this, elem); $clinit_LocaleInfo(); } defineClass(711, 82, $intern_70); _.onBrowserEvent = function onBrowserEvent_4(event_0){ var type_0; type_0 = ($clinit_DOM() , $eventGetTypeInt(event_0.type)); (type_0 & 896) != 0?$onBrowserEvent(this, event_0):$onBrowserEvent(this, event_0); } ; _.onLoad = function onLoad_2(){ } ; _.valueChangeHandlerInitialized = false; var Lcom_google_gwt_user_client_ui_ValueBoxBase_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ValueBoxBase', 711); function $clinit_TextBoxBase(){ $clinit_TextBoxBase = emptyMethod; $clinit_ValueBoxBase$TextAlignment(); } function TextBoxBase(elem){ ValueBoxBase.call(this, (!INSTANCE_1 && (INSTANCE_1 = new PassthroughRenderer) , !INSTANCE_0 && (INSTANCE_0 = new PassthroughParser) , elem)); } defineClass(340, 711, $intern_70); var Lcom_google_gwt_user_client_ui_TextBoxBase_2_classLit = createForClass('com.google.gwt.user.client.ui', 'TextBoxBase', 340); function $setVisibleLines(this$static, lines){ $setRows(($clinit_DOM() , this$static.element), lines); } function TextArea_0(){ $clinit_TextBoxBase(); TextBoxBase.call(this, $doc.createElement('textarea')); ($clinit_DOM() , this.element).className = 'gwt-TextArea'; } defineClass(167, 340, $intern_70, TextArea_0); var Lcom_google_gwt_user_client_ui_TextArea_2_classLit = createForClass('com.google.gwt.user.client.ui', 'TextArea', 167); function $setMaxLength(this$static){ ($clinit_DOM() , this$static.element).maxLength = 15; } function $setVisibleLength(this$static){ ($clinit_DOM() , this$static.element).size = 50; } function TextBox(){ $clinit_TextBoxBase(); TextBox_0.call(this, $createInputElement($doc, 'text')); } function TextBox_0(element){ TextBoxBase.call(this, element); ($clinit_DOM() , this.element).className = 'gwt-TextBox'; } defineClass(127, 340, {172:1, 71:1, 119:1, 94:1, 122:1, 85:1, 98:1, 121:1, 69:1, 70:1, 72:1, 73:1, 75:1, 74:1, 76:1, 77:1, 78:1, 120:1, 96:1, 97:1, 95:1, 124:1, 125:1, 123:1, 86:1, 90:1, 88:1, 89:1, 87:1, 91:1, 102:1, 101:1, 100:1, 99:1, 28:1, 210:1, 25:1, 207:1, 134:1, 27:1, 230:1, 82:1, 116:1, 105:1, 115:1, 146:1, 50:1, 229:1, 23:1, 29:1, 92:1, 117:1, 118:1, 93:1, 127:1, 22:1, 24:1}, TextBox); var Lcom_google_gwt_user_client_ui_TextBox_2_classLit = createForClass('com.google.gwt.user.client.ui', 'TextBox', 127); function ValueBoxBase$1(this$0){ this.this$01 = this$0; } defineClass(716, 1, $intern_71, ValueBoxBase$1); _.onChange = function onChange(event_0){ var raw; fire_3(this.this$01, (raw = $getValueOrThrow(this.this$01) , raw == null?'':raw)); } ; var Lcom_google_gwt_user_client_ui_ValueBoxBase$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ValueBoxBase/1', 716); function $clinit_ValueBoxBase$TextAlignment(){ $clinit_ValueBoxBase$TextAlignment = emptyMethod; CENTER_2 = new ValueBoxBase$TextAlignment$1; JUSTIFY_0 = new ValueBoxBase$TextAlignment$2; LEFT_0 = new ValueBoxBase$TextAlignment$3; RIGHT_0 = new ValueBoxBase$TextAlignment$4; } function ValueBoxBase$TextAlignment(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function values_14(){ $clinit_ValueBoxBase$TextAlignment(); return stampJavaTypeInfo(getClassLiteralForArray(Lcom_google_gwt_user_client_ui_ValueBoxBase$TextAlignment_2_classLit, 1), $intern_3, 168, 0, [CENTER_2, JUSTIFY_0, LEFT_0, RIGHT_0]); } defineClass(168, 15, $intern_72); var CENTER_2, JUSTIFY_0, LEFT_0, RIGHT_0; var Lcom_google_gwt_user_client_ui_ValueBoxBase$TextAlignment_2_classLit = createForEnum('com.google.gwt.user.client.ui', 'ValueBoxBase/TextAlignment', 168, values_14); function ValueBoxBase$TextAlignment$1(){ ValueBoxBase$TextAlignment.call(this, 'CENTER', 0); } defineClass(712, 168, $intern_72, ValueBoxBase$TextAlignment$1); var Lcom_google_gwt_user_client_ui_ValueBoxBase$TextAlignment$1_2_classLit = createForEnum('com.google.gwt.user.client.ui', 'ValueBoxBase/TextAlignment/1', 712, null); function ValueBoxBase$TextAlignment$2(){ ValueBoxBase$TextAlignment.call(this, 'JUSTIFY', 1); } defineClass(713, 168, $intern_72, ValueBoxBase$TextAlignment$2); var Lcom_google_gwt_user_client_ui_ValueBoxBase$TextAlignment$2_2_classLit = createForEnum('com.google.gwt.user.client.ui', 'ValueBoxBase/TextAlignment/2', 713, null); function ValueBoxBase$TextAlignment$3(){ ValueBoxBase$TextAlignment.call(this, 'LEFT', 2); } defineClass(714, 168, $intern_72, ValueBoxBase$TextAlignment$3); var Lcom_google_gwt_user_client_ui_ValueBoxBase$TextAlignment$3_2_classLit = createForEnum('com.google.gwt.user.client.ui', 'ValueBoxBase/TextAlignment/3', 714, null); function ValueBoxBase$TextAlignment$4(){ ValueBoxBase$TextAlignment.call(this, 'RIGHT', 3); } defineClass(715, 168, $intern_72, ValueBoxBase$TextAlignment$4); var Lcom_google_gwt_user_client_ui_ValueBoxBase$TextAlignment$4_2_classLit = createForEnum('com.google.gwt.user.client.ui', 'ValueBoxBase/TextAlignment/4', 715, null); function $add_5(this$static, w){ var td, tr; tr = ($clinit_DOM() , $doc.createElement('tr')); td = $createAlignedTd(this$static); $appendChild(tr, resolve(td)); $appendChild(this$static.body_0, resolve(tr)); $add(this$static, w, td); } function $createAlignedTd(this$static){ var td; td = ($clinit_DOM() , $doc.createElement('td')); $setCellHorizontalAlignment(td, this$static.horzAlign); $setCellVerticalAlignment(td, this$static.vertAlign); return td; } function $insert_2(this$static, w, beforeIndex){ var td, tr; $checkIndexBoundsForInsertion(this$static, beforeIndex); tr = ($clinit_DOM() , $doc.createElement('tr')); td = $createAlignedTd(this$static); $appendChild(tr, resolve(td)); insertChild(this$static.body_0, tr, beforeIndex); $insert(this$static, w, td, beforeIndex); } function $remove_4(this$static, w){ var removed, td; td = ($clinit_DOM() , $getParentElement(w.element)); removed = $remove_0(this$static, w); removed && $removeChild(this$static.body_0, $getParentElement(td)); return removed; } function VerticalPanel(){ CellPanel.call(this); this.horzAlign = ($clinit_HasHorizontalAlignment() , ALIGN_DEFAULT); this.vertAlign = ($clinit_HasVerticalAlignment() , ALIGN_TOP); ($clinit_DOM() , this.table)['cellSpacing'] = '0'; this.table['cellPadding'] = '0'; } defineClass(84, 336, $intern_63, VerticalPanel); _.add_0 = function add_10(w){ $add_5(this, w); } ; _.remove_0 = function remove_10(w){ return $remove_4(this, w); } ; var Lcom_google_gwt_user_client_ui_VerticalPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'VerticalPanel', 84); function $add_6(this$static, w){ $insert_3(this$static, w, this$static.size_0); } function $get_0(this$static, index_0){ if (index_0 < 0 || index_0 >= this$static.size_0) { throw toJs(new IndexOutOfBoundsException); } return this$static.array[index_0]; } function $indexOf(this$static, w){ var i; for (i = 0; i < this$static.size_0; ++i) { if (this$static.array[i] == w) { return i; } } return -1; } function $insert_3(this$static, w, beforeIndex){ var i, i0, newArray; if (beforeIndex < 0 || beforeIndex > this$static.size_0) { throw toJs(new IndexOutOfBoundsException); } if (this$static.size_0 == this$static.array.length) { newArray = initUnidimensionalArray(Lcom_google_gwt_user_client_ui_Widget_2_classLit, $intern_3, 24, this$static.array.length * 2, 0, 1); for (i0 = 0; i0 < this$static.array.length; ++i0) { newArray[i0] = this$static.array[i0]; } this$static.array = newArray; } ++this$static.size_0; for (i = this$static.size_0 - 1; i > beforeIndex; --i) { this$static.array[i] = this$static.array[i - 1]; } this$static.array[beforeIndex] = w; } function $remove_5(this$static, index_0){ var i; if (index_0 < 0 || index_0 >= this$static.size_0) { throw toJs(new IndexOutOfBoundsException); } --this$static.size_0; for (i = index_0; i < this$static.size_0; ++i) { this$static.array[i] = this$static.array[i + 1]; } this$static.array[this$static.size_0] = null; } function $remove_6(this$static, w){ var index_0; index_0 = $indexOf(this$static, w); if (index_0 == -1) { throw toJs(new NoSuchElementException); } $remove_5(this$static, index_0); } function WidgetCollection(parent_0){ this.parent_0 = parent_0; this.array = initUnidimensionalArray(Lcom_google_gwt_user_client_ui_Widget_2_classLit, $intern_3, 24, 4, 0, 1); } defineClass(797, 1, $intern_73, WidgetCollection); _.iterator = function iterator_4(){ 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', 797); function $next_1(this$static){ if (this$static.index_0 >= this$static.this$01.size_0) { throw toJs(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(244, 1, {}, WidgetCollection$WidgetIterator); _.next_1 = function next_2(){ return $next_1(this); } ; _.hasNext_0 = function hasNext_1(){ return this.index_0 < this.this$01.size_0; } ; _.remove_1 = function remove_11(){ if (!this.currentWidget) { throw toJs(new IllegalStateException); } this.this$01.parent_0.remove_0(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', 244); function $clinit_ClippedImageImpl(){ $clinit_ClippedImageImpl = emptyMethod; clearImage = ($clinit_UriUtils() , new SafeUriString(getModuleBaseURL() + 'clear.cache.gif')); } function $getSafeHtml(url_0, left, top_0, width_0, height){ var builder; builder = new SafeStylesBuilder; $append($append($append(builder, new SafeStylesString('width:' + width_0 + ($clinit_Style$Unit() , 'px') + ';')), new SafeStylesString('height:' + height + 'px' + ';')), new SafeStylesString('background:' + ('url(' + url_0.uri_0 + ') ' + 'no-repeat ' + (-left + 'px ') + (-top_0 + 'px')) + ';')); return !template_0 && (template_0 = new ClippedImageImpl_TemplateImpl) , $image(clearImage, new SafeStylesString((new SafeStylesString(builder.sb.string)).css)); } var clearImage, template_0; function $image(arg0, arg1){ var sb; sb = new StringBuilder; sb.string += ""; return new OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(sb.string); } function ClippedImageImpl_TemplateImpl(){ } defineClass(948, 1, {}, ClippedImageImpl_TemplateImpl); var Lcom_google_gwt_user_client_ui_impl_ClippedImageImpl_1TemplateImpl_2_classLit = createForClass('com.google.gwt.user.client.ui.impl', 'ClippedImageImpl_TemplateImpl', 948); function $clinit_ClippedImagePrototype(){ $clinit_ClippedImagePrototype = emptyMethod; $clinit_ClippedImageImpl(); } function $getSafeHtml_0(this$static){ return $getSafeHtml(this$static.url_0, this$static.left_0, this$static.top_0, this$static.width_0, this$static.height_0); } function ClippedImagePrototype(url_0, left, top_0, width_0, height){ $clinit_ClippedImagePrototype(); this.url_0 = url_0; this.left_0 = left; this.top_0 = top_0; this.width_0 = width_0; this.height_0 = height; } defineClass(831, 993, {}, ClippedImagePrototype); _.height_0 = 0; _.left_0 = 0; _.top_0 = 0; _.url_0 = null; _.width_0 = 0; var Lcom_google_gwt_user_client_ui_impl_ClippedImagePrototype_2_classLit = createForClass('com.google.gwt.user.client.ui.impl', 'ClippedImagePrototype', 831); function $setClip(popup, rect){ popup.style['clip'] = rect; } function $setSelectionRange_0(elem, pos, length_0){ try { elem.setSelectionRange(pos, pos + length_0); } catch (e) { } } function assertCompileTimeUserAgent(){ var runtimeValue; runtimeValue = $getRuntimeValue(); if (!$equals_1('ie10', runtimeValue)) { throw toJs(new UserAgentAsserter$UserAgentAssertionError(runtimeValue)); } } function Error_0(message, cause){ Throwable.call(this, message, cause); } defineClass(279, 42, $intern_6); var Ljava_lang_Error_2_classLit = createForClass('java.lang', 'Error', 279); defineClass(132, 279, $intern_6); var Ljava_lang_AssertionError_2_classLit = createForClass('java.lang', 'AssertionError', 132); function UserAgentAsserter$UserAgentAssertionError(runtimeValue){ Error_0.call(this, 'Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (ie10) does not match the runtime user.agent value (' + runtimeValue + ').\n' + 'Expect more errors.' == null?'null':toString_9('Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (ie10) 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 (ie10) does not match the runtime user.agent value (' + runtimeValue + ').\n' + 'Expect more errors.', 42)?'Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (ie10) does not match the runtime user.agent value (' + runtimeValue + ').\n' + 'Expect more errors.':null); } defineClass(459, 132, $intern_6, UserAgentAsserter$UserAgentAssertionError); var Lcom_google_gwt_useragent_client_UserAgentAsserter$UserAgentAssertionError_2_classLit = createForClass('com.google.gwt.useragent.client', 'UserAgentAsserter/UserAgentAssertionError', 459); 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'; } function $clearOnReadyStateChange(this$static){ this$static.onreadystatechange = function(){ } ; } function $open(this$static, httpMethod, url_0){ this$static.open(httpMethod, url_0, true); } function $setOnReadyStateChange(this$static, handler){ var _this = this$static; this$static.onreadystatechange = $entry(function(){ handler.onReadyStateChange(_this); } ); } function DOMException_0(message){ RuntimeException_0.call(this, message); } defineClass(355, 83, $intern_7); var Lcom_google_gwt_xml_client_DOMException_2_classLit = createForClass('com.google.gwt.xml.client', 'DOMException', 355); function $clinit_XMLParser(){ $clinit_XMLParser = emptyMethod; impl_1 = ($clinit_XMLParserImpl() , $clinit_XMLParserImpl() , impl_2); } var impl_1; function DOMItem(jso){ this.jsObject = jso; } defineClass(128, 1, $intern_74); _.equals_0 = function equals_6(o){ if (instanceOf(o, 128)) { return this.jsObject == o.jsObject; } return false; } ; _.getJsObject = function getJsObject(){ return this.jsObject; } ; _.hashCode_0 = function hashCode_8(){ return $hashCode(this.jsObject); } ; var Lcom_google_gwt_xml_client_impl_DOMItem_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'DOMItem', 128); function $appendChild_0(this$static, newChild){ var appendChildResults, e, newChildJs; try { newChildJs = newChild.jsObject; appendChildResults = appendChild(this$static.jsObject, newChildJs); return build(appendChildResults); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 135)) { e = $e0; throw toJs(new DOMNodeException(e, this$static)); } else throw toJs($e0); } } function $removeChild_2(this$static, oldChild){ var e, oldChildJs, removeChildResults; try { oldChildJs = oldChild.jsObject; removeChildResults = removeChild(this$static.jsObject, oldChildJs); return build(removeChildResults); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 135)) { e = $e0; throw toJs(new DOMNodeException(e, this$static)); } else throw toJs($e0); } } function NodeImpl(jso){ DOMItem.call(this, jso); } function build(node){ var nodeType; if (!node) { return null; } nodeType = getNodeType(node); switch (nodeType) { case 2: return new AttrImpl(node); case 4: return new CDATASectionImpl(node); case 8: return new CommentImpl(node); case 11: return new DocumentFragmentImpl(node); case 9: return new DocumentImpl(node); case 1: return new ElementImpl(node); case 7: return new ProcessingInstructionImpl(node); case 3: return new TextImpl(node); default:return new NodeImpl(node); } } defineClass(199, 128, $intern_74, NodeImpl); _.toString_0 = function toString_13(){ return $clinit_XMLParserImpl() , $toStringImpl(this); } ; var Lcom_google_gwt_xml_client_impl_NodeImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'NodeImpl', 199); function AttrImpl(o){ NodeImpl.call(this, o); } defineClass(896, 199, $intern_74, AttrImpl); var Lcom_google_gwt_xml_client_impl_AttrImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'AttrImpl', 896); function CharacterDataImpl(o){ NodeImpl.call(this, o); } defineClass(368, 199, $intern_74); var Lcom_google_gwt_xml_client_impl_CharacterDataImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'CharacterDataImpl', 368); function TextImpl(o){ CharacterDataImpl.call(this, o); } defineClass(369, 368, $intern_75, TextImpl); _.toString_0 = function toString_14(){ var b, i, x_0; b = new StringBuilder; x_0 = $split_1(getData(this.jsObject), '(?=[;&<>\'"])', -1); for (i = 0; i < x_0.length; i++) { if ($startsWith(x_0[i], ';')) { b.string += ';'; $append_4(b, x_0[i].substr(1)); } else if ($startsWith(x_0[i], '&')) { b.string += '&'; $append_4(b, x_0[i].substr(1)); } else if ($startsWith(x_0[i], '"')) { b.string += '"'; $append_4(b, x_0[i].substr(1)); } else if ($startsWith(x_0[i], "'")) { b.string += '''; $append_4(b, x_0[i].substr(1)); } else if ($startsWith(x_0[i], '<')) { b.string += '<'; $append_4(b, x_0[i].substr(1)); } else if ($startsWith(x_0[i], '>')) { b.string += '>'; $append_4(b, x_0[i].substr(1)); } else { b.string += '' + x_0[i]; } } return b.string; } ; var Lcom_google_gwt_xml_client_impl_TextImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'TextImpl', 369); function CDATASectionImpl(o){ TextImpl.call(this, o); } defineClass(897, 369, $intern_75, CDATASectionImpl); _.toString_0 = function toString_15(){ var b; b = new StringBuilder_1(''; return b.string; } ; var Lcom_google_gwt_xml_client_impl_CDATASectionImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'CDATASectionImpl', 897); function CommentImpl(o){ CharacterDataImpl.call(this, o); } defineClass(898, 368, $intern_74, CommentImpl); _.toString_0 = function toString_16(){ var b; b = new StringBuilder_1(''; return b.string; } ; var Lcom_google_gwt_xml_client_impl_CommentImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'CommentImpl', 898); function DOMNodeException(e, item_0){ DOMException_0.call(this, 'Error during DOM manipulation of: ' + summarize(item_0.toString_0())); $initCause(this, e); } defineClass(204, 355, $intern_7, DOMNodeException); var Lcom_google_gwt_xml_client_impl_DOMNodeException_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'DOMNodeException', 204); function DOMParseException(contents, e){ DOMException_0.call(this, 'Failed to parse: ' + $substring_0(contents, 0, $wnd.Math.min(contents.length, 128))); $initCause(this, e); } function summarize(text_0){ return $substring_0(text_0, 0, $wnd.Math.min(text_0.length, 128)); } defineClass(826, 355, $intern_7, DOMParseException); var Lcom_google_gwt_xml_client_impl_DOMParseException_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'DOMParseException', 826); function DocumentFragmentImpl(o){ NodeImpl.call(this, o); } defineClass(899, 199, $intern_74, DocumentFragmentImpl); var Lcom_google_gwt_xml_client_impl_DocumentFragmentImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'DocumentFragmentImpl', 899); function $createElement(this$static, tagName){ var e; try { return build(createElement(this$static.jsObject, tagName)); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 135)) { e = $e0; throw toJs(new DOMNodeException(e, this$static)); } else throw toJs($e0); } } function $createTextNode(this$static, data_0){ var e; try { return build(createTextNode(this$static.jsObject, data_0)); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 135)) { e = $e0; throw toJs(new DOMNodeException(e, this$static)); } else throw toJs($e0); } } function $importNode(this$static, importedNode){ var e; try { return build(($clinit_XMLParserImpl() , $importNodeImpl(this$static.jsObject, importedNode.jsObject, true))); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 135)) { e = $e0; throw toJs(new DOMNodeException(e, this$static)); } else throw toJs($e0); } } function DocumentImpl(o){ NodeImpl.call(this, o); } defineClass(900, 199, {1013:1, 128:1}, DocumentImpl); var Lcom_google_gwt_xml_client_impl_DocumentImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'DocumentImpl', 900); function $getAttribute(this$static, tagName){ return getAttribute(this$static.jsObject, tagName); } function $removeAttribute(this$static){ var e; try { removeAttribute(this$static.jsObject, 'x'); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 135)) { e = $e0; throw toJs(new DOMNodeException(e, this$static)); } else throw toJs($e0); } } function $setAttribute_0(this$static, name_0, value_0){ var e; try { setAttribute(this$static.jsObject, name_0, value_0); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 135)) { e = $e0; throw toJs(new DOMNodeException(e, this$static)); } else throw toJs($e0); } } function ElementImpl(o){ NodeImpl.call(this, o); } defineClass(901, 199, {1014:1, 128:1}, ElementImpl); var Lcom_google_gwt_xml_client_impl_ElementImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'ElementImpl', 901); function $item(this$static, index_0){ return build(item_3(this$static.jsObject, index_0)); } function NodeListImpl(o){ DOMItem.call(this, o); } defineClass(170, 128, $intern_74, NodeListImpl); _.getLength = function getLength(){ return getLength_1(this.jsObject); } ; _.item_0 = function item_1(index_0){ return $item(this, index_0); } ; _.toString_0 = function toString_17(){ var b, i; b = new StringBuilder; for (i = 0; i < this.getLength(); i++) { $append_4(b, this.item_0(i).toString_0()); } return b.string; } ; var Lcom_google_gwt_xml_client_impl_NodeListImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'NodeListImpl', 170); function NamedNodeMapImpl(o){ NodeListImpl.call(this, o); } defineClass(452, 170, $intern_74, NamedNodeMapImpl); _.getLength = function getLength_0(){ return getLength_1(this.jsObject); } ; _.item_0 = function item_2(index_0){ return build(item_3(this.jsObject, index_0)); } ; var Lcom_google_gwt_xml_client_impl_NamedNodeMapImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'NamedNodeMapImpl', 452); function ProcessingInstructionImpl(o){ NodeImpl.call(this, o); } defineClass(902, 199, $intern_74, ProcessingInstructionImpl); _.toString_0 = function toString_18(){ return $clinit_XMLParserImpl() , $toStringImpl(this); } ; var Lcom_google_gwt_xml_client_impl_ProcessingInstructionImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'ProcessingInstructionImpl', 902); function $clinit_XMLParserImpl(){ $clinit_XMLParserImpl = emptyMethod; impl_2 = new XMLParserImplStandard; } function $parse_2(this$static, contents){ var e; try { return build($parseImpl(this$static, contents)); } catch ($e0) { $e0 = toJava($e0); if (instanceOf($e0, 135)) { e = $e0; throw toJs(new DOMParseException(contents, e)); } else throw toJs($e0); } } function appendChild(jsObject, newChildJs){ $clinit_XMLParserImpl(); return jsObject.appendChild(newChildJs); } function createElement(jsObject, tagName){ $clinit_XMLParserImpl(); return jsObject.createElement(tagName); } function createTextNode(jsObject, data_0){ $clinit_XMLParserImpl(); return jsObject.createTextNode(data_0); } function getAttribute(o, name_0){ $clinit_XMLParserImpl(); return o.getAttribute(name_0); } function getAttributes(t){ $clinit_XMLParserImpl(); return t.attributes; } function getChildNodes(t){ $clinit_XMLParserImpl(); return t.childNodes; } function getData(o){ $clinit_XMLParserImpl(); return o.data; } function getDocumentElement(o){ $clinit_XMLParserImpl(); return o.documentElement; } function getLength_1(o){ $clinit_XMLParserImpl(); return o.length; } function getNextSibling(o){ $clinit_XMLParserImpl(); return o.nextSibling; } function getNodeName(o){ $clinit_XMLParserImpl(); return o.nodeName; } function getNodeType(jsObject){ $clinit_XMLParserImpl(); var out = jsObject.nodeType; return out == null?-1:out; } function getNodeValue(o){ $clinit_XMLParserImpl(); return o.nodeValue; } function getTagName(o){ $clinit_XMLParserImpl(); return o.tagName; } function hasChildNodes(jsObject){ $clinit_XMLParserImpl(); return jsObject.hasChildNodes(); } function item_3(t, index_0){ $clinit_XMLParserImpl(); if (index_0 >= t.length) { return null; } return t.item(index_0); } function removeAttribute(jsObject, name_0){ $clinit_XMLParserImpl(); jsObject.removeAttribute(name_0); } function removeChild(jsObject, oldChildJs){ $clinit_XMLParserImpl(); return jsObject.removeChild(oldChildJs); } function setAttribute(jsObject, name_0, value_0){ $clinit_XMLParserImpl(); jsObject.setAttribute(name_0, value_0); } defineClass(990, 1, {}); var impl_2; var Lcom_google_gwt_xml_client_impl_XMLParserImpl_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'XMLParserImpl', 990); function $createDocumentImpl(){ return document.implementation.createDocument('', '', null); } function $importNodeImpl(jsObject, importedNode, deep){ return jsObject.importNode(importedNode, deep); } function $parseImpl(this$static, contents){ var domParser = this$static.domParser; var result = domParser.parseFromString(contents, 'text/xml'); var roottag = result.documentElement; if (roottag.tagName == 'parsererror' && roottag.namespaceURI == 'http://www.mozilla.org/newlayout/xml/parsererror.xml') { throw new Error(roottag.firstChild.data); } return result; } function $toStringImpl(node){ var jsNode = node.getJsObject(); return (new XMLSerializer).serializeToString(jsNode); } function XMLParserImplStandard(){ this.domParser = new DOMParser; } defineClass(825, 990, {}, XMLParserImplStandard); var Lcom_google_gwt_xml_client_impl_XMLParserImplStandard_2_classLit = createForClass('com.google.gwt.xml.client.impl', 'XMLParserImplStandard', 825); 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(488, 1, {}, SimpleEventBus$1); var Lcom_google_web_bindery_event_shared_SimpleEventBus$1_2_classLit = createForClass('com.google.web.bindery.event.shared', 'SimpleEventBus/1', 488); 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(489, 1, {998:1}, SimpleEventBus$2); _.execute_1 = function execute_12(){ $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', 489); 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(490, 1, {998:1}, SimpleEventBus$3); _.execute_1 = function execute_13(){ $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', 490); function $$init_0(this$static){ } function $addCurCount(c, a){ if (c == 100 || c == -100) return c; return c + a; } function $addJSMethods(this$static){ var that = this$static; this$static.getType = $entry(function(){ return that.getClassName(); } ); this$static.getInfo = $entry(function(){ return that.getInfoJS(); } ); this$static.getVoltageDiff = $entry(function(){ return that.getVoltageDiff_0(); } ); this$static.getVoltage = $entry(function(n){ return that.getVoltageJS(n); } ); this$static.getCurrent = $entry(function(){ return that.getCurrent_0(); } ); this$static.getLabelName = $entry(function(){ return that.getName(); } ); this$static.getPostCount = $entry(function(){ return that.getPostCount_0(); } ); } function $addRoutingObstacleWithLeads(this$static, router, width_0){ var pa, pb; if (this$static.x_0 == this$static.x2 || this$static.y_0 == this$static.y2) { $addWire(router, this$static.x_0, this$static.y_0, this$static.x2, this$static.y2); pa = $interpPoint_0(this$static.lead1, this$static.lead2, 0, width_0); pb = $interpPoint_0(this$static.lead1, this$static.lead2, 1, -width_0); $addObstacle(router, pa.x_0, pa.y_0, pb.x_0, pb.y_0); } } function $adjustBbox(this$static, x1, y1, x2, y2){ var q; if (x1 > x2) { q = x1; x1 = x2; x2 = q; } if (y1 > y2) { q = y1; y1 = y2; y2 = q; } x1 = min_1(this$static.boundingBox.x_0, x1); y1 = min_1(this$static.boundingBox.y_0, y1); x2 = max_1(this$static.boundingBox.x_0 + this$static.boundingBox.width_0, x2); y2 = max_1(this$static.boundingBox.y_0 + this$static.boundingBox.height_0, y2); $setBounds(this$static.boundingBox, x1, y1, x2 - x1, y2 - y1); } function $adjustBbox_0(this$static, p1, p2){ $adjustBbox(this$static, p1.x_0, p1.y_0, p2.x_0, p2.y_0); } function $adjustLeadsToGrid(this$static, flipX, flipY){ var adjx, adjy, cx, cy, roundx, roundy; cx = (this$static.point1.x_0 + this$static.point2.x_0) / 2 | 0; cy = (this$static.point1.y_0 + this$static.point2.y_0) / 2 | 0; roundx = flipX?1:-1; roundy = flipY?1:-1; adjx = $snapGrid_0(app_0, cx + roundx) - cx; adjy = $snapGrid_0(app_0, cy + roundy) - cy; $move_0(this$static.lead1, adjx, adjy); $move_0(this$static.lead2, adjx, adjy); } function $allocNodes(this$static){ var n; n = this$static.getPostCount_0() + this$static.getInternalNodeCount(); if (this$static.nodes == null || this$static.nodes.length != n) { this$static.nodes = initUnidimensionalArray(Lcom_lushprojects_circuitjs1_client_CircuitNode_2_classLit, $intern_3, 175, n, 0, 1); this$static.volts = initUnidimensionalArray(D_classLit, $intern_76, 7, n, 15, 1); } } function $allowMove(this$static, dx, dy){ var ce, ce$iterator, nx, nx2, ny, ny2; nx = this$static.x_0 + dx; ny = this$static.y_0 + dy; nx2 = this$static.x2 + dx; ny2 = this$static.y2 + dy; for (ce$iterator = new ArrayList$1(app_0.elmList.arrayList); ce$iterator.i < ce$iterator.this$01.array.length;) { ce = $next_4(ce$iterator); if (ce.x_0 == nx && ce.y_0 == ny && ce.x2 == nx2 && ce.y2 == ny2) return false; if (ce.x_0 == nx2 && ce.y_0 == ny2 && ce.x2 == nx && ce.y2 == ny) return false; } return true; } function $calcArrow(a, b, al, aw){ var adx, ady, l_0, p1, p2, poly; poly = new Polygon; p1 = new Point_1; p2 = new Point_1; adx = b.x_0 - a.x_0; ady = b.y_0 - a.y_0; l_0 = $wnd.Math.sqrt(adx * adx + ady * ady); $addPoint(poly, b.x_0, b.y_0); $interpPoint2(a, b, p1, p2, 1 - al / l_0, aw); $addPoint(poly, p1.x_0, p1.y_0); $addPoint(poly, p2.x_0, p2.y_0); return poly; } function $calcLeads(this$static, len){ if (this$static.dn < len || len == 0) { this$static.lead1 = this$static.point1; this$static.lead2 = this$static.point2; return; } this$static.lead1 = $interpPoint(this$static.point1, this$static.point2, (this$static.dn - len) / (2 * this$static.dn)); this$static.lead2 = $interpPoint(this$static.point1, this$static.point2, (this$static.dn + len) / (2 * this$static.dn)); } function $comparePair(x1, x2, y1, y2){ return x1 == y1 && x2 == y2 || x1 == y2 && x2 == y1; } function $createPolygon(a, b, c){ var p; p = new Polygon; $addPoint(p, a.x_0, a.y_0); $addPoint(p, b.x_0, b.y_0); $addPoint(p, c.x_0, c.y_0); return p; } function $createPolygon_0(a, b, c, d){ var p; p = new Polygon; $addPoint(p, a.x_0, a.y_0); $addPoint(p, b.x_0, b.y_0); $addPoint(p, c.x_0, c.y_0); $addPoint(p, d.x_0, d.y_0); return p; } function $createPolygon_1(a){ var i, p; p = new Polygon; for (i = 0; i != a.length; i++) $addPoint(p, a[i].x_0, a[i].y_0); return p; } function $drag(this$static, xx, yy){ xx = $snapGrid_0(app_0, xx); yy = $snapGrid_0(app_0, yy); this$static.noDiagonal && ($wnd.Math.abs(this$static.x_0 - xx) < $wnd.Math.abs(this$static.y_0 - yy)?(xx = this$static.x_0):(yy = this$static.y_0)); this$static.x2 = xx; this$static.y2 = yy; this$static.setPoints(); } function $dragPlace(this$static, xa, ya, vertical){ var len; vertical = this$static.getDragVertical(vertical); len = this$static.getDragLength(); this$static.x_0 = xa; this$static.y_0 = ya; this$static.x2 = xa + (vertical?0:len); this$static.y2 = ya + (vertical?len:0); this$static.setPoints(); } function $draw2Leads(this$static, g){ $setVoltageColor(this$static, g, this$static.volts[0]); drawThickLine_0(g, this$static.point1, this$static.lead1, 3); $setVoltageColor(this$static, g, this$static.volts[1]); drawThickLine_0(g, this$static.lead2, this$static.point2, 3); } function $drawCenteredText(this$static, g, s, x_0, y_0, cx){ var h2, w; w = round_int($measureText(g.context, s).width); h2 = g.currentFontSize / 2 | 0; g.context.save(); g.savedFontSize = g.currentFontSize; g.context.textBaseline = 'middle'; if (cx) { g.context.textAlign = 'center'; $adjustBbox(this$static, x_0 - (w / 2 | 0), y_0 - h2, x_0 + (w / 2 | 0), y_0 + h2); } else { $adjustBbox(this$static, x_0, y_0 - h2, x_0 + w, y_0 + h2); } cx && (g.context.textAlign = 'center' , undefined); $fillText(g.context, s, x_0, y_0); g.context.restore(); g.currentFontSize = g.savedFontSize; } function $drawCoil(this$static, g, hs, p1, p2, v1, v2){ var grad, len, loop, loopCt, start_0; len = distance(p1, p2); g.context.save(); g.savedFontSize = g.currentFontSize; g.context.lineWidth = 3; $transform(g.context, (p2.x_0 - p1.x_0) / len, (p2.y_0 - p1.y_0) / len, -(p2.y_0 - p1.y_0) / len, (p2.x_0 - p1.x_0) / len, p1.x_0, p1.y_0); if (app_0.menus.voltsCheckItem.on) { grad = $createLinearGradient(g.context, 0, 0, len, 0); $addColorStop(grad, 0, $getHexValue($getVoltageColor(this$static, v1))); $addColorStop(grad, 1, $getHexValue($getVoltageColor(this$static, v2))); $setStrokeStyleWeb(g.context, grad); } $setLineCap(g.context, ($clinit_Context2d$LineCap() , ROUND).value_0); $scale(g.context, 1, hs > 0?1:-1); loopCt = round_int($wnd.Math.ceil(len / 11)); for (loop = 0; loop != loopCt; loop++) { g.context.beginPath(); start_0 = len * loop / loopCt; $moveTo(g.context, start_0, 0); $arc(g.context, len * (loop + 0.5) / loopCt, 0, len / (2 * loopCt), $intern_1, $intern_2); $lineTo(g.context, len * (loop + 1) / loopCt, 0); g.context.stroke(); } g.context.restore(); g.currentFontSize = g.savedFontSize; } function $drawDots(g, pa, pb, pos){ var ctx, di, dn, dx, dy, x0, y0; if (!app_0.ui.app.simRunning || pos == 0 || !app_0.menus.dotsCheckItem.on) return; dx = pb.x_0 - pa.x_0; dy = pb.y_0 - pa.y_0; dn = $wnd.Math.sqrt(dx * dx + dy * dy); $setColor_0(g, currentColor_0); if (pos == 100 || pos == -100) { g.context.save(); g.savedFontSize = g.currentFontSize; ctx = g.context; ctx.lineWidth = 4; ctx.globalAlpha = 0.5; ctx.beginPath(); $moveTo(ctx, pa.x_0, pa.y_0); $lineTo(ctx, pb.x_0, pb.y_0); ctx.stroke(); g.context.restore(); g.currentFontSize = g.savedFontSize; pos = Math.random() * 16; } pos %= 16; pos < 0 && (pos += 16); for (di = pos; di < dn; di += 16) { x0 = round_int(pa.x_0 + di * dx / dn); y0 = round_int(pa.y_0 + di * dy / dn); $fillRect(g.context, x0 - 2, y0 - 2, 4, 4); } } function $drawHandles(this$static, g, c){ if (this$static.getNumHandles() == 0) return; $setColor_0(g, c); this$static.lastHandleGrabbed == -1?$fillRect_0(g, this$static.x_0 - 3, this$static.y_0 - 3, 7, 7):this$static.lastHandleGrabbed == 0 && $fillRect_0(g, this$static.x_0 - 4, this$static.y_0 - 4, 9, 9); this$static.getNumHandles() > 1 && (this$static.lastHandleGrabbed == -1?$fillRect_0(g, this$static.x2 - 3, this$static.y2 - 3, 7, 7):this$static.lastHandleGrabbed == 1 && $fillRect_0(g, this$static.x2 - 4, this$static.y2 - 4, 9, 9)); } function $drawLabeledNode(this$static, g, str, pt1, pt2){ var h, lineOver, w, x_0, y_0, ya; g.context.save(); g.savedFontSize = g.currentFontSize; $setFont_0(g, valueFont); lineOver = false; if ($equals_1(str.substr(0, 1), '/')) { lineOver = true; str = str.substr(1); } w = round_int($measureText(g.context, str).width); h = g.currentFontSize; g.context.textBaseline = 'middle'; x_0 = pt2.x_0; y_0 = pt2.y_0; if (pt1.y_0 != pt2.y_0) { x_0 -= w / 2 | 0; y_0 += sign_0(pt2.y_0 - pt1.y_0) * h; } else { pt2.x_0 > pt1.x_0?(x_0 += 4):(x_0 -= 4 + w); } $fillText(g.context, str, x_0, y_0); $adjustBbox(this$static, x_0, y_0 - (h / 2 | 0), x_0 + w, y_0 + (h / 2 | 0)); g.context.restore(); g.currentFontSize = g.savedFontSize; if (lineOver) { ya = y_0 - (h / 2 | 0) - 1; $drawLine(g, x_0, ya, x_0 + w, ya); } } function $drawPosts(this$static, g){ var i, p; if (app_0.mouse.dragElm != this$static && !(mouseElmRef == this$static || this$static.selected_0 || $containsKey(app_0.mouse.scopePlotRoles, this$static) || instanceOf(mouseElmRef, 21) && $getElm_0(mouseElmRef.elmScope) == this$static || $isOnHighlightedNet(this$static))) return; if (app_0.mouse.mouseMode == 2 || app_0.mouse.mouseMode == 3) return; for (i = 0; i != this$static.getPostCount_0(); i++) { p = this$static.getPost(i); $setColor_0(g, whiteColor); $fillOval(g, p.x_0 - 3, p.y_0 - 3, 7); } $drawScopeTerminalLabels(this$static, g); } function $drawScopeTerminalLabels(this$static, g){ var mp, pp, swap; if (this$static.getPostCount_0() != 2) return; if (!$containsKey(app_0.mouse.scopePlotRoles, this$static)) return; if (this$static.dn == 0) return; $setColor_0(g, selectColor_0); $setFont_0(g, unitsFont); g.context.save(); g.savedFontSize = g.currentFontSize; g.context.textBaseline = 'middle'; g.context.textAlign = 'center'; swap = instanceOf(this$static, 56); pp = $interpPoint_0(this$static.point1, this$static.point2, 10 / this$static.dn, 8); $drawString(g, swap?'\u2212':'+', pp.x_0, pp.y_0); mp = $interpPoint_0(this$static.point1, this$static.point2, 1 - 10 / this$static.dn, 8); $drawString(g, swap?'+':'\u2212', mp.x_0, mp.y_0); g.context.restore(); g.currentFontSize = g.savedFontSize; } function $drawValues(this$static, g, s, hs){ var dpx, dpy, w, xc, xx, ya, yc; if (s == null) return; g.context.save(); g.savedFontSize = g.currentFontSize; $setFont_0(g, valueFont); w = round_int($measureText(g.context, s).width); $setColor_0(g, whiteColor); ya = g.currentFontSize / 2 | 0; if (instanceOf(this$static, 47) || instanceOf(this$static, 272)) { xc = this$static.x2; yc = this$static.y2; } else { xc = (this$static.x2 + this$static.x_0) / 2 | 0; yc = (this$static.y2 + this$static.y_0) / 2 | 0; } dpx = round_int(this$static.dpx1 * hs); dpy = round_int(this$static.dpy1 * hs); if (dpx == 0) $fillText(g.context, s, xc - (w / 2 | 0), yc - (dpy < 0?-dpy:dpy) - 2); else { xx = xc + (dpx < 0?-dpx:dpx) + 2; (instanceOf(this$static, 56) || this$static.x_0 < this$static.x2 && this$static.y_0 > this$static.y2) && (xx = xc - (w + (dpx < 0?-dpx:dpx) + 2)); $fillText(g.context, s, xx, yc + dpy + ya); } g.context.restore(); g.currentFontSize = g.savedFontSize; } function $flipPosts(this$static){ var oldx, oldy; oldx = this$static.x_0; oldy = this$static.y_0; this$static.x_0 = this$static.x2; this$static.y_0 = this$static.y2; this$static.x2 = oldx; this$static.y2 = oldy; this$static.setPoints(); } function $flipX(this$static, center2){ this$static.x_0 = center2 - this$static.x_0; this$static.x2 = center2 - this$static.x2; this$static.initBoundingBox(); this$static.setPoints(); } function $flipXY(this$static, xmy){ var nx, nx2, ny, ny2; nx = this$static.y_0 + xmy; ny = this$static.x_0 - xmy; nx2 = this$static.y2 + xmy; ny2 = this$static.x2 - xmy; this$static.x_0 = nx; this$static.y_0 = ny; this$static.x2 = nx2; this$static.y2 = ny2; this$static.initBoundingBox(); this$static.setPoints(); } function $flipY(this$static, center2){ this$static.y_0 = center2 - this$static.y_0; this$static.y2 = center2 - this$static.y2; this$static.initBoundingBox(); this$static.setPoints(); } function $getBasicInfo(this$static, arr){ arr[1] = 'I = ' + getUnitText($wnd.Math.abs(this$static.getCurrent_0()), 'A', false); arr[2] = 'Vd = ' + getUnitText($wnd.Math.abs(this$static.getVoltageDiff_0()), 'V', false); return 3; } function $getHandleGrabbedClose(this$static, xtest, ytest, minSize){ this$static.lastHandleGrabbed = -1; distanceSq(this$static.x_0, this$static.y_0, this$static.x2, this$static.y2) >= minSize && (distanceSq(this$static.x_0, this$static.y_0, xtest, ytest) <= 25?(this$static.lastHandleGrabbed = 0):this$static.getNumHandles() > 1 && distanceSq(this$static.x2, this$static.y2, xtest, ytest) <= 25 && (this$static.lastHandleGrabbed = 1)); return this$static.lastHandleGrabbed; } function $getLeadPost(this$static, px, py){ if (!!this$static.lead1 && this$static.lead1 != this$static.point1 && pointOnSegmentInterior(this$static.point1.x_0, this$static.point1.y_0, this$static.lead1.x_0, this$static.lead1.y_0, px, py)) return 0; if (!!this$static.lead2 && this$static.lead2 != this$static.point2 && pointOnSegmentInterior(this$static.lead2.x_0, this$static.lead2.y_0, this$static.point2.x_0, this$static.point2.y_0, px, py)) return 1; if (!this$static.lead1 && this$static.getPostCount_0() == 1 && pointOnSegmentInterior(this$static.point1.x_0, this$static.point1.y_0, this$static.point2.x_0, this$static.point2.y_0, px, py)) return 0; return -1; } function $getNode(this$static, n){ return this$static.nodes[n]; } function $getNodeAtPoint(this$static, pt){ var i; for (i = 0; i != this$static.getPostCount_0(); i++) { if ($equals(this$static.getPost(i), pt)) return i; } return 0; } function $getNodeCount(this$static){ return this$static.getPostCount_0() + this$static.getInternalNodeCount(); } function $getPost(this$static, n){ return n == 0?this$static.point1:n == 1?this$static.point2:null; } function $getPostVoltage(this$static, x_0){ return this$static.volts[x_0]; } function $getSchmittPolygon(this$static, gsize, ctr){ var h1, h2, hs, len, pts; pts = $newPointArray(6); hs = 3 * gsize; h1 = 3 * gsize; h2 = h1 * 2; len = distance(this$static.lead1, this$static.lead2); pts[0] = $interpPoint_0(this$static.lead1, this$static.lead2, ctr - h2 / len, hs); pts[1] = $interpPoint_0(this$static.lead1, this$static.lead2, ctr + h1 / len, hs); pts[2] = $interpPoint_0(this$static.lead1, this$static.lead2, ctr + h1 / len, -hs); pts[3] = $interpPoint_0(this$static.lead1, this$static.lead2, ctr + h2 / len, -hs); pts[4] = $interpPoint_0(this$static.lead1, this$static.lead2, ctr - h1 / len, -hs); pts[5] = $interpPoint_0(this$static.lead1, this$static.lead2, ctr - h1 / len, hs); return $createPolygon_1(pts); } function $getVoltageColor(this$static, volts){ var c; if (mouseElmRef == this$static || this$static.selected_0 || $containsKey(app_0.mouse.scopePlotRoles, this$static) || instanceOf(mouseElmRef, 21) && $getElm_0(mouseElmRef.elmScope) == this$static || $isOnHighlightedNet(this$static)) { return selectColor_0; } if (!app_0.menus.voltsCheckItem.on) { return whiteColor; } isNaN(volts) && (volts = 0); c = round_int((volts + voltageRange) * (colorScaleCount - 1) / (voltageRange * 2)); c < 0 && (c = 0); c >= colorScaleCount && (c = colorScaleCount - 1); return colorScale[c]; } function $interpPoint(a, b, f){ var p; p = new Point_1; p.x_0 = round_int($wnd.Math.floor(a.x_0 * (1 - f) + b.x_0 * f + $intern_77)); p.y_0 = round_int($wnd.Math.floor(a.y_0 * (1 - f) + b.y_0 * f + $intern_77)); return p; } function $interpPoint_0(a, b, f, g){ var p; p = new Point_1; $interpPoint_2(a, b, p, f, g); return p; } function $interpPoint_1(a, b, c, f){ c.x_0 = round_int($wnd.Math.floor(a.x_0 * (1 - f) + b.x_0 * f + $intern_77)); c.y_0 = round_int($wnd.Math.floor(a.y_0 * (1 - f) + b.y_0 * f + $intern_77)); } function $interpPoint_2(a, b, c, f, g){ var gx, gy; gx = b.y_0 - a.y_0; gy = a.x_0 - b.x_0; g /= $wnd.Math.sqrt(gx * gx + gy * gy); c.x_0 = round_int($wnd.Math.floor(a.x_0 * (1 - f) + b.x_0 * f + g * gx + $intern_77)); c.y_0 = round_int($wnd.Math.floor(a.y_0 * (1 - f) + b.y_0 * f + g * gy + $intern_77)); } function $interpPoint2(a, b, c, d, f, g){ var gx, gy; gx = b.y_0 - a.y_0; gy = a.x_0 - b.x_0; g /= $wnd.Math.sqrt(gx * gx + gy * gy); c.x_0 = round_int($wnd.Math.floor(a.x_0 * (1 - f) + b.x_0 * f + g * gx + $intern_77)); c.y_0 = round_int($wnd.Math.floor(a.y_0 * (1 - f) + b.y_0 * f + g * gy + $intern_77)); d.x_0 = round_int($wnd.Math.floor(a.x_0 * (1 - f) + b.x_0 * f - g * gx + $intern_77)); d.y_0 = round_int($wnd.Math.floor(a.y_0 * (1 - f) + b.y_0 * f - g * gy + $intern_77)); } function $isMouseElm(this$static){ return mouseElmRef == this$static; } function $isOnHighlightedNet(this$static){ var i; if (!app_0.mouse.highlightedNode) return false; for (i = 0; i != this$static.getPostCount_0(); i++) if (this$static.nodes[i] == app_0.mouse.highlightedNode) return true; return false; } function $lineDistanceSq(xa, ya, xb, yb, gx, gy){ var dbot, dtop; dtop = (yb - ya) * gx - (xb - xa) * gy + xb * ya - yb * xa; dbot = (yb - ya) * (yb - ya) + (xb - xa) * (xb - xa); return dtop * dtop / dbot | 0; } function $move(this$static, dx, dy){ this$static.x_0 += dx; this$static.y_0 += dy; this$static.x2 += dx; this$static.y2 += dy; $translate_0(this$static.boundingBox, dx, dy); this$static.setPoints(); } function $movePoint(this$static, n, dx, dy){ var oldx, oldx2, oldy, oldy2; oldx = this$static.x_0; oldy = this$static.y_0; oldx2 = this$static.x2; oldy2 = this$static.y2; this$static.noDiagonal && (this$static.x_0 == this$static.x2?(dx = 0):(dy = 0)); if (n == 0) { this$static.x_0 += dx; this$static.y_0 += dy; } else { this$static.x2 += dx; this$static.y2 += dy; } if (this$static.x_0 == this$static.x2 && this$static.y_0 == this$static.y2) { this$static.x_0 = oldx; this$static.y_0 = oldy; this$static.x2 = oldx2; this$static.y2 = oldy2; } this$static.setPoints(); } function $needsHighlight(this$static){ return mouseElmRef == this$static || this$static.selected_0 || $containsKey(app_0.mouse.scopePlotRoles, this$static) || instanceOf(mouseElmRef, 21) && $getElm_0(mouseElmRef.elmScope) == this$static || $isOnHighlightedNet(this$static); } function $newPointArray(n){ var a; a = initUnidimensionalArray(Lcom_lushprojects_circuitjs1_client_Point_2_classLit, $intern_78, 14, n, 0, 1); while (n > 0) a[--n] = new Point_1; return a; } function $reset(this$static){ var i; for (i = 0; i != this$static.getPostCount_0() + this$static.getInternalNodeCount(); i++) this$static.volts[i] = 0; this$static.curcount_0 = 0; } function $setBbox(this$static, x1, y1, x2, y2){ var q; if (x1 > x2) { q = x1; x1 = x2; x2 = q; } if (y1 > y2) { q = y1; y1 = y2; y2 = q; } $setBounds(this$static.boundingBox, x1, y1, x2 - x1 + 1, y2 - y1 + 1); } function $setBbox_0(this$static, p1, p2, w){ var dpx, dpy; $setBbox(this$static, p1.x_0, p1.y_0, p2.x_0, p2.y_0); dpx = round_int(this$static.dpx1 * w); dpy = round_int(this$static.dpy1 * w); $adjustBbox(this$static, p1.x_0 + dpx, p1.y_0 + dpy, p1.x_0 - dpx, p1.y_0 - dpy); } function $setPoints(this$static){ this$static.dx = this$static.x2 - this$static.x_0; this$static.dy = this$static.y2 - this$static.y_0; this$static.dn = $wnd.Math.sqrt(this$static.dx * this$static.dx + this$static.dy * this$static.dy); this$static.dpx1 = this$static.dy / this$static.dn; this$static.dpy1 = -this$static.dx / this$static.dn; this$static.dsign = this$static.dy == 0?sign_0(this$static.dx):sign_0(this$static.dy); this$static.point1 = new Point_2(this$static.x_0, this$static.y_0); this$static.point2 = new Point_2(this$static.x2, this$static.y2); } function $setPosition_0(this$static, x_, y_, x2_, y2_){ this$static.x_0 = x_; this$static.y_0 = y_; this$static.x2 = x2_; this$static.y2 = y2_; this$static.initBoundingBox(); this$static.setPoints(); } function $setPositionFromXml(this$static, elem){ var x_0, xs; x_0 = getAttribute(elem.jsObject, 'x'); if (x_0 == null) return; xs = $split_1(x_0, ' ', 0); $setPosition_0(this$static, __parseAndValidateInt(xs[0], 10), __parseAndValidateInt(xs[1], 10), __parseAndValidateInt(xs[2], 10), __parseAndValidateInt(xs[3], 10)); } function $setPowerColor(this$static, g, w0){ var i; if (!app_0.menus.powerCheckItem.on) return; if (mouseElmRef == this$static || this$static.selected_0 || $containsKey(app_0.mouse.scopePlotRoles, this$static) || instanceOf(mouseElmRef, 21) && $getElm_0(mouseElmRef.elmScope) == this$static || $isOnHighlightedNet(this$static)) { $setColor_0(g, selectColor_0); return; } w0 *= powerMult; i = round_int((colorScaleCount / 2 | 0) + (colorScaleCount / 2 | 0) * -w0); i < 0 && (i = 0); i >= colorScaleCount && (i = colorScaleCount - 1); $setColor_0(g, colorScale[i]); } function $setPowerColor_0(this$static, g){ if (!app_0.menus.powerCheckItem.on) return; $setPowerColor(this$static, g, this$static.getPower()); } function $setSelected(this$static, x_0){ this$static.selected_0 = x_0; } function $setVoltageColor(this$static, g, volts){ $setColor_0(g, $getVoltageColor(this$static, volts)); } function $snapGrid(z_0){ return $snapGrid_0(app_0, z_0); } function $swapDragEndpoints(this$static){ var tx, ty; tx = this$static.x_0; ty = this$static.y_0; this$static.x_0 = this$static.x2; this$static.y_0 = this$static.y2; this$static.x2 = tx; this$static.y2 = ty; this$static.setPoints(); } function $updateDotCount(cur, cc){ var cadd; if (!app_0.ui.app.simRunning) return cc; cadd = cur * currentMult_0; if (cadd > 6 || cadd < -6) return 100; cc == 100 && (cc = 0); cadd %= 8; return cc + cadd; } function $validateRailNode(this$static, n){ var fpi; fpi = new FindPathInfo(2, this$static, this$static.nodes[n], sim_0); if ($findPath(fpi, ground)) { $stop(sim_0, 'Path to ground with no resistance!', this$static); return false; } return true; } function CircuitElm(xx, yy){ $$init_0(this); this.x_0 = this.x2 = xx; this.y_0 = this.y2 = yy; this.flags = this.getDefaultFlags(); $allocNodes(this); this.initBoundingBox(); } function CircuitElm_0(xa, ya, xb, yb, f){ $$init_0(this); this.x_0 = xa; this.y_0 = ya; this.x2 = xb; this.y2 = yb; this.flags = f; $allocNodes(this); this.initBoundingBox(); } function abs_0(x_0){ return x_0 < 0?-x_0:x_0; } function distance(p1, p2){ var x_0, y_0; x_0 = p1.x_0 - p2.x_0; y_0 = p1.y_0 - p2.y_0; return $wnd.Math.sqrt(x_0 * x_0 + y_0 * y_0); } function drawPolygon(g, p){ $drawPolyline(g, p.xpoints, p.ypoints, p.npoints); } function drawPost(g, pt){ $setColor_0(g, whiteColor); $fillOval(g, pt.x_0 - 3, pt.y_0 - 3, 7); } function drawThickCircle(g, cx, cy, ri){ g.context.lineWidth = 3; g.context.beginPath(); $arc(g.context, cx, cy, ri * 0.98, 0, $intern_2); g.context.stroke(); g.context.lineWidth = 1; } function drawThickLine(g, x_0, y_0, x2, y2){ g.context.lineWidth = 3; $drawLine(g, x_0, y_0, x2, y2); g.context.lineWidth = 1; } function drawThickLine_0(g, pa, pb, width_0){ $setLineWidth(g.context, width_0); $drawLine(g, pa.x_0, pa.y_0, pb.x_0, pb.y_0); g.context.lineWidth = 1; } function drawThickPolygon(g, p){ drawThickPolygon_0(g, p.xpoints, p.ypoints, p.npoints); } function drawThickPolygon_0(g, xs, ys, c){ g.context.lineWidth = 3; $drawPolyline(g, xs, ys, c); g.context.lineWidth = 1; } function getTimeText(v){ var h, m; if (v >= 60) { h = $wnd.Math.floor(v / 3600); v -= 3600 * h; m = $wnd.Math.floor(v / 60); v -= 60 * m; if (h == 0) return m + ':' + (v >= 10?'':'0') + $format_0(showFormat, v); return h + ':' + (m >= 10?'':'0') + m + ':' + (v >= 10?'':'0') + $format_0(showFormat, v); } return getUnitText(v, 's', false); } function getUnitText(v, u, sf){ var sp, va; sp = sf?'':' '; va = $wnd.Math.abs(v); if (va < $intern_79) return '0' + sp + u; if (va < $intern_80) return $format_0(sf?shortFormat:showFormat, v * $intern_81) + sp + 'p' + u; if (va < $intern_82) return $format_0(sf?shortFormat:showFormat, v * $intern_32) + sp + 'n' + u; if (va < $intern_83) return $format_0(sf?shortFormat:showFormat, v * $intern_84) + sp + muString + u; if (va < 1) return $format_0(sf?shortFormat:showFormat, v * $intern_22) + sp + 'm' + u; if (va < $intern_22) return $format_0(sf?shortFormat:showFormat, v) + sp + u; if (va < $intern_84) return $format_0(sf?shortFormat:showFormat, v * $intern_83) + sp + 'k' + u; if (va < $intern_32) return $format_0(sf?shortFormat:showFormat, v * $intern_82) + sp + 'M' + u; if (va < $intern_81) return $format_0(sf?shortFormat:showFormat, v * $intern_80) + sp + 'G' + u; return $format_0(($clinit_NumberFormat() , new NumberFormat_0('#.##E000', $getDefaultNative())), v) + sp + u; } function getUnitTextWithScale(val, utext, scale, fixed_0){ var nf; if ($wnd.Math.abs(val) > $intern_81) return getUnitText(val, utext, false); nf = fixed_0?fixedFormat:showFormat; if (scale == 1) return $format_0(nf, val) + ' ' + utext; if (scale == 2) return $format_0(nf, $intern_22 * val) + ' m' + utext; if (scale == 3) return $format_0(nf, $intern_84 * val) + ' ' + muString + utext; return getUnitText(val, utext, false); } function initClass(app_, sim_){ var s1, s2, sf, stor; sim_0 = sim_; app_0 = app_; colorScale = initUnidimensionalArray(Lcom_lushprojects_circuitjs1_client_Color_2_classLit, $intern_3, 43, colorScaleCount, 0, 1); ps1 = new Point_1; ps2 = new Point_1; stor = (!localStorage_0 && ($clinit_Storage$StorageSupportDetector() , localStorageSupported) && (localStorage_0 = new Storage_0('localStorage')) , localStorage_0); decimalDigits = 3; shortDecimalDigits = 1; if (stor) { s1 = $getItem_0(stor.storage, 'decimalDigits'); s2 = $getItem_0(stor.storage, 'decimalDigitsShort'); s1 != null && (decimalDigits = __parseAndValidateInt(s1, 10)); s2 != null && (shortDecimalDigits = __parseAndValidateInt(s2, 10)); sf = $getItem_0(stor.storage, 'valueFontSize'); sf != null && (valueFontSize = __parseAndValidateInt(sf, 10)); } setDecimalDigits(decimalDigits, false, false); setDecimalDigits(shortDecimalDigits, true, false); unitsFont = new Font('SansSerif', 0, 12); valueFont = new Font('SansSerif', 0, valueFontSize); } function max_1(a, b){ return a > b?a:b; } function min_1(a, b){ return a < b?a:b; } function pointOnSegmentInterior(ax, ay, bx, by, px, py){ var maxx, maxy, minx, miny; if (px == ax && py == ay || px == bx && py == by) return false; if (ax == bx && px == ax) { miny = $wnd.Math.min(ay, by); maxy = $wnd.Math.max(ay, by); return py > miny && py < maxy; } else if (ay == by && py == ay) { minx = $wnd.Math.min(ax, bx); maxx = $wnd.Math.max(ax, bx); return px > minx && px < maxx; } return false; } function setColorScale(){ var i, v; !positiveColor_0 && (positiveColor_0 = ($clinit_Color() , green)); !negativeColor_0 && (negativeColor_0 = ($clinit_Color() , red)); !neutralColor_0 && (neutralColor_0 = ($clinit_Color() , gray)); for (i = 0; i != colorScaleCount; i++) { v = i * 2 / colorScaleCount - 1; v < 0?(colorScale[i] = new Color_0(neutralColor_0, negativeColor_0, -v)):(colorScale[i] = new Color_0(neutralColor_0, positiveColor_0, v)); } } function setDecimalDigits(num, sf, save){ var ct, nf, s, stor; sf?(shortDecimalDigits = num):(decimalDigits = num); s = '####.'; ct = num; for (; ct > 0; ct--) s += '#'; nf = ($clinit_NumberFormat() , new NumberFormat_0(s, $getDefaultNative())); sf?(shortFormat = nf):(showFormat = nf); if (save) { stor = (!localStorage_0 && ($clinit_Storage$StorageSupportDetector() , localStorageSupported) && (localStorage_0 = new Storage_0('localStorage')) , localStorage_0); !!stor && $setItem_0(stor.storage, sf?'decimalDigitsShort':'decimalDigits', '' + num); } if (!sf) { s = '####.'; ct = num; for (; ct > 0; ct--) s += '0'; fixedFormat = new NumberFormat_0(s, $getDefaultNative()); } } function setValueFontSize(size_0){ var stor; valueFontSize = size_0; valueFont = new Font('SansSerif', 0, valueFontSize); stor = (!localStorage_0 && ($clinit_Storage$StorageSupportDetector() , localStorageSupported) && (localStorage_0 = new Storage_0('localStorage')) , localStorage_0); !!stor && $setItem(stor, 'valueFontSize', '' + valueFontSize); } function sign_0(x_0){ return x_0 < 0?-1:x_0 == 0?0:1; } defineClass(8, 1, $intern_85); _.addRoutingObstacle = function addRoutingObstacle(router){ if (this.x_0 == this.x2 || this.y_0 == this.y2) { $addWire(router, this.x_0, this.y_0, this.x2, this.y2); !!this.lead1 && !!this.lead2 && $addObstacle(router, this.lead1.x_0, this.lead1.y_0, this.lead2.x_0, this.lead2.y_0); } } ; _.calculateCurrent = function calculateCurrent(){ } ; _.canFlipX = function canFlipX_0(){ return true; } ; _.canFlipXY = function canFlipXY_0(){ return this.canFlipX() || this.canFlipY(); } ; _.canFlipY = function canFlipY_0(){ return true; } ; _.canShowValueInScope = function canShowValueInScope(v){ return false; } ; _.canViewInScope = function canViewInScope(){ return this.getPostCount_0() <= 2; } ; _.creationFailed = function creationFailed(){ return this.x_0 == this.x2 && this.y_0 == this.y2; } ; _.delete_0 = function delete_0(){ mouseElmRef == this && (mouseElmRef = null); $deleteSliders(app_0, this); } ; _.doDots = function doDots(g){ this.curcount_0 = $updateDotCount(this.current_0, this.curcount_0); app_0.mouse.dragElm == this || $drawDots(g, this.point1, this.point2, this.curcount_0); } ; _.doStep = function doStep(){ } ; _.drag = function drag(xx, yy){ $drag(this, xx, yy); } ; _.dragPlace = function dragPlace(xa, ya, vertical){ $dragPlace(this, xa, ya, vertical); } ; _.draggingDone = function draggingDone(){ } ; _.draw = function draw(g){ } ; _.dumpXml = function dumpXml(doc, elem){ dumpAttr_1(elem, 'x', this.x_0 + ' ' + this.y_0 + ' ' + this.x2 + ' ' + this.y2); dumpAttr_0(elem, 'f', this.flags); } ; _.dumpXmlModel = function dumpXmlModel(doc){ } ; _.dumpXmlState = function dumpXmlState(doc, elem){ } ; _.flipX = function flipX_0(center2, count){ $flipX(this, center2); } ; _.flipXY = function flipXY(xmy, count){ $flipXY(this, xmy); } ; _.flipY = function flipY_0(center2, count){ $flipY(this, center2); } ; _.getBusWidth = function getBusWidth(){ return 1; } ; _.getChildElmList = function getChildElmList(){ return null; } ; _.getClassName = function getClassName(){ return $replace_0($getName(this.___clazz), 'com.lushprojects.circuitjs1.client.', ''); } ; _.getConnectedPost = function getConnectedPost(){ return this.point2; } ; _.getConnectedPost_0 = function getConnectedPost_0(n){ return this.getConnectedPost(); } ; _.getConnection = function getConnection(n1, n2){ return true; } ; _.getCurrent_0 = function getCurrent(){ return this.current_0; } ; _.getCurrentIntoNode = function getCurrentIntoNode(n){ return n == 0 && this.getPostCount_0() == 2?-this.current_0:this.current_0; } ; _.getDefaultFlags = function getDefaultFlags(){ return 0; } ; _.getDialogTitle = function getDialogTitle(){ var name_0; name_0 = this.getElmType(); if (name_0 == null) return 'Edit Component'; return 'Edit ' + name_0.substr(0, 1).toUpperCase() + name_0.substr(1); } ; _.getDragLength = function getDragLength(){ return 64; } ; _.getDragVertical = function getDragVertical(requestedVertical){ return requestedVertical; } ; _.getDumpClass = function getDumpClass(){ return this.___clazz; } ; _.getDumpType = function getDumpType(){ return 0; } ; _.getEditInfo = function getEditInfo(n){ return null; } ; _.getElmType = function getElmType(){ var info; info = initUnidimensionalArray(Ljava_lang_String_2_classLit, $intern_23, 2, 10, 6, 1); this.getInfo_0(info); return info[0]; } ; _.getInfo_0 = function getInfo(arr){ } ; _.getInfoJS = function getInfoJS(){ var arr, i, jsarr; jsarr = []; arr = initUnidimensionalArray(Ljava_lang_String_2_classLit, $intern_23, 2, 20, 6, 1); this.getInfo_0(arr); for (i = 0; arr[i] != null; i++) { jsarr[jsarr.length] = arr[i]; } return jsarr; } ; _.getInternalNodeCount = function getInternalNodeCount(){ return 0; } ; _.getMatrixConnection = function getMatrixConnection(n1, n2){ return this.getConnection(n1, n2); } ; _.getMouseDistance = function getMouseDistance(gx, gy){ if (this.getPostCount_0() == 0) return distanceSq(gx, gy, (this.x2 + this.x_0) / 2 | 0, (this.y2 + this.y_0) / 2 | 0); return $lineDistanceSq(this.x_0, this.y_0, this.x2, this.y2, gx, gy); } ; _.getNumHandles = function getNumHandles(){ return this.getPostCount_0(); } ; _.getPost = function getPost(n){ return $getPost(this, n); } ; _.getPostCount_0 = function getPostCount(){ return 2; } ; _.getPostWidth = function getPostWidth(n){ return 1; } ; _.getPower = function getPower(){ return this.getVoltageDiff_0() * this.current_0; } ; _.getScopeText = function getScopeText(v){ var info; info = initUnidimensionalArray(Ljava_lang_String_2_classLit, $intern_23, 2, 10, 6, 1); this.getInfo_0(info); return info[0]; } ; _.getScopeUnits = function getScopeUnits(x_0){ return x_0 == 3?1:x_0 == 7?2:0; } ; _.getScopeValue = function getScopeValue(x_0){ return x_0 == 3?this.getCurrent_0():x_0 == 7?this.getPower():this.getVoltageDiff_0(); } ; _.getShortcut = function getShortcut(){ return 0; } ; _.getVoltageDiff_0 = function getVoltageDiff(){ return this.volts[0] - this.volts[1]; } ; _.getVoltageJS = function getVoltageJS(n){ if (n >= this.volts.length) return 0; return this.volts[n]; } ; _.getVoltageSourceCount = function getVoltageSourceCount(){ return 0; } ; _.getWireSegments = function getWireSegments(list){ var b, bw, ep0, ep1, p0, p1; bw = this.getBusWidth(); for (b = 0; b < bw; b++) { p0 = this.getPost(b); p1 = this.getConnectedPost_0(b); ep0 = p0.x_0 + ',' + p0.y_0 + ',' + p0.z_0; ep1 = !!p1 && !$equals(p1, p0)?p1.x_0 + ',' + p1.y_0 + ',' + p1.z_0:null; $add_11(list, new SimulationManager$WireSegment(this, b, ep0, ep1)); } } ; _.getXmlDumpType = function getXmlDumpType(){ var t; t = this.getDumpType(); if (t > 64 && t < 127) return String.fromCharCode(t & $intern_8); return $replace_0($replace_0($getName(this.___clazz), 'com.lushprojects.circuitjs1.client.', ''), 'Elm', ''); } ; _.hasGroundConnection = function hasGroundConnection(n1){ return false; } ; _.initBoundingBox = function initBoundingBox(){ this.boundingBox = new Rectangle; $setBounds(this.boundingBox, min_1(this.x_0, this.x2), min_1(this.y_0, this.y2), abs_0(this.x2 - this.x_0) + 1, abs_0(this.y2 - this.y_0) + 1); } ; _.isIdealCapacitor = function isIdealCapacitor(){ return false; } ; _.isRemovableWire = function isRemovableWire(){ return false; } ; _.isWireEquivalent = function isWireEquivalent(){ return false; } ; _.move = function move(dx, dy){ $move(this, dx, dy); } ; _.nonLinear_0 = function nonLinear(){ return false; } ; _.preStamp = function preStamp(){ } ; _.reset_0 = function reset_0(){ $reset(this); } ; _.selectRect = function selectRect(r, add_0){ $intersects(r, this.boundingBox)?(this.selected_0 = true):add_0 || (this.selected_0 = false); } ; _.setCurrent = function setCurrent(vs, c){ this.current_0 = c; } ; _.setEditValue = function setEditValue(n, ei){ } ; _.setHighVoltage = function setHighVoltage(hv){ } ; _.setMouseElm = function setMouseElm(v){ v?(mouseElmRef = this):mouseElmRef == this && (mouseElmRef = null); } ; _.setNode = function setNode(p, n){ this.nodes[p] = n; } ; _.setNodeVoltage = function setNodeVoltage(n, c){ this.volts[n] = c; this.calculateCurrent(); } ; _.setParentList = function setParentList(elmList){ } ; _.setPoints = function setPoints(){ $setPoints(this); } ; _.setVoltageSource = function setVoltageSource(n, v){ this.voltSource = v; } ; _.setWireCurrent = function setWireCurrent(bit, c){ this.current_0 = c; } ; _.stamp = function stamp(){ } ; _.startIteration = function startIteration(){ } ; _.stepFinished = function stepFinished(){ } ; _.undumpXml = function undumpXml(xml){ this.flags = $parseIntAttr(xml, 'f', this.flags); } ; _.updateModels = function updateModels(){ } ; _.validate = function validate(){ return true; } ; _.curcount_0 = 0; _.current_0 = 0; _.dn = 0; _.dpx1 = 0; _.dpy1 = 0; _.dsign = 0; _.dx = 0; _.dy = 0; _.flags = 0; _.inComposite = false; _.lastHandleGrabbed = -1; _.noDiagonal = false; _.selected_0 = false; _.x_0 = 0; _.x2 = 0; _.y_0 = 0; _.y2 = 0; var app_0, colorScale, colorScaleCount = 201, currentColor_0, currentMult_0 = 0, decimalDigits = 0, fixedFormat, lightGrayColor, mouseElmRef = null, negativeColor_0, neutralColor_0, positiveColor_0, powerMult = 0, ps1, ps2, selectColor_0, shortDecimalDigits = 0, shortFormat, showFormat, sim_0, unitsFont, valueFont, valueFontSize = 12, voltageRange = 5, whiteColor; var Lcom_lushprojects_circuitjs1_client_CircuitElm_2_classLit = createForClass('com.lushprojects.circuitjs1.client', 'CircuitElm', 8); function $drawWaveform(this$static, g, center){ var i, s, showF, showV, xc, xc2, yc, yy; $setColor_0(g, mouseElmRef == this$static || this$static.selected_0 || $containsKey(app_0.mouse.scopePlotRoles, this$static) || instanceOf(mouseElmRef, 21) && $getElm_0(mouseElmRef.elmScope) == this$static || $isOnHighlightedNet(this$static)?selectColor_0:($clinit_Color() , gray)); $setPowerColor_0(this$static, g); xc = center.x_0; yc = center.y_0; this$static.waveform != 6 && drawThickCircle(g, xc, yc, 17); $adjustBbox(this$static, xc - 17, yc - 17, xc + 17, yc + 17); switch (this$static.waveform) { case 2: xc2 = round_int(16 * this$static.dutyCycle - 8 + xc); xc2 = xc - 8 + 3 > (xc + 8 - 3 < xc2?xc + 8 - 3:xc2)?xc - 8 + 3:xc + 8 - 3 < xc2?xc + 8 - 3:xc2; drawThickLine(g, xc - 8, yc - 8, xc - 8, yc); drawThickLine(g, xc - 8, yc - 8, xc2, yc - 8); drawThickLine(g, xc2, yc - 8, xc2, yc + 8); drawThickLine(g, xc + 8, yc + 8, xc2, yc + 8); drawThickLine(g, xc + 8, yc, xc + 8, yc + 8); break; case 5: yc += 4; drawThickLine(g, xc - 8, yc - 8, xc - 8, yc); drawThickLine(g, xc - 8, yc - 8, xc - 4, yc - 8); drawThickLine(g, xc - 4, yc - 8, xc - 4, yc); drawThickLine(g, xc - 4, yc, xc + 8, yc); break; case 4: drawThickLine(g, xc, yc - 8, xc - 8, yc); drawThickLine(g, xc, yc - 8, xc, yc + 8); drawThickLine(g, xc, yc + 8, xc + 8, yc); break; case 3: { drawThickLine(g, xc - 10, yc, xc - 5, yc - 8); drawThickLine(g, xc - 5, yc - 8, xc, yc); drawThickLine(g, xc, yc, xc + 5, yc + 8); drawThickLine(g, xc + 5, yc + 8, xc + 10, yc); break; } case 6: { $setColor_0(g, mouseElmRef == this$static || this$static.selected_0 || $containsKey(app_0.mouse.scopePlotRoles, this$static) || instanceOf(mouseElmRef, 21) && $getElm_0(mouseElmRef.elmScope) == this$static || $isOnHighlightedNet(this$static)?selectColor_0:whiteColor); $setPowerColor_0(this$static, g); $drawLabeledNode(this$static, g, LS('Noise'), this$static.point1, this$static.lead1); break; } case 1: { g.context.beginPath(); g.context.lineWidth = 3; for (i = -10; i <= 10; i++) { yy = yc + round_int(0.95 * $wnd.Math.sin(i * $intern_1 / 10) * 8); i == -10?$moveTo(g.context, xc + -10, yy):$lineTo(g.context, xc + i, yy); } g.context.stroke(); g.context.lineWidth = 1; break; } } if (instanceOf(this$static, 47) && (this$static.dx == 0 || this$static.dy == 0)) { showV = (this$static.flags & 64) != 0; showF = app_0.menus.showValuesCheckItem.on && this$static.waveform != 6; s = null; showV && showF?(s = $getShortVoltageText(this$static) + ' ' + getUnitText(this$static.frequency, 'Hz', true)):showV?(s = $getShortVoltageText(this$static)):showF && (s = getUnitText(this$static.frequency, 'Hz', true)); s != null && $drawValues(this$static, g, s, 17); } } function $dumpXml(this$static, elem){ dumpAttr_1(elem, 'x', this$static.x_0 + ' ' + this$static.y_0 + ' ' + this$static.x2 + ' ' + this$static.y2); dumpAttr_0(elem, 'f', this$static.flags); dumpAttr_0(elem, 'wf', this$static.waveform); this$static.waveform != 0 && dumpAttr(elem, 'fr', this$static.frequency); dumpAttr(elem, 'maxv', this$static.maxVoltage_0); this$static.bias != 0 && dumpAttr(elem, 'bias', this$static.bias); this$static.phaseShift != 0 && dumpAttr(elem, 'phaseShift', this$static.phaseShift); this$static.dutyCycle != 0.5 && dumpAttr(elem, 'dutyCycle', this$static.dutyCycle); this$static.riseTime != 0 && dumpAttr(elem, 'riseTime', this$static.riseTime); this$static.internalResistance != 0 && dumpAttr(elem, 'ir', this$static.internalResistance); } function $getInfo(this$static, arr){ var i; switch (this$static.waveform) { case 0: case 7: arr[0] = 'voltage source'; break; case 1: arr[0] = 'A/C source'; break; case 2: arr[0] = 'square wave gen'; break; case 5: arr[0] = 'pulse gen'; break; case 4: arr[0] = 'sawtooth gen'; break; case 3: arr[0] = 'triangle gen'; break; case 6: arr[0] = 'noise gen'; } arr[1] = 'I = ' + getUnitText(this$static.current_0, 'A', false); arr[2] = (instanceOf(this$static, 47)?'V = ':'Vd = ') + getUnitText(this$static.getVoltageDiff_0(), 'V', false); i = 3; if (this$static.waveform != 0 && this$static.waveform != 7 && this$static.waveform != 6) { arr[i++] = 'f = ' + getUnitText(this$static.frequency, 'Hz', false); arr[i++] = 'Vmax = ' + getUnitText(this$static.maxVoltage_0, 'V', false); this$static.bias == 0 && (arr[i++] = 'V(rms) = ' + getUnitText(this$static.maxVoltage_0 * $getRmsMultiplier(this$static), 'V', false)); this$static.bias != 0?(arr[i++] = 'Voff = ' + getUnitText(this$static.bias, 'V', false)):this$static.frequency > 500 && (arr[i++] = 'wavelength = ' + getUnitText(299790000 / this$static.frequency, 'm', false)); } this$static.waveform == 0 && this$static.current_0 != 0 && app_0.showResistanceInVoltageSources && (arr[i++] = '(R = ' + getUnitText(this$static.maxVoltage_0 / this$static.current_0, ohmString, false) + ')'); arr[i++] = 'P = ' + getUnitText(-this$static.getVoltageDiff_0() * this$static.current_0, 'W', false); } function $getRmsMultiplier(this$static){ switch (this$static.waveform) { case 2: default:case 0: return 1; case 1: return 1 / $wnd.Math.sqrt(2); case 4: case 3: return 1 / $wnd.Math.sqrt(3); case 5: return $wnd.Math.sqrt(this$static.dutyCycle); } } function $getShortVoltageText(this$static){ if (this$static.bias != 0) return getUnitText(this$static.bias + this$static.maxVoltage_0, 'V', true); if ($useRmsDisplay(this$static, this$static.maxVoltage_0)) return getUnitText(this$static.maxVoltage_0 * $getRmsMultiplier(this$static), 'V', true) + 'rms'; return getUnitText(this$static.maxVoltage_0, 'V', true); } function $setFrequency(this$static, newFreq){ var maxfreq, oldfreq; oldfreq = this$static.frequency; this$static.frequency = newFreq; maxfreq = 1 / (8 * sim_0.maxTimeStep); this$static.frequency > maxfreq && (confirm_2(LS('Adjust timestep to allow for higher frequencies?'))?(sim_0.maxTimeStep = 1 / (32 * this$static.frequency)):(this$static.frequency = maxfreq)); this$static.freqTimeZero = this$static.frequency == 0?0:sim_0.t - oldfreq * (sim_0.t - this$static.freqTimeZero) / this$static.frequency; } function $setFrequencyFromTimes(this$static, highTime, lowTime){ var newDuty, newFreq; newFreq = 1 / (highTime + lowTime); newDuty = highTime / (highTime + lowTime); $setFrequency(this$static, newFreq); this$static.dutyCycle = newDuty; } function $triangleFunc(x_0){ if (x_0 < $intern_1) return x_0 * $intern_86 - 1; return 1 - (x_0 - $intern_1) * $intern_86; } function $undumpXml(this$static, xml){ this$static.flags = $parseIntAttr(xml, 'f', this$static.flags); this$static.waveform = $parseIntAttr(xml, 'wf', this$static.waveform); this$static.frequency = $parseDoubleAttr(xml, 'fr', this$static.frequency); this$static.maxVoltage_0 = $parseDoubleAttr(xml, 'maxv', this$static.maxVoltage_0); this$static.bias = $parseDoubleAttr(xml, 'bias', this$static.bias); this$static.phaseShift = $parseDoubleAttr(xml, 'phaseShift', this$static.phaseShift); this$static.dutyCycle = $parseDoubleAttr(xml, 'dutyCycle', this$static.dutyCycle); this$static.riseTime = $parseDoubleAttr(xml, 'riseTime', this$static.riseTime); this$static.internalResistance = $parseDoubleAttr(xml, 'ir', 0); } function $useRmsDisplay(this$static, peakValue){ var rmsMult, rmsVal; rmsMult = $getRmsMultiplier(this$static); rmsVal = peakValue * rmsMult; return rmsMult != 1 && $wnd.Math.abs(peakValue) > $intern_87 && $wnd.Math.abs(rmsVal * $intern_88 - toDouble_0(fromDouble_0($wnd.Math.round(rmsVal * $intern_88)))) < $wnd.Math.abs(peakValue * $intern_88 - toDouble_0(fromDouble_0($wnd.Math.round(peakValue * $intern_88)))); } function VoltageElm(xx, yy, wf){ CircuitElm.call(this, xx, yy); this.waveform = wf; this.maxVoltage_0 = 5; this.frequency = 60; this.dutyCycle = 0.5; this.flags |= 16; this.reset_0(); } function VoltageElm_0(xa, ya, xb, yb, f, st){ CircuitElm_0.call(this, xa, ya, xb, yb, f); this.maxVoltage_0 = 5; this.frequency = 40; this.waveform = 0; this.dutyCycle = 0.5; try { this.waveform = (new Integer_0($nextToken(st))).value_0; this.frequency = $doubleValue(__parseAndValidateDouble($nextToken(st))); this.maxVoltage_0 = $doubleValue(__parseAndValidateDouble($nextToken(st))); this.bias = $doubleValue(__parseAndValidateDouble($nextToken(st))); this.phaseShift = $doubleValue(__parseAndValidateDouble($nextToken(st))); this.dutyCycle = $doubleValue(__parseAndValidateDouble($nextToken(st))); } catch ($e0) { $e0 = toJava($e0); if (!instanceOf($e0, 13)) throw toJs($e0); } if ((this.flags & 2) != 0) { this.flags &= -3; this.phaseShift = $intern_89; } (this.flags & 4) == 0 && this.waveform == 5 && (this.dutyCycle = $intern_90); this.reset_0(); } defineClass(56, 8, $intern_91, VoltageElm_0); _.addRoutingObstacle = function addRoutingObstacle_0(wr){ $addRoutingObstacleWithLeads(this, wr, 16); } ; _.doStep = function doStep_0(){ this.waveform != 0 && $updateVoltageSource(this.voltSource, this.getVoltage_0()); } ; _.dragPlace = function dragPlace_0(xa, ya, vertical){ $dragPlace(this, xa, ya, vertical); $swapDragEndpoints(this); } ; _.draw = function draw_0(g){ var hs, inds, pA, pB, plusPoint, s, showF, showV, w, xc, yc; $setBbox(this, this.x_0, this.y_0, this.x2, this.y2); $draw2Leads(this, g); if (this.waveform == 0 && (this.flags & 8) != 0) { $setBbox_0(this, this.point1, this.point2, 17); $interpPoint_1(this.lead1, this.lead2, ps1, 0.5); xc = ps1.x_0; yc = ps1.y_0; $setColor_0(g, mouseElmRef == this || this.selected_0 || $containsKey(app_0.mouse.scopePlotRoles, this) || instanceOf(mouseElmRef, 21) && $getElm_0(mouseElmRef.elmScope) == this || $isOnHighlightedNet(this)?selectColor_0:($clinit_Color() , gray)); $setPowerColor_0(this, g); drawThickCircle(g, xc, yc, 17); $adjustBbox(this, xc - 17, yc - 17, xc + 17, yc + 17); $interpPoint2(this.lead1, this.lead2, ps1, ps2, 0.74, 4); drawThickLine_0(g, ps1, ps2, 3); pA = $interpPoint(this.lead1, this.lead2, 0.6223529411764706); pB = $interpPoint(this.lead1, this.lead2, 0.8576470588235294); drawThickLine_0(g, pA, pB, 3); $interpPoint2(this.lead1, this.lead2, ps1, ps2, 0.26, 4); drawThickLine_0(g, ps1, ps2, 3); } else if (this.waveform == 0) { $setVoltageColor(this, g, this.volts[0]); $setPowerColor_0(this, g); $interpPoint2(this.lead1, this.lead2, ps1, ps2, 0, 10); drawThickLine_0(g, ps1, ps2, 3); $setVoltageColor(this, g, this.volts[1]); $setPowerColor_0(this, g); $setBbox_0(this, this.point1, this.point2, 16); $interpPoint2(this.lead1, this.lead2, ps1, ps2, 1, 16); drawThickLine_0(g, ps1, ps2, 3); } else { $setBbox_0(this, this.point1, this.point2, 17); $interpPoint_1(this.lead1, this.lead2, ps1, 0.5); $drawWaveform(this, g, ps1); this.bias > 0 || this.bias == 0 && this.waveform == 5?(inds = '+'):(inds = '*'); $setColor_0(g, whiteColor); $setFont_0(g, unitsFont); plusPoint = $interpPoint_0(this.point1, this.point2, (this.dn / 2 + 17 + 4) / this.dn, 10 * this.dsign); plusPoint.y_0 += 4; w = round_int($measureText(g.context, inds).width); $drawString(g, inds, plusPoint.x_0 - (w / 2 | 0), plusPoint.y_0); } if (this.dx == 0 || this.dy == 0) { showV = (this.flags & 16) != 0; showF = app_0.menus.showValuesCheckItem.on && this.waveform != 0 && this.waveform != 6; s = null; showV && showF?(s = $getShortVoltageText(this) + ' ' + getUnitText(this.frequency, 'Hz', true)):showV?(s = $getShortVoltageText(this)):showF && (s = getUnitText(this.frequency, 'Hz', true)); if (s != null) { hs = this.waveform == 0 && (this.flags & 8) == 0?16:17; $drawValues(this, g, s, hs); } } this.curcount_0 = $updateDotCount(this.current_0, this.curcount_0); if (app_0.mouse.dragElm != this) { if (this.waveform == 0 && (this.flags & 8) == 0) $drawDots(g, this.point1, this.point2, this.curcount_0); else { $drawDots(g, this.point1, this.lead1, this.curcount_0); $drawDots(g, this.point2, this.lead2, -this.curcount_0); } } $drawPosts(this, g); } ; _.dumpXml = function dumpXml_0(doc, elem){ $dumpXml(this, elem); } ; _.getDragVertical = function getDragVertical_0(requestedVertical){ return true; } ; _.getDumpType = function getDumpType_0(){ return 118; } ; _.getEditInfo = function getEditInfo_0(n){ var ei, n2, svFlag; if (n == 0) return $setUnitStep(new EditInfo_0(this.waveform == 0?'Voltage':'Max Voltage', this.maxVoltage_0, -20, 20)); if (n == 1) { ei = new EditInfo_0('Waveform', this.waveform, -1, -1); ei.choice = new Choice; $addItem(ei.choice, LS('D/C')); $addItem(ei.choice, LS('A/C')); $addItem(ei.choice, LS('Square Wave')); $addItem(ei.choice, LS('Triangle')); $addItem(ei.choice, LS('Sawtooth')); $addItem(ei.choice, LS('Pulse')); $addItem(ei.choice, LS('Noise')); $select(ei.choice, this.waveform); return ei; } if (n == 2) return $setUnitStep(new EditInfo_0('DC Offset (V)', this.bias, -20, 20)); if (n == 3) { ei = new EditInfo('Internal Resistance (ohms)', this.internalResistance); ei.nonNegative = true; return ei; } if (n == 4 && !(instanceOf(this, 47) && (this.waveform == 0 || this.waveform == 7))) { ei = new EditInfo_0('', 0, -1, -1); svFlag = instanceOf(this, 47)?64:16; ei.checkbox = new Checkbox_0('Show Voltage', (this.flags & svFlag) != 0); return ei; } if (n == 5 && this.waveform == 0 && !instanceOf(this, 47)) { ei = new EditInfo_0('', 0, -1, -1); ei.checkbox = new Checkbox_0('Circle Symbol', (this.flags & 8) != 0); return ei; } if (this.waveform == 0 || this.waveform == 6) return null; n2 = n - 5; if (this.waveform == 5 || this.waveform == 2) { if (n2 == 0) { ei = new EditInfo_0('Specify As', 0, -1, -1); ei.choice = new Choice; $addItem(ei.choice, LS('Frequency/Duty Cycle')); $addItem(ei.choice, LS('High Time/Low Time')); $select(ei.choice, (this.flags & 32) != 0 && (this.waveform == 5 || this.waveform == 2)?1:0); ei.newColumn = true; return ei; } if (n2 == 1) { if ((this.flags & 32) != 0 && (this.waveform == 5 || this.waveform == 2)) return new EditInfo_0('High Time (s)', this.dutyCycle / this.frequency, 0, 0); return new EditInfo_0('Frequency (Hz)', this.frequency, 4, 500); } if (n2 == 2) return $setDimensionless(new EditInfo_0('Phase Offset (degrees)', this.phaseShift * 180 / $intern_1, -180, 180)); if (n2 == 3) { if ((this.flags & 32) != 0 && (this.waveform == 5 || this.waveform == 2)) return new EditInfo_0('Low Time (s)', (1 - this.dutyCycle) / this.frequency, 0, 0); return $setDimensionless(new EditInfo_0('Duty Cycle', this.dutyCycle * 100, 0, 100)); } if (n2 == 4) return new EditInfo_0('Rise/Fall Time (s)', this.riseTime, 0, 0); } else { if (n2 == 0) return new EditInfo_0('Frequency (Hz)', this.frequency, 4, 500); if (n2 == 1) return $setDimensionless(new EditInfo_0('Phase Offset (degrees)', this.phaseShift * 180 / $intern_1, -180, 180)); } return null; } ; _.getInfo_0 = function getInfo_0(arr){ $getInfo(this, arr); } ; _.getInternalNodeCount = function getInternalNodeCount_0(){ return this.internalResistance > 0?1:0; } ; _.getPower = function getPower_0(){ return -this.getVoltageDiff_0() * this.current_0; } ; _.getVoltage_0 = function getVoltage(){ var dutyPhase, halfRise, risePhase, t, w, wm; if (this.waveform != 0 && app_0.dcAnalysisFlag) return this.bias; w = $intern_2 * (sim_0.t - this.freqTimeZero) * this.frequency + this.phaseShift; switch (this.waveform) { case 0: return this.maxVoltage_0 + this.bias; case 1: return $wnd.Math.sin(w) * this.maxVoltage_0 + this.bias; case 2: { wm = w % $intern_2; dutyPhase = $intern_2 * this.dutyCycle; if (this.riseTime > 0) { risePhase = this.riseTime * this.frequency * 2 * $intern_1; halfRise = risePhase / 2; if (wm < halfRise) { t = (wm + halfRise) / risePhase; return this.bias + this.maxVoltage_0 * (2 * t - 1); } else if (wm < dutyPhase - halfRise) return this.bias + this.maxVoltage_0; else if (wm < dutyPhase + halfRise) { t = (wm - dutyPhase + halfRise) / risePhase; return this.bias + this.maxVoltage_0 * (1 - 2 * t); } else if (wm < $intern_2 - halfRise) return this.bias - this.maxVoltage_0; else { t = (wm - ($intern_2 - halfRise)) / risePhase; return this.bias + this.maxVoltage_0 * (2 * t - 1); } } return this.bias + (wm > dutyPhase?-this.maxVoltage_0:this.maxVoltage_0); } case 3: return this.bias + $triangleFunc(w % $intern_2) * this.maxVoltage_0; case 4: return this.bias + w % $intern_2 * (this.maxVoltage_0 / $intern_1) - this.maxVoltage_0; case 5: { wm = w % $intern_2; dutyPhase = $intern_2 * this.dutyCycle; if (this.riseTime > 0) { risePhase = this.riseTime * this.frequency * 2 * $intern_1; halfRise = risePhase / 2; if (wm < halfRise) { t = (wm + halfRise) / risePhase; return this.bias + this.maxVoltage_0 * t; } else if (wm < dutyPhase - halfRise) return this.bias + this.maxVoltage_0; else if (wm < dutyPhase + halfRise) { t = (wm - dutyPhase + halfRise) / risePhase; return this.bias + this.maxVoltage_0 * (1 - t); } else if (wm < $intern_2 - halfRise) return this.bias; else { t = (wm - ($intern_2 - halfRise)) / risePhase; return this.bias + this.maxVoltage_0 * t; } } return wm < dutyPhase?this.maxVoltage_0 + this.bias:this.bias; } case 6: return this.noiseValue; default:return 0; } } ; _.getVoltageDiff_0 = function getVoltageDiff_0(){ return this.volts[1] - this.volts[0]; } ; _.getVoltageSourceCount = function getVoltageSourceCount_0(){ return 1; } ; _.reset_0 = function reset_1(){ this.freqTimeZero = 0; this.curcount_0 = 0; } ; _.setEditValue = function setEditValue_0(n, ei){ var highTime, lowTime, n2, oldFlags, ow, svFlag; n == 0 && (this.maxVoltage_0 = ei.value_0); n == 2 && (this.bias = ei.value_0); n == 3 && (this.internalResistance = ei.value_0); if (n == 4 && !!ei.checkbox) { svFlag = instanceOf(this, 47)?64:16; this.flags = $changeFlag(ei, this.flags, svFlag); } if (n == 5 && this.waveform == 0 && !!ei.checkbox && !instanceOf(this, 47)) { this.flags = $changeFlag(ei, this.flags, 8); this.setPoints(); } if (n == 1) { ow = this.waveform; this.waveform = $getElement(ei.choice).selectedIndex; if (this.waveform == 0 && ow != 0) { ei.newDialog = true; this.bias = 0; } else this.waveform != ow && (ei.newDialog = true); this.waveform == 5 && ow != 5?(this.dutyCycle = $intern_90):ow == 5 && this.waveform != 5 && (this.dutyCycle = 0.5); this.setPoints(); } n2 = n - 5; if (this.waveform == 5 || this.waveform == 2) { if (n2 == 0 && !!ei.choice) { oldFlags = this.flags; this.flags = $getElement(ei.choice).selectedIndex == 1?this.flags | 32:this.flags & -33; this.flags != oldFlags && (ei.newDialog = true); } if (n2 == 1) { if ((this.flags & 32) != 0 && (this.waveform == 5 || this.waveform == 2)) { highTime = ei.value_0; lowTime = (1 - this.dutyCycle) / this.frequency; highTime > 0 && lowTime > 0 && $setFrequencyFromTimes(this, highTime, lowTime); } else ei.value_0 != 0 && $setFrequency(this, ei.value_0); } if (n2 == 2) { this.phaseShift = ei.value_0 * $intern_1 / 180; this.phaseShift = (this.phaseShift % $intern_2 + $intern_2) % $intern_2; } if (n2 == 3) { if ((this.flags & 32) != 0 && (this.waveform == 5 || this.waveform == 2)) { highTime = this.dutyCycle / this.frequency; lowTime = ei.value_0; highTime > 0 && lowTime > 0 && $setFrequencyFromTimes(this, highTime, lowTime); } else { this.dutyCycle = ei.value_0 * $intern_34; } } n2 == 4 && (this.riseTime = ei.value_0); } else { n2 == 0 && this.waveform != 0 && ei.value_0 != 0 && $setFrequency(this, ei.value_0); if (n2 == 1) { this.phaseShift = ei.value_0 * $intern_1 / 180; this.phaseShift = (this.phaseShift % $intern_2 + $intern_2) % $intern_2; } } } ; _.setPoints = function setPoints_0(){ $setPoints(this); this.waveform == 0 && (this.flags & 8) != 0?$calcLeads(this, 34):$calcLeads(this, this.waveform == 0 || this.waveform == 7?8:34); } ; _.setVoltageSource = function setVoltageSource_0(n, v){ this.voltSource = v; this.internalResistance > 0?$setNodes(v, this.nodes[0], this.nodes[2]):$setNodes(v, this.nodes[0], this.nodes[1]); } ; _.stamp = function stamp_0(){ var vsNode2; vsNode2 = this.internalResistance > 0?this.nodes[2]:this.nodes[1]; this.waveform == 0?$stampVoltageSource_0(this.nodes[0], vsNode2, this.voltSource, this.getVoltage_0()):$stampVoltageSource(this.nodes[0], vsNode2, this.voltSource); this.internalResistance > 0 && $stampResistor(this.nodes[2], this.nodes[1], this.internalResistance); } ; _.stepFinished = function stepFinished_0(){ this.waveform == 6 && (this.noiseValue = ($nextDouble(app_0.random_0) * 2 - 1) * this.maxVoltage_0 + this.bias); } ; _.undumpXml = function undumpXml_0(xml){ $undumpXml(this, xml); } ; _.validate = function validate_0(){ var fpi; if (this.internalResistance > 0) return true; if (this.getPostCount_0() == 2) { fpi = new FindPathInfo(2, this, this.nodes[1], sim_0); if ($findPath(fpi, this.nodes[0])) { this.internalResistance = $intern_83; return false; } } return true; } ; _.bias = 0; _.dutyCycle = 0; _.freqTimeZero = 0; _.frequency = 0; _.internalResistance = 0; _.maxVoltage_0 = 0; _.noiseValue = 0; _.phaseShift = 0; _.riseTime = 0; _.waveform = 0; var Lcom_lushprojects_circuitjs1_client_VoltageElm_2_classLit = createForClass('com.lushprojects.circuitjs1.client', 'VoltageElm', 56); function $drawRailText(this$static, g, s){ $setColor_0(g, mouseElmRef == this$static || this$static.selected_0 || $containsKey(app_0.mouse.scopePlotRoles, this$static) || instanceOf(mouseElmRef, 21) && $getElm_0(mouseElmRef.elmScope) == this$static || $isOnHighlightedNet(this$static)?selectColor_0:whiteColor); $setPowerColor_0(this$static, g); $drawLabeledNode(this$static, g, s, this$static.point1, this$static.lead1); } function $validateRailNode_0(this$static){ var fpi; fpi = new FindPathInfo(2, this$static, this$static.nodes[0], sim_0); if ($findPath(fpi, ground)) { this$static.internalResistance = $intern_83; return false; } return true; } function RailElm(xx, yy){ VoltageElm.call(this, xx, yy, 0); } function RailElm_0(xx, yy, wf){ VoltageElm.call(this, xx, yy, wf); } function RailElm_1(xa, ya, xb, yb, f, st){ VoltageElm_0.call(this, xa, ya, xb, yb, f, st); } defineClass(47, 56, $intern_92, RailElm, RailElm_1); _.addRoutingObstacle = function addRoutingObstacle_1(router){ $addWire(router, this.point1.x_0, this.point1.y_0, this.point2.x_0, this.point2.y_0); $addObstacle(router, this.point2.x_0 - 17, this.point2.y_0 - 17, this.point2.x_0 + 17, this.point2.y_0 + 17); } ; _.doStep = function doStep_1(){ this.waveform != 0 && $updateVoltageSource(this.voltSource, this.getVoltage_0()); } ; _.draw = function draw_1(g){ var rt, w; rt = this.getRailText(); w = rt == null?17:$measureText(g.context, rt).width / 2; w > this.dn * 0.8 && (w = this.dn * 0.8); this.lead1 = $interpPoint(this.point1, this.point2, 1 - w / this.dn); $setBbox_0(this, this.point1, this.point2, 17); $setVoltageColor(this, g, this.volts[0]); drawThickLine_0(g, this.point1, this.lead1, 3); this.drawRail(g); $drawPosts(this, g); this.curcount_0 = $updateDotCount(-this.current_0, this.curcount_0); app_0.mouse.dragElm == this || $drawDots(g, this.point1, this.lead1, this.curcount_0); } ; _.drawRail = function drawRail(g){ var s, v; if (this.waveform == 2 && (this.flags & 1) != 0) $drawRailText(this, g, 'CLK'); else if (this.waveform == 0 || this.waveform == 7) { $setColor_0(g, mouseElmRef == this || this.selected_0 || $containsKey(app_0.mouse.scopePlotRoles, this) || instanceOf(mouseElmRef, 21) && $getElm_0(mouseElmRef.elmScope) == this || $isOnHighlightedNet(this)?selectColor_0:whiteColor); $setPowerColor_0(this, g); v = this.getVoltage_0(); $wnd.Math.abs(v) < 1?(s = $format_0(showFormat, v) + ' V'):(s = getUnitText(v, 'V', true)); this.getVoltage_0() > 0 && (s = '+' + s); $drawLabeledNode(this, g, s, this.point1, this.lead1); } else { $drawWaveform(this, g, this.point2); } } ; _.getDragVertical = function getDragVertical_1(requestedVertical){ return requestedVertical; } ; _.getDumpType = function getDumpType_1(){ return 82; } ; _.getPostCount_0 = function getPostCount_0(){ return 1; } ; _.getRailText = function getRailText(){ return null; } ; _.getShortcut = function getShortcut_0(){ return 86; } ; _.getVoltageDiff_0 = function getVoltageDiff_1(){ return this.volts[0]; } ; _.hasGroundConnection = function hasGroundConnection_0(n1){ return true; } ; _.setPoints = function setPoints_1(){ $setPoints(this); this.waveform == 0 && (this.flags & 8) != 0?$calcLeads(this, 34):$calcLeads(this, this.waveform == 0 || this.waveform == 7?8:34); this.lead1 = $interpPoint(this.point1, this.point2, 1 - 17 / this.dn); } ; _.setVoltageSource = function setVoltageSource_1(n, v){ this.voltSource = v; this.internalResistance > 0?$setNodes(v, this.nodes[0], this.nodes[2]):$setNodes(v, this.nodes[0], this.nodes[1]); this.internalResistance > 0?$setNodes(v, ground, this.nodes[1]):$setNodes(v, ground, this.nodes[0]); } ; _.stamp = function stamp_1(){ var vsNode; vsNode = this.internalResistance > 0?this.nodes[1]:this.nodes[0]; this.waveform == 0?$stampVoltageSource_0(ground, vsNode, this.voltSource, this.getVoltage_0()):$stampVoltageSource(ground, vsNode, this.voltSource); this.internalResistance > 0 && $stampResistor(this.nodes[1], this.nodes[0], this.internalResistance); } ; _.validate = function validate_1(){ return this.internalResistance > 0 || $validateRailNode_0(this); } ; var Lcom_lushprojects_circuitjs1_client_RailElm_2_classLit = createForClass('com.lushprojects.circuitjs1.client', 'RailElm', 47); function ACRailElm(xx, yy){ RailElm_0.call(this, xx, yy, 1); this.maxVoltage_0 = 120 * $wnd.Math.sqrt(2); } defineClass(928, 47, $intern_92, ACRailElm); _.getDumpClass = function getDumpClass_0(){ return Lcom_lushprojects_circuitjs1_client_RailElm_2_classLit; } ; _.getShortcut = function getShortcut_1(){ return 0; } ; var Lcom_lushprojects_circuitjs1_client_ACRailElm_2_classLit = createForClass('com.lushprojects.circuitjs1.client', 'ACRailElm', 928); function ACVoltageElm(xx, yy){ VoltageElm.call(this, xx, yy, 1); this.maxVoltage_0 = 120 * $wnd.Math.sqrt(2); } defineClass(919, 56, $intern_91, ACVoltageElm); _.getDumpClass = function getDumpClass_1(){ return Lcom_lushprojects_circuitjs1_client_VoltageElm_2_classLit; } ; var Lcom_lushprojects_circuitjs1_client_ACVoltageElm_2_classLit = createForClass('com.lushprojects.circuitjs1.client', 'ACVoltageElm', 919); function $clinit_ChipElm(){ $clinit_ChipElm = emptyMethod; sideFlipXY = stampJavaTypeInfo(getClassLiteralForArray(I_classLit, 1), $intern_25, 7, 15, [2, 3, 0, 1]); } function $addRoutingObstacle(this$static, router){ $addObstacle(router, this$static.rectPointsX[0], this$static.rectPointsY[0], this$static.rectPointsX[2], this$static.rectPointsY[2]); } function $doStep(this$static){ var i, p; for (i = 0; i != this$static.getPostCount_0(); i++) { p = this$static.pins[i]; p.output && $updateVoltageSource(p.voltSource, p.value_0?this$static.highVoltage:0); } } function $drawChip(this$static, g){ var a, asc, availSpace, b, f, f2, fsz, hasVertical, i, p, sw, text_0, tx, ya; g.context.save(); g.savedFontSize = g.currentFontSize; f = new Font('normal', 0, 10 * this$static.csize); hasVertical = false; for (i = 0; i != this$static.getPostCount_0(); i++) if (this$static.pins[i].side == 0 || this$static.pins[i].side == 1) { hasVertical = true; break; } for (i = 0; i != this$static.getPostCount_0(); i++) { $setFont_0(g, f); p = this$static.pins[i]; if (p.busZ > 0) continue; $setVoltageColor(this$static, g, this$static.volts[i]); a = p.post; b = p.stub; drawThickLine_0(g, a, b, p.busWidth > 1?5:3); p.curcount = $updateDotCount(p.current, p.curcount); $drawDots(g, b, a, p.curcount); if (p.bubble) { $setColor_0(g, $getBackgroundColor(app_0.ui)); drawThickCircle(g, p.bubbleX, p.bubbleY, 1); $setColor_0(g, lightGrayColor); drawThickCircle(g, p.bubbleX, p.bubbleY, 3); } if (p.clockPointsX != null) { $setColor_0(g, lightGrayColor); $drawPolyline(g, p.clockPointsX, p.clockPointsY, 3); } $setColor_0(g, p.selected_0?selectColor_0:whiteColor); fsz = 10 * this$static.csize; availSpace = this$static.cspc * 2 - 8; !hasVertical && this$static.sizeX > 2 && (availSpace = this$static.cspc * 2.5 + this$static.cspc * (this$static.sizeX - 3)); text_0 = p.busWidth > 1?p.text_0 + '/' + p.busWidth:p.text_0; while (true) { sw = round_int($measureText(g.context, text_0).width); if (sw > availSpace) { fsz -= 1; f2 = new Font('normal', 0, fsz); $setFont_0(g, f2); continue; } asc = g.currentFontSize; p.side == $flippedXSide(this$static, 2)?(tx = p.textloc.x_0 - (this$static.cspc - 5)):p.side == $flippedXSide(this$static, 3)?(tx = p.textloc.x_0 + (this$static.cspc - 5) - sw):(tx = p.textloc.x_0 - (sw / 2 | 0)); $drawString(g, text_0, tx, p.textloc.y_0 + (asc / 3 | 0)); if (p.lineOver) { ya = p.textloc.y_0 - asc + (asc / 3 | 0); $drawLine(g, tx, ya, tx + sw, ya); } break; } } this$static.drawLabel(g, this$static.labelX, this$static.labelY); $setColor_0(g, mouseElmRef == this$static || this$static.selected_0 || $containsKey(app_0.mouse.scopePlotRoles, this$static) || instanceOf(mouseElmRef, 21) && $getElm_0(mouseElmRef.elmScope) == this$static || $isOnHighlightedNet(this$static)?selectColor_0:lightGrayColor); drawThickPolygon_0(g, this$static.rectPointsX, this$static.rectPointsY, 4); $drawPosts(this$static, g); g.context.restore(); g.currentFontSize = g.savedFontSize; } function $dumpXml_0(this$static, elem){ dumpAttr_1(elem, 'x', this$static.x_0 + ' ' + this$static.y_0 + ' ' + this$static.x2 + ' ' + this$static.y2); dumpAttr_0(elem, 'f', this$static.flags); this$static.bits > 0 && dumpAttr_0(elem, 'bi', this$static.bits); this$static.highVoltage != 5 && dumpAttr(elem, 'hv', this$static.highVoltage); this$static.bitOrder != 0 && dumpAttr_0(elem, 'bo', this$static.bitOrder); } function $dumpXmlState(this$static, elem){ var i; for (i = 0; i != this$static.getPostCount_0(); i++) { this$static.pins[i].state && this$static.volts[i] > 0 && dumpAttr(elem, 'v' + i, this$static.volts[i]); } } function $flippedXSide(this$static, s){ if ((this$static.flags & $intern_24) == 0) return s; if (s == 2) return 3; if (s == 3) return 2; return s; } function $getInfo_0(this$static, arr){ var a, i, j, p, shown, t, value_0, number; arr[0] = this$static.getChipName(); a = 1; shown = 0; for (i = 0; i != this$static.getPostCount_0(); i++) { p = this$static.pins[i]; arr[a] != null?(arr[a] += '; '):(arr[a] = ''); t = p.text_0; p.lineOver && (t += "'"); p.clock && (t = 'Clk'); if (p.busWidth > 1) { value_0 = 0; for (j = 0; j < p.busWidth; j++) this$static.volts[i + j] > this$static.highVoltage / 2 && (value_0 |= 1 << this$static.pins[i + j].busZ); arr[a] += t + ' = ' + value_0 + ' / 0x' + (number = value_0 >>> 0 , number.toString(16)).toUpperCase(); i += p.busWidth - 1; } else arr[a] += t + ' = ' + getUnitText(this$static.volts[i], 'V', false); ++shown % 2 == 0 && ++a; } } function $getPinPos(this$static, xp, yp, currentSide, pos){ var curDist, dE, dS, distE, distN, distS, distW, minDist, minDist0, side, x0, xd, xr, y0, yd, yr; x0 = this$static.x_0 + this$static.cspc2; y0 = this$static.y_0; xr = x0 - this$static.cspc; yr = y0 - this$static.cspc; xd = (xp - xr) / this$static.cspc2 - 0.5; yd = (yp - yr) / this$static.cspc2 - 0.5; if (xd >= 0 && xd <= this$static.sizeX && yd >= 0 && yd <= this$static.sizeY) { dE = this$static.sizeX - xd; dS = this$static.sizeY - yd; curDist = currentSide == 0?yd:currentSide == 1?dS:currentSide == 2?xd:dE; minDist0 = $wnd.Math.min($wnd.Math.min(xd, dE), $wnd.Math.min(yd, dS)); curDist <= minDist0 + 1?(side = currentSide):(side = minDist0 == yd?0:minDist0 == dS?1:minDist0 == xd?2:3); pos[0] = side == 0 || side == 1?$wnd.Math.max(0, $wnd.Math.min(toInt_0(fromDouble_0($wnd.Math.round(xd))), this$static.sizeX - 1)):$wnd.Math.max(0, $wnd.Math.min(toInt_0(fromDouble_0($wnd.Math.round(yd))), this$static.sizeY - 1)); pos[1] = side; return true; } distW = xd < 0?-xd:$intern_93; distE = xd > this$static.sizeX?xd - this$static.sizeX:$intern_93; distN = yd < 0?-yd:$intern_93; distS = yd > this$static.sizeY?yd - this$static.sizeY:$intern_93; minDist = $wnd.Math.min($wnd.Math.min(distW, distE), $wnd.Math.min(distN, distS)); if (minDist == distN) { pos[0] = $wnd.Math.max(0, $wnd.Math.min(toInt_0(fromDouble_0($wnd.Math.round(xd))), this$static.sizeX - 1)); pos[1] = 0; } else if (minDist == distS) { pos[0] = $wnd.Math.max(0, $wnd.Math.min(toInt_0(fromDouble_0($wnd.Math.round(xd))), this$static.sizeX - 1)); pos[1] = 1; } else if (minDist == distW) { pos[0] = $wnd.Math.max(0, $wnd.Math.min(toInt_0(fromDouble_0($wnd.Math.round(yd))), this$static.sizeY - 1)); pos[1] = 2; } else { pos[0] = $wnd.Math.max(0, $wnd.Math.min(toInt_0(fromDouble_0($wnd.Math.round(yd))), this$static.sizeY - 1)); pos[1] = 3; } return true; } function $getPost_0(this$static, n){ return this$static.pins[n].post; } function $getPostWidth(this$static, n){ return this$static.pins[n].busWidth; } function $makeBitPins(this$static, count, pos, side, offset, name_0, output, state, reversed){ var i, ii; for (i = 0; i != count; i++) { ii = reversed?offset + count - 1 - i:offset + i; if (this$static.bitOrder == 2) { this$static.pins[ii] = new ChipElm$Pin(this$static, pos, side, name_0); this$static.pins[ii].busWidth = count; this$static.pins[ii].busZ = i; } else this$static.bitOrder == 1?(this$static.pins[ii] = new ChipElm$Pin(this$static, pos + i, side, name_0 + i)):(this$static.pins[ii] = new ChipElm$Pin(this$static, pos + (count - 1 - i), side, name_0 + i)); this$static.pins[ii].output = output; this$static.pins[ii].state = state; } } function $reset_0(this$static){ var i; for (i = 0; i != this$static.getPostCount_0(); i++) { this$static.pins[i].value_0 = false; this$static.pins[i].curcount = 0; this$static.volts[i] = 0; } this$static.lastClock = false; } function $setEditValue(this$static, n, ei){ if (this$static.isDigitalChip()) { if (n == 0) { this$static.highVoltage = ei.value_0; return; } --n; } if (this$static.allowBus()) { if (n == 0) { this$static.bitOrder = $getElement(ei.choice).selectedIndex; this$static.setupPins(); $setPoints_0(this$static); return; } --n; } this$static.setChipEditValue(n, ei); } function $setPoints_0(this$static){ var i, p, x0, xr, xs, y0, yr, ys; this$static.x2 - this$static.x_0 > this$static.sizeX * this$static.cspc2 && app_0.mouse.dragElm == this$static && $setSize_0(this$static, 2); x0 = this$static.x_0 + this$static.cspc2; y0 = this$static.y_0; xr = x0 - this$static.cspc; yr = y0 - this$static.cspc; this$static.flippedSizeX = this$static.sizeX; this$static.flippedSizeY = this$static.sizeY; if ((this$static.flags & $intern_42) != 0) { this$static.flippedSizeX = this$static.sizeY; this$static.flippedSizeY = this$static.sizeX; } xs = this$static.flippedSizeX * this$static.cspc2; ys = this$static.flippedSizeY * this$static.cspc2; for (i = 0; i != this$static.getPostCount_0(); i++) { p = this$static.pins[i]; p.side = p.side0; (this$static.flags & $intern_42) != 0 && (p.side = sideFlipXY[p.side]); switch (p.side) { case 0: $setPoint(p, x0, y0, 1, 0, 0, -1, 0, 0); break; case 1: $setPoint(p, x0, y0, 1, 0, 0, 1, 0, ys - this$static.cspc2); break; case 2: $setPoint(p, x0, y0, 0, 1, -1, 0, 0, 0); break; case 3: $setPoint(p, x0, y0, 0, 1, 1, 0, xs - this$static.cspc2, 0); } } this$static.rectPointsX = stampJavaTypeInfo(getClassLiteralForArray(I_classLit, 1), $intern_25, 7, 15, [xr, xr + xs, xr + xs, xr]); this$static.rectPointsY = stampJavaTypeInfo(getClassLiteralForArray(I_classLit, 1), $intern_25, 7, 15, [yr, yr, yr + ys, yr + ys]); $setBbox(this$static, xr, yr, this$static.rectPointsX[2], this$static.rectPointsY[2]); this$static.labelX = xr + (xs / 2 | 0); this$static.labelY = yr + (ys / 2 | 0); } function $setSize_0(this$static, s){ this$static.csize = s; this$static.cspc = 8 * s; this$static.cspc2 = this$static.cspc * 2; this$static.flags &= -2; this$static.flags |= s == 1?1:0; } function $setVoltageSource(this$static, j, vs){ var i, p; for (i = 0; i != this$static.getPostCount_0(); i++) { p = this$static.pins[i]; if (p.output && j-- == 0) { p.voltSource = vs; $setNodes(vs, ground, this$static.nodes[i]); return; } } $clinit_System(); } function $stamp(this$static){ var i, p, vsc; vsc = 0; for (i = 0; i != this$static.getPostCount_0(); i++) { p = this$static.pins[i]; if (p.output) { $stampVoltageSource(ground, this$static.nodes[i], p.voltSource); ++vsc; } } vsc != this$static.getVoltageSourceCount() && (console.log('voltage source count does not match number of outputs') , undefined); } function $startIteration(this$static){ var i, p; for (i = 0; i != this$static.getPostCount_0(); i++) { p = this$static.pins[i]; p.output || (p.value_0 = this$static.volts[i] > this$static.highVoltage / 2); } this$static.execute_3(); } function $undumpXml_0(this$static, xml){ var i, stateRestore; stateRestore = $parseStringAttr(xml, 'ix', null) != null; stateRestore || (this$static.flags = 0); this$static.flags = $parseIntAttr(xml, 'f', this$static.flags); this$static.bits = $parseIntAttr(xml, 'bi', this$static.bits); this$static.highVoltage = $parseDoubleAttr(xml, 'hv', this$static.highVoltage); this$static.bitOrder = $parseIntAttr(xml, 'bo', this$static.bitOrder); if (!stateRestore) { this$static.setupPins(); $setSize_0(this$static, (this$static.flags & 1) != 0?1:2); } for (i = 0; i != this$static.getPostCount_0(); i++) { this$static.volts[i] = $parseDoubleAttr(xml, 'v' + i, 0); this$static.pins != null && (this$static.pins[i].value_0 = this$static.volts[i] > this$static.highVoltage / 2); } } function $writeOutput(this$static, n, value_0){ this$static.pins[n].output || (console.log('pin ' + n + ' is not an output!') , undefined); this$static.pins[n].value_0 = value_0; } function ChipElm(xx, yy){ $clinit_ChipElm(); CircuitElm.call(this, xx, yy); this.needsBits() && (this.bits = this.defaultBitCount()); this.highVoltage = 5; this.noDiagonal = true; this.setupPins(); $setSize_0(this, app_0.menus.smallGridCheckItem.on?1:2); } function ChipElm_0(xa, ya, xb, yb, f, st){ $clinit_ChipElm(); var i; CircuitElm_0.call(this, xa, ya, xb, yb, f); this.needsBits() && ($hasMoreTokens(st)?(this.bits = (new Integer_0($nextToken(st))).value_0):(this.bits = this.defaultBitCount())); this.highVoltage = (this.flags & 8192) != 0?__parseAndValidateDouble($nextToken(st)):5; this.noDiagonal = true; this.setupPins(); $setSize_0(this, (f & 1) != 0?1:2); for (i = 0; i != this.getPostCount_0(); i++) { if (this.pins == null) this.volts[i] = $doubleValue(__parseAndValidateDouble($nextToken(st))); else if (this.pins[i].state) { this.volts[i] = $doubleValue(__parseAndValidateDouble($nextToken(st))); this.pins[i].value_0 = this.volts[i] > this.highVoltage / 2; } } } function readBits(st, output){ var bitIndex, i, integer; integer = 0; bitIndex = $intern_0; for (i = 0; i < output.length; i++) { if (bitIndex >= 32) if ($hasMoreTokens(st)) { integer = __parseAndValidateInt($nextToken(st), 10); bitIndex = 0; } else break; output[i] = (integer & 1 << bitIndex) != 0; ++bitIndex; } } function readBitsFromString(s, output){ var bitIndex, i, integer, st; st = new StringTokenizer_0(s, ' '); integer = 0; bitIndex = $intern_0; for (i = 0; i < output.length; i++) { if (bitIndex >= 32) if ($hasMoreTokens(st)) { integer = __parseAndValidateInt($nextToken(st), 10); bitIndex = 0; } else break; output[i] = (integer & 1 << bitIndex) != 0; ++bitIndex; } } function writeBitsToString(data_0){ var bitIndex, i, integer, sb; sb = new StringBuilder; integer = 0; bitIndex = 0; for (i = 0; i < data_0.length; i++) { if (bitIndex >= 32) { sb.string.length > 0 && (sb.string += ' ' , sb); sb.string += integer; integer = 0; bitIndex = 0; } data_0[i] && (integer |= 1 << bitIndex); ++bitIndex; } sb.string.length > 0 && (sb.string += ' ' , sb); sb.string += integer; return sb.string; } defineClass(32, 8, $intern_85); _.addRoutingObstacle = function addRoutingObstacle_2(router){ $addRoutingObstacle(this, router); } ; _.allowBus = function allowBus(){ return false; } ; _.defaultBitCount = function defaultBitCount(){ return 4; } ; _.doStep = function doStep_2(){ $doStep(this); } ; _.drag = function drag_0(xx, yy){ yy = $snapGrid_0(app_0, yy); if (xx < this.x_0) ; else { this.y_0 = this.y2 = yy; this.x2 = min_1($snapGrid_0(app_0, xx), this.x_0 + (this.sizeX + 1) * this.cspc2); } $setPoints_0(this); } ; _.draw = function draw_2(g){ $drawChip(this, g); } ; _.drawLabel = function drawLabel(g, x_0, y_0){ } ; _.dumpXml = function dumpXml_1(doc, elem){ $dumpXml_0(this, elem); } ; _.dumpXmlState = function dumpXmlState_0(doc, elem){ $dumpXmlState(this, elem); } ; _.execute_3 = function execute_14(){ } ; _.flipX = function flipX_1(center2, count){ var xs; this.flags ^= $intern_24; if (count != 1) { xs = (this.flippedSizeX + 1) * this.cspc2; this.x_0 = center2 - this.x_0 - xs; this.x2 = center2 - this.x2; } $setPoints_0(this); } ; _.flipXY = function flipXY_0(xmy, count){ this.flags ^= $intern_42; (this.flags & $intern_24) != 0 != ((this.flags & $intern_43) != 0) && (this.flags ^= 3072); if (count != 1) { this.x_0 += this.cspc2; $flipXY(this, xmy); this.x_0 -= this.cspc2; } $setPoints_0(this); } ; _.flipY = function flipY_1(center2, count){ var ys; this.flags ^= $intern_43; if (count != 1) { ys = (this.flippedSizeY - 1) * this.cspc2; this.y_0 = center2 - this.y_0 - ys; this.y2 = center2 - this.y2; } $setPoints_0(this); } ; _.getChipEditInfo = function getChipEditInfo(n){ return null; } ; _.getChipName = function getChipName(){ return 'chip'; } ; _.getConnection = function getConnection_0(n1, n2){ return false; } ; _.getCurrentIntoNode = function getCurrentIntoNode_0(n){ if (n < 0 || n >= this.pins.length) return 0; return this.pins[n].current; } ; _.getEditInfo = function getEditInfo_1(n){ var ei; if (this.isDigitalChip()) { if (n == 0) return $setUnitStep(new EditInfo('High Logic Voltage', this.highVoltage)); --n; } if (this.allowBus()) { if (n == 0) { ei = new EditInfo_0('Bit Order', 0, -1, -1); ei.choice = new Choice; $addItem(ei.choice, LS('MSB First')); $addItem(ei.choice, LS('LSB First')); $addItem(ei.choice, LS('Bus')); $select(ei.choice, this.bitOrder); return ei; } --n; } return this.getChipEditInfo(n); } ; _.getInfo_0 = function getInfo_1(arr){ $getInfo_0(this, arr); } ; _.getNumHandles = function getNumHandles_0(){ return 0; } ; _.getPost = function getPost_0(n){ return $getPost_0(this, n); } ; _.getPostWidth = function getPostWidth_0(n){ return $getPostWidth(this, n); } ; _.hasGroundConnection = function hasGroundConnection_1(n1){ return this.pins[n1].output; } ; _.initBoundingBox = function initBoundingBox_0(){ var fsx, fsy, xr, xs, yr, ys; this.boundingBox = new Rectangle; $setBounds(this.boundingBox, min_1(this.x_0, this.x2), min_1(this.y_0, this.y2), abs_0(this.x2 - this.x_0) + 1, abs_0(this.y2 - this.y_0) + 1); if (this.pins == null || this.cspc == 0) return; xr = this.x_0 + this.cspc2 - this.cspc; yr = this.y_0 - this.cspc; fsx = (this.flags & $intern_42) != 0?this.sizeY:this.sizeX; fsy = (this.flags & $intern_42) != 0?this.sizeX:this.sizeY; xs = fsx * this.cspc2; ys = fsy * this.cspc2; $setBbox(this, xr, yr, xr + xs, yr + ys); } ; _.isDigitalChip = function isDigitalChip(){ return true; } ; _.needsBits = function needsBits(){ return false; } ; _.reset_0 = function reset_2(){ $reset_0(this); } ; _.setChipEditValue = function setChipEditValue(n, ei){ } ; _.setCurrent = function setCurrent_0(vs, c){ var i; for (i = 0; i != this.getPostCount_0(); i++) this.pins[i].output && this.pins[i].voltSource == vs && (this.pins[i].current = c); } ; _.setEditValue = function setEditValue_1(n, ei){ $setEditValue(this, n, ei); } ; _.setHighVoltage = function setHighVoltage_0(hv){ this.highVoltage = hv; } ; _.setPoints = function setPoints_2(){ $setPoints_0(this); } ; _.setVoltageSource = function setVoltageSource_2(j, vs){ $setVoltageSource(this, j, vs); } ; _.stamp = function stamp_2(){ $stamp(this); } ; _.startIteration = function startIteration_0(){ $startIteration(this); } ; _.undumpXml = function undumpXml_1(xml){ $undumpXml_0(this, xml); } ; _.validate = function validate_2(){ var i; for (i = 0; i != this.getPostCount_0(); i++) if (this.pins[i].output && !$validateRailNode(this, i)) return false; return true; } ; _.bitOrder = 0; _.bits = 0; _.csize = 0; _.cspc = 0; _.cspc2 = 0; _.flippedSizeX = 0; _.flippedSizeY = 0; _.highVoltage = 0; _.labelX = 0; _.labelY = 0; _.lastClock = false; _.sizeX = 0; _.sizeY = 0; var sideFlipXY; var Lcom_lushprojects_circuitjs1_client_ChipElm_2_classLit = createForClass('com.lushprojects.circuitjs1.client', 'ChipElm', 32); function $setupPins(this$static){ var bitsY; this$static.sizeX = 2; bitsY = this$static.bitOrder == 2?1:this$static.bits > 2?this$static.bits:2; this$static.sizeY = bitsY > 2?bitsY:2; this$static.pins = initUnidimensionalArray(Lcom_lushprojects_circuitjs1_client_ChipElm$Pin_2_classLit, $intern_3, 9, this$static.bits + 2, 0, 1); $makeBitPins(this$static, this$static.bits, 0, 3, 0, 'D', true, false, false); this$static.pins[this$static.bits] = new ChipElm$Pin(this$static, 0, 2, 'In'); this$static.pins[this$static.bits + 1] = new ChipElm$Pin(this$static, this$static.sizeY - 1, 2, 'V+'); $allocNodes(this$static); } function ADCElm(xx, yy){ $clinit_ChipElm(); ChipElm.call(this, xx, yy); } function ADCElm_0(xa, ya, xb, yb, f, st){ $clinit_ChipElm(); ChipElm_0.call(this, xa, ya, xb, yb, f, st); } defineClass(392, 32, $intern_85, ADCElm, ADCElm_0); _.allowBus = function allowBus_0(){ return true; } ; _.execute_3 = function execute_15(){ var i, imax, ival, val; imax = (1 << this.bits) - 1; val = imax * this.volts[this.bits] / this.volts[this.bits + 1]; ival = round_int(val); ival = imax < (0 > ival?0:ival)?imax:0 > ival?0:ival; for (i = 0; i != this.bits; i++) this.pins[i].value_0 = (ival & 1 << i) != 0; } ; _.getChipEditInfo = function getChipEditInfo_0(n){ if (n == 0) return $setDimensionless(new EditInfo_0('# of Bits', this.bits, 1, 1)); return null; } ; _.getChipName = function getChipName_0(){ return 'ADC'; } ; _.getDumpType = function getDumpType_2(){ return 167; } ; _.getPostCount_0 = function getPostCount_1(){ return this.bits + 2; } ; _.getVoltageSourceCount = function getVoltageSourceCount_1(){ return this.bits; } ; _.isDigitalChip = function isDigitalChip_0(){ return false; } ; _.needsBits = function needsBits_0(){ return true; } ; _.setChipEditValue = function setChipEditValue_0(n, ei){ if (n == 0) { if (ei.value_0 >= 2) { this.bits = round_int(ei.value_0); $setupPins(this); $setPoints_0(this); } else ei.error = 'must be >= 2'; } } ; _.setupPins = function setupPins(){ $setupPins(this); } ; var Lcom_lushprojects_circuitjs1_client_ADCElm_2_classLit = createForClass('com.lushprojects.circuitjs1.client', 'ADCElm', 392); function $drawWaveform_0(this$static, g, center){ var xc, yc; $setColor_0(g, mouseElmRef == this$static || this$static.selected_0 || $containsKey(app_0.mouse.scopePlotRoles, this$static) || instanceOf(mouseElmRef, 21) && $getElm_0(mouseElmRef.elmScope) == this$static || $isOnHighlightedNet(this$static)?selectColor_0:($clinit_Color() , gray)); $setPowerColor_0(this$static, g); xc = center.x_0; yc = center.y_0; drawThickCircle(g, xc, yc, 17); $adjustBbox(this$static, xc - 17, yc - 17, xc + 17, yc + 17); } function AMElm(xx, yy){ CircuitElm.call(this, xx, yy); this.maxVoltage = 5; this.carrierfreq = $intern_22; this.signalfreq = 40; this.freqTimeZero = 0; this.curcount_0 = 0; } function AMElm_0(xa, ya, xb, yb, f, st){ CircuitElm_0.call(this, xa, ya, xb, yb, f); this.carrierfreq = $doubleValue(__parseAndValidateDouble($nextToken(st))); this.signalfreq = $doubleValue(__parseAndValidateDouble($nextToken(st))); this.maxVoltage = $doubleValue(__parseAndValidateDouble($nextToken(st))); (this.flags & 2) != 0 && (this.flags &= -3); this.freqTimeZero = 0; this.curcount_0 = 0; } defineClass(403, 8, $intern_85, AMElm, AMElm_0); _.doStep = function doStep_3(){ var w; $updateVoltageSource(this.voltSource, (w = $intern_2 * (sim_0.t - this.freqTimeZero) , ($wnd.Math.sin(w * this.signalfreq) + 1) / 2 * $wnd.Math.sin(w * this.carrierfreq) * this.maxVoltage)); } ; _.draw = function draw_3(g){ var f, w; $setBbox_0(this, this.point1, this.point2, 17); $setVoltageColor(this, g, this.volts[0]); drawThickLine_0(g, this.point1, this.lead1, 3); f = new Font('SansSerif', 0, 12); $setFont_0(g, f); $setColor_0(g, mouseElmRef == this || this.selected_0 || $containsKey(app_0.mouse.scopePlotRoles, this) || instanceOf(mouseElmRef, 21) && $getElm_0(mouseElmRef.elmScope) == this || $isOnHighlightedNet(this)?selectColor_0:whiteColor); $setPowerColor_0(this, g); w = $intern_2 * (sim_0.t - this.freqTimeZero); ($wnd.Math.sin(w * this.signalfreq) + 1) / 2 * $wnd.Math.sin(w * this.carrierfreq) * this.maxVoltage; $drawCenteredText(this, g, 'AM', this.x2, this.y2, true); $drawWaveform_0(this, g, this.point2); $drawPosts(this, g); this.curcount_0 = $updateDotCount(-this.current_0, this.curcount_0); app_0.mouse.dragElm == this || $drawDots(g, this.point1, this.lead1, this.curcount_0); } ; _.dumpXml = function dumpXml_2(doc, elem){ dumpAttr_1(elem, 'x', this.x_0 + ' ' + this.y_0 + ' ' + this.x2 + ' ' + this.y2); dumpAttr_0(elem, 'f', this.flags); dumpAttr(elem, 'cf', this.carrierfreq); dumpAttr(elem, 'sf', this.signalfreq); dumpAttr(elem, 'mv', this.maxVoltage); } ; _.getDumpType = function getDumpType_3(){ return 200; } ; _.getEditInfo = function getEditInfo_2(n){ if (n == 0) return $setUnitStep(new EditInfo_0('Max Voltage', this.maxVoltage, -20, 20)); if (n == 1) return new EditInfo_0('Carrier Frequency (Hz)', this.carrierfreq, 4, 500); if (n == 2) return new EditInfo_0('Signal Frequency (Hz)', this.signalfreq, 4, 500); return null; } ; _.getInfo_0 = function getInfo_2(arr){ arr[0] = 'AM Source'; arr[1] = 'I = ' + getUnitText(this.current_0, 'A', false); arr[2] = 'V = ' + getUnitText(this.volts[0], 'V', false); arr[3] = 'cf = ' + getUnitText(this.carrierfreq, 'Hz', false); arr[4] = 'sf = ' + getUnitText(this.signalfreq, 'Hz', false); arr[5] = 'Vmax = ' + getUnitText(this.maxVoltage, 'V', false); } ; _.getPostCount_0 = function getPostCount_2(){ return 1; } ; _.getPower = function getPower_1(){ return -this.volts[0] * this.current_0; } ; _.getVoltageDiff_0 = function getVoltageDiff_2(){ return this.volts[0]; } ; _.getVoltageSourceCount = function getVoltageSourceCount_2(){ return 1; } ; _.hasGroundConnection = function hasGroundConnection_2(n1){ return true; } ; _.reset_0 = function reset_3(){ this.freqTimeZero = 0; this.curcount_0 = 0; } ; _.setEditValue = function setEditValue_2(n, ei){ n == 0 && (this.maxVoltage = ei.value_0); n == 1 && (this.carrierfreq = ei.value_0); n == 2 && (this.signalfreq = ei.value_0); } ; _.setPoints = function setPoints_3(){ $setPoints(this); this.lead1 = $interpPoint(this.point1, this.point2, 1 - 17 / this.dn); } ; _.stamp = function stamp_3(){ $stampVoltageSource(ground, this.nodes[0], this.voltSource); } ; _.undumpXml = function undumpXml_2(xml){ this.flags = $parseIntAttr(xml, 'f', this.flags); this.carrierfreq = $parseDoubleAttr(xml, 'cf', this.carrierfreq); this.signalfreq = $parseDoubleAttr(xml, 'sf', this.signalfreq); this.maxVoltage = $parseDoubleAttr(xml, 'mv', this.maxVoltage); this.freqTimeZero = 0; this.curcount_0 = 0; } ; _.validate = function validate_3(){ return $validateRailNode(this, 0); } ; _.carrierfreq = 0; _.freqTimeZero = 0; _.maxVoltage = 0; _.signalfreq = 0; var Lcom_lushprojects_circuitjs1_client_AMElm_2_classLit = createForClass('com.lushprojects.circuitjs1.client', 'AMElm', 403); function AboutBox(){ var sstor; PopupPanel.call(this); sstor = (!sessionStorage_0 && ($clinit_Storage$StorageSupportDetector() , sessionStorageSupported) && (sessionStorage_0 = new Storage_0('sessionStorage')) , sessionStorage_0); $setItem_0(sstor.storage, 'versionString', '4.1.4js'); this.vp = new VerticalPanel; $setWidget_0(this, this.vp); $setWidth(this.vp, '400px'); $add_5(this.vp, new HTML_0('