(function(){String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),window._GM_NAMESPACE=window._GM_NAMESPACE||"dito",window._GM_ENVIRONMENT=window._GM_ENVIRONMENT||"production",window[_GM_NAMESPACE]=function(){var init,provide,that;that={};var acronyms,Anonymous,Api,AppSettings,CurrentUser,CustomFile,domains,errors,FacebookApp,Helpers,identify,modulesNames,queueBase,raise,ready,Referrer,Session,Source,track,TrackQueue,Rollbar,Login;return init=function(e){return Helpers.typeOf(e)==="string"&&(e={apiKey:e}),Helpers.extend(AppSettings,e),Initializers.init("dom","validateClient","loadFacebookSDK","loadFacebookAppInfo","loadGooglePlusSDK","loadAuthIframe","loadBrowserNotification"),Session.User.identifyFromSession(),Referral.check(),Utm.check(),DitoNotification.trackClick(),DitoNotification.identifyFromNotification()},provide=function(name,fn,publicMethod){publicMethod==null&&(publicMethod=!0),eval(name+" = "+fn.toString()+"()");if(publicMethod)return eval("that[name] = "+name)},that.init=init,that.provide=provide,that}(),window.graphmonitor=window.GraphMonitor=window.GM=window[_GM_NAMESPACE]}).call(this),function(){window[_GM_NAMESPACE].provide("Helpers",function(){var e;return e={},e})}.call(this),function(){window[_GM_NAMESPACE].provide("Helpers.addEvent",function(){var e;return e=function(e,t,n){return e.attachEvent?(e["e"+t+n]=n,e[t+n]=function(){return e["e"+t+n](window.event)},e.attachEvent("on"+t,e[t+n])):e.addEventListener(t,n,!1)},e})}.call(this),function(){window[_GM_NAMESPACE].provide("Helpers.addScript",function(){var e;return e=function(e,t,n){var r,i,s,o;return n=n===!1?!1:!0,r=document.getElementsByTagName("body")[0],o=document.createElement("script"),o.type="text/javascript",n?(s=!1,o.src=e,o.onload=o.onreadystatechange=function(){if(!s&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete"))return s=!0,t&&t.call(this),o.onload=o.onreadystatechange=null},i=r.hasChildNodes()?r.childNodes[0]:null,r.insertBefore(o,i)):(o.text=e,r.insertBefore(o,r.childNodes[0]),t())},e})}.call(this),function(){window[_GM_NAMESPACE].provide("Helpers.Base64",function(){var e;return e={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){var n,r,i,s,o,u,a,f,l;l="",n=void 0,r=void 0,i=void 0,s=void 0,o=void 0,u=void 0,a=void 0,f=0,t=e._utf8_encode(t);while(f>2,o=(n&3)<<4|r>>4,u=(r&15)<<2|i>>6,a=i&63,isNaN(r)?u=a=64:isNaN(i)&&(a=64),l=l+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a);return l},decode:function(t){var n,r,i,s,o,u,a,f,l;l="",n=void 0,r=void 0,i=void 0,s=void 0,o=void 0,u=void 0,a=void 0,f=0,t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f>4,r=(o&15)<<4|u>>2,i=(u&3)<<6|a,l+=String.fromCharCode(n),u!==64&&(l+=String.fromCharCode(r)),a!==64&&(l+=String.fromCharCode(i));return l=e._utf8_decode(l),l},_utf8_encode:function(e){var t,n,r;e=e.replace(/\r\n/g,"\n"),r="",n=0;while(n127&&t<2048?(r+=String.fromCharCode(t>>6|192),r+=String.fromCharCode(t&63|128)):(r+=String.fromCharCode(t>>12|224),r+=String.fromCharCode(t>>6&63|128),r+=String.fromCharCode(t&63|128)),n++;return r},_utf8_decode:function(e){var t,n,r,i,s,o;o="",s=0,t=n=r=0;while(s191&&t<224?(r=e.charCodeAt(s+1),o+=String.fromCharCode((t&31)<<6|r&63),s+=2):(r=e.charCodeAt(s+1),i=e.charCodeAt(s+2),o+=String.fromCharCode((t&15)<<12|(r&63)<<6|i&63),s+=3);return o}},e})}.call(this),function(){window[_GM_NAMESPACE].provide("Helpers.clone",function(){var e;return e=function(e,t){var n;if(e==null||typeof e!="object")return e;if(e.constructor!==Object&&e.constructor!==Array)return e;if(e.constructor===Date||e.constructor===RegExp||e.constructor===Function||e.constructor===String||e.constructor===Number||e.constructor===Boolean)return new e.constructor(e);t=t||new e.constructor;for(n in e)t[n]=typeof t[n]=="undefined"?Helpers.extend(e[n],null):t[n];return t},e})}.call(this),function(){window[_GM_NAMESPACE].provide("Helpers.cookie",function(){function n(e){return u.raw?e:encodeURIComponent(e)}function r(e){return u.raw?e:decodeURIComponent(e)}function i(e){return n(u.json?JSON.stringify(e):String(e))}function s(e){e.indexOf('"')===0&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(t," ")),u.json?JSON.parse(e):e}catch(n){}}function o(e,t){var n=u.raw?e:s(e);return typeof t=="function"?t(n):n}var e;e=null;var t=/\+/g,u=e=function(e,t,s){if(arguments.length>1&&typeof t!="function"){s=dito.Helpers.extend(u.defaults,s);if(typeof s.expires=="number"){var a=s.expires,f=s.expires=new Date;f.setTime(+f+a*864e5)}return document.cookie=[n(e),"=",i(t),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}var l=e?undefined:{},c=document.cookie?document.cookie.split("; "):[];for(var h=0,p=c.length;h>>32-t,n},g=function(e){var t,n,r,i;n="",t=void 0,r=void 0,i=void 0,t=0;while(t<=6)r=e>>>t*4+4&15,i=e>>>t*4&15,n+=r.toString(16)+i.toString(16),t+=2;return n},d=function(e){var t,n,r;n="",t=void 0,r=void 0,t=7;while(t>=0)r=e>>>t*4&15,n+=r.toString(16),t--;return n},c=function(e){var t,n,r;e=e.replace(/\r\n/g,"\n"),r="",n=0;while(n127&&t<2048?(r+=String.fromCharCode(t>>6|192),r+=String.fromCharCode(t&63|128)):(r+=String.fromCharCode(t>>12|224),r+=String.fromCharCode(t>>6&63|128),r+=String.fromCharCode(t&63|128)),n++;return r},p=void 0,v=void 0,m=void 0,h=new Array(80),o=1732584193,u=4023233417,a=2562383102,f=271733878,l=3285377520,t=void 0,n=void 0,r=void 0,i=void 0,s=void 0,E=void 0,y=c(y),b=y.length,S=new Array,v=0;while(v>>29),S.push(b<<3&4294967295),p=0;while(pn.cacheLength&&delete t[e.shift()],t[r+" "]=i}var e=[];return t}function ot(e){return e[b]=!0,e}function ut(e){var t=h.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function at(e,t){var r=e.split("|"),i=e.length;while(i--)n.attrHandle[r[i]]=t}function ft(e,t){var n=t&&e,r=n&&e.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||k)-(~e.sourceIndex||k);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function lt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function ht(e){return ot(function(t){return t=+t,ot(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function pt(e){return e&&typeof e.getElementsByTagName!="undefined"&&e}function dt(){}function vt(e){var t=0,n=e.length,r="";for(;t1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function yt(e,t,n){var r=0,i=t.length;for(;r-1&&(s[f]=!(o[f]=c))}}else g=bt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):_.apply(o,g)})}function Et(e){var t,r,i,s=e.length,o=n.relative[e[0].type],u=o||n.relative[" "],f=o?1:0,l=mt(function(e){return e===t},u,!0),c=mt(function(e){return P(t,e)>-1},u,!0),h=[function(e,n,r){var i=!o&&(r||n!==a)||((t=n).nodeType?l(e,n,r):c(e,n,r));return t=null,i}];for(;f1&>(h),f>1&&vt(e.slice(0,f-1).concat({value:e[f-2].type===" "?"*":""})).replace(R,"$1"),r,f0,i=e.length>0,s=function(s,o,u,f,l){var c,p,d,v=0,m="0",g=s&&[],y=[],b=a,w=s||i&&n.find.TAG("*",l),S=E+=b==null?1:Math.random()||.1,x=w.length;l&&(a=o!==h&&o);for(;m!==x&&(c=w[m])!=null;m++){if(i&&c){p=0;while(d=e[p++])if(d(c,o,u)){f.push(c);break}l&&(E=S)}r&&((c=!d&&c)&&v--,s&&g.push(c))}v+=m;if(r&&m!==v){p=0;while(d=t[p++])d(g,y,o,u);if(s){if(v>0)while(m--)!g[m]&&!y[m]&&(y[m]=O.call(f));y=bt(y)}_.apply(f,y),l&&!s&&y.length>0&&v+t.length>1&&it.uniqueSort(f)}return l&&(E=S,a=b),g};return r?ot(s):s}var e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b="sizzle"+1*new Date,w=window.document,E=0,S=0,x=st(),T=st(),N=st(),C=function(e,t){return e===t&&(l=!0),0},k=1<<31,L={}.hasOwnProperty,A=[],O=A.pop,M=A.push,_=A.push,D=A.slice,P=function(e,t){var n=0,r=e.length;for(;n+~]|"+B+")"+B+"*"),W=new RegExp("="+B+"*([^\\]'\"]*?)"+B+"*\\]","g"),X=new RegExp(I),V=new RegExp("^"+j+"$"),$={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,Z=/'|\\/g,et=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig"),tt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},nt=function(){c()};try{_.apply(A=D.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(rt){_={apply:A.length?function(e,t){M.apply(e,D.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}t=it.support={},i=it.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},c=it.setDocument=function(e){var r,s,o=e?e.ownerDocument||e:w;if(o===h||o.nodeType!==9||!o.documentElement)return h;h=o,p=o.documentElement,s=o.defaultView,s&&s!==s.top&&(s.addEventListener?s.addEventListener("unload",nt,!1):s.attachEvent&&s.attachEvent("onunload",nt)),d=!i(o),t.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),t.getElementsByTagName=ut(function(e){return e.appendChild(o.createComment("")),!e.getElementsByTagName("*").length}),t.getElementsByClassName=Q.test(o.getElementsByClassName),t.getById=ut(function(e){return p.appendChild(e).id=b,!o.getElementsByName||!o.getElementsByName(b).length}),t.getById?(n.find.ID=function(e,t){if(typeof t.getElementById!="undefined"&&d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},n.filter.ID=function(e){var t=e.replace(et,tt);return function(e){return e.getAttribute("id")===t}}):(delete n.find.ID,n.filter.ID=function(e){var t=e.replace(et,tt);return function(e){var n=typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id");return n&&n.value===t}}),n.find.TAG=t.getElementsByTagName?function(e,n){if(typeof n.getElementsByTagName!="undefined")return n.getElementsByTagName(e);if(t.qsa)return n.querySelectorAll(e)}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if(e==="*"){while(n=s[i++])n.nodeType===1&&r.push(n);return r}return s},n.find.CLASS=t.getElementsByClassName&&function(e,t){if(d)return t.getElementsByClassName(e)},m=[],v=[];if(t.qsa=Q.test(o.querySelectorAll))ut(function(e){p.appendChild(e).innerHTML=""+"",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+B+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||v.push(".#.+[+~]")}),ut(function(e){var t=o.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+B+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")});return(t.matchesSelector=Q.test(g=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ut(function(e){t.disconnectedMatch=g.call(e,"div"),g.call(e,"[s!='']:x"),m.push("!=",I)}),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),r=Q.test(p.compareDocumentPosition),y=r||Q.test(p.contains)?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!r&&r.nodeType===1&&!!(n.contains?n.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16)}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},C=r?function(e,n){if(e===n)return l=!0,0;var r=!e.compareDocumentPosition-!n.compareDocumentPosition;return r?r:(r=(e.ownerDocument||e)===(n.ownerDocument||n)?e.compareDocumentPosition(n):1,r&1||!t.sortDetached&&n.compareDocumentPosition(e)===r?e===o||e.ownerDocument===w&&y(w,e)?-1:n===o||n.ownerDocument===w&&y(w,n)?1:f?P(f,e)-P(f,n):0:r&4?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,s=t.parentNode,u=[e],a=[t];if(!i||!s)return e===o?-1:t===o?1:i?-1:s?1:f?P(f,e)-P(f,t):0;if(i===s)return ft(e,t);n=e;while(n=n.parentNode)u.unshift(n);n=t;while(n=n.parentNode)a.unshift(n);while(u[r]===a[r])r++;return r?ft(u[r],a[r]):u[r]===w?-1:a[r]===w?1:0},o},it.matches=function(e,t){return it(e,null,null,t)},it.matchesSelector=function(e,n){(e.ownerDocument||e)!==h&&c(e),n=n.replace(W,"='$1']");if(t.matchesSelector&&d&&(!m||!m.test(n))&&(!v||!v.test(n)))try{var r=g.call(e,n);if(r||t.disconnectedMatch||e.document&&e.document.nodeType!==11)return r}catch(i){}return it(n,h,null,[e]).length>0},it.contains=function(e,t){return(e.ownerDocument||e)!==h&&c(e),y(e,t)},it.attr=function(e,r){(e.ownerDocument||e)!==h&&c(e);var i=n.attrHandle[r.toLowerCase()],s=i&&L.call(n.attrHandle,r.toLowerCase())?i(e,r,!d):undefined;return s!==undefined?s:t.attributes||!d?e.getAttribute(r):(s=e.getAttributeNode(r))&&s.specified?s.value:null},it.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},it.uniqueSort=function(e){var n,r=[],i=0,s=0;l=!t.detectDuplicates,f=!t.sortStable&&e.slice(0),e.sort(C);if(l){while(n=e[s++])n===e[s]&&(i=r.push(s));while(i--)e.splice(r[i],1)}return f=null,e},r=it.getText=function(e){var t,n="",i=0,s=e.nodeType;if(!s)while(t=e[i++])n+=r(t);else if(s===1||s===9||s===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(s===3||s===4)return e.nodeValue;return n},n=it.selectors={cacheLength:50,createPseudo:ot,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(et,tt),e[3]=(e[3]||e[4]||e[5]||"").replace(et,tt),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)==="nth"?(e[3]||it.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd")),e[5]=+(e[7]+e[8]||e[3]==="odd")):e[3]&&it.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(et,tt).toLowerCase();return e==="*"?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&x(e,function(e){return t.test(typeof e.className=="string"&&e.className||typeof e.getAttribute!="undefined"&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=it.attr(r,e);return i==null?t==="!=":t?(i+="",t==="="?i===n:t==="!="?i!==n:t==="^="?n&&i.indexOf(n)===0:t==="*="?n&&i.indexOf(n)>-1:t==="$="?n&&i.slice(-n.length)===n:t==="~="?(" "+i.replace(q," ")+" ").indexOf(n)>-1:t==="|="?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s=e.slice(0,3)!=="nth",o=e.slice(-4)!=="last",u=t==="of-type";return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u;if(m){if(s){while(v){c=t;while(c=c[v])if(u?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;d=v=e==="only"&&!d&&"nextSibling"}return!0}d=[o?m.firstChild:m.lastChild];if(o&&y){l=m[b]||(m[b]={}),f=l[e]||[],p=f[0]===E&&f[1],h=f[0]===E&&f[2],c=p&&m.childNodes[p];while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if(c.nodeType===1&&++h&&c===t){l[e]=[E,p,h];break}}else if(y&&(f=(t[b]||(t[b]={}))[e])&&f[0]===E)h=f[1];else while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if((u?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++h){y&&((c[b]||(c[b]={}))[e]=[E,h]);if(c===t)break}return h-=i,h===r||h%r===0&&h/r>=0}}},PSEUDO:function(e,t){var r,i=n.pseudos[e]||n.setFilters[e.toLowerCase()]||it.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(r=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?ot(function(e,n){var r,s=i(e,t),o=s.length;while(o--)r=P(e,s[o]),e[r]=!(n[r]=s[o])}):function(e){return i(e,0,r)}):i}},pseudos:{not:ot(function(e){var t=[],n=[],r=o(e.replace(R,"$1"));return r[b]?ot(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),t[0]=null,!n.pop()}}),has:ot(function(e){return function(t){return it(e,t).length>0}}),contains:ot(function(e){return e=e.replace(et,tt),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:ot(function(e){return V.test(e||"")||it.error("unsupported lang: "+e),e=e.replace(et,tt).toLowerCase(),function(t){var n;do if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||n.indexOf(e+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},text:function(e){var t;return e.nodeName.toLowerCase()==="input"&&e.type==="text"&&((t=e.getAttribute("type"))==null||t.toLowerCase()==="text")},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[n<0?n+t:n]}),even:ht(function(e,t){var n=0;for(;n=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=n<0?n+t:n;for(;++r2&&(l=f[0]).type==="ID"&&t.getById&&r.nodeType===9&&d&&n.relative[f[1].type]){r=(n.find.ID(l.matches[0].replace(et,tt),r)||[])[0];if(!r)return i;p&&(r=r.parentNode),e=e.slice(f.shift().value.length)}a=$.needsContext.test(e)?0:f.length;while(a--){l=f[a];if(n.relative[c=l.type])break;if(h=n.find[c])if(u=h(l.matches[0].replace(et,tt),Y.test(f[0].type)&&pt(r.parentNode)||r)){f.splice(a,1),e=u.length&&vt(f);if(!e)return _.apply(i,u),i;break}}}return(p||o(e,v))(u,r,!d,i,Y.test(e)&&pt(r.parentNode)||r),i},t.sortStable=b.split("").sort(C).join("")===b,t.detectDuplicates=!!l,c(),t.sortDetached=ut(function(e){return e.compareDocumentPosition(h.createElement("div"))&1}),ut(function(e){return e.innerHTML="",e.firstChild.getAttribute("href")==="#"})||at("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,t.toLowerCase()==="type"?1:2)}),(!t.attributes||!ut(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),e.firstChild.getAttribute("value")===""}))&&at("value",function(e,t,n){if(!n&&e.nodeName.toLowerCase()==="input")return e.defaultValue}),ut(function(e){return e.getAttribute("disabled")==null})||at(H,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),it}),function(){window[_GM_NAMESPACE].provide("Helpers.typeOf",function(){var e;return e=function(e){var t;return t=typeof e,t==="object"&&(e?e instanceof Array&&(t="array"):t="null"),t},e})}.call(this),function(){window[_GM_NAMESPACE].provide("BrowserNotification",function(){var e,t;return t=function(){return!!(window.Notification||window.webkitNotifications||navigator.mozNotification)&&"serviceWorker"in navigator&&"PushManager"in window},e={init:function(){if(t()&&AppSettings.token_capture_enable)return Helpers.addScript("//storage.googleapis.com/dito-cdn/dito-bn-sdk.min.js",function(){return BrowserNotificationSDK.init(AppSettings.apiKey)})}},e})}.call(this),function(){window[_GM_NAMESPACE].provide("Storage",function(){var e,t,n;return e=function(e){return{setItem:function(t,n){var r,i,s;return s=JSON.stringify(n),i=e==="localStorage"?(r=new Date,r.setTime(r.getTime()+662256e6),"expires="+r.toUTCString()+";"):null,document.cookie=t+"="+s+";"+i+"path=/;"},getItem:function(e){var t,n,r,i,s;r=decodeURIComponent(document.cookie),n=r.split(";");for(i=0,s=n.length;i=200&&t<400)return r(Helpers.parseJSON(o.responseText),o,s);if(t>=400&&t<600)return i(Helpers.parseJSON(o.responseText),o)}}catch(n){return e=n,console.log(e),Rollbar.Errors.send(e)}},o.send(n)},{get:e,post:t,put:n,request:r,xdr:i}})}.call(this),function(){window[_GM_NAMESPACE].provide("errors",function(){var e,t,n;return e={server:"S",parameters:"P",elements:"E"},n={server:{unknownError:{code:1,description:"An unknown error has occurred"}},parameters:{missingRequiredParameters:{code:1,description:"Missing required parameters"},parameterValueNotSupported:{code:2,description:"Parameter value is not supported"}},elements:{elementNotFound:{code:1,description:"Element not found"}}},t=function(t,r,i){var s,o;return s=e[t]+n[t][r].code.toString(),o=n[t][r].description,i&&(o+=": "+i),{error:{code:s,description:o}}},t})}.call(this),function(){window[_GM_NAMESPACE].provide("raise",function(){var e;return e=function(e,t,n){var r;return r=errors(e,t,n),Helpers.log(r,"error")},e})}.call(this),function(){window[_GM_NAMESPACE].provide("Time",function(){var e,t;return t=function(){var e,t,n,r,i,s;return e=null,t=null,n=function(){return e},r=function(){return t},s=function(e){return t=e},i=function(t){return e=t,s(new Date)},{get:n,set:i,getLoadTimeBrowser:r,setLoadTimeBrowser:s}}(),e=function(){var e;return e=function(){var e,n;return t.get()?(n=new Date-t.getLoadTimeBrowser(),e=new Date(t.get().getTime()+n)):e=new Date,e},{get:e}}(),{LoadTime:t,CurrentTime:e}})}.call(this),function(){window[_GM_NAMESPACE].provide("Initializers",function(){var _currentFunction,_functions,_ready,dom,done,execute,functionDone,getCurrentFunction,handle,initInitializers,loadAuthIframe,loadBrowserNotification,loadFacebookAppInfo,loadFacebookSDK,loadGooglePlusSDK,validateClient;return _ready=!1,_currentFunction="",_functions=[],getCurrentFunction=function(){return _currentFunction},handle=function(){var e,t,n,r,i;for(t=n=0,r=arguments.length;n=1)&&i(e.reference),Anonymous.Events.execute(),AppSettings.session&&Session.User.set(CurrentUser.get()),CurrentUser.get()):Initializers.validateClient.queue.enqueue(function(){return o(e)})):raise("parameters","missingRequiredParameters","User reference or user data is missing.")}catch(f){return s=f,console.log(s),Rollbar.Errors.send(s)}},o=function(t){var n,i,s,o,u,a,f,l,c;t.data&&Helpers.typeOf(t.data)!=="object"&&(delete t.data,raise("parameters","parameterValueNotSupported",'The property "data" must be a JSON object. User has been sent without your custom data. See our documentation to learn more: http://developers.dito.com.br/Login/identify')),o={};if(t.facebook_id||t.fb_id)s="facebook",l=t.facebook_id||t.fb_id,o.network_name="fb",o.user_data=o.user_data||{},t.created_at&&(o.user_data.created_at=t.created_at),t.data&&(o.user_data.data=t.data);else if(t.google_plus_id||t.plus_id)s="plus",l=t.google_plus_id||t.plus_id,o.network_name="pl",o.user_data=o.user_data||{},t.created_at&&(o.user_data.created_at=t.created_at),t.data&&(o.user_data.data=t.data);else if(t.twitter_id)s="twitter",l=t.twitter_id,o.network_name="tw",o.user_data=o.user_data||{},t.created_at&&(o.user_data.created_at=t.created_at),t.data&&(o.user_data.data=t.data);else{t.id=t.id.trim(),t.id.indexOf("_dito_sha1_")===0&&(i=t.id.replace("_dito_sha1_",""),t.id=i?dito.Helpers.sha1(i):null);if(!t.id)return raise("parameters","missingRequiredParameters","User ID is missing.");s="portal",l=t.id,n=t.email,o.network_name="pt",o.user_data=Helpers.extend({},t),o.user_data.id&&delete o.user_data.id}return o.user_data&&o.user_data.data&&(o.user_data.data=JSON.stringify(o.user_data.data)),t.access_token&&(o.access_token=t.access_token),t.signed_request&&(o.signed_request=t.signed_request),t.id_token&&(o.id_token=t.id_token),c=Helpers.parseJSON(Storage.sessionStorage.getItem("app:"+AppSettings.app_id+":ntw:"+s+":socialId:"+l+":identify")),u=Storage.sessionStorage.getItem("app:"+AppSettings.app_id+":ntw:"+s+":socialId:"+l+":identify:reference"),c&&delete c.reference,t&&delete t.reference,a=c&&Helpers.equals(c,t),f=r.get(u)===null||r.getInDays(u)>=1,!a||f?(e.signingUpUser=!0,Login.signup({network:s,socialId:l,params:o},function(n){return t.reference=n.data.reference,e(t),e.signingUpUser=!1,Storage.sessionStorage.setItem("app:"+AppSettings.app_id+":ntw:"+s+":socialId:"+l+":identify",JSON.stringify(t)),Storage.sessionStorage.setItem("app:"+AppSettings.app_id+":ntw:"+s+":socialId:"+l+":identify:reference",n.data.reference)},function(){return e.signingUpUser=!1,raise("server","unknownError")})):(t.reference=u,e(t))},i=function(e){return Api.post("login","/users/"+e+"/notify-login",function(){var t;return t=(new Date).getTime(),r.set(e,t)})},r=function(){var e,t,n;return n=function(e,t){return Storage.localStorage.setItem("login_sent_at:"+e,t)},e=function(e){return Storage.localStorage.getItem("login_sent_at:"+e)},t=function(t){var n,r,i,s;return e(t)?(s=parseInt(e(t)),n=new Date,i=new Date(s),r=Math.floor((n-i)/864e5),r):null},{set:n,get:e,getInDays:t}}(),n=new queueBase,t=function(e){return n.enqueue(e)},s=function(n){return e.signingUpUser===!1?n():t(function(){return n()})},e.signingUpCallback=s,e.identifyCallback=t,e.identifyQueue=n,e.loginSentAt=r,e})}.call(this),function(){window[_GM_NAMESPACE].provide("alias",function(){var e,t;return e=function(e,n){e==null&&(e={});if(!t(e))return;return identify.identifyQueue.enqueue(function(){var t,r,i,s,o,u;o=dito.CurrentUser.get().reference,r={accounts:e};if(r!=null?(i=r["accounts"])!=null?(s=i["portal"])!=null?s.id:void 0:void 0:void 0)t=r.accounts.portal.id,u="_dito_sha1_",t.indexOf(u)===0&&(t=t.replace(u,""),r.accounts.portal.id=t?dito.Helpers.sha1(t):null);return Api.post("login","/users/"+o+"/link",r,function(e){if(n)return n(e)})})},t=function(e){var t;return t=!0,Helpers.equals(e,{})&&(raise("parameters","missingRequiredParameters",'The first parameter must be an object. Ex: { facebook: { id: "XXXXX", access_token: "XXXXX" } }'),t=!1),t},e})}.call(this),function(){window[_GM_NAMESPACE].provide("unalias",function(){var e,t;return e=function(e,n){e==null&&(e={});if(!t(e))return;return identify.identifyQueue.enqueue(function(){var t,r;return r=dito.CurrentUser.get().reference,t={accounts:e},Api.post("login","/users/"+r+"/unlink",t,function(e){if(n)return n(e)})})},t=function(e){var t;return t=!0,Helpers.equals(e,{})&&(raise("parameters","missingRequiredParameters",'The first parameter must be an object. Ex: { facebook: { id: "XXXXX" } }'),t=!1),t},e})}.call(this),function(){window[_GM_NAMESPACE].provide("CurrentUser",function(){var e,t,n,r,i,s;return e=null,t=function(){return!e&&AppSettings.session&&(e=Session.User.get()),e},n=function(t){if(e)return e[t]},i=function(t){return e=t,e},s=function(t,n){return t&&n&&(e=e||{},e[t]=n),e},r=function(){return i(null),Session.User.logout(),identify.identifyQueue.setReady(!1)},{get:t,getAttr:n,set:i,setAttr:s,logout:r}})}.call(this),function(){window[_GM_NAMESPACE].provide("Anonymous",function(){var e,t;return e=function(){var e,t,n,r,i,s,o;return i=function(){return"app:"+AppSettings.apiKey+":anonymous_events"},r=function(){var e;e=[];try{e=JSON.parse(localStorage.getItem(i()));if(Helpers.typeOf(e)==="string")try{e=JSON.parse(e)}catch(t){e=[]}}catch(t){e=[]}return e=e||[]},o=function(e){return localStorage.setItem(i(),JSON.stringify(e))},e=function(e){var t;return e.created_at=e.created_at||dito.Time.CurrentTime.get().toString(),t=r(),t.push(e),localStorage.setItem(i(),JSON.stringify(t))},t=function(){return localStorage.setItem(i(),null)},n=function(){var e,t,n,i,o,u;t=r(),i=[];for(n=o=0,u=t.length;o=200&&r.status<400?(console.log("Success!"),console.log(r),e=r.responseText):(console.log("Reached server, but server returned error"),console.log(r.status),console.log(r)))},r.onerror=function(){console.log("Connection Error of some sort")},r.send(n)},n=function(t){return e(t)},{send:n}}(),{Errors:e}})}.call(this),function(){window[_GM_NAMESPACE].provide("Referrer",function(){var e;return e=function(){return sessionStorage.getItem("gm_referrer")||document.referrer},{get:e}})}.call(this),function(){window[_GM_NAMESPACE].provide("Utm",function(){var e,t,n,r,i,s;return n="gm_source",t="gm_medium",e="gm_campaign",i=function(){var r,i,s;s=Helpers.getParam("utm_source"),i=Helpers.getParam("utm_medium"),r=Helpers.getParam("utm_campaign"),s&&Storage.sessionStorage.setItem(""+n,s),i&&Storage.sessionStorage.setItem(""+t,i);if(r)return Storage.sessionStorage.setItem(""+e,r)},s=function(){return{source:Storage.sessionStorage.getItem(""+n),medium:Storage.sessionStorage.getItem(""+t),campaign:Storage.sessionStorage.getItem(""+e)}},r=function(e,t){var n,r,i,s,o;return s=Helpers.extend({utm_source:"dito",utm_medium:null,utm_campaign:null},t),i=Helpers.parseURL(e),r=Helpers.extend(i.params,s),n="",e.indexOf("#")>-1&&(o=e.split("#"),n=o[1],e=o[0]),e=e.split("?")[0]+"?"+Helpers.params(r),n.length&&(e=e+"#"+n),e},{check:i,get:s,addUtmToURL:r}})}.call(this),function(){window[_GM_NAMESPACE].provide("Origin",function(){var e,t,n,r,i;return e="origin",i=function(){var i,s,o,u,a,f;if(n()&&t())return Api.post("referral","/referrals/click",{code:Referral.get()}),r();a=Helpers.getParam("gm_referral_code"),f=Helpers.getParam("utm_source"),o=Helpers.getParam("utm_medium"),i=Helpers.getParam("utm_campaign");if(a||i||o||f){a||(a=""),i||(i=""),o||(o=""),f||(f=""),u="_r:"+a+"_c:"+i+"_m:"+o+"_s:"+f,s=e+":"+u+":clicked";if(!sessionStorage.getItem(s))return Api.post("referral","/referrals/click",{code:a}),sessionStorage.setItem(s,!0)}},n=function(){return localStorage.getItem("trackClick")==="true"},r=function(){return localStorage.removeItem("trackClick")},t=function(){return localStorage.getItem("gm_referral_code:temp")||localStorage.getItem("gm_medium:temp")||localStorage.getItem("gm_campaign:temp")||localStorage.getItem("gm_source:temp")},{trackClick:i}})}.call(this),function(){window[_GM_NAMESPACE].provide("Login",function(){var e,t,n,r,i,s;return r=function(){return e.Friends.send()},s=function(e,t,n){var r;return r=Helpers.extend({socialId:null,network:null},e),t||(t=function(){}),n||(n=function(){}),!r.socialId||!r.network?raise("parameters","missingRequiredParameters"):Api.post("login","/users/"+r.network+"/"+r.socialId+"/signup",r.params,function(e){return identify.loginSentAt.set(e.data.reference,(new Date).getTime()),t.apply(this,arguments)},function(){return n.apply(this,arguments)})},e=function(){var e,t,n,r,i,o,u,a,f,l,c,h,p;return p=function(){},a=function(){},i=function(){},u=[],ready(function(){return t.getDeclinedPermissions()}),t=function(){var e,t,n;return n=function(e){return Initializers.loadFacebookSDK.queue.enqueue(function(){return FB.getLoginStatus(function(t){var n;if(t.status==="connected")return FB.api("/me/permissions",function(t){if(e)return e(t)});n="User has not authorized your app";if(e)return e({error:n},t)})})},t=function(e){return n(function(t){var n,r,i,s,o;s=[];if(!t.error){o=t.data;for(n=0,r=o.length;n-1&&(f=!0);return s={scope:m.scope},f&&(s.auth_type="rerequest"),FB.login(function(e){return r(e,m),t.getDeclinedPermissions()},s)}):(b=750,h=400,g=100,d=screen.width/2-b/2,v={api_key:AppSettings.apiKey,scope:m.scope},y=domains("login")+"/auth/facebook/connect_post_message"+"?"+Helpers.params(v),c=window.open(y,"facebook_auth","width="+b+", height="+h+", top="+g+", left="+d),window.ditoCloseWindowInterval=setInterval(function(){if(c&&c.closed)return clearInterval(window.ditoCloseWindowInterval),a.call(this,{windowClosed:!0}),i.call(this)},500))},o=function(e){return e&&e.status==="connected"},l=function(e){return e&&e.status==="not_authorized"},r=function(t,n){return o(t)?(FB.api("/me",n.params,function(e){return n.autoTrack?h(t.authResponse,e):p.call(this,{facebook:e},t)}),e.send()):a.call(this,t),i.call(this,t)},h=function(e,t){return s({network:"facebook",socialId:t.id,params:{access_token:e.accessToken,signed_request:e.signedRequest,network_name:"fb"}},function(e){var n;return n={facebook:t,graphmonitor:e.data,dito:e.data},p.call(this,n)},function(){return p.call(this,{facebook:t})})},c=function(e){return h(e.authResponse,e.facebook),i.call(this,e)},e=function(){var e,t,n;return e=function(){var e,t;return t={},e=function(){},Helpers.typeOf(arguments[0])==="object"?(t=arguments[0],e=arguments[1]):Helpers.typeOf(arguments[0])==="function"&&(e=arguments[0]),window[_GM_NAMESPACE].ready(function(){return f(function(){return FB.api("/me/friends",t,e)})})},n=function(){var n;return n=null,ready(function(){return f(function(r){var i;if(!r||!r.facebook||r.facebook.status!=="connected")return;return i=r.facebook.authResponse.userID,t(i,function(t){return n=t,e(function(e){var t,r,s,o,u;r=e.data,o="";if(r&&r.length){for(s=0,u=r.length;s=s)return t(e,r,i),clearInterval(n)},500)},t=function(e,t,n,r){var i,s;r?i="dito:notification:"+t+":"+e+":user:"+r+":click":i="dito:notification:"+t+":"+e+":click";if(sessionStorage.getItem(i))return;return s={channel_type:e},n&&(s.notification_log_id=n),r&&(s.reference=r),Api.post("notification","/notifications/"+t+"/click",s,function(e){return sessionStorage.setItem(i,!0)})},e=function(){var e;e=dito.Helpers.getParam("drfc");if(e&&e.length>5&&!dito.CurrentUser.get())return dito.identify(e)},{trackClick:n,identifyFromNotification:e}})}.call(this),function(){window[_GM_NAMESPACE].provide("Referral",function(){var e,t,n,r,i,s,o;return t="gm_referral_code",r=function(e,t){var n;return t==null&&(t=function(){}),n=Helpers.extend({reference:CurrentUser.getAttr("reference"),params:{network_name:"fb",referral:{target_type:null,target_id:null,redirect_url:null,url:null,action_name:null}}},e),!n.params.referral.redirect_url&&n.params.referral.url&&(n.params.referral.redirect_url=n.params.referral.url),Api.post("referral","/users/"+n.reference+"/referrals",n.params,t,t,n.params.network_name)},i=function(e){return e&&e.split("-")[5]===CurrentUser.getAttr("reference")&&CurrentUser.getAttr("reference")?!0:!1},n=function(){var e;return e=Helpers.getParam("gm_referral_code"),e&&(i(e)||Storage.localStorage.setItem(t+":temp",e)),identify.identifyCallback(function(){var e;e=Storage.localStorage.getItem("gm_referral_code:temp");if(!!i(e))return Storage.localStorage.removeItem("gm_referral_code:temp");if(e)return Storage.localStorage.setItem("gm_referral_code:"+CurrentUser.getAttr("reference"),e),Storage.localStorage.removeItem("gm_referral_code:temp")})},o=function(){var e,n;n=Helpers.getParam("gm_referral_code");if(n){e=t+":"+n+":clicked";if(!Storage.sessionStorage.getItem(e))return Api.post("referral","/referrals/"+n+"/click"),Storage.sessionStorage.setItem(e,!0)}},s=function(){return CurrentUser.get()?Storage.localStorage.getItem(t+":"+CurrentUser.getAttr("reference")):Storage.localStorage.getItem(t+":temp")},e=function(e,t){var n,r,i,s,o;return s=Helpers.extend({gm_referral_code:null,utm_source:null,utm_medium:"MGM",utm_campaign:"UserEvent"},t),i=Helpers.parseURL(e),r=Helpers.extend(i.params,s),n="",e.indexOf("#")>-1&&(o=e.split("#"),n=o[1],e=o[0]),e=e.split("?")[0]+"?"+Helpers.params(r),n.length&&(e=e+"#"+n),e},{create:r,check:n,get:s,URLToShare:e}})}.call(this),function(){window[_GM_NAMESPACE].provide("Session",function(){var e,t,n;return n= function(){var e;return e={path:"/"},AppSettings.domain&&(e.domain=AppSettings.domain),dito.Helpers.typeOf(AppSettings.sessionExpiresAt)==="number"?e.expires=AppSettings.sessionExpiresAt:AppSettings.sessionExpiresAt==="session"?e.expires=void 0:e.expires=3650,e},e=function(){var e,t,r;return e="__dito_current_api_key",r=function(){return Helpers.cookie(e,AppSettings.apiKey,n())},t=function(){return Helpers.cookie(e)},{setApiKey:r,getApiKey:t}}(),t=function(){var t,r,i,s,o,u,a;return t="__dito_user_session",r=function(){var r,i;return i=Helpers.cookie(t)||null,r=e.getApiKey(),r&&r!==AppSettings.apiKey&&(e.setApiKey(),Helpers.cookie.removeCookie(t,n()),i=null),i},a=function(r){return Helpers.cookie(t,r,n()),e.setApiKey()},u=function(){return Helpers.cookie.removeCookie(t,n()),dito.Api.get("login","/users/current/logout")},i=function(){var e;e=r();if(e)return identify(e)},s=function(){var e,t,r,i;r="dcuc",e=n(),i=1,t=new Date,t.setTime(t.getTime()+i*60*1e3),e.expires=t;if(!Helpers.cookie(r))return Helpers.cookie(r,!0,e),dito.Api.get("login","/users/current",function(e){var t;if(e!=null?(t=e["data"])!=null?t.reference:void 0:void 0)return dito.identify(e.data.reference)})},o=function(){if(AppSettings.session){Session.User.identifyFromCookie();if(!dito.CurrentUser.get())return s()}},{get:r,set:a,logout:u,identifyFromCookie:i,identifyFromServer:s,identifyFromSession:o}}(),{User:t,App:e}})}.call(this),function(){window[_GM_NAMESPACE].provide("Share",function(){var e,t,n,r;return r=!1,ready(function(){return Initializers.loadFacebookSDK.queue.enqueue(function(){return FB.getLoginStatus(function(){return Login.Facebook.Permissions.checkPermissionStatus("publish_actions",function(e){return r=e!=="granted"})})})}),e=function(){var e,t,n,i,s;return e={fitness:{bike:"bikes",walk:"walks",run:"runs"},music:{listen:"listens",playlist:"playlist"},news:{publish:"publishes",read:"reads"},general:{"og.like":"og.likes","og.follow":"og.follows","og.post":"og.posts"},video:{want_to_watch:"wants_to_watch",rate:"rates",watch:"watches"},books:{quote:"quotes",rate:"rates",want_to_read:"wants_to_read",read:"read"}},i=function(e){var n,i,s;return n=arguments,r?(s={scope:"publish_actions"},i=Login.Facebook.Permissions.getDeclinedPermissions(),Helpers.inArray(i,"publish_actions")>-1&&(s.auth_type="rerequest"),FB.login(function(e){if(e.status==="connected")return Login.Facebook.Permissions.checkPermissionStatus("publish_actions",function(e){if(e==="granted")return t.apply(this,n)})},s)):t.apply(this,n)},t=function(e){var t;return t=Helpers.extend({appName:"",action:"",params:{}},e),s(t)},s=function(t){var n,r,i;return i="",n=e[t.params.category],t.params.url=Utm.addUtmToURL(t.params.url,{utm_medium:"facebook-open-graph"}),n?(i="/me/"+t.params.category+"."+n[t.action],t.params.type=t.params.category+"."+t.params.target_type):i="/me/"+t.appName+":"+t.action,t.params[t.params.target_type]=t.params.url,r=Helpers.clone(t.params),delete r.target_id,delete r.target_type,delete r.enabled,delete r.category,FB.api(i,"post",r,function(e){var t;Helpers.log(e);if(e.post_id)return t={action:"publish-open-graph-action",data:{post_id:e.post_id}},window[_GM_NAMESPACE].track(t,"facebook")})},n=function(e,t){var n;return t==null&&(t=function(){}),n=Helpers.extend({method:"feed",link:null,url:document.location.href},e),!n.link&&n.url&&(n.link=n.url),n.link&&(n.link=Utm.addUtmToURL(n.link,{utm_medium:"facebook"})),FB.ui(n,function(e){var r;return t.apply(this,arguments),r={action:"publish-on-facebook",data:{post_id:e.post_id}},n.to&&(r.target={id:n.to,type:"profile"}),window[_GM_NAMESPACE].track(r,"facebook")})},{publishAction:i,publish:n}}(),t=function(){var e;return e=function(e,t){var n,r,i,s,o,u,a;return t==null&&(t=function(){}),s=Helpers.extend({url:document.location.href},e),s.url&&(s.url=Utm.addUtmToURL(s.url,{utm_medium:"google-plus"})),a=500,r=400,o=100,i=screen.width/2-a/2,u="https://plus.google.com/share?"+Helpers.params(s),n=window.open(u,"plus_share","width="+a+", height="+r+", top="+o+", left="+i),track("publish-on-google-plus","googlePlus")},{publish:e}}(),n=function(){var e;return e=function(e,t){var n,r,i,s,o,u,a;return t==null&&(t=function(){}),s=Helpers.extend({url:document.location.href},e),s.url&&(s.url=Utm.addUtmToURL(s.url,{utm_medium:"twitter"})),a=750,r=400,o=100,i=screen.width/2-a/2,u="https://twitter.com/share?"+Helpers.params(s),n=window.open(u,"twitter_share","width="+a+", height="+r+", top="+o+", left="+i),track("publish-on-twitter","twitter")},{publish:e}}(),{Facebook:e,GooglePlus:t,Twitter:n}})}.call(this),function(){window[_GM_NAMESPACE].provide("track",function(){var e,t;return t=function(){var e,t,n,r,i;try{Helpers.typeOf(arguments[0])==="string"?(n={action:arguments[0]},r=null,Helpers.typeOf(arguments[1])==="function"?e=arguments[1]:Helpers.typeOf(arguments[1])==="string"&&(r=arguments[1],Helpers.typeOf(arguments[2])==="function"?e=arguments[2]:e=function(){})):(n=arguments[0],Helpers.typeOf(arguments[1])==="object"?(i=arguments[1],Helpers.typeOf(arguments[3])==="function"?(r=arguments[2],e=arguments[3]):Helpers.typeOf(arguments[2])==="function"?e=arguments[2]:(r=arguments[2],e=function(){})):Helpers.typeOf(arguments[2])==="function"?(e=arguments[2],i=null,r=arguments[1]):Helpers.typeOf(arguments[1])==="function"?(e=arguments[1],i=null):(r=arguments[1],i=null,e=function(){})),n=Helpers.extend({reference:CurrentUser.getAttr("reference"),action:null,data:null,revenue:null,target:{id:null,type:null,title:null,description:null,image:null,url:null},feedable:!0,shareable:!0,referrer:Referrer.get(),referral_code:Referral.get(),utm:Utm.get(),source:null},n),createEvent(n,e,r);if(n.reference&&i&&i.enabled!==!1)return i.target_type=i.target_type||n.target.type,i.event_target_type=n.target.type,i.target_id=n.target.id,Share.Facebook.publishAction({appName:FacebookApp.get().namespace,reference:n.reference,action:n.action,params:i})}catch(s){return t=s,console.log(t),Rollbar.Errors.send(t)}},self.createEvent=function(e,t,n){return Initializers.validateClient.queue.enqueue(function(){return CurrentUser.get()===null?(e.created_at=dito.Time.CurrentTime.get().toString(),e=Helpers.extend(e,{utm:Utm.get()}),e=Helpers.removeEmptyValues(e),Anonymous.Events.add(e)):(e.reference=e.reference||CurrentUser.getAttr("reference"),e.reference?(e.target_id=e.target.id,e.target_type=e.target.type,e.target_title=e.target.title,e.target_description=e.target.description,e.target_image=e.target.image,e.target_url=e.target.url,e=Helpers.removeEmptyValues(e),TrackQueue.Events.add(e,n),TrackQueue.Events.run(e,n)):raise("parameters","missingRequiredParameters","User reference is missing."))})},e=function(e,t,n){return Api.post("events","/users/"+e.reference,{event:JSON.stringify(e)},t,t,n)},t})}.call(this),function(){window[_GM_NAMESPACE].provide("Plugins",function(){var e;return e={},e})}.call(this),function(){window[_GM_NAMESPACE].provide("Plugins.Login",function(){var Config,LoginPlugin,add,draw,init,notifyLogin,stylesheet;return Config=function(){return{useStylesheet:!1}}(),LoginPlugin=function(){function LoginPlugin(e){this.defaults={networks:{facebook:{text:"Facebook",appendTo:"#dito-facebook-connect",callback:null,enabled:!1,redirectURI:null,scope:null,size:"default",autoTrack:!0,autoLogin:!1},twitter:{text:"Twitter",appendTo:"#dito-twitter-connect",callback:null,enabled:!1,redirectURI:null,scope:null,size:"default",autoTrack:!0,autoLogin:!1},googlePlus:{text:"Google +",appendTo:"#dito-google-plus-connect",callback:null,enabled:!1,redirectURI:null,scope:null,size:"default",autoTrack:!0,autoLogin:!1}}},this.settings={},this.handle.apply(this,e)}return LoginPlugin.prototype.handle=function(e,t){var n,r,i,s,o,u,a,f;t==null&&(t={}),u={},f=typeof e;if(f==="string"){a=e.split(",");for(r=0,i=a.length;r