liberty-prettydiff
Version:
Language aware code comparison tool for several web based languages. It also beautifies, minifies, and a few other things.
1,343 lines • 435 kB
Plain Text
/*!
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
*
* Date: Wed Feb 23 13:55:29 2011 -0500
*/
(function (a, b) {
function cg(a) {
return d.isWindow(a)
? a
: a.nodeType === 9
? a.defaultView || a.parentWindow
: !1;
}
function cd(a) {
if (!bZ[a]) {
var b = d("<" + a + ">").appendTo("body"),
c = b.css("display");
b.remove();
if (c === "none" || c === "") {
c = "block";
}
bZ[a] = c;
}
return bZ[a];
}
function cc(a, b) {
var c = {};
d.each(cb.concat.apply([], cb.slice(0, b)), function () {
c[this] = a;
});
return c;
}
function bY() {
try {
return new a.ActiveXObject("Microsoft.XMLHTTP");
} catch (b) {}
}
function bX() {
try {
return new a.XMLHttpRequest;
} catch (b) {}
}
function bW() {
d(a).unload(function () {
for (var a in bU) {
bU[a](0, 1);
}
});
}
function bQ(a, c) {
a.dataFilter && (c = a.dataFilter(c, a.dataType));
var e = a.dataTypes,
f = {},
g,
h,
i = e.length,
j,
k = e[0],
l,
m,
n,
o,
p;
for (g = 1; g < i; g += 1) {
if (g === 1) {
for (h in a.converters) {
typeof h === "string" && (f[h.toLowerCase()] = a.converters[h]);
}
}
l = k,
k = e[g];
if (k === "*") {
k = l;
} else if (l !== "*" && l !== k) {
m = l + " " + k,
n = f[m] || f["* " + k];
if (!n) {
p = b;
for (o in f) {
j = o.split(" ");
if (j[0] === l || j[0] === "*") {
p = f[j[1] + " " + k];
if (p) {
o = f[o],
o === !0
? n = p
: p === !0 && (n = o);
break;
}
}
}
}
!n && !p && d.error("No conversion from " + m.replace(" ", " to ")),
n !== !0 && (c = n
? n(c)
: p(o(c)));
}
}
return c;
}
function bP(a, c, d) {
var e = a.contents,
f = a.dataTypes,
g = a.responseFields,
h,
i,
j,
k;
for (i in g) {
i in d && (c[g[i]] = d[i]);
}
while (f[0] === "*") {
f.shift(),
h === b && (h = a.mimeType || c.getResponseHeader("content-type"));
}
if (h) {
for (i in e) {
if (e[i] && e[i].test(h)) {
f.unshift(i);
break;
}
}
}
if (f[0] in d) {
j = f[0];
} else {
for (i in d) {
if (!f[0] || a.converters[i + " " + f[0]]) {
j = i;
break;
}
k || (k = i);
}
j = j || k;
}
if (j) {
j !== f[0] && f.unshift(j);
return d[j];
}
}
function bO(a, b, c, e) {
if (d.isArray(b) && b.length) {
d.each(b, function (b, f) {
c || bq.test(a)
? e(a, f)
: bO(a + "[" + (typeof f === "object" || d.isArray(f)
? b
: "") + "]", f, c, e);
});
} else if (c || b == null || typeof b !== "object") {
e(a, b);
} else if (d.isArray(b) || d.isEmptyObject(b)) {
e(a, "");
} else {
for (var f in b) {
bO(a + "[" + f + "]", b[f], c, e);
}
}
}
function bN(a, c, d, e, f, g) {
f = f || c.dataTypes[0],
g = g || {},
g[f] = !0;
var h = a[f],
i = 0,
j = h
? h.length
: 0,
k = a === bH,
l;
for (; i < j && (k || !l); i += 1) {
l = h[i](c, d, e),
typeof l === "string" && (!k || g[l]
? l = b
: (c.dataTypes.unshift(l), l = bN(a, c, d, e, l, g)));
}
(k || !l) && !g["*"] && (l = bN(a, c, d, e, "*", g));
return l;
}
function bM(a) {
return function (b, c) {
typeof b !== "string" && (c = b, b = "*");
if (d.isFunction(c)) {
var e = b
.toLowerCase()
.split(bB),
f = 0,
g = e.length,
h,
i,
j;
for (; f < g; f += 1) {
h = e[f],
j = /^\+/.test(h),
j && (h = h.substr(1) || "*"),
i = a[h] = a[h] || [],
i[
j
? "unshift"
: "push"
](c);
}
}
};
}
function bo(a, b, c) {
var e = b === "width"
? bi
: bj,
f = b === "width"
? a.offsetWidth
: a.offsetHeight;
if (c === "border") {
return f;
}
d.each(e, function () {
c || (f -= parseFloat(d.css(a, "padding" + this)) || 0),
c === "margin"
? f += parseFloat(d.css(a, "margin" + this)) || 0
: f -= parseFloat(d.css(a, "border" + this + "Width")) || 0;
});
return f;
}
function ba(a, b) {
b.src
? d.ajax({
async : !1,
dataType: "script",
url : b.src
})
: d.globalEval(b.text || b.textContent || b.innerHTML || ""),
b.parentNode && b
.parentNode
.removeChild(b);
}
function _(a) {
return "getElementsByTagName" in a
? a.getElementsByTagName("*")
: "querySelectorAll" in a
? a.querySelectorAll("*")
: [];
}
function $(a, b) {
if (b.nodeType === 1) {
var c = b
.nodeName
.toLowerCase();
b.clearAttributes(),
b.mergeAttributes(a);
if (c === "object") {
b.outerHTML = a.outerHTML;
} else if (c !== "input" || a.type !== "checkbox" && a.type !== "radio") {
if (c === "option") {
b.selected = a.defaultSelected;
} else if (c === "input" || c === "textarea") {
b.defaultValue = a.defaultValue;
}
} else {
a.checked && (b.defaultChecked = b.checked = a.checked),
b.value !== a.value && (b.value = a.value);
}
b.removeAttribute(d.expando);
}
}
function Z(a, b) {
if (b.nodeType === 1 && d.hasData(a)) {
var c = d.expando,
e = d.data(a),
f = d.data(b, e);
if (e = e[c]) {
var g = e.events;
f = f[c] = d.extend({}, e);
if (g) {
delete f.handle,
f.events = {};
for (var h in g) {
for (var i = 0, j = g[h].length; i < j; i += 1) {
d
.event
.add(b, h + (g[h][i].namespace
? "."
: "") + g[h][i].namespace, g[h][i], g[h][i].data);
}
}
}
}
}
}
function Y(a, b) {
return d.nodeName(a, "table")
? a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody"))
: a;
}
function O(a, b, c) {
if (d.isFunction(b)) {
return d.grep(a, function (a, d) {
var e = !!b.call(a, d, a);
return e === c;
});
}
if (b.nodeType) {
return d.grep(a, function (a, d) {
return a === b === c;
});
}
if (typeof b === "string") {
var e = d.grep(a, function (a) {
return a.nodeType === 1;
});
if (J.test(b)) {
return d.filter(b, e, !c);
}
b = d.filter(b, e);
}
return d.grep(a, function (a, e) {
return d.inArray(a, b) >= 0 === c;
});
}
function N(a) {
return !a || !a.parentNode || a.parentNode.nodeType === 11;
}
function F(a, b) {
return (a && a !== "*"
? a + "."
: "") + b
.replace(r, "`")
.replace(s, "&");
}
function E(a) {
var b,
c,
e,
f,
g,
h,
i,
j,
k,
l,
m,
n,
o,
q = [],
r = [],
s = d._data(this, "events");
if (a.liveFired !== this && s && s.live && !a.target.disabled && (!a.button || a.type !== "click")) {
a.namespace && (n = new RegExp("(^|\\.)" + a.namespace.split(".").join("\\.(?:.*\\.)?") +
"(\\.|$)")),
a.liveFired = this;
var t = s
.live
.slice(0);
for (i = 0; i < t.length; i += 1) {
g = t[i],
g
.origType
.replace(p, "") === a.type
? r.push(g.selector)
: t.splice(i--, 1);
}
f = d(a.target).closest(r, a.currentTarget);
for (j = 0, k = f.length; j < k; j += 1) {
m = f[j];
for (i = 0; i < t.length; i += 1) {
g = t[i];
if (m.selector === g.selector && (!n || n.test(g.namespace)) && !m.elem.disabled) {
h = m.elem,
e = null;
if (g.preType === "mouseenter" || g.preType === "mouseleave") {
a.type = g.preType,
e = d(a.relatedTarget).closest(g.selector)[0];
}
(!e || e !== h) && q.push({elem: h, handleObj: g, level: m.level});
}
}
}
for (j = 0, k = q.length; j < k; j += 1) {
f = q[j];
if (c && f.level > c) {
break;
}
a.currentTarget = f.elem,
a.data = f.handleObj.data,
a.handleObj = f.handleObj,
o = f
.handleObj
.origHandler
.apply(f.elem, arguments);
if (o === !1 || a.isPropagationStopped()) {
c = f.level,
o === !1 && (b = !1);
if (a.isImmediatePropagationStopped()) {
break;
}
}
}
return b;
}
}
function C(a, c, e) {
var f = d.extend({}, e[0]);
f.type = a,
f.originalEvent = {},
f.liveFired = b,
d
.event
.handle
.call(c, f),
f.isDefaultPrevented() && e[0].preventDefault();
}
function w() {
return !0;
}
function v() {
return !1;
}
function g(a) {
for (var b in a) {
if (b !== "toJSON") {
return !1;
}
}
return !0;
}
function f(a, c, f) {
if (f === b && a.nodeType === 1) {
f = a.getAttribute("data-" + c);
if (typeof f === "string") {
try {
f = f === "true"
? !0
: f === "false"
? !1
: f === "null"
? null
: d.isNaN(f)
? e.test(f)
? d.parseJSON(f)
: f
: parseFloat(f);
} catch (g) {}
d.data(a, c, f);
} else {
f = b;
}
}
return f;
}
var c = a.document,
d = function () {
function I() {
if (!d.isReady) {
try {
c
.documentElement
.doScroll("left");
} catch (a) {
setTimeout(I, 1);
return;
}
d.ready();
}
}
var d = function (a, b) {
return new d
.fn
.init(a, b, g);
},
e = a.jQuery,
f = a.$,
g,
h = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,
i = /\S/,
j = /^\s+/,
k = /\s+$/,
l = /\d/,
m = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
n = /^[\],:{}\s]*$/,
o = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
p = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
q = /(?:^|:|,)(?:\s*\[)+/g,
r = /(webkit)[ \/]([\w.]+)/,
s = /(opera)(?:.*version)?[ \/]([\w.]+)/,
t = /(msie) ([\w.]+)/,
u = /(mozilla)(?:.*? rv:([\w.]+))?/,
v = navigator.userAgent,
w,
x = !1,
y,
z = "then done fail isResolved isRejected promise".split(" "),
A,
B = Object.prototype.toString,
C = Object.prototype.hasOwnProperty,
D = Array.prototype.push,
E = Array.prototype.slice,
F = String.prototype.trim,
G = Array.prototype.indexOf,
H = {};
d.fn = d.prototype = {
constructor: d,
each : function (a, b) {
return d.each(this, a, b);
},
end : function () {
return this.prevObject || this.constructor(null);
},
eq : function (a) {
return a === -1
? this.slice(a)
: this.slice(a, + a + 1);
},
first : function () {
return this.eq(0);
},
get : function (a) {
return a == null
? this.toArray()
: a < 0
? this[this.length + a]
: this[a];
},
init : function (a, e, f) {
var g,
i,
j,
k;
if (!a) {
return this;
}
if (a.nodeType) {
this.context = this[0] = a,
this.length = 1;
return this;
}
if (a === "body" && !e && c.body) {
this.context = c,
this[0] = c.body,
this.selector = "body",
this.length = 1;
return this;
}
if (typeof a === "string") {
g = h.exec(a);
if (!g || !g[1] && e) {
return !e || e.jquery
? (e || f).find(a)
: this
.constructor(e)
.find(a);
}
if (g[1]) {
e = e instanceof d
? e[0]
: e,
k = e
? e.ownerDocument || e
: c,
j = m.exec(a),
j
? d.isPlainObject(e)
? (a = [c.createElement(j[1])], d.fn.attr.call(a, e, !0))
: a = [k.createElement(j[1])]
: (j = d.buildFragment([g[1]], [k]), a = (j.cacheable
? d.clone(j.fragment)
: j.fragment).childNodes);
return d.merge(this, a);
}
i = c.getElementById(g[2]);
if (i && i.parentNode) {
if (i.id !== g[2]) {
return f.find(a);
}
this.length = 1,
this[0] = i;
}
this.context = c,
this.selector = a;
return this;
}
if (d.isFunction(a)) {
return f.ready(a);
}
a.selector !== b && (this.selector = a.selector, this.context = a.context);
return d.makeArray(a, this);
},
jquery : "1.5.1",
last : function () {
return this.eq(-1);
},
length : 0,
map : function (a) {
return this.pushStack(d.map(this, function (b, c) {
return a.call(b, c, b);
}));
},
push : D,
pushStack : function (a, b, c) {
var e = this.constructor();
d.isArray(a)
? D.apply(e, a)
: d.merge(e, a),
e.prevObject = this,
e.context = this.context,
b === "find"
? e.selector = this.selector + (this.selector
? " "
: "") + c
: b && (e.selector = this.selector + "." + b + "(" + c + ")");
return e;
},
ready : function (a) {
d.bindReady(),
y.done(a);
return this;
},
selector : "",
size : function () {
return this.length;
},
slice : function () {
return this.pushStack(E.apply(this, arguments), "slice", E.call(arguments).join(","));
},
sort : [].sort,
splice : [].splice,
toArray : function () {
return E.call(this, 0);
}
},
d.fn.init.prototype = d.fn,
d.extend = d.fn.extend = function () {
var a,
c,
e,
f,
g,
h,
i = arguments[0] || {},
j = 1,
k = arguments.length,
l = !1;
typeof i === "boolean" && (l = i, i = arguments[1] || {}, j = 2),
typeof i !== "object" && !d.isFunction(i) && (i = {}),
k === j && (i = this, j -= 1);
for (; j < k; j += 1) {
if ((a = arguments[j]) != null) {
for (c in a) {
e = i[c],
f = a[c];
if (i === f) {
continue;
}
l && f && (d.isPlainObject(f) || (g = d.isArray(f)))
? (g
? (g = !1, h = e && d.isArray(e)
? e
: [])
: h = e && d.isPlainObject(e)
? e
: {},
i[c] = d.extend(l, h, f))
: f !== b && (i[c] = f);
}
}
}
return i;
},
d.extend({
_Deferred : function () {
var a = [],
b,
c,
e,
f = {
cancel : function () {
e = 1,
a = [];
return this;
},
done : function () {
if (!e) {
var c = arguments,
g,
h,
i,
j,
k;
b && (k = b, b = 0);
for (g = 0, h = c.length; g < h; g += 1) {
i = c[g],
j = d.type(i),
j === "array"
? f
.done
.apply(f, i)
: j === "function" && a.push(i);
}
k && f.resolveWith(k[0], k[1]);
}
return this;
},
isResolved : function () {
return c || b;
},
resolve : function () {
f.resolveWith(d.isFunction(this.promise)
? this.promise()
: this,
arguments);
return this;
},
resolveWith: function (d, f) {
if (!e && !b && !c) {
c = 1;
try {
while (a[0]) {
a
.shift()
.apply(d, f);
}
} catch (g) {
throw g;
} finally {
b = [
d, f
],
c = 0;
}
}
return this;
}
};
return f;
},
access : function (a, c, e, f, g, h) {
var i = a.length;
if (typeof c === "object") {
for (var j in c) {
d.access(a, j, c[j], f, g, e);
}
return a;
}
if (e !== b) {
f = !h && f && d.isFunction(e);
for (var k = 0; k < i; k += 1) {
g(a[k], c, f
? e.call(a[k], k, g(a[k], c))
: e,
h);
}
return a;
}
return i
? g(a[0], c)
: b;
},
bindReady : function () {
if (!x) {
x = !0;
if (c.readyState === "complete") {
return setTimeout(d.ready, 1);
}
if (c.addEventListener) {
c.addEventListener("DOMContentLoaded", A, !1),
a.addEventListener("load", d.ready, !1);
} else if (c.attachEvent) {
c.attachEvent("onreadystatechange", A),
a.attachEvent("onload", d.ready);
var b = !1;
try {
b = a.frameElement == null;
} catch (e) {}
c.documentElement.doScroll && b && I();
}
}
},
browser : {},
Deferred : function (a) {
var b = d._Deferred(),
c = d._Deferred(),
e;
d.extend(b, {
fail : c.done,
isRejected: c.isResolved,
promise : function (a) {
if (a == null) {
if (e) {
return e;
}
e = a = {};
}
var c = z.length;
while (c--) {
a[z[c]] = b[z[c]];
}
return a;
},
reject : c.resolve,
rejectWith: c.resolveWith,
then : function (a, c) {
b
.done(a)
.fail(c);
return this;
}
}),
b
.done(c.cancel)
.fail(b.cancel),
delete b.cancel,
a && a.call(b, b);
return b;
},
each : function (a, c, e) {
var f,
g = 0,
h = a.length,
i = h === b || d.isFunction(a);
if (e) {
if (i) {
for (f in a) {
if (c.apply(a[f], e) === !1) {
break;
}
}
} else {
for (; g < h;) {
if (c.apply(a[g++], e) === !1) {
break;
}
}
} else if (i) {
for (f in a) {
if (c.call(a[f], f, a[f]) === !1) {
break;
}
}
} else {
for (var j = a[0]; g < h && c.call(j, g, j) !== !1; j = a[g += 1]) {}
}
}
return a;
},
error : function (a) {
throw a;
},
globalEval : function (a) {
if (a && i.test(a)) {
var b = c.head || c.getElementsByTagName("head")[0] || c.documentElement,
e = c.createElement("script");
d
.support
.scriptEval()
? e.appendChild(c.createTextNode(a))
: e.text = a,
b.insertBefore(e, b.firstChild),
b.removeChild(e);
}
},
grep : function (a, b, c) {
var d = [],
e;
c = !!c;
for (var f = 0, g = a.length; f < g; f += 1) {
e = !!b(a[f], f),
c !== e && d.push(a[f]);
}
return d;
},
guid : 1,
inArray : function (a, b) {
if (b.indexOf) {
return b.indexOf(a);
}
for (var c = 0, d = b.length; c < d; c += 1) {
if (b[c] === a) {
return c;
}
}
return -1;
},
isArray : Array.isArray || function (a) {
return d.type(a) === "array";
},
isEmptyObject: function (a) {
for (var b in a) {
return !1;
}
return !0;
},
isFunction : function (a) {
return d.type(a) === "function";
},
isNaN : function (a) {
return a == null || !l.test(a) || isNaN(a);
},
isPlainObject: function (a) {
if (!a || d.type(a) !== "object" || a.nodeType || d.isWindow(a)) {
return !1;
}
if (a.constructor && !C.call(a, "constructor") && !C.call(a.constructor.prototype, "isPrototypeOf")) {
return !1;
}
var c;
for (c in a) {}
return c === b || C.call(a, c);
},
isReady : !1,
isWindow : function (a) {
return a && typeof a === "object" && "setInterval" in a;
},
makeArray : function (a, b) {
var c = b || [];
if (a != null) {
var e = d.type(a);
a.length == null || e === "string" || e === "function" || e === "regexp" || d.isWindow(a)
? D.call(c, a)
: d.merge(c, a);
}
return c;
},
map : function (a, b, c) {
var d = [],
e;
for (var f = 0, g = a.length; f < g; f += 1) {
e = b(a[f], f, c),
e != null && (d[d.length] = e);
}
return d
.concat
.apply([], d);
},
merge : function (a, c) {
var d = a.length,
e = 0;
if (typeof c.length === "number") {
for (var f = c.length; e < f; e += 1) {
a[d++] = c[e];
}
} else {
while (c[e] !== b) {
a[d++] = c[e++];
}
}
a.length = d;
return a;
},
noConflict : function (b) {
a.$ = f,
b && (a.jQuery = e);
return d;
},
nodeName : function (a, b) {
return a.nodeName && a
.nodeName
.toUpperCase() === b.toUpperCase();
},
noop : function () {},
now : function () {
return (new Date).getTime();
},
parseJSON : function (b) {
if (typeof b !== "string" || !b) {
return null;
}
b = d.trim(b);
if (n.test(b.replace(o, "@").replace(p, "]").replace(q, ""))) {
return a.JSON && a.JSON.parse
? a
.JSON
.parse(b)
: (new Function("return " + b))();
}
d.error("Invalid JSON: " + b);
},
parseXML : function (b, c, e) {
a.DOMParser
? (e = new DOMParser, c = e.parseFromString(b, "text/xml"))
: (c = new ActiveXObject("Microsoft.XMLDOM"), c.async = "false", c.loadXML(b)),
e = c.documentElement,
(!e || !e.nodeName || e.nodeName === "parsererror") && d.error("Invalid XML: " +
b);
return c;
},
proxy : function (a, c, e) {
arguments.length === 2 && (typeof c === "string"
? (e = a, a = e[c], c = b)
: c && !d.isFunction(c) && (e = c, c = b)),
!c && a && (c = function () {
return a.apply(e || this, arguments);
}),
a && (c.guid = a.guid = a.guid || c.guid || d.guid++);
return c;
},
ready : function (a) {
a === !0 && d.readyWait--;
if (!d.readyWait || a !== !0 && !d.isReady) {
if (!c.body) {
return setTimeout(d.ready, 1);
}
d.isReady = !0;
if (a !== !0 && --d.readyWait > 0) {
return;
}
y.resolveWith(c, [d]),
d.fn.trigger && d(c)
.trigger("ready")
.unbind("ready");
}
},
readyWait : 1,
sub : function () {
function a(b, c) {
return new a
.fn
.init(b, c);
}
d.extend(!0, a, this),
a.superclass = this,
a.fn = a.prototype = this(),
a.fn.constructor = a,
a.subclass = this.subclass,
a.fn.init = function b(b, c) {
c && c instanceof d && !(c instanceof a) && (c = a(c));
return d
.fn
.init
.call(this, b, c, e);
},
a.fn.init.prototype = a.fn;
var e = a(c);
return a;
},
trim : F
? function (a) {
return a == null
? ""
: F.call(a);
}
: function (a) {
return a == null
? ""
: (a + "")
.replace(j, "")
.replace(k, "");
},
type : function (a) {
return a == null
? String(a)
: H[B.call(a)] || "object";
},
uaMatch : function (a) {
a = a.toLowerCase();
var b = r.exec(a) || s.exec(a) || t.exec(a) || a.indexOf("compatible") < 0 && u.exec(a) || [];
return {
browser: b[1] || "",
version: b[2] || "0"
};
},
when : function (a) {
var b = arguments.length,
c = b <= 1 && a && d.isFunction(a.promise)
? a
: d.Deferred(),
e = c.promise();
if (b > 1) {
var f = E.call(arguments, 0),
g = b,
h = function (a) {
return function (b) {
f[a] = arguments.length > 1
? E.call(arguments, 0)
: b,
--g || c.resolveWith(e, f);
};
};
while (b--) {
a = f[b],
a && d.isFunction(a.promise)
? a
.promise()
.then(h(b), c.reject)
: --g;
}
g || c.resolveWith(e, f);
} else {
c !== a && c.resolve(a);
}
return e;
}
}),
y = d._Deferred(),
d.each("Boolean Number String Function Array Date RegExp Object".split(" "), function (a, b) {
H["[object " + b + "]"] = b.toLowerCase();
}),
w = d.uaMatch(v),
w.browser && (d.browser[w.browser] = !0, d.browser.version = w.version),
d.browser.webkit && (d.browser.safari = !0),
G && (d.inArray = function (a, b) {
return G.call(b, a);
}),
i.test("Â ") && (j = /^[\s\xA0]+/, k = /[\s\xA0]+$/),
g = d(c),
c.addEventListener
? A = function () {
c.removeEventListener("DOMContentLoaded", A, !1),
d.ready();
}
: c.attachEvent && (A = function () {
c.readyState === "complete" && (c.detachEvent("onreadystatechange", A), d.ready());
});
return d;
}();
(function () {
d.support = {};
var b = c.createElement("div");
b.style.display = "none",
b.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;" +
"'>a</a><input type='checkbox'/>";
var e = b.getElementsByTagName("*"),
f = b.getElementsByTagName("a")[0],
g = c.createElement("select"),
h = g.appendChild(c.createElement("option")),
i = b.getElementsByTagName("input")[0];
if (e && e.length && f) {
d.support = {
boxModel : null,
checkClone : !1,
checkOn : i.value === "on",
cssFloat : !!f.style.cssFloat,
deleteExpando : !0,
hrefNormalized : f.getAttribute("href") === "/a",
htmlSerialize : !!b
.getElementsByTagName("link")
.length,
inlineBlockNeedsLayout: !1,
leadingWhitespace : b.firstChild.nodeType === 3,
noCloneChecked : !0,
noCloneEvent : !0,
opacity : /^0.55$/.test(f.style.opacity),
optDisabled : !1,
optSelected : h.selected,
reliableHiddenOffsets : !0,
shrinkWrapBlocks : !1,
style : /red/.test(f.getAttribute("style")),
tbody : !b
.getElementsByTagName("tbody")
.length
},
i.checked = !0,
d.support.noCloneChecked = i
.cloneNode(!0)
.checked,
g.disabled = !0,
d.support.optDisabled = !h.disabled;
var j = null;
d.support.scriptEval = function () {
if (j === null) {
var b = c.documentElement,
e = c.createElement("script"),
f = "script" + d.now();
try {
e.appendChild(c.createTextNode("window." + f + "=1;"));
} catch (g) {}
b.insertBefore(e, b.firstChild),
a[f]
? (j = !0, delete a[f])
: j = !1,
b.removeChild(e),
b = e = f = null;
}
return j;
};
try {
delete b.test;
} catch (k) {
d.support.deleteExpando = !1;
}
!b.addEventListener && b.attachEvent && b.fireEvent && (b.attachEvent("onclick", function l() {
d.support.noCloneEvent = !1,
b.detachEvent("onclick", l);
}), b.cloneNode(!0).fireEvent("onclick")),
b = c.createElement("div"),
b.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>";
var m = c.createDocumentFragment();
m.appendChild(b.firstChild),
d.support.checkClone = m
.cloneNode(!0)
.cloneNode(!0)
.lastChild
.checked,
d(function () {
var a = c.createElement("div"),
b = c.getElementsByTagName("body")[0];
if (b) {
a.style.width = a.style.paddingLeft = "1px",
b.appendChild(a),
d.boxModel = d.support.boxModel = a.offsetWidth === 2,
"zoom" in a.style && (a.style.display = "inline", a.style.zoom = 1, d.support.inlineBlockNeedsLayout = a.offsetWidth === 2, a.style.display = "", a.innerHTML = "<div style='width:4px;'></div>", d.support.shrinkWrapBlocks = a.offsetWidth !== 2),
a.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></t" +
"able>";
var e = a.getElementsByTagName("td");
d.support.reliableHiddenOffsets = e[0].offsetHeight === 0,
e[0].style.display = "",
e[1].style.display = "none",
d.support.reliableHiddenOffsets = d.support.reliableHiddenOffsets && e[0].offsetHeight === 0,
a.innerHTML = "",
b
.removeChild(a)
.style
.display = "none",
a = e = null;
}
});
var n = function (a) {
var b = c.createElement("div");
a = "on" + a;
if (!b.attachEvent) {
return !0;
}
var d = a in b;
d || (b.setAttribute(a, "return;"), d = typeof b[a] === "function"),
b = null;
return d;
};
d.support.submitBubbles = n("submit"),
d.support.changeBubbles = n("change"),
b = e = f = null;
}
})();
var e = /^(?:\{.*\}|\[.*\])$/;
d.extend({
_data : function (a, b, c) {
return d.data(a, b, c, !0);
},
acceptData: function (a) {
if (a.nodeName) {
var b = d.noData[
a
.nodeName
.toLowerCase()
];
if (b) {
return b !== !0 && a.getAttribute("classid") === b;
}
}
return !0;
},
cache : {},
data : function (a, c, e, f) {
if (d.acceptData(a)) {
var g = d.expando,
h = typeof c === "string",
i,
j = a.nodeType,
k = j
? d.cache
: a,
l = j
? a[d.expando]
: a[d.expando] && d.expando;
if ((!l || f && l && !k[l][g]) && h && e === b) {
return;
}
l || (j
? a[d.expando] = l = ++d.uuid
: l = d.expando),
k[l] || (k[l] = {}, j || (k[l].toJSON = d.noop));
if (typeof c === "object" || typeof c === "function") {
f
? k[l][g] = d.extend(k[l][g], c)
: k[l] = d.extend(k[l], c);
}
i = k[l],
f && (i[g] || (i[g] = {}), i = i[g]),
e !== b && (i[c] = e);
if (c === "events" && !i[c]) {
return i[g] && i[g].events;
}
return h
? i[c]
: i;
}
},
expando : "jQuery" + (d.fn.jquery + Math.random()).replace(/\D/g, ""),
hasData : function (a) {
a = a.nodeType
? d.cache[a[d.expando]]
: a[d.expando];
return !!a && !g(a);
},
noData : {
applet: !0,
embed : !0,
object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
},
removeData: function (b, c, e) {
if (d.acceptData(b)) {
var f = d.expando,
h = b.nodeType,
i = h
? d.cache
: b,
j = h
? b[d.expando]
: d.expando;
if (!i[j]) {
return;
}
if (c) {
var k = e
? i[j][f]
: i[j];
if (k) {
delete k[c];
if (!g(k)) {
return;
}
}
}
if (e) {
delete i[j][f];
if (!g(i[j])) {
return;
}
}
var l = i[j][f];
d.support.deleteExpando || i != a
? delete i[j]
: i[j] = null,
l
? (i[j] = {}, h || (i[j].toJSON = d.noop), i[j][f] = l)
: h && (d.support.deleteExpando
? delet