Guest User

Untitled

a guest
May 23rd, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.26 KB | None | 0 0
  1. // Compiled in PRETTY style
  2. var $gwt_version = "2.4.0";
  3. var $wnd = parent;
  4. var $doc = $wnd.document;
  5. var $moduleName, $moduleBase;
  6. var $strongName = '1BC1D4781D368AD647A20426554E79AA';
  7. var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null,
  8. $sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;
  9. $stats && $stats({moduleName:'com.google.gwt.Hello',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});
  10. </script></head>
  11. <body>
  12. <script><!--
  13. var _, Q$Object = 0, Q$String = 1, Q$RuntimeException = 2, Q$Throwable = 3;
  14. function makeCastMap(a){
  15. var result = {};
  16. for (var i = 0, c = a.length; i < c; ++i) {
  17. result[a[i]] = 1;
  18. }
  19. return result;
  20. }
  21.  
  22. function nullMethod(){
  23. }
  24.  
  25. function Object_0(){
  26. }
  27.  
  28. _ = Object_0.prototype = {};
  29. _.typeMarker$ = nullMethod;
  30. _.castableTypeMap$ = {};
  31. function $setStackTrace(stackTrace){
  32. var c, copy, i;
  33. copy = initDim(_3Ljava_lang_StackTraceElement_2_classLit, {}, Q$Object, stackTrace.length, 0);
  34. for (i = 0 , c = stackTrace.length; i < c; ++i) {
  35. if (!stackTrace[i]) {
  36. throw new NullPointerException_0;
  37. }
  38. copy[i] = stackTrace[i];
  39. }
  40. }
  41.  
  42. function Throwable(){
  43. }
  44.  
  45. _ = Throwable.prototype = new Object_0;
  46. _.castableTypeMap$ = makeCastMap([Q$Throwable]);
  47. function Exception(){
  48. }
  49.  
  50. _ = Exception.prototype = new Throwable;
  51. _.castableTypeMap$ = makeCastMap([Q$Throwable]);
  52. function RuntimeException(){
  53. }
  54.  
  55. _ = RuntimeException.prototype = new Exception;
  56. _.castableTypeMap$ = makeCastMap([Q$RuntimeException, Q$Throwable]);
  57. function JavaScriptException_0(e){
  58. $fillInStackTrace();
  59. this.e = e;
  60. $createStackTrace(this);
  61. }
  62.  
  63. function JavaScriptException(){
  64. }
  65.  
  66. _ = JavaScriptException_0.prototype = JavaScriptException.prototype = new RuntimeException;
  67. _.castableTypeMap$ = makeCastMap([Q$RuntimeException, Q$Throwable]);
  68. _.e = null;
  69. function Scheduler(){
  70. }
  71.  
  72. _ = Scheduler.prototype = new Object_0;
  73. function apply(jsFunction, thisObj, arguments_0){
  74. return jsFunction.apply(thisObj, arguments_0);
  75. var __0;
  76. }
  77.  
  78. function enter(){
  79. if (entryDepth++ == 0) {
  80. $flushEntryCommands(($clinit_SchedulerImpl() , INSTANCE));
  81. return true;
  82. }
  83. return false;
  84. }
  85.  
  86. function entry(jsFunction){
  87. return function(){
  88. try {
  89. return entry0(jsFunction, this, arguments);
  90. }
  91. catch (e) {
  92. throw e;
  93. }
  94. }
  95. ;
  96. }
  97.  
  98. function entry0(jsFunction, thisObj, arguments_0){
  99. var initialEntry;
  100. initialEntry = enter();
  101. try {
  102. return apply(jsFunction, thisObj, arguments_0);
  103. }
  104. finally {
  105. initialEntry && $flushFinallyCommands(($clinit_SchedulerImpl() , INSTANCE));
  106. --entryDepth;
  107. }
  108. }
  109.  
  110. var entryDepth = 0;
  111. function $clinit_SchedulerImpl(){
  112. $clinit_SchedulerImpl = nullMethod;
  113. INSTANCE = new SchedulerImpl_0;
  114. }
  115.  
  116. function $flushEntryCommands(this$static){
  117. var oldQueue, rescheduled;
  118. if (this$static.entryCommands) {
  119. rescheduled = null;
  120. do {
  121. oldQueue = this$static.entryCommands;
  122. this$static.entryCommands = null;
  123. rescheduled = runScheduledTasks(oldQueue, rescheduled);
  124. }
  125. while (this$static.entryCommands);
  126. this$static.entryCommands = rescheduled;
  127. }
  128. }
  129.  
  130. function $flushFinallyCommands(this$static){
  131. var oldQueue, rescheduled;
  132. if (this$static.finallyCommands) {
  133. rescheduled = null;
  134. do {
  135. oldQueue = this$static.finallyCommands;
  136. this$static.finallyCommands = null;
  137. rescheduled = runScheduledTasks(oldQueue, rescheduled);
  138. }
  139. while (this$static.finallyCommands);
  140. this$static.finallyCommands = rescheduled;
  141. }
  142. }
  143.  
  144. function SchedulerImpl_0(){
  145. }
  146.  
  147. function push(queue, task){
  148. !queue && (queue = []);
  149. queue[queue.length] = task;
  150. return queue;
  151. }
  152.  
  153. function runScheduledTasks(tasks, rescheduled){
  154. var $e0, i, j, t;
  155. for (i = 0 , j = tasks.length; i < j; ++i) {
  156. t = tasks[i];
  157. try {
  158. t[1]?t[0].nullMethod() && (rescheduled = push(rescheduled, t)):t[0].nullMethod();
  159. }
  160. catch ($e0) {
  161. $e0 = caught($e0);
  162. if (!instanceOf($e0, Q$RuntimeException))
  163. throw $e0;
  164. }
  165. }
  166. return rescheduled;
  167. }
  168.  
  169. function SchedulerImpl(){
  170. }
  171.  
  172. _ = SchedulerImpl_0.prototype = SchedulerImpl.prototype = new Scheduler;
  173. _.entryCommands = null;
  174. _.finallyCommands = null;
  175. var INSTANCE;
  176. function extractNameFromToString(fnToString){
  177. var index, start, toReturn;
  178. toReturn = '';
  179. fnToString = $trim(fnToString);
  180. index = fnToString.indexOf('(');
  181. if (index != -1) {
  182. start = fnToString.indexOf('function') == 0?8:0;
  183. toReturn = $trim(fnToString.substr(start, index - start));
  184. }
  185. return toReturn.length > 0?toReturn:'anonymous';
  186. }
  187.  
  188. function $collect(this$static){
  189. var seen = {};
  190. var toReturn = [];
  191. var callee = arguments.callee.caller.caller;
  192. while (callee) {
  193. var name_0 = this$static.extractName(callee.toString());
  194. toReturn.push(name_0);
  195. var keyName = ':' + name_0;
  196. var withThisName = seen[keyName];
  197. if (withThisName) {
  198. var i, j;
  199. for (i = 0 , j = withThisName.length; i < j; i++) {
  200. if (withThisName[i] === callee) {
  201. return toReturn;
  202. }
  203. }
  204. }
  205. (withThisName || (seen[keyName] = [])).push(callee);
  206. callee = callee.caller;
  207. }
  208. return toReturn;
  209. }
  210.  
  211. function $createStackTrace(e){
  212. var i, j, stack, stackTrace;
  213. stack = (instanceOfJso(e.e)?dynamicCastJso(e.e):null , []);
  214. stackTrace = initDim(_3Ljava_lang_StackTraceElement_2_classLit, {}, Q$Object, stack.length, 0);
  215. for (i = 0 , j = stackTrace.length; i < j; ++i) {
  216. stackTrace[i] = new StackTraceElement_0(stack[i]);
  217. }
  218. $setStackTrace(stackTrace);
  219. }
  220.  
  221. function $fillInStackTrace(){
  222. var i, j, stack, stackTrace;
  223. stack = $collect(new StackTraceCreator$Collector_0);
  224. stackTrace = initDim(_3Ljava_lang_StackTraceElement_2_classLit, {}, Q$Object, stack.length, 0);
  225. for (i = 0 , j = stackTrace.length; i < j; ++i) {
  226. stackTrace[i] = new StackTraceElement_0(stack[i]);
  227. }
  228. $setStackTrace(stackTrace);
  229. }
  230.  
  231. function StackTraceCreator$Collector_0(){
  232. }
  233.  
  234. function StackTraceCreator$Collector(){
  235. }
  236.  
  237. _ = StackTraceCreator$Collector_0.prototype = StackTraceCreator$Collector.prototype = new Object_0;
  238. _.extractName = function extractName(fnToString){
  239. return extractNameFromToString(fnToString);
  240. }
  241. ;
  242. function Array_1(){
  243. }
  244.  
  245. function createFromSeed(seedType, length_0){
  246. var array = new Array(length_0);
  247. if (seedType == 3) {
  248. for (var i = 0; i < length_0; ++i) {
  249. var value = new Object;
  250. value.l = value.m = value.h = 0;
  251. array[i] = value;
  252. }
  253. }
  254. else if (seedType > 0) {
  255. var value = [null, 0, false][seedType];
  256. for (var i = 0; i < length_0; ++i) {
  257. array[i] = value;
  258. }
  259. }
  260. return array;
  261. }
  262.  
  263. function initDim(arrayClass, castableTypeMap, queryId, length_0, seedType){
  264. var result;
  265. result = createFromSeed(seedType, length_0);
  266. initValues(arrayClass, castableTypeMap, queryId, result);
  267. return result;
  268. }
  269.  
  270. function initValues(arrayClass, castableTypeMap, queryId, array){
  271. $clinit_Array$ExpandoWrapper();
  272. wrapArray(array, expandoNames_0, expandoValues_0);
  273. array.castableTypeMap$ = castableTypeMap;
  274. return array;
  275. }
  276.  
  277. function Array_0(){
  278. }
  279.  
  280. _ = Array_1.prototype = Array_0.prototype = new Object_0;
  281. function $clinit_Array$ExpandoWrapper(){
  282. $clinit_Array$ExpandoWrapper = nullMethod;
  283. expandoNames_0 = [];
  284. expandoValues_0 = [];
  285. initExpandos(new Array_1, expandoNames_0, expandoValues_0);
  286. }
  287.  
  288. function initExpandos(protoType, expandoNames, expandoValues){
  289. var i = 0, value;
  290. for (var name_0 in protoType) {
  291. if (value = protoType[name_0]) {
  292. expandoNames[i] = name_0;
  293. expandoValues[i] = value;
  294. ++i;
  295. }
  296. }
  297. }
  298.  
  299. function wrapArray(array, expandoNames, expandoValues){
  300. $clinit_Array$ExpandoWrapper();
  301. for (var i = 0, c = expandoNames.length; i < c; ++i) {
  302. array[expandoNames[i]] = expandoValues[i];
  303. }
  304. }
  305.  
  306. var expandoNames_0, expandoValues_0;
  307. function canCast(src, dstId){
  308. return src.castableTypeMap$ && !!src.castableTypeMap$[dstId];
  309. }
  310.  
  311. function dynamicCastJso(src){
  312. if (src != null && (src.typeMarker$ == nullMethod || canCast(src, 1))) {
  313. throw new ClassCastException_0;
  314. }
  315. return src;
  316. }
  317.  
  318. function instanceOf(src, dstId){
  319. return src != null && canCast(src, dstId);
  320. }
  321.  
  322. function instanceOfJso(src){
  323. return src != null && src.typeMarker$ != nullMethod && !canCast(src, 1);
  324. }
  325.  
  326. function init(){
  327. var runtimeValue;
  328. !!$stats && onModuleStart('com.google.gwt.user.client.UserAgentAsserter');
  329. runtimeValue = $getRuntimeValue();
  330. $equals('ie8', runtimeValue) || ($wnd.alert('ERROR: Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (ie8) does not match the runtime user.agent value (' + runtimeValue + '). Expect more errors.\n') , undefined);
  331. !!$stats && onModuleStart('com.google.gwt.user.client.DocumentModeAsserter');
  332. $onModuleLoad();
  333. !!$stats && onModuleStart('com.google.gwt.client.Hello');
  334. $wnd.alert('Hello world');
  335. }
  336.  
  337. function caught(e){
  338. if (instanceOf(e, Q$Throwable)) {
  339. return e;
  340. }
  341. return new JavaScriptException_0(e);
  342. }
  343.  
  344. function onModuleStart(mainClassName){
  345. return $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date).getTime(), type:'onModuleLoadStart', className:mainClassName});
  346. }
  347.  
  348. function $onModuleLoad(){
  349. var allowedModes, currentMode, i;
  350. currentMode = $doc.compatMode;
  351. allowedModes = initValues(_3Ljava_lang_String_2_classLit, {}, Q$String, ['CSS1Compat']);
  352. for (i = 0; i < allowedModes.length; ++i) {
  353. if ($equals(allowedModes[i], currentMode)) {
  354. return;
  355. }
  356. }
  357. allowedModes.length == 1 && $equals('CSS1Compat', allowedModes[0]) && $equals('BackCompat', currentMode)?"GWT no longer supports Quirks Mode (document.compatMode=' BackCompat').<br>Make sure your application's host HTML page has a Standards Mode (document.compatMode=' CSS1Compat') doctype,<br>e.g. by using <!doctype html> at the start of your application's HTML page.<br><br>To continue using this unsupported rendering mode and risk layout problems, suppress this message by adding<br>the following line to your*.gwt.xml module file:<br>&nbsp;&nbsp;<extend-configuration-property name=\"document.compatMode\" value=\"" + currentMode + '"/>':"Your *.gwt.xml module configuration prohibits the use of the current doucment rendering mode (document.compatMode=' " + currentMode + "').<br>Modify your application's host HTML page doctype, or update your custom 'document.compatMode' configuration property settings.";
  358. }
  359.  
  360. function $getRuntimeValue(){
  361. var ua = navigator.userAgent.toLowerCase();
  362. var makeVersion = function(result){
  363. return parseInt(result[1]) * 1000 + parseInt(result[2]);
  364. }
  365. ;
  366. if (function(){
  367. return ua.indexOf('opera') != -1;
  368. }
  369. ())
  370. return 'opera';
  371. if (function(){
  372. return ua.indexOf('webkit') != -1 || function(){
  373. if (ua.indexOf('chromeframe') != -1) {
  374. return true;
  375. }
  376. if (typeof window['ActiveXObject'] != 'undefined') {
  377. try {
  378. var obj = new ActiveXObject('ChromeTab.ChromeFrame');
  379. if (obj) {
  380. obj.registerBhoIfNeeded();
  381. return true;
  382. }
  383. }
  384. catch (e) {
  385. }
  386. }
  387. return false;
  388. }
  389. ();
  390. }
  391. ())
  392. return 'safari';
  393. if (function(){
  394. return ua.indexOf('msie') != -1 && $doc.documentMode >= 9;
  395. }
  396. ())
  397. return 'ie9';
  398. if (function(){
  399. return ua.indexOf('msie') != -1 && $doc.documentMode >= 8;
  400. }
  401. ())
  402. return 'ie8';
  403. if (function(){
  404. var result = /msie ([0-9]+)\.([0-9]+)/.exec(ua);
  405. if (result && result.length == 3)
  406. return makeVersion(result) >= 6000;
  407. }
  408. ())
  409. return 'ie6';
  410. if (function(){
  411. return ua.indexOf('gecko') != -1;
  412. }
  413. ())
  414. return 'gecko1_8';
  415. return 'unknown';
  416. }
  417.  
  418. function Class_0(){
  419. }
  420.  
  421. function Class(){
  422. }
  423.  
  424. _ = Class_0.prototype = Class.prototype = new Object_0;
  425. function ClassCastException_0(){
  426. $fillInStackTrace();
  427. }
  428.  
  429. function ClassCastException(){
  430. }
  431.  
  432. _ = ClassCastException_0.prototype = ClassCastException.prototype = new RuntimeException;
  433. _.castableTypeMap$ = makeCastMap([Q$RuntimeException, Q$Throwable]);
  434. function NullPointerException_0(){
  435. $fillInStackTrace();
  436. }
  437.  
  438. function NullPointerException(){
  439. }
  440.  
  441. _ = NullPointerException_0.prototype = NullPointerException.prototype = new RuntimeException;
  442. _.castableTypeMap$ = makeCastMap([Q$RuntimeException, Q$Throwable]);
  443. function StackTraceElement_0(methodName){
  444. }
  445.  
  446. function StackTraceElement(){
  447. }
  448.  
  449. _ = StackTraceElement_0.prototype = StackTraceElement.prototype = new Object_0;
  450. function $equals(this$static, other){
  451. if (other == null) {
  452. return false;
  453. }
  454. return String(this$static) == other;
  455. }
  456.  
  457. function $trim(this$static){
  458. if (this$static.length == 0 || this$static[0] > ' ' && this$static[this$static.length - 1] > ' ') {
  459. return this$static;
  460. }
  461. var r1 = this$static.replace(/^(\s*)/, '');
  462. var r2 = r1.replace(/\s*$/, '');
  463. return r2;
  464. }
  465.  
  466. _ = String.prototype;
  467. _.castableTypeMap$ = makeCastMap([Q$String]);
  468. var $entry = entry;
  469. function gwtOnLoad(errFn, modName, modBase, softPermutationId){
  470. $moduleName = modName;
  471. $moduleBase = modBase;
  472. if (errFn)
  473. try {
  474. $entry(init)();
  475. }
  476. catch (e) {
  477. errFn(modName);
  478. }
  479. else {
  480. $entry(init)();
  481. }
  482. }
  483.  
  484. var _3Ljava_lang_StackTraceElement_2_classLit = new Class_0, _3Ljava_lang_String_2_classLit = new Class_0;
  485. $stats && $stats({moduleName:'com.google.gwt.Hello',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalEnd'});
  486. if ($wnd.com_google_gwt_Hello) $wnd.com_google_gwt_Hello.onScriptLoad();
Advertisement
Add Comment
Please, Sign In to add comment