text: !function(a){function b(a){var b=[];for(var c in a)b.push(c+"="+a[c]);return b.join("&")}function c(){return(new Date).getTime()}var d=[],e={debug:!1,saveUrl:"path.to.saver.file.php",excludeEvents:[]};a.exports={event:{LOAD:"load",PRESS:"press",RELEASE:"release",MOVE:"move",ENTER:"enter",LEAVE:"leave",SWIPE:"swipe",TYPE:"type",SUBMIT:"submit",TEXT_CHANGE:"textchange",CALLOUT:"callout",ZOOM_IN:"zoomin",ZOOM_OUT:"zoomout"},config:function(a){for(var b in a)a.hasOwnProperty(b)&&null!==a[b]&&(e[b]=a[b]);return this},register:function(){if(-1===e.excludeEvents.indexOf(arguments[0])){var a=Array.prototype.slice.call(arguments),b=[c(),a[0],a.slice(1)];d.push(b),e.debug&&console&&console.log(b)}return this},finish:function(a,c){if(!a)return!1;a.events=JSON.stringify(d);var f=new XMLHttpRequest;f.open("POST",e.saveUrl,!0),f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),f.onreadystatechange=function(){4===f.readyState&&(200!==f.status?e.debug&&console&&console.log(f):"function"==typeof c&&c(f.responseText),d=[])},f.send(b(a))}}}("object"==typeof module?module:{},this);