1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/UnlinkedForm-3lvL2thz.js","assets/react-vendor-yF7xeVXp.js","assets/radix-CHgKEJUW.js","assets/Admin-onnfhwx_.js","assets/client-BaLW-xJp.js","assets/supabase-DRR_Es6B.js","assets/input-BzyzMMck.js","assets/About-BA-x9D_Y.js","assets/users-C6g8RsOf.js","assets/Contact-D6AwrrHE.js","assets/circle-help-Dawt3S8F.js","assets/Privacy-CIGWTOPx.js","assets/shield-check-DRzPAsam.js","assets/Accessibility-DktRGJkA.js","assets/accessibility-CgfJQihh.js","assets/PilotProgram-DmPcA6F-.js","assets/dashboard-goals-tracking-CsASCvvw.js","assets/dialog-B8sNH-Hg.js","assets/calendar-DGKbalpn.js","assets/check-BJPL_9GH.js","assets/layout-dashboard-Dab6nHYD.js","assets/chart-column-DFW8B3SO.js","assets/PilotApply-dMk4PzQH.js","assets/Podcast-oFfWKqWx.js","assets/podcastEpisodes-BIPn5kzA.js","assets/mic-WmxsHVFm.js","assets/file-text-Du87Gk1M.js","assets/Media-5tMH09L5.js","assets/deepfake-article-hero-C8DPeGk3.js","assets/article-automation-consideration-BCnBIJ95.js","assets/article-change-management-BB13O3KZ.js","assets/article-ai-boost-disability-employment-5Q1ATI-S.js","assets/article-dsp-tech-adoption-BauIJIBp.js","assets/article-navigating-neurodiversity-Dh9Jgcts.js","assets/article-who-gets-to-benefit-from-ai-BOxm6JQ0.js","assets/article-broken-links-DAgsqbRr.js","assets/article-documentation-tax-BepRPS3P.js","assets/article-ai-already-the-generalist-D_RkkWIC.js","assets/article-deadline-that-moved-C_jlYt42.js","assets/newsletter-hero-april2026-Zfmr7CG6.js","assets/onnj-mornings-interview-CsEp5VdI.js","assets/message-square-B3Hvn0q5.js","assets/DeepfakeArticle-DCEkRXKK.js","assets/arrow-left-CQkDiMVz.js","assets/AutomationArticle-DJxr17q8.js","assets/ChangeManagementArticle-RcUVJKdC.js","assets/AIBoostDisabilityEmploymentArticle-Dx8XQWrH.js","assets/DSPTechAdoptionArticle-C_qSa7ux.js","assets/DeadlineThatMovedArticle-DwSCXhsu.js","assets/AfternoonTestArticle-CzkASaru.js","assets/HowManyStepsArticle-D8K9SiY8.js","assets/TransitionCliffArticle-JAuxfvPE.js","assets/BrokenLinksArticle-CkJ-dUpb.js","assets/DocumentationTaxArticle-CIPWtcbO.js","assets/GeneralistCuriosityArticle-CJYNJ3WC.js","assets/NavigatingNeurodiversityArticle-DjTgtUWc.js","assets/WhoBenefitsAI-Bv2F6O7r.js","assets/YearAgoLeftCareer-BqIESQ5A.js","assets/NewsletterMarch2026-COGSwt2J.js","assets/separator-CAGl7PHw.js","assets/NewsletterApril2026-JlVVv4Mo.js","assets/NotFound-CrC_5QUF.js","assets/FamilyTransitionPlanner-CHzl_Zk4.js","assets/boggs-center-logo-D_wU8djz.js","assets/type-DByld7wZ.js","assets/sparkles-DSG00vOJ.
1js","assets/printer-C0WqqW0u.js","assets/chevron-down-C6UIVJME.js","assets/external-link-DYVpqk1L.js","assets/FamilyTransitionPlannerPA-CEQezxrB.js","assets/agencies-6ssbS_DS.js","assets/PilotProposal-CrFNOLnd.js","assets/circle-check-DGLswT2V.js","assets/EarlyChildhoodGuide-DJF_UhKB.js","assets/rotate-ccw-BNVlly2n.js","assets/EarlyChildhoodGuidePA-C6JCqH9Z.js","assets/EarlyChildhoodGuideNY-9fFWF9xJ.js","assets/FamilyTransitionPlannerNY-8msMkVbP.js","assets/agencies-B9e6VaDV.js","assets/Services-B27DXcYi.js","assets/compass-bbD9t0Nw.js","assets/clipboard-check-CT0RPIoq.js","assets/brain-CY7Y5b1v.js","assets/Training-rjdP4oBI.js","assets/globe-BAjNCGDq.js","assets/message-square-text-peqEf0r8.js","assets/PreETS-Ub20Hx96.js","assets/buyerFaqs-Z20bZXQb.js","assets/Platform-DC8-zfGM.js","assets/landmark-BqJqdXFH.js","assets/Portals-nRTWJovP.js","assets/states-vcznbo3k.js","assets/countyList-DbhXKaKU.js","assets/search-Cd5SJ0-Z.js","assets/list-checks-qFe05Iww.js","assets/life-buoy-CCzbsOc6.js","assets/CountyResource-BcetAHv2.js","assets/externalDirectories-BV8GZDK7.js","assets/registry-CzxVvvWA.js","assets/copy-Bl7IzYME.js","assets/StatePortal-BD03D-E_.js","assets/PortalRouter-Czxhj2ex.js","assets/PathAbleStatePortal-Dqi6LF7K.js","assets/resourceMap-9UyJS9W7.js","assets/handoffData-fq_4USP4.js","assets/stateConfigs-DulWwdly.js","assets/NjAssistant-CyqWJp_z.js","assets/agencies-O7NT5Biz.js","assets/HandoffPage-D3hT0Md6.js","assets/ToolPage-7OPbDxdo.js","assets/MyListPage-DIPN3jhI.js","assets/PreviewRouter-nRnj2enX.js","assets/LegacyRedirect-B6FkO0Wo.js"])))=>i.map(i=>d[i]); 2var cd=Object.defineProperty;var ao=t=>{throw TypeError(t)};var ud=(t,e,r)=>e in t?cd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var St=(t,e,r)=>ud(t,typeof e!="symbol"?e+"":e,r),Ji=(t,e,r)=>e.has(t)||ao("Cannot "+r);var w=(t,e,r)=>(Ji(t,e,"read from private field"),r?r.call(t):e.get(t)),ie=(t,e,r)=>e.has(t)?ao("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),K=(t,e,r,s)=>(Ji(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),Ne=(t,e,r)=>(Ji(t,e,"access private method"),r);var Ys=(t,e,r,s)=>({set _(i){K(t,e,i,r)},get _(){return w(t,e,s)}});import{g as Ra,R as C,r as S,j as c,v as dd,u as Gs,L as Te,B as hd,c as pd,d as b,N as we,e as fd}from"./react-vendor-yF7xeVXp.js";import{V as Vl,R as Bl,A as ql,C as Gl,T as Wl,D as Kl,P as gd,a as Ql,b as vd,S as md}from"./radix-CHgKEJUW.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const n of i)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const n={};return i.integrity&&(n.integrity=i.integrity),i.referrerPolicy&&(n.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?n.credentials="include":i.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function s(i){if(i.ep)return;i.ep=!0;const n=r(i);fetch(i.href,n)}})();var _d=typeof Element<"u",yd=typeof Map=="function",bd=typeof Set=="function",xd=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function di(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,s,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(s=r;s--!==0;)if(!di(t[s],e[s]))return!1;return!0}var n;if(yd&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n=t.entries();!(s=n.next()).done;)if(!e.has(s.value[0]))return!1;for(n=t.entries();!(s=n.next()).done;)if(!di(s.value[1],e.get(s.value[0])))return!1;return!0}if(bd&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n=t.entries();!(s=n.next()).done;)if(!e.has(s.value[0]))return!1;return!0}if(xd&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(s=r;s--!==0;)if(t[s]!==e[s])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[s]))return!1;if(_d&&t instanceof Element)return!1;for(s=r;s--!==0;)if(!((i[s]==="_owner"||i[s]==="__v"||i[s]==="__o")&&t.$$typeof)&&!di(t[i[s]],e[i[s]]))return!1;return!0}return t!==t&&e!==e}var wd=function(e,r){try{return di(e,r)}catch(s){if((s.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw s}};const Ed=Ra(wd);var Sd=function(t,e,r,s,i,n,a,o){if(!t){var l;if(e===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,s,i,n,a,o],d=0;l=new Error(e.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},kd=Sd;const oo=Ra(kd);var Td=function(e,r,s,i){var n=s?s.call(i,e,r):void 0;if(n!==void 0)return!!n;
2if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var a=Object.keys(e),o=Object.keys(r);if(a.length!==o.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),u=0;u<a.length;u++){var d=a[u];if(!l(d))return!1;var p=e[d],f=r[d];if(n=s?s.call(i,p,f,d):void 0,n===!1||n===void 0&&p!==f)return!1}return!0};const Pd=Ra(Td);var Yl=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(Yl||{}),Xi={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},lo=Object.values(Yl),Ma={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ad=Object.entries(Ma).reduce((t,[e,r])=>(t[r]=e,t),{}),ft="data-rh",Ur={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},zr=(t,e)=>{for(let r=t.length-1;r>=0;r-=1){const s=t[r];if(Object.prototype.hasOwnProperty.call(s,e))return s[e]}return null},jd=t=>{let e=zr(t,"title");const r=zr(t,Ur.TITLE_TEMPLATE);if(Array.isArray(e)&&(e=e.join("")),r&&e)return r.replace(/%s/g,()=>e);const s=zr(t,Ur.DEFAULT_TITLE);return e||s||void 0},Cd=t=>zr(t,Ur.ON_CHANGE_CLIENT_STATE)||(()=>{}),Zi=(t,e)=>e.filter(r=>typeof r[t]<"u").map(r=>r[t]).reduce((r,s)=>({...r,...s}),{}),Id=(t,e)=>e.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,s)=>{if(!r.length){const i=Object.keys(s);for(let n=0;n<i.length;n+=1){const o=i[n].toLowerCase();if(t.indexOf(o)!==-1&&s[o])return r.concat(s)}}return r},[]),Od=t=>console&&typeof console.warn=="function"&&console.warn(t),ls=(t,e,r)=>{const s={};return r.filter(i=>Array.isArray(i[t])?!0:(typeof i[t]<"u"&&Od(`Helmet: ${t} should be of type "Array". Instead found type "${typeof i[t]}"`),!1)).map(i=>i[t]).reverse().reduce((i,n)=>{const a={};n.filter(l=>{let u;const d=Object.keys(l);for(let f=0;f<d.length;f+=1){const h=d[f],v=h.toLowerCase();e.indexOf(v)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(v==="rel"&&l[v].toLowerCase()==="stylesheet")&&(u=v),e.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(u=h)}if(!u||!l[u])return!1;const p=l[u].toLowerCase();return s[u]||(s[u]={}),a[u]||(a[u]={}),s[u][p]?!1:(a[u][p]=!0,!0)}).reverse().forEach(l=>i.push(l));const o=Object.keys(a);for(let l=0;l<o.length;l+=1){const u=o[l],d={...s[u],...a[u]};s[u]=d}return i},[]).reverse()},Rd=(t,e)=>{if(Array.isArray(t)&&t.length){for(let r=0;r<t.length;r+=1)if(t[r][e])return!0}return!1},Md=t=>({baseTag:Id(["href"],t),bodyAttributes:Zi("bodyAttributes",t),defer:zr(t,Ur.DEFER),encode:zr(t,Ur.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Zi("htmlAttributes",t),linkTags:ls("link",["rel","href"],t),metaTags:ls("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:ls("noscript",["innerHTML"],t),onChangeClientState:Cd(t),scriptTags:ls("script",["src","innerHTML"],t),styleTags:ls("style",["cssText"],t),title:jd(t),titleAttributes:Zi("titleAttributes",t),prioritizeSeoTags:Rd(t,Ur.PRIORITIZE_SEO_TAGS)}),Jl=t=>Array.isArray(t)?t.join(""):t,Nd=(t,e)=>{const r=Object.keys(t);for(let s=0;s<r.length;s+=1)if(e[r[s]]&&e[r[s]].includes(t[r[s]]))return!0;return!1},en=(t,e)=>Array.isArray(t)?t.reduce((r,s)=>(Nd(s,e)?r.priority.push(s):r.default.push(s),r),{priority:[],default:[]}):{default:t,priority:[]},co=(t,e)=>({...t,[e]:void 0}),$d=["noscript","script","style"],$n=(t,e=!0)=>e===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Xl=t=>Object.keys(t).reduce((e,r)=>{const s=typeof t[r]<"u"?`${r}="${t[r]}"`:`${r}`;return e?`${e} ${s}`:s},""),Fd=(t,e,r,s)=>{const i=Xl(r),n=Jl(e);return i?`<${t} ${ft}="true" ${i}>${$n(n,s)}</${t}>`:`<${t} ${ft}="true">${$n(n,s)}</${t}>`},Ld=(t,e,r=!0)=>e.reduce((s,i)=>{const n=i,a=Object.keys(n).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const p=typeof n[d]>"u"?d:`${d}="${$n(n[d],r)}"`;return u?`${u} ${p}`:p},""),o=n.innerHTML||n.cssText||"",l=$d.indexOf(t)===-1;return`${s}<${t} ${ft}="true" ${a}${l?"/>":`>${o}</${t}>`}`},""),Zl=(t,e={})=>Object.keys(t).reduce((r,s)=>{const i=Ma[s];return r[i||s]=t[s],r},e),Dd=(t,e,r)=>{const s={key:e,[ft]:!0},i=Zl(r,s);return[C.createElement("title",i,e)]},hi=(t,e)=>e.map((r,s)=>{const i={key:s,[ft]:!0};return Object.keys(r).forEach(n=>{const o=Ma[n]||n;if(o==="innerHTML"||o==="cssText"){const l=r.innerHTML||r.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[o]=r[n]}),C.createElement(t,i)}),Ze=(t,e,r=!0)=>{switch(t){case"title":return{toComponent:()=>Dd(t,e.title,e.titleAttributes),toString:()=>Fd(t,e.title,e.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Zl(e),toString:()=>Xl(e)};default:return{toComponent:()=>hi(t,e),toString:()=>Ld(t,e,r)}}},Ud=({metaTags:t,linkTags:e,scriptTags:r,encode:s})=>{const i=en(t,Xi.meta),n=en(e,Xi.link),a=en(r,Xi.script);return{priorityMethods:{toComponent:()=>[...hi("meta",i.priority),...hi("link",n.priority),...hi("script",a.priority)],toString:()=>`${Ze("meta",i.priority,s)}
2 ${Ze("link",n.priority,s)} ${Ze("script",a.priority,s)}`},metaTags:i.default,linkTags:n.default,scriptTags:a.default}},zd=t=>{const{baseTag:e,bodyAttributes:r,encode:s=!0,htmlAttributes:i,noscriptTags:n,styleTags:a,title:o="",titleAttributes:l,prioritizeSeoTags:u}=t;let{linkTags:d,metaTags:p,scriptTags:f}=t,h={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:h,linkTags:d,metaTags:p,scriptTags:f}=Ud(t)),{priority:h,base:Ze("base",e,s),bodyAttributes:Ze("bodyAttributes",r,s),htmlAttributes:Ze("htmlAttributes",i,s),link:Ze("link",d,s),meta:Ze("meta",p,s),noscript:Ze("noscript",n,s),script:Ze("script",f,s),style:Ze("style",a,s),title:Ze("title",{title:o,titleAttributes:l},s)}},Fn=zd,Js=[],ec=!!(typeof window<"u"&&window.document&&window.document.createElement),Ln=class{constructor(t,e){St(this,"instances",[]);St(this,"canUseDOM",ec);St(this,"context");St(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?Js:this.instances,add:t=>{(this.canUseDOM?Js:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?Js:this.instances).indexOf(t);(this.canUseDOM?Js:this.instances).splice(e,1)}}});this.context=t,this.canUseDOM=e||!1,e||(t.helmet=Fn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Hd={},tc=C.createContext(Hd),gr,Na=(gr=class extends S.Component{constructor(r){super(r);St(this,"helmetData");this.helmetData=new Ln(this.props.context||{},gr.canUseDOM)}render(){return C.createElement(tc.Provider,{value:this.helmetData.value},this.props.children)}},St(gr,"canUseDOM",ec),gr),Ar=(t,e)=>{const r=document.head||document.querySelector("head"),s=r.querySelectorAll(`${t}[${ft}]`),i=[].slice.call(s),n=[];let a;return e&&e.length&&e.forEach(o=>{const l=document.createElement(t);for(const u in o)if(Object.prototype.hasOwnProperty.call(o,u))if(u==="innerHTML")l.innerHTML=o.innerHTML;else if(u==="cssText")l.styleSheet?l.styleSheet.cssText=o.cssText:l.appendChild(document.createTextNode(o.cssText));else{const d=u,p=typeof o[d]>"u"?"":o[d];l.setAttribute(u,p)}l.setAttribute(ft,"true"),i.some((u,d)=>(a=d,l.isEqualNode(u)))?i.splice(a,1):n.push(l)}),i.forEach(o=>{var l;return(l=o.parentNode)==null?void 0:l.removeChild(o)}),n.forEach(o=>r.appendChild(o)),{oldTags:i,newTags:n}},Dn=(t,e)=>{const r=document.getElementsByTagName(t)[0];if(!r)return;const s=r.getAttribute(ft),i=s?s.split(","):[],n=[...i],a=Object.keys(e);for(const o of a){const l=e[o]||"";r.getAttribute(o)!==l&&r.setAttribute(o,l),i.indexOf(o)===-1&&i.push(o);const u=n.indexOf(o);u!==-1&&n.splice(u,1)}for(let o=n.length-1;o>=0;o-=1)r.removeAttribute(n[o]);i.length===n.length?r.removeAttribute(ft):r.getAttribute(ft)!==a.join(",")&&r.setAttribute(ft,a.join(","))},Vd=(t,e)=>{typeof t<"u"&&document.title!==t&&(document.title=Jl(t)),Dn("title",e)},uo=(t,e)=>{const{baseTag:r,bodyAttributes:s,htmlAttributes:i,linkTags:n,metaTags:a,noscriptTags:o,onChangeClientState:l,scriptTags:u,styleTags:d,title:p,titleAttributes:f}=t;Dn("body",s),Dn("html",i),Vd(p,f);const h={baseTag:Ar("base",r),linkTags:Ar("link",n),metaTags:Ar("meta",a),noscriptTags:Ar("noscript",o),scriptTags:Ar("script",u),styleTags:Ar("style",d)},v={},g={};Object.keys(h).forEach(m=>{const{newTags:y,oldTags:E}=h[m];y.length&&(v[m]=y),E.length&&(g[m]=h[m].oldTags)}),e&&e(),l(t,v,g)},cs=null,Bd=t=>{cs&&cancelAnimationFrame(cs),t.defer?cs=requestAnimationFrame(()=>{uo(t,()=>{cs=null})}):(uo(t),cs=null)},qd=Bd,ho=class extends S.Component{constructor(){super(...arguments);St(this,"rendered",!1)}shouldComponentUpdate(e){return!Pd(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:r}=this.props.context;let s=null;const i=Md(e.get().map(n=>{const a={...n.props};return delete a.context,a}));Na.canUseDOM?qd(i):Fn&&(s=Fn(i)),r(s)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Nn,Xm=(Nn=class extends S.Component{shouldComponentUpdate(t){return!Ed(co(this.props,"helmetData"),co(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,r,s){return{...e,[t.type]:[...e[t.type]||[],{...r,...this.mapNestedChildrenToProps(t,s)}]}}mapObjectTypeChildren(t,e,r,s){switch(t.type){case"title":return{...e,[t.type]:s,titleAttributes:{...r}};case"body":return{...e,bodyAttributes:{...r}};case"html":return{...e,htmlAttributes:{...r}};default:return{...e,[t.type]:{...r}}}}mapArrayTypeChildrenToProps(t,e){let r={...e};return Object.keys(t).forEach(s=>{r={...r,[s]:t[s]}}),r}
2warnOnInvalidChildren(t,e){return oo(lo.some(r=>t.type===r),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${lo.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),oo(!e||typeof e=="string"||Array.isArray(e)&&!e.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let r={};return C.Children.forEach(t,s=>{if(!s||!s.props)return;const{children:i,...n}=s.props,a=Object.keys(n).reduce((l,u)=>(l[Ad[u]||u]=n[u],l),{});let{type:o}=s;switch(typeof o=="symbol"?o=o.toString():this.warnOnInvalidChildren(s,i),o){case"Symbol(react.fragment)":e=this.mapChildrenToProps(i,e);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(s,r,a,i);break;default:e=this.mapObjectTypeChildren(s,e,a,i);break}}),this.mapArrayTypeChildrenToProps(r,e)}render(){const{children:t,...e}=this.props;let r={...e},{helmetData:s}=e;if(t&&(r=this.mapChildrenToProps(t,r)),s&&!(s instanceof Ln)){const i=s;s=new Ln(i.context,!0),delete r.helmetData}return s?C.createElement(ho,{...r,context:s.value}):C.createElement(tc.Consumer,null,i=>C.createElement(ho,{...r,context:i}))}},St(Nn,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Nn),_=typeof window<"u"?window:void 0,Ae=typeof globalThis<"u"?globalThis:_;typeof self>"u"&&(Ae.self=Ae),typeof File>"u"&&(Ae.File=function(){});var We=Ae==null?void 0:Ae.navigator,$=Ae==null?void 0:Ae.document,Pe=Ae==null?void 0:Ae.location,Un=Ae==null?void 0:Ae.fetch,zn=Ae!=null&&Ae.XMLHttpRequest&&"withCredentials"in new Ae.XMLHttpRequest?Ae.XMLHttpRequest:void 0,po=Ae==null?void 0:Ae.AbortController,Gd=Ae==null?void 0:Ae.CompressionStream,Ve=We==null?void 0:We.userAgent,D=_??{},fo="1.393.5",ke={DEBUG:!1,LIB_VERSION:fo,LIB_NAME:"web",JS_SDK_VERSION:fo};function go(t,e,r,s,i,n,a){try{var o=t[n](a),l=o.value}catch(u){return void r(u)}o.done?e(l):Promise.resolve(l).then(s,i)}function Ce(t){return function(){var e=this,r=arguments;return new Promise(function(s,i){var n=t.apply(e,r);function a(l){go(n,s,i,a,o,"next",l)}function o(l){go(n,s,i,a,o,"throw",l)}a(void 0)})}}function j(){return j=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var r=arguments[e];for(var s in r)({}
2).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},j.apply(null,arguments)}function rc(t,e){if(t==null)return{};var r={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(e.indexOf(s)!==-1)continue;r[s]=t[s]}return r}var Wd=t=>{if(typeof t!="string")return t;try{return JSON.parse(t)}catch{return t}};function Kd(t){return typeof t=="string"||t}function Qd(t){return typeof t=="string"?t:void 0}var us,Ot=function(t){return t.AnonymousId="anonymous_id",t.DistinctId="distinct_id",t.Props="props",t.EnablePersonProcessing="enable_person_processing",t.PersonMode="person_mode",t.FeatureFlagDetails="feature_flag_details",t.FeatureFlags="feature_flags",t.FeatureFlagPayloads="feature_flag_payloads",t.BootstrapFeatureFlagDetails="bootstrap_feature_flag_details",t.BootstrapFeatureFlags="bootstrap_feature_flags",t.BootstrapFeatureFlagPayloads="bootstrap_feature_flag_payloads",t.OverrideFeatureFlags="override_feature_flags",t.Queue="queue",t.LogsQueue="logs_queue",t.OptedOut="opted_out",t.SessionId="session_id",t.SessionStartTimestamp="session_start_timestamp",t.SessionLastTimestamp="session_timestamp",t.PersonProperties="person_properties",t.GroupProperties="group_properties",t.InstalledAppBuild="installed_app_build",t.InstalledAppVersion="installed_app_version",t.SessionReplay="session_replay",t.SessionReplayEventTriggerActivatedSession="session_replay_event_trigger_activated_session",t.SurveyLastSeenDate="survey_last_seen_date",t.SurveysSeen="surveys_seen",t.Surveys="surveys",t.RemoteConfig="remote_config",t.FlagsEndpointWasHit="flags_endpoint_was_hit",t.DeviceId="device_id",t}({}),vo=function(t){return t.GZipJS="gzip-js",t.Base64="base64",t}({}),Yd=["$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"],Jd=["token"],sc="NativeGzipValidationError",Hn=t=>t.length>=2&&t[0]===31&&t[1]===139,mo=t=>!(!t||typeof t!="object")&&("name"in t?String(t.name):"")==="NotReadableError",Xs=t=>{var e=new Error("Native gzip produced invalid output: "+t);throw e.name=sc,e},Xd=function(){var t=Ce(function*(e,r){18>e.size&&Xs("too-short");var s=new Uint8Array(yield e.slice(0,10).arrayBuffer());Hn(s)&&s[2]===8||Xs("invalid-header");var i=new DataView(yield e.slice(e.size-8).arrayBuffer());i.getUint32(0,!0)!==(a=>{for(var o=(()=>{if(us)return us;us=[];for(var d=0;256>d;d++){for(var p=d,f=0;8>f;f++)p=1&p?3988292384^p>>>1:p>>>1;us[d]=p>>>0}return us})(),l=4294967295,u=0;a.length>u;u++)l=o[255&(l^a[u])]^l>>>8;return(4294967295^l)>>>0})(r)&&Xs("invalid-crc");var n=r.length>>>0;i.getUint32(4,!0)!==n&&Xs("invalid-size")});return function(e,r){return t.apply(this,arguments)}}();function Vn(){return Vn=Ce(function*(t,e,r){e===void 0&&(e=!0);try{var s=new TextEncoder().encode(t),i=new CompressionStream("gzip"),n=i.writable.getWriter(),a=n.write(s).then(()=>n.close()).catch(function(){var u=Ce(function*(d){try{yield n.abort(d)}catch{}throw d});return function(d){return u.apply(this,arguments)}}()),o=new Response(i.readable).blob(),[l]=yield Promise.all([o,a]);return yield Xd(l,s),l}catch(u){if(r!=null&&r.rethrow)throw u;return e&&console.error("Failed to gzip compress data",u),null}}),Vn.apply(this,arguments)}var Zd=["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","pinterest","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"],_o=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var r=t.toLowerCase();return Zd.concat(e).some(s=>{var i=s.toLowerCase();return r.indexOf(i)!==-1})};function V(t,e){return t.indexOf(e)!==-1}var zi=function(t){return t.trim()},Bn=function(t){return t.replace(/^\$/,"")},ic=Object.prototype,nc=ic.hasOwnProperty,Hi=ic.toString,ee=Array.isArray||function(t){return Hi.
2call(t)==="[object Array]"},Rt=t=>typeof t=="function",ge=t=>t===Object(t)&&!ee(t),Jt=t=>{if(ge(t)){for(var e in t)if(nc.call(t,e))return!1;return!0}return!1},O=t=>t===void 0,pe=t=>Hi.call(t)=="[object String]",qn=t=>pe(t)&&t.trim().length===0,ze=t=>t===null,Q=t=>O(t)||ze(t),He=t=>Hi.call(t)=="[object Number]"&&t==t,jt=t=>He(t)&&t>0,wt=t=>Hi.call(t)==="[object Boolean]",eh=t=>t instanceof FormData,th=t=>V(Yd,t),rh=t=>V(Jd,t);function ac(t){return t===null||typeof t!="object"}function bi(t,e){return{}.toString.call(t)==="[object "+e+"]"}function $a(t){return typeof Event<"u"&&function(e,r){try{return e instanceof r}catch{return!1}}(t,Event)}var sh=[!0,"true",1,"1","yes"],tn=t=>V(sh,t),ih=[!1,"false",0,"0","no"];function xt(t,e,r,s,i){return e>r&&(s.warn("min cannot be greater than max."),e=r),He(t)?t>r?(s.warn(" cannot be greater than max: "+r+". Using max value instead."),r):e>t?(s.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(s.warn(" must be a number. using max or fallback. max: "+r+", fallback: "+i),xt(i||r,e,r,s))}class nh{constructor(e){this.Ee={},this.Pe=e.Pe,this.Fe=xt(e.bucketSize,0,100,e.Ae),this.$e=xt(e.refillRate,0,this.Fe,e.Ae),this.De=xt(e.refillInterval,0,864e5,e.Ae)}Ne(e,r){var s=Math.floor((r-e.lastAccess)/this.De);s>0&&(e.tokens=Math.min(e.tokens+s*this.$e,this.Fe),e.lastAccess=e.lastAccess+s*this.De)}consumeRateLimit(e){var r,s=Date.now(),i=String(e),n=this.Ee[i];return n?this.Ne(n,s):this.Ee[i]=n={tokens:this.Fe,lastAccess:s},n.tokens===0||(n.tokens--,n.tokens===0&&((r=this.Pe)==null||r.call(this,e)),n.tokens===0)}stop(){this.Ee={}}}var Qe="Mobile",xi="iOS",Lt="Android",Zr="Tablet",oc=Lt+" "+Zr,lc="iPad",cc="Apple",uc=cc+" Watch",Ps="Safari",es="BlackBerry",dc="Samsung",hc=dc+"Browser",pc=dc+" Internet",wr="Chrome",ah=wr+" OS",fc=wr+" "+xi,Fa="Internet Explorer",gc=Fa+" "+Qe,La="Opera",oh=La+" Mini",Da="Edge",vc="Microsoft "+Da,Hr="Firefox",mc=Hr+" "+xi,Ns="Nintendo",$s="PlayStation",Vr="Xbox",_c=Lt+" "+Qe,yc=Qe+" "+Ps,ws="Windows",Gn=ws+" Phone",yo="Nokia",Wn="Ouya",bc="Generic",lh=bc+" "+Qe.toLowerCase(),xc=bc+" "+Zr.toLowerCase(),Kn="Konqueror",wc="Oculus Browser",wi="Vivaldi",Ec="Yandex",Ei="Whale",Qn="DuckDuckGo",Sc="Pale Moon",Si="Waterfox",As="Brave",kc="Google Search App",ye="(\\d+(\\.\\d+)?)",rn=new RegExp("Version/"+ye),ch=new RegExp(Vr,"i"),uh=new RegExp($s+" \\w+","i"),dh=new RegExp(Ns+" \\w+","i"),Ua=new RegExp(es+"|PlayBook|BB10","i"),hh={"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"},Tc=function(t,e,r,s){e=e||"";var i=function(n){return n!=null&&n.brave?As:null}(r);return i||(s!=null&&s.detectGoogleSearchApp&&V(t,"GSA/")?kc:V(t," OPR/")&&V(t,"Mini")?oh:V(t," OPR/")?La:Ua.test(t)?es:V(t,"IE"+Qe)||V(t,"WPDesktop")?gc:V(t,"OculusBrowser")?wc:V(t,hc)?pc:V(t,Da)||V(t,"Edg/")?vc:V(t,wi+"/")?wi:V(t,"YaBrowser/")?Ec:V(t,Ei+"/")?Ei:V(t,Qn+"/")||V(t,"Ddg/")?Qn:V(t,"FBIOS")?"Facebook "+Qe:V(t,"UCWEB")||V(t,"UCBrowser")?"UC Browser":V(t,"CriOS")?fc:V(t,"CrMo")||V(t,wr)?wr:V(t,Lt)&&V(t,Ps)?_c:V(t,"FxiOS")?mc:V(t.toLowerCase(),Kn.toLowerCase())?Kn:V(t,As+"/")?As:((n,a)=>a&&V(a,cc)||function(o){return V(o,Ps)&&!V(o,wr)&&!V(o,Lt)}(n))(t,e)?V(t,Qe)?yc:Ps:V(t,"PaleMoon/")?Sc:V(t,Si+"/")?Si:V(t,Hr)?Hr:V(t,"MSIE")||V(t,"Trident/")?Fa:V(t,"Gecko")?Hr:"")},ph={[gc]:[new RegExp("rv:"+ye)],[vc]:[new RegExp(Da+"?\\/"+ye)],[wr]:[new RegExp("("+wr+"|CrMo)\\/"+ye)],[fc]:[new RegExp("CriOS\\/"+ye)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+ye)],[Ps]:[rn],[yc]:[rn],[La]:[new RegExp("(Opera|OPR)\\/"+ye)],[Hr]:[new RegExp(Hr+"\\/"+ye)],[mc]:[new RegExp("FxiOS\\/"+ye)],[Kn]:[new RegExp("Konqueror[:/]?"+ye,"i")],[es]:[new RegExp(es+" "+ye),rn],[_c]:[new RegExp("android\\s"+ye,"i")],[pc]:[new RegExp(hc+"\\/"+ye)],[wc]:[new RegExp("OculusBrowser\\/"+ye)],[wi]:[new RegExp(wi+"\\/"+ye)],[Ec]:[new RegExp("YaBrowser\\/"+ye)],[Ei]:[new RegExp(Ei+"\\/"+ye)],[As]:[new RegExp(As+"\\/"+ye)],[Qn]:[new RegExp("(DuckDuckGo|Ddg)\\/"+ye)],[Sc]:[new RegExp("PaleMoon\\/"+ye)],[Si]:[new RegExp(Si+"\\/"+ye)],[kc]:[new RegExp("GSA\\/"+ye)],[Fa]:[new RegExp("(rv:|MSIE )"+ye)],Mozilla:[new RegExp("rv:"+ye)]},fh=function(t,e,r,s){var i=Tc(t,e,r,s),n=ph[i];if(O(n))return null;for(var a=0;n.length>a;a++){var o=t.match(n[a]);if(o)return parseFloat(o[o.length-2])}return null},bo=[[new RegExp(Vr+"; "+Vr+" (.*?)[);]","i"),t=>[Vr,t&&t[1]||""]],[new RegExp(Ns,"i"),[Ns,""]],[new RegExp($s,"i"),[$s,""]],[Ua,[es,""]],[new RegExp(ws,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[Gn,""];if(new RegExp(Qe).test(e)&&!/IEMobile\b/.test(e))return[ws+" "+Qe,""];
2var r=/Windows NT ([0-9.]+)/i.exec(e);if(r&&r[1]){var s=hh[r[1]]||"";return/arm/i.test(e)&&(s="RT"),[ws,s]}return[ws,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[xi,[t[3],t[4],t[5]||"0"].join(".")]:[xi,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=O(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+Lt+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Lt+")","i"),t=>t&&t[2]?[Lt,[t[2],t[3],t[4]||"0"].join(".")]:[Lt,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];return t&&t[1]&&(e[1]=[t[1],t[2],t[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[ah,""]],[/Linux|debian/i,["Linux",""]]],xo=function(t){return dh.test(t)?Ns:uh.test(t)?$s:ch.test(t)?Vr:new RegExp(Wn,"i").test(t)?Wn:new RegExp("("+Gn+"|WPDesktop)","i").test(t)?Gn:/iPad/.test(t)?lc:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?uc:Ua.test(t)?es:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(yo,"i").test(t)?yo:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Qe).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Lt:oc:new RegExp("(pda|"+Qe+")","i").test(t)?lh:new RegExp(Zr,"i").test(t)&&!new RegExp(Zr+" pc","i").test(t)?xc:""},gh=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function wo(t,e){return typeof(r=t)=="string"&&gh.test(r)?t:e();var r}function Zt(t){return t&&t.split("#")[0]}function sn(t,e){var r=setTimeout(t,e);return r!=null&&r.unref&&(r==null||r.unref()),r}var vh=t=>t instanceof Error,Pc={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}},mh=Pc.info;function Ac(t){if(wt(t))return{boolValue:t};if(typeof t=="number")return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if(typeof t=="string")return{stringValue:t};if(ee(t))return{arrayValue:{values:t.map(e=>Ac(e))}};try{return{stringValue:JSON.stringify(t)}}catch{return{stringValue:String(t)}}}function jc(t){var e=[];for(var r in t){var s=t[r];ze(s)||O(s)||e.push({key:r,value:Ac(s)})}return e}function _h(t,e){var r=t.level||"info",{text:s,number:i}=Pc[r]||mh,n=String(Date.now())+"000000",a={};e.distinctId&&(a.posthogDistinctId=e.distinctId),e.sessionId&&(a.sessionId=e.sessionId),e.windowId&&(a["window.id"]=e.windowId),Q(e.sessionStartTimestamp)||(a.sessionStartTimestamp=String(e.sessionStartTimestamp)),Q(e.lastActivityTimestamp)||(a.lastActivityTimestamp=String(e.lastActivityTimestamp)),e.currentUrl&&(a["url.full"]=e.currentUrl),e.screenName&&(a["screen.name"]=e.screenName),e.appState&&(a["app.state"]=e.appState),e.activeFeatureFlags&&e.activeFeatureFlags.length>0&&(a.feature_flags=e.activeFeatureFlags);var o=j({},a,t.attributes||{}),l={timeUnixNano:n,observedTimeUnixNano:n,severityNumber:i,severityText:s,body:{stringValue:t.body},attributes:jc(o)};return t.trace_id&&(l.traceId=t.trace_id),t.span_id&&(l.spanId=t.span_id),O(t.trace_flags)||(l.flags=t.trace_flags),l}function Cc(t,e,r){return j({},t.resourceAttributes,{"service.name":t.serviceName||"unknown_service"},t.environment&&{"deployment.environment":t.environment},t.serviceVersion&&{"service.version":t.serviceVersion},{"telemetry.sdk.name":e,"telemetry.sdk.version":r})}function Ic(t,e,r,s){return{resourceLogs:[{resource:{attributes:jc(e)},scopeLogs:[{scope:{name:r,version:s},logRecords:t}]}]}}let yh=class{constructor(e,r,s,i,n,a,o){var l;a===void 0&&(a=()=>Promise.resolve()),this._instance=e,this.Se=r,this.Ae=s,this.qe=i,this.Be=n,this.je=a,this.He=o,this.Ue=null,this.ze=0,this.Ve=0,this.We=0,this.Ge=0,this.Ze=!1,this.Qe=r.maxBufferSize,this.Je=Math.max((l=r.maxQueueSize)!==null&&l!==void 0?l:r.maxBufferSize,r.maxBufferSize),this.Ye=r.flushIntervalMs,this.Ke=r.maxBatchRecordsPerPost,this.Xe=r.rateCapWindowMs,this.et=r.maxLogsPerInterval}reset(){this.tt(),this.Ue=null,this.We=0,this.Ge=0,this.Ze=!1,this.ze=0,this.Ve=0,this.Ke=this.Se.maxBatchRecordsPerPost}onReconnect(){this.Ve=0,this.rt()}captureLog(e){if(!this._instance.isDisabled&&!this._instance.optedOut&&e!=null&&e.body){var r=this.it(e);
2if(r!==null)if(r.body){if(this.nt()){var s={record:_h(r,this.qe())};this.Be(()=>this.st(s))}}else this.Ae.info("Log was rejected in beforeSend function")}}it(e){var r=this.Se.beforeSend;if(!r)return e;var s=ee(r)?r:[r],i=e;for(var n of s)try{var a=n(i);if(!a)return this.Ae.info("Log was rejected in beforeSend function"),null;i=a}catch(o){return this.Ae.error("Error in beforeSend function for log:",o),null}return i}nt(){if(this.et===void 0)return!0;var e=Date.now(),r=e-this.We;return this.Xe>r&&r>=0||(this.We=e,this.Ge=0,this.Ze=!1),this.et>this.Ge?(this.Ge++,!0):(this.Ze||(this.Ae.warn("captureLog dropping logs: exceeded "+this.et+" logs per "+this.Xe+"ms"),this.Ze=!0),!1)}flush(){var e=this;return Ce(function*(){if(!e._instance.isDisabled)return e.Ue||(e.Ue=e.ot().finally(()=>{e.Ue=null})),e.Ue})()}ot(){var e=this;return Ce(function*(){var r;e.tt();var s=(r=e._instance.getPersistedProperty(Ot.LogsQueue))!==null&&r!==void 0?r:[];if(s.length!==0)for(var i=s.length,n=0;s.length>0&&i>n;){var a,o;e.ze=0;var l=Math.min(s.length,e.Ke),u=s.slice(0,l),d=Ic(u.map(f=>f.record),e.ut(),(a=e.He)!==null&&a!==void 0?a:e._instance.getLibraryId(),e._instance.getLibraryVersion()),p=yield e._instance.ht(d);if(p.kind==="too-large"&&u.length>1)e.Ke=Math.max(1,Math.floor(u.length/2)),e.Ae.warn("Received 413 when sending logs batch of size "+u.length+", reducing batch size to "+e.Ke);else if(p.kind==="retry-later"||(p.kind==="too-large"?e.Ae.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."):p.kind==="ok"&&e.Se.maxBatchRecordsPerPost>e.Ke&&(e.Ke=Math.min(e.Se.maxBatchRecordsPerPost,e.Ke+1)),yield e.dt(u.length),s=(o=e._instance.getPersistedProperty(Ot.LogsQueue))!==null&&o!==void 0?o:[],n+=u.length,p.kind==="fatal"))throw p.error}})()}dt(e){var r=this;return Ce(function*(){var s,i=Math.max(0,e-r.ze),n=(s=r._instance.getPersistedProperty(Ot.LogsQueue))!==null&&s!==void 0?s:[];r._instance.setPersistedProperty(Ot.LogsQueue,n.slice(i)),yield r.je()})()}ut(){return Cc(this.Se,this._instance.getLibraryId(),this._instance.getLibraryVersion())}st(e){var r;if(!this._instance.optedOut){var s=(r=this._instance.getPersistedProperty(Ot.LogsQueue))!==null&&r!==void 0?r:[];this.Je>s.length||(s.shift(),this.ze++,this.Ae.info("Logs queue is full, dropping oldest record.")),s.push(e),this._instance.setPersistedProperty(Ot.LogsQueue,s),this.Qe>s.length?this.ct():this.rt()}}ct(e){e===void 0&&(e=this.Ye),this.vt||(this.vt=sn(()=>{this.vt=void 0,this.rt()},e))}ft(){var e=Math.min(Math.max(0,this.Ve-1),6);return this.Ye*Math.pow(2,e)}yt(){var e=this._instance.getPersistedProperty(Ot.LogsQueue);return!!e&&e.length>0}shutdown(e){var r=this;return Ce(function*(){r.tt();var s=r.flush().catch(()=>{});e!==void 0?yield Promise.race([s,new Promise(i=>sn(i,e))]):yield s})()}flushWithTimeout(e){var r=this;return Ce(function*(){var s=!1,i=r.flush(),n=new Promise(a=>sn(()=>{s=!0,a()},e));try{yield Promise.race([i,n])}finally{s&&i.catch(()=>{})}})()}rt(){this.flush().then(()=>{this.Ve=0},e=>{this.Ve++,this.Ae.error("PostHog logs flush failed:",e)}).finally(()=>{!this._instance.isDisabled&&this.yt()&&this.ct(this.ft())})}tt(){this.vt&&(clearTimeout(this.vt),this.vt=void 0)}};var Zs,Eo,nn;function bh(t){var e=globalThis._posthogChunkIds;if(e){var r=Object.keys(e);return nn&&r.length===Eo||(Eo=r.length,nn=r.reduce((s,i)=>{Zs||(Zs={});var n=Zs[i];if(n)s[n[0]]=n[1];else for(var a=t(i),o=a.length-1;o>=0;o--){var l=a[o],u=l==null?void 0:l.filename,d=e[i];if(u&&d){s[u]=d,Zs[i]=[u,d];break}}return s},{})),nn}}class xh{constructor(e,r,s){s===void 0&&(s=[]),this.coercers=e,this.stackParser=r,this.modifiers=s}buildFromUnknown(e,r){r===void 0&&(r={});var s=r&&r.mechanism||{handled:!0,type:"generic"},i=this.buildCoercingContext(s,r,0).apply(e),n=this.buildParsingContext(r),a=this.parseStacktrace(i,n);return{$exception_list:this.convertToExceptionList(a,s),$exception_level:"error"}}modifyFrames(e){var r=this;return Ce(function*(){for(var s of e)s.stacktrace&&s.stacktrace.frames&&ee(s.stacktrace.frames)&&(s.stacktrace.frames=yield r.applyModifiers(s.stacktrace.frames));return e})()}coerceFallback(e){var r;return{type:"Error",value:"Unknown error",stack:(r=e.syntheticException)==null?void 0:r.stack,synthetic:!0}}parseStacktrace(e,r){var s,i;return e.cause!=null&&(s=this.parseStacktrace(e.cause,r)),e.stack!=""&&e.stack!=null&&(i=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?r.skipFirstLines:0),r.chunkIdMap)),j({},e,{cause:s,stack:i})}applyChunkIds(e,r){return e.map(s=>
2(s.filename&&r&&(s.chunk_id=r[s.filename]),s))}applyCoercers(e,r){for(var s of this.coercers)if(s.match(e))return s.coerce(e,r);return this.coerceFallback(r)}applyModifiers(e){var r=this;return Ce(function*(){var s=e;for(var i of r.modifiers)s=yield i(s);return s})()}convertToExceptionList(e,r){var s,i,n,a={type:e.type,value:e.value,mechanism:{type:(s=r.type)!==null&&s!==void 0?s:"generic",handled:(i=r.handled)===null||i===void 0||i,synthetic:(n=e.synthetic)!==null&&n!==void 0&&n}};e.stack&&(a.stacktrace={type:"raw",frames:e.stack});var o=[a];return e.cause!=null&&o.push(...this.convertToExceptionList(e.cause,j({},r,{handled:!0}))),o}buildParsingContext(e){var r;return{chunkIdMap:bh(this.stackParser),skipFirstLines:(r=e.skipFirstLines)!==null&&r!==void 0?r:1}}buildCoercingContext(e,r,s){s===void 0&&(s=0);var i=(n,a)=>{if(4>=a){var o=this.buildCoercingContext(e,r,a);return this.applyCoercers(n,o)}};return j({},r,{syntheticException:s==0?r.syntheticException:void 0,mechanism:e,apply:n=>i(n,s),next:n=>i(n,s+1)})}}var ts="?";function Yn(t,e,r,s,i){var n={platform:t,filename:e,function:r==="<anonymous>"?ts:r,in_app:!0};return O(s)||(n.lineno=s),O(i)||(n.colno=i),n}var Oc=(t,e)=>{var r=t.indexOf("safari-extension")!==-1,s=t.indexOf("safari-web-extension")!==-1;return r||s?[t.indexOf("@")!==-1?t.split("@")[0]:ts,r?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},wh=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Eh=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sh=/\((\S*)(?::(\d+))(?::(\d+))\)/,kh=(t,e)=>{var r=wh.exec(t);if(r){var[,s,i,n]=r;return Yn(e,s,ts,+i,+n)}var a=Eh.exec(t);if(a){if(a[2]&&a[2].indexOf("eval")===0){var o=Sh.exec(a[2]);o&&(a[2]=o[1],a[3]=o[2],a[4]=o[3])}var[l,u]=Oc(a[1]||ts,a[2]);return Yn(e,u,l,a[3]?+a[3]:void 0,a[4]?+a[4]:void 0)}},Th=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ph=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ah=(t,e)=>{var r=Th.exec(t);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var s=Ph.exec(r[3]);s&&(r[1]=r[1]||"eval",r[3]=s[1],r[4]=s[2],r[5]="")}var i=r[3],n=r[1]||ts;return[n,i]=Oc(n,i),Yn(e,i,n,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}},So=/\(error: (.*)\)/;class jh{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,r){var s=pe(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:s?e.stack:void 0,cause:e.cause?r.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var r=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?r+": "+e.message:r}isDOMException(e){return bi(e,"DOMException")}isDOMError(e){return bi(e,"DOMError")}}class Ch{match(e){return(r=>r instanceof Error)(e)}coerce(e,r){return{type:this.getType(e),value:this.getMessage(e,r),stack:this.getStack(e),cause:e.cause?r.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,r){var s=e.message;return String(s.error&&typeof s.error.message=="string"?s.error.message:s)}getStack(e){return e.stacktrace||e.stack||void 0}}class Ih{constructor(){}match(e){return bi(e,"ErrorEvent")&&e.error!=null}coerce(e,r){var s;return r.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(s=r.syntheticException)==null?void 0:s.stack,synthetic:!0}}}var Oh=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class Rh{match(e){return typeof e=="string"}coerce(e,r){var s,[i,n]=this.getInfos(e);return{type:i??"Error",value:n??e,stack:(s=r.syntheticException)==null?void 0:s.stack,synthetic:!0}}getInfos(e){var r="Error",s=e,i=e.match(Oh);return i&&(r=i[1],s=i[2]),[r,s]}}var Mh=["fatal","error","warning","log","info","debug"];function Rc(t,e){e===void 0&&(e=40);var r=Object.keys(t);if(r.sort(),!r.length)return"[object has no keys]";for(var s=r.length;s>0;s--){var i=r.slice(0,s).join(", ");if(e>=i.length)return s===r.length?i:i.length>e?i.slice(0,e)+"...":i}return""}class Nh{match(e){return typeof e=="object"&&e!==null}coerce(e,r){var s,i=this.getErrorPropertyFromObject(e);return i?r.apply(i):{type:this.getType(e),value:this.getValue(e),stack:(s=r.syntheticException)==null?void 0:s.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return $a(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var r="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(r+=" with message: '"+e.message+"'"),r}if("message"in e&&typeof e.message=="string")return e.message;var s=this.getObjectClassName(e);return(s&&s!=="Object"?"'"+s+"'":"Object")+" captured as exception with keys: "+Rc(e)}isSeverityLevel(e){return pe(e)&&!qn(e)&&Mh.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var r in e)if({}.hasOwnProperty.call(e,r)){var s=e[r];if(vh(s))return s}}getObjectClassName(e){try{var r=Object.getPrototypeOf(e);return r?r.constructor.name:void 0}catch{return}}}class $h{match(e){return $a(e)}coerce(e,r){var s,i=e.constructor.name;return{type:i,value:i+" captured as exception with keys: "+Rc(e),stack:(s=r.syntheticException)==null?void 0:s.stack,synthetic:!0}}}class Fh{match(e){return ac(e)}coerce(e,r){var s;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(s=r.syntheticException)==null?void 0:s.stack,synthetic:!0}}}class Lh{match(e){return bi(e,"PromiseRejectionEvent")||this.isCu
2stomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!$a(e))return!1;try{var r=e.detail;return r!=null&&typeof r=="object"&&"reason"in r}catch{return!1}}coerce(e,r){var s,i=this.getUnhandledRejectionReason(e);return ac(i)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i),stack:(s=r.syntheticException)==null?void 0:s.stack,synthetic:!0}:r.apply(i)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}}var ki="$message",Ti="$timestamp",Dh=new Set([ki,Ti]),an={enabled:!0,max_bytes:32768};function Pi(t){var e;return t?{enabled:(e=t.enabled)!==null&&e!==void 0?e:an.enabled,max_bytes:zh(t.max_bytes,an.max_bytes)}:j({},an)}class Uh{constructor(e){this.bt=[],this._t=0,this.Se=Pi(e)}setConfig(e){this.Se=Pi(e),this.wt()}add(e){var r=function(i){var n=function(d){var p=new WeakSet;try{return JSON.stringify(d,(f,h)=>{if(typeof h=="bigint")return h.toString();if(typeof h!="function"&&typeof h!="symbol"){if(h instanceof Date)return h.toISOString();if(h instanceof Error)return{name:h.name,message:h.message,stack:h.stack};if(h&&typeof h=="object"){if(p.has(h))return"[Circular]";p.add(h)}return h}})}catch{return}}(i);if(n)try{var a=JSON.parse(n);if(!ge(a))return;var o=a,l=o[ki],u=o[Ti];return!pe(l)||l.trim().length===0||!pe(u)&&!He(u)?void 0:{step:o,json:n}}catch{return}}(e);if(r){var s=function(i){if(typeof TextEncoder<"u")return new TextEncoder().encode(i).length;for(var n=encodeURIComponent(i),a=0,o=0;n.length>o;o++)n[o]==="%"?(a+=1,o+=2):a+=1;return a}(r.json);s>this.Se.max_bytes||(this.bt.push({step:r.step,bytes:s}),this._t+=s,this.wt())}}getAttachable(){return this.bt.map(e=>e.step)}clear(){this.bt=[],this._t=0}size(){return this.bt.length}wt(){for(;this._t>this.Se.max_bytes&&this.bt.length>0;){var e=this.bt.shift();e&&(this._t-=e.bytes)}}}function zh(t,e){if(!He(t)||t===1/0||t===-1/0)return e;var r=Math.floor(t);return 0>r?e:r}var Mc=function(t,e){var{debugEnabled:r}=e===void 0?{}:e,s={k(i){if(_&&(ke.DEBUG||D.POSTHOG_DEBUG||r)&&!O(_.console)&&_.console){for(var n=("__rrweb_original__"in _.console[i])?_.console[i].__rrweb_original__:_.console[i],a=arguments.length,o=new Array(a>1?a-1:0),l=1;a>l;l++)o[l-1]=arguments[l];n(t,...o)}},debug(){for(var i=arguments.length,n=new Array(i),a=0;i>a;a++)n[a]=arguments[a];s.k("debug",...n)},info(){for(var i=arguments.length,n=new Array(i),a=0;i>a;a++)n[a]=arguments[a];s.k("log",...n)},warn(){for(var i=arguments.length,n=new Array(i),a=0;i>a;a++)n[a]=arguments[a];s.k("warn",...n)},error(){for(var i=arguments.length,n=new Array(i),a=0;i>a;a++)n[a]=arguments[a];s.k("error",...n)},critical(){for(var i=arguments.length,n=new Array(i),a=0;i>a;a++)n[a]=arguments[a];console.error(t,...n)},uninitializedWarning(i){s.error("You must initialize PostHog before calling "+i)},createLogger:(i,n)=>Mc(t+" "+i,n)};return s},M=Mc("[PostHog.js]"),be=M.createLogger,Hh=be("[ExternalScriptsLoader]"),on=(t,e,r)=>{if(t.config.disable_external_dependency_loading)return Hh.warn(e+" was requested but loading of external scripts is disabled."),r("Loading of external scripts is disabled");var s=$==null?void 0:$.querySelectorAll("script");if(s){for(var i,n=function(){if(s[a].src===e){var l=s[a];return l.__posthog_loading_callback_fired?{v:r()}:(l.addEventListener("load",u=>{l.__posthog_loading_callback_fired=!0,r(void 0,u)}),l.onerror=u=>r(u),{v:void 0})}},a=0;s.length>a;a++)if(i=n())return i.v}var o=()=>{if(!$)return r("document not found");var l=$.createElement("script");if(l.type="text/javascript",l.crossOrigin="anonymous",l.src=e,l.onload=p=>{l.__posthog_loading_callback_fired=!0,r(void 0,p)},l.onerror=p=>r(p),t.config.prepare_external_dependency_script&&(l=t.config.prepare_external_dependency_script(l)),!l)return r("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")$.head.appendChild(l);else{var u,d=$.querySelectorAll("body > script");d.length>0?(u=d[0].parentNode)==null||u.insertBefore(l,d[0]):$.body.appendChild(l)}};$!=null&&$.body?o():$==null||$.addEventListener("DOMContentLoaded",o)};D.__PosthogExtensions__=D.__PosthogExtensions__||{},D.__PosthogExtensions__.loadExternalDependency=(t,e,r)=>{if(e!=="remote-config"){var s;if(t.config.strict_script_versioning)s=t.requestRouter.endpointFor("assets","/static/"+t.version+"/"+e+".js");else{var i="/static/"+e+".js?v="+t.version;if(e==="toolbar"){var n=3e5;i=i+"&t="+Math.floor(Date.now()/n)*n}
2s=t.requestRouter.endpointFor("assets",i)}on(t,s,r)}else{var a=t.requestRouter.endpointFor("assets","/array/"+t.config.token+"/config.js");on(t,a,r)}},D.__PosthogExtensions__.loadSiteApp=(t,e,r)=>{var s=t.requestRouter.endpointFor("api",e);on(t,s,r)};var Nc="$people_distinct_id",Ai="$device_id",Es="__alias",Ss="__timers",Jn="$autocapture_disabled_server_side",Xn="$heatmaps_enabled_server_side",Zn="$exception_capture_enabled_server_side",ea="$error_tracking_suppression_rules",ta="$error_tracking_capture_extension_exceptions",ra="$web_vitals_enabled_server_side",za="$dead_clicks_enabled_server_side",Ha="$product_tours_enabled_server_side",sa="$web_vitals_allowed_metrics",hr="$session_recording_remote_config",$c="$replay_sample_rate",Fc="$replay_override_sampling",Lc="$replay_override_linked_flag",Dc="$replay_override_url_trigger",Uc="$replay_override_event_trigger",Lr="$sesid",Va="$session_is_sampled",dr="$enabled_feature_flags",pi="$active_feature_flags",ks="$early_access_features",ia="$feature_flag_details",fi="$feature_flag_payloads",na="$feature_flag_request_id",Ct="$override_feature_flags",Nr="$override_feature_flag_payloads",lr="$stored_person_properties",cr="$stored_group_properties",aa="$surveys",Ba="$surveys_loaded_at",oa="$surveys_activated",Ts="ph_product_tours",js="$flag_call_reported",la="$flag_call_reported_session_id",ca="$feature_flag_errors",Fs="$feature_flag_evaluated_at",ut="$user_state",ua="$client_session_props",da="$capture_rate_limit",ha="$initial_campaign_params",pa="$initial_referrer_info",ji="$initial_person_info",Ci="$epp",zc="__POSTHOG_TOOLBAR__",ei="$posthog_cookieless",Hc="$sdk_debug_extensions_init_method",Vc="$sdk_debug_extensions_init_time_ms",Bc="$sdk_debug_recording_script_not_loaded",fa="PostHog loadExternalDependency extension not found.",ur="on_reject",$t="always",jr="anonymous",Cr="identified",ga="identified_only",Ii="visibilitychange",Oi="beforeunload",$r="$pageview",ln="$pageleave",cn="$identify",ko="$groupidentify";function ti(t,e){ee(t)&&t.forEach(e)}function de(t,e){if(!Q(t))if(ee(t))t.forEach(e);else if(eh(t))t.forEach((s,i)=>e(s,i));else for(var r in t)nc.call(t,r)&&e(t[r],r)}var he=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;e>s;s++)r[s-1]=arguments[s];for(var i of r)for(var n in i)i[n]!==void 0&&(t[n]=i[n]);return t};function gi(t){for(var e=Object.keys(t),r=e.length,s=new Array(r);r--;)s[r]=[e[r],t[e[r]]];return s}var To=function(t){try{return t()}catch{return}},Vh=function(t){return function(){try{for(var e=arguments.length,r=new Array(e),s=0;e>s;s++)r[s]=arguments[s];return t.apply(this,r)}catch(i){M.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),M.critical(i)}}},qa=function(t){var e={};return de(t,function(r,s){(pe(r)&&r.length>0||He(r))&&(e[s]=r)}),e},Bh=["herokuapp.com","vercel.app","netlify.app"];function qh(t){var e=t==null?void 0:t.hostname;if(!pe(e))return!1;var r=e.split(".").slice(-2).join(".");for(var s of Bh)if(r===s)return!1;return!0}function xe(t,e,r,s){var{capture:i=!1,passive:n=!0}=s??{};t==null||t.addEventListener(e,r,{capture:i,passive:n})}function qc(t){return t.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return He(t)&&isFinite(t)&&Math.floor(t)===t});class Ri{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,r,s,i){if(!Number.isInteger(e)||!Number.isInteger(r)||!Number.isInteger(s)||!Number.isInteger(i)||0>e||0>r||0>s||0>i||e>0xffffffffffff||r>4095||s>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/Math.pow(2,8),n[5]=e,n[6]=112|r>>>8,n[7]=r,n[8]=128|s>>>24,n[9]=s>
2>>16,n[10]=s>>>8,n[11]=s,n[12]=i>>>24,n[13]=i>>>16,n[14]=i>>>8,n[15]=i,new Ri(n)}toString(){for(var e="",r=0;this.bytes.length>r;r++)e=e+(this.bytes[r]>>>4).toString(16)+(15&this.bytes[r]).toString(16),r!==3&&r!==5&&r!==7&&r!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new Ri(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var r=0;16>r;r++){var s=this.bytes[r]-e.bytes[r];if(s!==0)return Math.sign(s)}return 0}}class Gh{constructor(){this.S=0,this.C=0,this.I=new Wh}generate(){var e=this.generateOrAbort();if(O(e)){this.S=0;var r=this.generateOrAbort();if(O(r))throw new Error("Could not generate UUID after timestamp reset");return r}return e}generateOrAbort(){var e=Date.now();if(e>this.S)this.S=e,this.M();else{if(this.S>=e+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.M())}return Ri.fromFieldsV7(this.S,Math.trunc(this.C/Math.pow(2,30)),this.C&Math.pow(2,30)-1,this.I.nextUint32())}M(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var Po,Gc=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;t.length>e;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};_&&!O(_.crypto)&&crypto.getRandomValues&&(Gc=t=>crypto.getRandomValues(t));class Wh{constructor(){this.R=new Uint32Array(8),this.O=1/0}nextUint32(){return this.R.length>this.O||(Gc(this.R),this.O=0),this.R[this.O++]}}var Mt=()=>Kh().toString(),Kh=()=>(Po||(Po=new Gh)).generate(),ds="",Qh=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,bt={N:()=>!!$,D(t){M.error("cookieStore error: "+t)},P(t){if($){try{for(var e=t+"=",r=$.cookie.split(";").filter(n=>n.length),s=0;r.length>s;s++){for(var i=r[s];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(e)===0)return decodeURIComponent(i.substring(e.length,i.length))}}catch{}return null}},F(t){var e;try{e=JSON.parse(bt.P(t))||{}}catch{}return e},q(t,e,r,s,i){if(!$)return!1;try{var n="",a="",o=function(d,p){if(p){var f=function(v,g){if(g===void 0&&(g=$),ds)return ds;if(!g||["localhost","127.0.0.1"].includes(v))return"";for(var m=v.split("."),y=Math.min(m.length,8),E="dmn_chk_"+Mt();!ds&&y--;){var x=m.slice(y).join("."),k=E+"=1;domain=."+x+";path=/";g.cookie=k+";max-age=3",g.cookie.includes(E)&&(g.cookie=k+";max-age=0",ds=x)}return ds}(d);if(!f){var h=(v=>{var g=v.match(Qh);return g?g[0]:""})(d);h!==f&&M.info("Warning: cookie subdomain discovery mismatch",h,f),f=h}return f?"; domain=."+f:""}return""}($.location.hostname,s);if(r){var l=new Date;l.setTime(l.getTime()+864e5*r),n="; expires="+l.toUTCString()}i&&(a="; secure");var u=t+"="+encodeURIComponent(JSON.stringify(e))+n+"; SameSite=Lax; path=/"+o+a;return u.length>3686.4&&M.warn("cookieStore warning: large cookie, len="+u.length),$.cookie=u,!0}catch{return!1}},A(t,e){if($!=null&&$.cookie)try{bt.q(t,"",-1,e)}catch{return}}},un=null,ue={N(){if(!ze(un))return un;var t=!0;if(O(_))t=!1;else try{var e="__mplssupport__";ue.q(e,"xyz"),ue.P(e)!=='"xyz"'&&(t=!1),ue.A(e)}catch{t=!1}return t||M.error("localStorage unsupported; falling back to cookie store"),un=t,t},D(t){M.error("localStorage error: "+t)},P(t){try{return _==null?void 0:_.localStorage.getItem(t)}catch(e){ue.D(e)}return null},F(t){try{return JSON.parse(ue.P(t))||{}}catch{}return null},q(t,e){try{return _==null||_.localStorage.setItem(t,JSON.stringify(e)),!0}catch(r){ue.D(r)}return!1},A(t){try{_==null||_.localStorage.removeItem(t)}catch(e){ue.D(e)}}},Yh=[Ai,"distinct_id",Lr,Va,Ci,ji,ut],ri={},Jh={N:()=>!0,D(t){M.error("memoryStorage error: "+t)},P:t=>ri[t]||null,F:t=>ri[t]||null,q:(t,e)=>(ri[t]=e,!0),A(t){delete ri[t]}},sr=null,Oe={N(){if(!ze(sr))return sr;if(sr=!0,O(_))sr=!1;else try{var t="__support__";Oe.q(t,"xyz"),Oe.P(t)!=='"xyz"'&&(sr=!1),Oe.A(t)}catch{sr=!1}return sr},D(t){M.error("sessionStorage error: ",t)},P(t){try{return _==null?void 0:_.sessionStorage.getItem(t)}catch(e){Oe.D(e)}return null},F(t){try{return JSON.parse(Oe.P(t))||null}catch{}return null},q(t,e){try{return _==null||_.sessionStorage.setItem(t,JSON.stringify(e)),!0}catch(r){Oe.D(r)}return!1},A(t){try{_==null||_.sessionStorage.removeItem(t)}catch(e){Oe.D(e)}}};class Xh{constructor(e){this._instance=e}get Se(){return this._instance.config}get consent(){return this.kt()?0:this.St}
2isOptedOut(){return this.Se.cookieless_mode===$t||this.isRejected()||this.consent===-1&&this.Se.cookieless_mode===ur}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Se.opt_out_capturing_by_default}optInOut(e){this.Ct.q(this.It,e?1:0,this.Se.cookie_expiration,this.Se.cross_subdomain_cookie,this.Se.secure_cookie)}reset(){this.Ct.A(this.It,this.Se.cross_subdomain_cookie)}get It(){var{token:e,opt_out_capturing_cookie_prefix:r,consent_persistence_name:s}=this._instance.config;return s||(r?r+e:"__ph_opt_in_out_"+e)}get St(){var e=this.Ct.P(this.It);return tn(e)?1:V(ih,e)?0:-1}get Ct(){var e=this.Se.opt_out_capturing_persistence_type,r=e==="localStorage"?ue:bt;if(!this.Tt||this.Tt!==r){this.Tt=r;var s=e==="localStorage"?bt:ue;s.P(this.It)&&(this.Tt.P(this.It)||this.optInOut(tn(s.P(this.It))),s.A(this.It,this.Se.cross_subdomain_cookie))}return this.Tt}kt(){return!!this.Se.respect_dnt&&[We==null?void 0:We.doNotTrack,We==null?void 0:We.msDoNotTrack,D.doNotTrack].some(e=>tn(e))}}var Zh=1,ep=3,tp=11;function Ao(t){return t instanceof Element&&(t.id===zc||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function er(t){return!!t&&t.nodeType===Zh}function Ke(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function Wc(t){return!!t&&t.nodeType===ep}function Kc(t){return!!t&&t.nodeType===tp&&er(t.host)}function Ga(t){return t?zi(t).split(/\s+/):[]}function jo(t){var e=_==null?void 0:_.location.href;return!!(e&&t&&t.some(r=>e.match(r)))}function Mi(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return Ga(e)}function Qc(t){return Q(t)?null:zi(t).split(/(\s+)/).filter(e=>Cs(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Ls(t){var e="";return ma(t)&&!Zc(t)&&t.childNodes&&t.childNodes.length&&de(t.childNodes,function(r){var s;Wc(r)&&r.textContent&&(e+=(s=Qc(r.textContent))!==null&&s!==void 0?s:"")}),zi(e)}function dn(t){return O(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}var Wa=["a","button","form","input","select","textarea","label"];function va(t,e){if(O(e))return!0;var r,s=function(n){if(e.some(a=>function(o,l){var u=o.matches||o.matchesSelector||o.msMatchesSelector||o.mozMatchesSelector||o.webkitMatchesSelector||o.oMatchesSelector;try{return!!u&&u.call(o,l)}catch{return!1}}(n,a)))return{v:!0}};for(var i of t)if(r=s(i))return r.v;return!1}function Yc(t){var e=t.parentNode;return!(!e||!er(e))&&e}var rp=[".ph-no-autocapture","[data-ph-no-autocapture]"],Jc=["next","previous","prev",">","<"],sp=[...Jc,"+","-","â","â"],Co=(t,e)=>/[a-z0-9]/i.test(e)?t.includes(e):t===e,Io=[".ph-no-rageclick",".ph-no-capture"],ip=["","text","search","email","password","url","tel","number"];function Oo(t,e){if(!_||Ka(t))return!1;var r,s,i,n,a;if(wt(e)?(r=!!e&&Io,s=void 0,i=!1):(r=(n=e==null?void 0:e.css_selector_ignorelist)!==null&&n!==void 0?n:Io,s=e==null?void 0:e.content_ignorelist,i=(a=e==null?void 0:e.ignore_text_selection)!==null&&a!==void 0&&a),r===!1||i&&function(l){return!(!l||!er(l))&&(!!Ke(l,"textarea")||(Ke(l,"input")?V(ip,(l.getAttribute("type")||"").toLowerCase()):function(u){if(u.isContentEditable)return!0;var d=u.getAttribute==null?void 0:u.getAttribute("contenteditable");return d==="true"||d===""}(l)))}(t))return!1;var{targetElementList:o}=Xc(t,!1);return!function(l,u){if(l===!1||O(l))return!1;var d;if(l===!0)d=Jc;else{if(!ee(l))return!1;if(l.length>10)return M.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;d=l.map(p=>p.toLowerCase())}return u.some(p=>{var{safeText:f,ariaLabel:h}=p;return d.some(v=>Co(f,v)||Co(h,v))})}(s,o.map(l=>{var u;return{safeText:Ls(l).toLowerCase(),ariaLabel:((u=l.getAttribute("aria-label"))==null?void 0:u.toLowerCase().trim())||""}}))&&!va(o,r)}var Ka=t=>!t||Ke(t,"html")||!er(t),Xc=(t,e)=>{if(!_||Ka(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,s=[t],i=t;i.parentNode&&!Ke(i,"body");)if(Kc(i.parentNode))s.push(i.parentNode.host),i=i.parentNode.host;else{var n=Yc(i);if(!n)break;if(e||Wa.indexOf(n.tagName.toLowerCase())>-1)r=!0;else{var a=_.getComputedStyle(n);a&&a.getPropertyValue("cursor")==="pointer"&&(r=!0)}s.push(n),i=n}return{parentIsUsefulElement:r,targetElementList:s}};function ma(t){for(var e=t;e.parentNode&&!Ke(e,"body");e=e.parentNode){var r=Mi(e);if(V(r,"ph-sensitive")||V(r,"ph-no-capture"))return!1}if(V(Mi(t),"ph-include"))return!0;var s=t.type||"";if(pe(s))switch(s.toLowerCase()){case"hidden":case"password":return!1}var i=t.name||t.id||"";
2return!pe(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function Zc(t){return!!(Ke(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||Ke(t,"select")||Ke(t,"textarea")||t.getAttribute("contenteditable")==="true")}var eu="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",np=new RegExp("^(?:"+eu+")$"),ap=new RegExp(eu),tu="\\d{3}-?\\d{2}-?\\d{4}",op=new RegExp("^("+tu+")$"),lp=new RegExp("("+tu+")");function Cs(t,e){return e===void 0&&(e=!0),!(Q(t)||pe(t)&&(t=zi(t),(e?np:ap).test((t||"").replace(/[- ]/g,""))||(e?op:lp).test(t)))}function Ro(t){var e=Ls(t);return Cs(e=(e+" "+ru(t)).trim())?e:""}function ru(t){var e="";return t&&t.childNodes&&t.childNodes.length&&de(t.childNodes,function(r){var s;if(r&&((s=r.tagName)==null?void 0:s.toLowerCase())==="span")try{var i=Ls(r);e=(e+" "+i).trim(),r.childNodes&&r.childNodes.length&&(e=(e+" "+ru(r)).trim())}catch(n){M.error("[AutoCapture]",n)}}),e}function Mo(t){return t.replace(/"|\\"/g,'\\"')}function cp(t){var e=t.attr__class;return e?ee(e)?e:Ga(e):void 0}var si=be("[Dead Clicks]"),up=()=>!0,dp=t=>{var e,r=!((e=t.instance.persistence)==null||!e.get_property(za)),s=t.instance.config.capture_dead_clicks;return wt(s)?s:!!ge(s)||r};class No{get lazyLoadedDeadClicksAutocapture(){return this.Et}constructor(e,r,s){this.instance=e,this.isEnabled=r,this.onCapture=s,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[za]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.Mt(()=>{this.Pt()}):this.stop()}Mt(e){var r,s;(r=D.__PosthogExtensions__)!=null&&r.initDeadClicksAutocapture?e():(s=D.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this.instance,"dead-clicks-autocapture",i=>{i?si.error("failed to load script",i):e()})}Pt(){var e;if($){if(!this.Et&&(e=D.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var r=ge(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};r.__onCapture=this.onCapture,this.Et=D.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,r),this.Et.start($),si.info("starting...")}}else si.error("`document` not found. Cannot start.")}stop(){this.Et&&(this.Et.stop(),this.Et=void 0,si.info("stopping..."))}}var hn=be("[SegmentIntegration]"),su="posthog-js";function iu(t,e){var{organization:r,projectId:s,prefix:i,severityAllowList:n=["error"],sendExceptionsToPostHog:a=!0}=e===void 0?{}:e;return o=>{var l,u,d,p,f;if(n!=="*"&&!n.includes(o.level)||!t.__loaded)return o;o.tags||(o.tags={});var h=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());o.tags["PostHog Person URL"]=h,t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var v,g=((l=o.exception)==null?void 0:l.values)||[],m=g.map(E=>j({},E,{stacktrace:E.stacktrace?j({},E.stacktrace,{type:"raw",frames:(E.stacktrace.frames||[]).map(x=>j({},x,{platform:"web:javascript"}))}):void 0})),y={$exception_message:((u=g[0])==null?void 0:u.value)||o.message,$exception_type:(d=g[0])==null?void 0:d.type,$exception_level:o.level,$exception_list:m,$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:((p=g[0])==null?void 0:p.value)||o.message,$sentry_exception_type:(f=g[0])==null?void 0:f.type,$sentry_tags:o.tags};return r&&s&&(y.$sentry_url=(i||"https://sentry.io/organizations/")+r+"/issues/?project="+s+"&query="+o.event_id),a&&((v=t.exceptions)==null||v.sendExceptionEvent(y)),o}}class hp{constructor(e,r,s,i,n,a){this.name=su,this.setupOnce=function(o){o(iu(e,{organization:r,projectId:s,prefix:i,severityAllowList:n,sendExceptionsToPostHog:a==null||a}))}}}class $o{constructor(e){this.Rt=(r,s,i)=>{i&&(i.noSessionId||i.activityTimeout||i.sessionPastMaximumLength||i.crossTabAdoption)&&(M.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:r,changeReason:i}),this.Ot=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.Lt()}Lt(){var e;this.Ft=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.Rt)}destroy(){var e;(e=this.Ft)==null||e.call(this),this.Ft=void 0}doPageView(e,r){var s,i=this.At(e,r);return this.Ot={pathname:(s=_==null?void 0:_.location.pathname)!==null&&s!==void 0?s:"",pageViewId:r,timestamp:e},this._instance.scrollManager.resetContext(),i}doPageLeave(e){var r;return this.At(e,(r=this.Ot)==null?void 0:r.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.Ot)==null?void 0:e.pageViewId}}At(e,r){var s=this.Ot;if(!s)return{$pageview_id:r};var i={$pageview_id:r,$prev_pageview_id:s.pageViewId},n=this._instance.scrollManager.getContext();if(n&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:a,lastScrollY:o,maxScrollY:l,maxContentHeight:u,last
2ContentY:d,maxContentY:p}=n;if(!(O(a)||O(o)||O(l)||O(u)||O(d)||O(p))){a=Math.ceil(a),o=Math.ceil(o),l=Math.ceil(l),u=Math.ceil(u),d=Math.ceil(d),p=Math.ceil(p);var f=a>1?xt(o/a,0,1,M):1,h=a>1?xt(l/a,0,1,M):1,v=u>1?xt(d/u,0,1,M):1,g=u>1?xt(p/u,0,1,M):1;i=he(i,{$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:l,$prev_pageview_max_scroll_percentage:h,$prev_pageview_last_content:d,$prev_pageview_last_content_percentage:v,$prev_pageview_max_content:p,$prev_pageview_max_content_percentage:g})}}return s.pathname&&(i.$prev_pageview_pathname=s.pathname),s.timestamp&&(i.$prev_pageview_duration=(e.getTime()-s.timestamp.getTime())/1e3),i}}var ii=["flags","surveys"],pp={[Nc]:{exposure:"hidden"},[Es]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[Ss]:{exposure:"hidden"},[Jn]:{exposure:"event"},[Xn]:{exposure:"hidden"},[Zn]:{exposure:"event"},[ea]:{exposure:"hidden"},[ta]:{exposure:"event"},[ra]:{exposure:"event"},[za]:{exposure:"event"},[Ha]:{exposure:"hidden"},[sa]:{exposure:"event"},[hr]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[Lr]:{exposure:"hidden"},[Va]:{exposure:"event"},[$c]:{exposure:"event",shouldSkipFromEventProperties:t=>ze(t)},$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"},[dr]:{exposure:"derived",storageGroup:"flags",shouldSkipFromEventProperties:(t,e)=>e(),transformToEventProperties(t){if(!ge(t))return{};for(var e={},r=Object.keys(t),s=0;r.length>s;s++)e["$feature/"+r[s]]=t[r[s]];return e}},[pi]:{exposure:"event",storageGroup:"flags"},[ks]:{exposure:"hidden"},[ia]:{exposure:"hidden",storageGroup:"flags"},[fi]:{exposure:"event",storageGroup:"flags"},[na]:{exposure:"event",storageGroup:"flags",volatile:!0},[Ct]:{exposure:"event"},[Nr]:{exposure:"hidden"},[lr]:{exposure:"hidden"},[cr]:{exposure:"hidden"},[aa]:{exposure:"hidden",storageGroup:"surveys"},[Ba]:{exposure:"hidden",storageGroup:"surveys",volatile:!0},[oa]:{exposure:"event"},[Ts]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[js]:{exposure:"hidden"},[la]:{exposure:"hidden"},[ca]:{exposure:"hidden"},[Fs]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[ut]:{exposure:"hidden"},[ua]:{exposure:"hidden"},[da]:{exposure:"hidden"},[ha]:{exposure:"hidden"},[pa]:{exposure:"hidden"},[ji]:{exposure:"hidden"},[Ci]:{exposure:"hidden"},[Fc]:{exposure:"event"},[Lc]:{exposure:"event"},[Dc]:{exposure:"event"},[Uc]:{exposure:"event"},[Hc]:{exposure:"event"},[Vc]:{exposure:"event"},[Bc]:{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"},$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"}},fp=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],ir=t=>{var e=pp[t];if(e)return e;for(var[r,s]of fp)if(t.indexOf(r)===0)return s},Ni=t=>{var e=$==null?void 0:$.createElement("a");return O(e)?null:(e.href=t,e)},Ds=function(t,e){for(var r,s=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;s.length>i;i++){var n=s[i].split("=");if(n[0]===e){r=n;break}}if(!ee(r)||2>r.length)return"";var a=r[1];try{a=decodeURIComponent(a)}catch{M.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},Us=function(t,e,r){if(!t||!e||!e.length)return t;for(var s=t.split("#"),i=s[1],n=(s[0]||"").split("?"),a=n[1],o=n[0],l=(a||"").split("&"),u=[],d=0;l.length>d;d++){var p=l[d].split("=");
2ee(p)&&(e.includes(p[0])?u.push(p[0]+"="+r):u.push(l[d]))}var f=o;return a!=null&&(f+="?"+u.join("&")),i!=null&&(f+="#"+i),f},$i=function(t,e){var r=t.match(new RegExp(e+"=([^&]*)"));return r?r[1]:null},ni="https?://(.*)",rs=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],gp=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...rs],zs="<masked>",vp=["li_fat_id"];function nu(t,e,r){if(!$)return{};var s,i=e?[...rs,...r||[]]:[],n=au(Us($.URL,i,zs),t),a=(s={},de(vp,function(o){var l=bt.P(o);s[o]=l||null}),s);return he(a,n)}function au(t,e){var r=gp.concat(e||[]),s={};return de(r,function(i){var n=Ds(t,i);s[i]=n||null}),s}function ou(t){var e=function(n){return n?n.search(ni+"google.([^/?]*)")===0?"google":n.search(ni+"bing.com")===0?"bing":n.search(ni+"yahoo.com")===0?"yahoo":n.search(ni+"duckduckgo.com")===0?"duckduckgo":null:null}(t),r=e!="yahoo"?"q":"p",s={};if(!ze(e)){s.$search_engine=e;var i=$?Ds($.referrer,r):"";i.length&&(s.ph_keyword=i)}return s}function Fo(){return navigator.language||navigator.userLanguage}var Fi="$direct";function lu(){return($==null?void 0:$.referrer)||Fi}function cu(t,e,r){r===void 0&&(r=!1);var s=t?[...rs,...e||[]]:[],i=r?Zt(Pe==null?void 0:Pe.href):Pe==null?void 0:Pe.href,n=i==null?void 0:i.substring(0,1e3);return{r:lu().substring(0,1e3),u:n?Us(n,s,zs):void 0}}function uu(t,e){var r;e===void 0&&(e=!1);var{r:s,u:i}=t,n=e?Zt(i):i,a={$referrer:s,$referring_domain:s==null?void 0:s==Fi?Fi:(r=Ni(s))==null?void 0:r.host};if(n){a.$current_url=n;var o=Ni(n);a.$host=o==null?void 0:o.host,a.$pathname=o==null?void 0:o.pathname;var l=au(n);he(a,l)}if(s){var u=ou(s);he(a,u)}return a}function du(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function mp(){try{return new Date().getTimezoneOffset()}catch{return}}var _p={flags:Fs,surveys:Ba},yp=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],Ir="main";class pn{constructor(e,r,s){if(s===void 0&&(s=!0),this.$t={},this.Dt=!1,this.Nt=!1,this.Se=e,this.qt=s,this.props={},this.Bt=!1,this.jt=(n=>{var a="";return n.token&&(a=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+a+"_posthog"})(e),this.Ct=this.Ht(e),this.Nt=this.Ut(e),this.load(),e.debug&&M.info("Persistence loaded",e.persistence,j({},this.props)),this.update_config(e,e,r),this.save(),_){var i=()=>this.flush();xe(_,"beforeunload",i,{capture:!1}),xe(_,"pagehide",i,{capture:!1})}}zt(){var e,r=(e=this.Se)==null?void 0:e.persistence_save_debounce_ms;return He(r)&&r>0?r:0}isDisabled(){return!!this.Vt}Ht(e){yp.indexOf(e.persistence.toLowerCase())===-1&&(M.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var r,s=function(a,o){a===void 0&&(a=[]),o===void 0&&(o=!1);var l=[...Yh,...a];return j({},ue,{F(u){try{var d={};try{d=bt.F(u)||{}}catch{}var p,f=JSON.parse(ue.P(u)||"{}");if(o){var h={};for(var v in d){var g=d[v];ze(g)||g===""||(h[v]=g)}p=he(f,h)}else p=he(d,f);return ue.q(u,p),p}catch{}return null},q(u,d,p,f,h,v){var g=ue.q(u,d,void 0,void 0,v);try{var m={};l.forEach(y=>{d[y]&&(m[y]=d[y])}),Object.keys(m).length&&bt.q(u,m,p,f,h,v)}catch(y){ue.D(y)}return g},A(u,d){try{_==null||_.localStorage.removeItem(u),bt.A(u,d)}catch(p){ue.D(p)}}})}(e.cookie_persisted_properties||[],e.__preview_cookie_wins_on_conflict||!1),i=!1,n=e.persistence.toLowerCase();return n==="localstorage"&&ue.N()?(r=ue,i=!0):n==="localstorage+cookie"&&s.N()?(r=s,i=!0):n==="sessionstorage"&&Oe.N()?r=Oe:n==="memory"?r=Jh:n==="cookie"?r=bt:s.N()?(r=s,i=!0):r=bt,this.Dt=i,r}Wt(e){return this.jt+"__"+e}Ut(e){return this.Dt&&!!e.split_storage}Gt(e){var r=e??this.Se.feature_flag_cache_ttl_ms;if(!r||0>=r)return!1;var s=this.props[Fs];return!s||typeof s!="number"||Date.now()-s>r}properties(){var e={};return de(this.props,(r,s)=>{var i=ir(s);if((i==null?void 0:i.exposure)==="derived"){if(i.shouldSkipFromEventProperties!=null&&i.shouldSkipFromEventProperties(r,s===dr?()=>this.Gt():()=>!1))return;i.transformToEventProperties&&he(e,i.transformToEventProperties(r))}else if(!i||i.exposure==="event"){if(i!=null&&i.shouldSkipFromEventProperties!=null&&i.shouldSkipFromEventProperties(r,()=>!1))return;e[s]=r}}),e}load(){if(!this.Vt){var e=this.Ct.F(this.jt);e&&(this.props=he({},e)),this.Nt&&this.Zt()}}Zt(){for(var e of ii){var r=ue.F(this.Wt(e));if(r&&!Jt(r)){var s=this.Qt(e);s.persisted=!0,this.Jt(e)||(s.fingerprint=this.Yt(r,e)),this.Kt(e,r)||he(this.props,r)}}}Jt(e){return Object.keys(this.props).some(r=>{var s;return((s=ir(r))==null?void 0:s.storageGroup)===e})}Kt(e,r){var s=_p[e];if(!s)return!1;var i=r[s],n=this.props[s];return He(i)&&He(n)&&n>i}refreshKey(e){var r;if(!this.Vt){var s=this.Nt?(r=ir(e))==null?void 0:r.storageGroup:void 0,i=s?ue.F(this.Wt(s)):this.Ct.F(this.jt);if(i&&e in i)this.Xt(e,i[e]);else{if(s){var n=this.Ct.F(this.jt);if(n&&e in n)return void this.Xt(e,n[e])}this.er(e)}}}save(){if(!this.Vt){var e=this.zt();e>0?O(this.tr)&&(this.tr=setTimeout(()=>{this.tr=void 0,this.rr()},e)):this.rr()}}flush(){O(this.tr)||(clearTimeout(this.tr),this.tr=void 0,this.rr())}rr(){this.Vt||(this.Nt?this.ir():this.nr(this.Ct,this.jt,this.props,Ir))}ir(){var{main:e,groups:r}=this.sr();for(var s of(this.nr(this.Ct,this.jt,e,Ir),ii)){var i,n=r[s];(!Jt(n)||(i=this.$t[s])!=null&&i.persisted)&&this.nr(ue,this.Wt(s),n,s)}}sr(){var e={},r={};for(var s of ii)r[s]={};return de(this.props,(i,n)=>{var a,o=(a=ir(n))==null?void 0:a.storageGroup;o?r[o][n]=i:e[n]=i}),{main:e,groups:r}}Yt(e,r){if(r===Ir)return JSON.stringify(e)+"|"+this.ar+"|"+this.lr+"|"+this.ur;var s={};return de(e,(i,n)=>{var a;s[n]=(a=ir(n))!=null&&a.volatile?"__volatile__":i}),JSON.stringify(s)}nr(e,r,s,i){var n=this.Qt(i);if(i===Ir||n.dirty||O(n.fingerprint)){var a;try{if((a=this.Yt(s,i))===n.fingerprint)return void(n.dirty=!1)}catch{a=void 0}
2e.q(r,s,this.ar,this.lr,this.ur,this.Se.debug)?(n.dirty=!1,i!==Ir&&(n.persisted=!0),O(a)||(n.fingerprint=a)):this.Se.debug&&M.warn('failed to persist storage entry "'+r+'"; will retry on next save')}}remove(e){var{keepGroupEntries:r=!1}=e===void 0?{}:e;if(O(this.tr)||(clearTimeout(this.tr),this.tr=void 0),this.Ct.A(this.jt,!1),this.Ct.A(this.jt,!0),!r&&this.qt)for(var s of ii)ue.A(this.Wt(s));r?delete this.$t[Ir]:this.$t={}}clear(){this.remove(),this.props={}}register_once(e,r,s){if(ge(e)){O(r)&&(r="None"),this.ar=O(s)?this.hr:s;var i=!1;if(de(e,(n,a)=>{this.props.hasOwnProperty(a)&&this.props[a]!==r||(this.Xt(a,n),i=!0)}),i)return this.save(),!0}return!1}register(e,r){if(ge(e)){this.ar=O(r)?this.hr:r;var s=!1;if(de(e,(i,n)=>{e.hasOwnProperty(n)&&this.props[n]!==i&&(this.Xt(n,i),s=!0)}),s)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.er(e),this.save())}update_campaign_params(){if(!this.Bt){var e=nu(this.Se.custom_campaign_params,this.Se.mask_personal_data_properties,this.Se.custom_personal_data_properties);Jt(qa(e))||this.register(e),this.Bt=!0}}update_search_keyword(){var e;this.register((e=$==null?void 0:$.referrer)?ou(e):{})}update_referrer_info(){var e;this.register_once({$referrer:lu(),$referring_domain:$!=null&&$.referrer&&((e=Ni($.referrer))==null?void 0:e.host)||Fi},void 0)}set_initial_person_info(){this.props[ha]||this.props[pa]||this.register_once({[ji]:cu(this.Se.mask_personal_data_properties,this.Se.custom_personal_data_properties,this.Se.disable_capture_url_hashes)},void 0)}get_initial_props(){var e={};de([pa,ha],i=>{var n=this.props[i];n&&de(n,function(a,o){e["$initial_"+Bn(o)]=a})});var r=this.props[ji];if(r){var s=function(i,n){n===void 0&&(n=!1);var a=uu(i,n),o={};return de(a,function(l,u){o["$initial_"+Bn(u)]=l}),o}(r,this.Se.disable_capture_url_hashes);he(e,s)}return e}safe_merge(e){return de(this.props,function(r,s){s in e||(e[s]=r)}),e}update_config(e,r,s){this.hr=this.ar=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!s),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie);var i=e.persistence!==r.persistence||!((l,u)=>{if(l.length!==u.length)return!1;var d=[...l].sort(),p=[...u].sort();return d.every((f,h)=>f===p[h])})(e.cookie_persisted_properties||[],r.cookie_persisted_properties||[]),n=i?this.Ht(e):this.Ct,a=this.Ut(e);if(i||a!==this.Nt){var o=this.props;this.clear(),this.Ct=n,this.Nt=a,this.props=o,this.save()}}set_disabled(e){this.Vt=e,this.Vt?this.remove():this.save()}set_cross_subdomain(e){e!==this.lr&&(this.lr=e,this.remove({keepGroupEntries:!0}),this.save())}set_secure(e){e!==this.ur&&(this.ur=e,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(e,r){var s=this.props[Ss]||{};s[e]=r,this.Xt(Ss,s),this.save()}remove_event_timer(e){var r=this.props[Ss]||{},s=r[e];return O(s)||(delete r[e],this.Xt(Ss,r),this.save()),s}get_property(e){return this.props[e]}set_property(e,r){this.Xt(e,r),this.save()}Xt(e,r){var s;this.props[e]=r,(s=ir(e))!=null&&s.volatile||this.dr(e)}er(e){delete this.props[e],this.dr(e)}dr(e){var r,s=(r=ir(e))==null?void 0:r.storageGroup;s&&(this.Qt(s).dirty=!0)}Qt(e){return this.$t[e]||(this.$t[e]={})}}var hs={Activation:"events",Cancellation:"cancelEvents"},fn={Popover:"popover",API:"api",Widget:"widget",ExternalSurvey:"external_survey"},bp={Once:"once",Recurring:"recurring",Always:"always"},Ft={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent",ABANDONED:"survey abandoned"},gn={SURVEY_ID:"$survey_id",SURVEY_NAME:"$survey_name",SURVEY_RESPONSE:"$survey_response",SURVEY_ITERATION:"$survey_iteration",SURVEY_ITERATION_START_DATE:"$survey_iteration_start_date",SURVEY_PARTIALLY_COMPLETED:"$survey_partially_completed",SURVEY_SUBMISSION_ID:"$survey_submission_id",SURVEY_QUESTIONS:"$survey_questions",SURVEY_COMPLETED:"$survey_completed",PRODUCT_TOUR_ID:"$product_tour_id",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date",SURVEY_LANGUAGE:"$survey_language"},_a={Popover:"popover",Inline:"inline"},xp={SHOWN:"product tour shown",DISMISSED:"product tour dismissed",COMPLETED:"product tour completed",STEP_SHOWN:"product tour step shown",STEP_COMPLETED:"product tour step completed",BUTTON_CLICKED:"product tour button clicked",STEP_SELECTOR_FAILED:"product tour step selector failed",BANNER_CONTAINER_SELECTOR_FAILED:"product tour banner container selector failed",BANNER_ACTION_CLICKED:"product tour banner action clicked"},Lo={TOUR_ID:"$product_tour_id",TOUR_NAME:"$product_tour_name",TOUR_ITERATION:"$product_tour_iteration",TOUR_RENDER_REASON:"$product_tour_render_reason",TOUR_STEP_ID:"$product_tour_step_id",TOUR_STEP_ORDER:"$product_tour_step_order",TOUR_STEP_TYPE:"$product_tour_step_type",TOUR_DISMISS_REASON:"$product_tour_dismiss_reason",TOUR_BUTTON_TEXT:"$product_tour_button_text",TOUR_BUTTON_ACTION:"$product_tour_button_action",TOUR_BUTTON_LINK:"$product_tour_button_link",TOUR_BUTTON_TOUR_ID:"$product_tour_button_tour_id",TOUR_STEPS_COUNT:"$product_tour_steps_count",TOUR_STEP_SELECTOR:"$product_tour_step_selector",TOUR_STEP_SELECTOR_FOUND:"$product_tour_step_selector_found",TOUR_STEP_ELEMENT_TAG:"$product_tour_step_element_tag",TOUR_STEP_ELEMENT_ID:"$product_tour_step_element_id",TOUR_STEP_ELEMENT_CLASSES:"$product_tour_step_element_classes",TOUR_STEP_ELEMENT_TEXT:"$product_tour_step_element_text",TOUR_ERROR:"$product_tour_error",TOUR_MATCHES_COUNT:"$product_tour_matches_count",TOUR_FAILURE_PHASE:"$product_tour_failure_phase",TOUR_WAITED_FOR_ELEMENT:"$product_tour_waited_for_element",TOUR_WAIT_DURATION_MS:"$product_tour_wait_duration_ms",TOUR_BANNER_SELECTOR:"$product_tour_banner_selector",TOUR_LINKED_SURVEY_ID:"$product_tour_linked_survey_id",USE_MANUAL_SELECTOR:"$use_manual_selector",INFERENCE_DATA_PRESENT:"$inference_data_present",TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},Do=be("[RateLimiter]");class wp{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=r=>{var s=r.text;
2if(s&&s.length)try{(JSON.parse(s).quota_limited||[]).forEach(i=>{Do.info((i||"events")+" is quota limited."),this.serverLimits[i]=new Date().getTime()+6e4})}catch(i){return void Do.warn('could not rate limit - continuing. Error: "'+(i==null?void 0:i.message)+'"',{text:s})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var r,s,i;e===void 0&&(e=!1);var{captureEventsBurstLimit:n,captureEventsPerSecond:a}=this,o=new Date().getTime(),l=(r=(s=this.instance.persistence)==null?void 0:s.get_property(da))!==null&&r!==void 0?r:{tokens:n,last:o};l.tokens+=(o-l.last)/1e3*a,l.last=o,l.tokens>n&&(l.tokens=n);var u=1>l.tokens;return u||e||(l.tokens=Math.max(0,l.tokens-1)),!u||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+a+" events per second and "+n+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=u,(i=this.instance.persistence)==null||i.set_property(da,l),{isRateLimited:u,remainingTokens:l.tokens}}isServerRateLimited(e){var r=this.serverLimits[e||"events"]||!1;return r!==!1&&new Date().getTime()<r}}var ps=be("[RemoteConfig]");class hu{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=D._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}cr(e){var r,s;(r=D.__PosthogExtensions__)!=null&&r.loadExternalDependency?(s=D.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):e()}vr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(r){e(r.json)}})}load(){try{if(this.remoteConfig)return ps.info("Using preloaded remote config",this.remoteConfig),this.pr(this.remoteConfig),void this.gr();if(this._instance.mr())return void ps.warn("Remote config is disabled. Falling back to local config.");this.cr(e=>{if(!e)return ps.info("No config found after loading remote JS config. Falling back to JSON."),void this.vr(r=>{this.pr(r),this.gr()});this.pr(e),this.gr()})}catch(e){ps.error("Error loading remote config",e)}}stop(){this.yr&&(clearInterval(this.yr),this.yr=void 0)}refresh(){!this._instance.mr()&&$&&$.visibilityState!=="hidden"&&this._instance.reloadFeatureFlags()}gr(){var e;if(!this.yr){var r=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;r!==0&&(this.yr=setInterval(()=>{this.refresh()},r))}}pr(e){var r;e||ps.error("Failed to fetch remote config from PostHog."),this._instance.pr(e??{}),(e==null?void 0:e.hasFeatureFlags)!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(r=this._instance.featureFlags)==null||r.ensureFlagsLoaded())}}var yt={GZipJS:"gzip-js",Base64:"base64"},rt=Uint8Array,qe=Uint16Array,ss=Uint32Array,Qa=new rt([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]),Ya=new rt([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]),Uo=new rt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pu=function(t,e){for(var r=new qe(31),s=0;31>s;++s)r[s]=e+=1<<t[s-1];var i=new ss(r[30]);for(s=1;30>s;++s)for(var n=r[s];r[s+1]>n;++n)i[n]=n-r[s]<<5|s;return[r,i]},fu=pu(Qa,2),ya=fu[1];fu[0][28]=258,ya[258]=28;for(var zo=pu(Ya,0)[1],gu=new qe(32768),ve=0;32768>ve;++ve){var Or=(43690&ve)>>>1|(21845&ve)<<1;gu[ve]=((65280&(Or=(61680&(Or=(52428&Or)>>>2|(13107&Or)<<2))>>>4|(3855&Or)<<4))>>>8|(255&Or)<<8)>>>1}var Is=function(t,e,r){for(var s=t.length,i=0,n=new qe(e);s>i;++i)++n[t[i]-1];var a,o=new qe(e);for(i=0;e>i;++i)o[i]=o[i-1]+n[i-1]<<1;for(a=new qe(s),i=0;s>i;++i)a[i]=gu[o[t[i]-1]++]>>>15-t[i];return a},Er=new rt(288);for(ve=0;144>ve;++ve)Er[ve]=8;for(ve=144;256>ve;++ve)Er[ve]=9;for(ve=256;280>ve;++ve)Er[ve]=7;for(ve=280;288>ve;++ve)Er[ve]=8;var Li=new rt(32);for(ve=0;32>ve;++ve)Li[ve]=5;var Ep=Is(Er,9),Sp=Is(Li,5),vu=function(t){return(t/8>>
vendor: 4,922 bytes, line 2
20)+(7&t&&1)},mu=function(t,e,r){(r==null||r>t.length)&&(r=t.length);var s=new(t instanceof qe?qe:t instanceof ss?ss:rt)(r-e);return s.set(t.subarray(e,r)),s},kt=function(t,e,r){var s=e/8>>0;t[s]|=r<<=7&e,t[s+1]|=r>>>8},fs=function(t,e,r){var s=e/8>>0;t[s]|=r<<=7&e,t[s+1]|=r>>>8,t[s+2]|=r>>>16},vn=function(t,e){for(var r=[],s=0;t.length>s;++s)t[s]&&r.push({s,f:t[s]});var i=r.length,n=r.slice();if(!i)return[new rt(0),0];if(i==1){var a=new rt(r[0].s+1);return a[r[0].s]=1,[a,1]}r.sort(function(I,L){return I.f-L.f}),r.push({s:-1,f:25001});var o=r[0],l=r[1],u=0,d=1,p=2;for(r[0]={s:-1,f:o.f+l.f,l:o,r:l};d!=i-1;)o=r[r[p].f>r[u].f?u++:p++],l=r[u!=d&&r[p].f>r[u].f?u++:p++],r[d++]={s:-1,f:o.f+l.f,l:o,r:l};var f=n[0].s;for(s=1;i>s;++s)n[s].s>f&&(f=n[s].s);var h=new qe(f+1),v=ba(r[d-1],h,0);if(v>e){s=0;var g=0,m=v-e,y=1<<m;for(n.sort(function(I,L){return h[L.s]-h[I.s]||I.f-L.f});i>s;++s){var E=n[s].s;if(e>=h[E])break;g+=y-(1<<v-h[E]),h[E]=e}for(g>>>=m;g>0;){var x=n[s].s;e>h[x]?g-=1<<e-h[x]++-1:++s}for(;s>=0&&g;--s){var k=n[s].s;h[k]==e&&(--h[k],++g)}v=e}return[new rt(h),v]},ba=function(t,e,r){return t.s==-1?Math.max(ba(t.l,e,r+1),ba(t.r,e,r+1)):e[t.s]=r},Ho=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new qe(++e),s=0,i=t[0],n=1,a=function(l){r[s++]=l},o=1;e>=o;++o)if(t[o]==i&&o!=e)++n;else{if(!i&&n>2){for(;n>138;n-=138)a(32754);n>2&&(a(n>10?n-11<<5|28690:n-3<<5|12305),n=0)}else if(n>3){for(a(i),--n;n>6;n-=6)a(8304);n>2&&(a(n-3<<5|8208),n=0)}for(;n--;)a(i);n=1,i=t[o]}return[r.subarray(0,s),e]},gs=function(t,e){for(var r=0,s=0;e.length>s;++s)r+=t[s]*e[s];return r},xa=function(t,e,r){var s=r.length,i=vu(e+2);t[i]=255&s,t[i+1]=s>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var n=0;s>n;++n)t[i+n+4]=r[n];return 8*(i+4+s)},Vo=function(t,e,r,s,i,n,a,o,l,u,d){kt(e,d++,r),++i[256];for(var p=vn(i,15),f=p[0],h=p[1],v=vn(n,15),g=v[0],m=v[1],y=Ho(f),E=y[0],x=y[1],k=Ho(g),I=k[0],L=k[1],P=new qe(19),A=0;E.length>A;++A)P[31&E[A]]++;for(A=0;I.length>A;++A)P[31&I[A]]++;for(var T=vn(P,7),N=T[0],F=T[1],R=19;R>4&&!N[Uo[R-1]];--R);var q,z,re,Z,Y=u+5<<3,me=gs(i,Er)+gs(n,Li)+a,U=gs(i,f)+gs(n,g)+a+14+3*R+gs(P,N)+(2*P[16]+3*P[17]+7*P[18]);if(me>=Y&&U>=Y)return xa(e,d,t.subarray(l,l+u));if(kt(e,d,1+(me>U)),d+=2,me>U){q=Is(f,h),z=f,re=Is(g,m),Z=g;var oe=Is(N,F);for(kt(e,d,x-257),kt(e,d+5,L-1),kt(e,d+10,R-4),d+=14,A=0;R>A;++A)kt(e,d+3*A,N[Uo[A]]);d+=3*R;for(var se=[E,I],J=0;2>J;++J){var G=se[J];for(A=0;G.length>A;++A)kt(e,d,oe[te=31&G[A]]),d+=N[te],te>15&&(kt(e,d,G[A]>>>5&127),d+=G[A]>>>12)}}else q=Ep,z=Er,re=Sp,Z=Li;for(A=0;o>A;++A)if(s[A]>255){var te;fs(e,d,q[257+(te=s[A]>>>18&31)]),d+=z[te+257],te>7&&(kt(e,d,s[A]>>>23&31),d+=Qa[te]);var ae=31&s[A];fs(e,d,re[ae]),d+=Z[ae],ae>3&&(fs(e,d,s[A]>>>5&8191),d+=Ya[ae])}else fs(e,d,q[s[A]]),d+=z[s[A]];return fs(e,d,q[256]),d+z[256]},kp=new ss([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Tp=function(){for(var t=new ss(256),e=0;256>e;++e){for(var r=e,s=9;--s;)r=(1&r&&3988292384)^r>>>1;t[e]=r}return t}(),mn=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8};function Pp(t,e){e===void 0&&(e={});var r=function(){var p=4294967295;return{p(f){for(var h=p,v=0;f.length>v;++v)h=Tp[255&h^f[v]]^h>>>8;p=h},d(){return 4294967295^p}}}(),s=t.length;r.p(t);var i,n,a,o,l,u=(o=10+((i=e).filename&&i.filename.length+1||0),l=8,function(p,f,h,v,g,m){var y=p.length,E=new rt(v+y+5*(1+Math.floor(y/7e3))+g),x=E.subarray(v,E.length-g),k=0;if(!f||8>y)for(var I=0;y>=I;I+=65535){var L=I+65535;y>L?k=xa(x,k,p.subarray(I,L)):(x[I]=!0,k=xa(x,k,p.subarray(I,y)))}else{for(var P=kp[f-1],A=P>>>13,T=8191&P,N=(1<<h)-1,F=new qe(32768),R=new qe(N+1),q=Math.ceil(h/3),z=2*q,re=function(it){return(p[it]^p[it+1]<<q^p[it+2]<<z)&N},Z=new ss(25e3),Y=new qe(288),me=new qe(32),U=0,oe=0,se=(I=0,0),J=0,G=0;y>I;++I){var te=re(I),ae=32767&I,Le=R[te];if(F[ae]=Le,R[te]=ae,I>=J){var ne=y-I;if((U>7e3||se>24576)&&ne>423){k=Vo(p,x,0,Z,Y,me,oe,se,G,I-G,k),se=U=oe=0,G=I;for(var je=0;286>je;++je)Y[je]=0;for(je=0;30>je;++je)me[je]=0}var Me=2,Et=0,tr=T,Ye=ae-Le&32767;if(ne>2&&te==re(I-Ye))for(var Ks=Math.min(A,ne)-1,Gi=Math.min(32767,I),Wi=Math.min(258,ne);Gi>=Ye&&--tr&&ae!=Le;){if(p[I+Me]==p[I+Me-Ye]){for(var st=0;Wi>st&&p[I+st]==p[I+st-Ye];++st);if(st>Me){if(Me=st,Et=Ye,st>Ks)break;var Ki=Math.min(Ye,st-2),Sr=0;for(je=0;Ki>je;++je){var ns=I-Ye+je+32768&32767,as=ns-F[ns]+32768&32767;as>Sr&&(Sr=as,Le=ns)}}}Ye+=(ae=Le)-(Le=F[ae])+32768&32767}if(Et){Z[se++]=268435456|ya[Me]<<18|zo[Et];var Dt=31&ya[Me],os=31&zo[Et];oe+=Qa[Dt]+Ya[os],++Y[257+Dt],++me[os],J=I+Me,++U}else Z[se++]=p[I],++Y[p[I]]}}k=Vo(p,x,!0,Z,Y,me,oe,se,G,I-G,k)}return mu(E,0,v+vu(k)+g)}(n=t,(a=e).level==null?6:a.level,a.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(n.length)))):12+a.mem,o,l)),d=u.length;return function(p,f){var h=f.filename;if(p[0]=31,p[1]=139,p[2]=8,p[8]=2>f.level?4:f.level==9?2:0,p[9]=3,f.mtime!=0&&mn(p,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),h){p[3]=8;for(var v=0;h.length>=v;
2++v)p[v+10]=h.charCodeAt(v)}}(u,e),mn(u,d-8,r.d()),mn(u,d-4,s),u}var Ap=!!zn||!!Un,_u="text/plain",vi=!1,jp=(t,e)=>{var[r,s]=t.split("#"),[i,n]=r.split("?");if(!n)return t;var a=n.split("&").filter(o=>o.split("=")[0]!==e).join("&");return i+(a?"?"+a:"")+(s?"#"+s:"")},yu=function(t,e,r){var s;r===void 0&&(r=!0);var[i,n]=t.split("?"),a=j({},e),o=(s=n==null?void 0:n.split("&").map(u=>{var d,[p,f]=u.split("="),h=r&&(d=a[p])!==null&&d!==void 0?d:f;return delete a[p],p+"="+h}))!==null&&s!==void 0?s:[],l=function(u,d){var p,f;d===void 0&&(d="&");var h=[];return de(u,function(v,g){O(v)||O(g)||g==="undefined"||(p=encodeURIComponent((m=>m instanceof File)(v)?v.name:v.toString()),f=encodeURIComponent(g),h[h.length]=f+"="+p)}),h.join(d)}(a);return l&&o.push(l),i+"?"+o.join("&")},Dr=(t,e)=>JSON.stringify(t,(r,s)=>typeof s=="bigint"?s.toString():s,e),Bo=t=>{if(t.xt)return t.xt;var{data:e,compression:r}=t;if(e){if(r===yt.GZipJS){var s=Pp(function(o,l){var u=o.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(o);for(var d=new rt(o.length+(o.length>>>1)),p=0,f=function(m){d[p++]=m},h=0;u>h;++h){if(p+5>d.length){var v=new rt(p+8+(u-h<<1));v.set(d),d=v}var g=o.charCodeAt(h);128>g?f(g):2048>g?(f(192|g>>>6),f(128|63&g)):g>55295&&57344>g?(f(240|(g=65536+(1047552&g)|1023&o.charCodeAt(++h))>>>18),f(128|g>>>12&63),f(128|g>>>6&63),f(128|63&g)):(f(224|g>>>12),f(128|g>>>6&63),f(128|63&g))}return mu(d,0,p)}(Dr(e)),{mtime:0});return{contentType:_u,body:s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength),estimatedSize:s.byteLength}}if(r===yt.Base64){var i=function(o){return o&&btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(l,u)=>String.fromCharCode(parseInt(u,16))))}(Dr(e)),n=(o=>"data="+encodeURIComponent(typeof o=="string"?o:Dr(o)))(i);return{contentType:"application/x-www-form-urlencoded",body:n,estimatedSize:new Blob([n]).size}}var a=Dr(e);return{contentType:"application/json",body:a,estimatedSize:new Blob([a]).size}}},_n=t=>{var e,r,s,i=Bo(t);return!i||(r=t.compression,s=Ds(t.url,"compression"),r!==vo.GZipJS&&s!==vo.GZipJS&&s!=="gzip")||((e=i.body)instanceof ArrayBuffer?Hn(new Uint8Array(e)):ArrayBuffer.isView(e)&&Hn(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)))?{url:t.url,encodedBody:i}:(vi=!0,{url:jp(t.url,"compression"),encodedBody:Bo(j({},t,{compression:void 0,xt:void 0}))})},Cp=function(){var t=Ce(function*(e){var r=Dr(e.data),s=yield function(n,a,o){return Vn.apply(this,arguments)}(r,ke.DEBUG,{rethrow:!0});if(!s)return e;var i=yield s.arrayBuffer();return j({},e,{xt:{contentType:_u,body:i,estimatedSize:i.byteLength}})});return function(e){return t.apply(this,arguments)}}(),qo=(t,e)=>yu(t,{_:new Date().getTime().toString(),ver:ke.JS_SDK_VERSION,compression:e}),mi=[];Un&&mi.push({transport:"fetch",method(t){var e,{url:r,encodedBody:s}=_n(t),{contentType:i,body:n,estimatedSize:a}=s??{},o=new Headers;de(t.headers,function(p,f){o.append(f,p)}),i&&o.append("Content-Type",i);var l=null,u=null;if(po){var d=new po;l={signal:d.signal,timeout:setTimeout(()=>{var p,f;p=t.timeout,(f=new Error("PostHog request timed out"+(p?" after "+p+"ms":""))).name="AbortError",d.abort(u=f)},t.timeout)}}Un(r,j({method:(t==null?void 0:t.method)||"GET",headers:o,keepalive:t.method==="POST"&&52428.8>(a||0),body:n,signal:(e=l)==null?void 0:e.signal},t.fetchOptions)).then(p=>p.text().then(f=>{var h={statusCode:p.status,text:f};if(p.status===200)try{h.json=JSON.parse(f)}catch(v){M.error(v)}t.callback==null||t.callback(h)})).catch(p=>{p===u?M.warn(p):M.error(p),t.callback==null||t.callback({statusCode:0,error:p})}).finally(()=>l?clearTimeout(l.timeout):null)}}),zn&&mi.push({transport:"XHR",method(t){var e=new zn,{url:r,encodedBody:s}=_n(t);e.open(t.method||"GET",r,!0);var{contentType:i,body:n}=s??{};de(t.headers,function(a,o){e.setRequestHeader(o,a)}),i&&e.setRequestHeader("Content-Type",i),t.timeout&&(e.timeout=t.timeout),e.onreadystatechange=()=>{if(e.readyState===4){var a={statusCode:e.status,text:e.responseText};if(e.status===200)try{a.json=JSON.parse(e.responseText)}catch{}t.callback==null||t.callback(a)}},e.send(n)}}),We!=null&&We.sendBeacon&&mi.push({transport:"sendBeacon",method(t){try{var{url:e,encodedBody:r}=_n(t),{contentType:s,body:i}=r??{};if(!i)return;var n=i instanceof Blob?i:new Blob([i],{type:s});We.sendBeacon(e,n)}catch{}}});var wa=3e3;
2class Ip{constructor(e,r){this.br=!0,this._r=[],this.wr=xt((r==null?void 0:r.flush_interval_ms)||wa,250,5e3,M.createLogger("flush interval"),wa),this.kr=e}enqueue(e){this._r.push(e),this.Sr||this.Cr()}unload(){this.Ir();var e=this._r.length>0?this.Tr():{},r=Object.values(e);[...r.filter(s=>s.url.indexOf("/e")===0),...r.filter(s=>s.url.indexOf("/e")!==0)].map(s=>{this.kr(j({},s,{transport:"sendBeacon"}))})}enable(){this.br=!1,this.Cr()}Cr(){var e=this;this.br||(this.Sr=setTimeout(()=>{if(this.Ir(),this._r.length>0){var r=this.Tr(),s=function(){var n=r[i],a=new Date().getTime();n.data&&ee(n.data)&&de(n.data,o=>{o.offset=Math.abs(o.timestamp-a),delete o.timestamp}),e.kr(n)};for(var i in r)s()}},this.wr))}Ir(){clearTimeout(this.Sr),this.Sr=void 0}Tr(){var e={};return de(this._r,r=>{var s,i=r,n=(i?i.batchKey:null)||i.url;O(e[n])&&(e[n]=j({},i,{data:[]})),(s=e[n].data)==null||s.push(i.data)}),this._r=[],e}}var Op=["retriesPerformedSoFar"];class Rp{constructor(e){this.Er=!1,this.Mr=3e3,this._r=[],this._instance=e,this._r=[],this.Pr=!0,!O(_)&&"onLine"in _.navigator&&(this.Pr=_.navigator.onLine,this.Rr=()=>{this.Pr=!0,this.Or()},this.Lr=()=>{this.Pr=!1},xe(_,"online",this.Rr),xe(_,"offline",this.Lr))}get length(){return this._r.length}retriableRequest(e){var{retriesPerformedSoFar:r}=e,s=rc(e,Op);jt(r)&&(s.url=yu(s.url,{retry_count:r})),this._instance._send_request(j({},s,{callback:i=>{if(i.statusCode!==200&&(400>i.statusCode||i.statusCode>=500)){if((i.statusCode===0?3:10)>(r??0))return void this.st(j({retriesPerformedSoFar:r},s));i.statusCode===0&&M.warn("Request failed before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped retrying after "+(r??0)+" retries.")}s.callback==null||s.callback(i)}}))}st(e){var r=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=r+1;var s=function(a){var o=3e3*Math.pow(2,a),l=o/2,u=Math.min(18e5,o),d=Math.random()-.5;return Math.ceil(u+d*(u-l))}(r),i=Date.now()+s;this._r.push({retryAt:i,requestOptions:e});var n="Enqueued failed request for retry in "+s;navigator.onLine||(n+=" (Browser is offline)"),M.warn(n),this.Er||(this.Er=!0,this.Fr())}Fr(){if(this.Ar&&clearTimeout(this.Ar),this._r.length===0)return this.Er=!1,void(this.Ar=void 0);this.Ar=setTimeout(()=>{this.Pr&&this._r.length>0&&this.Or(),this.Fr()},this.Mr)}Or(){var e=Date.now(),r=[],s=this._r.filter(n=>e>n.retryAt||(r.push(n),!1));if(this._r=r,s.length>0)for(var{requestOptions:i}of s)this.retriableRequest(i)}unload(){for(var{requestOptions:e}of(this.Ar&&(clearTimeout(this.Ar),this.Ar=void 0),this.Er=!1,O(_)||(this.Rr&&(_.removeEventListener("online",this.Rr),this.Rr=void 0),this.Lr&&(_.removeEventListener("offline",this.Lr),this.Lr=void 0)),this._r))try{this._instance._send_request(j({},e,{transport:"sendBeacon"}))}catch(r){M.error(r)}this._r=[]}}class Mp{constructor(e){this.$r=()=>{var r,s,i,n;this.Dr||(this.Dr={});var a=this.scrollElement(),o=this.scrollY(),l=a?Math.max(0,a.scrollHeight-a.clientHeight):0,u=o+((a==null?void 0:a.clientHeight)||0),d=(a==null?void 0:a.scrollHeight)||0;this.Dr.lastScrollY=Math.ceil(o),this.Dr.maxScrollY=Math.max(o,(r=this.Dr.maxScrollY)!==null&&r!==void 0?r:0),this.Dr.maxScrollHeight=Math.max(l,(s=this.Dr.maxScrollHeight)!==null&&s!==void 0?s:0),this.Dr.lastContentY=u,this.Dr.maxContentY=Math.max(u,(i=this.Dr.maxContentY)!==null&&i!==void 0?i:0),this.Dr.maxContentHeight=Math.max(d,(n=this.Dr.maxContentHeight)!==null&&n!==void 0?n:0)},this._instance=e}get Nr(){return this._instance.config.scroll_root_selector}getContext(){return this.Dr}resetContext(){var e=this.Dr;return setTimeout(this.$r,0),e}startMeasuringScrollPosition(){xe(_,"scroll",this.$r,{capture:!0}),xe(_,"scrollend",this.$r,{capture:!0}),xe(_,"resize",this.$r)}scrollElement(){if(!this.Nr)return _==null?void 0:_.document.documentElement;var e=ee(this.Nr)?this.Nr:[this.Nr];for(var r of e){var s=_==null?void 0:_.document.querySelector(r);if(s)return s}}qr(e){var r=e==="y"?"scrollTop":"scrollLeft";if(this.Nr){var s=this.scrollElement();return s&&s[r]||0}return _?e==="y"?_.scrollY||_.pageYOffset||_.document.documentElement.scrollTop||0:_.scrollX||_.pageXOffset||_.document.documentElement.scrollLeft||0:0}scrollY(){return this.qr("y")}scrollX(){return this.qr("x")}}var Np=t=>cu(t==null?void 0:t.config.mask_personal_data_properties,t==null?void 0:t.config.custom_personal_data_properties,t==null?void 0:t.config.disable_capture_url_hashes
2);class Go{constructor(e,r,s,i){this.Br=n=>{var a=this.jr();if(!a||a.sessionId!==n){var o={sessionId:n,props:this.Hr(this._instance)};this.Ur.register({[ua]:o})}},this._instance=e,this.zr=r,this.Ur=s,this.Hr=i||Np,this.zr.onSessionId(this.Br)}jr(){return this.Ur.props[ua]}getSetOnceProps(){var e,r=(e=this.jr())==null?void 0:e.props;return r?"r"in r?uu(r,this._instance.config.disable_capture_url_hashes):{$referring_domain:r.referringDomain,$pathname:r.initialPathName,utm_source:r.utm_source,utm_campaign:r.utm_campaign,utm_medium:r.utm_medium,utm_content:r.utm_content,utm_term:r.utm_term}:{}}getSessionProps(){var e={};return de(qa(this.getSetOnceProps()),(r,s)=>{s==="$current_url"&&(s="url"),e["$session_entry_"+Bn(s)]=r}),e}}class Ja{constructor(){this.Vr={}}on(e,r){return this.Vr[e]||(this.Vr[e]=[]),this.Vr[e].push(r),()=>{this.Vr[e]=this.Vr[e].filter(s=>s!==r)}}emit(e,r){for(var s of this.Vr[e]||[])s(r);for(var i of this.Vr["*"]||[])i(e,r)}}var vs=be("[SessionId]");class Wo{on(e,r){return this.Wr.on(e,r)}constructor(e,r,s){var i;if(this.Gr=null,this.Zr=[],this.Qr=void 0,this.Jr=!1,this.Wr=new Ja,this.Yr=(u,d)=>!(!jt(u)||!jt(d))&&Math.abs(u-d)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===$t)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Se=e.config,this.Ur=e.persistence,this.Kr=void 0,this.Xr=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.ei=r||Mt,this.ti=s||Mt;var n=this.Se.persistence_name||this.Se.token;if(this._sessionTimeoutMs=1e3*xt(this.Se.session_idle_timeout_seconds||1800,60,36e3,vs.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ri(),this.ii="ph_"+n+"_window_id",this.ni="ph_"+n+"_primary_window_exists",this.si()){var a=Oe.F(this.ii),o=Oe.F(this.ni);a&&!o?this.Kr=a:Oe.A(this.ii),Oe.q(this.ni,!0)}if((i=this.Se.bootstrap)!=null&&i.sessionID)try{var l=(u=>{var d=this.Se.bootstrap.sessionID.replace(/-/g,"");if(d.length!==32)throw new Error("Not a valid UUID");if(d[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(d.substring(0,12),16)})();this.oi(this.Se.bootstrap.sessionID,new Date().getTime(),l)}catch(u){vs.error("Invalid sessionID in bootstrap",u)}this.ai()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return O(this.Zr)&&(this.Zr=[]),this.Zr.push(e),this.Xr&&e(this.Xr,this.Kr),()=>{this.Zr=this.Zr.filter(r=>r!==e)}}si(){return this.Se.persistence!=="memory"&&!this.Ur.Vt&&Oe.N()}li(e){e!==this.Kr&&(this.Kr=e,this.si()&&Oe.q(this.ii,e))}ui(){return this.Kr?this.Kr:this.si()?Oe.F(this.ii):null}hi(e){var r=this.Gr;return!ze(r)&&!ze(e)&&5e3>Math.abs(e-r)}oi(e,r,s){var i=r!==this._sessionActivityTimestamp,n=!(e!==this.Xr||s!==this._sessionStartTimestamp);this._sessionStartTimestamp=s,this._sessionActivityTimestamp=r,this.Xr=e,n&&!i||n&&this.hi(r)||(this.Gr=r,this.Ur.register({[Lr]:[r,e,s]}))}di(){var e,r=(e=this.Se)==null?void 0:e.persistence_save_debounce_ms;return jt(r)&&r>0}ci(){this.di()?this.Ur.refreshKey(Lr):(this.Ur.flush(),this.Ur.load())}vi(){var e;if(!ze(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.Gr){this.ci();var[,r,s]=this.fi();r===this.Xr&&s===this._sessionStartTimestamp&&(this.Gr=this._sessionActivityTimestamp,this.Ur.register({[Lr]:[this._sessionActivityTimestamp,(e=this.Xr)!==null&&e!==void 0?e:null,this._sessionStartTimestamp]}),this.Ur.flush())}}pi(){var[e]=this.fi(),r=jt(e)?e:0,s=jt(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0;return Math.max(r,s)}gi(e){return this.ci(),this.Yr(e,this.pi())}fi(){var e=this.Ur.props[Lr];return ee(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Gr=null,clearTimeout(this.mi),this.mi=void 0,this.oi(null,null,null)}destroy(){this.Jr=!0,this.vi(),clearTimeout(this.mi),this.mi=void 0,this.Qr&&_&&(_.removeEventListener(Oi,this.Qr,{capture:!1}),this.Qr=void 0),this.Zr=[]}ai(){this.Qr=()=>{this.vi(),this.si()&&Oe.A(this.ni)},xe(_,Oi,this.Qr,{capture:!1})}
2checkAndGetSessionAndWindowId(e,r){if(e===void 0&&(e=!1),r===void 0&&(r=null),this.Se.cookieless_mode===$t)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var s=r||new Date().getTime(),[,i,n]=this.fi(),a=this.pi(),o=this.ui(),l=jt(n)&&Math.abs(s-n)>864e5,u=!1,d=!1,p=!i,f=i,h=!p&&!e&&this.Yr(s,a);h&&((h=this.gi(s))||vs.info("cross-tab refresh kept the session alive",{sessionId:i}),[,i,n]=this.fi()),p||h||l?(i=this.ei(),o=this.ti(),vs.info("new session ID generated",{sessionId:i,windowId:o,changeReason:{noSessionId:p,activityTimeout:h,sessionPastMaximumLength:l}}),n=s,u=!0):(o||(o=this.ti(),u=!0),(d=i!==f)&&(vs.info("adopted cross-tab session id",{sessionId:i,windowId:o}),u=!0));var v=jt(a)&&e&&!l?a:s,g=jt(n)?n:new Date().getTime();this.li(o),this.oi(i,v,g),e||this.ri();var m={noSessionId:p,activityTimeout:h,sessionPastMaximumLength:l,crossTabAdoption:d};return u&&this.Zr.forEach(y=>y(i,o,m)),{sessionId:i,windowId:o,sessionStartTimestamp:g,changeReason:u?m:void 0,lastActivityTimestamp:a}}ri(){this.Jr||(clearTimeout(this.mi),this.mi=setTimeout(()=>{if(!this.Jr)if(this.gi(new Date().getTime())){var e=this.Xr;this.resetSessionId(),this.Wr.emit("forcedIdleReset",{idleSessionId:e})}else this.ri()},1.1*this.sessionTimeoutMs))}}var bu=function(t,e){if(!t)return!1;var r=t.userAgent;if(r&&_o(r,e))return!0;try{var s=t==null?void 0:t.userAgentData;if(s!=null&&s.brands&&s.brands.some(i=>_o(i==null?void 0:i.brand,e)))return!0}catch{}return!!t.webdriver},Di=function(t,e){if(!function(r){try{new RegExp(r)}catch{return!1}return!0}(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function Ko(t,e,r){return Dr({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:r})}var xu={exact:(t,e)=>e.some(r=>t.some(s=>r===s)),is_not:(t,e)=>e.every(r=>t.every(s=>r!==s)),regex:(t,e)=>e.some(r=>t.some(s=>Di(r,s))),not_regex:(t,e)=>e.every(r=>t.every(s=>!Di(r,s))),icontains:(t,e)=>e.map(ai).some(r=>t.map(ai).some(s=>r.includes(s))),not_icontains:(t,e)=>e.map(ai).every(r=>t.map(ai).every(s=>!r.includes(s))),gt:(t,e)=>e.some(r=>{var s=parseFloat(r);return!isNaN(s)&&t.some(i=>s>parseFloat(i))}),lt:(t,e)=>e.some(r=>{var s=parseFloat(r);return!isNaN(s)&&t.some(i=>s<parseFloat(i))})},ai=t=>t.toLowerCase();function wu(t,e){return!t||Object.entries(t).every(r=>{var[s,i]=r,n=e==null?void 0:e[s];if(O(n)||ze(n))return!1;var a=[String(n)],o=xu[i.operator];return!!o&&o(i.values,a)})}var Ea="custom",Qo="i.posthog.com",$p=/^\/static\//;class Fp{constructor(e){this.yi={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"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,r=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return r||(r=this.apiHost.replace("."+Qo,".posthog.com")),r==="https://app.posthog.com"?"https://us.posthog.com":r}get region(){return this.yi[this.apiHost]||(this.yi[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":Ea),this.yi[this.apiHost]}bi(e){if($p.test(e)){var r=this.instance.config.asset_host;if(typeof r=="string")return r.trim().replace(/\/$/,"")||void 0}}endpointFor(e,r){if(r===void 0&&(r=""),r&&(r=r[0]==="/"?r:"/"+r),e==="ui")return this.uiHost+r;if(e==="flags")return this.flagsApiHost+r;if(e==="assets"){var s=this.bi(r);if(s)return""+s+r}if(this.region===Ea)return this.apiHost+r;var i=Qo+r;switch(e){case"assets":return"https://"+this.region+"-assets."+i;case"api":return"https://"+this.region+"."+i}}}var ce=be("[Surveys]"),Sa="seenSurvey_",Lp=[fn.Popover,fn.Widget,fn.API],Dp={ignoreConditions:!1,ignoreDelay:!1,displayType:_a.Popover},Up=be("[PostHog ExternalIntegrations]"),zp={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class Hp{constructor(e){this._instance=e}Mt(e,r){var s;(s=D.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this._instance,e,i=>{if(i)return Up.error("failed to load script",i);r()})}startIfEnabledOrStop(){var e=this,r=function(a){var o,l,u;!i||(o=D.__PosthogExtensions__)!=null&&(o=o.integrations)!=null&&o[a]||e.Mt(zp[a],()=>{var d;(d=D.__PosthogExtensions__)==null||(d=d.integrations)==null||(d=d[a])==null||d.start(e._instance)}),!i&&(l=D.__PosthogExtensions__)!=null&&(l=l.integrations)!=null&&l[a]&&((u=D.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[a])==null||u.stop())};for(var[s,i]of Object.entries((n=this._instance.config.integrations)!==null&&n!==void 0?n:{})){var n;r(s)}}}var Rr,Os={},yn=0,ka=()=>{}
2,Yo='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',ms="Surveys module not available",Jo="sanitize_properties is deprecated. Use before_send instead",Eu="Invalid value for property_denylist config: ",Fr="posthog",Su=!Ap&&(Ve==null?void 0:Ve.indexOf("MSIE"))===-1&&(Ve==null?void 0:Ve.indexOf("Mozilla"))===-1,Xo=t=>{var e;return j({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,asset_host:null,token:"",autocapture:!0,cross_subdomain_cookie:qh($==null?void 0:$.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:ka,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:Pe&&pe(Pe==null?void 0:Pe.search)&&Pe.search.indexOf("__posthog_debug=true")!==-1||!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,disable_external_dependency_loading:!1,strict_script_versioning:!1,enable_recording_console_log:void 0,secure_cookie:(_==null||(e=_.location)==null?void 0:e.protocol)==="https:",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(r){M.error("Bad HTTP status: "+r.statusCode+" "+r.text)},get_device_id:r=>r,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:ga,before_send:void 0,request_queue_config:{flush_interval_ms:wa},error_tracking:{},_onCapture:ka},(r=>({rageclick:r&&r>="2026-05-30"?{content_ignorelist:sp,ignore_text_selection:!0}
2:!r||"2025-11-30">r||{content_ignorelist:!0},capture_pageview:!r||"2025-05-24">r||"history_change",session_recording:r&&r>="2026-06-25"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6},streamNetworkBody:!0}:r&&r>="2026-05-30"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6}}:r&&r>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:r&&r>="2026-01-30"?"head":"body",internal_or_test_user_hostname:r&&r>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:r&&r>="2026-05-30"?250:0,split_storage:!(!r||"2026-05-30">r),detect_google_search_app:!(!r||"2026-05-30">r),disable_capture_url_hashes:!(!r||"2026-06-25">r)}))(t))},Vp=[["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"]],Zo=t=>{var e={};for(var[r,s]of Vp)O(t[r])||(e[s]=t[r]);var i=he({},e,t),n=t.__preview_external_dependency_versioned_paths;return O(n)||(O(t.strict_script_versioning)&&(i.strict_script_versioning=!!n),pe(n)&&O(t.asset_host)&&(i.asset_host=n)),ee(t.property_blacklist)&&(O(t.property_denylist)?i.property_denylist=t.property_blacklist:ee(t.property_denylist)?i.property_denylist=[...t.property_blacklist,...t.property_denylist]:M.error(Eu+t.property_denylist)),i};class Bp{constructor(){this.__forceAllowLocalhost=!1}get wi(){return this.__forceAllowLocalhost}set wi(e){M.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class tt{xi(e,r){if(e){var s=this.ki.indexOf(e);s!==-1&&this.ki.splice(s,1)}return this.ki.push(r),r.initialize==null||r.initialize(),r}Si(){return this.config.cookieless_mode===$t||this.config.cookieless_mode===ur&&this.consent.isRejected()}get decideEndpointWasHit(){var e,r;return(e=(r=this.featureFlags)==null?void 0:r.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,r;return(e=(r=this.featureFlags)==null?void 0:r.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new Bp,this.Ci=!1,this.version=ke.LIB_VERSION,this.Ii=new Ja,this.ki=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=Xo(),this.SentryIntegration=hp,this.sentryIntegration=s=>function(i,n){var a=iu(i,n);return{name:su,processEvent:o=>a(o)}}(this,s),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Ti=!1,this.Ei=null,this.Mi=null,this.Pi=null,this.scrollManager=new Mp(this),this.pageViewManager=new $o(this),this.rateLimiter=new wp(this),this.requestRouter=new Fp(this),this.consent=new Xh(this),this.externalIntegrations=new Hp(this);var r=(e=tt.__defaultExtensionClasses)!==null&&e!==void 0?e:{};this.featureFlags=r.featureFlags&&new r.featureFlags(this),this.toolbar=r.toolbar&&new r.toolbar(this),this.surveys=r.surveys&&new r.surveys(this),this.conversations=r.conversations&&new r.conversations(this),this.logs=r.logs&&new r.logs(this),this.experiments=r.experiments&&new r.experiments(this),this.exceptions=r.exceptions&&new r.exceptions(this),this.people={set:(s,i,n)=>{var a=pe(s)?{[s]:i}:s;this.setPersonProperties(a),n==null||n({})},set_once:(s,i,n)=>{var a=pe(s)?{[s]:i}:s;this.setPersonProperties(void 0,a),n==null||n({})}},this.on("eventCaptured",s=>M.info('send "'+(s==null?void 0:s.event)+'"',s))}init(e,r,s){if(s&&s!==Fr){var i,n=(i=Os[s])!==null&&i!==void 0?i:new tt;return n._init(e,r,s),Os[s]=n,Os[Fr][s]=n,n}return this._init(e,r,s)}_init(e,r,s){var i,n;r===void 0&&(r={});var a=pe(e)?e.trim():"";if(!a)return M.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 console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},r.debug=this.Ri(r.debug),this.Oi=r,this.Li=[],r.person_profiles?this.Mi=r.person_profiles:r.process_person&&(this.Mi=r.process_person);var o=Xo(r.defaults),l=Zo(r),u=he({},o,l,{name:s,token:a});ge(o.rageclick)&&ge(l.rageclick)&&(u.rageclick=he({},o.rageclick,l.rageclick)),ge(o.session_recording)&&ge(l.session_recording)&&(u.session_recording=he({},o.session_recording,l.session_recording)),this.set_config(u),this.config.on_xhr_error&&M.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=r.disable_compression?void 0:yt.GZipJS;var d=this.Fi();this.persistence=new pn(this.config,d),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new pn(j({},this.config,{persistence:"sessionStorage"}),d,!1);var p=j({},this.persistence.props),f=j({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Ai=new Ip(k=>this.$i(k),this.config.request_queue_config),this.Di=new Rp(this),this.__request_queue=[];var h=this.Si();if(h||(this.sessionManager=new Wo(this),this.sessionPropsManager=new Go(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(M.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>
2{this.Ni(h)},0)):(M.info("Initializing extensions synchronously"),this.Ni(h)),ke.DEBUG=ke.DEBUG||this.config.debug,ke.DEBUG&&M.info("Starting in debug mode",{this:this,config:r,thisC:j({},this.config),p,s:f}),!this.config.identity_distinct_id||(i=r.bootstrap)!=null&&i.distinctID||(r.bootstrap=j({},r.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((n=r.bootstrap)==null?void 0:n.distinctID)!==void 0){var v=r.bootstrap.distinctID,g=this.get_distinct_id(),m=this.persistence.get_property(ut);if(r.bootstrap.isIdentifiedID&&g!=null&&g!==v&&m===jr)this.identify(v);else if(r.bootstrap.isIdentifiedID&&g!=null&&g!==v&&m===Cr)M.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 y=this.config.get_device_id(Mt()),E=r.bootstrap.isIdentifiedID?y:v;this.persistence.set_property(ut,r.bootstrap.isIdentifiedID?Cr:jr),this.register({distinct_id:v,$device_id:E})}}if(h)this.register_once({distinct_id:ei,$device_id:null},"");else if(!this.get_distinct_id()){var x=this.config.get_device_id(Mt());this.register_once({distinct_id:x,$device_id:x},""),this.persistence.set_property(ut,jr)}return xe(_,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),r.segment?function(k,I){var L=k.config.segment;if(!L)return I();(function(P,A){var T=P.config.segment;if(!T)return A();var N=R=>{var q=()=>R.anonymousId()||Mt();P.config.get_device_id=q,R.id()&&(P.register({distinct_id:R.id(),$device_id:q()}),P.persistence.set_property(ut,Cr)),A()},F=T.user();"then"in F&&Rt(F.then)?F.then(N):N(F)})(k,()=>{L.register((P=>{Promise&&Promise.resolve||hn.warn("This browser does not have Promise support, and can not use the segment integration");var A=(T,N)=>{if(!N)return T;T.event.userId||T.event.anonymousId===P.get_distinct_id()||(hn.info("No userId set, resetting PostHog"),P.reset()),T.event.userId&&T.event.userId!==P.get_distinct_id()&&(hn.info("UserId set, identifying with PostHog"),P.identify(T.event.userId));var F=P.calculateEventProperties(N,T.event.properties);return T.event.properties=Object.assign({},F,T.event.properties),T};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:T=>A(T,T.event.event),page:T=>A(T,$r),identify:T=>A(T,cn),screen:T=>A(T,"$screen")}})(k)).then(()=>{I()})})}(this,()=>this.qi()):this.qi(),Rt(this.config._onCapture)&&this.config._onCapture!==ka&&(M.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",k=>this.config._onCapture(k.event,k))),this.config.ip&&M.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}Ni(e){var r,s,i,n,a,o,l,u=performance.now(),d=j({},tt.__defaultExtensionClasses,this.config.__extensionClasses),p=[];d.featureFlags&&this.ki.push(this.featureFlags=(r=this.featureFlags)!==null&&r!==void 0?r:new d.featureFlags(this)),d.exceptions&&this.ki.push(this.exceptions=(s=this.exceptions)!==null&&s!==void 0?s:new d.exceptions(this)),d.historyAutocapture&&this.ki.push(this.historyAutocapture=new d.historyAutocapture(this)),d.tracingHeaders&&this.ki.push(this.tracingHeaders=new d.tracingHeaders(this)),d.siteApps&&this.ki.push(this.siteApps=new d.siteApps(this)),d.sessionRecording&&!e&&this.ki.push(this.sessionRecording=new d.sessionRecording(this)),this.config.disable_scroll_properties||p.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),d.autocapture&&this.ki.push(this.autocapture=new d.autocapture(this)),d.surveys&&this.ki.push(this.surveys=(i=this.surveys)!==null&&i!==void 0?i:new d.surveys(this)),d.logs&&this.ki.push(this.logs=(n=this.logs)!==null&&n!==void 0?n:new d.logs(this)),d.conversations&&this.ki.push(this.conversations=(a=this.conversations)!==null&&a!==void 0?a:new d.conversations(this)),d.productTours&&this.ki.push(this.productTours=new d.productTours(this)),d.heatmaps&&this.ki.push(this.heatmaps=new d.heatmaps(this)),d.webVitalsAutocapture&&this.ki.push(this.webVitalsAutocapture=new d.webVitalsAutocapture(this)),d.exceptionObserver&&this.ki.push(this.exceptionObserver=new d.exceptionObserver(this)),d.deadClicksAutocapture&&this.ki.push(this.deadClicksAutocapture=new d.deadClicksAutocapture(this,dp)),d.toolbar&&this.ki.push(this.toolbar=(o=this.toolbar)!==null&&o!==void 0?o:new d.toolbar(this)),d.experiments&&this.ki.push(this.experiments=(l=this.experiments)!==null&&l!==void 0?l:new d.experiments(this)),this.ki.forEach(f=>{f.initialize&&p.push(()=>{f.initialize==null||f.initialize()})}),p.push(()=>
2{if(this.Bi){var f=this.Bi;this.Bi=void 0,this.pr(f)}}),this.ji(p,u)}ji(e,r){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-r>=30&&e.length>0)return void setTimeout(()=>{this.ji(e,r)},0);var s=e.shift();if(s)try{s()}catch(n){M.error("Error initializing extension:",n)}}var i=Math.round(performance.now()-r);this.register_for_session({[Hc]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[Vc]:i}),this.config.__preview_deferred_init_extensions&&M.info("PostHog extensions initialized ("+i+"ms)")}pr(e){var r;if(!$||!$.body)return M.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.pr(e)},500);this.config.__preview_deferred_init_extensions&&(this.Bi=e),this.Hi=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=V(e.supportedCompression,yt.GZipJS)?yt.GZipJS:V(e.supportedCompression,yt.Base64)?yt.Base64:void 0),(r=e.analytics)!=null&&r.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Mi?this.Mi:ga}),this.ki.forEach(s=>s.onRemoteConfig==null?void 0:s.onRemoteConfig(e))}qi(){try{this.config.loaded(this)}catch(s){M.critical("`loaded` function failed",s)}if(this.Ui(),this.config.internal_or_test_user_hostname&&Pe!=null&&Pe.hostname){var e=Pe.hostname,r=this.config.internal_or_test_user_hostname;(typeof r=="string"?e===r:r.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||this.Si())&&this.zi()},1),this.Vi=new hu(this),this.Vi.load()}Ui(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Ai)==null||e.enable())}_dom_loaded(){this.is_capturing()&&ti(this.__request_queue,e=>this.$i(e)),this.__request_queue=[],this.Ui()}_handle_unload(){var e,r,s,i;(e=this.surveys)==null||e.handlePageUnload==null||e.handlePageUnload(),this.config.request_batching?(this.Wi()&&this.capture(ln),(r=this.logs)==null||r.flushLogs("sendBeacon"),(s=this.Ai)==null||s.unload(),(i=this.Di)==null||i.unload()):this.Wi()&&this.capture(ln,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded?Su?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)?e.fireCallbackOnDrop&&(e.callback==null||e.callback({statusCode:429})):(e.transport=e.transport||this.config.api_transport,e.headers=j({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,(O(this.config.disable_beacon)?this.config.__preview_disable_beacon:this.config.disable_beacon)&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(r=>{var s,i,n,a=j({},r);a.timeout=a.timeout||6e4,a.url=qo(a.url,a.compression);var o=(s=a.transport)!==null&&s!==void 0?s:"fetch",l=mi.filter(d=>!a.disableTransport||!d.transport||!a.disableTransport.includes(d.transport)),u=(i=(n=function(d,p){for(var f=0;d.length>f;f++)if(d[f].transport===o)return d[f]}(l))==null?void 0:n.method)!==null&&i!==void 0?i:l[0].method;if(!u)throw new Error("No available transport method");o!=="sendBeacon"&&a.data&&a.compression===yt.GZipJS&&Gd&&!vi?Cp(a).then(d=>{u(d)}).catch(d=>{if(mo(d))return vi=!0,void u(j({},a,{compression:void 0,url:qo(r.url,void 0)}));(p=>{if(!p||typeof p!="object")return!1;var f="name"in p?String(p.name):"";return mo(p)||f===sc})(d)&&(vi=!0),u(a)}):u(a)})(j({},e,{callback:r=>{var s,i;this.rateLimiter.checkForLimiting(r),400>r.statusCode||(s=(i=this.config).on_request_error)==null||s.call(i,r),e.callback==null||e.callback(r)}}))):e.fireCallbackOnDrop&&(e.callback==null||e.callback({statusCode:0}))}$i(e){this.Di?this.Di.retriableRequest(e):this._send_request(e)}_execute_array(e){yn++;try{var r,s=[],i=[],n=[];ti(e,o=>{if(o)if(ee(r=o[0]))n.push(o);else if(Rt(o))try{o.call(this)}catch(l){M.error("Error executing queued PostHog call",o,l)}else ee(o)&&r==="alias"?s.push(o):ee(o)&&r.indexOf("capture")!==-1&&Rt(this[r])?n.push(o):i.push(o)});var a=function(o,l){ti(o,function(u){try{if(ee(u[0])){var d=l;de(u,function(p){d=d[p[0]].apply(d,p.slice(1))})}else l[u[0]].apply(l,u.slice(1))}catch(p){M.error("Error executing queued PostHog call",u,p)}})};a(s,this),a(i,this),a(n,this)}finally{yn--}}push(e){if(yn>0&&ee(e)&&pe(e[0])){var r=tt.prototype[e[0]];Rt(r)&&r.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,r,s){var i,n,a,o,l;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Ai){if(this.is_capturing())if(!O(e)&&pe(e)){var u=!this.config.opt_out_useragent_filter&&this._is_bot();if(!u||this.config.__preview_capture_bot_pageviews){var d=s!=null&&s.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(d==null||!d.isRateLimited){r!=null&&r.$current_url&&!pe(r==null?void 0:r.$current_url)&&(M.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),r==null||delete r.$current_url),e!=="$exception"||s!=null&&s.Gi||M.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 p=new Date,f=(s==null?void 0:s.timestamp)||p,h=wo(s==null?void 0:s.uuid,Mt),v={uuid:h,event:e,properties:this.calculateEventProperties(e,r||{},f,h)};e===$r&&this.config.__preview_capture_bot_pageviews&&u&&(v.event="$bot_pageview",v.properties.$browser_type="bot"),d&&(v.properties.$lib_rate_limit_remaining_tokens=d.remainingTokens),s!=null&&s.$set&&(v.$set=s==null?void 0:s.$set);var g=s==null?void 0:s.$unset;g&&(v.$unset=g);var m,y,E,x=this.Zi(s==null?void 0:s.$set_once,e!==ko,e===cn);if(x&&(v.$set_once=x),s!=null&&s._noTruncate||(n=this.config.properties_string_max_length,a=v,o=N=>pe(N)?N.slice(0,n):N,l=new Set,v=function N(F,R){return F!==Object(F)?o?o(F):
2F:l.has(F)?void 0:(l.add(F),ee(F)?(q=[],ti(F,z=>{q.push(N(z))})):(q={},de(F,(z,re)=>{l.has(z)||(q[re]=N(z))})),q);var q}(a)),v.timestamp=f,O(s==null?void 0:s.timestamp)||(v.properties.$event_time_override_provided=!0,v.properties.$event_time_override_system_time=p),e===Ft.DISMISSED||e===Ft.SENT){var k=r==null?void 0:r[gn.SURVEY_ID],I=r==null?void 0:r[gn.SURVEY_ITERATION];(N=>{try{var F=(R=>((q,z)=>{var re=""+Sa+z.id;return z.current_iteration&&z.current_iteration>0&&(re=""+Sa+z.id+"_"+z.current_iteration),re})(0,R))(N);if(localStorage.getItem(F))return;localStorage.setItem(F,"true")}catch(R){ce.error("Failed to persist survey seen state",R)}})({id:k,current_iteration:I}),v.$set=j({},v.$set,{[(m={id:k,current_iteration:I},y=e===Ft.SENT?"responded":"dismissed",E="$survey_"+y+"/"+m.id,m.current_iteration&&m.current_iteration>0&&(E="$survey_"+y+"/"+m.id+"/"+m.current_iteration),E)]:!0})}else e===Ft.SHOWN&&(v.$set=j({},v.$set,{[gn.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===xp.SHOWN){var L=r==null?void 0:r[Lo.TOUR_TYPE];L&&(v.$set=j({},v.$set,{[Lo.TOUR_LAST_SEEN_DATE+"/"+L]:new Date().toISOString()}))}var P=j({},v.properties.$set,v.$set);if(Jt(P)||this.setPersonPropertiesForFlags(P),!Q(this.config.before_send)){var A=this.it(v);if(!A)return;(v=A).uuid=wo(v.uuid,Mt)}this.Ii.emit("eventCaptured",v);var T={method:"POST",url:(i=s==null?void 0:s._url)!==null&&i!==void 0?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:v,compression:"best-available",batchKey:s==null?void 0:s._batchKey,transport:s==null?void 0:s.transport};return!this.config.request_batching||s&&(s==null||!s._batchKey)||s!=null&&s.send_instantly?this.$i(T):this.Ai.enqueue(T),v}M.critical("This capture call is ignored due to client rate limiting.")}}else M.error("No event name provided to posthog.capture")}else M.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",r=>e(r.event,r))}calculateEventProperties(e,r,s,i,n){if(s=s||new Date,!this.persistence||!this.sessionPersistence)return r;var a=n?void 0:this.persistence.remove_event_timer(e),o=j({},r);if(o.token=this.config.token,o.$config_defaults=this.config.defaults,this.Si()&&(o.$cookieless_mode=!0),e==="$snapshot"){var l=j({},this.persistence.properties(),this.sessionPersistence.properties());return o.distinct_id=l.distinct_id,(!pe(o.distinct_id)&&!He(o.distinct_id)||qn(o.distinct_id))&&M.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),o}var u,d=function(y,E,x,k){var I,L,P,A;if(k===void 0&&(k=!1),!Ve)return{};var T,N,F,R,q,z,re,Z,Y,me=y?[...rs,...E||[]]:[],[U,oe]=function(te){for(var ae=0;bo.length>ae;ae++){var[Le,ne]=bo[ae],je=Le.exec(te),Me=je&&(Rt(ne)?ne(je,te):ne);if(Me)return Me}return["",""]}(Ve),se=(T=typeof navigator<"u"?navigator:void 0)!=null&&T.brave?{brave:!0}:{},J={detectGoogleSearchApp:x},G=he(qa({$os:U,$os_version:oe,$browser:Tc(Ve,navigator.vendor,se,J),$device:xo(Ve),$device_type:(F=Ve,R={userAgentDataPlatform:(I=navigator)==null||(I=I.userAgentData)==null?void 0:I.platform,maxTouchPoints:(L=navigator)==null?void 0:L.maxTouchPoints,screenWidth:_==null||(P=_.screen)==null?void 0:P.width,screenHeight:_==null||(A=_.screen)==null?void 0:A.height,devicePixelRatio:_==null?void 0:_.devicePixelRatio},Y=xo(F),Y===lc||Y===oc||Y==="Kobo"||Y==="Kindle Fire"||Y===xc?Zr:Y===Ns||Y===Vr||Y===$s||Y===Wn?"Console":Y===uc?"Wearable":Y?Qe:(R==null?void 0:R.userAgentDataPlatform)==="Android"&&((q=R==null?void 0:R.maxTouchPoints)!==null&&q!==void 0?q:0)>0?600>Math.min((z=R==null?void 0:R.screenWidth)!==null&&z!==void 0?z:0,(re=R==null?void 0:R.screenHeight)!==null&&re!==void 0?re:0)/((Z=R==null?void 0:R.devicePixelRatio)!==null&&Z!==void 0?Z:1)?Qe:Zr:"Desktop"),$timezone:du(),$timezone_offset:mp()}),{$current_url:Us(k?Zt(Pe==null?void 0:Pe.href):Pe==null?void 0:Pe.href,me,zs),$host:Pe==null?void 0:Pe.host,$pathname:Pe==null?void 0:Pe.pathname,$raw_user_agent:Ve.length>1e3?Ve.substring(0,997)+"...":Ve,$browser_version:fh(Ve,navigator.vendor,se,J),$browser_language:Fo(),$browser_language_prefix:(N=Fo(),typeof N=="string"?N.split("-")[0]:void 0),$screen_height:_==null?void 0:_.screen.height,$screen_width:_==null?void 0:_.screen.width,$viewport_height:_==null?void 0:_.innerHe
2ight,$viewport_width:_==null?void 0:_.innerWidth,$lib:ke.LIB_NAME,$lib_version:ke.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return ke.SDK_DIST_CHANNEL&&(G.$sdk_dist_channel=ke.SDK_DIST_CHANNEL),G}(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{sessionId:p,windowId:f}=this.sessionManager.checkAndGetSessionAndWindowId(n,s.getTime());o.$session_id=p,o.$window_id=f}this.sessionPropsManager&&he(o,this.sessionPropsManager.getSessionProps());try{var h;this.sessionRecording&&he(o,this.sessionRecording.sdkDebugProperties),o.$sdk_debug_retry_queue_size=(h=this.Di)==null?void 0:h.length}catch(y){o.$sdk_debug_error_capturing_properties=String(y)}if(this.requestRouter.region===Ea&&(o.$lib_custom_api_host=this.config.api_host),u=e!==$r||n?e!==ln||n?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(s):this.pageViewManager.doPageView(s,i),o=he(o,u),e===$r&&$&&(o.title=$.title),!O(a)){var v=s.getTime()-a;o.$duration=parseFloat((v/1e3).toFixed(3))}Ve&&this.config.opt_out_useragent_filter&&(o.$browser_type=this._is_bot()?"bot":"browser"),(o=he({},d,this.persistence.properties(),this.sessionPersistence.properties(),o)).$is_identified=this._isIdentified(),ee(this.config.property_denylist)?de(this.config.property_denylist,function(y){delete o[y]}):M.error(Eu+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var g=this.config.sanitize_properties;g&&(M.error(Jo),o=g(o,e));var m=this.Qi();return o.$process_person_profile=m,m&&!n&&this.Ji("_calculate_event_properties"),o}Zi(e,r,s){var i;if(r===void 0&&(r=!0),s===void 0&&(s=!1),!this.persistence||!this.Qi()||this.Ci&&!s)return e;var n=this.persistence.get_initial_props(),a=(i=this.sessionPropsManager)==null?void 0:i.getSetOnceProps(),o=he({},n,a||{},e||{}),l=this.config.sanitize_properties;return l&&(M.error(Jo),o=l(o,"$set_once")),r&&(this.Ci=!0),Jt(o)?void 0:o}register(e,r){var s;(s=this.persistence)==null||s.register(e,r)}register_once(e,r,s){var i;(i=this.persistence)==null||i.register_once(e,r,s)}register_for_session(e){var r;(r=this.sessionPersistence)==null||r.register(e)}unregister(e){var r;(r=this.persistence)==null||r.unregister(e)}unregister_for_session(e){var r;(r=this.sessionPersistence)==null||r.unregister(e)}Yi(e,r){this.register({[e]:r})}getFeatureFlag(e,r){var s;return(s=this.featureFlags)==null?void 0:s.getFeatureFlag(e,r)}getFeatureFlagPayload(e){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlagPayload(e)}getFeatureFlagResult(e,r){var s;return(s=this.featureFlags)==null?void 0:s.getFeatureFlagResult(e,r)}isFeatureEnabled(e,r){var s;return(s=this.featureFlags)==null?void 0:s.isFeatureEnabled(e,r)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,r,s){var i;(i=this.featureFlags)==null||i.updateFlags(e,r,s)}updateEarlyAccessFeatureEnrollment(e,r,s){var i;(i=this.featureFlags)==null||i.updateEarlyAccessFeatureEnrollment(e,r,s)}getEarlyAccessFeatures(e,r,s){var i;return r===void 0&&(r=!1),(i=this.featureFlags)==null?void 0:i.getEarlyAccessFeatures(e,r,s)}on(e,r){return this.Ii.on(e,r)}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:ms}),()=>{})}onSessionId(e){var r,s;return(r=(s=this.sessionManager)==null?void 0:s.onSessionId(e))!==null&&r!==void 0?r:()=>{}}getSurveys(e,r){r===void 0&&(r=!1),this.surveys?this.surveys.getSurveys(e,r):e([],{isLoaded:!1,error:ms})}getActiveMatchingSurveys(e,r){r===void 0&&(r=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,r):e([],{isLoaded:!1,error:ms})}renderSurvey(e,r){var s;(s=this.surveys)==null||s.renderSurvey(e,r)}displaySurvey(e,r){var s;r===void 0&&(r=Dp),(s=this.surveys)==null||s.displaySurvey(e,r)}cancelPendingSurvey(e){var r;(r=this.surveys)==null||r.cancelPendingSurvey(e)}canRenderSurvey(e){var r,s;return(r=(s=this.surveys)==null?void 0:s.canRenderSurvey(e))!==null&&r!==void 0?r:{visible:!1,disabledReason:ms}}canRenderSurveyAsync(e,r){var s,i;return r===void 0&&(r=!1),(s=(i=this.surveys)==null?void 0:i.canRenderSurveyAsync(e,r))!==null&&s!==void 0?s:Promise.resolve({visible:!1,disabledReason:ms})}Ki(e){return!e||qn(e)?(M.critical("Unique user id has not been set in posthog.identify"),!1):e===ei?(M.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())||(M.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,r,s){if(!this.__loaded||!this.persistence)return M.uninitializedWarning("posthog.identify");if(He(e)&&(e=e.toString(),M.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.Ki(e)&&this.Ji("posthog.identify")){var i=this.get_distinct_id();this.register({$user_id:e}),this.get_property(Ai)||this.register_once({$had_persisted_distinct_id:!0,$device_id:i},""),e!==i&&e!==this.get_property(Es)&&(this.unregister(Es),this.register({distinct_id:e}));var n,a=(this.persistence.get_property(ut)||jr)===jr;e!==i&&a?(this.persistence.set_property(ut,Cr),this.setPersonPropertiesForFlags({$set:r||{},$set_once:s||{}},!1),this.capture(cn,{distinct_id:e,$anon_distinct_id:i},{$set:r||{},$set_once:s||{}}),this.Pi=Ko(e,r,s),(n=this.featureFlags)==null||n.setAnonymousDistinctId(i)):(r||s)&&this.setPersonProperties(r,s),e!==i&&(this.reloadFeatureFlags(),this.unregister(js))}}setPersonProperties(e,r){if((e||r)&&this.Ji("posthog.setPersonProperties")){var s=Ko(this.get_distinct_id(),e,r);this.Pi!==s?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:r||{}},!0),this.capture("$set",{$set:e||{},$set_once:r||{}}),this.Pi=s):M.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}unsetPersonProperties(e){var r,s=(ee(e)?e:[e]).filter(i=>pe(i)&&i.length>0);s.length!==0&&this.Ji("posthog.unsetPersonProperties")&&((r=this.featureFlags)==null||r.unsetPersonPropertiesForFlags(s,!0),this.capture("$set",{$unset:s}),this.Pi=null)}group(e,r,s){if(e&&r){var i=this.getGroups(),n=i[e]!==r;if(n&&this.resetGroupPropertiesForFlags(e),this.register({$groups:j({},i,{[e]:r})}),n||s){var a={$group_type:e,$group_key:r};s&&(a.$group_set=s),this.capture(ko,a)}s&&this.setGroupPropertiesForFlags({[e]:s}),n&&!s&&this.reloadFeatureFlags()}else M.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,r){var s;r===void 0&&(r=!0),(s=this.featureFlags)==null||s.setPersonPropertiesForFlags(e,r)}resetPersonPropertiesForFlags(e){var r;e===void 0&&(e=!0),(r=this.featureFlags)==null||r.resetPersonPropertiesForFlags(e)}setGroupPropertiesForFlags(e,r){var s;r===void 0&&(r=!0),this.Ji("posthog.setGroupPropertiesForFlags")&&((s=this.featureFlags)==null||s.setGroupPropertiesForFlags(e,r))}resetGroupPropertiesForFlags(e){var r;(r=this.featureFlags)==null||r.resetGroupPropertiesForFlags(e)}reset(e){var r,s,i,n,a,o,l,u,d;if(M.info("reset"),!this.__loaded)return M.uninitializedWarning("posthog.reset");var p,f=this.get_property(Ai),h=this.get_property(hr);if(this.consent.reset(),(r=this.persistence)==null||r.clear(),(s=this.sessionPersistence)==null||s.clear(),O(h)||(p=this.persistence)==null||p.register({[hr]:h}),(i=this.surveys)==null||i.reset(),(n=this.Vi)==null||n.stop(),(a=this.featureFlags)==null||a.reset(),(o=this.conversations)==null||o.reset(),(l=this.logs)==null||l.reset(),(u=this.persistence)==null||u.set_property(ut,jr),(d=this.sessionManager)==null||d.resetSessionId(),this.Pi=null,this.config.cookieless_mode===$t)this.register_once({distinct_id:ei,$device_id:null},"");else{var v=this.config.get_device_id(Mt());this.register_once({distinct_id:v,$device_id:e?v:f},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(e,r){var s;this.config.identity_distinct_id=e,this.config.identity_hash=r,this.alias(e),(s=this.conversations)==null||s.Xi()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,(e=this.conversations)==null||e.en()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,r;return(e=(r=this.sessionManager)==null?void 0:r.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:r,sessionStartTimestamp:s}=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+r);if(e!=null&&e.withTimestamp&&s){var n,a=(n=e.timestampLookBack)!==null&&n!==void 0?n:10;if(!s)return i;
2i+="?t="+Math.max(Math.floor((new Date().getTime()-s)/1e3)-a,0)}return i}alias(e,r){return e===this.get_property(Nc)?(M.critical("Attempting to create alias for existing People user - aborting."),-2):this.Ji("posthog.alias")?(O(r)&&(r=this.get_distinct_id()),e!==r?(this.Yi(Es,e),this.capture("$create_alias",{alias:e,distinct_id:r})):(M.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var r=j({},this.config);if(ge(e)){var s,i,n,a,o,l,u,d,p,f,h;he(this.config,Zo(e));var v=this.Fi();(s=this.persistence)==null||s.update_config(this.config,r,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new pn(j({},this.config,{persistence:"sessionStorage"}),v,!1);var g=this.Ri(this.config.debug);wt(g)&&(this.config.debug=g),wt(this.config.debug)&&(this.config.debug?(ke.DEBUG=!0,ue.N()&&ue.q("ph_debug",!0),M.info("set_config",{config:e,oldConfig:r,newConfig:j({},this.config)})):(ke.DEBUG=!1,ue.N()&&ue.A("ph_debug"))),(i=this.exceptionObserver)==null||i.onConfigChange(),(n=this.exceptions)==null||n.onConfigChange(),(a=this.sessionRecording)==null||a.startIfEnabledOrStop(),(o=this.tracingHeaders)==null||o.startIfEnabledOrStop(),(l=this.autocapture)==null||l.startIfEnabled(),(u=this.heatmaps)==null||u.startIfEnabled(),(d=this.exceptionObserver)==null||d.startIfEnabledOrStop(),(p=this.deadClicksAutocapture)==null||p.startIfEnabledOrStop(),(f=this.surveys)==null||f.loadIfEnabled(),this.tn(),(h=this.externalIntegrations)==null||h.startIfEnabledOrStop()}}_overrideSDKInfo(e,r){ke.LIB_NAME=e,ke.LIB_VERSION=r}startSessionRecording(e){var r,s,i,n,a,o=e===!0,l={sampling:o||!(e==null||!e.sampling),linked_flag:o||!(e==null||!e.linked_flag),url_trigger:o||!(e==null||!e.url_trigger),event_trigger:o||!(e==null||!e.event_trigger)};Object.values(l).some(Boolean)&&((r=this.sessionManager)==null||r.checkAndGetSessionAndWindowId(),l.sampling&&((s=this.sessionRecording)==null||s.overrideSampling()),l.linked_flag&&((i=this.sessionRecording)==null||i.overrideLinkedFlag()),l.url_trigger&&((n=this.sessionRecording)==null||n.overrideTrigger("url")),l.event_trigger&&((a=this.sessionRecording)==null||a.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,r){if(this.exceptions){var s=new Error("PostHog syntheticException"),i=this.exceptions.buildProperties(e,{handled:!0,syntheticException:s});return this.exceptions.sendExceptionEvent(j({},i,r))}}addExceptionStep(e,r){var s;(s=this.exceptions)==null||s.addExceptionStep(e,r)}captureLog(e){var r;(r=this.logs)==null||r.captureLog(e)}get logger(){var e,r;return(e=(r=this.logs)==null?void 0:r.logger)!==null&&e!==void 0?e:tt.rn}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var r,s;return(r=(s=this.toolbar)==null?void 0:s.loadToolbar(e))!==null&&r!==void 0&&r}get_property(e){var r;return(r=this.persistence)==null?void 0:r.props[e]}getSessionProperty(e){var r;return(r=this.sessionPersistence)==null?void 0:r.props[e]}toString(){var e,r=(e=this.config.name)!==null&&e!==void 0?e:Fr;return r!==Fr&&(r=Fr+"."+r),r}_isIdentified(){var e,r;return((e=this.persistence)==null?void 0:e.get_property(ut))===Cr||((r=this.sessionPersistence)==null?void 0:r.get_property(ut))===Cr}Qi(){var e,r;return!(this.config.person_profiles==="never"||this.config.person_profiles===ga&&!this._isIdentified()&&Jt(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[Es])&&((r=this.persistence)==null||(r=r.props)==null||!r[Ci]))}Wi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Qi()||this.Ji("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Ji("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}Ji(e){return this.config.person_profiles==="never"?(M.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Yi(Ci,!0),!0)}Fi(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==ur)}tn(){var e,r,s,i,n=this.Fi();return((e=this.persistence)==null?void 0:e.Vt)!==n&&((s=this.persistence)==null||s.set_disabled(n)),((r=this.sessionPersistence)==null?void 0:r.Vt)!==n&&((i=this.sessionPersistence)==null||i.set_disabled(n)),n}opt_in_capturing(e){var r;if(this.config.cookieless_mode!==$t){if(this.Si()){var s,i,n,a,o;this.reset(!0),(s=this.sessionManager)==null||s.destroy(),(i=this.pageViewM
2anager)==null||i.destroy(),this.sessionManager=new Wo(this),this.pageViewManager=new $o(this),this.persistence&&(this.sessionPropsManager=new Go(this,this.sessionManager,this.persistence));var l,u=(n=(a=this.config.__extensionClasses)==null?void 0:a.sessionRecording)!==null&&n!==void 0?n:(o=tt.__defaultExtensionClasses)==null?void 0:o.sessionRecording;u&&(this.sessionRecording=this.xi(this.sessionRecording,new u(this)),this.Hi&&((l=this.sessionRecording)==null||l.onRemoteConfig==null||l.onRemoteConfig(this.Hi)))}var d,p;this.consent.optInOut(!0),this.tn(),this.Ui(),(r=this.sessionRecording)==null||r.startIfEnabledOrStop(),this.config.cookieless_mode==ur&&((d=this.surveys)==null||d.loadIfEnabled()),(O(e==null?void 0:e.captureEventName)||e!=null&&e.captureEventName)&&this.capture((p=e==null?void 0:e.captureEventName)!==null&&p!==void 0?p:"$opt_in",e==null?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.zi()}else M.warn(Yo)}opt_out_capturing(){var e,r,s;this.config.cookieless_mode!==$t?(this.config.cookieless_mode===ur&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.tn(),this.config.cookieless_mode===ur&&(this.register({distinct_id:ei,$device_id:null}),(e=this.sessionRecording)==null||e.stopRecording(),this.sessionRecording=void 0,(r=this.sessionManager)==null||r.destroy(),(s=this.pageViewManager)==null||s.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.zi(),this.Ui())):M.warn(Yo)}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 e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===$t||(this.config.cookieless_mode===ur?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.tn()}_is_bot(){return We?bu(We,this.config.custom_blocked_useragents):void 0}zi(){$&&($.visibilityState==="visible"?this.Ti||(this.Ti=!0,this.capture($r,{title:$.title},{send_instantly:!0}),this.Ei&&($.removeEventListener(Ii,this.Ei),this.Ei=null)):this.Ei||(this.Ei=this.zi.bind(this),xe($,Ii,this.Ei)))}debug(e){e===!1?(_==null||_.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(_==null||_.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}))}mr(){var e,r,s,i,n,a,o=this.Oi||{};return"advanced_disable_flags"in o?!!o.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(M.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):(s="advanced_disable_decide",i=M,n=(r="advanced_disable_flags")in(e=o)&&!Q(e[r]),a=s in e&&!Q(e[s]),n?e[r]:!!a&&(i&&i.warn("Config field '"+s+"' is deprecated. Please use '"+r+"' instead. The old field will be removed in a future major version."),e[s]))}it(e){var r;if(Q(this.config.before_send))return e;var s=Object.keys((r=e.properties)!==null&&r!==void 0?r:{}).filter(rh),i=ee(this.config.before_send)?this.config.before_send:[this.config.before_send],n=e;for(var a of i){if(n=a(n),Q(n)){var o="Event '"+e.event+"' was rejected in beforeSend function";return th(e.event)?M.warn(o+". This can cause unexpected behavior."):M.info(o),null}n.properties&&!Jt(n.properties)||M.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}for(var l of s)if(n.properties&&Q(n.properties[l]))return M.warn("Event '"+e.event+"' had its '"+l+"' 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(e=this.pageViewManager.Ot)==null?void 0:e.pageViewId}captureTraceFeedback(e,r){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:r})}captureTraceMetric(e,r,s){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:r,$ai_metric_value:String(s)})}Ri(e){var r=wt(e)&&!e,s=ue.N()&&ue.P("ph_debug")==="true";return!r&&(!!s||e)}}tt.__defaultExtensionClasses={},tt.rn={trace:Rr=()=>{},debug:Rr,info:Rr,warn:Rr,error:Rr,fatal:Rr},function(t,e){for(var r=0;e.length>r;r++)t.prototype[e[r]]=Vh(t.prototype[e[r]])}(tt,["identify"]);
2class el{constructor(e){this.disabled=e===!1;var r=ge(e)?e:{};this.thresholdPx=r.threshold_px||30,this.timeoutMs=r.timeout_ms||1e3,this.clickCount=r.click_count||3,this.clicks=[]}isRageClick(e,r,s){if(this.disabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(e-i.x)+Math.abs(r-i.y)<this.thresholdPx&&this.timeoutMs>s-i.timestamp){if(this.clicks.push({x:e,y:r,timestamp:s}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:r,timestamp:s}];return!1}}var bn="$copy_autocapture",xn=be("[AutoCapture]");function wn(t,e){return e.length>t?e.slice(0,t)+"...":e}function qp(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!er(e));return e}function Gp(t,e){var r,s,{e:i,maskAllElementAttributes:n,maskAllText:a,elementAttributeIgnoreList:o,elementsChainAsString:l,disableCaptureUrlHashes:u}=e;if(!er(t))return{props:{}};for(var d=[t],p=t;p.parentNode&&!Ke(p,"body");)if(Kc(p.parentNode))d.push(p.parentNode.host),p=p.parentNode.host;else{if(!er(p.parentNode))break;d.push(p.parentNode),p=p.parentNode}var f,h,v=[],g={},m=!1,y=!1;if(de(d,L=>{var P=ma(L);if(Ke(L,"a")){var A=L.getAttribute("href");m=!!(P&&A&&Cs(A))&&(u?Zt(A):A)}V(Mi(L),"ph-no-capture")&&(y=!0),v.push(function(N,F,R,q,z){z===void 0&&(z=!1);var re=N.tagName.toLowerCase(),Z={tag_name:re};Wa.indexOf(re)>-1&&!R&&(Z.$el_text=re.toLowerCase()==="a"||re.toLowerCase()==="button"?wn(1024,Ro(N)):wn(1024,Ls(N)));var Y=Mi(N);Y.length>0&&(Z.classes=Y.filter(function(se){return se!==""})),de(N.attributes,function(se){var J;if((!Zc(N)||["name","id","class","aria-label"].indexOf(se.name)!==-1)&&(q==null||!q.includes(se.name))&&!F&&Cs(se.value)&&(!pe(J=se.name)||J.substring(0,10)!=="_ngcontent"&&J.substring(0,7)!=="_nghost")){var G=se.value;se.name==="class"&&(G=Ga(G).join(" ")),Z["attr__"+se.name]=wn(1024,se.name==="href"&&z?Zt(G):G)}});for(var me=1,U=1,oe=N;oe=qp(oe);)me++,oe.tagName===N.tagName&&U++;return Z.nth_child=me,Z.nth_of_type=U,Z}(L,n,a,o,u));var T=function(N){if(!ma(N))return{};var F={};return de(N.attributes,function(R){if(R.name&&R.name.indexOf("data-ph-capture-attribute")===0){var q=R.name.replace("data-ph-capture-attribute-",""),z=R.value;q&&z&&Cs(z)&&(F[q]=z)}}),F}(L);he(g,T)}),y)return{props:{},explicitNoCapture:y};if(a||(v[0].$el_text=Ke(t,"a")||Ke(t,"button")?Ro(t):Ls(t)),m){var E,x;v[0].attr__href=m;var k=(E=Ni(m))==null?void 0:E.host,I=_==null||(x=_.location)==null?void 0:x.host;k&&I&&k!==I&&(f=m)}return{props:he({$event_type:i.type,$ce_version:1},l?{}:{$elements:v},{$elements_chain:(h=v,function(L){return L.map(P=>{var A,T,N="";if(P.tag_name&&(N+=P.tag_name),P.attr_class)for(var F of(P.attr_class.sort(),P.attr_class))N+="."+F.replace(/"/g,"");var R=j({},P.text?{text:P.text}:{},{"nth-child":(A=P.nth_child)!==null&&A!==void 0?A:0,"nth-of-type":(T=P.nth_of_type)!==null&&T!==void 0?T:0},P.href?{href:P.href}:{},P.attr_id?{attr_id:P.attr_id}:{},P.attributes),q={};return gi(R).sort((z,re)=>{var[Z]=z,[Y]=re;return Z.localeCompare(Y)}).forEach(z=>{var[re,Z]=z;return q[Mo(re.toString())]=Mo(Z.toString())}),(N+=":")+gi(q).map(z=>{var[re,Z]=z;return re+'="'+Z+'"'}).join("")}).join(";")}(function(L){return L.map(P=>{var A,T,N={text:(A=P.$el_text)==null?void 0:A.slice(0,400),tag_name:P.tag_name,href:(T=P.attr__href)==null?void 0:T.slice(0,2048),attr_class:cp(P),attr_id:P.attr__id,nth_child:P.nth_child,nth_of_type:P.nth_of_type,attributes:{}};return gi(P).filter(F=>{var[R]=F;return R.indexOf("attr__")===0}).forEach(F=>{var[R,q]=F;return N.attributes[R]=q}),N})}(h)))},(r=v[0])!=null&&r.$el_text?{$el_text:(s=v[0])==null?void 0:s.$el_text}:{},f&&i.type==="click"?{$external_click_url:f}:{},g)}}var _s=be("[ExceptionAutocapture]"),Wp=be("[TracingHeaders]"),nr=be("[Web Vitals]"),tl=9e5,rl="disabled",sl="lazy_loading",ys="awaiting_config",oi="missing_config";be("[SessionRecording]"),be("[SessionRecording]");var Ta="[SessionRecording]",Tt=be(Ta),Kp=be("[Heatmaps]");function il(t){return ge(t)&&"clientX"in t&&"clientY"in t&&He(t.clientX)&&He(t.clientY)}var En=be("[Product Tours]"),Sn=t=>{var e;return!t.config.disable_product_tours&&!((e=t.persistence)==null||!e.get_property(Ha))},Qp=["$set_once","$set"],gt=be("[SiteApps]"),nl="Error while initializing PostHog app with config id ";function Mr(t,e,r){if(Q(t))return!1;switch(r){case"exact":return t===e;case"contains":var s=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(s,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class Yp{constructor(e){this.nn=new Ja,this.sn=(r,s)=>this.an(r,s)&&this.ln(r,s)&&this.un(r,s)&&this.hn(r,s),this.an=(r,s)=>s==null||!s.event||(r==null?void 0:r.event)===(s==null?void 0:s.event),this._instance=e,this.dn=new Set,this.cn=new Set}init(){var e,r;O((e=this._instance)==null?void 0:e._addCaptureHook)||(r=this._instance)==null||r._addCaptureHook((s,i)=>{this.on(s,i)})}register(e){var r,s;if(!O((r=this._instance)==null?void 0:r._addCaptureHook)&&(e.forEach(a=>{var o,l;(o=this.cn)==null||o.add(a),(l=a.steps)==null||l.forEach(u=>{var d;(d=this.dn)==null||d.add((u==null?void 0:u.event)||"")})}),(s=this._instance)!=null&&s.autocapture)){var i,n=new Set;e.forEach(a=>{var o;(o=a.steps)==null||o.forEach(l=>{l!=null&&l.selector&&n.add(l==null?void 0:l.selector)})}),(i=this._instance)==null||i.autocapture.setElementSelectors(n)}}on(e,r){var s;r!=null&&e.length!=0&&(this.dn.has(e)||this.dn.has(r==null?void 0:r.event))&&this.cn&&((s=this.cn)==null?void 0:s.size)>0&&this.cn.forEach(i=>
2{this.vn(r,i)&&this.nn.emit("actionCaptured",i.name)})}fn(e){this.onAction("actionCaptured",r=>e(r))}vn(e,r){if((r==null?void 0:r.steps)==null)return!1;for(var s of r.steps)if(this.sn(e,s))return!0;return!1}onAction(e,r){return this.nn.on(e,r)}ln(e,r){if(r!=null&&r.url){var s,i=e==null||(s=e.properties)==null?void 0:s.$current_url;if(!i||typeof i!="string"||!Mr(i,r.url,r.url_matching||"contains"))return!1}return!0}un(e,r){return!!this.pn(e,r)&&!!this.gn(e,r)&&!!this.mn(e,r)}pn(e,r){var s;if(r==null||!r.href)return!0;var i=this.yn(e);if(i.length>0)return i.some(o=>Mr(o.href,r.href,r.href_matching||"exact"));var n,a=(e==null||(s=e.properties)==null?void 0:s.$elements_chain)||"";return!!a&&Mr((n=a.match(/(?::|")href="(.*?)"/))?n[1]:"",r.href,r.href_matching||"exact")}gn(e,r){var s;if(r==null||!r.text)return!0;var i=this.yn(e);if(i.length>0)return i.some(u=>Mr(u.text,r.text,r.text_matching||"exact")||Mr(u.$el_text,r.text,r.text_matching||"exact"));var n,a,o,l=(e==null||(s=e.properties)==null?void 0:s.$elements_chain)||"";return!!l&&(n=function(u){for(var d,p=[],f=/(?::|")text="(.*?)"/g;!Q(d=f.exec(u));)p.includes(d[1])||p.push(d[1]);return p}(l),a=r.text,o=r.text_matching||"exact",n.some(u=>Mr(u,a,o)))}mn(e,r){var s,i;if(r==null||!r.selector)return!0;var n=e==null||(s=e.properties)==null?void 0:s.$element_selectors;if(n!=null&&n.includes(r.selector))return!0;var a=(e==null||(i=e.properties)==null?void 0:i.$elements_chain)||"";if(r.selector_regex&&a)try{return new RegExp(r.selector_regex).test(a)}catch{return!1}return!1}yn(e){var r;return(e==null||(r=e.properties)==null?void 0:r.$elements)==null?[]:e==null?void 0:e.properties.$elements}hn(e,r){return r==null||!r.properties||r.properties.length===0||wu(r.properties.reduce((s,i)=>{var n=ee(i.value)?i.value.map(String):i.value!=null?[String(i.value)]:[];return s[i.key]={values:n,operator:i.operator||"exact"},s},{}),e==null?void 0:e.properties)}}class Jp{constructor(e){this.bn=[],this._instance=e,this._n=new Map,this.wn=new Map,this.xn=new Map}kn(e,r){return!!e&&wu(e.propertyFilters,r==null?void 0:r.properties)}Sn(e,r){var s=new Map;return e.forEach(i=>{var n;(n=i.conditions)==null||(n=n[r])==null||(n=n.values)==null||n.forEach(a=>{if(a!=null&&a.name){var o=s.get(a.name)||[];o.push(i.id),s.set(a.name,o)}})}),s}Cn(e,r,s){var i=(s===hs.Activation?this._n:this.wn).get(e),n=[];return this.In(a=>{n=a.filter(o=>i==null?void 0:i.includes(o.id))}),n.filter(a=>{var o,l=(o=a.conditions)==null||(o=o[s])==null||(o=o.values)==null?void 0:o.find(u=>u.name===e);return this.kn(l,r)})}register(e){var r;O((r=this._instance)==null?void 0:r._addCaptureHook)||(this.Tn(e),this.En(e))}En(e){var r=e.filter(s=>{var i,n;return((i=s.conditions)==null?void 0:i.actions)&&((n=s.conditions)==null||(n=n.actions)==null||(n=n.values)==null?void 0:n.length)>0});r.length!==0&&(this.Mn==null&&(this.Mn=new Yp(this._instance),this.Mn.init(),this.Mn.fn(s=>{this.onAction(s)})),r.forEach(s=>{var i,n,a,o,l;s.conditions&&(i=s.conditions)!=null&&i.actions&&(n=s.conditions)!=null&&(n=n.actions)!=null&&n.values&&((a=s.conditions)==null||(a=a.actions)==null||(a=a.values)==null?void 0:a.length)>0&&((o=this.Mn)==null||o.register(s.conditions.actions.values),(l=s.conditions)==null||(l=l.actions)==null||(l=l.values)==null||l.forEach(u=>{if(u&&u.name){var d=this.xn.get(u.name);d&&d.push(s.id),this.xn.set(u.name,d||[s.id])}}))}))}Tn(e){var r,s=e.filter(n=>{var a,o;return((a=n.conditions)==null?void 0:a.events)&&((o=n.conditions)==null||(o=o.events)==null||(o=o.values)==null?void 0:o.length)>0}),i=e.filter(n=>{var a,o;return((a=n.conditions)==null?void 0:a.cancelEvents)&&((o=n.conditions)==null||(o=o.cancelEvents)==null||(o=o.values)==null?void 0:o.length)>0});s.length===0&&i.length===0||((r=this._instance)==null||r._addCaptureHook((n,a)=>{this.onEvent(n,a)}),this._n=this.Sn(e,hs.Activation),this.wn=this.Sn(e,hs.Cancellation))}onEvent(e,r){var s,i,n=this.Pn(),a=(r==null||(s=r.properties)==null?void 0:s.$survey_id)||(r==null||(i=r.properties)==null?void 0:i.$product_tour_id);if(a&&this.getActivatedIds().includes(a)){var o=this.Rn(e,a);if(o==="consume")return n.info("event consumed activated item, remov
2ing it",{event:e,itemId:a}),void this.On([a]);if(o==="persist")return n.info("shown item promoted to persisted activation",{event:e,itemId:a}),void this.Ln(a)}if(this.wn.has(e)){var l=this.Cn(e,r,hs.Cancellation);l.length>0&&(n.info("cancel event matched, cancelling items",{event:e,itemsToCancel:l.map(d=>d.id)}),this.On(l.map(d=>d.id)),l.forEach(d=>this.Fn(d.id)))}if(this._n.has(e)){n.info("event name matched",{event:e,eventPayload:r,items:this._n.get(e)});var u=this.Cn(e,r,hs.Activation);this.An(u.map(d=>d.id))}}onAction(e){this.xn.has(e)&&this.An(this.xn.get(e)||[])}An(e){e.length!==0&&(this.bn=[...new Set([...this.bn,...e])],this.Pn().info("updating activated items",{activatedItems:this.getActivatedIds()}))}Ln(e){this.bn=this.bn.filter(s=>s!==e);var r=this.$n();r.includes(e)||this.Dn([...r,e])}On(e){var r=new Set(e);this.bn=this.bn.filter(n=>!r.has(n));var s=this.$n(),i=s.filter(n=>!r.has(n));i.length!==s.length&&this.Dn(i)}$n(){var e,r=this.Nn();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[r])||[]}getActivatedIds(){return[...new Set([...this.$n(),...this.bn])].filter(e=>!this.qn(e))}reset(){this.bn=[],this.$n().length>0&&this.Dn([])}getEventToItemsMap(){return this._n}Bn(){return this.Mn}}class Xp extends Jp{constructor(e){super(e)}Nn(){return oa}jn(){return Ft.SHOWN}In(e){var r;(r=this._instance)==null||r.getSurveys(e)}Fn(e){var r;(r=this._instance)==null||r.cancelPendingSurvey(e)}Pn(){return ce}Dn(e){var r;(r=this._instance)==null||(r=r.persistence)==null||r.register({[oa]:e})}qn(){return!1}Rn(e,r){var s;this.In(n=>{s=n.find(a=>a.id===r)});var i=!s||function(n){var a,o,l,u=((a=(o=n.conditions)==null||(o=o.events)==null||(o=o.values)==null?void 0:o.length)!==null&&a!==void 0?a:0)>0;return n.schedule===bp.Always||!((l=n.conditions)==null||(l=l.events)==null||!l.repeatedActivation||!u)}(s);return i?e===Ft.SHOWN?"consume":"ignore":e===Ft.SHOWN?"persist":e===Ft.DISMISSED||e===Ft.SENT?"consume":"ignore"}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var kn="SDK is not enabled or survey functionality is not yet loaded",al="Disabled. Not loading surveys.",Zp=_!=null&&_.location?$i(_.location.hash,"__posthog")||$i(location.hash,"state"):null,ol="_postHogToolbarParams",ll=be("[Toolbar]"),Ie=be("[FeatureFlags]"),ar=be("[FeatureFlags]",{debugEnabled:!0}),Tn=`" failed. Feature flags didn't load in time.`,cl=t=>{for(var e={},r=0;t.length>r;r++)e[t[r]]=!0;return e},ul=t=>{var e={};for(var[r,s]of gi(t||{}))s&&(e[r]=s);return e},Pt=be("[Error tracking]"),dl="Refusing to render web experiment since the viewer is a likely bot",ef={icontains:(t,e)=>!!_&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!_&&e.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>!!_&&Di(e.href,t),not_regex:(t,e)=>!!_&&!Di(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class $e{get Se(){return this._instance.config}constructor(e){var r=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(s){s===void 0&&(s=!1),r.getWebExperiments(i=>{$e.Hn("retrieved web experiments from the server"),r.Un=new Map,i.forEach(n=>{if(n.feature_flag_key){var a;r.Un&&($e.Hn("setting flag key ",n.feature_flag_key," to web experiment ",n),(a=r.Un)==null||a.set(n.feature_flag_key,n));var o=r._instance.getFeatureFlag(n.feature_flag_key);pe(o)&&n.variants[o]&&r.zn(n.name,o,n.variants[o].transforms)}else if(n.variants)for(var l in n.variants){var u=n.variants[l];$e.Vn(u)&&r.zn(n.name,l,u.transforms)}})},s)},this._instance=e,this._instance.onFeatureFlags(s=>{this.onFeatureFlags(s)})}initialize(){}onFeatureFlags(e){if(this._is_bot())$e.Hn(dl);else if(!this.Se.disable_web_experiments){if(Q(this.Un))return this.Un=new Map,this.loadIfEnabled(),void this.previewWebExperiment();$e.Hn("applying feature flags",e),e.forEach(r=>{var s;if(this.Un&&(s=this.Un)!=null&&s.has(r)){var i,n=this._instance.getFeatureFlag(r),a=(i=this.Un)==null?void 0:i.get(r);n&&a!=null&&a.variants[n]&&this.zn(a.name,n,a.variants[n].transforms)}})}}previewWebExperiment(){var e=$e.getWindowLocation();if(e!=null&&e.search){var r=Ds(e==null?void 0:e.search,"__experiment_id"),s=Ds(e==null?void 0:e.search,"__experiment_variant");r&&s&&($e.Hn("previewing web experiments "+r+" && "+s),this.getWebExperiments(i=>{this.Wn(parseInt(r),s,i)},!1,!0))}}loadIfEnabled(){this.Se.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,r,s){if(this.Se.disable_web_experiments&&!s)return e([]);var i=this._instance.get_property("$web_experiments");if(i&&!r)return e(i);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Se.token),method:"GET",callback:n=>e(n.statusCode===200&&n.json&&n.json.experiments||[])})}Wn(e,r,s){var i=s.filter(n=>n.id===e);i&&i.length>0&&($e.Hn("Previewing web experiment ["+i[0].name+"] with variant ["+r+"]"),this.zn(i[0].name,r,i[0].variants[r].transforms))}static Vn(e){return!Q(e.conditions)&&$e.Gn(e)&&$e.Zn(e)}static Gn(e){var r;if(Q(e.conditions)||Q((r=e.conditions)==null?void 0:r.url))return!0;var s,i,n,a=$e.getWindowLocation();return!!a&&((s=e.conditions)==null||!s.url||ef[(i=(n=e.conditions)==null?void 0:n.urlMatchType)!==null&&i!==void 0?i:"icontains"](e.conditions.url,a))}
2static getWindowLocation(){return _==null?void 0:_.location}static Zn(e){var r;if(Q(e.conditions)||Q((r=e.conditions)==null?void 0:r.utm))return!0;var s=nu();if(s.utm_source){var i,n,a,o,l,u,d,p,f=(i=e.conditions)==null||(i=i.utm)==null||!i.utm_campaign||((n=e.conditions)==null||(n=n.utm)==null?void 0:n.utm_campaign)==s.utm_campaign,h=(a=e.conditions)==null||(a=a.utm)==null||!a.utm_source||((o=e.conditions)==null||(o=o.utm)==null?void 0:o.utm_source)==s.utm_source,v=(l=e.conditions)==null||(l=l.utm)==null||!l.utm_medium||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==s.utm_medium,g=(d=e.conditions)==null||(d=d.utm)==null||!d.utm_term||((p=e.conditions)==null||(p=p.utm)==null?void 0:p.utm_term)==s.utm_term;return f&&v&&g&&h}return!1}static Hn(e){for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;r>i;i++)s[i-1]=arguments[i];M.info("[WebExperiments] "+e,s)}zn(e,r,s){this._is_bot()?$e.Hn(dl):r!=="control"?s.forEach(i=>{if(i.selector){var n;$e.Hn("applying transform of variant "+r+" for experiment "+e+" ",i);var a=(n=document)==null?void 0:n.querySelectorAll(i.selector);a==null||a.forEach(o=>{var l=o;i.html&&(l.innerHTML=i.html),i.css&&l.setAttribute("style",i.css)})}}):$e.Hn("Control variants leave the page unmodified.")}_is_bot(){return We&&this._instance?bu(We,this.Se.custom_blocked_useragents):void 0}}var Xe=be("[Conversations]"),or="Conversations not available yet.",hl="console",Vi={featureFlags:class{constructor(t){this.Qn=!1,this.Jn=!1,this.Yn=!1,this.Kn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.rs=!1,this._instance=t,this.featureFlagEventHandlers=[]}get Se(){return this._instance.config}get Ur(){return this._instance.persistence}ns(t){return this._instance.get_property(t)}ss(){var t,e;return(t=(e=this.Ur)==null?void 0:e.Gt(this.Se.feature_flag_cache_ttl_ms))!==null&&t!==void 0&&t}os(){return!!this.ss()&&(this.rs||this.Yn||(this.rs=!0,Ie.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}ls(){var t,e=(t=this.Se.evaluation_contexts)!==null&&t!==void 0?t:this.Se.evaluation_environments;return!this.Se.evaluation_environments||this.Se.evaluation_contexts||this.ts||(Ie.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ts=!0),e!=null&&e.length?e.filter(r=>{var s=r&&typeof r=="string"&&r.trim().length>0;return s||Ie.error("Invalid evaluation context found:",r,"Expected non-empty string"),s}):[]}us(){return this.ls().length>0}hs(){var t=this.Se.flag_keys;if(!O(t)){if(ee(t))return t.filter(e=>{var r=e&&typeof e=="string"&&e.trim().length>0;return r||Ie.error("Invalid flag key found:",e,"Expected non-empty string"),r});Ie.error("Invalid flag_keys found:",t,"Expected array of non-empty strings")}}initialize(){var t,e,{config:r}=this._instance,s=(t=(e=r.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(s).length){var i,n,a=(i=(n=r.bootstrap)==null?void 0:n.featureFlagPayloads)!==null&&i!==void 0?i:{},o=Object.keys(s).filter(u=>!!s[u]).reduce((u,d)=>(u[d]=s[d]||!1,u),{}),l=Object.keys(a).filter(u=>o[u]).reduce((u,d)=>(a[d]&&(u[d]=a[d]),u),{});this.receivedFeatureFlags({featureFlags:o,featureFlagPayloads:l})}}updateFlags(t,e,r){var s,i,n=r!=null&&r.merge&&(s=this.ns(dr))!==null&&s!==void 0?s:{},a=r!=null&&r.merge&&(i=this.ns(fi))!==null&&i!==void 0?i:{},o=j({},n,t),l=j({},a,e),u={};for(var[d,p]of Object.entries(o))u[d]={key:d,enabled:Kd(p),variant:Qd(p),reason:void 0,metadata:O(l==null?void 0:l[d])?void 0:{id:0,version:void 0,description:void 0,payload:l[d]}};this.receivedFeatureFlags({flags:u})}get hasLoadedFlags(){return this.Jn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this.ns(ia),e=this.ns(Ct),r=this.ns(Nr);if(!r&&!e)return t||{};var s=he({},t||{}),i=[...new Set([...Object.keys(r||{}),...Object.keys(e||{})])];for(var n of i){var a,o,l=s[n],u=e==null?void 0:e[n],d=O(u)?(a=l==null?void 0:l.enabled)!==null&&a!==void 0&&a:!!u,p=O(u)?l.variant:typeof u=="string"?u:void 0,f=r==null?void 0:r[n],h=j({},l,{enabled:d,variant:d?p??(l==null?void 0:l.variant):void 0});d!==(l==null?void 0:l.enabled)&&(h.original_enabled=l==null?void 0:l.enabled),p!==(l==null?void 0:l.variant)&&(h.original_variant=l==null?void 0:l.variant),f&&(h.metadata=j({},l==null?void 0:l.metadata,{payload:f,original_payload:l==null||(o=l.metadata)==null?void 0:o.payload})),s[n]=h}return this.Qn||(Ie.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:r,finalDetails:s}),this.Qn=!0),s}getFlagVariants(){var t=this.ns(dr),e=this.ns(Ct);if(!e)return t||{};for(var r=he({},t),s=Object.keys(e),i=0;s.length>i;i++)r[s[i]]=e[s[i]];return this.Qn||(Ie.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:r}),this.Qn=!0),r}getFlagPayloads(){var t=this.ns(fi),e=this.ns(Nr);if(!e)return t||{};for(var r=he({},t||{}),s=Object.keys(e),i=0;s.length>i;i++)r[s[i]]=e[s[i]];return this.Qn||(Ie.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,finalPayloads:r}),this.Qn=!0),r}reloadFeatureFlags(){this.Kn||this.Se.advanced_disable_feature_flags||this.ds||(this._instance.Ii.emit
2("featureFlagsReloading",!0),this.ds=setTimeout(()=>{this.cs()},5))}vs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Jn||this.Yn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.Kn=t}cs(t){var e;if(this.vs(),!this._instance.mr())if(this.Yn)this.Xn=!0;else{var r=this.Se.token,s=this.ns(Ai),i={token:r,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:j({},((e=this.Ur)==null?void 0:e.get_initial_props())||{},this.ns(lr)||{}),group_properties:this.ns(cr),timezone:du()};ze(s)||O(s)||(i.$device_id=s),(t!=null&&t.disableFlags||this.Se.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.us()&&(i.evaluation_contexts=this.ls());var n=this.hs();O(n)||(i.flag_keys=n);var a=!!this.Se.advanced_only_evaluate_survey_feature_flags,o=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Se.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Yn=!0,this._instance._send_request({method:"POST",url:o,data:i,compression:this.Se.disable_compression?void 0:yt.Base64,timeout:this.Se.feature_flag_request_timeout_ms,callback:l=>{var u,d,p,f=!0;if(l.statusCode===200&&(this.Xn||(this.$anon_distinct_id=void 0),f=!1),this.Yn=!1,!i.disable_flags||this.Xn){this.es=!f;var h=[];l.error?l.error instanceof Error?h.push(l.error.name==="AbortError"?"timeout":"connection_error"):h.push("unknown_error"):l.statusCode!==200&&h.push("api_error_"+l.statusCode),(u=l.json)!=null&&u.errorsWhileComputingFlags&&h.push("errors_while_computing_flags");var v,g=!((d=l.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));g&&h.push("quota_limited"),(p=this.Ur)==null||p.register({[ca]:h}),g?Ie.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."):(i.disable_flags||this.receivedFeatureFlags((v=l.json)!==null&&v!==void 0?v:{},f,{partialResponse:a}),this.Xn&&(this.Xn=!1,this.cs()))}}})}}getFeatureFlag(t,e){var r;if(e===void 0&&(e={}),!e.fresh||this.es)if(this.Jn||this.getFlags()&&this.getFlags().length>0){if(!this.os()){var s=this.getFeatureFlagResult(t,e);return(r=s==null?void 0:s.variant)!==null&&r!==void 0?r:s==null?void 0:s.enabled}}else Ie.warn('getFeatureFlag for key "'+t+Tn)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var e=this.getFeatureFlagResult(t,{send_event:!1});return e==null?void 0:e.payload}getFeatureFlagResult(t,e){if(e===void 0&&(e={}),!e.fresh||this.es)if(this.Jn||this.getFlags()&&this.getFlags().length>0){if(!this.os()){var r=this.getFlagVariants(),s=t in r,i=r[t],n=this.getFlagPayloads()[t],a=String(i),o=this.ns(na)||void 0,l=this.ns(Fs)||void 0,u=this.ns(js)||{};if(this.Se.advanced_feature_flags_dedup_per_session){var d,p=this._instance.get_session_id(),f=this.ns(la);p&&p!==f&&(u={},(d=this.Ur)==null||d.register({[js]:u,[la]:p}))}if((e.send_event||!("send_event"in e))&&(!(t in u)||!u[t].includes(a))){var h,v,g,m,y,E,x,k,I,L;ee(u[t])?u[t].push(a):u[t]=[a],(h=this.Ur)==null||h.register({[js]:u});var P=this.getFeatureFlagDetails(t),A=[...(v=this.ns(ca))!==null&&v!==void 0?v:[]];O(i)&&A.push("flag_missing");var T={$feature_flag:t,$feature_flag_response:i,$feature_flag_payload:n||null,$feature_flag_request_id:o,$feature_flag_evaluated_at:l,$feature_flag_bootstrapped_response:((g=this.Se.bootstrap)==null||(g=g.featureFlags)==null?void 0:g[t])||null,$feature_flag_bootstrapped_payload:((m=this.Se.bootstrap)==null||(m=m.featureFlagPayloads)==null?void 0:m[t])||null,$used_bootstrap_value:!this.es};O(P==null||(y=P.metadata)==null?void 0:y.version)||(T.$feature_flag_version=P.metadata.version);var N,F=(E=P==null||(x=P.reason)==null?void 0:x.description)!==null&&E!==void 0?E:P==null||(k=P.reason)==null?void 0:k.code;F&&(T.$feature_flag_reason=F),P!=null&&(I=P.metadata)!=null&&I.id&&(T.$feature_flag_id=P.metadata.id),O(P==null?void 0:P.original_variant)&&O(P==null?void 0:P.original_enabled)||(T.$feature_flag_original_response=O(P.original_variant)?P.original_enabled:P.original_variant),P!=null&&(L=P.metadata)!=null&&L.original_payload&&(T.$feature_flag_original_payload=P==null||(N=P.metadata)==null?void 0:N.original_payload),A.length&&(T.$feature_flag_error=A.join(",")),this._instance.capture("$feature_flag_called",T)}if(s)return{key:t,enabled:!!i,variant:typeof i=="string"?i:void 0,payload:Wd(n)}}}else Ie.warn('getFeatureFlagResult for key "'+t+Tn)}getRemoteConfigPayload(t,e){var r=this.Se.token,s={distinct_id:this._instance.get_distinct_id(),token:r};this.us()&&(s.evaluation_contexts=this.ls());var i=this.hs();O(i)||(s.flag_keys=i),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:s,compression:this.Se.disable_compression?void 0:yt.Base64,timeout:this.Se.feature_flag_request_timeout_ms,callback(n){var a,o=(a=n.json)==null?void 0:a.featureFlagPayloads;e((o==null?void 0:o[t])||void 0)}})}isFeatureEnabled(t,e){if(e===void 0&&(e={}),!e.fresh||this.es){if(this.Jn||this.getFlags()&&this.getFlags().length>0){var r=this.getFeatureFlag(t,e);return O(r)?void 0:!!r}Ie.warn('isFeatureEnabled for key "'+t+Tn)}}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(e=>e!==t)}receivedFeatureFlags(t,e,r){if(this.Ur){this.Jn=!0;var s=this.getFlagVariants(),i=this.getFlagPayloads(),n=this.getFlagsWithDetails();(function(a,o,l,u,d,p){l===void 0&&(l={}),u===void 0&&(u={}),d===void 0&&(d={});var f=(A=>{var T=A.flags;return T?(A.featureFlags=Object.fromEntries(Object.keys(T).map(N=>{var F;return[N,(F=T[N].variant)!==null&&F!==void 0?F:T[N].enabled]})),A.featureFlagPayloads=Object.fromEntries(Object.keys(T).filter(N=>T[N].enabled).filter(N=>{var F;return(F=T[N].metadata)==null?void 0:F.payload}).map(N=>{var F;return[N,(F=T[N].metadata)==null?void 0:F.payload]}))):A.featureFlags&&Ie.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),A})(a),h=f.flags,v=f.featureFlags,g=f.featureFlagPayloads;if(v){var m=a.requestId,y=a.evaluatedAt;if(ee(v)){Ie.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var E={};if(v)for(var x=0;v.length>x;x++)E[v[x]]=!0;o&&o.register({[pi]:v,[dr]:E})}else{var k=v,I=g,L=h;if(p!=null&&p.partialResponse)k=j({},l,k),I=j({},u,I),L=j({},d,L);else if(a.errorsWhileComputingFlags)if(h){var P=new Set(Object.keys(h).filter(A=>{var T;return!((T=h[A])!=null&&T.failed)}));k=j({},l,Object.fromEntries(Object.entries(k).filter(A=>{var[T]=A;return P.has(T)}))),I=j({},u,Object.fromEntries(Object.entries(I||{}).filter(A=>{var[T]=A;return P.has(T)}))),L=j({},d,Object.fromEntries(Object.entries(L||{}).filter(A=>{var[T]=A;return P.has(T)})))}else k=j({},l,k),I=j({},u,I),L=j({},d,L);o&&o.register(j({[pi]:Object.keys(ul(k)),[dr]:k||{},[fi]:I||{},[ia]:L||{}},m?{[na]:m}:{},y?{[Fs]:y}:{}))}}})(t,this.Ur,s,i,n,r),e||(this.rs=!1),this.fs(e)}}
2override(t,e){e===void 0&&(e=!1),Ie.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this.Ur)return Ie.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this.Ur.unregister(Ct),this.Ur.unregister(Nr),this.fs(),ar.info("All overrides cleared");if(ee(t)){var e=cl(t);return this.Ur.register({[Ct]:e}),this.fs(),ar.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var r,s=t;if(this.Qn=!!((r=s.suppressWarning)!==null&&r!==void 0&&r),"flags"in s){if(s.flags===!1)this.Ur.unregister(Ct),ar.info("Flag overrides cleared");else if(s.flags){if(ee(s.flags)){var i=cl(s.flags);this.Ur.register({[Ct]:i})}else this.Ur.register({[Ct]:s.flags});ar.info("Flag overrides set",{flags:s.flags})}}return"payloads"in s&&(s.payloads===!1?(this.Ur.unregister(Nr),ar.info("Payload overrides cleared")):s.payloads&&(this.Ur.register({[Nr]:s.payloads}),ar.info("Payload overrides set",{payloads:s.payloads}))),void this.fs()}if(t&&typeof t=="object")return this.Ur.register({[Ct]:t}),this.fs(),ar.info("Flag overrides set",{flags:t});Ie.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.Jn){var{flags:e,flagVariants:r}=this.ps();t(e,r)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,r){var s,i=(this.ns(ks)||[]).find(l=>l.flagKey===t),n={["$feature_enrollment/"+t]:e},a={$feature_flag:t,$feature_enrollment:e,$set:n};i&&(a.$early_access_feature_name=i.name),r&&(a.$feature_enrollment_stage=r),this._instance.capture("$feature_enrollment_update",a),this.setPersonPropertiesForFlags(n,!1);var o=j({},this.getFlagVariants(),{[t]:e});(s=this.Ur)==null||s.register({[pi]:Object.keys(ul(o)),[dr]:o}),this.fs()}getEarlyAccessFeatures(t,e,r){e===void 0&&(e=!1);var s=this.ns(ks),i=r?"&"+r.map(n=>"stage="+n).join("&"):"";if(s&&!e)return t(s);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Se.token+i),method:"GET",callback:n=>{var a,o;if(n.json){var l=n.json.earlyAccessFeatures;return(a=this.Ur)==null||a.unregister(ks),(o=this.Ur)==null||o.register({[ks]:l}),t(l)}}})}ps(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter(r=>e[r]),flagVariants:Object.keys(e).filter(r=>e[r]).reduce((r,s)=>(r[s]=e[s],r),{})}}fs(t){var{flags:e,flagVariants:r}=this.ps();this.featureFlagEventHandlers.forEach(s=>s(e,r,{errorsLoading:t}))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var r=this.ns(lr)||{},s=(t==null?void 0:t.$set)||(t!=null&&t.$set_once?{}:t),i=t==null?void 0:t.$set_once,n={};if(i)for(var a in i)({}).hasOwnProperty.call(i,a)&&(a in r||(n[a]=i[a]));this._instance.register({[lr]:j({},r,n,s)}),e&&this._instance.reloadFeatureFlags()}unsetPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var r=j({},this.ns(lr)||{});t.forEach(s=>{delete r[s]}),this._instance.register({[lr]:r}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(t){t===void 0&&(t=!0),this._instance.unregister(lr),t&&this._instance.reloadFeatureFlags()}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var r=this.ns(cr)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(s=>{r[s]=j({},r[s],t[s]),delete t[s]}),this._instance.register({[cr]:j({},r,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.ns(cr)||{};this._instance.register({[cr]:j({},e,{[t]:{}})})}else this._instance.unregister(cr)}reset(){this.Jn=!1,this.Yn=!1,this.Kn=!1,this.Xn=!1,this.es=!1,this.$anon_distinct_id=void 0,this.vs(),this.Qn=!1}}},tf={sessionRecording:class{get Se(){return this._instance.config}get Ur(){return this._instance.persistence}get started(){var t;
2return!((t=this.gs)==null||!t.isStarted)}get status(){var t,e;return this.ys===ys||this.ys===oi?this.ys:(t=(e=this.gs)==null?void 0:e.status)!==null&&t!==void 0?t:this.ys}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.ys=rl,this.bs=void 0,this._instance=t,!this._instance.sessionManager)throw Tt.error("started without valid sessionManager"),new Error(Ta+" started without valid sessionManager. This is a bug.");if(this.Se.cookieless_mode===$t)throw new Error(Ta+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get _s(){var t,e=!((t=this._instance.get_property(hr))==null||!t.enabled),r=!this.Se.disable_session_recording,s=this.Se.disable_session_recording||this._instance.consent.isOptedOut();return _&&e&&r&&!s}startIfEnabledOrStop(t){var e;if(!this._s||(e=this.gs)==null||!e.isStarted){var r=!O(Object.assign)&&!O(Array.from);this._s&&r?(this.ws(t),Tt.info("starting")):(this.ys=rl,this.stopRecording())}}ws(t){var e,r,s;this._s&&(this.ys!==ys&&this.ys!==oi&&(this.ys=sl),D!=null&&(e=D.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(r=D.__PosthogExtensions__)!=null&&r.initSessionRecording?this.xs(t):(s=D.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this._instance,this.ks,i=>{if(i)return Tt.error("could not load recorder",i);this.xs(t)}))}stopRecording(){var t,e;(t=this.bs)==null||t.call(this),this.bs=void 0,(e=this.gs)==null||e.stop()}Ss(){var t,e;(t=this.bs)==null||t.call(this),this.bs=void 0,(e=this.gs)==null||e.discard()}Cs(){var t,e;(t=this.Ur)==null||t.unregister(Va),(e=this.Ur)==null||e.unregister($c)}Is(t,e){if(Q(t))return null;var r,s=He(t)?t:parseFloat(t);return typeof(r=s)!="number"||!Number.isFinite(r)||0>r||r>1?(Tt.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null):s}Ts(t){if(this.Ur){var e,r,s=this.Ur,i=()=>{var n,a=t.sessionRecording===!1?void 0:t.sessionRecording,o=this.Is((n=this.Se.session_recording)==null?void 0:n.sampleRate,"session_recording.sampleRate"),l=this.Is(a==null?void 0:a.sampleRate,"remote config sampleRate"),u=o??l;Q(u)&&this.Cs();var d=a==null?void 0:a.minimumDurationMilliseconds;s.register({[hr]:j({cache_timestamp:Date.now(),enabled:!!a},a,{networkPayloadCapture:j({capturePerformance:t.capturePerformance},a==null?void 0:a.networkPayloadCapture),canvasRecording:{enabled:a==null?void 0:a.recordCanvas,fps:a==null?void 0:a.canvasFps,quality:a==null?void 0:a.canvasQuality},sampleRate:u,minimumDurationMilliseconds:O(d)?null:d,endpoint:a==null?void 0:a.endpoint,triggerMatchType:a==null?void 0:a.triggerMatchType,masking:a==null?void 0:a.masking,urlTriggers:a==null?void 0:a.urlTriggers,version:a==null?void 0:a.version,triggerGroups:a==null?void 0:a.triggerGroups})})};i(),(e=this.bs)==null||e.call(this),this.bs=(r=this._instance.sessionManager)==null?void 0:r.onSessionId(i)}}onRemoteConfig(t){return"sessionRecording"in t?t.sessionRecording===!1?(this.Ts(t),void this.Ss()):(this.Ts(t),void this.startIfEnabledOrStop()):(this.ys===ys&&(this.ys=oi,Tt.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var r;e===void 0&&(e="log"),(r=this.gs)!=null&&r.log?this.gs.log(t,e):Tt.warn("log called before recorder was ready")}get ks(){var t,e,r=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(hr);return(r==null||(e=r.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}Es(){var t,e,r=this._instance.get_property(hr);if(!r)return!1;try{e=typeof r=="object"?r:JSON.parse(r)}catch(i){return Tt.warn("persisted remote config for session recording is invalid and will be ignored",i),!1}var s=(t=e.cache_timestamp)!==null&&t!==void 0?t:Date.now();return 36e5>=Date.now()-s}xs(t){var e,r;if((e=D.__PosthogExtensions__)==null||!e.initSessionRecording)return Tt.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[Bc]:!0});if(this.gs||(this.gs=(r=D.__PosthogExtensions__)==null?void 0:r.initSessionRecording(this._instance),this.gs._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.ys===oi||this.ys===ys?void 0:(this.ys=ys,Tt.info("persisted remote config is stale, requesting fresh config before starting"),void new hu(this._instance).load());this.ys=sl,this.gs.start(t)}onRRwebEmit(t){var e;
2(e=this.gs)==null||e.onRRwebEmit==null||e.onRRwebEmit(t)}overrideLinkedFlag(){var t,e;this.gs||(e=this.Ur)==null||e.register({[Lc]:!0}),(t=this.gs)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.gs||(e=this.Ur)==null||e.register({[Fc]:!0}),(t=this.gs)==null||t.overrideSampling()}overrideTrigger(t){var e,r;this.gs||(r=this.Ur)==null||r.register({[t==="url"?Dc:Uc]:!0}),(e=this.gs)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.gs)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var r;return!((r=this.gs)==null||!r.tryAddCustomEvent(t,e))}}},rf={autocapture:class{constructor(t){this.Ms=!1,this.Ps=null,this.Rs=!1,this.instance=t,this.rageclicks=new el(t.config.rageclick),this.Os=null}initialize(){this.startIfEnabled()}get Se(){var t,e,r=ge(this.instance.config.autocapture)?this.instance.config.autocapture:{};return r.url_allowlist=(t=r.url_allowlist)==null?void 0:t.map(s=>new RegExp(s)),r.url_ignorelist=(e=r.url_ignorelist)==null?void 0:e.map(s=>new RegExp(s)),r}Ls(){if(this.isBrowserSupported()){if(_&&$){var t=r=>{r=r||(_==null?void 0:_.event);try{this.Fs(r)}catch(s){xn.error("Failed to capture event",s)}};if(xe($,"submit",t,{capture:!0}),xe($,"change",t,{capture:!0}),xe($,"click",t,{capture:!0}),this.Se.capture_copied_text){var e=r=>{r=r||(_==null?void 0:_.event);try{this.Fs(r,bn)}catch(s){xn.error("Failed to capture copy/cut event",s)}};xe($,"copy",e,{capture:!0}),xe($,"cut",e,{capture:!0})}}}else xn.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Ms&&(this.Ls(),this.Ms=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.Rs=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Jn]:!!t.autocapture_opt_out}),this.Ps=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.Os=t}getElementSelectors(t){var e,r=[];return(e=this.Os)==null||e.forEach(s=>{var i=$==null?void 0:$.querySelectorAll(s);i==null||i.forEach(n=>{t===n&&r.push(s)})}),r}get isEnabled(){var t,e,r=(t=this.instance.persistence)==null?void 0:t.props[Jn];if(ze(this.Ps)&&!wt(r)&&!this.instance.mr())return!1;var s=(e=this.Ps)!==null&&e!==void 0?e:!!r;return!!this.instance.config.autocapture&&!s}Fs(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var r,s=dn(t);Wc(s)&&(s=s.parentNode||null),e==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(r=this.rageclicks)!=null&&r.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&Oo(s,this.instance.config.rageclick)&&this.Fs(t,"$rageclick");var i=e===bn;if(s&&function(p,f,h,v,g){var m,y,E,x,k,I;if(h===void 0&&(h=void 0),!_||Ka(p)||(m=h)!=null&&m.url_allowlist&&!jo(h.url_allowlist)||(y=h)!=null&&y.url_ignorelist&&jo(h.url_ignorelist))return!1;if((E=h)!=null&&E.dom_event_allowlist){var L=h.dom_event_allowlist;if(L&&!L.some(F=>f.type===F))return!1}var{parentIsUsefulElement:P,targetElementList:A}=Xc(p,v);if(!function(F,R){var q=R==null?void 0:R.element_allowlist;if(O(q))return!0;var z,re=function(Y){if(q.some(me=>Y.tagName.toLowerCase()===me))return{v:!0}};for(var Z of F)if(z=re(Z))return z.v;return!1}(A,h)||!va(A,(x=h)==null?void 0:x.css_selector_allowlist)||va(A,(k=(I=h)==null?void 0:I.css_selector_ignorelist)!==null&&k!==void 0?k:rp))return!1;var T=_.getComputedStyle(p);if(T&&T.getPropertyValue("cursor")==="pointer"&&f.type==="click")return!0;var N=p.tagName.toLowerCase();switch(N){case"html":return!1;case"form":return(g||["submit"]).indexOf(f.type)>=0;case"input":case"select":case"textarea":return(g||["change","click"]).indexOf(f.type)>=0;default:return P?(g||["click"]).indexOf(f.type)>=0:(g||["click"]).indexOf(f.type)>=0&&(Wa.indexOf(N)>-1||p.getAttribute("contenteditable")==="true")}}(s,t,this.Se,i,i?["copy","cut"]:void 0)){var{props:n,explicitNoCapture:a}=Gp(s,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Se.element_attribute_ignorelist,elementsC
2hainAsString:this.Rs,disableCaptureUrlHashes:this.instance.config.disable_capture_url_hashes});if(a)return!1;var o=this.getElementSelectors(s);if(o&&o.length>0&&(n.$element_selectors=o),e===bn){var l,u=Qc(_==null||(l=_.getSelection())==null?void 0:l.toString()),d=t.type||"clipboard";if(!u)return!1;n.$selected_content=u,n.$copy_type=d}return this.instance.capture(e,n),!0}}}isBrowserSupported(){return Rt($==null?void 0:$.querySelectorAll)}},historyAutocapture:class{constructor(t){var e;this._instance=t,this.As=(_==null||(e=_.location)==null?void 0:e.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(M.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.$s&&this.$s(),this.$s=void 0,M.info("History API monitoring stopped")}monitorHistoryChanges(){_&&_.history&&(this.Ds("pushState"),this.Ds("replaceState"),this.Ns())}Ds(t){var e;if(_&&((e=_.history[t])==null||!e.__posthog_wrapped__)){var r=this;(function(s,i,n){try{if(!(i in s))return()=>{};var a=s[i],o=n(a);return Rt(o)&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__posthog_wrapped__:{enumerable:!1,value:!0}})),s[i]=o,()=>{s[i]===o&&(s[i]=a)}}catch{return()=>{}}})(_.history,t,s=>function(i,n,a){s.call(this,i,n,a),r.qs(t)})}}qs(t){try{var e,r=_==null||(e=_.location)==null?void 0:e.pathname;if(!r)return;r!==this.As&&this.isEnabled&&this._instance.capture($r,{navigation_type:t}),this.As=r}catch(s){M.error("Error capturing "+t+" pageview",s)}}Ns(){if(!this.$s){var t=()=>{this.qs("popstate")};xe(_,"popstate",t),this.$s=()=>{_&&_.removeEventListener("popstate",t)}}}},heatmaps:class{get Se(){return this.instance.config}constructor(t){var e;this.Bs=!1,this.Ms=!1,this.js=null,this.instance=t,this.Bs=!((e=this.instance.persistence)==null||!e.props[Xn]),this.rageclicks=new el(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return ge(this.Se.capture_heatmaps)&&this.Se.capture_heatmaps.flush_interval_milliseconds&&(t=this.Se.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return Q(this.Se.capture_heatmaps)?Q(this.Se.enable_heatmaps)?this.Bs:this.Se.enable_heatmaps:this.Se.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Ms)return;Kp.info("starting..."),this.Hs(),this.ke()}else{var t;clearInterval((t=this.js)!==null&&t!==void 0?t:void 0),this.Us(),this.getAndClearBuffer()}}onRemoteConfig(t){if("heatmaps"in t){var e=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Xn]:e}),this.Bs=e,this.startIfEnabled()}}getAndClearBuffer(){var t=this.R;return this.R=void 0,t}zs(t){this.fe(t.originalEvent,"deadclick")}ke(){this.js&&clearInterval(this.js),this.js=($==null?void 0:$.visibilityState)==="visible"?setInterval(this.Or.bind(this),this.flushIntervalMilliseconds):null}Hs(){_&&$&&(this.Vs=this.Or.bind(this),xe(_,Oi,this.Vs),this.Ws=t=>this.fe(t||(_==null?void 0:_.event)),xe($,"click",this.Ws,{capture:!0}),this.Gs=t=>this.Zs(t||(_==null?void 0:_.event)),xe($,"mousemove",this.Gs,{capture:!0}),this.Qs=new No(this.instance,up,this.zs.bind(this)),this.Qs.startIfEnabledOrStop(),this.Js=this.ke.bind(this),xe($,Ii,this.Js),this.Ms=!0)}Us(){var t;_&&$&&(this.Vs&&_.removeEventListener(Oi,this.Vs),this.Ws&&$.removeEventListener("click",this.Ws,{capture:!0}),this.Gs&&$.removeEventListener("mousemove",this.Gs,{capture:!0}),this.Js&&$.removeEventListener(Ii,this.Js),clearTimeout(this.Ys),(t=this.Qs)==null||t.stop(),this.Ms=!1)}Ks(t,e){var r=this.instance.scrollManager.scrollY(),s=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),n=function(a,o,l){for(var u=a;u&&er(u)&&!Ke(u,"body");){if(u===l)return!1;if(V(o,_==null?void 0:_.getComputedStyle(u).position))return!0;u=Yc(u)}return!1}(dn(t),["fixed","sticky"],i);return{x:t.clientX+(n?0:s),y:t.clientY+(n?0:r),target_fixed:n,type:e}}fe(t,e){var r;if(e===void 0&&(e="click"),!Ao(t.target)&&il(t)){var s=this.Ks(t,e);(r=this.rageclicks)!=null&&r.isRageClick(t.clientX,t.clientY,new Date().getTime())&&Oo(dn(t),this.instance.config.rageclick)&&this.Xs(j({},s,{type:"rageclick"})),this.Xs(s)}}Zs(t){!Ao(t.target)&&il(t)&&(clearTimeout(this.Ys),this.Ys=setTimeout(()=>{this.Xs(this.Ks(t,"mousemove"))},500))}Xs(t){if(_){var e=this.Se.disable_capture_url_hashes?Zt(_.location.href):_.location.href,r=this.Se.custom_personal_data_properties,s=this.Se.mask_personal_data_properties?[...rs,...r||[]]:[],i=Us(e,s,zs);this.R=this.R||{},this.R[i]||(this.R[i]=[]),this.R[i].push(t)}}Or(){this.R&&!Jt(this.R)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:No,webVitalsAutocapture:class{constructor(t){var e;this.Bs=!1,this.Ms=!1,this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.R.metrics.length!==0&&(this._instance.capture("$web_vitals",this.R.metrics.reduce((r,s)=>j({},r,{["$web_vitals_"+s.name+"_event"]:j({},s),["$web_vitals_"+s.name+"_value"]:s.value}),{})),this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.io=r=>{var s;this.R=this.R||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=this.no();if(!O(i))if(Q(r==null?void 0:r.name)||Q(r==null?void 0:r.value))nr.error("Invalid metric received",r);else if(!this.so||this.so>r.value){this.R.url!==i&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),O(this.R.url)&&(this.R.url=i),this.R.firstMetricTimestamp=O(this.R.firstMetricTimestamp)?Date.now():this.R.firstMetricTimestamp,r.attribution&&r.attribution.interactionTargetElement&&(r.attribution.interactionTargetElement=void 0);var n=(s=this._instance.sessionManager)==null?void 0:s.checkAndGetSessionAndWindowId(!0),a=j({},r,{$current_url:i,timestamp:Date.now()});O(n)||(a.$session_id=n.sessionId,a.$window_id=n.windowId),this.R.metrics.push(a),this.R.metrics.length===this.allowedMetrics.length&&this.eo()}else nr.error("Ignoring metric with value >= "+this.so,r)},this.oo=()=>
2{if(!this.Ms){var r,s,i,n,a=D.__PosthogExtensions__;O(a)||O(a.postHogWebVitalsCallbacks)||({onLCP:r,onCLS:s,onFCP:i,onINP:n}=a.postHogWebVitalsCallbacks),r&&s&&i&&n?(this.allowedMetrics.indexOf("LCP")>-1&&r(this.io.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&s(this.io.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&i(this.io.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&n(this.io.bind(this)),this.Ms=!0):nr.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this.Bs=!((e=this._instance.persistence)==null||!e.props[ra]),this.startIfEnabled()}get ao(){return this._instance.config.capture_performance}get allowedMetrics(){var t,e,r=ge(this.ao)?(t=this.ao)==null?void 0:t.web_vitals_allowed_metrics:void 0;return Q(r)?((e=this._instance.persistence)==null?void 0:e.props[sa])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(ge(this.ao)?this.ao.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=ge(this.ao)?this.ao.web_vitals_attribution:void 0;return t!=null&&t}get so(){var t=ge(this.ao)&&He(this.ao.__web_vitals_max_value)?this.ao.__web_vitals_max_value:tl;return t>0&&6e4>=t?tl:t}get isEnabled(){var t=Pe==null?void 0:Pe.protocol;if(t!=="http:"&&t!=="https:")return nr.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=ge(this.ao)?this.ao.web_vitals:wt(this.ao)?this.ao:void 0;return wt(e)?e:this.Bs}startIfEnabled(){this.isEnabled&&!this.Ms&&(nr.info("enabled, starting..."),this.Mt(this.oo))}onRemoteConfig(t){if("capturePerformance"in t){var e=ge(t.capturePerformance)&&!!t.capturePerformance.web_vitals,r=ge(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[ra]:e}),this._instance.persistence.register({[sa]:r})),this.Bs=e,this.startIfEnabled()}}Mt(t){var e,r;(e=D.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?t():(r=D.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",s=>{s?nr.error("failed to load script",s):t()})}no(){var t=_?this._instance.config.disable_capture_url_hashes?Zt(_.location.href):_.location.href:void 0;if(t){var e=this._instance.config.custom_personal_data_properties,r=this._instance.config.mask_personal_data_properties?[...rs,...e||[]]:[];return Us(t,r,zs)}nr.error("Could not determine current URL")}}},sf={exceptionObserver:class{constructor(t){var e,r,s;this.oo=()=>{var i;if(_&&this.isEnabled&&(i=D.__PosthogExtensions__)!=null&&i.errorWrappingFunctions){var n=D.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,a=D.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,o=D.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.lo&&this.Se.capture_unhandled_errors&&(this.lo=n(this.captureException.bind(this))),!this.uo&&this.Se.capture_unhandled_rejections&&(this.uo=a(this.captureException.bind(this))),!this.ho&&this.Se.capture_console_errors&&(this.ho=o(this.captureException.bind(this)))}catch(l){_s.error("failed to start",l),this.do()}}},this._instance=t,this.co=!((e=this._instance.persistence)==null||!e.props[Zn]),this.vo=new nh({refillRate:(r=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&r!==void 0?r:1,bucketSize:(s=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&s!==void 0?s:10,refillInterval:1e4,Ae:_s}),this.Se=this.fo(),this.startIfEnabledOrStop()}fo(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return ge(t)?e=j({},e,t):(O(t)?this.co:t)&&(e=j({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.Se.capture_console_errors||this.Se.capture_unhandled_errors||this.Se.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(_s.info("enabled"),this.do(),this.Mt(this.oo)):this.do()}Mt(t){var e,r;(e=D.__PosthogExtensions__)!=null&&e.errorWrappingFunctions?t():(r=D.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"exception-autocapture",s=>{if(s)return _s.error("failed to load script",s);t()})}do(){var t,e,r;(t=this.lo)==null||t.call(this),this.lo=void 0,(e=this.uo)==null||e.call(this),this.uo=void 0,(r=this.ho)==null||r.call(this),this.ho=void 0}onRemoteConfig(t){"autocaptureExceptions"in t&&(this.co=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[Zn]:this.co}),this.Se=this.fo(),this.startIfEnabledOrStop())}onConfigChange(){this.Se=this.fo()}captureException(t){var e,r,s,i=(e=t==null||(r=t.$exception_list)==null||(r=r[0])==null?void 0:r.type)!==null&&e!==void 0?e:"Exception";this.vo.consumeRateLimit(i)?_s.info("Skipping exception capture because of client rate limiting.",{exception:i}):(s=this._instance.exceptions)==null||s.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,r;this.po=[],this.mo=new xh([new jh,new Lh,new Ih,new Ch,new $h,new Nh,new Rh,new Fh],function(s){for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;i>a;a++)n[a-1]=arguments[a];return function(o,l){l===void 0&&(l=0);for(var u=[],d=o.split(` 3`),p=l;d.length>p;p++){var f=d[p];if(1024>=f.length){var h=So.test(f)?f.replace(So,"$1"):f;if(!h.match(/\S*Error: /)){for(var v of n){var g=v(h,s);if(g){u.push(g);break}}if(u.length>=50)break}}}return function(m){if(!m.length)return[];var y=Array.from(m);return y.reverse(),y.slice(0,50).map(E=>{return j({},E,{filename:E.filename||(x=y,x[x.length-1]||{}).filename,function:E.function||ts});var x})}(u)}}("web:javascript",kh,Ah)),this._instance=t,this.po=(e=(r=this._instance.persistence)==null?void 0:r.get_property(ea))!==null&&e!==void 0?e:[],this.yo=Pi(this.bo()),this._o=new Uh(this.yo)}onConfigChange(){this.yo=Pi(this.bo()),this._o.setConfig(this.yo)}onRemoteConfig(t){var e,r,s;if("errorTracking"in t){var i=(e=(r=t.errorTracking)==null?void 0:r.suppressionRules)!==null&&e!==void 0?e:[],n=(s=t.errorTracking)==null?void 0:s.captureExtensionExceptions;this.po=i,this._instance.persistence&&this._instance.persistence.register({[ea]:this.po,[ta]:n})}}get wo(){var t,e=!!this._instance.get_property(ta),r=this._instance.config.error_tracking.captureExtensionExceptions;return(t=r??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.mo.buildFromUnknown(t,{syntheticException:e==null?void 0:e.syntheticException,mechanism:{handled:e==null?void 0:e.handled}})}addExceptionStep(t,e){if(this.yo.enabled)try{if(!pe(t)||t.trim().length===0)return void Pt.warn("Ignoring exception step because message must be a non-empty string");var r=this.xo(e),{sanitizedProperties:s,droppedKeys:i}=function(n){if(!n)return{sanitizedProperties:{},droppedKeys:[]};var a=[];return{sanitizedProperties:Object.keys(n).reduce((o,l)=>Dh.has(l)?(a.push(l),o):(o[l]=n[l],o),{}),droppedKeys:a}}(r);i.length>0&&Pt.warn("Ignoring reserved exception step fields",{droppedKeys:i}),this._o.add(j({[ki]:t,[Ti]:new Date().toISOString()}
3,s))}catch(n){Pt.error("Failed to add exception step. Ignoring breadcrumb.",n)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.ko(e)){if(this.So(e))return this.Co("Exception dropped: matched a suppression rule"),void Pt.info("Skipping exception capture because a suppression rule matched");if(!this.wo&&this.Io(e))return this.Co("Exception dropped: thrown by a browser extension"),void Pt.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.To(e))return this.Co("Exception dropped: thrown by the PostHog SDK"),void Pt.info("Skipping exception capture because it was thrown by the PostHog SDK")}var r=this.yo.enabled&&Q(t.$exception_steps)?this.Eo(t):t;try{var s=this._instance.capture("$exception",r,{_noTruncate:!0,_batchKey:"exceptionEvent",Gi:!0});return s&&this._o.clear(),s}catch(i){return Pt.error("Failed to capture exception event. Dropping this exception.",i),void this._o.clear()}}catch(i){return void Pt.error("Failed to process exception event. Ignoring this exception.",i)}}Eo(t){try{var e=this._o.getAttachable();return e.length===0?t:j({},t,{$exception_steps:e})}catch(r){return Pt.error("Failed to read buffered exception steps. Capturing exception without steps.",r),t}}Co(t){this.yo.enabled&&this._o.add({[ki]:t,[Ti]:new Date().toISOString()})}xo(t){return ge(t)?j({},t):{}}bo(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}So(t){if(t.length===0)return!1;var e=t.reduce((r,s)=>{var{type:i,value:n}=s;return pe(i)&&i.length>0&&r.$exception_types.push(i),pe(n)&&n.length>0&&r.$exception_values.push(n),r},{$exception_types:[],$exception_values:[]});return this.po.some(r=>{var s=r.values.map(i=>{var n,a=xu[i.operator],o=ee(i.value)?i.value:[i.value],l=(n=e[i.key])!==null&&n!==void 0?n:[];return o.length>0&&a(o,l)});return r.type==="OR"?s.some(Boolean):s.every(Boolean)})}Io(t){return t.flatMap(e=>{var r,s;return(r=(s=e.stacktrace)==null?void 0:s.frames)!==null&&r!==void 0?r:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}To(t){if(t.length>0){var e,r,s,i,n=(e=(r=t[0].stacktrace)==null?void 0:r.frames)!==null&&e!==void 0?e:[],a=n[n.length-1];return(s=a==null||(i=a.filename)==null?void 0:i.includes("posthog.com/static"))!==null&&s!==void 0&&s}return!1}ko(t){return!Q(t)&&ee(t)}}},nf=j({productTours:class{get Ur(){return this._instance.persistence}constructor(t){this.Mo=null,this.Po=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if("productTours"in t){var e,r;if(this.Ur&&this.Ur.register({[Ha]:!!t.productTours}),!Sn(this._instance))return!this.Mo&&Q((e=this.Ur)==null?void 0:e.props[Ts])||En.info("product tours disabled; stopping and clearing cached tours"),(r=this.Mo)==null||r.stop(),this.Mo=null,void this.clearCache();this.loadIfEnabled()}}loadIfEnabled(){!this.Mo&&Sn(this._instance)&&this.Mt(()=>this.Ro())}Mt(t){var e,r;(e=D.__PosthogExtensions__)!=null&&e.generateProductTours?t():(r=D.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"product-tours",s=>{s?En.error("Could not load product tours script",s):t()})}Ro(){var t;!this.Mo&&(t=D.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Mo=D.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!ee(this.Po)||e){var r=this.Ur;if(r){var s=r.props[Ts];if(ee(s)&&!e)return this.Po=s,void t(s,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:i=>{if(Sn(this._instance)){var n=i.statusCode;if(n!==200||!i.json){var a="Product Tours API could not be loaded, status: "+n;return En.error(a),void t([],{isLoaded:!1,error:a})}var o=ee(i.json.product_tours)?i.json.product_tours:[];this.Po=o,r&&r.register({[Ts]:o}),t(o,{isLoaded:!0})}else t([],{isLoaded:!0})}})}else t(this.Po,{isLoaded:!0})}getActiveProductTours(t){Q(this.Mo)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.Mo.getActiveProductTours(t)}showProductTour(t){var e;(e=this.Mo)==null||e.showTourById(t)}previewTour(t){this.Mo?this.Mo.previewTour(t):this.Mt(()=>{var e;this.Ro(),(e=this.Mo)==null||e.previewTour(t)})}dismissProductTour(){var t;(t=this.Mo)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.Mo)==null||t.nextStep()}previousStep(){var t;(t=this.Mo)==null||t.previousStep()}clearCache(){var t;this.Po=null,(t=this.Ur)==null||t.unregister(Ts)}resetTour(t){var e;(e=this.Mo)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Mo)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Mo)==null||e.cancelPendingTour(t)}}},Vi),af={siteApps:class{constructor(t){this.Oo=0,this._instance=t,this.Lo=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Fo(t,e){if(e){var r=this.globalsForEvent(e);this.Lo.push(r),this.Lo.length>1e3&&(this.Lo=this.Lo.slice(10))}}get siteAppLoaders(){var t;return(t=D._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.Fo.bind(this));this.Ao=()=>{t(),this.Lo=[],this.Ao=void 0}}}globalsForEvent(t){var e,r,s,i,n,a,o;if(!t)throw new Error("Event payload is required");var l={},u=this._instance.get_property("$groups")||[],d=this._instance.get_property("$stored_group_properties")||{};for(var[p,f]of Object.entries(d))l[p]={id:u[p],type:p,properties:f};var{$set_once:h,$set:v}=t;return{event:j({},rc(t,Qp),{properties:j({},t.properties,v?{$set:j({},(e=(r=t.properties)==null?void 0:r.$set)!==null&&e!==void 0?e:{},v)}:{},h?{$set_once:j({},(s=(i=t.properties)==null?void 0:i.$set_once)!==null&&s!==void 0?s:{},h)}:{}),elements_chain:(n=(a=t.properties)==null?void 0:a.$elements_chain)!==null&&n!==void 0?n:"",distinct_id:(o=t.properties)==null?void 0:o.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}$o(t){var e,r=(e=t.tagName)==null?void 0:e.toLowerCase();return r==="style"&&this._instance.config.prepare_external_dependency_stylesheet?this._instance.config.prepare_external_dependency_stylesheet(t)||(gt.error("prepare_external_dependency_stylesheet returned null"),null):r==="script"&&this._instance.config.prepare_external_dependency_script?this._instance.config.prepare_external_dependency_script(t)||(gt.error("prepare_external_dependency_script returned null"),null):t}Do(){var t,e,r,s,i,n,a,o;if(!this._instance.config.prepare_external_dependency_stylesheet&&!this._instance.config.prepare_external_dependency_script)return()=>{};var l=$==null?void 0:$.defaultView,u=l==null||(t=l.Node)==null?void 0:t.prototype;if(!l||!u)return()=>{};if(this.Oo++,this.No)return this.qo();var d=[],p=this,f=new WeakSet,h=(m,y,E)=>{if(m!=null&&m[y]){var x=m[y];m[y]=E(x),d.push(()=>{m[y]=x})}},v=m=>{if(f.has(m))return m;var y=p.$o(m);return y&&f.add(y),y},g=m=>m.map(y=>typeof y=="string"?y:v(y)).filter(y=>!ze(y));return h(u,"appendChild",m=>function(y){var E=v(y);return E?m.call(this,E):y}),h(u,"insertBefore",m=>function(y,E){var x=v(y);return x?m.call(this,x,E):y}),h(u,"replaceChild",m=>function(y,E){var x=v(y);return x?m.call(this,x,E):E}),[(e=l.Element)==null?void 0:e.prototype,(r=l.Document)==null?void 0:r.prototype,(s=l.DocumentFragment)==null?void 0:s.prototype].forEach(m=>{h(m,"append",y=>function(){for(var E=arguments.length,x=new Array(E),k=0;E>k;k++)x[k]=arguments[k];return y.apply(this,g(x))}),h(m,"prepend",y=>function(){for(var E=arguments.length,x=new Array(E),k=0;E>k;k++)x[k]=arguments[k];return y.apply(this,g(x))})}),[(i=l.Element)==null?void 0:i.prototype,(n=l.CharacterData)==null?void 0:n.prototype,(a=l.DocumentType)==null?void 0:a.prototype].forEach(m=>{h(m,"before",y=>function(){for(var E=arguments.length,x=new Array(E),k=0;E>k;k++)x[k]=arguments[k];return y.apply(this,g(x))}),h(m,"after",y=>function(){for(var E=arguments.length,x=new Array(E),k=0;E>k;k++)x[k]=arguments[k];return y.apply(this,g(x))}),h(m,"replaceWith",y=>function(){for(var E=arguments.length,x=new Array(E),k=0;E>k;k++)x[k]=arguments[k];var I=g(x);return x.length&&!I.length?void 0:y.apply(this,I)})}),h((o=l.Element)==null?void 0:o.prototype,"insertAdjacentElement",m=>function(y,E){var x=v(E);return x?m.call(this,y,x):null}),this.No=()=>{d.forEach(m=>m()),this.No=void 0},this.qo()}qo(){var t=!1;return()=>{var e;t||(t=!0,this.Oo--,this.Oo===0&&((e=this.No)==null||e.call(this)))}}Bo(t,e){e===void 0&&(e=!0);var r=this.Do();try{var s=t(r);return e&&r(),s}catch(i){throw r(),i}}setupSiteApp(t){var e=this.apps[t.id],r=()=>{var a;!e.errored&&this.Lo.length&&(gt.info("Processing "+this.Lo.length+" events for site app with id "+t.id),this.Lo.forEac
3h(o=>this.Bo(()=>e.processEvent==null?void 0:e.processEvent(o))),e.processedBuffer=!0),Object.values(this.apps).every(o=>o.processedBuffer||o.errored)&&((a=this.Ao)==null||a.call(this))},s=!1,i=a=>{e.errored=!a,e.loaded=!0,gt.info("Site app with id "+t.id+" "+(a?"loaded":"errored")),s&&r()};try{var{processEvent:n}=this.Bo(a=>t.init({posthog:this._instance,callback(o){a(),i(o)}}),!1);n&&(e.processEvent=n),s=!0}catch(a){gt.error(nl+t.id,a),i(!1)}if(s&&e.loaded)try{r()}catch(a){gt.error("Error while processing buffered events PostHog app with config id "+t.id,a),e.errored=!0}}jo(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of t)this.setupSiteApp(r)}Ho(t){var e=this;if(Object.keys(this.apps).length!==0){var r=this.globalsForEvent(t),s=function(n){try{e.Bo(()=>n.processEvent==null?void 0:n.processEvent(r))}catch(a){gt.error("Error while processing event "+t.event+" for site app "+n.id,a)}};for(var i of Object.values(this.apps))s(i)}}onRemoteConfig(t){var e,r,s,i=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.jo(),void this._instance.on("eventCaptured",l=>this.Ho(l))):void gt.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((r=this.Ao)==null||r.call(this),(s=t.siteApps)!=null&&s.length)if(this.isEnabled){var n=function(l){var u;D["__$$ph_site_app_"+l]=i._instance,(u=D.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(i._instance,o,d=>{if(d)return gt.error(nl+l,d)})};for(var{id:a,url:o}of t.siteApps)n(a)}else gt.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},of={tracingHeaders:class{constructor(t){this.Uo=void 0,this.zo=void 0,this.Vo=void 0,this.oo=()=>{var e,r,s=this.Wo();s?(O(this.Uo)&&(this.Uo=(e=D.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null?void 0:e._patchXHR(s,()=>this._instance.get_distinct_id(),this._instance.sessionManager)),O(this.zo)&&(this.zo=(r=D.__PosthogExtensions__)==null||(r=r.tracingHeadersPatchFns)==null?void 0:r._patchFetch(s,()=>this._instance.get_distinct_id(),this._instance.sessionManager))):this.do()},this._instance=t}initialize(){this.startIfEnabledOrStop()}Mt(t){var e,r;(e=D.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns?t():(r=D.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"tracing-headers",s=>{if(s)return Wp.error("failed to load script",s);t()})}Go(){var t,e;return(t=(e=this._instance.config.tracing_headers)!==null&&e!==void 0?e:this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}Wo(){var t=this.Go();return ee(t)?(ee(this.Vo)?this.Vo.splice(0,this.Vo.length,...t):this.Vo=[...t],t.length>0?this.Vo:void 0):(ee(this.Vo)&&this.Vo.splice(0),this.Vo=t||void 0,this.Vo)}do(){var t,e;(t=this.Uo)==null||t.call(this),(e=this.zo)==null||e.call(this),this.Uo=void 0,this.zo=void 0}startIfEnabledOrStop(){this.Wo()?this.Mt(this.oo):this.do()}}},lf=j({surveys:class{get Se(){return this._instance.config}constructor(t){this.Zo=void 0,this._surveyManager=null,this.Qo=!1,this.Jo=[],this.Yo=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.Se.disable_surveys){var e=t.surveys;if(Q(e))return ce.warn("Flags not loaded yet. Not loading surveys.");var r=ee(e);this.Zo=r?e.length>0:e,ce.info("flags response received, isSurveysEnabled: "+this.Zo),this.loadIfEnabled()}}reset(){try{var t;(t=this._surveyEventReceiver)==null||t.reset(),localStorage.removeItem("lastSeenSurveyDate");for(var e=[],r=0;r<localStorage.length;r++){var s=localStorage.key(r);(s!=null&&s.startsWith(Sa)||s!=null&&s.startsWith("inProgressSurvey_"))&&e.push(s)}e.forEach(i=>localStorage.removeItem(i))}catch{}}loadIfEnabled(){if(!this._surveyManager)if(this.Qo)ce.info("Already initializing surveys, skipping...");else if(this.Se.disable_surveys)ce.info(al);else if(this.Se.cookieless_mode&&this._instance.consent.isOptedOut())ce.info("Not loading surveys in cookieless mode without consent.");else{var t=D==null?void 0:D.__PosthogExtensions__;if(t){if(!O(this.Zo)||this.Se.advanced_enable_surveys){var e=this.Zo||this.Se.advanced_enable_surveys;this.Qo=!0;try{var r=t.generateSurveys;if(r)return void this.Ko(r,e);var s=t.loadExternalDependency;if(!s)return void this.Xo(fa);s(this._instance,"surveys",i=>{i||!t.generateSurveys?this.Xo("Could not load surveys script",i):this.Ko(t.generateSurveys,e)})}catch(i){throw this.Xo("Error initializing surveys",i),i}finally{this.Qo=!1}}}else ce.error("PostHog Extensions not found.")}}Ko(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new Xp(this._instance),ce.info("Surveys loaded successfully"),this.ea({isLoaded:!0})}Xo(t,e){ce.error(t,e),this.ea({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.Jo.push(t),this._surveyManager&&this.ea({isLoaded:!0}),()=>{this.Jo=this.Jo.filter(e=>e!==t)}}getSurveys(t,e){if(e===void 0&&(e=!1),this.Se.disable_surveys)return ce.info(al),t([]);var r,s=this._instance.get_property(aa);if(s&&!e)return t(s,{isLoaded:!0});typeof Promise<"u"&&this.Yo?this.Yo.then(i=>{var{surveys:n,context:a}=i;return t(n,a)}):(typeof Promise<"u"&&(this.Yo=new Promise(i=>{r=i})),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Se.token),method:"GET",timeout:this.Se.surveys_request_timeout_ms,callback:i=>{var n;this.Yo=null;var a=i.statusCode;if(a!==200||!i.json){var o="Surveys API could not be loaded, status: "+a;ce.error(o);var l={isLoaded:!1,error:o};return t([],l),void(r==null||r({surveys:[],context:l}))}var u,d=i.json.surveys||[],p=d.filter(h=>function(v){return!(!v.start_date||v.end_date)}
3(h)&&(function(v){var g;return!((g=v.conditions)==null||(g=g.events)==null||(g=g.values)==null||!g.length)}(h)||function(v){var g;return!((g=v.conditions)==null||(g=g.actions)==null||(g=g.values)==null||!g.length)}(h)));p.length>0&&((u=this._surveyEventReceiver)==null||u.register(p)),(n=this._instance.persistence)==null||n.register({[aa]:d,[Ba]:Date.now()});var f={isLoaded:!0};t(d,f),r==null||r({surveys:d,context:f})}}))}ea(t){for(var e of this.Jo)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(r){ce.error("Error in survey callback",r)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!Q(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);ce.warn("init was not called")}ta(t){var e=null;return this.getSurveys(r=>{var s;e=(s=r.find(i=>i.id===t))!==null&&s!==void 0?s:null}),e}ra(t){if(Q(this._surveyManager))return{eligible:!1,reason:kn};var e=typeof t=="string"?this.ta(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(Q(this._surveyManager))return ce.warn("init was not called"),{visible:!1,disabledReason:kn};var e=this.ra(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return Q(this._surveyManager)?(ce.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:kn})):new Promise(r=>{this.getSurveys(s=>{var i,n=(i=s.find(o=>o.id===t))!==null&&i!==void 0?i:null;if(n){var a=this.ra(n);r({visible:a.eligible,disabledReason:a.reason})}else r({visible:!1,disabledReason:"Survey not found"})},e)})}renderSurvey(t,e,r){var s;if(Q(this._surveyManager))ce.warn("init was not called");else{var i=typeof t=="string"?this.ta(t):t;if(i!=null&&i.id)if(Lp.includes(i.type)){var n=$==null?void 0:$.querySelector(e);if(n)return(s=i.appearance)!=null&&s.surveyPopupDelaySeconds?(ce.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var a,o;ce.info("Rendering survey "+i.id+" with delay of "+((a=i.appearance)==null?void 0:a.surveyPopupDelaySeconds)+" seconds"),(o=this._surveyManager)==null||o.renderSurvey(i,n,r),ce.info("Survey "+i.id+" rendered")},1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,n,r);ce.warn("Survey element not found")}else ce.warn("Surveys of type "+i.type+" cannot be rendered in the app");else ce.warn("Survey not found")}}displaySurvey(t,e){var r;if(Q(this._surveyManager))ce.warn("init was not called");else{var s=this.ta(t);if(s){var i=s;if((r=s.appearance)!=null&&r.surveyPopupDelaySeconds&&e.ignoreDelay&&(i=j({},s,{appearance:j({},s.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==_a.Popover&&e.initialResponses&&ce.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var n=this.canRenderSurvey(s);if(!n.visible)return void ce.warn("Survey is not eligible to be displayed: ",n.disabledReason)}e.displayType!==_a.Inline?this._surveyManager.handlePopoverSurvey(i,e):this.renderSurvey(i,e.selector,e.properties)}else ce.warn("Survey not found")}}cancelPendingSurvey(t){Q(this._surveyManager)?ce.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},Vi),cf={toolbar:class{constructor(t){this.instance=t}ia(t){D.ph_toolbar_state=t}na(){var t;return(t=D.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,r){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),r===void 0&&(r=void 0),qc(this.instance.config)||!_||!$)return!1;t=t??_.location,r=r??_.history;try{if(!e){try{_.localStorage.setItem("test","test"),_.localStorage.removeItem("test")}catch{return!1}e=_==null?void 0:_.localStorage}var s,i=Zp||$i(t.hash,"__posthog")||$i(t.hash,"state"),n=i?To(()=>JSON.parse(atob(decodeURIComponent(i))))||To(()=>JSON.parse(decodeURIComponent(i))):null;return n&&n.action==="ph_authorize"?((s=n).source="url",s&&Object.keys(s).length>0&&(n.desiredHash?t.hash=n.desiredHash:r?r.replaceState(r.state,"",t.pathname+t.search):t.hash="")):((s=JSON.parse(e.getItem(ol)||"{}")).source="localstorage",delete s.userIntent),!(!s.token||this.instance.config.token!==s.token||(this.loadToolbar(s),0))}catch{return!1}}sa(t){var e=D.ph_load_toolbar||D.ph_load_editor;!Q(e)&&Rt(e)?e(t,this.instance):ll.warn("No toolbar load function found")}loadToolbar(t){var e=!($==null||!$.getElementById(zc));if(!_||e)return!1;var r=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,s=j({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},r?{instrument:!1}:{});if(_.localStorage.setItem(ol,JSON.stringify(j({},s,{source:void 0}))),this.na()===2)this.sa(s);else if(this.na()===0){var i;this.ia(1),(i=D.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this.instance,"toolbar",n=>{if(n)return ll.error("[Toolbar] Failed to load",n),void this.ia(0);this.ia(2),this.sa(s)}),xe(_,"turbolinks:load",()=>{this.ia(0),this.loadToolbar(s)})}return!0}oa(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,r){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),r===void 0&&(r=void 0),this.maybeLoadToolbar(t,e,r)}}},uf=j({experiments:$e},Vi),df=j({},Vi,tf,rf,sf,nf,af,lf,of,cf,uf,{conversations:class{constructor(t){this.aa=void 0,this._conversationsManager=null,this.la=!1,this.ua=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;Q(e)||(wt(e)?this.aa=e:(this.aa=e.enabled,this.ua=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.aa=void 0,this.ua=null}loadIfEnabled(){if(!(this._conversationsManager||this.la||this._instance.config.disable_conversations||qc(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=D==null?void 0:D.__PosthogExtensions__;if(t&&!O(this.aa)&&this.aa)if(this.ua&&this.ua.token){this.la=!0;try{var e=t.initConversations;if(e)return this.ha(e),void(this.la=!1);var r=t.loadExternalDependency;if(!r)return void this.da(fa);r(this._instance,"conversations",s=>{s||!t.initConversations?this.da("Could not load conversations script",s):this.ha(t.initConversations),this.la=!1})}catch(s){this.da("Error initializing conversations",s),this.la=!1}}else Xe.error("Conversations enabled but missing token in remote config.")}}ha(t){if(this.ua)try{this._conversationsManager=t(this.ua,this._instance),Xe.info("Conversations loaded successfully")}catch(e){this.da("Error completing conversations initialization",e)}else Xe.error("Cannot complete initialization: remote config is null")}da(t,e){Xe.error(t,e),this._conversationsManager=null,this.la=!1}show(){this._conversationsManager?this._conversationsManager.show():Xe.w
3arn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.aa===!0&&!ze(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,r){var s=this;return Ce(function*(){return s._conversationsManager?s._conversationsManager.sendMessage(t,e,r):(Xe.warn(or),null)})()}getMessages(t,e){var r=this;return Ce(function*(){return r._conversationsManager?r._conversationsManager.getMessages(t,e):(Xe.warn(or),null)})()}markAsRead(t){var e=this;return Ce(function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(Xe.warn(or),null)})()}getTickets(t){var e=this;return Ce(function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(Xe.warn(or),null)})()}requestRestoreLink(t){var e=this;return Ce(function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(Xe.warn(or),null)})()}restoreFromToken(t){var e=this;return Ce(function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(Xe.warn(or),null)})()}restoreFromUrlToken(){var t=this;return Ce(function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Xe.warn(or),null)})()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}Xi(){var t;(t=this._conversationsManager)==null||t.setIdentity()}en(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},{logs:class{constructor(t){var e;this.ca=!1,this.va=!1,this.Ae=be("[logs]"),this._r=[],this.fa=[],this.pa=()=>{var r,s;(r=this.ga)==null||r.onReconnect(),(s=this.ma)==null||s.onReconnect()},this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.ca=!0),_&&xe(_,"online",this.pa)}ya(t,e,r,s){var i,n=function(a,o){var l,u,d,p,f,h,v,g=(l=a==null?void 0:a.flushIntervalMs)!==null&&l!==void 0?l:3e3,m=(u=a==null?void 0:a.maxBufferSize)!==null&&u!==void 0?u:100,y=o!=null&&o.consoleCapture?void 0:(d=a==null?void 0:a.maxLogsPerInterval)!==null&&d!==void 0?d:1e3,E=O(y)?Math.max(m,2048):Math.max(m,y),x=a==null?void 0:a.resourceAttributes;return{serviceName:(p=(f=x==null?void 0:x["service.name"])!==null&&f!==void 0?f:a==null?void 0:a.serviceName)!==null&&p!==void 0?p:o==null?void 0:o.serviceNameDefault,serviceVersion:(h=x==null?void 0:x["service.version"])!==null&&h!==void 0?h:a==null?void 0:a.serviceVersion,environment:(v=x==null?void 0:x["deployment.environment"])!==null&&v!==void 0?v:a==null?void 0:a.environment,resourceAttributes:x,beforeSend:a==null?void 0:a.beforeSend,flushIntervalMs:g,maxBufferSize:m,maxQueueSize:E,maxBatchRecordsPerPost:100,rateCapWindowMs:g,maxLogsPerInterval:y,backgroundFlushBudgetMs:0,terminationFlushBudgetMs:0}}((i=this._instance)==null||(i=i.config)==null?void 0:i.logs,r);return[new yh(this.ba(t,e),n,this.Ae,()=>this._a(),a=>a(),void 0,s),n]}wa(){var t,e,r=(t=this._instance)==null||(t=t.config)==null?void 0:t.logs;return this.ga&&this.xa===r||((e=this.ga)==null||e.reset(),this.xa=r,[this.ga,this.ka]=this.ya(()=>this._r,s=>{this._r=s})),this.ga}Sa(){var t,e,r=(t=this._instance)==null||(t=t.config)==null?void 0:t.logs;return this.ma&&this.Ca===r||((e=this.ma)==null||e.reset(),this.Ca=r,[this.ma,this.Ia]=this.ya(()=>this.fa,s=>{this.fa=s},{serviceNameDefault:"posthog-browser-logs",consoleCapture:!0},hl)),this.ma}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,r=(e=t.logs)==null?void 0:e.captureConsoleLogs;!Q(r)&&r&&(this.ca=!0,this.loadIfEnabled())}reset(){var t,e;this._r=[],(t=this.ga)==null||t.reset(),this.fa=[],(e=this.ma)==null||e.reset()}captureLog(t){this.wa().captureLog(t)}le(t){this.Sa().captureLog(t)}get logger(){return this.Ta||(this.Ta={trace:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.Ta}flushLogs(t){t?this.Ea(t):(this.ga&&this.ga.flush().catch(e=>this.Ae.error("PostHog logs flush failed:",e)),this.ma&&this.ma.flush().catch(e=>this.Ae.error("PostHog logs flush failed:",e)))}loadIfEnabled(){if(this.ca&&!this.va){var t=D==null?void 0:D.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",r=>{var s;r||(s=t.logs)==null||!s.initializeLogs?this.Ae.error("Could not load logs script",r):(t.logs.initializeLogs(this._instance),this.va=!0)}):this.Ae.error(fa)}else this.Ae.error("PostHog Extensions not found.")}}ba(t,e){var r=this._instance;return{get isDisabled(){return!1},get optedOut(){return!r.is_capturing()},getPersistedProperty:s=>s===Ot.LogsQueue?t():void 0,setPersistedProperty(s,i){var n;s===Ot.LogsQueue&&e((n=i)!==null&&n!==void 0?n:[])},ht:s=>this.ht(s),getLibraryId:()=>ke.LIB_NAME,getLibraryVersion:()=>ke.LIB_VERSION}}ht(t){return new Promise(e=>{var r=!1,s=n=>{r||(r=!0,clearTimeout(i),e(n))},i=setTimeout(()=>s({kind:"retry-later",error:new Error("logs request timed out")}),9e4);this._instance._send_request({method:"POST",url:this.Ma(),data:t,compression:"best-available",batchKey:"logs",fireCallbackOnDrop:!0,callback(n){var a=n.statusCode;if(a>=200&&300>a)s({kind:"ok"});else if(a===413)s({kind:"too-large"});else if(a!==0&&a!==429&&500>a)s({kind:"fatal",error:new Error("logs request failed with status "+a)});else{var o;s({kind:"retry-later",error:(o=n.error)!==null&&o!==void 0?o:new Error("logs request failed with status "+a)})}}})})}Ea(t){this._r.length>0&&this.Pa(t,this._r,this.ka,ke.LIB_NAME,e=>{this._r=e}),this.fa.length>0&&this.Pa(t,this.fa,this.Ia,hl,e=>{this.fa=e})}Pa(t,e,r,s,i){if(e.length!==0){var n=e.map(o=>o.record);i([]);var a=Ic(n,Cc(r,ke.LIB_NAME,ke.LIB_VERSION),s,ke.LIB_VERSION);this._instance._send_request({method:"POST",url:this.Ma(),data:a,compression:"best-available",batchKey:"logs",transport:t})}}Ma(){return this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token)}_a(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:r,windowId:s,sessionStartTimestamp:i,lastActivityTimestamp:n}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=r,e.windowId=s,Q(i)||(e.sessionStartTimestamp=i),Q(n)||(e.lastActivityTimestamp=n)}if(D!=null&&(t=D.location)!=null&&t.href&&(e.currentUrl=this._instance.config.disable_capture_url_hashes?Zt(D.location.href):D.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(e.activeFeatureFlags=a)}return e}}});tt.__defaultExtensionClasses=j({},df);var Ws=function(){ke.SDK_DIST_CHANNEL="npm";var t=Os[Fr]=new tt;return function(){function e(){e.done||(e.done=!0,Su=!1,de(Os,function(r){r._dom_loaded()}))}$!=null&&$.addEventListener?$.readyState==="complete"?e():xe($,"DOMContentLoaded",e,{capture:!1}):_&&M.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),t}(),ku;function hf(t){ku=t}function Pa(){return ku}var Xa=S.createContext({get client(){return Pa()},bootstrap:void 0});function Tu(t,e,r){if(r===void 0&&(r=new WeakMap),t===e)return!0;
3if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(r.has(t)&&r.get(t)===e)return!0;r.set(t,e);var s=Object.keys(t),i=Object.keys(e);if(s.length!==i.length)return!1;for(var n=0,a=s;n<a.length;n++){var o=a[n];if(!i.includes(o)||!Tu(t[o],e[o],r))return!1}return!0}function pf(t){var e,r,s=t.children,i=t.client,n=t.apiKey,a=t.options,o=S.useRef(null),l=S.useMemo(function(){if(i)return n&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),a&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),i;var u=Pa();return n||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."),u},[i,n,JSON.stringify(a)]);return S.useEffect(function(){if(!(i||!n)){var u=Pa(),d=o.current;d?(n!==d.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."),a&&!Tu(a,d.options)&&u.set_config(a),o.current={apiKey:n,options:a??{}}):(u.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),u.init(n,a),o.current={apiKey:n,options:a??{}})}},[i,n,JSON.stringify(a)]),C.createElement(Xa.Provider,{value:{client:l,bootstrap:(e=a==null?void 0:a.bootstrap)!==null&&e!==void 0?e:(r=i==null?void 0:i.config)===null||r===void 0?void 0:r.bootstrap}},s)}var Pn=function(t){return typeof t=="function"},ff=function(){var t=S.useContext(Xa).client;return t},Aa=function(t,e){return Aa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},Aa(t,e)};function gf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Aa(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var vf={componentStack:null,exceptionEvent:null,error:null},mf={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};(function(t){gf(e,t);function e(r){var s=t.call(this,r)||this;return s.state=vf,s}return e.prototype.componentDidCatch=function(r,s){var i=this.props.additionalProperties,n;Pn(i)?n=i(r):typeof i=="object"&&(n=i);var a=this.context.client,o=a.captureException(r,n),l=s.componentStack;this.setState({error:r,componentStack:l??null,exceptionEvent:o})},e.prototype.render=function(){var r=this.props,s=r.children,i=r.fallback,n=this.state;if(n.componentStack==null)return Pn(s)?s():s;var a=Pn(i)?C.createElement(i,{error:n.error,componentStack:n.componentStack,exceptionEvent:n.exceptionEvent}):i;return C.isValidElement(a)?a:(console.warn(mf.INVALID_FALLBACK),C.createElement(C.Fragment,null))},e.contextType=Xa,e})(C.Component);hf(Ws);const _f="phc_mCyuRfZtSLdHxp98oBGKPkYywA94nvPDHeVRfZumvNBs",yf="https://us.i.posthog.com";typeof window<"u"&&Ws.init(_f,{api_host:yf,ui_host:"https://us.posthog.com",person_profiles:"identified_only",respect_dnt:!0,persistence:"localStorage",autocapture:!0,capture_pageview:!1,capture_pageleave:!0,disable_session_recording:!0,session_recording:{maskAllInputs:!0,maskTextSelector:"[data-ph-mask]",maskInputOptions:{password:!0,email:!0},blockSelector:"[data-ph-no-capture]"},loaded:t=>{}});function bf({children:t}){return c.jsx(pf,{client:Ws,children:t})}const xf="modulepreload",wf=function(t){return"/"+t},pl={},B=function(e,r,s){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),o=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(r.map(l=>{if(l=wf(l),l in pl)return;pl[l]=!0;const u=l.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":xf,u||(p.as="script"),p.crossOrigin="",p.href=l,o&&p.setAttribute("nonce",o),document.head.appendChild(p),u)return new Promise((f,h)=>{p.addEventListener("load",f),p.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function n(a){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a}return i.then(a=>{for(const o of a||[])o.status==="rejected"&&n(o.reason);return e().catch(n)})},Ef=1,Sf=1e6;let An=0;function kf(){return An=(An+1)%Number.MAX_SAFE_INTEGER,An.toString()}const jn=new Map,fl=t=>{if(jn.has(t))return;const e=setTimeout(()=>{jn.delete(t),Rs({type:"REMOVE_TOAST",toastId:t})},Sf);jn.set(t,e)},Tf=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,Ef)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=e;
3return r?fl(r):t.toasts.forEach(s=>{fl(s.id)}),{...t,toasts:t.toasts.map(s=>s.id===r||r===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},_i=[];let yi={toasts:[]};function Rs(t){yi=Tf(yi,t),_i.forEach(e=>{e(yi)})}function Pf({...t}){const e=kf(),r=i=>Rs({type:"UPDATE_TOAST",toast:{...i,id:e}}),s=()=>Rs({type:"DISMISS_TOAST",toastId:e});return Rs({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:i=>{i||s()}}}),{id:e,dismiss:s,update:r}}function Af(){const[t,e]=S.useState(yi);return S.useEffect(()=>(_i.push(e),()=>{const r=_i.indexOf(e);r>-1&&_i.splice(r,1)}),[t]),{...t,toast:Pf,dismiss:r=>Rs({type:"DISMISS_TOAST",toastId:r})}}function Pu(t){var e,r,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=Pu(t[e]))&&(s&&(s+=" "),s+=r)}else for(r in t)t[r]&&(s&&(s+=" "),s+=r);return s}function Au(){for(var t,e,r=0,s="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=Pu(t))&&(s&&(s+=" "),s+=e);return s}const gl=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,vl=Au,ju=(t,e)=>r=>{var s;if((e==null?void 0:e.variants)==null)return vl(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:n}=e,a=Object.keys(i).map(u=>{const d=r==null?void 0:r[u],p=n==null?void 0:n[u];if(d===null)return null;const f=gl(d)||gl(p);return i[u][f]}),o=r&&Object.entries(r).reduce((u,d)=>{let[p,f]=d;return f===void 0||(u[p]=f),u},{}),l=e==null||(s=e.compoundVariants)===null||s===void 0?void 0:s.reduce((u,d)=>{let{class:p,className:f,...h}=d;return Object.entries(h).every(v=>{let[g,m]=v;return Array.isArray(m)?m.includes({...n,...o}[g]):{...n,...o}[g]===m})?[...u,p,f]:u},[]);return vl(t,a,l,r==null?void 0:r.class,r==null?void 0:r.className)};/** 4 * @license lucide-react v0.462.0 - ISC 5 * 6 * This source code is licensed under the ISC license. 7 * See the LICENSE file in the root directory of this source tree. 8 */const jf=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Cu=(...t)=>t.filter((e,r,s)=>!!e&&e.trim()!==""&&s.indexOf(e)===r).join(" ").trim();/** 9 * @license lucide-react v0.462.0 - ISC 10 * 11 * This source code is licensed under the ISC license. 12 * See the LICENSE file in the root directory of this source tree. 13 */var Cf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 14 * @license lucide-react v0.462.0 - ISC 15 * 16 * This source code is licensed under the ISC license. 17 * See the LICENSE file in the root directory of this source tree. 18 */const If=S.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:i="",children:n,iconNode:a,...o},l)=>S.createElement("svg",{ref:l,...Cf,width:e,height:e,stroke:t,strokeWidth:s?Number(r)*24/Number(e):r,className:Cu("lucide",i),...o},[...a.map(([u,d])=>S.createElement(u,d)),...Array.isArray(n)?n:[n]]));/** 19 * @license lucide-react v0.462.0 - ISC 20 * 21 * This source code is licensed under the ISC license. 22 * See the LICENSE file in the root directory of this source tree. 23 */const Re=(t,e)=>{const r=S.forwardRef(({className:s,...i},n)=>S.createElement(If,{ref:n,iconNode:e,className:Cu(`lucide-${jf(t)}`,s),...i}));return r.displayName=`${t}`,r};/** 24 * @license lucide-react v0.462.0 - ISC 25 * 26 * This source code is licensed under the ISC license. 27 * See the LICENSE file in the root directory of this source tree. 28 */const Ms=Re("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 29 * @license lucide-react v0.462.0 - ISC 30 * 31 * This source code is licensed under the ISC license. 32 * See the LICENSE file in the root directory of this source tree. 33 */const Of=Re("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 34 * @license lucide-react v0.462.0 - ISC 35 * 36 * This source code is licensed under the ISC license. 37 * See the LICENSE file in the root directory of this source tree. 38 */const Rf=Re("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 39 * @license lucide-react v0.462.0 - ISC 40 * 41 * This source code is licensed under the ISC license. 42 * See the LICENSE file in the root directory of this source tree. 43 */const ml=Re("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 44 * @license lucide-react v0.462.0 - ISC 45 * 46 * This source code is licensed under the ISC license. 47 * See the LICENSE file in the root directory of this source tree. 48 */const Mf=Re("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 49 * @license lucide-react v0.462.0 - ISC 50 * 51 * This source code is licensed under the ISC license. 52 * See the LICENSE file in the root directory of this source tree. 53 */const Nf=Re("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
53],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 54 * @license lucide-react v0.462.0 - ISC 55 * 56 * This source code is licensed under the ISC license. 57 * See the LICENSE file in the root directory of this source tree. 58 */const $f=Re("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 59 * @license lucide-react v0.462.0 - ISC 60 * 61 * This source code is licensed under the ISC license. 62 * See the LICENSE file in the root directory of this source tree. 63 */const Ff=Re("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 64 * @license lucide-react v0.462.0 - ISC 65 * 66 * This source code is licensed under the ISC license. 67 * See the LICENSE file in the root directory of this source tree. 68 */const Lf=Re("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 69 * @license lucide-react v0.462.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const Df=Re("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 74 * @license lucide-react v0.462.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */const Iu=Re("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 79 * @license lucide-react v0.462.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const Uf=Re("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 84 * @license lucide-react v0.462.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const zf=Re("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 89 * @license lucide-react v0.462.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const Hf=Re("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 94 * @license lucide-react v0.462.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const Vf=Re("Smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/** 99 * @license lucide-react v0.462.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const Bf=Re("UserMinus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 104 * @license lucide-react v0.462.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const Ou=Re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,911 bytes, line 108
108],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Za="-",qf=t=>{const e=Wf(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:a=>{const o=a.split(Za);return o[0]===""&&o.length!==1&&o.shift(),Ru(o,e)||Gf(a)},getConflictingClassGroupIds:(a,o)=>{const l=r[a]||[];return o&&s[a]?[...l,...s[a]]:l}}},Ru=(t,e)=>{var a;if(t.length===0)return e.classGroupId;const r=t[0],s=e.nextPart.get(r),i=s?Ru(t.slice(1),s):void 0;if(i)return i;if(e.validators.length===0)return;const n=t.join(Za);return(a=e.validators.find(({validator:o})=>o(n)))==null?void 0:a.classGroupId},_l=/^\[(.+)\]$/,Gf=t=>{if(_l.test(t)){const e=_l.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Wf=t=>{const{theme:e,prefix:r}=t,s={nextPart:new Map,validators:[]};return Qf(Object.entries(t.classGroups),r).forEach(([n,a])=>{ja(a,s,n,e)}),s},ja=(t,e,r,s)=>{t.forEach(i=>{if(typeof i=="string"){const n=i===""?e:yl(e,i);n.classGroupId=r;return}if(typeof i=="function"){if(Kf(i)){ja(i(s),e,r,s);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([n,a])=>{ja(a,yl(e,n),r,s)})})},yl=(t,e)=>{let r=t;return e.split(Za).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},Kf=t=>t.isThemeGetter,Qf=(t,e)=>e?t.map(([r,s])=>{const i=s.map(n=>typeof n=="string"?e+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([a,o])=>[e+a,o])):n);return[r,i]}):t,Yf=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,s=new Map;const i=(n,a)=>{r.set(n,a),e++,e>t&&(e=0,s=r,r=new Map)};return{get(n){let a=r.get(n);if(a!==void 0)return a;if((a=s.get(n))!==void 0)return i(n,a),a},set(n,a){r.has(n)?r.set(n,a):i(n,a)}}},Mu="!",Jf=t=>{const{separator:e,experimentalParseClassName:r}=t,s=e.length===1,i=e[0],n=e.length,a=o=>{const l=[];let u=0,d=0,p;for(let m=0;m<o.length;m++){let y=o[m];if(u===0){if(y===i&&(s||o.slice(m,m+n)===e)){l.push(o.slice(d,m)),d=m+n;continue}if(y==="/"){p=m;continue}}y==="["?u++:y==="]"&&u--}const f=l.length===0?o:o.substring(d),h=f.startsWith(Mu),v=h?f.substring(1):f,g=p&&p>d?p-d:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:g}};return r?o=>r({className:o,parseClassName:a}):a},Xf=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(s=>{s[0]==="["?(e.push(...r.sort(),s),r=[]):r.push(s)}),e.push(...r.sort()),e},Zf=t=>({cache:Yf(t.cacheSize),parseClassName:Jf(t),...qf(t)}),eg=/\s+/,tg=(t,e)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:i}=e,n=[],a=t.trim().split(eg);let o="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{modifiers:d,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:h}=r(u);let v=!!h,g=s(v?f.substring(0,h):f);if(!g){if(!v){o=u+(o.length>0?" "+o:o);continue}if(g=s(f),!g){o=u+(o.length>0?" "+o:o);continue}v=!1}const m=Xf(d).join(":"),y=p?m+Mu:m,E=y+g;if(n.includes(E))continue;n.push(E);const x=i(g,v);for(let k=0;k<x.length;++k){const I=x[k];n.push(y+I)}o=u+(o.length>0?" "+o:o)}return o};function rg(){let t=0,e,r,s="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Nu(e))&&(s&&(s+=" "),s+=r);return s}const Nu=t=>{if(typeof t=="string")return t;let e,r="";for(let s=0;s<t.length;s++)t[s]&&(e=Nu(t[s]))&&(r&&(r+=" "),r+=e);return r};function sg(t,...e){let r,s,i,n=a;function a(l){const u=e.reduce((d,p)=>p(d),t());return r=Zf(u),s=r.cache.get,i=r.cache.set,n=o,o(l)}function o(l){const u=s(l);if(u)return u;const d=tg(l,r);return i(l,d),d}return function(){return n(rg.apply(null,arguments))}}const fe=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},$u=/^\[(?:([a-z-]+):)?(.+)\]$/i,ig=/^\d+\/\d+$/,ng=new Set(["px","full","screen"]),ag=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,og=/\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$/,lg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ug=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,At=t=>Br(t)||ng.has(t)||ig.test(t),Vt=t=>is(t,"length",_g),Br=t=>!!t&&!Number.isNaN(Number(t)),Cn=t=>is(t,"number",Br),bs=t=>!!t&&Number.isInteger(Number(t)),dg=t=>t.endsWith("%")&&Br(t.slice(0,-1)),X=t=>$u.test(t),Bt=t=>ag.test(t),hg=new Set(["length","size","percentage"]),pg=t=>is(t,hg,Fu),fg=t=>is(t,"position",Fu),gg=new Set(["image","url"]),vg=t=>is(t,gg,bg),mg=t=>is(t,"",yg),xs=()=>!0,is=(t,e,r)=>{const s=$u.exec(t);return s?s[1]?typeof e=="string"?s[1]===e:e.has(s[1]):r(s[2]):!1},_g=t=>og.test(t)&&!lg.test(t),Fu=()=>!1,yg=t=>cg.test(t),bg=t=>ug.test(t),xg=()=>{const t=fe("colors"),e=fe("spacing"),r=fe("blur"),s=fe("brightness"),i=fe("borderColor"),n=fe("borderRadius"),a=fe("borderSpacing"),o=fe("borderWidth"),l=fe("contrast"),u=fe("grayscale"),d=fe("hueRotate"),p=fe("invert"),f=fe("gap"),h=fe("gradientColorStops"),v=fe("gradientColorStopPositions"),g=fe("inset"),m=fe("margin"),y=fe("opacity"),E=fe("padding"),x=fe("saturate"),k=fe("scale"),I=fe("sepia"),L=fe("skew"),P=fe("space"),A=fe("translate"),T=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",X,e],R=()=>[X,e],q=()=>["",At,Vt],z=()=>["auto",Br,X],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",X],oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[Br,X];return{cacheSize:500,separator:":",theme:{colors:[xs],spacing:[At,Vt],blur:["none","",Bt,X],brightness:se(),borderColor:[t],borderRadius:["n
108one","","full",Bt,X],borderSpacing:R(),borderWidth:q(),contrast:se(),grayscale:U(),hueRotate:se(),invert:U(),gap:R(),gradientColorStops:[t],gradientColorStopPositions:[dg,Vt],inset:F(),margin:F(),opacity:se(),padding:R(),saturate:se(),scale:se(),sepia:U(),skew:se(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[Bt]}],"break-after":[{"break-after":oe()}],"break-before":[{"break-before":oe()}],"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"],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:[...re(),X]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bs,X]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",bs,X]}],"grid-cols":[{"grid-cols":[xs]}],"col-start-end":[{col:["auto",{span:["full",bs,X]},X]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[xs]}],"row-start-end":[{row:["auto",{span:[bs,X]},X]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,e]}],"min-w":[{"min-w":[X,e,"min","max","fit"]}],"max-w":[{"max-w":[X,e,"none","full","min","max","fit","prose",{screen:[Bt]},Bt]}],h:[{h:[X,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Bt,Vt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Cn]}],"font-family":[{font:[xs]}],"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:["tighter","tight","normal","wide","wider","widest",X]}],"line-clamp":[{"line-clamp":["none",Br,Cn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",At,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",At,Vt]}],"underline-offset":[{"underline-offset":["auto",At,X]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),fg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vg]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[v]}
108],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,460 bytes, line 108
108],"divide-style":[{divide:Z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[At,X]}],"outline-w":[{outline:[At,Vt]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[At,Vt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Bt,mg]}],"shadow-color":[{shadow:[xs]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Bt,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",X]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[bs,X]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",X]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],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",X]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",X]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[At,Vt,Cn]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
108none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},wg=sg(xg);function Ge(...t){return wg(Au(t))}const Eg=gd,Lu=S.forwardRef(({className:t,...e},r)=>c.jsx(Vl,{ref:r,className:Ge("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));Lu.displayName=Vl.displayName;const Sg=ju("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Du=S.forwardRef(({className:t,variant:e,...r},s)=>c.jsx(Bl,{ref:s,className:Ge(Sg({variant:e}),t),...r}));Du.displayName=Bl.displayName;const kg=S.forwardRef(({className:t,...e},r)=>c.jsx(ql,{ref:r,className:Ge("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",t),...e}));kg.displayName=ql.displayName;const Uu=S.forwardRef(({className:t,...e},r)=>c.jsx(Gl,{ref:r,className:Ge("absolute right-2 top-2 rounded-md p-1 text-foreground
108/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-white group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:c.jsx(Ou,{className:"h-4 w-4"})}));Uu.displayName=Gl.displayName;const zu=S.forwardRef(({className:t,...e},r)=>c.jsx(Wl,{ref:r,className:Ge("text-sm font-semibold",t),...e}));zu.displayName=Wl.displayName;const Hu=S.forwardRef(({className:t,...e},r)=>c.jsx(Kl,{ref:r,className:Ge("text-sm opacity-90",t),...e}));Hu.displayName=Kl.displayName;function Tg(){const{toasts:t}=Af();return c.jsxs(Eg,{children:[t.map(function({id:e,title:r,description:s,action:i,...n}){return c.jsxs(Du,{...n,children:[c.jsxs("div",{className:"grid gap-1",children:[r&&c.jsx(zu,{children:r}),s&&c.jsx(Hu,{children:s})]}),i,c.jsx(Uu,{})]},e)}),c.jsx(Lu,{})]})}var bl=["light","dark"],Pg="(prefers-color-scheme: dark)",Ag=S.createContext(void 0),jg={setTheme:t=>{},themes:[]},Cg=()=>{var t;return(t=S.useContext(Ag))!=null?t:jg};S.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:s,enableColorScheme:i,defaultTheme:n,value:a,attrs:o,nonce:l})=>{let u=n==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${o.map(v=>`'${v}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,p=i?bl.includes(n)&&n?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${n}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(v,g=!1,m=!0)=>{let y=a?a[v]:v,E=g?v+"|| ''":`'${y}'`,x="";return i&&m&&!g&&bl.includes(v)&&(x+=`d.style.colorScheme = '${v}';`),r==="class"?g||y?x+=`c.add(${E})`:x+="null":y&&(x+=`d[s](n,${E})`),x},h=t?`!function(){${d}${f(t)}}()`:s?`!function(){try{${d}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${u})){var t='${Pg}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}${u?"":"else{"+f(n,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${e}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}else{${f(n,!1,!1)};}${p}}catch(t){}}();`;return S.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var Ig=t=>{switch(t){case"success":return Mg;case"info":return $g;case"warning":return Ng;case"error":return Fg;default:return null}},Og=Array(12).fill(0),Rg=({visible:t,className:e})=>C.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},C.createElement("div",{className:"sonner-spinner"},Og.map((r,s)=>C.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),Mg=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Ng=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),$g=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Fg=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Lg=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},C.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),C.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Dg=()=>{let[t,e]=C.useState(document.hidden);return C.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},Ca=1,Ug=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>
108{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...s}=t,i=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Ca++,n=this.toasts.find(o=>o.id===i),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),n?this.toasts=this.toasts.map(o=>o.id===i?(this.publish({...o,...t,id:i,title:r}),{...o,...t,id:i,dismissible:a,title:r}):o):this.addToast({title:r,...s,dismissible:a,id:i}),i},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let s=t instanceof Promise?t:t(),i=r!==void 0,n,a=s.then(async l=>{if(n=["resolve",l],C.isValidElement(l))i=!1,this.create({id:r,type:"default",message:l});else if(Hg(l)&&!l.ok){i=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${l.status}`):e.error,d=typeof e.description=="function"?await e.description(`HTTP error! status: ${l.status}`):e.description;this.create({id:r,type:"error",message:u,description:d})}else if(e.success!==void 0){i=!1;let u=typeof e.success=="function"?await e.success(l):e.success,d=typeof e.description=="function"?await e.description(l):e.description;this.create({id:r,type:"success",message:u,description:d})}}).catch(async l=>{if(n=["reject",l],e.error!==void 0){i=!1;let u=typeof e.error=="function"?await e.error(l):e.error,d=typeof e.description=="function"?await e.description(l):e.description;this.create({id:r,type:"error",message:u,description:d})}}).finally(()=>{var l;i&&(this.dismiss(r),r=void 0),(l=e.finally)==null||l.call(e)}),o=()=>new Promise((l,u)=>a.then(()=>n[0]==="reject"?u(n[1]):l(n[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:o}:Object.assign(r,{unwrap:o})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||Ca++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Be=new Ug,zg=(t,e)=>{let r=(e==null?void 0:e.id)||Ca++;return Be.addToast({title:t,...e,id:r}),r},Hg=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",Vg=zg,Bg=()=>Be.toasts,qg=()=>Be.getActiveToasts();Object.assign(Vg,{success:Be.success,info:Be.info,warning:Be.warning,error:Be.error,custom:Be.custom,message:Be.message,promise:Be.promise,dismiss:Be.dismiss,loading:Be.loading},{getHistory:Bg,getToasts:qg});function Gg(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",e==="top"&&r.firstChild?r.insertBefore(s,r.firstChild):r.appendChild(s),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(document.createTextNode(t))}Gg(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
108left: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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
108:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px)) translate(var(--swipe-amount-x, 0px));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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
108--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-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-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],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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%)} 109`);function li(t){return t.label!==void 0}var Wg=3,Kg="32px",Qg="16px",xl=4e3,Yg=356,Jg=14,Xg=20,Zg=200;function lt(...t){return t.filter(Boolean).join(" ")}function ev(t){let[e,r]=t.split("-"),s=[];return e&&s.push(e),r&&s.push(r),s}var tv=t=>{var e,r,s,i,n,a,o,l,u,d,p;let{invert:f,toast:h,unstyled:v,interacting:g,setHeights:m,visibleToasts:y,heights:E,index:x,toasts:k,expanded:I,removeToast:L,defaultRichColors:P,closeButton:A,style:T,cancelButtonStyle:N,actionButtonStyle:F,className:R="",descriptionClassName:q="",duration:z,position:re,gap:Z,loadingIcon:Y,expandByDefault:me,classNames:U,icons:oe,closeButtonAriaLabel:se="Close toast",pauseWhenPageIsHidden:J}=t,[G,te]=C.useState(null),[ae,Le]=C.useState(null),[ne,je]=C.useState(!1),[Me,Et]=C.useState(!1),[tr,Ye]=C.useState(!1),[Ks,Gi]=C.useState(!1),[Wi,st]=C.useState(!1),[Ki,Sr]=C.useState(0),[ns,as]=C.useState(0),Dt=C.useRef(h.duration||z||xl),os=C.useRef(null),it=C.useRef(null),ed=x===0,td=x+1<=y,Je=h.type,kr=h.dismissible!==!1,rd=h.className||"",sd=h.descriptionClassName||"",Qs=C.useMemo(()=>E.findIndex(W=>W.toastId===h.id)||0,[E,h.id]),id=C.useMemo(()=>{var W;return(W=h.closeButton)!=null?W:A},[h.closeButton,A]),ro=C.useMemo(()=>h.duration||z||xl,[h.duration,z]),Qi=C.useRef(0),Tr=C.useRef(0),so=C.useRef(0),Pr=C.useRef(null),[nd,ad]=re.split("-"),io=C.useMemo(()=>E.reduce((W,le,_e)=>_e>=Qs?W:W+le.height,0),[E,Qs]),no=Dg(),od=h.invert||f,Yi=Je==="loading";Tr.current=C.useMemo(()=>Qs*Z+io,[Qs,io]),C.useEffect(()=>{Dt.current=ro},[ro]),C.useEffect(()=>{je(!0)},[]),C.useEffect(()=>{let W=it.current;if(W){let le=W.getBoundingClientRect().height;return as(le),m(_e=>[{toastId:h.id,height:le,position:h.position},..._e]),()=>m(_e=>_e.filter(nt=>nt.toastId!==h.id))}},[m,h.id]),C.useLayoutEffect(()=>{if(!ne)return;let W=it.current,le=W.style.height;W.style.height="auto";let _e=W.getBoundingClientRect().height;W.style.height=le,as(_e),m(nt=>nt.find(at=>at.toastId===h.id)?nt.map(at=>at.toastId===h.id?{...at,height:_e}:at):[{toastId:h.id,height:_e,position:h.position},...nt])},[ne,h.title,h.description,m,h.id]);let Ut=C.useCallback(()=>{Et(!0),Sr(Tr.current),m(W=>W.filter(le=>le.toastId!==h.id)),setTimeout(()=>{L(h)},Zg)},[h,L,m,Tr]);C.useEffect(()=>{if(h.promise&&Je==="loading"||h.duration===1/0||h.type==="loading")return;let W;return I||g||J&&no?(()=>{if(so.current<Qi.current){let le=new Date().getTime()-Qi.current;Dt.current=Dt.current-le}
109so.current=new Date().getTime()})():Dt.current!==1/0&&(Qi.current=new Date().getTime(),W=setTimeout(()=>{var le;(le=h.onAutoClose)==null||le.call(h,h),Ut()},Dt.current)),()=>clearTimeout(W)},[I,g,h,Je,J,no,Ut]),C.useEffect(()=>{h.delete&&Ut()},[Ut,h.delete]);function ld(){var W,le,_e;return oe!=null&&oe.loading?C.createElement("div",{className:lt(U==null?void 0:U.loader,(W=h==null?void 0:h.classNames)==null?void 0:W.loader,"sonner-loader"),"data-visible":Je==="loading"},oe.loading):Y?C.createElement("div",{className:lt(U==null?void 0:U.loader,(le=h==null?void 0:h.classNames)==null?void 0:le.loader,"sonner-loader"),"data-visible":Je==="loading"},Y):C.createElement(Rg,{className:lt(U==null?void 0:U.loader,(_e=h==null?void 0:h.classNames)==null?void 0:_e.loader),visible:Je==="loading"})}return C.createElement("li",{tabIndex:0,ref:it,className:lt(R,rd,U==null?void 0:U.toast,(e=h==null?void 0:h.classNames)==null?void 0:e.toast,U==null?void 0:U.default,U==null?void 0:U[Je],(r=h==null?void 0:h.classNames)==null?void 0:r[Je]),"data-sonner-toast":"","data-rich-colors":(s=h.richColors)!=null?s:P,"data-styled":!(h.jsx||h.unstyled||v),"data-mounted":ne,"data-promise":!!h.promise,"data-swiped":Wi,"data-removed":Me,"data-visible":td,"data-y-position":nd,"data-x-position":ad,"data-index":x,"data-front":ed,"data-swiping":tr,"data-dismissible":kr,"data-type":Je,"data-invert":od,"data-swipe-out":Ks,"data-swipe-direction":ae,"data-expanded":!!(I||me&&ne),style:{"--index":x,"--toasts-before":x,"--z-index":k.length-x,"--offset":`${Me?Ki:Tr.current}px`,"--initial-height":me?"auto":`${ns}px`,...T,...h.style},onDragEnd:()=>{Ye(!1),te(null),Pr.current=null},onPointerDown:W=>{Yi||!kr||(os.current=new Date,Sr(Tr.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(Ye(!0),Pr.current={x:W.clientX,y:W.clientY}))},onPointerUp:()=>{var W,le,_e,nt;if(Ks||!kr)return;Pr.current=null;let at=Number(((W=it.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),zt=Number(((le=it.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),rr=new Date().getTime()-((_e=os.current)==null?void 0:_e.getTime()),ot=G==="x"?at:zt,Ht=Math.abs(ot)/rr;if(Math.abs(ot)>=Xg||Ht>.11){Sr(Tr.current),(nt=h.onDismiss)==null||nt.call(h,h),Le(G==="x"?at>0?"right":"left":zt>0?"down":"up"),Ut(),Gi(!0),st(!1);return}Ye(!1),te(null)},onPointerMove:W=>{var le,_e,nt,at;if(!Pr.current||!kr||((le=window.getSelection())==null?void 0:le.toString().length)>0)return;let zt=W.clientY-Pr.current.y,rr=W.clientX-Pr.current.x,ot=(_e=t.swipeDirections)!=null?_e:ev(re);!G&&(Math.abs(rr)>
1091||Math.abs(zt)>1)&&te(Math.abs(rr)>Math.abs(zt)?"x":"y");let Ht={x:0,y:0};G==="y"?(ot.includes("top")||ot.includes("bottom"))&&(ot.includes("top")&&zt<0||ot.includes("bottom")&&zt>0)&&(Ht.y=zt):G==="x"&&(ot.includes("left")||ot.includes("right"))&&(ot.includes("left")&&rr<0||ot.includes("right")&&rr>0)&&(Ht.x=rr),(Math.abs(Ht.x)>0||Math.abs(Ht.y)>0)&&st(!0),(nt=it.current)==null||nt.style.setProperty("--swipe-amount-x",`${Ht.x}px`),(at=it.current)==null||at.style.setProperty("--swipe-amount-y",`${Ht.y}px`)}},id&&!h.jsx?C.createElement("button",{"aria-label":se,"data-disabled":Yi,"data-close-button":!0,onClick:Yi||!kr?()=>{}:()=>{var W;Ut(),(W=h.onDismiss)==null||W.call(h,h)},className:lt(U==null?void 0:U.closeButton,(i=h==null?void 0:h.classNames)==null?void 0:i.closeButton)},(n=oe==null?void 0:oe.close)!=null?n:Lg):null,h.jsx||S.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:C.createElement(C.Fragment,null,Je||h.icon||h.promise?C.createElement("div",{"data-icon":"",className:lt(U==null?void 0:U.icon,(a=h==null?void 0:h.classNames)==null?void 0:a.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||ld():null,h.type!=="loading"?h.icon||(oe==null?void 0:oe[Je])||Ig(Je):null):null,C.createElement("div",{"data-content":"",className:lt(U==null?void 0:U.content,(o=h==null?void 0:h.classNames)==null?void 0:o.content)},C.createElement("div",{"data-title":"",className:lt(U==null?void 0:U.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?C.createElement("div",{"data-description":"",className:lt(q,sd,U==null?void 0:U.description,(u=h==null?void 0:h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),S.isValidElement(h.cancel)?h.cancel:h.cancel&&li(h.cancel)?C.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||N,onClick:W=>{var le,_e;li(h.cancel)&&kr&&((_e=(le=h.cancel).onClick)==null||_e.call(le,W),Ut())},className:lt(U==null?void 0:U.cancelButton,(d=h==null?void 0:h.classNames)==null?void 0:d.cancelButton)},h.cancel.label):null,S.isValidElement(h.action)?h.action:h.action&&li(h.action)?C.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||F,onClick:W=>{var le,_e;li(h.action)&&((_e=(le=h.action).onClick)==null||_e.call(le,W),!W.defaultPrevented&&Ut())},className:lt(U==null?void 0:U.actionButton,(p=h==null?void 0:h.classNames)==null?void 0:p.actionButton)},h.action.label):null))};function wl(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function rv(t,e){let r={};return[t,e].forEach((s,i)=>{let n=i===1,a=n?"--mobile-offset":"--offset",o=n?Qg:Kg;function l(u){["top","right","bottom","left"].forEach(d=>{r[`${a}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof s=="number"||typeof s=="string"?l(s):typeof s=="object"?["top","right","bottom","left"].forEach(u=>{s[u]===void 0?r[`${a}-${u}`]=o:r[`${a}-${u}`]=typeof s[u]=="number"?`${s[u]}px`:s[u]}):l(o)}),r}var sv=S.forwardRef(function(t,e){let{invert:r,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:n,closeButton:a,className:o,offset:l,mobileOffset:u,theme:d="light",richColors:p,duration:f,style:h,visibleToasts:v=Wg,toastOptions:g,dir:m=wl(),gap:y=Jg,loadingIcon:E,icons:x,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:I}=t,[L,P]=C.useState([]),A=C.useMemo(()=>Array.from(new Set([s].concat(L.filter(J=>J.position).map(J=>J.position)))),[L,s]),[T,N]=C.useState([]),[F,R]=C.useState(!1),[q,z]=C.useState(!1),[re,Z]=C.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Y=C.useRef(null),me=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=C.useRef(null),oe=C.useRef(!1),se=C.useCallback(J=>{P(G=>{var te;return(te=G.find(ae=>ae.id===J.id))!=null&&te.delete||Be.dismiss(J.id),G.filter(({id:ae})=>ae!==J.id)})},[]);return C.useEffect(()=>Be.subscribe(J=>{if(J.dismiss){P(G=>G.map(te=>te.id===J.id?{...te,delete:!0}:te));return}setTimeout(()=>{dd.flushSync(()=>{P(G=>{let te=G.findIndex(ae=>ae.id===J.id);return te!==-1?[...G.slice(0,te),{...G[te],...J},...G.slice(te+1)]:[J,...G]})})})}),[]),C.useEffect(()=>{if(d!=="system"){Z(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z("dark"):Z("light")),typeof window>"u")return;let J=window.matchMedia("(prefers-color-scheme: dark)");try{J.addEventListener("change",({matches:G})=>{Z(G?"dark":"light")})}catch{J.addListener(({matches:te})=>{try{Z(te?"dark":"light")}catch(ae){console.error(ae)}})}},[d]),C.useEffect(()=>{L.length<=1&&R(!1)},[L]),C.useEffect(()=>{let J=G=>{var te,ae;i.every(Le=>G[Le]||G.code===Le)&&(R(!0),(te=Y.current)==null||te.focus()),G.code==="Escape"&&(document.activeElement===Y.current||(ae=Y.current)!=null&&ae.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",J),()=>document.removeEventListener("keydown",J)}
vendor: 11,119 bytes, line 109
109,[i]),C.useEffect(()=>{if(Y.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,oe.current=!1)}},[Y.current]),C.createElement("section",{ref:e,"aria-label":`${k} ${me}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map((J,G)=>{var te;let[ae,Le]=J.split("-");return L.length?C.createElement("ol",{key:J,dir:m==="auto"?wl():m,tabIndex:-1,ref:Y,className:o,"data-sonner-toaster":!0,"data-theme":re,"data-y-position":ae,"data-lifted":F&&L.length>1&&!n,"data-x-position":Le,style:{"--front-toast-height":`${((te=T[0])==null?void 0:te.height)||0}px`,"--width":`${Yg}px`,"--gap":`${y}px`,...h,...rv(l,u)},onBlur:ne=>{oe.current&&!ne.currentTarget.contains(ne.relatedTarget)&&(oe.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||oe.current||(oe.current=!0,U.current=ne.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{q||R(!1)},onDragEnd:()=>R(!1),onPointerDown:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||z(!0)},onPointerUp:()=>z(!1)},L.filter(ne=>!ne.position&&G===0||ne.position===J).map((ne,je)=>{var Me,Et;return C.createElement(tv,{key:ne.id,icons:x,index:je,toast:ne,defaultRichColors:p,duration:(Me=g==null?void 0:g.duration)!=null?Me:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:v,closeButton:(Et=g==null?void 0:g.closeButton)!=null?Et:a,interacting:q,position:J,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:se,toasts:L.filter(tr=>tr.position==ne.position),heights:T.filter(tr=>tr.position==ne.position),setHeights:N,expandByDefault:n,gap:y,loadingIcon:E,expanded:F,pauseWhenPageIsHidden:I,swipeDirections:t.swipeDirections})})):null}))});const iv=({...t})=>{const{theme:e="system"}=Cg();return c.jsx(sv,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})},nv=vd,av=S.forwardRef(({className:t,sideOffset:e=4,...r},s)=>c.jsx(Ql,{ref:s,sideOffset:e,className:Ge("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));av.displayName=Ql.displayName;var Bi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},qi=typeof window>"u"||"Deno"in globalThis;function dt(){}function ov(t,e){return typeof t=="function"?t(e):t}function lv(t){return typeof t=="number"&&t>=0&&t!==1/0}function cv(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ia(t,e){return typeof t=="function"?t(e):t}function uv(t,e){return typeof t=="function"?t(e):t}function El(t,e){const{type:r="all",exact:s,fetchStatus:i,predicate:n,queryKey:a,stale:o}=t;if(a){if(s){if(e.queryHash!==eo(a,e.options))return!1}else if(!Vs(e.queryKey,a))return!1}if(r!=="all"){const l=e.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||i&&i!==e.state.fetchStatus||n&&!n(e))}function Sl(t,e){const{exact:r,status:s,predicate:i,mutationKey:n}=t;if(n){if(!e.options.mutationKey)return!1;if(r){if(Hs(e.options.mutationKey)!==Hs(n))return!1}else if(!Vs(e.options.mutationKey,n))return!1}return!(s&&e.state.status!==s||i&&!i(e))}function eo(t,e){return((e==null?void 0:e.queryKeyHashFn)||Hs)(t)}function Hs(t){return JSON.stringify(t,(e,r)=>Oa(r)?Object.keys(r).sort().reduce((s,i)=>(s[i]=r[i],s),{}):r)}function Vs(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(r=>Vs(t[r],e[r])):!1}function Vu(t,e){if(t===e)return t;const r=kl(t)&&kl(e);if(r||Oa(t)&&Oa(e)){const s=r?t:Object.keys(t),i=s.length,n=r?e:Object.keys(e),a=n.length,o=r?[]:{},l=new Set(s);let u=0;for(let d=0;d<a;d++){const p=r?d:n[d];(!r&&l.has(p)||r)&&t[p]===void 0&&e[p]===void 0?(o[p]=void 0,u++):(o[p]=Vu(t[p],e[p]),o[p]===t[p]&&t[p]!==void 0&&u++)}return i===a&&u===i?t:o}return e}function kl(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Oa(t){if(!Tl(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!Tl(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Tl(t){return Object.prototype.toString.call(t)==="[object Object]"}function dv(t){return new Promise(e=>{setTimeout(e,t)})}function hv(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?Vu(t,e):e}function pv(t,e,r=0){const s=[...t,e];return r&&s.length>r?s.slice(1):s}function fv(t,e,r=0){const s=[e,...t];return r&&s.length>r?s.slice(0,-1):s}var to=Symbol();function Bu(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===to?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var vr,Gt,qr,Nl,gv=(Nl=class extends Bi{constructor(){super();ie(this,vr);ie(this,Gt);ie(this,qr);K(this,qr,e=>{if(!qi&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){w(this,Gt)||this.setEventListener(w(this,qr))}onUnsubscribe(){var e;this.hasListeners()||((e=w(this,Gt))==null||e.call(this),K(this,Gt,void 0))}setEventListener(e){var r;K(this,qr,e),(r=w(this,Gt))==null||r.call(this),K(this,Gt,e(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(e){w(this,vr)!==e&&(K(this,vr,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof w(this,vr)=="boolean"?w(this,vr):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},vr=new WeakMap,Gt=new WeakMap,qr=new WeakMap,Nl),qu=new gv,Gr,Wt,Wr,$l,vv=($l=class extends Bi{constructor(){super();ie(this,Gr,!0);ie(this,Wt);ie(this,Wr);K(this,Wr,e=>{if(!qi&&window.addEventListener){const r=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){w(this,Wt)||this.setEventListener(w(this,Wr))}onUnsubscribe(){var e;this.hasListeners()||((e=w(this,Wt))==null||e.call(this),K(this,Wt,void 0))}setEventListener(e){var r;K(this,Wr,e),(r=w(this,Wt))==null||r.call(this),K(this,Wt,e(this.setOnline.bind(this)))}setOnline(e){w(this,Gr)!==e&&(K(this,Gr,e),this.listeners.forEach(s=>{s(e)}))}isOnline(){return w(this,Gr)}},Gr=new WeakMap,Wt=new WeakMap,Wr=new WeakMap,$l),Ui=new vv;function mv(){let t,e;const r=new Promise((i,n)=>{t=i,e=n});r.status="pending",r.catch(()=>{});function s(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{s({status:"fulfilled",value:i}),t(i)},r.reject=i=>{s({status:"rejected",reason:i}),e(i)},r}function _v(t){return Math.min(1e3*2**t,3e4)}function Gu(t){return(t??"online")==="online"?Ui.isOnline():!0}var Wu=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function In(t){return t instanceof Wu}function Ku(t){let e=!1,r=0,s=!1,i;const n=mv(),a=g=>{var m;s||(f(new Wu(g)),(m=t.abort)==null||m.call(t))},o=()=>{e=!0},l=()=>{e=!1},u=()=>qu.isFocused()&&(t.networkMode==="always"||Ui.isOnline())&&t.canRun(),d=()=>Gu(t.networkMode)&&t.canRun(),p=g=>{var m;s||(s=!0,(m=t.onSuccess)==null||m.call(t,g),i==null||i(),n.resolve(g))},f=g=>{var m;s||(s=!0,(m=t.onError)==null||m.call(t,g),i==null||i(),n.reject(g))},h=()=>new Promise(g=>{var m;i=y=>{(s||u())&&g(y)},(m=t.onPause)==null||m.call(t)}).then(()=>{var g;i=void 0,s||(g=t.onContinue)==null||g.call(t)}),v=()=>{if(s)return;let g;const m=r===0?t.initialPromise:void 0;try{g=m??t.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(p).catch(y=>{var L;if(s)return;const E=t.retry??(qi?0:3),x=t.retryDelay??_v,k=typeof x=="function"?x(r,y):x,I=E===!0||typeof E=="number"&&r<E||typeof E=="function"&&E(r,y);if(e||!I){f(y);return}r++,(L=t.onFail)==null||L.call(t,r,y),dv(k).then(()=>u()?void 0:h()).then(()=>{e?f(y):v()})})};return{promise:n,cancel:a,continue:()=>(i==null||i(),n),cancelRetry:o,continueRetry:l,canStart:d,start:()=>(d()?v():h().then(v),n)}}var yv=t=>setTimeout(t,0);function bv(){let t=[],e=0,r=o=>{o()},s=o=>{o()},i=yv;const n=o=>{e?t.push(o):i(()=>{r(o)})},a=()=>{const o=t;t=[],o.length&&i(()=>{s(()=>{o.forEach(l=>{r(l)})})})};return{batch:o=>{let l;e++;try{l=o()}finally{e--,e||a()}return l},batchCalls:o=>(...l)=>{n(()=>{o(...l)})},schedule:n,setNotifyFunction:o=>{r=o},setBatchNotifyFunction:o=>{s=o},setScheduler:o=>{i=o}}}var Ue=bv(),mr,Fl,Qu=(Fl=class{constructor(){ie(this,mr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),lv(this.gcTime)&&K(this,mr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(qi?1/0:5*60*1e3))}clearGcTimeout(){w(this,mr)&&(clearTimeout(w(this,mr)),K(this,mr,void 0))}},mr=new WeakMap,Fl),Kr,_r,et,yr,Fe,Bs,br,ht,It,Ll,xv=(Ll=class extends Qu{constructor(e){super();ie(this,ht);ie(this,Kr);ie(this,_r);ie(this,et);ie(this,yr);ie(this,Fe);ie(this,Bs);ie(this,br);K(this,br,!1),K(this,Bs,e.defaultOptions),this.setOptions(e.options),this.observers=[],K(this,yr,e.client),K(this,et,w(this,yr).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,K(this,Kr,Ev(this.options)),this.state=e.state??w(this,Kr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=w(this,Fe))==null?void 0:e.promise}setOptions(e){this.options={...w(this,Bs),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&w(this,et).remove(this)}setData(e,r){const s=hv(this.state.data,e,this.options);return Ne(this,ht,It).call(this,{data:s,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),s}setState(e,r){Ne(this,ht,It).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var s,i;const r=(s=w(this,Fe))==null?void 0:s.promise;return(i=w(this,Fe))==null||i.cancel(e),r?r.then(dt).catch(dt):Prom
109ise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(w(this,Kr))}isActive(){return this.observers.some(e=>uv(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===to||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ia(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!cv(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(s=>s.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=w(this,Fe))==null||r.continue()}onOnline(){var r;const e=this.observers.find(s=>s.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=w(this,Fe))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),w(this,et).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(w(this,Fe)&&(w(this,br)?w(this,Fe).cancel({revert:!0}):w(this,Fe).cancelRetry()),this.scheduleGc()),w(this,et).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ne(this,ht,It).call(this,{type:"invalidate"})}fetch(e,r){var u,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(w(this,Fe))return w(this,Fe).continueRetry(),w(this,Fe).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const s=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(K(this,br,!0),s.signal)})},n=()=>{const f=Bu(this.options,r),v=(()=>{const g={client:w(this,yr),queryKey:this.queryKey,meta:this.meta};return i(g),g})();return K(this,br,!1),this.options.persister?this.options.persister(f,v,this):f(v)},o=(()=>{const f={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:w(this,yr),state:this.state,fetchFn:n};return i(f),f})();(u=this.options.behavior)==null||u.onFetch(o,this),K(this,_r,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=o.fetchOptions)==null?void 0:d.meta))&&Ne(this,ht,It).call(this,{type:"fetch",meta:(p=o.fetchOptions)==null?void 0:p.meta});const l=f=>{var h,v,g,m;In(f)&&f.silent||Ne(this,ht,It).call(this,{type:"error",error:f}),In(f)||((v=(h=w(this,et).config).onError)==null||v.call(h,f,this),(m=(g=w(this,et).config).onSettled)==null||m.call(g,this.state.data,f,this)),this.scheduleGc()};return K(this,Fe,Ku({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:f=>{var h,v,g,m;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(y){l(y);return}(v=(h=w(this,et).config).onSuccess)==null||v.call(h,f,this),(m=(g=w(this,et).config).onSettled)==null||m.call(g,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,h)=>{Ne(this,ht,It).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{Ne(this,ht,It).call(this,{type:"pause"})},onContinue:()=>{Ne(this,ht,It).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),w(this,Fe).start()}},Kr=new WeakMap,_r=new WeakMap,et=new WeakMap,yr=new WeakMap,Fe=new WeakMap,Bs=new WeakMap,br=new WeakMap,ht=new WeakSet,It=function(e){const r=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...wv(s.data,this.options),fetchMeta:e.meta??null};case"success":return K(this,_r,void 0),{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return In(i)&&i.revert&&w(this,_r)?{...w(this,_r),fetchStatus:"idle"}
vendor: 4,419 bytes, line 109
109:{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=r(this.state),Ue.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),w(this,et).notify({query:this,type:"updated",action:e})})},Ll);function wv(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gu(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Ev(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,s=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var vt,Dl,Sv=(Dl=class extends Bi{constructor(e={}){super();ie(this,vt);this.config=e,K(this,vt,new Map)}build(e,r,s){const i=r.queryKey,n=r.queryHash??eo(i,r);let a=this.get(n);return a||(a=new xv({client:e,queryKey:i,queryHash:n,options:e.defaultQueryOptions(r),state:s,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){w(this,vt).has(e.queryHash)||(w(this,vt).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=w(this,vt).get(e.queryHash);r&&(e.destroy(),r===e&&w(this,vt).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ue.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return w(this,vt).get(e)}getAll(){return[...w(this,vt).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(s=>El(r,s))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(s=>El(e,s)):r}notify(e){Ue.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){Ue.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ue.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},vt=new WeakMap,Dl),mt,De,xr,_t,qt,Ul,kv=(Ul=class extends Qu{constructor(e){super();ie(this,_t);ie(this,mt);ie(this,De);ie(this,xr);this.mutationId=e.mutationId,K(this,De,e.mutationCache),K(this,mt,[]),this.state=e.state||Tv(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){w(this,mt).includes(e)||(w(this,mt).push(e),this.clearGcTimeout(),w(this,De).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){K(this,mt,w(this,mt).filter(r=>r!==e)),this.scheduleGc(),w(this,De).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){w(this,mt).length||(this.state.status==="pending"?this.scheduleGc():w(this,De).remove(this))}continue(){var e;return((e=w(this,xr))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var n,a,o,l,u,d,p,f,h,v,g,m,y,E,x,k,I,L,P,A;const r=()=>{Ne(this,_t,qt).call(this,{type:"continue"})};K(this,xr,Ku({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(T,N)=>{Ne(this,_t,qt).call(this,{type:"failed",failureCount:T,error:N})},onPause:()=>{Ne(this,_t,qt).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>w(this,De).canRun(this)}));const s=this.state.status==="pending",i=!w(this,xr).canStart();try{if(s)r();else{Ne(this,_t,qt).call(this,{type:"pending",variables:e,isPaused:i}),await((a=(n=w(this,De).config).onMutate)==null?void 0:a.call(n,e,this));const N=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,e));N!==this.state.context&&Ne(this,_t,qt).call(this,{type:"pending",context:N,variables:e,isPaused:i})}const T=await w(this,xr).start();return await((d=(u=w(this,De).config).onSuccess)==null?void 0:d.call(u,T,e,this.state.context,this)),await((f=(p=this.options).onSuccess)==null?void 0:f.call(p,T,e,this.state.context)),await((v=(h=w(this,De).config).onSettled)==null?void 0:v.call(h,T,null,this.state.variables,this.state.context,this)),await((m=(g=this.options).onSettled)==null?void 0:m.call(g,T,null,e,this.state.context)),Ne(this,_t,qt).call(this,{type:"success",data:T}),T}catch(T){try{throw await((E=(y=w(this,De).config).onError)==null?void 0:E.
109call(y,T,e,this.state.context,this)),await((k=(x=this.options).onError)==null?void 0:k.call(x,T,e,this.state.context)),await((L=(I=w(this,De).config).onSettled)==null?void 0:L.call(I,void 0,T,this.state.variables,this.state.context,this)),await((A=(P=this.options).onSettled)==null?void 0:A.call(P,void 0,T,e,this.state.context)),T}finally{Ne(this,_t,qt).call(this,{type:"error",error:T})}}finally{w(this,De).runNext(this)}}},mt=new WeakMap,De=new WeakMap,xr=new WeakMap,_t=new WeakSet,qt=function(e){const r=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ue.batch(()=>{w(this,mt).forEach(s=>{s.onMutationUpdate(e)}),w(this,De).notify({mutation:this,type:"updated",action:e})})},Ul);function Tv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Nt,pt,qs,zl,Pv=(zl=class extends Bi{constructor(e={}){super();ie(this,Nt);ie(this,pt);ie(this,qs);this.config=e,K(this,Nt,new Set),K(this,pt,new Map),K(this,qs,0)}build(e,r,s){const i=new kv({mutationCache:this,mutationId:++Ys(this,qs)._,options:e.defaultMutationOptions(r),state:s});return this.add(i),i}add(e){w(this,Nt).add(e);const r=ci(e);if(typeof r=="string"){const s=w(this,pt).get(r);s?s.push(e):w(this,pt).set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(w(this,Nt).delete(e)){const r=ci(e);if(typeof r=="string"){const s=w(this,pt).get(r);if(s)if(s.length>1){const i=s.indexOf(e);i!==-1&&s.splice(i,1)}else s[0]===e&&w(this,pt).delete(r)}}this.notify({type:"removed",mutation:e})}canRun(e){const r=ci(e);if(typeof r=="string"){const s=w(this,pt).get(r),i=s==null?void 0:s.find(n=>n.state.status==="pending");return!i||i===e}else return!0}runNext(e){var s;const r=ci(e);if(typeof r=="string"){const i=(s=w(this,pt).get(r))==null?void 0:s.find(n=>n!==e&&n.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ue.batch(()=>{w(this,Nt).forEach(e=>{this.notify({type:"removed",mutation:e})}),w(this,Nt).clear(),w(this,pt).clear()})}getAll(){return Array.from(w(this,Nt))}find(e){const r={exact:!0,...e};return this.getAll().find(s=>Sl(r,s))}findAll(e={}){return this.getAll().filter(r=>Sl(e,r))}notify(e){Ue.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>
vendor: 6,260 bytes, line 109
109r.state.isPaused);return Ue.batch(()=>Promise.all(e.map(r=>r.continue().catch(dt))))}},Nt=new WeakMap,pt=new WeakMap,qs=new WeakMap,zl);function ci(t){var e;return(e=t.options.scope)==null?void 0:e.id}function Pl(t){return{onFetch:(e,r)=>{var d,p,f,h,v;const s=e.options,i=(f=(p=(d=e.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:f.direction,n=((h=e.state.data)==null?void 0:h.pages)||[],a=((v=e.state.data)==null?void 0:v.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const m=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(e.signal.aborted?g=!0:e.signal.addEventListener("abort",()=>{g=!0}),e.signal)})},y=Bu(e.options,e.fetchOptions),E=async(x,k,I)=>{if(g)return Promise.reject();if(k==null&&x.pages.length)return Promise.resolve(x);const P=(()=>{const F={client:e.client,queryKey:e.queryKey,pageParam:k,direction:I?"backward":"forward",meta:e.options.meta};return m(F),F})(),A=await y(P),{maxPages:T}=e.options,N=I?fv:pv;return{pages:N(x.pages,A,T),pageParams:N(x.pageParams,k,T)}};if(i&&n.length){const x=i==="backward",k=x?Av:Al,I={pages:n,pageParams:a},L=k(s,I);o=await E(I,L,x)}else{const x=t??n.length;do{const k=l===0?a[0]??s.initialPageParam:Al(s,o);if(l>0&&k==null)break;o=await E(o,k),l++}while(l<x)}return o};e.options.persister?e.fetchFn=()=>{var g,m;return(m=(g=e.options).persister)==null?void 0:m.call(g,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=u}}}function Al(t,{pages:e,pageParams:r}){const s=e.length-1;return e.length>0?t.getNextPageParam(e[s],e,r[s],r):void 0}function Av(t,{pages:e,pageParams:r}){var s;return e.length>0?(s=t.getPreviousPageParam)==null?void 0:s.call(t,e[0],e,r[0],r):void 0}var Se,Kt,Qt,Qr,Yr,Yt,Jr,Xr,Hl,jv=(Hl=class{constructor(t={}){ie(this,Se);ie(this,Kt);ie(this,Qt);ie(this,Qr);ie(this,Yr);ie(this,Yt);ie(this,Jr);ie(this,Xr);K(this,Se,t.queryCache||new Sv),K(this,Kt,t.mutationCache||new Pv),K(this,Qt,t.defaultOptions||{}),K(this,Qr,new Map),K(this,Yr,new Map),K(this,Yt,0)}mount(){Ys(this,Yt)._++,w(this,Yt)===1&&(K(this,Jr,qu.subscribe(async t=>{t&&(await this.resumePausedMutations(),w(this,Se).onFocus())})),K(this,Xr,Ui.subscribe(async t=>{t&&(await this.resumePausedMutations(),w(this,Se).onOnline())})))}unmount(){var t,e;Ys(this,Yt)._--,w(this,Yt)===0&&((t=w(this,Jr))==null||t.call(this),K(this,Jr,void 0),(e=w(this,Xr))==null||e.call(this),K(this,Xr,void 0))}isFetching(t){return w(this,Se).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return w(this,Kt).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=w(this,Se).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=w(this,Se).build(this,e),s=r.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Ia(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(t){return w(this,Se).findAll(t).map(({queryKey:e,state:r})=>{const s=r.data;return[e,s]})}setQueryData(t,e,r){const s=this.defaultQueryOptions({queryKey:t}),i=w(this,Se).get(s.queryHash),n=i==null?void 0:i.state.data,a=ov(e,n);if(a!==void 0)return w(this,Se).build(this,s).setData(a,{...r,manual:!0})}setQueriesData(t,e,r){return Ue.batch(()=>w(this,Se).findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=w(this,Se).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=w(this,Se);Ue.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=w(this,Se);return Ue.batch(()=>(r.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const r={revert:!0,...e},s=Ue.batch(()=>w(this,Se).findAll(t).map(i=>i.cancel(r)));return Promise.all(s).then(dt).catch(dt)}invalidateQueries(t,e={}){return Ue.batch(()=>(w(this,Se).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},s=Ue.batch(()=>w(this,Se).findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let n=i.fetch(void 0,r);return r.throwOnError||(n=n.catch(dt)),i.state.fetchStatus==="paused"?Promise.resolve():n}));return Promise.all(s).then(dt)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=w(this,Se).build(this,e);return r.isStaleByTime(Ia(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(dt).catch(dt)}fetchInfiniteQuery(t){return t.behavior=Pl(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(dt).catch(dt)}ensureInfiniteQueryData(t){return t.behavior=Pl(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Ui.isOnline()?w(this,Kt).resumePausedMutations():Promise.resolve()}getQueryCache(){return w(this,Se)}getMutationCache(){return w(this,Kt)}getDefaultOptions(){return w(this,Qt)}setDefaultOptions(t){K(this,Qt,t)}setQueryDefaults(t,e){w(this,Qr).set(Hs(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...w(this,Qr).values()],r={};return e.forEach(s=>{Vs(t,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(t,e){w(this,Yr).set(Hs(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...w(this,Yr).values()],r={};return e.forEach(s=>{Vs(t,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...w(this,Qt).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=eo(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===to&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...w(this,Qt).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){w(this,Se).clear(),w(this,Kt).clear()}}
109,Se=new WeakMap,Kt=new WeakMap,Qt=new WeakMap,Qr=new WeakMap,Yr=new WeakMap,Yt=new WeakMap,Jr=new WeakMap,Xr=new WeakMap,Hl),Cv=S.createContext(void 0),Iv=({client:t,children:e})=>(S.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),c.jsx(Cv.Provider,{value:t,children:e}));function Ov(){const t=Gs(),e=ff();return S.useEffect(()=>{e&&e.capture("$pageview",{$current_url:window.location.href,$pathname:t.pathname})},[t.pathname,t.search,e]),null}const pr={CTA_APPLY_PILOT:"cta_apply_for_pilot_clicked",CTA_SCHEDULE_CALL:"cta_schedule_a_call_clicked",CTA_LOCAL_SUPPORT:"cta_local_support_clicked",NAV_CLICKED:"nav_link_clicked",FORM_SUBMITTED:"form_submitted",OUTBOUND_LINK:"outbound_link_clicked"};function fr(t,e){Ws.capture(t,e)}function Rv(t,e){Ws.identify(t,{email:t,...e})}const Mv=()=>{const{pathname:t,hash:e}=Gs();return S.useLayoutEffect(()=>{if(typeof window>"u")return;const r=window.history.scrollRestoration;try{window.history.scrollRestoration="manual"}catch{}return()=>{try{window.history.scrollRestoration=r??"auto"}catch{}}},[]),S.useLayoutEffect(()=>{if(!(typeof window>"u")){if(e){const r=e.replace(/^#/,""),s=r?document.getElementById(r):null;if(s){const i=window.matchMedia("(prefers-reduced-motion: reduce)").matches;s.scrollIntoView({behavior:i?"auto":"smooth",block:"start"});return}}window.scrollTo(0,0)}},[t,e]),null},Yu=[{slug:"ai-already-the-generalist",title:"AI Is Already the Generalist. Curiosity Is Your Edge",description:"AI already knows a little about everything, so the advice to 'become a generalist' misses the point. Burt Brooks on why curiosity about how other departments actually work, not breadth of knowledge, is the human edge as AI becomes the glue between them.",image:"article-ai-already-the-generalist.png",date:"2026-09-22"},{slug:"documentation-tax",title:"The Documentation Tax",description:"Every hour a direct support professional spends documenting is an hour not spent supporting. Burt Brooks on who the paperwork is really written for, and what has to change before AI can safely take any of it.",image:"article-documentation-tax.png",date:"2026-10-14"},{slug:"broken-links",title:"A Dozen Broken Links and a PDF From 2019",description:"Moving to a new state should not mean starting your disability services search from zero. Why the information almost always exists, why families still cannot find it, and what we built across 3,143 counties in response.",image:"article-broken-links.png",date:"2026-10-07"},{slug:"transition-cliff",hidden:!0,title:"The Cliff Nobody Warns You About",description:"At graduation a student goes from a system that has to find them to a system they have to find. Burt Brooks on the handoff from school to adult services, and the five Pre-ETS activities meant to bridge it.",image:"article-transition-cliff.png",date:"2026-09-30"},{slug:"how-many-steps",hidden:!0,title:"How Many Steps Is Too Many Steps?",description:"Staff know the accommodations office exists. Students mostly do not know how to reach it. Burt Brooks on the unseen burden of the request process, and the survey that showed the problem sits upstream of services.",image:"article-how-many-steps.png",date:"2026-09-23"},{slug:"afternoon-test",hidden:!0,title:"The Afternoon Test: What Your Website Tells a Student",description:"Eight questions, no login, no insider knowledge. What eighteen public college websites revealed when we read them the way a family does, and why the room reviewing the page is the least qualified to judge it.",image:"article-afternoon-test.png",date:"2026-09-16"},{slug:"deadline-that-moved",title:"The Deadline That Moved, and the One That Never Existed",description:"DOJ pushed the Title II web accessibility dates back a year, and the extension is already under challenge. Meanwhile Section 504 has required accessible programs since 1977, with no deadline coming.",image:"article-deadline-that-moved.png",date:"2026-09-09"},{slug:"year-ago-left-career-to-fix-paperwork",hidden:!0,title:"A Year Ago, I Left a Good Career to Fix Some Paperwork",description:"One year in: PathAble founder Burt Brooks on leaving twenty years in disability services to build affordable, community-driven AI â from a CES 2026 award to free resource portals for every U.S. state and county.",image:"article-year-ago-left-career.png",date:"2026-06-29"},{slug:"who-gets-to-benefit-from-ai",title:"Who Gets to Benefit from AI?",description:"The disability community has been quietly benefiting from AI for years â text-to-speech, predictive communication, autonomous vehicles. Burt Brooks on why the loudest AI critics miss the people who need this technology most.",image:"article-who-gets-to-benefit-from-ai.png",date:"2026-06-07"},{slug:"navigating-neurodiversity-college",title:"Navigating Neurodiversity: Self-Advocacy on College Campuses",description:"College is the first place most people are expected to advocate for themselves. For neurodivergent students, the gap between expectation and preparation is where they fall through â and what campuses can do about it.",image:"article-navigating-neurodiversity.png",date:"2026-05-18"},{slug:"death-of-spot-the-deepfake",title:"The Death of 'Spot the Deepfake'",description:"Why community trust is the only way forward in an AI-saturated world. A perspective on trust, disability employment, and the future of human verification.",image:"deepfake-article-hero.png",date:"2026-02-20"},{slug:"automation-consideration",title:"The Automation Consideration: Keeping Autonomy and Agency in the Age of AI",description:"Where does automation end and the agency of the individual begin? A perspective on AI, disability employment, and building tools that augment rather than replace.",image:"article-automation-consideration.png",date:"2026-04-13"},{slug:"ai-boost-disability-employment",title:"Will AI Boost Disability Employment? Or Will Layoffs Hit This Community Hardest?",description:"Layoffs are rising and AI is reshaping work. Here's why people with disabilities stand to lose the most â and how PathAble is using AI to empower, not replace, the staff and agencies that support them.",image:"article-ai-boost-disability-employment.png",date:"2026-04-13"},{slug:"change-management-age-of-ai",title:"Change Management in the Age of AI: Keeping Disabled Voices in the Conversation",description:"AI is reshaping work, services, and trust faster than any prior shift. Here's how to keep people with disabilities in front of the wave, not underneath it.",image:"article-change-management.png",date:"2026-04-13"},{slug:"dsp-tech-adoption",title:"Why Direct Support Staff Aren't Using the Tech That Could Help Them",description:"The adoption gap in human services tech isn't a technology problem â it's a trust, training, and communication problem. Here's how to close it.",image:"article-dsp-tech-adoption.png",date:"2026-04-13"}],Ju="https://pathableai.com";function Nv(t){return`${Ju}/articles/${t}`}function $v(t){return`${Ju}/social-images/${t}`}function e_(t){return Yu.find(e=>e.slug===t)}function ct(t,e,r){let s=document.head.querySelector(`meta[${t}="${e}"]`);s||(s=document.createElement("meta"),s.setAttribute(t,e),document.head.appendChild(s)),s.setAttribute("content",r)}function Fv(t){let e=document.head.querySelector('link[rel="canonical"]');e||(e=document.createElement("link"),e.setAttribute("rel","canonical"),document.head.appendChild(e)),e.setAttribute("href",t)}const Lv=()=>{const{pathname:t}=Gs();return S.useEffect(()=>{try{const e=t.match(/^\/articles\/([^/]+)\/?$/);if(!e)return;const r=Yu.find(n=>n.slug===e[1]);if(!r)return;const s=Nv(r.slug),i=$v(r.image);document.title=`${r.title} | PathAble AI`,ct("name","description",r.description),Fv(s),ct("property","og:type","article"),ct("property","og:site_name","PathAble AI"),ct("property","og:title",r.title),ct("property","og:description",r.description),ct("property","og:image",i),ct("property","og:url",s),ct("name","twitter:card","summary_large_image"),ct("name","twitter:title",r.title),ct("name","twitter:description",r.description),ct("name","twitter:image",i)}catch{}},[t]),null},jl=250,Dv=3e3,Uv=()=>{const{pathname:t,hash:e}=Gs(),[r,s]=S.useState({text:"",nav:0}),i=S.useRef(0),n=S.useRef(!0);return S.useEffect(()=>{if(n.current){n.current=!1;return}let a=!1,o,l,u=null;const d=()=>
109{if(a)return;a=!0,clearTimeout(o),clearTimeout(l),u==null||u.disconnect();const f=document.title||"",h=f.split("|")[0].trim()||f.trim();if(i.current+=1,s({text:h?`${h}. Page loaded.`:"Page loaded.",nav:i.current}),!e){const v=document.getElementById("main-content");if(v)try{v.focus({preventScroll:!0})}catch{v.focus()}}};o=setTimeout(d,jl),l=setTimeout(d,Dv);const p=document.querySelector("title");return p&&(u=new MutationObserver(()=>{clearTimeout(o),o=setTimeout(d,jl)}),u.observe(p,{childList:!0,characterData:!0,subtree:!0})),()=>{a=!0,clearTimeout(o),clearTimeout(l),u==null||u.disconnect()}},[t]),c.jsx("div",{"aria-live":"polite","aria-atomic":"true",role:"status",className:"sr-only",style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:0},children:c.jsx("p",{children:r.text},r.nav)})},zv=ju("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-md hover:shadow-lg transition-all duration-300",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",hero:"bg-gradient-to-r from-primary to-primary-glow text-primary-foreground hover:shadow-glow shadow-lg transition-all duration-300 hover:scale-105",accent:"bg-gradient-to-r from-accent to-accent-glow text-accent-foreground hover:shadow-glow shadow-lg transition-all duration-300 hover:scale-105"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Xt=S.forwardRef(({className:t,variant:e,size:r,asChild:s=!1,...i},n)=>{const a=s?md:"button";return c.jsx(a,{className:Ge(zv({variant:e,size:r,className:t})),ref:n,...i})});Xt.displayName="Button";const Hv="/assets/PathAble_Logo_AI-oKc90whS.svg",Vv=()=>{const[t,e]=S.useState(!1),r=Gs(),s=[{path:"/",label:"Home"},{path:"/about",label:"About Us"},{path:"/services",label:"Services"},{path:"/portals",label:"State Portals"},{path:"/pilot-program",label:"Pilot Program"},{path:"/media",label:"Media"}],i=n=>n==="/portals"?r.pathname.startsWith("/portals")||r.pathname.startsWith("/pathable"):r.pathname===n;return c.jsxs(c.Fragment,{children:[c.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 focus:z-50 focus:px-4 focus:py-2 focus:bg-primary focus:text-primary-foreground focus:rounded-md focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",children:"Skip to main content"}),c.jsx("header",{className:"sticky top-0 z-50 w-full bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 border-b",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"flex h-20 items-center justify-between",children:[c.jsx(Te,{to:"/",className:"flex items-center hover:opacity-80 transition-opacity",children:c.jsx("img",{src:Hv,alt:"PathAble AI",width:157,height:56,className:"h-12 md:h-14 w-auto"})}),c.jsxs("nav",{className:"hidden md:flex items-center space-x-1","aria-label":"Main navigation",children:[s.map(n=>c.jsx(Te,{to:n.path,className:`px-4 py-2 rounded-md transition-colors font-poppins focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 ${i(n.path)?"text-primary font-semibold":"text-foreground hover:text-primary hover:bg-primary/5"}`,children:n.label},n.path)),c.jsx(Xt,{size:"sm",className:"ml-2 rounded-full bg-accent text-accent-foreground hover:bg-accent/90 font-poppins",asChild:!0,children:c.jsxs(Te,{to:"/contact",onClick:()=>fr(pr.NAV_CLICKED,{location:"header"}),children:["Get Started",c.jsx(Ms,{className:"w-4 h-4 ml-1","aria-hidden":"true"})]})})]}),c.jsx("div",{className:"flex items-center space-x-4",children:c.jsx("button",{onClick:()=>e(!t),className:"md:hidden p-2 hover:bg-accent rounded-md focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2","aria-label":t?"Close menu":"Open menu","aria-expanded":t,"aria-controls":"mobile-navigation",children:t?c.jsx(Ou,{size:24}):c.jsx(Uf,{size:24})})})]}),t&&c.jsxs("nav",{id:"mobile-navigation",className:"md:hidden py-4 space-y-2 border-t","aria-label":"Mobile navigation",children:[s.map(n=>c.jsx(Te,{to:n.path,onClick:()=>e(!1),className:`block px-4 py-3 rounded-md transition-colors font-poppins focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 ${i(n.path)?"text-primary font-semibold bg-primary/5":"text-foreground hover:text-primary hover:bg-primary/5"}`,children:n.label},n.path)),c.jsx("div",{className:"px-4 pt-2",children:c.jsx(Xt,{size:"sm",className:"w-full rounded-full bg-accent text-accent-foreground hover:bg-accent/90 font-poppins",asChild:!0,children:c.jsxs(Te,{to:"/contact",onClick:()=>{e(!1),fr(pr.NAV_CLICKED,{location:"mobile_menu"})},children:["Get Started",c.jsx(Ms,{className:"w-4 h-4 ml-1","aria-hidden":"true"})]})})})]})]})})]})},Bv="/assets/PathAble_Logo_White-BHruK5Pk.png",qv=()=>(S.useEffect(()=>{const t=document.createElement("script");return t.src="https://js-na2.hsforms.net/forms/embed/242882942.js",t.defer=!0,document.body.appendChild(t),()=>{document.body.contains(t)&&document.body.removeChild(t)}},[]),c.jsx("footer",{className:"bg-foreground text-white",role:"contentinfo",children:c.jsxs("div",{className:"container mx-auto px-4 py-12",children:[c.jsxs("div",{className:"grid md:grid-cols-3 gap-8 items-start",children:[c.jsxs("div",{children:[c.jsx("img",{src:Bv,alt:"PathAble",className:"h-10 w-auto mb-4"}),c.jsx("p",{className:"text-white/85 mb-4 font-poppins",children:"Mission-driven innovation studio building smarter, practical AI tools for the disability community."}),c.jsxs("div",{className:"space-y-2 text-sm",children:[c.jsxs("div",{className:"flex items-center space-x-2 text-white/85",children:[c.jsx(Df,{className:"w-4 h-4","aria-hidden":"true"}),c.jsx("a",{href:"mailto:[email protected]",className:"hover:text-lime focus:text-lime focus:outline-none focus:underline transition-colors","aria-label":"Send email to [email protected]",children:"[email protected]"})]}),c.jsxs("div",{className:"flex items-center space-x-2 text-white/85",children:[c.jsx(zf,{className:"w-4 h-4","aria-hidden":"true"}),c.jsx("a",{href:"tel:+16095668273",className:"hover:text-lime focus:text-lime focus:outline-none focus:underline transition-colors","aria-label":"Call PathAble at (609) 566-8273",children:"(609) 566-8273"})]}),c.jsxs("div",{className:"flex items-center space-x-2 text-white/85",children:[c.jsx(Iu,{className:"w-4 h-4","aria-hidden":"true"}),c.jsx("span",{children:"Swedesboro, NJ · Serving nationwide"})]})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-semibold mb-4 font-poppins text-white",children:"Qu
109ick Links"}),c.jsxs("ul",{className:"space-y-2",children:[c.jsx("li",{children:c.jsx(Te,{to:"/",className:"text-white/85 hover:text-lime transition-colors focus:outline-none focus:underline",children:"Home"})}),c.jsx("li",{children:c.jsx(Te,{to:"/about",className:"text-white/85 hover:text-lime transition-colors focus:outline-none focus:underline",children:"About Us"})}),c.jsx("li",{children:c.jsx(Te,{to:"/pathablenj",className:"text-white/85 hover:text-lime transition-colors focus:outline-none focus:underline",children:"NJ Portal"})}),c.jsx("li",{children:c.jsx(Te,{to:"/pathablepa",className:"text-white/85 hover:text-lime transition-colors focus:outline-none focus:underline",children:"PA Portal"})}),c.jsx("li",{children:c.jsx(Te,{to:"/pilot-program",className:"text-white/85 hover:text-lime transition-colors focus:outline-none focus:underline",children:"Pilot Program"})}),c.jsx("li",{children:c.jsx(Te,{to:"/media",className:"text-white/85 hover:text-lime transition-colors focus:outline-none focus:underline",children:"Media"})}),c.jsx("li",{children:c.jsx(Te,{to:"/media?tag=Podcast",className:"text-white/85 hover:text-lime transition-colors focus:outline-none focus:underline",children:"Podcast"})}),c.jsx("li",{children:c.jsx(Te,{to:"/contact",className:"text-white/85 hover:text-lime transition-colors focus:outline-none focus:underline",children:"Contact Us"})}),c.jsx("li",{children:c.jsx(Te,{to:"/accessibility",className:"text-white/85 hover:text-lime transition-colors focus:outline-none focus:underline",children:"Accessibility"})})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-semibold mb-4 font-poppins text-white",children:"Stay Updated"}),c.jsx("p",{className:"text-white/90 mb-4 text-sm font-semibold",children:"Get monthly insights on AI accessibility and innovation"}),c.jsx("p",{className:"text-white/85 mb-4 text-sm",children:"Join advocates and organizations building an inclusive future."}),c.jsx("div",{className:"hs-form-frame","data-region":"na2","data-form-id":"c65bde48-adc0-483f-8ba3-ec7576841356","data-portal-id":"242882942"})]})]}),c.jsx("div",{className:"mt-12 pt-8 border-t border-white/25 text-center text-sm text-white/80",children:c.jsxs("p",{children:["© ",new Date().getFullYear()," PathAble, LLC. All rights reserved."," · ",c.jsx(Te,{to:"/privacy",className:"hover:text-lime focus:text-lime focus:outline-none focus:underline transition-colors",children:"Privacy & Security"})," · ",c.jsx(Te,{to:"/accessibility",className:"hover:text-lime focus:text-lime focus:outline-none focus:underline transition-colors",children:"Accessibility"})]})})]})})),Gv=()=>{const[t,e]=S.useState(!1);S.useEffect(()=>{const s=()=>{e(window.scrollY>400)};return window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)},[]);const r=()=>{const s=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.scrollTo({top:0,behavior:s?"auto":"smooth"})};return t?c.jsx(Xt,{onClick:r,size:"icon",className:"fixed bottom-8 right-8 z-50 h-12 w-12 rounded-full shadow-lg hover:shadow-xl transition-all duration-300 animate-fade-in focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","aria-label":"Scroll back to top of page",children:c.jsx(Of,{className:"w-5 h-5","aria-hidden":"true"})}):null},On="PathAble AI: practical AI tools for the disability community",Rn="AI tools for vocational rehab agencies, disability providers, and schools, plus free directories of disability services in all 50 states.",Wv="vocational rehabilitation AI, disability employment services, job coaching platform, VR agency technology, IDD services, transition programs, workforce development",Cl="https://storage.googleapis.com/gpt-engineer-file-uploads/9HcsGjW6nSfbH9AEEwNr7fDWbnN2/social-images/social-1761081409290-Untitled design (7).png",Mn="https://pathableai.com/",Kv="seohead-jsonld";function Ee(t,e,r){const s=document.querySelector(t);s&&s.setAttribute(e,r)}function Il(t){const e=document.querySelector('link[rel="canonical"]');e&&e.setAttribute("href",t)}const Qv=({title:t,description:e,keywords:r,ogImage:s,ogUrl:i,ogType:n="website",jsonLd:a})=>(S.useEffect(()=>{document.title=t,Ee('meta[name="description"]',"content",e),r&&Ee('meta[name="keywords"]',"content",r),Ee('meta[property="og:title"]',"content",t),Ee('meta[property="og:description"]',"content",e),Ee('meta[property="og:type"]',"content",n),s&&Ee('meta[property="og:image"]',"content",s),Ee('meta[name="twitter:title"]',"content",t),Ee('meta[name="twitter:description"]',"content",e),s&&Ee('meta[name="twitter:image"]',"content",s);const o=i??(typeof window<"u"?`${window.location.origin}${window.location.pathname}`:void 0);o&&(Ee('meta[property="og:url"]',"content",o),Ee('meta[name="twitter:url"]',"content",o),Il(o));let l=null;return a&&(l=document.createElement("script"),l.type="application/ld+json",l.id=Kv,l.text=JSON.stringify(a),document.head.appendChild(l)),()=>{document.title=On,Ee('meta[name="description"]',"content",Rn),Ee('meta[name="keywords"]',"content",Wv),Ee('meta[property="og:title"]',"content",On),Ee('meta[property="og:description"]',"content",Rn),Ee('meta[property="og:image"]',"content",Cl),Ee('meta[property="og:url"]',"content",Mn),Ee('meta[property="og:type"]',"content","website"),Ee('meta[name="twitter:title"]',"content",On),Ee('meta[name="twitter:description"]',"content",Rn),Ee('meta[name="twitter:image"]',"content",Cl),Ee('meta[name="twitter:url"]',"content",Mn),Il(Mn),l&&l.parentNode&&l.parentNode.removeChild(l)}},[t,e,r,s,i,n,a]),null),Xu=S.forwardRef(({className:t,...e},r)=>c.jsx("div",{ref:r,className:Ge("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));
109Xu.displayName="Card";const Yv=S.forwardRef(({className:t,...e},r)=>c.jsx("div",{ref:r,className:Ge("flex flex-col space-y-1.5 p-6",t),...e}));Yv.displayName="CardHeader";const Jv=S.forwardRef(({className:t,...e},r)=>c.jsx("h3",{ref:r,className:Ge("text-2xl font-semibold leading-none tracking-tight",t),...e}));Jv.displayName="CardTitle";const Xv=S.forwardRef(({className:t,...e},r)=>c.jsx("p",{ref:r,className:Ge("text-sm text-muted-foreground",t),...e}));Xv.displayName="CardDescription";const Zu=S.forwardRef(({className:t,...e},r)=>c.jsx("div",{ref:r,className:Ge("p-6 pt-0",t),...e}));Zu.displayName="CardContent";const Zv=S.forwardRef(({className:t,...e},r)=>c.jsx("div",{ref:r,className:Ge("flex items-center p-6 pt-0",t),...e}));Zv.displayName="CardFooter";const em=[{icon:Bf,title:"Reduces Staff Turnover",description:"Automates documentation so staff focus on meaningful work, not paperwork that drives them out.",color:"bg-primary/10 text-primary",borderColor:"hover:border-primary/40"},{icon:Hf,title:"Prevents Errors & Omissions",description:"Auto-generates notes, flags gaps, and ensures audit-ready records to reduce risk.",color:"bg-accent/10 text-accent",borderColor:"hover:border-accent/40"},{icon:Vf,title:"Improves Job Satisfaction",description:"Frees staff from admin so they can focus on relationships and outcomes.",color:"bg-bright-blue/10 text-bright-blue",borderColor:"hover:border-bright-blue/40"},{icon:$f,title:"Creates Time Savings",description:"Designed to reclaim a significant share of staff time with automated notes, checklists, and insights.",color:"bg-lime/20 text-lime-foreground",borderColor:"hover:border-lime/60"}],tm=()=>c.jsx("section",{className:"py-20 px-4","aria-labelledby":"roi-heading",children:c.jsx("div",{className:"container mx-auto",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-14",children:[c.jsx("span",{className:"inline-block px-4 py-2 bg-accent text-accent-foreground rounded-full text-sm font-bold font-poppins mb-4",children:"Why PathAble?"}),c.jsx("h2",{id:"roi-heading",className:"text-3xl md:text-4xl font-bold mb-4 font-montserrat",children:"The ROI of PathAble AI"}),c.jsx("p",{className:"text-xl text-muted-foreground font-poppins max-w-3xl mx-auto",children:"Purpose-built to solve the biggest operational challenges in disability employment services."})]}),c.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:em.map((t,e)=>c.jsx(Xu,{className:`min-w-0 border-2 border-transparent ${t.borderColor} transition-all duration-300 shadow-lg animate-fade-in`,style:{animationDelay:`${e*100}ms`},children:c.jsx(Zu,{className:"pt-8 pb-8 px-8",children:c.jsxs("div",{className:"flex items-start gap-5",children:[c.jsx("div",{className:`w-14 h-14 rounded-2xl ${t.color} flex items-center justify-center flex-shrink-0`,children:c.jsx(t.icon,{className:"w-7 h-7","aria-hidden":"true"})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h3",{className:"font-bold text-xl mb-3 font-poppins break-words",children:t.title}),c.jsx("p",{className:"text-muted-foreground font-poppins leading-relaxed",children:t.description})]})]})})},e))})]})})}),rm="/hero-warehouse-workers.jpg",Ol=["Find services","Support the staff","Built with the community"],sm=()=>{const[t,e]=S.useState(0);return S.useEffect(()=>{const r=setInterval(()=>{e(s=>(s+1)%Ol.length)},3e3);return()=>clearInterval(r)},[]),c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Qv,{title:"PathAble AI: practical AI tools for the disability community",description:"AI tools for vocational rehab agencies, disability providers, and schools, plus free directories of disability services in all 50 states.",ogUrl:"https://pathableai.com/"}),c.jsx(Vv,{}),c.jsxs("main",{id:"main-content",tabIndex:-1,children:[c.jsx("section",{className:"pt-20 relative","aria-labelledby":"hero-heading",children:c.jsxs("div",{className:"w-full min-h-[600px] md:min-h-[700px] relative",children:[c.jsx("img",{src:rm,alt:"Two warehouse workers with disabilities collaborating using a tablet on the job, representing inclusive employment",width:1920,height:1080,fetchpriority:"high",decoding:"async",className:"absolute inset-0 w-full h-full object-cover"}
109),c.jsx("div",{className:"absolute inset-0 bg-foreground/85 md:bg-transparent md:bg-gradient-to-r md:from-foreground/90 md:via-foreground/75 md:to-foreground/30"}),c.jsx("div",{className:"container mx-auto px-4 h-full flex items-center relative z-10 py-20",children:c.jsxs("div",{className:"max-w-2xl",children:[c.jsx("div",{className:"mb-4","aria-live":"polite","aria-atomic":"true",children:c.jsx("span",{className:"inline-block px-4 py-2 bg-lime text-lime-foreground rounded-full text-sm font-bold font-poppins animate-fade-in",children:Ol[t]},t)}),c.jsx("h1",{id:"hero-heading",className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-4 font-montserrat text-white",children:"Practical AI for the disability community"}),c.jsx("p",{className:"text-xl md:text-2xl text-white/90 mb-6 font-poppins font-semibold",children:"We help people find disability services, and we give the staff who deliver them their time back."}),c.jsx("p",{className:"text-lg text-white/75 mb-8 font-poppins max-w-xl",children:"Free navigation tools for families and individuals. Time-saving software for the agencies, schools, and providers who serve them."}),c.jsx("p",{className:"mb-3 text-white/85 font-poppins font-semibold",children:"Which one are you here for?"}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[c.jsx(Xt,{size:"lg",className:"text-lg px-8 py-6 rounded-full hover-scale w-full sm:w-auto bg-lime text-lime-foreground hover:bg-lime/90 shadow-lg",asChild:!0,children:c.jsxs(Te,{to:"/portals",onClick:()=>fr(pr.CTA_LOCAL_SUPPORT,{location:"home_hero"}),children:["Find services",c.jsx(Ms,{className:"w-5 h-5 ml-2","aria-hidden":"true"})]})}),c.jsx(Xt,{size:"lg",variant:"outline",className:"text-lg px-8 py-6 rounded-full hover-scale w-full sm:w-auto border-white text-white bg-transparent hover:bg-white hover:text-foreground",asChild:!0,children:c.jsx(Te,{to:"/pilot-program",onClick:()=>fr(pr.CTA_APPLY_PILOT,{location:"home_hero"}),children:"For organizations"})})]}),c.jsx("p",{className:"mt-4 text-white/70 text-sm font-poppins max-w-xl",children:"Not sure? Finding services is free and needs no account. Running an organization? See how the software helps your staff."})]})})]})}),c.jsx("section",{className:"py-14 px-4 bg-background border-b border-border","aria-labelledby":"whatwedo-heading",children:c.jsxs("div",{className:"container mx-auto max-w-3xl text-center",children:[c.jsx("h2",{id:"whatwedo-heading",className:"text-2xl md:text-3xl font-bold mb-3 font-montserrat text-foreground",children:"A disability-led studio. We do two things."}),c.jsx("p",{className:"text-lg text-muted-foreground font-poppins",children:"First, we help people find the disability services they need, in plain language and for free. Second, we build software that takes the paperwork off the staff who deliver those services, so they can spend more time with people. What we learn from helping families makes the tools for professionals better."})]})}),c.jsx("section",{className:"py-16 px-4 bg-background","aria-labelledby":"portal-heading",children:c.jsx("div",{className:"container mx-auto",children:c.jsx("div",{className:"max-w-5xl mx-auto rounded-3xl border border-border bg-card p-8 md:p-12 shadow-sm",children:c.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-center",children:[c.jsxs("div",{children:[c.jsxs("span",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-primary/10 text-primary text-sm font-semibold font-poppins mb-4",children:[c.jsx(Iu,{className:"w-4 h-4","aria-hidden":"true"}),"Free public resource"]}),c.jsx("h2",{id:"portal-heading",className:"text-3xl md:text-4xl font-bold mb-4 font-montserrat text-foreground",children:"PathAble Portal"}),c.jsx("p",{className:"text-lg text-muted-foreground mb-6 font-poppins",children:"A plain-language guide that helps families, individuals, and staff find disability services across their state and county, early intervention, transition, employment, Medicaid, and crisis support. Available in English and Spanish."}),c.jsx("p",{className:"text-lg text-muted-foreground font-poppins",children:"Now live in all 50 states and Washington, D.C., each with statewide agencies, waivers, and county-level resources."})]}),c.jsxs("div",{className:"rounded-2xl bg-gradient-to-br from-primary/10 via-accent/10 to-bright-blue/10 p-6 border border-border flex flex-col",children:[c.jsx("p",{className:"text-sm font-semibold text-foreground mb-2 font-poppins",children:"Now available nationwide"}),c.jsx("p",{className:"text-3xl font-bold font-montserrat text-foreground mb-1",children:"All 50 states + DC"}),c.jsx("p",{className:"text-sm text-muted-foreground font-poppins mb-6",children:"Every state has a full portal with statewide agencies, waivers, deadlines, and verified county-level resources."}),c.jsxs(Te,{to:"/portals",className:"mt-auto inline-flex items-center justify-center gap-2 rounded-xl bg-primary text-primary-foreground px-4 py-3 font-semibold font-poppins hover:bg-primary/90 transition-colors",children:["Find your state",c.jsx(Ms,{className:"w-4 h-4","aria-hidden":"true"})]})]})]})})})}),c.jsx("div",{className:"bg-accent/10",children:c.jsx(tm,{})}),c.jsx("section",{className:"py-16 px-4 bg-foreground","aria-labelledby":"
109credibility-heading",children:c.jsx("div",{className:"container mx-auto",children:c.jsxs("div",{className:"max-w-5xl mx-auto text-center",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3 mb-8",children:[c.jsxs("a",{href:"https://www.ces.tech/explore-ces/innovation-for-all-programming/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-lime/20 border border-lime/50 rounded-full text-lime hover:scale-105 transition-transform duration-300","aria-label":"CES 2026 Innovation for All Award Winner - Learn more (opens in new tab)",children:[c.jsx(Rf,{className:"w-5 h-5","aria-hidden":"true"}),c.jsx("span",{className:"font-semibold font-poppins text-sm",children:"CES 2026 Innovation for All Winner"})]}),c.jsxs("a",{href:"https://neurodiversityemploymentnetwork.org/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-accent/20 border border-accent/50 rounded-full text-[hsl(170_80%_50%)] hover:scale-105 transition-transform duration-300","aria-label":"Member of Neurodiversity Employment Network - Learn more (opens in new tab)",children:[c.jsx(ml,{className:"w-5 h-5","aria-hidden":"true"}),c.jsx("span",{className:"font-semibold font-poppins text-sm",children:"Neurodiversity Employment Network"})]}),c.jsxs("a",{href:"https://njbda.org/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-bright-blue/20 border border-bright-blue/50 rounded-full text-[hsl(213_85%_78%)] hover:scale-105 transition-transform duration-300","aria-label":"Member of New Jersey Big Data Alliance - Learn more (opens in new tab)",children:[c.jsx(ml,{className:"w-5 h-5","aria-hidden":"true"}),c.jsx("span",{className:"font-semibold font-poppins text-sm",children:"NJ Big Data Alliance"})]})]}),c.jsx("h2",{id:"credibility-heading",className:"text-2xl md:text-3xl font-bold mb-8 font-montserrat text-white",children:"Built For Organizations Like Yours"}),c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 items-center justify-items-center",children:[c.jsxs("div",{className:"flex flex-col items-center p-4",children:[c.jsx("div",{className:"w-16 h-16 rounded-full bg-accent/20 flex items-center justify-center mb-3",children:c.jsx(Nf,{className:"w-8 h-8 text-accent","aria-hidden":"true"})}),c.jsx("span",{className:"text-sm font-medium text-white/80 text-center",children:"VR Agencies"})]}),c.jsxs("div",{className:"flex flex-col items-center p-4",children:[c.jsx("div",{className:"w-16 h-16 rounded-full bg-bright-blue/20 flex items-center justify-center mb-3",children:c.jsx(Ff,{className:"w-8 h-8 text-bright-blue","aria-hidden":"true"})}),c.jsx("span",{className:"text-sm font-medium text-white/80 text-center",children:"School Transition Programs"})]}),c.jsxs("div",{className:"flex flex-col items-center p-4",children:[c.jsx("div",{className:"w-16 h-16 rounded-full bg-lime/20 flex items-center justify-center mb-3",children:c.jsx(Lf,{className:"w-8 h-8 text-lime","aria-hidden":"true"})}),c.jsx("span",{className:"text-sm font-medium text-white/80 text-center",children:"Non-Profit Providers"})]}),c.jsxs("div",{className:"flex flex-col items-center p-4",children:[c.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/30 flex items-center justify-center mb-3",children:c.jsx(Mf,{className:"w-8 h-8 text-primary-foreground","aria-hidden":"true"})}),c.jsx("span",{className:"text-sm font-medium text-white/80 text-center",children:"Workforce Development"})]})]}),c.jsx("p",{className:"mt-8 text-white/90 font-poppins",children:"Now accepting pilot partners for 2026"})]})})}),c.jsx("section",{className:"py-16 px-4 bg-background","aria-labelledby":"video-heading",children:c.jsx("div",{className:"container mx-auto",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[c.jsx("h2",{id:"video-heading",className:"text-3xl md:text-4xl font-bold mb-4 font-montserrat",children:"See PathAble in Action"}),c.jsx("p",{className:"text-lg text-muted-foreground mb-8 font-poppins",children:"Watch how our platform empowers staff and supports participants toward employment success."}),c.jsx("div",{className:"relative w-full aspect-video rounded-2xl overflow-hidden shadow-2xl border border-border",children:c.jsx("iframe",{src:"https://www.youtube.com/embed/RWH1lC_ahSk",title:"PathAble Explainer Video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,loading:"lazy",className:"absolute inset-0 w-full h-full"})})]})})}),c.jsx("section",{className:"py-20 px-4 bg-gradient-to-br from-primary via-accent to-bright-blue","aria-labelledby":"
109cta-heading",children:c.jsx("div",{className:"container mx-auto",children:c.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[c.jsx("h2",{id:"cta-heading",className:"text-4xl md:text-5xl font-bold mb-6 font-montserrat text-white",children:"Ready to Scale Your Impact?"}),c.jsx("p",{className:"text-xl text-white/85 mb-8 font-poppins",children:"Join the agencies and providers transforming how they support job seekers with disabilities."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[c.jsx(Xt,{size:"lg",className:"text-lg px-12 py-6 rounded-full hover-scale bg-lime text-lime-foreground hover:bg-lime/90 shadow-lg",asChild:!0,children:c.jsxs(Te,{to:"/pilot-program",onClick:()=>fr(pr.CTA_APPLY_PILOT,{location:"home_cta"}),children:["Apply for Pilot",c.jsx(Ms,{className:"w-5 h-5 ml-2","aria-hidden":"true"})]})}),c.jsx(Xt,{size:"lg",variant:"outline",className:"text-lg px-12 py-6 rounded-full hover-scale border-white text-white bg-transparent hover:bg-white hover:text-foreground",asChild:!0,children:c.jsx(Te,{to:"/contact",onClick:()=>fr(pr.CTA_SCHEDULE_CALL,{location:"home_cta"}),children:"Schedule a Call"})})]})]})})})]}),c.jsx(qv,{}),c.jsx(Gv,{})]})},im=S.lazy(()=>B(()=>import("./UnlinkedForm-3lvL2thz.js"),__vite__mapDeps([0,1,2]))),nm=S.lazy(()=>B(()=>import("./Admin-onnfhwx_.js"),__vite__mapDeps([3,1,4,5,6,2]))),am=S.lazy(()=>B(()=>import("./About-BA-x9D_Y.js"),__vite__mapDeps([7,1,8,2]))),om=S.lazy(()=>B(()=>import("./Contact-D6AwrrHE.js"),__vite__mapDeps([9,1,10,2]))),lm=S.lazy(()=>B(()=>import("./Privacy-CIGWTOPx.js"),__vite__mapDeps([11,1,12,2]))),cm=S.lazy(()=>B(()=>import("./Accessibility-DktRGJkA.js"),__vite__mapDeps([13,1,14,2]))),um=S.lazy(()=>B(()=>import("./PilotProgram-DmPcA6F-.js"),__vite__mapDeps([15,1,16,17,2,18,19,20,21]))),dm=S.lazy(()=>B(()=>import("./PilotApply-dMk4PzQH.js"),__vite__mapDeps([22,1,2])));S.lazy(()=>B(()=>import("./Podcast-oFfWKqWx.js"),__vite__mapDeps([23,1,17,2,24,25,18,26])));const hm=S.lazy(()=>B(()=>import("./Media-5tMH09L5.js"),__vite__mapDeps([27,1,17,2,24,28,29,30,31,32,33,34,35,36,37,38,39,40,26,41,25]))),pm=S.lazy(()=>B(()=>import("./DeepfakeArticle-DCEkRXKK.js"),__vite__mapDeps([42,1,28,43,2]))),fm=S.lazy(()=>B(()=>import("./AutomationArticle-DJxr17q8.js"),__vite__mapDeps([44,1,29,43,2]))),gm=S.lazy(()=>B(()=>import("./ChangeManagementArticle-RcUVJKdC.js"),__vite__mapDeps([45,1,30,43,2]))),vm=S.lazy(()=>B(()=>import("./AIBoostDisabilityEmploymentArticle-Dx8XQWrH.js"),__vite__mapDeps([46,1,31,43,2]))),mm=S.lazy(()=>B(()=>import("./DSPTechAdoptionArticle-C_qSa7ux.js"),__vite__mapDeps([47,1,32,43,2]))),_m=S.lazy(()=>B(()=>import("./DeadlineThatMovedArticle-DwSCXhsu.js"),__vite__mapDeps([48,1,38,43,2]))),ym=S.lazy(()=>B(()=>import("./AfternoonTestArticle-CzkASaru.js"),__vite__mapDeps([49,1,43,2]))),bm=S.lazy(()=>B(()=>import("./HowManyStepsArticle-D8K9SiY8.js"),__vite__mapDeps([50,1,43,2]))),xm=S.lazy(()=>B(()=>import("./TransitionCliffArticle-JAuxfvPE.js"),__vite__mapDeps([51,1,43,2]))),wm=S.lazy(()=>B(()=>import("./BrokenLinksArticle-CkJ-dUpb.js"),__vite__mapDeps([52,1,35,43,2]))),Em=S.lazy(()=>B(()=>import("./DocumentationTaxArticle-CIPWtcbO.js"),__vite__mapDeps([53,1,36,43,2]))),Sm=S.lazy(()=>B(()=>import("./GeneralistCuriosityArticle-CJYNJ3WC.js"),__vite__mapDeps([54,1,37,43,2]))),km=S.lazy(()=>B(()=>import("./NavigatingNeurodiversityArticle-DjTgtUWc.js"),__vite__mapDeps([55,1,33,43,2]))),Tm=S.lazy(()=>B(()=>import("./WhoBenefitsAI-Bv2F6O7r.js"),__vite__mapDeps([56,1,34,43,2]))),Pm=S.lazy(()=>B(()=>import("./YearAgoLeftCareer-BqIESQ5A.js"),__vite__mapDeps([57,1,43,2]))),Am=S.lazy(()=>B(()=>import("./NewsletterMarch2026-COGSwt2J.js"),__vite__mapDeps([58,1,59,2,40]))),jm=S.lazy(()=>B(()=>import("./NewsletterApril2026-JlVVv4Mo.js"),__vite__mapDeps([60,1,59,2,39]))),Cm=S.lazy(()=>B(()=>import("./NotFound-CrC_5QUF.js"),__vite__mapDeps([61,1,2]))),Im=S.lazy(()=>B(()=>import("./FamilyTransitionPlanner-CHzl_Zk4.js"),__vite__mapDeps([62,1,63,64,65,66,67,68,2]))),Rl=S.lazy(()=>B(()=>import("./FamilyTransitionPlannerPA-CEQezxrB.js"),__vite__mapDeps([69,1,70,64,65,66,67,68,2]))),Om=S.lazy(()=>B(()=>import("./PilotProposal-CrFNOLnd.js"),__vite__mapDeps([71,1,72,2]))),Rm=S.lazy(()=>B(()=>import("./EarlyChildhoodGuide-DJF_UhKB.js"),__vite__mapDeps([73,1,63,65,68,43,19,74,2]))),Ml=S.lazy(()=>B(()=>import("./EarlyChildhoodGuidePA-C6JCqH9Z.js"),__vite__mapDeps([75,1,65,68,43,19,74,2]))),Mm=S.lazy(()=>B(()=>import("./EarlyChildhoodGuideNY-9fFWF9xJ.js"),__vite__mapDeps([76,1,65,68,43,19,74,2]))),Nm=S.lazy(()=>B(()=>import("./FamilyTransitionPlannerNY-8msMkVbP.js"),__vite__mapDeps([77,1,78,64,65,66,67,68,2]))),$m=S.lazy(()=>B(()=>import("./Services-B27DXcYi.js"),__vite__mapDeps([79,1,80,81,25,8,26,19,82,14,20,2]))),Fm=S.lazy(()=>B(()=>import("./Training-rjdP4oBI.js"),__vite__mapDeps([83,1,19,84,85,12,80,2]))),Lm=S.lazy(()=>B(()=>import("./PreETS-Ub20Hx96.js"),__vite__mapDeps([86,1,87,19,84,81,21,65,8,12,2]))),Dm=S.lazy(()=>B(()=>import("./Platform-DC8-zfGM.js"),__vite__mapDeps([88,1,87,16,17,2,26,8,12,81,19,89,14,85]))),Um=S.lazy(()=>B(()=>import("./Portals-nRTWJovP.js"),__vite__mapDeps([90,1,6,91,92,67,93,80,94,95,66,2]))),H=S.lazy(()=>B(()=>import("./CountyResource-BcetAHv2.js").then(t=>t.C),__vite__mapDeps([96,1,17,2,4,5,19,97,98,92,6,43,26,93,10,74,66,99,68])));S.lazy(()=>B(()=>
109import("./StatePortal-BD03D-E_.js"),__vite__mapDeps([100,1,61,2,6,92,91,93,80,66])));const zm=S.lazy(()=>B(()=>import("./PortalRouter-Czxhj2ex.js"),__vite__mapDeps([101,1,100,61,2,6,92,91,93,80,66,102,103,104,8,4,5,97,19,41,95,68,64,84,65,94,74,72,26,105,89,98,106,82,107,78,70]))),Hm=S.lazy(()=>B(()=>import("./HandoffPage-D3hT0Md6.js"),__vite__mapDeps([108,1,105,89,98,106,82,8,107,92,65,4,5,78,70,104,43,66,2]))),Vm=S.lazy(()=>B(()=>import("./ToolPage-7OPbDxdo.js"),__vite__mapDeps([109,1,105,89,98,106,82,8,107,92,65,4,5,78,70,26,74,19,43,99,66,2]))),Bm=S.lazy(()=>B(()=>import("./MyListPage-DIPN3jhI.js"),__vite__mapDeps([110,1,105,89,98,106,82,8,107,92,65,4,5,78,70,103,94,66,19,2]))),qm=S.lazy(()=>B(()=>import("./PreviewRouter-nRnj2enX.js"),__vite__mapDeps([111,1,102,103,92,104,8,80,4,5,97,19,41,95,68,64,84,65,94,74,72,66,93,26,105,89,98,106,82,107,78,70,2]))),Gm=S.lazy(()=>B(()=>import("./LegacyRedirect-B6FkO0Wo.js"),__vite__mapDeps([112,1])).then(t=>({default:t.TopicRedirect}))),ui=S.lazy(()=>B(()=>import("./LegacyRedirect-B6FkO0Wo.js"),__vite__mapDeps([112,1])).then(t=>({default:t.PortalHomeRedirect}))),Wm=new jv,Km=()=>(S.useEffect(()=>{const t="hubspot-forms-script";if(document.getElementById(t))return;const e=document.createElement("script");e.id=t,e.src="https://js.hsforms.net/forms/embed/v2.js",e.async=!0,document.body.appendChild(e)},[]),S.useEffect(()=>{const t=e=>{var s;const r=e.data;if((r==null?void 0:r.type)==="hsFormCallback"&&(r==null?void 0:r.eventName)==="onFormSubmit"){let i;const n=r==null?void 0:r.data;if(Array.isArray(n)){const a=n.find(o=>{var l;return((l=o==null?void 0:o.name)==null?void 0:l.toLowerCase())==="email"});i=a==null?void 0:a.value}else(s=n==null?void 0:n.submissionValues)!=null&&s.email&&(i=n.submissionValues.email);i&&Rv(i),fr(pr.FORM_SUBMITTED)}};return window.addEventListener("message",t),()=>window.removeEventListener("message",t)},[]),c.jsx(Na,{children:c.jsx(Iv,{client:Wm,children:c.jsxs(nv,{children:[c.jsx(Tg,{}),c.jsx(iv,{}),c.jsxs(hd,{children:[c.jsx(Mv,{}),c.jsx(Lv,{}),c.jsx(Uv,{}),c.jsx(Ov,{}),c.jsx(S.Suspense,{fallback:c.jsx("div",{className:"min-h-screen","aria-busy":"true","aria-label":"Loading"}),children:c.jsxs(pd,{children:[c.jsx(b,{path:"/",element:c.jsx(sm,{})}),c.jsx(b,{path:"/admin",element:c.jsx(nm,{})}),c.jsx(b,{path:"/about",element:c.jsx(am,{})}),c.jsx(b,{path:"/contact",element:c.jsx(om,{})}),c.jsx(b,{path:"/privacy",element:c.jsx(lm,{})}),c.jsx(b,{path:"/accessibility",element:c.jsx(cm,{})}),c.jsx(b,{path:"/pilot-program",element:c.jsx(um,{})}),c.jsx(b,{path:"/pilot-apply",element:c.jsx(dm,{})}),c.jsx(b,{path:"/podcast",element:c.jsx(we,{to:"/media?tag=Podcast",replace:!0})}),c.jsx(b,{path:"/media",element:c.jsx(hm,{})}),c.jsx(b,{path:"/articles/death-of-spot-the-deepfake",element:c.jsx(pm,{})}),c.jsx(b,{path:"/articles/automation-consideration",element:c.jsx(fm,{})}),c.jsx(b,{path:"/articles/change-management-age-of-ai",element:c.jsx(gm,{})}),c.jsx(b,{path:"/articles/ai-boost-disability-employment",element:c.jsx(vm,{})}),c.jsx(b,{path:"/articles/dsp-tech-adoption",element:c.jsx(mm,{})}),c.jsx(b,{path:"/articles/deadline-that-moved",element:c.jsx(_m,{})}),c.jsx(b,{path:"/articles/afternoon-test",element:c.jsx(ym,{})}),c.jsx(b,{path:"/articles/how-many-steps",element:c.jsx(bm,{})}),c.jsx(b,{path:"/articles/transition-cliff",element:c.jsx(xm,{})}),c.jsx(b,{path:"/articles/broken-links",element:c.jsx(wm,{})}),c.jsx(b,{path:"/articles/documentation-tax",element:c.jsx(Em,{})}),c.jsx(b,{path:"/articles/ai-already-the-generalist",element:c.jsx(Sm,{})}),c.jsx(b,{path:"/articles/who-gets-to-benefit-from-ai",element:c.jsx(Tm,{})}),c.jsx(b,{path:"/articles/navigating-neurodiversity-college",element:c.jsx(km,{})}),c.jsx(b,{path:"/articles/year-ago-left-career-to-fix-paperwork",element:c.jsx(Pm,{})}),c.jsx(b,{path:"/newsletter/march-2026",element:c.jsx(Am,{})}),c.jsx(b,{path:"/newsletter/april-2026",element:c.jsx(jm,{})}),c.jsx(b,{path:"/pilot",element:c.jsx(we,{to:"/pilot-program",replace:!0})}),c.jsx(b,{path:"/platform",element:c.jsx(Dm,{})}),c.jsx(b,{path:"/about-us",element:c.jsx(we,{to:"/about",replace:!0})}),c.jsx(b,{path:"/services",element:c.jsx($m,{})}),c.jsx(b,{path:"/training",element:c.jsx(Fm,{})}),c.jsx(b,{path:"/pre-ets",element:c.jsx(Lm,{})}),c.jsx(b,{path:"/portals",element:c.jsx(Um,{})}),c.jsx(b,{path:"/portal",element:c.jsx(we,{to:"/portals",replace:!0})}),c.jsx(b,{path:"/contacts",element:c.jsx(we,{to:"/contact",replace:!0})}),c.jsx(b,{path:"/pilotstart",element:c.jsx(we,{to:"/pilot-program",replace:!0})}),c.jsx(b,{path:"/pilotapply",element:c.jsx(we,{to:"/pilot-apply",replace:!0})}),c.jsx(b,{path:"/family-transition-planner",element:c.jsx(Im,{})}),c.jsx(b,{path:"/pa/family-transition-planner",element:c.jsx(Rl,{})}),c.jsx(b,{path:"/pilot-proposal",element:c.jsx(Om,{})}),c.jsx(b,{path:"/next-steps-guide",element:c.jsx(Rm,{})}),c.jsx(b,{path:"/pa/next-steps-guide",element:c.jsx(Ml,{})}),c.jsx(b,{path:"/learning-portal",element:c.jsx(we,{to:"/pathablenj",replace:!0})}),c.jsx(b,{path:"/learning-portal/*",element:c.jsx(we,{to:"/pathablenj",replace:!0})}),c.jsx(b,{path:"/nj",element:c.jsx(we,{to:"/pathablenj",replace:!0})}),c.jsx(b,{path:"/nj/*",element:c.jsx(we,{to:"/pathablenj",replace:!0})}),c.jsx(b,{path:"/ny",element:c.jsx(we,{to:"/pathableny",replace:!0})}),c.jsx(b,{path:"/ny/*",element:c.jsx(we,{to:"/pathableny",replace:!0})}),c.jsx(b,{path:"/pa",element:c.jsx(we,{to:"/pathablepa",replace:!0})}),c.jsx(b,{path:"/pa/*",element:c.jsx(we,{to:"/pathablepa",replace:!0})}),c.jsx(b,{path:"/md",element:c.jsx(we,{to:"/pathablemd",replace:!0})}),c.jsx(b,{path:"/md/*",element:c.jsx(we,{to:"/pathablemd",replace:!0})}),c.jsx(b,{path:"/NY",element:c.jsx(we,{to:"/pathableny",replace:!0})}),c.jsx(b,{path:"/NJ",element:c.jsx(we,{to:"/pathablenj",replace:!0})}),c.jsx(b,{path:"/PA",element:c.jsx(we,{to:"/pathablepa",replace:!0})}),c.jsx(b,{path:"/MD",element:c.jsx(we,{to:"/pathablemd",replace:!0})}),c.jsx(b,{path:"/pathableny/family-transition-planner",element:c.jsx(Nm,{})}),c.jsx(b,{path:"/pathableny/next-steps-guide",element:c.jsx(Mm,{})}),c.jsx(b,{path:"/pathablepa/family-transition-planner",element:c.jsx(Rl,{})}),c.jsx(b,{path:"/pathablepa/next-steps-guide",element:c.jsx(Ml,{})}),c.jsx(b,{path:"/form",element:c.jsx(im,{})}),c.jsx(b,{path:"/pathablenj/county/:slug",element:c.jsx(H,{stateSlug:"pathablenj"})}),c.jsx(b,{path:"/pathablepa/county/:slug",element:c.jsx(H,{stateSlug:"pathablepa"})}),c.jsx(b,{path:"/pathableny/county/:slug",element:c.jsx(H,{stateSlug:"pathableny"})}),c.jsx(b,{path:"/pathablemd/county/:slug",element:c.jsx(H,{stateSlug:"pathablemd"})}),c.jsx(b,{path:"/pathablect/county/:slug",element:c.jsx(H,{stateSlug:"pathablect"})}),c.jsx(b,{path:"/pathableca/county/:slug",element:c.jsx(H,{stateSlug:"pathableca"})}),c.jsx(b,{path:"/pathabletx/county/:slug",element:c.jsx(H,{stateSlug:"pathabletx"})}),c.jsx(b,{path:"/pathablefl/county/:slug",element:c.jsx(H,{stateSlug:"pathablefl"})}),c.jsx(b,{path:"/pathableil/county/:slug",element:c.jsx(H,{stateSlug:"pathableil"})}),c.jsx(b,{path:"/pathableoh/county/:slug",element:c.jsx(H,{stateSlug:"pathableoh"})}),c.jsx(b,{path:"/pathablega/county/:slug",element:c.jsx(H,{stateSlug:"pathablega"})}),c.jsx(b,{path:"/pathablenc/county/:slug",element:c.jsx(H,{stateSlug:"pathablenc"})}),c.jsx(b,{path:"/pathablemi/county/:slug",element:c.jsx(H,{stateSlug:"pathablemi"})}),c.jsx(b,{path:"/pathableva/county/:slug",element:c.jsx(H,{stateSlug:"pathableva"})}),c.jsx(b,{path:"/pathablewa/county/:slug",element:c.jsx(H,{stateSlug:"pathablewa"})}),c.jsx(b,{path:"/pathableaz/county/:slug",element:c.jsx(H,{stateSlug:"pathableaz"})}),c.jsx(b,{path:"/pathabletn/county/:slug",element:c.jsx(H,{stateSlug:"pathabletn"})}),c.jsx(b,{path:"/pathablema/county/:slug",element:c.jsx(H,{stateSlug:"pathablema"})}),c.jsx(b,{path:"/pathablein/county/:slug",element:c.jsx(H,{stateSlug:"pathablein"})}),c.jsx(b,{path:"/pathablemo/county/:slug",element:c.jsx(H,{stateSlug:"pathablemo"})}),c.jsx(b,{path:"/pathablewi/county/:slug",element:c.jsx(H,{stateSlug:"pathablewi"})}),c.jsx(b,{path:"/pathableco/county/:slug",element:c.jsx(H,{stateSlug:"pathableco"})}),c.jsx(b,{path:"/pathablemn/county/:slug",element:c.jsx(H,{stateSlug:"pathablemn"})}),c.jsx(b,{path:"/pathablesc/county/:slug",element:c.jsx(H,{stateSlug:"pathablesc"})}),c.jsx(b,{path:"/pathableal/county/:slug",element:c.jsx(H,{stateSlug:"pathableal"})}),c.jsx(b,{path:"/pathablela/county/:slug",element:c.jsx(H,{stateSlug:"pathablela"})}),c.jsx(b,{path:"/pathableky/county/:slug",element:c.jsx(H,{stateSlug:"pathableky"})}),c.jsx(b,{path:"/pathableor/county/:slug",element:c.jsx(H,{stateSlug:"pathableor"})}),c.jsx(b,{path:"/pathableok/county/:slug",element:c.jsx(H,{stateSlug:"pathableok"})}),c.jsx(b,{path:"/pathableut/county/:slug",element:c.jsx(H,{stateSlug:"pathableut"})}),c.jsx(b,{path:"/pathableia/county/:slug",element:c.jsx(H,{stateSlug:"pathableia"})}),c.jsx(b,{path:"/pathablenv/county/:slug",element:c.jsx(H,{stateSlug:"pathablenv"})}),c.jsx(b,{path:"/pathablear/county/:slug",element:c.jsx(H,{stateSlug:"pathablear"})}),c.jsx(b,{path:"/pathablems/county/:slug",element:c.jsx(H,{stateSlug:"pathablems"})}),c.jsx(b,{path:"/pathableks/county/:slug",element:c.jsx(H,{stateSlug:"pathableks"})}),c.jsx(b,{path:"/pathablenm/county/:slug",element:c.jsx(H,{stateSlug:"pathablenm"})}),c.jsx(b,{path:"/pathablene/county/:slug",element:c.jsx(H,{stateSlug:"pathablene"})}),c.jsx(b,{path:"/pathableid/county/:slug",element:c.jsx(H,{stateSlug:"pathableid"})}),c.jsx(b,{path:"/pathablewv/county/:slug",element:c.jsx(H,{stateSlug:"pathablewv"})}),c.jsx(b,{path:"/pathablehi/county/:slug",element:c.jsx(H,{stateSlug:"pathablehi"})}),c.jsx(b,{path:"/pathablenh/county/:slug",element:c.jsx(H,{stateSlug:"pathablenh"})}),c.jsx(b,{path:"/pathableme/county/:slug",element:c.jsx(H,{stateSlug:"pathableme"})}),c.jsx(b,{path:"/pathablemt/county/:slug",element:c.jsx(H,{stateSlug:"pathablemt"})}),c.jsx(b,{path:"/pathableri/county/:slug",element:c.jsx(H,{stateSlug:"pathableri"})}),c.jsx(b,{path:"/pathablede/county/:slug",element:c.jsx(H,{stateSlug:"pathablede"})}),c.jsx(b,{path:"/pathablesd/county/:slug",element:c.jsx(H,{stateSlug:"pathablesd"})}),c.jsx(b,{path:"/pathablend/county/:slug",element:c.jsx(H,{stateSlug:"pathablend"})}),c.jsx(b,{path:"/pathableak/county/:slug",element:c.jsx(H,{stateSlug:"pathableak"})}),c.jsx(b,{path:"/pathablevt/county/:slug",element:c.jsx(H,{stateSlug:"pathablevt"})}),c.jsx(b,{path:"/pathablewy/county/:slug",element:c.jsx(H,{stateSlug:"pathablewy"})}),c.jsx(b,{path:"/pathabledc/county/:slug",element:c.jsx(H,{stateSlug:"pathabledc"})}),c.jsx(b,{path:"/salem-county",element:c.jsx(we,{to:"/pathablenj/county/salem-county",replace:!0})}),c.jsx(b,{path:"/preview/:portal",element:c.jsx(qm,{})}),c.jsx(b,{path:"/:portal/handoffs/:slug",element:c.jsx(Hm,{})}),c.jsx(b,{path:"/:portal/tools/:slug",element:c.jsx(Vm,{})}),c.jsx(b,{path:"/:portal/my-list",element:c.jsx(Bm,{})}),c.jsx(b,{path:"/:portal/topic/:slug",element:c.jsx(Gm,{})}),c.jsx(b,{path:"/:portal/topics",element:c.jsx(ui,{})}),c.jsx(b,{path:"/:portal/walkthrough",element:c.jsx(ui,{})}),c.jsx(b,{path:"/:portal/intake",element:c.jsx(ui,{})}),c.jsx(b,{path:"/:portal/summary",element:c.jsx(ui,{})}),c.jsx(b,{path:"/:portal",element:c.jsx(zm,{})}),c.jsx(b,{path:"*",element:c.jsx(Cm,{})})]})})]})]})})}));fd(document.getElementById("root")).render(c.jsx(Na,{children:c.jsx(bf,{children:c.jsx(Km,{})})}));export{Ms as A,Gv as B,Xu as C,pr as E,qv as F,Ff as G,Lf as H,Df as M,Vv as N,zf as P,tm as R,Qv as S,Ou as X,B as _,Yv as a,Jv as b,Zu as c,Xt as d,Re as e,Iu as f,Nf as g,$f as h,Ge as i,e_ as j,$v as k,Xm as l,Nv as m,Mf as n,ml as o,Hv as p,ju as q,Hf as r,fr as t};
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.