Advertisement
Serafim

Untitled

Mar 13th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Generated by dart2js, the Dart to JavaScript compiler version: 1.2.0.
  2. (function($){function dart() {}var A=new dart
  3. delete A.x
  4. var B=new dart
  5. delete B.x
  6. var C=new dart
  7. delete C.x
  8. var D=new dart
  9. delete D.x
  10. var E=new dart
  11. delete E.x
  12. var F=new dart
  13. delete F.x
  14. var G=new dart
  15. delete G.x
  16. var H=new dart
  17. delete H.x
  18. var J=new dart
  19. delete J.x
  20. var K=new dart
  21. delete K.x
  22. var L=new dart
  23. delete L.x
  24. var M=new dart
  25. delete M.x
  26. var N=new dart
  27. delete N.x
  28. var O=new dart
  29. delete O.x
  30. var P=new dart
  31. delete P.x
  32. var Q=new dart
  33. delete Q.x
  34. var R=new dart
  35. delete R.x
  36. var S=new dart
  37. delete S.x
  38. var T=new dart
  39. delete T.x
  40. var U=new dart
  41. delete U.x
  42. var V=new dart
  43. delete V.x
  44. var W=new dart
  45. delete W.x
  46. var X=new dart
  47. delete X.x
  48. var Y=new dart
  49. delete Y.x
  50. var Z=new dart
  51. delete Z.x
  52. function I(){}
  53. init()
  54. $=I.p
  55. ;(function (reflectionData) {
  56.   "use strict";
  57.   function map(x){x={x:x};delete x.x;return x}
  58.     function processStatics(descriptor) {
  59.       for (var property in descriptor) {
  60.         if (!hasOwnProperty.call(descriptor, property)) continue;
  61.         if (property === "^") continue;
  62.         var element = descriptor[property];
  63.         var firstChar = property.substring(0, 1);
  64.         var previousProperty;
  65.         if (firstChar === "+") {
  66.           mangledGlobalNames[previousProperty] = property.substring(1);
  67.           var flag = descriptor[property];
  68.           if (flag > 0) descriptor[previousProperty].$reflectable = flag;
  69.           if (element && element.length) init.typeInformation[previousProperty] = element;
  70.         } else if (firstChar === "@") {
  71.           property = property.substring(1);
  72.           $[property]["@"] = element;
  73.         } else if (firstChar === "*") {
  74.           globalObject[previousProperty].$defaultValues = element;
  75.           var optionalMethods = descriptor.$methodsWithOptionalArguments;
  76.           if (!optionalMethods) {
  77.             descriptor.$methodsWithOptionalArguments = optionalMethods = {}
  78.           }
  79.           optionalMethods[property] = previousProperty;
  80.         } else if (typeof element === "function") {
  81.           globalObject[previousProperty = property] = element;
  82.           functions.push(property);
  83.           init.globalFunctions[property] = element;
  84.         } else if (element.constructor === Array) {
  85.           addStubs(globalObject, element, property, true, descriptor, functions);
  86.         } else {
  87.           previousProperty = property;
  88.           var newDesc = {};
  89.           var previousProp;
  90.           for (var prop in element) {
  91.             if (!hasOwnProperty.call(element, prop)) continue;
  92.             firstChar = prop.substring(0, 1);
  93.             if (prop === "static") {
  94.               processStatics(init.statics[property] = element[prop]);
  95.             } else if (firstChar === "+") {
  96.               mangledNames[previousProp] = prop.substring(1);
  97.               var flag = element[prop];
  98.               if (flag > 0) element[previousProp].$reflectable = flag;
  99.             } else if (firstChar === "@" && prop !== "@") {
  100.               newDesc[prop.substring(1)]["@"] = element[prop];
  101.             } else if (firstChar === "*") {
  102.               newDesc[previousProp].$defaultValues = element[prop];
  103.               var optionalMethods = newDesc.$methodsWithOptionalArguments;
  104.               if (!optionalMethods) {
  105.                 newDesc.$methodsWithOptionalArguments = optionalMethods={}
  106.               }
  107.               optionalMethods[prop] = previousProp;
  108.             } else {
  109.               var elem = element[prop];
  110.               if (prop !== "^" && elem != null && elem.constructor === Array && prop !== "<>") {
  111.                 addStubs(newDesc, elem, prop, false, element, []);
  112.               } else {
  113.                 newDesc[previousProp = prop] = elem;
  114.               }
  115.             }
  116.           }
  117.           $$[property] = [globalObject, newDesc];
  118.           classes.push(property);
  119.         }
  120.       }
  121.     }
  122.   function addStubs(descriptor, array, name, isStatic, originalDescriptor, functions) {
  123.     var f, funcs = [originalDescriptor[name] = descriptor[name] = f = array[0]];
  124.     f.$stubName = name;
  125.     functions.push(name);
  126.     for (var index = 0; index < array.length; index += 2) {
  127.       f = array[index + 1];
  128.       if (typeof f != "function") break;
  129.       f.$stubName = array[index + 2];
  130.       funcs.push(f);
  131.       if (f.$stubName) {
  132.         originalDescriptor[f.$stubName] = descriptor[f.$stubName] = f;
  133.         functions.push(f.$stubName);
  134.       }
  135.     }
  136.     for (var i = 0; i < funcs.length; index++, i++) {
  137.       funcs[i].$callName = array[index + 1];
  138.     }
  139.     var getterStubName = array[++index];
  140.     array = array.slice(++index);
  141.     var requiredParameterInfo = array[0];
  142.     var requiredParameterCount = requiredParameterInfo >> 1;
  143.     var isAccessor = (requiredParameterInfo & 1) === 1;
  144.     var isSetter = requiredParameterInfo === 3;
  145.     var isGetter = requiredParameterInfo === 1;
  146.     var optionalParameterInfo = array[1];
  147.     var optionalParameterCount = optionalParameterInfo >> 1;
  148.     var optionalParametersAreNamed = (optionalParameterInfo & 1) === 1;
  149.     var isIntercepted = requiredParameterCount + optionalParameterCount != funcs[0].length;
  150.     var functionTypeIndex = array[2];
  151.     var isReflectable = array.length > 3 * optionalParameterCount + 2 * requiredParameterCount + 3
  152.     if (getterStubName) {
  153.       f = tearOff(funcs, array, isStatic, name, isIntercepted);
  154.       if (isStatic) init.globalFunctions[name] = f;
  155.       originalDescriptor[getterStubName] = descriptor[getterStubName] = f;
  156.       funcs.push(f);
  157.       if (getterStubName) functions.push(getterStubName);
  158.       f.$stubName = getterStubName;
  159.       f.$callName = null;
  160.     }
  161.     if (isReflectable) {
  162.       for (var i = 0; i < funcs.length; i++) {
  163.         funcs[i].$reflectable = 1;
  164.         funcs[i].$reflectionInfo = array;
  165.       }
  166.     }
  167.     if (isReflectable) {
  168.       var unmangledNameIndex = 3 * optionalParameterCount + 2 * requiredParameterCount + 3;
  169.       var unmangledName = array[unmangledNameIndex];
  170.       var reflectionName = unmangledName + ":" + requiredParameterCount + ":" + optionalParameterCount;
  171.       if (isGetter) {
  172.         reflectionName = unmangledName;
  173.       } else if (isSetter) {
  174.         reflectionName = unmangledName + "=";
  175.       }
  176.       if (isStatic) {
  177.         init.mangledGlobalNames[name] = reflectionName;
  178.       } else {
  179.         init.mangledNames[name] = reflectionName;
  180.       }
  181.       funcs[0].$reflectionName = reflectionName;
  182.       funcs[0].$metadataIndex = unmangledNameIndex + 1;
  183.       if (optionalParameterCount) descriptor[unmangledName + "*"] = funcs[0];
  184.     }
  185.   }
  186.   function tearOffGetterNoCsp(funcs, reflectionInfo, name, isIntercepted) {
  187.     return isIntercepted
  188.         ? new Function("funcs", "reflectionInfo", "name", "H", "c",
  189.             "return function tearOff_" + name + (functionCounter++)+ "(x) {" +
  190.               "if (c === null) c = H.qm(" +
  191.                   "this, funcs, reflectionInfo, false, [x], name);" +
  192.               "return new c(this, funcs[0], x, name);" +
  193.             "}")(funcs, reflectionInfo, name, H, null)
  194.         : new Function("funcs", "reflectionInfo", "name", "H", "c",
  195.             "return function tearOff_" + name + (functionCounter++)+ "() {" +
  196.               "if (c === null) c = H.qm(" +
  197.                   "this, funcs, reflectionInfo, false, [], name);" +
  198.               "return new c(this, funcs[0], null, name);" +
  199.             "}")(funcs, reflectionInfo, name, H, null)
  200.   }
  201.   function tearOffGetterCsp(funcs, reflectionInfo, name, isIntercepted) {
  202.     var cache = null;
  203.     return isIntercepted
  204.         ? function(x) {
  205.             if (cache === null) cache = H.qm(this, funcs, reflectionInfo, false, [x], name);
  206.             return new cache(this, funcs[0], x, name)
  207.           }
  208.         : function() {
  209.             if (cache === null) cache = H.qm(this, funcs, reflectionInfo, false, [], name);
  210.             return new cache(this, funcs[0], null, name)
  211.           }
  212.   }
  213.   function tearOff(funcs, reflectionInfo, isStatic, name, isIntercepted) {
  214.     var cache;
  215.     return isStatic
  216.         ? function() {
  217.             if (cache === void 0) cache = H.qm(this, funcs, reflectionInfo, true, [], name).prototype;
  218.             return cache;
  219.           }
  220.         : tearOffGetter(funcs, reflectionInfo, name, isIntercepted);
  221.   }
  222.   var functionCounter = 0;
  223.   var tearOffGetter = (typeof dart_precompiled == "function")
  224.       ? tearOffGetterCsp : tearOffGetterNoCsp;
  225.   if (!init.libraries) init.libraries = [];
  226.   if (!init.mangledNames) init.mangledNames = map();
  227.   if (!init.mangledGlobalNames) init.mangledGlobalNames = map();
  228.   if (!init.statics) init.statics = map();
  229.   if (!init.typeInformation) init.typeInformation = map();
  230.   if (!init.globalFunctions) init.globalFunctions = map();
  231.   var libraries = init.libraries;
  232.   var mangledNames = init.mangledNames;
  233.   var mangledGlobalNames = init.mangledGlobalNames;
  234.   var hasOwnProperty = Object.prototype.hasOwnProperty;
  235.   var length = reflectionData.length;
  236.   for (var i = 0; i < length; i++) {
  237.     var data = reflectionData[i];
  238.     var name = data[0];
  239.     var uri = data[1];
  240.     var metadata = data[2];
  241.     var globalObject = data[3];
  242.     var descriptor = data[4];
  243.     var isRoot = !!data[5];
  244.     var fields = descriptor && descriptor["^"];
  245.     var classes = [];
  246.     var functions = [];
  247.     processStatics(descriptor);
  248.     libraries.push([name, uri, classes, functions, metadata, fields, isRoot,
  249.                     globalObject]);
  250.   }
  251. })
  252. ([["dart2js._js_primitives","dart:_js_primitives",,H,{
  253. "^":"",
  254. qw:function(a){if(typeof dartPrint=="function"){dartPrint(a)
  255. return}if(typeof console=="object"&&typeof console.log=="function"){console.log(a)
  256. return}if(typeof window=="object")return
  257. if(typeof print=="function"){print(a)
  258. return}throw "Unable to print message: " + String(a)}}],["","sources.dart",,Z,{
  259. "^":"",
  260. E2:function(){H.qw("42")}},1],])
  261. $.libraries_to_load = {}
  262. $.yj=0
  263. $.mJ=null
  264. $.P4=null
  265. $.oK=null
  266.  
  267. init.functionAliases={}
  268. init.metadata=[];$=null
  269. I = I.$finishIsolateConstructor(I)
  270. $=new I()
  271. function convertToFastObject(properties) {
  272.   function MyClass() {};
  273.   MyClass.prototype = properties;
  274.   new MyClass();
  275.   return properties;
  276. }
  277. A = convertToFastObject(A)
  278. B = convertToFastObject(B)
  279. C = convertToFastObject(C)
  280. D = convertToFastObject(D)
  281. E = convertToFastObject(E)
  282. F = convertToFastObject(F)
  283. G = convertToFastObject(G)
  284. H = convertToFastObject(H)
  285. J = convertToFastObject(J)
  286. K = convertToFastObject(K)
  287. L = convertToFastObject(L)
  288. M = convertToFastObject(M)
  289. N = convertToFastObject(N)
  290. O = convertToFastObject(O)
  291. P = convertToFastObject(P)
  292. Q = convertToFastObject(Q)
  293. R = convertToFastObject(R)
  294. S = convertToFastObject(S)
  295. T = convertToFastObject(T)
  296. U = convertToFastObject(U)
  297. V = convertToFastObject(V)
  298. W = convertToFastObject(W)
  299. X = convertToFastObject(X)
  300. Y = convertToFastObject(Y)
  301. Z = convertToFastObject(Z)
  302. ;(function (callback) {
  303.   if (typeof document === "undefined") {
  304.     callback(null);
  305.     return;
  306.   }
  307.   if (document.currentScript) {
  308.     callback(document.currentScript);
  309.     return;
  310.   }
  311.  
  312.   var scripts = document.scripts;
  313.   function onLoad(event) {
  314.     for (var i = 0; i < scripts.length; ++i) {
  315.       scripts[i].removeEventListener("load", onLoad, false);
  316.     }
  317.     callback(event.target);
  318.   }
  319.   for (var i = 0; i < scripts.length; ++i) {
  320.     scripts[i].addEventListener("load", onLoad, false);
  321.   }
  322. })(function(currentScript) {
  323.   init.currentScript = currentScript;
  324.  
  325.   if (typeof dartMainRunner === "function") {
  326.     dartMainRunner(function() { Z.E2(); });
  327.   } else {
  328.     Z.E2();
  329.   }
  330. })
  331. function init(){I.p={}
  332. I.$lazy=function(a,b,c,d,e){var z={}
  333. var y={}
  334. a[c]=z
  335. a[d]=function(){var x=$[c]
  336. try{if(x===z){$[c]=y
  337. try{x=$[c]=e()}finally{if(x===z){if($[c]===y){$[c]=null}}}}else{if(x===y)H.eQ(b)}return x}finally{$[d]=function(){return this[c]}}}}
  338. I.$finishIsolateConstructor=function(a){var z=a.p
  339. function Isolate(){var y=Object.prototype.hasOwnProperty
  340. for(var x in z)if(y.call(z,x))this[x]=z[x]
  341. function ForceEfficientMap(){}ForceEfficientMap.prototype=this
  342. new ForceEfficientMap()}Isolate.prototype=a.prototype
  343. Isolate.prototype.constructor=Isolate
  344. Isolate.p=z
  345. return Isolate}}
  346. })()
  347.  
  348. //# sourceMappingURL=binaries.js.map
  349. //@ sourceMappingURL=binaries.js.map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement