account.themessaging.co Open in urlscan Pro
13.236.78.34  Public Scan

URL: https://account.themessaging.co/assets/index-CN0SKmtL.js
Submission: On August 21 via api from US — Scanned from AU

Form analysis 0 forms found in the DOM

Text Content

import{r as i}from"./index-5GATsKCd.js";/**
 * @remix-run/router v1.16.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}var L;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(L||(L={}));function p(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function A(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function We(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function I(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var F;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(F||(F={}));function X(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?I(t):t,a=V(n.pathname||"/",r);if(a==null)return null;let l=T(e);ee(l);let o=null;for(let u=0;o==null&&u<l.length;++u){let s=fe(a);o=ue(l[u],s)}return o}function Z(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function T(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(l,o,u)=>{let s={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};s.relativePath.startsWith("/")&&(p(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let f=E([n,s.relativePath]),d=r.concat(s);l.children&&l.children.length>0&&(p(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),T(l.children,t,d,f)),!(l.path==null&&!l.index)&&t.push({path:f,score:ie(f,l.index),routesMeta:d})};return e.forEach((l,o)=>{var u;if(l.path===""||!((u=l.path)!=null&&u.includes("?")))a(l,o);else for(let s of J(l.path))a(l,o,s)}),t}function J(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),l=r.replace(/\?$/,"");if(n.length===0)return a?[l,""]:[l];let o=J(n.join("/")),u=[];return u.push(...o.map(s=>s===""?l:[l,s].join("/"))),a&&u.push(...o),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function ee(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:se(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const te=/^:[\w-]+$/,re=3,ne=2,ae=1,le=10,oe=-2,W=e=>e==="*";function ie(e,t){let r=e.split("/"),n=r.length;return r.some(W)&&(n+=oe),t&&(n+=ne),r.filter(a=>!W(a)).reduce((a,l)=>a+(te.test(l)?re:l===""?ae:le),n)}function se(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function ue(e,t){let{routesMeta:r}=e,n={},a="/",l=[];for(let o=0;o<r.length;++o){let u=r[o],s=o===r.length-1,f=a==="/"?t:t.slice(a.length)||"/",d=ce({path:u.relativePath,caseSensitive:u.caseSensitive,end:s},f);if(!d)return null;Object.assign(n,d.params);let c=u.route;l.push({params:n,pathname:E([a,d.pathname]),pathnameBase:ve(E([a,d.pathnameBase])),route:c}),d.pathnameBase!=="/"&&(a=E([a,d.pathnameBase]))}return l}function ce(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=de(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let l=a[0],o=l.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:n.reduce((f,d,c)=>{let{paramName:h,isOptional:v}=d;if(h==="*"){let m=u[c]||"";o=l.slice(0,l.length-m.length).replace(/(.)\/+$/,"$1")}const g=u[c];return v&&!g?f[h]=void 0:f[h]=(g||"").replace(/%2F/g,"/"),f},{}),pathname:l,pathnameBase:o,pattern:e}}function de(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),A(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,u,s)=>(n.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function fe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return A(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function V(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function he(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?I(e):e;return{pathname:r?r.startsWith("/")?r:me(r,t):t,search:ge(n),hash:xe(a)}}function me(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function N(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function pe(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function z(e,t){let r=pe(e);return t?r.map((n,a)=>a===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function q(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=I(e):(a=w({},e),p(!a.pathname||!a.pathname.includes("?"),N("?","pathname","search",a)),p(!a.pathname||!a.pathname.includes("#"),N("#","pathname","hash",a)),p(!a.search||!a.search.includes("#"),N("#","search","hash",a)));let l=e===""||a.pathname==="",o=l?"/":a.pathname,u;if(o==null)u=r;else{let c=t.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),c-=1;a.pathname=h.join("/")}u=c>=0?t[c]:"/"}let s=he(a,u),f=o&&o!=="/"&&o.endsWith("/"),d=(l||o===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(f||d)&&(s.pathname+="/"),s}const E=e=>e.join("/").replace(/\/\/+/g,"/"),ve=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ge=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ee extends Error{}const Ae=function(t,r){r===void 0&&(r=302);let n=r;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",t),new Response(null,w({},n,{headers:a}))};function Ce(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const G=["post","put","patch","delete"];new Set(G);const ye=["get",...G];new Set(ye);/**
 * React Router v6.23.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},j.apply(this,arguments)}const M=i.createContext(null),Pe=i.createContext(null),B=i.createContext(null),R=i.createContext(null),_=i.createContext(null),y=i.createContext({outlet:null,matches:[],isDataRoute:!1}),Y=i.createContext(null);function Te(e,t){let{relative:r}=t===void 0?{}:t;O()||p(!1);let{basename:n,navigator:a}=i.useContext(R),{hash:l,pathname:o,search:u}=Oe(e,{relative:r}),s=o;return n!=="/"&&(s=o==="/"?n:E([n,o])),a.createHref({pathname:s,search:u,hash:l})}function O(){return i.useContext(_)!=null}function S(){return O()||p(!1),i.useContext(_).location}function H(e){i.useContext(R).static||i.useLayoutEffect(e)}function Je(){let{isDataRoute:e}=i.useContext(y);return e?Se():be()}function be(){O()||p(!1);let e=i.useContext(M),{basename:t,future:r,navigator:n}=i.useContext(R),{matches:a}=i.useContext(y),{pathname:l}=S(),o=JSON.stringify(z(a,r.v7_relativeSplatPath)),u=i.useRef(!1);return H(()=>{u.current=!0}),i.useCallback(function(f,d){if(d===void 0&&(d={}),!u.current)return;if(typeof f=="number"){n.go(f);return}let c=q(f,JSON.parse(o),l,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:E([t,c.pathname])),(d.replace?n.replace:n.push)(c,d.state,d)},[t,n,o,l,e])}const K=i.createContext(null);function Ve(){return i.useContext(K)}function Re(e){let t=i.useContext(y).outlet;return t&&i.createElement(K.Provider,{value:e},t)}function Oe(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=i.useContext(R),{matches:a}=i.useContext(y),{pathname:l}=S(),o=JSON.stringify(z(a,n.v7_relativeSplatPath));return i.useMemo(()=>q(e,JSON.parse(o),l,r==="path"),[e,o,l,r])}function ze(e,t,r,n){O()||p(!1);let{navigator:a}=i.useContext(R),{matches:l}=i.useContext(y),o=l[l.length-1],u=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let f=S(),d;d=f;let c=d.pathname||"/",h=c;if(s!=="/"){let m=s.replace(/^\//,"").split("/");h="/"+c.replace(/^\//,"").split("/").slice(m.length).join("/")}let v=X(e,{pathname:h});return Ue(v&&v.map(m=>Object.assign({},m,{params:Object.assign({},u,m.params),pathname:E([s,a.encodeLocation?a.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?s:E([s,a.encodeLocation?a.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),l,r,n)}function we(){let e=Me(),t=Ce(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:a},r):null,null)}const je=i.createElement(we,null);class Be extends i.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?i.createElement(y.Provider,{value:this.props.routeContext},i.createElement(Y.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ie(e){let{routeContext:t,match:r,children:n}=e,a=i.useContext(M);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(y.Provider,{value:t},n)}function Ue(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var l;if((l=r)!=null&&l.errors)e=r.matches;else return null}let o=e,u=(a=r)==null?void 0:a.errors;if(u!=null){let d=o.findIndex(c=>c.route.id&&(u==null?void 0:u[c.route.id])!==void 0);d>=0||p(!1),o=o.slice(0,Math.min(o.length,d+1))}let s=!1,f=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<o.length;d++){let c=o[d];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(f=d),c.route.id){let{loaderData:h,errors:v}=r,g=c.route.loader&&h[c.route.id]===void 0&&(!v||v[c.route.id]===void 0);if(c.route.lazy||g){s=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}return o.reduceRight((d,c,h)=>{let v,g=!1,m=null,P=null;r&&(v=u&&c.route.id?u[c.route.id]:void 0,m=c.route.errorElement||je,s&&(f<0&&h===0?(g=!0,P=null):f===h&&(g=!0,P=c.route.hydrateFallbackElement||null)));let k=t.concat(o.slice(0,h+1)),D=()=>{let b;return v?b=m:g?b=P:c.route.Component?b=i.createElement(c.route.Component,null):c.route.element?b=c.route.element:b=d,i.createElement(Ie,{match:c,routeContext:{outlet:d,matches:k,isDataRoute:r!=null},children:b})};return r&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?i.createElement(Be,{location:r.location,revalidation:r.revalidation,component:m,error:v,children:D(),routeContext:{outlet:null,matches:k,isDataRoute:!0}}):D()},null)}var Q=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Q||{}),C=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(C||{});function Ne(e){let t=i.useContext(M);return t||p(!1),t}function U(e){let t=i.useContext(Pe);return t||p(!1),t}function Le(e){let t=i.useContext(y);return t||p(!1),t}function $(e){let t=Le(),r=t.matches[t.matches.length-1];return r.route.id||p(!1),r.route.id}function qe(){return U(C.UseNavigation).navigation}function Ge(){let{matches:e,loaderData:t}=U(C.UseMatches);return i.useMemo(()=>e.map(r=>Z(r,t)),[e,t])}function Ye(){let e=U(C.UseLoaderData),t=$(C.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function Me(){var e;let t=i.useContext(Y),r=U(C.UseRouteError),n=$(C.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function _e(){let e=i.useContext(B);return e==null?void 0:e._data}function He(){let e=i.useContext(B);return e==null?void 0:e._error}function Se(){let{router:e}=Ne(Q.UseNavigateStable),t=$(C.UseNavigateStable),r=i.useRef(!1);return H(()=>{r.current=!0}),i.useCallback(function(a,l){l===void 0&&(l={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,j({fromRouteId:t},l)))},[e,t])}function Ke(e){return Re(e.context)}function Qe(e){let{basename:t="/",children:r=null,location:n,navigationType:a=L.Pop,navigator:l,static:o=!1,future:u}=e;O()&&p(!1);let s=t.replace(/^\/*/,"/"),f=i.useMemo(()=>({basename:s,navigator:l,static:o,future:j({v7_relativeSplatPath:!1},u)}),[s,u,l,o]);typeof n=="string"&&(n=I(n));let{pathname:d="/",search:c="",hash:h="",state:v=null,key:g="default"}=n,m=i.useMemo(()=>{let P=V(d,s);return P==null?null:{location:{pathname:P,search:c,hash:h,state:v,key:g},navigationType:a}},[s,d,c,h,v,g,a]);return m==null?null:i.createElement(R.Provider,{value:f},i.createElement(_.Provider,{children:r,value:m}))}function Xe(e){let{children:t,errorElement:r,resolve:n}=e;return i.createElement(ke,{resolve:n,errorElement:r},i.createElement(De,null,t))}var x=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(x||{});const $e=new Promise(()=>{});class ke extends i.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error("<Await> caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:n}=this.props,a=null,l=x.pending;if(!(n instanceof Promise))l=x.success,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>n});else if(this.state.error){l=x.error;let o=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>o})}else n._tracked?(a=n,l="_error"in a?x.error:"_data"in a?x.success:x.pending):(l=x.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),a=n.then(o=>Object.defineProperty(n,"_data",{get:()=>o}),o=>Object.defineProperty(n,"_error",{get:()=>o})));if(l===x.error&&a._error instanceof Ee)throw $e;if(l===x.error&&!r)throw a._error;if(l===x.error)return i.createElement(B.Provider,{value:a,children:r});if(l===x.success)return i.createElement(B.Provider,{value:a,children:t});throw a}}function De(e){let{children:t}=e,r=_e(),n=typeof t=="function"?t(r):t;return i.createElement(i.Fragment,null,n)}function Ze(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:i.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}export{Xe as A,M as D,R as N,Ke as O,Qe as R,Ze as a,S as b,Ge as c,Pe as d,ze as e,Te as f,Je as g,Oe as h,Ce as i,We as j,qe as k,Ye as l,X as m,He as n,Ve as o,I as p,Ae as r,Me as u};