try{(function(scriptParts){var _ns_static_loaded=new Date().getTime();scriptParts.gummibear=function(syso){this.exception=null;this.mock={};this.mock.debug={showDebugInfo:function(elem){elem.innerHTML="not implemented here"}};this.mock.utils={getNow:function(){return(new Date()).getTime()},byId:function(id){return document.getElementById(id)},shallowCopy:function(obj){var ret={};for(var i in obj){if(!obj.hasOwnProperty(i)){continue}ret[i]=obj[i]}return ret},hyp:new RegExp(unescape("%AD"),"g"),unhyphen:function(word){return word.replace(this.hyp,"")}};this.init=function(rootName,root){try{syso("gummibear init to "+rootName);root.gummibear=this;this.modules={};var gmiter_target=rootName+".gummibear";var gummiTarget=root.gummibear;new function(){ var gummiHash='1537485370263'; var gummiDetectBrowser = function(){ var ua = navigator.userAgent.toLowerCase(); var makeVersion = function(result){ return parseInt(result[1]) * 1000 + parseInt(result[2]); } ; if (function(){ return ua.indexOf('webkit') != -1; } ()) return 'safari'; if (function(){ return ua.indexOf('msie') != -1 && document.documentMode >= 10; } ()) return 'ie10'; if (function(){ return ua.indexOf('msie') != -1 && document.documentMode >= 9; } ()) return 'ie9'; if (function(){ return ua.indexOf('msie') != -1 && document.documentMode >= 8; } ()) return 'ie8'; if (function(){ return ua.indexOf('gecko') != -1; } ()) return 'gecko1_8'; if (function(){ return ua.indexOf('googlebot') != -1; } ()) return 'googlebot'; return 'unknown'; }; //Kompatybilno���� var gmiterHash = gummiHash var gmiterDetectBrowser = gummiDetectBrowser switch (gummiDetectBrowser()) { case 'unknown': new function(){ var gmodule='gummibear.boxstatic'; if(typeof(gummiTarget.boxstatic) == "undefined"){ gummiTarget.boxstatic = {}} gummiTarget.boxstatic.gwtfunction = function (){ var $wnd_0 = window; var $doc_0 = document; sendStats('bootstrap', 'begin'); function isHostedMode(){ var query = $wnd_0.location.search; return query.indexOf('gwt.codesvr.gummibear.boxstatic=') != -1 || query.indexOf('gwt.codesvr=') != -1; } function sendStats(evtGroupString, typeString){ if ($wnd_0.__gwtStatsEvent) { $wnd_0.__gwtStatsEvent({moduleName:'gummibear.boxstatic', sessionId:$wnd_0.__gwtStatsSessionId, subSystem:'startup', evtGroup:evtGroupString, millis:(new Date).getTime(), type:typeString}); } } gummiTarget.boxstatic.gwtfunction.__sendStats = sendStats; gummiTarget.boxstatic.gwtfunction.__moduleName = 'gummibear.boxstatic'; gummiTarget.boxstatic.gwtfunction.__errFn = null; gummiTarget.boxstatic.gwtfunction.__moduleBase = 'DUMMY'; gummiTarget.boxstatic.gwtfunction.__softPermutationId = 0; gummiTarget.boxstatic.gwtfunction.__computePropValue = null; gummiTarget.boxstatic.gwtfunction.__getPropMap = null; gummiTarget.boxstatic.gwtfunction.__installRunAsyncCode = function(){ } ; gummiTarget.boxstatic.gwtfunction.__gwtStartLoadingFragment = function(){ return null; } ; gummiTarget.boxstatic.gwtfunction.__gwt_isKnownPropertyValue = function(){ return false; } ; gummiTarget.boxstatic.gwtfunction.__gwt_getMetaProperty = function(){ return null; } ; var __propertyErrorFunction = null; var activeModules = $wnd_0.__gwt_activeModules = $wnd_0.__gwt_activeModules || {}; activeModules['gummibear.boxstatic'] = {moduleName:'gummibear.boxstatic'}; gummiTarget.boxstatic.gwtfunction.__moduleStartupDone = function(permProps){ var oldBindings = activeModules['gummibear.boxstatic'].bindings; activeModules['gummibear.boxstatic'].bindings = function(){ var props = oldBindings?oldBindings():{}; var embeddedProps = permProps[gummiTarget.boxstatic.gwtfunction.__softPermutationId]; for (var i = 0; i < embeddedProps.length; i++) { var pair = embeddedProps[i]; props[pair[0]] = pair[1]; } return props; } ; } ; var frameDoc; function getInstallLocationDoc(){ setupInstallLocation(); return frameDoc; } function setupInstallLocation(){ if (frameDoc) { return; } var scriptFrame = $doc_0.createElement('iframe'); scriptFrame.src = 'javascript:""'; scriptFrame.id = 'gummibear.boxstatic'; scriptFrame.style.cssText = 'position:absolute; width:0; height:0; border:none; left: -1000px;' + ' top: -1000px;'; scriptFrame.tabIndex = -1; $doc_0.body.appendChild(scriptFrame); frameDoc = scriptFrame.contentDocument; if (!frameDoc) { frameDoc = scriptFrame.contentWindow.document; } frameDoc.open(); var doctype = document.compatMode == 'CSS1Compat'?'':''; frameDoc.write(doctype + '<\/head><\/body><\/html>'); frameDoc.close(); } function installScript(filename){ function setupWaitForBodyLoad(callback){ function isBodyLoaded(){ if (typeof $doc_0.readyState == 'undefined') { return typeof $doc_0.body != 'undefined' && $doc_0.body != null; } return /loaded|complete/.test($doc_0.readyState); } var bodyDone = isBodyLoaded(); if (bodyDone) { callback(); return; } function onBodyDone(){ if (!bodyDone) { bodyDone = true; callback(); if ($doc_0.removeEventListener) { $doc_0.removeEventListener('DOMContentLoaded', onBodyDone, false); } if (onBodyDoneTimerId) { clearInterval(onBodyDoneTimerId); } } } if ($doc_0.addEventListener) { $doc_0.addEventListener('DOMContentLoaded', onBodyDone, false); } var onBodyDoneTimerId = setInterval(function(){ if (isBodyLoaded()) { onBodyDone(); } } , 50); } function installCode(code_0){ var doc = getInstallLocationDoc(); var docbody = doc.body; var script = doc.createElement('script'); script.language = 'javascript'; script.src = code_0; if (gummiTarget.boxstatic.gwtfunction.__errFn) { script.onerror = function(){ gummiTarget.boxstatic.gwtfunction.__errFn('gummiTarget.boxstatic.gwtfunction', new Error('Failed to load ' + code_0)); } ; } docbody.appendChild(script); sendStats('moduleStartup', 'scriptTagAdded'); } sendStats('moduleStartup', 'moduleRequested'); setupWaitForBodyLoad(function(){ installCode(filename); } ); } gummiTarget.boxstatic.gwtfunction.__startLoadingFragment = function(fragmentFile){ return computeUrlForResource(fragmentFile); } ; gummiTarget.boxstatic.gwtfunction.__installRunAsyncCode = function(code_0){ var doc = getInstallLocationDoc(); var docbody = doc.body; var script = doc.createElement('script'); script.language = 'javascript'; script.text = code_0; docbody.appendChild(script); } ; function processMetas(){ var metaProps = {}; var propertyErrorFunc; var onLoadErrorFunc; var metas = $doc_0.getElementsByTagName('meta'); for (var i = 0, n = metas.length; i < n; ++i) { var meta = metas[i], name_1 = meta.getAttribute('name'), content_0; if (name_1) { name_1 = name_1.replace('gummibear.boxstatic::', ''); if (name_1.indexOf('::') >= 0) { continue; } if (name_1 == 'gwt:property') { content_0 = meta.getAttribute('content'); if (content_0) { var value_1, eq = content_0.indexOf('='); if (eq >= 0) { name_1 = content_0.substring(0, eq); value_1 = content_0.substring(eq + 1); } else { name_1 = content_0; value_1 = ''; } metaProps[name_1] = value_1; } } else if (name_1 == 'gwt:onPropertyErrorFn') { content_0 = meta.getAttribute('content'); if (content_0) { try { propertyErrorFunc = eval(content_0); } catch (e) { alert('Bad handler "' + content_0 + '" for "gwt:onPropertyErrorFn"'); } } } else if (name_1 == 'gwt:onLoadErrorFn') { content_0 = meta.getAttribute('content'); if (content_0) { try { onLoadErrorFunc = eval(content_0); } catch (e) { alert('Bad handler "' + content_0 + '" for "gwt:onLoadErrorFn"'); } } } } } __gwt_getMetaProperty = function(name_0){ var value_0 = metaProps[name_0]; return value_0 == null?null:value_0; } ; __propertyErrorFunction = propertyErrorFunc; gummiTarget.boxstatic.gwtfunction.__errFn = onLoadErrorFunc; } function computeScriptBase(){ function getDirectoryOfFile(path){ var hashIndex = path.lastIndexOf('#'); if (hashIndex == -1) { hashIndex = path.length; } var queryIndex = path.indexOf('?'); if (queryIndex == -1) { queryIndex = path.length; } var slashIndex = path.lastIndexOf('/', Math.min(queryIndex, hashIndex)); return slashIndex >= 0?path.substring(0, slashIndex + 1):''; } function ensureAbsoluteUrl(url_0){ if (url_0.match(/^\w+:\/\//)) { } else { var img = $doc_0.createElement('img'); img.src = url_0 + 'clear.cache.gif'; url_0 = getDirectoryOfFile(img.src); } return url_0; } function tryMetaTag(){ var metaVal = __gwt_getMetaProperty('baseUrl'); if (metaVal != null) { return metaVal; } return ''; } function tryNocacheJsTag(){ var scriptTags = $doc_0.getElementsByTagName('script'); for (var i = 0; i < scriptTags.length; ++i) { if (scriptTags[i].src.indexOf('gummibear.boxstatic.nocache.js') != -1) { return getDirectoryOfFile(scriptTags[i].src); } } return ''; } function tryBaseTag(){ var baseElements = $doc_0.getElementsByTagName('base'); if (baseElements.length > 0) { return baseElements[baseElements.length - 1].href; } return ''; } function isLocationOk(){ var loc = $doc_0.location; return loc.href == loc.protocol + '//' + loc.host + loc.pathname + loc.search + loc.hash; } var tempBase = tryMetaTag(); if (tempBase == '') { tempBase = tryNocacheJsTag(); } if (tempBase == '') { tempBase = tryBaseTag(); } if (tempBase == '' && isLocationOk()) { tempBase = getDirectoryOfFile($doc_0.location.href); } tempBase = ensureAbsoluteUrl(tempBase); return tempBase; } function computeUrlForResource(resource){ if (resource.match(/^\//)) { return resource; } if (resource.match(/^[a-zA-Z]+:\/\//)) { return resource; } return gummiTarget.boxstatic.gwtfunction.__moduleBase + resource; } function loadExternalStylesheets(){ if (!$wnd_0.__gwt_stylesLoaded) { $wnd_0.__gwt_stylesLoaded = {}; } sendStats('loadExternalRefs', 'begin'); sendStats('loadExternalRefs', 'end'); } processMetas(); gummiTarget.boxstatic.gwtfunction.__moduleBase = computeScriptBase(); activeModules['gummibear.boxstatic'].moduleBase = gummiTarget.boxstatic.gwtfunction.__moduleBase; if ($wnd_0) { var devModePermitted = !!($wnd_0.location.protocol == 'http:' || $wnd_0.location.protocol == 'file:'); $wnd_0.__gwt_activeModules['gummibear.boxstatic'].canRedirect = devModePermitted; function supportsSessionStorage(){ var key = '_gwt_dummy_'; try { $wnd_0.sessionStorage.setItem(key, key); $wnd_0.sessionStorage.removeItem(key); return true; } catch (e) { return false; } } if (devModePermitted && supportsSessionStorage()) { var devModeKey = '__gwtDevModeHook:gummibear.boxstatic'; var devModeUrl = $wnd_0.sessionStorage[devModeKey]; if (!/^http:\/\/(localhost|127\.0\.0\.1)(:\d+)?\/.*$/.test(devModeUrl)) { if (devModeUrl && (window.console && console.log)) { console.log('Ignoring non-whitelisted Dev Mode URL: ' + devModeUrl); } devModeUrl = ''; } if (devModeUrl && !$wnd_0[devModeKey]) { $wnd_0[devModeKey] = true; $wnd_0[devModeKey + ':moduleBase'] = computeScriptBase(); var devModeScript = $doc_0.createElement('script'); devModeScript.src = devModeUrl; var head = $doc_0.getElementsByTagName('head')[0]; head.insertBefore(devModeScript, head.firstElementChild || head.children[0]); return false; } } } sendStats('bootstrap', 'end'); return true; } gummiTarget.boxstatic.gwtfunction.succeeded = gummiTarget.boxstatic.gwtfunction(); var $wnd = $wnd || window var __gwtModuleFunction = gummiTarget.boxstatic.gwtfunction var $sendStats = __gwtModuleFunction.__sendStats; $sendStats('moduleStartup', 'moduleEvalStart'); var $gwt_version = "2.7.0"; var $strongName = 'unknown'; var $gwt = {}; var $doc = $wnd.document; var $moduleName, $moduleBase; function __gwtStartLoadingFragment(frag) { var fragFile = 'deferredjs/' + $strongName + '/' + frag + '.cache.js'; return __gwtModuleFunction.__startLoadingFragment(fragFile); } function __gwtInstallCode(code) {return __gwtModuleFunction.__installRunAsyncCode(code);} function __gwt_isKnownPropertyValue(propName, propValue) { return __gwtModuleFunction.__gwt_isKnownPropertyValue(propName, propValue); } function __gwt_getMetaProperty(name) { return __gwtModuleFunction.__gwt_getMetaProperty(name); } var $stats = $wnd.__gwtStatsEvent ? function(a) { return $wnd.__gwtStatsEvent && $wnd.__gwtStatsEvent(a); } : null; var $sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null; var $intern_0 = {3:1, 6:1}, $intern_1 = 4194303, $intern_2 = {3:1}, $intern_3 = {3:1, 112:1}, $intern_4 = {3:1, 8:1}, $intern_5 = {16:1, 3:1, 9:1, 7:1}, $intern_6 = {32:1}, $intern_7 = {11:1}, $intern_8 = {3:1, 23:1}; var _, initFnList_0, prototypesByTypeId_0 = {}, permutationId = -1; function typeMarkerFn(){ } function portableObjCreate(obj){ function F(){ } ; F.prototype = obj || {}; return new F; } function modernizeBrowser(){ !Array.isArray && (Array.isArray = function(vArg){ return Object.prototype.toString.call(vArg) === '[object Array]'; } ); } function maybeGetClassLiteralFromPlaceHolder_0(entry){ return entry instanceof Array?entry[0]:null; } function emptyMethod(){ } function defineClass(typeId, superTypeId, castableTypeMap){ var prototypesByTypeId = prototypesByTypeId_0; var createSubclassPrototype = createSubclassPrototype_0; var maybeGetClassLiteralFromPlaceHolder = maybeGetClassLiteralFromPlaceHolder_0; var prototype_0 = prototypesByTypeId[typeId]; var clazz = maybeGetClassLiteralFromPlaceHolder(prototype_0); if (prototype_0 && !clazz) { _ = prototype_0; } else { _ = prototypesByTypeId[typeId] = !superTypeId?{}:createSubclassPrototype(superTypeId); _.castableTypeMap$ = castableTypeMap; _.constructor = _; !superTypeId && (_.typeMarker$ = typeMarkerFn); } for (var i_0 = 3; i_0 < arguments.length; ++i_0) { arguments[i_0].prototype = _; } clazz && (_.___clazz$ = clazz); } function createSubclassPrototype_0(superTypeId){ var prototypesByTypeId = prototypesByTypeId_0; return portableObjCreate(prototypesByTypeId[superTypeId]); } function setGwtProperty(propertyName, propertyValue){ typeof window === 'object' && typeof window['$gwt'] === 'object' && (window['$gwt'][propertyName] = propertyValue); } function registerEntry(){ return entry_0; } function gwtOnLoad_0(errFn, modName, modBase, softPermutationId){ ensureModuleInit(); var initFnList = initFnList_0; $moduleName = modName; $moduleBase = modBase; permutationId = softPermutationId; function initializeModules(){ for (var i_0 = 0; i_0 < initFnList.length; i_0++) { initFnList[i_0](); } } if (errFn) { try { $entry(initializeModules)(); } catch (e) { errFn(modName, e); } } else { $entry(initializeModules)(); } } function ensureModuleInit(){ initFnList_0 == null && (initFnList_0 = []); } function addInitFunctions(){ ensureModuleInit(); var initFnList = initFnList_0; for (var i_0 = 0; i_0 < arguments.length; i_0++) { initFnList.push(arguments[i_0]); } } function Object_0(){ } function equals_Ljava_lang_Object__Z__devirtual$(this$static, other){ return isJavaString(this$static)?$equals_5(this$static, other):hasJavaObjectVirtualDispatch(this$static)?this$static.equals$(other):isJavaArray(this$static)?this$static === other:this$static === other; } function getClass__Ljava_lang_Class___devirtual$(this$static){ return isJavaString(this$static)?Ljava_lang_String_2_classLit:hasJavaObjectVirtualDispatch(this$static)?this$static.___clazz$:isJavaArray(this$static)?this$static.___clazz$:Lcom_google_gwt_core_client_JavaScriptObject_2_classLit; } function hashCode__I__devirtual$(this$static){ return isJavaString(this$static)?getHashCode_0(this$static):hasJavaObjectVirtualDispatch(this$static)?this$static.hashCode$():isJavaArray(this$static)?getHashCode(this$static):getHashCode(this$static); } defineClass(1, null, {}, Object_0); _.equals$ = function equals(other){ return this === other; } ; _.getClass$ = function getClass_0(){ return this.___clazz$; } ; _.hashCode$ = function hashCode_0(){ return getHashCode(this); } ; _.toString$ = function toString_0(){ return $getName(getClass__Ljava_lang_Class___devirtual$(this)) + '@' + toUnsignedRadixString(hashCode__I__devirtual$(this), 16); } ; _.toString = function(){ return this.toString$(); } ; stringCastMap = {3:1, 136:1, 9:1, 2:1}; modernizeBrowser(); function canCast(src_0, dstId){ return isJavaString(src_0) && !!stringCastMap[dstId] || src_0.castableTypeMap$ && !!src_0.castableTypeMap$[dstId]; } function charToString(x_0){ return String.fromCharCode(x_0); } function dynamicCast(src_0, dstId){ if (src_0 != null && !canCast(src_0, dstId)) { throw new ClassCastException; } return src_0; } function dynamicCastJso(src_0){ if (src_0 != null && !(!isJavaString(src_0) && !hasTypeMarker(src_0))) { throw new ClassCastException; } return src_0; } function hasJavaObjectVirtualDispatch(src_0){ return !instanceofArray(src_0) && hasTypeMarker(src_0); } function instanceOf(src_0, dstId){ return src_0 != null && canCast(src_0, dstId); } function instanceOfJso(src_0){ return src_0 != null && !isJavaString(src_0) && !hasTypeMarker(src_0); } function instanceofArray(src_0){ return Array.isArray(src_0); } function isJavaArray(src_0){ return instanceofArray(src_0) && hasTypeMarker(src_0); } function isJavaString(src_0){ return typeof src_0 === 'string'; } function maskUndefined(src_0){ return src_0 == null?null:src_0; } function round_int(x_0){ return ~~Math.max(Math.min(x_0, 2147483647), -2147483648); } var stringCastMap; function $ensureNamesAreInitialized(this$static){ if (this$static.typeName != null) { return; } initializeNames(this$static); } function $getName(this$static){ $ensureNamesAreInitialized(this$static); return this$static.typeName; } function Class(){ ++nextSequentialId; this.typeName = null; this.simpleName = null; this.packageName = null; this.compoundName = null; this.canonicalName = null; this.typeId = null; this.arrayLiterals = null; } function createClassObject(packageName, compoundClassName){ var clazz; clazz = new Class; clazz.packageName = packageName; clazz.compoundName = compoundClassName; return clazz; } function createForClass(packageName, compoundClassName, typeId, superclass){ var clazz; clazz = createClassObject(packageName, compoundClassName); maybeSetClassLiteral(typeId, clazz); clazz.superclass = superclass; return clazz; } function createForEnum(packageName, compoundClassName, typeId, superclass, enumConstantsFunc){ var clazz; clazz = createClassObject(packageName, compoundClassName); maybeSetClassLiteral(typeId, clazz); clazz.modifiers = enumConstantsFunc?8:0; clazz.superclass = superclass; clazz.enumConstantsFunc = enumConstantsFunc; return clazz; } function createForInterface(packageName, compoundClassName){ var clazz; clazz = createClassObject(packageName, compoundClassName); clazz.modifiers = 2; return clazz; } function getClassLiteralForArray_0(leafClass, dimensions){ var arrayLiterals = leafClass.arrayLiterals = leafClass.arrayLiterals || []; return arrayLiterals[dimensions] || (arrayLiterals[dimensions] = leafClass.createClassLiteralForArray(dimensions)); } function getPrototypeForClass(clazz){ if (clazz.isPrimitive()) { return null; } var typeId = clazz.typeId; var prototype_0 = prototypesByTypeId_0[typeId]; return prototype_0; } function initializeNames(clazz){ if (clazz.isArray_0()) { var componentType = clazz.componentType; componentType.isPrimitive()?(clazz.typeName = '[' + componentType.typeId):!componentType.isArray_0()?(clazz.typeName = '[L' + componentType.getName() + ';'):(clazz.typeName = '[' + componentType.getName()); clazz.canonicalName = componentType.getCanonicalName() + '[]'; clazz.simpleName = componentType.getSimpleName() + '[]'; return; } var packageName = clazz.packageName; var compoundName = clazz.compoundName; compoundName = compoundName.split('/'); clazz.typeName = join_0('.', [packageName, join_0('$', compoundName)]); clazz.canonicalName = join_0('.', [packageName, join_0('.', compoundName)]); clazz.simpleName = compoundName[compoundName.length - 1]; } function join_0(separator, strings){ var i_0 = 0; while (!strings[i_0] || strings[i_0] == '') { i_0++; } var result = strings[i_0++]; for (; i_0 < strings.length; i_0++) { if (!strings[i_0] || strings[i_0] == '') { continue; } result += separator + strings[i_0]; } return result; } function maybeSetClassLiteral(typeId, clazz){ var proto; if (!typeId) { return; } clazz.typeId = typeId; var prototype_0 = getPrototypeForClass(clazz); if (!prototype_0) { prototypesByTypeId_0[typeId] = [clazz]; return; } prototype_0.___clazz$ = clazz; } defineClass(26, 1, {26:1}, Class); _.createClassLiteralForArray = function createClassLiteralForArray(dimensions){ var clazz; clazz = new Class; clazz.modifiers = 4; clazz.superclass = Ljava_lang_Object_2_classLit; dimensions > 1?(clazz.componentType = getClassLiteralForArray_0(this, dimensions - 1)):(clazz.componentType = this); return clazz; } ; _.getCanonicalName = function getCanonicalName(){ $ensureNamesAreInitialized(this); return this.canonicalName; } ; _.getName = function getName(){ return $getName(this); } ; _.getSimpleName = function getSimpleName(){ $ensureNamesAreInitialized(this); return this.simpleName; } ; _.isArray_0 = function isArray(){ return (this.modifiers & 4) != 0; } ; _.isPrimitive = function isPrimitive_0(){ return (this.modifiers & 1) != 0; } ; _.toString$ = function toString_15(){ return ((this.modifiers & 2) != 0?'interface ':(this.modifiers & 1) != 0?'':'class ') + ($ensureNamesAreInitialized(this) , this.typeName); } ; _.modifiers = 0; var nextSequentialId = 1; var Ljava_lang_Object_2_classLit = createForClass('java.lang', 'Object', 1, null), Lcom_google_gwt_core_client_JavaScriptObject_2_classLit = createForClass('com.google.gwt.core.client', 'JavaScriptObject$', 0, Ljava_lang_Object_2_classLit), Ljava_lang_Class_2_classLit = createForClass('java.lang', 'Class', 26, Ljava_lang_Object_2_classLit); defineClass(6, 1, $intern_0); _.getMessage = function getMessage(){ return this.detailMessage; } ; _.toString$ = function toString_1(){ var className, msg; className = $getName(this.___clazz$); msg = this.getMessage(); return msg != null?className + ': ' + msg:className; } ; var Ljava_lang_Throwable_2_classLit = createForClass('java.lang', 'Throwable', 6, Ljava_lang_Object_2_classLit); function Exception(message){ this.detailMessage = message; captureStackTrace(this, this.detailMessage); } defineClass(33, 6, $intern_0); var Ljava_lang_Exception_2_classLit = createForClass('java.lang', 'Exception', 33, Ljava_lang_Throwable_2_classLit); function RuntimeException(){ captureStackTrace(this, this.detailMessage); } function RuntimeException_0(message){ Exception.call(this, message); } defineClass(10, 33, $intern_0, RuntimeException_0); var Ljava_lang_RuntimeException_2_classLit = createForClass('java.lang', 'RuntimeException', 10, Ljava_lang_Exception_2_classLit); defineClass(68, 10, $intern_0); var Lcom_google_gwt_core_client_impl_JavaScriptExceptionBase_2_classLit = createForClass('com.google.gwt.core.client.impl', 'JavaScriptExceptionBase', 68, Ljava_lang_RuntimeException_2_classLit); 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_0) === maskUndefined(NOT_SET)?null:this$static.e_0; this$static.name_0 = exception == null?'null':instanceOfJso(exception)?getExceptionName0(dynamicCastJso(exception)):isJavaString(exception)?'String':$getName(getClass__Ljava_lang_Class___devirtual$(exception)); this$static.description = this$static.description + ': ' + (instanceOfJso(exception)?getExceptionDescription0(dynamicCastJso(exception)):exception + ''); this$static.message_0 = '(' + this$static.name_0 + ') ' + this$static.description; } } function JavaScriptException(e){ $clinit_JavaScriptException(); this.detailMessage = null; this.description = ''; this.e_0 = e; this.description = ''; } function getExceptionDescription0(e){ return e == null?null:e.message; } function getExceptionName0(e){ return e == null?null:e.name; } defineClass(17, 68, {17:1, 3:1, 6:1}, JavaScriptException); _.getMessage = function getMessage_0(){ $ensureInit(this); return this.message_0; } ; _.getThrown = function getThrown(){ return maskUndefined(this.e_0) === maskUndefined(NOT_SET)?null:this.e_0; } ; var NOT_SET; var Lcom_google_gwt_core_client_JavaScriptException_2_classLit = createForClass('com.google.gwt.core.client', 'JavaScriptException', 17, Lcom_google_gwt_core_client_impl_JavaScriptExceptionBase_2_classLit); function $push(this$static, value_0){ this$static[this$static.length] = value_0; } function $push_0(this$static, value_0){ this$static[this$static.length] = value_0; } function now_1(){ if (Date.now) { return Date.now(); } return (new Date).getTime(); } defineClass(114, 1, {}); var Lcom_google_gwt_core_client_Scheduler_2_classLit = createForClass('com.google.gwt.core.client', 'Scheduler', 114, Ljava_lang_Object_2_classLit); function apply_0(jsFunction, thisObj, args){ return jsFunction.apply(thisObj, args); var __0; } function enter(){ var now_0; if (entryDepth != 0) { now_0 = now_1(); if (now_0 - watchdogEntryDepthLastScheduled > 2000) { watchdogEntryDepthLastScheduled = now_0; watchdogEntryDepthTimerId = $wnd.setTimeout(watchdogEntryDepthRun, 10); } } if (entryDepth++ == 0) { $flushEntryCommands(($clinit_SchedulerImpl() , INSTANCE)); return true; } return false; } function entry_0(jsFunction){ return function(){ return entry0(jsFunction, this, arguments); var __0; } ; } function entry0(jsFunction, thisObj, args){ var initialEntry; initialEntry = enter(); try { return apply_0(jsFunction, thisObj, args); } finally { exit(initialEntry); } } function exit(initialEntry){ initialEntry && $flushFinallyCommands(($clinit_SchedulerImpl() , INSTANCE)); --entryDepth; if (initialEntry) { if (watchdogEntryDepthTimerId != -1) { watchdogEntryDepthCancel(watchdogEntryDepthTimerId); watchdogEntryDepthTimerId = -1; } } } function getHashCode(o){ return o.$H || (o.$H = ++sNextHashId); } function reportToBrowser(e){ $wnd.setTimeout(function(){ throw e; } , 0); } function watchdogEntryDepthCancel(timerId){ $wnd.clearTimeout(timerId); } function watchdogEntryDepthRun(){ entryDepth != 0 && (entryDepth = 0); watchdogEntryDepthTimerId = -1; } var entryDepth = 0, sNextHashId = 0, watchdogEntryDepthLastScheduled = 0, watchdogEntryDepthTimerId = -1; function $clinit_SchedulerImpl(){ $clinit_SchedulerImpl = emptyMethod; INSTANCE = new 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 SchedulerImpl(){ } function push_0(queue, task){ !queue && (queue = []); $push(queue, task); return queue; } function runScheduledTasks(tasks, rescheduled){ var e, i_0, j, t; for (i_0 = 0 , j = tasks.length; i_0 < j; i_0++) { t = tasks[i_0]; try { t[1]?t[0].nullMethod() && (rescheduled = push_0(rescheduled, t)):t[0].nullMethod(); } catch ($e0) { $e0 = wrap($e0); if (instanceOf($e0, 6)) { e = $e0; reportToBrowser(instanceOf(e, 17)?dynamicCast(e, 17).getThrown():e); } else throw unwrap($e0); } } return rescheduled; } defineClass(88, 114, {}, SchedulerImpl); var INSTANCE; var Lcom_google_gwt_core_client_impl_SchedulerImpl_2_classLit = createForClass('com.google.gwt.core.client.impl', 'SchedulerImpl', 88, Lcom_google_gwt_core_client_Scheduler_2_classLit); function $clinit_StackTraceCreator(){ $clinit_StackTraceCreator = emptyMethod; var c, enforceLegacy; enforceLegacy = !(!!Error.stackTraceLimit || 'stack' in new Error); c = new StackTraceCreator$CollectorModernNoSourceMap; collector = enforceLegacy?new StackTraceCreator$CollectorLegacy:c; } function captureStackTrace(throwable, reference){ $clinit_StackTraceCreator(); collector.collect(throwable, reference); } function extractFunctionName(fnName){ var fnRE = /function(?:\s+([\w$]+))?\s*\(/; var match_0 = fnRE.exec(fnName); return match_0 && match_0[1] || 'anonymous'; } var collector; defineClass(126, 1, {}); var Lcom_google_gwt_core_client_impl_StackTraceCreator$Collector_2_classLit = createForClass('com.google.gwt.core.client.impl', 'StackTraceCreator/Collector', 126, Ljava_lang_Object_2_classLit); function StackTraceCreator$CollectorLegacy(){ } defineClass(69, 126, {}, StackTraceCreator$CollectorLegacy); _.collect = function collect(t, thrownIgnored){ var seen = {}, name_1; t.fnStack = []; var callee = arguments.callee.caller; while (callee) { var name_0 = ($clinit_StackTraceCreator() , callee.name || (callee.name = extractFunctionName(callee.toString()))); t.fnStack.push(name_0); var keyName = ':' + name_0; var withThisName = seen[keyName]; if (withThisName) { var i_0, j; for (i_0 = 0 , j = withThisName.length; i_0 < j; i_0++) { if (withThisName[i_0] === callee) { return; } } } (withThisName || (seen[keyName] = [])).push(callee); callee = callee.caller; } } ; var Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorLegacy_2_classLit = createForClass('com.google.gwt.core.client.impl', 'StackTraceCreator/CollectorLegacy', 69, Lcom_google_gwt_core_client_impl_StackTraceCreator$Collector_2_classLit); function $clinit_StackTraceCreator$CollectorModern(){ $clinit_StackTraceCreator$CollectorModern = emptyMethod; Error.stackTraceLimit = 64; } defineClass(127, 126, {}); _.collect = function collect_0(t, jsThrown){ function fixIE(e){ if (!('stack' in e)) { try { throw e; } catch (ignored) { } } return e; } var backingJsError; typeof jsThrown == 'string'?(backingJsError = fixIE(new Error(jsThrown))):jsThrown instanceof Object && 'stack' in jsThrown?(backingJsError = jsThrown):(backingJsError = fixIE(new Error)); t.__gwt$backingJsError = backingJsError; } ; var Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorModern_2_classLit = createForClass('com.google.gwt.core.client.impl', 'StackTraceCreator/CollectorModern', 127, Lcom_google_gwt_core_client_impl_StackTraceCreator$Collector_2_classLit); function StackTraceCreator$CollectorModernNoSourceMap(){ $clinit_StackTraceCreator$CollectorModern(); } defineClass(70, 127, {}, StackTraceCreator$CollectorModernNoSourceMap); var Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorModernNoSourceMap_2_classLit = createForClass('com.google.gwt.core.client.impl', 'StackTraceCreator/CollectorModernNoSourceMap', 70, Lcom_google_gwt_core_client_impl_StackTraceCreator$CollectorModern_2_classLit); function checkArrayType(expression, errorMessage){ if (!expression) { throw new ArrayStoreException_0('' + errorMessage); } } function checkCriticalArgument(expression, errorMessageTemplate, errorMessageArgs){ if (!expression) { throw new IllegalArgumentException(format(errorMessageTemplate, errorMessageArgs)); } } function checkCriticalElement(expression){ if (!expression) { throw new NoSuchElementException; } } function checkElementIndex(index_0, size_0){ if (index_0 < 0 || index_0 >= size_0) { throw new IndexOutOfBoundsException_0('Index: ' + index_0 + ', Size: ' + size_0); } } function checkNotNull(reference){ if (reference == null) { throw new NullPointerException; } return reference; } function checkNotNull_0(reference, errorMessage){ if (reference == null) { throw new NullPointerException_0('' + errorMessage); } } function checkPositionIndex(index_0, size_0){ if (index_0 < 0 || index_0 > size_0) { throw new IndexOutOfBoundsException_0('Index: ' + index_0 + ', Size: ' + size_0); } } function format(template, args){ var builder, i_0, placeholderStart, templateStart; template = '' + template; builder = new StringBuilder_0(template.length + 16 * args.length); templateStart = 0; i_0 = 0; while (i_0 < args.length) { placeholderStart = template.indexOf('%s', templateStart); if (placeholderStart == -1) { break; } $append_2(builder, template.substr(templateStart, placeholderStart - templateStart)); $append_1(builder, args[i_0++]); templateStart = placeholderStart + 2; } $append_2(builder, __substr(template, templateStart, template.length - templateStart)); if (i_0 < args.length) { builder.string += ' ['; $append_1(builder, args[i_0++]); while (i_0 < args.length) { builder.string += ', '; $append_1(builder, args[i_0++]); } builder.string += ']'; } return builder.string; } function $addClassName(this$static, className){ var idx, oldClassName; className = trimClassName(className); oldClassName = $getClassName(this$static); idx = indexOfName(oldClassName, className); if (idx == -1) { oldClassName.length > 0?$setClassName(this$static, oldClassName + ' ' + className):$setClassName(this$static, className); return true; } return false; } function $getClassName(this$static){ return this$static.className || ''; } function $setClassName(this$static, className){ this$static.className = className || ''; } function $setInnerHTML(this$static, html){ this$static.innerHTML = html || ''; } function indexOfName(nameList, name_0){ var idx, last, lastPos; idx = nameList.indexOf(name_0); while (idx != -1) { if (idx == 0 || nameList.charCodeAt(idx - 1) == 32) { last = idx + name_0.length; lastPos = nameList.length; if (last == lastPos || last < lastPos && nameList.charCodeAt(last) == 32) { break; } } idx = nameList.indexOf(name_0, idx + 1); } return idx; } function trimClassName(className){ className = $trim(className); return className; } function createFrom(array, length_0){ var result; result = initializeArrayElementsWithDefaults(0, length_0); initValues(getClass__Ljava_lang_Class___devirtual$(array), array.castableTypeMap$, array.__elementTypeId$, array.__elementTypeCategory$, result); return result; } function getClassLiteralForArray(clazz, dimensions){ return getClassLiteralForArray_0(clazz, dimensions); } function initDim(leafClassLiteral, castableTypeMap, elementTypeId, length_0, elementTypeCategory, dimensions){ var result; result = initializeArrayElementsWithDefaults(elementTypeCategory, length_0); initValues(getClassLiteralForArray(leafClassLiteral, dimensions), castableTypeMap, elementTypeId, elementTypeCategory, result); return result; } function initValues(arrayClass, castableTypeMap, elementTypeId, elementTypeCategory, array){ array.___clazz$ = arrayClass; array.castableTypeMap$ = castableTypeMap; array.typeMarker$ = typeMarkerFn; array.__elementTypeId$ = elementTypeId; array.__elementTypeCategory$ = elementTypeCategory; return array; } function initializeArrayElementsWithDefaults(elementTypeCategory, length_0){ var array = new Array(length_0); var initValue; switch (elementTypeCategory) { case 6: initValue = {l:0, m:0, h:0}; break; case 7: initValue = 0; break; case 8: initValue = false; break; default:return array; } for (var i_0 = 0; i_0 < length_0; ++i_0) { array[i_0] = initValue; } return array; } function nativeArraySplice(src_0, srcOfs, dest, destOfs, len, overwrite){ if (src_0 === dest) { src_0 = src_0.slice(srcOfs, srcOfs + len); srcOfs = 0; } for (var batchStart = srcOfs, end = srcOfs + len; batchStart < end;) { var batchEnd = Math.min(batchStart + 10000, end); len = batchEnd - batchStart; Array.prototype.splice.apply(dest, [destOfs, overwrite?len:0].concat(src_0.slice(batchStart, batchEnd))); batchStart = batchEnd; destOfs += len; } } function setCheck(array, index_0, value_0){ var elementTypeId; if (value_0 != null) { switch (array.__elementTypeCategory$) { case 4: if (!isJavaString(value_0)) { throw new ArrayStoreException; } break; case 0: { elementTypeId = array.__elementTypeId$; if (!canCast(value_0, elementTypeId)) { throw new ArrayStoreException; } break; } case 2: if (!(!isJavaString(value_0) && !hasTypeMarker(value_0))) { throw new ArrayStoreException; } break; case 1: { elementTypeId = array.__elementTypeId$; if (!(!isJavaString(value_0) && !hasTypeMarker(value_0)) && !canCast(value_0, elementTypeId)) { throw new ArrayStoreException; } break; } } } return array[index_0] = value_0; } function cacheJavaScriptException(e, jse){ if (e && typeof e == 'object') { try { e.__gwt$exception = jse; } catch (ignored) { } } } function unwrap(e){ var jse; if (instanceOf(e, 17)) { jse = dynamicCast(e, 17); if (maskUndefined(jse.e_0) !== maskUndefined(($clinit_JavaScriptException() , NOT_SET))) { return maskUndefined(jse.e_0) === maskUndefined(NOT_SET)?null:jse.e_0; } } return e; } function wrap(e){ var jse; if (instanceOf(e, 6)) { return e; } jse = e && e.__gwt$exception; if (!jse) { jse = new JavaScriptException(e); captureStackTrace(jse, e); cacheJavaScriptException(e, jse); } return jse; } function create(value_0){ var a0, a1, a2; a0 = value_0 & $intern_1; a1 = value_0 >> 22 & $intern_1; a2 = value_0 < 0?1048575:0; return create0(a0, a1, a2); } function create0(l, m, h){ return {l:l, m:m, h:h}; } function fromInt(value_0){ var rebase, result; if (value_0 > -129 && value_0 < 128) { rebase = value_0 + 128; boxedValues == null && (boxedValues = initDim(Lcom_google_gwt_lang_LongLibBase$LongEmul_2_classLit, $intern_2, 140, 256, 0, 1)); result = boxedValues[rebase]; !result && (result = boxedValues[rebase] = create(value_0)); return result; } return create(value_0); } var boxedValues; function $clinit_LongLib$Const(){ $clinit_LongLib$Const = emptyMethod; MAX_VALUE = create0($intern_1, $intern_1, 524287); MIN_VALUE = create0(0, 0, 524288); fromInt(1); fromInt(2); ZERO = fromInt(0); } var MAX_VALUE, MIN_VALUE, ZERO; function hasTypeMarker(o){ return o.typeMarker$ === typeMarkerFn; } function init(){ $wnd.setTimeout($entry(assertCompileTimeUserAgent)); $onModuleLoad(); $onModuleLoad_0(new BoxStaticEntryPoint); } function $append(this$static, html){ $append_2(this$static.sb, html.html); return this$static; } function SafeHtmlBuilder(){ this.sb = new StringBuilder; } defineClass(104, 1, {}, SafeHtmlBuilder); var Lcom_google_gwt_safehtml_shared_SafeHtmlBuilder_2_classLit = createForClass('com.google.gwt.safehtml.shared', 'SafeHtmlBuilder', 104, Ljava_lang_Object_2_classLit); function SafeHtmlString(html){ if (html == null) { throw new NullPointerException_0('html is null'); } this.html = html; } defineClass(31, 1, {113:1, 31:1, 3:1}, SafeHtmlString); _.equals$ = function equals_0(obj){ if (!instanceOf(obj, 113)) { return false; } return $equals_5(this.html, dynamicCast(dynamicCast(obj, 113), 31).html); } ; _.hashCode$ = function hashCode_1(){ return getHashCode_0(this.html); } ; _.toString$ = function toString_2(){ return 'safe: "' + this.html + '"'; } ; var Lcom_google_gwt_safehtml_shared_SafeHtmlString_2_classLit = createForClass('com.google.gwt.safehtml.shared', 'SafeHtmlString', 31, Ljava_lang_Object_2_classLit); function $clinit_SafeHtmlUtils(){ $clinit_SafeHtmlUtils = emptyMethod; new SafeHtmlString(''); new RegExp('&', 'g'); new RegExp('>', 'g'); new RegExp('<', 'g'); new RegExp("'", 'g'); new RegExp('"', 'g'); } function $onModuleLoad(){ var allowedModes, currentMode, i_0; currentMode = $doc.compatMode; allowedModes = initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_3, 2, 4, ['CSS1Compat']); for (i_0 = 0; i_0 < allowedModes.length; i_0++) { if ($equals_5(allowedModes[i_0], currentMode)) { return; } } allowedModes.length == 1 && $equals_5('CSS1Compat', allowedModes[0]) && $equals_5('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 assertCompileTimeUserAgent(){ var runtimeValue; runtimeValue = $getRuntimeValue(); if (!$equals_5('unknown', runtimeValue)) { throw new UserAgentAsserter$UserAgentAssertionError(runtimeValue); } } function Error_0(message){ this.detailMessage = message; captureStackTrace(this, this.detailMessage); } defineClass(44, 6, $intern_0); var Ljava_lang_Error_2_classLit = createForClass('java.lang', 'Error', 44, Ljava_lang_Throwable_2_classLit); defineClass(12, 44, $intern_0); var Ljava_lang_AssertionError_2_classLit = createForClass('java.lang', 'AssertionError', 12, Ljava_lang_Error_2_classLit); function UserAgentAsserter$UserAgentAssertionError(runtimeValue){ Error_0.call(this, '' + ('Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (unknown) 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 (unknown) does not match the runtime user.agent value (' + runtimeValue + ').\n' + 'Expect more errors.', 6)?dynamicCast('Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (unknown) does not match the runtime user.agent value (' + runtimeValue + ').\n' + 'Expect more errors.', 6):null); } defineClass(65, 12, $intern_0, UserAgentAsserter$UserAgentAssertionError); var Lcom_google_gwt_useragent_client_UserAgentAsserter$UserAgentAssertionError_2_classLit = createForClass('com.google.gwt.useragent.client', 'UserAgentAsserter/UserAgentAssertionError', 65, Ljava_lang_AssertionError_2_classLit); 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 $equals(this$static, obj){ var other; if (this$static === obj) return true; if (obj == null) return false; if (Ldokuro_api_model_placements_Color_2_classLit != getClass__Ljava_lang_Class___devirtual$(obj)) return false; other = dynamicCast(obj, 40); return $equals_5('#' + $toHex(other.red) + $toHex(other.green) + $toHex(other.blue) + $toHex(other.alpha_0), '#' + $toHex(this$static.red) + $toHex(this$static.green) + $toHex(this$static.blue) + $toHex(this$static.alpha_0)); } function $hashCode(this$static){ var result; result = 31 + this$static.alpha_0; result = 31 * result + this$static.blue; result = 31 * result + this$static.green; result = 31 * result + this$static.red; return result; } function $toHex(color_0){ var ret; ret = toUnsignedRadixString(color_0, 16); if (ret.length == 2) return ret; return '0' + ret; } function Color(red, green, blue, alpha_0){ if (red > 255 || green > 255 || blue > 255 || alpha_0 > 255 || red < 0 || green < 0 || blue < 0 || alpha_0 < 0) { throw new IllegalArgumentException('Value must be between 0 and 255'); } this.red = red; this.green = green; this.blue = blue; this.alpha_0 = alpha_0; } function create_0(rgba){ var alpha_0, blue, green, i_0, length_0, myRgba, red; if (rgba.length > 0) { myRgba = rgba; rgba.charCodeAt(0) == 35 && (myRgba = __substr(rgba, 1, rgba.length - 1)); length_0 = myRgba.length; for (i_0 = 0; i_0 < length_0; i_0++) { if (digit(myRgba.charCodeAt(i_0), 16) == -1) { throw new ValidationException; } } if (length_0 == 3 || length_0 == 4) { red = hexToInt(charToString(myRgba.charCodeAt(0)) + ''); green = hexToInt(charToString(myRgba.charCodeAt(1)) + ''); blue = hexToInt(charToString(myRgba.charCodeAt(2)) + ''); alpha_0 = 255; length_0 == 4 && (alpha_0 = hexToInt(charToString(myRgba.charCodeAt(3)) + '')); return new Color(red, green, blue, alpha_0); } if (length_0 == 6 || length_0 == 8) { red = hexToInt(myRgba.substr(0, 2)); green = hexToInt(myRgba.substr(2, 2)); blue = hexToInt(myRgba.substr(4, 2)); alpha_0 = 255; length_0 == 8 && (alpha_0 = hexToInt(myRgba.substr(6, 2))); return new Color(red, green, blue, alpha_0); } } throw new ValidationException; } function hexToInt(hex){ if (hex.length == 1) { return valueOf_2(__parseAndValidateInt(hex + hex, 16)).value_0; } else if (hex.length == 2) { return valueOf_2(__parseAndValidateInt(hex, 16)).value_0; } else { throw new RuntimeException_0('No co ty.'); } } defineClass(40, 1, {40:1, 3:1}, Color); _.equals$ = function equals_1(obj){ return $equals(this, obj); } ; _.hashCode$ = function hashCode_2(){ return $hashCode(this); } ; _.toString$ = function toString_3(){ return '#' + $toHex(this.red) + $toHex(this.green) + $toHex(this.blue) + $toHex(this.alpha_0); } ; _.alpha_0 = 0; _.blue = 0; _.green = 0; _.red = 0; var Ldokuro_api_model_placements_Color_2_classLit = createForClass('dokuro.api.model.placements', 'Color', 40, Ljava_lang_Object_2_classLit); function $name(this$static){ return this$static.name_0 != null?this$static.name_0:'' + this$static.ordinal; } function Enum(name_0, ordinal){ this.name_0 = name_0; this.ordinal = ordinal; } function createValueOfMap(enumConstants){ var result, value_0, value$index, value$max; result = {}; for (value$index = 0 , value$max = enumConstants.length; value$index < value$max; ++value$index) { value_0 = enumConstants[value$index]; result[':' + (value_0.name_0 != null?value_0.name_0:'' + value_0.ordinal)] = value_0; } return result; } function valueOf(map_0, name_0){ var result; checkNotNull(name_0); result = map_0[':' + name_0]; checkCriticalArgument(!!result, 'Enum constant undefined: %s', initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_2, 1, 3, [name_0])); return result; } defineClass(7, 1, {3:1, 9:1, 7:1}); _.equals$ = function equals_2(other){ return this === other; } ; _.hashCode$ = function hashCode_3(){ return getHashCode(this); } ; _.toString$ = function toString_4(){ return this.name_0 != null?this.name_0:'' + this.ordinal; } ; _.ordinal = 0; var Ljava_lang_Enum_2_classLit = createForClass('java.lang', 'Enum', 7, Ljava_lang_Object_2_classLit); function $clinit_Font(){ $clinit_Font = emptyMethod; DEFAULT = new Font('DEFAULT', 0); Arial = new Font('Arial', 1); } function Font(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function values(){ $clinit_Font(); return initValues(getClassLiteralForArray(Ldokuro_api_model_placements_Font_2_classLit, 1), $intern_4, 28, 0, [DEFAULT, Arial]); } defineClass(28, 7, {28:1, 3:1, 9:1, 7:1}, Font); var Arial, DEFAULT; var Ldokuro_api_model_placements_Font_2_classLit = createForEnum('dokuro.api.model.placements', 'Font', 28, Ljava_lang_Enum_2_classLit, values); function $clinit_Font$Map(){ $clinit_Font$Map = emptyMethod; $MAP = createValueOfMap(($clinit_Font() , initValues(getClassLiteralForArray(Ldokuro_api_model_placements_Font_2_classLit, 1), $intern_4, 28, 0, [DEFAULT, Arial]))); } var $MAP; function $clinit_CornersType(){ $clinit_CornersType = emptyMethod; ROUND = new CornersType('ROUND', 0); SQUARE = new CornersType('SQUARE', 1); PAGE_CURL = new CornersType('PAGE_CURL', 2); } function CornersType(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function values_0(){ $clinit_CornersType(); return initValues(getClassLiteralForArray(Ldokuro_api_model_placements_box_CornersType_2_classLit, 1), $intern_4, 27, 0, [ROUND, SQUARE, PAGE_CURL]); } defineClass(27, 7, {27:1, 3:1, 9:1, 7:1}, CornersType); var PAGE_CURL, ROUND, SQUARE; var Ldokuro_api_model_placements_box_CornersType_2_classLit = createForEnum('dokuro.api.model.placements.box', 'CornersType', 27, Ljava_lang_Enum_2_classLit, values_0); function $clinit_LabelType(){ $clinit_LabelType = emptyMethod; EMPTY = new LabelType('EMPTY', 0, 5); IMG_RIGHT = new LabelType('IMG_RIGHT', 1, 1); IMG_BOTTOM = new LabelType('IMG_BOTTOM', 2, 2); IMG_MIDDLE = new LabelType('IMG_MIDDLE', 3, 7); TXT_IN = new LabelType('TXT_IN', 4, 3); TXT_OUT = new LabelType('TXT_OUT', 5, 6); TXT_WIDE = new LabelType('TXT_WIDE', 6, 4); } function LabelType(enum$name, enum$ordinal, scriptsId){ Enum.call(this, enum$name, enum$ordinal); this.scriptsId = scriptsId; } function getByScriptsId(scriptsId){ $clinit_LabelType(); var labelType, labelType$array, labelType$index, labelType$max; for (labelType$array = initValues(getClassLiteralForArray(Ldokuro_api_model_placements_box_LabelType_2_classLit, 1), $intern_4, 15, 0, [EMPTY, IMG_RIGHT, IMG_BOTTOM, IMG_MIDDLE, TXT_IN, TXT_OUT, TXT_WIDE]) , labelType$index = 0 , labelType$max = labelType$array.length; labelType$index < labelType$max; ++labelType$index) { labelType = labelType$array[labelType$index]; if (labelType.scriptsId == scriptsId) return labelType; } return null; } function values_1(){ $clinit_LabelType(); return initValues(getClassLiteralForArray(Ldokuro_api_model_placements_box_LabelType_2_classLit, 1), $intern_4, 15, 0, [EMPTY, IMG_RIGHT, IMG_BOTTOM, IMG_MIDDLE, TXT_IN, TXT_OUT, TXT_WIDE]); } defineClass(15, 7, {15:1, 3:1, 9:1, 7:1}, LabelType); _.scriptsId = 0; var EMPTY, IMG_BOTTOM, IMG_MIDDLE, IMG_RIGHT, TXT_IN, TXT_OUT, TXT_WIDE; var Ldokuro_api_model_placements_box_LabelType_2_classLit = createForEnum('dokuro.api.model.placements.box', 'LabelType', 15, Ljava_lang_Enum_2_classLit, values_1); function $readColor(color_0){ if (!color_0.length) return null; try { return create_0(color_0); } catch ($e0) { $e0 = wrap($e0); if (instanceOf($e0, 37)) { return null; } else throw unwrap($e0); } } function ScriptBoxParams(jsString){ var bl, br, i_0, parts, parts0, tl, tr, sq, copy; this.palette_0 = null; sq = ($clinit_Corner() , SQUARE_0); this.corners = new Corners(sq, sq, sq, sq); this.withUrl = false; this.labelId = 1; this.labelType_0 = ($clinit_LabelType() , IMG_BOTTOM); this.merging = ($clinit_MergingType() , FULL); this.noContent = false; this.header = ''; this.font_0 = ($clinit_Font() , DEFAULT); this.fontSize = null; this.cornerSizeX = 7; this.cornerSizeY = 7; this.borderSize = 1; this.showScroller_0 = false; this.spacing = 1; parts0 = $split(jsString, ',', 0); parts = dynamicCast((checkCriticalArgument(true, '%s > %s', initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_2, 1, 3, [valueOf_2(0), valueOf_2(100)])) , copy = createFrom(parts0, 100) , arraycopy(parts0, 0, copy, 0, min_0(parts0.length)) , copy), 112); for (i_0 = 0; i_0 < parts.length; ++i_0) { if (parts[i_0] != null) continue; parts[i_0] = ''; } this.palette_0 = new Palette; $setColorTitle(this.palette_0, create_0(parts[0])); $setColorBg(this.palette_0, create_0(parts[1])); $setColorDesc(this.palette_0, create_0(parts[2])); $setColorUrl(this.palette_0, create_0(parts[3])); $setColorFrame(this.palette_0, create_0(parts[4])); $setColorHeaderBg(this.palette_0, create_0(parts[5])); $setColorHeaderFrame(this.palette_0, create_0(parts[6])); this.width_0 = __parseAndValidateInt(parts[7], 10); this.height_0 = __parseAndValidateInt(parts[8], 10); this.rows_0 = __parseAndValidateInt(parts[9], 10); this.cols_0 = __parseAndValidateInt(parts[10], 10); tl = initValues(getClassLiteralForArray(Ldokuro_api_model_placements_boxParams_Corner_2_classLit, 1), $intern_4, 14, 0, [BITE, BEVELED, SQUARE_0, ROUNDED, TRIANGLE])[__parseAndValidateInt(parts[11], 10)]; tr = initValues(getClassLiteralForArray(Ldokuro_api_model_placements_boxParams_Corner_2_classLit, 1), $intern_4, 14, 0, [BITE, BEVELED, SQUARE_0, ROUNDED, TRIANGLE])[__parseAndValidateInt(parts[12], 10)]; bl = initValues(getClassLiteralForArray(Ldokuro_api_model_placements_boxParams_Corner_2_classLit, 1), $intern_4, 14, 0, [BITE, BEVELED, SQUARE_0, ROUNDED, TRIANGLE])[__parseAndValidateInt(parts[13], 10)]; br = initValues(getClassLiteralForArray(Ldokuro_api_model_placements_boxParams_Corner_2_classLit, 1), $intern_4, 14, 0, [BITE, BEVELED, SQUARE_0, ROUNDED, TRIANGLE])[__parseAndValidateInt(parts[14], 10)]; this.corners = new Corners(tl, tr, bl, br); this.withUrl = $equals_5('t', parts[15]); this.labelId = __parseAndValidateInt(parts[16], 10); this.labelType_0 = getByScriptsId(__parseAndValidateInt(parts[17], 10)); this.merging = byId(__parseAndValidateInt(parts[19], 10)); this.spacing = __parseAndValidateInt(parts[20], 10); this.noContent = $equals_5('f', parts[21]); this.header = parts[24]; parts[25].length > 0 && (this.font_0 = valueOf(($clinit_Font$Map() , $MAP), parts[25])); parts[26].length > 0 && (this.fontSize = valueOf_2(__parseAndValidateInt(parts[26], 10))); this.cornerSizeX = __parseAndValidateInt(parts[27], 10); this.cornerSizeY = __parseAndValidateInt(parts[28], 10); this.borderSize = __parseAndValidateInt(parts[29], 10); this.showFavico = $equals_5('t', parts[30]); this.cs = $equals_5('t', parts[31]); this.showScroller_0 = $equals_5('y', parts[32]); this.hover = new HoverPalette; this.hover.titleText = $readColor(parts[41]); this.hover.descText = $readColor(parts[42]); this.hover.urlText = $readColor(parts[43]); this.hover.upperBg = $readColor(parts[44]); this.hover.lowerBg = $readColor(parts[45]); this.hover.titleShadow = $readColor(parts[47]); this.hover.descShadow = $readColor(parts[48]); this.hover.urlShadow = $readColor(parts[49]); this.rightImage_0 = $equals_5('t', parts[51]); $equals_5('t', parts[52]); this.linkUnderTitle = $equals_5('t', parts[54]); } defineClass(38, 1, {38:1, 3:1}, ScriptBoxParams); _.equals$ = function equals_3(obj){ var other; if (this === obj) return true; if (obj == null) return false; if (Ldokuro_api_model_placements_box_ScriptBoxParams_2_classLit != getClass__Ljava_lang_Class___devirtual$(obj)) return false; other = dynamicCast(obj, 38); if (this.borderSize != other.borderSize) return false; if (this.cols_0 != other.cols_0) return false; if (this.cornerSizeX != other.cornerSizeX) return false; if (this.cornerSizeY != other.cornerSizeY) return false; if (!this.corners) { if (other.corners) return false; } else if (!$equals_0(this.corners, other.corners)) return false; if (this.cs != other.cs) return false; if (this.font_0 != other.font_0) return false; if (!this.fontSize) { if (other.fontSize) return false; } else if (!$equals_4(this.fontSize, other.fontSize)) return false; if (this.header == null) { if (other.header != null) return false; } else if (!$equals_5(this.header, other.header)) return false; if (this.height_0 != other.height_0) return false; if (!this.hover) { if (other.hover) return false; } else if (!$equals_1(this.hover, other.hover)) return false; if (this.labelId != other.labelId) return false; if (this.labelType_0 != other.labelType_0) return false; if (this.linkUnderTitle != other.linkUnderTitle) return false; if (this.merging != other.merging) return false; if (this.noContent != other.noContent) return false; if (!this.palette_0) { if (other.palette_0) return false; } else if (!$equals_2(this.palette_0, other.palette_0)) return false; if (this.rightImage_0 != other.rightImage_0) return false; if (this.rows_0 != other.rows_0) return false; if (this.showFavico != other.showFavico) return false; if (this.showScroller_0 != other.showScroller_0) return false; if (this.spacing != other.spacing) return false; if (this.width_0 != other.width_0) return false; if (this.withUrl != other.withUrl) return false; return true; } ; _.hashCode$ = function hashCode_4(){ var result; result = 31 + this.borderSize; result = 31 * result + this.cols_0; result = 31 * result + this.cornerSizeX; result = 31 * result + this.cornerSizeY; result = 31 * result + (!this.corners?0:$hashCode_0(this.corners)); result = 31 * result + (this.cs?1231:1237); result = 31 * result + (!this.font_0?0:getHashCode(this.font_0)); result = 31 * result + (!this.fontSize?0:this.fontSize.value_0); result = 31 * result + (this.header == null?0:getHashCode_0(this.header)); result = 31 * result + this.height_0; result = 31 * result + (!this.hover?0:$hashCode_1(this.hover)); result = 31 * result + this.labelId; result = 31 * result + (!this.labelType_0?0:getHashCode(this.labelType_0)); result = 31 * result + (this.linkUnderTitle?1231:1237); result = 31 * result + (!this.merging?0:getHashCode(this.merging)); result = 31 * result + (this.noContent?1231:1237); result = 31 * result + (!this.palette_0?0:$hashCode_2(this.palette_0)); result = 31 * result + (this.rightImage_0?1231:1237); result = 31 * result + this.rows_0; result = 31 * result + (this.showFavico?1231:1237); result = 31 * result + (this.showScroller_0?1231:1237); result = 31 * result + this.spacing; result = 31 * result + this.width_0; result = 31 * result + (this.withUrl?1231:1237); return result; } ; _.toString$ = function toString_5(){ var builder; builder = new StringBuilder; $append_2($append_3($append_2($append_1($append_2($append_3($append_2($append_3($append_2($append_3($append_2($append_3($append_2($append_0($append_2($append_0($append_2($append_0($append_2($append_1($append_2($append_1($append_2($append_2($append_2($append_3($append_2($append_0($append_2($append_1($append_2($append_1($append_2($append_0($append_2($append_3($append_2($append_1($append_2($append_0($append_2($append_0($append_2($append_0($append_2($append_0($append_2($append_1((builder.string += 'FullBoxParams [palette=' , builder), this.palette_0), ', width='), this.width_0), ', height='), this.height_0), ', rows='), this.rows_0), ', cols='), this.cols_0), ', corners='), this.corners), ', withUrl='), this.withUrl), ', labelId='), this.labelId), ', labelType='), this.labelType_0), ', merging='), this.merging), ', spacing='), this.spacing), ', noContent='), this.noContent), ', header='), this.header), ', font='), this.font_0), ', fontSize='), this.fontSize), ', cornerSizeX='), this.cornerSizeX), ', cornerSizeY='), this.cornerSizeY), ', borderSize='), this.borderSize), ', cs='), this.cs), ', showScroller='), this.showScroller_0), ', rightImage='), this.rightImage_0), ', linkUnderTitle='), this.linkUnderTitle), ', hover='), this.hover), ', showFavico='), this.showFavico), ']'); return builder.string; } ; _.borderSize = 0; _.cols_0 = 0; _.cornerSizeX = 0; _.cornerSizeY = 0; _.cs = false; _.height_0 = 0; _.labelId = 0; _.linkUnderTitle = false; _.noContent = false; _.rightImage_0 = false; _.rows_0 = 0; _.showFavico = false; _.showScroller_0 = false; _.spacing = 0; _.width_0 = 0; _.withUrl = false; var Ldokuro_api_model_placements_box_ScriptBoxParams_2_classLit = createForClass('dokuro.api.model.placements.box', 'ScriptBoxParams', 38, Ljava_lang_Object_2_classLit); function $clinit_Corner(){ $clinit_Corner = emptyMethod; BITE = new Corner('BITE', 0); BEVELED = new Corner('BEVELED', 1); SQUARE_0 = new Corner('SQUARE', 2); ROUNDED = new Corner('ROUNDED', 3); TRIANGLE = new Corner('TRIANGLE', 4); } function Corner(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function values_2(){ $clinit_Corner(); return initValues(getClassLiteralForArray(Ldokuro_api_model_placements_boxParams_Corner_2_classLit, 1), $intern_4, 14, 0, [BITE, BEVELED, SQUARE_0, ROUNDED, TRIANGLE]); } defineClass(14, 7, {14:1, 3:1, 9:1, 7:1}, Corner); var BEVELED, BITE, ROUNDED, SQUARE_0, TRIANGLE; var Ldokuro_api_model_placements_boxParams_Corner_2_classLit = createForEnum('dokuro.api.model.placements.boxParams', 'Corner', 14, Ljava_lang_Enum_2_classLit, values_2); function $equals_0(this$static, obj){ var other; if (this$static === obj) return true; if (obj == null) return false; if (Ldokuro_api_model_placements_boxParams_Corners_2_classLit != getClass__Ljava_lang_Class___devirtual$(obj)) return false; other = dynamicCast(obj, 39); if (this$static.bl != other.bl) return false; if (this$static.br != other.br) return false; if (this$static.tl != other.tl) return false; if (this$static.tr != other.tr) return false; return true; } function $hashCode_0(this$static){ var result; result = 31 + (!this$static.bl?0:getHashCode(this$static.bl)); result = 31 * result + (!this$static.br?0:getHashCode(this$static.br)); result = 31 * result + (!this$static.tl?0:getHashCode(this$static.tl)); result = 31 * result + (!this$static.tr?0:getHashCode(this$static.tr)); return result; } function Corners(tl, tr, bl, br){ this.tl = tl; this.tr = tr; this.bl = bl; this.br = br; } defineClass(39, 1, {39:1, 3:1}, Corners); _.equals$ = function equals_4(obj){ return $equals_0(this, obj); } ; _.hashCode$ = function hashCode_5(){ return $hashCode_0(this); } ; _.toString$ = function toString_6(){ var builder; builder = new StringBuilder; $append_2($append_1($append_2($append_1($append_2($append_1($append_2($append_1((builder.string += 'Corners [tl=' , builder), this.tl), ', tr='), this.tr), ', bl='), this.bl), ', br='), this.br), ']'); return builder.string; } ; var Ldokuro_api_model_placements_boxParams_Corners_2_classLit = createForClass('dokuro.api.model.placements.boxParams', 'Corners', 39, Ljava_lang_Object_2_classLit); function $equals_1(this$static, obj){ var other; if (this$static === obj) return true; if (obj == null) return false; if (Ldokuro_api_model_placements_boxParams_HoverPalette_2_classLit != getClass__Ljava_lang_Class___devirtual$(obj)) return false; other = dynamicCast(obj, 56); if (!this$static.descShadow) { if (other.descShadow) return false; } else if (!$equals(this$static.descShadow, other.descShadow)) return false; if (!this$static.descText) { if (other.descText) return false; } else if (!$equals(this$static.descText, other.descText)) return false; if (!this$static.lowerBg) { if (other.lowerBg) return false; } else if (!$equals(this$static.lowerBg, other.lowerBg)) return false; if (!this$static.titleShadow) { if (other.titleShadow) return false; } else if (!$equals(this$static.titleShadow, other.titleShadow)) return false; if (!this$static.titleText) { if (other.titleText) return false; } else if (!$equals(this$static.titleText, other.titleText)) return false; if (!this$static.upperBg) { if (other.upperBg) return false; } else if (!$equals(this$static.upperBg, other.upperBg)) return false; if (!this$static.urlShadow) { if (other.urlShadow) return false; } else if (!$equals(this$static.urlShadow, other.urlShadow)) return false; if (!this$static.urlText) { if (other.urlText) return false; } else if (!$equals(this$static.urlText, other.urlText)) return false; return true; } function $hashCode_1(this$static){ var result; result = 31 + (!this$static.descShadow?0:$hashCode(this$static.descShadow)); result = 31 * result + (!this$static.descText?0:$hashCode(this$static.descText)); result = 31 * result + (!this$static.lowerBg?0:$hashCode(this$static.lowerBg)); result = 31 * result + (!this$static.titleShadow?0:$hashCode(this$static.titleShadow)); result = 31 * result + (!this$static.titleText?0:$hashCode(this$static.titleText)); result = 31 * result + (!this$static.upperBg?0:$hashCode(this$static.upperBg)); result = 31 * result + (!this$static.urlShadow?0:$hashCode(this$static.urlShadow)); result = 31 * result + (!this$static.urlText?0:$hashCode(this$static.urlText)); return result; } function HoverPalette(){ } defineClass(56, 1, {56:1, 3:1}, HoverPalette); _.equals$ = function equals_5(obj){ return $equals_1(this, obj); } ; _.hashCode$ = function hashCode_6(){ return $hashCode_1(this); } ; _.toString$ = function toString_7(){ var builder; builder = new StringBuilder; $append_2($append_1($append_2($append_1($append_2($append_1($append_2($append_1($append_2($append_1($append_2($append_1($append_2($append_1($append_2($append_1((builder.string += 'HoverPalette [titleText=' , builder), this.titleText), ', descText='), this.descText), ', urlText='), this.urlText), ', upperBg='), this.upperBg), ', lowerBg='), this.lowerBg), ', titleShadow='), this.titleShadow), ', descShadow='), this.descShadow), ', urlShadow='), this.urlShadow), ']'); return builder.string; } ; var Ldokuro_api_model_placements_boxParams_HoverPalette_2_classLit = createForClass('dokuro.api.model.placements.boxParams', 'HoverPalette', 56, Ljava_lang_Object_2_classLit); function $clinit_MergingType(){ $clinit_MergingType = emptyMethod; NONE = new MergingType('NONE', 0, 1); FULL = new MergingType('FULL', 1, 2); PART = new MergingType('PART', 2, 3); TOPLINE = new MergingType('TOPLINE', 3, 4); BOTH = new MergingType('BOTH', 4, 5); DOUBLE = new MergingType('DOUBLE', 5, 6); NK2 = new MergingType('NK2', 6, 7); NK3 = new MergingType('NK3', 7, 8); HORIZONTAL_LINES = new MergingType('HORIZONTAL_LINES', 8, 9); VERTICAL_LINES = new MergingType('VERTICAL_LINES', 9, 10); } function MergingType(enum$name, enum$ordinal, id_0){ Enum.call(this, enum$name, enum$ordinal); this.id_0 = id_0; } function byId(id_0){ $clinit_MergingType(); var type_0, type$array, type$index, type$max; for (type$array = initValues(getClassLiteralForArray(Ldokuro_api_model_placements_boxParams_MergingType_2_classLit, 1), $intern_4, 13, 0, [NONE, FULL, PART, TOPLINE, BOTH, DOUBLE, NK2, NK3, HORIZONTAL_LINES, VERTICAL_LINES]) , type$index = 0 , type$max = type$array.length; type$index < type$max; ++type$index) { type_0 = type$array[type$index]; if (type_0.id_0 == id_0) return type_0; } return null; } function values_3(){ $clinit_MergingType(); return initValues(getClassLiteralForArray(Ldokuro_api_model_placements_boxParams_MergingType_2_classLit, 1), $intern_4, 13, 0, [NONE, FULL, PART, TOPLINE, BOTH, DOUBLE, NK2, NK3, HORIZONTAL_LINES, VERTICAL_LINES]); } defineClass(13, 7, {13:1, 3:1, 9:1, 7:1}, MergingType); _.id_0 = 0; var BOTH, DOUBLE, FULL, HORIZONTAL_LINES, NK2, NK3, NONE, PART, TOPLINE, VERTICAL_LINES; var Ldokuro_api_model_placements_boxParams_MergingType_2_classLit = createForEnum('dokuro.api.model.placements.boxParams', 'MergingType', 13, Ljava_lang_Enum_2_classLit, values_3); function $equals_2(this$static, obj){ var other; if (this$static === obj) return true; if (obj == null) return false; if (Ldokuro_api_model_placements_boxParams_Palette_2_classLit != getClass__Ljava_lang_Class___devirtual$(obj)) return false; other = dynamicCast(obj, 55); if (!this$static.colorBg) { if (other.colorBg) return false; } else if (!$equals(this$static.colorBg, other.colorBg)) return false; if (!this$static.colorDesc) { if (other.colorDesc) return false; } else if (!$equals(this$static.colorDesc, other.colorDesc)) return false; if (!this$static.colorFrame) { if (other.colorFrame) return false; } else if (!$equals(this$static.colorFrame, other.colorFrame)) return false; if (!this$static.colorHeaderBg) { if (other.colorHeaderBg) return false; } else if (!$equals(this$static.colorHeaderBg, other.colorHeaderBg)) return false; if (!this$static.colorHeaderFrame) { if (other.colorHeaderFrame) return false; } else if (!$equals(this$static.colorHeaderFrame, other.colorHeaderFrame)) return false; if (!this$static.colorTitle) { if (other.colorTitle) return false; } else if (!$equals(this$static.colorTitle, other.colorTitle)) return false; if (!this$static.colorUrl) { if (other.colorUrl) return false; } else if (!$equals(this$static.colorUrl, other.colorUrl)) return false; return true; } function $hashCode_2(this$static){ var result; result = 31 + (!this$static.colorBg?0:$hashCode(this$static.colorBg)); result = 31 * result + (!this$static.colorDesc?0:$hashCode(this$static.colorDesc)); result = 31 * result + (!this$static.colorFrame?0:$hashCode(this$static.colorFrame)); result = 31 * result + (!this$static.colorHeaderBg?0:$hashCode(this$static.colorHeaderBg)); result = 31 * result + (!this$static.colorHeaderFrame?0:$hashCode(this$static.colorHeaderFrame)); result = 31 * result + (!this$static.colorTitle?0:$hashCode(this$static.colorTitle)); result = 31 * result + (!this$static.colorUrl?0:$hashCode(this$static.colorUrl)); return result; } function $setColorBg(this$static, colorBg){ this$static.colorBg = colorBg; } function $setColorDesc(this$static, colorDesc){ this$static.colorDesc = colorDesc; } function $setColorFrame(this$static, colorFrame){ this$static.colorFrame = colorFrame; } function $setColorHeaderBg(this$static, colorHeaderBg){ this$static.colorHeaderBg = colorHeaderBg; } function $setColorHeaderFrame(this$static, colorHeaderFrame){ this$static.colorHeaderFrame = colorHeaderFrame; } function $setColorTitle(this$static, colorTitle){ this$static.colorTitle = colorTitle; } function $setColorUrl(this$static, colorUrl){ this$static.colorUrl = colorUrl; } function Palette(){ } defineClass(55, 1, {55:1, 3:1}, Palette); _.equals$ = function equals_6(obj){ return $equals_2(this, obj); } ; _.hashCode$ = function hashCode_7(){ return $hashCode_2(this); } ; _.toString$ = function toString_8(){ return 'Palette [colorTitle=' + this.colorTitle + ', colorBg=' + this.colorBg + ', colorDesc=' + this.colorDesc + ', colorUrl=' + this.colorUrl + ', colorFrame=' + this.colorFrame + ', colorHeaderBg=' + this.colorHeaderBg + ', colorHeaderFrame=' + this.colorHeaderFrame + ']'; } ; var Ldokuro_api_model_placements_boxParams_Palette_2_classLit = createForClass('dokuro.api.model.placements.boxParams', 'Palette', 55, Ljava_lang_Object_2_classLit); function VisElement(name_0){ this.name_0 = name_0; } defineClass(4, 1, {4:1}, VisElement); _.toString$ = function toString_9(){ return $name(this.visType) + '.' + this.name_0; } ; var Ldokuro_api_model_visualizations_VisElement_2_classLit = createForClass('dokuro.api.model.visualizations', 'VisElement', 4, Ljava_lang_Object_2_classLit); function $clinit_VisElementType(){ $clinit_VisElementType = emptyMethod; IMAGE = new VisElementType('IMAGE', 0); FLASH = new VisElementType('FLASH', 1); FAVICO = new VisElementType('FAVICO', 2); } function VisElementType(enum$name, enum$ordinal){ Enum.call(this, enum$name, enum$ordinal); } function valueOf_0(name_0){ $clinit_VisElementType(); return valueOf(($clinit_VisElementType$Map() , $MAP_0), name_0); } function values_4(){ $clinit_VisElementType(); return initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElementType_2_classLit, 1), $intern_4, 22, 0, [IMAGE, FLASH, FAVICO]); } defineClass(22, 7, {22:1, 3:1, 9:1, 7:1}, VisElementType); var FAVICO, FLASH, IMAGE; var Ldokuro_api_model_visualizations_VisElementType_2_classLit = createForEnum('dokuro.api.model.visualizations', 'VisElementType', 22, Ljava_lang_Enum_2_classLit, values_4); function $clinit_VisElementType$Map(){ $clinit_VisElementType$Map = emptyMethod; $MAP_0 = createValueOfMap(($clinit_VisElementType() , initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElementType_2_classLit, 1), $intern_4, 22, 0, [IMAGE, FLASH, FAVICO]))); } var $MAP_0; function $clinit_VisType(){ $clinit_VisType = emptyMethod; box = new VisType('box', 0, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement(($clinit_VisElementType() , $name(FAVICO)))])); oneform = new VisType_0('oneform', 1, initDim(Ldokuro_api_model_visualizations_VisElement_2_classLit, $intern_2, 4, 0, 0, 1)); eval_0 = new VisType_0('eval', 2, initDim(Ldokuro_api_model_visualizations_VisElement_2_classLit, $intern_2, 4, 0, 0, 1)); flash = new VisType('flash', 3, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE)), new VisElement($name(FLASH))])); largeFlash = new VisType('largeFlash', 4, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE)), new VisElement($name(FLASH))])); awatar = new VisType('awatar', 5, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); exclusive = new VisType_0('exclusive', 6, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); exclusive_normal = new VisType('exclusive_normal', 7, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); exclusive_sky = new VisType('exclusive_sky', 8, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); exclusive_narrow = new VisType('exclusive_narrow', 9, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); exclusive_big = new VisType('exclusive_big', 10, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); imgK = new VisType('imgK', 11, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); imgSP = new VisType('imgSP', 12, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); imgDP = new VisType('imgDP', 13, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); imgDB = new VisType('imgDB', 14, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); imgSW = new VisType('imgSW', 15, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); imgMP = new VisType('imgMP', 16, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); img750x100 = new VisType('img750x100', 17, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); img750x200 = new VisType('img750x200', 18, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); csAd = new VisType('csAd', 19, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); nkbox = new VisType('nkbox', 20, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); unknown = new VisType_0('unknown', 21, initDim(Ldokuro_api_model_visualizations_VisElement_2_classLit, $intern_2, 4, 0, 0, 1)); gadgetAd = new VisType('gadgetAd', 22, initDim(Ldokuro_api_model_visualizations_VisElement_2_classLit, $intern_2, 4, 0, 0, 1)); rtbNativeAd = new VisType('rtbNativeAd', 23, initDim(Ldokuro_api_model_visualizations_VisElement_2_classLit, $intern_2, 4, 0, 0, 1)); flashK = new VisType('flashK', 24, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE)), new VisElement($name(FLASH))])); flashDP = new VisType('flashDP', 25, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE)), new VisElement($name(FLASH))])); flashSW = new VisType('flashSW', 26, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE)), new VisElement($name(FLASH))])); flashDB = new VisType('flashDB', 27, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE)), new VisElement($name(FLASH))])); flash750x100 = new VisType('flash750x100', 28, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE)), new VisElement($name(FLASH))])); flash750x200 = new VisType('flash750x200', 29, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE)), new VisElement($name(FLASH))])); cs_140_100 = new VisType('cs_140_100', 30, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); cs_300_210 = new VisType('cs_300_210', 31, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); cs_300_150 = new VisType('cs_300_150', 32, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); imgQuad = new VisType('imgQuad', 33, initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisElement_2_classLit, 1), $intern_2, 4, 0, [new VisElement($name(IMAGE))])); } function VisType(enum$name, enum$ordinal, elements){ VisType_0.call(this, enum$name, enum$ordinal, elements); } function VisType_0(enum$name, enum$ordinal, elements){ var e, e$index, e$max; Enum.call(this, enum$name, enum$ordinal); for (e$index = 0 , e$max = elements.length; e$index < e$max; ++e$index) { e = elements[e$index]; e.visType = this; } } function valueOf_1(name_0){ $clinit_VisType(); return valueOf(($clinit_VisType$Map() , $MAP_1), name_0); } function values_5(){ $clinit_VisType(); return initValues(getClassLiteralForArray(Ldokuro_api_model_visualizations_VisType_2_classLit, 1), $intern_4, 5, 0, [box, oneform, eval_0, flash, largeFlash, awatar, exclusive, exclusive_normal, exclusive_sky, exclusive_narrow, exclusive_big, imgK, imgSP, imgDP, imgDB, imgSW, imgMP, img750x100, img750x200, csAd, nkbox, unknown, gadgetAd, rtbNativeAd, flashK, flashDP, flashSW, flashDB, flash750x100, flash750x200, cs_140_100, cs_300_210, cs_300_150, imgQuad]); } defineClass(5, 7, {5:1, 3:1, 9:1, 7:1}, VisType, VisType_0); var awatar, box, csAd, cs_140_100, cs_300_150, cs_300_210, eval_0, exclusive, exclusive_big, exclusive_narrow, exclusive_normal, exclusive_sky, flash, flash750x100, flash750x200, flashDB, flashDP, flashK, flashSW, gadgetAd, img750x100, img750x200, imgDB, imgDP, imgK, imgMP, imgQuad, imgSP, imgSW, largeFlash, nkbox, oneform, rtbNativeAd, unknown; var Ldokuro_api_model_visualizations_VisType_2_classLit = createForEnum('dokuro.api.model.visualizations', 'VisType', 5, Ljava_lang_Enum_2_classLit, values_5); function $clinit_VisType$Map(){ $clinit_VisType$Map = emptyMethod; $MAP_1 = createValueOfMap(values_5()); } var $MAP_1; defineClass(96, 33, $intern_0); var Ldokuro_rmi_exception_ApiException_2_classLit = createForClass('dokuro.rmi.exception', 'ApiException', 96, Ljava_lang_Exception_2_classLit); function ValidationException(){ Exception.call(this, 'Server-side exception'); } defineClass(37, 96, {37:1, 3:1, 6:1}, ValidationException); var Ldokuro_rmi_exception_ValidationException_2_classLit = createForClass('dokuro.rmi.exception', 'ValidationException', 37, Ldokuro_rmi_exception_ApiException_2_classLit); function $initDesktopBoxDraw(target, resources){ try { target.desktopDraw = new target.modules.DesktopDrawModule(resources, target.utils, target.logger); } catch (e) { console.error(e); } } function $onModuleLoad_0(this$static){ var target, callback; target = getMyTarget(); new UtilsModule_ExporterImpl; target.utils = new target.modules.UtilsModule; new Logger_ExporterImpl; target.logger = new target.modules.Logger(target.utils); new DesktopDrawModule_ExporterImpl; $initDesktopBoxDraw(target, (!this$static.desktopResources && (this$static.desktopResources = new DesktopResources_default_InlineClientBundleGenerator) , this$static.desktopResources)); callback = target.onload; typeof callback == 'function' && callback(target); } function getMyTarget(){ try { var target = null; typeof gummiTarget != 'undefined' && (target = gummiTarget); if (typeof target == 'undefined' || !target) { target = $wnd.gummiTarget; target && (target.name = 'gummiTarget'); } if (typeof target == 'undefined' || !target) { target = gummiTarget; target && (target.name = 'gummiTarget'); } return target; } catch (e) { typeof console != 'undefined' && console.error(e); return gummiTarget; } } defineClass(125, 1, {}); var Lgummibear_client_GummiEntryPoint_2_classLit = createForClass('gummibear.client', 'GummiEntryPoint', 125, Ljava_lang_Object_2_classLit); function BoxStaticEntryPoint(){ } defineClass(66, 125, {}, BoxStaticEntryPoint); var Lgummibear_client_BoxStaticEntryPoint_2_classLit = createForClass('gummibear.client', 'BoxStaticEntryPoint', 66, Lgummibear_client_GummiEntryPoint_2_classLit); function $getImages(this$static){ var i_0, image, images, list; images = this$static.images; list = new LinkedList; for (i_0 = 0; i_0 < images.length; i_0++) { image = images[i_0]; $add_1(list, new Image_0(valueOf_0(image.type), image.url)); } return list; } function $setType(this$static, t){ this$static.type = t; } function $setColsCount(this$static, colsCount){ this$static.colsCount = colsCount; } function $setCornersType(this$static, cornersType){ this$static.cornersType = cornersType; } function $setFont(this$static, font){ this$static.font = font; } function $setHeight(this$static, height){ this$static.height = height; } function $setId(this$static, id_0){ this$static.id = id_0; } function $setLabelId(this$static, cornersType){ this$static.cornersType = cornersType; } function $setLabelType(this$static, labelType){ this$static.labelType = labelType; } function $setMergingType(this$static, mergingType){ this$static.mergingType = mergingType; } function $setPalette(this$static, palette){ this$static.palette = palette; } function $setRightImage(this$static, rightImage){ this$static.rightImage = rightImage; } function $setRowsCount(this$static, rowsCount){ this$static.rowsCount = rowsCount; } function $setShowScroller(this$static, showScroller){ this$static.showScroller = showScroller; } function $setWidth(this$static, width_0){ this$static.width = width_0; } function PlacementWrapper(where, placementPrefix){ this.where = where; this.placementPrefix = placementPrefix; this.hash_0 = $substring(this.where.id, this.placementPrefix.length + 1); } defineClass(53, 1, {53:1, 43:1}, PlacementWrapper); _.getAds_0 = function getAds(){ return this.ads; } ; _.getHash_0 = function getHash(){ return this.hash_0; } ; _.getLayout_0 = function getLayout(){ return this.layoutMap; } ; _.getLayoutForVisType_0 = function getLayoutForVisType(type_0){ return $getLayout(this.layoutMap, type_0); } ; _.getPlacement_0 = function getPlacement(){ return this.placement_0; } ; _.getWhere_0 = function getWhere(){ return this.where; } ; _.setAds_0 = function setAds(ads){ this.ads = ads; } ; _.setLayout_0 = function setLayout(layout){ this.layoutMap = layout; } ; _.setPlacement_0 = function setPlacement(placement){ this.placement_0 = placement; } ; _.toString$ = function toString_10(){ var builder; builder = new StringBuilder; $append_2($append_2($append_2($append_2($append_2($append_1($append_2($append_1((builder.string += 'PlacementWrapper [placement=' , builder), this.placement_0), ', where='), this.where), ', hash='), this.hash_0), ', placementPrefix='), this.placementPrefix), ']'); return builder.string; } ; var Lgummibear_client_model_placement_PlacementWrapper_2_classLit = createForClass('gummibear.client.model.placement', 'PlacementWrapper', 53, Ljava_lang_Object_2_classLit); function $export(this$static){ if (!exported) { exported = true; $clinit_ExporterUtil(); $addExporter(impl, Lgummibear_client_model_placement_PlacementWrapper_2_classLit, this$static); $export0(this$static); } } function $export0(this$static){ var pkg = declarePackage('gummiTarget.modules.PlacementWrapper'); var __0, __ = this$static; gummiTarget.modules.PlacementWrapper = $entry(function(){ var g, j = this, a = arguments; a.length == 1 && __.isAssignable(a[0])?(g = a[0]):a.length == 2 && (g = new PlacementWrapper(a[0], a[1])); j.g = g; setWrapper(g, j); return j; } ); __0 = gummiTarget.modules.PlacementWrapper.prototype = new Object; __0.getAds = $entry(function(){ return this.g.getAds_0(); } ); __0.getHash = $entry(function(){ return this.g.getHash_0(); } ); __0.getLayout = $entry(function(){ return this.g.getLayout_0(); } ); __0.getLayoutForVisType = $entry(function(a0){ return this.g.getLayoutForVisType_0(gwtInstance(a0)); } ); __0.getPlacement = $entry(function(){ return this.g.getPlacement_0(); } ); __0.getWhere = $entry(function(){ return this.g.getWhere_0(); } ); __0.setAds = $entry(function(a0){ this.g.setAds_0(a0); } ); __0.setLayout = $entry(function(a0){ this.g.setLayout_0(gwtInstance(a0)); } ); __0.setPlacement = $entry(function(a0){ this.g.setPlacement_0(a0); } ); __0.toString = $entry(function(){ return this.g.toString$(); } ); if (pkg) for (p in pkg) gummiTarget.modules.PlacementWrapper[p] === undefined && (gummiTarget.modules.PlacementWrapper[p] = pkg[p]); } function PlacementWrapper_ExporterImpl(){ $export(this); } defineClass(94, 1, {}, PlacementWrapper_ExporterImpl); _.isAssignable = function isAssignable(o){ return o != null && instanceOf(o, 53); } ; var exported = false; var Lgummibear_client_model_placement_PlacementWrapper_1ExporterImpl_2_classLit = createForClass('gummibear.client.model.placement', 'PlacementWrapper_ExporterImpl', 94, Ljava_lang_Object_2_classLit); function $createSupportedTypes(supportedTypes){ var toReturn, vistType, vistType$iterator; toReturn = []; if (!supportedTypes) { return toReturn; } for (vistType$iterator = new AbstractList$IteratorImpl(supportedTypes); vistType$iterator.i < vistType$iterator.this$01.size_1();) { vistType = (checkCriticalElement(vistType$iterator.i < vistType$iterator.this$01.size_1()) , dynamicCast(vistType$iterator.this$01.get_1(vistType$iterator.i++), 5)); $push_0(toReturn, vistType.name_0 != null?vistType.name_0:'' + vistType.ordinal); } return toReturn; } function $drawImpl(this$static, where, placement, ads){ var layoutData, map_0, type_0, layoutsMap, height, width_0, mobileLayoutName, size_0, dataBox; map_0 = (layoutsMap = new LayoutsMap , height = placement.height , width_0 = placement.width , mobileLayoutName = ($clinit_CsLayoutName() , STANDARD) , size_0 = new Size(width_0, height) , dataBox = new LayoutData(mobileLayoutName, size_0) , $addLayout(layoutsMap, ($clinit_VisType() , cs_140_100), dataBox) , $addLayout(layoutsMap, cs_300_150, dataBox) , $addLayout(layoutsMap, cs_300_210, dataBox) , undefined , layoutsMap); if (ads.length > 0) { type_0 = valueOf_1(ads[0].type); layoutData = dynamicCast($get(map_0.layouts, type_0), 29); if (!layoutData) { $error_0(this$static.utils_0, 'no layout data for: ' + type_0); return; } $drawImpl_0(this$static, where, placement, layoutData, ads); } } function $drawImpl_0(this$static, where, placement, layoutData, ads){ var layout, params, placement_0, builder, oneBoxSize; params = {static_params:this$static.staticTemplateParams, placement:placement}; layout = dynamicCast($get_0(this$static.layouts, layoutData.layoutName), 137); if (!layout) { $syso_0(this$static.utils_0, 'No such layoutName: ' + layoutData.layoutName); layout = this$static.defaultLayout; } placement_0 = params.placement; layout.wrapper = $createAndAddOutWrapper(layout, where, placement_0.width, placement_0.height); $syso_0(layout.utils_0, 'Wymiary placementu: ' + placement_0.width + 'x' + placement_0.height); builder = new SafeHtmlBuilder; oneBoxSize = $getSizeWithoutBorder(layoutData.size_0); $appendAdvertisement(builder, params, ads[0], oneBoxSize, oneBoxSize, ($clinit_OneBoxPosition() , placement_0)); $setInnerHTML(layout.wrapper, (new SafeHtmlString(builder.sb.string)).html); } function $drawImpl_1(this$static, placementWrapper, ads){ var placement, where; where = placementWrapper.where; if (ads.length > 0) { placement = placementWrapper.placement_0; $drawImpl(this$static, where, placement, ads); } } function AbstractBoxDrawModule(utils, layoutNameClass){ this.utils_0 = utils; this.layouts = new EnumMap(layoutNameClass); } defineClass(92, 1, {43:1}); var Lgummibear_client_modules_AbstractBoxDrawModule_2_classLit = createForClass('gummibear.client.modules', 'AbstractBoxDrawModule', 92, Ljava_lang_Object_2_classLit); function DesktopDrawModule(utils){ AbstractBoxDrawModule.call(this, utils, Lgummibear_shared_layouts_CsLayoutName_2_classLit); this.supportedTypes = new ArrayList; $add(this.supportedTypes, ($clinit_VisType() , cs_140_100)); $add(this.supportedTypes, cs_300_150); $add(this.supportedTypes, cs_300_210); } defineClass(52, 92, {52:1, 43:1}, DesktopDrawModule); _.draw_0 = function draw(where, placement, ads){ $drawImpl(this, where, placement, ads); } ; _.draw_1 = function draw_0(placementWrapper, ads){ $drawImpl_1(this, placementWrapper, ads); } ; _.getSupportedTypes_0 = function getSupportedTypes(){ return $createSupportedTypes(this.supportedTypes); } ; _.init_0 = function init_0(conf){ var images; this.staticTemplateParams = {classnames:{wrapper:'ak_wrapper', out_wrapper:'ak_out_wrapper', in_wrapper:'ak_in_wrapper', in_right:'ak_in_wrapper_right', in_left:'ak_in_wrapper_left', in_center:'ak_in_wrapper_center', link:'ak_wrapper_link', arrow:'ak_arrow', label:'ak_label', label_img:'ak_label_img', ad_header:'ak_ad_header', ad_header_wrapper:'ak_ad_header_wrapper', title:'ak_title', desc:'ak_text', txt_background:'ak_txt_background', img_background:'ak_img_background', cols_wrapper:'ak_cols_wrapper'}, conf:{short_label_text:conf.get('mobileLabelShortText', ''), long_label_text:conf.get('mobileLabelLongText', ''), label_href:conf.get('mobileLabelHref', 'http://LABELCLICKURL'), min_width_for_long_label:conf.get('mobileMinWidthForLongLabel', '100')}, images:(images = conf.get('imageData').other , {arrow:images['mobileArrow.png'], label:images['mobileLabel.png']})}; this.defaultLayout = new CsLayout(this.staticTemplateParams, this.utils_0); $put_0(this.layouts, ($clinit_CsLayoutName() , STANDARD), new CsLayout(this.staticTemplateParams, this.utils_0)); } ; var Lgummibear_client_modules_DesktopDrawModule_2_classLit = createForClass('gummibear.client.modules', 'DesktopDrawModule', 52, Lgummibear_client_modules_AbstractBoxDrawModule_2_classLit); function $export_0(this$static){ if (!exported_0) { exported_0 = true; $clinit_ExporterUtil(); $addExporter(impl, Lgummibear_client_modules_DesktopDrawModule_2_classLit, this$static); new PlacementWrapper_ExporterImpl; $export0_0(this$static); } } function $export0_0(this$static){ var pkg = declarePackage('gummiTarget.modules.DesktopDrawModule'); var __0, __ = this$static; gummiTarget.modules.DesktopDrawModule = $entry(function(){ var g, j = this, a = arguments; a.length == 1 && __.isAssignable(a[0])?(g = a[0]):a.length == 3 && (g = ___create(a[0], a[1] == null?null:a[1].g, a[2] == null?null:a[2].g)); j.g = g; setWrapper(g, j); return j; } ); __0 = gummiTarget.modules.DesktopDrawModule.prototype = new Object; __0.draw = $entry(function(a0, a1, a2){ runDispatch(this.g, Lgummibear_client_modules_DesktopDrawModule_2_classLit, 0, arguments, false, false)[0]; } ); __0.getSupportedTypes = $entry(function(){ return this.g.getSupportedTypes_0(); } ); __0.init = $entry(function(a0){ this.g.init_0(a0); } ); registerDispatchMap(Lgummibear_client_modules_DesktopDrawModule_2_classLit, {0:{2:[[function(){ return this.draw_1.apply(this, arguments); } , null, undefined, Lgummibear_client_model_placement_PlacementWrapper_2_classLit, 'object']], 3:[[function(){ return this.draw_0.apply(this, arguments); } , null, undefined, 'object', 'object', 'object']]}}, false); if (pkg) for (p in pkg) gummiTarget.modules.DesktopDrawModule[p] === undefined && (gummiTarget.modules.DesktopDrawModule[p] = pkg[p]); } function DesktopDrawModule_ExporterImpl(){ $export_0(this); } function ___create(a0, a1, a2){ return new DesktopDrawModule(a1); } defineClass(91, 1, {}, DesktopDrawModule_ExporterImpl); _.isAssignable = function isAssignable_0(o){ return o != null && instanceOf(o, 52); } ; var exported_0 = false; var Lgummibear_client_modules_DesktopDrawModule_1ExporterImpl_2_classLit = createForClass('gummibear.client.modules', 'DesktopDrawModule_ExporterImpl', 91, Ljava_lang_Object_2_classLit); function $exception(this$static, fname, exc, param){ if (this$static.stopped) return; this$static.report_0('J3-', 'exception'); try { var fstarts = this$static.fstarts; fname = exc.methodName || fname; var dbgStage = this$static.dbgStage; var lineNo = this$static.getLno_0(exc); if (fstarts.length > 0) { var lnostr = ' (' + exc.lineNumber + ')'; var dbgStr = dbgStage?' @' + dbgStage:''; this$static.syso_1('reporting exception at: ' + lineNo + lnostr + ': ' + fname + dbgStr, 'red'); this$static.syso_0(exc.message); } this$static.excList.push(exc); this$static.nativeDebug.updateMsgDiv(); param === undefined && (param = '-'); var utils = this$static.utils_0; var emsg = utils.ifnull_0(exc.message, '-').toLowerCase().replace(/.backtrace[.*]/g, ''); emsg = emsg.substring(0, 100); var excMap = this$static.excMap; if (excMap[fname + '#' + emsg] != undefined) return this$static.syso_0('exception - again'); excMap[fname + '#' + emsg] = true; this$static.addStats_0('exception', true, {fname:fname, e:emsg, lno:lineNo, dbg:dbgStage, param:param}, false); } catch (e) { this$static.syso_0('raporting failed: ' + e.lineNumber); try { console.error(e); } catch (e1) { } } } function $initReports(this$static){ try { $initShortImpressions(this$static); } catch ($e0) { $e0 = wrap($e0); if (!instanceOf($e0, 17)) throw unwrap($e0); } } function $initShortImpressions(this$static){ var conf = this$static.conf_0; var utils = this$static.utils_0; if (!(this$static.co100_0() && conf.get('reportShortImpressions'))) return; var time = Math.floor(Math.random() * 15000); setTimeout(function(){ var newsrc = conf.getUrl('raportUrl').replace(/_NOW_/g, utils.getNow_0()); newsrc += '&impTime=' + time + '&max=15000'; var logImage = new Image(1, 1); logImage.style.position = 'absolute'; logImage.style.left = '0px'; logImage.style.top = '0px'; document.body.appendChild(logImage); logImage.src = newsrc; } , time); } function $nativeDone(this$static, stats, profiler, confirmAll){ if (profiler.anyAsyncInProgress()) { var asyncStage = profiler.start('other'); this$static.report_1('J1-', 'invalid stage after timeout', asyncStage); profiler.idle(); } var dbgStats = profiler.getStats(); stats.pn = dbgStats.names.join('_'); stats.pt = dbgStats.times.join('_'); this$static.addStats_0('done', false, stats, true); this$static.nativeDebug.updateMsgDiv(confirmAll); } function $nativeReport(this$static, all, msg, param, stray){ if (this$static.stopped && all.indexOf('f') < 0) return; try { stray != undefined && stray != null && this$static.syso_1('stray params: ' + msg); var reportParams = this$static.raportParams; typeof all === 'string' && (all = reportParams(all, msg, param)); all.msg === undefined && (all.msg = '-'); all.param === undefined && (all.param = '-'); all.co100 === undefined && (all.co100 = false); if (this$static.silenceReports[all.msg]) return; if (all.stop) { this$static.report_1('J3-', 'stop'); this$static.stop_0(all.msg); } if (this$static.reportsByType[all.msg] !== undefined) { return this$static.trace_0(all.msg + ' - again'); } this$static.reportsByType[all.msg] = all.param; this$static.reports.push(all); this$static.nativeDebug.updateMsgDiv(); var sysostr = all.msg + ': ' + all.param; var sysocolor = all.co100?'navy':['yellow', 'gold', '#f50', 'red', '#70f'][all.sev]; this$static.syso_1('reporting - ' + sysostr, sysocolor); this$static.addStats_0('msg', !all.co100, {e:all.msg.replace(/[^\w]+/g, '_'), p:all.param}, false); } catch (e) { this$static.syso_1('reporting failed! ' + e.lineNumber, 'pink'); try { console.error(e); } catch (e1) { } } } function $nativeSet1stReport(this$static){ if (typeof ns_36033 != 'undefined') return; this$static.syso_0('impression valid'); var dref = document.referrer || ''; dref = dref.replace(/^https?:\/\//, ''); dref = dref.substring(0, 100); var stateData = this$static.stateData; this$static.addStats_0('ok', false, {status:this$static.status_0, co100:this$static.co100_0(), ssab:stateData.ssabChanged?'x':stateData.ssab, rs:stateData.readyState || document.readyState, fpv:stateData.getFlashPlayerVersion(), ref:dref, content:this$static.shortContent()}, true); try { typeof spliter_dead != 'undefined' && this$static.report_1('S0', 'not dead', 'box'); typeof spliterIx_dead != 'undefined' && this$static.report_1('S0', 'not dead', 'ix'); } catch (e) { } this$static.anything2send |= this$static.co100_0(); this$static.alreadySent = true; this$static.sendAllNow(); } function $printStats(this$static, stats){ var utils = this$static.conf_0; var ret = ''; for (var key in stats) { if (!stats.hasOwnProperty(key)) continue; if (key === 'null') continue; if (stats[key] === undefined) continue; if (key === 'ignore') continue; var val = ('' + stats[key]).replace(utils.ignoreCharsRegExpr, '_'); val.length > 700 && (val = val.substring(0, 700)); ret += ',' + key + ',' + val; } return ret.replace(/^,/, ''); } function $report(this$static, all, msg, param, stray){ if (!this$static.initialized) return; $nativeReport(this$static, all, msg, param, stray); } function $sendAllNow(this$static){ var i_0, msgs, report; if (this$static.disableSendAll) return; if (!this$static.anything2send) return; msgs = []; for (i_0 = 0; i_0 < this$static.raportBuffer.length; i_0++) { report = this$static.raportBuffer[i_0]; if (report.ignore) continue; $push_0(msgs, $printStats(this$static, report)); } this$static.sendStat(msgs.join(';')); } function $sendPluginStats(this$static, pluginNames){ var any = false; var apStats = {}; for (var i_0 in pluginNames) { if (!pluginNames.hasOwnProperty(i_0)) continue; if (pluginNames[i_0].indexOf('g:') >= 0) continue; apStats[i_0] = pluginNames[i_0].substring(2).split(' ')[0]; any = true; } if (!any) return; this$static.addStats_0('plugins', false, apStats, true); } function $set1stReport(this$static){ if (this$static.disableSet1stReport) return; $nativeSet1stReport(this$static); } function $silence(this$static, name_0){ this$static.silenceReports[name_0] = true; } function $trace(msg, color_0){ if (typeof trace === 'undefined') return; try { trace(msg, color_0); } catch (e) { } } function Logger(utils){ this.excMap = {}; this.reportsByType = {}; this.silenceReports = {}; this.raportBuffer = []; this.reports = []; this.formLog = []; this.before10s = []; this.excList = []; this.utils_0 = utils; this.sendStat = sendStatFunction(this); } function sendStatFunction(logger){ var statsSentTimestamp = 0; var statsSentLastTime = 0; var statsSentCooldown = 1000; var lastStatsStr = ''; var utils = logger.utils_0; return function(str){ logger.syso_0('sendstat ?'); if (str === lastStatsStr) return; lastStatsStr = str; var now_0 = utils.getNow_0(); if (now_0 - statsSentLastTime > statsSentCooldown) { statsSentTimestamp++; statsSentLastTime = now_0; logger.sendStat0_0(str); } else { var oldSentTimestamp = ++statsSentTimestamp; setTimeout(function(){ if (oldSentTimestamp != statsSentTimestamp) return; statsSentLastTime = now_0; logger.sendStat0_0(str); } , statsSentCooldown); } } ; } defineClass(51, 1, {51:1, 43:1}, Logger); _.addFormLogIfDifferent_0 = function addFormLogIfDifferent(str){ var last, length_0; length_0 = this.formLog.length; if (length_0 > 0) { last = this.formLog[length_0 - 1]; if (last != null && $equals_5(last, str)) { return; } } $push_0(this.formLog, str); } ; _.addStats_0 = function addStats(type_0, important, stats, uniq){ var i_0, pos; $trace('add stats: ' + type_0, ''); this.sendstatlimit-- < 0 && $syso_0(this.utils_0, 'reporting failed!'); important && (this.anything2send = true); stats.type = type_0; pos = this.raportBuffer.length; if (uniq) { for (i_0 = 0; i_0 < this.raportBuffer.length; i_0++) { if (!$equalsIgnoreCase(this.raportBuffer[i_0].type, type_0)) { continue; } pos = i_0; break; } } this.raportBuffer[pos] = stats; this.alreadySent && $sendAllNow(this); } ; _.clearReportBuffer_0 = function clearReportBuffer(){ this.reports = []; this.excList = []; this.excMap = []; this.reportsByType = {}; } ; _.co100_0 = function co100(){ var conf = this.conf_0; var sto = conf.get('coile'); var stateData = this.stateData; return (stateData.rndId - conf.get('mod100')) % sto === 0; } ; _.disable_0 = function disable(){ this.disableSendAll = this.disableSet1stReport = true; } ; _.done_0 = function done(stats, profiler, pluginNames, confirmAll){ var stage; if (this.stopped) return; if (!stats) { $syso(this.nativeOptions, 'no stats to send'); return; } $sendPluginStats(this, pluginNames); stage = profiler.getActiveStage(); !stage || $report(this, 'J2-', 'busy after timeout', stage, null); $nativeDone(this, stats, profiler, confirmAll); } ; _.exception_0 = function exception_0(fname, exc, param){ $exception(this, fname, exc, param); } ; _.getDbgStage_0 = function getDbgStage(){ return this.dbgStage; } ; _.getExcList_0 = function getExcList(){ return this.excList; } ; _.getLno_0 = function getLno(e_0){ if (typeof e_0 != 'object') return '?'; var lno = e_0.lineNumber; var fstarts = this.fstarts; if (isNaN(lno)) return '-'; try { if (e_0.fileName.indexOf('dbg_utils') >= 0) return 'dbg_utils ' + (lno - 13); } catch (e) { } try { for (var i_0 = 0; i_0 < fstarts.length; i_0++) { if (fstarts[i_0][1] <= lno) continue; return fstarts[i_0 - 1][0] + ' ' + (lno - fstarts[i_0 - 1][1]); } } catch (e) { } this.syso_0('unknown line number'); return '--'; } ; _.getReports_0 = function getReports(){ return this.reports; } ; _.init_1 = function init_1(conf, nativeDebug, stateData, nativeOptions, fstarts){ this.nativeDebug = nativeDebug; this.conf_0 = conf; this.stateData = stateData; this.nativeOptions = nativeOptions; this.fstarts = fstarts; this.raportLimit = conf.get('raportLimit', 5); $initReports(this); this.initialized = true; this.stopped = false; } ; _.isAlreadySent_0 = function isAlreadySent(){ return this.alreadySent; } ; _.lateInit_0 = function lateInit(){ ((function(){ } .bind + '').indexOf('[native code]') < 0 && this.report_0('P1-', 'bind broken')); var options = this.nativeOptions; options('co100') && this.report_0('J0', 'co100'); } ; _.log_0 = function log_0(msg){ } ; _.onBeforeSend_0 = function onBeforeSend(f){ $push(this.before10s, f); } ; _.printStats_0 = function printStats(stats){ return $printStats(this, stats); } ; _.raportParams = function raportParams(all, msg, param){ all = all.toLowerCase(); var ret = {msg:msg, param:param}; all.indexOf('-') >= 0 && (ret.co100 = true); all.indexOf('!') >= 0 && (ret.stop = true); for (var i_0 = 0; i_0 < 5; ++i_0) { all.indexOf('' + i_0) >= 0 && (ret.sev = i_0); } return ret; } ; _.report_0 = function report_0(all, msg){ $report(this, all, msg, null, null); } ; _.report_1 = function report_1(all, msg, param){ $report(this, all, msg, param, null); } ; _.report_2 = function report_2(all, msg, param, stray){ $report(this, all, msg, param, stray); } ; _.sendAllNow = function sendAllNow(){ $sendAllNow(this); } ; _.sendNow_0 = function sendNow(early){ var e, i_0; if (this.disableSendNow) return; this.status_0 = this.currentStage; if (early) { $set1stReport(this); return; } this.disableSendNow = true; try { for (i_0 = 0; i_0 < this.before10s.length; i_0++) { this.before10s[i_0](); } } catch ($e0) { $e0 = wrap($e0); if (instanceOf($e0, 17)) { e = $e0; $exception(this, 'sendNow', e, null); } else throw unwrap($e0); } $set1stReport(this); this.disableSet1stReport = true; } ; _.sendStat0_0 = function sendStat0(str){ var conf = this.conf_0; var options = this.nativeOptions; var debug = this.nativeDebug; var utils = this.utils_0; var stateData = this.stateData; if (conf.get('debugMode') && !options('dbgRaport')) return; this.syso_0('SENDSTAT !'); debug.updateMsgDiv(); if (this.sendstatlimit-- < 0) return this.syso_1('reporting failed: ' + str, 'pink'); if (conf.get('enableRaports') === false) return this.syso_0('not reporting: ' + str); if (document.readyState === 'loading' || document.readyState === 'interactive') { var sendstat = this.sendStat; return setTimeout(utils.bind_0(sendstat, str), conf.get('defaultTimeout')); } if (this.raportLimit < 0) return this.syso_0('raport limit exceeded: ' + str); var logImage = new Image(1, 1); logImage.style.position = 'absolute'; logImage.style.left = '0px'; logImage.style.top = '0px'; logImage.style.width = '1px'; logImage.style.height = '1px'; document.body.appendChild(logImage); this.raportLimit--; str = (str + ';;').replace(/\s/g, '_').replace(/\{.*\}/g, '[...]').substring(0, 1800); var resolution = 'unknown'; try { resolution = screen.width + 'x' + screen.height; } catch (e) { } var stateData = this.stateData; var mobile = stateData.isMobile?'t':'f'; var formLog = this.formLog; var newsrc = conf.getUrl('raportUrl').replace(/_NOW_/g, utils.getNow_0()) + ',' + stateData.ssPrefix() + ',' + stateData.version + ',' + stateData.rndId + ',' + utils.ifnull_0(stateData.prid, -1) + ',' + utils.ifnull_0(stateData.caid, -1) + ',' + utils.ifnull_0(stateData.plid, -1) + ',' + (stateData.ie?stateData.ie6?'6':'T':'F') + ',' + (formLog && formLog.join('_') || '-') + ',' + resolution + ',' + stateData.timeShift + ',' + this.raportId + ',' + mobile + ';' + str.replace(/^,/, ''); this.raportId >= 0 && this.raportId++; logImage.src = newsrc; this.trace_0('sending ' + str.length + ' bytes: ' + str, 'white'); } ; _.setContent_0 = function setContent(content_0){ this.content_0 = content_0; } ; _.setDbgStage_0 = function setDbgStage(dbgStage){ this.dbgStage = dbgStage; } ; _.shortContent = function shortContent(){ var ret; if (this.content_0 == null && !this.content_0.length) return ''; ret = $split($substring(this.content_0, 5), '_32', 0)[0]; return $replaceAll(ret, '\\+$', ''); } ; _.silence_0 = function silence(name_0){ $silence(this, name_0); } ; _.stage_0 = function stage_0(stage){ this.currentStage = stage; this.nativeDebug.setStage(stage); } ; _.stop_0 = function stop_0(errorName){ if (this.stopped) return; this.stopped = true; this.status_0 = errorName; } ; _.syso_0 = function syso(msg){ $syso(this.nativeOptions, msg); } ; _.syso_1 = function syso_0(msg, color_0){ $syso(this.nativeOptions, msg); } ; _.trace_0 = function trace_0(msg, color_0){ $trace(msg, color_0); } ; _.unreport_0 = function unreport(msg){ var i_0, i0, one; $silence(this, msg); for (i0 = 0; i0 < this.raportBuffer.length; i0++) { one = this.raportBuffer[i0]; $setIgnore(one, one.ignore || $equals_5('msg', one.type) && $equals_5($replaceAll(msg, '\\s+', '_'), one.e)); } for (i_0 = 0; i_0 < this.reports.length; i_0++) { one = this.reports[i_0]; $setIgnore(one, one.ignore || $equals_5(msg, one.msg)); } } ; _.alreadySent = false; _.anything2send = false; _.content_0 = ''; _.currentStage = 'init'; _.dbgStage = null; _.disableSendAll = false; _.disableSendNow = false; _.disableSet1stReport = false; _.initialized = false; _.raportId = 0; _.raportLimit = 0; _.sendstatlimit = 100; _.status_0 = null; _.stopped = true; var Lgummibear_client_modules_Logger_2_classLit = createForClass('gummibear.client.modules', 'Logger', 51, Ljava_lang_Object_2_classLit); function $export_1(this$static){ if (!exported_1) { exported_1 = true; $clinit_ExporterUtil(); $addExporter(impl, Lgummibear_client_modules_Logger_2_classLit, this$static); $export0_1(this$static); } } function $export0_1(this$static){ var pkg = declarePackage('gummiTarget.modules.Logger'); var __0, __ = this$static; gummiTarget.modules.Logger = $entry(function(){ var g, j = this, a = arguments; a.length == 1 && __.isAssignable(a[0])?(g = a[0]):a.length == 1 && (g = ___create_0(a[0] == null?null:a[0].g)); j.g = g; setWrapper(g, j); return j; } ); __0 = gummiTarget.modules.Logger.prototype = new Object; __0.addFormLogIfDifferent = $entry(function(a0){ this.g.addFormLogIfDifferent_0(a0); } ); __0.addStats = $entry(function(a0, a1, a2, a3){ this.g.addStats_0(a0, a1, a2, a3); } ); __0.clearReportBuffer = $entry(function(){ this.g.clearReportBuffer_0(); } ); __0.co100 = $entry(function(){ return this.g.co100_0(); } ); __0.disable = $entry(function(){ this.g.disable_0(); } ); __0.done = $entry(function(a0, a1, a2, a3){ this.g.done_0(a0, a1, a2, a3); } ); __0.exception = $entry(function(a0, a1, a2){ this.g.exception_0(a0, gwtInstance(a1), a2); } ); __0.getDbgStage = $entry(function(){ return this.g.getDbgStage_0(); } ); __0.getExcList = $entry(function(){ return this.g.getExcList_0(); } ); __0.getLno = $entry(function(a0){ this.g.getLno_0(a0); } ); __0.getReports = $entry(function(){ return this.g.getReports_0(); } ); __0.init = $entry(function(a0, a1, a2, a3, a4){ this.g.init_1(a0, a1, a2, a3, a4); } ); __0.isAlreadySent = $entry(function(){ return this.g.isAlreadySent_0(); } ); __0.lateInit = $entry(function(){ this.g.lateInit_0(); } ); __0.log = $entry(function(a0){ this.g.log_0(a0); } ); __0.onBeforeSend = $entry(function(a0){ this.g.onBeforeSend_0(a0); } ); __0.printStats = $entry(function(a0){ return this.g.printStats_0(a0); } ); __0.report = $entry(function(a0, a1, a2, a3){ runDispatch(this.g, Lgummibear_client_modules_Logger_2_classLit, 0, arguments, false, false)[0]; } ); __0.sendNow = $entry(function(a0){ this.g.sendNow_0(a0); } ); __0.sendStat0 = $entry(function(a0){ this.g.sendStat0_0(a0); } ); __0.setContent = $entry(function(a0){ this.g.setContent_0(a0); } ); __0.setDbgStage = $entry(function(a0){ this.g.setDbgStage_0(a0); } ); __0.silence = $entry(function(a0){ this.g.silence_0(a0); } ); __0.stage = $entry(function(a0){ this.g.stage_0(a0); } ); __0.trace = $entry(function(a0, a1){ this.g.trace_0(a0, a1); } ); __0.unreport = $entry(function(a0){ this.g.unreport_0(a0); } ); registerDispatchMap(Lgummibear_client_modules_Logger_2_classLit, {0:{2:[[function(){ return this.report_0.apply(this, arguments); } , null, undefined, Ljava_lang_Object_2_classLit, 'string']], 3:[[function(){ return this.report_1.apply(this, arguments); } , null, undefined, Ljava_lang_Object_2_classLit, 'string', Ljava_lang_Object_2_classLit]], 4:[[function(){ return this.report_2.apply(this, arguments); } , null, undefined, Ljava_lang_Object_2_classLit, 'string', Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit]]}}, false); if (pkg) for (p in pkg) gummiTarget.modules.Logger[p] === undefined && (gummiTarget.modules.Logger[p] = pkg[p]); } function Logger_ExporterImpl(){ $export_1(this); } function ___create_0(a0){ return new Logger(a0); } defineClass(90, 1, {}, Logger_ExporterImpl); _.isAssignable = function isAssignable_1(o){ return o != null && instanceOf(o, 51); } ; var exported_1 = false; var Lgummibear_client_modules_Logger_1ExporterImpl_2_classLit = createForClass('gummibear.client.modules', 'Logger_ExporterImpl', 90, Ljava_lang_Object_2_classLit); function $bind(f, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10){ return function(){ return f(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); } ; } function $error(options, msg){ var enabledDebug = options('adc_debug'); if (!enabledDebug) return; try { if (window.top.console === undefined) return; window.top.console.log(msg); } catch (e) { } } function $error_0(this$static, msg){ $error(this$static.options, msg); } function $findElementsByClass(where, className, ret){ var all, elem, elemClass, i_0; all = where.getElementsByTagName('*'); for (i_0 = 0; i_0 < all.length; i_0++) { elem = all[i_0]; elemClass = ' ' + $getClassName(elem) + ' '; elemClass.indexOf(className) != -1 && $push(ret, elem); } return ret; } function $syso(options, msg){ try { var enabledDebug = options('adc_debug'); if (!enabledDebug) return; if (window.top.console === undefined) return; window.top.console.log(msg); } catch (e_0) { if (typeof $wnd.printErrors === 'undefined') return; try { $wnd.printErrors(e_0); } catch (e) { } } } function $syso_0(this$static, msg){ $syso(this$static.options, msg); } function UtilsModule(){ this.options = createAlwaysFalse(); } defineClass(50, 1, {50:1, 43:1}, UtilsModule); _.bind_0 = function bind_0(f, p1){ return $bind(f, p1, null, null, null, null, null, null, null, null, null); } ; _.bind_1 = function bind_1(f, p1, p2){ return $bind(f, p1, p2, null, null, null, null, null, null, null, null); } ; _.bind_2 = function bind_2(f, p1, p2, p3){ return $bind(f, p1, p2, p3, null, null, null, null, null, null, null); } ; _.bind_3 = function bind_3(f, p1, p2, p3, p4){ return $bind(f, p1, p2, p3, p4, null, null, null, null, null, null); } ; _.bind_4 = function bind_4(f, p1, p2, p3, p4, p5){ return $bind(f, p1, p2, p3, p4, p5, null, null, null, null, null); } ; _.bind_5 = function bind_5(f, p1, p2, p3, p4, p5, p6){ return $bind(f, p1, p2, p3, p4, p5, p6, null, null, null, null); } ; _.bind_6 = function bind_6(f, p1, p2, p3, p4, p5, p6, p7){ return $bind(f, p1, p2, p3, p4, p5, p6, p7, null, null, null); } ; _.bind_7 = function bind_7(f, p1, p2, p3, p4, p5, p6, p7, p8){ return $bind(f, p1, p2, p3, p4, p5, p6, p7, p8, null, null); } ; _.bind_8 = function bind_8(f, p1, p2, p3, p4, p5, p6, p7, p8, p9){ return $bind(f, p1, p2, p3, p4, p5, p6, p7, p8, p9, null); } ; _.bind_9 = function bind_9(f, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10){ return $bind(f, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); } ; _.byId_0 = function byId_0(id_0){ return document.getElementById(id_0); } ; _.consoleLog_0 = function consoleLog(msg){ window.top.console.log(msg); } ; _.createGummiPlacement_0 = function createGummiPlacement(jsParam){ var gummiPlacement, params; params = new ScriptBoxParams(jsParam); gummiPlacement = {}; $setId(gummiPlacement, params.labelId); $setMergingType(gummiPlacement, $name(params.merging)); $setShowScroller(gummiPlacement, params.showScroller_0); $setLabelType(gummiPlacement, $name(params.labelType_0)); $setRightImage(gummiPlacement, params.rightImage_0); $setCornersType(gummiPlacement, $name(toCornersType(params.corners))); $setLabelId(gummiPlacement, params.labelId); $setColsCount(gummiPlacement, params.cols_0); $setRowsCount(gummiPlacement, params.rows_0); $setWidth(gummiPlacement, params.width_0); $setHeight(gummiPlacement, params.height_0); $setFont(gummiPlacement, params.font_0); gummiPlacement.channelId = 100; gummiPlacement.publisherId = 200; gummiPlacement.hash = 'nmdfgsdfs'; $setPalette(gummiPlacement, params.palette_0); $setType(gummiPlacement, ($clinit_GummiPlacement$Type() , BOX_DESKTOP)); return gummiPlacement; } ; _.createIframe_0 = function createIframe(where, width_0, heigth){ var ifr = $doc.createElement('iframe'); ifr.marginWidth = '0'; ifr.marginHeight = '0'; ifr.scrolling = 'no'; ifr.style.margin = 'auto'; ifr.frameBorder = '0'; ifr.style.width = width_0 + 'px'; ifr.style.height = heigth + 'px'; ifr.style.maxWidth = width_0 + 'px'; ifr.style.maxHeight = heigth + 'px'; ifr.style.overflow = 'hidden'; ifr.style.padding = ifr.style.border = '0px'; ifr.id = 'rnd' + Math.random(); ifr.name = 'rnd_name' + Math.random(); try { ifr.allowTransparency = 'true'; } catch (e) { } where.appendChild(ifr); return ifr; } ; _.error_0 = function error(options, e_0){ var enabledDebug = options('adc_debug'); if (!enabledDebug) return; try { if (window.top.console === undefined) return; window.top.console.log(e_0); } catch (e) { } } ; _.error_1 = function error_0(options, msg){ $error(options, msg); } ; _.error_2 = function error_1(msg){ $error_0(this, msg); } ; _.escape_0 = function escape_0(val){ return escape(val); } ; _.findElementsByClass_0 = function findElementsByClass(where, className){ var ret; ret = []; return $findElementsByClass(where, className, ret); } ; _.findElementsByClass_1 = function findElementsByClass_0(where, className, ret){ return $findElementsByClass(where, className, ret); } ; _.getIfrDoc_0 = function getIfrDoc(ifr){ cd = null; if (!ifr) return null; ifr.contentDocument && (cd = ifr.contentDocument); try { ifr.contentWindow && (cd = ifr.contentWindow.document); } catch (e) { } return cd; } ; _.getNow_0 = function getNow(){ return (new Date).getTime(); } ; _.ifnull_0 = function ifnull(x_0, onnull){ if (x_0 === undefined) return onnull; if (x_0 === null) return onnull; if (typeof x_0 === 'number' && isNaN(x_0)) return onnull; if (x_0 === '') return onnull; return x_0; } ; _.isNullOrEmpty_0 = function isNullOrEmpty(obj){ return !obj; } ; _.setOptions_0 = function setOptions(options){ this.options = options; } ; _.shallowCopy_0 = function shallowCopy(obj){ var ret = {}; for (var i_0 in obj) { if (!obj.hasOwnProperty(i_0)) continue; ret[i_0] = obj[i_0]; } return ret; } ; _.syso_2 = function syso_1(options, msg){ $syso(options, msg); } ; _.syso_3 = function syso_2(options, msg, color_0){ $syso(options, msg); } ; _.syso_4 = function syso_3(msg){ $syso_0(this, msg); } ; _.unescape_0 = function unescape_0(val){ return unescape(val); } ; _.unhyphen_0 = function unhyphen(content_0){ return $replaceAll(content_0, unescape('%AD'), ''); } ; var Lgummibear_client_modules_UtilsModule_2_classLit = createForClass('gummibear.client.modules', 'UtilsModule', 50, Ljava_lang_Object_2_classLit); function $export_2(this$static){ if (!exported_2) { exported_2 = true; $clinit_ExporterUtil(); $addExporter(impl, Lgummibear_client_modules_UtilsModule_2_classLit, this$static); $export0_2(this$static); } } function $export0_2(this$static){ var pkg = declarePackage('gummiTarget.modules.UtilsModule'); var __0, __ = this$static; gummiTarget.modules.UtilsModule = $entry(function(){ var g, j = this, a = arguments; a.length == 1 && __.isAssignable(a[0])?(g = a[0]):a.length == 0 && (g = new UtilsModule); j.g = g; setWrapper(g, j); return j; } ); __0 = gummiTarget.modules.UtilsModule.prototype = new Object; __0.bind = $entry(function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10){ return runDispatch(this.g, Lgummibear_client_modules_UtilsModule_2_classLit, 2, arguments, false, false)[0]; } ); __0.byId = $entry(function(a0){ return this.g.byId_0(a0); } ); __0.consoleLog = $entry(function(a0){ this.g.consoleLog_0(a0); } ); __0.createGummiPlacement = $entry(function(a0){ return this.g.createGummiPlacement_0(a0); } ); __0.createIframe = $entry(function(a0, a1, a2){ return this.g.createIframe_0(a0, a1, a2); } ); __0.error = $entry(function(a0, a1){ runDispatch(this.g, Lgummibear_client_modules_UtilsModule_2_classLit, 1, arguments, false, false)[0]; } ); __0.escape = $entry(function(a0){ return this.g.escape_0(a0); } ); __0.findElementsByClass = $entry(function(a0, a1, a2){ return runDispatch(this.g, Lgummibear_client_modules_UtilsModule_2_classLit, 3, arguments, false, false)[0]; } ); __0.getIfrDoc = $entry(function(a0){ return this.g.getIfrDoc_0(a0); } ); __0.getNow = $entry(function(){ return this.g.getNow_0(); } ); __0.ifnull = $entry(function(a0, a1){ return this.g.ifnull_0(a0, a1); } ); __0.isNullOrEmpty = $entry(function(a0){ return runDispatch(this.g, Lgummibear_client_modules_UtilsModule_2_classLit, 0, arguments, false, false)[0]; } ); __0.setOptions = $entry(function(a0){ this.g.setOptions_0(a0); } ); __0.shallowCopy = $entry(function(a0){ return this.g.shallowCopy_0(a0); } ); __0.syso = $entry(function(a0, a1, a2){ runDispatch(this.g, Lgummibear_client_modules_UtilsModule_2_classLit, 4, arguments, false, false)[0]; } ); __0.unescape = $entry(function(a0){ return this.g.unescape_0(a0); } ); __0.unhyphen = $entry(function(a0){ return this.g.unhyphen_0(a0); } ); registerDispatchMap(Lgummibear_client_modules_UtilsModule_2_classLit, {0:{1:[[function(){ return this.isNullOrEmpty_0.apply(this, arguments); } , null, undefined, Ljava_lang_Object_2_classLit]]}, 1:{1:[[function(){ return this.error_2.apply(this, arguments); } , null, undefined, Ljava_lang_Object_2_classLit]], 2:[[function(){ return this.error_0.apply(this, arguments); } , null, undefined, 'object', Lcom_google_gwt_core_client_JavaScriptException_2_classLit], [function(){ return this.error_1.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit]]}, 2:{2:[[function(){ return this.bind_0.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit]], 3:[[function(){ return this.bind_1.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit]], 4:[[function(){ return this.bind_2.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit]], 5:[[function(){ return this.bind_3.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit]], 6:[[function(){ return this.bind_4.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit]], 7:[[function(){ return this.bind_5.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit]], 8:[[function(){ return this.bind_6.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit]], 9:[[function(){ return this.bind_7.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit]], 10:[[function(){ return this.bind_8.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit]], 11:[[function(){ return this.bind_9.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit, Ljava_lang_Object_2_classLit]]}, 3:{2:[[function(){ return this.findElementsByClass_0.apply(this, arguments); } , null, undefined, 'object', 'string']], 3:[[function(){ return this.findElementsByClass_1.apply(this, arguments); } , null, undefined, 'object', 'string', 'object']]}, 4:{1:[[function(){ return this.syso_4.apply(this, arguments); } , null, undefined, Ljava_lang_Object_2_classLit]], 2:[[function(){ return this.syso_2.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit]], 3:[[function(){ return this.syso_3.apply(this, arguments); } , null, undefined, 'object', Ljava_lang_Object_2_classLit, 'string']]}}, false); if (pkg) for (p in pkg) gummiTarget.modules.UtilsModule[p] === undefined && (gummiTarget.modules.UtilsModule[p] = pkg[p]); } function UtilsModule_ExporterImpl(){ $export_2(this); } defineClass(89, 1, {}, UtilsModule_ExporterImpl); _.isAssignable = function isAssignable_2(o){ return o != null && instanceOf(o, 50); } ; var exported_2 = false; var Lgummibear_client_modules_UtilsModule_1ExporterImpl_2_classLit = createForClass('gummibear.client.modules', 'UtilsModule_ExporterImpl', 89, Ljava_lang_Object_2_classLit); function $appendAdvertisement(builder, params, ad, sizeWithoutBorder, sizeWithBorder, placement){ var boxparams, html, image, image$iterator, imageUrl, labelText; labelText = params.static_params.conf.short_label_text; sizeWithBorder.height >= params.static_params.conf.min_width_for_long_label && (labelText = params.static_params.conf.long_label_text); imageUrl = ''; for (image$iterator = $listIterator($getImages(ad), 0); image$iterator.currentNode != image$iterator.this$01.tail;) { image = (checkCriticalElement(image$iterator.currentNode != image$iterator.this$01.tail) , image$iterator.lastNode = image$iterator.currentNode , image$iterator.currentNode = image$iterator.currentNode.next , ++image$iterator.currentIndex , image$iterator.lastNode.value_0); image.type_0 == ($clinit_VisElementType() , IMAGE) && (imageUrl = image.url_0); } boxparams = $createOneDesktopParams(params, ad, sizeWithoutBorder, labelText, imageUrl, placement.width); html = $fillTemplate('\n
\n\t
\n\t\t \n\t\t<\/a>\n\t<\/div>\n\t
\n\t\t${advertisement.title}$<\/a>\n\t<\/div>\n<\/div>\n', boxparams); $append(builder, ($clinit_SafeHtmlUtils() , new SafeHtmlString(html))); } function $createAndAddOutWrapper(this$static, where, width_0, heigth){ var doc, ifr, ret; ifr = $createIFrameWrapper(where, width_0, heigth); doc = $getIFrameDocument(ifr); if (doc) { return $createDivInsideIframeDoc(doc, this$static.staticTemplateParams.classnames.out_wrapper, 'function scaleImage() { var maxWidth= ' + width_0 + ';' + ' var maxHeight = ' + (heigth - 20) + ';' + "\t var image = document.getElementById('cs_image');" + ' var nWidth = image.naturalWidth;' + ' var nHeight = image.naturalHeight;' + '\t var ratio = nHeight / nWidth;' + ' if (nWidth <= maxWidth && nHeight > maxHeight) {' + ' nHeight = maxHeight;' + '\t\t nWidth = nHeight / ratio;' + ' } else if (nWidth > maxWidth && nHeight < maxHeight) {' + '\t\t\tnWidth = maxWidth;' + '\t\t\tnHeight = nWidth * ratio;' + ' \t}else if (nWidth > maxWidth && nHeight > maxHeight) {' + '\t\t\tif (nHeight / maxHeight > nWidth / maxWidth) {' + '\t\t\t\tnHeight = maxHeight;' + '\t\t\t\tnWidth = nHeight / ratio;' + '\t\t\t} else {' + '\t\t\t\tnWidth = maxWidth;' + '\t\t\t\tnHeight = nWidth * ratio;' + '\t\t\t}' + '\t\t}' + 'image.style.width = nWidth;' + 'image.style.height = nHeight;' + "image.style.visibility = 'visible';" + '}'); } else { ret = $doc.createElement('div'); $addClassName(ret, this$static.staticTemplateParams.classnames.out_wrapper); where.appendChild(ret); return ret; } } function $createDivInsideIframeDoc(cd_0, divClassName, js){ cd_0.open(); var div = cd_0.createElement('div'); div.className = div.className + ' ' + divClassName; cd_0.write('<\/head>