PageSourceSearch

https://heartspace.ai/assets/index-zaebASFV.js

js heartspace.ai collected 2026-09-24 19:26:22 UTC 14,203 bytes, 10 lines download raw bytes

1import{r,a as ne}from"./index-RhaF2DMN.js";import{R as me}from"./index-DuJdd2OJ.js";import{l as he,D as re,d as J,R as pe,e as ve,N as k,f as we,g as D,a as ae,s as I,h as Se,j as x,k as oe,I as ge,m as ye,b as Re,n as B,o as be,p as q,q as $}from"./index-D0yC-G3C.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"b60bf79"}}catch{}})();/**
2 * React Router DOM v6.30.0
3 *
4 * Copyright (c) Remix Software Inc.
5 *
6 * This source code is licensed under the MIT license found in the
7 * LICENSE.md file in the root directory of this source tree.
8 *
9 * @license MIT
10 */function T(){return T=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},T.apply(this,arguments)}function X(e,a){if(e==null)return{};var t={},o=Object.keys(e),n,s;for(s=0;s<o.length;s++)n=o[s],!(a.indexOf(n)>=0)&&(t[n]=e[n]);return t}const V="get",Y="application/x-www-form-urlencoded";function j(e){return e!=null&&typeof e.tagName=="string"}function Ee(e){return j(e)&&e.tagName.toLowerCase()==="button"}function Te(e){return j(e)&&e.tagName.toLowerCase()==="form"}function Le(e){return j(e)&&e.tagName.toLowerCase()==="input"}function Ce(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xe(e,a){return e.button===0&&(!a||a==="_self")&&!Ce(e)}function G(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((a,t)=>{let o=e[t];return a.concat(Array.isArray(o)?o.map(n=>[t,n]):[[t,o]])},[]))}function Pe(e,a){let t=G(e);return a&&a.forEach((o,n)=>{t.has(n)||a.getAll(n).forEach(s=>{t.append(n,s)})}),t}let M=null;function Fe(){if(M===null)try{new FormData(document.createElement("form"),0),M=!1}catch{M=!0}return M}const Ie=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function z(e){return e!=null&&!Ie.has(e)?null:e}function Ae(e,a){let t,o,n,s,l;if(Te(e)){let u=e.getAttribute("action");o=u?I(u,a):null,t=e.getAttribute("method")||V,n=z(e.getAttribute("enctype"))||Y,s=new FormData(e)}else if(Ee(e)||Le(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||u.getAttribute("action");if(o=f?I(f,a):null,t=e.getAttribute("formmethod")||u.getAttribute("method")||V,n=z(e.getAttribute("formenctype"))||z(u.getAttribute("enctype"))||Y,s=new FormData(u,e),!Fe()){let{name:i,type:c,value:h}=e;if(c==="image"){let d=i?i+".":"";s.append(d+"x","0"),s.append(d+"y","0")}else i&&s.append(i,h)}}else{if(j(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=V,o=null,n=Y,l=e}return s&&n==="text/plain"&&(l=s,s=void 0),{action:o,method:t.toLowerCase(),encType:n,formData:s,body:l}}const Ue=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ne=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],ke=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],De="6";try{window.__reactRouterVersion=De}catch{}const ie=r.createContext({isTransitioning:!1}),se=r.createContext(new Map),_e="startTransition",Q=ne[_e],Oe="flushSync",Z=me[Oe],Me="useId",ee=ne[Me];function Ke(e){Q?Q(e):e()}function N(e){Z?Z(e):e()}class Ve{constructor(){this.status="pending",this.promise=new Promise((a,t)=>{this.resolve=o=>{this.status==="pending"&&(this.status="resolved",a(o))},this.reject=o=>{this.status==="pending"&&(this.status="rejected",t(o))}})}}function nt(e){let{fallbackElement:a,router:t,future:o}=e,[n,s]=r.useState(t.state),[l,u]=r.useState(),[f,i]=r.useState({isTransitioning:!1}),[c,h]=r.useState(),[d,g]=r.useState(),[S,b]=r.useState(),y=r.useRef(new Map),{v7_startTransition:E}=o||{},m=r.useCallback(w=>{E?Ke(w):w()},[E]),p=r.useCallback((w,L)=>{let{deletedFetchers:R,flushSync:O,viewTransitionOpts:P}=L;
10w.fetchers.forEach((F,de)=>{F.data!==void 0&&y.current.set(de,F.data)}),R.forEach(F=>y.current.delete(F));let fe=t.window==null||t.window.document==null||typeof t.window.document.startViewTransition!="function";if(!P||fe){O?N(()=>s(w)):m(()=>s(w));return}if(O){N(()=>{d&&(c&&c.resolve(),d.skipTransition()),i({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let F=t.window.document.startViewTransition(()=>{N(()=>s(w))});F.finished.finally(()=>{N(()=>{h(void 0),g(void 0),u(void 0),i({isTransitioning:!1})})}),N(()=>g(F));return}d?(c&&c.resolve(),d.skipTransition(),b({state:w,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(u(w),i({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[t.window,d,c,y,m]);r.useLayoutEffect(()=>t.subscribe(p),[t,p]),r.useEffect(()=>{f.isTransitioning&&!f.flushSync&&h(new Ve)},[f]),r.useEffect(()=>{if(c&&l&&t.window){let w=l,L=c.promise,R=t.window.document.startViewTransition(async()=>{m(()=>s(w)),await L});R.finished.finally(()=>{h(void 0),g(void 0),u(void 0),i({isTransitioning:!1})}),g(R)}},[m,l,c,t.window]),r.useEffect(()=>{c&&l&&n.location.key===l.location.key&&c.resolve()},[c,d,n.location,l]),r.useEffect(()=>{!f.isTransitioning&&S&&(u(S.state),i({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),b(void 0))},[f.isTransitioning,S]),r.useEffect(()=>{},[]);let v=r.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:w=>t.navigate(w),push:(w,L,R)=>t.navigate(w,{state:L,preventScrollReset:R==null?void 0:R.preventScrollReset}),replace:(w,L,R)=>t.navigate(w,{replace:!0,state:L,preventScrollReset:R==null?void 0:R.preventScrollReset})}),[t]),C=t.basename||"/",U=r.useMemo(()=>({router:t,navigator:v,static:!1,basename:C}),[t,v,C]),_=r.useMemo(()=>({v7_relativeSplatPath:t.future.v7_relativeSplatPath}),[t.future.v7_relativeSplatPath]);return r.useEffect(()=>he(o,t.future),[o,t.future]),r.createElement(r.Fragment,null,r.createElement(re.Provider,{value:U},r.createElement(J.Provider,{value:n},r.createElement(se.Provider,{value:y.current},r.createElement(ie.Provider,{value:f},r.createElement(pe,{basename:C,location:n.location,navigationType:n.historyAction,navigator:v,future:_},n.initialized||t.future.v7_partialHydration?r.createElement(We,{routes:t.routes,future:t.future,state:n}):a))))),null)}const We=r.memo(Be);function Be(e){let{routes:a,future:t,state:o}=e;return ve(a,void 0,o,t)}const je=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",He=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ye=r.forwardRef(function(a,t){let{onClick:o,relative:n,reloadDocument:s,replace:l,state:u,target:f,to:i,preventScrollReset:c,viewTransition:h}=a,d=X(a,Ue),{basename:g}=r.useContext(k),S,b=!1;if(typeof i=="string"&&He.test(i)&&(S=i,je))try{let p=new URL(window.location.href),v=i.startsWith("//")?new URL(p.protocol+i):new URL(i),C=I(v.pathname,g);v.origin===p.origin&&C!=null?i=C+v.search+v.hash:b=!0}catch{}let y=Se(i,{relative:n}),E=qe(i,{replace:l,state:u,target:f,preventScrollReset:c,relative:n,viewTransition:h});function m(p){o&&o(p),p.defaultPrevented||E(p)}return r.createElement("a",T({},d,{href:S||y,onClick:b||s?o:m,ref:t,target:f}))}),rt=r.forwardRef(function(a,t){let{"aria-current":o="page",caseSensitive:n=!1,className:s="",end:l=!1,style:u,to:f,viewTransition:i,children:c}=a,h=X(a,Ne),d=B(f,{relative:h.relative}),g=D(),S=r.useContext(J),{navigator:b,basename:y}=r.useContext(k),E=S!=null&&Qe(d)&&i===!0,m=b.encodeLocation?b.encodeLocation(d).pathname:d.pathname,p=g.pathname,v=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;n||(p=p.toLowerCase(),v=v?v.toLowerCase():null,m=m.toLowerCase()),v&&y&&(v=I(v,y)||v);const C=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let U=p===m||!l&&p.startsWith(m)&&p.charAt(C)==="/",_=v!=null&&(v===m||!l&&v.startsWith(m)&&v.charAt(m.length)==="/"),w={isActive:U,isPending:_,isTransitioning:E},L=U?o:void 0,R;typeof s=="function"?R=s(w):R=[s,U?"active":null,_?"pending":null,E?"transitioning":null].filter(
10Boolean).join(" ");let O=typeof u=="function"?u(w):u;return r.createElement(Ye,T({},h,{"aria-current":L,className:R,ref:t,style:O,to:f,viewTransition:i}),typeof c=="function"?c(w):c)}),ze=r.forwardRef((e,a)=>{let{fetcherKey:t,navigate:o,reloadDocument:n,replace:s,state:l,method:u=V,action:f,onSubmit:i,relative:c,preventScrollReset:h,viewTransition:d}=e,g=X(e,ke),S=ce(),b=Xe(f,{relative:c}),y=u.toLowerCase()==="get"?"get":"post",E=m=>{if(i&&i(m),m.defaultPrevented)return;m.preventDefault();let p=m.nativeEvent.submitter,v=(p==null?void 0:p.getAttribute("formmethod"))||u;S(p||m.currentTarget,{fetcherKey:t,method:v,navigate:o,replace:s,state:l,relative:c,preventScrollReset:h,viewTransition:d})};return r.createElement("form",T({ref:a,method:y,action:b,onSubmit:n?i:E},g))});var A;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(A||(A={}));var W;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(W||(W={}));function H(e){let a=r.useContext(re);return a||x(!1),a}function le(e){let a=r.useContext(J);return a||x(!1),a}function qe(e,a){let{target:t,replace:o,state:n,preventScrollReset:s,relative:l,viewTransition:u}=a===void 0?{}:a,f=ae(),i=D(),c=B(e,{relative:l});return r.useCallback(h=>{if(xe(h,t)){h.preventDefault();let d=o!==void 0?o:q(i)===q(c);f(e,{replace:d,state:n,preventScrollReset:s,relative:l,viewTransition:u})}},[i,f,c,o,n,t,e,s,l,u])}function at(e){let a=r.useRef(G(e)),t=r.useRef(!1),o=D(),n=r.useMemo(()=>Pe(o.search,t.current?null:a.current),[o.search]),s=ae(),l=r.useCallback((u,f)=>{const i=G(typeof u=="function"?u(n):u);t.current=!0,s("?"+i,f)},[s,n]);return[n,l]}function Ge(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Je=0,ue=()=>"__"+String(++Je)+"__";function ce(){let{router:e}
10=H(A.UseSubmit),{basename:a}=r.useContext(k),t=we();return r.useCallback(function(o,n){n===void 0&&(n={}),Ge();let{action:s,method:l,encType:u,formData:f,body:i}=Ae(o,a);if(n.navigate===!1){let c=n.fetcherKey||ue();e.fetch(c,t,n.action||s,{preventScrollReset:n.preventScrollReset,formData:f,body:i,formMethod:n.method||l,formEncType:n.encType||u,flushSync:n.flushSync})}else e.navigate(n.action||s,{preventScrollReset:n.preventScrollReset,formData:f,body:i,formMethod:n.method||l,formEncType:n.encType||u,replace:n.replace,state:n.state,fromRouteId:t,flushSync:n.flushSync,viewTransition:n.viewTransition})},[e,a,t])}function Xe(e,a){let{relative:t}=a===void 0?{}:a,{basename:o}=r.useContext(k),n=r.useContext(oe);n||x(!1);let[s]=n.matches.slice(-1),l=T({},B(e||".",{relative:t})),u=D();if(e==null){l.search=u.search;let f=new URLSearchParams(l.search),i=f.getAll("index");if(i.some(h=>h==="")){f.delete("index"),i.filter(d=>d).forEach(d=>f.append("index",d));let h=f.toString();l.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(l.pathname=l.pathname==="/"?o:be([o,l.pathname])),q(l)}function ot(e){var a;let{key:t}=e===void 0?{}:e,{router:o}=H(A.UseFetcher),n=le(W.UseFetcher),s=r.useContext(se),l=r.useContext(oe),u=(a=l.matches[l.matches.length-1])==null?void 0:a.route.id;s||x(!1),l||x(!1),u==null&&x(!1);let f=ee?ee():"",[i,c]=r.useState(t||f);t&&t!==i?c(t):i||c(ue()),r.useEffect(()=>(o.getFetcher(i),()=>{o.deleteFetcher(i)}),[o,i]);let h=r.useCallback((m,p)=>{u||x(!1),o.fetch(i,u,m,p)},[i,u,o]),d=ce(),g=r.useCallback((m,p)=>{d(m,T({},p,{navigate:!1,fetcherKey:i}))},[i,d]),S=r.useMemo(()=>r.forwardRef((p,v)=>r.createElement(ze,T({},p,{navigate:!1,fetcherKey:i,ref:v}))),[i]),b=n.fetchers.get(i)||ge,y=s.get(i);return r.useMemo(()=>T({Form:S,submit:g,load:h},b,{data:y}),[S,g,h,b,y])}const te="react-router-scroll-positions";let K={};function it(e){let{getKey:a,storageKey:t}=e===void 0?{}:e,{router:o}=H(A.UseScrollRestoration),{restoreScrollPosition:n,preventScrollReset:s}=le(W.UseScrollRestoration),{basename:l}=r.useContext(k),u=D(),f=ye(),i=Re();r.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),$e(r.useCallback(()=>{if(i.state==="idle"){let c=(a?a(u,f):null)||u.key;K[c]=window.scrollY}try{sessionStorage.setItem(t||te,JSON.stringify(K))}catch{}window.history.scrollRestoration="auto"},[t,a,i.state,u,f])),typeof document<"u"&&(r.useLayoutEffect(()=>{try{let c=sessionStorage.getItem(t||te);c&&(K=JSON.parse(c))}catch{}},[t]),r.useLayoutEffect(()=>{let c=a&&l!=="/"?(d,g)=>a(T({},d,{pathname:I(d.pathname,l)||d.pathname}),g):a,h=o==null?void 0:o.enableScrollRestoration(K,()=>window.scrollY,c);return()=>h&&h()},[o,l,a]),r.useLayoutEffect(()=>{if(n!==!1){if(typeof n=="number"){window.scrollTo(0,n);return}if(u.hash){let c=document.getElementById(decodeURIComponent(u.hash.slice(1)));if(c){c.scrollIntoView();return}}s!==!0&&window.scrollTo(0,0)}},[u,n,s]))}function st(e,a){let{capture:t}={};r.useEffect(()=>{let o=t!=null?{capture:t}:void 0;return window.addEventListener("beforeunload",e,o),()=>{window.removeEventListener("beforeunload",e,o)}},[e,t])}function $e(e,a){let{capture:t}={};r.useEffect(()=>{let o=t!=null?{capture:t}:void 0;return window.addEventListener("pagehide",e,o),()=>{window.removeEventListener("pagehide",e,o)}},[e,t])}function Qe(e,a){a===void 0&&(a={});let t=r.useContext(ie);t==null&&x(!1);let{basename:o}=H(A.useViewTransitionState),n=B(e,{relative:a.relative});if(!t.isTransitioning)return!1;let s=I(t.currentLocation.pathname,o)||t.currentLocation.pathname,l=I(t.nextLocation.pathname,o)||t.nextLocation.pathname;return $(n.pathname,l)!=null||$(n.pathname,s)!=null}export{ze as F,Ye as L,rt as N,nt as R,ce as a,st as b,ot as c,it as d,at as u};

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.