(function(){var k={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a,e){var d=[],b,c,f,h,g,i,j=0;a=e?String.fromCharCode.apply(null,a):k._utf8_encode(a);for(var l=a.length;j<l;){b=a.charCodeAt(j++);c=a.charCodeAt(j++);f=a.charCodeAt(j++);h=b>>2;b=(b&3)<<4|c>>4;g=(c&15)<<2|f>>6;i=f&63;if(isNaN(c))g=i=64;else if(isNaN(f))i=64;d.push(this._keyStr.charAt(h)+this._keyStr.charAt(b)+this._keyStr.charAt(g)+this._keyStr.charAt(i))}return d.join("")},decode:function(a){if(!a)return"";
var e=[],d,b,c,f,h,g=0;a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var i=a.length;g<i;){d=this._keyStr.indexOf(a.charAt(g++));b=this._keyStr.indexOf(a.charAt(g++));f=this._keyStr.indexOf(a.charAt(g++));h=this._keyStr.indexOf(a.charAt(g++));d=d<<2|b>>4;b=(b&15)<<4|f>>2;c=(f&3)<<6|h;e.push(String.fromCharCode(d));f!=64&&e.push(String.fromCharCode(b));h!=64&&e.push(String.fromCharCode(c))}return k._utf8_decode(e.join(""))},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var e=[],d=a.length,b=0;b<
d;b++){var c=a.charCodeAt(b);if(c<128)e.push(String.fromCharCode(c));else c>127&c<2048?e.push(String.fromCharCode(c>>6|192),String.fromCharCode(c&63|128)):e.push(String.fromCharCode(c>>12|224),String.fromCharCode(c>>6&63|128),String.fromCharCode(c&63|128))}return e.join("")},_utf8_decode:function(a){for(var e=[],d=0,b=c1=c2=0,c=a.length;d<c;){b=a.charCodeAt(d);if(b<128){e.push(String.fromCharCode(b));d++}else if(b>191&b<224){c2=a.charCodeAt(d+1);e.push(String.fromCharCode((b&31)<<6|c2&63));d+=2}else{c2=
a.charCodeAt(d+1);c3=a.charCodeAt(d+2);e.push(String.fromCharCode((b&15)<<12|(c2&63)<<6|c3&63));d+=3}}return e.join("")}};if(typeof window!="undefined"&&window.Foxmarks){Foxmarks.provide("Foxmarks.ThirdParty.Base64");Foxmarks.ThirdParty.Base64=k}else Base64=k})();
