1/*! For license information please see vendor-utility-login-build.min.js.LICENSE.txt */ 2"use strict";(self.webpackChunkdlvr_it=self.webpackChunkdlvr_it||[]).push([[746],{131(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.regionAPIs=void 0,t.regionAPIs=new Map([["us","https://api-iam.intercom.io"],["eu","https://api-iam.eu.intercom.io"],["ap","https://api-iam.au.intercom.io"]])},2674(e,t,r){var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.hideNotifications=t.onUserEmailSupplied=t.showConversation=t.showTicket=t.startChecklist=t.startSurvey=t.showNews=t.showArticle=t.startTour=t.whoami=t.getVisitorId=t.trackEvent=t.onUnreadCountChange=t.onShow=t.onHide=t.showNewMessage=t.showMessages=t.showSpace=t.show=t.hide=t.update=t.shutdown=t.boot=t.Intercom=void 0;const n=r(131),s=r(929),o=(e,...t)=>{if(void 0!==typeof window&&window.Intercom)return window.Intercom(e,...t);console.warn("Please ensure Intercom is setup and running on client-side!")};t.Intercom=e=>{if("object"!=typeof e)return void console.warn("Intercom initialiser called with invalid parameters.");const{region:t="us",widgetUrl:r}=e,o=i(e,["region","widgetUrl"]);"undefined"==typeof window||s.ref||(window.intercomSettings=Object.assign(Object.assign({},o),{api_base:n.regionAPIs.get(t)}),(0,s.init)({widgetUrl:r}))},t.default=t.Intercom;t.boot=e=>o("boot",e);t.shutdown=()=>o("shutdown");t.update=e=>o("update",e);t.hide=()=>o("hide");t.show=()=>o("show");t.showSpace=e=>o("showSpace",e);t.showMessages=()=>o("showMessages");t.showNewMessage=e=>o("showNewMessage",e);t.onHide=e=>o("onHide",e);t.onShow=e=>o("onShow",e);t.onUnreadCountChange=e=>o("onUnreadCountChange",e);t.trackEvent=(...e)=>o("trackEvent",...e);t.getVisitorId=()=>o("getVisitorId");t.whoami=()=>o("whoami");t.startTour=e=>o("startTour",e);t.showArticle=e=>o("showArticle",e);t.showNews=e=>o("showNews",e);t.startSurvey=e=>o("startSurvey",e);t.startChecklist=e=>o("startChecklist",e);t.showTicket=e=>o("showTicket",e);t.showConversation=e=>o("showConversation",e);t.onUserEmailSupplied=e=>o("onUserEmailSupplied",e);t.hideNotifications=e=>o("hideNotifications",e)},929(e,t){var r=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ref=t.init=void 0;const i="_intercom_npm_loader",n=function(){n.loaderQueue(arguments)};n.q=[],n.loaderQueue=function(e){n.q.push(e)};const s=function(e){var t,r,n=document;if(!n.getElementById(i)){var s=n.createElement("script");s.type="text/javascript",s.async=!0,s.id=i,s.src=e||"https://widget.intercom.io/widget/"+(null===(t=window.intercomSettings)||void 0===t?void 0:t.app_id);var o=n.getElementsByTagName("script")[0];null===(r=o.parentNode)||void 0===r||r.insertBefore(s,o)}},o=()=>"complete"===document.readyState||"interactive"===document.readyState;t.init=(...e)=>r(void 0,[...e],void 0,function*(e={}){var t=window,r=t.Intercom;t.intercomSettings&&(t.intercomSettings.installation_type="npm-package"),"function"==typeof r?(r("reattach_activator"),r("update",t.intercomSettings)):(t.Intercom=n,o()?s(e.widgetUrl):(document.addEventListener("readystatechange",function(){o()&&s(e.widgetUrl)}),t.attachEvent?t.attachEvent("onload",()=>s(e.widgetUrl)):t.addEventListener("load",()=>s(e.widgetUrl),!1)))}),t.ref=void 0},1555(e,t,r){var i=r(2704),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?o:a[e.$$typeof]||n}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,i){if("string"!=typeof r){if(f){var n=p(r);n&&n!==f&&e(t,n,i)}var o=c(r);
vendor: 4,290 bytes, line 2
2d&&(o=o.concat(d(r)));for(var a=l(t),v=l(r),g=0;g<o.length;++g){var m=o[g];if(!(s[m]||i&&i[m]||v&&v[m]||a&&a[m])){var _=h(r,m);try{u(t,m,_)}catch(e){}}}}return t}},7444(e,t){function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var i=r-1>>>1,n=e[i];if(!(0<s(n,t)))break e;e[i]=t,e[r]=n,r=i}}function i(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var i=0,n=e.length,o=n>>>1;i<o;){var a=2*(i+1)-1,l=e[a],u=a+1,c=e[u];if(0>s(l,r))u<n&&0>s(c,l)?(e[i]=c,e[u]=r,i=u):(e[i]=l,e[a]=r,i=a);else{if(!(u<n&&0>s(c,r)))break e;e[i]=c,e[u]=r,i=u}}}return t}function s(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],d=1,h=null,p=3,f=!1,v=!1,g=!1,m=!1,_="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=i(c);null!==t;){if(null===t.callback)n(c);else{if(!(t.startTime<=e))break;n(c),t.sortIndex=t.expirationTime,r(u,t)}t=i(c)}}function x(e){if(g=!1,w(e),!v)if(null!==i(u))v=!0,E||(E=!0,k());else{var t=i(c);null!==t&&F(x,t.startTime-e)}}var k,E=!1,S=-1,P=5,O=-1;function C(){return!!m||!(t.unstable_now()-O<P)}function A(){if(m=!1,E){var e=t.unstable_now();O=e;var r=!0;try{e:{v=!1,g&&(g=!1,b(S),S=-1),f=!0;var s=p;try{t:{for(w(e),h=i(u);null!==h&&!(h.expirationTime>e&&C());){var o=h.callback;if("function"==typeof o){h.callback=null,p=h.priorityLevel;var a=o(h.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof a){h.callback=a,w(e),r=!0;break t}h===i(u)&&n(u),w(e)}else n(u);h=i(u)}if(null!==h)r=!0;else{var l=i(c);null!==l&&F(x,l.startTime-e),r=!1}}break e}finally{h=null,p=s,f=!1}r=void 0}}finally{r?k():E=!1}}}if("function"==typeof y)k=function(){y(A)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,T=R.port2;R.port1.onmessage=A,k=function(){T.postMessage(null)}}else k=function(){_(A,0)};function F(e,r){S=_(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var r=p;p=t;try{return e()}finally{p=r}},t.unstable_requestPaint=function(){m=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=p;p=e;try{return t()}finally{p=r}},t.unstable_scheduleCallback=function(e,n,s){var o=t.unstable_now();switch("object"==typeof s&&null!==s?s="number"==typeof(s=s.delay)&&0<s?o+s:o:s=o,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:d++,callback:n,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>o?(e.sortIndex=s,r(c,e),null===i(u)&&e===i(c)&&(g?(b(S),S=-1):g=!0,F(x,s-o))):(e.sortIndex=a,r(u,e),v||f||(v=!0,E||(E=!0,k()))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}},2953(e,t,r){e.exports=r(7444)},2251(e,t,r){r.d(t,{C6:()=>n});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},i(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}Object.create;Object.create},5288(e,t,r){r.d(t,{AQ:()=>h,C6:()=>n,Cl:()=>s,Ju:()=>l,N3:()=>d,YH:()=>a,fX:()=>c,sH:()=>o,xN:()=>p,zs:()=>u});
vendor: 4,121 bytes, line 2
2var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},i(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return s=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)};function o(e,t,r,i){return new(r||(r=Promise))(function(n,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((i=i.apply(e,t||[])).next())})}function a(e,t){var r,i,n,s,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){o.label=a[1];break}if(6===a[0]&&o.label<n[1]){o.label=n[1],n=a;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(a);break}n[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}Object.create;function l(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function c(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function d(e){return this instanceof d?(this.v=e,this):new d(e)}function h(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(e,t||[]),s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(e){n[e]&&(i[e]=function(t){return new Promise(function(r,i){s.push([e,t,r,i])>1||a(e,t)})})}function a(e,t){try{(r=n[e](t)).value instanceof d?Promise.resolve(r.value.v).then(l,u):c(s[0][2],r)}catch(e){c(s[0][3],e)}var r}function l(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function p(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=l(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise(function(i,n){(function(e,t,r,i){Promise.resolve(i).then(function(t){e({value:t,done:r})},t)})(i,n,(t=e[r](t)).done,t.value)})}}}Object.create},1179(e,t,r){r.d(t,{so:()=>u});var i,n=r(4978),s=r(5533);function o(){return i}var a=(0,s.createContext)({get client(){return o()},bootstrap:void 0});function l(e,t,r){if(void 0===r&&(r=new WeakMap),e===t)return!0;
2if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(r.has(e)&&r.get(e)===t)return!0;r.set(e,t);var i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(var s=0,o=i;s<o.length;s++){var a=o[s];if(!n.includes(a))return!1;if(!l(e[a],t[a],r))return!1}return!0}function u(e){var t,r,i=e.children,n=e.client,u=e.apiKey,c=e.options,d=(0,s.useRef)(null),h=(0,s.useMemo)(function(){if(n)return u&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),c&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),n;var e=o();return u||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),e},[n,u,JSON.stringify(c)]);return(0,s.useEffect)(function(){if(!n&&u){var e=o(),t=d.current;t?(u!==t.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),c&&!l(c,t.options)&&e.set_config(c),d.current={apiKey:u,options:null!=c?c:{}}):(e.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),e.init(u,c),d.current={apiKey:u,options:null!=c?c:{}})}},[n,u,JSON.stringify(c)]),s.createElement(a.Provider,{value:{client:h,bootstrap:null!==(t=null==c?void 0:c.bootstrap)&&void 0!==t?t:null===(r=null==n?void 0:n.config)||void 0===r?void 0:r.bootstrap}},i)}var c=function(e){return"function"==typeof e},d=function(e){return void 0===e};var h=function(e,t){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},h(e,t)};"function"==typeof SuppressedError&&SuppressedError;var p,f=function(e){var t=Object.prototype.toString.call(e);return e instanceof Error||"[object Error]"===t||"[object Exception]"===t||"[object DOMException]"===t||"[object DOMError]"===t},v=function(e,t){if(!t)return e;var r=new Error(f(e)?e.message:"Primitive value captured as exception: ".concat(String(e)));return r.name="React ErrorBoundary ".concat(f(e)?e.name:"Error"),r.stack=t,f(e)?(function(e,t){for(var r=new WeakSet,i=e;!r.has(i);){if(r.add(i),!f(i.cause))return d(i.cause)||(t.cause=i.cause),void(i.cause=t);i=i.cause}}(e,r),e):r},g={componentStack:null,exceptionEvent:null,error:null},m="[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element.";!function(e){function t(t){var r=e.call(this,t)||this;return r.state=g,r}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,e),t.prototype.componentDidCatch=function(e,t){var r,i=this.props.additionalProperties;c(i)?r=i(e,t):"object"==typeof i&&(r=i);var n=this.context.client,s=t.componentStack,o=n.captureException(v(e,s),r);this.setState({error:e,componentStack:null!=s?s:null,exceptionEvent:o})},t.prototype.render=function(){var e=this.props,t=e.children,r=e.fallback,i=this.state;if(null==i.componentStack)return c(t)?t():t;var n=c(r)?s.createElement(r,{error:i.error,componentStack:i.componentStack,exceptionEvent:i.exceptionEvent}):r;return s.isValidElement(n)?n:(console.warn(m),s.createElement(s.Fragment,null))},t.contextType=a}(s.Component);p=n.Ay,i=p},4978(e,t,r){r.d(t,{Ay:()=>ac});var i="undefined"!=typeof window?window:void 0,n="undefined"!=typeof globalThis?globalThis:i,s=null==n?void 0:n.navigator,o=null==n?void 0:n.document,a=null==n?void 0:n.location,l=null==n?void 0:n.fetch,u=null!=n&&n.XMLHttpRequest&&"withCredentials"in new n.XMLHttpRequest?n.XMLHttpRequest:void 0,c=null==n?void 0:n.AbortController,d=null==n?void 0:n.CompressionStream,h=null==s?void 0:s.userAgent;function p(){return!(!i||!1===i.navigator.onLine)}var f="undefined"!=typeof globalThis?globalThis:i;f&&"undefined"==typeof self&&(f.self=f),f&&"undefined"==typeof File&&(f.File=function(){});var v=null!=i?i:{},g={DEBUG:!1,LIB_VERSION:"0.7.1",LIB_NAME:"browser-common"};function m(e,t,r,i,n,s,o){try{var a=e[s](o),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(i,n)}function _(e){return function(){var t=this,r=arguments;return new Promise(function(i,n){var s=e.apply(t,r);function o(e){m(s,i,n,o,a,"next",e)}function a(e){m(s,i,n,o,a,"throw",e)}o(void 0)})}}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},b.apply(null,arguments)}function y(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;
vendor: 5,121 bytes, line 2
2r[i]=e[i]}return r}var w=e=>{if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}};function x(e){return"string"==typeof e||e}function k(e){return"string"==typeof e?e:void 0}var E=["$feature_flag","$feature_flag_response","$feature_flag_has_experiment","$feature_flag_id","$feature_flag_version","$feature_flag_reason","$feature_flag_request_id","$feature_flag_evaluated_at","$feature_flag_error","locally_evaluated","$groups","$process_person_profile","$geoip_disable","$current_url","$pathname","$referring_domain","utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid","gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx","$session_id","$window_id","$lib","$lib_version","$device_id","$is_server"],S=function(e){return e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.EnablePersonProcessing="enable_person_processing",e.PersonMode="person_mode",e.FeatureFlagDetails="feature_flag_details",e.FeatureFlags="feature_flags",e.FeatureFlagPayloads="feature_flag_payloads",e.BootstrapFeatureFlagDetails="bootstrap_feature_flag_details",e.BootstrapFeatureFlags="bootstrap_feature_flags",e.BootstrapFeatureFlagPayloads="bootstrap_feature_flag_payloads",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.AiQueue="ai_queue",e.AiCaptureQueue="ai_capture_queue",e.LogsQueue="logs_queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionStartTimestamp="session_start_timestamp",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties",e.InstalledAppBuild="installed_app_build",e.InstalledAppVersion="installed_app_version",e.SessionReplay="session_replay",e.PushRegistered="push_registered",e.SessionReplayEventTriggerActivatedSession="session_replay_event_trigger_activated_session",e.SurveyLastSeenDate="survey_last_seen_date",e.SurveysSeen="surveys_seen",e.Surveys="surveys",e.RemoteConfig="remote_config",e.FlagsEndpointWasHit="flags_endpoint_was_hit",e.DeviceId="device_id",e}({}),P=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({}),O=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],C=["token"],A="[Truncated]",R="[Unserializable]";function T(e){for(var t="",r=0;e.length>r;r++){var i=e.charCodeAt(r);if(55296>i||i>56319)t+=56320>i||i>57343?e[r]:"�";else{var n=e.charCodeAt(r+1);56320>n||n>57343?t+="�":(t+=e[r]+e[r+1],r++)}}return t}var F=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterestbot","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],I=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var r=e.toLowerCase();return F.concat(t).some(e=>{var t=e.toLowerCase();return-1!==r.indexOf(t)})};function M(e,t){return-1!==e.indexOf(t)}var j=function(e){return e.trim()},$=function(e){return e.replace(/^\$/,"")};function N(e){var t,r=[];return null!==(t=JSON.stringify(e,function(e,t){if("bigint"==typeof t)return t.toString();if("function"!=typeof t&&"symbol"!=typeof t){if(t instanceof Error)return{name:t.name,message:t.message,stack:t.stack};if(t&&"object"==typeof t){for(;r.length>0&&r[r.length-1]!==this;)r.pop();if(r.includes(t))return"[Circular]";r.push(t)}return t}}))&&void 0!==t?t:"null"}var L=Object.prototype,D=L.hasOwnProperty,B=L.toString,z=Array.isArray||function(e){return"[object Array]"===B.call(e)},U=e=>"function"==typeof e,q=e=>e===Object(e)&&!z(e),H=e=>{if(q(e)){for(var t in e)if(D.call(e,t))return!1;return!0}return!1},V=e=>void 0===e,W=e=>"[object String]"==B.call(e),G=e=>W(e)&&0===e.trim().length,K=e=>null===e,J=e=>V(e)||K(e),Y=e=>"[object Number]"==B.call(e)&&e==e,Z=e=>Y(e)&&e>0,Q=e=>"[object Boolean]"===B.call(e),X=e=>M(O,e),ee=e=>M(C,e);function te(e){return null===e||"object"!=typeof e}function re(e,t){return{}.toString.call(e)==="[object "+t+"]"}function ie(e){switch({}
2.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object DOMError]":case"[object WebAssembly.Exception]":return!0;default:return se(e,Error)}}function ne(e){return"undefined"!=typeof Event&&se(e,Event)}function se(e,t){try{return e instanceof t}catch(e){return!1}}var oe=[!0,"true",1,"1","yes"],ae=e=>M(oe,e),le=[!1,"false",0,"0","no"];function ue(e,t,r,i,n){return t>r&&(i.warn("min cannot be greater than max."),t=r),Y(e)?e>r?(i.warn(" cannot be greater than max: "+r+". Using max value instead."),r):t>e?(i.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(i.warn(" must be a number. using max or fallback. max: "+r+", fallback: "+n),ue(n||r,t,r,i))}class ce{constructor(e){this.C={},this.I=e.I,this.R=ue(e.bucketSize,0,100,e.A),this.O=ue(e.refillRate,0,this.R,e.A),this.N=ue(e.refillInterval,0,864e5,e.A)}F(e,t){var r=Math.floor((t-e.lastAccess)/this.N);r>0&&(e.tokens=Math.min(e.tokens+r*this.O,this.R),e.lastAccess=e.lastAccess+r*this.N)}consumeRateLimit(e){var t,r=Date.now(),i=String(e),n=this.C[i];return n?this.F(n,r):this.C[i]=n={tokens:this.R,lastAccess:r},0===n.tokens||(n.tokens--,0===n.tokens&&(null==(t=this.I)||t.call(this,e)),0===n.tokens)}stop(){this.C={}}}var de="Mobile",he="iOS",pe="Android",fe="Tablet",ve=pe+" "+fe,ge="iPad",me="Apple",_e=me+" Watch",be="Safari",ye="BlackBerry",we="Samsung",xe=we+"Browser",ke=we+" Internet",Ee="Chrome",Se=Ee+" OS",Pe=Ee+" "+he,Oe="Internet Explorer",Ce=Oe+" "+de,Ae="Opera",Re=Ae+" Mini",Te="Edge",Fe="Microsoft "+Te,Ie="Firefox",Me=Ie+" "+he,je="Nintendo",$e="PlayStation",Ne="Xbox",Le=pe+" "+de,De=de+" "+be,Be="Windows",ze=Be+" Phone",Ue="Nokia",qe="Ouya",He="Generic",Ve=He+" "+de.toLowerCase(),We=He+" "+fe.toLowerCase(),Ge="Konqueror",Ke="Oculus Browser",Je="Vivaldi",Ye="Yandex",Ze="Whale",Qe="DuckDuckGo",Xe="Pale Moon",et="Waterfox",tt="Brave",rt="Claude",it="Codex",nt="ChatGPT",st="Google Search App",ot="(\\d+(\\.\\d+)?)",at=new RegExp("Version/"+ot),lt=new RegExp("("+rt+"|"+it+"|"+nt+")\\/"+ot),ut=new RegExp(Ne,"i"),ct=new RegExp($e+" \\w+","i"),dt=new RegExp(je+" \\w+","i"),ht=new RegExp(ye+"|PlayBook|BB10","i"),pt={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},ft=function(e,t,r,i){t=t||"";var n=function(e){return null!=e&&e.brave?tt:null}(r);return n||(null!=i&&i.detectGoogleSearchApp&&M(e,"GSA/")?st:M(e," OPR/")&&M(e,"Mini")?Re:M(e," OPR/")?Ae:ht.test(e)?ye:M(e,"IE"+de)||M(e,"WPDesktop")?Ce:M(e,"OculusBrowser")?Ke:M(e,xe)?ke:M(e,Te)||M(e,"Edg/")?Fe:M(e,Je+"/")?Je:M(e,"YaBrowser/")?Ye:M(e,Ze+"/")?Ze:M(e,Qe+"/")||M(e,"Ddg/")?Qe:M(e,rt+"/")?rt:M(e,it+"/")?it:M(e,nt+"/")?nt:M(e,"FBIOS")?"Facebook "+de:M(e,"UCWEB")||M(e,"UCBrowser")?"UC Browser":M(e,"CriOS")?Pe:M(e,"CrMo")||M(e,Ee)?Ee:M(e,pe)&&M(e,be)?Le:M(e,"FxiOS")?Me:M(e.toLowerCase(),Ge.toLowerCase())?Ge:M(e,tt+"/")?tt:((e,t)=>t&&M(t,me)||function(e){return M(e,be)&&!M(e,Ee)&&!M(e,pe)}(e))(e,t)?M(e,de)?De:be:M(e,"PaleMoon/")?Xe:M(e,et+"/")?et:M(e,Ie)?Ie:M(e,"MSIE")||M(e,"Trident/")?Oe:M(e,"Gecko")?Ie:"")},vt={[Ce]:[new RegExp("rv:"+ot)],[Fe]:[new RegExp(Te+"?\\/"+ot)],[Ee]:[new RegExp("("+Ee+"|CrMo)\\/"+ot)],[Pe]:[new RegExp("CriOS\\/"+ot)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+ot)],[be]:[at],[De]:[at],[Ae]:[new RegExp("(Opera|OPR)\\/"+ot)],[Ie]:[new RegExp(Ie+"\\/"+ot)],[Me]:[new RegExp("FxiOS\\/"+ot)],[Ge]:[new RegExp("Konqueror[:/]?"+ot,"i")],[ye]:[new RegExp(ye+" "+ot),at],[Le]:[new RegExp("android\\s"+ot,"i")],[ke]:[new RegExp(xe+"\\/"+ot)],[Ke]:[new RegExp("OculusBrowser\\/"+ot)],[Je]:[new RegExp(Je+"\\/"+ot)],[Ye]:[new RegExp("YaBrowser\\/"+ot)],[Ze]:[new RegExp(Ze+"\\/"+ot)],[tt]:[new RegExp(tt+"\\/"+ot)],[rt]:[lt],[it]:[lt],[nt]:[lt],[Qe]:[new RegExp("(DuckDuckGo|Ddg)\\/"+ot)],[Xe]:[new RegExp("PaleMoon\\/"+ot)],[et]:[new RegExp(et+"\\/"+ot)],[st]:[new RegExp("GSA\\/"+ot)],[Oe]:[new RegExp("(rv:|MSIE )"+ot)],Mozilla:[new RegExp("rv:"+ot)]},gt=function(e,t,r,i){var n=ft(e,t,r,i),s=vt[n];if(V(s))return null;for(var o=0;s.length>o;o++){var a=e.match(s[o]);if(a)return parseFloat(a[a.length-2])}return null},mt=[[new RegExp(Ne+"; "+Ne+" (.*?)[);]","i"),e=>[Ne,e&&e[1]||""]],[new RegExp(je,"i"),[je,""]],[new RegExp($e,"i"),[$e,""]],[ht,[ye,""]],[new RegExp(Be,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[ze,""];if(new RegExp(de).test(t)&&!/IEMobile\b/.test(t))return[Be+" "+de,""];
2var r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){var i=pt[r[1]]||"";return/arm/i.test(t)&&(i="RT"),[Be,i]}return[Be,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[he,[e[3],e[4],e[5]||"0"].join(".")]:[he,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=V(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+pe+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+pe+")","i"),e=>e&&e[2]?[pe,[e[2],e[3],e[4]||"0"].join(".")]:[pe,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[Se,""]],[/Linux|debian/i,["Linux",""]]],_t=function(e){for(var t=0;mt.length>t;t++){var r=mt[t],i=r[1],n=r[0].exec(e),s=n&&(U(i)?i(n,e):i);if(s)return s}return["",""]},bt=function(e){return dt.test(e)?je:ct.test(e)?$e:ut.test(e)?Ne:new RegExp(qe,"i").test(e)?qe:new RegExp("("+ze+"|WPDesktop)","i").test(e)?ze:/iPad/.test(e)?ge:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?_e:ht.test(e)?ye:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(Ue,"i").test(e)?Ue:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(de).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?pe:ve:new RegExp("(pda|"+de+")","i").test(e)?Ve:new RegExp(fe,"i").test(e)&&!new RegExp(fe+" pc","i").test(e)?We:""},yt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function wt(e,t){return"string"==typeof(r=e)&&yt.test(r)?e:t();var r}function xt(e,t){var r=new Error(t);try{Object.defineProperty(r,"name",{value:e,writable:!0,enumerable:!0,configurable:!0})}catch(e){}return r}function kt(e){return e?e.split("#")[0]:e}function Et(e,t){var r=setTimeout(e,t);return(null==r?void 0:r.unref)&&(null==r||r.unref()),r}function St(e,t,r){return Pt.apply(this,arguments)}function Pt(){return(Pt=_(function*(e,t,r){var i;try{return yield Promise.race([e,new Promise((e,n)=>{i=Et(()=>{try{null==r||r(),e()}catch(e){n(e)}},t)})])}finally{clearTimeout(i)}})).apply(this,arguments)}var Ot,Ct="NativeGzipValidationError",At=e=>e.length>=2&&31===e[0]&&139===e[1],Rt=(e,t)=>e===P.GZipJS||t===P.GZipJS||"gzip"===t,Tt=e=>!(!e||"object"!=typeof e)&&"NotReadableError"===("name"in e?String(e.name):""),Ft=e=>{throw xt(Ct,"Native gzip produced invalid output: "+e)},It=function(){var e=_(function*(e,t){18>e.size&&Ft("too-short");var r=new Uint8Array(yield e.slice(0,10).arrayBuffer());At(r)&&8===r[2]||Ft("invalid-header");var i=new DataView(yield e.slice(e.size-8).arrayBuffer());i.getUint32(0,!0)!==(e=>{for(var t=(()=>{if(Ot)return Ot;Ot=[];for(var e=0;256>e;e++){for(var t=e,r=0;8>r;r++)t=1&t?3988292384^t>>>1:t>>>1;Ot[e]=t>>>0}return Ot})(),r=4294967295,i=0;e.length>i;i++)r=t[255&(r^e[i])]^r>>>8;return(4294967295^r)>>>0})(t)&&Ft("invalid-crc");var n=t.length>>>0;i.getUint32(4,!0)!==n&&Ft("invalid-size")});return function(t,r){return e.apply(this,arguments)}}();function Mt(){return Mt=_(function*(e,t,r){void 0===t&&(t=!0);try{var i=(new TextEncoder).encode(e),n=new globalThis.CompressionStream("gzip"),s=n.writable.getWriter(),o=s.write(i).then(()=>s.close()).catch(function(){var e=_(function*(e){try{yield s.abort(e)}catch(e){}throw e});return function(t){return e.apply(this,arguments)}}()),a=new Response(n.readable).blob(),l=(yield Promise.all([a,o]))[0];return yield It(l,i),l}catch(e){if(null!=r&&r.rethrow)throw e;return t&&console.error("Failed to gzip compress data",e),null}}),Mt.apply(this,arguments)}var jt=0x8000000000000000,$t={}.propertyIsEnumerable;function Nt(e,t){try{return Bt(e,t,{ancestors:new WeakSet,remainingNodes:1e4},0)}catch(e){return[]}}function Lt(e,t,r,i){if(0>=r.remainingNodes)return{stringValue:A};if(r.remainingNodes--,Q(e))return{boolValue:e};if("bigint"==typeof e)return function(e,t){var r=e.toString(),i=BigInt("9223372036854775808");return e>=i||-i>e?(null==t||t.debug("Attribute "+r+" is outside the int64 range; encoding it as a string"),{stringValue:r}):{intValue:r}}(e,t);if("number"==typeof e){if(!Number.isFinite(e))return{stringValue:String(e)};if(Number.isInteger(e)){if(Number.isSafeInteger(e))return{intValue:String(e)};if("undefined"==typeof BigInt)return{stringValue:String(e)};var n=BigInt(e).toString();return e>=jt||-jt>e?(null==t||t.debug("Attribute "+n+" is outside the int64 range; encoding it as a string"),{stringValue:n}):{intValue:n}}return{doubleValue:e}}if("string"==typeof e)return{stringValue:T(e)};if("function"==typeof e)return{stringValue:"[Function]"};if("symbol"==typeof e)return{stringValue:String(e)};if("object"==typeof e&&null!==e){if(r.ancestors.has(e))return{stringValue:"[Circular]"};if(i>=20)return{stringValue:A};if(e instanceof Date){var s=e.getTime(),o=Number.isFinite(s)?e.toISOString():String(e);return{stringValue:"string"==typeof o?T(o):String(o)}}r.ancestors.add(e);try{try{var a=e.toJSON;
vendor: 13,779 bytes, line 2
2if("function"==typeof a)return Lt(a.call(e),t,r,i+1)}catch(e){}return z(e)?{arrayValue:{values:Dt(e,t,r,i+1)}}:{kvlistValue:{values:Bt(e,t,r,i+1)}}}finally{r.ancestors.delete(e)}}return{stringValue:T(String(e))}}function Dt(e,t,r,i){for(var n=[],s=Math.min(e.length,1e3),o=0;s>o&&r.remainingNodes>0;o++)try{var a=o in e?e[o]:void 0;if(J(a))continue;n.push(Lt(a,t,r,i))}catch(e){n.push({stringValue:R})}return e.length>o&&n.push({stringValue:A}),n}function Bt(e,t,r,i){var n=[];for(var s in e)if($t.call(e,s)){if(!s){null==t||t.debug("Dropping an attribute with an empty key");continue}if(n.length>=1e3||0>=r.remainingNodes){null==t||t.debug("Attributes truncated: the value exceeds the OTLP encoder budget");break}try{var o=e[s];if(K(o)||V(o))continue;n.push({key:T(s),value:Lt(o,t,r,i)})}catch(e){n.push({key:T(s),value:{stringValue:R}})}}return n}function zt(e,t,r){return b({},e.resourceAttributes,{"service.name":e.serviceName||"unknown_service"},e.environment&&{"deployment.environment":e.environment},e.serviceVersion&&{"service.version":e.serviceVersion},{"telemetry.sdk.name":t,"telemetry.sdk.version":r})}var Ut={darwin:"macOS",win32:"Windows",linux:"Linux",android:"Android",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",aix:"AIX","Mac OS X":"macOS"},qt={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},Ht=qt.info;function Vt(e){try{return T(String(e))}catch(e){return R}}function Wt(e,t,r,i){var n,s=qt[e.level||"info"]||Ht,o=s.text,a=s.number,l=(void 0===(n=Y(i)?i:void 0)&&(n=Date.now()),String(n)+"000000"),u={};t.distinctId&&(u.posthogDistinctId=t.distinctId),t.sessionId&&(u.sessionId=t.sessionId),t.windowId&&(u["window.id"]=t.windowId),J(t.sessionStartTimestamp)||(u.sessionStartTimestamp=String(t.sessionStartTimestamp)),J(t.lastActivityTimestamp)||(u.lastActivityTimestamp=String(t.lastActivityTimestamp)),t.currentUrl&&(u["url.full"]=t.currentUrl),t.screenName&&(u["screen.name"]=t.screenName),t.appState&&(u["app.state"]=t.appState),t.activeFeatureFlags&&t.activeFeatureFlags.length>0&&(u.feature_flags=t.activeFeatureFlags);var c=b({},u),d=e.attributes;if(d){var h=[];try{h=Object.keys(d)}catch(e){h=[]}for(var p of h){var f=void 0;try{f=d[p]}catch(e){f=R}Object.defineProperty(c,p,{value:f,enumerable:!0,writable:!0,configurable:!0})}}var v={timeUnixNano:l,observedTimeUnixNano:l,severityNumber:a,severityText:o,body:{stringValue:Vt(e.body)},attributes:Nt(c,r)};return e.trace_id&&(v.traceId=e.trace_id),e.span_id&&(v.spanId=e.span_id),V(e.trace_flags)||(v.flags=e.trace_flags),v}function Gt(e,t,r){return zt(e,t,r)}function Kt(e,t,r,i){return{resourceLogs:[{resource:{attributes:Nt(t)},scopeLogs:[{scope:{name:r,version:i},logRecords:e}]}]}}let Jt=class{constructor(e,t,r,i,n,s,o){var a;void 0===s&&(s=()=>Promise.resolve()),this._instance=e,this.mn=t,this.A=r,this.Pn=i,this.Fn=n,this.$n=s,this.Nn=o,this.qn=null,this.jn=0,this.Bn=0,this.Hn=0,this.zn=0,this.Un=0,this.Wn=!1,this.Vn=t.maxBufferSize,this.Gn=Math.max(null!==(a=t.maxQueueSize)&&void 0!==a?a:t.maxBufferSize,t.maxBufferSize),this.Zn=t.flushIntervalMs,this.Qn=t.maxBatchRecordsPerPost,this.Jn=t.rateCapWindowMs,this.Kn=t.maxLogsPerInterval}clearQueue(){this.Bn++,this._instance.setPersistedProperty(S.LogsQueue,[])}reset(){this.Yn(),this.zn=0,this.Un=0,this.Wn=!1,this.Hn=0,this.Qn=this.mn.maxBatchRecordsPerPost}onReconnect(){this.Hn=0,this.Xn()}captureLog(e,t){var r;if(!this._instance.isDisabled&&!this._instance.optedOut&&null!=e&&e.body){var i=this.ts(e);if(null!==i)if(i.body){if(this.es()){var n={record:Wt(i,null!==(r=null==t?void 0:t.context)&&void 0!==r?r:this.Pn(),this.A,null==t?void 0:t.occurredAtMs)};this.Fn(()=>this.rs(n))}}else this.A.info("Log was rejected in beforeSend function")}}ts(e){var t=this.mn.beforeSend;if(!t)return e;var r=z(t)?t:[t],i=e;for(var n of r)try{var s=n(i);if(!s)return this.A.info("Log was rejected in beforeSend function"),null;i=s}catch(e){return this.A.error("Error in beforeSend function for log:",e),null}return i}es(){if(void 0===this.Kn)return!0;var e=Date.now(),t=e-this.zn;return this.Jn>t&&t>=0||(this.zn=e,this.Un=0,this.Wn=!1),this.Kn>this.Un?(this.Un++,!0):(this.Wn||(this.A.warn("captureLog dropping logs: exceeded "+this.Kn+" logs per "+this.Jn+"ms"),this.Wn=!0),!1)}flush(){var e=this;return _(function*(){if(!e._instance.isDisabled)return e.qn||(e.qn=e.ns().finally(()=>{e.qn=null})),e.qn})()}ns(){var e=this;return _(function*(){var t;e.Yn();var r=null!==(t=e._instance.getPersistedProperty(S.LogsQueue))&&void 0!==t?t:[];if(0!==r.length)for(var i=r.length,n=0;r.length>0&&i>n;){var s,o,a=e.Bn;e.jn=0;var l=Math.min(r.length,e.Qn),u=r.slice(0,l),c=Kt(u.map(e=>e.record),e.ss(),null!==(s=e.Nn)&&void 0!==s?s:e._instance.getLibraryId(),e._instance.getLibraryVersion()),d=yield e._instance.os(c);if(e.Bn!==a)return;if("too-large"===d.kind&&u.length>1)e.Qn=Math.max(1,Math.floor(u.length/2)),e.A.warn("Received 413 when sending logs batch of size "+u.length+", reducing batch size to "+e.Qn);else{if("retry-later"===d.kind)throw d.error;if("too-large"===d.kind?e.A.warn("Dropping a single log record after 413 with batch size 1 â the record is larger than the server cap and cannot be split further."):"ok"===d.kind&&e.mn.maxBatchRecordsPerPost>e.Qn&&(e.Qn=Math.min(e.mn.maxBatchRecordsPerPost,e.Qn+1)),yield e.ls(u.length),r=null!==(o=e._instance.getPersistedProperty(S.LogsQueue))&&void 0!==o?o:[],n+=u.length,"fatal"===d.kind)throw d.error}}})()}ls(e){var t=this;return _(function*(){var r,i=Math.max(0,e-t.jn),n=null!==(r=t._instance.getPersistedProperty(S.LogsQueue))&&void 0!==r?r:[];t._instance.setPersistedProperty(S.LogsQueue,n.slice(i)),yield t.$n()})()}ss(){return Gt(this.mn,this._instance.getLibraryId(),this._instance.getLibraryVersion())}rs(e){var t;if(!this._instance.optedOut){var r=null!==(t=this._instance.getPersistedProperty(S.LogsQueue))&&void 0!==t?t:[];this.Gn>r.length||(r.shift(),this.jn++,this.A.info("Logs queue is full, dropping oldest record.")),r.push(e),this._instance.setPersistedProperty(S.LogsQueue,r),this.Vn>r.length?this.us():this.Xn()}}us(e){void 0===e&&(e=this.Zn),this.hs||(this.hs=Et(()=>{this.hs=void 0,this.Xn()},e))}ds(){var e=Math.min(Math.max(0,this.Hn-1),6);return this.Zn*Math.pow(2,e)}vs(){var e=this._instance.getPersistedProperty(S.LogsQueue);return!!e&&e.length>0}shutdown(e){var t=this;return _(function*(){t.Yn();var r=t.flush().catch(()=>{});void 0!==e?yield St(r,e):yield r})()}flushWithTimeout(e){var t=this;return _(function*(){var r=t.flush();yield St(r,e,()=>{r.catch(()=>{})})})()}Xn(){this.flush().then(()=>{this.Hn=0},e=>{this.Hn++,this.A.error("PostHog logs flush failed:",e)}).finally(()=>{!this._instance.isDisabled&&this.vs()&&this.us(this.ds())})}Yn(){this.hs&&(clearTimeout(this.hs),this.hs=void 0)}};var Yt=[0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4];function Zt(e){return String(e)+"000000"}function Qt(e,t,r,i){var n="";return i&&(n=Object.keys(i).sort().map(e=>JSON.stringify(e)+":"+JSON.stringify(i[e])).join(",")),e+"\0"+t+"\0"+(null!=r?r:"")+"\0"+n}let Xt=class{constructor(e,t,r){this._instance=e,this.mn=t,this.A=r,this.cs=new Map,this.qn=null,this.fs=!1,this.ps=new Map,this.gs=new Set,this.ys=0}count(e,t,r){void 0===t&&(t=1),this.bs({name:e,type:"count",value:t,unit:null==r?void 0:r.unit,attributes:null==r?void 0:r.attributes})}gauge(e,t,r){this.bs({name:e,type:"gauge",value:t,unit:null==r?void 0:r.unit,attributes:null==r?void 0:r.attributes})}histogram(e,t,r){this.bs({name:e,type:"histogram",value:t,unit:null==r?void 0:r.unit,attributes:null==r?void 0:r.attributes})}flush(){var e=this,t=this.qn,r=function(){var r=_(function*(){t&&(yield t.catch(()=>{})),yield e._s()});return function(){return r.apply(this,arguments)}}(),i=r().finally(()=>{this.qn===i&&(this.qn=null)});return this.qn=i,i}drainWindow(){if(0===this.cs.size)return null;var e=this.cs;return this.cs=new Map,this.fs=!1,this.ps=new Map,this.gs=new Set,this.ws(e)}reset(){this.ys++,this.Yn(),this.cs=new Map,this.qn=null,this.fs=!1,this.ps=new Map,this.gs=new Set}bs(e){if(!this._instance.isDisabled&&!this._instance.optedOut){var t=this.ts(e);if(null!==t)if(t.name&&"string"==typeof t.name)if("number"==typeof t.value&&Number.isFinite(t.value))if("count"===t.type&&0>t.value)this.A.warn("Dropping count '"+t.name+"': counters are monotonic, value must be >= 0");else{var r,i;try{r=t.attributes?b({},t.attributes):void 0,i=Qt(t.type,t.name,t.unit,r)}catch(e){return void this.A.warn("Dropping metric '"+t.name+"': attributes could not be serialized",e)}var n=this.cs.get(i);if(!n){if(!this.ks())return;n={name:t.name,type:t.type,unit:t.unit,attributes:r,windowStartMs:Date.now()},this.cs.set(i,n)}var s=this.ps.get(t.name);void 0===s?this.ps.set(t.name,t.type):s===t.type||this.gs.has(t.name)||(this.gs.add(t.name),this.A.warn("Metric name '"+t.name+"' is already used as a "+s+"; recording it as a "+t.type+" too will blend both series in charts. Use a distinct name.")),this.Ss(n,t.value),this.us()}else this.A.warn("Dropping metric '"+t.name+"': value must be a finite number");else this.A.warn("Dropping metric with empty name")}}ks(){return this.mn.maxSeriesPerFlush>this.cs.size||(this.fs||(this.fs=!0,this.A.warn("Metric series cap reached ("+this.mn.maxSeriesPerFlush+" per flush window); dropping new series until the next flush. Reduce attribute cardinality.")),!1)}Ss(e,t){var r;switch(e.type){case"count":e.total=(null!==(r=e.total)&&void 0!==r?r:0)+t;break;case"gauge":e.last=t;break;case"histogram":e.hist||(e.hist={count:0,sum:0,min:t,max:t,bucketCounts:new Array(Yt.length+1).fill(0)});var i=e.hist;i.count+=1,i.sum+=t,i.min=Math.min(i.min,t),i.max=Math.max(i.max,t),i.bucketCounts[function(e,t){for(var r=0;t.length>r;r++)if(t[r]>=e)return r;return t.length}(t,Yt)]+=1}}ts(e){var t=this.mn.beforeSend;if(!t)return e;var r=z(t)?t:[t],i=e;for(var n of r)try{var s=n(i);if(!s)return this.A.info("Metric was rejected in beforeSend function"),null;i=s}catch(e){return this.A.error("Error in beforeSend function for metric:",e),null}return i}us(){this.hs||(this.hs=Et(()=>{this.hs=void 0,this.flush().catch(e=>{this.A.error("Metrics flush failed:",e)})},this.mn.flushIntervalMs))}Yn(){this.hs&&(clearTimeout(this.hs),this.hs=void 0)}_s(){var e=this;return _(function*(){if(0!==e.cs.size){var t=e.cs;e.cs=new Map,e.fs=!1,e.ps=new Map,e.gs=new Set;var r=e.ys,i=yield e._instance.xs(e.ws(t));if(r===e.ys)switch(i.kind){case"ok":return;case"retry-later":return e.Cs(t),void e.us();case"too-large":return void e.A.warn("Metrics batch exceeded the server size limit and was dropped");case"fatal":return void e.A.error("Failed to send metrics batch:",i.error)}}})()}ws(e){return t=this.Ts(e),r=function(e,t,r){return zt(e,t,r)}(this.mn,this._instance.getLibraryId(),this._instance.getLibraryVersion()),i=this._instance.getLibraryId(),n=this._instance.getLibraryVersion(),{resourceMetrics:[{resource:{attributes:Nt(r)},scopeMetrics:[{scope:{name:i,version:n},metrics:t}]}]};var t,r,i,n}Ts(e){var t=Zt(Date.now()),r=new Map;for(var i of e.values()){var n,s=Qt(i.type,i.name,i.unit,void 0),o=r.get(s);o||(o=b({name:i.name},i.unit&&{unit:i.unit}),"count"===i.type?o.sum={aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}:"gauge"===i.type?o.gauge={dataPoints:[]}:o.histogram={aggregationTemporality:1,dataPoints:[]},r.set(s,o));var a=Nt(null!==(n=i.attributes)&&void 0!==n?n:{},this.A),l=Zt(i.windowStartMs);if("count"===i.type){var u,c={attributes:a,startTimeUnixNano:l,timeUnixNano:t,asDouble:null!==(u=i.total)&&void 0!==u?u:0};o.sum.dataPoints.push(c)}else if("gauge"===i.type){var d,h={attributes:a,timeUnixNano:t,asDouble:null!==(d=i.last)&&void 0!==d?d:0};o.gauge.dataPoints.push(h)}else i.hist&&o.histogram.dataPoints.push({attributes:a,startTimeUnixNano:l,timeUnixNano:t,count:i.hist.count,sum:i.hist.sum,min:i.hist.min,max:i.hist.max,bucketCounts:i.hist.bucketCounts,explicitBounds:Yt})}return Array.from(r.values())}Cs(e){var t,r;for(var i of e){var n=i[0],s=i[1],o=this.cs.get(n);if(o)switch(o.windowStartMs=Math.min(o.windowStartMs,s.windowStartMs),o.type){case"count":o.total=(null!==(t=o.total)&&void 0!==t?t:0)+(null!==(r=s.total)&&void 0!==r?r:0);break;case"gauge":break;case"histogram":if(s.hist)if(o.hist){o.hist.count+=s.hist.count,o.hist.sum+=s.hist.sum,o.hist.min=Math.min(o.hist.min,s.hist.min),o.hist.max=Math.max(o.hist.max,s.hist.max);for(var a=0;o.hist.bucketCounts.length>a;a++)o.hist.bucketCounts[a]+=s.hist.bucketCounts[a]}else o.hist=s.hist}else this.ks()&&this.cs.set(n,s)}}};var er,tr,rr;function ir(e){var t=globalThis._posthogChunkIds;if(t){var r=Object.keys(t);return rr&&r.length===tr||(tr=r.length,rr=r.reduce((r,i)=>{er||(er={});var n=er[i];if(n)r[n[0]]=n[1];else for(var s=e(i),o=s.length-1;o>=0;o--){var a=s[o],l=null==a?void 0:a.filename,u=t[i];if(l&&u){r[l]=u,er[i]=[l,u];break}}return r},{})),rr}}class nr{constructor(e,t,r){void 0===r&&(r=[]),this.coercers=e,this.stackParser=t,this.modifiers=r}buildFromUnknown(e,t){void 0===t&&(t={});var r=t&&t.mechanism||{handled:!0,type:"generic"},i=this.buildCoercingContext(r,t,0).apply(e),n=this.buildParsingContext(t),s=this.parseStacktrace(i,n);return{$exception_list:this.convertToExceptionList(s,r),$exception_level:"error"}}modifyFrames(e){var t=this;return _(function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&z(r.stacktrace.frames)&&(r.stacktrace.frames=yield t.applyModifiers(r.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:null==(t=e.syntheticException)?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var r,i;return null!=e.cause&&(r=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(i=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.ski
2pFirstLines:0),t.chunkIdMap)),b({},e,{cause:r,stack:i})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var r of this.coercers)if(r.match(e))return r.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return _(function*(){var r=e;for(var i of t.modifiers)r=yield i(r);return r})()}convertToExceptionList(e,t){var r,i,n,s={type:e.type,value:e.value,mechanism:{type:null!==(r=t.type)&&void 0!==r?r:"generic",handled:null===(i=t.handled)||void 0===i||i,synthetic:null!==(n=e.synthetic)&&void 0!==n&&n}};e.stack&&(s.stacktrace={type:"raw",frames:e.stack});var o=[s];return null!=e.cause&&o.push(...this.convertToExceptionList(e.cause,b({},t,{handled:!0}))),o}buildParsingContext(e){var t;return{chunkIdMap:ir(this.stackParser),skipFirstLines:null!==(t=e.skipFirstLines)&&void 0!==t?t:1}}buildCoercingContext(e,t,r){void 0===r&&(r=0);var i=(r,i)=>{if(4>=i){var n=this.buildCoercingContext(e,t,i);return this.applyCoercers(r,n)}};return b({},t,{syntheticException:0==r?t.syntheticException:void 0,mechanism:e,apply:e=>i(e,r),next:e=>i(e,r+1)})}}var sr="?";function or(e,t,r,i,n){var s={platform:e,filename:t,function:"<anonymous>"===r?sr:r,in_app:!(null!=t&&t.startsWith("webkit-masked-url://"))&&"<anonymous>"!==t};return V(i)||(s.lineno=i),V(n)||(s.colno=n),s}var ar=(e,t)=>{var r=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return r||i?[-1!==e.indexOf("@")?e.split("@")[0]:sr,r?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},lr=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ur=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,cr=/\((\S*)(?::(\d+))(?::(\d+))\)/,dr=(e,t)=>{var r=lr.exec(e);if(r)return or(t,r[1],sr,+r[2],+r[3]);var i=ur.exec(e);if(i){if(i[2]&&0===i[2].indexOf("eval")){var n=cr.exec(i[2]);n&&(i[2]=n[1],i[3]=n[2],i[4]=n[3])}var s=ar(i[1]||sr,i[2]);return or(t,s[1],s[0],i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}},hr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,pr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,fr=(e,t)=>{var r=hr.exec(e);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var i=pr.exec(r[3]);i&&(r[1]=r[1]||"eval",r[3]=i[1],r[4]=i[2],r[5]="")}var n=r[3],s=r[1]||sr,o=ar(s,n);return or(t,n=o[1],s=o[0],r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}},vr=/\(error: (.*)\)/;class gr{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var r=W(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return re(e,"DOMException")}isDOMError(e){return re(e,"DOMError")}}class mr{match(e){return ie(e)}coerce(e,t){var r,i=this.getStack(e),n=void 0===i;return{type:this.getType(e),value:this.getMessage(e,t),stack:null!=i?i:null==(r=t.syntheticException)?void 0:r.stack,cause:e.cause?t.next(e.cause):void 0,synthetic:n}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var r=e.message;return String(r.error&&"string"==typeof r.error.message?r.error.message:r)}getStack(e){return e.stacktrace||e.stack||void 0}}class _r{constructor(){}match(e){return!!re(e,"ErrorEvent")&&(null!=e.error||this.Vi(e))}coerce(e,t){var r;if(null!=e.error)return t.apply(e.error);var i=t.apply(e.message);return b({},i,{stack:null!==(r=this.Zi(e))&&void 0!==r?r:i.stack,synthetic:!0})}Vi(e){return W(e.message)&&e.message.length>0}Zi(e){var t,r,i=e,n=null!==(t=i.lineno)&&void 0!==t?t:0,s=null!==(r=i.colno)&&void 0!==r?r:0;if(W(i.filename)&&0!==i.filename.length&&0!==n)return"Error\n at "+i.filename+":"+n+":"+s}}var br=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class yr{match(e){return"string"==typeof e}coerce(e,t){var r,i=this.getInfos(e),n=i[0],s=i[1];return{type:null!=n?n:"Error",value:null!=s?s:e,stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}getInfos(e){var t="Error",r=e,i=e.match(br);return i&&(t=i[1],r=i[2]),[t,r]}}var wr=["fatal","error","warning","log","info","debug"];function xr(e,t){void 0===t&&(t=40);var r=Object.keys(e);if(r.sort(),!r.length)return"[object has no keys]";for(var i=r.length;i>0;i--){var n=r.slice(0,i).join(", ");
vendor: 2,671 bytes, line 2
2if(t>=n.length)return i===r.length?n:n.length>t?n.slice(0,t)+"...":n}return""}class kr{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var r,i,n=this.getErrorPropertyFromObject(e);return n?t.apply(n):{type:this.getType(e),value:this.getValue(e),stack:null!==(r=this.getStack(e))&&void 0!==r?r:null==(i=t.syntheticException)?void 0:i.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){if(ne(e))return e.constructor.name;var t="name"in e?e.name:void 0;return W(t)&&!G(t)?t:"Error"}getValue(e){if("name"in e&&"string"==typeof e.name){var t="'"+e.name+"' captured as exception";return"message"in e&&"string"==typeof e.message&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&"string"==typeof e.message)return e.message;var r=this.getObjectClassName(e);return(r&&"Object"!==r?"'"+r+"'":"Object")+" captured as exception with keys: "+xr(e)}isSeverityLevel(e){return W(e)&&!G(e)&&wr.indexOf(e)>=0}getStack(e){try{return W(e.stacktrace)&&e.stacktrace.length>0?e.stacktrace:W(e.stack)&&e.stack.length>0?e.stack:void 0}catch(e){return}}getErrorPropertyFromObject(e){for(var t in e)if({}.hasOwnProperty.call(e,t)){var r=e[t];if(ie(r))return r}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){return}}}class Er{match(e){return ne(e)}coerce(e,t){var r,i=e.constructor.name;return{type:i,value:i+" captured as exception with keys: "+xr(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class Sr{match(e){return te(e)}coerce(e,t){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class Pr{match(e){return re(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!ne(e))return!1;try{var t=e.detail;return null!=t&&"object"==typeof t&&"reason"in t}catch(e){return!1}}coerce(e,t){var r,i=this.getUnhandledRejectionReason(e);return te(i)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}:t.apply(i)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&null!=e.detail&&"object"==typeof e.detail&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}}var Or="$message",Cr="$timestamp",Ar=new Set([Or,Cr]),Rr={enabled:!0,max_bytes:32768};function Tr(e){var t;return e?{enabled:null!==(t=e.enabled)&&void 0!==t?t:Rr.enabled,max_bytes:Ir(e.max_bytes,Rr.max_bytes)}:b({},Rr)}class Fr{constructor(e){this.Ms=[],this.Es=0,this.mn=Tr(e)}setConfig(e){this.mn=Tr(e),this.Is()}
2add(e){var t=function(e){var t;try{t=N(e)}catch(e){return}try{var r=JSON.parse(t);if(!q(r))return;var i=r,n=i[Or],s=i[Cr];if(!W(n)||0===n.trim().length)return;if(!W(s)&&!Y(s))return;return{step:i,json:t}}catch(e){return}}(e);if(t){var r=function(e){if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e).length;for(var t=encodeURIComponent(e),r=0,i=0;t.length>i;i++)"%"===t[i]?(r+=1,i+=2):r+=1;return r}(t.json);r>this.mn.max_bytes||(this.Ms.push({step:t.step,bytes:r}),this.Es+=r,this.Is())}}getAttachable(){return this.Ms.map(e=>e.step)}clear(){this.Ms=[],this.Es=0}size(){return this.Ms.length}Is(){for(;this.Es>this.mn.max_bytes&&this.Ms.length>0;){var e=this.Ms.shift();e&&(this.Es-=e.bytes)}}}function Ir(e,t){if(!Y(e)||e===1/0||e===-1/0)return t;var r=Math.floor(e);return 0>r?t:r}var Mr=function(e,t){var r=(void 0===t?{}:t).debugEnabled,n={q(t){if(i&&(g.DEBUG||i.POSTHOG_DEBUG||r)&&!V(i.console)&&i.console){for(var n=("__rrweb_original__"in i.console[t]?i.console[t].__rrweb_original__:i.console[t]),s=arguments.length,o=new Array(s>1?s-1:0),a=1;s>a;a++)o[a-1]=arguments[a];n(e,...o)}},debug(){for(var e=arguments.length,t=new Array(e),r=0;e>r;r++)t[r]=arguments[r];n.q("debug",...t)},info(){for(var e=arguments.length,t=new Array(e),r=0;e>r;r++)t[r]=arguments[r];n.q("log",...t)},warn(){for(var e=arguments.length,t=new Array(e),r=0;e>r;r++)t[r]=arguments[r];n.q("warn",...t)},error(){for(var e=arguments.length,t=new Array(e),r=0;e>r;r++)t[r]=arguments[r];n.q("error",...t)},critical(){for(var t=arguments.length,r=new Array(t),i=0;t>i;i++)r[i]=arguments[i];console.error(e,...r)},uninitializedWarning(e){n.error("You must initialize PostHog before calling "+e)},createLogger:(t,r)=>Mr(e+" "+t,r)};return n},jr=Mr("[PostHog.js]"),$r=jr.createLogger,Nr=$r("[ExternalScriptsLoader]"),Lr=e=>{var t=null==o?void 0:o.querySelectorAll("script");if(t)for(var r=0;t.length>r;r++)if(t[r].src===e||t[r].getAttribute("src")===e)return t[r]},Dr=(e,t,r)=>{if(e.config.disable_external_dependency_loading)return Nr.warn(t+" was requested but loading of external scripts is disabled."),r("Loading of external scripts is disabled");var i=Lr(t);if(i){if(i.__posthog_loading_callback_fired)return r();var n=i.__posthog_loading_error;return n?r(n):(i.addEventListener("load",e=>{i.__posthog_loading_callback_fired=!0,r(void 0,e)}),void i.addEventListener("error",e=>{i.__posthog_loading_error=e,r(e)}))}var s=()=>{if(!o)return r("document not found");if(Lr(t))return Dr(e,t,r);var i=o.createElement("script");if(i.type="text/javascript",i.crossOrigin="anonymous",i.src=t,i.onload=e=>{i.__posthog_loading_callback_fired=!0,r(void 0,e)},i.onerror=e=>{i.__posthog_loading_error=e,r(e)},e.config.prepare_external_dependency_script&&(i=e.config.prepare_external_dependency_script(i)),!i)return r("prepare_external_dependency_script returned null");if("head"===e.config.external_scripts_inject_target)o.head.appendChild(i);else{var n,s=o.querySelectorAll("body > script");s.length>0?null==(n=s[0].parentNode)||n.insertBefore(i,s[0]):o.body.appendChild(i)}};null!=o&&o.body?s():null==o||o.addEventListener("DOMContentLoaded",s)},Br={},zr=(e,t)=>{var r="/static/"+t+".js?v="+e.version;if("toolbar"===t){var i=3e5;r=r+"&t="+Math.floor(Date.now()/i)*i}return e.requestRouter.endpointFor("assets",r)};v.__PosthogExtensions__=v.__PosthogExtensions__||{},v.__PosthogExtensions__.loadExternalDependency=(e,t,r)=>{if("remote-config"!==t){var i=e.config.strict_script_versioning;if(i){var n=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js"),s=Br[n];
vendor: 11,444 bytes, line 2
2if("fallback"===i&&s){if(Lr(s))return void Dr(e,s,r);delete Br[n]}Dr(e,n,"fallback"===i?(i,s)=>{if(i)if("string"==typeof i)r(i);else{var o,a=zr(e,t);Br[n]=a;var l=Lr(n);null==l||null==(o=l.parentNode)||o.removeChild(l),Dr(e,a,r)}else r(void 0,s)}:r)}else Dr(e,zr(e,t),r)}else{var o=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");Dr(e,o,r)}},v.__PosthogExtensions__.loadSiteApp=(e,t,r)=>{var i=e.requestRouter.endpointFor("api",t);Dr(e,i,r)},g.DEBUG=!1,g.LIB_VERSION="1.425.1",g.LIB_NAME="web";var Ur="$people_distinct_id",qr="distinct_id",Hr="$device_id",Vr="$device_model",Wr="__alias",Gr="__timers",Kr="$autocapture_disabled_server_side",Jr="$heatmaps_enabled_server_side",Yr="$exception_capture_enabled_server_side",Zr="$error_tracking_suppression_rules",Qr="$error_tracking_capture_extension_exceptions",Xr="$web_vitals_enabled_server_side",ei="$dead_clicks_enabled_server_side",ti="$product_tours_enabled_server_side",ri="$logs_capture_enabled_server_side",ii="$web_vitals_allowed_metrics",ni="$session_recording_remote_config",si="$replay_sample_rate",oi="$replay_override_sampling",ai="$replay_override_linked_flag",li="$replay_override_url_trigger",ui="$replay_override_event_trigger",ci="$sesid",di="$session_is_sampled",hi="$enabled_feature_flags",pi="$active_feature_flags",fi="$early_access_features",vi="$feature_flag_details",gi="$feature_flag_payloads",mi="$feature_flag_request_id",_i="$minimal_flag_called_events",bi="$override_feature_flags",yi="$override_feature_flag_payloads",wi="$stored_person_properties",xi="$stored_group_properties",ki="$groups",Ei="$surveys",Si="$surveys_loaded_at",Pi="$surveys_activated",Oi="$surveys_activated_session",Ci="$surveys_activated_timestamps",Ai="ph_product_tours",Ri="$flag_call_reported",Ti="$flag_call_reported_session_id",Fi="$feature_flag_errors",Ii="$feature_flag_evaluated_at",Mi="$user_state",ji="$client_session_props",$i="$capture_rate_limit",Ni="$initial_campaign_params",Li="$initial_referrer_info",Di="$initial_person_info",Bi="$epp",zi="$posthog_cookieless",Ui="$cookieless_mode",qi="$sdk_debug_extensions_init_method",Hi="$sdk_debug_extensions_init_time_ms",Vi="$sdk_debug_recording_script_not_loaded",Wi="PostHog loadExternalDependency extension not found.",Gi="on_reject",Ki="always",Ji="anonymous",Yi="identified",Zi="identified_only",Qi="visibilitychange",Xi="beforeunload",en="$pageview",tn="$pageleave",rn="$identify",nn="$groupidentify";function sn(e,t){z(e)&&e.forEach(t)}function on(e,t){if(!J(e))if(z(e))e.forEach(t);else if((e=>e instanceof FormData)(e))e.forEach((e,r)=>t(e,r));else for(var r in e)D.call(e,r)&&t(e[r],r)}var an=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;t>i;i++)r[i-1]=arguments[i];for(var n of r)for(var s in n)void 0!==n[s]&&(e[s]=n[s]);return e};function ln(e){for(var t=Object.keys(e),r=t.length,i=new Array(r);r--;)i[r]=[t[r],e[t[r]]];return i}var un=function(e){try{return e()}catch(e){return}},cn=function(e){return function(){try{for(var t=arguments.length,r=new Array(t),i=0;t>i;i++)r[i]=arguments[i];return e.apply(this,r)}catch(e){jr.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),jr.critical(e)}}},dn=function(e){var t={};return on(e,function(e,r){(W(e)&&e.length>0||Y(e))&&(t[r]=e)}),t},hn=["herokuapp.com","vercel.app","netlify.app"];function pn(e){var t=null==e?void 0:e.hostname;if(!W(t))return!1;var r=t.split(".").slice(-2).join(".");for(var i of hn)if(r===i)return!1;return!0}function fn(e,t,r,i){var n=null!=i?i:{},s=n.capture,o=n.passive;null==e||e.addEventListener(t,r,{capture:void 0!==s&&s,passive:void 0===o||o})}function vn(e){return"ph_toolbar_internal"===e.name}var gn=e=>{if(o){try{for(var t=e+"=",r=o.cookie.split(";").filter(e=>e.length),i=0;r.length>i;i++){for(var n=r[i];" "==n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return decodeURIComponent(n.substring(t.length,n.length))}}catch(e){}return null}};Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Y(e)&&isFinite(e)&&Math.floor(e)===e});class mn{constructor(e){if(this.bytes=e,16!==e.length)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,t,r,i){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(i)||0>e||0>t||0>r||0>i||e>0xffffffffffff||t>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var n=new Uint8Array(16);return n[0]=e/Math.pow(2,40),n[1]=e/Math.pow(2,32),n[2]=e/Math.pow(2,24),n[3]=e/Math.pow(2,16),n[4]=e/256,n[5]=e,n[6]=112|t>>>8,n[7]=t,n[8]=128|r>>>24,n[9]=r>>>16,n[10]=r>>>8,n[11]=r,n[12]=i>>>24,n[13]=i>>>16,n[14]=i>>>8,n[15]=i,new mn(n)}toString(){for(var e="",t=0;this.bytes.length>t;t++)e=e+(this.bytes[t]>>>4).toString(16)+(15&this.bytes[t]).toString(16),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new mn(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;16>t;t++){var r=this.bytes[t]-e.bytes[t];if(0!==r)return Math.sign(r)}return 0}}class _n{generate(){var e=this.generateOrAbort();if(!V(e))return e;this.Kr=0;var t=this.generateOrAbort();if(V(t))throw new Error("Could not generate UUID after timestamp reset");return t}generateOrAbort(){var e=Date.now();if(e>this.Kr)this.Kr=e,this.Xr();else{if(this.Kr>=e+1e4)return;this.ei++,this.ei>4398046511103&&(this.Kr++,this.Xr())}return mn.fromFieldsV7(this.Kr,Math.trunc(this.ei/Math.pow(2,30)),this.ei&Math.pow(2,30)-1,this.ti.nextUint32())}Xr(){this.ei=1024*this.ti.nextUint32()+(1023&this.ti.nextUint32())}constructor(){this.Kr=0,this.ei=0,this.ti=new wn}}var bn,yn=e=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};i&&!V(i.crypto)&&crypto.getRandomValues&&(yn=e=>crypto.getRandomValues(e));class wn{nextUint32(){return this.Pt.length>this.ri||(yn(this.Pt),this.ri=0),this.Pt[this.ri++]}constructor(){this.Pt=new Uint32Array(8),this.ri=1/0}}var xn=()=>kn().toString(),kn=()=>(bn||(bn=new _n)).generate(),En="",Sn=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Pn=null,On={ii(){if(!K(Pn))return Pn;if(Pn=!1,o)try{var e="__ph_cookie_support_"+xn();On.ni(e,"xyz"),Pn='"xyz"'===gn(e),On.oi(e)}catch(e){Pn=!1}return Pn},si(e){jr.error("cookieStore error: "+e)},ai:gn,ui(e){var t;try{t=JSON.parse(On.ai(e))||{}}catch(e){}return t},ni(e,t,r,i,n){if(!o)return!1;try{var s="",a="",l=function(e,t){if(t){var r=function(e,t){if(void 0===t&&(t=o),En)return En;if(!t)return"";if(["localhost","127.0.0.1"].includes(e))return"";for(var r=e.split("."),i=Math.min(r.length,8),n="dmn_chk_"+xn();!En&&i--;){var s=r.slice(i).join("."),a=n+"=1;domain=."+s+";path=/";t.cookie=a+";max-age=3",t.cookie.includes(n)&&(t.cookie=a+";max-age=0",En=s)}return En}(e);if(!r){var i=(e=>{var t=e.match(Sn);return t?t[0]:""})(e);i!==r&&jr.info("Warning: cookie subdomain discovery mismatch",i,r),r=i}return r?"; domain=."+r:""}return""}(o.location.hostname,i);if(r){var u=new Date;u.setTime(u.getTime()+864e5*r),s="; expires="+u.toUTCString()}n&&(a="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+l+a;return c.length>3686.4&&jr.warn("cookieStore warning: large cookie, len="+c.length),o.cookie=c,!0}catch(e){return!1}},oi(e,t){if(null!=o&&o.cookie)try{On.ni(e,"",-1,t)}catch(e){return}}},Cn=null,An={ii(){if(!K(Cn))return Cn;var e=!0;if(V(i))e=!1;else try{var t="__mplssupport__";An.ni(t,"xyz"),'"xyz"'!==An.ai(t)&&(e=!1),An.oi(t)}catch(t){e=!1}return e||jr.error("localStorage unsupported; falling back to cookie store"),Cn=e,e},si(e){jr.error("localStorage error: "+e)},ai(e){try{return null==i?void 0:i.localStorage.getItem(e)}catch(e){An.si(e)}return null},ui(e){try{return JSON.parse(An.ai(e))||{}}catch(e){}return null},ni(e,t){try{return null==i||i.localStorage.setItem(e,JSON.stringify(t)),!0}catch(e){An.si(e)}return!1},oi(e){try{null==i||i.localStorage.removeItem(e)}catch(e){An.si(e)}}},Rn=[wi,pi,hi,vi,gi,mi,Ii,Fi,Ri],Tn=[Hr,qr,ci,di,Bi,Di,Mi],Fn=e=>e+"_cpm",In=["__proto__","constructor","prototype"],Mn=e=>{if(!q(e))return{};var t={};return Object.keys(e).forEach(r=>{-1===In.indexOf(r)&&(t[r]=e[r])}),t},jn=function(e,t){void 0===t&&(t=[]);var r={};return[...Tn,...t].forEach(t=>{var i=e[t];V(i)||K(i)||""===i||(r[t]=i)}),r},$n=e=>{for(var t=5381,r=2166136261,i=0;e.length>i;i++){var n=e.charCodeAt(i);t=33*t^n,r=Math.imul(r^n,16777619)}return e.length.toString(36)+"."+(t>>>0).toString(36)+"."+(r>>>0).toString(36)},Nn=(e,t)=>({p:t,f:$n(JSON.stringify(e))}),Ln=(e,t)=>{if(!t)return{properties:[],isValid:!1};try{var r=On.ui(Fn(e)),i=(null==r?void 0:r.f)===$n(t)&&z(r.p);return{properties:i?r.p:[],isValid:i}}catch(e){return{properties:[],isValid:!1}}},Dn=(e,t)=>t+"|"+(On.ai(Fn(e))||""),Bn={},zn={ii:()=>!0,si(e){jr.error("memoryStorage error: "+e)},ai:e=>e in Bn?Bn[e]:null,ui:e=>e in Bn?Bn[e]:null,ni:(e,t)=>(Bn[e]=t,!0),oi(e){delete Bn[e]}},Un=null,qn={ii(){if(!K(Un))return Un;if(Un=!0,V(i))Un=!1;else try{var e="__support__";qn.ni(e,"xyz"),'"xyz"'!==qn.ai(e)&&(Un=!1),qn.oi(e)}catch(e){Un=!1}return Un},si(e){jr.error("sessionStorage error: ",e)},ai(e){try{return null==i?void 0:i.sessionStorage.getItem(e)}catch(e){qn.si(e)}return null},ui(e){try{return JSON.parse(qn.ai(e))||null}catch(e){}return null},ni(e,t){try{return null==i||i.sessionStorage.setItem(e,JSON.stringify(t)),!0}catch(e){qn.si(e)}return!1},oi(e){try{null==i||i.sessionStorage.removeItem(e)}catch(e){qn.si(e)}}};class Hn{constructor(e){this._instance=e}get mn(){return this._instance.config}get consent(){return this.Vs()?0:this.Gs}isOptedOut(){return this.mn.cookieless_mode===Ki||this.isRejected()||-1===this.consent&&this.mn.cookieless_mode===Gi}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return 0===this.consent}isRejected(){return 0===this.consent||-1===this.consent&&this.mn.opt_out_capturing_by_default}optInOut(e){this.Zs.ni(this.Qs,e?1:0,this.mn.cookie_expiration,this.mn.cross_subdomain_cookie,this.mn.secure_cookie)}reset(){this.Zs.oi(this.Qs,this.mn.cross_subdomain_cookie)}get Qs(){var e=this._instance.config,t=e.token,r=e.opt_out_capturing_cookie_prefix;return e.consent_persistence_name||(r?r+t:"__ph_opt_in_out_"+t)}get Gs(){var e=this.Zs.ai(this.Qs);return ae(e)?1:M(le,e)?0:-1}get Zs(){var e=this.mn.opt_out_capturing_persistence_type,t="localStorage"===e?An:On,r=t.ii()?t:zn;if(!this.Js||this.Js!==r){this.Js=r;var i="localStorage"===e?On:An;i.ai(this.Qs)&&(this.Js.ai(this.Qs)||this.optInOut(ae(i.ai(this.Qs))),i.oi(this.Qs,this.mn.cross_subdomain_cookie))}return this.Js}Vs(){return!!this.mn.respect_dnt&&[null==s?void 0:s.doNotTrack,null==s?void 0:s.msDoNotTrack,v.doNotTrack,null==s?void 0:s.globalPrivacyControl].some(e=>ae(e))}}function Vn(e,t){var r,i=null==e||null==(r=e.config)?void 0:r.get_current_url;if(!U(i))return t;try{var n=i(t);return W(n)&&n?n:t}catch(e){return jr.error("Error in get_current_url, falling back to window.location.href",e),t}}var Wn="__POSTHOG_TOOLBAR__";function Gn(e){return e instanceof Element&&(e.id===Wn||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function Kn(e){return!!e&&1===e.nodeType}function Jn(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}
vendor: 4,108 bytes, line 2
2function Yn(e){return!!e&&3===e.nodeType}function Zn(e){return!!e&&11===e.nodeType&&Kn(e.host)}function Qn(e){return e?j(e).split(/\s+/):[]}function Xn(e,t){var r=function(e){var t,r=null==i||null==(t=i.location)?void 0:t.href;return V(r)?void 0:Vn(e,r)}(t);return!!(r&&e&&e.some(e=>r.match(e)))}function es(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return Qn(t)}function ts(e){return J(e)?null:j(e).split(/(\s+)/).filter(e=>Ss(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function rs(e){var t="";return gs(e)&&!ms(e)&&e.childNodes&&e.childNodes.length&&on(e.childNodes,function(e){var r;Yn(e)&&e.textContent&&(t+=null!==(r=ts(e.textContent))&&void 0!==r?r:"")}),j(t)}function is(e){var t;return V(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null}var ns=["a","button","form","input","select","textarea","label"];function ss(e,t){if(V(t))return!0;var r,i=function(e){if(t.some(t=>function(e,t){var r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;try{return!!r&&r.call(e,t)}catch(e){return!1}}(e,t)))return{v:!0}};for(var n of e)if(r=i(n))return r.v;return!1}function os(e){var t=e.parentNode;return!(!t||!Kn(t))&&t}var as=[".ph-no-autocapture","[data-ph-no-autocapture]"],ls=["next","previous","prev",">","<"],us=[...ls,"+","-","â","â"],cs=(e,t)=>/[a-z0-9]/i.test(t)?e.includes(t):e===t,ds=[".ph-no-rageclick",".ph-no-capture"],hs=["","text","search","email","password","url","tel","number"];function ps(e,t){if(!i||fs(e))return!1;var r,n,s,o,a;if(Q(t)?(r=!!t&&ds,n=void 0,s=!1):(r=null!==(o=null==t?void 0:t.css_selector_ignorelist)&&void 0!==o?o:ds,n=null==t?void 0:t.content_ignorelist,s=null!==(a=null==t?void 0:t.ignore_text_selection)&&void 0!==a&&a),!1===r)return!1;if(s&&function(e){return!(!e||!Kn(e))&&(!!Jn(e,"textarea")||(Jn(e,"input")?M(hs,(e.getAttribute("type")||"").toLowerCase()):function(e){if(e.isContentEditable)return!0;var t=null==e.getAttribute?void 0:e.getAttribute("contenteditable");return"true"===t||""===t}(e)))}(e))return!1;var l=vs(e,!1).targetElementList;return!function(e,t){if(!1===e||V(e))return!1;var r;if(!0===e)r=ls;else{if(!z(e))return!1;if(e.length>10)return jr.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;r=e.map(e=>e.toLowerCase())}return t.some(e=>{var t=e.safeText,i=e.ariaLabel;return r.some(e=>cs(t,e)||cs(i,e))})}(n,l.map(e=>{var t;return{safeText:rs(e).toLowerCase(),ariaLabel:(null==(t=e.getAttribute("aria-label"))?void 0:t.toLowerCase().trim())||""}}))&&!ss(l,r)}var fs=e=>!e||Jn(e,"html")||!Kn(e),vs=(e,t)=>{if(!i||fs(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,n=[e],s=e;s.parentNode&&!Jn(s,"body");)if(Zn(s.parentNode))n.push(s.parentNode.host),s=s.parentNode.host;else{var o=os(s);if(!o)break;if(t||ns.indexOf(o.tagName.toLowerCase())>-1)r=!0;else try{var a=i.getComputedStyle(o);a&&"pointer"===a.getPropertyValue("cursor")&&(r=!0)}catch(e){}n.push(o),s=o}return{parentIsUsefulElement:r,targetElementList:n}};function gs(e){for(var t=new Set,r=0,i=e;i.parentNode&&!Jn(i,"body");i=i.parentNode){if(r++>=1e3||t.has(i))return!1;t.add(i);var n=es(i);if(M(n,"ph-sensitive")||M(n,"ph-no-capture"))return!1}if(M(es(e),"ph-include"))return!0;var s=e.type||"";if(W(s))switch(s.toLowerCase()){case"hidden":case"password":return!1}var o=e.name||e.id||"";return!W(o)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(o.replace(/[^a-zA-Z0-9]/g,""))}function ms(e){return!!(Jn(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Jn(e,"select")||Jn(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var _s=new RegExp("^(?:(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}
2)|((?:2131|1800|35[0-9]{3})[0-9]{11}))$"),bs=/(^|[^0-9A-Za-z_])([0-9][0-9 -]*[0-9])(?=$|[^0-9A-Za-z_])/g,ys=[16,15,14,13],ws=new RegExp("^(\\d{3}-?\\d{2}-?\\d{4})$"),xs=new RegExp("(^|[^0-9])((?!000|666)[0-9]{3}-?(?!00)[0-9]{2}-?(?!0000)[0-9]{4})(?=$|([^0-9]))","g"),ks=/[0-9A-Za-z_]/;function Es(e){for(var t=0,r=!1,i=e.length-1;i>=0;i--){var n=e.charCodeAt(i)-48;r&&(n*=2)>9&&(n-=9),t+=n,r=!r}return t%10==0}function Ss(e,t){if(void 0===t&&(t=!0),J(e))return!1;if(W(e)){e=j(e);var r=t?_s.test((e||"").replace(/[- ]/g,"")):function(e){var t;for(bs.lastIndex=0;t=bs.exec(e);){var r=t[2];if(r)for(var i=r.replace(/[- ]/g,""),n=0;i.length>n;n++)for(var s of ys){var o=n+s;if(i.length>=o){var a=i.slice(n,o);if(_s.test(a)&&Es(a))return!0}}}return!1}(e);if(r)return!1;var i=t?ws.test(e):function(e){var t;for(xs.lastIndex=0;t=xs.exec(e);){var r=t[1],i=t[3];if(!(r&&i&&ks.test(r)&&ks.test(i)))return!0}return!1}(e);if(i)return!1}return!0}function Ps(e){var t=rs(e);return Ss(t=(t+" "+Os(e)).trim())?t:""}function Os(e){var t="";return e&&e.childNodes&&e.childNodes.length&&on(e.childNodes,function(e){var r;if(e&&"span"===(null==(r=e.tagName)?void 0:r.toLowerCase()))try{var i=rs(e);t=(t+" "+i).trim(),e.childNodes&&e.childNodes.length&&(t=(t+" "+Os(e)).trim())}catch(e){jr.error("[AutoCapture]",e)}}),t}function Cs(e){return e.replace(/"|\\"/g,'\\"')}function As(e){var t=e.attr__class;if(t)return z(t)?t:Qn(t)}var Rs=$r("[Dead Clicks]"),Ts=()=>!0,Fs=e=>{var t,r=!(null==(t=e.instance.persistence)||!t.get_property(ei)),i=e.instance.config.capture_dead_clicks;return Q(i)?i:!!q(i)||r};class Is{get lazyLoadedDeadClicksAutocapture(){return this.Ks}constructor(e,t,r){this.instance=e,this.isEnabled=t,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(e){if(e.ok){var t=e.config;"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[ei]:t.captureDeadClicks}),this.startIfEnabledOrStop())}}startIfEnabledOrStop(){this.isEnabled(this)?this.Ys(()=>{this.Xs()}):this.stop()}Ys(e){var t,r;null!=(t=v.__PosthogExtensions__)&&t.initDeadClicksAutocapture?e():null==(r=v.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?Rs.error("failed to load script",t):e()})}Xs(){var e;if(o){if(!this.Ks&&null!=(e=v.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=q(this.instance.config.capture_dead_clicks)?b({},this.instance.config.capture_dead_clicks):{};t.__onCapture=this.onCapture,this.onCapture&&(t.capture_dead_swipes=!1),this.Ks=v.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.Ks.start(o),Rs.info("starting...")}}else Rs.error("`document` not found. Cannot start.")}stop(){this.Ks&&(this.Ks.stop(),this.Ks=void 0,Rs.info("stopping..."))}}var Ms=$r("[SegmentIntegration]"),js="posthog-js";function $s(e,t){var r=void 0===t?{}:t,i=r.organization,n=r.projectId,s=r.prefix,o=r.severityAllowList,a=void 0===o?["error"]:o,l=r.sendExceptionsToPostHog,u=void 0===l||l;return t=>{var r,o,l,c,d;if("*"!==a&&!a.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var h=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());t.tags["PostHog Person URL"]=h,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var p,f=(null==(r=t.exception)?void 0:r.values)||[],v=f.map(e=>b({},e,{stacktrace:e.stacktrace?b({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>b({},e,{platform:"web:javascript"}))}):void 0})),g={$exception_message:(null==(o=f[0])?void 0:o.value)||t.message,$exception_type:null==(l=f[0])?void 0:l.type,$exception_level:t.level,$exception_list:v,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(c=f[0])?void 0:c.value)||t.message,$sentry_exception_type:null==(d=f[0])?void 0:d.type,$sentry_tags:t.tags};return i&&n&&(g.$sentry_url=(s||"https://sentry.io/organizations/")+i+"/issues/?project="+n+"&query="+t.event_id),u&&(null==(p=e.exceptions)||p.sendExceptionEvent(g)),t}}class Ns{constructor(e,t,r,i,n,s){this.name=js,this.setupOnce=function(o){o($s(e,{organization:t,projectId:r,prefix:i,severityAllowList:n,sendExceptionsToPostHog:null==s||s}))}}}class Ls{constructor(e){this.ta=(e,t,r)=>{r&&(r.noSessionId||r.activityTimeout||r.sessionPastMaximumLength||r.crossTabAdoption)&&(jr.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:e,changeReason:r}),this.ea=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.ia()}ia(){var e;this.ra=null==(e=this._instance.sessionManager)?void 0:e.onSessionId(this.ta)}destroy(){var e;null==(e=this.ra)||e.call(this),this.ra=void 0}doPageView(e,t){var r,n=this.na(e,t);return this.ea={pathname:null!==(r=null==i?void 0:i.location.pathname)&&void 0!==r?r:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){var t;return this.na(e,null==(t=this.ea)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.ea)?void 0:e.pageViewId}}na(e,t){var r=this.ea;if(!r)return{$pageview_id:t};var i={$pageview_id:t,$prev_pageview_id:r.pageViewId},n=this._instance.scrollManager.getContext();if(n&&!this._instance.config.disable_scroll_properties){var s=n.maxScrollHeight,o=n.lastScrollY,a=n.maxScrollY,l=n.maxContentHeight,u=n.lastContentY,c=n.maxContentY;if(!(V(s)||V(o)||V(a)||V(l)||V(u)||V(c))){s=Math.ceil(s),o=Math.ceil(o),a=Math.ceil(a),l=Math.ceil(l),u=Math.ceil(u),c=Math.ceil(c);var d=s>1?ue(o/s,0,1,jr):1,h=s>1?ue(a/s,0,1,jr):1,p=l>1?ue(u/l,0,1,jr):1,f=l>1?ue(c/l,0,1,jr):1;i=an(i,{$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:a,$prev_pageview_max_scroll_percentage:h,$prev_pageview_last_content:u,$prev_pageview_last_content_percentage:p,$prev_pageview_max_content:c,$prev_pageview_max_content_percentage:f})}}return r.pathname&&(i.$prev_pageview_pathname=r.pathname),r.timestamp&&(i.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),i}}var Ds=["flags","surveys"],Bs={[Ur]:{exposure:"hidden"},[Wr]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[Gr]:{exposure:"hidden"},[Kr]:{exposure:"event"},[Jr]:{exposure:"hidden"},[ri]:{exposure:"hidden"},[Yr]:{exposure:"event"},[Zr]:{exposure:"hidden"},[Qr]:{exposure:"event"},[Xr]:{exposure:"event"}
2,[ei]:{exposure:"event"},[ti]:{exposure:"hidden"},[ii]:{exposure:"event"},[ni]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[ci]:{exposure:"hidden"},[di]:{exposure:"event"},[si]:{exposure:"event",shouldSkipFromEventProperties:e=>K(e)},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},$sess_rec_flush_size:{exposure:"hidden"},[hi]:{exposure:"hidden",storageGroup:"flags"},[pi]:{exposure:"hidden",storageGroup:"flags"},[fi]:{exposure:"hidden"},[vi]:{exposure:"hidden",storageGroup:"flags"},[gi]:{exposure:"hidden",storageGroup:"flags"},[mi]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[_i]:{exposure:"hidden",storageGroup:"flags"},[bi]:{exposure:"hidden"},[yi]:{exposure:"hidden"},[wi]:{exposure:"hidden"},[xi]:{exposure:"hidden"},[Ei]:{exposure:"hidden",storageGroup:"surveys"},[Si]:{exposure:"hidden",storageGroup:"surveys",volatile:!0},[Pi]:{exposure:"event"},[Oi]:{exposure:"hidden"},[Ci]:{exposure:"hidden"},[Ai]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$product_tours_activated_session:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[Ri]:{exposure:"hidden"},[Ti]:{exposure:"hidden"},[ki]:{exposure:"event"},[Fi]:{exposure:"hidden"},[Ii]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[Mi]:{exposure:"hidden"},[ji]:{exposure:"hidden"},[$i]:{exposure:"hidden"},[Ni]:{exposure:"hidden"},[Li]:{exposure:"hidden"},[Di]:{exposure:"hidden"},[Bi]:{exposure:"hidden"},[oi]:{exposure:"event"},[ai]:{exposure:"event"},[li]:{exposure:"event"},[ui]:{exposure:"event"},[qi]:{exposure:"event"},[Hi]:{exposure:"event"},[Vi]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"}
vendor: 8,905 bytes, line 2
2,$sdk_debug_replay_pending_trigger_conditions:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},zs=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Us=e=>{var t=Bs[e];if(t)return t;for(var r of zs){var i=r[1];if(0===e.indexOf(r[0]))return i}},qs=(e,t)=>{try{return JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t)}catch(t){return N(e)}},Hs=e=>{var t=null==o?void 0:o.createElement("a");return V(t)?null:(t.href=e,t)},Vs=function(e,t){for(var r,i=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;i.length>n;n++){var s=i[n].split("=");if(s[0]===t){r=s;break}}if(!z(r)||2>r.length)return"";var o=r[1];try{o=decodeURIComponent(o)}catch(e){jr.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},Ws=function(e,t,r){if(!e||!t||!t.length)return e;for(var i=e.split("#"),n=i[1],s=(i[0]||"").split("?"),o=s[1],a=s[0],l=(o||"").split("&"),u=[],c=0;l.length>c;c++){var d=l[c].split("=");z(d)&&(t.includes(d[0])?u.push(d[0]+"="+r):u.push(l[c]))}var h=a;return null!=o&&(h+="?"+u.join("&")),null!=n&&(h+="#"+n),h},Gs=function(e,t){var r=e.match(new RegExp(t+"=([^&]*)"));return r?r[1]:null},Ks=(e,t)=>e>=t&&p(),Js=(e,t,r,i)=>{if(0===e){if(p()){var n=t+1;return n===r&&i(),n}return t}return 0},Ys="https?://(.*)",Zs=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Qs=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Zs],Xs="<masked>",eo=["li_fat_id"];function to(e,t,r){if(!o)return{};var i,n=t?[...Zs,...r||[]]:[],s=ro(Ws(o.URL,n,Xs),e),a=(i={},on(eo,function(e){var t=gn(e);i[e]=t||null}),i);return an(a,s)}function ro(e,t){var r=Qs.concat(t||[]),i={};return on(r,function(t){var r=Vs(e,t);i[t]=r||null}),i}function io(e){var t=function(e){return e?0===e.search(Ys+"google.([^/?]*)")?"google":0===e.search(Ys+"bing.com")?"bing":0===e.search(Ys+"yahoo.com")?"yahoo":0===e.search(Ys+"duckduckgo.com")?"duckduckgo":null:null}(e),r="yahoo"!=t?"q":"p",i={};if(!K(t)){i.$search_engine=t;var n=o?Vs(o.referrer,r):"";n.length&&(i.ph_keyword=n)}return i}function no(){return navigator.language||navigator.userLanguage}var so="$direct";function oo(){return(null==o?void 0:o.referrer)||so}function ao(e,t,r){void 0===r&&(r=!1);var i=e?[...Zs,...t||[]]:[],n=r?kt(null==a?void 0:a.href):null==a?void 0:a.href,s=null==n?void 0:n.substring(0,1e3);return{r:oo().substring(0,1e3),u:s?Ws(s,i,Xs):void 0}}function lo(e,t){var r;void 0===t&&(t=!1);var i=e.r,n=e.u,s=t?kt(n):n,o={$referrer:i,$referring_domain:null==i?void 0:i==so?so:null==(r=Hs(i))?void 0:r.host};if(s){o.$current_url=s;var a=Hs(s);o.$host=null==a?void 0:a.host,o.$pathname=null==a?void 0:a.pathname;var l=ro(s);an(o,l)}if(i){var u=io(i);an(o,u)}return o}function uo(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}function co(){try{return(new Date).getTimezoneOffset()}catch(e){return}}var ho={flags:Ii,surveys:Si},po=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],fo=e=>e+"_cookie_identity_change_pending",vo="main",go=[hi,pi,vi,gi,mi,Ii,_i,wi],mo=e=>-1!==go.indexOf(e),_o=(e,t)=>{try{return JSON.stringify(e)===JSON.stringify(t)}catch(r){return e===t}},bo=e=>{if(!e)return{};var t=JSON.parse(e);return q(t)?t:{}},yo=(e,t)=>{on(e,(r,i)=>{var n=Us(i);n&&"event"!==n.exposure||{}.hasOwnProperty.call(t,i)||delete e[i]})};class wo{constructor(e,t,r){if(void 0===r&&(r=!0),this.sa={},this.aa=!1,this.oa=!1,this.la=!1,this.ua=!1,this.ha=new Map,this.da=!1,this.va=!1,this.ca=!1,this.fa=new Set,this.mn=e,this.pa=r,this.props={},this.ga=void 0,this.ma=(e=>{var t="";return e.token&&(t=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),e.persistence_name?"ph_"+e.persistence_name:"ph_"+t+"_posthog"})(e),this.Zs=this.ya(e),this.oa=this.ba(e),this.load(),this._a(),e.debug&&jr.info("Persistence loaded",e.persistence,b({},this.props)),this.update_config(e,e,t),this.save(),i){var n=()=>this.flush();fn(i,"beforeunload",n,{capture:!1}),fn(i,"pagehide",n,{capture:!1}),this.wa=e=>{if(this.aa&&(!e.storageArea||e.storageArea===(null==i?void 0:i.localStorage))&&e.key)if(e.key!==this.ma){if(this.oa){var t=Ds.find(t=>e.key===this.ka(t));t&&this.Sa(e.key,t)}}else this.Sa(e.key,vo)},fn(i,"storage",this.wa)}}markCrossTabFeatureFlagChanges(e){Object.entries(e).forEach(e=>{var t=e[0],r=e[1],i=this.ha.get(t);if(mo(t)&&!0!==i)if(!0!==r){var n=new Set(i||[]);r.forEach(e=>n.add(e)),n.size&&this.xa(t,n)}else this.xa(t,!0)})}onCrossTabFeatureFlagChange(e){return this.fa.add(e),()=>this.fa.delete(e)}destroy(){this.wa&&i&&(i.removeEventListener("storage",this.wa),this.wa=void 0),this.fa.clear()}Sa(e,t,r){if(void 0===r&&(r=!0),this.Ca)return!1;var i,n;try{if(n=An.ai(e),K(n)){var s=this.Ta(t);return s.storageValue=null,t!==vo&&(s.persisted=!1),!1}i=bo(n)}catch(e){return!1}var o=t===vo?i:An.ui(this.ma);if(o&&this.Ma(o))return!1;var a=this.Ea(i,t,r);return t===vo&&this.oa&&!_o(this.Ia().main,i)||this.Ra(i,t,!0,n),a}Ma(e){var t=this.props[qr],r=e[qr];return!V(t)&&!V(r)&&t!==r}Ra(e,t,r,i){var n=this.Ta(t);n.storageValue=i,t!==vo&&(n.persisted=r);try{n.fingerprint=this.Pa(e,t)}catch(e){n.fingerprint=void 0}}Ea(e,t,r){var i=!1;return go.forEach(r=>{var n,s=null==(n=Us(r))?void 0:n.storageGroup;if(!(t===vo&&this.oa&&s||t!==vo&&s!==t)){var o=r in e,a=this.Aa(r,o?e[r]:void 0),l=this.ha.has(r)?r in this.props:o;l===r in this.props&&_o(a,this.props[r])||(l?this.Fa(r,a,!1):this.Oa(r,!1),i=!0)}}),i&&r&&this.fa.forEach(e=>e()),i}La(){if(!this.aa)return!1;try{this.ca=!1;var e,t=An.ai(this.ma),r=this.Ta(vo),i=!1,n=!1;if(t!==r.storageValue)if(K(t))r.storageValue=null;else{if(e=bo(t),this.ca=!this.va&&this.Ma(e),this.ca)return!1;n=this.Ea(e,vo,!1),!this.oa||_o(this.Ia().main,e)?this.Ra(e,vo,!0,t):r.storageValue=t,i=!0}return this.oa&&Ds.forEach(t=>{var r=An.ai(this.ka(t)),s=this.Ta(t),o=e||{},a=i&&go.some(e=>{var r;return(null==(r=Us(e))?void 0:r.storageGroup)===t&&e in o});if(r!==s.storageValue||a){if(K(r))return s.storageValue=null,s.persisted=!1,void(a&&(n=this.Ea(o,t,!1)||n));var l=bo(r);n=this.Ea(l,t,!1)||n,this.Ra(l,t,!0,r)}}),n}catch(e){return!1}}xa(e,t){this.ha.set(e,t);var r=Us(e);null!=r&&r.volatile||(this.Ta((this.oa?null==r?void 0:r.storageGroup:void 0)||vo).fingerprint=void 0,this.Da(e))}$a(){go.forEach(e=>this.ha.set(e,!0))}_a(){if(this.aa)try{var e=An.ai(this.ma),t=bo(e);this.Ta(vo).storageValue=e,go.forEach(e=>{var r,i=this.oa?null==(r=Us(e))?void 0:r.storageGroup:void 0,n=i?An.ai(this.ka(i)):null;if(i){var s=this.Ta(i);s.storageValue=n,s.persisted=!K(n)}var o=i&&!K(n)?bo(n):t;e in this.props?this.Na(e,o[e],this.props[e]):e in o&&this.xa(e,!0)})}catch(e){}}Aa(e,t){var r=this.ha.get(e);if(!r)return t;if(!0===r)return this.props[e];if(e===pi){var i=new Set(z(t)?t:[]),n=new Set(z(this.props[e])?this.props[e]:[]);return r.forEach(e=>n.has(e)?i.add(e):i.delete(e)),Array.from(i)}var s=q(t)?b({},t):{},o=q(this.props[e])?this.props[e]:{};return r.forEach(e=>{e in o?s[e]=o[e]:delete s[e]}),s}Na(e,t,r){if(mo(e)){var i=this.ha.get(e);if(!0!==i){var n=t;if(this.aa)try{var s,o=this.oa?null==(s=Us(e))?void 0:s.storageGroup:void 0,a=o?this.ka(o):this.ma;n=bo(An.ai(a))[e]}catch(e){}var l=new Set(i||[]);if(e===pi){if(!V(t)&&!z(t)||!V(n)&&!z(n)||!z(r))return void this.xa(e,!0);var u=new Set(t||[]),c=new Set(n||[]),d=new Set(r);new Set([...u,...d]).forEach(e=>{u.has(e)!==d.has(e)&&l.add(e)}),l.forEach(e=>{c.has(e)===d.has(e)&&l.delete(e)})}else{if(!q(r))return void(_o(n,r)?this.ha.delete(e):this.xa(e,!0));if(!V(t)&&!q(t)||V(t)&&H(r)&&V(n))return void this.xa(e,!0);var h=q(t)?t:{},p=q(n)?n:{};new Set([...Object.keys(h),...Object.keys(r)]).forEach(e=>{e in h==e in r&&_o(h[e],r[e])||l.add(e)}),l.forEach(e=>{e in p==e in r&&_o(p[e],r[e])&&l.delete(e)})}l.size?this.xa(e,l):this.ha.delete(e)}}}qa(){var e,t=null==(e=this.mn)?void 0:e.persistence_save_debounce_ms;return Y(t)&&t>0?t:0}ja(e){if(this.mn.cookieWinsOnConflict&&"localstorage+cookie"===this.mn.persistence.toLowerCase())if(e)try{var t=jn(e,this.mn.cookie_persisted_properties||[]),r=Nn(t,this.mn.cookie_persisted_properties||[]),i=JSON.stringify(t)+"|"+JSON.stringify(r),n=On.ai(this.ma)||void 0;n&&Dn(this.ma,n)===i&&(this.Ba=i,this.Ha=n)}catch(e){}else try{var s=On.ai(this.ma)||void 0;this.Ba=s?Dn(this.ma,s):void 0,this.Ha=s}catch(e){}}syncCookieProperties(){return this.za(this.mn)}za(e,t){if(void 0===t&&(t=!1),this.Ca&&!t||this.ua||!e.cookieWinsOnConflict||"localstorage+cookie"!==e.persistence.toLowerCase())return!1;var r;try{r=On.ai(this.ma)||void 0}catch(e){}
2if(!r||r===this.Ha)return!1;var i,n=Dn(this.ma,r);try{i=Mn(JSON.parse(r))}catch(e){return!1}if((On.ai(this.ma)||void 0)!==r)return!1;this.Ba=n,this.Ha=r;var s=Ln(this.ma,r),o=[...Tn,...s.properties],a={};if(Object.keys(i).forEach(e=>{var t=i[e];(V(t)||K(t)||""===t||e===Mi&&t!==Ji&&t!==Yi)&&(a[e]=!0,delete i[e])}),H(i))return!1;var l=qr in i||i[Mi]===Ji||i[Mi]===Yi,u=this.props,c=u[qr],d=u[Mi],h=an({},u);[...Tn,...e.cookie_persisted_properties||[]].forEach(e=>{if(-1!==o.indexOf(e)&&!(e in i)&&!a[e]&&(l||e!==qr&&e!==Mi)){var t=h[e];!s.isValid&&-1!==Tn.indexOf(e)&&(!1===t||0===t)||delete h[e]}}),this.props=an(h,i),go.forEach(e=>{var t=e in this.props;e in u===t&&_o(u[e],this.props[e])||(t?this.Na(e,u[e],this.props[e]):this.xa(e,!0))}),!l||Mi in i||Mi in this.props||this.Fa(Mi,Ji);var p=this.props[qr],f=this.props[Mi];return!l||p===c&&f===d||(this.va=!0,this.la=!0,qn.ni(fo(this.ma),!0),this.Oa(wi),this.Oa(pi),this.Oa(hi),this.Oa(vi),this.Oa(gi),this.Oa(mi),this.Oa(Ii),this.Oa(Fi),this.Oa(Ri),f===Ji&&(d===Yi||i[Mi]===Ji||!V(c)&&p!==c)&&(yo(this.props,i),this.Oa(xi)),f===Yi?this.props.$user_id=p:delete this.props.$user_id,this.Oa(Wr)),!0}
2consumeCookieIdentityChange(){var e=fo(this.ma),t=this.la||!!qn.ai(e);return this.la=!1,t&&qn.oi(e),t}Ua(e){return void 0===e&&(e=!1),!(this.ua||this.Ca&&!e||!this.mn.cookieWinsOnConflict||"localstorage+cookie"!==this.mn.persistence.toLowerCase()||(this.ua=!0,0))}Wa(){this.ua&&(V(this.Va)||(clearTimeout(this.Va),this.Va=void 0),delete this.sa[vo],this.Ga(!0))}Za(e){if(void 0===e&&(e=!0),this.ua)try{e?this.Wa():V(this.Va)||(clearTimeout(this.Va),this.Va=void 0)}finally{this.ua=!1}}isDisabled(){return!!this.Ca}ya(e){-1===po.indexOf(e.persistence.toLowerCase())&&(jr.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t,r=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1);var r=[...Tn,...e];return b({},An,{ui(e){try{var i,n={};try{i=On.ai(e)||void 0,n=i?Mn(JSON.parse(i)):{}}catch(e){}var s,o=JSON.parse(An.ai(e)||"{}");if(t){var a=Ln(e,i),l=[...Tn,...a.properties],u={};Object.keys(n).forEach(e=>{var t=n[e];K(t)||""===t||e===Mi&&t!==Ji&&t!==Yi||(u[e]=t)});var c=qr in u||u[Mi]===Ji||u[Mi]===Yi;if(Object.keys(u).length>0){var d,h=o[qr],p=null!==(d=o[Mi])&&void 0!==d?d:Ji;r.forEach(e=>{if(-1!==l.indexOf(e)&&!(e in n)&&(c||e!==qr&&e!==Mi)){var t=o[e];!a.isValid&&-1!==Tn.indexOf(e)&&(!1===t||0===t)||delete o[e]}}),!c||Mi in n||Mi in o||(o[Mi]=Ji),!c||(qr in u?u[qr]:o[qr])===h&&(Mi in u?u[Mi]:o[Mi])===p||(Rn.forEach(e=>delete o[e]),u[Mi]===Yi&&qr in u?o.$user_id=u[qr]:delete o.$user_id,u[Mi]!==Yi&&(delete o[ki],delete o[xi]),delete o.__al
vendor: 22,098 bytes, line 2
2ias)}s=an(o,u)}else s=an(n,o);return An.ni(e,s),s}catch(e){}return null},ni(r,i,n,s,o,a){var l=An.ni(r,i,void 0,void 0,a);try{var u=jn(i,e);if(Object.keys(u).length){if(t){var c=Fn(r),d=Nn(u,e);if(On.ni(c,d,n,s,o,a),On.ai(c)!==JSON.stringify(d)){On.oi(c,s);var h=jn(i);return On.ni(r,h,n,s,o,a),l}}On.ni(r,u,n,s,o,a)}}catch(r){An.si(r)}return l},oi(e,t){try{null==i||i.localStorage.removeItem(e),On.oi(e,t),On.oi(Fn(e),t)}catch(e){An.si(e)}}})}(e.cookie_persisted_properties||[],e.cookieWinsOnConflict),n=!1,s=e.persistence.toLowerCase();return"localstorage"===s&&An.ii()?(t=An,n=!0):"localstorage+cookie"===s&&r.ii()?(t=r,n=!0):"sessionstorage"===s&&qn.ii()?t=qn:"memory"===s?t=zn:"cookie"===s&&On.ii()?t=On:r.ii()?(t=r,n=!0):t=On.ii()?On:zn,this.aa=n,t}ka(e){return this.ma+"__"+e}ba(e){return this.aa&&!!e.split_storage}properties(){var e={};return on(this.props,(t,r)=>{var i=Us(r);if(!i||"event"===i.exposure){if(null!=i&&null!=i.shouldSkipFromEventProperties&&i.shouldSkipFromEventProperties(t))return;e[r]=t}}),e}load(e){if(void 0===e&&(e=!1),!this.Ca||e){var t=this.mn.cookieWinsOnConflict&&"localstorage+cookie"===this.mn.persistence.toLowerCase(),r=t?An.ui(this.ma):null,i={};if(t)try{on(i=Mn(On.ui(this.ma)),(e,t)=>{(V(e)||K(e)||""===e)&&delete i[t]})}catch(e){}var n=this.Zs.ui(this.ma);if(n&&(this.props=an({},n)),this.oa&&this.Qa(),t&&n){var s,o,a=null==r?void 0:r[qr],l=null!==(s=null==r?void 0:r[Mi])&&void 0!==s?s:Ji,u=n[qr],c=null!==(o=n[Mi])&&void 0!==o?o:Ji;if(u!==a||c!==l){this.la=!0,qn.ni(fo(this.ma),!0);var d=an({},this.props);Rn.forEach(e=>delete d[e]),c===Ji&&(l===Yi||i[Mi]===Ji||!V(a)&&u!==a)&&(yo(d,i),delete d[xi]),this.props=d;var h=new Set;Rn.forEach(e=>{var t,r=null==(t=Us(e))?void 0:t.storageGroup;r&&h.add(r)}),h.forEach(e=>{var t={};on(this.props,(r,i)=>{var n;(null==(n=Us(i))?void 0:n.storageGroup)===e&&(t[i]=r)}),H(t)?(An.oi(this.ka(e)),this.sa[e]={}):An.ni(this.ka(e),t)&&(this.sa[e]={persisted:!0,fingerprint:this.Pa(t,e)})})}}qn.ai(fo(this.ma))&&(this.la=!0)}}Qa(){for(var e of Ds){var t=An.ui(this.ka(e));if(t&&!H(t)){var r=this.Ta(e);r.persisted=!0,this.Ja(e)||(r.fingerprint=this.Pa(t,e)),this.Ka(e,t)||an(this.props,t)}}}Ja(e){return Object.keys(this.props).some(t=>{var r;return(null==(r=Us(t))?void 0:r.storageGroup)===e})}Ka(e,t){var r=ho[e];if(!r)return!1;var i=t[r],n=this.props[r];return Y(i)&&Y(n)&&n>i}refreshKey(e){var t;if(!this.Ca){var r=this.oa?null==(t=Us(e))?void 0:t.storageGroup:void 0,i=r?An.ui(this.ka(r)):this.Zs.ui(this.ma);if(i&&e in i)this.Fa(e,i[e]);else{if(r){var n=this.Zs.ui(this.ma);if(n&&e in n)return void this.Fa(e,n[e])}this.Oa(e)}}}save(){if(!this.Ca){var e=this.qa();e>0?V(this.Va)&&(this.Va=setTimeout(()=>{this.Va=void 0,this.Ga()},e)):this.Ga()}}flush(){V(this.Va)||(clearTimeout(this.Va),this.Va=void 0,this.Ga())}Ga(e){if(void 0===e&&(e=!1),!(this.Ca||this.ua&&!e)){e||this.syncCookieProperties();var t=!e&&!this.da;t||(this.ca=!1);var r=!!t&&this.La();if(this.ca)this.mn.debug&&jr.warn("skipping persistence write because storage belongs to a different distinct ID");else{if(this.oa)return this.Ya(),void(r&&this.fa.forEach(e=>e()));var i=this.Xa(this.Zs,this.ma,this.props,vo);"written"===i&&this.ja(this.props),"failed"!==i&&(this.ha.clear(),this.va=!1),r&&this.fa.forEach(e=>e())}}}Ya(){var e=this,t=this.Ia(),r=t.main,i=t.groups,n=this.Xa(this.Zs,this.ma,r,vo);"written"===n&&this.ja(r),"failed"!==n&&(this.va=!1,go.forEach(e=>{var t;null!=(t=Us(e))&&t.storageGroup||this.ha.delete(e)}));var s=function(t){var r,n=i[t];if(H(n)&&(null==(r=e.sa[t])||!r.persisted))return go.forEach(r=>{var i;(null==(i=Us(r))?void 0:i.storageGroup)===t&&e.ha.delete(r)}),1;var s=e.Xa(An,e.ka(t),n,t);"failed"!==s&&go.forEach(r=>{var i=Us(r);(null==i?void 0:i.storageGroup)!==t||"written"!==s&&i.volatile||e.ha.delete(r)})};for(var o of Ds)s(o)}Ia(){var e={},t={flags:{},surveys:{}};return on(this.props,(r,i)=>{var n,s=null==(n=Us(i))?void 0:n.storageGroup;s?t[s][i]=r:e[i]=r}),{main:e,groups:t}}Pa(e,t){if(t===vo)return JSON.stringify(e)+"|"+this.eo+"|"+this.io+"|"+this.ro;var r={};return on(e,(e,t)=>{var i;r[t]=null!=(i=Us(t))&&i.volatile?"__volatile__":e}),JSON.stringify(r)}Xa(e,t,r,i){var n,s=this.Ta(i);if(i!==vo&&!s.dirty&&!V(s.fingerprint))return"skipped";try{if((n=this.Pa(r,i))===s.fingerprint)return s.dirty=!1,"skipped"}catch(e){n=void 0}return e.ni(t,r,this.eo,this.io,this.ro,this.mn.debug)?(s.dirty=!1,i!==vo&&(s.persisted=!0),V(n)||(s.fingerprint=n),this.aa&&(s.storageValue=An.ai(t)),"written"):(this.mn.debug&&jr.warn('failed to persist storage entry "'+t+'"; will retry on next save'),"failed")}remove(e){var t=(void 0===e?{}:e).keepGroupEntries,r=void 0!==t&&t;if(this.$a(),V(this.Va)||(clearTimeout(this.Va),this.Va=void 0),this.Zs.oi(this.ma,!1),this.Zs.oi(this.ma,!0),!r&&this.pa)for(var i of Ds)An.oi(this.ka(i));r?delete this.sa[vo]:this.sa={},this.Ba=void 0,this.Ha=void 0}clear(){this.remove(),this.props={}}register_once(e,t,r){if(q(e)){this.syncCookieProperties(),V(t)&&(t="None"),this.eo=V(r)?this.no:r;var i=!1;if(on(e,(e,r)=>{this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.Fa(r,e),i=!0)}),i)return this.save(),!0}return!1}register(e,t){if(q(e)){this.syncCookieProperties(),this.eo=V(t)?this.no:t;var r=!1;if(on(e,(t,i)=>{e.hasOwnProperty(i)&&(this.props[i]!==t||q(t)||z(t))&&(this.Fa(i,t),r=!0)}),r)return this.save(),!0}return!1}unregister(e){this.syncCookieProperties();var t="string"==typeof e?[e]:e,r=!1;for(var i of t)i in this.props&&(this.Oa(i),r=!0);r&&this.save()}update_campaign_params(){var e=null==o?void 0:o.URL;if(e!==this.ga){var t=to(this.mn.custom_campaign_params,this.mn.mask_personal_data_properties,this.mn.custom_personal_data_properties);H(dn(t))||this.register(t),this.ga=e}}update_search_keyword(){var e;this.register((e=null==o?void 0:o.referrer)?io(e):{})}update_referrer_info(){var e;this.register_once({$referrer:oo(),$referring_domain:null!=o&&o.referrer&&(null==(e=Hs(o.referrer))?void 0:e.host)||so},void 0)}set_initial_person_info(){this.props[Ni]||this.props[Li]||this.register_once({[Di]:ao(this.mn.mask_personal_data_properties,this.mn.custom_personal_data_properties,this.mn.disable_capture_url_hashes)},void 0)}get_initial_props(){var e={};on([Li,Ni],t=>{var r=this.props[t];r&&on(r,function(t,r){e["$initial_"+$(r)]=t})});var t=this.props[Di];if(t){var r=function(e,t){void 0===t&&(t=!1);var r=lo(e,t),i={};return on(r,function(e,t){i["$initial_"+$(t)]=e}),i}(t,this.mn.disable_capture_url_hashes);an(e,r)}return e}safe_merge(e){return on(this.props,function(t,r){r in e||(e[r]=t)}),e}update_config(e,t,r){var i=e.persistence!==t.persistence,n=!((e,t)=>{if(e.length!==t.length)return!1;var r=[...e].sort(),i=[...t].sort();return r.every((e,t)=>e===i[t])})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[]),s=i||n,o=e.cookieWinsOnConflict!==t.cookieWinsOnConflict,a=e.disable_persistence||!!r,l=!!this.Ca&&!a;a||this.za(t,l),this.mn=e,!a&&(i||n||o)&&(this.Ba=void 0,this.Ha=void 0,this.za(b({},e,{cookie_persisted_properties:t.cookie_persisted_properties}),l));var u=s||o?this.ya(e):this.Zs,c=this.ba(e),d=s||c!==this.oa,h=!a&&(d||e.cross_subdomain_cookie!==this.io||e.secure_cookie!==this.ro)&&this.Ua(l);this.da=d;try{if(this.no=this.eo=e.cookie_expiration,this.set_disabled(a),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),d){var p=this.props;this.clear(),this.Zs=u,this.oa=c,this.props=p,this.save()}else o&&(this.Zs=u,a||(delete this.sa[vo],this.Ga()))}finally{this.da=!1,h&&this.Za()}}set_disabled(e){this.Ca=e,this.Ca?this.remove():this.save()}set_cross_subdomain(e){e!==this.io&&(this.io=e,this.remove({keepGroupEntries:!0}),this.save())}set_secure(e){e!==this.ro&&(this.ro=e,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(e,t){var r=this.props[Gr]||{};r[e]=t,this.Fa(Gr,r),this.save()}remove_event_timer(e){var t=this.props[Gr]||{},r=t[e];return V(r)||(delete t[e],this.Fa(Gr,t),this.save()),r}get_property(e){return this.props[e]}set_property(e,t){this.Fa(e,t),this.save()}Fa(e,t,r){var i;void 0===r&&(r=!0);var n=this.props[e];this.props[e]=t,r&&(e!==qr&&e!==Mi||n===t||(this.va=!0),this.Na(e,n,t),null!=(i=Us(e))&&i.volatile||this.Da(e))}Oa(e,t){void 0===t&&(t=!0),delete this.props[e],t&&(mo(e)&&this.xa(e,!0),this.Da(e))}Da(e){var t,r=null==(t=Us(e))?void 0:t.storageGroup;r&&(this.Ta(r).dirty=!0)}Ta(e){return this.sa[e]||(this.sa[e]={})}}function xo(e){var t=!0;return{dispose(){if(t){t=!1;var r=e();r&&U(r.then)&&r.then(void 0,()=>{})}}}}var ko="gzip-js",Eo="base64",So="events",Po="cancelEvents",Oo="popover",Co="api",Ao="widget",Ro="survey shown",To="survey dismissed",Fo="survey sent",Io="$survey_id",Mo="$survey_iteration",jo="$survey_last_seen_date",$o="popover",No="inline",Lo="product tour shown",Do="$product_tour_last_seen_date",Bo="$product_tour_type",zo=$r("[RateLimiter]");class Uo{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{zo.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void zo.warn('could not rate limit - continuing. Error: "'+(null==e?void 0:e.message)+'"',{text:t})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return(null==(e=this.instance.config.rate_limiting)?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max((null==(e=this.instance.config.rate_limiting)?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var t,r,i;void 0===e&&(e=!1);var n=this.captureEventsBurstLimit,s=this.captureEventsPerSecond,o=(new Date).getTime(),a=null!==(t=null==(r=this.instance.persistence)?void 0:r.get_property($i))&&void 0!==t?t:{tokens:n,last:o};a.tokens+=(o-a.last)/1e3*s,a.last=o,a.tokens>n&&(a.tokens=n);var l=1>a.tokens;if(l||e||(a.tokens=Math.max(0,a.tokens-1)),l&&!e){var u=(Y(a.dropped)?a.dropped:0)+1;a.dropped=u,!this.lastEventRateLimited&&this.so(u)&&(a.dropped=0)}return this.lastEventRateLimited=l,null==(i=this.instance.persistence)||i.set_property($i,a),{isRateLimited:l,remainingTokens:a.tokens}}ao(e){var t=this.instance.config.property_denylist;return!z(t)||!t.includes(e)}oo(){var e;if(this.ao("$current_url")&&this.ao("$pathname")&&null!=a&&a.pathname)return""+(null!==(e=a.origin)&&void 0!==e?e:"")+a.pathname}so(e){var t,r,i=this.captureEventsBurstLimit,n=this.captureEventsPerSecond,s=this.oo(),o=this.ao("$session_id")?null==(t=(r=this.instance).get_session_id)?void 0:t.call(r):void 0,a=[e+" event(s) dropped since the last warning",s?"triggered on "+s:void 0,o?"session "+o:void 0].filter(Boolean).join(", ");return!!this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited: "+a+". Config is set to "+n+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0})}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var qo=$r("[RemoteConfig]");class Ho{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=v._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}lo(e){var t,r;null!=(t=v.__PosthogExtensions__)&&t.loadExternalDependency?null==(r=v.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):e()}uo(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:e})}load(){try{if(this.remoteConfig)return qo.info("Using preloaded remote config",this.remoteConfig),void this.ho(this.remoteConfig);if(this._instance.do())return void qo.warn("Remote config is disabled. Falling back to local config.");this.lo(e=>{if(!e)return qo.info("No config found after loading remote JS config. Falling back to JSON."),void this.uo(e=>{this.ho(e.json,e)});this.ho(e)})}catch(e){qo.error("Error loading remote config",e),this.ho()}}ho(e,t){!e&&t&&(0===t.statusCode?t.error||qo.warn("Failed to fetch remote config from PostHog."):qo.error("Failed to fetch remote config from PostHog."));try{this._instance.ho(e?{ok:!0,config:e}:{ok:!1})}catch(e){qo.error("Error applying remote config",e)}if(!1!==(null==e?void 0:e.hasFeatureFlags)&&!this._instance.config.advanced_disable_feature_flags_on_first_load)try{var r;null==(r=this._instance.featureFlags)||r.ensureFlagsLoaded()}catch(e){qo.error("Error loading feature flags",e)}}}var Vo=Uint8Array,Wo=Uint16Array,Go=Uint32Array,Ko=new Vo([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]),Jo=new Vo([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]),Yo=new Vo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Zo=function(e,t){for(var r=new Wo(31),i=0;31>i;++i)r[i]=t+=1<<e[i-1];var n=new Go(r[30]);for(i=1;30>i;++i)for(var s=r[i];r[i+1]>s;++s)n[s]=s-r[i]<<5|i;return[r,n]},Qo=Zo(Ko,2),Xo=Qo[1];Qo[0][28]=258,Xo[258]=28;for(var ea=Zo(Jo,0)[1],ta=new Wo(32768),ra=0;32768>ra;++ra){var ia=(43690&ra)>>>1|(21845&ra)<<1;ta[ra]=((65280&(ia=(61680&(ia=(52428&ia)>>>2|(13107&ia)<<2))>>>4|(3855&ia)<<4))>>>8|(255&ia)<<8)>>>1}var na=function(e,t,r){for(var i=e.length,n=0,s=new Wo(t);i>n;++n)++s[e[n]-1];var o,a=new Wo(t);for(n=0;t>n;++n)a[n]=a[n-1]+s[n-1]<<1;if(r){o=new Wo(1<<t);var l=15-t;for(n=0;i>n;++n)if(e[n])for(var u=n<<4|e[n],c=t-e[n],d=a[e[n]-1]++<<c,h=d|(1<<c)-1;h>=d;++d)o[ta[d]>>>l]=u}else for(o=new Wo(i),n=0;i>n;++n)o[n]=ta[a[e[n]-1]++]>>>15-e[n];return o},sa=new Vo(288);for(ra=0;144>ra;++ra)sa[ra]=8;for(ra=144;256>ra;++ra)sa[ra]=9;for(ra=256;280>ra;++ra)sa[ra]=7;for(ra=280;288>ra;++ra)sa[ra]=8;var oa=new Vo(32);for(ra=0;32>ra;++ra)oa[ra]=5;var aa=na(sa,9,0),la=na(oa,5,0),ua=function(e){return(e/8|0)+(7&e&&1)},ca=function(e,t,r){(null==r||r>e.length)&&(r=e.length);var i=new(e instanceof Wo?Wo:e instanceof Go?Go:Vo)(r-t);return i.set(e.subarray(t,r)),i},da=function(e,t,r){var i=t/8|0;e[i]|=r<<=7&t,e[i+1]|=r>>>8},ha=function(e,t,r){var i=t/8|0;e[i]|=r<<=7&t,e[i+1]|=r>>>8,e[i+2]|=r>>>16},pa=function(e,t){for(var r=[],i=0;e.length>i;++i)e[i]&&r.push({s:i,f:e[i]});var n=r.length,s=r.slice();if(!n)return[new Vo(0),0];if(1==n){var o=new Vo(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var a=r[0],l=r[1],u=0,c=1,d=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=n-1;)a=r[r[d].f>r[u].f?u++:d++],l=r[u!=c&&r[d].f>r[u].f?u++:d++],r[c++]={s:-1,f:a.f+l.f,l:a,r:l};var h=s[0].s;for(i=1;n>i;++i)s[i].s>h&&(h=s[i].s);var p=new Wo(h+1),f=fa(r[c-1],p,0);if(f>t){i=0;var v=0,g=f-t,m=1<<g;for(s.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});n>i;++i){var _=s[i].s;if(t>=p[_])break;v+=m-(1<<f-p[_]),p[_]=t}for(v>>>=g;v>0;){var b=s[i].s;t>p[b]?v-=1<<t-p[b]++-1:++i}for(;i>=0&&v;--i){var y=s[i].s;p[y]==t&&(--p[y],++v)}f=t}return[new Vo(p),f]},fa=function(e,t,r){return-1==e.s?Math.max(fa(e.l,t,r+1),fa(e.r,t,r+1)):t[e.s]=r},va=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Wo(++t),i=0,n=e[0],s=1,o=function(e){r[i++]=e},a=1;t>=a;++a)if(e[a]==n&&a!=t)++s;else{if(!n&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(n),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(n);s=1,n=e[a]}return[r.subarray(0,i),t]},ga=function(e,t){for(var r=0,i=0;t.length>i;++i)r+=e[i]*t[i];return r},ma=function(e,t,r){var i=r.length,n=ua(t+2);e[n]=255&i,e[n+1]=i>>>8,e[n+2]=255^e[n],e[n+3]=255^e[n+1];for(var s=0;i>s;++s)e[n+s+4]=r[s];return 8*(n+4+i)},_a=function(e,t,r,i,n,s,o,a,l,u,c){da(t,c++,r),++n[256];for(var d=pa(n,15),h=d[0],p=d[1],f=pa(s,15),v=f[0],g=f[1],m=va(h),_=m[0],b=m[1],y=va(v),w=y[0],x=y[1],k=new Wo(19),E=0;_.length>E;++E)k[31&_[E]]++;for(E=0;w.length>E;++E)k[31&w[E]]++;for(var S=pa(k,7),P=S[0],O=S[1],C=19;C>4&&!P[Yo[C-1]];--C);var A,R,T,F,I=u+5<<3,M=ga(n,sa)+ga(s,oa)+o,j=ga(n,h)+ga(s,v)+o+14+3*C+ga(k,P)+(2*k[16]+3*k[17]+7*k[18]);if(M>=I&&j>=I)return ma(t,c,e.subarray(l,l+u));if(da(t,c,1+(M>j)),c+=2,M>j){A=na(h,p,0),R=h,T=na(v,g,0),F=v;var $=na(P,O,0);for(da(t,c,b-257),da(t,c+5,x-1),da(t,c+10,C-4),c+=14,E=0;C>E;++E)da(t,c+3*E,P[Yo[E]]);c+=3*C;for(var N=[_,w],L=0;2>L;++L){var D=N[L];for(E=0;D.length>E;++E)da(t,c,$[B=31&D[E]]),c+=P[B],B>15&&(da(t,c,D[E]>>>5&127),c+=D[E]>>>12)}}else A=aa,R=sa,T=la,F=oa;for(E=0;a>E;++E)if(i[E]>255){var B;ha(t,c,A[257+(B=i[E]>>>18&31)]),c+=R[B+257],B>7&&(da(t,c,i[E]>>>23&31),c+=Ko[B]);var z=31&i[E];ha(t,c,T[z]),c+=F[z],z>3&&(ha(t,c,i[E]>>>5&8191),c+=Jo[z])}else ha(t,c,A[i[E]]),c+=R[i[E]];return ha(t,c,A[256]),c+R[256]},ba=new Go([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ya=function(){for(var e=new Go(256),t=0;256>t;++t){for(var r=t,i=9;--i;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),wa=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};var xa=!!u||!!l,ka="text/plain",Ea=!1,Sa=(e,t)=>{var r=e.split("#"),i=r[1],n=r[0].split("?"),s=n[0],o=n[1];if(!o)return e;var a=o.split("&").filter(e=>e.split("=")[0]!==t).join("&");return s+(a?"?"+a:"")+(i?"#"+i:"")},Pa=function(e,t,r){var i;void 0===r&&(r=!0);var n=e.split("?"),s=n[0],o=n[1],a=b({},t),l=null!==(i=null==o?void 0:o.split("&").map(e=>{var t,i=e.split("="),n=i[0],s=r&&null!==(t=a[n])&&void 0!==t?t:i[1];return delete a[n],n+"="+s}))&&void 0!==i?i:[],u=function(e,t){var r,i;void 0===t&&(t="&");var n=[];return on(e,function(e,t){V(e)||V(t)||"undefined"===t||(r=encodeURIComponent((e=>e instanceof File)(e)?e.name:e.toString()),i=encodeURIComponent(t),n[n.length]=i+"="+r)}),n.join(t)}(a);return u&&l.push(u),l.length>0?s+"?"+l.join("&"):s},Oa=e=>{if(e.vo)return e.vo;var t=e.data,r=e.compression;if(t){if(r===ko){var i=function(e,t){void 0===t&&(t={});var r=function(){var e=4294967295;return{p(t){for(var r=e,i=0;t.length>i;++i)r=ya[255&r^t[i]]^r>>>8;e=r},d:()=>4294967295^e}}(),i=e.length;r.p(e);var n,s,o,a,l=(a=10+((n=t).filename&&n.filename.length+1||0),function(e,t,r,i){var n=e.length,s=new Vo(i+n+5*(1+Math.floor(n/7e3))+8),o=s.subarray(i,s.length-8),a=0;if(!t||8>n)for(var l=0;n>=l;l+=65535){var u=l+65535;n>u?a=ma(o,a,e.subarray(l,u)):(o[l]=!0,a=ma(o,a,e.subarray(l,n)))}else{for(var c=ba[t-1],d=c>>>13,h=8191&c,p=(1<<r)-1,f=new Wo(32768),v=new Wo(p+1),g=Math.ceil(r/3),m=2*g,_=function(t){return(e[t]^e[t+1]<<g^e[t+2]<<m)&p},b=new Go(25e3),y=new Wo(288),w=new Wo(32),x=0,k=0,E=(l=0,0),S=0,P=0;n>l;++l){var O=_(l),C=32767&l,A=v[O];if(f[C]=A,v[O]=C,l>=S){var R=n-l;if((x>7e3||E>24576)&&R>423){a=_a(e,o,0,b,y,w,k,E,P,l-P,a),E=x=k=0,P=l;for(var T=0;286>T;++T)y[T]=0;for(T=0;30>T;++T)w[T]=0}var F=2,I=0,M=h,j=C-A&32767;if(R>2&&O==_(l-j))for(var $=Math.min(d,R)-1,N=Math.min(32767,l),L=Math.min(258,R);N>=j&&--M&&C!=A;){if(e[l+F]==e[l+F-j]){for(var D=0;L>D&&e[l+D]==e[l+D-j];++D);if(D>F){if(F=D,I=j,D>$)break;var B=Math.min(j,D-2),z=0;for(T=0;B>T;++T){var U=l-j+T+32768&32767,q=U-f[U]+32768&32767;q>z&&(z=q,A=U)}}}j+=(C=A)-(A=f[C])+32768&32767}if(I){b[E++]=268435456|Xo[F]<<18|ea[I];var H=31&Xo[F],V=31&ea[I];k+=Ko[H]+Jo[V],++y[257+H],++w[V],S=l+F,++x}else b[E++]=e[l],++y[e[l]]}}a=_a(e,o,!0,b,y,w,k,E,P,l-P,a)}return ca(s,0,i+ua(a)+8)}(s=e,null==(o=t).level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):12+o.mem,a)),u=l.length;return function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=2>t.level?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&wa(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var i=0;r.length>=i;++i)e[i+10]=r.charCodeAt(i)}}(l,t),wa(l,u-8,r.d()),wa(l,u-4,i),l}(function(e){var t=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new Vo(e.length+(e.length>>>1)),i=0,n=function(e){r[i++]=e},s=0;t>s;++s){if(i+5>r.length){var o=new Vo(i+8+(t-s<<1));o.set(r),r=o}var a=e.charCodeAt(s);128>a?n(a):2048>a?(n(192|a>>>6),n(128|63&a)):a>55295&&57344>a?(n(240|(a=65536+(1047552&a)|1023&e.charCodeAt(++s))>>>18),n(128|a>>>12&63),n(128|a>>>6&63),n(128|63&a)):(n(224|a>>>12),n(128|a>>>6&63),n(128|63&a))}return ca(r,0,i)}(qs(t)),{mtime:0});return{contentType:ka,body:i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength),estimatedSize:i.byteLength}}if(r===Eo){var n=function(e){return e?btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode(parseInt(t,16)))):e}(qs(t)),s=(e=>"data="+encodeURIComponent("string"==typeof e?e:qs(e)))(n);return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var o=qs(t);return{contentType:"application/json",body:o,estimatedSize:new Blob([o]).size}}},Ca=e=>{var t,r,i=()=>"sendBeacon"===e.transport?{url:Pa(e.url,{compression:Eo}),encodedBody:Oa(b({},e,{compression:Eo,vo:void 0}))}:{url:Sa(e.url,"compression"),encodedBody:Oa(b({},e,{compression:void 0,vo:void 0}))};try{t=Oa(e)}catch(t){if(Rt(e.compression,Vs(e.url,"compression")))return jr.error("Failed to gzip request body, sending uncompressed payload",t),i();throw t}return t&&Rt(e.compression,Vs(e.url,"compression"))&&!((r=t.body)instanceof ArrayBuffer?At(new Uint8Array(r)):ArrayBuffer.isView(r)&&At(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)))?(Ea=!0,i()):{url:e.url,encodedBody:t}},Aa=e=>{try{return Ca(e)}catch(t){return jr.error(t),void(null==e.callback||e.callback({statusCode:0,error:t}))}},Ra=function(){var e=_(function*(e){var t=qs(e.data),r=yield function(e,t,r){return Mt.apply(this,arguments)}(t,g.DEBUG,{rethrow:!0});if(!r)return e;var i=yield r.arrayBuffer();return b({},e,{vo:{contentType:ka,body:i,estimatedSize:i.byteLength}})});return function(t){return e.apply(this,arguments)}}(),Ta=/Failed to fetch|NetworkError|Load failed/i,Fa=e=>"TypeError"===(null==e?void 0:e.name)&&Ta.test((null==e?void 0:e.message)||""),Ia=e=>{var t=Aa(e);if(t){var r=t.url,i=t.encodedBody,n=null!=i?i:{},s=n.contentType,o=n.body,a=n.estimatedSize,u=new Headers;on(e.headers,function(e,t){u.append(t,e)}),s&&u.append("Content-Type",s);var d=null,h=!1;if(c){var p=new c;d={signal:p.signal,timeout:setTimeout(()=>{var t;h=!0,p.abort(xt("AbortError","PostHog request timed out"+((t=e.timeout)?" after "+t+"ms":"")))}
2,e.timeout)}}var f=t=>{h&&"AbortError"===(null==t?void 0:t.name)||Fa(t)?jr.warn(t):jr.error(t),null==e.callback||e.callback({statusCode:0,error:t})};try{var v;l(r,b({method:(null==e?void 0:e.method)||"GET",headers:u,keepalive:"POST"===e.method&&!e.co&&52428.8>(a||0),body:o,signal:null==(v=d)?void 0:v.signal},e.fetchOptions)).then(t=>t.text().then(r=>{var i={statusCode:t.status,text:r};if(200===t.status)try{i.json=JSON.parse(r)}catch(e){jr.error(e)}null==e.callback||e.callback(i)})).catch(f).finally(()=>d?clearTimeout(d.timeout):null)}catch(e){d&&clearTimeout(d.timeout),f(e)}}},Ma=e=>{try{var t,r=Ca(e),i=r.url,n=r.encodedBody,o=null!=n?n:{},a=o.body,l=o.estimatedSize;if(!a)return;var u=a instanceof Blob?a:new Blob([a],{type:o.contentType});if(s.sendBeacon(i,u))return;var c=z(e.data)?e.data:null==(t=e.data)?void 0:t.batch;if(z(c)&&c.length>1&&(null!=l?l:0)>16384){var d=Math.ceil(c.length/2),h=t=>z(e.data)?t:b({},e.data,{batch:t});return Ma(b({},e,{data:h(c.slice(0,d))})),void Ma(b({},e,{data:h(c.slice(d))}))}jr.warn("Beacon of ~"+(null!=l?l:0)+" bytes was rejected by the browser, falling back to fetch"),Ia(b({},e,{co:!0}))}catch(e){jr.warn("Beacon send failed",e)}},ja=(e,t,r,i)=>{var n="query"===i?"POST"===t?"sent_at":"_":void 0;return Pa(r===ko?Sa(e,"compression"):e,b({},n?{[n]:Date.now().toString()}:{},r===ko?{}:{compression:r}))},$a=[];l&&$a.push({transport:"fetch",method:Ia}),u&&$a.push({transport:"XHR",method(e){var t=Aa(e);if(t){var r=new u,i=t.encodedBody;r.open(e.method||"GET",t.url,!0);var n=null!=i?i:{},s=n.contentType,o=n.body;on(e.headers,function(e,t){r.setRequestHeader(t,e)}),s&&r.setRequestHeader("Content-Type",s),e.timeout&&(r.timeout=e.timeout),r.onreadystatechange=()=>{if(4===r.readyState){var t={statusCode:r.status,text:r.responseText};if(200===r.status)try{t.json=JSON.parse(r.responseText)}catch(e){}null==e.callback||e.callback(t)}},r.send(o)}}}),null!=s&&s.sendBeacon&&$a.push({transport:"sendBeacon",method:Ma});var Na=3e3;class La{constructor(e,t){this.fo=!0,this.po=[],this.mo=ue((null==t?void 0:t.flush_interval_ms)||Na,250,5e3,jr.createLogger("flush interval"),Na),this.yo=e}enqueue(e){this.po.push(e),this.bo||this._o()}unload(){this.wo();var e=this.po.length>0?this.ko():{},t=Object.values(e);[...t.filter(e=>0===e.url.indexOf("/e")),...t.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.So(b({},e,{transport:"sendBeacon"}))})}enable(){this.fo=!1,this._o()}_o(){var e=this;this.fo||(this.bo=setTimeout(()=>{if(this.wo(),this.po.length>0){var t=this.ko(),r=function(){var r=t[i],n=(new Date).getTime();r.data&&z(r.data)&&on(r.data,e=>{e.offset=Math.abs(e.timestamp-n),delete e.timestamp}),e.So(r)};for(var i in t)r()}},this.mo))}So(e){try{this.yo(e)}catch(e){jr.error(e)}}wo(){clearTimeout(this.bo),this.bo=void 0}ko(){var e={};return on(this.po,t=>{var r,i=t,n=(i?i.batchKey:null)||i.url;V(e[n])&&(e[n]=b({},i,{data:[]})),null==(r=e[n].data)||r.push(i.data)}),this.po=[],e}}var Da=["retriesPerformedSoFar"];class Ba{constructor(e){this.xo=!1,this.Co=3e3,this.po=[],this._instance=e,this.po=[],this.To=!0,!V(i)&&"onLine"in i.navigator&&(this.To=i.navigator.onLine,this.Mo=()=>{this.To=!0,this.Eo()},this.Io=()=>{this.To=!1},fn(i,"online",this.Mo),fn(i,"offline",this.Io))}get length(){return this.po.length}retriableRequest(e){var t=e.retriesPerformedSoFar,r=y(e,Da);Z(t)&&(r.url=Pa(r.url,{retry_count:t})),this._instance._send_request(b({},r,{callback:e=>{if(200!==e.statusCode&&(400>e.statusCode||e.statusCode>=500)){if((0===e.statusCode?3:10)>(null!=t?t:0))return void this.rs(b({retriesPerformedSoFar:t},r));0===e.statusCode&&jr.warn("Request failed before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped retrying after "+(null!=t?t:0)+" retries.")}null==r.callback||r.callback(e)}}))}rs(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var r=function(e){var t=3e3*Math.pow(2,e),r=t/2,i=Math.min(18e5,t),n=Math.random()-.5;return Math.ceil(i+n*(i-r))}(t),i=Date.now()+r;this.po.push({retryAt:i,requestOptions:e});var n="Enqueued failed request for retry in "+r;navigator.onLine||(n+=" (Browser is offline)"),jr.warn(n),this.xo||(this.xo=!0,this.Ro())}
vendor: 6,722 bytes, line 2
2Ro(){if(this.Po&&clearTimeout(this.Po),0===this.po.length)return this.xo=!1,void(this.Po=void 0);this.Po=setTimeout(()=>{this.To&&this.po.length>0&&this.Eo(),this.Ro()},this.Co)}Eo(){var e=Date.now(),t=[],r=this.po.filter(r=>e>r.retryAt||(t.push(r),!1));if(this.po=t,r.length>0)for(var i of r)this.retriableRequest(i.requestOptions)}unload(){for(var e of(this.Po&&(clearTimeout(this.Po),this.Po=void 0),this.xo=!1,V(i)||(this.Mo&&(i.removeEventListener("online",this.Mo),this.Mo=void 0),this.Io&&(i.removeEventListener("offline",this.Io),this.Io=void 0)),this.po)){var t=e.requestOptions;try{this._instance._send_request(b({},t,{transport:"sendBeacon"}))}catch(e){jr.error(e)}}this.po=[]}}class za{constructor(e){this.Ao=()=>{var e,t,r,i;this.Fo||(this.Fo={});var n=this.scrollElement(),s=this.scrollY(),o=n?Math.max(0,n.scrollHeight-n.clientHeight):0,a=s+((null==n?void 0:n.clientHeight)||0),l=(null==n?void 0:n.scrollHeight)||0;this.Fo.lastScrollY=Math.ceil(s),this.Fo.maxScrollY=Math.max(s,null!==(e=this.Fo.maxScrollY)&&void 0!==e?e:0),this.Fo.maxScrollHeight=Math.max(o,null!==(t=this.Fo.maxScrollHeight)&&void 0!==t?t:0),this.Fo.lastContentY=a,this.Fo.maxContentY=Math.max(a,null!==(r=this.Fo.maxContentY)&&void 0!==r?r:0),this.Fo.maxContentHeight=Math.max(l,null!==(i=this.Fo.maxContentHeight)&&void 0!==i?i:0)},this._instance=e}get Oo(){return this._instance.config.scroll_root_selector}getContext(){return this.Fo}resetContext(){var e=this.Fo;return setTimeout(this.Ao,0),e}startMeasuringScrollPosition(){fn(i,"scroll",this.Ao,{capture:!0}),fn(i,"scrollend",this.Ao,{capture:!0}),fn(i,"resize",this.Ao)}scrollElement(){if(!this.Oo)return null==i?void 0:i.document.documentElement;var e=z(this.Oo)?this.Oo:[this.Oo];for(var t of e){var r=null==i?void 0:i.document.querySelector(t);if(r)return r}}Lo(e){var t="y"===e?"scrollTop":"scrollLeft";if(this.Oo){var r=this.scrollElement();return r&&r[t]||0}return i?"y"===e?i.scrollY||i.pageYOffset||i.document.documentElement.scrollTop||0:i.scrollX||i.pageXOffset||i.document.documentElement.scrollLeft||0:0}scrollY(){return this.Lo("y")}scrollX(){return this.Lo("x")}}var Ua=e=>ao(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties,null==e?void 0:e.config.disable_capture_url_hashes);class qa{constructor(e,t,r,i){this.Tt=e=>{var t=this.Do();if(!t||t.sessionId!==e){var r={sessionId:e,props:this.$o(this._instance)};this.No.register({[ji]:r})}},this._instance=e,this.qo=t,this.No=r,this.$o=i||Ua,this.qo.onSessionId(this.Tt)}Do(){return this.No.props[ji]}getSetOnceProps(){var e,t=null==(e=this.Do())?void 0:e.props;return t?"r"in t?lo(t,this._instance.config.disable_capture_url_hashes):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return on(dn(this.getSetOnceProps()),(t,r)=>{"$current_url"===r&&(r="url"),e["$session_entry_"+$(r)]=t}),e}}class Ha{on(e,t){return this.jo[e]||(this.jo[e]=[]),this.jo[e].push(t),()=>{this.jo[e]=this.jo[e].filter(e=>e!==t)}}emit(e,t){for(var r of this.jo[e]||[])r(t);for(var i of this.jo["*"]||[])i(e,t)}constructor(){this.jo={}}}var Va=$r("[SessionId]"),Wa=864e5;class Ga{on(e,t){return this.Bo.on(e,t)}constructor(e,t,r){var i;if(this.Ho=null,this.zo=null,this.Uo=[],this.Wo=void 0,this.Vo=!1,this.Bo=new Ha,this.Go=(e,t)=>!(!Z(e)||!Z(t))&&Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===Ki)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.mn=e.config,this.No=e.persistence,this.It=void 0,this.Pe=void 0,this._sessionStartTimestamp=null,this.Zo=void 0,this._sessionActivityTimestamp=null,this.Qo=t||xn,this.Jo=r||xn;var n=this.mn.persistence_name||this.mn.token;if(this._sessionTimeoutMs=1e3*ue(this.mn.session_idle_timeout_seconds||1800,60,36e3,Va.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Ko(),this.Yo="ph_"+n+"_window_id",this.Xo="ph_"+n+"_primary_window_exists",this.tl()){var s=qn.ui(this.Yo),o=qn.ui(this.Xo);s&&!o?this.It=s:qn.oi(this.Yo),qn.ni(this.Xo,!0)}null!=(i=this.mn.bootstrap)&&i.sessionID&&this.setBootstrapSessionId(this.mn.bootstrap.sessionID),this.el()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return V(this.Uo)&&(this.Uo=[]),this.Uo.push(e),this.Pe&&e(this.Pe,this.It),()=>{this.Uo=this.Uo.filter(t=>t!==e)}}tl(){return"memory"!==this.mn.persistence&&!this.No.Ca&&qn.ii()}il(e){e!==this.It&&(this.It=e,this.tl()&&qn.ni(this.Yo,e))}rl(){return this.It?this.It:this.tl()?qn.ui(this.Yo):null}nl(e){var t=this.Ho;return!K(t)&&!K(e)&&5e3>Math.abs(e-t)}sl(e,t,r){var i=t!==this._sessionActivityTimestamp,n=!(e!==this.Pe||r!==this._sessionStartTimestamp);this._sessionStartTimestamp=r,this._sessionActivityTimestamp=t,this.Pe=e,n&&!i||n&&this.nl(t)||(this.Ho=t,this.No.register({[ci]:[t,e,r]}))}al(){var e,t=null==(e=this.mn)?void 0:e.persistence_save_debounce_ms;return Z(t)&&t>0}ol(){this.al()?this.No.refreshKey(ci):(this.No.flush(),this.No.load())}ll(){var e;if(!K(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.Ho){this.ol();var t=this.ul();t[1]===this.Pe&&t[2]===this._sessionStartTimestamp&&(this.Ho=this._sessionActivityTimestamp,this.No.register({[ci]:[this._sessionActivityTimestamp,null!==(e=this.Pe)&&void 0!==e?e:null,this._sessionStartTimestamp]}),this.No.flush())}}hl(){var e=this.ul()[0],t=Z(e)?e:0,r=Z(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0;return Math.max(t,r)}dl(e){return this.ol(),this.Go(e,this.hl())}ul(){var e=this.No.props[ci];return z(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Ho=null,this.Zo=void 0,clearTimeout(this.vl),this.vl=void 0,this.sl(null,null,null)}setBootstrapSessionId(e,t){void 0===t&&(t=!1);var r=function(e,t){void 0===t&&(t=(new Date).getTime());try{var r=(e=>{var t=e.replace(/-/g,"");if(32!==t.length)throw new Error("Not a valid UUID");if("7"!==t[12])throw new Error("Not a UUIDv7");return parseInt(t.substring(0,12),16)})(e);return r>t+6e4?void Va.error("Bootstrap sessionID cannot be in the future"):r}catch(e){return void Va.error("Invalid sessionID in bootstrap",e)}}(e);return!V(r)&&(t?this.Zo={sessionId:e,sessionStartTimestamp:r}:this.sl(e,(new Date).getTime(),r),!0)}destroy(){this.Vo=!0,this.ll(),clearTimeout(this.vl),this.vl=void 0,this.Wo&&i&&(i.removeEventListener(Xi,this.Wo,{capture:!1}),this.Wo=void 0),this.Uo=[]}el(){this.Wo=()=>{this.ll(),this.tl()&&qn.oi(this.Xo)},fn(i,Xi,this.Wo,{capture:!1})}
2checkAndGetSessionAndWindowId(e,t,r){if(void 0===e&&(e=!1),void 0===t&&(t=null),void 0===r&&(r=!1),this.mn.cookieless_mode===Ki)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var i=t||(new Date).getTime(),n=this.Pe;if(r)this.zo=i;else if(K(this.zo)||this.zo>i||i-this.zo>=1e3){var s,o;null==(s=(o=this.No).syncCookieProperties)||s.call(o),this.zo=i}var a=this.ul(),l=a[1],u=a[2],c=!V(n)&&l!==n,d=this.hl(),h=this.rl(),p=this.Zo,f=!!p&&(p.sessionStartTimestamp>i+6e4||i-p.sessionStartTimestamp>Wa),v=p?f:Z(u)&&Math.abs(i-u)>Wa,g=!1,m=c,_=!l||!!p,b=l,y=!_&&!e&&this.Go(i,d);if(y){(y=this.dl(i))||Va.info("cross-tab refresh kept the session alive",{sessionId:l});var w=this.ul();l=w[1],u=w[2]}if(_||y||v){m=!1;var x=p&&!f;l=x?p.sessionId:this.Qo(),h=this.Jo(),Va.info("new session ID assigned",{sessionId:l,windowId:h,bootstrapped:!!x,changeReason:{noSessionId:_,activityTimeout:y,sessionPastMaximumLength:v}}),u=x?p.sessionStartTimestamp:i,this.Zo=void 0,g=!0}else h||(h=this.Jo(),g=!0),(m=m||l!==b)&&(Va.info("adopted cross-tab session id",{sessionId:l,windowId:h}),g=!0);var k=Z(d)&&e&&!v?d:i,E=Z(u)?u:(new Date).getTime();this.il(h),this.sl(l,k,E),e||this.Ko();var S={noSessionId:_,activityTimeout:y,sessionPastMaximumLength:v,crossTabAdoption:m};return g&&this.Uo.forEach(e=>e(l,h,S)),{sessionId:l,windowId:h,sessionStartTimestamp:E,changeReason:g?S:void 0,lastActivityTimestamp:d}}Ko(){this.Vo||(clearTimeout(this.vl),this.vl=setTimeout(()=>{if(!this.Vo)if(this.dl((new Date).getTime())){var e=this.Pe;this.resetSessionId(),this.Bo.emit("forcedIdleReset",{idleSessionId:e})}else this.Ko()},1.1*this.sessionTimeoutMs))}}var Ka=function(e,t){if(!e)return!1;var r=e.userAgent;if(r&&I(r,t))return!0;try{var i=null==e?void 0:e.userAgentData;if(null!=i&&i.brands&&i.brands.some(e=>I(null==e?void 0:e.brand,t)))return!0}catch(e){}return!!e.webdriver};function Ja(){return(Ja=_(function*(){var e=null==s?void 0:s.userAgentData;if(null!=e&&e.getHighEntropyValues)try{var t=yield e.getHighEntropyValues(["model"]),r=null==t?void 0:t.model;return W(r)&&r.length>0?r:void 0}catch(e){return void jr.info("Unable to resolve $device_model from userAgentData.getHighEntropyValues",e)}})).apply(this,arguments)}function Ya(e){var t;return!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)}var Za=(e,t)=>{if(!(e=>{try{new RegExp(e)}catch(e){return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch(e){return!1}},Qa=e=>e.toLowerCase(),Xa={exact:(e,t)=>t.some(t=>e.some(e=>t===e)),is_not:(e,t)=>t.every(t=>e.every(e=>t!==e)),regex:(e,t)=>t.some(t=>e.some(e=>Za(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!Za(t,e))),icontains:(e,t)=>t.map(Qa).some(t=>e.map(Qa).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(Qa).every(t=>e.map(Qa).every(e=>!t.includes(e))),gt:(e,t)=>t.some(t=>{var r=parseFloat(t);return!isNaN(r)&&e.some(e=>r>parseFloat(e))}),lt:(e,t)=>t.some(t=>{var r=parseFloat(t);return!isNaN(r)&&e.some(e=>r<parseFloat(e))})};function el(e,t){return!e||Object.entries(e).every(e=>{var r=e[1],i=null==t?void 0:t[e[0]];if(null==i)return!1;var n=Xa[r.operator];return!!n&&n(r.values,[String(i)])})}function tl(e,t,r){return qs({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:r})}var rl="custom",il="i.posthog.com",nl=/^\/static\//,sl=["/s/","/e/","/i/"];class ol{constructor(e){this.cl={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+il,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.cl[this.apiHost]||(this.cl[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":rl),this.cl[this.apiHost]}fl(e){if(nl.test(e)){var t=this.instance.config.asset_host;if("string"==typeof t)return t.trim().replace(/\/$/,"")||void 0}}pl(e){var t=Hs(e);return t?t.protocol+"//"+t.host+t.pathname:void 0}gl(e,t,r){if("ui"===e)return r;var i=r,n=this.instance.config.rewriteRequestPath;if(n){var s,o=(null==(s=Hs(r))?void 0:s.href)||r;i=n(new URL(o)).toString()}if(n&&"api"===e&&sl.some(e=>0===t.indexOf(e))){var a=this.pl(i);if(a){var l,u=this.apiHost,c=this.ml;(null==(l=c)?void 0:l.apiHost)===u&&c.rewriteRequestPath===n||(c={apiHost:u,rewriteRequestPath:n,urls:new Set},this.ml=c),c.urls.add(a)}}return i}isIngestionEndpoint(e){var t=this.ml,r=this.pl(e);return(null==t?void 0:t.apiHost)===this.apiHost&&t.rewriteRequestPath===this.instance.config.rewriteRequestPath&&!!r&&t.urls.has(r)}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.gl(e,t,this.uiHost+t);if("flags"===e)return this.gl(e,t,this.flagsApiHost+t);if("assets"===e){var r=this.fl(t);if(r)return this.gl(e,t,""+r+t)}if(this.region===rl)return this.gl(e,t,this.apiHost+t);var i=il+t;switch(e){case"assets":return this.gl(e,t,"https://"+this.region+"-assets."+i);case"api":return this.gl(e,t,"https://"+this.region+"."+i)}}}var al=$r("[Surveys]"),ll="seenSurvey_",ul=e=>{try{var t=(e=>((e,t)=>""+ll+function(e){return e.current_iteration&&e.current_iteration>0?e.id+"_"+e.current_iteration:e.id}(t))(0,e))(e);if(localStorage.getItem(t))return;localStorage.setItem(t,"true")}catch(e){al.error("Failed to persist survey seen state",e)}},cl=[Oo,Ao,Co],dl={ignoreConditions:!1,ignoreDelay:!1,displayType:$o}
vendor: 38,762 bytes, line 2
2,hl=$r("[PostHog ExternalIntegrations]"),pl={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class fl{constructor(e){this._instance=e}Ys(e,t){var r;null==(r=v.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,e,e=>{if(e)return hl.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e=this,t=function(){var t,i,n,s=r[0],o=r[1];!o||null!=(t=v.__PosthogExtensions__)&&null!=(t=t.integrations)&&t[s]||e.Ys(pl[s],()=>{var t;null==(t=v.__PosthogExtensions__)||null==(t=t.integrations)||null==(t=t[s])||t.start(e._instance)}),!o&&null!=(i=v.__PosthogExtensions__)&&null!=(i=i.integrations)&&i[s]&&(null==(n=v.__PosthogExtensions__)||null==(n=n.integrations)||null==(n=n[s])||n.stop())};for(var r of Object.entries(null!==(i=this._instance.config.integrations)&&void 0!==i?i:{})){var i;t()}}}class vl{constructor(e,t){this.A=e,this.Ns=t,this.yl=new Map,this.Os=!1}add(e){var t=this;return _(function*(){if(t.Os)throw new Error("Cannot add an extension to a disposed ExtensionRuntime");if(t.yl.has(e.name))throw new Error('Browser extension "'+e.name+'" is already registered');t.yl.set(e.name,e);try{var r=e.setup(t.Ns);r&&(yield r)}catch(r){var i=t.yl.get(e.name)===e;i&&t.yl.delete(e.name),t.A.error('Failed to set up browser extension "'+e.name+'"',r),i&&t.bl(e)}})()}getExtension(e){return this.yl.get(e)}dispose(){if(!this.Os){this.Os=!0;var e=Array.from(this.yl.values()).reverse();for(var t of(this.yl.clear(),e))this.bl(t)}}bl(e){try{var t=null==e.dispose?void 0:e.dispose();t&&U(t.then)&&t.then(void 0,t=>{this.A.error('Failed to dispose browser extension "'+e.name+'"',t)})}catch(t){this.A.error('Failed to dispose browser extension "'+e.name+'"',t)}}}class gl{constructor(e){this._instance=e}initialize(){}get(e){var t=this._instance.persistence;if("string"==typeof e)return null==t?void 0:t.get_property(e);var r={};for(var i of e){var n=null==t?void 0:t.get_property(i);V(n)||(r[i]=n)}return r}set(e,t){var r;null==(r=this._instance.persistence)||r.register("string"==typeof e?{[e]:t}:e)}remove(e){var t;null==(t=this._instance.persistence)||t.unregister(e)}}var ml="extensionsRemoteConfig";class _l{constructor(e){this.Os=!1,this.instance=e,this.A=jr,this._l=e.wl,this.kv=new gl(e),this.onEvent=e=>xo(this.instance.on("eventCaptured",t=>{try{e({event:t.event,properties:t.properties})}catch(e){this.A.error("Browser extension event listener failed",e)}})),this.onRemoteConfig=e=>{if(this.Os)return xo(()=>{});var t=t=>{try{e(t)}catch(e){this.A.error("Browser extension remote config listener failed",e)}},r=this.instance.kl.on(ml,t);return this._l&&t(this._l),xo(r)},this.Sl=new vl(jr.createLogger("[BrowserExtensions]"),this)}get logger(){return this.A}get distinctId(){return this.instance.get_distinct_id()}get anonymousId(){var e;return null!==(e=this.instance.get_property(Hr))&&void 0!==e?e:this.distinctId}get deviceId(){var e=this.instance.get_property(Hr);return"string"==typeof e?e:void 0}get library(){return{name:g.LIB_NAME,version:g.LIB_VERSION}}get initialPersonProperties(){var e,t;return null!==(e=null==(t=this.instance.persistence)?void 0:t.get_initial_props())&&void 0!==e?e:{}}get groups(){return this.instance.getGroups()}get session(){try{var e,t,r,i,n=null==(e=this.instance.sessionManager)?void 0:e.checkAndGetSessionAndWindowId(!0);return{sessionId:null!==(t=null==n?void 0:n.sessionId)&&void 0!==t?t:"",windowId:null!==(r=null==n?void 0:n.windowId)&&void 0!==r?r:"",sessionStartTimestamp:null!==(i=null==n?void 0:n.sessionStartTimestamp)&&void 0!==i?i:0}}catch(e){return{sessionId:"",windowId:"",sessionStartTimestamp:0}}}get canCapture(){return this.instance.is_capturing()}get projectToken(){return this.instance.config.token}add(e){return this.Sl.add(e)}getExtension(e){return this.Sl.getExtension(e)}capture(e,t,r){var i=this;return _(function*(){r?i.instance.capture(e,t,{timestamp:r.timestamp,uuid:r.uuid,$set:r.set,$set_once:r.setOnce}):i.instance.capture(e,t)})()}registerDynamicEventProperties(e){return xo(this.instance.xl(e))}handleRemoteConfig(e){this.Os||(this._l=e,this.instance.kl.emit(ml,e))}sendRequest(e,t){var r=this;return _(function*(){var i;void 0===t&&(t={});var n=r.instance.requestRouter.endpointFor(null!==(i=t.target)&&void 0!==i?i:"api",e),s={method:t.method,url:t.query?Pa(n,t.query):n,data:t.body,headers:t.headers,timeout:t.timeoutMs,fireCallbackOnDrop:!0,transport:t.transport,compression:t.compression,compressionFallback:"flags"===t.target&&"best-available"===t.compression?P.Base64:void 0,timestampMode:t.sentAt};return"sendBeacon"===t.transport?(r.instance._send_request(s),{statusCode:202}):new Promise(e=>{s.callback=e,r.instance._send_request(s)})})()}dispose(){this.Os||(this.Os=!0,this.Sl.dispose())}}var bl={},yl=0,wl=()=>{},xl='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',kl="Surveys module not available",El="sanitize_properties is deprecated. Use before_send instead",Sl="Invalid value for property_denylist config: ",Pl=["token","distinct_id",Ui],Ol="posthog",Cl=!xa&&-1===(null==h?void 0:h.indexOf("MSIE"))&&-1===(null==h?void 0:h.indexOf("Mozilla")),Al=e=>{var t={};return e&&"unset"!==e?("2025-11-30">e||(t.strictMinimumDuration=!0),"2026-05-30">e||(t.canvasCapture={resolutionScale:.6}),"2026-06-25">e||(t.streamNetworkBody=!0),"2026-08-30">e||(t.captureJsonLd=!0),t):t},Rl=e=>{var t;return b({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,asset_host:null,token:"",autocapture:!0,cross_subdomain_cookie:pn(null==o?void 0:o.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:wl,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:a&&W(null==a?void 0:a.search)&&-1!==a.search.indexOf("__posthog_debug=true")||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disableDeviceModel:!1,disable_external_dependency_loading:!1,strict_script_versioning:"fallback",enable_recording_console_log:void 0,secure_cookie:"https:"===(null==i||null==(t=i.location)?void 0:t.protocol),ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(e){jr.error("Bad HTTP status: "+e.statusCode+" "+e.text)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:Zi,before_send:void 0,get_current_url:void 0,request_queue_config:{flush_interval_ms:Na},error_tracking:{},_onCapture:wl},(e=>({rageclick:e&&e>="2026-05-30"?{content_ignorelist:us,ignore_text_selection:!0}:!e||"2025-11-30">e||{content_ignorelist:!0},capture_pageview:!e||"2025-05-24">e||"history_change",session_recording:Al(e),external_scripts_inject_target:e&&e>="2026-01-30"?"head":"body",internal_or_test_user_hostname:e&&e>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:e&&e>="2026-05-30"?250:0,split_storage:!(!e||"2026-05-30">e),detect_google_search_app:!(!e||"2026-05-30">e),disable_capture_url_hashes:!(!e||"2026-06-25">e),cookieWinsOnConflict:!(!e||"unset"===e||"2026-08-29">e)}))(e))},Tl=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["__preview_disable_beacon","disable_beacon"],["store_google","save_campaign_params"],["verbose","debug"],["__preview_cookie_wins_on_conflict","cookieWinsOnConflict"]],Fl=e=>{var t={};for(var r of Tl){var i=r[0],n=r[1];V(e[i])||(t[n]=e[i])}var s=an({},t,e),o=e.__preview_external_dependency_versioned_paths;return V(o)||(V(e.strict_script_versioning)&&(s.strict_script_versioning=!!o),W(o)&&V(e.asset_host)&&(s.asset_host=o)),z(e.property_blacklist)&&(V(e.property_denylist)?s.property_denylist=e.property_blacklist:z(e.property_denylist)?s.property_denylist=[...e.property_blacklist,...e.property_denylist]:jr.error(Sl+e.property_denylist)),s};class Il{constructor(){this.__forceAllowLocalhost=!1}get Cl(){return this.__forceAllowLocalhost}set Cl(e){jr.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class Ml{Tl(e){if(e){var t=this.yl.indexOf(e);-1!==t&&this.yl.splice(t,1)}}Ml(e,t){return this.Tl(e),this.yl.push(t),null==t.initialize||t.initialize(),t}El(){return this.config.cookieless_mode===Ki||this.config.cookieless_mode===Gi&&this.consent.isRejected()}Il(){if(!this.Rl&&!this.config.segment&&!this.El()){var e,t,r,i="memory"===this.config.persistence||"sessionStorage"===this.config.persistence;(i||this.config.disable_persistence)&&(this.Pl||(i?(e="persistence is set to '"+this.config.persistence+"'",t="memory"===this.config.persistence?"on every page load":"for every new browser tab or window",r="Either set persistence to 'localStorage+cookie', or keep this persistence and pass a stable ID through bootstrap.distinctID."):(e="persistence is disabled (disable_persistence is true)",t="on every page load",r="Either set disable_persistence to false, or keep persistence disabled and pass a stable ID through bootstrap.distinctID."),this.Rl=!0,console.warn("[PostHog.js]",e+" but no bootstrap.distinctID was provided. PostHog will mint a new distinct ID "+t+", so calling identify() merges a new ID onto the person each time. A person can then pass the distinct-ID limit and its events stop appearing on person pages and the session tab. "+r)))}}Al(){if(!this.El()&&this.get_distinct_id()===zi){var e=this.persistence;if(e){this.Fl()||e.load(!0);var t=this.get_distinct_id();if(!t||t===zi){var r=this.config.get_device_id(xn());this.register({distinct_id:r,$device_id:r}),e.set_property(Mi,Ji)}this.Ol()}}}get decideEndpointWasHit(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&void 0!==e&&e}get flagsEndpointWasHit(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&void 0!==e&&e}constructor(){var e;this.webPerformance=new Il,this.Ll=!1,this.version=g.LIB_VERSION,this.Dl=new Set,this.$l="",this.kl=new Ha,this.yl=[],this.Nl=[],this.Pl=!1,this.Rl=!1,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=Rl(),this.SentryIntegration=Ns,this.sentryIntegration=e=>function(e,t){var r=$s(e,t);return{name:js,processEvent:e=>r(e)}}(this,e),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.ql=!1,this.jl=null,this.Bl=null,this.Hl=null,this.scrollManager=new za(this),this.pageViewManager=new Ls(this),this.rateLimiter=new Uo(this),this.requestRouter=new ol(this),this.consent=new Hn(this),this.externalIntegrations=new fl(this);var t=null!==(e=Ml.__defaultExtensionClasses)&&void 0!==e?e:{};this.featureFlags=t.featureFlags&&new t.featureFlags(this),this.toolbar=t.toolbar&&new t.toolbar(this),this.surveys=t.surveys&&new t.surveys(this),this.conversations=t.conversations&&new t.conversations(this),this.logs=t.logs&&new t.logs(this),this.metrics=t.metrics&&new t.metrics(this),this.experiments=t.experiments&&new t.experiments(this),this.exceptions=t.exceptions&&new t.exceptions(this),this.people={set:(e,t,r)=>{var i=W(e)?{[e]:t}:e;this.setPersonProperties(i),null==r||r({})},set_once:(e,t,r)=>{var i=W(e)?{[e]:t}:e;this.setPersonProperties(void 0,i),null==r||r({})}},this.on("eventCaptured",e=>jr.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,r){if(r&&r!==Ol){var i,n=null!==(i=bl[r])&&void 0!==i?i:new Ml;return n._init(e,t,r),bl[r]=n,bl[Ol][r]=n,n}return this._init(e,t,r)}_init(e,t,r){var n,s,o;void 0===t&&(t={});var a,l=W(e)?e.trim():"";if(!l)return jr.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return l!==(null==(a=this.config)?void 0:a.token)?console.warn("[PostHog.js]","You have already initialized PostHog with a different project token! Re-initializing is a no-op, so events will keep going to the project this instance was initialized with. To capture into a second project, load PostHog once, then initialize a named instance after the SDK has loaded, e.g. posthog.init('"+l+"', { ... }, 'project2')"):console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config=Rl(t.defaults),t.debug=this.zl(t.debug),this.Ul=t,this.Wl=[],t.person_profiles?this.Bl=t.person_profiles:t.process_person&&(this.Bl=t.process_person);var u=Rl(t.defaults),c=Fl(t),d=an({},u,c,{name:r,token:l});q(u.rageclick)&&q(c.rageclick)&&(d.rageclick=an({},u.rageclick,c.rageclick)),q(u.session_recording)&&q(c.session_recording)&&(d.session_recording=an({},u.session_recording,c.session_recording)),this.set_config(d),this.config.on_xhr_error&&jr.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:ko;var h=this.Fl();if(this.persistence=new wo(this.config,h),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new wo(b({},this.config,{persistence:"sessionStorage"}),h,!1),this.$l="ph_"+(this.config.persistence_name||this.config.token)+"_session_registered_properties","memory"!==this.config.persistence&&!h&&qn.ii()){var p=qn.ui(this.$l);z(p)&&p.forEach(e=>{W(e)&&this.Dl.add(e)})}else qn.oi(this.$l);var f=b({},this.persistence.props),v=b({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Vl=new La(e=>this.Gl(e),this.config.request_queue_config),this.Zl=new Ba(this),this.__request_queue=[];var m=this.El();m||(this.sessionManager=new Ga(this),this.sessionPropsManager=new qa(this,this.sessionManager,this.persistence),this.sessionManager.onSessionId((e,t,r)=>{(null!=r&&r.activityTimeout||null!=r&&r.sessionPastMaximumLength||null!=r&&r.crossTabAdoption)&&this.Ql()})),this.Jl(),this.config.__preview_deferred_init_extensions?(jr.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.Kl(m)},0)):(jr.info("Initializing extensions synchronously"),this.Kl(m)),g.DEBUG=g.DEBUG||this.config.debug,g.DEBUG&&jr.info("Starting in debug mode",{this:this,config:t,thisC:b({},this.config),p:f,s:v}),!this.config.identity_distinct_id||null!=(n=t.bootstrap)&&n.distinctID||(t.bootstrap=b({},t.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0}));var _=null==(s=t.bootstrap)?void 0:s.distinctID;if(this.Pl=!!_&&!G(_),void 0!==(null==(o=t.bootstrap)?void 0:o.distinctID)){var y=t.bootstrap.distinctID,w=this.get_distinct_id(),x=this.persistence.get_property(Mi);if(t.bootstrap.isIdentifiedID&&null!=w&&w!==y&&x===Ji)this.identify(y);else if(t.bootstrap.isIdentifiedID&&null!=w&&w!==y&&x===Yi)jr.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var k=this.config.get_device_id(xn()),E=t.bootstrap.isIdentifiedID?k:y;this.persistence.set_property(Mi,t.bootstrap.isIdentifiedID?Yi:Ji),this.register({distinct_id:y,$device_id:E})}}if(m)this.register_once({distinct_id:zi,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(xn());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(Mi,Ji)}return fn(i,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),t.segment?function(e,t){var r=e.config.segment;if(!r)return t();!function(e,t){var r=e.config.segment;if(!r)return t();var i=r=>{var i=()=>r.anonymousId()||xn();e.config.get_device_id=i,r.id()&&(e.register({distinct_id:r.id(),$device_id:i()}),e.persistence.set_property(Mi,Yi)),t()},n=r.user();"then"in n&&U(n.then)?n.then(i):i(n)}(e,()=>{r.register((e=>{"undefined"!=typeof Promise&&Promise.resolve||Ms.warn("This browser does not have Promise support, and can not use the segment integration");var t=(t,r)=>{if(!r)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(Ms.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(Ms.info("UserId set, identifying with PostHog"),e.identify(t.event.userId));var i=e.calculateEventProperties(r,t.event.properties);return t.event.properties=Object.assign({},i,t.event.properties),t};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>t(e,e.event.event),page:e=>t(e,en),identify:e=>t(e,rn),screen:e=>t(e,"$screen")}})(e)).then(()=>{t()})})}(this,()=>this.Yl()):this.Yl(),U(this.config._onCapture)&&this.config._onCapture!==wl&&(jr.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&jr.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this.config.disableDeviceModel||function(){return Ja.apply(this,arguments)}().then(e=>{e&&this.register({[Vr]:e})}).catch(wl),this}Xl(e){var t=e;return W(t.name)&&U(t.setup)}tu(e,t){this.Xl(e)?t.push(()=>{this.eu().add(e).catch(()=>null==e.dispose?void 0:e.dispose()).catch(t=>{jr.error('Failed to dispose browser extension "'+e.name+'"',t)})}):this.yl.push(e)}Jl(){var e,t,r,i,n,s,o=null!==(e=null==(t=this.config.__extensionClasses)?void 0:t.featureFlags)&&void 0!==e?e:null==(r=Ml.__defaultExtensionClasses)?void 0:r.featureFlags;o&&(this.featureFlags&&this.featureFlags instanceof o||(null==(i=this.iu)||i.call(this),this.iu=void 0,this.featureFlags=new o(this)),U(this.featureFlags.onReloading)&&U(this.featureFlags.setup)?this.iu||(this.iu=this.featureFlags.onReloading(()=>{this.kl.emit("featureFlagsReloading",!0)}),this.eu().add(this.featureFlags)):null==(n=(s=this.featureFlags).initialize)||n.call(s))}Kl(e){var t,r,i,n,s,o,a,l=performance.now(),u=b({},Ml.__defaultExtensionClasses,this.config.__extensionClasses),c=[];u.exceptions&&this.yl.push(this.exceptions=null!==(t=this.exceptions)&&void 0!==t?t:new u.exceptions(this)),u.historyAutocapture&&this.yl.push(this.historyAutocapture=new u.historyAutocapture(this)),u.tracingHeaders&&this.yl.push(this.tracingHeaders=new u.tracingHeaders(this)),u.siteApps&&this.yl.push(this.siteApps=new u.siteApps(this)),u.sessionRecording&&!e&&this.yl.push(this.sessionRecording=new u.sessionRecording(this)),this.config.disable_scroll_properties||c.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),u.autocapture&&this.tu(this.autocapture=new u.autocapture(this),c),u.surveys&&this.tu(this.surveys=null!==(r=this.surveys)&&void 0!==r?r:new u.surveys(this),c),u.logs&&this.tu(this.logs=null!==(i=this.logs)&&void 0!==i?i:new u.logs(this),c),u.metrics&&this.yl.push(this.metrics=null!==(n=this.metrics)&&void 0!==n?n:new u.metrics(this)),u.conversations&&this.yl.push(this.conversations=null!==(s=this.conversations)&&void 0!==s?s:new u.conversations(this)),u.productTours&&this.yl.push(this.productTours=new u.productTours(this)),u.heatmaps&&this.yl.push(this.heatmaps=new u.heatmaps(this)),u.webVitalsAutocapture&&this.yl.push(this.webVitalsAutocapture=new u.webVitalsAutocapture(this)),u.exceptionObserver&&this.yl.push(this.exceptionObserver=new u.exceptionObserver(this)),u.deadClicksAutocapture&&this.yl.push(this.deadClicksAutocapture=new u.deadClicksAutocapture(this,Fs)),u.toolbar&&this.yl.push(this.toolbar=null!==(o=this.toolbar)&&void 0!==o?o:new u.toolbar(this)),u.experiments&&this.yl.push(this.experiments=null!==(a=this.experiments)&&void 0!==a?a:new u.experiments(this)),this.yl.forEach(e=>{e.initialize&&c.push(()=>{null==e.initialize||e.initialize()})}),c.push(()=>{if(this.ru){var e=this.ru;this.ru=void 0,this.yl.forEach(t=>null==t.onRemoteConfig?void 0:t.onRemoteConfig(e))}}),this.nu(c,l)}nu(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout(()=>{this.nu(e,t)},0);var r=e.shift();if(r)try{r()}catch(e){jr.error("Error initializing extension:",e)}}var i=Math.round(performance.now()-t);this.register_for_session({[qi]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[Hi]:i}),this.config.__preview_deferred_init_extensions&&jr.info("PostHog extensions initialized ("+i+"ms)")}ho(e){var t;if(!o||!o.body)return jr.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.ho(e)},500);if(this.config.__preview_deferred_init_extensions&&(this.ru=e),this.wl=e,this.compression=void 0,e.ok){var r,i=e.config;i.supportedCompression&&!this.config.disable_compression&&(this.compression=M(i.supportedCompression,ko)?ko:M(i.supportedCompression,Eo)?Eo:void 0),null!=(r=i.analytics)&&r.endpoint&&(this.analyticsDefaultEndpoint=i.analytics.endpoint)}this.set_config({person_profiles:this.Bl?this.Bl:Zi}),null==(t=this.su)||t.handleRemoteConfig(e),this.yl.forEach(t=>null==t.onRemoteConfig?void 0:t.onRemoteConfig(e))}Yl(){try{this.config.loaded(this)}catch(e){jr.critical("`loaded` function failed",e)}if(this.au(),this.config.internal_or_test_user_hostname&&null!=a&&a.hostname){var e=a.hostname,t=this.config.internal_or_test_user_hostname;("string"==typeof t?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||this.El())&&this.ou()},1),this.lu=new Ho(this),this.lu.load()}au(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.Vl)||e.enable())}_dom_loaded(){this.is_capturing()&&sn(this.__request_queue,e=>this.Gl(e)),this.__request_queue=[],this.au()}_handle_unload(){var e,t,r,i,n;null==(e=this.surveys)||null==e.handlePageUnload||e.handlePageUnload(),null==(t=this.metrics)||t.flush("sendBeacon"),this.config.request_batching?(this.uu()&&this.capture(tn),null==(r=this.logs)||r.flushLogs("sendBeacon"),null==(i=this.Vl)||i.unload(),null==(n=this.Zl)||n.unload()):this.uu()&&this.capture(tn,null,{transport:"sendBeacon"})}_send_request(e){var t;this.__loaded?Cl?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)?e.fireCallbackOnDrop&&(null==e.callback||e.callback({statusCode:429})):(e.transport=e.transport||this.config.api_transport,e.headers=b({},this.config.request_headers,e.headers),e.compression="best-available"===e.compression?null!==(t=this.compression)&&void 0!==t?t:e.compressionFallback:e.compression,(V(this.config.disable_beacon)?this.config.__preview_disable_beacon:this.config.disable_beacon)&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(e=>{var t,r,i,n=b({},e);n.timeout=n.timeout||6e4;var s,o,a,l,u,c=null!==(t=n.transport)&&void 0!==t?t:"fetch";"sendBeacon"===c&&V(n.compression)&&n.data&&(n.compression=Eo),"POST"===n.method&&n.data&&("capture-body"===n.timestampMode?n.data={api_key:null!==(o=null==(u=(l=(z(s=n.data)?s:[s]).map(e=>b({},e,e.timestamp instanceof Date&&!isNaN(e.timestamp.getTime())?{timestamp:e.timestamp.toISOString()}:{})))[0])||null==(a=u.properties)?void 0:a.token)&&void 0!==o?o:null==u?void 0:u.token,batch:l,sent_at:(new Date).toISOString()}:"body"===n.timestampMode&&(n.data=function(e,t){return void 0===t&&(t=(new Date).toISOString()),z(e)?e.map(e=>b({},e,{sent_at:t})):b({},e,{sent_at:t})}(n.data))),n.url=ja(n.url,n.method,n.compression,n.timestampMode);var h=$a.filter(e=>!n.disableTransport||!e.transport||!n.disableTransport.includes(e.transport)),p=null!==(r=null==(i=function(e){for(var t=0;e.length>t;t++)if(e[t].transport===c)return e[t]}(h))?void 0:i.method)&&void 0!==r?r:h[0].method;if(!p)throw new Error("No available transport method");var f=e=>{try{p(e)}catch(e){Fa(e)?jr.warn(e):jr.error(e),null==n.callback||n.callback({statusCode:0,error:e})}};"sendBeacon"!==c&&n.data&&n.compression===ko&&d&&"undefined"!=typeof Promise&&!Ea?Ra(n).then(e=>{f(e)}).catch(t=>{if(Tt(t))return Ea=!0,void f(b({},n,{compression:void 0,url:ja(e.url,e.method,void 0,e.timestampMode)}));(e=>{if(!e||"object"!=typeof e)return!1;var t="name"in e?String(e.name):"";return Tt(e)||t===Ct})(t)&&(Ea=!0),f(n)}):p(n)})(b({},e,{callback:t=>{var r,i;this.rateLimiter.checkForLimiting(t),400>t.statusCode||null==(r=(i=this.config).on_request_error)||r.call(i,t),null==e.callback||e.callback(t)}}))):e.fireCallbackOnDrop&&(null==e.callback||e.callback({statusCode:0}))}Gl(e){this.Zl?this.Zl.retriableRequest(e):this._send_request(e)}_execute_array(e){yl++;try{var t,r=[],i=[],n=[];sn(e,e=>{if(e)if(z(t=e[0]))n.push(e);else if(U(e))try{e.call(this)}catch(t){jr.error("Error executing queued PostHog call",e,t)}else z(e)&&"alias"===t?r.push(e):z(e)&&-1!==t.indexOf("capture")&&U(this[t])?n.push(e):i.push(e)});var s=function(e,t){sn(e,function(e){try{if(z(e[0])){var r=t;on(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else t[e[0]].apply(t,e.slice(1))}catch(t){jr.error("Error executing queued PostHog call",e,t)}})};s(r,this),s(i,this),s(n,this)}finally{yl--}}push(e){if(yl>0&&z(e)&&W(e[0])){var t=Ml.prototype[e[0]];U(t)&&t.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,t,r){var i,n,s,o,a;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Vl){if(this.is_capturing())if(!V(e)&&W(e)){this.Al();var l=!this.config.opt_out_useragent_filter&&this._is_bot();if(!l||this.config.__preview_capture_bot_pageviews){var u=null!=r&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==u||!u.isRateLimited){null!=t&&t.$current_url&&!W(null==t?void 0:t.$current_url)&&(jr.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==t||delete t.$current_url),"$exception"!==e||null!=r&&r.hu||jr.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var c=new Date,d=(null==r?void 0:r.timestamp)||c,h=wt(null==r?void 0:r.uuid,xn),p={uuid:h,event:e,properties:this.calculateEventProperties(e,t||{},d,h)};e===en&&this.config.__preview_capture_bot_pageviews&&l&&(p.event="$bot_pageview",p.properties.$browser_type="bot"),u&&(p.properties.$lib_rate_limit_remaining_tokens=u.remainingTokens);var f="$feature_flag_called"===e&&!1===p.properties.$feature_flag_has_experiment&&!0===this.get_property(_i);(null==r?void 0:r.$set)&&!f&&(p.$set=null==r?void 0:r.$set);var v=null==r?void 0:r.$unset;v&&(p.$unset=v);var g,m,_,y=f?void 0:this.du(null==r?void 0:r.$set_once,e!==nn,e===rn);if(y&&(p.$set_once=y),null!=r&&r._noTruncate||(n=this.config.properties_string_max_length,s=p,o=e=>W(e)?e.slice(0,n):e,a=new Set,p=function e(t,r){if(t!==Object(t))return o?o(t):t;if(!a.has(t)){var i;if(a.add(t),z(t))i=[],sn(t,t=>{i.push(e(t))});else{var n={};on(t,(t,r)=>{a.has(t)||(n[r]=e(t,r))}),i=n}return i}}(s)),p.timestamp=d,V(null==r?void 0:r.timestamp)||(p.properties.$event_time_override_provided=!0,p.properties.$event_time_override_system_time=c),f&&(p.properties=function(e,t){void 0===t&&(t=[]);var r={},i=t=>{void 0!==e[t]&&(r[t]=e[t])};return E.forEach(i),t.forEach(i),r}(p.properties,Pl)),e===To||e===Fo){var w=null==t?void 0:t[Io],x=null==t?void 0:t[Mo];ul({id:w,current_iteration:x}),p.$set=b({},p.$set,{[(g={id:w,current_iteration:x},m=e===Fo?"responded":"dismissed",_="$survey_"+m+"/"+g.id,g.current_iteration&&g.current_iteration>0&&(_="$survey_"+m+"/"+g.id+"/"+g.current_iteration),_)]:!0})}else e===Ro&&(p.$set=b({},p.$set,{[jo]:(new Date).toISOString()}));if(e===Lo){var k=null==t?void 0:t[Bo];k&&(p.$set=b({},p.$set,{[Do+"/"+k]:(new Date).toISOString()}))}var S=b({},p.properties.$set,p.$set);if(H(S)||this.setPersonPropertiesForFlags(S),!J(this.config.before_send)){var P=this.ts(p);if(!P)return;(p=P).uuid=wt(p.uuid,xn)}this.kl.emit("eventCaptured",p);var O=null!==(i=null==r?void 0:r._url)&&void 0!==i?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),C={method:"POST",url:O,data:p,compression:"best-available",timestampMode:"recordings"===(null==r?void 0:r._batchKey)||/\/s\/(?:\?|$)/.test(O)?"body":"capture-body",batchKey:null==r?void 0:r._batchKey,transport:null==r?void 0:r.transport};return!this.config.request_batching||r&&(null==r||!r._batchKey)||null!=r&&r.send_instantly?this.Gl(C):this.Vl.enqueue(C),p}jr.critical("This capture call is ignored due to client rate limiting.")}}else jr.error("No event name provided to posthog.capture")}else jr.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",t=>e(t.event,t))}getExtension(e){var t;return null==(t=this.su)?void 0:t.getExtension(e)}eu(){var e;return null!==(e=this.su)&&void 0!==e?e:this.su=new _l(this)}xl(e){this.Nl.push(e);var t=!0;return()=>{if(t){t=!1;var r=this.Nl.indexOf(e);-1!==r&&this.Nl.splice(r,1)}}}vu(e){var t,r,i;return void 0===e&&(e=!0),!(null==(t=this.persistence)||!t.consumeCookieIdentityChange()||(this.Hl=null,this.persistence.get_property(Mi)===Ji&&(null==(i=this.sessionPersistence)||i.clear(),this.Dl.clear(),this.cu()),null==(r=this.featureFlags)||r.reset(),e&&this.reloadFeatureFlags(),0))}calculateEventProperties(e,t,r,n,s){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return t;this.persistence.syncCookieProperties(),this.vu();var l=s?void 0:this.persistence.remove_event_timer(e),u=b({},t);if(u.token=this.config.token,u.$config_defaults=this.config.defaults,this.El()&&(u[Ui]=!0),"$snapshot"===e){var c=b({},this.persistence.properties(),this.sessionPersistence.properties());return u.distinct_id=c.distinct_id,(!W(u.distinct_id)&&!Y(u.distinct_id)||G(u.distinct_id))&&jr.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),u}var d,p=function(e,t,r,n){var s,o,l,u;if(void 0===n&&(n=!1),!h)return{};var c,d=e?[...Zs,...t||[]]:[],p=_t(h),f=p[0],v=p[1],m=null!=(c="undefined"!=typeof navigator?navigator:void 0)&&c.brave?{brave:!0}:{},_={};V(r)||(_.detectGoogleSearchApp=r);var b={},y=null==(s=navigator)||null==(s=s.userAgentData)?void 0:s.platform,w=null==(o=navigator)?void 0:o.maxTouchPoints,x=null==i||null==(l=i.screen)?void 0:l.width,k=null==i||null==(u=i.screen)?void 0:u.height,E=null==i?void 0:i.devicePixelRatio;V(y)||(b.userAgentDataPlatform=y),V(w)||(b.maxTouchPoints=w),V(x)||(b.screenWidth=x),V(k)||(b.screenHeight=k),V(E)||(b.devicePixelRatio=E);var S,P,O,C,A,R,T,F,I=an(dn({$os:f,$os_version:v,$browser:ft(h,navigator.vendor,m,_),$device:bt(h),$device_type:(P=h,O=b,F=bt(P),F===ge||F===ve||"Kobo"===F||"Kindle Fire"===F||F===We?fe:F===je||F===Ne||F===$e||F===qe?"Console":F===_e?"Wearable":F?de:"Android"===(null==O?void 0:O.userAgentDataPlatform)&&(null!==(C=null==O?void 0:O.maxTouchPoints)&&void 0!==C?C:0)>0?600>Math.min(null!==(A=null==O?void 0:O.screenWidth)&&void 0!==A?A:0,null!==(R=null==O?void 0:O.screenHeight)&&void 0!==R?R:0)/(null!==(T=null==O?void 0:O.devicePixelRatio)&&void 0!==T?T:1)?de:fe:"Desktop"),$timezone:uo(),$timezone_offset:co()}),{$current_url:Ws(n?kt(null==a?void 0:a.href):null==a?void 0:a.href,d,Xs),$host:null==a?void 0:a.host,$pathname:null==a?void 0:a.pathname,$raw_user_agent:h.length>1e3?h.substring(0,997)+"...":h,$browser_version:gt(h,navigator.vendor,m,_),$browser_language:no(),$browser_language_prefix:(S=no(),"string"==typeof S?S.split("-")[0]:void 0),$screen_height:null==i?void 0:i.screen.height,$screen_width:null==i?void 0:i.screen.width,$viewport_height:null==i?void 0:i.innerHeight,$viewport_width:null==i?void 0:i.innerWidth,$lib:g.LIB_NAME,$lib_version:g.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return g.SDK_DIST_CHANNEL&&(I.$sdk_dist_channel=g.SDK_DIST_CHANNEL),I}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties,this.config.detect_google_search_app,this.config.disable_capture_url_hashes);if(this.sessionManager){var f=this.sessionManager.checkAndGetSessionAndWindowId(s,r.getTime(),!0),v=f.windowId;u.$session_id=f.sessionId,u.$window_id=v}this.sessionPropsManager&&an(u,this.sessionPropsManager.getSessionProps());try{var m;this.sessionRecording&&an(u,this.sessionRecording.sdkDebugProperties),u.$sdk_debug_retry_queue_size=null==(m=this.Zl)?void 0:m.length}catch(e){u.$sdk_debug_error_capturing_properties=String(e)}if(this.requestRouter.region===rl&&(u.$lib_custom_api_host=this.config.api_host),d=e!==en||s?e!==tn||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,n),u=an(u,d),e===en&&o&&(u.title=o.title),!V(l)){var _=r.getTime()-l;u.$duration=parseFloat((_/1e3).toFixed(3))}h&&this.config.opt_out_useragent_filter&&(u.$browser_type=this._is_bot()?"bot":"browser");var y=this.persistence.properties(),w=this.sessionPersistence.properties();on(["$referrer","$referring_domain"],e=>{e in y&&delete w[e]});var x={};if(this.Nl.length>0)for(var k of this.Nl.slice())try{an(x,k())}catch(e){jr.error("Failed to produce browser extension event properties",e)}(u=an({},p,y,w,b({},x,u))).$is_identified=this._isIdentified(),z(this.config.property_denylist)?on(this.config.property_denylist,function(e){delete u[e]}):jr.error(Sl+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var E=this.config.sanitize_properties;E&&(jr.error(El),u=E(u,e));var S=this.fu();return u.$process_person_profile=S,S&&!s&&this.pu("_calculate_event_properties"),u}du(e,t,r){var i;if(void 0===t&&(t=!0),void 0===r&&(r=!1),!this.persistence||!this.fu())return e;if(this.Ll&&!r)return e;var n=this.persistence.get_initial_props(),s=null==(i=this.sessionPropsManager)?void 0:i.getSetOnceProps(),o=an({},n,s||{},e||{}),a=this.config.sanitize_properties;return a&&(jr.error(El),o=a(o,"$set_once")),t&&(this.Ll=!0),H(o)?void 0:o}register(e,t){var r;null==(r=this.persistence)||r.register(e,t)}register_once(e,t,r){var i;null==(i=this.persistence)||i.register_once(e,t,r)}register_for_session(e){var t,r;null==(t=this.persistence)||t.syncCookieProperties(),this.vu(),null==(r=this.sessionPersistence)||r.register(e),Object.keys(e).forEach(e=>this.Dl.add(e)),this.cu()}unregister(e){var t;null==(t=this.persistence)||t.unregister(e)}unregister_for_session(e){var t;null==(t=this.sessionPersistence)||t.unregister(e),this.Dl.delete(e),this.cu()}gu(e,t){this.register({[e]:t})}Ql(){this.Dl.forEach(e=>{var t;null==(t=this.sessionPersistence)||t.unregister(e)}),this.Dl.clear(),this.cu()}cu(){var e;if(this.$l)if("memory"===this.config.persistence||null!=(e=this.sessionPersistence)&&e.Ca||!qn.ii())qn.oi(this.$l);else{var t=[];this.Dl.forEach(e=>t.push(e)),t.length>0?qn.ni(this.$l,t):qn.oi(this.$l)}}getFeatureFlag(e,t){var r;return null==(r=this.featureFlags)?void 0:r.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t;return null==(t=this.featureFlags)?void 0:t.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){var r;return null==(r=this.featureFlags)?void 0:r.getFeatureFlagResult(e,t)}getAllFeatureFlags(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.getAllFeatureFlags())&&void 0!==e?e:[]}isFeatureEnabled(e,t){var r,i;return null!==(r=null==(i=this.featureFlags)?void 0:i.isFeatureEnabled(e,t))&&void 0!==r?r:null==t?void 0:t.defaultValue}reloadFeatureFlags(){var e;null==(e=this.featureFlags)||e.reloadFeatureFlags()}updateFlags(e,t,r){var i;null==(i=this.featureFlags)||i.updateFlags(e,t,r)}updateEarlyAccessFeatureEnrollment(e,t,r){var i;null==(i=this.featureFlags)||i.updateEarlyAccessFeatureEnrollment(e,t,r)}getEarlyAccessFeatures(e,t,r){var i;return void 0===t&&(t=!1),null==(i=this.featureFlags)?void 0:i.getEarlyAccessFeatures(e,t,r)}on(e,t){return this.kl.on(e,t)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:kl}),()=>{})}onSessionId(e){var t,r;return null!==(t=null==(r=this.sessionManager)?void 0:r.onSessionId(e))&&void 0!==t?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys?this.surveys.getSurveys(e,t):e([],{isLoaded:!1,error:kl})}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,t):e([],{isLoaded:!1,error:kl})}renderSurvey(e,t){var r;null==(r=this.surveys)||r.renderSurvey(e,t)}displaySurvey(e,t){var r;void 0===t&&(t=dl),null==(r=this.surveys)||r.displaySurvey(e,t)}cancelPendingSurvey(e){var t;null==(t=this.surveys)||t.cancelPendingSurvey(e)}canRenderSurvey(e){var t,r;return null!==(t=null==(r=this.surveys)?void 0:r.canRenderSurvey(e))&&void 0!==t?t:{visible:!1,disabledReason:kl}}canRenderSurveyAsync(e,t){var r,i;return void 0===t&&(t=!1),null!==(r=null==(i=this.surveys)?void 0:i.canRenderSurveyAsync(e,t))&&void 0!==r?r:Promise.resolve({visible:!1,disabledReason:kl})}mu(e){return!e||G(e)?(jr.critical("Unique user id has not been set in posthog.identify"),!1):e===zi?(jr.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(jr.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and n
2ot a hardcoded string.'),!1)}identify(e,t,r){if(!this.__loaded||!this.persistence)return jr.uninitializedWarning("posthog.identify");if(Y(e)&&(e=e.toString(),jr.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.mu(e)&&this.pu("posthog.identify")){this.Al();var i=this.get_distinct_id(),n=this.persistence.syncCookieProperties()&&this.get_distinct_id()!==i,s=this.vu(!1),o=this.persistence.Ua(),a=!1;try{var l=this.get_distinct_id();this.register({$user_id:e}),this.get_property(Hr)||this.register_once({$had_persisted_distinct_id:!0,$device_id:l},""),e!==l&&e!==this.get_property(Wr)&&(this.unregister(Wr),this.register({distinct_id:e}));var u,c=(this.persistence.get_property(Mi)||Ji)===Ji,d=e!==l,h=!d&&c;if(d&&c)this.persistence.set_property(Mi,Yi),this.setPersonPropertiesForFlags({$set:t||{},$set_once:r||{}},!1),this.config.cookieWinsOnConflict&&this.persistence.Wa(),this.capture(rn,{distinct_id:e,$anon_distinct_id:l},{$set:t||{},$set_once:r||{}}),this.Hl=tl(e,t,r),null==(u=this.featureFlags)||u.setAnonymousDistinctId(l);else if(h){this.persistence.set_property(Mi,Yi);var p=t||{},f=r||{};this.setPersonPropertiesForFlags({$set:p,$set_once:f},!1),this.config.cookieWinsOnConflict&&this.persistence.Wa(),this.capture("$set",{$set:p,$set_once:f}),this.Hl=tl(e,t,r)}else(t||r)&&this.setPersonProperties(t,r);d||n||s?(this.reloadFeatureFlags(),this.featureFlags?this.featureFlags.resetFlagCallReported():this.unregister(Ri)):h&&(t||r)&&this.reloadFeatureFlags(),a=!0}finally{o&&this.persistence.Za(a)}}}setPersonProperties(e,t){if((e||t)&&this.pu("posthog.setPersonProperties")){var r=tl(this.get_distinct_id(),e,t);this.Hl!==r?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:t||{}},!0),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Hl=r):jr.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}unsetPersonProperties(e){var t,r=(z(e)?e:[e]).filter(e=>W(e)&&e.length>0);0!==r.length&&this.pu("posthog.unsetPersonProperties")&&(null==(t=this.featureFlags)||t.unsetPersonPropertiesForFlags(r,!0),this.capture("$set",{$unset:r}),this.Hl=null)}group(e,t,r){var i;if(e&&t){null==(i=this.persistence)||i.syncCookieProperties(),this.vu();var n=this.getGroups(),s=n[e]!==t;if(s&&this.resetGroupPropertiesForFlags(e),this.register({$groups:b({},n,{[e]:t})}),s||r){var o={$group_type:e,$group_key:t};r&&(o.$group_set=r),this.capture(nn,o)}r&&this.setGroupPropertiesForFlags({[e]:r}),s&&!r&&this.reloadFeatureFlags()}else jr.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){var r;void 0===t&&(t=!0),null==(r=this.featureFlags)||r.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(e){var t;void 0===e&&(e=!0),null==(t=this.featureFlags)||t.resetPersonPropertiesForFlags(e)}setGroupPropertiesForFlags(e,t){var r;void 0===t&&(t=!0),this.pu("posthog.setGroupPropertiesForFlags")&&(null==(r=this.featureFlags)||r.setGroupPropertiesForFlags(e,t))}resetGroupPropertiesForFlags(e){var t;null==(t=this.featureFlags)||t.resetGroupPropertiesForFlags(e)}reset(e){var t=Q(e)?e:null==e?void 0:e.resetDeviceID,r=Q(e)||null==e?void 0:e.bootstrap;this.yu(t,!1,r)}yu(e,t,r){var i,n,s;if(void 0===t&&(t=!1),jr.info("reset"),!this.__loaded)return jr.uninitializedWarning("posthog.reset");var o=null==r?void 0:r.sessionID;this.config.bootstrap=r||(null==(i=this.Ul)?void 0:i.bootstrap)||{},null==(n=this.featureFlags)||null==n.updateConfig||n.updateConfig(this.config,this.do());var a=this.get_property(Hr),l=this.get_property(Vr),u=this.get_property(ni),c=this.is_capturing();this.consent.reset(),t||!c||this.is_capturing()||console.warn("[PostHog.js]","reset() cleared the stored consent, and capturing is now off because of `opt_out_capturing_by_default`. Call opt_in_capturing() again, and prefer calling reset() before opting in rather than after.");var d=null==(s=this.persistence)||null==s.Ua?void 0:s.Ua(),h=!1;try{var p,f,v,g,m,_,y,w,x,k,E,S,P;if(null==(p=this.persistence)||p.clear(),null==(f=this.sessionPersistence)||f.clear(),this.Dl.clear(),this.cu(),V(u)||null==(k=this.persistence)||k.register({[ni]:u}),null==(v=this.surveys)||v.reset(),null==(g=this.featureFlags)||g.reset(),null==(m
vendor: 11,311 bytes, line 2
2=this.conversations)||m.reset(),null==(_=this.logs)||_.reset(),null==(y=this.metrics)||y.reset(),null==(w=this.persistence)||w.set_property(Mi,Ji),null==(x=this.sessionManager)||x.resetSessionId(),this.Hl=null,this.config.cookieless_mode===Ki)this.register_once({distinct_id:zi,$device_id:null},"");else{var O=this.config.get_device_id(xn());this.register_once({distinct_id:O,$device_id:e?O:a},""),e||V(l)||this.register({[Vr]:l})}if(this.register({$last_posthog_reset:(new Date).toISOString()},1),r&&(void 0===r.distinctID||this.El()||(null==(P=this.persistence)||P.set_property(Mi,r.isIdentifiedID?Yi:Ji),this.register({distinct_id:r.distinctID})),null==(E=this.featureFlags)||E.initialize(),!(V(o)||null!=(S=this.sessionManager)&&S.setBootstrapSessionId(o,!0)))){var C=b({},r);delete C.sessionID,this.config.bootstrap=C}delete this.config.identity_distinct_id,delete this.config.identity_hash,delete this.config.identity_claims,h=!0}finally{var A;d&&(null==(A=this.persistence)||null==A.Za||A.Za(h))}this.reloadFeatureFlags()}shutdown(e){var t=this;return _(function*(){var e,r,i,n,s,o,a;if(t.__loaded){t.eu().dispose(),null==(e=t.sessionRecording)||e.dispose(),null==(r=t.logs)||r.flushLogs("sendBeacon"),null==(i=t.metrics)||i.flush("sendBeacon"),null==(n=t.Vl)||n.unload(),null==(s=t.Zl)||s.unload();try{var l;null==(l=t.featureFlags)||l.destroy()}catch(e){jr.error("Error while destroying feature flags",e)}null==(o=t.persistence)||o.destroy(),null==(a=t.sessionPersistence)||a.destroy()}else jr.uninitializedWarning("posthog.shutdown")})()}setIdentity(e,t){var r;delete this.config.identity_claims,this.config.identity_distinct_id=e,this.config.identity_hash=t,this.alias(e),null==(r=this.conversations)||r.bu()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,delete this.config.identity_claims,null==(e=this.conversations)||e._u()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!==(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var t=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=t.sessionStartTimestamp,i=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t.sessionId);if(null!=e&&e.withTimestamp&&r){var n,s=null!==(n=e.timestampLookBack)&&void 0!==n?n:10;if(!r)return i;i+="?t="+Math.max(Math.floor(((new Date).getTime()-r)/1e3)-s,0)}return i}alias(e,t){return e===this.get_property(Ur)?(jr.critical("Attempting to create alias for existing People user - aborting."),-2):this.pu("posthog.alias")?(V(t)&&(t=this.get_distinct_id()),e!==t?(this.gu(Wr,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(jr.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=b({},this.config);if(q(e)){var r,i,n,s,o,a,l,u,c,d,h,p;an(this.config,Fl(e));var f=this.Fl();null==(r=this.persistence)||r.update_config(this.config,t,f),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new wo(b({},this.config,{persistence:"sessionStorage"}),f,!1);var v,m=this.zl(this.config.debug);Q(m)&&(this.config.debug=m),Q(this.config.debug)&&(this.config.debug?(g.DEBUG=!0,An.ii()&&An.ni("ph_debug",!0),jr.info("set_config",{config:e,oldConfig:t,newConfig:b({},this.config)})):(g.DEBUG=!1,An.ii()&&An.oi("ph_debug"))),null==(i=this.featureFlags)||null==i.updateConfig||i.updateConfig(this.config,this.do()),null==(n=this.exceptionObserver)||n.onConfigChange(),null==(s=this.exceptions)||s.onConfigChange(),null==(o=this.sessionRecording)||o.startIfEnabledOrStop(),null==(a=this.tracingHeaders)||a.startIfEnabledOrStop(),null==(l=this.autocapture)||l.startIfEnabled(),null==(u=this.heatmaps)||u.startIfEnabled(),("capture_pageview"in e||"disable_capture_url_hashes"in e)&&(null==(v=this.historyAutocapture)||v.startIfEnabledOrStop()),null==(c=this.exceptionObserver)||c.startIfEnabledOrStop(),null==(d=this.deadClicksAutocapture)||d.startIfEnabledOrStop(),null==(h=this.surveys)||h.loadIfEnabled(),this.Ol(),null==(p=this.externalIntegrations)||p.startIfEnabledOrStop()}}_overrideSDKInfo(e,t){g.LIB_NAME=e,g.LIB_VERSION=t}startSessionRecording(e){var t,r,i,n,s,o=!0===e,a={sampling:o||!(null==e||!e.sampling),linked_flag:o||!(null==e||!e.linked_flag),url_trigger:o||!(null==e||!e.url_trigger),event_trigger:o||!(null==e||!e.event_trigger)};Object.values(a).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),a.sampling&&(null==(r=this.sessionRecording)||r.overrideSampling()),a.linked_flag&&(null==(i=this.sessionRecording)||i.overrideLinkedFlag()),a.url_trigger&&(null==(n=this.sessionRecording)||n.overrideTrigger("url")),a.event_trigger&&(null==(s=this.sessionRecording)||s.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null==(e=this.sessionRecording)||!e.started)}captureException(e,t){if(this.exceptions){var r=new Error("PostHog syntheticException"),i=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(b({},i,t))}}addExceptionStep(e,t){var r;null==(r=this.exceptions)||r.addExceptionStep(e,t)}captureLog(e){var t;null==(t=this.logs)||t.captureLog(e)}get logger(){var e,t;return null!==(e=null==(t=this.logs)?void 0:t.logger)&&void 0!==e?e:Ml.wu}startExceptionAutocapture(e){this.set_config({capture_exceptions:null==e||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var t,r;return null!==(t=null==(r=this.toolbar)?void 0:r.loadToolbar(e))&&void 0!==t&&t}get_property(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}getSessionProperty(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}toString(){var e,t=null!==(e=this.config.name)&&void 0!==e?e:Ol;return t!==Ol&&(t=Ol+"."+t),t}_isIdentified(){var e,t;return(null==(e=this.persistence)?void 0:e.get_property(Mi))===Yi||(null==(t=this.sessionPersistence)?void 0:t.get_property(Mi))===Yi}fu(){var e,t;return!("never"===this.config.person_profiles||this.config.person_profiles===Zi&&!this._isIdentified()&&H(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[Wr])&&(null==(t=this.persistence)||null==(t=t.props)||!t[Bi]))}uu(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&!!this.config.capture_pageview}createPersonProfile(){this.fu()||this.pu("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.pu("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}pu(e){return"never"===this.config.person_profiles?(jr.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Il(),this.gu(Bi,!0),!0)}Fl(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==Gi)}Ol(){var e,t,r,i,n,s=this.Fl();return this.is_capturing()||null==(r=this.logs)||r.ku(),(null==(e=this.persistence)?void 0:e.Ca)!==s&&(null==(i=this.persistence)||i.set_disabled(s)),(null==(t=this.sessionPersistence)?void 0:t.Ca)!==s&&(null==(n=this.sessionPersistence)||n.set_disabled(s)),s&&(this.Dl.clear(),this.cu()),s}opt_in_capturing(e){var t;if(this.config.cookieless_mode!==Ki){if(this.El()){var r,i,n,s,o,a;null==(r=this.sessionRecording)||r.dispose({discardBufferedEvents:!0}),this.yu(!0,!0),null==(i=this.sessionManager)||i.destroy(),null==(n=this.pageViewManager)||n.destroy(),this.sessionManager=new Ga(this),this.pageViewManager=new Ls(this),this.persistence&&(this.sessionPropsManager=new qa(this,this.sessionManager,this.persistence));var l,u=null!==(s=null==(o=this.config.__extensionClasses)?void 0:o.sessionRecording)&&void 0!==s?s:null==(a=Ml.__defaultExtensionClasses)?void 0:a.sessionRecording;u&&(this.sessionRecording=this.Ml(this.sessionRecording,new u(this)),this.wl&&(null==(l=this.sessionRecording)||null==l.onRemoteConfig||l.onRemoteConfig(this.wl)))}var c,d;this.consent.optInOut(!0),this.Ol(),this.au(),null==(t=this.sessionRecording)||t.startIfEnabledOrStop(),this.config.cookieless_mode==Gi&&(null==(c=this.surveys)||c.loadIfEnabled()),(V(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!==(d=null==e?void 0:e.captureEventName)&&void 0!==d?d:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.ou()}else jr.warn(xl)}opt_out_capturing(){if(this.config.cookieless_mode!==Ki){var e,t,r=this.config.cookieless_mode===Gi?this.sessionRecording:void 0;null==r||r.dispose({discardBufferedEvents:!0}),this.config.cookieless_mode===Gi&&this.consent.isOptedIn()&&this.yu(!0,!0),this.consent.optInOut(!1),this.Ol(),this.config.cookieless_mode===Gi&&(this.register({distinct_id:zi,$device_id:null}),this.Tl(r),this.sessionRecording=void 0,null==(e=this.sessionManager)||e.destroy(),null==(t=this.pageViewManager)||t.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.ou(),this.au())}else jr.warn(xl)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return 1===e?"granted":0===e?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Ki||(this.config.cookieless_mode===Gi?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Ol()}_is_bot(){return s?Ka(s,this.config.custom_blocked_useragents):void 0}ou(){o&&("visible"===o.visibilityState?this.ql||(this.ql=!0,this.capture(en,{title:o.title},{send_instantly:!0}),this.jl&&(o.removeEventListener(Qi,this.jl),this.jl=null)):this.jl||(this.jl=this.ou.bind(this),fn(o,Qi,this.jl)))}debug(e){!1===e?(null==i||i.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==i||i.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)`."),this.set_config({debug:!0}))}do(){var e=this.Ul||{};return"advanced_disable_flags"in e?!!e.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(jr.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):function(e,t,r,i,n){var s=t in e&&!J(e[t]),o=r in e&&!J(e[r]);return s?e[t]:!!o&&(n&&n.warn("Config field '"+r+"' is deprecated. Please use '"+t+"' instead. The old field will be removed in a future major version."),e[r])}(e,"advanced_disable_flags","advanced_disable_decide",0,jr)}ts(e){var t;if(J(this.config.before_send))return e;var r=Object.keys(null!==(t=e.properties)&&void 0!==t?t:{}).filter(ee),i=z(this.config.before_send)?this.config.before_send:[this.config.before_send],n=e;
2for(var s of i)try{if(n=s(n),J(n)){var o="Event '"+e.event+"' was rejected in beforeSend function";return X(e.event)?jr.warn(o+". This can cause unexpected behavior."):jr.info(o),null}n.properties&&!H(n.properties)||jr.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}catch(t){return jr.error("Error in beforeSend function for event '"+e.event+"':",t),null}for(var a of r)if(n.properties&&J(n.properties[a]))return jr.warn("Event '"+e.event+"' had its '"+a+"' property removed in a beforeSend function. This property is required for ingestion, so the event will be dropped."),null;return n}getPageViewId(){var e;return null==(e=this.pageViewManager.ea)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(r)})}zl(e){var t=Q(e)&&!e,r=An.ii()&&"true"===An.ai("ph_debug");return!t&&(!!r||e)}}Ml.__defaultExtensionClasses={},Ml.wu=(()=>{var e=()=>{};return{trace:e,debug:e,info:e,warn:e,error:e,fatal:e}})(),function(e,t){for(var r=0;t.length>r;r++)e.prototype[t[r]]=cn(e.prototype[t[r]])}(Ml,["identify"]);class jl{constructor(e){this.disabled=!1===e;var t=q(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,r){if(this.disabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(e-i.x)+Math.abs(t-i.y)<this.thresholdPx&&this.timeoutMs>r-i.timestamp){if(this.clicks.push({x:e,y:t,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:r}];return!1}}var $l="$copy_autocapture",Nl=$r("[AutoCapture]");function Ll(e,t){return t.length>e?t.slice(0,e)+"...":t}function Dl(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&&!Kn(t));return t}class Bl{constructor(e){this.name="autocapture",this.Rs=!1,this.Ps=null,this.As=!1,this.Fs=!1,this.mn={enabled:!1,rageclick:!1,maskAllElementAttributes:!1,maskAllText:!1,disableCaptureUrlHashes:!1,remoteRequestsDisabled:!1},this.Os=!1,this.Ls=e,this.Ls.refresh(this.mn),this.rageclicks=new jl(this.mn.rageclick),this.Ds=null}setup(e){this.$s(),this.Ns=e;var t=e.onRemoteConfig(this.onRemoteConfig.bind(this));this.Os?t.dispose():(this.qs=t,this.startIfEnabled())}dispose(){var e;this.Os||(this.Os=!0,this.Ns=void 0,null==(e=this.qs)||e.dispose(),this.qs=void 0,this.js())}Bs(){return this.Ls.refresh(this.mn),this.mn}$s(){var e,t;return this.Bs(),this.mn.url_allowlist=null==(e=this.mn.url_allowlist)?void 0:e.map(e=>new RegExp(e)),this.mn.url_ignorelist=null==(t=this.mn.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),this.mn}Hs(){if(this.isBrowserSupported()){if(i&&o){var e=this.zs=e=>{e=e||(null==i?void 0:i.event);try{this.Us(e)}catch(e){Nl.error("Failed to capture event",e)}};if(fn(o,"submit",e,{capture:!0}),fn(o,"change",e,{capture:!0}),fn(o,"click",e,{capture:!0}),this.Bs().capture_copied_text){var t=this.Ws=e=>{e=e||(null==i?void 0:i.event);try{this.Us(e,$l)}catch(e){Nl.error("Failed to capture clipboard event",e)}};fn(o,"copy",t,{capture:!0}),fn(o,"cut",t,{capture:!0}),fn(o,"paste",t,{capture:!0})}}}else Nl.info("Disabling Automatic Event Collection because this browser is not supported")}js(){this.zs&&(null==o||o.removeEventListener("submit",this.zs,!0),null==o||o.removeEventListener("change",this.zs,!0),null==o||o.removeEventListener("click",this.zs,!0),this.zs=void 0),this.Ws&&(null==o||o.removeEventListener("copy",this.Ws,!0),null==o||o.removeEventListener("cut",this.Ws,!0),null==o||o.removeEventListener("paste",this.Ws,!0),this.Ws=void 0),this.Rs=!1}startIfEnabled(){!this.Os&&this.Ns&&this.isEnabled&&!this.Rs&&(this.Hs(),this.Rs=!0)}onRemoteConfig(e){if(!this.Os)if(this.As=!0,e.ok){var t=e.config;t.elementsChainAsString&&(this.Fs=t.elementsChainAsString);var r,i=t.autocapture_opt_out;Q(i)&&(null==(r=this.Ns)||r.kv.set(Kr,i),this.Ps=i),this.startIfEnabled()}else this.startIfEnabled()}setElementSelectors(e){this.Ds=e}getElementSelectors(e){var t,r=[];return null==(t=this.Ds)||t.forEach(t=>{var i=null==o?void 0:o.querySelectorAll(t);
vendor: 102,112 bytes, line 2
2null==i||i.forEach(i=>{e===i&&r.push(t)})}),r}get isEnabled(){var e,t;if(this.Os)return!1;var r=null==(e=this.Ns)?void 0:e.kv.get(Kr),i=this.Ps,n=this.Bs(),s=n.remoteRequestsDisabled&&!this.As;if(K(i)&&!Q(r)&&!s)return!1;var o=null!==(t=this.Ps)&&void 0!==t?t:!!r;return!!n.enabled&&!o}Us(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var r=is(e);Yn(r)&&(r=r.parentNode||null);var n,s=this.$s();"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&s.rageclick&&null!=(n=this.rageclicks)&&n.isRageClick(e.clientX,e.clientY,e.timeStamp||(new Date).getTime())&&ps(r,s.rageclick)&&this.Us(e,"$rageclick");var o=t===$l,a=o?b({},s,{dom_event_allowlist:void 0}):s;if(r&&function(e,t,r,n,s,o){var a;if(!i||fs(e))return!1;if(null!=r&&r.url_allowlist&&!Xn(r.url_allowlist,o))return!1;if(null!=r&&r.url_ignorelist&&Xn(r.url_ignorelist,o))return!1;if(null!=r&&r.dom_event_allowlist){var l=r.dom_event_allowlist;if(l&&!l.some(e=>t.type===e))return!1}var u=vs(e,n),c=u.parentIsUsefulElement,d=u.targetElementList;if(!function(e,t){var r=null==t?void 0:t.element_allowlist;if(V(r))return!0;var i,n=function(e){if(r.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var s of e)if(i=n(s))return i.v;return!1}(d,r))return!1;if(!ss(d,null==r?void 0:r.css_selector_allowlist))return!1;if(ss(d,null!==(a=null==r?void 0:r.css_selector_ignorelist)&&void 0!==a?a:as))return!1;try{var h=i.getComputedStyle(e);if(h&&"pointer"===h.getPropertyValue("cursor")&&"click"===t.type)return!0}catch(e){}var p=e.tagName.toLowerCase();switch(p){case"html":return!1;case"form":return(s||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(s||["change","click"]).indexOf(t.type)>=0;default:return c?(s||["click"]).indexOf(t.type)>=0:(s||["click"]).indexOf(t.type)>=0&&(ns.indexOf(p)>-1||"true"===e.getAttribute("contenteditable"))}}(r,e,a,o,o?["copy","cut","paste"]:void 0,{config:{get_current_url:s.getCurrentUrl}})){var l,u=function(e,t){var r,n,s=t.e,o=t.maskAllElementAttributes,a=t.maskAllText,l=t.elementAttributeIgnoreList,u=t.elementsChainAsString,c=t.disableCaptureUrlHashes;if(!Kn(e))return{props:{}};for(var d=[e],h=new Set([e]),p=e;p.parentNode&&!Jn(p,"body")&&1e3>d.length;)if(Zn(p.parentNode)){var f=p.parentNode.host;if(h.has(f))break;h.add(f),d.push(f),p=f}else{if(!Kn(p.parentNode))break;if(h.has(p.parentNode))break;h.add(p.parentNode),d.push(p.parentNode),p=p.parentNode}var v,g,m=[],_={},y=!1,w=!1;if(on(d,e=>{var t=gs(e);if(Jn(e,"a")){var r=e.getAttribute("href");y=!!(t&&r&&Ss(r))&&(c?kt(r):r)}M(es(e),"ph-no-capture")&&(w=!0),m.push(function(e,t,r,i,n){void 0===n&&(n=!1);var s=e.tagName.toLowerCase(),o={tag_name:s};ns.indexOf(s)>-1&&!r&&(o.$el_text="a"===s.toLowerCase()||"button"===s.toLowerCase()?Ll(1024,Ps(e)):Ll(1024,rs(e)));var a=es(e);a.length>0&&(o.classes=a.filter(function(e){return""!==e})),on(e.attributes,function(r){var s;if((!ms(e)||-1!==["name","id","class","aria-label"].indexOf(r.name))&&(null==i||!i.includes(r.name))&&!t&&Ss(r.value)&&(!W(s=r.name)||"_ngcontent"!==s.substring(0,10)&&"_nghost"!==s.substring(0,7))){var a=r.value;"class"===r.name&&(a=Qn(a).join(" ")),o["attr__"+r.name]=Ll(1024,"href"===r.name&&n?kt(a):a)}});for(var l=1,u=1,c=e;c=Dl(c);)l++,c.tagName===e.tagName&&u++;return o.nth_child=l,o.nth_of_type=u,o}(e,o,a,l,c));var i=function(e){if(!gs(e))return{};var t={};return on(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var r=e.name.replace("data-ph-capture-attribute-",""),i=e.value;r&&i&&Ss(i)&&(t[r]=i)}}),t}(e);on(i,(e,t)=>{({}).hasOwnProperty.call(_,t)||(_[t]=e)})}),w)return{props:{},explicitNoCapture:w};if(a||(m[0].$el_text=Jn(e,"a")||Jn(e,"button")?Ps(e):rs(e)),y){var x,k;m[0].attr__href=y;var E=null==(x=Hs(y))?void 0:x.host,S=null==i||null==(k=i.location)?void 0:k.host;E&&S&&E!==S&&(v=y)}return{props:an({$event_type:s.type,$ce_version:1},u?{}:{$elements:m},{$elements_chain:(g=m,z(g)?function(e){return e.map(e=>{var t,r,i="";if(e.tag_name&&(i+=e.tag_name),e.attr_class)for(var n of(e.attr_class.sort(),e.attr_class))i+="."+n.replace(/"/g,"");var s=b({},e.text?{text:e.text}:{},{"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(r=e.nth_of_type)&&void 0!==r?r:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),o={};return ln(s).sort((e,t)=>{return(i=t[0])>(r=e[0])?-1:r>i?1:0;var r,i}).forEach(e=>{var t=e[1];return o[Cs(e[0].toString())]=Cs(t.toString())}),(i+=":")+ln(o).map(e=>e[0]+'="'+e[1]+'"').join("")}).join(";")}(function(e){return e.map(e=>{var t,r,i={text:null==(t=e.$el_text)?void 0:t.slice(0,400),tag_name:e.tag_name,href:null==(r=e.attr__href)?void 0:r.slice(0,2048),attr_class:As(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return ln(e).filter(e=>0===e[0].indexOf("attr__")).forEach(e=>i.attributes[e[0]]=e[1]),i})}(g)):"")},null!=(r=m[0])&&r.$el_text?{$el_text:null==(n=m[0])?void 0:n.$el_text}:{},v&&"click"===s.type?{$external_click_url:v}:{},_)}}(r,{e,maskAllElementAttributes:s.maskAllElementAttributes,maskAllText:s.maskAllText,elementAttributeIgnoreList:s.element_attribute_ignorelist,elementsChainAsString:this.Fs,disableCaptureUrlHashes:s.disableCaptureUrlHashes}),c=u.props;if(u.explicitNoCapture)return!1;var d=this.getElementSelectors(r);if(d&&d.length>0&&(c.$element_selectors=d),t===$l){var h=e.type||"clipboard";if("paste"!==h){var p,f,v=null==i||null==(p=i.getSelection())?void 0:p.toString(),g=ts(v);if(!g)return!1;c.$selected_content=g,c.$clipboard_text_length=null!==(f=null==v?void 0:v.length)&&void 0!==f?f:0}c.$copy_type=h}return null==(l=this.Ns)||l.capture(t,c).catch(e=>Nl.error("Failed to capture event",e)),!0}}}isBrowserSupported(){return U(null==o?void 0:o.querySelectorAll)}}class zl{constructor(e){this._instance=e}refresh(e){var t=this._instance.config,r=q(t.autocapture)?t.autocapture:void 0;e.enabled=!!t.autocapture,e.rageclick=t.rageclick,e.maskAllElementAttributes=t.mask_all_element_attributes,e.maskAllText=t.mask_all_text,e.disableCaptureUrlHashes=t.disable_capture_url_hashes,e.getCurrentUrl=t.get_current_url,e.remoteRequestsDisabled=this._instance.do(),e.url_allowlist=null==r?void 0:r.url_allowlist,e.url_ignorelist=null==r?void 0:r.url_ignorelist,e.dom_event_allowlist=null==r?void 0:r.dom_event_allowlist,e.element_allowlist=null==r?void 0:r.element_allowlist,e.css_selector_allowlist=null==r?void 0:r.css_selector_allowlist,e.css_selector_ignorelist=null==r?void 0:r.css_selector_ignorelist,e.element_attribute_ignorelist=null==r?void 0:r.element_attribute_ignorelist,e.capture_copied_text=null==r?void 0:r.capture_copied_text}}var Ul=$r("[ExceptionAutocapture]"),ql=()=>{},Hl=e=>{var t;if(U(e))return null!==(t=e.__posthog_layer__)&&void 0!==t?t:e.__rrweb_layer__};function Vl(e,t,r){try{if(!(t in e))return ql;var i={next:e[t]},n=r(function(){for(var e=arguments.length,t=new Array(e),r=0;e>r;r++)t[r]=arguments[r];return i.next.apply(this,t)});return U(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0},__posthog_layer__:{enumerable:!1,value:i}})),e[t]=n,()=>{if(e[t]!==n)for(var r=e[t],s=Hl(r);s;){if(s.next===n)return void(s.next=i.next);s=Hl(r=s.next)}else e[t]=i.next}}catch(e){return ql}}var Wl=$r("[TracingHeaders]"),Gl=$r("[Web Vitals]"),Kl=9e5,Jl=["CLS","FCP","INP","LCP"],Yl=["INP","LCP"],Zl=["interactionTarget","interactionType","inputDelay","processingDuration","presentationDelay","loadState","target","url","timeToFirstByte","resourceLoadDelay","resourceLoadDuration","elementRenderDelay","largestShiftTarget","largestShiftTime","largestShiftValue","firstByteToFCP"],Ql="disabled",Xl="lazy_loading",eu="awaiting_config",tu="missing_config";$r("[SessionRecording]"),$r("[SessionRecording]");var ru="[SessionRecording]",iu=$r(ru),nu=$r("[Heatmaps]");function su(e){return q(e)&&"clientX"in e&&"clientY"in e&&Y(e.clientX)&&Y(e.clientY)}var ou=$r("[Product Tours]"),au=e=>{var t;return!e.config.disable_product_tours&&!(null==(t=e.persistence)||!t.get_property(ti))},lu=["$set_once","$set"],uu=$r("[SiteApps]"),cu="Error while initializing PostHog app with config id ",du=(e,t)=>null!=e&&e.then?e.then(t):t(e),hu="SDK is not enabled or survey functionality is not yet loaded",pu="Disabled. Not loading surveys.";class fu{constructor(e,t){this.name="surveys",this._surveyEventReceiver=null,this._surveyManager=null,this.Su=!1,this.xu=[],this.Cu=null,this.Tu=null,this.Os=!1,this.Mu=new Set,this.onRemoteConfig=e=>{if(!this.Os&&!this.mn.disableSurveys){if(!e.ok)return al.warn("Remote config unavailable. Not loading surveys.");var t=e.config.surveys;if(J(t))return al.warn("Flags not loaded yet. Not loading surveys.");this.Eu=Q(t)?t:t.length>0,al.info("flags response received, isSurveysEnabled: "+this.Eu),this.loadIfEnabled()}},this.Ls=e,this.Iu=t}setup(e){if(!this.Os)return this.Ru=e,du(e.kv.initialize(),()=>{if(this.Ru===e&&!this.Os){this.Ru=void 0,this.Ns=e;var t=e.onRemoteConfig(this.onRemoteConfig);this.Os?t.dispose():(this.qs=t,this.loadIfEnabled())}})}dispose(){var e,t,r;this.Os||(this.Os=!0,this.Ru=void 0,this.Ns=void 0,null==(e=this.qs)||e.dispose(),this.qs=void 0,null==(t=this._surveyEventReceiver)||t.dispose(),this._surveyEventReceiver=null,null==(r=this._surveyManager)||null==r.dispose||r.dispose(),this._surveyManager=null,this.xu=[],this.Cu=null,this.Mu.forEach(e=>clearTimeout(e)),this.Mu.clear())}get mn(){return this.Ls.get()}initialize(){this.loadIfEnabled()}reset(){try{var e;null==(e=this._surveyEventReceiver)||e.reset(),localStorage.removeItem("lastSeenSurveyDate");for(var t=[],r=0;r<localStorage.length;r++){var i=localStorage.key(r);(null!=i&&i.startsWith(ll)||null!=i&&i.startsWith("inProgressSurvey_"))&&t.push(i)}t.forEach(e=>localStorage.removeItem(e))}catch(e){}}loadIfEnabled(){if(!this.Os&&this.Ns){var e=this.mn;if(!this._surveyManager)if(this.Su)al.info("Already initializing surveys, skipping...");else if(e.disableSurveys)al.info(pu);else if(e.cookielessMode&&this.Ls.isOptedOut())al.info("Not loading surveys in cookieless mode without consent.");else{var t=this.Ls.getExtensions();if(t){if(!V(this.Eu)||e.advancedEnableSurveys){var r=this.Eu||e.advancedEnableSurveys;this.Su=!0;try{var i=t.generateSurveys;if(i)return this.Pu(i,r),void(this.Su=!1);var n=t.loadExternalDependency;if(!n)return this.Au(Wi),void(this.Su=!1);n(e=>{try{if(this.Os)return;var t=this.Ls.getExtensions();e||null==t||!t.generateSurveys?this.Au("Could not load surveys script",e):this.Pu(t.generateSurveys,r)}finally{this.Su=!1}})}catch(e){throw this.Su=!1,this.Au("Error initializing surveys",e),e}}}else al.error("PostHog Extensions not found.")}}}Pu(e,t){this.Os||(this._surveyManager=e(t),this._surveyEventReceiver=this.Ls.createEventReceiver(),al.info("Surveys loaded successfully"),this.Fu({isLoaded:!0}))}Au(e,t){al.error(e,t),this.Fu({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.xu.push(e),this._surveyManager&&this.Fu({isLoaded:!0}),()=>{this.xu=this.xu.filter(t=>t!==e)}}getSurveys(e,t){var r;void 0===t&&(t=!1);var i=null!==(r=this.Ns)&&void 0!==r?r:this.Iu;if(i&&!this.Os){if(this.mn.disableSurveys)return al.info(pu),e([]);var n=i.kv.get(Ei);if(n&&!t)return e(n,{isLoaded:!0}),void(this.Ou()&&this.getSurveys(()=>{},!0));if(this.Cu)this.Cu.then(t=>{this.Os||e(t.surveys,t.context)}).catch(e=>al.error("Error in survey callback",e));else{var s=this.Lu("/api/surveys/",{method:"GET",query:{token:i.projectToken},sentAt:"query",timeoutMs:this.mn.requestTimeoutMs}).then(e=>{try{return this.Du(i,e)}catch(e){return al.error("Error processing surveys response",e),this.Du(i,{statusCode:0,error:e})}},e=>this.Du(i,{statusCode:0,error:e}));this.Cu=s;var o=()=>{this.Cu===s&&(this.Cu=null)};s.then(t=>{o(),this.Os||e(t.surveys,t.context)},o).catch(e=>al.error("Error in survey callback",e))}}}Lu(e,t){var r=this.Ns;return r?r.sendRequest(e,t):new Promise(e=>e({statusCode:0,error:new Error(hu)}))}Du(e,t){if(this.Os)return{surveys:[],context:{isLoaded:!1,error:hu}};var r=t.statusCode;if(200!==r||!t.json){var i="Surveys API could not be loaded, status: "+r;return 0!==r?al.error(i):t.error||al.warn(i),this.Tu=Date.now(),{surveys:[],context:{isLoaded:!1,error:i}}}this.Tu=null;var n,s=t.json.surveys||[],o=s.filter(e=>function(e){return!(!e.start_date||e.end_date)}(e)&&(Ya(e)||function(e){var t;return!(null==(t=e.conditions)||null==(t=t.actions)||null==(t=t.values)||!t.length)}(e)));return o.length>0&&(null==(n=this._surveyEventReceiver)||n.register(o)),e.kv.set({[Ei]:s,[Si]:Date.now()}),{surveys:s,context:{isLoaded:!0}}}Ou(){return this.$u()&&!this.Cu&&!this.Nu()}$u(){var e,t,r=null==(e=null!==(t=this.Ns)&&void 0!==t?t:this.Iu)?void 0:e.kv.get(Si);return Y(r)&&Date.now()-r>3e5}Nu(){return Y(this.Tu)&&3e5>Date.now()-this.Tu}markSurveyAsSeen(e,t){var r,i={id:e,current_iteration:null!==(r=null==t?void 0:t.iteration)&&void 0!==r?r:null};ul(i);try{localStorage.setItem("lastSeenSurveyDate",(new Date).toISOString())}catch(e){}}Fu(e){for(var t of this.xu)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(e){al.error("Error in survey callback",e)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!J(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);al.warn("init was not called")}qu(e){var t=null;return this.getSurveys(r=>{var i;t=null!==(i=r.find(t=>t.id===e))&&void 0!==i?i:null}),t}ju(e){if(J(this._surveyManager))return{eligible:!1,reason:hu};var t="string"==typeof e?this.qu(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}Bu(e){if(J(this._surveyManager))return{eligible:!1,reason:hu};var t="string"==typeof e?this.qu(e):e;return t?this._surveyManager.checkSurveyRenderability(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(J(this._surveyManager))return al.warn("init was not called"),{visible:!1,disabledReason:hu};var t=this.Bu(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return J(this._surveyManager)?(al.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:hu})):new Promise(r=>{this.getSurveys(t=>{var i,n=null!==(i=t.find(t=>t.id===e))&&void 0!==i?i:null;if(n){var s=this.Bu(n);r({visible:s.eligible,disabledReason:s.reason})}else r({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t,r){var i;if(J(this._surveyManager))al.warn("init was not called");else{var n="string"==typeof e?this.qu(e):e;if(null!=n&&n.id)if(cl.includes(n.type)){var s=null==o?void 0:o.querySelector(t);if(s)if(null!=(i=n.appearance)&&i.surveyPopupDelaySeconds){al.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds");var a=setTimeout(()=>{var e,t;this.Mu.delete(a),this.Os||(al.info("Rendering survey "+n.id+" with delay of "+(null==(e=n.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(n,s,r),al.info("Survey "+n.id+" rendered"))},1e3*n.appearance.surveyPopupDelaySeconds);this.Mu.add(a)}else this._surveyManager.renderSurvey(n,s,r);else al.warn("Survey element not found")}else al.warn("Surveys of type "+n.type+" cannot be rendered in the app");else al.warn("Survey not found")}}displaySurvey(e,t){var r;if(J(this._surveyManager))al.warn("init was not called");else{var i=this.qu(e);if(i){var n=i;if(null!=(r=i.appearance)&&r.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=b({},i,{appearance:b({},i.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==$o&&t.initialResponses&&al.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),!1===t.ignoreConditions){var s=this.ju(i);if(!s.eligible)return void al.warn("Survey is not eligible to be displayed: ",s.reason)}t.displayType!==No?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else al.warn("Survey not found")}}cancelPendingSurvey(e){J(this._surveyManager)?al.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;null==(e=this._surveyManager)||null==e.handlePageUnload||e.handlePageUnload()}}function vu(e,t,r){if(J(e))return!1;switch(r){case"exact":return e===t;case"contains":var i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(i,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch(e){return!1}default:return!1}}class gu{constructor(e){this.Hu=new Set,this.zu=new Set,this.Uu=new Ha,this.Wu=(e,t)=>this.Vu(e,t)&&this.Gu(e,t)&&this.Zu(e,t)&&this.Qu(e,t),this.Vu=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e}init(){var e,t;V(null==(e=this._instance)?void 0:e._addCaptureHook)||(this.Ju=null==(t=this._instance)?void 0:t._addCaptureHook((e,t)=>{this.on(e,t)}))}dispose(){var e;null==(e=this.Ju)||e.call(this),this.Ju=void 0,this.Uu=new Ha}register(e){var t,r;if(!V(null==(t=this._instance)?void 0:t._addCaptureHook)&&(e.forEach(e=>{var t;this.Hu.add(e),null==(t=e.steps)||t.forEach(e=>{this.zu.add((null==e?void 0:e.event)||"")})}),null!=(r=this._instance)&&r.autocapture)){var i=new Set;this.Hu.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&i.add(e.selector)})}),this._instance.autocapture.setElementSelectors(i)}}replace(e){this.Hu.clear(),this.zu.clear(),this.register(e)}on(e,t){null!=t&&0!=e.length&&(this.zu.has(e)||this.zu.has(t.event))&&this.Hu.forEach(e=>{this.Ku(t,e)&&this.Uu.emit("actionCaptured",e.name)})}Yu(e){this.onAction("actionCaptured",t=>e(t))}Ku(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var r of t.steps)if(this.Wu(e,r))return!0;return!1}onAction(e,t){return this.Uu.on(e,t)}Gu(e,t){if(null!=t&&t.url){var r,i=null==e||null==(r=e.properties)?void 0:r.$current_url;if(!i||"string"!=typeof i)return!1;if(!vu(i,t.url,t.url_matching||"contains"))return!1}return!0}Zu(e,t){return!!this.Xu(e,t)&&!!this.th(e,t)&&!!this.eh(e,t)}Xu(e,t){var r;if(null==t||!t.href)return!0;var i=this.ih(e);if(i.length>0)return i.some(e=>vu(e.href,t.href,t.href_matching||"exact"));var n,s=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!s&&vu((n=s.match(/(?::|")href="(.*?)"/))?n[1]:"",t.href,t.href_matching||"exact")}th(e,t){var r;if(null==t||!t.text)return!0;var i=this.ih(e);if(i.length>0)return i.some(e=>vu(e.text,t.text,t.text_matching||"exact")||vu(e.$el_text,t.text,t.text_matching||"exact"));var n,s,o,a=(null==e||null==(r=e.properties)?void 0:r.$elements_chain)||"";return!!a&&(n=function(e){for(var t,r=[],i=/(?::|")text="(.*?)"/g;!J(t=i.exec(e));)r.includes(t[1])||r.push(t[1]);return r}(a),s=t.text,o=t.text_matching||"exact",n.some(e=>vu(e,s,o)))}eh(e,t){var r,i;if(null==t||!t.selector)return!0;var n=null==e||null==(r=e.properties)?void 0:r.$element_selectors;if(null!=n&&n.includes(t.selector))return!0;var s=(null==e||null==(i=e.properties)?void 0:i.$elements_chain)||"";if(t.selector_regex&&s)try{return new RegExp(t.selector_regex).test(s)}catch(e){return!1}return!1}ih(e){var t;return null==(null==e||null==(t=e.properties)?void 0:t.$elements)?[]:null==e?void 0:e.properties.$elements}Qu(e,t){return null==t||!t.properties||0===t.properties.length||el(t.properties.reduce((e,t)=>{var r=z(t.value)?t.value.map(String):null!=t.value?[String(t.value)]:[];return e[t.key]={values:r,operator:t.operator||"exact"},e},{}),null==e?void 0:e.properties)}}class mu{constructor(e){var t;this.rh=[],this._instance=e,this.nh=new Map,this.sh=new Map,this.ah=new Map,this.oh=null==(t=this._instance)||null==t.onSessionId?void 0:t.onSessionId(e=>this.lh(e))}uh(e){return!1}hh(){return null}dh(e){}fh(){}ph(e,t){return!!e&&el(e.propertyFilters,null==t?void 0:t.properties)}gh(e,t){var r=new Map;return e.forEach(e=>{var i;null==(i=e.conditions)||null==(i=i[t])||null==(i=i.values)||i.forEach(t=>{if(null!=t&&t.name){var i=r.get(t.name)||[];i.push(e.id),r.set(t.name,i)}})}),r}mh(e,t,r){var i=(r===So?this.nh:this.sh).get(e),n=[];return this.yh(e=>{n=e.filter(e=>null==i?void 0:i.includes(e.id))}),n.filter(i=>{var n,s=null==(n=i.conditions)||null==(n=n[r])||null==(n=n.values)?void 0:n.find(t=>t.name===e);return this.ph(s,t)})}register(e){this.bh(e,!1)}replace(e){this.bh(e,!0)}bh(e,t){var r;V(null==(r=this._instance)?void 0:r._addCaptureHook)||(this._h(e,t),this.wh(e,t))}wh(e,t){var r=e.filter(e=>{var t;return null==(t=e.conditions)||null==(t=t.actions)||null==(t=t.values)?void 0:t.length});if(t&&this.ah.clear(),0!==r.length){this.kh||(this.kh=new gu(this._instance),this.kh.init(),this.kh.Yu(e=>this.onAction(e)));var i=[];r.forEach(e=>{var t;null==(t=e.conditions)||null==(t=t.actions)||t.values.forEach(t=>{if(i.push(t),t.name){var r,n=null!==(r=this.ah.get(t.name))&&void 0!==r?r:[];n.includes(e.id)||n.push(e.id),this.ah.set(t.name,n)}})}),t?this.kh.replace(i):this.kh.register(i)}else{var n;t&&(null==(n=this.kh)||n.replace([]))}}Sh(e,t){t.forEach((t,r)=>{var i,n=null!==(i=e.get(r))&&void 0!==i?i:[];t.forEach(e=>{n.includes(e)||n.push(e)}),e.set(r,n)})}_h(e,t){var r,i,n=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.events)&&(null==(r=e.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0}),s=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.cancelEvents)&&(null==(r=e.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0}),o=this.gh(e,So),a=this.gh(e,Po);t?(this.nh=o,this.sh=a):(this.Sh(this.nh,o),this.Sh(this.sh,a)),(0!==n.length||0!==s.length)&&(null!==(r=this.Ju)&&void 0!==r||(this.Ju=null==(i=this._instance)?void 0:i._addCaptureHook((e,t)=>{this.onEvent(e,t)})))}onEvent(e,t){var r,i,n=this.xh(),s=(null==t||null==(r=t.properties)?void 0:r.$survey_id)||(null==t||null==(i=t.properties)?void 0:i.$product_tour_id);if(s&&this.getActivatedIds().includes(s)){var o=this.Ch(e,s);if("consume"===o)return n.info("event consumed activated item, removing it",{event:e,itemId:s}),void this.Th([s]);if("persist"===o)return n.info("shown item promoted to persisted activation",{event:e,itemId:s}),this.Mh(s),void this.Eh([s])}if(this.sh.has(e)){var a=this.mh(e,t,Po);a.length>0&&(n.info("cancel event matched, cancelling items",{event:e,itemsToCancel:a.map(e=>e.id)}),this.Th(a.map(e=>e.id)),a.forEach(e=>this.Ih(e.id)))}if(this.nh.has(e)){n.info("event name matched",{event:e,eventPayload:t,items:this.nh.get(e)});var l=this.mh(e,t,So);this.Rh(l.map(e=>e.id))}}onAction(e){this.ah.has(e)&&this.Rh(this.ah.get(e)||[])}Rh(e){var t;if(0!==e.length){var r=!(null==(t=this._instance)||null==t.get_session_id||!t.get_session_id()),i=[];for(var n of e)r&&this.uh(n)?this.Mh(n)&&this.Ph(n):i.push(n);i.length>0&&(this.rh=[...new Set([...this.rh,...i])]),this.xh().info("updating activated items",{activatedItems:this.getActivatedIds()})}}Mh(e){this.rh=this.rh.filter(t=>t!==e);var t=this.Ah();return!t.includes(e)&&(this.Fh([...t,e]),this.Oh(),!0)}Th(e){var t=new Set(e);this.rh=this.rh.filter(e=>!t.has(e));var r=this.Lh(),i=r.filter(e=>!t.has(e));i.length!==r.length&&(this.Fh(i),0===i.length&&this.Dh()),this.Eh(e)}$h(){var e,t=this.hh();if(!t)return{};var r=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[t];return r&&"object"==typeof r?r:{}}Ph(e){if(this.hh()){var t=this.$h();this.dh(b({},t,{[e]:Date.now()}))}}Eh(e){if(this.hh()){var t=this.$h(),r={},i=!1;for(var n of Object.entries(t)){var s=n[0],o=n[1];e.includes(s)?i=!0:r[s]=o}i&&(H(r)?this.fh():this.dh(r))}}Nh(){this.hh()&&this.fh()}getActivationTimestamp(e){if(this.Ah().includes(e)){var t=this.$h()[e];return Y(t)?t:void 0}}Lh(){var e,t=this.qh();return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[t])||[]}Ah(){var e,t,r=this.Lh();if(0===r.length)return[];var i=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[this.jh()],n=null==(t=this._instance)||null==t.get_session_id?void 0:t.get_session_id();return n&&i===n?r:[]}Oh(){var e,t=null==(e=this._instance)||null==e.get_session_id?void 0:e.get_session_id();t&&this.Bh(t)}Dh(){this.Hh()}lh(e){var t,r=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[this.jh()];if(r&&r!==e){var i=this.Lh(),n=this.$h();i.length>0&&(this.Fh([]),i.filter(e=>Y(n[e])).forEach(e=>this.Ih(e))),this.Dh(),this.Nh()}}getActivatedIds(){return[...new Set([...this.Ah(),...this.rh])].filter(e=>!this.zh(e))}dispose(){var e,t,r;null==(e=this.oh)||e.call(this),this.oh=void 0,null==(t=this.Ju)||t.call(this),this.Ju=void 0,null==(r=this.kh)||r.dispose(),this.kh=void 0}reset(){this.rh=[],this.Lh().length>0&&this.Fh([]),this.Dh(),this.Nh()}getEventToItemsMap(){return this.nh}Uh(){return this.kh}}class _u extends mu{constructor(e){super(e)}qh(){return Pi}jh(){return Oi}hh(){return Ci}dh(e){var t;null==(t=this._instance)||null==(t=t.persistence)||t.register({[Ci]:e})}fh(){var e;null==(e=this._instance)||null==(e=e.persistence)||e.unregister(Ci)}uh(e){var t,r;this.yh(t=>{r=t.find(t=>t.id===e)});var i=null==(t=r)||null==(t=t.appearance)?void 0:t.surveyPopupDelaySeconds;return Y(i)&&i>0}Wh(){return Ro}yh(e){var t;null==(t=this._instance)||t.getSurveys(e)}Ih(e){var t;null==(t=this._instance)||t.cancelPendingSurvey(e)}xh(){return al}Fh(e){var t;null==(t=this._instance)||null==(t=t.persistence)||t.register({[Pi]:e})}Bh(e){var t;null==(t=this._instance)||null==(t=t.persistence)||t.register({[Oi]:e})}Hh(){var e;null==(e=this._instance)||null==(e=e.persistence)||e.unregister(Oi)}zh(){return!1}Ch(e,t){var r;this.yh(e=>{r=e.find(e=>e.id===t)});var i=!r||function(e){var t;return Ya(e)&&!(null==(t=e.conditions)||null==(t=t.events)||!t.repeatedActivation)||"always"===e.schedule}(r);return i?e===Ro?"consume":"ignore":e===Ro?"persist":e===To||e===Fo?"consume":"ignore"}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}class bu{constructor(e){this._instance=e}initialize(){}get(e){if("string"==typeof e)return this._instance.get_property(e);var t={};for(var r of e){var i=this._instance.get_property(r);V(i)||(t[r]=i)}return t}set(e,t){this._instance.register("string"==typeof e?{[e]:t}:e)}remove(e){"string"!=typeof e?e.forEach(e=>this._instance.unregister(e)):this._instance.unregister(e)}}class yu{constructor(e){this._instance=e}get(){var e=this._instance.config;return{disableSurveys:e.disable_surveys,cookielessMode:!!e.cookieless_mode,advancedEnableSurveys:e.advanced_enable_surveys,requestTimeoutMs:e.surveys_request_timeout_ms}}isOptedOut(){return this._instance.consent.isOptedOut()}getExtensions(){var e=null==v?void 0:v.__PosthogExtensions__;if(e){var t=e.generateSurveys,r=e.loadExternalDependency;return{generateSurveys:t?e=>t(this._instance,e):void 0,loadExternalDependency:r?e=>r(this._instance,"surveys",e):void 0}}}createEventReceiver(){return new _u(this._instance)}}var wu=null!=i&&i.location?Gs(i.location.hash,"__posthog")||Gs(location.hash,"state"):null,xu="_postHogToolbarParams",ku=$r("[Toolbar]"),Eu=$r("[FeatureFlags]");class Su{constructor(e,t){void 0===t&&(t=!1),this.Vh=!1,this.update(e,t)}update(e,t){this.Gh=((e,t)=>{var r,i,n,s,o;return{bootstrap:{featureFlags:null==(r=e.bootstrap)?void 0:r.featureFlags,featureFlagPayloads:null==(i=e.bootstrap)?void 0:i.featureFlagPayloads},remoteRequestsDisabled:t,featureFlagsDisabled:!!e.advanced_disable_feature_flags,onlyEvaluateSurveyFeatureFlags:!!e.advanced_only_evaluate_survey_feature_flags,deduplicateCallsPerSession:!!e.advanced_feature_flags_dedup_per_session,cacheTtlMs:e.feature_flag_cache_ttl_ms,refreshIntervalMs:null!==(n=e.remote_config_refresh_interval_ms)&&void 0!==n?n:3e5,requestTimeoutMs:e.feature_flag_request_timeout_ms,compression:e.disable_compression?void 0:"best-available",evaluationContexts:null!==(s=null!==(o=e.evaluation_contexts)&&void 0!==o?o:e.evaluation_environments)&&void 0!==s?s:[],flagKeys:z(e.flag_keys)?e.flag_keys:void 0}})(e,t),!e.evaluation_environments||e.evaluation_contexts||this.Vh||(Eu.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.Vh=!0),V(e.flag_keys)||z(e.flag_keys)||Eu.error("Invalid flag_keys found:",e.flag_keys,"Expected array of non-empty strings")}get(){return this.Gh}}var Pu=$r("[FeatureFlags]"),Ou=$r("[FeatureFlags]",{debugEnabled:!0}),Cu="\" failed. Feature flags didn't load in time.",Au="connection_error",Ru=e=>{for(var t={},r=0;e.length>r;r++)t[e[r]]=!0;return t},Tu=e=>{var t={};for(var r of ln(e||{})){var i=r[1];i&&(t[r[0]]=i)}return t},Fu=$r("[Error tracking]"),Iu="webkit-masked-url:",Mu=["chrome-extension://","moz-extension://","safari-extension:","safari-web-extension:",Iu],ju=["__firefox__","__gCrWeb"],$u="Refusing to render web experiment since the viewer is a likely bot",Nu={icontains:(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>-1===t.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>Za(t,e),not_regex:(e,t)=>!Za(t,e),exact:(e,t)=>t===e,is_not:(e,t)=>t!==e};class Lu{get mn(){return this._instance.config}constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{Lu.Zh("retrieved web experiments from the server"),t.Qh=new Map,e.forEach(e=>{if(e.feature_flag_key){var r;t.Qh&&(Lu.Zh("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(r=t.Qh)||r.set(e.feature_flag_key,e));var i=t._instance.getFeatureFlag(e.feature_flag_key);W(i)&&e.variants[i]&&t.Jh(e.name,i,e.variants[i].transforms)}else if(e.variants)for(var n in e.variants){var s=e.variants[n];Lu.Kh(s,t._instance)&&t.Jh(e.name,n,s.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}initialize(){}onFeatureFlags(e){if(this._is_bot())Lu.Zh($u);else if(!this.mn.disable_web_experiments){if(J(this.Qh))return this.Qh=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Lu.Zh("applying feature flags",e),e.forEach(e=>{var t;if(this.Qh&&null!=(t=this.Qh)&&t.has(e)){var r,i=this._instance.getFeatureFlag(e),n=null==(r=this.Qh)?void 0:r.get(e);i&&null!=n&&n.variants[i]&&this.Jh(n.name,i,n.variants[i].transforms)}})}}previewWebExperiment(){var e=Lu.getWindowLocation();if(null!=e&&e.search){var t=Vs(null==e?void 0:e.search,"__experiment_id"),r=Vs(null==e?void 0:e.search,"__experiment_variant");t&&r&&(Lu.Zh("previewing web experiments "+t+" && "+r),this.getWebExperiments(e=>{this.Yh(parseInt(t),r,e)},!1,!0))}}loadIfEnabled(){this.mn.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,r){if(this.mn.disable_web_experiments&&!r)return e([]);var i=this._instance.get_property("$web_experiments");if(i&&!t)return e(i);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.mn.token),method:"GET",timestampMode:"query",callback:t=>e(200===t.statusCode&&t.json&&t.json.experiments||[])})}Yh(e,t,r){var i=r.filter(t=>t.id===e);i&&i.length>0&&(Lu.Zh("Previewing web experiment ["+i[0].name+"] with variant ["+t+"]"),this.Jh(i[0].name,t,i[0].variants[t].transforms))}static Kh(e,t){return!J(e.conditions)&&Lu.Xh(e,t)&&Lu.td(e)}static Xh(e,t){var r;if(J(e.conditions)||J(null==(r=e.conditions)?void 0:r.url))return!0;var i=Lu.getWindowLocation();if(i){var n,s,o,a=Vn(t,i.href);return null==(n=e.conditions)||!n.url||Nu[null!==(s=null==(o=e.conditions)?void 0:o.urlMatchType)&&void 0!==s?s:"icontains"](e.conditions.url,a)}return!1}static getWindowLocation(){return null==i?void 0:i.location}static td(e){var t;if(J(e.conditions)||J(null==(t=e.conditions)?void 0:t.utm))return!0;var r=to();if(r.utm_source){var i,n,s,o,a,l,u,c,d=null==(i=e.conditions)||null==(i=i.utm)||!i.utm_campaign||(null==(n=e.conditions)||null==(n=n.utm)?void 0:n.utm_campaign)==r.utm_campaign,h=null==(s=e.conditions)||null==(s=s.utm)||!s.utm_source||(null==(o=e.conditions)||null==(o=o.utm)?void 0:o.utm_source)==r.utm_source,p=null==(a=e.conditions)||null==(a=a.utm)||!a.utm_medium||(null==(l=e.conditions)||null==(l=l.utm)?void 0:l.utm_medium)==r.utm_medium,f=null==(u=e.conditions)||null==(u=u.utm)||!u.utm_term||(null==(c=e.conditions)||null==(c=c.utm)?void 0:c.utm_term)==r.utm_term;return d&&p&&f&&h}return!1}static Zh(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;t>i;i++)r[i-1]=arguments[i];jr.info("[WebExperiments] "+e,r)}Jh(e,t,r){this._is_bot()?Lu.Zh($u):"control"!==t?r.forEach(r=>{if(r.selector){var i;Lu.Zh("applying transform of variant "+t+" for experiment "+e+" ",r);var n=null==(i=document)?void 0:i.querySelectorAll(r.selector);null==n||n.forEach(e=>{var t=e;r.html&&(t.innerHTML=r.html),r.css&&t.setAttribute("style",r.css)})}}):Lu.Zh("Control variants leave the page unmodified.")}_is_bot(){return s&&this._instance?Ka(s,this.mn.custom_blocked_useragents):void 0}}var Du=$r("[Conversations]"),Bu="Conversations not available yet.";function zu(e,t){var r,i,n,o,a,l,u,c=null!==(r=null==e?void 0:e.flushIntervalMs)&&void 0!==r?r:3e3,d=null!==(i=null==e?void 0:e.maxBufferSize)&&void 0!==i?i:100,h=null!=t&&t.consoleCapture?void 0:null!==(n=null==e?void 0:e.maxLogsPerInterval)&&void 0!==n?n:1e3,p=V(h)?Math.max(d,2048):Math.max(d,h),f=b({},function(){var e="",t="";try{var r=null==s?void 0:s.userAgent;if(r){var i=_t(r);e=i[0],t=i[1]}}catch(e){}return function(e,t){var r=function(e){if(e)return{}.hasOwnProperty.call(Ut,e)?Ut[e]:e}(e);return b({},r?{"os.name":r}:{},t?{"os.version":t}:{})}(e,t)}(),null==e?void 0:e.resourceAttributes);return{serviceName:null!==(o=null!==(a=null==f?void 0:f["service.name"])&&void 0!==a?a:null==e?void 0:e.serviceName)&&void 0!==o?o:null==t?void 0:t.serviceNameDefault,serviceVersion:null!==(l=null==f?void 0:f["service.version"])&&void 0!==l?l:null==e?void 0:e.serviceVersion,environment:null!==(u=null==f?void 0:f["deployment.environment"])&&void 0!==u?u:null==e?void 0:e.environment,resourceAttributes:f,beforeSend:null==e?void 0:e.beforeSend,flushIntervalMs:c,maxBufferSize:d,maxQueueSize:p,maxBatchRecordsPerPost:100,rateCapWindowMs:c,maxLogsPerInterval:h,backgroundFlushBudgetMs:0,terminationFlushBudgetMs:0}}var Uu=["debug","log","warn","error","info"],qu="console",Hu="__posthogHandledLogsRequestError",Vu=(e,t)=>{var r=e instanceof Error?e:new Error(t);return r[Hu]=!0,r},Wu=e=>!!e&&"object"==typeof e&&!0===e[Hu],Gu={featureFlags:class{constructor(e){this.name="featureFlags",this.ed=!1,this.featureFlagEventHandlers=[],this.A=Pu,this.rd={},this.nd={},this.sd=[],this.ad=!1,this.od=!1,this.ld=0,this.ud=!1,this.hd=!1,this.dd=!1,this.vd=!1,this.fd=0,this.Wt=()=>{var e=this.pd();this.fd=0,e&&this.reloadFeatureFlags()},this.gd=()=>{var e,t=this.md;V(t)||this.mn.remoteRequestsDisabled||!o||"hidden"===o.visibilityState||Date.now()-(null!==(e=this.yd)&&void 0!==e?e:0)<t||(this.reloadFeatureFlags(),this.bd())},this.Vt=()=>{"visible"===(null==o?void 0:o.visibilityState)&&this.gd()},"get"in e?this.Ls=e:(this._instance=e,this._d=new Su(e.config,e.do()),this.Ls=this._d)}updateConfig(e,t){var r;null==(r=this._d)||r.update(e,t),this.Ns&&this.wd()}setup(e){return this.Ru=e,this.A=e.logger.createLogger("[FeatureFlags]"),du(e.kv.initialize(),()=>{this.Ru===e&&(this.Ru=void 0,this.Ns=e,this.kd(e))})}kd(e){var t;if(this.Ns===e)return i&&fn(i,"online",this.Wt),this.wd(),this.Sd=e.registerDynamicEventProperties(()=>this.xd()?this.rd:this.nd),this.Cd=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.onCrossTabFeatureFlagChange(()=>{this.Td(),this.Md()}),this.Td(),this.initialize()}wd(){var e=this.mn.refreshIntervalMs,t=!this.mn.remoteRequestsDisabled&&o&&!V(e)&&e>0?e:void 0;t!==this.md&&(this.Ed(),V(t)||(this.md=t,this.bd(),null!=o&&o.addEventListener&&fn(o,Qi,this.Vt)))}bd(){V(this.md)||(V(this.Id)||clearInterval(this.Id),this.yd=Date.now(),this.Id=setInterval(this.gd,this.md))}Ed(){V(this.Id)||(clearInterval(this.Id),this.Id=void 0,null==o||null==o.removeEventListener||o.removeEventListener(Qi,this.Vt)),this.md=void 0,this.yd=void 0}destroy(){this.Rd()}dispose(){this.Rd()}Rd(){var e,t;this.Ed(),this.ld++,this.hd=!1,this.Ru=void 0,this.Ns&&(this.Pd(),null==(e=this.Sd)||e.dispose(),this.Sd=void 0,null==(t=this.Cd)||t.call(this),this.Cd=void 0,this.sd=[],null==i||i.removeEventListener("online",this.Wt),this.Ns=void 0)}get mn(){return this.Ls.get()}Ad(e){var t;return null==(t=this.Ns)?void 0:t.kv.get(e)}ni(e){this.Fd(()=>{var t;return null==(t=this.Ns)?void 0:t.kv.set(e)})}Od(e,t,r){var i;if(null!=(i=this._instance)&&i.persistence&&e[hi]){var n=this.Ad(hi)||{},s=e[hi]||{},o=t.flags||t.featureFlags,a=t.flags?Object.entries(t.flags).filter(e=>{var t=e[1];return!(null!=t&&t.failed)}).map(e=>e[0]):[],l=!!t.errorsWhileComputingFlags&&!!t.flags,u=l?a:r&&!z(o)?Object.keys(o||{}):Array.from(new Set([...Object.keys(n),...Object.keys(s)])),c=this.Ad(gi)||{},d=e[gi]||{},h=l||r?u:Array.from(new Set([...Object.keys(c),...Object.keys(d)])),p=!l&&!r,f=!!p||u,v={[pi]:f,[hi]:f,[gi]:!!p||h};for(var g of(e[vi]&&(v[vi]=f),[mi,Ii,_i]))V(e[g])||(v[g]=!0);this._instance.persistence.markCrossTabFeatureFlagChanges(v)}}oi(e){this.Fd(()=>{var t;return null==(t=this.Ns)?void 0:t.kv.remove(e)})}Fd(e){try{e()}catch(e){this.A.error("Failed to update feature flag persistence",e)}}Td(){var e={};for(var t of[pi,gi,mi,bi]){var r=this.Ad(t);V(r)||(e[t]=r)}this.rd=e;var i=b({},e),n=this.Ad(hi);if(n)for(var s of Object.entries(n))i["$feature/"+s[0]]=s[1];this.nd=i}xd(){var e=this.mn.cacheTtlMs;if(!e||0>=e)return!1;var t=this.Ad(Ii);return"number"!=typeof t||Date.now()-t>e}Ld(){return!!this.xd()&&(this.vd||this.od||(this.vd=!0,this.A.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}Dd(){var e=this.mn.evaluationContexts;return null!=e&&e.length?e.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||this.A.error("Invalid evaluation context found:",e,"Expected non-empty string"),t}):[]}$d(){var e=this.mn.flagKeys;if(!V(e))return e.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||this.A.error("Invalid flag key found:",e,"Expected non-empty string"),t})}initialize(){var e,t,r=this.mn,i=null!==(e=null==(t=r.bootstrap)?void 0:t.featureFlags)&&void 0!==e?e:{};if(Object.keys(i).length){var n,s,o=null!==(n=null==(s=r.bootstrap)?void 0:s.featureFlagPayloads)&&void 0!==n?n:{},a=Object.keys(i).filter(e=>!!i[e]).reduce((e,t)=>(e[t]=i[t]||!1,e),{}),l=Object.keys(o).filter(e=>a[e]).reduce((e,t)=>(e[t]=o[t],e),{});return this.Nd({featureFlags:a,featureFlagPayloads:l})}}updateFlags(e,t,r){var i,n,s=null!=r&&r.merge&&null!==(i=this.Ad(hi))&&void 0!==i?i:{},o=null!=r&&r.merge&&null!==(n=this.Ad(gi))&&void 0!==n?n:{},a=b({},s,e),l=b({},o,t),u={};for(var c of Object.entries(a)){var d=c[0],h=c[1];u[d]={key:d,enabled:x(h),variant:k(h),reason:void 0,metadata:V(null==l?void 0:l[d])?void 0:{id:0,version:void 0,description:void 0,payload:l[d]}}}this.Nd({flags:u})}get hasLoadedFlags(){return this.ad}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.Ad(vi),t=this.Ad(bi),r=this.Ad(yi);if(!r&&!t)return e||{};var i=an({},e||{}),n=[...new Set([...Object.keys(r||{}),...Object.keys(t||{})])];for(var s of n){var o,a,l=i[s],u=null==t?void 0:t[s],c=V(u)?null!==(o=null==l?void 0:l.enabled)&&void 0!==o&&o:!!u,d=V(u)?null==l?void 0:l.variant:"string"==typeof u?u:void 0,h=null==r?void 0:r[s],p=b({},l,{enabled:c,variant:c?null!=d?d:null==l?void 0:l.variant:void 0});c!==(null==l?void 0:l.enabled)&&(p.original_enabled=null==l?void 0:l.enabled),d!==(null==l?void 0:l.variant)&&(p.original_variant=null==l?void 0:l.variant),h&&(p.metadata=b({},null==l?void 0:l.metadata,{payload:h,original_payload:null==l||null==(a=l.metadata)?void 0:a.payload})),i[s]=p}return this.ed||(this.A.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:r,finalDetails:i}),this.ed=!0),i}getAllFeatureFlags(){var e=this.getFlagVariants(),t=this.getFlagPayloads();return Object.keys(e).map(r=>{var i=e[r];return{key:r,enabled:x(i),variant:k(i),payload:w(t[r])}})}getFlagVariants(){var e=this.Ad(hi),t=this.Ad(bi);if(!t)return e||{};for(var r=an({},e||{}),i=Object.keys(t),n=0;i.length>n;n++)r[i[n]]=t[i[n]];return this.ed||(this.A.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this.ed=!0),r}getFlagPayloads(){var e=this.Ad(gi),t=this.Ad(yi);if(!t)return e||{};for(var r=an({},e||{}),i=Object.keys(t),n=0;i.length>n;n++)r[i[n]]=t[i[n]];return this.ed||(this.A.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:r}),this.ed=!0),r}reloadFeatureFlags(){this.ud||this.mn.featureFlagsDisabled||this.pd()||this.qd||(this.sd.slice().forEach(e=>{try{e()}catch(e){this.A.error("Error while running feature flags reloading callback",e)}}),this.qd=setTimeout(()=>{this.jd()},5))}Pd(){clearTimeout(this.qd),this.qd=void 0}onReloading(e){return this.sd.push(e),()=>{this.sd=this.sd.filter(t=>t!==e)}}ensureFlagsLoaded(){this.ad||this.od||this.qd||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.ud=e}resetFlagCallReported(){this.oi(Ri)}jd(e){this.Pd();var t=this.Ns;if(t&&!this.mn.remoteRequestsDisabled&&!this.pd())if(this.od)this.hd=!0;else{var r={token:t.projectToken,distinct_id:t.distinctId,groups:t.groups,$anon_distinct_id:this.$anon_distinct_id,person_properties:b({},t.initialPersonProperties,this.Ad(wi)||{},{$lib:t.library.name,$lib_version:t.library.version}),group_properties:this.Ad(xi),timezone:uo()};V(t.deviceId)||(r.$device_id=t.deviceId),(null!=e&&e.disableFlags||this.mn.featureFlagsDisabled)&&(r.disable_flags=!0);var i=this.Dd();i.length&&(r.evaluation_contexts=i);var n=this.$d();V(n)||(r.flag_keys=n);var s=this.mn.onlyEvaluateSurveyFeatureFlags,o="/flags/?v=2"+(s?"&only_evaluate_survey_feature_flags=true":""),a=this.ld;this.od=!0;var l=()=>{this.hd&&(this.hd=!1,this.jd())},u=e=>{this.od=!1,a===this.ld?(this.ni({[Fi]:[Au]}),this.A.error("Feature flag request failed",e),l()):l()};try{t.sendRequest(o,{target:"flags",method:"POST",body:r,compression:this.mn.compression,sentAt:"body",timeoutMs:this.mn.requestTimeoutMs}).then(e=>{var t,i,n=null!==(t=e.json)&&void 0!==t?t:{},o=200!==e.statusCode;if(this.od=!1,a===this.ld){if(this.Bd(e.statusCode),o||this.hd||(this.$anon_distinct_id=void 0),!r.disable_flags||this.hd){this.dd=!o;var u=[];e.error?u.push(e.error instanceof Error&&"AbortError"===e.error.name?"timeout":e.error instanceof Error?Au:"unknown_error"):200!==e.statusCode&&u.push("api_error_"+e.statusCode),n.errorsWhileComputingFlags&&u.push("errors_while_computing_flags");var c=!(null==(i=n.quotaLimited)||!i.includes("feature_flags"));c&&u.push("quota_limited"),this.ni({[Fi]:u}),c?this.A.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):r.disable_flags||this.Nd(n,o,{partialResponse:s}),l()}}else l()}).catch(u)}catch(e){u(e)}}}pd(){return Ks(this.fd,3)}Bd(e){this.fd=Js(e,this.fd,3,()=>this.A.warn("Feature flag requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped refreshing feature flags; will try again when connectivity changes."))}getFeatureFlag(e,t){var r;if(void 0===t&&(t={}),!t.fresh||this.dd)if(this.ad||this.getFlags()&&this.getFlags().length>0){if(!this.Ld()){var i=this.getFeatureFlagResult(e,t);return null!==(r=null==i?void 0:i.variant)&&void 0!==r?r:null==i?void 0:i.enabled}}else this.A.warn('getFeatureFlag for key "'+e+Cu)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return null==t?void 0:t.payload}getFeatureFlagResult(e,t){if(void 0===t&&(t={}),!t.fresh||this.dd)if(this.ad||this.getFlags()&&this.getFlags().length>0){if(!this.Ld()){var r,i=this.getFlagVariants(),n=e in i,s=i[e],o=this.getFlagPayloads()[e],a=String(s),l=this.Ad(mi)||void 0,u=this.Ad(Ii)||void 0,c=this.Ad(Ri)||{};if(this.mn.deduplicateCallsPerSession){var d,h=null==(d=this.Ns)?void 0:d.session.sessionId,p=this.Ad(Ti);h&&h!==p&&(c={},r=h)}if(t.send_event||!("send_event"in t))if(e in c&&c[e].includes(a))r&&this.ni({[Ri]:c,[Ti]:r});else{var f,v,g,m,_,y,x,k,E,S,P,O;z(c[e])?c[e].push(a):c[e]=[a],this.ni(b({[Ri]:c},r?{[Ti]:r}:{}));var C=this.getFeatureFlagDetails(e),A=[...null!==(f=this.Ad(Fi))&&void 0!==f?f:[]];V(s)&&A.push("flag_missing");var R={$feature_flag:e,$feature_flag_response:s,$feature_flag_payload:null!=o?o:null,$feature_flag_request_id:l,$feature_flag_evaluated_at:u,$feature_flag_bootstrapped_response:null!==(v=null==(g=this.mn.bootstrap)||null==(g=g.featureFlags)?void 0:g[e])&&void 0!==v?v:null,$feature_flag_bootstrapped_payload:null!==(m=null==(_=this.mn.bootstrap)||null==(_=_.featureFlagPayloads)?void 0:_[e])&&void 0!==m?m:null,$used_bootstrap_value:!this.dd};V(null==C||null==(y=C.metadata)?void 0:y.has_experiment)||(R.$feature_flag_has_experiment=C.metadata.has_experiment),V(null==C||null==(x=C.metadata)?void 0:x.version)||(R.$feature_flag_version=C.metadata.version);var T,F=null!==(k=null==C||null==(E=C.reason)?void 0:E.description)&&void 0!==k?k:null==C||null==(S=C.reason)?void 0:S.code;F&&(R.$feature_flag_reason=F),null!=C&&null!=(P=C.metadata)&&P.id&&(R.$feature_flag_id=C.metadata.id),V(null==C?void 0:C.original_variant)&&V(null==C?void 0:C.original_enabled)||(R.$feature_flag_original_response=V(C.original_variant)?C.original_enabled:C.original_variant),null!=C&&null!=(O=C.metadata)&&O.original_payload&&(R.$feature_flag_original_payload=null==C||null==(T=C.metadata)?void 0:T.original_payload),A.length&&(R.$feature_flag_error=A.join(",")),this.Hd(R)}else r&&this.ni({[Ri]:c,[Ti]:r});if(n)return{key:e,enabled:!!s,variant:"string"==typeof s?s:void 0,payload:w(o)}}}else this.A.warn('getFeatureFlagResult for key "'+e+Cu)}Hd(e){try{var t;null==(t=this.Ns)||t.capture("$feature_flag_called",e).catch(e=>{this.A.error("Failed to capture feature flag call",e)})}catch(e){this.A.error("Failed to capture feature flag call",e)}}getRemoteConfigPayload(e,t){this.zd(e,t)}zd(e,t){var r=this;return _(function*(){var i=r.Ns;if(i){var n={distinct_id:i.distinctId,token:i.projectToken,person_properties:{$lib:i.library.name,$lib_version:i.library.version}},s=r.Dd();s.length&&(n.evaluation_contexts=s);var o,a=r.$d();V(a)||(n.flag_keys=a);try{var l,u=null==(l=(yield i.sendRequest("/flags/?v=2",{target:"flags",method:"POST",body:n,compression:r.mn.compression,sentAt:"body",timeoutMs:r.mn.requestTimeoutMs})).json)?void 0:l.featureFlagPayloads;o=(null==u?void 0:u[e])||void 0}catch(e){return void r.A.error("Remote config feature flag request failed",e)}try{t(o)}catch(e){r.A.error("Remote config feature flag callback failed",e)}}})()}isFeatureEnabled(e,t){if(void 0===t&&(t={}),t.fresh&&!this.dd)return t.defaultValue;if(!(this.ad||this.getFlags()&&this.getFlags().length>0))return this.A.warn('isFeatureEnabled for key "'+e+Cu),t.defaultValue;var r=this.getFeatureFlag(e,t);return V(r)?t.defaultValue:!!r}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t,r){this.Nd(e,t,r)}Nd(e,t,r){if(this.Ns){this.ad=!0;var i=function(e,t,r,i,n,s){void 0===t&&(t={}),void 0===r&&(r={}),void 0===i&&(i={}),void 0===s&&(s=Pu);var o=((e,t)=>{var r=e.flags;return r?b({},e,{featureFlags:Object.fromEntries(Object.keys(r).map(e=>{var t;return[e,null!==(t=r[e].variant)&&void 0!==t?t:r[e].enabled]})),featureFlagPayloads:Object.fromEntries(Object.keys(r).filter(e=>r[e].enabled).filter(e=>{var t;return!V(null==(t=r[e].metadata)?void 0:t.payload)}).map(e=>{var t;return[e,null==(t=r[e].metadata)?void 0:t.payload]}))}):(e.featureFlags&&t.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e)})(e,s),a=o.flags,l=o.featureFlags,u=o.featureFlagPayloads;if(l){var c=e.requestId,d=e.evaluatedAt;if(z(l)){s.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var h={};if(l)for(var p=0;l.length>p;p++)h[l[p]]=!0;return{[pi]:l,[hi]:h,[_i]:!1}}var f=l,v=u,g=a;if(null!=n&&n.partialResponse){var m=Object.keys(f),_=v||{};f=b({},t,f),v=b({},r,_),m.forEach(e=>{var t;e in _||null==(t=v)||delete t[e]}),g=b({},i,g)}else if(e.errorsWhileComputingFlags)if(a){var y=new Set(Object.keys(a).filter(e=>{var t;return!(null!=(t=a[e])&&t.failed)}));f=b({},t,Object.fromEntries(Object.entries(f).filter(e=>y.has(e[0]))));var w=Object.fromEntries(Object.entries(v||{}).filter(e=>y.has(e[0])));v=b({},r,w),y.forEach(e=>{var t;e in w||null==(t=v)||delete t[e]}),g=b({},i,Object.fromEntries(Object.entries(g||{}).filter(e=>y.has(e[0]))))}else f=b({},t,f),v=b({},r,v),g=b({},i,g);return b({[pi]:Object.keys(Tu(f)),[hi]:f||{},[gi]:v||{},[vi]:g||{},[_i]:!0===e.minimalFlagCalledEvents},c?{[mi]:c}:{},d?{[Ii]:d}:{})}}(e,this.getFlagVariants(),this.getFlagPayloads(),this.getFlagsWithDetails(),r,this.A);i&&(this.Od(i,e,!(null==r||!r.partialResponse)),this.ni(i)),t||(this.vd=!1),this.Md(t)}}override(e,t){void 0===t&&(t=!1),this.A.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){this.Ud(e)}Ud(e){if(this.Ns){if(!1===e)return this.oi([bi,yi]),this.Md(),void Ou.info("All overrides cleared");if(z(e))return this.ni({[bi]:Ru(e)}),this.Md(),void Ou.info("Flag overrides set",{flags:e});if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){var t,r=e;this.ed=Boolean(null!==(t=r.suppressWarning)&&void 0!==t&&t);var i={},n=r.flags,s=r.payloads;return n&&(i[bi]=z(n)?Ru(n):n),s&&(i[yi]=s),Object.keys(i).length&&this.ni(i),!1===n&&!1===s?this.oi([bi,yi]):!1===n?this.oi(bi):!1===s&&this.oi(yi),this.Md(),!1===n?Ou.info("Flag overrides cleared"):n&&Ou.info("Flag overrides set",{flags:n}),void(!1===s?Ou.info("Payload overrides cleared"):s&&Ou.info("Payload overrides set",{payloads:s}))}if(e&&"object"==typeof e)return this.ni({[bi]:e}),this.Md(),void Ou.info("Flag overrides set",{flags:e});this.A.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}else this.A.warn("posthog.featureFlags.overrideFeatureFlags called before feature flags were ready")}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.ad){var t=this.Wd(),r=t.flags,i=t.flagVariants;try{e(r,i)}catch(e){this.A.error("Error while running feature flags callback",e)}}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,r){var i,n=(this.Ad(fi)||[]).find(t=>t.flagKey===e),s={["$feature_enrollment/"+e]:t},o={$feature_flag:e,$feature_enrollment:t,$set:s};n&&(o.$early_access_feature_name=n.name),r&&(o.$feature_enrollment_stage=r);var a=b({},this.getFlagVariants(),{[e]:t});null==(i=this._instance)||null==(i=i.persistence)||i.markCrossTabFeatureFlagChanges({[pi]:[e],[hi]:[e],[wi]:Object.keys(s)}),this.ni({[pi]:Object.keys(Tu(a)),[hi]:a,[wi]:b({},this.Ad(wi)||{},s)}),this.Md();try{var l;null==(l=this.Ns)||l.capture("$feature_enrollment_update",o).catch(e=>{this.A.error("Failed to capture early access feature enrollment",e)})}catch(e){this.A.error("Failed to capture early access feature enrollment",e)}}getEarlyAccessFeatures(e,t,r){void 0===t&&(t=!1);var i=this.Ad(fi);!i||t?this.Vd(e,r):e(i)}Vd(e,t){var r=this;return _(function*(){var i=r.Ns;if(i){var n,s=t?"&"+t.map(e=>"stage="+e).join("&"):"";try{var o=yield i.sendRequest("/api/early_access_features/?token="+i.projectToken+s,{target:"api",method:"GET",sentAt:"query"});if(!o.json)return;r.ni({[fi]:n=o.json.earlyAccessFeatures})}catch(e){return void r.A.error("Early access feature request failed",e)}try{e(n)}catch(e){r.A.error("Early access feature callback failed",e)}}})()}Wd(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,r)=>(e[r]=t[r],e),{})}}Md(e){this.Td();var t=this.Wd(),r=t.flags,i=t.flagVariants;this.featureFlagEventHandlers.forEach(t=>{try{t(r,i,{errorsLoading:e})}catch(e){this.A.error("Error while running feature flags callback",e)}})}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0),this.Gd(e,t)}Gd(e,t){void 0===t&&(t=!0);var r=this.Ad(wi)||{},i=(null==e?void 0:e.$set)||(null!=e&&e.$set_once?{}:e),n=null==e?void 0:e.$set_once,s={};if(n)for(var o in n)({}).hasOwnProperty.call(n,o)&&(o in r||(s[o]=n[o]));this.ni({[wi]:b({},r,s,i)}),t&&this.reloadFeatureFlags()}unsetPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=b({},this.Ad(wi)||{});e.forEach(e=>{delete r[e]}),this.ni({[wi]:r}),t&&this.reloadFeatureFlags()}resetPersonPropertiesForFlags(e){void 0===e&&(e=!0),this.oi(wi),e&&this.reloadFeatureFlags()}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this.Ad(xi)||{},i=b({},r);for(var n of Object.keys(e))i[n]=b({},r[n],e[n]);this.ni({[xi]:i}),t&&this.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.Ad(xi)||{};this.ni({[xi]:b({},t,{[e]:{}})})}else this.oi(xi)}reset(){this.ld++,this.hd=!1,this.rd={},this.nd={},this.ad=!1,this.ud=!1,this.dd=!1,this.$anon_distinct_id=void 0,this.Pd(),this.ed=!1,this.fd=0}}},Ku={sessionRecording:class{get mn(){return this._instance.config}get No(){return this._instance.persistence}get started(){var e;return!(null==(e=this.Zd)||!e.isStarted)}get status(){var e,t;return this.Qd===eu||this.Qd===tu?this.Qd:null!==(e=null==(t=this.Zd)?void 0:t.status)&&void 0!==e?e:this.Qd}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.Qd=Ql,this.Jd=void 0,this.Kd=!1,this.jt=(()=>{var e;if(null==o||!o.visibilityState||"visible"===o.visibilityState)return!0;var t=null==i||null==(e=i.performance)||null==e.getEntriesByType?void 0:e.getEntriesByType("visibility-state");return!(null!=t&&t.length)||t.some(e=>"visible"===e.name)})(),this.Vt=()=>{var e;"visible"===(null==o?void 0:o.visibilityState)&&(this.jt=!0,null==(e=this.Zd)||null==e.setDocumentWasEverVisible||e.setDocumentWasEverVisible(!0))},this._instance=e,!this._instance.sessionManager)throw iu.error("started without valid sessionManager"),new Error(ru+" started without valid sessionManager. This is a bug.");if(this.mn.cookieless_mode===Ki)throw new Error(ru+' cannot be used with cookieless_mode="always"');null!=o&&o.addEventListener&&fn(o,"visibilitychange",this.Vt)}initialize(){this.startIfEnabledOrStop()}dispose(e){var t=(void 0===e?{}:e).discardBufferedEvents,r=void 0!==t&&t;this.Kd=!0,null==o||null==o.removeEventListener||o.removeEventListener("visibilitychange",this.Vt),r?this.Yd(!0):this.stopRecording()}get Xd(){var e,t=!(null==(e=this._instance.get_property(ni))||!e.enabled),r=!this.mn.disable_session_recording,n=this.mn.disable_session_recording||this._instance.consent.isOptedOut();return i&&t&&r&&!n}startIfEnabledOrStop(e){var t;if(!(this.Kd||this.Xd&&null!=(t=this.Zd)&&t.isStarted)){var r=!V(Object.assign)&&!V(Array.from);this.Xd&&r?(this.tv(e),iu.info("starting")):(this.Qd=Ql,this.stopRecording())}}tv(e){var t,r;if(this.Xd)if(this.Qd!==eu&&this.Qd!==tu&&(this.Qd=Xl),null!=v&&null!=(t=v.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(r=v.__PosthogExtensions__)&&r.initSessionRecording)this.ev(e);else{var i,n=this._instance.sessionManager;null==(i=v.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,this.iv,t=>{if(!this.Kd&&this.Xd&&this._instance.sessionManager===n)return t?(this._instance.register_for_session({[Vi]:!0}),iu.error("could not load recorder",t)):void this.ev(e);this.Qd=Ql})}}stopRecording(){var e,t;null==(e=this.Jd)||e.call(this),this.Jd=void 0,null==(t=this.Zd)||t.stop()}Yd(e){var t,r;void 0===e&&(e=!1),null==(t=this.Jd)||t.call(this),this.Jd=void 0,null==(r=this.Zd)||r.discard({discardProducerEvents:e})}rv(){var e,t;null==(e=this.No)||e.unregister(di),null==(t=this.No)||t.unregister(si)}nv(e,t){if(J(e))return null;var r,i=Y(e)?e:parseFloat(e);return"number"!=typeof(r=i)||!Number.isFinite(r)||0>r||r>1?(iu.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):i}sv(e){if(this.No){var t,r,i=this.No,n=()=>{var t,r=!1===e.sessionRecording?void 0:e.sessionRecording,n=this.nv(null==(t=this.mn.session_recording)?void 0:t.sampleRate,"session_recording.sampleRate"),s=this.nv(null==r?void 0:r.sampleRate,"remote config sampleRate"),o=null!=n?n:s;J(o)&&this.rv();var a=null==r?void 0:r.minimumDurationMilliseconds;i.register({[ni]:b({cache_timestamp:Date.now(),enabled:!!r},r,{networkPayloadCapture:b({capturePerformance:e.capturePerformance},null==r?void 0:r.networkPayloadCapture),canvasRecording:{enabled:null==r?void 0:r.recordCanvas,fps:null==r?void 0:r.canvasFps,quality:null==r?void 0:r.canvasQuality},sampleRate:o,minimumDurationMilliseconds:V(a)?null:a,endpoint:null==r?void 0:r.endpoint,triggerMatchType:null==r?void 0:r.triggerMatchType,masking:null==r?void 0:r.masking,urlTriggers:null==r?void 0:r.urlTriggers,version:null==r?void 0:r.version,triggerGroups:null==r?void 0:r.triggerGroups})})};n(),null==(t=this.Jd)||t.call(this),this.Jd=null==(r=this._instance.sessionManager)?void 0:r.onSessionId(n)}}onRemoteConfig(e){var t=e.ok?e.config:void 0;return t&&"sessionRecording"in t?!1===t.sessionRecording?(this.sv(t),void this.Yd()):(this.sv(t),void this.startIfEnabledOrStop()):(this.Qd===eu&&(this.Qd=tu,iu.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var r;void 0===t&&(t="log"),null!=(r=this.Zd)&&r.log?this.Zd.log(e,t):iu.warn("log called before recorder was ready")}get iv(){var e,t,r=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(ni);return(null==r||null==(t=r.scriptConfig)?void 0:t.script)||"lazy-recorder"}av(){var e,t=this._instance.get_property(ni);if(!t)return!1;try{e="object"==typeof t?t:JSON.parse(t)}catch(e){return iu.warn("persisted remote config for session recording is invalid and will be ignored",e),!1}return!J(e.cache_timestamp)&&36e5>=Date.now()-e.cache_timestamp}ev(e){var t,r,i;if(!this.Kd&&this.Xd&&this._instance.sessionManager){if(null==(t=v.__PosthogExtensions__)||!t.initSessionRecording)return iu.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[Vi]:!0});var n;if(this.Zd||(this.Zd=null==(n=v.__PosthogExtensions__)?void 0:n.initSessionRecording(this._instance,this.jt),this.Zd._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.av()){if(this.Qd===tu||this.Qd===eu)return;return this.Qd=eu,iu.info("persisted remote config is stale, requesting fresh config before starting"),void new Ho(this._instance).load()}this.Qd=Xl,null==(r=(i=this.Zd).setDocumentWasEverVisible)||r.call(i,this.jt),this.Zd.start(e)}else this.Qd=Ql}onRRwebEmit(e){var t;null==(t=this.Zd)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.Zd||null==(t=this.No)||t.register({[ai]:!0}),null==(e=this.Zd)||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.Zd||null==(t=this.No)||t.register({[oi]:!0}),null==(e=this.Zd)||e.overrideSampling()}overrideTrigger(e){var t,r;this.Zd||null==(r=this.No)||r.register({["url"===e?li:ui]:!0}),null==(t=this.Zd)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.Zd)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var r;return!(null==(r=this.Zd)||!r.tryAddCustomEvent(e,t))}}},Ju={autocapture:class extends Bl{constructor(e){super(new zl(e)),this.instance=e}},historyAutocapture:class{constructor(e){this._instance=e,this.ov=this.lv()}initialize(){this.startIfEnabled()}get isEnabled(){var e=this.uv();return!!(e.path||e.search||this.hv(e))}startIfEnabled(){this.isEnabled&&(jr.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}startIfEnabledOrStop(){this.stop(),this.ov=this.lv(),this.startIfEnabled()}stop(){this.dv&&this.dv(),this.dv=void 0,this.vv&&this.vv(),this.vv=void 0,jr.info("History API monitoring stopped")}monitorHistoryChanges(){i&&i.history&&(this.fv("pushState"),this.fv("replaceState"),this.pv(),this.hv()&&this.gv())}fv(e){var t;if(i&&(null==(t=i.history[e])||!t.__posthog_wrapped__)){var r=this;Vl(i.history,e,t=>function(i,n,s){t.call(this,i,n,s),r.mv(e)})}}lv(){var e=null==i?void 0:i.location;if(null!=e&&e.pathname)return{pathname:e.pathname,search:e.search,hash:e.hash}}uv(){var e=this._instance.config.capture_pageview;return"history_change"===e?{path:!0}:q(e)?e:{}}hv(e){return void 0===e&&(e=this.uv()),!!e.hash&&!this._instance.config.disable_capture_url_hashes}yv(e){var t=this.uv(),r=this.ov;return!(!r||!(t.path&&e.pathname!==r.pathname||t.search&&e.search!==r.search||this.hv(t)&&e.hash!==r.hash))}mv(e){try{var t=this.lv();if(!t)return;this.yv(t)&&this._instance.capture(en,{navigation_type:e}),this.ov=t}catch(t){jr.error("Error capturing "+e+" pageview",t)}}pv(){if(!this.dv){var e=()=>{this.mv("popstate")};fn(i,"popstate",e),this.dv=()=>{i&&i.removeEventListener("popstate",e)}}}gv(){if(!this.vv){var e=()=>{this.mv("hashchange")};fn(i,"hashchange",e),this.vv=()=>{i&&i.removeEventListener("hashchange",e)}}}},heatmaps:class{get mn(){return this.instance.config}constructor(e){var t;this.bv=!1,this.Rs=!1,this._v=null,this.instance=e,this.bv=!(null==(t=this.instance.persistence)||!t.props[Jr]),this.rageclicks=new jl(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return q(this.mn.capture_heatmaps)&&this.mn.capture_heatmaps.flush_interval_milliseconds&&(e=this.mn.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return J(this.mn.capture_heatmaps)?J(this.mn.enable_heatmaps)?this.bv:this.mn.enable_heatmaps:!1!==this.mn.capture_heatmaps}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;nu.info("starting..."),this.wv(),this.Vt()}else{var e;clearInterval(null!==(e=this._v)&&void 0!==e?e:void 0),this.Sv(),this.getAndClearBuffer()}}onRemoteConfig(e){if(e.ok){var t=e.config;if("heatmaps"in t){var r=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Jr]:r}),this.bv=r,this.startIfEnabled()}}}getAndClearBuffer(){var e=this.Pt;return this.Pt=void 0,e}xv(e){su(e.originalEvent)&&this.Xi(e.originalEvent,"deadclick")}Vt(){this._v&&clearInterval(this._v),this._v="visible"===(null==o?void 0:o.visibilityState)?setInterval(this.Eo.bind(this),this.flushIntervalMilliseconds):null}wv(){i&&o&&(this.Cv=this.Eo.bind(this),fn(i,Xi,this.Cv),this.Tv=e=>this.Xi(e||(null==i?void 0:i.event)),fn(o,"click",this.Tv,{capture:!0}),this.Mv=e=>this.Ev(e||(null==i?void 0:i.event)),fn(o,"mousemove",this.Mv,{capture:!0}),this.Iv=new Is(this.instance,Ts,this.xv.bind(this)),this.Iv.startIfEnabledOrStop(),this.Rv=this.Vt.bind(this),fn(o,Qi,this.Rv),this.Rs=!0)}Sv(){var e;i&&o&&(this.Cv&&i.removeEventListener(Xi,this.Cv),this.Tv&&o.removeEventListener("click",this.Tv,{capture:!0}),this.Mv&&o.removeEventListener("mousemove",this.Mv,{capture:!0}),this.Rv&&o.removeEventListener(Qi,this.Rv),clearTimeout(this.Pv),null==(e=this.Iv)||e.stop(),this.Rs=!1)}Av(e,t){var r=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),o=function(e,t,r){for(var n=e;n&&Kn(n)&&!Jn(n,"body");){if(n===r)return!1;var s=void 0;try{var o,a,l;s=null==(o=null!==(a=null==(l=n.ownerDocument)?void 0:l.defaultView)&&void 0!==a?a:i)?void 0:o.getComputedStyle(n).position}catch(e){return!1}if(M(t,s))return!0;n=os(n)}return!1}(is(e),["fixed","sticky"],s);return{x:e.clientX+(o?0:n),y:e.clientY+(o?0:r),target_fixed:o,type:t}}Xi(e,t){var r;if(void 0===t&&(t="click"),!Gn(e.target)&&su(e)){var i=this.Av(e,t);null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&ps(is(e),this.instance.config.rageclick)&&this.bs(b({},i,{type:"rageclick"})),this.bs(i)}}Ev(e){!Gn(e.target)&&su(e)&&(clearTimeout(this.Pv),this.Pv=setTimeout(()=>{this.bs(this.Av(e,"mousemove"))},500))}bs(e){if(i){var t=this.mn.disable_capture_url_hashes?kt(i.location.href):i.location.href,r=this.mn.custom_personal_data_properties,n=this.mn.mask_personal_data_properties?[...Zs,...r||[]]:[],s=Ws(t,n,Xs);this.Pt=this.Pt||{},this.Pt[s]||(this.Pt[s]=[]),this.Pt[s].push(e)}}Eo(){this.Pt&&!H(this.Pt)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:Is,webVitalsAutocapture:class{constructor(e){var t;this.bv=!1,this.Rs=!1,this.Pt={navigationKey:void 0,url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Fv=()=>{clearTimeout(this.Ov),this.Ov=void 0,0!==this.Pt.metrics.length&&(this._instance.capture("$web_vitals",b({$current_url:this.Pt.url},this.Pt.metrics.reduce((e,t)=>b({},e,{["$web_vitals_"+t.name+"_event"]:b({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{}))),this.Pt={navigationKey:void 0,url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Lv=e=>{var t;if(this.Pt=this.Pt||{navigationKey:void 0,url:void 0,metrics:[],firstMetricTimestamp:void 0},J(null==e?void 0:e.name)||J(null==e?void 0:e.value))Gl.error("Invalid metric received",e);else{var r="string"==typeof e.navigationURL?e.navigationURL:void 0,i=this.Dv(r);if(!V(i)){var n=Y(e.navigationId)||"string"==typeof e.navigationId?"navigation:"+e.navigationId:"url:"+i;if(!this.$v||this.$v>e.value){this.Pt.navigationKey!==n&&(this.Fv(),this.Ov=setTimeout(this.Fv,this.flushToCaptureTimeoutMs)),V(this.Pt.navigationKey)&&(this.Pt.navigationKey=n,this.Pt.url=i),this.Pt.firstMetricTimestamp=V(this.Pt.firstMetricTimestamp)?Date.now():this.Pt.firstMetricTimestamp;var s=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0),o=b({},e,r?{navigationURL:i}:{},{$current_url:i,timestamp:Date.now()});if(delete o.entries,q(e.attribution)&&this.attributionMetrics.indexOf(e.name)>-1){var a={};for(var l of Zl){var u="url"===l&&"string"==typeof e.attribution[l]?this.Dv(e.attribution[l]):e.attribution[l];V(u)||(a[l]=u)}o.attribution=a}else delete o.attribution;V(s)||(o.$session_id=s.sessionId,o.$window_id=s.windowId),this.Pt.metrics.push(o),this.Pt.metrics.length===this.allowedMetrics.length&&this.Fv()}else Gl.error("Ignoring metric with value >= "+this.$v,e)}}},this.Nv=()=>{if(!this.Rs){var e,t,r,i,n=!1,s=v.__PosthogExtensions__,o=null==s?void 0:s.postHogWebVitalsCallbacksByFlavor,a=(null==o?void 0:o[this.qv])||("web-vitals"===this.qv&&V(o)?null==s?void 0:s.postHogWebVitalsCallbacks:void 0);if(!V(a)){var l=a.withoutAttribution,u=this.attributionMetrics;n=!V(l),e=u.indexOf("LCP")>-1?a.onLCP:(null==l?void 0:l.onLCP)||a.onLCP,t=u.indexOf("CLS")>-1?a.onCLS:(null==l?void 0:l.onCLS)||a.onCLS,r=u.indexOf("FCP")>-1?a.onFCP:(null==l?void 0:l.onFCP)||a.onFCP,i=u.indexOf("INP")>-1?a.onINP:(null==l?void 0:l.onINP)||a.onINP}if(e&&t&&r&&i){var c={reportSoftNavs:this.useSoftNavs},d=n&&this.attributionMetrics.indexOf("INP")>-1?b({},c,{includeProcessedEventEntries:!1}):c;this.allowedMetrics.indexOf("LCP")>-1&&e(this.Lv.bind(this),c),this.allowedMetrics.indexOf("CLS")>-1&&t(this.Lv.bind(this),c),this.allowedMetrics.indexOf("FCP")>-1&&r(this.Lv.bind(this),c),this.allowedMetrics.indexOf("INP")>-1&&i(this.Lv.bind(this),d),this.Rs=!0}else Gl.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.bv=!(null==(t=this._instance.persistence)||!t.props[Xr]),this.startIfEnabled()}get jv(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,r=q(this.jv)?null==(e=this.jv)?void 0:e.web_vitals_allowed_metrics:void 0;return J(r)?(null==(t=this._instance.persistence)?void 0:t.props[ii])||Jl:r}get flushToCaptureTimeoutMs(){return(q(this.jv)?this.jv.web_vitals_delayed_flush_ms:void 0)||5e3}get attributionMetrics(){var e=q(this.jv)?this.jv.web_vitals_attribution:void 0;return Q(e)?e?Jl:[]:z(e)?e:Yl}get useAttribution(){return this.attributionMetrics.length>0}get useSoftNavs(){var e=q(this.jv)?this.jv.__preview_web_vitals_soft_navs:void 0;return null!=e&&e}get $v(){var e=q(this.jv)&&Y(this.jv.__web_vitals_max_value)?this.jv.__web_vitals_max_value:Kl;return e>0&&6e4>=e?Kl:e}get isEnabled(){var e=null==a?void 0:a.protocol;if("http:"!==e&&"https:"!==e)return Gl.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=q(this.jv)?this.jv.web_vitals:Q(this.jv)?this.jv:void 0;return Q(t)?t:this.bv}startIfEnabled(){this.isEnabled&&!this.Rs&&(Gl.info("enabled, starting..."),this.Ys(this.Nv))}onRemoteConfig(e){if(e.ok){var t=e.config;if("capturePerformance"in t){var r=q(t.capturePerformance)&&!!t.capturePerformance.web_vitals,i=q(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Xr]:r}),this._instance.persistence.register({[ii]:i})),this.bv=r,this.startIfEnabled()}}}get qv(){return this.useSoftNavs?this.useAttribution?"web-vitals-with-attribution-soft-navs":"web-vitals-soft-navs":this.useAttribution?"web-vitals-with-attribution":"web-vitals"}Ys(e){var t=v.__PosthogExtensions__,r=this.qv,i=null==t?void 0:t.postHogWebVitalsCallbacksByFlavor;null!=i&&i[r]||"web-vitals"===r&&V(i)&&null!=t&&t.postHogWebVitalsCallbacks?e():null==t||null==t.loadExternalDependency||t.loadExternalDependency(this._instance,r,t=>{t?Gl.error("failed to load script",t):e()})}Dv(e){var t=e||(null==i?void 0:i.location.href);if(t){var r=this._instance.config.disable_capture_url_hashes?kt(t):t,n=this._instance.config.custom_personal_data_properties,s=this._instance.config.mask_personal_data_properties?[...Zs,...n||[]]:[];return Ws(r,s,Xs)}Gl.error("Could not determine current URL")}}},Yu={exceptionObserver:class{constructor(e){var t;this.Nv=()=>{var e;if(i&&this.isEnabled&&null!=(e=v.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=v.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,r=v.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,n=v.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.Bv&&this.mn.capture_unhandled_errors&&(this.Bv=t(this.captureException.bind(this))),!this.Hv&&this.mn.capture_unhandled_rejections&&(this.Hv=r(this.captureException.bind(this))),!this.zv&&this.mn.capture_console_errors&&(this.zv=n(this.captureException.bind(this)))}catch(e){Ul.error("failed to start",e),this.Uv()}}},this._instance=e,this.Wv=!(null==(t=this._instance.persistence)||!t.props[Yr]),this.pe=new ce(b({},function(e){var t,r,i,n;return void 0===e&&(e={}),{refillRate:null!==(t=null!==(r=e.exceptionRateLimiterRefillRate)&&void 0!==r?r:e.__exceptionRateLimiterRefillRate)&&void 0!==t?t:1,bucketSize:null!==(i=null!==(n=e.exceptionRateLimiterBucketSize)&&void 0!==n?n:e.__exceptionRateLimiterBucketSize)&&void 0!==i?i:10}}(this._instance.config.error_tracking),{refillInterval:1e4,A:Ul})),this.mn=this.Vv(),this.startIfEnabledOrStop()}Vv(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return q(e)?t=b({},t,e):(V(e)?this.Wv:e)&&(t=b({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.mn.capture_console_errors||this.mn.capture_unhandled_errors||this.mn.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(Ul.info("enabled"),this.Uv(),this.Ys(this.Nv)):this.Uv()}Ys(e){var t,r;null!=(t=v.__PosthogExtensions__)&&t.errorWrappingFunctions?e():null==(r=v.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return Ul.error("failed to load script",t);e()})}Uv(){var e,t,r;null==(e=this.Bv)||e.call(this),this.Bv=void 0,null==(t=this.Hv)||t.call(this),this.Hv=void 0,null==(r=this.zv)||r.call(this),this.zv=void 0}onRemoteConfig(e){if(e.ok){var t=e.config;"autocaptureExceptions"in t&&(this.Wv=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[Yr]:this.Wv}),this.mn=this.Vv(),this.startIfEnabledOrStop())}}onConfigChange(){this.mn=this.Vv()}captureException(e){var t,r,i,n=null!==(t=null==e||null==(r=e.$exception_list)||null==(r=r[0])?void 0:r.type)&&void 0!==t?t:"Exception";this.pe.consumeRateLimit(n)?Ul.info("Skipping exception capture because of client rate limiting.",{exception:n}):null==(i=this._instance.exceptions)||i.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,r;this.Gv=[],this.Zv=new nr([new gr,new Pr,new _r,new mr,new Er,new kr,new yr,new Sr],function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;t>i;i++)r[i-1]=arguments[i];return function(t,i){void 0===i&&(i=0);for(var n=[],s=t.split("\n"),o=i;s.length>o;o++){var a=s[o];if(1024>=a.length){var l=vr.test(a)?a.replace(vr,"$1"):a;if(!l.match(/\S*Error: /)){for(var u of r){var c=u(l,e);if(c){n.push(c);break}}if(n.length>=50)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);return t.reverse(),t.slice(0,50).map(e=>{return b({},e,{filename:e.filename||(r=t,r[r.length-1]||{}).filename,function:e.function||sr});var r})}(n)}}("web:javascript",dr,fr)),this._instance=e,this.Gv=null!==(t=null==(r=this._instance.persistence)?void 0:r.get_property(Zr))&&void 0!==t?t:[],this.Qv=Tr(this.Jv()),this.Kv=new Fr(this.Qv)}onConfigChange(){this.Qv=Tr(this.Jv()),this.Kv.setConfig(this.Qv)}onRemoteConfig(e){var t,r,i;if(e.ok){var n=e.config;if("errorTracking"in n){var s=null!==(t=null==(r=n.errorTracking)?void 0:r.suppressionRules)&&void 0!==t?t:[],o=null==(i=n.errorTracking)?void 0:i.captureExtensionExceptions;this.Gv=s,this._instance.persistence&&this._instance.persistence.register({[Zr]:this.Gv,[Qr]:o})}}}get Yv(){var e,t=!!this._instance.get_property(Qr),r=this._instance.config.error_tracking.captureExtensionExceptions;return null!==(e=null!=r?r:t)&&void 0!==e&&e}buildProperties(e,t){return this.Zv.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}addExceptionStep(e,t){if(this.Qv.enabled)try{if(!W(e)||0===e.trim().length)return void Fu.warn("Ignoring exception step because message must be a non-empty string");var r=function(e){if(!e)return{sanitizedProperties:{},droppedKeys:[]};var t=[];return{sanitizedProperties:Object.keys(e).reduce((r,i)=>Ar.has(i)?(t.push(i),r):(r[i]=e[i],r),{}),droppedKeys:t}}(this.Xv(t)),i=r.sanitizedProperties,n=r.droppedKeys;n.length>0&&Fu.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.Kv.add(b({[Or]:e,[Cr]:(new Date).toISOString()},i))}catch(e){Fu.error("Failed to add exception step. Ignoring breadcrumb.",e)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.tc(t)){if(this.ec(t))return this.ic("Exception dropped: matched a suppression rule"),void Fu.info("Skipping exception capture because a suppression rule matched");if(!this.Yv&&this.rc(t))return this.ic("Exception dropped: thrown by a browser extension"),void Fu.info("Skipping exception capture because it was thrown by an extension");if(!this.Yv&&this.nc(t))return this.ic("Exception dropped: thrown by an injected browser script"),void Fu.info("Skipping exception capture because it was thrown by an injected browser script");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.sc(t))return this.ic("Exception dropped: thrown by the PostHog SDK"),void Fu.info("Skipping exception capture because it was thrown by the PostHog SDK")}var r=this.Qv.enabled&&J(e.$exception_steps)?this.ac(e):e,i="string"==typeof(s=globalThis._posthogReleaseId)&&s.length>0?s:void 0;i&&(r.$release_id=i);try{var n=this._instance.capture("$exception",r,{_noTruncate:!0,_batchKey:"exceptionEvent",hu:!0});return n&&this.Kv.clear(),n}catch(e){return Fu.error("Failed to capture exception event. Dropping this exception.",e),void this.Kv.clear()}}catch(e){return void Fu.error("Failed to process exception event. Ignoring this exception.",e)}var s}ac(e){try{var t=this.Kv.getAttachable();return 0===t.length?e:b({},e,{$exception_steps:t})}catch(t){return Fu.error("Failed to read buffered exception steps. Capturing exception without steps.",t),e}}ic(e){this.Qv.enabled&&this.Kv.add({[Or]:e,[Cr]:(new Date).toISOString()})}Xv(e){return q(e)?b({},e):{}}Jv(){var e,t;return null!==(e=null==(t=this._instance.config.error_tracking)?void 0:t.exception_steps)&&void 0!==e?e:{}}ec(e){if(0===e.length)return!1;try{var t=e.reduce((e,t)=>{var r=t.type,i=t.value;return W(r)&&r.length>0&&e.$exception_types.push(r),W(i)&&i.length>0&&e.$exception_values.push(i),e},{$exception_types:[],$exception_values:[]});return this.Gv.some(e=>{var r=e.values.map(e=>{var r=Xa[e.operator],i=t[e.key];if(!r||!i)return!1;var n=z(e.value)?e.value:[e.value];return n.length>0&&r(n,i)});return"OR"===e.type?r.some(Boolean):r.every(Boolean)})}catch(e){return Fu.warn("Failed to evaluate suppression rules. Capturing the exception.",e),!1}}rc(e){var t=e.flatMap(e=>{var t,r;return null!==(t=null==(r=e.stacktrace)?void 0:r.frames)&&void 0!==t?t:[]}),r=t.filter(e=>{var t=e.filename;return!!t&&Mu.some(e=>t.startsWith(e))});return 0!==r.length&&(!r.every(e=>{var t=e.filename;return!!t&&t.startsWith(Iu)})||e.some(e=>{var t=e.value;return W(t)&&t.includes("isolatedAPI.contexts.topHostname")})&&!t.some(e=>{var t=e.filename;return e.in_app&&!(null!=t&&t.startsWith(Iu))}))}nc(e){return e.some(e=>{var t=e.value;return W(t)&&ju.some(e=>t.includes(e))})}sc(e){if(e.length>0){var t,r,i,n,s=null!==(t=null==(r=e[0].stacktrace)?void 0:r.frames)&&void 0!==t?t:[],o=s[s.length-1];return null!==(i=null==o||null==(n=o.filename)?void 0:n.includes("posthog.com/static"))&&void 0!==i&&i}return!1}tc(e){return!J(e)&&z(e)}}},Zu=b({productTours:class{get No(){return this._instance.persistence}constructor(e){this.oc=null,this.lc=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(e.ok){var t=e.config;if("productTours"in t){var r,i;if(this.No&&this.No.register({[ti]:!!t.productTours}),!au(this._instance))return!this.oc&&J(null==(r=this.No)?void 0:r.props[Ai])||ou.info("product tours disabled; stopping and clearing cached tours"),null==(i=this.oc)||i.stop(),this.oc=null,void this.clearCache();this.loadIfEnabled()}}}loadIfEnabled(){!this.oc&&au(this._instance)&&this.Ys(()=>this.uc())}Ys(e){var t,r;null!=(t=v.__PosthogExtensions__)&&t.generateProductTours?e():null==(r=v.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"product-tours",t=>{t?ou.error("Could not load product tours script",t):e()})}uc(){var e;!this.oc&&null!=(e=v.__PosthogExtensions__)&&e.generateProductTours&&(this.oc=v.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(void 0===t&&(t=!1),!z(this.lc)||t){var r=this.No;if(r){var i=r.props[Ai];if(z(i)&&!t)return this.lc=i,void e(i,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",timestampMode:"query",callback:t=>{if(au(this._instance)){var i=t.statusCode;if(200!==i||!t.json){var n="Product Tours API could not be loaded, status: "+i;return 0===i?t.error||ou.warn(n):ou.error(n),void e([],{isLoaded:!1,error:n})}var s=z(t.json.product_tours)?t.json.product_tours:[];this.lc=s,r&&r.register({[Ai]:s}),e(s,{isLoaded:!0})}else e([],{isLoaded:!0})}})}else e(this.lc,{isLoaded:!0})}getActiveProductTours(e){J(this.oc)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.oc.getActiveProductTours(e)}showProductTour(e){var t;null==(t=this.oc)||t.showTourById(e)}previewTour(e){this.oc?this.oc.previewTour(e):this.Ys(()=>{var t;this.uc(),null==(t=this.oc)||t.previewTour(e)})}dismissProductTour(){var e;null==(e=this.oc)||e.dismissTour("user_clicked_skip")}nextStep(){var e;null==(e=this.oc)||e.nextStep()}previousStep(){var e;null==(e=this.oc)||e.previousStep()}clearCache(){var e;this.lc=null,null==(e=this.No)||e.unregister(Ai)}resetTour(e){var t;null==(t=this.oc)||t.resetTour(e)}resetAllTours(){var e;null==(e=this.oc)||e.resetAllTours()}cancelPendingTour(e){var t;null==(t=this.oc)||t.cancelPendingTour(e)}}},Gu),Qu={siteApps:class{constructor(e){this.hc=0,this._instance=e,this.dc=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}vc(e,t){if(t){var r=this.globalsForEvent(t);this.dc.push(r),this.dc.length>1e3&&(this.dc=this.dc.slice(10))}}get siteAppLoaders(){var e;return null==(e=v._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.vc.bind(this));this.cc=()=>{e(),this.dc=[],this.cc=void 0}}}globalsForEvent(e){var t,r,i,n,s,o,a;if(!e)throw new Error("Event payload is required");var l={},u=this._instance.get_property("$groups")||[],c=this._instance.get_property("$stored_group_properties")||{};for(var d of Object.entries(c)){var h=d[0];l[h]={id:u[h],type:h,properties:d[1]}}var p=e.$set_once,f=e.$set;return{event:b({},y(e,lu),{properties:b({},e.properties,f?{$set:b({},null!==(t=null==(r=e.properties)?void 0:r.$set)&&void 0!==t?t:{},f)}:{},p?{$set_once:b({},null!==(i=null==(n=e.properties)?void 0:n.$set_once)&&void 0!==i?i:{},p)}:{}),elements_chain:null!==(s=null==(o=e.properties)?void 0:o.$elements_chain)&&void 0!==s?s:"",distinct_id:null==(a=e.properties)?void 0:a.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}fc(e){var t,r=null==(t=e.tagName)?void 0:t.toLowerCase();return"style"===r&&this._instance.config.prepare_external_dependency_stylesheet?this._instance.config.prepare_external_dependency_stylesheet(e)||(uu.error("prepare_external_dependency_stylesheet returned null"),null):"script"===r&&this._instance.config.prepare_external_dependency_script?this._instance.config.prepare_external_dependency_script(e)||(uu.error("prepare_external_dependency_script returned null"),null):e}gc(){var e,t,r,i,n,s,a,l;if(!this._instance.config.prepare_external_dependency_stylesheet&&!this._instance.config.prepare_external_dependency_script)return()=>{};var u=null==o?void 0:o.defaultView,c=null==u||null==(e=u.Node)?void 0:e.prototype;if(!u||!c)return()=>{};if(this.hc++,this.mc)return this.yc();var d=[],h=this,p=new WeakSet,f=(e,t,r)=>{if(null!=e&&e[t]){var i=e[t];e[t]=r(i),d.push(()=>{e[t]=i})}},v=e=>{if(p.has(e))return e;var t=h.fc(e);return t&&p.add(t),t},g=e=>e.map(e=>"string"==typeof e?e:v(e)).filter(e=>!K(e));return f(c,"appendChild",e=>function(t){var r=v(t);return r?e.call(this,r):t}),f(c,"insertBefore",e=>function(t,r){var i=v(t);return i?e.call(this,i,r):t}),f(c,"replaceChild",e=>function(t,r){var i=v(t);return i?e.call(this,i,r):r}),[null==(t=u.Element)?void 0:t.prototype,null==(r=u.Document)?void 0:r.prototype,null==(i=u.DocumentFragment)?void 0:i.prototype].forEach(e=>{f(e,"append",e=>function(){for(var t=arguments.length,r=new Array(t),i=0;t>i;i++)r[i]=arguments[i];return e.apply(this,g(r))}),f(e,"prepend",e=>function(){for(var t=arguments.length,r=new Array(t),i=0;t>i;i++)r[i]=arguments[i];return e.apply(this,g(r))})}),[null==(n=u.Element)?void 0:n.prototype,null==(s=u.CharacterData)?void 0:s.prototype,null==(a=u.DocumentType)?void 0:a.prototype].forEach(e=>{f(e,"before",e=>function(){for(var t=arguments.length,r=new Array(t),i=0;t>i;i++)r[i]=arguments[i];return e.apply(this,g(r))}),f(e,"after",e=>function(){for(var t=arguments.length,r=new Array(t),i=0;t>i;i++)r[i]=arguments[i];return e.apply(this,g(r))}),f(e,"replaceWith",e=>function(){for(var t=arguments.length,r=new Array(t),i=0;t>i;i++)r[i]=arguments[i];var n=g(r);return r.length&&!n.length?void 0:e.apply(this,n)})}),f(null==(l=u.Element)?void 0:l.prototype,"insertAdjacentElement",e=>function(t,r){var i=v(r);return i?e.call(this,t,i):null}),this.mc=()=>{d.forEach(e=>e()),this.mc=void 0},this.yc()}yc(){var e=!1;return()=>{var t;e||(e=!0,this.hc--,0===this.hc&&(null==(t=this.mc)||t.call(this)))}}bc(e,t){void 0===t&&(t=!0);var r=this.gc();try{var i=e(r);return t&&r(),i}catch(e){throw r(),e}}setupSiteApp(e){var t=this.apps[e.id],r=()=>{var r;!t.errored&&this.dc.length&&(uu.info("Processing "+this.dc.length+" events for site app with id "+e.id),this.dc.forEach(e=>this.bc(()=>null==t.processEvent?void 0:t.processEvent(e))),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(r=this.cc)||r.call(this))},i=!1,n=n=>{t.errored=!n,t.loaded=!0,uu.info("Site app with id "+e.id+" "+(n?"loaded":"errored")),i&&r()};try{var s=this.bc(t=>e.init({posthog:this._instance,callback(e){t(),n(e)}}),!1).processEvent;s&&(t.processEvent=s),i=!0}catch(t){uu.error(cu+e.id,t),n(!1)}if(i&&t.loaded)try{r()}catch(r){uu.error("Error while processing buffered events PostHog app with config id "+e.id,r),t.errored=!0}}_c(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of e)this.setupSiteApp(r)}wc(e){var t=this;if(0!==Object.keys(this.apps).length){var r=this.globalsForEvent(e),i=function(i){try{t.bc(()=>null==i.processEvent?void 0:i.processEvent(r))}catch(t){uu.error("Error while processing event "+e.event+" for site app "+i.id,t)}};for(var n of Object.values(this.apps))i(n)}}onRemoteConfig(e){var t,r,i,n=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this._c(),void this._instance.on("eventCaptured",e=>this.wc(e))):void uu.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(r=this.cc)||r.call(this),e.ok){var s=e.config;if(null!=(i=s.siteApps)&&i.length)if(this.isEnabled){var o=function(){var e,t=a.id,r=a.url;v["__$$ph_site_app_"+t]=n._instance,null==(e=v.__PosthogExtensions__)||null==e.loadSiteApp||e.loadSiteApp(n._instance,r,e=>{if(e)return uu.error(cu+t,e)})};for(var a of s.siteApps)o()}else uu.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}}},Xu={tracingHeaders:class{constructor(e){this.kc=void 0,this.Sc=void 0,this.xc=void 0,this.Nv=()=>{var e,t,r=this.Cc();r?(V(this.kc)&&(this.kc=null==(e=v.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)?void 0:e._patchXHR(r,()=>this._instance.get_distinct_id(),this._instance.sessionManager)),V(this.Sc)&&(this.Sc=null==(t=v.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)?void 0:t._patchFetch(r,()=>this._instance.get_distinct_id(),this._instance.sessionManager))):this.Uv()},this._instance=e}initialize(){this.startIfEnabledOrStop()}Ys(e){var t,r;null!=(t=v.__PosthogExtensions__)&&t.tracingHeadersPatchFns?e():null==(r=v.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return Wl.error("failed to load script",t);e()})}Tc(){var e,t;return null!==(e=null!==(t=this._instance.config.tracing_headers)&&void 0!==t?t:this._instance.config.addTracingHeaders)&&void 0!==e?e:this._instance.config.__add_tracing_headers}Cc(){var e=this.Tc();return z(e)?(z(this.xc)?this.xc.splice(0,this.xc.length,...e):this.xc=[...e],e.length>0?this.xc:void 0):(z(this.xc)&&this.xc.splice(0),this.xc=e||void 0,this.xc)}Uv(){var e,t;null==(e=this.kc)||e.call(this),null==(t=this.Sc)||t.call(this),this.kc=void 0,this.Sc=void 0}startIfEnabledOrStop(){this.Cc()?this.Ys(this.Nv):this.Uv()}}},ec=b({surveys:class extends fu{constructor(e){var t;super(new yu(e),{get projectToken(){return t.config.token},kv:new bu(t=e)}),this._instance=e}Lu(e,t){var r=t.query?Pa(e,t.query):e;return new Promise(e=>{var i;this._instance._send_request({method:t.method,url:this._instance.requestRouter.endpointFor(null!==(i=t.target)&&void 0!==i?i:"api",r),data:t.body,headers:t.headers,timeout:t.timeoutMs,fireCallbackOnDrop:!0,transport:t.transport,compression:t.compression,timestampMode:t.sentAt,callback:e})})}}},Gu),tc={toolbar:class{constructor(e){this.instance=e}Mc(e){v.ph_toolbar_state=e}Ec(){var e;return null!==(e=v.ph_toolbar_state)&&void 0!==e?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,r){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),vn(this.instance.config))return!1;if(!i||!o)return!1;e=null!=e?e:i.location,r=null!=r?r:i.history;try{if(!t){try{i.localStorage.setItem("test","test"),i.localStorage.removeItem("test")}catch(e){return!1}t=null==i?void 0:i.localStorage}var n,s=wu||Gs(e.hash,"__posthog")||Gs(e.hash,"state"),a=s?un(()=>JSON.parse(atob(decodeURIComponent(s))))||un(()=>JSON.parse(decodeURIComponent(s))):null;return a&&"ph_authorize"===a.action?((n=a).source="url",n&&Object.keys(n).length>0&&(a.desiredHash?e.hash=a.desiredHash:r?r.replaceState(r.state,"",e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem(xu)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch(e){return!1}}Ic(e){var t=v.ph_load_toolbar||v.ph_load_editor;!J(t)&&U(t)?t(e,this.instance):ku.warn("No toolbar load function found")}loadToolbar(e){var t=!(null==o||!o.getElementById(Wn));if(!i||t)return!1;var r="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,n=b({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},r?{instrument:!1}:{});if(i.localStorage.setItem(xu,JSON.stringify(b({},n,{source:void 0}))),2===this.Ec())this.Ic(n);else if(0===this.Ec()){var s;this.Mc(1),null==(s=v.__PosthogExtensions__)||null==s.loadExternalDependency||s.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return ku.error("[Toolbar] Failed to load",e),void this.Mc(0);this.Mc(2),this.Ic(n)}),fn(i,"turbolinks:load",()=>{this.Mc(0),this.loadToolbar(n)})}return!0}Rc(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,r){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),this.maybeLoadToolbar(e,t,r)}}},rc=b({experiments:Lu},Gu),ic={conversations:class{constructor(e){this.Pc=void 0,this._conversationsManager=null,this.Ac=!1,this.je=null,this.Fc=!1,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations&&(this.Oc=e.ok,e.ok)){var t=e.config.conversations;J(t)||(Q(t)?this.Pc=t:(this.Pc=t.enabled,this.je=t),this.loadIfEnabled())}}reset(){var e;null==(e=this._conversationsManager)||e.reset(),this._conversationsManager=null,this.Pc=void 0,this.je=null,this.Oc=void 0,this.Fc=!1}loadIfEnabled(){if(!(this._conversationsManager||this.Ac||this._instance.config.disable_conversations||vn(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=null==v?void 0:v.__PosthogExtensions__;if(e&&!V(this.Pc)&&this.Pc)if(this.je&&this.je.token){this.Ac=!0;try{var t=e.initConversations;if(t)return this.Lc(t),void(this.Ac=!1);var r=e.loadExternalDependency;if(!r)return void this.Dc(Wi);r(this._instance,"conversations",t=>{t||!e.initConversations?this.Dc("Could not load conversations script",t):this.Lc(e.initConversations),this.Ac=!1})}catch(e){this.Dc("Error initializing conversations",e),this.Ac=!1}}else Du.error("Conversations enabled but missing token in remote config.")}}Lc(e){if(this.je)try{this._conversationsManager=e(this.je,this._instance),this.Fc=!1,Du.info("Conversations loaded successfully")}catch(e){this.Dc("Error completing conversations initialization",e)}else Du.error("Cannot complete initialization: remote config is null")}Dc(e,t){Du.error(e,t),this._conversationsManager=null,this.Ac=!1,this.Fc=!0}show(){this._conversationsManager?this._conversationsManager.show():Du.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.Pc&&!K(this._conversationsManager)}getUnavailableReason(){return this.isAvailable()?null:this._instance.config.disable_conversations?"disabled_by_config":vn(this._instance.config)?"disabled_for_toolbar":this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut()?"consent_opted_out":!1===this.Oc?"remote_config_failed":V(this.Pc)?this.Oc?"disabled_in_project":"remote_config_pending":this.Pc?J(this.je)||!this.je.token?"missing_token":null!=v&&v.__PosthogExtensions__?this.Ac?"initializing":this.Fc?"load_failed":"not_loaded":"extensions_unavailable":"disabled_in_project"}isVisible(){var e,t;return null!==(e=null==(t=this._conversationsManager)?void 0:t.isVisible())&&void 0!==e&&e}sendMessage(e,t,r){var i=this;return _(function*(){return i._conversationsManager?i._conversationsManager.sendMessage(e,t,r):(Du.warn(Bu),null)})()}getMessages(e,t){var r=this;return _(function*(){return r._conversationsManager?r._conversationsManager.getMessages(e,t):(Du.warn(Bu),null)})()}markAsRead(e){var t=this;return _(function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Du.warn(Bu),null)})()}getTickets(e){var t=this;return _(function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Du.warn(Bu),null)})()}requestRestoreLink(e){var t=this;return _(function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Du.warn(Bu),null)})()}restoreFromToken(e){var t=this;return _(function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Du.warn(Bu),null)})()}restoreFromUrlToken(){var e=this;return _(function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Du.warn(Bu),null)})()}getCurrentTicketId(){var e,t;return null!==(e=null==(t=this._conversationsManager)?void 0:t.getCurrentTicketId())&&void 0!==e?e:null}getWidgetSessionId(){var e,t;return null!==(e=null==(t=this._conversationsManager)?void 0:t.getWidgetSessionId())&&void 0!==e?e:null}bu(){var e;null==(e=this._conversationsManager)||e.setIdentity()}_u(){var e;null==(e=this._conversationsManager)||e.clearIdentity()}}},nc={logs:class{constructor(e){var t,r=this;this.name="logs",this.$c=!1,this.Nc=!1,this.qc=!1,this.A=$r("[logs]"),this.jc=b({},this.A,{error(){for(var e=arguments.length,t=new Array(e),i=0;e>i;i++)t[i]=arguments[i];t.some(Wu)||r.A.error(...t)}}),this.po=[],this.Bc=[],this.fd=0,this.Os=!1,this.Hc=[],this.zc=[],this.Uc=!1,this.Wc=!1,this.Vc=()=>{var e,t;this.Os||(this.fd=0,null==(e=this.Gc)||e.onReconnect(),null==(t=this.Zc)||t.onReconnect())},this._instance=e,this._instance&&null!=(t=this._instance.config.logs)&&t.captureConsoleLogs&&(this.$c=!0),i&&fn(i,"online",this.Vc)}Qc(e,t,r,i){var n,s=zu(null==(n=this._instance)||null==(n=n.config)?void 0:n.logs,r);return[new Jt(this.Jc(e,t),s,this.jc,()=>this.Kc(),e=>e(),void 0,i),s]}Yc(){var e,t=null==(e=this._instance)||null==(e=e.config)?void 0:e.logs;if(!this.Gc||this.Xc!==t){var r;null==(r=this.Gc)||r.reset(),this.Xc=t;var i=this.Qc(()=>this.po,e=>{this.po=e});this.Gc=i[0],this.tf=i[1]}return this.Gc}ef(){var e,t=null==(e=this._instance)||null==(e=e.config)?void 0:e.logs;if(!this.Zc||this.if!==t){var r;null==(r=this.Zc)||r.reset(),this.if=t;var i=this.Qc(()=>this.Bc,e=>{this.Bc=e},{serviceNameDefault:"posthog-browser-logs",consoleCapture:!0},qu);this.Zc=i[0],this.rf=i[1]}return this.Zc}setup(e){var t;if(!this.Os){this.Ns=e,null!=(t=this._instance)&&null!=(t=t.config)&&null!=(t=t.logs)&&t.captureConsoleLogs&&(this.$c=!0),(this.$c||this.nf()&&this.sf())&&this.af();var r=!1,i=e.onRemoteConfig(e=>{var t;r=e.ok&&!0===(null==(t=e.config.logs)?void 0:t.captureConsoleLogs),this.onRemoteConfig(e)});this.Os?i.dispose():(this.qs=i,r||this.loadIfEnabled())}}dispose(){var e,t,r,n;this.Os||(this.Os=!0,this.lf(),null==(e=this.qs)||e.dispose(),this.qs=void 0,this.Ns=void 0,this.qc=!1,null==i||i.removeEventListener("online",this.Vc),null==(t=this.uf)||t.call(this),this.uf=void 0,null==(r=this.Gc)||r.reset(),null==(n=this.Zc)||n.reset())}onRemoteConfig(e){var t,r;if(!this.Os){var i=e.ok?null==(t=e.config.logs)?void 0:t.captureConsoleLogs:void 0;J(i)?this.hf():(null==(r=this._instance)||null==(r=r.persistence)||r.register({[ri]:!!i}),i?(this.$c=!0,this.Nc||this.af(),this.loadIfEnabled()):this.hf())}}reset(){var e,t,r,i;this.lf(),null==(e=this.Gc)||e.clearQueue(),this.po=[],null==(t=this.Gc)||t.reset(),null==(r=this.Zc)||r.clearQueue(),this.Bc=[],null==(i=this.Zc)||i.reset(),this.fd=0}captureLog(e){this.Os||this.Yc().captureLog(e)}captureConsoleLog(e){this.Os||this.ef().captureLog(e)}captureBufferedConsoleLog(e,t,r){this.Os||this.ef().captureLog(e,{context:t,occurredAtMs:r})}sf(){var e;return!(null==(e=this._instance)||null==(e=e.persistence)||null==(e=e.props)||!e[ri])}nf(){var e,t;return null==(e=this._instance)||null==e.do||!e.do()||!(null==(t=v._POSTHOG_REMOTE_CONFIG)||null==(t=t[this._instance.config.token])||!t.config)}ku(){var e;this.lf(),null==(e=this.Zc)||e.clearQueue(),this.Bc=[]}hf(){this.$c||this.lf()}af(){var e,t=this;if(!this.Uc&&null!=v&&v.console){var r=zu(null==(e=this._instance)||null==(e=e.config)?void 0:e.logs).maxBufferSize,i=function(e){var i;try{i=(e=>{for(;null!=(t=e)&&t.__rrweb_original__;){var t;e=e.__rrweb_original__}return e})(v.console[e])}catch(e){return 0}if(!i)return 0;t.zc.push(Vl(v.console,e,n=>{var s=function(){for(var i=arguments.length,s=new Array(i),o=0;i>o;o++)s[o]=arguments[o];try{t.df(e,s,r)}catch(e){}return n.apply(v.console,s)};return s.__rrweb_original__=i,s}))};for(var n of Uu)i(n);this.Uc=!0,this.vf=setTimeout(()=>{this.lf()},3e4)}}df(e,t,r){var i;if(this.Uc&&!this.Wc&&0!==t.length)if(null!=(i=this._instance)&&i.is_capturing()){if(r>this.Hc.length){this.Wc=!0;try{this.Hc.push({level:e,args:t,occurredAtMs:Date.now(),context:this.Kc()})}finally{this.Wc=!1}}}else this.lf()}lf(){if(this.Hc=[],this.Uc){for(var e of(this.Uc=!1,this.vf&&(clearTimeout(this.vf),this.vf=void 0),this.zc))e();this.zc=[]}}cf(){var e=this.Hc;return this.lf(),e}get logger(){return this.ff||(this.ff={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ff}flushLogs(e){e?this.pf(e):(this.Gc&&this.Gc.flush().catch(e=>this.gf(e)),this.Zc&&this.Zc.flush().catch(e=>this.gf(e)))}gf(e){Wu(e)||this.A.error("PostHog logs flush failed:",e)}loadIfEnabled(){if(!this.Os&&this.$c&&!this.Nc&&!this.qc){var e=null==v?void 0:v.__PosthogExtensions__;if(!e)return this.A.error("PostHog Extensions not found."),void this.lf();var t=e.loadExternalDependency;if(!t)return this.A.error(Wi),void this.lf();this.qc=!0;try{t(this._instance,"logs",t=>{if(this.qc=!1,!this.Os&&this.$c){var r=e.logs;if(t||null==r||!r.initializeLogs)this.A.error("Could not load logs script",t),this.lf();else{var i,n,s=this.cf();this.uf=r.initializeLogs(null!==(i=this.Ns)&&void 0!==i?i:this._instance),this.Nc=!0,s.length>0&&(null==r.replayConsoleBuffer||r.replayConsoleBuffer(null!==(n=this.Ns)&&void 0!==n?n:this._instance,s))}}})}catch(e){throw this.qc=!1,e}}}Jc(e,t){var r=this._instance;return{get isDisabled(){return!1},get optedOut(){return!r.is_capturing()},getPersistedProperty:t=>t===S.LogsQueue?e():void 0,setPersistedProperty(e,r){var i;e===S.LogsQueue&&t(null!==(i=r)&&void 0!==i?i:[])},os:e=>this.os(e),getLibraryId:()=>g.LIB_NAME,getLibraryVersion:()=>g.LIB_VERSION}}os(e){return new Promise(t=>{if(Ks(this.fd,3))t({kind:"fatal",error:Vu(void 0,"logs endpoint is unreachable, dropping batch")});else{var r=!1,i=e=>{r||(r=!0,clearTimeout(n),t(e))},n=setTimeout(()=>{this.A.warn("Logs request timed out before receiving a response"),i({kind:"retry-later",error:Vu(void 0,"logs request timed out")})},9e4);this._instance._send_request({method:"POST",url:this.mf(),data:e,compression:"best-available",batchKey:"logs",fireCallbackOnDrop:!0,callback:e=>{var t=e.statusCode;if(this.yf(t),t>=200&&300>t)i({kind:"ok"});else if(413===t)i({kind:"too-large"});else if(0!==t&&408!==t&&429!==t&&500>t)i({kind:"fatal",error:new Error("logs request failed with status "+t)});else{var r;0===t?(e.error||this.A.warn("Logs request failed before receiving an HTTP response"),i({kind:"retry-later",error:Vu(e.error,"logs request failed before receiving an HTTP response")})):i({kind:"retry-later",error:null!==(r=e.error)&&void 0!==r?r:new Error("logs request failed with status "+t)})}}})}})}yf(e){(0!==e||this._instance.__loaded)&&(this.fd=Js(e,this.fd,3,()=>this.A.warn("Log requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped sending logs; will try again when connectivity changes.")))}pf(e){this.po.length>0&&this.bf(e,this.po,this.tf,g.LIB_NAME,e=>{this.po=e}),this.Bc.length>0&&this.bf(e,this.Bc,this.rf,qu,e=>{this.Bc=e})}bf(e,t,r,i,n){if(0!==t.length){var s=t.map(e=>e.record);n([]);var o=Kt(s,Gt(r,g.LIB_NAME,g.LIB_VERSION),i,g.LIB_VERSION);this._instance._send_request({method:"POST",url:this.mf(),data:o,compression:"best-available",batchKey:"logs",transport:e})}}mf(){return this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token)}Kc(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var r=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.windowId,n=r.sessionStartTimestamp,s=r.lastActivityTimestamp;t.sessionId=r.sessionId,t.windowId=i,J(n)||(t.sessionStartTimestamp=n),J(s)||(t.lastActivityTimestamp=s)}if(null!=v&&null!=(e=v.location)&&e.href&&(t.currentUrl=this._instance.config.disable_capture_url_hashes?kt(v.location.href):v.location.href),this._instance.featureFlags){var o=this._instance.featureFlags.getFlags();o&&o.length>0&&(t.activeFeatureFlags=o)}return t}}},sc={metrics:class{constructor(e){this.A=$r("[metrics]"),this._instance=e}initialize(){}Yc(){var e,t,r=null==(e=this._instance)||null==(e=e.config)?void 0:e.metrics;return this.Gc&&this.Xc===r||(null==(t=this.Gc)||t.reset(),this.Xc=r,this.Gc=new Xt(this.Jc(),function(e){var t,r,i,n,s,o=null==e?void 0:e.resourceAttributes;return{serviceName:null!==(t=null==o?void 0:o["service.name"])&&void 0!==t?t:null==e?void 0:e.serviceName,serviceVersion:null!==(r=null==o?void 0:o["service.version"])&&void 0!==r?r:null==e?void 0:e.serviceVersion,environment:null!==(i=null==o?void 0:o["deployment.environment"])&&void 0!==i?i:null==e?void 0:e.environment,resourceAttributes:o,beforeSend:null==e?void 0:e.beforeSend,flushIntervalMs:null!==(n=null==e?void 0:e.flushIntervalMs)&&void 0!==n?n:1e4,maxSeriesPerFlush:null!==(s=null==e?void 0:e.maxSeriesPerFlush)&&void 0!==s?s:1e3}}(r),this.A)),this.Gc}count(e,t,r){void 0===t&&(t=1),this.Yc().count(e,t,r)}
2gauge(e,t,r){this.Yc().gauge(e,t,r)}histogram(e,t,r){this.Yc().histogram(e,t,r)}flush(e){if(!this.Gc)return Promise.resolve();if(e){var t=this.Gc.drainWindow();return t&&this.xs(t,e),Promise.resolve()}return this.Gc.flush().catch(e=>this.A.error("PostHog metrics flush failed:",e))}reset(){var e;null==(e=this.Gc)||e.reset()}Jc(){var e=this._instance,t=this;return{get isDisabled(){return!1},get optedOut(){return!e.is_capturing()},xs:e=>t.xs(e),getLibraryId:()=>g.LIB_NAME,getLibraryVersion:()=>g.LIB_VERSION}}xs(e,t){return new Promise(r=>{var i=!1,n=e=>{i||(i=!0,clearTimeout(s),r(e))},s=setTimeout(()=>n({kind:"retry-later",error:new Error("metrics request timed out")}),9e4);this._instance._send_request(b({method:"POST",url:this._f(),data:e,compression:"best-available",batchKey:"metrics"},t&&{transport:t},{fireCallbackOnDrop:!0,callback(e){var t=e.statusCode;if(t>=200&&300>t)n({kind:"ok"});else if(413===t)n({kind:"too-large"});else if(0!==t&&408!==t&&429!==t&&500>t)n({kind:"fatal",error:new Error("metrics request failed with status "+t)});else{var r;n({kind:"retry-later",error:null!==(r=e.error)&&void 0!==r?r:new Error("metrics request failed with status "+t)})}}}))})}_f(){return this._instance.requestRouter.endpointFor("api","/i/v1/metrics")+"?token="+encodeURIComponent(this._instance.config.token)}}},oc=b({},Gu,Ku,Ju,Yu,Zu,Qu,ec,Xu,tc,rc,ic,nc,sc);Ml.__defaultExtensionClasses=b({},oc);var ac=function(){g.SDK_DIST_CHANNEL="npm";var e=bl[Ol]=new Ml;return function(){function e(){e.done||(e.done=!0,Cl=!1,on(bl,function(e){e._dom_loaded()}))}null!=o&&o.addEventListener?"complete"===o.readyState?e():fn(o,"DOMContentLoaded",e,{capture:!1}):i&&jr.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),e}()},6786(e,t,r){var i=r(5533);var n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useState,o=i.useEffect,a=i.useLayoutEffect,l=i.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),i=s({inst:{value:r,getSnapshot:t}}),n=i[0].inst,c=i[1];return a(function(){n.value=r,n.getSnapshot=t,u(n)&&c({inst:n})},[e,r,t]),o(function(){return u(n)&&c({inst:n}),e(function(){u(n)&&c({inst:n})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:c},413(e,t,r){var i=r(5533),n=r(2179);var s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,a=i.useRef,l=i.useEffect,u=i.useMemo,c=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,i,n){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=u(function(){function e(e){if(!l){if(l=!0,o=e,e=i(e),void 0!==n&&h.hasValue){var t=h.value;if(n(t,e))return a=t}return a=e}if(t=a,s(o,e))return t;var r=i(e);return void 0!==n&&n(t,r)?t:(o=e,a=r)}var o,a,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,i,n]);var p=o(e,d[0],d[1]);return l(function(){h.hasValue=!0,h.value=p},[p]),c(p),p}},2179(e,t,r){e.exports=r(6786)},3417(e,t,r){e.exports=r(413)},8793(e,t,r){function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},i.apply(null,arguments)}r.d(t,{A:()=>i})},1152(e,t,r){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function s(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 34,744 bytes, line 2
2t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r.d(t,{A:()=>a})},9032(e,t,r){function i(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}r.d(t,{A:()=>i})},6649(e,t,r){r.d(t,{A:()=>bt});var i={};function n(e,t){return function(){return e.apply(t,arguments)}}r.r(i),r.d(i,{hasBrowserEnv:()=>de,hasStandardBrowserEnv:()=>pe,hasStandardBrowserWebWorkerEnv:()=>fe,navigator:()=>he,origin:()=>ve});const{toString:s}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:a,toStringTag:l}=Symbol,u=(c=Object.create(null),e=>{const t=s.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const d=e=>(e=e.toLowerCase(),t=>u(t)===e),h=e=>t=>typeof t===e,{isArray:p}=Array,f=h("undefined");function v(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g=d("ArrayBuffer");const m=h("string"),_=h("function"),b=h("number"),y=e=>null!==e&&"object"==typeof e,w=e=>{if("object"!==u(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||l in e||a in e)},x=d("Date"),k=d("File"),E=d("Blob"),S=d("FileList"),P=d("URLSearchParams"),[O,C,A,R]=["ReadableStream","Request","Response","Headers"].map(d);function T(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let i,n;if("object"!=typeof e&&(e=[e]),p(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{if(v(e))return;const n=r?Object.getOwnPropertyNames(e):Object.keys(e),s=n.length;let o;for(i=0;i<s;i++)o=n[i],t.call(null,e[o],o,e)}}function F(e,t){if(v(e))return null;t=t.toLowerCase();const r=Object.keys(e);let i,n=r.length;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,M=e=>!f(e)&&e!==I;const j=($="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>$&&e instanceof $);var $;const N=d("HTMLFormElement"),L=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),D=d("RegExp"),B=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),i={};T(r,(r,n)=>{let s;!1!==(s=t(r,n,e))&&(i[n]=s||r)}),Object.defineProperties(e,i)};const z=d("AsyncFunction"),U=(q="function"==typeof setImmediate,H=_(I.postMessage),q?setImmediate:H?(V=`axios@${Math.random()}`,W=[],I.addEventListener("message",({source:e,data:t})=>{e===I&&t===V&&W.length&&W.shift()()},!1),e=>{W.push(e),I.postMessage(V,"*")}):e=>setTimeout(e));var q,H,V,W;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(I):"undefined"!=typeof process&&process.nextTick||U,K={isArray:p,isArrayBuffer:g,isBuffer:v,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||_(e.append)&&("formdata"===(t=u(e))||"object"===t&&_(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:m,isNumber:b,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:w,isEmptyObject:e=>{if(!y(e)||v(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:O,isRequest:C,isResponse:A,isHeaders:R,isUndefined:f,isDate:x,isFile:k,isBlob:E,isRegExp:D,isFunction:_,isStream:e=>y(e)&&_(e.pipe),isURLSearchParams:P,isTypedArray:j,isFileList:S,forEach:T,merge:function e(){const{caseless:t,skipUndefined:r}=M(this)&&this||{},i={},n=(n,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const o=t&&F(i,s)||s;w(i[o])&&w(n)?i[o]=e(i[o],n):w(n)?i[o]=e({},n):p(n)?i[o]=n.slice():r&&f(n)||(i[o]=n)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&T(arguments[e],n);return i},extend:(e,t,r,{allOwnKeys:i}={})=>(T(t,(t,i)=>{r&&_(t)?Object.defineProperty(e,i,{value:n(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,i)=>{let n,s,a;const l={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)a=n[s],i&&!i(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==r&&o(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:u,kindOfTest:d,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const i=e.indexOf(t,r);return-1!==i&&i===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!b(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[a]).call(e);let i;for(;(i=r.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const i=[];for(;null!==(r=e.exec(t));)i.push(r);return i},isHTMLForm:N,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:B,freezeMethods:e=>{B(e,(t,r)=>{if(_(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const i=e[r];_(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},i=e=>{e.forEach(e=>{r[e]=!0})};return p(e)?i(e):i(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:F,global:I,isContextDefined:M,isSpecCompliantForm:function(e){return!!(e&&_(e.append)&&"FormData"===e[l]&&e[a])},toJSONObject:e=>{const t=new Array(10),r=(e,i)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(v(e))return e;if(!("toJSON"in e)){t[i]=e;const n=p(e)?[]:{};return T(e,(e,t)=>{const s=r(e,i+1);!f(s)&&(n[t]=s)}),t[i]=void 0,n}}return e};return r(e,0)},isAsyncFn:z,isThenable:e=>e&&(y(e)||_(e))&&_(e.then)&&_(e.catch),setImmediate:U,asap:G,isIterable:e=>null!=e&&_(e[a])};class J extends Error{static from(e,t,r,i,n,s){const o=new J(e.message,t||e.code,r,i,n);return o.cause=e,o.name=e.name,s&&Object.assign(o,s),o}constructor(e,t,r,i,n){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),n&&(this.response=n,this.status=n.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}}J.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",J.ERR_BAD_OPTION="ERR_BAD_OPTION",J.ECONNABORTED="ECONNABORTED",J.ETIMEDOUT="ETIMEDOUT",J.ERR_NETWORK="ERR_NETWORK",J.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",J.ERR_DEPRECATED="ERR_DEPRECATED",J.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",J.ERR_BAD_REQUEST="ERR_BAD_REQUEST",J.ERR_CANCELED="ERR_CANCELED",J.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",J.ERR_INVALID_URL="ERR_INVALID_URL";const Y=J;function Z(e){return K.isPlainObject(e)||K.isArray(e)}function Q(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map(function(e,t){return e=Q(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const ee=K.toFlatObject(K,{},null,function(e){return/^is[A-Z]/.test(e)});const te=function(e,t,r){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(r=K.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!K.isUndefined(t[e])})).metaTokens,n=r.visitor||u,s=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(n))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(K.isBoolean(e))return e.toString();if(!a&&K.isBlob(e))throw new Y("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,n){let a=e;if(e&&!n&&"object"==typeof e)if(K.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&function(e){return K.isArray(e)&&!e.some(Z)}(e)||(K.isFileList(e)||K.endsWith(r,"[]"))&&(a=K.toArray(e)))return r=Q(r),a.forEach(function(e,i){!K.isUndefined(e)&&null!==e&&t.append(!0===o?X([r],i,s):null===o?r:r+"[]",l(e))}),!1;return!!Z(e)||(t.append(X(n,r,s),l(e)),!1)}const c=[],d=Object.assign(ee,{defaultVisitor:u,convertValue:l,isVisitable:Z});if(!K.isObject(e))throw new TypeError("data must be an object");return function e(r,i){if(!K.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+i.join("."));c.push(r),K.forEach(r,function(r,s){!0===(!(K.isUndefined(r)||null===r)&&n.call(t,r,K.isString(s)?s.trim():s,i,d))&&e(r,i?i.concat(s):[s])}),c.pop()}}(e),t};function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ie(e,t){this._pairs=[],e&&te(e,this,t)}const ne=ie.prototype;ne.append=function(e,t){this._pairs.push([e,t])},ne.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const se=ie;function oe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ae(e,t,r){if(!t)return e;const i=r&&r.encode||oe,n=K.isFunction(r)?{serialize:r}:r,s=n&&n.serialize;let o;if(o=s?s(t,n):K.isURLSearchParams(t)?t.toString():new se(t,n).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const le=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,function(t){null!==t&&e(t)})}},ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:se,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},de="undefined"!=typeof window&&"undefined"!=typeof document,he="object"==typeof navigator&&navigator||void 0,pe=de&&(!he||["ReactNative","NativeScript","NS"].indexOf(he.product)<0),fe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ve=de&&window.location.href||"http://localhost",ge={...i,...ce};const me=function(e){function t(e,r,i,n){let s=e[n++];if("__proto__"===s)return!0;const o=Number.isFinite(+s),a=n>=e.length;if(s=!s&&K.isArray(i)?i.length:s,a)return K.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o;i[s]&&K.isObject(i[s])||(i[s]=[]);return t(e,r,i[s],n)&&K.isArray(i[s])&&(i[s]=function(e){const t={},r=Object.keys(e);let i;const n=r.length;let s;for(i=0;i<n;i++)s=r[i],t[s]=e[s];return t}(i[s])),!o}if(K.isFormData(e)&&K.isFunction(e.entries)){const r={};return K.forEachEntry(e,(e,i)=>{t(function(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),i,r,0)}),r}return null};const _e={transitional:ue,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",i=r.indexOf("application/json")>-1,n=K.isObject(e);n&&K.isHTMLForm(e)&&(e=new FormData(e));if(K.isFormData(e))return i?JSON.stringify(me(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,{visitor:function(e,t,r,i){return ge.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=K.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||i?(t.setContentType("application/json",!1),function(e,t,r){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||_e.transitional,r=t&&t.forcedJSONParsing,i="json"===this.responseType;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(r&&!this.responseType||i)){const r=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw Y.from(e,Y.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],e=>{_e.headers[e]={}});const be=_e,ye=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),we=Symbol("internals");function xe(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:K.isArray(e)?e.map(ke):String(e)}function Ee(e,t,r,i,n){return K.isFunction(i)?i.call(this,t,r):(n&&(t=r),K.isString(t)?K.isString(i)?-1!==t.indexOf(i):K.isRegExp(i)?i.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function n(e,t,r){const n=xe(t);if(!n)throw new Error("header name must be a non-empty string");const s=K.findKey(i,n);(!s||void 0===i[s]||!0===r||void 0===r&&!1!==i[s])&&(i[s||t]=ke(e))}const s=(e,t)=>K.forEach(e,(e,r)=>n(e,r,t));if(K.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(K.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let r,i,n;return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),i=e.substring(n+1).trim(),!r||t[r]&&ye[r]||("set-cookie"===r?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t})(e),t);else if(K.isObject(e)&&K.isIterable(e)){let r,i,n={};for(const t of e){if(!K.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[i=t[0]]=(r=n[i])?K.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}s(n,t)}else null!=e&&n(t,e,r);return this}get(e,t){if(e=xe(e)){const r=K.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(e);)t[i[1]]=i[2];return t}(e);if(K.isFunction(t))return t.call(this,e,r);if(K.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=xe(e)){const r=K.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ee(0,this[r],r,t))}return!1}delete(e,t){const r=this;let i=!1;function n(e){if(e=xe(e)){const n=K.findKey(r,e);!n||t&&!Ee(0,r[n],n,t)||(delete r[n],i=!0)}}return K.isArray(e)?e.forEach(n):n(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const n=t[r];e&&!Ee(0,this[n],n,e,!0)||(delete this[n],i=!0)}return i}normalize(e){const t=this,r={};return K.forEach(this,(i,n)=>{const s=K.findKey(r,n);if(s)return t[s]=ke(i),void delete t[n];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(n):String(n).trim();o!==n&&delete t[n],t[o]=ke(i),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return K.forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&K.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[we]=this[we]={accessors:{}}).accessors,r=this.prototype;function i(e){const i=xe(e);t[i]||(!function(e,t){const r=K.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(e,r,n){return this[i].call(this,t,e,r,n)},configurable:!0})})}(r,e),t[i]=!0)}return K.isArray(e)?e.forEach(i):i(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(Se.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),K.freezeMethods(Se);const Pe=Se;function Oe(e,t){const r=this||be,i=t||r,n=Pe.from(i.headers);let s=i.data;return K.forEach(e,function(e){s=e.call(r,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}function Ce(e){return!(!e||!e.__CANCEL__)}const Ae=class extends Y{constructor(e,t,r){super(null==e?"canceled":e,Y.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function Re(e,t,r){const i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(new Y("Request failed with status code "+r.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const Te=function(e,t){e=e||10;const r=new Array(e),i=new Array(e);let n,s=0,o=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),u=i[o];n||(n=l),r[s]=a,i[s]=l;let c=o,d=0;for(;c!==s;)d+=r[c++],c%=e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),l-n<t)return;const h=u&&l-u;return h?Math.round(1e3*d/h):void 0}};const Fe=function(e,t){let r,i,n=0,s=1e3/t;const o=(t,s=Date.now())=>{n=s,r=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-n;a>=s?o(e,t):(r=e,i||(i=setTimeout(()=>{i=null,o(r)},s-a)))},()=>r&&o(r)]},Ie=(e,t,r=3)=>{let i=0;const n=Te(50,250);return Fe(r=>{const s=r.loaded,o=r.lengthComputable?r.total:void 0,a=s-i,l=n(a);i=s;e({loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&s<=o?(o-s)/l:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})},r)},Me=(e,t)=>{const r=null!=e;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},je=e=>(...t)=>K.asap(()=>e(...t)),$e=ge.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ge.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,Ne=ge.hasStandardBrowserEnv?{write(e,t,r,i,n,s,o){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];K.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),K.isString(i)&&a.push(`path=${i}`),K.isString(n)&&a.push(`domain=${n}`),!0===s&&a.push("secure"),K.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Le(e,t,r){let i=!("string"==typeof(n=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n));var n;return e&&(i||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const De=e=>e instanceof Pe?{...e}:e;function Be(e,t){t=t||{};const r={};function i(e,t,r,i){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:i},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function n(e,t,r,n){return K.isUndefined(t)?K.isUndefined(e)?void 0:i(void 0,e,0,n):i(e,t,0,n)}function s(e,t){if(!K.isUndefined(t))return i(void 0,t)}function o(e,t){return K.isUndefined(t)?K.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(r,n,s){return s in t?i(r,n):s in e?i(void 0,r):void 0}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t,r)=>n(De(e),De(t),0,!0)};return K.forEach(Object.keys({...e,...t}),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=K.hasOwnProp(l,i)?l[i]:n,o=s(e[i],t[i],i);K.isUndefined(o)&&s!==a||(r[i]=o)}),r}const ze=e=>{const t=Be({},e);let{data:r,withXSRFToken:i,xsrfHeaderName:n,xsrfCookieName:s,headers:o,auth:a}=t;if(t.headers=o=Pe.from(o),t.url=ae(Le(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),K.isFormData(r))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(K.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&o.set(e,r)})}if(ge.hasStandardBrowserEnv&&(i&&K.isFunction(i)&&(i=i(t)),i||!1!==i&&$e(t.url))){const e=n&&s&&Ne.read(s);e&&o.set(n,e)}return t},Ue="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const i=ze(e);let n=i.data;const s=Pe.from(i.headers).normalize();let o,a,l,u,c,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=i;function f(){u&&u(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(o),i.signal&&i.signal.removeEventListener("abort",o)}let v=new XMLHttpRequest;function g(){if(!v)return;const i=Pe.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());Re(function(e){t(e),f()},function(e){r(e),f()},{data:d&&"text"!==d&&"json"!==d?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:i,config:e,request:v}),v=null}v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout,"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(g)},v.onabort=function(){v&&(r(new Y("Request aborted",Y.ECONNABORTED,e,v)),v=null)},v.onerror=function(t){const i=t&&t.message?t.message:"Network Error",n=new Y(i,Y.ERR_NETWORK,e,v);n.event=t||null,r(n),v=null},v.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const n=i.transitional||ue;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),r(new Y(t,n.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,v)),v=null},void 0===n&&s.setContentType(null),"setRequestHeader"in v&&K.forEach(s.toJSON(),function(e,t){v.setRequestHeader(t,e)}),K.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),d&&"json"!==d&&(v.responseType=i.responseType),p&&([l,c]=Ie(p,!0),v.addEventListener("progress",l)),h&&v.upload&&([a,u]=Ie(h),v.upload.addEventListener("progress",a),v.upload.addEventListener("loadend",u)),(i.cancelToken||i.signal)&&(o=t=>{v&&(r(!t||t.type?new Ae(null,e,v):t),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(o),i.signal&&(i.signal.aborted?o():i.signal.addEventListener("abort",o)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);m&&-1===ge.protocols.indexOf(m)?r(new Y("Unsupported protocol "+m+":",Y.ERR_BAD_REQUEST,e)):v.send(n||null)})},qe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,i=new AbortController;const n=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;i.abort(t instanceof Y?t:new Ae(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,n(new Y(`timeout of ${t}ms exceeded`,Y.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));const{signal:a}=i;return a.unsubscribe=()=>K.asap(o),a}},He=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let i,n=0;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},Ve=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},We=(e,t,r,i)=>{const n=async function*(e,t){for await(const r of Ve(e))yield*He(r,t)}(e,t);let s,o=0,a=e=>{s||(s=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await n.next();if(t)return a(),void e.close();let s=i.byteLength;if(r){let e=o+=s;r(e)}e.enqueue(new Uint8Array(i))}catch(e){throw a(e),e}},cancel:e=>(a(e),n.return())},{highWaterMark:2})},{isFunction:Ge}=K,Ke=(({Request:e,Response:t})=>({Request:e,Response:t}))(K.global),{ReadableStream:Je,TextEncoder:Ye}=K.global,Ze=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Qe=e=>{e=K.merge.call({skipUndefined:!0},Ke,e);const{fetch:t,Request:r,Response:i}=e,n=t?Ge(t):"function"==typeof fetch,s=Ge(r),o=Ge(i);if(!n)return!1;const a=n&&Ge(Je),l=n&&("function"==typeof Ye?(u=new Ye,e=>u.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var u;const c=s&&a&&Ze(()=>{let e=!1;const t=new r(ge.origin,{body:new Je,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=o&&a&&Ze(()=>K.isReadableStream(new i("").body)),h={stream:d&&(e=>e.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!h[e]&&(h[e]=(t,r)=>{let i=t&&t[e];if(i)return i.call(t);throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,r)})});const p=async(e,t)=>{const i=K.toFiniteNumber(e.getContentLength());return null==i?(async e=>{if(null==e)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e)){const t=new r(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return K.isArrayBufferView(e)||K.isArrayBuffer(e)?e.byteLength:(K.isURLSearchParams(e)&&(e+=""),K.isString(e)?(await l(e)).byteLength:void 0)})(t):i};return async e=>{let{url:n,method:o,data:a,signal:l,cancelToken:u,timeout:f,onDownloadProgress:v,onUploadProgress:g,responseType:m,headers:_,withCredentials:b="same-origin",fetchOptions:y}=ze(e),w=t||fetch;m=m?(m+"").toLowerCase():"text";let x=qe([l,u&&u.toAbortSignal()],f),k=null;const E=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let S;try{if(g&&c&&"get"!==o&&"head"!==o&&0!==(S=await p(_,a))){let e,t=new r(n,{method:"POST",body:a,duplex:"half"});if(K.isFormData(a)&&(e=t.headers.get("content-type"))&&_.setContentType(e),t.body){const[e,r]=Me(S,Ie(je(g)));a=We(t.body,65536,e,r)}}K.isString(b)||(b=b?"include":"omit");const t=s&&"credentials"in r.prototype,l={...y,signal:x,method:o.toUpperCase(),headers:_.normalize().toJSON(),body:a,duplex:"half",credentials:t?b:void 0};k=s&&new r(n,l);let u=await(s?w(k,y):w(n,l));const f=d&&("stream"===m||"response"===m);if(d&&(v||f&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=u[t]});const t=K.toFiniteNumber(u.headers.get("content-length")),[r,n]=v&&Me(t,Ie(je(v),!0))||[];u=new i(We(u.body,65536,r,()=>{n&&n(),E&&E()}),e)}m=m||"text";let P=await h[K.findKey(h,m)||"text"](u,e);return!f&&E&&E(),await new Promise((t,r)=>{Re(t,r,{data:P,headers:Pe.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:k})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Y("Network Error",Y.ERR_NETWORK,e,k,t&&t.response),{cause:t.cause||t});throw Y.from(t,t&&t.code,e,k,t&&t.response)}}},Xe=new Map,et=e=>{let t=e&&e.env||{};const{fetch:r,Request:i,Response:n}=t,s=[i,n,r];let o,a,l=s.length,u=Xe;for(;l--;)o=s[l],a=u.get(o),void 0===a&&u.set(o,a=l?new Map:Qe(t)),u=a;return a},tt=(et(),{http:null,xhr:Ue,fetch:{get:et}});K.forEach(tt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const rt=e=>`- ${e}`,it=e=>K.isFunction(e)||null===e||!1===e;const nt={getAdapter:function(e,t){e=K.isArray(e)?e:[e];const{length:r}=e;let i,n;const s={};for(let o=0;o<r;o++){let r;if(i=e[o],n=i,!it(i)&&(n=tt[(r=String(i)).toLowerCase()],void 0===n))throw new Y(`Unknown adapter '${r}'`);if(n&&(K.isFunction(n)||(n=n.get(t))))break;s[r||"#"+o]=n}if(!n){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(rt).join("\n"):" "+rt(e[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return n},adapters:tt};function st(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function ot(e){st(e),e.headers=Pe.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return nt.getAdapter(e.adapter||be.adapter,e)(e).then(function(t){return st(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=Pe.from(t.headers),t},function(t){return Ce(t)||(st(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=Pe.from(t.response.headers))),Promise.reject(t)})}const at="1.13.5",lt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ut={};lt.transitional=function(e,t,r){function i(e,t){return"[Axios v"+at+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,s)=>{if(!1===e)throw new Y(i(n," has been removed"+(t?" in "+t:"")),Y.ERR_DEPRECATED);return t&&!ut[n]&&(ut[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},lt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const ct={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let n=i.length;for(;n-- >0;){const s=i[n],o=t[s];if(o){const t=e[s],r=void 0===t||o(t,s,e);if(!0!==r)throw new Y("option "+s+" must be "+r,Y.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Y("Unknown option "+s,Y.ERR_BAD_OPTION)}},validators:lt},dt=ct.validators;class ht{constructor(e){this.defaults=e||{},this.interceptors={request:new le,response:new le}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Be(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:n}=t;void 0!==r&&ct.assertOptions(r,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean),legacyInterceptorReqResOrdering:dt.transitional(dt.boolean)},!1),null!=i&&(K.isFunction(i)?t.paramsSerializer={serialize:i}:ct.assertOptions(i,{encode:dt.function,serialize:dt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ct.assertOptions(t,{baseUrl:dt.spelling("baseURL"),withXsrfToken:dt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=n&&K.merge(n.common,n[t.method]);n&&K.forEach(["delete","get","head","post","put","patch","common"],e=>{delete n[e]}),t.headers=Pe.concat(s,n);const o=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const r=t.transitional||ue;r&&r.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!a){const e=[ot.bind(this),void 0];for(e.unshift(...o),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=o.length;let h=t;for(;d<c;){const e=o[d++],t=o[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{u=ot.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return ae(Le((e=Be(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}K.forEach(["delete","get","head","options"],function(e){ht.prototype[e]=function(t,r){return this.request(Be(r||{},{method:e,url:t,data:(r||{}).data}))}}),K.forEach(["post","put","patch"],function(e){function t(t){return function(r,i,n){return this.request(Be(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}ht.prototype[e]=t(),ht.prototype[e+"Form"]=t(!0)});const pt=ht;class ft{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,i,n){r.reason||(r.reason=new Ae(e,i,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ft(function(t){e=t}),cancel:e}}}const vt=ft;const gt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
2alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gt).forEach(([e,t])=>{gt[t]=e});const mt=gt;const _t=function e(t){const r=new pt(t),i=n(pt.prototype.request,r);return K.extend(i,pt.prototype,r,{allOwnKeys:!0}),K.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e(Be(t,r))},i}(be);_t.Axios=pt,_t.CanceledError=Ae,_t.CancelToken=vt,_t.isCancel=Ce,_t.VERSION=at,_t.toFormData=te,_t.AxiosError=Y,_t.Cancel=_t.CanceledError,_t.all=function(e){return Promise.all(e)},_t.spread=function(e){return function(t){return e.apply(null,t)}},_t.isAxiosError=function(e){return K.isObject(e)&&!0===e.isAxiosError},_t.mergeConfig=Be,_t.AxiosHeaders=Pe,_t.formToJSON=e=>me(K.isHTMLForm(e)?new FormData(e):e),_t.getAdapter=nt.getAdapter,_t.HttpStatusCode=mt,_t.default=_t;const bt=_t},9266(e,t,r){r.d(t,{F:()=>o});var i=r(2586);const n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=i.$,o=(e,t)=>r=>{var i;if(null==(null==t?void 0:t.variants))return s(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:a}=t,l=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],i=null==a?void 0:a[e];if(null===t)return null;const s=n(t)||n(i);return o[e][s]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,i]=t;return void 0===i||(e[r]=i),e},{}),c=null==t||null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:r,className:i,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...u}[t]):{...a,...u}[t]===r})?[...e,r,i]:e},[]);return s(e,l,c,null==r?void 0:r.class,null==r?void 0:r.className)}},2586(e,t,r){function i(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=i(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function n(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=i(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n})},5501(e,t,r){r.d(t,{zu:()=>Se});const i=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),n="-",s=[],o=e=>{const t=u(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return l(e);const r=e.split(n),i=""===r[0]&&r.length>1?1:0;return a(r,i,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=i[e],n=r[e];return t?n?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let i=0;i<t.length;i++)r[e.length+i]=t[i];return r})(n,t):t:n||s}return r[e]||s}}},a=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const i=e[t],s=r.nextPart.get(i);if(s){const r=a(e,t+1,s);if(r)return r}const o=r.validators;if(null===o)return;const l=0===t?e.join(n):e.slice(t).join(n),u=o.length;for(let e=0;e<u;e++){const t=o[e];if(t.validator(l))return t.classGroupId}},l=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),i=t.slice(0,r);return i?"arbitrary.."+i:void 0})(),u=e=>{const{theme:t,classGroups:r}=e;return c(r,t)},c=(e,t)=>{const r=i();for(const i in e){const n=e[i];d(n,r,i,t)}return r},d=(e,t,r,i)=>{const n=e.length;for(let s=0;s<n;s++){const n=e[s];h(n,t,r,i)}},h=(e,t,r,i)=>
vendor: 6,406 bytes, line 2
2{"string"!=typeof e?"function"!=typeof e?v(e,t,r,i):f(e,t,r,i):p(e,t,r)},p=(e,t,r)=>{(""===e?t:g(t,e)).classGroupId=r},f=(e,t,r,i)=>{m(e)?d(e(i),t,r,i):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},v=(e,t,r,i)=>{const n=Object.entries(e),s=n.length;for(let e=0;e<s;e++){const[s,o]=n[e];d(o,g(t,s),r,i)}},g=(e,t)=>{let r=e;const s=t.split(n),o=s.length;for(let e=0;e<o;e++){const t=s[e];let n=r.nextPart.get(t);n||(n=i(),r.nextPart.set(t,n)),r=n}return r},m=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null);const n=(n,s)=>{r[n]=s,t++,t>e&&(t=0,i=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=i[e])?(n(e,t),t):void 0},set(e,t){e in r?r[e]=t:n(e,t)}}},b=[],y=(e,t,r,i,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:n}),w=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=e=>{const t=[];let r,i=0,n=0,s=0;const o=e.length;for(let a=0;a<o;a++){const o=e[a];if(0===i&&0===n){if(":"===o){t.push(e.slice(s,a)),s=a+1;continue}if("/"===o){r=a;continue}}"["===o?i++:"]"===o?i--:"("===o?n++:")"===o&&n--}const a=0===t.length?e:e.slice(s);let l=a,u=!1;a.endsWith("!")?(l=a.slice(0,-1),u=!0):a.startsWith("!")&&(l=a.slice(1),u=!0);return y(t,u,l,r&&r>s?r-s:void 0)};if(t){const e=t+":",r=i;i=t=>t.startsWith(e)?r(t.slice(e.length)):y(b,!1,t,void 0,!0)}if(r){const e=i;i=t=>r({className:t,parseClassName:e})}return i},x=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let i=[];for(let n=0;n<e.length;n++){const s=e[n],o="["===s[0],a=t.has(s);o||a?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},k=/\s+/,E=e=>{if("string"==typeof e)return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=E(e[i]))&&(r&&(r+=" "),r+=t);return r},S=(e,...t)=>{let r,i,n,s;const a=e=>{const t=i(e);if(t)return t;const s=((e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:n,sortModifiers:s}=t,o=[],a=e.trim().split(k);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=r(t);if(u){l=t+(l.length>0?" "+l:l);continue}let f=!!p,v=i(f?h.substring(0,p):h);if(!v){if(!f){l=t+(l.length>0?" "+l:l);continue}if(v=i(h),!v){l=t+(l.length>0?" "+l:l);continue}f=!1}const g=0===c.length?"":1===c.length?c[0]:s(c).join(":"),m=d?g+"!":g,_=m+v;if(o.indexOf(_)>-1)continue;o.push(_);const b=n(v,f);for(let e=0;e<b.length;++e){const t=b[e];o.push(m+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return n(e,s),s};return s=l=>{const u=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:_(e.cacheSize),parseClassName:w(e),sortModifiers:x(e),...o(e)}))(u),i=r.cache.get,n=r.cache.set,s=a,a(l)},(...e)=>s(((...e)=>{let t,r,i=0,n="";for(;i<e.length;)(t=e[i++])&&(r=E(t))&&(n&&(n+=" "),n+=r);return n})(...e))},P=[],O=e=>{const t=t=>t[e]||P;return t.isThemeGetter=!0,t},C=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,A=/^\((?:(\w[\w-]*):)?(.+)\)$/i,R=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,T=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,F=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,I=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,M=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,j=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$=e=>R.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),L=e=>!!e&&Number.isInteger(Number(e)),D=e=>e.endsWith("%")&&N(e.slice(0,-1)),B=e=>T.test(e),z=()=>!0,U=e=>F.test(e)&&!I.test(e),q=()=>!1,H=e=>M.test(e),V=e=>j.test(e),W=e=>!K(e)&&!re(e),G=e=>ce(e,fe,q),K=e=>C.test(e),J=e=>ce(e,ve,U),Y=e=>ce(e,ge,N),Z=e=>ce(e,_e,z),Q=e=>ce(e,me,q),X=e=>ce(e,he,q),ee=e=>ce(e,pe,V),te=e=>ce(e,be,H),re=e=>A.test(e),ie=e=>de(e,ve),ne=e=>de(e,me),se=e=>de(e,he),oe=e=>de(e,fe),ae=e=>de(e,pe),le=e=>de(e,be,!0),ue=e=>de(e,_e,!0),ce=(e,t,r)=>{const i=C.exec(e);return!!i&&(i[1]?t(i[1]):r(i[2]))},de=(e,t,r=!1)=>{const i=A.exec(e);return!!i&&(i[1]?t(i[1]):r)},he=e=>"position"===e||"percentage"===e,pe=e=>"image"===e||"url"===e,fe=e=>"length"===e||"size"===e||"bg-size"===e,ve=e=>"length"===e,ge=e=>"number"===e,me=e=>"family-name"===e,_e=e=>"number"===e||"weight"===e,be=e=>"shadow"===e,ye=(Symbol.toStringTag,()=>{const e=O("color"),t=O("font"),r=O("text"),i=O("font-weight"),n=O("tracking"),s=O("leading"),o=O("breakpoint"),a=O("container"),l=O("spacing"),u=O("radius"),c=O("shadow"),d=O("inset-shadow"),h=O("text-shadow"),p=O("drop-shadow"),f=O("blur"),v=O("perspective"),g=O("aspect"),m=O("ease"),_=O("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",re,K],y=()=>[re,K,l],w=()=>[$,"full","auto",...y()],x=()=>[L,"none","subgrid",re,K],k=()=>["auto",{span:["full",L,re,K]},L,re,K],E=()=>[L,"auto",re,K],S=()=>["auto","min","max","fr",re,K],P=()=>["auto",...y()],C=()=>[$,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],A=()=>[$,"screen","full","dvw","lvw","svw","min","max","fit",...y()],R=()=>[$,"screen","full","lh","dvh","lvh","svh","min","max","fit",...y()],T=()=>[e,re,K],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",se,X,{position:[re,K]}],I=()=>["auto","cover","contain",oe,G,{size:[re,K]}],M=()=>[D,ie,J],j=()=>["","none","full",u,re,K],U=()=>["",N,ie,J],q=()=>[N,D,se,X],H=()=>["","none",f,re,K],V=()=>["none",N,re,K],ce=()=>["none",N,re,K],de=()=>[N,re,K],he=()=>[$,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[B],breakpoint:[B],color:[z],container:[B],"drop-shadow":[B],ease:["in","out","in-out"],font:[W],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[B],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[B],shadow:[B],spacing:["px",N],text:[B],"text-shadow":[B],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$,K,re,g]}
vendor: 5,795 bytes, line 2
2],container:["container"],columns:[{columns:[N,K,re,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[L,"auto",re,K]}],basis:[{basis:[$,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,$,"auto","initial","none",K]}],grow:[{grow:["",N,re,K]}],shrink:[{shrink:["",N,re,K]}],order:[{order:[L,"first","last","none",re,K]}],"grid-cols":[{"grid-cols":x()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":x()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],"inline-size":[{inline:["auto",...A()]}],"min-inline-size":[{"min-inline":["auto",...A()]}],"max-inline-size":[{"max-inline":["none",...A()]}],"block-size":[{block:["auto",...R()]}],"min-block-size":[{"min-block":["auto",...R()]}],"max-block-size":[{"max-block":["none",...R()]}],w:[{w:[a,"screen",...C()]}],"min-w":[{"min-w":[a,"screen","none",...C()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",r,ie,J]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ue,Z]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",D,K]}],"font-family":[{font:[ne,Q,t]}],"font-features":[{"font-features":[K]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,re,K]}],"line-clamp":[{"line-clamp":[N,"none",re,Y]}],leading:[{leading:[s,...y()]}],"list-image":[{"list-image":["none",re,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","
2wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",re,J]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[N,"auto",re,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L,re,K],radial:["",re,K],conic:[L,re,K]},ae,ee]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[N,re,K]}],"outline-w":[{outline:["",N,ie,J]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",c,le,te]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,le,te]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[N,J]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",h,le,te]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[N,re,K]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[re,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,K]}],filter:[{filter:["","none",re,K]}],blur:[{blur:H()}],brightness:[{brightness:[N,re,K]}],contrast:[{contrast:[N,re,K]}],"drop-shadow":[{"drop-shadow":["","none",p,le,te]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",N,re,K]}],"hue-rotate":[{"hue-rotate":[N,re,K]}],invert:[{invert:["",N,re,K]}],saturate:[{saturate:[N,re,K]}],sepia:[{sepia:["",N,re,K]}],"backdrop-filter":[{"backdrop-filter":["","none",re,K]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[N,re,K]}],"backdrop-contrast":[{"backdrop-contrast":[N,re,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,re,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,re,K]}],"backdrop-invert":[{"backdrop-invert":["",N,re,K]}],"backdrop-opacity":[{"backdrop-opacity":[N,re,K]}],"backdrop-saturate":[{"backdrop-saturate":[N,re,K]}],"backdrop-sepia":[{"backdrop-sepia":["",N,re,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",re,K]}],ease:[{ease:["linear","initial",m,re,K]}],delay:[{delay:[N,re,K]}],animate:[{animate:["none",_,re,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,re,K]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:V()}],"rotate-x":[{"rotate-x":V()}],"rotate-y":[{"rotate-y":V()}],"rotate-z":[{"rotate-z":V()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":["scale-3d"],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[re,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}
vendor: 5,587 bytes, line 2
2],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re,K]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[N,ie,J,Y]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),we=(e,t,r)=>{void 0!==r&&(e[t]=r)},xe=(e,t)=>{if(t)for(const r in t)we(e,r,t[r])},ke=(e,t)=>{if(t)for(const r in t)Ee(e,t,r)},Ee=(e,t,r)=>{const i=t[r];void 0!==i&&(e[r]=e[r]?e[r].concat(i):i)},Se=(e,...t)=>"function"==typeof e?S(ye,e,...t):S(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:i,extend:n={},override:s={}})=>(we(e,"cacheSize",t),we(e,"prefix",r),we(e,"experimentalParseClassName",i),xe(e.theme,s.theme),xe(e.classGroups,s.classGroups),xe(e.conflictingClassGroups,s.conflictingClassGroups),xe(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),we(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),ke(e.theme,n.theme),ke(e.classGroups,n.classGroups),ke(e.conflictingClassGroups,n.conflictingClassGroups),ke(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Ee(e,n,"orderSensitiveModifiers"),e))(ye(),e),...t)}
vendor: 16,239 bytes, line 2
2,8072(e,t,r){r.d(t,{o8:()=>Le,R9:()=>Cr,pb:()=>Qt,XB:()=>Wt,Bq:()=>Or,$z:()=>fr,L:()=>W,Im:()=>le,n4:()=>ve,Tn:()=>B,Gv:()=>S,Kg:()=>T,Ey:()=>nr,ku:()=>Xt,Ul:()=>hr,_M:()=>sr});var i={};r.r(i),r.d(i,{VERSION:()=>n,after:()=>Mt,all:()=>er,allKeys:()=>ge,any:()=>tr,assign:()=>Me,before:()=>jt,bind:()=>xt,bindAll:()=>St,chain:()=>_t,chunk:()=>Nr,clone:()=>Le,collect:()=>Kt,compact:()=>Pr,compose:()=>It,constant:()=>Q,contains:()=>rr,countBy:()=>gr,create:()=>Ne,debounce:()=>Rt,default:()=>Br,defaults:()=>je,defer:()=>Ct,delay:()=>Ot,detect:()=>Vt,difference:()=>Cr,drop:()=>Er,each:()=>Gt,escape:()=>ot,every:()=>er,extend:()=>Ie,extendOwn:()=>Me,filter:()=>Qt,find:()=>Vt,findIndex:()=>Dt,findKey:()=>Nt,findLastIndex:()=>Bt,findWhere:()=>Wt,first:()=>kr,flatten:()=>Or,foldl:()=>Yt,foldr:()=>Zt,forEach:()=>Gt,functions:()=>Te,get:()=>qe,groupBy:()=>fr,has:()=>He,head:()=>kr,identity:()=>Ve,include:()=>rr,includes:()=>rr,indexBy:()=>vr,indexOf:()=>qt,initial:()=>xr,inject:()=>Yt,intersection:()=>Fr,invert:()=>Re,invoke:()=>ir,isArguments:()=>J,isArray:()=>W,isArrayBuffer:()=>N,isBoolean:()=>C,isDataView:()=>V,isDate:()=>I,isElement:()=>A,isEmpty:()=>le,isEqual:()=>ve,isError:()=>j,isFinite:()=>Y,isFunction:()=>B,isMap:()=>Ee,isMatch:()=>ue,isNaN:()=>Z,isNull:()=>P,isNumber:()=>F,isObject:()=>S,isRegExp:()=>M,isSet:()=>Pe,isString:()=>T,isSymbol:()=>$,isTypedArray:()=>ne,isUndefined:()=>O,isWeakMap:()=>Se,isWeakSet:()=>Oe,iteratee:()=>Ye,keys:()=>ae,last:()=>Sr,lastIndexOf:()=>Ht,map:()=>Kt,mapObject:()=>Qe,matcher:()=>We,matches:()=>We,max:()=>or,memoize:()=>Pt,methods:()=>Te,min:()=>ar,mixin:()=>Dr,negate:()=>Ft,noop:()=>Xe,now:()=>it,object:()=>jr,omit:()=>wr,once:()=>$t,pairs:()=>Ae,partial:()=>wt,partition:()=>mr,pick:()=>yr,pluck:()=>nr,property:()=>Ge,propertyOf:()=>et,random:()=>rt,range:()=>$r,reduce:()=>Yt,reduceRight:()=>Zt,reject:()=>Xt,rest:()=>Er,restArguments:()=>E,result:()=>vt,sample:()=>cr,select:()=>Qt,shuffle:()=>dr,size:()=>_r,some:()=>tr,sortBy:()=>hr,sortedIndex:()=>zt,tail:()=>Er,take:()=>kr,tap:()=>De,template:()=>ft,templateSettings:()=>lt,throttle:()=>At,times:()=>tt,toArray:()=>ur,toPath:()=>Be,transpose:()=>Ir,unescape:()=>at,union:()=>Tr,uniq:()=>Rr,unique:()=>Rr,uniqueId:()=>mt,unzip:()=>Ir,values:()=>Ce,where:()=>sr,without:()=>Ar,wrap:()=>Tt,zip:()=>Mr});var n="1.13.6",s="object"==typeof self&&self.self===self&&self||"object"==typeof r.g&&r.g.global===r.g&&r.g||Function("return this")()||{},o=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,u=o.push,c=o.slice,d=a.toString,h=a.hasOwnProperty,p="undefined"!=typeof ArrayBuffer,f="undefined"!=typeof DataView,v=Array.isArray,g=Object.keys,m=Object.create,_=p&&ArrayBuffer.isView,b=isNaN,y=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),x=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1;function E(e,t){return t=null==t?e.length-1:+t,function(){for(var r=Math.max(arguments.length-t,0),i=Array(r),n=0;n<r;n++)i[n]=arguments[n+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var s=Array(t+1);for(n=0;n<t;n++)s[n]=arguments[n];return s[t]=i,e.apply(this,s)}}function S(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function P(e){return null===e}function O(e){return void 0===e}function C(e){return!0===e||!1===e||"[object Boolean]"===d.call(e)}function A(e){return!(!e||1!==e.nodeType)}function R(e){var t="[object "+e+"]";return function(e){return d.call(e)===t}}const T=R("String"),F=R("Number"),I=R("Date"),M=R("RegExp"),j=R("Error"),$=R("Symbol"),N=R("ArrayBuffer");var L=R("Function"),D=s.document&&s.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof D&&(L=function(e){return"function"==typeof e||!1});const B=L,z=R("Object");var U=f&&z(new DataView(new ArrayBuffer(8))),q="undefined"!=typeof Map&&z(new Map),H=R("DataView");const V=U?function(e){return null!=e&&B(e.getInt8)&&N(e.buffer)}:H,W=v||R("Array");function G(e,t){return null!=e&&h.call(e,t)}var K=R("Arguments");!function(){K(arguments)||(K=function(e){return G(e,"callee")})}();const J=K;function Y(e){return!$(e)&&y(e)&&!isNaN(parseFloat(e))}function Z(e){return F(e)&&b(e)}function Q(e){return function(){return e}}function X(e){return function(t){var r=e(t);return"number"==typeof r&&r>=0&&r<=k}}function ee(e){return function(t){return null==t?void 0:t[e]}}const te=ee("byteLength"),re=X(te);var ie=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const ne=p?function(e){return _?_(e)&&!V(e):re(e)&&ie.test(d.call(e))}:Q(!1),se=ee("length");function oe(e,t){t=function(e){for(var t={},r=e.length,i=0;i<r;++i)t[e[i]]=!0;return{contains:function(e){return!0===t[e]},push:function(r){return t[r]=!0,e.push(r)}}}(t);var r=x.length,i=e.constructor,n=B(i)&&i.prototype||a,s="constructor";for(G(e,s)&&!t.contains(s)&&t.push(s);r--;)(s=x[r])in e&&e[s]!==n[s]&&!t.contains(s)&&t.push(s)}function ae(e){if(!S(e))return[];if(g)return g(e);var t=[];for(var r in e)G(e,r)&&t.push(r);return w&&oe(e,t),t}function le(e){if(null==e)return!0;var t=se(e);return"number"==typeof t&&(W(e)||T(e)||J(e))?0===t:0===se(ae(e))}function ue(e,t){var r=ae(t),i=r.length;if(null==e)return!i;for(var n=Object(e),s=0;s<i;s++){var o=r[s];if(t[o]!==n[o]||!(o in n))return!1}return!0}function ce(e){return e instanceof ce?e:this instanceof ce?void(this._wrapped=e):new ce(e)}function de(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}ce.VERSION=n,ce.prototype.value=function(){return this._wrapped},ce.prototype.valueOf=ce.prototype.toJSON=ce.prototype.value,ce.prototype.toString=function(){return String(this._wrapped)};var he="[object DataView]";function pe(e,t,r,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var n=typeof e;return("function"===n||"object"===n||"object"==typeof t)&&fe(e,t,r,i)}function fe(e,t,r,i){e instanceof ce&&(e=e._wrapped),t instanceof ce&&(t=t._wrapped);var n=d.call(e);if(n!==d.call(t))return!1;if(U&&"[object Object]"==n&&V(e)){if(!V(t))return!1;n=he}switch(n){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0===+e?1/+e==1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t);case"[object ArrayBuffer]":case he:return fe(de(e),de(t),r,i)}var s="[object Array]"===n;if(!s&&ne(e)){if(te(e)!==te(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(B(o)&&o instanceof o&&B(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}i=i||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return i[u]===t;if(r.push(e),i.push(t),s){if((u=e.length)!==t.length)return!1;for(;u--;)if(!pe(e[u],t[u],r,i))return!1}else{var c,h=ae(e);if(u=h.length,ae(t).length!==u)return!1;for(;u--;)if(!G(t,c=h[u])||!pe(e[c],t[c],r,i))return!1}return r.pop(),i.pop(),!0}function ve(e,t){return pe(e,t)}function ge(e){if(!S(e))return[];var t=[];for(var r in e)t.push(r);return w&&oe(e,t),t}function me(e){var t=se(e);return function(r){if(null==r)return!1;var i=ge(r);if(se(i))return!1;for(var n=0;n<t;n++)if(!B(r[e[n]]))return!1;return e!==xe||!B(r[_e])}}var _e="forEach",be=["clear","delete"],ye=["get","has","set"],we=be.concat(_e,ye),xe=be.concat(ye),ke=["add"].concat(be,_e,"has");const Ee=q?me(we):R("Map"),Se=q?me(xe):R("WeakMap"),Pe=q?me(ke):R("Set"),Oe=R("WeakSet");function Ce(e){for(var t=ae(e),r=t.length,i=Array(r),n=0;n<r;n++)i[n]=e[t[n]];return i}function Ae(e){for(var t=ae(e),r=t.length,i=Array(r),n=0;n<r;n++)i[n]=[t[n],e[t[n]]];return i}function Re(e){for(var t={},r=ae(e),i=0,n=r.length;i<n;i++)t[e[r[i]]]=r[i];return t}function Te(e){var t=[];for(var r in e)B(e[r])&&t.push(r);return t.sort()}function Fe(e,t){return function(r){var i=arguments.length;if(t&&(r=Object(r)),i<2||null==r)return r;for(var n=1;n<i;n++)for(var s=arguments[n],o=e(s),a=o.length,l=0;l<a;l++){var u=o[l];t&&void 0!==r[u]||(r[u]=s[u])}return r}}const Ie=Fe(ge),Me=Fe(ae),je=Fe(ge,!0);function $e(e){if(!S(e))return{};if(m)return m(e);var t=function(){};t.prototype=e;var r=new t;return t.prototype=null,r}function Ne(e,t){var r=$e(e);return t&&Me(r,t),r}function Le(e){return S(e)?W(e)?e.slice():Ie({},e):e}function De(e,t){return t(e),e}function Be(e){return W(e)?e:[e]}function ze(e){return ce.toPath(e)}function Ue(e,t){for(var r=t.length,i=0;i<r;i++){if(null==e)return;e=e[t[i]]}return r?e:void 0}function qe(e,t,r){var i=Ue(e,ze(t));return O(i)?r:i}function He(e,t){for(var r=(t=ze(t)).length,i=0;i<r;i++){var n=t[i];if(!G(e,n))return!1;e=e[n]}return!!r}function Ve(e){return e}function We(e){return e=Me({},e),function(t){return ue(t,e)}}function Ge(e){return e=ze(e),function(t){return Ue(t,e)}}function Ke(e,t,r){if(void 0===t)return e;switch(null==r?3:r){case 1:return function(r){return e.call(t,r)};case 3:return function(r,i,n){return e.call(t,r,i,n)};case 4:return function(r,i,n,s){return e.call(t,r,i,n,s)}}return function(){return e.apply(t,arguments)}}function Je(e,t,r){return null==e?Ve:B(e)?Ke(e,t,r):S(e)&&!W(e)?We(e):Ge(e)}function Ye(e,t){return Je(e,t,1/0)}function Ze(e,t,r){return ce.iteratee!==Ye?ce.iteratee(e,t):Je(e,t,r)}function Qe(e,t,r){t=Ze(t,r);for(var i=ae(e),n=i.length,s={},o=0;o<n;o++){var a=i[o];s[a]=t(e[a],a,e)}return s}function Xe(){}function et(e){return null==e?Xe:function(t){return qe(e,t)}}function tt(e,t,r){var i=Array(Math.max(0,e));t=Ke(t,r,1);for(var n=0;n<e;n++)i[n]=t(n);return i}function rt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ce.toPath=Be,ce.iteratee=Ye;const it=Date.now||function(){return(new Date).getTime()};function nt(e){var t=function(t){return e[t]},r="(?:"+ae(e).join("|")+")",i=RegExp(r),n=RegExp(r,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(n,t):e}}const st={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},ot=nt(st),at=nt(Re(st)),lt=ce.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ut=/(.)^/,ct={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},dt=/\\|'|\r|\n|\u2028|\u2029/g;function ht(e){return"\\"+ct[e]}var pt=/^\s*(\w|\$)+\s*$/;function ft(e,t,r){!t&&r&&(t=r),t=je({},t,ce.templateSettings);var i=RegExp([(t.escape||ut).source,(t.interpolate||ut).source,(t.evaluate||ut).source].join("|")+"|$","g"),n=0,s="__p+='";e.replace(i,function(t,r,i,o,a){return s+=e.slice(n,a).replace(dt,ht),n=a+t.length,r?s+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":i?s+="'+\n((__t=("+i+"))==null?'':__t)+\n'":o&&(s+="';\n"+o+"\n__p+='"),t}),s+="';\n";var o,a=t.variable;if(a){if(!pt.test(a))throw new Error("variable is not a bare identifier: "+a)}else s="with(obj||{}){\n"+s+"}\n",a="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{o=new Function(a,"_",s)}catch(e){throw e.source=s,e}var l=function(e){return o.call(this,e,ce)};return l.source="function("+a+"){\n"+s+"}",l}function vt(e,t,r){var i=(t=ze(t)).length;if(!i)return B(r)?r.call(e):r;for(var n=0;n<i;n++){var s=null==e?void 0:e[t[n]];void 0===s&&(s=r,n=i),e=B(s)?s.call(e):s}return e}var gt=0;function mt(e){var t=++gt+"";return e?e+t:t}function _t(e){var t=ce(e);return t._chain=!0,t}function bt(e,t,r,i,n){if(!(i instanceof t))return e.apply(r,n);var s=$e(e.prototype),o=e.apply(s,n);return S(o)?o:s}var yt=E(function(e,t){var r=yt.placeholder,i=function(){for(var n=0,s=t.length,o=Array(s),a=0;a<s;a++)o[a]=t[a]===r?arguments[n++]:t[a];for(;n<arguments.length;)o.push(arguments[n++]);return bt(e,i,this,this,o)};return i});yt.placeholder=ce;const wt=yt,xt=E(function(e,t,r){if(!B(e))throw new TypeError("Bind must be called on a function");var i=E(function(n){return bt(e,i,t,this,r.concat(n))});return i}),kt=X(se);function Et(e,t,r,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=1/0;for(var n=i.length,s=0,o=se(e);s<o;s++){var a=e[s];if(kt(a)&&(W(a)||J(a)))if(t>1)Et(a,t-1,r,i),n=i.length;else for(var l=0,u=a.length;l<u;)i[n++]=a[l++];else r||(i[n++]=a)}return i}const St=E(function(e,t){var r=(t=Et(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var i=t[r];e[i]=xt(e[i],e)}return e});function Pt(e,t){var r=function(i){var n=r.cache,s=""+(t?t.apply(this,arguments):i);return G(n,s)||(n[s]=e.apply(this,arguments)),n[s]};return r.cache={},r}const Ot=E(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),Ct=wt(Ot,ce,1);function At(e,t,r){var i,n,s,o,a=0;r||(r={});var l=function(){a=!1===r.leading?0:it(),i=null,o=e.apply(n,s),i||(n=s=null)},u=function(){var u=it();a||!1!==r.leading||(a=u);var c=t-(u-a);return n=this,s=arguments,c<=0||c>t?(i&&(clearTimeout(i),i=null),a=u,o=e.apply(n,s),i||(n=s=null)):i||!1===r.trailing||(i=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(i),a=0,i=n=s=null},u}function Rt(e,t,r){var i,n,s,o,a,l=function(){var u=it()-n;t>u?i=setTimeout(l,t-u):(i=null,r||(o=e.apply(a,s)),i||(s=a=null))},u=E(function(u){return a=this,s=u,n=it(),i||(i=setTimeout(l,t),r&&(o=e.apply(a,s))),o});return u.cancel=function(){clearTimeout(i),i=s=a=null},u}function Tt(e,t){return wt(t,e)}function Ft(e){return function(){return!e.apply(this,arguments)}}function It(){var e=arguments,t=e.length-1;return function(){for(var r=t,i=e[t].apply(this,arguments);r--;)i=e[r].call(this,i);return i}}function Mt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function jt(e,t){var r;return function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}}const $t=wt(jt,2);function Nt(e,t,r){t=Ze(t,r);for(var i,n=ae(e),s=0,o=n.length;s<o;s++)if(t(e[i=n[s]],i,e))return i}function Lt(e){return function(t,r,i){r=Ze(r,i);for(var n=se(t),s=e>0?0:n-1;s>=0&&s<n;s+=e)if(r(t[s],s,t))return s;return-1}}const Dt=Lt(1),Bt=Lt(-1);function zt(e,t,r,i){for(var n=(r=Ze(r,i,1))(t),s=0,o=se(e);s<o;){var a=Math.floor((s+o)/2);r(e[a])<n?s=a+1:o=a}return s}function Ut(e,t,r){return function(i,n,s){var o=0,a=se(i);if("number"==typeof s)e>0?o=s>=0?s:Math.max(s+a,o):a=s>=0?Math.min(s+1,a):s+a+1;else if(r&&s&&a)return i[s=r(i,n)]===n?s:-1;if(n!=n)return(s=t(c.call(i,o,a),Z))>=0?s+o:-1;for(s=e>0?o:a-1;s>=0&&s<a;s+=e)if(i[s]===n)return s;return-1}}const qt=Ut(1,Dt,zt),Ht=Ut(-1,Bt);function Vt(e,t,r){var i=(kt(e)?Dt:Nt)(e,t,r);if(void 0!==i&&-1!==i)return e[i]}function Wt(e,t){return Vt(e,We(t))}function Gt(e,t,r){var i,n;if(t=Ke(t,r),kt(e))for(i=0,n=e.length;i<n;i++)t(e[i],i,e);else{var s=ae(e);for(i=0,n=s.length;i<n;i++)t(e[s[i]],s[i],e)}return e}function Kt(e,t,r){t=Ze(t,r);for(var i=!kt(e)&&ae(e),n=(i||e).length,s=Array(n),o=0;o<n;o++){var a=i?i[o]:o;s[o]=t(e[a],a,e)}return s}function Jt(e){return function(t,r,i,n){var s=arguments.length>=3;return function(t,r,i,n){var s=!kt(t)&&ae(t),o=(s||t).length,a=e>0?0:o-1;for(n||(i=t[s?s[a]:a],a+=e);a>=0&&a<o;a+=e){var l=s?s[a]:a;i=r(i,t[l],l,t)}return i}(t,Ke(r,n,4),i,s)}}const Yt=Jt(1),Zt=Jt(-1);function Qt(e,t,r){var i=[];return t=Ze(t,r),Gt(e,function(e,r,n){t(e,r,n)&&i.push(e)}),i}function Xt(e,t,r){return Qt(e,Ft(Ze(t)),r)}function er(e,t,r){t=Ze(t,r);for(var i=!kt(e)&&ae(e),n=(i||e).length,s=0;s<n;s++){var o=i?i[s]:s;if(!t(e[o],o,e))return!1}return!0}function tr(e,t,r){t=Ze(t,r);for(var i=!kt(e)&&ae(e),n=(i||e).length,s=0;s<n;s++){var o=i?i[s]:s;if(t(e[o],o,e))return!0}return!1}function rr(e,t,r,i){return kt(e)||(e=Ce(e)),("number"!=typeof r||i)&&(r=0),qt(e,t,r)>=0}const ir=E(function(e,t,r){var i,n;return B(t)?n=t:(t=ze(t),i=t.slice(0,-1),t=t[t.length-1]),Kt(e,function(e){var s=n;if(!s){if(i&&i.length&&(e=Ue(e,i)),null==e)return;s=e[t]}return null==s?s:s.apply(e,r)})});function nr(e,t){return Kt(e,Ge(t))}function sr(e,t){return Qt(e,We(t))}function or(e,t,r){var i,n,s=-1/0,o=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,l=(e=kt(e)?e:Ce(e)).length;a<l;a++)null!=(i=e[a])&&i>s&&(s=i);else t=Ze(t,r),Gt(e,function(e,r,i){((n=t(e,r,i))>o||n===-1/0&&s===-1/0)&&(s=e,o=n)});return s}function ar(e,t,r){var i,n,s=1/0,o=1/0;
2if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,l=(e=kt(e)?e:Ce(e)).length;a<l;a++)null!=(i=e[a])&&i<s&&(s=i);else t=Ze(t,r),Gt(e,function(e,r,i){((n=t(e,r,i))<o||n===1/0&&s===1/0)&&(s=e,o=n)});return s}var lr=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function ur(e){return e?W(e)?c.call(e):T(e)?e.match(lr):kt(e)?Kt(e,Ve):Ce(e):[]}function cr(e,t,r){if(null==t||r)return kt(e)||(e=Ce(e)),e[rt(e.length-1)];var i=ur(e),n=se(i);t=Math.max(Math.min(t,n),0);for(var s=n-1,o=0;o<t;o++){var a=rt(o,s),l=i[o];i[o]=i[a],i[a]=l}return i.slice(0,t)}function dr(e){return cr(e,1/0)}function hr(e,t,r){var i=0;return t=Ze(t,r),nr(Kt(e,function(e,r,n){return{value:e,index:i++,criteria:t(e,r,n)}}).sort(function(e,t){var r=e.criteria,i=t.criteria;if(r!==i){if(r>i||void 0===r)return 1;if(r<i||void 0===i)return-1}return e.index-t.index}),"value")}function pr(e,t){return function(r,i,n){var s=t?[[],[]]:{};return i=Ze(i,n),Gt(r,function(t,n){var o=i(t,n,r);e(s,t,o)}),s}}const fr=pr(function(e,t,r){G(e,r)?e[r].push(t):e[r]=[t]}),vr=pr(function(e,t,r){e[r]=t}),gr=pr(function(e,t,r){G(e,r)?e[r]++:e[r]=1}),mr=pr(function(e,t,r){e[r?0:1].push(t)},!0);function _r(e){return null==e?0:kt(e)?e.length:ae(e).length}function br(e,t,r){return t in r}const yr=E(function(e,t){var r={},i=t[0];if(null==e)return r;B(i)?(t.length>1&&(i=Ke(i,t[1])),t=ge(e)):(i=br,t=Et(t,!1,!1),e=Object(e));for(var n=0,s=t.length;n<s;n++){var o=t[n],a=e[o];i(a,o,e)&&(r[o]=a)}return r}),wr=E(function(e,t){var r,i=t[0];return B(i)?(i=Ft(i),t.length>1&&(r=t[1])):(t=Kt(Et(t,!1,!1),String),i=function(e,r){return!rr(t,r)}),yr(e,i,r)});function xr(e,t,r){return c.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))}function kr(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[0]:xr(e,e.length-t)}function Er(e,t,r){return c.call(e,null==t||r?1:t)}function Sr(e,t,r){return null==e||e.length<1?null==t||r?void 0:[]:null==t||r?e[e.length-1]:Er(e,Math.max(0,e.length-t))}function Pr(e){return Qt(e,Boolean)}function Or(e,t){return Et(e,t,!1)}const Cr=E(function(e,t){return t=Et(t,!0,!0),Qt(e,function(e){return!rr(t,e)})}),Ar=E(function(e,t){return Cr(e,t)});function Rr(e,t,r,i){C(t)||(i=r,r=t,t=!1),null!=r&&(r=Ze(r,i));for(var n=[],s=[],o=0,a=se(e);o<a;o++){var l=e[o],u=r?r(l,o,e):l;t&&!r?(o&&s===u||n.push(l),s=u):r?rr(s,u)||(s.push(u),n.push(l)):rr(n,l)||n.push(l)}return n}const Tr=E(function(e){return Rr(Et(e,!0,!0))});function Fr(e){for(var t=[],r=arguments.length,i=0,n=se(e);i<n;i++){var s=e[i];if(!rr(t,s)){var o;for(o=1;o<r&&rr(arguments[o],s);o++);o===r&&t.push(s)}}return t}function Ir(e){for(var t=e&&or(e,se).length||0,r=Array(t),i=0;i<t;i++)r[i]=nr(e,i);return r}const Mr=E(Ir);function jr(e,t){for(var r={},i=0,n=se(e);i<n;i++)t?r[e[i]]=t[i]:r[e[i][0]]=e[i][1];return r}function $r(e,t,r){null==t&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/r),0),n=Array(i),s=0;s<i;s++,e+=r)n[s]=e;return n}function Nr(e,t){if(null==t||t<1)return[];for(var r=[],i=0,n=e.length;i<n;)r.push(c.call(e,i,i+=t));return r}function Lr(e,t){return e._chain?ce(t).chain():t}function Dr(e){return Gt(Te(e),function(t){var r=ce[t]=e[t];ce.prototype[t]=function(){var e=[this._wrapped];return u.apply(e,arguments),Lr(this,r.apply(ce,e))}}),ce}Gt(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=o[e];ce.prototype[e]=function(){var r=this._wrapped;return null!=r&&(t.apply(r,arguments),"shift"!==e&&"splice"!==e||0!==r.length||delete r[0]),Lr(this,r)}}),Gt(["concat","join","slice"],function(e){var t=o[e];ce.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Lr(this,e)}});const Br=ce;var zr=Dr(i);zr._=zr},2926(e,t,r){r.d(t,{b:()=>a});var i=r(5533),n=r(7487),s=r(329),o=i.forwardRef((e,t)=>(0,s.jsx)(n.sG.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label";var a=o},7487(e,t,r){r.d(t,{sG:()=>o});var i=r(5533),n=(r(5923),r(212)),s=r(329),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
2{const r=(0,n.TL)(`Primitive.${t}`),o=i.forwardRef((e,i)=>{const{asChild:n,...o}=e,a=n?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...o,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{})},536(e,t,r){r.d(t,{b:()=>u});var i=r(5533),n=r(7487),s=r(329),o="horizontal",a=["horizontal","vertical"],l=i.forwardRef((e,t)=>{const{decorative:r,orientation:i=o,...l}=e,u=function(e){return a.includes(e)}(i)?i:o,c=r?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"};return(0,s.jsx)(n.sG.div,{"data-orientation":u,...c,...l,ref:t})});l.displayName="Separator";var u=l},212(e,t,r){r.d(t,{bL:()=>l,xV:()=>h,TL:()=>a});var i=r(5533);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let r=!1;const i=e.map(e=>{const i=n(e,t);return r||"function"!=typeof i||(r=!0),i});if(r)return()=>{for(let t=0;t<i.length;t++){const r=i[t];"function"==typeof r?r():n(e[t],null)}}}}var o=r(329);function a(e){const t=u(e),r=i.forwardRef((e,r)=>{const{children:n,...s}=e,a=i.Children.toArray(n),l=a.find(p);if(l){const e=l.props.children,n=a.map(t=>t===l?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,o.jsx)(t,{...s,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,o.jsx)(t,{...s,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var l=a("Slot");function u(e){const t=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const i in t){const n=e[i],s=t[i];/^on[A-Z]/.test(i)?n&&s?r[i]=(...e)=>{const t=s(...e);return n(...e),t}:n&&(r[i]=n):"style"===i?r[i]={...n,...s}:"className"===i&&(r[i]=[n,s].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(o.ref=t?s(t,e):e),i.cloneElement(r,o)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var c=Symbol("radix.slottable");function d(e){const t=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=c,t}var h=d("Slottable");function p(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}},3904(e,t,r){r.d(t,{dK:()=>h,wE:()=>p});var i=r(5533),n=Object.defineProperty,s=Object.defineProperties,o=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var h=i.createContext({}),p=i.forwardRef((e,t)=>{var r,n,p,g,m,_=e,{value:b,onChange:y,maxLength:w,textAlign:x="left",pattern:k,placeholder:E,inputMode:S="numeric",onComplete:P,pushPasswordManagerStrategy:O="increase-width",pasteTransformer:C,containerClassName:A,noScriptCSSFallback:R=v,render:T,children:F}=_,I=((e,t)=>{var r={};for(var i in e)l.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&a)for(var i of a(e))t.indexOf(i)<0&&u.call(e,i)&&(r[i]=e[i]);return r})(_,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[M,j]=i.useState("string"==typeof I.defaultValue?I.defaultValue:""),$=null!=b?b:M,N=function(e){let t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}($),L=i.useCallback(e=>{null==y||y(e),j(e)},[y]),D=i.useMemo(()=>k?"string"==typeof k?new RegExp(k):k:null,[k]),B=i.useRef(null),z=i.useRef(null),U=i.useRef({value:$,onChange:L,isIOS:"undefined"!=typeof window&&(null==(n=null==(r=null==window?void 0:window.CSS)?void 0:r.supp
vendor: 4,925 bytes, line 2
2orts)?void 0:n.call(r,"-webkit-touch-callout","none"))}),q=i.useRef({prev:[null==(p=B.current)?void 0:p.selectionStart,null==(g=B.current)?void 0:g.selectionEnd,null==(m=B.current)?void 0:m.selectionDirection]});i.useImperativeHandle(t,()=>B.current,[]),i.useEffect(()=>{let e=B.current,t=z.current;if(!e||!t)return;function r(){if(document.activeElement!==e)return J(null),void Z(null);let t,r=e.selectionStart,i=e.selectionEnd,n=e.selectionDirection,s=e.maxLength,o=e.value,a=q.current.prev,l=-1,u=-1;if(0!==o.length&&null!==r&&null!==i){let e=r===i,n=r===o.length&&o.length<s;if(e&&!n){let e=r;if(0===e)l=0,u=1,t="forward";else if(e===s)l=e-1,u=e,t="backward";else if(s>1&&o.length>1){let r=0;if(null!==a[0]&&null!==a[1]){t=e<a[1]?"backward":"forward";let i=a[0]===a[1]&&a[0]<s;"backward"===t&&!i&&(r=-1)}l=r+e,u=r+e+1}}-1!==l&&-1!==u&&l!==u&&B.current.setSelectionRange(l,u,t)}let c=-1!==l?l:r,d=-1!==u?u:i,h=null!=t?t:n;J(c),Z(d),q.current.prev=[c,d,h]}if(U.current.value!==e.value&&U.current.onChange(e.value),q.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",r,{capture:!0}),r(),document.activeElement===e&&G(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";f(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),f(e.sheet,`[data-input-otp]:autofill { ${t} }`),f(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),f(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),f(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let i=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};i();let n=new ResizeObserver(i);return n.observe(e),()=>{document.removeEventListener("selectionchange",r,{capture:!0}),n.disconnect()}},[]);let[H,V]=i.useState(!1),[W,G]=i.useState(!1),[K,J]=i.useState(null),[Y,Z]=i.useState(null);i.useEffect(()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}(()=>{var e,t,r,i;null==(e=B.current)||e.dispatchEvent(new Event("input"));let n=null==(t=B.current)?void 0:t.selectionStart,s=null==(r=B.current)?void 0:r.selectionEnd,o=null==(i=B.current)?void 0:i.selectionDirection;null!==n&&null!==s&&(J(n),Z(s),q.current.prev=[n,s,o])})},[$,W]),i.useEffect(()=>{void 0!==N&&$!==N&&N.length<w&&$.length===w&&(null==P||P($))},[w,P,N,$]);let Q=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:n}){let[s,o]=i.useState(!1),[a,l]=i.useState(!1),[u,c]=i.useState(!1),h=i.useMemo(()=>"none"!==r&&("increase-width"===r||"experimental-no-flickering"===r)&&s&&a,[s,a,r]),p=i.useCallback(()=>{let i=e.current,n=t.current;if(!i||!n||u||"none"===r)return;let s=i,a=s.getBoundingClientRect().left+s.offsetWidth-18,l=s.getBoundingClientRect().top+s.offsetHeight/2;0===document.querySelectorAll(d).length&&document.elementFromPoint(a,l)===i||(o(!0),c(!0))},[e,t,u,r]);return i.useEffect(()=>{let t=e.current;if(!t||"none"===r)return;function i(){let e=window.innerWidth-t.getBoundingClientRect().right;l(e>=40)}i();let n=setInterval(i,1e3);return()=>{clearInterval(n)}},[e,r]),i.useEffect(()=>{let e=n||document.activeElement===t.current;if("none"===r||!e)return;let i=setTimeout(p,0),s=setTimeout(p,2e3),o=setTimeout(p,5e3),a=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(s),clearTimeout(o),clearTimeout(a)}},[t,n,r,p]),{hasPWMBadge:s,willPushPWMBadge:h,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:z,inputRef:B,pushPasswordManagerStrategy:O,isFocused:W}),X=i.useCallback(e=>{let t=e.currentTarget.value.slice(0,w);t.length>0&&D&&!D.test(t)?e.preventDefault():("string"==typeof N&&t.length<N.length&&document.dispatchEvent(new Event("selectionchange")),L(t))},[w,L,N,D]),ee=i.useCallback(()=>{var e;if(B.current){let t=Math.min(B.current.value.length,w-1),r=B.current.value.length;null==(e=B.current)||e.setSelectionRange(t,r),J(t),Z(r)}G(!0)},[w]),te=i.useCallback(e=>{var t,r;let i=B.current;if(!(C||U.current.isIOS&&e.clipboardData&&i))return;let n=e.clipboardData.getData("text/plain"),s=C?C(n):n;e.preventDefault();let o=null==(t=B.current)?void 0:t.selectionStart,a=null==(r=B.current)?void 0:r.selectionEnd,l=(o!==a?$.slice(0,o)+s+$.slice(a):$.slice(0,o)+s+$.slice(o)).slice(0,w);if(l.length>0&&D&&!D.test(l))return;i.value=l,L(l);let u=Math.min(l.length,w-1),c=l.length;i.setSelectionRange(u,c),J(u),Z(c)},[w,L,D,$]),re=i.useMemo(()=>
2({position:"relative",cursor:I.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[I.disabled]),ie=i.useMemo(()=>({position:"absolute",inset:0,width:Q.willPushPWMBadge?`calc(100% + ${Q.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Q.willPushPWMBadge?`inset(0 ${Q.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:x,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Q.PWM_BADGE_SPACE_WIDTH,Q.willPushPWMBadge,x]),ne=i.useMemo(()=>i.createElement("input",((e,t)=>s(e,o(t)))(((e,t)=>{for(var r in t||(t={}))l.call(t,r)&&c(e,r,t[r]);if(a)for(var r of a(t))u.call(t,r)&&c(e,r,t[r]);return e})({autoComplete:I.autoComplete||"one-time-code"},I),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===$.length||void 0,"data-input-otp-mss":K,"data-input-otp-mse":Y,inputMode:S,pattern:null==D?void 0:D.source,"aria-placeholder":E,style:ie,maxLength:w,value:$,ref:B,onPaste:e=>{var t;te(e),null==(t=I.onPaste)||t.call(I,e)},onChange:X,onMouseOver:e=>{var t;V(!0),null==(t=I.onMouseOver)||t.call(I,e)},onMouseLeave:e=>{var t;V(!1),null==(t=I.onMouseLeave)||t.call(I,e)},onFocus:e=>{var t;ee(),null==(t=I.onFocus)||t.call(I,e)},onBlur:e=>{var t;G(!1),null==(t=I.onBlur)||t.call(I,e)}})),[X,ee,te,S,ie,w,Y,K,I,null==D?void 0:D.source,$]),se=i.useMemo(()=>({slots:Array.from({length:w}).map((e,t)=>{var r;let i=W&&null!==K&&null!==Y&&(K===Y&&t===K||t>=K&&t<Y),n=void 0!==$[t]?$[t]:null;return{char:n,placeholderChar:void 0!==$[0]?null:null!=(r=null==E?void 0:E[t])?r:null,isActive:i,hasFakeCaret:i&&null===n}}),isFocused:W,isHovering:!I.disabled&&H}),[W,H,w,Y,K,I.disabled,$]),oe=i.useMemo(()=>T?T(se):i.createElement(h.Provider,{value:se},F),[F,se,T]);return i.createElement(i.Fragment,null,null!==R&&i.createElement("noscript",null,i.createElement("style",null,R)),i.createElement("div",{ref:z,"data-input-otp-container":!0,style:re,className:A},oe,i.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ne)))});function f(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}p.displayName="Input";var v="\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}"},7222(e,t,r){r.d(t,{oR:()=>l});var i=r(5533);r(5923);Array(12).fill(0);let n=1;const s=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:r,...i}=e,s="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:n++,o=this.toasts.find(e=>e.id===s),a=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(t=>t.id===s?(this.publish({...t,...e,id:s,title:r}),{...t,...e,id:s,dismissible:a,title:r}):t):this.addToast({title:r,...i,dismissible:a,id:s}),s},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>
2this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;void 0!==t.loading&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const n=Promise.resolve(e instanceof Function?e():e);let s,a=void 0!==r;const l=n.then(async e=>{s=["resolve",e];if(i.isValidElement(e))a=!1,this.create({id:r,type:"default",message:e});else if(o(e)&&!e.ok){a=!1;const n="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,s="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,o="object"==typeof n&&!i.isValidElement(n)?n:{message:n};this.create({id:r,type:"error",description:s,...o})}else if(e instanceof Error){a=!1;const n="function"==typeof t.error?await t.error(e):t.error,s="function"==typeof t.description?await t.description(e):t.description,o="object"==typeof n&&!i.isValidElement(n)?n:{message:n};this.create({id:r,type:"error",description:s,...o})}else if(void 0!==t.success){a=!1;const n="function"==typeof t.success?await t.success(e):t.success,s="function"==typeof t.description?await t.description(e):t.description,o="object"==typeof n&&!i.isValidElement(n)?n:{message:n};this.create({id:r,type:"success",description:s,...o})}}).catch(async e=>{if(s=["reject",e],void 0!==t.error){a=!1;const n="function"==typeof t.error?await t.error(e):t.error,s="function"==typeof t.description?await t.description(e):t.description,o="object"==typeof n&&!i.isValidElement(n)?n:{message:n};this.create({id:r,type:"error",description:s,...o})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),null==t.finally||t.finally.call(t)}),u=()=>new Promise((e,t)=>l.then(()=>"reject"===s[0]?t(s[1]):e(s[1])).catch(t));return"string"!=typeof r&&"number"!=typeof r?{unwrap:u}:Object.assign(r,{unwrap:u})},this.custom=(e,t)=>{const r=(null==t?void 0:t.id)||n++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},o=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,a=(e,t)=>{const r=(null==t?void 0:t.id)||n++;return s.addToast({title:e,...t,id:r}),r},l=Object.assign(a,{success:s.success,info:s.info,warning:s.warning,error:s.error,custom:s.custom,message:s.message,promise:s.promise,dismiss:s.dismiss,loading:s.loading},{getHistory:()=>s.toasts,getToasts:()=>s.getActiveToasts()});!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
2left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true
vendor: 8,840 bytes, line 2
2]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}")
2}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.