(function($){$.toJSON=function(a){if(typeof JSON=="object"&&JSON.stringify)return JSON.stringify(a);var c=typeof a;if(a===null)return "null";if(c=="undefined")return undefined;if(c=="number"||c=="boolean")return a+"";if(c=="string")return $.quoteString(a);if(c=="object"){if(typeof a.toJSON=="function")return $.toJSON(a.toJSON());if(a.constructor===Date){var h=a.getUTCMonth()+1;if(h<10)h="0"+h;var i=a.getUTCDate();if(i<10)i="0"+i;var n=a.getUTCFullYear(),g=a.getUTCHours();if(g<10)g="0"+g;var e=a.getUTCMinutes();if(e<10)e="0"+e;var f=a.getUTCSeconds();if(f<10)f="0"+f;var b=a.getUTCMilliseconds();if(b<100)b="0"+b;if(b<10)b="0"+b;return '"'+n+"-"+h+"-"+i+"T"+g+":"+e+":"+f+"."+b+'Z"'}if(a.constructor===Array){for(var m=[],k=0;k<a.length;k++)m.push($.toJSON(a[k])||"null");return "["+m.join(",")+"]"}var l=[];for(var d in a){var j,c=typeof d;if(c=="number")j='"'+d+'"';else if(c=="string")j=$.quoteString(d);else continue;if(typeof a[d]=="function")continue;var o=$.toJSON(a[d]);l.push(j+":"+o)}return "{"+l.join(", ")+"}"}};$.evalJSON=function(src){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(src);return eval("("+src+")")};$.secureEvalJSON=function(src){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(src);var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@");filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered))return eval("("+src+")");else throw new SyntaxError("Error parsing JSON, source is not valid.")};$.quoteString=function(a){if(a.match(_escapeable))return '"'+a.replace(_escapeable,function(b){var a=_meta[b];if(typeof a==="string")return a;a=b.charCodeAt();return "\\u00"+Math.floor(a/16).toString(16)+(a%16).toString(16)})+'"';return '"'+a+'"'};var _escapeable=/["\\\x00-\x1f\x7f-\x9f]/g,_meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}})(jQuery)
