!function(){"use strict";var a,o=window.location,r=window.document,t=r.currentScript,l=t.getAttribute("data-api")||new URL(t.src).origin+"/api/event",c=t.getAttribute("data-domain");function s(t,e,n){e&&console.warn("Ignoring Event: "+e),n&&n.callback&&n.callback(),"pageview"===t&&(a=!0)}var d,u,w=o.href,p={},h=-1,f=!1,e=!1;function n(){var t=r.body||{},e=r.documentElement||{};return Math.max(t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0,e.scrollHeight||0,e.offsetHeight||0,e.clientHeight||0)}function i(){var t=window.innerHeight||r.documentElement.clientHeight||0,e=window.scrollY||r.documentElement.scrollTop||r.body.scrollTop||0;return v<=t?v:e+t}var v=n(),g=i();function b(){var t=d?u+(Date.now()-d):u;e||a||!(h