Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- function f(a) {
- throw a;
- }
- var i = void 0,
- j = !0,
- l = null,
- m = !1,
- n = window,
- aa = Infinity,
- p = document,
- q = Math,
- ba = Array,
- ca = encodeURI,
- r = Error,
- da = parseInt,
- ea = parseFloat,
- fa = String,
- ga = decodeURIComponent,
- ha = RegExp,
- P, ih, xh, Th, Uh, Vh, Wh, Xh, Yh, $h, ai, ei, gi, hi, ii, li, mi, ti, xi, yi, Di, Ri, Ti, Ui, hj, zj, wj, Dj, Lj, Oj, Qj, jk, Ak, Pk, Tl, Xl, $m, nn, on, vn, Gk, Xn, jo, lk;
- function ia(a, b) {
- return a.width = b
- }
- function ja(a, b) {
- return a.round = b
- }
- function ka(a, b) {
- return a.ceil = b
- }
- function la(a, b) {
- return a.floor = b
- }
- function ma(a, b) {
- return a.innerHTML = b
- }
- function u(a, b) {
- return a.value = b
- }
- function w(a, b) {
- return a.left = b
- }
- function na(a, b) {
- return a.screenX = b
- }
- function oa(a, b) {
- return a.screenY = b
- }
- function pa(a, b) {
- return a.handleEvent = b
- }
- function qa(a, b) {
- return a.type = b
- }
- function ra(a, b) {
- return a.name = b
- }
- function sa(a, b) {
- return a.clientX = b
- }
- function ta(a, b) {
- return a.clientY = b
- }
- function ua(a, b) {
- return a.stop = b
- }
- function va(a, b) {
- return a.length = b
- }
- function wa(a, b) {
- return a.className = b
- }
- function xa(a, b) {
- return a.view = b
- }
- function ya(a, b) {
- return a.target = b
- }
- function za(a, b) {
- return a.bottom = b
- }
- function Aa(a, b) {
- return a.contains = b
- }
- function Ba(a, b) {
- return a.execute = b
- }
- function Ca(a, b) {
- return a.height = b
- }
- function Da(a, b) {
- return a.right = b
- }
- var Ea = "appendChild",
- x = "push",
- Fa = "getBoundingClientRect",
- Ga = "shift",
- Ha = "exec",
- Ia = "clearTimeout",
- Ja = "input",
- Ka = "width",
- z = "round",
- La = "slice",
- A = "replace",
- Ma = "nodeType",
- Na = "ceil",
- Oa = "floor",
- Pa = "getElementById",
- Qa = "offsetWidth",
- Ra = "concat",
- Sa = "listener",
- Ta = "value",
- Ua = "delay",
- Va = "targetTouches",
- C = "indexOf",
- D = "dispatchEvent",
- Wa = "frequency",
- Xa = "gain",
- E = "left",
- Ya = "getElementsByClassName",
- Za = "setValueAtTime",
- $a = "screenX",
- ab = "screenY",
- bb = "defaultValue",
- cb = "getBoxObjectFor",
- db = "charCode",
- eb = "opera",
- fb = "querySelector",
- gb = "createElement",
- hb = "keyCode",
- F = "addEventListener",
- ib = "setAttribute",
- jb = "handleEvent",
- G = "type",
- kb = "defaultView",
- lb = "offset",
- mb = "name",
- nb = "contentWindow",
- ob = "keys",
- pb = "clientX",
- qb = "clientY",
- rb = "documentElement",
- sb = "stop",
- H = "length",
- tb = "propertyIsEnumerable",
- I = "prototype",
- ub = "size",
- vb = "clientWidth",
- wb = "setTimeout",
- xb = "document",
- yb = "removeEventListener",
- zb = "split",
- Ab = "offsetParent",
- Bb = "location",
- Cb = "offsetLeft",
- Db = "noteOn",
- J = "style",
- K = "body",
- Eb = "view",
- Fb = "removeChild",
- Gb = "delayTime",
- Hb = "disconnect",
- Ib = "target",
- L = "call",
- Jb = "start",
- Kb = "querySelectorAll",
- Lb = "clientHeight",
- Mb = "compatMode",
- Nb = "bottom",
- Ob = "currentStyle",
- Pb = "href",
- Qb = "apply",
- Rb = "noteOff",
- Sb = "navigator",
- Tb = "parentNode",
- M = "connect",
- Ub = "execute",
- Vb = "offsetTop",
- Wb = "height",
- Xb = "splice",
- Yb = "offsetHeight",
- Zb = "join",
- $b = "right",
- N = "",
- ac = "\n",
- bc = " ",
- cc = ' name="',
- dc = ' type="',
- ec = '"',
- fc = "#",
- gc = "$",
- hc = "$$$$",
- ic = "%",
- jc = "&",
- kc = "&",
- lc = ">",
- mc = "<",
- nc = "&p[images][",
- oc = "&p[summary]=Chrome+Audio+Experiment+for+touch+devices",
- pc = "&p[title]=WebSID, in-browser Commodore 64 synthesizer by igorski",
- qc = "&p[url]=",
- rc = """,
- sc = "&text=",
- tc = "(",
- uc = "(.*)",
- vc = "(?:",
- wc = "(\\d*)(\\D*)",
- xc = "(\\w+)",
- yc = "(^",
- zc = ")",
- Ac = ")([a-z])",
- Bc = ")?",
- Cc = "*",
- Dc = "-moz-transform",
- Ec = "-ms-transform",
- Fc = "-o-transform",
- Gc = "-webkit-transform",
- Hc = ".",
- Ic = ".case",
- Jc = "/",
- Kc = "/unsupported",
- Lc = "0",
- Mc = "2",
- Nc = "3",
- Oc = "5",
- Pc = "525",
- Qc = "532.0",
- Rc = "6",
- Sc = "7",
- Tc = "8",
- Uc = "9",
- Vc = ":",
- Wc = ": ",
- Xc = ";",
- Yc = "<",
- Zc = '<div id="audio"><div id="title"><h1>WebSID</h1></div><div id="record-button" style="display: none;"><span>record</span> output</div><div id="c64"><div id="logo"><div id="text">commodore</div><div id="rainbow"><span class="first"><\!-- x --\></span><span class="second"><\!-- x --\></span><span class="third"><\!-- x --\></span><span class="fourth"><\!-- x --\></span><span class="fifth"><\!-- x --\></span></div><div id="number">64</div></div><div id="power"><span>power</span><span id="light"><\!-- x --\></span></div><div id="main-board"></div></div><div id="effects-units"><div class="effects-unit first" id="filter"><div class="connector"><\!-- x --\></div><div class="case"><h3 class="device-name">filter</h3></div></div><div class="effects-unit second" id="envelopes"><div class="connector"><\!-- x --\></div><div class="case"><h3 class="device-name">envelopes / volume</h3></div></div><div class="effects-unit third" id="delay"><div class="connector"><\!-- x --\></div><div class="case"><h3 class="device-name">echo</h3></div></div></div><div id="explanation"><p>Getting rid of all those nasty characters and function keys, this Commodore 64 is equipped with twin double octave keyboards instead!<br /><br />The keyboards are both <strong>polyphonic</strong>, but note that the upper one plays<strong> arpeggiated</strong> chords true to the limitations of the original C64 that gave it that characteristic sound, you\'ll recognize it once you hit more than three notes simultaneously...<br /><br />Things can get nice and bass-heavy so <strong>headphones</strong> are recommended.</p><p>Using a touch screen device you can play the keyboard by using your fingers, on a desktop you can use a mouse or better yet : your keyboard to control multiple notes at once, just imagine yourself being Ray Manzarek or that dude in ELP.<br /><br />Use the key characters displayed on top of the keyboard and transpose the octave range up and down for the upper keyboard using the <strong>- </strong>and <strong>+</strong> keys, and for the lower keyboard transpose up/down using <strong>[</strong> and <strong>]</strong>.</p><p>This is a Chrome experiment using the <strong>WebAudio API</strong> for actual sound generation and synthesis inside your web browser. In other words: <u>no samples</u> were used, it\'s all math. If only the high school teachers mentioned math was good for bass lines!<br /><br />Other technologies used are JavaScript and CSS3.<br /><br />The awesome C64 font was made by <a href="http://www.devincook.com/" target="_blank">Devin Cook</a>.</p></div></div>',
- $c = '<div id="audio"><h1>Unsupported browser</h1><p>Sadly your browser isn\'t supported by this experiment. Supported browsers are Google Chrome and (Mobile) Safari 6.0 and higher.</p><p>You can <a href="http://www.google.com/chrome" target="_blank" title="Download Google Chrome">get Google Chrome</a> for free by following this link.</p></div>',
- ad = '<div id="footer"><ul id="social-share"><li><span id="twitter"><\!-- x --\></span></li><li><span id="facebook"><\!-- x --\></span></li></ul><div id="about"><p>This is a Chrome Experiment by <a href="http://www.igorski.nl" title="Igorski website">igorski.nl</a></p></div></div>',
- bd = ">",
- cd = "?deeplink=",
- dd = "A",
- ed = "A#",
- fd = "AudioContext",
- gd = "B",
- hd = "C",
- id = "C#",
- jd = "CSS1Compat",
- kd = "Chrome Audio Experiment for touch devices",
- ld = "Component already rendered",
- md = "D",
- nd = "D#",
- od = "DIV",
- pd = "DOMMouseScroll",
- qd = "E",
- rd = "Error while loading script ",
- sd = "F",
- td = "F#",
- ud = "G",
- vd = "G#",
- wd = "H",
- xd = "H3",
- yd = "HEAD",
- zd = "I",
- Ad = "Invalid listener argument",
- Bd = "J",
- Cd = "Jsloader error (code #",
- Dd = "L",
- Ed = "M",
- Fd = "MSIE",
- Gd = "MouseEvent",
- Hd = "Moz",
- Id = "N",
- Jd = "O",
- Kd = "P",
- Ld = "Q",
- Md = "R",
- Nd = "S",
- Od = "SCRIPT",
- Pd = "SN::su",
- Qd =
- "SPAN",
- Rd = "Style",
- Sd = "T",
- Td = "TR",
- Ud = "Timeout reached for loading script ",
- Vd = "U",
- Wd = "UTF-8",
- Xd = "Unable to set parent component",
- Yd = "V",
- Zd = "W",
- $d = "Webkit",
- ae = "Width",
- be = "X",
- ce = "Y",
- de = "Z",
- ee = "[",
- fe = "[object Array]",
- ge = "[object Function]",
- he = "[object Window]",
- ie = "\\$1",
- je = "\\s",
- ke = "\\x08",
- le = "] ",
- me = "]+",
- ne = "]=",
- oe = "^",
- pe = "_blank",
- qe = "absolute",
- re = "animate",
- se = "application",
- te = "aria-",
- ue = "aria-valuemax",
- ve = "aria-valuemin",
- we = "aria-valuenow",
- xe = "array",
- ye = "attk",
- ze = "b",
- Ae = "beforedrag",
- Be = "begin",
- Ce = "black",
- De = "blur",
- Ee = "borderBottom",
- Fe = "borderBottomWidth",
- Ge = "borderLeft",
- He = "borderLeftWidth",
- Ie = "borderRight",
- Je = "borderRightWidth",
- Ke = "borderTop",
- Le = "borderTopWidth",
- Me = "button",
- Ne = "call",
- Oe = "case",
- Pe = "change",
- Qe = "class",
- Re = "click",
- Se = "complete",
- Te = "data-",
- Ue = "debug",
- Ve = "delay",
- We = "destroy",
- Xe = "direction",
- Ye = "display",
- Ze = "div",
- $e = "dpth",
- af = "drag",
- bf = "earlycancel",
- cf = "enable",
- df = "end",
- ef = "envelopes",
- ff = "error",
- gf = "event",
- hf = "facebook",
- jf = "fbck",
- kf = "filter",
- lf = "finish",
- mf = "first",
- nf = "fixed",
- of = "float",
- pf = "for",
- qf = "freq",
- rf = "function",
- sf = "g",
- tf = "goog-slider-disabled",
- uf = "goog-slider-dragging",
- vf = "goog-slider-horizontal",
- wf = "goog-slider-thumb",
- xf = "goog-slider-thumb-dragging",
- yf = "goog-slider-vertical",
- zf = "h_",
- Af = "hashchange",
- Bf = "hidden",
- Cf = "history_iframe",
- Df = "history_state",
- Ef = "http://twitter.com/share?url=",
- Ff = "http://www.igorski.nl/assets/experiments/websid/logo.png",
- Gf = "http://www.igorski.nl/experiment/websid",
- Hf = "https",
- If = "https:///",
- Jf = "https://www.facebook.com/sharer/sharer.php?s=100",
- Kf =
- "info",
- Lf = "inline",
- Mf = 'javascript:""',
- Nf = "key",
- Of = "key ",
- Pf = "keyboard octave-amount-",
- Qf = "keydown",
- Rf = "keypress",
- Sf = "keyup",
- Tf = "left",
- Uf = "lfo",
- Vf = "load",
- Wf = "loaded",
- Xf = "losecapture",
- Yf = "main-board",
- Zf = "mousedown",
- $f = "mousemove",
- ag = "mouseup",
- bg = "mousewheel",
- cg = "ms",
- dg = "native code",
- eg = "navigate",
- fg = "none",
- gg = "note_",
- hg = "null",
- ig = "number",
- jg = "object",
- kg = "on",
- lg = "ontouchstart",
- mg = "orientationchange",
- ng = "pageshow",
- og = "play",
- pg = "position",
- qg = "px",
- rg = "record-button",
- sg = "rel",
- tg = "relative",
- ug = "replace",
- vg = "res",
- wg = "resize",
- xg = "resume",
- yg = "right",
- zg = "role",
- Ag = "routeExpired",
- Bg = "rtl",
- Cg = "s] ",
- Dg = "scroll",
- Eg = "slider",
- Fg = "slider ",
- Gg = "spd",
- Hg = "splice",
- Ig = 'src="',
- Jg = "start",
- Kg = "static",
- Lg = "stop",
- Mg = "string",
- Ng = "style",
- Og = "text/html",
- Pg = "text/javascript",
- Qg = "time",
- Rg = "touchcancel",
- Sg = "touchend",
- Tg = "touchmove",
- Ug = "touchstart",
- Vg = "track",
- Wg = "transform",
- Xg = "twitter",
- Yg = "vertical",
- Zg = "vol",
- $g = "warn",
- ah = "white",
- bh = "window",
- ch = "wrapper",
- dh = "wrapper footer-wrapper",
- eh = "zSoyz",
- fh = "|[";
- function O() {
- return function () {}
- }
- function gh(a) {
- return function (b) {
- this[a] = b
- }
- }
- function hh(a) {
- return function () {
- return this[a]
- }
- }
- ih = this;
- function jh() {}
- function kh(a) {
- a.t = function () {
- return a.bc ? a.bc : a.bc = new a
- }
- }
- function lh(a) {
- var b = typeof a,
- c;
- if (b == jg)
- if (a) {
- if (a instanceof ba) return xe;
- if (a instanceof Object) return b;
- c = Object[I].toString[L](a);
- if (c == he) return jg;
- if (c == fe || typeof a[H] == ig && "undefined" != typeof a[Xb] && "undefined" != typeof a[tb] && !a[tb](Hg)) return xe;
- if (c == ge || "undefined" != typeof a[L] && "undefined" != typeof a[tb] && !a[tb](Ne)) return rf
- } else return hg;
- else if (b == rf && "undefined" == typeof a[L]) return jg;
- return b
- }
- function mh(a) {
- return a !== i
- }
- function nh(a) {
- return lh(a) == xe
- }
- function oh(a) {
- var b = lh(a);
- return b == xe || b == jg && typeof a[H] == ig
- }
- function Q(a) {
- return typeof a == Mg
- }
- function ph(a) {
- return lh(a) == rf
- }
- function qh(a) {
- var b = typeof a;
- return b == jg && a != l || b == rf
- }
- function rh(a) {
- return a[sh] || (a[sh] = ++th)
- }
- var sh = "closure_uid_" + (1E9 * q.random() >>> 0),
- th = 0;
- function uh(a, b, c) {
- return a[L][Qb](a.bind, arguments)
- }
- function vh(a, b, c) {
- a || f(r());
- if (2 < arguments[H]) {
- var d = ba[I][La][L](arguments, 2);
- return function () {
- var c = ba[I][La][L](arguments);
- ba[I].unshift[Qb](c, d);
- return a[Qb](b, c)
- }
- }
- return function () {
- return a[Qb](b, arguments)
- }
- }
- function R(a, b, c) {
- R = Function[I].bind && -1 != Function[I].bind.toString()[C](dg) ? uh : vh;
- return R[Qb](l, arguments)
- }
- function wh(a, b) {
- var c = ba[I][La][L](arguments, 1);
- return function () {
- var b = ba[I][La][L](arguments);
- b.unshift[Qb](b, c);
- return a[Qb](this, b)
- }
- }
- xh = Date.now || function () {
- return +new Date
- };
- function S(a, b) {
- function c() {}
- c.prototype = b[I];
- a.i = b[I];
- a.prototype = new c
- };
- function T() {
- 0 != yh && (zh[rh(this)] = this)
- }
- var yh = 0,
- zh = {};
- T[I].Gb = m;
- T[I].cc = hh("Gb");
- T[I].m = function () {
- if (!this.Gb && (this.Gb = j, this.k(), 0 != yh)) {
- var a = rh(this);
- delete zh[a]
- }
- };
- T[I].k = function () {
- if (this.ia)
- for (; this.ia[H];) this.ia[Ga]()()
- };
- function Ah(a) {
- a && typeof a.m == rf && a.m()
- }
- function Bh(a) {
- for (var b = 0, c = arguments[H], d; b < c; ++b) d = arguments[b], oh(d) ? Bh[Qb](l, d) : Ah(d)
- };
- function Ch(a) {
- r.captureStackTrace ? r.captureStackTrace(this, Ch) : this.stack = r().stack || N;
- a && (this.message = fa(a))
- }
- S(Ch, r);
- ra(Ch[I], "CustomError");
- function Dh(a, b) {
- for (var c = 1, d; c < arguments[H]; c++) d = fa(arguments[c])[A](/\$/g, hc), a = a[A](/\%s/, d);
- return a
- }
- function Eh(a) {
- if (!Fh.test(a)) return a; - 1 != a[C](jc) && (a = a[A](Gh, kc)); - 1 != a[C](Yc) && (a = a[A](Hh, mc)); - 1 != a[C](bd) && (a = a[A](Ih, lc)); - 1 != a[C](ec) && (a = a[A](Jh, rc));
- return a
- }
- var Gh = /&/g,
- Hh = /</g,
- Ih = />/g,
- Jh = /\"/g,
- Fh = /[&<>\"]/;
- function Kh(a) {
- return fa(a)[A](/([-()\[\]{}+?*.$\^|,:#<!\\])/g, ie)[A](/\x08/g, ke)
- };
- var Lh = ba[I],
- Mh = Lh[C] ? function (a, b, c) {
- return Lh[C][L](a, b, c)
- } : function (a, b, c) {
- c = c == l ? 0 : 0 > c ? q.max(0, a[H] + c) : c;
- if (Q(a)) return !Q(b) || 1 != b[H] ? -1 : a[C](b, c);
- for (; c < a[H]; c++)
- if (c in a && a[c] === b) return c;
- return -1
- }, Nh = Lh.forEach ? function (a, b, c) {
- Lh.forEach[L](a, b, c)
- } : function (a, b, c) {
- for (var d = a[H], e = Q(a) ? a[zb](N) : a, g = 0; g < d; g++) g in e && b[L](c, e[g], g, a)
- }, Oh = Lh.filter ? function (a, b, c) {
- return Lh.filter[L](a, b, c)
- } : function (a, b, c) {
- for (var d = a[H], e = [], g = 0, h = Q(a) ? a[zb](N) : a, k = 0, s; k < d; k++) k in h && (s = h[k], b[L](c, s, k,
- a) && (e[g++] = s));
- return e
- }, Ph = Lh.some ? function (a, b, c) {
- return Lh.some[L](a, b, c)
- } : function (a, b, c) {
- for (var d = a[H], e = Q(a) ? a[zb](N) : a, g = 0; g < d; g++)
- if (g in e && b[L](c, e[g], g, a)) return j;
- return m
- };
- function Qh(a, b) {
- var c = Mh(a, b);
- 0 <= c && Lh[Xb][L](a, c, 1)
- }
- function Rh(a, b, c, d) {
- Lh[Xb][Qb](a, Sh(arguments, 1))
- }
- function Sh(a, b, c) {
- return 2 >= arguments[H] ? Lh[La][L](a, b) : Lh[La][L](a, b, c)
- };
- function Zh() {
- return ih[Sb] ? ih[Sb].userAgent : l
- }
- Wh = Vh = Uh = Th = m;
- if ($h = Zh()) ai = ih[Sb], Th = 0 == $h[C]("Opera"), Uh = !Th && -1 != $h[C](Fd), Vh = !Th && -1 != $h[C]("WebKit"), Wh = !Th && !Vh && "Gecko" == ai.product;
- var bi = Th,
- U = Uh,
- V = Wh,
- W = Vh,
- ci, di = ih[Sb];
- ci = di && di.platform || N;
- Xh = -1 != ci[C]("Mac");
- Yh = -1 != ci[C]("Win");
- ei = -1 != ci[C]("Linux");
- function fi() {
- var a = ih[xb];
- return a ? a.documentMode : i
- }
- a: {
- hi = N;
- if (bi && ih[eb]) var ji = ih[eb].version,
- hi = typeof ji == rf ? ji() : ji;
- else if (V ? ii = /rv\:([^\);]+)(\)|;)/ : U ? ii = /MSIE\s+([^\);]+)(\)|;)/ : W && (ii = /WebKit\/(\S+)/), ii) var ki = ii[Ha](Zh()),
- hi = ki ? ki[1] : N;
- if (U && (li = fi(), li > ea(hi))) {
- gi = fa(li);
- break a
- }
- gi = hi
- }
- mi = {};
- function X(a) {
- var b;
- if (!(b = mi[a])) {
- b = 0;
- for (var c = fa(gi)[A](/^[\s\xa0]+|[\s\xa0]+$/g, N)[zb](Hc), d = fa(a)[A](/^[\s\xa0]+|[\s\xa0]+$/g, N)[zb](Hc), e = q.max(c[H], d[H]), g = 0; 0 == b && g < e; g++) {
- var h = c[g] || N,
- k = d[g] || N,
- s = ha(wc, sf),
- v = ha(wc, sf);
- do {
- var t = s[Ha](h) || [N, N, N],
- y = v[Ha](k) || [N, N, N];
- if (0 == t[0][H] && 0 == y[0][H]) break;
- b = ((0 == t[1][H] ? 0 : da(t[1], 10)) < (0 == y[1][H] ? 0 : da(y[1], 10)) ? -1 : (0 == t[1][H] ? 0 : da(t[1], 10)) > (0 == y[1][H] ? 0 : da(y[1], 10)) ? 1 : 0) || ((0 == t[2][H]) < (0 == y[2][H]) ? -1 : (0 == t[2][H]) > (0 == y[2][H]) ? 1 : 0) || (t[2] < y[2] ? -1 :
- t[2] > y[2] ? 1 : 0)
- } while (0 == b)
- }
- b = mi[a] = 0 <= b
- }
- return b
- }
- function ni(a) {
- return U && oi >= a
- }
- var pi = ih[xb],
- oi = !pi || !U ? i : fi() || (pi[Mb] == jd ? da(gi, 10) : 5);
- var qi = !U || ni(9),
- ri = !U || ni(9),
- si = U && !X(Uc);
- !W || X("528");
- V && X("1.9b") || U && X(Tc) || bi && X("9.5") || W && X("528");
- V && !X(Tc) || U && X(Uc);
- function Y(a, b) {
- qa(this, a);
- ya(this, b);
- this.a = this[Ib]
- }
- Y[I].m = O();
- Y[I].b = m;
- Y[I].c = j;
- Y[I].N = function () {
- this.c = m
- };
- ti = {
- dd: Re,
- md: "dblclick",
- Id: Zf,
- Md: ag,
- Ld: "mouseover",
- Kd: "mouseout",
- Jd: $f,
- le: "selectstart",
- Dd: Rf,
- Cd: Qf,
- Ed: Sf,
- bd: De,
- wd: "focus",
- nd: "deactivate",
- xd: U ? "focusin" : "DOMFocusIn",
- yd: U ? "focusout" : "DOMFocusOut",
- cd: Pe,
- ke: "select",
- me: "submit",
- Bd: "input",
- ge: "propertychange",
- td: "dragstart",
- od: af,
- qd: "dragenter",
- sd: "dragover",
- rd: "dragleave",
- ud: "drop",
- pd: "dragend",
- re: Ug,
- qe: Tg,
- pe: Sg,
- oe: Rg,
- ad: "beforeunload",
- jd: "contextmenu",
- vd: ff,
- Ad: "help",
- Fd: Vf,
- Gd: Xf,
- he: "readystatechange",
- ie: wg,
- je: Dg,
- te: "unload",
- zd: Af,
- ce: "pagehide",
- de: ng,
- fe: "popstate",
- kd: "copy",
- ee: "paste",
- ld: "cut",
- Yc: "beforecopy",
- Zc: "beforecut",
- $c: "beforepaste",
- be: "online",
- ae: "offline",
- Hd: "message",
- hd: "connect",
- se: W ? "webkitTransitionEnd" : bi ? "oTransitionEnd" : "transitionend",
- Nd: "MSGestureChange",
- Od: "MSGestureEnd",
- Pd: "MSGestureHold",
- Qd: "MSGestureStart",
- Rd: "MSGestureTap",
- Sd: "MSGotPointerCapture",
- Td: "MSInertiaStart",
- Ud: "MSLostPointerCapture",
- Vd: "MSPointerCancel",
- Wd: "MSPointerDown",
- Xd: "MSPointerMove",
- Zd: "MSPointerOver",
- Yd: "MSPointerOut",
- $d: "MSPointerUp",
- ne: "textinput",
- fd: "compositionstart",
- gd: "compositionupdate",
- ed: "compositionend"
- };
- function ui(a) {
- ui[bc](a);
- return a
- }
- ui[bc] = jh;
- function vi(a, b) {
- a && wi(this, a, b)
- }
- S(vi, Y);
- xi = [1, 4, 2];
- P = vi[I];
- ya(P, l);
- sa(P, 0);
- ta(P, 0);
- na(P, 0);
- oa(P, 0);
- P.K = 0;
- P.xb = 0;
- P.Ia = m;
- P.ga = m;
- P.ha = m;
- P.yb = m;
- P.v = l;
- function wi(a, b, c) {
- var d = qa(a, b[G]);
- Y[L](a, d);
- ya(a, b[Ib] || b.srcElement);
- a.a = c;
- if ((c = b.relatedTarget) && V) try {
- ui(c.nodeName)
- } catch (e) {}
- sa(a, b[pb] !== i ? b[pb] : b.pageX);
- ta(a, b[qb] !== i ? b[qb] : b.pageY);
- na(a, b[$a] || 0);
- oa(a, b[ab] || 0);
- a.K = b[hb] || 0;
- a.xb = b[db] || (d == Rf ? b[hb] : 0);
- a.Ia = b.ctrlKey;
- a.ga = b.altKey;
- a.ha = b.shiftKey;
- a.yb = b.metaKey;
- a.v = b;
- b.defaultPrevented && a.N();
- delete a.b
- }
- P.N = function () {
- vi.i.N[L](this);
- var a = this.v;
- if (a.preventDefault) a.preventDefault();
- else if (a.returnValue = m, si) try {
- if (a.ctrlKey || 112 <= a[hb] && 123 >= a[hb]) a.keyCode = -1
- } catch (b) {}
- };
- P.yc = hh("v");
- yi = 0;
- function zi() {}
- zi[I].key = 0;
- zi[I].Z = m;
- zi[I].Wa = m;
- pa(zi[I], function (a) {
- return this.a ? this[Sa][L](this.$a || this.src, a) : this[Sa][jb][L](this[Sa], a)
- });
- function Ai(a, b) {
- for (var c in a) b[L](i, a[c], c, a)
- }
- function Bi() {
- var a = Ci,
- b;
- for (b in a) return m;
- return j
- }
- Di = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
- function Ei(a, b) {
- for (var c, d, e = 1, g; e < arguments[H]; e++) {
- d = arguments[e];
- for (c in d) a[c] = d[c];
- for (g = 0; g < Di[H]; g++) c = Di[g], Object[I].hasOwnProperty[L](d, c) && (a[c] = d[c])
- }
- };
- var Fi = {}, Gi = {}, Hi = {}, Ii = {};
- function Ji(a, b, c, d, e) {
- if (nh(b)) {
- for (var g = 0, h, s; g < b[H]; g++) Ji(a, b[g], c, d, e);
- return l
- }
- a: {
- b || f(r("Invalid event type"));
- d = !! d;
- h = Gi;
- b in h || (h[b] = {
- J: 0,
- B: 0
- });
- h = h[b];
- d in h || (h[d] = {
- J: 0,
- B: 0
- }, h.J++);
- var h = h[d],
- g = rh(a),
- k;
- h.B++;
- if (h[g]) {
- k = h[g];
- for (s = 0; s < k[H]; s++)
- if (h = k[s], h[Sa] == c && h.$a == e) {
- if (h.Z) break;
- k[s].Wa = m;
- a = k[s];
- break a
- }
- } else k = h[g] = [], h.J++;
- var v = Ki,
- t = ri ? function (a) {
- return v[L](t.src, t[Sa], a)
- } : function (a) {
- a = v[L](t.src, t[Sa], a);
- if (!a) return a
- }, s = t,
- y = h = new zi;
- ph(c) ? y.a = j : c && c[jb] && ph(c[jb]) ? y.a = m :
- f(r(Ad));
- y.listener = c;
- y.b = s;
- y.src = a;
- qa(y, b);
- y.capture = !! d;
- y.$a = e;
- y.Wa = m;
- y.key = ++yi;
- y.Z = m;
- h.Wa = m;
- s.src = a;
- s.listener = h;
- k[x](h);
- Hi[g] || (Hi[g] = []);
- Hi[g][x](h);
- a[F] ? (a == ih || !a.Tb) && a[F](b, s, d) : a.attachEvent(b in Ii ? Ii[b] : Ii[b] = kg + b, s);
- a = h
- }
- b = a.key;
- Fi[b] = a;
- return b
- }
- function Li(a, b, c, d, e) {
- if (nh(b))
- for (var g = 0; g < b[H]; g++) Li(a, b[g], c, d, e);
- else if (d = !! d, a = Mi(a, b, d))
- for (g = 0; g < a[H]; g++)
- if (a[g][Sa] == c && a[g].capture == d && a[g].$a == e) {
- Ni(a[g].key);
- break
- }
- }
- function Ni(a) {
- var b = Fi[a];
- if (!b || b.Z) return m;
- var c = b.src,
- d = b[G],
- e = b.b,
- g = b.capture;
- c[yb] ? (c == ih || !c.Tb) && c[yb](d, e, g) : c.detachEvent && c.detachEvent(d in Ii ? Ii[d] : Ii[d] = kg + d, e);
- c = rh(c);
- Hi[c] && (e = Hi[c], Qh(e, b), 0 == e[H] && delete Hi[c]);
- b.Z = j;
- if (b = Gi[d][g][c]) b.ec = j, Oi(d, g, c, b);
- delete Fi[a];
- return j
- }
- function Oi(a, b, c, d) {
- if (!d.gb && d.ec) {
- for (var e = 0, g = 0; e < d[H]; e++) d[e].Z ? d[e].b.src = l : (e != g && (d[g] = d[e]), g++);
- va(d, g);
- d.ec = m;
- 0 == g && (delete Gi[a][b][c], Gi[a][b].J--, 0 == Gi[a][b].J && (delete Gi[a][b], Gi[a].J--), 0 == Gi[a].J && delete Gi[a])
- }
- }
- function Mi(a, b, c) {
- var d = Gi;
- return b in d && (d = d[b], c in d && (d = d[c], a = rh(a), d[a])) ? d[a] : l
- }
- function Pi(a, b, c, d, e) {
- var g = 1,
- t;
- b = rh(b);
- if (a[b]) {
- var h = --a.B,
- k = a[b];
- k.gb ? k.gb++ : k.gb = 1;
- try {
- for (var s = k[H], v = 0; v < s; v++) t = k[v], t && !t.Z && (g &= Qi(t, e) !== m)
- } finally {
- a.B = q.max(h, a.B), k.gb--, Oi(c, d, b, k)
- }
- }
- return Boolean(g)
- }
- function Qi(a, b) {
- a.Wa && Ni(a.key);
- return a[jb](b)
- }
- function Ki(a, b) {
- if (a.Z) return j;
- var c = a[G],
- d = Gi,
- d, e, g, h, k, s, B;
- if (!(c in d)) return j;
- d = d[c];
- if (!ri) {
- if (!(h = b)) a: {
- h = [bh, gf];
- for (k = ih; e = h[Ga]();)
- if (k[e] != l) k = k[e];
- else {
- h = l;
- break a
- }
- h = k
- }
- e = h;
- h = j in d;
- k = m in d;
- if (h) {
- if (0 > e[hb] || e.returnValue != i) return j;
- a: {
- s = m;
- if (0 == e[hb]) try {
- e.keyCode = -1;
- break a
- } catch (v) {
- s = j
- }
- if (s || e.returnValue == i) e.returnValue = j
- }
- }
- s = new vi;
- wi(s, e, this);
- e = j;
- try {
- if (h) {
- for (var t = [], y = s.a; y; y = y[Tb]) t[x](y);
- g = d[j];
- g.B = g.J;
- for (B = t[H] - 1; !s.b && 0 <= B && g.B; B--) s.a = t[B], e &= Pi(g, t[B], c, j, s);
- if (k) {
- g =
- d[m];
- g.B = g.J;
- for (B = 0; !s.b && B < t[H] && g.B; B++) s.a = t[B], e &= Pi(g, t[B], c, m, s)
- }
- } else e = Qi(a, s)
- } finally {
- t && va(t, 0)
- }
- return e
- }
- c = new vi(b, this);
- return e = Qi(a, c)
- }
- Ri = 0;
- function Si() {
- T[L](this)
- }
- S(Si, T);
- P = Si[I];
- P.Tb = j;
- P.lb = l;
- P.Nb = gh("lb");
- P.addEventListener = function (a, b, c, d) {
- Ji(this, a, b, c, d)
- };
- P.removeEventListener = function (a, b, c, d) {
- Li(this, a, b, c, d)
- };
- P.dispatchEvent = function (a) {
- var b = a[G] || a,
- c = Gi,
- d, h;
- if (b in c) {
- Q(a) ? a = new Y(a, this) : a instanceof Y ? ya(a, a[Ib] || this) : (d = a, a = new Y(b, this), Ei(a, d));
- var d = 1,
- e, c = c[b],
- b = j in c,
- g;
- if (b) {
- e = [];
- for (g = this; g; g = g.lb) e[x](g);
- g = c[j];
- g.B = g.J;
- for (h = e[H] - 1; !a.b && 0 <= h && g.B; h--) a.a = e[h], d &= Pi(g, e[h], a[G], j, a) && a.c != m
- }
- if (m in c)
- if (g = c[m], g.B = g.J, b)
- for (h = 0; !a.b && h < e[H] && g.B; h++) a.a = e[h], d &= Pi(g, e[h], a[G], m, a) && a.c != m;
- else
- for (e = this; !a.b && e && g.B; e = e.lb) a.a = e, d &= Pi(g, e, a[G], m, a) && a.c != m;
- a = Boolean(d)
- } else a = j;
- return a
- };
- P.k = function () {
- Si.i.k[L](this);
- var a = 0,
- b;
- if (this != l) {
- if (b = rh(this), Hi[b])
- for (var b = Hi[b], c = b[H] - 1; 0 <= c; c--) Ni(b[c].key), a++
- } else Ai(Fi, function (b, c) {
- Ni(c);
- a++
- });
- this.lb = l
- };
- Ui = !U || ni(9);
- !V && !U || U && ni(9) || V && X("1.9.1");
- U && X(Uc);
- function Vi(a) {
- a = a.className;
- return Q(a) && a.match(/\S+/g) || []
- }
- function Wi(a, b) {
- for (var c = Vi(a), d = Sh(arguments, 1), e = c[H] + d[H], g = c, h = 0; h < d[H]; h++) 0 <= Mh(g, d[h]) || g[x](d[h]);
- wa(a, c[Zb](bc));
- return c[H] == e
- }
- function Xi(a, b) {
- var c = Vi(a),
- d = Sh(arguments, 1),
- c = Oh(c, function (a) {
- return !(0 <= Mh(d, a))
- });
- wa(a, c[Zb](bc))
- };
- function Yi(a, b, c) {
- return q.min(q.max(a, b), c)
- };
- function Zi(a, b) {
- this.x = mh(a) ? a : 0;
- this.y = mh(b) ? b : 0
- }
- Zi[I].Ea = function () {
- return new Zi(this.x, this.y)
- };
- ka(Zi[I], function () {
- this.x = q[Na](this.x);
- this.y = q[Na](this.y);
- return this
- });
- la(Zi[I], function () {
- this.x = q[Oa](this.x);
- this.y = q[Oa](this.y);
- return this
- });
- ja(Zi[I], function () {
- this.x = q[z](this.x);
- this.y = q[z](this.y);
- return this
- });
- function $i(a, b) {
- ia(this, a);
- Ca(this, b)
- }
- $i[I].Ea = function () {
- return new $i(this[Ka], this[Wb])
- };
- ka($i[I], function () {
- ia(this, q[Na](this[Ka]));
- Ca(this, q[Na](this[Wb]));
- return this
- });
- la($i[I], function () {
- ia(this, q[Oa](this[Ka]));
- Ca(this, q[Oa](this[Wb]));
- return this
- });
- ja($i[I], function () {
- ia(this, q[z](this[Ka]));
- Ca(this, q[z](this[Wb]));
- return this
- });
- function aj(a) {
- return a ? new bj(cj(a)) : Ti || (Ti = new bj)
- }
- function dj(a) {
- return Q(a) ? p[Pa](a) : a
- }
- function ej(a) {
- var b = a || p;
- b[Kb] && b[fb] ? a = b[fb](Ic) : (b = a || p, a = (b[Kb] && b[fb] ? b[Kb](Ic) : b[Ya] ? b[Ya](Oe) : fj(Cc, Oe, a))[0]);
- return a || l
- }
- function fj(a, b, c) {
- var d = p;
- c = c || d;
- a = a && a != Cc ? a.toUpperCase() : N;
- if (c[Kb] && c[fb] && (a || b)) return c[Kb](a + (b ? Hc + b : N));
- if (b && c[Ya]) {
- c = c[Ya](b);
- if (a) {
- for (var d = {}, e = 0, g = 0, h; h = c[g]; g++) a == h.nodeName && (d[e++] = h);
- va(d, e);
- return d
- }
- return c
- }
- c = c.getElementsByTagName(a || Cc);
- if (b) {
- d = {};
- for (g = e = 0; h = c[g]; g++) a = h.className, typeof a[zb] == rf && 0 <= Mh(a[zb](/\s+/), b) && (d[e++] = h);
- va(d, e);
- return d
- }
- return c
- }
- function gj(a, b) {
- Ai(b, function (b, d) {
- d == Ng ? a[J].cssText = b : d == Qe ? wa(a, b) : d == pf ? a.htmlFor = b : d in hj ? a[ib](hj[d], b) : 0 == d.lastIndexOf(te, 0) || 0 == d.lastIndexOf(Te, 0) ? a[ib](d, b) : a[d] = b
- })
- }
- hj = {
- cellpadding: "cellPadding",
- cellspacing: "cellSpacing",
- colspan: "colSpan",
- frameborder: "frameBorder",
- height: "height",
- maxlength: "maxLength",
- role: zg,
- rowspan: "rowSpan",
- type: "type",
- usemap: "useMap",
- valign: "vAlign",
- width: "width"
- };
- function jj(a, b, c) {
- return kj(p, arguments)
- }
- function kj(a, b) {
- var c = b[0],
- d = b[1],
- e, g, h, k;
- if (!Ui && d && (d[mb] || d[G])) c = [Yc, c], d[mb] && c[x](cc, Eh(d[mb]), ec), d[G] && (c[x](dc, Eh(d[G]), ec), e = {}, Ei(e, d), delete e[G], d = e), c[x](bd), c = c[Zb](N);
- g = a[gb](c);
- d && (Q(d) ? wa(g, d) : nh(d) ? Wi[Qb](l, [g][Ra](d)) : gj(g, d));
- if (2 < b[H]) {
- d = function (b) {
- b && g[Ea](Q(b) ? a.createTextNode(b) : b)
- };
- for (c = 2; c < b[H]; c++)
- if (h = b[c], oh(h) && !(qh(h) && 0 < h[Ma])) {
- a: {
- if (h && typeof h[H] == ig) {
- if (qh(h)) {
- k = typeof h.item == rf || typeof h.item == Mg;
- break a
- }
- if (ph(h)) {
- k = typeof h.item == rf;
- break a
- }
- }
- k = m
- }
- e = Nh;
- if (k)
- if (k =
- h[H], 0 < k) {
- for (var s = ba(k), v = 0; v < k; v++) s[v] = h[v];
- h = s
- } else h = [];
- e(h, d)
- } else d(h)
- }
- return g
- }
- function lj(a) {
- a && a[Tb] && a[Tb][Fb](a)
- }
- function mj(a, b) {
- if (a.contains && 1 == b[Ma]) return a == b || a.contains(b);
- if ("undefined" != typeof a.compareDocumentPosition) return a == b || Boolean(a.compareDocumentPosition(b) & 16);
- for (; b && a != b;) b = b[Tb];
- return b == a
- }
- function cj(a) {
- return 9 == a[Ma] ? a : a.ownerDocument || a[xb]
- }
- function bj(a) {
- this.a = a || ih[xb] || p
- }
- bj[I].h = function (a) {
- return Q(a) ? this.a[Pa](a) : a
- };
- bj[I].b = function (a, b, c) {
- return kj(this.a, arguments)
- };
- function nj(a) {
- var b = a.a;
- a = !W && b[Mb] == jd ? b[rb] : b[K];
- b = b.parentWindow || b[kb];
- return new Zi(b.pageXOffset || a.scrollLeft, b.pageYOffset || a.scrollTop)
- }
- Aa(bj[I], mj);
- function oj(a, b, c, d) {
- this.top = a;
- Da(this, b);
- za(this, c);
- w(this, d)
- }
- P = oj[I];
- P.Ea = function () {
- return new oj(this.top, this[$b], this[Nb], this[E])
- };
- Aa(P, function (a) {
- return !this || !a ? m : a instanceof oj ? a[E] >= this[E] && a[$b] <= this[$b] && a.top >= this.top && a[Nb] <= this[Nb] : a.x >= this[E] && a.x <= this[$b] && a.y >= this.top && a.y <= this[Nb]
- });
- ka(P, function () {
- this.top = q[Na](this.top);
- Da(this, q[Na](this[$b]));
- za(this, q[Na](this[Nb]));
- w(this, q[Na](this[E]));
- return this
- });
- la(P, function () {
- this.top = q[Oa](this.top);
- Da(this, q[Oa](this[$b]));
- za(this, q[Oa](this[Nb]));
- w(this, q[Oa](this[E]));
- return this
- });
- ja(P, function () {
- this.top = q[z](this.top);
- Da(this, q[z](this[$b]));
- za(this, q[z](this[Nb]));
- w(this, q[z](this[E]));
- return this
- });
- function pj(a, b, c, d) {
- w(this, a);
- this.top = b;
- ia(this, c);
- Ca(this, d)
- }
- P = pj[I];
- P.Ea = function () {
- return new pj(this[E], this.top, this[Ka], this[Wb])
- };
- Aa(P, function (a) {
- return a instanceof pj ? this[E] <= a[E] && this[E] + this[Ka] >= a[E] + a[Ka] && this.top <= a.top && this.top + this[Wb] >= a.top + a[Wb] : a.x >= this[E] && a.x <= this[E] + this[Ka] && a.y >= this.top && a.y <= this.top + this[Wb]
- });
- ka(P, function () {
- w(this, q[Na](this[E]));
- this.top = q[Na](this.top);
- ia(this, q[Na](this[Ka]));
- Ca(this, q[Na](this[Wb]));
- return this
- });
- la(P, function () {
- w(this, q[Oa](this[E]));
- this.top = q[Oa](this.top);
- ia(this, q[Oa](this[Ka]));
- Ca(this, q[Oa](this[Wb]));
- return this
- });
- ja(P, function () {
- w(this, q[z](this[E]));
- this.top = q[z](this.top);
- ia(this, q[z](this[Ka]));
- Ca(this, q[z](this[Wb]));
- return this
- });
- function qj(a, b, c) {
- var d;
- a: if (d = fa(c)[A](/\-([a-z])/g, function (a, b) {
- return b.toUpperCase()
- }), a[J][d] === i) {
- var e = W ? $d : V ? Hd : U ? cg : bi ? Jd : l,
- g = Q(i) ? Kh(i) : je;
- c = c[A](ha(yc + (g ? fh + g + me : N) + Ac, sf), function (a, b, c) {
- return b + c.toUpperCase()
- });
- e = e + c;
- if (a[J][e] !== i) {
- d = e;
- break a
- }
- }
- d && (a[J][d] = b)
- }
- function rj(a, b) {
- var c = cj(a);
- return c[kb] && c[kb].getComputedStyle && (c = c[kb].getComputedStyle(a, l)) ? c[b] || c.getPropertyValue(b) || N : N
- }
- function sj(a, b) {
- return rj(a, b) || (a[Ob] ? a[Ob][b] : l) || a[J] && a[J][b]
- }
- function tj(a) {
- var b = a[Fa]();
- U && (a = a.ownerDocument, w(b, b[E] - (a[rb].clientLeft + a[K].clientLeft)), b.top -= a[rb].clientTop + a[K].clientTop);
- return b
- }
- function uj(a) {
- if (U && !ni(8)) return a[Ab];
- var b = cj(a),
- c = sj(a, pg),
- d = c == nf || c == qe;
- for (a = a[Tb]; a && a != b; a = a[Tb])
- if (c = sj(a, pg), d = d && c == Kg && a != b[rb] && a != b[K], !d && (a.scrollWidth > a[vb] || a.scrollHeight > a[Lb] || c == nf || c == qe || c == tg)) return a;
- return l
- }
- function vj(a) {
- var b = new Zi,
- c, v, t;
- if (1 == a[Ma]) {
- if (a[Fa]) c = tj(a), b.x = c[E], b.y = c.top;
- else {
- c = nj(aj(a));
- var d, e = cj(a),
- g = sj(a, pg),
- h = V && e[cb] && !a[Fa] && g == qe && (d = e[cb](a)) && (0 > d[$a] || 0 > d[ab]),
- k = new Zi(0, 0),
- s;
- d = e ? cj(e) : p;
- if (s = U)
- if (s = !ni(9)) s = aj(d).a[Mb] != jd;
- s = s ? d[K] : d[rb];
- if (a != s)
- if (a[Fa]) d = tj(a), e = nj(aj(e)), k.x = d[E] + e.x, k.y = d.top + e.y;
- else if (e[cb] && !h) d = e[cb](a), e = e[cb](s), k.x = d[$a] - e[$a], k.y = d[ab] - e[ab];
- else {
- h = a;
- do {
- k.x += h[Cb];
- k.y += h[Vb];
- h != a && (k.x += h.clientLeft || 0, k.y += h.clientTop || 0);
- if (W && sj(h, pg) == nf) {
- k.x +=
- e[K].scrollLeft;
- k.y += e[K].scrollTop;
- break
- }
- h = h[Ab]
- } while (h && h != a);
- if (bi || W && g == qe) k.y -= e[K][Vb];
- for (h = a;
- (h = uj(h)) && h != e[K] && h != s;)
- if (k.x -= h.scrollLeft, !bi || h.tagName != Td) k.y -= h.scrollTop
- }
- b.x = k.x - c.x;
- b.y = k.y - c.y
- }
- V && !X(12) && (U ? v = Ec : W ? v = Gc : bi ? v = Fc : V && (v = Dc), v && (t = sj(a, v)), t || (t = sj(a, Wg)), t ? (a = t.match(wj), a = !a ? new Zi(0, 0) : new Zi(ea(a[1]), ea(a[2]))) : a = new Zi(0, 0), b = new Zi(b.x + a.x, b.y + a.y))
- } else v = ph(a.yc), t = a, a[Va] ? t = a[Va][0] : v && a.v[Va] && (t = a.v[Va][0]), b.x = t[pb], b.y = t[qb];
- return b
- }
- function xj(a) {
- var b = a[Qa],
- c = a[Yb],
- d = W && !b && !c;
- return (!mh(b) || d) && a[Fa] ? (a = tj(a), new $i(a[$b] - a[E], a[Nb] - a.top)) : new $i(b, c)
- }
- function yj(a) {
- return Bg == sj(a, Xe)
- }
- zj = {
- thin: 2,
- medium: 4,
- thick: 6
- };
- function Aj(a, b) {
- if ((a[Ob] ? a[Ob][b + Rd] : l) == fg) return 0;
- var c = a[Ob] ? a[Ob][b + ae] : l,
- d, e;
- c in zj ? d = zj[c] : /^\d+px?$/.test(c) ? d = da(c, 10) : (d = a[J][E], e = a.runtimeStyle[E], w(a.runtimeStyle, a[Ob][E]), w(a[J], c), c = a[J].pixelLeft, w(a[J], d), w(a.runtimeStyle, e), d = c);
- return d
- }
- function Bj(a) {
- if (U) {
- var b = Aj(a, Ge),
- c = Aj(a, Ie),
- d = Aj(a, Ke);
- a = Aj(a, Ee);
- return new oj(d, c, a, b)
- }
- b = rj(a, He);
- c = rj(a, Je);
- d = rj(a, Le);
- a = rj(a, Fe);
- return new oj(ea(d), ea(c), ea(a), ea(b))
- }
- wj = /matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;
- function Cj(a) {
- T[L](this);
- this.b = a;
- this.a = []
- }
- S(Cj, T);
- Dj = [];
- function Z(a, b, c, d, e) {
- nh(c) || (Dj[0] = c, c = Dj);
- for (var g = 0, h; g < c[H]; g++) h = Ji(b, c[g], d || a, e || m, a.b || a), a.a[x](h);
- return a
- }
- function Ej(a, b, c, d, e, g) {
- if (nh(c))
- for (var h = 0; h < c[H]; h++) Ej(a, b, c[h], d, e, g);
- else {
- a: {
- d = d || a;
- g = g || a.b || a;
- e = !! e;
- if (b = Mi(b, c, e))
- for (c = 0; c < b[H]; c++)
- if (!b[c].Z && b[c][Sa] == d && b[c].capture == e && b[c].$a == g) {
- b = b[c];
- break a
- }
- b = l
- }
- b && (b = b.key, Ni(b), Qh(a.a, b))
- }
- return a
- }
- function Fj(a) {
- Nh(a.a, Ni);
- va(a.a, 0)
- }
- Cj[I].k = function () {
- Cj.i.k[L](this);
- Fj(this)
- };
- pa(Cj[I], function () {
- f(r("EventHandler.handleEvent not implemented"))
- });
- function $(a, b, c) {
- b = b || {};
- var d = od;
- a && lh(a) != jg && (d = a);
- !a || lh(a) == Mg ? this.a = jj(d, b) : (this.a = a, gj(this.a, b));
- c && ma(this.a, c);
- this.b = [];
- T[L](this)
- }
- S($, Si);
- P = $[I];
- P.uc = l;
- P.U = m;
- P.addEventListener = function (a, b, c, d) {
- var e;
- a: {
- for (e in ti)
- if (ti[e] == a) {
- e = j;
- break a
- }
- e = m
- }
- e ? Z(this.f ? this.f : this.f = new Cj, this.h(), a, b) : $.i[F][L](this, a, b, c, d)
- };
- function Gj(a, b) {
- var c = new $(p[Pa](b));
- a.b[x](c);
- return c
- }
- P.q = function () {
- this.U = j;
- this[D](new Y(Hj))
- };
- P.h = hh("a");
- Aa(P, function (a) {
- for (var b = this.b[H]; b--;)
- if (this.b[b] == a) return j;
- return m
- });
- P.p = function (a) {
- this.a[Ea](a.h());
- this.b[x](a);
- a.ib();
- return this
- };
- P.k = function () {
- this.f && this.f.m();
- for (var a = this.b[H]; a--;) this.b[a].m();
- $.i.k[L](this)
- };
- P.removeChild = function (a) {
- a.m();
- if (this.a[H] === i || 0 === this.a[H]) a.h()[Tb] == this.a && this.a[Fb](a.h());
- else
- for (var b = this.a[H], c; b--;) c = this.a[b], a.h()[Tb] == c && c[Fb](a.h());
- a.jb();
- a.uc = l;
- for (b = this.b[H]; b--;)
- if (c = this.b[b], c === a) {
- this.b[Xb](b, 1);
- break
- }
- };
- function Ij(a) {
- var b = 0,
- c = 0;
- for (a = a.a; a[Ab];) b += a[Cb], c += a[Vb], a = a[Ab];
- b += a[Cb];
- c += a[Vb];
- return new Zi(b, c)
- }
- P.ib = function () {
- this.U || this.q();
- for (var a = this.b[H]; a--;) this.b[a].ib();
- this[D](new Y(Jj))
- };
- P.jb = function () {
- for (var a = this.b[H]; a--;) this.b[a].jb();
- this[D](new Y(Kj))
- };
- Lj = {};
- function Mj(a) {
- for (var b in Lj)
- if (Lj.hasOwnProperty(b) && (Lj[b][Eb] == a || a instanceof Lj[b][Eb])) return b;
- return N
- };
- function Nj(a, b) {
- T[L](this);
- this.a = a || 1;
- this.c = b || Oj;
- this.d = R(this.Vc, this);
- this.f = xh()
- }
- S(Nj, Si);
- Nj[I].b = m;
- Oj = ih;
- P = Nj[I];
- P.T = l;
- function Pj(a, b) {
- a.a = b;
- a.T && a.b ? (a[sb](), a[Jb]()) : a.T && a[sb]()
- }
- P.Vc = function () {
- if (this.b) {
- var a = xh() - this.f;
- 0 < a && a < 0.8 * this.a ? this.T = this.c[wb](this.d, this.a - a) : (this[D](Qj), this.b && (this.T = this.c[wb](this.d, this.a), this.f = xh()))
- }
- };
- P.start = function () {
- this.b = j;
- this.T || (this.T = this.c[wb](this.d, this.a), this.f = xh())
- };
- ua(P, function () {
- this.b = m;
- this.T && (this.c[Ia](this.T), this.T = l)
- });
- P.k = function () {
- Nj.i.k[L](this);
- this[sb]();
- delete this.c
- };
- Qj = "tick";
- function Rj() {
- Y[L](this, eg)
- }
- S(Rj, Y);
- function Sj(a, b, c, d) {
- T[L](this);
- a && !b && f(r("Can't use invisible history without providing a blank page."));
- var e;
- c ? e = c : (e = Df + Tj, p.write(Dh(Uj, e, e)), e = dj(e));
- this.l = e;
- this.a = c ? cj(c) ? cj(c).parentWindow || cj(c)[kb] : n : n;
- this.Y = this.a[Bb][Pb][zb](fc)[0];
- this.o = b;
- U && !b && (this.o = n[Bb].protocol == Hf ? If : Mf);
- this.b = new Nj(Vj);
- b = wh(Ah, this.b);
- this.ia || (this.ia = []);
- this.ia[x](R(b, i));
- this.d = !a;
- this.c = new Cj(this);
- if (a || Wj) d ? a = d : (a = Cf + Tj, d = this.o ? Ig + Eh(this.o) + ec : N, p.write(Dh(Xj, a, d)), a = dj(a)), this.f = a, this.R = j;
- Wj && (Z(this.c, this.a, Vf, this.Oc), this.I = this.u = m);
- this.d ? Yj(this, Zj(this), j) : $j(this, this.l[Ta]);
- Tj++
- }
- S(Sj, Si);
- Sj[I].j = m;
- Sj[I].g = m;
- Sj[I].e = l;
- var ak = U && ni(8) || V && X("1.9.2") || W && X("532.1"),
- Wj = U && !ni(8),
- bk = Wj;
- P = Sj[I];
- P.ua = l;
- P.k = function () {
- Sj.i.k[L](this);
- this.c.m();
- ck(this, m)
- };
- function ck(a, b) {
- if (b != a.j)
- if (Wj && !a.u) a.I = b;
- else if (b)
- if (bi ? Z(a.c, a.a[xb], dk, a.Sc) : V && Z(a.c, a.a, ng, a.Rc), ak && a.d) Z(a.c, a.a, Af, a.Pc), a.j = j, a[D](new Rj(Zj(a)));
- else {
- if (!U || a.u) Z(a.c, a.b, Qj, R(a.Ub, a, j)), a.j = j, Wj || (a.e = Zj(a), a[D](new Rj(Zj(a)))), a.b[Jb]()
- } else a.j = m, Fj(a.c), a.b[sb]()
- }
- P.Oc = function () {
- this.u = j;
- this.l[Ta] && $j(this, this.l[Ta], j);
- ck(this, this.I)
- };
- P.Rc = function (a) {
- a.v.persisted && (ck(this, m), ck(this, j))
- };
- P.Pc = function () {
- var a = ek(this.a);
- a != this.e && fk(this, a)
- };
- function Zj(a) {
- return a.ua != l ? a.ua : a.d ? ek(a.a) : gk(a) || N
- }
- function ek(a) {
- a = a[Bb][Pb];
- var b = a[C](fc);
- return 0 > b ? N : a.substring(b + 1)
- }
- function Yj(a, b, c) {
- var d = a.a[Bb],
- e;
- a = a.Y;
- e = -1 != d[Pb][C](fc);
- if (bk || e || b) a += fc + b;
- a != d[Pb] && (c ? d[A](a) : d.href = a)
- }
- function $j(a, b, c, d) {
- if (a.R || b != gk(a))
- if (a.R = m, b = encodeURIComponent(fa(b)), U) {
- var e = a.f.contentDocument || a.f[nb][xb];
- e.open(Og, c ? ug : i);
- e.write(Dh(hk, Eh(d || a.a[xb].title), b));
- e.close()
- } else if (b = a.o + fc + b, a = a.f[nb]) c ? a[Bb][A](b) : a[Bb].href = b
- }
- function gk(a) {
- if (U) return a = a.f.contentDocument || a.f[nb][xb], a[K] ? ga(a[K].innerHTML[A](/\+/g, bc)) : l;
- var b = a.f[nb],
- c;
- if (b) {
- try {
- c = ga(ek(b)[A](/\+/g, bc))
- } catch (d) {
- return a.g || (a.g != j && Pj(a.b, ik), a.g = j), l
- }
- a.g && (a.g != m && Pj(a.b, Vj), a.g = m);
- return c || l
- }
- return l
- }
- P.Ub = function () {
- if (this.d) {
- var a = ek(this.a);
- a != this.e && fk(this, a)
- }
- if (!this.d || Wj)
- if (a = gk(this) || N, this.ua == l || a == this.ua) this.ua = l, a != this.e && fk(this, a)
- };
- function fk(a, b) {
- a.e = u(a.l, b);
- a.d ? (Wj && $j(a, b), Yj(a, b)) : $j(a, b);
- a[D](new Rj(Zj(a)))
- }
- P.Sc = function () {
- this.b[sb]();
- this.b[Jb]()
- };
- var dk = [Zf, Qf, $f],
- hk = "<title>%s</title><body>%s</body>",
- Xj = '<iframe id="%s" style="display:none" %s></iframe>',
- Uj = '<input type="text" name="%s" id="%s" style="display:none">',
- Tj = 0,
- Vj = 150,
- ik = 1E4;
- jk = [];
- function kk(a) {
- $[L](this, a)
- }
- S(kk, $);
- kk[I].q = function () {
- kk.i.q[L](this)
- };
- kk[I].fa = function () {
- f(r("You need to provide a getViewClass() method"))
- };
- kk[I].ib = function () {
- kk.i.ib[L](this);
- lk[D](new Y(mk, this))
- };
- kk[I].jb = function () {
- kk.i.jb[L](this);
- lk[D](new Y(nk, this))
- };
- function ok(a) {
- $[L](this, a);
- ma(this.a, N)
- }
- S(ok, kk);
- ok[I].fa = function () {
- return ok
- };
- function pk() {}
- pk[I].$ = function (a, b, c) {
- qk.t().$(a, b, c)
- };
- function rk(a, b, c) {
- ra(this, a);
- this.a = b || l;
- qa(this, c || N)
- }
- ra(rk[I], N);
- rk[I].a = l;
- qa(rk[I], N);
- rk[I].toString = function () {
- return N
- };
- function sk(a) {
- this.ob = a
- }
- S(sk, pk);
- P = sk[I];
- P.ob = l;
- P.ja = function () {
- return []
- };
- P.Ma = O();
- P.hc = O();
- P.fc = O();
- function tk() {}
- P = tk[I];
- P.Pa = {};
- P.W = {};
- P.Eb = function (a) {
- var b = a[mb],
- e;
- if (this.W[b] != l)
- for (var b = this.W[b][Ra](), c = b[H], d = 0; d < c; d++) e = b[d], e.a[Qb](e.pb, [a])
- };
- P.Ib = function (a) {
- var b, c;
- b = a.ob.fa();
- b = zf + rh(b);
- if (!this.Pa[b]) {
- this.Pa[b] = a;
- b = a.ja();
- c = b[H];
- if (c)
- for (var d = new uk(a.Ma, a), e = 0; e < c; e++) {
- var g = b[e],
- h = d,
- k = this.W[g];
- k ? k[x](h) : this.W[g] = [h]
- }
- a.hc()
- }
- };
- P.Ua = function (a) {
- return this.Pa[a]
- };
- P.Kb = function (a) {
- var b = this.Pa[a];
- if (b) {
- for (var c = b.ja(), d = c[H]; d--;) {
- for (var e = c[d], g = b, h = this.W[e], k = h[H]; k--;)
- if (g === h[k].pb) {
- h[Xb](k, 1);
- break
- }
- h[H] || delete this.W[e]
- }
- delete this.Pa[a];
- b.fc()
- }
- return b
- };
- kh(tk);
- function vk(a) {
- this.ob = a;
- this.cb()
- }
- S(vk, sk);
- P = vk[I];
- P.Bb = m;
- P.cb = O();
- P.hc = function () {
- this.Oa();
- this[Eb]()
- };
- P.fc = function () {
- this.ta()
- };
- xa(P, hh("ob"));
- P.ja = function () {
- return []
- };
- P.Ma = O();
- P.Oa = O();
- P.ta = function () {
- this[Eb]().m()
- };
- P.cc = hh("Bb");
- P.m = function () {
- this.Bb || (this.Bb = j, this.ta())
- };
- function wk() {
- return lg in n
- };
- function xk(a) {
- vk[L](this, a)
- }
- S(xk, vk);
- P = xk[I];
- P.aa = l;
- P.Rb = l;
- P.Mb = function (a) {
- this.aa && this[Eb]()[Fb](this.aa);
- this.aa = a;
- this[Eb]().p(a)
- };
- P.ja = function () {
- return []
- };
- P.mc = O();
- P.cb = function () {
- this.Rb = new $(n)
- };
- P.Oa = O();
- U && X(8);
- var yk = {}, zk = {};
- Ak = {};
- function Bk() {
- return ad
- };
- function Ck() {
- this.a = aj()
- }
- function Dk(a, b) {
- var c, d;
- a: if (c = (a.a || aj()).a[gb](od), d = b(Ak, i, {}), ma(c, !qh(d) ? fa(d) : m && (d.a === yk || d.a === zk) ? d.content : eh), 1 == c.childNodes[H] && (d = c.firstChild, 1 == d[Ma])) {
- c = d;
- break a
- }
- return c
- };
- function Ek() {
- var a = Dk(new Ck, Bk);
- $[L](this, a)
- }
- S(Ek, kk);
- Ek[I].fa = function () {
- return Ek
- };
- Ek[I].e = function () {
- n.open(Ef + ca(Gf) + sc + ca(kd), pe)
- };
- Ek[I].d = function () {
- var a = Jf,
- b = Gf,
- c;
- c || (c = cd); - 1 < b[C](fc) && (b = b[A](fc, c));
- a += qc + b;
- a = a + pc + oc;
- b = [Ff];
- for (c = 0; c < b[H]; ++c) a += nc + c + ne + b[c];
- n.open(ca(a))
- };
- Ek[I].q = function () {
- this.U || (Ek.i.q[L](this), this.g = Gj(this, Xg), this.c = Gj(this, hf), this.g[F](Re, R(this.e, this)), this.c[F](Re, R(this.d, this)))
- };
- function Fk(a) {
- vk[L](this, a)
- }
- S(Fk, xk);
- P = Fk[I];
- P.ja = function () {
- return []
- };
- P.Ma = function (a) {
- switch (a[mb]) {
- case Gk:
- this[Eb](), a = Ij(a.a), n.scrollTo(a.x, a.y)
- }
- };
- P.Mb = function (a) {
- this.aa && this.ub[Fb](this.aa);
- this.aa = a;
- this.ub.p(a)
- };
- P.mc = function () {
- var a = n[xb],
- a = a[Mb] == jd ? a[rb] : a[K];
- this.$(Tc, new $i(a[vb], a[Lb]))
- };
- P.cb = function () {
- Fk.i.cb[L](this);
- var a = this[Eb](),
- b = new $(od, {
- "class": ch
- }),
- c;
- a.p(b);
- c = new $(od, {
- "class": dh
- });
- a.p(c);
- c.p(new Ek);
- this.ub = b
- };
- P.Oa = function () {
- this.Rb[F](n.onorientationchange ? mg : wg, R(this.mc, this))
- };
- P.ub = l;
- var Hk = l,
- Ik = m,
- Jk = l;
- function Kk(a) {
- Hk != l && Hk[Rb]();
- Hk = a;
- a != l ? (Ji(p[K], $f, Lk), Ik = j) : (Li(p[K], $f, Lk), Ik = m)
- }
- function Lk(a) {
- if (Ik && Jk) {
- var b = a.v.pageX,
- c, d, e, g, h;
- a = a.v.pageY;
- for (c = Jk[H]; c--;) {
- d = Jk[c];
- e = Ij(d);
- g = i;
- h = d.h();
- if (sj(h, Ye) != fg) g = xj(h);
- else {
- g = h[J];
- var k = g.display,
- s = g.visibility,
- v = g.position;
- g.visibility = Bf;
- g.position = qe;
- g.display = Lf;
- h = xj(h);
- g.display = k;
- g.position = v;
- g.visibility = s;
- g = h
- }
- e = new oj(e.y, e.x + g[Ka], e.y + g[Wb], e.x);
- if (b >= e[E] && a >= e.top && b <= e[$b] && a <= e[Nb]) {
- d.bb || (Kk(d), d[Db]());
- return
- }
- }
- Kk(l)
- }
- };
- function Mk(a, b, c, d, e, g) {
- $[L](this, od, {
- "class": Of + (g ? Ce : ah)
- });
- e != l && (g = jj(Qd), ma(g, e), this.a[Ea](g));
- this.d = a;
- this.M = b;
- this.hb = c;
- this.g = d
- }
- S(Mk, $);
- Mk[I].noteOn = function (a) {
- this.d[Db](this);
- a && (a.N(), a[G] == Zf && (Kk(this), Ji(p, ag, this.c)))
- };
- Mk[I].noteOff = function (a) {
- this.d[Rb](this);
- a && (a.N(), a[G] == ag && (Kk(l), Li(p, ag, this.c)))
- };
- Mk[I].q = function () {
- if (!this.U)
- if (Mk.i.q[L](this), this.e = R(this[Db], this), this.c = R(this[Rb], this), wk()) this[F](Ug, this.e), this[F](Sg, this.c);
- else this[F](Zf, this.e)
- };
- Mk[I].k = function () {
- wk() || Li(p, ag, this.c);
- Mk.i.k[L](this)
- };
- function Nk(a) {
- return Ok() ? a.createGain() : a.createGainNode()
- }
- function Ok() {
- Pk != l || (Pk = !! (fd in n));
- return Pk
- }
- Pk = l;
- function Qk() {}
- P = Qk[I];
- P.Va = 0;
- P.Da = 0;
- P.Ca = 0;
- P.la = 0;
- P.Ta = 0;
- P.za = 0;
- P.Ea = function () {
- var a = new Qk;
- a.Va = this.Va;
- a.Da = this.Da;
- a.Ca = this.Ca;
- a.la = this.la;
- a.Ta = this.Ta;
- a.za = this.za;
- return a
- };
- function Rk() {}
- P = Rk[I];
- P.frequency = 440;
- P.gc = 0;
- va(P, 0);
- P.Tc = 0;
- P.rb = m;
- P.dc = m;
- P.m = O();
- var Sk = [261.626, 277.183, 293.665, 311.127, 329.628, 349.228, 369.994, 391.995, 415.305, 440, 466.164, 493.883],
- Tk = [hd, id, md, nd, qd, sd, td, ud, vd, dd, ed, gd];
- function Uk(a, b) {
- var c = 0,
- d;
- d = 0;
- c = a[C](ze); - 1 < c && (a = a.substr(c - 1, 1), d = -1);
- c = a[C](fc); - 1 < c && (a = a.substr(c - 1, 1), d = 1);
- a: {
- d || (d = 0);
- for (var e = 0, c = Sk[H]; e < c; ++e)
- if (Tk[e] == a) {
- d = e + d;
- d = d > c ? Sk[0] : 0 > d ? Sk[Sk[H] - 1] : Sk[d];
- break a
- }
- d = NaN
- }
- if (4 != b)
- for (var e = b - 4, g = q.abs(e), c = 0; c < g; ++c) 0 < e ? d *= 2 : d *= 0.5;
- return d
- };
- function Vk(a) {
- return q[z](288E4 / (120 * (a || 1)))
- };
- function Wk(a, b) {
- this.a = a.createGain();
- this.b = a.createGain();
- this.V = a.createBiquadFilter();
- this.c = a.createGain();
- this.d = a.createGain();
- var c = this.e.kb;
- b = b || {};
- this.f = b[G] || c[G][bb];
- u(this.V[Wa], b[Wa] || c[Wa][bb]);
- u(this.V.Q, b.Q || c.Q[bb]);
- u(this.V[Xa], b[Xa] || c[Xa][bb]);
- u(this.d[Xa], b.rc || c.rc[bb]);
- u(this.c[Xa], b.na || c.na[bb]);
- qa(this.V, this.f);
- this.a[M](this.V);
- this.V[M](this.d);
- this.d[M](this.b);
- this.a[M](this.c);
- this.c[M](this.b)
- }
- function Xk(a, b) {
- qa(b, 0);
- return new Wk(a, b)
- }
- Wk[I].e = {
- name: "Filter",
- kb: {
- type: {
- min: 0,
- max: 7,
- defaultValue: 0,
- type: "int"
- },
- frequency: {
- min: 0,
- max: 22050,
- defaultValue: 8E3,
- type: of
- },
- Q: {
- min: 1E-4,
- max: 1E3,
- defaultValue: 1,
- type: of
- },
- gain: {
- min: -40,
- max: 40,
- defaultValue: 1,
- type: of
- },
- rc: {
- min: 0,
- max: 1,
- defaultValue: 1,
- type: of
- },
- na: {
- min: 0,
- max: 1,
- defaultValue: 0,
- type: of
- }
- }
- };
- Wk[I].connect = function (a) {
- this.b[M](a[Ja] ? a[Ja] : a)
- };
- Wk[I].disconnect = function () {
- this.b[Hb]()
- };
- function Yk(a, b) {
- this.o = Nk(a);
- this.j = Nk(a);
- var c = this.I.kb;
- b = b || {};
- qa(b, ~~b[G] || c[G][bb]);
- b.delay = b[Ua] || c[Ua][bb];
- b.ea = b.ea || c.ea[bb];
- b.ma = b.ma || c.ma[bb];
- b.na = b.na || c.na[bb];
- b.offset = b[lb] || c[lb][bb];
- 1 <= b.ea && f(r("Feedback value will force a positive feedback loop."));
- this.c = a.createChannelSplitter(2);
- this.l = a.createChannelMerger(2);
- this.a = Ok() ? a.createDelay() : a.createDelayNode();
- this.b = Ok() ? a.createDelay() : a.createDelayNode();
- this.e = Nk(a);
- this.g = Nk(a);
- this.d = Xk(a, {
- frequency: b.ma
- });
- this.f = Xk(a, {
- frequency: b.ma
- });
- this.u = Nk(a);
- this.ia = b[G];
- u(this.a[Gb], b[Ua]);
- u(this.b[Gb], b[Ua]);
- u(this.e[Xa], b.ea);
- u(this.g[Xa], b.ea);
- this.o[M](this.c);
- this.a[M](this.e);
- this.b[M](this.g);
- this.e[M](this.d.a);
- this.g[M](this.f.a);
- this.l[M](this.j);
- this.c[Hb]();
- this.d[Hb]();
- this.f[Hb]();
- this.d[M](this.l, 0, 0);
- this.f[M](this.l, 0, 1);
- switch (this.ia) {
- default:
- case 0:
- this.c[M](this.a, 0);
- this.c[M](this.b, 1);
- this.d[M](this.a);
- this.f[M](this.b);
- break;
- case 1:
- this.c[M](this.a, 1);
- this.c[M](this.b, 0);
- this.d[M](this.a);
- this.f[M](this.b);
- break;
- case 2:
- this.c[M](this.a, 0), this.c[M](this.b, 1), this.d[M](this.b), this.f[M](this.a)
- }
- this.o[M](this.u);
- this.u[M](this.j)
- }
- Yk[I].I = {
- name: Ve,
- kb: {
- type: {
- min: 0,
- max: 2,
- defaultValue: 0,
- type: "int"
- },
- delay: {
- min: 0,
- max: 10,
- defaultValue: 1,
- type: of
- },
- ea: {
- min: 0,
- max: 1,
- defaultValue: 0.5,
- type: of
- },
- ma: {
- min: 0,
- max: 22050,
- defaultValue: 8E3,
- type: of
- },
- offset: {
- min: -0.5,
- max: 0.5,
- defaultValue: 0,
- type: of
- },
- na: {
- min: 0,
- max: 1,
- defaultValue: 1,
- type: of
- }
- }
- };
- Yk[I].connect = function (a) {
- this.j[M](a[Ja] ? a[Ja] : a)
- };
- Yk[I].disconnect = function () {
- this.j[Hb]()
- };
- var Zk, $k, al, bl, cl, dl, el, fl = 1,
- gl = 2048,
- hl = new Qk,
- il = l,
- jl = l,
- kl = 440,
- ll = 1,
- ml = m,
- nl = m,
- ol = 0,
- pl = [],
- ql = m;
- function rl() {
- p[yb](Ug, rl, m);
- var a = il.createOscillator(),
- b;
- qa(a, 0);
- b = Nk(il);
- a[M](b);
- u(b[Xa], 0);
- b[M](il.destination);
- a[Db](0);
- a[Rb](0);
- sl()
- }
- function sl() {
- var a = il;
- jl = Ok() ? a.createScriptProcessor(2048, 1, 2) : a.createJavaScriptNode(2048, 1, 2);
- dl = il.createBiquadFilter();
- el = new Yk(il, {
- type: 1,
- delay: tl,
- ea: ul,
- offset: -0.027,
- ma: vl
- });
- bl = il.createOscillator();
- cl = Nk(il);
- cl[M](dl[Wa]);
- wl(xl, yl);
- jl[M](dl);
- $k = Nk(il);
- dl[M]($k);
- al = Nk(il);
- $k[M](al);
- u(al[Xa], fl);
- al[M](el.o);
- Zk = il.createDynamicsCompressor();
- el[M](Zk);
- Zk[M](il.destination);
- zl();
- jl.onaudioprocess = Al
- }
- function zl() {
- dl != l && (u(dl[Wa], kl), u(dl.Q, ll))
- }
- function Al(a) {
- var b = a.outputBuffer.getChannelData(0),
- B, ij;
- a = a.outputBuffer.getChannelData(1);
- var c = pl[H],
- d = 1 / 2048,
- e = 1,
- g = q.PI,
- h = g / 1.05,
- k = 2 * g,
- s = k / 48E3,
- e = 0,
- v, t, y;
- for (v = 0; 2048 > v; ++v) b[v] = a[v] = 0;
- t = c;
- for (; t--;) {
- B = pl[t];
- ij = m;
- for (v = 0; 2048 > v; ++v) {
- y = 0;
- if (B.rb && 0 === B[H] && 2 < B.b.Sa) {
- ++B.b.Ba == B.b.Sa && (B.b.Ba = 0);
- B.frequency = B.b.c[B.b.Ba];
- va(B, gl);
- break
- }
- c = B.gc;
- e = v + ++B.Tc;
- e = q.sin(e / 18432) * h;
- e = c < g - e ? 0.075 : -0.075;
- c += s * B[Wa];
- c = c > k ? c - k : c;
- y += 4 * e;
- B.gc = c;
- 0 < B[H] && --B.length;
- if (B.dc && (y *= 1 - B.a.za / B.a.Ta, (B.a.za += d) > B.a.Ta)) pl[Xb](t,
- 1), B.m(), ij = j;
- a[v] = b[v] += y;
- if (ij) break
- }
- }
- b = 1;
- hl.Ca > hl.la && (b *= hl.la / hl.Ca, ++hl.la);
- $k[Xa].linearRampToValueAtTime(b, il.currentTime + 2048 / 48E3)
- }
- function Bl(a, b) {
- var c = new Rk;
- c.key = a;
- c.b = b;
- c.frequency = Uk(a.M, a.hb);
- c.rb = b.g;
- va(c, 50);
- c.rb && va(c, gl = Vk(1) / 16);
- 0 === pl[H] && (0 === ol && (ol = Vk(64) + 0.5 | 0), hl.Ca = ol * hl.Va, hl.la = 0, hl.za = 0);
- pl[x](c)
- }
- function wl(a, b) {
- u(bl[Wa], a);
- u(cl[Xa], b / 100 * dl[Wa][Ta])
- };
- function Cl(a, b, c, d, e, g, h) {
- $[L](this, od, {
- "class": Pf + b
- });
- this.keys = [];
- this.ba = a;
- this.j = b;
- this.o = c;
- this.l = d;
- this.e = e != l ? e : l;
- this.d = g != l ? g : l;
- this.g = h != l ? h : m;
- this.c = []
- }
- S(Cl, $);
- P = Cl[I];
- P.Ba = 0;
- P.Sa = 0;
- function Dl(a, b) {
- 7 < b ? b = 7 : 1 > b && (b = 1);
- a.ba = b;
- for (var c = a[ob][H]; c--;) a[ob][c].hb = b
- }
- P.noteOn = function (a) {
- a.bb || (this.g ? (2 >= ++this.Sa && Bl(a, this), this.c[x](Uk(a.M, a.hb))) : Bl(a, this), a.bb = j, Wi(a.a, kg))
- };
- P.noteOff = function (a) {
- if (a.bb) {
- for (var b = pl[H], c; b--;)
- if (c = pl[b], c.key == a) {
- 0 === hl.Da ? (pl[Xb](b, 1), c.m()) : (c.a = hl.Ea(), c.a.Ta = ol * c.a.Da, c.dc = j);
- break
- }
- a.bb = m;
- Xi(a.a, kg);
- if (this.g) {
- 0 > --this.Sa && (this.Sa = 0);
- a = Uk(a.M, a.hb);
- for (b = this.c[H]; b--;)
- if (this.c[b] == a) {
- this.c[Xb](b, 1);
- break
- }
- this.Ba > this.c[H] && (this.Ba = 0)
- }
- }
- };
- P.q = function () {
- if (!this.U) {
- Cl.i.q[L](this);
- for (var a, b = [hd, md, qd, sd, ud, dd, gd], c = this.ba, d = 0, g; d < 7 * this.j; ++d) a = this.e != l && d < this.e[H] ? this.e[d] : l, a = new Mk(this, b[d % b[H]], c, this.o[d], a), this[ob][x](a), this.p(a), 6 == d && ++c;
- var b = [id, nd, td, vd, ed],
- e = [4, 11, 25, 32, 39, 54, 61, 75, 82, 89];
- if (1 == this.j)
- for (d = e[H]; d--;) e[d] *= 2;
- c = this.ba;
- for (d = 0; d < 5 * this.j; ++d) a = this.d != l && d < this.d[H] ? this.d[d] : l, a = new Mk(this, b[d % b[H]], c, this.l[d], a, j), g = a.a, Q(Tf) ? qj(g, e[d % e[H]] + ic, Tf) : Ai(Tf, wh(qj, g)), this[ob][x](a), this.p(a), 4 ==
- d && ++c
- }
- };
- P.k = function () {
- for (var a = this[ob][H]; a--;) this[ob][a][Rb]();
- Cl.i.k[L](this)
- };
- function El(a) {
- var b = a.changedTouches[0],
- c = N,
- d;
- switch (a[G]) {
- case Ug:
- c = Zf;
- break;
- case Tg:
- c = $f;
- break;
- case Sg:
- c = ag;
- break;
- default:
- return
- }
- d = p.createEvent(Gd);
- d.initMouseEvent(c, j, j, n, 1, b[$a], b[ab], b[pb], b[qb], m, m, m, m, 0, l);
- b[Ib][D](d);
- a.preventDefault()
- };
- function Fl(a, b, c, d, e) {
- if (!U && (!W || !X(Pc))) return j;
- if (Xh && e) return Gl(a);
- if (e && !d || !c && (17 == b || 18 == b || Xh && 91 == b)) return m;
- if (W && d && c) switch (a) {
- case 220:
- case 219:
- case 221:
- case 192:
- case 186:
- case 189:
- case 187:
- case 188:
- case 190:
- case 191:
- case 192:
- case 222:
- return m
- }
- if (U && d && b == a) return m;
- switch (a) {
- case 13:
- return !(U && ni(9));
- case 27:
- return !W
- }
- return Gl(a)
- }
- function Gl(a) {
- if (48 <= a && 57 >= a || 96 <= a && 106 >= a || 65 <= a && 90 >= a || W && 0 == a) return j;
- switch (a) {
- case 32:
- case 63:
- case 107:
- case 109:
- case 110:
- case 111:
- case 186:
- case 59:
- case 189:
- case 187:
- case 61:
- case 188:
- case 190:
- case 191:
- case 192:
- case 222:
- case 219:
- case 220:
- case 221:
- return j;
- default:
- return m
- }
- }
- function Hl(a) {
- switch (a) {
- case 61:
- return 187;
- case 59:
- return 186;
- case 224:
- return 91;
- case 0:
- return 224;
- default:
- return a
- }
- };
- function Il(a, b) {
- T[L](this);
- a && (this.fb && Jl(this), this.pa = a, this.eb = Ji(this.pa, Rf, this, b), this.Cb = Ji(this.pa, Qf, this.Ac, b, this), this.fb = Ji(this.pa, Sf, this.Ec, b, this))
- }
- S(Il, Si);
- P = Il[I];
- P.pa = l;
- P.eb = l;
- P.Cb = l;
- P.fb = l;
- P.H = -1;
- P.X = -1;
- P.qb = m;
- var Kl = {
- 3: 13,
- 12: 144,
- 63232: 38,
- 63233: 40,
- 63234: 37,
- 63235: 39,
- 63236: 112,
- 63237: 113,
- 63238: 114,
- 63239: 115,
- 63240: 116,
- 63241: 117,
- 63242: 118,
- 63243: 119,
- 63244: 120,
- 63245: 121,
- 63246: 122,
- 63247: 123,
- 63248: 44,
- 63272: 46,
- 63273: 36,
- 63275: 35,
- 63276: 33,
- 63277: 34,
- 63289: 144,
- 63302: 45
- }, Ll = {
- Up: 38,
- Down: 40,
- Left: 37,
- Right: 39,
- Enter: 13,
- F1: 112,
- F2: 113,
- F3: 114,
- F4: 115,
- F5: 116,
- F6: 117,
- F7: 118,
- F8: 119,
- F9: 120,
- F10: 121,
- F11: 122,
- F12: 123,
- "U+007F": 46,
- Home: 36,
- End: 35,
- PageUp: 33,
- PageDown: 34,
- Insert: 45
- }, Ml = U || W && X(Pc),
- Nl = Xh && V;
- P = Il[I];
- P.Ac = function (a) {
- if (W && (17 == this.H && !a.Ia || 18 == this.H && !a.ga || Xh && 91 == this.H && !a.yb)) this.X = this.H = -1; - 1 == this.H && (a.Ia && 17 != a.K ? this.H = 17 : a.ga && 18 != a.K ? this.H = 18 : a.yb && 91 != a.K && (this.H = 91));
- if (Ml && !Fl(a.K, this.H, a.ha, a.Ia, a.ga)) this[jb](a);
- else this.X = V ? Hl(a.K) : a.K, Nl && (this.qb = a.ga)
- };
- P.Ec = function (a) {
- this.X = this.H = -1;
- this.qb = a.ga
- };
- pa(P, function (a) {
- var b = a.v,
- c, d, e = b.altKey;
- U && a[G] == Rf ? (c = this.X, d = 13 != c && 27 != c ? b[hb] : 0) : W && a[G] == Rf ? (c = this.X, d = 0 <= b[db] && 63232 > b[db] && Gl(c) ? b[db] : 0) : bi ? (c = this.X, d = Gl(c) ? b[hb] : 0) : (c = b[hb] || this.X, d = b[db] || 0, Nl && (e = this.qb), Xh && (63 == d && 224 == c) && (c = 191));
- var g = c,
- h = b.keyIdentifier;
- c ? 63232 <= c && c in Kl ? g = Kl[c] : 25 == c && a.ha && (g = 9) : h && h in Ll && (g = Ll[h]);
- this.H = g;
- a = new Ol(g, d, 0, b);
- a.ga = e;
- this[D](a)
- });
- P.h = hh("pa");
- function Jl(a) {
- a.eb && (Ni(a.eb), Ni(a.Cb), Ni(a.fb), a.eb = l, a.Cb = l, a.fb = l);
- a.pa = l;
- a.H = -1;
- a.X = -1
- }
- P.k = function () {
- Il.i.k[L](this);
- Jl(this)
- };
- function Ol(a, b, c, d) {
- d && wi(this, d, i);
- qa(this, Nf);
- this.K = a;
- this.xb = b
- }
- S(Ol, vi);
- function Pl(a, b) {
- T[L](this);
- this.a = a;
- var c = qh(this.a) && 1 == this.a[Ma] ? this.a : this.a ? this.a[K] : l;
- c && yj(c);
- this.b = Ji(this.a, V ? pd : bg, this, b)
- }
- S(Pl, Si);
- pa(Pl[I], function (a) {
- var b = 0,
- c = 0,
- d = 0;
- a = a.v;
- if (a[G] == bg) {
- c = 1;
- if (U || W && (Yh || X(Qc))) c = 40;
- d = Ql(-a.wheelDelta, c);
- mh(a.wheelDeltaX) ? (b = Ql(-a.wheelDeltaX, c), c = Ql(-a.wheelDeltaY, c)) : c = d
- } else d = a.detail, 100 < d ? d = 3 : -100 > d && (d = -3), mh(a.axis) && a.axis === a.HORIZONTAL_AXIS ? b = d : c = d;
- typeof this.c == ig && Yi(b, -this.c, this.c);
- typeof this.d == ig && Yi(c, -this.d, this.d);
- b = new Rl(d, a);
- this[D](b)
- });
- function Ql(a, b) {
- return W && (Xh || ei) && 0 != a % b ? a : a / b
- }
- Pl[I].k = function () {
- Pl.i.k[L](this);
- Ni(this.b);
- this.b = l
- };
- function Rl(a, b) {
- b && wi(this, b, i);
- qa(this, bg);
- this.d = a
- }
- S(Rl, vi);
- function Sl() {
- T[L](this);
- this.a = Tl;
- this.g = this.c = l
- }
- S(Sl, Si);
- Tl = 0;
- Sl[I].o = function () {
- this.C(Be)
- };
- Sl[I].f = function () {
- this.C(df)
- };
- Sl[I].C = function (a) {
- this[D](a)
- };
- function Ul() {
- Sl[L](this);
- this.b = []
- }
- S(Ul, Sl);
- Ul[I].add = function (a) {
- 0 <= Mh(this.b, a) || (this.b[x](a), Ji(a, lf, this.e, m, this))
- };
- Ul[I].k = function () {
- Nh(this.b, function (a) {
- a.m()
- });
- va(this.b, 0);
- Ul.i.k[L](this)
- };
- function Vl() {
- Ul[L](this);
- this.d = 0
- }
- S(Vl, Ul);
- Vl[I].zb = function (a) {
- if (0 == this.b[H]) return m;
- if (a || this.a == Tl) this.d = 0, this.o();
- else if (1 == this.a) return m;
- this.C(og); - 1 == this.a && this.C(xg);
- var b = -1 == this.a && !a;
- this.c = xh();
- this.g = l;
- this.a = 1;
- Nh(this.b, function (c) {
- (!b || -1 == c.a) && c.zb(a)
- });
- return j
- };
- ua(Vl[I], function (a) {
- Nh(this.b, function (b) {
- b.a == Tl || b[sb](a)
- });
- this.a = Tl;
- this.g = xh();
- this.C(Lg);
- this.f()
- });
- Vl[I].e = function () {
- this.d++;
- this.d == this.b[H] && (this.g = xh(), this.a = Tl, this.C(lf), this.f())
- };
- function Wl(a, b, c) {
- T[L](this);
- ya(this, a);
- this.handle = b || a;
- this.f = c || new pj(NaN, NaN, NaN, NaN);
- this.b = cj(a);
- this.a = new Cj(this);
- Ji(this.handle, [Ug, Zf], this.nc, m, this)
- }
- S(Wl, Si);
- Xl = U || V && X("1.9.3");
- P = Wl[I];
- sa(P, 0);
- ta(P, 0);
- na(P, 0);
- oa(P, 0);
- P.oc = 0;
- P.pc = 0;
- P.qa = 0;
- P.ra = 0;
- P.da = m;
- P.Ja = m;
- P.k = function () {
- Wl.i.k[L](this);
- Li(this.handle, [Ug, Zf], this.nc, m, this);
- Fj(this.a);
- Xl && this.b.releaseCapture();
- ya(this, l);
- this.a = this.handle = l
- };
- function Yl(a) {
- mh(a.d) || (a.d = yj(a[Ib]));
- return a.d
- }
- P.nc = function (a) {
- var b = a[G] == Zf;
- if (!this.da && (!b || (qi ? 0 == a.v.button : a[G] == Re || a.v.button & xi[0]) && (!W || !Xh || !a.Ia))) {
- if (Zl(a), this[D](new $l(Jg, this, a[pb], a[qb]))) {
- this.da = j;
- a.N();
- var b = this.b,
- c = b[rb],
- d = !Xl;
- Z(this.a, b, [Tg, $f], this.Jc, d);
- Z(this.a, b, [Sg, ag], this.Za, d);
- Xl ? (c.setCapture(m), Z(this.a, c, Xf, this.Za)) : Z(this.a, b ? b.parentWindow || b[kb] : n, De, this.Za);
- this.e && Z(this.a, this.e, Dg, this.Qc, d);
- sa(this, this.oc = a[pb]);
- ta(this, this.pc = a[qb]);
- na(this, a[$a]);
- oa(this, a[ab]);
- this.Ja ? (a = this[Ib], b = a[Cb], c =
- a[Ab], !c && sj(a, pg) == nf && (c = cj(a)[rb]), c ? (V ? (d = Bj(c), b += d[E]) : ni(8) && (d = Bj(c), b -= d[E]), a = yj(c) ? c[vb] - (b + a[Qa]) : b) : a = b) : a = this[Ib][Cb];
- this.qa = a;
- this.ra = this[Ib][Vb];
- this.c = nj(aj(this.b));
- xh()
- }
- } else this[D](bf)
- };
- P.Za = function (a) {
- Fj(this.a);
- Xl && this.b.releaseCapture();
- if (this.da) {
- Zl(a);
- this.da = m;
- var b = am(this, this.qa),
- c = bm(this, this.ra);
- this[D](new $l(df, this, a[pb], a[qb], 0, b, c))
- } else this[D](bf);
- (a[G] == Sg || a[G] == Rg) && a.N()
- };
- function Zl(a) {
- var b = a[G];
- b == Ug || b == Tg ? wi(a, a.v[Va][0], a.a) : (b == Sg || b == Rg) && wi(a, a.v.changedTouches[0], a.a)
- }
- P.Jc = function (a) {
- Zl(a);
- var b = (this.Ja && Yl(this) ? -1 : 1) * (a[pb] - this[pb]),
- c = a[qb] - this[qb];
- sa(this, a[pb]);
- ta(this, a[qb]);
- na(this, a[$a]);
- oa(this, a[ab]);
- if (!this.da) {
- var d = this.oc - this[pb],
- e = this.pc - this[qb];
- if (0 < d * d + e * e)
- if (this[D](new $l(Jg, this, a[pb], a[qb]))) this.da = j;
- else {
- this.cc() || this.Za(a);
- return
- }
- }
- c = cm(this, b, c);
- b = c.x;
- c = c.y;
- this.da && this[D](new $l(Ae, this, a[pb], a[qb], 0, b, c)) && (dm(this, a, b, c), a.N())
- };
- function cm(a, b, c) {
- var d = nj(aj(a.b));
- b += d.x - a.c.x;
- c += d.y - a.c.y;
- a.c = d;
- a.qa += b;
- a.ra += c;
- b = am(a, a.qa);
- a = bm(a, a.ra);
- return new Zi(b, a)
- }
- P.Qc = function (a) {
- var b = cm(this, 0, 0);
- sa(a, this[pb]);
- ta(a, this[qb]);
- dm(this, a, b.x, b.y)
- };
- function dm(a, b, c, d) {
- a.wb(c, d);
- a[D](new $l(af, a, b[pb], b[qb], 0, c, d))
- }
- function am(a, b) {
- var c = a.f,
- d = !isNaN(c[E]) ? c[E] : l,
- c = !isNaN(c[Ka]) ? c[Ka] : 0;
- return q.min(d != l ? d + c : aa, q.max(d != l ? d : -aa, b))
- }
- function bm(a, b) {
- var c = a.f,
- d = !isNaN(c.top) ? c.top : l,
- c = !isNaN(c[Wb]) ? c[Wb] : 0;
- return q.min(d != l ? d + c : aa, q.max(d != l ? d : -aa, b))
- }
- P.wb = function (a, b) {
- this.Ja && Yl(this) ? Da(this[Ib][J], a + qg) : w(this[Ib][J], a + qg);
- this[Ib][J].top = b + qg
- };
- function $l(a, b, c, d, e, g, h) {
- Y[L](this, a);
- sa(this, c);
- ta(this, d);
- w(this, mh(g) ? g : b.qa);
- this.top = mh(h) ? h : b.ra;
- this.d = b
- }
- S($l, Y);
- function em(a, b, c) {
- T[L](this);
- this.a = a;
- this.d = b || 0;
- this.b = c;
- this.c = R(this.zc, this)
- }
- S(em, T);
- P = em[I];
- P.oa = 0;
- P.k = function () {
- em.i.k[L](this);
- this[sb]();
- delete this.a;
- delete this.b
- };
- P.start = function (a) {
- this[sb]();
- var b = this.c;
- a = mh(a) ? a : this.d;
- ph(b) || (b && typeof b[jb] == rf ? b = R(b[jb], b) : f(r(Ad)));
- this.oa = 2147483647 < a ? -1 : Oj[wb](b, a || 0)
- };
- ua(P, function () {
- 0 != this.oa && Oj[Ia](this.oa);
- this.oa = 0
- });
- P.zc = function () {
- this.oa = 0;
- this.a && this.a[L](this.b)
- };
- var Ci = {}, fm = l;
- function gm(a) {
- a = rh(a);
- delete Ci[a];
- Bi() && fm && fm[sb]()
- }
- function hm() {
- fm || (fm = new em(function () {
- var a = xh();
- Ai(Ci, function (c) {
- im(c, a)
- });
- Bi() || hm()
- }, 20));
- var a = fm;
- 0 != a.oa || a[Jb]()
- };
- function jm(a, b, c, d) {
- Sl[L](this);
- (!nh(a) || !nh(b)) && f(r("Start and end parameters must be arrays"));
- a[H] != b[H] && f(r("Start and end points must be the same length"));
- this.l = a;
- this.Y = b;
- this.I = c;
- this.u = d;
- this.b = [];
- this.d = m
- }
- S(jm, Sl);
- P = jm[I];
- P.O = 0;
- P.zb = function (a) {
- if (a || this.a == Tl) this.O = 0, this.b = this.l;
- else if (1 == this.a) return m;
- gm(this);
- this.c = a = xh(); - 1 == this.a && (this.c -= this.I * this.O);
- this.g = this.c + this.I;
- this.O || this.o();
- this.C(og); - 1 == this.a && this.C(xg);
- this.a = 1;
- var b = rh(this);
- b in Ci || (Ci[b] = this);
- hm();
- im(this, a);
- return j
- };
- ua(P, function (a) {
- gm(this);
- this.a = Tl;
- a && (this.O = 1);
- km(this, this.O);
- this.C(Lg);
- this.f()
- });
- P.k = function () {
- this.a == Tl || this[sb](m);
- this.C(We);
- jm.i.k[L](this)
- };
- function im(a, b) {
- a.O = (b - a.c) / (a.g - a.c);
- 1 <= a.O && (a.O = 1);
- km(a, a.O);
- 1 == a.O ? (a.a = Tl, gm(a), a.C(lf), a.f()) : 1 == a.a && a.Fb()
- }
- function km(a, b) {
- ph(a.u) && (b = a.u(b));
- a.b = ba(a.l[H]);
- for (var c = 0; c < a.l[H]; c++) a.b[c] = (a.Y[c] - a.l[c]) * b + a.l[c]
- }
- P.Fb = function () {
- this.C(re)
- };
- P.C = function (a) {
- this[D](new lm(a, this))
- };
- function lm(a, b) {
- Y[L](this, a);
- this.x = b.b[0];
- this.y = b.b[1]
- }
- S(lm, Y);
- function mm(a, b, c, d, e) {
- jm[L](this, b, c, d, e);
- this.j = a
- }
- S(mm, jm);
- mm[I].e = jh;
- mm[I].Fb = function () {
- this.e();
- mm.i.Fb[L](this)
- };
- mm[I].f = function () {
- this.e();
- mm.i.f[L](this)
- };
- mm[I].o = function () {
- this.e();
- mm.i.o[L](this)
- };
- function nm(a, b, c, d, e) {
- (2 != b[H] || 2 != c[H]) && f(r("Start and end points must be 2D"));
- mm[Qb](this, arguments)
- }
- S(nm, mm);
- nm[I].e = function () {
- var a;
- if (a = this.d) mh(this.R) || (this.R = yj(this.j)), a = this.R;
- this.j[J][a ? yg : Tf] = q[z](this.b[0]) + qg;
- this.j[J].top = q[z](this.b[1]) + qg
- };
- function om(a, b, c, d, e) {
- mm[L](this, a, [b], [c], d, e)
- }
- S(om, mm);
- om[I].e = function () {
- ia(this.j[J], q[z](this.b[0]) + qg)
- };
- function pm(a, b, c, d, e) {
- mm[L](this, a, [b], [c], d, e)
- }
- S(pm, mm);
- pm[I].e = function () {
- Ca(this.j[J], q[z](this.b[0]) + qg)
- };
- function qm() {}
- kh(qm);
- qm[I].a = 0;
- qm.t();
- function rm(a) {
- T[L](this);
- this.R = a || aj()
- }
- S(rm, Si);
- P = rm[I];
- P.Lc = qm.t();
- P.sa = l;
- P.z = m;
- P.s = l;
- P.D = l;
- P.w = l;
- P.G = l;
- function sm(a) {
- return a.sa || (a.sa = Vc + (a.Lc.a++).toString(36))
- }
- P.h = hh("s");
- function tm(a) {
- return a.o || (a.o = new Cj(a))
- }
- function um(a, b) {
- a == b && f(r(Xd));
- b && (a.D && a.sa && a.D.G && a.sa && (a.sa in a.D.G && a.D.G[a.sa]) && a.D != b) && f(r(Xd));
- a.D = b;
- rm.i.Nb[L](a, b)
- }
- P.Nb = function (a) {
- this.D && this.D != a && f(r("Method not supported"));
- rm.i.Nb[L](this, a)
- };
- P.Ka = function () {
- this.s = this.R.a[gb](Ze)
- };
- function vm(a, b, c) {
- a.z && f(r(ld));
- a.s || a.Ka();
- b ? b.insertBefore(a.s, c || l) : a.R.a[K][Ea](a.s);
- (!a.D || a.D.z) && a.Fa()
- }
- P.vb = gh("s");
- P.Fa = function () {
- this.z = j;
- wm(this, function (a) {
- !a.z && a.h() && a.Fa()
- })
- };
- P.Ga = function () {
- wm(this, function (a) {
- a.z && a.Ga()
- });
- this.o && Fj(this.o);
- this.z = m
- };
- P.k = function () {
- this.z && this.Ga();
- this.o && (this.o.m(), delete this.o);
- wm(this, function (a) {
- a.m()
- });
- this.s && lj(this.s);
- this.D = this.s = this.G = this.w = l;
- rm.i.k[L](this)
- };
- P.p = function (a, b) {
- var c = this.w ? this.w[H] : 0,
- d;
- a.z && (b || !this.z) && f(r(ld));
- (0 > c || c > (this.w ? this.w[H] : 0)) && f(r("Child component index out of bounds"));
- if (!this.G || !this.w) this.G = {}, this.w = [];
- if (a.D == this) d = sm(a), this.G[d] = a, Qh(this.w, a);
- else {
- var d = this.G,
- e = sm(a);
- e in d && f(r('The object already contains the key "' + e + ec));
- d[e] = a
- }
- um(a, this);
- Rh(this.w, c, 0, a);
- a.z && this.z && a.D == this ? (d = this.s, d.insertBefore(a.h(), d.childNodes[c] || l)) : b ? (this.s || this.Ka(), c = this.w ? this.w[c + 1] || l : l, vm(a, this.s, c ? c.s : l)) : this.z &&
- (!a.z && a.s && a.s[Tb] && 1 == a.s[Tb][Ma]) && a.Fa()
- };
- function wm(a, b) {
- a.w && Nh(a.w, b, i)
- }
- P.removeChild = function (a, b) {
- if (a) {
- var c = Q(a) ? a : sm(a),
- d;
- a = this.G && c ? (c in this.G ? this.G[c] : i) || l : l;
- c && a && (d = this.G, c in d && delete d[c], Qh(this.w, a), b && (a.Ga(), a.s && lj(a.s)), um(a, l))
- }
- a || f(r("Child is not in parent component"));
- return a
- };
- function xm() {
- T[L](this)
- }
- S(xm, Si);
- P = xm[I];
- P.ka = 0;
- P.L = 0;
- P.F = 100;
- P.r = 0;
- P.P = m;
- P.wa = m;
- P.S = function (a) {
- a = ym(this, a);
- this.ka != a && (this.ka = a + this.r > this.F ? this.F - this.r : a < this.L ? this.L : a, !this.P && !this.wa && this[D](Pe))
- };
- P.n = function () {
- return ym(this, this.ka)
- };
- function zm(a, b) {
- b = ym(a, b);
- a.r != b && (a.r = 0 > b ? 0 : a.ka + b > a.F ? a.F - a.ka : b, !a.P && !a.wa && a[D](Pe))
- }
- function Am(a, b) {
- if (a.L != b) {
- var c = a.P;
- a.P = j;
- a.L = b;
- b + a.r > a.F && (a.r = a.F - a.L);
- b > a.ka && a.S(b);
- b > a.F && (a.r = 0, Bm(a, b), a.S(b));
- a.P = c;
- !a.P && !a.wa && a[D](Pe)
- }
- }
- function Bm(a, b) {
- b = ym(a, b);
- if (a.F != b) {
- var c = a.P;
- a.P = j;
- a.F = b;
- b < a.ka + a.r && a.S(b - a.r);
- b < a.L && (a.r = 0, Am(a, b), a.S(a.F));
- b < a.L + a.r && (a.r = a.F - a.L);
- a.P = c;
- !a.P && !a.wa && a[D](Pe)
- }
- }
- function ym(a, b) {
- return a.L + 1 * q[z]((b - a.L) / 1)
- }
- function Cm(a) {
- return 1 * q[z](a / 1)
- };
- function Dm(a) {
- rm[L](this, a);
- this.a = new xm;
- Ji(this.a, Pe, this.Yb, m, this)
- }
- S(Dm, rm);
- var Em = "dragvaluestart_" + Ri++,
- Fm = "dragvalueend_" + Ri++,
- Gm = "dragextentstart_" + Ri++,
- Hm = "dragextentend_" + Ri++,
- Im = "dragstart_" + Ri++,
- Jm = "dragend_" + Ri++;
- P = Dm[I];
- P.A = "horizontal";
- P.ab = m;
- P.Ab = j;
- P.Vb = j;
- P.Ka = function () {
- Dm.i.Ka[L](this);
- var a = this.R.b(Ze, Km(this.A));
- this.vb(a)
- };
- P.vb = function (a) {
- Dm.i.vb[L](this, a);
- Wi(a, Km(this.A));
- a = this.h();
- var b = fj(l, wf, a)[0];
- b || (b = this.R.b(Ze, wf), b[ib](zg, Me), a[Ea](b));
- this.b = this.d = b;
- this.h()[ib](zg, Eg);
- Lm(this)
- };
- P.Fa = function () {
- Dm.i.Fa[L](this);
- this.e = new Wl(this.b);
- this.g = new Wl(this.d);
- this.e.Ja = m;
- this.g.Ja = m;
- this.e.wb = this.g.wb = jh;
- this.u = new Il(this.h());
- Mm(this);
- this.h().tabIndex = 0;
- Nm(this)
- };
- function Mm(a) {
- Z(Z(Z(Z(Z(Z(tm(a), a.e, Ae, a.Wb), a.g, Ae, a.Wb), a.e, [Jg, df], a.Zb), a.g, [Jg, df], a.Zb), a.u, Nf, a.Bc), a.h(), Zf, a.Ic);
- a.Ab && Om(a, j)
- }
- P.Ga = function () {
- Dm.i.Ga[L](this);
- Bh(this.e, this.g, this.u, this.l)
- };
- P.Wb = function (a) {
- var b = a.d == this.e ? this.b : this.d,
- c;
- this.A == Yg ? (c = this.h()[Lb] - b[Yb], c = (c - a.top) / c * (Pm(this) - Qm(this)) + Qm(this)) : c = a[E] / (this.h()[vb] - b[Qa]) * (Pm(this) - Qm(this)) + Qm(this);
- c = a.d == this.e ? q.min(q.max(c, Qm(this)), this.n() + Cm(this.a.r)) : q.min(q.max(c, this.n()), Pm(this));
- Rm(this, b, c)
- };
- P.Zb = function (a) {
- var b = a[G] == Jg,
- c = this.h();
- b ? Wi(c, uf) : Xi(c, uf);
- c = a[Ib].handle;
- b ? Wi(c, xf) : Xi(c, xf);
- a = a.d == this.e;
- b ? (this[D](Im), this[D](a ? Em : Gm)) : (this[D](Jm), this[D](a ? Fm : Hm))
- };
- P.Bc = function (a) {
- var b = j,
- c;
- switch (a.K) {
- case 36:
- Sm(this, Qm(this));
- break;
- case 35:
- Sm(this, Pm(this));
- break;
- case 33:
- Tm(this, 10);
- break;
- case 34:
- Tm(this, -10);
- break;
- case 37:
- c = -1;
- Tm(this, a.ha ? 10 * c : 1 * c);
- break;
- case 40:
- Tm(this, a.ha ? -10 : -1);
- break;
- case 39:
- c = 1;
- Tm(this, a.ha ? 10 * c : 1 * c);
- break;
- case 38:
- Tm(this, a.ha ? 10 : 1);
- break;
- default:
- b = m
- }
- b && a.N()
- };
- P.Ic = function (a) {
- this.h().focus && this.h().focus();
- var b = a[Ib];
- if (!mj(this.b, b) && !mj(this.d, b)) {
- this.Pb(a);
- var b = Qm(this),
- c = Pm(this);
- if (this.A == Yg) {
- var d = this.b[Yb],
- e = this.h()[Lb] - d;
- a = Um(this, a) - d / 2;
- b = (c - b) * (e - a) / e + b
- } else d = this.b[Qa], e = this.h()[vb] - d, a = Um(this, a) - d / 2, b = (c - b) * a / e + b;
- this.f = b <= this.a.n() + Cm(this.a.r) / 2 ? this.b : this.d;
- this.ic = this.A == Yg ? this.Y < this.f[Vb] : this.Y > this.f[Cb] + this.f[Qa];
- b = cj(this.h());
- Z(Z(tm(this), b, ag, this.qc, j), this.h(), $f, this.Pb);
- this.j || (this.j = new Nj(200), Z(tm(this),
- this.j, Qj, this.$b));
- this.$b();
- this.j[Jb]()
- }
- };
- P.Xb = function (a) {
- Tm(this, 1 * (0 < a.d ? -1 : 1));
- a.N()
- };
- P.$b = function () {
- var a;
- if (this.A == Yg) {
- var b = this.Y,
- c = this.f[Vb];
- this.ic ? b < c && (a = Vm(this, this.f) + 10) : b > c + this.f[Yb] && (a = Vm(this, this.f) - 10)
- } else b = this.Y, c = this.f[Cb], this.ic ? b > c + this.f[Qa] && (a = Vm(this, this.f) + 10) : b < c && (a = Vm(this, this.f) - 10);
- mh(a) && Rm(this, this.f, a)
- };
- P.qc = function () {
- this.j && this.j[sb]();
- var a = cj(this.h());
- Ej(Ej(tm(this), a, ag, this.qc, j), this.h(), $f, this.Pb)
- };
- function Um(a, b) {
- var c, d = a.h();
- c = vj(b);
- d = vj(d);
- c = new Zi(c.x - d.x, c.y - d.y);
- return a.A == Yg ? c.y : c.x
- }
- P.Pb = function (a) {
- this.Y = Um(this, a)
- };
- function Vm(a, b) {
- if (b == a.b) return a.a.n();
- if (b == a.d) return a.a.n() + Cm(a.a.r);
- f(r("Illegal thumb element. Neither minThumb nor maxThumb"))
- }
- function Tm(a, b) {
- var c = Vm(a, a.b) + b,
- d = Vm(a, a.d) + b,
- c = Yi(c, Qm(a), Pm(a) - 0),
- d = Yi(d, Qm(a) + 0, Pm(a));
- Wm(a, c, d - c)
- }
- function Rm(a, b, c) {
- var d = l,
- e;
- b == a.d && (c <= ym(a.a, a.a.F) && c >= a.a.n() + 0) && (d = c - a.a.n());
- e = d || Cm(a.a.r);
- b == a.b && (c >= Qm(a) && c <= a.a.n() + e - 0) && (b = e - (c - a.a.n()), ym(a.a, c) + ym(a.a, b) == ym(a.a, c + b) && (Wm(a, c, b), d = l));
- d != l && zm(a.a, d)
- }
- function Wm(a, b, c) {
- Qm(a) <= b && (b <= Pm(a) - c && 0 <= c && c <= Pm(a) - b) && !(b == a.n() && c == Cm(a.a.r)) && (a.a.wa = j, zm(a.a, 0), a.a.S(b), zm(a.a, c), a.a.wa = m, a.Yb())
- }
- function Qm(a) {
- return ym(a.a, a.a.L)
- }
- function Pm(a) {
- return ym(a.a, a.a.F)
- }
- P.Yb = function () {
- Nm(this);
- Lm(this);
- this[D](Pe)
- };
- function Nm(a) {
- if (a.b && !a.ab) {
- var b = Xm(a, Vm(a, a.b)),
- c = Xm(a, Vm(a, a.d));
- a.A == Yg ? (a.b[J].top = b.y + qg, a.d[J].top = c.y + qg, a.c && (b = Ym(c.y, b.y, a.b[Yb]), a.c[J].top = b[lb] + qg, Ca(a.c[J], b[ub] + qg))) : (w(a.b[J], b.x + qg), w(a.d[J], c.x + qg), a.c && (b = Ym(b.x, c.x, a.b[Qa]), w(a.c[J], b[lb] + qg), ia(a.c[J], b[ub] + qg)))
- }
- }
- function Ym(a, b, c) {
- var d = q[Na](c / 2);
- return {
- offset: a + d,
- size: q.max(b - a + c - 2 * d, 0)
- }
- }
- function Xm(a, b) {
- var c = new Zi;
- if (a.b) {
- var d = Qm(a),
- e = Pm(a),
- e = b == d && d == e ? 0 : (b - d) / (e - d);
- a.A == Yg ? (d = a.h()[Lb] - a.b[Yb], e = q[z](e * d), c.x = a.b[Cb], c.y = d - e) : (d = q[z](e * (a.h()[vb] - a.b[Qa])), c.x = d, c.y = a.b[Vb])
- }
- return c
- }
- function Sm(a, b) {
- b = Yi(b, Qm(a), Pm(a));
- a.ab && a.I[sb](j);
- var c = new Vl,
- d = b <= a.a.n() + Cm(a.a.r) / 2 ? a.b : a.d,
- e = a.n(),
- g = Cm(a.a.r),
- h = Vm(a, d),
- k = Xm(a, h);
- 1 > q.abs(b - h) && (b = Yi(h + (b > h ? 1 : -1), Qm(a), Pm(a)));
- Rm(a, d, b);
- h = Xm(a, Vm(a, d));
- k = new nm(d, [k.x, k.y], a.A == Yg ? [d[Cb], h.y] : [h.x, d[Vb]], 100);
- k.d = m;
- c.add(k);
- if (a.c) {
- var k = Xm(a, e),
- s = Xm(a, e + g),
- e = k,
- g = s;
- d == a.b ? e = h : g = h;
- a.A == Yg ? (d = Ym(s.y, k.y, a.b[Yb]), e = Ym(g.y, e.y, a.b[Yb]), h = new nm(a.c, [a.c[Cb], d[lb]], [a.c[Cb], e[lb]], 100), d = new pm(a.c, d[ub], e[ub], 100), h.d = m, d.d = m, c.add(h), c.add(d)) :
- (d = Ym(k.x, s.x, a.b[Qa]), e = Ym(e.x, g.x, a.b[Qa]), h = new nm(a.c, [d[lb], a.c[Vb]], [e[lb], a.c[Vb]], 100), d = new om(a.c, d[ub], e[ub], 100), h.d = m, d.d = m, c.add(h), c.add(d))
- }
- a.I = c;
- Z(tm(a), c, df, a.xc);
- a.ab = j;
- c.zb(m)
- }
- P.xc = function () {
- this.ab = m
- };
- P.k = function () {
- Dm.i.k[L](this);
- this.j && this.j.m();
- delete this.j;
- this.I && this.I.m();
- delete this.I;
- delete this.b;
- delete this.d;
- this.c && delete this.c;
- this.a.m();
- delete this.a;
- this.u && (this.u.m(), delete this.u);
- this.l && (this.l.m(), delete this.l);
- this.e && (this.e.m(), delete this.e);
- this.g && (this.g.m(), delete this.g)
- };
- P.n = function () {
- return this.a.n()
- };
- P.S = function (a) {
- Rm(this, this.b, a)
- };
- function Lm(a) {
- var b = a.h(),
- c;
- b && (c = Qm(a), b[ib](ve, c), c = Pm(a), b[ib](ue, c), a = a.n(), b[ib](we, a))
- }
- function Om(a, b) {
- b ? (a.l || (a.l = new Pl(a.h())), Z(tm(a), a.l, bg, a.Xb)) : Ej(tm(a), a.l, bg, a.Xb)
- };
- function Zm(a) {
- Dm[L](this, a);
- zm(this.a, 0)
- }
- S(Zm, Dm);
- $m = {
- tc: Yg,
- sc: "horizontal"
- };
- function Km(a) {
- return a == Yg ? yf : vf
- };
- function an(a, b, c, d, e, g) {
- var h = g ? $m.tc : $m.sc,
- k, y;
- $[L](this, od, {
- "class": Fg + h
- });
- e = e == l ? 100 : e;
- c = c == l ? e / 2 : c;
- this.c = d == l ? 0 : d;
- this.g = e;
- 0 === c && (c = 1E-7);
- k = this.d = new Zm;
- if (k.A != h && (d = Km(k.A), g = Km(h), k.A = h, k.h())) {
- for (var h = k.h(), s = Vi(h), v = m, t = 0; t < s[H]; t++) s[t] == d && (Rh(s, t--, 1), v = j);
- v && (s[x](g), wa(h, s[Zb](bc)));
- w(k.b[J], k.b[J].top = N);
- w(k.d[J], k.d[J].top = N);
- k.c && (w(k.c[J], k.c[J].top = N), ia(k.c[J], Ca(k.c[J], N)));
- Nm(k)
- }
- k.Ka();
- a = jj(xd, l, a);
- this.a[Ea](a);
- this.a[Ea](k.h());
- k.Vb != j && k[D](cf) && (k.Vb = j, Mm(k), Xi(k.h(),
- tf));
- k.z && m != k.Ab && Om(k, m);
- k.Ab = m;
- Am(k.a, 0);
- Bm(k.a, 100);
- vm(k, this.h());
- y = this;
- setTimeout(function () {
- k.S(100 * (c / e));
- k[F](Pe, function () {
- y.e ? y.e = m : b(y.n())
- })
- }, 0);
- wk() && (a = k.h(), a = a != l ? a : p, a[F](Ug, El, j), a[F](Tg, El, j), a[F](Sg, El, j), a[F](Rg, El, j))
- }
- S(an, $);
- an[I].e = m;
- an[I].n = function () {
- return this.d.n() * ((this.g - this.c) / 100) + this.c
- };
- an[I].S = function (a, b) {
- b && (this.e = j);
- this.d.S((a - this.c) * (100 / (this.g - this.c)))
- };
- an[I].k = function () {
- if (wk()) {
- var a = this.d.h(),
- a = a != l ? a : p;
- a[yb](Ug, El, j);
- a[yb](Tg, El, j);
- a[yb](Sg, El, j);
- a[yb](Rg, El, j)
- }
- this.d.m();
- an.i.k[L](this)
- };
- var xl = 0.5,
- yl = 50,
- ul = 1E-7,
- tl = 0.33,
- vl = 1500;
- function bn(a) {
- $[L](this, a);
- this.q()
- }
- S(bn, $);
- bn[I].g = function (a) {
- var b = el;
- b.d.V[Wa][Za](a, 0);
- b.f.V[Wa][Za](a, 0)
- };
- bn[I].j = function (a) {
- var b = el;
- b.e[Xa][Za](a, 0);
- b.g[Xa][Za](a, 0)
- };
- bn[I].l = function (a) {
- var b = el;
- b.a[Gb][Za](a, 0);
- b.b[Gb][Za](a, 0)
- };
- bn[I].q = function () {
- if (!this.U) {
- bn.i.q[L](this);
- var a = new $(ej(this.h()));
- this.e = new an(Qg, R(this.l, this), tl, 0, 10, j);
- this.d = new an(jf, R(this.j, this), ul, 0, 1, j);
- this.c = new an(qf, R(this.g, this), vl, 40, 22050, j);
- a.p(this.e);
- a.p(this.d);
- a.p(this.c)
- }
- };
- function cn(a) {
- $[L](this, a);
- this.q()
- }
- S(cn, $);
- cn[I].g = function (a) {
- hl.Va = a
- };
- cn[I].j = function (a) {
- hl.Da = a
- };
- cn[I].l = function (a) {
- fl = a;
- u(al[Xa], fl)
- };
- cn[I].q = function () {
- if (!this.U) {
- cn.i.q[L](this);
- var a = new $(ej(this.h()));
- this.c = new an(ye, R(this.g, this), 0, 0, 1, j);
- this.d = new an(sg, R(this.j, this), 0, 0, 1, j);
- this.e = new an(Zg, R(this.l, this), fl, 0, 1, j);
- a.p(this.c);
- a.p(this.d);
- a.p(this.e)
- }
- };
- function dn(a) {
- $[L](this, a);
- this.q()
- }
- S(dn, $);
- P = dn[I];
- P.Cc = function (a) {
- kl = a;
- zl()
- };
- P.Kc = function (a) {
- ll = a;
- zl()
- };
- P.Hc = function (a) {
- if (a = 0 < q[z](a)) {
- if (!ml) {
- bl[M](cl);
- if (!nl) {
- var b = bl,
- c = il.currentTime;
- if (Ok()) b[Jb](c);
- else b[Db](c);
- nl = j
- }
- ml = j
- }
- } else ml && (ml = m, bl[Hb]());
- this.e.S(a ? 1 : 0, j)
- };
- P.Gc = function () {
- wl(this.d.n(), this.c.n())
- };
- P.Fc = function () {
- wl(this.d.n(), this.c.n())
- };
- P.q = function () {
- if (!this.U) {
- dn.i.q[L](this);
- var a = new $(ej(this.h()));
- this.g = new an(qf, R(this.Cc, this), 400, 40, 12E3, j);
- this.j = new an(vg, R(this.Kc, this), 5, 0, 40, j);
- this.e = new an(Uf, R(this.Hc, this), 0, 0, 1, j);
- this.d = new an(Gg, R(this.Gc, this), xl, 0.1, 25, j);
- this.c = new an($e, R(this.Fc, this), yl, 0, 100, j);
- a.p(this.g);
- a.p(this.j);
- a.p(this.e);
- a.p(this.d);
- a.p(this.c)
- }
- };
- function en() {
- return Zc
- }
- function fn() {
- return $c
- };
- function gn() {
- var a = Dk(new Ck, en);
- $[L](this, a)
- }
- S(gn, kk);
- P = gn[I];
- P.ca = 2;
- P.Qb = 2;
- P.fa = function () {
- return gn
- };
- P.Dc = function (a) {
- for (var b = a.K ? a.K : a.xb, c = this.d[ob][Ra](this.c[ob]), d = c[H], e; d--;)
- if (e = c[d], e.g == b) {
- switch (a[G]) {
- case Qf:
- e[Db]();
- break;
- case Sf:
- e[Rb]()
- }
- return
- }
- if (a[G] == Qf) switch (b) {
- case 189:
- Dl(this.c, this.c.ba - 1);
- break;
- case 187:
- Dl(this.c, this.c.ba + 1);
- break;
- case 219:
- Dl(this.d, this.d.ba - 1);
- break;
- case 221:
- Dl(this.d, this.d.ba + 1)
- }
- };
- P.q = function () {
- if (!this.U) {
- gn.i.q[L](this);
- this.g = new $(dj(Yf));
- this.ca = 820 > (-1 < !n[Sb].userAgent[C](Fd) ? n.innerWidth : p[rb][vb]) ? 1 : 2;
- hn(this);
- wk() || (this.e = R(this.Dc, this), Ji(p[K], Qf, this.e), Ji(p[K], Sf, this.e));
- new dn(dj(kf));
- new cn(dj(ef));
- new bn(dj(Ve));
- this.j = Gj(this, rg);
- var a = this.j.a;
- Q(Ye) ? qj(a, fg, Ye) : Ai(Ye, wh(qj, a));
- "undefined" !== typeof AudioContext ? il = new AudioContext : "undefined" !== typeof webkitAudioContext ? il = new webkitAudioContext : f(r("AudioContext not supported."));
- wk() ? p[F](Ug, rl, m) : sl();
- il && (ql || (ql = j))
- }
- };
- P.k = function () {
- gn.i.k[L](this);
- wk() || (Li(p[K], Qf, this.e), Li(p[K], Sf, this.e))
- };
- function hn(a) {
- a.c != l && (a.g[Fb](a.c), a.c.m());
- a.d != l && (a.g[Fb](a.d), a.d.m());
- Kk(l);
- var b = wk(),
- c, d, e = [81, 87, 69, 82, 84, 89, 85, 73, 79, 80],
- g = [50, 51, 53, 54, 55, 57, 48];
- b || (c = [Ld, Zd, qd, Md, Sd, ce, Vd, zd, Jd, Kd], d = [Mc, Nc, Oc, Rc, Sc, Uc, Lc]);
- 1 == a.ca && (e = e[Xb](e[H] / 2), g = g[Xb](g[H] / 2));
- a.g.p(a.c = new Cl(4, a.ca, e, g, c, d, j));
- e = [90, 88, 67, 86, 66, 78, 77, 188, 190, 191];
- g = [83, 68, 71, 72, 74, 76, 186];
- b || (c = [de, be, hd, Yd, gd, Id, Ed, Yc, bd, Jc], d = [Nd, md, ud, wd, Bd, Dd, Xc]);
- a.g.p(a.d = new Cl(2, a.ca, e, g, c, d));
- Wi(a.c.a, mf);
- a.Qb = a.ca;
- b || (Jk = a.d[ob][Ra](a.c[ob]))
- };
- function jn(a) {
- vk[L](this, a)
- }
- S(jn, vk);
- jn[I].ja = function () {
- return [Tc]
- };
- jn[I].Ma = function (a) {
- switch (a[mb]) {
- case Tc:
- var b = this[Eb]();
- b.ca = 820 > a.a[Ka] ? 1 : 2;
- b.ca != b.Qb && hn(b)
- }
- };
- jn[I].Oa = O();
- jn[I].ta = function () {
- jn.i.ta[L](this)
- };
- function kn() {
- var a = Dk(new Ck, fn);
- $[L](this, a)
- }
- S(kn, kk);
- kn[I].fa = function () {
- return kn
- };
- function ln(a) {
- vk[L](this, a)
- }
- S(ln, vk);
- ln[I].ja = function () {
- return []
- };
- ln[I].Ma = O();
- ln[I].Oa = O();
- ln[I].ta = function () {
- ln.i.ta[L](this)
- };
- function mn(a) {
- vk[L](this, a)
- }
- S(mn, vk);
- nn = [{
- view: ok,
- va: Fk
- }, {
- view: Ek,
- va: mn
- }, {
- view: gn,
- va: jn
- }, {
- view: kn,
- va: ln
- }];
- on = [];
- function pn(a) {
- this.a = a;
- this.c = [];
- this.b = N
- }
- S(pn, pk);
- pn[I].navigate = function (a) {
- var b = this.a;
- Zj(b) != a && (b.d ? (Yj(b, a, m), ak || U && $j(b, a, m, i), b.j && b.Ub()) : ($j(b, a, m), b.ua = b.e = u(b.l, a), b[D](new Rj)))
- };
- pn[I].Lb = function (a, b, c) {
- Q(a) && (a = ha(oe + Kh(a)[A](/\\:\w+/g, xc)[A](/\\\*/g, uc)[A](/\\\[/g, tc)[A](/\\\]/g, Bc)[A](/\\\{/g, vc)[A](/\\\}/g, Bc) + gc));
- this.c[x]({
- Lb: a,
- tb: b,
- context: c
- })
- };
- function qn(a, b) {
- var c = a.Lb[Ha](b);
- return c ? (a.tb[L](a.context, c), j) : m
- }
- pn[I].d = function () {
- var a = Zj(this.a);
- if (a != this.b) {
- this.$(Ag, {
- we: this.b,
- ve: a
- });
- this.b = a;
- a: for (var b = this.c || [], c = b[H], b = Q(b) ? b[zb](N) : b, d = 0; d < c; d++)
- if (d in b && qn(b[d], a)) break a
- }
- };
- function rn() {}
- S(rn, pk);
- Ba(rn[I], O());
- function sn() {}
- S(sn, rn);
- function tn() {}
- S(tn, sn);
- Ba(tn[I], function () {
- "undefined" !== typeof AudioContext || "undefined" !== typeof webkitAudioContext || un.t().nb.navigate(Kc)
- });
- vn = [{
- url: Kc,
- view: kn
- }, {
- url: Cc,
- Ya: tn,
- view: gn
- }];
- function wn() {
- var a = xn;
- this.M = Pd;
- this.Ya = a
- };
- function yn() {}
- yn[I].a = function () {
- return l
- };
- function zn() {}
- zn[I].a = function () {
- return l
- };
- function An() {
- this.ya = {};
- this.Aa = [];
- this.Xa = [];
- this.ac()
- }
- S(An, pk);
- P = An[I];
- P.ya = l;
- P.Aa = l;
- P.Xa = l;
- P.xa = l;
- P.M = l;
- P.Ra = l;
- P.Qa = l;
- P.Na = j;
- P.ac = O();
- P.kc = gh("Ra");
- P.jc = gh("Qa");
- P.Ob = gh("ya");
- Ba(P, function (a) {
- this.M = a;
- this.Db()
- });
- P.Db = function () {
- if (this.Aa != l)
- if (0 < this.Aa[H]) {
- var a = this.Aa[Ga](),
- b;
- this.xa = this.Xa[Ga]();
- b = new a;
- if (a = a[I].Na !== l && a[I].Na !== i) b.kc(R(this.Db, this)), this.xa !== l && b.jc(R(this.Mc, this)), this.ya !== l && b.Ob(this.ya);
- b[Ub](this.M);
- a || this.Db()
- } else this.Ra !== l && this.Ra(), this.Qa = this.Ra = this.M = l
- };
- P.Mc = function () {
- if (this.xa !== l) {
- var a = new this.xa,
- b = this.xa[I].Na !== l && this.xa[I].Na !== i;
- this.ya !== l && b && a.Ob(this.ya);
- a[Ub](this.M)
- }
- this.Qa != l && this.Qa();
- this.Qa = this.Ra = this.M = l
- };
- function Bn() {
- An[L](this)
- }
- S(Bn, An);
- /*
- Portions of this code are from MochiKit, received by
- The Closure Authors under the MIT license. All other code is Copyright
- 2005-2009 The Closure Authors. All Rights Reserved.
- */
- function Cn(a, b) {
- this.a = [];
- this.f = b || l
- }
- P = Cn[I];
- P.Ha = m;
- P.La = m;
- P.sb = m;
- P.vc = m;
- P.lc = m;
- P.wc = 0;
- P.Sb = function (a, b) {
- this.sb = m;
- Dn(this, a, b)
- };
- function Dn(a, b, c) {
- a.Ha = j;
- a.b = c;
- a.La = !b;
- En(a)
- }
- function Fn(a) {
- a.Ha && (a.lc || f(new Gn), a.lc = m)
- }
- P.tb = function (a) {
- Fn(this);
- Dn(this, j, a)
- };
- function Hn(a) {
- return Ph(a.a, function (a) {
- return ph(a[1])
- })
- }
- function En(a) {
- a.c && (a.Ha && Hn(a)) && (ih[Ia](a.c), delete a.c);
- a.d && (a.d.wc--, delete a.d);
- for (var b = a.b, c = m, d = m, k; a.a[H] && !a.sb;) {
- var e = a.a[Ga](),
- g = e[0],
- h = e[1],
- e = e[2];
- if (g = a.La ? h : g) try {
- k = g[L](e || a.f, b), mh(k) && (a.La = a.La && (k == b || k instanceof r), a.b = b = k), b instanceof Cn && (d = j, a.sb = j)
- } catch (s) {
- b = s, a.La = j, Hn(a) || (c = j)
- }
- }
- a.b = b;
- d && (d = b, k = R(a.Sb, a, j), g = R(a.Sb, a, m), d.a[x]([k, g, i]), d.Ha && En(d), b.vc = j);
- c && (a.c = ih[wb](function () {
- f(b)
- }, 0))
- }
- function Gn() {
- Ch[L](this)
- }
- S(Gn, Ch);
- Gn[I].message = "Deferred has already fired";
- ra(Gn[I], "AlreadyCalledError");
- function In(a, b, c) {
- c != l && ih[Ia](c);
- a.onload = jh;
- a.onerror = jh;
- a.onreadystatechange = jh;
- b && n[wb](function () {
- lj(a)
- }, 0)
- }
- function Jn(a, b) {
- var c = Cd + a + zc;
- b && (c += Wc + b);
- Ch[L](this, c)
- }
- S(Jn, Ch);
- function Kn() {}
- S(Kn, rn);
- P = Kn[I];
- P.Hb = l;
- P.Na = j;
- P.Ob = O();
- P.kc = gh("Hb");
- P.jc = O();
- function Ln() {}
- S(Ln, Kn);
- function Mn() {}
- S(Mn, Ln);
- Ba(Mn[I], function () {
- this.a = [];
- this.b()
- });
- Mn[I].a = l;
- Mn[I].b = function () {
- if (0 < this.a[H]) {
- var a = this.a[Ga](),
- b = R(this.b, this),
- c = {}, d = c[xb] || p,
- e;
- e = p[gb](Od);
- var g = {
- a: e,
- Wc: i
- }, h = new Cn(0, g),
- k = l,
- s = c.timeout != l ? c.timeout : 5E3;
- 0 < s && (k = n[wb](function () {
- In(e, j);
- var b = new Jn(1, Ud + a);
- Fn(h);
- Dn(h, m, b)
- }, s), g.Wc = k);
- e.onload = e.onreadystatechange = function () {
- if (!e.readyState || e.readyState == Wf || e.readyState == Se) In(e, c.ue || m, k), h.tb(l)
- };
- e.onerror = function () {
- In(e, j, k);
- var b = new Jn(0, rd + a);
- Fn(h);
- Dn(h, m, b)
- };
- gj(e, {
- type: Pg,
- charset: Wd,
- src: a
- });
- g = d.getElementsByTagName(yd);
- (!g ||
- 0 == g[H] ? d[rb] : g[0])[Ea](e);
- b && (h.a[x]([b, l, i]), h.Ha && En(h))
- } else this.Hb !== l && this.Hb()
- };
- function Nn() {
- this.a = [];
- this.b()
- }
- S(Nn, pk);
- Nn[I].b = O();
- Ba(Nn[I], function (a) {
- for (var b = this.a[H], c = 0; c < b; c++)(new this.a[c])[Ub](a)
- });
- function On() {
- Nn[L](this)
- }
- S(On, Nn);
- function Pn() {
- Nn[L](this)
- }
- S(Pn, On);
- Pn[I].b = function () {
- var a = un.t().nb,
- b = Zj(a.a);
- a.b = b;
- for (var c, d = 0, e = a.c[H]; d < e && !(c = a.c[d], qn(c, b)); d++);
- };
- function xn() {
- An[L](this)
- }
- S(xn, Bn);
- xn[I].ac = function () {
- this.Aa[x](Mn);
- this.Xa[x](l);
- this.Aa[x](Pn);
- this.Xa[x](l)
- };
- function Qn() {}
- S(Qn, yn);
- Gk = "SN::sto";
- Qn[I].a = function () {
- return [new wn]
- };
- function Rn() {}
- S(Rn, zn);
- Rn[I].a = function () {
- return [new Qn]
- };
- var Jj = "added",
- Kj = "removed",
- Hj = Se,
- mk = "pmvc:b",
- nk = "pmvc:u";
- function uk(a, b) {
- this.a = a;
- this.pb = b
- }
- uk[I].a = l;
- uk[I].pb = l;
- function Sn() {
- xa(this, tk.t())
- }
- xa(Sn[I], l);
- Sn[I].a = {};
- Sn[I].b = function (a) {
- var b = this.a[a[mb]];
- b && (new b)[Ub](a)
- };
- Sn[I].mb = function (a, b) {
- if (!this.a[a]) {
- var c = this[Eb],
- d = new uk(this.b, this),
- e = c.W[a];
- e ? e[x](d) : c.W[a] = [d]
- }
- this.a[a] = b
- };
- kh(Sn);
- function Tn() {}
- Tn[I].a = {};
- Tn[I].Jb = function (a) {
- this.a[a.a()] = a
- };
- kh(Tn);
- function qk() {
- this.c = Tn.t();
- this.b = Sn.t();
- this.a = tk.t()
- }
- kh(qk);
- P = qk[I];
- xa(P, l);
- P.mb = function (a, b) {
- this.b.mb(a, b)
- };
- P.Jb = function (a) {
- this.c.Jb(a)
- };
- P.Ib = function (a) {
- this.a.Ib(a)
- };
- P.Ua = function (a) {
- return this.a.Ua(a)
- };
- P.Kb = function (a) {
- return this.a.Kb(a)
- };
- P.$ = function (a, b, c) {
- this.Eb(new rk(a, b, c))
- };
- P.Eb = function (a) {
- this.a.Eb(a)
- };
- function un() {
- this.c = Tn.t();
- this.b = Sn.t();
- this.a = tk.t()
- }
- S(un, qk);
- kh(un);
- un[I].e = new Sj;
- un[I].f = function (a) {
- a = a[Ib];
- var b = Mj(a),
- c, b;
- if (!un.t().Ua(b)) {
- b = a;
- a instanceof kk && (b = a.fa());
- b = zf + rh(b);
- try {
- c = Lj[b].va
- } catch (d) {}
- un.t().Ib(new c(a))
- }
- };
- un[I].g = function (a) {
- a = Mj(a[Ib]);
- un.t().Ua(a) && un.t().Kb(a)
- };
- function Un(a) {
- for (var b = 0, c = on[H]; b < c; b++) a.Jb(new on[b])
- }
- function Vn() {
- for (var a = 0, b = nn[H]; a < b; a++) {
- var c = nn[a],
- d = c[Eb],
- c = c.va,
- e = d;
- d instanceof kk && (e = d.fa());
- e = zf + rh(e);
- Lj[e] = {
- key: e,
- va: c,
- view: d
- }
- }
- }
- un[I].d = function (a, b) {
- var c = {
- xe: a.kb || l,
- ye: b || l
- }, d = this.Ua(Mj(lk));
- if (a[Eb] != l) {
- if (d.aa instanceof a[Eb]) return;
- d.Mb(new a[Eb])
- }
- if (a.Ya != l) {
- for (var e = a.url, g = 0, h = 0; h < e[H]; ++h) g = 31 * g + e.charCodeAt(h), g %= 4294967296;
- e = gg + g;
- this.mb(e, a.Ya);
- this.$(e, c)
- }
- a.Nc != l && this.$(a.Nc, c);
- a.Uc != l && a[Eb] == l && d.Mb(new $(l, l, a.Uc()));
- a.Xc && this.$(Vg, a.Xc)
- };
- function Wn(a, b) {
- for (var c = 0, d = b[H]; c < d; ++c)
- for (var e = b[c].a(), g = l, h = 0, k = e[H]; h < k; ++h) g = e[h], a.mb(g.M, g.Ya)
- };
- Xn = new function () {
- this.a = xh()
- };
- function Yn(a) {
- this.d = a || N;
- this.f = Xn
- }
- Yn[I].b = j;
- Yn[I].c = m;
- function Zn(a) {
- a = new Date(a.f());
- return $n(a.getFullYear() - 2E3) + $n(a.getMonth() + 1) + $n(a.getDate()) + bc + $n(a.getHours()) + Vc + $n(a.getMinutes()) + Vc + $n(a.getSeconds()) + Hc + $n(q[Oa](a.getMilliseconds() / 10))
- }
- function $n(a) {
- return 10 > a ? Lc + a : fa(a)
- }
- function ao(a, b) {
- var c = (a.f() - b) / 1E3,
- d = c.toFixed(3),
- e = 0;
- if (1 > c) e = 2;
- else
- for (; 100 > c;) e++, c *= 10;
- for (; 0 < e--;) d = bc + d;
- return d
- }
- function bo(a) {
- Yn[L](this, a)
- }
- S(bo, Yn);
- bo[I].a = function (a) {
- var b = [];
- b[x](this.d, bc);
- this.b && b[x](ee, Zn(a), le);
- b[x](ee, ao(a, this.f.a), Cg);
- b[x](ee, a.a(), le);
- b[x](a.d(), ac);
- this.c && a.b() && b[x](a.c(), ac);
- return b[Zb](N)
- };
- function co(a) {
- Yn[L](this, a)
- }
- S(co, bo);
- co[I].a = function (a) {
- var b = [];
- b[x](this.d, bc);
- this.b && b[x](ee, Zn(a), le);
- b[x](ee, ao(a, this.f.a), Cg);
- b[x](ee, a.a(), le);
- b[x](a.d());
- this.c && a.b() && b[x](a.c(), ac);
- return b[Zb](N)
- };
- function eo(a, b) {
- ra(this, a);
- u(this, b)
- }
- eo[I].toString = hh("name");
- var fo = new eo("SHOUT", 1200),
- go = new eo("SEVERE", 1E3),
- ho = new eo("WARNING", 900);
- function io() {
- R(this.c, this);
- this.b = new bo;
- this.b.b = m;
- this.b.c = m;
- this.a = N;
- this.d = {}
- }
- io[I].c = function (a) {
- if (!this.d[a.a()]) {
- var b = this.b.a(a),
- c = jo;
- if (c) switch (a.e()) {
- case fo:
- ko(c, Kf, b);
- break;
- case go:
- ko(c, ff, b);
- break;
- case ho:
- ko(c, $g, b);
- break;
- default:
- ko(c, Ue, b)
- } else n[eb] ? n[eb].postError(b) : this.a += b
- }
- };
- jo = n.console;
- function ko(a, b, c) {
- if (a[b]) a[b](c);
- else a.log(c)
- };
- function lo() {
- io[L](this);
- this.f = new co
- }
- S(lo, io);
- lo[I].c = function (a) {
- if (!this.d[a.a()]) {
- var b = this.f.a(a),
- c = n.console,
- d = a.g();
- if (c) switch (a.e()) {
- case fo:
- mo(c, Kf, b, d);
- break;
- case go:
- mo(c, ff, b, d);
- break;
- case ho:
- mo(c, $g, b, d);
- break;
- default:
- mo(c, Ue, b, d)
- } else n[eb] ? n[eb].postError(b) : this.a += b
- }
- };
- function mo(a, b, c, d) {
- if (a[b]) a[b](c, d);
- else a.log(c, d)
- };
- new lo;
- new function () {
- lk = new ok(p[Pa](se));
- var a = un.t(),
- b = lk,
- c, e;
- a.nb = new pn(a.e);
- c = a.nb;
- ck(c.a, j);
- Ji(c.a, eg, c.d, m, c);
- b[F](mk, R(a.f, a));
- b[F](nk, R(a.g, a));
- c = Rn[I].a();
- Wn(a, c);
- Un(a);
- for (var c = 0, d = vn[H]; c < d; c++) e = vn[c], a.nb.Lb(e.url, R(a.d, a, e));
- Vn();
- lk[D](new Y(mk, lk));
- c = 0;
- for (d = jk[H]; c < d; c++) e = new jk[c](a), Un(e), Vn(), Wn(e);
- a.$(Pd, b)
- };
- })();
Advertisement
Add Comment
Please, Sign In to add comment