PageSourceSearch

https://gg.givingcompass.org/_nuxt/BJXsCiCY.js

js givingcompass.org collected 2026-09-24 09:17:09 UTC 326,654 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CPLTPgFg.js","./in4c0Ziq.js","./nX7w3--X.js","./CzuCJjyz.js","./CyrvrKgH.js","./12PCAEyl.js","./DpWTXjFB.js","./ByPbsARR.js","./CDUU9Wma.js","./Bs0o2c6W.js","./BuNvvfjF.js","./B7Xz_mtH.js","./CrK_MUeO.js","./D-JfGqU-.js","./DsX7z1m5.js","./ani9z0JJ.js","./7ukZPocg.js","./BWNBbf6k.js","./DeYW9Fiz.js","./egkXgMqP.js","./CzdGDBjF.js","./gjBqqy30.js","./m8SgQgoF.js","./CVi8ooJQ.js","./Boy9wtnx.js","./C2U5VtnP.js","./CNAuE06t.js","./C-u_YpPl.js","./CtG27aky.js","./DZ6T0PiR.js","./BCcckLnV.js","./369w539r.js","./DG_9ismW.js","./BT7XcHJ2.js","./CAgLKPVn.js","./BcVEr5iZ.js","./BWrehKB2.js","./Tz3IgIqQ.js","./Bo4i1EJY.js","./inpFMjNm.js","./F1Bs5HSm.js","./_6WLoNBH.js","./BzdmcfQK.js","./Bpq7MrYI.js","./CFQTgrnx.js","./DUo8jQh5.js","./BKc16aRh.js","./CpfFiYUB.js","./hO_nKiE5.js","./DodaJSdZ.js","./B9goy8s8.js","./YLlTfYRz.js","./IuZvmP1D.js","./Ch9sftxZ.js","./D-JenzQK.js","./c2OJgEPi.js","./DvvXTHwb.js","./BZRbIOp9.js","./BVL8vidX.js","./D5gjRk3K.js","./D9lR2kcy.js","./depwn4iM.js","./ClUl-4LI.js","./BjwKG7kC.js","./D_KZxxer.js","./CZ21xYpZ.js","./qKU77sjr.js","./z4a_ZMkh.js","./DS5vur34.js","./D7YexoFe.js","./CnLvr--j.js","./BnwUJFqU.js","./CtdwCalC.js","./CrSOwifn.js","./VF_Xyffv.js","./DDZsT4wO.js","./BqbX445C.js","./BdsANIqb.js","./D84nPH-d.js","./DIHs2ASU.js","./CkQaCwKr.js","./ClSmvtp4.js","./BhIaC8D_.js","./BGzChNSS.js","./BT4u2FjN.js","./92dDzKBG.js","./BqzRC4-c.js","./BiYztEaP.js","./Dd0QI89j.js","./B03ZtRYe.js","./CwQmMLmH.js","./Bh6MqOAZ.js","./D-aD7qyv.js","./CLDUNOr2.js","./CL4PGyg5.js","./Bbn7_w1Q.js","./DVKGpmig.js","./DgaGxe_z.js","./Bw0jBuah.js","./m_r7fXdb.js","./IaxlISSu.js","./Dk5iIYKP.js","./r1334w9J.js","./DvSKfaeR.js","./CJCHSmi8.js","./Bxqj2N8A.js","./BRMpW9xO.js","./C6rQ-mbb.js","./Rj0wKSd9.js","./C4OOqbEi.js","./CoYRpWwb.js","./CZb9m0SH.js","./nqyftWTI.js","./BOJ9psLE.js","./7wm47-Ns.js","./frrIrHSE.js","./DvKD5O0s.js","./Bqe6jgkV.js","./iq7CZtL3.js","./CJTSTlNu.js","./BqU3GkkW.js","./BI0eUaZj.js","./BNTjDprf.js","./DAH7cY82.js","./2yPkSbz2.js","./YHQz9MCf.js","./C2_s8mXy.js","./fMOAOA9S.js","./-9R3N--a.js","./D5QmNA4_.js","./BPyLY3Vv.js","./plmRhbJU.js","./BdhDLeFK.js","./D6Vbezyo.js","./DeuOA3Un.js","./C8v8jA2Z.js","./9iAuHKQB.js","./-nrQocML.js","./DzC0yBZu.js","./C1jrr7yo.js","./DeLbb5iH.js","./DyZmujWO.js","./Bf3RWv28.js","./B28CJ9ir.js","./PAhKTk3v.js","./BY4aTLza.js","./BLoxDl8A.js","./DQfBBX6S.js","./C01caS9Q.js","./D4S_qZ_g.js","./B6TqHyTQ.js","./23oxQxIq.js","./DoAwX3l-.js","./CYxvV5q5.js","./C0SUlzFX.js","./OlgJS9DQ.js","./D8jj5w39.js","./BCPRGXoe.js","./xddLVQS3.js","./Ct2Z7zH4.js","./DRJljPtT.js","./wWGVqj5q.js","./CihAB7PT.js","./C79glHtl.js","./CXNzRafk.js","./CuraZjzp.js","./CzdiBBiZ.js","./D9CzcwPI.js","./tcdTDkCz.js","./DYyjcQXc.js","./D6iQwa9t.js","./ByOd5wDq.js","./v-Bo4B9F.js","./CDDs9yXi.js","./BbdqXf5b.js","./DjkEkYxJ.js","./C3cEnwdj.js","./3GDLC346.js","./DO2e5s_r.js","./COh53049.js","./b76n-Xio.js","./7RFqRXo2.js","./B_slr5a5.js","./D-TvH3NP.js","./1xULldzl.js","./BXgKeYt4.js","./Dzkf-ANV.js","./DLukYuGf.js","./DBDJpO4v.js","./DMPpXy1V.js","./BzwGpRya.js","./Bxpa4PBZ.js","./DTqlE5EW.js","./D-D7mO2f.js","./BIADEUDf.js","./DvdV2CEL.js","./B8XLYBZ4.js","./3_OTW3jb.js","./iAlJtDke.js","./CF2d_dAq.js","./CXcXJ_IJ.js","./DpAqInxQ.js","./C-YUG1q9.js","./CWiTCRG7.js","./BwhKM3Qh.js","./CLSqM_gt.js","./BXqe4nHb.js","./C0OuxdPe.js","./d0SadUA8.js","./yqD0Vw5z.js","./SEPvAPdS.js"])))=>i.map(i=>d[i]);
2import{s as e,d as t,e as r,g as n,j as o,k as a,h as s,b as i,l,i as c,r as u,p as d,q as p,u as h,v as f,x as m,w as g,o as v,y,z as _,A as b,B as w,C as E,D as S,c as k,E as P,F as R,n as A,K as T,T as I,G as C,a as O,H as x,t as L,m as N,I as U,J as $,L as D,M as j,N as F,O as M,P as B,Q as z,R as q,S as H,U as V,V as W,W as G,X as K,Y as Q,Z as Y,_ as J,$ as X,a0 as Z,a1 as ee,a2 as te,a3 as re,a4 as ne,a5 as oe,a6 as ae,a7 as se,a8 as ie,f as le,a9 as ce,aa as ue,ab as de,ac as pe,ad as he,ae as fe,af as me,ag as ge,ah as ve,ai as ye,aj as _e,ak as be,al as we,am as Ee,an as Se,ao as ke,ap as Pe,aq as Re,ar as Ae,as as Te,at as Ie,au as Ce,av as Oe,aw as xe,ax as Le,ay as Ne,az as Ue,aA as $e,aB as De,aC as je,aD as Fe,aE as Me,aF as Be,aG as ze,aH as qe,aI as He,aJ as Ve,aK as We}from"./nX7w3--X.js";import{c as Ge,d as Ke,a as Qe,s as Ye}from"./CzuCJjyz.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const r of e)if("childList"===r.type)for(const e of r.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const Je=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Xe=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Ze=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function et(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t))return t;!function(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}(e)}function tt(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Ze.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Je.test(e)||Xe.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,et)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const rt=/#/g,nt=/&/g,ot=/\//g,at=/=/g,st=/\+/g,it=/%5e/gi,lt=/%60/gi,ct=/%7c/gi,ut=/%20/gi;function dt(e){return(t="string"==typeof e?e:JSON.stringify(e),encodeURI(""+t).replace(ct,"|")).replace(st,"%2B").replace(ut,"+").replace(rt,"%23").replace(nt,"%26").replace(lt,"`").replace(it,"^").replace(ot,"%2F");var t}function pt(e){return dt(e).replace(at,"%3D")}function ht(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function ft(e=""){const t=Object.create(null);"?"===e[0]&&(e=e.slice(1));for(const r of e.split("&")){const e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;const n=ht(e[1].replace(st," "));if("__proto__"===n||"constructor"===n)continue;const o=ht((e[2]||"").replace(st," "));void 0===t[n]?t[n]=o:Array.isArray(t[n])?t[n].push(o):t[n]=[t[n],o]}return t}const mt=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,gt=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,vt=/^([/\\]\s*){2,}[^/\\]/,yt=/^[\s\0]*(blob|data|javascript|vbscript):$/i,_t=/\/$|\/\?|\/#/,bt=/^\.?\//;function wt(e,t={}){return"boolean"==typeof t&&(t={acceptRelative:t}),t.strict?mt.test(e):gt.test(e)||!!t.acceptRelative&&vt.test(e)}function Et(e="",t){return t?_t.test(e):e.endsWith("/")}function St(e="",t){if(!t)return(Et(e)?e.slice(0,-1):e)||"/";if(!Et(e,!0))return e||"/";let r=e,n="";const o=e.indexOf("#");-1!==o&&(r=e.slice(0,o),n=e.slice(o));const[a,...s]=r.split("?");return((a.endsWith("/")?a.slice(0,-1):a)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function kt(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Et(e,!0))return e||"/";let r=e,n="";const o=e.indexOf("#");if(-1!==o&&(r=e.slice(0,o),n=e.slice(o),!r))return n;const[a,...s]=r.split("?");return a+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function Pt(e,t){if(At(t))return e;const r=St(t);if(!e.startsWith(r))return e;const n=e.slice(r.length);return"/"===n[0]?n:"/"+n}function Rt(e,t){const r=Ot(e),n={...ft(r.search),...t};return r.search=function(e){return Object.keys(e).filter((t=>void 0!==e[t])).map((t=>{return r=t,"number"!=typeof(n=e[t])&&"boolean"!=typeof n||(n=String(n)),n?Array.isArray(n)?n.map((e=>`${pt(r)}=${dt(e)}`)).join("&"):`${pt(r)}=${dt(n)}`:pt(r);var r,n}
2)).filter(Boolean).join("&")}(n),function(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",o=e.auth?e.auth+"@":"",a=e.host||"";return(e.protocol||e[Ct]?(e.protocol||"")+"//":"")+o+a+t+r+n}(r)}function At(e){return!e||"/"===e}function Tt(e,...t){let r=e||"";for(const n of t.filter((e=>function(e){return e&&"/"!==e}(e))))if(r){const e=n.replace(bt,"");r=kt(r)+e}else r=n;return r}function It(...e){const t=/\/(?!\/)/,r=e.filter(Boolean),n=[];let o=0;for(const s of r)if(s&&"/"!==s)for(const[e,r]of s.split(t).entries())if(r&&"."!==r)if(".."!==r)1===e&&n[n.length-1]?.endsWith(":/")?n[n.length-1]+="/"+r:(n.push(r),o++);else{if(1===n.length&&wt(n[0]))continue;n.pop(),o--}let a=n.join("/");return o>=0?r[0]?.startsWith("/")&&!a.startsWith("/")?a="/"+a:r[0]?.startsWith("./")&&!a.startsWith("./")&&(a="./"+a):a="../".repeat(-1*o)+a,r[r.length-1]?.endsWith("/")&&!a.endsWith("/")&&(a+="/"),a}const Ct=Symbol.for("ufo:protocolRelative");function Ot(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,e,t=""]=r;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!wt(e,{acceptRelative:!0}))return xt(e);const[,n="",o,a=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",i=""]=a.match(/([^#/?]*)(.*)?/)||[];"file:"===n&&(i=i.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=xt(i);return{protocol:n.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:s,pathname:l,search:c,hash:u,[Ct]:!n}}function xt(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}class Lt extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}const Nt=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Ut(e="GET"){return Nt.has(e.toUpperCase())}const $t=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Dt=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function jt(e,t,r,n){const o=function(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[o,a]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(o,a);return n}(t?.headers??e?.headers,r?.headers,n);let a;return(r?.query||r?.params||t?.params||t?.query)&&(a={...r?.params,...r?.query,...t?.params,...t?.query}),{...r,...t,query:a,params:a,headers:o}}async function Ft(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const Mt=new Set([408,409,425,429,500,502,503,504]),Bt=new Set([101,204,205,304]),zt=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}(),qt=function e(t={}){const{fetch:r=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:o=globalThis.AbortController}=t;async function a(e){const t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:Ut(e.options.method)?0:1;const r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):Mt.has(r))){const r="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return r>0&&await new Promise((e=>setTimeout(e,r))),s(e.request,{...e.options,retry:t-1})}}const r=function(e){const t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",o=`[${r}] ${JSON.stringify(n)}`,a=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=new Lt(`${o}: ${a}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(const i of["request","options","response"])Object.defineProperty(s,i,{get:()=>e[i]});for(const[i,l]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(s,i,{get:()=>e.response&&e.response[l]});return s}(e);throw Error.captureStackTrace&&Error.captureStackTrace(r,s),r}const s=async function(e,s={}){const i={request:e,options:jt(e,s,t.defaults,n),response:void 0,error:void 0};let l;if(i.options.method&&(i.options.method=i.options.method.toUpperCase()),i.options.onRequest&&await Ft(i,i.options.onRequest),"string"==typeof i.request&&(i.options.baseURL&&(i.request=function(e,t){if(At(t)||wt(e))return e;const r=St(t);return e.startsWith(r)?e:Tt(r,e)}(i.request,i.options.baseURL)),i.options.query&&(i.request=Rt(i.request,i.options.query),delete i.options.query),"query"in i.options&&delete i.options.query,"params"in i.options&&delete i.options.params),i.options.body&&Ut(i.options.method)&&(function(e){if(void 0===e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!e.buffer&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(i.options.body)?(i.options.body="string"==typeof i.options.body?i.options.body:JSON.stringify(i.options.body),i.options.headers=new n(i.options.headers||{}),i.options.headers.has("content-type")||i.options.headers.set("content-type","application/json"),i.options.headers.has("accept")||i.options.headers.set("accept","application/json")):("pipeTo"in i.options.body&&"function"==typeof i.options.body.pipeTo||"function"==typeof i.options.body.pipe)&&("duplex"in i.options||(i.options.duplex="half"))),!i.options.signal&&i.options.timeout){const e=new o;l=setTimeout((()=>{const t=new Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)}),i.options.timeout),i.options.signal=e.signal}try{i.response=await r(i.request,i.options)}catch(c){return i.error=c,i.options.onRequestError&&await Ft(i,i.options.onRequestError),await a(i)}finally{l&&clearTimeout(l)}if((i.response.body||i.response._bodyInit)&&!Bt.has(i.response.status)&&"HEAD"!==i.options.method){const e=(i.options.parseResponse?"json":i.options.responseType)||function(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Dt.test(t)?"json":$t.has(t)||t.startsWith("text/")?"text":"blob"}(i.response.headers.get("content-type")||"");switch(e){case"json":{const e=await i.response.text(),t=i.options.parseResponse||tt;i.response._data=t(e);break}case"stream":i.response._data=i.response.body||i.response._bodyInit;break;default:i.response._data=await i.response[e]()}}return i.options.onResponse&&await Ft(i,i.options.onResponse),!i.options.ignoreResponseError&&i.response.status>=400&&i.response.status<600?(i.options.onResponseError&&await Ft(i,i.options.onResponseError),await a(i)):i.response},i=async function(e,t){return(await s(e,t))._data};return i.raw=s,i.native=(...e)=>r(...e),i.create=(r={},n={})=>e({...t,...n,defaults:{...t.defaults,...n.defaults,...r}}),i}({fetch:zt.fetch?(...e)=>zt.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Headers:zt.Headers,AbortController:zt.AbortController}),Ht=()=>(window?.__NUXT__?.config||{}).app,Vt=(...e)=>It(Wt(),Ht().buildAssetsDir,...e),Wt=(...e)=>{const t=Ht(),r=t.cdnURL||t.baseURL;return e.length?It(r,...e):r};globalThis.__buildAssetsURL=Vt,globalThis.__publicAssetsURL=Wt,globalThis.$fetch||(globalThis.$fetch=qt.create({baseURL:Ht().baseURL}
2)),"global"in globalThis||(globalThis.global=globalThis);const Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof global?global:"undefined"!=typeof window?window:{},Kt="__unctx__",Qt=Gt[Kt]||(Gt[Kt]=function(e={}){const t={};return{get:(r,n={})=>(t[r]||(t[r]=function(e={}){let t,r=!1;const n=e=>{if(t&&t!==e)throw new Error("Context conflict")};let o;if(e.asyncContext){const t=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;t?o=new t:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const a=()=>{if(o){const e=o.getStore();if(void 0!==e)return e}return t};return{use:()=>{const e=a();if(void 0===e)throw new Error("Context is not available");return e},tryUse:()=>a(),set:(e,o)=>{o||n(e),t=e,r=!0},unset:()=>{t=void 0,r=!1},call:(e,a)=>{n(e),t=e;try{return o?o.run(e,a):a()}finally{r||(t=void 0)}},async callAsync(e,n){t=e;const a=()=>{t=e},s=()=>t===e?a:void 0;Jt.add(s);try{const a=o?o.run(e,n):n();return r||(t=void 0),await a}finally{Jt.delete(s)}}}}({...e,...n})),t[r])}}()),Yt="__unctx_async_handlers__",Jt=Gt[Yt]||(Gt[Yt]=new Set);function Xt(e){const t=[];for(const o of Jt){const e=o();e&&t.push(e)}const r=()=>{for(const e of t)e()};let n=e();return n&&"object"==typeof n&&"catch"in n&&(n=n.catch((e=>{throw r(),e}))),[n,r]}const Zt={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},er={value:null,errorValue:null,deep:!0},tr="nuxt-app",rr=36e5;function nr(e=tr){return((e,t={})=>Qt.get(e,t))(e,{asyncContext:!1})}const or="__nuxt_plugin";function ar(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}function sr(e){if("function"==typeof e)return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[or]:!0,_name:t})}const ir=sr;function lr(e,t,r){return nr(e._id).set(e),e.vueApp.runWithContext((()=>r?t(...r):t()))}function cr(e){let t;return o()&&(t=a()?.appContext.app.$nuxt),t||=nr(e).tryUse(),t||null}function ur(e){const t=cr(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function dr(e){return ur().$config}function pr(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function hr(e,t){return{ctx:{table:e},matchAll:t=>gr(t,e)}}function fr(e){const t={};for(const r in e)t[r]="dynamic"===r?new Map(Object.entries(e[r]).map((([e,t])=>[e,fr(t)]))):new Map(Object.entries(e[r]));return t}function mr(e){return hr(fr(e))}function gr(e,t,r){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const n=[];for(const[a,s]of vr(t.wildcard))(e===a||e.startsWith(a+"/"))&&n.push(s);for(const[a,s]of vr(t.dynamic))if(e.startsWith(a+"/")){const t="/"+e.slice(a.length).split("/").splice(2).join("/");n.push(...gr(t,s))}const o=t.static.get(e);return o&&n.push(o),n.filter(Boolean)}function vr(e){return[...e.entries()].sort(((e,t)=>e[0].length-t[0].length))}function yr(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.iterator in e||Symbol.toStringTag in e&&"[object Module]"!==Object.prototype.toString.call(e))}
2function _r(e,t,r=".",n){if(!yr(t))return _r(e,{},r,n);const o=Object.assign({},t);for(const a in e){if("__proto__"===a||"constructor"===a)continue;const t=e[a];null!=t&&(n&&n(o,a,t,r)||(Array.isArray(t)&&Array.isArray(o[a])?o[a]=[...t,...o[a]]:yr(t)&&yr(o[a])?o[a]=_r(t,o[a],(r?`${r}.`:"")+a.toString(),n):o[a]=t))}return o}const br=(...e)=>e.reduce(((e,t)=>_r(e,t,"",undefined)),{});class wr extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){const e={message:this.message,statusCode:kr(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=Sr(this.statusMessage)),void 0!==this.data&&(e.data=this.data),e}}const Er=/[^\u0009\u0020-\u007E]/g;function Sr(e=""){return e.replace(Er,"")}function kr(e,t=200){return e?("string"==typeof e&&(e=Number.parseInt(e,10)),e<100||e>999?t:e):t}"undefined"==typeof setImmediate||setImmediate;const Pr=Symbol("layout-meta"),Rr=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Ar=()=>ur()?.$router,Tr=()=>o()?s(Rr,ur()._route):ur()._route;function Ir(e){return e}const Cr=(e,t)=>{e||="/";const r="string"==typeof e?e:"path"in e?Or(e):Ar().resolve(e).href;if(t?.open){const{target:e="_blank",windowFeatures:n={}}=t.open,o=Object.entries(n).filter((([e,t])=>void 0!==t)).map((([e,t])=>`${e.toLowerCase()}=${t}`)).join(", ");return open(r,e,o),Promise.resolve()}const n=wt(r,{acceptRelative:!0}),o=t?.external||n;if(o){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:e}=new URL(r,window.location.href);if(e&&function(e){return!!e&&yt.test(e)}(e))throw new Error(`Cannot navigate to a URL with '${e}' protocol.`)}const a=(()=>{try{if(ur()._processingMiddleware)return!0}catch{return!1}return!1})();if(!o&&a){if(t?.replace){if("string"==typeof e){const{pathname:t,search:r,hash:n}=Ot(e);return{path:t,...r&&{query:ft(r)},...n&&{hash:n},replace:!0}}return{...e,replace:!0}}return e}const s=Ar(),i=ur();return o?(i._scope.stop(),t?.replace?location.replace(r):location.href=r,a?!!i.isHydrating&&new Promise((()=>{})):Promise.resolve()):t?.replace?s.replace(e):s.push(e)};function Or(e){return Rt(e.path||"",e.query||{})+(e.hash||"")}const xr="__nuxt_error",Lr=()=>i(ur().payload,"error"),Nr=e=>{const t=Dr(e);try{const e=ur(),r=Lr();e.hooks.callHook("app:error",t),r.value||=t}catch{throw t}return t},Ur=async(e={})=>{const t=ur(),r=Lr();t.callHook("app:error:cleared",e),e.redirect&&await Ar().replace(e.redirect),r.value=null},$r=e=>!!e&&"object"==typeof e&&xr in e,Dr=e=>{const t=function(e){if("string"==typeof e)return new wr(e);if(function(e){return!0===e?.constructor?.__h3_error__}(e))return e;const t=new wr(e.message??e.statusMessage??"",{cause:e.cause||e});if(function(e){try{return"stack"in e}catch{return!1}}(e))try{Object.defineProperty(t,"stack",{get:()=>e.stack})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=kr(e.statusCode,t.statusCode):e.status&&(t.statusCode=kr(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const e=t.statusMessage;Sr(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return void 0!==e.fatal&&(t.fatal=e.fatal),void 0!==e.unhandled&&(t.unhandled=e.unhandled),t}(e);return Object.defineProperty(t,xr,{value:!0,configurable:!1,writable:!1}),t};const jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Fr(e,t){return function(e,t){if("number"==typeof e)return o(e,!0);if(!Array.isArray(e)||0===e.length)throw new Error("Invalid input");const r=e,n=Array(r.length);function o(e,a=!1){if(-1===e)return;if(-3===e)return NaN;if(-4===e)return 1/0;if(-5===e)return-1/0;if(-6===e)return-0;if(a||"number"!=typeof e)throw new Error("Invalid input");if(e in n)return n[e];const s=r[e];if(s&&"object"==typeof s)if(Array.isArray(s))if("string"==typeof s[0]){const r=s[0],a=t?.[r];if(a)return n[e]=a(o(s[1]));switch(r){case"Date":n[e]=new Date(s[1]);break;case"Set":const t=new Set;n[e]=t;for(let e=1;e<s.length;e+=1)t.add(o(s[e]));break;case"Map":const a=new Map;n[e]=a;for(let e=1;e<s.length;e+=2)a.set(o(s[e]),o(s[e+1]));break;case"RegExp":n[e]=new RegExp(s[1],s[2]);break;case"Object":n[e]=Object(s[1]);break;case"BigInt":n[e]=BigInt(s[1]);break;case"null":const i=Object.create(null);n[e]=i;for(let e=1;e<s.length;e+=2)i[s[e]]=o(s[e+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const t=new(0,globalThis[r])(o(s[1]));n[e]=void 0!==s[2]?t.subarray(s[2],s[3]):t;break}case"ArrayBuffer":{const t=function(e){const t=function(e){e.length%4==0&&(e=e.replace(/==?$/,""));let t="",r=0,n=0;for(let o=0;o<e.length;o++)r<<=6,r|=jr.indexOf(e[o]),n+=6,24===n&&(t+=String.fromCharCode((16711680&r)>>16),t+=String.fromCharCode((65280&r)>>8),t+=String.fromCharCode(255&r),r=n=0);return 12===n?(r>>
2=4,t+=String.fromCharCode(r)):18===n&&(r>>=2,t+=String.fromCharCode((65280&r)>>8),t+=String.fromCharCode(255&r)),t}(e),r=new ArrayBuffer(t.length),n=new DataView(r);for(let o=0;o<r.byteLength;o++)n.setUint8(o,t.charCodeAt(o));return r}(s[1]);n[e]=t;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const t=r.slice(9);n[e]=Temporal[t].from(s[1]);break}case"URL":{const t=new URL(s[1]);n[e]=t;break}case"URLSearchParams":{const t=new URLSearchParams(s[1]);n[e]=t;break}default:throw new Error(`Unknown type ${r}`)}}else{const t=new Array(s.length);n[e]=t;for(let e=0;e<s.length;e+=1){const r=s[e];-2!==r&&(t[e]=o(r))}}else{const t={};n[e]=t;for(const e in s){if("__proto__"===e)throw new Error("Cannot parse an object with a `__proto__` property");const r=s[e];t[e]=o(r)}}else n[e]=s;return n[e]}return o(0)}(JSON.parse(e),t)}const Mr=new Set(["link","style","script","noscript"]),Br=new Set(["title","titleTemplate","script","style","noscript"]),zr=new Set(["base","meta","link","style","script","noscript"]),qr=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Hr=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Vr=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Wr=new Set(["onload","onerror"]),Gr=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Kr=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Qr={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},Yr={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},Jr={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${Xr(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>"seconds"===e?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>"boolean"==typeof t?Xr(e):`${Xr(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${Xr(e)} ${t}`}},charset:{}};function Xr(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),r=t.indexOf("-");return-1===r?t:Qr.META.has(t.slice(0,r))||Qr.OG.has(t.slice(0,r))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function Zr(e){return Object.fromEntries(Object.entries(e).filter((([e,t])=>"false"!==String(t)&&e)))}function en(e){return Array.isArray(e)?e.map(en):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,t])=>[Xr(e),en(t)]))):e}function tn(e,t={}){const{entrySeparator:r="",keyValueSeparator:n="",wrapValue:o,resolve:a}=t;return Object.entries(e).map((([e,r])=>{if(a){const t=a({key:e,value:r});if(void 0!==t)return t}const s="object"==typeof r?tn(r,t):"number"==typeof r?r.toString():"string"==typeof r&&o?`${o}${r.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:r;return`${e}${n}${s}`})).join(r)}function rn(e,t){const r=Zr(t),n=Xr(e),o=nn(n);return Kr.has(n)?an(Object.fromEntries(Object.entries(r).map((([t,r])=>[`${e}${"url"===t?"":`${t[0].toUpperCase()}${t.slice(1)}`}`,r])))||{}).sort(((e,t)=>(e[o]?.length||0)-(t[o]?.length||0))):[{[o]:n,...r}]}function nn(e){if("http-equiv"===Jr[e]?.metaKey||Qr.HTTP_EQUIV.has(e))return"http-equiv";const t=Xr(e),r=t.indexOf(":");return-1===r?"name":Qr.OG.has(t.slice(0,r))?"property":"name"}function on(e,t){return"refresh"===t?`${e.seconds};url=${e.url}`:tn(en(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:e,key:t})=>null===e?"":"boolean"==typeof e?t:void 0,...Jr[t]?.unpack})}function an(e){const t=[],r={};for(const[o,a]of Object.entries(e))if(Array.isArray(a)){if("themeColor"===o){a.forEach((e=>{"object"==typeof e&&null!==e&&t.push({name:"theme-color",...e})}));continue}for(const e of a)if("object"==typeof e&&null!==e){const r=[],n=[];for(const[t,a]of Object.entries(e)){const e=`${o}${"url"===t?"":`:${t}`}`,s=an({[e]:a});("url"===t?r:n).push(...s)}t.push(...r,...n)}else t.push(..."string"==typeof e?an({[o]:e}):rn(o,e))}else if("object"==typeof a&&a)if(Qr.MEDIA.has(o)){const e=o.startsWith("twitter")?"twitter":"og",r=o.replace(/^(og|twitter)/,"").toLowerCase(),n="twitter"===e?"name":"property";a.url&&t.push({[n]:`${e}:${r}`,content:a.url}),a.secureUrl&&t.push({[n]:`${e}:${r}:secure_url`,content:a.secureUrl});for(const[o,s]of Object.entries(a))"url"!==o&&"secureUrl"!==o&&t.push({[n]:`${e}:${r}:${o}`,content:s})}else Kr.has(Xr(o))?t.push(...rn(o,a)):r[o]=Zr(a);else r[o]=a;const n=Object.entries(r).map((([e,t])=>
2{if("charset"===e)return{charset:null===t?"_null":t};const r=nn(e),n=function(e){return Yr[e]||Xr(e)}(e),o=null===t?"_null":"object"==typeof t?on(t,e):"number"==typeof t?t.toString():t;return"http-equiv"===r?{"http-equiv":n,content:o}:{[r]:n,content:o}}));return[...t,...n].map((e=>"content"in e&&"_null"===e.content?{...e,content:null}:e))}function sn(e){return e}const ln=sn({key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map((e=>"_flatMeta"!==e.tag?e:(t.push(an(e.props).map((t=>({...e,tag:"meta",props:t})))),!1))).filter(Boolean).concat(...t)}}}),cn=["name","property","http-equiv"],un=new Set(["viewport","description","keywords","robots"]);function dn(e){const t=e.split(":");return!!t.length&&Kr.has(t[1])}function pn(e){const{props:t,tag:r}=e;if(Hr.has(r))return r;if("link"===r&&"canonical"===t.rel)return"canonical";if(t.charset)return"charset";if("meta"===e.tag)for(const n of cn)if(void 0!==t[n]){const o=t[n],a=o.includes(":"),s=un.has(o);return`${r}:${o}${a||s||!e.key?"":`:key:${e.key}`}`}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(Br.has(r)){const t=e.textContent||e.innerHTML;if(t)return`${r}:content:${t}`}}function hn(e){const t=e._h||e._d;if(t)return t;return e.textContent||e.innerHTML||`${e.tag}:${Object.entries(e.props).map((([e,t])=>`${e}:${String(t)}`)).join(",")}`}function fn(e,t,r){let n;if("function"==typeof e&&(r&&("titleTemplate"===r||"o"===r[0]&&"n"===r[1])||(e=e())),t&&(n=t(r,e)),Array.isArray(n))return n.map((e=>fn(e,t)));if(n?.constructor===Object){const e={};for(const r of Object.keys(n))e[r]=fn(n[r],t,r);return e}return n}function mn(e,t){return e.props=e.props||{},t?"templateParams"===e.tag?(e.props=t,e):(Object.entries(t).forEach((([r,n])=>{if(null===n)return void(e.props[r]=null);if("class"===r||"style"===r)return void(e.props[r]=function(e,t){const r="style"===e?new Map:new Set;function n(t){const n=t.trim();if(n)if("style"===e){const[e,...t]=n.split(":").map((e=>e.trim()));e&&t.length&&r.set(e,t.join(":"))}else n.split(" ").filter(Boolean).forEach((e=>r.add(e)))}return"string"==typeof t?"style"===e?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach((e=>n(e))):t&&"object"==typeof t&&Object.entries(t).forEach((([t,o])=>{o&&"false"!==o&&("style"===e?r.set(t.trim(),o):n(t))})),r}(r,n));if(Vr.has(r)){if(["textContent","innerHTML"].includes(r)&&"object"==typeof n){let o=t.type;if(t.type||(o="application/json"),!o?.endsWith("json")&&"speculationrules"!==o)return;t.type=o,e.props.type=o,e[r]=JSON.stringify(n)}else e[r]=n;return}const o=String(n),a=r.startsWith("data-");"true"===o||""===o?e.props[r]=!a||o:!n&&a&&"false"===o?e.props[r]="false":void 0!==n&&(e.props[r]=n)})),e):e}function gn(e,t){const r=mn({tag:e,props:{}},"object"==typeof t&&"function"!=typeof t?t:{["script"===e||"noscript"===e||"style"===e?"innerHTML":"textContent"]:t});return r.key&&Mr.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),"script"===r.tag&&"object"==typeof r.innerHTML&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map((e=>({...r,props:{...r.props,content:e}}))):r}function vn(e,t){if(!e)return[];"function"==typeof e&&(e=e());const r=(e,r)=>{for(let n=0;n<t.length;n++)r=t[n](e,r);return r};e=r(void 0,e);const n=[];return e=fn(e,r),Object.entries(e||{}).forEach((([e,t])=>{if(void 0!==t)for(const r of Array.isArray(t)?t:[t])n.push(gn(e,r))})),n.flat()}const yn=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,_n={base:-10,title:10},bn={critical:-8,high:-1,low:2},wn={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},En=/@import/,Sn=e=>""===e||!0===e;function kn(e,t){if("number"==typeof t.tagPriority)return t.tagPriority;let r=100;const n=bn[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:wn;if(t.tag in _n)r=_n[t.tag];else if("meta"===t.tag){const e="content-security-policy"===t.props["http-equiv"]?"content-security-policy":t.props.charset?"charset":"viewport"===t.props.name?"viewport":null;e&&(r=wn.meta[e])}else"link"===t.tag&&t.props.rel?r=o.link[t.props.rel]:"script"===t.tag?Sn(t.props.async)?r=o.script.async:!t.props.src||Sn(t.props.defer)||Sn(t.props.async)||"module"===t.props.type||t.props.type?.endsWith("json")?Sn(t.props.defer)&&t.props.src&&!Sn(t.props.async)&&(r=o.script.defer):r=o.script.sync:"style"===t.tag&&(r=t.innerHTML&&En.test(t.innerHTML)?o.style.imported:o.style.sync);return(r||100)+n}function Pn(e,t){const r="function"==typeof t?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function Rn(e={}
2){const t=Ge();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,o=new Map,a=new Set,s={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries:()=>[...n.values()],use:e=>Pn(s,e),push(e,o){const i={...o||{}};delete i.head;const l=i._index??s._entryCount++,c={_i:l,input:e,options:i},u={_poll(e=!1){s.dirty=!0,!e&&a.add(l),t.callHook("entries:updated",s)},dispose(){n.delete(l)&&s.invalidate()},patch(e){(!i.mode||"server"===i.mode&&r||"client"===i.mode&&!r)&&(c.input=e,n.set(l,c),u._poll())}};return u.patch(e),u},async resolveTags(){const r={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await t.callHook("entries:resolve",r);a.size;){const r=a.values().next().value;a.delete(r);const o=n.get(r);if(o){const r={tags:vn(o.input,e.propResolvers||[]).map((e=>Object.assign(e,o.options))),entry:o};await t.callHook("entries:normalize",r),o._tags=r.tags.map(((e,t)=>(e._w=kn(s,e),e._p=(o._i<<10)+t,e._d=pn(e),e)))}}let o=!1;r.entries.flatMap((e=>(e._tags||[]).map((e=>({...e,props:{...e.props}}))))).sort(yn).reduce(((e,t)=>{const r=String(t._d||t._p);if(!e.has(r))return e.set(r,t);const n=e.get(r);if("merge"===(t?.tagDuplicateStrategy||(Gr.has(t.tag)?"merge":null)||(t.key&&t.key===n.key?"merge":null))){const o={...n.props};Object.entries(t.props).forEach((([e,t])=>o[e]="style"===e?new Map([...n.props.style||new Map,...t]):"class"===e?new Set([...n.props.class||new Set,...t]):t)),e.set(r,{...t,props:o})}else t._p>>10==n._p>>10&&"meta"===t.tag&&dn(r)?(e.set(r,Object.assign([...Array.isArray(n)?n:[n],t],t)),o=!0):(t._w===n._w?t._p>n._p:t?._w<n?._w)&&e.set(r,t);return e}),r.tagMap);const i=r.tagMap.get("title"),l=r.tagMap.get("titleTemplate");if(s._title=i?.textContent,l){const e=l?.textContent;if(s._titleTemplate=e,e){let t="function"==typeof e?e(i?.textContent):e;"string"!=typeof t||s.plugins.has("template-params")||(t=t.replace("%s",i?.textContent||"")),i?null===t?r.tagMap.delete("title"):r.tagMap.set("title",{...i,textContent:t}):(l.tag="title",l.textContent=t)}}r.tags=Array.from(r.tagMap.values()),o&&(r.tags=r.tags.flat().sort(yn)),await t.callHook("tags:beforeResolve",r),await t.callHook("tags:resolve",r),await t.callHook("tags:afterResolve",r);const c=[];for(const e of r.tags){const{innerHTML:t,tag:r,props:n}=e;if(qr.has(r)&&(0!==Object.keys(n).length||e.innerHTML||e.textContent)&&("meta"!==r||n.content||n["http-equiv"]||n.charset)){if("script"===r&&t){if(n.type?.endsWith("json")){const r="string"==typeof t?t:JSON.stringify(t);e.innerHTML=r.replace(/</g,"\\u003C")}else"string"==typeof t&&(e.innerHTML=t.replace(new RegExp(`</${r}`,"g"),`<\\/${r}`));e._d=pn(e)}c.push(e)}}return c},invalidate(){for(const e of n.values())a.add(e._i);s.dirty=!0,t.callHook("entries:updated",s)}};return(e?.plugins||[]).forEach((e=>Pn(s,e))),s.hooks.callHook("init",s),e.init?.forEach((e=>e&&s.push(e))),s}const An=["preconnect","dns-prefetch"];const Tn="%separator";function In(e,t,r,n=!1){if("string"!=typeof e||!e.includes("%"))return e;let o=e;try{o=decodeURI(e)}catch{}const a=o.match(/%\w+(?:\.\w+)?/g);if(!a)return e;const s=e.includes(Tn);return e=e.replace(/%\w+(?:\.\w+)?/g,(e=>{if(e===Tn||!a.includes(e))return e;const r=function(e,t,r=!1){let n;if("s"===t||"pageTitle"===t)n=e.pageTitle;else if(t.includes(".")){const r=t.indexOf(".");n=e[t.substring(0,r)]?.[t.substring(r+1)]}else n=e[t];if(void 0!==n)return r?(n||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):n||""}(t,e.slice(1),n);return void 0!==r?r:e})).trim(),s&&(e=e.split(Tn).map((e=>e.trim())).filter((e=>""!==e)).join(r?` ${r} `:" ")),e}const Cn=e=>e.includes(":key")?e:e.split(":").join(":key:"),On={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const r of e.tags){const n=r.tagPriority;if(!n)continue;const o=String(n);if(o.startsWith("before:")){const n=Cn(o.slice(7)),a=e.tagMap.get(n);a&&("number"==typeof a.tagPriority&&(r.tagPriority=a.tagPriority),r._p=a._p-1,t=!0)}else if(o.startsWith("after:")){const n=Cn(o.slice(6)),a=e.tagMap.get(n);a&&("number"==typeof a.tagPriority&&(r.tagPriority=a.tagPriority),r._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(yn))}}},xn=sn({key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}});async function Ln(e){if("function"==typeof e)return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map((e=>Ln(e))));if(e?.constructor===Object){const t={};for(const r of Object.keys(e))t[r]=await Ln(e[r]);return t}return e}const Nn=sn({key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const r in e.entries)e.entries[r]._promisesProcessed||t.push(Ln(e.entries[r].input).then((t=>{e.entries[r].input=t,e.entries[r]._promisesProcessed=!0})));await Promise.all(t)}}}),Un={meta:"content",link:"href",htmlAttrs:"lang"},$n=["innerHTML","textContent"],Dn=sn((e=>({key:"template-params",hooks:{"entries:normalize":t=>{const r=t.tags.filter((e=>"templateParams"===e.tag&&"server"===e.mode))?.[0]?.props||{};Object.keys(r).length&&(e._ssrPayload={templateParams:{...e._ssrPayload?.templateParams||{},...r}})},"tags:resolve":({tagMap:t,tags:r})=>{const n=t.get("templateParams")?.props||{},o=n.separator||"|";delete n.separator,n.pageTitle=In(n.pageTitle||e._title||"",n,o);for(const e of r){if(!1===e.processTemplateParams)continue;const t=Un[e.tag];if(t&&"string"==typeof e.props[t])e.props[t]=In(e.props[t],n,o);else if(e.processTemplateParams||"titleTemplate"===e.tag||"title"===e.tag)for(const r of $n)"string"==typeof e[r]&&(e[r]=In(e[r],n,o,"script"===e.tag&&e.props.type.endsWith("json")))}e._templateParams=n,e._separator=o},"tags:afterResolve":({tagMap:t})=>{const r=t.get("title");r?.textContent&&!1!==r.processTemplateParams&&(r.textContent=In(r.textContent,e._templateParams,e._separator))}}}))),jn=(e,t)=>c(t)?l(t):t,Fn="usehead";function Mn(){if(o()){const e=s(Fn);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function Bn(e,t={}){const r=t.head||Mn();return r.ssr?r.push(e||{},t):function(e,t,r={}){const n=u(!1);let o;return d((()=>{const a=n.value?{}:fn(t,jn);o?o.patch(a):o=e.push(a,r)})),a()&&(p((()=>{o.dispose()})),h((()=>{n.value=!0})),f((()=>{n.value=!1}))),o}(r,e,t)}function zn(e,t){const r="string"==typeof e?{src:e}:e,n=t||{},o=n?.head||Mn();n.head=o;const s=a();if(n.eventContext=s,s&&void 0===n.trigger)n.trigger=m;else if(c(n.trigger)){const e=n.trigger;let t;n.trigger=new Promise((r=>{t=g(e,(e=>{e&&r(!0)}),{immediate:!0}),v((()=>r(!1)),!0)})).then((e=>(t?.(),e)))}o._scriptStatusWatcher=o._scriptStatusWatcher||o.hooks.hook("script:updated",(({script:e})=>{e._statusRef.value=e.status}));const i=function(e,t,r){const n="string"==typeof t?{src:t}:t,o=r||{},a=function(e){return e.key||e.src||("string"==typeof e.innerHTML?e.innerHTML:"")}(n),s=e._scripts?.[a];if(s)return s.setupTriggerHandler(o.trigger),s;o.beforeInit?.();const i=t=>{p.status=t,e.hooks.callHook("script:updated",h)};Wr.forEach((e=>{const t=e,r="function"==typeof n[t]?n[t].bind(o.eventContext):null;n[t]=t=>{i("onload"===e?"loaded":"onerror"===e?"error":"loading"),r?.(t)}}));const l={loaded:[],error:[]},c=new Set,u=(t,r,n)=>{if(!e.ssr){if(n?.key){const e=`${n?.key}:${n.key}`;if(c.has(e))return;c.add(e)}if(l[t]){const e=l[t].push(r);return()=>l[t]?.splice(e-1,1)}return r(p.instance),()=>{}}},d=new Promise((t=>{if(e.ssr)return;const r=e=>requestAnimationFrame((()=>t(e))),n=e.hooks.hook("script:updated",(({script:e})=>{const s=e.status;if(e.id===a&&("loaded"===s||"error"===s)){if("loaded"===s)if("function"==typeof o.use){const e=o.use();e&&r(e)}else r({});else"error"===s&&t(!1);n()}}))})),p={_loadPromise:d,instance:!e.ssr&&o?.use?.()||null,proxy:null,id:a,status:"awaitingLoad",remove:()=>(p._triggerAbortController?.abort(),p._triggerPromises=[],p._warmupEl?.dispose(),!!p.entry&&(p.entry.dispose(),p.entry=void 0,i("removed"),delete e._scripts?.[a],!0)),warmup(t){const{src:r}=n,o=!r.startsWith("/")||r.startsWith("//"),a=t&&An.includes(t);let s=r;if(!t||a&&!o)return;if(a){const e=new URL(r);s=`${e.protocol}//${e.host}`}const i={href:s,rel:t,crossorigin:void 0!==n.crossorigin?n.crossorigin:o?"anonymous":void 0,referrerpolicy:void 0!==n.referrerpolicy?n.referrerpolicy:o?"no-referrer":void 0,fetchpriority:void 0!==n.fetchpriority?n.fetchpriority:"low",integrity:n.integrity,as:"preload"===t?"script":void 0};return p._warmupEl=e.push({link:[i]},{head:e,tagPriority:"high"}),p._warmupEl},load(t){if(p._triggerAbortController?.abort(),p._triggerPromises=[],!p.entry){i("loading");const t={defer:!0,fetchpriority:"low"};n.src&&(n.src.startsWith("http")||n.src.startsWith("//"))&&(t.crossorigin="anonymous",t.referrerpolicy="no-referrer"),p.entry=e.push({script:[{...t,...n}]},o)}return t&&u("loaded",t),d},onLoaded:(e,t)=>u("loaded",e,t),onError:(e,t)=>
2u("error",e,t),setupTriggerHandler(t){if("awaitingLoad"===p.status)if((void 0!==t&&"client"!==t||e.ssr)&&"server"!==t)if(t instanceof Promise){if(e.ssr)return;p._triggerAbortController||(p._triggerAbortController=new AbortController,p._triggerAbortPromise=new Promise((e=>{p._triggerAbortController.signal.addEventListener("abort",(()=>{p._triggerAbortController=null,e()}))}))),p._triggerPromises=p._triggerPromises||[];const r=p._triggerPromises.push(Promise.race([t.then((e=>void 0===e||e?p.load:void 0)),p._triggerAbortPromise]).catch((()=>{})).then((e=>{e?.()})).finally((()=>{p._triggerPromises?.splice(r,1)})))}else"function"==typeof t&&t(p.load);else p.load()},_cbs:l};d.then((e=>{!1!==e?(p.instance=e,l.loaded?.forEach((t=>t(e))),l.loaded=null):(l.error?.forEach((e=>e())),l.error=null)}));const h={script:p};if(p.setupTriggerHandler(o.trigger),o.use){const{proxy:t,stack:r}=function(e={}){const t=[];let r=-1;const n=(e=!1)=>({get(o,a,s){if(!e){const e=Reflect.get(o,a,s);if(void 0!==e)return e;r++,t[r]=[]}return t[r].push({type:"get",key:a}),new Proxy((()=>{}),n(!0))},apply(e,n,o){t[r].push({type:"apply",key:"",args:o})}});return{proxy:new Proxy(e||{},n()),stack:t}}(e.ssr?{}:o.use()||{});p.proxy=t,p.onLoaded((e=>{!function(e,t){t.forEach((t=>{let r=e,n=e;t.forEach((({type:e,key:t,args:o})=>{"get"===e?(n=r,r=r[t]):"apply"===e&&(r=r.call(n,...o))}))}))}(e,r),p.proxy=function(e){const t={get(e,r,n){const o=Reflect.get(e,r,n);return"object"==typeof o?new Proxy(o,t):o},apply(e,t,r){Reflect.apply(e,t,r)}};return new Proxy(e,t)}(e)}))}return o.warmupStrategy||void 0!==o.trigger&&"client"!==o.trigger||(o.warmupStrategy="preload"),o.warmupStrategy&&p.warmup(o.warmupStrategy),e._scripts=Object.assign(e._scripts||{},{[a]:p}),p}(o,r,n);return i._statusRef=i._statusRef||u(i.status),function(e,t){if(!t)return;const r=(t,r)=>{if(!e._cbs[t])return r(e.instance),()=>{};let n=e._cbs[t].push(r);const o=()=>{n&&(e._cbs[t]?.splice(n-1,1),n=null)};return v(o),o};e.onLoaded=e=>r("loaded",e),e.onError=e=>r("error",e),v((()=>{e._triggerAbortController?.abort()}))}(i,s),new Proxy(i,{get:(e,t,r)=>Reflect.get(e,"status"===t?"_statusRef":t,r)})}function qn(e){const t=e||cr();return t?.ssrContext?.head||t?.runWithContext((()=>{if(o())return s(Fn)}))}function Hn(e,t={}){const r=qn(t.nuxt);if(r)return Bn(e,{head:r,...t})}function Vn(e,t={}){const r=qn(t.nuxt);if(r)return function(e={},t={}){(t.head||Mn()).use(ln);const{title:r,titleTemplate:n,...o}=e;return Bn({title:r,titleTemplate:n,_flatMeta:o},t)}(e,{head:r,...t})}const Wn={},Gn=function(e,t,r){let n=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map((e=>Promise.resolve(e).then((e=>({status:"fulfilled",value:e})),(e=>({status:"rejected",reason:e}))))))};const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),s=a?.nonce||a?.getAttribute("nonce");n=e(t.map((e=>{if(e=function(e,t){return new URL(e,t).href}(e,r),e in Wn)return;Wn[e]=!0;const t=e.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(r)for(let r=o.length-1;r>=0;r--){const n=o[r];if(n.href===e&&(!t||"stylesheet"===n.rel))return}else if(document.querySelector(`link[href="${e}"]${n}`))return;const a=document.createElement("link");return a.rel=t?"stylesheet":"modulepreload",t||(a.as="script"),a.crossOrigin="",a.href=e,s&&a.setAttribute("nonce",s),document.head.appendChild(a),t?new Promise(((t,r)=>{a.addEventListener("load",t),a.addEventListener("error",(()=>r(new Error(`Unable to preload CSS for ${e}`))))})):void 0})))}function o(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return n.then((t=>{for(const e of t||[])"rejected"===e.status&&o(e.reason);return e().catch(o)}))};let Kn,Qn;function Yn(){return Kn||(Kn=$fetch(Vt(`builds/meta/${dr().app.buildId}.json`),{responseType:"json"}),Kn.then((e=>{Qn=mr(e.matcher)})).catch((e=>{console.error("[nuxt] Error fetching app manifest.",e)})),Kn)}async function Jn(e){const t="string"==typeof e?e:e.path;if(await Yn(),!Qn)return console.error("[nuxt] Error creating app manifest matcher.",Qn),{};try{return br({},...Qn.matchAll(t).reverse())}catch(r){return console.error("[nuxt] Error matching route rules.",r),{}}}async function Xn(e,t={}){if(!(await to(e)))return null;const r=await async function(e,t={}
2){const r=new URL(e,"http://localhost");if("localhost"!==r.host||wt(r.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const n=dr(),o=t.hash||(t.fresh?Date.now():n.app.buildId),a=n.app.cdnURL;return Tt(a&&await to(e)?a:n.app.baseURL,r.pathname,Zn+(o?`?${o}`:""))}(e,t);return await eo(r)||null}const Zn="_payload.json";async function eo(e){const t=fetch(e,{cache:"force-cache"}).then((e=>e.text().then(oo)));try{return await t}catch(r){console.warn("[nuxt] Cannot load payload ",e,r)}return null}async function to(e=Tr().path){const t=ur();return e=St(e),!!(await Yn()).prerendered.includes(e)||t.runWithContext((async()=>{const t=await Jn({path:e});return!!t.prerender&&!t.redirect}))}let ro=null;async function no(){if(ro)return ro;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const r=await oo(e.textContent||""),n=e.dataset.src?await eo(e.dataset.src):void 0;return ro={...r,...n,...window.__NUXT__},ro.config?.public&&(ro.config.public=t(ro.config.public)),ro}async function oo(e){return await Fr(e,ur()._payloadRevivers)}function ao(e,t){ur()._payloadRevivers[e]=t}const so=ir((()=>{ao("skipHydrate",(e=>{}))})),io=[["NuxtError",e=>Dr(e)],["EmptyShallowRef",e=>y("_"===e?void 0:"0n"===e?BigInt(0):tt(e))],["EmptyRef",e=>u("_"===e?void 0:"0n"===e?BigInt(0):tt(e))],["ShallowRef",e=>y(e)],["ShallowReactive",t=>e(t)],["Ref",e=>u(e)],["Reactive",e=>t(e)]],lo=sr({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,r;for(const[n,o]of io)ao(n,o);Object.assign(e.payload,([t,r]=Xt((()=>e.runWithContext(no))),t=await t,r(),t)),window.__NUXT__=e.payload}});const co=sr({name:"vuetify:icons:plugin",order:-25,parallel:!0,setup(e){e.hook("vuetify:configuration",(({vuetifyOptions:e})=>{!function(e){{const t={defaultSet:"mdi",aliases:b,sets:{mdi:_}};if("custom"===t?.defaultSet)return;e.icons=t}}(e)}))}}),uo=JSON.parse('{"reloadOnFirstRequest":false,"viewportSize":true,"prefersColorScheme":false,"prefersReducedMotion":false}');function po(...e){const t="string"==typeof e[e.length-1]?e.pop():void 0;"string"!=typeof e[0]&&e.unshift(t);const[r,n]=e;if(!r||"string"!=typeof r)throw new TypeError("[nuxt] [useState] key must be a string: "+r);if(void 0!==n&&"function"!=typeof n)throw new Error("[nuxt] [useState] init must be a function: "+n);const o="$s"+r,a=ur(),s=i(a.payload.state,o);if(void 0===s.value&&n){const e=n();if(c(e))return a.payload.state[o]=e,e;s.value=e}return s}const ho=sr({name:"vuetify:client-hints:client:plugin",order:-25,parallel:!0,setup(e){const r=function(){const e=po("vuetify:nuxt:ssr-client-hints","$ZdAeYcTlbJ");if(e.value)return e;const t=u({firstRequest:!1,prefersColorSchemeAvailable:!1,prefersReducedMotionAvailable:!1,viewportHeightAvailable:!0,viewportWidthAvailable:!0,viewportHeight:window.innerHeight,viewportWidth:window.innerWidth});if(!uo.prefersColorScheme||!uo.prefersColorSchemeOptions)return t;const{baseUrl:r,cookieName:n,defaultTheme:o}=uo.prefersColorSchemeOptions,a=`${n}=`;t.value.colorSchemeFromCookie=document.cookie?.split(";")?.find((e=>e.trim().startsWith(a)))?.split("=")[1]??o;const s=new Date,i=new Date(s.setDate(s.getDate()+365));return t.value.colorSchemeCookie=`${n}=${t.value.colorSchemeFromCookie}; Path=${r}; Expires=${i.toUTCString()}; SameSite=Lax`,t}(),{firstRequest:n,prefersColorSchemeAvailable:o,prefersReducedMotionAvailable:a,viewportHeightAvailable:s,viewportWidthAvailable:i}=r.value,{reloadOnFirstRequest:l,viewportSize:c,prefersReducedMotion:d,prefersColorScheme:p,prefersColorSchemeOptions:h}=uo;if(n&&l){if(p){const e=r.value.colorSchemeCookie;if(h&&e){const t=window.matchMedia("(prefers-color-scheme: dark)").matches,n=h.cookieName,o=`${n}=${r.value.colorSchemeFromCookie??h.defaultTheme};`,a=t?h.darkThemeName:h.lightThemeName;document.cookie=e.replace(o,`${n}=${a};`),window.location.reload()}else o&&window.location.reload()}d&&a&&window.location.reload(),c&&s&&window.location.reload(),c&&i&&window.location.reload()}if(e.hook("vuetify:before-create",(({vuetifyOptions:e})=>{if(c){const t=r.value.viewportWidth,n=r.value.viewportHeight;e.ssr="number"!=typeof t||{clientWidth:t,clientHeight:n}}else e.ssr=!0;p&&h&&(!1===e.theme?e.theme={defaultTheme:r.value.colorSchemeFromCookie??h.defaultTheme}:(e.theme=e.theme??{},e.theme.defaultTheme=r.value.colorSchemeFromCookie??h.defaultTheme))})),p&&h){const t=r.value.colorSchemeCookie;t&&e.hook("app:beforeMount",(()=>{const e=ur().$vuetify,n=h.cookieName,o=`${n}=${r.value.colorSchemeFromCookie??h.defaultTheme};`;if(g(e.theme.global.name,(e=>{document.cookie=t.replace(o,`${n}=${e};`)})),h.useBrowserThemeOnly){const{darkThemeName:t,lightThemeName:r}=h;window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(n=>{e.theme.global.name.value=n.matches?t:r}))}}))}return{provide:t({ssrClientHints:r})}}});async function fo(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};return await e.hooks.callHook("dom:beforeRender",n),n.shouldRender?(e._domUpdatePromise||(e._domUpdatePromise=new Promise((async t=>{const n=new Map,o=new Promise((t=>{e.resolveTags().then((e=>{t(e.map((e=>{const t=n.get(e._d)||0,r={tag:e,id:(t?`${e._d}:${t}`:e._d)||hn(e),shouldRender:!0};return e._d&&dn(e._d)&&n.set(e._d,t+1),r})))}))}));let a=e._dom;if(!a){a={title:r.title,elMap:(new Map).set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const e of["body","head"]){const t=r[e]?.children;for(const e of t){const t=e.tagName.toLowerCase();if(!zr.has(t))continue;const r=mn({tag:t,props:{}},{innerHTML:e.innerHTML,...e.getAttributeNames().reduce(((t,r)=>(t[r]=e.getAttribute(r),t)),{})||{}});if(r.key=e.getAttribute("data-hid")||void 0,r._d=pn(r)||hn(r),a.elMap.has(r._d)){let t=1,n=r._d;for(;a.elMap.has(n);)n=`${r._d}:${t++}`;a.elMap.set(n,e)}else a.elMap.set(r._d,e)}}}function s(e,t,r){const n=`${e}:${t}`;a.sideEffects[n]=r,delete a.pendingSideEffects[n]}function i({id:e,$el:t,tag:n}){const o=n.tag.endsWith("Attrs");a.elMap.set(e,t),o||(n.textContent&&n.textContent!==t.textContent&&(t.textContent=n.textContent),n.innerHTML&&n.innerHTML!==t.innerHTML&&(t.innerHTML=n.innerHTML),s(e,"el",(()=>{t?.remove(),a.elMap.delete(e)})));for(const a in n.props){if(!Object.prototype.hasOwnProperty.call(n.props,a))continue;const i=n.props[a];if(a.startsWith("on")&&"function"==typeof i){const e=t?.dataset;if(e&&e[`${a}fired`]){const e=a.slice(0,-5);i.call(t,new Event(e.substring(2)))}""!==t.getAttribute(`data-${a}`)&&(("bodyAttrs"===n.tag?r.defaultView:t).addEventListener(a.substring(2),i.bind(t)),t.setAttribute(`data-${a}`,""));continue}const l=`attr:${a}`;if("class"===a){if(!i)continue;for(const r of i)o&&s(e,`${l}:${r}`,(()=>t.classList.remove(r))),!t.classList.contains(r)&&t.classList.add(r)}else if("style"===a){if(!i)continue;for(const[r,n]of i)s(e,`${l}:${r}`,(()=>{t.style.removeProperty(r)})),t.style.setProperty(r,n)}else!1!==i&&null!==i&&(t.getAttribute(a)!==i&&t.setAttribute(a,!0===i?"":String(i)),o&&s(e,l,(()=>t.removeAttribute(a))))}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0},u=await o;for(const e of u){const{tag:t,shouldRender:n,id:o}=e;n&&("title"!==t.tag?(e.$el=e.$el||a.elMap.get(o),e.$el?i(e):zr.has(t.tag)&&l.push(e)):(r.title=t.textContent,s("title","",(()=>r.title=a.title))))}for(const e of l){const t=e.tag.tagPosition||"head";e.$el=r.createElement(e.tag.tag),i(e),c[t]=c[t]||r.createDocumentFragment(),c[t].appendChild(e.$el)}for(const d of u)await e.hooks.callHook("dom:renderTag",d,r,s);c.head&&r.head.appendChild(c.head),c.bodyOpen&&r.body.insertBefore(c.bodyOpen,r.body.firstChild),c.bodyClose&&r.body.appendChild(c.bodyClose);for(const e in a.pendingSideEffects)a.pendingSideEffects[e]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:u}),t()})).finally((()=>{e._domUpdatePromise=void 0,e.dirty=!1}))),e._domUpdatePromise):void 0}function mo(e,t){let r=0;return()=>{const n=++r;t((()=>{r===n&&e()}))}}const go={disableDefaults:!0,disableCapoSorting:!1,plugins:[xn,Nn,Dn,On]},vo=sr({name:"nuxt:head",enforce:"pre",setup(e){const t=function(e={}){const t=function(e={}){const t=e.domOptions?.render||fo;e.document=e.document||("undefined"!=typeof window?document:void 0);const r=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Rn({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[!!r&&JSON.parse(r),...e.init||[]]})}({domOptions:{render:mo((()=>fo(t)),(e=>setTimeout(e,0)))},...e});return t.install=function(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(Fn,e)}}.install}(t),t}(go);e.vueApp.use(t);{let r=!0;const n=async()=>{r=!1,await fo(t)};t.hooks.hook("dom:beforeRender",(e=>{e.shouldRender=!r})),e.hooks.hook("page:start",(()=>{r=!0})),e.hooks.hook("page:finish",(()=>{e.isHydrating||n()})),e.hooks.hook("app:error",n),e.hooks.hook("app:suspense:resolve",n)}}}),yo="undefined"!=typeof document;function _o(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const bo=Object.assign;function wo(e,t){const r={};for(const n in t){const o=t[n];r[n]=So(o)?o.map(e):e(o)}return r}const Eo=()=>{},So=Array.isArray,ko=/#/g,Po=/&/g,Ro=/\//g,Ao=/=/g,To=/\?/g,Io=/\
2+/g,Co=/%5B/g,Oo=/%5D/g,xo=/%5E/g,Lo=/%60/g,No=/%7B/g,Uo=/%7C/g,$o=/%7D/g,Do=/%20/g;function jo(e){return encodeURI(""+e).replace(Uo,"|").replace(Co,"[").replace(Oo,"]")}function Fo(e){return jo(e).replace(Io,"%2B").replace(Do,"+").replace(ko,"%23").replace(Po,"%26").replace(Lo,"`").replace(No,"{").replace($o,"}").replace(xo,"^")}function Mo(e){return null==e?"":function(e){return jo(e).replace(ko,"%23").replace(To,"%3F")}(e).replace(Ro,"%2F")}function Bo(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const zo=/\/$/;function qo(e,t,r="/"){let n,o={},a="",s="";const i=t.indexOf("#");let l=t.indexOf("?");return i<l&&i>=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,i>-1?i:t.length),o=e(a)),i>-1&&(n=n||t.slice(0,i),s=t.slice(i,t.length)),n=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),o=n[n.length-1];".."!==o&&"."!==o||n.push("");let a,s,i=r.length-1;for(a=0;a<n.length;a++)if(s=n[a],"."!==s){if(".."!==s)break;i>1&&i--}return r.slice(0,i).join("/")+"/"+n.slice(a).join("/")}(null!=n?n:t,r),{fullPath:n+(a&&"?")+a+s,path:n,query:o,hash:Bo(s)}}function Ho(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Vo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Wo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!Go(e[r],t[r]))return!1;return!0}function Go(e,t){return So(e)?Ko(e,t):So(t)?Ko(t,e):e===t}function Ko(e,t){return So(t)?e.length===t.length&&e.every(((e,r)=>e===t[r])):1===e.length&&e[0]===t}const Qo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Yo,Jo,Xo,Zo;(Jo=Yo||(Yo={})).pop="pop",Jo.push="push",(Zo=Xo||(Xo={})).back="back",Zo.forward="forward",Zo.unknown="";const ea=/^[^#]+#/;function ta(e,t){return e.replace(ea,"#")+t}const ra=()=>({left:window.scrollX,top:window.scrollY});function na(e,t){return(history.state?history.state.position-t:-1)+e}const oa=new Map;function aa(e,t){const{pathname:r,search:n,hash:o}=t,a=e.indexOf("#");if(a>-1){let t=o.includes(e.slice(a))?e.slice(a).length:1,r=o.slice(t);return"/"!==r[0]&&(r="/"+r),Ho(r,"")}return Ho(r,e)+n+o}function sa(e,t,r,n=!1,o=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:o?ra():null}}function ia(e){const t=function(e){const{history:t,location:r}=window,n={value:aa(e,r)},o={value:t.state};function a(n,a,s){const i=e.indexOf("#"),l=i>-1?(r.host&&document.querySelector("base")?e:e.slice(i))+n:location.protocol+"//"+location.host+e+n;try{t[s?"replaceState":"pushState"](a,"",l),o.value=a}catch(c){console.error(c),r[s?"replace":"assign"](l)}}return o.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:n,state:o,push:function(e,r){const s=bo({},o.value,t.state,{forward:e,scroll:ra()});a(s.current,s,!0),a(e,bo({},sa(n.value,e,null),{position:s.position+1},r),!1),n.value=e},replace:function(e,r){a(e,bo({},t.state,sa(o.value.back,e,o.value.forward,!0),r,{position:o.value.position}),!0),n.value=e}}}(e=function(e){if(!e)if(yo){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(zo,"")}(e)),r=function(e,t,r,n){let o=[],a=[],s=null;const i=({state:a})=>{const i=aa(e,location),l=r.value,c=t.value;let u=0;if(a){if(r.value=i,t.value=a,s&&s===l)return void(s=null);u=c?a.position-c.position:0}else n(i);o.forEach((e=>{e(r.value,l,{delta:u,type:Yo.pop,direction:u?u>0?Xo.forward:Xo.back:Xo.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(bo({},e.state,{scroll:ra()}),"")}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=r.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return a.push(t),t},destroy:function(){for(const e of a)e();a=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace),n=bo({location:"",base:e,go:function(e,t=!0){t||r.pauseListeners(),history.go(e)},createHref:ta.bind(null,e)},t,r);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function la(e){return"string"==typeof e||"symbol"==typeof e}const ca=Symbol("");var ua,da;function pa(e,t){return bo(new Error,{type:e,[ca]:!0},t)}function ha(e,t){return e instanceof Error&&ca in e&&(null==t||!!(e.type&t))}(da=ua||(ua={}))[da.aborted=4]="aborted",da[da.cancelled=8]="cancelled",da[da.duplicated=16]="duplicated";const fa="[^/]+?",ma={sensitive:!1,strict:!1,start:!0,end:!0},ga=/[.+*?^${}()[\]/\\]/g;function va(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function ya(e,t){let r=0;const n=e.score,o=t.score;for(;r<n.length&&r<o.length;){const e=va(n[r],o[r]);if(e)return e;r++}if(1===Math.abs(o.length-n.length)){if(_a(n))return 1;if(_a(o))return-1}return o.length-n.length}function _a(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ba={type:0,value:""},wa=/[a-zA-Z0-9_]/;function Ea(e,t,r){const n=function(e,t){const r=bo({},ma,t),n=[];let o=r.start?"^":"";const a=[];for(const l of e){const e=l.length?[]:[90];r.strict&&!l.length&&(o+="/");for(let t=0;t<l.length;t++){const n=l[t];let s=40+(r.sensitive?.25:0);if(0===n.type)t||(o+="/"),o+=n.value.replace(ga,"\\$&"),s+=40;else if(1===n.type){const{value:e,repeatable:r,optional:c,regexp:u}=n;a.push({name:e,repeatable:r,optional:c});const d=u||fa;if(d!==fa){s+=10;try{new RegExp(`(${d})`)}catch(i){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+i.message)}}let p=r?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(p=c&&l.length<2?`(?:/${p})`:"/"+p),c&&(p+="?"),o+=p,s+=20,c&&(s+=-8),r&&(s+=-20),".*"===d&&(s+=-50)}e.push(s)}n.push(e)}if(r.strict&&r.end){const e=n.length-1;n[e][n[e].length-1]+=.7000000000000001}r.strict||(o+="/?"),r.end?o+="$":r.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,r.sensitive?"":"i");return{re:s,score:n,keys:a,parse:function(e){const t=e.match(s),r={};if(!t)return null;for(let n=1;n<t.length;n++){const e=t[n]||"",o=a[n-1];r[o.name]=e&&o.repeatable?e.split("/"):e}return r},stringify:function(t){let r="",n=!1;for(const o of e){n&&r.endsWith("/")||(r+="/"),n=!1;for(const e of o)if(0===e.type)r+=e.value;else if(1===e.type){const{value:a,repeatable:s,optional:i}=e,l=a in t?t[a]:"";if(So(l)&&!s)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const c=So(l)?l.join("/"):l;if(!c){if(!i)throw new Error(`Missing required param "${a}"`);o.length<2&&(r.endsWith("/")?r=r.slice(0,-1):n=!0)}r+=c}}return r||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[ba]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${r})/"${c}": ${e}`)}let r=0,n=r;const o=[];let a;function s(){a&&o.push(a),a=[]}let i,l=0,c="",u="";function d(){c&&(0===r?a.push({type:0,value:c}):1===r||2===r||3===r?(a.length>1&&("*"===i||"+"===i)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:c,regexp:u,repeatable:"*"===i||"+"===i,optional:"*"===i||"?"===i})):t("Invalid state to consume buffer"),c="")}function p(){c+=i}for(;l<e.length;)if(i=e[l++],"\\"!==i||2===r)switch(r){case 0:"/"===i?(c&&d(),s()):":"===i?(d(),r=1):p();break;case 4:p(),r=n;break;case 1:"("===i?r=2:wa.test(i)?p():(d(),r=0,"*"!==i&&"?"!==i&&"+"!==i&&l--);break;case 2:")"===i?"\\"==u[u.length-1]?u=u.slice(0,-1)+i:r=3:u+=i;break;case 3:d(),r=0,"*"!==i&&"?"!==i&&"+"!==i&&l--,u="";break;default:t("Unknown state")}else n=r,r=4;return 2===r&&t(`Unfinished custom RegExp for param "${c}"`),d(),s(),o}(e.path),r),o=bo(n,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Sa(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function ka(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Pa(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Pa(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]="object"==typeof r?r[n]:r;return t}function Ra(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Aa(e){return e.reduce(((e,t)=>bo(e,t.meta)),{})}function Ta(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function Ia({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ca(e){const t={};if(""===e||"?"===e)return t;const r=("?"===e[0]?e.slice(1):e).split("&");for(let n=0;n<r.length;++n){const e=r[n].replace(Io," "),o=e.indexOf("="),a=Bo(o<0?e:e.slice(0,o)),s=o<0?null:Bo(e.slice(o+1));if(a in t){let e=t[a];So(e)||(e=t[a]=[e]),e.push(s)}else t[a]=s}return t}function Oa(e){let t="";for(let r in e){const n=e[r];(r=Fo(r).replace(Ao,"%3D"),null!=n)?(So(n)?n.map((e=>
2e&&Fo(e))):[n&&Fo(n)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+r,null!=e&&(t+="="+e))})):void 0!==n&&(t+=(t.length?"&":"")+r)}return t}function xa(e){const t={};for(const r in e){const n=e[r];void 0!==n&&(t[r]=So(n)?n.map((e=>null==e?null:""+e)):null==n?n:""+n)}return t}const La=Symbol(""),Na=Symbol(""),Ua=Symbol(""),$a=Symbol(""),Da=Symbol("");function ja(){let e=[];return{add:function(t){return e.push(t),()=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Fa(e){const t=s(La,{}).value;t&&function(e,t,r){const n=()=>{e[t].delete(r)};S(n),h(n),f((()=>{e[t].add(r)})),e[t].add(r)}(t,"leaveGuards",e)}function Ma(e,t,r,n,o,a=e=>e()){const s=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise(((i,l)=>{const c=e=>{var a;!1===e?l(pa(4,{from:r,to:t})):e instanceof Error?l(e):"string"==typeof(a=e)||a&&"object"==typeof a?l(pa(2,{from:t,to:e})):(s&&n.enterCallbacks[o]===s&&"function"==typeof e&&s.push(e),i())},u=a((()=>e.call(n&&n.instances[o],t,r,c)));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function Ba(e,t,r,n,o=e=>e()){const a=[];for(const s of e)for(const e in s.components){let i=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(_o(i)){const l=(i.__vccOpts||i)[t];l&&a.push(Ma(l,r,n,s,e,o))}else{let l=i();a.push((()=>l.then((a=>{if(!a)throw new Error(`Couldn't resolve component "${e}" at "${s.path}"`);const i=(l=a).__esModule||"Module"===l[Symbol.toStringTag]||l.default&&_o(l.default)?a.default:a;var l;s.mods[e]=a,s.components[e]=i;const c=(i.__vccOpts||i)[t];return c&&Ma(c,r,n,s,e,o)()}))))}}return a}function za(e){const t=s(Ua),r=s($a),n=k((()=>{const r=E(e.to);return t.resolve(r)})),o=k((()=>{const{matched:e}=n.value,{length:t}=e,o=e[t-1],a=r.matched;if(!o||!a.length)return-1;const s=a.findIndex(Vo.bind(null,o));if(s>-1)return s;const i=Ha(e[t-2]);return t>1&&Ha(o)===i&&a[a.length-1].path!==i?a.findIndex(Vo.bind(null,e[t-2])):s})),a=k((()=>o.value>-1&&function(e,t){for(const r in t){const n=t[r],o=e[r];if("string"==typeof n){if(n!==o)return!1}else if(!So(o)||o.length!==n.length||n.some(((e,t)=>e!==o[t])))return!1}return!0}(r.params,n.value.params))),i=k((()=>o.value>-1&&o.value===r.matched.length-1&&Wo(r.params,n.value.params)));return{route:n,href:k((()=>n.value.href)),isActive:a,isExactActive:i,navigate:function(r={}){if(function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(r)){const r=t[E(e.replace)?"replace":"push"](E(e.to)).catch(Eo);return e.viewTransition&&"undefined"!=typeof document&&"startViewTransition"in document&&document.startViewTransition((()=>r)),r}return Promise.resolve()}}}const qa=w({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:za,setup(e,{slots:r}){const n=t(za(e)),{options:o}=s(Ua),a=k((()=>({[Va(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Va(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const t=r.default&&(1===(o=r.default(n)).length?o[0]:o);var o;return e.custom?t:R("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},t)}}});function Ha(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Va=(e,t,r)=>null!=e?e:null!=t?t:r;function Wa(e,t){if(!e)return null;const r=e(t);return 1===r.length?r[0]:r}const Ga=w({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=s(Da),o=k((()=>e.route||n.value)),a=s(Na,0),i=k((()=>{let e=E(a);const{matched:t}=o.value;let r;for(;(r=t[e])&&!r.components;)e++;return e})),l=k((()=>o.value.matched[i.value]));P(Na,k((()=>i.value+1))),P(La,l),P(Da,o);const c=u();return g((()=>[c.value,l.value,e.name]),(([e,t,r],[n,o,a])=>{t&&(t.instances[r]=e,o&&o!==t&&e&&e===n&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&Vo(t,o)&&n||(t.enterCallbacks[r]||[]).forEac
2h((t=>t(e)))}),{flush:"post"}),()=>{const n=o.value,a=e.name,s=l.value,i=s&&s.components[a];if(!i)return Wa(r.default,{Component:i,route:n});const u=s.props[a],d=u?!0===u?n.params:"function"==typeof u?u(n):u:null,p=R(i,bo({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[a]=null)},ref:c}));return Wa(r.default,{Component:p,route:n})||p}}});function Ka(t){const r=function(e,t){const r=[],n=new Map;function o(e,r,n){const i=!n,l=ka(e);l.aliasOf=n&&n.record;const c=Ta(t,e),u=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(ka(bo({},l,{components:n?n.record.components:l.components,path:e,aliasOf:n?n.record:l})))}let d,p;for(const t of u){const{path:u}=t;if(r&&"/"!==u[0]){const e=r.record.path,n="/"===e[e.length-1]?"":"/";t.path=r.record.path+(u&&n+u)}if(d=Ea(t,r,c),n?n.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),i&&e.name&&!Ra(d)&&a(e.name)),Ia(d)&&s(d),l.children){const e=l.children;for(let t=0;t<e.length;t++)o(e[t],d,n&&n.children[t])}n=n||d}return p?()=>{a(p)}:Eo}function a(e){if(la(e)){const t=n.get(e);t&&(n.delete(e),r.splice(r.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=r.indexOf(e);t>-1&&(r.splice(t,1),e.record.name&&n.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function s(e){const t=function(e,t){let r=0,n=t.length;for(;r!==n;){const o=r+n>>1;ya(e,t[o])<0?n=o:r=o+1}const o=function(e){let t=e;for(;t=t.parent;)if(Ia(t)&&0===ya(e,t))return t}(e);return o&&(n=t.lastIndexOf(o,n-1)),n}(e,r);r.splice(t,0,e),e.record.name&&!Ra(e)&&n.set(e.record.name,e)}return t=Ta({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:function(e,t){let o,a,s,i={};if("name"in e&&e.name){if(o=n.get(e.name),!o)throw pa(1,{location:e});s=o.record.name,i=bo(Sa(t.params,o.keys.filter((e=>!e.optional)).concat(o.parent?o.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Sa(e.params,o.keys.map((e=>e.name)))),a=o.stringify(i)}else if(null!=e.path)a=e.path,o=r.find((e=>e.re.test(a))),o&&(i=o.parse(a),s=o.record.name);else{if(o=t.name?n.get(t.name):r.find((e=>e.re.test(t.path))),!o)throw pa(1,{location:e,currentLocation:t});s=o.record.name,i=bo({},t.params,e.params),a=o.stringify(i)}const l=[];let c=o;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:a,params:i,matched:l,meta:Aa(l)}},removeRoute:a,clearRoutes:function(){r.length=0,n.clear()},getRoutes:function(){return r},getRecordMatcher:function(e){return n.get(e)}}}(t.routes,t),n=t.parseQuery||Ca,o=t.stringifyQuery||Oa,a=t.history,s=ja(),i=ja(),l=ja(),c=y(Qo);let u=Qo;yo&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=wo.bind(null,(e=>""+e)),p=wo.bind(null,Mo),h=wo.bind(null,Bo);function f(e,t){if(t=bo({},t||c.value),"string"==typeof e){const o=qo(n,e,t.path),s=r.resolve({path:o.path},t),i=a.createHref(o.fullPath);return bo(o,s,{params:h(s.params),hash:Bo(o.hash),redirectedFrom:void 0,href:i})}let s;if(null!=e.path)s=bo({},e,{path:qo(n,e.path,t.path).path});else{const r=bo({},e.params);for(const e in r)null==r[e]&&delete r[e];s=bo({},e,{params:p(r)}),t.params=p(t.params)}const i=r.resolve(s,t),l=e.hash||"";i.params=d(h(i.params));const u=function(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}(o,bo({},e,{hash:(f=l,jo(f).replace(No,"{").replace($o,"}").replace(xo,"^")),path:i.path}));var f;const m=a.createHref(u);return bo({fullPath:u,hash:l,query:o===Oa?xa(e.query):e.query||{}},i,{redirectedFrom:void 0,href:m})}function m(e){return"string"==typeof e?qo(n,e,c.value.path):bo({},e)}function g(e,t){if(u!==e)return pa(8,{from:t,to:e})}function v(e){return b(e)}function _(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:r}=t;let n="function"==typeof r?r(e):r;return"string"==typeof n&&(n=n.includes("?")||n.includes("#")?n=m(n):{path:n},n.params={}),bo({query:e.query,hash:e.hash,params:null!=n.path?{}:e.params},n)}}function b(e,t){const r=u=f(e),n=c.value,a=e.state,s=e.force,i=!0===e.replace,l=_(r);if(l)return b(bo(m(l),{state:"object"==typeof l?bo({},a,l.state):a,force:s,replace:i}),t||r);const d=r;let p;return d.redirectedFrom=t,!s&&function(e,t,r){const n=t.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&Vo(t.matched[n],r.matched[o])&&Wo(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}(o,n,r)&&(p=pa(16,{to:d,from:n}),N(n,n,!0,!1)),(p?Promise.resolve(p):k(d,n)).catch((e=>ha(e)?ha(e,2)?e:L(e):x(e,d,n))).then((e=>{if(e){if(ha(e,2))return b(bo({replace:i},m(e.to),{state:"object"==typeof e.to?bo({},a,e.to.state):a,force:s}),t||d)}else e=R(d,n,!0,i,a);return P(d,n,e),e}))}function w(e,t){const r=g(e,t);return r?Promise.reject(r):Promise.resolve()}function S(e){const t=D.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function k(e,t){let r;const[n,o,a]=function(e,t){const r=[],n=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){const a=t.matched[s];a&&(e.matched.find((e=>
2Vo(e,a)))?n.push(a):r.push(a));const i=e.matched[s];i&&(t.matched.find((e=>Vo(e,i)))||o.push(i))}return[r,n,o]}(e,t);r=Ba(n.reverse(),"beforeRouteLeave",e,t);for(const s of n)s.leaveGuards.forEach((n=>{r.push(Ma(n,e,t))}));const l=w.bind(null,e,t);return r.push(l),F(r).then((()=>{r=[];for(const n of s.list())r.push(Ma(n,e,t));return r.push(l),F(r)})).then((()=>{r=Ba(o,"beforeRouteUpdate",e,t);for(const n of o)n.updateGuards.forEach((n=>{r.push(Ma(n,e,t))}));return r.push(l),F(r)})).then((()=>{r=[];for(const n of a)if(n.beforeEnter)if(So(n.beforeEnter))for(const o of n.beforeEnter)r.push(Ma(o,e,t));else r.push(Ma(n.beforeEnter,e,t));return r.push(l),F(r)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),r=Ba(a,"beforeRouteEnter",e,t,S),r.push(l),F(r)))).then((()=>{r=[];for(const n of i.list())r.push(Ma(n,e,t));return r.push(l),F(r)})).catch((e=>ha(e,8)?e:Promise.reject(e)))}function P(e,t,r){l.list().forEach((n=>S((()=>n(e,t,r)))))}function R(e,t,r,n,o){const s=g(e,t);if(s)return s;const i=t===Qo,l=yo?history.state:{};r&&(n||i?a.replace(e.fullPath,bo({scroll:i&&l&&l.scroll},o)):a.push(e.fullPath,o)),c.value=e,N(e,t,r,i),L()}let T;let I,C=ja(),O=ja();function x(e,t,r){L(e);const n=O.list();return n.length?n.forEach((n=>n(e,t,r))):console.error(e),Promise.reject(e)}function L(e){return I||(I=!e,T||(T=a.listen(((e,t,r)=>{if(!j.listening)return;const n=f(e),o=_(n);if(o)return void b(bo(o,{replace:!0,force:!0}),n).catch(Eo);u=n;const s=c.value;var i,l;yo&&(i=na(s.fullPath,r.delta),l=ra(),oa.set(i,l)),k(n,s).catch((e=>ha(e,12)?e:ha(e,2)?(b(bo(m(e.to),{force:!0}),n).then((e=>{ha(e,20)&&!r.delta&&r.type===Yo.pop&&a.go(-1,!1)})).catch(Eo),Promise.reject()):(r.delta&&a.go(-r.delta,!1),x(e,n,s)))).then((e=>{(e=e||R(n,s,!1))&&(r.delta&&!ha(e,8)?a.go(-r.delta,!1):r.type===Yo.pop&&ha(e,20)&&a.go(-1,!1)),P(n,s,e)})).catch(Eo)}))),C.list().forEach((([t,r])=>e?r(e):t())),C.reset()),e}function N(e,r,n,o){const{scrollBehavior:a}=t;if(!yo||!a)return Promise.resolve();const s=!n&&function(e){const t=oa.get(e);return oa.delete(e),t}(na(e.fullPath,0))||(o||!n)&&history.state&&history.state.scroll||null;return A().then((()=>a(e,r,s))).then((e=>e&&function(e){let t;if("el"in e){const r=e.el,n="string"==typeof r&&r.startsWith("#"),o="string"==typeof r?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=function(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((t=>x(t,e,r)))}const U=e=>a.go(e);let $;const D=new Set,j={currentRoute:c,listening:!0,addRoute:function(e,t){let n,o;return la(e)?(n=r.getRecordMatcher(e),o=t):o=e,r.addRoute(o,n)},removeRoute:function(e){const t=r.getRecordMatcher(e);t&&r.removeRoute(t)},clearRoutes:r.clearRoutes,hasRoute:function(e){return!!r.getRecordMatcher(e)},getRoutes:function(){return r.getRoutes().map((e=>e.record))},resolve:f,options:t,push:v,replace:function(e){return v(bo(m(e),{replace:!0}))},go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:s.add,beforeResolve:i.add,afterEach:l.add,onError:O.add,isReady:function(){return I&&c.value!==Qo?Promise.resolve():new Promise(((e,t)=>{C.add([e,t])}))},install(t){t.component("RouterLink",qa),t.component("RouterView",Ga),t.config.globalProperties.$router=this,Object.defineProperty(t.config.globalProperties,"$route",{enumerable:!0,get:()=>E(c)}),yo&&!$&&c.value===Qo&&($=!0,v(a.location).catch((e=>{})));const r={};for(const e in Qo)Object.defineProperty(r,e,{get:()=>c.value[e],enumerable:!0});t.provide(Ua,this),t.provide($a,e(r)),t.provide(Da,c);const n=t.unmount;D.add(t),t.unmount=function(){D.delete(t),D.size<1&&(u=Qo,T&&T(),T=null,c.value=Qo,$=!1,I=!1),n()}}};function F(e){return e.reduce(((e,t)=>e.then((()=>S(t)))),Promise.resolve())}return j}function Qa(){return s(Ua)}function Ya(e){return s($a)}const Ja=/(:\w+)\([^)]+\)/g,Xa=/(:\w+)[?+*]/g,Za=/:\w+/g,es=(e,t)=>{const r=e.route.matched.find((t=>t.components?.default===e.Component.type)),n=t??r?.meta.key??(r&&(o=e.route,r.path.replace(Ja,"$1").replace(Xa,"$1").replace(Za,(e=>o.params[e.slice(1)]?.toString()||""))));var o;return"function"==typeof n?n(e.route):n};function ts(e){return Array.isArray(e)?e:[e]}const rs={Home:"index",Nonprofit:"nonprofit",ErrorPage:"error",NotFound:"not-found",Profile:"profile",Login:"login",TrialOver:"tri
2al-over",Feed:"feed",Search:"search",LearningCenter:"learning-center",LearnAboutIssues:"learn-about-issues",GivingGoals:"giving-goals",EditPlan:"giving-goals-edit-plan",GivingGoalsResults:"giving-goals-results",MeasureImpact:"measure-impact",Article:"article",PartnerPost:"partner-post",Quiz:"quiz",Welcome:"welcome",Impact:"impact",EmailVerified:"email-verified",VerifyEmail:"verify-email",AgentRuns:"agent-runs",CompassExplorerOriginal:"compass-explorer-original",NonprofitExplorer:"nonprofit-explorer"},ns={BASE:"/pro",DASHBOARD:"/pro/dashboard",CONTACTS:"/pro/contacts",CONTACT_CREATE:"/pro/contacts/create",AGENT_RUNS:"/agent-runs",NONPROFIT_LISTS:"/nonprofit-lists",COMPASS_EXPLORER_ORIGINAL:"/compass-explorer-original",NONPROFIT_EXPLORER:"/nonprofit-explorer",SUBSCRIPTION:"/subscription",PROFILE:"/pro/profile"},os={name:rs.Feed,layout:"gg",key:"feed"},as={name:rs.Home,layout:"gg"},ss={name:rs.Login,layout:"gg"},is={name:"impact",layout:"gg",key:"impact",middleware:()=>{if(!dr().public.impactEnabled)return Cr("/",{replace:!0})}},ls={name:rs.Search,layout:"gg"},cs={name:rs.Profile,layout:"gg"},us={name:rs.Welcome,layout:"gg"},ds={layout:"gg",middleware:()=>Cr(ns.CONTACTS)},ps={name:rs.VerifyEmail,layout:"gg"},hs={name:rs.EmailVerified,layout:"gg"},fs={name:rs.MeasureImpact,layout:"gg"},ms={name:rs.LearningCenter,layout:"gg"},gs={name:"nonprofit-ein-feed",layout:"gg",middleware:e=>{if(!dr().public.nonprofitFeedEnabled){const t=e.params.ein;return Cr(`/nonprofit/${t}`,{replace:!0})}}},vs={name:rs.Nonprofit,layout:"gg"},ys={title:"Account Required",name:rs.TrialOver,layout:"gg"},_s={name:rs.EditPlan,layout:"gg"},bs={name:rs.Article,layout:"gg"},ws={name:rs.GivingGoals,layout:"gg"},Es={name:rs.GivingGoalsResults,layout:"gg"},Ss={layout:"gg"},ks={name:rs.PartnerPost,layout:"gg"},Ps=null,Rs={},As=[{name:os?.name??"feed",path:"/feed",meta:os||{},component:()=>Gn((()=>import("./CPLTPgFg.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]),import.meta.url)},{name:"quiz",path:"/quiz",meta:{layout:"gg"}||{},component:()=>Gn((()=>import("./F1Bs5HSm.js")),__vite__mapDeps([40,3,2,12,41,36,9,42,43,44,27,29,30,19,18,20,1,45,39]),import.meta.url)},{name:as?.name??"index",path:"/",meta:as||{},component:()=>Gn((()=>import("./BKc16aRh.js")),__vite__mapDeps([46,1,2,47,3,48,49,50,26,27,28,20,51,18,6,4,52,34,36,9,53,24,54,17,19,55,56,7,8,57,42,58,59,30,23,25,21,22,60,61,62,63,64,65,66,67,68,69,16,29,31,70,32,71,72,73,37,74,38,39]),import.meta.url)},{name:ss?.name??"login",path:"/login",meta:{...ss||{},middleware:"trial-only"},component:()=>Gn((()=>import("./DDZsT4wO.js")),__vite__mapDeps([75,12,2,38,39,3]),import.meta.url)},{name:"impact",path:"/impact",meta:is||{},component:()=>Gn((()=>import("./BqbX445C.js")),__vite__mapDeps([76,1,2,3,77,4,10,11,12,78,6,7,8,9,79,33,34,35,31,18,36,50,26,27,28,20,70,13,37,39]),import.meta.url)},{name:ls?.name??"search",path:"/search",meta:ls||{},component:()=>Gn((()=>import("./CkQaCwKr.js")),__vite__mapDeps([80,81,2,4,3,82,10,11,12,1,6,7,8,9,83,53,26,27,28,20,24,36,23,17,18,19,58,45,14,15,16,21,22,25,29,30,31,32,84,59,50,85,62,65,66,37,34,69,86,49,87,38,39]),import.meta.url)},{name:cs?.name??"profile",path:"/profile",meta:{...cs||{},middleware:"auth-guard"},component:()=>Gn((()=>import("./Dd0QI89j.js")),__vite__mapDeps([88,6,2,12,89,62,9,90,17,18,19,20,16,21,22,23,24,25,26,27,28,29,30,31,54,3,86,56,87,45,35,69,91,53,36,42,92,15,32,38,39]),import.meta.url)},{name:us?.name??"welcome",path:"/welcome",meta:{...us||{},middleware:"auth-guard"},component:()=>Gn((()=>import("./CLDUNOr2.js")),__vite__mapDeps([93,12,2,4,3,55,50,26,27,28,20,56,7,8,9,90,6,86,91,53,24,36,23,42,21,18,22,16,17,19,25,29,30,31,39,38,45,35]),import.meta.url)},{name:"pro",path:"/pro",meta:ds||{},component:()=>Gn((()=>import("./CL4PGyg5.js")),__vite__mapDeps([94,45,2,3]),import.meta.url)},{name:"agent-runs",path:"/agent-runs",meta:{name:"agent-runs",layout:"gg",key:"agent-runs"}||{},component:()=>Gn((()=>import("./Bbn7_w1Q.js")),__vite__mapDeps([95,6,2,4,3,96,53,26,27,28,20,24,36,9,31,18,12,97,70,33,34,35,39,69]),import.meta.url)},{name:"ntee-finder",path:"/ntee-finder",meta:{layout:"gg"}||{},component:()=>Gn((()=>import("./Bw0jBuah.js")),__vite__mapDeps([98,12,2,99,34,39,3]),import.meta.url)},{name:"manage-seats",path:"/manage-seats",meta:{...{layout:"gg"}||{},middleware:"enterprise-admin"},component:()=>Gn((()=>
2import("./IaxlISSu.js")),__vite__mapDeps([100,12,2,39,50,26,27,28,20,43,44,31,18,9,17,19,59,30,68,69,16,21,22,23,24,25,29,70,32,53,36,54,42,3]),import.meta.url)},{name:"subscription",path:"/subscription",meta:{layout:"gg"}||{},component:()=>Gn((()=>import("./Dk5iIYKP.js")),__vite__mapDeps([101,36,2,9,31,18,23,34,45,35,102,39,43,44,3]),import.meta.url)},{name:ps?.name??"verify-email",path:"/verify-email",meta:{...ps||{},middleware:"trial-only"},component:()=>Gn((()=>import("./DvSKfaeR.js")),__vite__mapDeps([103,2,38,39,23,3]),import.meta.url)},{name:"pro-slug",path:"/pro/:slug(.*)*",meta:{layout:"gg"}||{},component:()=>Gn((()=>import("./CJCHSmi8.js")),__vite__mapDeps([104,2,3]),import.meta.url)},{name:"pro-dashboard",path:"/pro/dashboard",meta:{...{layout:"gg"}||{},middleware:["pro-subscription"]},component:()=>Gn((()=>import("./Bxqj2N8A.js")),__vite__mapDeps([105,1,2,43,44,106,66,8,51,62,63,4,3,107,84,72,39,45]),import.meta.url)},{name:"choropleth-lab",path:"/choropleth-lab",meta:{...{name:"choropleth-lab",layout:"gg"}||{},middleware:["pro-subscription"]},component:()=>Gn((()=>import("./Rj0wKSd9.js")),__vite__mapDeps([108,2,106,66,8,51,62,63,4,3,39,72]),import.meta.url)},{name:hs?.name??"email-verified",path:"/email-verified",meta:{...hs||{},middleware:"trial-only"},component:()=>Gn((()=>import("./C4OOqbEi.js")),__vite__mapDeps([109,38,39,2,3]),import.meta.url)},{name:"gc-admin-costs",path:"/gc-admin/costs",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./CoYRpWwb.js")),__vite__mapDeps([110,2,111,112,12,113,39,17,18,19,20,16,21,22,9,23,24,25,26,27,28,29,30,31,50,70,53,36,3]),import.meta.url)},{name:"gc-admin",path:"/gc-admin",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./7wm47-Ns.js")),__vite__mapDeps([114,6,2,12,39,3]),import.meta.url)},{name:"gc-admin-stats",path:"/gc-admin/stats",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./frrIrHSE.js")),__vite__mapDeps([115,12,2,11,39,31,18,9,50,26,27,28,20,68,69,16,17,19,21,22,23,24,25,29,30,70,32,3]),import.meta.url)},{name:"gc-admin-users",path:"/gc-admin/users",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./DvKD5O0s.js")),__vite__mapDeps([116,6,2,12,39,117,17,18,19,20,16,21,22,9,23,24,25,26,27,28,29,30,31,50,68,69,70,32,53,36,42,3]),import.meta.url)},{name:fs?.name??"measure-impact",path:"/measure-impact",meta:fs||{},component:()=>Gn((()=>import("./iq7CZtL3.js")),__vite__mapDeps([118,12,2,3,53,26,27,28,20,24,36,9,45,17,18,19,16,21,22,23,25,29,30,31,119,120,6,38,39]),import.meta.url)},{name:ms?.name??"learning-center",path:"/learning-center",meta:ms||{},component:()=>Gn((()=>import("./BI0eUaZj.js")),__vite__mapDeps([121,81,2,4,3,82,10,11,12,1,6,7,8,9,83,53,26,27,28,20,24,36,23,17,18,19,58,45,14,15,16,21,22,25,29,30,31,32,84,59,50,85,62,65,66,37,34,69,86,49,87,38,39]),import.meta.url)},{name:vs?.name??void 0,path:"/nonprofit/:ein()",meta:{...vs||{},middleware:["ein-validator"]},component:()=>Gn((()=>import("./BNTjDprf.js")),__vite__mapDeps([122,1,2,4,3,123,12,36,9,49,50,26,27,28,20,7,8,84,96,6,53,24,31,18,43,44,42,60,34,61,124,25,74,90,87,22,82,65,38,125,39,35]),import.meta.url),children:[{name:"nonprofit-ein-feed",path:"feed",component:()=>Gn((()=>import("./C2_s8mXy.js")),__vite__mapDeps([126,2,3]),import.meta.url)},{name:"nonprofit-ein-feed",path:"",meta:gs||{},component:()=>Gn((()=>import("./fMOAOA9S.js")),__vite__mapDeps([127,1,2,6,4,3,5,7,8,9,78,77,79,33,34,35,31,18,36,123,86,39]),import.meta.url)},{name:"video",path:"video",meta:{name:"video"}||{},component:()=>Gn((()=>import("./-9R3N--a.js")),__vite__mapDeps([128,2,123,39,3]),import.meta.url)},{name:"grants",path:"grants",meta:{name:"grants"}||{},component:()=>Gn((()=>import("./D5QmNA4_.js")),__vite__mapDeps([129,6,2,1,90,37,34,130,62,65,66,67,131,16,17,18,19,20,21,22,9,23,24,25,26,27,28,29,30,31,70,39,59,50,69,35,3]),import.meta.url)},{name:void 0,path:"impact",component:()=>Gn((()=>import("./BdhDLeFK.js")),__vite__mapDeps([132,77,133,79,33,34,2,35,31,18,9,36,39,125,1,3]),import.meta.url),children:[{name:"nonprofit-ein-impact",path:"",component:()=>Gn((()=>import("./DeuOA3Un.js")),__vite__mapDeps([134,51,2,3]),import.meta.url)},{name:"nonprofit-ein-impact-metrics",path:"metrics",component:()=>Gn((()=>import("./C8v8jA2Z.js")),__vite__mapDeps([135,6,2,77,136,70,35,50,26,27,28,20,3]),import.meta.url)},{name:"nonprofit-ein-impact-stories",path:"stories",component:()=>Gn((()=>import("./-nrQocML.js")),__vite__mapDeps([137,6,2,77,4,3,78,7,8,9,79,33,34,35,31,18,36]),import.meta.url)}]},{name:"people",path:"people",meta:{name:"people"}||{},component:()=>Gn((()=>import("./DzC0yBZu.js")),__vite__mapDeps([138,90,2,131,16,17,18,19,20,21,22,9,23,24,25,26,27,28,29,30,31,37,34,139,39,35,3]),import.meta.url)},{name:"details",path:"details",meta:{name:"details"}||{},component:()=>Gn((()=>import("./DeLbb5iH.js")),__vite__mapDeps([140,2,90,21,18,22,9,23,31,50,26,27,28,20,68,69,16,17,19,24,25,29,30,70,32,107,99,77,133,79,33,34,35,36,125,1,39,3]),import.meta.url)},{name:"filings",path:"filings",meta:{name:"filings"}||{},component:()=>Gn((()=>import("./DyZmujWO.js")),__vite__mapDeps([141,90,2,37,34,39,35,3]),import.meta.url)},{name:"funding",path:"funding",meta:{name:"funding"}||{},component:()=>Gn((()=>import("./Bf3RWv28.js")),__vite__mapDeps([142,6,2,1,90,37,34,130,62,65,66,67,131,16,17,18,19,20,21,22,9,23,24,25,26,27,28,29,30,31,39,59,70,50,69,35,3]),import.meta.url)},{name:"programs",path:"programs",meta:{name:"programs"}||{},component:()=>Gn((()=>import("./B28CJ9ir.js")),__vite__mapDeps([143,90,2,131,16,17,18,19,20,21,22,9,23,24,25,26,27,28,29,30,31,37,34,139,39,70,35,3]),import.meta.url)},{name:"financials",path:"financials",meta:{name:"financials"}||{},component:()=>Gn((()=>import("./PAhKTk3v.js")),__vite__mapDeps([144,6,2,1,90,31,18,9,50,26,27,28,20,131,16,17,19,21,22,23,24,25,29,30,139,39,70,3]),import.meta.url)},{name:"related-content",path:"related-content",meta:{name:"related-content"}||{},component:()=>Gn((()=>import("./BY4aTLza.js")),__vite__mapDeps([145,1,2,4,3,146,6,86,49,50,26,27,28,20,45,35,39]),import.meta.url)},{name:"related-nonprofits",path:"related-nonprofits",meta:{name:"related-nonprofits"}||{},component:()=>Gn((()=>import("./DQfBBX6S.js")),__vite__mapDeps([147,1,2,4,3,83,53,26,27,28,20,24,36,9,23,17,18,19,58,45,14,15,16,21,22,25,29,30,31,32,84,59,50,85,62,65,66,6,7,8,35,39]),import.meta.url)}]},{name:"oauth-authorize",path:"/oauth/authorize",meta:{layout:!1}||{},component:()=>Gn((()=>import("./C01caS9Q.js")),__vite__mapDeps([148,6,2,149,61,39,125,1,3]),import.meta.url)},{name:"onboarding-done",path:"/onboarding/done",meta:{...{layout:"onboarding",title:"Start your journey"}||{},middleware:"onboarding-client"},component:()=>Gn((()=>import("./B6TqHyTQ.js")),__vite__mapDeps([150,151,2,36,9,45,152,3]),import.meta.url)},{name:ys?.name??"account-required",path:"/account-required",meta:{...ys||{},middleware:"trial-only"},component:()=>Gn((()=>import("./CYxvV5q5.js")),__vite__mapDeps([153,1,2,71,34,38,39,3]),import.meta.url)},{name:"chat-sessionId",path:"/chat/:sessionId()",meta:{layout:"gg"}||{},component:()=>Gn((()=>import("./C0SUlzFX.js")),__vite__mapDeps([154,1,2,47,3,48,49,50,26,27,28,20,51,18,6,4,52,34,36,9,53,24,54,17,19,55,56,7,8,57,42,58,59,30,23,25,21,22,60,61,62,63,64,65,66,67,68,69,16,29,31,70,32,71,72,73,37,39]),import.meta.url)},{name:"gc-admin-tenants",path:"/gc-admin/tenants",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./OlgJS9DQ.js")),__vite__mapDeps([155,12,2,39,112,50,26,27,28,20,68,69,16,17,18,19,21,22,9,23,24,25,29,30,31,70,32,53,36,43,44,42,3]),import.meta.url)},{name:"onboarding-index",path:"/onboarding",meta:{...{layout:"onboarding",name:"onboarding-index"}||{},middleware:"onboarding-client"},component:()=>Gn((()=>import("./D8jj5w39.js")),__vite__mapDeps([156,2]),import.meta.url)},{name:"onboarding-intro",path:"/onboarding/intro",meta:{...{name:"onboarding-intro",layout:"onboarding",title:"Intro"}||{},middleware:"onboarding-client"},component:()=>Gn((()=>import("./BCPRGXoe.js")),__vite__mapDeps([157,151,2,3]),import.meta.url)},{name:_s?.name??"giving-goals-edit",path:"/giving-goals/edit",meta:_s||{},component:()=>Gn((()=>import("./xddLVQS3.js")),__vite__mapDeps([158,3,2,119,36,9,45,53,26,27,28,20,24,59,18,19,30,50,43,44,159,42,21,22,23,29,38,39]),import.meta.url)},{name:"pro-profile",path:"/pro/profile",meta:{...{layout:"gg"}||{},middleware:["pro-subscription"]},component:()=>Gn((()=>import("./DRJljPtT.js")),__vite__mapDeps([160,2,3,161,17,18,19,20,58,36,9,45]),import.meta.url)},{name:bs?.name??"article-nameOrId",path:"/article/:nameOrId()",meta:bs||{},component:()=>Gn((()=>import("./CihAB7PT.js")),__vite__mapDeps([162,1,2,4,3,163,86,48,49,50,26,27,28,20,45,74,35,146,6,65,38,39,125,23]),import.meta.url)},{name:ws?.name??"giving-goals",path:"/giving-goals",meta:ws||{},component:()=>Gn((()=>import("./CXNzRafk.js")),__vite__mapDeps([164,3,2,12,36,9,45,87,20,26,27,28,22,31,18,6,73,74,21,23,53,24,1,58,19,16,17,25,29,30,119,39,38]),import.meta.url)},{name:"lists-shareToken",path:"/lists/:shareToken()",meta:{layout:"gg"}||{},component:()=>Gn((()=>import("./CuraZjzp.js")),__vite__mapDeps([165,1,2,52,166,6,7,8,9,4,3,85,62,65,66,74,12,124,60,34,53,26,27,28,20,24,61,25,125,39]),import.meta.url)},{name:"pro-contacts",path:"/pro/contacts",meta:{...{layout:"gg"}||{},middleware:["pro-subscription"]},component:()=>Gn((()=>import("./D9CzcwPI.js")),__vite__mapDeps([167,1,2,62,3,168,73,68,69,16,17,18,19,20,21,22,9,23,24,25,26,27,28,29,30,31,70,32,43,44,45]),import.meta.url)},{name:"gc-admin-agent-runs",path:"/gc-admin/agent-runs",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./DYyjcQXc.js")),__vite__mapDeps([169,2,4,3,96,6,53,26,27,28,20,24,36,9,31,18,12,97,70,39,50,16,17,19,21,22,23,25,29,30,69]),import.meta.url)},{name:"pro-contacts-create",path:"/pro/contacts/create",meta:{...{layout:"gg"}||{},middleware:["pro-subscription"]},component:()=>Gn((()=>import("./D6iQwa9t.js")),__vite__mapDeps([170,171,2,168,3,161,17,18,19,20,172,62,50,26,27,28,7,8,9,13,45,35,15,16,21,22,23,24,25,29,30,31,32,36,107,87,69,58,54]),import.meta.url)},{name:Es?.name??"giving-goals-results",path:"/giving-goals/results",meta:{...Es||{},middleware:"benchmark-check"},component:()=>Gn((()=>import("./CDDs9yXi.js")),__vite__mapDeps([173,12,2,3,120,6,36,9,45,152,21,18,22,23,50,26,27,28,20,38,39]),import.meta.url)},{name:"nonprofit-lists-id",path:"/nonprofit-lists/:id()",meta:{layout:"gg"}||{},component:()=>Gn((()=>import("./BbdqXf5b.js")),__vite__mapDeps([174,6,2,1,3,57,52,53,26,27,28,20,24,36,9,42,58,19,18,17,54,59,30,23,166,7,8,4,85,62,65,66,74,12,124,60,34,61,25,39]),import.meta.url)},{name:"trial-preview-code",path:"/trial/preview/:code()",meta:{layout:"gg"}||{},component:()=>Gn((()=>import("./DjkEkYxJ.js")),__vite__mapDeps([175,12,2,39,3]),import.meta.url)},{name:"gc-admin-trial-quotas",path:"/gc-admin/trial-quotas",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./C3cEnwdj.js")),__vite__mapDeps([176,2,12,39,50,26,27,28,20,70,31,18,9,17,19,43,44,53,24,36,23,42,3]),import.meta.url)},{name:"nonprofit-lists",path:"/nonprofit-lists",meta:{...{layout:"gg"}||{},middleware:["pro-subscription"]},component:()=>Gn((()=>import("./3GDLC346.js")),__vite__mapDeps([177,6,2,1,3,57,52,53,26,27,28,20,24,36,9,42,58,19,18,17,54,59,30,23,12,39,25,21,22,69]),import.meta.url)},{name:"onboarding-care-about",path:"/onboarding/care-about",meta:{...{layout:"onboarding",title:"What do you care about?"}||{},middleware:"onboarding-client"},component:()=>Gn((()=>import("./DO2e5s_r.js")),__vite__mapDeps([178,151,2,1,92,15,16,17,18,19,20,21,22,9,23,24,25,26,27,28,29,30,31,32,3]),import.meta.url)},{name:"gc-admin-explorer-runs",path:"/gc-admin/explorer-runs",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./COh53049.js")),__vite__mapDeps([179,2,111,12,113,39,50,26,27,28,20,31,18,9,17,19,16,21,22,23,24,25,29,30,70,69,53,36,3]),import.meta.url)},{name:"gc-admin-invalidations",path:"/gc-admin/invalidations",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./b76n-Xio.js")),__vite__mapDeps([180,2,12,6,7,8,9,4,3,70,31,18,53,26,27,28,20,24,36,54,17,19,39,50,69]),import.meta.url)},{name:"enterprise-join-token",path:"/enterprise/join/:token()",meta:{layout:"gg"}||{},component:()=>Gn((()=>import("./7RFqRXo2.js")),__vite__mapDeps([181,12,2,39,43,44,3]),import.meta.url)},{name:"gc-admin-impact-reports",path:"/gc-admin/impact-reports",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./B_slr5a5.js")),__vite__mapDeps([182,6,2,4,3,77,79,12,39,50,26,27,28,20,31,18,9,17,19,16,21,22,23,24,25,29,30,70,69]),import.meta.url)},{name:"gc-admin-preview-access",path:"/gc-admin/preview-access",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./D-TvH3NP.js")),__vite__mapDeps([183,12,2,39,87,20,26,27,28,22,31,18,9,50,68,69,16,17,19,21,23,24,25,29,30,70,32,59,53,36,43,44,42,54,3]),import.meta.url)},{name:"onboarding-giving-style",path:"/onboarding/giving-style",meta:{...{layout:"onboarding",title:"Giving Style"}||{},middleware:"onboarding-client"},component:()=>Gn((()=>import("./1xULldzl.js")),__vite__mapDeps([184,151,2,41,36,9,42,43,44,27,29,30,19,18,20,1,3,45]),import.meta.url)},{name:"pro-contacts-id",path:"/pro/contacts/:id()",meta:{...{layout:"gg"}||{},middleware:["pro-subscription"]},component:()=>Gn((()=>import("./BXgKeYt4.js")),__vite__mapDeps([185,171,2,168,3,161,17,18,19,20,172,62,50,26,27,28,7,8,9,13,45,35,15,16,21,22,23,24,25,29,30,31,32,36,107,87,69,58,54]),import.meta.url)},{name:"gc-admin-impact-feedback",path:"/gc-admin/impact-feedback",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./Dzkf-ANV.js")),__vite__mapDeps([186,6,2,136,12,39,31,18,9,16,17,19,20,21,22,23,24,25,26,27,28,29,30,70,69,3]),import.meta.url)},{name:"gc-admin-mcp-connections",path:"/gc-admin/mcp-connections",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./DLukYuGf.js")),__vite__mapDeps([187,2,12,113,39,50,26,27,28,20,31,18,9,17,19,16,21,22,23,24,25,29,30,70,69,53,36,3]),import.meta.url)},{name:"pro-contacts-id-report",path:"/pro/contacts/:id()/report",meta:{...{layout:"gg"}||{},middleware:["pro-subscription"]},component:()=>Gn((()=>import("./DBDJpO4v.js")),__vite__mapDeps([188,62,168,3,2,172,7,8,9,45,70,21,18,22,23]),import.meta.url)},{name:Ss?.name,path:"/compass-explorer-original",meta:Ss||{},component:()=>Gn((()=>import("./DMPpXy1V.js")),__vite__mapDeps([189,6,2,1,3,190,72,34,35,31,18,9,39,25,26,27,28,20,24,50,43,44,53,21,22,23]),import.meta.url),children:[{name:"compass-explorer-original",path:"",component:()=>Gn((()=>import("./Bxpa4PBZ.js")),__vite__mapDeps([191,190,3,2,72]),import.meta.url)}
2,{name:"compass-explorer-original-runId",path:":runId()",component:()=>Gn((()=>import("./DTqlE5EW.js")),__vite__mapDeps([192,1,2,3,190,72,6,62,7,8,9,63,51,64,65,66,67,43,44,68,69,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,70,32,53,50,36,42]),import.meta.url)}]},{name:"gc-admin-explorer-samples",path:"/gc-admin/explorer-samples",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./D-D7mO2f.js")),__vite__mapDeps([193,12,2,39,50,26,27,28,20,68,69,16,17,18,19,21,22,9,23,24,25,29,30,31,70,32,53,36,43,44,54,42,3]),import.meta.url)},{name:ks?.name??"partners-partner-name",path:"/partners/:partner()/:name()",meta:ks||{},component:()=>Gn((()=>import("./BIADEUDf.js")),__vite__mapDeps([194,4,3,2,163,86,48,1,49,50,26,27,28,20,45,74,35,146,6,38,39,125,23]),import.meta.url)},{name:"gc-admin-enterprise-orgs-id",path:"/gc-admin/enterprise-orgs/:id()",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./DvdV2CEL.js")),__vite__mapDeps([195,6,2,12,39,117,23,43,44,17,18,19,20,59,30,31,9,50,26,27,28,68,69,16,21,22,24,25,29,70,32,3]),import.meta.url)},{name:"gc-admin-enterprise-orgs",path:"/gc-admin/enterprise-orgs",meta:{...{layout:"gg"}||{},middleware:"gc-admin"},component:()=>Gn((()=>import("./B8XLYBZ4.js")),__vite__mapDeps([196,6,2,12,39,117,50,26,27,28,20,68,69,16,17,18,19,21,22,9,23,24,25,29,30,31,70,32,53,36,43,44,54,42,3]),import.meta.url)},{name:Ps?.name,path:"/compass-explorer",component:Rs},{name:Ps?.name,path:"/compass-explorer/:pathMatch(.*)",component:Rs},{name:Ps?.name,path:"/find-good-causes",component:Rs}],Ts=(e,t)=>({default:()=>e?R(I,!0===e?{}:e,t):t.default?.()}),Is=/(:\w+)\([^)]+\)/g,Cs=/(:\w+)[?+*]/g,Os=/:\w+/g;function xs(e){const t=e?.meta.key??e.path.replace(Is,"$1").replace(Cs,"$1").replace(Os,(t=>e.params[t.slice(1)]?.toString()||""));return"function"==typeof t?t(e):t}const Ls={scrollBehavior(e,t,r){const n=ur(),o=Ar().options?.scrollBehaviorType??"auto";if(e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:!!e.hash&&{el:e.hash,top:Ns(e.hash),behavior:o};if(!1===("function"==typeof e.meta.scrollToTop?e.meta.scrollToTop(e,t):e.meta.scrollToTop))return!1;const a=n._runningTransition?"page:transition:finish":"page:loading:end";return new Promise((s=>{t!==Qo?n.hooks.hookOnce(a,(()=>{requestAnimationFrame((()=>s(Us(e,t,r,o))))})):s(Us(e,t,r,o))}))}};function Ns(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function Us(e,t,r,n){if(r)return r;const o=function(e,t){return e!==t&&t!==Qo&&(xs(e)!==xs(t)||!e.matched.every(((e,r)=>e.components&&e.components.default===t.matched[r]?.components?.default)))}(e,t);return e.hash?{el:e.hash,top:Ns(e.hash),behavior:o?n:"instant"}:{left:0,top:0}}const $s=Ls.hashMode??!1,Ds={hashMode:!1,scrollBehaviorType:"auto",...Ls,scrollBehavior:(e,t,r)=>(!e.path.includes("/nonprofit/")||!t.path.includes("/nonprofit/")||e.params.ein!==t.params.ein)&&(r||{top:0})},js=Ir((async(e,t)=>{let r,n;if(!e.meta?.validate)return;const o=([r,n]=Xt((()=>Promise.resolve(e.meta.validate(e)))),r=await r,n(),r);if(!0===o)return;const a=Dr({fatal:!0,statusCode:o&&o.statusCode||404,statusMessage:o&&o.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return"undefined"!=typeof window&&window.history.pushState({},"",t.fullPath),a}));var Fs=(e=>(e.PRO="PRO",e.PREVIEW="PREVIEW",e.ENTERPRISE_ADMIN="ENTERPRISE_ADMIN",e.ENTERPRISE_MEMBER="ENTERPRISE_MEMBER",e))(Fs||{});const Ms={"role:pro":"PRO","role:preview":"PREVIEW","role:enterprise-admin":"ENTERPRISE_ADMIN","role:enterprise-member":"ENTERPRISE_MEMBER"};function Bs(e){return Object.fromEntries(Object.entries(e).filter((([e,t])=>!qs(t))))}function zs(e){return Object.fromEntries(Object.entries(e).filter((([e,t])=>Array.isArray(t)?t.length>0:"string"==typeof t?""!==t.trim():!qs(t))))}function qs(e){return null==e}function Hs(e){const t=new WeakMap;return function e(r){if(null===r||"object"!=typeof r)return r;if(t.has(r))return t.get(r);if(c(r)&&(r=E(r)),(C(r)||O(r)||x(r))&&(r=L(r)),Array.isArray(r)){const n=[];return t.set(r,n),r.forEach(((t,r)=>{n[r]=e(t)})),n}const n={};return t.set(r,n),Object.keys(r).forEach((t=>{n[t]=e(r[t])})),n}(e)}function Vs(e,t){if(e===t)return!0;
2if(null===e||"object"!=typeof e||null===t||"object"!=typeof t)return e!=e&&t!=t;if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Vs(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,n]of e.entries())if(!t.has(r)||!Vs(n,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e.values())if(!t.has(r))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(e.byteLength!==t.byteLength)return!1;const r=new DataView(e.buffer),n=new DataView(t.buffer);let o=e.byteLength;for(;o--;)if(r.getUint8(o)!==n.getUint8(o))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(const n of r){if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(!("_owner"===n&&e.$$typeof||Vs(e[n],t[n])))return!1}return!0}const Ws=(e,{fixed:t=0,friendly:r=!1}={})=>{let n=Number(e);if(isNaN(n))return e;let o="";if(r){let e=0;for(;n>=1e3;)n/=1e3,e+=3;0!==e&&(o=function(e){let t="";switch(e){case 3:t="K";break;case 6:t="M";break;case 9:t="B"}return t}(e))}return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:t,maximumFractionDigits:t}).format(n)+o},Gs=e=>e.replace(/-/g,""),Ks=e=>/^\d{9}$/.test(Gs(e)),Qs=e=>e&&9===e.length?e.substr(0,2)+"-"+e.substr(2):e;var Ys=(e=>(e.Text="Text",e.NonprofitSearch="NonprofitSearch",e.NonprofitDetail="NonprofitDetail",e.Loading="Loading",e.Error="Error",e.Initializing="Initializing",e.Guide="Guide",e.ArticleSearch="ArticleSearch",e.FundSearch="FundSearch",e.Feedback="Feedback",e.Dismissible="Dismissible",e.InformedAnswer="InformedAnswer",e.Trial="Trial",e.Intro="Intro",e))(Ys||{});const Js=Ke("notification",{state:()=>({snackbar:{show:!1,message:"",color:"info",timeout:3e3,linkText:void 0,linkTo:void 0},modal:{show:!1,title:"",message:"",component:void 0,confirmText:"Yes",cancelText:"No"},modalResolve:null}),actions:{showSnackbar(e){this.snackbar={show:!0,message:e.message,color:e.color||"info",timeout:e.timeout||3e3,linkText:e.linkText,linkTo:e.linkTo}},hideSnackbar(){this.snackbar.show=!1},showModal(e){return this.modal={show:!0,title:e.title,message:e.message,component:e.component?N(e.component):void 0,componentProps:e.componentProps,confirmText:e.confirmText,cancelText:e.cancelText},new Promise((e=>{this.modalResolve=e}))},hideModal(e){this.modal.show=!1,this.modalResolve&&(this.modalResolve(e),this.modalResolve=null)}}});function Xs(e,t){return function(){return e.apply(t,arguments)}}const{toString:Zs}=Object.prototype,{getPrototypeOf:ei}=Object,ti=(e=>t=>{const r=Zs.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ri=e=>(e=e.toLowerCase(),t=>ti(t)===e),ni=e=>t=>typeof t===e,{isArray:oi}=Array,ai=ni("undefined"),si=ri("ArrayBuffer"),ii=ni("string"),li=ni("function"),ci=ni("number"),ui=e=>null!==e&&"object"==typeof e,di=e=>{if("object"!==ti(e))return!1;const t=ei(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},pi=ri("Date"),hi=ri("File"),fi=ri("Blob"),mi=ri("FileList"),gi=ri("URLSearchParams"),[vi,yi,_i,bi]=["ReadableStream","Request","Response","Headers"].map(ri);function wi(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),oi(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(n=0;n<a;n++)s=o[n],t.call(null,e[s],s,e)}}function Ei(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const Si="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ki=e=>!ai(e)&&e!==Si,Pi=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&ei(Uint8Array)),Ri=ri("HTMLFormElement"),Ai=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ti=ri("RegExp"),Ii=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};wi(r,((r,o)=>{let a;!1!==(a=t(r,o,e))&&(n[o]=a||r)})),Object.defineProperties(e,n)}
vendor: 4,583 bytes, line 2
2,Ci="abcdefghijklmnopqrstuvwxyz",Oi="0123456789",xi={DIGIT:Oi,ALPHA:Ci,ALPHA_DIGIT:Ci+Ci.toUpperCase()+Oi},Li=ri("AsyncFunction"),Ni={isArray:oi,isArrayBuffer:si,isBuffer:function(e){return null!==e&&!ai(e)&&null!==e.constructor&&!ai(e.constructor)&&li(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||li(e.append)&&("formdata"===(t=ti(e))||"object"===t&&li(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&si(e.buffer),t},isString:ii,isNumber:ci,isBoolean:e=>!0===e||!1===e,isObject:ui,isPlainObject:di,isReadableStream:vi,isRequest:yi,isResponse:_i,isHeaders:bi,isUndefined:ai,isDate:pi,isFile:hi,isBlob:fi,isRegExp:Ti,isFunction:li,isStream:e=>ui(e)&&li(e.pipe),isURLSearchParams:gi,isTypedArray:Pi,isFileList:mi,forEach:wi,merge:function e(){const{caseless:t}=ki(this)&&this||{},r={},n=(n,o)=>{const a=t&&Ei(r,o)||o;di(r[a])&&di(n)?r[a]=e(r[a],n):di(n)?r[a]=e({},n):oi(n)?r[a]=n.slice():r[a]=n};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&wi(arguments[o],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(wi(t,((t,n)=>{r&&li(t)?e[n]=Xs(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,a,s;const i={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],n&&!n(s,e,t)||i[s]||(t[s]=e[s],i[s]=!0);e=!1!==r&&ei(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:ti,kindOfTest:ri,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(oi(e))return e;let t=e.length;if(!ci(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:Ri,hasOwnProperty:Ai,hasOwnProp:Ai,reduceDescriptors:Ii,freezeMethods:e=>{Ii(e,((t,r)=>{if(li(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];li(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return oi(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Ei,global:Si,isContextDefined:ki,ALPHABET:xi,generateString:(e=16,t=xi.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&li(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(ui(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=oi(e)?[]:{};return wi(e,((e,t)=>{const a=r(e,n+1);!ai(a)&&(o[t]=a)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Li,isThenable:e=>e&&(ui(e)||li(e))&&li(e.then)&&li(e.catch)};function Ui(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Ni.inherits(Ui,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ni.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $i=Ui.prototype,Di={};function ji(e){return Ni.isPlainObject(e)||Ni.isArray(e)}function Fi(e){return Ni.endsWith(e,"[]")?e.slice(0,-2):e}function Mi(e,t,r){return e?e.concat(t).map((function(e,t){return e=Fi(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","E
2RR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Di[e]={value:e}})),Object.defineProperties(Ui,Di),Object.defineProperty($i,"isAxiosError",{value:!0}),Ui.from=(e,t,r,n,o,a)=>{const s=Object.create($i);return Ni.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ui.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const Bi=Ni.toFlatObject(Ni,{},null,(function(e){return/^is[A-Z]/.test(e)}));function zi(e,t,r){if(!Ni.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=Ni.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ni.isUndefined(t[e])}))).metaTokens,o=r.visitor||c,a=r.dots,s=r.indexes,i=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Ni.isSpecCompliantForm(t);if(!Ni.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ni.isDate(e))return e.toISOString();if(!i&&Ni.isBlob(e))throw new Ui("Blob is not supported. Use a Buffer instead.");return Ni.isArrayBuffer(e)||Ni.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,o){let i=e;if(e&&!o&&"object"==typeof e)if(Ni.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Ni.isArray(e)&&function(e){return Ni.isArray(e)&&!e.some(ji)}(e)||(Ni.isFileList(e)||Ni.endsWith(r,"[]"))&&(i=Ni.toArray(e)))return r=Fi(r),i.forEach((function(e,n){!Ni.isUndefined(e)&&null!==e&&t.append(!0===s?Mi([r],n,a):null===s?r:r+"[]",l(e))})),!1;return!!ji(e)||(t.append(Mi(o,r,a),l(e)),!1)}const u=[],d=Object.assign(Bi,{defaultVisitor:c,convertValue:l,isVisitable:ji});if(!Ni.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Ni.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),Ni.forEach(r,(function(r,a){!0===(!(Ni.isUndefined(r)||null===r)&&o.call(t,r,Ni.isString(a)?a.trim():a,n,d))&&e(r,n?n.concat(a):[a])})),u.pop()}}(e),t}function qi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Hi(e,t){this._pairs=[],e&&zi(e,this,t)}const Vi=Hi.prototype;function Wi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Gi(e,t,r){if(!t)return e;const n=r&&r.encode||Wi,o=r&&r.serialize;let a;if(a=o?o(t,r):Ni.isURLSearchParams(t)?t.toString():new Hi(t,r).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}Vi.append=function(e,t){this._pairs.push([e,t])},Vi.toString=function(e){const t=e?function(t){return e.call(this,t,qi)}:qi;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Ki{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ni.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Qi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yi={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Hi,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ji="undefined"!=typeof window&&"undefined"!=typeof document,Xi=(Zi="undefined"!=typeof navigator&&navigator.product,Ji&&["ReactNative","NativeScript","NS"].indexOf(Zi)<0);var Zi;const el="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tl=Ji&&window.location.href||"http://localhost",rl={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ji,hasStandardBrowserEnv:Xi,hasStandardBrowserWebWorkerEnv:el,origin:tl},Symbol.toStringTag,{value:"Module"})),...Yi};function nl(e){function t(e,r,n,o){let a=e[o++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),i=o>=e.length;return a=!a&&Ni.isArray(n)?n.length:a,i?(Ni.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!s):(n[a]&&Ni.isObject(n[a])||(n[a]=[]),t(e,r,n[a],o)&&Ni.isArray(n[a])&&(n[a]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}(n[a])),!s)}if(Ni.isFormData(e)&&Ni.isFunction(e.entries)){const r={};return Ni.forEachEntry(e,((e,n)=>{t(function(e){return Ni.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const ol={transitional:Qi,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=Ni.isObject(e);
vendor: 5,135 bytes, line 2
2if(o&&Ni.isHTMLForm(e)&&(e=new FormData(e)),Ni.isFormData(e))return n?JSON.stringify(nl(e)):e;if(Ni.isArrayBuffer(e)||Ni.isBuffer(e)||Ni.isStream(e)||Ni.isFile(e)||Ni.isBlob(e)||Ni.isReadableStream(e))return e;if(Ni.isArrayBufferView(e))return e.buffer;if(Ni.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return zi(e,new rl.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return rl.isNode&&Ni.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=Ni.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return zi(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e){if(Ni.isString(e))try{return(0,JSON.parse)(e),Ni.trim(e)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ol.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Ni.isResponse(e)||Ni.isReadableStream(e))return e;if(e&&Ni.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(r){if("SyntaxError"===o.name)throw Ui.from(o,Ui.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rl.classes.FormData,Blob:rl.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ni.forEach(["delete","get","head","post","put","patch"],(e=>{ol.headers[e]={}}));const al=Ni.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sl=Symbol("internals");function il(e){return e&&String(e).trim().toLowerCase()}function ll(e){return!1===e||null==e?e:Ni.isArray(e)?e.map(ll):String(e)}function cl(e,t,r,n,o){return Ni.isFunction(n)?n.call(this,t,r):(o&&(t=r),Ni.isString(t)?Ni.isString(n)?-1!==t.indexOf(n):Ni.isRegExp(n)?n.test(t):void 0:void 0)}let ul=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=il(t);if(!o)throw new Error("header name must be a non-empty string");const a=Ni.findKey(n,o);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=ll(e))}const a=(e,t)=>Ni.forEach(e,((e,r)=>o(e,r,t)));if(Ni.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Ni.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&al[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(Ni.isHeaders(e))for(const[s,i]of e.entries())o(i,s,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=il(e)){const r=Ni.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Ni.isFunction(t))return t.call(this,e,r);if(Ni.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=il(e)){const r=Ni.findKey(this,e);return!(!r||void 0===this[r]||t&&!cl(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=il(e)){const o=Ni.findKey(r,e);!o||t&&!cl(0,r[o],o,t)||(delete r[o],n=!0)}}return Ni.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!cl(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return Ni.forEach(this,((n,o)=>{const a=Ni.findKey(r,o);if(a)return t[a]=ll(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=ll(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ni.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Ni.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[sl]=this[sl]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=il(e);t[n]||(function(e,t){const r=Ni.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}
2))}(r,e),t[n]=!0)}return Ni.isArray(e)?e.forEach(n):n(e),this}};function dl(e,t){const r=this||ol,n=t||r,o=ul.from(n.headers);let a=n.data;return Ni.forEach(e,(function(e){a=e.call(r,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function pl(e){return!(!e||!e.__CANCEL__)}function hl(e,t,r){Ui.call(this,null==e?"canceled":e,Ui.ERR_CANCELED,t,r),this.name="CanceledError"}function fl(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Ui("Request failed with status code "+r.status,[Ui.ERR_BAD_REQUEST,Ui.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}ul.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ni.reduceDescriptors(ul.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),Ni.freezeMethods(ul),Ni.inherits(hl,Ui,{__CANCEL__:!0});const ml=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,a=0,s=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),c=n[s];o||(o=l),r[a]=i,n[a]=l;let u=s,d=0;for(;u!==a;)d+=r[u++],u%=e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let r=0;const n=1e3/t;let o=null;return function(){const t=!0===this,a=Date.now();if(t||a-r>n)return o&&(clearTimeout(o),o=null),r=a,e.apply(null,arguments);o||(o=setTimeout((()=>(o=null,r=Date.now(),e.apply(null,arguments))),n-(a-r)))}}((r=>{const a=r.loaded,s=r.lengthComputable?r.total:void 0,i=a-n,l=o(i);n=a;const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:i,rate:l||void 0,estimated:l&&s&&a<=s?(s-a)/l:void 0,event:r,lengthComputable:null!=s};c[t?"download":"upload"]=!0,e(c)}),r)},gl=rl.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=Ni.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return function(){return!0}}(),vl=rl.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const s=[e+"="+encodeURIComponent(t)];Ni.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),Ni.isString(n)&&s.push("path="+n),Ni.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function yl(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const _l=e=>e instanceof ul?{...e}:e;function bl(e,t){t=t||{};const r={};function n(e,t,r){return Ni.isPlainObject(e)&&Ni.isPlainObject(t)?Ni.merge.call({caseless:r},e,t):Ni.isPlainObject(t)?Ni.merge({},t):Ni.isArray(t)?t.slice():t}function o(e,t,r){return Ni.isUndefined(t)?Ni.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function a(e,t){if(!Ni.isUndefined(t))return n(void 0,t)}function s(e,t){return Ni.isUndefined(t)?Ni.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function i(r,o,a){return a in t?n(r,o):a in e?n(void 0,r):void 0}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(e,t)=>o(_l(e),_l(t),!0)};return Ni.forEach(Object.keys(Object.assign({},e,t)),(function(n){const a=l[n]||o,s=a(e[n],t[n],n);Ni.isUndefined(s)&&a!==i||(r[n]=s)})),r}const wl=e=>{const t=bl({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:s,headers:i,auth:l}=t;if(t.headers=i=ul.from(i),t.url=Gi(yl(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Ni.isFormData(n))if(rl.hasStandardBrowserEnv||rl.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(!1!==(r=i.getContentType())){const[e,...t]=r?r.split(";").map((e=>
2e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}if(rl.hasStandardBrowserEnv&&(o&&Ni.isFunction(o)&&(o=o(t)),o||!1!==o&&gl(t.url))){const e=a&&s&&vl.read(s);e&&i.set(a,e)}return t},El="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=wl(e);let o=n.data;const a=ul.from(n.headers).normalize();let s,{responseType:i}=n;function l(){n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let c=new XMLHttpRequest;function u(){if(!c)return;const n=ul.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());fl((function(e){t(e),l()}),(function(e){r(e),l()}),{data:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c}),c=null}c.open(n.method.toUpperCase(),n.url,!0),c.timeout=n.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(r(new Ui("Request aborted",Ui.ECONNABORTED,n,c)),c=null)},c.onerror=function(){r(new Ui("Network Error",Ui.ERR_NETWORK,n,c)),c=null},c.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const t=n.transitional||Qi;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new Ui(e,t.clarifyTimeoutError?Ui.ETIMEDOUT:Ui.ECONNABORTED,n,c)),c=null},void 0===o&&a.setContentType(null),"setRequestHeader"in c&&Ni.forEach(a.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),Ni.isUndefined(n.withCredentials)||(c.withCredentials=!!n.withCredentials),i&&"json"!==i&&(c.responseType=n.responseType),"function"==typeof n.onDownloadProgress&&c.addEventListener("progress",ml(n.onDownloadProgress,!0)),"function"==typeof n.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",ml(n.onUploadProgress)),(n.cancelToken||n.signal)&&(s=t=>{c&&(r(!t||t.type?new hl(null,e,c):t),c.abort(),c=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);d&&-1===rl.protocols.indexOf(d)?r(new Ui("Unsupported protocol "+d+":",Ui.ERR_BAD_REQUEST,e)):c.send(o||null)}))},Sl=(e,t)=>{let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Ui?t:new hl(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{o(new Ui(`timeout ${t} of ms exceeded`,Ui.ETIMEDOUT))}),t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>
2e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:i}=n;return i.unsubscribe=s,[i,()=>{a&&clearTimeout(a),a=null}]},kl=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},Pl=(e,t,r,n,o)=>{const a=async function*(e,t,r){for await(const n of e)yield*kl(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,o);let s=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:o}=await a.next();if(t)return e.close(),void n();let i=o.byteLength;r&&r(s+=i),e.enqueue(new Uint8Array(o))},cancel:e=>(n(e),a.return())},{highWaterMark:2})},Rl=(e,t)=>{const r=null!=e;return n=>setTimeout((()=>t({lengthComputable:r,total:e,loaded:n})))},Al="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Tl=Al&&"function"==typeof ReadableStream,Il=Al&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Cl=Tl&&(()=>{let e=!1;const t=new Request(rl.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Ol=Tl&&!!(()=>{try{return Ni.isReadableStream(new Response("").body)}catch(e){}})(),xl={stream:Ol&&(e=>e.body)};var Ll;Al&&(Ll=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!xl[e]&&(xl[e]=Ni.isFunction(Ll[e])?t=>t[e]():(t,r)=>{throw new Ui(`Response type '${e}' is not supported`,Ui.ERR_NOT_SUPPORT,r)})})));const Nl={http:null,xhr:El,fetch:Al&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:s,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=wl(e);c=c?(c+"").toLowerCase():"text";let h,f,[m,g]=o||a||s?Sl([o,a],s):[];const v=()=>{!h&&setTimeout((()=>{m&&m.unsubscribe()})),h=!0};let y;try{if(l&&Cl&&"get"!==r&&"head"!==r&&0!==(y=await(async(e,t)=>{const r=Ni.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:Ni.isBlob(e)?e.size:Ni.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Ni.isArrayBufferView(e)?e.byteLength:(Ni.isURLSearchParams(e)&&(e+=""),Ni.isString(e)?(await Il(e)).byteLength:void 0))(t):r})(u,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});Ni.isFormData(n)&&(e=r.headers.get("content-type"))&&u.setContentType(e),r.body&&(n=Pl(r.body,65536,Rl(y,ml(l)),null,Il))}Ni.isString(d)||(d=d?"cors":"omit"),f=new Request(t,{...p,signal:m,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",withCredentials:d});let o=await fetch(f);const a=Ol&&("stream"===c||"response"===c);if(Ol&&(i||a)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Ni.toFiniteNumber(o.headers.get("content-length"));o=new Response(Pl(o.body,65536,i&&Rl(t,ml(i,!0)),a&&v,Il),e)}c=c||"text";let s=await xl[Ni.findKey(xl,c)||"text"](o,e);return!a&&v(),g&&g(),await new Promise(((t,r)=>{fl(t,r,{data:s,headers:ul.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})}))}catch(_){if(v(),_&&"TypeError"===_.name&&/fetch/i.test(_.message))throw Object.assign(new Ui("Network Error",Ui.ERR_NETWORK,e,f),{cause:_.cause||_});throw Ui.from(_,_&&_.code,e,f)}})};Ni.forEach(Nl,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ul=e=>`- ${e}`,$l=e=>Ni.isFunction(e)||null===e||!1===e,Dl=e=>{e=Ni.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){let t;if(r=e[a],n=r,!$l(r)&&(n=Nl[(t=String(r)).toLowerCase()],void 0===n))throw new Ui(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+a]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Ui("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ul).join("\n"):" "+Ul(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function jl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hl(null,e)}function Fl(e){return jl(e),e.headers=ul.from(e.headers),e.data=dl.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dl(e.adapter||ol.adapter)(e).then((function(t){return jl(e),t.data=dl.call(e,e.transformResponse,t),t.headers=ul.from(t.headers),t}),(function(t){return pl(t)||(jl(e),t&&t.response&&(t.response.data=dl.call(e,e.transformResponse,t.response),t.response.headers=ul.from(t.response.headers))),Promise.reject(t)}))}const Ml={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ml[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Bl={};Ml.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.2] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,a)=>
vendor: 3,026 bytes, line 2
2{if(!1===e)throw new Ui(n(o," has been removed"+(t?" in "+t:"")),Ui.ERR_DEPRECATED);return t&&!Bl[o]&&(Bl[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,a)}};const zl={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Ui("options must be an object",Ui.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],s=t[a];if(s){const t=e[a],r=void 0===t||s(t,a,e);if(!0!==r)throw new Ui("option "+a+" must be "+r,Ui.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Ui("Unknown option "+a,Ui.ERR_BAD_OPTION)}},validators:Ml},ql=zl.validators;let Hl=class{constructor(e){this.defaults=e,this.interceptors={request:new Ki,response:new Ki}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(n){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=bl(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&zl.assertOptions(r,{silentJSONParsing:ql.transitional(ql.boolean),forcedJSONParsing:ql.transitional(ql.boolean),clarifyTimeoutError:ql.transitional(ql.boolean)},!1),null!=n&&(Ni.isFunction(n)?t.paramsSerializer={serialize:n}:zl.assertOptions(n,{encode:ql.function,serialize:ql.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&Ni.merge(o.common,o[t.method]);o&&Ni.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ul.concat(a,o);const s=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!i){const e=[Fl.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=s.length;let p=t;for(d=0;d<u;){const e=s[d++],t=s[d++];try{p=e(p)}catch(h){t.call(this,h);break}}try{c=Fl.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Gi(yl((e=bl(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}};Ni.forEach(["delete","get","head","options"],(function(e){Hl.prototype[e]=function(t,r){return this.request(bl(r||{},{method:e,url:t,data:(r||{}).data}))}})),Ni.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(bl(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Hl.prototype[e]=t(),Hl.prototype[e+"Form"]=t(!0)}));const Vl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
2alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vl).forEach((([e,t])=>{Vl[t]=e}));const Wl=function e(t){const r=new Hl(t),n=Xs(Hl.prototype.request,r);return Ni.extend(n,Hl.prototype,r,{allOwnKeys:!0}),Ni.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(bl(t,r))},n}(ol);Wl.Axios=Hl,Wl.CanceledError=hl,Wl.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new hl(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}},Wl.isCancel=pl,Wl.VERSION="1.7.2",Wl.toFormData=zi,Wl.AxiosError=Ui,Wl.Cancel=Wl.CanceledError,Wl.all=function(e){return Promise.all(e)},Wl.spread=function(e){return function(t){return e.apply(null,t)}},Wl.isAxiosError=function(e){return Ni.isObject(e)&&!0===e.isAxiosError},Wl.mergeConfig=bl,Wl.AxiosHeaders=ul,Wl.formToJSON=e=>nl(Ni.isHTMLForm(e)?new FormData(e):e),Wl.getAdapter=Dl,Wl.HttpStatusCode=Vl,Wl.default=Wl;const{Axios:Gl,AxiosError:Kl,CanceledError:Ql,isCancel:Yl,CancelToken:Jl,VERSION:Xl,all:Zl,Cancel:ec,isAxiosError:tc,spread:rc,toFormData:nc,AxiosHeaders:oc,HttpStatusCode:ac,formToJSON:sc,getAdapter:ic,mergeConfig:lc}=Wl,cc=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout((()=>{e(r)}),1)}),uc=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),dc=e=>{const t=ur();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",(()=>{cc((()=>e()))})):cc((()=>e()))};function pc(){return globalThis.$fetch}async function hc(e,t=Ar()){const{path:r,matched:n}=t.resolve(e);if(!n.length)return;if(t._routePreloaded||=new Set,t._routePreloaded.has(r))return;const o=t._preloadPromises||=[];if(o.length>4)return Promise.all(o).then((()=>hc(e,t)));t._routePreloaded.add(r);const a=n.map((e=>e.components?.default)).filter((e=>"function"==typeof e));for(const s of a){const e=Promise.resolve(s()).catch((()=>{})).finally((()=>o.splice(o.indexOf(e))));o.push(e)}await Promise.all(o)}function fc(){const e=dr().public.insightsApiUrl;return{API_CHAT_URL:`${e}/solutions/chat`,API_CHAT_SESSION_URL:`${e}/solutions/chat/session`,API_CLIENTS_URL:`${e}/solutions/user/contacts`,API_FEEDBACK_URL:`${e}/solutions/feedback/`,API_FAVORITES_URL:`${e}/solutions/user/favorites`,API_ENRICHED_FAVORITES_URL:`${e}/solutions/user/favorites/enriched`,API_LISTS_URL:`${e}/solutions/lists`,API_USER_URL:`${e}/solutions/user/`,API_USER_STYLE_URL:`${e}/solutions/user/style`,API_USER_LOCATION_URL:`${e}/solutions/user/location`,API_USER_ISSUE_AREAS_URL:`${e}/solutions/user/issue-areas`,API_USER_ONBOARD_URL:`${e}/solutions/user/onboarding/complete`,API_PREVIEW_ACCESS_REDEEM_URL:`${e}/solutions/preview/redeem`,API_PREVIEW_ACCESS_STATUS_URL:`${e}/solutions/preview/`,API_PRO_TRIAL_START_URL:`${e}/solutions/trial/start`,API_PRO_TRIAL_ELIGIBILITY_URL:`${e}/solutions/trial/eligibility`,API_PREVIEW_PRECHECK_URL:`${e}/trial/preview`,API_PREVIEW_ADMIN_COHORTS_URL:`${e}
2/solutions/preview/admin/cohorts`,API_PREVIEW_ADMIN_GRANTS_URL:`${e}/solutions/preview/admin/grants`,API_PREVIEW_ADMIN_INVITES_URL:`${e}/solutions/preview/admin/invites`,API_PREVIEW_ADMIN_EXTEND_URL:`${e}/solutions/preview/admin/extend`,API_PREVIEW_ADMIN_REVOKE_URL:`${e}/solutions/preview/admin/revoke`,API_ADMIN_USERS_URL:`${e}/solutions/admin/users`,API_ENTERPRISE_ORGS_URL:`${e}/solutions/enterprise/orgs`,API_ENTERPRISE_JOIN_URL:`${e}/solutions/enterprise/join`,API_ENTERPRISE_INVITE_CHECK_URL:`${e}/trial/enterprise-invite`,API_ADMIN_ENTERPRISE_ORGS_URL:`${e}/solutions/admin/enterprise-orgs`,API_SESSION_LOCATION_URL:`${e}/trial/location/context`,API_SOLUTIONS_LOCATION_URL:`${e}/solutions/location/context`,API_HUBSPOT_TRACKING_URL:`${e}/solutions/tracking/contact`,API_TRIAL_NONPROFITS_URL:`${e}/trial/nonprofits`,API_TRIAL_NONPROFIT_DETAILS_URL:`${e}/trial/nonprofits/details`,API_TRIAL_CHAT_URL:`${e}/trial/chat`,API_TRIAL_CHAT_SESSION_URL:`${e}/trial/chat/session`,API_HEALTH_URL:`${e}/health/`,API_STRIPE_PRODUCTS_URL:"subscription/products",API_STRIPE_CHECKOUT_SESSION_URL:"subscription/checkout-session",API_NTEE_DATA_PATH:"data/ntee",API_SUBSECTION_DATA_PATH:"data/subsection",API_ISSUE_AREA_DATA_PATH:"data/issue-areas",API_LOCATION_BY_IP_PATH:"location/ip",API_LOCATION_BY_PLACE_PATH:"location/search",API_TRIAL_EXPLORER_SAMPLES_URL:`${e}/trial/explorer/samples`,API_EXPLORER_ADMIN_SAMPLES_URL:`${e}/solutions/explorer/admin/samples`,API_EXPLORER_ADMIN_RUNS_URL:`${e}/solutions/explorer/admin/runs`,API_EXPLORER_ADMIN_COUNTS_URL:`${e}/solutions/explorer/admin/counts`,API_ADMIN_TENANTS_URL:`${e}/solutions/admin/tenants`,API_GEO_STATES_URL:`${e}/solutions/geo/states`,API_GEO_COUNTIES_URL:`${e}/solutions/geo/counties`,API_GEO_AUTOCOMPLETE_URL:`${e}/solutions/geo/autocomplete`,API_DASHBOARD_FILTERS_ISSUE_AREAS_URL:`${e}/solutions/dashboard/filters/issue-areas`,API_DASHBOARD_CHOROPLETH_URL:`${e}/solutions/dashboard/geo/choropleth`,API_DASHBOARD_CHOROPLETH_METRICS_URL:`${e}/solutions/dashboard/geo/choropleth/metrics`,API_DASHBOARD_CHOROPLETH_NONPROFITS_URL:`${e}/solutions/dashboard/geo/choropleth/nonprofits`,API_DASHBOARD_OVERLAY_FILTERS_URL:`${e}/solutions/dashboard/geo/choropleth/overlay-filters`,API_DASHBOARD_REGION_NONPROFITS_URL:`${e}/solutions/dashboard/geo/choropleth/region-nonprofits`,API_DASHBOARD_WIDGET_URL:`${e}/solutions/dashboard/widget`,API_DASHBOARD_COMPARE_URL:`${e}/solutions/dashboard/compare`}}const mc={async checkApiHealth(){const{API_HEALTH_URL:e}=fc();let t=Date.now();for(;Date.now()-t<12e4;){const t=Wl.CancelToken.source();if(await this.makeHealthCheckCall(e,t,1e4))return!0;await new Promise((e=>setTimeout(e,2e3)))}return!1},async makeHealthCheckCall(e,t,r){let n=null;try{return n=setTimeout((()=>{t.cancel("Operation canceled due to timeout.")}),r),200===(await Wl.get(e,{cancelToken:t.token})).status}catch(o){return Wl.isCancel(o)?console.log("Request canceled:",o?.message):console.error("Error during health check:",o),!1}finally{n&&clearTimeout(n)}}};function gc(e,t){if(vc(e))return e;const r=function(e,t){const r=e.public.auth;void 0===t&&(t=!e.public.auth.disableInternalRouting);let n=r.baseURL;return t&&(n=function(e=""){return function(e=""){return e.startsWith("/")}(e)?e:"/"+e}(Ot(n).pathname)),n}(t);return Tt(r,e)}function vc(e){return e.startsWith("http://")||e.startsWith("https://")}const yc="[@sidebase/nuxt-auth]";async function _c(e,t,r,n=!1){const o=lr(e,dr),a="public"in o?o:await o,s=gc(t,a);if(!1===a.public.auth.disableInternalRouting){const t=e.ssrContext?.event?.path;if(t?.startsWith(s))throw console.error(`${yc} Recursion detected at ${s}. Have you set the correct \`auth.baseURL\`?`),new bc("Server configuration error")}try{return $fetch.raw(s,r).then((e=>e._data))}catch(i){let e=`${yc} Error while requesting ${s}.`;throw"authjs"===a.public.auth.provider.type&&(e+=" Have you added the authentication handler server-endpoint `[...].ts`? Have you added the authentication handler in a non-default location (default is `~/server/api/auth/[...].ts`) and not updated the module-setting `auth.basePath`?"),e+=" Error is:",console.error(e),console.error(i),new bc("Runtime error, check the console logs to debug, open an issue at https://github.com/sidebase/nuxt-auth/issues/new/choose if you continue to have this problem")}}
2class bc extends Error{}const wc="undefined"!=typeof location?location:{origin:"",pathname:"/"};function Ec(e=!0){return function(e,t){return wc.origin+(t?wc.pathname:"")}(0,e)}function Sc(e){return lr(e,Ec)}async function kc(e,t,r){if(t)return await Pc(t);const n="object"==typeof e.globalAppMiddleware?e.globalAppMiddleware.addDefaultCallbackUrl:void 0;return"string"==typeof n?await Pc(n):!1!==r&&(!0===r||!0===n||void 0===n&&!0===e.globalAppMiddleware)?Sc(ur()):void 0}async function Pc(e){if(vc(e))return e;const t=ur();return(await lr(t,Ar)).options.history.createHref(e)}function Rc(e,t,r){return lr(e,Ac,[e,t,r])}function Ac(e,t,r=!1){const n=Ar();return Boolean(e._processingMiddleware),window.location.href=t,t.includes("#")&&window.location.reload(),new Promise((e=>setTimeout(e,6e4))).then((()=>n.push(t)))}const Tc=()=>function(){const e=po("auth:data",(()=>{})),t=k((()=>!!e.value)),r=po("auth:lastRefreshedAt",(()=>{if(t.value)return new Date})),n=po("auth:loading",(()=>!1)),o=k((()=>n.value?"loading":e.value?"authenticated":"unauthenticated"));return{data:e,loading:n,lastRefreshedAt:r,status:o}}();function Ic(){const e=ur(),t=dr(),r=function(e){const t=e.public.auth.provider;if("authjs"===t.type)return t;throw new Error("RuntimeError: Type must match at this point")}(t),{data:n,loading:o,status:a,lastRefreshedAt:s}=Tc();async function i(n,o,a){const s=await l();if(!s){const r=gc("error",t);return{error:"InvalidProvider",ok:!1,status:500,url:r,navigationResult:await Rc(e,r,!0)}}void 0===n&&(n=r.defaultProvider);const{redirect:i=!0}=o??{},c=await lr(e,(()=>kc(t.public.auth,o?.callbackUrl))),p=`${gc("signin",t)}${c?`?${new URLSearchParams({callbackUrl:c})}`:""}`,f=n&&s[n];if(!f)return{error:"InvalidProvider",ok:!1,status:400,url:p,navigationResult:await Rc(e,p,!0)};const m="credentials"===f.type,g="email"===f.type,v=m||g,y=m?"callback":"signin",_=await h(e),b={"Content-Type":"application/x-www-form-urlencoded",...await d(e)},w=new URLSearchParams({...o,csrfToken:_,callbackUrl:c,json:!0}),E=await lr(e,(()=>_c(e,`/${y}/${n}`,{method:"post",params:a,headers:b,body:w}).catch((e=>e.data))));if(i||!v){const t=E.url??c,r=await Rc(e,t);return{error:new URL(t,"http://_").searchParams.get("error"),ok:!0,status:302,url:t,navigationResult:r}}const S=new URL(E.url).searchParams.get("error");return await u(e),{error:S,status:200,ok:!0,url:S?null:E.url,navigationResult:void 0}}async function l(){const t=await d(e,!1);return _c(e,"/providers",{headers:t})}async function c(t){const r=await Sc(e),{required:l,callbackUrl:c,onUnauthenticated:u}=br(t||{},{required:!1,callbackUrl:void 0,onUnauthenticated:()=>i(void 0,{callbackUrl:t?.callbackUrl||r})});function p(){o.value=!1}const h=await d(e);return _c(e,"/session",{onResponse:({response:e})=>{const t=e._data;var r;return n.value="object"==typeof(r=t)&&null!==r&&Object.keys(r).length>0?t:null,o.value=!1,l&&"unauthenticated"===a.value?u():t},onRequest:({options:e})=>{s.value=new Date,e.params={...e.params,callbackUrl:c||r}},onRequestError:p,onResponseError:p,headers:h})}function u(e){return lr(e,c)}async function d(e,t=!0){const r=await lr(e,(()=>({})));return t&&r.cookie?r:{host:r.host}}async function p(){const t=await d(e);return _c(e,"/csrf",{headers:t}).then((e=>e.csrfToken))}function h(e){return lr(e,p)}return{status:a,data:U(n),lastRefreshedAt:U(s),getSession:c,getCsrfToken:p,getProviders:l,signIn:i,signOut:async function(r){const{callbackUrl:n,redirect:o=!0}=r??{},a=await h(e),s=await kc(t.public.auth,n,!0);if(!a)throw Dr({statusCode:400,message:"Could not fetch CSRF Token for signing out"});const i=await _c(e,"/signout",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",...await d(e)},onRequest:({options:e})=>{e.body=new URLSearchParams({csrfToken:a,callbackUrl:s,json:"true"})}}).catch((e=>e.data));if(o){const t=i.url??s;return Rc(e,t)}return await u(e),i},refresh:c}}async function Cc(e,t={},r,n=0){const o=dr(),a=yp(),s=vp(),i=xp(),l=a.trialMode?`${o.public.insightsApiUrl}/trial`:`${o.public.insightsApiUrl}/solutions`,c={},d=i.accessToken;d&&(c.Authorization=`Bearer ${d}`),s.sessionId&&(c["x-session-id"]=s.sessionId);const p={...c,...t.headers||{}};r&&(t.signal=r.signal);try{const n=await $fetch(e,{baseURL:l,headers:p,query:t.params??t.query,method:t.method,body:t.body,signal:r?.signal,onResponse:async({response:e})=>{const t=e.headers.get("x-ratelimit-remaining");if(null!=t){const e=parseInt(t,10);isNaN(e)||await a.setTrialMessagesLeft(e)}}});return{data:u(n),error:u(null)}}catch(h){if(401===h?.response?.status&&n<3)try{const{getSession:o}=Ic(),a=await o(),s=a?.accessToken;if(s)return i.accessToken=s,console.log("Session refreshed successfully, retrying request"),Cc(e,t,r,n+1);console.warn("Session refresh returned no access token - user may 
2need to re-login")}catch(f){console.error("Failed to refresh session:",f)}if(429===h?.response?.status&&!d){await a.setTrialMessagesLeft(0);const e=h.response.headers?.get?.("x-quota-bucket");"abuse"===e&&await Cr("/account-required?reason=activity")}return{data:u(null),error:u(h)}}}var Oc=(e=>(e.FindNonprofits="find_nonprofits",e.FindSimilarNonprofits="find_similar_nonprofits",e.FindArticles="find_articles",e.FindFunds="find_funds",e.InformedAnswer="informed_answer",e))(Oc||{});const xc={IntentToMessageTypeMap:{[Oc.FindNonprofits]:Ys.NonprofitSearch,[Oc.FindSimilarNonprofits]:Ys.NonprofitSearch,[Oc.FindArticles]:Ys.ArticleSearch,[Oc.InformedAnswer]:Ys.InformedAnswer,[Oc.FindFunds]:Ys.FundSearch},async initializeSession(e){try{const t=fc(),r=e?t.API_TRIAL_CHAT_SESSION_URL:t.API_CHAT_SESSION_URL,{data:n,error:o}=await Cc(r,{method:"POST"});return o.value?void console.error("Error initializing chat session:",o.value):n.value}catch(t){if(console.error(t),Wl.isAxiosError(t)&&429===t.response?.status)throw t}},async replyToUser(e,t){const r="Sorry, I encountered a server error. This is typically temporary. Please try your request again shortly.";try{const n=fc(),o=e.trial?n.API_TRIAL_CHAT_URL:n.API_CHAT_URL,{data:a,error:s}=await Cc(o,{params:{q:e.text,city:t.use_user_location&&t.city||void 0,state:t.use_user_location&&t.state||void 0,zip:t.use_user_location&&t.zip||void 0,gc_vetted:t.gc_vetted,article_id:t.article_id,flexible_search:!0,flags:t.flags}});return s.value?429===s.value.statusCode?{type:Ys.Error,sender:"assistant",text:"You've reached your trial limit. Take the next step in your giving journey – log in or create a free account to continue your search for meaningful impact."}:{type:Ys.Error,sender:"assistant",text:r}:this.mapChatResponseToMessage(a.value)}catch(n){return console.error(n),Wl.isAxiosError(n)&&429===n.response?.status?{type:Ys.Error,sender:"assistant",text:"You've reached your trial limit. Take the next step in your giving journey – log in or create a free account to continue your search for meaningful impact."}:{type:Ys.Error,sender:"assistant",text:r}}},mapChatResponseToMessage(e){const t={id:e.messageId,type:this.IntentToMessageTypeMap[e.intent]??Ys.Text,text:e.message,sender:"assistant",suggestions:e.suggestions||[],intentDetails:e.intentDetails},r=e.nonprofits??[],n=e.funds??[];switch(e.intent){case Oc.FindArticles:const o=e.articles??[];return{...t,articles:e.articles,displayedArticlesCount:Math.min(5,o.length)};case Oc.FindSimilarNonprofits:case Oc.FindNonprofits:const a=r.filter((e=>e.gcVetted)),s=r.filter((e=>!e.gcVetted));return{...t,nonprofits:r,displayedVettedCount:Math.min(2,a.length),displayedNonVettedCount:Math.min(3,s.length)};case Oc.InformedAnswer:return{...t,sources:e.kbSources??[]};case Oc.FindFunds:return{...t,funds:n,displayedFundsCount:Math.min(5,n.length)};default:return t}},buildSearchUrlFromChatIntent(e,t){const r=new URLSearchParams;return Object.entries({cause:"q",city:"city",state:"state",zip:"zip",min_revenue:"min_revenue",max_revenue:"max_revenue",gc_vetted:"gc_vetted",sdgs:"sdgs"}).forEach((([e,n])=>{const o=t[e];null!=o&&""!==o&&r.append(`filter-${n}`,Array.isArray(o)?o.join(","):String(o))})),r.toString()?`${e}?${r.toString()}`:e}};function Lc(){return xc}const Nc={async getByIP(){try{const e=fc().API_LOCATION_BY_IP_PATH,{data:t,error:r}=await Cc(e);return r.value?(console.error("Error getting location by IP:",r.value),null):t.value}catch(e){return console.error("Error getting location by IP:",e),null}},async getByPlace(e){try{const t=fc().API_LOCATION_BY_PLACE_PATH,{data:r,error:n}=await Cc(t,{params:{place:e}});return n.value?(console.error("Error getting location by place:",n.value),null):r.value}catch(t){return console.error("Error getting location by place:",t),null}},async getSessionLocation(){try{const e=fc(),t=yp().trialMode?e.API_SESSION_LOCATION_URL:e.API_SOLUTIONS_LOCATION_URL,{data:r,error:n}=await Cc(t);return n.value?(console.error("Error getting session location:",n.value),null):r.value}catch(e){return console.error("Error getting session location:",e),null}},getState:e=>e.subdivisions?.find((e=>2===e.code?.length))?.code||void 0};function Uc(){return Nc}const $c={async trackHubspotContact(){try{const e=fc().API_HUBSPOT_TRACKING_URL,{data:t,error:r}=await Cc(e,{method:"POST"});if(r.value)return void console.warn("HubSpot tracking failed (non-blocking):",r.value);t.value&&!t.value.success&&console.warn("HubSpot tracking returned unsuccessful status")}catch(e){console.warn("Error tracking HubSpot contact (non-blocking):",e)}}};function Dc(){return $c}var jc=(e=>(e.CHAT_MESSAGE="chat_message",e.CLICK_NUDGE="click_nudge",e.CLICK_DONATE="click_donate",e.DISCUSS_ARTICLE="discuss_article",e.READ_ARTICLE="read_article",e.SAVE_ARTICLE="save_article",e.SAVE_NONPROFIT="save_nonprofit",e.PRO_USER="pro_user",e.USER_ROLE="user_role",e.BEGIN_CHECKOUT="begin_checkout",e.EXPLORER_SAMPLE_QUERY="explorer_sample_query",e.EXPLORER_UPGRADE_SHOWN="explorer_upgrade_shown",e.EXPLORER_UPGRADE_CLICKED="explorer_upgrade_clicked",e.CLICK_LANDING_CARD="click_landing_card",e.SIGNUP_CLICK="signup_click",e.IMPACT_REPORT_DOW
2NLOAD="impact_report_download",e.PRO_UPGRADE_SHOWN="pro_upgrade_shown",e.PRO_UPGRADE_CLICKED="pro_upgrade_clicked",e.SELECT_RECENT_SESSION="select_recent_session",e))(jc||{});function Fc(e){if(!e)return!1;const t=dr(),r=t.public.adminEmailDomain?.toLowerCase();if(!r)return!1;const n=e.toLowerCase().split("@");return 2===n.length&&n[1]===r}class Mc extends Error{isNteeQuotaError=!0;constructor(e="Trial quota reached"){super(e),this.name="NteeQuotaError"}}function Bc(e){return e instanceof Mc||"object"==typeof e&&null!==e&&!0===e.isNteeQuotaError}const zc="GC Request Canceled";function qc(e){if(!e)return null;try{const t=new URL(e);return t.searchParams.set("utm_source","givingcompass"),t.searchParams.set("utm_medium","referral"),t.toString()}catch(t){return console.warn("Failed to add UTM parameters to URL:",e,t),e}}function Hc(e){return{...e,post_url:qc(e.post_url)}}const Vc={abortControllers:{},searchAbortController:null,cancelExistingRequest(e){this.abortControllers[e]&&(this.abortControllers[e].abort(zc),delete this.abortControllers[e])},cancelPreviousSearchRequest(){this.searchAbortController&&(this.searchAbortController.abort(zc),this.searchAbortController=null)},async getDetails(e){try{const t=`/nonprofits/details/${e}`,{data:r,error:n}=await Cc(t);if(n.value){if(console.error("Error fetching nonprofit details:",n.value),429===n.value.statusCode)throw new Error("Rate limit exceeded");return}return r.value??void 0}catch(t){if(console.error(t),429===t.response?.status)throw t;return}},async getNteeFinderDetails(e){try{const t=`/nonprofits/ntee-finder/${e}`,{data:r,error:n}=await Cc(t);if(n.value){if(429===n.value.statusCode)throw new Mc;return void console.error("Error fetching NTEE finder details:",n.value)}return r.value??void 0}catch(t){if(t instanceof Mc)throw t;if(429===t?.response?.status||429===t?.statusCode)throw new Mc;return void console.error(t)}},async getLatestFinancials(e){try{const t=`/nonprofits/details/${e}/financials`,{data:r,error:n}=await Cc(t);return n.value?void(404!==n.value.statusCode&&console.error("Error fetching latest financials:",n.value)):r.value??void 0}catch(t){return void console.error("Error fetching latest financials:",t)}},async getFinancialYoy(e){try{const t=`/nonprofits/details/${e}/financials/yoy`,{data:r,error:n}=await Cc(t);return n.value?404===n.value.statusCode?null:(console.error("Error fetching nonprofit YoY financials:",n.value),{ein:e,entries:[]}):r.value}catch(t){return console.error("Error fetching nonprofit YoY financials:",t),{ein:e,entries:[]}}},async getFilingYears(e){try{const t=`/nonprofits/details/${e}/filing-years`,{data:r,error:n}=await Cc(t);return n.value?404===n.value.statusCode?null:(console.error("Error fetching nonprofit filing years:",n.value),{ein:e,entries:[]}):r.value}catch(t){return console.error("Error fetching nonprofit filing years:",t),{ein:e,entries:[]}}},async getFilingDocuments(e,t={}){if(!Ks(e))return console.error("getFilingDocuments called with a malformed EIN:",e),{statusCode:422};try{const r=`/nonprofits/details/${e}/filings`,n=t.selectedOnly?{selectedOnly:!0}:void 0,{data:o,error:a}=await Cc(r,{params:n});if(a.value){const e=a.value.statusCode??a.value.response?.status;return 404!==e&&console.error("Error fetching nonprofit filing documents:",a.value),{statusCode:e}}return{data:o.value??void 0}}catch(r){return console.error("Error fetching nonprofit filing documents:",r),{statusCode:r?.statusCode??r?.response?.status}}},async getFilingXmlUrl(e,t){if(!Ks(e)||!/^\d{18}$/.test(t))return console.error("getFilingXmlUrl called with a malformed EIN or object id:",e,t),{statusCode:422};try{const r=`/nonprofits/details/${e}/filings/${t}/xml`,{data:n,error:o}=await Cc(r);return o.value?(console.error("Error fetching 990 XML download URL:",o.value),{statusCode:o.value.statusCode??o.value.response?.status}):{data:n.value??void 0}}catch(r){return console.error("Error fetching 990 XML download URL:",r),{statusCode:r?.statusCode??r?.response?.status}}},async getGranteeYears(e){try{const t=`/nonprofits/details/${e}/grantee-years`,{data:r,error:n}=await Cc(t);return n.value?(console.error("Error fetching nonprofit grantee years:",n.value),{ein:e,entries:[]}):r.value}catch(t){return console.error("Error fetching nonprofit grantee years:",t),{ein:e,entries:[]}}},async getFinancialsForYear(e,t){try{const r=`/nonprofits/details/${e}/financials/${t}`,{data:n,error:o}=await Cc(r);return o.value?void(404!==o.value.statusCode&&console.error("Error fetching nonprofit financials for year:",o.value)):n.value??void 0}catch(r){return void console.error("Error fetching nonprofit financials for year:",r)}},async getLatestPeople(e){try{const t=`/nonprofits/details/${e}/people`,{data:r,error:n}=await Cc(t);return n.value?void(404!==n.value.statusCode&&console.error("Error fetching nonprofit people:",n.value)):r.value??void 0}catch(t){return void console.error("Error fetching nonprofit people:",t)}},async getPeopleForYear(e,t){try{const r=`/nonprofits/details/${e}/people/${t}`,{data:n,error:o}=await Cc(r);return o.value?void(404!==o.value.statusCode&&console.error("Error fetching nonprofit people for year:",o.value)):n.value??void 0}catch(r){return void console.error("Error fetching nonprofit people for year:",r)}},async getGrants(e,t={}){return this._fetchGrants(`/nonprofits/details/${e}/grants`,t)},async getGrantsForYear(e,t,r={}){return this._fetchGrants(`/nonprofits/details/${e}/grants/${t}`,r)},async getGrantees(e,t={}){return this._fetchGrants(`/nonprofits/details/${e}/grantees`,t)},async getGranteesForYear(e,t,r={}){return this._fetchGrants(`/nonprofits/details/${e}/grantees/${t}`,r)},async _fetchGrants(e,t){const r=t.page??1,n=t.size??10,o=Bs({page:r,size:n,sort_by:t.sort_by,sort_order:t.sort_order});try{const{data:t,error:a}=await Cc(e,{params:o});return a.value?(console.error("Error fetching grants:",a.value),{items:[],total:0,page:r,size:n}):t.value}catch(a){return console.error("Error fetching grants:",a),{items:[],total:0,page:r,size:n}}},async getGrantsYoy(e){try{const t=`/nonprofits/details/${e}/grants/yoy`,{data:r,error:n}=await Cc(t);return n.value?void(404!==n.value.statusCode&&console.error("Error fetching grants YoY:",n.value)):r.value??void 0}catch(t){return void console.error("Error fetching grants YoY:",t)}},async getGrantsMap(e){try{const t=`/nonprofits/details/${e}/grants/map`,{data:r,error:n}=await Cc(t);return n.value?(console.error("Error fetching grants map:",n.value),[]):r.value}catch(t){return console.error("Error fetching grants map:",t),[]}},async getGranteesMap(e){try{const t=`/nonprofits/details/${e}/grantees/map`,{data:r,error:n}=await Cc(t);return n.value?(console.error("Error fetching grantees map:",n.value),[]):r.value}catch(t){return console.error("Error fetching grantees map:",t),[]}},async getLatestPrograms(e){try{const t=`/nonprofits/details/${e}/programs`,{data:r,error:n}=await Cc(t);return n.value?void(404!==n.value.statusCode&&console.error("Error fetching nonprofit programs:",n.value)):r.value??void 0}catch(t){return void console.error("Error fetching nonprofit programs:",t)}},async getProgramsForYear(e,t){try{const r=`/nonprofits/details/${e}/programs/${t}`,{data:n,error:o}=await Cc(r);return o.value?void(404!==o.value.statusCode&&console.error("Error fetching nonprofit programs for year:",o.value)):n.value??void 0}catch(r){return void console.error("Error fetching nonprofit programs for year:",r)}}
2,async getRelatedContent(e,t={}){try{const r=`/nonprofits/details/${e}/related`,n={...Bs(t)},{data:o,error:a}=await Cc(r,{params:n});return a.value?(console.error("Error fetching related content:",a.value),{ein:e,nonprofits:[],articles:[]}):o.value}catch(r){throw console.error("Error fetching related content:",r),r}},async getRelatedNonprofits(e,t={}){try{this.cancelExistingRequest(e),this.abortControllers[e]=new AbortController;const r=`/nonprofits/details/${e}/related/nonprofits`,n={...Bs(t)},{data:o,error:a}=await Cc(r,{params:n},this.abortControllers[e]);if(a.value){const e=a.value.message||a.value;if("string"==typeof e&&e.includes(zc))throw new Error("Request was cancelled");return console.error("Error fetching related nonprofits:",a.value),[]}return o.value?.slice(0,6)||[]}catch(r){if("AbortError"===r.name||r.message&&r.message.includes("cancelled"))throw new Error("Request was cancelled");throw console.error("Error fetching related nonprofits:",r),r}},async getLogos(e){if(!Array.isArray(e)||0===e.length)return{};try{const{data:t,error:r}=await Cc("/nonprofits/logos",{params:{eins:e}});return r.value?(console.error("Error fetching logos:",r.value),{}):E(t)?.logos}catch(t){return console.error("Error fetching logos:",t),{}}},async searchNonprofits(e,t){try{this.cancelPreviousSearchRequest(),this.searchAbortController=new AbortController;const r="/nonprofits/advanced",n={...Bs(e),...t},{data:o,error:a}=await Cc(r,{params:n},this.searchAbortController);if(this.searchAbortController=null,a.value){const e=a.value.message||a.value;if("string"==typeof e&&e.includes(zc))return;if(429===a.value.statusCode)throw a.value;return console.error("Error searching nonprofits:",a.value),{items:[],total:0,page:1,size:10}}return o.value}catch(r){if("AbortError"===r.name||r.message&&r.message.includes("cancelled"))return void console.log("Search request was cancelled");if(console.error("Error searching nonprofits:",r),429===r.response?.status)throw r;return{items:[],total:0,page:1,size:10}}},async findByName(e){try{const{data:t,error:r}=await Cc("/nonprofits/name",{params:{q:e}});return r.value?(console.error("Error fetching nonprofits by name:",r.value),[]):E(t)}catch(t){return console.error("Error fetching nonprofits by name:",t),[]}},async nonprofitTypeahead(e,t={}){const{limit:r=10,abortController:n}=t;if(e.trim().length<2)return[];try{const{data:t,error:o}=await Cc("/typeahead/nonprofits",{params:{q:e,limit:r}},n);if(o.value){const e=o.value.message||"";if("string"==typeof e&&e.includes(zc))return[];if(429===o.value.statusCode)throw new Mc;return console.error("Nonprofit typeahead error:",o.value),[]}return E(t)?.results??[]}catch(o){if(o instanceof Mc)throw o;if("AbortError"===o?.name)return[];if(429===o?.response?.status||429===o?.statusCode)throw new Mc;return console.error("Nonprofit typeahead error:",o),[]}},async typeahead(e){try{const{data:t,error:r}=await Cc("/nonprofits/typeahead",{params:{q:e}});return r.value?(console.error("Nonprofit typeahead error:",r.value),[]):E(t)?.items??[]}catch(t){return console.error("Nonprofit typeahead error:",t),[]}},async batchLoadNonprofits(e){try{const{data:t,error:r}=await Cc("/nonprofits/details/batch",{method:"POST",body:{eins:e}});return r.value?(console.error("Error batch loading nonprofits:",r.value),[]):E(t)}catch(t){return console.error("Error batch loading nonprofits:",t),[]}},async getImpactStories(e,t={},r={page:1,size:10}){try{const n=`/nonprofits/details/${e}/impact-stories`,o={...Bs(t),...r},{data:a,error:s}=await Cc(n,{params:o});return s.value?(console.error("Error fetching impact stories:",s.value),{ein:e,items:[],total:0,page:r.page,size:r.size}):a.value}catch(n){return console.error("Error fetching impact stories:",n),{ein:e,items:[],total:0,page:r.page,size:r.size}}},async getNonprofitPosts(e,t={},r={page:1,size:10}){try{const n=`/nonprofits/details/${e}/posts`,o={...Bs(t),...r},{data:a,error:s}=await Cc(n,{params:o});if(s.value)return console.error("Error fetching nonprofit posts:",s.value),{ein:e,items:[],total:0,page:r.page,size:r.size};const i=a.value;return{...i,items:i.items.map(Hc)}}catch(n){return console.error("Error fetching nonprofit posts:",n),{ein:e,items:[],total:0,page:r.page,size:r.size}}},getDetailsUrl:e=>`${dr().public.ggUrl}/nonprofit/${e}`};function Wc(){return Vc}const Gc={async getQuota(e){try{const{data:t,error:r}=await Cc("/quota",{params:{quota_type:e}});if(r.value){const e=r.value?.data?.detail||r.value?.message||"Failed to fetch quota information";return console.error("Error fetching quota:",r.value),{data:null,error:e}}return{data:t.value,error:null}}catch(t){return console.error("Error fetching quota:",t),{data:null,error:t.message||"An unexpected error occurred"}}}};function Kc(){return Gc}const Qc={async submitFeedback(e,t,r){try{const{error:n}=await Cc("/feedback/",{method:"POST",body:{message_id:e,thumbs:t,message:r}});return n.value?(console.error("Chat feedback submit error:",n.value),{ok:!1,error:n.value}):{ok:!0,error:null}}catch(n){return console.error("Chat feedback submit exception:",n),{ok:!1,error:n}}}},Yc={async query(e,t,r,n,o){try{const a={query:e};t&&(a.session_id=t),r&&Object.assign(a,r),n&&(a.intelligence_level=n),o&&(a.research_record=!0);const{data:s,error:i}=await Cc("/chat-runs/query",{method:"POST",body:a});if(i.value){const e=i.value?.data?.detail,t="string"==typeof e&&e?e:"Failed to submit query";return console.error("Chat Run query error:",i.value),{data:null,error:{message:t,code:"string"==typeof e&&e?e:void 0}}}return{data:s.value,error:null}}catch(a){return console.error("Chat Run query exception:",a),{data:null,error:a}}},async listRuns(e=10,t=0){try{const{data:r,error:n}=await Cc("/chat-runs/runs",{params:{limit:e,offset:t}});return n.value?(console.error("Chat Run list runs error:",n.value),{data:null,error:n.value}):{data:r.value,error:null}}catch(r){return console.error("Chat Run list runs exception:",r),{data:null,error:r}}},async getRunById(e){try{const{data:t,error:r}=await Cc(`/chat-runs/runs/${e}`);return r.value?(console.error("Chat Run get run error:",r.value),{data:null,error:r.value}):{data:t.value,error:null}}catch(t){return console.error("Chat Run get run exception:",t),{data:null,error:t}}},async listSessions(e=10,t=0){try{const{data:r,error:n}=await Cc("/chat-runs/sessions",{params:{limit:e,offset:t}});return n.value?(console.error("Chat Run list sessions error:",n.value),{data:null,error:n.value}):{data:r.value,error:null}}catch(r){return console.error("Chat Run list sessions exception:",r),{data:null,error:r}}},async listSessionRuns(e,t=50,r=0){try{const{data:n,error:o}=await Cc(`/chat-runs/sessions/${e}/runs`,{params:{limit:t,offset:r}});return o.value?(console.error("Chat Run list session runs error:",o.value),{data:null,error:o.value}):{data:n.value,error:null}}catch(n){return console.error("Chat Run list session runs exception:",n),{data:null,error:n}}},async getSession(e){try{const{data:t,error:r}=await Cc(`/chat-runs/sessions/${e}`);return r.value?(console.error("Chat Run get session error:",r.value),{data:null,error:r.value}):{data:t.value,error:null}}catch(t){return console.error("Chat Run get session exception:",t),{data:null,error:t}}},async setSessionVisibility(e,t,r,n){try{const{data:o,error:a}=await Cc(`/chat-runs/sessions/${e}
2/visibility`,{method:"PUT",body:{is_public:t,title:r,description:n}});return a.value?(console.error("Chat Run set visibility error:",a.value),{data:null,error:a.value}):{data:o.value,error:null}}catch(o){return console.error("Chat Run set visibility exception:",o),{data:null,error:o}}},async getBlockData(e,t){try{const{data:r,error:n}=await Cc(`/chat-runs/runs/${e}/blocks/${t}/data`);return n.value?(console.error("Chat Run get block data error:",n.value),{data:null,error:n.value}):{data:r.value,error:null}}catch(r){return console.error("Chat Run get block data exception:",r),{data:null,error:r}}},async hydrateBlocks(e,t){try{const{data:r,error:n}=await Cc(`/chat-runs/sessions/${e}/blocks/hydrate`,{method:"POST",body:{block_ids:t}});return n.value?(console.error("Chat Run hydrate blocks error:",n.value),{data:null,error:n.value}):{data:r.value,error:null}}catch(r){return console.error("Chat Run hydrate blocks exception:",r),{data:null,error:r}}},async exportBlock(e,t){try{const{data:r,error:n}=await Cc(`/chat-runs/runs/${e}/blocks/${t}/export`,{method:"POST"});if(n.value){const e=n.value?.data?.detail,t="string"==typeof e&&e?e:"Failed to export results";return console.error("Chat Run export block error:",n.value),{data:null,error:{message:t}}}return{data:r.value,error:null}}catch(r){return console.error("Chat Run export block exception:",r),{data:null,error:r}}},async getSuggestions(e){try{const{data:t,error:r}=await Cc(`/chat-runs/runs/${e}/suggestions`,{method:"POST"});return r.value?(console.error("Chat Run get suggestions error:",r.value),{data:null,error:r.value}):{data:t.value,error:null}}catch(t){return console.error("Chat Run get suggestions exception:",t),{data:null,error:t}}}};function Jc(){return Yc}let Xc=null,Zc=null;const eu=new Map;let tu=null,ru=0;function nu(e){const t=[];for(const[r,n]of eu){if(t.length>=e)break;t.push(n),eu.delete(r)}return t}function ou(){eu.clear(),null!==tu&&(clearTimeout(tu),tu=null)}const au=new Set(["SUCCESS","NO_DATA"]);function su(e){return!!e&&au.has(e)}const iu=Ke("chatRun",{state:()=>({query:"",loading:!1,error:null,currentRunId:null,selectedLevel:null,researchRecordChoice:null,recordOpenRequest:null,sessionId:null,viewer:"owner",isPublic:!1,sessionSource:null,shareTitle:null,shareDescription:null,readOnly:!1,runs:[],runsLoading:!1,runsHasMore:!1,runsInitialized:!1,runsError:null,runBlocks:{},runThinking:{},runIncomplete:{},blockData:{},blockDataLoading:{},blockDataError:{},runSuggestions:{},runSuggestionsLoading:{},feedbackStatuses:{},sessions:[],sessionsLoading:!1,sessionsHasMore:!1,sessionsInitialized:!1,quota:null}),getters:{standardAvailable:e=>!e.quota?.available_levels||e.quota.available_levels.includes("standard"),intelligenceLevel(e){return e.selectedLevel??(this.standardAvailable?"standard":"low")},researchRecordEnabled(e){const t=xp();return!(!t.hasSubscription&&!Fc(t.user?.email))&&(e.researchRecordChoice??!0)},quotaExceeded:e=>null!==e.quota&&e.quota.remaining<=0,quotaResetDate:e=>e.quota?.resets_at?new Date(e.quota.resets_at).toLocaleDateString(void 0,{month:"short",day:"numeric"}):null,hasRuns:e=>e.runs.length>0,hasSessions:e=>e.sessions.length>0},actions:{startNewSession(){this.sessionId=null,this.selectedLevel=null,this.researchRecordChoice=null,this.recordOpenRequest=null,this.viewer="owner",this.isPublic=!1,this.sessionSource=null,this.shareTitle=null,this.shareDescription=null,this.readOnly=!1,this.runs=[],this.runsInitialized=!1,this.runBlocks={},this.runThinking={},this.runIncomplete={},this.blockData={},this.blockDataLoading={},this.blockDataError={},ou(),this.runSuggestions={},this.runSuggestionsLoading={},this.query="",this.error=null,this.currentRunId=null,this.loading=!1,this.sessionsInitialized=!1,this.loadSessions()},abortPolling(){Xc&&(Xc.abort(),Xc=null),this.loading=!1},pollInProgressRuns(){this.stopHistoryPolling();const e=async()=>{const t=this.runs.filter((e=>"IN_PROGRESS"===e.status));if(0===t.length)return void(Zc=null);const r=Jc();for(const e of t){const{data:t}=await r.getRunById(e.id);t&&(this.runBlocks[e.id]=t.blocks,this.runThinking[e.id]=t.thinking,void 0===e.context&&void 0!==t.context&&(e.context=t.context),"IN_PROGRESS"!==t.status&&(this.updateRunInHistory(e.id,t.status,t.row_count,t.warning,t.upgrade_prompt,t.intelligence_level,t.research_record),this.runIncomplete[e.id]=t.incomplete,this.runThinking[e.id]=null,su(t.
2status)&&this.fetchSuggestions(e.id)))}Zc=this.runs.some((e=>"IN_PROGRESS"===e.status))?setTimeout(e,2e3):null};e()},stopHistoryPolling(){Zc&&(clearTimeout(Zc),Zc=null)},async loadQuota(){const{data:e}=await Kc().getQuota("chat_run_queries");e&&(this.quota=e)},async submitQuery(e,t){const r=e??this.query;if(!r.trim())return null;if(this.readOnly)return Js().showSnackbar({message:"public"===this.viewer?"This is a shared conversation — you can view it but not send messages.":"You're viewing another user's conversation and can't send messages.",color:"info",timeout:4e3}),null;pu().trackChatMessageSent(r),this.loading=!0,this.error=null;const n=new AbortController;Xc=n;const o=Jc(),a=this.intelligenceLevel,s=this.researchRecordEnabled;try{const{data:e,error:i}=await o.query(r,this.sessionId??void 0,t,a,s);if(i||!e?.run_id){if("CHAT_TURN_LIMIT"===i?.code)return this.error="This conversation has reached its length limit. Start a new conversation to keep exploring.",Js().showSnackbar({message:this.error,color:"info",timeout:6e3}),null;if(await this.loadQuota(),this.quotaExceeded){const e=this.quotaResetDate,t=this.quota?.limit??25;this.error=`You've used all ${t} queries.${e?` Your quota resets on ${e}.`:""}`}else this.error=i?.message||"Failed to submit query. Please try again.";return Js().showSnackbar({message:this.error,color:"error",timeout:5e3}),null}const l=e.run_id;return this.currentRunId=l,e.session_id&&(this.sessionId=e.session_id),this.quota&&(this.quota={...this.quota,used:this.quota.used+1,remaining:Math.max(0,this.quota.remaining-1)}),this.addRunToHistory({id:l,session_id:this.sessionId,user_prompt:r,status:"IN_PROGRESS",row_count:null,warning:null,upgrade_prompt:!1,created_at:(new Date).toISOString(),intelligence_level:a,research_record:s,context:e.context??null}),await new Promise((e=>{const t=g((()=>{const e=this.runs.find((e=>e.id===l));return e?e.status:"gone"}),(r=>{"gone"!==r&&"IN_PROGRESS"===r||(t(),e())}));n.signal.addEventListener("abort",(()=>{t(),e()}))})),l}catch(i){return this.error="An unexpected error occurred. Please try again.",Js().showSnackbar({message:this.error,color:"error",timeout:5e3}),null}finally{Xc===n&&(Xc=null,this.loading&&(this.loading=!1))}},async loadRuns(e=!1){if(e||!this.runsInitialized){this.runsLoading=!0,this.runsError=null,e&&(this.runs=[]);try{const{data:e,error:t}=await Jc().listRuns(20,0);if(t)return void(this.runsError="Failed to load query history");e&&(this.runs=e.runs,this.runsHasMore=e.has_more,this.runsInitialized=!0,this.loadRunBlocks())}catch(t){this.runsError="Failed to load query history"}finally{this.runsLoading=!1}}},async loadMoreRuns(){if(!this.runsLoading&&this.runsHasMore){this.runsLoading=!0;try{const e=this.runs.length,{data:t,error:r}=await Jc().listRuns(20,e);if(r)return void Js().showSnackbar({message:"Failed to load more history",color:"error",timeout:3e3});t&&(this.runs.push(...t.runs),this.runsHasMore=t.has_more,this.loadRunBlocks())}catch(e){Js().showSnackbar({message:"Failed to load more history",color:"error",timeout:3e3})}finally{this.runsLoading=!1}}},async loadRunBlocks(){const e=Jc(),t=this.runs.filter((e=>"IN_PROGRESS"!==e.status&&!(e.id in this.runBlocks))).map((e=>e.id));0!==t.length&&await Promise.allSettled(t.map((async t=>{const{data:r}=await e.getRunById(t);r&&(this.runBlocks[t]=r.blocks,this.runIncomplete[t]=r.incomplete)})))},async loadSessions(){if(!yp().trialMode&&!this.sessionsInitialized){this.sessionsLoading=!0;try{const{data:e,error:t}=await Jc().listSessions(10,0);if(t||!e)return;this.sessions=e.sessions,this.sessionsHasMore=e.has_more,this.sessionsInitialized=!0}catch{}finally{this.sessionsLoading=!1}}},async loadMoreSessions(){if(!yp().trialMode&&!this.sessionsLoading&&this.sessionsHasMore){this.sessionsLoading=!0;try{const e=this.sessions.length,{data:t,error:r}=await Jc().listSessions(20,e);if(r||!t)return;this.sessions.push(...t.sessions),this.sessionsHasMore=t.has_more}catch{}finally{this.sessionsLoading=!1}}},async loadSession(e){this.sessionId=e,this.runs=[],this.runBlocks={},this.runThinking={},this.runIncomplete={},this.blockData={},this.blockDataLoading={},this.blockDataError={},ou(),this.runSuggestions={},this.runSuggestionsLoading={},this.runsLoading=!0,this.error=null;try{const{data:t,error:r}=await Jc().getSession(e);if(r||!t){const e=r?.response?.status;return"number"==typeof e&&e>=400&&e<500?(Js().showSnackbar({message:yp().trialMode?"This conversation isn't available. Create a free account to save and revisit your conversations.":"This conversation isn't available.",color:"info",timeout:7e3}),void(await Cr("/",{replace:!0}))):void(this.error="Failed to load conversation")}this.runs=t.runs.map((e=>({id:e.id,session_id:e.session_id,user_prompt:e.user_prompt,status:e.status,row_count:e.row_count,warning:e.warning,upgrade_prompt:e.upgrade_prompt,created_at:e.created_at??"",intelligence_level:e.intelligence_level??null,research_record:e.research_record??!1,context:e.context??null,response_markdown:e.response_markdown??null})));for(const e of t.runs)this.runBlocks[e.id]=e.blocks,this.runIncomplete[e.id]=e.incomplete,this.runThinking[e.id]=e.thinking;this.runsHasMore=!1,this.viewer=t.viewer??(t.read_only?"admin":"owner"),this.isPublic="public"===t.visibility,this.sessionSource=t.source??null,this.shareTitle=t.share?.title??null,this.shareDescription=t.share?.description??null,this.readOnly=t.read_only??!1,this.runsInitialized=!0;const n=this.runs[this.runs.length-1];!this.readOnly&&n&&su(n.status)&&this.fetchSuggestions(n.id)}catch{this.error="Failed to load conversation"}finally{this.runsLoading=!1}},async setVisibility(e,t,r){if(!this.sessionId)return!1;const{data:n,error:o}=await Jc().setSessionVisibility(this.sessionId,e,t,r);if(o||!n)return Js().showSnackbar({message:"Could not update sharing. Please try again.",color:"error",timeout:4e3}),!1;this.isPublic=n.is_public,this.shareTitle=n.title,this.shareDescription=n.description;const a=this.sessions.find((e=>e.session_id===this.sessionId));return a&&(a.is_public=n.is_public),!0},requestHydration(e,t){"text"!==t.type&&"chart"!==t.type&&(t.id in this.blockData||this.blockDataLoading[t.id]||(this.blockDataLoading[t.id]=!0,eu.set(t.i
2d,{runId:e,block:t}),null===tu&&(tu=setTimeout((()=>{tu=null,this._drainHydrationQueue()}),175))))},_drainHydrationQueue(){for(;ru<1&&eu.size>0;)ru++,this._runHydrationWorker()},async _runHydrationWorker(){try{for(;;){const e=nu(5);if(0===e.length)break;await this._hydrateBatch(e)}}finally{ru--}},async _hydrateBatch(e){const t=this.sessionId,r=e.map((e=>e.block.id));try{if(!t){for(const e of r)this.blockDataError[e]=!0;return}const{data:n,error:o}=await Jc().hydrateBlocks(t,r),a=n?.results??{};for(const{runId:t,block:r}of e){if(!this.runs.some((e=>e.id===t)))continue;const e=o?void 0:a[String(r.id)];e&&!e.error_type&&e.data?(delete this.blockDataError[r.id],this.blockData[r.id]=e.data,e.data.nonprofits&&this.hydrateBlockLogos(r.id)):this.blockDataError[r.id]=!0}}catch(n){console.error("[chatRun] _hydrateBatch unexpected error",r,n);for(const e of r)this.blockDataError[e]=!0}finally{for(const e of r)delete this.blockDataLoading[e]}},retryBlockHydration(e,t){delete this.blockDataError[t.id],this.requestHydration(e,t)},async hydrateBlockLogos(e){const t=this.blockData[e]?.nonprofits;if(!t)return;const r=Object.entries(t).filter((([,e])=>!e.logo)).map((([e])=>e));if(0!==r.length)try{const e=await Wc().getLogos(r);for(const[r,n]of Object.entries(e))n&&t[r]&&(t[r].logo=n)}catch(n){console.warn("[chatRun] hydrateBlockLogos failed",e,n)}},async fetchSuggestions(e){if(!(e in this.runSuggestions)&&!this.runSuggestionsLoading[e]){this.runSuggestionsLoading[e]=!0;try{const{data:t}=await Jc().getSuggestions(e);if(!this.runs.some((t=>t.id===e)))return;this.runSuggestions[e]=t?.suggestions??[]}catch(t){console.error("fetchSuggestions unexpected error",t),this.runs.some((t=>t.id===e))&&(this.runSuggestions[e]=[])}finally{delete this.runSuggestionsLoading[e]}}},async submitFeedback(e,t,r){if(this.readOnly)return Js().showSnackbar({message:"public"===this.viewer?"This is a shared conversation — you can view it but not leave feedback.":"You're viewing another user's conversation and can't change it.",color:"info",timeout:4e3}),!1;const{ok:n}=await Qc.submitFeedback(e,t,r);return n?(this.feedbackStatuses[e]=t,Js().showSnackbar({message:"Thanks for your feedback!",color:"success",timeout:3e3}),!0):(Js().showSnackbar({message:"Could not submit feedback. Please try again.",color:"error",timeout:4e3}),!1)},updateRunInHistory(e,t,r,n,o,a,s){const i=this.runs.find((t=>t.id===e));i&&(i.status=t,void 0!==r&&(i.row_count=r),void 0!==n&&(i.warning=n),void 0!==o&&(i.upgrade_prompt=o),void 0!==a&&(i.intelligence_level=a),void 0!==s&&(i.research_record=s))},addRunToHistory(e){this.runs.push(e),this.runsInitialized=!0}}});var lu=(e=>(e.ARTICLE="ARTICLE",e.NONPROFIT="NONPROFIT",e))(lu||{});const cu="pendingFavorite";function uu(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}function du(e){window._hsq=window._hsq||[],window._hsq.push(e)}const pu=Ke("analytics",{state:()=>({}),actions:{trackEvent(e){const t={...e},r=xp().user?.ggUserId,n=iu().sessionId;r&&(t.gg_person_id=r),n&&(t.gg_session_id=n),uu(t)},beginUserSession(){const e=xp(),t=!!e.user.email?.endsWith("@tester.givingcompass.org");var r;uu({userId:e.user.tokenClaims?.sub,study_user:t}),(r=e.user.email)&&du(["identify",{email:r}]),e.user.roles?.includes(Fs.PRO)&&this.trackEvent({event:jc.PRO_USER}),e.user.roles?.length>0&&this.trackEvent({event:jc.USER_ROLE,user_roles:e.user?.roles})},trackArticleRead(e){this.trackEvent({event:jc.READ_ARTICLE,article_id:e})},trackArticleDiscussed(e){this.trackEvent({event:jc.DISCUSS_ARTICLE,article_id:e})},trackContentSaved(e,t){const r={[lu.ARTICLE]:jc.SAVE_ARTICLE,[lu.NONPROFIT]:jc.SAVE_NONPROFIT}[t];if(!r)return console.error(`Unsupported content type: ${t}`);const n={event:r};switch(t){case lu.ARTICLE:n.article_id=e;break;case lu.NONPROFIT:n.nonprofit_ein=e}this.trackEvent(n)},trackChatMessageSent(e){this.trackEvent({event:jc.CHAT_MESSAGE,user_message:e})},trackClickedNudge(e,t="suggestion",r){this.trackEvent({event:jc.CLICK_NUDGE,type:t,nudge_text:e,user_message:r||vp().lastUserMessage?.text||void 0})},trackDonationClicked(e){this.trackEvent({event:jc.CLICK_DONATE,nonprofit_ein:e})},trackPageView(e){!function(e){e&&(du(["setPath",e]),du(["trackPageView"]))}(e)},trackImpactReportDownload(e){this.trackEvent({event:jc.IMPACT_REPORT_DOW
2NLOAD,nonprofit_ein:e.ein,report_source:e.source,report_year:e.reportYear??null,is_trial:!!e.isTrial})},trackSelectRecentSession(e){this.trackEvent({event:jc.SELECT_RECENT_SESSION,chat_session_id:e})},trackProUpgradeShown(e){this.trackEvent({event:jc.PRO_UPGRADE_SHOWN,location:e})},trackProUpgradeClicked(e){this.trackEvent({event:jc.PRO_UPGRADE_CLICKED,location:e})},trackSignupClick(e,t=null){try{sessionStorage.setItem("signup_origin",e)}catch(r){}this.trackEvent({event:jc.SIGNUP_CLICK,signup_location:e,signup_variant:t})}}}),hu={async submitFeedback(e){try{const t=fc(),{error:r}=await Cc(t.API_FEEDBACK_URL,{method:"POST",body:{message:e.text,thumbs:e.thumbs,message_id:e.originalMessageId}});return r.value?(console.error("Error submitting feedback:",r.value),{type:Ys.Error,sender:"assistant",text:r.value.message||"An error occurred when submitting feedback"}):{type:Ys.Dismissible,sender:"system",text:"Thank you for your feedback!"}}catch(t){return console.error(t),{type:Ys.Error,sender:"assistant",text:t.message}}}};function fu(e){return e?.startsWith("/onboarding")}function mu(e){return e?`/nonprofit/${e}`:"/learning-center"}function gu(e){return`/lists/${e}`}function vu(e){return`/article/${e}`}function yu(e){try{const t=new URL(e);return`${t.pathname}${t.search}${t.hash}`}catch(t){return console.error("Invalid URL:",t),""}}function _u(e){return function(e){if(e&&e.length>0){const t=e.toLowerCase().trim();return/^https?:\/\//.test(t)}return!1}(e)?e:"https://"+e}function bu(e){return e?_u(e):e}function wu(e){return e?e.trim().replace(/^https?:\/\//i,"").replace(/^www\./i,""):""}function Eu(e){const t=/^https?:\/\//i.test(e);try{const r=t?e:`http://example.com${e}`;return new URL(r).pathname.split("/").filter((e=>e.length>0)).includes("partners")}catch(r){return console.error("Invalid URL:",r),!1}}function Su(e,t=""){if(!e)return t;try{const r=dr?.()?.public.ggUrl||"https://gg.givingcompass.org",n=new URL(e,r).pathname.split("/").filter(Boolean);return decodeURIComponent(n.pop()||t)}catch{return(e.split("/").pop()||"").split("?")[0].split("#")[0]||t}}const ku="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%2038.751%2035'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eEFC8CE38-13C8-4B32-AC9D-9F9759D8D9B0%3c/title%3e%3cdefs%3e%3cpolygon%20id='a'%20points='34.706%200%2034.706%2035%203.4658e-16%2035%203.4658e-16%200'/%3e%3c/defs%3e%3cpath%20d='m27.379%2032.713%200.32319-7.4971c0.01595-0.36557-0.16957-0.71125-0.48436-0.90357l-6.6174-4.0486c-0.87723-0.53634-0.49192-1.8726%200.53977-1.8726h16.583c0.82602%200%201.3129%200.91517%200.84449%201.5866l-9.3205%2013.353c-0.58426%200.83642-1.9123%200.39707-1.8686-0.61758'%20fill='%2300AB84'/%3e%3cpath%20d='m17.722%2028.367c-6.2539%200-11.289-5.1512-10.992-11.392%200.26443-5.5499%204.8143-10.054%2010.434-10.328%204.7404-0.23128%208.8621%202.5026%2010.635%206.4866%200.14271%200.32081%200.4617%200.52971%200.81595%200.52888l5.0678-0.0033c0.69423%200%201.1803-0.66566%200.97545-1.3214-2.29-7.3372-9.3331-12.615-17.58-12.327-9.3901%200.32744-16.946%207.9613-17.077%2017.239-0.13851%209.7793%207.8481%2017.75%2017.72%2017.75%201.6663%200%203.2781-0.22714%204.8067-0.65239%200.4256-0.11771%200.72445-0.49572%200.74292-0.93175l0.23253-5.3974c0.02434-0.55955-0.56327-0.9359-1.0762-0.6955-1.4271%200.66897-3.022%201.0437-4.706%201.0437'%20fill='%23152F5F'/%3e%3c/svg%3e",Pu=async()=>{try{const{signIn:e}=Ic();await e("auth0",{callbackUrl:window.location.href},{prompt:"select_account",max_age:"0"})}catch(e){console.error("Failed to initiate Auth0 login:",e)}},Ru=async()=>{try{const{signIn:e}=Ic();await e("auth0",{callbackUrl:window.location.href},{screen_hint:"signup"})}catch(e){console.error("Failed to initiate Auth0 signup:",e)}},Au=async e=>{try{const{signIn:t}=Ic(),r=`/trial/preview/${encodeURIComponent(e)}`;await t("auth0",{callbackUrl:r},{screen_hint:"signup",preview_code:e})}catch(t){console.error("Failed to initiate Auth0 preview signup:",t)}},Tu=async e=>{try{const{signIn:t}=Ic(),r=`/enterprise/join/${encodeURIComponent(e)}`;await t("auth0",{callbackUrl:r},{screen_hint:"signup",enterprise_join_token:e})}catch(t){console.error("Failed to initiate Auth0 enterprise-join signup:",t)}},Iu=async e=>{const{signIn:t}=Ic();await t("auth0",{callbackUrl:e||window.location.href})},Cu=$({border:[Boolean,Number,String]},"border");function Ou(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D();return{borderClasses:k((()=>{const r=e.border;return!0===r||""===r?`${t}--border`:"string"==typeof r||0===r?String(r).split(" ").map((e=>`border-${e}`)):[]}))}}const xu=[null,"default","comfortable","compact"],Lu=$({density:{type:String,default:"default",validator:e=>xu.includes(e)}},"density");function Nu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D();return{densityClasses:i((()=>`${t}
2--density-${e.density}`))}}const Uu=$({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function $u(e){return{elevationClasses:i((()=>{const t=c(e)?e.value:e.elevation;return null==t?[]:[`elevation-${t}`]}))}}const Du=$({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function ju(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D();return{roundedClasses:k((()=>{const r=c(e)?e.value:e.rounded,n=[];if((c(e)?e.value:e.tile)||!1===r)n.push("rounded-0");else if(!0===r||""===r)n.push(`${t}--rounded`);else if("string"==typeof r||0===r)for(const e of String(r).split(" "))n.push(`rounded-${e}`);return n}))}}const Fu=$({tag:{type:[String,Object,Function],default:"div"}},"tag");function Mu(e){return j((()=>{const t=l(e),r=[],n={};if(t.background)if(F(t.background)){if(n.backgroundColor=t.background,!t.text&&M(t.background)){const e=B(t.background);if(null==e.a||1===e.a){const t=z(e);n.color=t,n.caretColor=t}}}else r.push(`bg-${t.background}`);return t.text&&(F(t.text)?(n.color=t.text,n.caretColor=t.text):r.push(`text-${t.text}`)),{colorClasses:r,colorStyles:n}}))}function Bu(e){const{colorClasses:t,colorStyles:r}=Mu((()=>({text:l(e)})));return{textColorClasses:t,textColorStyles:r}}function zu(e){const{colorClasses:t,colorStyles:r}=Mu((()=>({background:l(e)})));return{backgroundColorClasses:t,backgroundColorStyles:r}}const qu=["elevated","flat","tonal","outlined","text","plain"];function Hu(e,t){return q(V,null,[e&&q("span",{key:"overlay",class:H(`${t}__overlay`)},null),q("span",{key:"underlay",class:H(`${t}__underlay`)},null)])}const Vu=$({color:String,variant:{type:String,default:"elevated",validator:e=>qu.includes(e)}},"variant");function Wu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D();const r=i((()=>{const{variant:r}=l(e);return`${t}--variant-${r}`})),{colorClasses:n,colorStyles:o}=Mu((()=>{const{variant:t,color:r}=l(e);return{[["elevated","flat"].includes(t)?"background":"text"]:r}}));return{colorClasses:n,colorStyles:o,variantClasses:r}}const Gu=$({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...Cu(),...G(),...Lu(),...Uu(),...Du(),...Fu(),...W(),...Vu()},"VBtnGroup"),Ku=K()({name:"VBtnGroup",props:Gu(),setup(e,t){let{slots:r}=t;const{themeClasses:n}=Q(e),{densityClasses:o}=Nu(e),{borderClasses:a}=Ou(e),{elevationClasses:s}
2=$u(e),{roundedClasses:l}=ju(e);Y({VBtn:{height:i((()=>"horizontal"===e.direction?"auto":null)),baseColor:i((()=>e.baseColor)),color:i((()=>e.color)),density:i((()=>e.density)),flat:!0,variant:i((()=>e.variant))}}),J((()=>X(e.tag,{class:H(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},n.value,a.value,o.value,s.value,l.value,e.class]),style:Z(e.style)},r)))}}),Qu=$({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Yu=$({value:null,disabled:Boolean,selectedClass:String},"group-item");function Ju(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=ee("useGroupItem");if(!n)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const o=te();P(Symbol.for(`${t.description}:id`),o);const a=s(t,null);if(!a){if(!r)return a;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const l=i((()=>e.value)),c=k((()=>!(!a.disabled.value&&!e.disabled)));a.register({id:o,value:l,disabled:c},n),p((()=>{a.unregister(o)}));const u=k((()=>a.isSelected(o))),d=k((()=>a.items.value[0].id===o)),h=k((()=>a.items.value[a.items.value.length-1].id===o)),f=k((()=>u.value&&[a.selectedClass.value,e.selectedClass]));return g(u,(e=>{n.emit("group:selected",{value:e})}),{flush:"sync"}),{id:o,isSelected:u,isFirst:d,isLast:h,toggle:()=>a.select(o,!u.value),select:e=>a.select(o,e),selectedClass:f,value:l,disabled:c,group:a}}function Xu(e,r){let n=!1;const o=t([]),a=re(e,"modelValue",[],(e=>null==e?[]:Zu(o,ae(e))),(t=>{const r=function(e,t){const r=[];return t.forEach((t=>{const n=e.findIndex((e=>e.id===t));if(~n){const t=e[n];r.push(null!=t.value?t.value:n)}})),r}(o,t);return e.multiple?r:r[0]})),s=ee("useGroup");function l(){const t=o.find((e=>!e.disabled));t&&"force"===e.mandatory&&!a.value.length&&(a.value=[t.id])}function c(t){if(e.multiple,a.value.length){const e=a.value[0],r=o.findIndex((t=>t.id===e));let n=(r+t)%o.length,s=o[n];for(;s.disabled&&n!==r;)n=(n+t)%o.length,s=o[n];if(s.disabled)return;a.value=[o[n].id]}else{const e=o.find((e=>!e.disabled));e&&(a.value=[e.id])}}m((()=>{l()})),p((()=>{n=!0})),ne((()=>{for(let e=0;e<o.length;e++)o[e].useIndexAsValue&&(o[e].value=e)}));const u={register:function(e,t){const n=e,a=Symbol.for(`${r.description}:id`),i=se(a,s?.vnode).indexOf(t);null==E(n.value)&&(n.value=i,n.useIndexAsValue=!0),i>-1?o.splice(i,0,n):o.push(n)},unregister:function(e){if(n)return;l();const t=o.findIndex((t=>t.id===e));o.splice(t,1)},selected:a,select:function(t,r){const n=o.find((e=>e.id===t));if(!r||!n?.disabled)if(e.multiple){const n=a.value.slice(),o=n.findIndex((e=>e===t)),s=~o;if(r=r??!s,s&&e.mandatory&&n.length<=1)return;if(!s&&null!=e.max&&n.length+1>e.max)return;o<0&&r?n.push(t):o>=0&&!r&&n.splice(o,1),a.value=n}else{const n=a.value.includes(t);if(e.mandatory&&n)return;if(!n&&!r)return;a.value=r??!n?[t]:[]}},disabled:i((()=>e.disabled)),prev:()=>c(o.length-1),next:()=>c(1),isSelected:e=>a.value.includes(e),selectedClass:i((()=>e.selectedClass)),items:i((()=>o)),getItemIndex:e=>function(e,t){const r=Zu(e,[t]);return r.length?e.findIndex((e=>e.id===r[0])):-1}(o,e)};return P(r,u),u}function Zu(e,t){const r=[];return t.forEach((t=>{const n=e.find((e=>oe(t,e.value))),o=e[t];null!=n?.value?r.push(n.id):o?.useIndexAsValue&&r.push(o.id)})),r}const ed=Symbol.for("vuetify:v-btn-toggle"),td=$({...Gu(),...Qu()},"VBtnToggle"),rd=K()({name:"VBtnToggle",props:td(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{isSelected:n,next:o,prev:a,select:s,selected:i}=Xu(e,ed);return J((()=>{const t=Ku.filterProps(e);return X(Ku,ie({class:["v-btn-toggle",e.class]},t,{style:e.style}),{default:()=>[r.default?.({isSelected:n,next:o,prev:a,select:s,selected:i})]})})),{next:o,prev:a,select:s}}}),nd=$({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),od=K(!1)({name:"VDefaultsProvider",props:nd(),setup(e,t){let{slots:r}=t;const{defaults:n,disabled:o,reset:a,root:s,scoped:i}=le(e);return Y(n,{reset:a,root:s,scoped:i,disabled:o}),()=>r.default?.()}}),ad=["x-small","small","default","large","x-large"],sd=$({size:{type:[String,Number],default:"default"}},"size");function id(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D();return j((()=>{const r=e.size;let n,o;return ce(ad,r)?n=`${t}--size-${r}`:r&&(o={width:ue(r),height:ue(r)}),{sizeClasses:n,sizeStyles:o}}))}const ld=$({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:he,opacity:[String,Number],...G(),...sd(),...Fu({tag:"i"}),...W()}
2,"VIcon"),cd=K()({name:"VIcon",props:ld(),setup(e,t){let{attrs:r,slots:n}=t;const o=y(),{themeClasses:a}=de(),{iconData:s}=pe((()=>o.value||e.icon)),{sizeClasses:i}=id(e),{textColorClasses:l,textColorStyles:c}=Bu((()=>e.color));return J((()=>{const t=n.default?.();t&&(o.value=fe(t).filter((e=>e.type===me&&e.children&&"string"==typeof e.children))[0]?.children);const u=!(!r.onClick&&!r.onClickOnce);return X(s.value.component,{tag:e.tag,icon:s.value.icon,class:H(["v-icon","notranslate",a.value,i.value,l.value,{"v-icon--clickable":u,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:Z([{"--v-icon-opacity":e.opacity},i.value?void 0:{fontSize:ue(e.size),height:ue(e.size),width:ue(e.size)},c.value,e.style]),role:u?"button":void 0,"aria-hidden":!u,tabindex:u?e.disabled?-1:0:void 0},{default:()=>[t]})})),{}}});function ud(e,t){const r=u(),n=y(!1);if(ge){const e=new IntersectionObserver((e=>{n.value=!!e.find((e=>e.isIntersecting))}),t);v((()=>{e.disconnect()})),g(r,((t,r)=>{r&&(e.unobserve(r),n.value=!1),t&&e.observe(t)}),{flush:"post"})}return{intersectionRef:r,isIntersecting:n}}const dd=$({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...G(),...sd(),...Fu({tag:"div"}),...W()},"VProgressCircular"),pd=K()({name:"VProgressCircular",props:dd(),setup(e,t){let{slots:r}=t;const n=2*Math.PI*20,o=u(),{themeClasses:a}=Q(e),{sizeClasses:s,sizeStyles:l}=id(e),{textColorClasses:c,textColorStyles:p}=Bu((()=>e.color)),{textColorClasses:h,textColorStyles:f}=Bu((()=>e.bgColor)),{intersectionRef:m,isIntersecting:g}=ud(),{resizeRef:v,contentRect:y}=ve(),_=i((()=>ye(parseFloat(e.modelValue),0,100))),b=i((()=>Number(e.width))),w=i((()=>l.value?Number(e.size):y.value?y.value.width:Math.max(b.value,32))),E=i((()=>20/(1-b.value/w.value)*2)),S=i((()=>b.value/w.value*E.value)),k=i((()=>ue((100-_.value)/100*n)));return d((()=>{m.value=o.value,v.value=o.value})),J((()=>X(e.tag,{ref:o,class:H(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":g.value,"v-progress-circular--disable-shrink":"disable-shrink"===e.indeterminate},a.value,s.value,c.value,e.class]),style:Z([l.value,p.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:_.value},{default:()=>[q("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${E.value} ${E.value}`},[q("circle",{class:H(["v-progress-circular__underlay",h.value]),style:Z(f.value),fill:"transparent",cx:"50%",cy:"50%",r:20,"stroke-width":S.value,"stroke-dasharray":n,"stroke-dashoffset":0},null),q("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:20,"stroke-width":S.value,"stroke-dasharray":n,"stroke-dashoffset":k.value},null)]),r.default&&q("div",{class:"v-progress-circular__content"},[r.default({value:_.value})])]}))),{}}}),hd=$({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function fd(e){return{dimensionStyles:k((()=>{const t={},r=ue(e.height),n=ue(e.maxHeight),o=ue(e.maxWidth),a=ue(e.minHeight),s=ue(e.minWidth),i=ue(e.width);return null!=r&&(t.height=r),null!=n&&(t.maxHeight=n),null!=o&&(t.maxWidth=o),null!=a&&(t.minHeight=a),null!=s&&(t.minWidth=s),null!=i&&(t.width=i),t}))}}const md={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},gd=$({location:String},"location");function vd(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;const{isRtl:n}=_e();return{locationStyles:k((()=>{if(!e.location)return{};const{side:o,align:a}=be(e.location.split(" ").length>1?e.location:`${e.location} center`,n.value);function s(e){return r?r(e):0}const i={};return"center"!==o&&(t?i[md[o]]=`calc(100% - ${s(o)}px)`:i[o]=0),"center"!==a?t?i[md[a]]=`calc(100% - ${s(a)}px)`:i[a]=0:("center"===o?i.top=i.left="50%":i[{top:"left",bottom:"left",left:"top",right:"top"}[o]]="50%",i.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[o]),i}))}}const yd=$({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0}
2,opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...G(),...gd({location:"top"}),...Du(),...Fu(),...W()},"VProgressLinear"),_d=K()({name:"VProgressLinear",props:yd(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const n=re(e,"modelValue"),{isRtl:o,rtlClasses:a}=_e(),{themeClasses:s}=Q(e),{locationStyles:i}=vd(e),{textColorClasses:l,textColorStyles:c}=Bu((()=>e.color)),{backgroundColorClasses:u,backgroundColorStyles:d}=zu((()=>e.bgColor||e.color)),{backgroundColorClasses:p,backgroundColorStyles:h}=zu((()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:f,backgroundColorStyles:m}=zu((()=>e.color)),{roundedClasses:g}=ju(e),{intersectionRef:v,isIntersecting:y}=ud(),_=k((()=>parseFloat(e.max))),b=k((()=>parseFloat(e.height))),w=k((()=>ye(parseFloat(e.bufferValue)/_.value*100,0,100))),E=k((()=>ye(parseFloat(n.value)/_.value*100,0,100))),S=k((()=>o.value!==e.reverse)),P=k((()=>e.indeterminate?"fade-transition":"slide-x-transition"));function R(e){if(!v.value)return;const{left:t,right:r,width:o}=v.value.getBoundingClientRect(),a=S.value?o-e.clientX+(r-o):e.clientX-t;n.value=Math.round(a/o*_.value)}return J((()=>X(e.tag,{ref:v,class:H(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&y.value,"v-progress-linear--reverse":S.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},g.value,s.value,a.value,e.class]),style:Z([{bottom:"bottom"===e.location?0:void 0,top:"top"===e.location?0:void 0,height:e.active?ue(b.value):0,"--v-progress-linear-height":ue(b.value),...e.absolute?i.value:{}},e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(n.value),_.value),onClick:e.clickable&&R},{default:()=>[e.stream&&q("div",{key:"stream",class:H(["v-progress-linear__stream",l.value]),style:{...c.value,[S.value?"left":"right"]:ue(-b.value),borderTop:`${ue(b.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${ue(b.value/4)})`,width:ue(100-w.value,"%"),"--v-progress-linear-stream-to":ue(b.value*(S.value?1:-1))}},null),q("div",{class:H(["v-progress-linear__background",u.value]),style:Z([d.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),q("div",{class:H(["v-progress-linear__buffer",p.value]),style:Z([h.value,{opacity:parseFloat(e.bufferOpacity),width:ue(w.value,"%")}])},null),X(I,{name:P.value},{default:()=>[e.indeterminate?q("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map((e=>q("div",{key:e,class:H(["v-progress-linear__indeterminate",e,f.value]),style:Z(m.value)},null)))]):q("div",{class:H(["v-progress-linear__determinate",f.value]),style:Z([m.value,{width:ue(E.value,"%")}])},null)]}),r.default&&q("div",{class:"v-progress-linear__content"},[r.default({value:E.value,buffer:w.value})])]}))),{}}}),bd=$({loading:[Boolean,String]},"loader");function wd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D();return{loaderClasses:i((()=>({[`${t}--loading`]:e.loading})))}}function Ed(e,t){let{slots:r}=t;return q("div",{class:H(`${e.name}__loader`)},[r.default?.({color:e.color,isActive:e.active})||X(_d,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const Sd=["static","relative","fixed","absolute","sticky"],kd=$({position:{type:String,validator:e=>Sd.includes(e)}},"position");function Pd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D();return{positionClasses:i((()=>e.position?`${t}--${e.position}`:void 0))}}function Rd(){return ee("useRouter")?.proxy?.$router}function Ad(e,r){const n=we("RouterLink"),o=i((()=>!(!e.href&&!e.to))),a=k((()=>o?.value||Ee(r,"click")||Ee(e,"click")));if("string"==typeof n||!("useLink"in n)){const r=i((()=>e.href));return{isLink:o,isClickable:a,href:r,linkProps:t({href:r})}}const s=n.useLink({to:i((()=>e.to||"")),replace:i((()=>e.replace))}),l=k((()=>e.to?s:void 0)),c=function(){const e=ee("useRoute");return k((()=>e?.proxy?.$route))}(),u=k((()=>!!l.value&&(e.exact?c.value?l.value.isExactActive?.value&&oe(l.value.route.value.query,c.value.query):l.value.isExactActive?.value??!1:l.value.isActive?.value??!1))),d=k((()=>e.to?l.value?.route.value.href:e.href));return{isLink:o,isClickable:a,isActive:u,route:l.value?.route,navigate:l.value?.navigate,href:d,linkProps:t({href:d,"aria-current":i((()=>u.value?"page":void 0))})}}const Td=$({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Id=!1;function Cd(e,t){let r,n,o=!1;function a(e){e.state?.replaced||(o=!0,setTimeout((()=>o=!1)))}Se&&e?.beforeEach&&(A((()=>{window.addEventListener("popstate",a),r=e.beforeEach(((e,r,n)=>{Id?o?t(n):n():setTimeout((()=>o?t(n):n())),Id=!0})),n=e?.afterEach((()=>{Id=!1}))}
2)),v((()=>{window.removeEventListener("popstate",a),r?.(),n?.()})))}const Od=Symbol("rippleStop");function xd(e,t){e.style.transform=t,e.style.webkitTransform=t}function Ld(e){return"TouchEvent"===e.constructor.name}function Nd(e){return"KeyboardEvent"===e.constructor.name}const Ud={show(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t?._ripple?.enabled)return;const n=document.createElement("span"),o=document.createElement("span");n.appendChild(o),n.className="v-ripple__container",r.class&&(n.className+=` ${r.class}`);const{radius:a,scale:s,x:i,y:l,centerX:c,centerY:u}=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=0,o=0;if(!Nd(e)){const r=t.getBoundingClientRect(),a=Ld(e)?e.touches[e.touches.length-1]:e;n=a.clientX-r.left,o=a.clientY-r.top}let a=0,s=.3;t._ripple?.circle?(s=.15,a=t.clientWidth/2,a=r.center?a:a+Math.sqrt((n-a)**2+(o-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const i=(t.clientWidth-2*a)/2+"px",l=(t.clientHeight-2*a)/2+"px";return{radius:a,scale:s,x:r.center?i:n-a+"px",y:r.center?l:o-a+"px",centerX:i,centerY:l}}(e,t,r),d=2*a+"px";o.className="v-ripple__animation",o.style.width=d,o.style.height=d,t.appendChild(n);const p=window.getComputedStyle(t);p&&"static"===p.position&&(t.style.position="relative",t.dataset.previousPosition="static"),o.classList.add("v-ripple__animation--enter"),o.classList.add("v-ripple__animation--visible"),xd(o,`translate(${i}, ${l}) scale3d(${s},${s},${s})`),o.dataset.activated=String(performance.now()),requestAnimationFrame((()=>{requestAnimationFrame((()=>{o.classList.remove("v-ripple__animation--enter"),o.classList.add("v-ripple__animation--in"),xd(o,`translate(${c}, ${u}) scale3d(1,1,1)`)}))}))},hide(e){if(!e?._ripple?.enabled)return;const t=e.getElementsByClassName("v-ripple__animation");if(0===t.length)return;const r=Array.from(t).findLast((e=>!e.dataset.isHiding));if(!r)return;r.dataset.isHiding="true";const n=performance.now()-Number(r.dataset.activated),o=Math.max(250-n,0);setTimeout((()=>{r.classList.remove("v-ripple__animation--in"),r.classList.add("v-ripple__animation--out"),setTimeout((()=>{1===e.getElementsByClassName("v-ripple__animation").length&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),r.parentNode?.parentNode===e&&e.removeChild(r.parentNode)}),300)}),o)}};function $d(e){return void 0===e||!!e}function Dd(e){const t={},r=e.currentTarget;if(r?._ripple&&!r._ripple.touched&&!e[Od]){if(e[Od]=!0,Ld(e))r._ripple.touched=!0,r._ripple.isTouch=!0;else if(r._ripple.isTouch)return;if(t.center=r._ripple.centered||Nd(e),r._ripple.class&&(t.class=r._ripple.class),Ld(e)){if(r._ripple.showTimerCommit)return;r._ripple.showTimerCommit=()=>{Ud.show(e,r,t)},r._ripple.showTimer=window.setTimeout((()=>{r?._ripple?.showTimerCommit&&(r._ripple.showTimerCommit(),r._ripple.showTimerCommit=null)}),80)}else Ud.show(e,r,t)}}function jd(e){e[Od]=!0}function Fd(e){const t=e.currentTarget;if(t?._ripple){if(window.clearTimeout(t._ripple.showTimer),"touchend"===e.type&&t._ripple.showTimerCommit)return t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,void(t._ripple.showTimer=window.setTimeout((()=>{Fd(e)})));window.setTimeout((()=>{t._ripple&&(t._ripple.touched=!1)})),Ud.hide(t)}}function Md(e){const t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Bd=!1;function zd(e,t){!Bd&&t.includes(e.key)&&(Bd=!0,Dd(e))}function qd(e){Bd=!1,Fd(e)}function Hd(e){Bd&&(Bd=!1,Fd(e))}function Vd(e,t,r){const{value:n,modifiers:o}=t,a=$d(n);a||Ud.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=o.center,e._ripple.circle=o.circle;const s=ke(n)?n:{};s.class&&(e._ripple.class=s.class);const i=s.keys??["Enter","Space"];if(e._ripple.keyDownHandler=e=>zd(e,i),a&&!r){if(o.stop)return e.addEventListener("touchstart",jd,{passive:!0}),void e.addEventListener("mousedown",jd);e.addEventListener("touchstart",Dd,{passive:!0}),e.addEventListener("touchend",Fd,{passive:!0}),e.addEventListener("touchmove",Md,{passive:!0}),e.addEventListener("touchcancel",Fd),e.addEventListener("mousedown",Dd),e.addEventListener("mouseup",Fd),e.addEventListener("mouseleave",Fd),e.addEventListener("keydown",(e=>zd(e,i))),e.addEventListener("keyup",qd),e.addEventListener("blur",Hd),e.addEventListener("dragstart",Fd,{passive:!0})}else!a&&r&&Wd(e)}function Wd(e){e.removeEventListener("mousedown",Dd),e.removeEventListener("touchstart",Dd),e.removeEventListener("touchend",Fd),e.removeEventListener("touchmove",Md),e.removeEventListener("touchcancel",Fd),e.removeEventListener("mouseup",Fd),e.removeEventListener("mouseleave",Fd),e._ripple?.keyDownHandler&&e.removeEventListener("keydown",e._r
2ipple.keyDownHandler),e.removeEventListener("keyup",qd),e.removeEventListener("dragstart",Fd),e.removeEventListener("blur",Hd)}const Gd={mounted:function(e,t){Vd(e,t,!1)},unmounted:function(e){Wd(e),delete e._ripple},updated:function(e,t){t.value!==t.oldValue&&Vd(e,t,$d(t.oldValue))}},Kd=$({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:ed},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:he,appendIcon:he,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...Cu(),...G(),...Lu(),...hd(),...Uu(),...Yu(),...bd(),...gd(),...kd(),...Du(),...Td(),...sd(),...Fu({tag:"button"}),...W(),...Vu({variant:"elevated"})},"VBtn"),Qd=K()({name:"VBtn",props:Kd(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:r,slots:n}=t;const{themeClasses:o}=Q(e),{borderClasses:a}=Ou(e),{densityClasses:s}=Nu(e),{dimensionStyles:l}=fd(e),{elevationClasses:c}=$u(e),{loaderClasses:u}=wd(e),{locationStyles:d}=vd(e),{positionClasses:p}
2=Pd(e),{roundedClasses:h}=ju(e),{sizeClasses:f,sizeStyles:m}=id(e),v=Ju(e,e.symbol,!1),y=Ad(e,r),_=k((()=>void 0!==e.active?e.active:y.isLink.value?y.isActive?.value:v?.isSelected.value)),b=i((()=>_.value?e.activeColor??e.color:e.color)),w=k((()=>({color:v?.isSelected.value&&(!y.isLink.value||y.isActive?.value)||!v||y.isActive?.value?b.value??e.baseColor:e.baseColor,variant:e.variant}))),{colorClasses:E,colorStyles:S,variantClasses:P}=Wu(w),R=k((()=>v?.disabled.value||e.disabled)),T=i((()=>"elevated"===e.variant&&!(e.disabled||e.flat||e.border))),I=k((()=>{if(void 0!==e.value&&"symbol"!=typeof e.value)return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value}));function C(e){R.value||y.isLink.value&&(e.metaKey||e.ctrlKey||e.shiftKey||0!==e.button||"_blank"===r.target)||(y.navigate?.(e),v?.toggle())}return function(e,t){g((()=>e.isActive?.value),(r=>{e.isLink.value&&null!=r&&t&&A((()=>{t(r)}))}),{immediate:!0})}(y,v?.select),J((()=>{const t=y.isLink.value?"a":e.tag,r=!(!e.prependIcon&&!n.prepend),i=!(!e.appendIcon&&!n.append),g=!(!e.icon||!0===e.icon);return Pe(X(t,ie({type:"a"===t?void 0:"button",class:["v-btn",v?.selectedClass.value,{"v-btn--active":_.value,"v-btn--block":e.block,"v-btn--disabled":R.value,"v-btn--elevated":T.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},o.value,a.value,E.value,s.value,c.value,u.value,p.value,h.value,f.value,P.value,e.class],style:[S.value,l.value,d.value,m.value,e.style],"aria-busy":!!e.loading||void 0,disabled:R.value||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:C,value:I.value},y.linkProps),{default:()=>[Hu(!0,"v-btn"),!e.icon&&r&&q("span",{key:"prepend",class:"v-btn__prepend"},[n.prepend?X(od,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},n.prepend):X(cd,{key:"prepend-icon",icon:e.prependIcon},null)]),q("span",{class:"v-btn__content","data-no-activator":""},[!n.default&&g?X(cd,{key:"content-icon",icon:e.icon},null):X(od,{key:"content-defaults",disabled:!g,defaults:{VIcon:{icon:e.icon}}},{default:()=>[n.default?.()??Re(e.text)]})]),!e.icon&&i&&q("span",{key:"append",class:"v-btn__append"},[n.append?X(od,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},n.append):X(cd,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&q("span",{key:"loader",class:"v-btn__loader"},[n.loader?.()??X(pd,{color:"boolean"==typeof e.loading?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}),[[Gd,!R.value&&e.ripple,"",{center:!!e.icon}]])})),{group:v}}}),Yd=$({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...G(),...hd()},"VResponsive"),Jd=K()({name:"VResponsive",props:Yd(),setup(e,t){let{slots:r}=t;const{aspectStyles:n}=function(e){return{aspectStyles:k((()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0}))}}(e),{dimensionStyles:o}=fd(e);return J((()=>q("div",{class:H(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:Z([o.value,e.style])},[q("div",{class:"v-responsive__sizer",style:Z(n.value)},null),r.additional?.(),r.default&&q("div",{class:H(["v-responsive__content",e.contentClass])},[r.default()])]))),{}}}),Xd=$({transition:{type:null,default:"fade-transition",validator:e=>!0!==e}},"transition"),Zd=(e,t)=>{let{slots:r}=t;const{transition:n,disabled:o,group:a,...s}=e,{component:i=(a?Ae:I),...l}=ke(n)?n:{};let c;return c=ke(n)?ie(l,Te({disabled:o,group:a}),s):ie({name:o||!n?"":n},s),R(i,c,r)};function ep(e,t){const r=e._observe?.[t.instance.$.uid];r&&(r.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const tp={mounted:function(e,t){if(!ge)return;const r=t.modifiers||{},n=t.value,{handler:o,options:a}="object"==typeof n?n:{handler:n,options:{}},s=new IntersectionObserver((function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0;const s=e._observe?.[t.instance.$.uid];if(!s)return;const i=n.some((e=>e.isIntersecting));!o||r.quiet&&!s.init||r.once&&!i&&!s.init||o(i,n,a),i&&r.once?ep(e,t):s.init=!0}),a);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:s},s.observe(e)},unmounted:ep},rp=$({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...Yd(),...G(),...Du(),...Xd()},"VImg"),np=K()({name:"VImg",directives:{vIntersect:tp},props:rp(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:r,slots:n}=t;const{backgroundColorClasses:o,backgroundColorStyles:a}=zu((()=>
2e.color)),{roundedClasses:s}=ju(e),l=ee("VImg"),c=y(""),d=u(),h=y(e.eager?"loading":"idle"),f=y(),m=y(),v=k((()=>e.src&&"object"==typeof e.src?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)})),_=k((()=>v.value.aspect||f.value/m.value||0));function b(t){if((!e.eager||!t)&&(!ge||t||e.eager)){if(h.value="loading",v.value.lazySrc){const e=new Image;e.src=v.value.lazySrc,R(e,null)}v.value.src&&A((()=>{r("loadstart",d.value?.currentSrc||v.value.src),setTimeout((()=>{if(!l.isUnmounted)if(d.value?.complete){if(d.value.naturalWidth||E(),"error"===h.value)return;_.value||R(d.value,null),"loading"===h.value&&w()}else _.value||R(d.value),S()}))}))}}function w(){l.isUnmounted||(S(),R(d.value),h.value="loaded",r("load",d.value?.currentSrc||v.value.src))}function E(){l.isUnmounted||(h.value="error",r("error",d.value?.currentSrc||v.value.src))}function S(){const e=d.value;e&&(c.value=e.currentSrc||e.src)}g((()=>e.src),(()=>{b("idle"!==h.value)})),g(_,((e,t)=>{!e&&t&&d.value&&R(d.value)})),Ie((()=>b()));let P=-1;function R(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;const r=()=>{if(clearTimeout(P),l.isUnmounted)return;const{naturalHeight:n,naturalWidth:o}=e;n||o?(f.value=o,m.value=n):e.complete||"loading"!==h.value||null==t?(e.currentSrc.endsWith(".svg")||e.currentSrc.startsWith("data:image/svg+xml"))&&(f.value=1,m.value=1):P=window.setTimeout(r,t)};r()}p((()=>{clearTimeout(P)}));const T=i((()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover}))),I=()=>{if(!v.value.src||"idle"===h.value)return null;const t=q("img",{class:H(["v-img__img",T.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:v.value.src,srcset:v.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:d,onLoad:w,onError:E},null),r=n.sources?.();return X(Zd,{transition:e.transition,appear:!0},{default:()=>[Pe(r?q("picture",{class:"v-img__picture"},[r,t]):t,[[Ce,"loaded"===h.value]])]})},C=()=>X(Zd,{transition:e.transition},{default:()=>[v.value.lazySrc&&"loaded"!==h.value&&q("img",{class:H(["v-img__img","v-img__img--preload",T.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:v.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),O=()=>n.placeholder?X(Zd,{transition:e.transition,appear:!0},{default:()=>[("loading"===h.value||"error"===h.value&&!n.error)&&q("div",{class:"v-img__placeholder"},[n.placeholder()])]}):null,x=()=>n.error?X(Zd,{transition:e.transition,appear:!0},{default:()=>["error"===h.value&&q("div",{class:"v-img__error"},[n.error()])]}):null,L=()=>e.gradient?q("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,N=y(!1);{const e=g(_,(t=>{t&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{N.value=!0}))})),e())}))}return J((()=>{const t=Jd.filterProps(e);return Pe(X(Jd,ie({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!N.value},o.value,s.value,e.class],style:[{width:ue("auto"===e.width?f.value:e.width)},a.value,e.style]},t,{aspectRatio:_.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>q(V,null,[X(I,null,null),X(C,null,null),X(L,null,null),X(O,null,null),X(x,null,null)]),default:n.default}),[[tp,{handler:b,options:e.options},null,{once:!0}]])})),{currentSrc:c,image:d,state:h,naturalWidth:f,naturalHeight:m}}}),op={class:"teaser pb-4"},ap={class:"text-center"},sp={class:"mb-7 flex justify-center"},ip={class:"d-flex flex-column flex-sm-row justify-center gap-8 mb-6 mx-4"},lp={class:"text-body-1 font-weight-bold ls-0"},cp={class:"d-flex flex-column flex-sm-row justify-center gap-4"},up=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},dp=up(w({__name:"ContentSaveTeaser",props:{onCancel:{type:Function}},setup(e){const t=pu(),r=[{text:"Find articles",icon:"mdi-check-circle"},{text:"Find nonprofits",icon:"mdi-check-circle"},{text:"Follow nonprofit posts",icon:"mdi-check-circle"},{text:"Plan your giving",icon:"mdi-check-circle"}],n=u(!1),o=()=>{n.value=!0,t.trackSignupClick("modal","content_save_teaser"),Ru()};return(e,t)=>(xe(),Oe("div",op,[q("div",ap,[q("div",sp,[X(np,{class:"mx-auto",src:ku,alt:"Giving Compass",height:"80",
2width:"80"})]),t[2]||(t[2]=q("h1",{class:"main-heading mb-4"}," Turn your curiosity into generosity ",-1)),t[3]||(t[3]=q("h3",{class:"subheading ls-0 mb-4"}," Knowledge powers giving. ",-1)),t[4]||(t[4]=q("p",{class:"body-text mb-4 mx-4 text-dark-navy-darken-1"}," Did you know? People who use Giving Compass are 2x more likely to give back to their communities. ",-1)),q("div",ip,[(xe(),Oe(V,null,Le(r,(e=>q("div",{key:e.text,class:"feature-item"},[X(cd,{color:"primary",size:"small",class:""},{default:Ne((()=>[Ue(Re(e.icon),1)])),_:2},1024),q("div",lp,Re(e.text),1)]))),64))]),q("div",cp,[X(Qd,{variant:"text",class:"text-none font-weight-medium ls-0",size:"large",rounded:"lg",flat:"",onClick:e.onCancel},{default:Ne((()=>[...t[0]||(t[0]=[Ue(" Maybe later ",-1)])])),_:1},8,["onClick"]),X(Qd,{color:"primary",size:"large",class:"text-none font-weight-bold ls-0",onClick:o,rounded:"lg",flat:"",loading:n.value},{default:Ne((()=>[...t[1]||(t[1]=[Ue(" Join for free ",-1)])])),_:1},8,["loading"])])])]))}}),[["__scopeId","data-v-6242ca08"]]);function pp(e){const t=localStorage.getItem(e)||sessionStorage.getItem(e);if(t)try{return JSON.parse(t)}catch{return t}}function hp(e,t){if(qs(t))try{localStorage.removeItem(e)}catch{sessionStorage.removeItem(e)}else try{localStorage.setItem(e,JSON.stringify(t))}catch{sessionStorage.setItem(e,JSON.stringify(t))}}function fp(e,t=!1){const r=localStorage.getItem(e);return null==r?t:"true"===r.trim().toLowerCase()}function mp(e,t){localStorage.setItem(e,t?"true":"false")}const gp="use_user_location",vp=Ke("chat",{state:()=>({sessionId:null,messages:[],chatSearchParams:{use_user_location:!0===dr().public.showLocationToggle&&fp(gp)},defaultNonprofitPageSize:3,sessionLocation:{},userInput:"",drawer:!1,initialSuggestionChips:[],feedbackStatuses:{}}),getters:{allMessages:e=>e.messages,messageIndex:e=>t=>e.messages.indexOf(t),lastUserMessage:e=>e.messages.filter((e=>"user"===e.sender)).pop(),lastAssistantMessage:e=>e.messages.filter((e=>"assistant"===e.sender)).pop(),lastMessage(e){if(e.messages.length)return e.messages[e.messages.length-1]},feedbackMessage:e=>t=>e.messages.find((e=>e.type===Ys.Feedback&&e.originalMessageId===t)),getUser:()=>xp().getUser,isAwaitingResponse(){return this.lastMessage?.type===Ys.Loading},isInTrialMode:()=>yp().trialMode,isTrialExpired:()=>yp().trialExpired,userLocationLabel(){const e=[],{city:t,state:r,zip:n}=this.chatSearchParams;return t?.trim()&&e.push(t.trim()),r?.trim()&&e.push(r.trim()),5===n?.trim()?.length&&e.push(n.trim()),e.length>0?e.join(", "):null},userPlace(){const{city:e,state:t,zip:r}=this.chatSearchParams;return{place_id:null,geo:{lat:null,lng:null},types:null,city:e,state:t,zipcode:r}}},actions:{async initialize(){await this.initializeSession()},async performInitialHealthCheck(){const e=mc.checkApiHealth(),t={type:Ys.Initializing,sender:"system",timestamp:Date.now(),text:"Please wait, we're waking up our AI assistant from its rest. During this development phase, it may take up to a minute to fully spin up and be ready to assist you.",promise:e};this.messages.push(t);const r=await e,n=this.messageIndex(t);if(!r)return this.messages[n]={type:Ys.Error,sender:"system",text:"There was an error initializing the chat service. Please refresh the page and try again."};this.messages.splice(n,1)},async initializeSession(){try{const e=this.isInTrialMode,t=await Lc().initializeSession(e);if(!t)return;if(t.tokenOutdated&&await xp().refreshAuthToken(),t.ggUser)xp().updateUserInfoFromGGUserResponse(t.ggUser);else if(!e){const e=xp();t.ggUserId&&(e.user.ggUserId=t.ggUserId),e.loaded=!0}t.referralId&&(xp().user.referralId=t.referralId),this.sessionId=t.sessionId,this.loadSessionLocationAsync(),this.isInTrialMode||t.isNewUser||this.trackHubSpotContactAsync()}catch(e){Cr({name:rs.Login,params:{expired:1}})}},async parseStartupUserQ(){{const e=new URLSearchParams(window.location.search).get("q");e&&this.addUserMessage(e)}},async parseConversationFlags(){const e=function(){const e=Tr().query.flags;if(!e)return[];const t=(Array.isArray(e)?e:[e]).reduce(((e,t)=>{if(null==t)return e;const r=t.split(",");return[...e,...r]}),[]);return[...new Set(t.filter(Boolean))]}();e.length&&(this.chatSearchParams.flags=e)},async navigateToChatIfNeeded(){const e=Tr();if(e.name&&e.name!==rs.Home)return Cr({name:rs.Home})},addSuggestionChips(e){return this.initialSuggestionChips=[],e.every(this.addSuggestionChip)},addSuggestionChip(e){return this.initialSuggestionChips.push(e)},async addUserMessage(e,t){this.hideSearchGuide(),await this.navigateToChatIfNeeded();const r={type:Ys.Text,sender:"user",timestamp:Date.now(),text:e,trial:this.isInTrialMode};this.messages.push(r),await this.replyToUser(r,t)},updateParams(e){this.chatSearchParams.city=e.city||void 0,this.chatSearchParams.state=e.state||void 0,this.chatSearchParams.zip=e.zip||void 0,this.chatSearchParams.min_total_revenue=e.min_total_revenue,this.chatSearchParams.max_total_revenue=e.max_total_revenue,this.chatSearchParams.gc_vetted=e.gc_vetted},async replyToUser(e,t){this.chatSearchParams.q=e.text;const r={...this.chatSearchParams,...t||{}},n=Lc().replyToUser(e,r),o={type:Ys.Loading,sender:"assistant",promise:n,text:""};this.messages.push(o),pu().trackChatMessageSent(e.text);try{const e=await n,t=this.messageIndex(o);t>=0&&(this.messages[t]={...e}),e.type===Ys.NonprofitSearch&&await this.loadSearchResultLogos(this.messages[t]);const r=2;yp().trialMode&&yp().getMessagesSent==r&&Js().showModal({component:dp})}catch(a){this.clearMessages()}},showMoreNonprofits(e,t){if(e.type===Ys.NonprofitSearch){if(t){const t=e.nonprofits?.filter((e=>e.gcVetted)).length||0;e.displayedVettedCount=Math.min(t,e.displayedVettedCount+this.defaultNonprofitPageSize)}else{const t=e.nonprofits?.filter((e=>!e.gcVetted)).length||0;e.displayedNonVettedCount=Math.min(t,e.displayedNonVettedCount+this.defaultNonprofitPageSize)}this.loadSearchResultLogos(e)}},async showSearchGuide(){const e={type:Ys.Guide,sender:"system",text:""};this.messages.push(e)},hideSearchGuide(){const e=this.messages.findIndex((e=>e.type===Ys.Guide));e>=0&&this.messages.splice(e,1)},setDrawerOpen(e){this.drawer=e},showNavMenu(){this.drawer=!0},toggleNavMenu(){this.drawer=!this.drawer},openFeedbackForm(e,t){const r=e.id;if(!r)return void console.warn(`No message ID found for message ${e}`);this.feedbackStatuses[r]=t;const n=this.feedbackMessage(r);if(n)return void(n.thumbs=t);const o=this.messageIndex(e),a={type:Ys.Feedback,thumbs:t,sender:"system",text:"",originalMessageId:e.id};this.messages.splice(o+1,0,a)},closeFeedbackForm(e,t=!1){const r=this.feedbackMessage(e);if(!r)return void console.warn(`No feedback message found for message ${e}`);const n=this.messageIndex(r);this.messages.splice(n,1),t&&(this.feedbackStatuses[e]=void 0)},async submitFeedback(e){const t=await hu.submitFeedback(e);this.closeFeedbackForm(e.originalMessageId),this.messages.push(t)},dismissMessage(e){const t=this.messageIndex(e);this.messages.splice(t,1)},async discussArticle(e){this.chatSearchParams.article_id=e.id;const t=`Tell me about ${e.title}`;this.navigateToChatIfNeeded(),await this.addUserMessage(t),this.chatSearchParams.article_id=void 0},async addNonprofitDetailMessage(e){const t=`Show me the nonprofit with ein ${e}`;return this.addUserMessage(t)},async loadNonprofitRelatedContent(e){e.relatedContent||e.relatedContentPromise||(e.relatedContentPromise=Wc().getRelatedContent(e.nonprofit.ein),e.relatedContent=await e.relatedContentPromise,e.relatedContentPromise=null)},async loadSearchResultLogos(e){if(e.type!=Ys.NonprofitSearch)return;const t=e.nonprofits?.filter((e=>e.gcVetted))||[],r=e.nonprofits?.filter((e=>!e.gcVetted))||[],n=[...t.slice(0,e.displayedVettedCount),...r.slice(0,e.displayedNonVettedCount)].map((e=>e.ein));try{const t=await Wc().getLogos(n||[]);for(const r of e.nonprofits||[])t[r.ein]&&(r.logo=t[r.ein])}catch(o){console.log(o)}},clearMessages(){this.messages.splice(0,this.messages.length)},onSuggestionChipClick(e){return pu().trackClickedNudge(e),this.addUserMessage(e)},setUseUserLocation(e){this.chatSearchParams.use_user_location=e,mp(gp,e)},updateSessionLocation(e){e?(this.sessionLocation=e||{},this.chatSearchParams.city=e.city,this.chatSearchParams.state=e.state,this.chatSearchParams.zip=e.zip):console.warn("updateSessionLocation called with empty location")},async loadSessionLocationAsync(){try{const e=await Uc().getSessionLocation();e&&this.updateSessionLocation(e)}catch(e){console.warn("Failed to load session location (non-blocking):",e)}},async trackHubSpotContactAsync(){try{await Dc().trackHubspotContact()}catch(e){console.warn("HubSpot tracking failed (non-blocking):",e)}}}}),yp=Ke("config",{state:()=>({trialMode:!0,trialExpired:!1,trialMessagesLeft:null,trialMessagesInitial:null,previewMode:!1,donateUrl:"https://donate.forgood.org/donation/{taxId}?referrer=givingcompass",donateFallbackEnabled:!1,faqUrl:"https://solutions.givingcompass.org/giving-assistant",givingStyleUrl:"",feedbackUrl:"",defaultPageTitle:"Compass Explorer by Giving Compass",mapId:"",mapApiKey:"",placeApiKey:"",tilesCdnUrl:""}),actions:{async initialize(){const e=dr();this.parseQueryParams(),this.faqUrl=e.public.faqUrl||this.faqUrl,this.givingStyleUrl=e.public.givingStyleUrl||this.givingStyleUrl,this.feedbackUrl=e.public.feedbackUrl||this.feedbackUrl,this.mapId=e.public.mapId||this.mapId,this.mapApiKey=e.public.mapApiKey||this.mapApiKey,this.placeApiKey=e.public.placeApiKey||this.placeApiKey,this.tilesCdnUrl=e.public.tilesCdnUrl||this.tilesCdnUrl,this.donateFallbackEnabled=!0===e.public.donateFallbackEnabled},parseQueryParams(){const e=Tr().query.preview;this.previewMode=!qs(e)&&(""===e||"true"===e.toLowerCase())},setTrialMode(e){this.trialMode=e,e||(this.trialExpired=!1)},setTrialExpired(e){this.trialExpired=e},async setTrialMessagesLeft(e){null==this.trialMessagesInitial&&(this.trialMessagesInitial=e),this.trialMessagesLeft=e,0===e&&this.setTrialExpired(!0)}},getters:{getDonateUrl:e=>t=>{if(t.gcDonationUrl)return t.gcDonationUrl;if(!e.donateFallbackEnabled)return;if("1"!==t.deductibility||!t.ein)return;const r=e.donateUrl.replace("{taxId}",Gs(t.ein)),n=function(){const e=[],{referralId:t}=xp().user;t&&e.push(`u_${t}`);const{sessionId:r}=vp();
2return r&&e.push(`s_${r}`),e.length?e.join("."):void 0}();return n?`${r}&referrerId=${encodeURIComponent(n)}`:r},getMessagesSent:e=>null==e.trialMessagesInitial||null==e.trialMessagesLeft?0:e.trialMessagesInitial-e.trialMessagesLeft}});function _p(e){switch(e){case 404:return"invalid";case 410:return"closed";case 409:return"full";case 401:return"unauthorized";case 400:return"bad_token";default:return"error"}}function bp(e){switch(e){case 401:return"unauthorized";case 404:return"disabled";case 409:return"already_used";case 429:return"capacity";default:return"error"}}const wp={async getUserProfile(){try{const e=fc().API_USER_URL,{data:t,error:r}=await Cc(e);if(r.value)return void console.error("Error fetching user profile:",r.value);if(t.value)return{firstName:t.value.first_name,lastName:t.value.last_name,bio:t.value.description,profession:t.value.profession,style_id:t.value.style_id}}catch(e){if(console.error(e),Wl.isAxiosError(e)&&429===e.response?.status)throw e}},async saveUserProfile(e){try{const t=fc().API_USER_URL,{data:r,error:n}=await Cc(t,{method:"POST",body:{first_name:e.firstName,last_name:e.lastName,description:e.bio,profession:e.profession,style_id:e.style_id}});if(n.value)return void console.error("Error saving user profile:",n.value);if(r.value)return{firstName:r.value.first_name,lastName:r.value.last_name,bio:r.value.description,profession:r.value.profession}}catch(t){if(console.error(t),Wl.isAxiosError(t)&&429===t.response?.status)throw t}},async saveUserLocation(e){try{const t={};null!=e.city&&""!==e.city&&(t.city=e.city),null!=e.state&&""!==e.state&&(t.state=e.state),null!=e.zipcode&&""!==e.zipcode&&(t.zipcode=e.zipcode),null==e.geo?.lat||isNaN(e.geo.lat)||(t.latitude=e.geo.lat),null==e.geo?.lng||isNaN(e.geo.lng)||(t.longitude=e.geo.lng);const r=fc().API_USER_LOCATION_URL,{data:n,error:o}=await Cc(r,{method:"POST",body:t});return o.value?(console.error("Error saving user location:",o.value),!1):!!n.value}catch(t){return!1}},async saveUserGivingStyle(e,t){try{const r=fc().API_USER_STYLE_URL,{data:n,error:o}=await Cc(r,{method:"POST",body:{style_id:e,style_rating:t}});return o.value?(console.error("Error saving user style:",o.value),!1):!!n.value}catch(r){return console.error(r),!1}},async addUserIssueArea(e){try{const t=fc().API_USER_ISSUE_AREAS_URL,{data:r,error:n}=await Cc(t,{method:"POST",body:{issue_area_id:e}});return n.value?void console.error("Error adding user issue area:",n.value):r.value}catch(t){return void console.error(t)}},async completeOnboarding(){try{const e=fc().API_USER_ONBOARD_URL,{data:t,error:r}=await Cc(e,{method:"POST"});return r.value?(console.error("Error marking onboarding complete:",r.value),!1):!!t.value}catch(e){return console.error("Error marking onboarding complete:",e),!1}},async getUserIssueAreas(){try{const e=fc().API_USER_ISSUE_AREAS_URL,{data:t,error:r}=await Cc(e);return r.value?(console.error("Error getting user issue area:",r.value),[]):t.value?.map((e=>({id:e.id,issueAreaId:e.issue_area_id})))||[]}catch(e){return console.error("Error fetching user issue areas:",e),[]}},async removeUserIssueArea(e){try{const t=`${fc().API_USER_ISSUE_AREAS_URL}/${e}`,{error:r}=await Cc(t,{method:"DELETE"});return!r.value||(console.error(`Error removing user issue area ${e}:`,r.value),!1)}catch(t){return console.error(`Error removing user issue area ${e}:`,t),!1}},async getUserLocation(){try{const e=fc().API_USER_LOCATION_URL,{data:t,error:r}=await Cc(e);return r.value?null:t.value}catch(e){return console.error("Error fetching user location:",e),null}},async redeemPreviewCode(e){try{const t=fc().API_PREVIEW_ACCESS_REDEEM_URL,{data:r,error:n}=await Cc(t,{method:"POST",body:{code:e}});if(n.value){const e=n.value;return{ok:!1,reason:_p(e?.statusCode??e?.response?.status)}}return r.value?{ok:!0,expiresAt:r.value.expiresAt,permissionsUpdated:r.value.permissionsUpdated}:{ok:!1,reason:"error"}}catch(t){return console.error("Error redeeming preview code:",t),{ok:!1,reason:"error"}}},async startTrial(){try{const e=fc().API_PRO_TRIAL_START_URL,{data:t,error:r}=await Cc(e,{method:"POST"});if(r.value){const e=r.value;return{ok:!1,reason:bp(e?.statusCode??e?.response?.status)}}return t.value?{ok:!0,status:t.value.status,expiresAt:t.value.expiresAt,permissionsUpdated:t.value.permissionsUpdated}:{ok:!1,reason:"error"}}catch(e){return console.error("Error starting trial:",e),{ok:!1,reason:"error"}}},async getTrialEligibility(){try{const e=fc().API_PRO_TRIAL_ELIGIBILITY_URL,{data:t,error:r}=await Cc(e);return r.value?null:t.value}catch(e){return console.error("Error fetching trial eligibility:",e),null}},async getPreviewStatus(){try{const e=fc().API_PREVIEW_ACCESS_STATUS_URL,{data:t,error:r}=await Cc(e);return r.value?null:t.value}catch(e){return console.error("Error fetching preview status:",e),null}},async getUserSubscription(){try{const{data:e,error:t}
2=await Cc("/user/subscription");return t.value?null:e.value?.hasSubscription&&e.value.subscription||null}catch(e){return console.error("Error fetching user subscription:",e),null}},async precheckPreviewCode(e){try{const t=`${fc().API_PREVIEW_PRECHECK_URL}/${encodeURIComponent(e)}`,{data:r,error:n}=await Cc(t);return n.value?null:r.value}catch(t){return console.error("Error pre-checking preview code:",t),null}}};function Ep(){return wp}const Sp=u(null),kp=u(null),Pp=u(null),Rp={async getNTEECodes(){if(Sp.value)return Sp.value;try{const e=await Gn((()=>import("./CyaF1Lb6.js")),[],import.meta.url);return Sp.value=e.default||[],Sp.value}catch(e){return console.error("Failed to load NTEE codes from JSON:",e),[]}},async getSubsectionCodes(){if(kp.value)return kp.value;try{const e=fc(),{data:t,error:r}=await Cc(e.API_SUBSECTION_DATA_PATH);if(r.value)throw console.error("Error fetching subsection codes:",r.value),new Error(r.value.message||"Failed to fetch subsection codes");return kp.value=t.value,kp.value}catch(e){throw console.error("Error fetching subsection codes:",e),e}},async getIssueAreas(){if(Pp.value)return Pp.value;try{const e=fc().API_ISSUE_AREA_DATA_PATH,{data:t,error:r}=await Cc(e);if(r.value)return console.error("Error fetching issue areas:",r.value),[];const n=function(e,t=2,r=1){const n=[...e].sort(((e,t)=>e.name.length-t.name.length)),o=Math.ceil(n.length/2),a=n.slice(0,o),s=n.slice(o).reverse(),i=[];let l=0,c=0;for(;l<a.length||c<s.length;){for(let e=0;e<t&&l<a.length;e++)i.push(a[l++]);for(let e=0;e<r&&c<s.length;e++)i.push(s[c++])}return i}(Hs(t.value)??[],2,1);return Pp.value=n,Pp.value}catch(e){return console.error("Error fetching issue areas:",e),[]}},clearCache(){Sp.value=null,kp.value=null}};function Ap(){return Rp}const Tp={id:void 0,ggUserId:void 0,referralId:void 0,name:"",lastName:"",email:"",isAuthenticated:!1,picture:"",roles:[],permissions:[],tokenClaims:null,onboardCompleteAt:void 0},Ip={firstName:"",lastName:"",bio:"",profession:""};let Cp=null;function Op(e){return`gc.grantEndedNotice.${e??"anon"}`}const xp=Ke("user",{state:()=>({user:Tp,accessToken:null,previewExpiresAt:null,previewGrantType:null,authRefreshFailed:!1,grantInactive:!1,userProfile:Ip,loaded:!1,profilePreferencesLoaded:!1,allIssueAreaOptions:[]}),getters:{getUser:e=>e.user,isAuthenticated:e=>e.user.isAuthenticated,isPro:e=>!!e.user.roles.includes(Fs.PRO)||!e.grantInactive&&(e.user.roles.includes(Fs.PREVIEW)||e.user.roles.includes(Fs.ENTERPRISE_MEMBER)),hasSubscription:e=>!!e.user.roles.includes(Fs.PRO)||!e.grantInactive&&(e.user.roles.includes(Fs.PREVIEW)||e.user.roles.includes(Fs.ENTERPRISE_MEMBER)),hasPaidSubscription:e=>e.user.roles.includes(Fs.PRO),subscriptionPlanName:e=>e.user.roles.includes(Fs.PRO)?"Giving Compass Pro":e.grantInactive?"":e.user.roles.includes(Fs.ENTERPRISE_MEMBER)?"Giving Compass Pro":e.user.roles.includes(Fs.PREVIEW)?"Giving Compass Preview":"",isPreviewParticipant:e=>e.user.roles.includes(Fs.PREVIEW),isEnterpriseAdmin:e=>e.user.roles.includes(Fs.ENTERPRISE_ADMIN),isEnterpriseMember:e=>e.user.roles.includes(Fs.ENTERPRISE_MEMBER),userTier(e){if(e.user.roles.includes(Fs.PRO))return"pro";if(e.grantInactive)return"free";const t=e.previewGrantType?.toLowerCase();return e.user.roles.includes(Fs.PREVIEW)&&"vip"===t?"vip":e.user.roles.includes(Fs.ENTERPRISE_MEMBER)||"enterprise"===t?"pro":e.user.roles.includes(Fs.PREVIEW)?"preview"===t?"preview":"trial":"free"},isFree(){return"free"===this.userTier},isTrial(){return"trial"===this.userTier},isPreview(){return"preview"===this.userTier},isVip(){return"vip"===this.userTier},countdownExpiresAt(e){return"trial"===this.userTier||"preview"===this.userTier||"vip"===this.userTier?e.previewExpiresAt:null},isOnboarded:e=>!!e.user.onboardCompleteAt&&!!e.user.ggUserId,userInterests(e){if(!e.userProfile?.interests?.length||!e.allIssueAreaOptions?.length)return[];const t=new Set(e.userProfile.interests.map((e=>e.issueAreaId)));return e.allIssueAreaOptions.filter((e=>t.has(e.id)))},userLocationString(e){const t=e.userProfile.location;return t&&t.city&&t.state?`${t.city}, ${t.state}`:"Not set"}},actions:{async initialize(){return this.user},setFromSession(e){e?.user&&(this.setUserInfoFromSession(e),yp().setTrialMode(!1),pu().beginUserSession())},reset(){this.clearUserInfo()},updateUserInfoFromGGUserResponse(e){this.user.ggUserId=e.id,this.user.onboardCompleteAt=e.onboard_complete_at,(e.first_name||e.last_name)&&(this.user.n
2ame=e.first_name||"",this.user.lastName=e.last_name||""),this.userProfile.firstName=e.first_name||this.user.name||"",this.userProfile.lastName=e.last_name||this.user.lastName||"",this.userProfile.bio=e.description,this.userProfile.profession=e.profession,this.loaded=!0},clearUserInfo(){this.user=Tp,this.accessToken=null,this.previewExpiresAt=null,this.previewGrantType=null,this.authRefreshFailed=!1,this.grantInactive=!1,yp().setTrialMode(!0)},setUserInfoFromSession(e){const t=e.user,r=e.accessToken;this.accessToken=r||null;let n=[],o=[],a=null;try{r&&(a=JSON.parse(atob(r.split(".")[1])),n=a.permissions??[],o=n.map((e=>Ms[e])).filter((e=>e)))}catch(l){console.warn("Failed to decode access token:",l)}const s=this.user||{},i={id:a?.sub||t.sub||t.id,name:t.given_name??t.name?.split(" ")[0]??t.name,lastName:t.family_name??t.name?.split(" ").slice(1).join(" "),email:t.email,isAuthenticated:!0,picture:t.picture||t.image,roles:o,permissions:n,tokenClaims:a||t};this.user={...s,...i,name:s.ggUserId?s.name:i.name,lastName:s.ggUserId?s.lastName:i.lastName,ggUserId:s.ggUserId??void 0,referralId:s.referralId??void 0,onboardCompleteAt:s.onboardCompleteAt??void 0}},async refreshAuthToken(){if(Cp)return Cp;const e=Cp=(async()=>{try{const{getCsrfToken:e,getSession:t}=Ic(),r=await e();if(!r)return console.error("Failed to get CSRF token for token refresh"),!1;await $fetch("/api/auth/session",{method:"POST",credentials:"same-origin",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({csrfToken:r,data:JSON.stringify({forceRefresh:!0})}).toString()});const n=await t();return"RefreshAccessTokenError"===n?.error?(console.error("Auth0 rejected the token refresh — the session is still serving the previous token. Permissions cannot change until the user signs in again."),this.authRefreshFailed=!0,!1):!!n?.accessToken&&(this.accessToken=n.accessToken,this.setUserInfoFromSession(n),this.authRefreshFailed=!1,!0)}catch(e){return console.error("Failed to refresh auth token:",e),!1}})();try{return await e}finally{Cp===e&&(Cp=null)}},async fetchPreviewStatus(){if(!this.isAuthenticated)return;const e=await Ep().getPreviewStatus();if(!e)return;if(e.active)return this.grantInactive=!1,mp(Op(this.user.id),!1),"enterprise"===e.grantType?.toLowerCase()?(this.isEnterpriseMember||await this.syncTokenUntilEnterpriseMember(),this.previewExpiresAt=null,void(this.previewGrantType="enterprise")):(this.isPreviewParticipant||await this.syncTokenUntilPreview(),void(this.isPreviewParticipant&&(this.previewExpiresAt=e.expiresAt,this.previewGrantType=e.grantType??null)));const t=this.isEnterpriseMember;if(!this.isPreviewParticipant&&!t)return this.grantInactive=!1,this.previewExpiresAt=null,void(this.previewGrantType=null);this.grantInactive=!0,this.previewExpiresAt=null,this.previewGrantType=null;const r=Op(this.user.id);fp(r)||(mp(r,!0),Js().showSnackbar({message:t?"Your organization's GC Pro access has ended — you're now on the free plan.":"Your preview access has ended — you're now on the free plan.",color:"info",timeout:6e3})),console.warn("Grant ended but its role is still in the token; ignoring the stale role until re-login.")},async syncTokenUntilPreview(e=3,t=1500){for(let r=0;r<e;r++){if(await this.refreshAuthToken(),this.isPreviewParticipant)return;if(this.authRefreshFailed)return;r<e-1&&await new Promise((e=>setTimeout(e,t)))}},async syncTokenUntilEnterpriseMember(e=3,t=1500){for(let r=0;r<e;r++){if(await this.refreshAuthToken(),this.isEnterpriseMember)return;if(this.authRefreshFailed)return;r<e-1&&await new Promise((e=>setTimeout(e,t)))}},async fetchSubscriptionStatus(){this.isAuthenticated&&(this.hasPaidSubscription||await Ep().getUserSubscription()&&await this.syncTokenUntilPaid())},async syncTokenUntilPaid(e=3,t=1500){for(let r=0;r<e;r++){if(await this.refreshAuthToken(),this.hasPaidSubscription)return;if(this.authRefreshFailed)return;r<e-1&&await new Promise((e=>setTimeout(e,t)))}},async logout(e){this.clearUserInfo();try{const{signOut:t}=Ic();await t({callbackUrl:e})}catch(t){console.error("Failed to sign out:",t),window.location.href=e}},async getUserProfileInfo(){this.loaded=!1;const e=Ep().getUserProfile(),t=await e;t&&(this.userProfile.firstName=t.firstName,this.userProfile.lastName=t.lastName,this.userProfile.bio=t.bio,this.userProfile.profession=t.profession,this.userProfile.style_id=t.style_id),this.userProfile.firstName||this.userProfile.lastName||(this.userProfile.firstName=this.user.n
2ame,this.userProfile.lastName=this.user.lastName),this.loaded=!0},async saveUserProfileInfo(){const e=Ep().saveUserProfile(this.userProfile),t=await e;t&&(this.userProfile.firstName=t.firstName,this.userProfile.lastName=t.lastName,this.userProfile.bio=t.bio,this.userProfile.profession=t.profession,this.user.name=t.firstName,this.user.lastName=t.lastName)},saveUserGivingStyle:async(e,t)=>Ep().saveUserGivingStyle(e,t),async fetchProfilePreferences(){this.profilePreferencesLoaded=!1;const e=Ep(),t=Ap(),[r,n,o]=await Promise.all([e.getUserIssueAreas(),t.getIssueAreas(),e.getUserLocation()]);this.$patch((e=>{e.allIssueAreaOptions=Hs(n||[]),e.userProfile&&(e.userProfile.interests=r||[],e.userProfile.location=o||null)})),this.profilePreferencesLoaded=!0},async updateUserLocation(e){const t=await Ep().saveUserLocation(e);return t&&(this.userProfile.location=e,vp().updateSessionLocation({city:e.city,state:e.state,zip:e.zipcode||void 0})),t},async updateUserInterests(e){const t=this.userProfile.interests||[],r=new Set(t.map((e=>e.issueAreaId))),n=new Set(e),o=e.filter((e=>!r.has(e))),a=t.filter((e=>!n.has(e.issueAreaId))),s=o.map((e=>Ep().addUserIssueArea(e))),i=a.map((e=>Ep().removeUserIssueArea(e.id)));await Promise.all([...s,...i]);const l=await Ep().getUserIssueAreas();this.$patch((e=>{e.userProfile&&(e.userProfile.interests=l||[])}))}}});var Lp=(e=>(e.intro="intro",e["care-about"]="care-about",e["giving-style"]="giving-style",e.done="done",e))(Lp||{});const Np=[{name:"intro",title:"Welcome to Compass Explorer",subtitle:"Get to know Compass Explorer",icon:"mdi-rocket-launch",path:"/onboarding/intro"},{name:"care-about",title:"What do you care about most?",subtitle:"Choose causes you love",icon:"mdi-message-question",path:"/onboarding/care-about"},{name:"giving-style",title:"What is your Giving Style?",subtitle:"Match your values to your actions",icon:"mdi-list-box",note:"There are total 8 questions in that quiz and it will not take too long.",path:"/onboarding/giving-style"},{name:"done",title:"You’re Ready",subtitle:"Continue your journey of purpose‑driven giving",icon:"mdi-check-circle",path:"/onboarding/done"}],Up=Np.findIndex((e=>"giving-style"===e.name));var $p=(e=>(e.NOT_STARTED="NOT_STARTED",e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED",e.SKIPPED="SKIPPED",e))($p||{});const Dp={async getQuizContent(){try{const e="/quiz/1",{data:t,error:r}=await Cc(e);return r.value?(console.error("Error getting quiz data:",r.value),null):t.value}catch(e){return console.error("Error getting quiz data",e),null}},async submitQuizAnswers(e){try{const t="/quiz/save",{data:r,error:n}=await Cc(t,{method:"POST",body:{survey_id:e.survey_id,questions:e.questions}});return n.value?(console.error("Error submitting quiz data:",n.value),null):r.value}catch(t){return console.error("Error getting quiz data",t),null}}};function jp(){return Dp}const Fp=Ke("quiz",{state:()=>({quiz:null,isLoading:!1,isDataLoaded:!1,submitData:null,surveyResult:null,matchRating:1,currentQuestionIndex:-1,selectedOptions:[]}),getters:{getQuiz:e=>e.quiz,allGivingStyles:e=>e.quiz?.surveyDatas,getGivingStyleById:e=>t=>e.quiz?.surveyDatas?.find((e=>e.id===t))||null,givingStyleResultScore:e=>e.surveyResult?.result_score,givingStylePrimaryResult:e=>(e.surveyResult?.result_score.split("-").filter((e=>"0"!==e))||[]).shift(),givingStyleResult:e=>(e.surveyResult?.result_score.split("-").filter((e=>"0"!==e))||[]).map((t=>{if(t){const r=parseInt(t,10);return e.quiz?.surveyDatas?.find((e=>e.id===r))||null}})).filter(Boolean),currentQuestion:e=>e.quiz?.questions[e.currentQuestionIndex]||null,isLastQuestion:e=>!!e.quiz&&e.currentQuestionIndex===e.quiz.questions.length-1,canProceed:e=>{const t=e.quiz?.questions[e.currentQuestionIndex];if(!t)return!1;const r=e.selectedOptions[e.currentQuestionIndex]||[];return r.length>=t.question.answer_min&&r.length<=t.question.answer_max},canGoBack:e=>e.currentQuestionIndex>0},actions:{async loadQuiz(){if(this.isDataLoaded)return;this.isLoading=!0;const e=jp(),t=await e.getQuizContent();t&&(this.quiz=t,this.isDataLoaded=!0,this.selectedOptions=Array(t.questions.length).fill([])),this.isLoading=!1},startQuiz(){this.quiz&&(this.currentQuestionIndex=0)},nextQuestion(){this.canProceed&&!this.isLastQuestion&&(this.currentQuestionIndex+=1)},prevQuestion(){this.currentQuestionIndex>0&&(this.currentQuestionIndex-=1)},jumpToQuestion(e){const t=this.quiz?.questions?.length||0;e>=0&&e<t&&(this.currentQuestionIndex=e)},replaceSelections(e){this.selectedOptions=e},async submitQuizAnswers(e,t){this.isLoading=!0;const r=function(e,t){const r={survey_id:1,questions:[]};return t?(t.forEach((e=>{if(!e)return;const t=e.map((e=>e.id));r.questions.push({answers:t})})),r):null}(0,t);if(r){const e=jp(),t=await e.submitQuizAnswers(r);t&&(this.surveyResult=t)}this.isLoading=!1},async submitQuizAnswersFromStore(){if(this.quiz&&this.selectedOptions?.length)return this.submitQuizAnswers(this.quiz.surveyId,this.selectedOptions);console.error("Quiz data or selected options are not available for submission")},restartQuiz(){this.surveyResult=null,this.currentQuestionIndex=-1,this.selectedOptions=[]}}}),Mp={async finishOnboarding(e){try{const r=Ep(),n=xp();e.location&&await n.updateUserLocation(e.location);const o=Array.isArray(e.interests)?[...new Set(e.interests)]:[];if(o.length&&await Promise.allSettled(o.map((e=>r.addUserIssueArea(e)))),e.quizResults){const r=(t=e.quizResults,(t?.result_score.split("-").filter((e=>"0"!==e))||[]).shift()||null);await n.saveUserGivingStyle(r,e.matchRating)}return!!(await r.completeOnboarding())&&(n.user.onboardCompleteAt=(new Date).toISOString(),!0)}catch(r){return console.error("Error finishing onboarding:",r),!1}var t}},Bp="gg-onboarding",zp="gg-skip-onboarding",qp={location:null,interests:[],quizResults:void 0,matchRating:void 0},Hp=Ke("onboarding",{state:()=>({currentStepIndex:0,maxVisitedIndex:0,completed:!1,stepValidity:{},pendingPromise:null,issueAreaOptions:[],quizStatus:$p.NOT_STARTED,quizStoreSubscription:null,data:{...qp}}),getters:{currentStep:e=>Np[e.currentStepIndex],isFirstStep:e=>0===e.currentStepIndex,isLastStep:e=>e.currentStepIndex===Np.length-1,isCurrentStepValid:e=>!!e.stepValidity[e.currentStepIndex],isCurrentStepQuiz:e=>
2e.currentStepIndex===Up,hasAnyInterest:e=>(e.data.interests?.length??0)>0,quizSkippedOrCompleted:e=>[$p.COMPLETED,$p.SKIPPED].includes(e.quizStatus),quizInProgress:e=>e.quizStatus==$p.IN_PROGRESS,quizComplete:e=>e.quizStatus==$p.COMPLETED,quizNotStartedOrSkipped:e=>[$p.NOT_STARTED,$p.SKIPPED].includes(e.quizStatus)},actions:{async initialize(){const e=xp();if(!(await this.processSkipFlagIfNeeded())){if(!e.isOnboarded){const e=pp(Bp);e&&"object"==typeof e&&this.$patch(e)}if(this.syncCurrentStepIndex(),xp().user.onboardCompleteAt&&!this.completed&&(this.completed=!0),Ap().getIssueAreas().then((e=>{this.issueAreaOptions=e})),!this.data.location){const e=vp();this.data.location=e.userPlace}if(!e.isOnboarded){const t=this.$subscribe(((r,n)=>{if(e.isOnboarded)return void t();const o={currentStepIndex:n.currentStepIndex,maxVisitedIndex:n.maxVisitedIndex,completed:n.completed,stepValidity:n.stepValidity,data:n.data};hp(Bp,o)}))}}},syncCurrentStepIndex(e){const t=e||Ar().currentRoute.value,r=Np.findIndex((e=>t.path.startsWith(e.path)));-1!==r&&r!==this.currentStepIndex&&this.setCurrentStepIndex(r)},setCurrentStepIndex(e){this.currentStepIndex=e,this.currentStepIndex>this.maxVisitedIndex&&(this.maxVisitedIndex=this.currentStepIndex)},setCompleted(e){this.completed=e},markCurrentStepValid(e){this.stepValidity[this.currentStepIndex]=e},next(){this.isCurrentStepValid&&(this.isLastStep||(this.currentStepIndex+=1,this.currentStepIndex>this.maxVisitedIndex&&(this.maxVisitedIndex=this.currentStepIndex),Ar().push(Np[this.currentStepIndex].path)))},prev(){this.currentStepIndex>0&&(this.currentStepIndex-=1,Ar().push(Np[this.currentStepIndex].path))},goTo(e,t=!1){this.setCurrentStepIndex(e),t&&Ar().push(Np[e].path)},goToStep(e,t=!0){const r=Np.findIndex((t=>t.name===e));r>-1&&this.goTo(r,t)},goToDoneStep(e=!1){e&&this.setCompleted(!0),this.currentStep?.name!==Lp.done&&this.goToStep(Lp.done)},setLocation(e){this.data.location=e},toggleInterest(e){const t=this.data.interests.indexOf(e);-1===t?this.data.interests.push(e):this.data.interests.splice(t,1)},skipQuiz(){this.isCurrentStepQuiz&&(this.quizStatus=$p.SKIPPED,this.markCurrentStepValid(!0),this.setCompleted(!0),this.goToDoneStep())},beginQuiz(){this.isCurrentStepQuiz&&(this.quizStatus=$p.IN_PROGRESS,Fp().startQuiz())},async submitQuiz(){const e=Fp();if(this.isCurrentStepQuiz&&e.isLastQuestion){this.pendingPromise=e.submitQuizAnswersFromStore(),await this.pendingPromise;const t=e.surveyResult;t&&(this.data.quizResults=t),this.quizStatus=$p.COMPLETED,this.markCurrentStepValid(!0),this.pendingPromise=null}},async restartQuiz(){Fp().restartQuiz(),this.quizStatus=$p.NOT_STARTED},async attemptToFinishOnboarding(){const e=xp();if(e.isOnboarded)console.warn("User is already onboarded, skipping onboarding process");else if(this.completed){if(this.pendingPromise=new Promise((()=>{})),!e.isAuthenticated)return hp(Bp,this.data),void(this.pendingPromise=null);await this.saveOnboardingData(),this.pendingPromise=null}else console.warn("wizard not completed yet")},async saveOnboardingData(){const e=xp(),t=Mp;await t.finishOnboarding(this.data)&&(e.user.onboardCompleteAt=(new Date).toISOString(),this.resetLocalData())},async onAfterStepChange(){this.currentStep?.name===Lp.done&&await this.attemptToFinishOnboarding()},determineLandingPagePath(){return xp().isOnboarded||this.completed?"/onboarding/done":"/onboarding/intro"},resetLocalData(){this.data={...qp},hp(Bp,null),hp(zp,null)},async skipOnboardingEntirely(){const e=xp();if(e.isAuthenticated){const t=Ep();await t.completeOnboarding()&&(e.user.onboardCompleteAt=(new Date).toISOString(),this.resetLocalData(),Cr("/",{external:!0}))}else hp(zp,!0),pu().trackSignupClick("modal","onboarding_skip"),Ru()},async processSkipFlagIfNeeded(){const e=xp();if(!e.isAuthenticated)return!1;if(!pp(zp))return!1;if(hp(zp,null),e.isOnboarded)return!1;const t=Ep();return!!(await t.completeOnboarding())&&(e.user.onboardCompleteAt=(new Date).toISOString(),this.resetLocalData(),!0)},subscribeToQuizStore(){if(this.quizStoreSubscription)return;const e=Fp();this.quizStoreSubscription=e.$subscribe(((e,t)=>{this.data.matchRating!==t.matchRating&&(this.data.matchRating=t.matchRating)}))}}}),Vp=[js,Ir(((e,t)=>{const r=dr(),n=xp(),o=Hp(),a=n.isAuthenticated;if((i=e.path)===ns.BASE||i?.startsWith(`${ns.BASE}/`)){if(!r.public.openToPublic&&(s=n.user?.email??"",!/^[a-zA-Z0-9._%+-]+@givingcompass\.org$/.test(s)))return window.location.href=r.public.ggUrl,!1;if(!a)return Pu(),!1}var s,i;if(r.public.enforceOnboarding&&a&&n.loaded&&!n.isOnboarded&&!fu(e.path)){const e=o.determineLandingPagePath();return Cr(e,{external:!0})}})),Ir((async e=>{let t,r;const n=([t,r]=Xt((()=>Jn({path:e.path}))),t=await t,r(),t);if(n.redirect)return wt(n.redirect,{acceptRelative:!0})?(window.location.href=n.redirect,!1):n.redirect}))],Wp={"auth-guard":()=>Gn((()=>import("./3_OTW3jb.js")),__vite__mapDeps([197,2,3]),import.meta.url),"benchmark-check":()=>Gn((()=>import("./iAlJtDke.js")),__vite__mapDeps([198,2,3]),import.meta.url),"ein-validator":()=>Gn((()=>import("./CF2d_dAq.js")),__vite__mapDeps([199,2,3]),import.meta.url),"enterprise-admin":()=>Gn((()=>import("./CXcXJ_IJ.js")),__vite__mapDeps([200,2,3]),import.meta.url),"gc-admin":()=>Gn((()=>import("./DpAqInxQ.js")),__vite__mapDeps([201,2,3]),import.meta.url),"onboarding-client":()=>Gn((()=>import("./C-YUG1q9.js")),__vite__mapDeps([202,2,3]),import.meta.url),"pro-subscription":()=>Gn((()=>import("./CWiTCRG7.js")),__vite__mapDeps([203,2,3]),import.meta.url),"trial-only":()=>Gn((()=>import("./BwhKM3Qh.js")),__vite__mapDeps([204,2,3]),import.meta.url),"sidebase-auth":()=>Gn((()=>Promise.resolve().then((()=>hh))),void 0,import.meta.url)};const Gp=sr({name:"nuxt:router",enforce:"pre",async setup(r){let n,o,a=dr().app.baseURL;$s&&!a.includes("#")&&(a+="#");const s=Ds.history?.(a)??($s?(i=a,(i=location.host?i||location.pathname+location.search:"").includes("#")||(i+="#"),ia(i)):ia(a));var i;const l=Ds.routes?([n,o]=Xt((()=>Ds.routes(As))),n=await n,o(),n??As):As;let c;const u=Ka({...Ds,scrollBehavior:(e,t,r)=>{if(t!==Qo){if(Ds.scrollBehavior){if(u.options.scrollBehavior=Ds.scrollBehavior,"scrollRestoration"in window.history){const e=u.beforeEach((()=>{e(),window.history.scrollRestoration="manual"}))}return Ds.scrollBehavior(e,Qo,c||r)}}else c=r},history:s,routes:l});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),r.vueApp.use(u);const d=y(u.currentRoute.value);u.afterEach(((e,t)=>{d.value=t})),Object.defineProperty(r.vueApp.config.globalProperties,"previousRoute",{get:()=>d.value});const p=function(e,t,r){const{pathname:n,search:o,hash:a}=t,s=e.indexOf("#");if(s>-1){const t=a.includes(e.slice(s))?e.slice(s).length:1;let r=a.slice(t);return"/"!==r[0]&&(r="/"+r),Pt(r,"")}const i=Pt(n,e),l=r&&(c=r,ht(St(i))!==ht(St(c)))?r:i;var c;
2return l+(l.includes("?")?"":o)+a}(a,window.location,r.payload.path),h=y(u.currentRoute.value),f=()=>{h.value=u.currentRoute.value};r.hook("page:finish",f),u.afterEach(((e,t)=>{e.matched[e.matched.length-1]?.components?.default===t.matched[t.matched.length-1]?.components?.default&&f()}));const m={};for(const e in h.value)Object.defineProperty(m,e,{get:()=>h.value[e],enumerable:!0});r._route=e(m),r._middleware||={global:[],named:{}};const g=Lr();u.afterEach((async(e,t,n)=>{delete r._processingMiddleware,!r.isHydrating&&g.value&&await r.runWithContext(Ur),n&&await r.callHook("page:loading:end")}));try{[n,o]=Xt((()=>u.isReady())),await n,o()}catch(b){[n,o]=Xt((()=>r.runWithContext((()=>Nr(b))))),await n,o()}const v=p!==u.currentRoute.value.fullPath?u.resolve(p):u.currentRoute.value;f();const _=r.payload.state._layout;return u.beforeEach((async(e,n)=>{await r.callHook("page:loading:start"),e.meta=t(e.meta),r.isHydrating&&_&&!x(e.meta.layout)&&(e.meta.layout=_),r._processingMiddleware=!0;{const t=new Set([...Vp,...r._middleware.global]);for(const r of e.matched){const e=r.meta.middleware;if(e)for(const r of ts(e))t.add(r)}{const n=await r.runWithContext((()=>Jn({path:e.path})));if(n.appMiddleware)for(const e in n.appMiddleware)n.appMiddleware[e]?t.add(e):t.delete(e)}for(const a of t){const t="string"==typeof a?r._middleware.named[a]||await(Wp[a]?.().then((e=>e.default||e))):a;if(!t)throw new Error(`Unknown route middleware: '${a}'.`);try{const o=await r.runWithContext((()=>t(e,n)));if(!r.payload.serverRendered&&r.isHydrating&&(!1===o||o instanceof Error)){const e=o||Dr({statusCode:404,statusMessage:`Page Not Found: ${p}`});return await r.runWithContext((()=>Nr(e))),!1}if(!0===o)continue;if(!1===o)return o;if(o)return $r(o)&&o.fatal&&await r.runWithContext((()=>Nr(o))),o}catch(o){const e=Dr(o);return e.fatal&&await r.runWithContext((()=>Nr(e))),e}}}})),u.onError((async()=>{delete r._processingMiddleware,await r.callHook("page:loading:end")})),u.afterEach((e=>{if(0===e.matched.length)return r.runWithContext((()=>Nr(Dr({statusCode:404,fatal:!1,statusMessage:`Page not found: ${e.fullPath}`,data:{path:e.fullPath}}))))})),r.hooks.hookOnce("app:created",(async()=>{try{"name"in v&&(v.name=void 0),await u.replace({...v,force:!0}),u.options.scrollBehavior=Ds.scrollBehavior}catch(b){await r.runWithContext((()=>Nr(b)))}})),{provide:{router:u}}}});function Kp(e){const t=[];return{stack:t,push:function(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)return()=>{};e._context;const r={};for(const t in e){const n=e[t];void 0!==n&&""!==n&&(r[t]=n)}let n;return Object.keys(r).filter((e=>!e.startsWith("_"))).length>0&&(n=t.push(r)),()=>{void 0!==n&&t.splice(n-1,1)}},get:function(e){const r={};e?.debug&&(r._context={}),r._priority={};for(const n in t.sort(((e,t)=>(e._priority||0)-(t._priority||0))))for(const o in t[n]){const a=o,s=e?.resolveRefs?l(t[n][o]):t[n][o];o.startsWith("_")||void 0===s||""===s||(r[o]=s,void 0!==t[n]._priority&&-1!==t[n]._priority&&(r._priority[a]=t[n]._priority),e?.debug&&(r._context[a]=t[n]._context?.[a]||t[n]._context||"anonymous"))}return e?.skipNormalize?r:function(e){void 0!==e.indexable&&(e.indexable="false"!==String(e.indexable)),void 0===e.trailingSlash||e.trailingSlash||(e.trailingSlash="false"!==String(e.trailingSlash)),e.url&&!wt(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=function(e,t){let r=e.match(gt);return r||(r=e.match(/^\/{2,}/)),r?t+e.slice(r[0].length):t+e}(String(e.url),"https://"));const t=Object.keys(e).sort(((e,t)=>e.localeCompare(t))),r={};for(const n of t)r[n]=e[n];return r}(r)}}}const Qp=sr({name:"nuxt-site-config:init",enforce:"pre",async setup(e){const t=Kp();{const e=po("site-config").value||window.__NUXT_SITE_CONFIG__||{};for(const r in e)"_"!==r[0]&&t.push({[r]:e[r],_priority:e._priority?.[r]||-1})}return{provide:{nuxtSiteConfig:t}}}}),Yp=sr({name:"nuxt:payload",setup(e){const t=new Set;Ar().beforeResolve((async(r,n)=>{if(r.path===n.path)return;const o=await Xn(r.path);if(o){for(const r of t)delete e.static.data[r];for(const r in o.data)r in e.static.data||t.add(r),e.static.data[r]=o.data[r]}})),dc((()=>{e.hooks.hook("link:prefetch",(async e=>{const{hostname:t}=new URL(e,window.location.href);t===window.location.hostname&&await Xn(e).catch((()=>{console.warn("[nuxt] Error preloading payload for",e)}))}
2)),"slow-2g"!==navigator.connection?.effectiveType&&setTimeout(Yn,1e3)}))}}),Jp=sr((()=>{const e=Ar();dc((()=>{e.beforeResolve((async()=>{await new Promise((e=>{setTimeout(e,100),requestAnimationFrame((()=>{setTimeout(e,0)}))}))}))}))})),Xp=sr((e=>{let t;async function r(){let n;try{n=await Yn()}catch(o){const e=o;if(!("status"in e)||404!==e.status&&403!==e.status)throw e}t&&clearTimeout(t),t=setTimeout(r,rr);try{const r=await $fetch(Vt("builds/latest.json")+`?${Date.now()}`);r.id!==n?.id&&(e.hooks.callHook("app:manifest:update",r),t&&clearTimeout(t))}catch{}}dc((()=>{t=setTimeout(r,rr)}))})),Zp=sr({name:"nuxt:chunk-reload",setup(e){const t=Ar(),r=dr(),n=new Set;function o(e){!function(e={}){const t=e.path||window.location.pathname;let r={};try{r=tt(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||r?.path!==t||r?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:ur().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}({path:Tt(r.app.baseURL,e.fullPath),persistState:!0})}t.beforeEach((()=>{n.clear()})),e.hook("app:chunkError",(({error:e})=>{n.add(e)})),e.hook("app:manifest:update",(()=>{t.beforeResolve(o)})),t.onError(((e,t)=>{n.has(e)&&o(t)}))}});const eh=Object.freeze(Object.assign((()=>{}),{__mock__:!0})),th=eh,rh=eh,nh=eh,oh=eh,ah=eh;function sh(e,r,n){const o=(a=e,(dr().public.scripts||{})[a]);var a;const s=Object.assign(n||{},"object"==typeof o?o:{}),i=r(s),l=br(s.scriptInput,i.scriptInput,{key:e}),c=Object.assign(s?.scriptOptions||{},i.scriptOptions||{}),u=c.beforeInit;return c.beforeInit=()=>{u?.(),i.clientInit?.()},function(e,r){e="string"==typeof e?{src:e}:e,r=br(r,dr().public["nuxt-scripts"]?.defaultScriptOptions);const n=String(function(e){return e.key||e.src||("string"==typeof e.innerHTML?e.innerHTML:"")}(e)),o=ur();if(r.head=r.head||qn(),!r.head)throw new Error("useScript() has been called without Nuxt context.");o.$scripts=o.$scripts||t({}),o.$scripts,"onNuxtReady"!==r.trigger&&"client"!==r.trigger||(r.warmupStrategy||(r.warmupStrategy="preload"),"onNuxtReady"===r.trigger&&(r.trigger=dc));const a=zn(e,r),s=a.remove;return a.remove=()=>(o.$scripts[n]=void 0,s()),o.$scripts[n]=a,a}(l,c)}eh({id:th(),l:nh(th()),auth:nh(th()),preview:nh(th()),cookiesWin:nh(ah([rh(),oh("x")])),debug:nh(ah([rh(),oh("x")])),npa:nh(ah([rh(),oh("1")])),dataLayer:nh(th()),envName:nh(th()),authReferrerPolicy:nh(th())});const ih=sr({name:"scripts:init",env:{islands:!1},parallel:!0,setup(){var e;return{provide:{$scripts:{googleTagManager:(e={},sh(e?.key||"googleTagManager",(t=>{const r=t?.l??t?.dataLayer??"dataLayer";return{scriptInput:{src:Rt("https://www.googletagmanager.com/gtm.js",{id:t.id,l:t.l,gtm_auth:t.auth,gtm_preview:t.preview,gtm_cookies_win:t.cookiesWin?"x":void 0,gtm_debug:t.debug?"x":void 0,gtm_npa:t.npa?"1":void 0,gtm_data_layer:t.dataLayer,gtm_env:t.envName,gtm_auth_referrer_policy:t.authReferrerPolicy})},schema:void 0,scriptOptions:{use:()=>({dataLayer:window[r],google_tag_manager:window.google_tag_manager}),performanceMarkFeature:"nuxt-third-parties-gtm",tagPriority:1},clientInit:()=>{window[r]=window[r]||[],e?.onBeforeGtmStart?.((function(...e){window[r].push(e)})),window[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"})}}}),e))}}}}}),lh=sr({name:"pinia",setup(e){const t=Qe();return e.vueApp.use(t),Ye(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),ch=sr({name:"nuxt:global-components"}),uh={default:$e((()=>Gn((()=>import("./CLSqM_gt.js")),__vite__mapDeps([205,206,159,2,18,22,89,62,9,25,26,27,28,20,24,21,23,3,36,42,53,149,31,207]),import.meta.url).then((e=>e.default||e)))),gg:$e((()=>Gn((()=>import("./d0SadUA8.js")),__vite__mapDeps([208,1,2,6,34,102,42,206,159,18,22,89,62,9,25,26,27,28,20,24,21,23,3,36,53,50,44,209,207]),import.meta.url).then((e=>e.default||e)))),onboarding:$e((()=>Gn((()=>import("./SEPvAPdS.js")),__vite__mapDeps([210,1,2,209,3,42,207,22,27,28]),import.meta.url).then((e=>e.default||e))))},dh=sr({name:"nuxt:prefetch",setup(e){const t=Ar();e.hooks.hook("app:mounted",(()=>{t.beforeEach((async e=>{const t=e?.meta?.layout;t&&"function"==typeof uh[t]&&await uh[t]()}))})),e.hooks.hook("link:prefetch",(e=>{if(wt(e))return;const r=t.resolve(e);if(!r)return;const n=r.meta.layout;let o=ts(r.meta.middleware);o=o.filter((e=>"string"==typeof e));for(const t of o)"function"==typeof Wp[t]&&Wp[t]();var a;"string"==typeof n&&n in uh&&(a=uh[n],a?.__asyncLoader&&!a.__asyncResolved&&a.__asyncLoader())}))}}),ph=Ir((e=>{const t="boolean"==typeof(r=e.meta.auth)||void 0===r?!1!==r?{unauthenticatedOnly:!1,navigateAuthenticatedTo:"/",navigateUnauthenticatedTo:void 0}:void 0:"object"==typeof r?(void 0===r.unauthenticatedOnly&&(r.unauthenticatedOnly=!0),{unauthenticatedOnly:r.unauthenticatedOnly,navigateAuthenticatedTo:r.navigateAuthenticatedTo??"/",navigateUnauthenticatedTo:r.navigateUnauthenticatedTo}):void 0;var r;if(!t)return;const n=dr().public.auth,{status:o,signIn:a}=Ic(),s=t.unauthenticatedOnly,i="authenticated"===o.value;if(s&&"unauthenticated"===o.value)return;if(s&&i)return Cr(t.navigateAuthenticatedTo);if(i)return;if("local"===n.provider.type){const t=n.provider.pages.login;if(t&&t===e.path)return}const l=n.globalAppMiddleware;if((!0===l||"object"==typeof l&&l.allow404WithoutAuth)&&!(e.matched.length>0))return;if(t.navigateUnauthenticatedTo)return Cr(t.navigateUnauthenticatedTo);if("authjs"===n.provider.type){const t=function(e,t){const r="object"==typeof e.globalAppMiddleware?e.globalAppMiddleware.addDefaultCallbackUrl:void 0;return"string"==typeof r?r:!0===r||void 0===r&&!0===e.globalAppMiddleware?t.fullPath:void 0}(n,e);return a(void 0,{error:"SessionRequired",callbackUrl:t}).then((e=>!e||e.navigationResult))}const c=n.provider.pages.login;if("string"!=typeof c)return void console.warn(`${yc} provider.pages.login is misconfigured`);const u=vc(c);if("object"==typeof l&&l.addDefaultCallbackUrl){let t=e.fullPath;return"string"==typeof l.addDefaultCallbackUrl&&(t=l.addDefaultCallbackUrl),Cr({path:c,query:{redirect:t}},{external:u})}return Cr(c,{external:u})})),hh=Object.freeze(Object.defineProperty({__proto__:null,default:ph},Symbol.toStringTag,{value:"Module"}));function fh(e){return Math.min(e,2147483647)}const mh=new class{constructor(e){this.config=e,this.boundVisibilityHandler=this.visibilityHandler.bind(this)}auth;runtimeConfig;refetchIntervalTimer;refreshTokenIntervalTimer;boundVisibilityHandler;init(){this.runtimeConfig=dr().public.auth,this.auth=Ic(),document.addEventListener("visibilitychange",this.boundVisibilityHandler,!1);
2const{enablePeriodically:e}=this.config;if(!1!==e&&void 0!==e){const t=!0===e?1e3:fh(e);this.refetchIntervalTimer=setInterval((()=>{this.auth?.data.value&&this.auth.refresh()}),t)}const t=this.runtimeConfig.provider;if("local"===t.type&&t.refresh.isEnabled&&t.refresh.token?.maxAgeInSeconds){const e=fh(1e3*t.refresh.token.maxAgeInSeconds);this.refreshTokenIntervalTimer=setInterval((()=>{this.auth?.refreshToken.value&&this.auth.refresh()}),e)}}destroy(){document.removeEventListener("visibilitychange",this.boundVisibilityHandler,!1),clearInterval(this.refetchIntervalTimer),this.refreshTokenIntervalTimer&&clearInterval(this.refreshTokenIntervalTimer),this.auth=void 0,this.runtimeConfig=void 0}visibilityHandler(){this.config?.enableOnWindowFocus&&"visible"===document.visibilityState&&this.auth?.data.value&&this.auth.refresh()}}({enablePeriodically:36e5,enableOnWindowFocus:!0}),gh=sr((async e=>{let t,r;const{data:n,lastRefreshedAt:o,loading:a}=Tc(),{getSession:s}=Ic(),i=dr().public.auth,l=i.globalAppMiddleware;let c=!1;var u,d;e.ssrContext&&(c=void 0!==(u=e.ssrContext.event,d="x-nitro-prerender",function(e){const t={};for(const r in e.node.req.headers){const n=e.node.req.headers[r];t[r]=Array.isArray(n)?n.filter(Boolean).join(", "):n}return t}(u)[d.toLowerCase()]));let p={}.disableServerSideAuth;p??=i?.disableServerSideAuth,p??=!1,p&&(a.value=!0);const h=!0===e.ssrContext?.error,f=!0===l||"object"==typeof l&&l.allow404WithoutAuth;if(!(void 0!==n.value||c||p||h&&f))try{[t,r]=Xt((()=>s())),await t,r()}catch(g){if(!(g instanceof bc))throw g}e.hook("app:mounted",(()=>{mh.init(),p&&s()}));const m=e.vueApp.unmount;e.vueApp.unmount=function(){mh.destroy(),o.value=void 0,n.value=void 0,m()},(!0===l||"object"==typeof l&&l.isEnabled)&&((e,t,r={})=>{const n=ur(),o=r.global||"string"!=typeof e,a=t;a?o?n._middleware.global.push(a):n._middleware.named[e]=a:console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e)})("auth",ph,{global:!0})})),vh=Ke("app",{state:()=>({storesInitialized:!1,appReadyToRender:!0}),actions:{setAppReadyToRender(e){this.appReadyToRender=e}
2,setStoresInitialized(e){this.storesInitialized=e}}});function yh(e){if("number"==typeof e)return Number.isInteger(e)?e:void 0;if("string"==typeof e){const t=e.trim();if(/^-?\d+$/.test(t)){const e=parseInt(t,10);if(Number.isSafeInteger(e))return e}}}function _h(e,t=!1){if(null==e)return"$0";if(t&&Math.abs(e)>=1e3)return"$"+bh(e);let r=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:2}).format(e);return r=r.replace(/\.00$/,""),r}function bh(e){const t=[{value:1e12,symbol:"T"},{value:1e9,symbol:"B"},{value:1e6,symbol:"M"},{value:1e3,symbol:"K"}];for(const{value:r,symbol:n}of t)if(Math.abs(e)>=r){const t=e/r;return(1e12===r?Number(t.toFixed(1)):Math.floor(10*t)/10).toString().replace(/\.0$/,"")+n}return e.toString()}function wh(e){return 1e3===e?"1,000+":e.toLocaleString()}const Eh=(e,{fixed:t=0}={})=>{const r=100*e;return 0===t?Math.round(r):parseFloat(r.toFixed(t))},Sh=(e,{fixed:t=0,approximate:r=!0}={})=>{const n=Eh(e,{fixed:t});return r&&0===Eh(e,{fixed:0})&&e>0?`+${n}%`:0===t?`${Math.round(n)}%`:`${n.toFixed(t)}%`},kh=(e,{fixed:t=0,approximate:r=!0}={})=>{const n=Eh(e,{fixed:t});return r&&0===Eh(e,{fixed:0})&&e>0?`+${n}`:0===t?`${Math.round(n)}`:n.toFixed(t)},Ph=e=>{if(!e)return!1;const t=e.trim();return/^-?\d+(\.\d+)?$/.test(t)&&!isNaN(Number(t))};function Rh(e=null){if(null===e||""===e)return!1;const t=Number(String(e).trim().replace(/[$,]/g,""));return!isNaN(t)&&t>=0}function Ah(e){return[/^\d+(\.\d+)?$/,/^\$?\d+(\.\d+)?$/,/^\$?\d{1,3}(,\d{3})*(\.\d+)?$/].some((t=>t.test(e)))}function Th(e=null){if(""===e)return;const t=Number(String(e).replace(/[$,]/g,""));return isNaN(t)||t<0?void 0:Math.round(t)}function Ih(e){return/^[0-9]{5}$/.test(e)}function Ch(e){if(qs(e))return;const t=Number(e);return isNaN(t)?void 0:t}const Oh="CASH",xh="VOLUNTEER",Lh=1e9,Nh={[Oh]:"giving",[xh]:"volunteering"},Uh={100:"High school or less",200:"Some college",250:"Vocational program",310:"Associate degree",320:"Bachelor's degree",340:"Master's degree",370:"Doctorate"},$h=Object.keys(Uh).map((e=>({value:e,text:Uh[e]}))),Dh=[{value:"0-24999",text:"Under $25,000"},{value:"25000-50000",text:"$25,000 - $50,000"},{value:"50001-100000",text:"$50,001 - $100,000"},{value:"100001-250000",text:"$100,001 - $250,000"},{value:"250001-500000",text:"$250,001 - $500,000"},{value:"500001-750000",text:"$500,001 - $750,000"},{value:"750001-1000000",text:"$750,001 - $1M"},{value:"1000001-5000000",text:"$1M - $5M"},{value:"5000001-10000000",text:"$5M - $10M"},{value:"10000001",text:"Over $10M"}],jh="networth_toggle",Fh="comparison_source",Mh="net_worth",Bh="income",zh=function(e=[],t="CASH"){return e.reduce(((e=0,r)=>r.type===t?e+Number(r.target||0):e),0)},qh={async getBenchmark(){const{data:e}=await Cc("/planner/benchmark");return this.cleanBenchmarkData(L(e.value)??{})},async saveBenchmark(e){const t=this.mapToStoreDemographics(e),{data:r}=await Cc("/planner/benchmark",{method:"POST",body:t});return this.cleanBenchmarkData(L(r.value)??{})},async calculateBenchmark(e){const{data:t}=await Cc("/planner/calculate",{method:"POST",body:e});return L(t.value)},async createInitialPlan(e){const t={benchmark_id:e},{data:r}=await Cc("/planner/initialize",{method:"POST",body:t});return L(r.value)},async getPlans(){const{data:e}=await Cc("/planner/plans");return L(e.value)},cleanBenchmarkData:e=>({user_id:e.user_id?.toString()||"",dob:e.dob?.toString()||void 0,zip:e.zip?.toString()||void 0,region:e.region?.toString()||void 0,education:e.education?.toString()||void 0,min_income:Ch(e.min_income),max_income:Ch(e.max_income),prior_giving:Ch(e.prior_giving),prior_volunteering:Ch(e.prior_volunteering),cash_like_me:Ch(e.cash_like_me),cash_leaders_like_me:Ch(e.cash_leaders_like_me),volunteer_like_me:Ch(e.volunteer_like_me),source:e.source?.toString()||void 0,others_like_me_fallback:Boolean(e.others_like_me_fallback),giving_leaders_fallback:Boolean(e.giving_leaders_fallback)}),mapToStoreDemographics:e=>({dob:parseInt(e.dob),zip:e.zip,region:parseInt(e.region),education:parseInt(e.education),min_income:e.min_income,max_income:e.max_income,prior_giving:e.prior_giving,prior_volunteering:e.prior_volunteering,cash_like_me:e.cash_like_me,cash_leaders_like_me:e.cash_leaders_like_me,volunteer_like_me:e.volunteer_like_me,others_like_me_fallback:e.others_like_me_fallback,giving_leaders_fallback:e.g
2iving_leaders_fallback}),async updatePlan(e){const{data:t}=await Cc(`/planner/plans/${e.planId}`,{method:"PATCH",body:{plan_year:e.plan_year,cash_target:e.cash_target,volunteer_target:e.volunteer_target,income:e.income,net_worth:e.net_worth}});return t.value},async migratePlan(){const{data:e}=await Cc("/planner/plan/migrate",{method:"POST"});return L(e.value)},async createFocusArea(e,t){const{data:r}=await Cc(`/planner/plans/${e}/focus-areas`,{method:"POST",body:t});return L(r.value)},async deleteFocusArea(e,t){await Cc(`/planner/plans/${e}/focus-areas/${t}`,{method:"DELETE"})},async batchProcessFocusAreas(e,{create:t=[],update:r=[],destroy:n=[]}){try{await Promise.all([...t.map((t=>this.createFocusArea(e,{planId:e,focus_area_id:t.focus_area_id,contribution_target:t.target,contribution_type:t.type}))),...r.map((t=>this.createFocusArea(e,{planId:e,focus_area_id:t.focus_area_id,contribution_target:t.target,contribution_type:t.type}))),...n.map((t=>this.deleteFocusArea(e,t.id)))])}catch(o){throw o}},async getFocusAreas(){const{data:e}=await Cc("/planner/focus-areas");return L(e.value)}};function Hh(){return qh}const Vh="session.benchmark_id",Wh="session.benchmark_form_data",Gh=Ke("planner",{state:()=>({plans:[],activePlanYear:(new Date).getFullYear(),currentPlan:null,displayNetWorth:!!pp(jh),comparisonSource:pp(Fh)||Bh,focusAreas:[],benchmark:{data:{user_id:"",others_like_me_fallback:!1,giving_leaders_fallback:!1},recalculating:!1,animating:!1,step:0,steps:[],modal:{icon:"",id:"",index:0,input_icon:"",input_label:"",name:"",open:!1,question:""}},errors:[],isLoading:!1,editModal:{birth_year:null,education:null,errors:{},income:null,open:!1,prior_year_giving:null,prior_year_volunteer:null,zipcode:null},focusAreaModal:{isOpen:!1,type:null}}),getters:{hasPlans:e=>e.plans.length>0,planChanged:e=>{if(!e.currentPlan)return!1;const t=e.displayNetWorth!==!!pp(jh),r=e.plans.find((t=>t.plan_year===e.currentPlan?.plan_year));if(!r)return!1;const n=Number(e.currentPlan.cash_target)!==Number(r.cash_target)||Number(e.currentPlan.volunteer_target)!==Number(r.volunteer_target),o=e.currentPlan.income!==r.income||e.currentPlan.net_worth!==r.net_worth,a=!(e.currentPlan.focus_areas.length===r.focus_areas.length&&e.currentPlan.focus_areas.every((e=>{const t=r.focus_areas.find((t=>t.id===e.id));return t&&t.target===e.target})));return t||n||o||a},hasExceededContributionTarget(e){if(!e.currentPlan)return!1;const t=this.getUnallocatedCash,r=this.getUnallocatedHours;return t<0||r<0},getFocusAreaTargetTotalCash:e=>e.currentPlan?.focus_areas?zh(e.currentPlan.focus_areas,Oh):0,getFocusAreaTargetTotalHours:e=>e.currentPlan?.focus_areas?zh(e.currentPlan.focus_areas,xh):0,getItemizedFocusAreas:e=>(e,t)=>e.filter((e=>e.type===t&&e.target)).sort(((e,t)=>t.target-e.target)).map((e=>({...e,route:e.slug?{name:"take_action",params:{focus_area_id:e.focus_area_id,contribution_type:t===Oh?"giving":"volunteering"}}:null}))),getUnallocatedHours:e=>{if(!e.currentPlan)return 0;const{volunteer_target:t,focus_areas:r}=e.currentPlan,n=r.filter((e=>e.type===xh)).reduce(((e,t)=>e+t.target),0);return Number(t)-n},getUnallocatedCash:e=>{if(!e.currentPlan)return 0;const{cash_target:t,focus_areas:r}=e.currentPlan,n=r.filter((e=>e.type===Oh)).reduce(((e,t)=>e+t.target),0);return Number(t)-n},getGivingRatioIncome:e=>e.currentPlan?.cash_target&&e.currentPlan?.income?Number(e.currentPlan.cash_target)/e.currentPlan.income:null,getGivingRatioNetWorth:e=>e.currentPlan?.cash_target&&e.currentPlan?.net_worth?Number(e.currentPlan.cash_target)/e.currentPlan.net_worth:null,hasCurrentYearPlan:e=>e.plans.some((e=>e.current_year)),focusAreaMap:e=>e.focusAreas.reduce(((e,t)=>(e[t.id]=t,e)),{}),isFallback:e=>e.benchmark.data.giving_leaders_fallback||e.benchmark.data.others_like_me_fallback,givingWeights:e=>{const t=e=>{if(!e)return"$0";const t=Number(e);return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:t%1==0?0:2}).format(t)},r=[{icon:{class:"size-lg bg-gc-green border-0 text-white",symbol:"mdi-navigation"},label:"My Giving",raw:e.benchmark.recalculating?0:Number(e.benchmark.data.prior_giving),value:t(e.benchmark.recalculating?0:e.benchmark.data.prior_giving)},{label:"Others Like Me",raw:e.benchmark.recalculating?0:Number(e.benchmark.data.cash_like_me),value:t(e.benchmark.recalculating?0:e.benchmark.data.cash_like_me)}];return(e.benchmark.data.cash_like_me||0)<=(e.benchmark.data.cash_leaders_like_me||0)&&r.push({icon:{class:"size-xl border-0 text-gc-rising bg-transparent",symbol
2:"mdi-star"},label:"Giving Leaders",raw:e.benchmark.recalculating?0:Number(e.benchmark.data.cash_leaders_like_me),value:t(e.benchmark.recalculating?0:e.benchmark.data.cash_leaders_like_me)}),r},volunteeringWeights:e=>{const t=[{icon:{class:"size-lg bg-gc-green border-0 text-white",symbol:"mdi-navigation"},label:"Prior Volunteering",raw:e.benchmark.recalculating?0:Number(e.benchmark.data.prior_volunteering),value:`${e.benchmark.recalculating?0:e.benchmark.data.prior_volunteering||0} hours`}];return e.benchmark.data.volunteer_like_me&&t.push({label:"Others Like Me",raw:e.benchmark.recalculating?0:Number(e.benchmark.data.volunteer_like_me),value:`${e.benchmark.recalculating?0:e.benchmark.data.volunteer_like_me} hours`}),t},currentStep:e=>e.benchmark.step,totalSteps:e=>e.benchmark.steps.length,currentStepError:e=>{const t=e.benchmark.steps[e.benchmark.step-1];return t?e.errors.find((e=>e.id===t.id)):null},canAdvanceToNext:e=>{const{step:t,steps:r}=e.benchmark;return 0===t||!(t>r.length)&&!!r[t-1]}},actions:{async initialize(){xp().isAuthenticated&&sessionStorage.getItem(Vh)&&await this.createInitialPlanFromBenchmarkId()},async loadUserBenchmark(){if(xp().isAuthenticated){this.isLoading=!0;try{this.benchmark.data=await Hh().getBenchmark()}catch(e){this.errors.push({id:"loadBenchmark",message:"Failed to load benchmark data"})}finally{this.isLoading=!1}}},async updateBenchmark(e){this.isLoading=!0,this.benchmark.recalculating=!0;try{const t={...this.benchmark.data,...e},r=await Hh().saveBenchmark(t);this.benchmark.data=r,this.editModal.open=!1}catch(t){this.errors.push({id:"updateBenchmark",message:"Failed to update benchmark data"})}finally{this.isLoading=!1,this.benchmark.recalculating=!1}},async loadPlans(e=!1){if(xp().isAuthenticated&&(e||!this.plans.length)){this.isLoading=!0;try{const e=await Hh().getPlans();this.plans=e;let r=e.find((e=>this.activePlanYear?e.plan_year===String(this.activePlanYear):e.current_year));r||(r=[...e].sort(((e,t)=>Number(e.plan_year)-Number(t.plan_year))).pop()||void 0),this.currentPlan=r?(t=r,"undefined"!=typeof window&&"structuredClone"in window?structuredClone(t):JSON.parse(JSON.stringify(t))):void 0}catch(r){this.errors.push({id:"loadPlans",message:"Failed to load plans"})}finally{this.isLoading=!1}var t}},async loadFocusAreas(){this.focusAreas.length||(this.focusAreas=await Hh().getFocusAreas())},setActivePlanYear(e){this.activePlanYear=e;const t=this.plans.find((t=>t.plan_year===String(e)));t&&(this.currentPlan=t)},updatePlanData(e){this.currentPlan&&Object.assign(this.currentPlan,e)},removeFocusArea(e){if(!this.currentPlan)return;const t=this.currentPlan.focus_areas.findIndex((t=>t.focus_area_id===e));-1!==t&&(this.currentPlan.focus_areas[t].slug?this.currentPlan.focus_areas.splice(t,1):this.currentPlan.focus_areas[t].target=0)},async savePlan(e=!0){if(this.currentPlan){this.isLoading=!0;try{await Hh().updatePlan({planId:this.currentPlan.id,cash_target:Number(this.currentPlan.cash_target),volunteer_target:Number(this.currentPlan.volunteer_target),income:this.currentPlan.income,net_worth:this.currentPlan.net_worth,plan_year:Number(this.currentPlan.plan_year)});const t=this.plans.find((e=>e.id===this.currentPlan?.id));if(!t)throw new Error("Original plan not found");const r={create:[],update:[],destroy:[]};this.currentPlan.focus_areas.forEach((e=>{const n=t.focus_areas.find((t=>t.id===e.id));n?n.target!==e.target&&r.update.push(e):r.create.push(e)})),t.focus_areas.forEach((e=>{this.currentPlan.focus_areas.some((t=>t.id===e.id))||r.destroy.push(e)})),await Hh().batchProcessFocusAreas(this.currentPlan.id,r),e&&await Ar().push({name:rs.GivingGoals})}catch(t){throw this.errors.push({id:"updatePlan",message:"Failed to save plan changes"}),t}finally{this.isLoading=!1}}},setDisplayNetWorth(e){this.displayNetWorth=e},openEditModal(){this.editModal={birth_year:this.benchmark.data.dob||null,education:this.benchmark.data.education||null,errors:{},income:this.benchmark.data.min_income?`${this.benchmark.data.min_income}${this.benchmark.data.max_income?`-${this.benchmark.data.max_income}`:""}`:null,open:!0,prior_year_giving:this.benchmark.data.prior_giving?.toString()||null,prior_year_volunteer:this.benchmark.data.prior_volunteering?.toString()||null,zipcode:this.benchmark.data.zip||null}},closeEditModal(){this.editModal.open=!1},clearErrors(){this.errors=[]},initializeSteps(e){this.benchmark.steps=e},restoreBenchmarkFormData(){const e=sessionStorage.getItem(Wh);if(e)try{const t=JSON.parse(e);this.benchmark.data={...this.benchmark.data,...t}}catch(r){console.error("Failed to restore benchmark form data:",r)}const t=sessionStorage.getItem("session.benchmark_step");t&&(this.benchmark.step=Number(t))},advanceToNextStep(){if(this.currentStepError)return;const{step:e,steps:t}=this.benchmark;(0===e||e<=t.length&&this.canAdvanceToNext)&&(this.benchmark.step++,sessionStorage.setItem("session.benchmark_step",String(this.benchmark.step)))},setAnimating(e){this.benchmark.animating=e},setBenchmarkModalProperties(e){this.benchmark.modal={...this.benchmark.modal,...e}},setBenchmarkResponse({id:e,value:t}
2){if("prior_year_giving"===e)this.benchmark.data.prior_giving=Th(t);else if("prior_year_volunteer"===e)this.benchmark.data.prior_volunteering=Th(t);else if("zipcode"===e)this.benchmark.data.zip=t;else if("birth_year"===e)this.benchmark.data.dob=t;else if("education"===e)this.benchmark.data.education=t;else if("income"===e){const[e,r]=t.split("-");this.benchmark.data.min_income=Number(e),this.benchmark.data.max_income=r?Number(r):void 0}sessionStorage.setItem(Wh,JSON.stringify(this.benchmark.data))},async calculateBenchmark(){this.clearErrors(),this.isLoading=!0;try{const e={birth_year:this.benchmark.data.dob||"",education:this.benchmark.data.education||"",income:`${this.benchmark.data.min_income}${this.benchmark.data.max_income?`-${this.benchmark.data.max_income}`:""}`,prior_year_giving:Number(this.benchmark.data.prior_giving||0),prior_year_volunteer:Number(this.benchmark.data.prior_volunteering||0),zipcode:this.benchmark.data.zip||"",min_income:Number(this.benchmark.data.min_income||0),max_income:Number(this.benchmark.data.max_income||0),source:"GC"},t=await Hh().calculateBenchmark(e);return this.benchmark.data={...this.benchmark.data,cash_like_me:t.base.expected_giving_total,volunteer_like_me:t.base.expected_volunteer_total,others_like_me_fallback:t.base.fallback,cash_leaders_like_me:t.top.expected_giving_total,giving_leaders_fallback:t.top.fallback},this.storeInitialBenchmarkId(t.id),sessionStorage.removeItem(Wh),sessionStorage.removeItem("session.benchmark_step"),this.benchmark.step=0,t}catch(e){throw this.errors.push({id:"calculateBenchmark",message:"Failed to calculate benchmark"}),e}finally{this.isLoading=!1}},storeInitialBenchmarkId(e){sessionStorage.setItem(Vh,e)},async createInitialPlanFromBenchmarkId(){if(!xp().isAuthenticated)return Pu();const e=sessionStorage.getItem(Vh);if(e){if(await this.loadUserBenchmark(),!this.benchmark.data.user_id)return await Hh().createInitialPlan(e),sessionStorage.removeItem(Vh),await this.loadPlans(!0),await this.loadUserBenchmark(),Ar().replace({name:rs.GivingGoals});console.error("User already has benchmark -- skipping creation")}else console.error("No benchmark id found in session storage")},async migratePlan(){const e=new Date;await Hh().migratePlan(),this.activePlanYear=e.getFullYear(),await this.loadPlans(!0);const t=Ar();if(t.currentRoute.value.name!==rs.EditPlan)return t.push({name:rs.EditPlan})},openFocusAreaModal(e){this.focusAreaModal.isOpen=!0,this.focusAreaModal.type=e},closeFocusAreaModal(){this.focusAreaModal.isOpen=!1,this.focusAreaModal.type=null},toggleDisplayNetWorth(){this.displayNetWorth=!this.displayNetWorth,localStorage.setItem(jh,String(this.displayNetWorth))},setComparisonSource(e){[Mh,Bh].includes(e)&&(this.comparisonSource=e,localStorage.setItem(Fh,e))}}}),Kh={async getAllFavorites(){try{const e=fc().API_FAVORITES_URL,{data:t,error:r}=await Cc(e,{params:{size:100}});return r.value?(console.error("Error getting favorites:",r.value),null):t.value}catch(e){return console.error("Error getting favorites:",e),null}},async getEnrichedFavorites(e="NONPROFIT",t={page:1,size:10}){try{const r=fc().API_ENRICHED_FAVORITES_URL,n={...t,content_type:e},{data:o,error:a}=await Cc(r,{params:n});return a.value?(console.error("Error getting enriched favorites:",a.value),null):o.value}catch(r){return console.error("Error getting enriched favorites:",r),null}},async saveFavorite(e){try{const t=fc().API_FAVORITES_URL,{data:r,error:n}=await Cc(t,{method:"POST",body:e});return n.value?(console.error("Error saving favorite:",n.value),null):r.value}catch(t){return console.error("Error saving favorite:",t),null}},async deleteFavorite(e){try{const t=fc().API_FAVORITES_URL,{error:r}=await Cc(`${t}/${e}`,{method:"DELETE"});return!r.value||(console.error("Error deleting favorite:",r.value),!1)}catch(t){return console.error("Error deleting favorite:",t),!1}}};function Qh(){return Kh}const Yh={title:"Giving Compass Pro",description:"Professional features for philanthropists and advisors",upgradeDescription:"Upgrade to Pro and gain access to advanced tools that help you manage, analyze, and grow your nonprofit impact more effectively.",features:[{title:"Advanced Nonprofit Search",description:"Powerful AI-driven search that understands context and intent, helping you discover the right nonprofits with precision filtering and smart recommendations."},{title:"Compass Explorer",description:"Ask any question about 2 million nonprofits in plain English. Our AI translates your questions into precise queries across IRS 990 filings, executive compensation, grants, and financial data — building data tables and reports you can explore and export as CSV, with maximum reasoning depth for your most complex questions."},{title:"Nonprofit Lists",description:"Build, organize, and share curated lists of nonprofits — then ask the AI about any list to analyze and compare the organizations on it."},{title:"AI Research Agents",description:"Enrich any nonprofit with deeper data. Our AI agents analyze annual reports to extract impact metrics, success stories, and key insights — and we're always expanding what they can find."},{title:"Advanced Data Insights Dashboard",description:"Compare nonprofits side-by-side and visualize organizations across multiple dimensions to inform your giving strategy. Zoom from the national view down to any zip code on an interactive map layered with community data, uncovering funding gaps, service desert
2s, and the organizations already on the ground."},{title:"Priority Support",description:"Faster response times and dedicated help for Pro users."}],originalPrice:25,limits:{MAX_ARTICLE_FAVORITES:50,MAX_NONPROFIT_FAVORITES:50}},Jh=Ke("favorites",{state:()=>({favorites:[],favoritesLoaded:!1,pendingFavorite:void 0,enrichedFavorites:[],enrichedFavoritesPromise:void 0,currentContentType:lu.NONPROFIT,currentPage:1,pageSize:9,totalItems:0}),getters:{favoritesByContentId:e=>e.favorites.reduce(((e,t)=>(e[t.content_id]=t,e)),{}),isFavorite(){return(e,t)=>{const r=e?.toString(),n=this.favoritesByContentId[r];return!!n&&n.content_type===t}},currentPagination(){return{page:this.currentPage,size:this.pageSize}},totalPages(){return Math.ceil(this.totalItems/this.pageSize)},nonprofitFavoritesCount(){return this.favorites.filter((e=>e.content_type===lu.NONPROFIT)).length},articleFavoritesCount(){return this.favorites.filter((e=>e.content_type===lu.ARTICLE)).length},maxNonprofitFavorites:()=>xp().hasSubscription?Yh.limits.MAX_NONPROFIT_FAVORITES:10,maxArticleFavorites:()=>xp().hasSubscription?Yh.limits.MAX_ARTICLE_FAVORITES:10,canAddNonprofitFavorite(){return this.nonprofitFavoritesCount<this.maxNonprofitFavorites},canAddArticleFavorite(){return this.articleFavoritesCount<this.maxArticleFavorites}},actions:{async initialize(){xp().isAuthenticated&&(await this.processPendingFavorite(),await this.loadAllFavorites())},async loadAllFavorites(){if(xp().isAuthenticated){const e=await Qh().getAllFavorites();e&&(this.favorites=e.items),this.favoritesLoaded=!0}else this.favoritesLoaded=!0},async loadEnrichedFavorites(){const e=Qh().getEnrichedFavorites(this.currentContentType,this.currentPagination);this.enrichedFavoritesPromise=e;const t=await this.enrichedFavoritesPromise;t&&this.enrichedFavoritesPromise===e&&(this.enrichedFavorites=t.items.filter((e=>e.content)),this.totalItems=t.total,this.enrichedFavoritesPromise=void 0)},async setContentType(e){this.currentContentType=e,this.currentPage=1,await this.loadEnrichedFavorites()},async setPage(e){this.currentPage=e,await this.loadEnrichedFavorites()},async saveFavorite(e,t,r=!1){if(t===lu.NONPROFIT&&!this.canAddNonprofitFavorite)return Js().showSnackbar({message:`You've reached the limit of ${this.maxNonprofitFavorites} saved nonprofits. Remove some to add more.`,color:"warning",linkText:"Manage",linkTo:"/profile"}),null;if(t===lu.ARTICLE&&!this.canAddArticleFavorite)return Js().showSnackbar({message:`You've reached the limit of ${this.maxArticleFavorites} saved articles. Remove some to add more.`,color:"warning",linkText:"Manage",linkTo:"/profile"}),null;const n={content_type:t,content_id:e.toString(),note:null};pu().trackContentSaved(e,t);const o=await Qh().saveFavorite(n);return o&&(this.favorites.push(o),r||Js().showSnackbar({message:"Saved to favorites",color:"success"})),o},async removeFavorite(e,t,r=!1){const n=this.favoritesByContentId[e.toString()];if(!n||n.content_type!==t)return!1;const o=await Qh().deleteFavorite(n.id);return o&&(r||Js().showSnackbar({message:"Removed from favorites",color:"success"}),this.favorites=this.favorites.filter((e=>e.id!==n.id)),this.enrichedFavorites=this.enrichedFavorites.filter((e=>e.id!==n.id)),this.totalItems-=1,this.currentPage>1&&0===this.enrichedFavorites.length&&await this.setPage(this.currentPage-1)),o},async processPendingFavorite(){const e=this.loadPendingFavorite();e&&(await this.saveFavorite(e.content_id,e.content_type),this.clearPendingFavorite())},loadPendingFavorite(){const e=pp(cu);return e?(this.pendingFavorite=e,e):null},storePendingFavorite(e,t){const r={content_type:t,content_id:e.toString()};hp(cu,r),this.pendingFavorite=r},clearPendingFavorite(){hp(cu,void 0),this.pendingFavorite=void 0}}});function Xh(e){const t=()=>{document.hidden||e()};m((()=>{document.addEventListener("visibilitychange",t)})),p((()=>{document.removeEventListener("visibilitychange",t)}))}let Zh=null;const ef={async getProducts(){if(Zh)return Zh;try{const e=fc().API_STRIPE_PRODUCTS_URL,{data:t,error:r}=await Cc(e);if(r.value)return console.error("Error fetching Stripe products:",r.value),[];const n=t.value||[];return Zh=n,n}catch(e){return console.error("Error fetching Stripe products:",e),[]}},clearProductsCache(){Zh=null},async createCheckoutSession(e,t,r){try{const n=fc().API_STRIPE_CHECKOUT_SESSION_URL,o={price_id:e,success_url:t,cancel_url:r},{data:a,error:s}=await Cc(n,{method:"POST",body:o});return s.value?(console.error("Error creating checkout session:",s.value),null):a.value||null}catch(n){return console.error("Error creating checkout session:",n),null}}};function tf(){return ef}async function rf(e){const t=dr(),r=tf(),n=(await r.getProducts()).find((e=>e.id===t.public.gcProProductId));if(!n?.price?.id)throw new Error("GC Pro product not found");const o=t.public.ggUrl||window.location.origin,{successUrl:a,cancelUrl:s}=function(e,t){const r=e.replace(/\/$/,"");return{successUrl:`${r}${ns.SUBSCRIPTION}?payment_confirmation=true`,cancelUrl:t?`${r}${t}`:`${r}${ns.SUBSCRIPTION}`}}(o,e),i=await r.createCheckoutSession(n.price.id,a,s);if(!i?.url)throw new Error("Failed to create checkout session");window.location.href=i.url}function nf(){const e=u(!1);return Xh((()=>{e.value=!1})),{isUpgrading:e,startFreeTrial:async function(t){if(!e.value){e.value=!0;try{await rf(t)}catch(r){console.error("Upgrade error:",r),e.value=!1}}}}}const of="gg-upgrade-to-pro-intent";function af(e){try{window.sessionStorage.setItem(of,JSON.stringify(e))}catch(t){console.warn("[upgradeIntent] Failed to persist intent:",t)}}const sf="gg-preview-access-invite";function lf(e){try{window.sessionStorage.setItem(sf,JSON.stringify(e))}catch(t){console.warn("[previewInvite] Failed to persist invite:",t)}}
2const cf={invalid:"This access link isn't valid — double-check the link you were given.",closed:"This preview has closed.",full:"This preview has reached capacity.",unauthorized:"Please sign in again to activate your preview access.",bad_token:"Please sign in again to activate your preview access.",error:"Something went wrong activating your preview access. Please try again."};async function uf(e){if(!e)return!1;const t=xp(),r=await Ep().redeemPreviewCode(e);return r.ok?(r.permissionsUpdated&&await t.refreshAuthToken(),t.previewExpiresAt=r.expiresAt,!0):(Js().showSnackbar({message:cf[r.reason],color:"error",timeout:6e3}),!1)}async function df(e,t={}){try{const{data:r,error:n}=await Cc(e,t);return n.value?(console.error("Enterprise request error:",n.value),{data:null,error:n.value}):{data:r.value,error:null}}catch(r){return console.error("Enterprise request exception:",r),{data:null,error:r}}}function pf(e){return e?.statusCode??e?.response?.status}function hf(e){return`${fc().API_ENTERPRISE_ORGS_URL}/${e}`}const ff={listMyOrgs:()=>df(fc().API_ENTERPRISE_ORGS_URL),getMyOrg:e=>df(hf(e)),inviteMembers:(e,t)=>df(`${hf(e)}/members`,{method:"POST",body:{emails:t}}),resendInvite:(e,t)=>df(`${hf(e)}/members/resend`,{method:"POST",body:{email:t}}),revokeMember:(e,t)=>df(`${hf(e)}/members/revoke`,{method:"POST",body:{email:t}}),mintInviteLink:(e,t=[])=>df(`${hf(e)}/invite-link`,{method:"POST",body:{allowedDomains:t}}),revokeInviteLink:e=>df(`${hf(e)}/invite-link/revoke`,{method:"POST"}),joinViaInviteLink:e=>df(fc().API_ENTERPRISE_JOIN_URL,{method:"POST",body:{token:e}}),checkInviteToken:e=>df(`${fc().API_ENTERPRISE_INVITE_CHECK_URL}/${encodeURIComponent(e)}`)};function mf(){return ff}const gf="gg-enterprise-join-intent";function vf(e){try{window.sessionStorage.setItem(gf,JSON.stringify(e))}catch(t){console.warn("[enterpriseJoin] Failed to persist join intent:",t)}}function yf(){try{window.sessionStorage.removeItem(gf)}catch{}}function _f(e){const t=e?.data?.detail;if("string"==typeof t)return t;if(Array.isArray(t))return t.map((e=>e.msg)).join("; ");const r=pf(e);return 404===r||410===r?"Your organization's invite link is no longer valid — ask them for a current one.":"Something went wrong joining your organization. Open your invite link to try again."}const bf=sr((async e=>{let t,r;const n=vh();if(n.storesInitialized)return void console.warn("Stores already initialized.");const o=yp(),a=vp(),s=Gh(),i=Jh(),l=Hp();try{[t,r]=Xt((()=>o.initialize())),await t,r();{[t,r]=Xt((()=>a.initialize())),await t,r(),[t,r]=Xt((()=>l.initialize())),await t,r(),[t,r]=Xt((()=>async function(){const e=xp();if(!e.isAuthenticated)return!1;const t=function(){try{const e=window.sessionStorage.getItem(of);return e?JSON.parse(e):null}catch{return null}}();if(!t)return!1;if(function(){try{window.sessionStorage.removeItem(of)}catch{}}(),e.hasSubscription)return!1;if(!e.isOnboarded)try{await Ep().completeOnboarding()?e.user.onboardCompleteAt=(new Date).toISOString():console.warn("[upgradeIntent] completeOnboarding returned falsy; proceeding to Stripe anyway.")}catch(r){console.warn("[upgradeIntent] completeOnboarding threw; proceeding to Stripe anyway:",r)}try{return await rf(t.returnUrl),!0}catch(r){return console.error("[upgradeIntent] Stripe redirect failed:",r),!1}}())),await t,r(),[t,r]=Xt((()=>async function(){const e=xp();if(!e.isAuthenticated)return!1;const t=function(){try{const e=window.sessionStorage.getItem(sf);return e?JSON.parse(e):null}catch{return null}}();return!!t&&(function(){try{window.sessionStorage.removeItem(sf)}catch{}}(),!e.hasSubscription&&(await uf(t.code),!0))}())),await t,r(),[t,r]=Xt((()=>async function(){if(window.location.pathname.startsWith("/enterprise/join/"))return!1;const e=xp();if(!e.isAuthenticated)return!1;const t=function(){try{const e=window.sessionStorage.getItem(gf);return e?JSON.parse(e):null}catch{return null}}();if(!t)return!1;if(yf(),e.isEnterpriseMember)return!1;if(e.hasPaidSubscription)return!1;const{data:r,error:n}=await mf().joinViaInviteLink(t.token),o=Js();return n?(o.showSnackbar({message:_f(n),color:"error",timeout:6e3}),!0):!r||("pending"===r.status?(o.showSnackbar({message:`Your seat${r.orgName?` in ${r.orgName}`:""} is reserved — verify your email, then sign back in to activate Giving Compass Pro.`,color:"info",timeout:8e3}),!0):(r.permissionsUpdated&&await e.refreshAuthToken(),e.isEnterpriseMember||await e.syncTokenUntilEnterpriseMember(),e.previewExpiresAt=null,e.previewGrantType="enterprise",o.showSnackbar({message:`Welcome to ${r.orgName} — you now have Giving Compass Pro access.`,color:"success",timeout:6e3}),!0))}())),await t,r();const e=xp();e.isAuthenticated&&!e.hasPaidSubscription&&(e.fetchPreviewStatus(),"true"===new URLSearchParams(window.location.search).get("payment_confirmation")||e.fetchSub
2scriptionStatus()),[t,r]=Xt((()=>s.initialize())),await t,r()}n.setAppReadyToRender(!0),[t,r]=Xt((()=>i.initialize())),await t,r(),n.setStoresInitialized(!0)}catch(c){console.error("Failed to initialize stores:",c)}})),wf=sr((()=>{const e=xp(),{data:t,status:r}=Ic();g([r,t],(()=>{const n=r.value,o=t.value;"authenticated"===n&&o?.accessToken?e.setFromSession(o):"unauthenticated"!==n||e.isAuthenticated||e.reset()}),{immediate:!0,deep:!0})}));class Ef{async getProfile(){const{data:e,error:t}=await Cc("/advisor/profile");return t?.value?(console.error("Error fetching profile:",t.value),null):E(e)}async updateProfile(e){const{data:t,error:r}=await Cc("/advisor/profile",{method:"POST",body:e});return r?.value||!t?.value?(console.error("Error fetching profile:",r.value),!1):t?.value.success||!1}}const Sf=sr((e=>{e.provide("advisorService",new Ef)})),kf=sr((()=>{const e=Ar(),t=e.push.bind(e);e.push=function(e){const r="string"==typeof e?e:e?.path||e?.fullPath||"";return/^https?:\/\/[^\/]+\/authorize\b/i.test(r)?(console.warn("[auth] Blocked malformed Auth0 redirect via router.push:",r),Promise.resolve(void 0)):t(e)}}));class Pf{async getContacts(e={page:1,size:10}){const{data:t,error:r}=await Cc("/user/contacts",{params:e});return r?.value?(console.error("Error fetching contacts:",r.value),{items:[],total:0,size:0,page:0}):E(t)}async getContact(e){const{data:t,error:r}=await Cc(`/user/contacts/${e}`);return r?.value?(console.error("Error fetching contact:",r.value),null):E(t)}async saveNewContact(e){const{data:t,error:r}=await Cc("/user/contacts",{method:"POST",body:e});return r?.value?(console.error("Error saving contact:",r.value),null):E(t)}async updateContact(e,t){const{data:r,error:n}=await Cc(`/user/contacts/${e}`,{method:"POST",body:t});return n?.value?(console.error("Error updating contact:",n.value),null):E(r)}async deleteContact(e){const{data:t,error:r}=await Cc(`/user/contacts/${e}`,{method:"DELETE"});return r?.value||!t?.value?(console.error("Error deleting contact:",r.value),!1):t?.value.success||!1}async saveContactEIN(e,t){const r=`/user/contacts/${e}/ein`,{data:n,error:o}=await Cc(r,{method:"POST",body:t});return o?.value?(console.error("Error saving contact EIN:",o.value),null):E(n)}async deleteContactEIN(e,t){const r=`/user/contacts/${e}/ein/${t}`,{data:n,error:o}=await Cc(r,{method:"DELETE"});return o?.value||!n?.value?(console.error("Error deleting contact EIN:",o.value),!1):n?.value.success||!1}async saveContactNTEE(e,t){const r=`/user/contacts/${e}/ntee`,{data:n,error:o}=await Cc(r,{method:"POST",body:t});return o?.value?(console.error("Error saving contact NTEE:",o.value),null):E(n)}async deleteContactNTEE(e,t){const r=`/user/contacts/${e}/ntee/${t}`,{data:n,error:o}=await Cc(r,{method:"DELETE"});return o?.value||!n?.value?(console.error("Error deleting contact NTEE:",o.value),!1):n?.value.success||!1}async getEnrichedRecommendations(e,t="NONPROFIT",r={page:1,size:10}){const n={...r,content_type:t},o=`/user/contacts/${e}/recommended/enriched`,{data:a,error:s}=await Cc(o,{method:"GET",params:n});return s?.value?(console.error("Error getting enriched recommendations:",s.value),null):E(a)}async deleteRecommendation(e,t){const r=`/user/contacts/${e}/recommended/${t}`,{data:n,error:o}=await Cc(r,{method:"DELETE"});return o?.value||!n?.value?(console.error("Error deleting contact recommendation:",o.value),!1):n?.value.success||!1}async getReport(e){const{data:t,error:r}=await Cc(`/user/contacts/${e}/report`);return r?.value?(console.error("Error fetching contact report:",r.value),null):E(t)}}const Rf=sr((e=>{e.provide("contactsService",new Pf)})),Af=sr((()=>{let e=Date.now();Ar().afterEach((()=>
2{if(!xp().isAuthenticated||yp().trialMode)return;const t=Date.now();t-e<9e5||(e=t,Dc().trackHubspotContact())}))})),Tf=sr((()=>{const e=po("isBackNavigation",(()=>!1)),t=Ar();window.addEventListener("popstate",(()=>{e.value=!0}),{capture:!0}),t.afterEach((()=>{A((()=>{e.value=!1}))}))})),If=sr((({$pinia:e})=>({provide:{userStore:xp(e)}})));class Cf{async getClientPortalSession(e=""){const{data:t,error:r}=await Cc("/user/stripe-client-portal-session",{method:"POST",body:JSON.stringify({returnUrl:e})});return t?.value?.url}async getUserSubscription(){const{data:e,error:t}=await Cc("/user/subscription");return t.value?(console.error("Error fetching user subscription:",t.value),null):e.value?.hasSubscription&&e.value.subscription||null}}const Of=sr((e=>{e.provide("solutionsService",new Cf)})),xf=globalThis.setInterval,Lf={threads:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Threads</title><path d="M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164 1.43 1.783 3.631 2.698 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.964-.065-1.19.408-2.285 1.33-3.082.88-.76 2.119-1.207 3.583-1.291a13.853 13.853 0 0 1 3.02.142c-.126-.742-.375-1.332-.75-1.757-.513-.586-1.308-.883-2.359-.89h-.029c-.844 0-1.992.232-2.721 1.32L7.734 7.847c.98-1.454 2.568-2.256 4.478-2.256h.044c3.194.02 5.097 1.975 5.287 5.388.108.046.216.094.321.142 1.49.7 2.58 1.761 3.154 3.07.797 1.82.871 4.79-1.548 7.158-1.85 1.81-4.094 2.628-7.277 2.65Zm1.003-11.69c-.242 0-.487.007-.739.021-1.836.103-2.98.946-2.916 2.143.067 1.256 1.452 1.839 2.784 1.767 1.224-.065 2.818-.543 3.086-3.71a10.5 10.5 0 0 0-2.215-.221z"/></svg>',bluesky:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Bluesky</title><path d="M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.478 0-.69-.139-1.861-.902-2.206-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z"/></svg>',tiktok:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>TikTok</title><path d="M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"/></svg>',x:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>X</title><path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg>'},Nf={component:e=>{const t=String(e.icon);return R(e.tag,{class:"v-icon__svg",innerHTML:Lf[t]??""})}},Uf=!1,$f=[so,lo,co,ho,vo,Gp,Qp,Yp,Jp,Xp,Zp,ih,lh,ch,dh,gh,bf,wf,Sf,kf,Rf,Af,Tf,If,Of,sr((e=>{const t=Tr(),r=xp(),n=dr();if("true"===t.query.payment_confirmation){const e=2500,t=15e3,o=Math.ceil(t/e);if(r.hasPaidSubscription){const e=n.public.ggUrl||window.location.origin;return void(window.location.href=`${e}${ns.SUBSCRIPTION}?upgraded=true`)}let a=0;const s=xf((async()=>
2{if(a++,await r.refreshAuthToken()){if(r.hasPaidSubscription){clearInterval(s);const e=n.public.ggUrl||window.location.origin;return void(window.location.href=`${e}${ns.SUBSCRIPTION}?upgraded=true`)}}else console.warn("[SubscriptionConfirmation] Token refresh failed, will retry...");if(a>=o){console.warn("[SubscriptionConfirmation] Polling timed out after 15 seconds"),clearInterval(s);const e=n.public.ggUrl||window.location.origin;window.location.href=`${e}${ns.SUBSCRIPTION}?upgrade_timeout=true`}}),e)}})),sr((e=>{e.hook("vuetify:before-create",(({vuetifyOptions:e})=>{e.icons||={},e.icons.sets={...e.icons?.sets||{},gc:Nf}}))})),sr({name:"vuetify:nuxt:client:plugin",order:25,dependsOn:["vuetify:icons:plugin","vuetify:client-hints:client:plugin"],parallel:!0,async setup(e){let t,r;const n={defaults:{global:{ripple:!1},VAppBar:{height:80},VNavigationDrawer:{width:220}},display:{mobileBreakpoint:"sm"},theme:{themes:{light:{colors:{primary:"#05AB84",secondary:"#304659","bright-white":"#FFFFFF","dark-navy":"#152F5F","giving-green":"#00AB84","soft-gray":"#C8C8C8","blaze-orange":"#F26C21","coral-red":"#FF4957","neptune-blue":"#3174F8","vibrant-lilac":"#8D4CF8","obsidian-black":"#0A0A0A","gc-community":"#339966","gc-green":"#73C337","gc-ink":"#363D3E","gc-caring":"#DA0D33","gc-gray":"#707576",white:"#FFFFFF",black:"#000000",cta:"#f26c21",anchor:"#3174F8"},variables:{"font-family-sans-serif":"Helvetica, sans-serif","font-family-serif":"Times New Roman, serif","heading-font-family":"var(--v-font-family-sans-serif)"}}}},ssr:!0};[t,r]=Xt((()=>e.hooks.callHook("vuetify:configuration",{isDev:Uf,vuetifyOptions:n}))),await t,r(),[t,r]=Xt((()=>e.hooks.callHook("vuetify:before-create",{isDev:Uf,vuetifyOptions:n}))),await t,r();const o=De(n);e.vueApp.use(o),e.provide("vuetify",o),[t,r]=Xt((()=>e.hooks.callHook("vuetify:ready",o))),await t,r()}})],Df=(t="RouteProvider")=>w({name:t,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const r=t.renderKey,n=t.route,o={};for(const e in t.route)Object.defineProperty(o,e,{get:()=>r===t.renderKey?t.route[e]:n[e],enumerable:!0});return P(Rr,e(o)),()=>t.vnode?R(t.vnode,{ref:t.vnodeRef}):t.vnode}}),jf=Df(),Ff=new WeakMap,Mf=w({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:r,expose:n}){const o=ur(),a=u(),i=s(Rr,null);let l;n({pageRef:a});const c=s(Pr,null);let d;const h=o.deferHydration();if(o.isHydrating){const e=o.hooks.hookOnce("app:error",h);Ar().beforeEach(e)}e.pageKey&&g((()=>e.pageKey),((e,t)=>{e!==t&&o.callHook("page:loading:start")}));let f=!1;{const e=Ar().beforeResolve((()=>{f=!1}));p((()=>{e()}))}return()=>R(Ga,{name:e.name,route:e.route,...t},{default:t=>{const n=function(e,t,r){if(!e)return!1;const n=t.matched.findIndex((e=>e.components?.default===r?.type));return!(!n||-1===n)&&(t.matched.slice(0,n).some(((t,r)=>t.components?.default!==e.matched[r]?.components?.default))||r&&es({route:t,Component:r})!==es({route:e,Component:r}))}(i,t.route,t.Component),s=i&&i.matched.length===t.route.matched.length;if(!t.Component)return d&&!s?d:void h();if(d&&c&&!c.isCurrent(t.route))return d;if(n&&i&&(!c||c?.isCurrent(i)))return s?d:null;const u=es(t,e.pageKey),p=(m=i,g=t.route,v=t.Component,!!m&&g.matched.findIndex((e=>e.components?.default===v?.type))<g.matched.length-1);var m,g,v;o.isHydrating||l!==u||p||A((()=>{f=!0,o.callHook("page:loading:end")})),l=u;const y=!!(e.transition??t.route.meta.pageTransition),_=y&&function(e){const t=e.filter(Boolean).map((e=>({...e,onAfterLeave:e.onAfterLeave?ts(e.onAfterLeave):void 0})));return br(...t)}([e.transition,t.route.meta.pageTransition,false,{onAfterLeave(){delete o._runningTransition,o.callHook("page:transition:finish",t.Component)}}]),b=e.keepalive??t.route.meta.keepalive??!1;return d=Ts(y&&_,((e,t)=>({default:()=>e?R(T,!0===e?{}:e,t):t}))(b,R(je,{suspensible:!0,onPending:()=>{y&&(o._runningTransition=!0),o.callHook("page:start",t.Component)}
2,onResolve:()=>{A((()=>o.callHook("page:finish",t.Component).then((()=>{if(delete o._runningTransition,!f&&!p)return f=!0,o.callHook("page:loading:end")})).finally(h)))}},{default:()=>{const e={key:u||void 0,vnode:r.default?Bf(r.default,t):t.Component,route:t.route,renderKey:u||void 0,trackRootNodes:y,vnodeRef:a};if(!b)return R(jf,e);const n=t.Component.type,o=n;let s=Ff.get(o);return s||(s=Df(n.name||n.__name),Ff.set(o,s)),R(s,e)}}))).default(),d}})}});function Bf(e,t){const r=e(t);return 1===r.length?R(r[0]):R(V,void 0,r)}const zf=w({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup:(e,t)=>()=>R(uh[e.name],e.layoutProps,t.slots)}),qf={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},Hf=w({name:"NuxtLayout",inheritAttrs:!1,props:qf,setup(e,t){const r=ur(),n=s(Rr),o=n&&n!==Tr()?n:Ya(),a=k((()=>{let t=E(e.name)??o?.meta.layout??"default";return t&&!(t in uh)&&e.fallback&&(t=E(e.fallback)),t})),i=y();t.expose({layoutRef:i});const l=r.deferHydration();if(r.isHydrating){const e=r.hooks.hookOnce("app:error",l);Ar().beforeEach(e)}let c;return()=>{const r=a.value&&a.value in uh,n=o?.meta.layoutTransition??!1,s=c;return c=a.value,Ts(r&&n,{default:()=>R(je,{suspensible:!0,onResolve:()=>{A(l)}},{default:()=>R(Vf,{layoutProps:ie(t.attrs,{ref:i}),key:a.value||void 0,name:a.value,shouldProvide:!e.name,isRenderingNewLayout:e=>e!==s&&e===a.value,hasTransition:!!n},t.slots)})}).default()}}}),Vf=w({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(t,r){const n=t.name;t.shouldProvide&&P(Pr,{isCurrent:e=>n===(e.meta.layout??"default")});const o=s(Rr);if(o&&o===Tr()){const r=Ya(),n={};for(const e in r){const a=e;Object.defineProperty(n,a,{enumerable:!0,get:()=>t.isRenderingNewLayout(t.name)?r[a]:o[a]})}P(Rr,e(n))}return()=>!n||"string"==typeof n&&!(n in uh)?r.slots.default?.():R(zf,{key:n,layoutProps:t.layoutProps,name:n},r.slots)}}),Wf=$({...G(),...Me(Be(),["fullHeight"]),...W()},"VApp"),Gf=K()({name:"VApp",props:Wf(),setup(e,t){let{slots:r}=t;const n=Q(e),{layoutClasses:o,getLayoutItem:a,items:s,layoutRef:i}=Fe({...e,fullHeight:!0}),{rtlClasses:l}=_e();return J((()=>q("div",{ref:i,class:H(["v-application",n.themeClasses.value,o.value,l.value,e.class]),style:Z([e.style])},[q("div",{class:"v-application__wrap"},[r.default?.()])]))),{getLayoutItem:a,items:s,theme:n}}}),Kf=w({__name:"app",setup(e){const t=["FeedPage","AgentRunsPage","CompassExplorerOriginalPage","InvalidationsPage"];return(e,r)=>{const n=Mf,o=Hf;return xe(),ze(Gf,null,{default:Ne((()=>[X(o,null,{default:Ne((()=>[X(n,{keepalive:{include:t}},null,8,["keepalive"])])),_:1})])),_:1})}}}),Qf=$({fluid:{type:Boolean,default:!1},...G(),...hd(),...Fu()},"VContainer"),Yf=K()({name:"VContainer",props:Qf(),setup(e,t){let{slots:r}=t;const{rtlClasses:n}=_e(),{dimensionStyles:o}=fd(e);return J((()=>X(e.tag,{class:H(["v-container",{"v-container--fluid":e.fluid},n.value,e.class]),style:Z([o.value,e.style])},r))),{}}}),Jf={class:"error-page"},Xf={class:"d-flex flex-column align-center"},Zf={key:0,class:"text-body-1 mb-2"},em={class:"buttons-container"},tm=up(w({__name:"error",setup(e){const t=Lr(),r=()=>{Ur({redirect:"/"})};return Hn((()=>({title:404===t.value?.statusCode?"Error - Page Not Found":500===t.value?.statusCode?"Error - Server Error":"Error"}))),(e,n)=>(xe(),Oe("div",Jf,[X(Yf,{class:"text-center py-10"},{default:Ne((()=>[X(Jd,{class:"mx-auto","max-width":"600"},{default:Ne((()=>[q("div",Xf,[404===E(t)?.statusCode?(xe(),Oe(V,{key:0},[n[2]||(n[2]=q("img",{src:ku,alt:"GC Logo",class:"mb-8",width:"100"},null,-1)),n[3]||(n[3]=q("h1",{class:"text-h1 font-weight-bold primary--text mb-3"},"404",-1)),n[4]||(n[4]=q("h2",{class:"text-h4 mb-5"},"Page Not Found",-1)),n[5]||(n[5]=q("p",{class:"text-body-1 mb-12"}," We couldn't find the page you were looking for. The page may have been moved, deleted, or never existed. ",-1))],64)):500===E(t)?.statusCode?(xe(),Oe(V,{key:1},[n[6]||(n[6]=q("img",{src:ku,alt:"GC Logo",class:"mb-8",width:"100"},null,-1)),n[7]||(n[7]=q("h1",{class:"text-h1 font-weight-bold error--text mb-3"},"500",-1)),n[8]||(n[8]=q("h2",{class:"text-h4 mb-5"},"Server Error",-1)),n[9]||(n[9]=q("p",{class:"text-body-1 mb-12"}," Our server encountered an error processing your request. Our team has been notified and we're working to fix the issue. ",-1))],64)):(xe(),Oe(V,{key:2},[n[10]||(n[10]=q("img",{src:ku,alt:"GC Logo",class:"mb-8",width:"100"},null,-1)),n[11]||(n[11]=q("h1",{class:"text-h3 font-weight-bold error--text mb-3"},"Oops! Something went wrong.",-1)),E(t)?.message?(xe(),Oe("p",Zf,[q("strong",null,Re(E(t).message),1)])):qe("",!0),n[12]||(n[12]=q("p",{class:"text-body-1 mb-12"}," We're sorry for the inconvenience. Please try again later. ",-1))],64)),q("div",em,[X(Qd,{onClick:r,color:"primary",rounded:"",size:"large",variant:"elevated"},{default:Ne((()=>[...n[13]||(n[13]=[Ue(" Back to Home ",-1)])])),_:1}),X(Qd,{onClick:n[0]||(n[0]=t=>("clearError"in e?e.clearError:E(Ur))({redirect:"/learning-center"})),color:"secondary",rounded:"",size:"large",variant:"tonal"},{default:Ne((()=>[...n[14]||(n[14]=[Ue(" Learning Center ",-1)])])),_:1}),X(Qd,{onClick:n[1]||(n[1]=t=>("clearError"in e?e.clearError:E(Ur))({redirect:"/search"})),color:"secondary",rounded:"",size:"large",variant:"tonal"},{default:Ne((()=>[...n[15]||(n[15]=[Ue(" Nonprofit Search ",-1)])])),_:1})])])])),_:1})])),_:1})]))}}),[["__scopeId","data-v-9033c400"]]),rm={key:0},nm={__name:"nuxt-root",setup(e){const t=()=>null,r=ur(),n=r.deferHydration();if(r.isHydrating){const e=r.hooks.hookOnce("app:error",n);Ar().beforeEach(e)}const o=!1;P(Rr,Tr()),r.hooks.callHookWith((e=>e.map((e=>e()))),"vue:setup");const a=Lr(),s=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;He(((e,t,n)=>(r.hooks.callHook("vue:error",e,t,n).catch((e=>console.error("[nuxt] Error in `vue:error` hook",e))),s.test(navigator.userAgent)?(r.hooks.callHook("app:error",e),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,e),!1):$r(e)&&(e.fatal||e.unhandled)?(r.runWithContext((()=>Nr(e))),!1):void 0)));const i=!1;return(e,r)=>
2(xe(),ze(je,{onResolve:E(n)},{default:Ne((()=>[E(!1)?(xe(),Oe("div",rm)):E(a)?(xe(),ze(E(tm),{key:1,error:E(a)},null,8,["error"])):E(i)?(xe(),ze(E(t),{key:2,context:E(i)},null,8,["context"])):E(o)?(xe(),ze(we(E(o)),{key:3})):(xe(),ze(E(Kf),{key:4}))])),_:1},8,["onResolve"]))}};let om;{let o;om=async function(){if(o)return o;const a=Boolean(window.__NUXT__?.serverRendered??"true"===document.getElementById("__NUXT_DATA__")?.dataset.ssr)?Ve(nm):We(nm),s=function(o){let a=0;const s={_id:o.id||tr||"nuxt-app",_scope:r(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.19.1"},get vue(){return s.vueApp.version}},payload:e({...o.ssrContext?.payload||{},data:e({}),state:t({}),once:new Set,_errors:e({})}),static:{data:{}},runWithContext:e=>s._scope.active&&!n()?s._scope.run((()=>lr(s,e))):lr(s,e),isHydrating:!0,deferHydration(){if(!s.isHydrating)return()=>{};a++;let e=!1;return()=>{if(!e)return e=!0,a--,0===a?(s.isHydrating=!1,s.callHook("app:suspense:resolve")):void 0}},_asyncDataPromises:{},_asyncData:e({}),_payloadRevivers:{},...o};{const e=window.__NUXT__;if(e)for(const t in e)switch(t){case"data":case"state":case"_errors":Object.assign(s.payload[t],e[t]);break;default:s.payload[t]=e[t]}}s.hooks=Ge(),s.hook=s.hooks.hook,s.callHook=s.hooks.callHook,s.provide=(e,t)=>{const r="$"+e;pr(s,r,t),pr(s.vueApp.config.globalProperties,r,t)},pr(s.vueApp,"$nuxt",s),pr(s.vueApp.config.globalProperties,"$nuxt",s);{window.addEventListener("vite:preloadError",(e=>{s.callHook("app:chunkError",{error:e.payload}),e.payload.message.includes("Unable to preload CSS")&&e.preventDefault()})),window.useNuxtApp||=ur;const e=s.hook("app:error",((...e)=>{console.error("[nuxt] error caught during app initialization",...e)}));s.hook("app:mounted",e)}const i=s.payload.config;return s.provide("config",i),s}({vueApp:a});async function i(e){await s.callHook("app:error",e),s.payload.error||=Dr(e)}a.config.errorHandler=i,s.hook("app:suspense:resolve",(()=>{a.config.errorHandler===i&&(a.config.errorHandler=void 0)}));try{await async function(e,t){const r=new Set,n=[],o=[];let a,s=0;async function i(l){const c=l.dependsOn?.filter((e=>t.some((t=>t._name===e))&&!r.has(e)))??[];if(c.length>0)n.push([new Set(c),l]);else{const t=async function(e,t){if("function"==typeof t){const{provide:r}=await e.runWithContext((()=>t(e)))||{};if(r&&"object"==typeof r)for(const t in r)e.provide(t,r[t])}}(e,l).then((async()=>{l._name&&(r.add(l._name),await Promise.all(n.map((async([e,t])=>{e.has(l._name)&&(e.delete(l._name),0===e.size&&(s++,await i(t)))}))))})).catch((t=>{if(!l.parallel&&!e.payload.error)throw t;a||=t}));l.parallel?o.push(t):await t}}for(const l of t)ar(e,l);for(const l of t)await i(l);if(await Promise.all(o),s)for(let l=0;l<s;l++)await Promise.all(o);if(a)throw e.payload.error||a}(s,$f)}catch(l){i(l)}try{await s.hooks.callHook("app:created",a),await s.hooks.callHook("app:beforeMount",a),a.mount("#__nuxt"),await s.hooks.callHook("app:mounted",a),await A()}catch(l){i(l)}return a},o=om().catch((e=>{throw console.error("Error while mounting app:",e),e}))}export{Dh as $,yu as A,Ap as B,lu as C,Ep as D,vp as E,po as F,Fa as G,_d as H,tp as I,Kc as J,Bc as K,mf as L,pf as M,dr as N,Yh as O,tf as P,ur as Q,rs as R,Xh as S,ns as T,xf as U,cd as V,fc as W,Iu as X,Gh as Y,$h as Z,up as _,Ya as a,wt as a$,Ah as a0,Rh as a1,Ih as a2,Bs as a3,zs as a4,_h as a5,wh as a6,bu as a7,wu as a8,Mf as a9,Bu as aA,zu as aB,nf as aC,af as aD,Qu as aE,Xu as aF,id as aG,Ju as aH,sd as aI,Yu as aJ,wd as aK,vd as aL,Pd as aM,kd as aN,gd as aO,bd as aP,np as aQ,Ed as aR,Xd as aS,Rd as aT,Cd as aU,dc as aV,cc as aW,uc as aX,ft as aY,Or as aZ,hc as a_,dp as aa,Gn as ab,rd as ac,Wl as ad,Eu as ae,Hn as af,Vn as ag,od as ah,Zd as ai,Fu as aj,Gd as ak,Ad as al,Ou as am,Wu as an,Nu as ao,fd as ap,$u as aq,ju as ar,Hu as as,Vu as at,Td as au,Du as av,Uu as aw,hd as ax,Lu as ay,Cu as az,Qa as b,Tt as b0,$s as b1,kt as b2,St as b3,Zt as b4,Vs as b5,iu as b6,jc as b7,Gs as b8,Ks as b9,vf as bA,Tu as bB,Ir as bC,fu as bD,Lp as bE,Np as bF,_u as ba,Jc as bb,Kd as bc,Uc as bd,er as be,Dr as bf,pc as bg,Hp as bh,Oh as bi,xh as bj,kh as bk,Eh as bl,Sh as bm,Bh as bn,Mh as bo,Lh as bp,Su as bq,Ph as br,Nh as bs,gu as bt,bh as bu,yh as bv,uf as bw,lf as bx,Au as by,yf as bz,xp as c,Jh as d,Qd as e,Tr as f,Fp as g,Pu as h,qs as i,ku as j,Ar as k,pu as l,Yf as m,Jd as n,Ru as o,pd as p,yp as q,Js as r,Wc as s,Fc as t,Cc as u,Cr as v,mu as w,vu as x,Qs as y,Ws as z};

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.