https://app.posthog.com/static/array.js

Last Checked: Sep 23, 2023, 11:38 EDT

IP Address: 13.227.74.88
ASN #: AS16509 AMAZON-02, US
Location: Unknown, Unknown, Unknown
URL Reputation:
  • Unknown This URL is not identified as malicious in the PhishTank Database.
  • Unknown PhishCheck thinks this URL is likely not a phish.
  • Unknown OpenPhish: URL not in feed.

Other submissions on 13.227.74.88:

  • https://app.posthog.com/e/?ip=1&_=1695480603367&ver=1.79.1

Other submissions on posthog.com:

  • https://posthog.com/

  • http://eu.posthog.com/

  • http://app.posthog.com/

  • https://app.posthog.com/e/?ip=1&_=1695480603367&ver=1.79.1

Previous checks:

                               Domain Name: posthog.com
Registry Domain ID: 2484003649_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.registrar.amazon.com
Registrar URL: https://registrar.amazon.com
Updated Date: 2023-01-11T15:36:00Z
Creation Date: 2020-01-23T20:46:18Z
Registrar Registration Expiration Date: 2024-01-23T20:46:18Z
Registrar: Amazon Registrar, Inc.
Registrar IANA ID: 468
Registrar Abuse Contact Email: abuse@amazonaws.com
Registrar Abuse Contact Phone: +1.2067406200
Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
Registry Registrant ID: Not Available From Registry
Registrant Name: On behalf of posthog.com owner
Registrant Organization: Identity Protection Service
Registrant Street: PO Box 786
Registrant City: Hayes
Registrant State/Province: Middlesex
Registrant Postal Code: UB3 9TR
Registrant Country: GB
Registrant Phone: +44.1483307527
Registrant Phone Ext:
Registrant Fax: +44.1483304031
Registrant Fax Ext:
Registrant Email: 62c21026-b4a3-4571-95cf-f36384c4aeeb@identity-protect.org
Registry Admin ID: Not Available From Registry
Admin Name: On behalf of posthog.com owner
Admin Organization: Identity Protection Service
Admin Street: PO Box 786
Admin City: Hayes
Admin State/Province: Middlesex
Admin Postal Code: UB3 9TR
Admin Country: GB
Admin Phone: +44.1483307527
Admin Phone Ext:
Admin Fax: +44.1483304031
Admin Fax Ext:
Admin Email: 62c21026-b4a3-4571-95cf-f36384c4aeeb@identity-protect.org
Registry Tech ID: Not Available From Registry
Tech Name: On behalf of posthog.com owner
Tech Organization: Identity Protection Service
Tech Street: PO Box 786
Tech City: Hayes
Tech State/Province: Middlesex
Tech Postal Code: UB3 9TR
Tech Country: GB
Tech Phone: +44.1483307527
Tech Phone Ext:
Tech Fax: +44.1483304031
Tech Fax Ext:
Tech Email: 62c21026-b4a3-4571-95cf-f36384c4aeeb@identity-protect.org
Name Server: JULISSA.NS.CLOUDFLARE.COM
Name Server: RORY.NS.CLOUDFLARE.COM
DNSSEC: signedDelegation
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/
>>> Last update of WHOIS database: 2023-09-23T16:38:38Z <<<
For more information on Whois status codes, please visit https://icann.org/epp

By submitting a query to the Amazon Registrar, Inc. WHOIS database, you
agree to abide by the following terms. The data in Amazon Registrar, Inc.'s
WHOIS database is provided by Amazon Registrar, Inc. for the sole purpose of
assisting you in obtaining information about domain name accuracy. You agree
to use this data only for lawful purposes and further agree not to use this
data for any unlawful purpose or to: (1) enable, allow, or otherwise support
the transmission by email, telephone, or facsimile of commercial advertising
or unsolicited bulk email, or (2) enable high volume, automated, electronic
processes to collect or compile this data for any purpose, including mining
this data for your own personal or commercial purposes. Amazon Registrar, Inc.
reserves the right to restrict or terminate your access to the data if you fail
to abide by these terms of use. Amazon Registrar, Inc. reserves the right
to modify these terms at any time.

Visit Amazon Registrar, Inc. at https://registrar.amazon.com

Contact information available here:
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-contact-support.html

© 2020, Amazon.com, Inc., or its affiliates


                             
  • GET
    200 OK

    https://app.posthog.com/login?next=/favicon.ico

  • https://app.posthog.com/favicon.ico /login?next=/favicon.ico
<html><head><link rel="stylesheet" href="resource://content-accessible/plaintext.css"></head><body><pre>!function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&amp;&amp;(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n&lt;arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e){return n="function"==typeof Symbol&amp;&amp;"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&amp;&amp;"function"==typeof Symbol&amp;&amp;e.constructor===Symbol&amp;&amp;e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n&lt;t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&amp;&amp;(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&amp;&amp;i(e.prototype,t),n&amp;&amp;i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if("function"!=typeof t&amp;&amp;null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&amp;&amp;t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&amp;&amp;c(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r&lt;o.length;r++)n=o[r],t.indexOf(n)&gt;=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r&lt;o.length;r++)n=o[r],t.indexOf(n)&gt;=0||Object.prototype.propertyIsEnumerable.call(e,n)&amp;&amp;(i[n]=e[n])}return i}function d(e,t){if(t&amp;&amp;("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&amp;&amp;e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&amp;&amp;(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&amp;&amp;null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&amp;&amp;e.constructor&amp;&amp;(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t&gt;e.length)&amp;&amp;(t=e.length);for(var n=0,r=new Array(t);n&lt;t;n++)r[n]=e[n];return r}function v(e,t){var n="undefined"!=typeof Symbol&amp;&amp;e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&amp;&amp;e&amp;&amp;"number"==typeof e.length){n&amp;&amp;(e=n);var r=0,i=function(){};return{s:i,n:function(){return r&gt;=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}var m={DEBUG:!1,LIB_VERSION:"1.79.1"},y=Array.prototype,b=Object.prototype,w=b.toString,k=b.hasOwnProperty,S="undefined"!=typeof window?window:{},E=S.navigator||{userAgent:""},x=S.document||{},P=E.userAgent,F=["localhost","127.0.0.1"],O=y.forEach,I=y.indexOf,R=Array.isArray,T={},$={log:function(){if(m.DEBUG&amp;&amp;!B(window.console)&amp;&amp;window.console){for(var e=("__rrweb_original__"in window.console.log?window.console.log.__rrweb_original__:window.console.log),t=arguments.length,n=new Array(t),r=0;r&lt;t;r++)n[r]=arguments[r];try{e.apply(window.console,n)}catch(t){A(n,(function(t){e(t)}))}}},error:function(){if(m.DEBUG&amp;&amp;!B(window.console)&amp;&amp;window.console){for(var e=arguments.length,t=new Array(e),n=0;n&lt;e;n++)t[n]=arguments[n];var r=["PostHog error:"].concat(t),i="__rrweb_original__"in window.console.error?window.console.error.__rrweb_original__:window.console.error;try{i.apply(window.console,r)}catch(e){A(r,(function(e){i(e)}))}}},critical:function(){if(!B(window.console)&amp;&amp;window.console){for(var e=arguments.length,t=new Array(e),n=0;n&lt;e;n++)t[n]=arguments[n];var r=["PostHog error:"].concat(t),i="__rrweb_original__"in window.console.error?window.console.error.__rrweb_original__:window.console.error;try{i.apply(window.console,r)}catch(e){A(r,(function(e){i(e)}))}}},unintializedWarning:function(e){m.DEBUG&amp;&amp;!B(window.console)&amp;&amp;window.console&amp;&amp;$.error("[PostHog] You must initialize PostHog before calling ".concat(e))}},M=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function A(e,t,n){if(Array.isArray(e))if(O&amp;&amp;e.forEach===O)e.forEach(t,n);else if("length"in e&amp;&amp;e.length===+e.length)for(var r=0,i=e.length;r&lt;i;r++)if(r in e&amp;&amp;t.call(n,e[r],r)===T)return}function C(e,t,n){if(null!=e){if(Array.isArray(e))return A(e,t,n);for(var r in e)if(k.call(e,r)&amp;&amp;t.call(n,e[r],r)===T)return}}var D=function(e){for(var t=arguments.length,n=new Array(t&gt;1?t-1:0),r=1;r&lt;t;r++)n[r-1]=arguments[r];return A(n,(function(t){for(var n in t)void 0!==t[n]&amp;&amp;(e[n]=t[n])})),e},j=R||function(e){return"[object Array]"===w.call(e)},N=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}};function H(e,t){return-1!==e.indexOf(t)}var L=function(e){return e===Object(e)&amp;&amp;!j(e)},B=function(e){return void 0===e},q=function(e){return"[object String]"==w.call(e)},U=function(e){return"[object Number]"==w.call(e)},V=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},G=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),r=0;r&lt;t;r++)n[r]=arguments[r];return e.apply(this,n)}catch(e){$.critical("Implementation error. Please turn on debug and contact support@posthog.com."),$.critical(e)}}},z=function(e){var t={};return C(e,(function(e,n){q(e)&amp;&amp;e.length&gt;0&amp;&amp;(t[n]=e)})),t};var W=["$performance_raw"];function Y(e,t){return n=e,r=function(e,n){return n&amp;&amp;W.indexOf(n)&gt;-1?e:"string"==typeof e&amp;&amp;null!==t?e.slice(0,t):e},i=new Set,function e(t,n){return t!==Object(t)?r?r(t,n):t:i.has(t)?void 0:(i.add(t),j(t)?(o=[],A(t,(function(t){o.push(e(t))}))):(o={},C(t,(function(t,n){i.has(t)||(o[n]=e(t,n))}))),o);var o}(n);var n,r,i}function Q(e){var t,n,r,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,u=0,c="",l=[];if(!e)return e;e=J(e);do{t=(o=e.charCodeAt(a++)&lt;&lt;16|e.charCodeAt(a++)&lt;&lt;8|e.charCodeAt(a++))&gt;&gt;18&amp;63,n=o&gt;&gt;12&amp;63,r=o&gt;&gt;6&amp;63,i=63&amp;o,l[u++]=s.charAt(t)+s.charAt(n)+s.charAt(r)+s.charAt(i)}while(a&lt;e.length);switch(c=l.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c}var J=function(e){var t,n,r,i,o="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i&lt;r;i++){var s=e.charCodeAt(i),a=null;s&lt;128?n++:a=s&gt;127&amp;&amp;s&lt;2048?String.fromCharCode(s&gt;&gt;6|192,63&amp;s|128):String.fromCharCode(s&gt;&gt;12|224,s&gt;&gt;6&amp;63|128,63&amp;s|128),null!==a&amp;&amp;(n&gt;t&amp;&amp;(o+=e.substring(t,n)),o+=a,t=n=i+1)}return n&gt;t&amp;&amp;(o+=e.substring(t,e.length)),o},X=["ahrefsbot","applebot","baiduspider","bingbot","bingpreview","bot.htm","bot.php","crawler","duckduckbot","facebookexternal","facebookcatalog","gptbot","hubspot","linkedinbot","mj12bot","petalbot","pinterest","prerender","rogerbot","screaming frog","semrushbot","sitebulb","twitterbot","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"],K=function(e,t){return X.concat(t).some((function(t){return e.includes?e.includes(t):-1!==e.indexOf(t)}))},Z=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&amp;]"+n+"=([^&amp;#]*)").exec(e);if(null===r||r&amp;&amp;"string"!=typeof r[1]&amp;&amp;r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch(e){$.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},ee=function(e,t){var n=e.match(new RegExp(t+"=([^&amp;]*)"));return n?n[1]:null},te=function(){function e(t){return t&amp;&amp;(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,o){if(t)if(t.addEventListener&amp;&amp;!i)t.addEventListener(n,r,!!o);else{var s="on"+n,a=t[s];t[s]=function(t,n,r){return function(i){if(i=i||e(window.event)){var o,s=!0;N(r)&amp;&amp;(o=r(i));var a=n.call(t,i);return!1!==o&amp;&amp;!1!==a||(s=!1),s}}}(t,r,a)}else $.error("No valid element provided to register_event")}}();function ne(e,t){var n=function(){var n=x.createElement("script");n.type="text/javascript",n.src=e,n.onload=function(e){return t(void 0,e)},n.onerror=function(e){return t(e)};var r,i=x.querySelectorAll("body &gt; script");i.length&gt;0?null===(r=i[0].parentNode)||void 0===r||r.insertBefore(n,i[0]):x.body.appendChild(n)};x.body?n():x.addEventListener("DOMContentLoaded",n)}var re={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return C(t,(function(e){var t=Z(x.URL,e);t.length&amp;&amp;(n[e]=t)})),n},searchEngine:function(){var e=x.referrer;return e?0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null:null},searchInfo:function(){var e=re.searchEngine(),t="yahoo"!=e?"q":"p",n={};if(null!==e){n.$search_engine=e;var r=Z(x.referrer,t);r.length&amp;&amp;(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||H(e," OPR/")?H(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":H(e,"IEMobile")||H(e,"WPDesktop")?"Internet Explorer Mobile":H(e,"SamsungBrowser/")?"Samsung Internet":H(e,"Edge")||H(e,"Edg/")?"Microsoft Edge":H(e,"FBIOS")?"Facebook Mobile":H(e,"Chrome")?"Chrome":H(e,"CriOS")?"Chrome iOS":H(e,"UCWEB")||H(e,"UCBrowser")?"UC Browser":H(e,"FxiOS")?"Firefox iOS":H(t,"Apple")?H(e,"Mobile")?"Mobile Safari":"Safari":H(e,"Android")?"Android Mobile":H(e,"Konqueror")?"Konqueror":H(e,"Firefox")?"Firefox":H(e,"MSIE")||H(e,"Trident/")?"Internet Explorer":H(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[re.browser(e,t,n)];if(void 0===r)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return E.language||E.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&amp;&amp;t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&amp;&amp;n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&amp;&amp;r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&amp;&amp;i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&amp;&amp;!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return"iPad"===t||"Android Tablet"===t?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return x.referrer||"$direct"},referringDomain:function(){if(!x.referrer)return"$direct";var e=x.createElement("a");return e.href=x.referrer,e.host},properties:function(){var e=re.os(P),t=e.os_name,n=e.os_version;return D(z({$os:t,$os_version:n,$browser:re.browser(P,E.vendor,S.opera),$device:re.device(P),$device_type:re.deviceType(P)}),{$current_url:null==S?void 0:S.location.href,$host:null==S?void 0:S.location.host,$pathname:null==S?void 0:S.location.pathname,$browser_version:re.browserVersion(P,E.vendor,S.opera),$browser_language:re.browserLanguage(),$screen_height:null==S?void 0:S.screen.height,$screen_width:null==S?void 0:S.screen.width,$viewport_height:null==S?void 0:S.innerHeight,$viewport_width:null==S?void 0:S.innerWidth,$lib:"web",$lib_version:m.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:V()/1e3})},people_properties:function(){var e=re.os(P),t=e.os_name,n=e.os_version;return D(z({$os:t,$os_version:n,$browser:re.browser(P,E.vendor,S.opera)}),{$browser_version:re.browserVersion(P,E.vendor,S.opera)})}};function ie(e){switch(n(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function oe(e){var t="";return de(e)&amp;&amp;!fe(e)&amp;&amp;e.childNodes&amp;&amp;e.childNodes.length&amp;&amp;C(e.childNodes,(function(e){ue(e)&amp;&amp;e.textContent&amp;&amp;(t+=M(e.textContent).split(/(\s+)/).filter(pe).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))})),M(t)}function se(e){return!!e&amp;&amp;1===e.nodeType}function ae(e,t){return!!e&amp;&amp;!!e.tagName&amp;&amp;e.tagName.toLowerCase()===t.toLowerCase()}function ue(e){return!!e&amp;&amp;3===e.nodeType}function ce(e){return!!e&amp;&amp;11===e.nodeType}var le=["a","button","form","input","select","textarea","label"];function de(e){for(var t=e;t.parentNode&amp;&amp;!ae(t,"body");t=t.parentNode){var n=ie(t).split(" ");if(H(n,"ph-sensitive")||H(n,"ph-no-capture"))return!1}if(H(ie(e).split(" "),"ph-include"))return!0;var r=e.type||"";if("string"==typeof r)switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";if("string"==typeof i){if(/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function fe(e){return!!(ae(e,"input")&amp;&amp;!["button","checkbox","submit","reset"].includes(e.type)||ae(e,"select")||ae(e,"textarea")||"true"===e.getAttribute("contenteditable"))}function pe(e){if(null===e||B(e))return!1;if("string"==typeof e){e=M(e);if(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function he(e){var t=oe(e);return pe(t="".concat(t," ").concat(ge(e)).trim())?t:""}function ge(e){var t="";return e&amp;&amp;e.childNodes&amp;&amp;e.childNodes.length&amp;&amp;C(e.childNodes,(function(e){var n;if(e&amp;&amp;"span"===(null===(n=e.tagName)||void 0===n?void 0:n.toLowerCase()))try{var r=oe(e);t="".concat(t," ").concat(r).trim(),e.childNodes&amp;&amp;e.childNodes.length&amp;&amp;(t="".concat(t," ").concat(ge(e)).trim())}catch(e){console.error(e)}})),t}var _e=function(){function e(t){r(this,e),this.clicks=[],this.enabled=t}return o(e,[{key:"isRageClick",value:function(e,t,n){if(!this.enabled)return!1;var r=this.clicks[this.clicks.length-1];if(r&amp;&amp;Math.abs(e-r.x)+Math.abs(t-r.y)&lt;30&amp;&amp;n-r.timestamp&lt;1e3){if(this.clicks.push({x:e,y:t,timestamp:n}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}}]),e}(),ve="$people_distinct_id",me="__alias",ye="__timers",be="$autocapture_disabled_server_side",we="$session_recording_enabled_server_side",ke="$console_log_recording_enabled_server_side",Se="$session_recording_recorder_version_server_side",Ee="$sesid",xe="$enabled_feature_flags",Pe="$early_access_features",Fe="$stored_person_properties",Oe="$stored_group_properties",Ie="$surveys",Re="$flag_call_reported",Te="$user_state",$e="$posthog_quota_limited",Me=[ve,me,"__cmpns",ye,we,Ee,xe,Te,$e,Pe,Oe,Fe,Ie,Re];function Ae(e,t){return t.length&gt;e?t.slice(0,e)+"...":t}var Ce={_initializedTokens:[],_isDisabledServerSide:null,_isAutocaptureEnabled:!1,_setIsAutocaptureEnabled:function(e){var t,n=null===this._isDisabledServerSide?!(null===(t=e.persistence)||void 0===t||!t.props[be]):this._isDisabledServerSide,r=!!e.get_config("autocapture");this._isAutocaptureEnabled=r&amp;&amp;!n},_previousElementSibling:function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&amp;&amp;!se(t));return t},_getAugmentPropertiesFromElement:function(e){if(!de(e))return{};var t={};return C(e.attributes,(function(e){if(0===e.name.indexOf("data-ph-capture-attribute")){var n=e.name.replace("data-ph-capture-attribute-",""),r=e.value;n&amp;&amp;r&amp;&amp;pe(r)&amp;&amp;(t[n]=r)}})),t},_getPropertiesFromElement:function(e,t,n){var r,i=e.tagName.toLowerCase(),o={tag_name:i};le.indexOf(i)&gt;-1&amp;&amp;!n&amp;&amp;("a"===i.toLowerCase()||"button"===i.toLowerCase()?o.$el_text=Ae(1024,he(e)):o.$el_text=Ae(1024,oe(e)));var s=ie(e);s.length&gt;0&amp;&amp;(o.classes=s.split(" ").filter((function(e){return""!==e})));var a=null===(r=this.config)||void 0===r?void 0:r.element_attribute_ignorelist;C(e.attributes,(function(n){var r;fe(e)&amp;&amp;-1===["name","id","class"].indexOf(n.name)||(null!=a&amp;&amp;a.includes(n.name)||!t&amp;&amp;pe(n.value)&amp;&amp;("string"!=typeof(r=n.name)||"_ngcontent"!==r.substring(0,10)&amp;&amp;"_nghost"!==r.substring(0,7))&amp;&amp;(o["attr__"+n.name]=Ae(1024,n.value)))}));for(var u=1,c=1,l=e;l=this._previousElementSibling(l);)u++,l.tagName===e.tagName&amp;&amp;c++;return o.nth_child=u,o.nth_of_type=c,o},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return C(document.querySelectorAll(e.css_selector),(function(e){var n;["input","select"].indexOf(e.tagName.toLowerCase())&gt;-1?n=e.value:e.textContent&amp;&amp;(n=e.textContent),pe(n)&amp;&amp;t.push(n)})),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return C(this._customProperties,(function(r){C(r.event_selectors,(function(i){C(document.querySelectorAll(i),(function(i){H(e,i)&amp;&amp;de(i)&amp;&amp;(n[r.name]=t._extractCustomPropertyValue(r))}))}))})),n},_getEventTarget:function(e){return void 0===e.target?e.srcElement||null:null!==(t=e.target)&amp;&amp;void 0!==t&amp;&amp;t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:"$autocapture",o=this._getEventTarget(e);(ue(o)&amp;&amp;(o=o.parentNode||null),"$autocapture"===i&amp;&amp;"click"===e.type&amp;&amp;e instanceof MouseEvent)&amp;&amp;(null!==(n=this.rageclicks)&amp;&amp;void 0!==n&amp;&amp;n.isRageClick(e.clientX,e.clientY,(new Date).getTime())&amp;&amp;this._captureEvent(e,t,"$rageclick"));if(o&amp;&amp;function(e,t){var n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:void 0;if(!e||ae(e,"html")||!se(e))return!1;if(null!=n&amp;&amp;n.url_allowlist){var r=window.location.href,i=n.url_allowlist;if(i&amp;&amp;!i.some((function(e){return r.match(e)})))return!1}if(null!=n&amp;&amp;n.dom_event_allowlist){var o=n.dom_event_allowlist;if(o&amp;&amp;!o.some((function(e){return t.type===e})))return!1}if(null!=n&amp;&amp;n.element_allowlist){var s=n.element_allowlist;if(s&amp;&amp;!s.some((function(t){return e.tagName.toLowerCase()===t})))return!1}if(null!=n&amp;&amp;n.css_selector_allowlist){var a=n.css_selector_allowlist;if(a&amp;&amp;!a.some((function(t){return e.matches(t)})))return!1}for(var u=!1,c=[e],l=!0,d=e;d.parentNode&amp;&amp;!ae(d,"body");)if(ce(d.parentNode))c.push(d.parentNode.host),d=d.parentNode.host;else{if(!(l=d.parentNode||!1))break;if(le.indexOf(l.tagName.toLowerCase())&gt;-1)u=!0;else{var f=window.getComputedStyle(l);f&amp;&amp;"pointer"===f.getPropertyValue("cursor")&amp;&amp;(u=!0)}c.push(l),d=l}var p=window.getComputedStyle(e);if(p&amp;&amp;"pointer"===p.getPropertyValue("cursor")&amp;&amp;"click"===t.type)return!0;var h=e.tagName.toLowerCase();switch(h){case"html":return!1;case"form":return"submit"===t.type;case"input":case"select":case"textarea":return"change"===t.type||"click"===t.type;default:return u?"click"===t.type:"click"===t.type&amp;&amp;(le.indexOf(h)&gt;-1||"true"===e.getAttribute("contenteditable"))}}(o,e,this.config)){for(var s=[o],a=o;a.parentNode&amp;&amp;!ae(a,"body");)ce(a.parentNode)?(s.push(a.parentNode.host),a=a.parentNode.host):(s.push(a.parentNode),a=a.parentNode);var u,c=[],l={},d=!1;if(C(s,(function(e){var n=de(e);"a"===e.tagName.toLowerCase()&amp;&amp;(u=e.getAttribute("href"),u=n&amp;&amp;pe(u)&amp;&amp;u),H(ie(e).split(" "),"ph-no-capture")&amp;&amp;(d=!0),c.push(r._getPropertiesFromElement(e,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var i=r._getAugmentPropertiesFromElement(e);D(l,i)})),t.get_config("mask_all_text")||("a"===o.tagName.toLowerCase()||"button"===o.tagName.toLowerCase()?c[0].$el_text=he(o):c[0].$el_text=oe(o)),u&amp;&amp;(c[0].attr__href=u),d)return!1;var f=D(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(s),l);return t.capture(i,f),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(n){n=n||window.event,t._captureEvent(n,e)};te(document,"submit",n,!1,!0),te(document,"change",n,!1,!0),te(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;"boolean"!=typeof e.__autocapture&amp;&amp;(this.config=e.__autocapture),null!==(t=this.config)&amp;&amp;void 0!==t&amp;&amp;t.url_allowlist&amp;&amp;(this.config.url_allowlist=this.config.url_allowlist.map((function(e){return new RegExp(e)}))),this.rageclicks=new _e(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)&gt;-1?$.log('autocapture already initialized for token "'+n+'"'):(t.persistence&amp;&amp;t.persistence.register(s({},be,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&amp;&amp;e.config&amp;&amp;e.config.enable_collect_everything&amp;&amp;this._isAutocaptureEnabled?(e.custom_properties&amp;&amp;(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=B(t)?10:t,n=B(n)?10:n;for(var r=0,i=0;i&lt;e.length;i++)r+=e.charCodeAt(i);return r%t&lt;n},isBrowserSupported:function(){return N(document.querySelectorAll)}};!function(e){for(var t in e)"function"==typeof e[t]&amp;&amp;(e[t]=e[t].bind(e))}(Ce),function(e){for(var t in e)"function"==typeof e[t]&amp;&amp;(e[t]=G(e[t]))}(Ce);var De="$active_feature_flags",je="$override_feature_flags",Ne="$feature_flag_payloads",He=function(e){var t,n={},r=v(function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}(e||{}));try{for(r.s();!(t=r.n()).done;){var i=p(t.value,2),o=i[0],s=i[1];s&amp;&amp;(n[o]=s)}}catch(e){r.e(e)}finally{r.f()}return n},Le=function(){function e(t){r(this,e),this.instance=t,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return o(e,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(xe),t=this.instance.get_property(je);if(!t)return e||{};for(var n=D({},e),r=Object.keys(t),i=0;i&lt;r.length;i++)!1===t[r[i]]?delete n[r[i]]:n[r[i]]=t[r[i]];return this._override_warning||(console.warn("[PostHog] Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this._override_warning=!0),n}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(Ne)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&amp;&amp;!this.reloadFeatureFlagsInAction&amp;&amp;setTimeout((function(){!e.reloadFeatureFlagsInAction&amp;&amp;e.reloadFeatureFlagsQueued&amp;&amp;(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())}),5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;this.setReloadingPaused(!0);var t=this.instance.get_config("token"),n=this.instance.get_property(Fe),r=this.instance.get_property(Oe),i=Q(JSON.stringify({token:t,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:n,group_properties:r,disable_flags:this.instance.get_config("advanced_disable_feature_flags")||void 0}));this.instance._send_request(this.instance.get_config("api_host")+"/decide/?v=3",{data:i},{method:"POST"},this.instance._prepare_callback((function(t){e.$anon_distinct_id=void 0,e.receivedFeatureFlags(t),e.setReloadingPaused(!1),e._startReloadTimer()})))}},{key:"getFeatureFlag",value:function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&amp;&amp;this.getFlags().length&gt;0){var n,r=this.getFlagVariants()[e],i="".concat(r),o=this.instance.get_property(Re)||{};if(t.send_event||!("send_event"in t))if(!(e in o)||!o[e].includes(i))Array.isArray(o[e])?o[e].push(i):o[e]=[i],null===(n=this.instance.persistence)||void 0===n||n.register(s({},Re,o)),this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:r});return r}console.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&amp;&amp;this.getFlags().length&gt;0)return!!this.getFeatureFlag(e,t);console.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((function(t){return t!==e}))}},{key:"receivedFeatureFlags",value:function(e){if(this.instance.persistence){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();!function(e,n){var r=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{},i=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:{},o=e.featureFlags,a=e.featureFlagPayloads;if(o)if(Array.isArray(o)){var u,c={};if(o)for(var l=0;l&lt;o.length;l++)c[o[l]]=!0;n&amp;&amp;n.register((s(u={},De,o),s(u,xe,c),u))}else{var d,f=o,p=a;e.errorsWhileComputingFlags&amp;&amp;(f=t(t({},r),f),p=t(t({},i),p)),n&amp;&amp;n.register((s(d={},De,Object.keys(He(f))),s(d,xe,f||{}),s(d,Ne,p||{}),d))}}(e,this.instance.persistence,n,r),this._fireFeatureFlagsCallbacks()}}},{key:"override",value:function(e){if(!this.instance.__loaded||!this.instance.persistence)return $.unintializedWarning("posthog.feature_flags.override");if(this._override_warning=!1,!1===e)this.instance.persistence.unregister(je);else if(Array.isArray(e)){for(var t={},n=0;n&lt;e.length;n++)t[e[n]]=!0;this.instance.persistence.register(s({},je,t))}else this.instance.persistence.register(s({},je,e))}},{key:"onFeatureFlags",value:function(e){var t=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var n=this._prepareFeatureFlagsForCallbacks(),r=n.flags,i=n.flagVariants;e(r,i)}return function(){return t.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,n){var r,i,o=s({},"$feature_enrollment/".concat(e),n);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:n,$set:o}),this.setPersonPropertiesForFlags(o,!1);var a=t(t({},this.getFlagVariants()),{},s({},e,n));null===(r=this.instance.persistence)||void 0===r||r.register((s(i={},De,Object.keys(He(a))),s(i,xe,a),i)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var t=this,n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1],r=this.instance.get_property(Pe);if(r&amp;&amp;!n)return e(r);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},(function(n){var r,i=n.earlyAccessFeatures;return null===(r=t.instance.persistence)||void 0===r||r.register(s({},Pe,i)),e(i)}))}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((function(e){return t[e]})),flagVariants:Object.keys(t).filter((function(e){return t[e]})).reduce((function(e,n){return e[n]=t[n],e}),{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var e=this._prepareFeatureFlagsForCallbacks(),t=e.flags,n=e.flagVariants;this.featureFlagEventHandlers.forEach((function(e){return e(t,n)}))}},{key:"setPersonPropertiesForFlags",value:function(e){var n=!(arguments.length&gt;1&amp;&amp;void 0!==arguments[1])||arguments[1],r=this.instance.get_property(Fe)||{};this.instance.register(s({},Fe,t(t({},r),e))),n&amp;&amp;this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(Fe)}},{key:"setGroupPropertiesForFlags",value:function(e){var n=!(arguments.length&gt;1&amp;&amp;void 0!==arguments[1])||arguments[1],r=this.instance.get_property(Oe)||{};0!==Object.keys(r).length&amp;&amp;Object.keys(r).forEach((function(n){r[n]=t(t({},r[n]),e[n]),delete e[n]})),this.instance.register(s({},Oe,t(t({},r),e))),n&amp;&amp;this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var n=this.instance.get_property(Oe)||{};this.instance.register(s({},Oe,t(t({},n),{},s({},e,{}))))}else this.instance.unregister(Oe)}}]),e}(),Be=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,qe={is_supported:function(){return!0},error:function(e){$.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";").filter((function(e){return e.length})),r=0;r&lt;n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(e){}return null},parse:function(e){var t;try{t=JSON.parse(qe.get(e))||{}}catch(e){}return t},set:function(e,t,n,r,i){try{var o="",s="",a="";if(r){var u=document.location.hostname.match(Be),c=u?u[0]:"";o=c?"; domain=."+c:""}if(n){var l=new Date;l.setTime(l.getTime()+24*n*60*60*1e3),s="; expires="+l.toUTCString()}i&amp;&amp;(a="; secure");var d=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+o+a;return document.cookie=d,d}catch(e){return}},remove:function(e,t){try{qe.set(e,"",-1,t)}catch(e){return}}},Ue=null,Ve={is_supported:function(){if(null!==Ue)return Ue;var e=!0;if("undefined"!=typeof window)try{var t="__mplssupport__";Ve.set(t,"xyz"),'"xyz"'!==Ve.get(t)&amp;&amp;(e=!1),Ve.remove(t)}catch(t){e=!1}else e=!1;return e||$.error("localStorage unsupported; falling back to cookie store"),Ue=e,e},error:function(e){$.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){Ve.error(e)}return null},parse:function(e){try{return JSON.parse(Ve.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(e){Ve.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){Ve.error(e)}}},Ge=["distinct_id",Ee],ze=t(t({},Ve),{},{parse:function(e){try{var t={};try{t=qe.parse(e)||{}}catch(e){}var n=D(t,JSON.parse(Ve.get(e)||"{}"));return Ve.set(e,n),n}catch(e){}return null},set:function(e,t,n,r,i){try{Ve.set(e,t);var o={};Ge.forEach((function(e){t[e]&amp;&amp;(o[e]=t[e])})),Object.keys(o).length&amp;&amp;qe.set(e,o,n,r,i)}catch(e){Ve.error(e)}},remove:function(e,t){try{window.localStorage.removeItem(e),qe.remove(e,t)}catch(e){Ve.error(e)}}}),We={},Ye={is_supported:function(){return!0},error:function(e){$.error("memoryStorage error: "+e)},get:function(e){return We[e]||null},parse:function(e){return We[e]||null},set:function(e,t){We[e]=t},remove:function(e){delete We[e]}},Qe=null,Je={is_supported:function(){if(null!==Qe)return Qe;if(Qe=!0,"undefined"!=typeof window)try{var e="__support__";Je.set(e,"xyz"),'"xyz"'!==Je.get(e)&amp;&amp;(Qe=!1),Je.remove(e)}catch(e){Qe=!1}else Qe=!1;return Qe},error:function(e){m.DEBUG&amp;&amp;$.error("sessionStorage error: ",e)},get:function(e){try{return window.sessionStorage.getItem(e)}catch(e){Je.error(e)}return null},parse:function(e){try{return JSON.parse(Je.get(e))||null}catch(e){}return null},set:function(e,t){try{window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){Je.error(e)}},remove:function(e){try{window.sessionStorage.removeItem(e)}catch(e){Je.error(e)}}},Xe=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],Ke=function(){function e(t){r(this,e);var n="";t.token&amp;&amp;(n=t.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),this.props={},this.campaign_params_saved=!1,this.custom_campaign_params=t.custom_campaign_params||[],t.persistence_name?this.name="ph_"+t.persistence_name:this.name="ph_"+n+"_posthog",-1===Xe.indexOf(t.persistence.toLowerCase())&amp;&amp;($.critical("Unknown persistence type "+t.persistence+"; falling back to cookie"),t.persistence="cookie");var i=t.persistence.toLowerCase();"localstorage"===i&amp;&amp;Ve.is_supported()?this.storage=Ve:"localstorage+cookie"===i&amp;&amp;ze.is_supported()?this.storage=ze:"sessionstorage"===i&amp;&amp;Je.is_supported()?this.storage=Je:this.storage="memory"===i?Ye:qe,this.user_state="anonymous",this.load(),this.update_config(t),this.save()}return o(e,[{key:"properties",value:function(){var e={};return C(this.props,(function(t,r){if(r===xe&amp;&amp;"object"===n(t))for(var i=Object.keys(t),o=0;o&lt;i.length;o++)e["$feature/".concat(i[o])]=t[i[o]];else a=r,u=!1,(null===(s=Me)?u:I&amp;&amp;s.indexOf===I?-1!=s.indexOf(a):(C(s,(function(e){if(u||(u=e===a))return T})),u))||(e[r]=t);var s,a,u})),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&amp;&amp;(this.props=D({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,t,n){var r=this;if(L(e)){void 0===t&amp;&amp;(t="None"),this.expire_days=void 0===n?this.default_expiry:n;var i=!1;if(C(e,(function(e,n){r.props.hasOwnProperty(n)&amp;&amp;r.props[n]!==t||(r.props[n]=e,i=!0)})),i)return this.save(),!0}return!1}},{key:"register",value:function(e,t){var n=this;if(L(e)){this.expire_days=void 0===t?this.default_expiry:t;var r=!1;if(C(e,(function(t,i){e.hasOwnProperty(i)&amp;&amp;n.props[i]!==t&amp;&amp;(n.props[i]=t,r=!0)})),r)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&amp;&amp;(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(re.campaignParams(this.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(re.searchInfo())}},{key:"update_referrer_info",value:function(){this.register({$referrer:this.props.$referrer||re.referrer(),$referring_domain:this.props.$referring_domain||re.referringDomain()})}},{key:"get_referrer_info",value:function(){return z({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"safe_merge",value:function(e){return C(this.props,(function(t,n){n in e||(e[n]=t)})),e}},{key:"update_config",value:function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&amp;&amp;(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&amp;&amp;(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,t){var n=this.props[ye]||{};n[e]=t,this.props[ye]=n,this.save()}},{key:"remove_event_timer",value:function(e){var t=(this.props[ye]||{})[e];return B(t)||(delete this.props[ye][e],this.save()),t}},{key:"get_user_state",value:function(){return this.props[Te]||"anonymous"}},{key:"set_user_state",value:function(e){this.props[Te]=e,this.save()}},{key:"get_quota_limits",value:function(){return this.props[$e]||{}}},{key:"set_quota_limits",value:function(e){this.props[$e]=e,this.save()}}]),e}(),Ze="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",et=2,tt=4,nt=3,rt=6,it=0,ot=5e6;var st="rrweb/console@1";var at,ut=o((function e(t){var n,i,o=this,a=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};r(this,e),s(this,"bucketSize",100),s(this,"refillRate",10),s(this,"mutationBuckets",{}),s(this,"loggedTracker",{}),s(this,"refillBuckets",(function(){Object.keys(o.mutationBuckets).forEach((function(e){o.mutationBuckets[e]=o.mutationBuckets[e]+o.refillRate,o.mutationBuckets[e]&gt;=o.bucketSize&amp;&amp;delete o.mutationBuckets[e]}))})),s(this,"getNodeOrRelevantParent",(function(e){var t=o.rrweb.mirror.getNode(e);if("svg"!==(null==t?void 0:t.nodeName)&amp;&amp;t instanceof Element){var n=t.closest("svg");if(n)return[o.rrweb.mirror.getId(n),n]}return[e,t]})),s(this,"numberOfChanges",(function(e){var t,n,r,i,o,s,a,u;return(null!==(t=null===(n=e.removes)||void 0===n?void 0:n.length)&amp;&amp;void 0!==t?t:0)+(null!==(r=null===(i=e.attributes)||void 0===i?void 0:i.length)&amp;&amp;void 0!==r?r:0)+(null!==(o=null===(s=e.texts)||void 0===s?void 0:s.length)&amp;&amp;void 0!==o?o:0)+(null!==(a=null===(u=e.adds)||void 0===u?void 0:u.length)&amp;&amp;void 0!==a?a:0)})),s(this,"throttleMutations",(function(e){if(e.type!==nt||e.data.source!==it)return e;var t=e.data,n=o.numberOfChanges(t);t.attributes&amp;&amp;(t.attributes=t.attributes.filter((function(e){var t,n,r,i=p(o.getNodeOrRelevantParent(e.id),2),s=i[0],a=i[1];if(0===o.mutationBuckets[s])return!1;(o.mutationBuckets[s]=null!==(t=o.mutationBuckets[s])&amp;&amp;void 0!==t?t:o.bucketSize,o.mutationBuckets[s]=Math.max(o.mutationBuckets[s]-1,0),0===o.mutationBuckets[s])&amp;&amp;(o.loggedTracker[s]||(o.loggedTracker[s]=!0,null===(n=(r=o.options).onBlockedNode)||void 0===n||n.call(r,s,a)));return e})));var r=o.numberOfChanges(t);return 0!==r||n===r?e:void 0})),this.rrweb=t,this.options=a,this.refillRate=null!==(n=this.options.refillRate)&amp;&amp;void 0!==n?n:this.refillRate,this.bucketSize=null!==(i=this.options.bucketSize)&amp;&amp;void 0!==i?i:this.bucketSize,setInterval((function(){o.refillBuckets()}),1e3)})),ct="/s/";!function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"}(at||(at={}));var lt=[at.MouseMove,at.MouseInteraction,at.Scroll,at.ViewportResize,at.Input,at.TouchMove,at.MediaInteraction,at.Drag],dt=function(){function e(t){var n=this;r(this,e),s(this,"lastActivityTimestamp",Date.now()),s(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=ct,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",(function(){n._flushBuffer()}))}return o(e,[{key:"getSessionManager",value:function(){if(this.instance.sessionManager)return this.instance.sessionManager;$.error("Session recording started without valid sessionManager")}},{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&amp;&amp;this.stopRrweb&amp;&amp;(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var e=!!this.instance.get_property(we),t=!this.instance.get_config("disable_session_recording");return e&amp;&amp;t}},{key:"isConsoleLogCaptureEnabled",value:function(){var e=!!this.instance.get_property(ke),t=this.instance.get_config("enable_recording_console_log");return null!=t?t:e}},{key:"getRecordingVersion",value:function(){var e,t=this.instance.get_property(Se);return(null===(e=this.instance.get_config("session_recording"))||void 0===e?void 0:e.recorderVersion)||t||"v1"}},{key:"afterDecideResponse",value:function(e){var t,n,r,i,o,a;(this.receivedDecide=!0,this.instance.persistence)&amp;&amp;this.instance.persistence.register((s(o={},we,!!e.sessionRecording),s(o,ke,null===(r=e.sessionRecording)||void 0===r?void 0:r.consoleLogRecordingEnabled),s(o,Se,null===(i=e.sessionRecording)||void 0===i?void 0:i.recorderVersion),o));null!==(t=e.sessionRecording)&amp;&amp;void 0!==t&amp;&amp;t.endpoint&amp;&amp;(this.endpoint=null===(a=e.sessionRecording)||void 0===a?void 0:a.endpoint);null!==(n=e.sessionRecording)&amp;&amp;void 0!==n&amp;&amp;n.recorderVersion&amp;&amp;(this.recorderVersion=e.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(e){var t,n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"log";null===(t=this.instance.sessionRecording)||void 0===t||t.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:n,trace:[],payload:[JSON.stringify(e)]}},timestamp:V()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var e=this;this.receivedDecide&amp;&amp;(this.emit=!0,this.snapshots.forEach((function(t){return e._captureSnapshotBuffered(t)}))),this._startCapture()}},{key:"_startCapture",value:function(){var e=this,t=this.getSessionManager();if(t&amp;&amp;void 0!==Object.assign&amp;&amp;!this.captureStarted&amp;&amp;!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,t.checkAndGetSessionAndWindowId();var n="v2"===this.getRecordingVersion()?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?ne(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(m.LIB_VERSION),(function(t){if(t)return $.error("Could not load ".concat(n),t);e._onScriptLoaded()})):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(e){var t;return e.type===nt&amp;&amp;-1!==lt.indexOf(null===(t=e.data)||void 0===t?void 0:t.source)}},{key:"_updateWindowAndSessionIds",value:function(e){var t=this.getSessionManager();if(t){var n=this._isInteractiveEvent(e);if(n||this.isIdle||e.timestamp-this.lastActivityTimestamp&gt;3e5&amp;&amp;(this.isIdle=!0),n&amp;&amp;(this.lastActivityTimestamp=e.timestamp,this.isIdle&amp;&amp;(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=t.checkAndGetSessionAndWindowId(!n,e.timestamp),i=r.windowId,o=r.sessionId;-1!==[et,tt].indexOf(e.type)||this.windowId===i&amp;&amp;this.sessionId===o||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=o}}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var e;return null===(e=this.rrwebRecord)||void 0===e||e.takeFullSnapshot(),!0}catch(e){return $.error("Error taking full snapshot.",e),!1}}},{key:"_onScriptLoaded",value:function(){var e,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),o=0,s=Object.entries(i||{});o&lt;s.length;o++){var a=p(s[o],2),u=a[0],c=a[1];u in r&amp;&amp;(r[u]=c)}this.rrwebRecord?(this.mutationRateLimiter=null!==(e=this.mutationRateLimiter)&amp;&amp;void 0!==e?e:new ut(this.rrwebRecord,{onBlockedNode:function(e,t){var r="Too many mutations on node '".concat(e,"'. Rate limiting. This could be due to SVG animations or something similar");$.log(r,{node:t}),n.log("[PostHog Recorder] "+r,"warn")}}),this.stopRrweb=this.rrwebRecord(t({emit:function(e){n.onRRwebEmit(e)},plugins:window.rrwebConsoleRecord&amp;&amp;this.isConsoleLogCaptureEnabled()?[window.rrwebConsoleRecord.getRecordConsolePlugin()]:[]},r)),this.instance._addCaptureHook((function(e){try{var t;if("$pageview"===e)null===(t=n.rrwebRecord)||void 0===t||t.addCustomEvent("$pageview",{href:window.location.href})}catch(e){$.error("Could not add $pageview to rrweb session",e)}})),this.lastActivityTimestamp=Date.now(),this.isIdle=!1):$.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"onRRwebEmit",value:function(e){if(e&amp;&amp;"object"===n(e)){var t=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(e):e;if(t){var r=function(e){var t=JSON.stringify(e);if(t.length&gt;ot){var n,r=v(t.matchAll(/data:([\w/\-.]+);(\w+),([^)"]*)/gim));try{for(r.s();!(n=r.n()).done;){var i=n.value;t="image/"===i[1].toLocaleLowerCase().slice(0,6)?t.replace(i[0],Ze):t.replace(i[0],"")}}catch(e){r.e(e)}finally{r.f()}}return{event:JSON.parse(t),size:t.length}}(function(e){var t=e;if(t&amp;&amp;"object"===n(t)&amp;&amp;t.type===rt&amp;&amp;"object"===n(t.data)&amp;&amp;t.data.plugin===st){t.data.payload.payload.length&gt;10&amp;&amp;(t.data.payload.payload=t.data.payload.payload.slice(0,10),t.data.payload.payload.push("...[truncated]"));for(var r=[],i=0;i&lt;t.data.payload.payload.length;i++)t.data.payload.payload[i]&amp;&amp;t.data.payload.payload[i].length&gt;2e3?r.push(t.data.payload.payload[i].slice(0,2e3)+"...[truncated]"):r.push(t.data.payload.payload[i]);return t.data.payload.payload=r,e}return e}(t)),i=r.event,o=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var s={$snapshot_bytes:o,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.emit?this._captureSnapshotBuffered(s):this.snapshots.push(s)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&amp;&amp;(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&amp;&amp;0!==this.buffer.data.length&amp;&amp;this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(e){var t,n=this,r=2+((null===(t=this.buffer)||void 0===t?void 0:t.data.length)||0);(!this.buffer||this.buffer.size+e.$snapshot_bytes+r&gt;943718.4||this.buffer.sessionId!==this.sessionId)&amp;&amp;(this.buffer=this._flushBuffer()),this.buffer.size+=e.$snapshot_bytes,this.buffer.data.push(e.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout((function(){n._flushBuffer()}),2e3))}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:"recordings",_metrics:{rrweb_full_snapshot:e.$snapshot_data.type===et}})}}]),e}(),ft={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},pt=["first-input","navigation","paint","resource"],ht=["/s/","/e/"],gt=function(){function e(t){r(this,e),s(this,"_forceAllowLocalhost",!1),this.instance=t}return o(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var e,t,n=this;if(!this.observer)if(void 0!==(null===(e=window)||void 0===e||null===(t=e.PerformanceObserver)||void 0===t?void 0:t.supportedEntryTypes))if(!F.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){n._capturePerformanceEvent(e)}))}));var r=PerformanceObserver.supportedEntryTypes.filter((function(e){return pt.includes(e)}));r.forEach((function(e){var t;null===(t=n.observer)||void 0===t||t.observe({type:e,buffered:!0})}))}catch(e){console.error("PostHog failed to start performance observer",e),this.stopObserving()}else $.log("PostHog Peformance observer not started because we are on localhost.");else $.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&amp;&amp;(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var e,t;return null!==(e=null!==(t=this.instance.get_config("capture_performance"))&amp;&amp;void 0!==t?t:this.remoteEnabled)&amp;&amp;void 0!==e&amp;&amp;e}},{key:"afterDecideResponse",value:function(e){this.remoteEnabled=e.capturePerformance||!1,this.isEnabled()&amp;&amp;this.startObserving()}},{key:"_capturePerformanceEvent",value:function(e){if(0===e.name.indexOf(this.instance.get_config("api_host"))){var t=e.name.replace(this.instance.get_config("api_host"),"");if(ht.find((function(e){return 0===t.indexOf(e)})))return}var n={url:e.name},r=this.instance.get_config("session_recording");if(r.maskNetworkRequestFn&amp;&amp;(n=r.maskNetworkRequestFn(n)),n){var i=e.toJSON();i.name=n.url;var o={},a=Math.floor(Date.now()-performance.now());for(var u in o[ft.timeOrigin]=a,o[ft.timestamp]=Math.floor(a+e.startTime),ft)void 0!==i[u]&amp;&amp;(o[ft[u]]=i[u]);if(this.capturePerformanceEvent(o),_t(e)){var c,l=v(e.serverTiming||[]);try{for(l.s();!(c=l.n()).done;){var d,f=c.value;this.capturePerformanceEvent((s(d={},ft.timeOrigin,a),s(d,ft.timestamp,Math.floor(a+e.startTime)),s(d,ft.name,f.name),s(d,ft.duration,f.duration),s(d,ft.entryType,"serverTiming"),d))}}catch(e){l.e(e)}finally{l.f()}}}}},{key:"capturePerformanceEvent",value:function(e){var t,n=e[ft.timestamp];null===(t=this.instance.sessionRecording)||void 0===t||t.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:e},timestamp:n})}}]),e}(),_t=function(e){return"navigation"===e.entryType||"resource"===e.entryType},vt=function(){function e(t){r(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return o(e,[{key:"call",value:function(){var e=this,t=Q(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(Fe),group_properties:this.instance.get_property(Oe),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:t,verbose:!0},{method:"POST"},(function(t){return e.parseDecideResponse(t)}))}},{key:"parseDecideResponse",value:function(e){var t,n,r,i=this;if(this.instance.featureFlags.setReloadingPaused(!1),this.instance.featureFlags._startReloadTimer(),0!==(null==e?void 0:e.status)){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((function(){i.parseDecideResponse(e)}),500);if(this.instance.toolbar.afterDecideResponse(e),null===(t=this.instance.sessionRecording)||void 0===t||t.afterDecideResponse(e),Ce.afterDecideResponse(e,this.instance),null===(n=this.instance.webPerformance)||void 0===n||n.afterDecideResponse(e),null===(r=this.instance.exceptionAutocapture)||void 0===r||r.afterDecideResponse(e),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(e),this.instance.compression={},e.supportedCompression&amp;&amp;!this.instance.get_config("disable_compression")){var o,s={},a=v(e.supportedCompression);try{for(a.s();!(o=a.n()).done;){s[o.value]=!0}}catch(e){a.e(e)}finally{a.f()}this.instance.compression=s}if(e.siteApps)if(this.instance.get_config("opt_in_site_apps")){var u,c=this.instance.get_config("api_host"),l=v(e.siteApps);try{var d=function(){var e=u.value,t=e.id,n=e.url,r=[c,"/"===c[c.length-1]&amp;&amp;"/"===n[0]?n.substring(1):n].join("");window["__$$ph_site_app_".concat(t)]=i.instance,ne(r,(function(e){e&amp;&amp;console.error("Error while initializing PostHog app with config id ".concat(t),e)}))};for(l.s();!(u=l.n()).done;)d()}catch(e){l.e(e)}finally{l.f()}}else e.siteApps.length&gt;0&amp;&amp;console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),mt=["https://app.posthog.com","https://eu.posthog.com"],yt=["source"],bt=function(){function e(t){r(this,e),this.instance=t}return o(e,[{key:"afterDecideResponse",value:function(e){var n=e.toolbarParams||e.editorParams||(e.toolbarVersion?{toolbarVersion:e.toolbarVersion}:{});e.isAuthenticated&amp;&amp;n.toolbarVersion&amp;&amp;0===n.toolbarVersion.indexOf("toolbar")&amp;&amp;this.loadToolbar(t({},n))}},{key:"maybeLoadToolbar",value:function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:window.location,t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:window.history;try{if(!t){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch(e){return!1}t=window.localStorage}var r,i=ee(e.hash,"__posthog")||ee(e.hash,"state"),o=i?JSON.parse(decodeURIComponent(i)):null;return o&amp;&amp;"ph_authorize"===o.action?((r=o).source="url",r&amp;&amp;Object.keys(r).length&gt;0&amp;&amp;(o.desiredHash?e.hash=o.desiredHash:n?n.replaceState("",document.title,e.pathname+e.search):e.hash="")):((r=JSON.parse(t.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.get_config("token")!==r.token)&amp;&amp;(this.loadToolbar(r),!0)}catch(e){return!1}}},{key:"loadToolbar",value:function(e){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e5,o=Math.floor(Date.now()/i)*i,s="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?t=").concat(o),a=!mt.includes(this.instance.get_config("api_host"))&amp;&amp;this.instance.get_config("advanced_disable_toolbar_metrics"),u=t(t({token:this.instance.get_config("token")},e),{},{apiURL:r},a?{instrument:!1}:{});u.source;var c=l(u,yt);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(c)),ne(s,(function(e){e?$.error("Failed to load toolbar",e):(window.ph_load_toolbar||window.ph_load_editor)(u,n.instance)})),te(window,"turbolinks:load",(function(){window._postHogToolbarLoaded=!1,n.loadToolbar(u)})),!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:window.location,t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:window.history;return this.maybeLoadToolbar(e,t,n)}}]),e}(),wt="__ph_opt_in_out_";function kt(e,t){Rt(!0,e,t)}function St(e,t){Rt(!1,e,t)}function Et(e,t){return"1"===It(e,t)}function xt(e,t){return!!function(e){if(e&amp;&amp;e.respectDnt){var t=e&amp;&amp;e.window||S,n=t.navigator||{},r=!1;return C([n.doNotTrack,n.msDoNotTrack,t.doNotTrack],(function(e){H([!0,1,"1","yes"],e)&amp;&amp;(r=!0)})),r}return!1}(t)||"0"===It(e,t)}function Pt(e,t){Ft(t=t||{}).remove(Ot(e,t),!!t.crossSubdomainCookie)}function Ft(e){return"localStorage"===(e=e||{}).persistenceType?Ve:"localStorage+cookie"===e.persistenceType?ze:qe}function Ot(e,t){return((t=t||{}).persistencePrefix||wt)+e}function It(e,t){return Ft(t).get(Ot(e,t))}function Rt(e,t,n){q(t)&amp;&amp;t.length?(Ft(n=n||{}).set(Ot(t,n),e?1:0,U(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&amp;&amp;e&amp;&amp;n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var Tt=function(){function e(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:3e3;r(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return o(e,[{key:"setPollInterval",value:function(e){this._pollInterval=e,this.isPolling&amp;&amp;this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return(new Date).getTime()}}]),e}(),$t=function(e){a(i,e);var n=f(i);function i(e){var t,o=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:3e3;return r(this,i),(t=n.call(this,o)).handlePollRequest=e,t}return o(i,[{key:"enqueue",value:function(e,t,n){this._event_queue.push({url:e,data:t,options:n}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var e=this;clearTimeout(this._poller),this._poller=setTimeout((function(){if(e._event_queue.length&gt;0){var t=e.formatQueue(),n=function(n){var r=t[n],i=r.url,o=r.data,s=r.options;C(o,(function(t,n){o[n].offset=Math.abs(o[n].timestamp-e.getTime()),delete o[n].timestamp})),e.handlePollRequest(i,o,s)};for(var r in t)n(r);e._event_queue.length=0,e._empty_queue_count=0}else e._empty_queue_count++;e._empty_queue_count&gt;4&amp;&amp;(e.isPolling=!1,e._empty_queue_count=0),e.isPolling&amp;&amp;e.poll()}),this._pollInterval)}},{key:"unload",value:function(){var e=this;clearTimeout(this._poller);var n=this._event_queue.length&gt;0?this.formatQueue():{};this._event_queue.length=0;var r=Object.values(n);[].concat(h(r.filter((function(e){return 0===e.url.indexOf("/e")}))),h(r.filter((function(e){return 0!==e.url.indexOf("/e")})))).map((function(n){var r=n.url,i=n.data,o=n.options;e.handlePollRequest(r,i,t(t({},o),{},{transport:"sendBeacon"}))}))}},{key:"formatQueue",value:function(){var e={};return C(this._event_queue,(function(t){var n=t.url,r=t.data,i=t.options,o=(i?i._batchKey:null)||n;void 0===e[o]&amp;&amp;(e[o]={data:[],url:n,options:i}),i&amp;&amp;e[o].options&amp;&amp;e[o].options._metrics&amp;&amp;!e[o].options._metrics.rrweb_full_snapshot&amp;&amp;(e[o].options._metrics.rrweb_full_snapshot=i._metrics.rrweb_full_snapshot),e[o].data.push(r)})),e}}]),i}(Tt),Mt=Uint8Array,At=Uint16Array,Ct=Uint32Array,Dt=new Mt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),jt=new Mt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Nt=new Mt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ht=function(e,t){for(var n=new At(31),r=0;r&lt;31;++r)n[r]=t+=1&lt;&lt;e[r-1];var i=new Ct(n[30]);for(r=1;r&lt;30;++r)for(var o=n[r];o&lt;n[r+1];++o)i[o]=o-n[r]&lt;&lt;5|r;return[n,i]},Lt=Ht(Dt,2),Bt=Lt[0],qt=Lt[1];Bt[28]=258,qt[258]=28;for(var Ut=Ht(jt,0)[1],Vt=new At(32768),Gt=0;Gt&lt;32768;++Gt){var zt=(43690&amp;Gt)&gt;&gt;&gt;1|(21845&amp;Gt)&lt;&lt;1;zt=(61680&amp;(zt=(52428&amp;zt)&gt;&gt;&gt;2|(13107&amp;zt)&lt;&lt;2))&gt;&gt;&gt;4|(3855&amp;zt)&lt;&lt;4,Vt[Gt]=((65280&amp;zt)&gt;&gt;&gt;8|(255&amp;zt)&lt;&lt;8)&gt;&gt;&gt;1}var Wt=function(e,t,n){for(var r=e.length,i=0,o=new At(t);i&lt;r;++i)++o[e[i]-1];var s,a=new At(t);for(i=0;i&lt;t;++i)a[i]=a[i-1]+o[i-1]&lt;&lt;1;if(n){s=new At(1&lt;&lt;t);var u=15-t;for(i=0;i&lt;r;++i)if(e[i])for(var c=i&lt;&lt;4|e[i],l=t-e[i],d=a[e[i]-1]++&lt;&lt;l,f=d|(1&lt;&lt;l)-1;d&lt;=f;++d)s[Vt[d]&gt;&gt;&gt;u]=c}else for(s=new At(r),i=0;i&lt;r;++i)s[i]=Vt[a[e[i]-1]++]&gt;&gt;&gt;15-e[i];return s},Yt=new Mt(288);for(Gt=0;Gt&lt;144;++Gt)Yt[Gt]=8;for(Gt=144;Gt&lt;256;++Gt)Yt[Gt]=9;for(Gt=256;Gt&lt;280;++Gt)Yt[Gt]=7;for(Gt=280;Gt&lt;288;++Gt)Yt[Gt]=8;var Qt=new Mt(32);for(Gt=0;Gt&lt;32;++Gt)Qt[Gt]=5;var Jt,Xt=Wt(Yt,9,0),Kt=Wt(Qt,5,0),Zt=function(e){return(e/8&gt;&gt;0)+(7&amp;e&amp;&amp;1)},en=function(e,t,n){(null==t||t&lt;0)&amp;&amp;(t=0),(null==n||n&gt;e.length)&amp;&amp;(n=e.length);var r=new(e instanceof At?At:e instanceof Ct?Ct:Mt)(n-t);return r.set(e.subarray(t,n)),r},tn=function(e,t,n){n&lt;&lt;=7&amp;t;var r=t/8&gt;&gt;0;e[r]|=n,e[r+1]|=n&gt;&gt;&gt;8},nn=function(e,t,n){n&lt;&lt;=7&amp;t;var r=t/8&gt;&gt;0;e[r]|=n,e[r+1]|=n&gt;&gt;&gt;8,e[r+2]|=n&gt;&gt;&gt;16},rn=function(e,t){for(var n=[],r=0;r&lt;e.length;++r)e[r]&amp;&amp;n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new Mt(0),0];if(1==i){var s=new Mt(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],u=n[1],c=0,l=1,d=2;for(n[0]={s:-1,f:a.f+u.f,l:a,r:u};l!=i-1;)a=n[n[c].f&lt;n[d].f?c++:d++],u=n[c!=l&amp;&amp;n[c].f&lt;n[d].f?c++:d++],n[l++]={s:-1,f:a.f+u.f,l:a,r:u};var f=o[0].s;for(r=1;r&lt;i;++r)o[r].s&gt;f&amp;&amp;(f=o[r].s);var p=new At(f+1),h=on(n[l-1],p,0);if(h&gt;t){r=0;var g=0,_=h-t,v=1&lt;&lt;_;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));r&lt;i;++r){var m=o[r].s;if(!(p[m]&gt;t))break;g+=v-(1&lt;&lt;h-p[m]),p[m]=t}for(g&gt;&gt;&gt;=_;g&gt;0;){var y=o[r].s;p[y]&lt;t?g-=1&lt;&lt;t-p[y]++-1:++r}for(;r&gt;=0&amp;&amp;g;--r){var b=o[r].s;p[b]==t&amp;&amp;(--p[b],++g)}h=t}return[new Mt(p),h]},on=function e(t,n,r){return-1==t.s?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},sn=function(e){for(var t=e.length;t&amp;&amp;!e[--t];);for(var n=new At(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a&lt;=t;++a)if(e[a]==i&amp;&amp;a!=t)++o;else{if(!i&amp;&amp;o&gt;2){for(;o&gt;138;o-=138)s(32754);o&gt;2&amp;&amp;(s(o&gt;10?o-11&lt;&lt;5|28690:o-3&lt;&lt;5|12305),o=0)}else if(o&gt;3){for(s(i),--o;o&gt;6;o-=6)s(8304);o&gt;2&amp;&amp;(s(o-3&lt;&lt;5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[n.subarray(0,r),t]},an=function(e,t){for(var n=0,r=0;r&lt;t.length;++r)n+=e[r]*t[r];return n},un=function(e,t,n){var r=n.length,i=Zt(t+2);e[i]=255&amp;r,e[i+1]=r&gt;&gt;&gt;8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o&lt;r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},cn=function(e,t,n,r,i,o,s,a,u,c,l){tn(t,l++,n),++i[256];for(var d=rn(i,15),f=d[0],p=d[1],h=rn(o,15),g=h[0],_=h[1],v=sn(f),m=v[0],y=v[1],b=sn(g),w=b[0],k=b[1],S=new At(19),E=0;E&lt;m.length;++E)S[31&amp;m[E]]++;for(E=0;E&lt;w.length;++E)S[31&amp;w[E]]++;for(var x=rn(S,7),P=x[0],F=x[1],O=19;O&gt;4&amp;&amp;!P[Nt[O-1]];--O);var I,R,T,$,M=c+5&lt;&lt;3,A=an(i,Yt)+an(o,Qt)+s,C=an(i,f)+an(o,g)+s+14+3*O+an(S,P)+(2*S[16]+3*S[17]+7*S[18]);if(M&lt;=A&amp;&amp;M&lt;=C)return un(t,l,e.subarray(u,u+c));if(tn(t,l,1+(C&lt;A)),l+=2,C&lt;A){I=Wt(f,p,0),R=f,T=Wt(g,_,0),$=g;var D=Wt(P,F,0);tn(t,l,y-257),tn(t,l+5,k-1),tn(t,l+10,O-4),l+=14;for(E=0;E&lt;O;++E)tn(t,l+3*E,P[Nt[E]]);l+=3*O;for(var j=[m,w],N=0;N&lt;2;++N){var H=j[N];for(E=0;E&lt;H.length;++E){var L=31&amp;H[E];tn(t,l,D[L]),l+=P[L],L&gt;15&amp;&amp;(tn(t,l,H[E]&gt;&gt;&gt;5&amp;127),l+=H[E]&gt;&gt;&gt;12)}}}else I=Xt,R=Yt,T=Kt,$=Qt;for(E=0;E&lt;a;++E)if(r[E]&gt;255){L=r[E]&gt;&gt;&gt;18&amp;31;nn(t,l,I[L+257]),l+=R[L+257],L&gt;7&amp;&amp;(tn(t,l,r[E]&gt;&gt;&gt;23&amp;31),l+=Dt[L]);var B=31&amp;r[E];nn(t,l,T[B]),l+=$[B],B&gt;3&amp;&amp;(nn(t,l,r[E]&gt;&gt;&gt;5&amp;8191),l+=jt[B])}else nn(t,l,I[r[E]]),l+=R[r[E]];return nn(t,l,I[256]),l+R[256]},ln=new Ct([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),dn=new Mt(0),fn=function(){for(var e=new Ct(256),t=0;t&lt;256;++t){for(var n=t,r=9;--r;)n=(1&amp;n&amp;&amp;3988292384)^n&gt;&gt;&gt;1;e[t]=n}return e}(),pn=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r&lt;t.length;++r)n=fn[255&amp;n^t[r]]^n&gt;&gt;&gt;8;e=n},d:function(){return 4294967295^e}}},hn=function(e,t,n,r,i){return function(e,t,n,r,i,o){var s=e.length,a=new Mt(r+s+5*(1+Math.floor(s/7e3))+i),u=a.subarray(r,a.length-i),c=0;if(!t||s&lt;8)for(var l=0;l&lt;=s;l+=65535){var d=l+65535;d&lt;s?c=un(u,c,e.subarray(l,d)):(u[l]=o,c=un(u,c,e.subarray(l,s)))}else{for(var f=ln[t-1],p=f&gt;&gt;&gt;13,h=8191&amp;f,g=(1&lt;&lt;n)-1,_=new At(32768),v=new At(g+1),m=Math.ceil(n/3),y=2*m,b=function(t){return(e[t]^e[t+1]&lt;&lt;m^e[t+2]&lt;&lt;y)&amp;g},w=new Ct(25e3),k=new At(288),S=new At(32),E=0,x=0,P=(l=0,0),F=0,O=0;l&lt;s;++l){var I=b(l),R=32767&amp;l,T=v[I];if(_[R]=T,v[I]=R,F&lt;=l){var $=s-l;if((E&gt;7e3||P&gt;24576)&amp;&amp;$&gt;423){c=cn(e,u,0,w,k,S,x,P,O,l-O,c),P=E=x=0,O=l;for(var M=0;M&lt;286;++M)k[M]=0;for(M=0;M&lt;30;++M)S[M]=0}var A=2,C=0,D=h,j=R-T&amp;32767;if($&gt;2&amp;&amp;I==b(l-j))for(var N=Math.min(p,$)-1,H=Math.min(32767,l),L=Math.min(258,$);j&lt;=H&amp;&amp;--D&amp;&amp;R!=T;){if(e[l+A]==e[l+A-j]){for(var B=0;B&lt;L&amp;&amp;e[l+B]==e[l+B-j];++B);if(B&gt;A){if(A=B,C=j,B&gt;N)break;var q=Math.min(j,B-2),U=0;for(M=0;M&lt;q;++M){var V=l-j+M+32768&amp;32767,G=V-_[V]+32768&amp;32767;G&gt;U&amp;&amp;(U=G,T=V)}}}j+=(R=T)-(T=_[R])+32768&amp;32767}if(C){w[P++]=268435456|qt[A]&lt;&lt;18|Ut[C];var z=31&amp;qt[A],W=31&amp;Ut[C];x+=Dt[z]+jt[W],++k[257+z],++S[W],F=l+A,++E}else w[P++]=e[l],++k[e[l]]}}c=cn(e,u,o,w,k,S,x,P,O,l-O,c),o||(c=un(u,c,dn))}return en(a,0,r+Zt(c)+i)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},gn=function(e,t,n){for(;n;++t)e[t]=n,n&gt;&gt;&gt;=8},_n=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level&lt;2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&amp;&amp;gn(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r&lt;=n.length;++r)e[r+10]=n.charCodeAt(r)}},vn=function(e){return 10+(e.filename&amp;&amp;e.filename.length+1||0)};function mn(e,t){void 0===t&amp;&amp;(t={});var n=pn(),r=e.length;n.p(e);var i=hn(e,t,vn(t),8),o=i.length;return _n(i,t),gn(i,o-8,n.d()),gn(i,o-4,r),i}function yn(e,t){var n=e.length;if(!t&amp;&amp;"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new Mt(e.length+(e.length&gt;&gt;&gt;1)),i=0,o=function(e){r[i++]=e},s=0;s&lt;n;++s){if(i+5&gt;r.length){var a=new Mt(i+8+(n-s&lt;&lt;1));a.set(r),r=a}var u=e.charCodeAt(s);u&lt;128||t?o(u):u&lt;2048?(o(192|u&gt;&gt;&gt;6),o(128|63&amp;u)):u&gt;55295&amp;&amp;u&lt;57344?(o(240|(u=65536+(1047552&amp;u)|1023&amp;e.charCodeAt(++s))&gt;&gt;&gt;18),o(128|u&gt;&gt;&gt;12&amp;63),o(128|u&gt;&gt;&gt;6&amp;63),o(128|63&amp;u)):(o(224|u&gt;&gt;&gt;12),o(128|u&gt;&gt;&gt;6&amp;63),o(128|63&amp;u))}return en(r,0,i)}!function(e){e.GZipJS="gzip-js",e.Base64="base64"}(Jt||(Jt={}));var bn=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=(new Date).getTime().toString(),r.ver=m.LIB_VERSION;var i=e.split("?");if(i.length&gt;1){var o,s=v(i[1].split("&amp;"));try{for(s.s();!(o=s.n()).done;){var a=o.value.split("=")[0];r[a]&amp;&amp;delete r[a]}}catch(e){s.e(e)}finally{s.f()}}var u=e.indexOf("?")&gt;-1?"&amp;":"?";return e+u+function(e){var t,n,r=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:"&amp;",i=[];return C(e,(function(e,r){t=encodeURIComponent(e.toString()),n=encodeURIComponent(r),i[i.length]=n+"="+t})),i.join(r)}(r)},wn=function e(t,n){if(n.blob&amp;&amp;t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if("POST"!==n.method)return null;var i,o;return i=Array.isArray(t)||(o=t,"[object Uint8Array]"===Object.prototype.toString.call(o))?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&amp;&amp;t.compression&amp;&amp;(i+="&amp;compression="+t.compression),i},kn=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,o=e.callback,s=e.retriesPerformedSoFar,a=e.retryQueue,u=e.onXHRError,c=e.timeout,l=void 0===c?6e4:c,d=e.onResponse,f=new XMLHttpRequest;f.open(i.method||"GET",t,!0);var p=wn(n,i);C(r,(function(e,t){f.setRequestHeader(t,e)})),"POST"!==i.method||i.blob||f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),f.timeout=l,f.withCredentials=!0,f.onreadystatechange=function(){if(4===f.readyState)if(null==d||d(f),200===f.status){if(o){var e;try{e=JSON.parse(f.responseText)}catch(e){return void $.error(e)}o(e)}}else"function"==typeof u&amp;&amp;u(f),(f.status&lt;400||f.status&gt;500)&amp;&amp;a.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),null==o||o({status:0})},f.send(p)},Sn=18e5;var En=function(e){a(i,e);var n=f(i);function i(e,t){var o;return r(this,i),(o=n.call(this)).isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=e,o.rateLimiter=t,"undefined"!=typeof window&amp;&amp;"onLine"in window.navigator&amp;&amp;(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",(function(){o._handleWeAreNowOnline()})),window.addEventListener("offline",(function(){o.areWeOnline=!1}))),o}return o(i,[{key:"enqueue",value:function(e){var t=e.retriesPerformedSoFar||0;if(!(t&gt;=10)){var n=function(e){var t=3e3*Math.pow(2,e),n=t/2,r=Math.min(Sn,t),i=(Math.random()-.5)*(r-n);return Math.ceil(r+i)}(t),r=new Date(Date.now()+n);this.queue.push({retryAt:r,requestData:e}),console.warn("Enqueued failed request for retry in ".concat(n)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var e=this;this._poller&amp;&amp;clearTimeout(this._poller),this._poller=setTimeout((function(){e.areWeOnline&amp;&amp;e.queue.length&gt;0&amp;&amp;e.flush(),e.poll()}),this._pollInterval)}},{key:"flush",value:function(){var e=new Date(Date.now()),t=this.queue.filter((function(t){return t.retryAt&lt;e}));if(t.length&gt;0){this.queue=this.queue.filter((function(t){return t.retryAt&gt;=e}));var n,r=v(t);try{for(r.s();!(n=r.n()).done;){var i=n.value.requestData;this._executeXhrRequest(i)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"unload",value:function(){this._poller&amp;&amp;(clearTimeout(this._poller),this._poller=void 0);var e,n=v(this.queue);try{for(n.s();!(e=n.n()).done;){var r=e.value.requestData,i=r.url,o=r.data,s=r.options;if(this.rateLimiter.isRateLimited(s._batchKey))m.DEBUG&amp;&amp;console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(i,wn(o,t(t({},s),{},{sendBeacon:!0})))}catch(e){m.DEBUG&amp;&amp;console.error(e)}}}catch(e){n.e(e)}finally{n.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(e){var t=e.url,n=e.data,r=e.options,i=e.headers,o=e.callback,s=e.retriesPerformedSoFar;this.rateLimiter.isRateLimited(r._batchKey)||kn({url:t,data:n||{},options:r||{},headers:i||{},retriesPerformedSoFar:s||0,callback:o,retryQueue:this,onXHRError:this.onXHRError,onResponse:this.rateLimiter.checkForLimiting})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),i}(Tt);
/**
   * uuidv7: An experimental implementation of the proposed UUID Version 7
   *
   * @license Apache-2.0
   * @copyright 2021-2023 LiosK
   * @packageDocumentation
   *
   * from https://github.com/LiosK/uuidv7/blob/e501462ea3d23241de13192ceae726956f9b3b7d/src/index.ts
   */Math.trunc||(Math.trunc=function(e){return e&lt;0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return"number"==typeof e&amp;&amp;isFinite(e)&amp;&amp;Math.floor(e)===e});var xn="0123456789abcdef",Pn=function(){function e(t){if(r(this,e),this.bytes=t,16!==t.length)throw new TypeError("not 128-bit length")}return o(e,[{key:"toString",value:function(){for(var e="",t=0;t&lt;this.bytes.length;t++)e=e+xn.charAt(this.bytes[t]&gt;&gt;&gt;4)+xn.charAt(15&amp;this.bytes[t]),3!==t&amp;&amp;5!==t&amp;&amp;7!==t&amp;&amp;9!==t||(e+="-");if(36!==e.length)throw new Error("Invalid UUIDv7 was generated");return e}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(e){return 0===this.compareTo(e)}},{key:"compareTo",value:function(e){for(var t=0;t&lt;16;t++){var n=this.bytes[t]-e.bytes[t];if(0!==n)return Math.sign(n)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t&lt;0||n&lt;0||r&lt;0||i&lt;0||t&gt;0xffffffffffff||n&gt;4095||r&gt;1073741823||i&gt;4294967295)throw new RangeError("invalid field value");var o=new Uint8Array(16);return o[0]=t/Math.pow(2,40),o[1]=t/Math.pow(2,32),o[2]=t/Math.pow(2,24),o[3]=t/Math.pow(2,16),o[4]=t/Math.pow(2,8),o[5]=t,o[6]=112|n&gt;&gt;&gt;8,o[7]=n,o[8]=128|r&gt;&gt;&gt;24,o[9]=r&gt;&gt;&gt;16,o[10]=r&gt;&gt;&gt;8,o[11]=r,o[12]=i&gt;&gt;&gt;24,o[13]=i&gt;&gt;&gt;16,o[14]=i&gt;&gt;&gt;8,o[15]=i,new e(o)}}]),e}(),Fn=function(){function e(){r(this,e),s(this,"timestamp",0),s(this,"counter",0),s(this,"random",new Rn)}return o(e,[{key:"generate",value:function(){var e=this.generateOrAbort();if(void 0!==e)return e;this.timestamp=0;var t=this.generateOrAbort();if(void 0===t)throw new Error("Could not generate UUID after timestamp reset");return t}},{key:"generateOrAbort",value:function(){var e=Date.now();if(e&gt;this.timestamp)this.timestamp=e,this.resetCounter();else{if(!(e+1e4&gt;this.timestamp))return;this.counter++,this.counter&gt;4398046511103&amp;&amp;(this.timestamp++,this.resetCounter())}return Pn.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&amp;Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&amp;this.random.nextUint32())}}]),e}(),On=function(e){if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&amp;&amp;UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t&lt;e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};"undefined"!=typeof crypto&amp;&amp;crypto.getRandomValues&amp;&amp;(On=function(e){return crypto.getRandomValues(e)});var In,Rn=function(){function e(){r(this,e),s(this,"buffer",new Uint32Array(8)),s(this,"cursor",1/0)}return o(e,[{key:"nextUint32",value:function(){return this.cursor&gt;=this.buffer.length&amp;&amp;(On(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),Tn=function(){return $n().toString()},$n=function(){return(In||(In=new Fn)).generate()},Mn=1800,An=60,Cn=864e5,Dn=function(){function e(t,n){r(this,e),s(this,"_sessionIdChangedHandlers",[]),this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,o=t.session_idle_timeout_seconds||Mn;if("number"!=typeof o?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),o=Mn):o&gt;Mn?console.warn("[PostHog] session_idle_timeout_seconds cannot be  greater than 30 minutes. Using 30 minutes instead."):o&lt;An&amp;&amp;console.warn("[PostHog] session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead."),this._sessionTimeoutMs=1e3*Math.min(Math.max(o,An),Mn),this._window_id_storage_key="ph_"+i+"_window_id",this._primary_window_exists_storage_key="ph_"+i+"_primary_window_exists",this._canUseSessionStorage()){var a=Je.parse(this._window_id_storage_key),u=Je.parse(this._primary_window_exists_storage_key);a&amp;&amp;!u?this._windowId=a:Je.remove(this._window_id_storage_key),Je.set(this._primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return o(e,[{key:"onSessionId",value:function(e){var t=this;return void 0===this._sessionIdChangedHandlers&amp;&amp;(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(e),this._sessionId&amp;&amp;e(this._sessionId,this._windowId),function(){t._sessionIdChangedHandlers=t._sessionIdChangedHandlers.filter((function(t){return t!==e}))}}},{key:"_canUseSessionStorage",value:function(){return"memory"!==this.config.persistence&amp;&amp;!this.persistence.disabled&amp;&amp;Je.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&amp;&amp;(this._windowId=e,this._canUseSessionStorage()&amp;&amp;Je.set(this._window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?Je.parse(this._window_id_storage_key):null}},{key:"_setSessionId",value:function(e,t,n){e===this._sessionId&amp;&amp;t===this._sessionActivityTimestamp&amp;&amp;n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this._sessionId=e,this.persistence.register(s({},Ee,[t,e,n])))}},{key:"_getSessionId",value:function(){if(this._sessionId&amp;&amp;this._sessionActivityTimestamp&amp;&amp;this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[Ee];return Array.isArray(e)&amp;&amp;2===e.length&amp;&amp;e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;window.addEventListener("beforeunload",(function(){e._canUseSessionStorage()&amp;&amp;Je.remove(e._primary_window_exists_storage_key)}))}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]&amp;&amp;arguments[0],t=(arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:null)||(new Date).getTime(),n=p(this._getSessionId(),3),r=n[0],i=n[1],o=n[2],s=this._getWindowId(),a=o&amp;&amp;o&gt;0&amp;&amp;Math.abs(t-o)&gt;Cn,u=!1;!i||!e&amp;&amp;Math.abs(t-r)&gt;this._sessionTimeoutMs||a?(i=Tn(),s=Tn(),o=t,u=!0):s||(s=Tn(),u=!0);var c=0===r||!e||a?t:r,l=0===o?(new Date).getTime():o;return this._setWindowId(s),this._setSessionId(i,c,l),u&amp;&amp;this._sessionIdChangedHandlers.forEach((function(e){return e(i,s)})),{sessionId:i,windowId:s,sessionStartTimestamp:l}}}]),e}(),jn=o((function e(t,n,i,o){r(this,e),this.name="posthog-js",this.setupOnce=function(e){e((function(e){var r,s,a,u,c;if("error"!==e.level||!t.__loaded)return e;e.tags||(e.tags={});var l=t.config.ui_host||t.config.api_host;e.tags["PostHog Person URL"]=l+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&amp;&amp;(e.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var d=(null===(r=e.exception)||void 0===r?void 0:r.values)||[],f={$exception_message:null===(s=d[0])||void 0===s?void 0:s.value,$exception_type:null===(a=d[0])||void 0===a?void 0:a.type,$exception_personURL:l+"/person/"+t.get_distinct_id(),$sentry_event_id:e.event_id,$sentry_exception:e.exception,$sentry_exception_message:null===(u=d[0])||void 0===u?void 0:u.value,$sentry_exception_type:null===(c=d[0])||void 0===c?void 0:c.type,$sentry_tags:e.tags};return n&amp;&amp;i&amp;&amp;(f.$sentry_url=(o||"https://sentry.io/organizations/")+n+"/issues/?project="+i+"&amp;query="+e.event_id),t.capture("$exception",f),e}))}})),Nn=function(e){Promise&amp;&amp;Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(t,n){t.event.userId||t.event.anonymousId===e.get_distinct_id()||e.reset(),t.event.userId&amp;&amp;t.event.userId!==e.get_distinct_id()&amp;&amp;(e.register({distinct_id:t.event.userId}),e.reloadFeatureFlags());var r=e._calculate_event_properties(n,t.event.properties);return t.event.properties=Object.assign({},r,t.event.properties),t};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(e){return t(e,e.event.event)},page:function(e){return t(e,"$pageview")},identify:function(e){return t(e,"$identify")},screen:function(e){return t(e,"$screen")}}},Hn=function(){function e(){var t=this;r(this,e),s(this,"_hasSeenPageView",!1),s(this,"_updateScrollData",(function(){var e,n,r,i;t._pageViewData||(t._pageViewData=t._createPageViewData());var o=t._pageViewData,s=t._scrollY(),a=t._scrollHeight(),u=t._contentY(),c=t._contentHeight();o.lastScrollY=s,o.maxScrollY=Math.max(s,null!==(e=o.maxScrollY)&amp;&amp;void 0!==e?e:0),o.maxScrollHeight=Math.max(a,null!==(n=o.maxScrollHeight)&amp;&amp;void 0!==n?n:0),o.lastContentY=u,o.maxContentY=Math.max(u,null!==(r=o.maxContentY)&amp;&amp;void 0!==r?r:0),o.maxContentHeight=Math.max(c,null!==(i=o.maxContentHeight)&amp;&amp;void 0!==i?i:0)}))}return o(e,[{key:"_createPageViewData",value:function(){return{pathname:S.location.pathname}}},{key:"doPageView",value:function(){var e,n;return this._hasSeenPageView?(n=this._pageViewData,this._pageViewData=this._createPageViewData()):(this._hasSeenPageView=!0,n=void 0,this._pageViewData||(this._pageViewData=this._createPageViewData())),setTimeout(this._updateScrollData,0),t({$prev_pageview_pathname:null===(e=n)||void 0===e?void 0:e.pathname},this._calculatePrevPageScrollProperties(n))}},{key:"doPageLeave",value:function(){var e=this._pageViewData;return t({$prev_pageview_pathname:null==e?void 0:e.pathname},this._calculatePrevPageScrollProperties(e))}},{key:"_calculatePrevPageScrollProperties",value:function(e){if(!e||null==e.maxScrollHeight||null==e.lastScrollY||null==e.maxScrollY||null==e.maxContentHeight||null==e.lastContentY||null==e.maxContentY)return{};var t=e.maxScrollHeight,n=e.lastScrollY,r=e.maxScrollY,i=e.maxContentHeight,o=e.lastContentY,s=e.maxContentY;return t=Math.ceil(t),n=Math.ceil(n),r=Math.ceil(r),i=Math.ceil(i),o=Math.ceil(o),s=Math.ceil(s),{$prev_pageview_last_scroll:n,$prev_pageview_last_scroll_percentage:t&lt;=1?1:Ln(n/t,0,1),$prev_pageview_max_scroll:r,$prev_pageview_max_scroll_percentage:t&lt;=1?1:Ln(r/t,0,1),$prev_pageview_last_content:o,$prev_pageview_last_content_percentage:i&lt;=1?1:Ln(o/i,0,1),$prev_pageview_max_content:s,$prev_pageview_max_content_percentage:i&lt;=1?1:Ln(s/i,0,1)}}},{key:"startMeasuringScrollPosition",value:function(){S.addEventListener("scroll",this._updateScrollData),S.addEventListener("scrollend",this._updateScrollData),S.addEventListener("resize",this._updateScrollData)}},{key:"stopMeasuringScrollPosition",value:function(){S.removeEventListener("scroll",this._updateScrollData),S.removeEventListener("scrollend",this._updateScrollData),S.removeEventListener("resize",this._updateScrollData)}},{key:"_scrollHeight",value:function(){return Math.max(0,S.document.documentElement.scrollHeight-S.document.documentElement.clientHeight)}},{key:"_scrollY",value:function(){return S.scrollY||S.pageYOffset||S.document.documentElement.scrollTop||0}},{key:"_contentHeight",value:function(){return S.document.documentElement.scrollHeight||0}},{key:"_contentY",value:function(){var e=S.document.documentElement.clientHeight||0;return this._scrollY()+e}}]),e}();function Ln(e,t,n){return Math.max(t,Math.min(e,n))}function Bn(e){return"undefined"!=typeof Event&amp;&amp;qn(e,Event)}function qn(e,t){try{return e instanceof t}catch(e){return!1}}function Un(e){return null===e||"object"!==n(e)&amp;&amp;"function"!=typeof e}function Vn(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function Gn(e){return Vn(e,"DOMError")}var zn=/\(error: (.*)\)/,Wn=50,Yn="?";function Qn(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&amp;&amp;(i.lineno=n),void 0!==r&amp;&amp;(i.colno=r),i}var Jn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:&lt;anonymous&gt;|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Xn=/\((\S*)(?::(\d+))(?::(\d+))\)/,Kn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Zn=/(\S+) line (\d+)(?: &gt; eval line \d+)* &gt; eval/i,er=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var tr=function(){for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];var i=n.sort((function(e,t){return e[0]-t[0]})).map((function(e){return e[1]}));return function(e){for(var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:0,r=[],o=e.split("\n"),s=n;s&lt;o.length;s++){var a=o[s];if(!(a.length&gt;1024)){var u=zn.test(a)?a.replace(zn,"$1"):a;if(!u.match(/\S*Error: /)){var c,l=v(i);try{for(l.s();!(c=l.n()).done;){var d=(0,c.value)(u);if(d){r.push(d);break}}}catch(e){l.e(e)}finally{l.f()}if(r.length&gt;=Wn)break}}}return function(e){if(!e.length)return[];var n=e.slice(0,Wn);return n.reverse(),n.map((function(e){return t(t({},e),{},{filename:e.filename||n[n.length-1].filename,function:e.function||"?"})}))}(r)}}.apply(void 0,[[30,function(e){var t=Jn.exec(e);if(t){if(t[2]&amp;&amp;0===t[2].indexOf("eval")){var n=Xn.exec(t[2]);n&amp;&amp;(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=p(nr(t[1]||Yn,t[2]),2),i=r[0];return Qn(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=Kn.exec(e);if(t){if(t[3]&amp;&amp;t[3].indexOf(" &gt; eval")&gt;-1){var n=Zn.exec(t[3]);n&amp;&amp;(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||Yn,o=p(nr(i,r),2);return i=o[0],Qn(r=o[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=er.exec(e);return t?Qn(t[2],t[1]||Yn,+t[3],t[4]?+t[4]:void 0):void 0}]]),nr=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Yn,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},rr=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,ir=/Minified React error #\d+;/i;function or(e){var t=e.stacktrace||e.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(ir.test(e.message))return 1}return 0}(e);try{return tr(t,n)}catch(e){}return[]}function sr(e){var t=or(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function ar(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r&gt;0;r--){var i=n.slice(0,r).join(", ");if(!(i.length&gt;t))return r===n.length||i.length&lt;=t?i:"".concat(i.slice(0,t),"...")}return""}function ur(e){var n=p(e,5),r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],u={};if(void 0===a&amp;&amp;"string"==typeof r){var c="Error",l=r,d=r.match(rr);d&amp;&amp;(c=d[1],l=d[2]),u={$exception_type:c,$exception_message:l}}var f=a||r;if(Gn(f)||function(e){return Vn(e,"DOMException")}(f)){var h=f;if(function(e){return"stack"in e}(f))u=sr(f);else{var g=h.name||(Gn(h)?"DOMError":"DOMException"),_=h.message?"".concat(g,": ").concat(h.message):g;u=function(e){return{$exception_type:"Error",$exception_message:e}}(_),u.$exception_type=Gn(h)?"DOMError":"DOMException",u.$exception_message=u.$exception_message||_}"code"in h&amp;&amp;(u.$exception_DOMException_code="".concat(h.code))}else if(function(e){return Vn(e,"ErrorEvent")}(f)&amp;&amp;f.error)u=sr(f.error);else if(function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return qn(e,Error)}}(f))u=sr(f);else if(function(e){return Vn(e,"Object")}(f)||Bn(f)){u=function(e){return{$exception_type:Bn(e)?e.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",ar(e))}}(f),u.$exception_is_synthetic=!0}else u.$exception_type=u.$exception_type||"Error",u.$exception_message=u.$exception_message||f,u.$exception_is_synthetic=!0;return t(t(t(t({},u),{},{$exception_type:u.$exception_type||"UnknownErrorType",$exception_message:u.$exception_message||""},i?{$exception_source:i}:{}),o?{$exception_lineno:o}:{}),s?{$exception_colno:s}:{})}var cr,lr,dr=function(){function e(t){r(this,e),s(this,"originalOnErrorHandler",void 0),s(this,"originalOnUnhandledRejectionHandler",void 0),s(this,"errorsToIgnore",[]),this.instance=t}return o(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var e,t=arguments.length,n=new Array(t),r=0;r&lt;t;r++)n[r]=arguments[r];(e=console).log.apply(e,["PostHog.js [PostHog.ExceptionObserver]"].concat(n))}}},{key:"startCapturing",value:function(){var e;if(this.isEnabled()&amp;&amp;(null===(e=S.onerror)||void 0===e||!e.__POSTHOG_INSTRUMENTED__))try{this.originalOnErrorHandler=S.onerror,S.onerror=function(){for(var e=arguments.length,t=new Array(e),n=0;n&lt;e;n++)t[n]=arguments[n];return this.captureException(t),!!this.originalOnErrorHandler&amp;&amp;this.originalOnErrorHandler.apply(this,t)}.bind(this),S.onerror.__POSTHOG_INSTRUMENTED__=!0,this.originalOnUnhandledRejectionHandler=S.onunhandledrejection,S.onunhandledrejection=function(){for(var e=arguments.length,n=new Array(e),r=0;r&lt;e;r++)n[r]=arguments[r];var i=function(e){var n=p(e,1)[0],r=n;try{"reason"in n?r=n.reason:"detail"in n&amp;&amp;"reason"in n.detail&amp;&amp;(r=n.detail.reason)}catch(e){}var i={};return(i=Un(r)?{$exception_message:"Non-Error promise rejection captured with value: ".concat(String(r))}:ur([r])).$exception_handled=!1,t(t({},i),{},{$exception_type:i.$exception_type="UnhandledRejection",$exception_message:i.$exception_message=i.$exception_message||n.reason||String(r)})}(n);return this.sendExceptionEvent(i),!this.originalOnUnhandledRejectionHandler||this.originalOnUnhandledRejectionHandler.apply(S,n)}.bind(this),S.onunhandledrejection.__POSTHOG_INSTRUMENTED__=!0}catch(e){console.error("PostHog failed to start exception autocapture",e),this.stopCapturing()}}},{key:"stopCapturing",value:function(){var e,t;void 0!==this.originalOnErrorHandler&amp;&amp;(S.onerror=this.originalOnErrorHandler,this.originalOnErrorHandler=null),null===(e=S.onerror)||void 0===e||delete e.__POSTHOG_INSTRUMENTED__,void 0!==this.originalOnUnhandledRejectionHandler&amp;&amp;(S.onunhandledrejection=this.originalOnUnhandledRejectionHandler,this.originalOnUnhandledRejectionHandler=null),null===(t=S.onunhandledrejection)||void 0===t||delete t.__POSTHOG_INSTRUMENTED__}},{key:"isCapturing",value:function(){var e;return!(null===(e=S.onerror)||void 0===e||!e.__POSTHOG_INSTRUMENTED__)}},{key:"isEnabled",value:function(){var e;return null!==(e=this.remoteEnabled)&amp;&amp;void 0!==e&amp;&amp;e}},{key:"afterDecideResponse",value:function(e){var t=e.autocaptureExceptions;if(this.remoteEnabled=!!t||!1,!Un(t)&amp;&amp;"errors_to_ignore"in t&amp;&amp;Array.isArray(t.errors_to_ignore)){var n=t.errors_to_ignore;this.errorsToIgnore=n.map((function(e){return new RegExp(e)}))}this.isEnabled()?(this.startCapturing(),this.debugLog("Remote config for exception autocapture is enabled, starting",t)):this.debugLog("Remote config for exception autocapture is disabled, not starting",t)}},{key:"captureException",value:function(e,n){var r=ur(e);if(this.errorsToIgnore.some((function(e){return e.test(r.$exception_message||"")})))this.debugLog("Ignoring exception based on remote config",r);else{var i=t(t({},n),r),o=this.instance.get_config("ui_host")||this.instance.get_config("api_host");r.$exception_personURL=o+"/person/"+this.instance.get_distinct_id(),this.sendExceptionEvent(i)}}},{key:"sendExceptionEvent",value:function(e){this.instance.capture("$exception",e,{transport:"XHR",method:"POST",endpoint:"/e/",_noTruncate:!0,_batchKey:"exceptionEvent"})}}]),e}();!function(e){e.Popover="Popover",e.Button="Button",e.Email="Email",e.FullScreen="Fullscreen"}(cr||(cr={})),function(e){e.Open="open",e.MultipleChoiceSingle="multiple_single",e.MultipleChoiceMulti="multiple_multi",e.NPS="nps",e.Rating="rating",e.Link="link"}(lr||(lr={}));var fr,pr,hr,gr=function(){function e(t){r(this,e),this.instance=t}return o(e,[{key:"getSurveys",value:function(e){var t=this,n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1],r=this.instance.get_property(Ie);if(r&amp;&amp;!n)return e(r);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},(function(n){var r,i=n.surveys;return null===(r=t.instance.persistence)||void 0===r||r.register(s({},Ie,i)),e(i)}))}},{key:"getActiveMatchingSurveys",value:function(e){var t=this,n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1];this.getSurveys((function(n){var r=n.filter((function(e){return!(!e.start_date||e.end_date)})).filter((function(e){var t,n;if(!e.conditions)return!0;var r=null===(t=e.conditions)||void 0===t||!t.url||window.location.href.indexOf(e.conditions.url)&gt;-1,i=null===(n=e.conditions)||void 0===n||!n.selector||document.querySelector(e.conditions.selector);return r&amp;&amp;i})).filter((function(e){if(!e.linked_flag_key&amp;&amp;!e.targeting_flag_key)return!0;var n=!e.linked_flag_key||t.instance.featureFlags.isFeatureEnabled(e.linked_flag_key),r=!e.targeting_flag_key||t.instance.featureFlags.isFeatureEnabled(e.targeting_flag_key);return n&amp;&amp;r}));return e(r)}),n)}}]),e}(),_r=6e4,vr=function(){function e(){var t=this;r(this,e),s(this,"limits",{}),s(this,"checkForLimiting",(function(e){try{(JSON.parse(e.responseText).quota_limited||[]).forEach((function(e){$.log("[PostHog RateLimiter] ".concat(e||"events"," is quota limited.")),t.limits[e]=(new Date).getTime()+_r}))}catch(e){return void $.error(e)}}))}return o(e,[{key:"isRateLimited",value:function(e){var t=this.limits[e||"events"]||!1;return!1!==t&amp;&amp;(new Date).getTime()&lt;t}}]),e}();!function(e){e[e.INIT_MODULE=0]="INIT_MODULE",e[e.INIT_SNIPPET=1]="INIT_SNIPPET"}(fr||(fr={}));var mr=function(){},yr={},br="posthog",wr=S.XMLHttpRequest&amp;&amp;"withCredentials"in new XMLHttpRequest,kr=!wr&amp;&amp;-1===P.indexOf("MSIE")&amp;&amp;-1===P.indexOf("Mozilla"),Sr=function(){var e,t,n;return{api_host:"https://app.posthog.com",api_method:"POST",api_transport:"XHR",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:-1===(null==x||null===(e=x.location)||void 0===e||null===(t=e.hostname)||void 0===t?void 0:t.indexOf("herokuapp.com")),persistence:"cookie",persistence_name:"",cookie_name:"",loaded:mr,store_google:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,test:!1,verbose:!1,capture_pageview:!0,capture_pageleave:!0,debug:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_cookie:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==S||null===(n=S.location)||void 0===n?void 0:n.protocol),ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_blacklist:[],respect_dnt:!1,sanitize_properties:null,xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,on_xhr_error:function(e){var t="Bad HTTP status: "+e.status+" "+e.statusText;console.error(t)},get_device_id:function(e){return e},_onCapture:mr,capture_performance:void 0,name:"posthog",callback_fn:"posthog._jsc",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800}},Er=function(e,t,n,r){var i,o=n!==br&amp;&amp;hr?n?hr[n]:void 0:hr,s={initComplete:!1,syncCode:!1},a=function(e){return function(t){s[e]||(s[e]=!0,s.initComplete&amp;&amp;s.syncCode&amp;&amp;(null==r||r(t)))}};if(o&amp;&amp;pr===fr.INIT_MODULE)i=o;else{if(o&amp;&amp;!j(o))return void console.error("You have already initialized "+n);i=new xr}if(i._init(e,t,n,a("initComplete")),i.toolbar.maybeLoadToolbar(),i.sessionRecording=new dt(i),i.sessionRecording.startRecordingIfEnabled(),i.webPerformance=new gt(i),i.webPerformance.startObservingIfEnabled(),i.get_config("__preview_measure_pageview_stats")&amp;&amp;i.pageViewManager.startMeasuringScrollPosition(),i.exceptionAutocapture=new dr(i),i.__autocapture=i.get_config("autocapture"),Ce._setIsAutocaptureEnabled(i),Ce._isAutocaptureEnabled){i.__autocapture=i.get_config("autocapture");Ce.enabledForProject(i.get_config("token"),100,100)?Ce.isBrowserSupported()?Ce.init(i):(i.__autocapture=!1,$.log("Disabling Automatic Event Collection because this browser is not supported")):(i.__autocapture=!1,$.log("Not in active bucket: disabling Automatic Event Collection."))}return m.DEBUG=m.DEBUG||i.get_config("debug"),void 0!==o&amp;&amp;j(o)&amp;&amp;(i._execute_array.call(i.people,o.people),i._execute_array(o)),a("syncCode")(i),i},xr=function(){function e(){var t=this;r(this,e),this.config=Sr(),this.compression={},this.decideEndpointWasHit=!1,this.SentryIntegration=jn,this.segmentIntegration=function(){return Nn(t)},this.__captureHooks=[],this.__request_queue=[],this.__loaded=!1,this.__loaded_recorder_version=void 0,this.__autocapture=void 0,this._jsc=function(){},this.featureFlags=new Le(this),this.toolbar=new bt(this),this.pageViewManager=new Hn,this.surveys=new gr(this),this.rateLimiter=new vr,this.people={set:function(e,n,r){var i="string"==typeof e?s({},e,n):e;t.setPersonProperties(i),null==r||r({})},set_once:function(e,n,r){var i="string"==typeof e?s({},e,n):e;t.setPersonProperties(void 0,i),null==r||r({})}}}return o(e,[{key:"init",value:function(e,t,n){if(B(n))console.error("You must name your new library: init(token, config, name)");else{if(n!==br){var r=Er(e,t,n,(function(e){hr[n]=e,e._loaded()}));return hr[n]=r,r}console.error("You must initialize the main posthog object right after you include the PostHog js snippet")}}},{key:"_init",value:function(e){var n,r,i=this,o=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},s=arguments.length&gt;2?arguments[2]:void 0,a=arguments.length&gt;3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},l=function(e){return function(){c[e]||(c[e]=!0,c.segmentRegister&amp;&amp;c.syncCode&amp;&amp;(null==a||a(i)))}};(this.set_config(D({},Sr(),o,{name:s,token:e,callback_fn:(s===br?s:br+"."+s)+"._jsc"})),this._jsc=function(){},null!=S&amp;&amp;null!==(n=S.rrweb)&amp;&amp;void 0!==n&amp;&amp;n.record||null!=S&amp;&amp;S.rrwebRecord)&amp;&amp;(this.__loaded_recorder_version=null==S||null===(u=S.rrweb)||void 0===u?void 0:u.version);if(this.persistence=new Ke(this.config),this._requestQueue=new $t(this._handle_queued_event.bind(this)),this._retryQueue=new En(this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new Dn(this.config,this.persistence),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new Ke(t(t({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),o.segment?(this.config.get_device_id=function(){return o.segment.user().anonymousId()},o.segment.user().id()&amp;&amp;(this.register({distinct_id:o.segment.user().id()}),this.persistence.set_user_state("identified")),o.segment.register(this.segmentIntegration()).then(l("segmentRegister"))):l("segmentRegister")(),void 0!==(null===(r=o.bootstrap)||void 0===r?void 0:r.distinctID)){var d,f,p=this.get_config("get_device_id")(Tn()),h=null!==(d=o.bootstrap)&amp;&amp;void 0!==d&amp;&amp;d.isIdentifiedID?p:o.bootstrap.distinctID;this.persistence.set_user_state(null!==(f=o.bootstrap)&amp;&amp;void 0!==f&amp;&amp;f.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:o.bootstrap.distinctID,$device_id:h})}if(this._hasBootstrappedFeatureFlags()){var g,_,v=Object.keys((null===(g=o.bootstrap)||void 0===g?void 0:g.featureFlags)||{}).filter((function(e){var t,n;return!(null===(t=o.bootstrap)||void 0===t||null===(n=t.featureFlags)||void 0===n||!n[e])})).reduce((function(e,t){var n,r;return e[t]=(null===(n=o.bootstrap)||void 0===n||null===(r=n.featureFlags)||void 0===r?void 0:r[t])||!1,e}),{}),m=Object.keys((null===(_=o.bootstrap)||void 0===_?void 0:_.featureFlagPayloads)||{}).filter((function(e){return v[e]})).reduce((function(e,t){var n,r,i,s;null!==(n=o.bootstrap)&amp;&amp;void 0!==n&amp;&amp;null!==(r=n.featureFlagPayloads)&amp;&amp;void 0!==r&amp;&amp;r[t]&amp;&amp;(e[t]=null===(i=o.bootstrap)||void 0===i||null===(s=i.featureFlagPayloads)||void 0===s?void 0:s[t]);return e}),{});this.featureFlags.receivedFeatureFlags({featureFlags:v,featureFlagPayloads:m})}if(!this.get_distinct_id()){var y=this.get_config("get_device_id")(Tn());this.register_once({distinct_id:y,$device_id:y},""),this.persistence.set_user_state("anonymous")}S.addEventListener&amp;&amp;S.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),l("syncCode")()}},{key:"_loaded",value:function(){var e=this.get_config("advanced_disable_decide");e||this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(e){console.error("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&amp;&amp;this.capture("$pageview",{title:x.title},{send_instantly:!0}),e||(new vt(this).call(),this.featureFlags.resetRequestQueue())}},{key:"_start_queue_if_opted_in",value:function(){var e;this.has_opted_out_capturing()||this.get_config("request_batching")&amp;&amp;(null===(e=this._requestQueue)||void 0===e||e.poll())}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||A(this.__request_queue,(function(t){e._send_request.apply(e,h(t))})),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(e,t){if(B(e))return null;if(wr)return function(n){e(n,t)};var n=this._jsc,r=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+r+"]";return n[r]=function(i){delete n[r],e(i,t)},i}},{key:"_handle_unload",value:function(){var e,t;this.get_config("request_batching")?(this.get_config("capture_pageview")&amp;&amp;this.get_config("capture_pageleave")&amp;&amp;this.capture("$pageleave"),null===(e=this._requestQueue)||void 0===e||e.unload(),null===(t=this._retryQueue)||void 0===t||t.unload()):this.get_config("capture_pageview")&amp;&amp;this.get_config("capture_pageleave")&amp;&amp;this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(e,t,n){var r=JSON.stringify(t);this.__compress_and_send_json_request(e,r,n||yr,mr)}},{key:"__compress_and_send_json_request",value:function(e,n,r,i){var o=function(e,n,r){return e===Jt.GZipJS?[mn(yn(n),{mtime:0}),t(t({},r),{},{blob:!0,urlQueryArgs:{compression:Jt.GZipJS}})]:[{data:Q(n)},r]}(this.compression[Jt.GZipJS]?Jt.GZipJS:Jt.Base64,n,r),s=p(o,2),a=s[0],u=s[1];this._send_request(e,a,u,i)}},{key:"_send_request",value:function(e,n,r,i){if(this.__loaded&amp;&amp;this._retryQueue&amp;&amp;!this.rateLimiter.isRateLimited(r._batchKey))if(kr)this.__request_queue.push([e,n,r,i]);else{var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=D(o,r||{}),wr||(r.method="GET");var s="sendBeacon"in S.navigator&amp;&amp;"sendBeacon"===r.transport;if(e=bn(e,r.urlQueryArgs||{},{ip:this.get_config("ip")}),s)try{S.navigator.sendBeacon(e,wn(n,t(t({},r),{},{sendBeacon:!0})))}catch(e){}else if(wr)try{kn({url:e,data:n,headers:this.get_config("xhr_headers"),options:r,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onResponse:this.rateLimiter.checkForLimiting})}catch(e){console.error(e)}else{var a,u=x.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=e;var c=x.getElementsByTagName("script")[0];null===(a=c.parentNode)||void 0===a||a.insertBefore(u,c)}}}},{key:"_execute_array",value:function(e){var t,n=this,r=[],i=[],o=[];A(e,(function(e){e&amp;&amp;(t=e[0],j(t)?o.push(e):"function"==typeof e?e.call(n):j(e)&amp;&amp;"alias"===t?r.push(e):j(e)&amp;&amp;-1!==t.indexOf("capture")&amp;&amp;"function"==typeof n[t]?o.push(e):i.push(e))}));var s=function(e,t){A(e,(function(e){if(j(e[0])){var n=t;C(e,(function(e){n=n[e[0]].apply(n,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};s(r,this),s(i,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,t;return(null===(e=this.config.bootstrap)||void 0===e?void 0:e.featureFlags)&amp;&amp;Object.keys(null===(t=this.config.bootstrap)||void 0===t?void 0:t.featureFlags).length&gt;0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"captureException",value:function(e,t){var n;null===(n=this.exceptionAutocapture)||void 0===n||n.captureException([e.name,void 0,void 0,void 0,e],t)}},{key:"capture",value:function(e,t){var n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:yr;if(!this.__loaded||!this.sessionPersistence||!this._requestQueue)return $.unintializedWarning("posthog.capture");if(!function(e,t){var n=!1;try{var r=e.get_config("token"),i=e.get_config("respect_dnt"),o=e.get_config("opt_out_capturing_persistence_type"),s=e.get_config("opt_out_capturing_cookie_prefix")||void 0,a=e.get_config("window");r&amp;&amp;(n=xt(r,{respectDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){t||console.error("Unexpected error when checking capturing opt-out status: "+e)}return n}(this,!1)){var r=(n=n||yr).transport;if(r&amp;&amp;(n.transport=r),B(e)||"string"!=typeof e)console.error("No event name provided to posthog.capture");else if(!K(P,this.get_config("custom_blocked_useragents"))){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&amp;&amp;this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&amp;&amp;this.sessionPersistence.update_referrer_info();var i={uuid:Tn(),event:e,properties:this._calculate_event_properties(e,t||{})};"$identify"===e&amp;&amp;(i.$set=n.$set,i.$set_once=n.$set_once),(i=Y(i,n._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=n.timestamp||new Date,this.get_config("debug")&amp;&amp;$.log("PostHog.js send",i);var o=JSON.stringify(i),s=this.get_config("api_host")+(n.endpoint||"/e/"),a=n!==yr;return!this.get_config("request_batching")||a&amp;&amp;!n._batchKey||n.send_instantly?this.__compress_and_send_json_request(s,o,n):this._requestQueue.enqueue(s,i,n),this._invokeCaptureHooks(e,i),i}}}},{key:"_addCaptureHook",value:function(e){this.__captureHooks.push(e)}},{key:"_invokeCaptureHooks",value:function(e,t){this.config._onCapture(e,t),C(this.__captureHooks,(function(t){return t(e)}))}},{key:"_calculate_event_properties",value:function(e,n){if(!this.persistence||!this.sessionPersistence)return n;var r=this.persistence.remove_event_timer(e),i=t({},n);if(i.token=this.get_config("token"),"$snapshot"===e){var o=t(t({},this.persistence.properties()),this.sessionPersistence.properties());return i.distinct_id=o.distinct_id,i}var s=re.properties();if(this.sessionManager){var a=this.sessionManager.checkAndGetSessionAndWindowId(),u=a.sessionId,c=a.windowId;i.$session_id=u,i.$window_id=c}if(this.get_config("__preview_measure_pageview_stats")){var l={};"$pageview"===e?l=this.pageViewManager.doPageView():"$pageleave"===e&amp;&amp;(l=this.pageViewManager.doPageLeave()),i=D(i,l)}if("$pageview"===e&amp;&amp;(i.title=x.title),"$performance_event"===e){var d=this.persistence.properties();return i.distinct_id=d.distinct_id,i.$current_url=s.$current_url,i}if(void 0!==r){var f=(new Date).getTime()-r;i.$duration=parseFloat((f/1e3).toFixed(3))}i=D({},re.properties(),this.persistence.properties(),this.sessionPersistence.properties(),i);var p=this.get_config("property_blacklist");j(p)?C(p,(function(e){delete i[e]})):console.error("Invalid value for property_blacklist config: "+p);var h=this.get_config("sanitize_properties");return h&amp;&amp;(i=h(i,e)),i}},{key:"register",value:function(e,t){var n;null===(n=this.persistence)||void 0===n||n.register(e,t)}},{key:"register_once",value:function(e,t,n){var r;null===(r=this.persistence)||void 0===r||r.register_once(e,t,n)}},{key:"register_for_session",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.register(e)}},{key:"unregister",value:function(e){var t;null===(t=this.persistence)||void 0===t||t.unregister(e)}},{key:"unregister_for_session",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.unregister(e)}},{key:"_register_single",value:function(e,t){this.register(s({},e,t))}},{key:"getFeatureFlag",value:function(e,t){return this.featureFlags.getFeatureFlag(e,t)}},{key:"getFeatureFlagPayload",value:function(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(e){return t}}},{key:"isFeatureEnabled",value:function(e,t){return this.featureFlags.isFeatureEnabled(e,t)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t)}},{key:"getEarlyAccessFeatures",value:function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,t)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"onSessionId",value:function(e){var t,n;return null!==(t=null===(n=this.sessionManager)||void 0===n?void 0:n.onSessionId(e))&amp;&amp;void 0!==t?t:function(){}}},{key:"getSurveys",value:function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1];this.surveys.getSurveys(e,t)}},{key:"getActiveMatchingSurveys",value:function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]&amp;&amp;arguments[1];this.surveys.getActiveMatchingSurveys(e,t)}},{key:"identify",value:function(e,t,n){if(!this.__loaded||!this.persistence)return $.unintializedWarning("posthog.identify");if(e){var r=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var i=r;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},"")}e!==r&amp;&amp;e!==this.get_property(me)&amp;&amp;(this.unregister(me),this.register({distinct_id:e}));var o="anonymous"===this.persistence.get_user_state();e!==r&amp;&amp;o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(t||{},!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:r},{$set:t||{},$set_once:n||{}}),this.featureFlags.setAnonymousDistinctId(r)):(t||n)&amp;&amp;this.setPersonProperties(t,n),e!==r&amp;&amp;(this.reloadFeatureFlags(),this.unregister(Re))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(e,t){(e||t)&amp;&amp;(this.setPersonPropertiesForFlags(e||{}),this.capture("$set",{$set:e||{},$set_once:t||{}}))}},{key:"group",value:function(e,n,r){if(e&amp;&amp;n){var i=this.getGroups();i[e]!==n&amp;&amp;this.resetGroupPropertiesForFlags(e),this.register({$groups:t(t({},i),{},s({},e,n))}),r&amp;&amp;(this.capture("$groupidentify",{$group_type:e,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(s({},e,r))),i[e]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length&gt;1&amp;&amp;void 0!==arguments[1])||arguments[1];this.featureFlags.setPersonPropertiesForFlags(e,t)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length&gt;1&amp;&amp;void 0!==arguments[1])||arguments[1];this.featureFlags.setGroupPropertiesForFlags(e,t)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){var t,n,r,i;if(!this.__loaded)return $.unintializedWarning("posthog.reset");var o=this.get_property("$device_id");null===(t=this.persistence)||void 0===t||t.clear(),null===(n=this.sessionPersistence)||void 0===n||n.clear(),null===(r=this.persistence)||void 0===r||r.set_user_state("anonymous"),null===(i=this.sessionManager)||void 0===i||i.resetSessionId();var s=this.get_config("get_device_id")(Tn());this.register_once({distinct_id:s,$device_id:e?s:o},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){var e,t;return null!==(e=null===(t=this.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&amp;&amp;void 0!==e?e:""}},{key:"get_session_replay_url",value:function(e){if(!this.sessionManager)return"";var t=this.config.ui_host||this.config.api_host,n=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=n.sessionId,i=n.sessionStartTimestamp,o=t+"/replay/"+r;if(null!=e&amp;&amp;e.withTimestamp&amp;&amp;i){var s,a=null!==(s=e.timestampLookBack)&amp;&amp;void 0!==s?s:10;if(!i)return o;var u=Math.max(Math.floor(((new Date).getTime()-i)/1e3)-a,0);o+="?t=".concat(u)}return o}},{key:"alias",value:function(e,t){return e===this.get_property(ve)?($.critical("Attempting to create alias for existing People user - aborting."),-2):(B(t)&amp;&amp;(t=this.get_distinct_id()),e!==t?(this._register_single(me,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(e),-1))}},{key:"set_config",value:function(e){var n,r,i=t({},this.config);L(e)&amp;&amp;(D(this.config,e),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),null===(n=this.persistence)||void 0===n||n.update_config(this.config),null===(r=this.sessionPersistence)||void 0===r||r.update_config(this.config),Ve.is_supported()&amp;&amp;"true"===Ve.get("ph_debug")&amp;&amp;(this.config.debug=!0),this.get_config("debug")&amp;&amp;(m.DEBUG=!0),this.sessionRecording&amp;&amp;void 0!==e.disable_session_recording&amp;&amp;i.disable_session_recording!==e.disable_session_recording&amp;&amp;(e.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!(null===(e=this.sessionRecording)||void 0===e||!e.started())}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_config",value:function(e){var t;return null===(t=this.config)||void 0===t?void 0:t[e]}},{key:"get_property",value:function(e){var t;return null===(t=this.persistence)||void 0===t?void 0:t.props[e]}},{key:"getSessionProperty",value:function(e){var t;return null===(t=this.sessionPersistence)||void 0===t?void 0:t.props[e]}},{key:"toString",value:function(){var e,t=null!==(e=this.get_config("name"))&amp;&amp;void 0!==e?e:br;return t!==br&amp;&amp;(t=br+"."+t),t}},{key:"_gdpr_init",value:function(){"localStorage"===this.get_config("opt_out_capturing_persistence_type")&amp;&amp;Ve.is_supported()&amp;&amp;(!this.has_opted_in_capturing()&amp;&amp;this.has_opted_in_capturing({persistence_type:"cookie"})&amp;&amp;this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&amp;&amp;this.has_opted_out_capturing({persistence_type:"cookie"})&amp;&amp;this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&amp;&amp;!qe.get("ph_optout")||(qe.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(e){var t,n,r,i,o;if(e&amp;&amp;e.clear_persistence)r=!0;else{if(!e||!e.enable_persistence)return;r=!1}this.get_config("disable_persistence")||(null===(t=this.persistence)||void 0===t?void 0:t.disabled)===r||(null===(i=this.persistence)||void 0===i||i.set_disabled(r));this.get_config("disable_persistence")||(null===(n=this.sessionPersistence)||void 0===n?void 0:n.disabled)===r||(null===(o=this.sessionPersistence)||void 0===o||o.set_disabled(r))}},{key:"_gdpr_call_func",value:function(e,t){return t=D({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},t||{}),Ve.is_supported()||"localStorage"!==t.persistence_type||(t.persistence_type="cookie"),e(this.get_config("token"),{capture:t.capture,captureEventName:t.capture_event_name,captureProperties:t.capture_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieExpiration:t.cookie_expiration,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie})}},{key:"opt_in_capturing",value:function(e){e=D({enable_persistence:!0},e||{}),this._gdpr_call_func(kt,e),this._gdpr_update_persistence(e)}},{key:"opt_out_capturing",value:function(e){var t=D({clear_persistence:!0},e||{});this._gdpr_call_func(St,t),this._gdpr_update_persistence(t)}},{key:"has_opted_in_capturing",value:function(e){return this._gdpr_call_func(Et,e)}},{key:"has_opted_out_capturing",value:function(e){return this._gdpr_call_func(xt,e)}},{key:"clear_opt_in_out_capturing",value:function(e){var t=D({enable_persistence:!0},null!=e?e:{});this._gdpr_call_func(Pt,t),this._gdpr_update_persistence(t)}},{key:"debug",value:function(e){!1===e?(S.console.log("You've disabled debug mode."),localStorage&amp;&amp;localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(S.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&amp;&amp;localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();!function(e,t){for(var n=0;n&lt;t.length;n++)e.prototype[t[n]]=G(e.prototype[t[n]])}(xr,["identify"]);var Pr={},Fr=function(){hr.init=function(e,t,n){if(n)return hr[n]||(hr[n]=Pr[n]=Er(e||"",t||{},n,(function(e){hr[n]=Pr[n]=e,e._loaded()}))),hr[n];var r=hr;return Pr[br]?r=Pr[br]:e&amp;&amp;(r=Er(e,t||{},br,(function(e){Pr[br]=e,e._loaded()})),Pr[br]=r),hr=r,pr===fr.INIT_SNIPPET&amp;&amp;(S[br]=hr),C(Pr,(function(e,t){t!==br&amp;&amp;(hr[t]=e)})),r}},Or=function(){function e(){e.done||(e.done=!0,kr=!1,C(Pr,(function(e){e._dom_loaded()})))}x.addEventListener&amp;&amp;("complete"===x.readyState?e():x.addEventListener("DOMContentLoaded",e,!1)),te(S,"load",e,!0)};pr=fr.INIT_SNIPPET,B(S.posthog)&amp;&amp;(S.posthog=[]),(hr=S.posthog).__loaded||hr.config&amp;&amp;hr.persistence?console.error("PostHog library has already been downloaded at least once."):(C(hr._i,(function(e){e&amp;&amp;j(e)&amp;&amp;(Pr[e[2]]=Er.apply(void 0,h(e)))})),Fr(),hr.init(),C(Pr,(function(e){e._loaded()})),Or())}();
//# sourceMappingURL=array.js.map
</pre></body></html>

                             

Screenshot: