PageSourceSearch

https://www.treeequityscore.org/_next/static/chunks/pages/_app-b9cb6664def6c8fa.js

js treeequityscore.org collected 2026-10-02 04:27:12 UTC 856,123 bytes, 87 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="95f0f1df-c6aa-4ebf-a212-a5619d3f5b8b",e._sentryDebugIdIdentifier="sentry-dbid-95f0f1df-c6aa-4ebf-a212-a5619d3f5b8b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{8:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return n}}),r(52272).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},742:(e,t,r)=>{"use strict";r.d(t,{yo:()=>em,XD:()=>er,n_:()=>eo,fz:()=>ei,IT:()=>ea});var n=r(89251),a=r(98764),i=r(50195),o=r(55729);let s=o.createContext(void 0),l=o.createContext(!1);function u(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=s),window.ReactQueryClientContext):s)}let c=({context:e}={})=>
1{let t=o.useContext(u(e,o.useContext(l)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},d=({client:e,children:t,context:r,contextSharing:n=!1})=>{o.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let a=u(r,n);return o.createElement(l.Provider,{value:!r&&n},o.createElement(a.Provider,{value:e},t))},p=o.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),f=()=>o.useContext(p),h="undefined"==typeof window||"Deno"in window;function g(){}function y(e){return"number"==typeof e&&e>=0&&e!==1/0}function m(e,t){if(e&&!t||t&&!e)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!_(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!_(r)&&!!r.hasOwnProperty("isPrototypeOf")}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return Array.isArray(e)}function C(e){new Promise(e=>{setTimeout(e,0)}).then(e)}function S(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let n=v(t)&&v(r);if(n||b(t)&&b(r)){let a=n?t.length:Object.keys(t).length,i=n?r:Object.keys(r),o=i.length,s=n?[]:{},l=0;for(let a=0;a<o;a++){let o=n?a:i[a];s[o]=e(t[o],r[o]),s[o]===t[o]&&l++}return a===o&&l===a?t:s}return r}(e,t):t}let k=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},a=n=>{t?e.push(n):C(()=>{r(n)})};return{batch:a=>{let i;t++;try{i=a()}finally{--t||(()=>{let t=e;e=[],t.length&&C(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return i},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e}}}();class E{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.push(e),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(t=>t!==e),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}class x extends E{constructor(){super(),this.setup=e=>{if(!h&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused=e,e&&this.onFocus()}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let R=new x;class O extends E{constructor(){super(),this.setup=e=>{if(!h&&window.addEventListener){let t=()=>e();return window.addEventListener("online",t,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online=e,e&&this.onOnline()}onOnline(){this.listeners.forEach(e=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let T=new O;class I{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}class A extends E{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.length&&(this.currentQuery.addObserver(this),P(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return M(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return M(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),m(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();let a=this.hasListeners();a&&j(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),a&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();let i=this.computeRefetchInterval();a&&(this.currentQuery!==n||this.options.enabled!==r.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(e){let t=this.client.getQueryCache().build(this.client,e);return this.createResult(t,e)}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(g)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),h||this.currentResult.isStale||!y(this.options.staleTime))return;let e=Math.max(this.currentResult.dataUpdatedAt+(this.options.staleTime||0)-Date.now(),0);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!h&&!1!==this.options.enabled&&y(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>
1{(this.options.refetchIntervalInBackground||R.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let r,n=this.currentQuery,a=this.options,i=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,l=e!==n,u=l?e.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:d}=e,{dataUpdatedAt:p,error:f,errorUpdatedAt:h,fetchStatus:g,status:y}=d,m=!1,v=!1;if(t._optimisticResults){let r=this.hasListeners(),i=!r&&P(e,t),o=r&&j(e,n,t,a);if(i||o){var b;g=(null!=(b=e.options.networkMode)?b:"online")!=="online"||T.isOnline()?"fetching":"paused",p||(y="loading")}"isRestoring"===t._optimisticResults&&(g="idle")}if(t.keepPreviousData&&!d.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==y)r=c.data,p=c.dataUpdatedAt,y=c.status,m=!0;else if(t.select&&void 0!==d.data)if(i&&d.data===(null==o?void 0:o.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(d.data),r=S(null==i?void 0:i.data,r,t),this.selectResult=r,this.selectError=null}catch(e){this.selectError=e}else r=d.data;if(void 0!==t.placeholderData&&void 0===r&&"loading"===y){let e;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==s?void 0:s.placeholderData))e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(y="success",r=S(null==i?void 0:i.data,e,t),v=!0)}this.selectError&&(f=this.selectError,r=this.selectResult,h=Date.now(),y="error");let _="fetching"===g,w="loading"===y,C="error"===y;return{status:y,fetchStatus:g,isLoading:w,isSuccess:"success"===y,isError:C,isInitialLoading:w&&_,data:r,dataUpdatedAt:p,error:f,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:_,isRefetching:_&&!w,isLoadingError:C&&0===d.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:v,isPreviousData:m,isRefetchError:C&&0!==d.dataUpdatedAt,isStale:L(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){let t=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,m(r,t))return;this.currentResult=r;let n={cache:!0},a=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options;if("all"===e||!e&&!this.trackedProps.size)return!0;let r=new Set(null!=e?e:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>this.currentResult[e]!==t[e]&&r.has(e))};(null==e?void 0:e.listeners)!==!1&&a()&&(n.listeners=!0),this.notify({...n,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||e.error instanceof I||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){k.batch(()=>{var t,r,n,a,i,o,s,l;e.onSuccess?(null==(t=(r=this.options).onSuccess)||t.call(r,this.currentResult.data),null==(n=(a=this.options).onSettled)||n.call(a,this.currentResult.data,null)):e.onError&&(null==(i=(o=this.options).onError)||i.call(o,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(e=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function P(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&("error"!==e.state.status||!1!==t.retryOn
1Mount)||e.state.dataUpdatedAt>0&&M(e,t,t.refetchOnMount)}function M(e,t,r){if(!1!==t.enabled){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&L(e,t)}return!1}function j(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&L(e,r)}function L(e,t){return e.isStaleByTime(t.staleTime)}let D=r(27133).useSyncExternalStore,N=o.createContext(!1);function F(e,t){return"function"==typeof e?e(...t):!!e}function z(e,t,r){return function(e,t){let r=c({context:e.context}),n=o.useContext(N),a=f(),i=r.defaultQueryOptions(e);i._optimisticResults=n?"isRestoring":"optimistic",i.onError&&(i.onError=k.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=k.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=k.batchCalls(i.onSettled)),i.suspense&&"number"!=typeof i.staleTime&&(i.staleTime=1e3),(i.suspense||i.useErrorBoundary)&&!a.isReset()&&(i.retryOnMount=!1),o.useEffect(()=>{a.clearReset()},[a]);let[s]=o.useState(()=>new t(r,i)),l=s.getOptimisticResult(i);if(D(o.useCallback(e=>n?()=>void 0:s.subscribe(k.batchCalls(e)),[s,n]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),o.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),(null==i?void 0:i.suspense)&&l.isLoading&&l.isFetching&&!n)throw s.fetchOptimistic(i).then(({data:e})=>{null==i.onSuccess||i.onSuccess(e),null==i.onSettled||i.onSettled(e,null)}
1).catch(e=>{a.clearReset(),null==i.onError||i.onError(e),null==i.onSettled||i.onSettled(void 0,e)});if((({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&F(r,[e.error,n]))({result:l,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:s.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:s.trackResult(l)}(w(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e,A)}N.Provider;class $ extends E{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.client.defaultMutationOptions(e),m(t,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this})}onUnsubscribe(){if(!this.listeners.length){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){k.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,r,n,a,i,o,s,l;e.onSuccess?(null==(t=(r=this.mutateOptions).onSuccess)||t.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(a=this.mutateOptions).onSettled)||n.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(i=(o=this.mutateOptions).onError)||i.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(e=>{e(this.currentResult)})})}}function U(){}var B=r(76656),q=r(48535);r(94087);var H=r(29143);let V=({children:e})=>{let[t]=o.useState(globalThis.queryClient);return o.createElement(d,{client:t},e)};var W=Object.defineProperty,Z=Object.defineProperties,K=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,Y=(e,t,r)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t)=>{for(var r in t||(t={}))J.call(t,r)&&Y(e,r,t[r]);if(G)for(var r of G(t))Q.call(t,r)&&Y(e,r,t[r]);return e},ee=(e,t)=>
1Z(e,K(t)),et=(e,t)=>{var r={};for(var n in e)J.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&G)for(var n of G(e))0>t.indexOf(n)&&Q.call(e,n)&&(r[n]=e[n]);return r};let er={useQueryErrorResetBoundary:f,QueryClientProvider:d,Hydrate:({children:e,options:t,state:r})=>(!function(e,t={}){let r=c({context:t.context}),n=o.useRef(t);n.current=t,o.useMemo(()=>{e&&function(e,t,r){if("object"!=typeof t||null===t)return;let n=e.getMutationCache(),a=e.getQueryCache(),i=t.mutations||[],o=t.queries||[];i.forEach(t=>{var a;n.build(e,{...null==r||null==(a=r.defaultOptions)?void 0:a.mutations,mutationKey:t.mutationKey},t.state)}),o.forEach(t=>{var n;let i=a.get(t.queryHash);if(i){i.state.dataUpdatedAt<t.state.dataUpdatedAt&&i.setState(t.state);return}a.build(e,{...null==r||null==(n=r.defaultOptions)?void 0:n.queries,queryKey:t.queryKey,queryHash:t.queryHash},t.state)})}(r,e,n.current)},[r,e])}(r,t),e)};class en extends Error{}function ea(e,t,r={}){var n;if(void 0===e)throw Error("useQuery is missing the first argument - it must be a query function");let i=!!globalThis.__BLITZ_SUSPENSE_ENABLED,o=(!a.c||!i)&&(null!=(n=null==r?void 0:r.enabled)?n:(null==r?void 0:r.enabled)!==null),s=!1,l=(0,q.useRouter)();s=!l||(null==l?void 0:l.isReady)||a.c&&i;let u=(0,B.sanitizeQuery)(e),c=(0,B.getQueryKey)(e,t),d=z(ee(X({queryKey:s?c:["_routerNotReady_"],queryFn:s?({signal:e})=>u(t,{fromQueryHook:!0},e):B.emptyQueryFn},r),{enabled:o})),{data:p}=d,f=et(d,["data"]);if("idle"===f.fetchStatus&&a.c&&!1!==i&&!p&&(!r||!("suspense"in r)||r.suspense)&&(!r||!("enabled"in r)||r.enabled)){let e=new en;throw e.name="Rendering Suspense fallback...",e.digest="DYNAMIC_SERVER_USAGE",e.message="DYNAMIC_SERVER_USAGE",delete e.stack,e}return[p,X(X({},f),(0,B.getQueryCacheFunctions)(e,t))]}function ei(e,t,r={}){var n;if(void 0===e)throw Error("usePaginatedQuery is missing the first argument - it must be a query function");let i=!!globalThis.__BLITZ_SUSPENSE_ENABLED,o=(!a.c||!i)&&(null!=(n=null==r?void 0:r.enabled)?n:(null==r?void 0:r.enabled)!==null),s=!1,l=(0,q.useRouter)();s=!l||(null==l?void 0:l.isReady)||a.c&&i;let u=(0,B.sanitizeQuery)(e),c=(0,B.getQueryKey)(e,t),d=z(ee(X({queryKey:s?c:["_routerNotReady_"],queryFn:s?({signal:e})=>u(t,{fromQueryHook:!0},e):B.emptyQueryFn},r),{keepPreviousData:!0,enabled:o})),{data:p}=d,f=et(d,["data"]);if("idle"===f.fetchStatus&&a.c&&!1!==i&&!p&&(!r||!("suspense"in r)||r.suspense)&&(!r||!("enabled"in r)||r.enabled)){let e=new en;throw e.name="Rendering Suspense fallback...",e.digest="DYNAMIC_SERVER_USAGE",e.message="DYNAMIC_SERVER_USAGE",delete e.stack,e}return[p,X(X({},f),(0,B.getQueryCacheFunctions)(e,t))]}function eo(e,t){let r=(0,B.sanitizeMutation)(e),n=function(e,t,r){var n,a,i;let s=(n=e,a=t,i=void 0,w(n)?"function"==typeof a?{...i,mutationKey:n,mutationFn:a}:{...a,mutationKey:n}:"function"==typeof n?{...a,mutationFn:n}:{...n}),l=c({context:s.context}),[u]=o.useState(()=>new $(l,s));o.useEffect(()=>{u.setOptions(s)},[u,s]);let d=D(o.useCallback(e=>u.subscribe(k.batchCalls(e)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),p=o.useCallback((e,t)=>{u.mutate(e,t).catch(U)},[u]);if(d.error&&F(u.options.useErrorBoundary,[d.error]))throw d.error;return{...d,mutate:p,mutateAsync:d.mutate}}(e=>r(e,{fromQueryHook:!0}),X({throwOnError:!0},t)),{mutate:a,mutateAsync:i}=n;return[i,et(n,["mutate","mutateAsync"])]}var es=Object.defineProperty,el=Object.defineProperties,eu=Object.getOwnPropertyDescriptors,ec=Object.getOwnPropertySymbols,ed=Object.prototype.hasOwnProperty,ep=Object.prototype.propertyIsEnumerable,ef=(e,t,r)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eh=(e,t)=>{for(var r in t||(t={}))ed.call(t,r)&&ef(e,r,t[r]);if(ec)for(var r of ec(t))ep.call(t,r)&&ef(e,r,t[r]);return e},eg=(e,t)=>el(e,eu(t)),ey=(e,t,r)=>new Promise((n,a)=>{var i=e=>{try{s(r.next(e))}catch(e){a(e)}},o=e=>{try{s(r.throw(e))}catch(e){a(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,o);s((r=r.apply(e,t)).next())});let em=(0,i.c)(e=>{let t=(()=>{var t,r;let{reactQueryOptions:a}=e||{},i=null==(r=null==(t=null==a?void 0:a.queries)?void 0:t.suspense)||r;return H.env.CLI_COMMAND_CONSOLE||H.env.CLI_COMMAND_DB||(globalThis.__BLITZ_SUSPENSE_ENABLED=i),new n.E({defaultOptions:eg(eh({},a),{queries:eg(eh(eg(eh({},"undefined"==typeof window&&{cacheTime:0}),{retry:(e,t)=>"Network request failed"===t.message&&!!(e<=3)}),null==a?void 0:a.queries),{suspense:i})})})})();return globalThis.queryClient=t,{events:{onSessionCreated:()=>ey(void 0,null,function*(){!function(){setTimeout(()=>ey(this,null,function*(){(yield r.e(8716).then(r.t.bind(r,18716,19))).default("blitz:rpc")("Invalidating react-query cache..."),yield t.cancelQueries(),yield t.resetQueries(),t.getMutationCache().clear()}),100)}()})},middleware:{},exports:()=>({queryClient:t,BlitzProvider:V})}})},783:(e,t,r)=>{"use strict";r.d(t,{CL:()=>u,LJ:()=>l,wZ:()=>s});var n=r(6029),a=r(95787),i=r(55729),o=r(73359);let s=(0,i.createContext)(null),l=(0,i.createContext)(null);function u(e){let{children:t}=e,r=String((0,a.g)("city")),i=o.Mq.find(e=>e.id===r);return i?(0,n.jsx)(l.Provider,{value:i,children:t}):null}},821:(e,t,r)=>{"use strict";r.d(t,{A:()=>F,u:()=>A});var n=r(44657),a=r(55729),i=r(98764),o=r(50195),s=r(37839);let l=()=>{if(!globalThis.__BLITZ_SESSION_COOKIE_PREFIX)throw Error("Internal Blitz Error: globalThis.__BLITZ_SESSION_COOKIE_PREFIX is not set");return globalThis.__BLITZ_SESSION_COOKIE_PREFIX},u=()=>`${l()}_sAntiCsrfToken`,c=()=>`${l()}_sPublicDataToken`,d=()=>`${l()}_sAntiCsrfToken`,p=()=>`${l()}_sPublicDataToken`;function f(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}let h=/https?|ftp|gopher|file/;function g(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",o=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(s+=":"+e.port)),o&&"object"==typeof o&&(o=String(function(e){let t=new URLSearchParams;return Object.entries(e).forEach(([e,r])=>{Array.isArray(r)?r.forEach(r=>t.append(e,f(r))):t.set(e,f(r))}),t}(o)));let l=e.search||o&&`?${o}`||"";return n&&":"!==n.substr(-1)&&(n+=":"),e.slashes||(!n||h.test(n))&&!1!==s?(s="//"+(s||""),a&&"/"!==a[0]&&(a="/"+a)):s||(s=""),i&&"#"!==i[0]&&(i="#"+i),l&&"?"!==l[0]&&(l="?"+l),a=a.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),`${n}${s}${a}${l}${i}`}var y=Object.defineProperty,m=Object.defineProperties,v=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,C=(e,t,r)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))_.call(t,r)&&C(e,r,t[r]);if(b)for(var r of b(t))w.call(t,r)&&C(e,r,t[r]);return e},k=(e,t)=>m(e,v(t));let E=n.default,x=s("blitz:auth-client"),R={userId:null,role:null};class O{constructor(){this.eventKey="_blitz-publicDataUpdated",this.observable=E(),"undefined"!=typeof window&&(this.updateState(void 0,{suppressEvent:!0}),window.addEventListener("storage",e=>{e.key===this.eventKey&&this.updateState(void 0,{suppressEvent:!0})}
1))}updateState(e,t){if(!(null==t?void 0:t.suppressEvent))try{localStorage.setItem(this.eventKey,Date.now().toString())}catch(e){console.error("LocalStorage is not available",e)}this.observable.next(null!=e?e:this.getData())}clear(){(0,i.k)(c());try{localStorage.removeItem(p())}catch(e){console.error("LocalStorage is not available",e)}this.updateState(R)}getData(){let e=this.getToken();if(!e)return R;let{publicData:t}=(e=>{(0,i.b)(e,"[parsePublicDataToken] Failed: token is empty");let t=decodeURIComponent(escape(window.atob(e)));try{return{publicData:JSON.parse(t)}}catch(e){throw Error(`[parsePublicDataToken] Failed to parse publicDataStr: ${t}`)}})(e);return t}getToken(){try{let e=(0,i.r)(c());if(e)return localStorage.setItem(p(),e),e;return localStorage.getItem(p())}catch(e){console.error("LocalStorage is not available",e);return}}}let T=()=>(window.__publicDataStore||(window.__publicDataStore=new O),window.__publicDataStore),I=()=>{let e=(0,i.r)(u());return e||localStorage.getItem(d())},A=(e={})=>{var t;let r,n=null!=(t=null==e?void 0:e.suspense)?t:!!globalThis.__BLITZ_SUSPENSE_ENABLED;if(e.initialPublicData)r=k(S({},e.initialPublicData),{isLoading:!1});else if(n)if(i.c){let e=Error();throw e.name="Rendering Suspense fallback...",e.digest="DYNAMIC_SERVER_USAGE",e.message="DYNAMIC_SERVER_USAGE",delete e.stack,e}else r=k(S({},T().getData()),{isLoading:!1});else r=k(S({},R),{isLoading:!0});let[o,s]=a.useState(r);return a.useEffect(()=>(s(k(S({},T().getData()),{isLoading:!1})),T().observable.subscribe(e=>s(k(S({},e),{isLoading:!1}))).unsubscribe),[]),o},P=(e,t)=>{let[r,n]=a.useState(!1);if(a.useEffect(()=>{n(!0)},[]),i.a&&e&&!T().getData().userId&&r){let e=new o.A;throw e.stack=null,e}if(i.a&&e&&t&&T().getData().userId&&r){let e=new o.A;if(e.stack=null,!M(t,T().getData().role))throw e}},M=(e,t)=>{if(e&&t){if(Array.isArray(e)){if(e.includes(t))return!0}else if(t===e)return!0}return!1},j=()=>{P(!0)},L=(e={})=>(j(),A(e)),D=e=>{let[t,r]=a.useState(!1);if(a.useEffect(()=>{r(!0)},[]),i.a&&T().getData().userId&&t){let t=new o.R(e);throw t.stack=null,t}};function N(e){let t=t=>{A({suspense:!1});let[r,n]=a.useState(!1);a.useEffect(()=>{n(!0)},[]);let{authenticate:i,redirectAuthenticatedTo:s}=function(e,t){var r,n,i;if(!e)return{};let o=null==e?void 0:e.authenticate,s=null==e?void 0:e.redirectAuthenticatedTo;if(void 0===o&&void 0===s){let l="getLayout"in e&&(null==(r=e.getLayout)?void 0:r.call(e,a.createElement(e,S({},t))));if(l){let e=l;for(;;){let t=l.type;if(void 0!==t.authenticate||void 0!==t.redirectAuthenticatedTo){o=t.authenticate,s=t.redirectAuthenticatedTo;break}if(null==(n=e.props)?void 0:n.children)e=null==(i=e.props)?void 0:i.children;else break}}}return{authenticate:o,redirectAuthenticatedTo:s}}(e,t);if(P(!!i&&("object"==typeof i&&void 0===i.redirectTo||!0===i),i&&"object"==typeof i?i.role:void 0),"undefined"!=typeof window){let e=T().getData();if(e.userId){if(x("[BlitzAuthInnerRoot] logged in"),"function"==typeof s&&(s=s({session:e})),s){let e="string"==typeof s?s:g(s);if(r){x("[BlitzAuthInnerRoot] redirecting to",e);let t=new o.R(e);throw t.stack=null,t}}if(i&&"object"==typeof i&&i.redirectTo&&i.role&&!M(i.role,e.role)){let{redirectTo:e}=i;"string"!=typeof e&&(e=g(e));let t=new URL(e,window.location.href);t.searchParams.append("next",window.location.pathname),x("[BlitzAuthInnerRoot] redirecting to",t.toString());let r=new o.R(t.toString());throw r.stack=null,r}}else if(x("[BlitzAuthInnerRoot] logged out"),i&&"object"==typeof i&&i.redirectTo){let{redirectTo:e}=i;"string"!=typeof e&&(e=g(e));let t=new URL(e,window.location.href);if(t.searchParams.append("next",window.location.pathname),r){x("[BlitzAuthInnerRoot] redirecting to",t.toString());let e=new o.R(t.toString());throw e.stack=null,e}}}return a.createElement(e,S({},t))};for(let[r,n]of Object.entries(e))t[r]=n;return t}let F=(0,o.c)(e=>(globalThis.__BLITZ_SESSION_COOKIE_PREFIX=e.cookiePrefix||"blitz",{withProvider:N,events:{onRpcError:e=>((e,t,r)=>new Promise((n,a)=>{var i=e=>{try{s(r.next(e))}catch(e){a(e)}},o=e=>{try{s(r.throw(e))}catch(e){a(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,o);s((r=r.apply(e,t)).next())}))(void 0,null,function*(){"AuthenticationError"===e.name&&T().getData().userId&&T().clear()})},middleware:{beforeHttpRequest(e){let t={"Content-Type":"application/json"},r=I();return r?(x("Adding antiCSRFToken cookie header",r),t["anti-csrf"]=r):x("No antiCSRFToken cookie found"),e.headers=S(S({},e.headers),t),e},beforeHttpResponse(e){if(e.headers){let t=(0,i.r)(u());if(t&&localStorage.setItem(d(),t),e.headers.get("public-data-token")&&(T().updateState(),x("Public data updated")),e.headers.get("session-created")){let e=new Event("blitz:session-created");document.dispatchEvent(e)}if(e.headers.get("csrf-error")){let e=new o.C;throw e.stack=null,e}}return e}},exports:()=>({useSession:A,useAuthorize:j,useAuthorizeIf:P,useRedirectAuthenticated:D,useAuthenticatedSession:L,getAntiCSRFToken:I})}))},4985:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(55729),a=r(40924),i="function"==typeof IntersectionObserver,o=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!i,[c,d]=(0,n.useState)(!1),p=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{p.current=e},[]);return(0,n.useEffect)(()=>{if(i){if(u||c)return;let e=p.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:a,elements:i}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=o.get(n)))return t;let a=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=a.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:a},s.push(r),o.set(r,t),t}(r);return i.set(e,t),a.observe(e),function(){if(i.delete(e),a.unobserve(e),0===i.size){a.disconnect(),o.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,a.requestIdleCallback)(()=>d(!0));return()=>(0,a.cancelIdleCallback)(e)}},[u,r,t,c,p.current]),[f,c,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6706:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n,a=r(55729),i=(null==(n=globalThis)?void 0:n.document)?a.useLayoutEffect:()=>{}},6772:(e,t,r)=>{e.exports=r(4957)},10010:(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(72012),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(30758)._(r(55729)).default.createContext(null)},11212:(e,t,r)=>{"use strict";e.exports=r(19031).style},11351:(e,t,r)=>{"use strict";r.d(t,{Kw:()=>r_,D0:()=>rp,lV:()=>rf,l1:()=>rs,Mt:()=>rd,j7:()=>t7});var n=function(e){var t,r,n;return!!(t=e)&&"object"==typeof t&&(r=e,"[object RegExp]"!==(n=Object.prototype.toString.call(r))&&"[object Date]"!==n&&r.$$typeof!==a)},a="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function o(e,t,r){return e.concat(t).map(function(e){return i(e,r)})}function s(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||n;var a,l,u=Array.isArray(t);return u!==Array.isArray(e)?i(t,r):u?r.arrayMerge(e,t,r):(l={},(a=r).isMergeableObject(e)&&Object.keys(e).forEach(function(t){l[t]=i(e[t],a)}),Object.keys(t).forEach(function(r){a.isMergeableObject(t[r])&&e[r]?l[r]=s(e[r],t[r],a):l[r]=i(t[r],a)}),l)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return s(e,r,t)},{})};let l=s;var u="object"==typeof global&&global&&global.Object===Object&&global,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),p=d.Symbol,f=Object.prototype,h=f.hasOwnProperty,g=f.toString,y=p?p.toStringTag:void 0;let m=function(e){var t=h.call(e,y),r=e[y];try{e[y]=void 0;var n=!0}catch(e){}var a=g.call(e);return n&&(t?e[y]=r:delete e[y]),a};var v=Object.prototype.toString,b=p?p.toStringTag:void 0;let _=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":b&&b in Object(e)?m(e):v.call(e)},w=function(e,t){return function(r){return e(t(r))}};var C=w(Object.getPrototypeOf,Object);let S=function(e){return null!=e&&"object"==typeof e};var k=Object.prototype,E=Function.prototype.toString,x=k.hasOwnProperty,R=E.call(Object);let O=function(e){if(!S(e)||"[object Object]"!=_(e))return!1;var t=C(e);if(null===t)return!0;var r=x.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&E.call(r)==R},T=function(e,t){return e===t||e!=e&&t!=t},I=function(e,t){for(var r=e.length;r--;)if(T(e[r][0],t))return r;return -1};var A=Array.prototype.splice;function P(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}P.prototype.clear=function(){this.__data__=[],this.size=0},P.prototype.delete=function(e){var t=this.__data__,r=I(t,e);return!(r<0)&&(r==t.length-1?t.pop():A.call(t,r,1),--this.size,!0)},P.prototype.get=function(e){var t=this.__data__,r=I(t,e);return r<0?void 0:t[r][1]},P.prototype.has=function(e){return I(this.__data__,e)>-1},P.prototype.set=function(e,t){var r=this.__data__,n=I(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};let M=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},j=function(e){if(!M(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var L=d["__core-js_shared__"],D=function(){var e=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||"");
1return e?"Symbol(src)_1."+e:""}(),N=Function.prototype.toString;let F=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var z=/^\[object .+?Constructor\]$/,$=Object.prototype,U=Function.prototype.toString,B=$.hasOwnProperty,q=RegExp("^"+U.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let H=function(e){return!!M(e)&&(!D||!(D in e))&&(j(e)?q:z).test(F(e))},V=function(e,t){var r=null==e?void 0:e[t];return H(r)?r:void 0};var W=V(d,"Map"),Z=V(Object,"create"),K=Object.prototype.hasOwnProperty,G=Object.prototype.hasOwnProperty;function J(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}J.prototype.clear=function(){this.__data__=Z?Z(null):{},this.size=0},J.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},J.prototype.get=function(e){var t=this.__data__;if(Z){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return K.call(t,e)?t[e]:void 0},J.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:G.call(t,e)},J.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this};let Q=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},Y=function(e,t){var r=e.__data__;return Q(t)?r["string"==typeof t?"string":"hash"]:r.map};function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ee(e){var t=this.__data__=new P(e);this.size=t.size}X.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(W||P),string:new J}},X.prototype.delete=function(e){var t=Y(this,e).delete(e);return this.size-=!!t,t},X.prototype.get=function(e){return Y(this,e).get(e)},X.prototype.has=function(e){return Y(this,e).has(e)},X.prototype.set=function(e,t){var r=Y(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},ee.prototype.clear=function(){this.__data__=new P,this.size=0},ee.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ee.prototype.get=function(e){return this.__data__.get(e)},ee.prototype.has=function(e){return this.__data__.has(e)},ee.prototype.set=function(e,t){var r=this.__data__;if(r instanceof P){var n=r.__data__;if(!W||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new X(n)}return r.set(e,t),this.size=r.size,this};let et=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e};var er=function(){try{var e=V(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();let en=function(e,t,r){"__proto__"==t&&er?er(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var ea=Object.prototype.hasOwnProperty;let ei=function(e,t,r){var n=e[t];ea.call(e,t)&&T(n,r)&&(void 0!==r||t in e)||en(e,t,r)},eo=function(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),a?en(r,s,l):ei(r,s,l)}return r},es=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},el=function(e){return S(e)&&"[object Arguments]"==_(e)};var eu=Object.prototype,ec=eu.hasOwnProperty,ed=eu.propertyIsEnumerable,ep=el(function(){return arguments}())?el:function(e){return S(e)&&ec.call(e,"callee")&&!ed.call(e,"callee")},ef=Array.isArray,eh="object"==typeof exports&&exports&&!exports.nodeType&&exports,eg=eh&&"object"==typeof module&&module&&!module.nodeType&&module,ey=eg&&eg.exports===eh?d.Buffer:void 0;let em=(ey?ey.isBuffer:void 0)||function(){return!1};var ev=/^(?:0|[1-9]\d*)$/;let eb=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&ev.test(e))&&e>-1&&e%1==0&&e<t},e_=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff};var ew={};ew["[object Float32Array]"]=ew["[object Float64Array]"]=ew["[object Int8Array]"]=ew["[object Int16Array]"]=ew["[object Int32Array]"]=ew["[object Uint8Array]"]=ew["[object Uint8ClampedArray]"]=ew["[object Uint16Array]"]=ew["[object Uint32Array]"]=!0,ew["[object Arguments]"]=ew["[object Array]"]=ew["[object ArrayBuffer]"]=ew["[object Boolean]"]=ew["[object DataView]"]=ew["[object Date]"]=ew["[object Error]"]=ew["[object Function]"]=ew["[object Map]"]=ew["[object Number]"]=ew["[object Object]"]=ew["[object RegExp]"]=ew["[object Set]"]=ew["[object String]"]=ew["[object WeakMap]"]=!1;let eC=function(e){return function(t){return e(t)}};var eS="object"==typeof exports&&exports&&!exports.nodeType&&exports,ek=eS&&"object"==typeof module&&module&&!module.nodeType&&module,eE=ek&&ek.exports===eS&&u.process,ex=function(){try{var e=ek&&ek.require&&ek.require("util").t
1ypes;if(e)return e;return eE&&eE.binding&&eE.binding("util")}catch(e){}}(),eR=ex&&ex.isTypedArray,eO=eR?eC(eR):function(e){return S(e)&&e_(e.length)&&!!ew[_(e)]},eT=Object.prototype.hasOwnProperty;let eI=function(e,t){var r=ef(e),n=!r&&ep(e),a=!r&&!n&&em(e),i=!r&&!n&&!a&&eO(e),o=r||n||a||i,s=o?es(e.length,String):[],l=s.length;for(var u in e)(t||eT.call(e,u))&&!(o&&("length"==u||a&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||eb(u,l)))&&s.push(u);return s};var eA=Object.prototype;let eP=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eA)};var eM=w(Object.keys,Object),ej=Object.prototype.hasOwnProperty;let eL=function(e){if(!eP(e))return eM(e);var t=[];for(var r in Object(e))ej.call(e,r)&&"constructor"!=r&&t.push(r);return t},eD=function(e){return null!=e&&e_(e.length)&&!j(e)},eN=function(e){return eD(e)?eI(e):eL(e)},eF=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var ez=Object.prototype.hasOwnProperty;let e$=function(e){if(!M(e))return eF(e);var t=eP(e),r=[];for(var n in e)"constructor"==n&&(t||!ez.call(e,n))||r.push(n);return r},eU=function(e){return eD(e)?eI(e,!0):e$(e)};var eB="object"==typeof exports&&exports&&!exports.nodeType&&exports,eq=eB&&"object"==typeof module&&module&&!module.nodeType&&module,eH=eq&&eq.exports===eB?d.Buffer:void 0,eV=eH?eH.allocUnsafe:void 0;let eW=function(e,t){if(t)return e.slice();var r=e.length,n=eV?eV(r):new e.constructor(r);return e.copy(n),n},eZ=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},eK=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i},eG=function(){return[]};var eJ=Object.prototype.propertyIsEnumerable,eQ=Object.getOwnPropertySymbols,eY=eQ?function(e){return null==e?[]:eK(eQ(e=Object(e)),function(t){return eJ.call(e,t)})}:eG;let eX=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e};var e0=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)eX(t,eY(e)),e=C(e);return t}:eG;let e1=function(e,t,r){var n=t(e);return ef(e)?n:eX(n,r(e))},e2=function(e){return e1(e,eN,eY)},e5=function(e){return e1(e,eU,e0)};var e3=V(d,"DataView"),e4=V(d,"Promise"),e7=V(d,"Set"),e9=V(d,"WeakMap"),e6="[object Map]",e8="[object Promise]",te="[object Set]",tt="[object WeakMap]",tr="[object DataView]",tn=F(e3),ta=F(W),ti=F(e4),to=F(e7),ts=F(e9),tl=_;(e3&&tl(new e3(new ArrayBuffer(1)))!=tr||W&&tl(new W)!=e6||e4&&tl(e4.resolve())!=e8||e7&&tl(new e7)!=te||e9&&tl(new e9)!=tt)&&(tl=function(e){var t=_(e),r="[object Object]"==t?e.constructor:void 0,n=r?F(r):"";if(n)switch(n){case tn:return tr;case ta:return e6;case ti:return e8;case to:return te;case ts:return tt}return t});let tu=tl;var tc=Object.prototype.hasOwnProperty;let td=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&tc.call(e,"index")&&(r.index=e.index,r.input=e.input),r};var tp=d.Uint8Array;let tf=function(e){var t=new e.constructor(e.byteLength);return new tp(t).set(new tp(e)),t},th=function(e,t){var r=t?tf(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var tg=/\w*$/;let ty=function(e){var t=new e.constructor(e.source,tg.exec(e));return t.lastIndex=e.lastIndex,t};var tm=p?p.prototype:void 0,tv=tm?tm.valueOf:void 0;let tb=function(e,t){var r=t?tf(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},t_=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return tf(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return th(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return tb(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return ty(e);case"[object Symbol]":return tv?Object(tv.call(e)):{}}};var tw=Object.create,tC=function(){function e(){}return function(t){if(!M(t))return{};if(tw)return tw(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),tS=ex&&ex.isMap,tk=tS?eC(tS):function(e){return S(e)&&"[object Map]"==tu(e)},tE=ex&&ex.isSet,tx=tE?eC(tE):function(e){return S(e)&&"[object Set]"==tu(e)},tR="[object Arguments]",tO="[object Function]",tT="[object Object]",tI={};tI[tR]=tI["[object Array]"]=tI["[object ArrayBuffer]"]=tI["[object DataView]"]=tI["[object Boolean]"]=tI["[object Date]"]=tI["[object Float32Array]"]=tI["[object Float64Array
1]"]=tI["[object Int8Array]"]=tI["[object Int16Array]"]=tI["[object Int32Array]"]=tI["[object Map]"]=tI["[object Number]"]=tI[tT]=tI["[object RegExp]"]=tI["[object Set]"]=tI["[object String]"]=tI["[object Symbol]"]=tI["[object Uint8Array]"]=tI["[object Uint8ClampedArray]"]=tI["[object Uint16Array]"]=tI["[object Uint32Array]"]=!0,tI["[object Error]"]=tI[tO]=tI["[object WeakMap]"]=!1;let tA=function e(t,r,n,a,i,o){var s,l=1&r,u=2&r,c=4&r;if(n&&(s=i?n(t,a,i,o):n(t)),void 0!==s)return s;if(!M(t))return t;var d=ef(t);if(d){if(s=td(t),!l)return eZ(t,s)}else{var p,f,h,g,y,m=tu(t),v=m==tO||"[object GeneratorFunction]"==m;if(em(t))return eW(t,l);if(m==tT||m==tR||v&&!i){if(s=u||v||"function"!=typeof(p=t).constructor||eP(p)?{}:tC(C(p)),!l)return u?(h=(f=s)&&eo(t,eU(t),f),eo(t,e0(t),h)):(y=(g=s)&&eo(t,eN(t),g),eo(t,eY(t),y))}else{if(!tI[m])return i?t:{};s=t_(t,m,l)}}o||(o=new ee);var b=o.get(t);if(b)return b;o.set(t,s),tx(t)?t.forEach(function(a){s.add(e(a,r,n,a,t,o))}):tk(t)&&t.forEach(function(a,i){s.set(i,e(a,r,n,i,t,o))});var _=c?u?e5:e2:u?eU:eN,w=d?void 0:_(t);return et(w||t,function(a,i){w&&(a=t[i=a]),ei(s,i,e(a,r,n,i,t,o))}),s},tP=function(e){return tA(e,5)};var tM=r(55729),tj=r(28438),tL=r.n(tj);let tD=function(e,t){},tN=function(e){return tA(e,4)},tF=function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a},tz=function(e){return"symbol"==typeof e||S(e)&&"[object Symbol]"==_(e)};function t$(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(t$.Cache||X),r}t$.Cache=X;var tU=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tB=/\\(\\)?/g,tq=function(e){var t=t$(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(tU,function(e,r,n,a){t.push(n?a.replace(tB,"$1"):r||e)}),t}),tH=1/0;let tV=function(e){if("string"==typeof e||tz(e))return e;var t=e+"";return"0"==t&&1/e==-tH?"-0":t};var tW=1/0,tZ=p?p.prototype:void 0,tK=tZ?tZ.toString:void 0;let tG=function e(t){if("string"==typeof t)return t;if(ef(t))return tF(t,e)+"";if(tz(t))return tK?tK.call(t):"";var r=t+"";return"0"==r&&1/t==-tW?"-0":r},tJ=function(e){return ef(e)?tF(e,tV):tz(e)?[e]:eZ(tq(null==e?"":tG(e)))};var tQ=r(31179),tY=r.n(tQ);function tX(){return(tX=Object.assign||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}).apply(this,arguments)}function t0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function t1(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function t2(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t5=(0,tM.createContext)(void 0);t5.displayName="FormikContext";var t3=t5.Provider,t4=t5.Consumer;function t7(){var e=(0,tM.useContext)(t5);return e||tD(!1),e}var t9=function(e){return Array.isArray(e)&&0===e.length},t6=function(e){return"function"==typeof e},t8=function(e){return null!==e&&"object"==typeof e},re=function(e){return"[object String]"===Object.prototype.toString.call(e)},rt=function(e){return 0===tM.Children.count(e)},rr=function(e){return t8(e)&&t6(e.then)};function rn(e,t,r,n){void 0===n&&(n=0);for(var a=tJ(t);e&&n<a.length;)e=e[a[n++]];return n===a.length||e?void 0===e?r:e:r}function ra(e,t,r){for(var n=tN(e),a=n,i=0,o=tJ(t);i<o.length-1;i++){var s=o[i],l=rn(e,o.slice(0,i+1));if(l&&(t8(l)||Array.isArray(l)))a=a[s]=tN(l);else{var u=o[i+1];a=a[s]=String(Math.floor(Number(u)))===u&&Number(u)>=0?[]:{}}}return(0===i?e:a)[o[i]]===r?e:(void 0===r?delete a[o[i]]:a[o[i]]=r,0===i&&void 0===r&&delete n[o[i]],n)}var ri={},ro={};function rs(e){var t,r,n,a,i,o,s,u,c,d,p,f,h,g,y,m,v,b,_,w,C,S,k,E,x,R,T,I,A,P,M,j,L,D,N,F,z,$,U,B,q,H,V,W,Z,K,G,J,Q,Y,X,ee,et,er,en,ea=(r=void 0===(t=e.validateOnChange)||t,a=void 0===(n=e.validateOnBlur)||n,o=void 0!==(i=e.validateOnMount)&&i,s=e.isInitialValid,c=void 0!==(u=e.enableReinitialize)&&u,d=e.onSubmit,p=t1(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=tX({validateOnChange:r,validateOnBlur:a,validateOnMount:o,onSubmit:d},p),h=(0,tM.useRef)(f.initialValues),g=(0,tM.useRef)(f.initialErrors||ri),y=(0,tM.useRef)(f.initialTouched||ro),m=(0,tM.useRef)(f.initialStatus),v=(0,tM.useRef)(!1),b=(0,tM.useRef)({}),(0,tM.useEffect)(function(){return v.current=!0,function(){v.current=!1}},[]),_=(0,tM.useState)(0)[1],C=(w=(0,tM.useRef)({values:tP(f.initialValues),errors:tP(f.initialErrors)||ri,touched:tP(f.initialTouched)||ro,status:tP(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0})).current,S=(0,tM.useCallback)(function(e){var t=w.current;w.current=function(e,t){switch(t.type){case"SET_VALUES":return tX({},e,{values:t.payload});case"SET_TOUCHED":return tX({},e,{touched:t.payload});case"SET_ERRORS":if(tL()(e.errors,t.payload))return e;return tX({},e,{errors:t.payload});case"SET_STATUS":return tX({},e,{status:t.payload});case"SET_ISSUBMITTING":return tX({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tX({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tX({},e,{values:ra(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tX({},e,{touched:ra(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tX({},e,{errors:ra(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tX({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tX({},e,{touched:function e(t,r,n,a){void 0===n&&(n=new WeakMap),void 0===a&&(a={});for(var i=0,o=Object.keys(t);i<o.length;i++){var s=o[i],l=t[s];t8(l)?n.get(l)||(n.set(l,!0),a[s]=Array.isArray(l)?[]:{},e(l,r,n,a[s])):a[s]=r}return a}(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return tX({},e,{isSubmitting:!1});default:return e}}(t,e),t!==w.current&&_(function(e){return e+1})},[]),k=(0,tM.useCallback)(function(e,t){return new Promise(function(r,n){var a=f.validate(e,t);null==a?r(ri):rr(a)?a.then(function(e){r(e||ri)},function(e){n(e)}):r(a)})},[f.validate]),E=(0,tM.useCallback)(function(e,t){var r,n,a,i,o=f.validationSchema,s=t6(o)?o(t):o,l=t&&s.val
1idateAt?s.validateAt(t,e):(r=e,n=s,void 0===a&&(a=!1),i=function e(t){var r=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=String(n);!0===Array.isArray(t[a])?r[a]=t[a].map(function(t){return!0===Array.isArray(t)||O(t)?e(t):""!==t?t:void 0}):O(t[a])?r[a]=e(t[a]):r[a]=""!==t[a]?t[a]:void 0}return r}(r),n[a?"validateSync":"validate"](i,{abortEarly:!1,context:i}));return new Promise(function(e,t){l.then(function(){e(ri)},function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return ra(t,e.path,e.message);for(var r=e.inner,n=Array.isArray(r),a=0,r=n?r:r[Symbol.iterator]();;){if(n){if(a>=r.length)break;i=r[a++]}else{if((a=r.next()).done)break;i=a.value}var i,o=i;rn(t,o.path)||(t=ra(t,o.path,o.message))}}return t}(r)):t(r)})})},[f.validationSchema]),x=(0,tM.useCallback)(function(e,t){return new Promise(function(r){return r(b.current[e].validate(t))})},[]),R=(0,tM.useCallback)(function(e){var t=Object.keys(b.current).filter(function(e){return t6(b.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return x(t,rn(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=ra(e,t[n],r)),e},{})})},[x]),T=(0,tM.useCallback)(function(e){return Promise.all([R(e),f.validationSchema?E(e):{},f.validate?k(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return l.all([t,r,n],{arrayMerge:rl})})},[f.validate,f.validationSchema,R,k,E]),I=rc(function(e){return void 0===e&&(e=C.values),S({type:"SET_ISVALIDATING",payload:!0}),T(e).then(function(e){return v.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e})}),(0,tM.useEffect)(function(){o&&!0===v.current&&tL()(h.current,f.initialValues)&&I(h.current)},[o,I]),A=(0,tM.useCallback)(function(e){var t=e&&e.values?e.values:h.current,r=e&&e.errors?e.errors:g.current?g.current:f.initialErrors||{},n=e&&e.touched?e.touched:y.current?y.current:f.initialTouched||{},a=e&&e.status?e.status:m.current?m.current:f.initialStatus;h.current=t,g.current=r,y.current=n,m.current=a;var i=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:a,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(f.onReset){var o=f.onReset(C.values,J);rr(o)?o.then(i):i()}else i()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]),(0,tM.useEffect)(function(){!0===v.current&&!tL()(h.current,f.initialValues)&&c&&(h.current=f.initialValues,A(),o&&I(h.current))},[c,f.initialValues,A,o,I]),(0,tM.useEffect)(function(){c&&!0===v.current&&!tL()(g.current,f.initialErrors)&&(g.current=f.initialErrors||ri,S({type:"SET_ERRORS",payload:f.initialErrors||ri}))},[c,f.initialErrors]),(0,tM.useEffect)(function(){c&&!0===v.current&&!tL()(y.current,f.initialTouched)&&(y.current=f.initialTouched||ro,S({type:"SET_TOUCHED",payload:f.initialTouched||ro}))},[c,f.initialTouched]),(0,tM.useEffect)(function(){c&&!0===v.current&&!tL()(m.current,f.initialStatus)&&(m.current=f.initialStatus,S({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]),P=rc(function(e){if(b.current[e]&&t6(b.current[e].validate)){var t=rn(C.values,e),r=b.current[e].validate(t);return rr(r)?(S({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return f.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),E(C.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:rn(t,e)}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),M=(0,tM.useCallback)(function(e,t){var r=t.validate;b.current[e]={validate:r}},[]),j=(0,tM.useCallback)(function(e){delete b.current[e]},[]),L=rc(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?a:t)?I(C.values):Promise.resolve()}
1),D=(0,tM.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),N=rc(function(e,t){var n=t6(e)?e(C.values):e;return S({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?I(n):Promise.resolve()}),F=(0,tM.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),z=rc(function(e,t,n){var a=t6(t)?t(rn(C.values,e)):t;return S({type:"SET_FIELD_VALUE",payload:{field:e,value:a}}),(void 0===n?r:n)?I(ra(C.values,e,a)):Promise.resolve()}),$=(0,tM.useCallback)(function(e,t){var r,n=t,a=e;if(!re(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,o=i.type,s=i.name,l=i.id,u=i.value,c=i.checked,d=(i.outerHTML,i.options),p=i.multiple;n=t||s||l,a=/number|range/.test(o)?isNaN(r=parseFloat(u))?"":r:/checkbox/.test(o)?function(e,t,r){if("boolean"==typeof e)return!!t;var n=[],a=!1,i=-1;if(Array.isArray(e))n=e,a=(i=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return!!t;return t&&r&&!a?n.concat(r):a?n.slice(0,i).concat(n.slice(i+1)):n}(rn(C.values,n),c,u):d&&p?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}n&&z(n,a)},[z,C.values]),U=rc(function(e){if(re(e))return function(t){return $(t,e)};$(e)}),B=rc(function(e,t,r){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?a:r)?I(C.values):Promise.resolve()}),q=(0,tM.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,a=r.id;r.outerHTML;B(t||n||a,!0)},[B]),H=rc(function(e){if(re(e))return function(t){return q(t,e)};q(e)}),V=(0,tM.useCallback)(function(e){t6(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),W=(0,tM.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),Z=(0,tM.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),K=rc(function(){return S({type:"SUBMIT_ATTEMPT"}),I().then(function(e){var t,r=e instanceof Error;if(!r&&0===Object.keys(e).length){try{if(t=Q(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return v.current&&S({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(v.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(v.current&&(S({type:"SUBMIT_FAILURE"}),r))throw e})}),G=rc(function(e){e&&e.preventDefault&&t6(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t6(e.stopPropagation)&&e.stopPropagation(),K().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),J={resetForm:A,validateForm:I,validateField:P,setErrors:D,setFieldError:F,setFieldTouched:B,setFieldValue:z,setStatus:W,setSubmitting:Z,setTouched:L,setValues:N,setFormikState:V,submitForm:K},Q=rc(function(){return d(C.values,J)}),Y=rc(function(e){e&&e.preventDefault&&t6(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t6(e.stopPropagation)&&e.stopPropagation(),A()}),X=(0,tM.useCallback)(function(e){return{value:rn(C.values,e),error:rn(C.errors,e),touched:!!rn(C.touched,e),initialValue:rn(h.current,e),initialTouched:!!rn(y.current,e),initialError:rn(g.current,e)}},[C.errors,C.touched,C.values]),ee=(0,tM.useCallback)(function(e){return{setValue:function(t,r){return z(e,t,r)},setTouched:function(t,r){return B(e,t,r)},setError:function(t){return F(e,t)}}},[z,B,F]),et=(0,tM.useCallback)(function(e){var t=t8(e),r=t?e.name:e,n=rn(C.values,r),a={name:r,value:n,onChange:U,onBlur:H};if(t){var i=e.type,o=e.value,s=e.as,l=e.multiple;"checkbox"===i?void 0===o?a.checked=!!n:(a.checked=!!(Array.isArray(n)&&~n.indexOf(o)),a.value=o):"radio"===i?(a.checked=n===o,a.value=o):"select"===s&&l&&(a.value=a.value||[],a.multiple=!0)}return a},[H,U,C.values]),er=(0,tM.useMemo)(function(){return!tL()(h.current,C.values)},[h.current,C.values]),en=(0,tM.useMemo)(function(){return void 0!==s?er?C.errors&&0===Object.keys(C.errors).length:!1!==s&&t6(s)?s(f):s:C.errors&&0===Object.keys(C.errors).length},[s,er,C.errors,f]),tX({},C,{initialValues:h.current,initialErrors:g.current,initialTouched:y.current,initialStatus:m.current,handleBlur:H,handleChange:U,handleReset:Y,handleSubmit:G,resetForm:A,setErrors:D,setFormikState:V,setFieldTouched:B,setFieldValue:z,setFieldError:F,setStatus:W,setSubmitting:Z,setTouched:L,setValues:N,submitForm:K,validateForm:I,val
1idateField:P,isValid:en,dirty:er,unregisterField:j,registerField:M,getFieldProps:et,getFieldMeta:X,getFieldHelpers:ee,validateOnBlur:a,validateOnChange:r,validateOnMount:o})),ei=e.component,eo=e.children,es=e.render,el=e.innerRef;return(0,tM.useImperativeHandle)(el,function(){return ea}),(0,tM.createElement)(t3,{value:ea},ei?(0,tM.createElement)(ei,ea):es?es(ea):eo?t6(eo)?eo(ea):rt(eo)?null:tM.Children.only(eo):null)}function rl(e,t,r){var n=e.slice();return t.forEach(function(t,a){if(void 0===n[a]){var i=!1!==r.clone&&r.isMergeableObject(t);n[a]=i?l(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[a]=l(e[a],t,r):-1===e.indexOf(t)&&n.push(t)}),n}var ru="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?tM.useLayoutEffect:tM.useEffect;function rc(e){var t=(0,tM.useRef)(e);return ru(function(){t.current=e}),(0,tM.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)},[])}function rd(e){var t=t7(),r=t.getFieldProps,n=t.getFieldMeta,a=t.getFieldHelpers,i=t.registerField,o=t.unregisterField,s=t8(e)?e:{name:e},l=s.name,u=s.validate;(0,tM.useEffect)(function(){return l&&i(l,{validate:u}),function(){l&&o(l)}},[i,o,l,u]),l||tD(!1);var c=(0,tM.useMemo)(function(){return a(l)},[a,l]);return[r(s),n(l),c]}function rp(e){var t=e.validate,r=e.name,n=e.render,a=e.children,i=e.as,o=e.component,s=e.className,l=t1(e,["validate","name","render","children","as","component","className"]),u=t1(t7(),["validate","validationSchema"]),c=u.registerField,d=u.unregisterField;(0,tM.useEffect)(function(){return c(r,{validate:t}),function(){d(r)}},[c,d,r,t]);var p=u.getFieldProps(tX({name:r},l)),f=u.getFieldMeta(r),h={field:p,form:u};if(n)return n(tX({},h,{meta:f}));if(t6(a))return a(tX({},h,{meta:f}));if(o){if("string"==typeof o){var g=l.innerRef,y=t1(l,["innerRef"]);return(0,tM.createElement)(o,tX({ref:g},p,y,{className:s}),a)}return(0,tM.createElement)(o,tX({field:p,form:u},l,{className:s}),a)}var m=i||"input";if("string"==typeof m){var v=l.innerRef,b=t1(l,["innerRef"]);return(0,tM.createElement)(m,tX({ref:v},p,b,{className:s}),a)}return(0,tM.createElement)(m,tX({},p,l,{className:s}),a)}var rf=(0,tM.forwardRef)(function(e,t){var r=e.action,n=t1(e,["action"]),a=t7(),i=a.handleReset,o=a.handleSubmit;return(0,tM.createElement)("form",tX({onSubmit:o,ref:t,onReset:i,action:null!=r?r:"#"},n))});rf.displayName="Form";var rh=function(e,t,r){var n=rv(e),a=n[t];return n.splice(t,1),n.splice(r,0,a),n},rg=function(e,t,r){var n=rv(e),a=n[t];return n[t]=n[r],n[r]=a,n},ry=function(e,t,r){var n=rv(e);return n.splice(t,0,r),n},rm=function(e,t,r){var n=rv(e);return n[t]=r,n},rv=function(e){if(!e)return[];if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(tX({},e,{length:t+1}))},rb=function(e,t){var r="function"==typeof e?e:t;return function(e){return Array.isArray(e)||t8(e)?r(rv(e)):e}};(function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var a=r.props,i=a.name;(0,a.formik.setFormikState)(function(r){var a=rb(n,e),o=rb(t,e),s=ra(r.values,i,e(rn(r.values,i))),l=n?a(rn(r.errors,i)):void 0,u=t?o(rn(r.touched,i)):void 0;return t9(l)&&(l=void 0),t9(u)&&(u=void 0),tX({},r,{values:s,errors:n?ra(r.errors,i,l):r.errors,touched:t?ra(r.touched,i,u):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat(rv(t),[tP(e)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return rg(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return rh(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return ry(r,e,t)},function(t){return ry(t,e,null)},function(t){return ry(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return rm(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t=n.length,n},function(e){return e?[null].concat(e):[null]},function(e){return e?[null].concat(e):[null]}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(t2(r)),r.pop=r.pop.bind(t2(r)),r}t0(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!tL()(rn(e.formik.values,e.name),rn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?rv(r):[];return t||(t=n[e]),t6(n.splice)&&n.splice(e,1),t6(n.every)&&n.every(function(e){return void 0===e})?[]:n},!0,!0),t},r.pop=function(){var e;return this.updateArrayField(function(t){var r=t.slice();return e||(e=r&&r.pop&&r.pop()),r},!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,a=t.children,i=t.name,o=t1(t.formik,["validate","validationSchema"]),s=tX({},e,{form:o,name:i});return r?(0,tM.createElement)(r,s):n?n(s):a?"function"==typeof a?a(s):rt(a)?null:tM.Children.only(a):null},t})(tM.Component).defaultProps={validateOnChange:!0};var r_=function(e){var t=function(t){return(0,tM.createElement)(t4,null,function(r){return r||tD(!1),(0,tM.createElement)(e,tX({},t,{formik:r}))})},r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+r+")",tY()(t,e)}(function(e){function t(){return e.apply(this,arguments)||this}t0(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return rn(this.props.formik.errors,this.props.name)!==rn(e.formik.errors,this.props.name)||rn(this.props.formik.touched,this.props.name)!==rn(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.render=function(){var e=this.props,t=e.component,r=e.formik,n=e.render,a=e.children,i=e.name,o=t1(e,["component","formik","render","children","name"]),s=rn(r.touched,i),l=rn(r.errors,i);return s&&l?n?t6(n)?n(l):null:a?t6(a)?a(l):null:t?(0,tM.createElement)(t,o,l):l:null},t}(tM.Component))},12549:(e,t,r)=>{"use strict";var n;function a(e,t,r){function n(r,n){if(r._zod||Object.defineProperty(r,"_zod",{value:{def:n,constr:o,traits:new Set},enumerable:!1}),r._zod.traits.has(e))return;r._zod.traits.add(e),t(r,n);let a=o.prototype,i=Object.keys(a);for(let e=0;e<i.length;e++){let t=i[e];t in r||(r[t]=a[t].bind(r))}}
1let a=r?.Parent??Object;class i extends a{}function o(e){var t;let a=r?.Parent?new i:this;for(let r of(n(a,e),(t=a._zod).deferred??(t.deferred=[]),a._zod.deferred))r();return a}return Object.defineProperty(i,"name",{value:e}),Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}r.d(t,{$W:()=>l,GT:()=>i,cV:()=>o,cr:()=>s,xI:()=>a}),Symbol("zod_brand");class i extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class o extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(n=globalThis).__zod_globalConfig??(n.__zod_globalConfig={});let s=globalThis.__zod_globalConfig;function l(e){return e&&Object.assign(s,e),s}},13829:(e,t,r)=>{"use strict";r.d(t,{Cg:()=>i,Cl:()=>n,Tt:()=>a,fX:()=>o});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function i(e,t,r,n){var a,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}Object.create;function o(e,t,r){if(r||2==arguments.length)for(var n,a=0,i=t.length;a<i;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError},14344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return c},RedirectType:function(){return a.RedirectType},forbidden:function(){return o.forbidden},notFound:function(){return i.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect},unauthorized:function(){return s.unauthorized},unstable_isUnrecognizedActionError:function(){return d},unstable_rethrow:function(){return l.unstable_rethrow}});let n=r(62263),a=r(12632),i=r(82837),o=r(8),s=r(92361),l=r(45673);class u extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class c extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}function d(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15414:(e,t,r)=>{"use strict";r.d(t,{w:()=>s});var n=r(6029),a=r(783),i=r(55729),o=r(19843);function s(){let e=(0,i.useContext)(a.LJ);return(0,n.jsxs)(o.H0,{children:["Help achieve tree equity in ",e.title]})}},15423:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>i});var n=r(55729),a=0;function i(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=r[0])?e:o()),document.body.insertAdjacentElement("beforeend",null!=(t=r[1])?t:o()),a++,()=>{1===a&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),a--}},[])}function o(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}},15613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return s},noSSR:function(){return o}});let n=r(30758);r(6029),r(55729);let a=n._(r(20954));function i(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let r=a.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let s=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=s?s().then(i):Promise.resolve(i(()=>null))}):(delete n.webpack,delete n.modules,o(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16746:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16878:(e,t,r)=>{"use strict";e.exports=r(29610)},18074:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return C},useLinkStatus:function(){return w}});let n=r(78963),a=r(6029),i=n._(r(55729)),o=r(76424),s=r(84618),l=r(13779),u=r(37069),c=r(91134),d=r(70679),p=r(4985),f=r(10010),h=r(3359),g=r(35924);r(32062);let y=new Set;function m(e,t,r,n){if((0,s.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let a=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(y.has(a))return;y.add(a)}e.prefetch(t,r,n).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=i.default.forwardRef(function(e,t){let r,n,{href:l,as:y,children:b,prefetch:_=null,passHref:w,replace:C,shallow:S,scroll:k,locale:E,onClick:x,onNavigate:R,onMouseEnter:O,onTouchStart:T,legacyBehavior:I=!1,...A}=e;r=b,I&&("string"==typeof r||"number"==typeof r)&&(r=(0,a.jsx)("a",{children:r}));let P=i.default.useContext(d.RouterContext),M=!1!==_,{href:j,as:L}=i.default.useMemo(()=>{if(!P){let e=v(l);return{href:e,as:y?v(y):e}}let[e,t]=(0,o.resolveHref)(P,l,!0);return{href:e,as:y?(0,o.resolveHref)(P,y):t||e}},[P,l,y]),D=i.default.useRef(j),N=i.default.useRef(L);I&&(n=i.default.Children.only(r));let F=I?n&&"object"==typeof n&&n.ref:t,[z,$,U]=(0,p.useIntersection)({rootMargin:"200px"}),B=i.default.useCallback(e=>{(N.current!==L||D.current!==j)&&(U(),N.current=L,D.current=j),z(e)},[L,j,U,z]),q=(0,g.useMergedRef)(B,F);i.default.useEffect(()=>{P&&$&&M&&m(P,j,L,{locale:E})},[L,j,$,E,M,null==P?void 0:P.locale,P]);let H={ref:q,onClick(e){I||"function"!=typeof x||x(e),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),P&&(e.defaultPrevented||function(e,t,r,n,a,i,o,l,u){let{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,s.isLocalURL)(r)){a&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let e=null==o||o;"beforePopState"in t?t[a?"replace":"push"](r,n,{shallow:i,locale:l,scroll:e}):t[a?"replace":"push"](n||r,{scroll:e})})()}}(e,P,j,L,C,S,k,E,R))},onMouseEnter(e){I||"function"!=typeof O||O(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),P&&m(P,j,L,{locale:E,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){I||"function"!=typeof T||T(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),P&&m(P,j,L,{locale:E,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(L))H.href=L;else if(!I||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==E?E:null==P?void 0:P.locale;H.href=(null==P?void 0:P.isLocaleDomain)&&(0,f.getDomainLocale)(L,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales)||
1(0,h.addBasePath)((0,c.addLocale)(L,e,null==P?void 0:P.defaultLocale))}return I?i.default.cloneElement(n,H):(0,a.jsx)("a",{...A,...H,children:r})}),_=(0,i.createContext)({pending:!1}),w=()=>(0,i.useContext)(_),C=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18691:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n,a=r(55729),i=r(6706),o=(n||(n=r.t(a,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,r]=a.useState(o());return(0,i.N)(()=>{e||r(e=>null!=e?e:String(s++))},[e]),e||(t?"radix-".concat(t):"")}},18909:(e,t,r)=>{"use strict";r.d(t,{hO:()=>l,sG:()=>s});var n=r(55729),a=r(56760),i=r(63654),o=r(6029),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)("Primitive.".concat(t)),a=n.forwardRef((e,n)=>{let{asChild:a,...i}=e;return window[Symbol.for("radix-ui")]=!0,(0,o.jsx)(a?r:t,{...i,ref:n})});return a.displayName="Primitive.".concat(t),{...e,[t]:a}},{});function l(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}},19031:(e,t,r)=>{"use strict";var n=r(29143);r(65127);var a=r(55729),i=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(a),o=void 0!==n&&n.env&&!0,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,a=t.optimizeForSpeed,i=void 0===a?o:a;u(s(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(u(s(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];u(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},r.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&u(s(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var a=document.head||document.getElementsByTagName("head")[0];return r?a.insertBefore(n,r):a.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function p(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+c(e+"-"+r)),d[n]}function f(e,t){var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var h=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,a=t.optimizeForSpeed,i=void 0!==a&&a;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),n&&"boolean"==typeof i&&(this._sheet.setOptimizeForSpeed(i),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,a=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var i=a.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=i,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var a=p(n,r);return{styleId:a,rules:Array.isArray(t)?t.map(function(e){return f(a,e)}):[f(a,t)]}}return{styleId:p(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),g=a.createContext(null);g.displayName="StyleSheetContext";var y=i.default.useInsertionEffect||i.default.useLayoutEffect,m=new h;function v(e){var t=m||a.useContext(g);return t&&y(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}v.dynamic=function(e){return e.map(function(e){return p(e[0],e[1])}).join(" ")},t.style=v},19843:(e,t,r)=>{"use strict";r.d(t,{EX:()=>l,H0:()=>u,JU:()=>c,M6:()=>h,Mz:()=>f,np:()=>p,pd:()=>d});var n=r(6029),a=r(90719),i=r(50212),o=r(21138),s=r(50970);let l=e=>{let{variant:t="primary",size:r="sm"}=e;return(0,i.A)(["inline-flex items-center gap-x-2 whitespace-nowrap","rounded-full","transition-all shadow-none hover:shadow-lg",{"py-2 px-6 text-md":"md"===r,"py-1.5 px-6 text-xs":"sm"===r},{"uppercase bg-brand-green-dark text-white hover:bg-brand-green":"primary"===t,"uppercase bg-brand-orange hover:bg-brand-orange-dark text-white":"orange"===t,"border border-brand-green bg-white text-brand-green-dark hover:bg-brand-green hover:text-white":"outline"===t}])},u=a.Ay.h1("text-3xl font-bold text-gray-700");a.Ay.h1("text-xl font-bold"),a.Ay.h2("text-md font-bold");let c=a.Ay.label(e=>{let{variant:t="default"}=e;return["block",{"flex flex-col gap-y-1 text-gray-500":"default"===t,"p-2 uppercase text-xs flex flex-col gap-y-1 font-bold text-gray-500":"noborder"===t}]}),d=a.Ay.input(e=>{let{variant:t}=e;return["rounded-sm p-2 transition-all w-full","default"===t?"border border-gray-300 focus:border-gray-500":"border-none"]}),p=(0,a.Ay)(o.UC)("bg-white rounded-md border border-gray-200 shadow-md rounded p-2 transition-all overflow-y-auto max-h-[50vh] min-w-[250px]"),f=(0,a.Ay)(o.l9)("px-3 py-1 lg:px-5 lg:py-2 text-xs lg:text-sm font-semibold uppercase flex items-center gap-x-1 text-brand-green-dark hover:text-brand-green-darker transition-all");function h(){return(0,n.jsxs)("button",{className:"ml-4 inline-flex items-center gap-x-1 rounded-md border border-brand-green-dark bg-white px-2 py-0.5 text-xs text-brand-green-dark shadow transition-all hover:shadow-md",children:[(0,n.jsx)("div",{children:"Adjust"}),(0,n.jsx)(s.WhT,{})]})}},20184:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>u});var n=new WeakMap,a=new WeakMap,i={},o=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=s(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[r]||(i[r]=new WeakMap);var c=i[r],d=[],p=new Set,f=new Set(u),h=function(e){!e||p.has(e)||(p.add(e),h(e.parentNode))};u.forEach(h);var g=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(p.has(e))g(e);else try{var t=e.getAttribute(l),i=null!==t&&"false"!==t,o=(n.get(e)||0)+1,s=(c.get(e)||0)+1;n.set(e,o),c.set(e,s),d.push(e),1===o&&i&&a.set(e,!0),1===s&&e.setAttribute(r,"true"),i||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return g(t),p.clear(),o++,function(){d.forEach(function(e){var t=n.get(e)-1,i=c.get(e)-1;n.set(e,t),c.set(e,i),t||(a.has(e)||e.removeAttribute(l),a.delete(e)),i||e.removeAttribute(r)}),--o||(n=new WeakMap,n=new WeakMap,a=new WeakMap,i={})}},u=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),l(n,a,r,"aria-hidden")):function(){return null}}},20438:(e,t,r)=>{var n=r(29143);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))}),t.splice(a,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e},t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&
1("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(84543)(t);let{formatters:a}=e.exports;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},20954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let n=r(30758)._(r(55729)),a=r(10140),i=[],o=[],s=!1;function l(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),i=null;function l(){if(!i){let t=new u(e,r);i={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return i.promise()}if(!s){let e=r.webpack&&1?r.webpack():r.modules;e&&o.push(t=>{for(let r of e)if(t.includes(r))return l()})}function c(e,t){l();let o=n.default.useContext(a.LoadableContext);o&&Array.isArray(r.modules)&&r.modules.forEach(e=>{o(e)});let s=n.default.useSyncExternalStore(i.subscribe,i.getCurrentValue,i.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:i.retry}),[]),n.default.useMemo(()=>{var t;return s.loading||s.error?n.default.createElement(r.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:i.retry}):s.loaded?n.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return c.preload=()=>l(),c.displayName="LoadableComponent",n.default.forwardRef(c)}(l,e)}function d(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>
1{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(i).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(s=!0,t());d(o,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let p=c},21138:(e,t,r)=>{"use strict";r.d(t,{i3:()=>e5,UC:()=>e0,q7:()=>e2,JU:()=>e1,ZL:()=>eX,bL:()=>eQ,Pb:()=>e3,G5:()=>e7,ZP:()=>e4,l9:()=>eY});var n=r(55729),a=r(76307),i=r(82975),o=r(37975),s=r(47987),l=r(18909),u=r(84419),c=r(47345),d=r(56636),p=r(15423),f=r(69113),h=r(18691),g=r(71117),y=r(56760),m=r(6706),v=r(6029),b=n.forwardRef((e,t)=>{var r,a;let{container:i,...o}=e,[s,u]=n.useState(!1);(0,m.N)(()=>u(!0),[]);let c=i||s&&(null==(a=globalThis)||null==(r=a.document)?void 0:r.body);return c?y.createPortal((0,v.jsx)(l.sG.div,{...o,ref:t}),c):null});b.displayName="Portal";var _=r(99583),w=r(21426),C=r(63654),S=r(22555),k=r(20184),E=r(22703),x=["Enter"," "],R=["ArrowUp","PageDown","End"],O=["ArrowDown","PageUp","Home",...R],T={ltr:[...x,"ArrowRight"],rtl:[...x,"ArrowLeft"]},I={ltr:["ArrowLeft"],rtl:["ArrowRight"]},A="Menu",[P,M,j]=(0,u.N)(A),[L,D]=(0,o.A)(A,[j,g.Bk,w.RG]),N=(0,g.Bk)(),F=(0,w.RG)(),[z,$]=L(A),[U,B]=L(A),q=e=>{let{__scopeMenu:t,open:r=!1,children:a,dir:i,onOpenChange:o,modal:s=!0}=e,l=N(t),[u,d]=n.useState(null),p=n.useRef(!1),f=(0,S.c)(o),h=(0,c.jH)(i);return n.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,v.jsx)(g.bL,{...l,children:(0,v.jsx)(z,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d,children:(0,v.jsx)(U,{scope:t,onClose:n.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:h,modal:s,children:a})})})};q.displayName=A;var H=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,a=N(r);return(0,v.jsx)(g.Mz,{...a,...n,ref:t})});H.displayName="MenuAnchor";var V="MenuPortal",[W,Z]=L(V,{forceMount:void 0}),K=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:a}=e,i=$(V,t);return(0,v.jsx)(W,{scope:t,forceMount:r,children:(0,v.jsx)(_.C,{present:r||i.open,children:(0,v.jsx)(b,{asChild:!0,container:a,children:n})})})};K.displayName=V;var G="MenuContent",[J,Q]=L(G),Y=n.forwardRef((e,t)=>{let r=Z(G,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,i=$(G,e.__scopeMenu),o=B(G,e.__scopeMenu);return(0,v.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,v.jsx)(_.C,{present:n||i.open,children:(0,v.jsx)(P.Slot,{scope:e.__scopeMenu,children:o.modal?(0,v.jsx)(X,{...a,ref:t}):(0,v.jsx)(ee,{...a,ref:t})})})})}),X=n.forwardRef((e,t)=>{let r=$(G,e.__scopeMenu),o=n.useRef(null),s=(0,i.s)(t,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,k.Eq)(e)},[]),(0,v.jsx)(er,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,a.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ee=n.forwardRef((e,t)=>{let r=$(G,e.__scopeMenu);return(0,v.jsx)(er,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),et=(0,C.TL)("MenuContent.ScrollLock"),er=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:o=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:h,onEscapeKeyDown:y,onPointerDownOutside:m,onFocusOutside:b,onInteractOutside:_,onDismiss:C,disableOutsideScroll:S,...k}=e,x=$(G,r),T=B(G,r),I=N(r),A=F(r),P=M(r),[j,L]=n.useState(null),D=n.useRef(null),z=(0,i.s)(t,D,x.onContentChange),U=n.useRef(0),q=n.useRef(""),H=n.useRef(0),V=n.useRef(null),W=n.useRef("right"),Z=n.useRef(0),K=S?E.A:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(U.current),[]),(0,p.Oh)();let Q=n.useCallback(e=>{var t,r;return W.current===(null==(t=V.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let o=t[e],s=t[i],l=o.x,u=o.y,c=s.x,d=s.y;u>n!=d>n&&r<(c-l)*(n-u)/(d-u)+l&&(a=!a)}return a}({x:e.clientX,y:e.clientY},t)}(e,null==(r=V.current)?void 0:r.area)},[]);return(0,v.jsx)(J,{scope:r,searchRef:q,onItemEnter:n.useCallback(e=>{Q(e)&&e.preventDefault()},[Q]),onItemLeave:n.useCallback(e=>{var t;
1Q(e)||(null==(t=D.current)||t.focus(),L(null))},[Q]),onTriggerLeave:n.useCallback(e=>{Q(e)&&e.preventDefault()},[Q]),pointerGraceTimerRef:H,onPointerGraceIntentChange:n.useCallback(e=>{V.current=e},[]),children:(0,v.jsx)(K,{...S?{as:et,allowPinchZoom:!0}:void 0,children:(0,v.jsx)(f.n,{asChild:!0,trapped:s,onMountAutoFocus:(0,a.mK)(l,e=>{var t;e.preventDefault(),null==(t=D.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,v.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:y,onPointerDownOutside:m,onFocusOutside:b,onInteractOutside:_,onDismiss:C,children:(0,v.jsx)(w.bL,{asChild:!0,...A,dir:T.dir,orientation:"vertical",loop:o,currentTabStopId:j,onCurrentTabStopIdChange:L,onEntryFocus:(0,a.mK)(h,e=>{T.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,v.jsx)(g.UC,{role:"menu","aria-orientation":"vertical","data-state":eI(x.open),"data-radix-menu-content":"",dir:T.dir,...I,...k,ref:z,style:{outline:"none",...k.style},onKeyDown:(0,a.mK)(k.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&(e=>{var t,r;let n=q.current+e,a=P().filter(e=>!e.disabled),i=document.activeElement,o=null==(t=a.find(e=>e.ref.current===i))?void 0:t.textValue,s=function(e,t,r){var n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,o=(n=Math.max(i,0),e.map((t,r)=>e[(n+r)%e.length]));1===a.length&&(o=o.filter(e=>e!==r));let s=o.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return s!==r?s:void 0}(a.map(e=>e.textValue),n,o),l=null==(r=a.find(e=>e.textValue===s))?void 0:r.ref.current;!function e(t){q.current=t,window.clearTimeout(U.current),""!==t&&(U.current=window.setTimeout(()=>e(""),1e3))}(n),l&&setTimeout(()=>l.focus())})(e.key));let a=D.current;if(e.target!==a||!O.includes(e.key))return;e.preventDefault();let i=P().filter(e=>!e.disabled).map(e=>e.ref.current);R.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,a.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(U.current),q.current="")}),onPointerMove:(0,a.mK)(e.onPointerMove,eM(e=>{let t=e.target,r=Z.current!==e.clientX;e.currentTarget.contains(t)&&r&&(W.current=e.clientX>Z.current?"right":"left",Z.current=e.clientX)}))})})})})})})});Y.displayName=G;var en=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,v.jsx)(l.sG.div,{role:"group",...n,ref:t})});en.displayName="MenuGroup";var ea=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,v.jsx)(l.sG.div,{...n,ref:t})});ea.displayName="MenuLabel";var ei="MenuItem",eo="menu.itemSelect",es=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:o,...s}=e,u=n.useRef(null),c=B(ei,e.__scopeMenu),d=Q(ei,e.__scopeMenu),p=(0,i.s)(t,u),f=n.useRef(!1);return(0,v.jsx)(el,{...s,ref:p,disabled:r,onClick:(0,a.mK)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(eo,{bubbles:!0,cancelable:!0});e.addEventListener(eo,e=>null==o?void 0:o(e),{once:!0}),(0,l.hO)(e,t),t.defaultPrevented?f.current=!1:c.onClose()}}),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),f.current=!0},onPointerUp:(0,a.mK)(e.onPointerUp,e=>{var t;f.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;r||t&&" "===e.key||x.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});es.displayName=ei;var el=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:o=!1,textValue:s,...u}=e,c=Q(ei,r),d=F(r),p=n.useRef(null),f=(0,i.s)(t,p),[h,g]=n.useState(!1),[y,m]=n.useState("");return n.useEffect(()=>{let e=p.current;if(e){var t;m((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,v.jsx)(P.ItemSlot,{scope:r,disabled:o,textValue:null!=s?s:y,children:(0,v.jsx)(w.q7,{asChild:!0,...d,focusable:!o,children:(0,v.jsx)(l.sG.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...u,ref:f,onPointerMove:(0,a.mK)(e.onPointerMove,eM(e=>{o?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focu
1s({preventScroll:!0}))})),onPointerLeave:(0,a.mK)(e.onPointerLeave,eM(e=>c.onItemLeave(e))),onFocus:(0,a.mK)(e.onFocus,()=>g(!0)),onBlur:(0,a.mK)(e.onBlur,()=>g(!1))})})})}),eu=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...i}=e;return(0,v.jsx)(em,{scope:e.__scopeMenu,checked:r,children:(0,v.jsx)(es,{role:"menuitemcheckbox","aria-checked":eA(r)?"mixed":r,...i,ref:t,"data-state":eP(r),onSelect:(0,a.mK)(i.onSelect,()=>null==n?void 0:n(!!eA(r)||!r),{checkForDefaultPrevented:!1})})})});eu.displayName="MenuCheckboxItem";var ec="MenuRadioGroup",[ed,ep]=L(ec,{value:void 0,onValueChange:()=>{}}),ef=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...a}=e,i=(0,S.c)(n);return(0,v.jsx)(ed,{scope:e.__scopeMenu,value:r,onValueChange:i,children:(0,v.jsx)(en,{...a,ref:t})})});ef.displayName=ec;var eh="MenuRadioItem",eg=n.forwardRef((e,t)=>{let{value:r,...n}=e,i=ep(eh,e.__scopeMenu),o=r===i.value;return(0,v.jsx)(em,{scope:e.__scopeMenu,checked:o,children:(0,v.jsx)(es,{role:"menuitemradio","aria-checked":o,...n,ref:t,"data-state":eP(o),onSelect:(0,a.mK)(n.onSelect,()=>{var e;return null==(e=i.onValueChange)?void 0:e.call(i,r)},{checkForDefaultPrevented:!1})})})});eg.displayName=eh;var ey="MenuItemIndicator",[em,ev]=L(ey,{checked:!1}),eb=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...a}=e,i=ev(ey,r);return(0,v.jsx)(_.C,{present:n||eA(i.checked)||!0===i.checked,children:(0,v.jsx)(l.sG.span,{...a,ref:t,"data-state":eP(i.checked)})})});eb.displayName=ey;var e_=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,v.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});e_.displayName="MenuSeparator";var ew=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,a=N(r);return(0,v.jsx)(g.i3,{...a,...n,ref:t})});ew.displayName="MenuArrow";var eC="MenuSub",[eS,ek]=L(eC),eE=e=>{let{__scopeMenu:t,children:r,open:a=!1,onOpenChange:i}=e,o=$(eC,t),s=N(t),[l,u]=n.useState(null),[c,d]=n.useState(null),p=(0,S.c)(i);return n.useEffect(()=>(!1===o.open&&p(!1),()=>p(!1)),[o.open,p]),(0,v.jsx)(g.bL,{...s,children:(0,v.jsx)(z,{scope:t,open:a,onOpenChange:p,content:c,onContentChange:d,children:(0,v.jsx)(eS,{scope:t,contentId:(0,h.B)(),triggerId:(0,h.B)(),trigger:l,onTriggerChange:u,children:r})})})};eE.displayName=eC;var ex="MenuSubTrigger",eR=n.forwardRef((e,t)=>{let r=$(ex,e.__scopeMenu),o=B(ex,e.__scopeMenu),s=ek(ex,e.__scopeMenu),l=Q(ex,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=l,p={__scopeMenu:e.__scopeMenu},f=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>f,[f]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,v.jsx)(H,{asChild:!0,...p,children:(0,v.jsx)(el,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":eI(r.open),...e,ref:(0,i.t)(t,s.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,a.mK)(e.onPointerMove,eM(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100)))})),onPointerLeave:(0,a.mK)(e.onPointerLeave,eM(e=>{var t,n;f();let a=null==(t=r.content)?void 0:t.getBoundingClientRect();if(a){let t=null==(n=r.content)?void 0:n.dataset.side,i="right"===t,o=a[i?"left":"right"],s=a[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:o,y:a.top},{x:s,y:a.top},{x:s,y:a.bottom},{x:o,y:a.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.mK)(e.onKeyDown,t=>{let n=""!==l.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&T[o.dir].includes(t.key)){var a;r.onOpenChange(!0),null==(a=r.content)||a.focus(),t.preventDefault()}})})})});eR.displayName=ex;var eO="MenuSubContent",eT=n.forwardRef((e,t)=>
1{let r=Z(G,e.__scopeMenu),{forceMount:o=r.forceMount,...s}=e,l=$(G,e.__scopeMenu),u=B(G,e.__scopeMenu),c=ek(eO,e.__scopeMenu),d=n.useRef(null),p=(0,i.s)(t,d);return(0,v.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,v.jsx)(_.C,{present:o||l.open,children:(0,v.jsx)(P.Slot,{scope:e.__scopeMenu,children:(0,v.jsx)(er,{id:c.contentId,"aria-labelledby":c.triggerId,...s,ref:p,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.mK)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,a.mK)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=I[u.dir].includes(e.key);if(t&&r){var n;l.onOpenChange(!1),null==(n=c.trigger)||n.focus(),e.preventDefault()}})})})})})});function eI(e){return e?"open":"closed"}function eA(e){return"indeterminate"===e}function eP(e){return eA(e)?"indeterminate":e?"checked":"unchecked"}function eM(e){return t=>"mouse"===t.pointerType?e(t):void 0}eT.displayName=eO;var ej="DropdownMenu",[eL,eD]=(0,o.A)(ej,[D]),eN=D(),[eF,ez]=eL(ej),e$=e=>{let{__scopeDropdownMenu:t,children:r,dir:a,open:i,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,c=eN(t),d=n.useRef(null),[p,f]=(0,s.i)({prop:i,defaultProp:null!=o&&o,onChange:l,caller:ej});return(0,v.jsx)(eF,{scope:t,triggerId:(0,h.B)(),triggerRef:d,contentId:(0,h.B)(),open:p,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:u,children:(0,v.jsx)(q,{...c,open:p,onOpenChange:f,dir:a,modal:u,children:r})})};e$.displayName=ej;var eU="DropdownMenuTrigger",eB=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,s=ez(eU,r),u=eN(r);return(0,v.jsx)(H,{asChild:!0,...u,children:(0,v.jsx)(l.sG.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:(0,i.t)(t,s.triggerRef),onPointerDown:(0,a.mK)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eB.displayName=eU;var eq=e=>{let{__scopeDropdownMenu:t,...r}=e,n=eN(t);return(0,v.jsx)(K,{...n,...r})};eq.displayName="DropdownMenuPortal";var eH="DropdownMenuContent",eV=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...i}=e,o=ez(eH,r),s=eN(r),l=n.useRef(!1);return(0,v.jsx)(Y,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...i,ref:t,onCloseAutoFocus:(0,a.mK)(e.onCloseAutoFocus,e=>{var t;l.current||null==(t=o.triggerRef.current)||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,a.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eV.displayName=eH,n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eN(r);return(0,v.jsx)(en,{...a,...n,ref:t})}).displayName="DropdownMenuGroup";var eW=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eN(r);return(0,v.jsx)(ea,{...a,...n,ref:t})});eW.displayName="DropdownMenuLabel";var eZ=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eN(r);return(0,v.jsx)(es,{...a,...n,ref:t})});eZ.displayName="DropdownMenuItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eN(r);return(0,v.jsx)(eu,{...a,...n,ref:t})}).displayName="DropdownMenuCheckboxItem",n.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:r,...n}=e,a=eN(r);return(0,v.jsx)(ef,{...a,...n,ref:t})}).displayName="DropdownMenuRadioGroup",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eN(r);return(0,v.jsx)(eg,{...a,...n,ref:t})}).displayName="DropdownMenuRadioItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eN(r);return(0,v.jsx)(eb,{...a,...n,ref:t})}).displayName="DropdownMenuItemIndicator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eN(r);return(0,v.jsx)(e_,{...a,...n,ref:t})}).displayName="DropdownMenuSeparator";var eK=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eN(r);return(0,v.jsx)(ew,{...a,...n,ref:t})});eK.displayName="DropdownMenuArrow";var eG=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eN(r);return(0,v.jsx)(eR,{...a,...n,ref:t})});eG.displayName="DropdownMenuSubTrigger";var eJ=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eN(r);return(0,v.jsx)(eT,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eJ.displayName="DropdownMenuSubContent";var eQ=e$,eY=eB,eX=eq,e0=eV,e1=eW,e2=eZ,e5=eK,e3=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:a,defaultOpen:i}=e,o=eN(t),[l,u]=(0,s.i)({prop:n,defaultProp:null!=i&&i,onChange:a,caller:"DropdownMenuSub"});return(0,v.jsx)(eE,{...o,open:l,onOpenChange:u,children:r})},e4=eG,e7=eJ},21426:(e,t,r)=>{"use strict";r.d(t,{RG:()=>w,bL:()=>I,q7:()=>A});var n=r(55729),a=r(76307),i=r(84419),o=r(82975),s=r(37975),l=r(18691),u=r(18909),c=r(22555),d=r(47987),p=r(47345),f=r(6029),h="rovingFocusGroup.onEntryFocus",g={bubbles:!1,cancelable:!0},y="RovingFocusGroup",[m,v,b]=(0,i.N)(y),[_,w]=(0,s.A)(y,[b]),[C,S]=_(y),k=n.forwardRef((e,t)=>(0,f.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(E,{...e,ref:t})})}));k.displayName=y;var E=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:l,currentTabStopId:m,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:_,onEntryFocus:w,preventScrollOnEntryFocus:S=!1,...k}=e,E=n.useRef(null),x=(0,o.s)(t,E),R=(0,p.jH)(l),[O,I]=(0,d.i)({prop:m,defaultProp:null!=b?b:null,onChange:_,caller:y}),[A,P]=n.useState(!1),M=(0,c.c)(w),j=v(r),L=n.useRef(!1),[D,N]=n.useState(0);return n.useEffect(()=>{let e=E.current;if(e)return e.addEventListener(h,M),()=>e.removeEventListener(h,M)},[M]),(0,f.jsx)(C,{scope:r,orientation:i,dir:R,loop:s,currentTabStopId:O,onItemFocus:n.useCallback(e=>I(e),[I]),onItemShiftTab:n.useCallback(()=>P(!0),[]),onFocusableItemAdd:n.useCallback(()=>N(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>N(e=>e-1),[]),children:(0,f.jsx)(u.sG.div,{tabIndex:A||0===D?-1:0,"data-orientation":i,...k,ref:x,style:{outline:"none",...e.style},onMouseDown:(0,a.mK)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,a.mK)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(h,g);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=j().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===O),...e].filter(Boolean).map(e=>e.ref.current),S)}}L.current=!1}),onBlur:(0,a.mK)(e.onBlur,()=>P(!1))})})}),x="RovingFocusGroupItem",R=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:o=!1,tabStopId:s,children:c,...d}=e,p=(0,l.B)(),h=s||p,g=S(x,r),y=g.currentTabStopId===h,b=v(r),{onFocusableItemAdd:_,onFocusableItemRemove:w,currentTabStopId:C}=g;return n.useEffect(()=>{if(i)return _(),()=>w()},[i,_,w]),(0,f.jsx)(m.ItemSlot,{scope:r,id:h,focusable:i,active:o,children:(0,f.jsx)(u.sG.span,{tabIndex:y?0:-1,"data-orientation":g.orientation,...d,ref:t,onMouseDown:(0,a.mK)(e.onMouseDown,e=>{i?g.onItemFocus(h):e.preventDefault()}),onFocus:(0,a.mK)(e.onFocus,()=>g.onItemFocus(h)),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let a=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return O[a]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();
1let r=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=g.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>T(r))}}),children:"function"==typeof c?c({isCurrentTabStop:y,hasTabStop:null!=C}):c})})});R.displayName=x;var O={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var I=k,A=R},22555:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(55729);function a(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>function(){for(var e,r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];return null==(e=t.current)?void 0:e.call(t,...n)},[])}},22703:(e,t,r)=>{"use strict";r.d(t,{A:()=>V});
1var n,a,i=r(13829),o=r(55729),s="right-scroll-bar-position",l="width-before-scroll-bar";function u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var c="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,d=new WeakMap;function p(e){return e}var f=function(e){void 0===e&&(e={});var t,r,n,a=(void 0===t&&(t=p),r=[],n=!1,{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var a=t(e,n);return r.push(a),function(){r=r.filter(function(e){return e!==a})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var a=r;r=[],a.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(i)};o(),r={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),r}}}});return a.options=(0,i.Cl)({async:!0,ssr:!1},e),a}(),h=function(){},g=o.forwardRef(function(e,t){var r,n,a,s,l=o.useRef(null),p=o.useState({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:h}),g=p[0],y=p[1],m=e.forwardProps,v=e.children,b=e.className,_=e.removeScrollBar,w=e.enabled,C=e.shards,S=e.sideCar,k=e.noRelative,E=e.noIsolation,x=e.inert,R=e.allowPinchZoom,O=e.as,T=e.gapMode,I=(0,i.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=(r=[l,t],n=function(e){return r.forEach(function(t){return u(t,e)})},(a=(0,o.useState)(function(){return{value:null,callback:n,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=n,s=a.facade,c(function(){var e=d.get(s);if(e){var t=new Set(e),n=new Set(r),a=s.current;t.forEach(function(e){n.has(e)||u(e,null)}),n.forEach(function(e){t.has(e)||u(e,a)})}d.set(s,r)},[r]),s),P=(0,i.Cl)((0,i.Cl)({},I),g);return o.createElement(o.Fragment,null,w&&o.createElement(S,{sideCar:f,removeScrollBar:_,shards:C,noRelative:k,noIsolation:E,inert:x,setCallbacks:y,allowPinchZoom:!!R,lockRef:l,gapMode:T}),m?o.cloneElement(o.Children.only(v),(0,i.Cl)((0,i.Cl)({},P),{ref:A})):o.createElement(void 0===O?"div":O,(0,i.Cl)({},P,{className:b,ref:A}),v))});g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g.classNames={fullWidth:l,zeroRight:s};var y=function(e){var t=e.sideCar,r=(0,i.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return o.createElement(n,(0,i.Cl)({},r))};y.isSideCarExport=!0;var m=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},v=function(){var e=m();return function(t,r){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},b=function(){var e=v();return function(t){return e(t.styles,t.dynamic),null}},_={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[w(r),w(n),w(a)]},S=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return _;var t=C(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},k=b(),E="data-scroll-locked",x=function(e,t,r,n){var a=e.left,i=e.top,o=e.right,u=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(u,"px ").concat(n,";\n  }\n  body[").concat(E,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(a,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(o,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(u,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(u,"px ").concat(n,";
1")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(s," {\n    right: ").concat(u,"px ").concat(n,";\n  }\n  \n  .").concat(l," {\n    margin-right: ").concat(u,"px ").concat(n,";\n  }\n  \n  .").concat(s," .").concat(s," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(l," .").concat(l," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(E,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n  }\n")},R=function(){var e=parseInt(document.body.getAttribute(E)||"0",10);return isFinite(e)?e:0},O=function(){o.useEffect(function(){return document.body.setAttribute(E,(R()+1).toString()),function(){var e=R()-1;e<=0?document.body.removeAttribute(E):document.body.setAttribute(E,e.toString())}},[])},T=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;O();var i=o.useMemo(function(){return S(a)},[a]);return o.createElement(k,{styles:x(i,!t,a,r?"":"!important")})},I=!1;if("undefined"!=typeof window)try{var A=Object.defineProperty({},"passive",{get:function(){return I=!0,!0}});window.addEventListener("test",A,A),window.removeEventListener("test",A,A)}catch(e){I=!1}var P=!!I&&{passive:!1},M=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},j=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),L(e,n)){var a=D(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},L=function(e,t){return"v"===e?M(t,"overflowY"):M(t,"overflowX")},D=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},N=function(e,t,r,n,a){var i,o=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=o*n,l=r.target,u=t.contains(l),c=!1,d=s>0,p=0,f=0;do{if(!l)break;var h=D(e,l),g=h[0],y=h[1]-h[2]-o*g;(g||y)&&L(e,l)&&(p+=y,f+=g);var m=l.parentNode;l=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(a&&1>Math.abs(p)||!a&&s>p)?c=!0:!d&&(a&&1>Math.abs(f)||!a&&-s>f)&&(c=!0),c},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},z=function(e){return[e.deltaX,e.deltaY]},$=function(e){return e&&"current"in e?e.current:e},U=0,B=[];let q=(n=function(e){var t=o.useRef([]),r=o.useRef([0,0]),n=o.useRef(),a=o.useState(U++)[0],s=o.useState(b)[0],l=o.useRef(e);o.useEffect(function(){l.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,i.fX)([e.lockRef.current],(e.shards||[]).map($),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var a,i=F(e),o=r.current,s="deltaX"in e?e.deltaX:o[0]-i[0],u="deltaY"in e?e.deltaY:o[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===c||f.contains(c)))return!1;var h=j(d,c);if(!h)return!0;if(h?a=d:(a="v"===d?"h":"v",h=j(d,c)),!h)return!1;if(!n.current&&"changedTouches"in e&&(s||u)&&(n.current=a),!a)return!0;var g=n.current||a;return N(g,t,e,"h"===g?s:u,!0)},[]),c=o.useCallback(function(e){if(B.length&&B[B.length-1]===s){var r="deltaY"in e?z(e):F(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var a=(l.current.shards||[]).map($).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?u(e,a[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=o.useCallback(function(e,r,n,a){var i={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),p=o.useCallback(function(e){r.current=F(e),n.current=void 0},[]),f=o.useCallback(function(t){d(t.type,z(t),t.target,u(t,e.lockRef.current))},[]),h=o.useCallback(function(t){d(t.type,F(t),t.target,u(t,e.lockRef.current))},[]);o.useEffect(function(){return B.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,P),document.addEventListener("touchmove",c,P),document.addEventListener("touchstart",p,P),function(){B=B.filter(function(e){return e!==s}),document.removeEventListener("wheel",c,P),document.removeEventListener("touchmove",c,P),document.removeEventListener("touchstart",p,P)}},[]);var g=e.removeScrollBar,y=e.inert;return o.createElement(o.Fragment,null,y?o.createElement(s,{styles:"\n  .block-interactivity-".concat(a," {pointer-events: none;}\n  .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,g?o.createElement(T,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},f.useMedium(n),y);var H=o.forwardRef(function(e,t){return o.createElement(g,(0,i.Cl)({},e,{ref:t,sideCar:q}))});H.classNames=g.classNames;let V=H},24290:(e,t,r)=>{"use strict";r.d(t,{_:()=>l});var n=r(72012),a=r(3359),i=r(94087),o=r(98764),s=(e,t,r)=>new Promise((n,a)=>{var i=e=>
1{try{s(r.next(e))}catch(e){a(e)}},o=e=>{try{s(r.throw(e))}catch(e){a(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,o);s((r=r.apply(e,t)).next())});function l({resolverName:e,resolverType:t,routePath:l,httpMethod:u}){var c;let d=(c="/api/rpc"+l,(0,n.normalizePathTrailingSlash)((0,a.addBasePath)(c))),p=new URL(d,window.location.origin),f=(e,...t)=>s(this,[e,...t],function*(e,t={},n){let a,c=(yield r.e(8716).then(r.t.bind(r,18716,19))).default("blitz:rpc");if(t.fromQueryHook||t.fromInvoke||console.warn("[Deprecation] Directly calling queries/mutations is deprecated in favor of invoke(queryFn, params)"),o.c)return Promise.resolve();c("Starting request for",d,"with",e,"and",t),a=t.alreadySerialized?e:(0,i.lK)(e),"GET"===u&&a.json&&(p.searchParams.set("params",(0,i.As)(a.json)),p.searchParams.set("meta",(0,i.As)(a.meta)));let{beforeHttpRequest:f,beforeHttpResponse:h}=globalThis.__BLITZ_MIDDLEWARE_HOOKS;return window.fetch(p,f({method:u,headers:{"Content-Type":"application/json"},credentials:"include",redirect:"follow",body:"POST"===u?JSON.stringify({params:a.json,meta:{params:a.meta}}):void 0,signal:n})).then(n=>s(this,null,function*(){var a,o;if(c("Received request for",l),(n=h(n)).ok){let s;try{s=yield n.json()}catch(t){let e=Error(`Failed to parse json from ${l}`);throw e.stack=null,e}if(s.error){let e=(0,i.iu)({json:s.error,meta:null==(a=s.meta)?void 0:a.error}),t=new CustomEvent("blitz:rpc-error",{detail:e});document.dispatchEvent(t);let r=e.message.match(/invalid.*prisma.*invocation/i);throw!r||"code"in e||((e=Error(r[0])).statusCode=500),e.stack=null,e}{let n=(0,i.iu)({json:s.result,meta:null==(o=s.meta)?void 0:o.result});if(!t.fromQueryHook){let{getQueryKeyFromUrlAndParams:t}=yield Promise.resolve().then(r.bind(r,76656)),a=t(l,e);globalThis.queryClient.setQueryData(a,n)}return n}}{let e=Error(n.statusText);throw e.statusCode=n.status,e.path=l,e.stack=null,e}}))});return f._isRpcClient=!0,f._resolverName=e,f._resolverType=t,f._routePath=d,f}},24969:(e,t,r)=>{"use strict";r.d(t,{UE:()=>j,ll:()=>R,rD:()=>D,__:()=>O,UU:()=>A,jD:()=>M,ER:()=>L,cY:()=>T,BN:()=>I,Ej:()=>P});var n=r(95175);function a(e,t,r){let a,{reference:i,floating:o}=e,s=(0,n.TV)(t),l=(0,n.Dz)(t),u=(0,n.sq)(l),c=(0,n.C0)(t),d="y"===s,p=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[u]/2-o[u]/2;switch(c){case"top":a={x:p,y:i.y-o.height};break;case"bottom":a={x:p,y:i.y+i.height};break;case"right":a={x:i.x+i.width,y:f};break;case"left":a={x:i.x-o.width,y:f};break;default:a={x:i.x,y:i.y}}switch((0,n.Sg)(t)){case"start":a[l]-=h*(r&&d?-1:1);break;case"end":a[l]+=h*(r&&d?-1:1)}return a}async function i(e,t){var r;void 0===t&&(t={});let{x:a,y:i,platform:o,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=(0,n._3)(t,e),g=(0,n.nI)(h),y=l[f?"floating"===p?"reference":"floating":p],m=(0,n.B1)(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(y)))||r?y:y.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),v="floating"===p?{x:a,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),_=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},w=(0,n.B1)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:u}):v);return{top:(m.top-w.top+g.top)/_.y,bottom:(w.bottom-m.bottom+g.bottom)/_.y,left:(m.left-w.left+g.left)/_.x,right:(w.right-m.right+g.right)/_.x}}let o=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:l}=r,u=l.detectOverflow?l:{...l,detectOverflow:i},c=await (null==l.isRTL?void 0:l.isRTL(t)),d=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:f}=a(d,n,c),h=n,g=0,y={};for(let r=0;r<s.length;r++){let i=s[r];if(!i)continue;let{name:m,fn:v}=i,{x:b,y:_,data:w,reset:C}=await v({x:p,y:f,initialPlacement:n,placement:h,strategy:o,middlewareData:y,rects:d,platform:u,elements:{reference:e,floating:t}});p=null!=b?b:p,f=null!=_?_:f,y[m]={...y[m],...w},C&&g<50&&(g++,"object"==typeof C&&(C.placement&&(h=C.placement),C.rects&&(d=!0===C.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:p,y:f}=a(d,h,c)),r=-1)}return{x:p,y:f,placement:h,strategy:o,middlewareData:y}};function s(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function l(e){return n.r_.some(t=>e[t]>=0)}let u=new Set(["left","top"]);async function c(e,t){let{placement:r,platform:a,elements:i}=e,o=await (null==a.isRTL?void 0:a.isRTL(i.floating)),s=(0,n.C0)(r),l=(0,n.Sg)(r),c="y"===(0,n.TV)(r),d=u.has(s)?-1:1,p=o&&c?-1:1,f=(0,n._3)(t,e),{mainAxis:h,crossAxis:g,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}
1:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof y&&(g="end"===l?-1*y:y),c?{x:g*p,y:h*d}:{x:h*d,y:g*p}}var d=r(78761);function p(e){let t=(0,d.L9)(e),r=parseFloat(t.width)||0,a=parseFloat(t.height)||0,i=(0,d.sb)(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:a,l=(0,n.LI)(r)!==o||(0,n.LI)(a)!==s;return l&&(r=o,a=s),{width:r,height:a,$:l}}function f(e){return(0,d.vq)(e)?e:e.contextElement}function h(e){let t=f(e);if(!(0,d.sb)(t))return(0,n.Jx)(1);let r=t.getBoundingClientRect(),{width:a,height:i,$:o}=p(t),s=(o?(0,n.LI)(r.width):r.width)/a,l=(o?(0,n.LI)(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let g=(0,n.Jx)(0);function y(e){let t=(0,d.zk)(e);return(0,d.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:g}function m(e,t,r,a){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),s=f(e),l=(0,n.Jx)(1);t&&(a?(0,d.vq)(a)&&(l=h(a)):l=h(e));let u=(void 0===(i=r)&&(i=!1),a&&(!i||a===(0,d.zk)(s))&&i)?y(s):(0,n.Jx)(0),c=(o.left+u.x)/l.x,p=(o.top+u.y)/l.y,g=o.width/l.x,m=o.height/l.y;if(s){let e=(0,d.zk)(s),t=a&&(0,d.vq)(a)?(0,d.zk)(a):a,r=e,n=(0,d._m)(r);for(;n&&a&&t!==r;){let e=h(n),t=n.getBoundingClientRect(),a=(0,d.L9)(n),i=t.left+(n.clientLeft+parseFloat(a.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(a.paddingTop))*e.y;c*=e.x,p*=e.y,g*=e.x,m*=e.y,c+=i,p+=o,r=(0,d.zk)(n),n=(0,d._m)(r)}}return(0,n.B1)({width:g,height:m,x:c,y:p})}function v(e,t){let r=(0,d.CP)(e).scrollLeft;return t?t.left+r:m((0,d.ep)(e)).left+r}function b(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-v(e,r),y:r.top+t.scrollTop}}function _(e,t,r){let a;if("viewport"===t)a=function(e,t){let r=(0,d.zk)(e),n=(0,d.ep)(e),a=r.visualViewport,i=n.clientWidth,o=n.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;let e=(0,d.Tc)();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}let u=v(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(n.clientWidth-t.clientWidth-a);o<=25&&(i-=o)}else u<=25&&(i+=u);return{width:i,height:o,x:s,y:l}}(e,r);else if("document"===t)a=function(e){let t=(0,d.ep)(e),r=(0,d.CP)(e),a=e.ownerDocument.body,i=(0,n.T9)(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=(0,n.T9)(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),s=-r.scrollLeft+v(e),l=-r.scrollTop;return"rtl"===(0,d.L9)(a).direction&&(s+=(0,n.T9)(t.clientWidth,a.clientWidth)-i),{width:i,height:o,x:s,y:l}}((0,d.ep)(e));else if((0,d.vq)(t))a=function(e,t){let r=m(e,!0,"fixed"===t),a=r.top+e.clientTop,i=r.left+e.clientLeft,o=(0,d.sb)(e)?h(e):(0,n.Jx)(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y;return{width:s,height:l,x:i*o.x,y:a*o.y}}(t,r);else{let r=y(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return(0,n.B1)(a)}function w(e){return"static"===(0,d.L9)(e).position}function C(e,t){if(!(0,d.sb)(e)||"fixed"===(0,d.L9)(e).position)return null;if(t)return t(e);let r=e.offsetParent;return(0,d.ep)(e)===r&&(r=r.ownerDocument.body),r}function S(e,t){let r=(0,d.zk)(e);if((0,d.Tf)(e))return r;if(!(0,d.sb)(e)){let t=(0,d.$4)(e);for(;t&&!(0,d.eu)(t);){if((0,d.vq)(t)&&!w(t))return t;t=(0,d.$4)(t)}return r}let n=C(e,t);for(;n&&(0,d.Lv)(n)&&w(n);)n=C(n,t);return n&&(0,d.eu)(n)&&w(n)&&!(0,d.sQ)(n)?r:n||(0,d.gJ)(e)||r}let k=async function(e){let t=this.getOffsetParent||S,r=this.getDimensions,a=await r(e.floating);return{reference:function(e,t,r){let a=(0,d.sb)(t),i=(0,d.ep)(t),o="fixed"===r,s=m(e,!0,o,t),l={scrollLeft:0,scrollTop:0},u=(0,n.Jx)(0);if(a||!a&&!o)if(("body"!==(0,d.mq)(t)||(0,d.ZU)(i))&&(l=(0,d.CP)(t)),a){let e=m(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=v(i));o&&!a&&i&&(u.x=v(i));let c=!i||a||o?(0,n.Jx)(0):b(i,l);return{x:s.left+l.scrollLeft-u.x-c.x,y:s.top+l.scrollTop-u.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}},E={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:a,strategy:i}=e,o="fixed"===i,s=(0,d.ep)(a),l=!!t&&(0,d.Tf)(t.floating);if(a===s||l&&o)return r;let u={scrollLeft:0,scrollTop:0},c=(0,n.Jx)(1),p=(0,n.Jx)(0),f=(0,d.sb)(a);
1if((f||!f&&!o)&&(("body"!==(0,d.mq)(a)||(0,d.ZU)(s))&&(u=(0,d.CP)(a)),f)){let e=m(a);c=h(a),p.x=e.x+a.clientLeft,p.y=e.y+a.clientTop}let g=!s||f||o?(0,n.Jx)(0):b(s,u);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+p.x+g.x,y:r.y*c.y-u.scrollTop*c.y+p.y+g.y}},getDocumentElement:d.ep,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:a,strategy:i}=e,o=[..."clippingAncestors"===r?(0,d.Tf)(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=(0,d.v9)(e,[],!1).filter(e=>(0,d.vq)(e)&&"body"!==(0,d.mq)(e)),a=null,i="fixed"===(0,d.L9)(e).position,o=i?(0,d.$4)(e):e;for(;(0,d.vq)(o)&&!(0,d.eu)(o);){let t=(0,d.L9)(o),r=(0,d.sQ)(o);r||"fixed"!==t.position||(a=null),(i?r||a:!(!r&&"static"===t.position&&a&&("absolute"===a.position||"fixed"===a.position)||(0,d.ZU)(o)&&!r&&function e(t,r){let n=(0,d.$4)(t);return!(n===r||!(0,d.vq)(n)||(0,d.eu)(n))&&("fixed"===(0,d.L9)(n).position||e(n,r))}(e,o)))?a=t:n=n.filter(e=>e!==o),o=(0,d.$4)(o)}return t.set(e,n),n}(t,this._c):[].concat(r),a],s=_(t,o[0],i),l=s.top,u=s.right,c=s.bottom,p=s.left;for(let e=1;e<o.length;e++){let r=_(t,o[e],i);l=(0,n.T9)(r.top,l),u=(0,n.jk)(r.right,u),c=(0,n.jk)(r.bottom,c),p=(0,n.T9)(r.left,p)}return{width:u-p,height:c-l,x:p,y:l}},getOffsetParent:S,getElementRects:k,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=p(e);return{width:t,height:r}},getScale:h,isElement:d.vq,isRTL:function(e){return"rtl"===(0,d.L9)(e).direction}};function x(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function R(e,t,r,a){let i;void 0===a&&(a={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=a,p=f(e),h=o||s?[...p?(0,d.v9)(p):[],...t?(0,d.v9)(t):[]]:[];h.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)});let g=p&&u?function(e,t){let r,a=null,i=(0,d.ep)(e);function o(){var e;clearTimeout(r),null==(e=a)||e.disconnect(),a=null}return!function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),o();let c=e.getBoundingClientRect(),{left:d,top:p,width:f,height:h}=c;if(l||t(),!f||!h)return;let g=(0,n.RI)(p),y=(0,n.RI)(i.clientWidth-(d+f)),m={rootMargin:-g+"px "+-y+"px "+-(0,n.RI)(i.clientHeight-(p+h))+"px "+-(0,n.RI)(d)+"px",threshold:(0,n.T9)(0,(0,n.jk)(1,u))||1},v=!0;function b(t){let n=t[0].intersectionRatio;if(n!==u){if(!v)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==n||x(c,e.getBoundingClientRect())||s(),v=!1}try{a=new IntersectionObserver(b,{...m,root:i.ownerDocument})}catch(e){a=new IntersectionObserver(b,m)}a.observe(e)}(!0),o}(p,r):null,y=-1,v=null;l&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===p&&v&&t&&(v.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),p&&!c&&v.observe(p),t&&v.observe(t));let b=c?m(e):null;return c&&function t(){let n=m(e);b&&!x(b,n)&&r(),b=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;h.forEach(e=>{o&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==g||g(),null==(e=v)||e.disconnect(),v=null,c&&cancelAnimationFrame(i)}}let O=i,T=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:a,y:i,placement:o,middlewareData:s}=t,l=await c(t,e);return o===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},I=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:a,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=(0,n._3)(e,t),d={x:r,y:a},p=await o.detectOverflow(t,c),f=(0,n.TV)((0,n.C0)(i)),h=(0,n.PG)(f),g=d[h],y=d[f];if(s){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",r=g+p[e],a=g-p[t];g=(0,n.qE)(r,g,a)}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=y+p[e],a=y-p[t];y=(0,n.qE)(r,y,a)}let m=u.fn({...t,[h]:g,[f]:y});return{...m,data:{x:m.x-r,y:m.y-a,enabled:{[h]:s,[f]:l}}}}}},A=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,a,i,o,s;let{placement:l,middlewareData:u,rects:c,initialPlacement:d,platform:p,elements:f}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:y,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,..._}=(0,n._3)(e,t);if(null!=(r=u.arrow)&&r.alignmentOffset)return{};let w=(0,n.C0)(l),C=(0,n.TV)(d),S=(0,n.C0)(d)===d,k=await (null==p.isRTL?void 0:p.isRTL(f.floating)),E=y||(S||!b?[(0,n.bV)(d)]:(0,n.WJ)(d)),x="none"!==v;!y&&x&&E.push(...(0,n.lP)(d,b,v,k));let R=[d,...E],O=await p.detectOverflow(t,_),T=[],I=(null==(a=u.flip)?void 0:a.overflows)||[];if(h&&T.push(O[w]),g){let e=(0,n.w7)(l,c,k);T.push(O[e[0]],O[e[1]])}if(I=[...I,{placement:l,overflows:T}],!T.every(e=>e<=0)){let e=((null==(i=u.flip)?void 0:i.index)||0)+1,t=R[e];if(t&&("alignment"!==g||C===(0,n.TV)(t)||I.every(e=>(0,n.TV)(e.placement)!==C||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let r=null==(o=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(m){case"bestFit":{let e=null==(s=I.filter(e=>{if(x){let t=(0,n.TV)(e.placement);return t===C||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(r=e);break}case"initialPlacement":r=d}if(l!==r)return{reset:{placement:r}}}return{}}}},P=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,a;let i,o,{placement:s,rects:l,platform:u,elements:c}=t,{apply:d=()=>{},...p}=(0,n._3)(e,t),f=await u.detectOverflow(t,p),h=(0,n.C0)(s),g=(0,n.Sg)(s),y="y"===(0,n.TV)(s),{width:m,height:v}=l.floating;"top"===h||"bottom"===h?(i=h,o=g===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(o=h,i="end"===g?"top":"bottom");let b=v-f.top-f.bottom,_=m-f.left-f.right,w=(0,n.jk)(v-f[i],b),C=(0,n.jk)(m-f[o],_),S=!t.middlewareData.shift,k=w,E=C;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(E=_),null!=(a=t.middlewareData.shift)&&a.enabled.y&&(k=b),S&&!g){let e=(0,n.T9)(f.left,0),t=(0,n.T9)(f.right,0),r=(0,n.T9)(f.top,0),a=(0,n.T9)(f.bottom,0);y?E=m-2*(0!==e||0!==t?e+t:(0,n.T9)(f.left,f.right)):k=v-2*(0!==r||0!==a?r+a:(0,n.T9)(f.top,f.bottom))}await d({...t,availableWidth:E,availableHeight:k});let x=await u.getDimensions(c.floating);return m!==x.width||v!==x.height?{reset:{rects:!0}}:{}}}},M=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:a}=t,{strategy:i="referenceHidden",...o}=(0,n._3)(e,t);switch(i){case"referenceHidden":{let e=s(await a.detectOverflow(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:l(e)}}}case"escaped":{let e=s(await a.detectOverflow(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:l(e)}}}default:return{}}}}},j=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:a,placement:i,rects:o,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=(0,n._3)(e,t)||{};if(null==c)return{};let p=(0,n.nI)(d),f={x:r,y:a},h=(0,n.Dz)(i),g=(0,n.sq)(h),y=await s.getDimensions(c),m="y"===h,v=m?"clientHeight":"clientWidth",b=o.reference[g]+o.reference[h]-f[h]-o.floating[g],_=f[h]-o.reference[h],w=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),C=w?w[v]:0;C&&await (null==s.isElement?void 0:s.isElement(w))||(C=l.floating[v]||o.floating[g]);let S=C/2-y[g]/2-1,k=(0,n.jk)(p[m?"top":"left"],S),E=(0,n.jk)(p[m?"bottom":"right"],S),x=C-y[g]-E,R=C/2-y[g]/2+(b/2-_/2),O=(0,n.qE)(k,R,x),T=!u.arrow&&null!=(0,n.Sg)(i)&&R!==O&&o.reference[g]/2-(R<k?k:E)-y[g]/2<0,I=T?R<k?R-k:R-x:0;return{[h]:f[h]+I,data:{[h]:O,centerOffset:R-O-I,...T&&{alignmentOffset:I}},reset:T}}}),L=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:a,placement:i,rects:o,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=(0,n._3)(e,t),p={x:r,y:a},f=(0,n.TV)(i),h=(0,n.PG)(f),g=p[h],y=p[f],m=(0,n._3)(l,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+v.mainAxis,r=o.reference[h]+o.reference[e]-v.mainAxis;g<t?g=t:g>r&&(g=r)}if(d){var b,_;let e="y"===h?"width":"height",t=u.has((0,n.C0)(i)),r=o.reference[f]-o.floating[e]+(t&&(null==(b=s.offset)?void 0:b[f])||0)+(t?0:v.crossAxis),a=o.reference[f]+o.reference[e]+(t?0:(null==(_=s.offset)?void 0:_[f])||0)-(t?v.crossAxis:0);y<r?y=r:y>a&&(y=a)}return{[h]:g,[f]:y}}}},D=(e,t,r)=>{let n=new Map,a={platform:E,...r},i={...a.platform,_c:n};return o(e,t,{...a,platform:i})}},27133:(e,t,r)=>{"use strict";e.exports=r(85596)},28438:e=>{"use strict";var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;e.exports=function(e,i){try{return function e(i,o){if(i===o)return!0;if(i&&o&&"object"==typeof i&&"object"==typeof o){var s,l,u,c=t(i),d=t(o);if(c&&d){if((l=i.length)!=o.length)return!1;for(s=l;0!=s--;)if(!e(i[s],o[s]))return!1;return!0}if(c!=d)return!1;var p=i instanceof Date,f=o instanceof Date;if(p!=f)return!1;if(p&&f)return i.getTime()==o.getTime();var h=i instanceof RegExp,g=o instanceof RegExp;if(h!=g)return!1;if(h&&g)return i.toString()==o.toString();var y=r(i);if((l=y.length)!==r(o).length)return!1;for(s=l;0!=s--;)if(!n.call(o,y[s]))return!1;if(a&&i instanceof Element&&o instanceof Element)return i===o;for(s=l;0!=s--;)if(("_owner"!==(u=y[s])||!i.$$typeof)&&!e(i[u],o[u]))return!1;return!0}return i!=i&&o!=o}(e,i)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-0x7ff5ffe4===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},29143:e=>{var t,r,n,a=e.exports={};function i(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}},29610:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case i:case s:case o:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case y:case g:case l:return e;default:return t}}case a:return t}}}function C(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=y,t.Memo=g,t.Portal=a,t.Profiler=s,t.StrictMode=o,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||w(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===o||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_||e.$$typeof===m)},t.typeOf=w},29733:(e,t,r)=>{"use strict";let n;r.d(t,{x6:()=>M,r9:()=>I,Bd:()=>L});var a=r(55729),i=r(67574),o=r.n(i),s=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function l(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(o()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("--\x3e");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var a=new RegExp(s),i=null;null!==(i=a.exec(e));)if(i[0].trim())if(i[1]){var l=i[1].trim(),u=[l,""];l.indexOf("=")>-1&&(u=l.split("=")),t.attrs[u[0]]=u[1],a.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var u=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,c=/^\s*$/,d=Object.create(null);let p={parse:function(e,t){t||(t={}),t.components||(t.components=d);var r,n=[],a=[],i=-1,o=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");n.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(u,function(s,u){if(o){if(s!=="</"+r.name+">")return;o=!1}var d,p="/"!==s.charAt(1),f=s.startsWith("\x3c!--"),h=u+s.length,g=e.charAt(h);if(f){var y=l(s);return i<0?n.push(y):(d=a[i]).children.push(y),n}if(p&&(i++,"tag"===(r=l(s)).type&&t.components[r.name]&&(r.type="component",o=!0),r.voidElement||o||!g||"<"===g||r.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===i&&n.push(r),(d=a[i-1])&&d.children.push(r),a[i]=r),(!p||r.voidElement)&&(i>-1&&(r.voidElement||r.name===s.slice(2,-1))&&(r=-1==--i?n:a[i]),!o&&"<"!==g&&g)){d=-1===i?
1n:a[i].children;var m=e.indexOf("<",h),v=e.slice(h,-1===m?void 0:m);c.test(v)&&(v=" "),(m>-1&&i+d.length>=0||" "!==v)&&d.push({type:"text",content:v})}}),n}},f=(e,t,r,n)=>{let a=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);b(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...a):console?.warn&&console.warn(...a)},h={},g=(e,t,r,n)=>{b(r)&&h[r]||(b(r)&&(h[r]=new Date),f(e,t,r,n))},y=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},m=(e,t,r)=>{e.loadNamespaces(t,y(e,r))},v=(e,t,r,n)=>{if(b(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return m(e,r,n);r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,y(e,n))},b=e=>"string"==typeof e,_=e=>"object"==typeof e&&null!==e,w=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,C={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},S=e=>C[e],k={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(w,S)},E=(e,t)=>{if(!e)return!1;let r=e.props?.children??e.children;return t?r.length>0:!!r},x=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?R(t):t},R=e=>Array.isArray(e)?e:[e],O=(e,t,r,n)=>{if(!e)return"";let i="",o=R(e),s=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return o.forEach((e,o)=>{if(b(e)){i+=`${e}`;return}if((0,a.isValidElement)(e)){let{props:a,type:l}=e,u=Object.keys(a).length,c=s.indexOf(l)>-1,d=a.children;if(!d&&c&&!u){i+=`<${l}/>`;return}if(!d&&(!c||u)||a.i18nIsDynamicList){i+=`<${o}></${o}>`;return}if(c&&1===u&&b(d)){i+=`<${l}>${d}</${l}>`;return}let p=O(d,t,r,n);i+=`<${o}>${p}</${o}>`;return}if(null===e)return void f(r,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:n});if(_(e)){let{format:t,...a}=e,o=Object.keys(a);if(1===o.length){let e=t?`${o[0]}, ${t}`:o[0];i+=`{{${e}}}`;return}f(r,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:n,child:e});return}f(r,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:n,child:e})}),i},T=(e,t,r)=>{let n=e.key||t,i=(0,a.cloneElement)(e,{key:n});return!i.props||!i.props.children||0>r.indexOf(`${t}/>`)&&0>r.indexOf(`${t} />`)?i:(0,a.createElement)(function(){return(0,a.createElement)(a.Fragment,null,i)},{key:n})},I={type:"3rdParty",init(e){((e={})=>{k={...k,...e}})(e.options.react),n=e}},A=(0,a.createContext)();class P{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function M({children:e,count:t,parent:r,i18nKey:i,context:o,tOptions:s={},values:l,defaults:u,components:c,ns:d,i18n:f,t:h,shouldUnescape:y,...m}){let{i18n:v,defaultNS:w}=(0,a.useContext)(A)||{},C=f||v||n,S=h||C?.t.bind(C);return function({children:e,count:t,parent:r,i18nKey:i,context:o,tOptions:s={},values:l,defaults:u,components:c,ns:d,i18n:f,t:h,shouldUnescape:y,...m}){let v=f||n;if(!v)return g(v,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:i}),e;let w=h||v.t.bind(v)||(e=>e),C={...k,...v.options?.react},S=d||w.ns||v.options?.defaultNS;S=b(S)?[S]:S||["translation"];let I=O(e,C,v,i),A=u||I||C.transEmptyNodeValue||i,{hashTransKey:P}=C,M=i||(P?P(I||A):I||A);v.options?.interpolation?.defaultVariables&&(l=l&&Object.keys(l).length>0?{...l,...v.options.interpolation.defaultVariables}:{...v.options.interpolation.defaultVariables});let j=!l&&(void 0===t||v.options?.interpolation?.alwaysFormat)&&e?{interpolation:{...s.interpolation,prefix:"#$?",suffix:"?$#"}}:s.interpolation,L={...s,context:o||s.context,count:t,...l,...j,defaultValue:A,ns:S}
1,D=M?w(M,L):A,N=((e,t,r,n)=>{if(!e)return null;if(Array.isArray(e))return e.map((e,r)=>T(e,r,t));return _(e)?((e,t)=>{let r={};return Object.keys(e).forEach(n=>{Object.assign(r,{[n]:T(e[n],n,t)})}),r})(e,t):(g(r,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:n}),null)})(c,D,v,i),F=N||e,z=null;!(!_(N)||Array.isArray(N))&&Object.keys(N).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0)&&(z=N,F=e);let $=((e,t,r,n,i,o,s)=>{if(""===r)return[];let l=i.transKeepBasicHtmlNodesFor||[],u=r&&new RegExp(l.map(e=>`<${e}`).join("|")).test(r);if(!e&&!t&&!u&&!s)return[r];let c=t??{},d=e=>{R(e).forEach(e=>{b(e)||(E(e)?d(x(e)):_(e)&&!(0,a.isValidElement)(e)&&Object.assign(c,e))})};d(e);let f=p.parse(`<0>${r}</0>`),h={...c,...o},g=(e,t,r)=>{let n,i=x(e),o=m(i,t.children,r);return Array.isArray(n=i)&&n.every(a.isValidElement)&&0===o.length||e.props?.i18nIsDynamicList?i:o},y=(e,t,r,n,i)=>{e.dummy?(e.children=t,r.push((0,a.cloneElement)(e,{key:n},i?void 0:t))):r.push(...a.Children.map([e],e=>{let r={...e.props};return delete r.i18nIsDynamicList,(0,a.createElement)(e.type,{...r,key:n,ref:e.props.ref??e.ref},i?null:t)}))},m=(e,r,o)=>{let c=R(e);return R(r).reduce((e,r,d)=>{let p=r.children?.[0]?.content&&n.services.interpolator.interpolate(r.children[0].content,h,n.language);if("tag"===r.type){let s=c[parseInt(r.name,10)];!s&&t&&(s=t[r.name]),1!==o.length||s||(s=o[0][r.name]),s||(s={});let f=0!==Object.keys(r.attrs).length?((e,t)=>{let r={...t};return r.props=Object.assign(e.props,t.props),r})({props:r.attrs},s):s,v=(0,a.isValidElement)(f),w=v&&E(r,!0)&&!r.voidElement,C=u&&_(f)&&f.dummy&&!v,S=_(t)&&Object.hasOwnProperty.call(t,r.name);if(b(f)){let t=n.services.interpolator.interpolate(f,h,n.language);e.push(t)}else if(E(f)||w){let t=g(f,r,o);y(f,t,e,d)}else if(C)y(f,m(c,r.children,o),e,d);else if(Number.isNaN(parseFloat(r.name)))if(S){let t=g(f,r,o);y(f,t,e,d,r.voidElement)}else if(i.transSupportBasicHtmlNodes&&l.indexOf(r.name)>-1)if(r.voidElement)e.push((0,a.createElement)(r.name,{key:`${r.name}-${d}`}));else{let t=m(c,r.children,o);e.push((0,a.createElement)(r.name,{key:`${r.name}-${d}`},t))}else if(r.voidElement)e.push(`<${r.name} />`);else{let t=m(c,r.children,o);e.push(`<${r.name}>${t}</${r.name}>`)}else if(_(f)&&!v){let t=r.children[0]?p:null;t&&e.push(t)}else y(f,p,e,d,1!==r.children.length||!p)}else if("text"===r.type){let t=i.transWrapTextNodes,o=s?i.unescape(n.services.interpolator.interpolate(r.content,h,n.language)):n.services.interpolator.interpolate(r.content,h,n.language);t?e.push((0,a.createElement)(t,{key:`${r.name}-${d}`},o)):e.push(o)}return e},[])};return x(m([{dummy:!0,children:e||[]}],f,R(e||[]))[0])})(F,z,D,v,C,L,y),U=r??C.defaultTransParent;return U?(0,a.createElement)(U,m,$):$}({children:e,count:t,parent:r,i18nKey:i,context:o,tOptions:s,values:l,defaults:u,components:c,ns:d||S?.ns||w||C?.options?.defaultNS,i18n:C,t:h,shouldUnescape:y,...m})}let j=(e,t,r,n)=>e.getFixedT(t,r,n),L=(e,t={})=>{let{i18n:r}=t,{i18n:i,defaultNS:o}=(0,a.useContext)(A)||{},s=r||i||n;
1if(s&&!s.reportNamespaces&&(s.reportNamespaces=new P),!s){g(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>b(t)?t:_(t)&&b(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react?.wait&&g(s,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let l={...k,...s.options.react,...t},{useSuspense:u,keyPrefix:c}=l,d=e||o||s.options?.defaultNS;d=b(d)?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces?.(d);let p=(s.isInitialized||s.initializedStoreOnce)&&d.every(e=>((e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(g(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,s,l)),f=((e,t,r,n)=>(0,a.useCallback)(j(e,t,r,n),[e,t,r,n]))(s,t.lng||null,"fallback"===l.nsMode?d:d[0],c),h=()=>f,y=()=>j(s,t.lng||null,"fallback"===l.nsMode?d:d[0],c),[w,C]=(0,a.useState)(h),S=d.join();t.lng&&(S=`${t.lng}${S}`);let E=((e,t)=>{let r=(0,a.useRef)();return(0,a.useEffect)(()=>{r.current=t?r.current:e},[e,t]),r.current})(S),x=(0,a.useRef)(!0);(0,a.useEffect)(()=>{let{bindI18n:e,bindI18nStore:r}=l;x.current=!0,p||u||(t.lng?v(s,t.lng,d,()=>{x.current&&C(y)}):m(s,d,()=>{x.current&&C(y)})),p&&E&&E!==S&&x.current&&C(y);let n=()=>{x.current&&C(y)};return e&&s?.on(e,n),r&&s?.store.on(r,n),()=>{x.current=!1,s&&e&&e?.split(" ").forEach(e=>s.off(e,n)),r&&s&&r.split(" ").forEach(e=>s.store.off(e,n))}},[s,S]),(0,a.useEffect)(()=>{x.current&&p&&C(h)},[s,c,p]);let R=[w,s,p];if(R.t=w,R.i18n=s,R.ready=p,p||!p&&!u)return R;throw new Promise(e=>{t.lng?v(s,t.lng,d,()=>e()):m(s,d,()=>e())})}},29810:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{UnrecognizedActionError:function(){return r},unstable_isUnrecognizedActionError:function(){return n}});class r extends Error{constructor(...e){super(...e),this.name="UnrecognizedActionError"}}function n(e){return!!(e&&"object"==typeof e&&e instanceof r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31179:(e,t,r)=>{"use strict";var n=r(16878),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?o:s[e.$$typeof]||a}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var a=f(r);a&&a!==h&&e(t,a,n)}var o=c(r);d&&(o=o.concat(d(r)));for(var s=l(t),g=l(r),y=0;y<o.length;++y){var m=o[y];if(!i[m]&&!(n&&n[m])&&!(g&&g[m])&&!(s&&s[m])){var v=p(r,m);try{u(t,m,v)}catch(e){}}}}return t}},32062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},34488:(e,t,r)=>{"use strict";r.d(t,{Hh:()=>o,in:()=>s,sx:()=>u});var n=e=>{window.__fathomClientQueue=window.__fathomClientQueue||[],window.__fathomClientQueue.push(e)},a=()=>{window.__fathomIsLoading=!1,window.__fathomClientQueue=window.__fathomClientQueue||[],window.__fathomClientQueue.forEach(e=>{switch(e.type){case"trackPageview":s(e.opts);return;case"trackGoal":l(e.code,e.cents);return;case"trackEvent":u(e.eventName,e.opts);return;case"enableTrackingForMe":d();return;case"blockTrackingForMe":c();return;case"setSite":p(e.id);return}}),window.__fathomClientQueue=[]},i=e=>{let t=/(https?)(?=:|\/|$)/;
1e.forEach(e=>{null!==t.exec(e)&&console.warn(`The include domain ${e} might fail to work as intended as it begins with a transfer protocol (http://, https://). Consider removing the protocol portion of the string.`)})},o=(e,t)=>{if(window.__fathomIsLoading||window.fathom)return;window.__fathomIsLoading=!0;let r=document.createElement("script"),n=document.getElementsByTagName("script")[0]||document.querySelector("body");r.id="fathom-script",r.async=!0,r.setAttribute("data-site",e),r.src=t&&t.url?t.url:"https://cdn.usefathom.com/script.js",t&&(void 0!==t.auto&&r.setAttribute("data-auto",`${t.auto}`),void 0!==t.honorDNT&&r.setAttribute("data-honor-dnt",`${t.honorDNT}`),void 0!==t.canonical&&r.setAttribute("data-canonical",`${t.canonical}`),t.includedDomains&&(i(t.includedDomains),r.setAttribute("data-included-domains",t.includedDomains.join(","))),t.excludedDomains&&(i(t.excludedDomains),r.setAttribute("data-excluded-domains",t.excludedDomains.join(","))),t.spa&&r.setAttribute("data-spa",t.spa)),r.onload=a,n.parentNode.insertBefore(r,n)},s=e=>{window.fathom?e?window.fathom.trackPageview(e):window.fathom.trackPageview():n({type:"trackPageview",opts:e})},l=(e,t)=>{window.fathom?window.fathom.trackGoal(e,t):n({type:"trackGoal",code:e,cents:t})},u=(e,t)=>{window.fathom?window.fathom.trackEvent(e,t):n({type:"trackEvent",eventName:e,opts:t})},c=()=>{window.fathom?window.fathom.blockTrackingForMe():n({type:"blockTrackingForMe"})},d=()=>{window.fathom?window.fathom.enableTrackingForMe():n({type:"enableTrackingForMe"})},p=e=>{window.fathom?window.fathom.setSite(e):n({type:"setSite",id:e})}},35718:()=>{},35924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=r(55729);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=i(e,n)),t&&(a.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36021:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(44295)}])},37839:(e,t,r)=>{var n=r(29143);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))}),t.splice(a,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e},t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
1CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(52776)(t);let{formatters:a}=e.exports;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},37975:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,q:()=>i});var n=r(55729),a=r(6029);function i(e,t){let r=n.createContext(t),i=e=>{let{children:t,...i}=e,o=n.useMemo(()=>i,Object.values(i));return(0,a.jsx)(r.Provider,{value:o,children:t})};return i.displayName=e+"Provider",[i,function(a){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error("`".concat(a,"` must be used within `").concat(e,"`"))}]}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let a=(null==r?void 0:r[e])||t;return n.useMemo(()=>({["__scope".concat(e)]:{...r,[e]:a}}),[r,a])}};return i.scopeName=e,[function(t,i){let o=n.createContext(i),s=r.length;r=[...r,i];let l=t=>{var r;let{scope:i,children:l,...u}=t,c=(null==i||null==(r=i[e])?void 0:r[s])||o,d=n.useMemo(()=>u,Object.values(u));return(0,a.jsx)(c.Provider,{value:d,children:l})};return l.displayName=t+"Provider",[l,function(r,a){var l;let u=(null==a||null==(l=a[e])?void 0:l[s])||o,c=n.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error("`".concat(r,"` must be used within `").concat(t,"`"))}]},function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let a=t[0];if(1===t.length)return a;let i=()=>{let e=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){let r=e.reduce((e,r)=>{let{useScope:n,scopeName:a}=r,i=n(t)["__scope".concat(a)];return{...e,...i}},{});return n.useMemo(()=>({["__scope".concat(a.scopeName)]:r}),[r])}};return i.scopeName=a.scopeName,i}(i,...t)]}},38161:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6029),a=r(95669),i=r.n(a),o=r(783);let s=e=>{let{title:t,children:r}=e;return(0,n.jsxs)(o.CL,{children:[(0,n.jsxs)(i(),{children:[(0,n.jsx)("title",{children:t||"TESA Login/Signup"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)("div",{className:"flex h-screen",children:(0,n.jsxs)("div",{className:"w-full max-w-xl border-r border-gray-400 bg-gray-100 p-10",children:[r,(0,n.jsx)("p",{className:"pl-2 pr-10 pt-5 text-sm text-gray-700",children:"Welcome! Log in to get started. If this is your first time, sign up to create a free account. Your account ensures that your work on the platform is securely stored for future access."})]})})]})}},38668:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,Ym:()=>l,lV:()=>u});var n=r(6029),a=r(55729),i=r(11351),o=r(19843),s=r(50195);let l="FORM_ERROR";function u(e){let{children:t,submitText:r,schema:l,initialValues:u,onCancel:c,variant:d="primary",size:p="md",onSubmit:f,...h}=e,[g,y]=(0,a.useState)(null);return(0,n.jsx)(i.l1,{enableReinitialize:!0,initialValues:null!=u?u:{},validate:(0,s.v)(l),onSubmit:async(e,t)=>{let{setErrors:r}=t,{FORM_ERROR:n,...a}=await f(e)||{};n&&y(n),Object.keys(a).length>0&&r(a)},children:e=>{let{handleSubmit:a,isSubmitting:i}=e;return(0,n.jsxs)("form",{onSubmit:a,...h,onChange:e=>{var t;y(null),null==(t=h.onChange)||t.call(h,e)},children:[t,g&&(0,n.jsx)("div",{role:"alert",className:"pt-2 text-sm text-red-700 opacity-70",children:g}),r&&(0,n.jsxs)("div",{className:"flex items-center gap-x-2 ".concat("destructive-icon"===d?"":"pt-3"),children:[(0,n.jsx)("button",{className:(0,o.EX)({variant:d,size:p}),type:"submit",disabled:i,children:r}),c?(0,n.jsx)("button",{onClick:c,className:(0,o.EX)({variant:"outline",size:p}),type:"button",children:"Cancel"}):null]})]})}})}let c=u},39247:(e,t,r)=>{"use strict";r.d(t,{FK:()=>s,Fc:()=>n,Nm:()=>a,b3:()=>c,x3:()=>u});let n=["en","es"],a="en",i=[{title:"data:data_glossary.tree_canopy_measures.neighborhood_tree_canopy_goal.title",content:"data:data_glossary.tree_canopy_measures.neighborhood_tree_canopy_goal.description"},{title:"data:data_glossary.tree_canopy_measures.tree_canopy_gap.title",content:"data:data_glossary.tree_canopy_measures.tree_canopy_gap.description"}],o={tabSlug:"data-glossary",accordionItems:[{title:"facets:tree_equity_score.name",type:"accordion",content:"",nestedAccordionContent:[{title:"facets:tree_equity_score.name",content:"data:data_glossary.tree_equity_score.description"},{title:"data:data_glossary.composite_scores.title",content:"data:data_glossary.composite_scores.description"}]},{title:"data:data_glossary.tree_canopy_measures.title",type:"accordion",content:"",nestedAccordionContent:[...i,{title:"data:data_glossary.tree_canopy_measures.tree_canopy_cover.title",content:"data:data_glossary.tree_canopy_measures.tree_canopy_cover.description"}]},{title:"data:data_glossary.places.title",type:"accordion",content:"",nestedAccordionContent:[{title:"data:data_glossary.places.census_block_group.title",content:"data:data_glossary.places.census_block_group.description"},{title:"data:data_glossary.places.locality.title",content:"data:data_glossary.places.locality.description"},{title:"data:data_glossary.places.county.title",content:"data:data_glossary.places.county.description"},{title:"data:data_glossary.places.urban_area.title",content:"data:data_glossary.places.urban_area.description"}]},{title:"data:data_glossary.demographic_measures.title",type:"accordion",content:"",nestedAccordionContent:[{title:"data:data_glossary.demographic_measures.children.title",content:"data:data_glossary.demographic_measures.children.description"},{title:"data:data_glossary.demographic_measures.dependency_ratio.title",content:"data:data_glossary.demographic_measures.dependency_ratio.description"},{title:"data:data_glossary.demographic_measures.linguistic_isolation.title",content:"data:data_glossary.demographic_measures.linguistic_isolation.description"},{title:"data:data_glossary.demographic_measures.people_of_color.title",content:"data:data_glossary.demographic_measures.people_of_color.description"},{title:"data:data_glossary.demographic_measures.people_in_poverty.title",content:"data:data_glossary.demographic_measures.people_in_poverty.description"},{title:"data:data_glossary.demographic_measures.seniors.title",content:"data:data_glossary.demographic_measures.seniors.description"},{title:"data:data_glossary.demographic_measures.unemployment_rate.title",content:"data:data_glossary.demographic_measures.unemployment_rate.description"}]},{title:"data:data_glossary.climate_public_health.title",type:"accordion",content:"",nestedAccordionContent:[{title:"data:data_glossary.climate_public_health.health_burden_index.title",content:"data:data_glossary.climate_public_health.health_burden_index.description"},{title:"data:data_glossary.climate_public_health.heat_extremity.title",content:"data:data_glossary.climate_public_health.heat_extremity.description"},{title:"data:data_glossary.climate_public_health.heat_disparity.title",content:"data:data_glossary.climate_public_health.heat_disparity.description"}]},{title:"data:data_glossary.tree_canopy_benefits.title",type:"accordion",content:void 0,nestedAccordionContent:[{title:"data:data_glossary.tree_canopy_benefits.ecosystem_services.title",content:"data:data_glossary.tree_canopy_benefits.ecosystem_services.description"},{title:"data:data_glossary.tree_canopy_benefits.annual_ecosystem_service_value.title",content:"data:data_glossary.tree_canopy_benefits.annual_ecosystem_service_value.description"},{title:"data:data_glossary.tree_canopy_benefits.carbon_sequestration.title",content:"data:data_glossary.tree_canopy_benefits.carbon_sequestration.description"},{title:"data:data_glossary.tree_canopy_benefits.nitrogen_dioxide.title",content:"data:data_glossary.tree_canopy_benefits.nitrogen_dioxide.description"},{title:"data:data_glossary.tree_canopy_benefits.sulfur_dioxide.title",content:"data:data_glossary.tree_canopy_benefits.sulfur_dioxide.description"},{title:"data:data_glossary.tree_canopy_benefits.pm25.title",content:"data:data_glossary.tree_canopy_benefits.pm25.description"},{title:"data:data_glossary.tree_canopy_benefits.pm10.title",content:"data:data_glossary.tree_canopy_benefits.pm10.description"},{title:"data:data_glossary.tree_canopy_benefits.ozone.title",content:"data:data_glossary.tree_canopy_benefits.ozone.description"},{title:"data:data_glossary.tree_canopy_benefits.stormwater_runoff_prevented.title",content:"data:data_glossary.tree_canopy_benefits.stormwater_runoff_prevented.description"},{title:"data:data_glossary.tree_canopy_benefits.rain_interception.title",content:"data:data_glossary.tree_canopy_benefits.rain_interception.description"},{title:"data:data_glossary.tree_canopy_benefits.jobs_supported.title",content:"data:data_glossary.tree_canopy_benefits.jobs_supported.description"}]},{title:"data:data_glossary.other.title",type:"accordion",content:"",nestedAccordionContent:[{title:"data:data_glossary.other.redlining.t
1itle",content:"data:data_glossary.other.redlining.description"},{title:"data:data_glossary.other.epa.title",content:"data:data_glossary.other.epa.description"},{title:"data:data_glossary.other.shade.title",content:"data:data_glossary.other.shade.description"}]}]},s={panels:[{tabSlug:"quick-start",accordionItems:[{title:"map:quick_start.navigate_the_map.title",type:"list",content:"map:quick_start.navigate_the_map.content",nestedAccordionContent:[]},{title:"map:quick_start.sidebar_data.title",type:"accordion",content:"map:quick_start.sidebar_data.content",nestedAccordionContent:[{title:"map:quick_start.sidebar_data.blockgroups.title",content:"map:quick_start.sidebar_data.blockgroups.content"},{title:"map:quick_start.sidebar_data.blockgroups_rank.title",content:"map:quick_start.sidebar_data.blockgroups_rank.content"},{title:"map:quick_start.sidebar_data.blockgroup_priority.title",content:"map:quick_start.sidebar_data.blockgroup_priority.content"},{title:"map:quick_start.sidebar_data.spider_chart.title",content:"map:quick_start.sidebar_data.spider_chart.content"},{title:"map:quick_start.sidebar_data.tree_canopy_goal.title",content:"map:quick_start.sidebar_data.tree_canopy_goal.content"}]},{title:"map:quick_start.map_layers.title",type:"list",content:"map:quick_start.map_layers.content",nestedAccordionContent:[]},{title:"map:quick_start.layers_filters.title",type:"list",content:"map:quick_start.layers_filters.content",nestedAccordionContent:[]},{title:"map:quick_start.location_insights.title",type:"accordion",content:"map:quick_start.location_insights.content",nestedAccordionContent:[{title:"map:quick_start.location_insights.access_location_insights.title",content:"map:quick_start.location_insights.access_location_insights.content"},{title:"map:quick_start.location_insights.overview.title",content:"map:quick_start.location_insights.overview.content"},{title:"map:quick_start.location_insights.planning.title",content:"map:quick_start.location_insights.planning.content"},{title:"map:quick_start.location_insights.canopy_benefits.title",content:"map:quick_start.location_insights.canopy_benefits.content"},{title:"map:quick_start.location_insights.planning_tools.title",content:"map:quick_start.location_insights.planning_tools.content"},{title:"map:quick_start.location_insights.bar_charts.title",content:"map:quick_start.location_insights.bar_charts.content"},{title:"map:quick_start.location_insights.block_chart.title",content:"map:quick_start.location_insights.block_chart.content"},{title:"map:quick_start.location_insights.compare_neighborhoods.title",content:"map:quick_start.location_insights.compare_neighborhoods.content"},{title:"map:quick_start.location_insights.share_location.title",content:"map:quick_start.location_insights.share_location.content"}]},{title:"map:quick_start.export_a_map.title",type:"list",content:"map:quick_start.export_a_map.content",nestedAccordionContent:[]}]},o],tabs:[{title:"map:quick_start.title",slug:"quick-start"},{title:"data:data_glossary.title",slug:"data-glossary"}]},l={title:"data:data_glossary.tree_canopy_measures.title",type:"accordion",content:"",nestedAccordionContent:[...i,{title:"data:data_glossary.tree_canopy_measures.tree_canopy_cover_tesas.title",content:"data:data_glossary.tree_canopy_measures.tree_canopy_cover_tesas.description"}]},u={tabSlug:"data-glossary",accordionItems:[...o.accordionItems.flatMap(e=>"data:data_glossary.tree_canopy_measures.title"!==e.title?[e]:[l]),{title:"data:data_glossary.tesa.title",type:"accordion",content:"",nestedAccordionContent:[{title:"data:data_glossary.tesa.austin.title",content:"data:data_glossary.tesa.austin.description"},{title:"data:data_glossary.tesa.boston.title",content:"data:data_glossary.tesa.boston.description"},{title:"data:data_glossary.tesa.columbus.title",content:"data:data_glossary.tesa.columbus.description"},{title:"data:data_glossary.tesa.dallas.title",content:"data:data_glossary.tesa.dallas.description"},{title:"data:data_glossary.tesa.dc.title",content:"data:data_glossary.tesa.dc.description"},{title:"data:data_glossary.tesa.detroit.title",content:"data:data_glossary.tesa.detroit.description"},{title:"data:data_glossary.tesa.indianapolis.title",content:"data:data_glossary.tesa.indianapolis.description"},{title:"data:data_glossary.tesa.lincoln.title",content:"data:data_glossary.tesa.lincoln.description"},{title:"data:data_glossary.tesa.maricopa.title",content:"data:data_glossary.tesa.maricopa.description"},{title:"data:data_glossary.tesa.rhode_island.title",content:"data:data_glossary.tesa.rhode_island.description"},{title:"data:data_glossary.tesa.richmond.title",content:"data:data_glossary.tesa.richmond.description"},{title:"data:data_glossary.tesa.toronto.title",content:"data:data_glossary.tesa.toronto.description"},{title:"data:data_glossary.tesa.washington.title",content:"data:data_glossary.tesa.washington.description"}]}]},c={tabSlug:"faqs",accordionItems:[{title:"data:faqs.national.title",type:"accordion",content:"",nestedAccordionContent:[{title:"data:faqs.national.changed_score.t
1itle",content:"data:faqs.national.changed_score.description"},{title:"data:faqs.national.changed_blockgroup.title",content:"data:faqs.national.changed_blockgroup.description"},{title:"data:faqs.national.tes_importance.title",content:"data:faqs.national.tes_importance.description"},{title:"data:faqs.national.tes_origins.title",content:"data:faqs.national.tes_origins.description"},{title:"data:faqs.national.tes_values.title",content:"data:faqs.national.tes_values.description"},{title:"data:faqs.national.data_availability.title",content:"data:faqs.national.data_availability.description"},{title:"data:faqs.national.data_procedence.title",content:"data:faqs.national.data_procedence.description"},{title:"data:faqs.national.canopy_goal.title",content:"data:faqs.national.canopy_goal.description"},{title:"data:faqs.national.data_updates.title",content:"data:faqs.national.data_updates.description"},{title:"data:faqs.national.plantable_area.title",content:"data:faqs.national.plantable_area.description"},{title:"data:faqs.national.gentrification.title",content:"data:faqs.national.gentrification.description"},{title:"data:faqs.national.tress_species.title",content:"data:faqs.national.tress_species.description"},{title:"data:faqs.national.national_local.title",content:"data:faqs.national.national_local.description"},{title:"data:faqs.national.get_tesa.title",content:"data:faqs.national.get_tesa.description"}]},{title:"data:faqs.local.title",type:"accordion",content:"",nestedAccordionContent:[{title:"data:faqs.local.tesa_usage.title",content:"data:faqs.local.tesa_usage.description"},{title:"data:faqs.local.tailored_tesa.title",content:"data:faqs.local.tailored_tesa.description"},{title:"data:faqs.local.planting_limits.title",content:"data:faqs.local.planting_limits.description"},{title:"data:faqs.local.layers.title",content:"data:faqs.local.layers.description"},{title:"data:faqs.local.data_updates.title",content:"data:faqs.local.data_updates.description"}]}]}},42443:()=>{},43092:(e,t,r)=>{"use strict";r.d(t,{$R:()=>o,AI:()=>n,Gq:()=>a,HZ:()=>i});let n=e=>247.105*e,a=e=>e/247.105,i=e=>1e6*e,o=e=>e/1e6},44295:(e,t,r)=>{"use strict";let n,a,i,o,s,l,u,c,d,p,f,h,g,y,m,v,b,_,w,C,S,k,E,x,R,O,T;r.r(t),r.d(t,{default:()=>cB});var I,A,P,M,j=r(6029),L=r(821),D=r(95787),N=r(742),F=r(12549),z=r(80794);F.$W({localeError:(()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let e=r[n.expected]??n.expected,t=z.GW(n.input),a=r[t]??t;return`Invalid input: expected ${e}, received ${a}`}case"invalid_value":if(1===n.values.length)return`Invalid input: expected ${z.B7(n.values[0])}`;return`Invalid option: expected one of ${z.jw(n.values,"|")}`;case"too_big":{let t=n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Too big: expected ${n.origin??"value"} to have ${t}${n.maximum.toString()} ${r.unit??"elements"}`;return`Too big: expected ${n.origin??"value"} to be ${t}${n.maximum.toString()}`}case"too_small":{let t=n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Too small: expected ${n.origin} to have ${t}${n.minimum.toString()} ${r.unit}`;return`Too small: expected ${n.origin} to be ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Invalid string: must start with "${n.prefix}"`;if("ends_with"===n.format)return`Invalid string: must end with "${n.suffix}"`;if("includes"===n.format)return`Invalid string: must include "${n.includes}"`;if("regex"===n.format)return`Invalid string: must match pattern ${n.pattern}`;return`Invalid ${t[n.format]??n.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>
11?"s":""}: ${z.jw(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":if(n.options&&Array.isArray(n.options)&&n.options.length>0){let e=n.options.map(e=>`'${e}'`).join(" | ");return`Invalid discriminator value. Expected ${e}`}return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}})()});let{withBlitz:$}=(0,D.s)({plugins:[(0,L.A)({cookiePrefix:"tes-us-app"}),(0,N.yo)({})]});var U=r(46077),B=r(50195),q=r(55729),H=r(98080);r(35718),r(42443);var V=r(38161),W=r(67549),Z=r(95776);let K="10.53.1",G=globalThis;function J(){return Q(G),G}function Q(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||K,t[K]=t[K]||{}}function Y(e,t,r=G){let n=r.__SENTRY__=r.__SENTRY__||{},a=n[K]=n[K]||{};return a[e]||(a[e]=t())}let X=Object.prototype.toString;function ee(e){switch(X.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ec(e,Error)}}function et(e,t){return X.call(e)===`[object ${t}]`}function er(e){return et(e,"ErrorEvent")}function en(e){return et(e,"DOMError")}function ea(e){return et(e,"String")}function ei(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function eo(e){return null===e||ei(e)||"object"!=typeof e&&"function"!=typeof e}function es(e){return et(e,"Object")}function el(e){return"undefined"!=typeof Event&&ec(e,Event)}function eu(e){return!!(e?.then&&"function"==typeof e.then)}function ec(e,t){try{return e instanceof t}catch{return!1}}function ed(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue||e.__v_isVNode))}function ep(e){return"undefined"!=typeof Request&&ec(e,Request)}function ef(e,t={}){if(!e)return"<unknown>";try{let r,n=e,a=[],i=0,o=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<5&&(r=function(e,t){let r=[];if(!e?.tagName)return"";if(G.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());let n=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(n?.length)n.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&r.push(`#${e.id}`);let t=e.className;if(t&&ea(t))for(let e of t.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(n,s),"html"!==r&&(!(i>1)||!(o+3*a.length+r.length>=l)));)a.push(r),o+=r.length,n=n.parentNode;return a.reverse().join(" > ")}catch{return"<unknown>"}}function eh(){try{return G.document.location.href}catch{return""}}function eg(e,t=5){if(!G.HTMLElement)return null;let r=e;for(let e=0;e<t&&r;e++){if(r instanceof HTMLElement){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode}return null}let ey=["debug","info","warn","error","log","assert","trace"],em={};function ev(e){if(!("console"in G))return e();let t=G.console,r={},n=Object.keys(em);n.forEach(e=>{let n=em[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function eb(){return{enabled:!1}}let e_={enable:function(){eb().enabled=!0},disable:function(){eb().enabled=!1},isEnabled:function(){return eb().enabled},log:function(...e){[...e]},warn:function(...e){[...e]},error:function(...e){[...e]}};function ew(e,t,r){if(!(t in e))return;let n=e[t];if("function"!=typeof n)return;let a=r(n);"function"==typeof a&&eS(a,n);try{e[t]=a}catch{}}function eC(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{}}function eS(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,eC(e,"__sentry_original__",t)}catch{}}function ek(e){return e.__sentry_original__}function eE(e){if(ee(e))return{message:e.message,name:e.name,stack:e.stack,...eR(e)};if(!el(e))return e;{let t={type:e.type,target:ex(e.target),currentTarget:ex(e.currentTarget),...eR(e)};return"undefined"!=typeof CustomEvent&&ec(e,CustomEvent)&&(t.detail=e.detail),t}}function ex(e){try{return"undefined"!=typeof Element&&ec(e,Element)?ef(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function eR(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}function eO(e){if(void 0!==n)return n?n(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return t in G&&"function"==typeof G[t]?(n=G[t])(e):(n=null,e())}function eT(){return eO(()=>Math.random())}function eI(){return eO(()=>Date.now())}function eA(e=G.crypto||G.msCrypto){try{if(e?.randomUUID)return eO(()=>e.randomUUID()).replace(/-/g,"")}catch{}return a||(a="10000000100040008000100000000000"),a.replace(/[018]/g,e=>
1(e^(15&16*eT())>>e/4).toString(16))}function eP(e){return e.exception?.values?.[0]}function eM(e,t,r){let n=e.exception=e.exception||{},a=n.values=n.values||[],i=a[0]=a[0]||{};i.value||(i.value=t||""),i.type||(i.type=r||"Error")}function ej(e,t){let r=eP(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n?.data,...t.data};r.mechanism.data=e}}function eL(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{eC(e,"__sentry_captured__",!0)}catch{}return!1}function eD(){return eI()/1e3}function eN(){return(i??(i=function(){let{performance:e}=G;if(!e?.now||!e.timeOrigin)return eD;let t=e.timeOrigin;return()=>(t+eO(()=>e.now()))/1e3}()))()}let eF=null;function ez(){return null===eF&&(eF=function(){let{performance:e}=G;if(!e?.now)return;let t=eO(()=>e.now()),r=eI(),n=e.timeOrigin;if("number"==typeof n&&3e5>Math.abs(n+t-r))return n;let a=e.timing?.navigationStart;return"number"==typeof a&&3e5>Math.abs(a+t-r)?a:r-t}()),eF}function e$(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||eN(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:eA()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function eU(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;let n={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=eU(n[e],t[e],r-1));return n}function eB(){return eA().substring(16)}let eq="_sentrySpan";function eH(e,t){t?eC(e,eq,t):delete e[eq]}let eV=/\(error: (.*)\)/,eW=/captureMessage|captureException/;function eZ(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,n=0)=>{let a=[],i=e.split("\n");for(let e=r;e<i.length;e++){let r=i[e];r.length>1024&&(r=r.slice(0,1024));let o=eV.test(r)?r.replace(eV,"$1"):r;if(!o.includes("Error: ")){for(let e of t){let t=e(o);if(t){a.push(t);break}}if(a.length>=50+n)break}}var o=a.slice(n);if(!o.length)return[];let s=Array.from(o);return/sentryWrapped/.test(eK(s).function||"")&&s.pop(),s.reverse(),eW.test(eK(s).function||"")&&(s.pop(),eW.test(eK(s).function||"")&&s.pop()),s.slice(0,50).map(e=>({...e,filename:e.filename||eK(s).filename,function:e.function||"?"}))}}function eK(e){return e[e.length-1]||{}}let eG="<anonymous>";function eJ(e){try{if(!e||"function"!=typeof e)return eG;return e.name||eG}catch{return eG}}function eQ(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}function eY(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function eX(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function e0(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let n=e[t];try{ed(n)?r.push(eY(n)):r.push(String(n))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function e1(e,t,r=!1){return!!ea(e)&&(et(t,"RegExp")?t.test(e):ea(t)?r?e===t:e.includes(t):"function"==typeof t&&t(e))}function e2(e,t=[],r=!1){for(let n of t)if(e1(e,n,r))return!0;return!1}class e5{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:eA(),sampleRand:eT()}}clone(){let e=new e5;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,eH(e,this[eq]),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&e$(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,attributes:n,extra:a,user:i,contexts:o,level:s,fingerprint:l=[],propagationContext:u,conversationId:c}=(t instanceof e5?t.getScopeData():es(t)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...n},this._extra={...this._extra,...a},this._contexts={...this._contexts,...o},i&&Object.keys(i).length&&(this._user=i),s&&(this._level=s),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),c&&(this._conversationId=c),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,eH(this,void 0),this._attachments=[],this.setPropagationContext({traceId:eA(),sampleRand:eT()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:eD(),...e,message:e.message?eX(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[eq],conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=eU(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t?.event_id||eA();if(!this._client)return r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r?.event_id||eA();if(!this._client)return n;let a=r?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:n},this),n}captureEvent(e,t){let r=e.event_id||t?.event_id||eA();return this._client&&this._client.captureEvent(e,{...t,event_id:r},this),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h(e=>{e(this)}),this._notifyingListeners=!1)}}let e3=e=>e instanceof Promise&&!e[e4],e4=Symbol("chained PromiseLike");class e7{constructor(e,t){let r,n;r=e||new e5,n=t||new e5,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t,r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return eu(t)?((e,t,r)=>{let n=e.then(e=>(t(e),e),e=>{throw r(e),e});return e3(n)&&e3(e)?n:((e,t)=>{if(!t)return e;let r=!1;for(let n in e){if(n in t)continue;r=!0;let a=e[n];"function"==typeof a?Object.defineProperty(t,n,{value:(...t)=>a.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[n]=a}return r&&Object.assign(t,{[e4]:!0}),t})(e,n)})(t,()=>this._popScope(),()=>this._popScope()):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function e9(){let e=Q(J());return e.stack=e.stack||new e7(Y("defaultCurrentScope",()=>new e5),Y("defaultIsolationScope",()=>new e5))}function e6(e){return e9().withScope(e)}function e8(e,t){let r=e9();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function te(e){return e9().withScope(()=>e(e9().getIsolationScope()))}function tt(e){let t=Q(e);return t.acs?t.acs:{withIsolationScope:te,withScope:e6,withSetScope:e8,withSetIsolationScope:(e,t)=>te(t),getCurrentScope:()=>e9().getScope(),getIsolationScope:()=>e9().getIsolationScope()}}function tr(){return tt(J()).getCurrentScope()}function tn(){return tt(J()).getIsolationScope()}function ta(){return Y("globalScope",()=>new e5)}function ti(...e){let t=tt(J());if(2===e.length){let[r,n]=e;return r?t.withSetScope(r,n):t.withScope(n)}return t.withScope(e[0])}function to(){return tr().getClient()}let ts="production";function tl(e){return new tc(t=>{t(e)})}function tu(e){return new tc((t,r)=>{r(e)})}class tc{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new tc((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new tc((t,r)=>{let n,a;return this.then(t=>{a=!1,n=t,e&&e()},t=>{a=!0,n=t,e&&e()}).then(()=>{if(a)return void r(n);t(n)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if(eu(t))return void t.then(r,n);this._state=e,this._value=t,this._executeHandlers()}},r=e=>{t(1,e)},n=e=>{t(2,e)};try{e(r,n)}catch(e){n(e)}}}function td(e){let t=G._sentryDebugIds,r=G._debugIds;if(!t&&!r)return{};let n=t?Object.keys(t):[],a=r?Object.keys(r):[];if(c&&n.length===l&&a.length===u)return c;l=n.length,u=a.length,c={},s||(s={});let i=(t,r)=>{for(let n of t){let t=r[n],a=s?.[n];if(a&&c&&t)c[a[0]]=t,s&&(s[n]=[a[0],t]);else if(t){let r=e(n);for(let e=r.length-1;e>=0;e--){let a=r[e],i=a?.filename;if(i&&c&&s){c[i]=t,s[n]=[i,t];break}}}}};return t&&i(n,t),r&&i(a,r),c}let tp=Symbol.for("sentry.skipNormalization"),tf=Symbol.for("sentry.overrideNormalizationDepth");function th(e,t=100,r=Infinity){try{return function e(t,r,n=Infinity,a=Infinity,i=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[o,s]=i;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let l=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(ed(t))return eY(t);if(es(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${eJ(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!l.startsWith("[object "))return l;if(r[tp])return r;let u=function(e){let t=e[tf];return"number"==typeof t?t:void 0}(r),c=void 0!==u?u:n;if(0===c)return l.replace("object ","");if(o(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,c-1,a,i)}catch{}let d=Array.isArray(r)?[]:{},p=0,f=eE(r);for(let t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(p>=a){d[t]="[MaxProperties ~]";break}let r=f[t];d[t]=e(t,r,c-1,a,i),p++}return s(r),d}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}let tg="sentry.source",ty="sentry.sample_rate",tm="sentry.previous_trace_sample_rate",tv="sentry.op",tb="sentry.origin",t_="sentry.idle_span_finish_reason",tw="sentry.measurement_unit",tC="sentry.measurement_value",tS="sentry.custom_span_name",tk="sentry.profile_id",tE="sentry.exclusive_time",tx="sentry-";function tR(e){let t=function(e){if(e&&(ea(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>
1(Object.entries(tO(t)).forEach(([t,r])=>{e[t]=r}),e),{}):tO(e)}(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.startsWith(tx)&&(e[t.slice(tx.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}function tO(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}let tT=/^o(\d+)\./,tI=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function tA(e,t=!1){let{host:r,path:n,pass:a,port:i,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&a?`:${a}`:""}@${r}${i?`:${i}`:""}/${n?`${n}/`:n}${o}`}function tP(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function tM(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||to()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function tj(e,t=!1){let r={};for(let[n,a]of Object.entries(e??{})){let e=function(e,t){let{value:r,unit:n}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},a=function(e){let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(r),i=n&&"string"==typeof n?{unit:n}:{};if(a)return{...a,...i};if(!t||"skip-undefined"===t&&void 0===r)return;let o="";try{o=JSON.stringify(r)??""}catch{}return{value:o,type:"string",...i}}(a,t);e&&(r[n]=e)}return r}function tL(e,t){e.setAttribute("http.response.status_code",t);let r=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"}}return{code:2,message:"internal_error"}}(t);"unknown_error"!==r.message&&e.setStatus(r)}let tD="_sentryScope",tN="_sentryIsolationScope";function tF(e){return{scope:e[tD],isolationScope:function(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}(e[tN])}}function tz(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}let t$=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function tU(e=eA(),t=eB(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function tB(e=eA(),t=eB(),r){return`00-${e}-${t}-${r?"01":"00"}`}let tq=!1;function tH(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:a})=>({span_id:e,trace_id:t,sampled:1===r,attributes:a,...n})):void 0}function tV(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:r},attributes:n})=>({span_id:e,trace_id:t,sampled:1===r,attributes:n})):void 0}function tW(e){return"number"==typeof e?tZ(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?tZ(e.getTime()):eN()}function tZ(e){return e>0x2540be3ff?e/1e3:e}function tK(e){if(tY(e))return e.getSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(tQ(e)){let{attributes:n,startTime:a,name:i,endTime:o,status:s,links:l}=e;return{span_id:t,trace_id:r,data:n,description:i,parent_span_id:tJ(e),start_timestamp:tW(a),timestamp:tW(o)||void 0,status:t0(s),op:n[tv],origin:n[tb],links:tH(l)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function tG(e){if(tY(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(tQ(e)){let{attributes:n,startTime:a,name:i,endTime:o,status:s,links:l}=e;return{name:i,span_id:t,trace_id:r,parent_span_id:tJ(e),start_timestamp:tW(a),end_timestamp:tW(o),is_segment:e===t9(e),status:t1(s),attributes:n,links:tV(l)}}return{span_id:t,trace_id:r,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===t9(e)}}function tJ(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function tQ(e){return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function tY(e){return"function"==typeof e.getSpanJSON}function tX(e){let{traceFlags:t}=e.spanContext();return 1===t}function t0(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}function t1(e){return e&&1!==e.code&&0!==e.code&&"cancelled"!==e.message?"error":"ok"}let t2="_sentryChildSpans",t5="_sentryRootSpan";function t3(e,t){let r=e[t5]||e;eC(t,t5,r),e[t2]?e[t2].add(t):eC(e,t2,new Set([t]))}function t4(e){let t=new Set;return!function e(r){if(!t.has(r)&&tX(r))for(let n of(t.add(r),r[t2]?Array.from(r[t2]):[]))e(n)}(e),Array.from(t)}let t7=t9;function t9(e){return e[t5]||e}function t6(){let e=tt(J());return e.getActiveSpan?e.getActiveSpan():tr()[eq]}function t8(){tq||(ev(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),tq=!0)}let re="_frozenDsc";function rt(e,t){let r=t.getOptions(),{publicKey:n}=t.getDsn()||{},a={environment:r.environment||ts,release:r.release,public_key:n,trace_id:e,org_id:function(e){let t,r=e.getOptions(),{host:n}=e.getDsn()||{};return r.orgId?t=String(r.orgId):n&&(t=function(e){let t=e.match(tT);return t?.[1]}(n)),t}(t)};return t.emit("createDsc",a),a}function rr(e,t){let r=t.getPropagationContext();return r.dsc||rt(r.traceId,e)}function rn(e){let t=to();if(!t)return{};let r=t7(e),n=tK(r),a=n.data,i=r.spanContext().traceState,o=i?.get("sentry.sample_rate")??a[ty]??a[tm];function s(e){return("number"==typeof o||"string"==typeof o)&&(e.sample_rate=`${o}`),e}let l=r[re];if(l)return s(l);
1let u=i?.get("sentry.dsc"),c=u&&tR(u);if(c)return s(c);let d=rt(e.spanContext().traceId,t),p=a[tg]??a["sentry.span.source"],f=n.description;return"url"!==p&&f&&(d.transaction=f),tM()&&(d.sampled=String(tX(r)),d.sample_rand=i?.get("sentry.sample_rand")??tF(r).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit("createDsc",d,r),d}function ra(e,t){let{extra:r,tags:n,attributes:a,user:i,contexts:o,level:s,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:c,eventProcessors:d,attachments:p,propagationContext:f,transactionName:h,span:g}=t;ri(e,"extra",r),ri(e,"tags",n),ri(e,"attributes",a),ri(e,"user",i),ri(e,"contexts",o),e.sdkProcessingMetadata=eU(e.sdkProcessingMetadata,l,2),s&&(e.level=s),h&&(e.transactionName=h),g&&(e.span=g),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...f}}function ri(e,t,r){e[t]=eU(e[t],r,1)}function ro(e,t){let r=ta().getScopeData();return e&&ra(r,e.getScopeData()),t&&ra(r,t.getScopeData()),r}function rs(e,t,r,n,a,i){var o,s,l,u,c,d;let{normalizeDepth:p=3,normalizeMaxBreadth:f=1e3}=e,h={...t,event_id:t.event_id||r.event_id||eA(),timestamp:t.timestamp||eD()},g=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:a,maxValueLength:i}=t;e.environment=e.environment||r||ts,!e.release&&n&&(e.release=n),!e.dist&&a&&(e.dist=a);let o=e.request;o?.url&&i&&(o.url=eX(o.url,i)),i&&e.exception?.values?.forEach(e=>{e.value&&(e.value=eX(e.value,i))})})(h,e),o=h,(s=g).length>0&&(o.sdk=o.sdk||{},o.sdk.integrations=[...o.sdk.integrations||[],...s]),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let r=td(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}(h,e.stackParser);let y=function(e,t){if(!t)return e;let r=e?e.clone():new e5;return r.update(t),r}(n,r.captureContext);r.mechanism&&ej(h,r.mechanism);let m=a?a.getEventProcessors():[],v=ro(i,y),b=[...r.attachments||[],...v.attachments];b.length&&(r.attachments=b);let{fingerprint:_,span:w,breadcrumbs:C,sdkProcessingMetadata:S}=v;(function(e,t){let{extra:r,tags:n,user:a,contexts:i,level:o,transactionName:s}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(a).length&&(e.user={...a,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),o&&(e.level=o),s&&"transaction"!==e.type&&(e.transaction=s)})(h,v),w&&function(e,t){e.contexts={trace:function(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),a=n?t:tK(e).parent_span_id,i=tF(e).scope;return{parent_span_id:a,span_id:n?i?.getPropagationContext().propagationSpanId||eB():t,trace_id:r}}(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:rn(t),...e.sdkProcessingMetadata};let r=tK(t7(t)).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(h,w),l=h,u=_,l.fingerprint=l.fingerprint?Array.isArray(l.fingerprint)?l.fingerprint:[l.fingerprint]:[],u&&(l.fingerprint=l.fingerprint.concat(u)),l.fingerprint.length||delete l.fingerprint,function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(h,C),c=h,d=S,c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...d};let k=[...m,...v.eventProcessors];return(r.data&&!0===r.data.__sentry__?tl(h):function(e,t,r,n=0){try{let a=function e(t,r,n,a){let i=n[a];if(!t||!i)return t;let o=i({...t},r);return eu(o)?o.then(t=>e(t,r,n,a+1)):e(o,r,n,a+1)}(t,r,e,n);return eu(a)?a:tl(a)}catch(e){return tu(e)}}(k,h,r)).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof p&&p>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:th(e.data,t,r)}}))},...e.user&&{user:th(e.user,t,r)},...e.contexts&&{contexts:th(e.contexts,t,r)},...e.extra&&{extra:th(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=th(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:th(e.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=th(e.contexts.flags,3,r)),n}(e,p,f):e)}let rl=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function ru(e,t){return tr().captureEvent(e,t)}function rc(e,t){tn().setContext(e,t)}function rd(e){let t=tn(),{user:r}=ro(t,tr()),{userAgent:n}=G.navigator||{},a=function(e){let t=eN(),r={sid:eA(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}};return e&&e$(r,e),r}({user:r,...n&&{userAgent:n},...e}),i=t.getSession();return i?.status==="ok"&&e$(i,{status:"exited"}),rp(),t.setSession(a),a}function rp(){let e,t=tn(),r=tr().getSession()||t.getSession();r&&(e={},"ok"===r.status&&(e={status:"exited"}),e$(r,e)),rf(),t.setSession()}function rf(){let e=tn(),t=to(),r=e.getSession();r&&t&&t.captureSession(r)}function rh(e=!1){if(e)return void rp();rf()}function rg(e,t){let r=to(),n=tn();if(!r)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:i=100}=r.getOptions();if(i<=0)return;let o={timestamp:eD(),...e},s=a?ev(()=>a(o,t)):o;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,i))}function ry(e){return"isRelative"in e}function rm(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function rv(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function rb(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",a=e.includes(";base64,"),i=e.indexOf(","),o="";if(t&&-1!==i){let t=e.slice(i+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${a?",base64":""}${o?`,${o}`:""}`}return e}function r_(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function rw(e,t=[]){return[e,t]}function rC(e,t){let[r,n]=e;return[r,[...n,t]]}function rS(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function rk(e){let t=Q(G);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let rE={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function rx(e){return e in rE?rE[e]:e}function rR(e){if(!e?.sdk)return;
1let{name:t,version:r}=e.sdk;return{name:t,version:r}}function rO(e,t,r,n){let a=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:tA(n)},...a&&{trace:a}}}function rT(e,t,r=eI()){return(e[t]||e.all||0)>r}function rI(e,{statusCode:t,headers:r},n=eI()){let a={...e},i=r?.["x-sentry-rate-limits"],o=r?.["retry-after"];if(i)for(let e of i.trim().split(",")){let[t,r,,,i]=e.split(":",5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!i||i.split(";").includes("custom"))&&(a[e]=n+s):a[e]=n+s;else a.all=n+s}else o?a.all=n+function(e,t=eI()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(o,n):429===t&&(a.all=n+6e4);return a}var rA=r(29143);function rP(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==rA?rA:0))||function(){let e=G.process;return e?.type==="renderer"}())}function rM(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}let rj={};function rL(e){let t=rj[e];if(t)return t;let r=G[e];if(rM(r))return rj[e]=r.bind(G);let n=G.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let a=t.contentWindow;a?.[e]&&(r=a[e]),n.head.removeChild(t)}catch(e){}return r?rj[e]=r.bind(G):r}function rD(...e){return rL("setTimeout")(...e)}let rN=(e,t,r,n)=>{let a,i;return o=>{t.value>=0&&(o||n)&&((i=t.value-(a??0))||void 0===a)&&(a=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t))}},rF=(e=!0)=>{let t=G.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},rz=()=>{let e=rF();return e?.activationStart??0};function r$(e,t,r){G.document&&G.addEventListener(e,t,r)}function rU(e,t,r){G.document&&G.removeEventListener(e,t,r)}let rB=-1,rq=new Set,rH=e=>{if(("pagehide"===e.type||G.document?.visibilityState==="hidden")&&rB>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of rq)e();isFinite(rB)||(rB="visibilitychange"===e.type?e.timeStamp:0,rU("prerenderingchange",rH,!0))}},rV=()=>
1{if(G.document&&rB<0){let e=rz();rB=(G.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(G.document?.visibilityState!=="hidden"||G.document?.prerendering?1/0:0),r$("visibilitychange",rH,!0),r$("pagehide",rH,!0),r$("prerenderingchange",rH,!0)}return{get firstHiddenTime(){return rB},onHidden(e){rq.add(e)}}},rW=(e,t=-1)=>{let r=rF(),n="navigate";return r&&(G.document?.prerendering||rz()>0?n="prerender":G.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:n}},rZ=new WeakMap;function rK(e,t){try{return rZ.get(e)||rZ.set(e,new t),rZ.get(e)}catch(e){return new t}}class rG{constructor(){rG.prototype.__init.call(this),rG.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let rJ=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},rQ=e=>{let t=!1;return()=>{t||(e(),t=!0)}},rY=e=>{G.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},rX=[1800,3e3],r0=[.1,.25],r1=0,r2=1/0,r5=0,r3=e=>{e.forEach(e=>{e.interactionId&&(r2=Math.min(r2,e.interactionId),r1=(r5=Math.max(r5,e.interactionId))?(r5-r2)/7+1:0)})},r4=()=>d?r1:performance.interactionCount||0,r7=0;class r9{constructor(){r9.prototype.__init.call(this),r9.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){r7=r4(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((r4()-r7)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(r)}}}let r6=e=>{let t=G.requestIdleCallback||G.setTimeout;G.document?.visibilityState==="hidden"?e():(r$("visibilitychange",e=rQ(e),{once:!0,capture:!0}),r$("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),rU("visibilitychange",e,{capture:!0}),rU("pagehide",e,{capture:!0})}))},r8=[200,500];class ne{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let nt=[2500,4e3],nr=[800,1800],nn=e=>{G.document?.prerendering?rY(()=>nn(e)):G.document?.readyState!=="complete"?addEventListener("load",()=>nn(e),!0):setTimeout(e)},na={},ni={};function no(e,t=!1){return ng("cls",e,nd,p,t)}function ns(e,t=!1){return ng("lcp",e,np,f,t)}function nl(e){return ng("inp",e,nh,g)}function nu(e,t){return ny(e,t),ni[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),rJ(e,t=>{nc(e,{entries:t})},t)}(e),ni[e]=!0),nm(e,t)}function nc(e,t){let r=na[e];if(r?.length)for(let e of r)try{e(t)}catch(e){}}function nd(){return((e,t={})=>{((e,t={})=>{rY(()=>{let r,n=rV(),a=rW("FCP"),i=rJ("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(a.value=Math.max(t.startTime-rz(),0),a.entries.push(t),r(!0)))});i&&(r=rN(e,a,rX,t.reportAllChanges))})})(rQ(()=>{let r,n=rW("CLS",0),a=rV(),i=rK(t,rG),o=e=>{for(let t of e)i._processEntry(t);i._sessionValue>
1n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},s=rJ("layout-shift",o);s&&(r=rN(e,n,r0,t.reportAllChanges),a.onHidden(()=>{o(s.takeRecords()),r(!0)}),G?.setTimeout?.(r))}))})(e=>{nc("cls",{metric:e}),p=e},{reportAllChanges:!0})}function np(){return((e,t={})=>{rY(()=>{let r,n=rV(),a=rW("LCP"),i=rK(t,ne),o=e=>{for(let o of(t.reportAllChanges||(e=e.slice(-1)),e))i._processEntry(o),o.startTime<n.firstHiddenTime&&(a.value=Math.max(o.startTime-rz(),0),a.entries=[o],r())},s=rJ("largest-contentful-paint",o);if(s){r=rN(e,a,nt,t.reportAllChanges);let n=rQ(()=>{o(s.takeRecords()),s.disconnect(),r(!0)}),i=e=>{e.isTrusted&&(r6(n),rU(e.type,i,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])r$(e,i,{capture:!0})}})})(e=>{nc("lcp",{metric:e}),f=e},{reportAllChanges:!0})}function nf(){return((e,t={})=>{let r=rW("TTFB"),n=rN(e,r,nr,t.reportAllChanges);nn(()=>{let e=rF();e&&(r.value=Math.max(e.responseStart-rz(),0),r.entries=[e],n(!0))})})(e=>{nc("ttfb",{metric:e}),h=e})}function nh(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=rV();rY(()=>{let n;"interactionCount"in performance||d||(d=rJ("event",r3,{type:"event",buffered:!0,durationThreshold:0}));let a=rW("INP"),i=rK(t,r9),o=e=>{r6(()=>{for(let t of e)i._processEntry(t);let t=i._estimateP98LongestInteraction();t&&t._latency!==a.value&&(a.value=t._latency,a.entries=t.entries,n())})},s=rJ("event",o,{durationThreshold:t.durationThreshold??40});n=rN(e,a,r8,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{o(s.takeRecords()),n(!0)}))})})(e=>{nc("inp",{metric:e}),g=e})}function ng(e,t,r,n,a=!1){let i;return ny(e,t),ni[e]||(i=r(),ni[e]=!0),n&&t({metric:n}),nm(e,t,a?i:void 0)}function ny(e,t){na[e]=na[e]||[],na[e].push(t)}function nm(e,t,r){return()=>{r&&r();let n=na[e];if(!n)return;let a=n.indexOf(t);-1!==a&&n.splice(a,1)}}let nv=Symbol.for("sentry__originalRequestBody");function nb(e){return new URLSearchParams(e).toString()}function n_(e,t=e_){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[nb(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function nw(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][nv];if(void 0!==t)return t}}function nC(e){let t;try{t=e.getAllResponseHeaders()}catch(e){return{}}return t?t.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}let nS={},nk={};function nE(e,t){return nS[e]=nS[e]||[],nS[e].push(t),()=>{let r=nS[e];if(r){let e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}function nx(e,t){if(!nk[e]){nk[e]=!0;try{t()}catch(e){}}}function nR(e,t){let r=e&&nS[e];if(r)for(let e of r)try{e(t)}catch(e){}}let nO="__sentry_xhr_v3__";function nT(e){nE("xhr",e),nx("xhr",nI)}function nI(){if(!G.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),a=1e3*eN(),i=ea(r[0])?r[0].toUpperCase():void 0,o=function(e){if(ea(e))return e;try{return e.toString()}catch{}}(r[1]);if(!i||!o)return e.apply(t,r);t[nO]={method:i,url:o,request_headers:{}},"POST"===i&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[nO];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}nR("xhr",{endTimestamp:1e3*eN(),startTimestamp:a,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(s(),e.apply(t,r))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,a]=r,i=t[nO];return i&&ea(n)&&ea(a)&&(i.request_headers[n.toLowerCase()]=a),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[nO];return n&&(void 0!==r[0]&&(n.body=r[0]),nR("xhr",{startTimestamp:1e3*eN(),xhr:t})),e.apply(t,r)}})}function nA(e){nE("dom",e),nx("dom",nP)}function nP(){if(!G.document)return;let e=nR.bind(null,"dom"),t=nM(e,!0);G.document.addEventListener("click",t,!1),G.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=G[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(ew(r,"addEventListener",function(t){return function(r,n,a){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=n[r]=n[r]||{refCount:0};if(!i.handler){let n=nM(e);i.handler=n,t.call(this,r,n,a)}i.refCount++}catch{}return t.call(this,r,n,a)}}),ew(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},a=r[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,n),a.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function nM(e,t=!1){return r=>{var n;if(!r||r._sentryCaptured)return;let a=function(e){try{return e.target}catch{return null}}(r);if(n=r.type,"keypress"===n&&(!a?.tagName||"INPUT"!==a.tagName&&"TEXTAREA"!==a.tagName&&!a.isContentEditable&&1))return;eC(r,"_sentryCaptured",!0),a&&!a._sentryId&&eC(a,"_sentryId",eA());let i="keypress"===r.type?"input":r.type;!function(e){if(e.type!==m)return!1;try{if(!e.target||e.target._sentryId!==v)return!1}catch{}return!0}(r)&&(e({event:r,name:i,global:t}),m=r.type,v=a?a._sentryId:void 0),clearTimeout(y),y=G.setTimeout(()=>{v=void 0,m=void 0},1e3)}}function nj(e){let t="history";nE(t,e),nx(t,nL)}function nL(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=b,a=function(e){try{return new URL(e,G.location.origin).toString()}catch{return e}}(String(r));if(b=a,n===a)return e.apply(this,t);nR("history",{from:n,to:a})}return e.apply(this,t)}}G.addEventListener("popstate",()=>{let e=G.location.href,t=b;b=e,t!==e&&nR("history",{from:t,to:e})}),"history"in G&&G.history&&(ew(G.history,"pushState",e),ew(G.history,"replaceState",e))}let nD="sentryReplaySession",nN="Unable to send Replay";var nF=Object.defineProperty,nz=(e,t,r)=>((e,t,r)=>t in e?nF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),n$=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(n$||{});function nU(e){let t=e?.host;return t?.shadowRoot===e}function nB(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function nq(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,nH).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function nH(e){let t;if("styleSheet"in e)try{t=nq(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,a=n[r],i=n.getPropertyPriority(a);t+=`${a}:${n.getPropertyValue(a)}
1${i?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class nV{constructor(){nz(this,"idNodeMap",new Map),nz(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function nW({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function nZ({isMasked:e,element:t,value:r,maskInputFn:n}){let a=r||"";return e?(n&&(a=n(a,t)),"*".repeat(a.length)):a}function nK(e){return e.toLowerCase()}function nG(e){return e.toUpperCase()}let nJ="__rrweb_original__";function nQ(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?nK(t):null}function nY(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function nX(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let n0={};function n1(e){let t=n0[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return n0[e]=n.bind(window)}function n2(...e){return n1("setTimeout")(...e)}function n5(...e){return n1("clearTimeout")(...e)}function n3(e){try{return e.contentDocument}catch{}}let n4=1,n7=RegExp("[^a-z0-9-_:]");function n9(){return n4++}let n6=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,n8=/^(?:[a-z+]+:)?\/\//i,ae=/^www\..*/i,at=/^(data:)([^,]*),(.*)/i;function ar(e,t){return(e||"").replace(n6,(e,r,n,a,i,o)=>{let s=n||i||o,l=r||a||"";if(!s)return e;if(n8.test(s)||ae.test(s)||at.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${l})`;let u=t.split("/"),c=s.split("/");for(let e of(u.pop(),c))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${l}${u.join("/")}${l})`})}let an=/^[^ \t\n\r\u000c]+/,aa=/^[, \t\n\r\u000c]+/,ai=new WeakMap;function ao(e,t){return t&&""!==t.trim()?as(e,t):t}function as(e,t){let r=ai.get(e);if(r||(r=e.createElement("a"),ai.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function al(e,t,r,n,a,i,o){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return ao(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return ao(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,a=e.exec(t.substring(r));return a?(n=a[0],r+=n.length,n):""}let a=[];for(;n(aa),!(r>=t.length);){let i=n(an);if(","===i.slice(-1))i=ao(e,i.substring(0,i.length-1)),a.push(i);else{let n="";i=ao(e,i);let o=!1;for(;;){let e=t.charAt(r);if(""===e){a.push((i+n).trim());break}if(o)")"===e&&(o=!1);else if(","===e){r+=1,a.push((i+n).trim());break}else"("===e&&(o=!0);n+=e,r+=1}}}return a.join(", ")}(e,n);if("style"===r){let t=ar(n,as(e));return o&&o.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let r=e.split(";"),n=[];for(let e of r){if(!(e=e.trim()))continue;let r=e.indexOf(":");if(-1===r){n.push(e);continue}let a=e.slice(0,r).trim();t.has(a)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,o)),t}else if("object"===t&&"data"===r)return ao(e,n);return"function"==typeof i?i(r,n,a):n}function au(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ac(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:ac(e.parentNode,t,r,n+1)}function ad(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}function ap(e,t,r,n,a,i){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){let e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(i){if((l=ac(o,ad(n,a)))<0)return!0;s=ac(o,ad(t,r),l>=0?l:1/0)}else{if((s=ac(o,ad(t,r)))<0)return!1;l=ac(o,ad(n,a),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!i}catch(e){}return!!i}function af(e){return null==e?"":e.toLowerCase()}function ah(e,t){let r,{doc:n,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:g={},maskAttributeFn:y,maskTextFn:m,maskInputFn:v,slimDOMOptions:b,dataURLOptions:C={}
1,inlineImages:S=!1,recordCanvas:k=!1,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:R=5e3,onBlockedImageLoad:O,onStylesheetLoad:T,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:P=!1,ignoreCSSAttributes:M}=t,{preserveWhiteSpace:j=!0}=t,L=function(e,t){let{doc:r,mirror:n,blockClass:a,blockSelector:i,unblockSelector:o,maskAllText:s,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:g,maskInputFn:y,dataURLOptions:m={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:C,newlyAddedElement:S=!1,ignoreCSSAttributes:k}=t,E=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:n$.Document,childNodes:[],compatMode:e.compatMode};return{type:n$.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:n$.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){let r,{doc:n,blockClass:a,blockSelector:i,unblockSelector:o,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:p,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:g=!1,rootId:y,maskTextClass:m,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:C,ignoreCSSAttributes:S}=t,k=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,a,i,o),E=function(e){if(e instanceof HTMLFormElement)return"form";let t=nK(e.tagName);return n7.test(t)?"div":t}(e),x={},R=e.attributes.length;for(let t=0;t<R;t++){let r=e.attributes[t];r.name&&!au(E,r.name,r.value)&&(x[r.name]=al(n,E,nK(r.name),r.value,e,u,S))}if("link"===E&&s){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=nq(t)),r&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=ar(r,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=nq(e.sheet);t&&(x._cssText=ar(t,as(n)))}if("input"===E||"textarea"===E||"select"===E||"option"===E){let t=nQ(e),r=nY(e,nG(E),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=ap(e,m,b,v,C,nW({type:t,tagName:nG(E),maskInputOptions:l}));x.value=nZ({isMasked:n,element:e,value:r,maskInputFn:c})}n&&(x.checked=n)}if("option"===E&&(e.selected&&!l.select?x.selected=!0:delete x.selected),"canvas"===E&&f){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let a=t.getImageData;if(new Uint32Array((nJ in a?a[nJ]:a).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(x.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(d.type,d.quality)&&(x.rr_dataURL=t)}}if("img"===E&&p){_||(w=(_=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,a=()=>{e.removeEventListener("load",a);try{_.width=e.naturalWidth,_.height=e.naturalHeight,w.drawImage(e,0,0),x.rr_dataURL=_.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?x.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a)}if(("audio"===E||"video"===E)&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),!g&&(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),k){let{width:t,height:r}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==E||h(x.src)||(k||n3(e)||(x.rr_src=x.src),delete x.src);try{customElements.get(E)&&(r=!0)}catch(e){}return{type:n$.Element,tagName:E,attributes:x,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:k,rootId:y,isCustom:r}}(e,{doc:r,blockClass:a,blockSelector:i,unblockSelector:o,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:h,maskInputFn:y,dataURLOptions:m,inlineImages:v,recordCanvas:b,keepIframeSrcFn:C,newlyAddedElement:S,rootId:E,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:k});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:a,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,g="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=nq(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=ar(p,as(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let y=ap(e,n,i,a,o,r);return f||h||g||!p||!y||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*")),g&&p&&(l.textarea||y)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=nZ({isMasked:ap(e,n,i,a,o,nW({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:n$.Text,textContent:p||"",isStyle:f,rootId:c}}(e,{doc:r,maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:g,maskInputOptions:h,maskInputFn:y,rootId:E});case e.CDATA_SECTION_NODE:return{type:n$.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:n$.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}(e,{doc:n,mirror:a,blockClass:i,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:y,maskTextFn:m,maskInputFn:v,dataURLOptions:C,inl
1ineImages:S,recordCanvas:k,keepIframeSrcFn:A,newlyAddedElement:P,ignoreCSSAttributes:M});if(!L)return console.warn(e,"not serialized"),null;r=a.hasNode(e)?a.getId(e):!function(e,t){if(t.comment&&e.type===n$.Comment)return!0;if(e.type===n$.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===nX(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(af(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===af(e.attributes.name)||"icon"===af(e.attributes.rel)||"apple-touch-icon"===af(e.attributes.rel)||"shortcut icon"===af(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&af(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(af(e.attributes.property).match(/^(og|twitter|fb):/)||af(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===af(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===af(e.attributes.name)||"googlebot"===af(e.attributes.name)||"bingbot"===af(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===af(e.attributes.name)||"generator"===af(e.attributes.name)||"framework"===af(e.attributes.name)||"publisher"===af(e.attributes.name)||"progid"===af(e.attributes.name)||af(e.attributes.property).match(/^article:/)||af(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===af(e.attributes.name)||"yandex-verification"===af(e.attributes.name)||"csrf-token"===af(e.attributes.name)||"p:domain_verify"===af(e.attributes.name)||"verify-v1"===af(e.attributes.name)||"verification"===af(e.attributes.name)||"shopify-checkout-api-token"===af(e.attributes.name)))return!0}}return!1}(L,b)&&(j||L.type!==n$.Text||L.isStyle||L.textContent.trim().length)?n9():-2;let D=Object.assign(L,{id:r});if(a.add(e,D),-2===r)return null;E&&E(e);let N=!f;if(D.type===n$.Element){N=N&&!D.needBlock;let t=e.shadowRoot;t&&nB(t)&&(D.isShadowHost=!0)}if((D.type===n$.Document||D.type===n$.Element)&&N){b.headWhitespace&&D.type===n$.Element&&"head"===D.tagName&&(j=!1);let t={doc:n,mirror:a,blockClass:i,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:y,maskTextFn:m,maskInputFn:v,slimDOMOptions:b,dataURLOptions:C,inlineImages:S,recordCanvas:k,preserveWhiteSpace:j,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:R,onBlockedImageLoad:O,onStylesheetLoad:T,stylesheetLoadTimeout:I,keepIframeSrcFn:A,ignoreCSSAttributes:M};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=ah(r,t);e&&D.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=ah(r,t);n&&(nB(e.shadowRoot)&&(n.isShadow=!0),D.childNodes.push(n))}}if(e.parentNode&&nU(e.parentNode)&&nB(e.parentNode)&&(D.isShadow=!0),D.type!==n$.Element||"iframe"!==D.tagName||D.needBlock||function(e,t,r){let n,a=function(e){try{return e.contentWindow}catch{}}(e);if(!a)return;let i=!1;try{n=a.document.readyState}catch(e){return}if("complete"!==n){let n=n2(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{n5(n),i=!0,t()});return}let o="about:blank";if(a.location.href!==o||e.src===o||""===e.src)return n2(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=n3(e);if(t&&x){let r=ah(t,{doc:t,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:y,maskTextFn:m,maskInputFn:v,slimDOMOptions:b,dataURLOptions:C,inlineImages:S,recordCanvas:k,preserveWhiteSpace:j,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:R,onStylesheetLoad:T,stylesheetLoadTimeout:I,keepIframeSrcFn:A,ignoreCSSAttributes:M});r&&x(e,r)}},R),D.type===n$.Element&&"img"===D.tagName&&!e.complete&&D.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&O)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&O(e,D,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return D.type===n$.Element&&"link"===D.tagName&&"string"==typeof D.attributes.rel&&("stylesheet"===D.attributes.rel||"preload"===D.attributes.rel&&"string"==typeof D.attributes.href&&"css"===nX(D.attributes.href))&&function(e,t,r){let n,a=!1;try{n=e.sheet}catch(e){n=null}if(n)return;let i=n2(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{n5(i),a=!0,t()})}(e,()=>{if(T){let t=ah(e,{doc:n,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:y,maskTextFn:m,maskInputFn:v,slimDOMOptions:b,dataURLOptions:C,inl
1ineImages:S,recordCanvas:k,preserveWhiteSpace:j,onSerialize:E,onIframeLoad:x,iframeLoadTimeout:R,onStylesheetLoad:T,stylesheetLoadTimeout:I,keepIframeSrcFn:A,ignoreCSSAttributes:M});t&&T(e,t)}},I),D.type===n$.Element&&delete D.needBlock,D}function ag(e){try{return e.contentDocument}catch(e){}}function ay(e){try{return e.contentWindow}catch(e){}}function am(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let av="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",ab={map:{},getId:()=>(console.error(av),-1),getNode:()=>(console.error(av),null),removeNodeFromMap(){console.error(av)},has:()=>(console.error(av),!1),reset(){console.error(av)}};function a_(e,t,r={}){let n=null,a=0;return function(...i){let o=Date.now();a||!1!==r.leading||(a=o);let s=t-(o-a),l=this;s<=0||s>t?(n&&(function(...e){aN("clearTimeout")(...e)}(n),n=null),a=o,e.apply(l,i)):n||!1===r.trailing||(n=aF(()=>{a=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)}
1,s))}}function aw(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ab=new Proxy(ab,{get:(e,t,r)=>("map"===t&&console.error(av),Reflect.get(e,t,r))}));let aC=Date.now;function aS(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function ak(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function aE(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ax(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function aR(e,t,r,n,a){if(!e)return!1;let i=ax(e);if(!i)return!1;let o=ad(t,r);if(!a){let e=n&&i.matches(n);return o(i)&&!e}let s=ac(i,o),l=-1;return!(s<0)&&(n&&(l=ac(i,ad(null,n))),s>-1&&l<0||s<l)}function aO(e,t){return -2===t.getId(e)}function aT(e){return!!e.changedTouches}function aI(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function aA(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function aP(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(aC=()=>new Date().getTime());class aM{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function aj(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function aL(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=aj(r);)r=t;return r}(e);return t.contains(r)}(e))}let aD={};function aN(e){let t=aD[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return aD[e]=n.bind(window)}function aF(...e){return aN("setTimeout")(...e)}var az=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(az||{}),a$=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(a$||{}),aU=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(aU||{}),aB=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(aB||{}),aq=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(aq||{});class aH{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if("undefined"==typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let r=t.cssRules[0];if(!r||r.type!==CSSRule.STYLE_RULE)return null;return r.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}class aV{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;
1this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let aW=(e,t)=>`${e}@${t}`;class aZ{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new aV,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},a=a=>{if(!a.parentNode||!aL(a))return;let i=nU(a.parentNode)?this.mirror.getId(aj(a)):this.mirror.getId(a.parentNode),o=n(a);if(-1===i||-1===o)return r.addNode(a);let s=ah(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{aI(e,this.mirror)&&!aR(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),aA(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),aP(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(aR(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let r=ay(e);r&&this.canvasManager.addWindow(r),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:i,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!aG(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&a(e);for(let e of this.addedSet)aJ(this.droppedSet,e)||aG(this.removes,e,this.mirror)?aJ(this.movedSet,e)?a(e):this.droppedSet.add(e):a(e);let i=null;for(;r.length;){let e=null;if(i){let t=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),a(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!aO(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;aR(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ap(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,ax(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=nQ(t),a=t.tagName;n=nY(t,a,r);let i=nW({maskInputOptions:this.maskInputOptions,tagName:a,type:r});n=nZ({isMasked:ap(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:n,maskInputFn:this.maskInputFn})}if(aR(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let a=this.attributeMap.get(e.target);
1if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(ag(t))return;r="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!au(t.tagName,r)&&(a.attributes[r]=al(this.doc,nK(t.tagName),nK(r),n,t,this.maskAttributeFn),"style"===r)){let r=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let n=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);n!==(r?.getPropertyValue(e)||"")||i!==(r?.getPropertyPriority(e)||"")?""===i?a.styleDiff[e]=n:a.styleDiff[e]=[n,i]:a._unchangedStyles[e]=[n,i]}if(r)for(let e of Array.from(r))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(aR(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=nU(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);aR(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||aO(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(aK(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(nU(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[aW(r,n)]?aK(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(nU(e.target)&&nB(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(aO(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[aW(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!aR(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),aP(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new aH(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function aK(e,t){e.delete(t),t.childNodes?.forEach(t=>aK(e,t))}function aG(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function aJ(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let aQ=e=>C?(...t)=>{try{return e(...t)}catch(e){if(C&&!0===C(e))return()=>{};throw e}}:e,aY=[];function aX(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function a0(e,t){let r=new aZ;aY.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,a=window?.Zone?.__symbol__?.("MutationObserver");a&&window[a]&&(n=window[a]);let i=new n(aQ(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function a1({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,sampling:o}){return am("scroll",aQ(a_(aQ(o=>{let s=aX(o);if(!s||aR(s,n,a,i,!0))return;let l=r.getId(s);if(s===t&&t.defaultView){let r=aS(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}let a2=["INPUT","TEXTAREA","SELECT"],a5=new WeakMap;function a3(e){var t=[];if(a6("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||a6("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||a6("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||a6("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function a4(e,t,r){let n,a;return e?(e.ownerNode?n=t.getId(e.ownerNode):a=r.getId(e),{styleId:a,id:n}):{}}function a7({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let a="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,i=a?.prototype?Object.getOwnPropertyDescriptor(a?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&a&&i?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){let r=i.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),aQ(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}function a9(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=a0(e,e.doc));let a=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let a;if(!1===t.mousemove)return()=>{};let i="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=a_(aQ(t=>{let r=Date.now()-a;e(s.map(e=>(e.timeOffset-=r,e)),t),s=[],a=null}),o),u=aQ(a_(aQ(e=>{let t=aX(e),{clientX:r,clientY:i}=aT(e)?e.changedTouches[0]:e;a||(a=aC()),s.push({x:r,y:i,id:n.getId(t),timeOffset:aC()-a}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?a$.Drag:e instanceof MouseEvent?a$.MouseMove:a$.TouchMove)}),i,{trailing:!1})),c=[am("mousemove",u,r),am("touchmove",u,r),am("drag",u,r)];return aQ(()=>
1{c.forEach(e=>e())})}(e),i=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],u=null;return Object.keys(aU).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(o=>{let s=nK(o),c=t=>{let s=aX(t);if(aR(s,n,a,i,!0))return;let l=null,c=o;if("pointerType"in t){switch(t.pointerType){case"mouse":l=aB.Mouse;break;case"touch":l=aB.Touch;break;case"pen":l=aB.Pen}l===aB.Touch?aU[o]===aU.MouseDown?c="TouchStart":aU[o]===aU.MouseUp&&(c="TouchEnd"):aB.Pen}else aT(t)&&(l=aB.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===aB.Touch||c.startsWith("Mouse")&&l===aB.Mouse)&&(l=null)):aU[o]===aU.Click&&(l=u,u=null);let d=aT(t)?t.changedTouches[0]:t;if(!d)return;let p=r.getId(s),{clientX:f,clientY:h}=d;aQ(e)({type:aU[c],id:p,x:f,y:h,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(aU[o]){case aU.MouseDown:case aU.MouseUp:s=s.replace("mouse","pointer");break;case aU.TouchStart:case aU.TouchEnd:return}l.push(am(s,c,t))}),aQ(()=>{l.forEach(e=>e())})}(e),o=a1(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return am("resize",aQ(a_(aQ(()=>{let t=ak(),a=aE();(r!==t||n!==a)&&(e({width:Number(a),height:Number(t)}),r=t,n=a)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,ignoreClass:o,ignoreSelector:s,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:g}){function y(e){let r=aX(e),c=e.isTrusted,y=r&&nG(r.tagName);if("OPTION"===y&&(r=r.parentElement),!r||!y||0>a2.indexOf(y)||aR(r,n,a,i,!0))return;let v=r;if(v.classList.contains(o)||s&&v.matches(s))return;let b=nQ(r),_=nY(v,y,b),w=!1,C=nW({maskInputOptions:l,tagName:y,type:b}),S=ap(r,p,h,f,g,C);("radio"===b||"checkbox"===b)&&(w=r.checked),_=nZ({isMasked:S,element:r,value:_,maskInputFn:u}),m(r,d?{text:_,isChecked:w,userTriggered:c}:{text:_,isChecked:w});let k=r.name;"radio"===b&&k&&w&&t.querySelectorAll(`input[type="radio"][name="${k}"]`).forEach(e=>{if(e!==r){let t=nZ({isMasked:S,element:e,value:nY(e,y,b),maskInputFn:u});m(e,d?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}})}function m(t,n){let a=a5.get(t);if(!a||a.text!==n.text||a.isChecked!==n.isChecked){a5.set(t,n);let a=r.getId(t);aQ(e)({...n,id:a})}}let v=("last"===c.input?["change"]:["input","change"]).map(e=>am(e,aQ(y),t)),b=t.defaultView;if(!b)return()=>{v.forEach(e=>e())};let _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...w.map(e=>(function e(t,r,n,a,i=window){let o=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,a?n:{set(e){aF(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,r,o||{},!0)})(e[0],e[1],{set(){aQ(y)({target:this,isTrusted:!1})}},!1,b))),aQ(()=>{v.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:a,sampling:i,doc:o}){let s=aQ(o=>a_(aQ(i=>{let s=aX(i);if(!s||aR(s,t,r,n,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=s;e({type:o,id:a.getId(s),currentTime:l,volume:u,muted:c,playbackRate:d})}),i.media||500)),l=[am("play",s(aq.Play),o),am("pause",s(aq.Pause),o),am("seeked",s(aq.Seeked),o),am("volumechange",s(aq.VolumeChange),o),am("ratechange",s(aq.RateChange),o)];return aQ(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let a,i;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:aQ((n,a,i)=>{let[o,s]=i,{id:l,styleId:u}=a4(a,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:s}]}),n.apply(a,i)})});let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:aQ((n,a,i)=>{let[o]=i,{id:s,styleId:l}=a4(a,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:o}]}),n.apply(a,i)})}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:aQ((n,a,i)=>{let[o]=i,{id:s,styleId:l}=a4(a,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:o}),n.apply(a,i)})})),n.CSSStyleSheet.prototype.replaceSync&&(i=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(i,{apply:aQ((n,a,i)=>{let[o]=i,{id:s,styleId:l}=a4(a,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:o}),n.apply(a,i)})}));let l={};a8("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(a8("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),a8("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),a8("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,a])=>{u[n]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(u[n].insertRule,{apply:aQ((n,a,i)=>{let[o,s]=i,{id:l,styleId:u}=a4(a.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:[...a3(a),s||0]}]}),n.apply(a,i)})}),a.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:aQ((n,a,i)=>{let[o]=i,{id:s,styleId:l}=a4(a.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...a3(a),o]}]}),n.apply(a,i)})})}),aQ(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=s,a&&(n.CSSStyleSheet.prototype.replace=a),i&&(n.CSSStyleSheet.prototype.replaceSync=i),Ob
1ject.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=a7(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:a}){let i=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:aQ((a,o,s)=>{let[l,u,c]=s;if(r.has(l))return i.apply(o,[l,u,c]);let{id:d,styleId:p}=a4(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:a3(o.parentRule)}),a.apply(o,s)})});let o=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:aQ((a,i,s)=>{let[l]=s;if(r.has(l))return o.apply(i,[l]);let{id:u,styleId:c}=a4(i.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:a3(i.parentRule)}),a.apply(i,s)})}),aQ(()=>{a.CSSStyleDeclaration.prototype.setProperty=i,a.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:n}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],a=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){let n=new i(e,t,r);return a.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let o=aw(t.fonts,"add",function(t){return function(r){return aF(aQ(()=>{let t=a.get(r);t&&(e(t),a.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=i}),n.push(o),aQ(()=>{n.forEach(e=>e())})}(e)));let h=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,selectionCb:o}=e,s=!0,l=aQ(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:o,startOffset:s,endContainer:u,endOffset:c}=e.getRangeAt(t);aR(o,n,a,i,!0)||aR(u,n,a,i,!0)||l.push({start:r.getId(o),startOffset:s,end:r.getId(u),endOffset:c})}o({ranges:l})});return l(),am("selectionchange",l)}(e),g=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?aw(r.customElements,"define",function(e){return function(r,n,a){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,a])}}):()=>{}}(e),y=[];for(let t of e.plugins)y.push(t.observer(t.callback,n,t.options));return aQ(()=>{aY.forEach(e=>e.reset()),r?.disconnect(),a(),i(),o(),s(),l(),u(),c(),d(),p(),f(),h(),g(),y.forEach(e=>e())})}function a6(e){return void 0!==window[e]}function a8(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ie{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let a=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e),o=a.get(t);return o||(o=this.generateIdFn(),a.set(t,o),i.set(o,t)),o}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let a=n.get(t);return a||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class it{constructor(){this.crossOriginIframeMirror=new ie(n9),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ir{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ie(n9),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=ne
1w ie(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);let t=ay(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&ay(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=ag(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case az.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:az.IncrementalSnapshot,data:{source:a$.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case az.Meta:case az.Load:case az.DomContentLoaded:break;case az.Plugin:return t;case az.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case az.IncrementalSnapshot:switch(t.data.source){case a$.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case a$.Drag:case a$.TouchMove:case a$.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case a$.ViewportResize:return!1;case a$.MediaInteraction:case a$.MouseInteraction:case a$.Scroll:case a$.CanvasMutation:case a$.Input:return this.replaceIds(t.data,e,["id"]),t;case a$.StyleSheetRule:case a$.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case a$.Font:return t;case a$.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case a$.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let a of n)(Array.isArray(t[a])||"number"==typeof t[a])&&(Array.isArray(t[a])?t[a]=e.getIds(r,t[a]):t[a]=e.getId(r,t[a]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===n$.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ia{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class ii{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!nB(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=a0({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(a1({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),aF(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(a7({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=ag(e),r=ay(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(aw(e.prototype,"attachShadow",function(e){return function(n){let a=e.call(this,n);return this.shadowRoot&&aL(this)&&r.addShadowRoot(this.shadowRoot,t),a}}))}
1reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var io="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",is="undefined"==typeof Uint8Array?[]:new Uint8Array(256),il=0;il<io.length;il++)is[io.charCodeAt(il)]=il;class iu{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class ic{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new aM,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:nH(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class id{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){aN("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let ip=new nV;function ih(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:a,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:g=!0,maskAllInputs:y,maskInputOptions:m,slimDOMOptions:v,maskAttributeFn:b,maskInputFn:_,maskTextFn:w,maxCanvasSize:E=null,packFn:x,sampling:R={},dataURLOptions:O={},mousemoveWait:T,recordDOM:I=!0,recordCanvas:A=!1,recordCrossOriginIframes:P=!1,recordAfter:M="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:L=!1,inlineImages:D=!1,plugins:N,keepIframeSrcFn:F=()=>!1,ignoreCSSAttributes:z=new Set([]),errorHandler:$,onMutation:U,getCanvasManager:B}=e;C=$;let q=!P||window.parent===window,H=!1;if(!q)try{window.parent.document&&(H=!1)}catch(e){H=!0}if(q&&!r)throw Error("emit function is required");if(!q&&!H)return()=>{};void 0!==T&&void 0===R.mousemove&&(R.mousemove=T),ip.reset();let V=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==m?m:{},W=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let Z=0,K=e=>{for(let t of N||[])t.eventProcessor&&(e=t.eventProcessor(e));return x&&!H&&(e=x(e)),e};S=(e,i)=>{if(e.timestamp=aC(),aY[0]?.isFrozen()&&e.type!==az.FullSnapshot&&(e.type!==az.IncrementalSnapshot||e.data.source!==a$.Mutation)&&aY.forEach(e
1=>e.unfreeze()),q)r?.(K(e),i);else if(H){let t={type:"rrweb",event:K(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===az.FullSnapshot)t=e,Z=0;else if(e.type===az.IncrementalSnapshot){if(e.data.source===a$.Mutation&&e.data.isAttachIframe)return;Z++;let r=a&&Z>=a,i=n&&t&&e.timestamp-t.timestamp>n;(r||i)&&en(!0)}};let G=e=>{S({type:az.IncrementalSnapshot,data:{source:a$.Mutation,...e}})},J=e=>S({type:az.IncrementalSnapshot,data:{source:a$.Scroll,...e}}),Q=e=>S({type:az.IncrementalSnapshot,data:{source:a$.CanvasMutation,...e}}),Y=new ic({mutationCb:G,adoptedStyleSheetCb:e=>S({type:az.IncrementalSnapshot,data:{source:a$.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new it:new ir({mirror:ip,mutationCb:G,stylesheetManager:Y,recordCrossOriginIframes:P,wrappedEmit:S});for(let e of N||[])e.getMirror&&e.getMirror({nodeMirror:ip,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});let ee=new id,et=function(e,t){try{return e?e(t):new iu}catch{return console.warn("Unable to initialize CanvasManager"),new iu}}(B,{mirror:ip,win:window,mutationCb:e=>S({type:az.IncrementalSnapshot,data:{source:a$.CanvasMutation,...e}}),recordCanvas:A,blockClass:i,blockSelector:o,unblockSelector:s,maxCanvasSize:E,sampling:R.canvas,dataURLOptions:O,errorHandler:$}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ia:new ii({mutationCb:G,scrollCb:J,bypassOptions:{onMutation:U,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:g,maskInputOptions:V,dataURLOptions:O,maskAttributeFn:b,maskTextFn:w,maskInputFn:_,recordCanvas:A,inlineImages:D,sampling:R,slimDOMOptions:W,iframeManager:X,stylesheetManager:Y,canvasManager:et,keepIframeSrcFn:F,processedNodeManager:ee,ignoreCSSAttributes:z},mirror:ip}),en=(e=!1)=>{if(!I)return;S({type:az.Meta,data:{href:window.location.href,width:aE(),height:ak()}},e),Y.reset(),er.init(),aY.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new nV,blockClass:n="rr-block",blockSelector:a=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:g,maskTextFn:y,maskInputFn:m,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:C,iframeLoadTimeout:S,onBlockedImageLoad:k,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:O=new Set([])}=t||{};return ah(e,{doc:e,mirror:r,blockClass:n,blockSelector:a,unblockSelector:i,maskAllText:o,maskTextClass:s,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:g,maskTextFn:y,maskInputFn:m,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:p,recordCanvas:f,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:C,iframeLoadTimeout:S,onBlockedImageLoad:k,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:R,newlyAddedElement:!1,ignoreCSSAttributes:O})}(document,{mirror:ip,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:g,maskAllInputs:V,maskAttributeFn:b,maskInputFn:_,maskTextFn:w,slimDOM:W,dataURLOptions:O,recordCanvas:A,inlineImages:D,onSerialize:e=>{aI(e,ip)&&X.addIframe(e),aA(e,ip)&&Y.trackLinkElement(e),aP(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t);let r=ay(e);r&&et.addWindow(r),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{G({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:F,ignoreCSSAttributes:z});if(!t)return console.warn("Failed to snapshot the document");S({type:az.FullSnapshot,data:{node:t,initialOffset:aS(window)}}
1),aY.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,ip.getId(document))};k=en;try{let e=[],t=e=>aQ(a9)({onMutation:U,mutationCb:G,mousemoveCb:(e,t)=>S({type:az.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>S({type:az.IncrementalSnapshot,data:{source:a$.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>S({type:az.IncrementalSnapshot,data:{source:a$.ViewportResize,...e}}),inputCb:e=>S({type:az.IncrementalSnapshot,data:{source:a$.Input,...e}}),mediaInteractionCb:e=>S({type:az.IncrementalSnapshot,data:{source:a$.MediaInteraction,...e}}),styleSheetRuleCb:e=>S({type:az.IncrementalSnapshot,data:{source:a$.StyleSheetRule,...e}}),styleDeclarationCb:e=>S({type:az.IncrementalSnapshot,data:{source:a$.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>S({type:az.IncrementalSnapshot,data:{source:a$.Font,...e}}),selectionCb:e=>{S({type:az.IncrementalSnapshot,data:{source:a$.Selection,...e}})},customElementCb:e=>{S({type:az.IncrementalSnapshot,data:{source:a$.CustomElement,...e}})},blockClass:i,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:V,inlineStylesheet:g,sampling:R,recordDOM:I,recordCanvas:A,inlineImages:D,userTriggeredOnInput:j,collectFonts:L,doc:e,maskAttributeFn:b,maskInputFn:_,maskTextFn:w,keepIframeSrcFn:F,blockSelector:o,unblockSelector:s,slimDOMOptions:W,dataURLOptions:O,mirror:ip,iframeManager:X,stylesheetManager:Y,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:z,plugins:N?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>S({type:az.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});X.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{en(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(am("DOMContentLoaded",()=>{S({type:az.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&r()})),e.push(am("load",()=>{S({type:az.Load,data:{}}),"load"===M&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),k=void 0,C=void 0}}catch(e){console.warn(e)}}function ig(e){return e>0x2540be3ff?e:1e3*e}function iy(e){return e>0x2540be3ff?e/1e3:e}function im(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:az.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:th(t,10,1e3)}}),"console"===t.category)))}function iv(e){return e.closest("button,a")||e}function ib(e){let t=i_(e);return t&&t instanceof Element?iv(t):t}function i_(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}ih.mirror=ip,ih.takeFullSnapshot=function(e){if(!k)throw Error("please take full snapshot after start recording");k(e)},!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(I||(I={}));let iw=new Set([a$.Mutation,a$.StyleSheetRule,a$.StyleDeclaration,a$.AdoptedStyleSheet,a$.CanvasMutation,a$.Selection,a$.MediaInteraction]);class iC{constructor(e,t,r=im){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=ik()},E||(E=[],ew(G,"open",function(e){return function(...t){if(E)try{E.forEach(e=>e())}catch{}return e.apply(G,t)}})),E.push(e),()=>{let t=E?E.indexOf(e):-1;t>-1&&E.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r,n,a;if(r=t,n=this._ignoreSelector,!iS.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n)||!((a=e).data&&"number"==typeof a.data.nodeId&&a.timestamp))return;let i={timestamp:iy(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===i.node&&1>
1Math.abs(e.timestamp-i.timestamp))||(this._clicks.push(i),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=iy(e)}registerScroll(e=Date.now()){this._lastScroll=iy(e)}registerClick(e){let t=iv(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=ik();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:a,clickBreadcrumb:i}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:G.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:a||1}};this._addBreadcrumbEvent(t,o);return}if(a>1){let e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:G.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=rD(()=>this._checkClicks(),1e3)}}let iS=["A","BUTTON","INPUT"];function ik(){return Date.now()/1e3}function iE(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var ix=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ix||{});let iR=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function iO(e,t){let r=ih.mirror.getId(e),n=r&&ih.mirror.getNode(r),a=n&&ih.mirror.getMeta(n),i=a&&a.type===ix.Element?a:null;return{message:t,data:i?{nodeId:r,node:{id:r,tagName:i.tagName,textContent:Array.from(i.childNodes).map(e=>e.type===ix.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(iR.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(i.attributes)}}:{}}}let iT={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:a,startTime:i,decodedBodySize:o,encodedBodySize:s,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:iP(i),end:iP(a),name:n,data:{size:u,statusCode:l,decodedBodySize:o,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:a}=e,i=iP(a);return{type:r,name:n,start:i,end:i+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:a,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:g}=e;return 0===a?null:{type:`${t}.${g}`,start:iP(f),end:iP(i),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:o,duration:a,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function iI(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function iA(e){let t=iT[e.entryType];return t?t(e):null}function iP(e){return((ez()||G.performance.timeOrigin)+e)/1e3}function iM(e){let t=e.entries[e.entries.length-1];return iD(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function ij(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];
1for(let t of n.sources)if(t.node){r.push(t.node);let n=ih.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return iD(e,"cumulative-layout-shift",r,t)}function iL(e){let t=e.entries[e.entries.length-1];return iD(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function iD(e,t,r,n){let a=e.value,i=e.rating,o=iP(a);return{type:"web-vital",name:t,start:o,end:o,data:{value:a,size:a,rating:i,nodeIds:r?r.map(e=>ih.mirror.getId(e)):void 0,attributions:n}}}let iN=["log","warn","error"],iF=function(){let e={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}};return iN.forEach(t=>{e[t]=()=>void 0}),e}();class iz extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class i${constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new iz;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:ig(e)}}class iU{constructor(e){iU.prototype.__init.call(this),this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t(Error("Received worker message with unsuccessful status"))},{once:!0}),this._worker.addEventListener("error",e=>{t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,a)=>{this._pending.set(r,{method:e,resolve:n,reject:a});try{this._worker.postMessage({id:r,method:e,arg:t})}catch(e){this._pending.delete(r),a(e)}})}__init(){this._onMessage=({data:e})=>{if("number"!=typeof e.id)return;let t=this._pending.get(e.id);if(t&&t.method===e.method){if(this._pending.delete(e.id),!e.success)return void t.reject(Error("Error in compression worker"));t.resolve(e.response)}}}_getAndIncrementId(){return this._id++}}class iB{constructor(e){this._worker=new iU(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=ig(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new iz):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class iq{constructor(e){this._fallback=new i$,this._compression=new iB(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}
1async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){}}}function iH(){try{return"sessionStorage"in G&&!!G.sessionStorage}catch{return!1}}function iV(e){return void 0!==e&&Math.random()<e}function iW(e){if(iH())try{G.sessionStorage.setItem(nD,JSON.stringify(e))}catch{}}function iZ(e){let t=Date.now(),r=e.id||eA(),n=e.started||t,a=e.lastActivity||t,i=e.segmentId||0,o=e.sampled;return{id:r,started:n,lastActivity:a,segmentId:i,sampled:o,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function iK({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let a=iZ({sampled:iV(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&iW(a),a}function iG(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function iJ(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!function(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return iG(e.started,t,n)||iG(e.lastActivity,r,n)}(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function iQ({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let a=n.stickySession&&function(){if(!iH())return null;try{let e=G.sessionStorage.getItem(nD);if(!e)return null;let t=JSON.parse(e);return iZ(t)}catch{return null}}();return a?iJ(a,{sessionIdleExpire:e,maxReplayDuration:t})?iK(n,{previousSessionId:a.id}):a:iK(n,{previousSessionId:r})}function iY(e,t,r){return!!i0(e,t)&&(iX(e,t,r),!0)}async function iX(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let a="buffer"===e.recordingMode;try{r&&a&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let i=e.getOptions(),o=function(e,t){try{if("function"==typeof t&&e.type===az.Custom)return t(e)}catch(e){return null}return e}(t,i.beforeAddRecordingEvent);if(!o)return;return await n.addEvent(o)}catch(i){let t=i&&i instanceof iz,r=to();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&a)return n.clear(),n.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:t?"eventBufferOverflow":"eventBufferError"})}}function i0(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=ig(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function i1(e){return"transaction"===e.type}function i2(e){return"feedback"===e.type}function i5(e){return!!e.category}function i3(){let e=tr().getPropagationContext().dsc;e&&delete e.replay_id;let t=t6();if(t){let e=rn(t);delete e.replay_id}}function i4(e,t){return t.map(({type:t,start:r,end:n,name:a,data:i})=>{let o=e.throttledAddEvent({type:az.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:r,endTimestamp:n,data:i}}});return"string"==typeof o?Promise.resolve(null):o})}function i7(e,t){e.isEnabled()&&null!==t&&!function(e,t){var r,n,a=to();let i=a?.getDsn(),o=a?.getOptions().tunnel;return function(e,t){var r,n;let a=rm(e);return!(!a||ry(a))&&!!t&&(r=a.hostname,r===(n=t.host)||n.length>0&&r.endsWith(`.${n}`))&&/(^|&|\?)sentry_key=/.test(a.search)}(t,i)||(r=t,!!(n=o)&&r_(r)===r_(n))}(0,t.name)&&e.addUpdate(()=>(i4(e,[t]),!0))}function i9(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=nb(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function i6(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function i8(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function oe(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:a,method:i,statusCode:o,request:s,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:a,data:{method:i,statusCode:o,request:s,response:l}}}function ot(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function or(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:a,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,r=function(e){let t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){let t=e.slice(0,15e4);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=a,i?.length&&(n._meta={warnings:i}),n}function on(e,t){return Object.entries(e).reduce((r,[n,a])=>{let i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=a),r},{})}function oa(e,t=G.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(G.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}async function oi(e,t,r){try{let n=await oo(e,t,r),a=oe("resource.fetch",n);i7(r.replay,a)}catch(e){}}async function oo(e,t,r){var n,a;let i=Date.now(),{startTimestamp:o=i,endTimestamp:s=i}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:p}=e.data,f=(n=r.networkDetailAllowUrls,e2(oa(l),n)&&(a=r.networkDetailDenyUrls,!e2(oa(l),a)));return{startTimestamp:o,endTimestamp:s,url:l,method:u,statusCode:c,request:f?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var a,i;let o=r?(a=r,i=t,1===a.length&&"string"!=typeof a[0]?oc(a[0],i):2===a.length?oc(a[1],i):{}):{};if(!e)return or(o,n,void 0);let[s,l]=n_(nw(r),iF),u=or(o,n,s);return l?i8(u,l):u}(r,t.input,d):ot(d),response:await os(f,r,t.response,p)}}async function os(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,a){if(!e&&void 0!==a)return ot(a);let i=n?ou(n.headers,r):{};if(!n||!t&&void 0!==a)return or(i,a,void 0);let[o,s]=await ol(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:a}){try{let i=e?.length&&void 0===r?i9(e):r;if(!n)return ot(i);if(t)return or(a,i,e);return or(a,i,void 0)}catch(e){return or(a,r,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:i});return s?i8(l,s):l}async function ol(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var r;return[await (r=t,new Promise((e,t)=>
1{let n=rD(()=>t(Error("Timeout while trying to read response body")),500);od(r).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function ou(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function oc(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?ou(r,t):Array.isArray(r)?{}:on(r,t):{}}async function od(e){return await e.text()}async function op(e,t,r){try{let n=function(e,t,r){var n,a;let i=Date.now(),{startTimestamp:o=i,endTimestamp:s=i,input:l,xhr:u}=t,{url:c,method:d,status_code:p=0,request_body_size:f,response_body_size:h}=e.data;if(!c)return null;if(!u||(n=r.networkDetailAllowUrls,!e2(oa(c),n))||(a=r.networkDetailDenyUrls,e2(oa(c),a))){let e=ot(f);return{startTimestamp:o,endTimestamp:s,url:c,method:d,statusCode:p,request:e,response:ot(h)}}let g=u[nO],y=g?on(g.request_headers,r.networkRequestHeaders):{},m=on(nC(u),r.networkResponseHeaders),[v,b]=r.networkCaptureBodies?n_(l,iF):[void 0],[_,w]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&r&&"object"==typeof r)return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return[void 0]}(u):[void 0],C=or(y,f,v),S=or(m,h,_);return{startTimestamp:o,endTimestamp:s,url:c,method:d,statusCode:p,request:b?i8(C,b):C,response:w?i8(S,w):S}}(e,t,r),a=oe("resource.xhr",n);i7(r.replay,a)}catch(e){}}async function of(e){try{return Promise.all(i4(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(G.performance.memory)]))}catch{return[]}}let oh=G.navigator;async function og({client:e,scope:t,replayId:r,event:n}){let a={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,a);let i=await rs(e.getOptions(),n,a,t,e,tn());if(!i)return null;e.emit("postprocessEvent",i,a),i.platform=i.platform||"javascript";let o=e.getSdkMetadata(),{name:s,version:l,settings:u}=o?.sdk||{};return i.sdk={...i.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},i}async function oy({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:a,session:i}){var o;let s,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
2`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:u,errorIds:c,traceIds:d,initialTimestamp:p}=n,f=to(),h=tr(),g=f?.getTransport(),y=f?.getDsn();if(!f||!g||!y||!i.sampled)return Promise.resolve({});let m={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:a/1e3,error_ids:c,trace_ids:d,urls:u,replay_id:t,segment_id:r,replay_type:i.sampled},v=await og({scope:h,client:f,replayId:t,event:m});if(!v)return f.recordDroppedEvent("event_processor","replay"),Promise.resolve({});delete v.sdkProcessingMetadata;let b=(o=f.getOptions().tunnel,rw(rO(v,rR(v),o,y),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{s=await g.send(b)}catch(t){let e=Error(nN);try{e.cause=t}catch{}throw e}let _=rI({},s);if(rT(_,"replay"))throw new ov(_);if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new om(s.statusCode);return s}class om extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class ov extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class ob extends Error{constructor(){super("Session is too long, not sending replay")}}async function o_(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await oy(e),!0}catch(r){if(r instanceof om||r instanceof ov)throw r;if(rc("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${nN} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{rD(async()=>{try{await o_(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let ow="__THROTTLED";class oC{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){let n,a,i,o=r?.maxWait?Math.max(r.maxWait,t):0,s=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==a&&clearTimeout(a),void 0!==i&&clearTimeout(i),a=i=void 0}function c(){return a&&clearTimeout(a),a=s(l,t),o&&void 0===i&&(i=s(l,o)),n}return c.cancel=u,c.flush=function(){return void 0!==a||void 0!==i?l():n},c}(()=>this._flush(),this._options.flushMinDelay,{...{maxWait:this._options.flushMaxDelay},setTimeoutImpl:rD}),this._throttledAddEvent=function(e,t,r){let n=new Map,a=!1;return(...t)=>{let r=Math.floor(Date.now()/1e3),i=r-5;if(n.forEach((e,t)=>{t<i&&n.delete(t)}),[...n.values()].reduce((e,t)=>
2e+t,0)>=300){let e=a;return a=!0,e?"__SKIPPED":ow}a=!1;let o=n.get(r)||0;return n.set(r,o+1),e(...t)}}((e,t)=>(function(e,t,r){return i0(e,t)?iX(e,t,r):Promise.resolve(null)})(this,e,t),0,0);let{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),a=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;a&&(this.clickDetector=new iC(this,a)),this._handleVisibilityChange=()=>{"visible"===G.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=iE({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=iE({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:a,altKey:i,key:o,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;let l=r||a||i,u=1===o.length;if(!l&&u)return null;let c=ef(s,{maxStringLength:200})||"<unknown>",d=iO(s,c);return iE({category:"ui.keyDown",message:c,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:a,altKey:i,key:o}})}(t);r&&im(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;if(this._requiresManualStart=n,!n)this._initializeSessionForSampling(e),this.session&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=iQ({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let e=iQ({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t,r=this._canvas;this._stopRecording=ih({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession())return;let a=n||!t;t=!0,function(e){let t=e.data;if(e.type===az.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===a$.Mutation&&"attributes"in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=ih.mirror.getNode(e.id),r=t&&ih.mirror.getMeta(t);if(r?.type===ix.Element)for(let[t,n]of Object.entries(e.attributes))null===n?delete r.attributes[t]:r.attributes[t]=n}}(r),e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(iw.has(n)&&e.registerMutation(t.timestamp),n===a$.Scroll&&e.registerScroll(t.timestamp),t.data.source===a$.MouseInteraction){let{type:r,id:n}=t.data,a=ih.mirror.getNode(n);a instanceof HTMLElement&&r===aU.Click&&e.registerClick(a)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{var t;if("buffer"===e.recordingMode&&a&&e.setInitialState(),!iY(e,r,a))return!0;if(!a)return!1;let n=e.session;if(t=e,a&&t.session?.segmentId===0&&iY(t,function(e){let t=e.getOptions();return{type:az.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(t),!1),"buffer"===e.recordingMode&&n&&e.eventBuffer&&!n.dirty){let t=e.eventBuffer.getEarliestTimestamp();t&&(n.started=t,e.getOptions().stickySession&&iW(n))}
2return!!n?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(oh?.userAgent??"")||/Macintosh/i.test(oh?.userAgent??"")&&oh?.maxTouchPoints&&oh?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";to()?.emit("replayEnd",{sessionId:this.session?.id,reason:t??"manual"});try{i3(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(iH())try{G.sessionStorage.removeItem(nD)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}checkAndHandleExpiredSession(){return this._lastActivity&&iG(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"?void this.pause():!!this._checkSession()}setInitialState(){let e=`${G.location.pathname}${G.location.hash}${G.location.search}`,t=`${G.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===ow){let e=iE({category:"replay.throttled"});this.addUpdate(()=>!iY(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||t6(),t=e&&t7(e),r=(t&&tK(t).data||{})[tg];if(t&&r&&["route","custom"].includes(r))return tK(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e=new Blob(['
vendor: 10,329 bytes, line 2
2var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
2']);return URL.createObjectURL(e)}return""}();if(!t)return;let r=new Worker(t);return new iq(r)}catch(e){}}(t);if(e)return e}return new i$}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&to()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&function(e){let t=tr().getPropagationContext().dsc;t&&(t.replay_id=e);let r=t6();r&&(rn(r).replay_id=e)}(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=iQ({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!iJ(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{G.document.addEventListener("visibilitychange",this._handleVisibilityChange),G.addEventListener("blur",this._handleWindowBlur),G.addEventListener("focus",this._handleWindowFocus),G.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){var t;let r=to();nA(t=>{var r,n;if(!e.isEnabled())return;let a=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?ib(e.event):i_(e.event),t=ef(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return iE({category:`ui.${e.name}`,...iO(t,r)})}(t);if(!a)return;let i="click"===t.name,o=i?t.event:void 0;i&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&(r=e.clickDetector,n=ib(t.event),r.handleClick(a,n)),im(e,a)}),nj(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(i4(e,[r]),!1)))});let n=to();n&&n.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!i5(t))return;let n=(r=t,!i5(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return iE(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=th(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return iE({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):iE(r));n&&im(e,n)})(e,t));let a=to();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:n,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:n,networkRequestHeaders:i,networkResponseHeaders:o};a&&a.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,a,i,o;if(n=t,"xhr"===n.category&&(a=r,a?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let a=i9(n),i=r.getResponseHeader("content-length")?i6(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return i9(r)}catch{return}}(r.response,r.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==i&&(e.data.response_body_size=i)}(t,r),op(t,r,e)),i=t,"fetch"===i.category&&(o=r,o?.input!==void 0)){let{input:n,response:a}=r,i=i9(n?nw(n):void 0),o=a?i6(a.headers.get("content-length")):void 0;void 0!==i&&(t.data.request_body_size=i),void 0!==o&&(t.data.response_body_size=o),oi(t,r,e)}
2}catch(e){}})(s,e,t))}catch{}t=Object.assign((t,r)=>{if(e.session&&iJ(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&i3(),!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!i1(t)&&!i2(t))return t;if(!e.checkAndHandleExpiredSession())return i3(),t;if(i2(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:az.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return null;let n="buffer"===e.recordingMode&&t.message!==nN&&!!t.exception&&!t.type&&iV(e.getOptions().errorSampleRate);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&iW(t)}return t},{id:"Replay"}),tn().addEventProcessor(t),r&&(r.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let r=t.exception?.values?.[0]?.value;"string"==typeof r&&(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&im(e,iE({category:"replay.hydrate-error",data:{url:eh()}}))}(e,t)}),r.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!i1(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(i1(t))return void function(e,t){let r=e.getContext();t.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,t);!function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags?.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&rD(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),r.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),r.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push(nu(e,r))}),n.push(ns(iI(iM,e)),no(iI(ij,e)),nl(iI(iL,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{G.document.removeEventListener("visibilitychange",this._handleVisibilityChange),G.removeEventListener("blur",this._handleWindowBlur),G.removeEventListener("focus",this._handleWindowFocus),G.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(this.session){if(iJ(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire}))return void i3();e&&this._createCustomBreadcrumb(e),this.conditionalFlush()}}_doChangeToForegroundTasks(e){if(this.session)this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:az.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(iA).filter(
2Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(i4(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents)){if((await of(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new ob;let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let a=await this.eventBuffer.finish();await o_({replayId:e,recordingData:a,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendError"});let e=to();e&&e.recordDroppedEvent(t instanceof ov?"ratelimit_backoff":t instanceof ob?"invalid":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,a=r>this._options.maxReplayDuration+5e3;if(n||a){n&&this._debouncedFlush();return}let i=this.eventBuffer;i&&0===this.session.segmentId&&i.hasCheckout;let o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&iW(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,a=this._options.mutationBreadcrumbLimit,i=n&&r>n;if(r>a||i){let e=iE({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function oS(e,t){return[...e,...t].join(",")}let ok='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',oE=["content-length","content-type","accept"],ox=Symbol.for("sentry__originalRequestBody"),oR=!1,oO=!1;class oT{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:a=!0,useCompression:i=!0,workerUrl:o,_experiments:s={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:y=[],networkCaptureBodies:m=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:w=["title","placeholder","aria-label"],unmask:C=[],block:S=[],unblock:k=[],ignore:E=[],maskFn:x,beforeAddRecordingEvent:R,beforeErrorSampling:O,onError:T,attachRawBodyFromRequest:I=!1}={}){this.name="Replay";let A=function({mask:e,unmask:t,block:r,unblock:n,ignore:a}){return{maskTextSelector:oS(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:oS(t,[]),blockSelector:oS(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:oS(n,[]),ignoreSelector:oS(a,[".sentry-ignore","[data-sentry-ignore]",'
2input[type="file"]'])}}({mask:_,unmask:C,block:S,unblock:k,ignore:E});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:x,maskInputFn:x,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:a,value:i}){if(a.unmaskTextSelector&&e.matches(a.unmaskTextSelector))return i;let o=r.includes(t),s=n&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return o||s?i.replace(/[\S]/g,"*"):i})({maskAttributes:w,maskAllText:l,privacyOptions:A,key:e,value:t,el:r}),...A,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:a,useCompression:i,workerUrl:o,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:g,networkDetailDenyUrls:y,networkCaptureBodies:m,networkRequestHeaders:oI(v),networkResponseHeaders:oI(b),beforeAddRecordingEvent:R,beforeErrorSampling:O,onError:T,attachRawBodyFromRequest:I,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${ok}`:ok,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&rP())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return oR}set _isInitialized(e){oR=e}afterAllSetup(e){rP()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("undefined"==typeof Request||oO)return;let e=Request;try{let t=function(t,r){let n=new e(t,r);return r?.body!=null&&(n[ox]=r.body),n};t.prototype=e.prototype,G.Request=t,oO=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...e},a=tz(r.replaysSessionSampleRate),i=tz(r.replaysOnErrorSampleRate);return null==a&&null==i&&ev(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=a&&(n.sessionSampleRate=a),null!=i&&(n.errorSampleRate=i),n}(this._initialOptions,e);this._replay=new oC({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function oI(e){return[...oE,...e.map(e=>e.toLowerCase())]}let oA=[];function oP(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function oM(e,t,r){if(!r[t.name]){if(r[t.name]=t,oA.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),oA.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}["processSpan","processSegmentSpan"].forEach(r=>{let n=t[r];"function"==typeof n&&e.on(r,r=>n.call(t,r,e))})}}let oj=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/];function oL(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:oj],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function oD(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return null}}let oN=new WeakMap;function oF(e,t){let r=eQ(e),n=eQ(t);if(!r&&!n)return!0;
2if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],a=r[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function oz(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch{return!1}}function o$(e){return e.exception?.values?.[0]}function oU(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}function oB(e,t){if(!t?.length)return!1;for(let n of t){var r;if("string"==typeof(r=n)||r instanceof RegExp){if(e.description&&e1(e.description,n))return!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let a=!n.name||e.description&&e1(e.description,n.name),i=!n.op||e.op&&e1(e.op,n.op),o=!n.attributes||Object.entries(n.attributes).every(([t,r])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?e1(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,r)=>e===t[r]):e===t})(e.attributes?.[t],r));if(a&&i&&o)return!0}return!1}function oq(e,t){var r;let n=t??(r=e,oH().get(r))??[];if(0===n.length)return;let a=e.getOptions(),i=function(e,t,r,n,a){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=tA(n)),rw(i,[function(e,t){let r=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...rP()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:e}]}(e,a)])}(n,a._metadata,a.tunnel,e.getDsn(),a.sendDefaultPii);oH().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function oH(){return Y("clientToLogBufferMap",()=>new WeakMap)}function oV(e,t){var r;let n=t??(r=e,oW().get(r))??[];if(0===n.length)return;let a=e.getOptions(),i=function(e,t,r,n,a){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=tA(n)),rw(i,[function(e,t){let r=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...rP()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:e}]}(e,a)])}(n,a._metadata,a.tunnel,e.getDsn(),a.sendDefaultPii);oW().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function oW(){return Y("clientToMetricBufferMap",()=>new WeakMap)}function oZ(e){return"stream"===e.getOptions().traceLifecycle}function oK(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let oG=Symbol.for("SentryBufferFullError");function oJ(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return tu(oG);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return tl(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>oK(setTimeout(()=>t(!1),e)))]):r}}}let oQ=Symbol.for("SentryInternalError"),oY=Symbol.for("SentryDoNotSendEventError");function oX(e){return{message:e,[oQ]:!0}}function o0(e){return{message:e,[oY]:!0}}function o1(e,t,r,n,a){let i,o=0,s=!1;e.on(r,()=>{o=0,clearTimeout(i),s=!1}),e.on(t,t=>{(o+=n(t))>=8e5?a(e):s||(s=!0,i=oK(setTimeout(()=>{a(e)},5e3)))}),e.on("flush",()=>{a(e)})}class o2{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=oJ(e.transportOptions?.bufferSize??64),e.dsn&&(this._dsn=function(e){let t="string"==typeof e?function(e){let t=tI.exec(e);if(!t)return void ev(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,n,a="",i="",o="",s=""]=t.slice(1),l="",u=s,c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return tP({host:i,pass:a,path:l,projectId:u,port:o,protocol:r,publicKey:n})}(e):tP(e);if(t&&1)return t}(e.dsn)),this._dsn){let t=function(e,t,r){return t||`${function(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/?${function(e,t){let r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(e,r)}`}(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&o1(this,"afterCaptureLog","flushLogs",o9,oq),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&o1(this,"afterCaptureMetric","flushMetrics",o7,oV)}captureException(e,t,r){let n=eA();if(eL(e))return n;let a={event_id:n,...t};return this._process(()=>this.eventFromException(e,a).then(e=>this._captureEvent(e,a,r)).then(e=>e),"error"),a.event_id}captureMessage(e,t,r,n){let a={event_id:eA(),...r},i=ei(e)?e:String(e),o=eo(e),s=o?this.eventFromMessage(i,t,a):this.eventFromException(e,a);return this._process(()=>s.then(e=>this._captureEvent(e,a,n)),o?"unknown":"error"),a.event_id}captureEvent(e,t,r){let n=eA();if(t?.originalException&&eL(t.originalException))return n;let a={event_id:n,...t},i=e.sdkProcessingMetadata||{},o=i.capturedSpanScope,s=i.capturedSpanIsolationScope,l=o5(e.type);return this._process(()=>this._captureEvent(e,a,o||r,s),l),a.event_id}captureSession(e){this.sendSession(e),e$(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;
2if(this.emit("flush"),!t)return!0;let r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){oq(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),oM(this,e,this._integrations),t||oP(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!t.getOptions().streamGenAiSpans||oZ(t))return;let r=[],n=[];for(let t of e.spans)t.op?.startsWith("gen_ai.")?r.push(function(e){var t;return{...t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links},attributes:tj(t.attributes),links:t.links?.map(e=>({...e,attributes:tj(e.attributes)}))}}(t)):n.push(t);if(0===r.length)return;e.spans=n;let a=t.getOptions().sendDefaultPii?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...rP()&&{ingest_settings:{infer_ip:a,infer_user_agent:a}},items:r}]}(e,this),n=function(e,t,r,n){let a=rR(r),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return;let r=e.sdk||{};e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,r?.sdk);let o=rO(e,a,n,t);return delete e.sdkProcessingMetadata,rw(o,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=rC(n,function(e){let t="string"==typeof e.data?rk(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));r&&(n=rC(n,r)),this.sendEnvelope(n).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=ts}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t)return;n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t)return;e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let n=function(e,t,r,n){let a=rR(r);return rw({sent_at:new Date().toISOString(),...a&&{sdk:a},...!!n&&t&&{dsn:tA(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){}return{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let r={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&oM(e,t,r)}),r}(this,e),oP(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,a=t.exception?.values;if(a){for(let e of(n=!0,r=!1,a))if(e.mechanism?.handled===!1){r=!0;break}}let i="ok"===e.status;(i&&0===e.errors||i&&r)&&(e$(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let a=this.getOptions(),i=Object.keys(this._integrations);
2return!t.integrations&&i?.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),rs(a,e,t,r,this,n).then(e=>(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...function(e){let t=o?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:r,parentSpanId:n,propagationSpanId:a}=e.getPropagationContext(),i={trace_id:r,span_id:a||eB()};return n&&(i.parent_span_id=n),i}(r)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:rr(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=tr(),n=tn()){return this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{})}_processEvent(e,t,r,n){let a=this.getOptions(),{sampleRate:i}=a,o=o4(e),s=o3(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===i?void 0:tz(i);if(s&&"number"==typeof c&&eT()>c)return this.recordDroppedEvent("sample_rate","error"),tu(o0(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));let d=o5(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),o0("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if(eu(e))return e.then(e=>{if(!es(e)&&null!==e)throw oX(r);return e},e=>{throw oX(`${t} rejected with ${e}`)});if(!es(e)&&null!==e)throw oX(r);return e}(function(e,t,r,n){let{beforeSend:a,beforeSendTransaction:i,ignoreSpans:o}=t,s=!oU(t.beforeSendSpan)&&t.beforeSendSpan,l=r;if(o3(l)&&a)return a(l,n);if(o4(l)){if(s||o){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:a,origin:i,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:o?.[tk],exclusive_time:o?.[tE],measurements:e.measurements,is_segment:!0}}(l);if(o?.length&&oB({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);if(e)l=eU(r,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[tk]:e.profile_id},...e.exclusive_time&&{[tE]:e.exclusive_time}}}},measurements:e.measurements});else t8()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(o?.length&&oB({description:e.description,op:e.op,attributes:e.data},o)){let t=e.parent_span_id,n=e.span_id;if(t)for(let e of r)e.parent_span_id===n&&(e.parent_span_id=t);continue}if(s){let r=s(e);r?t.push(r):(t8(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(i){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(l,n)}}return l}(this,a,e,t),u)}).then(a=>{if(null===a){if(this.recordDroppedEvent("before_send",d),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw o0(`${u} returned \`null\`, will not send event.`)}let i=r.getSession()||n.getSession();if(s&&i&&this._updateSessionFromEvent(i,a),o){let e=(a.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(a.spans?a.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=a.transaction_info;return o&&l&&a.transaction!==e.transaction&&(a.transaction_info={...l,source:"custom"}),this.sendEvent(a,t),a}).then(null,e=>{var t,r;if((t=e)&&"object"==typeof t&&oY in t||(r=e)&&"object"==typeof r&&oQ in r)throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),oX(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
3Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===oG&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;let t=this._clearOutcomes();if(0===t.length||!this._dsn)return;let r=rw((e=this._options.tunnel&&tA(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:eD(),discarded_events:t}]]);this.sendEnvelope(r)}}function o5(e){return"replay_event"===e?"replay":e||"error"}function o3(e){return void 0===e.type}function o4(e){return"transaction"===e.type}function o7(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+o6(e.attributes)}function o9(e){let t=0;return e.message&&(t+=2*e.message.length),t+o6(e.attributes)}function o6(e){if(!e)return 0;let t=0;
3return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*o8(e[0]):eo(e)?t+=o8(e):t+=100}),t}function o8(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function se(e,t,r=[t],n="npm"){let a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${t}`,a.packages=r.map(e=>({name:`${n}:@sentry/${e}`,version:K})),a.version=K)}function st(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function sr(e){return ee(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function sn(e,t){let r=si(e,t),n={type:function(e){let t=e?.name;return!t&&ss(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e?.message;return ss(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?sr(t.error):sr(e):"No error message"}(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function sa(e,t){return{exception:{values:[sn(e,t)]}}}function si(e,t){var r,n;let a=t.stacktrace||t.stack||"",i=(r=t)&&so.test(r.message)?1:0,o="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(a,i,o)}catch{}return[]}let so=/Minified React error #\d+;/i;function ss(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function sl(e,t,r,n,a){let i;if(er(t)&&t.error)return sa(e,t.error);if(en(t)||et(t,"DOMException")){if("stack"in t)i=sa(e,t);else{let a=t.name||(en(t)?"DOMError":"DOMException"),o=t.message?`${a}: ${t.message}`:a;eM(i=su(e,o,r,n),o)}return"code"in t&&(i.tags={...i.tags,"DOMException.code":`${t.code}`}),i}return ee(t)?sa(e,t):(es(t)||el(t)?ej(i=function(e,t,r,n){let a=to(),i=a?.getOptions().normalizeDepth,o=Object.values(t).find(e=>e instanceof Error),s={__serialized__:function e(t,r=3,n=102400){let a=th(t,r);return~-encodeURI(JSON.stringify(a)).split(/%..|./).length>n?e(t,r-1,n):a}(t,i)};if(o)return{exception:{values:[sn(e,o)]},extra:s};let l={exception:{values:[{type:el(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=function(e){let t=Object.keys(eE(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}(e),n=t?"promise rejection":"exception";if(er(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if(el(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:s};if(r){let t=si(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,a),{synthetic:!0}):(eM(i=su(e,t,r,n),`${t}`,void 0),ej(i,{synthetic:!0})),i)}function su(e,t,r,n){let a={};if(n&&r){let n=si(e,r);n.length&&(a.exception={values:[{value:t,stacktrace:{frames:n}}]}),ej(a,{synthetic:!0})}if(ei(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return a.logentry={message:e,params:r},a}return a.message=t,a}let sc=0;function sd(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)if("function"==typeof t)return t;else return e;if(ek(e))return e}catch{return e}let r=function(...r){try{let n=r.map(e=>sd(e,t));return e.apply(this,n)}catch(e){throw sc++,setTimeout(()=>{sc--}),ti(n=>{var a;n.addEventProcessor(e=>(t.mechanism&&(eM(e,void 0,void 0),ej(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),a=e,tr().captureException(a,function(e){if(e){var t;return(t=e)instanceof e5||"function"==typeof t||Object.keys(e).some(e=>rl.includes(e))?{captureContext:e}:e}}(void 0))}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}eS(r,e),eC(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function sp(){let e=eh(),{referrer:t}=G.document||{},{userAgent:r}=G.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}class sf extends o2{constructor(e){var t;let r=(t=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:G.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t});se(r,"browser",["browser"],G.SENTRY_SDK_SOURCE||"npm"),r._metadata?.sdk&&(r._metadata.sdk.settings={infer_ip:r.sendDefaultPii?"auto":"never",...r._metadata.sdk.settings}),super(r);let{sendDefaultPii:n,sendClientReports:a,enableLogs:i,_experiments:o,enableMetrics:s}=this._options,l=s??o?.enableMetrics??!0;G.document&&(a||i||l)&&G.document.addEventListener("visibilitychange",()=>{"hidden"===G.document.visibilityState&&(a&&this._flushOutcomes(),i&&oq(this),l&&oV(this))}),n&&this.on("beforeSendSession",st)}eventFromException(e,t){return function(e,t,r,n){let a=sl(e,t,r?.syntheticException||void 0,n);return ej(a),a.level="error",r?.event_id&&(a.event_id=r.event_id),tl(a)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,a){let i=su(e,t,n?.syntheticException||void 0,a);return i.level=r,n?.event_id&&(i.event_id=n.event_id),tl(i)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}let sh=new Set([]);
3function sg(){"console"in G&&ey.forEach(function(e){e in G.console&&ew(G.console,e,function(t){return em[e]=t,function(...t){let r=t[0],n=em[e],a=sh.size&&"string"==typeof r&&e2(r,sh);a||nR("console",{args:t,level:e}),a||n?.apply(G.console,t)}})})}function sy(e,t){let r="fetch",n=nE(r,e);return nx(r,()=>sm(void 0,t)),n}function sm(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in G))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(rM(G.fetch))return!0;let e=!1,t=G.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=rM(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){}return e}())&&ew(G,"fetch",function(t){return function(...r){let n=Error(),{method:a,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:sw(t),method:s_(r,"method")?String(r.method).toUpperCase():ep(t)&&s_(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:sw(t),method:s_(t,"method")?String(t.method).toUpperCase():"GET"}}(r),o={args:r,fetchData:{method:a,url:i},startTimestamp:1e3*eN(),virtualError:n,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if(ep(t))return new Headers(t.headers)}catch{}}(r)};return e||nR("fetch",{...o}),t.apply(G,r).then(async t=>(e?e(t):nR("fetch",{...o,endTimestamp:1e3*eN(),response:t}),t),e=>{nR("fetch",{...o,endTimestamp:1e3*eN(),error:e}),ee(e)&&void 0===e.stack&&(e.stack=n.stack,eC(e,"framesToPop",1));let t=to(),r=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(o.fetchData.url).host;"always"===r?e.message=`${e.message} (${t})`:eC(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function sv(e,t){if(e?.body){let r=e.body,n=r.getReader(),a=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),i=!0;for(;i;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:a}=await n.read();clearTimeout(e),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(e)}}clearTimeout(a),n.releaseLock(),r.cancel().then(null,()=>{})}}function sb(e){let t;try{t=e.clone()}catch{return}sv(t,()=>{nR("fetch-body-resolved",{endTimestamp:1e3*eN(),response:e})})}function s_(e,t){return!!e&&"object"==typeof e&&!!e[t]}function sw(e){return"string"==typeof e?e:e?s_(e,"url")?e.url:e.toString?e.toString():"":""}function sC(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}let sS="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");function sk(e){return function(...t){let r=t[0];return t[0]=sd(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${eJ(e)}`}}),e.apply(this,t)}}function sE(e){return function(t){return e.apply(this,[sd(t,{mechanism:{data:{handler:eJ(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function sx(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&ew(r,e,function(t){let r={mechanism:{data:{handler:eJ(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=ek(t);return n&&(r.mechanism.data.handler=eJ(n)),sd(t,r)})}),e.apply(this,t)}}function sR(e,t){let r=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in r||(r[e]=t)})}function sO(){try{let e=G.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let sT=null;function sI(e){let t="error";nE(t,e),nx(t,sA)}function sA(){sT=G.onerror,G.onerror=function(e,t,r,n,a){return nR("error",{column:n,error:a,line:r,msg:e,url:t}),!!sT&&sT.apply(this,arguments)},G.onerror.__SENTRY_INSTRUMENTED__=!0}let sP=null;function sM(e){let t="unhandledrejection";nE(t,e),nx(t,sj)}function sj(){sP=G.onunhandledrejection,G.onunhandledrejection=function(e){return nR("unhandledrejection",e),!sP||sP.apply(this,arguments)},G.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function sL(){let e=to();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function sD(e){return Array.isArray(e.errors)}function sN(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...sD(r)&&{is_exception_group:!0}
3,...e.mechanism,exception_id:t}}function sF(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function sz(e,t,r,n){let a={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==r&&(a.lineno=r),void 0!==n&&(a.colno=n),a}let s$=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,sU=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,sB=/\((\S*)(?::(\d+))(?::(\d+))\)/,sq=/at (.+?) ?\(data:(.+?),/,sH=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,sV=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,sW=eZ([30,e=>{let t=e.match(sq);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=s$.exec(e);if(r){let[,e,t,n]=r;return sz(e,"?",+t,+n)}let n=sU.exec(e);if(n){if(n[2]?.indexOf("eval")===0){let e=sB.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=sZ(n[1]||"?",n[2]);return sz(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{let t=sH.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=sV.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||"?";return[r,e]=sZ(r,e),sz(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),sZ=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:"?",r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function sK(e,t=rL("fetch")){let r=0,n=0;async function a(a){let i=a.body.length;r+=i,n++;let o={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let r=await t(e.url,o);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw rj.fetch=void 0,e}finally{r-=i,n--}}return function(e,t,r=oJ(e.bufferSize||64)){let n={};return{send:function(a){let i=[];if(rS(a,(t,r)=>{let a=rx(r);rT(n,a)?e.recordDroppedEvent("ratelimit_backoff",a):i.push(t)}),0===i.length)return Promise.resolve({});let o=rw(a[0],i),s=t=>{var r;r=["client_report"],rS(o,(e,t)=>r.includes(t))||rS(o,(r,n)=>{e.recordDroppedEvent(t,rx(n))})};return r.add(()=>t({body:function(e){let[t,r]=e,n=JSON.stringify(t);function a(e){"string"==typeof n?n="string"==typeof e?n+e:[rk(n),e]:n.push("string"==typeof e?rk(e):e)}for(let e of r){let[t,r]=e;if(a(`
4${JSON.stringify(t)}
5`),"string"==typeof r||r instanceof Uint8Array)a(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify(th(r))}a(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)}(o)}).then(e=>(413===e.statusCode?s("send_error"):n=rI(n,e),e),e=>{throw s("network_error"),e})).then(e=>e,e=>{if(e===oG)return s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}(e,a,oJ(e.bufferSize||40))}class sG{constructor(e={}){this._traceId=e.traceId||eA(),this._spanId=e.spanId||eB(),this.dropReason=e.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function sJ(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[tw],a=r[tC];"string"==typeof n&&"number"==typeof a&&(t[e.name]={value:a,unit:n})}),t}class sQ{constructor(e={}){this._traceId=e.traceId||eA(),this._spanId=e.spanId||eB(),this._startTime=e.startTimestamp||eN(),this._links=e.links,this._attributes={},this.setAttributes({[tb]:"manual",[tv]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:+!!r}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=tW(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(tg,"custom"),this}end(e){this._endTime||(this._endTime=tW(e),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[tv],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:t0(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tb],profile_id:this._attributes[tk],exclusive_time:this._attributes[tE],measurements:sJ(this._events),is_segment:this._isStandaloneSpan&&t7(this)===this||void 0,segment_id:this._isStandaloneSpan?t7(this).spanContext().spanId:void 0,links:tH(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===t7(this),status:t1(this._status),attributes:this._attributes,links:tV(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){let n=sY(t)?t:r||eN(),a=sY(t)?{}:t||{},i={name:e,time:tW(n),attributes:a};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=to();if(e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===t7(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=to();if(!t)return;let r=e[1];if(!r||0===r.length)return t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}(function(e,t){let r=rn(e[0]),n=t?.getDsn(),a=t?.getOptions().tunnel,i={sent_at:new Date().toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!a&&n&&{dsn:tA(n)}},{beforeSendSpan:o,ignoreSpans:s}=t?.getOptions()||{},l=s?.length?e.filter(e=>{let t=tK(e);return!oB({description:t.description,op:t.op,attributes:t.data},s)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent("before_send","span",u);let c=o?e=>{let t=tK(e),r=oU(o)?t:o(t);return r||(t8(),t)}:tK,d=[];for(let e of l){let t=c(e);t&&d.push([{type:"span"},t])}return rw(i,d)}([this],e)):e&&e.recordDroppedEvent("sample_rate","span"));if(e&&oZ(e))return void e.emit("afterSegmentSpanEnd",this);let t=this._convertSpanToTransaction();t&&(tF(this).scope||tr()).captureEvent(t)}_convertSpanToTransaction(){if(!sX(tK(this)))return;this._name||(this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=tF(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let n=t4(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof sQ&&t.isStandaloneSpan())}).map(e=>tK(e)).filter(sX),a=this._attributes[tg];delete this._attributes[tS];let i=!1;
5n.forEach(e=>{delete e.data[tS],e.op?.startsWith("gen_ai.")&&(i=!0)});let o={contexts:{trace:function(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:a,parent_span_id:i,status:o,origin:s,links:l}=tK(e);return{parent_span_id:i,span_id:t,trace_id:r,data:n,op:a,status:o,origin:s,links:l}}(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:rn(this),hasGenAiSpans:i},request:r,...a&&{transaction_info:{source:a}}},s=sJ(this._events);return s&&Object.keys(s).length&&(o.measurements=s),o}}function sY(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function sX(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function s0(e){let t=tt(J());if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=tW(e.startTime),delete r.startTime,r}return t}(e),{forceTransaction:n,parentSpan:a}=e;return(e.scope?t=>ti(e.scope,t):void 0!==a?e=>s1(a,e):e=>e())(()=>{let t=tr(),i=function(e,t){if(t)return t;if(null===t)return;let r=e[eq];if(!r)return;let n=to();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?t7(r):r}(t,a),o=to();return e.onlyIfParent&&!i?(o?.recordDroppedEvent("no_parent_span","span"),new sG):function({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){var a;let i;if(!tM()){let n=new sG;if(r||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...rn(n)};eC(n,re,e)}return n}let o=to();if(function(e,t){let r=e?.getOptions().ignoreSpans;return!!e&&!!oZ(e)&&!!r?.length&&oB({description:t.name||"",op:t.attributes?.[tv]||t.op,attributes:t.attributes},r)}(o,t))return s5(n)||o?.recordDroppedEvent("ignored","span"),new sG({dropReason:"ignored",traceId:e?.spanContext().traceId??n.getPropagationContext().traceId});let s=tn();if(e&&!r)i=function(e,t,r){let{spanId:n,traceId:a}=e.spanContext(),i=s5(t),o=!i&&tX(e),s=o?new sQ({...r,parentSpanId:n,traceId:a,sampled:o}):new sG({traceId:a});t3(e,s);let l=to();return l&&(oZ(l)&&s instanceof sG&&(e instanceof sG&&e.dropReason?(s.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,"span")):i||(s.dropReason="sample_rate",l.recordDroppedEvent("sample_rate","span"))),l.emit("spanStart",s),r.endTimestamp&&(l.emit("spanEnd",s),l.emit("afterSpanEnd",s))),s}(e,n,t),t3(e,i);else if(e){let r=rn(e),{traceId:a,spanId:o}=e.spanContext(),s=tX(e);eC(i=s2({traceId:a,parentSpanId:o,...t},n,s),re,r)}else{let{traceId:e,dsc:r,parentSpanId:a,sampled:o}={...s.getPropagationContext(),...n.getPropagationContext()};i=s2({traceId:e,parentSpanId:a,...t},n,o),r&&eC(i,re,r)}return(a=i)&&(eC(a,tN,function(e){try{let t=G.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(s)),eC(a,tD,n)),i}({parentSpan:i,spanArguments:r,forceTransaction:n,scope:t})})}function s1(e,t){let r=tt(J());return r.withActiveSpan?r.withActiveSpan(e,t):ti(r=>(eH(r,e||void 0),t(r)))}function s2(e,t,r){let n=to(),a=n?.getOptions()||{},{name:i=""}=e,o={spanAttributes:{...e.attributes},spanName:i,parentSampled:r};n?.emit("beforeSampling",o,{decision:!1});let s=o.parentSampled??r,l=o.spanAttributes,u=t.getPropagationContext(),c=s5(t),[d,p,f]=c?[!1]:function(e,t,r){let n,a;if(!tM(e))return[!1];"function"==typeof e.tracesSampler?(n=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),a=!0):void 0!==t.parentSampled?n=t.parentSampled:void 0!==e.tracesSampleRate&&(n=e.tracesSampleRate,a=!0);let i=tz(n);if(void 0===i)return[!1];if(!i)return[!1,i,a];let o=r<i;return[o,i,a]}(a,{name:i,parentSampled:s,attributes:l,parentSampleRate:tz(u.dsc?.sample_rate)},u.sampleRand),h=new sQ({...e,attributes:{[tg]:"custom",[ty]:void 0!==p&&f?p:void 0,...l},sampled:d});return d||!n||c||n.recordDroppedEvent("sample_rate",oZ(n)?"span":"transaction"),n&&n.emit("spanStart",h),h}function s5(e){return!0===e.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}let s3={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function s4(e,t={}){let r,n=new Map,a=!1,i="externalFinish",o=!t.disableAutoFinish,s=[],{idleTimeout:l=s3.idleTimeout,finalTimeout:u=s3.finalTimeout,childSpanTimeout:c=s3.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:p=!0}
5=t,f=to();if(!f||!tM()){let e=new sG,t={sample_rate:"0",sampled:"false",...rn(e)};return eC(e,re,t),e}let h=tr(),g=t6(),y=function(e){let t=s0(e);return eH(tr(),t),t}(e);function m(){r&&(clearTimeout(r),r=void 0)}function v(e){m(),r=setTimeout(()=>{!a&&0===n.size&&o&&(i="idleTimeout",y.end(e))},l)}function b(e){r=setTimeout(()=>{!a&&o&&(i="heartbeatFailed",y.end(e))},c)}function _(e){a=!0,n.clear(),s.forEach(e=>e()),eH(h,g);let t=tK(y),{start_timestamp:r}=t;if(!r)return;t.data[t_]||y.setAttribute(t_,i);let o=t.status;o&&"unknown"!==o||y.setStatus({code:1}),e_.log(`[Tracing] Idle span "${t.op}" finished`);let c=t4(y).filter(e=>e!==y),d=0;c.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e));let{timestamp:r=0,start_timestamp:n=0}=tK(t),a=n<=e;(!(r-n<=(u+l)/1e3)||!a)&&(y[t2]&&y[t2].delete(t),d++)}),d>0&&y.setAttribute("sentry.idle_span_discarded_spans",d)}return y.end=new Proxy(y.end,{apply(e,t,r){if(d&&d(y),t instanceof sG)return;let[n,...a]=r,i=tW(n||eN()),o=t4(y).filter(e=>e!==y),s=tK(y);if(!o.length||!p)return _(i),Reflect.apply(e,t,[i,...a]);let l=f.getOptions().ignoreSpans,c=o?.reduce((e,t)=>{let r=tK(t);return!r.timestamp||l&&oB({description:r.description,op:r.op,attributes:r.data},l)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),h=s.start_timestamp,g=Math.min(h?h+u/1e3:1/0,Math.max(h||-1/0,Math.min(i,c||1/0)));return _(g),Reflect.apply(e,t,[g,...a])}}),s.push(f.on("spanStart",e=>{var t;!(a||e===y||tK(e).timestamp||e instanceof sQ&&e.isStandaloneSpan())&&t4(y).includes(e)&&(t=e.spanContext().spanId,m(),n.set(t,!0),b(eN()+c/1e3))})),s.push(f.on("spanEnd",e=>{if(!a){var t;t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&v(eN()+l/1e3)}})),s.push(f.on("idleSpanEnableAutoFinish",e=>{e===y&&(o=!0,v(),n.size&&b())})),t.disableAutoFinish||v(),setTimeout(()=>{a||(y.setStatus({code:2,message:"deadline_exceeded"}),i="finalTimeout",y.end())},u),y}let s7=!1;function s9(e){return"number"==typeof e&&isFinite(e)}function s6(e,t,r,{...n}){let a=tK(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),s1(e,()=>{let e=s0({startTime:t,...n});return e&&e.end(r),e})}function s8(e){let t,r=to();if(!r)return;let{name:n,transaction:a,attributes:i,startTime:o}=e,{release:s,environment:l,sendDefaultPii:u}=r.getOptions(),c=r.getIntegrationByName("Replay"),d=c?.getReplayId(),p=tr(),f=p.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}return s0({name:n,attributes:{release:s,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:a,"user_agent.original":G.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...i},startTime:o,experimental:{standalone:!0}})}function le(){return G.addEventListener&&G.performance}function lt(e){return e/1e3}function lr(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function ln(e,t){let r,n=!1;function a(e){!n&&r&&t(e,r.spanContext().spanId,r),n=!0}let i=e=>{("pagehide"===e.type||G.document?.visibilityState==="hidden")&&a("pagehide")};r$("visibilitychange",i,{capture:!0,once:!0}),r$("pagehide",i,{capture:!0,once:!0});let o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(a("navigation"),o(),s())}),s=e.on("afterStartPageLoadSpan",e=>{r=e,s()})}function la(e){return null!=e&&e>0&&e<=6e4}function li(e){return e?((ez()||performance.timeOrigin)+e)/1e3:e}function lo(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=function(e){let t="unknown",r="unknown",n="";for(let a of e){if("/"===a){[t,r]=e.split("/");break}if(!isNaN(Number(a))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=a}return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return ez()||le()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":li(e.redirectStart),"http.request.redirect_end":li(e.redirectEnd),"http.request.worker_start":li(e.workerStart),"http.request.fetch_start":li(e.fetchStart),"http.request.domain_lookup_start":li(e.domainLookupStart),"http.request.domain_lookup_end":li(e.domainLookupEnd),"http.request.connect_start":li(e.connectStart),"http.request.secure_connection_start":li(e.secureConnectionStart),"http.request.connection_end":li(e.connectEnd),"http.request.request_start":li(e.requestStart),"http.request.response_start":li(e.responseStart),"http.request.response_end":li(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let ls=0,ll={};function lu(e,t,r,n,a=r){var i;let o=t["secureConnection"===(i=r)?"connectEnd":"fetch"===i?"domainLookupStart":`${i}End`],s=t[`${r}Start`];s&&o&&s6(e,n+lt(s),n+lt(o),{op:`browser.${a}`,name:t.name,attributes:{[tb]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let lc=[],ld=new Map,lp=new Map,lf={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},lh=({metric:e})=>
5{if(void 0==e.value)return;let t=lt(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&lf[t.name]);if(!r)return;let{interactionId:n}=r,a=lf[r.name],i=lt(ez()+r.startTime),o=t6(),s=o?t7(o):void 0,l=null!=n?ld.get(n):void 0,u=l?.span||s,c=u?tK(u).description:tr().getScopeData().transactionName,d=s8({name:l?.elementName||ef(r.target),transaction:c,attributes:{[tb]:"auto.http.browser.inp",[tv]:`ui.interaction.${a}`,[tE]:r.duration},startTime:i});d&&(d.addEvent("inp",{[tw]:"millisecond",[tC]:e.value}),d.end(i+t))};function lg(e){let{name:t,op:r,origin:n,metricName:a,value:i,attributes:o,parentSpan:s,reportEvent:l,startTime:u,endTime:c}=e,d={[tb]:n,[tv]:r,[tE]:0,[`browser.web_vital.${a}.value`]:i,"sentry.transaction":tr().getScopeData().transactionName,"user_agent.original":G.navigator?.userAgent,...o};s&&tG(s).attributes?.[tv]==="pageload"&&(d["sentry.pageload.span_id"]=s.spanContext().spanId),l&&(d[`browser.web_vital.${a}.report_event`]=l);let p=s0({name:t,attributes:d,startTime:u,parentSpan:s});p&&p.end(c??u)}let ly="sentry_previous_trace";function lm(e){return 1===e.traceFlags}function lv(e={}){let t=e.client||to();if(!function(){let e=to();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}()||!t)return{};let r=tt(J());if(r.getTraceData)return r.getTraceData(e);let n=e.scope||tr(),a=e.span||t6();if(!a&&void 0!==o)return{};let i=a?function(e){let{traceId:t,spanId:r}=e.spanContext();return tU(t,r,tX(e))}(a):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return tU(t,n,r)}(n),s=function(e){if(e){var t=Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${tx}${t}`]=r),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,r],n)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,i=0===n?a:`${e},${a}`;return i.length>8192?e:i},""):void 0}}(a?rn(a):rr(t,n));if(!t$.test(i))return e_.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let l={"sentry-trace":i,baggage:s};return e.propagateTraceparent&&(l.traceparent=a?function(e){let{traceId:t,spanId:r}=e.spanContext();return tB(t,r,tX(e))}(a):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return tB(t,n,r)}(n)),l}function lb(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(tx))}function l_(e,t,r,n){let a={url:rb(e),type:"fetch","http.method":r,[tb]:n,[tv]:"http.client"};return t&&(ry(t)||(a["http.url"]=rb(t.href),a["server.address"]=t.host),t.search&&(a["http.query"]=t.search),t.hash&&(a["http.fragment"]=t.hash)),a}function lw(e){try{return new URL(e,G.location.origin).href}catch{return}}function lC(e){try{return new Headers(e)}catch{return}}let lS=new WeakMap,lk=new Map,lE={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function lx(e,t){let{url:r}=tK(e).data;if(!r||"string"!=typeof r)return;let n=()=>void setTimeout(a);if(oZ(t)){let t=e.end.bind(e);e.end=e=>{let r=e??eN(),i=!1,o=()=>{i||(i=!0,setTimeout(a),t(r),clearTimeout(s))};n=o;let s=setTimeout(o,300)}}let a=nu("resource",({entries:t})=>{t.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(r)&&(e.setAttributes(lo(t)),n())})})}let lR=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i,lO={...s3,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...lE};function lT(e){let t=G.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}function lI(e){let t=G.performance?.getEntriesByType?.("navigation")[0],r=t?.serverTiming?.find(t=>t.name===e);return r?.description}let lA="_sentry_idleSpan",lP="window"in G&&G.window===G&&"undefined"==typeof importScripts,lM=String(0),lj=lP?"main":"worker",lL=G.navigator,lD="",lN="",lF="",lz=lL?.userAgent||"",l$="",lU=lL?.language||lL?.languages?.[0]||"",lB=lL?.userAgentData;function lq(e){return"pageload"===tK(e).op}function lH(e){let t=to(),r=t?.getOptions(),n=r?.stackParser;if(!n)return[];let a=td(n);if(!a)return[];let i=[];for(let t of e){let e=function(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}(t);e&&a[e]&&i.push({type:"sourcemap",code_file:t,debug_id:a[e]})}return i}function lV(e){return!("number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e))&&(!0===e||!1===e||!(e<0)&&!(e>1))}(function(e){return"object"==typeof e&&null!==e&&"getHighEntropyValues"in e})(lB)&&lB.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(lD=e.platform||"",lF=e.architecture||"",l$=e.model||"",lN=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];lz=`${t.brand} ${t.version}`}}).catch(e=>void 0);let lW=!1;function lZ(){let e=G.Profiler;if("function"!=typeof e)return;let t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){lW=!0}}function lK(e){if(lW||!e.isRecording())return!1;let t=to(),r=t?.getOptions();if(!r)return!1;let n=r.profilesSampleRate;return!!lV(n)&&!!n&&!!(!0===n||Math.random()<n)}function lG(e){return void 0!==e.profilesSampleRate}let lJ=new Map,lQ=new WeakSet;function lY(e){e.setAttribute("thread.id",lM),e.setAttribute("thread.name",lj)}function lX(e){let t;lq(e)&&(t=1e3*eN());let r=lZ();if(!r)return;let n=eA(),a=null;async function i(){if(e&&r){if(!a)return r.stop().then(e=>{if(o&&(G.clearTimeout(o),o=void 0),e){a=e;if(lJ.set(n,e),lJ.size>30){let e=lJ.keys().next().value;void 0!==e&&lJ.delete(e)}}}).catch(e=>{})}}tr().setContext("profile",{profile_id:n,start_timestamp:t}),lQ.add(e),lY(e);let o=G.setTimeout(()=>{i()},3e4),s=e.end.bind(e);e.end=function(){return e?(i().then(()=>{s()},()=>{s()}),e):s()}}class l0{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,r=function(e){if(lW||"trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return!1;let t=e.profileSessionSampleRate;return!!lV(t)&&!!t&&Math.random()<=t}(e.getOptions());this._profilerId=eA(),this._client=e,this._sessionSampled=r,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e),e.on("spanStart",e=>{this._isRunning&&lY(e)})}
5start(){if("trace"!==this._lifecycleMode&&!this._isRunning)this._sessionSampled&&this._beginProfiling()}stop(){if("trace"!==this._lifecycleMode)this._isRunning&&this._endProfiling()}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!(!t||this._activeRootSpanIds.has(t)))this._registerTraceRootSpan(t),1===this._activeRootSpanIds.size&&this._beginProfiling(),this._isRunning&&lY(e)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,ta().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{}),"manual"===this._lifecycleMode&&ta().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled||e!==t7(e)||!e.isRecording())return;let t=e.spanContext().spanId;if(!(!t||this._activeRootSpanIds.has(t)))this._registerTraceRootSpan(t),1===this._activeRootSpanIds.size&&this._beginProfiling()}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(t&&this._activeRootSpanIds.has(t))this._activeRootSpanIds.delete(t),0===this._activeRootSpanIds.size&&(this._collectCurrentChunk().catch(e=>{}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,ta().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=lZ();e&&(this._profiler=e)}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=await e.stop(),r=function(e,t,r){if(null==e)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let n=function(e){let t=[];for(let r=0;r<e.frames.length;r++){let n=e.frames[r];n&&(t[r]={function:n.name,abs_path:"number"==typeof n.resourceId?e.resources[n.resourceId]:void 0,lineno:n.line,colno:n.column})}let r=[];for(let t=0;t<e.stacks.length;t++){let n=e.stacks[t];if(!n)continue;let a=[],i=n;for(;i;)a.push(i.frameId),i=void 0===i.parentId?void 0:e.stacks[i.parentId];r[t]=a}let n=ez(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:n||0,i=a-(n||a),o=[];for(let t=0;t<e.samples.length;t++){let r=e.samples[t];if(!r)continue;let n=(a+(r.timestamp-i))/1e3;o[t]={stack_id:r.stackId??0,thread_id:lM,timestamp:n}}return{frames:t,stacks:r,samples:o,thread_metadata:{[lM]:{name:lj}}}}(e),a=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:eA(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:r||eA(),platform:"javascript",version:"2",release:a.release??"",environment:a.environment??"production",debug_meta:{images:lH(e.resources)},profile:n}}(t,this._client,this._profilerId),n=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};let t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let r=e.profile;if(!r)return{reason:"missing profile data"};if(!Array.isArray(r.frames)||!r.frames.length)return{reason:"profile has no frames"};
5if(!Array.isArray(r.stacks)||!r.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(r.samples)||!r.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}(r);if("reason"in n)return;this._sendProfileChunk(r)}catch(e){}}_sendProfileChunk(e){let t=this._client,r=rR(t.getSdkMetadata?.()),n=t.getDsn(),a=t.getOptions().tunnel,i=rw({event_id:eA(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!a&&n&&{dsn:tA(n)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(i).then(null,e=>{})}}var l1=Object.defineProperty,l2=(e,t,r)=>((e,t,r)=>t in e?l1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);class l5{constructor(){l2(this,"idNodeMap",new Map),l2(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function l3(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:l3(e.parentNode,t,r,n+1)}function l4(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}let l7="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",l9={map:{},getId:()=>(console.error(l7),-1),getNode:()=>(console.error(l7),null),removeNodeFromMap(){console.error(l7)},has:()=>(console.error(l7),!1),reset(){console.error(l7)}};function l6(e,t,r,n,a=window){let i=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,n?r:{set(e){ua(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>l6(e,t,i||{},!0)}function l8(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}function ue(e,t,r,n,a){if(!e)return!1;let i=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!i)return!1;let o=l4(t,r);if(!a){let e=n&&i.matches(n);return o(i)&&!e}let s=l3(i,o),l=-1;return!(s<0)&&(n&&(l=l3(i,l4(null,n))),s>-1&&l<0||s<l)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(l9=new Proxy(l9,{get:(e,t,r)=>("map"===t&&console.error(l7),Reflect.get(e,t,r))})),Date.now().toString();let ut={};function ur(e){let t=ut[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return ut[e]=n.bind(window)}function un(...e){return ur("requestAnimationFrame")(...e)}function ua(...e){return ur("setTimeout")(...e)}var ui=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(ui||{});let uo=e=>T?(...t)=>{try{return e(...t)}catch(e){if(T&&!0===T(e))return()=>{};throw e}}:e;for(var us="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ul="undefined"==typeof Uint8Array?[]:new Uint8Array(256),uu=0;uu<us.length;uu++)ul[us.charCodeAt(uu)]=uu;var uc=function(e){var t,r=new Uint8Array(e),n=r.length,a="";for(t=0;t<n;t+=3)a+=us[r[t]>>2],a+=us[(3&r[t])<<4|r[t+1]>>4],a+=us[(15&r[t+1])<<2|r[t+2]>>6],a+=us[63&r[t+2]];return n%3==2?a=a.substring(0,a.length-1)+"=":n%3==1&&(a=a.substring(0,a.length-2)+"=="),a};let ud=new Map,up=(e,t,r)=>{if(!e||!(uh(e,t)||"object"==typeof e))return;let n=function(e,t){let r=ud.get(e);return r||(r=new Map,ud.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),a=n.indexOf(e);return -1===a&&(a=n.length,n.push(e)),a},uf=(e,t,r)=>e.map(e=>(function e(t,r,n){if(t instanceof Array)return t.map(t=>e(t,r,n));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:uc(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(uh(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:up(t,r,n)};return t})(e,t,r)),uh=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function ug(e,t,r,n,a){let i=[];try{let o=l8(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...o){if(!ue(this,t,r,n,!0)){let e="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=e),a&&["webgl","webgl2"].includes(e))if(o[0]&&"object"==typeof o[0]){let e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[i,...o])}});i.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>
5{i.forEach(e=>e())}}function uy(e,t,r,n,a,i,o,s){let l=[];for(let o of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if("function"!=typeof e[o])continue;let u=l8(e,o,function(e){return function(...l){let u=e.apply(this,l);if(up(u,s,this),"tagName"in this.canvas&&!ue(this.canvas,n,a,i,!0)){let e=uf(l,s,this),n={type:t,property:o,args:e};r(this.canvas,n)}return u}});l.push(u)}catch{let n=l6(e,o,{set(e){r(this.canvas,{type:t,property:o,args:[e],setter:!0})}});l.push(n)}return l}class um{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{enableManualSnapshot:t,sampling:r="all",win:n,recordCanvas:a,errorHandler:i}=e;if(e.sampling=r,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,i&&(T=i),(a&&"number"==typeof r||t)&&(this.worker=this.initFPSWorker()),this.addWindow(n),t)return;uo(()=>{a&&"all"===r&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&"number"==typeof r&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t="all",blockClass:r,blockSelector:n,unblockSelector:a,recordCanvas:i,enableManualSnapshot:o}=this.options;if(!this.windowsSet.has(e)){if(o){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}uo(()=>{if(i&&"all"===t&&this.initCanvasMutationObserver(e,r,n,a),i&&"number"==typeof t){let t=ug(e,r,n,a,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){if(t?.skipRequestAnimationFrame)return void this.takeSnapshot(performance.now(),!0,e);un(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e=new Worker(function(){let e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{let t=e.data,{id:r}=t;if(this.snapshotInProgressMap.set(r,!1),!("base64"in t))return;let{base64:n,type:a,width:i,height:o}=t;this.mutationCb({id:r,type:ui["2D"],commands:[{property:"clearRect",args:[0,0,i,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:a}]},0,0,i,o]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=r=>{this.takeSnapshot(r,!1),e=un(t)};e=un(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,r,n){let a=ug(e,t,r,n,!1),i=function(e,t,r,n,a){let i=[];for(let o of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;let s=l8(t.CanvasRenderingContext2D.prototype,o,function(i){return function(...s){return ue(this.canvas,r,n,a,!0)||ua(()=>{let r=uf(s,t,this);e(this.canvas,{type:ui["2D"],property:o,args:r})},0),i.apply(this,s)}});i.push(s)}catch{let r=l6(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:ui["2D"],property:o,args:[t],setter:!0})}});i.push(r)}return()=>
5{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n),o=function(e,t,r,n,a,i){let o=[];return o.push(...uy(t.WebGLRenderingContext.prototype,ui.WebGL,e,r,n,a,i,t)),void 0!==t.WebGL2RenderingContext&&o.push(...uy(t.WebGL2RenderingContext.prototype,ui.WebGL2,e,r,n,a,i,t)),()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n,this.mirror);this.restoreHandlers.push(()=>{a(),i(),o()})}getCanvasElements(e,t,r){let n=[],a=a=>{a.querySelectorAll("canvas").forEach(a=>{ue(a,e,t,r,!0)||n.push(a)})};for(let e of this.windows){let t,r=e.deref();try{t=r&&r.document}catch{}t&&a(t)}for(let e of this.shadowDoms){let t=e.deref();t&&a(t)}return n}takeSnapshot(e,t,r){let{sampling:n,blockClass:a,blockSelector:i,unblockSelector:o,dataURLOptions:s,maxCanvasSize:l}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===n?2:n||2)))&&(this.lastSnapshotTime=e,(r?[r]:this.getCanvasElements(a,i,o)).forEach(e=>{let r=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(r))){if(this.snapshotInProgressMap.set(r,!0),!t&&["webgl","webgl2"].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:r,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{uo(()=>{throw this.snapshotInProgressMap.delete(r),e})()})}}),!0)}startPendingCanvasMutationFlusher(){un(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,un(e)};un(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),un(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let n=r.map(e=>{let{type:t,...r}=e;return r}),{type:a}=r[0];this.mutationCb({id:t,type:a,commands:n}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new l5,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(A||(A={}));let uv={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},ub=(e,t)=>{let r=(null==t?void 0:t.originalException)instanceof Error?t.originalException.name:"";return"AuthenticationError"===r||"AuthorizationError"===r?null:e},u_=null,uw=()=>{let e=(0,W.md)(Z.l9);return(0,q.useEffect)(()=>{if(to()||!(null==e?void 0:e.analytics))return;let t="https://8dccf5d85af0a41e646dff785dc1f214@o4510665146236928.ingest.us.sentry.io/4510665147088896";t&&(u_=new oT(void 0),function(e){let t={...e};se(t,"react"),rc("react",{version:q.version}),function(e={}){var t,r;let n,a=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===G.window||G.nw)return!1;let e=G.chrome||G.browser;if(!e?.runtime?.id)return!1;let t=eh();return!(G===G.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}(),i=null==e.defaultIntegrations?[((e={})=>({...((e={})=>{let t;return{name:"EventFilters",setup(r){t=oL(e,r.getOptions())},processEvent:(r,n,a)=>(t||(t=oL(e,a.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&e2(r,t)}(e,t.ignoreTransactions))return!0}else{var r,n,a;if(r=e,n=t.ignoreErrors,n?.length&&(function(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t})(r).some(e=>e2(e,n)))return!0;if(a=e,a.exception?.values?.length&&!a.message&&!a.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)||function(e,t){if(!t?.length)return!1;let r=oD(e);return!!r&&e2(r,t)}(e,t.denyUrls)||!function(e,t){if(!t?.length)return!0;let r=oD(e);return!r||e2(r,t)}(e,t.allowUrls))return!0}return!1}(r,t)?r:null)}})(e),name:"InboundFilters"}))(),{name:"FunctionToString",setupOnce(){x=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=ek(this),r=oN.has(to())&&void 0!==t?t:this;return x.apply(r,e)}}catch{}},setup(e){oN.set(e,!0)}},{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=tr().getScopeData(),r=tn().getScopeData(),n=t.conversationId||r.conversationId;if(n){let{op:t,data:r,description:a}=tK(e);if(!t?.startsWith("gen_ai.")&&!r["ai.operationId"]&&!a?.startsWith("ai."))return;e.setAttribute("gen_ai.conversation.id",n)}})}},((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&ew(G,"setTimeout",sk),t.setInterval&&ew(G,"setInterval",sk),t.requestAnimationFrame&&ew(G,"requestAnimationFrame",sE),t.XMLHttpRequest&&"XMLHttpRequest"in G&&ew(XMLHttpRequest.prototype,"send",sx
5);let e=t.eventTarget;e&&(Array.isArray(e)?e:sS).forEach(e=>(function(e,t){let r=G[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(ew(r,"addEventListener",function(r){return function(n,a,i){var o,s,l,u;try{o=a,"function"==typeof o.handleEvent&&(a.handleEvent=sd(a.handleEvent,{mechanism:{data:{handler:eJ(a),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&(s=this,l=n,u=a,s&&"object"==typeof s&&"removeEventListener"in s&&"function"==typeof s.removeEventListener&&s.removeEventListener(l,u)),r.apply(this,[n,sd(a,{mechanism:{data:{handler:eJ(a),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),ew(r,"removeEventListener",function(e){return function(t,r,n){try{let a=r.__sentry_wrapped__;a&&e.call(this,t,a,n)}catch{}return e.call(this,t,r,n)}}))})(e,t))}}})(),((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,n,a,i,o,s,l;t.console&&function(e){let t="console";nE(t,e),nx(t,sg)}((r=e,function(e){var t;if(to()!==r)return;let n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log",message:e0(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else n.message=`Assertion failed: ${e0(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1);rg(n,{input:e.args,level:e.level})})),t.dom&&nA((n=e,a=t.dom,function(e){let t,r;if(to()!==n)return;let i="object"==typeof a?a.serializeAttribute:void 0,o="object"==typeof a&&"number"==typeof a.maxStringLength?a.maxStringLength:void 0;o&&o>1024&&(o=1024),"string"==typeof i&&(i=[i]);try{var s;let n=e.event,a=(s=n)&&s.target?n.target:n;t=ef(a,{keyAttrs:i,maxStringLength:o}),r=eg(a)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),rg(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&nT((i=e,function(e){if(to()!==i)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[nO];if(!t||!r||!n)return;let{method:a,url:o,status_code:s,body:l}=n,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r},c={category:"xhr",data:{method:a,url:o,status_code:s},type:"http",level:sC(s)};i.emit("beforeOutgoingRequestBreadcrumb",c,u),rg(c,u)})),t.fetch&&sy((o=e,function(e){if(to()!==o)return;let{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let n={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},a={category:"fetch",data:e.fetchData,level:"error",type:"http"};o.emit("beforeOutgoingRequestBreadcrumb",a,n),rg(a,n)}else{let n=e.response,a={...e.fetchData,status_code:n?.status},i={input:e.args,response:n,startTimestamp:t,endTimestamp:r},s={category:"fetch",data:a,type:"http",level:sC(a.status_code)};o.emit("beforeOutgoingRequestBreadcrumb",s,i),rg(s,i)}})),t.history&&nj((s=e,function(e){if(to()!==s)return;let t=e.from,r=e.to,n=rv(G.location.href),a=t?rv(t):void 0,i=rv(r);a?.path||(a=n),n.protocol===i.protocol&&n.host===i.host&&(r=i.relative),n.protocol===a.protocol&&n.host===a.host&&(t=a.relative),rg({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){to()===l&&rg({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:function(e){let{message:t,event_id:r}=e;if(t)return t;let n=eP(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}(e)},{event:e})}))}}})(),((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,n;t.onerror&&(r=e,sI(e=>{let{stackParser:t,attachStacktrace:n}=sL();if(to()!==r||sc>0)return;let{msg:a,url:i,line:o,column:s,error:l}=e,u=function(e,t,r,n){let a=e.exception=e.exception||{},i=a.values=a.values||[],o=i[0]=i[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[];return 0===l.length&&l.push({colno:n,lineno:r,filename:function(e){if(ea(e)&&0!==e.length)return e.startsWith("data:")?`<${rb(e,!1)}>`:e}(t)??eh(),function:"?",in_app:!0}),e}(sl(t,l||a,void 0,n,!1),i,o,s);u.level="error",ru(u,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})),t.onunhandledrejection&&(n=e,sM(e=>{var t;let{stackParser:r,attachStacktrace:a}=sL();if(to()!==n||sc>0)return;let i=function(e){if(eo(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(e),o=eo(i)?(t=i,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):sl(r,i,void 0,a,!0);o.level="error",ru(o,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}))}}})(),((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,a){!function(e,t,r,n,a,i){if(!a.exception?.values||!i||!ec(i.originalException,Error))return;let o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=function e(t,r,n,a,i,o,s,l){if(o.length>=n+1)return o;let u=[...o];if(ec(a[i],Error)){sN(s,l,a);let o=t(r,a[i]),c=u.length;sF(o,i,c,l),u=e(t,r,n,a[i],i,[o,...u],o,c)}
5return sD(a)&&a.errors.forEach((o,c)=>{if(ec(o,Error)){sN(s,l,a);let d=t(r,o),p=u.length;sF(d,`errors[${c}]`,p,l),u=e(t,r,n,o,i,[d,...u],d,p)}}),u}(e,t,n,i.originalException,r,a.exception.values,o,0))}(sn,a.getOptions().stackParser,r,t,e,n)}}})(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var t,r;if(t=e,(r=n)&&(function(e,t){let r=e.message,n=t.message;return(!!r||!!n)&&(!r||!!n)&&(!!r||!n)&&r===n&&!!oz(e,t)&&!!oF(e,t)&&!0}(t,r)||function(e,t){let r=o$(t),n=o$(e);return!!r&&!!n&&r.type===n.type&&r.value===n.value&&!!oz(e,t)&&!!oF(e,t)}(t,r)))return null}catch{}return n=e}},{name:"HttpContext",preprocessEvent(e){if(!G.navigator&&!G.location&&!G.document)return;let t=sp(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}},processSegmentSpan(e){if(!G.navigator&&!G.location&&!G.document)return;let t=sp();sR(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer})}},{name:"CultureContext",preprocessEvent(e){let t=sO();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=sO();t&&sR(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}},((e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===G.document)return;rd({ignoreDuration:!0}),rh();let e=tn(),r=e.getUser();e.addScopeListener(e=>{let t=e.getUser();
5(r?.id!==t?.id||r?.ip_address!==t?.ip_address)&&(rh(),r=t)}),"route"===t&&nj(({from:e,to:t})=>{e!==t&&(rd({ignoreDuration:!0}),rh())})}}})()]:e.defaultIntegrations,o={...e,enabled:!a&&e.enabled,stackParser:Array.isArray(t=e.stackParser||sW)?eZ(...t):t,integrations:function(e){let t,r=e.defaultIntegrations||[],n=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))t=[...r,...n];else if("function"==typeof n){let e=n(r);t=Array.isArray(e)?e:[e]}else t=r;let a={};return t.forEach(e=>{let{name:t}=e,r=a[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(a[t]=e)}),Object.values(a)}({integrations:e.integrations,defaultIntegrations:i}),transport:e.transport||sK};!0===o.debug&&ev(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}),tr().update(o.initialScope);let s=new sf(o);r=s,tr().setClient(r),s.init()}(t)}({dsn:t,environment:"production",integrations:[((e={})=>{let t,r,n;"enableElementTiming"in e&&ev(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let a={name:void 0,source:void 0},i=G.document,{enableInp:o,enableLongTask:s,enableLongAnimationFrame:l,_experiments:{enableInteractions:u,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:d},beforeStartSpan:p,idleTimeout:f,finalTimeout:g,childSpanTimeout:y,markBackgroundSpan:m,traceFetch:v,traceXHR:b,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:w,enableHTTPTimings:C,ignoreResourceSpans:S,ignorePerformanceApiSpans:k,instrumentPageLoad:E,instrumentNavigation:x,detectRedirects:T,linkPreviousTrace:I,consistentTraceSampling:A,enableReportPageLoaded:P,onRequestSpanStart:M,onRequestSpanEnd:j}={...lO,...e},L=function(){let e=G.navigator;return!!e?.userAgent&&lR.test(e.userAgent)}();function D(e,r,o=!0){let s="pageload"===r.op,l=r.name,u=p?p(r):r,h=u.attributes||{};if(l!==u.name&&(h[tg]="custom",u.attributes=h),!o){let e=eD();s0({...u,startTime:e}).end(e);return}a.name=u.name,a.source=h[tg];let m=s4(u,{idleTimeout:f,finalTimeout:g,childSpanTimeout:y,disableAutoFinish:s,beforeSpanEnd:r=>{t?.();let a=oZ(e);!function(e,t){let r=le(),n=ez();if(!r?.getEntries||!n)return;let{spanStreamingEnabled:a,ignorePerformanceApiSpans:i,ignoreResourceSpans:o,recordClsOnPageloadSpan:s,recordLcpOnPageloadSpan:l}=t,u=lt(n),c=r.getEntries(),{op:d,start_timestamp:p}=tK(e);if(c.slice(ls).forEach(t=>{let r=lt(t.startTime),n=lt(Math.max(0,t.duration));if("navigation"!==d||!p||!(u+r<p))switch(t.entryType){case"navigation":var a,s,l;a=e,s=t,l=u,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{lu(a,s,e,l)}),lu(a,s,"secureConnection",l,"TLS/SSL"),lu(a,s,"fetch",l,"cache"),lu(a,s,"domainLookup",l,"DNS"),function(e,t,r){let n=r+lt(t.requestStart),a=r+lt(t.responseEnd),i=r+lt(t.responseStart);t.responseEnd&&(s6(e,n,a,{op:"browser.request",name:t.name,attributes:{[tb]:"auto.ui.browser.metrics"}}),s6(e,i,a,{op:"browser.response",name:t.name,attributes:{[tb]:"auto.ui.browser.metrics"}}))}(a,s,l);break;case"mark":case"paint":case"measure":{!function(e,t,r,n,a,i){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&e2(t.name,i))return;let o=rF(!1),s=a+Math.max(r,lt(o?o.requestStart:0)),l=a+r,u=l+n,c={[tb]:"auto.resource.browser.metrics"};s!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=s),function(e,t){try{let r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&eo(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if(eo(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(c,t),s<=u&&s6(e,s,u,{name:t.name,op:t.entryType,attributes:c})}(e,t,r,n,u,i);let a=rV(),o=t.startTime<a.firstHiddenTime;"first-paint"===t.name&&o&&(ll.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(ll.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,r,n,a,i,o){var s,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(u))return;let c={[tb]:"auto.resource.browser.metrics"},d=rv(r);d.protocol&&(c["url.scheme"]=d.protocol.split(":").pop()),d.host&&(c["server.address"]=d.host),c["url.same_origin"]=r.includes(G.location.origin),s=t,l=c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEac
5h(([e,t])=>{let r=s[e];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(l[t]=r)});let p={...c,...lo(t)},f=i+n;s6(e,f,f+a,{name:r.replace(G.location.origin,""),op:u,attributes:p})}(e,t,t.name,r,n,u,o)}}),ls=Math.max(c.length-1,0),function(e,t){let r=G.navigator;if(!r)return;let n=r.connection;n&&(n.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute(t?"network.connection.type":"connectionType",n.type),s9(n.rtt)&&(ll["connection.rtt"]={value:n.rtt,unit:"millisecond"},t&&e.setAttribute("network.connection.rtt",n.rtt))),s9(r.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",r.deviceMemory):e.setAttribute("deviceMemory",`${r.deviceMemory} GB`)),s9(r.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",r.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(r.hardwareConcurrency)))}(e,a),"pageload"===d){if(function(e){let t=rF(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(ll),a){let t=(t,r,n)=>{let a=n??`browser.web_vital.${t}.value`;e.setAttribute(a,r)};["ttfb","fp","fcp"].forEach(e=>{ll[e]&&t(e,ll[e].value)}),ll["ttfb.requestTime"]&&t("ttfb.requestTime",ll["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else{var f,h;s||delete ll.cls,l||delete ll.lcp,Object.entries(ll).forEach(([e,t])=>{!function(e,t,r,n=t6()){let a=n&&t7(n);a&&a.addEvent(e,{[tC]:t,[tw]:r})}(e,t.value,t.unit)}),f=e,h=t,R&&h.recordLcpOnPageloadSpan&&(R.element&&f.setAttribute("lcp.element",ef(R.element)),R.id&&f.setAttribute("lcp.id",R.id),R.url&&f.setAttribute("lcp.url",R.url.trim().slice(0,200)),null!=R.loadTime&&f.setAttribute("lcp.loadTime",R.loadTime),null!=R.renderTime&&f.setAttribute("lcp.renderTime",R.renderTime),f.setAttribute("lcp.size",R.size)),O?.sources&&h.recordClsOnPageloadSpan&&O.sources.forEach((e,t)=>f.setAttribute(`cls.source.${t+1}`,ef(e.node)))}e.setAttribute(a?"browser.performance.time_origin":"performance.timeOrigin",u),e.setAttribute(a?"browser.performance.navigation.activation_start":"performance.activationStart",rz())}R=void 0,O=void 0,ll={}}(r,{recordClsOnPageloadSpan:!a&&!c,recordLcpOnPageloadSpan:!a&&!d,ignoreResourceSpans:S,ignorePerformanceApiSpans:k,spanStreamingEnabled:a}),eC(e,lA,void 0);let i=tr(),o=i.getPropagationContext();i.setPropagationContext({...o,traceId:m.spanContext().traceId,sampled:tX(m),dsc:rn(r)}),s&&(n=void 0)},trimIdleSpanEndTimestamp:!P});function v(){i&&["interactive","complete"].includes(i.readyState)&&e.emit("idleSpanEnableAutoFinish",m)}s&&P&&(n=m),eC(e,lA,m),s&&!P&&i&&(i.addEventListener("readystatechange",()=>{v()}),v())}return{name:"BrowserTracing",setup(e){if(L)return;function a(){let e=t6(),t=e&&t7(e);t&&t.setStatus({code:2,message:"internal_error"})}s7||(a.tag="sentry_tracingErrorCallback",s7=!0,sI(a),sM(a));let p=oZ(e);if(t=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=le();if(n&&ez()){n.mark&&G.performance.mark("sentry-tracing-init");let a=t?function(e){let t,r=0;if(!lr("largest-contentful-paint"))return;let n=ns(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&la(e.value)&&(r=e.value,t=n)},!0);ln(e,(e,a)=>{(function(e,t,r,n){if(!la(e))return;let a=lt((ez()||0)+(t?.startTime||0)),i=tr().getScopeData().transactionName,o=t?ef(t.element):"Largest contentful paint",s={[tb]:"auto.http.browser.lcp",[tv]:"ui.webvital.lcp",[tE]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t&&(t.element&&(s["lcp.element"]=ef(t.element)),t.id&&(s["lcp.id"]=t.id),t.url&&(s["lcp.url"]=t.url),null!=t.loadTime&&(s["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(s["lcp.renderTime"]=t.renderTime),null!=t.size&&(s["lcp.size"]=t.size));let l=s8({name:o,transaction:i,attributes:s,startTime:a});l&&(l.addEvent("lcp",{[tw]:"millisecond",[tC]:e}),l.end(a))})(r,t,a,e),n()})}(r):!1===t?ns(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&la(e.value)&&(ll.lcp={value:e.value,unit:"millisecond"},R=t)},!0):void 0,i=e?function(e){let t,r=0;if(!lr("layout-shift"))return;let n=no(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);ln(e,(e,a)=>{(function(e,t,r,n){let a=t?lt((ez()||0)+t.startTime):eN(),i=tr().getScopeData().transactionName,o=t?ef(t.sources[0]?.node):"Layout shift",s={[tb]:"auto.http.browser.cls",[tv]:"ui.webvital.cls",[tE]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};
5t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=ef(e.node)});let l=s8({name:o,transaction:i,attributes:s,startTime:a});l&&(l.addEvent("cls",{[tw]:"",[tC]:e}),l.end(a))})(r,t,a,e),n()})}(r):!1===e?no(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ll.cls={value:e.value,unit:""},O=t)},!0):void 0,o=ng("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(ll.ttfb={value:e.value,unit:"millisecond"})},nf,h);return()=>{o(),a?.(),i?.()}}return()=>void 0}({recordClsStandaloneSpans:p?void 0:c||!1,recordLcpStandaloneSpans:p?void 0:d||!1,client:e}),p?(!function(e){let t,r=0;if(!lr("largest-contentful-paint"))return;let n=ns(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&la(e.value)&&(r=e.value,t=n)},!0);ln(e,(e,a,i)=>{(function(e,t,r,n){if(!la(e))return;let a=ez()||0,i=lt(a),o=lt(a+(t?.startTime||0)),s=t?ef(t.element):"Largest contentful paint",l={};t?.element&&(l["browser.web_vital.lcp.element"]=ef(t.element)),t?.id&&(l["browser.web_vital.lcp.id"]=t.id),t?.url&&(l["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(l["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(l["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(l["browser.web_vital.lcp.size"]=t.size),lg({name:s,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:r,reportEvent:n,startTime:i,endTime:o})})(r,t,i,e),n()})}(e),!function(e){let t,r=0;if(!lr("layout-shift"))return;let n=no(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);ln(e,(e,a,i)=>{(function(e,t,r,n){let a=t?lt((ez()||0)+t.startTime):eN(),i=t?ef(t.sources[0]?.node):"Layout shift",o={};t?.sources&&t.sources.forEach((e,t)=>{o[`browser.web_vital.cls.source.${t+1}`]=ef(e.node)}),lg({name:i,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:o,parentSpan:r,reportEvent:n,startTime:a})})(r,t,i,e),n()})}(e),o&&le()&&ez()&&nl(({metric:e})=>{if(null==e.value||lt(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&lf[t.name]);t&&function(e,t){var r;let n=lt(ez()+t.startTime),a=lt(e),i=lf[t.name],o=null!=(r=t.interactionId)?ld.get(r):void 0,s=t6(),l=s?t7(s):void 0,u=o?.span||l,c=u?tG(u).name:tr().getScopeData().transactionName;lg({name:o?.elementName||ef(t.target),op:`ui.interaction.${i}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[tE]:t.duration,"sentry.transaction":c},startTime:n,endTime:n+a,parentSpan:u})}(e.value,t)})):o&&function(){if(le()&&ez()){let e=nl(lh);()=>{e()}}}(),l&&G.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=t6();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=lt(ez()+r.startTime),{start_timestamp:n,op:a}=tK(t);if("navigation"===a&&n&&e<n)continue;let i=lt(r.duration),o={[tb]:"auto.ui.browser.metrics"},{invoker:s,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:d}=r.scripts[0];o["browser.script.invoker"]=s,o["browser.script.invoker_type"]=l,u&&(o["code.filepath"]=u),c&&(o["code.function"]=c),-1!==d&&(o["browser.script.source_char_position"]=d),s6(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:o})}}).observe({type:"long-animation-frame",buffered:!0}):s&&nu("longtask",({entries:e})=>{let t=t6();if(!t)return;let{op:r,start_timestamp:n}=tK(t);for(let a of e){let e=lt(ez()+a.startTime),i=lt(a.duration);"navigation"===r&&n&&e<n||s6(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[tb]:"auto.ui.browser.metrics"}})}}),u&&nu("event",({entries:e})=>{let t=t6();
5if(t){for(let r of e)if("click"===r.name){let e=lt(ez()+r.startTime),n=lt(r.duration),a={name:ef(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[tb]:"auto.ui.browser.metrics"}},i=eg(r.target);i&&(a.attributes["ui.component_name"]=i),s6(t,e,e+n,a)}}}),T&&i){let e=()=>{r=eN()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function f(){let t=e[lA];t&&!tK(t).timestamp&&(t.setAttribute(t_,"cancelled"),t.end())}e.on("startNavigationSpan",(t,n)=>{if(to()!==e)return;if(n?.isRedirect)return void D(e,{op:"navigation.redirect",...t},!1);r=void 0,f(),tn().setPropagationContext({traceId:eA(),sampleRand:Math.random(),propagationSpanId:tM()?void 0:eB()});let a=tr();a.setPropagationContext({traceId:eA(),sampleRand:Math.random(),propagationSpanId:tM()?void 0:eB()}),a.setSDKProcessingMetadata({normalizedRequest:void 0}),D(e,{op:"navigation",...t,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,r={})=>{if(to()!==e)return;f();let n=function(e,t){let r=function(e){let t;if(!e)return;let r=e.match(t$);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}(e),n=tR(t);if(!r?.traceId)return{traceId:eA(),sampleRand:eT()};let a=function(e,t){let r=tz(t?.sample_rand);if(void 0!==r)return r;let n=tz(t?.sample_rate);return n&&e?.parentSampled!==void 0?e.parentSampled?eT()*n:n+eT()*(1-n):eT()}(r,n);n&&(n.sample_rand=a.toString());let{traceId:i,parentSpanId:o,parentSampled:s}=r;return{traceId:i,parentSpanId:o,sampled:s,dsc:n||{},sampleRand:a}}(r.sentryTrace||lT("sentry-trace")||lI("sentry-trace"),r.baggage||lT("baggage")||lI("baggage")),a=tr();a.setPropagationContext(n),tM()||(a.getPropagationContext().propagationSpanId=eB()),a.setSDKProcessingMetadata({normalizedRequest:sp()}),D(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{P&&n&&(n.setAttribute(t_,"reportPageLoaded"),n.end())})},afterAllSetup(e){var t,n,i,s,l;let c;if(L)return;let d=eh();if("off"!==I&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,a=n?function(){try{let e=G.sessionStorage?.getItem(ly);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if(t7(e)!==e)return;let t=tr().getPropagationContext();a=function(e,t,r){let n=tK(t),a={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{return Number(r.dsc?.sample_rate)??Number(n.data?.[ty])}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return a;let i=e.spanContext;return i.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(t.addLink({context:i,attributes:{"sentry.link.type":"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${i.traceId}-${i.spanId}-${+!!lm(i)}`)),a)}(a,e,t),n&&function(e){try{G.sessionStorage.setItem(ly,JSON.stringify(e))}catch(e){}}(a)});let i=!0;r&&e.on("beforeSampling",e=>{if(!a)return;let t=tr(),r=t.getPropagationContext();if(i&&r.parentSpanId){i=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(a.sampleRate),sampled:String(lm(a.spanContext))},sampleRand:a.sampleRand}),e.parentSampled=lm(a.spanContext),e.parentSampleRate=a.sampleRate,e.spanAttributes={...e.spanAttributes,[tm]:a.sampleRate}})}(e,{linkPreviousTrace:I,consistentTraceSampling:A}),G.location){if(E){let t=ez();!function(e,t,r){e.emit("startPageLoadSpan",t,void 0),tr().setTransactionName(t.name);let n=e[lA];n&&e.emit("afterStartPageLoadSpan",n)}(e,{name:G.location.pathname,startTime:t?t/1e3:void 0,attributes:{[tg]:"url",[tb]:"auto.pageload.browser"}})}x&&nj(({to:t,from:n})=>{if(void 0===n&&d?.indexOf(t)!==-1){d=void 0;return}d=void 0;let a=rm(t),i=e[lA],o=i&&T&&function(e,t){let r=tK(e),n=eD();return!(n-r.start_timestamp>1.5)&&(!t||!(n-t<=1.5))}(i,r);!function(e,t,r){let{url:n,isRedirect:a}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:a}),e.emit("startNavigationSpan",t,{isRedirect:a});let i=tr();i.setTransactionName(t.name),n&&!a&&i.setSDKProcessingMetadata({normalizedRequest:{...sp(),url:n}}),e[lA]}(e,{name:a?.pathname||G.location.pathname,attributes:{[tg]:"url",[tb]:"auto.navigation.browser"}},{url:t,isRedirect:o})})}m&&G.document&&G.document.addEventListener("visibilitychange",()=>{let e=t6();if(!e)return;let t=t7(e);if(G.document.hidden&&t){let{op:e,status:r}=tK(t);r||t.setStatus({code:2,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),u&&(t=e,n=f,i=g,s=y,l=a,G.document&&addEventListener("click",()=>{let e=t[lA];if(!(e&&["navigation","pageload"].includes(tK(e).op)))c&&(c.setAttribute(t_,"interactionInterrupted"),c.end(),c=void 0),l.name&&(c=s4({name:l.name,op:"ui.action.click",attributes:{[tg]:l.source||"url"}},{idleTimeout:n,finalTimeout:i,childSpanTimeout:s}
5))},{capture:!0})),o&&function(){let e=Object.keys(lf);function t(e){let t=e.target;if(!t)return;let r=ef(t),n=Math.round(e.timeStamp);if(lp.set(n,r),lp.size>50){let e=lp.keys().next().value;void 0!==e&&lp.delete(e)}}rP()&&e.forEach(e=>{G.addEventListener(e,t,{capture:!0,passive:!0})});let r=({entries:e})=>{let t=t6(),r=t&&t7(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||ld.has(t))return;let n=e.target?ef(e.target):function(e){let t=Math.round(e.startTime),r=lp.get(t);if(!r)for(let e=-5;e<=5;e++){let n=lp.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(lc.length>10){let e=lc.shift();ld.delete(e)}lc.push(t),ld.set(t,{span:r,elementName:n})})};nu("event",r),nu("first-input",r)}(),function(e,t){let{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:a,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:l,onRequestSpanEnd:u}={...lE,...t},c="function"==typeof i?i:e=>!0,d=e=>(function(e,t){let r=eh();if(r){let n,a;try{n=new URL(e,r),a=new URL(r).origin}catch{return!1}let i=n.origin===a;return t?e2(n.toString(),t)||i&&e2(n.pathname,t):i}{let r=!!e.match(/^\/(?!\/)/);return t?e2(e,t):r}})(e,s),p={},f=e.getOptions().propagateTraceparent;r&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=lk.get(e.span_id);t&&(e.timestamp=t/1e3,lk.delete(e.span_id))}}),e)),a&&function(e){let t="fetch-body-resolved";nE(t,e),nx(t,()=>sm(sb))}(e=>{if(e.response){let t=lS.get(e.response);t&&e.endTimestamp&&lk.set(t,e.endTimestamp)}}),sy(t=>{let r=function(e,t,r,n,a){if(!e.fetchData)return;let{method:i,url:o}=e.fetchData,s=tM()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let r=n[t];r&&(s&&(function(e,t){if(t.response){tL(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(r,e),function(e,t,r){let n="object"==typeof r&&null!==r?r.onRequestSpanEnd:void 0;n?.(e,{headers:t.response?.headers,error:t.error})}(r,e,a)),delete n[t]);return}let{spanOrigin:l="auto.http.browser",propagateTraceparent:u=!1}="object"==typeof a?a:{spanOrigin:a},c=to(),d=!!t6()||!!c&&oZ(c),p=s&&d?s0(function(e,t,r){if(e.startsWith("data:")){let n=rb(e);return{name:`${t} ${n}`,attributes:l_(e,void 0,t,r)}}let n=rm(e),a=n?function(e){if(ry(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(n):e;return{name:`${t} ${a}`,attributes:l_(e,n,t,r)}}(o,i,l)):new sG;if(s&&!d&&c?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=p.spanContext().spanId,n[p.spanContext().spanId]=p,r(e.fetchData.url)){let t=e.args[0],r={...e.args[1]||{}},n=function(e,t,r,n){var a,i;let o=lv({span:r,propagateTraceparent:n}),s=o["sentry-trace"],l=o.baggage,u=o.traceparent;if(!s)return;let c=t.headers||(ep(e)?e.headers:void 0);if(!c)return{...o};if(a=c,"undefined"!=typeof Headers&&ec(a,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",s),n&&u&&!e.get("traceparent")&&e.set("traceparent",u),l){let t=e.get("baggage");t?lb(t)||e.set("baggage",`${t},${l}`):e.set("baggage",l)}return e}if(Array.isArray(i=c)&&i.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...c];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",s]),n&&u&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",u]);let t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&lb(e[1]));return l&&!t&&e.push(["baggage",l]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,r="baggage"in c?c.baggage:void 0,a=r?Array.isArray(r)?[...r]:[r]:[],i=r&&(Array.isArray(r)?r.find(e=>lb(e)):lb(r));l&&!i&&a.push(l);let o=Object.assign({},c,{"sentry-trace":e??s,baggage:a.length>0?a.join(","):void 0});return n&&u&&!t&&(o.traceparent=u),o}}(t,r,tM()&&d?p:void 0,u);n&&(e.args[1]=r,r.headers=n)}if(c){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};c.emit("beforeOutgoingRequestSpan",p,t)}return p}(t,c,d,p,{propagateTraceparent:f,onRequestSpanEnd:u});if(t.response&&t.fetchData.__span&&lS.set(t.response,t.fetchData.__span),r){let n=lw(t.fetchData.url),a=n?rv(n).host:void 0;r.setAttributes({"http.url":n?rb(n):void 0,"server.address":a}),o&&lx(r,e),l?.(r,{headers:t.headers})}})),n&&nT(t=>{let r=function(e,t,r,n,a,i){let o=e.xhr,s=o?.[nO];if(!o||o.__sentry_own_request__||!s)return;let{url:l,method:u}=s,c=tM()&&t(l);
5if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let r=n[t];r&&(c&&void 0!==s.status_code&&(tL(r,s.status_code),r.end(),i?.(r,{headers:lC(nC(o)),error:e.error})),delete n[t]);return}let d=lw(l),p=d?rv(d):rv(l),f=rb(l.split(/[?#]/,1)[0]),h=to(),g=!!t6()||!!h&&oZ(h),y=c&&g?s0({name:`${u} ${f}`,attributes:{url:rb(l),type:"xhr","http.method":u,"http.url":d?rb(d):void 0,"server.address":p?.host,[tb]:"auto.http.browser",[tv]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new sG;return c&&!g&&h?.recordDroppedEvent("no_parent_span","span"),o.__sentry_xhr_span_id__=y.spanContext().spanId,n[o.__sentry_xhr_span_id__]=y,r(l)&&function(e,t,r){let{"sentry-trace":n,baggage:a,traceparent:i}=lv({span:t,propagateTraceparent:r});n&&function(e,t,r,n){let a=e.__sentry_xhr_v3__?.request_headers;if(!a?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!a?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=a?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,n,a,i)}(o,tM()&&g?y:void 0,a),h&&h.emit("beforeOutgoingRequestSpan",y,e),y}(t,c,d,p,f,u);r&&(o&&lx(r,e),l?.(r,{headers:lC(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}(e,{traceFetch:v,traceXHR:b,trackFetchStreamPerformance:_,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:w,enableHTTPTimings:C,onRequestSpanStart:M,onRequestSpanEnd:j})}}})(),{name:"BrowserProfiling",setup(e){let t=e.getOptions(),r=new l0;if(lG(t)||t.profileLifecycle||(t.profileLifecycle="manual"),lG(t)&&!t.profilesSampleRate)return;let n=t6(),a=n&&t7(n);if(lG(t)&&t.profileSessionSampleRate,lG(t))a&&lq(a)&&lK(a)&&lX(a),e.on("spanStart",e=>{let t=t7(e);e===t?lK(e)&&lX(e):lQ.has(t)&&lY(e)}),e.on("beforeEnvelope",e=>{if(!lJ.size)return;let t=function(e){let t=[];return rS(e,(e,r)=>{if("transaction"===r)for(let r=1;r<e.length;r++){let n=e[r];n?.contexts?.profile?.profile_id&&t.push(e[r])}}),t}(e);if(!t.length)return;let r=[];for(let e of t){let t=e?.contexts,n=t?.profile?.profile_id,a=t?.profile?.start_timestamp;if("string"!=typeof n||!n)continue;t?.profile&&delete t.profile;let i=function(e){let t=lJ.get(e);return t&&lJ.delete(e),t}(n);if(!i)continue;let o=function(e,t,r,n){if(!(!(r.samples.length<2)&&r.frames.length&&1))return null;if("transaction"!==n.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);let a=function(e){let t=e.contexts?.trace?.trace_id;return("string"==typeof t&&t.length,"string"!=typeof t)?"":t}(n),i="thread_metadata"in r?r:function(e){let t,r=0,n={samples:[],stacks:[],frames:[],thread_metadata:{[lM]:{name:lj}}},a=e.samples[0];if(!a)return n;let i=a.timestamp,o=ez(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:o||0,l=s-(o||s);return e.samples.forEach((a,o)=>{if(void 0===a.stackId){void 0===t&&(t=r,n.stacks[t]=[],r++),n.samples[o]={elapsed_since_start_ns:((a.timestamp+l-i)*1e6).toFixed(0),stack_id:t,thread_id:lM};return}let s=e.stacks[a.stackId],u=[];for(;s;){u.push(s.frameId);let t=e.frames[s.frameId];t&&void 0===n.frames[s.frameId]&&(n.frames[s.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}let c={elapsed_since_start_ns:((a.timestamp+l-i)*1e6).toFixed(0),stack_id:r,thread_id:lM};n.stacks[r]=u,n.samples[o]=c,r++}),n}(r),o=t||("number"==typeof n.start_timestamp?1e3*n.start_timestamp:1e3*eN()),s="number"==typeof n.timestamp?1e3*n.timestamp:1e3*eN();return{event_id:e,timestamp:new Date(o).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||ts,runtime:{name:"javascript",version:G.navigator.userAgent},os:{name:lD,version:lN,build_number:lz},device:{locale:lU,model:l$,manufacturer:lz,architecture:lF,is_emulator:!1},debug_meta:{images:lH(r.resources)},profile:i,transactions:[{name:n.transaction||"",id:n.event_id||eA(),trace_id:a,active_thread_id:lM,relative_start_ns:"0",relative_end_ns:((s-o)*1e6).toFixed(0)}]}}(n,a,i,e);o&&r.push(o)}!function(e,t){if(t.length)for(let r of t)e[1].push([{type:"profile"},r])}(e,r)});else{let n=t.profileLifecycle;if(e.on("startUIProfiler",()=>r.start()),e.on("stopUIProfiler",()=>r.stop()),"manual"===n)r.initialize(e);else if("trace"===n){if(!tM(t))return;r.initialize(e),a&&r.notifyRootSpanActive(a),G.setTimeout(()=>{let e=t6(),t=e&&t7(e);
5t&&r.notifyRootSpanActive(t)},0)}}}},((e={})=>{let t,r,[n,a]=e.maxCanvasSize||[],i={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[n?Math.min(n,1280):1280,a?Math.min(a,1280):1280]},o=new Promise(e=>r=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:n,maxCanvasSize:a}=i;return{enableManualSnapshot:n,recordCanvas:!0,getCanvasManager:e=>{let i=new um({...e,enableManualSnapshot:n,maxCanvasSize:a,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return t=i,r(i),i},...uv[e]||uv.medium}},async snapshot(e,r){(t||await o).snapshot(e,r)}}})(),u_],tracesSampleRate:.5,profileSessionSampleRate:.5,profileLifecycle:"trace",beforeSend:ub,replaysSessionSampleRate:0,replaysOnErrorSampleRate:0}))},[null==e?void 0:e.analytics]),(0,q.useEffect)(()=>{let t=u_;t&&((null==e?void 0:e.sessionReplay)?t.start():t.stop())},[null==e?void 0:e.sessionReplay]),null};var uC=r(82203),uS=r.n(uC),uk=r(81278);let uE=()=>{let[e,t]=(0,W.fp)(Z.l9),[r,n]=(0,q.useState)(!1),a=(0,uk.useRouter)();return((0,q.useEffect)(()=>{n(!0)},[]),r&&void 0===e&&"/manage-tracking"!==a.pathname)?(0,j.jsx)("div",{className:"fixed bottom-4 left-4 right-4 z-50 md:left-auto md:right-4",children:(0,j.jsxs)("div",{className:"w-full rounded-lg border border-gray-200 bg-white px-4 py-4 text-center shadow-xl md:w-80",children:[(0,j.jsxs)("p",{className:"text-center text-xs text-gray-700",children:["We use cookies to optimize your user experience with our website. View our"," ",(0,j.jsxs)(uS(),{href:"/privacy",className:"text-xs text-brand-green-dark transition-colors hover:text-brand-green",children:["Privacy Policy"," "]})]}),(0,j.jsxs)("div",{className:"mb-3 mt-3 flex justify-around gap-3",children:[(0,j.jsx)(uS(),{href:"/manage-tracking",className:"flex-1 rounded-full bg-gray-100 py-2 text-xs text-gray-600 transition-colors hover:bg-gray-200",children:"Manage Preferences"}),(0,j.jsx)("button",{onClick:()=>{t({analytics:!0,sessionReplay:!0})},className:"flex-1 rounded-full bg-brand-green-dark py-2 text-xs text-white transition-colors hover:bg-brand-green",children:"Accept All"})]})]})}):null};var ux=r(6772),uR=r.n(ux),uO=r(34488),uT=r(52229);let uI="G-MSQ6LYYY8D",uA=()=>{let e=(0,W.md)(Z.l9),t=(0,uT.usePathname)();return(0,q.useEffect)(()=>{let e="QAMPIWAE";e&&uO.Hh(e,{auto:!1})},[]),(0,q.useEffect)(()=>{t&&uO.in({url:t.split("?")[0],referrer:document.referrer})},[t]),(0,j.jsx)(j.Fragment,{children:((null==e?void 0:e.analytics)===void 0||(null==e?void 0:e.analytics))&&uI&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(uR(),{src:"https://www.googletagmanager.com/gtag/js?id=".concat(uI),strategy:"lazyOnload"}),(0,j.jsx)(uR(),{id:"google-analytics",strategy:"lazyOnload",children:"\n              window.dataLayer = window.dataLayer || [];\n              function gtag(){dataLayer.push(arguments);}\n              gtag('js', new Date());\n              gtag('config', '".concat(uI,"', {\n                page_path: window.location.pathname,\n              });\n            ")})]})})};var uP=r(29733);let uM=e=>"string"==typeof e,uj=()=>{let e,t,r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},uL=e=>null==e?"":String(e),uD=/###/g,uN=e=>e&&e.includes("###")?e.replace(uD,"."):e,uF=e=>!e||uM(e),uz=(e,t,r)=>{let n=uM(t)?t.split("."):t,a=0;for(;a<n.length-1;){if(uF(e))return{};let t=uN(n[a]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return uF(e)?{}:{obj:e,k:uN(n[a])}},u$=(e,t,r)=>{let{obj:n,k:a}=uz(e,t,Object);if(void 0!==n||1===t.length){n[a]=r;return}let i=t[t.length-1],o=t.slice(0,t.length-1),s=uz(e,o,Object);for(;void 0===s.obj&&o.length;)i=`${o[o.length-1]}.${i}`,s=uz(e,o=o.slice(0,o.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},uU=(e,t)=>{let{obj:r,k:n}=uz(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},uB=(e,t,r)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?uM(e[n])||e[n]instanceof String||uM(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):uB(e[n],t[n],r):e[n]=t[n]);return e},uq=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),uH={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},uV=e=>uM(e)?e.replace(/[&<>
5"'\/]/g,e=>uH[e]):e;class uW{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}let uZ=[" ",",","?","!",";"],uK=new uW(20),uG=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let n=t.split(r),a=e;for(let e=0;e<n.length;){let t;if(!a||"object"!=typeof a)return;let i="";for(let o=e;o<n.length;++o)if(o!==e&&(i+=r),i+=n[o],void 0!==(t=a[i])){if(["string","number","boolean"].includes(typeof t)&&o<n.length-1)continue;e+=o-e+1;break}a=t}return a},uJ=e=>e?.replace(/_/g,"-"),uQ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class uY{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||uQ,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(e=e.map(e=>uM(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),uM(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new uY(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new uY(this.logger,e)}}var uX=new uY;class u0{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};return this.on(e,r),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,r])=>{for(let n=0;n<r;n++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,n])=>{for(let a=0;a<n;a++)r(e,...t)})}}class u1 extends u0{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r,n={}){let a,i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):uM(r)&&i?a.push(...r.split(i)):a.push(r)));let s=uU(this.data,a);return(!s&&!t&&!r&&e.includes(".")&&(e=a[0],t=a[1],r=a.slice(2).join(".")),!s&&o&&uM(r))?uG(this.data?.[e]?.[t],r,i):s}addResource(e,t,r,n,a={silent:!1}){let i=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,o=[e,t];r&&(o=o.concat(i?r.split(i):r)),e.includes(".")&&(o=e.split("."),n=t,t=o[1]),this.addNamespaces(t),u$(this.data,o,n),a.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,n={silent:!1}){for(let n in r)(uM(r[n])||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,a,i={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(".")&&(o=e.split("."),n=r,r=t,t=o[1]),this.addNamespaces(t);let s=uU(this.data,o)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?uB(s,r,a):s={...s,...r},u$(this.data,o,s),i.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var u2={processors:{},addPostProcessor(e){this.processors[e.name]=e}
5,handle(e,t,r,n,a){return e.forEach(e=>{t=this.processors[e]?.process(t,r,n,a)??t}),t}};let u5=Symbol("i18next/PATH_KEY");function u3(e,t){let{[u5]:r}=e(function(){let e,t=[],r=Object.create(null);return r.get=(n,a)=>(e?.revoke?.(),a===u5)?t:(t.push(a),(e=Proxy.revocable(n,r)).proxy),Proxy.revocable(Object.create(null),r).proxy}()),n=t?.keySeparator??".",a=t?.nsSeparator??":",i=t?.enableSelector==="strict";if(r.length>1&&a){let e=t?.ns,o=i?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(i?o:o.length>1?o.slice(1):[]).includes(r[0]))return`${r[0]}${a}${r.slice(1).join(n)}`}return r.join(n)}let u4=e=>!uM(e)&&"boolean"!=typeof e&&"number"!=typeof e;class u7 extends u0{constructor(e,t={}){super(),((e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=uX.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let r={...t};if(null==e)return!1;let n=this.resolve(e,r);if(n?.res===void 0)return!1;let a=u4(n.res);return!1!==r.returnObjects||!a}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],i=r&&e.includes(r),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,r)=>{t=t||"",r=r||"";let n=uZ.filter(e=>!t.includes(e)&&!r.includes(e));if(0===n.length)return!0;let a=uK.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),i=!a.test(e);if(!i){let t=e.indexOf(r);t>0&&!a.test(e.substring(0,t))&&(i=!0)}return i})(e,r,n);if(i&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:uM(a)?[a]:a};let i=e.split(r);(r!==n||r===n&&this.options.ns.includes(i[0]))&&(a=i.shift()),e=i.join(n)}return{key:e,namespaces:uM(a)?[a]:a}}translate(e,t,r){let n="object"==typeof t?{...t}:t;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";"function"==typeof e&&(e=u3(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?u3(e,{...this.options,...n}):String(e));let a=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],n),l=s[s.length-1],u=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");let c=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c?.toLowerCase()==="cimode")return d?a?{res:`${l}${u}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${u}${o}`:a?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o;let p=this.resolve(e,n),f=p?.res,h=p?.usedKey||o,g=p?.exactUsedKey||o,y=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==n.count&&!uM(n.count),b=u7.hasDefaultValue(n),_=v?this.pluralResolver.getSuffix(c,n.count,n):"",w=n.ordinal&&v?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",C=v&&!n.ordinal&&0===n.count,S=C&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${_}`]||n[`defaultValue${w}`]||n.defaultValue,k=f;m&&!f&&b&&(k=S);let E=u4(k),x=Object.prototype.toString.apply(k);if(m&&k&&E&&!["[object Number]","[object Function]","[object RegExp]"].includes(x)&&!(uM(y)&&Array.isArray(k))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,k,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(n),p):e}if(i){let e=Array.isArray(k),t=e?[]:{},r=e?g:h;for(let e in k)if(Object.prototype.hasOwnProperty.call(k,e)){let a=`${r}${i}${e}`;b&&!f?t[e]=this.translate(a,{...n,defaultValue:u4(S)?S[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(a,{...n,joinArrays:!1,ns:s}),t[e]===a&&(t[e]=k[e])}f=t}}else if(m&&uM(y)&&Array.isArray(f))(f=f.join(y))&&(f=this.extendTranslation(f,e,n,r));else{let t=!1,a=!1;!this.isValidLookup(f)&&b&&(t=!0,f=S),this.isValidLookup(f)||(a=!0,f=o);let s=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:f,d=b&&S!==f&&this.options.updateMissing;if(a||t||d){if(this.logger.log(d?"updateKey":"missingKey",c,l,v&&!d?`${o}
5${this.pluralResolver.getSuffix(c,n.count,n)}`:o,d?S:f),i){let e=this.resolve(o,{...n,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r<t.length;r++)e.push(t[r]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let r=(e,t,r)=>{let a=b&&r!==f?r:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,a,d,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,a,d,n),this.emit("missingKey",e,l,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);C&&n[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],o+t,n[`defaultValue${t}`]||S)})}):r(e,o,S))}f=this.extendTranslation(f,e,n,p,r),a&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${l}${u}${o}`),(a||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${o}`:o,t?f:void 0,n))}return a?(p.res=f,p.usedParams=this.getUsedParamsDetails(n),p):f}extendTranslation(e,t,r,n,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let i;r.interpolation&&this.interpolator.init({...r,...{interpolation:{...this.options.interpolation,...r.interpolation}}});let o=uM(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(o){let t=e.match(this.interpolator.nestingRegexp);i=t&&t.length}let s=r.replace&&!uM(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,r.lng||this.language||n.usedLng,r),o){let t=e.match(this.interpolator.nestingRegexp);i<(t&&t.length)&&(r.nest=!1)}!r.lng&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>a?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}let i=r.postProcess||this.options.postProcess,o=uM(i)?[i]:i;return null!=e&&o?.length&&!1!==r.applyPostProcessor&&(e=u2.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,n,a,i,o;return uM(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?u3(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(r))return;let s=this.extractFromKey(e,t),l=s.key;n=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let c=void 0!==t.count&&!uM(t.count),d=c&&!t.ordinal&&0===t.count,p=void 0!==t.context&&(uM(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(r)||(o=e,!this.checkedLoadedFor[`${f[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(n=>{let o;if(this.isValidLookup(r))return;i=n;let s=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,n,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(n,t.count,t));let r=`${this.options.pluralSeparator}zero`,a=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&e.startsWith(a)&&s.push(l+e.replace(a,this.options.pluralSeparator)),s.push(l+e),d&&s.push(l+r)),p){let n=`${l}${this.options.contextSeparator||"_"}${t.context}`;s.push(n),c&&(t.ordinal&&e.startsWith(a)&&s.push(n+e.replace(a,this.options.pluralSeparator)),s.push(n+e),d&&s.push(n+r))}}for(;o=s.pop();)this.isValidLookup(r)||(a=o,r=this.getResource(n,e,o,t))}))})}),{res:r,usedKey:n,exactUsedKey:a,usedLng:i,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}
5getUsedParamsDetails(e={}){let t=e.replace&&!uM(e.replace),r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t)for(let e of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[e];return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class u9{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=uX.create("languageUtils")}getScriptPartFromCode(e){if(!(e=uJ(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=uJ(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(uM(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n||(!!e.includes("-")||!!n.includes("-"))&&!!(e.includes("-")&&!n.includes("-")&&e.slice(0,e.indexOf("-"))===n||e.startsWith(n)&&n.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),uM(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),n=[],a=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return uM(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):uM(e)&&a(this.formatLanguageCode(e)),r.forEach(e=>{n.includes(e)||a(this.formatLanguageCode(e))}),n}}let u6={zero:0,one:1,two:2,few:3,many:4,other:5},u8={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class ce{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=uX.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let r,n=uJ("dev"===e?"en":e),a=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:a});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];try{r=new Intl.PluralRules(n,{type:a})}catch(a){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),u8;if(!e.match(/-|_/))return u8;let n=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(n,t)}return this.pluralRulesCache[i]=r,r}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return(r||(r=this.getRule("dev",t)),r)?r.resolvedOptions().pluralCategories.sort((e,t)=>
5u6[e]-u6[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,r={}){let n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}let ct=(e,t,r,n=".",a=!0)=>{let i=((e,t,r)=>{let n=uU(e,r);return void 0!==n?n:uU(t,r)})(e,t,r);return!i&&a&&uM(r)&&void 0===(i=uG(e,r,n))&&(i=uG(t,r,n)),i},cr=e=>e.replace(/\$/g,"$$$$");class cn{constructor(e={}){this.logger=uX.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:a,prefixEscaped:i,suffix:o,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:m}=e.interpolation;this.escape=void 0!==t?t:uV,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=a?uq(a):i||"{{",this.suffix=o?uq(o):s||"}}
5",this.formatSeparator=l||",",this.unescapePrefix=u?"":c?uq(c):"-",this.unescapeSuffix=this.unescapePrefix?"":u?uq(u):"",this.nestingPrefix=d?uq(d):p||uq("$t("),this.nestingSuffix=f?uq(f):h||uq(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==m&&m,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let a,i,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(!e.includes(this.formatSeparator)){let a=ct(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(a,void 0,r,{...n,...t,interpolationkey:e}):a}let a=e.split(this.formatSeparator),i=a.shift().trim(),o=a.join(this.formatSeparator).trim();return this.format(ct(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),o,r,{...n,...t,interpolationkey:i})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let u=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,c=n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>cr(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?cr(this.escape(e)):cr(e)}].forEach(t=>{for(o=0;a=t.regex.exec(e);){let r=a[1].trim();if(void 0===(i=l(r)))if("function"==typeof u){let t=u(e,a,n);i=uM(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else if(c){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),i="";else uM(i)||this.useRawValueToEscape||(i=uL(i));let s=t.safeValue(i);if(e=e.replace(a[0],s),c?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++o>=this.maxReplaces)break}}),e}nest(e,t,r={}){let n,a,i,o=(e,t)=>{let r=this.nestingOptionsSeparator;if(!e.includes(r))return e;let n=e.split(RegExp(`${uq(r)}[ ]*{`)),a=`{${n[1]}`;e=n[0];let o=(a=this.interpolate(a,i)).match(/'/g),s=a.match(/"/g);((o?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(a=a.replace(/'/g,'"'));try{i=JSON.parse(a),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${a}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let s=[];(i=(i={...r}).replace&&!uM(i.replace)?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;let l=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==l&&(s=n[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),n[1]=n[1].slice(0,l)),(a=t(o.call(this,n[1].trim(),i),i))&&n[0]===e&&!uM(a))return a;uM(a)||(a=uL(a)),a||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),a=""),s.length&&(a=s.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:n[1].trim()}),a.trim())),e=e.replace(n[0],a),this.regexp.lastIndex=0}return e}}let ca=e=>{let t={};return(r,n,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});let o=n+JSON.stringify(i),s=t[o];return s||(s=e(uJ(n),a),t[o]=s),s(r)}},ci=e=>(t,r,n)=>e(uJ(r),n)(t);class co{constructor(e={}){this.logger=uX.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let r=t.cacheInBuiltFormats?ca:ci;this.formats={number:r((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:r((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:r((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:r((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:r((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ca(t)}format(e,t,r,n={}){if(!t||null==e)return e;let a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&!a[0].includes(")")&&a.find(e=>e.includes(")"))){let e=a.findIndex(e=>e.includes(")"));a[0]=[a[0],...a.splice(1,e)].join(this.formatSeparator)}return a.reduce((e,t)=>
5{let{formatName:a,formatOptions:i}=(e=>{let t=e.toLowerCase().trim(),r={};if(e.includes("(")){let n=e.split("(");t=n[0].toLowerCase().trim();let a=n[1].slice(0,-1);"currency"!==t||a.includes(":")?"relativetime"!==t||a.includes(":")?a.split(";").forEach(e=>{if(e){let[t,...n]=e.split(":"),a=n.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();r[i]||(r[i]=a),"false"===a&&(r[i]=!1),"true"===a&&(r[i]=!0),isNaN(a)||(r[i]=parseInt(a,10))}}):r.range||(r.range=a.trim()):r.currency||(r.currency=a.trim())}return{formatName:t,formatOptions:r}})(t);if(this.formats[a]){let t=e;try{let o=n?.formatParams?.[n.interpolationkey]||{},s=o.locale||o.lng||n.locale||n.lng||r;t=this.formats[a](e,s,{...i,...n,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${a}`),e},e)}}class cs extends u0{constructor(e,t,r,n={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=uX.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}queueLoad(e,t,r,n){let a={},i={},o={},s={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let o=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===i[o]&&(i[o]=!0):(this.state[o]=1,n=!1,void 0===i[o]&&(i[o]=!0),void 0===a[o]&&(a[o]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(o[e]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,r){let n=e.split("|"),a=n[0],i=n[1];t&&this.emit("failedLoading",a,i,t),!t&&r&&this.store.addResourceBundle(a,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);let o={};this.queue.forEach(r=>{((e,t,r,n)=>{let{obj:a,k:i}=uz(e,t,Object);a[i]=a[i]||[],a[i].push(r)})(r.loaded,[a],i),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{o[e]||(o[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r,n=0,a=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:a,callback:i});this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&n<this.maxRetries)return void setTimeout(()=>{this.read(e,t,r,n+1,2*a,i)},a);i(o,s)},s=this.backend[r].bind(this.backend);if(2===s.length){try{let r=s(e,t);r&&"function"==typeof r.then?r.then(e=>o(null,e)).catch(o):o(null,r)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,r={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();uM(e)&&(e=this.languageUtils.toResolveHierarchy(e)),uM(t)&&(t=[t]);let a=this.queueLoad(e,t,r,n);if(!a.toLoad.length)return a.pending.length||n(),null;a.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){let r=e.split("|"),n=r[0],a=r[1];this.read(n,a,"read",void 0,void 0,(r,i)=>{r&&this.logger.warn(`${t}loading namespace ${a} for language ${n} failed`,r),!r&&i&&this.logger.log(`${t}loaded namespace ${a} for language ${n}`,i),this.loaded(e,r,i)})}saveMissing(e,t,r,n,a,i={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=r&&""!==r){if(this.backend?.create){let s={...i,isUpdate:a},l=this.backend.create.bind(this.backend);if(l.length<6)try{let a;(a=5===l.length?l(e,t,r,n,s):l(e,t,r,n))&&"function"==typeof a.then?a.then(e=>o(null,e)).catch(o):o(null,a)}catch(e){o(e)}else l(e,t,r,n,o,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}let cl=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),uM(e[1])&&(t.defaultValue=e[1]),uM(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];
5Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),cu=e=>(uM(e.ns)&&(e.ns=[e.ns]),uM(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),uM(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),cc=()=>{};class cd extends u0{constructor(e={},t){if(super(),this.options=cu(e),this.services={},this.logger=uX,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(uM(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let r=cl();this.options={...r,...this.options,...cu(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation}
5,void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);let n=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?uX.init(n(this.modules.logger),this.options):uX.init(null,this.options),e=this.modules.formatter?this.modules.formatter:co;let t=new u9(this.options);this.store=new u1(this.options.resources,this.options);let r=this.services;r.logger=uX,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new ce(t,{prepend:this.options.pluralSeparator}),e&&(r.formatter=n(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new cn(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new cs(n(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(r.languageDetector=n(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=n(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new u7(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=cc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let a=uj(),i=()=>{let e=(e,r)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(r),t(e,r)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),a}loadResources(e,t=cc){let r=t,n=uM(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let n=uj();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=cc),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&u2.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let r=uj();
5this.emit("languageChanging",e);let n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(a,i)=>{i?this.isLanguageChangingTo===e&&(n(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((...e)=>this.t(...e)),t&&t(a,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);let r=uM(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(uM(t)?[t]:t);i&&(this.language||n(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{a(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}getFixedT(e,t,r,n){let a=n?.scopeNs,i=(e,t,...n)=>{let o,s;(o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(n)):{...t}).lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs;let l=void 0!==o.ns&&null!==o.ns;o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||r||i.keyPrefix);let u={...this.options,...o};Array.isArray(a)&&!l&&(u.ns=a),"function"==typeof o.keyPrefix&&(o.keyPrefix=u3(o.keyPrefix,u));let c=this.options.keySeparator||".";return o.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=u3(e,u)),`${o.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=u3(e,u)),s=o.keyPrefix?`${o.keyPrefix}${c}${e}`:e),this.t(s,o)};return uM(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
5if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let i=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||0===r||2===r};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!n||i(a,e)))}loadNamespaces(e,t){let r=uj();return this.options.ns?(uM(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=uj();uM(e)&&(e=[e]);let n=this.options.preload||[],a=e.filter(e=>!n.includes(e)&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=n.concat(a),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new u9(cl());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let r=new cd(e,t);return r.createInstance=cd.createInstance,r}cloneInstance(e={},t=cc){let r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},a=new cd(n);if((void 0!==e.debug||void 0!==e.prefix)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new u1(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((r,n)=>(r[n]={...e[t][n]},r),e[t]),e),{}),n),a.services.resourceStore=a.store),e.interpolation){let t={...cl().interpolation,...this.options.interpolation,...e.interpolation},r={...n,interpolation:t};a.services.interpolator=new cn(r)}return a.translator=new u7(a.services,n),a.translator.on("*",(e,...t)=>{a.emit(e,...t)}),a.init(n,t),a.translator.options=n,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let cp=cd.createInstance();function cf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ch(e){return(ch="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}cp.createInstance,cp.dir,cp.init,cp.loadResources,cp.reloadResources,cp.use,cp.changeLanguage,cp.getFixedT,cp.t,cp.exists,cp.setDefaultNamespace,cp.hasLoadedNamespace,cp.loadNamespaces,cp.loadLanguages;var cg=[];cg.forEach,cg.slice;var cy=["__proto__","constructor","prototype"];function cm(e){return!("string"!=typeof e||0===e.length||e.length>128||cy.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function cv(e){return!(!cm(e)||e.indexOf("/")>-1)}var cb={lng:cv,ns:function(e){return cm(e)}};function c_(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function cw(){return"function"==typeof XMLHttpRequest||("undefined"==typeof XMLHttpRequest?"undefined":ch(XMLHttpRequest))==="object"}var cC=/\{\{(.+?)\}\}/g;function cS(e,t){var r=!1,n=e.replace(cC,function(e,n){var a=n.trim();if(cy.indexOf(a)>-1)return e;var i=t[a];if(null==i)return e;
5var o,s=cb[a]||cv,l=String(i).split("+"),u=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return cf(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cf(e,t):void 0}}(e))){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(l);try{for(u.s();!(o=u.n()).done;){var c=o.value;if(!s(c))return r=!0,e}}catch(e){u.e(e)}finally{u.f()}return l.join("+")});return r?null:n}function ck(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function cE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ck(Object(r),!0).forEach(function(t){var n,a,i;n=e,a=t,i=r[t],(a=function(e){var t=function(e,t){if("object"!=cx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=cx(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cx(t)?t:t+""}(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ck(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function cx(e){return(cx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var cR="function"==typeof fetch?fetch:void 0;if("undefined"!=typeof global&&global.fetch?cR=global.fetch:"undefined"!=typeof window&&window.fetch&&(cR=window.fetch),cw()&&("undefined"!=typeof global&&global.XMLHttpRequest?P=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(P=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?M=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(M=window.ActiveXObject)),"function"!=typeof cR&&(cR=void 0),!cR&&!P&&!M)try{r.e(3160).then(r.t.bind(r,63160,19)).then(function(e){cR=e.default}).catch(function(){})}catch(e){}var cO=["__proto__","constructor","prototype"],cT=function(e,t){if(t&&"object"===cx(t)){for(var r="",n=0,a=Object.keys(t);n<a.length;n++){var i=a[n];cO.indexOf(i)>-1||(r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(t[i]))}if(!r)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+r.slice(1)}return e},cI=function(e,t,r,n){var a=function(e){if(!e.ok)return r(e.statusText||"Error",{status:e.status});e.text().then(function(t){r(null,{status:e.status,data:t})}).catch(r)};if(n){var i=n(e,t);if(i instanceof Promise)return void i.then(a).catch(r)}"function"==typeof fetch?fetch(e,t).then(a).catch(r):cR(e,t).then(a).catch(r)},cA=function(e,t,r,n){e.queryStringParams&&(t=cT(t,e.queryStringParams));var a=cE({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"==typeof window&&"undefined"!=typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(a["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(a["Content-Type"]="application/json");var i="function"==typeof e.requestOptions?e.requestOptions(r):e.requestOptions,o=cE({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:a},e._omitFetchOptions?{}:i),s="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{cI(t,o,n,s)}catch(r){if(!i||0===Object.keys(i).length||!r.message||0>r.message.indexOf("not implemented"))return n(r);
5try{Object.keys(i).forEach(function(e){delete o[e]}),cI(t,o,n,s),e._omitFetchOptions=!0}catch(e){n(e)}}},cP=function(e,t,r,n){r&&"object"===cx(r)&&(r=cT("",r).slice(1)),e.queryStringParams&&(t=cT(t,e.queryStringParams));try{var a=P?new P:new M("MSXML2.XMLHTTP.3.0");a.open(r?"POST":"GET",t,1),e.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!e.withCredentials,r&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var i=e.customHeaders;if(i="function"==typeof i?i():i)for(var o=0,s=Object.keys(i);o<s.length;o++){var l=s[o];cO.indexOf(l)>-1||a.setRequestHeader(l,i[l])}a.onreadystatechange=function(){a.readyState>3&&n(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(r)}catch(e){console&&console.log(e)}};let cM=function(e,t,r,n){return("function"==typeof r&&(n=r,r=void 0),n=n||function(){},cR&&0!==t.indexOf("file:"))?cA(e,t,r,n):cw()||"function"==typeof ActiveXObject?cP(e,t,r,n):void n(Error("No fetch and no xhr implementation found!"))};function cj(e){return(cj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function cD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cL(Object(r),!0).forEach(function(t){cN(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cL(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function cN(e,t,r){return(t=cF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cF(e){var t=function(e,t){if("object"!=cj(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=cj(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cj(t)?t:t+""}var cz=function(){var e,t;return e=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.services=t,this.options=r,this.allOptions=n,this.type="backend",this.init(t,r,n)},t=[{key:"init",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=cD(cD(cD({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,r){return cN({},t,r||"")},parseLoadPayload:function(e,t){},request:cM,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),r),this.allOptions=n,this.services&&this.options.reloadInterval){var a=setInterval(function(){return t.reload()},this.options.reloadInterval);"object"===cj(a)&&"function"==typeof a.unref&&a.unref()}}},{key:"readMulti",value:function(e,t,r){this._readAny(e,e,t,t,r)}},{key:"read",value:function(e,t,r){this._readAny([e],e,[t],t,r)}},{key:"_readAny",value:function(e,t,r,n,a){var i,o,s=this,l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(e,r)),(l=(o=i=l)&&"function"==typeof o.then?i:Promise.resolve(i)).then(function(i){if(!i)return a(null,{});var o=cS(i,{lng:e.join("+"),ns:r.join("+")});if(null==o)return a(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(c_).join(", ")+"] namespaces=["+r.map(c_).join(", ")+"]"),!1);s.loadUrl(o,a,t,n)})}},{key:"loadUrl",value:function(e,t,r,n){var a=this,i=this.options.parseLoadPayload("str
5ing"==typeof r?[r]:r,"string"==typeof n?[n]:n),o=c_(function(e){if("string"!=typeof e||0===e.length)return e;try{var t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,i,function(e,i){if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+o+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+o+"; status code: "+i.status,!1);if(!i&&e&&e.message){var s,l,u=e.message.toLowerCase();if(["failed","fetch","network","load"].find(function(e){return u.indexOf(e)>-1}))return t("failed loading "+o+": "+c_(e.message),!0)}if(e)return t(e,!1);try{s="string"==typeof i.data?a.options.parse(i.data,r,n):i.data}catch(e){l="failed parsing "+o+" to json"}if(l)return t(l,!1);t(null,s)})}},{key:"create",value:function(e,t,r,n,a){var i=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var o=this.options.parsePayload(t,r,n),s=0,l=[],u=[];e.forEach(function(r){var n=i.options.addPath;"function"==typeof i.options.addPath&&(n=i.options.addPath(r,t));var c=cS(n,{lng:r,ns:t});if(null==c){s+=1,a&&s===e.length&&a(l,u);return}i.options.request(i.options,c,o,function(t,r){s+=1,l.push(t),u.push(r),s===e.length&&"function"==typeof a&&a(l,u)})})}}},{key:"reload",value:function(){var e=this,t=this.services,r=t.backendConnector,n=t.languageUtils,a=t.logger,i=r.language;if(!i||"cimode"!==i.toLowerCase()){var o=[],s=function(e){n.toResolveHierarchy(e).forEach(function(e){0>o.indexOf(e)&&o.push(e)})};s(i),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return s(e)}),o.forEach(function(t){e.allOptions.ns.forEach(function(e){r.read(t,e,"read",null,null,function(n,i){n&&a.warn("loading namespace ".concat(e," for language ").concat(t," failed"),n),!n&&i&&a.log("loaded namespace ".concat(e," for language ").concat(t),i),r.loaded("".concat(t,"|").concat(e),n,i)})})})}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cF(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}();cz.type="backend";var c$=r(39247);function cU(e){let{error:t,resetErrorBoundary:r}=e;return t instanceof B.A?(0,j.jsx)(V.A,{children:(0,j.jsx)(H.Ay,{onSuccess:r})}):t instanceof B.a?(0,j.jsx)(D.b,{statusCode:t.statusCode,title:"Sorry, you are not authorized to access this"}):(0,j.jsx)(D.b,{statusCode:t.statusCode||400,title:t.message||t.name})}cp.use(cz).use(uP.r9).init({fallbackLng:c$.Nm,debug:!1,ns:["common","facets","location-insights","map","data"],defaultNS:"common",interpolation:{escapeValue:!1},backend:{loadPath:"/locales/{{lng}}/{{ns}}.json"},react:{useSuspense:!1}});let cB=$(function(e){let{Component:t,pageProps:r}=e,n=t.getLayout||(e=>e);return(0,j.jsxs)(D.E,{FallbackComponent:cU,onReset:(0,U.hV)().reset,children:[(0,j.jsx)(uw,{}),(0,j.jsx)(uE,{}),(0,j.jsx)(q.Suspense,{fallback:null,children:(0,j.jsx)(uA,{})}),n((0,j.jsx)(t,{...r}))]})})},44657:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=[],t=0,r=[];return{next:function(n){if(r.length)if(t++)e.push(n);else do r.forEach(function(e){e(n)}),n=e.shift();while(--t)},subscribe:function(e){return r=r.concat(e),{unsubscribe:function(){r=r.filter(function(t){return t!==e})}}}}}},45673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return n}});let n=r(56947).unstable_rethrow;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46077:(e,t,r)=>{"use strict";r.d(t,{Ck:()=>i,Ht:()=>a,hV:()=>o});var n=r(742);r(72012),r(3359),r(94087),r(55729),r(48535);let{QueryClientProvider:a,Hydrate:i,useQueryErrorResetBoundary:o}=n.XD},47345:(e,t,r)=>{"use strict";r.d(t,{jH:()=>i});var n=r(55729);r(6029);var a=n.createContext(void 0);function i(e){let t=n.useContext(a);return e||t||"ltr"}},47987:(e,t,r)=>{"use strict";r.d(t,{i:()=>s});var n,a=r(55729),i=r(6706),o=(n||(n=r.t(a,2)))[" useInsertionEffect ".trim().toString()]||i.N;function s(e){let{prop:t,defaultProp:r,onChange:n=()=>{},caller:i}=e,[s,l,u]=function(e){let{defaultProp:t,onChange:r}=e,[n,i]=a.useState(t),s=a.useRef(n),l=a.useRef(r);return o(()=>{l.current=r},[r]),a.useEffect(()=>{if(s.current!==n){var e;null==(e=l.current)||e.call(l,n),s.current=n}},[n,s]),[n,i,l]}({defaultProp:r,onChange:n}),c=void 0!==t,d=c?t:s;{let e=a.useRef(void 0!==t);a.useEffect(()=>{let t=e.current;if(t!==c){let e=c?"controlled":"uncontrolled";console.warn("".concat(i," is changing from ").concat(t?"controlled":"uncontrolled"," to ").concat(e,". Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component."))}e.current=c},[c,i])}return[d,a.useCallback(e=>{if(c){let n="function"==typeof e?e(t):e;if(n!==t){var r;null==(r=u.current)||r.call(u,n)}}else l(e)},[c,t,l,u])]}Symbol("RADIX:SYNC_STATE")},48535:(e,t,r)=>{e.exports=r(75364)},50195:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,C:()=>l,R:()=>p,a:()=>c,c:()=>R,d:()=>x,v:()=>y});var n=r(94087),a=r(98764);r(72907),r(51254),r(29143);let i="default"in n.Ay?n.Ay.default:n.Ay,o=["name","message","code","statusCode","meta","url"];(0,a.i)()&&i.allowErrorProps(...o);
5class s extends Error{constructor(e="You must be logged in to access this"){super(e),this.name="AuthenticationError",this.statusCode=401}get _clearStack(){return!0}}class l extends Error{constructor(){super(...arguments),this.name="CSRFTokenMismatchError",this.statusCode=401}get _clearStack(){return!0}}class u extends Error{constructor(e,t){super(e),this.name="OAuthError",this.statusCode=500,this.redirect=t}get _clearStack(){return!0}}class c extends Error{constructor(e="You are not authorized to access this"){super(e),this.name="AuthorizationError",this.statusCode=403}get _clearStack(){return!0}}class d extends Error{constructor(e="This could not be found"){super(e),this.name="NotFoundError",this.statusCode=404}get _clearStack(){return!0}}class p extends Error{constructor(e){super("object"==typeof e?e.href:e),this.name="RedirectError",this.statusCode=302,this.url=e}get _clearStack(){return!0}}class f extends Error{constructor(e="The pagination arguments are invalid"){super(e),this.name="PaginationArgumentError",this.statusCode=422}}let h=!1;function g(e){if(!e||"function"!=typeof e.format)throw Error("The argument to formatZodError must be a zod error with error.format()");return function e(t){var r,n;let a={};for(let i in t)"_errors"!==i&&((null==(n=null==(r=t[i])?void 0:r._errors)?void 0:n[0])?(isNaN(i)||Array.isArray(a)||(a=[]),a[i]=t[i]._errors[0]):(isNaN(i)||Array.isArray(a)||(a=[]),a[i]=e(t[i])));return a}(e.format())}function y(e,t="async"){if("sync"===t)return t=>{if(!e)return{};try{return e.parse(t),{}}catch(e){return e.format?g(e):e.toString()}};return t=>{let r,n;return r=void 0,n=function*(){if(!e)return{};try{return yield e.parseAsync(t),{}}catch(e){return e.format?g(e):e.toString()}},new Promise((e,t)=>{var a=e=>{try{o(n.next(e))}catch(e){t(e)}},i=e=>{try{o(n.throw(e))}catch(e){t(e)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(a,i);o((n=n.apply(r,null)).next())})}}(0,a.i)()&&(i.registerClass(s,{identifier:"BlitzAuthenticationError",allowProps:o}),i.registerClass(l,{identifier:"BlitzCSRFTokenMismatchError",allowProps:o}),i.registerClass(c,{identifier:"BlitzAuthorizationError",allowProps:o}),i.registerClass(d,{identifier:"BlitzNotFoundError",allowProps:o}),i.registerClass(p,{identifier:"BlitzRedirectError",allowProps:o}),i.registerClass(f,{identifier:"BlitzPaginationArgumentError",allowProps:o}),i.registerClass(u,{identifier:"OAuthError",allowProps:o}),h=!0);var m=Object.defineProperty,v=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,w=(e,t,r)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))b.call(t,r)&&w(e,r,t[r]);if(v)for(var r of v(t))_.call(t,r)&&w(e,r,t[r]);return e},S=(e,t,r)=>new Promise((n,a)=>{var i=e=>{try{s(r.next(e))}catch(e){a(e)}},o=e=>{try{s(r.throw(e))}catch(e){a(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,o);s((r=r.apply(e,t)).next())});function k([...e]){return t=>e.map(e=>e(t))}function E(...e){return t=>e.reduce((e,t)=>t(e),t)}function x({plugins:e}){let{middleware:t,events:r,exports:n,providers:i}=e.reduce((e,t)=>({middleware:{beforeHttpRequest:t.middleware.beforeHttpRequest?E(e.middleware.beforeHttpRequest,t.middleware.beforeHttpRequest):e.middleware.beforeHttpRequest,beforeHttpResponse:t.middleware.beforeHttpResponse?E(e.middleware.beforeHttpResponse,t.middleware.beforeHttpResponse):e.middleware.beforeHttpResponse},events:{onRpcError:t.events.onRpcError?k([...Array.isArray(e.events.onRpcError)?e.events.onRpcError:[e.events.onRpcError],t.events.onRpcError]):e.events.onRpcError,onSessionCreated:t.events.onSessionCreated?k([...Array.isArray(e.events.onSessionCreated)?e.events.onSessionCreated:[e.events.onSessionCreated],t.events.onSessionCreated]):e.events.onSessionCreated},exports:C(C({},t.exports()),e.exports),providers:t.withProvider?e.providers.concat(t.withProvider):e.providers}),{middleware:{beforeHttpRequest:E(),beforeHttpResponse:E()},events:{onRpcError:k([]),onSessionCreated:k([])},exports:{},providers:[]});if(globalThis.__BLITZ_MIDDLEWARE_HOOKS=t,a.a){globalThis.__BLITZ_CLEAN_UP_LISTENERS&&globalThis.__BLITZ_CLEAN_UP_LISTENERS();let e=()=>S(this,null,function*(){yield Promise.all(r.onSessionCreated())}),t=e=>S(this,null,function*(){yield Promise.all(r.onRpcError(e.detail))});document.addEventListener("blitz:session-created",e),document.addEventListener("blitz:rpc-error",t),globalThis.__BLITZ_CLEAN_UP_LISTENERS=()=>{document.removeEventListener("blitz:session-created",e),document.removeEventListener("blitz:rpc-error",t)}}return{exports:n,middleware:t,events:r,withPlugins:((...e)=>t=>e.reduceRight((e,t)=>t(e),t))(...i)}}function R(e){return e}},50212:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;
5r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(n&&(n+=" "),n+=t);return n}},50970:(e,t,r)=>{"use strict";r.d(t,{$p$:()=>K,A20:()=>o,D3D:()=>v,D5j:()=>e_,E$n:()=>ee,GQ2:()=>k,JGH:()=>ec,KaV:()=>y,KxF:()=>c,NAP:()=>eh,Oer:()=>I,Pip:()=>D,QGg:()=>J,Srz:()=>h,WhT:()=>er,XFE:()=>l,XKI:()=>ep,YJP:()=>_,_JL:()=>O,c11:()=>el,fAJ:()=>H,j2g:()=>ea,jNf:()=>B,mLz:()=>W,maG:()=>Y,pTT:()=>F,raE:()=>x,s3U:()=>P,sKQ:()=>$,ucK:()=>ev,udU:()=>eo,vKP:()=>C,ycz:()=>ey,ywh:()=>p,zjU:()=>j});var n=r(55729);function a(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}var i=["color"],o=(0,n.forwardRef)(function(e,t){var r=e.color,o=a(e,i);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),(0,n.createElement)("path",{d:"M5 1C5 0.447715 5.44772 0 6 0H9C9.55228 0 10 0.447715 10 1V2H14C14.5523 2 15 2.44772 15 3V6C15 6.8888 14.6131 7.68734 14 8.23608V11.5C14 12.3284 13.3284 13 12.5 13H2.5C1.67157 13 1 12.3284 1 11.5V8.2359C0.38697 7.68721 0 6.88883 0 6V3C0 2.44772 0.447716 2 1 2H5V1ZM9 1V2H6V1H9ZM1 3H5H5.5H9.5H10H14V6C14 6.654 13.6866 7.23467 13.1997 7.6004C12.8655 7.85144 12.4508 8 12 8H8V7.5C8 7.22386 7.77614 7 7.5 7C7.22386 7 7 7.22386 7 7.5V8H3C2.5493 8 2.1346 7.85133 1.80029 7.60022C1.31335 7.23446 1 6.65396 1 6V3ZM7 9H3C2.64961 9 2.31292 8.93972 2 8.82905V11.5C2 11.7761 2.22386 12 2.5 12H12.5C12.7761 12 13 11.7761 13 11.5V8.82915C12.6871 8.93978 12.3504 9 12 9H8V9.5C8 9.77614 7.77614 10 7.5 10C7.22386 10 7 9.77614 7 9.5V9Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),s=["color"],l=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,s);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M8.60124 1.25086C8.60124 1.75459 8.26278 2.17927 7.80087 2.30989C10.1459 2.4647 12 4.41582 12 6.79999V10.25C12 11.0563 12.0329 11.7074 12.7236 12.0528C12.931 12.1565 13.0399 12.3892 12.9866 12.6149C12.9333 12.8406 12.7319 13 12.5 13H8.16144C8.36904 13.1832 8.49997 13.4513 8.49997 13.75C8.49997 14.3023 8.05226 14.75 7.49997 14.75C6.94769 14.75 6.49997 14.3023 6.49997 13.75C6.49997 13.4513 6.63091 13.1832 6.83851 13H2.49999C2.2681 13 2.06664 12.8406 2.01336 12.6149C1.96009 12.3892 2.06897 12.1565 2.27638 12.0528C2.96708 11.7074 2.99999 11.0563 2.99999 10.25V6.79999C2.99999 4.41537 4.85481 2.46396 7.20042 2.3098C6.73867 2.17908 6.40036 1.75448 6.40036 1.25086C6.40036 0.643104 6.89304 0.150421 7.5008 0.150421C8.10855 0.150421 8.60124 0.643104 8.60124 1.25086ZM7.49999 3.29999C5.56699 3.29999 3.99999 4.86699 3.99999 6.79999V10.25L4.00002 10.3009C4.0005 10.7463 4.00121 11.4084 3.69929 12H11.3007C10.9988 11.4084 10.9995 10.7463 11 10.3009L11 10.25V6.79999C11 4.86699 9.43299 3.29999 7.49999 3.29999Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),u=["color"],c=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,u);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M2.5 3C2.22386 3 2 3.22386 2 3.5V9.5C2 9.77614 2.22386 10 2.5 10H12.5C12.7761 10 13 9.77614 13 9.5V3.5C13 3.22386 12.7761 3 12.5 3H2.5ZM1 9.5C1 10.1531 1.4174 10.7087 2 10.9146V11.5C2 12.3284 2.67157 13 3.5 13H11.5C12.3284 13 13 12.3284 13 11.5V10.9146C13.5826 10.7087 14 10.1531 14 9.5V3.5C14 2.67157 13.3284 2 12.5 2H2.5C1.67157 2 1 2.67157 1 3.5V9.5ZM12 11.5V11H3V11.5C3 11.7761 3.22386 12 3.5 12H11.5C11.7761 12 12 11.7761 12 11.5ZM5.5 6C5.22386 6 5 6.22386 5 6.5C5 6.77614 5.22386 7 5.5 7H9.5C9.77614 7 10 6.77614 10 6.5C10 6.22386 9.77614 6 9.5 6H5.5Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),d=["color"],p=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,d);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}
5),f=["color"],h=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,f);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),g=["color"],y=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,g);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),m=["color"],v=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,m);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),b=["color"],_=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,b);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),w=["color"],C=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,w);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),S=["color"],k=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,S);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M0.877075 7.49991C0.877075 3.84222 3.84222 0.877075 7.49991 0.877075C11.1576 0.877075 14.1227 3.84222 14.1227 7.49991C14.1227 11.1576 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1576 0.877075 7.49991ZM7.49991 1.82708C4.36689 1.82708 1.82708 4.36689 1.82708 7.49991C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49991C13.1727 4.36689 10.6329 1.82708 7.49991 1.82708Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}
5),E=["color"],x=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,E);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),R=["color"],O=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,R);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V1.80687C10.6922 2.0935 12.8167 4.28012 13.0068 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H12.9888C12.7094 10.6244 10.6244 12.7094 8 12.9888V14.5C8 14.7761 7.77614 15 7.5 15C7.22386 15 7 14.7761 7 14.5V13.0068C4.28012 12.8167 2.0935 10.6922 1.80687 8H0.5C0.223858 8 0 7.77614 0 7.5C0 7.22386 0.223858 7 0.5 7H1.78886C1.98376 4.21166 4.21166 1.98376 7 1.78886V0.5C7 0.223858 7.22386 0 7.5 0ZM8 12.0322V9.5C8 9.22386 7.77614 9 7.5 9C7.22386 9 7 9.22386 7 9.5V12.054C4.80517 11.8689 3.04222 10.1668 2.76344 8H5.5C5.77614 8 6 7.77614 6 7.5C6 7.22386 5.77614 7 5.5 7H2.7417C2.93252 4.73662 4.73662 2.93252 7 2.7417V5.5C7 5.77614 7.22386 6 7.5 6C7.77614 6 8 5.77614 8 5.5V2.76344C10.1668 3.04222 11.8689 4.80517 12.054 7H9.5C9.22386 7 9 7.22386 9 7.5C9 7.77614 9.22386 8 9.5 8H12.0322C11.7621 10.0991 10.0991 11.7621 8 12.0322Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),T=["color"],I=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,T);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),A=["color"],P=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,A);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M7.50005 1.04999C7.74858 1.04999 7.95005 1.25146 7.95005 1.49999V8.41359L10.1819 6.18179C10.3576 6.00605 10.6425 6.00605 10.8182 6.18179C10.994 6.35753 10.994 6.64245 10.8182 6.81819L7.81825 9.81819C7.64251 9.99392 7.35759 9.99392 7.18185 9.81819L4.18185 6.81819C4.00611 6.64245 4.00611 6.35753 4.18185 6.18179C4.35759 6.00605 4.64251 6.00605 4.81825 6.18179L7.05005 8.41359V1.49999C7.05005 1.25146 7.25152 1.04999 7.50005 1.04999ZM2.5 10C2.77614 10 3 10.2239 3 10.5V12C3 12.5539 3.44565 13 3.99635 13H11.0012C11.5529 13 12 12.5528 12 12V10.5C12 10.2239 12.2239 10 12.5 10C12.7761 10 13 10.2239 13 10.5V12C13 13.1041 12.1062 14 11.0012 14H3.99635C2.89019 14 2 13.103 2 12V10.5C2 10.2239 2.22386 10 2.5 10Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),M=["color"],j=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,M);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M10.3285 1.13607C10.1332 0.940809 9.81662 0.940808 9.62136 1.13607C9.42609 1.33133 9.42609 1.64792 9.62136 1.84318L10.2744 2.49619L5.42563 6.13274L4.31805 5.02516C4.12279 4.8299 3.80621 4.8299 3.61095 5.02516C3.41569 5.22042 3.41569 5.537 3.61095 5.73226L5.02516 7.14648L6.08582 8.20714L2.81545 11.4775C2.62019 11.6728 2.62019 11.9894 2.81545 12.1846C3.01072 12.3799 3.3273 12.3799 3.52256 12.1846L6.79293 8.91425L7.85359 9.97491L9.2678 
511.3891C9.46306 11.5844 9.77965 11.5844 9.97491 11.3891C10.1702 11.1939 10.1702 10.8773 9.97491 10.682L8.86733 9.57443L12.5039 4.7257L13.1569 5.37871C13.3522 5.57397 13.6687 5.57397 13.864 5.37871C14.0593 5.18345 14.0593 4.86687 13.864 4.6716L12.8033 3.61094L11.3891 2.19673L10.3285 1.13607ZM6.13992 6.84702L10.9887 3.21047L11.7896 4.01142L8.15305 8.86015L6.13992 6.84702Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),L=["color"],D=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,L);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),N=["color"],F=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,N);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M3 2C2.44772 2 2 2.44772 2 3V12C2 12.5523 2.44772 13 3 13H12C12.5523 13 13 12.5523 13 12V8.5C13 8.22386 12.7761 8 12.5 8C12.2239 8 12 8.22386 12 8.5V12H3V3L6.5 3C6.77614 3 7 2.77614 7 2.5C7 2.22386 6.77614 2 6.5 2H3ZM12.8536 2.14645C12.9015 2.19439 12.9377 2.24964 12.9621 2.30861C12.9861 2.36669 12.9996 2.4303 13 2.497L13 2.5V2.50049V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3.70711L6.85355 8.85355C6.65829 9.04882 6.34171 9.04882 6.14645 8.85355C5.95118 8.65829 5.95118 8.34171 6.14645 8.14645L11.2929 3H9.5C9.22386 3 9 2.77614 9 2.5C9 2.22386 9.22386 2 9.5 2H12.4999H12.5C12.5678 2 12.6324 2.01349 12.6914 2.03794C12.7504 2.06234 12.8056 2.09851 12.8536 2.14645Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),z=["color"],$=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,z);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),U=["color"],B=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,U);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M6.8113 1.64706C6.62188 2.87918 6.68268 3.88523 6.76848 5.30499C6.78415 5.56426 6.80065 5.83732 6.81661 6.12808C6.83111 6.39208 6.63758 6.62172 6.37495 6.65217C6.11232 6.68262 5.87138 6.50334 5.82509 6.24304L5.74754 5.80698C5.64402 5.16529 5.48355 4.25481 5.17807 3.44741C4.86241 2.61312 4.4486 2.04121 3.93436 1.86044C3.64994 1.76104 3.41901 1.84279 3.25868 2.01052C3.08746 2.18962 2.9976 2.47065 3.0627 2.75399C3.2146 3.34424 3.44627 3.9167 3.69836 4.51802C3.72082 4.57158 3.74346 4.62543 3.76621 4.67954C3.9954 5.22457 4.23619 5.7972 4.41644 6.39081L4.41691 6.39238C4.562 6.87586 4.65646 7.2595 4.73086 7.56165C4.76034 7.68138 4.78667 7.78831 4.81175 7.88359C4.86768 8.09606 4.77836 8.32014 4.59161 8.43588C4.40486 8.55161 4.16445 8.53188 3.99907 8.38725C3.73749 8.15848 3.515 7.92784 3.31817 7.71802C3.27627 7.67335 3.23602 7.63018 3.19705 7.58838C3.04777 7.42826 2.91712 7.28812 2.78334 7.16029C2.45989 6.85122 2.18398 6.68004 1.80585 6.64369L1.80324 6.64343C1.56117 6.61888 1.41402 6.66441 1.31756 6.72627C1.21899 6.78947 1.11988 6.90414 1.03784 7.1123C0.976576 7.28492 1.01515 7.62987 1.1929 7.96911L1.19728 7.97747C1.40086 8.38452 1.74475 8.81587 2.18141 9.29299C2.39739 9.52898 2.62872 9.76849 2.86934 10.0174L2.87966 10.0281C3.11546 10.2721 3.35962 10.5247 3.59713 10.7827C4.4288 11.6863 5.27706 12.7538 5.4627 14H11.5087C11.5636 12.4353 11.8756 11.268 12.2875 10.
51346C12.4454 9.70041 12.6121 9.28412 12.7826 8.85829C13.1097 8.04139 13.4509 7.18937 13.7705 6.10824C14.0989 4.99737 14.0097 4.37033 13.8613 4.03984C13.717 3.71858 13.4914 3.61786 13.3816 3.59606C13.1381 3.54774 13.0384 3.60947 12.9698 3.67901C12.867 3.78316 12.7698 3.98273 12.6921 4.30269C12.6166 4.61345 12.5752 4.96517 12.533 5.32501L12.5298 5.35285C12.4924 5.67242 12.4505 6.03016 12.3665 6.30098C12.3383 6.40699 12.2819 6.50407 12.1979 6.57539C12.1382 6.6261 12.0104 6.70818 11.8309 6.69312C11.5424 6.66891 11.3712 6.42143 11.365 6.14783C11.356 5.75454 11.3883 5.35864 11.4074 4.96608C11.4428 4.23646 11.477 3.5337 11.4245 2.8342L11.4242 2.82934C11.3916 2.32997 11.0493 2.00228 10.7007 1.9228C10.5305 1.88401 10.369 1.90601 10.2347 1.9835C10.103 2.05946 9.95535 2.21318 9.8574 2.51394L9.85631 2.51726C9.81525 2.6404 9.77298 2.87753 9.73606 3.2124C9.70044 3.53542 9.67337 3.91279 9.65156 4.29418C9.6329 4.62033 9.61785 4.9584 9.60434 5.26194C9.58728 5.64529 9.57267 5.97357 9.55633 6.1532C9.54983 6.22459 9.52939 6.29493 9.49501 6.35785C9.47356 6.39711 9.36115 6.60947 9.07106 6.61843C8.77917 6.62744 8.63975 6.40057 8.61698 6.35919C8.55634 6.24899 8.55066 6.11807 8.54754 5.99283C8.54474 5.88064 8.54294 5.71798 8.54174 5.54767C8.53935 5.20582 8.53935 4.81919 8.53935 4.70952C8.53935 3.6657 8.53838 2.65372 8.44714 1.64372C8.39183 1.24127 8.06278 1.00455 7.6436 1.00005C7.22399 0.995552 6.87918 1.22704 6.8113 1.64706ZM9.41219 1.3617C9.21469 0.448484 8.39913 0.00810324 7.65433 0.00011154C6.86452 -0.00836308 5.98761 0.465881 5.82365 1.49037L5.82318 1.49334C5.78239 1.7584 5.75229 2.01481 5.7309 2.26652C5.39423 1.67364 4.92622 1.14894 4.2655 0.916859C3.58661 0.679312 2.9492 0.887087 2.53582 1.31952C2.13415 1.73971 1.94438 2.36742 2.09031 2.98746L2.09269 2.99713C2.26478 3.66808 2.52396 4.30316 2.77613 4.90465C2.79814 4.95717 2.8201 5.00941 2.84194 5.06139C3.02139 5.48842 3.19378 5.89866 3.33871 6.31256C2.96404 5.98142 2.51925 5.70796 1.90276 5.6484C1.48865 5.60663 1.10391 5.67536 0.777805 5.88444C0.454239 6.0919 0.240671 6.40405 0.104187 6.75406L0.100868 6.76281C-0.10184 7.31286 0.0663312 7.97157 0.304895 8.42897C0.573704 8.96474 0.996104 9.47904 1.44372 9.96813C1.67046 10.2159 1.91136 10.4652 2.15033 10.7124L2.15682 10.7191C2.39524 10.9658 2.63217 11.2109 2.86134 11.4599C3.80937 12.49 4.50002 13.4632 4.50002 14.5C4.50002 14.7761 4.72388 15 5.00002 15H12C12.2762 15 12.5 14.7761 12.5 14.5C12.5 12.8212 12.8021 11.6462 13.2274 10.4762C13.3653 10.0968 13.5216 9.70579 13.6868 9.29247C14.0238 8.44922 14.398 7.51298 14.7295 6.39175C15.0956 5.15324 15.0559 4.25904 14.7735 3.63017C14.487 2.99208 13.9798 2.6953 13.5763 2.6152C13.1276 2.52614 12.7367 2.60475 12.4268 2.83081C12.4253 2.80773 12.4236 2.78468 12.4219 2.76167C12.3587 1.8105 11.6907 1.12285 10.923 0.947821C10.5346 0.859287 10.1111 0.900393 9.73509 1.11724C9.61852 1.18446 9.51055 1.26623 9.41219 1.3617Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),q=["color"],H=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,q);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M7.07926 0.222253C7.31275 -0.007434 7.6873 -0.007434 7.92079 0.222253L14.6708 6.86227C14.907 7.09465 14.9101 7.47453 14.6778 7.71076C14.4454 7.947 14.0655 7.95012 13.8293 7.71773L13 6.90201V12.5C13 12.7761 12.7762 13 12.5 13H2.50002C2.22388 13 2.00002 12.7761 2.00002 12.5V6.90201L1.17079 7.71773C0.934558 7.95012 0.554672 7.947 0.32229 7.71076C0.0899079 7.47453 0.0930283 7.09465 0.32926 6.86227L7.07926 0.222253ZM7.50002 1.49163L12 5.91831V12H10V8.49999C10 8.22385 9.77617 7.99999 9.50002 7.99999H6.50002C6.22388 7.99999 6.00002 8.22385 6.00002 8.49999V12H3.00002V5.91831L7.50002 1.49163ZM7.00002 12H9.00002V8.99999H7.00002V12Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),V=["color"],W=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,V);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M7.75432 0.819537C7.59742 0.726821 7.4025 0.726821 7.24559 0.819537L1.74559 4.06954C1.59336 4.15949 1.49996 4.32317 1.49996 4.5C1.49996 4.67683 1.59336 4.84051 1.74559 4.93046L7.24559 8.18046C7.4025 8.27318 7.59742 8.27318 7.75432 8.18046L13.2543 4.93046C13.4066 4.84051 13.5 4.67683 13.5 4.5C13.5 4.32317 13.4066 4.15949 13.2543 4.06954L7.75432 0.819537ZM7.49996 7.16923L2.9828 4.5L7.49996 1.83077L12.0171 4.5L7.49996 7.16923ZM1.5695 7.49564C1.70998 7.2579 2.01659 7.17906 2.25432 7.31954L7.49996 10.4192L12.7456 7.31954C12.9833 7.17906 13.2899 7.2579 13.4304 7.49564C13.5709 7.73337 13.4921 8.03998 13.2543 8.18046L7.75432 11.4305C7.59742 11.5232 7.4025 11.5232 7.24559 11.4305L1.74559 8.18046C1.50786 8.03998 1.42901 7.73337 1.5695 7.49564ZM1.56949 10.4956C1.70998 10.2579 2.01658 10.1791 2.25432 10.3195L7.49996 13.4192L12.7456 10.3195C12.9833 10.1791 13.2899 10.2579 13.4304 10.4956C13.5709 10.7334 13.4921 11.04 13.2543 11.1805L7.75432 14.4305C7.59742 14.5232 7.4025 14.5232 7.24559 14.4305L1.74559 11.1805C1.50785 11.04 1.42901 10.7334 1.56949 10.4956Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}
5),Z=["color"],K=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,Z);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),G=["color"],J=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,G);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),Q=["color"],Y=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,Q);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M1.20308 1.04312C1.00481 0.954998 0.772341 1.0048 0.627577 1.16641C0.482813 1.32802 0.458794 1.56455 0.568117 1.75196L3.92115 7.50002L0.568117 13.2481C0.458794 13.4355 0.482813 13.672 0.627577 13.8336C0.772341 13.9952 1.00481 14.045 1.20308 13.9569L14.7031 7.95693C14.8836 7.87668 15 7.69762 15 7.50002C15 7.30243 14.8836 7.12337 14.7031 7.04312L1.20308 1.04312ZM4.84553 7.10002L2.21234 2.586L13.2689 7.50002L2.21234 12.414L4.84552 7.90002H9C9.22092 7.90002 9.4 7.72094 9.4 7.50002C9.4 7.27911 9.22092 7.10002 9 7.10002H4.84553Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),X=["color"],ee=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,X);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),et=["color"],er=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,et);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),en=["color"],ea=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,en);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M12.1464 1.14645C12.3417 0.951184 12.6583 0.951184 12.8535 1.14645L14.8535 3.14645C15.0488 3.34171 15.0488 3.65829 14.8535 3.85355L10.9109 7.79618C10.8349 7.87218 10.7471 7.93543 10.651 7.9835L6.72359 9.94721C6.53109 10.0435 6.29861 10.0057 6.14643 9.85355C5.99425 9.70137 5.95652 9.46889 6.05277 9.27639L8.01648 5.34897C8.06455 5.25283 8.1278 5.16507 8.2038 5.08907L12.1464 1.14645ZM12.5 2.20711L8.91091 5.79618L7.87266 7.87267L8.12731 8.12732L10.2038 7.08907L13.7929 3.5L12.5 2.20711ZM9.99998 2L8.99998 3H4.9C4.47171 3 4.18056 3.00039 3.95552 3.01877C3.73631 3.03668 3.62421 3.06915 3.54601 3.10899C3.35785 3.20487 3.20487 3.35785 3.10899 3.54601C3.06915 3.62421 3.03669 3.73631 3.01878 3.95552C3.00039 4.18056 3 4.47171 3 4.9V11.1C3 11.5283 3.00039 11.8194 3.01878 12.0445C3.03669 12.2637 3.06915 12.3758 3.10899 12.454C3.20487 12.6422 3.35785 12.7951 3.54601 12.891C3.62421 12.9309 3.73631 12.9633 3.95552 12.9812C4.18056 12.9996 4.47171 13 4.9 13H11.1C11.5283 13 11.8194 12.9996 12.0445 12.9812C12.2637 12.9633 12.3758 12.9309 12.454 12.891C12.6422 12.7951 12.7951 12.6422 12.891 12.454C12.9309 12.3758 12.9633 12.2637 12.9812 12.0445C12.9996 11.8194 13 11.5283 13 11.1V6.99998L14 5.99998V11.1V11.1207C14 11.5231 14 11.8553 13.9779 12.1259C13.9549 12.407 13.9057 12.6653 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.6653 
513.9057 12.407 13.9549 12.1259 13.9779C11.8553 14 11.5231 14 11.1207 14H11.1H4.9H4.87934C4.47686 14 4.14468 14 3.87409 13.9779C3.59304 13.9549 3.33469 13.9057 3.09202 13.782C2.7157 13.5903 2.40973 13.2843 2.21799 12.908C2.09434 12.6653 2.04506 12.407 2.0221 12.1259C1.99999 11.8553 1.99999 11.5231 2 11.1207V11.1206V11.1V4.9V4.87935V4.87932V4.87931C1.99999 4.47685 1.99999 4.14468 2.0221 3.87409C2.04506 3.59304 2.09434 3.33469 2.21799 3.09202C2.40973 2.71569 2.7157 2.40973 3.09202 2.21799C3.33469 2.09434 3.59304 2.04506 3.87409 2.0221C4.14468 1.99999 4.47685 1.99999 4.87932 2H4.87935H4.9H9.99998Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),ei=["color"],eo=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,ei);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),es=["color"],el=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,es);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),eu=["color"],ec=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,eu);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M5.07505 4.10001C5.07505 2.91103 6.25727 1.92502 7.50005 1.92502C8.74283 1.92502 9.92505 2.91103 9.92505 4.10001C9.92505 5.19861 9.36782 5.71436 8.61854 6.37884L8.58757 6.4063C7.84481 7.06467 6.92505 7.87995 6.92505 9.5C6.92505 9.81757 7.18248 10.075 7.50005 10.075C7.81761 10.075 8.07505 9.81757 8.07505 9.5C8.07505 8.41517 8.62945 7.90623 9.38156 7.23925L9.40238 7.22079C10.1496 6.55829 11.075 5.73775 11.075 4.10001C11.075 2.12757 9.21869 0.775024 7.50005 0.775024C5.7814 0.775024 3.92505 2.12757 3.92505 4.10001C3.92505 4.41758 4.18249 4.67501 4.50005 4.67501C4.81761 4.67501 5.07505 4.41758 5.07505 4.10001ZM7.50005 13.3575C7.9833 13.3575 8.37505 12.9657 8.37505 12.4825C8.37505 11.9992 7.9833 11.6075 7.50005 11.6075C7.0168 11.6075 6.62505 11.9992 6.62505 12.4825C6.62505 12.9657 7.0168 13.3575 7.50005 13.3575Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),ed=["color"],ep=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,ed);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M4.2 1H4.17741H4.1774C3.86936 0.999988 3.60368 0.999978 3.38609 1.02067C3.15576 1.04257 2.92825 1.09113 2.71625 1.22104C2.51442 1.34472 2.34473 1.51442 2.22104 1.71625C2.09113 1.92825 2.04257 2.15576 2.02067 2.38609C1.99998 2.60367 1.99999 2.86935 2 3.17738V3.1774V3.2V11.8V11.8226V11.8226C1.99999 12.1307 1.99998 12.3963 2.02067 12.6139C2.04257 12.8442 2.09113 13.0717 2.22104 13.2837C2.34473 13.4856 2.51442 13.6553 2.71625 13.779C2.92825 13.9089 3.15576 13.9574 3.38609 13.9793C3.60368 
514 3.86937 14 4.17741 14H4.2H10.8H10.8226C11.1306 14 11.3963 14 11.6139 13.9793C11.8442 13.9574 12.0717 13.9089 12.2837 13.779C12.4856 13.6553 12.6553 13.4856 12.779 13.2837C12.9089 13.0717 12.9574 12.8442 12.9793 12.6139C13 12.3963 13 12.1306 13 11.8226V11.8V3.2V3.17741C13 2.86936 13 2.60368 12.9793 2.38609C12.9574 2.15576 12.9089 1.92825 12.779 1.71625C12.6553 1.51442 12.4856 1.34472 12.2837 1.22104C12.0717 1.09113 11.8442 1.04257 11.6139 1.02067C11.3963 0.999978 11.1306 0.999988 10.8226 1H10.8H4.2ZM3.23875 2.07368C3.26722 2.05623 3.32362 2.03112 3.48075 2.01618C3.64532 2.00053 3.86298 2 4.2 2H10.8C11.137 2 11.3547 2.00053 11.5193 2.01618C11.6764 2.03112 11.7328 2.05623 11.7613 2.07368C11.8285 2.11491 11.8851 2.17147 11.9263 2.23875C11.9438 2.26722 11.9689 2.32362 11.9838 2.48075C11.9995 2.64532 12 2.86298 12 3.2V11.8C12 12.137 11.9995 12.3547 11.9838 12.5193C11.9689 12.6764 11.9438 12.7328 11.9263 12.7613C11.8851 12.8285 11.8285 12.8851 11.7613 12.9263C11.7328 12.9438 11.6764 12.9689 11.5193 12.9838C11.3547 12.9995 11.137 13 10.8 13H4.2C3.86298 13 3.64532 12.9995 3.48075 12.9838C3.32362 12.9689 3.26722 12.9438 3.23875 12.9263C3.17147 12.8851 3.11491 12.8285 3.07368 12.7613C3.05624 12.7328 3.03112 12.6764 3.01618 12.5193C3.00053 12.3547 3 12.137 3 11.8V3.2C3 2.86298 3.00053 2.64532 3.01618 2.48075C3.03112 2.32362 3.05624 2.26722 3.07368 2.23875C3.11491 2.17147 3.17147 2.11491 3.23875 2.07368ZM5 10C4.72386 10 4.5 10.2239 4.5 10.5C4.5 10.7761 4.72386 11 5 11H8C8.27614 11 8.5 10.7761 8.5 10.5C8.5 10.2239 8.27614 10 8 10H5ZM4.5 7.5C4.5 7.22386 4.72386 7 5 7H10C10.2761 7 10.5 7.22386 10.5 7.5C10.5 7.77614 10.2761 8 10 8H5C4.72386 8 4.5 7.77614 4.5 7.5ZM5 4C4.72386 4 4.5 4.22386 4.5 4.5C4.5 4.77614 4.72386 5 5 5H10C10.2761 5 10.5 4.77614 10.5 4.5C10.5 4.22386 10.2761 4 10 4H5Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),ef=["color"],eh=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,ef);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M4.85355 2.14645C5.04882 2.34171 5.04882 2.65829 4.85355 2.85355L3.70711 4H9C11.4853 4 13.5 6.01472 13.5 8.5C13.5 10.9853 11.4853 13 9 13H5C4.72386 13 4.5 12.7761 4.5 12.5C4.5 12.2239 4.72386 12 5 12H9C10.933 12 12.5 10.433 12.5 8.5C12.5 6.567 10.933 5 9 5H3.70711L4.85355 6.14645C5.04882 6.34171 5.04882 6.65829 4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355L2.14645 4.85355C1.95118 4.65829 1.95118 4.34171 2.14645 4.14645L4.14645 2.14645C4.34171 1.95118 4.65829 1.95118 4.85355 2.14645Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),eg=["color"],ey=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,eg);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M1.90321 7.29677C1.90321 10.341 4.11041 12.4147 6.58893 12.8439C6.87255 12.893 7.06266 13.1627 7.01355 13.4464C6.96444 13.73 6.69471 13.9201 6.41109 13.871C3.49942 13.3668 0.86084 10.9127 0.86084 7.29677C0.860839 5.76009 1.55996 4.55245 2.37639 3.63377C2.96124 2.97568 3.63034 2.44135 4.16846 2.03202L2.53205 2.03202C2.25591 2.03202 2.03205 1.80816 2.03205 1.53202C2.03205 1.25588 2.25591 1.03202 2.53205 1.03202L5.53205 1.03202C5.80819 1.03202 6.03205 1.25588 6.03205 1.53202L6.03205 4.53202C6.03205 4.80816 5.80819 5.03202 5.53205 5.03202C5.25591 5.03202 5.03205 4.80816 5.03205 4.53202L5.03205 2.68645L5.03054 2.68759L5.03045 2.68766L5.03044 2.68767L5.03043 2.68767C4.45896 3.11868 3.76059 3.64538 3.15554 4.3262C2.44102 5.13021 1.90321 6.10154 1.90321 7.29677ZM13.0109 7.70321C13.0109 4.69115 10.8505 2.6296 8.40384 2.17029C8.12093 2.11718 7.93465 1.84479 7.98776 1.56188C8.04087 1.27898 8.31326 1.0927 8.59616 1.14581C11.4704 1.68541 14.0532 4.12605 14.0532 7.70321C14.0532 9.23988 13.3541 10.4475 12.5377 11.3662C11.9528 12.0243 11.2837 12.5586 10.7456 12.968L12.3821 12.968C12.6582 12.968 12.8821 13.1918 12.8821 13.468C12.8821 13.7441 12.6582 13.968 12.3821 13.968L9.38205 13.968C9.10591 13.968 8.88205 13.7441 8.88205 13.468L8.88205 10.468C8.88205 10.1918 9.10591 9.96796 9.38205 9.96796C9.65819 9.96796 9.88205 10.1918 9.88205 10.468L9.88205 12.3135L9.88362 12.3123C10.4551 11.8813 11.1535 11.3546 11.7585 10.6738C12.4731 9.86976 13.0109 8.89844 13.0109 7.70321Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}
5),em=["color"],ev=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,em);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),eb=["color"],e_=(0,n.forwardRef)(function(e,t){var r=e.color,i=a(e,eb);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M4 9H11L7.5 4.5L4 9Z",fill:void 0===r?"currentColor":r}))})},51254:()=>{},51641:e=>{function t(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(n&&(n+=" "),n+=t);return n}e.exports=t,e.exports.clsx=t},51786:(e,t,r)=>{"use strict";r.d(t,{EB:()=>tZ,zM:()=>rl,eu:()=>rb,ai:()=>ra,Ik:()=>rh,vk:()=>rD,Yj:()=>tW});var n,a=r(12549);let i=/^[cC][0-9a-z]{6,}$/,o=/^[0-9a-z]+$/,s=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,l=/^[0-9a-vA-V]{20}$/,u=/^[A-Za-z0-9]{27}$/,c=/^[a-zA-Z0-9_-]{21}$/,d=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,p=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,f=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,h=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,g=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,y=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,m=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,v=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,b=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,_=/^[A-Za-z0-9_-]*$/,w=/^https?$/,C=/^\+[1-9]\d{6,14}$/,S="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",k=RegExp(`^${S}$`);function E(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let x=/^-?\d+$/,R=/^-?\d+(?:\.\d+)?$/,O=/^(?:true|false)$/i,T=/^[^A-Z]*$/,I=/^[^a-z]*$/;var A=r(80794);let P=a.xI("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),M={number:"number",bigint:"bigint",object:"date"},j=a.xI("$ZodCheckLessThan",(e,t)=>{P.init(e,t);let r=M[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),L=a.xI("$ZodCheckGreaterThan",(e,t)=>{P.init(e,t);let r=M[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),D=a.xI("$ZodCheckMultipleOf",(e,t)=>{P.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===A.LG(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),N=a.xI("$ZodCheckNumberFormat",(e,t)=>{P.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[a,i]=A.zH[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=a,n.maximum=i,r&&(n.pattern=x)}),e._zod.check=o=>{let s=o.value;if(r){if(!Number.isInteger(s))return void o.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>
50?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}))}s<a&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),s>i&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),F=a.xI("$ZodCheckMaxLength",(e,t)=>{var r;P.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!A.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let a=A.Rc(n);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),z=a.xI("$ZodCheckMinLength",(e,t)=>{var r;P.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!A.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let a=A.Rc(n);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),$=a.xI("$ZodCheckLengthEquals",(e,t)=>{var r;P.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!A.cl(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let n=r.value,a=n.length;if(a===t.length)return;let i=A.Rc(n),o=a>t.length;r.issues.push({origin:i,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),U=a.xI("$ZodCheckStringFormat",(e,t)=>{var r,n;P.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),B=a.xI("$ZodCheckRegex",(e,t)=>{U.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),q=a.xI("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=T),U.init(e,t)}),H=a.xI("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=I),U.init(e,t)}),V=a.xI("$ZodCheckIncludes",(e,t)=>{P.init(e,t);let r=A.$f(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),W=a.xI("$ZodCheckStartsWith",(e,t)=>{P.init(e,t);let r=RegExp(`^${A.$f(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Z=a.xI("$ZodCheckEndsWith",(e,t)=>{P.init(e,t);let r=RegExp(`.*${A.$f(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),K=a.xI("$ZodCheckOverwrite",(e,t)=>{P.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class G{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>`  ${e}`)].join("\n"))}}let J=(e,t)=>
5{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,A.k8,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Q=(0,a.xI)("$ZodError",J),Y=(0,a.xI)("$ZodError",J,{Parent:Error}),X=e=>(t,r,n,i)=>{let o=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new a.GT;if(s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>A.iR(e,o,a.$W())));throw A.gx(t,i?.callee),t}return s.value},ee=e=>async(t,r,n,i)=>{let o=n?{...n,async:!0}:{async:!0},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>A.iR(e,o,a.$W())));throw A.gx(t,i?.callee),t}return s.value},et=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},i);if(o instanceof Promise)throw new a.GT;return o.issues.length?{success:!1,error:new(e??Q)(o.issues.map(e=>A.iR(e,i,a.$W())))}:{success:!0,data:o.value}},er=et(Y),en=e=>async(t,r,n)=>{let i=n?{...n,async:!0}:{async:!0},o=t._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>A.iR(e,i,a.$W())))}:{success:!0,data:o.value}},ea=en(Y),ei={major:4,minor:4,patch:3},eo=a.xI("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ei;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let n,i=A.QH(e);for(let o of t){if(o._zod.def.when){if(A.rL(e)||!o._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&r?.async===!1)throw new a.GT;if(n||s instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||(i=A.QH(e,t)))});else{if(e.issues.length===t)continue;i||(i=A.QH(e,t))}}return n?n.then(()=>e):e},r=(r,i,o)=>{if(A.QH(r))return r.aborted=!0,r;let s=t(i,n,o);if(s instanceof Promise){if(!1===o.async)throw new a.GT;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(i,o)=>{if(o.skipChecks)return e._zod.parse(i,o);if("backward"===o.direction){let t=e._zod.parse({value:i.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,i,o)):r(t,i,o)}let s=e._zod.parse(i,o);if(s instanceof Promise){if(!1===o.async)throw new a.GT;return s.then(e=>t(e,n,o))}return t(s,n,o)}}A.gJ(e,"~standard",()=>({validate:t=>{try{let r=er(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return ea(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),es=a.xI("$ZodString",(e,t)=>{eo.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)})(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),el=a.xI("$ZodStringFormat",(e,t)=>{U.init(e,t),es.init(e,t)}),eu=a.xI("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=p),el.init(e,t)}),ec=a.xI("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=f(e))}else t.pattern??(t.pattern=f());el.init(e,t)}),ed=a.xI("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=h),el.init(e,t)}),ep=a.xI("$ZodURL",(e,t)=>{el.init(e,t),e._zod.check=r=>{try{let n=r.value.trim();if(!t.normalize&&t.protocol?.source===w.source&&!/^https?:\/\//i.test(n))return void r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});let a=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||r.issues.push({code:"invalid_format",format:"url",n
5ote:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=a.href:r.value=n;return}catch(n){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),ef=a.xI("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),el.init(e,t)}),eh=a.xI("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=c),el.init(e,t)}),eg=a.xI("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=i),el.init(e,t)}),ey=a.xI("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=o),el.init(e,t)}),em=a.xI("$ZodULID",(e,t)=>{t.pattern??(t.pattern=s),el.init(e,t)}),ev=a.xI("$ZodXID",(e,t)=>{t.pattern??(t.pattern=l),el.init(e,t)}),eb=a.xI("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=u),el.init(e,t)}),e_=a.xI("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=function(e){let t=E({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return RegExp(`^${S}T(?:${n})$`)}(t)),el.init(e,t)}),ew=a.xI("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=k),el.init(e,t)}),eC=a.xI("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${E(t)}$`)),el.init(e,t)}),eS=a.xI("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=d),el.init(e,t)}),ek=a.xI("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=g),el.init(e,t),e._zod.bag.format="ipv4"}),eE=a.xI("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=y),el.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),ex=a.xI("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=m),el.init(e,t)}),eR=a.xI("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=v),el.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(2!==n.length)throw Error();let[e,t]=n;if(!t)throw Error();let r=Number(t);if(`${r}`!==t||r<0||r>128)throw Error();new URL(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function eO(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let eT=a.xI("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=b),el.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{eO(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),eI=a.xI("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=_),el.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{!function(e){if(!_.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return eO(t.padEnd(4*Math.ceil(t.length/4),"="))}(r.value)&&r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),eA=a.xI("$ZodE164",(e,t)=>{t.pattern??(t.pattern=C),el.init(e,t)}),eP=a.xI("$ZodJWT",(e,t)=>{el.init(e,t),e._zod.check=r=>{!function(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let a=JSON.parse(atob(n));if("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))return!1;return!0}catch{return!1}}(r.value,t.alg)&&r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),eM=a.xI("$ZodNumber",(e,t)=>{eo.init(e,t),e._zod.pattern=e._zod.bag.pattern??R,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let a=r.value;if("number"==typeof a&&!Number.isNaN(a)&&Number.isFinite(a))return r;let i="number"==typeof a?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...i?{received:i}:{}}),r}}),ej=a.xI("$ZodNumberFormat",(e,t)=>{N.init(e,t),eM.init(e,t)}),eL=a.xI("$ZodBoolean",(e,t)=>{eo.init(e,t),e._zod.pattern=O,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let a=r.value;return"boolean"==typeof a||r.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),r}}),eD=a.xI("$ZodUnknown",(e,t)=>{eo.init(e,t),e._zod.parse=e=>e}),eN=a.xI("$ZodNever",(e,t)=>{eo.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function eF(e,t,r){e.issues.length&&t.issues.push(...A.lQ(r,e.issues)),t.value[r]=e.value}let ez=a.xI("$ZodArray",(e,t)=>{eo.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),r;r.value=Array(a.length);let i=[];for(let e=0;e<a.length;e++){let o=a[e],s=t.element._zod.run({value:o,issues:[]},n);s instanceof Promise?i.push(s.then(t=>eF(t,r,e))):eF(s,r,e)}return i.length?Promise.all(i).then(()=>r):r}});function e$(e,t,r,n,a,i){let o=r in n;if(e.issues.length){if(a&&i&&!o)return;t.issues.push(...A.lQ(r,e.issues))}if(!o&&!a){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}void 0===e.value?o&&(t.value[r]=void 0):t.value[r]=e.value}function eU(e){let t=Object.keys(e.shape);for(let r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${r}": expected a Zod schema`);let r=A.NM(e.shape);
5return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function eB(e,t,r,n,a,i){let o=[],s=a.keySet,l=a.catchall._zod,u=l.def.type,c="optional"===l.optin,d="optional"===l.optout;for(let a in t){if("__proto__"===a||s.has(a))continue;if("never"===u){o.push(a);continue}let i=l.run({value:t[a],issues:[]},n);i instanceof Promise?e.push(i.then(e=>e$(e,r,a,t,c,d))):e$(i,r,a,t,c,d)}return(o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:i}),e.length)?Promise.all(e).then(()=>r):r}let eq=a.xI("$ZodObject",(e,t)=>{let r;eo.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}let a=A.PO(()=>eU(t));A.gJ(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(r[t]??(r[t]=new Set),n.values))r[t].add(e)}return r});let i=A.Gv,o=t.catchall;e._zod.parse=(t,n)=>{r??(r=a.value);let s=t.value;if(!i(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};let l=[],u=r.shape;for(let e of r.keys){let r=u[e],a="optional"===r._zod.optin,i="optional"===r._zod.optout,o=r._zod.run({value:s[e],issues:[]},n);o instanceof Promise?l.push(o.then(r=>e$(r,t,e,s,a,i))):e$(o,t,e,s,a,i)}return o?eB(l,s,t,n,a.value,e):l.length?Promise.all(l).then(()=>t):t}}),eH=a.xI("$ZodObjectJIT",(e,t)=>{let r,n;eq.init(e,t);let i=e._zod.parse,o=A.PO(()=>eU(t)),s=A.Gv,l=!a.cr.jitless,u=A.hI,c=l&&u.value,d=t.catchall;e._zod.parse=(a,u)=>{n??(n=o.value);let p=a.value;return s(p)?l&&c&&u?.async===!1&&!0!==u.jitless?(r||(r=(e=>{let t=new G(["shape","payload","ctx"]),r=o.value,n=e=>{let t=A.UQ(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let a=Object.create(null),i=0;for(let e of r.keys)a[e]=`key_${i++}`;for(let i of(t.write("const newResult = {};"),r.keys)){let r=a[i],o=A.UQ(i),s=e[i],l=s?._zod?.optin==="optional",u=s?._zod?.optout==="optional";t.write(`const ${r} = ${n(i)};`),l&&u?t.write(`
6        if (${r}.issues.length) {
7          if (${o} in input) {
8            payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
9              ...iss,
10              path: iss.path ? [${o}, ...iss.path] : [${o}]
11            })));
12          }
13        }
14        
15        if (${r}.value === undefined) {
16          if (${o} in input) {
17            newResult[${o}] = undefined;
18          }
19        } else {
20          newResult[${o}] = ${r}.value;
21        }
22        
23      `):l?t.write(`
24        if (${r}.issues.length) {
25          payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
26            ...iss,
27            path: iss.path ? [${o}, ...iss.path] : [${o}]
28          })));
29        }
30        
31        if (${r}.value === undefined) {
32          if (${o} in input) {
33            newResult[${o}] = undefined;
34          }
35        } else {
36          newResult[${o}] = ${r}.value;
37        }
38        
39      `):t.write(`
40        const ${r}_present = ${o} in input;
41        if (${r}.issues.length) {
42          payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
43            ...iss,
44            path: iss.path ? [${o}, ...iss.path] : [${o}]
45          })));
46        }
47        if (!${r}_present && !${r}.issues.length) {
48          payload.issues.push({
49            code: "invalid_type",
50            expected: "nonoptional",
51            input: undefined,
52            path: [${o}]
53          });
54        }
55
56        if (${r}_present) {
57          if (${r}.value === undefined) {
58            newResult[${o}] = undefined;
59          } else {
60            newResult[${o}] = ${r}.value;
61          }
62        }
63
64      `)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,r)=>s(e,t,r)})(t.shape)),a=r(a,u),d)?eB([],p,a,u,n,e):a:i(a,u):(a.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),a)}});function eV(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;let i=e.filter(e=>!A.QH(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>A.iR(e,n,a.$W())))}),t)}let eW=a.xI("$ZodUnion",(e,t)=>{eo.init(e,t),A.gJ(e._zod,"optin",()=>t.options.some(e=>
64"optional"===e._zod.optin)?"optional":void 0),A.gJ(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),A.gJ(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),A.gJ(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>A.p6(e.source)).join("|")})$`)}});let r=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(n,a)=>{if(r)return r(n,a);let i=!1,o=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},a);if(t instanceof Promise)o.push(t),i=!0;else{if(0===t.issues.length)return t;o.push(t)}}return i?Promise.all(o).then(t=>eV(t,n,e,a)):eV(o,n,e,a)}}),eZ=a.xI("$ZodIntersection",(e,t)=>{eo.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,a=t.left._zod.run({value:n,issues:[]},r),i=t.right._zod.run({value:n,issues:[]},r);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(([t,r])=>eK(e,t,r)):eK(e,a,i)}});function eK(e,t,r){let n,a=new Map;for(let r of t.issues)if("unrecognized_keys"===r.code)for(let e of(n??(n=r),r.keys))a.has(e)||a.set(e,{}),a.get(e).l=!0;else e.issues.push(r);for(let t of r.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)a.has(e)||a.set(e,{}),a.get(e).r=!0;else e.issues.push(t);let i=[...a].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(i.length&&n&&e.issues.push({...n,keys:i}),A.QH(e))return e;let o=function e(t,r){if(t===r||t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(A.Qd(t)&&A.Qd(r)){let n=Object.keys(r),a=Object.keys(t).filter(e=>-1!==n.indexOf(e)),i={...t,...r};for(let n of a){let a=e(t[n],r[n]);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};i[n]=a.data}return{valid:!0,data:i}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let a=0;a<t.length;a++){let i=e(t[a],r[a]);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,r.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}let eG=a.xI("$ZodEnum",(e,t)=>{eo.init(e,t);let r=A.w5(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=RegExp(`^(${r.filter(e=>A.qQ.has(typeof e)).map(e=>"string"==typeof e?A.$f(e):e.toString()).join("|")})$`),e._zod.parse=(t,a)=>{let i=t.value;return n.has(i)||t.issues.push({code:"invalid_value",values:r,input:i,inst:e}),t}}),eJ=a.xI("$ZodLiteral",(e,t)=>{if(eo.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?A.$f(e):e?A.$f(e.toString()):String(e)).join("|")})$`),e._zod.parse=(n,a)=>{let i=n.value;return r.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),eQ=a.xI("$ZodTransform",(e,t)=>{eo.init(e,t),e._zod.optin="optional",e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new a.cV(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(r.value=e,r.fallback=!0,r));if(i instanceof Promise)throw new a.GT;return r.value=i,r.fallback=!0,r}});function eY(e,t){return void 0===t&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}let eX=a.xI("$ZodOptional",(e,t)=>{eo.init(e,t),e._zod.optin="optional",e._zod.optout="optional",A.gJ(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),A.gJ(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${A.p6(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){let n=e.value,a=t.innerType._zod.run(e,r);return a instanceof Promise?a.then(e=>eY(e,n)):eY(a,n)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),e0=a.xI("$ZodExactOptional",(e,t)=>{eX.init(e,t),A.gJ(e._zod,"values",()=>t.innerType._zod.values),A.gJ(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,r)=>t.innerType._zod.run(e,r)}),e1=a.xI("$ZodNullable",(e,t)=>{eo.init(e,t),A.gJ(e._zod,"optin",()=>t.innerType._zod.optin),A.gJ(e._zod,"optout",()=>t.innerType._zod.optout),A.gJ(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${A.p6(e.source)}|null)$`):void 0}),A.gJ(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),e2=a.xI("$ZodDefault",(e,t)=>{eo.init(e,t),e._zod.optin="optional",A.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>e5(e,t)):e5(n,t)}});function e5(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let e3=a.xI("$ZodPrefault",(e,t)=>{eo.init(e,t),e._zod.optin="optional",A.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),e4=a.xI("$ZodNonOptional",(e,t)=>{eo.init(e,t),A.gJ(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(t=>e7(t,e)):e7(a,e)}});function e7(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let e9=a.xI("$ZodCatch",(e,t)=>{eo.init(e,t),e._zod.optin="optional",A.gJ(e._zod,"optout",()=>t.innerType._zod.optout),A.gJ(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>
64(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>A.iR(e,r,a.$W()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>A.iR(e,r,a.$W()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),e6=a.xI("$ZodPipe",(e,t)=>{eo.init(e,t),A.gJ(e._zod,"values",()=>t.in._zod.values),A.gJ(e._zod,"optin",()=>t.in._zod.optin),A.gJ(e._zod,"optout",()=>t.out._zod.optout),A.gJ(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){let n=t.out._zod.run(e,r);return n instanceof Promise?n.then(e=>e8(e,t.in,r)):e8(n,t.in,r)}let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>e8(e,t.out,r)):e8(n,t.out,r)}});function e8(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}let te=a.xI("$ZodPreprocess",(e,t)=>{e6.init(e,t)}),tt=a.xI("$ZodReadonly",(e,t)=>{eo.init(e,t),A.gJ(e._zod,"propValues",()=>t.innerType._zod.propValues),A.gJ(e._zod,"values",()=>t.innerType._zod.values),A.gJ(e._zod,"optin",()=>t.innerType?._zod?.optin),A.gJ(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(tr):tr(n)}});function tr(e){return e.value=Object.freeze(e.value),e}let tn=a.xI("$ZodCustom",(e,t)=>{P.init(e,t),eo.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,a=t.fn(n);if(a instanceof Promise)return a.then(t=>ta(t,r,n,e));ta(a,r,n,e)}});function ta(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(A.sn(e))}}Symbol("ZodOutput"),Symbol("ZodInput");class ti{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];return this._map.set(e,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let n={...r,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}(n=globalThis).__zod_globalRegistry??(n.__zod_globalRegistry=new ti);let to=globalThis.__zod_globalRegistry;function ts(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...A.A2(t)})}function tl(e,t){return new j({check:"less_than",...A.A2(t),value:e,inclusive:!1})}function tu(e,t){return new j({check:"less_than",...A.A2(t),value:e,inclusive:!0})}function tc(e,t){return new L({check:"greater_than",...A.A2(t),value:e,inclusive:!1})}function td(e,t){return new L({check:"greater_than",...A.A2(t),value:e,inclusive:!0})}function tp(e,t){return new D({check:"multiple_of",...A.A2(t),value:e})}function tf(e,t){return new F({check:"max_length",...A.A2(t),maximum:e})}function th(e,t){return new z({check:"min_length",...A.A2(t),minimum:e})}function tg(e,t){return new $({check:"length_equals",...A.A2(t),length:e})}function ty(e){return new K({check:"overwrite",tx:e})}function tm(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??to,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function tv(e,t,r={path:[],schemaPath:[]}){var n;let a=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let n={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,n);else{let r=o.schema,i=t.processors[a.type];if(!i)throw Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);i(e,t,r,n)}let i=e._zod.parent;i&&(o.ref||(o.ref=i),tv(i,t,n),t.seen.get(i).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(o.schema,l),"input"===t.io&&function e(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let a=t._zod.def;if("transform"===a.type)return!0;
64if("array"===a.type)return e(a.element,n);if("set"===a.type)return e(a.valueType,n);if("lazy"===a.type)return e(a.getter(),n);if("promise"===a.type||"optional"===a.type||"nonoptional"===a.type||"nullable"===a.type||"readonly"===a.type||"default"===a.type||"prefault"===a.type)return e(a.innerType,n);if("intersection"===a.type)return e(a.left,n)||e(a.right,n);if("record"===a.type||"map"===a.type)return e(a.keyType,n)||e(a.valueType,n);if("pipe"===a.type)return!!t._zod.traits.has("$ZodCodec")||e(a.in,n)||e(a.out,n);if("object"===a.type){for(let t in a.shape)if(e(a.shape[t],n))return!0;return!1}if("union"===a.type){for(let t of a.options)if(e(t,n))return!0;return!1}if("tuple"===a.type){for(let t of a.items)if(e(t,n))return!0;if(a.rest&&e(a.rest,n))return!0}return!1}(e)&&(delete o.schema.examples,delete o.schema.default),"input"===t.io&&"_prefault"in o.schema&&((n=o.schema).default??(n.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function tb(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let t of e.seen.entries()){let r=e.metadataRegistry.get(t[0])?.id;if(r){let e=n.get(r);if(e&&e!==t[0])throw Error(`Duplicate schema id "${r}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(r,t[0])}}let a=t=>{if(t[1].schema.$ref)return;let n=t[1],{ref:a,defId:i}=(t=>{let n="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let r=e.external.registry.get(t[0])?.id,a=e.external.uri??(e=>e);if(r)return{ref:a(r)};let i=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=i,{defId:i,ref:`${a("__shared")}#/${n}/${i}`}}if(t[1]===r)return{ref:"#"};let a=`#/${n}/`,i=t[1].schema.id??`__schema${e.counter++}`;return{defId:i,ref:a+i}})(t);n.def={...n.schema},i&&(n.defId=i);let o=n.schema;for(let e in o)delete o[e];o.$ref=a};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
65
66Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let r of e.seen.entries()){let n=r[1];if(t===r[0]){a(r);continue}if(e.external){let n=e.external.registry.get(r[0])?.id;if(t!==r[0]&&n){a(r);continue}}if(e.metadataRegistry.get(r[0])?.id||n.cycle||n.count>1&&"ref"===e.reused){a(r);continue}}}function t_(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=t=>{let r=e.seen.get(t);if(null===r.ref)return;let a=r.def??r.schema,i={...a},o=r.ref;if(r.ref=null,o){n(o);let r=e.seen.get(o),s=r.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(a.allOf=a.allOf??[],a.allOf.push(s)):Object.assign(a,s),Object.assign(a,i),t._zod.parent===o)for(let e in a)"$ref"!==e&&"allOf"!==e&&(e in i||delete a[e]);if(s.$ref&&r.def)for(let e in a)"$ref"!==e&&"allOf"!==e&&e in r.def&&JSON.stringify(a[e])===JSON.stringify(r.def[e])&&delete a[e]}let s=t._zod.parent;if(s&&s!==o){n(s);let t=e.seen.get(s);if(t?.schema.$ref&&(a.$ref=t.schema.$ref,t.def))for(let e in a)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(a[e])===JSON.stringify(t.def[e])&&delete a[e]}e.override({zodSchema:t,jsonSchema:a,path:r.path??[]})};for(let t of[...e.seen.entries()].reverse())n(t[0]);let a={};if("draft-2020-12"===e.target?a.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?a.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let r=e.external.registry.get(t)?.id;if(!r)throw Error("Schema is missing an `id` property");a.$id=e.external.uri(r)}Object.assign(a,r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;void 0!==i&&a.id===i&&delete a.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&("draft-2020-12"===e.target?a.$defs=o:a.definitions=o);try{let r=JSON.parse(JSON.stringify(a));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:tw(t,"input",e.processors),output:tw(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch(e){throw Error("Error converting schema to JSON.")}}let tw=(e,t,r={})=>n=>{let{libraryOptions:a,target:i}=n??{},o=tm({...a??{},target:i,io:t,processors:r});return tv(e,o),tb(o,e),t_(o,e)},tC={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},tS=(e,t,r,n)=>{let a=e._zod.def;tv(a.innerType,t,n),t.seen.get(e).ref=a.innerType},tk=a.xI("ZodISODateTime",(e,t)=>{e_.init(e,t),tZ.init(e,t)}),tE=a.xI("ZodISODate",(e,t)=>{ew.init(e,t),tZ.init(e,t)}),tx=a.xI("ZodISOTime",(e,t)=>{eC.init(e,t),tZ.init(e,t)}),tR=a.xI("ZodISODuration",(e,t)=>{eS.init(e,t),tZ.init(e,t)}),tO=a.xI("ZodError",(e,t)=>{Q.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>(function(e,t=e=>e.message){let r={_errors:[]},n=(e,a=[])=>{for(let i of e.issues)if("invalid_union"===i.code&&i.errors.length)i.errors.map(e=>n({issues:e},[...a,...i.path]));else if("invalid_key"===i.code)n({issues:i.issues},[...a,...i.path]);else if("invalid_element"===i.code)n({issues:i.issues},[...a,...i.path]);else{let e=[...a,...i.path];if(0===e.length)r._errors.push(t(i));else{let n=r,a=0;for(;a<e.length;){let r=e[a];a===e.length-1?(n[r]=n[r]||{_errors:[]},n[r]._errors.push(t(i))):n[r]=n[r]||{_errors:[]},n=n[r],a++}}}};return n(e),r})(e,t)},flatten:{value:t=>(function(e,t=e=>e.message){let r={},n=[];for(let a of e.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):n.push(t(a));return{formErrors:n,fieldErrors:r}})(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,A.k8,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,A.k8,2)}},isEmpty:{get:()=>0===e.issues.length}})},{Parent:Error}),tT=X(tO),tI=ee(tO),tA=et(tO),tP=en(tO),tM=(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return X(tO)(e,t,n)},tj=(e,t,r)=>X(tO)(e,t,r),tL=async(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return ee(tO)(e,t,n)},tD=async(e,t,r)=>ee(tO)(e,t,r),tN=(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return et(tO)(e,t,n)},tF=(e,t,r)=>et(tO)(e,t,r),tz=async(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return en(tO)(e,t,n)},t$=async(e,t,r)=>en(tO)(e,t,r),tU=new WeakMap;function tB(e,t,r){let n=Object.getPrototypeOf(e),a=tU.get(n);if(a||(a=new Set,tU.set(n,a)),!a.has(t))for(let e in a.add(t),r){let t=r[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,get(){let r=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:r}),r},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}let tq=a.xI("ZodType",(e,t)=>(eo.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:tw(e,"input"),output:tw(e,"output")}}),e.toJSONSchema=((e,t={})=>r=>{let n=tm({...r,processors:t});return tv(e,n),tb(n,e),t_(n,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,r)=>tT(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>tA(e,t,r),e.parseAsync=async(t,r)=>tI(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>tP(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>tM(e,t,r),e.decode=(t,r)=>tj(e,t,r),e.encodeAsync=async(t,r)=>tL(e,t,r),e.decodeAsync=async(t,r)=>tD(e,t,r),e.safeEncode=(t,r)=>tN(e,t,r),e.safeDecode=(t,r)=>tF(e,t,r),e.safeEncodeAsync=async(t,r)=>tz(e,t,r),e.safeDecodeAsync=async(t,r)=>
66t$(e,t,r),tB(e,"ZodType",{check(...e){let t=this.def;return this.clone(A.zM(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return A.o8(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(function(e,t={}){return new rL({type:"custom",check:"custom",fn:e,...A.A2(t)})}(e,t))},superRefine(e,t){return this.check(function(e,t){let r=function(e,t){let r=new P({check:"custom",...A.A2(t)});return r._zod.check=e,r}(t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(A.sn(e,t.value,r._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=t.value),e.inst??(e.inst=r),e.continue??(e.continue=!r._zod.def.abort),t.issues.push(A.sn(e)))},e(t.value,t)),t);return r}(e,t))},overwrite(e){return this.check(ty(e))},optional(){return rS(this)},exactOptional(){var e;return e=this,new rk({type:"optional",innerType:e})},nullable(){return rx(this)},nullish(){return rS(rx(this))},nonoptional(e){var t,r;return t=this,r=e,new rT({type:"nonoptional",innerType:t,...A.A2(r)})},array(){return function(e,t){return new rp({type:"array",element:e,...A.A2(t)})}(this)},or(e){return new rg({type:"union",options:[this,e],...A.A2(void 0)})},and(e){var t;return t=this,new ry({type:"intersection",left:t,right:e})},transform(e){return rP(this,rw(e))},default(e){var t,r;return t=this,r=e,new rR({type:"default",innerType:t,get defaultValue(){return"function"==typeof r?r():A.yG(r)}})},prefault(e){var t,r;return t=this,r=e,new rO({type:"prefault",innerType:t,get defaultValue(){return"function"==typeof r?r():A.yG(r)}})},catch(e){var t,r;return t=this,new rI({type:"catch",innerType:t,catchValue:"function"==typeof(r=e)?r:()=>r})},pipe(e){return rP(this,e)},readonly(){var e;return e=this,new rj({type:"readonly",innerType:e})},describe(e){let t=this.clone();return to.add(t,{description:e}),t},meta(...e){if(0===e.length)return to.get(this);let t=this.clone();return to.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get:()=>to.get(e)?.description,configurable:!0}),e)),tH=a.xI("_ZodString",(e,t)=>{es.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{r.type="string";let{minimum:a,maximum:i,format:o,patterns:s,contentEncoding:l}=e._zod.bag;if("number"==typeof a&&(r.minLength=a),"number"==typeof i&&(r.maxLength=i),o&&(r.format=tC[o]??o,""===r.format&&delete r.format,"time"===o&&delete r.format),l&&(r.contentEncoding=l),s&&s.size>0){let e=[...s];1===e.length?r.pattern=e[0].source:e.length>1&&(r.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,r,0);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,tB(e,"_ZodString",{regex(...e){return this.check(function(e,t){return new B({check:"string_format",format:"regex",...A.A2(t),pattern:e})}(...e))},includes(...e){return this.check(function(e,t){return new V({check:"string_format",format:"includes",...A.A2(t),includes:e})}(...e))},startsWith(...e){return this.check(function(e,t){return new W({check:"string_format",format:"starts_with",...A.A2(t),prefix:e})}(...e))},endsWith(...e){return this.check(function(e,t){return new Z({check:"string_format",format:"ends_with",...A.A2(t),suffix:e})}(...e))},min(...e){return this.check(th(...e))},max(...e){return this.check(tf(...e))},length(...e){return this.check(tg(...e))},nonempty(...e){return this.check(th(1,...e))},lowercase(e){return this.check(new q({check:"string_format",format:"lowercase",...A.A2(e)}))},uppercase(e){return this.check(new H({check:"string_format",format:"uppercase",...A.A2(e)}))},trim(){return this.check(ty(e=>e.trim()))},normalize(...e){return this.check(function(e){return ty(t=>t.normalize(e))}(...e))},toLowerCase(){return this.check(ty(e=>e.toLowerCase()))},toUpperCase(){return this.check(ty(e=>e.toUpperCase()))},slugify(){return this.check(ty(e=>A.Yv(e)))}})}),tV=a.xI("ZodString",(e,t)=>{es.init(e,t),tH.init(e,t),e.email=t=>e.check(new tK({type:"string",format:"email",check:"string_format",abort:!1,...A.A2(t)})),e.url=t=>e.check(new tQ({type:"string",format:"url",check:"string_format",abort:!1,...A.A2(t)})),e.jwt=t=>e.check(new rr({type:"string",format:"jwt",check:"string_format",abort:!1,...A.A2(t)})),e.emoji=t=>e.check(new tY({type:"string",format:"emoji",check:"string_format",abort:!1,...A.A2(t)})),e.guid=t=>e.check(ts(tG,t)),e.uuid=t=>e.check(new tJ({type:"string",format:"uuid",check:"string_format",abort:!1,...A.A2(t)})),e.uuidv4=t=>e.check(new tJ({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...A.A2(t)})),e.uuidv6=t=>e.check(new tJ({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...A.A2(t)})),e.uuidv7=t=>e.check(new tJ({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...A.A2(t)})),e.nanoid=t=>e.check(new tX({type:"string",format:"nanoid",check:"string_format",abort:!1,...A.A2(t)})),e.guid=t=>e.check(ts(tG,t)),e.cuid=t=>e.check(new t0({type:"string",format:"cuid",check:"string_format",abort:!1,...A.A2(t)})),e.cuid2=t=>e.check(new t1({type:"string",format:"cuid2",check:"string_format",abort:!1,...A.A2(t)})),e.ulid=t=>e.check(new t2({type:"string",format:"ulid",check:"string_format",abort:!1,...A.A2(t)})),e.base64=t=>e.check(new t8({type:"string",format:"base64",check:"string_format",abort:!1,...A.A2(t)})),e.base64url=t=>e.check(new re({type:"string",format:"base64url",check:"string_format",abort:!1,...A.A2(t)})),e.xid=t=>e.check(new t5({type:"string",format:"xid",check:"string_format",abort:!1,...A.A2(t)})),e.ksuid=t=>e.check(new t3({type:"string",format:"ksuid",check:"string_format",abort:!1,...A.A2(t)})),e.ipv4=t=>e.check(new t4({type:"string",format:"ipv4",check:"string_format",abort:!1,...A.A2(t)})),e.ipv6=t=>e.check(new t7({type:"string",format:"ipv6",check:"string_format",abort:!1,...A.A2(t)})),e.cidrv4=t=>e.check(new t9({type:"string",format:"cidrv4",check:"string_format",abort:!1,...A.A2(t)})),e.cidrv6=t=>e.check(new t6({type:"string",format:"cidrv6",check:"string_format",abort:!1,...A.A2(t)})),e.e164=t=>e.check(new rt({type:"string",format:"e164",check:"string_format",abort:!1,...A.A2(t)})),e.datetime=t=>e.check(function(e){return new tk({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...A.A2(e)})}(t)),e.date=t=>e.check(function(e){return new tE({type:"string",format:"date",check:"string_format",...A.A2(e)})}(t)),e.time=t=>e.check(function(e){return new tx({type:"string",format:"time",check:"string_format",precision:null,...A.A2(e)})}(t)),e.duration=t=>e.check(function(e){return new tR({type:"string",format:"duration",check:"string_format",...A.A2(e)})}(t))});function tW(e){return new tV({type:"string",...A.A2(e)})}let tZ=a.xI("ZodStringFormat",(e,t)=>{el.init(e,t),tH.init(e,t)}),tK=a.xI("ZodEmail",(e,t)=>{ed.init(e,t),tZ.init(e,t)}),tG=a.xI("ZodGUID",(e,t)=>{eu.init(e,t),tZ.init(e,t)}),tJ=a.xI("ZodUUID",(e,t)=>{ec.init(e,t),tZ.init(e,t)}),tQ=a.xI("ZodURL",(e,t)=>{ep.init(e,t),tZ.init(e,t)}),tY=a.xI("ZodEmoji",(e,t)=>{ef.init(e,t),tZ.init(e,t)}),tX=a.xI("ZodNanoID",(e,t)=>{eh.init(e,t),tZ.init(e,t)}),t0=a.xI("ZodCUID",(e,t)=>{eg.init(e,t),tZ.init(e,t)}),t1=a.xI("ZodCUID2",(e,t)=>{ey.init(e,t),tZ.init(e,t)}),t2=a.xI("ZodULID",(e,t)=>{em.init(e,t),tZ.init(e,t)}),t5=a.xI("ZodXID",(e,t)=>{ev.init(e,t),tZ.init(e,t)}),t3=a.xI("ZodKSUID",(e,t)=>{eb.init(e,t),tZ.init(e,t)}),t4=a.xI("ZodIPv4",(e,t)=>{ek.init(e,t),tZ.init(e,t)}),t7=a.xI("ZodIPv6",(e,t)=>{eE.init(e,t),tZ.init(e,t)}),t9=a.xI("ZodCIDRv4",(e,t)=>{ex.init(e,t),tZ.init(e,t)}),t6=a.xI("ZodCIDRv6",(e,t)=>{eR.init(e,t),tZ.init(e,t)}),t8=a.xI("ZodBase64",(e,t)=>{eT.init(e,t),tZ.init(e,t)}),re=a.xI("ZodBase64URL",(e,t)=>{eI.init(e,t),tZ.init(e,t)}),rt=a.xI("ZodE164",(e,t)=>{eA.init(e,t),tZ.init(e,t)}),rr=a.xI("ZodJWT",(e,t)=>{eP.init(e,t),tZ.init(e,t)}),rn=a.xI("ZodNumber",(e,t)=>{eM.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let{minimum:a,maximum:i,format:o,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;"string"==typeof o&&o.includes("int")?r.type="integer":r.type="number";let c="number"==typeof u&&u>=(a??-1/0),d="number"==typeof l&&l<=(i??1/0),p="draft-04"===t.target||"openapi-3.0"===t.target;c?p?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:"number"==typeof a&&(r.minimum=a
66),d?p?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l:"number"==typeof i&&(r.maximum=i),"number"==typeof s&&(r.multipleOf=s)})(e,t,r,0),tB(e,"ZodNumber",{gt(e,t){return this.check(tc(e,t))},gte(e,t){return this.check(td(e,t))},min(e,t){return this.check(td(e,t))},lt(e,t){return this.check(tl(e,t))},lte(e,t){return this.check(tu(e,t))},max(e,t){return this.check(tu(e,t))},int(e){return this.check(ro(e))},safe(e){return this.check(ro(e))},positive(e){return this.check(tc(0,e))},nonnegative(e){return this.check(td(0,e))},negative(e){return this.check(tl(0,e))},nonpositive(e){return this.check(tu(0,e))},multipleOf(e,t){return this.check(tp(e,t))},step(e,t){return this.check(tp(e,t))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function ra(e){return new rn({type:"number",checks:[],...A.A2(e)})}let ri=a.xI("ZodNumberFormat",(e,t)=>{ej.init(e,t),rn.init(e,t)});function ro(e){return new ri({type:"number",check:"number_format",abort:!1,format:"safeint",...A.A2(e)})}let rs=a.xI("ZodBoolean",(e,t)=>{eL.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{t.type="boolean"}});function rl(e){return new rs({type:"boolean",...A.A2(e)})}let ru=a.xI("ZodUnknown",(e,t)=>{eD.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function rc(){return new ru({type:"unknown"})}let rd=a.xI("ZodNever",(e,t)=>{eN.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{t.not={}}}),rp=a.xI("ZodArray",(e,t)=>{ez.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a=e._zod.def,{minimum:i,maximum:o}=e._zod.bag;"number"==typeof i&&(r.minItems=i),"number"==typeof o&&(r.maxItems=o),r.type="array",r.items=tv(a.element,t,{...n,path:[...n.path,"items"]})})(e,t,r,n),e.element=t.element,tB(e,"ZodArray",{min(e,t){return this.check(th(e,t))},nonempty(e){return this.check(th(1,e))},max(e,t){return this.check(tf(e,t))},length(e,t){return this.check(tg(e,t))},unwrap(){return this.element}})}),rf=a.xI("ZodObject",(e,t)=>{eH.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a=e._zod.def;r.type="object",r.properties={};let i=a.shape;for(let e in i)r.properties[e]=tv(i[e],t,{...n,path:[...n.path,"properties",e]});let o=new Set([...new Set(Object.keys(i))].filter(e=>{let r=a.shape[e]._zod;return"input"===t.io?void 0===r.optin:void 0===r.optout}));o.size>0&&(r.required=Array.from(o)),a.catchall?._zod.def.type==="never"?r.additionalProperties=!1:a.catchall?a.catchall&&(r.additionalProperties=tv(a.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):"output"===t.io&&(r.additionalProperties=!1)})(e,t,r,n),A.gJ(e,"shape",()=>t.shape),tB(e,"ZodObject",{keyof(){var e;return new rm({type:"enum",entries:Array.isArray(e=Object.keys(this._zod.def.shape))?Object.fromEntries(e.map(e=>[e,e])):e,...A.A2(void 0)})},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:rc()})},loose(){return this.clone({...this._zod.def,catchall:rc()})},strict(){var e;return this.clone({...this._zod.def,catchall:(e=void 0,new rd({type:"never",...A.A2(e)}))})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return A.X$(this,e)},safeExtend(e){return A.W0(this,e)},merge(e){return A.h1(this,e)},pick(e){return A.Up(this,e)},omit(e){return A.cJ(this,e)},partial(...e){return A.OH(rC,this,e[0])},required(...e){return A.mw(rT,this,e[0])}})});function rh(e,t){return new rf({type:"object",shape:e??{},...A.A2(t)})}let rg=a.xI("ZodUnion",(e,t)=>{eW.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a=e._zod.def,i=!1===a.inclusive,o=a.options.map((e,r)=>tv(e,t,{...n,path:[...n.path,i?"oneOf":"anyOf",r]}));i?r.oneOf=o:r.anyOf=o})(e,t,r,n),e.options=t.options}),ry=a.xI("ZodIntersection",(e,t)=>{eZ.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a=e._zod.def,i=tv(a.left,t,{...n,path:[...n.path,"allOf",0]}),o=tv(a.right,t,{...n,path:[...n.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length;r.allOf=[...s(i)?i.allOf:[i],...s(o)?o.allOf:[o]]})(e,t,r,n)}),rm=a.xI("ZodEnum",(e,t)=>{eG.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a=e._zod.def,i=(0,A.w5)(a.entries);i.every(e=>"number"==typeof e)&&(r.type="number"),i.every(e=>"string"==typeof e)&&(r.type="string"),r.enum=i})(e,0,r,0),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let a={};
66for(let n of e)if(r.has(n))a[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new rm({...t,checks:[],...A.A2(n),entries:a})},e.exclude=(e,n)=>{let a={...t.entries};for(let t of e)if(r.has(t))delete a[t];else throw Error(`Key ${t} not found in enum`);return new rm({...t,checks:[],...A.A2(n),entries:a})}}),rv=a.xI("ZodLiteral",(e,t)=>{eJ.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a=e._zod.def,i=[];for(let e of a.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else i.push(Number(e));else i.push(e);if(0===i.length);else if(1===i.length){let e=i[0];r.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?r.enum=[e]:r.const=e}else i.every(e=>"number"==typeof e)&&(r.type="number"),i.every(e=>"string"==typeof e)&&(r.type="string"),i.every(e=>"boolean"==typeof e)&&(r.type="boolean"),i.every(e=>null===e)&&(r.type="null"),r.enum=i})(e,t,r,0),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
66(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function rb(e,t){return new rv({type:"literal",values:Array.isArray(e)?e:[e],...A.A2(t)})}let r_=a.xI("ZodTransform",(e,t)=>{eQ.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")})(0,e,0,0),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new a.cV(e.constructor.name);r.addIssue=n=>{"string"==typeof n?r.issues.push(A.sn(n,r.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),r.issues.push(A.sn(n)))};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r.fallback=!0,r)):(r.value=i,r.fallback=!0,r)}});function rw(e){return new r_({type:"transform",transform:e})}let rC=a.xI("ZodOptional",(e,t)=>{eX.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>tS(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function rS(e){return new rC({type:"optional",innerType:e})}let rk=a.xI("ZodExactOptional",(e,t)=>{e0.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>tS(e,t,r,n),e.unwrap=()=>e._zod.def.innerType}),rE=a.xI("ZodNullable",(e,t)=>{e1.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a=e._zod.def,i=tv(a.innerType,t,n),o=t.seen.get(e);"openapi-3.0"===t.target?(o.ref=a.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]})(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function rx(e){return new rE({type:"nullable",innerType:e})}let rR=a.xI("ZodDefault",(e,t)=>{e2.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a=e._zod.def;tv(a.innerType,t,n),t.seen.get(e).ref=a.innerType,r.default=JSON.parse(JSON.stringify(a.defaultValue))})(e,t,r,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),rO=a.xI("ZodPrefault",(e,t)=>{e3.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a=e._zod.def;tv(a.innerType,t,n),t.seen.get(e).ref=a.innerType,"input"===t.io&&(r._prefault=JSON.parse(JSON.stringify(a.defaultValue)))})(e,t,r,n),e.unwrap=()=>e._zod.def.innerType}),rT=a.xI("ZodNonOptional",(e,t)=>{e4.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a=e._zod.def;tv(a.innerType,t,n),t.seen.get(e).ref=a.innerType})(e,t,0,n),e.unwrap=()=>e._zod.def.innerType}),rI=a.xI("ZodCatch",(e,t)=>{e9.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a,i=e._zod.def;tv(i.innerType,t,n),t.seen.get(e).ref=i.innerType;try{a=i.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=a})(e,t,r,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),rA=a.xI("ZodPipe",(e,t)=>{e6.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a=e._zod.def,i=a.in._zod.traits.has("$ZodTransform"),o="input"===t.io?i?a.out:a.in:a.out;tv(o,t,n),t.seen.get(e).ref=o})(e,t,0,n),e.in=t.in,e.out=t.out});function rP(e,t){return new rA({type:"pipe",in:e,out:t})}let rM=a.xI("ZodPreprocess",(e,t)=>{rA.init(e,t),te.init(e,t)}),rj=a.xI("ZodReadonly",(e,t)=>{tt.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let a=e._zod.def;tv(a.innerType,t,n),t.seen.get(e).ref=a.innerType,r.readOnly=!0})(e,t,r,n),e.unwrap=()=>e._zod.def.innerType}),rL=a.xI("ZodCustom",(e,t)=>{tn.init(e,t),tq.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")})(0,e,0,0)});function rD(e,t){return new rM({type:"pipe",in:rw(e),out:t})}},52229:(e,t,r)=>{e.exports=r(85433)},52741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processClasses=void 0;let n=r(51641);t.processClasses=(e,r,n=[])=>(e=>Array.isArray(e)&&Object.prototype.hasOwnProperty.call(e,"raw"))(e)?a(e,r,n):"function"==typeof e?(0,t.processClasses)(e(r),r):Array.isArray(e)?e.map(e=>(0,t.processClasses)(e,r)):e;let a=(e,r,a)=>((e,t)=>(e.reduce((e,r,n)=>e+t[n]+r,"")+t[t.length-1]).replace(/\s+/g," ").trim())(a.map(e=>(0,n.clsx)((0,t.processClasses)(e,r))),e)},52776:(e,t,r)=>{e.exports=function(e){function t(e){let r,a,i,o=null;function s(...e){if(!s.enabled)return;let n=Number(new Date);s.diff=n-(r||n),s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";a++;let i=t.formatters[n];if("function"==typeof i){let t=e[a];r=i.call(s,t),e.splice(a,1),a--}return r}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(a!==t.namespaces&&(a=t.namespaces,i=t.enabled(e)),i),set
66:e=>{o=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(a),...t.skips.map(a).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(r=0;r<a;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.substr(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let r,n;if("*"===e[e.length-1])return!0;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(94565),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},54482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return a},useServerInsertedHTML:function(){return i}});let n=r(78963)._(r(55729)),a=n.default.createContext(null);function i(e){let t=(0,n.useContext)(a);t&&t(e)}},54839:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){return n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)})},56636:(e,t,r)=>{"use strict";r.d(t,{qW:()=>p});var n,a=r(55729),i=r(76307),o=r(18909),s=r(82975),l=r(22555),u=r(6029),c="dismissableLayer.update",d=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=a.forwardRef((e,t)=>
66{var r,p;let{disableOutsidePointerEvents:g=!1,onEscapeKeyDown:y,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:b,onDismiss:_,...w}=e,C=a.useContext(d),[S,k]=a.useState(null),E=null!=(p=null==S?void 0:S.ownerDocument)?p:null==(r=globalThis)?void 0:r.document,[,x]=a.useState({}),R=(0,s.s)(t,e=>k(e)),O=Array.from(C.layers),[T]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),I=O.indexOf(T),A=S?O.indexOf(S):-1,P=C.layersWithOutsidePointerEventsDisabled.size>0,M=A>=I,j=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e),i=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){h("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}},[r,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...C.branches].some(e=>e.contains(t));M&&!r&&(null==m||m(e),null==b||b(e),e.defaultPrevented||null==_||_())},E),L=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e),i=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!i.current&&h("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...C.branches].some(e=>e.contains(t))&&(null==v||v(e),null==b||b(e),e.defaultPrevented||null==_||_())},E);return!function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e);a.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return r.addEventListener("keydown",e,{capture:!0}),()=>r.removeEventListener("keydown",e,{capture:!0})},[n,r])}(e=>{A===C.layers.size-1&&(null==y||y(e),!e.defaultPrevented&&_&&(e.preventDefault(),_()))},E),a.useEffect(()=>{if(S)return g&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(n=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(S)),C.layers.add(S),f(),()=>{g&&1===C.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=n)}},[S,E,g,C]),a.useEffect(()=>()=>{S&&(C.layers.delete(S),C.layersWithOutsidePointerEventsDisabled.delete(S),f())},[S,C]),a.useEffect(()=>{let e=()=>x({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(o.sG.div,{...w,ref:R,style:{pointerEvents:P?M?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.mK)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,i.mK)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,i.mK)(e.onPointerDownCapture,j.onPointerDownCapture)})});function f(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,r,n){let{discrete:a}=n,i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),a?(0,o.hO)(i,s):i.dispatchEvent(s)}p.displayName="DismissableLayer",a.forwardRef((e,t)=>{let r=a.useContext(d),n=a.useRef(null),i=(0,s.s)(t,n);return a.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(o.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},56947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,a.isNextRouterError)(t)||(0,n.isBailoutToCSRError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=r(87372),a=r(79744);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
66dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58083:e=>{"use strict";e.exports=JSON.parse('[{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"national"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"location":"national"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"national"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,1]},"location":"national"},{"attr":"total_shade12","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"national"},{"attr":"total_shade15","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"national"},{"attr":"total_shade18","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"national"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"national"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"national"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"national"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"national"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"national"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"national"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"national"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"national"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"national"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"indianapolis"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"location":"indianapolis"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"indianapolis"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"indianapolis"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"indianapolis"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"indianapolis"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"indianapolis"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"indianapolis"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"indianapolis"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"indianapolis"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"indianapolis"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"indianapolis"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"indianapolis"},{"attr":"parks_access","layer":"blockgroup","facet_type":"filter","data":{"type":"range","range":[0,100]},"location":"indianapolis"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"indianapolis"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"indianapolis"},{"attr":"neighborhood","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Near Eastside","Far Eastside","Chapel Hill / Ben Davis","Near Westside","Lawrence","East Warren","Snacks / Guion Creek","Eagledale","Speedway","Martindale - Brightwood","Downtown","Lawrence-Fort Ben-Oaklandon","South Perry","Near Southeast","I-69/F
66all Creek","Meridian Kessler","Eagle Creek","Augusta / New Augusta","Northwest High School","Garden City","Near Northside","South Franklin","Devington","Castleton","Beech Grove","Irvington","Crooked Creek","Near NW - Riverside","University Heights","Christian Park","St Vincent / Greenbriar","Butler-Tarkington/Rocky Ripple","Fountain Square","Near Southside","Eastside","Mars Hill","Mapleton / Fall Creek","Arlington Woods","Meadows","Valley Mills","I-65 / South Emerson","Allisonville","Nora / Far Northside","North Perry","Edgewood","West Indianapolis","Galludet","Crown Hill","Key Meadows","Southeast","Garfield Park","East Gate","Millersville","Geist","Southeast Warren","Forest Manor","Fairgrounds","Glenns Valley","Wynnedale / Spring Hill","Delaware Trails","Broad Ripple","Homecroft","Linden Wood","Hill Valley","Raymond Park","Stout Field","Airport","Traders Point","Brendonwood","Canterbury-Chatard","Meridian Hills/Williams Creek","Glendale","Devonshire","North Central","Keystone at the Crossing","Clearwater","Southdale","Park 100","Southern Dunes","Ameriplex","Camby","Marian - Cold Springs","Poplar Grove","Southport","Clermont","Devon","Sunshine Gardens","Ravenswood","College Park","Crows Nest","Park Fletcher","Five Points","Wanamaker","New Bethel","International Marketplace","Acton"]},"location":"indianapolis"},{"attr":"watershed","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Devon Creek-Fall Creek","Pogues Run-White River","Bean Creek-Pleasant Run","Howland Ditch-White River","Little Eagle Creek","Dollar Hide Creek-White River","Ristow Branch-Eagle Creek","Lick Creek","Delaware Creek-Crooked Creek","Indian Lake-Indian Creek","Little Buck Creek","Grassy Creek","Pleasant Run Creek","Headwaters East Fork White Lick Creek","Carmel Creek-White River","Williams Creek","Thorpe Creek-Geist Reservoir","East Fork White Lick Creek","Doe Creek-Buck Creek","Sand Creek-Mud Creek","Little Sugar Creek","Headwaters Buck Creek","Irishman Run-Eagle Creek","Eagle Creek Reservoir-Eagle Creek","Fishback Creek","Goose Creek-White River"]},"location":"indianapolis"},{"attr":"air_pollution","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["Very Low","Low","Medium","High","Very High"]},"location":"indianapolis"},{"attr":"canopy_change_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-0.18978097000868,0.149928206126522],"step":0.01,"gradient":[-0.18,-0.18,-0.1,0,0.06,0.14,0.14]},"location":"indianapolis"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"indianapolis"},{"attr":"canopy_change_percent","layer":"area","facet_type":"layer","data":{"type":"range","range":[-1,1],"step":0.01,"gradient":[-1,-1,-0.45,0,0.45,1,1]},"location":"indianapolis"},{"attr":"land_use","layer":"area","facet_type":"filter","data":{"type":"enum","values":["Agriculture","Airport Related","Cemetery","Commercial","Floodway","Hospital","Industrial","Linear Park","Major Bodies of Water","Mixed-Use","Mixed-Use Downtown","Office","Other Special Use","Parking","Parking Garage","Place of Worship","Railroad Right-of-Way","Residential","School","Under Development","Unknown","Utilities","Vacant Land"]},"location":"indianapolis"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"detroit"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"source":"UVM Spatial Analysis Lab, Land Cover 2022","location":"detroit"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"detroit"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"detroit"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"detroit"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"detroit"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"detroit"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"detroit"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"detroit"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"detroit"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"detroit"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"detroit"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"detroit"},{"attr":"council_district","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["1","2","3","4","5","6","7"]},"location":"detroit"},{"attr":"air_pollution","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["very low","low","medium","high","very high"]},"location":"detroit"},{"attr":"population_density","layer":"blockgroup","facet_type":"filter","data":{"type":"range","range":[1,11015]},"location":"detroit"},{"attr":"asthma_percent","layer":"blockgroup","facet_type":"filter","data":{"type":"range","range":[10.3,18.6]},"location":"detroit"},{"attr":"total_shade12","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"detroit"},{"attr":"total_shade15","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"detroit"},{"attr":"total_shade18","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"detroit"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"detroit"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"detroit"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"detroit"},{"attr":"total_shade12","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"detroit"},{"attr":"total_shade15","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"detroit"},{"attr":"total_shade18","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"detroit"},{"attr":"school","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"detroit"},{"attr":"bus_stop","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"detroit"},{"attr":"park","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"detroit"},{"attr":"land_use","layer":"area","facet_type":"filter","data":{"type":"enum","values":["Residential","Business","Industrial","Planned Development","Special Development","Parking","Public Center","Parks and Recreation","Transitional Industrial"]}
66,"location":"detroit"},{"attr":"brownfield","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"detroit"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"maricopa"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"source":"UVM Spatial Analysis Lab, Land Cover 2021","location":"maricopa"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"maricopa"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"maricopa"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"maricopa"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"maricopa"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"maricopa"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"maricopa"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"maricopa"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"maricopa"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"maricopa"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"maricopa"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"maricopa"},{"attr":"qualified_census_tract","layer":"blockgroup","facet_type":"filter","data":{"type":"boolean"},"location":"maricopa"},{"attr":"light_rail","layer":"blockgroup","facet_type":"filter","data":{"type":"boolean"},"location":"maricopa"},{"attr":"total_shade12","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"maricopa"},{"attr":"total_shade15","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"maricopa"},{"attr":"total_shade18","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"maricopa"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"maricopa"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"maricopa"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"maricopa"},{"attr":"cooling_center","layer":"area","facet_type":"filter","data":{"type":"enum","values":["none","Hydration Station","Cooling Center","Respite Center"]},"location":"maricopa"},{"attr":"school","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"maricopa"},{"attr":"light_rail","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"maricopa"},{"attr":"bus_stop","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"maricopa"},{"attr":"total_shade12","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"maricopa"},{"attr":"total_shade15","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"maricopa"},{"attr":"total_shade18","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"maricopa"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"austin"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"source":"UVM Spatial Analysis Lab, Land Cover 2022","location":"austin"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"austin"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"austin"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"austin"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"austin"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"austin"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"austin"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"austin"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"austin"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"austin"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"austin"},{"attr":"community_tree_priority","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["Highest","High","Moderate","Low","
66Lowest"]},"location":"austin"},{"attr":"social_vulnerability_index","layer":"blockgroup","facet_type":"filter","data":{"type":"range","range":[0,0.98]},"location":"austin"},{"attr":"road_emissions","layer":"blockgroup","facet_type":"filter","data":{"type":"range","range":[0,43603]},"location":"austin"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"austin"},{"attr":"municipality_name","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Austin","Round Rock","Georgetown","Cedar Park","Pflugerville","Leander","Kyle","Hutto","Brushy Creek","Unincorporated Williamson County","Lakeway","Buda","Wells Branch","Bee Cave","Unincorporated Travis County","Steiner Ranch","Liberty Hill","Unincorporated Hays County","West Lake Hills","Hudson Bend","Shady Hollow","Manor","Serenada","Manchaca","Barton Creek","Jonestown","San Marcos","Rollingwood","Sunset Valley","Mountain City","The Hills","Hays","Santa Rita Ranch","Lost Creek"]},"location":"austin"},{"attr":"low_food_access","layer":"blockgroup","facet_type":"filter","data":{"type":"boolean"},"location":"austin"},{"attr":"affordable_housing","layer":"blockgroup","facet_type":"filter","data":{"type":"boolean"},"location":"austin"},{"attr":"community_garden","layer":"blockgroup","facet_type":"filter","data":{"type":"boolean"},"location":"austin"},{"attr":"total_shade12","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"austin"},{"attr":"total_shade15","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"austin"},{"attr":"total_shade18","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"austin"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"austin"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"austin"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"austin"},{"attr":"affordable_housing","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"austin"},{"attr":"community_garden","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"austin"},{"attr":"flood","layer":"area","facet_type":"filter","data":{"type":"enum","values":["moderate to low","high","other"]},"location":"austin"},{"attr":"total_shade12","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"austin"},{"attr":"total_shade15","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"austin"},{"attr":"total_shade18","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.1,0.25,0.5,0.75]},"location":"austin"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"franklin"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"source":"UVM Spatial Analysis Lab, Land Cover 2021","location":"franklin"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"franklin"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"franklin"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"franklin"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"franklin"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"franklin"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"franklin"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"franklin"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"franklin"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"franklin"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"franklin"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"franklin"},{"attr":"canopy_change_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-0.12,0.13],"gradient":[-0.12,-0.12,-0.06,0,0.06,0.13,0.13]},"location":"franklin"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"franklin"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"franklin"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"franklin"},{"attr":"canopy_change_percent","layer":"area","facet_type":"layer","data":{"type":"range","range":[-1,1],"step":0.1,"gradient":[-1,-1,-0.45,0,0.45,1,1]},"location":"franklin"},{"attr":"land_use","layer":"area","facet_type":"filter","data":{"type":"enum","values":["Residential","Vacant","Commercial","Office","Warehouse","Religious Facility","Open Space","Right of Way","Park","Parking","Education","Agriculture","Mixed-Use","Industrial"]}
66,"location":"franklin"},{"attr":"future_land_use","layer":"area","facet_type":"filter","data":{"type":"enum","values":["Residential","Mixed-Use","Commercial","Office","Warehouse","Open Space","Religious Facility","Park","Right of Way","Industrial","Education","Parking","Agriculture","Vacant"]},"location":"franklin"},{"attr":"public_ownership_type","layer":"area","facet_type":"filter","data":{"type":"enum","values":["City, Village, Township, etc.","Public restrictions","State government","County, Parish, Province, etc.","Federal government"]},"location":"franklin"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"dallas"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"source":"Dallas County, TX Tree Canopy Assessment, Texas Trees Foundation, 2019","location":"dallas"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"dallas"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"dallas"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"dallas"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"dallas"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"dallas"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"dallas"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"dallas"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"dallas"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"dallas"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"dallas"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"dallas"},{"attr":"ttf_tree_equity_planting","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["High","High-moderate","Moderate","Low-moderate","Low"]},"location":"dallas"},{"attr":"ej_screen","layer":"blockgroup","facet_type":"filter","data":{"type":"range","range":[0,13]},"location":"dallas"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"dallas"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"dallas"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"dallas"},{"attr":"school","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"dallas"},{"attr":"park","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"dallas"},{"attr":"social_vulnerability_index","layer":"area","facet_type":"filter","data":{"type":"range","range":[0,1]},"location":"dallas"},{"attr":"neighborhood_type","layer":"area","facet_type":"filter","data":{"type":"enum","values":["Residential Arts","Mixed Urbanism","Non Traditional","Urban Core"]},"location":"dallas"},{"attr":"ej_screen","layer":"area","facet_type":"filter","data":{"type":"range","range":[0,13]},"location":"dallas"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"toronto"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"source":"2018 Forest and Land Cover, City of Toronto Parks, Forestry & Recreation","location":"toronto"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"toronto"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"source":"Canada Census of Population, 2021; Ontario Community Health Profiles Partnership (2018-2019); Toronto and Region Conservation Authority","explanation":"The priority index is made up of equally-weighted climate, health and socioeconomic characteristics that are integrated into Tree Equity Score. A higher priority index indicates greater potential for residents to be disproportionality affected by extreme heat, pollution and other environmental hazards which could be reduced with the benefits of trees. Range: 0 to 1, where 1 is the highest priority.","location":"toronto"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"source":"Canada Census of Population, 2021","explanation":"Prevalence of low income based on the low-income measure, after tax (LIM-AT).","location":"toronto"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"source":"Canada Census of Population, 2021","explanation":"The percentage of persons in a census tract who identify as non-white or indigenous.","location":"toronto"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"source":"Canada Census of Population, 2021","explanation":"Percent seniors (age 65+) and children (0-14).","location":"toronto"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"source":"Canada Census of Population, 2021","explanation":"Percentage of the labour force that do not have a job, are available, and looking for one.","location":"toronto"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"source":"Canada Census of Population, 2021","explanation":"Percentage of households in each census tract in which adults speak neither English nor French.","location":"toronto"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"source":"Ontario Community Health Profiles Partnership (2018-2019)","explanation":"The prevalence of diabetes, asthma, high blood pressure and poor mental health in each neighbourhood in an equally weighted index. The index ranges from 0 to 1. A higher index indicates poorer health factors.","location":"toronto"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-5,5],"gradient":[-5,-3,0,2,3,5]},"source":"Contains information made available under the Toronto and Region Conservation Authority (TRCA)\'s Open Data Licence v 1.0","explanation":"Compares average census tract surface temperature with the citywide average to measure variance in heat across census tracts. Surface temperature is a good estimate of where excess heat is generated in urban areas.","location":"toronto"},{"attr":"neighborhood","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Agincourt North","Agincourt South-Malvern West","Alderwood","Annex","Avondale","Banbury-Don Mills","Bathurst Manor","Bay-Cloverhill","Bayview Village","Bayview Woods-Steeles","Bedford Park-Nortown","Beechborough-Greenbrook","Bendale South","Bendale-Glen Andrew","Birchcliffe-Cliffside","Black Creek","Blake-Jones","Briar Hill-Belgravia","Bridle Path-Sunnybrook-York Mills","Broadview 
66North","Brookhaven-Amesbury","Cabbagetown-South St.James Town","Caledonia-Fairbank","Casa Loma","Centennial Scarborough","Church-Wellesley","Clairlea-Birchmount","Clanton Park","Cliffcrest","Corso Italia-Davenport","Danforth","Danforth East York","Don Valley Village","Dorset Park","Dovercourt Village","Downsview","Downtown Yonge East","Dufferin Grove","East End-Danforth","East L\'Amoreaux","East Willowdale","Edenbridge-Humber Valley","Eglinton East","Elms-Old Rexdale","Englemount-Lawrence","Eringate-Centennial-West Deane","Etobicoke City Centre","Etobicoke West Mall","Fenside-Parkwoods","Flemingdon Park","Forest Hill North","Forest Hill South","Fort York-Liberty Village","Glenfield-Jane Heights","Golfdale-Cedarbrae-Woburn","Greenwood-Coxwell","Guildwood","Harbourfront-CityPlace","Henry Farm","High Park North","High Park-Swansea","Highland Creek","Hillcrest Village","Humber Bay Shores","Humber Heights-Westmount","Humber Summit","Humbermede","Humewood-Cedarvale","Ionview","Islington","Junction Area","Junction-Wallace Emerson","Keelesdale-Eglinton West","Kennedy Park","Kensington-Chinatown","Kingsview Village-The Westway","Kingsway South","L\'Amoreaux West","Lambton Baby Point","Lansing-Westgate","Lawrence Park North","Lawrence Park South","Leaside-Bennington","Little Portugal","Long Branch","Malvern East","Malvern West","Maple Leaf","Markland Wood","Milliken","Mimico-Queensway","Morningside","Morningside Heights","Moss Park","Mount Dennis","Mount Olive-Silverstone-Jamestown","Mount Pleasant East","New Toronto","Newtonbrook East","Newtonbrook West","North Riverdale","North St.James Town","North Toronto","O\'Connor-Parkview","Oakdale-Beverley Heights","Oakridge","Oakwood Village","Old East York","Palmerston-Little Italy","Parkwoods-O\'Connor Hills","Pelmo Park-Humberlea","Playter Estates-Danforth","Pleasant View","Princess-Rosethorn","Regent Park","Rexdale-Kipling","Rockcliffe-Smythe","Roncesvalles","Rosedale-Moore Park","Runnymede-Bloor West Village","Rustic","Scarborough Village","South Eglinton-Davisville","South Parkdale","South Riverdale","St Lawrence-East Bayfront-The Islands","St.Andrew-Windfields","Steeles","Stonegate-Queensway","Tam O\'Shanter-Sullivan","Taylor-Massey","The Beaches","Thistletown-Beaumond Heights","Thorncliffe Park","Trinity-Bellwoods","University","Victoria Village","Wellington Place","West Hill","West Humber-Clairville","West Queen West","West Rouge","Westminster-Branson","Weston","Weston-Pelham Park","Wexford/Maryvale","Willowdale West","Willowridge-Martingrove-Richview","Woburn North","Woodbine Corridor","Woodbine-Lumsden","Wychwood","Yonge-Bay Corridor","Yonge-Doris","Yonge-Eglinton","Yonge-St.Clair","York University Heights","Yorkdale-Glen Park"]},"source":"City of Toronto, 2022","explanation":"Indicates which of Toronto\'s 158 City-designated social planning neighbourhoods the census tracts is in, by neighbourhood name.","location":"toronto"},{"attr":"neighborhood_id","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["1","2","3","4","5","6","7","8","9","10","11","12","13","15","16","18","19","20","21","22","23","24","25","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","46","47","48","49","50","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","78","79","80","81","83","84","85","86","87","88","89","90","91","92","94","95","96","97","98","99","100","101","102","103","105","106","107","108","109","110","111","112","113","114","115","116","118","119","120","121","122","123","124","125","126","128","129","130","133","134","135","136","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174"]},"source":"City of Toronto, 2022","explanation":"Indicates which of Toronto\'s 158 City-designated social planning neighbourhoods the census tracts is in, by neighbourhood ID.","location":"toronto"},{"attr":"neighborhood_score","layer":"blockgroup","facet_type":"filter","data":{"type":"range","range":[64,100]},"source":"American Forests, 2024","explanation":"Each of Toronto\'s 158 City-designated social planning neighbourhoods consists of several census tracts, and is assigned a composite score from 0-100. This neighbourhood score provides a simplified assessment of overall tree distribution fairness and is aggregated from all census tract Tree Equity Scores within the neighbourhood boundary. The composite score will increase faster if census tracts with lower Tree Equity Scores are raised.","location":"toronto"},{"attr":"neighborhood_score_category","layer":"blockgroup","facet_type":"layer_not_filterable","data":{"type":"enum","values":["0 - 69","70 - 79","80 - 89","90 
66- 99","99 - 100"]},"source":"American Forests, 2024","explanation":"Each of Toronto\'s 158 City-designated social planning neighbourhoods consists of several census tracts, and is assigned a composite score from 0-100. This neighbourhood score provides a simplified assessment of overall tree distribution fairness and is aggregated from all census tract Tree Equity Scores within the neighbourhood boundary. The composite score will increase faster if census tracts with lower Tree Equity Scores are raised.","location":"toronto"},{"attr":"neighborhood_designation","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Emerging Neighbourhood","Neighbourhood Improvement Area","Not an NIA or Emerging Neighbourhood"]},"source":"City of Toronto, 2022","explanation":"Designation of the neighbourhood as a Neighbourhood Improvement Area (NIA), Emerging Neighbourhood, or neither.","location":"toronto"},{"attr":"ward","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Beaches-East York","Davenport","Don Valley East","Don Valley North","Don Valley West","Eglinton-Lawrence","Etobicoke Centre","Etobicoke North","Etobicoke-Lakeshore","Humber River-Black Creek","Parkdale-High Park","Scarborough Centre","Scarborough North","Scarborough Southwest","Scarborough-Agincourt","Scarborough-Guildwood","Scarborough-Rouge Park","Spadina-Fort York","Toronto Centre","Toronto-Danforth","Toronto-St. Paul\'s","University-Rosedale","Willowdale","York Centre","York South-Weston"]},"source":"City of Toronto, 2018","explanation":"The ward the census tract is in.","location":"toronto"},{"attr":"watershed","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Black Creek - Humber River Outlet","Don River","Etobicoke Creek","Rouge River","West Humber River","West Lake Ontario Shoreline"]},"location":"toronto"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"toronto"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"toronto"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"explanation":"The percent area of a census tract that is covered by water-resistant materials such as asphalt, concrete, brick, stone, and rooftops.","location":"toronto"},{"attr":"school","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"toronto"},{"attr":"library","layer":"area","facet_type":"filter","data":{"type":"boolean"},"source":"City of Toronto, 2019","explanation":"Indicates whether the census tract contains a library or whether the right-of-way is adjacent to a library","location":"toronto"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"washington"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"location":"washington"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"washington"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"washington"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"washington"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"washington"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"washington"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"washington"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"washington"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"washington"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"washington"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"washington"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"washington"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"washington"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"washington"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"washington"},{"attr":"watershed","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Banks Lake","Colville","Deschutes","Dungeness-Elwha","Duwamish","Grays Harbor","Hangman","Hood Canal","Lake Chelan","Lake Washington","Lewis","Little Spokane","Lower Chehalis","Lower Columbia","Lower Columbia-Clatskanie","Lower Columbia-Sandy","
66Lower Cowlitz","Lower Crab","Lower Skagit","Lower Snake-Asotin","Lower Snake-Tucannon","Lower Spokane","Lower Yakima","Middle Columbia-Hood","Middle Columbia-Lake Wallula","Naches","Nisqually","Nooksack","Okanogan","Palouse","Puget Sound","Puyallup","Queets-Quinault","San Juan Islands","Skykomish","Snohomish","Snoqualmie","Stillaguamish","Strait of Georgia","Upper Chehalis","Upper Columbia-Entiat","Upper Columbia-Priest Rapids","Upper Spokane","Upper Yakima","Walla Walla","Wenatchee","Willapa Bay"]},"location":"washington"},{"attr":"public_ownership_type","layer":"area","facet_type":"filter","data":{"type":"enum","values":["Authority","City","County","District","Federal","Joint","Local","NGO","None","Nonprofit","Private","Regional","School","State","University","Unknown","Utility"]},"location":"washington"},{"attr":"school","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"washington"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"houston"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"location":"houston"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"houston"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"houston"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"houston"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"houston"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"houston"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"houston"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"houston"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"houston"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"houston"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"houston"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"houston"},{"attr":"school_district","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Alief ISD","Alvin ISD","Aldine ISD","Barbers Hill ISD","Clear Creek ISD","Channelview ISD","Crosby ISD","Cypress-Fairbanks ISD","Deer Park ISD","Dickinson ISD","Fort Bend ISD","Friendswood ISD","Galena Park ISD","Goose Creek Consolidated ISD","Humble ISD","Houston ISD","Huffman ISD","Katy ISD","Klein ISD","La Porte ISD","Lamar Cons ISD","Magnolia ISD","New Caney ISD","Pasadena ISD","Pearland ISD","Royal ISD","Sheldon ISD","Spring Branch ISD","Spring ISD","Splendora ISD","Stafford MSD","Tomball ISD","Waller ISD"]},"location":"houston"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"houston"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"houston"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"houston"},{"attr":"park","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"houston"},{"attr":"flood","layer":"area","facet_type":"filter","data":{"type":"enum","values":["high","moderate to low","other"]},"location":"houston"},{"attr":"bus_stop","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"houston"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"boston"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"location":"boston"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"boston"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"boston"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"boston"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"boston"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"boston"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"boston"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"boston"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"boston"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"boston"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"boston"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"boston"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"boston"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"boston"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"boston"},{"attr":"evening_air_average_temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[81.81625773715649,87.63201499371078],"gradient":[81.81625773715649,81.81625773715649,83.48694285708184,86.26757147900474,87.63201499371078,87.63201499371078]},"location":"boston"},{"attr":"afternoon_air_average_temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[88.9470103711204,94.61930836684829],"gradient":[88.9470103711204,88.9470103711204,90.29916481127701,92.54816628684593,94.61930836684829,94.61930836684829]},"location":"boston"},{"attr":"name_ej_criteria","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["Minority","No designation","Minority and income","Minority, income and English isolation","Minority and English isolation","Income"]},"location":"boston"},{"attr":"neighborhood","layer":"area","facet_type":"filter","data":{"type":"enum","values":["Dorchester","West Roxbury","Hyde Park","Roxbury","Jamaica Plain","Roslindale","East Boston","South Boston","Brighton","Mattapan","Charlestown","South End","Allston","Back Bay","Mission Hill","Beacon Hill","Fenway","North End","Downtown","South Boston Waterfront","Chinatown","West End","Bay Village","Longwood","Leather District","Harbor Islands"]},"location":"boston"},{"attr":"public","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"boston"},{"attr":"flood","layer":"area","facet_type":"filter","data":{"type":"enum","values":["other","high","moderate to low"]},"location":"boston"},{"attr":"number_ej_criteria","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":[0,1,2,3]},"location":"boston"},{"attr":"open_space","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"boston"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"dc"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"location":"dc"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"dc"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"dc"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"dc"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"dc"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"dc"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"dc"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"dc"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"dc"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"dc"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"dc"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"dc"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"dc"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"dc"},{"attr":"canopy_change_percent","layer":"blockgroup","facet_type":"filter","data":{"type":"range","range":[-1,1],"step":0.01},"location":"dc"},{"attr":"canopy_change_percent","layer":"area","facet_type":"filter","data":{"type":"range","range":[-1,1],"step":0.01},"location":"dc"},{"attr":"school","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"dc"},{"attr":"park","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"dc"},{"attr":"watershed","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Anacostia River","Rock Creek","Fourmile Run-Potomac River","Pimmit Run-Potomac River","Cameron Run","Seneca Creek","Accotink Creek","Western Branch","Potomac River MO Cnty","Difficult Run","Pohick Creek","Patuxent River upper","Potomac River U tidal","Cub Run","Cabin John Creek","Little Hunting Creek-Potomac River","Oxon Creek","Sugarland Run","Piscataway Creek","Lower Bull Run","Dogue Creek","Horsepen Run","Nichols Run-Potomac River","Rocky Gorge Dam","Occoquan Reservoir-Occoquan River","Scott Run-Nichols Run-Potomac River","Lower Monocacy River","Mattawoman Creek","Belmont Bay-Occoquan River","Middle Bull Run","Patuxent River middle","Brighton Dam","Beaverdam Run-Broad Run"]},"location":"dc"},{"attr":"flood","layer":"area","facet_type":"filter","data":{"type":"enum","values":["moderate to low","high","other"]},"location":"dc"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"ruston"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"location":"ruston"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"ruston"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"ruston"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"ruston"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"ruston"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"ruston"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"ruston"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"ruston"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"ruston"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"ruston"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"ruston"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"ruston"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"ruston"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"ruston"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"ruston"},{"attr":"watershed","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Upper Cypress Creek","Cypress Bayou","Choudrant Creek","Redwine Creek"]},"location":"ruston"},{"attr":"flood","layer":"area","facet_type":"filter","data":{"type":"enum","values":["moderate to low","high"]},"location":"ruston"},{"attr":"current_commercial_land_use","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"ruston"},{"attr":"future_commercial_land_use","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"ruston"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"richmond"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"location":"richmond"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"richmond"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"richmond"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"richmond"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"richmond"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"richmond"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"richmond"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data"
66:{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"richmond"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"richmond"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"richmond"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"richmond"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"richmond"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"richmond"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"richmond"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"richmond"},{"attr":"evening_air_average_temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[85.3027794720061,89.99132315512809],"gradient":[85.3027794720061,85.3027794720061,86.44738223751082,89.41860511376012,89.99132315512809,89.99132315512809]},"location":"richmond"},{"attr":"afternoon_air_average_temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[89.20911272169347,92.5408910209688],"gradient":[89.20911272169347,89.20911272169347,90.0077731628645,91.68446003248593,92.5408910209688,92.5408910209688]},"location":"richmond"},{"attr":"parking","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"richmond"},{"attr":"industrial","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"richmond"},{"attr":"rented","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"richmond"},{"attr":"flood","layer":"area","facet_type":"filter","data":{"type":"enum","values":["other","high","moderate to low"]},"location":"richmond"},{"attr":"school","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"richmond"},{"attr":"park","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"richmond"},{"attr":"public","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"richmond"},{"attr":"sidewalk","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"richmond"},{"attr":"worship","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"richmond"},{"attr":"tree_equity_score","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,100],"gradient":[70,70,100,100]},"location":"rhode_island"},{"attr":"tree_canopy","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.35,0.5]},"location":"rhode_island"},{"attr":"tree_canopy_gap","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"rhode_island"},{"attr":"equity_index","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.15,0.5,1]},"location":"rhode_island"},{"attr":"poverty_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.6,1]},"location":"rhode_island"},{"attr":"poc_percent","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.9,1]},"location":"rhode_island"},{"attr":"dependent_ratio","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.6,0.75]},"location":"rhode_island"},{"attr":"unemployment_rate","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.2,0.5]},"location":"rhode_island"},{"attr":"linguistic_isolation","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.3,0.5]},"location":"rhode_island"},{"attr":"health_normalized","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.8,1]},"location":"rhode_island"},{"attr":"temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[-30,30],"gradient":[-5,-5,0,10,15,25,25]},"location":"rhode_island"},{"attr":"holc_grade","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["A","B","C","D","E"]},"location":"rhode_island"},{"attr":"ej_disadvantaged","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Yes"]},"location":"rhode_island"},{"attr":"tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.5,0.5]},"location":"rhode_island"},{"attr":"potential_tree_canopy","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0.2,0.9,1]},"location":"rhode_island"},{"attr":"impervious_surface","layer":"area","facet_type":"layer","data":{"type":"range","range":[0,1],"gradient":[0,0,0.1,1,1]},"location":"rhode_island"},{"attr":"health_risk","layer":"blockgroup","facet_type":"layer","data":{"type":"enum","values":["Low","Moderate","High","none"]},"location":"rhode_island"},{"attr":"afternoon_air_average_temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[80.9961729281,91.6013961013],"gradient":[80.9961729281,80.9961729281,84.69399631533,89.34280075059,91.6013961013,91.6013961013]},"location":"rhode_island"},{"attr":"evening_air_average_temperature","layer":"blockgroup","facet_type":"layer","data":{"type":"range","range":[74.4375158239,85.6989364981],"gradient":[74.4375158239,74.4375158239,77.61797279869,83.80232127468,85.6989364981,85.6989364981]},"location":"rhode_island"},{"attr":"hez","layer":"blockgroup","facet_type":"filter","data":{"type":"boolean"},"location":"rhode_island"},{"attr":"school","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"rhode_island"},{"attr":"watershed","layer":"blockgroup","facet_type":"filter","data":{"type":"enum","values":["Woonasquatucket River","Seek
66onk River-Providence River","Pawtuxet River","Peters River-Blackstone River","Moshassuck River","Pocassett River","Greenwich Bay","Lower East Passage","South Branch Pawtuxet River","Emerson Brook-Blackstone River","Ten Mile River","Hunt River","Upper East Passage","Lower Pawcatuck River","North Branch Pawtuxet River","Clear River","Lower West Passage","Upper Narragansett Bay","Pettaquamscutt River-Frontal Atlantic Ocean","Barrington River-Warren River","Headwaters South Branch Pawtuxet River","Ninigret Pond-Frontal Block Island Sound","Saugatucket River","Point Judith Pond-Frontal Block Island Sound","Aquidneck Island-Frontal Atlantic Ocean","Sakonnet River","Branch River","Chipuxet River-Pawcatuck River","Moswansicut Pond-Huntinghouse Brook","Mount Hope Bay","Scituate Reservoir","Usquepaug River","Abbott Run","Palmer River","Mill River","Usquepaug River-Pawcatuck River","Ashaway River","Tomaquag Brook-Pawcatuck River","Big River"]},"location":"rhode_island"},{"attr":"flood","layer":"area","facet_type":"filter","data":{"type":"enum","values":["other","high","moderate to low"]},"location":"rhode_island"},{"attr":"public","layer":"area","facet_type":"filter","data":{"type":"boolean"},"location":"rhode_island"}]')},59478:(e,t,r)=>{"use strict";r.d(t,{$I:()=>o,$s:()=>D,Cy:()=>R,D_:()=>C,E6:()=>d,Eq:()=>L,F5:()=>h,FB:()=>F,Fb:()=>_,Ff:()=>M,I6:()=>A,IA:()=>U,Ix:()=>T,Jh:()=>H,LN:()=>f,MG:()=>v,PL:()=>y,RI:()=>b,UX:()=>j,Uh:()=>a,Uu:()=>p,Uz:()=>w,V$:()=>q,Vm:()=>E,X1:()=>g,Xo:()=>m,YZ:()=>I,_q:()=>c,_w:()=>B,j2:()=>V,jD:()=>l,q8:()=>u,qn:()=>x,r9:()=>s,rm:()=>P,uF:()=>N,vA:()=>$,vC:()=>k,vY:()=>O,wg:()=>z,xH:()=>S,zR:()=>i});var n=r(71831);let a={title:""},i={title:"map:legend.tree_canopy"},o={title:"map:legend.priority_indicators"},s={title:"map:legend.environmental_indicators"},l={title:"Hide"},u=[a,i,o,s,l],c=["equity_index","dependent_ratio","poc_percent","unemployment_rate","poverty_percent","temperature","health_normalized","linguistic_isolation"],d=["tree_canopy","potential_tree_canopy","tree_canopy_gap","impervious_surface"],p=["afternoon_air_average_temperature","evening_air_average_temperature"],f=["poverty_percent","poc_percent","unemployment_rate","tree_canopy","potential_tree_canopy","tree_canopy_gap","impervious_surface","linguistic_isolation","dependent_ratio","canopy_change_percent","total_shade12","total_shade15","total_shade18"],h=["equity_index"],g=e=>null!=e?"".concat((0,n.ZV)(100*e,0,"en-us"),"%"):"N/A",y=e=>null!=e?"".concat((0,n.ZV)(Math.floor(100*e),0,"en-us"),"%"):"N/A",m=e=>null!=e?"".concat((0,n.ZV)(e,2,"en-us")):"N/A",v=e=>null!=e?"".concat((0,n.ZV)(100*e,0,"en-us")):"N/A",b=e=>null!=e?"".concat(Math.floor(e)):"N/A",_=e=>null!=e?"".concat((0,n.ZV)(e,0,"en-us"),"\xb0"):"N/A",w=(e,t)=>null!=e?"".concat(e>0?"+":"").concat(Math.floor(10*e)/10,"\xb0").concat(t&&"en-CA"===t?"C":"F"):"N/A",C=e=>null!=e?"".concat(e):"N/A",S={fill:["#FFFFFF","#007185"],opacity:[.5,1]},k={fill:["#F6D0B1","#c2cad4","#8b929e","#3D485B"],opacity:[1,1,1,1]},E={fill:["#F99D3E","#6CC396"],opacity:[1,1]},x={fill:["#FFFFFF","#379C68"],opacity:[.7,1]},R={fill:["#FFFFFF","#F9A650"],opacity:[.7,1]},O={fill:["#CEE4ED","#FFF","#F54625","#DB2400","#A00E0D"],opacity:[.7,.4,.9,.9,.9]},T={fill:["#FFFFFF","#FFE6E9","#F54625","#DB2400"],opacity:[.5,.9,.9,.9]},I={fill:["#F3F3EB","#C1C1AB","#777700","#6B6A30","#524D11"],opacity:[.3,.5,.55,.8,.95]},A={fill:["#FFFFFF","#F9A650"],opacity:[.7,1]},P={fill:["#55FF00","#FFD400","#E600A9","#4C7300","#2F2DBA"],opacity:[.7,.7,.7,.7,.7]},M={fill:["#FFFFFF","#C9C7C0","#5F5B4E"],opacity:[.5,.5,1]},j={fill:["#C9C7C0","#5F5B4E"],opacity:[.5,1]},L={fill:["#6CC296","#386cb0","#ffff99","#ee261e","#e6b8ff"]},D={fill:["#A67986","#C8A59F","#E3D6CD","#B9D795","#8FB481"],opacity:[.9,.9,.9,.9,.9]},N={fill:["#6CC296","#f99d3e","brown","#FFFFFF"],opacity:[1,1,1,0]},F={fill:["#4C0073","#4C0073","#FFFFFF","#3BAD72","#3BAD72"],opacity:[1,1,.7,1,1]},z={fill:["#F99F3A","#D6A755","#A0B776","#81BE8A","#6BC396"],opacity:[1,1,1,1,1]},$={fill:["#DE577B","#E5A47F","#E8C898","#B8E0DB","#ECF4F4"],opacity:[.9,.9,.8,.5,.5]},U={dataToLabel:e=>Math.round(100*e),labelToData:e=>e/100},B={dataToLabel:e=>Math.round(100*e)/100,labelToData:e=>e},q={dataToLabel:e=>Math.floor(e),labelToData:e=>e},H={dataToLabel:e=>e,labelToData:e=>e},V=e=>e.flatMap(e=>void 0!==e.priorityIndex?[e]:[]).sort((e,t)=>
66t.priorityIndex-e.priorityIndex)},61181:(e,t)=>{t.B={Page404:e=>({pathname:"/404",query:e,href:e?r("/404",Object.keys(e),Object.values(e)):"/404"}),About:e=>({pathname:"/about",query:e,href:e?r("/about",Object.keys(e),Object.values(e)):"/about"}),ForgotPasswordPage:e=>({pathname:"/analyzer/[city]/forgot-password",query:e,href:e?r("/analyzer/[city]/forgot-password",Object.keys(e),Object.values(e)):"/analyzer/[city]/forgot-password"}),LandingPage:e=>({pathname:"/analyzer/[city]",query:e,href:e?r("/analyzer/[city]",Object.keys(e),Object.values(e)):"/analyzer/[city]"}),LoginPage:e=>({pathname:"/analyzer/[city]/login",query:e,href:e?r("/analyzer/[city]/login",Object.keys(e),Object.values(e)):"/analyzer/[city]/login"}),Map:e=>({pathname:"/analyzer/[city]/map",query:e,href:e?r("/analyzer/[city]/map",Object.keys(e),Object.values(e)):"/analyzer/[city]/map"}),ResetPasswordPage:e=>({pathname:"/analyzer/[city]/reset-password",query:e,href:e?r("/analyzer/[city]/reset-password",Object.keys(e),Object.values(e)):"/analyzer/[city]/reset-password"}),ReportPage:e=>({pathname:"/analyzer/[city]/scenario/[id]/report",query:e,href:e?r("/analyzer/[city]/scenario/[id]/report",Object.keys(e),Object.values(e)):"/analyzer/[city]/scenario/[id]/report"}),SignupPage:e=>({pathname:"/analyzer/[city]/signup",query:e,href:e?r("/analyzer/[city]/signup",Object.keys(e),Object.values(e)):"/analyzer/[city]/signup"}),TesaHome:e=>({pathname:"/analyzer",query:e,href:e?r("/analyzer",Object.keys(e),Object.values(e)):"/analyzer"}),Contact:e=>({pathname:"/contact",query:e,href:e?r("/contact",Object.keys(e),Object.values(e)):"/contact"}),HomeEs:e=>({pathname:"/es",query:e,href:e?r("/es",Object.keys(e),Object.values(e)):"/es"}),HealthPage:e=>({pathname:"/health",query:e,href:e?r("/health",Object.keys(e),Object.values(e)):"/health"}),Home:e=>({pathname:"/",query:e,href:e?r("/",Object.keys(e),Object.values(e)):"/"}),DistrictInsightsPage:e=>({pathname:"/insights/congressional/[slug]",query:e,href:e?r("/insights/congressional/[slug]",Object.keys(e),Object.values(e)):"/insights/congressional/[slug]"}),CountyInsightsPage:e=>({pathname:"/insights/county/[slug]",query:e,href:e?r("/insights/county/[slug]",Object.keys(e),Object.values(e)):"/insights/county/[slug]"}),PlaceInsightsPage:e=>({pathname:"/insights/place/[slug]",query:e,href:e?r("/insights/place/[slug]",Object.keys(e),Object.values(e)):"/insights/place/[slug]"}),StateInsightsPage:e=>({pathname:"/insights/state/[slug]",query:e,href:e?r("/insights/state/[slug]",Object.keys(e),Object.values(e)):"/insights/state/[slug]"}),ManageTracking:e=>({pathname:"/manage-tracking",query:e,href:e?r("/manage-tracking",Object.keys(e),Object.values(e)):"/manage-tracking"}),NationalExplorer:e=>({pathname:"/map",query:e,href:e?r("/map",Object.keys(e),Object.values(e)):"/map"}),Methodology:e=>({pathname:"/methodology",query:e,href:e?r("/methodology",Object.keys(e),Object.values(e)):"/methodology"}),Privacy:e=>({pathname:"/privacy",query:e,href:e?r("/privacy",Object.keys(e),Object.values(e)):"/privacy"}),Resources:e=>({pathname:"/resources",query:e,href:e?r("/resources",Object.keys(e),Object.values(e)):"/resources"}),Stories:e=>({pathname:"/stories",query:e,href:e?r("/stories",Object.keys(e),Object.values(e)):"/stories"}),AustinShadeStory:e=>({pathname:"/stories/austin-shade",query:e,href:e?r("/stories/austin-shade",Object.keys(e),Object.values(e)):"/stories/austin-shade"}),BostonEmployers:e=>({pathname:"/stories/boston-employers",query:e,href:e?r("/stories/boston-employers",Object.keys(e),Object.values(e)):"/stories/boston-employers"}),DetroitShadeStory:e=>({pathname:"/stories/detroit-shade",query:e,href:e?r("/stories/detroit-shade",Object.keys(e),Object.values(e)):"/stories/detroit-shade"}),HappierHealthierStory:e=>({pathname:"/stories/happier-healthier",query:e,href:e?r("/stories/happier-healthier",Object.keys(e),Object.values(e)):"/stories/happier-healthier"}),KeepingCoolStory:e=>({pathname:"/stories/keeping-cool",query:e,href:e?r("/stories/keeping-cool",Object.keys(e),Object.values(e)):"/stories/keeping-cool"}),TES2UpdatesStory:e=>({pathname:"/stories/next-generation",query:e,href:e?r("/stories/next-generation",Object.keys(e),Object.values(e)):"/stories/next-generation"}),NTCStory:e=>({pathname:"/stories/ntc-story",query:e,href:e?r("/stories/ntc-story",Object.keys(e),Object.values(e)):"/stories/ntc-story"}),PhoenixShadeStory:e=>({pathname:"/stories/phoenix-shade",query:e,href:e?r("/stories/phoenix-shade",Object.keys(e),Object.values(e)):"/stories/phoenix-shade"}
66),PNPPStory:e=>({pathname:"/stories/pnpp-story",query:e,href:e?r("/stories/pnpp-story",Object.keys(e),Object.values(e)):"/stories/pnpp-story"}),UrbanHeatEquityStory:e=>({pathname:"/stories/urban-heat-equity",query:e,href:e?r("/stories/urban-heat-equity",Object.keys(e),Object.values(e)):"/stories/urban-heat-equity"})};function r(e,t,r){let n=e;return t.forEach((e,t)=>{let a=r[t];a&&(n=n.replace("["+e+"]",String(a)))}),n}},62263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return o},getRedirectStatusCodeFromError:function(){return d},getRedirectTypeFromError:function(){return c},getURLFromRedirectError:function(){return u},permanentRedirect:function(){return l},redirect:function(){return s}});let n=r(83246),a=r(12632),i=void 0;function o(e,t,r){void 0===r&&(r=n.RedirectStatusCode.TemporaryRedirect);let i=Object.defineProperty(Error(a.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return i.digest=a.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+r+";",i}function s(e,t){var r;throw null!=t||(t=(null==i||null==(r=i.getStore())?void 0:r.isAction)?a.RedirectType.push:a.RedirectType.replace),o(e,t,n.RedirectStatusCode.TemporaryRedirect)}function l(e,t){throw void 0===t&&(t=a.RedirectType.replace),o(e,t,n.RedirectStatusCode.PermanentRedirect)}function u(e){return(0,a.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function c(e){if(!(0,a.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function d(e){if(!(0,a.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63146:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var n=r(6029),a=r(55729),i=r(19843),o=r(11351),s=r(50212);let l=(0,a.forwardRef)((e,t)=>{let{name:r,variant:a="default",label:l,outerProps:u,...c}=e,[d]=(0,o.Mt)(r),{isSubmitting:p}=(0,o.j7)();return(0,n.jsxs)("div",{...u,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(i.JU,{variant:a,children:l}),(0,n.jsx)(i.pd,{variant:a,...d,disabled:p,...c,ref:t})]}),(0,n.jsx)(o.Kw,{name:r,children:e=>(0,n.jsx)("div",{role:"alert",className:(0,s.A)("pt-2 text-sm text-red-500","noborder"===a&&"p-2"),children:e})})]})})},63654:(e,t,r)=>{"use strict";r.d(t,{Dc:()=>l,TL:()=>o});var n=r(55729),a=r(82975),i=r(6029);function o(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var o,s,l;let e,u,c=(u=(e=null==(s=Object.getOwnPropertyDescriptor((o=r).props,"ref"))?void 0:s.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(u=(e=null==(l=Object.getOwnPropertyDescriptor(o,"ref"))?void 0:l.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref,d=function(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=i(...t);return a(...t),n}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(d.ref=t?(0,a.t)(t,c):c),n.cloneElement(r,d)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),r=n.forwardRef((e,r)=>{let{children:a,...o}=e,s=n.Children.toArray(a),l=s.find(u);if(l){let e=l.props.children,a=s.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,a):null})}return(0,i.jsx)(t,{...o,ref:r,children:a})});return r.displayName="".concat(e,".Slot"),r}var s=Symbol("radix.slottable");function l(e){let t=e=>{let{children:t}=e;return(0,i.jsx)(i.Fragment,{children:t})};return t.displayName="".concat(e,".Slottable"),t.__radixId=s,t}function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}},65127:()=>{},67549:(e,t,r)=>{"use strict";r.d(t,{Xr:()=>u,fp:()=>c,md:()=>l});
66var n=r(55729),a=r(70921);let i=(0,n.createContext)(void 0),o=e=>{let t=(0,n.useContext)(i);return(null==e?void 0:e.store)||t||(0,a.zp)()},s=n.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e});function l(e,t){let r,a=o(t),[[i,l,u],c]=(0,n.useReducer)(t=>{let r=a.get(e);return Object.is(t[0],r)&&t[1]===a&&t[2]===e?t:[r,a,e]},void 0,()=>[a.get(e),a,e]),d=i;(l!==a||u!==e)&&(c(),d=a.get(e));let p=null==t?void 0:t.delay;return(0,n.useEffect)(()=>{let t=a.sub(e,()=>{if("number"==typeof p)return void setTimeout(c,p);c()});return c(),t},[a,e,p]),(0,n.useDebugValue)(d),"function"==typeof(null==(r=d)?void 0:r.then)?s(d):d}function u(e,t){let r=o(t);return(0,n.useCallback)((...t)=>{if(!("write"in e))throw Error("not writable atom");return r.set(e,...t)},[r,e])}function c(e,t){return[l(e,t),u(e,t)]}},67574:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},69002:e=>{function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,a,i,o,s=typeof e;if("string"===s&&e.length>0){var l=e;if(!((l=String(l)).length>100)){var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(u){var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return 6048e5*c;case"days":case"day":case"d":return 864e5*c;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*c;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*c;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:break}}}return}if("number"===s&&isFinite(e)){return r.long?(a=Math.abs(n=e))>=864e5?t(n,a,864e5,"day"):a>=36e5?t(n,a,36e5,"hour"):a>=6e4?t(n,a,6e4,"minute"):a>=1e3?t(n,a,1e3,"second"):n+" ms":(o=Math.abs(i=e))>=864e5?Math.round(i/864e5)+"d":o>=36e5?Math.round(i/36e5)+"h":o>=6e4?Math.round(i/6e4)+"m":o>=1e3?Math.round(i/1e3)+"s":i+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},69113:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});var n=r(55729),a=r(82975),i=r(18909),o=r(22555),s=r(6029),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:d=!1,onMountAutoFocus:y,onUnmountAutoFocus:m,...v}=e,[b,_]=n.useState(null),w=(0,o.c)(y),C=(0,o.c)(m),S=n.useRef(null),k=(0,a.s)(t,e=>_(e)),E=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(d){let e=function(e){if(E.paused||!b)return;let t=e.target;b.contains(t)?S.current=t:h(S.current,{select:!0})},t=function(e){if(E.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||h(S.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[d,b,E.paused]),n.useEffect(()=>{if(b){g.add(E);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(l,c);b.addEventListener(l,w),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(h(n,{select:t}),document.activeElement!==r)return}(p(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(b))}return()=>{b.removeEventListener(l,w),setTimeout(()=>{let t=new CustomEvent(u,c);b.addEventListener(u,C),b.dispatchEvent(t),t.defaultPrevented||h(null!=e?e:document.body,{select:!0}),b.removeEventListener(u,C),g.remove(E)},0)}}},[b,w,C,E]);let x=n.useCallback(e=>{if(!r&&!d||E.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[a,i]=function(e){let t=p(e);return[f(t,e),f(t.reverse(),e)]}(t);a&&i?e.shiftKey||n!==i?e.shiftKey&&n===a&&(e.preventDefault(),r&&h(i,{select:!0})):(e.preventDefault(),r&&h(a,{select:!0})):n===t&&e.preventDefault()}},[r,d,E.paused]);return(0,s.jsx)(i.sG.div,{tabIndex:-1,...v,ref:k,onKeyDown:x})});function p(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function f(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function h(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}d.displayName="FocusScope";var g=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=y(e,t)).unshift(t)},remove(t){var r;null==(r=(e=y(e,t))[0])||r.resume()}}}();function y(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},69962:(e,t,r)=>{"use strict";r.d(t,{M:()=>a});var n=r(6029);function a(e){let{className:t}=e;return(0,n.jsxs)("svg",{viewBox:"0 0 114 83",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,n.jsxs)("g",{clipPath:"url(#logo-white_svg__clip0)",children:[(0,n.jsx)("path",{d:"M61.292 13.343v13.392H58.25V13.343h-3.13V10.38h9.215v2.964h-3.042l-.001-.001zm12.167 13.494c-1.253 0-1.7-1.022-1.7-2.453v-2.658c0-.818-.358-1.636-1.253-1.636h-1.61v6.645h-3.042V10.38h5.19c2.325 0 3.757 1.533 3.757 3.885V16c0 1.33-.537 2.352-1.88 2.76 1.253.307 1.88 1.534 1.88 2.658v2.658c0 .716.178 1.227.626 1.636v1.022h-1.968v.103zm-1.79-12.369c0-.818-.268-1.329-1.073-1.329h-1.7v4.498h1.61c.805 0 1.253-.511 1.253-1.431v-1.738h-.09zm5.1 12.267V10.379h7.962v2.964h-4.92v3.578h3.399v2.658h-3.4v4.09h4.92v3.066h-7.961zm9.572 0V10.379h7.962v2.964h-4.92v3.578h3.4v2.658h-3.4v4.09h4.92v3.066h-7.962zM55.924 52.29V35.934h7.962V38.9h-4.92v3.578h3.4v2.658h-3.4v4.089h4.92v3.067h-7.962v-.002zm18.34.41c-.716 0-1.432-.41-1.79-.818-.626.511-1.43.818-2.594.818-2.773 0-4.562-2.147-4.562-4.907v-7.36c0-2.76 1.7-4.908 4.741-4.908 2.952 0 4.741 2.147 4.741 4.907v7.463c0 .716-.
66089 1.329-.357 1.84.268.307.536.409 1.341.409v2.249c-.447.102-.805.307-1.52.307zm-2.595-12.574c0-.92-.537-1.738-1.61-1.738-.984 0-1.61.818-1.61 1.738v7.871c0 .92.537 1.738 1.61 1.738.358 0 .626-.102.895-.204l-.627-.614 1.342-1.43v-7.361zM81.51 52.7c-2.684 0-4.652-1.84-4.652-4.6V35.933h3.131v12.063c0 1.125.537 1.738 1.61 1.738 1.074 0 1.61-.613 1.61-1.738V35.934h2.953V48.1c0 2.658-1.879 4.6-4.652 4.6zm6.62-.41V35.934h3.042v16.357H88.13v-.001zm10.646-13.391V52.29h-3.042V38.898h-3.13v-2.965h9.214V38.9h-3.042v-.001zm10.735 6.542v6.747h-3.041v-6.747l-3.668-9.609h3.22l2.148 6.44 2.057-6.44h3.042l-3.758 9.61v-.001zM60.04 78.254c-2.774 0-4.563-1.84-4.563-4.6v-.817h2.773v.51c0 1.33.626 2.147 1.7 2.147 1.073 0 1.61-.715 1.61-1.84 0-1.226-.805-1.84-2.505-2.862-1.7-1.022-3.578-2.35-3.578-4.907 0-2.555 1.61-4.804 4.473-4.804 2.594 0 4.383 2.044 4.383 4.6v.613H61.56v-.51c0-1.125-.537-1.943-1.61-1.943-.895 0-1.521.613-1.521 1.636 0 1.124.805 1.84 2.684 2.862 1.968 1.227 3.4 2.555 3.4 4.907.089 2.657-1.61 5.008-4.474 5.008h.001zm10.914 0c-3.042 0-4.831-2.249-4.831-5.008v-7.054c0-2.862 1.789-5.008 4.83-5.008 2.953 0 4.474 2.044 4.474 4.804v1.431h-2.774v-1.533c0-1.125-.536-1.84-1.7-1.84-1.162 0-1.7.715-1.7 1.84v7.666c0 1.022.538 1.84 1.7 1.84 1.164 0 1.7-.715 1.7-1.84V72.02h2.774v1.635c0 2.556-1.521 4.6-4.473 4.6v-.001zm10.735 0c-2.952 0-4.741-2.044-4.741-5.008V66.09c0-2.862 1.789-5.009 4.741-5.009s4.741 2.044 4.741 5.009v7.156c0 2.862-1.789 5.008-4.741 5.008zm1.61-12.369c0-1.124-.537-1.84-1.61-1.84-.984 0-1.61.716-1.61 1.84v7.565c0 1.124.536 1.84 1.61 1.84s1.61-.716 1.61-1.84v-7.565zm12.614 12.063c-1.252 0-1.7-1.022-1.7-2.453v-2.658c0-.818-.357-1.636-1.252-1.636h-1.61v6.645h-3.042V61.49h5.189c2.326 0 3.757 1.533 3.757 3.884v1.738c0 1.329-.536 2.35-1.878 2.76 1.252.306 1.878 1.533 1.878 2.657v2.658c0 .715.18 1.227.627 1.635v1.023h-1.969v.103zm-1.789-12.369c0-.817-.268-1.328-1.073-1.328h-1.7v4.497h1.61c.805 0 1.253-.51 1.253-1.43v-1.739h-.09zm5.099 12.267V61.491h7.962v2.964h-4.92v3.578h3.4v2.658h-3.4v4.088h4.92v3.067h-7.962z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M21.988 69.83s-.072 6.472.717 11.553",stroke:"#3D3D3E",strokeWidth:"2.454",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,n.jsx)("path",{d:"M6.784 15.09c.359-.41 14.917 14.914 14.917 14.914l.143 39.005-2.08-1.802-3.442-6.802-1.65-2.54-3.657-1.885-1.004-3.113L7.717 50.9l-.144-2.622 4.303-.164 3.8 1.065 2.367-.164-4.733-4.834-2.797-.82-3.8-.901-1.148-3.852-4.948-9.997 2.366-2.704 8.39 3.688-4.302-7.621-.287-6.883v-.001z",fill:"#F79131"}),(0,n.jsx)("path",{d:"M21.916 43.607l23.808-20.732.861 2.131-6.382 14.258-11.044 4.425-1.936 3.77s7.888-.656 8.031-.574c.144.163.144 1.475.144 1.475l-1.291 2.867-1.721 2.54-3.37 2.295-1.793 6.474-2.94 4.834-2.367 2.295V43.607z",fill:"#98C558"}),(0,n.jsx)("path",{d:"M45.007 22.22l.43.9-23.665 20.978s-.287-42.692 0-42.774c.287-.082 2.94 1.885 2.94 1.885l2.009 4.916.645 3.934 1.434-1.475 3.442-2.786 3.873.82.789 5.243-1.076 6.31-2.797 4.097-.502 2.049 2.008.164 8.964-4.507 1.506.246z",fill:"#5EB546"}),(0,n.jsx)("path",{d:"M21.127.833l.717 1.393-.287 27.778L7.358 15.01l-.143-1.311 1.72-2.049 6.67 2.213.287-1.147-.143-4.835 1.219-4.507 2.223-2.048 1.936-.492V.833z",fill:"#FCB64F"}),(0,n.jsx)("path",{d:"M22.561 69.336c-1.864-2.212-3.514-4.916-4.661-7.62-.574-1.312-1.004-2.705-1.865-3.852-.789-1.065-1.936-1.475-3.083-1.966-.574-.246-1.148-.41-1.506-1.066-.359-.655-.43-1.393-.79-2.048-.43-.656-1.003-1.147-1.577-1.639-.287-.328-1.076-.983-.86-1.557.215-.492 1.649-.246 2.08-.246.86 0 1.72.082 2.51.246 1.577.328 3.011.82 4.517 1.475.43.164 1.004-.246 1.076-.737.215-1.148.215-2.459-.502-3.36-.789-.983-1.865-1.23-2.725-2.049-1.076-1.065-1.937-1.884-3.3-2.212-1.29-.328-2.652-.246-3.872-.983-.502-.246-1.004-.738-1.147-1.311-.215-.82.072-1.721-.143-2.54-.359-1.558-1.722-2.459-2.582-3.606A12.363 12.363 0 011.98 29.84c-.144-.655-.43-1.639.143-2.13.43-.41 1.147-.492 1.65-.492 3.442-.164 5.665 3.851 8.963 4.507.861.164 1.506-.902.861-1.721-.789-1.065-1.506-2.294-2.295-3.36-.717-1.065-1.506-1.966-2.151-3.031-.646-1.066-1.291-2.295-1.506-3.606-.215-1.23 0-2.458.143-3.687.072-.984.215-2.213.86-3.032.646-.738 1.507-.574 2.296-.246 1.72.737 3.155 2.212 5.091 2.049.574-.082 1.004-.574.86-1.312-.43-2.212-.501-4.342-.07-6.555.43-2.048 1.218-4.589 3.226-4.998 1.721-.328 3.586.983 4.518 2.622 1.22 2.13 1.506 4.834 1.721 7.293.072.901.933 1.31 1.506.737 1.076-.983 2.152-1.966 3.227-2.868.718-.573 1.363-1.147 2.295-1.229 1.076-.082 1.936.41 2.152 1.639.286 1.31.215 2.868.143 4.179-.072 1.475-.215 2.868-.645 4.26-.43 1.394-1.076 2.623-1.793 3.852-.646 1.065-1.434 2.049-1.936 3.196-.216.573-.072 1.393.502 1.475 3.011.655 5.378-1.311 7.888-2.868 1.22-.738 2.725-1.557 4.088-1.23.573.083 1.362.41 1.649 1.148.287.737-.215 1.393-.574 1.885-.932 1.31-1.864 2.376-2.08 4.097-.143.983 0 1.884-.645 2.704-.574.737-1.004 1.31-1.219 2.212-.215.902-.358 1.64-.932 2.377a6.144 6.144 0 01-1.793 1.393c-1.578.9-3.227 1.393-4.877 1.966-1.792.574-3.585 1.147-5.02 2.458-1.29 1.148-2.438 2.95-1.434 4.835.144.246.502.574.79.492 1.72-.246 3.441-.41 5.163-.656.645-.082 1.362-.328 2.007-.164.144 0 .287.082.359.164 0-.328-.072-.41-.215-.082-.215.082-.43.41-.574.574-.86 1.065-.86 2.54-1.506 3.687-.645 1.065-1.864 1.393-2.797 1.967-1.075.655-1.864 1.475-2.366 2.704-.502 1.475-.717 3.114-1.291 4.589-1.147 3.031-2.868 5.654-5.092 7.702-.86.82.359 2.295 1.291 1.475 1.865-1.803 3.514-4.015 4.662-6.555a24.49 24.49 0 001.434-3.852c.358-1.229.43-2.868 1.362-3.769.79-.737 1.793-1.065 2.654-1.639a5.33 5.33 0 002.008-2.458c.215-.573.358-1.147.502-1.72.215-.738.573-.984 1.075-1.476.718-.82.861-2.048 0-2.786-1.004-.901-2.366-.573-3.514-.491-1.72.245-3.442.41-5.163.655.287.164.502.328.789.492-.789-1.557 2.08-3.032 3.012-3.442 1.793-.737 3.729-1.229 5.522-2.048 1.434-.574 2.868-1.23 4.016-2.377.502-.491.932-1.147 1.29-1.884.36-.902.36-1.967 1.005-2.704.573-.656 1.075-1.23 1.219-2.13.215-.902.071-1.968.358-2.869.574-1.475 2.008-2.376 2.438-4.015.43-1.557-.215-3.032-1.362-3.851-1.29-.902-2.94-.902-4.375-.492-1.649.492-3.083 1.557-4.59 2.54-1.433.902-2.94 1.803-4.589 1.393.144.492.359.984.502 1.475.646-1.475 1.721-2.704 2.438-4.097.718-1.393 1.363-2.868 1.722-4.425.43-1.72.502-3.605.43-5.408-.072-1.475 0-3.278-.789-4.507-1.29-2.212-4.16-2.048-5.952-.737-1.434 1.065-2.869 2.376-4.231 3.605l1.506.738c-.287-3.032-.646-6.31-2.295-8.85-1.363-2.049-3.657-3.524-5.952-3.032-2.51.492-3.945 3.114-4.59 5.654-.717 2.868-.645 5.572-.143 8.44.286-.41.573-.901.86-1.31-2.223.245-3.872-2.213-6.095-2.295-2.439-.164-3.586 2.376-3.873 4.752-.143 1.393-.359 2.786-.287 4.18.144 1.474.646 2.867 1.363 4.097.717 1.31 1.577 2.376 2.438 3.605 1.004 1.311 1.793 2.786 2.797 4.097l.86-1.72c-3.012-.492-5.163-4.18-8.462-4.426-1.219-.082-2.653.082-3.657 1.066C-.244 27.382-.1 29.02.258 30.578c.502 1.72 1.22 3.277 2.224 4.67a17.753 17.753 0 001.577 1.803c.717.737 1.004 1.311 1.004 2.458-.072 1.64.502 2.868 1.721 3.77 1.22.901 2.654 1.065 4.088 1.31.789.165 1.65.328 2.367.902.573.492 1.075 1.147 1.649 1.557.574.41 1.219.573 1.721 1.065.072.082.143.246.287.328.143.164.072.082 0-.082-.072-.246-.144-.246-.072-.082 0 .082.072.41.072.41.072.328 0 .737 0 1.065l1.076-.737c-2.582-1.148-5.307-1.803
66-8.104-1.885-1.147 0-2.51.082-3.012 1.393-.43 1.065-.072 2.458.645 3.278.359.491.861.819 1.291 1.229.574.573.79 1.147 1.076 1.966.43 1.23 1.147 2.049 2.223 2.54 1.076.492 2.152.656 2.94 1.721.717 1.066 1.076 2.377 1.578 3.524 1.22 2.786 2.94 5.572 4.805 7.784.717 1.148 1.936-.245 1.147-1.229z",fill:"#3D3D3E"}),(0,n.jsx)("path",{d:"M35.183 33.282L46.01 23.53c-.286-.41-.788-.737-1.29-.983l-10.47 9.424-11.618 10.242v-3.85l-.072-36.63c-.502-.245-1.076-.41-1.578-.41V28.53L10.8 17.385 7.501 13.86a7.91 7.91 0 00-.43 1.885l2.725 2.868 11.26 12.291v7.539l.214 30.483c.287.41.574.737.86 1.065.288-.246.503-.492.79-.82l-.287-24.828 12.55-11.062v.001z",fill:"#171717"}),(0,n.jsx)("path",{d:"M46.083 23.449a2.627 2.627 0 00-1.362-.984h-.072l-10.47 9.424-11.474 10.16v-3.605l-.072-36.71v-.082h-.072c-.573-.246-1.076-.41-1.65-.492h-.07v27.123l-9.969-10.98-3.442-3.688-.072.164c-.215.492-.359 1.148-.43 1.885v.082l2.725 2.95 11.259 12.291v7.457l.215 30.483c.358.41.574.737.86 1.065l.072.082.072-.082c.215-.246.502-.491.717-.737l.072-.082-.144-24.747 12.478-11.062 10.83-9.751v-.164h-.001z",fill:"#3D3D3E"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"logo-white_svg__clip0",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h114v83H0z"})})})]})}},70921:(e,t,r)=>{"use strict";let n;r.d(t,{eU:()=>i,zp:()=>g});let a=0;function i(e,t){let r=`atom${++a}`,n={toString:()=>r};return"function"==typeof e?n.read=e:(n.init=e,n.read=e=>e(n),n.write=(e,t,r)=>t(n,"function"==typeof r?r(e(n)):r)),t&&(n.write=t),n}let o=e=>"init"in e,s=new WeakMap,l=(e,t)=>{let r=s.get(e);r&&(s.delete(e),r(t))},u=(e,t)=>{e.status="fulfilled",e.value=t},c=(e,t)=>{e.status="rejected",e.reason=t},d=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),p=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),f=e=>"v"in e&&e.v instanceof Promise,h=e=>{if("e"in e)throw e.e;return e.v};"number"==typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__?++globalThis.__NUMBER_OF_JOTAI_INSTANCES__:globalThis.__NUMBER_OF_JOTAI_INSTANCES__=1;let g=()=>(n||(1!==globalThis.__NUMBER_OF_JOTAI_INSTANCES__&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"),n=(()=>{let e,t,r=new WeakMap,n=new WeakMap,a=new Map;e=new Set,t=new Set;let i=e=>r.get(e),g=(e,t)=>{Object.freeze(t);let n=r.get(e);if(r.set(e,t),a.has(e)||a.set(e,n),n&&f(n)){let e="v"in t?t.v instanceof Promise?t.v:Promise.resolve(t.v):Promise.reject(t.e);n.v!==e&&l(n.v,e)}},y=(e,t,r)=>{let n=new Map,a=!1;r.forEach((r,i)=>{r||i!==e||(r=t),r?(n.set(i,r),t.d.get(i)!==r&&(a=!0)):console.warn("[Bug] atom state not found")}),(a||t.d.size!==n.size)&&(t.d=n)},m=(e,t,r)=>{let n=i(e),a={d:(null==n?void 0:n.d)||new Map,v:t};if(r&&y(e,a,r),n&&d(n,a)&&n.d===a.d)return n;if(n&&f(n)&&f(a)&&((e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig)(n,a))if(n.d===a.d)return n;else a.v=n.v;return g(e,a),a},v=(e,t,r,a)=>{if((e=>"function"==typeof(null==e?void 0:e.then))(t)){let o,l=new Promise((a,s)=>{let d=!1;t.then(t=>{if(!d){d=!0;let o=i(e),s=m(e,l,r);u(l,t),a(t),n.has(e)&&(null==o?void 0:o.d)!==s.d&&x(e,s,null==o?void 0:o.d)}},t=>{if(!d){d=!0;let a=i(e),o=m(e,l,r);c(l,t),s(t),n.has(e)&&(null==a?void 0:a.d)!==o.d&&x(e,o,null==a?void 0:a.d)}}),o=e=>{d||(d=!0,e.then(e=>u(l,e),e=>c(l,e)),a(e))}});return l.orig=t,l.status="pending",((e,t)=>{s.set(e,t),e.catch(()=>{}).finally(()=>s.delete(e))})(l,e=>{e&&o(e),null==a||a()}),m(e,l,r)}return m(e,t,r)},b=(e,t)=>{let r,a,s=i(e);if(!t&&s&&(n.has(e)||Array.from(s.d).every(([t,r])=>t===e||b(t)===r)))return s;let l=new Map,u=!0;try{let t=e.read(t=>{if(t===e){let e=i(t);if(e)return l.set(t,e),h(e);if(o(t))return l.set(t,void 0),t.init;throw Error("no atom init")}let r=b(t);return l.set(t,r),h(r)},{get signal(){return r||(r=new AbortController),r.signal},get setSelf(){return e.write||console.warn("setSelf function cannot be used with read-only atom"),!a&&e.write&&(a=(...t)=>{if(u&&console.warn("setSelf function cannot be called in sync"),!u)return S(e,...t)}),a}});return v(e,t,l,()=>null==r?void 0:r.abort())}catch(t){return((e,t,r)=>{let n=i(e),a={d:(null==n?void 0:n.d)||new Map,e:t};return(r&&y(e,a,r),n&&p(n,a)&&n.d===a.d)?n:(g(e,a),a)})(e,t,l)}finally{u=!1}},_=(e,t)=>
66!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),w=e=>{let t=new Map,r=new WeakMap,o=e=>{var t;let r=new Set(null==(t=n.get(e))?void 0:t.t);return a.forEach((t,n)=>{var a;(null==(a=i(n))?void 0:a.d.has(e))&&r.add(n)}),r},s=e=>{o(e).forEach(n=>{n!==e&&(t.set(n,(t.get(n)||new Set).add(e)),r.set(n,(r.get(n)||0)+1),s(n))})};s(e);let l=e=>{o(e).forEach(n=>{var a;if(n!==e){let e=r.get(n);if(e&&r.set(n,--e),!e){let e=!!(null==(a=t.get(n))?void 0:a.size);if(e){let t=i(n),r=b(n,!0);e=!t||!d(t,r)}e||t.forEach(e=>e.delete(n))}l(n)}})};l(e)},C=(t,...r)=>{let n=!0,a=t.write(e=>h(b(e)),(r,...a)=>{let s;if(r===t){if(!o(r))throw Error("atom not writable");let e=i(r),t=v(r,a[0]);e&&d(e,t)||w(r)}else s=C(r,...a);if(!n){let t=R();e.forEach(e=>e({type:"async-write",flushed:t}))}return s},...r);return n=!1,a},S=(t,...r)=>{let n=C(t,...r),a=R();return e.forEach(e=>e({type:"write",flushed:a})),n},k=(e,r,a)=>{var o;let s=a||[];null==(o=i(e))||o.d.forEach((t,r)=>{let a=n.get(r);a?a.t.add(e):r!==e&&k(r,e,s)}),b(e);let l={t:new Set(r&&[r]),l:new Set};if(n.set(e,l),t.add(e),e.write&&e.onMount){let{onMount:t}=e;s.push(()=>{let r=t((...t)=>S(e,...t));r&&(l.u=r)})}return a||s.forEach(e=>e()),l},E=e=>{var r;let a=null==(r=n.get(e))?void 0:r.u;a&&a(),n.delete(e),t.delete(e);let o=i(e);o?(f(o)&&l(o.v),o.d.forEach((t,r)=>{if(r!==e){let t=n.get(r);t&&(t.t.delete(e),_(r,t)&&E(r))}})):console.warn("[Bug] could not find atom state to unmount",e)},x=(e,t,r)=>{let a=new Set(t.d.keys());null==r||r.forEach((t,r)=>{if(a.has(r))return void a.delete(r);let i=n.get(r);i&&(i.t.delete(e),_(r,i)&&E(r))}),a.forEach(t=>{let r=n.get(t);r?r.t.add(e):n.has(e)&&k(t,e)})},R=()=>{let e;for(e=new Set;a.size;){let t=Array.from(a);a.clear(),t.forEach(([t,r])=>{let a=i(t);if(a){let i=n.get(t);i&&a.d!==(null==r?void 0:r.d)&&x(t,a,null==r?void 0:r.d),i&&!(r&&!f(r)&&(d(r,a)||p(r,a)))&&(i.l.forEach(e=>e()),e.add(t))}else console.warn("[Bug] no atom state to flush")})}return e};return{get:e=>h(b(e)),set:S,sub:(t,r)=>{let a=(e=>{let t=n.get(e);return t||(t=k(e)),t})(t),i=R(),o=a.l;return o.add(r),e.forEach(e=>e({type:"sub",flushed:i})),()=>{o.delete(r),(e=>{let t=n.get(e);t&&_(e,t)&&E(e)})(t),e.forEach(e=>e({type:"unsub"}))}},dev_subscribe_store:(t,r)=>{if(2!==r)throw Error("The current StoreListener revision is 2.");return e.add(t),()=>{e.delete(t)}},dev_get_mounted_atoms:()=>t.values(),dev_get_atom_state:e=>r.get(e),dev_get_mounted:e=>n.get(e),dev_restore_atoms:t=>{for(let[e,r]of t)o(e)&&(v(e,r),w(e));let r=R();e.forEach(e=>e({type:"restore",flushed:r}))}}})()),n)},71024:(e,t,r)=>{e.exports=r(15613)},71117:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>P,i3:()=>j,UC:()=>M,bL:()=>A,Bk:()=>g});var n=r(55729),a=r(92309),i=r(24969),o=r(18909),s=r(6029),l=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:a=5,...i}=e;return(0,s.jsx)(o.sG.svg,{...i,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,s.jsx)("polygon",{points:"0,0 30,0 15,10"})})});l.displayName="Arrow";var u=r(82975),c=r(37975),d=r(22555),p=r(6706),f="Popper",[h,g]=(0,c.A)(f),[y,m]=h(f),v=e=>{let{__scopePopper:t,children:r}=e,[a,i]=n.useState(null);return(0,s.jsx)(y,{scope:t,anchor:a,onAnchorChange:i,children:r})};v.displayName=f;var b="PopperAnchor",_=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:a,...i}=e,l=m(b,r),c=n.useRef(null),d=(0,u.s)(t,c),p=n.useRef(null);return n.useEffect(()=>{let e=p.current;p.current=(null==a?void 0:a.current)||c.current,e!==p.current&&l.onAnchorChange(p.current)}),a?null:(0,s.jsx)(o.sG.div,{...i,ref:d})});_.displayName=b;var w="PopperContent",[C,S]=h(w),k=n.forwardRef((e,t)=>{var r,l,c,f,h,g,y,v;let{__scopePopper:b,side:_="bottom",sideOffset:S=0,align:k="center",alignOffset:E=0,arrowPadding:x=0,avoidCollisions:R=!0,collisionBoundary:A=[],collisionPadding:P=0,sticky:M="partial",hideWhenDetached:j=!1,updatePositionStrategy:L="optimized",onPlaced:D,...N}=e,F=m(w,b),[z,$]=n.useState(null),U=(0,u.s)(t,e=>$(e)),[B,q]=n.useState(null),H=function(e){let[t,r]=n.useState(void 0);return(0,p.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,a;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,a=t.blockSize}else n=e.offsetWidth,a=e.offsetHeight;r({width:n,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}
66(B),V=null!=(y=null==H?void 0:H.width)?y:0,W=null!=(v=null==H?void 0:H.height)?v:0,Z="number"==typeof P?P:{top:0,right:0,bottom:0,left:0,...P},K=Array.isArray(A)?A:[A],G=K.length>0,J={padding:Z,boundary:K.filter(O),altBoundary:G},{refs:Q,floatingStyles:Y,placement:X,isPositioned:ee,middlewareData:et}=(0,a.we)({strategy:"fixed",placement:_+("center"!==k?"-"+k:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.ll)(...t,{animationFrame:"always"===L})},elements:{reference:F.anchor},middleware:[(0,a.cY)({mainAxis:S+W,alignmentAxis:E}),R&&(0,a.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===M?(0,a.ER)():void 0,...J}),R&&(0,a.UU)({...J}),(0,a.Ej)({...J,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:a}=e,{width:i,height:o}=r.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(n,"px")),s.setProperty("--radix-popper-available-height","".concat(a,"px")),s.setProperty("--radix-popper-anchor-width","".concat(i,"px")),s.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}}),B&&(0,a.UE)({element:B,padding:x}),T({arrowWidth:V,arrowHeight:W}),j&&(0,a.jD)({strategy:"referenceHidden",...J})]}),[er,en]=I(X),ea=(0,d.c)(D);(0,p.N)(()=>{ee&&(null==ea||ea())},[ee,ea]);let ei=null==(r=et.arrow)?void 0:r.x,eo=null==(l=et.arrow)?void 0:l.y,es=(null==(c=et.arrow)?void 0:c.centerOffset)!==0,[el,eu]=n.useState();return(0,p.N)(()=>{z&&eu(window.getComputedStyle(z).zIndex)},[z]),(0,s.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:ee?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:el,"--radix-popper-transform-origin":[null==(f=et.transformOrigin)?void 0:f.x,null==(h=et.transformOrigin)?void 0:h.y].join(" "),...(null==(g=et.hide)?void 0:g.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,s.jsx)(C,{scope:b,placedSide:er,onArrowChange:q,arrowX:ei,arrowY:eo,shouldHideArrow:es,children:(0,s.jsx)(o.sG.div,{"data-side":er,"data-align":en,...N,ref:U,style:{...N.style,animation:ee?void 0:"none"}})})})});k.displayName=w;var E="PopperArrow",x={top:"bottom",right:"left",bottom:"top",left:"right"},R=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,a=S(E,r),i=x[a.placedSide];return(0,s.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,s.jsx)(l,{...n,ref:t,style:{...n.style,display:"block"}})})});function O(e){return null!==e}R.displayName=E;var T=e=>({name:"transformOrigin",options:e,fn(t){var r,n,a,i,o;let{placement:s,rects:l,middlewareData:u}=t,c=(null==(r=u.arrow)?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[f,h]=I(s),g={start:"0%",center:"50%",end:"100%"}[h],y=(null!=(i=null==(n=u.arrow)?void 0:n.x)?i:0)+d/2,m=(null!=(o=null==(a=u.arrow)?void 0:a.y)?o:0)+p/2,v="",b="";return"bottom"===f?(v=c?g:"".concat(y,"px"),b="".concat(-p,"px")):"top"===f?(v=c?g:"".concat(y,"px"),b="".concat(l.floating.height+p,"px")):"right"===f?(v="".concat(-p,"px"),b=c?g:"".concat(m,"px")):"left"===f&&(v="".concat(l.floating.width+p,"px"),b=c?g:"".concat(m,"px")),{data:{x:v,y:b}}}});function I(e){let[t,r="center"]=e.split("-");return[t,r]}var A=v,P=_,M=k,j=R},71831:(e,t,r)=>{"use strict";r.d(t,{Hw:()=>a,ZV:()=>n,ke:()=>i});let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en-US";return Number(e.toFixed(t)).toLocaleString(r,{minimumFractionDigits:t,maximumFractionDigits:t})},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.toLocaleString("en",{minimumFractionDigits:t,maximumFractionDigits:t})};function i(e){return(1e3*Math.round(e/1e3)).toLocaleString("en")}},72907:()=>{},73359:(e,t,r)=>{"use strict";r.d(t,{Jx:()=>l,ML:()=>i,Mq:()=>a,TO:()=>o,cf:()=>s});var n=r(80222);let a=[{id:"national",title:"national_explorer",shortTitle:"NE",centerpoint:"-95.712891,37.09024",geocoderPostfix:"usa",initialExtent:[-179.147,18.911,-66.932,71.357]},{id:"richmond",title:"Richmond, VA",shortTitle:"Richmond",centerpoint:"37.542981,-77.43043",geocoderPostfix:"richmond va",initialExtent:[-77.802689,37.324288,-77.112602,37.764576],landingPageBackgroun
66d:"".concat(n.UV,"/richmondva_sean_pavone_shutterstock_crop.jpg"),releaseDate:"Fall 2022",funder:"TAZO",funderLink:"https://www.tazo.com",supplementaryData:"ambient air temperature, parks and property ownership",PrimaryPartner:"City of Richmond",PrimaryPartnerLink:"https://www.rva.gov/",partnerList:"Virginia Community Voice | Richmond Tree Stewards | Seeds of Change Organization | Groundwork RVA | Science Museum of VA | Chesapeake Bay Foundation | JRPS Invasive Species Task Force | Reedy Creek Environmental | Virginia Department of Forestry | Capital Trees | Reforest Richmond | Sierra Club | Virginia Chapter | James River Association"},{id:"boston",title:"Boston, MA",shortTitle:"Boston",centerpoint:"42.361145,-71.057083",geocoderPostfix:"boston ma",initialExtent:[-71.669312,42.101279,-70.361252,42.606169],landingPageBackground:"".concat(n.UV,"/boston_hero_adobestock.jpg"),releaseDate:"Winter 2022-2023",funder:"Anonymous",supplementaryData:"flood risk, MA environmental justice populations and open space designations",PrimaryPartner:"Speak for the Trees",PrimaryPartnerLink:"https://treeboston.org/",partnerList:"City of Boston Parks and Recreation | Tree Eastie | Mass Audubon | Livable Streets Alliance | USDA Forest Service | Mattapan Food and Fitness Coalition | Greater Mattapan Neighborhood Council | Edgewater Neighborhood Association | Codman Square Neighborhood Development Corporation | Arborway Coalition | Emerald Necklace Conservancy | Hyde Park Presbyterian Church"},{id:"dc",title:"DC region",shortTitle:"DC",centerpoint:"-77.039566,38.892636",geocoderPostfix:"washington dc",initialExtent:[-78.160858,38.41809,-75.918274,39.364032],landingPageBackground:"".concat(n.UV,"/dc_hero_crop_adobestock.jpg"),releaseDate:"Spring 2023",funder:"National Fish and Wildlife Foundation",funderLink:"https://www.nfwf.org/",supplementaryData:"flood risk and parcel-level tree canopy loss and gain",PrimaryPartner:"Metropolitan Washington Council of Governments",PrimaryPartnerLink:"https://www.mwcog.org/",partnerList:"DOEE | Casey Trees | District Department of Transportation | Arlington County | Fairfax County | Anacostia Partnership | DC Urban Forestry Division | Montgomery Parks | Prince George's County | Maryland - National Capital Park and Planning | State of Maryland | USFS Mid-Atlantic Urban and Community Forestry | Defensores de la Cuenca | Nature Forward | EcoAction Arlington | VA Tech"},{id:"ruston",title:"Lincoln Parish, LA",shortTitle:"Lincoln Parish",centerpoint:"-92.637, 32.525",geocoderPostfix:"lincoln parish la",initialExtent:[-92.716879,32.495979,-92.572103,32.577506],landingPageBackground:"".concat(n.UV,"/ruston_hero.jpg"),releaseDate:"Spring 2023",funder:"Weyerhaeuser",funderLink:"https://www.weyerhaeuser.com/",supplementaryData:"flood risk and commercial land use",PrimaryPartner:"TIGUAR Urban Forestry Consulting",PrimaryPartnerLink:"https://www.linkedin.com/in/dr-darrell-k-street-45286125b",partnerList:"City of Ruston | Residents of Lincoln Parish | Hope and Healing Hands | LA Tech University | Grambling State University | Family & Everyday Life"},{id:"rhode_island",title:"Rhode Island",shortTitle:"Rhode Island",centerpoint:"-71.5, 41.7",geocoderPostfix:"rhode island",initialExtent:[-71.833217,41.34627,-71.10996,42.030374],landingPageBackground:"".concat(n.UV,"/ri_hero_crop_adobestock.jpeg"),releaseDate:"2020",funder:"Doris Duke Foundation",funderLink:"https://www.dorisduke.org/",supplementaryData:"ambient air temperature, RI Health Equity Zones and flood risk",PrimaryPartnerLink:"https://dem.ri.gov/",PrimaryPartner:"RI Department of Environmental Management",partnerList:"RI Tree Council | The Nature Conservancy RI | City of Providence Forestry Division | City of Newport Trees | Parks and Open Space | Newport Tree Conservancy | RI Infrastructure Bank | RI Department of Health | Groundwork RI | Providence Neighborhood Planting Program"},{id:"indianapolis",title:"Indianapolis & Marion County, IN",shortTitle:"Marion County",centerpoint:"-86.158068,39.768403",geocoderPostfix:"indianapolis in",initialExtent:[-87.193453,39.285229,-85.008547,40.180783],treesTilesetId:"tesa-app.indianapolis-trees-20240418",landingPageBackgroun
66d:"".concat(n.UV,"/Indy-Connie-Szabo-Schmucker_2000w_crop.jpg"),releaseDate:"October 18, 2023",funder:"Salesforce",funderLink:"https://www.salesforce.com/company/sustainability/",supplementaryData:"parks access and current land use",PrimaryPartnerLink:"https://www.kibi.org/",PrimaryPartner:"Keep Indianapolis Beautiful",partnerList:"Hoosier Environmental Council | Davey Tree Services | Sav-A-Tree | Community Alliance of the Far East Side (CAFE) | City of Indianapolis Dept of Public Works | Indianapolis Metropolitan Planning Organizations | Health by Design | Indiana DNR | Tree Centric Solutions | Davey Resource Group | Groundwork Indy | Indiana Association of Soil and Water Conservation Districts"},{id:"detroit",title:"Detroit, MI",shortTitle:"Detroit",centerpoint:"-83.045753,42.331429",geocoderPostfix:"detroit mi",initialExtent:[-85.166198,41.455383,-80.908996,43.177438],landingPageBackground:"".concat(n.UV,"/Detroit_hero_2000w_crop.jpg"),releaseDate:"December 2023",funder:"The Fred A. and Barbara M. Erb Family Foundation",funderLink:"https://www.erbff.org/",supplementaryData:"schools and air quality",PrimaryPartner:"Detroit Tree Equity Partnership",partnerList:"City of Detroit | Detroit Future City | The Greening of Detroit | Keep Growing Detroit | Michigan DNR | Rescue MI Nature Now! | Asthma & Allergy Foundation of America – Michigan Chapter | Detroit Zoological Society | Elliot Attisha, DO, FAAP | Southwest Detroit Environmental Vision"},{id:"maricopa",title:"Maricopa County, AZ",shortTitle:"Maricopa County",centerpoint:"-112.074037,33.448376",geocoderPostfix:"",initialExtent:[-114.204375,32.450301,-109.947172,34.394075],landingPageBackground:"".concat(n.UV,"/phoenix_hero_2000w.jpg"),releaseDate:"Fall 2023",funder:"Bank of America",funderLink:"https://about.bankofamerica.com/en/making-an-impact",supplementaryData:"mean radiant temperature and cooling centers",PrimaryPartnerLink:"https://unlimitedpotentialaz.org/",PrimaryPartner:"Unlimited Potential",partnerList:"Arizona Sustainability Alliance | CHISPA AZ | City of Phoenix | City of Tempe | Maricopa County Public Health | The Nature Conservancy | Tiger Mountain Foundation | Trees Matter"},{id:"austin",title:"Austin, TX",shortTitle:"Austin",centerpoint:"-97.743057,30.267153",geocoderPostfix:"",initialExtent:[-98.337425,30.022468,-97.120689,30.544259],landingPageBackground:"".concat(n.UV,"/austin_hero_2000w_crop.jpg"),releaseDate:"February 2024",funder:"Salesforce",funderLink:"https://www.salesforce.com/company/sustainability/",supplementaryData:"the tree planting investment index from the City of Austin Community Tree Priority Map and existing community gardens",PrimaryPartnerLink:"https://fruitfulcommons.org/",PrimaryPartner:"Fruitful Commons",partnerList:"City of Austin, Urban Forestry | City of Austin, Office of Resilience | City of Austin, Parks and Recreation | TreeFolks | University of Texas at Austin, RGK Center"},{id:"franklin",title:"Columbus & Franklin County, OH",shortTitle:"Franklin County, OH",centerpoint:"-82.998475,39.961799",geocoderPostfix:"",initialExtent:[-83.306092,39.828385,-82.690858,40.094954],treesTilesetId:"tesa-app.franklin-trees-20240423",landingPageBackground:"".concat(n.UV,"/columbus_hero_2000w_crop.jpg"),releaseDate:"January 2024",funder:"Google.org",funderLink:"https://www.google.org/",supplementaryData:"canopy loss and gain and existing land use",PrimaryPartnerLink:"https://www.greencbus.org/",PrimaryPartner:"Green Columbus",partnerList:"B.R.E.A.D. Columbus | Byrd Polar & Climate Research Center | Church of Christ (Linden) |Columbus & Franklin County Metro Parks | Columbus Citizens' Climate Lobby | Columbus Recreation & Parks Dept Forestry Division | Darby Creek Association | Franklin County Public Health | Franklin Park Conservatory | Franklin Soil & Water Conservation District | Franklinton Farms | Friends of Alum Creek and Tributaries | Friends of the Lower Olentangy Watershed | Grange Insurance Audubon Center | GreenSpot | Growing & Growth Collective | Human Service Chamber | IMPACT Community Action | Jewish Family Services | Keep Columbus Beautiful | Mid-Ohio Regional Planning Commission (MORPC) | Ohio Dept Natural Resources | Ohio Environmental C
66ouncil | The Columbus Foundation | Urban Tree Project | USDA Forest Service"},{id:"dallas",title:"Dallas, TX",shortTitle:"Dallas",centerpoint:"-96.796667,32.776665",geocoderPostfix:"",initialExtent:[-98.964159,31.504433,-94.042284,33.84611],treesTilesetId:"tesa-app.dallas-trees-20240424",landingPageBackground:"".concat(n.UV,"/dallashero_af_crop.jpg"),releaseDate:"December 7, 2023",funder:"Salesforce",funderLink:"https://www.salesforce.com/company/sustainability/",supplementaryData:"Social Vulnerability Index (SVI) & parks",PrimaryPartnerLink:"https://texastrees.org/",PrimaryPartner:"Texas Tree Foundation",partnerList:"Collective Activism | Dallas Youth Sports | Black Heart Association | Keep America Beautiful | Texas A&M Forest Service"},{id:"toronto",title:"Toronto, ON",shortTitle:"Toronto",centerpoint:"-79.3832,43.6532",geocoderPostfix:"",initialExtent:[-82.159425,42.701424,-77.278749,44.696786],landingPageBackground:"".concat(n.UV,"/Toronto_Hero_Crop2000w.jpg"),treesTilesetId:"tesa-app.toronto-trees-20240424",releaseDate:"February 2024",supplementaryData:"neighbourhoods & watersheds",PrimaryPartnerLink:"https://www.toronto.ca/services-payments/water-environment/trees/tree-planting/?accordion=tree-equity",PrimaryPartner:"City of Toronto",partnerList:"Local Enhancement and Appreciation of Forests (LEAF) | Black Outdoors | Cliffcrest Butterflyway | Corktown Residents and Business Association | East Scarborough Storefront - MakeWay Charitable Society | Grounded Solutions Services Ltd. | Guildwood Village Community Association | Institute of Forestry and Conservation, Daniels Faculty, University of Toronto | Long Branch Neighbourhood Association | Toronto Community Housing (TCHC) | Toronto Metropolitan University | Toronto Public Health | Trees for Life | Urban Forest Innovations Inc.",locale:"en-CA",pdfLinks:{Methods:"".concat(n.UV,"/Toronto_TreeEquityScore_Methodology_AmericanForests_04-2024.pdf"),"Data Glossary":"".concat(n.UV,"/Toronto_TreeEquityScore_DataGlossary_AmericanForests_04-2024.pdf")}},{id:"washington",title:"Washington State",shortTitle:"Washington State",centerpoint:"-117.429199,47.751076",geocoderPostfix:"",initialExtent:[-124.775391,45.546883,-116.916077,49.002452],landingPageBackground:"".concat(n.UV,"/washington_hero_2000.jpg"),photoCredit:"David Moskowitz/Washington State Department of Natural Resources",treesTilesetId:"",releaseDate:"February 2025",funder:"WA DNR",supplementaryData:"public lands & watersheds",PrimaryPartnerLink:"https://www.dnr.wa.gov/urbanforestry",PrimaryPartner:"WA DNR",pdfLinks:{"Data Glossary":"".concat(n.UV,"/TESA_Washington_Data_FAQsGlossary_Jul2025.pdf")},resourcesLinks:{"Report Invasives Sightings":"https://invasivespecies.wa.gov/report-a-sighting/","Identify Ash Borers":"https://invasivespecies.wa.gov/priorityspecies/emerald-ash-borer/","Identify Longhorned Beetles":"https://invasivespecies.wa.gov/priorityspecies/citrus-asian-and-red-necked-longhorned-beetles/","Identify Spongy Moths":"https://invasivespecies.wa.gov/priorityspecies/lymantriids/","Identify Oak Borers":"https://treehealth.wsu.edu/mob/","WA Urban Forest Pest Readiness Playbook":"https://invasivespecies.wa.gov/wp-content/uploads/2020/01/UrbanForestPestReadinessPlaybook.pdf","Resilience and Forest Health - Vibrant Cities Lab":"https://www.vibrantcitieslab.com/urban-forestry-roadmap/resilience-and-forest-health/"}},{id:"houston",title:"Houston, TX",shortTitle:"Houston",centerpoint:"-95.3698,29.7604",geocoderPostfix:"",initialExtent:[-96.833217,29.504433,-93.942284,30.84611],landingPageBackground:"".concat(n.UV,"/houston_hero_2000w.jpg"),releaseDate:"December 2024",funder:"Google.org",funderLink:"https://www.google.org/",PrimaryPartner:"Trees for Houston",PrimaryPartnerLink:"https://www.treesforhouston.org/",partnerList:"Texas A&M Forest Service | Port of Houston | Environment Defense Fund | Houston Independent School District | City of Houston | Environmental Community Advocates of Galena Park",supplementaryData:"flooding, bus stops, and school districts"}],i=["washington"],o={austin:"tree_planting_service_area"},s=.3,l={austin:[{id:"base_layer",title:"Austin Energy Service Area",opacity:.3,explanation:"This layer depicts the extent of Austin Energy's electric service boundary, which may be used—among other criteria—to help determine eligibility for free tree distribution available to Austin Energy customers and Austin residents.",dataSource:"Austin Energy Ele
66ctric Utility Service Area, 2025, City of Austin."}]}},75364:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useRouter",{enumerable:!0,get:function(){return i}});let n=r(55729),a=r(70679);function i(){return(0,n.useContext)(a.RouterContext)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76307:(e,t,r)=>{"use strict";function n(e,t){let{checkForDefaultPrevented:r=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}r.d(t,{mK:()=>n}),window.document&&window.document.createElement},76656:(e,t,r)=>{"use strict";r.r(t),r.d(t,{emptyQueryFn:()=>v,getInfiniteQueryKey:()=>E,getQueryCacheFunctions:()=>m,getQueryClient:()=>y,getQueryData:()=>O,getQueryKey:()=>k,getQueryKeyFromUrlAndParams:()=>S,initializeQueryClient:()=>g,invalidateQuery:()=>x,requestIdleCallback:()=>h,sanitizeMutation:()=>C,sanitizeQuery:()=>w,setQueryData:()=>R,validateQueryFn:()=>b});var n=r(89251),a=r(94087),i=r(98764),o=r(29143),s=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let h="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},g=()=>{let e=!0;return o.env.CLI_COMMAND_CONSOLE||o.env.CLI_COMMAND_DB||(e=!!globalThis.__BLITZ_SUSPENSE_ENABLED),new n.E({defaultOptions:{queries:l(((e,t)=>{for(var r in t||(t={}))d.call(t,r)&&f(e,r,t[r]);if(c)for(var r of c(t))p.call(t,r)&&f(e,r,t[r]);return e})({},i.c&&{cacheTime:0}),u({suspense:e,retry:(e,t)=>"Network request failed"===t.message&&!!(e<=3)}))}})},y=()=>globalThis.queryClient,m=(e,t)=>({setQueryData:(r,n={refetch:!0})=>R(e,t,r,n)}),v=(()=>{let e=()=>new Promise(()=>{});return e._isRpcClient=!0,e})(),b=e=>{if(i.a&&!e._isRpcClient&&(0,i.i)())throw Error('Either the file path to your resolver is incorrect (must be in a "queries" or "mutations" folder that isn\'t nested inside "pages" or "api") or you are trying to use Blitz\'s useQuery to fetch from third-party APIs (to do that, import useQuery directly from "@tanstack/react-query").')},_=e=>t=>{if(i.c)return t;
66if(b(t),t._resolverType!==e&&(0,i.i)())throw Error(`"${"mutation"===e?"useMutation":"useQuery"}" was expected to be called with a ${e} but was called with a "${t._resolverType}"`);return t},w=_("query"),C=_("mutation"),S=(e,...t)=>{let r=[e];if(1===t.length){let e=t[0];r.push((0,a.lK)("function"==typeof e?e():e))}return r};function k(e,...t){if(void 0===e)throw Error("getQueryKey is missing the first argument - it must be a resolver function");return S(w(e)._routePath,...t)}function E(e,t){if(void 0===e)throw Error("getInfiniteQueryKey is missing the first argument - it must be a resolver function");return[...S(w(e)._routePath,t),"infinite"]}let x=(e,...t)=>{let r=void 0===e?void 0:k(e,...t);return y().invalidateQueries(r)};function R(e,t,r,n={refetch:!0}){if(void 0===e)throw Error("setQueryData is missing the first argument - it must be a resolver function");let a=k(e,t);return new Promise(o=>{let s;y().setQueryData(a,r),n.refetch&&(s=x(e,t)),i.a?h(()=>{o(s)}):o(s)})}function O(e,t){if(void 0===e)throw Error("getQueryData is missing the first argument - it must be a resolver function");let r=k(e,t);return y().getQueryData(r)}},78761:(e,t,r)=>{"use strict";let n;function a(){return"undefined"!=typeof window}function i(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!a()&&(e instanceof Node||e instanceof o(e).Node)}function u(e){return!!a()&&(e instanceof Element||e instanceof o(e).Element)}function c(e){return!!a()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function d(e){return!!a()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function p(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=C(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==a&&"contents"!==a}function f(e){return/^(table|td|th)$/.test(i(e))}function h(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}r.d(t,{$4:()=>k,CP:()=>S,L9:()=>C,Lv:()=>f,Tc:()=>_,Tf:()=>h,ZU:()=>p,_m:()=>E,ep:()=>s,eu:()=>w,gJ:()=>b,mq:()=>i,sQ:()=>v,sb:()=>c,v9:()=>function e(t,r,n){var a;void 0===r&&(r=[]),void 0===n&&(n=!0);let i=function e(t){let r=k(t);return w(r)?t.ownerDocument?t.ownerDocument.body:t.body:c(r)&&p(r)?r:e(r)}(t),s=i===(null==(a=t.ownerDocument)?void 0:a.body),l=o(i);if(!s)return r.concat(i,e(i,[],n));{let t=E(l);return r.concat(l,l.visualViewport||[],p(i)?i:[],t&&n?e(t):[])}},vq:()=>u,zk:()=>o});let g=/transform|translate|scale|rotate|perspective|filter/,y=/paint|layout|strict|content/,m=e=>!!e&&"none"!==e;function v(e){let t=u(e)?C(e):e;return m(t.transform)||m(t.translate)||m(t.scale)||m(t.rotate)||m(t.perspective)||!_()&&(m(t.backdropFilter)||m(t.filter))||g.test(t.willChange||"")||y.test(t.contain||"")}function b(e){let t=k(e);for(;c(t)&&!w(t);){if(v(t))return t;if(h(t))break;t=k(t)}return null}function _(){return null==n&&(n="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n}function w(e){return/^(html|body|#document)$/.test(i(e))}function C(e){return o(e).getComputedStyle(e)}function S(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function k(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||d(e)&&e.host||s(e);return d(t)?t.host:t}function E(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},80222:(e,t,r)=>{"use strict";r.d(t,{A_:()=>h,BC:()=>eM,BX:()=>eE,C1:()=>el,D8:()=>ek,Di:()=>eR,Dr:()=>ea,EN:()=>s,Fg:()=>eb,Fz:()=>eT,GP:()=>O,HU:()=>ee,Hd:()=>n,JY:()=>a,K_:()=>g,L:()=>u,L3:()=>es,LB:()=>i,M9:()=>L,NH:()=>G,OE:()=>er,Q$:()=>I,QE:()=>eu,QY:()=>ec,Qr:()=>ej,R5:()=>j,Rd:()=>l,Rl:()=>R,SY:()=>y,Si:()=>J,Sq:()=>eU,Tu:()=>b,U:()=>d,UG:()=>o,UV:()=>eF,UZ:()=>eO,Ub:()=>ev,Uo:()=>eA,WV:()=>eg,Wf:()=>eP,X7:()=>ep,XY:()=>et,X_:()=>eL,YF:()=>eS,YK:()=>q,Z3:()=>eC,Z_:()=>f,Zy:()=>en,af:()=>S,au:()=>eD,az:()=>p,bN:()=>e$,cp:()=>$,d7:()=>K,eD:()=>N,ek:()=>X,gO:()=>eh,h$:()=>_,h1:()=>z,hz:()=>w,jF:()=>D,jI:()=>em,kK:()=>c,l7:()=>m,lV:()=>Y,mQ:()=>E,ms:()=>C,nK:()=>eo,oB:()=>Q,os:()=>eI,pV:()=>ed,pi:()=>W,ps:()=>x,qU:()=>ew,qh:()=>Z,r:()=>B,ri:()=>e_,rn:()=>T,sM:()=>ei,tc:()=>V,u9:()=>ef,ui:()=>U,uu:()=>P,vY:()=>ex,wF:()=>ey,wN:()=>k,wk:()=>eN,ws:()=>ez,x9:()=>M,xR:()=>A,xU:()=>F,yD:()=>H,z9:()=>v});
66let n=0,a=8,i=10,o=15,s=[-137.533808,19.901482,-59.970331,51.324032],l=17,u=17,c="Aggregated Municipality",d="Municipality",p="Block Group",f="Parcel",h=[{name:c,zoom:1},{name:d,zoom:9},{name:p,zoom:11},{name:f,zoom:16}];var g=function(e){return e.PARCEL="parcels",e.MUNICIPALITY="municipalities",e.TREE="trees",e.RIGHT_OF_WAY="right_of_way",e.BLOCKGROUP="blockgroups",e}({});let y="parcel",m="blockgroup",v="right_of_way",b="municipality",_="aggregated_municipality",w="parcel-outlines",C="blockgroup-outlines",S="right_of_way-outlines",k="municipality-outlines",E="parcel-hover-outlines",x="right_of_way-hover-outlines",R="blockgroup-hover-outlines",O="tree_equity_score",T=.75,I="#535353",A=2.3,P="#686868",M="#4E4E4E",j=.8,L=2.8,D=.75,N="#005351",F=4,z="#B4B4B4",$="#4E4E4E",U=.85,B=2,q=.75,H="#D0D0D0",V="#4E4E4E",W=.55,Z=2,K=.75,G="#005F5D",J=2.5,Q="#E94D4D",Y=2.5,X="#005F5D",ee=2,et="#E94D4D",er=4,en="tree_equity_score",ea="potential_tree_canopy",ei="incorporated_place_mean_tree_equity_score",eo="#D0D0D0",es={treesLarge:0,treesMedium:0,treesSmall:0},el={treesLarge:{Type:"Large",Size:"Large (>50ft)",AreaSF:1e3,Abbr:"L"},treesMedium:{Type:"Medium",Size:"Medium (30-50ft)",AreaSF:600,Abbr:"M"},treesSmall:{Type:"Small",Size:"Small (<30ft)",AreaSF:300,Abbr:"S"}},eu=Object.keys(el),ec=.0072731,ed=5,ep=["total_ecosystem_service_value","co2","no2","so2","pm10","pm25","ozone","runoff_avoided","rain_int"],ef={target:"target",proposed:"proposed",existing:"existing"},eh={[ef.proposed]:"Site impact benefits are only available for scenarios that have parcel and right-of-way plantings. To plant at the parcel or right-of-way level, return to your scenario and zoom to the parcel level of the map. ",[ef.existing]:"Existing site canopy benefits are only available for parcels and rights-of-way that have been added to your scenario. This tally of existing site canopy can help you quantify the benefits of protecting and maintaining existing trees. To add a parcel or right-of-way to your scenario, return to your scenario and zoom to the parcel level of the map."},eg=new Map([["tree_equity_score","Tree Equity Score"],["tree_canopy","Tree canopy cover"],["tree_canopy_gap","Tree canopy gap"],["impervious_surface","Impervious surface"],["poverty_percent","People in poverty"],["poc_percent","People of color"],["dependent_ratio","Children and seniors"],["unemployment_rate","Unemployment"],["health_normalized","Health burden index"],["temperature","Heat disparity"],["afternoon_air_average_temperature","Afternoon air temperature"],["evening_air_average_temperature","Evening air temperature"],["name_ej_criteria","2020 Mass EJ Populations"],["number_ej_criteria","Number of Mass EJ Criteria"],["neighborhood","Neighborhood"],["potential_tree_canopy","Potential tree canopy"],["parking","Parking Lot"],["sidewalk","Sidewalk"],["school","School"],["public","Public Ownership"],["park","Park"],["industrial","Industrial"],["flood","Flood"],["open_space","Open Space"],["rented","Rented"],["area_sqkm","Area (acres)"],["hez","Health Equity Zone"],["watershed","Watershed"],["subwatershed","Subwatershed"],["tree_canopy_gain","Tree canopy gain (sqm)"],["tree_canopy_loss","Tree canopy loss (sqm)"],["health_risk","Climate Related Health Risk"],["worship","Place of Worship"],["current_commercial_land_use","Ruston Commercial Land Use"],["future_commercial_land_use","Ruston Future Commercial Land Use"],["holc_grade","Redlining"],["linguistic_isolation","Linguistic isolation"],["equity_index","Priority index"],["land_use","Land use"],["air_pollution","Air pollution"],["parks_access","Parks access"],["qualified_census_tract","Qualified census tract"],["light_rail","Light rail"],["cooling_center","Cooling center"],["bus_stop","Bus stop"],["council_district","Council district"],["social_vulnerability_index","Social vulnerability index"],["neighborhood_type","Neighborhood type"],["future_land_use","Future land use"],["ej_disadvantaged","EPA IRA Disadvantaged Community"],["canopy_change_percent","Canopy change"],["public_ownership_type","Public ownership type"],["asthma_percent","Asthma"],["population_density","Population density"],["brownfield","Brownfield"],["neighborhood_id","Neighbourhood ID"],["neighborhood_score","Neighbourhood score"],["neighborhood_score_category","Neighbourhood score"],["neighborhood_designation","Neighbourhood designation"],["ward","Ward"],["library","Library"],["community_tree_priority","Community tree priority"],["road_emissions","Road emissions"],["municipality_name","Municipality"],["low_food_access","Low food access"],["affordable_housing","Affordable housing"],["community_garden","Community garden"],["ttf_tree_equity_planting","TTF Tree Planting Priority"],["ej_screen","EPA EJScreen"],["school_district","School district"],["total_shade12","Noon"],["total_shade15","3 p.m."],["total_shade18","6 p.m."]]),ey=[_,b,m,v,y],em="/",ev="/es",eb="/methodology",e_="/methodology?tab=data-glossary",ew="/methodology?tab=faqs",eC="/methodology?tab=data-download",eS="/contact",ek="/about",eE="/stories",ex="/resources",eR="/resources?tab=demo",eO="/resources?tab=starter-guide",eT="/resources?tab=resources",eI="https://www.vibrantcitieslab.com/",eA="https://www.1t.org/",eP="https://www.americanforests.org/take-action/",eM="https://www.americanforests.org/our-approach/partnerships/",ej="https://www.americanforests.org/tools-research-reports-and-guides/career-resources/",eL="https://www.americanforests.org/",eD="https://uk.treeequityscore.org/",eN={AK:"Alaska",AL:"Alabama",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District of Columbia",FL:"Florida",GA:"Georgia",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VA:"Virginia",VI:"U.S. Virgin Islands",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"},eF="https://d17m5nraxo9zm6.cloudfront.net",ez=new Map([[1,"Setting a Tree Equity Score target approximates the minimum number of medium-sized trees (56sq-m) needed to shift the starting score to your target score. Total estimated census tract benefits are tabulated based on the total targeted trees for all census tracts in your scenario. If you customized the number of trees when setting a target for any census tract, the targeted trees total and benefits estimation will reflect your custom inputs."],[2,"Total annual economic benefit (monetary value) for all of the ecosystem services, including all carbon sequestration, air pollutant removal and stormwater absorption provided by trees."],[4,"The atmospheric carbon dioxide captured and stored by trees, measured in annual tonnes. Conversion sourced from 2018 Toronto Canopy Study."],[5,"Annual offset of carbon dioxide emissions by gasoline-powered passenger vehicles (2-axle, 4-tire vehicles), such as passenger cars, vans, pickup trucks, and sport/utility vehicles. Conversion sourced from Natural Resources Canada Greenhouse Gas Equivalencie
66s Calculator."],[6,"Annual offset of carbon dioxide emissions by the average energy use of a home in Canada. Conversion sourced from Natural Resources Canada Greenhouse Gas Equivalencies Calculator."],[7,"Annual litres of reduced stormwater surface runoff (and associated pollutants) that would be absorbed by trees and no longer require management. Conversion sourced from 2018 Toronto Canopy Study."],[8,"Annual litres of reduced stormwater surface runoff (and associated pollutants) converted into standard rain barrels. Conversion sourced from 2018 Toronto Canopy Study."],[10,"Annual tonnes/kilograms of absorption of particulate matter less than 2.5 microns in size by trees. PM2.5 is a smaller size class of airborne microscopic particles that can be inhaled and deposit deeper in the lungs and even enter the bloodstream, potentially causing serious health problems. Conversion sourced from the 2018 Toronto Canopy Study."],[11,"Annual offset of particulate matter less than 2.5 microns in size produced by automobiles. Conversion sourced from Canada's Air Pollutant Emissions Inventory 2021"],[12,"Annual tonnes/kilograms of nitrogen dioxide absorption by trees. Nitrogen dioxide is an air pollutant, the most prominent source coming from the burning of fossil fuels. Breathing air with a high concentration of NO2 can irritate airways in the human respiratory system. Exposures over short periods can aggravate respiratory diseases, particularly asthma, leading to respiratory symptoms (such as coughing, wheezing or difficulty breathing), hospital admissions and visits to accident & emergency. Longer exposures to elevated concentrations of NO2 may contribute to the development of asthma and potentially increase susceptibility to respiratory infections. People with asthma, as well as children and the elderly are generally at greater risk for the health effects of NO2. Conversion sourced from the 2018 Toronto Canopy Study."],[13,"Annual tonnes/kilograms of sulphur dioxide absorption by trees. Sulphur dioxide is a toxic gas released by burning sulphur-containing fuels such as coal, oil, or diesel and as a byproduct of mining. Short-term exposures to SO2 can harm the human respiratory system and make breathing difficult. Continued exposure increases respiratory symptoms and affects lung function. High concentrations of SO2 in the air generally also convert to other sulphur oxides that react with other compounds to form small particles that may penetrate deeply into the lungs and in sufficient quantity can contribute to health problems. People with asthma, particularly children, are sensitive to these effects of SO2. Conversion sourced from the 2018 Toronto Canopy Study."],[15,"Annual tonnes/kilograms of ozone absorption by trees. Ozone is a greenhouse gas and air pollutant in low levels caused by combustion of fossil fuels. Ozone in the air we breathe can harm our health, especially on hot sunny days when ozone can reach unhealthy levels. Even relatively low levels of ozone can cause health effects. Depending on the level of exposure, ozone can cause coughing and sore or scratchy throat, make it more difficult to breathe deeply and vigorously and cause pain when taking a deep breath, inflame and damage the airways, make the lungs more susceptible to infection, aggravate lung diseases such as asthma, emphysema, and chronic bronchitis, and increase the frequency of asthma attacks. Conversion sourced from the 2018 Toronto Tree Canopy Study."]]),e$="Tree Equity Score National Explorer",eU="https://drcfeu34yefjd.cloudfront.net"},80794:(e,t,r)=>{"use strict";r.d(t,{$f:()=>S,A2:()=>E,B7:()=>x,GW:()=>B,Gv:()=>v,LG:()=>c,NM:()=>R,OH:()=>j,PO:()=>s,QH:()=>D,Qd:()=>_,Rc:()=>U,UQ:()=>g,Up:()=>T,W0:()=>P,X$:()=>A,Yv:()=>y,cJ:()=>I,cl:()=>l,gJ:()=>p,gx:()=>m,h1:()=>M,hI:()=>b,iR:()=>$,jw:()=>i,k8:()=>o,lQ:()=>F,mw:()=>L,o8:()=>k,p6:()=>u,qQ:()=>C,rL:()=>N,sn:()=>q,w5:()=>a,yG:()=>w,zH:()=>O,zM:()=>h});var n=r(12549);function a(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}
66function i(e,t="|"){return e.map(e=>x(e)).join(t)}function o(e,t){return"bigint"==typeof t?t.toString():t}function s(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function l(e){return null==e}function u(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function c(e,t){let r=e/t,n=Math.round(r),a=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-n)<a?0:r-n}let d=Symbol("evaluating");function p(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==d)return void 0===n&&(n=d,n=r()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function f(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function h(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function g(e){return JSON.stringify(e)}function y(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let m="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function v(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let b=s(()=>{if(n.cr.jitless||"undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function _(e){if(!1===v(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let r=t.prototype;return!1!==v(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function w(e){return _(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let C=new Set(["string","number","symbol"]);function S(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function k(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function E(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function x(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function R(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let O={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function T(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let a=h(e._zod.def,{get shape(){let e={};for(let n in t){if(!(n in r.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&(e[n]=r.shape[n])}return f(this,"shape",e),e},checks:[]});return k(e,a)}function I(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let a=h(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return f(this,"shape",n),n},checks:[]});return k(e,a)}function A(e,t){if(!_(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let r=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(r,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=h(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return f(this,"shape",r),r}});return k(e,n)}function P(e,t){if(!_(t))throw Error("Invalid input to safeExtend: expected a plain object");let r=h(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return f(this,"shape",r),r}});return k(e,r)}function M(e,t){if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=h(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return f(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return k(e,r)}function j(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let a=h(t._zod.def,{get shape(){let n=t._zod.def.shape,a={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(a[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)a[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return f(this,"shape",a),a},checks:[]});return k(t,a)}function L(e,t,r){let n=h(t._zod.def,{get shape(){let n=t._zod.def.shape,a={...n};if(r)for(let t in r){if(!(t in a))throw Error(`Unrecognized key: "${t}"`);r[t]&&(a[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)a[t]=new e({type:"nonoptional",innerType:n[t]});return f(this,"shape",a),a}});
66return k(t,n)}function D(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function N(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function F(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function z(e){return"string"==typeof e?e:e?.message}function $(e,t,r){let n=e.message?e.message:z(e.inst?._zod.def?.error?.(e))??z(t?.error?.(e))??z(r.customError?.(e))??z(r.localeError?.(e))??"Invalid input",{inst:a,continue:i,input:o,...s}=e;return s.path??(s.path=[]),s.message=n,t?.reportInput&&(s.input=o),s}function U(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function B(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";if(e&&Object.getPrototypeOf(e)!==Object.prototype&&"constructor"in e&&e.constructor)return e.constructor.name}return t}function q(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}},81278:(e,t,r)=>{e.exports=r(43727)},81918:(e,t,r)=>{"use strict";r.d(t,{O:()=>c,A:()=>d});var n=r(58083),a=r(59478),i=r(80222),o=r(95776),s=r(55729),l=r(67549),u=r(43092);function c(e,t){var r,n,o;let{attr:s,layer:l,facet_type:u,data:c,explanation:d,source:p}=e;return{title:"neighborhood"==s&&t&&"toronto"==t.id?"Neighbourhood":function(e,t){if(t.has(e))return t.get(e)}(s,i.WV)||"",field:(r=s,"blockgroup"==l?{type:i.az,field:r}:{type:"Area",field:r}),data:function(e,t){if("range"==t.type){var r;let n,i=t.range[1]-t.range[0]<=1?.01:1,o=(null==t?void 0:t.step)||i;return n=1===o?[Math.floor(t.range[0]),Math.ceil(t.range[1])]:[Math.floor(100*t.range[0])/100,Math.ceil(100*t.range[1])/100],{type:t.type,value:n,gradient:t.gradient,step:o,formatter:(r=e,a.LN.includes(r)||"health_normalized"==r?a.IA:a.F5.includes(r)?a._w:a.Uu.includes(r)||"temperature"==r?a.V$:a.Jh)}}return"enum"==t.type?{type:t.type,values:t.values}:{type:t.type}}(s,c),group:(n=s,o=u,"tree_equity_score"==n?a.Uh:a.E6.includes(n)?a.zR:a._q.includes(n)?a.$I:"filter"==o?a.jD:a.r9),formatter:function(e,t){if(a.Uu.includes(e))return a.Fb;if("temperature"==e)return e=>(0,a.Uz)(e,t&&t.locale);if(a.LN.includes(e))return a.X1;if(a.F5.includes(e))return a.Xo;if("health_normalized"==e)return a.MG;else if("tree_equity_score"==e)return a.RI;else return a.D_}(s,t),style:function(e,t){if("tree_equity_score"==e)return a.Vm;if(a.Uu.includes(e))return a.Ix;if(e.includes("shade"))return a.vC;if("air_pollution"==e)return a.YZ;if("temperature"==e)return a.vY;else if("tree_canopy"==e)return a.qn;else if("tree_canopy_gap"==e)return a.Cy;else if("potential_tree_canopy"==e)return a.I6;else if("name_ej_criteria"==e)return a.rm;else if("health_risk"==e)return a.uF;else if("holc_grade"==e)return a.Eq;else if("community_tree_priority"===e)return a.$s;else if("canopy_change_percent"==e)return a.FB;else if("impervious_surface"==e)if("blockgroup"==t)return a.UX;else return a.Ff;else if("neighborhood_score_category"==e)return a.wg;else if("ttf_tree_equity_planting"==e)return a.vA;else return a.xH}(s,l),priorityIndex:function(e){if(a._q.includes(e))return a._q.indexOf(e)}(s),explanation:d,source:p,hideFromFilters:"layer_not_filterable"==u}}function d(e){let t=(0,l.Xr)(o.wv),r=(0,l.Xr)(o.V8),[i,d]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{var i;if(!e)return;let s=n.filter(t=>t.location===e.id).map(t=>c(t,e));s.push((i=e.locale)&&"en-CA"===i?{title:"Area (sq-m)",field:{type:"Area",field:"area_sqkm"},data:{type:"rangeChoice",value:[{label:"Any",range:[0,1e9]},{label:"≦5,000",range:[0,(0,u.$R)(5e3)]},{label:"5,000-20,000",range:[(0,u.$R)(5e3),(0,u.$R)(2e4)]},{label:">20,000",range:[(0,u.$R)(2e4),1e9]}]},group:a.jD,formatter:a.RI,explanation:"Total land area of the parcel."}:{title:"Area (acres)",field:{type:"Area",field:"area_sqkm"},data:{type:"rangeChoice",value:[{label:"Any",range:[0,1e9]},{label:"≦1",range:[0,(0,u.Gq)(1)]},{label:"1-5",range:[(0,u.Gq)(1),(0,u.Gq)(5)]},{label:">5",range:[(0,u.Gq)(5),1e9]}]},group:a.jD,formatter:a.RI,explanation:"Total land area of the parcel."}
66),s.push({title:"Tree Equity Score",field:{type:"Municipality",field:"incorporated_place_mean_tree_equity_score"},data:{type:"range",value:[0,100],gradient:[0,70,100,100],step:1},style:a.Vm,formatter:a.RI,group:a.Uh,hideFromFilters:!0});let l=(e=>{var t,r;let n=e.filter(e=>{var t;return null==(t=e.field)?void 0:t.field.includes("shade")}),a=n.filter(e=>{var t;return(null==(t=e.field)?void 0:t.type)==="Area"}),i=n.filter(e=>{var t;return(null==(t=e.field)?void 0:t.type)==="Block Group"}),o=e.filter(e=>{var t;return!(null==(t=e.field)?void 0:t.field.includes("shade"))});return[...o,{...a[0],field:{...null==(t=a[0])?void 0:t.field,field:null},title:"merged_shade_facet",sublayers:a},{...i[0],field:{...null==(r=i[0])?void 0:r.field,field:null},title:"merged_shade_facet",sublayers:i}]})(s);t(l),r((0,o.gA)(l)),d(!0)},[e]),i}},82203:(e,t,r)=>{e.exports=r(18074)},82837:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return a}});let n=""+r(52272).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function a(){let e=Object.defineProperty(Error(n),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});throw e.digest=n,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82975:(e,t,r)=>{"use strict";r.d(t,{s:()=>o,t:()=>i});var n=r(55729);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>{let r=!1,n=t.map(t=>{let n=a(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<n.length;e++){let r=n[e];"function"==typeof r?r():a(t[e],null)}}}}function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.useCallback(i(...t),t)}},83948:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterPropsToForward=t.tags=void 0;let n=r(54839);t.tags=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];let a=Symbol("Forward all props");t.filterPropsToForward=(e,r)=>{let i=(e=>"string"==typeof e&&t.tags.includes(e))(e)?n.default:a;return i===a?Object.assign({},r):Object.fromEntries(Object.entries(r).filter(([e])=>i(e)))}},84419:(e,t,r)=>{"use strict";function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function a(e,t){var r=n(e,t,"get");return r.get?r.get.call(e):r.value}function i(e,t,r){var a=n(e,t,"set");if(a.set)a.set.call(e,r);else{if(!a.writable)throw TypeError("attempted to set read only private field");a.value=r}return r}r.d(t,{N:()=>p});var o,s=r(55729),l=r(37975),u=r(82975),c=r(63654),d=r(6029);function p(e){let t=e+"CollectionProvider",[r,n]=(0,l.A)(t),[a,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:r}=e,n=s.useRef(null),i=s.useRef(new Map).current;return(0,d.jsx)(a,{scope:t,itemMap:i,collectionRef:n,children:r})};o.displayName=t;let p=e+"CollectionSlot",f=(0,c.TL)(p),h=s.forwardRef((e,t)=>
66{let{scope:r,children:n}=e,a=i(p,r),o=(0,u.s)(t,a.collectionRef);return(0,d.jsx)(f,{ref:o,children:n})});h.displayName=p;let g=e+"CollectionItemSlot",y="data-radix-collection-item",m=(0,c.TL)(g),v=s.forwardRef((e,t)=>{let{scope:r,children:n,...a}=e,o=s.useRef(null),l=(0,u.s)(t,o),c=i(g,r);return s.useEffect(()=>(c.itemMap.set(o,{ref:o,...a}),()=>void c.itemMap.delete(o))),(0,d.jsx)(m,{...{[y]:""},ref:l,children:n})});return v.displayName=g,[{Provider:o,Slot:h,ItemSlot:v},function(t){let r=i(e+"CollectionConsumer",t);return s.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(y,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var f=new WeakMap;function h(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=g(t),a=n>=0?n:r+n;return a<0||a>=r?-1:a}(e,t);return -1===r?void 0:e[r]}function g(e){return e!=e||0===e?0:Math.trunc(e)}o=new WeakMap,class e extends Map{set(e,t){return f.get(this)&&(this.has(e)?a(this,o)[a(this,o).indexOf(e)]=e:a(this,o).push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),s=a(this,o).length,l=g(e),u=l>=0?l:s+l,c=u<0||u>=s?-1:u;if(c===this.size||i&&c===this.size-1||-1===c)return this.set(t,r),this;let d=this.size+ +!i;l<0&&u++;let p=[...a(this,o)],f=!1;for(let e=u;e<d;e++)if(u===e){let a=p[e];p[e]===t&&(a=p[e+1]),i&&this.delete(t),n=this.get(a),this.set(t,r)}else{f||p[e-1]!==t||(f=!0);let r=p[f?e:e-1],a=n;n=this.get(r),this.delete(r),this.set(r,a)}return this}with(t,r,n){let a=new e(this);return a.insert(t,r,n),a}before(e){let t=a(this,o).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=a(this,o).indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=a(this,o).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=a(this,o).indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return i(this,o,[]),super.clear()}delete(e){let t=super.delete(e);return t&&a(this,o).splice(a(this,o).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=h(a(this,o),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=h(a(this,o),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return a(this,o).indexOf(e)}keyAt(e){return h(a(this,o),e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],a=0;for(let e of this)Reflect.apply(t,r,[e,a,this])&&n.push(e),a++;return new e(n)}map(t,r){let n=[],a=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,a,this])]),a++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,a]=t,i=0,o=null!=a?a:this.at(0);for(let e of this)o=0===i&&1===t.length?e:Reflect.apply(n,this,[o,e,i,this]),i++;return o}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,a]=t,i=null!=a?a:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);i=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[i,r,e,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let a=[...this.entries()];return a.splice(...r),new e(a)}slice(t,r){let n=new e,a=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(a=r-1);for(let e=t;e<=a;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}constructor(e){super(e),function(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}(this,o,{writable:!0,value:void 0}),i(this,o,[...super.keys()]),f.set(this,!0)}}},84543:(e,t,r)=>{e.exports=function(e){function t(e){let r,a,i,o=null;function s(...e){if(!s.enabled)return;let n=Number(new Date);s.diff=n-(r||n),s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";a++;let i=t.formatters[n];if("function"==typeof i){let t=e[a];r=i.call(s,t),e.splice(a,1),a--}return r}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(a!==t.namespaces&&(a=t.namespaces,i=t.enabled(e)),i),set
66:e=>{o=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(a),...t.skips.map(a).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(r=0;r<a;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.substr(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let r,n;if("*"===e[e.length-1])return!0;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(69002),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},85433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},forbidden:function(){return l.forbidden},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},unauthorized:function(){return l.unauthorized},unstable_isUnrecognizedActionError:function(){return c.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return l.unstable_rethrow},useParams:function(){return g},usePathname:function(){return f},useRouter:function(){return h},useSearchParams:function(){return p},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return y},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let n=r(55729),a=r(30673),i=r(43788),o=r(16746),s=r(77169),l=r(14344),u=r(54482),c=r(29810),d=void 0;function p(){let e=(0,n.useContext)(i.SearchParamsContext);return(0,n.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function f(){return null==d||d("usePathname()"),(0,n.useContext)(i.PathnameContext)}function h(){let e=(0,n.useContext)(a.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function g(){return null==d||d("useParams()"),(0,n.useContext)(i.PathParamsContext)}function y(e){void 0===e&&(e="children"),null==d||d("useSelectedLayoutSegments()");let t=(0,n.useContext)(a.LayoutRouterContext);return t?function e(t,r,n,a){let i;if(void 0===n&&(n=!0),void 0===a&&(a=[]),n)i=t[1][r];else{var l;let e=t[1];i=null!=(l=e.children)?l:Object.values(e)[0]}if(!i)return a;let u=i[0],c=(0,o.getSegmentValue)(u);return!c||c.startsWith(s.PAGE_SEGMENT_KEY)?a:(a.push(c),e(i,r,!1,a))}(t.parentTree,e):null}function m(e){void 0===e&&(e="children"),null==d||d("useSelectedLayoutSegment()");let t=y(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===s.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85596:(e,t,r)=>{"use strict";var n=r(55729),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,o=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!a(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),a=n[0].inst,c=n[1];
66return s(function(){a.value=r,a.getSnapshot=t,u(a)&&c({inst:a})},[e,r,t]),o(function(){return u(a)&&c({inst:a}),e(function(){u(a)&&c({inst:a})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},89251:(e,t,r)=>{"use strict";r.d(t,{E:()=>N});let n="undefined"==typeof window||"Deno"in window;function a(){}function i(e,t,r){return g(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function o(e,t,r){return g(e)?[{...t,queryKey:e},r]:[e||{},t]}function s(e,t){let{type:r="all",exact:n,fetchStatus:a,predicate:i,queryKey:o,stale:s}=e;if(g(o))if(n){if(t.queryHash!==u(o,t.options))return!1}else{var l;if(l=t.queryKey,!d(l,o))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(void 0===a||a===t.state.fetchStatus)&&(!i||!!i(t))}function l(e,t){let{exact:r,fetching:n,predicate:a,mutationKey:i}=e;if(g(i)){if(!t.options.mutationKey)return!1;if(r){if(c(t.options.mutationKey)!==c(i))return!1}else{var o;if(o=t.options.mutationKey,!d(o,i))return!1}}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!a||!!a(t))}function u(e,t){return((null==t?void 0:t.queryKeyHashFn)||c)(e)}function c(e){return JSON.stringify(e,(e,t)=>f(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function d(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!d(e[r],t[r]))}function p(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function f(e){if(!h(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!h(r)&&!!r.hasOwnProperty("isPrototypeOf")}function h(e){return"[object Object]"===Object.prototype.toString.call(e)}function g(e){return Array.isArray(e)}function y(e){return new Promise(t=>{setTimeout(t,e)})}function m(e){y(0).then(e)}let v=console,b=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},a=n=>{t?e.push(n):m(()=>{r(n)})};return{batch:a=>{let i;t++;try{i=a()}finally{--t||(()=>{let t=e;e=[],t.length&&m(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return i},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e}}}();class _{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}class w extends _{constructor(){super(),this.setup=e=>{if(!n&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let C=new w,S=["online","offline"];class k extends _{constructor(){super(),this.setup=e=>{if(!n&&window.addEventListener){let t=()=>e();return S.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{S.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let E=new k;function x(e){return Math.min(1e3*2**e,3e4)}function R(e){return(null!=e?e:"online")!=="online"||E.isOnline()}class O{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function T(e){return e instanceof O}function I(e){let t,r,n,a=!1,i=0,o=!1,s=new Promise((e,t)=>
66{r=e,n=t}),l=()=>!C.isFocused()||"always"!==e.networkMode&&!E.isOnline(),u=n=>{o||(o=!0,null==e.onSuccess||e.onSuccess(n),null==t||t(),r(n))},c=r=>{o||(o=!0,null==e.onError||e.onError(r),null==t||t(),n(r))},d=()=>new Promise(r=>{t=e=>{let t=o||!l();return t&&r(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,o||null==e.onContinue||e.onContinue()}),p=()=>{let t;if(!o){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var r,n;if(o)return;let s=null!=(r=e.retry)?r:3,u=null!=(n=e.retryDelay)?n:x,f="function"==typeof u?u(i,t):u,h=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);if(a||!h)return void c(t);i++,null==e.onFail||e.onFail(i,t),y(f).then(()=>{if(l())return d()}).then(()=>{a?c(t):p()})})}};return R(e.networkMode)?p():d().then(p),{promise:s,cancel:t=>{o||(c(new O(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1}}}class A{destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.cacheTime)&&e>=0&&e!==1/0&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:n?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class P extends A{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||v,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){var r,n,a;let i=(r=this.state.data,n=e,null!=(a=this.options).isDataEqual&&a.isDataEqual(r,n)?r:"function"==typeof a.structuralSharing?a.structuralSharing(r,n):!1!==a.structuralSharing?function e(t,r,n=0){if(t===r)return t;if(n>500)return r;let a=p(t)&&p(r);if(a||f(t)&&f(r)){let i=a?t.length:Object.keys(t).length,o=a?r:Object.keys(r),s=o.length,l=a?[]:{},u=0;for(let i=0;i<s;i++){let s=a?i:o[i];l[s]=e(t[s],r[s],n+1),l[s]===t[s]&&u++}return i===s&&u===i?t:l}return r}(r,n):n);return this.dispatch({data:i,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),i}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(a).catch(a):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Math.max(this.state.dataUpdatedAt+(e||0)-Date.now(),0)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>
66t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n,a,i;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let o=function(){if("function"==typeof AbortController)return new AbortController}(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(s);let u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};l(c),null==(r=this.options.behavior)||r.onFetch(c),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(n=c.fetchOptions)?void 0:n.meta))&&this.dispatch({type:"fetch",meta:null==(i=c.fetchOptions)?void 0:i.meta});let d=e=>{if(T(e)&&e.silent||this.dispatch({type:"error",error:e}),!T(e)){var t,r,n,a;null==(t=(r=this.cache.config).onError)||t.call(r,e,this),null==(n=(a=this.cache.config).onSettled)||n.call(a,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=I({fn:c.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,r,n,a;if(void 0===e)return void d(Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),null==(n=(a=this.cache.config).onSettled)||n.call(a,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){let t=t=>{var r,n;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:R(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let a=e.error;if(T(a)&&a.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),b.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class M extends _{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;let a=t.queryKey,i=null!=(n=t.queryHash)?n:u(a,t),o=this.get(i);return o||(o=new P({cache:this,logger:e.getLogger(),queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){b.batch(()=>
66{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[r]=o(e,t);return void 0===r.exact&&(r.exact=!0),this.queries.find(e=>s(r,e))}findAll(e,t){let[r]=o(e,t);return Object.keys(r).length>0?this.queries.filter(e=>s(r,e)):this.queries}notify(e){b.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){b.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){b.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class j extends A{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||v,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,r,n,a,i,o,s,l,u,c,d,p,f,h,g,y,m,v,b;let _=()=>{var e;return this.retryer=I({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},w="loading"===this.state.status;try{if(!w){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(l=(u=this.mutationCache.config).onMutate)?void 0:l.call(u,this.state.variables,this));let e=await (null==(c=(d=this.options).onMutate)?void 0:c.call(d,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let p=await _();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,p,this.state.variables,this.state.context,this)),await (null==(r=(n=this.options).onSuccess)?void 0:r.call(n,p,this.state.variables,this.state.context)),await (null==(a=(i=this.mutationCache.config).onSettled)?void 0:a.call(i,p,null,this.state.variables,this.state.context,this)),await (null==(o=(s=this.options).onSettled)?void 0:o.call(s,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(e){try{throw await (null==(p=(f=this.mutationCache.config).onError)?void 0:p.call(f,e,this.state.variables,this.state.context,this)),await (null==(h=(g=this.options).onError)?void 0:h.call(g,e,this.state.variables,this.state.context)),await (null==(y=(m=this.mutationCache.config).onSettled)?void 0:y.call(m,void 0,e,this.state.variables,this.state.context,this)),await (null==(v=(b=this.options).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){let t=t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!R(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPau
66sed:!1,status:"error"};case"setState":return{...t,...e.state}}};this.state=t(this.state),b.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}class L extends _{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){let n=new j({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){b.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>l(e,t))}findAll(e){return this.mutations.filter(t=>l(e,t))}notify(e){b.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>
66e.state.isPaused);return b.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(a)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function D(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class N{constructor(e={}){this.queryCache=e.queryCache||new M,this.mutationCache=e.mutationCache||new L,this.logger=e.logger||v,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=C.subscribe(()=>{C.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=E.subscribe(()=>{E.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[r]=o(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}ensureQueryData(e,t,r){let n=i(e,t,r),a=this.getQueryData(n.queryKey);return a?Promise.resolve(a):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let n=this.queryCache.find(e),a=null==n?void 0:n.state.data,o="function"==typeof t?t(a):t;if(void 0===o)return;let s=i(e),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return b.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){let[r]=o(e,t),n=this.queryCache;b.batch(()=>{n.findAll(r).forEach(e=>{n.remove(e)})})}resetQueries(e,t,r){let[n,a]=o(e,t,r),i=this.queryCache,s={type:"active",...n};return b.batch(()=>(i.findAll(n).forEach(e=>{e.reset()}),this.refetchQueries(s,a)))}cancelQueries(e,t,r){let[n,i={}]=o(e,t,r);return void 0===i.revert&&(i.revert=!0),Promise.all(b.batch(()=>this.queryCache.findAll(n).map(e=>e.cancel(i)))).then(a).catch(a)}invalidateQueries(e,t,r){let[n,a]=o(e,t,r);return b.batch(()=>{var e,t;if(this.queryCache.findAll(n).forEach(e=>{e.invalidate()}),"none"===n.refetchType)return Promise.resolve();let r={...n,type:null!=(e=null!=(t=n.refetchType)?t:n.type)?e:"active"};return this.refetchQueries(r,a)})}refetchQueries(e,t,r){let[n,i]=o(e,t,r),s=Promise.all(b.batch(()=>this.queryCache.findAll(n).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:n.refetchPage}})}))).then(a);return null!=i&&i.throwOnError||(s=s.catch(a)),s}fetchQuery(e,t,r){let n=i(e,t,r),a=this.defaultQueryOptions(n);void 0===a.retry&&(a.retry=!1);let o=this.queryCache.build(this,a);return o.isStaleByTime(a.staleTime)?o.fetch(a):Promise.resolve(o.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(a).catch(a)}fetchInfiniteQuery(e,t,r){let n=i(e,t,r);return n.behavior={onFetch:e=>{e.fetchFn=()=>{var t,r,n,a,i,o,s,l;let u,c=null==(t=e.fetchOptions)||null==(r=t.meta)?void 0:r.refetchPage,d=null==(n=e.fetchOptions)||null==(a=n.meta)?void 0:a.fetchMore,p=null==d?void 0:d.pageParam,f=(null==d?void 0:d.direction)==="forward",h=(null==d?void 0:d.direction)==="backward",g=(null==(i=e.state.data)?void 0:i.pages)||[],y=(null==(o=e.state.data)?void 0:o.pageParams)||[],m=y,v=!1,b=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),_=(e,t,r,n)=>(m=n?[t,...m]:[...m,t],n?[r,...e]:[...e,r]),w=(t,r,n,a)=>{if(v)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);let i={queryKey:e.queryKey,pageParam:n,meta:e.options.meta};return Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,r;return null!=(t=e.signal)&&t.aborted?v=!0:null==(r=e.signal)||r.addEventListener("abort",()=>{v=!0}),e.signal}}),Promise.resolve(b(i)).then(e=>_(t,n,e,a))};if(g.length)if(f){let t=void 0!==p,r=t?p:D(e.options,g);u=w(g,t,r)}else if(h){let t=void 0!==p,r=t?p:(s=e.options,l=g,null==s.getPreviousPageParam?void 0:s.getPreviousPageParam(l[0],l));u=w(g,t,r,!0)}else{m=[];let t=void 0===e.options.getNextPageParam;u=!c||!g[0]||c(g[0],0,g)?w([],t,y[0]):Promise.resolve(_([],y[0],g[0]));for(let r=1;r<g.length;r++)u=u.then(n=>{if(!c||!g[r]||c(g[r],r,g)){let a=t?y[r]:D(e.options,n);return w(n,t,a)}return Promise.resolve(_(n,y[r],g[r]))})}else u=w([]);return u.then(e=>({pages:e,pageParams:m}))}}},this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(a).catch(a)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let r=this.queryDefaults.find(t=>c(e)===c(t.queryKey));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>d(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let r=this.mutationDefaults.find(t=>c(e)===c(t.mutationKey));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>d(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=u(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}},90719:(e,t,r)=>{"use strict";t.Ec=void 0;let n=r(51641),a=r(55729),i=r(52741),o=r(83948),s=e=>(t,...r)=>{let s=(0,a.forwardRef)((s,l)=>{let u=(0,n.clsx)((0,i.processClasses)(t,s,r),s.className),c=(0,o.filterPropsToForward)(e,s);return(0,a.createElement)(e,Object.assign(Object.assign({},c),{ref:l,className:u}))});return s.displayName=`Classed(${(e=>"string"==typeof e?e:e.displayName||e.name)(e)})`,s};
66o.tags.forEach(e=>{s[e]=s(e)}),t.Ec=s,t.Ay=t.Ec},92309:(e,t,r)=>{"use strict";r.d(t,{BN:()=>f,ER:()=>h,Ej:()=>y,UE:()=>v,UU:()=>g,cY:()=>p,jD:()=>m,we:()=>d});var n=r(24969),a=r(55729),i=r(56760),o="undefined"!=typeof document?a.useLayoutEffect:function(){};function s(e,t){let r,n,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!s(e[n],t[n]))return!1;return!0}if((r=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,a[n]))return!1;for(n=r;0!=n--;){let r=a[n];if(("_owner"!==r||!e.$$typeof)&&!s(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let r=l(e);return Math.round(t*r)/r}function c(e){let t=a.useRef(e);return o(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:d=[],platform:p,elements:{reference:f,floating:h}={},transform:g=!0,whileElementsMounted:y,open:m}=e,[v,b]=a.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[_,w]=a.useState(d);s(_,d)||w(d);let[C,S]=a.useState(null),[k,E]=a.useState(null),x=a.useCallback(e=>{e!==I.current&&(I.current=e,S(e))},[]),R=a.useCallback(e=>{e!==A.current&&(A.current=e,E(e))},[]),O=f||C,T=h||k,I=a.useRef(null),A=a.useRef(null),P=a.useRef(v),M=null!=y,j=c(y),L=c(p),D=c(m),N=a.useCallback(()=>{if(!I.current||!A.current)return;let e={placement:t,strategy:r,middleware:_};L.current&&(e.platform=L.current),(0,n.rD)(I.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==D.current};F.current&&!s(P.current,t)&&(P.current=t,i.flushSync(()=>{b(t)}))})},[_,t,r,L,D]);o(()=>{!1===m&&P.current.isPositioned&&(P.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[m]);let F=a.useRef(!1);o(()=>(F.current=!0,()=>{F.current=!1}),[]),o(()=>{if(O&&(I.current=O),T&&(A.current=T),O&&T){if(j.current)return j.current(O,T,N);N()}},[O,T,N,j,M]);let z=a.useMemo(()=>({reference:I,floating:A,setReference:x,setFloating:R}),[x,R]),$=a.useMemo(()=>({reference:O,floating:T}),[O,T]),U=a.useMemo(()=>{let e={position:r,left:0,top:0};if(!$.floating)return e;let t=u($.floating,v.x),n=u($.floating,v.y);return g?{...e,transform:"translate("+t+"px, "+n+"px)",...l($.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,g,$.floating,v.x,v.y]);return a.useMemo(()=>({...v,update:N,refs:z,elements:$,floatingStyles:U}),[v,N,z,$,U])}let p=(e,t)=>{let r=(0,n.cY)(e);return{name:r.name,fn:r.fn,options:[e,t]}},f=(e,t)=>{let r=(0,n.BN)(e);return{name:r.name,fn:r.fn,options:[e,t]}},h=(e,t)=>({fn:(0,n.ER)(e).fn,options:[e,t]}),g=(e,t)=>{let r=(0,n.UU)(e);return{name:r.name,fn:r.fn,options:[e,t]}},y=(e,t)=>{let r=(0,n.Ej)(e);return{name:r.name,fn:r.fn,options:[e,t]}},m=(e,t)=>{let r=(0,n.jD)(e);return{name:r.name,fn:r.fn,options:[e,t]}},v=(e,t)=>{let r=(e=>({name:"arrow",options:e,fn(t){let{element:r,padding:a}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?(0,n.UE)({element:r.current,padding:a}).fn(t):{}:r?(0,n.UE)({element:r,padding:a}).fn(t):{}}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}}},92361:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return n}}),r(52272).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94087:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>ee,iu:()=>er,lK:()=>et,As:()=>en});var n,a,i=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),o=function(){function e(e){this.generateIdentifier=e,this.kv=new i}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),s=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]}
66)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return s(t,e),t.prototype.register=function(t,r){"object"==typeof r?(r.allowProps&&this.classToAllowedProps.set(t,r.allowProps),e.prototype.register.call(this,t,r.identifier)):e.prototype.register.call(this,t,r)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(o),u=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o};function c(e,t){Object.entries(e).forEach(function(e){var r=u(e,2),n=r[0];return t(r[1],n)})}function d(e,t){return -1!==e.indexOf(t)}function p(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n))return n}}var f=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return function(e,t){var r=function(e){if("values"in Object)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}(e);if("find"in r)return r.find(t);for(var n=0;n<r.length;n++){var a=r[n];if(t(a))return a}}(this.transfomers,function(t){return t.isApplicable(e)}
66)},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),h=function(e){return void 0===e},g=function(e){return"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)},y=function(e){return g(e)&&0===Object.keys(e).length},m=function(e){return Array.isArray(e)},v=function(e){return e instanceof Map},b=function(e){return e instanceof Set},_=function(e){return"Symbol"===Object.prototype.toString.call(e).slice(8,-1)},w=function(e){return"number"==typeof e&&isNaN(e)},C=function(e){return"boolean"==typeof e||null===e||h(e)||"number"==typeof e&&!isNaN(e)||"string"==typeof e||_(e)},S=function(e){return e.replace(/\./g,"\\.")},k=function(e){return e.map(String).map(S).join(".")},E=function(e){for(var t=[],r="",n=0;n<e.length;n++){var a=e.charAt(n);if("\\"===a&&"."===e.charAt(n+1)){r+=".",n++;continue}if("."===a){t.push(r),r="";continue}r+=a}var i=r;return t.push(i),t},x=function(){return(x=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},R=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},O=function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};function T(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var I=[T(h,"undefined",function(){return null},function(){}),T(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),T(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),T(function(e){return e instanceof Error},"Error",function(e,t){var r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){r[t]=e[t]}),r},function(e,t){var r=Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(function(t){r[t]=e[t]}),r}),T(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){return new RegExp(e.slice(1,e.lastIndexOf("/")),e.slice(e.lastIndexOf("/")+1))}),T(b,"set",function(e){return O([],R(e.values()))},function(e){return new Set(e)}),T(v,"map",function(e){return O([],R(e.entries()))},function(e){return new Map(e)}),T(function(e){var t;return w(e)||(t=e)===1/0||t===-1/0},"number",function(e){return w(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),T(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),T(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function A(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var P=A(function(e,t){return!!_(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,r){var n=r.symbolRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown symbol");return n}),M=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),j=A(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return O([],R(e))},function(e,t){var r=M[t[1]];if(!r)throw Error("Trying to deserialize unknown typed array");return new r(e)});function L(e,t){return null!=e&&!!e.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}var D=A(L,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return x({},e);var n={};return r.forEach(function(t){n[t]=e[t]}),n},function(e,t,r){var n=r.classRegistry.getValue(t[1]);
66if(!n)throw Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(n.prototype),e)}),N=A(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,r){var n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),F=[D,P,N,j],z=function(e,t){var r=p(F,function(r){return r.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};var n=p(I,function(r){return r.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation}},$={};I.forEach(function(e){$[e.annotation]=e});var U=function(e,t,r){if(m(t))switch(t[0]){case"symbol":return P.untransform(e,t,r);case"class":return D.untransform(e,t,r);case"custom":return N.untransform(e,t,r);case"typed-array":return j.untransform(e,t,r);default:throw Error("Unknown transformation: "+t)}var n=$[t];if(!n)throw Error("Unknown transformation: "+t);return n.untransform(e,r)},B=function(e,t){for(var r=e.keys();t>0;)r.next(),t--;return r.next().value};function q(e){if(d(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(d(e,"prototype"))throw Error("prototype is not allowed as a property");if(d(e,"constructor"))throw Error("constructor is not allowed as a property")}var H=function(e,t,r){if(q(t),0===t.length)return r(e);for(var n=e,a=0;a<t.length-1;a++){var i=t[a];if(m(n))n=n[+i];else if(g(n))n=n[i];else if(b(n)){var o=+i;n=B(n,o)}else if(v(n)){if(a===t.length-2)break;var o=+i,s=0==+t[++a]?"key":"value",l=B(n,o);switch(s){case"key":n=l;break;case"value":n=n.get(l)}}}var u=t[t.length-1];if((m(n)||g(n))&&(n[u]=r(n[u])),b(n)){var c=B(n,+u),d=r(c);c!==d&&(n.delete(c),n.add(d))}if(v(n)){var o=+t[t.length-2],p=B(n,o),s=0==+u?"key":"value";switch(s){case"key":var f=r(p);n.set(f,n.get(p)),f!==p&&n.delete(p);break;case"value":n.set(p,r(n.get(p)))}}return e},V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},W=function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e},Z=function(e,t,r,n,a){if(void 0===n&&(n=[]),void 0===a&&(a=[]),C(e)||(i=n,(o=t.get(e))?o.push(i):t.set(e,[i])),!(g(e)||m(e)||v(e)||b(e)||L(e,r))){var i,o,s,l=z(e,r);return l?{transformedValue:l.value,annotations:[l.type]}:{transformedValue:e}}if(d(a,e))return{transformedValue:null};var u=z(e,r),p=null!=(s=null==u?void 0:u.value)?s:e;C(e)||(a=W(W([],V(a)),[e]));var f=m(p)?[]:{},h={};return(c(p,function(e,i){var o=Z(e,t,r,W(W([],V(n)),[i]),a);f[i]=o.transformedValue,m(o.annotations)?h[i]=o.annotations:g(o.annotations)&&c(o.annotations,function(e,t){h[S(i)+"."+t]=e})}),y(h))?{transformedValue:f,annotations:u?[u.type]:void 0}:{transformedValue:f,annotations:u?[u.type,h]:h}};function K(e){return Object.prototype.toString.call(e).slice(8,-1)}function G(e){return"Array"===K(e)}n=function(e){return"Null"===K(e)},a=function(e){return"Undefined"===K(e)};var J=function(){return(J=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Q=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},Y=function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e},X=function(){function e(){this.classRegistry=new l,this.symbolRegistry=new o(function(e){var t;return null!=(t=e.description)?t:""}),this.customTransformerRegistry=new f,this.allowedErrorProps=[]}return e.prototype.serialize=function(e){var t,r,n=new Map,a=Z(e,n,this),i={json:a.transformedValue};a.annotations&&(i.meta=J(J({},i.meta),{values:a.annotations}));var o=(t={},r=void 0,(n.forEach(function(e){if(!(e.length<=1)){var n=V(e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length})),a=n[0],i=n.slice(1);0===a.length?r=i.map(k):t[k(a)]=i.map(k)}}),r)?y(t)?[r]:[r,t]:y(t)?void 0:t);return o&&(i.meta=J(J({},i.meta),{referentialEqualities:o})),i},e.prototype.deserialize=function(e){var t,r,n,a=e.json,i=e.meta,o=function e(t,r={}){return G(t)?t.map(t=>e(t,r)):!function(e){if("Object"!==K(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(t)?t:[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)].reduce((n,a)=>
66{if(G(r.props)&&!r.props.includes(a))return n;let i=e(t[a],r);var o=r.nonenumerable;let s=({}).propertyIsEnumerable.call(t,a)?"enumerable":"nonenumerable";return"enumerable"===s&&(n[a]=i),o&&"nonenumerable"===s&&Object.defineProperty(n,a,{value:i,enumerable:!1,writable:!0,configurable:!0}),n},{})}(a);return(null==i?void 0:i.values)&&(t=o,r=i.values,n=this,function e(t,r,n){if(void 0===n&&(n=[]),t){if(!m(t))return void c(t,function(t,a){return e(t,r,W(W([],V(n)),V(E(a))))});var a=V(t,2),i=a[0],o=a[1];o&&c(o,function(t,a){e(t,r,W(W([],V(n)),V(E(a))))}),r(i,n)}}(r,function(e,r){t=H(t,r,function(t){return U(t,e,n)})}),o=t),(null==i?void 0:i.referentialEqualities)&&(o=function(e,t){function r(t,r){var n,a,i=(n=e,q(a=E(r)),a.forEach(function(e){n=n[e]}),n);t.map(E).forEach(function(t){e=H(e,t,function(){return i})})}if(m(t)){var n=V(t,2),a=n[0],i=n[1];a.forEach(function(t){e=H(e,E(t),function(){return e})}),i&&c(i,r)}else c(t,r);return e}(o,i.referentialEqualities)),o},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(J({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];(e=this.allowedErrorProps).push.apply(e,Y([],Q(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();let ee=X;var et=X.serialize,er=X.deserialize,en=X.stringify;X.parse},94565:e=>{function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,a,i,o,s=typeof e;if("string"===s&&e.length>0){var l=e;if(!((l=String(l)).length>100)){var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(u){var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return 6048e5*c;case"days":case"day":case"d":return 864e5*c;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*c;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*c;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:break}}}return}if("number"===s&&isFinite(e)){return r.long?(a=Math.abs(n=e))>=864e5?t(n,a,864e5,"day"):a>=36e5?t(n,a,36e5,"hour"):a>=6e4?t(n,a,6e4,"minute"):a>=1e3?t(n,a,1e3,"second"):n+" ms":(o=Math.abs(i=e))>=864e5?Math.round(i/864e5)+"d":o>=36e5?Math.round(i/36e5)+"h":o>=6e4?Math.round(i/6e4)+"m":o>=1e3?Math.round(i/1e3)+"s":i+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},95048:(e,t,r)=>{"use strict";r.d(t,{RO:()=>l,XC:()=>s,az:()=>o,l4:()=>i});var n=r(51786);let a=n.Yj().min(10).max(100),i=n.Ik({email:n.Yj().email(),password:a}),o=n.Ik({email:n.Yj().email(),password:n.Yj()}),s=n.Ik({email:n.Yj().email(),city:n.Yj()}),l=n.Ik({password:a,passwordConfirmation:a,token:n.Yj()}).refine(e=>e.password===e.passwordConfirmation,{message:"Passwords don't match",path:["passwordConfirmation"]});n.Ik({currentPassword:n.Yj(),newPassword:a})},95175:(e,t,r)=>{"use strict";r.d(t,{B1:()=>O,C0:()=>p,Dz:()=>m,Jx:()=>l,LI:()=>o,PG:()=>h,RI:()=>s,Sg:()=>f,T9:()=>i,TV:()=>y,WJ:()=>b,_3:()=>d,bV:()=>x,jk:()=>a,lP:()=>E,nI:()=>R,qE:()=>c,r_:()=>n,sq:()=>g,w7:()=>v});let n=["top","right","bottom","left"],a=Math.min,i=Math.max,o=Math.round,s=Math.floor,l=e=>({x:e,y:e}
66),u={left:"right",right:"left",bottom:"top",top:"bottom"};function c(e,t,r){return i(e,a(t,r))}function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function y(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function m(e){return h(y(e))}function v(e,t,r){void 0===r&&(r=!1);let n=f(e),a=m(e),i=g(a),o="x"===a?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=x(o)),[o,x(o)]}function b(e){let t=x(e);return[_(e),t,_(t)]}function _(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let w=["left","right"],C=["right","left"],S=["top","bottom"],k=["bottom","top"];function E(e,t,r,n){let a=f(e),i=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?C:w;return t?w:C;case"left":case"right":return t?S:k;default:return[]}}(p(e),"start"===r,n);return a&&(i=i.map(e=>e+"-"+a),t&&(i=i.concat(i.map(_)))),i}function x(e){let t=p(e);return u[t]+e.slice(t.length)}function R(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function O(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}},95669:(e,t,r)=>{e.exports=r(25874)},95776:(e,t,r)=>{"use strict";r.d(t,{wv:()=>g,V8:()=>h,gA:()=>p,Be:()=>d,d$:()=>c,cw:()=>y,fS:()=>u,l9:()=>m});var n=r(70921),a=r(58083),i=r(81918);let o=Symbol();function s(e){let t=Symbol(),r=(0,n.eU)(t);r.debugPrivate=!0;let a=(0,n.eU)((n,a)=>{let i=n(r);return i!==t?i:e(n,a)},(e,n,i)=>{n(r,i===o?t:"function"==typeof i?i(e(a)):i)});return a}let l=function(e){let t,r,n={getItem:(n,a)=>{var i,o;let s=e=>{if(t!==(e=e||"")){try{r=JSON.parse(e)}catch{return a}t=e}return r},l=null!=(o=null==(i=e())?void 0:i.getItem(n))?o:null;return"function"==typeof(null==l?void 0:l.then)?l.then(s):s(l)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};return"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(n.subscribe=(t,r,n)=>{if(!(e()instanceof window.Storage))return()=>{};let a=a=>{if(a.storageArea===e()&&a.key===t){let e;try{e=JSON.parse(a.newValue||"")}catch{e=n}r(e)}};return window.addEventListener("storage",a),()=>{window.removeEventListener("storage",a)}}),n}(()=>"undefined"!=typeof window?window.localStorage:void 0),u=(0,n.eU)(null),c=(0,n.eU)(null),d=(0,n.eU)(!1),p=e=>new Map(e.map(e=>{var t,r;return[e,(null==(t=e.data)?void 0:t.type)==="range"?{type:"range",value:e.data.value,active:!1}:(null==(r=e.data)?void 0:r.type)==="boolean"?{type:"switch",value:"either",active:!1}:{type:"enum",value:null,active:!1}]})),f=(0,i.O)(a[0]),h=s(()=>p([f])),g=s(()=>[f]),y=(0,n.eU)(!1),m=function(e,t,r=l,a){let i=void 0,s=(0,n.eU)(i?r.getItem(e,t):t);return s.debugPrivate=!0,s.onMount=n=>{let a;return i||n(r.getItem(e,t)),r.subscribe&&(a=r.subscribe(e,n,t)),a},(0,n.eU)(e=>e(s),(n,a,i)=>{let l="function"==typeof i?i(n(s)):i;return l===o?(a(s,t),r.removeItem(e)):l instanceof Promise?l.then(t=>(a(s,t),r.setItem(e,t))):(a(s,l),r.setItem(e,l))})}("tracking-consent",void 0)},95787:(e,t,r)=>{"use strict";r.d(t,{E:()=>O,b:()=>P,g:()=>L,s:()=>V});var n,a,i=r(50195),o=r(55729),s=r(31179),l=r(94087),u=r(46077);let c=({client:e=globalThis.queryClient,contextSharing:t=!1,dehydratedState:r,hydrateOptions:n,children:a})=>e?o.createElement(u.Ht,{client:e||globalThis.queryClient,contextSharing:t},o.createElement(u.Ck,{state:r,options:n},a)):a;var d=r(71024);r(61181);var p=r(48535),f=r(20438),h=Object.defineProperty;Object.defineProperties,Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,v=(e,t,r)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let b=o.createContext(null);var _=Object.defineProperty,w=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,k=(e,t,r)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t||(t={}))C.call(t,r)&&k(e,r,t[r]);if(w)for(var r of w(t))S.call(t,r)&&k(e,r,t[r]);return e};let x=f("blitz:errorboundary"),R={error:null},O=((a=class extends o.Component{constructor(){super(...arguments),this.state=R,this.updatedWithError=!1,this.resetErrorBoundary=(...e)=>{var t,r;null==(r=(t=this.props).onReset)||r.call(t,...e),this.reset()},this.handleRouteChange=()=>{var e,t;x("Resetting error boundary on route change"),null==(t=(e=this.props).onReset)||t.call(e),this.reset()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.updatedWithError=!1,this.setState(R)}componentDidCatch(e,t){let r,n;return r=this,n=function*(){var r,n;if(e instanceof i.R){x("Redirecting from ErrorBoundary to",e.url),yield this.props.router.push(e.url);return}null==(n=(r=this.props).onError)||n.call(r,e,t)},new Promise((e,t)=>
66{var a=e=>{try{o(n.next(e))}catch(e){t(e)}},i=e=>{try{o(n.throw(e))}catch(e){t(e)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(a,i);o((n=n.apply(r,null)).next())})}componentDidMount(){var e,t;let{error:r}=this.state;null!==r&&(this.updatedWithError=!0),null==(t=null==(e=this.props.router)?void 0:e.events)||t.on("routeChangeComplete",this.handleRouteChange)}componentWillUnmount(){var e,t;null==(t=null==(e=this.props.router)?void 0:e.events)||t.off("routeChangeComplete",this.handleRouteChange)}componentDidUpdate(e){var t,r;let{error:n}=this.state,{resetKeys:a}=this.props;if(null!==n&&!this.updatedWithError){this.updatedWithError=!0;return}null!==n&&((e=[],t=[])=>e.length!==t.length||e.some((e,r)=>!Object.is(e,t[r])))(e.resetKeys,a)&&(null==(r=(t=this.props).onResetKeysChange)||r.call(t,e.resetKeys,a),this.reset())}render(){let{error:e}=this.state,{fallbackRender:t,FallbackComponent:r,fallback:n}=this.props;if(null!==e){let a={error:e,resetErrorBoundary:this.resetErrorBoundary};if(e instanceof i.R)return null;if(o.isValidElement(n))return n;if("function"==typeof t)return t(a);else if(r)return o.createElement(r,E({},a));else throw Error("<ErrorBoundary> requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children}}).contextType=b,n=a,function(e){return o.createElement(n,E({router:(0,p.useRouter)()},e))}),T=d(()=>Promise.resolve().then(r.t.bind(r,95669,19)).then(e=>e.default),{ssr:!1,loading:()=>null}),I={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function A({res:e,err:t}){return{statusCode:e&&e.statusCode?e.statusCode:t?t.statusCode:404}}class P extends o.Component{render(){let{statusCode:e}=this.props,t=this.props.title||I[e]||"An unexpected error has occurred";return o.createElement("div",{style:M.error},o.createElement(T,null,o.createElement("title",null,e?`${e}: ${t}`:"Application error: a client-side exception has occurred")),o.createElement("div",null,o.createElement("style",{dangerouslySetInnerHTML:{__html:"body { margin: 0 }"}}),e?o.createElement("h1",{style:M.h1},e):null,o.createElement("div",{style:M.desc},o.createElement("h2",{style:M.h2},this.props.title||e?t:o.createElement(o.Fragment,null,"Application error: a client-side exception has occurred (see the browser console for more information)"),"."))))}}P.displayName="ErrorPage",P.getInitialProps=A,P.origGetInitialProps=A;let M={error:{color:"#000",background:"#fff",fontFamily:'-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block",textAlign:"left",lineHeight:"49px",height:"49px",verticalAlign:"middle"},h1:{display:"inline-block",borderRight:"1px solid rgba(0, 0, 0,.3)",margin:0,marginRight:"20px",padding:"10px 23px 10px 0",fontSize:"24px",fontWeight:500,verticalAlign:"top"},h2:{fontSize:"14px",fontWeight:"normal",lineHeight:"inherit",margin:0,padding:0}},j=e=>decodeURIComponent(e.replace(/\+/g,"%20"));function L(e,t){return function(e){let t=(0,p.useRouter)(),r=function(){let e=(0,p.useRouter)();return o.useMemo(()=>(function(e){var t=null==e?void 0:e.split("?",2)[1];if(!t)return{};let r={};for(let e of t.split("&")){let[t,n=""]=e.split("=");t=j(t),n=j(n),0!==t.length&&(t in r?r[t]=[].concat(r[t],n):r[t]=n)}return r})(null==e?void 0:e.asPath),[null==e?void 0:e.asPath])}();return o.useMemo(()=>{var n;let a=(n=null==t?void 0:t.query,Object.fromEntries(Object.entries(n||{}).filter(([e,t])=>void 0===r[e]||!function(e,t){if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}(t,r[e]))));if("string"===e){let e={};for(let t in a)"string"==typeof a[t]&&(e[t]=a[t]);return e}if("number"===e){let e={};for(let t in a)if(a[t]){let r=Number(a[t]);e[t]=isNaN(r)?void 0:r}return e}if("array"===e){let e={};for(let t in a){let r=a[t];Array.isArray(a[t])?e[t]=r:"string"==typeof r&&(e[t]=[r])}return e}return a},[null==t?void 0:t.query,r,e])}(t)[e]}var D=Object.defineProperty,N=Object.defineProperties,F=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,B=(e,t,r)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t)=>
66{for(var r in t||(t={}))$.call(t,r)&&B(e,r,t[r]);if(z)for(var r of z(t))U.call(t,r)&&B(e,r,t[r]);return e};let H=d(()=>Promise.resolve().then(r.t.bind(r,95669,19)).then(e=>e.default),{ssr:!1,loading:()=>null}),V=({plugins:e})=>{let{exports:t,withPlugins:r}=(0,i.d)({plugins:e}),n=function(e){let t=t=>{var n;let a=o.useMemo(()=>r(t.Component),[t.Component]);o.useEffect(()=>{setTimeout(()=>{document.documentElement.classList.add("blitz-first-render-complete")})},[]);let i=o.createElement(o.Fragment,null,t.Component.suppressFirstRenderFlicker&&o.createElement(K,null),o.createElement(e,N(q({},t),F({Component:a}))));return o.createElement(c,{dehydratedState:null==(n=t.pageProps)?void 0:n.dehydratedState},i)};Object.assign(t,e);function n(e){return o.createElement(t,((e,t)=>{for(var r in t||(t={}))y.call(t,r)&&v(e,r,t[r]);if(g)for(var r of g(t))m.call(t,r)&&v(e,r,t[r]);return e})({},function(e){let{_superjson:t}=e,r=((e,t)=>{var r={};for(var n in e)y.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&g)for(var n of g(e))0>t.indexOf(n)&&m.call(e,n)&&(r[n]=e[n]);return r})(e,["_superjson"]);return l.Ay.deserialize({json:r,meta:t})}(e)))}return s(n,t),n};return q({withBlitz:n},t)},W=`
67  body::before {
68    content: "";
69    display: block;
70    position: fixed;
71    width: 100%;
72    height: 100%;
73    top: 0;
74    left: 0;
75    z-index: 99999;
76    background-color: white;
77  }
78
79  .blitz-first-render-complete body::before {
80    display: none;
81  }
82`,Z=`
83  body::before {
84    content: none
85  }
86`,K=()=>o.createElement(H,null,o.createElement("style",{dangerouslySetInnerHTML:{__html:W}}),o.createElement("noscript",null,o.createElement("style",{dangerouslySetInnerHTML:{__html:Z}})))},98080:(e,t,r)=>{"use strict";r.d(t,{QB:()=>C,J2:()=>w,Ay:()=>S,j4:()=>_});var n=r(6029),a=r(11212),i=r.n(a),o=r(82203),s=r.n(o),l=r(61181),u=r(742),c=r(63146),d=r(19843),p=r(38668);let f=(0,r(24290)._)({resolverName:"login",resolverType:"mutation",routePath:"/login",httpMethod:"POST"});var h=r(95048),g=r(69962),y=r(55729),m=r(783),v=r(15414),b=r(50195);let _="space-y-3 mt-6 bg-white border border-gray-300 shadow-lg divide-y divide-gray-100";function w(e){let{active:t}=e,r=(0,y.useContext)(m.LJ),a="text-sm uppercase font-semibold text-brand-green border-b-2 border-brand-green",i="text-sm uppercase font-semibold text-gray-500";return(0,n.jsxs)("div",{className:"flex gap-x-4",children:[(0,n.jsx)(s(),{href:l.B.LoginPage({city:r.id}),className:"login"===t?a:i,children:"Login"}),(0,n.jsx)(s(),{href:l.B.SignupPage({city:r.id}),className:"signup"===t?a:i,children:"Sign up"})]})}let C=e=>{let t=(0,y.useContext)(m.LJ),[r]=(0,u.n_)(f);return(0,n.jsxs)("div",{className:"jsx-ad8a077fa89c7c9f space-y-8",children:[(0,n.jsx)(g.M,{className:"w-28"}),(0,n.jsx)(v.w,{}),(0,n.jsx)(w,{active:"login"}),(0,n.jsxs)(p.lV,{schema:h.az,initialValues:{email:"",password:""},onSubmit:async t=>{try{var n;await r(t),null==(n=e.onSuccess)||n.call(e)}catch(e){if(e instanceof b.A)return{[p.Ym]:"Sorry, those credentials are invalid"};return{[p.Ym]:"Sorry, we had an unexpected error. Please try again."}}},children:[(0,n.jsxs)("div",{className:"jsx-ad8a077fa89c7c9f "+(_||""),children:[(0,n.jsx)(c.b,{variant:"noborder",name:"email",label:"Email",placeholder:"Email"}),(0,n.jsx)(c.b,{variant:"noborder",name:"password",label:"Password",placeholder:"Password",type:"password"})]}),(0,n.jsxs)("div",{className:"jsx-ad8a077fa89c7c9f flex items-center justify-between pt-8",children:[(0,n.jsx)("button",{type:"submit",className:"jsx-ad8a077fa89c7c9f "+((0,d.EX)({variant:"primary",size:"md"})||""),children:"Login"}),(0,n.jsx)(s(),{href:l.B.ForgotPasswordPage({city:t.id}),className:"cursor-pointer text-sm font-semibold text-gray-500 transition-all hover:underline",children:"Forgot password?"})]})]}),(0,n.jsx)(i(),{id:"ad8a077fa89c7c9f",children:"html{min-height:100%}body{min-height:100%;background-image:url(/mike-kurz-BN8wDkEmEWY-unsplash.jpg);background-size:cover;background-position:bottom}"})]})},S=C},98764:(e,t,r)=>{"use strict";r.d(t,{a:()=>o,b:()=>a,c:()=>i,i:()=>u,k:()=>l,r:()=>s});var n=r(29143);function a(e,t){if(!e)throw Error(t)}let i="undefined"==typeof window,o="undefined"!=typeof window;function s(e){let t;if("undefined"==typeof document)return null;let r=document.cookie,n=r.search(RegExp("\\b"+e+"=")),a=r.indexOf(";",n);return~n?"{"===(t=decodeURIComponent(r.substring(n,~a?a:void 0).split("=")[1]||"")).charAt(0)?JSON.parse(t):t:null}let l=e=>((e,t,r)=>{let n=`${e}=${t};path=/;expires=${r}`;document.cookie=n})(e,"","Thu, 01 Jan 1970 00:00:01 GMT");function u(){return!!n.env.VITE_BLITZ_TEST_ENVIRONMENT||void 0===n.env.JEST_WORKER_ID&&void 0===n.env.VITEST_WORKER_ID}},99583:(e,t,r)=>{"use strict";r.d(t,{C:()=>o});
86var n=r(55729),a=r(82975),i=r(6706),o=e=>{let{present:t,children:r}=e,o=function(e){var t,r;let[a,o]=n.useState(),l=n.useRef(null),u=n.useRef(e),c=n.useRef("none"),[d,p]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=l.current,r=u.current;if(r!==e){let n=c.current,a=s(t);e?p("MOUNT"):"none"===a||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):r&&n!==a?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,i.N)(()=>{if(a){var e;let t,r=null!=(e=a.ownerDocument.defaultView)?e:window,n=e=>{let n=s(l.current).includes(CSS.escape(e.animationName));if(e.target===a&&n&&(p("ANIMATION_END"),!u.current)){let e=a.style.animationFillMode;a.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=e)})}},i=e=>{e.target===a&&(c.current=s(l.current))};return a.addEventListener("animationstart",i),a.addEventListener("animationcancel",n),a.addEventListener("animationend",n),()=>{r.clearTimeout(t),a.removeEventListener("animationstart",i),a.removeEventListener("animationcancel",n),a.removeEventListener("animationend",n)}}p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{l.current=e?getComputedStyle(e):null,o(e)},[])}}(t),l="function"==typeof r?r({present:o.isPresent}):n.Children.only(r),u=(0,a.s)(o.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,a=n&&"isReactWarning"in n&&n.isReactWarning;return a?e.ref:(a=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof r||o.isPresent?n.cloneElement(l,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}o.displayName="Presence"}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(36021),t(43727))),_N_E=e.O()}]);
87//# sourceMappingURL=_app-b9cb6664def6c8fa.js.map

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.