(function($){function toIntegersAtLease(n){return n<10?'0'+n:n}Date.prototype.toJSON=function(a){return this.getUTCFullYear()+'-'+toIntegersAtLease(this.getUTCMonth())+'-'+toIntegersAtLease(this.getUTCDate())};var f=/["\\\x00-\x1f\x7f-\x9f]/g;var g={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};$.quoteString=function(b){if(f.test(b)){return'"'+b.replace(f,function(a){var c=g[a];if(typeof c==='string'){return c}c=a.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+b+'"'};$.toJSON=function(o,a){var b=typeof(o);if(b=="undefined")return"undefined";else if(b=="number"||b=="boolean")return o+"";else if(o===null)return"null";if(b=="string"){return $.quoteString(o)}if(b=="object"&&typeof o.toJSON=="function")return o.toJSON(a);if(b!="function"&&typeof(o.length)=="number"){var c=[];for(var i=0;i<o.length;i++){c.push($.toJSON(o[i],a))}if(a)return"["+c.join(",")+"]";else return"["+c.join(", ")+"]"}if(b=="function"){throw new TypeError("Unable to convert object of type 'function' to json.");}var c=[];for(var k in o){var d;b=typeof(k);if(b=="number")d='"'+k+'"';else if(b=="string")d=$.quoteString(k);else continue;var e=$.toJSON(o[k],a);if(typeof(e)!="string"){continue}if(a)c.push(d+":"+e);else c.push(d+": "+e)}return"{"+c.join(", ")+"}"};$.compactJSON=function(o){return $.toJSON(o,true)};$.evalJSON=function(a){return eval("("+a+")")};$.secureEvalJSON=function(a){var b=a;b=b.replace(/\\["\\\/bfnrtu]/g,'@');b=b.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']');b=b.replace(/(?:^|:|,)(?:\s*\[)+/g,'');if(/^[\],:{}\s]*$/.test(b))return eval("("+a+")");else throw new SyntaxError("Error parsing JSON, source is not valid.");}})(jQuery);
