Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- var g, k = this,
- aa = function (a) {
- var b = typeof a;
- if ("object" == b)
- if (a) {
- if (a instanceof Array) return "array";
- if (a instanceof Object) return b;
- var c = Object.prototype.toString.call(a);
- if ("[object Window]" == c) return "object";
- if ("[object Array]" == c || "number" == typeof a.length && "undefined" != typeof a.splice && "undefined" != typeof a.propertyIsEnumerable && !a.propertyIsEnumerable("splice")) return "array";
- if ("[object Function]" == c || "undefined" != typeof a.call && "undefined" != typeof a.propertyIsEnumerable && !a.propertyIsEnumerable("call")) return "function"
- } else return "null";
- else if ("function" == b && "undefined" == typeof a.call) return "object";
- return b
- }, ba = function (a) {
- var b = aa(a);
- return "array" == b || "object" == b && "number" == typeof a.length
- }, n = function (a) {
- return "string" == typeof a
- }, ca = function (a, b, c) {
- return a.call.apply(a.bind, arguments)
- }, da = function (a, b, c) {
- if (!a) throw Error();
- if (2 < arguments.length) {
- var d = Array.prototype.slice.call(arguments, 2);
- return function () {
- var c = Array.prototype.slice.call(arguments);
- Array.prototype.unshift.apply(c, d);
- return a.apply(b, c)
- }
- }
- return function () {
- return a.apply(b,
- arguments)
- }
- }, p = function (a, b, c) {
- p = Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? ca : da;
- return p.apply(null, arguments)
- }, ea = function (a, b) {
- var c = Array.prototype.slice.call(arguments, 1);
- return function () {
- var b = c.slice();
- b.push.apply(b, arguments);
- return a.apply(this, b)
- }
- }, fa = Date.now || function () {
- return +new Date
- }, ga = function (a) {
- a = a.split(".");
- var b = k;
- a[0] in b || !b.execScript || b.execScript("var " + a[0]);
- for (var c; a.length && (c = a.shift());) a.length ? b = b[c] ? b[c] : b[c] = {} : b[c] = !0
- }, q = function (a, b) {
- function c() {}
- c.prototype = b.prototype;
- a.G = b.prototype;
- a.prototype = new c
- };
- Function.prototype.bind = Function.prototype.bind || function (a, b) {
- if (1 < arguments.length) {
- var c = Array.prototype.slice.call(arguments, 1);
- c.unshift(this, a);
- return p.apply(null, c)
- }
- return p(this, a)
- };
- var r = function () {};
- r.prototype.B = !1;
- r.prototype.M = function () {
- this.B || (this.B = !0, this.a())
- };
- r.prototype.a = function () {
- if (this.g)
- for (; this.g.length;) this.g.shift()()
- };
- var ha = function (a) {
- a && "function" == typeof a.M && a.M()
- };
- var ia = function (a) {
- Error.captureStackTrace ? Error.captureStackTrace(this, ia) : this.stack = Error().stack || "";
- a && (this.message = String(a))
- };
- q(ia, Error);
- ia.prototype.name = "CustomError";
- var ja = function (a, b) {
- for (var c = a.split("%s"), d = "", e = Array.prototype.slice.call(arguments, 1); e.length && 1 < c.length;) d += c.shift() + e.shift();
- return d + c.join("%s")
- }, s = function (a, b) {
- return -1 != a.indexOf(b)
- };
- var ka = function (a, b) {
- b.unshift(a);
- ia.call(this, ja.apply(null, b));
- b.shift()
- };
- q(ka, ia);
- ka.prototype.name = "AssertionError";
- var t = function (a, b, c) {
- if (!a) {
- var d = Array.prototype.slice.call(arguments, 2),
- e = "Assertion failed";
- if (b) var e = e + (": " + b),
- f = d;
- throw new ka("" + e, f || []);
- }
- };
- var u = Array.prototype,
- la = u.indexOf ? function (a, b, c) {
- t(null != a.length);
- return u.indexOf.call(a, b, c)
- } : function (a, b, c) {
- c = null == c ? 0 : 0 > c ? Math.max(0, a.length + c) : c;
- if (n(a)) return n(b) && 1 == b.length ? a.indexOf(b, c) : -1;
- for (; c < a.length; c++)
- if (c in a && a[c] === b) return c;
- return -1
- }, ma = u.forEach ? function (a, b, c) {
- t(null != a.length);
- u.forEach.call(a, b, c)
- } : function (a, b, c) {
- for (var d = a.length, e = n(a) ? a.split("") : a, f = 0; f < d; f++) f in e && b.call(c, e[f], f, a)
- }, na = function (a) {
- return u.concat.apply(u, arguments)
- }, oa = function (a) {
- var b =
- a.length;
- if (0 < b) {
- for (var c = Array(b), d = 0; d < b; d++) c[d] = a[d];
- return c
- }
- return []
- };
- var pa = function (a) {
- pa[" "](a);
- return a
- };
- pa[" "] = function () {};
- var qa, ra, sa, ta, ua = function () {
- return k.navigator ? k.navigator.userAgent : null
- };
- ta = sa = ra = qa = !1;
- var va;
- if (va = ua()) {
- var wa = k.navigator;
- qa = 0 == va.lastIndexOf("Opera", 0);
- ra = !qa && (s(va, "MSIE") || s(va, "Trident"));
- sa = !qa && s(va, "WebKit");
- ta = !qa && !sa && !ra && "Gecko" == wa.product
- }
- var xa = qa,
- v = ra,
- ya = ta,
- za = sa,
- Aa = k.navigator,
- Ba = s(Aa && Aa.platform || "", "Win"),
- Ca = function () {
- var a = k.document;
- return a ? a.documentMode : void 0
- }, Da;
- i: {
- var Ea = "",
- Fa;
- if (xa && k.opera) var Ga = k.opera.version,
- Ea = "function" == typeof Ga ? Ga() : Ga;
- else if (ya ? Fa = /rv\:([^\);]+)(\)|;)/ : v ? Fa = /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/ : za && (Fa = /WebKit\/(\S+)/), Fa) var Ha = Fa.exec(ua()),
- Ea = Ha ? Ha[1] : "";
- if (v) {
- var Ia = Ca();
- if (Ia > parseFloat(Ea)) {
- Da = String(Ia);
- break i
- }
- }
- Da = Ea
- }
- var Ja = Da,
- Ka = {}, w = function (a) {
- var b;
- if (!(b = Ka[a])) {
- b = 0;
- for (var c = String(Ja).replace(/^[\s\xa0]+|[\s\xa0]+$/g, "").split("."), d = String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g, "").split("."), e = Math.max(c.length, d.length), f = 0; 0 == b && f < e; f++) {
- var h = c[f] || "",
- l = d[f] || "",
- m = RegExp("(\\d*)(\\D*)", "g"),
- V = RegExp("(\\d*)(\\D*)", "g");
- do {
- var z = m.exec(h) || ["", "", ""],
- F = V.exec(l) || ["", "", ""];
- if (0 == z[0].length && 0 == F[0].length) break;
- b = ((0 == z[1].length ? 0 : parseInt(z[1], 10)) < (0 == F[1].length ? 0 : parseInt(F[1], 10)) ? -1 : (0 == z[1].length ?
- 0 : parseInt(z[1], 10)) > (0 == F[1].length ? 0 : parseInt(F[1], 10)) ? 1 : 0) || ((0 == z[2].length) < (0 == F[2].length) ? -1 : (0 == z[2].length) > (0 == F[2].length) ? 1 : 0) || (z[2] < F[2] ? -1 : z[2] > F[2] ? 1 : 0)
- } while (0 == b)
- }
- b = Ka[a] = 0 <= b
- }
- return b
- }, La = k.document,
- Ma = La && v ? Ca() || ("CSS1Compat" == La.compatMode ? parseInt(Ja, 10) : 5) : void 0;
- var Na;
- (Na = !v) || (Na = v && 9 <= Ma);
- var Oa = Na,
- Pa = v && !w("9");
- !za || w("528");
- ya && w("1.9b") || v && w("8") || xa && w("9.5") || za && w("528");
- ya && !w("8") || v && w("9");
- var Qa = function (a, b) {
- this.type = a;
- this.a = this.U = b
- };
- g = Qa.prototype;
- g.M = function () {};
- g.H = !1;
- g.ma = !0;
- g.ia = function () {
- this.H = !0
- };
- g.Y = function () {
- this.ma = !1
- };
- var x = function (a, b) {
- a && this.init(a, b)
- };
- q(x, Qa);
- g = x.prototype;
- g.U = null;
- g.clientX = 0;
- g.clientY = 0;
- g.ha = 0;
- g.Q = null;
- g.init = function (a, b) {
- var c = this.type = a.type;
- Qa.call(this, c);
- this.U = a.target || a.srcElement;
- this.a = b;
- if ((c = a.relatedTarget) && ya) try {
- pa(c.nodeName)
- } catch (d) {}
- this.clientX = void 0 !== a.clientX ? a.clientX : a.pageX;
- this.clientY = void 0 !== a.clientY ? a.clientY : a.pageY;
- this.ha = a.keyCode || 0;
- this.Q = a;
- a.defaultPrevented && this.Y();
- delete this.H
- };
- g.ia = function () {
- x.G.ia.call(this);
- this.Q.stopPropagation ? this.Q.stopPropagation() : this.Q.cancelBubble = !0
- };
- g.Y = function () {
- x.G.Y.call(this);
- var a = this.Q;
- if (a.preventDefault) a.preventDefault();
- else if (a.returnValue = !1, Pa) try {
- if (a.ctrlKey || 112 <= a.keyCode && 123 >= a.keyCode) a.keyCode = -1
- } catch (b) {}
- };
- g.I = function () {
- return this.Q
- };
- var Ra = "closure_listenable_" + (1E6 * Math.random() | 0),
- Sa = function (a) {
- try {
- return !(!a || !a[Ra])
- } catch (b) {
- return !1
- }
- }, Ta = 0;
- var Ua = function (a) {
- var b = [],
- c = 0,
- d;
- for (d in a) b[c++] = a[d];
- return b
- }, Va = function (a) {
- var b = [],
- c = 0,
- d;
- for (d in a) b[c++] = d;
- return b
- }, Wa = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),
- Xa = function (a, b) {
- for (var c, d, e = 1; e < arguments.length; e++) {
- d = arguments[e];
- for (c in d) a[c] = d[c];
- for (var f = 0; f < Wa.length; f++) c = Wa[f], Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c])
- }
- };
- var Ya = function (a, b, c, d, e) {
- this.L = a;
- this.a = null;
- this.src = b;
- this.type = c;
- this.capture = !! d;
- this.$ = e;
- this.la = ++Ta;
- this.P = this.Z = !1
- }, Za = function (a) {
- a.P = !0;
- a.L = null;
- a.a = null;
- a.src = null;
- a.$ = null
- };
- var $a = function (a) {
- this.src = a;
- this.a = {};
- this.d = 0
- }, bb = function (a, b, c, d, e) {
- var f = a.a[b];
- f || (f = a.a[b] = [], a.d++);
- var h = ab(f, c, d, e); - 1 < h ? (a = f[h], a.Z = !1) : (a = new Ya(c, a.src, b, !! d, e), a.Z = !1, f.push(a));
- return a
- }, cb = function (a, b) {
- var c = b.type;
- if (!(c in a.a)) return !1;
- var d = a.a[c],
- e = la(d, b),
- f;
- if (f = 0 <= e) t(null != d.length), u.splice.call(d, e, 1);
- f && (Za(b), 0 == a.a[c].length && (delete a.a[c], a.d--));
- return f
- }, db = function (a, b, c, d, e) {
- a = a.a[b];
- b = -1;
- a && (b = ab(a, c, d, e));
- return -1 < b ? a[b] : null
- }, ab = function (a, b, c, d) {
- for (var e =
- 0; e < a.length; ++e) {
- var f = a[e];
- if (!f.P && f.L == b && f.capture == !! c && f.$ == d) return e
- }
- return -1
- };
- var eb = "closure_lm_" + (1E6 * Math.random() | 0),
- fb = {}, gb = 0,
- hb = function (a, b, c, d, e) {
- if ("array" == aa(b)) {
- for (var f = 0; f < b.length; f++) hb(a, b[f], c, d, e);
- return null
- }
- c = ib(c);
- if (Sa(a)) a = a.listen(b, c, d, e);
- else {
- if (!b) throw Error("Invalid event type");
- var f = !! d,
- h = jb(a);
- h || (a[eb] = h = new $a(a));
- c = bb(h, b, c, d, e);
- c.a || (d = kb(), c.a = d, d.src = a, d.L = c, a.addEventListener ? a.addEventListener(b, d, f) : a.attachEvent(b in fb ? fb[b] : fb[b] = "on" + b, d), gb++);
- a = c
- }
- return a
- }, kb = function () {
- var a = lb,
- b = Oa ? function (c) {
- return a.call(b.src, b.L, c)
- } :
- function (c) {
- c = a.call(b.src, b.L, c);
- if (!c) return c
- };
- return b
- }, mb = function (a, b, c, d, e) {
- if ("array" == aa(b))
- for (var f = 0; f < b.length; f++) mb(a, b[f], c, d, e);
- else c = ib(c), Sa(a) ? a.unlisten(b, c, d, e) : a && (a = jb(a)) && (b = db(a, b, c, !! d, e)) && nb(b)
- }, nb = function (a) {
- if ("number" == typeof a || !a || a.P) return !1;
- var b = a.src;
- if (Sa(b)) return cb(b.D, a);
- var c = a.type,
- d = a.a;
- b.removeEventListener ? b.removeEventListener(c, d, a.capture) : b.detachEvent && b.detachEvent(c in fb ? fb[c] : fb[c] = "on" + c, d);
- gb--;
- (c = jb(b)) ? (cb(c, a), 0 == c.d && (c.src = null, b[eb] =
- null)) : Za(a);
- return !0
- }, pb = function (a, b, c, d) {
- var e = 1;
- if (a = jb(a))
- if (b = a.a[b])
- for (b = oa(b), a = 0; a < b.length; a++) {
- var f = b[a];
- f && f.capture == c && !f.P && (e &= !1 !== ob(f, d))
- }
- return Boolean(e)
- }, ob = function (a, b) {
- var c = a.L,
- d = a.$ || a.src;
- a.Z && nb(a);
- return c.call(d, b)
- }, lb = function (a, b) {
- if (a.P) return !0;
- if (!Oa) {
- var c;
- if (!(c = b)) i: {
- c = ["window", "event"];
- for (var d = k, e; e = c.shift();)
- if (null != d[e]) d = d[e];
- else {
- c = null;
- break i
- }
- c = d
- }
- e = c;
- c = new x(e, this);
- d = !0;
- if (!(0 > e.keyCode || void 0 != e.returnValue)) {
- i: {
- var f = !1;
- if (0 == e.keyCode) try {
- e.keyCode = -1;
- break i
- } catch (h) {
- f = !0
- }
- if (f || void 0 == e.returnValue) e.returnValue = !0
- }
- e = [];
- for (f = c.a; f; f = f.parentNode) e.push(f);
- for (var f = a.type, l = e.length - 1; !c.H && 0 <= l; l--) c.a = e[l], d &= pb(e[l], f, !0, c);
- for (l = 0; !c.H && l < e.length; l++) c.a = e[l], d &= pb(e[l], f, !1, c)
- }
- return d
- }
- return ob(a, new x(b, this))
- }, jb = function (a) {
- a = a[eb];
- return a instanceof $a ? a : null
- }, qb = "__closure_events_fn_" + (1E9 * Math.random() >>> 0),
- ib = function (a) {
- t(a, "Listener can not be null.");
- if ("function" == aa(a)) return a;
- t(a.handleEvent, "An object listener must have handleEvent method.");
- return a[qb] || (a[qb] = function (b) {
- return a.handleEvent(b)
- })
- };
- var rb;
- rb = !1;
- var y = ua();
- y && (-1 != y.indexOf("Firefox") || -1 != y.indexOf("Camino") || -1 != y.indexOf("iPhone") || -1 != y.indexOf("iPod") || -1 != y.indexOf("iPad") || -1 != y.indexOf("Chrome") || -1 != y.indexOf("Android") || -1 != y.indexOf("Safari") && (rb = !0));
- var sb = rb;
- var A = Ba && sb && !w(536.25),
- tb = function (a, b, c) {
- var d = document.createElement("source");
- d.src = b;
- d.type = c;
- a.appendChild(d)
- }, ub = function (a) {
- if (A) return null;
- var b = document.createElement("audio");
- b && b.canPlayType && (b.canPlayType("audio/mpeg") || b.canPlayType("audio/ogg")) ? (b.controls = !1, b.hidden = !0, b.loaded = !1, hb(b, "loadedmetadata", function () {
- b.loaded = !0;
- b.a && b.a()
- }), tb(b, a + ".ogg", "audio/ogg"), tb(b, a + ".mp3", "audio/mpeg")) : b = null;
- return b
- };
- var vb = function (a, b, c) {
- this.d = {};
- this.i = b || "";
- this.k = c || document.body;
- if (a)
- for (var d in a) this.load(a[d])
- };
- q(vb, r);
- vb.prototype.a = function () {
- for (var a in this.d) {
- var b = this.d[a];
- b.parent && b.parent.removeChild(b)
- }
- this.d = {};
- vb.G.a.call(this)
- };
- vb.prototype.load = function (a) {
- var b;
- a && (b = this.d[a], !b && (b = ub(this.i + "/" + a))) && (this.k.appendChild(b), this.d[a] = b);
- return b
- };
- vb.prototype.loop = function (a) {
- if (a = wb(this, a)) a.loop = !0;
- return a
- };
- var wb = function (a, b, c) {
- var d = a.load(b);
- d && d.play && (d.autoplay = !0, d.loop = !1, d.loaded ? d.currentTime = c || 0 : c && d.addEventListener("loadedmetadata", function () {
- d.currentTime = c || 0
- }, !1), d.play());
- return d
- }, xb = function (a, b) {
- if (b) {
- var c = a.d[b];
- c && c.loaded && c.pause && (c.pause(), c.autoplay = !1, c.loop = !1)
- }
- return c
- };
- var yb = function () {};
- var zb = function (a) {
- this.a = a
- };
- q(zb, yb);
- zb.prototype.contains = function (a, b) {
- var c = this.a;
- if (6 > c.length) return !1;
- for (var d = !1, e = 0, f = c.length - 2; e < c.length; f = e, e += 2) {
- var h = c[e],
- l = c[e + 1],
- m = c[f],
- f = c[f + 1];
- a < h != a < m && b > l + (a - h) * (f - l) / (m - h) && (d = !d)
- }
- return d
- };
- zb.prototype.d = function (a) {
- a.beginPath();
- for (var b = 0; b < this.a.length; b += 2) a.lineTo(this.a[b], this.a[b + 1]);
- a.lineTo(this.a[0], this.a[1]);
- a.fill();
- a.stroke()
- };
- var Ab = "StopIteration" in k ? k.StopIteration : Error("StopIteration"),
- Bb = function () {};
- Bb.prototype.next = function () {
- throw Ab;
- };
- Bb.prototype.k = function () {
- return this
- };
- var B = function (a, b) {
- this.d = {};
- this.a = [];
- this.i = this.g = 0;
- var c = arguments.length;
- if (1 < c) {
- if (c % 2) throw Error("Uneven number of arguments");
- for (var d = 0; d < c; d += 2) this.set(arguments[d], arguments[d + 1])
- } else if (a) {
- a instanceof B ? (c = a.K(), d = a.C()) : (c = Va(a), d = Ua(a));
- for (var e = 0; e < c.length; e++) this.set(c[e], d[e])
- }
- };
- B.prototype.C = function () {
- Cb(this);
- for (var a = [], b = 0; b < this.a.length; b++) a.push(this.d[this.a[b]]);
- return a
- };
- B.prototype.K = function () {
- Cb(this);
- return this.a.concat()
- };
- var Cb = function (a) {
- if (a.g != a.a.length) {
- for (var b = 0, c = 0; b < a.a.length;) {
- var d = a.a[b];
- C(a.d, d) && (a.a[c++] = d);
- b++
- }
- a.a.length = c
- }
- if (a.g != a.a.length) {
- for (var e = {}, c = b = 0; b < a.a.length;) d = a.a[b], C(e, d) || (a.a[c++] = d, e[d] = 1), b++;
- a.a.length = c
- }
- }, Db = function (a, b) {
- return C(a.d, b) ? a.d[b] : void 0
- };
- B.prototype.set = function (a, b) {
- C(this.d, a) || (this.g++, this.a.push(a), this.i++);
- this.d[a] = b
- };
- B.prototype.T = function () {
- return new B(this)
- };
- B.prototype.k = function (a) {
- Cb(this);
- var b = 0,
- c = this.a,
- d = this.d,
- e = this.i,
- f = this,
- h = new Bb;
- h.next = function () {
- for (;;) {
- if (e != f.i) throw Error("The map has changed since the iterator was created");
- if (b >= c.length) throw Ab;
- var h = c[b++];
- return a ? h : d[h]
- }
- };
- return h
- };
- var C = function (a, b) {
- return Object.prototype.hasOwnProperty.call(a, b)
- };
- var Eb = function (a) {
- if ("function" == typeof a.C) return a.C();
- if (n(a)) return a.split("");
- if (ba(a)) {
- for (var b = [], c = a.length, d = 0; d < c; d++) b.push(a[d]);
- return b
- }
- return Ua(a)
- }, Fb = function (a, b, c) {
- if ("function" == typeof a.forEach) a.forEach(b, c);
- else if (ba(a) || n(a)) ma(a, b, c);
- else {
- var d;
- if ("function" == typeof a.K) d = a.K();
- else if ("function" != typeof a.C)
- if (ba(a) || n(a)) {
- d = [];
- for (var e = a.length, f = 0; f < e; f++) d.push(f)
- } else d = Va(a);
- else d = void 0;
- for (var e = Eb(a), f = e.length, h = 0; h < f; h++) b.call(c, e[h], d && d[h], a)
- }
- };
- var Gb = RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),
- Ib = function (a) {
- if (Hb) {
- Hb = !1;
- var b = k.location;
- if (b) {
- var c = b.href;
- if (c && (c = (c = Ib(c)[3] || null) && decodeURIComponent(c)) && c != b.hostname) throw Hb = !0, Error();
- }
- }
- return a.match(Gb)
- }, Hb = za;
- var Jb = function (a, b) {
- var c;
- if (a instanceof Jb) this.O = void 0 !== b ? b : a.O, Kb(this, a.R), this.ea = a.ea, this.W = a.W, Lb(this, a.ba), this.V = a.V, Mb(this, a.N.T()), this.aa = a.aa;
- else if (a && (c = Ib(String(a)))) {
- this.O = !! b;
- Kb(this, c[1] || "", !0);
- this.ea = c[2] ? decodeURIComponent(c[2] || "") : "";
- this.W = c[3] ? decodeURIComponent(c[3] || "") : "";
- Lb(this, c[4]);
- var d = c[5] || "";
- this.V = d ? decodeURIComponent(d) : "";
- Mb(this, c[6] || "", !0);
- this.aa = c[7] ? decodeURIComponent(c[7] || "") : ""
- } else this.O = !! b, this.N = new D(null, 0, this.O)
- };
- g = Jb.prototype;
- g.R = "";
- g.ea = "";
- g.W = "";
- g.ba = null;
- g.V = "";
- g.aa = "";
- g.O = !1;
- g.toString = function () {
- var a = [],
- b = this.R;
- b && a.push(Nb(b, Ob), ":");
- if (b = this.W) {
- a.push("//");
- var c = this.ea;
- c && a.push(Nb(c, Ob), "@");
- a.push(encodeURIComponent(String(b)));
- b = this.ba;
- null != b && a.push(":", String(b))
- }
- if (b = this.V) this.W && "/" != b.charAt(0) && a.push("/"), a.push(Nb(b, "/" == b.charAt(0) ? Pb : Qb));
- (b = this.N.toString()) && a.push("?", b);
- (b = this.aa) && a.push("#", Nb(b, Rb));
- return a.join("")
- };
- g.T = function () {
- return new Jb(this)
- };
- var Kb = function (a, b, c) {
- a.R = c ? b ? decodeURIComponent(b) : "" : b;
- a.R && (a.R = a.R.replace(/:$/, ""))
- }, Lb = function (a, b) {
- if (b) {
- b = Number(b);
- if (isNaN(b) || 0 > b) throw Error("Bad port number " + b);
- a.ba = b
- } else a.ba = null
- }, Mb = function (a, b, c) {
- b instanceof D ? (a.N = b, Sb(a.N, a.O)) : (c || (b = Nb(b, Tb)), a.N = new D(b, 0, a.O))
- }, Nb = function (a, b) {
- return n(a) ? encodeURI(a).replace(b, Ub) : null
- }, Ub = function (a) {
- a = a.charCodeAt(0);
- return "%" + (a >> 4 & 15).toString(16) + (a & 15).toString(16)
- }, Ob = /[#\/\?@]/g,
- Qb = /[\#\?:]/g,
- Pb = /[\#\?]/g,
- Tb = /[\#\?@]/g,
- Rb = /#/g,
- D = function (a, b, c) {
- this.d = a || null;
- this.i = !! c
- }, G = function (a) {
- if (!a.a && (a.a = new B, a.g = 0, a.d))
- for (var b = a.d.split("&"), c = 0; c < b.length; c++) {
- var d = b[c].indexOf("="),
- e = null,
- f = null;
- 0 <= d ? (e = b[c].substring(0, d), f = b[c].substring(d + 1)) : e = b[c];
- e = decodeURIComponent(e.replace(/\+/g, " "));
- e = E(a, e);
- d = a;
- f = f ? decodeURIComponent(f.replace(/\+/g, " ")) : "";
- G(d);
- d.d = null;
- var e = E(d, e),
- h = Db(d.a, e);
- h || d.a.set(e, h = []);
- h.push(f);
- d.g++
- }
- };
- D.prototype.a = null;
- D.prototype.g = null;
- var Vb = function (a, b) {
- G(a);
- b = E(a, b);
- if (C(a.a.d, b)) {
- a.d = null;
- a.g -= Db(a.a, b).length;
- var c = a.a;
- C(c.d, b) && (delete c.d[b], c.g--, c.i++, c.a.length > 2 * c.g && Cb(c))
- }
- }, Wb = function (a, b) {
- G(a);
- b = E(a, b);
- return C(a.a.d, b)
- };
- g = D.prototype;
- g.K = function () {
- G(this);
- for (var a = this.a.C(), b = this.a.K(), c = [], d = 0; d < b.length; d++)
- for (var e = a[d], f = 0; f < e.length; f++) c.push(b[d]);
- return c
- };
- g.C = function (a) {
- G(this);
- var b = [];
- if (n(a)) Wb(this, a) && (b = na(b, Db(this.a, E(this, a))));
- else {
- a = this.a.C();
- for (var c = 0; c < a.length; c++) b = na(b, a[c])
- }
- return b
- };
- g.set = function (a, b) {
- G(this);
- this.d = null;
- a = E(this, a);
- Wb(this, a) && (this.g -= Db(this.a, a).length);
- this.a.set(a, [b]);
- this.g++;
- return this
- };
- g.toString = function () {
- if (this.d) return this.d;
- if (!this.a) return "";
- for (var a = [], b = this.a.K(), c = 0; c < b.length; c++)
- for (var d = b[c], e = encodeURIComponent(String(d)), d = this.C(d), f = 0; f < d.length; f++) {
- var h = e;
- "" !== d[f] && (h += "=" + encodeURIComponent(String(d[f])));
- a.push(h)
- }
- return this.d = a.join("&")
- };
- g.T = function () {
- var a = new D;
- a.d = this.d;
- this.a && (a.a = this.a.T(), a.g = this.g);
- return a
- };
- var E = function (a, b) {
- var c = String(b);
- a.i && (c = c.toLowerCase());
- return c
- }, Sb = function (a, b) {
- b && !a.i && (G(a), a.d = null, Fb(a.a, function (a, b) {
- var e = b.toLowerCase();
- b != e && (Vb(this, b), Vb(this, e), 0 < a.length && (this.d = null, this.a.set(E(this, e), oa(a)), this.g += a.length))
- }, a));
- a.i = b
- };
- var Xb = navigator.userAgent,
- Yb = s(Xb, "Android") || s(Xb, "Mobile") || s(Xb, "Silk") || s(Xb, "iPad") || s(Xb, "iPhone") || s(Xb, "iPod"),
- Zb = function () {
- return (new Date).getTime()
- }, $b = ["", "moz", "ms", "o", "webkit"],
- ac = function (a) {
- var b = document;
- if (!b) return null;
- for (var c = 0; c < $b.length; c++) {
- var d = $b[c],
- e = a;
- 0 < d.length && (e = a.charAt(0).toUpperCase() + a.substr(1));
- d += e;
- if ("undefined" != typeof b[d]) return d
- }
- return null
- }, bc = function () {
- var a = google.doodle;
- if (a && a.url) {
- var b = a.url;
- if (google.nav && google.nav.go) {
- a = b;
- if (0 == b.indexOf("/search")) {
- a =
- new Jb(window.location);
- a.V = "/search";
- for (var b = (b instanceof Jb ? b.T() : new Jb(b, void 0)).N, c = b.K(), d = 0; d < c.length; d++) {
- var e = c[d],
- f = a,
- h = e,
- e = e ? b.C(e) : [];
- f.N.set(h, 0 < e.length ? String(e[0]) : void 0)
- }
- a = a.toString()
- }
- google.nav.go(a)
- } else window.parent ? window.parent.location.replace(b) : window.location.replace(b)
- }
- }, cc = function () {
- for (var a = ["requestAnimationFrame", "mozRequestAnimationFrame", "msRequestAnimationFrame", "oRequestAnimationFrame", "webkitRequestAnimationFrame"], b = 0; b < a.length; b++) {
- var c = window[a[b]];
- if (c) return function (a, b, d) {
- return c(function (b) {
- return a.call(d, b)
- }, b)
- }
- }
- var d = 0,
- e = 33,
- f = 50;
- return function (a, b, c) {
- b && 0 > --f && (1.25 < b / e ? (d = 0, e = Math.min(66, ++e)) : 10 < ++d && (d = 0, e = Math.max(17, --e)));
- window.setTimeout(function (b) {
- a.call(c, b)
- }, e)
- }
- }, dc = function (a, b, c) {
- dc = cc();
- return dc(a, b, c)
- };
- var ec = function (a, b, c) {
- this.d = [];
- this.k = !0;
- this.v = c || 0;
- this.i = [];
- this.o = [];
- this.w = b || document.body;
- this.A = a;
- this.s = []
- };
- q(ec, r);
- ec.prototype.a = function () {
- if (!A) {
- A || (fc(this), this.k = !1);
- for (var a = 0, b; b = this.d[a++];) this.w.removeChild(b);
- this.d = []
- }
- ec.G.a.call(this)
- };
- ec.prototype.load = function () {
- A || gc(this)
- };
- var ic = function (a) {
- var b = H;
- if (!A) {
- var c = gc(b),
- d = b.d[c];
- d && d.play && b.k && (b.i[c] = a, d.loaded ? hc(b, c, a) : d.a = function () {
- hc(b, c, a)
- })
- }
- }, hc = function (a, b, c) {
- var d = a.d[b];
- d.currentTime = c[0];
- d.play();
- c[1] && (a.s[b] = window.setTimeout(function () {
- jc(a, b)
- }, 1E3 * (c[1] - c[0])));
- a.v && (a.o[b] = Zb())
- }, fc = function (a) {
- if (!A)
- for (var b = 0; b < a.i.length; b++) a.i[b] && jc(a, b)
- }, gc = function (a) {
- for (var b = 0, c = 0; c < a.d.length; c++)
- if (a.i[c]) a.o[c] < a.o[b] && (b = c);
- else return c;
- if (a.v && a.d.length >= a.v) return jc(a, b), b;
- b = ub(a.A);
- b.autoplay = !1;
- b.loop = !1;
- a.d.push(b);
- a.o.push(0);
- a.w.appendChild(b);
- return a.d.length - 1
- }, jc = function (a, b) {
- var c = a.d[b];
- c && c.loaded && c.pause && (c.pause(), c.currentTime = 0);
- a.i[b] = null;
- a.s[b] && (window.clearTimeout(a.s[b]), a.s[b] = 0);
- c.a = null
- };
- var kc = k.navigator ? k.navigator.userAgent : "";
- var lc = function (a) {
- this.i = a;
- this.d = !1;
- this.g = [];
- this.a = new Image
- }, mc = function (a) {
- if (!a.a.src) {
- var b = function () {
- if (!a.d) {
- a.d = !0;
- for (var b = 0, d; d = a.g[b]; b++) d()
- }
- };
- a.a.onload = b;
- a.a.src = a.i;
- (a.a.complete || "complete" == a.a.readyState) && b()
- }
- }, nc = function (a, b) {
- a.d ? b() : a.g.push(b)
- };
- var oc = function (a, b, c) {
- this.i = b;
- this.a = c || null;
- this.g = new lc(a);
- this.k = !1;
- var d = this;
- nc(this.g, function () {
- d.k = !0
- })
- };
- oc.prototype.getWidth = function (a) {
- return this.i[a][2]
- };
- oc.prototype.getHeight = function (a) {
- return this.i[a][3]
- };
- var pc = function (a, b) {
- var c = a.i[b];
- return {
- width: c[2],
- height: c[3]
- }
- }, qc = function (a, b) {
- b && nc(a.g, b);
- mc(a.g)
- };
- oc.prototype.d = function (a, b, c, d, e, f) {
- if (this.k) {
- var h = this.i[a],
- l = h[2],
- m = h[3],
- V = e || 1;
- e = l * V;
- V *= m;
- f = f || !1;
- b.drawImage(this.g.a, h[0], h[1], l, m, c - (f ? e / 2 : 0), d - (f ? V / 2 : 0), e, V)
- } else {
- var z = this;
- qc(this, function () {
- z.d(a, b, c, d)
- })
- }
- };
- var rc = {
- Ja: 0,
- Ka: 1,
- La: 2,
- Ma: 3,
- Na: 4,
- Oa: 5,
- Pa: 6,
- Qa: 7,
- Ra: 8
- }, sc = {
- qb: 0,
- rb: 1,
- tb: 2,
- ub: 3
- }, tc = {
- Ya: 0,
- Za: 1,
- $a: 2,
- ab: 3,
- bb: 4,
- Mb: 5,
- Nb: 6,
- Ob: 7,
- Pb: 8,
- gb: 9,
- hb: 10,
- cb: 11,
- eb: 12,
- fb: 13,
- fa: 14,
- wa: 15,
- xa: 16,
- Aa: 17,
- ka: 18,
- Ba: 19,
- Ca: 20,
- Da: 21,
- Ea: 22,
- Fa: 23,
- Ga: 24,
- Ha: 25,
- ib: 26,
- jb: 27,
- kb: 28,
- lb: 29,
- mb: 30,
- Sa: 31,
- Ta: 32,
- Ua: 33,
- Va: 34,
- Wa: 35,
- Xa: 36,
- ga: 37,
- Ia: 38,
- qa: 39,
- ra: 40,
- nb: 41,
- ob: 42,
- pb: 43,
- Fb: 44,
- Gb: 45,
- Hb: 46,
- Ib: 47,
- Jb: 48,
- Kb: 49,
- Lb: 50,
- va: 51,
- ya: 52,
- za: 53,
- oa: 54,
- vb: 55,
- wb: 56,
- xb: 57,
- yb: 58,
- zb: 59,
- Ab: 60,
- Bb: 61,
- Cb: 62,
- Db: 63,
- Eb: 64
- };
- var I, J, K = new oc("/logos/2013/bday13/sprite-initial.png", [
- [570, 549, 90, 98],
- [125, 748, 20, 17],
- [0, 188, 20, 17],
- [486, 312, 11, 8],
- [125, 549, 65, 11],
- [320, 774, 34, 14],
- [538, 188, 34, 13],
- [195, 549, 34, 13],
- [486, 323, 34, 14],
- [47, 549, 32, 21],
- [285, 774, 32, 21],
- [47, 573, 75, 65],
- [387, 154, 23, 13],
- [398, 774, 57, 18],
- [0, 549, 44, 21],
- [357, 774, 38, 18],
- [34, 845, 63, 12],
- [145, 355, 71, 10],
- [17, 860, 26, 29],
- [0, 161, 14, 9],
- [0, 845, 14, 13],
- [31, 30, 19, 20],
- [317, 549, 250, 164],
- [163, 188, 250, 164],
- [323, 382, 250, 164],
- [0, 382, 250, 164],
- [125, 563, 37, 112],
- [145, 188, 15, 26],
- [580,
- 774, 12, 6
- ],
- [606, 844, 11, 10],
- [253, 418, 48, 10],
- [575, 188, 70, 63],
- [0, 30, 28, 20],
- [665, 774, 28, 20],
- [17, 845, 14, 10],
- [77, 30, 17, 12],
- [100, 845, 60, 20],
- [509, 30, 13, 120],
- [0, 0, 662, 27],
- [219, 30, 165, 155],
- [25, 774, 67, 68],
- [0, 774, 22, 12],
- [253, 382, 20, 10],
- [580, 844, 23, 13],
- [615, 100, 67, 67],
- [357, 795, 67, 67],
- [595, 774, 67, 67],
- [416, 312, 67, 67],
- [615, 30, 67, 67],
- [125, 678, 67, 67],
- [253, 431, 67, 67],
- [525, 30, 87, 105],
- [0, 53, 74, 105],
- [253, 395, 34, 20],
- [195, 565, 119, 121],
- [163, 774, 119, 121],
- [0, 641, 119, 121],
- [416, 188, 119, 121],
- [570, 650, 119, 121],
- [538, 254, 119, 121],
- [387, 30, 119, 121],
- [97, 30, 119, 121],
- [458, 774, 119, 121],
- [23, 188, 119, 121],
- [576, 382, 119, 121]
- ], tc);
- K.a = tc;
- var uc = new oc("/logos/2013/bday13/sprite-endscreen.png", [
- [0, 0, 604, 171],
- [1821, 0, 604, 171],
- [607, 0, 604, 171],
- [1214, 0, 604, 171]
- ], sc);
- uc.a = sc;
- var L = new oc("/logos/2013/bday13/sprite-button.png", [
- [0, 49, 42, 46],
- [0, 98, 39, 39],
- [0, 140, 42, 46],
- [0, 238, 42, 46],
- [0, 336, 39, 39],
- [0, 0, 42, 46],
- [0, 189, 42, 46],
- [0, 378, 39, 39],
- [0, 287, 42, 46]
- ], rc);
- L.a = rc;
- var M, H, vc = !1,
- wc = !1,
- xc = [0, 0.3],
- yc = [0.5, 0.9],
- zc = [1, 1.3],
- Ac = [1.5, 1.8],
- Bc = [2, null],
- N = !(s(kc, "iPhone") && !s(kc, "iPod") || s(kc, "iPad") || s(kc, "iPod")),
- Cc = function (a) {
- switch (a) {
- case "mousedown":
- wc = !0;
- vc = !vc;
- if (N && M) {
- a = vc ? 0 : 1;
- var b = M.load("music-3");
- b && (b.volume = a)
- }
- N && H && (vc ? (a = H, A || (fc(a), a.k = !1)) : (a = H, A || (a.k = !0)));
- break;
- case "mouseup":
- wc = !1
- }
- }, Dc = function (a) {
- N && H && ic(a)
- }, Ec = function () {
- N && M && xb(M, "music-3")
- }, Fc = function () {
- N && M && M.loop("music-3")
- };
- var Jc = function (a, b, c) {
- this.A = a;
- this.J = b;
- this.X = c;
- this.i = this.d = this.s = !1;
- this.v = Zb();
- this.S = ac("hidden");
- if ((this.o = (this.w = ac("visibilityState")) ? this.w.replace(/state$/i, "change").toLowerCase() : null) && document.addEventListener) {
- var d = this;
- this.F = function () {
- var a = document[d.w];
- d.s = document[d.S] || "hidden" == a;
- d.s ? Gc(d) : Hc(d)
- };
- document.addEventListener(this.o, this.F, !1)
- }
- Ic(this)
- };
- q(Jc, r);
- Jc.prototype.a = function () {
- window.clearTimeout(this.k);
- this.o && document.removeEventListener && document.removeEventListener(this.o, this.F, !1);
- Jc.G.a.call(this)
- };
- var Gc = function (a) {
- var b = a.s || a.d;
- a.i && !b ? (a.i = !1, a.X(), Ic(a)) : !a.i && b && (a.i = !0, a.J())
- }, Ic = function (a) {
- a.k && window.clearTimeout(a.k);
- var b = Math.max(100, a.A - (Zb() - a.v));
- a.k = window.setTimeout(function () {
- a.k = null;
- a.d = Zb() - a.v >= a.A;
- a.d || Ic(a);
- Gc(a)
- }, b)
- }, Hc = function (a) {
- a.v = Zb();
- a.d = !1;
- Gc(a)
- };
- var Kc = function (a, b) {
- this.s = a;
- this.w = b || null;
- this.a = [];
- this.g = null;
- this.k = this.i = 0;
- this.B = this.o = !1;
- this.v = []
- }, Lc = function () {
- var a = new yb;
- a.contains = function () {
- return !0
- };
- return a
- }(),
- Nc = function (a, b, c) {
- a.a.push(new Mc(b, c))
- }, Qc = function (a, b) {
- for (var c = a.a.length - 1; 0 <= c; c--) a.a[c].d === b && a.a.splice(c, 1);
- b === a.g && (a.g = null, Oc(a));
- b === a.d && (a.d = null);
- Pc(a, "areamove", a.i, a.k)
- };
- Kc.prototype.handleEvent = function (a) {
- this.w && Hc(this.w);
- var b;
- if (b = (b = a.I()) || window.event) {
- var c = b.targetTouches && b.targetTouches[0];
- b = c && void 0 !== c.pageX ? [c.pageX, c.pageY] : void 0 !== b.clientX ? [b.clientX + ("rtl" == document.dir ? -1 : 1) * (document.body.scrollLeft || document.documentElement.scrollLeft || 0), b.clientY + (document.body.scrollTop || document.documentElement.scrollTop || 0)] : void 0 !== b.pageX ? [b.pageX, b.pageY] : [0, 0]
- } else b = [0, 0];
- var c = this.s,
- d = 0,
- e = 0;
- if (c) {
- do d += c.offsetLeft, e += c.offsetTop; while (c = c.offsetParent)
- }
- c = [d, e];
- b = [b[0] - c[0], b[1] - c[1]];
- this.i = b[0];
- this.k = b[1];
- b = a.type;
- this.B && 0 == b.indexOf("mouse") || (c = {
- touchstart: "mousedown",
- touchend: "mouseup",
- touchmove: "mousemove"
- }, b in c && (this.B = !0, b = c[b]), "mousedown" == b && a.Y(), Pc(this, b, this.i, this.k))
- };
- var Pc = function (a, b, c, d) {
- if (!a.o && "mousedown" == b) {
- a.o = !0;
- for (var e = 0; e < a.v.length; e++) a.v[e]()
- }
- if ("mousedown" == b) {
- if (!a.d)
- for (e = 0; e < a.a.length; e++) {
- var f = a.a[e];
- if (f.d.contains(c, d)) {
- a.d = f;
- f.a("mousedown", c, d);
- break
- }
- }
- } else if ("mouseup" == b) a.d && (a.d.a("mouseup", c, d), a.d = null);
- else if ("mousemove" == b || "areamove" == b) {
- for (var h = null, e = 0; e < a.a.length; e++)
- if (f = a.a[e], f.d.contains(c, d)) {
- h = f;
- break
- }
- a.g != h && (a.g && a.g.a("mouseout", c, d), h && h.a("mouseover", c, d), a.g = h);
- if ("mousemove" == b)
- for (a.d && a.d.a("mousemove",
- c, d), e = 0; e < a.a.length; e++) f = a.a[e], f != a.d && f.d.contains(c, d) && f.a("mousemove", c, d)
- }
- Oc(a)
- }, Oc = function (a) {
- a.s.style.cursor = a.g && a.g.d != Lc ? "pointer" : "default"
- }, Mc = function (a, b) {
- this.d = a;
- this.a = b
- };
- var Rc = function (a, b) {
- google && google.doodle && (b && (google.doodle.cpDestroy = b), google.doodle.cpInit = function () {
- b && b();
- a()
- })
- }, Sc = function (a, b, c) {
- if (google) {
- var d = function () {
- var a = google.msg && google.msg.unlisten;
- a && (a(67, d), c && a(94, c));
- b();
- return !0
- }, e = function () {
- var a = document.getElementById("hplogo");
- a && "hidden" != a.style.visibility && (a = google.msg && google.msg.listen, google.psy && google.psy.q && a && (a(67, d), c && a(94, c)))
- };
- e();
- google.doodle && google.doodle.jesr || (ga("google.doodle.jesr"), google.raas && google.raas("doodle", {
- init: function () {
- e();
- google.doodle.jesrd && (a(), google.doodle.jesrd = !1)
- },
- dispose: function () {
- d();
- google.doodle.jesrd = !0
- }
- }))
- }
- };
- var O = function (a) {
- this.v = a;
- this.i = {}
- };
- q(O, r);
- var Tc = [];
- O.prototype.listen = function (a, b, c, d, e) {
- "array" != aa(b) && (Tc[0] = b, b = Tc);
- for (var f = 0; f < b.length; f++) {
- var h = hb(a, b[f], c || this, d || !1, e || this.v || this);
- if (!h) break;
- this.i[h.la] = h
- }
- return this
- };
- O.prototype.unlisten = function (a, b, c, d, e) {
- if ("array" == aa(b))
- for (var f = 0; f < b.length; f++) this.unlisten(a, b[f], c, d, e);
- else e = e || this.v || this, c = ib(c || this), d = !! d, b = Sa(a) ? db(a.D, String(b), c, d, e) : a ? (a = jb(a)) ? db(a, b, c, d, e) : null : null, b && (nb(b), delete this.i[b.la]);
- return this
- };
- O.prototype.a = function () {
- O.G.a.call(this);
- var a = this.i,
- b = nb,
- c;
- for (c in a) b.call(void 0, a[c], c, a);
- this.i = {}
- };
- O.prototype.handleEvent = function () {
- throw Error("EventHandler.handleEvent not implemented");
- };
- var Uc = !1,
- P = 0,
- Wc = function (a) {
- if (a) {
- var b = a.indexOf("doodle=9019609X");
- 0 <= b && (a = a.substr(b + 15).match(/^[0-9]+/)) && 0 < a.length && (a = a[0], 4 > a.length && (Vc = parseInt(a, 10)))
- }
- }, Xc = 0,
- $c = function (a) {
- P = a;
- 2 == P ? (Xc = fa(), Yc++, Zc(0)) : 3 == P && Zc(fa() - Xc)
- }, Zc = function (a) {
- window.google && window.google.log && window.google.log("doodle", ["bday13", "s:" + P, "n:" + Yc, "c:" + Q, "t:" + a].join())
- }, ad = 0,
- Q = 0,
- Vc = 0,
- bd = 0,
- Yc = 0,
- cd = 3;
- var dd = K.getWidth(K.a.oa) / 2,
- ed = [54, 180, 33, 240, -33, 240, -54, 180, 1, 142],
- fd = ["#ed2933", "#2157a7", "#248f44"],
- gd = [25, 20, 26],
- hd = [-1, 0, 1],
- id = [3, 0, -3],
- R = 0,
- S = 0,
- jd = 0,
- kd = 0,
- ld = [K.a.oa, K.a.vb, K.a.wb, K.a.xb, K.a.yb, K.a.zb, K.a.Ab, K.a.Bb, K.a.Cb, K.a.Db, K.a.Eb],
- md = ld.length,
- nd = 0,
- od = [15, 30, 45, 60, 75, 90, 115, 130, 145, 160],
- pd = od.length,
- qd = function () {
- R = Math.PI / 8;
- nd = jd = kd = S = 0
- };
- var rd = [],
- sd = 0,
- td = 0,
- ud = function () {
- rd = [];
- Q = ad = sd = td = 0
- }, vd = [5, 6, 7, 8];
- var T = function () {
- this.D = new $a(this);
- this.s = this
- };
- q(T, r);
- T.prototype[Ra] = !0;
- T.prototype.i = null;
- T.prototype.removeEventListener = function (a, b, c, d) {
- mb(this, a, b, c, d)
- };
- var yd = function (a, b) {
- wd(a);
- var c, d = a.i;
- if (d) {
- c = [];
- for (var e = 1; d; d = d.i) c.push(d), t(1E3 > ++e, "infinite loop")
- }
- var d = a.s,
- e = b,
- f = e.type || e;
- if (n(e)) e = new Qa(e, d);
- else if (e instanceof Qa) e.U = e.U || d;
- else {
- var h = e,
- e = new Qa(f, d);
- Xa(e, h)
- }
- var h = !0,
- l;
- if (c)
- for (var m = c.length - 1; !e.H && 0 <= m; m--) l = e.a = c[m], h = xd(l, f, !0, e) && h;
- e.H || (l = e.a = d, h = xd(l, f, !0, e) && h, e.H || (h = xd(l, f, !1, e) && h));
- if (c)
- for (m = 0; !e.H && m < c.length; m++) l = e.a = c[m], h = xd(l, f, !1, e) && h;
- return h
- };
- T.prototype.a = function () {
- T.G.a.call(this);
- if (this.D) {
- var a = this.D,
- b = 0,
- c;
- for (c in a.a) {
- for (var d = a.a[c], e = 0; e < d.length; e++)++b, Za(d[e]);
- delete a.a[c];
- a.d--
- }
- }
- this.i = null
- };
- T.prototype.listen = function (a, b, c, d) {
- wd(this);
- return bb(this.D, String(a), b, c, d)
- };
- T.prototype.unlisten = function (a, b, c, d) {
- var e;
- e = this.D;
- a = String(a);
- if (a in e.a) {
- var f = e.a[a];
- b = ab(f, b, c, d); - 1 < b ? (Za(f[b]), t(null != f.length), u.splice.call(f, b, 1), 0 == f.length && (delete e.a[a], e.d--), e = !0) : e = !1
- } else e = !1;
- return e
- };
- var xd = function (a, b, c, d) {
- b = a.D.a[String(b)];
- if (!b) return !0;
- b = oa(b);
- for (var e = !0, f = 0; f < b.length; ++f) {
- var h = b[f];
- if (h && !h.P && h.capture == c) {
- var l = h.L,
- m = h.$ || h.src;
- h.Z && cb(a.D, h);
- e = !1 !== l.call(m, d) && e
- }
- }
- return e && !1 != d.ma
- }, wd = function (a) {
- t(a.D, "Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")
- };
- var Ad = function (a) {
- T.call(this);
- this.d = a;
- hb(a, zd, this.o, !1, this);
- hb(a, "click", this.k, !1, this)
- };
- q(Ad, T);
- var zd = ya ? "keypress" : "keydown";
- Ad.prototype.o = function (a) {
- (13 == a.ha || za && 3 == a.ha) && Bd(this, a)
- };
- Ad.prototype.k = function (a) {
- Bd(this, a)
- };
- var Bd = function (a, b) {
- var c = new Cd(b);
- if (yd(a, c)) {
- c = new Dd(b);
- try {
- yd(a, c)
- } finally {
- b.ia()
- }
- }
- };
- Ad.prototype.a = function () {
- Ad.G.a.call(this);
- mb(this.d, zd, this.o, !1, this);
- mb(this.d, "click", this.k, !1, this);
- delete this.d
- };
- var Dd = function (a) {
- (a = a.I()) && this.init(a, void 0);
- this.type = "action"
- };
- q(Dd, x);
- var Cd = function (a) {
- (a = a.I()) && this.init(a, void 0);
- this.type = "beforeaction"
- };
- q(Cd, x);
- var Ed = function (a, b, c, d, e) {
- O.call(this);
- this.J = a;
- this.F = b;
- this.A = c;
- this.w = d;
- e && (this.d && this.unlisten(this.d, "action", this.k), e && (this.d = new Ad(e), a = ea(ha, this.d), this.g || (this.g = []), this.g.push(p(a, void 0)), this.k = p(this.o, this), this.listen(this.d, "action", this.k)))
- };
- q(Ed, O);
- Ed.prototype.o = function () {
- if (Fd()) window.gapi && window.gapi.load && window.gapi.load("share", p(this.s, this));
- else {
- var a = window.open("about:blank");
- a && (a.location = "https://plus.google.com")
- }
- };
- var Fd = function () {
- if (!window.gbar) return !1;
- var a = !! (window.gbar.sos && 0 < window.gbar.sos().length),
- b = !(!window.gbar.so || !window.gbar.so());
- return a || b
- };
- Ed.prototype.s = function () {
- if (window.gapi && window.gapi.share) {
- var a = {
- items: [{
- type: "http://schema.org/WebPage",
- id: location.protocol + "//" + location.host,
- properties: {
- url: [this.J],
- name: [this.F],
- image: [this.w]
- }
- }]
- }, b = window.location.toString().match(/[?&]authuser=(\d+)/),
- b = b && b[1],
- c = Fd() || !! window.google.doodle.sf;
- window.gapi.share.lightbox(a, {
- isLoggedInForGooglePlus: c,
- onLoginPopupBlocked: function () {
- var a = window.google.log;
- a && a("DOODLE", "popupblocked")
- },
- onLoginStateChanged: p(function () {
- ga("google.doodle.sf");
- this.s()
- }, this),
- editorText: this.A,
- sessionIndex: b || "",
- sourceForLogging: "doodle"
- })
- }
- };
- var Gd = function (a, b, c, d) {
- this.g = a;
- this.o = b;
- this.s = c;
- this.a = a;
- this.k = d;
- a = this.g[0] - 2;
- b = this.g[1] - 2;
- d = pc(L, this.g[2]);
- c = d.width + 4;
- d = d.height + 4;
- this.i = new zb([a, b, a + c, b, a + c, b + d, a, b + d])
- };
- Gd.prototype.d = function (a) {
- L.d(this.a[2], a, this.a[0], this.a[1])
- };
- var Hd = function (a, b) {
- Nc(b, a.i, function (b) {
- switch (b) {
- case "mousedown":
- a.a = a.o;
- break;
- case "mouseout":
- a.a = a.g;
- break;
- case "mouseup":
- a.a = a.g;
- a.k();
- break;
- case "mouseover":
- a.a = a.s
- }
- })
- };
- var Id = {
- ALL: {
- ALL: ["I won candy on the #googlebirthday doodle! Score:", "High Score"]
- },
- am: {
- ALL: ["\u1260#googlebirthday doodle! \u12f0\u1228\u1303 \u1218\u1230\u1228\u1275 \u12a5\u1294 \u12a8\u1228\u121c\u120b \u12a0\u1238\u1295\u134c\u12eb\u1208\u1201:", "\u12a8\u134d\u1270\u129b \u12f0\u1228\u1303"]
- },
- ar: {
- ALL: ["\u0644\u0642\u062f \u0641\u0632\u062a \u0628\u0627\u0644\u062d\u0644\u0648\u0649 \u0628\u0645\u0646\u0627\u0633\u0628\u0629 \u0639\u064a\u062f \u0645\u064a\u0644\u0627\u062f Google \u0645\u0646 \u062e\u0644\u0627\u0644 \u0631\u0633\u0648\u0645\u0627\u062a \u0627\u0644\u0634\u0639\u0627\u0631 \u0627\u0644\u0645\u0628\u062a\u0643\u0631\u0629 googlebirthday Doodle# ! \u0645\u062c\u0645\u0648\u0639 \u0627\u0644\u0646\u0642\u0627\u0637:",
- "\u0623\u0639\u0644\u0649 \u0645\u062c\u0645\u0648\u0639 \u0645\u0646 \u0627\u0644\u0646\u0642\u0627\u0637"
- ]
- },
- az: {
- ALL: ["M\u0259n konfet qazand\u0131m #googlebirthday doodle il\u0259! Bal: ", "Y\u00fcks\u0259k bal"]
- },
- eu: {
- ALL: ["Irabazi gozokiak #googlebirthday doodle-arekin! Puntuazioa:", "Errekor pertsonala"]
- },
- bn: {
- ALL: ["\u0986\u09ae\u09bf #googlebirthday \u09a1\u09c1\u09a1\u09b2\u09c7 \u099f\u09ab\u09bf \u099c\u09bf\u09a4\u09c7\u099b\u09bf! \u09b8\u09cd\u0995\u09cb\u09b0:", "\u09b8\u09b0\u09cd\u09ac\u09cb\u099a\u09cd\u099a \u09b8\u09cd\u0995\u09cb\u09b0"]
- },
- bg: {
- ALL: ["\u0421\u043f\u0435\u0447\u0435\u043b\u0438\u0445 \u0431\u043e\u043d\u0431\u043e\u043d\u0438 \u043d\u0430 #googlebirthday \u0434\u0443\u0434\u044a\u043b\u0430! \u041c\u043e\u044f\u0442 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442 \u0435:", "\u041d\u0430\u0439-\u0432\u0438\u0441\u043e\u043a \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442"]
- },
- ca: {
- ALL: ["He guanyat caramels amb el doodle #googlebirthday! Puntuaci\u00f3:", "Millor puntuaci\u00f3:"]
- },
- "zh-CN": {
- ALL: ["\u6211\u73a9#googlebirthday \u6d82\u9e26\u8d62\u4e86\u7cd6\u679c\uff01\u6211\u7684\u5206\u6570\uff1a",
- "\u6700\u9ad8\u5206\u6570"
- ]
- },
- "zh-TW": {
- ALL: ["\u6211\u5728\uff03googlebirthday \u904a\u6232\u8d0f\u5f97\u7cd6\u679c\uff01\u6211\u7684\u5206\u6578\uff1a", "\u6700\u9ad8\u5206\u6578"]
- },
- "zh-HK": {
- ALL: ["\u6211\u5728\uff03googlebirthday \u904a\u6232\u8d0f\u4e86\u7cd6\u679c\uff01\u6211\u7684\u5206\u6578\uff1a", "\u6700\u9ad8\u5206\u6578"]
- },
- hr: {
- ALL: ["Osvajam slatki\u0161e na #googlebirthday doodleu! Rezultat:", "Najbolji rezultat"]
- },
- cs: {
- ALL: ["Vyhr\u00e1v\u00e1m sladkosti za \u00fa\u010dast na doodlu #googlebirthday. Moje sk\u00f3re:",
- "Nejvy\u0161\u0161\u00ed sk\u00f3re:"
- ]
- },
- da: {
- ALL: ["Jeg vandt slik p\u00e5 #googlebirthday-doodlen! Score:", "High Score"]
- },
- "es-419": {
- ALL: ["\u00a1Gan\u00e9 dulces con el doodle #googlebirthday ! Puntuaci\u00f3n:", "Mejor puntuaci\u00f3n"]
- },
- fr: {
- ALL: ["Devine combien de bonbons j'ai gagn\u00e9s avec le doodle #googlebirthday :", "Meilleur score"]
- },
- gl: {
- ALL: ["\u00a1Ga\u00f1ei lamboadas co doodle de #googlebirthday! Puntuaci\u00f3n:", "R\u00e9cord persoal"]
- },
- de: {
- ALL: ["Ich habe beim Doodle #googlebirthday S\u00fc\u00dfigkeiten gewonnen! Ergebnis:",
- ""
- ],
- ch: ["Ich habe beim Doodle #googlebirthday S\u00fcssigkeiten gewonnen! Ergebnis:", ""]
- },
- el: {
- ALL: ["\u039a\u03ad\u03c1\u03b4\u03b9\u03c3\u03b1 \u03ba\u03b1\u03c1\u03b1\u03bc\u03ad\u03bb\u03b5\u03c2 \u03c3\u03c4\u03bf #googlebirthday doodle! \u03a3\u03ba\u03bf\u03c1:", "High Score"]
- },
- gu: {
- ALL: ["\u0aae\u0ac7 #googlebirthday \u0aa1\u0ac2\u0aa1\u0ab2 \u0aaa\u0ab0 \u0a9a\u0acb\u0a95\u0ab2\u0ac7\u0a9f \u0a9c\u0ac0\u0aa4\u0ac0! \u0ab8\u0acd\u0a95\u0acb\u0ab0:", "\u0a89\u0a9a\u0acd\u0a9a \u0ab8\u0acd\u0a95\u0acb\u0ab0"]
- },
- iw: {
- ALL: [" \u05d0\u05e0\u05d9 \u05d6\u05db\u05d9\u05ea\u05d9 \u05d1\u05e1\u05d5\u05db\u05e8\u05d9\u05d5\u05ea \u05d1\u05d3\u05d5\u05d3\u05dc #googlebirthday \u05e6\u05d9\u05d5\u05df:", "\u05e6\u05d9\u05d5\u05df \u05d2\u05d1\u05d5\u05d4"]
- },
- hi: {
- ALL: ["\u092e\u0948\u0928\u0947\u0902 #googlebirthday \u0921\u0942\u0921\u0932 \u092a\u0930 \u091f\u0949\u092b\u093c\u0940 \u091c\u0940\u0924\u0940! \u0938\u094d\u0915\u094b\u0930:", "\u0938\u0930\u094d\u0935\u094b\u091a\u094d\u091a \u0938\u094d\u0915\u094b\u0930"]
- },
- hu: {
- ALL: ["Nyertem egy cukork\u00e1t a #googlebirthday doodle-on! Pontsz\u00e1m:", "Legmagasabb pontsz\u00e1m"]
- },
- is: {
- ALL: ["\u00c9g vann s\u00e6lg\u00e6ti \u00ed #googlebirthday leiknum! Stig:", "Flest stig"]
- },
- id: {
- ALL: ["Saya menang permen di doodle #googlebirthday! Skor:", "Skor Tinggi"]
- },
- it: {
- ALL: ["Ho vinto dei dolcetti con il doodle #googlebirthday! Punteggio:", "Classifica"]
- },
- ja: {
- ALL: ["#googlebirthday doodle \u3092\u904a\u3093\u3067\u3001\u30ad\u30e3\u30f3\u30c7\u30a3\u3092\u52dd\u3061\u53d6\u3063\u305f\uff01 Score:",
- "High Score"
- ]
- },
- kn: {
- ALL: ["\u0ca8\u0cbe\u0ca8\u0cc1 #googlebirthday \u0ca1\u0cc2\u0ca1\u0cb2\u0ccd\u200c\u0ca8\u0cb2\u0ccd\u0cb2\u0cbf \u0c9a\u0cbe\u0c95\u0cb2\u0cc7\u0c9f\u0ccd\u200c\u200c \u0c97\u0cc6\u0ca6\u0ccd\u0ca6\u0cbf\u0ca6\u0ccd\u0ca6\u0cc7\u0ca8\u0cc6! \u0cb8\u0ccd\u0c95\u0ccb\u0cb0\u0ccd\u200c\u200c:", "\u0c85\u0ca4\u0ccd\u0caf\u0ca7\u0cbf\u0c95 \u0cb8\u0ccd\u0c95\u0ccb\u0cb0\u0ccd\u200c\u200c"]
- },
- ms: {
- ALL: ["Saya menang gula-gula dengan lukisan #googlebirthday! Markah:", "Markah Tertinggi:"]
- },
- ml: {
- ALL: ["#googlebirthday \u0d21\u0d42\u0d21\u0d3f\u0d32\u0d3f\u0d7d \u0d1e\u0d3e\u0d7b \u0d12\u0d30\u0d41 \u0d1a\u0d4b\u0d15\u0d4d\u0d32\u0d47\u0d31\u0d4d\u0d31\u0d4d \u0d28\u0d47\u0d1f\u0d3f! \u0d38\u0d4d\u0d15\u0d4b\u0d7c:", "\u0d09\u0d2f\u0d7c\u0d28\u0d4d\u0d28 \u0d38\u0d4d\u0d15\u0d4b\u0d7c"]
- },
- mr: {
- ALL: ["\u092e\u0940 #googlebirthday \u0921\u0942\u0921\u0932 \u0935\u0930 \u091f\u0949\u092b\u0940 \u091c\u093f\u0902\u0915\u0932\u094b! \u0938\u094d\u0915\u094b\u0905\u0930:", "\u0938\u0930\u094d\u0935\u094b\u091a\u094d\u091a \u0938\u094d\u0915\u094b\u0905\u0930"]
- },
- no: {
- ALL: ["Jeg vant godteri p\u00e5 #googlebirthday-doodlen! Resultat:", "Beste resultat"]
- },
- pl: {
- ALL: ["Zgarniam s\u0142odko\u015bci graj\u0105c w doodla #googlebirthday! M\u00f3j wynik:", "Najlepszy wynik"]
- },
- "pt-BR": {
- ALL: ["Eu ganhei doces no #Anivers\u00e1rioDoGoogle! Pontua\u00e7\u00e3o:", "Pontua\u00e7\u00e3o M\u00e1xima"]
- },
- "pt-PT": {
- ALL: ["Eu ganhei doces no doodle de #Anivers\u00e1rioDaGoogle! Pontua\u00e7\u00e3o:", "Pontua\u00e7\u00e3o M\u00e1xima"]
- },
- ro: {
- ALL: ["Am c\u00e2\u015ftigat bomboane pe doodle-ul #googlebirthday! Punctaj:",
- "Punctaj maxim"
- ]
- },
- ru: {
- ALL: ["\u041c\u043d\u0435 \u0434\u0430\u043b\u0438 \u043a\u043e\u043d\u0444\u0435\u0442\u0443 \u043d\u0430 \u0434\u0443\u0434\u043b\u0435 #googlebirthday! \u0421\u0447\u0435\u0442:", "\u0420\u0435\u043a\u043e\u0440\u0434"]
- },
- sr: {
- ALL: ["\u041e\u0441\u0432\u0430\u0458\u0430\u043c \u0441\u043b\u0430\u0442\u043a\u0438\u0448\u0435 \u043d\u0430 #googlebirthday \u0434\u0443\u0434\u043b\u0443! \u0420\u0435\u0437\u0443\u043b\u0442\u0430\u0442:", "\u041d\u0430\u0458\u0431\u043e\u0459\u0438 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442"]
- },
- sk: {
- ALL: ["Vyhr\u00e1vam sladkosti za \u00fa\u010das\u0165 na doodlu #googlebirthday! Moje sk\u00f3re:", "Najvy\u0161\u0161ie sk\u00f3re"]
- },
- sl: {
- ALL: ["Dobil sem sladko nagrado na doodlu #googlebirthday! Moja ocena:", "Najbolj\u0161a ocena"]
- },
- es: {
- ALL: ["He ganado caramelos con el doodle de #googlebirthday! Puntuaci\u00f3n: ", "R\u00e9cord personal"]
- },
- sv: {
- ALL: ["Jag vann godis fr\u00e5n #googlebirthday-doodlen! Po\u00e4ng:", "B\u00e4sta resultat"]
- },
- ta: {
- ALL: ["#googlebirthday \u0b9f\u0bc2\u0b9f\u0bc1\u0bb3\u0bcd \u0b85\u0ba9\u0bcd\u0bb1\u0bc1 \u0ba8\u0bbe\u0ba9\u0bcd \u0b95\u0bc7\u0ba3\u0bcd\u0b9f\u0bbf \u0bb5\u0bc6\u0ba9\u0bcd\u0bb1\u0bc7\u0ba9\u0bcd! \u0bae\u0ba4\u0bbf\u0baa\u0bcd\u0baa\u0bc6\u0ba3\u0bcd:",
- "\u0b85\u0ba4\u0bbf\u0b95 \u0bae\u0ba4\u0bbf\u0baa\u0bcd\u0baa\u0bc6\u0ba3\u0bcd"
- ]
- },
- te: {
- ALL: ["\u0c28\u0c47\u0c28\u0c41 #googlebirthday \u0c21\u0c42\u0c21\u0c32\u0c4d\u200c\u0c2a\u0c48 \u0c1a\u0c3e\u0c15\u0c4d\u0c32\u0c46\u0c1f\u0c4d \u0c17\u0c46\u0c32\u0c41\u0c2a\u0c4a\u0c02\u0c26\u0c3e\u0c28\u0c41! \u0c38\u0c4d\u0c15\u0c4b\u0c30\u0c4d:", "\u0c05\u0c24\u0c4d\u0c2f\u0c27\u0c3f\u0c15 \u0c38\u0c4d\u0c15\u0c4b\u0c30\u0c4d"]
- },
- tr: {
- ALL: ["#googlebirthday doodle'undan \u015feker kazand\u0131m! Puan:", "Y\u00fcksek Puan"]
- },
- uk: {
- ALL: ["\u041c\u0435\u043d\u0456 \u0434\u0430\u043b\u0438 \u0446\u0443\u043a\u0435\u0440\u043a\u0443 \u043d\u0430 \u0434\u0443\u0434\u043b\u0456 #googlebirthday! \u0420\u0430\u0445\u0443\u043d\u043e\u043a:", "\u041d\u0430\u0439\u0431\u0456\u043b\u044c\u0448\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442"]
- },
- zu: {
- ALL: ["Ngiwine amaswidi ku-doodle #googlebirthday! Isikolo:", "Isikolo esiphezulu"]
- }
- }, Jd = Id.ALL.ALL;
- var Kd, Ld, Md, Nd = function () {
- var a;
- i: {
- a = google.kHL || "ALL";
- if (Id[a]) {
- a = Id[a];
- var b = google.doodle && google.doodle.tld;
- a[b] || (b = "ALL");
- if (a[b] && a[b][0]) {
- a = a[b][0];
- break i
- }
- }
- a = Jd[0]
- }(new Ed(window.location.protocol + "//" + window.location.host + "/?doodle=9019609X" + Q, window.google.doodle.alt, a + " " + Q, "https://www.google.com/logos/2013/bday13/share_" + ((25 > Q ? 0 : 100 > Q ? 1 : 180 > Q ? 2 : 3) + 1) + ".png")).o()
- }, Od = [uc.a.qb, uc.a.rb, uc.a.tb, uc.a.ub];
- var Pd = !1,
- Qd = 0,
- Rd = 0,
- Sd = 0,
- Td = 0,
- Ud = 0,
- Vd = function () {
- Pd = !Pd
- };
- var U = function (a, b, c, d, e, f) {
- this.B = a;
- this.S = b;
- a = pc(K, b[2]);
- this.X = [a.width / 2, a.height / 2];
- this.F = c;
- this.s = d;
- this.J = e;
- this.v = f || null;
- this.A = 500 * Math.random();
- this.o = 0;
- this.w = 1E3 * (1 + 2 * Math.random());
- this.a = [0, 0];
- this.g = this.d = 0
- }, Wd = function (a, b, c) {
- a.A += c;
- a.a[0] += a.g * c;
- if (0 < a.g && a.a[0] > a.d || 0 > a.g && a.a[0] < a.d) a.g = 0, a.a[0] = a.d;
- var d = Math.sin(a.A / 100) + 0.5;
- a.a[1] = -d * cd;
- K.d(a.S[2], b, a.S[0] + a.X[0] + a.a[0], a.S[1] + a.X[1], 1 - d / 10, !0);
- 0 < a.o && a.s ? (a.o -= c, K.d(a.s[2], b, a.s[0] + a.a[0], a.s[1] + a.a[1])) : (a.w -= c, 0 > a.w && (a.o =
- 150, a.w = 1E3 * (1 + 2 * Math.random())), K.d(a.F[2], b, a.F[0] + a.a[0], a.F[1] + a.a[1]), K.d(a.J[2], b, a.J[0] + a.a[0], a.J[1] + a.a[1]));
- K.d(a.B[2], b, a.B[0] + a.a[0], a.B[1] + a.a[1]);
- a.v && K.d(a.v[2], b, a.v[0] + a.a[0], a.v[1] + a.a[1])
- };
- var Xd = function () {
- U.call(this, [565, 94, K.a.cb], [575, 148, K.a.fb], [587, 99, K.a.hb], [587, 99, K.a.gb], [590, 101, K.a.eb], null)
- };
- q(Xd, U);
- Xd.prototype.k = function () {
- this.d = 150;
- this.g = 0.4
- };
- Xd.prototype.i = function () {
- this.d = 0;
- this.g = -0.4
- };
- var Yd = function () {
- U.call(this, [42, 53, K.a.Ya], [53, 145, K.a.bb], [79, 101, K.a.$a], [79, 101, K.a.Za], [84, 103, K.a.ab], null)
- };
- q(Yd, U);
- Yd.prototype.k = function () {
- this.d = -220;
- this.g = -0.4
- };
- Yd.prototype.i = function () {
- this.d = 0;
- this.g = 0.4
- };
- var Zd = function () {
- U.call(this, [524, 50, K.a.ib], [522, 154, K.a.mb], [539, 108, K.a.jb], null, [540, 115, K.a.lb], [541, 135, K.a.kb])
- };
- q(Zd, U);
- Zd.prototype.k = function () {
- this.d = 150;
- this.g = 0.4
- };
- Zd.prototype.i = function () {
- this.d = 0;
- this.g = -0.4
- };
- var $d = function () {
- U.call(this, [135, 91, K.a.Sa], [139, 144, K.a.Xa], [154, 98, K.a.Ua], [154, 98, K.a.Ta], [163, 101, K.a.Wa], [165, 115, K.a.Va])
- };
- q($d, U);
- $d.prototype.k = function () {
- this.d = -220;
- this.g = -0.4
- };
- $d.prototype.i = function () {
- this.d = 0;
- this.g = 0.4
- };
- var ae, be, ce, de;
- var ee = K.getHeight(K.a.ga),
- fe = !1,
- ge = !1,
- he = !0,
- ie = 0,
- ke = K.getWidth(K.a.ga) / 2,
- W = 3 * -Math.PI / 4,
- X = 0,
- le = 0,
- me = [],
- Y = 0,
- ne = 0,
- oe = 0,
- pe = 0,
- qe = K.a.fa,
- se = function () {
- bd = 10;
- for (var a = 0; 10 > a; ++a) me[a] = 0;
- fe = !1;
- W = 3 * -Math.PI / 4;
- oe = ne = Y = pe = le = X = 0;
- he = !0;
- ie = 0;
- qe = K.a.fa;
- re()
- }, re = function () {
- 0 < bd && (le = 0, X = 0.003, fe = !1)
- };
- var Z = 0,
- te = 0,
- ue = !0,
- ve = 0,
- we = [
- [72, -9, K.a.nb],
- [73, -7, K.a.ob],
- [71, -9, K.a.pb]
- ],
- xe = we.length,
- ye = [
- [K.a.Fb],
- [K.a.Gb],
- [K.a.Hb],
- [K.a.Ib],
- [K.a.Jb],
- [K.a.Kb],
- [K.a.Lb]
- ],
- ze = ye.length,
- Ae = Math.floor(ze + 60);
- var Be = null,
- Ce = null,
- $ = null,
- De = null,
- Ee = !0,
- Fe = !1,
- Ge = 0,
- He = 0,
- Ie = new lc("/logos/2013/bday13/background.jpg"),
- Ke = function () {
- var a = J = new Kc(Ce, De);
- if (N) {
- var b = pc(K, K.a.ka),
- c = b.width + 6,
- b = b.height + 6;
- Nc(a, new zb([612, 174, 612 + c, 174, 612 + c, 174 + b, 612, 174 + b]), Cc)
- }
- Nc(J, Lc, Je);
- a = p(J.handleEvent, J);
- I.listen(Be, ["mousedown", "touchstart"], a);
- I.listen(window, ["mousemove", "mouseup", "touchend", "touchmove"], a)
- }, Je = function (a) {
- switch (a) {
- case "mousedown":
- Le();
- break;
- case "mouseup":
- Me()
- }
- }, Ne = function () {
- for (var a = document.getElementsByTagName("input"),
- b = 0, c; c = a[b++];)
- if ("q" == c.name && c.value.match(/[^ ]/)) return !0;
- return !1
- }, Le = function (a) {
- if (a && a.I) {
- a = a.I();
- var b = a.keyCode;
- if (b) {
- if (32 != b || Ne()) return;
- a.preventDefault && a.preventDefault()
- }
- }
- Uc = !0;
- De && Hc(De);
- switch (P) {
- case 2:
- 0 < bd && 0 == Y && (W > -Math.PI / 8 && 0 <= X && (bd--, Dc(yc), le = -8E-5, X = 0, fe = !0), 0 == bd && (Ge = window.setTimeout(function () {
- $c(3);
- var a = J;
- Hd(Kd, a);
- Hd(Ld, a);
- window.gapi && !Yb && Hd(Md, a);
- Qc(J, Lc);
- Ec();
- Dc(Bc)
- }, 1E3)))
- }
- }, Me = function (a) {
- if (!(a && a.I && a.I().keyCode && 32 != a.I().keyCode)) switch (Uc = !1, P) {
- case 0:
- ue &&
- (ue = !1, te = 0.25, Fc()), qc(L), qc(uc)
- }
- }, Oe = function () {
- ud();
- qd();
- se();
- var a = J;
- Qc(a, Kd.i);
- Qc(a, Ld.i);
- window.gapi && !Yb && Qc(a, Md.i);
- Nc(J, Lc, Je);
- Fc();
- $c(2)
- }, Pe = function () {
- if (Ee) Fe = !1;
- else {
- Fe = !0;
- var a = fa(),
- b = a - He;
- He = a;
- b = Math.min(b, 100);
- $.clearRect(0, 0, Ce.width, Ce.height);
- var a = b,
- c = $;
- Wd(ae, c, a);
- Wd(be, c, a);
- Wd(ce, c, a);
- Wd(de, c, a);
- for (var c = b, a = $, d = rd, e = d.length, f = 0; f < e; f += 8) d[f + 1] < d[f + 7] ? (d[f + 3] += 0.02 * c, d[f + 2] *= 0.999, d[f + 4] += Math.PI / 3 * d[f + 5], d[f + 0] += d[f + 2], d[f + 1] += d[f + 3]) : 3 < d[f + 3] && (d[f + 1] = d[f + 7] - 1, d[f + 3] *= -0.5,
- d[f + 2] *= 0.5, d[f + 5] *= Math.random() - 0.5), a.save(), a.translate(d[f + 0], d[f + 1]), a.rotate(d[f + 4]), K.d(d[f + 6], a, 0, 0, 1, !0), a.restore();
- 0 < td && (sd -= c, 0 >= sd && (sd = 50, td--, c = [208 * Math.sin(-R) + 350, 208 * Math.cos(-R) + -117], d = 1E3 * S, e = Math.PI + R, rd.push(c[0], c[1], d * Math.cos(e), d * Math.sin(e), 0, Math.random() - 0.5, vd[Math.floor(Math.random() * vd.length)], 180 + 30 * (Math.random() - 0.5)), ad++));
- a.fillStyle = "#3d6aa3";
- a.font = "bold 20px arial";
- a.fillText("" + ad, 72, 19);
- Vc = Math.max(Vc, ad);
- K.d(K.a.Aa, a, 8, 32);
- a.fillStyle = "#eee";
- a.font =
- "12px arial";
- a.fillText("" + Vc, 84, 41);
- a = $;
- N && (c = K.a.ka, d = [615, 177], e = vc ? K.a.Ba : K.a.Ca, f = vc ? [620, 185] : [620, 183], wc && (d[1] += 3, f[1] += 3), K.d(c, a, d[0], d[1]), K.d(e, a, f[0], f[1]));
- a = b;
- c = $;
- pe += a;
- if (ge)
- for (d = 0; 10 > d; ++d) 1 > me[d] && (0 == d || 1 == me[d - 1]) && (me[d] = Math.min(me[d] + 0.007 * a, 1)), d < bd && (c.save(), c.globalAlpha = me[d], K.d(K.a.Da, c, 642 - 20 * d, 10, me[d], !0), c.restore());
- X += le * a;
- W += X * a;
- 0 > le && W < 3 * -Math.PI / 4 && (W = 3 * -Math.PI / 4, X = le = 0, qe = fe ? K.a.wa : K.a.fa, re());
- 0 < X && W > Math.PI / 4 && (W = Math.PI / 4);
- Y += ne * a;
- if (0 < ne && Y > oe || 0 > ne &&
- Y < oe) ne = 0, Y = oe;
- c.save();
- c.translate(Y, 0);
- d = W;
- ge || (d = Math.sin(pe / 300), ie -= a, 0 > ie && (ie = (he = !he) ? 150 : 1E3 * (2 + 2 * Math.random())));
- K.d(K.a.xa, c, 464 + 1.5 * d, 206);
- c.save();
- c.translate(474, 218);
- c.rotate((d + Math.PI / 4) / 20);
- K.d(ge ? K.a.va : K.a.ya, c, -26, -108);
- ge ? K.d(qe, c, -14, -80) : he && K.d(K.a.za, c, -12, -102);
- c.restore();
- ge && (c.save(), c.translate(474, 138), c.rotate(W), K.d(K.a.ga, c, -ke, -ee - 30), c.restore());
- c.restore();
- c = b;
- a = $;
- S += -1E-5 * Math.sin(R) * c;
- S -= 1E-4 * S * c;
- R += S * c;
- R = Math.max(-Math.PI / 2, Math.min(Math.PI / 2, R));
- a.save();
- jd = Math.min(0, jd + kd * c);
- a.translate(350, -117 + jd);
- a.rotate(R);
- a.beginPath();
- a.moveTo(0, 0);
- a.lineTo(0, 140);
- a.lineWidth = 2;
- a.strokeStyle = "#eeeeee";
- a.stroke();
- K.d(ld[nd], a, -dd, 140);
- c = 2 * nd;
- c > ed.length && (c = ed.length - 2);
- for (d = 0; d < fd.length; d++) {
- a.strokeStyle = fd[d];
- e = gd[d];
- a.beginPath();
- for (f = c; f < ed.length; f += 2) {
- var h = ed[f] + hd[d],
- l = ed[f + 1],
- m = 6E3 * S + id[d];
- a.moveTo(h, l);
- a.bezierCurveTo(h, l + 0.3 * e, h + 0.25 * m, l + 0.7 * e, h + m, l + e)
- }
- a.stroke()
- }
- a.restore();
- cd = Math.max(3, cd * (1 - 1E-4 * b));
- K.d(K.a.Ia, $, 0, 200);
- switch (P) {
- case 0:
- case 1:
- a =
- $;
- ve += b;
- K.d(K.a.qa, a, 217, Z);
- c = Uc ? 51 : 49;
- d = Uc ? 48 : 44;
- K.d(K.a.ra, a, 217 + c, Z + d);
- e = Math.floor(ve / 50 % Ae);
- e < ze && K.d(ye[e], a, 217 + c, Z + d);
- ue && (c = we[Math.floor(ve / 100 % xe)], K.d(c[2], a, 217 + c[0], Z + c[1]));
- Z += te * b;
- 224 < Z && (te = 0, Z = 224, Dc(xc), ae.k(), be.k(), ce.k(), de.k(), oe = 220, ne = 0.5);
- b = ae;
- 0 != b.d && b.d == b.a[0] && (kd = 0.25);
- 0 == jd && (Dc(xc), ae.i(), be.i(), ce.i(), de.i(), ge = !0, oe = 0, ne = -0.5, $c(2));
- break;
- case 2:
- a = $;
- 0 >= Rd || (d = K.a, c = Pd ? d.Ga : d.Ha, Yb && (c = Pd ? d.Ea : d.Fa), d = K.getWidth(c), Td = Math.min(30 + d, Math.max(0, Td + b * Ud)), Rd = Math.min(1,
- Math.max(0, Rd + b * Sd)), a.save(), a.globalAlpha = Rd, K.d(c, a, -d + Td, 50), a.restore());
- a = [208 * Math.sin(-R) + 350, 208 * Math.cos(-R) + -117];
- c = [Math.cos(W - Math.PI / 2) * ee + 474, Math.sin(W - Math.PI / 2) * ee + 138];
- b = a[0] - c[0];
- a = a[1] - c[1];
- if (80 > Math.sqrt(b * b + a * a) && fe) i: {
- for (Sd = -0.002, Ud = -0.5, window.clearInterval(Qd), cd = Math.min(10, cd + 5), S = Math.abs(S) + Math.abs(X / 10), fe = !1, b = Math.max(0, 1E3 * S - 1), b = Math.floor(b * b), Dc(19 > b ? zc : Ac), td += b, Q += b, b = 0; b < pd; b++)
- if (Q < od[b]) {
- nd = b;
- break i
- }
- nd = md - 1
- }
- break;
- case 3:
- b = $, uc.d(Od[25 > Q ? 0 : 100 > Q ? 1 : 180 >
- Q ? 2 : 3], b, 331, 116, 1, !0), Kd.d(b), window.gapi && !Yb && Md.d(b), Ld.d(b), b.fillStyle = "#fff", b.font = "bold 28px arial", b.fillText("" + Q, 543, 104)
- }
- dc(Pe)
- }
- };
- (function (a, b, c) {
- var d = function () {
- a();
- window.lol && window.lol()
- }, e = function () {
- Sc(d, b, c);
- Rc(d, b);
- d()
- };
- google && google.x ? google.x({
- id: "DOODLE"
- }, e) : e()
- })(function () {
- Be = document.getElementById("hplogo");
- Ce = document.getElementById("hplogoc");
- Be && Ce && Ce.getContext && ($ = Ce.getContext("2d")) && ($.a = !0, Fe = Ee = !1, Ge = 0, Kd = new Gd([546, 141, L.a.Ja], [547, 145, L.a.Ka], [546, 141, L.a.La], Oe), Ld = new Gd([495, 141, L.a.Ma], [496, 145, L.a.Na], [495, 141, L.a.Oa], bc), Md = new Gd([444, 141, L.a.Pa], [444, 145, L.a.Qa], [444, 141, L.a.Ra], Nd), $c(0),
- Wc(window.location.href), window.parent && window.parent.location && Wc(window.parent.location.href), ud(), qd(), se(), jd = -200, ge = !1, N && (M = new vb(["music-3"], "/logos/2013/bday13"), H = new ec("/logos/2013/bday13/sprite", void 0, 4)), ae = new Yd, be = new $d, ce = new Zd, de = new Xd, Z = 64, te = 0, ue = !0, ve = 0, Sd = 0.002, Ud = 0.5, Rd = 0.001, Qd = window.setInterval(Vd, 500), I = new O, I.listen(window, ["keydown"], Le), I.listen(window, ["keyup"], Me), He = fa(), mc(Ie), qc(K, function () {
- nc(Ie, function () {
- De = new Jc(6E4, function () {
- Ee = !0;
- Ec()
- }, function () {
- Ee = !1;
- if (2 == P && N && M) {
- var a = M,
- b = a.d["music-3"];
- b && b.loaded && wb(a, "music-3", b.currentTime);
- b && (b.loop = !0)
- }
- Fe || (He = fa(), Pe())
- });
- Be.style.background = "url(/logos/2013/bday13/background.jpg) no-repeat";
- Ke();
- Pe()
- })
- }))
- }, function () {
- Ee = !0;
- window.clearInterval(Qd);
- if (N && M) {
- var a = M,
- b;
- for (b in a.d) {
- var c = xb(a, b);
- c && c.loaded && (c.currentTime = 0)
- }
- }
- N && H && fc(H);
- N && M && M.M();
- N && H && H.M();
- window.clearTimeout(Ge);
- I && I.M();
- De && De.M()
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement