var UR=UR||{};UR.util={newGUID:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var b=Math.random()*16|0,a=d=="x"?b:(b&3|8);return a.toString(16)})},myGUID:function(){return localStorage.GUID||function(){localStorage.GUID=UR.util.newGUID();return localStorage.GUID}()},sha256:Sha256.hash,base64encode:function(b){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");var d="",e="",g=b.length%3;if(g>0){for(;g<3;g++){e+="=";b+="\0"}}for(g=0;g<b.length;g+=3){if(g>0&&(g/3*4)%76==0){d+="\r\n"}var f=(b.charCodeAt(g)<<16)+(b.charCodeAt(g+1)<<8)+b.charCodeAt(g+2);f=[(f>>>18)&63,(f>>>12)&63,(f>>>6)&63,f&63];d+=a[f[0]]+a[f[1]]+a[f[2]]+a[f[3]]}return d.substring(0,d.length-e.length)+e},base64decode:function(e){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");var d={};for(var b=0;b<a.length;b++){d[a[b]]=b}e=e.replace(new RegExp("[^"+a.join("")+"=]","g"),"");var g=(e.charAt(e.length-1)=="="?(e.charAt(e.length-2)=="="?"AA":"A"):"");var f="";e=e.substr(0,e.length-g.length)+g;for(var j=0;j<e.length;j+=4){var h=(d[e.charAt(j)]<<18)+(d[e.charAt(j+1)]<<12)+(d[e.charAt(j+2)]<<6)+d[e.charAt(j+3)];f+=String.fromCharCode((h>>>16)&255,(h>>>8)&255,h&255)}return f.substring(0,f.length-g.length)}};