PageSourceSearch

https://airealty.global/assets/index-BOOcRGI2.js

js airealty.global collected 2026-10-05 03:41:34 UTC 1,118,421 bytes, 67 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/layout-B8ZZXYja.js","assets/tooltip-CBrgcdxy.js","assets/avatar-C2Htg0fy.js","assets/arrow-left-BfjfALGB.js","assets/bell-BsbdiN8B.js","assets/briefcase-CDvtkcEP.js","assets/chart-column-DuihJYPT.js","assets/chevrons-up-down-DD7gamTO.js","assets/globe-BcddHxN2.js","assets/headphones-BsznazAC.js","assets/log-out-uRoNuC1K.js","assets/mail-PKSiMxSE.js","assets/megaphone-gsEkbc9P.js","assets/plus-DbjVK6HI.js","assets/shield-CSy1RyNo.js","assets/sparkles-DW2O6L80.js","assets/users-D2VvXgMK.js","assets/workflow-DB1miREQ.js","assets/separator-Ca5LaN8Q.js","assets/badge-CxveY86X.js","assets/(public)-BpiVqtk-.js","assets/brands-DfHjrnQv.js","assets/dollar-sign-40UHyXlq.js","assets/eye-B3Lzvz07.js","assets/list-DCeqYm7I.js","assets/play-Dt5KlDWf.js","assets/trending-up-ducl5ZC4.js","assets/upload-B9MLtzOt.js","assets/video-Dejh-foy.js","assets/spinner-C3b9Ak1P.js","assets/faq-kyJOrcLh.js","assets/content-pages-JD_HFGTh.js","assets/external-link-BBst3cRB.js","assets/articles-data-Cg62xW6V.js","assets/about-Bk_SwpMg.js","assets/send-Dm_Eg98n.js","assets/dashboard-BJVa4glf.js","assets/partner-BURnlAGB.js","assets/checkbox-CZRuWA7n.js","assets/copy-C9OQcM0-.js","assets/alert-By4PgL1C.js","assets/card-CHikSBcn.js","assets/reset-password-DueTWckH.js","assets/password-field-CaBcRinH.js","assets/schemas-D6-HOx69.js","assets/register-DzKO9sQf.js","assets/input-group-DcKfWJGl.js","assets/index.esm-CxSAOLAh.js","assets/field-DpdDW9nz.js","assets/login-DKJuZvwe.js","assets/circle-alert-CabqvFHW.js","assets/forgot-password-Bj1hj8XM.js","assets/circle-check-CZf5GJ0J.js","assets/investors-DeJaCY_a.js","assets/pitch-deck-form-DliQss6Y.js","assets/articles-kqHTMQhX.js","assets/ai-tools-C0pJ8ZJW.js","assets/ai-tools-hub-page-CY5W7yif.js","assets/funnel-CXmbDk6l.js","assets/mic-BoxTQ7D4.js","assets/sales-directors-nhrvvcta.js","assets/_officeSlug-hjtpkrmC.js","assets/directory-CpTINN7f.js","assets/investor-directory-page-BId3bnj-.js","assets/investor-card-q9dk5Bpz.js","assets/_slug-D8JLU7XP.js","assets/_articleSlug-COBUDJgb.js","assets/_toolSlug-2a-Q5Aqa.js","assets/report-incorrect-DnZ8bH5e.js","assets/directory-static-page-OnaYsems.js","assets/remove-profile-Bm4uGsmB.js","assets/for-realtors-B9SXUuQP.js","assets/message-circle-D2Wqogkb.js","assets/user-check-BALRIFfS.js","assets/_agentSlug-BuKOBMXw.js","assets/agent-profile-page-fbzABl2T.js","assets/alert-dialog-BBSD7C5d.js","assets/switch-BpypdqtH.js","assets/arrow-up-DDGz6WR7.js","assets/calendar-Cxrqlk4n.js","assets/agent-contact-utils-Bm32nbl_.js","assets/message-square-BTM7jiJ_.js","assets/pencil-B8PTXK_M.js","assets/phone-BRv10dge.js","assets/shield-alert-C-5A7w8y.js","assets/trash-2-DqWxp4NJ.js","assets/user-x-dX1BeVor.js","assets/x-CPaxJTck.js","assets/dialog-CasoPwrs.js","assets/video-limits-CpEzoc5r.js","assets/workspace-BdwKg87V.js","assets/tabs-DrUv8JL_.js","assets/ellipsis-D7GJMr6Q.js","assets/table-D5yYiiGJ.js","assets/support-Ch0baqMf.js","assets/settings-BrBflukQ.js","assets/popover-B5Bob1ED.js","assets/format-BZq1MHew.js","assets/refresh-cw-CF5dx86G.js","assets/user-hooks-VaRmd_qq.js","assets/promotions-ChHy4vxT.js","assets/lib-CowpnKTj.js","assets/circle-x-Dg9JnGT_.js","assets/music-1eJQi-Y7.js","assets/notifications-CV0stNRR.js","assets/listings-BhFiqg1N.js","assets/social-media-BEQGmYf0.js","assets/new-AC0y0EED.js","assets/film-CG1RchS4.js","assets/_promotionId-i3pTYD8U.js","assets/promotion-media-gallery-CsPdwuro.js","assets/users-DxSapy7z.js","assets/download-DVba_mJO.js","assets/partners-BOiH4vMV.js","assets/clock-Ee8GBmeq.js","assets/overview-8a4Ljh5p.js","assets/jobs-CJZedUMA.js","assets/investors-BR55W75W.js","assets/enrichment-OBArknKP.js","assets/buyer-leads-BgHSRhGA.js","assets/agents-KeV44rQq.js","assets/two-factor-DcLDY6vV.js","assets/otp-BbsZEFnt.js","assets/_stageSlug-DX3Qq2F2.js","assets/_regionSlug-BOQs0V2s.js","assets/_categorySlug-Ja-EtqN4.js","assets/support-CA0EyQu1.js","assets/promotions-C8o027S_.js","assets/promotion-status-badge-D4_IHCXF.js","assets/payments-jQCeeoni.js","assets/_promotionId-CG-cdV_n.js","assets/_invitationId-fsH8CjpD.js","assets/_agentSlug-DpOIz08P.js"])))=>i.map(i=>d[i]);
2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`18f32fb5-33bf-4c3a-95a2-8412e1092c42`,e._sentryDebugIdIdentifier=`sentry-dbid-18f32fb5-33bf-4c3a-95a2-8412e1092c42`)}catch{}})();var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}
vendor: 19,780 bytes, lines 2-4
2).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return D(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?te(``+e.key):t.toString(36)}function A(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,j(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ne(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(k,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ne(a,u),c+=j(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ne(a,u++),c+=j(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return j(A(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function re(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var M=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},N={map:re,forEach:function(e,t,n){re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return re(e,function(){t++}),t},toArray:function(e){return re(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=N,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ie}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,M)}catch(e){M(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.6`})),p=s(((e,t)=>{t.exports=f()})),m=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}var S=!1,C=-1,w=5,E=-1;function D(){return g?!0:!(e.unstable_now()-E<w)}function ee(){if(g=!1,S){var t=e.unstable_now();E=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(ee)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,k=te.port2;te.port1.onmessage=ee,O=function(){k.postMessage(null)}}else O=function(){_(ee,0)};function ne(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),h=s(((e,t)=>{t.exports=m()})),g=s((e=>{var t=p();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.6`})),_=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=s((e=>{var t=h(),n=p(),r=_();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),E=Symbol.for(`react.suspense`),D=Symbol.for(`react.suspense_list`),ee=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),te=Symbol.for(`react.activity`),k=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function A(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var j=Symbol.for(`react.client.reference`);function re(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===j?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case E:return`Suspense`;case D:return`SuspenseList`;case te:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ee:return t=e.displayName||null,t===null?re(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var ie=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},oe=[],se=-1;function P(e){return{current:e}}function F(e){0>se||(e.current=oe[se],oe[se]=null,se--)}function ce(e,t){se++,oe[se]=e.current,e.current=t}var le=P(null),ue=P(null),de=P(null),fe=P(null);function pe(e,t){switch(ce(de,t),ce(ue,e),ce(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?$d(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=$d(t),e=ef(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}F(le),ce(le,e)}function me(){F(le),F(ue),F(de)}function he(e){e.memoizedState!==null&&ce(fe,e);var t=le.current,n=ef(t,e.type);t!==n&&(ce(ue,e),ce(le,n))}function ge(e){ue.current===e&&(F(le),F(ue)),fe.current===e&&(F(fe),up._currentValue=ae)}var _e,ve;function ye(e){if(_e===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||``,ve=-1<e.stack.indexOf(`
3    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4`+_e+e+ve}var be=!1;function xe(e,t){if(!e||be)return``;be=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}
vendor: 6,582 bytes, lines 4-9
4else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5`),l=s.split(`
6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ye(n):``}function Se(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye(`Lazy`);case 13:return e.child!==t&&t!==null?ye(`Suspense Fallback`):ye(`Suspense`);case 19:return ye(`SuspenseList`);case 0:case 15:return xe(e.type,!1);case 11:return xe(e.type.render,!1);case 1:return xe(e.type,!0);case 31:return ye(`Activity`);default:return``}}function Ce(e){try{var t=``,n=null;do t+=Se(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8Error generating stack: `+e.message+`
9`+e.stack}}var we=Object.prototype.hasOwnProperty,Te=t.unstable_scheduleCallback,Ee=t.unstable_cancelCallback,De=t.unstable_shouldYield,Oe=t.unstable_requestPaint,ke=t.unstable_now,Ae=t.unstable_getCurrentPriorityLevel,je=t.unstable_ImmediatePriority,Me=t.unstable_UserBlockingPriority,Ne=t.unstable_NormalPriority,Pe=t.unstable_LowPriority,Fe=t.unstable_IdlePriority,Ie=t.log,Le=t.unstable_setDisableYieldValue,Re=null,ze=null;function Be(e){if(typeof Ie==`function`&&Le(e),ze&&typeof ze.setStrictMode==`function`)try{ze.setStrictMode(Re,e)}catch{}}var Ve=Math.clz32?Math.clz32:We,He=Math.log,Ue=Math.LN2;function We(e){return e>>>=0,e===0?32:31-(He(e)/Ue|0)|0}var Ge=256,Ke=262144,qe=4194304;function Je(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ye(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Je(n))):i=Je(o):i=Je(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Je(n))):i=Je(o)):i=Je(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Xe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ze(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qe(){var e=qe;return qe<<=1,!(qe&62914560)&&(qe=4194304),e}function $e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ve(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&nt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function nt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ve(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function rt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ve(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function it(e,t){var n=t&-t;return n=n&42?1:at(n),(n&(e.suspendedLanes|t))===0?n:0}function at(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ot(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function st(){var e=N.p;return e===0?(e=window.event,e===void 0?32:Ep(e.type)):e}function ct(e,t){var n=N.p;try{return N.p=e,t()}finally{N.p=n}}var lt=Math.random().toString(36).slice(2),ut=`__reactFiber$`+lt,dt=`__reactProps$`+lt,ft=`__reactContainer$`+lt,pt=`__reactEvents$`+lt,mt=`__reactListeners$`+lt,ht=`__reactHandles$`+lt,gt=`__reactResources$`+lt,_t=`__reactMarker$`+lt;function vt(e){delete e[ut],delete e[dt],delete e[pt],delete e[mt],delete e[ht]}function yt(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ft]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cf(e);e!==null;){if(n=e[ut])return n;e=Cf(e)}return t}e=n,n=e.parentNode}return null}function bt(e){if(e=e[ut]||e[ft]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function xt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function St(e){var t=e[gt];return t||=e[gt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ct(e){e[_t]=!0}var wt=new Set,Tt={};function Et(e,t){Dt(e,t),Dt(e+`Capture`,t)}function Dt(e,t){for(Tt[e]=t,e=0;e<t.length;e++)wt.add(t[e])}var Ot=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
9037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),kt={},At={};function jt(e){return we.call(At,e)?!0:we.call(kt,e)?!1:Ot.test(e)?At[e]=!0:(kt[e]=!0,!1)}function Mt(e,t,n){if(jt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Nt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Pt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Ft(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function It(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Lt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rt(e){if(!e._valueTracker){var t=It(e)?`checked`:`value`;e._valueTracker=Lt(e,t,``+e[t])}}function zt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=It(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Bt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Vt=/[\n"\\]/g;function Ht(e){return e.replace(Vt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ut(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Ft(t)):e.value!==``+Ft(t)&&(e.value=``+Ft(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Gt(e,o,Ft(n)):Gt(e,o,Ft(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Ft(s):e.removeAttribute(`name`)}function Wt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Rt(e);return}n=n==null?``:``+Ft(n),t=t==null?n:``+Ft(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Rt(e)}function Gt(e,t,n){t===`number`&&Bt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Kt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Ft(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function qt(e,t,n){if(t!=null&&(t=``+Ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Ft(n)}function Jt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ie(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}
vendor: 87,460 bytes, line 9
9n=Ft(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Rt(e)}function Yt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Zt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Xt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Qt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Zt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Zt(e,o,t[o])}function $t(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var en=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),tn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function nn(e){return tn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function rn(){}var an=null;function on(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sn=null,cn=null;function ln(e){var t=bt(e);if(t&&(e=t.stateNode)){var n=e[dt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ut(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Ht(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[dt]||null;if(!a)throw Error(i(90));Ut(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&zt(r)}break a;case`textarea`:qt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Kt(e,!!n.multiple,t,!1)}}}var un=!1;function dn(e,t,n){if(un)return e(t,n);un=!0;try{return e(t)}finally{if(un=!1,(sn!==null||cn!==null)&&(Mu(),sn&&(t=sn,e=cn,cn=sn=null,ln(t),e)))for(t=0;t<e.length;t++)ln(e[t])}}function fn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[dt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var pn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),mn=!1;if(pn)try{var hn={};Object.defineProperty(hn,"passive",{get:function(){mn=!0}}),window.addEventListener(`test`,hn,hn),window.removeEventListener(`test`,hn,hn)}catch{mn=!1}var gn=null,_n=null,vn=null;function yn(){if(vn)return vn;var e,t=_n,n=t.length,r,i=`value`in gn?gn.value:gn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return vn=i.slice(e,1<r?1-r:void 0)}function bn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function xn(){return!0}function Sn(){return!1}function Cn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?xn:Sn,this.isPropagationStopped=Sn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=xn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=xn)},persist:function(){},isPersistent:xn}),t}var wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tn=Cn(wn),En=f({},wn,{view:0,detail:0}),Dn=Cn(En),On,kn,An,jn=f({},En,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==An&&(An&&e.type===`mousemove`?(On=e.screenX-An.screenX,kn=e.screenY-An.screenY):kn=On=0,An=e),On)},movementY:function(e){return`movementY`in e?e.movementY:kn}}),Mn=Cn(jn),Nn=Cn(f({},jn,{dataTransfer:0})),Pn=Cn(f({},En,{relatedTarget:0})),Fn=Cn(f({},wn,{animationName:0,elapsedTime:0,pseudoElement:0})),In=Cn(f({},wn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Ln=Cn(f({},wn,{data:0})),Rn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},zn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Bn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bn[e])?!!t[e]:!1}function Hn(){return Vn}var Un=Cn(f({},En,{key:function(e){if(e.key){var t=Rn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=bn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?zn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hn,charCode:function(e){return e.type===`keypress`?bn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?bn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Wn=Cn(f({},jn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Gn=Cn(f({},En,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hn})),Kn=Cn(f({},wn,{propertyName:0,elapsedTime:0,pseudoElement:0})),qn=Cn(f({},jn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Jn=Cn(f({},wn,{newState:0,oldState:0})),Yn=[9,13,27,32],Xn=pn&&`CompositionEvent`in window,Zn=null;pn&&`documentMode`in document&&(Zn=document.documentMode);var Qn=pn&&`TextEvent`in window&&!Zn,$n=pn&&(!Xn||Zn&&8<Zn&&11>=Zn),er=` `,tr=!1;function nr(e,t){switch(e){case`keyup`:return Yn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function rr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ir=!1;function ar(e,t){switch(e){case`compositionend`:return rr(t);case`keypress`:return t.which===32?(tr=!0,er):null;case`textInput`:return e=t.data,e===er&&tr?null:e;default:return null}}function or(e,t){if(ir)return e===`compositionend`||!Xn&&nr(e,t)?(e=yn(),vn=_n=gn=null,ir=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return $n&&t.locale!==`ko`?null:t.data;default:return null}}var sr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!sr[e.type]:t===`textarea`}function lr(e,t,n,r){sn?cn?cn.push(r):cn=[r]:sn=r,t=Ld(t,`onChange`),0<t.length&&(n=new Tn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ur=null,dr=null;function fr(e){kd(e,0)}function pr(e){if(zt(xt(e)))return e}function I(e,t){if(e===`change`)return t}var mr=!1;if(pn){var hr;if(pn){var gr=`oninput`in document;if(!gr){var _r=document.createElement(`div`);_r.setAttribute(`oninput`,`return;`),gr=typeof _r.oninput==`function`}hr=gr}else hr=!1;mr=hr&&(!document.documentMode||9<document.documentMode)}function vr(){ur&&(ur.detachEvent(`onpropertychange`,yr),dr=ur=null)}function yr(e){if(e.propertyName===`value`&&pr(dr)){var t=[];lr(t,dr,e,on(e)),dn(fr,t)}}function br(e,t,n){e===`focusin`?(vr(),ur=t,dr=n,ur.attachEvent(`onpropertychange`,yr)):e===`focusout`&&vr()}function xr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return pr(dr)}function Sr(e,t){if(e===`click`)return pr(t)}function Cr(e,t){if(e===`input`||e===`change`)return pr(t)}function wr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Tr=typeof Object.is==`function`?Object.is:wr;function Er(e,t){if(Tr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!we.call(t,i)||!Tr(e[i],t[i]))return!1}return!0}function Dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Or(e,t){var n=Dr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Dr(n)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bt(e.document)}return t}function jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Mr=pn&&`documentMode`in document&&11>=document.documentMode,Nr=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Nr==null||Nr!==Bt(r)||(r=Nr,`selectionStart`in r&&jr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Er(Fr,r)||(Fr=r,r=Ld(Pr,`onSelect`),0<r.length&&(t=new Tn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Nr)))}function Rr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var zr={animationend:Rr(`Animation`,`AnimationEnd`),animationiteration:Rr(`Animation`,`AnimationIteration`),animationstart:Rr(`Animation`,`AnimationStart`),transitionrun:Rr(`Transition`,`TransitionRun`),transitionstart:Rr(`Transition`,`TransitionStart`),transitioncancel:Rr(`Transition`,`TransitionCancel`),transitionend:Rr(`Transition`,`TransitionEnd`)},Br={},Vr={};pn&&(Vr=document.createElement(`div`).style,`AnimationEvent`in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),`TransitionEvent`in window||delete zr.transitionend.transition);function Hr(e){if(Br[e])return Br[e];if(!zr[e])return e;var t=zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vr)return Br[e]=t[n];return e}var Ur=Hr(`animationend`),Wr=Hr(`animationiteration`),Gr=Hr(`animationstart`),Kr=Hr(`transitionrun`),qr=Hr(`transitionstart`),Jr=Hr(`transitioncancel`),Yr=Hr(`transitionend`),Xr=new Map,Zr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Zr.push(`scrollEnd`);function Qr(e,t){Xr.set(e,t),Et(t,[e])}var $r=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ei=[],ti=0,ni=0;function ri(){for(var e=ti,t=ni=ti=0;t<e;){var n=ei[t];ei[t++]=null;var r=ei[t];ei[t++]=null;var i=ei[t];ei[t++]=null;var a=ei[t];if(ei[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&si(n,i,a)}}function ii(e,t,n,r){ei[ti++]=e,ei[ti++]=t,ei[ti++]=n,ei[ti++]=r,ni|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ai(e,t,n,r){return ii(e,t,n,r),ci(e)}function oi(e,t){return ii(e,null,null,t),ci(e)}function si(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ve(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ci(e){if(50<Cu)throw Cu=0,wu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var li={};function ui(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function di(e,t,n,r){return new ui(e,t,n,r)}function fi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pi(e,t){var n=e.alternate;return n===null?(n=di(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function mi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function hi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)fi(e)&&(s=1);else if(typeof e==`string`)s=tp(e,n,le.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case te:return e=di(31,n,t,a),e.elementType=te,e.lanes=o,e;case y:return gi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=di(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case E:return e=di(13,n,t,a),e.elementType=E,e.lanes=o,e;case D:return e=di(19,n,t,a),e.elementType=D,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case ee:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=di(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function gi(e,t,n,r){return e=di(7,e,r,t),e.lanes=n,e}function _i(e,t,n){return e=di(6,e,null,t),e.lanes=n,e}function vi(e){var t=di(18,null,null,0);return t.stateNode=e,t}function yi(e,t,n){return t=di(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bi=new WeakMap;function xi(e,t){if(typeof e==`object`&&e){var n=bi.get(e);return n===void 0?(t={value:e,source:t,stack:Ce(t)},bi.set(e,t),t):n}return{value:e,source:t,stack:Ce(t)}}var Si=[],Ci=0,wi=null,Ti=0,Ei=[],Di=0,Oi=null,ki=1,Ai=``;function ji(e,t){Si[Ci++]=Ti,Si[Ci++]=wi,wi=e,Ti=t}function Mi(e,t,n){Ei[Di++]=ki,Ei[Di++]=Ai,Ei[Di++]=Oi,Oi=e;var r=ki;e=Ai;var i=32-Ve(r)-1;r&=~(1<<i),n+=1;var a=32-Ve(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ki=1<<32-Ve(t)+i|n<<i|r,Ai=a+e}else ki=1<<a|n<<i|r,Ai=e}function Ni(e){e.return!==null&&(ji(e,1),Mi(e,1,0))}function Pi(e){for(;e===wi;)wi=Si[--Ci],Si[Ci]=null,Ti=Si[--Ci],Si[Ci]=null;for(;e===Oi;)Oi=Ei[--Di],Ei[Di]=null,Ai=Ei[--Di],Ei[Di]=null,ki=Ei[--Di],Ei[Di]=null}function Fi(e,t){Ei[Di++]=ki,Ei[Di++]=Ai,Ei[Di++]=Oi,ki=t.id,Ai=t.overflow,Oi=e}var Ii=null,Li=null,Ri=!1,zi=null,Bi=!1,Vi=Error(i(519));function Hi(e){throw Ji(xi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Vi}function Ui(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ut]=e,t[dt]=r,n){case`dialog`:Ad(`cancel`,t),Ad(`close`,t);break;case`iframe`:case`object`:case`embed`:Ad(`load`,t);break;case`video`:case`audio`:for(n=0;n<Dd.length;n++)Ad(Dd[n],t);break;case`source`:Ad(`error`,t);break;case`img`:case`image`:case`link`:Ad(`error`,t),Ad(`load`,t);break;case`details`:Ad(`toggle`,t);break;case`input`:Ad(`invalid`,t),Wt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Ad(`invalid`,t);break;case`textarea`:Ad(`invalid`,t),Jt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Ud(t.textContent,n)?(r.popover!=null&&(Ad(`beforetoggle`,t),Ad(`toggle`,t)),r.onScroll!=null&&Ad(`scroll`,t),r.onScrollEnd!=null&&Ad(`scrollend`,t),r.onClick!=null&&(t.onclick=rn),t=!0):t=!1,t||Hi(e,!0)}function Wi(e){for(Ii=e.return;Ii;)switch(Ii.tag){case 5:case 31:case 13:Bi=!1;return;case 27:case 3:Bi=!0;return;default:Ii=Ii.return}}function Gi(e){if(e!==Ii)return!1;if(!Ri)return Wi(e),Ri=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||tf(e.type,e.memoizedProps)),n=!n),n&&Li&&Hi(e),Wi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Li=Sf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Li=Sf(e)}else t===27?(t=Li,uf(e.type)?(e=xf,xf=null,Li=e):Li=t):Li=Ii?bf(e.stateNode.nextSibling):null;return!0}function Ki(){Li=Ii=null,Ri=!1}function qi(){var e=zi;return e!==null&&(uu===null?uu=e:uu.push.apply(uu,e),zi=null),e}function Ji(e){zi===null?zi=[e]:zi.push(e)}var Yi=P(null),Xi=null,Zi=null;function Qi(e,t,n){ce(Yi,t._currentValue),t._currentValue=n}function $i(e){e._currentValue=Yi.current,F(Yi)}function ea(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ta(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ea(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ea(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function na(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Tr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===fe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[up]:e.push(up))}a=a.return}e!==null&&ta(t,e,n,r),t.flags|=262144}function ra(e){for(e=e.firstContext;e!==null;){if(!Tr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ia(e){Xi=e,Zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function aa(e){return sa(Xi,e)}function oa(e,t){return Xi===null&&ia(e),sa(e,t)}function sa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Zi===null){if(e===null)throw Error(i(308));Zi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zi=Zi.next=t;return n}var ca=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},la=t.unstable_scheduleCallback,ua=t.unstable_NormalPriority,da={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fa(){return{controller:new ca,data:new Map,refCount:0}}function pa(e){e.refCount--,e.refCount===0&&la(ua,function(){e.controller.abort()})}var ma=null,ha=0,ga=0,_a=null;function va(e,t){if(ma===null){var n=ma=[];ha=0,ga=Cd(),_a={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ha++,t.then(ya,ya),t}function ya(){if(--ha===0&&ma!==null){_a!==null&&(_a.status=`fulfilled`);var e=ma;ma=null,ga=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ba(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var xa=M.S;M.S=function(e,t){pu=ke(),typeof t==`object`&&t&&typeof t.then==`function`&&va(e,t),xa!==null&&xa(e,t)};var Sa=P(null);function Ca(){var e=Sa.current;return e===null?Yl.pooledCache:e}function wa(e,t){t===null?ce(Sa,Sa.current):ce(Sa,t.pool)}function Ta(){var e=Ca();return e===null?null:{parent:da._currentValue,pool:e}}var Ea=Error(i(460)),Da=Error(i(474)),Oa=Error(i(542)),ka={then:function(){}};function Aa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ja(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(rn,rn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Fa(e),e;default:if(typeof t.status==`string`)t.then(rn,rn);else{if(e=Yl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Fa(e),e}throw Na=t,Ea}}function Ma(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Na=e,Ea):e}}var Na=null;function Pa(){if(Na===null)throw Error(i(459));var e=Na;return Na=null,e}function Fa(e){if(e===Ea||e===Oa)throw Error(i(483))}var Ia=null,La=0;function Ra(e){var t=La;return La+=1,Ia===null&&(Ia=[]),ja(Ia,e,t)}function za(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ba(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Va(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=pi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=_i(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Ma(i)===t.type)?(t=a(t,n.props),za(t,n),t.return=e,t):(t=hi(n.type,n.key,n.props,null,e.mode,r),za(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=yi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=gi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=_i(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=hi(t.type,t.key,t.props,null,e.mode,n),za(n,t),n.return=e,n;case v:return t=yi(t,e.mode,n),t.return=e,t;case O:return t=Ma(t),f(e,t,n)}if(ie(t)||A(t))return t=gi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ra(t),n);if(t.$$typeof===C)return f(e,oa(e,t),n);Ba(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Ma(n),p(e,t,n,r)}if(ie(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ra(n),r);if(n.$$typeof===C)return p(e,t,oa(e,n),r);Ba(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Ma(r),m(e,t,n,r,i)}if(ie(r)||A(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ra(r),i);if(r.$$typeof===C)return m(e,t,n,oa(t,r),i);Ba(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ri&&ji(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Ri&&ji(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Ri&&ji(i,h),l}function _(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ri&&ji(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ri&&ji(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ri&&ji(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Ma(l)===r.type){n(e,r.sibling),c=a(r,o.props),za(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=gi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=hi(o.type,o.key,o.props,null,e.mode,c),za(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=yi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Ma(o),b(e,r,o,c)}if(ie(o))return h(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),_(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ra(o),c);if(o.$$typeof===C)return b(e,r,oa(e,o),c);Ba(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=_i(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{La=0;var i=b(e,t,n,r);return Ia=null,i}catch(t){if(t===Ea||t===Oa)throw t;var a=di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ha=Va(!0),Ua=Va(!1),Wa=!1;function Ga(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ka(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ja(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Jl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ci(e),si(e,null,n),t}return ii(e,r,t,n),ci(e)}function Ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rt(e,n)}}function Xa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Za=!1;function Qa(){if(Za){var e=_a;if(e!==null)throw e}}function $a(e,t,n,r){Za=!1;var i=e.updateQueue;Wa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Zl&p)===p:(r&p)===p){p!==0&&p===ga&&(Za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Wa=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),au|=o,e.lanes=o,e.memoizedState=d}}function eo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function to(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)eo(n[e],t)}var no=P(null),ro=P(0);function io(e,t){e=ru,ce(ro,e),ce(no,t),ru=e|t.baseLanes}function ao(){ce(ro,ru),ce(no,no.current)}function oo(){ru=ro.current,F(no),F(ro)}var so=P(null),co=null;function lo(e){var t=e.alternate;ce(ho,ho.current&1),ce(so,e),co===null&&(t===null||no.current!==null||t.memoizedState!==null)&&(co=e)}function uo(e){ce(ho,ho.current),ce(so,e),co===null&&(co=e)}function fo(e){e.tag===22?(ce(ho,ho.current),ce(so,e),co===null&&(co=e)):po(e)}function po(){ce(ho,ho.current),ce(so,so.current)}function mo(e){F(so),co===e&&(co=null),F(ho)}var ho=P(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_f(n)||vf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _o=0,L=null,vo=null,yo=null,bo=!1,xo=!1,So=!1,Co=0,wo=0,To=null,Eo=0;function Do(){throw Error(i(321))}function Oo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tr(e[n],t[n]))return!1;return!0}function ko(e,t,n,r,i,a){return _o=a,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Ks:qs,So=!1,a=n(r,i),So=!1,xo&&(a=jo(t,n,r,i)),Ao(e),a}function Ao(e){M.H=Gs;var t=vo!==null&&vo.next!==null;if(_o=0,yo=vo=L=null,bo=!1,wo=0,To=null,t)throw Error(i(300));e===null||uc||(e=e.dependencies,e!==null&&ra(e)&&(uc=!0))}function jo(e,t,n,r){L=e;var a=0;do{if(xo&&(To=null),wo=0,xo=!1,25<=a)throw Error(i(301));if(a+=1,yo=vo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}M.H=Js,o=t(n,r)}while(xo);return o}function Mo(){var e=M.H,t=e.useState()[0];return t=typeof t.then==`function`?zo(t):t,e=e.useState()[0],(vo===null?null:vo.memoizedState)!==e&&(L.flags|=1024),t}function No(){var e=Co!==0;return Co=0,e}function Po(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Fo(e){if(bo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bo=!1}_o=0,yo=vo=L=null,xo=!1,wo=Co=0,To=null}function Io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yo===null?L.memoizedState=yo=e:yo=yo.next=e,yo}function Lo(){if(vo===null){var e=L.alternate;e=e===null?null:e.memoizedState}else e=vo.next;var t=yo===null?L.memoizedState:yo.next;if(t!==null)yo=t,vo=e;else{if(e===null)throw L.alternate===null?Error(i(467)):Error(i(310));vo=e,e={memoizedState:vo.memoizedState,baseState:vo.baseState,baseQueue:vo.baseQueue,queue:vo.queue,next:null},yo===null?L.memoizedState=yo=e:yo=yo.next=e}return yo}function Ro(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zo(e){var t=wo;return wo+=1,To===null&&(To=[]),e=ja(To,e,t),t=L,(yo===null?t.memoizedState:yo.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Ks:qs),e}function Bo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return zo(e);if(e.$$typeof===C)return aa(e)}throw Error(i(438,String(e)))}function Vo(e){var t=null,n=L.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=L.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Ro(),L.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=k;return t.index++,n}function Ho(e,t){return typeof t==`function`?t(e):t}function Uo(e){return Wo(Lo(),vo,e)}function Wo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(_o&f)===f:(Zl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ga&&(d=!0);else if((_o&p)===p){u=u.next,p===ga&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,L.lanes|=p,au|=p;f=u.action,So&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,L.lanes|=f,au|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Tr(o,e.memoizedState)&&(uc=!0,d&&(n=_a,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Go(e){var t=Lo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Tr(o,t.memoizedState)||(uc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ko(e,t,n){var r=L,a=Lo(),o=Ri;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Tr((vo||a).memoizedState,n);if(s&&(a.memoizedState=n,uc=!0),a=a.queue,_s(Yo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||yo!==null&&yo.memoizedState.tag&1){if(r.flags|=2048,fs(9,{destroy:void 0},Jo.bind(null,r,a,n,t),null),Yl===null)throw Error(i(349));o||_o&127||qo(r,t,n)}return n}function qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t=Ro(),L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jo(e,t,n,r){t.value=n,t.getSnapshot=r,Xo(t)&&Zo(e)}function Yo(e,t,n){return n(function(){Xo(t)&&Zo(e)})}function Xo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tr(e,n)}catch{return!0}}function Zo(e){var t=oi(e,2);t!==null&&Du(t,e,2)}function Qo(e){var t=Io();if(typeof e==`function`){var n=e;if(e=n(),So){Be(!0);try{n()}finally{Be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:e},t}function $o(e,t,n,r){return e.baseState=n,Wo(e,vo,typeof r==`function`?r:Ho)}function es(e,t,n,r,a){if(Hs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};M.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ts(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ts(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=M.T,o={};M.T=o;try{var s=n(i,r),c=M.S;c!==null&&c(o,s),ns(e,t,s)}catch(n){is(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),M.T=a}}else try{a=n(i,r),ns(e,t,a)}catch(n){is(e,t,n)}}function ns(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){rs(e,t,n)},function(n){return is(e,t,n)}):rs(e,t,n)}function rs(e,t,n){t.status=`fulfilled`,t.value=n,as(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ts(e,n)))}function is(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,as(t),t=t.next;while(t!==r)}e.action=null}function as(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function os(e,t){return t}function ss(e,t){if(Ri){var n=Yl.formState;if(n!==null){a:{var r=L;if(Ri){if(Li){b:{for(var i=Li,a=Bi;i.nodeType!==8;){if(!a){i=null;break b}if(i=bf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Li=bf(i.nextSibling),r=i.data===`F!`;break a}}Hi(r)}r=!1}r&&(t=n[0])}}return n=Io(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:t},n.queue=r,n=zs.bind(null,L,r),r.dispatch=n,r=Qo(!1),a=Vs.bind(null,L,!1,r.queue),r=Io(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=es.bind(null,L,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function cs(e){return ls(Lo(),vo,e)}function ls(e,t,n){if(t=Wo(e,t,os)[0],e=Uo(Ho)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=zo(t)}catch(e){throw e===Ea?Oa:e}else r=t;t=Lo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(L.flags|=2048,fs(9,{destroy:void 0},us.bind(null,i,n),null)),[r,a,e]}function us(e,t){e.action=t}function ds(e){var t=Lo(),n=vo;if(n!==null)return ls(t,n,e);Lo(),t=t.memoizedState,n=Lo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function fs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=L.updateQueue,t===null&&(t=Ro(),L.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ps(){return Lo().memoizedState}function ms(e,t,n,r){var i=Io();L.flags|=e,i.memoizedState=fs(1|t,{destroy:void 0},n,r===void 0?null:r)}function hs(e,t,n,r){var i=Lo();r=r===void 0?null:r;var a=i.memoizedState.inst;vo!==null&&r!==null&&Oo(r,vo.memoizedState.deps)?i.memoizedState=fs(t,a,n,r):(L.flags|=e,i.memoizedState=fs(1|t,a,n,r))}function gs(e,t){ms(8390656,8,e,t)}function _s(e,t){hs(2048,8,e,t)}function vs(e){L.flags|=4;var t=L.updateQueue;if(t===null)t=Ro(),L.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ys(e){var t=Lo().memoizedState;return vs({ref:t,nextImpl:e}),function(){if(Jl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function bs(e,t){return hs(4,2,e,t)}function xs(e,t){return hs(4,4,e,t)}function Ss(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Cs(e,t,n){n=n==null?null:n.concat([e]),hs(4,4,Ss.bind(null,t,e),n)}function ws(){}function Ts(e,t){var n=Lo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Oo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Es(e,t){var n=Lo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Oo(t,r[1]))return r[0];if(r=e(),So){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r}function Ds(e,t,n){return n===void 0||_o&1073741824&&!(Zl&261930)?e.memoizedState=t:(e.memoizedState=n,e=Eu(),L.lanes|=e,au|=e,n)}function Os(e,t,n,r){return Tr(n,t)?n:no.current===null?!(_o&42)||_o&1073741824&&!(Zl&261930)?(uc=!0,e.memoizedState=n):(e=Eu(),L.lanes|=e,au|=e,t):(e=Ds(e,n,r),Tr(e,t)||(uc=!0),e)}function ks(e,t,n,r,i){var a=N.p;N.p=a!==0&&8>a?a:8;var o=M.T,s={};M.T=s,Vs(e,!1,t,n);try{var c=i(),l=M.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Bs(e,t,ba(c,r),Tu(e)):Bs(e,t,r,Tu(e))}catch(n){Bs(e,t,{then:function(){},status:`rejected`,reason:n},Tu())}finally{N.p=a,o!==null&&s.types!==null&&(o.types=s.types),M.T=o}}function As(){}function js(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ms(e).queue;ks(e,a,t,ae,n===null?As:function(){return Ns(e),n(r)})}function Ms(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ns(e){var t=Ms(e);t.next===null&&(t=e.alternate.memoizedState),Bs(e,t.next.queue,{},Tu())}function Ps(){return aa(up)}function Fs(){return Lo().memoizedState}function Is(){return Lo().memoizedState}function Ls(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Tu();e=qa(n);var r=Ja(t,e,n);r!==null&&(Du(r,t,n),Ya(r,t,n)),t={cache:fa()},e.payload=t;return}t=t.return}}function Rs(e,t,n){var r=Tu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Hs(e)?Us(t,n):(n=ai(e,t,n,r),n!==null&&(Du(n,e,r),Ws(n,t,r)))}function zs(e,t,n){Bs(e,t,n,Tu())}function Bs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hs(e))Us(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Tr(s,o))return ii(e,t,i,0),Yl===null&&ri(),!1}catch{}if(n=ai(e,t,i,r),n!==null)return Du(n,e,r),Ws(n,t,r),!0}return!1}function Vs(e,t,n,r){if(r={lane:2,revertLane:Cd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Hs(e)){if(t)throw Error(i(479))}else t=ai(e,n,r,2),t!==null&&Du(t,e,2)}function Hs(e){var t=e.alternate;return e===L||t!==null&&t===L}function Us(e,t){xo=bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ws(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rt(e,n)}}var Gs={readContext:aa,use:Bo,useCallback:Do,useContext:Do,useEffect:Do,useImperativeHandle:Do,useLayoutEffect:Do,useInsertionEffect:Do,useMemo:Do,useReducer:Do,useRef:Do,useState:Do,useDebugValue:Do,useDeferredValue:Do,useTransition:Do,useSyncExternalStore:Do,useId:Do,useHostTransitionStatus:Do,useFormState:Do,useActionState:Do,useOptimistic:Do,useMemoCache:Do,useCacheRefresh:Do};Gs.useEffectEvent=Do;var Ks={readContext:aa,use:Bo,useCallback:function(e,t){return Io().memoizedState=[e,t===void 0?null:t],e},useContext:aa,useEffect:gs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ms(4194308,4,Ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ms(4194308,4,e,t)},useInsertionEffect:function(e,t){ms(4,2,e,t)},useMemo:function(e,t){var n=Io();t=t===void 0?null:t;var r=e();if(So){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Io();if(n!==void 0){var i=n(t);if(So){Be(!0);try{n(t)}finally{Be(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Rs.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=Io();return e={current:e},t.memoizedState=e},useState:function(e){e=Qo(e);var t=e.queue,n=zs.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ws,useDeferredValue:function(e,t){return Ds(Io(),e,t)},useTransition:function(){var e=Qo(!1);return e=ks.bind(null,L,e.queue,!0,!1),Io().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,a=Io();if(Ri){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Yl===null)throw Error(i(349));Zl&127||qo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,gs(Yo.bind(null,r,o,e),[e]),r.flags|=2048,fs(9,{destroy:void 0},Jo.bind(null,r,o,n,t),null),n},useId:function(){var e=Io(),t=Yl.identifierPrefix;if(Ri){var n=Ai,r=ki;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Co++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Eo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ps,useFormState:ss,useActionState:ss,useOptimistic:function(e){var t=Io();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Vs.bind(null,L,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vo,useCacheRefresh:function(){return Io().memoizedState=Ls.bind(null,L)},useEffectEvent:function(e){var t=Io(),n={impl:e};return t.memoizedState=n,function(){if(Jl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},qs={readContext:aa,use:Bo,useCallback:Ts,useContext:aa,useEffect:_s,useImperativeHandle:Cs,useInsertionEffect:bs,useLayoutEffect:xs,useMemo:Es,useReducer:Uo,useRef:ps,useState:function(){return Uo(Ho)},useDebugValue:ws,useDeferredValue:function(e,t){return Os(Lo(),vo.memoizedState,e,t)},useTransition:function(){var e=Uo(Ho)[0],t=Lo().memoizedState;return[typeof e==`boolean`?e:zo(e),t]},useSyncExternalStore:Ko,useId:Fs,useHostTransitionStatus:Ps,useFormState:cs,useActionState:cs,useOptimistic:function(e,t){return $o(Lo(),vo,e,t)},useMemoCache:Vo,useCacheRefresh:Is};qs.useEffectEvent=ys;var Js={readContext:aa,use:Bo,useCallback:Ts,useContext:aa,useEffect:_s,useImperativeHandle:Cs,useInsertionEffect:bs,useLayoutEffect:xs,useMemo:Es,useReducer:Go,useRef:ps,useState:function(){return Go(Ho)},useDebugValue:ws,useDeferredValue:function(e,t){var n=Lo();return vo===null?Ds(n,e,t):Os(n,vo.memoizedState,e,t)},useTransition:function(){var e=Go(Ho)[0],t=Lo().memoizedState;return[typeof e==`boolean`?e:zo(e),t]},useSyncExternalStore:Ko,useId:Fs,useHostTransitionStatus:Ps,useFormState:ds,useActionState:ds,useOptimistic:function(e,t){var n=Lo();return vo===null?(n.baseState=e,[e,n.queue.dispatch]):$o(n,vo,e,t)},useMemoCache:Vo,useCacheRefresh:Is};Js.useEffectEvent=ys;function Ys(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Tu(),i=qa(r);i.payload=t,n!=null&&(i.callback=n),t=Ja(e,i,r),t!==null&&(Du(t,e,r),Ya(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Tu(),i=qa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ja(e,i,r),t!==null&&(Du(t,e,r),Ya(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tu(),r=qa(n);r.tag=2,t!=null&&(r.callback=t),t=Ja(e,r,n),t!==null&&(Du(t,e,n),Ya(t,e,n))}};function Zs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Er(n,r)||!Er(i,a):!0}function Qs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xs.enqueueReplaceState(t,t.state,null)}function $s(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function ec(e){$r(e)}function tc(e){console.error(e)}function nc(e){$r(e)}function rc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ic(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ac(e,t,n){return n=qa(n),n.tag=3,n.payload={element:null},n.callback=function(){rc(e,t)},n}function oc(e){return e=qa(e),e.tag=3,e}function sc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){ic(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){ic(t,n,r),typeof i!=`function`&&(hu===null?hu=new Set([this]):hu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function cc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&na(t,n,a,!0),n=so.current,n!==null){switch(n.tag){case 31:case 13:return co===null?zu():n.alternate===null&&iu===0&&(iu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ka?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),id(e,r,a)),!1;case 22:return n.flags|=65536,r===ka?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),id(e,r,a)),!1}throw Error(i(435,n.tag))}return id(e,r,a),zu(),!1}if(Ri)return t=so.current,t===null?(r!==Vi&&(t=Error(i(423),{cause:r}),Ji(xi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=xi(r,n),a=ac(e.stateNode,r,a),Xa(e,a),iu!==4&&(iu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Vi&&(e=Error(i(422),{cause:r}),Ji(xi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=xi(o,n),lu===null?lu=[o]:lu.push(o),iu!==4&&(iu=2),t===null)return!0;r=xi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=ac(n.stateNode,r,e),Xa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(hu===null||!hu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=oc(a),sc(a,e,n,r),Xa(n,a),!1}n=n.return}while(n!==null);return!1}var lc=Error(i(461)),uc=!1;function dc(e,t,n,r){t.child=e===null?Ua(t,null,n,r):Ha(t,e.child,n,r)}function fc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ia(t),r=ko(e,t,n,o,a,i),s=No(),e!==null&&!uc?(Po(e,t,i),Ic(e,t,i)):(Ri&&s&&Ni(t),t.flags|=1,dc(e,t,r,i),t.child)}function pc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!fi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,mc(e,t,a,r,i)):(e=hi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Lc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Er:n,n(o,r)&&e.ref===t.ref)return Ic(e,t,i)}return t.flags|=1,e=pi(a,r),e.ref=t.ref,e.return=t,t.child=e}function mc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Er(a,r)&&e.ref===t.ref)if(uc=!1,t.pendingProps=r=a,Lc(e,i))e.flags&131072&&(uc=!0);else return t.lanes=e.lanes,Ic(e,t,i)}return Sc(e,t,n,r,i)}function hc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return _c(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wa(t,a===null?null:a.cachePool),a===null?ao():io(t,a),fo(t);else return r=t.lanes=536870912,_c(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&wa(t,null),ao(),po(t)):(wa(t,a.cachePool),io(t,a),po(t),t.memoizedState=null);return dc(e,t,i,n),t.child}function gc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function _c(e,t,n,r,i){var a=Ca();return a=a===null?null:{parent:da._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&wa(t,null),ao(),fo(t),e!==null&&na(e,t,r,!0),t.childLanes=i,null}function vc(e,t){return t=jc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yc(e,t,n){return Ha(t,e.child,null,n),e=vc(t,t.pendingProps),e.flags|=2,mo(t),t.memoizedState=null,e}function bc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Ri){if(r.mode===`hidden`)return e=vc(t,r),t.lanes=536870912,gc(null,e);if(uo(t),(e=Li)?(e=gf(e,Bi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oi===null?null:{id:ki,overflow:Ai},retryLane:536870912,hydrationErrors:null},n=vi(e),n.return=t,t.child=n,Ii=t,Li=null)):e=null,e===null)throw Hi(t);return t.lanes=536870912,null}return vc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(uo(t),a)if(t.flags&256)t.flags&=-257,t=yc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(uc||na(e,t,n,!1),a=(n&e.childLanes)!==0,uc||a){if(r=Yl,r!==null&&(s=it(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,oi(e,s),Du(r,e,s),lc;zu(),t=yc(e,t,n)}else e=o.treeContext,Li=bf(s.nextSibling),Ii=t,Ri=!0,zi=null,Bi=!1,e!==null&&Fi(t,e),t=vc(t,r),t.flags|=4096;return t}return e=pi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function xc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Sc(e,t,n,r,i){return ia(t),n=ko(e,t,n,r,void 0,i),r=No(),e!==null&&!uc?(Po(e,t,i),Ic(e,t,i)):(Ri&&r&&Ni(t),t.flags|=1,dc(e,t,n,i),t.child)}function Cc(e,t,n,r,i,a){return ia(t),t.updateQueue=null,n=jo(t,r,n,i),Ao(e),r=No(),e!==null&&!uc?(Po(e,t,a),Ic(e,t,a)):(Ri&&r&&Ni(t),t.flags|=1,dc(e,t,n,a),t.child)}function wc(e,t,n,r,i){if(ia(t),t.stateNode===null){var a=li,o=n.contextType;typeof o==`object`&&o&&(a=aa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Xs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ga(t),o=n.contextType,a.context=typeof o==`object`&&o?aa(o):li,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ys(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Xs.enqueueReplaceState(a,a.state,null),$a(t,r,a,i),Qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=$s(n,s);a.props=c;var l=a.context,u=n.contextType;o=li,typeof u==`object`&&u&&(o=aa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Qs(t,a,r,o),Wa=!1;var f=t.memoizedState;a.state=f,$a(t,r,a,i),Qa(),l=t.memoizedState,s||f!==l||Wa?(typeof d==`function`&&(Ys(t,n,d,r),l=t.memoizedState),(c=Wa||Zs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ka(e,t),o=t.memoizedProps,u=$s(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=li,typeof l==`object`&&l&&(c=aa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Qs(t,a,r,c),Wa=!1,f=t.memoizedState,a.state=f,$a(t,r,a,i),Qa();var p=t.memoizedState;o!==d||f!==p||Wa||e!==null&&e.dependencies!==null&&ra(e.dependencies)?(typeof s==`function`&&(Ys(t,n,s,r),p=t.memoizedState),(u=Wa||Zs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ra(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,xc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ha(t,e.child,null,i),t.child=Ha(t,null,n,i)):dc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ic(e,t,i),e}function Tc(e,t,n,r){return Ki(),t.flags|=256,dc(e,t,n,r),t.child}var Ec={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dc(e){return{baseLanes:e,cachePool:Ta()}}function Oc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=R),e}function kc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(ho.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Ri){if(a?lo(t):po(t),(e=Li)?(e=gf(e,Bi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oi===null?null:{id:ki,overflow:Ai},retryLane:536870912,hydrationErrors:null},n=vi(e),n.return=t,t.child=n,Ii=t,Li=null)):e=null,e===null)throw Hi(t);return vf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(po(t),a=t.mode,c=jc({mode:`hidden`,children:c},a),r=gi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Dc(n),r.childLanes=Oc(e,s,n),t.memoizedState=Ec,gc(null,r)):(lo(t),Ac(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(lo(t),t.flags&=-257,t=Mc(e,t,n)):t.memoizedState===null?(po(t),c=r.fallback,a=t.mode,r=jc({mode:`visible`,children:r.children},a),c=gi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ha(t,e.child,null,n),r=t.child,r.memoizedState=Dc(n),r.childLanes=Oc(e,s,n),t.memoizedState=Ec,t=gc(null,r)):(po(t),t.child=e.child,t.flags|=128,t=null);else if(lo(t),vf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ji({value:r,source:null,stack:null}),t=Mc(e,t,n)}else if(uc||na(e,t,n,!1),s=(n&e.childLanes)!==0,uc||s){if(s=Yl,s!==null&&(r=it(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,oi(e,r),Du(s,e,r),lc;_f(c)||zu(),t=Mc(e,t,n)}else _f(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Li=bf(c.nextSibling),Ii=t,Ri=!0,zi=null,Bi=!1,e!==null&&Fi(t,e),t=Ac(t,r.children),t.flags|=4096);return t}return a?(po(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=pi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=gi(c,a,n,null),c.flags|=2):c=pi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,gc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Dc(n):(a=c.cachePool,a===null?a=Ta():(l=da._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Oc(e,s,n),t.memoizedState=Ec,gc(e.child,r)):(lo(t),n=e.child,e=n.sibling,n=pi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Ac(e,t){return t=jc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function jc(e,t){return e=di(22,e,null,t),e.lanes=0,e}function Mc(e,t,n){return Ha(t,e.child,null,n),e=Ac(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ea(e.return,t,n)}function Pc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Fc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ho.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,ce(ho,o),dc(e,t,r,n),r=Ri?Ti:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nc(e,n,t);else if(e.tag===19)Nc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&go(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Pc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Pc(t,!0,n,null,a,r);break;case`together`:Pc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ic(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),au|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(na(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=pi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Lc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ra(e))):!0}function Rc(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Qi(t,da,e.memoizedState.cache),Ki();break;case 27:case 5:he(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Qi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,uo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(lo(t),e=Ic(e,t,n),e===null?null:e.sibling):kc(e,t,n):(lo(t),t.flags|=128,null);lo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(na(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Fc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ce(ho,ho.current),r)break;return null;case 22:return t.lanes=0,hc(e,t,n,t.pendingProps);case 24:Qi(t,da,e.memoizedState.cache)}return Ic(e,t,n)}function zc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)uc=!0;else{if(!Lc(e,n)&&!(t.flags&128))return uc=!1,Rc(e,t,n);uc=!!(e.flags&131072)}else uc=!1,Ri&&t.flags&1048576&&Mi(t,Ti,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ma(t.elementType),t.type=e,typeof e==`function`)fi(e)?(r=$s(e,r),t.tag=1,t=wc(null,t,e,r,n)):(t.tag=0,t=Sc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=fc(null,t,e,r,n);break a}else if(a===ee){t.tag=14,t=pc(null,t,e,r,n);break a}}throw t=re(e)||e,Error(i(306,t,``))}}return t;case 0:return Sc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=$s(r,t.pendingProps),wc(e,t,r,a,n);case 3:a:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ka(e,t),$a(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Qi(t,da,r),r!==o.cache&&ta(t,[da],n,!0),Qa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Tc(e,t,r,n);break a}else if(r!==a){a=xi(Error(i(424)),t),Ji(a),t=Tc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Li=bf(e.firstChild),Ii=t,Ri=!0,zi=null,Bi=!0,n=Ua(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ki(),r===a){t=Ic(e,t,n);break a}dc(e,t,r,n)}t=t.child}return t;case 26:return xc(e,t),e===null?(n=Vf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ri||(n=t.type,e=t.pendingProps,r=Qd(de.current).createElement(n),r[ut]=t,r[dt]=e,Kd(r,n,e),Ct(r),t.stateNode=r):t.memoizedState=Vf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&Ri&&(r=t.stateNode=wf(t.type,t.pendingProps,de.current),Ii=t,Bi=!0,a=Li,uf(t.type)?(xf=a,Li=bf(r.firstChild)):Li=a),dc(e,t,t.pendingProps.children,n),xc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ri&&((a=r=Li)&&(r=mf(r,t.type,t.pendingProps,Bi),r===null?a=!1:(t.stateNode=r,Ii=t,Li=bf(r.firstChild),Bi=!1,a=!0)),a||Hi(t)),he(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,tf(a,o)?r=null:s!==null&&tf(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=ko(e,t,Mo,null,null,n),up._currentValue=a),xc(e,t),dc(e,t,r,n),t.child;case 6:return e===null&&Ri&&((e=n=Li)&&(n=hf(n,t.pendingProps,Bi),n===null?e=!1:(t.stateNode=n,Ii=t,Li=null,e=!0)),e||Hi(t)),null;case 13:return kc(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ha(t,null,r,n):dc(e,t,r,n),t.child;case 11:return fc(e,t,t.type,t.pendingProps,n);case 7:return dc(e,t,t.pendingProps,n),t.child;case 8:return dc(e,t,t.pendingProps.children,n),t.child;case 12:return dc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Qi(t,t.type,r.value),dc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ia(t),a=aa(a),r=r(a),t.flags|=1,dc(e,t,r,n),t.child;case 14:return pc(e,t,t.type,t.pendingProps,n);case 15:return mc(e,t,t.type,t.pendingProps,n);case 19:return Fc(e,t,n);case 31:return bc(e,t,n);case 22:return hc(e,t,n,t.pendingProps);case 24:return ia(t),r=aa(da),e===null?(a=Ca(),a===null&&(a=Yl,o=fa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ga(t),Qi(t,da,a)):((e.lanes&n)!==0&&(Ka(e,t),$a(t,null,null,n),Qa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Qi(t,da,r),r!==a.cache&&ta(t,[da],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Qi(t,da,r))),dc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Bc(e){e.flags|=4}function Vc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Iu())e.flags|=8192;else throw Na=ka,Da}else e.flags&=-16777217}function Hc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!np(t))if(Iu())e.flags|=8192;else throw Na=ka,Da}function Uc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Qe(),e.lanes|=t,cu|=t)}function Wc(e,t){if(!Ri)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kc(e,t,n){var r=t.pendingProps;switch(Pi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gc(t),null;case 1:return Gc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),$i(da),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?Bc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,qi())),Gc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Bc(t),o===null?(Gc(t),Vc(t,a,null,r,n)):(Gc(t),Hc(t,o))):o?o===e.memoizedState?(Gc(t),t.flags&=-16777217):(Bc(t),Gc(t),Hc(t,o)):(e=e.memoizedProps,e!==r&&Bc(t),Gc(t),Vc(t,a,e,r,n)),null;case 27:if(ge(t),n=de.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Bc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Gc(t),null}e=le.current,Gi(t)?Ui(t,e):(e=wf(a,r,n),t.stateNode=e,Bc(t))}return Gc(t),null;case 5:if(ge(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Bc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Gc(t),null}if(o=le.current,Gi(t))Ui(t,o);else{var s=Qd(de.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ut]=t,o[dt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Kd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Bc(t)}}return Gc(t),Vc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Bc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=de.current,Gi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ii,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Ud(e.nodeValue,n)),e||Hi(t,!0)}else e=Qd(e).createTextNode(r),e[ut]=t,t.stateNode=e}return Gc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Gi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ut]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Gc(t),e=!1}else n=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(mo(t),t):(mo(t),null);if(t.flags&128)throw Error(i(558))}return Gc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ut]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Gc(t),a=!1}else a=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(mo(t),t):(mo(t),null)}return mo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Uc(t,t.updateQueue),Gc(t),null);case 4:return me(),e===null&&Nd(t.stateNode.containerInfo),Gc(t),null;case 10:return $i(t.type),Gc(t),null;case 19:if(F(ho),r=t.memoizedState,r===null)return Gc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Wc(r,!1);else{if(iu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=go(e),o!==null){for(t.flags|=128,Wc(r,!1),e=o.updateQueue,t.updateQueue=e,Uc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mi(n,e),n=n.sibling;return ce(ho,ho.current&1|2),Ri&&ji(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ke()>mu&&(t.flags|=128,a=!0,Wc(r,!1),t.lanes=4194304)}else{if(!a)if(e=go(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Uc(t,e),Wc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ri)return Gc(t),null}else 2*ke()-r.renderingStartTime>mu&&n!==536870912&&(t.flags|=128,a=!0,Wc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Gc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ke(),e.sibling=null,n=ho.current,ce(ho,a?n&1|2:n&1),Ri&&ji(t,r.treeForkCount),e);case 22:case 23:return mo(t),oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Gc(t),t.subtreeFlags&6&&(t.flags|=8192)):Gc(t),n=t.updateQueue,n!==null&&Uc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&F(Sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),$i(da),Gc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function qc(e,t){switch(Pi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $i(da),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(mo(t),t.alternate===null)throw Error(i(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(ho),null;case 4:return me(),null;case 10:return $i(t.type),null;case 22:case 23:return mo(t),oo(),e!==null&&F(Sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $i(da),null;case 25:return null;default:return null}}function Jc(e,t){switch(Pi(t),t.tag){case 3:$i(da),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&mo(t);break;case 13:mo(t);break;case 19:F(ho);break;case 10:$i(t.type);break;case 22:case 23:mo(t),oo(),e!==null&&F(Sa);break;case 24:$i(da)}}function Yc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){rd(t,t.return,e)}}function Xc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){rd(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){rd(t,t.return,e)}}function Zc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{to(t,n)}catch(t){rd(e,e.return,t)}}}function Qc(e,t,n){n.props=$s(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){rd(e,t,n)}}function $c(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){rd(e,t,n)}}function el(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){rd(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){rd(e,t,n)}else n.current=null}function tl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){rd(e,e.return,t)}}function nl(e,t,n){try{var r=e.stateNode;qd(r,e.type,n,t),r[dt]=t}catch(t){rd(e,e.return,t)}}function rl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&uf(e.type)||e.tag===4}function il(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||rl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&uf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function al(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=rn));else if(r!==4&&(r===27&&uf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(al(e,t,n),e=e.sibling;e!==null;)al(e,t,n),e=e.sibling}function ol(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&uf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ol(e,t,n),e=e.sibling;e!==null;)ol(e,t,n),e=e.sibling}function sl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Kd(t,r,n),t[ut]=e,t[dt]=n}catch(t){rd(e,e.return,t)}}var cl=!1,ll=!1,ul=!1,dl=typeof WeakSet==`function`?WeakSet:Set,fl=null;function pl(e,t){if(e=e.containerInfo,Xd=yp,e=Ar(e),jr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Zd={focusedElem:e,selectionRange:n},yp=!1,fl=t;fl!==null;)if(t=fl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,fl=e;else for(;fl!==null;){switch(t=fl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=$s(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){rd(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)pf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:pf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,fl=e;break}fl=t.return}}function ml(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:kl(e,n),r&4&&Yc(5,n);break;case 1:if(kl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){rd(n,n.return,e)}else{var i=$s(n.type,t.memoizedProps);t=t.memoizedState;
vendor: 5,412 bytes, line 9
9try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){rd(n,n.return,e)}}r&64&&Zc(n),r&512&&$c(n,n.return);break;case 3:if(kl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{to(e,t)}catch(e){rd(n,n.return,e)}}break;case 27:t===null&&r&4&&sl(n);case 26:case 5:kl(e,n),t===null&&r&4&&tl(n),r&512&&$c(n,n.return);break;case 12:kl(e,n);break;case 31:kl(e,n),r&4&&bl(e,n);break;case 13:kl(e,n),r&4&&xl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sd.bind(null,n),yf(e,n))));break;case 22:if(r=n.memoizedState!==null||cl,!r){t=t!==null&&t.memoizedState!==null||ll,i=cl;var a=ll;cl=r,(ll=t)&&!a?jl(e,n,(n.subtreeFlags&8772)!=0):kl(e,n),cl=i,ll=a}break;case 30:break;default:kl(e,n)}}function hl(e){var t=e.alternate;t!==null&&(e.alternate=null,hl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var gl=null,_l=!1;function vl(e,t,n){for(n=n.child;n!==null;)yl(e,t,n),n=n.sibling}function yl(e,t,n){if(ze&&typeof ze.onCommitFiberUnmount==`function`)try{ze.onCommitFiberUnmount(Re,n)}catch{}switch(n.tag){case 26:ll||el(n,t),vl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ll||el(n,t);var r=gl,i=_l;uf(n.type)&&(gl=n.stateNode,_l=!1),vl(e,t,n),Tf(n.stateNode),gl=r,_l=i;break;case 5:ll||el(n,t);case 6:if(r=gl,i=_l,gl=null,vl(e,t,n),gl=r,_l=i,gl!==null)if(_l)try{(gl.nodeType===9?gl.body:gl.nodeName===`HTML`?gl.ownerDocument.body:gl).removeChild(n.stateNode)}catch(e){rd(n,t,e)}else try{gl.removeChild(n.stateNode)}catch(e){rd(n,t,e)}break;case 18:gl!==null&&(_l?(e=gl,df(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Gp(e)):df(gl,n.stateNode));break;case 4:r=gl,i=_l,gl=n.stateNode.containerInfo,_l=!0,vl(e,t,n),gl=r,_l=i;break;case 0:case 11:case 14:case 15:Xc(2,n,t),ll||Xc(4,n,t),vl(e,t,n);break;case 1:ll||(el(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Qc(n,t,r)),vl(e,t,n);break;case 21:vl(e,t,n);break;case 22:ll=(r=ll)||n.memoizedState!==null,vl(e,t,n),ll=r;break;default:vl(e,t,n)}}function bl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gp(e)}catch(e){rd(t,t.return,e)}}}function xl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gp(e)}catch(e){rd(t,t.return,e)}}function Sl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dl),t;default:throw Error(i(435,e.tag))}}function Cl(e,t){var n=Sl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=cd.bind(null,e,t);t.then(r,r)}})}function wl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(uf(c.type)){gl=c.stateNode,_l=!1;break a}break;case 5:gl=c.stateNode,_l=!1;break a;case 3:case 4:gl=c.stateNode.containerInfo,_l=!0;break a}c=c.return}if(gl===null)throw Error(i(160));yl(o,s,a),gl=null,_l=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)El(t,e),t=t.sibling}var Tl=null;function El(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wl(t,e),Dl(e),r&4&&(Xc(3,e,e.return),Yc(3,e),Xc(5,e,e.return));break;case 1:wl(t,e),Dl(e),r&512&&(ll||n===null||el(n,n.return)),r&64&&cl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Tl;if(wl(t,e),Dl(e),r&512&&(ll||n===null||el(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[_t]||o[ut]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Kd(o,r,n),o[ut]=e,Ct(o),r=o;break a;case`link`:var s=$f(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Kd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=$f(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Kd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ut]=e,Ct(o),r=o}e.stateNode=r}else ep(a,e.type,e.stateNode);else e.stateNode=Jf(a,r,e.memoizedProps);
vendor: 22,718 bytes, line 9
9else o===r?r===null&&e.stateNode!==null&&nl(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?ep(a,e.type,e.stateNode):Jf(a,r,e.memoizedProps))}break;case 27:wl(t,e),Dl(e),r&512&&(ll||n===null||el(n,n.return)),n!==null&&r&4&&nl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(wl(t,e),Dl(e),r&512&&(ll||n===null||el(n,n.return)),e.flags&32){a=e.stateNode;try{Yt(a,``)}catch(t){rd(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,nl(e,a,n===null?a:n.memoizedProps)),r&1024&&(ul=!0);break;case 6:if(wl(t,e),Dl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){rd(e,e.return,t)}}break;case 3:if(Qf=null,a=Tl,Tl=Of(t.containerInfo),wl(t,e),Tl=a,Dl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Gp(t.containerInfo)}catch(t){rd(e,e.return,t)}ul&&(ul=!1,Ol(e));break;case 4:r=Tl,Tl=Of(e.stateNode.containerInfo),wl(t,e),Dl(e),Tl=r;break;case 12:wl(t,e),Dl(e);break;case 31:wl(t,e),Dl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cl(e,r)));break;case 13:wl(t,e),Dl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(fu=ke()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=cl,d=ll;if(cl=u||a,ll=d||l,wl(t,e),ll=d,cl=u,Dl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||cl||ll||Al(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){rd(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){rd(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?ff(m,!0):ff(l.stateNode,!1)}catch(e){rd(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Cl(e,n))));break;case 19:wl(t,e),Dl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cl(e,r)));break;case 30:break;case 21:break;default:wl(t,e),Dl(e)}}function Dl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(rl(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;ol(e,il(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Yt(o,``),n.flags&=-33),ol(e,il(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;al(e,il(e),s);break;default:throw Error(i(161))}}catch(t){rd(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ol(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ol(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function kl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ml(e,t.alternate,t),t=t.sibling}function Al(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xc(4,t,t.return),Al(t);break;case 1:el(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Qc(t,t.return,n),Al(t);break;case 27:Tf(t.stateNode);case 26:case 5:el(t,t.return),Al(t);break;case 22:t.memoizedState===null&&Al(t);break;case 30:Al(t);break;default:Al(t)}e=e.sibling}}function jl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:jl(i,a,n),Yc(4,a);break;case 1:if(jl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){rd(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)eo(c[i],s)}catch(e){rd(r,r.return,e)}}n&&o&64&&Zc(a),$c(a,a.return);break;case 27:sl(a);case 26:case 5:jl(i,a,n),n&&r===null&&o&4&&tl(a),$c(a,a.return);break;case 12:jl(i,a,n);break;case 31:jl(i,a,n),n&&o&4&&bl(i,a);break;case 13:jl(i,a,n),n&&o&4&&xl(i,a);break;case 22:a.memoizedState===null&&jl(i,a,n),$c(a,a.return);break;case 30:break;default:jl(i,a,n)}t=t.sibling}}function Ml(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&pa(n))}function Nl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e))}function Pl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Fl(e,t,n,r),t=t.sibling}function Fl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Pl(e,t,n,r),i&2048&&Yc(9,t);break;case 1:Pl(e,t,n,r);break;case 3:Pl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e)));break;case 12:if(i&2048){Pl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){rd(t,t.return,e)}}else Pl(e,t,n,r);break;case 31:Pl(e,t,n,r);break;case 13:Pl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Pl(e,t,n,r):(a._visibility|=2,Il(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Pl(e,t,n,r):Ll(e,t),i&2048&&Ml(o,t);break;case 24:Pl(e,t,n,r),i&2048&&Nl(t.alternate,t);break;default:Pl(e,t,n,r)}}function Il(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Il(a,o,s,c,i),Yc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Il(a,o,s,c,i)):u._visibility&2?Il(a,o,s,c,i):Ll(a,o),i&&l&2048&&Ml(o.alternate,o);break;case 24:Il(a,o,s,c,i),i&&l&2048&&Nl(o.alternate,o);break;default:Il(a,o,s,c,i)}t=t.sibling}}function Ll(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ll(n,r),i&2048&&Ml(r.alternate,r);break;case 24:Ll(n,r),i&2048&&Nl(r.alternate,r);break;default:Ll(n,r)}t=t.sibling}}var Rl=8192;function zl(e,t,n){if(e.subtreeFlags&Rl)for(e=e.child;e!==null;)Bl(e,t,n),e=e.sibling}function Bl(e,t,n){switch(e.tag){case 26:zl(e,t,n),e.flags&Rl&&e.memoizedState!==null&&rp(n,Tl,e.memoizedState,e.memoizedProps);break;case 5:zl(e,t,n);break;case 3:case 4:var r=Tl;Tl=Of(e.stateNode.containerInfo),zl(e,t,n),Tl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Rl,Rl=16777216,zl(e,t,n),Rl=r):zl(e,t,n));break;default:zl(e,t,n)}}function Vl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Hl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];fl=r,Gl(r,e)}Vl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ul(e),e=e.sibling}function Ul(e){switch(e.tag){case 0:case 11:case 15:Hl(e),e.flags&2048&&Xc(9,e,e.return);break;case 3:Hl(e);break;case 12:Hl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wl(e)):Hl(e);break;default:Hl(e)}}function Wl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];fl=r,Gl(r,e)}Vl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xc(8,t,t.return),Wl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Wl(t));break;default:Wl(t)}e=e.sibling}}function Gl(e,t){for(;fl!==null;){var n=fl;switch(n.tag){case 0:case 11:case 15:Xc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:pa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,fl=r;else a:for(n=e;fl!==null;){r=fl;var i=r.sibling,a=r.return;if(hl(r),r===n){fl=null;break a}if(i!==null){i.return=a,fl=i;break a}fl=a}}}var Kl={getCacheForType:function(e){var t=aa(da),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return aa(da).controller.signal}},ql=typeof WeakMap==`function`?WeakMap:Map,Jl=0,Yl=null,Xl=null,Zl=0,Ql=0,$l=null,eu=!1,tu=!1,nu=!1,ru=0,iu=0,au=0,ou=0,su=0,R=0,cu=0,lu=null,uu=null,du=!1,fu=0,pu=0,mu=1/0,z=null,hu=null,gu=0,_u=null,vu=null,yu=0,bu=0,xu=null,Su=null,Cu=0,wu=null;function Tu(){return Jl&2&&Zl!==0?Zl&-Zl:M.T===null?st():Cd()}function Eu(){if(R===0)if(!(Zl&536870912)||Ri){var e=Ke;Ke<<=1,!(Ke&3932160)&&(Ke=262144),R=e}else R=536870912;return e=so.current,e!==null&&(e.flags|=32),R}function Du(e,t,n){(e===Yl&&(Ql===2||Ql===9)||e.cancelPendingCommit!==null)&&(Pu(e,0),ju(e,Zl,R,!1)),et(e,n),(!(Jl&2)||e!==Yl)&&(e===Yl&&(!(Jl&2)&&(ou|=n),iu===4&&ju(e,Zl,R,!1)),gd(e))}function Ou(e,t,n){if(Jl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Xe(e,t),a=r?Hu(e,t):Bu(e,t,!0),o=r;do{if(a===0){tu&&!r&&ju(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Au(n)){a=Bu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=lu;var l=c.current.memoizedState.isDehydrated;if(l&&(Pu(c,s).flags|=256),s=Bu(c,s,!1),s!==2){if(nu&&!l){c.errorRecoveryDisabledLanes|=o,ou|=o,a=4;break a}o=uu,uu=a,o!==null&&(uu===null?uu=o:uu.push.apply(uu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Pu(e,0),ju(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ju(r,t,R,!eu);break a;case 2:uu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=fu+300-ke(),10<a)){if(ju(r,t,R,!eu),Ye(r,0,!0)!==0)break a;yu=t,r.timeoutHandle=af(ku.bind(null,r,n,uu,z,du,t,R,ou,cu,eu,o,`Throttled`,-0,0),a);break a}ku(r,n,uu,z,du,t,R,ou,cu,eu,o,null,-0,0)}}break}while(1);gd(e)}function ku(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rn},Bl(t,a,d);var m=(a&62914560)===a?fu-ke():(a&4194048)===a?pu-ke():0;if(m=ap(d,m),m!==null){yu=a,e.cancelPendingCommit=m(Yu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),ju(e,a,o,!l);return}}Yu(e,t,a,n,r,i,o,s,c)}function Au(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Tr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ju(e,t,n,r){t&=~su,t&=~ou,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ve(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&nt(e,n,t)}function Mu(){return Jl&6?!0:(_d(0,!1),!1)}function Nu(){if(Xl!==null){if(Ql===0)var e=Xl.return;else e=Xl,Zi=Xi=null,Fo(e),Ia=null,La=0,e=Xl;for(;e!==null;)Jc(e.alternate,e),e=e.return;Xl=null}}function Pu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,of(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),yu=0,Nu(),Yl=e,Xl=n=pi(e.current,null),Zl=t,Ql=0,$l=null,eu=!1,tu=Xe(e,t),nu=!1,cu=R=su=ou=au=iu=0,uu=lu=null,du=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ve(r),a=1<<i;t|=e[i],r&=~a}return ru=t,ri(),n}function Fu(e,t){L=null,M.H=Gs,t===Ea||t===Oa?(t=Pa(),Ql=3):t===Da?(t=Pa(),Ql=4):Ql=t===lc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,$l=t,Xl===null&&(iu=1,rc(e,xi(t,e.current)))}function Iu(){var e=so.current;return e===null?!0:(Zl&4194048)===Zl?co===null:(Zl&62914560)===Zl||Zl&536870912?e===co:!1}function Lu(){var e=M.H;return M.H=Gs,e===null?Gs:e}function Ru(){var e=M.A;return M.A=Kl,e}function zu(){iu=4,eu||(Zl&4194048)!==Zl&&so.current!==null||(tu=!0),!(au&134217727)&&!(ou&134217727)||Yl===null||ju(Yl,Zl,R,!1)}function Bu(e,t,n){var r=Jl;Jl|=2;var i=Lu(),a=Ru();(Yl!==e||Zl!==t)&&(z=null,Pu(e,t)),t=!1;var o=iu;a:do try{if(Ql!==0&&Xl!==null){var s=Xl,c=$l;switch(Ql){case 8:Nu(),o=6;break a;case 3:case 2:case 9:case 6:so.current===null&&(t=!0);var l=Ql;if(Ql=0,$l=null,Ku(e,s,c,l),n&&tu){o=0;break a}break;default:l=Ql,Ql=0,$l=null,Ku(e,s,c,l)}}Vu(),o=iu;break}catch(t){Fu(e,t)}while(1);return t&&e.shellSuspendCounter++,Zi=Xi=null,Jl=r,M.H=i,M.A=a,Xl===null&&(Yl=null,Zl=0,ri()),o}function Vu(){for(;Xl!==null;)Wu(Xl)}function Hu(e,t){var n=Jl;Jl|=2;var r=Lu(),a=Ru();Yl!==e||Zl!==t?(z=null,mu=ke()+500,Pu(e,t)):tu=Xe(e,t);a:do try{if(Ql!==0&&Xl!==null){t=Xl;var o=$l;b:switch(Ql){case 1:Ql=0,$l=null,Ku(e,t,o,1);break;case 2:case 9:if(Aa(o)){Ql=0,$l=null,Gu(t);break}t=function(){Ql!==2&&Ql!==9||Yl!==e||(Ql=7),gd(e)},o.then(t,t);break a;case 3:Ql=7;break a;case 4:Ql=5;break a;case 7:Aa(o)?(Ql=0,$l=null,Gu(t)):(Ql=0,$l=null,Ku(e,t,o,7));break;case 5:var s=null;switch(Xl.tag){case 26:s=Xl.memoizedState;case 5:case 27:var c=Xl;if(s?np(s):c.stateNode.complete){Ql=0,$l=null;var l=c.sibling;if(l!==null)Xl=l;else{var u=c.return;u===null?Xl=null:(Xl=u,qu(u))}break b}}Ql=0,$l=null,Ku(e,t,o,5);break;case 6:Ql=0,$l=null,Ku(e,t,o,6);break;case 8:Nu(),iu=6;break a;default:throw Error(i(462))}}Uu();break}catch(t){Fu(e,t)}while(1);return Zi=Xi=null,M.H=r,M.A=a,Jl=n,Xl===null?(Yl=null,Zl=0,ri(),iu):0}function Uu(){for(;Xl!==null&&!De();)Wu(Xl)}function Wu(e){var t=zc(e.alternate,e,ru);e.memoizedProps=e.pendingProps,t===null?qu(e):Xl=t}function Gu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Cc(n,t,t.pendingProps,t.type,void 0,Zl);break;case 11:t=Cc(n,t,t.pendingProps,t.type.render,t.ref,Zl);break;case 5:Fo(t);default:Jc(n,t),t=Xl=mi(t,ru),t=zc(n,t,ru)}e.memoizedProps=e.pendingProps,t===null?qu(e):Xl=t}function Ku(e,t,n,r){Zi=Xi=null,Fo(t),Ia=null,La=0;var i=t.return;try{if(cc(e,i,t,n,Zl)){iu=1,rc(e,xi(n,e.current)),Xl=null;return}}catch(t){if(i!==null)throw Xl=i,t;iu=1,rc(e,xi(n,e.current)),Xl=null;return}t.flags&32768?(Ri||r===1?e=!0:tu||Zl&536870912?e=!1:(eu=e=!0,(r===2||r===9||r===3||r===6)&&(r=so.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ju(t,e)):qu(t)}function qu(e){var t=e;do{if(t.flags&32768){Ju(t,eu);return}e=t.return;var n=Kc(t.alternate,t,ru);if(n!==null){Xl=n;return}if(t=t.sibling,t!==null){Xl=t;return}Xl=t=e}while(t!==null);iu===0&&(iu=5)}function Ju(e,t){do{var n=qc(e.alternate,e);if(n!==null){n.flags&=32767,Xl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Xl=e;return}Xl=e=n}while(e!==null);iu=6,Xl=null}function Yu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do ed();while(gu!==0);if(Jl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ni,tt(e,n,o,s,c,l),e===Yl&&(Xl=Yl=null,Zl=0),vu=t,_u=e,yu=n,bu=o,xu=a,Su=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ld(Ne,function(){return td(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=M.T,M.T=null,a=N.p,N.p=2,s=Jl,Jl|=4;try{pl(e,t,n)}finally{Jl=s,N.p=a,M.T=r}}gu=1,Xu(),Zu(),Qu()}}function Xu(){if(gu===1){gu=0;var e=_u,t=vu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=M.T,M.T=null;var r=N.p;N.p=2;var i=Jl;Jl|=4;try{El(t,e);var a=Zd,o=Ar(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&kr(s.ownerDocument.documentElement,s)){if(c!==null&&jr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Or(s,h),v=Or(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}yp=!!Xd,Zd=Xd=null}finally{Jl=i,N.p=r,M.T=n}}e.current=t,gu=2}}function Zu(){if(gu===2){gu=0;var e=_u,t=vu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=M.T,M.T=null;var r=N.p;N.p=2;var i=Jl;Jl|=4;try{ml(e,t.alternate,t)}finally{Jl=i,N.p=r,M.T=n}}gu=3}}function Qu(){if(gu===4||gu===3){gu=0,Oe();var e=_u,t=vu,n=yu,r=Su;t.subtreeFlags&10256||t.flags&10256?gu=5:(gu=0,vu=_u=null,$u(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(hu=null),ot(n),t=t.stateNode,ze&&typeof ze.onCommitFiberRoot==`function`)try{ze.onCommitFiberRoot(Re,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=M.T,i=N.p,N.p=2,M.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{M.T=t,N.p=i}}yu&3&&ed(),gd(e),i=e.pendingLanes,n&261930&&i&42?e===wu?Cu++:(Cu=0,wu=e):Cu=0,_d(0,!1)}}function $u(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pa(t)))}function ed(){return Xu(),Zu(),Qu(),td()}function td(){if(gu!==5)return!1;var e=_u,t=bu;bu=0;var n=ot(yu),r=M.T,a=N.p;try{N.p=32>n?32:n,M.T=null,n=xu,xu=null;var o=_u,s=yu;if(gu=0,vu=_u=null,yu=0,Jl&6)throw Error(i(331));var c=Jl;if(Jl|=4,Ul(o.current),Fl(o,o.current,s,n),Jl=c,_d(0,!1),ze&&typeof ze.onPostCommitFiberRoot==`function`)try{ze.onPostCommitFiberRoot(Re,o)}catch{}return!0}finally{N.p=a,M.T=r,$u(e,t)}}function nd(e,t,n){t=xi(n,t),t=ac(e.stateNode,t,2),e=Ja(e,t,2),e!==null&&(et(e,2),gd(e))}function rd(e,t,n){if(e.tag===3)nd(e,e,n);else for(;t!==null;){if(t.tag===3){nd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(hu===null||!hu.has(r))){e=xi(n,e),n=oc(2),r=Ja(t,n,2),r!==null&&(sc(n,r,t,e),et(r,2),gd(r));break}}t=t.return}}function id(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ql;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(nu=!0,i.add(n),e=ad.bind(null,e,t,n),t.then(e,e))}function ad(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Yl===e&&(Zl&n)===n&&(iu===4||iu===3&&(Zl&62914560)===Zl&&300>ke()-fu?!(Jl&2)&&Pu(e,0):su|=n,cu===Zl&&(cu=0)),gd(e)}function od(e,t){t===0&&(t=Qe()),e=oi(e,t),e!==null&&(et(e,t),gd(e))}function sd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),od(e,n)}function cd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),od(e,n)}function ld(e,t){return Te(e,t)}var ud=null,dd=null,fd=!1,pd=!1,md=!1,hd=0;function gd(e){e!==dd&&e.next===null&&(dd===null?ud=dd=e:dd=dd.next=e),pd=!0,fd||(fd=!0,Sd())}function _d(e,t){if(!md&&pd){md=!0;do for(var n=!1,r=ud;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ve(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,xd(r,a))}else a=Zl,a=Ye(r,r===Yl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Xe(r,a)||(n=!0,xd(r,a));r=r.next}while(n);md=!1}}function vd(){yd()}function yd(){pd=fd=!1;var e=0;hd!==0&&rf()&&(e=hd);for(var t=ke(),n=null,r=ud;r!==null;){var i=r.next,a=B(r,t);a===0?(r.next=null,n===null?ud=i:n.next=i,i===null&&(dd=n)):(n=r,(e!==0||a&3)&&(pd=!0)),r=i}gu!==0&&gu!==5||_d(e,!1),hd!==0&&(hd=0)}function B(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ve(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ze(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Yl,n=Zl,n=Ye(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ql===2||Ql===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Xe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ee(r),ot(n)){case 2:case 8:n=Me;break;case 32:n=Ne;break;case 268435456:n=Fe;break;default:n=Ne}return r=bd.bind(null,e),n=Te(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ee(r),e.callbackPriority=2,e.callbackNode=null,2}function bd(e,t){if(gu!==0&&gu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ed()&&e.callbackNode!==n)return null;var r=Zl;return r=Ye(e,e===Yl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Ou(e,r,t),B(e,ke()),e.callbackNode!=null&&e.callbackNode===n?bd.bind(null,e):null)}function xd(e,t){if(ed())return null;Ou(e,t,!0)}function Sd(){cf(function(){Jl&6?Te(je,vd):yd()})}function Cd(){if(hd===0){var e=ga;e===0&&(e=Ge,Ge<<=1,!(Ge&261888)&&(Ge=256)),hd=e}return hd}function wd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:nn(``+e)}function Td(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function V(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=wd((i[dt]||null).action),o=r.submitter;o&&(t=(t=o[dt]||null)?wd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Tn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(hd!==0){var e=o?Td(i,o):new FormData(i);js(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Td(i,o):new FormData(i),js(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Ed=0;Ed<Zr.length;Ed++){var H=Zr[Ed];Qr(H.toLowerCase(),`on`+(H[0].toUpperCase()+H.slice(1)))}Qr(Ur,`onAnimationEnd`),Qr(Wr,`onAnimationIteration`),Qr(Gr,`onAnimationStart`),Qr(`dblclick`,`onDoubleClick`),Qr(`focu
9sin`,`onFocus`),Qr(`focusout`,`onBlur`),Qr(Kr,`onTransitionRun`),Qr(qr,`onTransitionStart`),Qr(Jr,`onTransitionCancel`),Qr(Yr,`onTransitionEnd`),Dt(`onMouseEnter`,[`mouseout`,`mouseover`]),Dt(`onMouseLeave`,[`mouseout`,`mouseover`]),Dt(`onPointerEnter`,[`pointerout`,`pointerover`]),Dt(`onPointerLeave`,[`pointerout`,`pointerover`]),Et(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Et(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Et(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Et(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Et(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Et(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Dd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Od=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Dd));function kd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){$r(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){$r(e)}i.currentTarget=null,a=c}}}}function Ad(e,t){var n=t[pt];n===void 0&&(n=t[pt]=new Set);var r=e+`__bubble`;n.has(r)||(Pd(t,e,2,!1),n.add(r))}function jd(e,t,n){var r=0;t&&(r|=4),Pd(n,e,r,t)}var Md=`_reactListening`+Math.random().toString(36).slice(2);function Nd(e){if(!e[Md]){e[Md]=!0,wt.forEach(function(t){t!==`selectionchange`&&(Od.has(t)||jd(t,!1,e),jd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Md]||(t[Md]=!0,jd(`selectionchange`,!1,t))}}function Pd(e,t,n,r){switch(Ep(t)){case 2:var i=bp;break;case 8:i=xp;break;default:i=Sp}n=i.bind(null,t,n,e),i=void 0,!mn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Fd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=yt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}dn(function(){var r=a,i=on(n),s=[];a:{var c=Xr.get(e);if(c!==void 0){var l=Tn,u=e;switch(e){case`keypress`:if(bn(n)===0)break a;case`keydown`:case`keyup`:l=Un;break;case`focusin`:u=`focus`,l=Pn;break;case`focusout`:u=`blur`,l=Pn;break;case`beforeblur`:case`afterblur`:l=Pn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Mn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Nn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Gn;break;case Ur:case Wr:case Gr:l=Fn;break;case Yr:l=Kn;break;case`scroll`:case`scrollend`:l=Dn;break;case`wheel`:l=qn;break;case`copy`:case`cut`:case`paste`:l=In;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Wn;break;case`toggle`:case`beforetoggle`:l=Jn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=fn(m,p),g!=null&&d.push(Id(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==an&&(u=n.relatedTarget||n.fromElement)&&(yt(u)||u[ft]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?yt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Mn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Wn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:xt(l),h=u==null?c:xt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,yt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Rd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&zd(s,c,l,d,!1),u!==null&&f!==null&&zd(s,f,u,d,!0)}}a:{if(c=r?xt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=I;else if(cr(c))if(mr)v=Cr;else{v=xr;var y=br}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&$t(r.elementType)&&(v=I):v=Sr;if(v&&=v(e,r)){lr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Gt(c,`number`,c.value)}switch(y=r?xt(r):window,e){case`focusin`:(cr(y)||y.contentEditable===`true`)&&(Nr=y,Pr=r,Fr=null);break;case`focusout`:Fr=Pr=Nr=null;break;case`mousedown`:Ir=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ir=!1,Lr(s,n,i);break;case`selectionchange`:if(Mr)break;case`keydown`:case`keyup`:Lr(s,n,i)}var b;if(Xn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else ir?nr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&($n&&n.locale!==`ko`&&(ir||x!==`onCompositionStart`?x===`onCompositionEnd`&&ir&&(b=yn()):(gn=i,_n=`value`in gn?gn.value:gn.textContent,ir=!0)),y=Ld(r,x),0<y.length&&(x=new Ln(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=rr(n),b!==null&&(x.data=b)))),(b=Qn?ar(e,n):or(e,n))&&(x=Ld(r,`onBeforeInput`),0<x.length&&(y=new Ln(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),V(s,e,r,n,i)}kd(s,t)})}
vendor: 11,238 bytes, lines 9-10
9function Id(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ld(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=fn(e,n),i!=null&&r.unshift(Id(e,i,a)),i=fn(e,t),i!=null&&r.push(Id(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Rd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=fn(n,a),l!=null&&o.unshift(Id(n,l,c))):i||(l=fn(n,a),l!=null&&o.push(Id(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Bd=/\r\n?/g,Vd=/\u0000|\uFFFD/g;function Hd(e){return(typeof e==`string`?e:``+e).replace(Bd,`
10`).replace(Vd,``)}function Ud(e,t){return t=Hd(t),Hd(e)===t}function Wd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Yt(e,``+r);break;case`className`:Nt(e,`class`,r);break;case`tabIndex`:Nt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Nt(e,n,r);break;case`style`:Qt(e,r,o);break;case`data`:if(t!==`object`){Nt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=nn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Wd(e,t,`name`,a.name,a,null),Wd(e,t,`formEncType`,a.formEncType,a,null),Wd(e,t,`formMethod`,a.formMethod,a,null),Wd(e,t,`formTarget`,a.formTarget,a,null)):(Wd(e,t,`encType`,a.encType,a,null),Wd(e,t,`method`,a.method,a,null),Wd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=nn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=rn);break;case`onScroll`:r!=null&&Ad(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ad(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=nn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Ad(`beforetoggle`,e),Ad(`toggle`,e),Mt(e,`popover`,r);break;case`xlinkActuate`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Mt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=en.get(n)||n,Mt(e,n,r))}}function Gd(e,t,n,r,a,o){switch(n){case`style`:Qt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Yt(e,``+r);break;case`onScroll`:r!=null&&Ad(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ad(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=rn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Tt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[dt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Mt(e,n,r)}}}function Kd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Ad(`error`,e),Ad(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Wd(e,t,o,s,n,null)}}a&&Wd(e,t,`srcSet`,n.srcSet,n,null),r&&Wd(e,t,`src`,n.src,n,null);return;case`input`:Ad(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Wd(e,t,r,d,n,null)}}Wt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Ad(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Wd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Kt(e,!!r,n,!0):Kt(e,!!r,t,!1);return;case`textarea`:for(s in Ad(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Wd(e,t,s,c,n,null)}Jt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Wd(e,t,l,r,n,null)}return;case`dialog`:Ad(`beforetoggle`,e),Ad(`toggle`,e),Ad(`cancel`,e),Ad(`close`,e);break;case`iframe`:case`object`:Ad(`load`,e);break;case`video`:case`audio`:for(r=0;r<Dd.length;r++)Ad(Dd[r],e);break;case`image`:Ad(`error`,e),Ad(`load`,e);break;case`details`:Ad(`toggle`,e);break;case`embed`:case`source`:case`link`:Ad(`error`,e),Ad(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Wd(e,t,u,r,n,null)}return;default:if($t(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Gd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Wd(e,t,c,r,n,null))}function qd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Wd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Wd(e,t,p,m,r,f)}}Ut(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Wd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Wd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Kt(e,!!n,n?[]:``,!1):Kt(e,!!n,t,!0)):Kt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Wd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Wd(e,t,s,a,r,o)}qt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Wd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Wd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Wd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Wd(e,t,u,p,r,m)}return;default:if($t(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Gd(e,t,_,void 0,r,p);
vendor: 4,463 bytes, line 10
10for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Gd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Wd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Wd(e,t,f,p,r,m)}function Jd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Yd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Jd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Jd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Xd=null,Zd=null;function Qd(e){return e.nodeType===9?e:e.ownerDocument}function $d(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function ef(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function tf(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var nf=null;function rf(){var e=window.event;return e&&e.type===`popstate`?e===nf?!1:(nf=e,!0):(nf=null,!1)}var af=typeof setTimeout==`function`?setTimeout:void 0,of=typeof clearTimeout==`function`?clearTimeout:void 0,sf=typeof Promise==`function`?Promise:void 0,cf=typeof queueMicrotask==`function`?queueMicrotask:sf===void 0?af:function(e){return sf.resolve(null).then(e).catch(lf)};function lf(e){setTimeout(function(){throw e})}function uf(e){return e===`head`}function df(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Gp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Tf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Tf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[_t]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Tf(e.ownerDocument.body);n=i}while(n);Gp(t)}function ff(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function pf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:pf(n),vt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function mf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[_t])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=bf(e.nextSibling),e===null)break}return null}function hf(e,t,n){if(t===``)return null;for(;
vendor: 20,906 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=bf(e.nextSibling),e===null))return null;return e}function gf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=bf(e.nextSibling),e===null))return null;return e}function _f(e){return e.data===`$?`||e.data===`$~`}function vf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function yf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function bf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var xf=null;function Sf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return bf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function Cf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function wf(e,t,n){switch(t=Qd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Tf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vt(e)}var Ef=new Map,Df=new Set;function Of(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kf=N.d;N.d={f:Af,r:jf,D:Pf,C:Ff,L:If,m:Lf,X:zf,S:Rf,M:Bf};function Af(){var e=kf.f(),t=Mu();return e||t}function jf(e){var t=bt(e);t!==null&&t.tag===5&&t.type===`form`?Ns(t):kf.r(e)}var Mf=typeof document>`u`?null:document;function Nf(e,t,n){var r=Mf;if(r&&typeof t==`string`&&t){var i=Ht(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Df.has(i)||(Df.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Kd(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function Pf(e){kf.D(e),Nf(`dns-prefetch`,e,null)}function Ff(e,t){kf.C(e,t),Nf(`preconnect`,e,t)}function If(e,t,n){kf.L(e,t,n);var r=Mf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ht(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ht(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ht(n.imageSizes)+`"]`)):i+=`[href="`+Ht(e)+`"]`;var a=i;switch(t){case`style`:a=Hf(e);break;case`script`:a=Kf(e)}Ef.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Ef.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Uf(a))||t===`script`&&r.querySelector(qf(a))||(t=r.createElement(`link`),Kd(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function Lf(e,t){kf.m(e,t);var n=Mf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ht(r)+`"][href="`+Ht(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Kf(e)}if(!Ef.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Ef.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(qf(a)))return}r=n.createElement(`link`),Kd(r,`link`,e),Ct(r),n.head.appendChild(r)}}}function Rf(e,t,n){kf.S(e,t,n);var r=Mf;if(r&&e){var i=St(r).hoistableStyles,a=Hf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Uf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Ef.get(a))&&Xf(e,n);var c=o=r.createElement(`link`);Ct(c),Kd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Yf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function zf(e,t){kf.X(e,t);var n=Mf;if(n&&e){var r=St(n).hoistableScripts,i=Kf(e),a=r.get(i);a||(a=n.querySelector(qf(i)),a||(e=f({src:e,async:!0},t),(t=Ef.get(i))&&Zf(e,t),a=n.createElement(`script`),Ct(a),Kd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Bf(e,t){kf.M(e,t);var n=Mf;if(n&&e){var r=St(n).hoistableScripts,i=Kf(e),a=r.get(i);a||(a=n.querySelector(qf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Ef.get(i))&&Zf(e,t),a=n.createElement(`script`),Ct(a),Kd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vf(e,t,n,r){var a=(a=de.current)?Of(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Hf(n.href),n=St(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Hf(n.href);var o=St(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Uf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Ef.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ef.set(e,n),o||Gf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Kf(n),n=St(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Hf(e){return`href="`+Ht(e)+`"`}function Uf(e){return`link[rel="stylesheet"][`+e+`]`}function Wf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Gf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Kd(t,`link`,n),Ct(t),e.head.appendChild(t))}function Kf(e){return`[src="`+Ht(e)+`"]`}function qf(e){return`script[async]`+e}function Jf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ht(n.href)+`"]`);if(r)return t.instance=r,Ct(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ct(r),Kd(r,`style`,a),Yf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Hf(n.href);var o=e.querySelector(Uf(a));if(o)return t.state.loading|=4,t.instance=o,Ct(o),o;r=Wf(n),(a=Ef.get(a))&&Xf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ct(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Kd(o,`link`,r),t.state.loading|=4,Yf(o,n.precedence,e),t.instance=o;case`script`:return o=Kf(n.src),(a=e.querySelector(qf(o)))?(t.instance=a,Ct(a),a):(r=n,(a=Ef.get(o))&&(r=f({},n),Zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ct(a),Kd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Yf(r,n.precedence,e));return t.instance}function Yf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Xf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Qf=null;function $f(e,t,n){if(Qf===null){var r=new Map,i=Qf=new Map;i.set(n,r)}else i=Qf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[_t]||a[ut]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function ep(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function tp(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function np(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function rp(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Hf(r.href),a=t.querySelector(Uf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=op.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ct(a);return}a=t.ownerDocument||t,r=Wf(r),(i=Ef.get(i))&&Xf(r,i),a=a.createElement(`link`),Ct(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Kd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=op.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ip=0;function ap(e,t){return e.stylesheets&&e.count===0&&cp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&cp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ip===0&&(ip=62500*Yd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&cp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ip?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function op(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sp=null;function cp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sp=new Map,t.forEach(lp,e),sp=null,op.call(e))}function lp(e,t){if(!(t.state.loading&4)){var n=sp.get(e);if(n)var r=n.get(null);else{n=new Map,sp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=op.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var up={$$typeof:C,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function dp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$e(0),this.hiddenUpdates=$e(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function fp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new dp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=di(3,null,null,t),e.current=a,a.stateNode=e,t=fa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ga(a),e}function pp(e){return e?(e=li,e):li}function mp(e,t,n,r,i,a){i=pp(i),r.context===null?r.context=i:r.pendingContext=i,r=qa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ja(e,r,t),n!==null&&(Du(n,e,t),Ya(n,e,t))}function hp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gp(e,t){hp(e,t),(e=e.alternate)&&hp(e,t)}function _p(e){if(e.tag===13||e.tag===31){var t=oi(e,67108864);t!==null&&Du(t,e,67108864),gp(e,67108864)}}function vp(e){if(e.tag===13||e.tag===31){var t=Tu();t=at(t);var n=oi(e,t);n!==null&&Du(n,e,t),gp(e,t)}}var yp=!0;function bp(e,t,n,r){var i=M.T;M.T=null;var a=N.p;try{N.p=2,Sp(e,t,n,r)}finally{N.p=a,M.T=i}}function xp(e,t,n,r){var i=M.T;M.T=null;var a=N.p;try{N.p=8,Sp(e,t,n,r)}finally{N.p=a,M.T=i}}function Sp(e,t,n,r){if(yp){var i=Cp(r);if(i===null)Fd(e,t,r,wp,n),Fp(e,r);else if(Lp(i,e,t,n,r))r.stopPropagation();else if(Fp(e,r),t&4&&-1<Pp.indexOf(e)){for(;i!==null;){var a=bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Je(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ve(o);s.entanglements[1]|=c,o&=~c}gd(a),!(Jl&6)&&(mu=ke()+500,_d(0,!1))}}break;case 31:case 13:s=oi(a,2),s!==null&&Du(s,a,2),Mu(),gp(a,2)}if(a=Cp(r),a===null&&Fd(e,t,r,wp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Fd(e,t,r,null,n)}}function Cp(e){return e=on(e),Tp(e)}var wp=null;function Tp(e){if(wp=null,e=yt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wp=e,null}function Ep(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ae()){case je:return 2;case Me:return 8;case Ne:case Pe:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var Dp=!1,Op=null,kp=null,Ap=null,jp=new Map,Mp=new Map,Np=[],Pp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Fp(e,t){switch(e){case`focusin`:case`focusout`:Op=null;break;case`dragenter`:case`dragleave`:kp=null;break;case`mouseover`:case`mouseout`:Ap=null;break;case`pointerover`:case`pointerout`:jp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Mp.delete(t.pointerId)}}function Ip(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=bt(t),t!==null&&_p(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Lp(e,t,n,r,i){switch(t){case`focusin`:return Op=Ip(Op,e,t,n,r,i),!0;case`dragenter`:return kp=Ip(kp,e,t,n,r,i),!0;case`mouseover`:return Ap=Ip(Ap,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return jp.set(a,Ip(jp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Mp.set(a,Ip(Mp.get(a)||null,e,t,n,r,i)),!0}return!1}function Rp(e){var t=yt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ct(e.priority,function(){vp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ct(e.priority,function(){vp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);an=r,n.target.dispatchEvent(r),an=null}else return t=bt(n),t!==null&&_p(t),e.blockedOn=n,!1;t.shift()}return!0}function Bp(e,t,n){zp(e)&&n.delete(t)}function Vp(){Dp=!1,Op!==null&&zp(Op)&&(Op=null),kp!==null&&zp(kp)&&(kp=null),Ap!==null&&zp(Ap)&&(Ap=null),jp.forEach(Bp),Mp.forEach(Bp)}function Hp(e,n){e.blockedOn===n&&(e.blockedOn=null,Dp||(Dp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vp)))}var Up=null;function Wp(e){Up!==e&&(Up=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Up===e&&(Up=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Tp(r||n)===null)continue;break}var a=bt(n);a!==null&&(e.splice(t,3),t-=3,js(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Gp(e){function t(t){return Hp(t,e)}Op!==null&&Hp(Op,e),kp!==null&&Hp(kp,e),Ap!==null&&Hp(Ap,e),jp.forEach(t),Mp.forEach(t);for(var n=0;n<Np.length;n++){var r=Np[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Np.length&&(n=Np[0],n.blockedOn===null);)Rp(n),n.blockedOn===null&&Np.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[dt]||null;if(typeof a==`function`)o||Wp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[dt]||null)s=o.formAction;else if(Tp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Wp(n)}}}function Kp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function qp(e){this._internalRoot=e}Jp.prototype.render=qp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;mp(n,Tu(),e,t,null,null)},Jp.prototype.unmount=qp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mp(e.current,2,null,e,null,null),Mu(),t[ft]=null}};function Jp(e){this._internalRoot=e}Jp.prototype.unstable_scheduleHydration=function(e){if(e){var t=st();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Np.length&&t!==0&&t<Np[n].priority;n++);Np.splice(n,0,e),n===0&&Rp(e)}};var Yp=n.version;if(Yp!==`19.2.6`)throw Error(i(527,Yp,`19.2.6`));N.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Xp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:M,reconcilerVersion:`19.2.6`};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zp.isDisabled&&Zp.supportsFiber)try{Re=Zp.inject(Xp),ze=Zp}catch{}}e.hydrateRoot=function(e,t,n){if(!a(e))throw Error(i(299));var r=!1,o=``,s=ec,c=tc,l=nc,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=fp(e,1,!0,t,n??null,r,o,u,s,c,l,Kp),t.context=pp(null),n=t.current,r=Tu(),r=at(r),o=qa(r),o.callback=null,Ja(n,o,r),n=r,t.current.lanes=n,et(t,n),gd(t),e[ft]=t.current,Nd(e),new Jp(t)}})),y=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),b=`__TSS_CONTEXT`,x=Symbol.for(`TSS_SERVER_FUNCTION`),S=`x-tss-serialized`,C=`x-tss-raw`,w=`application/x-tss-framed`,E={JSON:0,CHUNK:1,END:2,ERROR:3},D=`${w}; v=1`,ee=/;\s*v=(\d+)/;function O(e){let t=e.match(ee);return t?parseInt(t[1],10):void 0}function te(e){let t=O(e);if(t!==void 0&&t!==1)throw Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var k=()=>window.__TSS_START_OPTIONS__;function ne(e){return e[e.length-1]}function A(e){return typeof e==`function`}function j(e,t){return A(e)?e(t):e}var re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;function M(e){for(let t in e)if(re.call(e,t))return!0;return!1}var N=()=>Object.create(null),ae=(e,t)=>oe(e,t,N);function oe(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=ce(e)&&ce(i);if(!a&&!(P(e)&&P(i)))return i;let o=a?e:se(e);if(!o)return i;let s=a?i:se(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],f=i[o];if(l===f){u[o]=l,(a?t<c:re.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=oe(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function se(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!ie.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!ie.call(e,t))return!1;r.push(t)}return r}function P(e){if(!F(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!F(n)||!n.hasOwnProperty(`isPrototypeOf`))}function F(e){return Object.prototype.toString.call(e)===`[object Object]`}function ce(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function le(e,t,n){if(e===t)return!0;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,i=e.length;r<i;r++)if(!le(e[r],t[r],n))return!1;return!0}if(P(e)&&P(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!le(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!le(e[o],t[o],n)))return!1;return i===a}return!1}function ue(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function de(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}
10function fe(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function pe(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function me(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return pe(t)}var he=[`http:`,`https:`,`mailto:`,`tel:`];function ge(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var _e={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},ve=/[&><\u2028\u2029]/g;function ye(e){return e.replace(ve,e=>_e[e])}function be(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=me(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=me(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function xe(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Se(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Ce(){throw Error(`Invariant failed`)}function we(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var Te=4,Ee=5;function De(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function Oe(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=De(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function ke(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e,l=n.options?.params?.parse??n.options?.parseParams;for(;s<o;){let e=Oe(r,s,t),o,u=s,d=e[5];switch(s=d+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=Me(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=Me(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.dynamic?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Ne(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Ne(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=Ne(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=Me(n.fullPath??n.from);e.kind=Ee,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=Me(n.fullPath??n.from);e.kind=Te,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)ke(e,t,r,s,i,a,o)}function Ae(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function je(e){if(e.pathless)for(let t of e.pathless)je(t);if(e.static)for(let t of e.static.values())je(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())je(t);if(e.dynamic?.length){e.dynamic.sort(Ae);for(let t of e.dynamic)je(t)}if(e.optional?.length){e.optional.sort(Ae);for(let t of e.optional)je(t)}if(e.wildcard?.length){e.wildcard.sort(Ae);for(let t of e.wildcard)je(t)}}function Me(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Ne(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Pe(e,t){let n=Me(`/`),r=new Uint16Array(6);for(let t of e)ke(!1,r,t,1,n,0);je(n),t.masksTree=n,t.flatCache=we(1e3)}function Fe(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=Be(e,t.masksTree);return t.flatCache.set(e,r),r}function Ie(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Me(`/`),ke(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Be(r,o,n)}function Le(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Be(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=He(a.route)),t.matchCache.set(r,a),a}function Re(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}
10function ze(e,t=!1,n){let r=Me(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return ke(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&Ce(),a[e.id]=e,s!==0&&e.path){let t=Re(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),je(r),{processedTree:{segmentTree:r,singleCache:we(1e3),matchCache:we(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function Be(e,t,n=!1){let r=e.split(`/`),i=We(e,r,t,n);if(!i)return null;let[a]=Ve(e,r,i);return{route:i.node.route,rawParams:a}}function Ve(e,t,n){let r=Ue(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===Te)break;if(u.kind===Ee){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0,r=u.suffix?.length??0,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function He(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Ue(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function We(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!ne(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=n,{extract:g,rawParams:_}=n;if(i.kind===2&&i.route&&!Je(l,n))continue;if(i.parse){if(!qe(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==Te&&Je(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===Te||i.kind===2)&&Je(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let y=v?void 0:t[u],b;if(v&&i.index){let n={node:i.index,index:u,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_},r=!0;if(i.index.parse&&(qe(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&Ke(p,o))return n;Je(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<<f,t=f+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+Ge(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+Ge(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Ge(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Ge(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Ge(e,t){return 2**(e-t-1)}function Ke(e,t){return e===2**(t-1)-1}function qe(e,t,n){let r,i;try{[r,i]=Ve(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Je(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Te)>(e.node.kind===Te)||t.node.kind===Te==(e.node.kind===Te)&&t.depth>e.depth))):!0}function Ye(e){return Xe(e.filter(e=>e!==void 0).join(`/`))}function Xe(e){return e.replace(/\/{2,}/g,`/`)}function Ze(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function Qe(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function $e(e){return Qe(Ze(e))}function et(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function tt(e,t,n){return et(e,n)===et(t,n)}function nt({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&ne(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.pop():r===`.`||s.push(r)}}s.length>1&&(ne(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Xe(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function rt(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function it(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>ot(e,n)).join(`/`):ot(r,n):r}function at({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=Oe(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=it(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=it(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=it(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function ot(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function st(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function ct(e){return e?.isNotFound===!0}function lt(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}
10function ut(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function dt(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=ut(r):Array.isArray(t)?t.push(ut(r)):n[e]=[t,ut(r)]}return n}var ft=mt(JSON.parse),pt=ht(JSON.stringify,JSON.parse);function mt(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=dt(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function ht(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=lt(e,r);return t?`?${t}`:``}}var gt=`__root__`;function _t(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function vt(e){return e instanceof Response&&!!e.options}function yt(e){return vt(e)&&!!e.options.href}function bt(e){if(typeof e==`object`&&e&&e.isSerializedRedirect)return _t(e)}var xt=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},St=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Ct=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),wt=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);
10i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Tt=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Et=(e,t,n)=>{if(!(!vt(n)&&!ct(n)))throw vt(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:vt(n)?`redirected`:ct(n)?`notFound`:r.status===`pending`?`success`:r.status,context:wt(e,t.index),isFetching:!1,error:n})),ct(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),vt(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Dt=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Ot=(e,t,n)=>{let r=wt(e,n);e.updateMatch(t,e=>({...e,context:r}))},kt=(e,t,n,r)=>{let{id:i,routeId:a}=e.matches[t],o=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,Et(e,e.router.getMatch(i),n);try{o.options.onError?.(n)}catch(t){n=t,Et(e,e.router.getMatch(i),n)}e.updateMatch(i,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!vt(n)&&!ct(n)&&(e.serialError??=n)},At=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Ct(e,t)&&(n.options.loader||n.options.beforeLoad||Vt(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{xt(e)},i);r._nonReactive.pendingTimeout=t}},jt=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;At(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Et(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Mt=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=ue(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&kt(e,n,o,`PARSE_PARAMS`),s&&kt(e,n,s,`VALIDATE_SEARCH`),At(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=ue();let f={...wt(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=Ct(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(vt(r)||ct(r))&&(u(),kt(e,n,r,`BEFORE_LOAD`)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),fe(y))return u(),y.catch(t=>{kt(e,n,t,`BEFORE_LOAD`)}).then(v)}catch(t){u(),kt(e,n,t,`BEFORE_LOAD`)}v(y)},Nt=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Mt(e,n,t,i),s=()=>{if(Dt(e,n))return;let t=jt(e,n,i);return fe(t)?t.then(o):o()};return a()},Pt=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Ft=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=wt(e,r),d=Ct(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},It=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Bt(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Ft(e,t,n,r,i)),l=!!s&&fe(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Et(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:wt(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>
10({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:wt(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,ct(t)&&await i.options.notFoundComponent?.preload?.(),Et(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Et(e,e.router.getMatch(n),t)}!vt(o)&&!ct(o)&&await Bt(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:wt(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Et(e,r,t)}},Lt=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(Ft(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await It(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){vt(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await It(e,t,i,n,d):Ot(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Dt(e,i)){if(!e.router.getMatch(i))return e.matches[n];Ot(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Ct(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Et(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=ue(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function Rt(e){let t=e,n=[];St(t.router)&&xt(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=Nt(t,e);fe(n)&&await n}catch(e){if(vt(e))throw e;if(ct(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?Tt(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(Lt(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(vt(e))throw e;ct(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=Tt(t,l);e===void 0&&Ce();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Bt(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Bt(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Pt(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=xt(t);if(fe(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function zt(e,t){let n=t.map(t=>
10e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Bt(e,t=Ht){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Ht?(()=>{if(e._componentsPromise===void 0){let t=zt(e,Ht);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():zt(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Vt(e){for(let t of Ht)if(e.options[t]?.preload)return!0;return!1}var Ht=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Ut(e){return{input:({url:t})=>{for(let n of e)t=Gt(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Kt(e[n],t);return t}}}function Wt(e){let t=$e(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=Ye([`/`,t,e.pathname]),e)}}function Gt(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Kt(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function qt(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>Jt(o,_.get())),x=r(()=>Jt(s,v.get())),S=r(()=>Jt(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),E=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),D=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),ee=we(64);function O(e){let t=ee.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),ee.set(e,t)),t}let te={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:E,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:D,getRouteMatchStore:O,setMatches:k,setPending:ne,setCached:A};k(e.matches),a?.(te);function k(e){Yt(e,o,_,n,i)}function ne(e){Yt(e,s,v,n,i)}function A(e){Yt(e,c,y,n,i)}return te}function Jt(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Yt(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}Se(n.get(),a)||n.set(a)})}var Xt=`__TSR_index`,Zt=`popstate`,Qt=`beforeunload`;function $t(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=an(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Xt];i=en(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Xt];i=en(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Xt]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function en(e,t){t||={};let n=on();return{...t,key:n,__TSR_key:n,[Xt]:e}}function tn(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>an(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=on();t.history.replaceState({[Xt]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=an(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>
10{if(f){f=!1;return}let e=c(),n=e.state[Xt]-l.state[Xt],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=$t({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Qt,S,{capture:!0}),t.removeEventListener(Zt,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Qt,S,{capture:!0}),t.addEventListener(Zt,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function nn(e={initialEntries:[`/`]}){let t=e.initialEntries,n=e.initialIndex?Math.min(Math.max(e.initialIndex,0),t.length-1):t.length-1,r=t.map((e,t)=>en(t,void 0)),i=()=>an(t[n],r[n]),a=[];return $t({getLocation:i,getLength:()=>t.length,pushState:(e,i)=>{n<t.length-1&&(t.splice(n+1),r.splice(n+1)),r.push(i),t.push(e),n=Math.max(t.length-1,0)},replaceState:(e,i)=>{r[n]=i,t[n]=e},back:()=>{n=Math.max(n-1,0)},forward:()=>{n=Math.min(n+1,t.length-1)},go:e=>{n=Math.min(Math.max(n+e,0),t.length-1)},createHref:e=>e,getBlockers:()=>a,setBlockers:e=>a=e})}function rn(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function an(e,t){let n=rn(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=on();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Xt]:0,key:a,__TSR_key:a}}}function on(){return(Math.random()+1).toString(36).substring(7)}function sn(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function cn(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var ln=new WeakMap,un=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=rt(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=tn()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=we(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=qt(pn(this.latestLocation),e),Nn(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=$e(o);t&&t!==`/`&&e.push(Wt({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Ut(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=ze(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&Pe(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>
10{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:be(e).path,external:!1,searchStr:o,search:ae(t?.search,i),hash:be(r.slice(1)).path,state:oe(t?.state,a)}}let o=new URL(i,this.origin),s=Gt(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:be(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:ae(t?.search,c),hash:be(s.hash.slice(1)).path,state:oe(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>nt({base:e,to:t.includes(`//`)?Xe(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>hn({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,j(t.params,s)),d=this.routesByPath[Qe(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&M(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:be(at({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,mn(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=gn({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=ae(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?j(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?j(t.state,n.state):{};v=oe(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=Kt(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,S=!0)}else b=xe(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:S,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=Fe(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,j(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];
10e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=le(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=Qe(this.latestLocation.href)===Qe(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=ue(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=an(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=Gt(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(ge(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?ln.set(this.latestLocation,t):ln.delete(this.latestLocation);let n=this.latestLocation,r=cn(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Rt({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){vt(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):ct(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(cn(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>
10{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&ge(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=Bt,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Rt({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(vt(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});ct(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=Ie(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!le(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?le(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??pt,parseSearch:e.parseSearch??ft,protocolAllowlist:e.protocolAllowlist??he}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=He(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParam
10s:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:Qe(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?vn(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],u,d,f;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=mn(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},f=void 0}catch(e){let r=e;if(e instanceof dn||(r=new dn(e.message,{cause:e})),t?.throwOnError)throw r;u=n,d={},f=r}}let p=r.options.loaderDeps?.({search:u})??``,m=p?JSON.stringify(p):``,{interpolatedPath:h,usedParams:g}=at({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),_=r.id+h+m,v=this.getMatch(_),y=l.get(r.id),b=v?._strictParams??g,x;if(!v)try{yn(r,b)}catch(e){if(x=ct(e)||vt(e)?e:new fn(e.message,{cause:e}),t?.throwOnError)throw x}Object.assign(i,b);let S=y?`stay`:`enter`,C;if(v)C={...v,cause:S,params:y?.params??i,_strictParams:b,search:ae(y?y.search:v.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Vt(r)?`pending`:`success`;C={id:_,ssr:r.options.ssr,index:n,routeId:r.id,params:y?.params??i,_strictParams:b,pathname:h,updatedAt:Date.now(),search:y?ae(y.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:x,__routeContext:void 0,_nonReactive:{loadPromise:ue()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:S,loaderDeps:y?oe(y.loaderDeps,p):p,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(C.globalNotFound=s===r.id),C.searchError=f;let w=this.getParentContext(o);C.context={...w,...C.__routeContext,...C.__beforeLoadContext},c[n]=C}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=l.get(n.routeId);if(n.params=o?ae(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=ne(t),i={...e.search};for(let e of t)try{Object.assign(i,mn(e.options.validateSearch,i))}catch{}let a=ne(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{yn(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},dn=class extends Error{},fn=class extends Error{};function pn(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function mn(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new dn(`Async validation not supported`);if(n.issues)throw new dn(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function hn({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=Qe(e),a,o=Le(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function gn({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return _n(n)(e,t,r??!1)}function _n(e){let t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let n of e)`search`in n.options?n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares):(n.options.preSearchFilters||n.options.postSearchFilters)&&t.middlewares.push(({search:e,next:t})=>{let r=e;
10`preSearchFilters`in n.options&&n.options.preSearchFilters&&(r=n.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=t(r);return`postSearchFilters`in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),n.options.validateSearch&&t.middlewares.push(({search:e,next:r})=>{let i=r(e);if(!t._includeValidateSearch)return i;try{return{...i,...mn(n.options.validateSearch,i)??void 0}}catch{return i}});t.middlewares.push(({search:e})=>{let n=t.dest;return n.search?n.search===!0?e:j(n.search,e):{}});let n=(e,t,r)=>{if(e>=r.length)return t;let i=r[e];return i({search:t,next:t=>n(e+1,t,r)})};return function(e,r,i){return t.dest=r,t._includeValidateSearch=i,n(0,e,t.middlewares)}}function vn(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return gt}function yn(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function bn(){try{return sessionStorage}catch{return}}var xn=`tsr-scroll-restoration-v1_3`,Sn=bn();function Cn(){try{return JSON.parse(Sn?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function wn(){try{Sn?.setItem(xn,JSON.stringify(Tn))}catch{}}var Tn=Cn(),En=`data-scroll-restoration-id`,Dn=e=>e.state.__TSR_key||e.href;function On(e){let t=e.getAttribute(En);if(t)return`[${En}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var kn=!1,An=`window`;function jn(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Mn(e){let t=[];for(let n of e){if(n===An)continue;let e=jn(n);e&&t.push(e)}return t}function Nn(e,t){if((t??e.options.scrollRestoration)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,kn=!1;let n=e.options.getScrollRestorationKey||Dn,r=new Map,i=(e,t,n)=>{let i=r.get(e)||{};i.scrollX=t,i.scrollY=n,r.set(e,i)};history.scrollRestoration=`manual`;let a=t=>{if(!(kn||!e.isScrollRestoring))if(t.target===document)i(An,scrollX,scrollY);else{let e=t.target;i(e,e.scrollLeft,e.scrollTop)}},o=t=>{if(!e.isScrollRestoring)return;let n=Tn[t]||={};for(let[e,t]of r)e===An?n[An]=t:e.isConnected&&(n[On(e)]=t)};document.addEventListener(`scroll`,a,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(n(e.fromLocation)),r.clear()}),addEventListener(`pagehide`,()=>{o(n(e.stores.resolvedLocation.get()??e.stores.location.get())),wn()}),e.subscribe(`onRendered`,t=>{let i=e.options.scrollRestorationBehavior,a=e.options.scrollToTopSelectors,o=e.resetNextScroll,s;if(r.clear(),o||(e.resetNextScroll=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let c=n(t.toLocation),l=t.fromLocation&&n(t.fromLocation);if(e.isScrollRestoring&&l&&l!==c){let e=Tn[l];if(e){let t=Tn[c];for(let n in e){if(n===An){if(o)continue}else{let e=jn(n);if(!e||o&&a&&(s??=Mn(a),s.includes(e)))continue}t||=Tn[c]={},t[n]??=e[n]}}}kn=!0;try{let n=t.toLocation.hash,r=t.toLocation.state.__hashScrollIntoViewOptions??!0,l=!1;if(o){let o=ln.get(t.toLocation),u=n&&r&&(o===`PUSH`||o===`REPLACE`),d=e.isScrollRestoring?Tn[c]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:n}=d[e];if(e===An){if(u)continue;scrollTo({top:n,left:t,behavior:i}),l=!0}else{let r=jn(e);r&&(r.scrollLeft=t,r.scrollTop=n)}}if(!l&&!n){let e={top:0,left:0,behavior:i};if(scrollTo(e),a){s??=Mn(a);for(let t of s)t.scrollTo(e)}}}!l&&n&&r&&document.getElementById(n)?.scrollIntoView(r)}finally{kn=!1}})}var Pn=Symbol.for(`TSR_DEFERRED_PROMISE`);function Fn(e,t){let n=e;return n[Pn]?n:(n[Pn]={status:`pending`},n.then(e=>{n[Pn].status=`success`,n[Pn].data=e}).catch(e=>{n[Pn].status=`error`,n[Pn].error={data:(t?.serializeError??sn)(e),__isServerError:!0}}),n)}var In=`Error preloading route! ☝️`;function Ln(e,t){if(e)return typeof e==`string`?e:e[t]}function Rn(e){return e?.scriptFormat??`module`}function zn(e,t,n){let r=Bn(t),i=Ln(n,`script`)??r.crossOrigin;return{...Rn(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Bn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Vn(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function Hn(e){return Un(e).href}function Un(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Wn(e){return{attrs:{suppressHydrationWarning:!0},children:e}}function Gn(){return{attrs:{suppressHydrationWarning:!0}}}var Kn=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=gt:this.parentRoute||Ce();let r=n?gt:t?.path;r&&r!==`/`&&(r=Ze(r));let i=t?.id||r,a=n?gt:Ye([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=Ye([`/`,a]));let o=a===`__root__`?`/`:Ye([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=Qe(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>_t({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},qn=class extends Kn{constructor(e){super(e)}},Jn=`$_TSR`,Yn=`$tsr-stream-barrier`,Xn=(e=>(e[e.AggregateError=1]=`AggregateError`,e[e.ArrowFunction=2]=`ArrowFunction`,e[e.ErrorPrototypeStack=4]=`ErrorPrototypeStack`,e[e.ObjectAssign=8]=`ObjectAssign`,e[e.BigIntTypedArray=16]=`BigIntTypedArray`,e[e.RegExp=32]=`RegExp`,e))(Xn||{}),Zn=Symbol.asyncIterator,Qn=Symbol.hasInstance,$n=Symbol.isConcatSpreadable,er=Symbol.iterator,tr=Symbol.match,nr=Symbol.matchAll,rr=Symbol.replace,ir=Symbol.search,ar=Symbol.species,or=Symbol.split,sr=Symbol.toPrimitive,cr=Symbol.toStringTag,lr=Symbol.unscopables,ur={0:`Symbol.asyncIterator`,1:`Symbol.hasInstance`,2:`Symbol.isConcatSpreadable`,3:`Symbol.iterator`,4:`Symbol.match`,5:`Symbol.matchAll`,6:`Symbol.replace`,7:`Symbol.search`,8:`Symbol.species`,9:`Symbol.split`,10:`Symbol.toPrimitive`,11:`Symbol.toStringTag`,12:`Symbol.unscopables`},dr={[Zn]:0,[Qn]:1,[$n]:2,[er]:3,[tr]:4,[nr]:5,[rr]:6,[ir]:7,[ar]:8,[or]:9,[sr]:10,[cr]:11,[lr]:12},fr={0:Zn,1:Qn,2:$n,3:er,4:tr,5:nr,6:rr,7:ir,8:ar,9:or,10:sr,11:cr,12:lr},pr={2:`!0`,3:`!1`,1:`void 0`,0:`null`,4:`-0`,5:`1/0`,6:`-1/0`,7:`0/0`},I=void 0,mr={2:!0,3:!1,1:I,0:null,4:-0,5:1/0,6:-1/0,7:NaN},hr={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},gr={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function _r(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function vr(e){return _r(2,I,e,I,I,I,I,I,I,I,I,I)}var yr=vr(2),br=vr(3),xr=vr(1),Sr=vr(0),Cr=vr(4),wr=vr(5),Tr=vr(6),Er=vr(7);function Dr(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case`
11`:return`\\n`;case`\r`:return`\\r`;case`\b`:return`\\b`;case`	`:return`\\t`;case`\f`:return`\\f`;case`<`:return`\\x3C`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return I}}function Or(e){let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=Dr(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function kr(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return`
12`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return`	`;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function Ar(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,kr)}var jr=`__SEROVAL_REFS__`,Mr=`$R`,Nr=`self.${Mr}`;function Pr(e){return e==null?`${Nr}=${Nr}||[]`:`(${Nr}=${Nr}||{})["${Or(e)}"]=[]`}var Fr=new Map,Ir=new Map;function Lr(e){return Fr.has(e)}function Rr(e){return Ir.has(e)}function zr(e){if(Lr(e))return Fr.get(e);throw new Di(e)}function Br(e){if(Rr(e))return Ir.get(e);throw new Oi(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,jr,{value:Ir,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,jr,{value:Ir,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,jr,{value:Ir,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,jr,{value:Ir,configurable:!0,writable:!1,enumerable:!1});function Vr(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function Hr(e){let t=hr[Vr(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function Ur(e,t){let n=Hr(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function Wr(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function Gr(e){switch(e){case 1/0:return wr;case-1/0:return Tr}return e===e?Object.is(e,-0)?Cr:_r(0,I,e,I,I,I,I,I,I,I,I,I):Er}function Kr(e){return _r(1,I,Or(e),I,I,I,I,I,I,I,I,I)}function qr(e){return _r(3,I,``+e,I,I,I,I,I,I,I,I,I)}function Jr(e){return _r(4,e,I,I,I,I,I,I,I,I,I,I)}function Yr(e,t){let n=t.valueOf();return _r(5,e,n===n?t.toISOString():``,I,I,I,I,I,I,I,I,I)}function Xr(e,t){return _r(6,e,I,Or(t.source),t.flags,I,I,I,I,I,I,I)}function Zr(e,t){return _r(17,e,dr[t],I,I,I,I,I,I,I,I,I)}function Qr(e,t){return _r(18,e,Or(zr(t)),I,I,I,I,I,I,I,I,I)}function $r(e,t,n){return _r(25,e,n,Or(t),I,I,I,I,I,I,I,I)}
12function ei(e,t,n){return _r(9,e,I,I,I,I,I,n,I,I,Wr(t),I)}function ti(e,t){return _r(21,e,I,I,I,I,I,I,t,I,I,I)}function ni(e,t,n){return _r(15,e,I,t.constructor.name,I,I,I,I,n,t.byteOffset,I,t.length)}function ri(e,t,n){return _r(16,e,I,t.constructor.name,I,I,I,I,n,t.byteOffset,I,t.byteLength)}function ii(e,t,n){return _r(20,e,I,I,I,I,I,I,n,t.byteOffset,I,t.byteLength)}function ai(e,t,n){return _r(13,e,Vr(t),I,Or(t.message),n,I,I,I,I,I,I)}function oi(e,t,n){return _r(14,e,Vr(t),I,Or(t.message),n,I,I,I,I,I,I)}function si(e,t){return _r(7,e,I,I,I,I,I,t,I,I,I,I)}function ci(e,t){return _r(28,I,I,I,I,I,I,[e,t],I,I,I,I)}function li(e,t){return _r(30,I,I,I,I,I,I,[e,t],I,I,I,I)}function ui(e,t,n){return _r(31,e,I,I,I,I,I,n,t,I,I,I)}function di(e,t){return _r(32,e,I,I,I,I,I,I,t,I,I,I)}function fi(e,t){return _r(33,e,I,I,I,I,I,I,t,I,I,I)}function pi(e,t){return _r(34,e,I,I,I,I,I,I,t,I,I,I)}function mi(e,t,n,r){return _r(35,e,n,I,I,I,I,t,I,I,I,r)}var{toString:hi}=Object.prototype,gi={parsing:1,serialization:2,deserialization:3};function _i(e){return`Seroval Error (step: ${gi[e]})`}var vi=(e,t)=>_i(e),yi=class extends Error{constructor(e,t){super(vi(e,t)),this.cause=t}},bi=class extends yi{constructor(e){super(`parsing`,e)}},xi=class extends yi{constructor(e){super(`deserialization`,e)}};function Si(e){return`Seroval Error (specific: ${e})`}var Ci=class extends Error{constructor(e){super(Si(1)),this.value=e}},wi=class extends Error{constructor(e){super(Si(2))}},Ti=class extends Error{constructor(e){super(Si(3))}},Ei=class extends Error{constructor(e){super(Si(4))}},Di=class extends Error{constructor(e){super(Si(5)),this.value=e}},Oi=class extends Error{constructor(e){super(Si(6))}},ki=class extends Error{constructor(e){super(Si(7))}},Ai=class extends Error{constructor(e){super(Si(8))}},ji=class extends Error{constructor(e){super(Si(9))}},Mi=class{constructor(e,t){this.value=e,this.replacement=t}},Ni=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},Pi=(e,t)=>{e.s(t),e.p.s=1,e.p.v=t},Fi=(e,t)=>{e.f(t),e.p.s=2,e.p.v=t},Ii=Ni.toString(),Li=Pi.toString(),Ri=Fi.toString(),zi=()=>{let e=[],t=[],n=!0,r=!1,i=0,a=(e,n,r)=>{for(r=0;r<i;r++)t[r]&&t[r][n](e)},o=(t,i,a,o)=>{for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},s=(e,r)=>(n&&(r=i++,t[r]=e),o(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)});return{__SEROVAL_STREAM__:!0,on:e=>s(e),next:t=>{n&&(e.push(t),a(t,`next`))},throw:i=>{n&&(e.push(i),a(i,`throw`),n=!1,r=!1,t.length=0)},return:i=>{n&&(e.push(i),a(i,`return`),n=!1,r=!0,t.length=0)}}},Bi=zi.toString(),Vi=e=>t=>()=>{let n=0,r={[e]:()=>r,next:()=>{if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r},Hi=Vi.toString(),Ui=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c=(e=0,t=s.length)=>{for(;e<t;e++)s[e].s({done:!0,value:void 0})};n.on({next:e=>{let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw:e=>{let t=s.shift();t&&t.f(e),c(),i=o.length,a=!0,o.push(e)},return:e=>{let t=s.shift();t&&t.s({done:!0,value:e}),c(),i=o.length,o.push(e)}});let l={[e]:()=>l,next:()=>{if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l},Wi=Ui.toString(),Gi=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer},Ki=Gi.toString();function qi(e){return`__SEROVAL_SEQUENCE__`in e}function Ji(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function Yi(e){let t=[],n=-1,r=-1,i=e[er]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return Ji(t,n,r)}var Xi=Vi(er);function Zi(e){return Xi(e)}var Qi={},$i={},ea={0:{},1:{},2:{},3:{},4:{},5:{}},ta={0:`[]`,1:Ii,2:Li,3:Ri,4:Bi,5:Ki};function na(e){return`__SEROVAL_STREAM__`in e}function ra(){return zi()}function ia(e){let t=ra(),n=e[Zn]();async function r(){try{let e=await n.next();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var aa=Ui(Zn,Ni);function oa(e){return aa(e)}async function sa(e){try{return[1,await e]}catch(e){return[0,e]}}function ca(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function la(e,t){e.marked.add(t)}function ua(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function da(e,t){let n=e.refs.get(t);return n==null?{type:0,value:ua(e,t)}:(la(e,n),{type:1,value:Jr(n)})}function fa(e,t){let n=da(e,t);return n.type===1?n:Lr(t)?{type:2,value:Qr(n.value,t)}:n}function pa(e,t){let n=fa(e,t);if(n.type!==0)return n.value;if(t in dr)return Zr(n.value,t);throw new Ci(t)}function ma(e,t){let n=da(e,ea[t]);return n.type===1?n.value:_r(26,n.value,t,I,I,I,I,I,I,I,I,I)}function ha(e){let t=da(e,Qi);return t.type===1?t.value:_r(27,t.value,I,I,I,I,I,I,pa(e,er),I,I,I)}function ga(e){let t=da(e,$i);return t.type===1?t.value:_r(29,t.value,I,I,I,I,I,[ma(e,1),pa(e,Zn)],I,I,I,I)}function _a(e,t,n,r){return _r(n?11:10,e,I,I,I,r,I,I,I,I,Wr(t),I)}function va(e,t,n,r){return _r(8,t,I,I,I,I,{k:n,v:r},I,ma(e,0),I,I,I)}function ya(e,t,n){return _r(22,t,n,I,I,I,I,I,ma(e,1),I,I,I)}function ba(e,t,n){let r=new Uint8Array(n),i=``;for(let e=0,t=r.length;e<t;e++)i+=String.fromCharCode(r[e]);return _r(19,t,Or(btoa(i)),I,I,I,I,I,ma(e,5),I,I,I)}function xa(e,t){return{base:ca(e,t),child:void 0}}var Sa=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return Ha(this._p,this.depth,e)}};async function Ca(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await Ha(e,t,n[i]):r[i]=0;return r}async function wa(e,t,n,r){return ei(n,r,await Ca(e,t,r))}async function Ta(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(Or(r[n][0])),a.push(await Ha(e,t,r[n][1]));
12return er in n&&(i.push(pa(e.base,er)),a.push(ci(ha(e.base),await Ha(e,t,Yi(n))))),Zn in n&&(i.push(pa(e.base,Zn)),a.push(li(ga(e.base),await Ha(e,t,ia(n))))),cr in n&&(i.push(pa(e.base,cr)),a.push(Kr(n[cr]))),$n in n&&(i.push(pa(e.base,$n)),a.push(n[$n]?yr:br)),{k:i,v:a}}async function Ea(e,t,n,r,i){return _a(n,r,i,await Ta(e,t,r))}async function Da(e,t,n,r){return ti(n,await Ha(e,t,r.valueOf()))}async function Oa(e,t,n,r){return ni(n,r,await Ha(e,t,r.buffer))}async function ka(e,t,n,r){return ri(n,r,await Ha(e,t,r.buffer))}async function Aa(e,t,n,r){return ii(n,r,await Ha(e,t,r.buffer))}async function ja(e,t,n,r){let i=Ur(r,e.base.features);return ai(n,r,i?await Ta(e,t,i):I)}async function Ma(e,t,n,r){let i=Ur(r,e.base.features);return oi(n,r,i?await Ta(e,t,i):I)}async function Na(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await Ha(e,t,n)),a.push(await Ha(e,t,o));return va(e.base,n,i,a)}async function Pa(e,t,n,r){let i=[];for(let n of r.keys())i.push(await Ha(e,t,n));return si(n,i)}async function Fa(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return $r(n,o.tag,await o.parse.async(r,new Sa(e,t),{id:n}))}return I}async function Ia(e,t,n,r){let[i,a]=await sa(r);return _r(12,n,i,I,I,I,I,I,await Ha(e,t,a),I,I,I)}function La(e,t,n,r,i){let a=[],o=n.on({next:n=>{la(this.base,t),Ha(this,e,n).then(e=>{a.push(di(t,e))},e=>{i(e),o()})},throw:n=>{la(this.base,t),Ha(this,e,n).then(e=>{a.push(fi(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{la(this.base,t),Ha(this,e,n).then(e=>{a.push(pi(t,e)),r(a),o()},e=>{i(e),o()})}})}async function Ra(e,t,n,r){return ui(n,ma(e.base,4),await new Promise(La.bind(e,t,n,r)))}async function za(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await Ha(e,t,r.v[n]);return mi(n,i,r.t,r.d)}async function Ba(e,t,n,r){if(Array.isArray(r))return wa(e,t,n,r);if(na(r))return Ra(e,t,n,r);if(qi(r))return za(e,t,n,r);let i=r.constructor;if(i===Mi)return Ha(e,t,r.replacement);let a=await Fa(e,t,n,r);if(a)return a;switch(i){case Object:return Ea(e,t,n,r,!1);case I:return Ea(e,t,n,r,!0);case Date:return Yr(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return ja(e,t,n,r);case Number:case Boolean:case String:case BigInt:return Da(e,t,n,r);case ArrayBuffer:return ba(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return Oa(e,t,n,r);case DataView:return Aa(e,t,n,r);case Map:return Na(e,t,n,r);case Set:return Pa(e,t,n,r);default:break}if(i===Promise||r instanceof Promise)return Ia(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return Xr(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return ka(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return Ma(e,t,n,r);if(r instanceof Error)return ja(e,t,n,r);if(er in r||Zn in r)return Ea(e,t,n,r,!!i);throw new Ci(r)}async function Va(e,t,n){let r=fa(e.base,n);if(r.type!==0)return r.value;let i=await Fa(e,t,r.value,n);if(i)return i;throw new Ci(n)}async function Ha(e,t,n){switch(typeof n){case`boolean`:return n?yr:br;case`undefined`:return xr;case`string`:return Kr(n);case`number`:return Gr(n);case`bigint`:return qr(n);case`object`:if(n){let r=fa(e.base,n);return r.type===0?await Ba(e,t+1,r.value,n):r.value}return Sr;case`symbol`:return pa(e.base,n);case`function`:return Va(e,t,n);default:throw new Ci(n)}}async function Ua(e,t){try{return await Ha(e,0,t)}catch(e){throw e instanceof bi?e:new bi(e)}}var Wa=(e=>(e[e.Vanilla=1]=`Vanilla`,e[e.Cross=2]=`Cross`,e))(Wa||{});function Ga(e){return e}function Ka(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Ka(e,r.extends))}}function qa(e){if(e){let t=new Set;return Ka(t,e),[...t]}}function Ja(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new ki(e)}}var Ya=1e6,Xa=1e4,Za=2e4;function Qa(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var $a=1e3;function eo(e,t){let n=t.refs||new Map;return`types`in n||Object.assign(n,{types:new Map}),{mode:e,plugins:t.plugins,refs:n,features:t.features??63^(t.disabledFeatures||0),depthLimit:t.depthLimit||$a}}function to(e){return{mode:1,base:eo(1,e),child:I,state:{marked:new Set(e.markedRefs)}}}
12function no(e){return{mode:2,base:eo(2,e),child:I}}var ro=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Wo(this._p,this.depth,e)}};function io(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new Ai({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function ao(e,t,n){return io(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function oo(e,t,n){return io(e.base,t),e.base.refs.set(t,n),n}function so(e,t,n){return e.mode===1?ao(e,t,n):oo(e,t,n)}function co(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new Ai(e)}function lo(e,t){return so(e,t.i,Br(Ar(t.s)))}function uo(e,t,n){let r=n.a,i=r.length,a=so(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=Wo(e,t,o));return Qa(a,n.o),a}function fo(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function po(e){switch(e){case Zn:case $n:case cr:case er:return!0;default:return!1}}function mo(e,t,n){fo(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function ho(e,t,n,r,i){if(typeof r==`string`)mo(n,Ar(r),Wo(e,t,i));else{let a=Wo(e,t,r);switch(typeof a){case`string`:mo(n,a,Wo(e,t,i));break;case`symbol`:po(a)&&(n[a]=Wo(e,t,i));break;default:throw new Ai(r)}}}function go(e,t,n){e.base.refs.types.set(t,n)}function _o(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new Ai(t)}function L(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)ho(e,t,r,i[a],o[a]);return r}function vo(e,t,n){let r=so(e,n.i,n.t===10?{}:Object.create(null));return L(e,t,n.p,r),Qa(r,n.o),r}function yo(e,t){return so(e,t.i,new Date(t.s))}function bo(e,t){if(e.base.features&32){let n=Ar(t.c);if(n.length>Za)throw new Ai(t);return so(e,t.i,new RegExp(n,t.m))}throw new wi(t)}function xo(e,t,n){let r=so(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(Wo(e,t,a[i]));return r}function So(e,t,n){let r=so(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(Wo(e,t,a[i]),Wo(e,t,o[i]));return r}function Co(e,t){if(t.s.length>Ya)throw new Ai(t);return so(e,t.i,Gi(Ar(t.s)))}function wo(e,t,n){let r=Ja(n.c),i=Wo(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new Ai(n);return so(e,n.i,new r(i,a,n.l))}function To(e,t,n){let r=Wo(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new Ai(n);return so(e,n.i,new DataView(r,i,n.l))}function Eo(e,t,n,r){if(n.p){let i=L(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function Do(e,t,n){return Eo(e,t,n,so(e,n.i,AggregateError([],Ar(n.m))))}function Oo(e,t,n){let r=co(n,gr,n.s);return Eo(e,t,n,so(e,n.i,new r(Ar(n.m))))}function ko(e,t,n){let r=Ni(),i=so(e,n.i,r.p),a=Wo(e,t,n.f);return n.s?r.s(a):r.f(a),i}function Ao(e,t,n){return so(e,n.i,Object(Wo(e,t,n.f)))}function jo(e,t,n){let r=e.base.plugins;if(r){let i=Ar(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return so(e,n.i,o.deserialize(n.s,new ro(e,t),{id:n.i}))}}throw new Ti(n.c)}function Mo(e,t){let n=so(e,t.i,so(e,t.s,Ni()).p);return go(e,t.s,22),n}function No(e,t,n){let r=e.base.refs.get(n.i);if(r)return _o(e,n,n.i,22),r.s(Wo(e,t,n.a[1])),I;throw new Ei(`Promise`)}function Po(e,t,n){let r=e.base.refs.get(n.i);if(r)return _o(e,n,n.i,22),r.f(Wo(e,t,n.a[1])),I;throw new Ei(`Promise`)}
12function Fo(e,t,n){return Wo(e,t,n.a[0]),Zi(Wo(e,t,n.a[1]))}function Io(e,t,n){return Wo(e,t,n.a[0]),oa(Wo(e,t,n.a[1]))}function Lo(e,t,n){let r=so(e,n.i,ra());go(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)Wo(e,t,i[n]);return r}function Ro(e,t,n){let r=e.base.refs.get(n.i);if(r)return _o(e,n,n.i,31),r.next(Wo(e,t,n.f)),I;throw new Ei(`Stream`)}function zo(e,t,n){let r=e.base.refs.get(n.i);if(r)return _o(e,n,n.i,31),r.throw(Wo(e,t,n.f)),I;throw new Ei(`Stream`)}function Bo(e,t,n){let r=e.base.refs.get(n.i);if(r)return _o(e,n,n.i,31),r.return(Wo(e,t,n.f)),I;throw new Ei(`Stream`)}function Vo(e,t,n){return Wo(e,t,n.f),I}function Ho(e,t,n){return Wo(e,t,n.a[1]),I}function Uo(e,t,n){let r=so(e,n.i,Ji([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=Wo(e,t,n.a[i]);return r}function Wo(e,t,n){if(t>e.base.depthLimit)throw new ji(e.base.depthLimit);switch(t+=1,n.t){case 2:return co(n,mr,n.s);case 0:return Number(n.s);case 1:return Ar(String(n.s));case 3:if(String(n.s).length>Xa)throw new Ai(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return lo(e,n);case 9:return uo(e,t,n);case 10:case 11:return vo(e,t,n);case 5:return yo(e,n);case 6:return bo(e,n);case 7:return xo(e,t,n);case 8:return So(e,t,n);case 19:return Co(e,n);case 16:case 15:return wo(e,t,n);case 20:return To(e,t,n);case 14:return Do(e,t,n);case 13:return Oo(e,t,n);case 12:return ko(e,t,n);case 17:return co(n,fr,n.s);case 21:return Ao(e,t,n);case 25:return jo(e,t,n);case 22:return Mo(e,n);case 23:return No(e,t,n);case 24:return Po(e,t,n);case 28:return Fo(e,t,n);case 30:return Io(e,t,n);case 31:return Lo(e,t,n);case 32:return Ro(e,t,n);case 33:return zo(e,t,n);case 34:return Bo(e,t,n);case 27:return Vo(e,t,n);case 29:return Ho(e,t,n);case 35:return Uo(e,t,n);default:throw new wi(n)}}function Go(e,t){try{return Wo(e,0,t)}catch(e){throw new xi(e)}}var Ko=(()=>T).toString(),qo=/=>/.test(Ko);function Jo(e,t){return qo?(e.length===1?e[0]:`(`+e.join(`,`)+`)`)+`=>`+(t.startsWith(`{`)?`(`+t+`)`:t):`function(`+e.join(`,`)+`){return `+t+`}`}function Yo(e,t){return qo?(e.length===1?e[0]:`(`+e.join(`,`)+`)`)+`=>{`+t+`}`:`function(`+e.join(`,`)+`){`+t+`}`}var Xo=`hjkmoquxzABCDEFGHIJKLNPQRTUVWXYZ$_`,Zo=Xo.length,Qo=`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789$_`,$o=Qo.length;function es(e){let t=e%Zo,n=Xo[t];for(e=(e-t)/Zo;e>0;)t=e%$o,n+=Qo[t],e=(e-t)/$o;return n}var ts=/^[$A-Z_][0-9A-Z_$]*$/i;function ns(e){let t=e[0];return(t===`$`||t===`_`||t>=`A`&&t<=`Z`||t>=`a`&&t<=`z`)&&ts.test(e)}function rs(e){switch(e.t){case 0:return e.s+`=`+e.v;case 2:return e.s+`.set(`+e.k+`,`+e.v+`)`;case 1:return e.s+`.add(`+e.v+`)`;case 3:return e.s+`.delete(`+e.k+`)`}}function is(e){let t=[],n=e[0];for(let r=1,i=e.length,a,o=n;r<i;r++)a=e[r],a.t===0&&a.v===o.v?n={t:0,s:a.s,k:I,v:rs(n)}:a.t===2&&a.s===o.s?n={t:2,s:rs(n),k:a.k,v:a.v}:a.t===1&&a.s===o.s?n={t:1,s:rs(n),k:I,v:a.v}:a.t===3&&a.s===o.s?n={t:3,s:rs(n),k:a.k,v:I}:(t.push(n),n=a),o=a;return t.push(n),t}function as(e){if(e.length){let t=``,n=is(e);for(let e=0,r=n.length;e<r;e++)t+=rs(n[e])+`,`;return t}return I}var os=`Object.create(null)`,ss=`new Set`,cs=`new Map`,ls=`Promise.resolve`,us=`Promise.reject`,ds={3:`Object.freeze`,2:`Object.seal`,1:`Object.preventExtensions`,0:I};function fs(e,t){return{mode:e,plugins:t.plugins,features:t.features,marked:new Set(t.markedRefs),stack:[],flags:[],assignments:[]}}function ps(e){return{mode:2,base:fs(2,e),state:e,child:I}}var ms=class{constructor(e){this._p=e}serialize(e){return yc(this._p,e)}};function hs(e,t){let n=e.valid.get(t);n??(n=e.valid.size,e.valid.set(t,n));let r=e.vars[n];return r??(r=es(n),e.vars[n]=r),r}function gs(e){return Mr+`[`+e+`]`}function _s(e,t){return e.mode===1?hs(e.state,t):gs(t)}function vs(e,t){e.marked.add(t)}function ys(e,t){return e.marked.has(t)}function bs(e,t,n){t!==0&&(vs(e.base,n),e.base.flags.push({type:t,value:_s(e,n)}))}function xs(e){let t=``;for(let n=0,r=e.flags,i=r.length;n<i;n++){let e=r[n];t+=ds[e.type]+`(`+e.value+`),`}return t}function Ss(e){let t=as(e.assignments),n=xs(e);return t?n?t+n:t:n}function Cs(e,t,n){e.assignments.push({t:0,s:t,k:I,v:n})}function ws(e,t,n){e.base.assignments.push({t:1,s:_s(e,t),k:I,v:n})}function Ts(e,t,n,r){e.base.assignments.push({t:2,s:_s(e,t),k:n,v:r})}function Es(e,t,n){e.base.assignments.push({t:3,s:_s(e,t),k:n,v:I})}function Ds(e,t,n,r){Cs(e.base,_s(e,t)+`[`+n+`]`,r)}function Os(e,t,n,r){Cs(e.base,_s(e,t)+`.`+n,r)}function ks(e,t,n,r){Cs(e.base,_s(e,t)+`.v[`+n+`]`,r)}function As(e,t){return t.t===4&&e.stack.includes(t.i)}function js(e,t,n){return e.mode===1&&!ys(e.base,t)?n:_s(e,t)+`=`+n}function Ms(e){return jr+`.get("`+e.s+`")`}function Ns(e,t,n,r){return n?As(e.base,n)?(vs(e.base,t),Ds(e,t,r,_s(e,n.i)),``):yc(e,n):``}function Ps(e,t){let n=t.i,r=t.a,i=r.length;if(i>0){e.base.stack.push(n);let a=Ns(e,n,r[0],0),o=a===``;for(let t=1,s;t<i;t++)s=Ns(e,n,r[t],t),a+=`,`+s,o=s===``;return e.base.stack.pop(),bs(e,t.o,t.i),`[`+a+(o?`,]`:`]`)}return`[]`}function Fs(e,t,n,r){if(typeof n==`string`){let i=Number(n),a=i>=0&&i.toString()===n||ns(n);if(As(e.base,r)){let o=_s(e,r.i);return vs(e.base,t.i),a&&i!==i?Os(e,t.i,n,o):Ds(e,t.i,a?n:`"`+n+`"`,o),``}return(a?n:`"`+n+`"`)+`:`+yc(e,r)}return`[`+yc(e,n)+`]:`+yc(e,r)}function Is(e,t,n){let r=n.k,i=r.length;if(i>0){let a=n.v;e.base.stack.push(t.i);let o=Fs(e,t,r[0],a[0]);for(let n=1,s=o;n<i;n++)s=Fs(e,t,r[n],a[n]),o+=(s&&o&&`,`)+s;return e.base.stack.pop(),`{`+o+`}`}return`{}`}function Ls(e,t){return bs(e,t.o,t.i),Is(e,t,t.p)}function Rs(e,t,n,r){let i=Is(e,t,n);return i===`{}`?r:`Object.assign(`+r+`,`+i+`)`}function zs(e,t,n,r,i){let a=e.base,o=yc(e,i),s=Number(r),c=s>=0&&s.toString()===r||ns(r);if(As(a,i))c&&s!==s?Os(e,t.i,r,o):Ds(e,t.i,c?r:`"`+r+`"`,o);else{let i=a.assignments;a.assignments=n,c&&s!==s?Os(e,t.i,r,o):Ds(e,t.i,c?r:`"`+r+`"`,o),a.assignments=i}}function Bs(e,t,n,r,i){if(typeof r==`string`)zs(e,t,n,r,i);else{let a=e.base,o=a.stack;a.stack=[];let s=yc(e,i);a.stack=o;let c=a.assignments;a.assignments=n,Ds(e,t.i,yc(e,r),s),a.assignments=c}}function Vs(e,t,n){let r=n.k,i=r.length;if(i>0){let a=[],o=n.v;e.base.stack.push(t.i);for(let n=0;n<i;n++)Bs(e,t,a,r[n],o[n]);return e.base.stack.pop(),as(a)}return I}function Hs(e,t,n){if(t.p){let r=e.base;if(r.features&8)n=Rs(e,t,t.p,n);else{vs(r,t.i);let i=Vs(e,t,t.p);if(i)return`(`+js(e,t.i,n)+`,`+i+_s(e,t.i)+`)`}}return n}function Us(e,t){return bs(e,t.o,t.i),Hs(e,t,os)}function Ws(e){return`new Date("`+e.s+`")`}function Gs(e,t){if(e.base.features&32)return`/`+t.c+`/`+t.m;throw new wi(t)}function Ks(e,t,n){let r=e.base;return As(r,n)?(vs(r,t),ws(e,t,_s(e,n.i)),``):yc(e,n)}function qs(e,t){let n=ss,r=t.a,i=r.length,a=t.i;if(i>0){e.base.stack.push(a);let t=Ks(e,a,r[0]);for(let n=1,o=t;n<i;
12n++)o=Ks(e,a,r[n]),t+=(o&&t&&`,`)+o;e.base.stack.pop(),t&&(n+=`([`+t+`])`)}return n}function Js(e,t,n,r,i){let a=e.base;if(As(a,n)){let o=_s(e,n.i);if(vs(a,t),As(a,r))return Ts(e,t,o,_s(e,r.i)),``;if(r.t!==4&&r.i!=null&&ys(a,r.i)){let n=`(`+yc(e,r)+`,[`+i+`,`+i+`])`;return Ts(e,t,o,_s(e,r.i)),Es(e,t,i),n}let s=a.stack;return a.stack=[],Ts(e,t,o,yc(e,r)),a.stack=s,``}if(As(a,r)){let o=_s(e,r.i);if(vs(a,t),n.t!==4&&n.i!=null&&ys(a,n.i)){let r=`(`+yc(e,n)+`,[`+i+`,`+i+`])`;return Ts(e,t,_s(e,n.i),o),Es(e,t,i),r}let s=a.stack;return a.stack=[],Ts(e,t,yc(e,n),o),a.stack=s,``}return`[`+yc(e,n)+`,`+yc(e,r)+`]`}function Ys(e,t){let n=cs,r=t.e.k,i=r.length,a=t.i,o=t.f,s=_s(e,o.i),c=e.base;if(i>0){let o=t.e.v;c.stack.push(a);let l=Js(e,a,r[0],o[0],s);for(let t=1,n=l;t<i;t++)n=Js(e,a,r[t],o[t],s),l+=(n&&l&&`,`)+n;c.stack.pop(),l&&(n+=`([`+l+`])`)}return o.t===26&&(vs(c,o.i),n=`(`+yc(e,o)+`,`+n+`)`),n}function Xs(e,t){return rc(e,t.f)+`("`+t.s+`")`}function Zs(e,t){return`new `+t.c+`(`+yc(e,t.f)+`,`+t.b+`,`+t.l+`)`}function Qs(e,t){return`new DataView(`+yc(e,t.f)+`,`+t.b+`,`+t.l+`)`}function $s(e,t){let n=t.i;e.base.stack.push(n);let r=Hs(e,t,`new AggregateError([],"`+t.m+`")`);return e.base.stack.pop(),r}function ec(e,t){return Hs(e,t,`new `+hr[t.s]+`("`+t.m+`")`)}function tc(e,t){let n,r=t.f,i=t.i,a=t.s?ls:us,o=e.base;if(As(o,r)){let i=_s(e,r.i);n=a+(t.s?`().then(`+Jo([],i)+`)`:`().catch(`+Yo([],`throw `+i)+`)`)}else{o.stack.push(i);let t=yc(e,r);o.stack.pop(),n=a+`(`+t+`)`}return n}function nc(e,t){return`Object(`+yc(e,t.f)+`)`}function rc(e,t){let n=yc(e,t);return t.t===4?n:`(`+n+`)`}function ic(e,t){if(e.mode===1)throw new wi(t);return`(`+js(e,t.s,rc(e,t.f)+`()`)+`).p`}function ac(e,t){if(e.mode===1)throw new wi(t);return rc(e,t.a[0])+`(`+_s(e,t.i)+`,`+yc(e,t.a[1])+`)`}function oc(e,t){if(e.mode===1)throw new wi(t);return rc(e,t.a[0])+`(`+_s(e,t.i)+`,`+yc(e,t.a[1])+`)`}function sc(e,t){let n=e.base.plugins;if(n)for(let r=0,i=n.length;r<i;r++){let i=n[r];if(i.tag===t.c)return e.child??=new ms(e),i.serialize(t.s,e.child,{id:t.i})}throw new Ti(t.c)}function cc(e,t){let n=``,r=!1;return t.f.t!==4&&(vs(e.base,t.f.i),n=`(`+yc(e,t.f)+`,`,r=!0),n+=js(e,t.i,`(`+Hi+`)(`+_s(e,t.f.i)+`)`),r&&(n+=`)`),n}function lc(e,t){return rc(e,t.a[0])+`(`+yc(e,t.a[1])+`)`}function uc(e,t){let n=t.a[0],r=t.a[1],i=e.base,a=``;n.t!==4&&(vs(i,n.i),a+=`(`+yc(e,n)),r.t!==4&&(vs(i,r.i),a+=(a?`,`:`(`)+yc(e,r)),a&&(a+=`,`);let o=js(e,t.i,`(`+Wi+`)(`+_s(e,r.i)+`,`+_s(e,n.i)+`)`);return a?a+o+`)`:o}function dc(e,t){return rc(e,t.a[0])+`(`+yc(e,t.a[1])+`)`}function fc(e,t){let n=js(e,t.i,rc(e,t.f)+`()`),r=t.a.length;if(r){let i=yc(e,t.a[0]);for(let n=1;n<r;n++)i+=`,`+yc(e,t.a[n]);return`(`+n+`,`+i+`,`+_s(e,t.i)+`)`}return n}function pc(e,t){return _s(e,t.i)+`.next(`+yc(e,t.f)+`)`}function mc(e,t){return _s(e,t.i)+`.throw(`+yc(e,t.f)+`)`}function hc(e,t){return _s(e,t.i)+`.return(`+yc(e,t.f)+`)`}function gc(e,t,n,r){let i=e.base;return As(i,r)?(vs(i,t),ks(e,t,n,_s(e,r.i)),``):yc(e,r)}function _c(e,t){let n=t.a,r=n.length,i=t.i;if(r>0){e.base.stack.push(i);let a=gc(e,i,0,n[0]);for(let t=1,o=a;t<r;t++)o=gc(e,i,t,n[t]),a+=(o&&a&&`,`)+o;if(e.base.stack.pop(),a)return`{__SEROVAL_SEQUENCE__:!0,v:[`+a+`],t:`+t.s+`,d:`+t.l+`}`}return`{__SEROVAL_SEQUENCE__:!0,v:[],t:-1,d:0}`}function vc(e,t){switch(t.t){case 17:return ur[t.s];case 18:return Ms(t);case 9:return Ps(e,t);case 10:return Ls(e,t);case 11:return Us(e,t);case 5:return Ws(t);case 6:return Gs(e,t);case 7:return qs(e,t);case 8:return Ys(e,t);case 19:return Xs(e,t);case 16:case 15:return Zs(e,t);case 20:return Qs(e,t);case 14:return $s(e,t);case 13:return ec(e,t);case 12:return tc(e,t);case 21:return nc(e,t);case 22:return ic(e,t);case 25:return sc(e,t);case 26:return ta[t.s];case 35:return _c(e,t);default:throw new wi(t)}}function yc(e,t){switch(t.t){case 2:return pr[t.s];case 0:return``+t.s;case 1:return`"`+t.s+`"`;case 3:return t.s+`n`;case 4:return _s(e,t.i);case 23:return ac(e,t);case 24:return oc(e,t);case 27:return cc(e,t);case 28:return lc(e,t);case 29:return uc(e,t);case 30:return dc(e,t);case 31:return fc(e,t);case 32:return pc(e,t);case 33:return mc(e,t);case 34:return hc(e,t);default:return js(e,t.i,vc(e,t))}}function bc(e,t){let n=yc(e,t),r=t.i;if(r==null)return n;let i=Ss(e.base),a=_s(e,r),o=e.state.scopeId,s=o==null?``:Mr,c=i?`(`+n+`,`+i+a+`)`:n;
12if(s===``)return t.t===10&&!i?`(`+c+`)`:c;let l=o==null?`()`:`(`+Mr+`["`+Or(o)+`"])`;return`(`+Jo([s],c)+`)`+l}var xc=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return Jc(this._p,this.depth,e)}},Sc=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return Jc(this._p,this.depth,e)}parseWithError(e){return tl(this._p,this.depth,e)}isAlive(){return this._p.state.alive}pushPendingState(){$c(this._p)}popPendingState(){el(this._p)}onParse(e){Yc(this._p,e)}onError(e){Xc(this._p,e)}};function Cc(e){return{alive:!0,pending:0,initial:!0,buffer:[],onParse:e.onParse,onError:e.onError,onDone:e.onDone}}function wc(e){return{type:2,base:ca(2,e),state:Cc(e)}}function Tc(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=Jc(e,t,n[i]):r[i]=0;return r}function Ec(e,t,n,r){return ei(n,r,Tc(e,t,r))}function Dc(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(Or(r[n][0])),a.push(Jc(e,t,r[n][1]));return er in n&&(i.push(pa(e.base,er)),a.push(ci(ha(e.base),Jc(e,t,Yi(n))))),Zn in n&&(i.push(pa(e.base,Zn)),a.push(li(ga(e.base),Jc(e,t,e.type===1?ra():ia(n))))),cr in n&&(i.push(pa(e.base,cr)),a.push(Kr(n[cr]))),$n in n&&(i.push(pa(e.base,$n)),a.push(n[$n]?yr:br)),{k:i,v:a}}function Oc(e,t,n,r,i){return _a(n,r,i,Dc(e,t,r))}function kc(e,t,n,r){return ti(n,Jc(e,t,r.valueOf()))}function Ac(e,t,n,r){return ni(n,r,Jc(e,t,r.buffer))}function jc(e,t,n,r){return ri(n,r,Jc(e,t,r.buffer))}function Mc(e,t,n,r){return ii(n,r,Jc(e,t,r.buffer))}function Nc(e,t,n,r){let i=Ur(r,e.base.features);return ai(n,r,i?Dc(e,t,i):I)}function Pc(e,t,n,r){let i=Ur(r,e.base.features);return oi(n,r,i?Dc(e,t,i):I)}function Fc(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(Jc(e,t,n)),a.push(Jc(e,t,o));return va(e.base,n,i,a)}function Ic(e,t,n,r){let i=[];for(let n of r.keys())i.push(Jc(e,t,n));return si(n,i)}function Lc(e,t,n,r){let i=ui(n,ma(e.base,4),[]);return e.type===1||($c(e),r.on({next:r=>{if(e.state.alive){let i=tl(e,t,r);i&&Yc(e,di(n,i))}},throw:r=>{if(e.state.alive){let i=tl(e,t,r);i&&Yc(e,fi(n,i))}el(e)},return:r=>{if(e.state.alive){let i=tl(e,t,r);i&&Yc(e,pi(n,i))}el(e)}})),i}function Rc(e,t,n){if(this.state.alive){let r=tl(this,t,n);r&&Yc(this,_r(23,e,I,I,I,I,I,[ma(this.base,2),r],I,I,I,I)),el(this)}}function zc(e,t,n){if(this.state.alive){let r=tl(this,t,n);r&&Yc(this,_r(24,e,I,I,I,I,I,[ma(this.base,3),r],I,I,I,I))}el(this)}function Bc(e,t,n,r){let i=ua(e.base,{});return e.type===2&&($c(e),r.then(Rc.bind(e,i,t),zc.bind(e,i,t))),ya(e.base,n,i)}function Vc(e,t,n,r,i){for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.sync&&o.test(r))return $r(n,o.tag,o.parse.sync(r,new xc(e,t),{id:n}))}return I}function Hc(e,t,n,r,i){for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.stream&&o.test(r))return $r(n,o.tag,o.parse.stream(r,new Sc(e,t),{id:n}))}return I}function Uc(e,t,n,r){let i=e.base.plugins;return i?e.type===1?Vc(e,t,n,r,i):Hc(e,t,n,r,i):I}function Wc(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=Jc(e,t,r.v[n]);return mi(n,i,r.t,r.d)}function Gc(e,t,n,r,i){switch(i){case Object:return Oc(e,t,n,r,!1);case I:return Oc(e,t,n,r,!0);case Date:return Yr(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Nc(e,t,n,r);case Number:case Boolean:case String:case BigInt:return kc(e,t,n,r);case ArrayBuffer:return ba(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return Ac(e,t,n,r);case DataView:return Mc(e,t,n,r);case Map:return Fc(e,t,n,r);case Set:return Ic(e,t,n,r);default:break}if(i===Promise||r instanceof Promise)return Bc(e,t,n,r);let a=e.base.features;if(a&32&&i===RegExp)return Xr(n,r);if(a&16)switch(i){case BigInt64Array:case BigUint64Array:return jc(e,t,n,r);default:break}if(a&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return Pc(e,t,n,r);if(r instanceof Error)return Nc(e,t,n,r);if(er in r||Zn in r)return Oc(e,t,n,r,!!i);throw new Ci(r)}function Kc(e,t,n,r){if(Array.isArray(r))return Ec(e,t,n,r);if(na(r))return Lc(e,t,n,r);if(qi(r))return Wc(e,t,n,r);let i=r.constructor;return i===Mi?Jc(e,t,r.replacement):Uc(e,t,n,r)||Gc(e,t,n,r,i)}function qc(e,t,n){let r=fa(e.base,n);if(r.type!==0)return r.value;let i=Uc(e,t,r.value,n);if(i)return i;throw new Ci(n)}
12function Jc(e,t,n){if(t>=e.base.depthLimit)throw new ji(e.base.depthLimit);switch(typeof n){case`boolean`:return n?yr:br;case`undefined`:return xr;case`string`:return Kr(n);case`number`:return Gr(n);case`bigint`:return qr(n);case`object`:if(n){let r=fa(e.base,n);return r.type===0?Kc(e,t+1,r.value,n):r.value}return Sr;case`symbol`:return pa(e.base,n);case`function`:return qc(e,t,n);default:throw new Ci(n)}}function Yc(e,t){e.state.initial?e.state.buffer.push(t):Qc(e,t,!1)}function Xc(e,t){if(e.state.onError)e.state.onError(t);else throw t instanceof bi?t:new bi(t)}function Zc(e){e.state.onDone&&e.state.onDone()}function Qc(e,t,n){try{e.state.onParse(t,n)}catch(t){Xc(e,t)}}function $c(e){e.state.pending++}function el(e){--e.state.pending<=0&&Zc(e)}function tl(e,t,n){try{return Jc(e,t,n)}catch(t){return Xc(e,t),I}}function nl(e,t){let n=tl(e,0,t);n&&(Qc(e,n,!0),e.state.initial=!1,rl(e,e.state),e.state.pending<=0&&il(e))}function rl(e,t){for(let n=0,r=t.buffer.length;n<r;n++)Qc(e,t.buffer[n],!1)}function il(e){e.state.alive&&(Zc(e),e.state.alive=!1)}async function al(e,t={}){return await Ua(xa(2,{plugins:qa(t.plugins),disabledFeatures:t.disabledFeatures,refs:t.refs}),e)}function ol(e,t){let n=qa(t.plugins),r=wc({plugins:n,refs:t.refs,disabledFeatures:t.disabledFeatures,onParse(e,i){let a=ps({plugins:n,features:r.base.features,scopeId:t.scopeId,markedRefs:r.base.marked}),o;try{o=bc(a,e)}catch(e){t.onError&&t.onError(e);return}t.onSerialize(o,i)},onError:t.onError,onDone:t.onDone});return nl(r,e),il.bind(null,r)}function sl(e,t){let n=wc({plugins:qa(t.plugins),refs:t.refs,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit,onParse:t.onParse,onError:t.onError,onDone:t.onDone});return nl(n,e),il.bind(null,n)}function cl(e,t){return Go(no({plugins:qa(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function ll(e,t={}){let n=xa(1,{plugins:qa(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await Ua(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function ul(e,t={}){let n=qa(t.plugins),r=t.disabledFeatures||0,i=e.f??63;return Go(to({plugins:n,markedRefs:e.m,features:i&~r,disabledFeatures:r}),e.t)}function dl(e){return e}function fl(e,t){return Ga({tag:`$TSR/t/`+e.key,test:e.test,parse:{stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize(n,r,i){return t.didRun=!0,Jn+`.t.get("`+e.key+`")(`+r.serialize(n.v)+`)`},deserialize:void 0})}function pl(e){return Ga({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}})}var ml=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},hl=globalThis.Buffer,gl=!!hl&&typeof hl.from==`function`;function _l(e){if(e.length===0)return``;if(gl)return hl.from(e).toString(`base64`);let t=32768,n=[];for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,i))}return btoa(n.join(``))}function vl(e){if(e.length===0)return new Uint8Array;
12if(gl){let t=hl.from(e,`base64`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var yl=Object.create(null),bl=Object.create(null),xl=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(vl(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Sl=new TextEncoder,Cl=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(Sl.encode(e)):t.enqueue(vl(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),wl=`(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))`,Tl=`(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})`;function El(e){let t=ra(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(_l(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function Dl(e){let t=ra(),n=e.getReader(),r=new TextDecoder(`utf-8`,{fatal:!0});return(async()=>{try{for(;;){let{done:e,value:i}=await n.read();if(e){try{let e=r.decode();e.length>0&&t.next(e)}catch{}t.return(void 0);break}try{let e=r.decode(i,{stream:!0});e.length>0&&t.next(e)}catch{t.next({$b64:_l(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var Ol=Ga({tag:`tss/RawStream`,extends:[Ga({tag:`tss/RawStreamFactory`,test(e){return e===yl},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return wl},deserialize(e,t,n){return yl}}),Ga({tag:`tss/RawStreamFactoryText`,test(e){return e===bl},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return Tl},deserialize(e,t,n){return bl}})],test(e){return e instanceof ml},parse:{sync(e,t,n){let r=e.hint===`text`?bl:yl;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(ra())}},async async(e,t,n){let r=e.hint===`text`?bl:yl,i=e.hint===`text`?Dl(e.stream):El(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(i)}},stream(e,t,n){let r=e.hint===`text`?bl:yl,i=e.hint===`text`?Dl(e.stream):El(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(i)}}},serialize(e,t,n){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t,n){let r=t.deserialize(e.stream);return t.deserialize(e.hint)===`text`?Cl(r):xl(r)}});function kl(e){let t=1;return Ga({tag:`tss/RawStream`,test(e){return e instanceof ml},parse:{async async(n,r,i){let a=t++;return e(a,n.stream),{streamId:await r.parse(a)}},stream(n,r,i){let a=t++;return e(a,n.stream),{streamId:r.parse(a)}}},serialize(){throw Error(`RawStreamRPCPlugin.serialize should not be called. RPC uses JSON serialization, not JS code generation.`)},deserialize(){throw Error(`RawStreamRPCPlugin.deserialize should not be called. Use createRawStreamDeserializePlugin on client.`)}})}function Al(e){return Ga({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize(){throw Error(`RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.`)},deserialize(t,n,r){return e(typeof n?.deserialize==`function`?n.deserialize(t.streamId):t.streamId)}})}var jl=Ga({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),Ml={},Nl=e=>new ReadableStream({start:t=>{e.on({next:e=>{try{t.enqueue(e)}catch{}},throw:e=>{t.error(e)},return:()=>{try{t.close()}catch{}}})}}),Pl=Ga({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===Ml},parse:{sync(){return Ml},async async(){return await Promise.resolve(Ml)},stream(){return Ml}},serialize(){return Nl.toString()},deserialize(){return Ml}});function Fl(e){let t=ra(),n=e.getReader();async function r(){try{let e=await n.read();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var Il=[jl,Ol,Ga({tag:`seroval/plugins/web/ReadableStream`,extends:[Pl],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Ml),stream:t.parse(ra())}},async async(e,t){return{factory:await t.parse(Ml),stream:await t.parse(Fl(e))}},stream(e,t){return{factory:t.parse(Ml),stream:t.parse(Fl(e))}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return Nl(t.deserialize(e.stream))}})];function Ll(){return[...(k()?.serializationAdapters)?.map(pl)??[],...Il]}var Rl=new TextDecoder,zl=new Uint8Array,Bl=16*1024*1024,Vl=32*1024*1024,Hl=1024,Ul=1e5;function Wl(e){let t=new Map,n=new Map,r=new Set,i=!1,a=null,o=0,s,c=new ReadableStream({start(e){s=e},cancel(){i=!0;try{a?.cancel()}catch{}
12t.forEach(e=>{try{e.error(Error(`Framed response cancelled`))}catch{}}),t.clear(),n.clear(),r.clear()}});function l(e){let i=n.get(e);if(i)return i;if(r.has(e))return new ReadableStream({start(e){e.close()}});if(n.size>=Hl)throw Error(`Too many raw streams in framed response (max ${Hl})`);let a=new ReadableStream({start(n){t.set(e,n)},cancel(){r.add(e),t.delete(e),n.delete(e)}});return n.set(e,a),a}function u(e){return l(e),t.get(e)}return(async()=>{let n=e.getReader();a=n;let c=[],l=0;function d(){if(l<9)return null;let e=c[0];if(e.length>=9)return{type:e[0],streamId:(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,length:(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0};let t=new Uint8Array(9),n=0,r=9;for(let e=0;e<c.length&&r>0;e++){let i=c[e],a=Math.min(i.length,r);t.set(i.subarray(0,a),n),n+=a,r-=a}return{type:t[0],streamId:(t[1]<<24|t[2]<<16|t[3]<<8|t[4])>>>0,length:(t[5]<<24|t[6]<<16|t[7]<<8|t[8])>>>0}}function f(e){if(e===0)return zl;let t=new Uint8Array(e),n=0,r=e;for(;r>0&&c.length>0;){let e=c[0];if(!e)break;let i=Math.min(e.length,r);t.set(e.subarray(0,i),n),n+=i,r-=i,i===e.length?c.shift():c[0]=e.subarray(i)}return l-=e,t}try{for(;;){let{done:e,value:a}=await n.read();if(i||e)break;if(a){if(l+a.length>Vl)throw Error(`Framed response buffer exceeded ${Vl} bytes`);for(c.push(a),l+=a.length;;){let e=d();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==E.JSON&&n!==E.CHUNK&&n!==E.END&&n!==E.ERROR)throw Error(`Unknown frame type: ${n}`);
12if(n===E.JSON){if(i!==0)throw Error(`Invalid JSON frame streamId (expected 0)`)}else if(i===0)throw Error(`Invalid raw frame streamId (expected non-zero)`);if(a>Bl)throw Error(`Frame payload too large: ${a} bytes (max ${Bl})`);let c=9+a;if(l<c)break;if(++o>Ul)throw Error(`Too many frames in framed response (max ${Ul})`);f(9);let p=f(a);switch(n){case E.JSON:try{s.enqueue(Rl.decode(p))}catch{}break;case E.CHUNK:{let e=u(i);e&&e.enqueue(p);break}case E.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case E.ERROR:{let e=u(i);if(r.add(i),e){let n=Rl.decode(p);e.error(Error(n)),t.delete(i)}break}}}}}if(l!==0)throw Error(`Incomplete frame at end of framed response`);try{s.close()}catch{}t.forEach(e=>{try{e.close()}catch{}}),t.clear()}catch(e){try{s.error(e)}catch{}t.forEach(t=>{try{t.error(e)}catch{}}),t.clear()}finally{try{n.releaseLock()}catch{}a=null}})(),{getOrCreateStream:l,jsonChunks:c}}var Gl=null;async function Kl(e){e.length>0&&await Promise.allSettled(e)}var ql=Object.prototype.hasOwnProperty;function Jl(e){for(let t in e)if(ql.call(e,t))return!0;return!1}async function Yl(e,t,n){Gl||=Ll();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData?`formData`:`payload`,o=r.headers?new Headers(r.headers):new Headers;if(o.set(`x-tsr-serverFn`,`true`),a===`payload`&&o.set(`accept`,`${w}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await Xl(r);if(t!==void 0){let n=lt({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await Ql(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await $l(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function Xl(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&Jl(e.context)&&(t=!0,n.context=e.context),t)return Zl(n)}async function Zl(e){return JSON.stringify(await Promise.resolve(ll(e,{plugins:Gl})))}async function Ql(e){if(e.data instanceof FormData){let t;return e.context&&Jl(e.context)&&(t=await Zl(e.context)),t!==void 0&&e.data.set(b,t),{body:e.data}}let t=await Xl(e);if(t)return{body:t,contentType:`application/json`}}async function $l(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw console.log(e),e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||Ce(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if(te(n),!t.body)throw Error(`No response body for framed response`);
12let{getOrCreateStream:r,jsonChunks:i}=Wl(t.body),a=[Al(r),...Gl||[]],o=new Map;e=await eu({jsonStream:i,onMessage:e=>cl(e,{refs:o,plugins:a}),onError(e,t){console.error(e,t)}})}else if(n.includes(`application/json`)){let n=await t.json(),r=[];try{e=cl(n,{plugins:Gl})}finally{}await Kl(r)}if(e||Ce(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=bt(e);if(n)throw n;if(ct(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function eu({jsonStream:e,onMessage:t,onError:n}){let r=e.getReader(),{value:i,done:a}=await r.read();if(a||!i)throw Error(`Stream ended before first object`);let o=JSON.parse(i),s=!1,c=(async()=>{try{for(;;){let{value:e,done:i}=await r.read();if(i)break;if(e)try{let n=[];try{t(JSON.parse(e))}finally{}await Kl(n)}catch(t){n?.(`Invalid JSON: ${e}`,t)}}}catch(e){s||n?.(`Stream processing error:`,e)}})(),l,u=[];try{l=t(o)}catch(e){throw s=!0,r.cancel().catch(()=>{}),e}return await Kl(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function tu(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=k()?.serverFns?.fetch;return Yl(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[x]:!0})}var nu=dl({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(x in e)?!1:!!e[x],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>tu(e)});function ru(e){return e.replaceAll(`/`,`\0`)}function iu(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function au(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function ou(e){window.$_TSR||Ce();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||Ce();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=iu(e.i)}),n.lastMatchId&&=iu(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:a}=n;e.ssr={manifest:r};let o=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:o},await e.options.hydrate?.(i);let s=e.matchRoutes(e.stores.location.get()),c=Promise.all(s.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function l(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=ue();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let d;s.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,u(e);return}au(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&d===void 0&&(d=e.index,l(e))}),e.stores.setMatches(s);let f=e.stores.matches.get(),p=e.stores.location.get();await Promise.all(f.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=f[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:p,navigate:t=>e.navigate({...t,_fromLocation:p}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:s,routeId:n.id};t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:f,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(ct(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let m=s[s.length-1].id!==a;if(!s.some(e=>e.ssr===!1)&&!m)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let h=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(m){let t=s[1];t||Ce(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=h,h.then(()=>{e.batch(()=>
12{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return c}var su=c({startInstance:()=>void 0}),R=u(p(),1),cu=R.use,lu=typeof window<`u`?R.useLayoutEffect:R.useEffect;function uu(e){let t=R.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function du(e,t,n={},r={}){R.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function fu(e){let t=R.useRef(null);return R.useImperativeHandle(e,()=>t.current,[]),t}var pu=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),mu=s(((e,t)=>{t.exports=pu()})),z=mu();function hu({promise:e}){if(cu)return cu(e);let t=Fn(e);if(t[Pn].status===`pending`)throw t;if(t[Pn].status===`error`)throw t[Pn].error;return t[Pn].data}function gu(e){let t=(0,z.jsx)(_u,{...e});return e.fallback?(0,z.jsx)(R.Suspense,{fallback:e.fallback,children:t}):t}function _u(e){let t=hu(e);return e.children(t)}function vu(e){let t=e.errorComponent??bu;return(0,z.jsx)(yu,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?R.createElement(t,{error:n,reset:r}):e.children})}var yu=class extends R.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function bu({error:e}){let[t,n]=R.useState(!1);return(0,z.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,z.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,z.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,z.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,z.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,z.jsx)(`div`,{children:(0,z.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,z.jsx)(`code`,{children:e.message}):null})}):null]})}function xu({children:e,fallback:t=null}){return Su()?(0,z.jsx)(R.Fragment,{children:e}):(0,z.jsx)(R.Fragment,{children:t})}function Su(){return R.useSyncExternalStore(Cu,()=>!0,()=>!1)}function Cu(){return()=>{}}var wu=R.createContext(null);function Tu(e){return R.useContext(wu)}var Eu=R.createContext(void 0),Du=R.createContext(void 0),Ou=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Ou||{});function ku({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;
12if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Au(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var ju=[],Mu=0,{link:Nu,unlink:Pu,propagate:Fu,checkDirty:Iu,shallowPropagate:Lu}=ku({update(e){return e._update()},notify(e){ju[zu++]=e,e.flags&=~Ou.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Ou.Mutable|Ou.Dirty,Uu(e))}}),Ru=0,zu=0,Bu,Vu=0;function Hu(e){try{++Vu,e()}finally{--Vu||Wu()}}function Uu(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Pu(n,e)}function Wu(){if(!(Vu>0)){for(;Ru<zu;){let e=ju[Ru];ju[Ru++]=void 0,e.notify()}Ru=0,zu=0}}function Gu(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Ou.None:Ou.Mutable,get(){return Bu!==void 0&&Nu(i,Bu,Mu),i._snapshot},subscribe(e){let t=Au(e),n={current:!1},r=Ku(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Bu,o=t?.compare??Object.is;if(n)Bu=i,++Mu,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Ou.Mutable|Ou.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Bu=a,n&&(i.flags&=~Ou.RecursedCheck),Uu(i)}}};return n?(i.flags=Ou.Mutable|Ou.Dirty,i.get=function(){let e=i.flags;if(e&Ou.Dirty||e&Ou.Pending&&Iu(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Lu(e)}}else e&Ou.Pending&&(i.flags=e&~Ou.Pending);return Bu!==void 0&&Nu(i,Bu,Mu),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Fu(e),Lu(e),Wu())}},i}function Ku(e){let t=()=>{let t=Bu;Bu=n,++Mu,n.depsTail=void 0,n.flags=Ou.Watching|Ou.RecursedCheck;try{return e()}finally{Bu=t,n.flags&=~Ou.RecursedCheck,Uu(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Ou.Watching|Ou.RecursedCheck,notify(){let e=this.flags;e&Ou.Dirty||e&Ou.Pending&&Iu(this.deps,this)?t():this.flags=Ou.Watching},stop(){this.flags=Ou.None,this.depsTail=void 0,Uu(this)}};return t(),n}var qu=s((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),Ju=s(((e,t)=>{t.exports=qu()})),Yu=s((e=>{var t=p(),n=Ju();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Xu=s(((e,t)=>{t.exports=Yu()})),Zu=Xu();function Qu(e,t){return e===t}function $u(e,t,n=Qu){let r=(0,R.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,R.useCallback)(()=>e?.get(),[e]);return(0,Zu.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var ed={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function td(e){let t=Tu(),n=R.useContext(e.from?Du:Eu),r=e.from??n,i=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,a=R.useRef(void 0);return $u(i??ed,n=>
12{if((e.shouldThrow??!0)&&!n&&Ce(),n===void 0)return;let r=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=oe(a.current,r);return a.current=e,e}return r})}function nd(e){return td({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function rd(e){let{select:t,...n}=e;return td({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function id(e){return td({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function ad(e){return td({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function od(e){let t=Tu();return R.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function sd(e){return td({...e,select:t=>e.select?e.select(t.context):t.context})}var cd=u(_(),1);function ld(e,t){let n=Tu(),r=fu(t),{activeProps:i,inactiveProps:a,activeOptions:o,to:s,preload:c,preloadDelay:l,preloadIntentProximity:u,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,children:g,target:_,disabled:v,style:y,className:b,onClick:x,onBlur:S,onFocus:C,onMouseEnter:w,onMouseLeave:E,onTouchStart:D,ignoreBlocker:ee,params:O,search:te,hash:k,state:ne,mask:A,reloadDocument:re,unsafeRelative:ie,from:M,_fromLocation:N,...ae}=e,oe=Su(),se=R.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),P=$u(n.stores.location,e=>e,(e,t)=>e.href===t.href),F=R.useMemo(()=>{let e={_fromLocation:P,...se};return n.buildLocation(e)},[n,P,se]),ce=F.maskedLocation?F.maskedLocation.publicHref:F.publicHref,ue=F.maskedLocation?F.maskedLocation.external:F.external,de=R.useMemo(()=>vd(ce,ue,n.history,v),[v,ue,ce,n.history]),fe=R.useMemo(()=>{if(de?.external)return ge(de.href,n.protocolAllowlist)?void 0:de.href;if(!yd(s)&&!(typeof s!=`string`||s.indexOf(`:`)===-1))try{return new URL(s),ge(s,n.protocolAllowlist)?void 0:s}catch{}},[s,de,n.protocolAllowlist]),pe=R.useMemo(()=>{if(fe)return!1;if(o?.exact){if(!tt(P.pathname,F.pathname,n.basepath))return!1}else{let e=et(P.pathname,n.basepath),t=et(F.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(o?.includeSearch??!0)&&!le(P.search,F.search,{partial:!o?.exact,ignoreUndefined:!o?.explicitUndefined})?!1:o?.includeHash?oe&&P.hash===F.hash:!0},[o?.exact,o?.explicitUndefined,o?.includeHash,o?.includeSearch,P,fe,oe,F.hash,F.pathname,F.search,n.basepath]),me=pe?j(i,{})??dd:ud,he=pe?ud:j(a,{})??ud,_e=[b,me.className,he.className].filter(Boolean).join(` `),ve=(y||me.style||he.style)&&{...y,...me.style,...he.style},[ye,be]=R.useState(!1),xe=R.useRef(!1),Se=e.reloadDocument||fe?!1:c??n.options.defaultPreload,Ce=l??n.options.defaultPreloadDelay??0,we=R.useCallback(()=>{n.preloadRoute({...se,_builtLocation:F}).catch(e=>{console.warn(e),console.warn(In)})},[n,se,F]);du(r,R.useCallback(e=>{e?.isIntersecting&&we()},[we]),gd,{disabled:!!v||Se!==`viewport`}),R.useEffect(()=>{xe.current||!v&&Se===`render`&&(we(),xe.current=!0)},[v,we,Se]);let Te=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;if(!v&&!bd(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,cd.flushSync)(()=>{be(!0)});let t=n.subscribe(`onResolved`,()=>{t(),be(!1)});n.navigate({...se,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:ee})}};if(fe)return{...ae,ref:r,href:fe,...g&&{children:g},..._&&{target:_},...v&&{disabled:v},...y&&{style:y},...b&&{className:b},...x&&{onClick:x},...S&&{onBlur:S},...C&&{onFocus:C},...w&&{onMouseEnter:w},...E&&{onMouseLeave:E},...D&&{onTouchStart:D}};let Ee=e=>{if(v||Se!==`intent`)return;if(!Ce){we();return}let t=e.currentTarget;if(hd.has(t))return;let n=setTimeout(()=>{hd.delete(t),we()},Ce);hd.set(t,n)},De=e=>{v||Se!==`intent`||we()},Oe=e=>{if(v||!Se||!Ce)return;let t=e.currentTarget,n=hd.get(t);n&&(clearTimeout(n),hd.delete(t))};return{...ae,...me,...he,href:de?.href,ref:r,onClick:_d([x,Te]),onBlur:_d([S,Oe]),onFocus:_d([C,Ee]),onMouseEnter:_d([w,Ee]),onMouseLeave:_d([E,Oe]),onTouchStart:_d([D,De]),disabled:!!v,target:_,...ve&&{style:ve},..._e&&{className:_e},...v&&fd,...pe&&pd,...oe&&ye&&md}}var ud={},dd={className:`active`},fd={role:`link`,"aria-disabled":!0},pd={"data-status":`active`,"aria-current":`page`},md={"data-transitioning":`transitioning`},hd=new WeakMap,gd={rootMargin:`100px`},_d=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function vd(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function yd(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var B=R.forwardRef((e,t)=>
12{let{_asChild:n,...r}=e,{type:i,...a}=ld(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return R.createElement(`a`,t,o)}return R.createElement(n,a,o)});function bd(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var xd=class extends Kn{constructor(e){super(e),this.useMatch=e=>td({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>sd({...e,from:this.id}),this.useSearch=e=>ad({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>id({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>rd({...e,from:this.id}),this.useLoaderData=e=>nd({...e,from:this.id}),this.useNavigate=()=>od({from:this.fullPath}),this.Link=R.forwardRef((e,t)=>(0,z.jsx)(B,{ref:t,from:this.fullPath,...e}))}};function Sd(e){return new xd(e)}function Cd(){return e=>Td(e)}var wd=class extends qn{constructor(e){super(e),this.useMatch=e=>td({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>sd({...e,from:this.id}),this.useSearch=e=>ad({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>id({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>rd({...e,from:this.id}),this.useLoaderData=e=>nd({...e,from:this.id}),this.useNavigate=()=>od({from:this.fullPath}),this.Link=R.forwardRef((e,t)=>(0,z.jsx)(B,{ref:t,from:this.fullPath,...e}))}};function Td(e){return new wd(e)}function V(e){return new Ed(e,{silent:!0}).createRoute}var Ed=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Sd(e);return t.isRoot=!1,t},this.silent=t?.silent}};function H(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,de(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(cu)cu(o());else throw o();return R.createElement(r,e)};return s.preload=o,s}function Dd(e){let t=Tu(),n=`not-found-${$u(t.stores.location,e=>e.pathname)}-${$u(t.stores.status,e=>e)}`;return(0,z.jsx)(vu,{getResetKey:()=>n,onCatch:(t,n)=>{if(ct(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(ct(t))return e.fallback?.(t);throw t},children:e.children})}function Od(){return(0,z.jsx)(`p`,{children:`Not Found`})}function kd(e){return(0,z.jsx)(z.Fragment,{children:e.children})}function Ad(e,t,n){return t.options.notFoundComponent?(0,z.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,z.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,z.jsx)(Od,{})}var jd=R.memo(function({matchId:e}){let t=Tu(),n=t.stores.matchStores.get(e);n||Ce();let r=$u(t.stores.loadedAt,e=>e),i=$u(n,e=>e);return(0,z.jsx)(Md,{router:t,matchId:e,resetKey:r,matchState:R.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Md({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,z.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?R.Suspense:kd,f=s?vu:kd,p=l?Dd:kd;return(0,z.jsxs)(i.isRoot?i.options.shellComponent??kd:kd,{children:[(0,z.jsx)(Eu.Provider,{value:t,children:(0,z.jsx)(d,{fallback:o,children:(0,z.jsx)(f,{getResetKey:()=>n,errorComponent:s||bu,onCatch:(e,t)=>{if(ct(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,z.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&
12!i.isRoot)throw e;return R.createElement(l,e)},children:u||r._displayPending?(0,z.jsx)(xu,{fallback:o,children:(0,z.jsx)(Pd,{matchId:t})}):(0,z.jsx)(Pd,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Nd,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function Nd({resetKey:e}){let t=Tu(),n=R.useRef(void 0);return lu(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...cn(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var Pd=R.memo(function({matchId:e}){let t=Tu(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||Ce();let i=$u(r,e=>e),a=i.routeId,o=t.routesById[a],s=R.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=R.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,z.jsx)(e,{},s):(0,z.jsx)(Fd,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=ue();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return ct(i.error)||Ce(),Ad(t,o,i.error);if(i.status===`redirected`)throw vt(i.error)||Ce(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Fd=R.memo(function(){let e=Tu(),t=R.useContext(Eu),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=$u(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=$u(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,z.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||Ce(),Ad(e,a,void 0);if(!i)return null;let s=(0,z.jsx)(jd,{matchId:i});return n===`__root__`?(0,z.jsx)(R.Suspense,{fallback:o,children:s}):s});function Id(){let e=Tu(),t=R.useRef({router:e,mounted:!1}),[n,r]=R.useState(!1),i=$u(e.stores.isLoading,e=>e),a=$u(e.stores.hasPending,e=>e),o=uu(i),s=i||n||a,c=uu(s),l=i||a,u=uu(l);return e.startTransition=e=>{r(!0),R.startTransition(()=>{e(),r(!1)})},R.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Qe(e.latestLocation.publicHref)!==Qe(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),lu(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),lu(()=>{o&&!i&&e.emit({type:`onLoad`,...cn(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),lu(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...cn(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),lu(()=>{if(c&&!s){let t=cn(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Hu(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Ld(){let e=Tu(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,z.jsx)(t,{}):null,r=(0,z.jsxs)(typeof document<`u`&&e.ssr?kd:R.Suspense,{fallback:n,children:[(0,z.jsx)(Id,{}),(0,z.jsx)(Rd,{})]});return e.options.InnerWrap?(0,z.jsx)(e.options.InnerWrap,{children:r}):r}function Rd(){let e=Tu(),t=$u(e.stores.firstId,e=>e),n=$u(e.stores.loadedAt,e=>e),r=t?(0,z.jsx)(jd,{matchId:t}):null;return(0,z.jsx)(Eu.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,z.jsx)(vu,{getResetKey:()=>n,errorComponent:bu,onCatch:void 0,children:r})})}var zd=e=>({createMutableStore:Gu,createReadonlyStore:Gu,batch:Hu}),Bd=e=>new Vd(e),Vd=class extends un{constructor(e){super(e,zd)}};function Hd({router:e,children:t,...n}
12){M(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,z.jsx)(wu.Provider,{value:e,children:t});return e.options.Wrap?(0,z.jsx)(e.options.Wrap,{children:r}):r}function Ud({router:e,...t}){return(0,z.jsx)(Hd,{router:e,...t,children:(0,z.jsx)(Ld,{})})}function Wd(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Gd(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,z.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,z.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,z.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,z.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,z.jsx)(Kd,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Kd({attrs:e,children:t,preventScriptHoist:n}){Tu();let r=Su(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(R.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Wd(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Wd(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,z.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,z.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,z.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var qd=e=>{let t=Tu(),n=t.options.ssr?.nonce,r=$u(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),le),i=R.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:ye(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=$u(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),le),o=$u(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=Un(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Ln(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},le),s=$u(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...zn(a,t,e),nonce:n}})})}),i},le),c=$u(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),le),l=$u(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),le),u=[];return Vn(u,i),u.push(...s),Vn(u,a),u.push(...o),Vn(u,c),Vn(u,l),u};function Jd(e){let t=qd(e.assetCrossOrigin),n=Tu().options.ssr?.nonce;return(0,z.jsx)(z.Fragment,{children:t.map(e=>(0,R.createElement)(Gd,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Yd=()=>{let e=Tu(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>
12e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=$u(e.stores.matches,n,le);return Xd(e,$u(e.stores.matches,r,le),i)};function Xd(e,t,n){let r=[...t,...n];return(0,z.jsx)(z.Fragment,{children:r.map((e,t)=>(0,R.createElement)(Gd,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Zd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qd=new class extends Zd{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},$d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ef=new class{#e=$d;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function tf(e){setTimeout(e,0)}var nf=typeof window>`u`||`Deno`in globalThis;function rf(){}function af(e,t){return typeof e==`function`?e(t):e}function of(e){return typeof e==`number`&&e>=0&&e!==1/0}function sf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function cf(e,t){return typeof e==`function`?e(t):e}function lf(e,t){return typeof e==`function`?e(t):e}function uf(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ff(o,t.options))return!1}else if(!mf(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function df(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(pf(t.options.mutationKey)!==pf(a))return!1}else if(!mf(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ff(e,t){return(t?.queryKeyHashFn||pf)(e)}function pf(e){return JSON.stringify(e,(e,t)=>yf(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function mf(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>mf(e[n],t[n])):!1}var hf=Object.prototype.hasOwnProperty;function gf(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=vf(e)&&vf(t);if(!r&&!(yf(e)&&yf(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:hf.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=gf(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function _f(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function vf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function yf(e){if(!bf(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!bf(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function bf(e){return Object.prototype.toString.call(e)===`[object Object]`}function xf(e){return new Promise(t=>{ef.setTimeout(t,e)})}function Sf(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:gf(e,t)}function Cf(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function wf(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Tf=Symbol();function Ef(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Tf?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Df(e,t){return typeof e==`function`?e(...t):!!e}function Of(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var kf=(()=>{let e=()=>nf;return{isServer(){return e()},setIsServer(t){e=t}}})();function Af(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function jf(e){let t;if(e.then(e=>(t=e,e),rf)?.catch(rf),t!==void 0)return{data:t}}function Mf(e){return e}function Nf(e,t,n){if(typeof t!=`object`||!t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??Mf,o=t.mutations||[],s=t.queries||[];o.forEach(({state:t,...i})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}
12),s.forEach(({queryKey:t,state:r,queryHash:o,meta:s,promise:c,dehydratedAt:l,queryType:u})=>{let d=c?jf(c):void 0,f=r.data===void 0?d?.data:r.data,p=f===void 0?f:a(f),m=i.get(o),h=m?.state.status===`pending`,g=m?.state.fetchStatus===`fetching`;if(m){let e=d&&l!==void 0&&l>m.state.dataUpdatedAt;if(r.dataUpdatedAt>m.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;m.setState({...t,data:p,...r.status===`pending`&&p!==void 0&&{status:`success`,...!g&&{fetchStatus:`idle`}}})}}else m=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:s,_type:u},{...r,data:p,fetchStatus:`idle`,status:r.status===`pending`&&p!==void 0?`success`:r.status});c&&!d&&!h&&!g&&(l===void 0||l>m.state.dataUpdatedAt)&&m.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(rf)})}var Pf=tf;function Ff(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Pf,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var If=Ff(),Lf=new class extends Zd{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Rf(e){return Math.min(1e3*2**e,3e4)}function zf(e){return(e??`online`)===`online`?Lf.isOnline():!0}var Bf=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Vf(e){let t=!1,n=0,r,i=Af(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Bf(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Qd.isFocused()&&(e.networkMode===`always`||Lf.isOnline())&&e.canRun(),u=()=>zf(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(kf.isServer()?0:3),o=e.retryDelay??Rf,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),xf(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Hf=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),of(this.gcTime)&&(this.#e=ef.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(kf.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(ef.clearTimeout(this.#e),this.#e=void 0)}};function Uf(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Of(e,()=>t.signal,()=>n=!0)},u=Ef(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?wf:Cf;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Gf:Wf,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Wf(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Wf(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gf(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Kf=class extends Hf{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Yf(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Yf(this.options);e.data!==void 0&&(this.setState(Jf(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Sf(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(rf).catch(rf):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>lf(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Tf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
12Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>cf(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!sf(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Ef(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Uf(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Vf({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Bf&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Bf){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{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,...qf(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Jf(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),If.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function qf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zf(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Jf(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Yf(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdate
vendor: 4,635 bytes, line 12
12Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Xf=class extends Zd{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Af(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Qf(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $f(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $f(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof lf(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!_f(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&ep(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||lf(this.options.enabled,this.#t)!==lf(t.enabled,this.#t)||cf(this.options.staleTime,this.#t)!==cf(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||lf(this.options.enabled,this.#t)!==lf(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return np(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(rf)),t}#g(){this.#b();let e=cf(this.options.staleTime,this.#t);if(kf.isServer()||this.#r.isStale||!of(e))return;let t=sf(this.#r.dataUpdatedAt,e)+1;this.#d=ef.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(kf.isServer()||lf(this.options.enabled,this.#t)===!1||!of(this.#p)||this.#p===0)&&(this.#f=ef.setInterval(()=>{(this.options.refetchIntervalInBackground||Qd.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(ef.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(ef.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Qf(e,t),o=i&&ep(e,n,t,r);(a||o)&&(l={...l,...qf(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=Sf(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=Sf(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdate
12Count:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:tp(e,t),refetch:this.refetch,promise:this.#o,isEnabled:lf(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=Af())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!_f(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){If.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Zf(e,t){return lf(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&lf(t.retryOnMount,e)===!1)}function Qf(e,t){return Zf(e,t)||e.state.data!==void 0&&$f(e,t,t.refetchOnMount)}function $f(e,t,n){if(lf(t.enabled,e)!==!1&&cf(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&tp(e,t)}return!1}function ep(e,t,n,r){return(e!==t||lf(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&tp(e,n)}function tp(e,t){return lf(t.enabled,e)!==!1&&e.isStaleByTime(cf(t.staleTime,e))}function np(e,t){return!_f(e.getCurrentResult(),t)}var rp=class extends Hf{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||ip(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Vf({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(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`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...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
12sed:!1,status:`error`}}};this.state=t(this.state),If.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function ip(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ap=class extends Zd{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new rp({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=op(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=op(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=op(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=op(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>
12t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){If.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>df(t,e))}findAll(e={}){return this.getAll().filter(t=>df(e,t))}notify(e){If.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return If.batch(()=>Promise.all(e.map(e=>e.continue().catch(rf))))}};function op(e){return e.options.scope?.id}var sp=class extends Zd{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),_f(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&pf(t.mutationKey)!==pf(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??ip();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){If.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},cp=class extends Zd{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ff(r,t),a=this.get(i);return a||(a=new Kf({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){If.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>uf(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>uf(e,t)):t}notify(e){If.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){If.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){If.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},lp=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new cp,this.#t=e.mutationCache||new ap,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Qd.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Lf.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(cf(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=af(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}
12setQueriesData(e,t,n){return If.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;If.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return If.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=If.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(rf).catch(rf)}invalidateQueries(e,t={}){return If.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=If.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(rf)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(rf)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(cf(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(rf).catch(rf)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(rf).catch(rf)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Lf.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(pf(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{mf(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(pf(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{mf(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ff(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Tf&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},up=R.createContext(void 0),dp=e=>{let t=R.useContext(up);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},fp=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,z.jsx)(up.Provider,{value:e,children:t})),pp=R.createContext(!1),mp=()=>R.useContext(pp);pp.Provider;function hp(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var gp=R.createContext(hp()),_p=()=>R.useContext(gp),vp=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?Df(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},yp=e=>{R.useEffect(()=>{e.clearReset()},[e])},bp=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Df(n,[e.error,r])),xp=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Sp=(e,t)=>e.isLoading&&e.isFetching&&!t,Cp=(e,t)=>e?.suspense&&t.isPending,wp=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Tp(e,t,n){let r=mp(),i=_p(),a=dp(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,xp(o),vp(o,i,s),yp(i);let l=!a.getQueryCache().get(o.queryHash),[u]=R.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(R.useSyncExternalStore(R.useCallback(e=>{let t=f?u.subscribe(If.batchCalls(e)):rf;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),R.useEffect(()=>{u.setOptions(o)},[o,u]),Cp(o,d))throw wp(o,u,i);if(bp({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!kf.
12isServer()&&Sp(d,r)&&(l?wp(o,u,i):s?.promise)?.catch(rf).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function Ep(e,t){return Tp(e,Xf,t)}function Dp(e,t){let n=dp(t),[r]=R.useState(()=>new sp(n,e));R.useEffect(()=>{r.setOptions(e)},[r,e]);let i=R.useSyncExternalStore(R.useCallback(e=>r.subscribe(If.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=R.useCallback((e,t)=>{r.mutate(e,t).catch(rf)},[r]);if(i.error&&Df(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function Op({router:e,queryClient:t,dehydrateOptions:n,hydrateOptions:r,handleRedirects:i=!0}){let a=e.options.hydrate;if(e.options.dehydrate,e.options.hydrate=async e=>{await a?.(e),e.dehydratedQueryClient&&Nf(t,e.dehydratedQueryClient,r);let n=e.queryStream.getReader();n.read().then(async function e({done:i,value:a}){if(Nf(t,a,r),!i)return e(await n.read())}).catch(e=>{console.error(`Error reading query stream:`,e)})},i){let n=t.getMutationCache().config;t.getMutationCache().config={...n,onError:(t,...r)=>vt(t)?(t.options._fromLocation=e.stores.location.get(),e.navigate(e.resolveRedirect(t).options)):n.onError?.(t,...r)};let r=t.getQueryCache().config;t.getQueryCache().config={...r,onError:(t,...n)=>vt(t)?(t.options._fromLocation=e.stores.location.get(),e.navigate(e.resolveRedirect(t).options)):r.onError?.(t,...n)}}}function kp(e){if(Op(e),e.wrapQueryClient===!1)return;let t=e.router.options.Wrap||R.Fragment;e.router.options.Wrap=({children:n})=>(0,z.jsx)(fp,{client:e.queryClient,children:(0,z.jsx)(t,{children:n})})}function Ap(e){return Array.isArray(e)?e:e==null?[]:[e]}var jp=class extends Error{constructor(...e){super(...e),this.name=`AbortError`}};function Mp(e){let t=Promise.resolve();return(...n)=>t=t.catch(()=>{}).then(()=>e(...n))}function Np(e){return!e||typeof e!=`object`?!1:`next`in e&&typeof e.next==`function`&&Symbol.asyncIterator in e&&typeof e[Symbol.asyncIterator]==`function`}var Pp=Symbol.asyncDispose??Symbol.for(`asyncDispose`),Fp=class{isDone=!1;isExecuteComplete=!1;cleanup;next;constructor(e,t){this.cleanup=t,this.next=Mp(async()=>{if(this.isDone)return{done:!0,value:void 0};let t;try{let t=await e();return t.done&&(this.isDone=!0),t}catch(e){throw t={value:e},this.isDone=!0,e}finally{this.isDone&&!this.isExecuteComplete&&(this.isExecuteComplete=!0,await this.cleanup(t?{kind:`error`,error:t.value}:{kind:`success`}))}})}async return(e){return this.isDone=!0,this.isExecuteComplete||(this.isExecuteComplete=!0,await this.cleanup({kind:`cancelled`})),{done:!0,value:e}}async throw(e){throw this.isDone=!0,this.isExecuteComplete||(this.isExecuteComplete=!0,await this.cleanup({kind:`cancelled`,error:e})),e}async[Pp](){this.isDone=!0,this.isExecuteComplete||(this.isExecuteComplete=!0,await this.cleanup({kind:`cancelled`}))}[Symbol.asyncIterator](){return this}};function Ip(e){if(e)return JSON.parse(e)}function Lp(e){return JSON.stringify(e)}function Rp(e){if(!e)return!1;let t=typeof e;return t===`object`||t===`function`}var zp=new WeakMap;function Bp(e,t,{bind:n=!0}={}){let r=Reflect.get(e,t);if(!n||typeof r!=`function`)return r;let i=zp.get(r);i||zp.set(r,i=new WeakMap);let a=i.get(e);return a||i.set(e,a=r.bind(e)),a}function Vp(e){try{return decodeURIComponent(e)}catch{return e}}function Hp(e){return e[0]??{}}var Up=`orpc`;function Wp(e){return e instanceof Error&&e.name.includes(`Abort`)}function Gp(e){let t;return()=>{if(t)return t.result;let n=e();return t={result:n},n}}function Kp(e){return`/${e.map(encodeURIComponent).join(`/`)}`}var qp=2,Jp=Symbol.for(`ORPC_OPENTELEMETRY_CONFIG`);function Yp(){return globalThis[Jp]}function Xp(e){let t=Yp()?.tracer;if(!t)return;let{name:n,context:r,...i}=typeof e==`string`?{name:e}:e;return t.startSpan(n,i,r)}function Zp(e,t){if(!e)return;let n=Qp(t);e.recordException(n),Wp(t)||e.setStatus({code:qp,message:n.message})}function Qp(e){if(e instanceof Error){let t={message:e.message,name:e.name,stack:e.stack};return`code`in e&&(typeof e.code==`string`||typeof e.code==`number`)&&(t.code=e.code),t}return{message:String(e)}}async function $p(e,t){let n=Yp()?.tracer;if(!n)return t();typeof e==`string`&&(e={name:e});let r=async e=>{try{return await t(e)}catch(t){throw Zp(e,t),t}finally{e.end()}};return e.context?n.startActiveSpan(e.name,e,e.context,r):n.startActiveSpan(e.name,e,r)}async function em(e,t){let n=Yp();if(!e||!n)return t();
12let r=n.trace.setSpan(n.context.active(),e);return n.context.with(r,t)}function tm(e,{runWith:t,mapResult:n,mapError:r,onError:i,onFinish:a}){t??=e=>e();let o;return new Fp(async()=>{try{let r;try{r=await t(()=>e.next()),o=r.done}catch(e){throw o=!0,e}return n?await n(r):r}catch(e){throw await i?.(e),r?await r(e):e}},async n=>{try{if(!o)try{await t(async()=>e.return?.())}catch(e){throw await i?.(e),e}}finally{await a?.()}})}function nm(e,t){let n=Gp(()=>Xp(e));return tm(t,{runWith:e=>em(n(),e),mapResult(e){return n()?.addEvent(e.done?`completed`:`yielded`),e},onError(e){Zp(n(),e)},onFinish(){n()?.end()}})}function rm(e,...t){return typeof e==`function`?e(...t):e}function im(e,t){return new Proxy(typeof e==`function`?t:e,{get(n,r){return Bp(r in t?t:rm(e),r)},has(n,r){return Reflect.has(t,r)||Reflect.has(rm(e),r)}})}function*am(e){if(!Rp(e))return;let t=Object.getPrototypeOf(e);for(;t!=null;)t.constructor&&(yield t.constructor),t=Object.getPrototypeOf(t)}function om(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}var sm=(()=>{let e=function(){};return e.prototype=Object.create(null),Object.freeze(e.prototype),e})();function cm(e,t={}){let n=new Set(t.unbound),r=new sm,i=e;for(;i&&i!==Object.prototype;){for(let t of Object.getOwnPropertyNames(i)){if(t===`constructor`||t in r)continue;let i=Bp(e,t,{bind:!n.has(t)});typeof i==`function`&&(r[t]=i)}for(let t of Object.getOwnPropertySymbols(i)){if(t in r)continue;let i=Bp(e,t,{bind:!n.has(t)});typeof i==`function`&&(r[t]=i)}i=Object.getPrototypeOf(i)}return r}function lm(e,t,n){if(!e?.length)return n(t);let r=(t,i)=>{let a=e[i];return a?a({...t,next:(e=t)=>r(e,i+1)}):n(t)};return r(t,0)}function um(e){let t=e.length,n=new Map;for(let r=0;r<t;r++){let t=e[r],i=n.get(t.name);i===void 0?n.set(t.name,[r]):i.push(r)}let r=Array.from({length:t},()=>new Set);for(let i=0;i<t;i++){let t=e[i],a=t.before;if(a!==void 0)for(let e of a){let t=n.get(e);if(t!==void 0)for(let e of t){let t=r[e];t!==void 0&&t.add(i)}}let o=t.after;if(o!==void 0){let e=r[i];if(e!==void 0)for(let t of o){let r=n.get(t);if(r!==void 0)for(let t of r)e.add(t)}}}let i=[],a=new Set,o=new Set;function s(t){if(o.has(t))return;if(a.has(t)){let n=e[t],r=n===void 0?`unknown`:n.name;throw Error(`Circular dependency detected involving plugin "${r}"`)}a.add(t);let n=r[t];if(n!==void 0)for(let e of n)s(e);a.delete(t),o.add(t);let c=e[t];c!==void 0&&i.push(c)}for(let e=0;e<t;e++)s(e);return i}var dm=class extends TypeError{},fm=class extends TypeError{},pm=class extends Error{constructor(e,t={}){super(t?.message??`Error Event`,t),this.data=e}},mm=/\r\n|\r(?!\n)|\n/,hm=/(?:\r\n|\r(?!\n)|\n){2}/,gm=/(?:\r\n|\r(?!\n)|\n){2}/g,_m=13,vm=10,ym=32;function bm(e){let t={};for(let n of e.split(mm)){if(n===``)continue;let e=n.indexOf(`:`),r=e===-1?``:n.slice(n.charCodeAt(e+1)===ym?e+2:e+1);if(e===0){(t.comments??=[]).push(r);continue}switch(e===-1?n:n.slice(0,e)){case`data`:t.data=t.data===void 0?r:`${t.data}
13${r}`;break;case`event`:t.event=r;break;case`id`:t.id=r;break;case`retry`:{let e=Number.parseInt(r,10);e>=0&&e.toString()===r&&(t.retry=e);break}}}return t}var xm=class{constructor(e){this.onEvent=e}pending=[];tail=``;discardLeadingLF=!1;feed(e){if(e===``||this.discardLeadingLF&&(this.discardLeadingLF=!1,e.charCodeAt(0)===vm&&(e=e.slice(1),e===``)))return;let t=this.tail+e;if(!hm.test(t)){this.pending.push(e),this.tail=t.slice(-3);return}this.pending.push(e);let n=this.pending.length===1?e:this.pending.join(``),r=n.length-t.length,i=[],a=0;for(let e of t.matchAll(gm))i.push(n.slice(a,r+e.index)),a=r+e.index+e[0].length;let o=n.slice(a);this.pending.length=0,this.tail=o.slice(-3),o===``?this.discardLeadingLF=e.charCodeAt(e.length-1)===_m:this.pending.push(o);for(let e of i)this.onEvent(bm(e))}end(){if(this.pending.length!==0)throw new fm(`Event Stream ended before complete`)}},Sm=class extends TransformStream{constructor(){let e;super({start(t){e=new xm(e=>{t.enqueue(e)}
13)},transform(t){e.feed(t)},flush(){e.end()}})}},Cm=/\r\n|[\n\r]/,wm=/\r\n|[\n\r]/g;function Tm(e){return Cm.test(e)}function Em(e){if(Tm(e))throw new dm(`Event's id must not contain a carriage return or newline character`)}function Dm(e){if(Tm(e))throw new dm(`Event's event must not contain a carriage return or newline character`)}function Om(e){if(!Number.isInteger(e)||e<0)throw new dm(`Event's retry must be a integer and >= 0`)}function km(e){if(Tm(e))throw new dm(`Event's comment must not contain a carriage return or newline character`)}function Am(e){return e===void 0?``:`data: ${e.replace(wm,`
14data: `)}
15`}function jm(e){let t=``;for(let n of e??[])km(n),t+=`: ${n}
16`;return t}function Mm(e){let t=``;return t+=jm(e.comments),e.event!==void 0&&(Dm(e.event),t+=`event: ${e.event}
17`),e.retry!==void 0&&(Om(e.retry),t+=`retry: ${e.retry}
18`),e.id!==void 0&&(Em(e.id),t+=`id: ${e.id}
19`),t+=Am(e.data),t+=`
20`,t}var Nm=Symbol.for(`STANDARDSERVER_EVENT_META`),Pm=Symbol.for(`STANDARDSERVER_EVENT_SOURCE`);function Fm(e,t){let n;if(t.id!==void 0&&(Em(t.id),n??={},n.id=t.id),t.retry!==void 0&&(Om(t.retry),n??={},n.retry=t.retry),t.comments!==void 0){for(let e of t.comments)km(e);n??={},n.comments=t.comments}return n?new Proxy(e,{get(e,t,r){return t===Pm?e:t===Nm?n:Bp(e,t)}}):e}function Im(e){if(!Rp(e))return[e,void 0];let t=e[Nm];return[e[Pm]??e,t]}function Lm(e){if(Rp(e))return e[Nm]}function Rm(e,t=`inline`){return`${t}; filename="${e.replace(/[^\x20-\x7E]/g,`_`).replace(/[\\"]/g,`\\$&`)}"; filename*=utf-8''${encodeURIComponent(e).replace(/['()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`).replace(/%(7C|60|5E)/g,(e,t)=>String.fromCharCode(Number.parseInt(t,16)))}`}function zm(e){let t=e.match(/(?:^|;)\s*filename\*=([^;]*)/i)?.[1]?.trim(),n=t?.match(/^([^']*)'[^']*'(.*)$/);if(n){let[,e=``,t=``]=n;if(/^(?:utf-8|us-ascii)$/i.test(e))return Vp(t)}else if(t)return Vp(t);let r=e.match(/(?:^|;)\s*filename=(?:"((?:\\.|[^"\\])*)"|([^";]*))/i);return r?.[1]===void 0?r?.[2]?.trim()||void 0:r[1].replace(/\\(.)/g,`$1`)}function Bm(e,t){let n={...e,...t};for(let r in t){if(!Object.hasOwn(e,r))continue;let i=e[r],a=t[r];n[r]=i===void 0||a===void 0?i??a:[...Ap(i),...Ap(a)]}return n}function Vm(e){let t=e.indexOf(`#`),n=e.indexOf(`?`),r=n!==-1&&(t===-1||n<t),i=r?n:t===-1?e.length:t,a=t===-1?e.length:t;return[e.slice(0,i),r?e.slice(n,a):void 0,t===-1?void 0:e.slice(t)]}var Hm,Um=class e extends Error{static{let t=Symbol.for(`ORPC_ERROR_CONSTRUCTORS`);globalThis[t]??=new WeakSet,Hm=globalThis[t],Hm.add(e)}name=`ORPCError`;defined=!1;inferable=!1;code;data;constructor(e,...t){let n=Hp(t),r=n.message??e.split(`_`).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(` `);super(r,n),this.code=e,this.data=n.data}toJSON(){return{defined:this.defined,inferable:this.inferable,code:this.code,message:this.message,data:this.data}}static[Symbol.hasInstance](e){if(!Hm.has(this))return super[Symbol.hasInstance](e);for(let t of am(e))if(Hm.has(t))return!0;return!1}};function Wm(e){return e instanceof Um?e:new Um(`INTERNAL_SERVER_ERROR`,{cause:e})}function Gm(e){if(!om(e))return!1;let t=[`defined`,`inferable`,`code`,`message`,`data`];return Object.keys(e).some(e=>!t.includes(e))?!1:`defined`in e&&typeof e.defined==`boolean`&&`inferable`in e&&typeof e.inferable==`boolean`&&`code`in e&&typeof e.code==`string`&&`message`in e&&typeof e.message==`string`}function Km(e,t={}){let n=new Um(e.code,{...e,...t});return n.defined=e.defined,n.inferable=e.inferable,n}function qm(e,{mapResult:t,mapError:n,...r}){return tm(e,{...r,mapResult:t&&(async e=>{let n=await t(e);if(n.value!==e.value){let t=Lm(e.value);if(t&&Rp(n.value))return{done:n.done,value:Fm(n.value,t)}}return n}),mapError:n&&(async e=>{let t=await n(e);if(t!==e){let n=Lm(e);if(n&&Rp(t))return Fm(t,n)}return t})})}var Jm=/^\/([\s\S]*)\/([a-z]*)$/,Ym={undefined:{condition(e){return e===void 0},serialize(){return null},deserialize(){},isTerminal:!0},bigint:{condition(e){return typeof e==`bigint`},serialize(e){return e.toString()},deserialize(e){return BigInt(e)},isTerminal:!0},date:{condition(e){return e instanceof Date}
20,serialize(e){return Number.isNaN(e.getTime())?null:e.toISOString()},deserialize(e){return new Date(e??`Invalid Date`)},isTerminal:!0},nan:{condition(e){return typeof e==`number`&&Number.isNaN(e)},serialize(){return null},deserialize(){return NaN},isTerminal:!0},url:{condition(e){return e instanceof URL},serialize(e){return e.toString()},deserialize(e){return new URL(e)},isTerminal:!0},regexp:{condition(e){return e instanceof RegExp},serialize(e){return e.toString()},deserialize(e){let[,t,n]=e.match(Jm);return new RegExp(t,n)},isTerminal:!0},set:{condition(e){return e instanceof Set},serialize(e){return Array.from(e)},deserialize(e){return new Set(e)}},map:{condition(e){return e instanceof Map},serialize(e){return Array.from(e.entries())},deserialize(e){return new Map(e)}}},Xm=class{handlers;inlineBuiltInHandlers;handlerEntries;omitUndefinedProperties;constructor(e={}){this.omitUndefinedProperties=e.omitUndefinedProperties!==!1,this.handlers=Object.assign(new sm,Ym);let t=e.handlers;if(t===void 0){this.inlineBuiltInHandlers=!0;return}let n=!0,r=[];for(let e in t){let i=t[e];this.handlers[e]=i,n&&e in Ym&&(n=!1),n&&i!==void 0&&r.push([e,i])}if(!n){r=[];for(let e in this.handlers){let t=this.handlers[e];t!==void 0&&r.push([e,t])}}this.inlineBuiltInHandlers=n,this.handlerEntries=r}serialize(e){let t=[],n=[],r=[],i=this.serializeValue(e,[],t,n,r);return t=t.length===0?void 0:t,n.length===0?{json:i,meta:t}:{json:i,meta:t,maps:n,blobs:r}}serializeValue(e,t,n,r,i){if(this.inlineBuiltInHandlers)switch(typeof e){case`string`:case`boolean`:return e;case`number`:return Number.isNaN(e)?(n.push([`nan`,...t]),null):e;case`undefined`:return n.push([`undefined`,...t]),null;case`bigint`:return n.push([`bigint`,...t]),e.toString();case`object`:if(e===null)return e;if(e instanceof Date)return n.push([`date`,...t]),Number.isNaN(e.getTime())?null:e.toISOString();if(e instanceof URL)return n.push([`url`,...t]),e.toString();if(e instanceof RegExp)return n.push([`regexp`,...t]),e.toString();if(e instanceof Set){let a=this.serializeValue(Array.from(e),t,n,r,i);return n.push([`set`,...t]),a}if(e instanceof Map){let a=this.serializeValue(Array.from(e.entries()),t,n,r,i);return n.push([`map`,...t]),a}}let a=this.handlerEntries;if(a)for(let o=0;o<a.length;o++){let s=a[o],c=s[1];if(c.condition(e)){let a=c.serialize(e);if(c.isTerminal)return n.push([s[0],...t]),a instanceof Blob&&(r.push(t.slice()),i.push(a)),a;let o=this.serializeValue(a,t,n,r,i);return n.push([s[0],...t]),o}}if(e instanceof Blob)return r.push(t.slice()),i.push(e),e;if(Array.isArray(e)){let a=[];for(let o=0;o<e.length;o++)t.push(o),a.push(this.serializeValue(e[o],t,n,r,i)),t.pop();return a}if(om(e)){let a=new sm;for(let o in e){let s=e[o];o===`toJSON`&&typeof s==`function`||s===void 0&&this.omitUndefinedProperties||(t.push(o),a[o]=this.serializeValue(s,t,n,r,i),t.pop())}return a}return e}deserialize(e){let t={data:e.json};if(e.blobs?.length)for(let n=0;n<e.maps.length;n++){let r=e.maps[n],i=t,a=`data`;for(let e=0;e<r.length;e++)if(i=i[a],a=r[e],!Object.hasOwn(i,a))throw Error(`Security error: Invalid serialized data. Segment "${a}" does not exist.`);i[a]=e.blobs[n]}if(e.meta)for(let n of e.meta){let e=n[0],r=t,i=`data`;for(let e=1;e<n.length;e++)if(r=r[i],i=n[e],!Object.hasOwn(r,i))throw Error(`Security error: Invalid serialized data. Segment "${i}" does not exist.`);r[i]=this.handlers[e].deserialize(r[i])}return t.data}},Zm=class{jsonSerializer;defaultSerializeOptions;constructor(e={}){this.jsonSerializer=new Xm(e),this.defaultSerializeOptions=e.serialize}serialize(e,t={}){if(e===void 0||e instanceof ReadableStream||e instanceof Blob)return e;if(Np(e))return qm(e,{mapResult:e=>e.value===void 0?e:{done:e.done,value:this.serializeValue(e.value,!1)},mapError:e=>new pm(this.serializeValue(Wm(e).toJSON(),!1),{cause:e})});let n=t.useFormDataForBlobFields??this.defaultSerializeOptions?.useFormDataForBlobFields??!0;return this.serializeValue(e,n)}serializeValue(e,t){let{json:n,meta:r,maps:i,blobs:a}=this.jsonSerializer.serialize(e);if(!t||!a?.length)return{json:n,meta:r};let o=new FormData;return o.set(`data`,Lp({json:n,meta:r,maps:i})),a.forEach((e,t)=>{o.set(t.toString(),e)}),o}deserialize(e){return e===void 0||e instanceof ReadableStream||e instanceof Blob?e:Np(e)?qm(e,{mapResult:e=>e.value===void 0?e:{done:e.done,value:this.deserializeValue(e.value)},mapError:e=>{if(!(e instanceof pm))return e;let t=this.deserializeValue(e.data);return Gm(t)?Km(t,{cause:e}):new pm(t,{cause:e})}}):this.deserializeValue(e)}deserializeValue(e){if(!(e instanceof FormData))return this.jsonSerializer.deserialize(e);let t=JSON.parse(e.get(`data`)),n=[];for(let[t,r]of e)r instanceof Blob&&(n[Number(t)]=r);return this.jsonSerializer.deserialize({...t,blobs:n})}},Qm=new Set([`then`,`bind`,`valueOf`,`toString`,`toJSON`]);function $m(e){return{...e,context:e.context??{}}}function eh(e){return[e[0],$m(e[1]??{})]}function th(e,{path:t=[],...n}={}){let r=(...r)=>{let[i,a]=eh(r);return lm([...Ap(n.interceptors),...Ap(n.scoped?.interceptors)],{...a,input:i,path:t},({path:t,input:n,...r})=>e.call(t,n,r))},i=new Map;return new Proxy(r,{get(r,a){if(typeof a!=`string`||Qm.has(a))return Reflect.get(r,a);let o=i.get(a);return o===void 0&&(o=th(e,{...n,path:[...t,a],scoped:n.scoped?.[a]}),i.set(a,o)),o}})}var nh=class{constructor(e=[]){this.plugins=e,this.plugins=um(e)}name=`~composite`;init(e){for(let t of this.plugins)t.init&&(e=t.init(e));return e}initProcedureOptions(e,t){for(let n of this.plugins)n.initProcedureOptions&&(t=n.initProcedureOptions(e,t));return t}};function rh(e,t={}
20){return[...t.prefix===void 0?[]:[t.prefix],e,{...t.input===void 0?{}:{input:t.input},...t.type===void 0?{}:{type:t.type},...t.fnOptions===void 0?{}:{fnOptions:t.fnOptions}}]}function ih(e){return async t=>{let n=await e(t),r;for await(let e of n)t.signal?.throwIfAborted(),r={chunk:e},t.client.setQueryData(t.queryKey,e);if(!r)throw TypeError(`Live query for ${Lp(t.queryKey)} did not yield any data. Ensure the query function returns an AsyncIterable with at least one chunk.`);return r.chunk}}var ah=class{constructor(e,t){this.path=e,this.options=t}key(e={}){return rh(this.path,{...e,prefix:this.options.prefix})}};function oh(e,{refetchMode:t=`reset`,maxChunks:n=1/0}={}){return async r=>{let i=r.client.getQueryCache().find({queryKey:r.queryKey,exact:!0}),a=!!i&&i.state.data!==void 0;a&&(t===`reset`?i.setState({status:`pending`,data:void 0,error:null,fetchStatus:`fetching`}):r.client.setQueryData(r.queryKey,(e=[])=>sh(e,n)));let o=[],s=await e(r),c=!a||t!==`replace`;r.client.setQueryData(r.queryKey,(e=[])=>sh(e,n));for await(let e of s){if(r.signal.aborted)throw r.signal.reason;o.push(e),o=sh(o,n),c&&r.client.setQueryData(r.queryKey,(t=[])=>sh([...t,e],n))}c||r.client.setQueryData(r.queryKey,o);let l=r.client.getQueryData(r.queryKey);return l?sh(l,n):o}}function sh(e,t){return e.length<=t?e:e.slice(e.length-t)}var ch=Symbol.for(`ORPC_TANSTACK_QUERY_OPERATION_CONTEXT`),lh=[`queryInterceptors`,`streamedInterceptors`,`liveInterceptors`,`infiniteInterceptors`,`mutationInterceptors`],uh=[`queryKey`,`queryOptions`,`streamedKey`,`streamedOptions`,`liveKey`,`liveOptions`,`infiniteKey`,`infiniteOptions`,`mutationKey`,`mutationOptions`];function dh(e){if(!Rp(e))return!1;for(let t in e)if(e[t]!==void 0){if(t===`prefix`){if(typeof e[t]!=`string`)return!1}else if(lh.includes(t)){if(!Array.isArray(e[t])||e[t].some(e=>typeof e!=`function`))return!1}else if(uh.includes(t)&&!Rp(e[t]))return!1}return!0}function fh(e,t){if(typeof e!=`function`&&typeof t!=`function`)return{...e,...t};let n=typeof e==`function`?e:t=>({...e,...t}),r=typeof t==`function`?t:e=>({...t,...e});return e=>r(n(e))}function ph(e,t){let n={...e,...t};for(let r of lh){let i=e[r],a=t[r];i&&a&&(n[r]=[...i,...a])}for(let r of uh){let i=e[r],a=t[r];i&&a&&(n[r]=fh(i,a))}return n}var mh=class extends ah{call;constructor(e,t,n={}){super(e,n),this.call=t}queryKey(...e){let t=Hp(e);return typeof this.options.queryKey==`function`?t=this.options.queryKey(t):this.options.queryKey&&(t={...this.options.queryKey,...t}),t.queryKey??rh(this.path,{prefix:this.options.prefix,type:`query`,input:t.input})}queryOptions(...e){let t=Hp(e);typeof this.options.queryOptions==`function`?t=this.options.queryOptions(t):this.options.queryOptions&&(t={...this.options.queryOptions,...t});let n=this.queryKey(t);return{...t,queryKey:n,queryFn:e=>lm(this.options.queryInterceptors,{path:this.path,context:{[ch]:{key:n,type:`query`},...t.context},input:t.input,fnContext:e},({context:e,input:n,fnContext:r})=>{if(n===Tf||t.queryFn===Tf)throw Error(`queryFn should not be called when skipToken used for skipping`);return t.queryFn?t.queryFn(r):this.call(n,{signal:r.signal,context:e})}),...t.input===Tf||t.queryFn===Tf?{enabled:!1}:{}}}streamedKey(...e){let t=Hp(e);return typeof this.options.streamedKey==`function`?t=this.options.streamedKey(t):this.options.streamedKey&&(t={...this.options.streamedKey,...t}),t.queryKey??rh(this.path,{prefix:this.options.prefix,type:`streamed`,input:t.input,fnOptions:t.queryFnOptions})}streamedOptions(...e){let t=Hp(e);typeof this.options.streamedOptions==`function`?t=this.options.streamedOptions(t):this.options.streamedOptions&&(t={...this.options.streamedOptions,...t});let n=this.streamedKey(t);return{...t,queryKey:n,queryFn:e=>lm(Ap(this.options.streamedInterceptors),{path:this.path,context:{[ch]:{key:n,type:`streamed`},...t.context},input:t.input,fnContext:e},({context:e,fnContext:n,input:r})=>{if(r===Tf||t.queryFn===Tf)throw Error(`queryFn should not be called when skipToken used for skipping`);return t.queryFn?t.queryFn(n):oh(async t=>{let n=await this.call(r,{signal:t.signal,context:e});if(!Np(n))throw Error(`streamedQuery requires an AsyncIteratorObject output`);return n},t.queryFnOptions)(n)}
20),...t.input===Tf||t.queryFn===Tf?{enabled:!1}:{}}}liveKey(...e){let t=Hp(e);return typeof this.options.liveKey==`function`?t=this.options.liveKey(t):this.options.liveKey&&(t={...this.options.liveKey,...t}),t.queryKey??rh(this.path,{prefix:this.options.prefix,type:`live`,input:t.input})}liveOptions(...e){let t=Hp(e);typeof this.options.liveOptions==`function`?t=this.options.liveOptions(t):this.options.liveOptions&&(t={...this.options.liveOptions,...t});let n=this.liveKey(t);return{...t,queryKey:n,queryFn:e=>lm(Ap(this.options.liveInterceptors),{path:this.path,context:{[ch]:{key:n,type:`live`},...t.context},input:t.input,fnContext:e},({fnContext:e,input:n,context:r})=>{if(n===Tf||t.queryFn===Tf)throw Error(`queryFn should not be called when skipToken used for skipping`);return t.queryFn?t.queryFn(e):ih(async e=>{let t=await this.call(n,{signal:e.signal,context:r});if(!Np(t))throw Error(`liveQuery requires an AsyncIteratorObject output`);return t})(e)}),...t.input===Tf||t.queryFn===Tf?{enabled:!1}:{}}}infiniteKey(e){return typeof this.options.infiniteKey==`function`?e=this.options.infiniteKey(e):this.options.infiniteKey&&(e={...this.options.infiniteKey,...e}),e.queryKey??rh(this.path,{prefix:this.options.prefix,type:`infinite`,input:e.input===Tf?Tf:e.input(e.initialPageParam)})}infiniteOptions(e){typeof this.options.infiniteOptions==`function`?e=this.options.infiniteOptions(e):this.options.infiniteOptions&&(e={...this.options.infiniteOptions,...e});let t=this.infiniteKey(e);return{...e,queryKey:t,queryFn:n=>lm(Ap(this.options.infiniteInterceptors),{path:this.path,context:{[ch]:{key:t,type:`infinite`},...e.context},input:e.input===Tf?Tf:e.input(n.pageParam),fnContext:n},({context:t,input:n,fnContext:r})=>{if(n===Tf||e.queryFn===Tf)throw Error(`queryFn should not be called when skipToken used for skipping`);return e.queryFn?e.queryFn(r):this.call(n,{signal:r.signal,context:t})}),...e.input===Tf||e.queryFn===Tf?{enabled:!1}:{}}}mutationKey(e={}){return typeof this.options.mutationKey==`function`?e=this.options.mutationKey(e):this.options.mutationKey&&(e={...this.options.mutationKey,...e}),e.mutationKey??rh(this.path,{prefix:this.options.prefix,type:`mutation`})}mutationOptions(...e){let t=Hp(e);typeof this.options.mutationOptions==`function`?t=this.options.mutationOptions(t):this.options.mutationOptions&&(t={...this.options.mutationOptions,...t});let n=this.mutationKey(t);return{...t,mutationKey:n,mutationFn:(e,r)=>lm(Ap(this.options.mutationInterceptors),{path:this.path,context:{[ch]:{key:n,type:`mutation`},...t.context},fnContext:r,input:e},({input:e,fnContext:n,context:r})=>t.mutationFn?t.mutationFn(e,n):this.call(e,{context:r}))}}};function hh(e,t={}){let n=new nh(t.plugins);return t=n.init(t),gh(e,t,n)}function gh(e,t,n){let r=Ap(t.path),i=typeof e==`function`&&(t.scoped===void 0||dh(t.scoped))?cm(new mh(r,e,n.initProcedureOptions(r,ph({prefix:t.prefix,queryInterceptors:t.queryInterceptors,streamedInterceptors:t.streamedInterceptors,liveInterceptors:t.liveInterceptors,infiniteInterceptors:t.infiniteInterceptors,mutationInterceptors:t.mutationInterceptors},t.scoped??{}))),{unbound:[`call`]}):cm(new ah(r,t)),a=new Map;return new Proxy(i,{get(i,o){let s=Reflect.get(i,o),c=Reflect.get(e,o);if(typeof o!=`string`||Qm.has(o)||!Rp(c))return s;let l=a.get(o);if(l===void 0){let e=gh(c,{...t,path:[...r,o],scoped:t.scoped?.[o]},n);l=typeof s==`function`?new Proxy(s,{get(t,n){return typeof n!=`string`||Qm.has(n)?Reflect.get(t,n):Reflect.get(e,n)}}):e,a.set(o,l)}return l}})}function _h(e){let t=(e?.pipeThrough(new TextDecoderStream).pipeThrough(new Sm))?.getReader(),n=!1;return new Fp(async()=>{for(;;){if(t===void 0)return{done:!0,value:void 0};let{done:e,value:r}=await t.read();if(e){if(n)throw new jp(`Stream was cancelled`);return{done:!0,value:void 0}}switch(r.event){case`message`:{let e=Ip(r.data);return Rp(e)&&(e=Fm(e,r)),{done:!1,value:e}}case`error`:{let e=new pm(Ip(r.data));throw e=Fm(e,r),e}case`close`:{let e=Ip(r.data);return Rp(e)&&(e=Fm(e,r)),{done:!0,value:e}}}}},async e=>{e.kind===`cancelled`&&(n=!0),await t?.cancel()})}function vh(e,t={}){let n=t.keepAlive?.enabled??!0,r=t.keepAlive?.interval??15e3,i=t.keepAlive?.comment??``,a=t.initialComment?.enabled??!0,o=t.initialComment?.comment??``,s=t.emptyCloseEventEnabled??!0,c=!1,l;return new ReadableStream({start(e){a&&e.enqueue(Mm({comments:[o]}))},async pull(t){try{n&&(l=setInterval(()=>{t.enqueue(Mm({comments:[i]}))},r));let a=await e.next();if(clearInterval(l),c)return;let[o,u]=Im(a.value);if(!a.done||o!==void 0||u!==void 0||s){let e=a.done?`close`:`message`;t.enqueue(Mm({...u,event:e,data:Lp(o)}))}a.done&&t.close()}catch(e){if(clearInterval(l),c)return;e instanceof pm?(t.enqueue(Mm({...Lm(e),event:`error`,data:Lp(e.data)})),t.close()):t.error(e)}},async cancel(){c=!0,clearInterval(l),await e.return?.()}}
20).pipeThrough(new TextEncoderStream)}async function yh(e,t){let n=t?.hint??e.headers.get(`standard-server`),r=e.headers.get(`content-type`)?.split(`;`)[0]?.trim(),i=e.headers.get(`content-length`);if(!(n===`none`||n===null&&r===void 0&&(i===`0`||i===null))&&!(n===null&&e.body===null)){if(e.bodyUsed)throw TypeError(`Failed to read body: body stream already read`);if(n===`json`||n===null&&r===`application/json`)return Ip(await e.text());if(n===`form-data`||n===null&&r===`multipart/form-data`)return await e.formData();if(n===`url-search-params`||n===null&&r===`application/x-www-form-urlencoded`){let t=await e.text();return new URLSearchParams(t)}if(n===`event-stream`||n===null&&r===`text/event-stream`)return _h(e.body);if(n===`file`||n===null&&i!==null){let t=e.headers.get(`content-disposition`),n=t===null?void 0:zm(t),r=await e.blob();return new File([r],n??`blob`,{type:r.type})}return e.body??new ReadableStream({start(e){e.close()}})}}function bh(e,t,n={}){return t={...t},e instanceof ReadableStream?(t[`standard-server`]??=`octet-stream`,t[`content-type`]??=`application/octet-stream`,[e,t]):e instanceof Blob?(t[`standard-server`]??=`file`,t[`content-type`]=e.type,t[`content-disposition`]??=Rm(e instanceof File?e.name??``:`blob`),Number.isFinite(e.size)?(t[`content-length`]=e.size.toString(),[e,t]):[e.stream(),t]):(t[`standard-server`]=void 0,t[`content-length`]=void 0,e===void 0?(t[`content-type`]=void 0,[void 0,t]):e instanceof FormData||e instanceof URLSearchParams?(t[`content-type`]=void 0,[e,t]):Np(e)?(t[`content-type`]=`text/event-stream`,[vh(e,n.eventStream),t]):(t[`content-type`]=`application/json`,[Lp(e),t]))}function xh(e){let t=Object.create(null);return e.forEach((e,n)=>{Array.isArray(t[n])?t[n].push(e):t[n]===void 0?t[n]=e:t[n]=[t[n],e]}),t}function Sh(e){let t=new Headers;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.append(n,r);return t}function Ch(e){return{resolveBody:t=>yh(e,{hint:t}),status:e.status,get headers(){let t=xh(e.headers);return Object.defineProperty(this,"headers",{value:t,writable:!0}),t},set headers(e){Object.defineProperty(this,"headers",{value:e,writable:!0})}}}var wh=class{name=`~composite`;plugins;constructor(e=[]){this.plugins=um(e)}init(e){for(let t of this.plugins)t.init&&(e=t.init(e));return e}},Th=class{constructor(e,t,n={}){this.codec=e,this.transport=t,n=new wh(n.plugins).init(n),this.interceptors=n.interceptors,this.transportInterceptors=n.transportInterceptors}interceptors;transportInterceptors;call(e,t,n){return $p(`${Up}.${e.join(`/`)}`,r=>(r?.setAttribute(`rpc.system`,Up),r?.setAttribute(`rpc.method`,e.join(`.`)),Np(t)&&(t=im(t,nm(`consume_async_iterator_object_input`,t))),lm(this.interceptors,{...n,path:e,input:t},async({path:e,input:t,...n})=>{let i=Yp(),a,o=i?.trace.getActiveSpan()??r;o&&i&&(a=i.trace.setSpan(i.context.active(),o));let s=await $p({name:`encode_input`,context:a},()=>this.codec.encodeInput(t,e,n));if(a&&i?.propagation){let e={...s.headers};i.propagation.inject(a,e),s={...s,headers:e}}let c=await lm(this.transportInterceptors,{...n,path:e,request:s},({path:e,request:t,...n})=>{let r,a=i?.trace.getActiveSpan()??o;return a&&i&&(r=i.trace.setSpan(i.context.active(),a)),$p({name:`send_request`,context:r},()=>this.transport.send(t,e,n))}),l=await $p({name:`decode_response`,context:a},()=>this.codec.decodeResponse(c,e,n));if(l.kind===`error`)throw l.error;let u=l.output;return Np(u)?im(u,nm(`consume_async_iterator_object_output`,u)):u})))}},Eh=/\/$/,Dh=class{baseUrl;maxUrlLength;fallbackMethod;expectedMethod;headers;serializer;constructor(e){this.baseUrl=e.url??`/`,this.maxUrlLength=e.maxUrlLength??2083,this.fallbackMethod=e.fallbackMethod??`POST`,this.expectedMethod=e.method??this.fallbackMethod,this.headers=e.headers??{},this.serializer=e.serializer??new Zm}async encodeInput(e,t,n){let r=Oh(await rm(this.headers,n,t,e));n.lastEventId!==void 0&&(r=Bm(r,{"last-event-id":n.lastEventId}));let i=await rm(this.expectedMethod,n,t,e),[a,o,s]=Vm(await rm(this.baseUrl,n,t,e)),c=`${a.replace(Eh,``)}${Kp(t)}`,l=this.serializer.serialize(e);if(i===`GET`&&!(l instanceof Blob)&&!(l instanceof ReadableStream)&&!(l instanceof FormData)&&!Np(l)){let a=await rm(this.maxUrlLength,n,t,e),u=new URLSearchParams(o);u.append(`data`,Lp(l)??``);let d=`${c}?${u}${s??``}`;if(d.length<=a)return{body:void 0,method:i,headers:r,url:d,signal:n.signal}}return{url:`${c}${o??``}${s??``}`,method:i===`GET`?this.fallbackMethod:i,headers:r,body:l,signal:n.signal}}async decodeResponse(e){let t=e.status<400,n=await e.resolveBody(),r=await(async()=>{try{return this.serializer.deserialize(n)}catch(e){throw Error(`Invalid RPC response format.`,{cause:e})}})();return t?{kind:`output`,output:r}
20:Gm(r)?{kind:`error`,error:Km(r)}:{kind:`error`,error:new Um(`MALFORMED_ORPC_ERROR_RESPONSE`,{data:{headers:e.headers,status:e.status,body:r}})}}};function Oh(e){return typeof e.forEach==`function`?xh(e):e}var kh=class{constructor(e=[]){this.plugins=e,this.plugins=um(e)}name=`~composite/fetch`;initFetchLinkTransportOptions(e){for(let t of this.plugins)t.initFetchLinkTransportOptions&&(e=t.initFetchLinkTransportOptions(e));return e}},Ah=Gp(()=>{try{let e;return new Request(`https://example.com`,{method:`POST`,body:new ReadableStream,get duplex(){return e=`half`,`half`}}),e}catch{return}}),jh=class{origin;fetch;toFetchRequestOptions;fetchInterceptors;constructor(e){e=new kh(e.plugins).initFetchLinkTransportOptions(e),this.origin=e.origin,this.fetch=e.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=e.toFetchRequest,this.fetchInterceptors=e.fetchInterceptors}async send(e,t,n){let r=await rm(this.origin,n,t);r?.endsWith(`/`)&&(r=r.slice(0,-1));let i=`${r??``}${e.url}`,[a,o]=bh(e.body,e.headers,this.toFetchRequestOptions),s={body:a,headers:Sh(o),method:e.method,signal:n.signal,redirect:`manual`};if(a instanceof ReadableStream){let e=Ah();e!==void 0&&(s.duplex=e)}return Ch(await lm(this.fetchInterceptors,{...n,url:i,path:t,init:s},({url:e,path:t,init:n,...r})=>this.fetch(e,n,r,t)))}},Mh=class extends Th{constructor(e){let t=new Dh(e),n=new jh(e);super(t,n,e)}},Nh=`x-bunderstack-operation-id`;function Ph(e=`/api`){return e.endsWith(`/`)?`${e}rpc`:`${e}/rpc`}function Fh(e){let t=new Map;return new Proxy(function(){},{get(n,r){if(!t.has(r)){let n=Reflect.get(e,r);t.set(r,n===null||typeof n!=`object`&&typeof n!=`function`?n:Fh(n))}return t.get(r)},apply(t,n,r){let[i,a={}]=r;return Reflect.apply(e,void 0,[i,{signal:a.signal,lastEventId:a.lastEventId,context:{operationId:a.operationId,headers:a.headers}}])}})}function Ih(e={}){let t=e.fetch??((e,t)=>globalThis.fetch(e,t));return Fh(th(new Mh({url:Ph(e.baseUrl),fetch:(e,n)=>t(e,n),headers:async({context:t})=>{let n=typeof e.headers==`function`?await e.headers():e.headers,r=new Headers(n);return new Headers(t.headers).forEach((e,t)=>r.set(t,e)),t.operationId&&r.set(Nh,t.operationId),r}})))}function Lh(e={}){return hh(Ih(e))}function Rh(e){return e??((e,t)=>globalThis.fetch(e,t))}function zh(e){return e.replace(/\/$/,``)}function Bh(e,t){let n=`${e}/`;return t.startsWith(n)?t.slice(n.length):t}function Vh(e){return e.split(`/`).map(e=>encodeURIComponent(decodeURIComponent(e)).replace(/\./g,`%2E`)).join(`/`)}function Hh(e,t){let n=zh(t.baseUrl??`/api`),r=Rh(t.fetch),i=e.files;if(!i)return e;let a=new Map,o=new Proxy(i,{get(e,t,i){if(typeof t!=`string`)return Reflect.get(e,t,i);let o=a.get(t);if(o)return o;let s=Reflect.get(e,t,i),c=`${n}/files/${t}`,l=(e,n={})=>{let r=Vh(Bh(t,e)),i=new URLSearchParams;n.w!==void 0&&i.set(`w`,String(n.w)),n.h!==void 0&&i.set(`h`,String(n.h)),n.format&&i.set(`format`,n.format);let a=i.toString();return`${c}/${r}${a?`?${a}`:``}`},u=Object.assign(Object.create(s),{url:l,upload:async e=>{let t=await s.prepareUpload.call({filename:e.name,contentType:e.type||void 0});if(t.mode===`proxy`){let t=await s.upload.call({params:{},query:{},headers:{},body:{file:e}});return{...t.body,url:l(t.body.fileId),name:e.name}}let n=await r(t.uploadUrl,{method:t.method,body:e,headers:e.type?{"Content-Type":e.type}:void 0});if(!n.ok)throw Error(`File upload failed (${n.status})`);let i=await s.confirmUpload.call({id:t.fileId});return{...i,url:l(i.fileId),name:e.name}},delete:e=>s.delete.call({path:Bh(t,e)})});return a.set(t,u),u}});return new Proxy(e,{get(e,t,n){return t===`files`?o:Reflect.get(e,t,n)}})}function Uh(e={}){return Hh(Lh(e),e)}var Wh=`modulepreload`,Gh=function(e){return`/`+e},Kh={},U=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))},i=document.getElementsByTagName(`link`),a=document.querySelector(`meta[property=csp-nonce]`),o=a?.nonce||a?.getAttribute(`nonce`);r=e(t.map(e=>{if(e=Gh(e,n),e in Kh)return;Kh[e]=!0;let t=e.endsWith(`.css`),r=t?`[rel="stylesheet"]`:``;if(n)for(let n=i.length-1;n>=0;n--){let r=i[n];if(r.href===e&&(!t||r.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${e}"]${r}`))return;let a=document.createElement(`link`);if(a.rel=t?`stylesheet`:Wh,t||(a.as=`script`),a.crossOrigin=``,a.href=e,o&&a.setAttribute(`nonce`,o),document.head.appendChild(a),t)return new Promise((t,n)=>{a.addEventListener(`load`,t),a.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${e}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function qh(e={}){let t=e.fetch??fetch;return async function(e,n){if(typeof window<`u`)return t(e,n);if(typeof e==`string`&&e.startsWith(`/`)){let r={}.APP_URL;if(r===void 0)try{let e=await U(()=>import(`./server-szKAE7Vl.js`),[]);
20r=new URL(e.getRequest().url).origin}catch{}return r??={}.BETTER_AUTH_URL??`http://localhost:3000`,t(new URL(e,r),n)}return t(e,n)}}var Jh=(e,t)=>{let n=e=>{try{t(e)}catch{return}},r=async(t,r)=>{if(typeof window<`u`)return e(t,r);let i=new URL(t instanceof Request?t.url:String(t),`http://localhost`);if(i.pathname!==`/api/rpc/agents/getBySlug`)return e(t,r);let a={source:`airealty.agent-profile.ssr`,requestOrigin:i.origin},o;try{o=await e(t,r)}catch(e){throw n({...a,event:`api.transport_error`,errorType:e instanceof Error?e.name:typeof e}),e}let s=!1,c=`unparseable`;try{let e=await o.clone().json();typeof e==`object`&&e&&`json`in e?(s=!0,c=e.json===null?`null`:typeof e.json):c=`undefined`}catch{c=`unparseable`}return n({...a,event:`api.response`,responseOrigin:o.url?new URL(o.url).origin:null,status:o.status,redirected:o.redirected,contentType:o.headers.get(`content-type`),hasJson:s,resultType:c}),o};return r.preconnect=globalThis.fetch.preconnect,r},Yh=()=>new lp({defaultOptions:{queries:{staleTime:1e4}}}),Xh=qh({fetch:Jh(globalThis.fetch,e=>{process.stderr.write(`${JSON.stringify(e)}\n`)})}),Zh=e=>Uh({queryClient:e,fetch:Xh}),Qh=Zh(Yh()),$h=()=>{try{return Tu()?.options?.context?.api??Qh}catch{return Qh}},eg=$h,W=typeof window<`u`?window:void 0,tg=typeof globalThis<`u`?globalThis:W;typeof self>`u`&&(tg.self=tg),typeof File>`u`&&(tg.File=function(){});var ng=tg?.navigator,G=tg?.document,rg=tg?.location,ig=tg?.fetch,ag=tg!=null&&tg.XMLHttpRequest&&`withCredentials`in new tg.XMLHttpRequest?tg.XMLHttpRequest:void 0,og=tg?.AbortController,sg=tg?.CompressionStream,cg=ng?.userAgent,K=W??{},lg=`1.373.4`,ug={DEBUG:!1,LIB_VERSION:lg,LIB_NAME:`web`,JS_SDK_VERSION:lg};function dg(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function fg(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){dg(a,r,i,o,s,`next`,e)}function s(e){dg(a,r,i,o,s,`throw`,e)}o(void 0)}))}}function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q.apply(null,arguments)}function pg(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var mg,hg=function(e){return e.GZipJS=`gzip-js`,e.Base64=`base64`,e}({}),gg=[`$snapshot`,`$pageview`,`$pageleave`,`$set`,`survey dismissed`,`survey sent`,`survey shown`,`$identify`,`$groupidentify`,`$create_alias`,`$$client_ingestion_warning`,`$web_experiment_applied`,`$feature_enrollment_update`,`$feature_flag_called`],_g=`NativeGzipValidationError`,vg=e=>e.length>=2&&e[0]===31&&e[1]===139,yg=e=>!(!e||typeof e!=`object`)&&(`name`in e?String(e.name):``)===`NotReadableError`,bg=e=>{var t=Error(`Native gzip produced invalid output: `+e);throw t.name=_g,t},xg=function(){var e=fg((function*(e,t){18>e.size&&bg(`too-short`);var n=new Uint8Array(yield e.slice(0,10).arrayBuffer());vg(n)&&n[2]===8||bg(`invalid-header`);var r=new DataView(yield e.slice(e.size-8).arrayBuffer());r.getUint32(0,!0)!==(e=>{for(var t=(()=>{if(mg)return mg;mg=[];for(var e=0;256>e;e++){for(var t=e,n=0;8>n;n++)t=1&t?3988292384^t>>>1:t>>>1;mg[e]=t>>>0}return mg})(),n=4294967295,r=0;e.length>r;r++)n=t[255&(n^e[r])]^n>>>8;return(4294967295^n)>>>0})(t)&&bg(`invalid-crc`);var i=t.length>>>0;r.getUint32(4,!0)!==i&&bg(`invalid-size`)}));return function(t,n){return e.apply(this,arguments)}}();function Sg(){return Sg=fg((function*(e,t,n){t===void 0&&(t=!0);try{var r=new TextEncoder().encode(e),i=new CompressionStream(`gzip`),a=i.writable.getWriter(),o=a.write(r).then((()=>a.close())).catch(function(){var e=fg((function*(e){try{yield a.abort(e)}catch{}throw e}));return function(t){return e.apply(this,arguments)}}()),s=new Response(i.readable).blob(),[c]=yield Promise.all([s,o]);return yield xg(c,r),c}catch(e){if(n!=null&&n.rethrow)throw e;return t&&console.error(`Failed to gzip compress data`,e),null}})),Sg.apply(this,arguments)}var Cg=`amazonbot,amazonproductbot,app.hypefactors.com,applebot,archive.org_bot,awariobot,backlinksextendedbot,baiduspider,bingbot,bingpreview,chrome-lighthouse,dataforseobot,deepscan,duckduckbot,facebookexternal,facebookcatalog,http://yandex.com/bots,hubspot,ia_archiver,leikibot,linkedinbot,meta-externalagent,mj12bot,msnbot,nessus,petalbot,pinterest,prerender,rogerbot,screaming frog,sebot-wa,sitebulb,slackbot,slurp,trendictionbot,turnitin,twitterbot,vercel-screenshot,vercelbot,yahoo! slurp,yandexbot,zoombot,bot.htm,bot.php,(bot;,bot/,crawler,ahrefsbot,ahrefssiteaudit,semrushbot,siteauditbot,splitsignalbot,gptbot,oai-searchbot,chatgpt-user,perplexitybot,better uptime bot,sentryuptimebot,uptimerobot,headlesschrome,cypress,google-hoteladsverifier,adsbot-google,apis-google,duplexweb-google,feedfetcher-google,google favicon,google web preview,google-read-aloud,googlebot,googleother,google-cloudvertexbot,googleweblight,mediapartners-google,storebot-google,google-inspectiontool,bytespider`.split(`,`),wg=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var n=e.toLowerCase();return Cg.concat(t).some((e=>{var t=e.toLowerCase();return n.indexOf(t)!==-1}))};function Tg(e,t){return e.indexOf(t)!==-1}var Eg=function(e){return e.trim()},Dg=function(e){return e.replace(/^\$/,``)},Og=Object.prototype,kg=Og.hasOwnProperty,Ag=Og.toString,jg=Array.isArray||function(e){return Ag.call(e)===`[object Array]`},Mg=e=>typeof e==`function`,Ng=e=>e===Object(e)&&!jg(e),Pg=e=>{if(Ng(e)){for(var t in e)if(kg.call(e,t))return!1;return!0}return!1},J=e=>e===void 0,Fg=e=>Ag.call(e)==`[object String]`,Ig=e=>Fg(e)&&e.trim().length===0,Lg=e=>e===null,Rg=e=>J(e)||Lg(e),zg=e=>Ag.call(e)==`[object Number]`&&e==e,Bg=e=>zg(e)&&e>0,Vg=e=>Ag.call(e)===`[object Boolean]`,Hg=e=>e instanceof FormData,Ug=e=>Tg(gg,e);function Wg(e){return typeof e!=`object`||!e}function Gg(e,t){return{}.toString.call(e)===`[object `+t+`]`}function Kg(e){return typeof Event<`u`&&function(e,t){try{return e instanceof t}catch{return!1}}(e,Event)}var qg=[!0,`true`,1,`1`,`yes`],Jg=e=>Tg(qg,e),Yg=[!1,`false`,0,`0`,`no`];function Xg(e,t,n,r,i){return t>n&&(r.warn(`min cannot be greater than max.`),t=n),zg(e)?e>n?(r.warn(` cannot be  greater than max: `+n+`. Using max value instead.`),n):t>e?(r.warn(` cannot be less than min: `+t+`. Using min value instead.`),t):e:(r.warn(` must be a number. using max or fallback. max: `+n+`, fallback: `+i),Xg(i||n,t,n,r))}
20var Zg=class{constructor(e){this.$t={},this.zt=e.zt,this.Zt=Xg(e.bucketSize,0,100,e.Gt),this.Qt=Xg(e.refillRate,0,this.Zt,e.Gt),this.Jt=Xg(e.refillInterval,0,864e5,e.Gt)}Kt(e,t){var n=Math.floor((t-e.lastAccess)/this.Jt);n>0&&(e.tokens=Math.min(e.tokens+n*this.Qt,this.Zt),e.lastAccess+=n*this.Jt)}consumeRateLimit(e){var t,n=Date.now(),r=String(e),i=this.$t[r];return i?this.Kt(i,n):this.$t[r]=i={tokens:this.Zt,lastAccess:n},i.tokens===0||(i.tokens--,i.tokens===0&&((t=this.zt)==null||t.call(this,e)),i.tokens===0)}stop(){this.$t={}}},Qg,$g,e_,t_=`Mobile`,n_=`iOS`,r_=`Android`,i_=`Tablet`,a_=r_+` `+i_,o_=`iPad`,s_=`Apple`,c_=s_+` Watch`,l_=`Safari`,u_=`BlackBerry`,d_=`Samsung`,f_=d_+`Browser`,p_=d_+` Internet`,m_=`Chrome`,h_=m_+` OS`,g_=m_+` `+n_,__=`Internet Explorer`,v_=__+` `+t_,y_=`Opera`,b_=y_+` Mini`,x_=`Edge`,S_=`Microsoft `+x_,C_=`Firefox`,w_=C_+` `+n_,T_=`Nintendo`,E_=`PlayStation`,D_=`Xbox`,O_=r_+` `+t_,k_=t_+` `+l_,A_=`Windows`,j_=A_+` Phone`,M_=`Nokia`,N_=`Ouya`,P_=`Generic`,F_=P_+` `+t_.toLowerCase(),I_=P_+` `+i_.toLowerCase(),L_=`Konqueror`,R_=`(\\d+(\\.\\d+)?)`,z_=RegExp(`Version/`+R_),B_=new RegExp(D_,`i`),V_=RegExp(E_+` \\w+`,`i`),H_=RegExp(T_+` \\w+`,`i`),U_=RegExp(u_+`|PlayBook|BB10`,`i`),W_={"NT3.51":`NT 3.11`,"NT4.0":`NT 4.0`,"5.0":`2000`,5.1:`XP`,5.2:`XP`,"6.0":`Vista`,6.1:`7`,6.2:`8`,6.3:`8.1`,6.4:`10`,"10.0":`10`},G_=function(e,t){return t||=``,Tg(e,` OPR/`)&&Tg(e,`Mini`)?b_:Tg(e,` OPR/`)?y_:U_.test(e)?u_:Tg(e,`IE`+t_)||Tg(e,`WPDesktop`)?v_:Tg(e,f_)?p_:Tg(e,x_)||Tg(e,`Edg/`)?S_:Tg(e,`FBIOS`)?`Facebook `+t_:Tg(e,`UCWEB`)||Tg(e,`UCBrowser`)?`UC Browser`:Tg(e,`CriOS`)?g_:Tg(e,`CrMo`)||Tg(e,m_)?m_:Tg(e,r_)&&Tg(e,l_)?O_:Tg(e,`FxiOS`)?w_:Tg(e.toLowerCase(),L_.toLowerCase())?L_:((e,t)=>t&&Tg(t,s_)||function(e){return Tg(e,l_)&&!Tg(e,m_)&&!Tg(e,r_)}(e))(e,t)?Tg(e,t_)?k_:l_:Tg(e,C_)?C_:Tg(e,`MSIE`)||Tg(e,`Trident/`)?__:Tg(e,`Gecko`)?C_:``},K_={[v_]:[RegExp(`rv:`+R_)],[S_]:[RegExp(x_+`?\\/`+R_)],[m_]:[RegExp(`(`+m_+`|CrMo)\\/`+R_)],[g_]:[RegExp(`CriOS\\/`+R_)],"UC Browser":[RegExp(`(UCBrowser|UCWEB)\\/`+R_)],[l_]:[z_],[k_]:[z_],[y_]:[RegExp(`(Opera|OPR)\\/`+R_)],[C_]:[RegExp(C_+`\\/`+R_)],[w_]:[RegExp(`FxiOS\\/`+R_)],[L_]:[RegExp(`Konqueror[:/]?`+R_,`i`)],[u_]:[RegExp(u_+` `+R_),z_],[O_]:[RegExp(`android\\s`+R_,`i`)],[p_]:[RegExp(f_+`\\/`+R_)],[__]:[RegExp(`(rv:|MSIE )`+R_)],Mozilla:[RegExp(`rv:`+R_)]},q_=function(e,t){var n=K_[G_(e,t)];if(J(n))return null;for(var r=0;n.length>r;r++){var i=e.match(n[r]);if(i)return parseFloat(i[i.length-2])}return null},J_=[[RegExp(D_+`; `+D_+` (.*?)[);]`,`i`),e=>[D_,e&&e[1]||``]],[new RegExp(T_,`i`),[T_,``]],[new RegExp(E_,`i`),[E_,``]],[U_,[u_,``]],[new RegExp(A_,`i`),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[j_,``];if(new RegExp(t_).test(t)&&!/IEMobile\b/.test(t))return[A_+` `+t_,``];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=W_[n[1]]||``;return/arm/i.test(t)&&(r=`RT`),[A_,r]}return[A_,``]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[n_,[e[3],e[4],e[5]||`0`].join(`.`)]:[n_,``]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t=``;return e&&e.length>=3&&(t=J(e[2])?e[3]:e[2]),[`watchOS`,t]}],[RegExp(`(`+r_+` (\\d+)\\.(\\d+)\\.?(\\d+)?|`+r_+`)`,`i`),e=>e&&e[2]?[r_,[e[2],e[3],e[4]||`0`].join(`.`)]:[r_,``]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=[`Mac OS X`,``];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||`0`].join(`.`)),t}],[/Mac/i,[`Mac OS X`,``]],[/CrOS/,[h_,``]],[/Linux|debian/i,[`Linux`,``]]],Y_=function(e){return H_.test(e)?T_:V_.test(e)?E_:B_.test(e)?D_:new RegExp(N_,`i`).test(e)?N_:RegExp(`(`+j_+`|WPDesktop)`,`i`).test(e)?j_:/iPad/.test(e)?o_:/iPod/.test(e)?`iPod Touch`:/iPhone/.test(e)?`iPhone`:/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?c_:U_.test(e)?u_:/(kobo)\s(ereader|touch)/i.test(e)?`Kobo`:new RegExp(M_,`i`).test(e)?M_:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?`Kindle Fire`:/(Android|ZTE)/i.test(e)?new RegExp(t_).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?r_:a_:RegExp(`(pda|`+t_+`)`,`i`).test(e)?F_:new RegExp(i_,`i`).test(e)&&!RegExp(i_+` pc`,`i`).test(e)?I_:``},X_=e=>e instanceof Error,Z_={trace:{text:`TRACE`,number:1},debug:{text:`DEBUG`,number:5},info:{text:`INFO`,number:9},warn:{text:`WARN`,number:13},error:{text:`ERROR`,number:17},fatal:{text:`FATAL`,number:21}},Q_=Z_.info;function $_(e){if(Vg(e))return{boolValue:e};if(typeof e==`number`)return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e==`string`)return{stringValue:e};if(jg(e))return{arrayValue:{values:e.map((e=>$_(e)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function ev(e){var t=[];for(var n in e){var r=e[n];Lg(r)||J(r)||t.push({key:n,value:$_(r)})}return t}function tv(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return e_&&n.length===$g||($g=n.length,e_=n.reduce(((n,r)=>{Qg||={};var i=Qg[r];if(i)n[i[0]]=i[1];else for(var a=e(r),o=a.length-1;o>=0;o--){var s=a[o]?.filename,c=t[r];
20if(s&&c){n[s]=c,Qg[r]=[s,c];break}}return n}),{})),e_}}var nv=class{constructor(e,t,n){n===void 0&&(n=[]),this.coercers=e,this.stackParser=t,this.modifiers=n}buildFromUnknown(e,t){t===void 0&&(t={});var n=t&&t.mechanism||{handled:!0,type:`generic`},r=this.buildCoercingContext(n,t,0).apply(e),i=this.buildParsingContext(t),a=this.parseStacktrace(r,i);return{$exception_list:this.convertToExceptionList(a,n),$exception_level:`error`}}modifyFrames(e){var t=this;return fg((function*(){for(var n of e)n.stacktrace&&n.stacktrace.frames&&jg(n.stacktrace.frames)&&(n.stacktrace.frames=yield t.applyModifiers(n.stacktrace.frames));return e}))()}coerceFallback(e){return{type:`Error`,value:`Unknown error`,stack:e.syntheticException?.stack,synthetic:!0}}parseStacktrace(e,t){var n,r;return e.cause!=null&&(n=this.parseStacktrace(e.cause,t)),e.stack!=``&&e.stack!=null&&(r=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.skipFirstLines:0),t.chunkIdMap)),q({},e,{cause:n,stack:r})}applyChunkIds(e,t){return e.map((e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e)))}applyCoercers(e,t){for(var n of this.coercers)if(n.match(e))return n.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return fg((function*(){var n=e;for(var r of t.modifiers)n=yield r(n);return n}))()}convertToExceptionList(e,t){var n,r,i={type:e.type,value:e.value,mechanism:{type:t.type??`generic`,handled:(n=t.handled)==null||n,synthetic:(r=e.synthetic)!=null&&r}};e.stack&&(i.stacktrace={type:`raw`,frames:e.stack});var a=[i];return e.cause!=null&&a.push(...this.convertToExceptionList(e.cause,q({},t,{handled:!0}))),a}buildParsingContext(e){return{chunkIdMap:tv(this.stackParser),skipFirstLines:e.skipFirstLines??1}}buildCoercingContext(e,t,n){n===void 0&&(n=0);var r=(n,r)=>{if(4>=r){var i=this.buildCoercingContext(e,t,r);return this.applyCoercers(n,i)}};return q({},t,{syntheticException:n==0?t.syntheticException:void 0,mechanism:e,apply:e=>r(e,n),next:e=>r(e,n+1)})}},rv=`?`;function iv(e,t,n,r,i){var a={platform:e,filename:t,function:n===`<anonymous>`?rv:n,in_app:!0};return J(r)||(a.lineno=r),J(i)||(a.colno=i),a}var av=(e,t)=>{var n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?rv:e.split(`@`)[0],n?`safari-extension:`+t:`safari-web-extension:`+t]:[e,t]},ov=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,sv=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,cv=/\((\S*)(?::(\d+))(?::(\d+))\)/,lv=(e,t)=>{var n=ov.exec(e);if(n){var[,r,i,a]=n;return iv(t,r,rv,+i,+a)}var o=sv.exec(e);if(o){if(o[2]&&o[2].indexOf(`eval`)===0){var s=cv.exec(o[2]);s&&(o[2]=s[1],o[3]=s[2],o[4]=s[3])}var[c,l]=av(o[1]||rv,o[2]);return iv(t,l,c,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},uv=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,dv=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,fv=(e,t)=>{var n=uv.exec(e);if(n){if(n[3]&&n[3].indexOf(` > eval`)>-1){var r=dv.exec(n[3]);r&&(n[1]=n[1]||`eval`,n[3]=r[1],n[4]=r[2],n[5]=``)}var i=n[3],a=n[1]||rv;return[a,i]=av(a,i),iv(t,i,a,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},pv=/\(error: (.*)\)/,mv=class{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var n=Fg(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:n?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?`DOMError`:`DOMException`}getValue(e){var t=e.name||(this.isDOMError(e)?`DOMError`:`DOMException`);return e.message?t+`: `+e.message:t}isDOMException(e){return Gg(e,`DOMException`)}isDOMError(e){return Gg(e,`DOMError`)}},hv=class{match(e){return(e=>e instanceof Error)(e)}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var n=e.message;return String(n.error&&typeof n.error.message==`string`?n.error.message:n)}getStack(e){return e.stacktrace||e.stack||void 0}},gv=class{constructor(){}match(e){return Gg(e,`ErrorEvent`)&&e.error!=null}coerce(e,t){return t.apply(e.error)||{type:`ErrorEvent`,value:e.message,stack:t.syntheticException?.stack,synthetic:!0}}},_v=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,vv=class{match(e){return typeof e==`string`}coerce(e,t){var[n,r]=this.getInfos(e);return{type:n??`Error`,value:r??e,stack:t.syntheticException?.stack,synthetic:!0}}getInfos(e){var t=`Error`,n=e,r=e.match(_v);return r&&(t=r[1],n=r[2]),[t,n]}},yv=[`fatal`,`error`,`warning`,`log`,`info`,`debug`];function bv(e,t){t===void 0&&(t=40);var n=Object.keys(e);if(n.sort(),!n.length)return`[object has no keys]`;for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(`, `);if(t>=i.length)return r===n.length?i:i.length>t?i.slice(0,t)+`...`:i}return``}var xv=class{match(e){return typeof e==`object`&&!!e}coerce(e,t){var n=this.getErrorPropertyFromObject(e);return n?t.apply(n):{type:this.getType(e),value:this.getValue(e),stack:t.syntheticException?.stack,level:this.isSeverityLevel(e.level)?e.level:`error`,synthetic:!0}}getType(e){return Kg(e)?e.constructor.name:`Error`}getValue(e){if(`name`in e&&typeof e.name==`string`){var t=`'`+e.name+`' captured as exception`;return`message`in e&&typeof e.message==`string`&&(t+=` with message: '`+e.message+`'`),t}if(`message`in e&&typeof e.message==`string`)return e.message;var n=this.getObjectClassName(e);return(n&&n!==`Object`?`'`+n+`'`:`Object`)+` captured as exception with keys: `+bv(e)}isSeverityLevel(e){return Fg(e)&&!Ig(e)&&yv.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if({}.hasOwnProperty.call(e,t)){var n=e[t];if(X_(n))return n}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{return}}},Sv=class{match(e){return Kg(e)}coerce(e,t){var n=e.constructor.name;return{type:n,value:n+` captured as exception with keys: `+bv(e),stack:t.syntheticException?.stack,synthetic:!0}}},Cv=class{match(e){return Wg(e)}coerce(e,t){return{type:`Error`,value:`Primitive value captured as exception: `+String(e),stack:t.syntheticException?.stack,synthetic:!0}}},wv=class{match(e){return Gg(e,`PromiseRejectionEvent`)||this.isCu
20stomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!Kg(e))return!1;try{var t=e.detail;return typeof t==`object`&&!!t&&`reason`in t}catch{return!1}}coerce(e,t){var n=this.getUnhandledRejectionReason(e);return Wg(n)?{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: `+String(n),stack:t.syntheticException?.stack,synthetic:!0}:t.apply(n)}getUnhandledRejectionReason(e){try{if(`reason`in e)return e.reason;if(`detail`in e&&e.detail!=null&&typeof e.detail==`object`&&`reason`in e.detail)return e.detail.reason}catch{}return e}},Tv=`$message`,Ev=`$timestamp`,Dv=new Set([Tv,Ev]),Ov={enabled:!0,max_bytes:32768};function kv(e){return e?{enabled:e.enabled??Ov.enabled,max_bytes:jv(e.max_bytes,Ov.max_bytes)}:q({},Ov)}var Av=class{constructor(e){this.Yt=[],this.Xt=0,this.qt=kv(e)}setConfig(e){this.qt=kv(e),this.er()}add(e){var t=function(e){var t=function(e){var t=new WeakSet;try{return JSON.stringify(e,((e,n)=>{if(typeof n==`bigint`)return n.toString();if(typeof n!=`function`&&typeof n!=`symbol`){if(n instanceof Date)return n.toISOString();if(n instanceof Error)return{name:n.name,message:n.message,stack:n.stack};if(n&&typeof n==`object`){if(t.has(n))return`[Circular]`;t.add(n)}return n}}))}catch{return}}(e);if(t)try{var n=JSON.parse(t);if(!Ng(n))return;var r=n,i=r[Tv],a=r[Ev];return!Fg(i)||i.trim().length===0||!Fg(a)&&!zg(a)?void 0:{step:r,json:t}}catch{return}}(e);if(t){var n=function(e){if(typeof TextEncoder<`u`)return new TextEncoder().encode(e).length;for(var t=encodeURIComponent(e),n=0,r=0;t.length>r;r++)t[r]===`%`?(n+=1,r+=2):n+=1;return n}(t.json);n>this.qt.max_bytes||(this.Yt.push({step:t.step,bytes:n}),this.Xt+=n,this.er())}}getAttachable(){return this.Yt.map((e=>e.step))}clear(){this.Yt=[],this.Xt=0}size(){return this.Yt.length}er(){for(;this.Xt>this.qt.max_bytes&&this.Yt.length>0;){var e=this.Yt.shift();e&&(this.Xt-=e.bytes)}}};function jv(e,t){if(!zg(e)||e===1/0||e===-1/0)return t;var n=Math.floor(e);return 0>n?t:n}var Mv=function(e,t){var{debugEnabled:n}=t===void 0?{}:t,r={k(t){if(W&&(ug.DEBUG||K.POSTHOG_DEBUG||n)&&!J(W.console)&&W.console){for(var r=(`__rrweb_original__`in W.console[t])?W.console[t].__rrweb_original__:W.console[t],i=arguments.length,a=Array(i>1?i-1:0),o=1;i>o;o++)a[o-1]=arguments[o];r(e,...a)}},debug(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];r.k(`debug`,...t)},info(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];r.k(`log`,...t)},warn(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];r.k(`warn`,...t)},error(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];r.k(`error`,...t)},critical(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];console.error(e,...n)},uninitializedWarning(e){r.error(`You must initialize PostHog before calling `+e)},createLogger:(t,n)=>Mv(e+` `+t,n)};return r},Y=Mv(`[PostHog.js]`),Nv=Y.createLogger,Pv=Nv(`[ExternalScriptsLoader]`),Fv=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return Pv.warn(t+` was requested but loading of external scripts is disabled.`),n(`Loading of external scripts is disabled`);var r=G?.querySelectorAll(`script`);if(r){for(var i,a=function(){if(r[o].src===t){var e=r[o];return e.__posthog_loading_callback_fired?{v:n()}:(e.addEventListener(`load`,(t=>{e.__posthog_loading_callback_fired=!0,n(void 0,t)})),e.onerror=e=>n(e),{v:void 0})}},o=0;r.length>o;o++)if(i=a())return i.v}var s=()=>{if(!G)return n(`document not found`);var r=G.createElement(`script`);if(r.type=`text/javascript`,r.crossOrigin=`anonymous`,r.src=t,r.onload=e=>{r.__posthog_loading_callback_fired=!0,n(void 0,e)},r.onerror=e=>n(e),e.config.prepare_external_dependency_script&&(r=e.config.prepare_external_dependency_script(r)),!r)return n(`prepare_external_dependency_script returned null`);if(e.config.external_scripts_inject_target===`head`)G.head.appendChild(r);else{var i,a=G.querySelectorAll(`body > script`);a.length>0?(i=a[0].parentNode)==null||i.insertBefore(r,a[0]):G.body.appendChild(r)}};
20G!=null&&G.body?s():G?.addEventListener(`DOMContentLoaded`,s)};K.__PosthogExtensions__=K.__PosthogExtensions__||{},K.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{if(t!==`remote-config`){var r;if(e.config.__preview_external_dependency_versioned_paths)r=e.requestRouter.endpointFor(`assets`,`/static/`+e.version+`/`+t+`.js`);else{var i=`/static/`+t+`.js?v=`+e.version;if(t===`toolbar`){var a=3e5;i=i+`&t=`+Math.floor(Date.now()/a)*a}r=e.requestRouter.endpointFor(`assets`,i)}Fv(e,r,n)}else Fv(e,e.requestRouter.endpointFor(`assets`,`/array/`+e.config.token+`/config.js`),n)},K.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{Fv(e,e.requestRouter.endpointFor(`api`,t),n)};var Iv=`$people_distinct_id`,Lv=`$device_id`,Rv=`__alias`,zv=`__timers`,Bv=`$autocapture_disabled_server_side`,Vv=`$heatmaps_enabled_server_side`,Hv=`$exception_capture_enabled_server_side`,Uv=`$error_tracking_suppression_rules`,Wv=`$error_tracking_capture_extension_exceptions`,Gv=`$web_vitals_enabled_server_side`,Kv=`$dead_clicks_enabled_server_side`,qv=`$product_tours_enabled_server_side`,Jv=`$web_vitals_allowed_metrics`,Yv=`$session_recording_remote_config`,Xv=`$replay_override_sampling`,Zv=`$replay_override_linked_flag`,Qv=`$replay_override_url_trigger`,$v=`$replay_override_event_trigger`,ey=`$sesid`,ty=`$session_is_sampled`,ny=`$enabled_feature_flags`,ry=`$active_feature_flags`,iy=`$early_access_features`,ay=`$feature_flag_details`,oy=`$feature_flag_payloads`,sy=`$feature_flag_request_id`,cy=`$override_feature_flags`,ly=`$override_feature_flag_payloads`,uy=`$stored_person_properties`,dy=`$stored_group_properties`,fy=`$surveys`,py=`$surveys_activated`,my=`ph_product_tours`,hy=`$flag_call_reported`,gy=`$flag_call_reported_session_id`,_y=`$feature_flag_errors`,vy=`$feature_flag_evaluated_at`,yy=`$user_state`,by=`$client_session_props`,xy=`$capture_rate_limit`,Sy=`$initial_campaign_params`,Cy=`$initial_referrer_info`,wy=`$initial_person_info`,Ty=`$epp`,Ey=`__POSTHOG_TOOLBAR__`,Dy=`$posthog_cookieless`,Oy=`$sdk_debug_extensions_init_method`,ky=`$sdk_debug_extensions_init_time_ms`,Ay=`$sdk_debug_recording_script_not_loaded`,jy=`PostHog loadExternalDependency extension not found.`,My=`on_reject`,Ny=`always`,Py=`anonymous`,Fy=`identified`,Iy=`identified_only`,Ly=`visibilitychange`,Ry=`beforeunload`,zy=`$pageview`,By=`$pageleave`,Vy=`$identify`,Hy=`$groupidentify`;function Uy(e,t){jg(e)&&e.forEach(t)}function Wy(e,t){if(!Rg(e))if(jg(e))e.forEach(t);else if(Hg(e))e.forEach(((e,n)=>t(e,n)));else for(var n in e)kg.call(e,n)&&t(e[n],n)}var Gy=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];for(var i of n)for(var a in i)i[a]!==void 0&&(e[a]=i[a]);return e};function Ky(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var qy=function(e){try{return e()}catch{return}},Jy=function(e){return function(){try{for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.apply(this,n)}catch(e){Y.critical(`Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A.`),Y.critical(e)}}},Yy=function(e){var t={};return Wy(e,(function(e,n){(Fg(e)&&e.length>0||zg(e))&&(t[n]=e)})),t},Xy=[`herokuapp.com`,`vercel.app`,`netlify.app`];function Zy(e){var t=e?.hostname;if(!Fg(t))return!1;var n=t.split(`.`).slice(-2).join(`.`);for(var r of Xy)if(n===r)return!1;return!0}function Qy(e,t,n,r){var{capture:i=!1,passive:a=!0}=r??{};e?.addEventListener(t,n,{capture:i,passive:a})}function $y(e){return e.name===`ph_toolbar_internal`}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return zg(e)&&isFinite(e)&&Math.floor(e)===e});var eb=class e{constructor(e){if(this.bytes=e,e.length!==16)throw TypeError(`not 128-bit length`)}static fromFieldsV7(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||0>t||0>n||0>r||0>i||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw RangeError(`invalid field value`);var a=new Uint8Array(16);return a[0]=t/2**40,a[1]=t/2**32,a[2]=t/2**24,a[3]=t/2**16,a[4]=t/2**8,a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}toString(){for(var e=``,t=0;this.bytes.length>t;t++)e=e+(this.bytes[t]>>>4).toString(16)+(15&this.bytes[t]).toString(16),t!==3&&t!==5&&t!==7&&t!==9||(e+=`-`);
20if(e.length!==36)throw Error(`Invalid UUIDv7 was generated`);return e}clone(){return new e(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var t=0;16>t;t++){var n=this.bytes[t]-e.bytes[t];if(n!==0)return Math.sign(n)}return 0}},tb=class{constructor(){this.S=0,this.C=0,this.I=new ib}generate(){var e=this.generateOrAbort();if(J(e)){this.S=0;var t=this.generateOrAbort();if(J(t))throw Error(`Could not generate UUID after timestamp reset`);return t}return e}generateOrAbort(){var e=Date.now();if(e>this.S)this.S=e,this.T();else{if(this.S>=e+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.T())}return eb.fromFieldsV7(this.S,Math.trunc(this.C/2**30),this.C&2**30-1,this.I.nextUint32())}T(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}},nb,rb=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<`u`&&UUIDV7_DENY_WEAK_RNG)throw Error(`no cryptographically strong RNG available`);for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};W&&!J(W.crypto)&&crypto.getRandomValues&&(rb=e=>crypto.getRandomValues(e));var ib=class{constructor(){this.M=new Uint32Array(8),this.O=1/0}nextUint32(){return this.M.length>this.O||(rb(this.M),this.O=0),this.M[this.O++]}},ab=()=>ob().toString(),ob=()=>(nb||=new tb).generate(),sb=``,cb=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,lb={R:()=>!!G,D(e){Y.error(`cookieStore error: `+e)},A(e){if(G){try{for(var t=e+`=`,n=G.cookie.split(`;`).filter((e=>e.length)),r=0;n.length>r;r++){for(var i=n[r];i.charAt(0)==` `;)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}}catch{}return null}},F(e){var t;try{t=JSON.parse(lb.A(e))||{}}catch{}return t},N(e,t,n,r,i){if(G)try{var a=``,o=``,s=function(e,t){if(t){var n=function(e,t){if(t===void 0&&(t=G),sb)return sb;if(!t||[`localhost`,`127.0.0.1`].includes(e))return``;for(var n=e.split(`.`),r=Math.min(n.length,8),i=`dmn_chk_`+ab();!sb&&r--;){var a=n.slice(r).join(`.`),o=i+`=1;domain=.`+a+`;path=/`;t.cookie=o+`;max-age=3`,t.cookie.includes(i)&&(t.cookie=o+`;max-age=0`,sb=a)}return sb}(e);if(!n){var r=(e=>{var t=e.match(cb);return t?t[0]:``})(e);r!==n&&Y.info(`Warning: cookie subdomain discovery mismatch`,r,n),n=r}return n?`; domain=.`+n:``}return``}(G.location.hostname,r);if(n){var c=new Date;c.setTime(c.getTime()+864e5*n),a=`; expires=`+c.toUTCString()}i&&(o=`; secure`);var l=e+`=`+encodeURIComponent(JSON.stringify(t))+a+`; SameSite=Lax; path=/`+s+o;return l.length>3686.4&&Y.warn(`cookieStore warning: large cookie, len=`+l.length),G.cookie=l,l}catch{return}},q(e,t){if(G!=null&&G.cookie)try{lb.N(e,``,-1,t)}catch{return}}},ub=null,db={R(){if(!Lg(ub))return ub;var e=!0;if(J(W))e=!1;else try{var t=`__mplssupport__`;db.N(t,`xyz`),db.A(t)!==`"xyz"`&&(e=!1),db.q(t)}catch{e=!1}return e||Y.error(`localStorage unsupported; falling back to cookie store`),ub=e,e},D(e){Y.error(`localStorage error: `+e)},A(e){try{return W?.localStorage.getItem(e)}catch(e){db.D(e)}return null},F(e){try{return JSON.parse(db.A(e))||{}}catch{}return null},N(e,t){try{W?.localStorage.setItem(e,JSON.stringify(t))}catch(e){db.D(e)}},q(e){try{W?.localStorage.removeItem(e)}catch(e){db.D(e)}}},fb=[Lv,`distinct_id`,ey,ty,Ty,wy,yy],pb={},mb={R:()=>!0,D(e){Y.error(`memoryStorage error: `+e)},A:e=>pb[e]||null,F:e=>pb[e]||null,N(e,t){pb[e]=t},q(e){delete pb[e]}},hb=null,gb={R(){if(!Lg(hb))return hb;if(hb=!0,J(W))hb=!1;else try{var e=`__support__`;gb.N(e,`xyz`),gb.A(e)!==`"xyz"`&&(hb=!1),gb.q(e)}catch{hb=!1}return hb},D(e){Y.error(`sessionStorage error: `,e)},A(e){try{return W?.sessionStorage.getItem(e)}catch(e){gb.D(e)}return null},F(e){try{return JSON.parse(gb.A(e))||null}catch{}return null},N(e,t){try{W?.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){gb.D(e)}},q(e){try{W?.sessionStorage.removeItem(e)}catch(e){gb.D(e)}}},_b=class{constructor(e){this._instance=e}get qt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.qt.cookieless_mode===Ny||this.isRejected()||this.consent===-1&&this.qt.cookieless_mode===My}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.qt.opt_out_capturing_by_default}optInOut(e){this.nr.N(this.sr,+!!e,this.qt.cookie_expiration,this.qt.cross_subdomain_cookie,this.qt.secure_cookie)}reset(){this.nr.q(this.sr,this.qt.cross_subdomain_cookie)}get sr(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:n}=this._instance.config;return n||(t?t+e:`__ph_opt_in_out_`+e)}get ir(){var e=this.nr.A(this.sr);return Jg(e)?1:Tg(Yg,e)?0:-1}get nr(){var e=this.qt.opt_out_capturing_persistence_type,t=e===`localStorage`?db:lb;if(!this.ar||this.ar!==t){this.ar=t;var n=e===`localStorage`?lb:db;n.A(this.sr)&&(this.ar.A(this.sr)||this.optInOut(Jg(n.A(this.sr))),n.q(this.sr,this.qt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.qt.respect_dnt&&[ng?.doNotTrack,ng?.msDoNotTrack,K.doNotTrack].some((e=>Jg(e)))}},vb=Nv(`[Dead Clicks]`),yb=()=>!0,bb=e=>{var t,n=!((t=e.instance.persistence)==null||!t.get_property(Kv)),r=e.instance.config.capture_dead_clicks;return Vg(r)?r:!!Ng(r)||n},xb=class{get lazyLoadedDeadClicksAutocapture(){return this.ur}constructor(e,t,n){this.instance=e,this.isEnabled=t,this.onCapture=n,this.startIfEnabledOrStop()}onRemoteConfig(e){`captureDeadClicks`in e&&(this.instance.persistence&&this.instance.persistence.register({[Kv]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.lr((()=>{this.hr()})):this.stop()}lr(e){var t,n;(t=K.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture&&e(),(n=K.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,`dead-clicks-autocapture`,(t=>{t?vb.error(`failed to load script`,t):e()}))}hr(){var e;if(G){if(!this.ur&&(e=K.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var t=Ng(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.ur=K.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.ur.start(G),vb.info(`starting...`)}}else vb.error("`document` not found. Cannot start.")}stop(){this.ur&&(this.ur.stop(),this.ur=void 0,vb.info(`stopping...`))}},Sb=Nv(`[SegmentIntegration]`),Cb=`posthog-js`;function wb(e,t){var{organization:n,projectId:r,prefix:i,severityAllowList:a=[`error`],sendExceptionsToPostHog:o=!0}=t===void 0?{}:t;return t=>{if(a!==`*`&&!a.includes(t.level)||!e.__loaded)return t;t.tags||={};var s=e.requestRouter.endpointFor(`ui`,`/project/`+e.config.token+`/person/`+e.get_distinct_id());t.tags[`PostHog Person URL`]=s,e.sessionRecordingStarted()&&(t.tags[`PostHog Recording URL`]=e.get_session_replay_url({withTimestamp:!0}));var c,l=t.exception?.values||[],u=l.map((e=>q({},e,{stacktrace:e.stacktrace?q({},e.stacktrace,{type:`raw`,frames:(e.stacktrace.frames||[]).map((e=>q({},e,{platform:`web:javascript`})))}):void 0}))),d={$exception_message:l[0]?.value||t.message,$exception_type:l[0]?.type,$exception_level:t.level,$exception_list:u,$
20sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:l[0]?.value||t.message,$sentry_exception_type:l[0]?.type,$sentry_tags:t.tags};return n&&r&&(d.$sentry_url=(i||`https://sentry.io/organizations/`)+n+`/issues/?project=`+r+`&query=`+t.event_id),o&&((c=e.exceptions)==null||c.sendExceptionEvent(d)),t}}var Tb=class{constructor(e,t,n,r,i,a){this.name=Cb,this.setupOnce=function(o){o(wb(e,{organization:t,projectId:n,prefix:r,severityAllowList:i,sendExceptionsToPostHog:a==null||a}))}}},Eb=class{constructor(e){this.cr=(e,t,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&(Y.info(`[PageViewManager] Session rotated, clearing pageview state`,{sessionId:e,changeReason:n}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.vr()}vr(){this.pr=this._instance.sessionManager?.onSessionId(this.cr)}destroy(){var e;(e=this.pr)==null||e.call(this),this.pr=void 0}doPageView(e,t){var n=this.gr(e,t);return this.dr={pathname:W?.location.pathname??``,pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){return this.gr(e,this.dr?.pageViewId)}doEvent(){return{$pageview_id:this.dr?.pageViewId}}gr(e,t){var n=this.dr;if(!n)return{$pageview_id:t};var r={$pageview_id:t,$prev_pageview_id:n.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:a,lastScrollY:o,maxScrollY:s,maxContentHeight:c,lastContentY:l,maxContentY:u}=i;
20if(!(J(a)||J(o)||J(s)||J(c)||J(l)||J(u))){a=Math.ceil(a),o=Math.ceil(o),s=Math.ceil(s),c=Math.ceil(c),l=Math.ceil(l),u=Math.ceil(u);var d=a>1?Xg(o/a,0,1,Y):1,f=a>1?Xg(s/a,0,1,Y):1,p=c>1?Xg(l/c,0,1,Y):1,m=c>1?Xg(u/c,0,1,Y):1;r=Gy(r,{$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:s,$prev_pageview_max_scroll_percentage:f,$prev_pageview_last_content:l,$prev_pageview_last_content_percentage:p,$prev_pageview_max_content:u,$prev_pageview_max_content_percentage:m})}}return n.pathname&&(r.$prev_pageview_pathname=n.pathname),n.timestamp&&(r.$prev_pageview_duration=(e.getTime()-n.timestamp.getTime())/1e3),r}},Db={[Iv]:{exposure:`hidden`},[Rv]:{exposure:`hidden`},__cmpns:{exposure:`hidden`},[zv]:{exposure:`hidden`},[Bv]:{exposure:`event`},[Vv]:{exposure:`hidden`},[Hv]:{exposure:`event`},[Uv]:{exposure:`hidden`},[Wv]:{exposure:`event`},[Gv]:{exposure:`event`},[Kv]:{exposure:`event`},[qv]:{exposure:`hidden`},[Jv]:{exposure:`event`},[Yv]:{exposure:`hidden`},$session_recording_enabled_server_side:{exposure:`hidden`},[ey]:{exposure:`hidden`},[ty]:{exposure:`event`},$session_past_minimum_duration:{exposure:`event`},$session_recording_url_trigger_activated_session:{exposure:`event`},$session_recording_event_trigger_activated_session:{exposure:`event`},$debug_first_full_snapshot_timestamp:{exposure:`event`},[ny]:{exposure:`derived`,shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!Ng(e))return{};for(var t={},n=Object.keys(e),r=0;n.length>r;r++)t[`$feature/`+n[r]]=e[n[r]];return t}},[ry]:{exposure:`event`},[iy]:{exposure:`hidden`},[ay]:{exposure:`hidden`},[oy]:{exposure:`event`},[sy]:{exposure:`event`},[cy]:{exposure:`event`},[ly]:{exposure:`hidden`},[uy]:{exposure:`hidden`},[dy]:{exposure:`hidden`},[fy]:{exposure:`hidden`},[py]:{exposure:`event`},[my]:{exposure:`hidden`},$product_tours_activated:{exposure:`hidden`},$conversations_widget_session_id:{exposure:`event`},$conversations_ticket_id:{exposure:`event`},$conversations_widget_state:{exposure:`event`},$conversations_user_traits:{exposure:`event`},[hy]:{exposure:`hidden`},[gy]:{exposure:`hidden`},[_y]:{exposure:`hidden`},[vy]:{exposure:`hidden`},[yy]:{exposure:`hidden`},[by]:{exposure:`hidden`},[xy]:{exposure:`hidden`},[Sy]:{exposure:`hidden`},[Cy]:{exposure:`hidden`},[wy]:{exposure:`hidden`},[Ty]:{exposure:`hidden`},[Xv]:{exposure:`event`},[Zv]:{exposure:`event`},[Qv]:{exposure:`event`},[$v]:{exposure:`event`},[Oy]:{exposure:`event`},[ky]:{exposure:`event`}
20,[Ay]:{exposure:`event`},$sdk_debug_replay_event_trigger_status:{exposure:`event`},$sdk_debug_replay_linked_flag_trigger_status:{exposure:`event`},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:`event`},$sdk_debug_replay_remote_trigger_matching_config:{exposure:`event`},$sdk_debug_replay_trigger_groups_count:{exposure:`event`},$sdk_debug_replay_url_trigger_status:{exposure:`event`},$session_recording_start_reason:{exposure:`event`}},Ob=[[`$posthog_sr_group_event_trigger_`,{exposure:`hidden`}],[`$posthog_sr_group_url_trigger_`,{exposure:`hidden`}],[`$posthog_sr_group_sampling_`,{exposure:`hidden`}]],kb=e=>{var t=G?.createElement(`a`);return J(t)?null:(t.href=e,t)},Ab=function(e,t){for(var n,r=((e.split(`#`)[0]||``).split(/\?(.*)/)[1]||``).replace(/^\?+/g,``).split(`&`),i=0;r.length>i;i++){var a=r[i].split(`=`);if(a[0]===t){n=a;break}}if(!jg(n)||2>n.length)return``;var o=n[1];try{o=decodeURIComponent(o)}catch{Y.error(`Skipping decoding for malformed query param: `+o)}return o.replace(/\+/g,` `)},jb=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split(`#`),i=r[1],a=(r[0]||``).split(`?`),o=a[1],s=a[0],c=(o||``).split(`&`),l=[],u=0;c.length>u;u++){var d=c[u].split(`=`);jg(d)&&(t.includes(d[0])?l.push(d[0]+`=`+n):l.push(c[u]))}var f=s;return o!=null&&(f+=`?`+l.join(`&`)),i!=null&&(f+=`#`+i),f},Mb=function(e,t){var n=e.match(RegExp(t+`=([^&]*)`));return n?n[1]:null},Nb=`https?://(.*)`,Pb=[`gclid`,`gclsrc`,`dclid`,`gbraid`,`wbraid`,`fbclid`,`msclkid`,`twclid`,`li_fat_id`,`igshid`,`ttclid`,`rdt_cid`,`epik`,`qclid`,`sccid`,`irclid`,`_kx`],Fb=[`utm_source`,`utm_medium`,`utm_campaign`,`utm_content`,`utm_term`,`gad_source`,`mc_cid`,...Pb],Ib=`<masked>`,Lb=[`li_fat_id`];function Rb(e,t,n){if(!G)return{};var r,i=t?[...Pb,...n||[]]:[],a=zb(jb(G.URL,i,Ib),e);return Gy((r={},Wy(Lb,(function(e){var t=lb.A(e);r[e]=t||null})),r),a)}function zb(e,t){var n=Fb.concat(t||[]),r={};return Wy(n,(function(t){r[t]=Ab(e,t)||null})),r}function Bb(e){var t=function(e){return e?e.search(Nb+`google.([^/?]*)`)===0?`google`:e.search(Nb+`bing.com`)===0?`bing`:e.search(Nb+`yahoo.com`)===0?`yahoo`:e.search(Nb+`duckduckgo.com`)===0?`duckduckgo`:null:null}(e),n=t==`yahoo`?`p`:`q`,r={};if(!Lg(t)){r.$search_engine=t;var i=G?Ab(G.referrer,n):``;i.length&&(r.ph_keyword=i)}return r}function Vb(){return navigator.language||navigator.userLanguage}var Hb=`$direct`;function Ub(){return G?.referrer||Hb}function Wb(e,t){var n=e?[...Pb,...t||[]]:[],r=rg?.href.substring(0,1e3);return{r:Ub().substring(0,1e3),u:r?jb(r,n,Ib):void 0}}function Gb(e){var{r:t,u:n}=e,r={$referrer:t,$referring_domain:t==null?void 0:t==Hb?Hb:kb(t)?.host};if(n){r.$current_url=n;var i=kb(n);r.$host=i?.host,r.$pathname=i?.pathname,Gy(r,zb(n))}return t&&Gy(r,Bb(t)),r}function Kb(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function qb(){try{return new Date().getTimezoneOffset()}catch{return}}var Jb=[`cookie`,`localstorage`,`localstorage+cookie`,`sessionstorage`,`memory`],Yb=class{constructor(e,t){this.qt=e,this.props={},this.mr=!1,this.yr=(e=>{var t=``;return e.token&&(t=e.token.replace(/\+/g,`PL`).replace(/\//g,`SL`).replace(/=/g,`EQ`)),e.persistence_name?`ph_`+e.persistence_name:`ph_`+t+`_posthog`})(e),this.nr=this.br(e),this.load(),e.debug&&Y.info(`Persistence loaded`,e.persistence,q({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this._r}br(e){Jb.indexOf(e.persistence.toLowerCase())===-1&&(Y.critical(`Unknown persistence type `+e.persistence+`; falling back to localStorage+cookie`),e.persistence=`localStorage+cookie`);var t=function(e){e===void 0&&(e=[]);var t=[...fb,...e];return q({},db,{F(e){try{var t={};try{t=lb.F(e)||{}}catch{}var n=Gy(t,JSON.parse(db.A(e)||`{}`));return db.N(e,n),n}catch{}return null},N(e,n,r,i,a,o){try{db.N(e,n,void 0,void 0,o);var s={};t.forEach((e=>{n[e]&&(s[e]=n[e])})),Object.keys(s).length&&lb.N(e,s,r,i,a,o)}catch(e){db.D(e)}},q(e,t){try{W?.localStorage.removeItem(e),lb.q(e,t)}catch(e){db.D(e)}}})}(e.cookie_persisted_properties||[]),n=e.persistence.toLowerCase();return n===`localstorage`&&db.R()?db:n===`localstorage+cookie`&&t.R()?t:n===`sessionstorage`&&gb.R()?gb:n===`memory`?mb:n===`cookie`?lb:t.R()?t:lb}wr(e){var t=e??this.qt.feature_flag_cache_ttl_ms;if(!t||0>=t)return!1;var n=this.props[vy];return!n||typeof n!=`number`||Date.now()-n>t}properties(){var e={};return Wy(this.props,((t,n)=>{var r=(e=>{var t=Db[e];if(t)return t;for(var[n,r]of Ob)if(e.indexOf(n)===0)return r})(n);if(r?.exposure===`derived`){if(r.shouldSkipFromEventProperties!=null&&r.shouldSkipFromEventProperties(t,n===ny?()=>this.wr():()=>!1))return;r.transformToEventProperties&&Gy(e,r.transformToEventProperties(t))}else r&&r.exposure!==`event`||(e[n]=t)})),e}load(){if(!this._r){var e=this.nr.F(this.yr);e&&(this.props=Gy({},e))}}save(){this._r||this.nr.N(this.yr,this.props,this.Sr,this.kr,this.Cr,this.qt.debug)}remove(){this.nr.q(this.yr,!1),this.nr.q(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(e,t,n){if(Ng(e)){J(t)&&(t=`None`),this.Sr=J(n)?this.Ir:n;var r=!1;if(Wy(e,((e,n)=>{this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.Tr(n,e),r=!0)})),r)return this.save(),!0}return!1}register(e,t){if(Ng(e)){this.Sr=J(t)?this.Ir:t;var n=!1;if(Wy(e,((t,r)=>{e.hasOwnProperty(r)&&this.props[r]!==t&&(this.Tr(r,t),n=!0)})),n)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Er(e),this.save())}update_campaign_params(){if(!this.mr){var e=Rb(this.qt.custom_campaign_params,this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties);Pg(Yy(e))||this.register(e),this.mr=!0}}update_search_keyword(){var e;this.register((e=G?.referrer)?Bb(e):{})}update_referrer_info(){this.register_once({$referrer:Ub(),$referring_domain:G!=null&&G.referrer&&kb(G.referrer)?.host||Hb},void 0)}set_initial_person_info(){this.props[Sy]||this.props[Cy]||this.register_once({[wy]:Wb(this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};Wy([Cy,Sy],(t=>{var n=this.props[t];n&&Wy(n,(function(t,n){e[`$initial_`+Dg(n)]=t}))}));var t,n,r=this.props[wy];return r&&Gy(e,(t=Gb(r),n={},Wy(t,(function(e,t){n[`$initial_`+Dg(t)]=e})),n)),e}
20safe_merge(e){return Wy(this.props,(function(t,n){n in e||(e[n]=t)})),e}update_config(e,t,n){if(this.Ir=this.Sr=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!n),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence||!((e,t)=>{if(e.length!==t.length)return!1;var n=[...e].sort(),r=[...t].sort();return n.every(((e,t)=>e===r[t]))})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[])){var r=this.br(e),i=this.props;this.clear(),this.nr=r,this.props=i,this.save()}}set_disabled(e){this._r=e,this._r?this.remove():this.save()}set_cross_subdomain(e){e!==this.kr&&(this.kr=e,this.remove(),this.save())}set_secure(e){e!==this.Cr&&(this.Cr=e,this.remove(),this.save())}set_event_timer(e,t){var n=this.props[zv]||{};n[e]=t,this.Tr(zv,n),this.save()}remove_event_timer(e){var t=this.props[zv]||{},n=t[e];return J(n)||(delete t[e],this.Tr(zv,t),this.save()),n}get_property(e){return this.props[e]}set_property(e,t){this.Tr(e,t),this.save()}Tr(e,t){this.props[e]=t}Er(e){delete this.props[e]}},Xb={Activation:`events`,Cancellation:`cancelEvents`},Zb={Popover:`popover`,API:`api`,Widget:`widget`,ExternalSurvey:`external_survey`},Qb={SHOWN:`survey shown`,DISMISSED:`survey dismissed`,SENT:`survey sent`,ABANDONED:`survey abandoned`},$b={SURVEY_ID:`$survey_id`,SURVEY_NAME:`$survey_name`,SURVEY_RESPONSE:`$survey_response`,SURVEY_ITERATION:`$survey_iteration`,SURVEY_ITERATION_START_DATE:`$survey_iteration_start_date`,SURVEY_PARTIALLY_COMPLETED:`$survey_partially_completed`,SURVEY_SUBMISSION_ID:`$survey_submission_id`,SURVEY_QUESTIONS:`$survey_questions`,SURVEY_COMPLETED:`$survey_completed`,PRODUCT_TOUR_ID:`$product_tour_id`,SURVEY_LAST_SEEN_DATE:`$survey_last_seen_date`,SURVEY_LANGUAGE:`$survey_language`},ex={Popover:`popover`,Inline:`inline`},tx={SHOWN:`product tour shown`,DISMISSED:`product tour dismissed`,COMPLETED:`product tour completed`,STEP_SHOWN:`product tour step shown`,STEP_COMPLETED:`product tour step completed`,BUTTON_CLICKED:`product tour button clicked`,STEP_SELECTOR_FAILED:`product tour step selector failed`,BANNER_CONTAINER_SELECTOR_FAILED:`product tour banner container selector failed`,BANNER_ACTION_CLICKED:`product tour banner action clicked`},nx={TOUR_ID:`$product_tour_id`,TOUR_NAME:`$product_tour_name`,TOUR_ITERATION:`$product_tour_iteration`,TOUR_RENDER_REASON:`$product_tour_render_reason`,TOUR_STEP_ID:`$product_tour_step_id`,TOUR_STEP_ORDER:`$product_tour_step_order`,TOUR_STEP_TYPE:`$product_tour_step_type`,TOUR_DISMISS_REASON:`$product_tour_dismiss_reason`,TOUR_BUTTON_TEXT:`$product_tour_button_text`,TOUR_BUTTON_ACTION:`$product_tour_button_action`,TOUR_BUTTON_LINK:`$product_tour_button_link`,TOUR_BUTTON_TOUR_ID:`$product_tour_button_tour_id`,TOUR_STEPS_COUNT:`$product_tour_steps_count`,TOUR_STEP_SELECTOR:`$product_tour_step_selector`,TOUR_STEP_SELECTOR_FOUND:`$product_tour_step_selector_found`,TOUR_STEP_ELEMENT_TAG:`$product_tour_step_element_tag`,TOUR_STEP_ELEMENT_ID:`$product_tour_step_element_id`,TOUR_STEP_ELEMENT_CLASSES:`$product_tour_step_element_classes`,TOUR_STEP_ELEMENT_TEXT:`$product_tour_step_element_text`,TOUR_ERROR:`$product_tour_error`,TOUR_MATCHES_COUNT:`$product_tour_matches_count`,TOUR_FAILURE_PHASE:`$product_tour_failure_phase`,TOUR_WAITED_FOR_ELEMENT:`$product_tour_waited_for_element`,TOUR_WAIT_DURATION_MS:`$product_tour_wait_duration_ms`,TOUR_BANNER_SELECTOR:`$product_tour_banner_selector`,TOUR_LINKED_SURVEY_ID:`$product_tour_linked_survey_id`,USE_MANUAL_SELECTOR:`$use_manual_selector`,INFERENCE_DATA_PRESENT:`$inference_data_present`,TOUR_LAST_SEEN_DATE:`$product_tour_last_seen_date`,TOUR_TYPE:`$product_tour_type`},rx=Nv(`[RateLimiter]`),ix=class{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach((e=>{rx.info((e||`events`)+` is quota limited.`),this.serverLimits[e]=new Date().getTime()+6e4}))}catch(e){rx.warn(`could not rate limit - continuing. Error: "`+e?.message+`"`,{text:t});return}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){return this.instance.config.rate_limiting?.events_per_second||10}get captureEventsBurstLimit(){return Math.max(this.instance.config.rate_limiting?.events_burst_limit||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var t;e===void 0&&(e=!1);var{captureEventsBurstLimit:n,captureEventsPerSecond:r}=this,i=new Date().getTime(),a=this.instance.persistence?.get_property(xy)??{tokens:n,last:i};a.tokens+=(i-a.last)/1e3*r,a.last=i,a.tokens>n&&(a.tokens=n);var o=1>a.tokens;return o||e||(a.tokens=Math.max(0,a.tokens-1)),!o||this.lastEventRateLimited||e||this.instance.capture(`$$client_ingestion_warning`,{$$client_ingestion_warning_message:`posthog-js client rate limited. Config is set to `+r+` events per second and `+n+` events burst limit.`},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=o,(t=this.instance.persistence)==null||t.set_property(xy,a),{isRateLimited:o,remainingTokens:a.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||`events`]||!1;return!1!==t&&new Date().getTime()<t}},ax=Nv(`[RemoteConfig]`),ox=class{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=K._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Mr(e){var t,n;(t=K.__PosthogExtensions__)!=null&&t.loadExternalDependency?(n=K.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,`remote-config`,(()=>e(this.remoteConfig))):e()}Pr(e){this._instance._send_request({method:`GET`,url:this._instance.requestRouter.endpointFor(`assets`,`/array/`+this._instance.config.token+`/config`),callback(t){e(t.json)}})}load(){try{if(this.remoteConfig)return ax.info(`Using preloaded remote config`,this.remoteConfig),this.Rr(this.remoteConfig),void this.Or();if(this._instance.Lr())return void ax.warn(`Remote config is disabled. Falling back to local config.`);this.Mr((e=>{if(!e)return ax.info(`No config found after loading remote JS config. Falling back to JSON.`),void this.Pr((e=>{this.Rr(e),this.Or()}));this.Rr(e),this.Or()}))}catch(e){ax.error(`Error loading remote config`,e)}}stop(){this.Fr&&=(clearInterval(this.Fr),void 0)}refresh(){!this._instance.Lr()&&G&&G.visibilityState!==`hidden`&&this._instance.reloadFeatureFlags()}Or(){if(!this.Fr){var e=this._instance.config.remote_config_refresh_interval_ms??3e5;e!==0&&(this.Fr=setInterval((()=>{this.refresh()}),e))}}Rr(e){var t;e||ax.error(`Failed to fetch remote config from PostHog.`),this._instance.Rr(e??{}),!1!==e?.hasFeatureFlags&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(t=this._instance.featureFlags)==null||t.ensureFlagsLoaded())}},sx={GZipJS:`gzip-js`,Base64:`base64`},cx=Uint8Array,lx=Uint16Array,ux=Uint32Array,dx=new cx([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]),fx=new cx([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]),px=new cx([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),mx=function(e,t){for(var n=new lx(31),r=0;31>r;++r)n[r]=t+=1<<e[r-1];var i=new ux(n[30]);for(r=1;30>r;++r)for(var a=n[r];n[r+1]>a;++a)i[a]=a-n[r]<<5|r;return[n,i]},hx=mx(dx,2),gx=hx[1];hx[0][28]=258,gx[258]=28;for(var _x=mx(fx,0)[1],vx=new lx(32768),yx=0;32768>yx;++yx){var bx=(43690&yx)>>>1|(21845&yx)<<1;vx[yx]=((65280&(bx=(61680&(bx=(52428&bx)>>>2|(13107&bx)<<2))>>>4|(3855&bx)<<4))>>>8|(255&bx)<<8)>>>1}var xx=function(e,t,n){for(var r=e.length,i=0,a=new lx(t);r>i;++i)++a[e[i]-1];var o,s=new lx(t);for(i=0;t>i;++i)s[i]=s[i-1]+a[i-1]<<1;if(n){o=new lx(1<<t);var c=15-t;for(i=0;r>i;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=s[e[i]-1]++<<u,f=d|(1<<u)-1;f>=d;++d)o[vx[d]>>>c]=l}else for(o=new lx(r),i=0;r>i;++i)o[i]=vx[s[e[i]-1]++]>>>15-e[i];return o},Sx=new cx(288);for(yx=0;144>yx;++yx)Sx[yx]=8;for(yx=144;256>yx;++yx)Sx[yx]=9;for(yx=256;280>yx;++yx)Sx[yx]=7;for(yx=280;288>yx;++yx)Sx[yx]=8;var Cx=new cx(32);for(yx=0;32>yx;++yx)Cx[yx]=5;var wx=xx(Sx,9,0),Tx=xx(Cx,5,0),Ex=function(e){return(e/8>>0)+(7&e&&1)},Dx=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof lx?lx:e instanceof ux?ux:cx)(n-t);return r.set(e.subarray(t,n)),r},Ox=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8},kx=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Ax=function(e,t){for(var n=[],r=0;e.length>r;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,a=n.slice();if(!i)return[new cx(0),0];if(i==1){var o=new cx(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var s=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=i-1;)s=n[n[d].f>n[l].f?l++:d++],c=n[l!=u&&n[d].f>n[l].f?l++:d++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c};var f=a[0].s;for(r=1;i>r;++r)a[r].s>f&&(f=a[r].s);var p=new lx(f+1),m=jx(n[u-1],p,0);if(m>t){r=0;var h=0,g=m-t,_=1<<g;for(a.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i>r;++r){var v=a[r].s;if(t>=p[v])break;h+=_-(1<<m-p[v]),p[v]=t}for(h>>>=g;h>0;){var y=a[r].s;t>p[y]?h-=1<<t-p[y]++-1:++r}for(;r>=0&&h;--r){var b=a[r].s;p[b]==t&&(--p[b],++h)}m=t}return[new cx(p),m]},jx=function(e,t,n){return e.s==-1?Math.max(jx(e.l,t,n+1),jx(e.r,t,n+1)):t[e.s]=n},Mx=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new lx(++t),r=0,i=e[0],a=1,o=function(e){n[r++]=e},s=1;t>=s;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>
202&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},Nx=function(e,t){for(var n=0,r=0;t.length>r;++r)n+=e[r]*t[r];return n},Px=function(e,t,n){var r=n.length,i=Ex(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;r>a;++a)e[i+a+4]=n[a];return 8*(i+4+r)},Fx=function(e,t,n,r,i,a,o,s,c,l,u){Ox(t,u++,n),++i[256];for(var d=Ax(i,15),f=d[0],p=d[1],m=Ax(a,15),h=m[0],g=m[1],_=Mx(f),v=_[0],y=_[1],b=Mx(h),x=b[0],S=b[1],C=new lx(19),w=0;v.length>w;++w)C[31&v[w]]++;for(w=0;x.length>w;++w)C[31&x[w]]++;for(var E=Ax(C,7),D=E[0],ee=E[1],O=19;O>4&&!D[px[O-1]];--O);var te,k,ne,A,j=l+5<<3,re=Nx(i,Sx)+Nx(a,Cx)+o,ie=Nx(i,f)+Nx(a,h)+o+14+3*O+Nx(C,D)+(2*C[16]+3*C[17]+7*C[18]);if(re>=j&&ie>=j)return Px(t,u,e.subarray(c,c+l));if(Ox(t,u,1+(re>ie)),u+=2,re>ie){te=xx(f,p,0),k=f,ne=xx(h,g,0),A=h;var M=xx(D,ee,0);for(Ox(t,u,y-257),Ox(t,u+5,S-1),Ox(t,u+10,O-4),u+=14,w=0;O>w;++w)Ox(t,u+3*w,D[px[w]]);u+=3*O;for(var N=[v,x],ae=0;2>ae;++ae){var oe=N[ae];for(w=0;oe.length>w;++w)Ox(t,u,M[se=31&oe[w]]),u+=D[se],se>15&&(Ox(t,u,oe[w]>>>5&127),u+=oe[w]>>>12)}}else te=wx,k=Sx,ne=Tx,A=Cx;for(w=0;s>w;++w)if(r[w]>255){var se;kx(t,u,te[257+(se=r[w]>>>18&31)]),u+=k[se+257],se>7&&(Ox(t,u,r[w]>>>23&31),u+=dx[se]);var P=31&r[w];kx(t,u,ne[P]),u+=A[P],P>3&&(kx(t,u,r[w]>>>5&8191),u+=fx[P])}else kx(t,u,te[r[w]]),u+=k[r[w]];return kx(t,u,te[256]),u+k[256]},Ix=new ux([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Lx=function(){for(var e=new ux(256),t=0;256>t;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),Rx=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function zx(e,t){t===void 0&&(t={});var n=function(){var e=4294967295;return{p(t){for(var n=e,r=0;t.length>r;++r)n=Lx[255&n^t[r]]^n>>>8;e=n},d(){return 4294967295^e}}}(),r=e.length;n.p(e);var i,a,o,s,c,l=(s=10+((i=t).filename&&i.filename.length+1||0),c=8,function(e,t,n,r,i,a){var o=e.length,s=new cx(r+o+5*(1+Math.floor(o/7e3))+i),c=s.subarray(r,s.length-i),l=0;if(!t||8>o)for(var u=0;o>=u;u+=65535){var d=u+65535;o>d?l=Px(c,l,e.subarray(u,d)):(c[u]=!0,l=Px(c,l,e.subarray(u,o)))}else{for(var f=Ix[t-1],p=f>>>13,m=8191&f,h=(1<<n)-1,g=new lx(32768),_=new lx(h+1),v=Math.ceil(n/3),y=2*v,b=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<y)&h},x=new ux(25e3),S=new lx(288),C=new lx(32),w=0,E=0,D=(u=0,0),ee=0,O=0;o>u;++u){var te=b(u),k=32767&u,ne=_[te];if(g[k]=ne,_[te]=k,u>=ee){var A=o-u;if((w>7e3||D>24576)&&A>423){l=Fx(e,c,0,x,S,C,E,D,O,u-O,l),D=w=E=0,O=u;for(var j=0;286>j;++j)S[j]=0;for(j=0;30>j;++j)C[j]=0}var re=2,ie=0,M=m,N=k-ne&32767;if(A>2&&te==b(u-N))for(var ae=Math.min(p,A)-1,oe=Math.min(32767,u),se=Math.min(258,A);oe>=N&&--M&&k!=ne;){if(e[u+re]==e[u+re-N]){for(var P=0;se>P&&e[u+P]==e[u+P-N];++P);if(P>re){if(re=P,ie=N,P>ae)break;var F=Math.min(N,P-2),ce=0;for(j=0;F>j;++j){var le=u-N+j+32768&32767,ue=le-g[le]+32768&32767;ue>ce&&(ce=ue,ne=le)}}}N+=(k=ne)-(ne=g[k])+32768&32767}if(ie){x[D++]=268435456|gx[re]<<18|_x[ie];var de=31&gx[re],fe=31&_x[ie];E+=dx[de]+fx[fe],++S[257+de],++C[fe],ee=u+re,++w}else x[D++]=e[u],++S[e[u]]}}l=Fx(e,c,!0,x,S,C,E,D,O,u-O,l)}return Dx(s,0,r+Ex(l)+i)}(a=e,(o=t).level==null?6:o.level,o.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+o.mem,s,c)),u=l.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=2>t.level?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&Rx(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;n.length>=r;++r)e[r+10]=n.charCodeAt(r)}}(l,t),Rx(l,u-8,n.d()),Rx(l,u-4,r),l}var Bx=!!ag||!!ig,Vx=`text/plain`,Hx=!1,Ux=(e,t)=>{var[n,r]=e.split(`#`),[i,a]=n.split(`?`);if(!a)return e;var o=a.split(`&`).filter((e=>e.split(`=`)[0]!==t)).join(`&`);return i+(o?`?`+o:``)+(r?`#`+r:``)},Wx=function(e,t,n){n===void 0&&(n=!0);var[r,i]=e.split(`?`),a=q({},t),o=i?.split(`&`).map((e=>{var t,[r,i]=e.split(`=`),o=n&&(t=a[r])!=null?t:i;return delete a[r],r+`=`+o}))??[],s=function(e,t){var n,r;t===void 0&&(t=`&`);var i=[];return Wy(e,(function(e,t){J(e)||J(t)||t===`undefined`||(n=encodeURIComponent((e=>e instanceof File)(e)?e.name:e.toString()),r=encodeURIComponent(t),i[i.length]=r+`=`+n)})),i.join(t)}(a);return s&&o.push(s),r+`?`+o.join(`&`)},Gx=(e,t)=>JSON.stringify(e,((e,t)=>
20typeof t==`bigint`?t.toString():t),t),Kx=e=>{if(e.tr)return e.tr;var{data:t,compression:n}=e;if(t){if(n===sx.GZipJS){var r=zx(function(e,t){var n=e.length;if(typeof TextEncoder<`u`)return new TextEncoder().encode(e);for(var r=new cx(e.length+(e.length>>>1)),i=0,a=function(e){r[i++]=e},o=0;n>o;++o){if(i+5>r.length){var s=new cx(i+8+(n-o<<1));s.set(r),r=s}var c=e.charCodeAt(o);128>c?a(c):2048>c?(a(192|c>>>6),a(128|63&c)):c>55295&&57344>c?(a(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++o))>>>18),a(128|c>>>12&63),a(128|c>>>6&63),a(128|63&c)):(a(224|c>>>12),a(128|c>>>6&63),a(128|63&c))}return Dx(r,0,i)}(Gx(t)),{mtime:0});return{contentType:Vx,body:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),estimatedSize:r.byteLength}}if(n===sx.Base64){var i=(e=>`data=`+encodeURIComponent(typeof e==`string`?e:Gx(e)))(function(e){return e&&btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,((e,t)=>String.fromCharCode(parseInt(t,16)))))}(Gx(t)));return{contentType:`application/x-www-form-urlencoded`,body:i,estimatedSize:new Blob([i]).size}}var a=Gx(t);return{contentType:`application/json`,body:a,estimatedSize:new Blob([a]).size}}},qx=e=>{var t,n,r,i=Kx(e);return!i||(n=e.compression,r=Ab(e.url,`compression`),n!==hg.GZipJS&&r!==hg.GZipJS&&r!==`gzip`)||((t=i.body)instanceof ArrayBuffer?vg(new Uint8Array(t)):ArrayBuffer.isView(t)&&vg(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)))?{url:e.url,encodedBody:i}:(Hx=!0,{url:Ux(e.url,`compression`),encodedBody:Kx(q({},e,{compression:void 0,tr:void 0}))})},Jx=function(){var e=fg((function*(e){var t=yield function(e,t,n){return Sg.apply(this,arguments)}(Gx(e.data),ug.DEBUG,{rethrow:!0});if(!t)return e;var n=yield t.arrayBuffer();return q({},e,{tr:{contentType:Vx,body:n,estimatedSize:n.byteLength}})}));return function(t){return e.apply(this,arguments)}}(),Yx=(e,t)=>Wx(e,{_:new Date().getTime().toString(),ver:ug.JS_SDK_VERSION,compression:t}),Xx=[];ig&&Xx.push({transport:`fetch`,method(e){var{url:t,encodedBody:n}=qx(e),{contentType:r,body:i,estimatedSize:a}=n??{},o=new Headers;Wy(e.headers,(function(e,t){o.append(t,e)})),r&&o.append(`Content-Type`,r);var s=null;if(og){var c=new og;s={signal:c.signal,timeout:setTimeout((()=>c.abort()),e.timeout)}}ig(t,q({method:e?.method||`GET`,headers:o,keepalive:e.method===`POST`&&52428.8>(a||0),body:i,signal:s?.signal},e.fetchOptions)).then((t=>t.text().then((n=>{var r={statusCode:t.status,text:n};if(t.status===200)try{r.json=JSON.parse(n)}catch(e){Y.error(e)}e.callback==null||e.callback(r)})))).catch((t=>{Y.error(t),e.callback==null||e.callback({statusCode:0,error:t})})).finally((()=>s?clearTimeout(s.timeout):null))}}),ag&&Xx.push({transport:`XHR`,method(e){var t=new ag,{url:n,encodedBody:r}=qx(e);t.open(e.method||`GET`,n,!0);var{contentType:i,body:a}=r??{};Wy(e.headers,(function(e,n){t.setRequestHeader(n,e)})),i&&t.setRequestHeader(`Content-Type`,i),e.timeout&&(t.timeout=e.timeout),e.disableXHRCredentials||(t.withCredentials=!0),t.onreadystatechange=()=>{if(t.readyState===4){var n={statusCode:t.status,text:t.responseText};if(t.status===200)try{n.json=JSON.parse(t.responseText)}catch{}e.callback==null||e.callback(n)}},t.send(a)}}),ng!=null&&ng.sendBeacon&&Xx.push({transport:`sendBeacon`,method(e){try{var{url:t,encodedBody:n}=qx(e),r=Wx(t,{beacon:`1`}),{contentType:i,body:a}=n??{};if(!a)return;var o=a instanceof Blob?a:new Blob([a],{type:i});ng.sendBeacon(r,o)}catch{}}});var Zx=3e3,Qx=class{constructor(e,t){this.Ar=!0,this.Nr=[],this.$r=Xg(t?.flush_interval_ms||Zx,250,5e3,Y.createLogger(`flush interval`),Zx),this.Dr=e}enqueue(e){this.Nr.push(e),this.qr||this.jr()}unload(){this.Hr();var e=this.Nr.length>0?this.Ur():{},t=Object.values(e);[...t.filter((e=>e.url.indexOf(`/e`)===0)),...t.filter((e=>e.url.indexOf(`/e`)!==0))].map((e=>{this.Dr(q({},e,{transport:`sendBeacon`}))}))}enable(){this.Ar=!1,this.jr()}jr(){var e=this;this.Ar||(this.qr=setTimeout((()=>{if(this.Hr(),this.Nr.length>0){var t=this.Ur(),n=function(){var n=t[r],i=new Date().getTime();n.data&&jg(n.data)&&Wy(n.data,(e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp}
20)),e.Dr(n)};for(var r in t)n()}}),this.$r))}Hr(){clearTimeout(this.qr),this.qr=void 0}Ur(){var e={};return Wy(this.Nr,(t=>{var n,r=t,i=(r?r.batchKey:null)||r.url;J(e[i])&&(e[i]=q({},r,{data:[]})),(n=e[i].data)==null||n.push(r.data)})),this.Nr=[],e}},$x=[`retriesPerformedSoFar`],eS=class{constructor(e){this.Br=!1,this.zr=3e3,this.Nr=[],this._instance=e,this.Nr=[],this.Vr=!0,!J(W)&&`onLine`in W.navigator&&(this.Vr=W.navigator.onLine,this.Wr=()=>{this.Vr=!0,this.Zr()},this.Gr=()=>{this.Vr=!1},Qy(W,`online`,this.Wr),Qy(W,`offline`,this.Gr))}get length(){return this.Nr.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,n=pg(e,$x);Bg(t)&&(n.url=Wx(n.url,{retry_count:t})),this._instance._send_request(q({},n,{callback:e=>{e.statusCode===200||e.statusCode>=400&&500>e.statusCode||(t??0)>=10?n.callback==null||n.callback(e):this.Qr(q({retriesPerformedSoFar:t},n))}}))}Qr(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var n=function(e){var t=3e3*2**e,n=t/2,r=Math.min(18e5,t),i=Math.random()-.5;return Math.ceil(r+i*(r-n))}(t),r=Date.now()+n;this.Nr.push({retryAt:r,requestOptions:e});var i=`Enqueued failed request for retry in `+n;navigator.onLine||(i+=` (Browser is offline)`),Y.warn(i),this.Br||(this.Br=!0,this.Jr())}Jr(){if(this.Kr&&clearTimeout(this.Kr),this.Nr.length===0)return this.Br=!1,void(this.Kr=void 0);this.Kr=setTimeout((()=>{this.Vr&&this.Nr.length>0&&this.Zr(),this.Jr()}),this.zr)}Zr(){var e=Date.now(),t=[],n=this.Nr.filter((n=>e>n.retryAt||(t.push(n),!1)));if(this.Nr=t,n.length>0)for(var{requestOptions:r}of n)this.retriableRequest(r)}unload(){for(var{requestOptions:e}of(this.Kr&&=(clearTimeout(this.Kr),void 0),this.Br=!1,J(W)||(this.Wr&&=(W.removeEventListener(`online`,this.Wr),void 0),this.Gr&&=(W.removeEventListener(`offline`,this.Gr),void 0)),this.Nr))try{this._instance._send_request(q({},e,{transport:`sendBeacon`}))}catch(e){Y.error(e)}this.Nr=[]}},tS=class{constructor(e){this.Yr=()=>{this.Xr||={};var e=this.scrollElement(),t=this.scrollY(),n=e?Math.max(0,e.scrollHeight-e.clientHeight):0,r=t+(e?.clientHeight||0),i=e?.scrollHeight||0;this.Xr.lastScrollY=Math.ceil(t),this.Xr.maxScrollY=Math.max(t,this.Xr.maxScrollY??0),this.Xr.maxScrollHeight=Math.max(n,this.Xr.maxScrollHeight??0),this.Xr.lastContentY=r,this.Xr.maxContentY=Math.max(r,this.Xr.maxContentY??0),this.Xr.maxContentHeight=Math.max(i,this.Xr.maxContentHeight??0)},this._instance=e}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Xr}resetContext(){var e=this.Xr;return setTimeout(this.Yr,0),e}startMeasuringScrollPosition(){Qy(W,`scroll`,this.Yr,{capture:!0}),Qy(W,`scrollend`,this.Yr,{capture:!0}),Qy(W,`resize`,this.Yr)}scrollElement(){if(!this.ei)return W?.document.documentElement;for(var e of jg(this.ei)?this.ei:[this.ei]){var t=W?.document.querySelector(e);if(t)return t}}scrollY(){if(this.ei){var e=this.scrollElement();return e&&e.scrollTop||0}return W&&(W.scrollY||W.pageYOffset||W.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var e=this.scrollElement();return e&&e.scrollLeft||0}return W&&(W.scrollX||W.pageXOffset||W.document.documentElement.scrollLeft)||0}},nS=e=>Wb(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties),rS=class{constructor(e,t,n,r){this.ti=e=>{var t=this.ri();if(!t||t.sessionId!==e){var n={sessionId:e,props:this.ii(this._instance)};this.ni.register({[by]:n})}},this._instance=e,this.si=t,this.ni=n,this.ii=r||nS,this.si.onSessionId(this.ti)}ri(){return this.ni.props[by]}getSetOnceProps(){var e=this.ri()?.props;return e?`r`in e?Gb(e):{$referring_domain:e.referringDomain,$pathname:e.initialPathName,utm_source:e.utm_source,utm_campaign:e.utm_campaign,utm_medium:e.utm_medium,utm_content:e.utm_content,utm_term:e.utm_term}:{}}getSessionProps(){var e={};return Wy(Yy(this.getSetOnceProps()),((t,n)=>{n===`$current_url`&&(n=`url`),e[`$session_entry_`+Dg(n)]=t})),e}},iS=class{constructor(){this.oi={}}on(e,t){return this.oi[e]||(this.oi[e]=[]),this.oi[e].push(t),()=>{this.oi[e]=this.oi[e].filter((e=>e!==t))}}emit(e,t){for(var n of this.oi[e]||[])n(t);for(var r of this.oi[`*`]||[])r(e,t)}},aS=Nv(`[SessionId]`),oS=class{on(e,t){return this.ai.on(e,t)}constructor(e,t,n){var r;if(this.ui=[],this.li=void 0,this.ai=new iS,this.hi=(e,t)=>!(!Bg(e)||!Bg(t))&&Math.abs(e-t)>
20this.sessionTimeoutMs,!e.persistence)throw Error(`SessionIdManager requires a PostHogPersistence instance`);if(e.config.cookieless_mode===Ny)throw Error(`SessionIdManager cannot be used with cookieless_mode="always"`);this.qt=e.config,this.ni=e.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=t||ab,this.fi=n||ab;var i=this.qt.persistence_name||this.qt.token;if(this._sessionTimeoutMs=1e3*Xg(this.qt.session_idle_timeout_seconds||1800,60,36e3,aS.createLogger(`session_idle_timeout_seconds`),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi=`ph_`+i+`_window_id`,this.mi=`ph_`+i+`_primary_window_exists`,this.yi()){var a=gb.F(this.gi),o=gb.F(this.mi);a&&!o?this.ci=a:gb.q(this.gi),gb.N(this.mi,!0)}if((r=this.qt.bootstrap)!=null&&r.sessionID)try{var s=(e=>{var t=this.qt.bootstrap.sessionID.replace(/-/g,``);if(t.length!==32)throw Error(`Not a valid UUID`);if(t[12]!==`7`)throw Error(`Not a UUIDv7`);return parseInt(t.substring(0,12),16)})();this.bi(this.qt.bootstrap.sessionID,new Date().getTime(),s)}catch(e){aS.error(`Invalid sessionID in bootstrap`,e)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return J(this.ui)&&(this.ui=[]),this.ui.push(e),this.di&&e(this.di,this.ci),()=>{this.ui=this.ui.filter((t=>t!==e))}}yi(){return this.qt.persistence!==`memory`&&!this.ni._r&&gb.R()}xi(e){e!==this.ci&&(this.ci=e,this.yi()&&gb.N(this.gi,e))}Si(){return this.ci?this.ci:this.yi()?gb.F(this.gi):null}bi(e,t,n){e===this.di&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this.di=e,this.ni.register({[ey]:[t,e,n]}))}ki(){var e=this.ni.props[ey];return jg(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.Ci),this.Ci=void 0,this.li&&W&&(W.removeEventListener(Ry,this.li,{capture:!1}),this.li=void 0),this.ui=[]}wi(){this.li=()=>{this.yi()&&gb.q(this.mi)},Qy(W,Ry,this.li,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(e===void 0&&(e=!1),t===void 0&&(t=null),this.qt.cookieless_mode===Ny)throw Error(`checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"`);var n=t||new Date().getTime(),[r,i,a]=this.ki(),o=this.Si(),s=Bg(a)&&Math.abs(n-a)>864e5,c=!1,l=!i,u=!l&&!e&&this.hi(n,r);l||u||s?(i=this.vi(),o=this.fi(),aS.info(`new session ID generated`,{sessionId:i,windowId:o,changeReason:{noSessionId:l,activityTimeout:u,sessionPastMaximumLength:s}}),a=n,c=!0):o||(o=this.fi(),c=!0);var d=Bg(r)&&e&&!s?r:n,f=Bg(a)?a:new Date().getTime();return this.xi(o),this.bi(i,d,f),e||this.pi(),c&&this.ui.forEach((e=>e(i,o,c?{noSessionId:l,activityTimeout:u,sessionPastMaximumLength:s}:void 0))),{sessionId:i,windowId:o,sessionStartTimestamp:f,changeReason:c?{noSessionId:l,activityTimeout:u,sessionPastMaximumLength:s}:void 0,lastActivityTimestamp:r}}pi(){clearTimeout(this.Ci),this.Ci=setTimeout((()=>{var[e]=this.ki();if(this.hi(new Date().getTime(),e)){var t=this.di;this.resetSessionId(),this.ai.emit(`forcedIdleReset`,{idleSessionId:t})}}),1.1*this.sessionTimeoutMs)}},sS=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&wg(n,t))return!0;try{var r=e?.userAgentData;if(r!=null&&r.brands&&r.brands.some((e=>wg(e?.brand,t))))return!0}catch{}return!!e.webdriver},cS=function(e,t){if(!function(e){try{new RegExp(e)}catch{return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function lS(e,t,n){return Gx({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var uS={exact:(e,t)=>t.some((t=>e.some((e=>t===e)))),is_not:(e,t)=>t.every((t=>e.every((e=>t!==e)))),regex:(e,t)=>t.some((t=>e.some((e=>cS(t,e))))),not_regex:(e,t)=>t.every((t=>e.every((e=>!cS(t,e))))),icontains:(e,t)=>t.map(dS).some((t=>e.map(dS).some((e=>t.includes(e))))),not_icontains:(e,t)=>t.map(dS).every((t=>e.map(dS).every((e=>!t.includes(e))))),gt:(e,t)=>t.some((t=>{var n=parseFloat(t);return!isNaN(n)&&e.some((e=>n>parseFloat(e)))})),lt:(e,t)=>t.some((t=>{var n=parseFloat(t);return!isNaN(n)&&e.some((e=>n<parseFloat(e)))}))}
20,dS=e=>e.toLowerCase();function fS(e,t){return!e||Object.entries(e).every((e=>{var[n,r]=e,i=t?.[n];if(J(i)||Lg(i))return!1;var a=[String(i)],o=uS[r.operator];return!!o&&o(r.values,a)}))}var pS=`custom`,mS=`i.posthog.com`,hS=/^\/static\//,gS=class{constructor(e){this.Ii={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,``);return e===`https://app.posthog.com`?`https://us.i.posthog.com`:e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,``):this.apiHost}get uiHost(){var e=this.instance.config.ui_host?.replace(/\/$/,``);return e||=this.apiHost.replace(`.`+mS,`.posthog.com`),e===`https://app.posthog.com`?`https://us.posthog.com`:e}get region(){return this.Ii[this.apiHost]||(this.Ii[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?`us`:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?`eu`:pS),this.Ii[this.apiHost]}Ti(e){var t=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof t==`string`&&hS.test(e))return t.trim().replace(/\/$/,``)||void 0}endpointFor(e,t){if(t===void 0&&(t=``),t&&=t[0]===`/`?t:`/`+t,e===`ui`)return this.uiHost+t;if(e===`flags`)return this.flagsApiHost+t;if(e===`assets`){var n=this.Ti(t);if(n)return``+n+t}if(this.region===pS)return this.apiHost+t;var r=mS+t;switch(e){case`assets`:return`https://`+this.region+`-assets.`+r;case`api`:return`https://`+this.region+`.`+r}}},_S=Nv(`[Surveys]`),vS=`seenSurvey_`,yS=[Zb.Popover,Zb.Widget,Zb.API],bS={ignoreConditions:!1,ignoreDelay:!1,displayType:ex.Popover},xS=Nv(`[PostHog ExternalIntegrations]`),SS={intercom:`intercom-integration`,crispChat:`crisp-chat-integration`},CS=class{constructor(e){this._instance=e}lr(e,t){var n;(n=K.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,e,(e=>{if(e)return xS.error(`failed to load script`,e);t()}))}startIfEnabledOrStop(){var e=this,t=function(t){var n,i,a;!r||(n=K.__PosthogExtensions__)!=null&&(n=n.integrations)!=null&&n[t]||e.lr(SS[t],(()=>{var n;(n=K.__PosthogExtensions__)==null||(n=n.integrations)==null||(n=n[t])==null||n.start(e._instance)})),!r&&(i=K.__PosthogExtensions__)!=null&&(i=i.integrations)!=null&&i[t]&&((a=K.__PosthogExtensions__)==null||(a=a.integrations)==null||(a=a[t])==null||a.stop())};for(var[n,r]of Object.entries((i=this._instance.config.integrations)??{})){var i;t(n)}}},wS,TS={},ES=0,DS=()=>{},OS=`Consent opt in/out is not valid with cookieless_mode="always" and will be ignored`,kS=`Surveys module not available`,AS=`sanitize_properties is deprecated. Use before_send instead`,jS=`Invalid value for property_denylist config: `,MS=`posthog`,NS=!Bx&&cg?.indexOf(`MSIE`)===-1&&cg?.indexOf(`Mozilla`)===-1,PS=e=>{var t;return q({api_host:`https://us.i.posthog.com`,flags_api_host:null,ui_host:null,token:``,autocapture:!0,cross_subdomain_cookie:Zy(G?.location),persistence:`localStorage+cookie`,persistence_name:``,cookie_persisted_properties:[],loaded:DS,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:`if_capture_pageview`,defaults:e??`unset`,__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:rg&&Fg(rg?.search)&&rg.search.indexOf(`__posthog_debug=true`)!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(W==null||(t=W.location)==null?void 0:t.protocol)===`https:`,ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:`localStorage`,consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(e){Y.error(`Bad HTTP status: `+e.statusCode+` `+e.text)},get_device_id:e=>e,capture_performance:void 0,name:`posthog`,bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:Iy,before_send:void 0,request_queue_config:{flush_interval_ms:Zx},error_tracking:{},_onCapture:DS,__preview_eager_load_replay:!1},(e=>({rageclick:!e||`2025-11-30`>e||{content_ignorelist:!0},capture_pageview:!e||`2025-05-24`>e||`history_change`,session_recording:e&&e>=`2025-11-30`?{strictMinimumDuration:!0}:{},external_scripts_inject_target:e&&e>=`2026-01-30`?`head`:`body`,internal_or_test_user_hostname:e&&e>=`2026-01-30`?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},FS=[[`process_person`,`person_profiles`],[`xhr_headers`,`request_headers`],[`cookie_name`,`persistence_name`],[`disable_cookie`,`disable_persistence`],[`store_google`,`save_campaign_params`],[`verbose`,`debug`]],IS=e=>{var t={};for(var[n,r]of FS)J(e[n])||(t[r]=e[n]);var i=Gy({},t,e);return jg(e.property_blacklist)&&(J(e.property_denylist)?i.property_denylist=e.property_blacklist:jg(e.property_denylist)?i.property_denylist=[...e.property_blacklist,...e.property_denylist]:Y.error(jS+e.property_denylist)),i},LS=class{constructor(){this.__forceAllowLocalhost=!1}get Ei(){return this.__forceAllowLocalhost}set Ei(e){Y.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}},RS=class e{Mi(e,t){if(e){var n=this.Pi.indexOf(e);n!==-1&&this.Pi.splice(n,1)}return this.Pi.push(t),t.initialize==null||t.initialize(),t}Ri(){return this.config.cookieless_mode===Ny||this.config.cookieless_mode===My&&this.consent.isRejected()}get decideEndpointWasHit(){var e;return(e=this.featureFlags?.hasLoadedFlags)!=null&&e}get flagsEndpointWasHit(){var e;return(e=this.featureFlags?.hasLoadedFlags)!=null&&e}constructor(){this.webPerformance=new LS,this.Oi=!1,this.version=ug.LIB_VERSION,this.Li=new iS,this.Pi=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=PS(),this.SentryIntegration=Tb,this.sentryIntegration=e=>function(e,t){var n=wb(e,t);return{name:Cb,processEvent:e=>n(e)}}(this,e),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint=`/e/`,this.Fi=!1,this.Ai=null,this.Ni=null,this.$i=null,this.scrollManager=new tS(this),this.pageViewM
20anager=new Eb(this),this.rateLimiter=new ix(this),this.requestRouter=new gS(this),this.consent=new _b(this),this.externalIntegrations=new CS(this);var t=e.__defaultExtensionClasses??{};this.featureFlags=t.featureFlags&&new t.featureFlags(this),this.toolbar=t.toolbar&&new t.toolbar(this),this.surveys=t.surveys&&new t.surveys(this),this.conversations=t.conversations&&new t.conversations(this),this.logs=t.logs&&new t.logs(this),this.experiments=t.experiments&&new t.experiments(this),this.exceptions=t.exceptions&&new t.exceptions(this),this.people={set:(e,t,n)=>{var r=Fg(e)?{[e]:t}:e;this.setPersonProperties(r),n?.({})},set_once:(e,t,n)=>{var r=Fg(e)?{[e]:t}:e;this.setPersonProperties(void 0,r),n?.({})}},this.on(`eventCaptured`,(e=>Y.info(`send "`+e?.event+`"`,e)))}init(t,n,r){if(r&&r!==MS){var i=TS[r]??new e;return i._init(t,n,r),TS[r]=i,TS[MS][r]=i,i}return this._init(t,n,r)}_init(e,t,n){var r;if(t===void 0&&(t={}),J(e)||Ig(e))return Y.critical(`PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()`),this;if(this.__loaded)return console.warn(`[PostHog.js]`,`You have already initialized PostHog! Re-initializing is a no-op`),this;this.__loaded=!0,this.config={},t.debug=this.Di(t.debug),this.qi=t,this.ji=[],t.person_profiles?this.Ni=t.person_profiles:t.process_person&&(this.Ni=t.process_person),this.set_config(Gy({},PS(t.defaults),IS(t),{name:n,token:e})),this.config.on_xhr_error&&Y.error(`on_xhr_error is deprecated. Use on_request_error instead`),this.compression=t.disable_compression?void 0:sx.GZipJS;var i=this.Hi();this.persistence=new Yb(this.config,i),this.sessionPersistence=this.config.persistence===`sessionStorage`||this.config.persistence===`memory`?this.persistence:new Yb(q({},this.config,{persistence:`sessionStorage`}),i);var a=q({},this.persistence.props),o=q({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Ui=new Qx((e=>this.Bi(e)),this.config.request_queue_config),this.zi=new eS(this),this.__request_queue=[];var s=this.Ri();if(s||(this.sessionManager=new oS(this),this.sessionPropsManager=new rS(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Y.info(`Deferring extension initialization to improve startup performance`),setTimeout((()=>{this.Vi(s)}),0)):(Y.info(`Initializing extensions synchronously`),this.Vi(s)),ug.DEBUG=ug.DEBUG||this.config.debug,ug.DEBUG&&Y.info(`Starting in debug mode`,{this:this,config:t,thisC:q({},this.config),p:a,s:o}),!this.config.identity_distinct_id||(r=t.bootstrap)!=null&&r.distinctID||(t.bootstrap=q({},t.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),t.bootstrap?.distinctID!==void 0){var c=t.bootstrap.distinctID,l=this.get_distinct_id(),u=this.persistence.get_property(yy);if(t.bootstrap.isIdentifiedID&&l!=null&&l!==c&&u===Py)this.identify(c);else if(t.bootstrap.isIdentifiedID&&l!=null&&l!==c&&u===Fy)Y.warn(`Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.`);else{var d=this.config.get_device_id(ab()),f=t.bootstrap.isIdentifiedID?d:c;this.persistence.set_property(yy,t.bootstrap.isIdentifiedID?Fy:Py),this.register({distinct_id:c,$device_id:f})}}if(s)this.register_once({distinct_id:Dy,$device_id:null},``);else if(!this.get_distinct_id()){var p=this.config.get_device_id(ab());this.register_once({distinct_id:p,$device_id:p},``),this.persistence.set_property(yy,Py)}return Qy(W,`onpagehide`in self?`pagehide`:`unload`,this._handle_unload.bind(this),{passive:!1}),t.segment?function(e,t){var n=e.config.segment;if(!n)return t();(function(e,t){var n=e.config.segment;if(!n)return t();var r=n=>{var r=()=>n.anonymousId()||ab();e.config.get_device_id=r,n.id()&&(e.register({distinct_id:n.id(),$device_id:r()}),e.persistence.set_property(yy,Fy)),t()},i=n.user();`then`in i&&Mg(i.then)?i.then(r):r(i)})(e,(()=>{n.register((e=>{Promise&&Promise.resolve||Sb.warn(`This browser does not have Promise support, and can not use the segment integration`);var t=(t,n)=>{if(!n)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(Sb.info(`No userId set, resetting PostHog`),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(Sb.info(`UserId set, identifying with PostHog`),e.identify(t.event.userId)
20);var r=e.calculateEventProperties(n,t.event.properties);return t.event.properties=Object.assign({},r,t.event.properties),t};return{name:`PostHog JS`,type:`enrichment`,version:`1.0.0`,isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>t(e,e.event.event),page:e=>t(e,zy),identify:e=>t(e,Vy),screen:e=>t(e,`$screen`)}})(e)).then((()=>{t()}))}))}(this,(()=>this.Wi())):this.Wi(),Mg(this.config._onCapture)&&this.config._onCapture!==DS&&(Y.warn("onCapture is deprecated. Please use `before_send` instead"),this.on(`eventCaptured`,(e=>this.config._onCapture(e.event,e)))),this.config.ip&&Y.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}Vi(t){var n=performance.now(),r=q({},e.__defaultExtensionClasses,this.config.__extensionClasses),i=[];r.featureFlags&&this.Pi.push(this.featureFlags=this.featureFlags??new r.featureFlags(this)),r.exceptions&&this.Pi.push(this.exceptions=this.exceptions??new r.exceptions(this)),r.historyAutocapture&&this.Pi.push(this.historyAutocapture=new r.historyAutocapture(this)),r.tracingHeaders&&this.Pi.push(new r.tracingHeaders(this)),r.siteApps&&this.Pi.push(this.siteApps=new r.siteApps(this)),r.sessionRecording&&!t&&this.Pi.push(this.sessionRecording=new r.sessionRecording(this)),this.config.disable_scroll_properties||i.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),r.autocapture&&this.Pi.push(this.autocapture=new r.autocapture(this)),r.surveys&&this.Pi.push(this.surveys=this.surveys??new r.surveys(this)),r.logs&&this.Pi.push(this.logs=this.logs??new r.logs(this)),r.conversations&&this.Pi.push(this.conversations=this.conversations??new r.conversations(this)),r.productTours&&this.Pi.push(this.productTours=new r.productTours(this)),r.heatmaps&&this.Pi.push(this.heatmaps=new r.heatmaps(this)),r.webVitalsAutocapture&&this.Pi.push(this.webVitalsAutocapture=new r.webVitalsAutocapture(this)),r.exceptionObserver&&this.Pi.push(this.exceptionObserver=new r.exceptionObserver(this)),r.deadClicksAutocapture&&this.Pi.push(this.deadClicksAutocapture=new r.deadClicksAutocapture(this,bb)),r.toolbar&&this.Pi.push(this.toolbar=this.toolbar??new r.toolbar(this)),r.experiments&&this.Pi.push(this.experiments=this.experiments??new r.experiments(this)),this.Pi.forEach((e=>{e.initialize&&i.push((()=>{e.initialize==null||e.initialize()}))})),i.push((()=>{if(this.Zi){var e=this.Zi;this.Zi=void 0,this.Rr(e)}})),this.Gi(i,n)}Gi(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout((()=>{this.Gi(e,t)}),0);var n=e.shift();if(n)try{n()}catch(e){Y.error(`Error initializing extension:`,e)}}var r=Math.round(performance.now()-t);this.register_for_session({[Oy]:this.config.__preview_deferred_init_extensions?`deferred`:`synchronous`,[ky]:r}),this.config.__preview_deferred_init_extensions&&Y.info(`PostHog extensions initialized (`+r+`ms)`)}Rr(e){var t;if(!G||!G.body)return Y.info(`document not ready yet, trying again in 500 milliseconds...`),void setTimeout((()=>{this.Rr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.Zi=e),this.Qi=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Tg(e.supportedCompression,sx.GZipJS)?sx.GZipJS:Tg(e.supportedCompression,sx.Base64)?sx.Base64:void 0),(t=e.analytics)!=null&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Ni?this.Ni:Iy}),this.Pi.forEach((t=>t.onRemoteConfig==null?void 0:t.onRemoteConfig(e)))}Wi(){try{this.config.loaded(this)}catch(e){Y.critical("`loaded` function failed",e)}if(this.Ji(),this.config.internal_or_test_user_hostname&&rg!=null&&rg.hostname){var e=rg.hostname,t=this.config.internal_or_test_user_hostname;(typeof t==`string`?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ri())&&this.Ki()}),1),this.Yi=new ox(this),this.Yi.load()}Ji(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Ui)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Uy(this.__request_queue,(e=>this.Bi(e))),this.__request_queue=[],this.Ji()}_handle_unload(){var e,t,n,r;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Xi()&&this.capture(By),(t=this.logs)==null||t.flushLogs(`sendBeacon`),(n=this.Ui)==null||n.unload(),(r=this.zi)==null||r.unload()):this.Xi()&&this.capture(By,null,{transport:`sendBeacon`})}_send_request(e){this.__loaded&&(NS?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=Wx(e.url,{ip:+!!this.config.ip}),e.headers=q({},this.config.request_headers,e.headers),e.compression=e.compression===`best-available`?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=[`sendBeacon`]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,
20(e=>{var t=q({},e);t.timeout=t.timeout||6e4,t.url=Yx(t.url,t.compression);var n=t.transport??`fetch`,r=Xx.filter((e=>!t.disableTransport||!e.transport||!t.disableTransport.includes(e.transport))),i=function(e,t){for(var r=0;e.length>r;r++)if(e[r].transport===n)return e[r]}(r)?.method??r[0].method;if(!i)throw Error(`No available transport method`);n!==`sendBeacon`&&t.data&&t.compression===sx.GZipJS&&sg&&!Hx?Jx(t).then((e=>{i(e)})).catch((n=>{if(yg(n))return Hx=!0,void i(q({},t,{compression:void 0,url:Yx(e.url,void 0)}));(e=>{if(!e||typeof e!=`object`)return!1;var t=`name`in e?String(e.name):``;return yg(e)||t===_g})(n)&&(Hx=!0),i(t)})):i(t)})(q({},e,{callback:t=>{var n,r;this.rateLimiter.checkForLimiting(t),400>t.statusCode||(n=(r=this.config).on_request_error)==null||n.call(r,t),e.callback==null||e.callback(t)}}))))}Bi(e){this.zi?this.zi.retriableRequest(e):this._send_request(e)}_execute_array(e){ES++;try{var t,n=[],r=[],i=[];Uy(e,(e=>{if(e)if(jg(t=e[0]))i.push(e);else if(Mg(e))try{e.call(this)}catch(t){Y.error(`Error executing queued PostHog call`,e,t)}else jg(e)&&t===`alias`?n.push(e):jg(e)&&t.indexOf(`capture`)!==-1&&Mg(this[t])?i.push(e):r.push(e)}));var a=function(e,t){Uy(e,(function(e){try{if(jg(e[0])){var n=t;Wy(e,(function(e){n=n[e[0]].apply(n,e.slice(1))}))}else t[e[0]].apply(t,e.slice(1))}catch(t){Y.error(`Error executing queued PostHog call`,e,t)}}))};a(n,this),a(r,this),a(i,this)}finally{ES--}}push(t){if(ES>0&&jg(t)&&Fg(t[0])){var n=e.prototype[t[0]];Mg(n)&&n.apply(this,t.slice(1))}else this._execute_array([t])}capture(e,t,n){var r,i,a,o;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Ui){if(this.is_capturing())if(!J(e)&&Fg(e)){var s=!this.config.opt_out_useragent_filter&&this._is_bot();if(!s||this.config.__preview_capture_bot_pageviews){var c=n!=null&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(c==null||!c.isRateLimited){t!=null&&t.$current_url&&!Fg(t?.$current_url)&&(Y.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),t==null||delete t.$current_url),e!==`$exception`||n!=null&&n.en||Y.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var l=new Date,u=n?.timestamp||l,d=n?.uuid||ab(),f={uuid:d,event:e,properties:this.calculateEventProperties(e,t||{},u,d)};e===zy&&this.config.__preview_capture_bot_pageviews&&s&&(f.event=`$bot_pageview`,f.properties.$browser_type=`bot`),c&&(f.properties.$lib_rate_limit_remaining_tokens=c.remainingTokens),n!=null&&n.$set&&(f.$set=n?.$set);var p,m,h,g=this.tn(n?.$set_once,e!==Hy,e===Vy);if(g&&(f.$set_once=g),n!=null&&n._noTruncate||(r=this.config.properties_string_max_length,i=f,a=e=>Fg(e)?e.slice(0,r):e,o=new Set,f=function e(t,n){return t===Object(t)?o.has(t)?void 0:(o.add(t),jg(t)?(r=[],Uy(t,(t=>{r.push(e(t))}))):(r={},Wy(t,((t,n)=>{o.has(t)||(r[n]=e(t,n))}))),r):a?a(t):t;var r}(i)),f.timestamp=u,J(n?.timestamp)||(f.properties.$event_time_override_provided=!0,f.properties.$event_time_override_system_time=l),e===Qb.DISMISSED||e===Qb.SENT){var _=t?.[$b.SURVEY_ID],v=t?.[$b.SURVEY_ITERATION];(e=>{try{var t=(e=>((e,t)=>{var n=``+vS+t.id;return t.current_iteration&&t.current_iteration>0&&(n=``+vS+t.id+`_`+t.current_iteration),n})(0,e))(e);if(localStorage.getItem(t))return;localStorage.setItem(t,`true`)}catch(e){_S.error(`Failed to persist survey seen state`,e)}})({id:_,current_iteration:v}),f.$set=q({},f.$set,{[(p={id:_,current_iteration:v},m=e===Qb.SENT?`responded`:`dismissed`,h=`$survey_`+m+`/`+p.id,p.current_iteration&&p.current_iteration>0&&(h=`$survey_`+m+`/`+p.id+`/`+p.current_iteration),h)]:!0})}else e===Qb.SHOWN&&(f.$set=q({},f.$set,{[$b.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===tx.SHOWN){var y=t?.[nx.TOUR_TYPE];y&&(f.$set=q({},f.$set,{[nx.TOUR_LAST_SEEN_DATE+`/`+y]:new Date().toISOString()}))}var b=q({},f.properties.$set,f.$set);if(Pg(b)||this.setPersonPropertiesForFlags(b),!Rg(this.config.before_send)){var x=this.rn(f);if(!x)return;f=x}this.Li.emit(`eventCaptured`,f);var S={method:`POST`,url:n?._url??this.requestRouter.endpointFor(`api`,this.analyticsDefaultEndpoint),data:f,compression:`best-available`,batchKey:n?._batchKey};return!this.config.request_batching||n&&(n==null||!n._batchKey)||n!=null&&n.send_instantly?this.Bi(S):this.Ui.enqueue(S),f}Y.critical(`This capture call is ignored due to client rate limiting.`)}}else Y.error(`No event name provided to posthog.capture`)}else Y.uninitializedWarning(`posthog.capture`)}_addCaptureHook(e){return this.on(`eventCaptured`,(t=>e(t.event,t)))}calculateEventProperties(e,t,n,r,i){if(n||=new Date,!this.persistence||!this.sessionPersistence)return t;var a=i?void 0:this.persistence.remove_event_timer(e),o=q({},t);if(o.token=this.config.token,o.$config_defaults=this.config.defaults,this.Ri()&&(o.$cookieless_mode=!0),e===`$snapshot`){var s=q({},this.persistence.properties(),this.sessionPersistence.properties());return o.distinct_id=s.distinct_id,(!Fg(o.distinct_id)&&!zg(o.distinct_id)||Ig(o.distinct_id))&&Y.error(`Invalid distinct_id for replay event. This indicates a bug in your implementation`),o}var c,l=function(e,t){var n,r,i;if(!cg)return{};var a,o,s,c,l=e?[...Pb,...t||[]]:[],[u,d]=function(e){for(var t=0;J_.length>t;t++){var[n,r]=J_[t],i=n.exec(e),a=i&&(Mg(r)?r(i,e):r);if(a)return a}return[``,``]}(cg);return Gy(Yy({$os:u,$os_version:d,$browser:G_(cg,navigator.vendor),$device:Y_(cg),$device_type:(o=cg,s={userAgentDataPlatform:(n=navigator)==null||(n=n.userAgentData)==null?void 0:n.platform,maxTouchPoints:navigator?.maxTouchPoints,screenWidth:W==null||(r=W.screen)==null?void 0:r.width,screenHeight:W==null||(i=W.screen)==null?void 0:i.height,devicePixelRatio:W?.devicePixelRatio}
20,c=Y_(o),c===o_||c===a_||c===`Kobo`||c===`Kindle Fire`||c===I_?i_:c===T_||c===D_||c===E_||c===N_?`Console`:c===c_?`Wearable`:c?t_:s?.userAgentDataPlatform===`Android`&&(s?.maxTouchPoints??0)>0?600>Math.min(s?.screenWidth??0,s?.screenHeight??0)/(s?.devicePixelRatio??1)?t_:i_:`Desktop`),$timezone:Kb(),$timezone_offset:qb()}),{$current_url:jb(rg?.href,l,Ib),$host:rg?.host,$pathname:rg?.pathname,$raw_user_agent:cg.length>1e3?cg.substring(0,997)+`...`:cg,$browser_version:q_(cg,navigator.vendor),$browser_language:Vb(),$browser_language_prefix:(a=Vb(),typeof a==`string`?a.split(`-`)[0]:void 0),$screen_height:W?.screen.height,$screen_width:W?.screen.width,$viewport_height:W?.innerHeight,$viewport_width:W?.innerWidth,$lib:ug.LIB_NAME,$lib_version:ug.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:u,windowId:d}=this.sessionManager.checkAndGetSessionAndWindowId(i,n.getTime());o.$session_id=u,o.$window_id=d}this.sessionPropsManager&&Gy(o,this.sessionPropsManager.getSessionProps());try{this.sessionRecording&&Gy(o,this.sessionRecording.sdkDebugProperties),o.$sdk_debug_retry_queue_size=this.zi?.length}catch(e){o.$sdk_debug_error_capturing_properties=String(e)}if(this.requestRouter.region===pS&&(o.$lib_custom_api_host=this.config.api_host),c=e!==zy||i?e!==By||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,r),o=Gy(o,c),e===zy&&G&&(o.title=G.title),!J(a)){var f=n.getTime()-a;o.$duration=parseFloat((f/1e3).toFixed(3))}cg&&this.config.opt_out_useragent_filter&&(o.$browser_type=this._is_bot()?`bot`:`browser`),(o=Gy({},l,this.persistence.properties(),this.sessionPersistence.properties(),o)).$is_identified=this._isIdentified(),jg(this.config.property_denylist)?Wy(this.config.property_denylist,(function(e){delete o[e]})):Y.error(jS+this.config.property_denylist+` or property_blacklist config: `+this.config.property_blacklist);var p=this.config.sanitize_properties;p&&(Y.error(AS),o=p(o,e));var m=this.nn();return o.$process_person_profile=m,m&&!i&&this.sn(`_calculate_event_properties`),o}tn(e,t,n){if(t===void 0&&(t=!0),n===void 0&&(n=!1),!this.persistence||!this.nn()||this.Oi&&!n)return e;var r=Gy({},this.persistence.get_initial_props(),this.sessionPropsManager?.getSetOnceProps()||{},e||{}),i=this.config.sanitize_properties;return i&&(Y.error(AS),r=i(r,`$set_once`)),t&&(this.Oi=!0),Pg(r)?void 0:r}register(e,t){var n;(n=this.persistence)==null||n.register(e,t)}register_once(e,t,n){var r;(r=this.persistence)==null||r.register_once(e,t,n)}register_for_session(e){var t;(t=this.sessionPersistence)==null||t.register(e)}unregister(e){var t;(t=this.persistence)==null||t.unregister(e)}unregister_for_session(e){var t;(t=this.sessionPersistence)==null||t.unregister(e)}an(e,t){this.register({[e]:t})}getFeatureFlag(e,t){return this.featureFlags?.getFeatureFlag(e,t)}getFeatureFlagPayload(e){return this.featureFlags?.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){return this.featureFlags?.getFeatureFlagResult(e,t)}isFeatureEnabled(e,t){return this.featureFlags?.isFeatureEnabled(e,t)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,t,n){var r;(r=this.featureFlags)==null||r.updateFlags(e,t,n)}updateEarlyAccessFeatureEnrollment(e,t,n){var r;(r=this.featureFlags)==null||r.updateEarlyAccessFeatureEnrollment(e,t,n)}getEarlyAccessFeatures(e,t,n){return t===void 0&&(t=!1),this.featureFlags?.getEarlyAccessFeatures(e,t,n)}on(e,t){return this.Li.on(e,t)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:kS}),()=>{})}onSessionId(e){return this.sessionManager?.onSessionId(e)??(()=>{})}getSurveys(e,t){t===void 0&&(t=!1),this.surveys?this.surveys.getSurveys(e,t):e([],{isLoaded:!1,error:kS})}getActiveMatchingSurveys(e,t){t===void 0&&(t=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,t):e([],{isLoaded:!1,error:kS})}renderSurvey(e,t){var n;(n=this.surveys)==null||n.renderSurvey(e,t)}displaySurvey(e,t){var n;t===void 0&&(t=bS),(n=this.surveys)==null||n.displaySurvey(e,t)}cancelPendingSurvey(e){var t;(t=this.surveys)==null||t.cancelPendingSurvey(e)}canRenderSurvey(e){return this.surveys?.canRenderSurvey(e)??{visible:!1,disabledReason:kS}}canRenderSurveyAsync(e,t){return t===void 0&&(t=!1),this.surveys?.canRenderSurveyAsync(e,t)??Promise.resolve({visible:!1,disabledReason:kS})}un(e){return!e||Ig(e)?(Y.critical(`Unique user id has not been set in posthog.identify`),!1):e===Dy?(Y.critical(`The string "`+e+`" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.`),!1):![`distinct_id`,`distinctid`].includes(e.toLowerCase())&&![`undefined`,`null`].includes(e.toLowerCase())||(Y.critical(`The string "`+e+`" was set in posthog.identify which indicates an error. This ID should be unique to the user and n
20ot a hardcoded string.`),!1)}identify(e,t,n){if(!this.__loaded||!this.persistence)return Y.uninitializedWarning(`posthog.identify`);if(zg(e)&&(e=e.toString(),Y.warn(`The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.`)),this.un(e)&&this.sn(`posthog.identify`)){var r=this.get_distinct_id();this.register({$user_id:e}),this.get_property(Lv)||this.register_once({$had_persisted_distinct_id:!0,$device_id:r},``),e!==r&&e!==this.get_property(Rv)&&(this.unregister(Rv),this.register({distinct_id:e}));var i,a=(this.persistence.get_property(yy)||Py)===Py;e!==r&&a?(this.persistence.set_property(yy,Fy),this.setPersonPropertiesForFlags({$set:t||{},$set_once:n||{}},!1),this.capture(Vy,{distinct_id:e,$anon_distinct_id:r},{$set:t||{},$set_once:n||{}}),this.$i=lS(e,t,n),(i=this.featureFlags)==null||i.setAnonymousDistinctId(r)):(t||n)&&this.setPersonProperties(t,n),e!==r&&(this.reloadFeatureFlags(),this.unregister(hy))}}setPersonProperties(e,t){if((e||t)&&this.sn(`posthog.setPersonProperties`)){var n=lS(this.get_distinct_id(),e,t);this.$i===n?Y.info(`A duplicate setPersonProperties call was made with the same properties. It has been ignored.`):(this.setPersonPropertiesForFlags({$set:e||{},$set_once:t||{}},!0),this.capture(`$set`,{$set:e||{},$set_once:t||{}}),this.$i=n)}}group(e,t,n){if(e&&t){var r=this.getGroups(),i=r[e]!==t;if(i&&this.resetGroupPropertiesForFlags(e),this.register({$groups:q({},r,{[e]:t})}),i||n){var a={$group_type:e,$group_key:t};n&&(a.$group_set=n),this.capture(Hy,a)}n&&this.setGroupPropertiesForFlags({[e]:n}),i&&!n&&this.reloadFeatureFlags()}else Y.error(`posthog.group requires a group type and group key`)}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){var n;t===void 0&&(t=!0),(n=this.featureFlags)==null||n.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,t){var n;t===void 0&&(t=!0),this.sn(`posthog.setGroupPropertiesForFlags`)&&((n=this.featureFlags)==null||n.setGroupPropertiesForFlags(e,t))}resetGroupPropertiesForFlags(e){var t;(t=this.featureFlags)==null||t.resetGroupPropertiesForFlags(e)}reset(e){var t,n,r,i,a,o,s,c;if(Y.info(`reset`),!this.__loaded)return Y.uninitializedWarning(`posthog.reset`);var l=this.get_property(Lv);if(this.consent.reset(),(t=this.persistence)==null||t.clear(),(n=this.sessionPersistence)==null||n.clear(),(r=this.surveys)==null||r.reset(),(i=this.Yi)==null||i.stop(),(a=this.featureFlags)==null||a.reset(),(o=this.conversations)==null||o.reset(),(s=this.persistence)==null||s.set_property(yy,Py),(c=this.sessionManager)==null||c.resetSessionId(),this.$i=null,this.config.cookieless_mode===Ny)this.register_once({distinct_id:Dy,$device_id:null},``);else{var u=this.config.get_device_id(ab());this.register_once({distinct_id:u,$device_id:e?u:l},``)}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(e,t){var n;this.config.identity_distinct_id=e,this.config.identity_hash=t,this.alias(e),(n=this.conversations)==null||n.ln()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,(e=this.conversations)==null||e.hn()}get_distinct_id(){return this.get_property(`distinct_id`)}getGroups(){return this.get_property(`$groups`)||{}}get_session_id(){return this.sessionManager?.checkAndGetSessionAndWindowId(!0).sessionId??``}get_session_replay_url(e){if(!this.sessionManager)return``;var{sessionId:t,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=this.requestRouter.endpointFor(`ui`,`/project/`+this.config.token+`/replay/`+t);if(e!=null&&e.withTimestamp&&n){var i=e.timestampLookBack??10;if(!n)return r;r+=`?t=`+Math.max(Math.floor((new Date().getTime()-n)/1e3)-i,0)}return r}alias(e,t){return e===this.get_property(Iv)?(Y.critical(`Attempting to create alias for existing People user - aborting.`),-2):this.sn(`posthog.alias`)?(J(t)&&(t=this.get_distinct_id()),e===t?(Y.warn(`alias matches current distinct_id - skipping api call.`),this.identify(e),-1):(this.an(Rv,e),this.capture(`$create_alias`,{alias:e,distinct_id:t}))):void 0}set_config(e){var t=q({},this.config);if(Ng(e)){var n,r,i,a,o,s,c,l,u,d;Gy(this.config,IS(e));var f=this.Hi();(n=this.persistence)==null||n.update_config(this.config,t,f),this.sessionPersistence=this.config.persistence===`
20sessionStorage`||this.config.persistence===`memory`?this.persistence:new Yb(q({},this.config,{persistence:`sessionStorage`}),f);var p=this.Di(this.config.debug);Vg(p)&&(this.config.debug=p),Vg(this.config.debug)&&(this.config.debug?(ug.DEBUG=!0,db.R()&&db.N(`ph_debug`,!0),Y.info(`set_config`,{config:e,oldConfig:t,newConfig:q({},this.config)})):(ug.DEBUG=!1,db.R()&&db.q(`ph_debug`))),(r=this.exceptionObserver)==null||r.onConfigChange(),(i=this.exceptions)==null||i.onConfigChange(),(a=this.sessionRecording)==null||a.startIfEnabledOrStop(),(o=this.autocapture)==null||o.startIfEnabled(),(s=this.heatmaps)==null||s.startIfEnabled(),(c=this.exceptionObserver)==null||c.startIfEnabledOrStop(),(l=this.deadClicksAutocapture)==null||l.startIfEnabledOrStop(),(u=this.surveys)==null||u.loadIfEnabled(),this.cn(),(d=this.externalIntegrations)==null||d.startIfEnabledOrStop()}}_overrideSDKInfo(e,t){ug.LIB_NAME=e,ug.LIB_VERSION=t}startSessionRecording(e){var t,n,r,i,a,o=!0===e,s={sampling:o||!(e==null||!e.sampling),linked_flag:o||!(e==null||!e.linked_flag),url_trigger:o||!(e==null||!e.url_trigger),event_trigger:o||!(e==null||!e.event_trigger)};Object.values(s).some(Boolean)&&((t=this.sessionManager)==null||t.checkAndGetSessionAndWindowId(),s.sampling&&((n=this.sessionRecording)==null||n.overrideSampling()),s.linked_flag&&((r=this.sessionRecording)==null||r.overrideLinkedFlag()),s.url_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger(`url`)),s.event_trigger&&((a=this.sessionRecording)==null||a.overrideTrigger(`event`))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,t){if(this.exceptions){var n=Error(`PostHog syntheticException`),r=this.exceptions.buildProperties(e,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(q({},r,t))}}addExceptionStep(e,t){var n;(n=this.exceptions)==null||n.addExceptionStep(e,t)}captureLog(e){var t;(t=this.logs)==null||t.captureLog(e)}get logger(){return this.logs?.logger??e.dn}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var t;return(t=this.toolbar?.loadToolbar(e))!=null&&t}get_property(e){return this.persistence?.props[e]}getSessionProperty(e){return this.sessionPersistence?.props[e]}toString(){var e=this.config.name??MS;return e!==MS&&(e=MS+`.`+e),e}_isIdentified(){return this.persistence?.get_property(yy)===Fy||this.sessionPersistence?.get_property(yy)===Fy}nn(){var e,t;return!(this.config.person_profiles===`never`||this.config.person_profiles===Iy&&!this._isIdentified()&&Pg(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[Rv])&&((t=this.persistence)==null||(t=t.props)==null||!t[Ty]))}Xi(){return!0===this.config.capture_pageleave||this.config.capture_pageleave===`if_capture_pageview`&&(!0===this.config.capture_pageview||this.config.capture_pageview===`history_change`)}createPersonProfile(){this.nn()||this.sn(`posthog.createPersonProfile`)&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn(`posthog.setInternalOrTestUser`)&&this.setPersonProperties({$internal_or_test_user:!0})}sn(e){return this.config.person_profiles===`never`?(Y.error(e+` was called, but process_person is set to "never". This call will be ignored.`),!1):(this.an(Ty,!0),!0)}Hi(){if(this.config.cookieless_mode===`always`)return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==My)}cn(){var e,t,n=this.Hi();return this.persistence?._r!==n&&((e=this.persistence)==null||e.set_disabled(n)),this.sessionPersistence?._r!==n&&((t=this.sessionPersistence)==null||t.set_disabled(n)),n}opt_in_capturing(t){var n;if(this.config.cookieless_mode!==Ny){if(this.Ri()){var r,i;this.reset(!0),(r=this.sessionManager)==null||r.destroy(),(i=this.pageViewManager)==null||i.destroy(),this.sessionManager=new oS(this),this.pageViewM
20anager=new Eb(this),this.persistence&&(this.sessionPropsManager=new rS(this,this.sessionManager,this.persistence));var a,o=this.config.__extensionClasses?.sessionRecording??e.__defaultExtensionClasses?.sessionRecording;o&&(this.sessionRecording=this.Mi(this.sessionRecording,new o(this)),this.Qi&&((a=this.sessionRecording)==null||a.onRemoteConfig==null||a.onRemoteConfig(this.Qi)))}var s;this.consent.optInOut(!0),this.cn(),this.Ji(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==My&&((s=this.surveys)==null||s.loadIfEnabled()),(J(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture(t?.captureEventName??`$opt_in`,t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ki()}else Y.warn(OS)}opt_out_capturing(){var e,t,n;this.config.cookieless_mode===Ny?Y.warn(OS):(this.config.cookieless_mode===My&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===My&&(this.register({distinct_id:Dy,$device_id:null}),(e=this.sessionRecording)==null||e.stopRecording(),this.sessionRecording=void 0,(t=this.sessionManager)==null||t.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.Ki()))}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?`granted`:e===0?`denied`:`pending`}is_capturing(){return this.config.cookieless_mode===Ny||(this.config.cookieless_mode===My?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return ng?sS(ng,this.config.custom_blocked_useragents):void 0}Ki(){G&&(G.visibilityState===`visible`?this.Fi||(this.Fi=!0,this.capture(zy,{title:G.title},{send_instantly:!0}),this.Ai&&=(G.removeEventListener(Ly,this.Ai),null)):this.Ai||(this.Ai=this.Ki.bind(this),Qy(G,Ly,this.Ai)))}debug(e){!1===e?(W?.console.log(`You've disabled debug mode.`),this.set_config({debug:!1})):(W?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Lr(){var e,t,n,r,i,a,o=this.qi||{};return`advanced_disable_flags`in o?!!o.advanced_disable_flags:!1===this.config.advanced_disable_flags?!0===this.config.advanced_disable_decide?(Y.warn(`Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version.`),!0):(n=`advanced_disable_decide`,r=Y,i=(t=`advanced_disable_flags`)in(e=o)&&!Rg(e[t]),a=n in e&&!Rg(e[n]),i?e[t]:!!a&&(r&&r.warn(`Config field '`+n+`' is deprecated. Please use '`+t+`' instead. The old field will be removed in a future major version.`),e[n])):!!this.config.advanced_disable_flags}rn(e){if(Rg(this.config.before_send))return e;var t=jg(this.config.before_send)?this.config.before_send:[this.config.before_send],n=e;for(var r of t){if(n=r(n),Rg(n)){var i=`Event '`+e.event+`' was rejected in beforeSend function`;return Ug(e.event)?Y.warn(i+`. This can cause unexpected behavior.`):Y.info(i),null}n.properties&&!Pg(n.properties)||Y.warn(`Event '`+e.event+`' has no properties after beforeSend function, this is likely an error.`)}return n}getPageViewId(){return this.pageViewManager.dr?.pageViewId}captureTraceFeedback(e,t){this.capture(`$ai_feedback`,{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,n){this.capture(`$ai_metric`,{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(n)})}Di(e){var t=Vg(e)&&!e,n=db.R()&&db.A(`ph_debug`)===`true`;return!t&&(!!n||e)}};RS.__defaultExtensionClasses={},RS.dn={trace:wS=()=>{},debug:wS,info:wS,warn:wS,error:wS,fatal:wS},function(e,t){for(var n=0;t.length>n;n++)e.prototype[t[n]]=Jy(e.prototype[t[n]])}(RS,[`identify`]);var zS=1,BS=3,VS=11;function HS(e){return e instanceof Element&&(e.id===Ey||!(e.closest==null||!e.closest(`.toolbar-global-fade-container`)))}function US(e){return!!e&&e.nodeType===zS}function WS(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function GS(e){return!!e&&e.nodeType===BS}function KS(e){return!!e&&e.nodeType===VS&&US(e.host)}function qS(e){return e?Eg(e).split(/\s+/):[]}function JS(e){var t=W?.location.href;return!!(t&&e&&e.some((e=>t.match(e))))}function YS(e){var t=``;switch(typeof e.className){case`string`:t=e.className;break;case`object`:t=(e.className&&`baseVal`in e.className?e.className.baseVal:null)||e.getAttribute(`class`)||``;break;default:t=``}return qS(t)}function XS(e){return Rg(e)?null:Eg(e).split(/(\s+)/).filter((e=>mC(e))).join(``).replace(/[\r\n]/g,` `).replace(/[ ]+/g,` `).substring(0,255)}function ZS(e){var t=``;return oC(e)&&!sC(e)&&e.childNodes&&e.childNodes.length&&Wy(e.childNodes,(function(e){GS(e)&&e.textContent&&(t+=XS(e.textContent)??``)})),Eg(t)}function QS(e){return J(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var $S=[`a`,`button`,`form`,`input`,`select`,`textarea`,`label`];function eC(e,t){if(J(t))return!0;var n,r=function(e){if(t.some((t=>e.matches(t))))return{v:!0}};for(var i of e)if(n=r(i))return n.v;return!1}function tC(e){var t=e.parentNode;return!(!t||!US(t))&&t}var nC=[`next`,`previous`,`prev`,`>
20`,`<`],rC=[`.ph-no-rageclick`,`.ph-no-capture`],iC=e=>!e||WS(e,`html`)||!US(e),aC=(e,t)=>{if(!W||iC(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[e],i=e;i.parentNode&&!WS(i,`body`);)if(KS(i.parentNode))r.push(i.parentNode.host),i=i.parentNode.host;else{var a=tC(i);if(!a)break;if(t||$S.indexOf(a.tagName.toLowerCase())>-1)n=!0;else{var o=W.getComputedStyle(a);o&&o.getPropertyValue(`cursor`)===`pointer`&&(n=!0)}r.push(a),i=a}return{parentIsUsefulElement:n,targetElementList:r}};function oC(e){for(var t=e;t.parentNode&&!WS(t,`body`);t=t.parentNode){var n=YS(t);if(Tg(n,`ph-sensitive`)||Tg(n,`ph-no-capture`))return!1}if(Tg(YS(e),`ph-include`))return!0;var r=e.type||``;if(Fg(r))switch(r.toLowerCase()){case`hidden`:case`password`:return!1}var i=e.name||e.id||``;return!Fg(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,``))}function sC(e){return!!(WS(e,`input`)&&![`button`,`checkbox`,`submit`,`reset`].includes(e.type)||WS(e,`select`)||WS(e,`textarea`)||e.getAttribute(`contenteditable`)===`true`)}var cC=`(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})`,lC=RegExp(`^(?:`+cC+`)$`),uC=new RegExp(cC),dC=`\\d{3}-?\\d{2}-?\\d{4}`,fC=RegExp(`^(`+dC+`)$`),pC=RegExp(`(`+dC+`)`);function mC(e,t){return t===void 0&&(t=!0),!(Rg(e)||Fg(e)&&(e=Eg(e),(t?lC:uC).test((e||``).replace(/[- ]/g,``))||(t?fC:pC).test(e)))}function hC(e){var t=ZS(e);return mC(t=(t+` `+gC(e)).trim())?t:``}function gC(e){var t=``;return e&&e.childNodes&&e.childNodes.length&&Wy(e.childNodes,(function(e){if(e&&e.tagName?.toLowerCase()===`span`)try{var n=ZS(e);t=(t+` `+n).trim(),e.childNodes&&e.childNodes.length&&(t=(t+` `+gC(e)).trim())}catch(e){Y.error(`[AutoCapture]`,e)}})),t}function _C(e){return e.replace(/"|\\"/g,`\\"`)}function vC(e){var t=e.attr__class;return t?jg(t)?t:qS(t):void 0}var yC=class{constructor(e){this.disabled=!1===e;var t=Ng(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,n){if(this.disabled)return!1;var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(e-r.x)+Math.abs(t-r.y)<this.thresholdPx&&this.timeoutMs>n-r.timestamp){if(this.clicks.push({x:e,y:t,timestamp:n}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}},bC=`$copy_autocapture`,xC=Nv(`[AutoCapture]`);function SC(e,t){return t.length>e?t.slice(0,e)+`...`:t}function CC(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!US(t));return t}function wC(e,t){var n,{e:r,maskAllElementAttributes:i,maskAllText:a,elementAttributeIgnoreList:o,elementsC
20hainAsString:s}=t;if(!US(e))return{props:{}};for(var c=[e],l=e;l.parentNode&&!WS(l,`body`);)if(KS(l.parentNode))c.push(l.parentNode.host),l=l.parentNode.host;else{if(!US(l.parentNode))break;c.push(l.parentNode),l=l.parentNode}var u,d,f=[],p={},m=!1,h=!1;if(Wy(c,(e=>{var t=oC(e);if(WS(e,`a`)){var n=e.getAttribute(`href`);m=t&&!!n&&mC(n)&&n}Tg(YS(e),`ph-no-capture`)&&(h=!0),f.push(function(e,t,n,r){var i=e.tagName.toLowerCase(),a={tag_name:i};$S.indexOf(i)>-1&&!n&&(a.$el_text=i.toLowerCase()===`a`||i.toLowerCase()===`button`?SC(1024,hC(e)):SC(1024,ZS(e)));var o=YS(e);o.length>0&&(a.classes=o.filter((function(e){return e!==``}))),Wy(e.attributes,(function(n){var i;if((!sC(e)||[`name`,`id`,`class`,`aria-label`].indexOf(n.name)!==-1)&&(r==null||!r.includes(n.name))&&!t&&mC(n.value)&&(!Fg(i=n.name)||i.substring(0,10)!==`_ngcontent`&&i.substring(0,7)!==`_nghost`)){var o=n.value;n.name===`class`&&(o=qS(o).join(` `)),a[`attr__`+n.name]=SC(1024,o)}}));for(var s=1,c=1,l=e;l=CC(l);)s++,l.tagName===e.tagName&&c++;return a.nth_child=s,a.nth_of_type=c,a}(e,i,a,o)),Gy(p,function(e){if(!oC(e))return{};var t={};return Wy(e.attributes,(function(e){if(e.name&&e.name.indexOf(`data-ph-capture-attribute`)===0){var n=e.name.replace(`data-ph-capture-attribute-`,``),r=e.value;n&&r&&mC(r)&&(t[n]=r)}})),t}(e))})),h)return{props:{},explicitNoCapture:h};if(a||(f[0].$el_text=WS(e,`a`)||WS(e,`button`)?hC(e):ZS(e)),m){var g;f[0].attr__href=m;var _=kb(m)?.host,v=W==null||(g=W.location)==null?void 0:g.host;_&&v&&_!==v&&(u=m)}return{props:Gy({$event_type:r.type,$ce_version:1},s?{}:{$elements:f},{$elements_chain:(d=f,function(e){return e.map((e=>{var t=``;if(e.tag_name&&(t+=e.tag_name),e.attr_class)for(var n of(e.attr_class.sort(),e.attr_class))t+=`.`+n.replace(/"/g,``);var r=q({},e.text?{text:e.text}:{},{"nth-child":e.nth_child??0,"nth-of-type":e.nth_of_type??0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),i={};return Ky(r).sort(((e,t)=>{var[n]=e,[r]=t;return n.localeCompare(r)})).forEach((e=>{var[t,n]=e;return i[_C(t.toString())]=_C(n.toString())})),(t+=`:`)+Ky(i).map((e=>{var[t,n]=e;return t+`="`+n+`"`})).join(``)})).join(`;`)}(function(e){return e.map((e=>{var t={text:e.$el_text?.slice(0,400),tag_name:e.tag_name,href:e.attr__href?.slice(0,2048),attr_class:vC(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return Ky(e).filter((e=>{var[t]=e;return t.indexOf(`attr__`)===0})).forEach((e=>{var[n,r]=e;return t.attributes[n]=r})),t}))}(d)))},(n=f[0])!=null&&n.$el_text?{$el_text:f[0]?.$el_text}:{},u&&r.type===`click`?{$external_click_url:u}:{},p)}}var TC=Nv(`[ExceptionAutocapture]`);function EC(e,t,n){try{if(!(t in e))return()=>{};var r=e[t],i=n(r);return Mg(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var DC=Nv(`[TracingHeaders]`),OC=Nv(`[Web Vitals]`),kC=9e5,AC=`disabled`,jC=`lazy_loading`,MC=`awaiting_config`,NC=`missing_config`;Nv(`[SessionRecording]`),Nv(`[SessionRecording]`);var PC=`[SessionRecording]`,FC=Nv(PC),IC=Nv(`[Heatmaps]`);function LC(e){return Ng(e)&&`clientX`in e&&`clientY`in e&&zg(e.clientX)&&zg(e.clientY)}var RC=Nv(`[Product Tours]`),zC=[`$set_once`,`$set`],BC=Nv(`[SiteApps]`),VC=`Error while initializing PostHog app with config id `;function HC(e,t,n){if(Rg(e))return!1;switch(n){case`exact`:return e===t;case`contains`:var r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`).replace(/_/g,`.`).replace(/%/g,`.*`);return new RegExp(r,`i`).test(e);case`regex`:try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}var UC=class{constructor(e){this.vn=new iS,this.fn=(e,t)=>this.pn(e,t)&&this.gn(e,t)&&this.mn(e,t)&&this.yn(e,t),this.pn=(e,t)=>t==null||!t.event||e?.event===t?.event,this._instance=e,this.bn=new Set,this._n=new Set}init(){var e;J(this._instance?._addCaptureHook)||(e=this._instance)==null||e._addCaptureHook(((e,t)=>{this.on(e,t)}))}register(e){var t;if(!J(this._instance?._addCaptureHook)&&(e.forEach((e=>{var t,n;(t=this._n)==null||t.add(e),(n=e.steps)==null||n.forEach((e=>{var t;(t=this.bn)==null||t.add(e?.event||``)}))})),(t=this._instance)!=null&&t.autocapture)){var n,r=new Set;e.forEach((e=>{var t;(t=e.steps)==null||t.forEach((e=>{e!=null&&e.selector&&r.add(e?.selector)}))}
20)),(n=this._instance)==null||n.autocapture.setElementSelectors(r)}}on(e,t){t!=null&&e.length!=0&&(this.bn.has(e)||this.bn.has(t?.event))&&this._n&&this._n?.size>0&&this._n.forEach((e=>{this.wn(t,e)&&this.vn.emit(`actionCaptured`,e.name)}))}xn(e){this.onAction(`actionCaptured`,(t=>e(t)))}wn(e,t){if(t?.steps==null)return!1;for(var n of t.steps)if(this.fn(e,n))return!0;return!1}onAction(e,t){return this.vn.on(e,t)}gn(e,t){if(t!=null&&t.url){var n,r=e==null||(n=e.properties)==null?void 0:n.$current_url;if(!r||typeof r!=`string`||!HC(r,t.url,t.url_matching||`contains`))return!1}return!0}mn(e,t){return!!this.Sn(e,t)&&!!this.kn(e,t)&&!!this.Cn(e,t)}Sn(e,t){var n;if(t==null||!t.href)return!0;var r=this.In(e);if(r.length>0)return r.some((e=>HC(e.href,t.href,t.href_matching||`exact`)));var i,a=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||``;return!!a&&HC((i=a.match(/(?::|")href="(.*?)"/))?i[1]:``,t.href,t.href_matching||`exact`)}kn(e,t){var n;if(t==null||!t.text)return!0;var r=this.In(e);if(r.length>0)return r.some((e=>HC(e.text,t.text,t.text_matching||`exact`)||HC(e.$el_text,t.text,t.text_matching||`exact`)));var i,a,o,s=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||``;return!!s&&(i=function(e){for(var t,n=[],r=/(?::|")text="(.*?)"/g;!Rg(t=r.exec(e));)n.includes(t[1])||n.push(t[1]);return n}(s),a=t.text,o=t.text_matching||`exact`,i.some((e=>HC(e,a,o))))}Cn(e,t){var n,r;if(t==null||!t.selector)return!0;var i=e==null||(n=e.properties)==null?void 0:n.$element_selectors;if(i!=null&&i.includes(t.selector))return!0;var a=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||``;if(t.selector_regex&&a)try{return new RegExp(t.selector_regex).test(a)}catch{return!1}return!1}In(e){var t;return(e==null||(t=e.properties)==null?void 0:t.$elements)==null?[]:e?.properties.$elements}yn(e,t){return t==null||!t.properties||t.properties.length===0||fS(t.properties.reduce(((e,t)=>{var n=jg(t.value)?t.value.map(String):t.value==null?[]:[String(t.value)];return e[t.key]={values:n,operator:t.operator||`exact`},e}),{}),e?.properties)}},WC=class{constructor(e){this._instance=e,this.Tn=new Map,this.En=new Map,this.Mn=new Map}Pn(e,t){return!!e&&fS(e.propertyFilters,t?.properties)}Rn(e,t){var n=new Map;return e.forEach((e=>{var r;(r=e.conditions)==null||(r=r[t])==null||(r=r.values)==null||r.forEach((t=>{if(t!=null&&t.name){var r=n.get(t.name)||[];r.push(e.id),n.set(t.name,r)}}))})),n}On(e,t,n){var r=(n===Xb.Activation?this.Tn:this.En).get(e),i=[];return this.Ln((e=>{i=e.filter((e=>r?.includes(e.id)))})),i.filter((r=>{var i,a=(i=r.conditions)==null||(i=i[n])==null||(i=i.values)==null?void 0:i.find((t=>t.name===e));return this.Pn(a,t)}))}register(e){J(this._instance?._addCaptureHook)||(this.Fn(e),this.An(e))}An(e){var t=e.filter((e=>{var t;return e.conditions?.actions&&((t=e.conditions)==null||(t=t.actions)==null||(t=t.values)==null?void 0:t.length)>0}));t.length!==0&&(this.Nn??(this.Nn=new UC(this._instance),this.Nn.init(),this.Nn.xn((e=>{this.onAction(e)}))),t.forEach((e=>{var t,n,r,i,a;e.conditions&&(t=e.conditions)!=null&&t.actions&&(n=e.conditions)!=null&&(n=n.actions)!=null&&n.values&&((r=e.conditions)==null||(r=r.actions)==null||(r=r.values)==null?void 0:r.length)>0&&((i=this.Nn)==null||i.register(e.conditions.actions.values),(a=e.conditions)==null||(a=a.actions)==null||(a=a.values)==null||a.forEach((t=>{if(t&&t.name){var n=this.Mn.get(t.name);n&&n.push(e.id),this.Mn.set(t.name,n||[e.id])}})))})))}Fn(e){var t,n=e.filter((e=>{var t;return e.conditions?.events&&((t=e.conditions)==null||(t=t.events)==null||(t=t.values)==null?void 0:t.length)>0})),r=e.filter((e=>{var t;return e.conditions?.cancelEvents&&((t=e.conditions)==null||(t=t.cancelEvents)==null||(t=t.values)==null?void 0:t.length)>0}));n.length===0&&r.length===0||((t=this._instance)==null||t._addCaptureHook(((e,t)=>{this.onEvent(e,t)})),this.Tn=this.Rn(e,Xb.Activation),this.En=this.Rn(e,Xb.Cancellation))}onEvent(e,t){var n,r=this.le(),i=this.$n(),a=this.Dn(),o=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[i])||[];if(a===e&&t&&o.length>0){var s,c;r.info(`event matched, removing item from activated items`,{event:e,eventPayload:t,existingActivatedItems:o});var l=(t==null||(s=t.properties)==null?void 0:s.$survey_id)||(t==null||(c=t.properties)==null?void 0:c.$product_tour_id);if(l){var u=o.indexOf(l);0>u||(o.splice(u,1),this.qn(o))}}else{if(this.En.has(e)){var d=this.On(e,t,Xb.Cancellation);d.length>0&&(r.info(`cancel event matched, cancelling items`,{event:e,itemsToCancel:d.map((e=>e.id))}),d.forEach((e=>{var t=o.indexOf(e.id);0>t||o.splice(t,1),this.jn(e.id)}
20)),this.qn(o))}if(this.Tn.has(e)){r.info(`event name matched`,{event:e,eventPayload:t,items:this.Tn.get(e)});var f=this.On(e,t,Xb.Activation);this.qn(o.concat(f.map((e=>e.id))||[]))}}}onAction(e){var t,n=this.$n(),r=((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[n])||[];this.Mn.has(e)&&this.qn(r.concat(this.Mn.get(e)||[]))}qn(e){var t=this.le(),n=[...new Set(e)].filter((e=>!this.Hn(e)));t.info(`updating activated items`,{activatedItems:n}),this.Un(n)}getActivatedIds(){var e,t=this.$n();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[t])||[]}getEventToItemsMap(){return this.Tn}Bn(){return this.Nn}},GC=class extends WC{constructor(e){super(e)}$n(){return py}Dn(){return Qb.SHOWN}Ln(e){var t;(t=this._instance)==null||t.getSurveys(e)}jn(e){var t;(t=this._instance)==null||t.cancelPendingSurvey(e)}le(){return _S}Un(e){var t;(t=this._instance)==null||(t=t.persistence)==null||t.register({[py]:e})}Hn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}},KC=`SDK is not enabled or survey functionality is not yet loaded`,qC=`Disabled. Not loading surveys.`,JC=W!=null&&W.location?Mb(W.location.hash,`__posthog`)||Mb(location.hash,`state`):null,YC=`_postHogToolbarParams`,XC=Nv(`[Toolbar]`),ZC=Nv(`[FeatureFlags]`),QC=Nv(`[FeatureFlags]`,{debugEnabled:!0}),$C=`" failed. Feature flags didn't load in time.`,ew=e=>{for(var t={},n=0;e.length>n;n++)t[e[n]]=!0;return t},tw=e=>{var t={};for(var[n,r]of Ky(e||{}))r&&(t[n]=r);return t},nw=Nv(`[Error tracking]`),rw=`Refusing to render web experiment since the viewer is a likely bot`,iw={icontains:(e,t)=>!!W&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!W&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!W&&cS(t.href,e),not_regex:(e,t)=>!!W&&!cS(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e},aw=class e{get qt(){return this._instance.config}constructor(t){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(t){t===void 0&&(t=!1),n.getWebExperiments((t=>{e.zn(`retrieved web experiments from the server`),n.Vn=new Map,t.forEach((t=>{if(t.feature_flag_key){var r;n.Vn&&(e.zn(`setting flag key `,t.feature_flag_key,` to web experiment `,t),(r=n.Vn)==null||r.set(t.feature_flag_key,t));var i=n._instance.getFeatureFlag(t.feature_flag_key);Fg(i)&&t.variants[i]&&n.Wn(t.name,i,t.variants[i].transforms)}else if(t.variants)for(var a in t.variants){var o=t.variants[a];e.Zn(o)&&n.Wn(t.name,a,o.transforms)}}))}),t)},this._instance=t,this._instance.onFeatureFlags((e=>{this.onFeatureFlags(e)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())e.zn(rw);else if(!this.qt.disable_web_experiments){if(Rg(this.Vn))return this.Vn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();e.zn(`applying feature flags`,t),t.forEach((e=>{var t;if(this.Vn&&(t=this.Vn)!=null&&t.has(e)){var n=this._instance.getFeatureFlag(e),r=this.Vn?.get(e);n&&r!=null&&r.variants[n]&&this.Wn(r.name,n,r.variants[n].transforms)}}))}}previewWebExperiment(){var t=e.getWindowLocation();if(t!=null&&t.search){var n=Ab(t?.search,`__experiment_id`),r=Ab(t?.search,`__experiment_variant`);n&&r&&(e.zn(`previewing web experiments `+n+` && `+r),this.getWebExperiments((e=>{this.Gn(parseInt(n),r,e)}),!1,!0))}}loadIfEnabled(){this.qt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,n){if(this.qt.disable_web_experiments&&!n)return e([]);var r=this._instance.get_property(`$web_experiments`);if(r&&!t)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor(`api`,`/api/web_experiments/?token=`+this.qt.token),method:`GET`,callback:t=>e(t.statusCode===200&&t.json&&t.json.experiments||[])})}Gn(t,n,r){var i=r.filter((e=>e.id===t));i&&i.length>0&&(e.zn(`Previewing web experiment [`+i[0].name+`] with variant [`+n+`]`),this.Wn(i[0].name,n,i[0].variants[n].transforms))}static Zn(t){return!Rg(t.conditions)&&e.Qn(t)&&e.Jn(t)}static Qn(t){if(Rg(t.conditions)||Rg(t.conditions?.url))return!0;var n,r=e.getWindowLocation();return!!r&&((n=t.conditions)==null||!n.url||iw[t.conditions?.urlMatchType??`icontains`](t.conditions.url,r))}
20static getWindowLocation(){return W?.location}static Jn(e){if(Rg(e.conditions)||Rg(e.conditions?.utm))return!0;var t=Rb();if(t.utm_source){var n,r,i,a,o,s,c,l,u=(n=e.conditions)==null||(n=n.utm)==null||!n.utm_campaign||((r=e.conditions)==null||(r=r.utm)==null?void 0:r.utm_campaign)==t.utm_campaign,d=(i=e.conditions)==null||(i=i.utm)==null||!i.utm_source||((a=e.conditions)==null||(a=a.utm)==null?void 0:a.utm_source)==t.utm_source,f=(o=e.conditions)==null||(o=o.utm)==null||!o.utm_medium||((s=e.conditions)==null||(s=s.utm)==null?void 0:s.utm_medium)==t.utm_medium,p=(c=e.conditions)==null||(c=c.utm)==null||!c.utm_term||((l=e.conditions)==null||(l=l.utm)==null?void 0:l.utm_term)==t.utm_term;return u&&f&&p&&d}return!1}static zn(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];Y.info(`[WebExperiments] `+e,n)}Wn(t,n,r){this._is_bot()?e.zn(rw):n===`control`?e.zn(`Control variants leave the page unmodified.`):r.forEach((r=>{r.selector&&(e.zn(`applying transform of variant `+n+` for experiment `+t+` `,r),(document?.querySelectorAll(r.selector))?.forEach((e=>{var t=e;r.html&&(t.innerHTML=r.html),r.css&&t.setAttribute(`style`,r.css)})))}))}_is_bot(){return ng&&this._instance?sS(ng,this.qt.custom_blocked_useragents):void 0}},ow=Nv(`[Conversations]`),sw=`Conversations not available yet.`,cw={featureFlags:class{constructor(e){this.Kn=!1,this.Yn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=e,this.featureFlagEventHandlers=[]}get qt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}us(){var e;return(e=this.ni?.wr(this.qt.feature_flag_cache_ttl_ms))!=null&&e}ls(){return!!this.us()&&(this.ss||this.Xn||(this.ss=!0,ZC.warn(`Feature flag cache is stale, triggering refresh...`),this.reloadFeatureFlags()),!0)}hs(){var e=this.qt.evaluation_contexts??this.qt.evaluation_environments;return!this.qt.evaluation_environments||this.qt.evaluation_contexts||this.ns||(ZC.warn(`evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version.`),this.ns=!0),e!=null&&e.length?e.filter((e=>{var t=e&&typeof e==`string`&&e.trim().length>0;return t||ZC.error(`Invalid evaluation context found:`,e,`Expected non-empty string`),t})):[]}cs(){return this.hs().length>0}initialize(){var{config:e}=this._instance,t=e.bootstrap?.featureFlags??{};if(Object.keys(t).length){var n=e.bootstrap?.featureFlagPayloads??{},r=Object.keys(t).filter((e=>!!t[e])).reduce(((e,n)=>(e[n]=t[n]||!1,e)),{}),i=Object.keys(n).filter((e=>r[e])).reduce(((e,t)=>(n[t]&&(e[t]=n[t]),e)),{});this.receivedFeatureFlags({featureFlags:r,featureFlagPayloads:i})}}updateFlags(e,t,n){var r=n!=null&&n.merge?this.getFlagVariants():{},i=n!=null&&n.merge?this.getFlagPayloads():{},a=q({},r,e),o=q({},i,t),s={};for(var[c,l]of Object.entries(a)){var u=typeof l==`string`;s[c]={key:c,enabled:!!u||!!l,variant:u?l:void 0,reason:void 0,metadata:J(o?.[c])?void 0:{id:0,version:void 0,description:void 0,payload:o[c]}}}this.receivedFeatureFlags({flags:s})}get hasLoadedFlags(){return this.Yn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(ay),t=this.os(cy),n=this.os(ly);if(!n&&!t)return e||{};var r=Gy({},e||{});for(var i of[...new Set([...Object.keys(n||{}),...Object.keys(t||{})])]){var a,o,s=r[i],c=t?.[i],l=J(c)?(a=s?.enabled)!=null&&a:!!c,u=J(c)?s.variant:typeof c==`string`?c:void 0,d=n?.[i],f=q({},s,{enabled:l,variant:l?u??s?.variant:void 0});l!==s?.enabled&&(f.original_enabled=s?.enabled),u!==s?.variant&&(f.original_variant=s?.variant),d&&(f.metadata=q({},s?.metadata,{payload:d,original_payload:s==null||(o=s.metadata)==null?void 0:o.payload})),r[i]=f}return this.Kn||=(ZC.warn(` Overriding feature flag details!`,{flagDetails:e,overriddenPayloads:n,finalDetails:r}),!0),r}getFlagVariants(){var e=this.os(ny),t=this.os(cy);if(!t)return e||{};for(var n=Gy({},e),r=Object.keys(t),i=0;r.length>i;i++)n[r[i]]=t[r[i]];return this.Kn||=(ZC.warn(` Overriding feature flags!`,{enabledFlags:e,overriddenFlags:t,finalFlags:n}),!0),n}getFlagPayloads(){var e=this.os(oy),t=this.os(ly);if(!t)return e||{};for(var n=Gy({},e||{}),r=Object.keys(t),i=0;r.length>i;i++)n[r[i]]=t[r[i]];return this.Kn||=(ZC.warn(` Overriding feature flag payloads!`,{flagPayloads:e,overriddenPayloads:t,finalPayloads:n}),!0),n}reloadFeatureFlags(){this.es||this.qt.advanced_disable_feature_flags||this.ds||(this._instance.Li.emit(`featureFlagsReloading`,!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Yn||this.Xn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){if(this.fs(),!this._instance.Lr())if(this.Xn)this.ts=!0;else{var t=this.qt.token,n=this.os(Lv),r={token:t,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:q({},this.ni?.get_initial_props()||{},this.os(uy)||{}),group_properties:this.os(dy),timezone:Kb()};Lg(n)||J(n)||(r.$device_id=n),(e!=null&&e.disableFlags||this.qt.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.cs()&&(r.evaluation_contexts=this.hs());var i=this._instance.requestRouter.endpointFor(`flags`,`/flags/?v=2`+(this.qt.advanced_only_evaluate_survey_feature_flags?`&only_evaluate_survey_feature_flags=true`:``));this.Xn=!0,this._instance._send_request({method:`POST`,url:i,data:r,compression:this.qt.disable_compression?void 0:sx.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback:e=>{var t,n,i,a=!0;if(e.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),a=!1),this.Xn=!1,!r.disable_flags||this.ts){this.rs=!a;var o=[];e.error?e.error instanceof Error?o.push(e.error.name===`AbortError`?`timeout`:`connection_error`):o.push(`unknown_error`):e.statusCode!==200&&o.push(`api_error_`+e.statusCode),(t=e.json)!=null&&t.errorsWhileComputingFlags&&o.push(`errors_while_computing_flags`);var s=!((n=e.json)==null||(n=n.quotaLimited)==null||!n.includes(`feature_flags`));s&&o.push(`quota_limited`),(i=this.ni)==null||i.register({[_y]:o}),s?ZC.warn(`You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset.  Please visit https://posthog.com/docs/billing/limits-alerts to learn more.`):(r.disable_flags||this.receivedFeatureFlags(e.json??{},a,{partialResponse:!!this.qt.advanced_only_evaluate_survey_feature_flags}
20),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Yn||this.getFlags()&&this.getFlags().length>0){if(!this.ls()){var n=this.getFeatureFlagResult(e,t);return n?.variant??n?.enabled}}else ZC.warn(`getFeatureFlag for key "`+e+$C)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){return this.getFeatureFlagResult(e,{send_event:!1})?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Yn||this.getFlags()&&this.getFlags().length>0){if(!this.ls()){var n=this.getFlagVariants(),r=e in n,i=n[e],a=this.getFlagPayloads()[e],o=String(i),s=this.os(sy)||void 0,c=this.os(vy)||void 0,l=this.os(hy)||{};if(this.qt.advanced_feature_flags_dedup_per_session){var u,d=this._instance.get_session_id(),f=this.os(gy);d&&d!==f&&(l={},(u=this.ni)==null||u.register({[hy]:l,[gy]:d}))}if((t.send_event||!(`send_event`in t))&&(!(e in l)||!l[e].includes(o))){var p,m,h,g,_,v,y,b;jg(l[e])?l[e].push(o):l[e]=[o],(p=this.ni)==null||p.register({[hy]:l});var x=this.getFeatureFlagDetails(e),S=[...this.os(_y)??[]];J(i)&&S.push(`flag_missing`);var C={$feature_flag:e,$feature_flag_response:i,$feature_flag_payload:a||null,$feature_flag_request_id:s,$feature_flag_evaluated_at:c,$feature_flag_bootstrapped_response:((m=this.qt.bootstrap)==null||(m=m.featureFlags)==null?void 0:m[e])||null,$feature_flag_bootstrapped_payload:((h=this.qt.bootstrap)==null||(h=h.featureFlagPayloads)==null?void 0:h[e])||null,$used_bootstrap_value:!this.rs};J(x==null||(g=x.metadata)==null?void 0:g.version)||(C.$feature_flag_version=x.metadata.version);var w,E=(x==null||(_=x.reason)==null?void 0:_.description)??(x==null||(v=x.reason)==null?void 0:v.code);E&&(C.$feature_flag_reason=E),x!=null&&(y=x.metadata)!=null&&y.id&&(C.$feature_flag_id=x.metadata.id),J(x?.original_variant)&&J(x?.original_enabled)||(C.$feature_flag_original_response=J(x.original_variant)?x.original_enabled:x.original_variant),x!=null&&(b=x.metadata)!=null&&b.original_payload&&(C.$feature_flag_original_payload=x==null||(w=x.metadata)==null?void 0:w.original_payload),S.length&&(C.$feature_flag_error=S.join(`,`)),this._instance.capture(`$feature_flag_called`,C)}if(r){var D=a;if(!J(a))try{D=JSON.parse(a)}catch{}return{key:e,enabled:!!i,variant:typeof i==`string`?i:void 0,payload:D}}}}else ZC.warn(`getFeatureFlagResult for key "`+e+$C)}getRemoteConfigPayload(e,t){var n=this.qt.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.cs()&&(r.evaluation_contexts=this.hs()),this._instance._send_request({method:`POST`,url:this._instance.requestRouter.endpointFor(`flags`,`/flags/?v=2`),data:r,compression:this.qt.disable_compression?void 0:sx.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback(n){var r=n.json?.featureFlagPayloads;t(r?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Yn||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(e,t);return J(n)?void 0:!!n}ZC.warn(`isFeatureEnabled for key "`+e+$C)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,n){if(this.ni){this.Yn=!0;var r=this.getFlagVariants(),i=this.getFlagPayloads(),a=this.getFlagsWithDetails();(function(e,t,n,r,i,a){n===void 0&&(n={}),r===void 0&&(r={}),i===void 0&&(i={});var o=(e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map((e=>[e,t[e].variant??t[e].enabled]))),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter((e=>t[e].enabled)).filter((e=>t[e].metadata?.payload)).map((e=>[e,t[e].metadata?.payload])))):ZC.warn(`Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version`),e})(e),s=o.flags,c=o.featureFlags,l=o.featureFlagPayloads;if(c){var u=e.requestId,d=e.evaluatedAt;if(jg(c)){ZC.warn(`v1 of the feature flags endpoint is deprecated. Please use the latest version.`);var f={};if(c)for(var p=0;c.length>p;p++)f[c[p]]=!0;t&&t.register({[ry]:c,[ny]:f})}else{var m=c,h=l,g=s;if(a!=null&&a.partialResponse)m=q({},n,m),h=q({},r,h),g=q({},i,g);else if(e.errorsWhileComputingFlags)if(s){var _=new Set(Object.keys(s).filter((e=>{var t;return!((t=s[e])!=null&&t.failed)})));m=q({},n,Object.fromEntries(Object.entries(m).filter((e=>{var[t]=e;return _.has(t)})))),h=q({},r,Object.fromEntries(Object.entries(h||{}).filter((e=>{var[t]=e;return _.has(t)})))),g=q({},i,Object.fromEntries(Object.entries(g||{}).filter((e=>{var[t]=e;return _.has(t)}))))}else m=q({},n,m),h=q({},r,h),g=q({},i,g);t&&t.register(q({[ry]:Object.keys(tw(m)),[ny]:m||{},[oy]:h||{},[ay]:g||{}},u?{[sy]:u}:{},d?{[vy]:d}:{}))}}})(e,this.ni,r,i,a,n),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),ZC.warn(`override is deprecated. Please use overrideFeatureFlags instead.`),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return ZC.uninitializedWarning(`posthog.featureFlags.overrideFeatureFlags`);if(!1===e)return this.ni.unregister(cy),this.ni.unregister(ly),this.ps(),QC.info(`All overrides cleared`);if(jg(e)){var t=ew(e);return this.ni.register({[cy]:t}),this.ps(),QC.info(`Flag overrides set`,{flags:e})}if(e&&typeof e==`object`&&(`flags`in e||`payloads`in e)){var n,r=e;if(this.Kn=!!((n=r.suppressWarning)!=null&&n),`flags`in r){if(!1===r.flags)this.ni.unregister(cy),QC.info(`Flag overrides cleared`);else if(r.flags){if(jg(r.flags)){var i=ew(r.flags);this.ni.register({[cy]:i})}else this.ni.register({[cy]:r.flags});QC.info(`Flag overrides set`,{flags:r.flags})}}`payloads`in r&&(!1===r.payloads?(this.ni.unregister(ly),QC.info(`Payload overrides cleared`)):r.payloads&&(this.ni.register({[ly]:r.payloads}),QC.info(`Payload overrides set`,{payloads:r.payloads}))),this.ps();return}if(e&&typeof e==`object`)return this.ni.register({[cy]:e}),this.ps(),QC.info(`Flag overrides set`,{flags:e});ZC.warn(`Invalid overrideOptions provided to overrideFeatureFlags`,{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Yn){var{flags:t,flagVariants:n}=this.gs();e(t,n)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,n){var r,i=(this.os(iy)||[]).find((t=>t.flagKey===e)),a={[`$feature_enrollment/`+e]:t},o={$feature_flag:e,$feature_enrollment:t,$set:a};i&&(o.$early_access_feature_name=i.name),n&&(o.$feature_enrollment_stage=n),this._instance.capture(`$feature_enrollment_update`,o),this.setPersonPropertiesForFlags(a,!1);var s=q({},this.getFlagVariants(),{[e]:t});(r=this.ni)==null||r.register({[ry]:Object.keys(tw(s)),[ny]:s}),this.ps()}
20getEarlyAccessFeatures(e,t,n){t===void 0&&(t=!1);var r=this.os(iy),i=n?`&`+n.map((e=>`stage=`+e)).join(`&`):``;if(r&&!t)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor(`api`,`/api/early_access_features/?token=`+this.qt.token+i),method:`GET`,callback:t=>{var n,r;if(t.json){var i=t.json.earlyAccessFeatures;return(n=this.ni)==null||n.unregister(iy),(r=this.ni)==null||r.register({[iy]:i}),e(i)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((e=>t[e])),flagVariants:Object.keys(t).filter((e=>t[e])).reduce(((e,n)=>(e[n]=t[n],e)),{})}}ps(e){var{flags:t,flagVariants:n}=this.gs();this.featureFlagEventHandlers.forEach((r=>r(t,n,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.os(uy)||{},r=e?.$set||(e!=null&&e.$set_once?{}:e),i=e?.$set_once,a={};if(i)for(var o in i)({}).hasOwnProperty.call(i,o)&&(o in n||(a[o]=i[o]));this._instance.register({[uy]:q({},n,a,r)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(uy)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.os(dy)||{};Object.keys(n).length!==0&&Object.keys(n).forEach((t=>{n[t]=q({},n[t],e[t]),delete e[t]})),this._instance.register({[dy]:q({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(dy)||{};this._instance.register({[dy]:q({},t,{[e]:{}})})}else this._instance.unregister(dy)}reset(){this.Yn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Kn=!1}}},lw={sessionRecording:class{get qt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){return this.bs===MC||this.bs===NC?this.bs:this.ys?.status??this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=AC,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw FC.error(`started without valid sessionManager`),Error(PC+` started without valid sessionManager. This is a bug.`);if(this.qt.cookieless_mode===Ny)throw Error(PC+` cannot be used with cookieless_mode="always"`)}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(Yv))==null||!e.enabled),n=!this.qt.disable_session_recording,r=this.qt.disable_session_recording||this._instance.consent.isOptedOut();return W&&t&&n&&!r}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var n=!J(Object.assign)&&!J(Array.from);this.ws&&n?(this.xs(e),FC.info(`starting`)):(this.bs=AC,this.stopRecording())}}xs(e){var t,n,r;this.ws&&(this.bs!==MC&&this.bs!==NC&&(this.bs=jC),K!=null&&(t=K.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(n=K.__PosthogExtensions__)!=null&&n.initSessionRecording?this.Ss(e):(r=K.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.ks,(t=>{if(t)return FC.error(`could not load recorder`,t);this.Ss(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}Cs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}Is(){var e;(e=this.ni)==null||e.unregister(ty)}Ts(e,t){if(Rg(e))return null;var n,r=zg(e)?e:parseFloat(e);return typeof(n=r)!=`number`||!Number.isFinite(n)||0>n||n>1?(FC.warn(t+` must be between 0 and 1. Ignoring invalid value:`,e),null):r}Es(e){if(this.ni){var t,n=this.ni,r=()=>{var t=!1===e.sessionRecording?void 0:e.sessionRecording,r=this.Ts(this.qt.session_recording?.sampleRate,`session_recording.sampleRate`),i=this.Ts(t?.sampleRate,`remote config sampleRate`),a=r??i;Rg(a)&&this.Is();var o=t?.minimumDurationMilliseconds;n.register({[Yv]:q({cache_timestamp:Date.now(),enabled:!!t},t,{networkPayloadCapture:q({capturePerformance:e.capturePerformance},t?.networkPayloadCapture),canvasRecording:{enabled:t?.recordCanvas,fps:t?.canvasFps,quality:t?.canvasQuality},sampleRate:a,minimumDurationMilliseconds:J(o)?null:o,endpoint:t?.endpoint,triggerMatchType:t?.triggerMatchType,masking:t?.masking,urlTriggers:t?.urlTriggers,version:t?.version,triggerGroups:t?.triggerGroups})})};r(),(t=this._s)==null||t.call(this),this._s=this._instance.sessionManager?.onSessionId(r)}}onRemoteConfig(e){`sessionRecording`in e?!1===e.sessionRecording?(this.Es(e),this.Cs()):(this.Es(e),this.startIfEnabledOrStop()):(this.bs===MC&&(this.bs=NC,FC.warn(`config refresh failed, recording will not start until page reload`)),this.startIfEnabledOrStop())}log(e,t){var n;t===void 0&&(t=`log`),(n=this.ys)!=null&&n.log?this.ys.log(e,t):FC.warn(`log called before recorder was ready`)}get ks(){var e,t,n=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(Yv);return(n==null||(t=n.scriptConfig)==null?void 0:t.script)||`lazy-recorder`}Ms(){var e,t=this._instance.get_property(Yv);if(!t)return!1;try{e=typeof t==`object`?t:JSON.parse(t)}catch(e){return FC.warn(`persisted remote config for session recording is invali
20d and will be ignored`,e),!1}var n=e.cache_timestamp??Date.now();return 36e5>=Date.now()-n}Ss(e){var t;if((t=K.__PosthogExtensions__)==null||!t.initSessionRecording)return FC.warn(`Called on script loaded before session recording is available. This can be caused by adblockers.`),void this._instance.register_for_session({[Ay]:!0});if(this.ys||(this.ys=K.__PosthogExtensions__?.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Ms()){if(this.bs===NC||this.bs===MC)return;this.bs=MC,FC.info(`persisted remote config is stale, requesting fresh config before starting`),new ox(this._instance).load();return}this.bs=jC,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[Zv]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[Xv]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,n;this.ys||(n=this.ni)==null||n.register({[e===`url`?Qv:$v]:!0}),(t=this.ys)==null||t.overrideTrigger(e)}get sdkDebugProperties(){return this.ys?.sdkDebugProperties||{$recording_status:this.status}}tryAddCustomEvent(e,t){var n;return!((n=this.ys)==null||!n.tryAddCustomEvent(e,t))}}},uw={autocapture:class{constructor(e){this.Ps=!1,this.Rs=null,this.Os=!1,this.instance=e,this.rageclicks=new yC(e.config.rageclick),this.Ls=null}initialize(){this.startIfEnabled()}get qt(){var e=Ng(this.instance.config.autocapture)?this.instance.config.autocapture:{};return e.url_allowlist=e.url_allowlist?.map((e=>new RegExp(e))),e.url_ignorelist=e.url_ignorelist?.map((e=>new RegExp(e))),e}Fs(){if(this.isBrowserSupported()){if(W&&G){var e=e=>{e||=W?.event;try{this.As(e)}catch(e){xC.error(`Failed to capture event`,e)}};if(Qy(G,`submit`,e,{capture:!0}),Qy(G,`change`,e,{capture:!0}),Qy(G,`click`,e,{capture:!0}),this.qt.capture_copied_text){var t=e=>{e||=W?.event;try{this.As(e,bC)}catch(e){xC.error(`Failed to capture copy/cut event`,e)}};Qy(G,`copy`,t,{capture:!0}),Qy(G,`cut`,t,{capture:!0})}}}else xC.info(`Disabling Automatic Event Collection because this browser is not supported`)}startIfEnabled(){this.isEnabled&&!this.Ps&&(this.Fs(),this.Ps=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Os=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Bv]:!!e.autocapture_opt_out}),this.Rs=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Ls=e}getElementSelectors(e){var t,n=[];return(t=this.Ls)==null||t.forEach((t=>{(G?.querySelectorAll(t))?.forEach((r=>{e===r&&n.push(t)}))})),n}get isEnabled(){var e=this.instance.persistence?.props[Bv];if(Lg(this.Rs)&&!Vg(e)&&!this.instance.Lr())return!1;var t=this.Rs??!!e;return!!this.instance.config.autocapture&&!t}As(e,t){if(t===void 0&&(t=`$autocapture`),this.isEnabled){var n,r=QS(e);GS(r)&&(r=r.parentNode||null),t===`$autocapture`&&e.type===`click`&&e instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&function(e,t){if(!W||iC(e))return!1;var n,r;if(Vg(t)?(n=!!t&&rC,r=void 0):(n=t?.css_selector_ignorelist??rC,r=t?.content_ignorelist),!1===n)return!1;var{targetElementList:i}=aC(e,!1);return!function(e,t){if(!1===e||J(e))return!1;var n;if(!0===e)n=nC;else{if(!jg(e))return!1;if(e.length>10)return Y.error(`[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching.`),!1;n=e.map((e=>e.toLowerCase()))}return t.some((e=>{var{safeText:t,ariaLabel:r}=e;return n.some((e=>t.includes(e)||r.includes(e)))}))}(r,i.map((e=>({safeText:ZS(e).toLowerCase(),ariaLabel:e.getAttribute(`aria-label`)?.toLowerCase().trim()||``}))))&&!eC(i,n)}(r,this.instance.config.rageclick)&&this.As(e,`$rageclick`);var i=t===bC;if(r&&function(e,t,n,r,i){var a,o,s;if(n===void 0&&(n=void 0),!W||iC(e)||(a=n)!=null&&a.url_allowlist&&!JS(n.url_allowlist)||(o=n)!=null&&o.url_ignorelist&&JS(n.url_ignorelist))return!1;if((s=n)!=null&&s.dom_event_allowlist){var c=n.dom_event_allowlist;if(c&&!c.some((e=>t.type===e)))return!1}var{parentIsUsefulElement:l,targetElementList:u}=aC(e,r);if(!function(e,t){var n=t?.element_allowlist;if(J(n))return!0;var r,i=function(e){if(n.some((t=>e.tagName.toLowerCase()===t)))return{v:!0}};for(var a of e)if(r=i(a))return r.v;return!1}(u,n)||!eC(u,n?.css_selector_allowlist))return!1;var d=W.getComputedStyle(e);
20if(d&&d.getPropertyValue(`cursor`)===`pointer`&&t.type===`click`)return!0;var f=e.tagName.toLowerCase();switch(f){case`html`:return!1;case`form`:return(i||[`submit`]).indexOf(t.type)>=0;case`input`:case`select`:case`textarea`:return(i||[`change`,`click`]).indexOf(t.type)>=0;default:return l?(i||[`click`]).indexOf(t.type)>=0:(i||[`click`]).indexOf(t.type)>=0&&($S.indexOf(f)>-1||e.getAttribute(`contenteditable`)===`true`)}}(r,e,this.qt,i,i?[`copy`,`cut`]:void 0)){var{props:a,explicitNoCapture:o}=wC(r,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.qt.element_attribute_ignorelist,elementsChainAsString:this.Os});if(o)return!1;var s=this.getElementSelectors(r);if(s&&s.length>0&&(a.$element_selectors=s),t===bC){var c,l=XS(W==null||(c=W.getSelection())==null?void 0:c.toString()),u=e.type||`clipboard`;if(!l)return!1;a.$selected_content=l,a.$copy_type=u}return this.instance.capture(t,a),!0}}}isBrowserSupported(){return Mg(G?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ns=(W==null||(t=W.location)==null?void 0:t.pathname)||``}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview===`history_change`}startIfEnabled(){this.isEnabled&&(Y.info(`History API monitoring enabled, starting...`),this.monitorHistoryChanges())}stop(){this.$s&&this.$s(),this.$s=void 0,Y.info(`History API monitoring stopped`)}monitorHistoryChanges(){var e,t;if(W&&W.history){var n=this;(e=W.history.pushState)!=null&&e.__posthog_wrapped__||EC(W.history,`pushState`,(e=>function(t,r,i){e.call(this,t,r,i),n.Ds(`pushState`)})),(t=W.history.replaceState)!=null&&t.__posthog_wrapped__||EC(W.history,`replaceState`,(e=>function(t,r,i){e.call(this,t,r,i),n.Ds(`replaceState`)})),this.qs()}}Ds(e){try{var t,n=W==null||(t=W.location)==null?void 0:t.pathname;if(!n)return;n!==this.Ns&&this.isEnabled&&this._instance.capture(zy,{navigation_type:e}),this.Ns=n}catch(t){Y.error(`Error capturing `+e+` pageview`,t)}}qs(){if(!this.$s){var e=()=>{this.Ds(`popstate`)};Qy(W,`popstate`,e),this.$s=()=>{W&&W.removeEventListener(`popstate`,e)}}}},heatmaps:class{get qt(){return this.instance.config}constructor(e){var t;this.js=!1,this.Ps=!1,this.Hs=null,this.instance=e,this.js=!((t=this.instance.persistence)==null||!t.props[Vv]),this.rageclicks=new yC(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Ng(this.qt.capture_heatmaps)&&this.qt.capture_heatmaps.flush_interval_milliseconds&&(e=this.qt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Rg(this.qt.capture_heatmaps)?Rg(this.qt.enable_heatmaps)?this.js:this.qt.enable_heatmaps:!1!==this.qt.capture_heatmaps}startIfEnabled(){if(this.isEnabled){if(this.Ps)return;IC.info(`starting...`),this.Us(),this.At()}else clearInterval(this.Hs??void 0),this.Bs(),this.getAndClearBuffer()}onRemoteConfig(e){if(`heatmaps`in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Vv]:t}),this.js=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.M;return this.M=void 0,e}zs(e){this.Mt(e.originalEvent,`deadclick`)}At(){this.Hs&&clearInterval(this.Hs),this.Hs=G?.visibilityState===`visible`?setInterval(this.Zr.bind(this),this.flushIntervalMilliseconds):null}Us(){W&&G&&(this.Vs=this.Zr.bind(this),Qy(W,Ry,this.Vs),this.Ws=e=>this.Mt(e||W?.event),Qy(G,`click`,this.Ws,{capture:!0}),this.Zs=e=>this.Gs(e||W?.event),Qy(G,`mousemove`,this.Zs,{capture:!0}),this.Qs=new xb(this.instance,yb,this.zs.bind(this)),this.Qs.startIfEnabledOrStop(),this.Js=this.At.bind(this),Qy(G,Ly,this.Js),this.Ps=!0)}Bs(){var e;W&&G&&(this.Vs&&W.removeEventListener(Ry,this.Vs),this.Ws&&G.removeEventListener(`click`,this.Ws,{capture:!0}),this.Zs&&G.removeEventListener(`mousemove`,this.Zs,{capture:!0}),this.Js&&G.removeEventListener(Ly,this.Js),clearTimeout(this.Ks),(e=this.Qs)==null||e.stop(),this.Ps=!1)}Ys(e,t){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),a=function(e,t,n){for(var r=e;r&&US(r)&&!WS(r,`body`);){if(r===n)return!1;if(Tg(t,W?.getComputedStyle(r).position))return!0;r=tC(r)}return!1}(QS(e),[`fixed`,`sticky`],i);return{x:e.clientX+(a?0:r),y:e.clientY+(a?0:n),target_fixed:a,type:t}}Mt(e,t){var n;if(t===void 0&&(t=`click`),!HS(e.target)&&LC(e)){var r=this.Ys(e,t);(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Xs(q({},r,{type:`rageclick`})),this.Xs(r)}}Gs(e){!HS(e.target)&&LC(e)&&(clearTimeout(this.Ks),this.Ks=setTimeout((()=>{this.Xs(this.Ys(e,`mousemove`))}),500))}Xs(e){if(W){var t=W.location.href,n=this.qt.custom_personal_data_properties,r=jb(t,this.qt.mask_personal_data_properties?[...Pb,...n||[]]:[],Ib);this.M=this.M||{},this.M[r]||(this.M[r]=[]),this.M[r].push(e)}}Zr(){this.M&&!Pg(this.M)&&this.instance.capture(`$$heatmap`,{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:xb,webVitalsAutocapture:class{constructor(e){var t;this.js=!1,this.Ps=!1,this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.M.metrics.length!==0&&(this._instance.capture(`$web_vitals`,this.M.metrics.reduce(((e,t)=>q({},e,{[`$web_vitals_`+t.name+`_event`]:q({},t),[`$web_vitals_`+t.name+`_value`]:t.value})),{})),this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=e=>{var t=this._instance.sessionManager?.checkAndGetSessionAndWindowId(!0);if(J(t))OC.error(`Could not read session ID. Dropping metrics!`);else{this.M=this.M||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var n=this.io();J(n)||(Rg(e?.name)||Rg(e?.value)?OC.error(`Invalid metric received`,e):!this.no||this.no>e.value?(this.M.url!==n&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),J(this.M.url)&&(this.M.url=n),this.M.firstMetricTimestamp=J(this.M.firstMetricTimestamp)?Date.now():this.M.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0),this.M.metrics.push(q({},e,{$current_url:n,$session_id:t.sessionId,$window_id:t.windowId,timestamp:Date.now()})),this.M.metrics.length===this.allowedMetrics.length&&this.eo()):OC.error(`Ignoring metric with value >= `+this.no,e))}},this.so=()=>
20{if(!this.Ps){var e,t,n,r,i=K.__PosthogExtensions__;J(i)||J(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:n,onINP:r}=i.postHogWebVitalsCallbacks),e&&t&&n&&r?(this.allowedMetrics.indexOf(`LCP`)>-1&&e(this.ht.bind(this)),this.allowedMetrics.indexOf(`CLS`)>-1&&t(this.ht.bind(this)),this.allowedMetrics.indexOf(`FCP`)>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf(`INP`)>-1&&r(this.ht.bind(this)),this.Ps=!0):OC.error(`web vitals callbacks not loaded - not starting`)}},this._instance=e,this.js=!((t=this._instance.persistence)==null||!t.props[Gv]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e=Ng(this.oo)?this.oo?.web_vitals_allowed_metrics:void 0;return Rg(e)?this._instance.persistence?.props[Jv]||[`CLS`,`FCP`,`INP`,`LCP`]:e}get flushToCaptureTimeoutMs(){return(Ng(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Ng(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=Ng(this.oo)&&zg(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:kC;return e>0&&6e4>=e?kC:e}get isEnabled(){var e=rg?.protocol;if(e!==`http:`&&e!==`https:`)return OC.info(`Web Vitals are disabled on non-http/https protocols`),!1;var t=Ng(this.oo)?this.oo.web_vitals:Vg(this.oo)?this.oo:void 0;return Vg(t)?t:this.js}startIfEnabled(){this.isEnabled&&!this.Ps&&(OC.info(`enabled, starting...`),this.lr(this.so))}onRemoteConfig(e){if(`capturePerformance`in e){var t=Ng(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=Ng(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Gv]:t}),this._instance.persistence.register({[Jv]:n})),this.js=t,this.startIfEnabled()}}lr(e){var t,n;(t=K.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(n=K.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.useAttribution?`web-vitals-with-attribution`:`web-vitals`,(t=>{t?OC.error(`failed to load script`,t):e()}))}io(){var e=W?W.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties;return jb(e,this._instance.config.mask_personal_data_properties?[...Pb,...t||[]]:[],Ib)}OC.error(`Could not determine current URL`)}}},dw={exceptionObserver:class{constructor(e){var t;this.so=()=>{var e;if(W&&this.isEnabled&&(e=K.__PosthogExtensions__)!=null&&e.errorWrappingFunctions){var t=K.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,n=K.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,r=K.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.qt.capture_unhandled_errors&&(this.ao=t(this.captureException.bind(this))),!this.uo&&this.qt.capture_unhandled_rejections&&(this.uo=n(this.captureException.bind(this))),!this.lo&&this.qt.capture_console_errors&&(this.lo=r(this.captureException.bind(this)))}catch(e){TC.error(`failed to start`,e),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[Hv]),this.do=new Zg({refillRate:this._instance.config.error_tracking.__exceptionRateLimiterRefillRate??1,bucketSize:this._instance.config.error_tracking.__exceptionRateLimiterBucketSize??10,refillInterval:1e4,Gt:TC}),this.qt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Ng(e)?t=q({},t,e):(J(e)?this.co:e)&&(t=q({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.qt.capture_console_errors||this.qt.capture_unhandled_errors||this.qt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(TC.info(`enabled`),this.ho(),this.lr(this.so)):this.ho()}lr(e){var t,n;(t=K.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(n=K.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,`exception-autocapture`,(t=>{if(t)return TC.error(`failed to load script`,t);e()}))}ho(){var e,t,n;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.uo)==null||t.call(this),this.uo=void 0,(n=this.lo)==null||n.call(this),this.lo=void 0}onRemoteConfig(e){`autocaptureExceptions`in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[Hv]:this.co}),this.qt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.qt=this.vo()}
20captureException(e){var t,n,r=(e==null||(t=e.$exception_list)==null||(t=t[0])==null?void 0:t.type)??`Exception`;this.do.consumeRateLimit(r)?TC.info(`Skipping exception capture because of client rate limiting.`,{exception:r}):(n=this._instance.exceptions)==null||n.sendExceptionEvent(e)}},exceptions:class{constructor(e){this.fo=[],this.po=new nv([new mv,new wv,new gv,new hv,new Sv,new xv,new vv,new Cv],function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];return function(t,r){r===void 0&&(r=0);for(var i=[],a=t.split(`
21`),o=r;a.length>o;o++){var s=a[o];if(1024>=s.length){var c=pv.test(s)?s.replace(pv,`$1`):s;if(!c.match(/\S*Error: /)){for(var l of n){var u=l(c,e);if(u){i.push(u);break}}if(i.length>=50)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);return t.reverse(),t.slice(0,50).map((e=>{return q({},e,{filename:e.filename||(n=t,n[n.length-1]||{}).filename,function:e.function||rv});var n}))}(i)}}(`web:javascript`,lv,fv)),this._instance=e,this.fo=this._instance.persistence?.get_property(Uv)??[],this.mo=kv(this.yo()),this.bo=new Av(this.mo)}onConfigChange(){this.mo=kv(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){if(`errorTracking`in e){var t=e.errorTracking?.suppressionRules??[],n=e.errorTracking?.captureExtensionExceptions;this.fo=t,this._instance.persistence&&this._instance.persistence.register({[Uv]:this.fo,[Wv]:n})}}get _o(){var e,t=!!this._instance.get_property(Wv);return(e=this._instance.config.error_tracking.captureExtensionExceptions??t)!=null&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!Fg(e)||e.trim().length===0)return void nw.warn(`Ignoring exception step because message must be a non-empty string`);var{sanitizedProperties:n,droppedKeys:r}=function(e){if(!e)return{sanitizedProperties:{},droppedKeys:[]};var t=[];return{sanitizedProperties:Object.keys(e).reduce(((n,r)=>Dv.has(r)?(t.push(r),n):(n[r]=e[r],n)),{}),droppedKeys:t}}(this.wo(t));r.length>0&&nw.warn(`Ignoring reserved exception step fields`,{droppedKeys:r}),this.bo.add(q({[Tv]:e,[Ev]:new Date().toISOString()},n))}catch(e){nw.error(`Failed to add exception step. Ignoring breadcrumb.`,e)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.xo(t)){if(this.So(t))return this.ko(`Exception dropped: matched a suppression rule`),void nw.info(`Skipping exception capture because a suppression rule matched`);if(!this._o&&this.Co(t))return this.ko(`Exception dropped: thrown by a browser extension`),void nw.info(`Skipping exception capture because it was thrown by an extension`);if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Io(t))return this.ko(`Exception dropped: thrown by the PostHog SDK`),void nw.info(`Skipping exception capture because it was thrown by the PostHog SDK`)}var n=this.mo.enabled&&Rg(e.$exception_steps)?this.To(e):e;try{var r=this._instance.capture(`$exception`,n,{_noTruncate:!0,_batchKey:`exceptionEvent`,en:!0});return r&&this.bo.clear(),r}catch(e){nw.error(`Failed to capture exception event. Dropping this exception.`,e),this.bo.clear();return}}catch(e){nw.error(`Failed to process exception event. Ignoring this exception.`,e);return}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:q({},e,{$exception_steps:t})}catch(t){return nw.error(`Failed to read buffered exception steps. Capturing exception without steps.`,t),e}}ko(e){this.mo.enabled&&this.bo.add({[Tv]:e,[Ev]:new Date().toISOString()})}wo(e){return Ng(e)?q({},e):{}}yo(){return this._instance.config.error_tracking?.exception_steps??{}}So(e){if(e.length===0)return!1;var t=e.reduce(((e,t)=>{var{type:n,value:r}=t;return Fg(n)&&n.length>0&&e.$exception_types.push(n),Fg(r)&&r.length>0&&e.$exception_values.push(r),e}),{$exception_types:[],$exception_values:[]});return this.fo.some((e=>{var n=e.values.map((e=>{var n=uS[e.operator],r=jg(e.value)?e.value:[e.value],i=t[e.key]??[];return r.length>0&&n(r,i)}));return e.type===`OR`?n.some(Boolean):n.every(Boolean)}))}Co(e){return e.flatMap((e=>e.stacktrace?.frames??[])).some((e=>e.filename&&e.filename.startsWith(`chrome-extension://`)))}Io(e){if(e.length>0){var t,n,r=e[0].stacktrace?.frames??[],i=r[r.length-1];return(t=i==null||(n=i.filename)==null?void 0:n.includes(`posthog.com/static`))!=null&&t}return!1}xo(e){return!Rg(e)&&jg(e)}}},fw=q({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Eo=null,this.Mo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){`productTours`in e&&(this.ni&&this.ni.register({[qv]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Eo||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(qv)||this.lr((()=>this.Po()))}lr(e){var t,n;(t=K.__PosthogExtensions__)!=null&&t.generateProductTours?e():(n=K.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,`product-tours`,(t=>{t?RC.error(`Could not load product tours script`,t):e()}))}Po(){var e;!this.Eo&&(e=K.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Eo=K.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!jg(this.Mo)||t){var n=this.ni;if(n){var r=n.props[my];if(jg(r)&&!t)return this.Mo=r,void e(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor(`api`,`/api/product_tours/?token=`+this._instance.config.token),method:`GET`,callback:t=>{var r=t.statusCode;if(r!==200||!t.json){var i=`Product Tours API could not be loaded, status: `+r;RC.error(i),e([],{isLoaded:!1,error:i});return}var a=jg(t.json.product_tours)?t.json.product_tours:[];this.Mo=a,n&&n.register({[my]:a}),e(a,{isLoaded:!0})}})}else e(this.Mo,{isLoaded:!0})}getActiveProductTours(e){Rg(this.Eo)?e([],{isLoaded:!1,error:`Product tours not loaded`}):this.Eo.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Eo)==null||t.showTourById(e)}previewTour(e){this.Eo?this.Eo.previewTour(e):this.lr((()=>{var t;this.Po(),(t=this.Eo)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Eo)==null||e.dismissTour(`user_clicked_skip`)}nextStep(){var e;(e=this.Eo)==null||e.nextStep()}previousStep(){var e;(e=this.Eo)==null||e.previousStep()}clearCache(){var e;this.Mo=null,(e=this.ni)==null||e.unregister(my)}resetTour(e){var t;(t=this.Eo)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Eo)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Eo)==null||t.cancelPendingTour(e)}}},cw),pw={siteApps:class{constructor(e){this._instance=e,this.Ro=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Oo(e,t){if(t){var n=this.globalsForEvent(t);this.Ro.push(n),this.Ro.length>1e3&&(this.Ro=this.Ro.slice(10))}}get siteAppLoaders(){var e;return(e=K._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Oo.bind(this));this.Lo=()=>{e(),this.Ro=[],this.Lo=void 0}}}globalsForEvent(e){if(!e)throw Error(`Event payload is required`);var t={},n=this._instance.get_property(`$groups`)||[],r=this._instance.get_property(`$stored_group_properties`)||{};for(var[i,a]of Object.entries(r))t[i]={id:n[i],type:i,properties:a};var{$set_once:o,$set:s}=e;return{event:q({},pg(e,zC),{properties:q({},e.properties,s?{$set:q({},e.properties?.$set??{},s)}:{},o?{$set_once:q({},e.properties?.$set_once??{},o)}:{}),elements_chain:e.properties?.$elements_chain??``,distinct_id:e.properties?.distinct_id}),person:{properties:this._instance.get_property(`$stored_person_properties`)},groups:t}}setupSiteApp(e){var t=this.apps[e.id],n=()=>{var n;!t.errored&&this.Ro.length&&(BC.info(`Processing `+this.Ro.length+` events for site app with id `+e.id),this.Ro.forEac
21h((e=>t.processEvent==null?void 0:t.processEvent(e))),t.processedBuffer=!0),Object.values(this.apps).every((e=>e.processedBuffer||e.errored))&&((n=this.Lo)==null||n.call(this))},r=!1,i=i=>{t.errored=!i,t.loaded=!0,BC.info(`Site app with id `+e.id+` `+(i?`loaded`:`errored`)),r&&n()};try{var{processEvent:a}=e.init({posthog:this._instance,callback(e){i(e)}});a&&(t.processEvent=a),r=!0}catch(t){BC.error(VC+e.id,t),i(!1)}if(r&&t.loaded)try{n()}catch(n){BC.error(`Error while processing buffered events PostHog app with config id `+e.id,n),t.errored=!0}}Fo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of e)this.setupSiteApp(n)}Ao(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(t)}catch(t){BC.error(`Error while processing event `+e.event+` for site app `+n.id,t)}}}onRemoteConfig(e){var t,n,r,i=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Fo(),void this._instance.on(`eventCaptured`,(e=>this.Ao(e)))):void BC.error(`PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.`);if((n=this.Lo)==null||n.call(this),(r=e.siteApps)!=null&&r.length)if(this.isEnabled){var a=function(e){var t;K[`__$$ph_site_app_`+e]=i._instance,(t=K.__PosthogExtensions__)==null||t.loadSiteApp==null||t.loadSiteApp(i._instance,s,(t=>{if(t)return BC.error(VC+e,t)}))};for(var{id:o,url:s}of e.siteApps)a(o)}else BC.error(`PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.`)}}},mw={tracingHeaders:class{constructor(e){this.No=void 0,this.$o=void 0,this.so=()=>{var e,t,n=this.Do()||[];J(this.No)&&((e=K.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(n,this._instance.get_distinct_id(),this._instance.sessionManager)),J(this.$o)&&((t=K.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchFetch(n,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}lr(e){var t,n;(t=K.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(n=K.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,`tracing-headers`,(t=>{if(t)return DC.error(`failed to load script`,t);e()}))}Do(){return this._instance.config.addTracingHeaders??this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Do()?this.lr(this.so):((e=this.No)==null||e.call(this),(t=this.$o)==null||t.call(this),this.No=void 0,this.$o=void 0)}}},hw=q({surveys:class{get qt(){return this._instance.config}constructor(e){this.qo=void 0,this._surveyManager=null,this.jo=!1,this.Ho=[],this.Uo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.qt.disable_surveys){var t=e.surveys;if(Rg(t))return _S.warn(`Flags not loaded yet. Not loading surveys.`);var n=jg(t);this.qo=n?t.length>0:t,_S.info(`flags response received, isSurveysEnabled: `+this.qo),this.loadIfEnabled()}}reset(){localStorage.removeItem(`lastSeenSurveyDate`);for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(n!=null&&n.startsWith(vS)||n!=null&&n.startsWith(`inProgressSurvey_`))&&e.push(n)}e.forEach((e=>localStorage.removeItem(e)))}loadIfEnabled(){if(!this._surveyManager)if(this.jo)_S.info(`Already initializing surveys, skipping...`);else if(this.qt.disable_surveys)_S.info(qC);else if(this.qt.cookieless_mode&&this._instance.consent.isOptedOut())_S.info(`Not loading surveys in cookieless mode without consent.`);else{var e=K?.__PosthogExtensions__;if(e){if(!J(this.qo)||this.qt.advanced_enable_surveys){var t=this.qo||this.qt.advanced_enable_surveys;this.jo=!0;try{var n=e.generateSurveys;if(n)return void this.Bo(n,t);var r=e.loadExternalDependency;if(!r)return void this.zo(jy);r(this._instance,`surveys`,(n=>{n||!e.generateSurveys?this.zo(`Could not load surveys script`,n):this.Bo(e.generateSurveys,t)}))}catch(e){throw this.zo(`Error initializing surveys`,e),e}finally{this.jo=!1}}}else _S.error(`PostHog Extensions not found.`)}}Bo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new GC(this._instance),_S.info(`Surveys loaded successfully`),this.Vo({isLoaded:!0})}zo(e,t){_S.error(e,t),this.Vo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.Ho.push(e),this._surveyManager&&this.Vo({isLoaded:!0}),()=>{this.Ho=this.Ho.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.qt.disable_surveys)return _S.info(qC),e([]);var n,r=this._instance.get_property(fy);if(r&&!t)return e(r,{isLoaded:!0});typeof Promise<`u`&&this.Uo?this.Uo.then((t=>{var{surveys:n,context:r}=t;return e(n,r)})):(typeof Promise<`u`&&(this.Uo=new Promise((e=>{n=e}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor(`api`,`/api/surveys/?token=`+this.qt.token),method:`GET`,timeout:this.qt.surveys_request_timeout_ms,callback:t=>{var r;this.Uo=null;var i=t.statusCode;if(i!==200||!t.json){var a=`Surveys API could not be loaded, status: `+i;_S.error(a);var o={isLoaded:!1,error:a};e([],o),n?.({surveys:[],context:o});return}var s,c=t.json.surveys||[],l=c.filter((e=>function(e){return!(!e.start_date||e.end_date)}(e)&&(function(e){var t;return!((t=e.conditions)==null||(t=t.events)==null||(t=t.values)==null||!t.length)}(e)||function(e){var t;return!((t=e.conditions)==null||(t=t.actions)==null||(t=t.values)==null||!t.length)}(e))));l.length>0&&((s=this._surveyEventReceiver)==null||s.register(l)),(r=this._instance.persistence)==null||r.register({[fy]:c});var u={isLoaded:!0};e(c,u),n?.({surveys:c,context:u})}}))}
21Vo(e){for(var t of this.Ho)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(e){_S.error(`Error in survey callback`,e)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Rg(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);_S.warn(`init was not called`)}Wo(e){var t=null;return this.getSurveys((n=>{t=n.find((t=>t.id===e))??null})),t}Zo(e){if(Rg(this._surveyManager))return{eligible:!1,reason:KC};var t=typeof e==`string`?this.Wo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:`Survey not found`}}canRenderSurvey(e){if(Rg(this._surveyManager))return _S.warn(`init was not called`),{visible:!1,disabledReason:KC};var t=this.Zo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Rg(this._surveyManager)?(_S.warn(`init was not called`),Promise.resolve({visible:!1,disabledReason:KC})):new Promise((n=>{this.getSurveys((t=>{var r=t.find((t=>t.id===e))??null;if(r){var i=this.Zo(r);n({visible:i.eligible,disabledReason:i.reason})}else n({visible:!1,disabledReason:`Survey not found`})}),t)}))}renderSurvey(e,t,n){var r;if(Rg(this._surveyManager))_S.warn(`init was not called`);else{var i=typeof e==`string`?this.Wo(e):e;if(i!=null&&i.id)if(yS.includes(i.type)){var a=G?.querySelector(t);if(a)return(r=i.appearance)!=null&&r.surveyPopupDelaySeconds?(_S.info(`Rendering survey `+i.id+` with delay of `+i.appearance.surveyPopupDelaySeconds+` seconds`),void setTimeout((()=>{var e;_S.info(`Rendering survey `+i.id+` with delay of `+i.appearance?.surveyPopupDelaySeconds+` seconds`),(e=this._surveyManager)==null||e.renderSurvey(i,a,n),_S.info(`Survey `+i.id+` rendered`)}),1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,a,n);_S.warn(`Survey element not found`)}else _S.warn(`Surveys of type `+i.type+` cannot be rendered in the app`);else _S.warn(`Survey not found`)}}displaySurvey(e,t){var n;if(Rg(this._surveyManager))_S.warn(`init was not called`);else{var r=this.Wo(e);if(r){var i=r;if((n=r.appearance)!=null&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=q({},r,{appearance:q({},r.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==ex.Popover&&t.initialResponses&&_S.warn(`initialResponses is only supported for popover surveys. prefill will not be applied.`),!1===t.ignoreConditions){var a=this.canRenderSurvey(r);if(!a.visible)return void _S.warn(`Survey is not eligible to be displayed: `,a.disabledReason)}t.displayType===ex.Inline?this.renderSurvey(i,t.selector,t.properties):this._surveyManager.handlePopoverSurvey(i,t)}else _S.warn(`Survey not found`)}}cancelPendingSurvey(e){Rg(this._surveyManager)?_S.warn(`init was not called`):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},cw),gw={toolbar:class{constructor(e){this.instance=e}Go(e){K.ph_toolbar_state=e}Qo(){return K.ph_toolbar_state??0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,n){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),$y(this.instance.config)||!W||!G)return!1;e??=W.location,n??=W.history;try{if(!t){try{W.localStorage.setItem(`test`,`test`),W.localStorage.removeItem(`test`)}catch{return!1}t=W?.localStorage}var r,i=JC||Mb(e.hash,`__posthog`)||Mb(e.hash,`state`),a=i?qy((()=>JSON.parse(atob(decodeURIComponent(i)))))||qy((()=>JSON.parse(decodeURIComponent(i)))):null;return a&&a.action===`ph_authorize`?((r=a).source=`url`,r&&Object.keys(r).length>0&&(a.desiredHash?e.hash=a.desiredHash:n?n.replaceState(n.state,``,e.pathname+e.search):e.hash=``)):((r=JSON.parse(t.getItem(YC)||`{}`)).source=`localstorage`,delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch{return!1}}Jo(e){var t=K.ph_load_toolbar||K.ph_load_editor;!Rg(t)&&Mg(t)?t(e,this.instance):XC.warn(`No toolbar load function found`)}loadToolbar(e){var t=!(G==null||!G.getElementById(Ey));if(!W||t)return!1;var n=this.instance.requestRouter.region===`custom`&&this.instance.config.advanced_disable_toolbar_metrics,r=q({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor(`ui`)},n?{instrument:!1}:{});if(W.localStorage.setItem(YC,JSON.stringify(q({},r,{source:void 0}))),this.Qo()===2)this.Jo(r);else if(this.Qo()===0){var i;this.Go(1),(i=K.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this.instance,`toolbar`,(e=>{if(e)return XC.error(`[Toolbar] Failed to load`,e),void this.Go(0);this.Go(2),this.Jo(r)})),Qy(W,`turbolinks:load`,(()=>{this.Go(0),this.loadToolbar(r)}))}return!0}Ko(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,n){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(e,t,n)}}},_w=q({experiments:aw},cw),vw=q({},cw,lw,uw,dw,fw,pw,hw,mw,gw,_w,{conversations:class{constructor(e){this.Yo=void 0,this._conversationsManager=null,this.Xo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Rg(t)||(Vg(t)?this.Yo=t:(this.Yo=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Yo=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Xo||this._instance.config.disable_conversations||$y(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=K?.__PosthogExtensions__;if(e&&!J(this.Yo)&&this.Yo)if(this.ea&&this.ea.token){this.Xo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Xo=!1);var n=e.loadExternalDependency;if(!n)return void this.ra(jy);n(this._instance,`conversations`,(t=>{t||!e.initConversations?this.ra(`Could not load conversations script`,t):this.ta(e.initConversations),this.Xo=!1}))}catch(e){this.ra(`Error initializing conversations`,e),this.Xo=!1}}else ow.error(`Conversations enabled but missing token in remote config.`)}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),ow.info(`Conversations loaded successfully`)}
21catch(e){this.ra(`Error completing conversations initialization`,e)}else ow.error(`Cannot complete initialization: remote config is null`)}ra(e,t){ow.error(e,t),this._conversationsManager=null,this.Xo=!1}show(){this._conversationsManager?this._conversationsManager.show():ow.warn(`Conversations not loaded yet.`)}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.Yo&&!Lg(this._conversationsManager)}isVisible(){var e;return(e=this._conversationsManager?.isVisible())!=null&&e}sendMessage(e,t,n){var r=this;return fg((function*(){return r._conversationsManager?r._conversationsManager.sendMessage(e,t,n):(ow.warn(sw),null)}))()}getMessages(e,t){var n=this;return fg((function*(){return n._conversationsManager?n._conversationsManager.getMessages(e,t):(ow.warn(sw),null)}))()}markAsRead(e){var t=this;return fg((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(ow.warn(sw),null)}))()}getTickets(e){var t=this;return fg((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(ow.warn(sw),null)}))()}requestRestoreLink(e){var t=this;return fg((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(ow.warn(sw),null)}))()}restoreFromToken(e){var t=this;return fg((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(ow.warn(sw),null)}))()}restoreFromUrlToken(){var e=this;return fg((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(ow.warn(sw),null)}))()}getCurrentTicketId(){return this._conversationsManager?.getCurrentTicketId()??null}getWidgetSessionId(){return this._conversationsManager?.getWidgetSessionId()??null}ln(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},{logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=Nv(`[logs]`),this.sa=[],this.oa=0,this.aa=0,this.ua=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t=e.logs?.captureConsoleLogs;!Rg(t)&&t&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.qr&&=(clearTimeout(this.qr),void 0),this.oa=0,this.aa=0,this.ua=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=K?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,`logs`,(t=>{var n;t||(n=e.logs)==null||!n.initializeLogs?this.Gt.error(`Could not load logs script`,t):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(jy)}else this.Gt.error(`PostHog Extensions not found.`)}}captureLog(e){if(this._instance.is_capturing())if(e&&e.body){var t=this._instance.config.logs?.flushIntervalMs??3e3,n=this._instance.config.logs?.maxLogsPerInterval??1e3,r=Date.now();if(t>r-this.aa||(this.aa=r,this.oa=0,this.ua=!1),n>this.oa){this.oa++;var i=function(e,t){var{text:n,number:r}=Z_[e.level||`info`]||Q_,i=String(Date.now())+`000000`,a={};t.distinctId&&(a.posthogDistinctId=t.distinctId),t.sessionId&&(a.sessionId=t.sessionId),t.currentUrl&&(a[`url.full`]=t.currentUrl),t.screenName&&(a[`screen.name`]=t.screenName),t.appState&&(a[`app.state`]=t.appState),t.activeFeatureFlags&&t.activeFeatureFlags.length>0&&(a.feature_flags=t.activeFeatureFlags);var o=q({},a,e.attributes||{}),s={timeUnixNano:i,observedTimeUnixNano:i,severityNumber:r,severityText:n,body:{stringValue:e.body},attributes:ev(o)};return e.trace_id&&(s.traceId=e.trace_id),e.span_id&&(s.spanId=e.span_id),J(e.trace_flags)||(s.flags=e.trace_flags),s}(e,this.la());this.sa.push({record:i}),(this._instance.config.logs?.maxBufferSize??100)>this.sa.length?this.ha():this.flushLogs()}else this.ua||=(this.Gt.warn(`captureLog dropping logs: exceeded `+n+` logs per `+t+`ms`),!0)}else this.Gt.warn(`captureLog requires a body`)}get logger(){return this.ca||={trace:(e,t)=>this.captureLog({body:e,level:`trace`,attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:`debug`,attributes:t}),info:(e,t)=>this.captureLog({body:e,level:`info`,attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:`warn`,attributes:t}),error:(e,t)=>
21this.captureLog({body:e,level:`error`,attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:`fatal`,attributes:t})},this.ca}flushLogs(e){if(this.qr&&=(clearTimeout(this.qr),void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var n=this._instance.config.logs,r=q({"service.name":n?.serviceName||`unknown_service`},n?.environment&&{"deployment.environment":n.environment},n?.serviceVersion&&{"service.version":n.serviceVersion},n?.resourceAttributes),i=function(e,t,n,r){return{resourceLogs:[{resource:{attributes:ev(t)},scopeLogs:[{scope:{name:n,version:r},logRecords:e}]}]}}(t.map((e=>e.record)),r,ug.LIB_NAME,ug.LIB_VERSION),a=this._instance.requestRouter.endpointFor(`api`,`/i/v1/logs`)+`?token=`+encodeURIComponent(this._instance.config.token);this._instance.Bi({method:`POST`,url:a,data:i,compression:`best-available`,batchKey:`logs`,transport:e})}}ha(){this.qr||=setTimeout((()=>{this.qr=void 0,this.flushLogs()}),this._instance.config.logs?.flushIntervalMs??3e3)}la(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:n}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=n}if(K!=null&&(e=K.location)!=null&&e.href&&(t.currentUrl=K.location.href),this._instance.featureFlags){var r=this._instance.featureFlags.getFlags();r&&r.length>0&&(t.activeFeatureFlags=r)}return t}}});RS.__defaultExtensionClasses=q({},vw);var yw,bw=(yw=TS[MS]=new RS,function(){function e(){e.done||(e.done=!0,NS=!1,Wy(TS,(function(e){e._dom_loaded()})))}G!=null&&G.addEventListener?G.readyState===`complete`?e():Qy(G,`DOMContentLoaded`,e,{capture:!1}):W&&Y.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),yw),xw;function Sw(e){xw=e}function Cw(){return xw}var ww=(0,R.createContext)({get client(){return Cw()},bootstrap:void 0});function Tw(e,t,n){if(n===void 0&&(n=new WeakMap),e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(n.has(e)&&n.get(e)===t)return!0;n.set(e,t);var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var a=0,o=r;a<o.length;a++){var s=o[a];if(!i.includes(s)||!Tw(e[s],t[s],n))return!1}return!0}function Ew(e){var t=e.children,n=e.client,r=e.apiKey,i=e.options,a=(0,R.useRef)(null),o=(0,R.useMemo)(function(){if(n)return r&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),i&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),n;var e=Cw();return r||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),e},[n,r,JSON.stringify(i)]);return(0,R.useEffect)(function(){if(!(n||!r)){var e=Cw(),t=a.current;t?(r!==t.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),i&&!Tw(i,t.options)&&e.set_config(i),a.current={apiKey:r,options:i??{}}):(e.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),e.init(r,i),a.current={apiKey:r,options:i??{}})}},[n,r,JSON.stringify(i)]),R.createElement(ww.Provider,{value:{client:o,bootstrap:i?.bootstrap??n?.config?.bootstrap}},t)}var Dw=function(e){return typeof e==`function`},Ow=function(e){return e===void 0},kw=function(){return(0,R.useContext)(ww).client},Aw=function(e,t){return Aw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Aw(e,t)};function jw(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Aw(e,t);function n(){this.constructor=e}
21e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Mw=function(e){var t=Object.prototype.toString.call(e);return e instanceof Error||t===`[object Error]`||t===`[object Exception]`||t===`[object DOMException]`||t===`[object DOMError]`},Nw=function(e,t){for(var n=new WeakSet,r=e;!n.has(r);){if(n.add(r),!Mw(r.cause)){Ow(r.cause)||(t.cause=r.cause),r.cause=t;return}r=r.cause}},Pw=function(e,t){if(!t)return e;var n=Error(Mw(e)?e.message:`Primitive value captured as exception: ${String(e)}`);return n.name=`React ErrorBoundary ${Mw(e)?e.name:`Error`}`,n.stack=t,Mw(e)?(Nw(e,n),e):n},Fw={componentStack:null,exceptionEvent:null,error:null},Iw={INVALID_FALLBACK:`[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element.`};(function(e){jw(t,e);function t(t){var n=e.call(this,t)||this;return n.state=Fw,n}return t.prototype.componentDidCatch=function(e,t){var n=this.props.additionalProperties,r;Dw(n)?r=n(e,t):typeof n==`object`&&(r=n);var i=this.context.client,a=t.componentStack,o=i.captureException(Pw(e,a),r);this.setState({error:e,componentStack:a??null,exceptionEvent:o})},t.prototype.render=function(){var e=this.props,t=e.children,n=e.fallback,r=this.state;if(r.componentStack==null)return Dw(t)?t():t;var i=Dw(n)?R.createElement(n,{error:r.error,componentStack:r.componentStack,exceptionEvent:r.exceptionEvent}):n;return R.isValidElement(i)?i:(console.warn(Iw.INVALID_FALLBACK),R.createElement(R.Fragment,null))},t.contextType=ww,t})(R.Component),Sw(bw);var Lw=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},Rw=[`light`,`dark`],zw=`(prefers-color-scheme: dark)`,Bw=typeof window>`u`,Vw=R.createContext(void 0),Hw={setTheme:e=>{},themes:[]},Uw=()=>R.useContext(Vw)??Hw,Ww=e=>R.useContext(Vw)?R.createElement(R.Fragment,null,e.children):R.createElement(Kw,{...e}),Gw=[`light`,`dark`],Kw=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i=`theme`,themes:a=Gw,defaultTheme:o=n?`system`:`light`,attribute:s=`data-theme`,value:c,children:l,nonce:u,scriptProps:d})=>{let[f,p]=R.useState(()=>Jw(i,o)),[m,h]=R.useState(()=>f===`system`?Xw():f),g=c?Object.values(c):a,_=R.useCallback(e=>{let i=e;if(!i)return;e===`system`&&n&&(i=Xw());let a=c?c[i]:i,l=t?Yw(u):null,d=document.documentElement,f=e=>{e===`class`?(d.classList.remove(...g),a&&d.classList.add(a)):e.startsWith(`data-`)&&(a?d.setAttribute(e,a):d.removeAttribute(e))};if(Array.isArray(s)?s.forEach(f):f(s),r){let e=Rw.includes(o)?o:null,t=Rw.includes(i)?i:e;d.style.colorScheme=t}l?.()},[u]),v=R.useCallback(e=>{let t=typeof e==`function`?e(f):e;p(t);try{localStorage.setItem(i,t)}catch{}},[f]),y=R.useCallback(t=>{h(Xw(t)),f===`system`&&n&&!e&&_(`system`)},[f,e]);R.useEffect(()=>{let e=window.matchMedia(zw);return e.addListener(y),y(e),()=>e.removeListener(y)},[y]),R.useEffect(()=>{let e=e=>{e.key===i&&(e.newValue?p(e.newValue):v(o))};return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[v]),R.useEffect(()=>{_(e??f)},[e,f]);let b=R.useMemo(()=>({theme:f,setTheme:v,forcedTheme:e,resolvedTheme:f===`system`?m:f,themes:n?[...a,`system`]:a,systemTheme:n?m:void 0}),[f,v,e,m,n,a]);return R.createElement(Vw.Provider,{value:b},R.createElement(qw,{forcedTheme:e,storageKey:i,attribute:s,enableSystem:n,enableColorScheme:r,defaultTheme:o,value:c,themes:a,nonce:u,scriptProps:d}),l)},qw=R.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return R.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${Lw.toString()})(${u})`}})}),Jw=(e,t)=>{if(Bw)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},Yw=e=>{let t=document.createElement(`style`);return e&&t.setAttribute(`nonce`,e),t.appendChild(document.createTextNode(`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},Xw=e=>(e||=window.matchMedia(zw),e.matches?`dark`:`light`),X=e=>typeof e==`string`,Zw=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}
21,Qw=e=>e==null?``:``+e,$w=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},eT=/###/g,tT=e=>e&&e.indexOf(`###`)>-1?e.replace(eT,`.`):e,nT=e=>!e||X(e),rT=(e,t,n)=>{let r=X(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(nT(e))return{};let t=tT(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return nT(e)?{}:{obj:e,k:tT(r[i])}},iT=(e,t,n)=>{let{obj:r,k:i}=rT(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=rT(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=rT(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},aT=(e,t,n,r)=>{let{obj:i,k:a}=rT(e,t,Object);i[a]=i[a]||[],i[a].push(n)},oT=(e,t)=>{let{obj:n,k:r}=rT(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},sT=(e,t,n)=>{let r=oT(e,n);return r===void 0?oT(t,n):r},cT=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?X(e[r])||e[r]instanceof String||X(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):cT(e[r],t[r],n):e[r]=t[r]);return e},lT=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),uT={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},dT=e=>X(e)?e.replace(/[&<>"'\/]/g,e=>uT[e]):e,fT=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},pT=[` `,`,`,`?`,`!`,`;`],mT=new fT(20),hT=(e,t,n)=>{t||=``,n||=``;let r=pT.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=mT.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},gT=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},_T=e=>e?.replace(/_/g,`-`),vT={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)}},yT=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||vT,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,n,r){return r&&!this.debug?null:(X(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},bT=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},xT=class extends bT{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&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,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):X(n)&&i?o.push(...n.split(i)):o.push(n)));let s=oT(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!X(n)?s:gT(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];
vendor: 10,550 bytes, line 21
21n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),iT(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(X(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=oT(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?cT(s,n,i):s={...s,...n},iT(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return 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}},ST={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},CT=Symbol(`i18next/PATH_KEY`);function wT(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===CT?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function TT(e,t){let{[CT]:n}=e(wT()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var ET={},DT=e=>!X(e)&&typeof e!=`boolean`&&typeof e!=`number`,OT=class e extends bT{constructor(e,t={}){super(),$w([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=yT.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=DT(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!hT(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:X(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:X(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=TT(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?TT(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!X(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,E=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,D=m;y&&!m&&x&&(D=E);let ee=DT(D),O=Object.prototype.toString.apply(D);if(y&&D&&ee&&_.indexOf(O)<0&&!(X(v)&&Array.isArray(D))){if(!i.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,D,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(D),t=e?[]:{},n=e?g:h;for(let e in D)if(Object.prototype.hasOwnProperty.call(D,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:DT(E)?E[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=D[e])}m=t}}else if(y&&X(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=E),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&E!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?E:m),o){let e=this.resolve(s,{...i,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,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||E)})}):n(e,s,E))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=X(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!X(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=X(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=ST.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return X(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?TT(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!X(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(X(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!ET[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(ET[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.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!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}
21getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!X(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},kT=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yT.create(`languageUtils`)}getScriptPartFromCode(e){if(e=_T(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=_T(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(X(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),X(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return X(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):X(e)&&i(this.formatLanguageCode(e)),n.forEac
21h(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},AT={zero:0,one:1,two:2,few:3,many:4,other:5},jT={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},MT=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=yT.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=_T(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),jT;if(!e.match(/-|_/))return jT;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>AT[e]-AT[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},NT=(e,t,n,r=`.`,i=!0)=>{let a=sT(e,t,n);return!a&&i&&X(n)&&(a=gT(e,n,r),a===void 0&&(a=gT(t,n,r))),a},PT=e=>e.replace(/\$/g,`$$$$`),FT=class{constructor(e={}){this.logger=yT.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?dT:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?lT(i):a||`{{`,this.suffix=o?lT(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?lT(d):f||lT(`$t(`),this.nestingSuffix=p?lT(p):m||lT(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new 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,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=NT(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(NT(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>PT(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?PT(this.escape(e)):PT(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=X(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !X(a)&&!this.useRawValueToEscape&&(a=Qw(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${lT(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!X(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;
21let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!X(i))return i;X(i)||(i=Qw(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},IT=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},LT=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(_T(r),i),t[o]=s),s(n)}},RT=e=>(t,n,r)=>e(_T(n),r)(t),zT=class{constructor(e={}){this.logger=yT.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?LT:RT;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=LT(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=IT(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},BT=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},VT=class extends bT{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=yT.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{aT(n.loaded,[i],a),BT(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}
21),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}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&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();X(e)&&(e=this.languageUtils.toResolveHierarchy(e)),X(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" 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!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},HT=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,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(typeof e[1]==`object`&&(t=e[1]),X(e[1])&&(t.defaultValue=e[1]),X(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),UT=e=>(X(e.ns)&&(e.ns=[e.ns]),X(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),X(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),WT=()=>{},GT=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},KT=`__i18next_supportNoticeShown`,qT=()=>!!(typeof globalThis<`u`&&globalThis[KT]||typeof process<`u`&&{}.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`),JT=()=>{typeof globalThis<`u`&&(globalThis[KT]=!0)},YT=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),XT=class e extends bT{constructor(e={},t){if(super(),this.options=UT(e),this.services={},this.logger=yT,this.modules={external:[]},GT(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,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(X(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=HT();this.options={...n,...this.options,...UT(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!YT(this)&&!qT()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),JT());let r=e=>
21e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?yT.init(r(this.modules.logger),this.options):yT.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:zT;let t=new kT(this.options);this.store=new xT(this.options.resources,this.options);let i=this.services;i.logger=yT,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new MT(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new FT(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new VT(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new OT(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||=WT,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(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 i=Zw(),a=()=>{let e=(e,n)=>{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),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=WT){let n=t,r=X(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):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),n(e)})}else n(null)}reloadResources(e,t,n){let r=Zw();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=WT,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}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 e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&ST.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Zw();
vendor: 2,082 bytes, line 21
21this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=X(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(X(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=TT(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=TT(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=TT(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return X(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}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;
21if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Zw();return this.options.ns?(X(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Zw();X(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(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{}let t=`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`.split(`.`),n=this.services?.languageUtils||new kT(HT());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=WT){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`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 xT(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...HT().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new FT(n)}return a.translator=new OT(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,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}}}.createInstance();XT.createInstance,XT.dir,XT.init,XT.loadResources,XT.reloadResources,XT.use,XT.changeLanguage,XT.getFixedT,XT.t,XT.exists,XT.setDefaultNamespace,XT.hasLoadedNamespace,XT.loadNamespaces,XT.loadLanguages;var ZT=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);iE(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},QT={},$T=(e,t,n,r)=>{iE(n)&&QT[n]||(iE(n)&&(QT[n]=new Date),ZT(e,t,n,r))},eE=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},tE=(e,t,n)=>{e.loadNamespaces(t,eE(e,n))},nE=(e,t,n,r)=>{if(iE(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return tE(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,eE(e,r))},rE=(e,t,n={})=>!t.languages||!t.languages.length?($T(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),iE=e=>typeof e==`string`,aE=e=>typeof e==`object`&&!!e,oE=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,sE={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},cE=e=>sE[e],lE={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(oE,cE),transDefaultProps:void 0},uE=(e={})=>{lE={...lE,...e}},dE=()=>lE,fE,pE=e=>{fE=e},mE=()=>fE,hE={type:`3rdParty`,init(e){uE(e.options.react),pE(e)}},gE=(0,R.createContext)(),_E=class{constructor(){this.usedNamespaces={}}
21addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},vE=Ju(),yE={t:(e,t)=>{if(iE(t))return t;if(aE(t)&&iE(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},bE=()=>()=>{},xE=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,R.useContext)(gE)||{},a=n||r||mE();a&&!a.reportNamespaces&&(a.reportNamespaces=new _E),a||$T(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next`);let o=(0,R.useMemo)(()=>({...dE(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,l=e||i||a?.options?.defaultNS,u=iE(l)?[l]:l||[`translation`],d=(0,R.useMemo)(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,R.useRef)(0),p=(0,R.useCallback)(e=>{if(!a)return bE;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{f.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),m=(0,R.useRef)(),h=(0,R.useCallback)(()=>{if(!a)return yE;let e=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(e=>rE(e,a,o)),n=t.lng||a.language,r=f.current,i=m.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?d:d[0],c),ready:e,lng:n,keyPrefix:c,revision:r};return m.current=s,s},[a,d,c,o,t.lng]),[g,_]=(0,R.useState)(0),{t:v,ready:y}=(0,vE.useSyncExternalStore)(p,h,h);(0,R.useEffect)(()=>{if(a&&!y&&!s){let e=()=>_(e=>e+1);t.lng?nE(a,t.lng,d,e):tE(a,d,e)}},[a,t.lng,d,y,s,g]);let b=a||{},x=(0,R.useRef)(null),S=(0,R.useRef)(),C=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},w=(0,R.useMemo)(()=>{let e=b,t=e?.language,n=e;e&&(x.current&&x.current.__original===e&&S.current===t?n=x.current:(n=C(e),x.current=n,S.current=t));let r=!y&&!s?(...e)=>($T(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),v(...e)):v,i=[r,n,y];return i.t=r,i.i18n=n,i.ready=y,i},[v,b,y,b.resolvedLanguage,b.language,b.languages]);if(a&&s&&!y)throw new Promise(e=>{let n=()=>e();t.lng?nE(a,t.lng,d,n):tE(a,d,n)});return w};function SE({i18n:e,defaultNS:t,children:n}){let r=(0,R.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,R.createElement)(gE.Provider,{value:r},n)}var CE=`GT-NSLG7BC6`,wE=`G-ZR2Z050BZ2`,TE=`data-ai-realty-gtag`,EE=`https://www.googletagmanager.com/gtag/js?id=${CE}`;function DE(){return(0,R.useEffect)(()=>{if(document.querySelector(`script[${TE}]`))return;let e=!1,t=null,n=null,r=[`pointerdown`,`keydown`,`scroll`,`touchstart`],i={once:!0,passive:!0},a=window,o=()=>{for(let e of r)window.removeEventListener(e,s);t!=null&&typeof a.cancelIdleCallback==`function`&&a.cancelIdleCallback(t),n!=null&&window.clearTimeout(n)};function s(){if(e)return;e=!0,o(),a.dataLayer=a.dataLayer??[],a.dataLayer.push({"gtm.start":Date.now(),event:`gtag.js`});let t=(...e)=>{a.dataLayer?.push(e)};a.gtag=a.gtag??t;let n=document.createElement(`script`);n.src=EE,n.async=!0,n.setAttribute(TE,`1`),n.onload=()=>{t(`js`,new Date),t(`config`,CE),t(`config`,wE)},document.head.appendChild(n)}for(let e of r)window.addEventListener(e,s,i);return typeof a.requestIdleCallback==`function`?t=a.requestIdleCallback(s,{timeout:8e3}):n=window.setTimeout(s,5e3),o},[]),null}var OE=`GTM-KPWSW9L2`,kE=`data-ai-realty-gtm`,AE=`https://www.googletagmanager.com/gtm.js?id=${OE}`;function jE(){return(0,R.useEffect)(()=>{if(document.querySelector(`script[${kE}]`))return;let e=!1,t=null,n=null,r=[`pointerdown`,`keydown`,`scroll`,`touchstart`],i={once:!0,passive:!0},a=window,o=()=>{for(let e of r)window.removeEventListener(e,s);t!=null&&typeof a.cancelIdleCallback==`function`&&a.cancelIdleCallback(t),n!=null&&window.clearTimeout(n)};function s(){if(e)return;e=!0,o(),a.dataLayer=a.dataLayer??[],a.dataLayer.push({"gtm.start":Date.now(),event:`gtm.js`});let t=document.createElement(`script`);t.src=AE,t.async=!0,t.setAttribute(kE,`1`),document.head.appendChild(t)}for(let e of r)window.addEventListener(e,s,i);return typeof a.requestIdleCallback==`function`?t=a.requestIdleCallback(s,{timeout:8e3}):n=window.setTimeout(s,5e3),o},[]),null}function ME(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var NE=e=>{switch(e){case`success`:return IE;case`info`:return RE;case`warning`:return LE;case`error`:return zE;default:return null}},PE=Array(12).fill(0),FE=({visible:e,className:t})=>R.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(
21Boolean).join(` `),"data-visible":e},R.createElement(`div`,{className:`sonner-spinner`},PE.map((e,t)=>R.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),IE=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},R.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),LE=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},R.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),RE=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},R.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),zE=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},R.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),BE=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},R.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),R.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),VE=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},HE=1,UE=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:HE++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>
21this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],R.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(GE(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!R.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!R.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!R.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!R.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||HE++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},WE=(e,t)=>{let n=t?.id||HE++;return UE.addToast({title:e,...t,id:n}),n},GE=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,KE=Object.assign(WE,{success:UE.success,info:UE.info,warning:UE.warning,error:UE.error,custom:UE.custom,message:UE.message,promise:UE.promise,dismiss:UE.dismiss,loading:UE.loading},{getHistory:()=>UE.toasts,getToasts:()=>UE.getActiveToasts()});ME(`
vendor: 14,859 bytes, line 21
21[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
21`);function qE(e){return e.label!==void 0}var JE=3,YE=`24px`,XE=`16px`,ZE=4e3,QE=356,$E=14,eD=45,tD=200;function nD(...e){return e.filter(Boolean).join(` `)}function rD(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var iD=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:E=`Close toast`}=e,[D,ee]=R.useState(null),[O,te]=R.useState(null),[k,ne]=R.useState(!1),[A,j]=R.use
21State(!1),[re,ie]=R.useState(!1),[M,N]=R.useState(!1),[ae,oe]=R.useState(!1),[se,P]=R.useState(0),[F,ce]=R.useState(0),le=R.useRef(n.duration||y||ZE),ue=R.useRef(null),de=R.useRef(null),fe=c===0,pe=c+1<=o,me=n.type,he=n.dismissible!==!1,ge=n.className||``,_e=n.descriptionClassName||``,ve=R.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),ye=R.useMemo(()=>n.closeButton??p,[n.closeButton,p]),be=R.useMemo(()=>n.duration||y||ZE,[n.duration,y]),xe=R.useRef(0),Se=R.useRef(0),Ce=R.useRef(0),we=R.useRef(null),[Te,Ee]=b.split(`-`),De=R.useMemo(()=>s.reduce((e,t,n)=>n>=ve?e:e+t.height,0),[s,ve]),Oe=VE(),ke=n.invert||t,Ae=me===`loading`;Se.current=R.useMemo(()=>ve*x+De,[ve,De]),R.useEffect(()=>{le.current=be},[be]),R.useEffect(()=>{ne(!0)},[]),R.useEffect(()=>{let e=de.current;if(e){let t=e.getBoundingClientRect().height;return ce(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),R.useLayoutEffect(()=>{if(!k)return;let e=de.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,ce(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[k,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let je=R.useCallback(()=>{j(!0),P(Se.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},tD)},[n,d,a,Se]);R.useEffect(()=>{if(n.promise&&me===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||Oe?(()=>{if(Ce.current<xe.current){let e=new Date().getTime()-xe.current;le.current-=e}Ce.current=new Date().getTime()})():le.current!==1/0&&(xe.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),je()},le.current)),()=>clearTimeout(e)},[u,i,n,me,Oe,je]),R.useEffect(()=>{n.delete&&(je(),n.onDismiss==null||n.onDismiss.call(n,n))},[je,n.delete]);function Me(){return w?.loading?R.createElement(`div`,{className:nD(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":me===`loading`},w.loading):R.createElement(FE,{className:nD(C?.loader,n?.classNames?.loader),visible:me===`loading`})}let Ne=n.icon||w?.[me]||NE(me);return R.createElement(`li`,{tabIndex:0,ref:de,className:nD(_,ge,C?.toast,n?.classNames?.toast,C?.default,C?.[me],n?.classNames?.[me]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":k,"data-promise":!!n.promise,"data-swiped":ae,"data-removed":A,"data-visible":pe,"data-y-position":Te,"data-x-position":Ee,"data-index":c,"data-front":fe,"data-swiping":re,"data-dismissible":he,"data-type":me,"data-invert":ke,"data-swipe-out":M,"data-swipe-direction":O,"data-expanded":!!(u||S&&k),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${A?se:Se.current}px`,"--initial-height":S?`auto`:`${F}px`,...m,...n.style},onDragEnd:()=>{ie(!1),ee(null),we.current=null},onPointerDown:e=>{e.button!==2&&(Ae||!he||(ue.current=new Date,P(Se.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(ie(!0),we.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(M||!he)return;we.current=null;let e=Number(de.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(de.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-ue.current?.getTime(),i=D===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=eD||a>.11){P(Se.current),n.onDismiss==null||n.onDismiss.call(n,n),te(D===`x`?e>0?`right`:`left`:t>0?`down`:`up`),je(),N(!0);return}else{var o,s;(o=de.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=de.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}oe(!1),ie(!1),ee(null)},onPointerMove:t=>{var n,r;if(!we.current||!he||window.getSelection()?.toString().length>0)return;let i=t.clientY-we.current.y,a=t.clientX-we.current.x,o=e.swipeDirections??rD(b);!D&&(Math.abs(a)>1||Math.abs(i)>1)&&ee(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(D===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(D===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&oe(!0),(n=de.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=de.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},ye&&!n.jsx&&me!==`loading`?R.createElement(`button`,{"aria-label":E,"data-disabled":Ae,"data-close-button":!0,onClick:Ae||!he?()=>{}:()=>{je(),n.onDismiss==null||n.onDismiss.call(n,n)},className:nD(C?.closeButton,n?.classNames?.closeButton)},w?.close??BE):null,(me||n.icon||n.promise)&&n.icon!==null&&(w?.[me]!==null||n.icon)?R.createElement(`div`,{"data-icon":``,className:nD(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Me():null,n.type===`loading`?null:Ne):null,R.createElement(`div`,{"data-content":``,className:nD(C?.content,n?.classNames?.content)},R.createElement(`div`,{"data-title":``,className:nD(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?R.createElement(`div`,{"data-description":``,className:nD(v,_e,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),R.isValidElement(n.cancel)?n.c
21ancel:n.cancel&&qE(n.cancel)?R.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{qE(n.cancel)&&he&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),je())},className:nD(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,R.isValidElement(n.action)?n.action:n.action&&qE(n.action)?R.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{qE(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&je())},className:nD(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function aD(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function oD(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?XE:YE;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var sD=R.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=JE,toastOptions:g,dir:_=aD(),gap:v=$E,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=R.useState([]),C=R.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=R.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[E,D]=R.useState([]),[ee,O]=R.useState(!1),[te,k]=R.useState(!1),[ne,A]=R.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),j=R.useRef(null),re=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),ie=R.useRef(null),M=R.useRef(!1),N=R.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||UE.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return R.useEffect(()=>UE.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{cd.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),R.useEffect(()=>{if(d!==`system`){A(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?A(`dark`):A(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{A(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{A(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),R.useEffect(()=>{x.length<=1&&O(!1)},[x]),R.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;O(!0),(t=j.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===j.current||j.current?.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),R.useEffect(()=>{if(j.current)return()=>{ie.current&&(ie.current.focus({preventScroll:!0}),ie.current=null,M.current=!1)}},[j.current]),R.createElement(`section`,{ref:t,"aria-label":`${b} ${re}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?R.createElement(`ol`,{key:t,dir:_===`auto`?aD():_,tabIndex:-1,ref:j,className:c,"data-sonner-toaster":!0,"data-sonner-theme":ne,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${E[0]?.height||0}px`,"--width":`${QE}px`,"--gap":`${v}px`,...m,...oD(l,u)},onBlur:e=>{M.current&&!e.currentTarget.contains(e.relatedTarget)&&(M.current=!1,ie.current&&=(ie.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`fal
21se`||M.current||(M.current=!0,ie.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{te||O(!1)},onDragEnd:()=>O(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||k(!0)},onPointerUp:()=>k(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>R.createElement(iD,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:te,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:N,toasts:C.filter(e=>e.position==n.position),heights:E.filter(e=>e.position==n.position),setHeights:D,expandByDefault:o,gap:v,expanded:ee,swipeDirections:e.swipeDirections}))):null}))}),cD=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z`})),lD=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z`})),uD=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z`})),dD=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z`})),fD=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z`})),pD=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z`})),mD=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 10.5858L14.8284 7.75736L16.2426 9.17157L13.4142 12L16.2426 14.8284L14.8284 16.2426L12 13.4142L9.17157 16.2426L7.75736 14.8284L10.5858 12L7.75736 9.17157L9.17157 7.75736L12 10.5858Z`})),hD=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z`})),gD=({color:e=`currentColor`,size:t=24,className:n,...r})=>
21R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z`})),_D=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z`})),vD=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M6.94048 4.99993C6.94011 5.81424 6.44608 6.54702 5.69134 6.85273C4.9366 7.15845 4.07187 6.97605 3.5049 6.39155C2.93793 5.80704 2.78195 4.93715 3.1105 4.19207C3.43906 3.44699 4.18654 2.9755 5.00048 2.99993C6.08155 3.03238 6.94097 3.91837 6.94048 4.99993ZM7.00048 8.47993H3.00048V20.9999H7.00048V8.47993ZM13.3205 8.47993H9.34048V20.9999H13.2805V14.4299C13.2805 10.7699 18.0505 10.4299 18.0505 14.4299V20.9999H22.0005V13.0699C22.0005 6.89993 14.9405 7.12993 13.2805 10.1599L13.3205 8.47993Z`})),yD=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z`})),bD=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z`})),xD=({color:e=`currentColor`,size:t=24,className:n,...r})=>R.createElement(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,fill:e,...r,className:`remixicon `+(n||``)},R.createElement(`path`,{d:`M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z`})),SD=({...e})=>{let{theme:t=`system`}=Uw();return(0,z.jsx)(sD,{theme:t,className:`toaster group`,icons:{success:(0,z.jsx)(pD,{
21className:`size-4`}),info:(0,z.jsx)(_D,{className:`size-4`}),warning:(0,z.jsx)(gD,{className:`size-4`}),error:(0,z.jsx)(mD,{className:`size-4`}),loading:(0,z.jsx)(yD,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},toastOptions:{classNames:{toast:`cn-toast`}},...e})},CD=`data-ai-realty-yandex-metrika`,wD=e=>`https://mc.yandex.ru/metrika/tag.js?id=${e}`;function TD({id:e}){return(0,R.useEffect)(()=>{if(!e||document.querySelector(`script[${CD}]`))return;let t=window,n=()=>{if(document.querySelector(`script[${CD}]`))return;if(!t.ym){let e=(...t)=>{e.a=e.a??[],e.a.push(t)};e.l=Date.now(),t.ym=e}let n=document.createElement(`script`);n.src=wD(e),n.async=!0,n.setAttribute(CD,`1`),n.onload=()=>{t.ym?.(e,`init`,{defer:!0,ssr:!1,webvisor:!1,clickmap:!0,trackLinks:!0,accurateTrackBounce:!0,ecommerce:`dataLayer`}),t.ym?.(e,`hit`,location.href,{title:document.title,referer:document.referrer})},document.head.appendChild(n)};if(typeof t.requestIdleCallback==`function`){let e=t.requestIdleCallback(n,{timeout:4e3});return()=>t.cancelIdleCallback?.(e)}let r=window.setTimeout(n,3e3);return()=>window.clearTimeout(r)},[e]),null}var ED=(e,t,n)=>{let r=t.lastIndexOf(`?`),i=e[r===-1||r<t.lastIndexOf(`/`)?t:t.slice(0,r)];return i?typeof i==`function`?i():Promise.resolve(i):new Promise((e,r)=>{(typeof queueMicrotask==`function`?queueMicrotask:setTimeout)(r.bind(null,Error(`Unknown variable dynamic import: `+t+(t.split(`/`).length===n?``:`. Note that variables only represent file names one level deep.`))))})},DD=function(e){return{type:`backend`,init:function(e,t,n){},read:function(t,n,r){if(typeof e==`function`){if(e.length<3){try{var i=e(t,n);i&&typeof i.then==`function`?i.then(function(e){return r(null,e&&e.default||e)}).catch(r):r(null,i)}catch(e){r(e)}return}e(t,n,r);return}r(null,e&&e[t]&&e[t][n])}}},OD={PUBLIC_SIGN_IN:`Sign in`,PUBLIC_LOG_IN:`Log in`,PUBLIC_REGISTRATION:`Registration`,PUBLIC_START_PROMOTION:`Start a promotion · from €19`,PUBLIC_BACK_TO_MAIN:`Back to main`,PUBLIC_LEARN_MORE:`Learn more`,PUBLIC_CONTACT:`Contact`,PUBLIC_REQUEST_DECK:`Request deck`,PUBLIC_INVESTOR_PAGE:`Investor page`,PUBLIC_BROWSE_DIRECTORY:`Browse directory`,NAV_HOW_IT_WORKS:`How it works`,NAV_CASES:`Cases`,NAV_PRICING:`Pricing`,NAV_INVESTORS:`Investors`,NAV_ARTICLES:`Articles`,NAV_REALTORS:`Realtors`,NAV_ABOUT:`About`,NAV_FAQ:`FAQ`,NAV_HOME:`Home`,NAV_DIRECTORY:`Directory`,NAV_FOR_REALTORS:`For realtors`,NAV_TEAM:`Team`,LANDING_META_TITLE:`AI Realty — Automated Real Estate Ads in 2 Minutes`,LANDING_META_DESC:`Launch AI-powered real estate ads on Instagram, TikTok, YouTube & Facebook in 2 minutes. For agents, agencies & developers. Start free.`,LANDING_HERO_BADGE:`AI-driven property promotion`,LANDING_HERO_TITLE_1:`Launch ads in 2 minutes. Sell faster.`,LANDING_HERO_TITLE_2:`Become the agent buyers remember.`,LANDING_HERO_DESC:`For real estate agents, agencies and developers. Upload your listing, set the budget — our AI launches and optimises ads on Instagram, TikTok, YouTube and Facebook, and reports what is working in one transparent dashboard.`,LANDING_HERO_SEE_HOW:`See how it works`,LANDING_HERO_SECURE:`Secure payments via Stripe`,LANDING_HERO_TRANSPARENT:`Transparent budget — no hidden fees`,LANDING_HERO_GDPR:`GDPR · encrypted storage`,LANDING_HOW_KICKER:`How it works`,LANDING_HOW_TITLE:`From listing to live ads in 5 simple steps`,LANDING_HOW_SUB:`No ad-platform expertise required. Every step explains what it changes and how it affects your result.`,LANDING_OUTCOMES_KICKER:`What you get`,LANDING_OUTCOMES_TITLE:`Real outcomes — not just a launched campaign`,LANDING_CASES_KICKER:`Cases`,LANDING_CASES_TITLE:`Real sales cases powered by video ads`,LANDING_CASES_SUB:`Each card shows the property price, ad budget, potential clients and sale timeline. Leads are what matters most for agents.`,LANDING_BUDGET_KICKER:`Budget calculator`,LANDING_BUDGET_TITLE:`See your recommended budget — before you pay.`,LANDING_BUDGET_DESC:`We calculate budget from your property price and the platforms you choose. The minimum is a safe start; the recommended level gives a realistic chance at a measurable result.`,LANDING_ARTICLES_KICKER:`Resources & insights`,LANDING_ARTICLES_TITLE:`Real estate marketing playbooks, guides and case studies`,LANDING_ARTICLES_SUB:`Practical articles on real estate lead generation, paid ads, CRM workflows and conversion optimisation — written for agents who want to grow without guesswork.`,LANDING_FAQ_KICKER:`FAQ`,LANDING_FAQ_TITLE:`Real estate marketing & lead generation — answered in plain English`,LANDING_FAQ_SUB:`Everything agents, brokers and developers ask before launching ads.`,LANDING_FINAL_CTA_TITLE:`List once. Reach the right buyer everywhere.`,LANDING_FINAL_CTA_DESC:`You will see your recommended budget, expected reach, and the full breakdown before you pay. No subscription, no commitment.`,ABOUT_META_TITLE:`About AI Realty Global — AI Ads & Real Estate Agent Directory`,ABOUT_META_DESC:`AI Realty Global builds AI Ads for real estate promotion and a global realtor directory for verified agents, agencies, developers, investors and property buyers.`,ABOUT_HERO_BADGE:`AI real estate infrastru
21cture`,ABOUT_HERO_TITLE:`AI Realty Global connects property advertising, verified agents and AI search visibility`,ABOUT_HERO_DESC:`A Portugal-born platform building two connected products for the global real estate market: AI Ads that help agents launch property promotion in minutes, and a multilingual realtor directory that helps buyers find trusted specialists by city, region and country.`,ABOUT_CONTACT_TITLE:`Contact & company details`,ABOUT_CONTACT_SUB:`Fast support for agents, agencies and partners.`,ABOUT_US_HEADING:`About us`,ABOUT_AI_ADS_HEADING:`AI Ads: launch property promotion in minutes`,ABOUT_DIRECTORY_HEADING:`Global realtor directory for verified local specialists`,ABOUT_WHY_HEADING:`Why it matters`,ABOUT_INVESTOR_KICKER:`For investors`,ABOUT_INVESTOR_TITLE:`We are considering investment for marketing and infrastructure growth`,ABOUT_INVESTOR_FORM_TITLE:`Investor contact`,ABOUT_INVESTOR_FORM_SUBMIT:`Send investor request`,ABOUT_TEAM_HEADING:`Team`,ABOUT_TEAM_FOUNDER_ROLE:`CEO & Founder`,ABOUT_TEAM_FOUNDER_BIO:`Founder of AI Realty Global. Leads strategy, business development and investor relations.`,ABOUT_TEAM_DEV_ROLE:`Product & Engineering`,ABOUT_TEAM_DEV_BIO:`Builds the AI Realty product, AI Ads platform and realtor directory.`,ABOUT_TEAM_SCOUT_ROLE:`AI client assistant`,ABOUT_TEAM_SCOUT_BIO:`Scout is the loyal helper for finding clients and learning how to use the platform with confidence.`,PRICING_META_TITLE:`Pricing — AI Realty Plans for Agents & Agencies`,PRICING_META_DESC:`Visibility €19/mo, SEO/GEO €499/6mo, Autopilot lead packages from €299, AI Realty Capital. Choose the right plan for your real estate growth.`,PRICING_HERO_BADGE:`Pricing`,PRICING_HERO_TITLE:`Choose how you grow your real estate business`,PRICING_HERO_DESC:`From profile visibility and AI search rankings to guaranteed warm lead packages and co-invested marketing.`,PRICING_TABLE_PLAN:`Plan`,PRICING_TABLE_AUDIENCE:`Target audience`,PRICING_TABLE_INCLUDES:`What's included`,PRICING_TABLE_PRICE:`Price`,PRICING_TABLE_ACTION:`Action`,PRICING_CTA_CONNECT:`Get started`,PRICING_CTA_ORDER_LEADS:`Order leads`,PRICING_CTA_APPLY:`Apply now`,PRICING_PRICE_APPROVAL:`Upon approval`,PRICING_BILLING_MONTHLY:`Monthly`,PRICING_BILLING_YEARLY:`Yearly`,PRICING_BILLING_SAVE:`Save 20%`,PRICING_BUDGET_BANNER:`Minimum advertising budget to launch a campaign: €100/month. Client ad budget passes through the platform.`,PRICING_PLAN_PROFILE:`Profile`,PRICING_PLAN_ADVERTISING:`Advertising`,PRICING_PLAN_COMPETITORS:`Competitors`,PRICING_ADDONS_TITLE:`Add-ons`,PRICING_MRR_TITLE:`MRR calculator`,PRICING_MRR_DESC:`MRR = subscription + commission from ad budgets. Conservative default: Pro with €300 ad budget.`,PRICING_MRR_PRO_AGENTS:`Pro agents`,PRICING_MRR_AGENCY_ACCOUNTS:`Agency accounts`,PRICING_MRR_AVG_BUDGET:`Average ad budget`,PRICING_MOST_POPULAR:`Most popular`,INVESTORS_META_TITLE:`Invest in AI Realty Global — PropTech AI Ads & Realtor Directory`,INVESTORS_META_DESC:`Investor page for AI Realty Global: Portugal-born PropTech building AI Ads for real estate, a global realtor directory and SEO/GEO infrastructure. Pitch deck on request.`,INVESTORS_HERO_BADGE:`Investor relations`,INVESTORS_HERO_TITLE:`AI Realty Global is building AI advertising and search infrastructure for real estate`,INVESTORS_HERO_DESC:`A Portugal-born PropTech platform combining AI Ads for real estate promotion, a global realtor directory, SEO/GEO-ready profile pages and performance data for agents, agencies, developers and property buyers.`,INVESTORS_CONSIDERING_TITLE:`Currently considering investment`,INVESTORS_CONSIDERING_DESC:`We are open to conversations with venture funds, angel investors, family offices, strategic real estate groups and PropTech operators.`,INVESTORS_THESIS_TITLE:`Investment thesis`,INVESTORS_PRODUCTS_TITLE:`Products`,INVESTORS_ROADMAP_TITLE:`Roadmap`,INVESTORS_TABLE_TITLE:`Investor operating table`,INVESTORS_DECK_KICKER:`Pitch deck request`,INVESTORS_DECK_TITLE:`Request the investor presentation`,INVESTORS_DECK_SUBMIT:`Request pitch deck`,INVESTORS_DECK_SUBMITTING:`Sending request...`,INVESTORS_DECK_SUCCESS_TITLE:`Pitch deck requested!`,INVESTORS_DECK_SUCCESS_DESC:`Thank you for your interest. We will share the presentation, roadmap and fundraising conversation materials by email.`,INVESTORS_DECK_SEND_ANOTHER:`Send another request`,INVESTORS_FAQ_TITLE:`Investor FAQ`,DIRECTORY_META_TITLE:`Find Verified Real Estate Agents in Portugal & Spain`,DIRECTORY_META_DESC:`Browse 1,000+ verified realtors in Portugal and Spain. Filter by city and specialty. Get matched with an agent within 24 hours.`,DIRECTORY_HERO_BADGE:`Real estate agent directory`,DIRECTORY_HERO_TITLE:`Find a trusted realtor in your city or region`,DIRECTORY_HERO_DESC:`Fill out the form and the nearest available verified real estate agent will contact you within 24 hours. Or browse the directory below to choose a realtor manually.`,DIRECTORY_TRUST_FREE:`Free and no registration`,DIRECTORY_TRUST_VERIFIED:`Verified realtors only`,DIRECTORY_TRUST_REPLY:`Reply within 24 hours`,DIRECTORY_HOW_FOR_CLIENTS_KICKER:`For clients`,DIRECTORY_HOW_FOR_CLIENTS_TITLE:`How the directory works`,DIRECTORY_HOW_FOR_CLIENTS_DESC:`Tell us what property help you need, choose the location and leave your contact details. The best available verified realtors from your city or region can contact you within 24 hours.`,DIRECTORY_HOW_FOR_AGENTS_KICKER:`For realtors`,DIRECTORY_HOW_FOR_AGENTS_TITLE:`Why profile quality matters`,DIRECTORY_HOW_FOR_AGENTS_DESC:`The more complete your profile is, the more trust it creates. Add your services, cities, languages, certificates, listings, reviews and video introduction so clients are more likely to contact you directly.`,DIRECTORY_FILTERS_TITLE:`Filters`,DIRECTORY_FILTERS_SEARCH:`Search realtors by name or city...`,DIRECTORY_FILTERS_ANY_COUNTRY:`Any country`,DIRECTORY_FILTERS_ANY_CITY:`Any city`,DIRECTORY_FILTERS_ANY_STATE:`Any district / state`,DIRECTORY_FILTERS_ANY_SPECIALTY:`Any specialty`,DIRECTORY_RESULTS_HINT:`agents found. The best-filled profiles are shown first.`,DIRECTORY_TOP_REALTORS:`Top realtors`,DIRECTORY_NO_RESULTS:`No agents found`,DIRECTORY_NO_RESULTS_HINT:`Try adjusting your search or filters.`,FOOTER_PRIVACY:`Privacy`,FOOTER_TERMS:`Terms`,CABINET_BACK_TO_MAIN:`Back to main`},kD=c({default:()=>AD}),AD={...OD,HELLO_WORLD:`Hello World`,PASSWORD:`Password`,NAME:`Name`,ROLE:`Role`,CREATE_USER:`Create User`,CREATING:`Creating...`,REASON:`Reason`,EXPIRATION_DATE:`Expiration Date`,PICK_A_DATE:`Pick a date`,BANNING:`Banning...`,BAN_USER:`Ban User`,UNBAN:`Unban`,BAN:`Ban`,EMAIL:`Email`,ACTIONS:`A
21ctions`,BANNED:`Banned`,YES:`Yes`,NO:`No`,ADMIN:`Admin`,USER:`User`,MEMBER:`Member`,IMPERSONATE:`Impersonate`,ADMIN_DASHBOARD:`Admin Dashboard`,USER_CREATED_SUCCESS:`User created successfully`,FAILED_TO_CREATE_USER:`Failed to create user`,USER_DELETED_SUCCESS:`User deleted successfully`,FAILED_TO_DELETE_USER:`Failed to delete user`,SESSIONS_REVOKED_SUCCESS:`Sessions revoked successfully`,FAILED_TO_REVOKE_SESSIONS:`Failed to revoke sessions`,IMPERSONATED_USER:`Impersonated user`,FAILED_TO_IMPERSONATE_USER:`Failed to impersonate user`,EXPIRATION_DATE_REQUIRED:`Expiration date is required`,USER_BANNED_SUCCESS:`User banned successfully`,FAILED_TO_BAN_USER:`Failed to ban user`,USER_UNBANNED_SUCCESS:`User unbanned successfully`,FAILED_TO_UNBAN_USER:`Failed to unban user`,GO_BACK:`Go Back`,RETRY:`Retry?`,POSTS_TITLE:`Posts`,CREATE_POST:`Create Post`,CREATE_POST_DESC:`Write about an interesting topic!`,POST_CREATED_SUCCESS:`Your post has been created!`,POST_CREATION_ERROR:`An unknown error has occurred. Please try again!`,TITLE:`Title`,CONTENT:`Content`,DESCRIPTION:`Description`,NO_POSTS_AVAILABLE:`There are no posts available.`,NO_CONTENT_AVAILABLE:`No content available.`,CREATED_BY:`Created by`,HOME:`Home`,POSTS:`Posts`,SETTINGS:`Settings`,LOGIN:`Login`,REGISTER:`Register`,THEME:`Theme`,LOGOUT:`Logout`,SIGN_IN:`Sign In`,SIGN_IN_DESC:`Enter your email below to login to your account`,SIGN_UP:`Sign Up`,SIGN_UP_DESC:`Enter your information below to create your account`,FORGOT_PASSWORD:`Forgot Password`,FORGOT_PASSWORD_DESC:`Enter your email to reset your password`,RESET_PASSWORD:`Reset Password`,RESET_PASSWORD_DESC:`Enter your new password`,REMEMBER_ME:`Remember me`,DONT_HAVE_ACCOUNT:`Don't have an account?`,ALREADY_HAVE_ACCOUNT:`Already have an account?`,LOG_IN:`Log in`,FIRST_NAME:`First name`,LAST_NAME:`Last name`,CONFIRM_PASSWORD:`Confirm Password`,PROFILE_IMAGE:`Profile Image (optional)`,SUBMIT:`Submit`,CREATE_ACCOUNT:`Create an account`,FORGOT_YOUR_PASSWORD:`Forgot your password?`,SIGN_IN_WITH_PASSKEY:`Sign-in with Passkey`,SIGN_IN_WITH_GOOGLE:`Sign in with Google`,SIGN_IN_WITH_GITHUB:`Sign in with Github`,POWERED_BY:`Powered by`,SECURED_BY:`Secured by`,NEW_PASSWORD:`New password`,CONFIRM_NEW_PASSWORD:`Confirm password`,RESETTING:`Resetting...`,RESET_PASSWORD_BUTTON:`Reset password`,CHECK_EMAIL:`Check your email`,PASSWORD_RESET_LINK_SENT:`We've sent a password reset link to your email.`,CHECK_SPAM:`If you don't see the email, check your spam folder.`,BACK_TO_RESET:`Back to reset password`,ENTER_EMAIL:`Enter your email`,SENDING:`Sending...`,SEND_RESET_LINK:`Send reset link`,BACK_TO_SIGN_IN:`Back to sign in`,TWO_FACTOR_AUTH:`Two-Factor Authentication`,VERIFY_IDENTITY:`Verify your identity with a one-time password`,SEND_OTP_EMAIL:`Send OTP to Email`,ONE_TIME_PASSWORD:`One-Time Password`,CHECK_EMAIL_OTP:`Check your email at`,ENTER_6_DIGIT:`Enter 6-digit OTP`,VALIDATE_OTP:`Validate OTP`,OTP_SENT:`OTP sent to your email`,OTP_VALIDATED:`OTP validated successfully`,INVALID_OTP:`Invalid OTP`,TOTP_VERIFICATION:`TOTP Verification`,ENTER_TOTP:`Enter your 6-digit TOTP code to authenticate`,TOTP_CODE:`TOTP Code`,ENTER_6_DIGIT_CODE:`Enter 6-digit code`,TOTP_ERROR:`TOTP code must be 6 digits`,VERIFY:`Verify`,VERIFICATION_SUCCESSFUL:`Verification Successful`,SWITCH_EMAIL_VERIFICATION:`Switch to Email Verification`,ORG_INVITATION:`Organization Invitation`,ORG_INVITATION_DESC:`You've been invited to join an organization`,INVITED_BY:`has invited you to join`,INVITATION_SENT_TO:`This invitation was sent to`,WELCOME_TO:`Welc
21ome to`,JOIN_SUCCESS:`You've successfully joined the organization. We're excited to have you on board!`,INVITATION_DECLINED:`Invitation Declined`,DECLINED_MESSAGE:`You've declined the invitation to join`,DECLINE:`Decline`,ACCEPT_INVITATION:`Accept Invitation`,INVITATION_ERROR:`Invitation Error`,INVITATION_ERROR_DESC:`There was an issue with your invitation.`,INVITATION_ERROR_MESSAGE:`The invitation you're trying to access is either invalid or you don't have the correct permissions. Please check your email for a valid invitation or contact the person who sent it.`,GO_HOME:`Go back to home`,SELECT_USER:`Select a user`,CURRENT_ACCOUNT:`Current Account`,SWITCH_ACCOUNT:`Switch Account`,ADD_ACCOUNT:`Add Account`,ORGANIZATION:`Organization`,PERSONAL:`Personal`,NEW_ORGANIZATION:`New Organization`,MEMBERS:`Members`,OWNER:`Owner`,INVITES:`Invites`,NO_ACTIVE_INVITATIONS:`No Active Invitations`,CANT_INVITE_PERSONAL:`You can't invite members to your personal workspace.`,CREATE_ORGANIZATION:`Create a new organization to collaborate with your team.`,ORGANIZATION_NAME:`Organization Name`,ORGANIZATION_SLUG:`Organization Slug`,LOGO:`Logo`,CREATE:`Create`,INVITE_MEMBER:`Invite Member`,INVITE_MEMBER_DESC:`Invite a member to your organization.`,INVITE:`Invite`,LEAVE:`Leave`,REMOVE:`Remove`,REVOKE:`Revoke`,VERIFY_EMAIL:`Verify Your Email Address`,VERIFY_EMAIL_DESC:`Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.`,RESEND_VERIFICATION:`Resend Verification Email`,ACTIVE_SESSIONS:`Active Sessions`,SIGN_OUT:`Sign Out`,TERMINATE:`Terminate`,PASSKEYS:`Passkeys`,TWO_FACTOR:`Two Factor`,SCAN_QR_CODE:`Scan QR Code`,SCAN_QR_DESC:`Scan the QR code with your TOTP app`,COPY_URI:`Copy URI to clipboard`,ENTER_PASSWORD:`Enter Password`,SHOW_QR_CODE:`Show QR Code`,DISABLE_2FA:`Disable 2FA`,ENABLE_2FA:`Enable 2FA`,DISABLE_2FA_DESC:`Disable the second factor authentication from your account`,ENABLE_2FA_DESC:`Enable 2FA to secure your account`,ENTER_OTP:`Enter OTP`,SIGN_OUT_DEVICES:`Sign out from other devices`,CHANGE_PASSWORD:`Change Password`,CHANGE_PASSWORD_DESC:`Change your password`,CURRENT_PASSWORD:`Current Password`,EDIT_USER:`Edit User`,EDIT_USER_DESC:`Edit user information`,FULL_NAME:`Full Name`,UPDATE:`Update`,ADD_NEW_PASSKEY:`Add New Passkey`,ADD_PASSKEY_DESC:`Create a new passkey to securely access your account without a password.`,PASSKEY_NAME:`Passkey Name`,CREATE_PASSKEY:`Create Passkey`,LIST_PASSKEYS:`List of passkeys`,NO_PASSKEYS:`No passkeys found`,NEW_PASSKEY:`New Passkey`,CLOSE:`Close`,LANGUAGE:`Language`,ENGLISH:`English`,GERMAN:`German`,PORTUGUESE:`Portuguese`,SPANISH:`Spanish`,SHORT_VIDEOS_TITLE:`Short Videos`,SHORT_VIDEOS_DESC:`Manage short videos for Instagram Reels, YouTube Shorts, TikTok`,UPLOAD_VIDEO:`Upload Video`,UPLOAD_NEW_VIDEO:`Upload New Video`,UPLOAD_VIDEO_DESC:`Upload a short video for publishing on platforms`,ENTER_VIDEO_TITLE:`Enter video title (optional)`,VIDEO_TITLE_DESC:`Give your video a title to help identify it`,VIDEO_LANGUAGE:`Video Language`,SELECT_LANGUAGE:`Select Language`,VIDEO_HAS_SUBTITLES:`Video has subtitles`,DRAG_DROP_VIDEO:`Drag video here or click to select`,CLICK_TO_SELECT:`click to select`,SUPPORTED_FORMATS:`All video formats supported (up to 25MB)`,UPLOADING:`Uploading...`,VIDEO_UPLOADED_SUCCESS:`Video uploaded successfully`,VIDEO_UPLOAD_ERROR:`Error uploading video`,PLEASE_SELECT_VIDEO:`Please select a video file`,FILE_TOO_LARGE:`File size must not exceed 25MB`,NO_VIDEOS:`No Videos`,NO_VIDEOS_DESC:`Upload your first short video for publishing on platforms`,NO_VIDEOS_IN_RANGE:`No videos for the selected period`,LANGUAGE_LABEL:`Language`,SUBTITLES:`Subtitles`,ADD_SUBTITLES:`Add Subtitles`,TRANSLATE:`Translate`,TRANSLATE_VIDEO:`Translate Video`,TRANSLATE_VIDEO_DESC:`Select the language to translate the video to`,TARGET_LANGUAGE:`Target Language`,CREATE_TRANSLATION:`Create Translation`,CREATING_TRANSLATION:`Creating translation...`,TRANSLATION_CREATED:`Translation created. Video is processing...`,TRANSLATION_ERROR:`Error creating translation`,PLEASE_SELECT_LANGUAGE:`Please select a language`,PUBLISH:`Publish`,DELET
21E:`Delete`,DELETE_VIDEO:`Delete Video?`,DELETE_VIDEO_DESC:`This action cannot be undone. The video and all its derivatives will be deleted.`,CANCEL:`Cancel`,VIDEO_DELETED:`Video deleted`,DELETE_VIDEO_ERROR:`Error deleting video`,VIDEO_PROCESSING:`Video is processing...`,VIDEO_FAILED:`Video processing failed`,ADD_SUBTITLES_SOON:`Adding subtitles will be available soon`,PUBLISH_SOON:`Publishing to platforms will be available soon`,PUBLISH_VIDEO:`Publish Video`,SELECT_SOCIAL_MEDIA:`Select the social media platforms where you want to publish your short video`,INSTAGRAM_REELS:`Instagram Reels`,YOUTUBE_SHORTS:`YouTube Shorts`,TIKTOK:`TikTok`,FACEBOOK_SHORTS:`Facebook Shorts`,PLEASE_SELECT_PLATFORM:`Please select at least one platform`,SOCIAL_MEDIA_ACCOUNTS:`Social Media Accounts`,SOCIAL_MEDIA_ACCOUNTS_DESCRIPTION:`Connect your social media accounts to publish videos directly to multiple platforms`,SUCCESS:`Success`,ERROR:`Error`,DATE_FILTER:`Date Filter:`,RESET_FILTER:`Reset Filter`,SELECT_DATE_RANGE:`Select Date Range`,SHOWING_VIDEOS:`Showing {{count}} of {{total}} videos`,PAGE_OF:`Page {{current}} of {{total}}`,STATUS_READY:`ready`,STATUS_PROCESSING:`processing`,STATUS_PENDING:`pending`,STATUS_FAILED:`failed`,OVERVIEW:`Overview`,OVERVIEW_DESC:`Statistics for your videos and publications`,CONNECT_SOCIAL_MEDIA:`Connect Social Media`,CONNECT_SOCIAL_MEDIA_DESC:`Connect your social media accounts to publish videos`,CONNECT:`Connect`,CONNECTING:`Connecting`,CONNECTED:`Connected`,NOT_CONNECTED:`Not connected`,TOTAL_VIDEOS_UPLOADED:`Total Videos Uploaded`,VIDEOS_UPLOADED_DESC:`Videos uploaded to the platform`,VIDEOS_PUBLISHED:`Videos Published`,VIDEOS_PUBLISHED_DESC:`Videos ready for publishing`,TOTAL_PUBLICATIONS:`Total Publications`,TOTAL_PUBLICATIONS_DESC:`Total publication attempts`,PUBLISHED_PUBLICATIONS:`Published`,PUBLISHED_PUBLICATIONS_DESC:`Successfully published`,PLATFORM_STATISTICS:`Platform Statistics`,PLATFORM_STATISTICS_DESC:`Statistics by social media platform`,PUBLICATIONS:`Publications`,PUBLISHED:`Published`,VIEWS:`Views`,VIEWS_OVER_TIME:`Views Over Time`,VIEWS_OVER_TIME_DESC:`Total views across all platforms for the last 30 days`,CURRENT_ORGANIZATION:`Current Organization`,NO_ORGANIZATION:`No Organization`,PARTICIPANT:`participant`,PARTICIPANTS:`participants`,TOTAL_LISTINGS:`Total Listings`,CREATED_LISTINGS:`Created listings`,TOTAL_PROMOS:`Total Promo Materials`,CREATED_VIDEOS:`Created videos`,WITH_PROMOS:`With Promo Materials`,LISTINGS_WITH_PROMOS:`Listings with promo materials`,ORGANIZATION_MEMBERS:`Organization Members`,ACTIVE_MEMBERS:`Active members`,NO_LISTINGS:`No Listings`,NO_LISTINGS_DESC:`Create your first real estate listing`,GO_TO_LISTINGS:`Go to Listings`,LISTINGS:`Listings`,PROMO_MATERIALS:`Promo Materials:`,VIDEO:`video`,VIDEOS:`videos`,LANGUAGES:`Languages:`,MORE_DETAILS:`More Details →`,LISTINGS_NAV:`Listings`,SHORT_VIDEOS_NAV:`Short Videos`,VIDEOS_NAV:`Videos`,PUBLICATIONS_NAV:`Publications`,PROMOTIONS_NAV:`Promotions`,USER_MANAGEMENT:`User Management`,PUBLICATIONS_TITLE:`Publications`,PUBLICATIONS_DESC:`Manage your video publications on social media platforms`,CREATE_PUBLICATION:`Create Publication`,NO_PUBLICATIONS:`No Publications`,NO_PUBLICATIONS_DESC:`Publications will appear here after publishing videos to platforms`,PUBLICATION_STATUS_PENDING:`Pending`,PUBLICATION_STATUS_PROCESSING:`Processing`,PUBLICATION_STATUS_PUBLISHED:`Published`,PUBLICATION_STATUS_FAILED:`Failed`,PUBLICATION_PLATFORM:`Platform`,PUBLICATION_STATUS:`Status`,PUBLICATION_VIDEO:`Video`,PUBLICATION_DATE:`Publication Date`,PUBLICATION_CREATED:`Created`,VIEW_ON_PLATFORM:`View on Platform`,COLUMNS:`Columns`,LOADING:`Loading...`,NO_RESULTS:`No results.`,TOTAL_RESULTS:`total results`,ROWS_PER_PAGE:`Rows per page`,PREVIOUS:`Previous`,NEXT:`Next`,ALL:`All`,YOUTUBE:`YouTube`,INSTAGRAM:`Instagram`,FACEBOOK:`Facebook`,SEARCH:`Search...`,RESET:`Reset`,PROMOTIONS_TITLE:`Promotions`,PROMOTIONS_DESCRIPTION:`Promote your videos and publications to reach a wider audience`,CREATE_PROMOTION:`Create Promotion`,PROMOTION_FORM_DESCRIPTION:`Select content and set your promotion budget`,CONTENT_TYPE:`Content Type`,PUBLICATION:`Publication`,SELECT_VIDEO:`Select Video`,SELECT_VIDEO_DESC:`Choose a video to publish to social media platforms`,SELECT_PUBLICATION:`Select Publication`,BUDGET:`Budget`,PROMOTION_UNPAID:`Unpaid`,PAY_FOR_BUDGET:`Pay for budget`,PROMOTION_BUDGET_HINT:`Budget must be between €10 and €1000`,PHONE_NUMBER:`Phone Number`,PROMOTION_PHONE_HINT:`Required for YouTube promotions - users will contact you via this number`,PROMOTION_PHONE_REQUIRED_YOUTUBE:`Phone number is required for YouTube publication promotions`,PROMOTION_CREATED_SUCCESS:`Promotion created successfully. Please complete payment.`,PROMOTION_CREATE_ERROR:`Failed to create promotion`,NO_PROMOTIONS:`No promotions yet`,NO_PROMOTIONS_DESC:`Create your first promotion to get started`,PROMOTION_STATUS_PENDING_PAYMENT:`Pending Payment`,PROMOTION_STATUS_PAID:`Paid`,PROMOTION_STATUS_PROCESSING:`Processing`,PROMOTION_STATUS_ACTIVE:`Active`,PROMOTION_STATUS_COMPLETED:`Completed`,PROMOTION_STATUS_CANCELLED:`Cancelled`,PROMOTION_STATUS_FAILED:`Failed`,VIEW_INVOICE:`View Invoice`,CREATED:`Created`,STATUS:`Status`,CITY:`City`,SELECT_CITY:`Select city`,DURATION:`Duration`,DURATION_PLACEHOLDER:`
21Enter duration in days`,DURATION_HINT:`How long the promotion should run (in days)`,OPTIONAL:`Optional`,NONE:`None`,PAYMENT_NOT_COMPLETED:`Payment not completed`,PAY_INVOICE:`Pay Invoice`,CANCEL_PROMOTION_CONFIRM:`Are you sure you want to cancel this promotion?`,CANCEL_PROMOTION:`Cancel Promotion`,COMING_SOON:`Coming Soon`,COMING_SOON_DESC:`Promotions section is under development`,SELECT_PLATFORMS:`Select platforms to publish`,SELECT_AT_LEAST_ONE_PLATFORM:`Please select at least one platform`,FILL_IN_DETAILS:`Fill in the details for your video`,BASIC_INFO_FOR_ALL_PLATFORMS:`Basic information for all platforms`,SELECTED_PLATFORMS:`Selected platforms`,CHANGE:`Change`,ENTER_TITLE:`Enter title`,ENTER_DESCRIPTION:`Enter description`,PUBLISHING_TO_MULTIPLE_PLATFORMS:`Video will be published to all selected platforms. Detailed settings will be applied with defaults for each platform.`,BACK:`Back`,PUBLISHING:`Publishing`,REQUIRED_FOR:`Required for`,CHARACTERS:`characters`,TAGS:`Tags`,SEPARATE_TAGS_WITH_COMMAS:`Separate tags with commas`,PRIVATE:`Private`,UNLISTED:`Unlisted`,PUBLIC:`Public`,MADE_FOR_KIDS:`This video is made for kids`,SPECIFIC_SETTINGS:`Specific Settings`,CAPTION:`Caption`,COVER_IMAGE_URL:`Cover Image URL`,AUDIO_NAME:`Audio Name`,ORIGINAL_AUDIO:`Original Audio`,THUMBNAIL_OFFSET:`Thumbnail Offset`,LOCATION_ID:`Location ID`,SHARE_TO_FEED:`Share to feed`,PRIVACY_LEVEL:`Privacy Level`,PUBLIC_TO_EVERYONE:`Public to Everyone`,MUTUAL_FOLLOW_FRIENDS:`Mutual Follow Friends`,SELF_ONLY:`Self Only`,DISABLE_DUET:`Disable Duet`,DISABLE_COMMENTS:`Disable Comments`,DISABLE_STITCH:`Disable Stitch`,WRITE_CAPTION:`Write a caption for your Reel...`,YOUTUBE_TITLE_REQUIRED:`Title is required for YouTube`,PUBLISHING_STARTED:`Publishing started to {{count}} platform(s)`,NO_PLATFORMS_PUBLISHED:`Failed to publish to any platform`,RUSSIAN:`Russian`,SUBSCRIPTION:`Subscription`,FREE_PLAN:`Free`,PRO_PLAN:`Pro`,FREE_PLAN_DESCRIPTION:`You have a free subscription. You can publish up to 3 times.`,PRO_PLAN_DESCRIPTION:`You have an active Pro subscription.`,SUBSCRIBE:`Subscribe`,MONTH:`month`,PUBLICATION_LIMIT:`Publication Limit`,PUBLICATIONS_REMAINING:`{{count}} publications remaining`,PUBLICATION_LIMIT_REACHED:`You have reached your publication limit. Upgrade to continue publishing.`,UPGRADE_TO_CONTINUE:`You've reached your publication limit. Upgrade to continue publishing.`,SUBSCRIPTION_CANCELLING:`Your subscription will cancel on {{date}}`,RESUME_SUBSCRIPTION:`Resume Subscription`,SUBSCRIPTION_RESUMED:`Subscription resumed successfully`,SUBSCRIPTION_RESUME_ERROR:`Failed to resume subscription`,FREE_PLAN_LIMIT_REACHED:`You've reached your free plan publication limit.`,UPGRADE_TO_PRO:`Upgrade to Pro`,PRO_PLAN_BENEFIT_1:`5 publications per subscription period`,PRO_PLAN_BENEFIT_2:`Purchase additional publications when needed`,PRO_PLAN_BENEFIT_3:`Access to all premium features`,SUBSCRIBE_TO_CONTINUE:`Subscribe to Pro to continue publishing your videos.`,SUBSCRIBE_TO_PRO:`Subscribe to Pro`,PURCHASE_PUBLICATIONS_DESC:`You've used all your available publications for this period.`,ADDITIONAL_PUBLICATIONS:`Additional Publications`,PRICE:`Price`,VALID_UNTIL:`Valid until`,PURCHASE_PUBLICATIONS_INFO:`Purchase 5 additional publications that will be valid until your current subscription period ends.`,PROCESSING:`Processing...`,PURCHASE_FOR:`Purchase for`},jD={en:{translation:AD}};XT.use(hE).use(DD(e=>ED(Object.assign({
21"./locales/de.ts":()=>U(()=>import(`./de-0XvX5zt5.js`),[]),
21"./locales/en.ts":()=>U(()=>Promise.resolve().then(()=>kD),void 0),
21"./locales/es.ts":()=>U(()=>import(`./es-B1feba3B.js`),[]),
21"./locales/pt.ts":()=>U(()=>import(`./pt-D3InESq0.js`),[]),
21"./locales/ru.ts":()=>U(()=>import(`./ru-CJlOVypx.js`),[])
21}),`./locales/${e}.ts`,3))).init({compatibilityJSON:`v4`,resources:jD,interpolation:{escapeValue:!1},defaultNS:`translation`,lng:`en`,fallbackLng:`en`,debug:!1,preload:[`en`]});var MD=XT,ND=`https://airealty.global`,PD=`[email protected]`,FD=`+351 931 302 673`;function ID({title:e,description:t,keywords:n,image:r,url:i,type:a=`website`,robots:o=`index, follow`}){let s=i?i.startsWith(`http`)?i:`${ND}${i}`:ND;return[{title:e},{name:`description`,content:t},{name:`keywords`,content:n},{name:`author`,content:`AI Realty`},{name:`robots`,content:o},{name:`twitter:title`,content:e},{name:`twitter:description`,content:t},{name:`twitter:card`,content:r?`summary_large_image`:`summary`},{property:`og:type`,content:a},{property:`og:site_name`,content:`AI Realty`},{property:`og:title`,content:e},{property:`og:description`,content:t},{property:`og:url`,content:s},{property:`og:locale`,content:`en_US`},...r?[{name:`twitter:image`,content:r},{property:`og:image`,content:r}]:[]]}function LD({url:e,hrefLangs:t}){let n=e.startsWith(`http`)?e:`${ND}${e}`,r=[{rel:`canonical`,href:n}],i=t??[{lang:`en`,href:n},{lang:`en-PT`,href:n},{lang:`en-ES`,href:n},{lang:`en-US`,href:n},{lang:`x-default`,href:n}];for(let e of i)r.push({rel:`alternate`,href:e.href,hrefLang:e.lang});return r}var RD=`/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2`,zD=`/assets/styles-C77IIkWF.css`,BD=Cd()({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},...ID({title:`AI Realty — Automated Real Estate Ads in 2 Minutes`,description:`Launch AI-powered real estate ads on Instagram, TikTok, YouTube & Facebook in 2 minutes. For agents, agencies & developers. Start free.`,keywords:`AI advertising for real estate agents, real estate marketing automation, property promotion, AI Realty, YouTube ads for agents, TikTok real estate ads, Instagram property marketing, Facebook housing ads`,image:`https://airealty.global/air_logo_512.png`}),{name:`yandex-verification`,content:`597a78c6a26c92aa`},{name:`google-site-verification`,content:`m4Xh6c5jLhP_oaBhNZ2VWTSM1ivc0s3DXwST0_iFDz4`}],scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`Organization`,"@id":`https://airealty.global/#organization`,name:`AI Realty Global`,url:`https://airealty.global`,logo:{"@type":`ImageObject`,url:`https://airealty.global/air_logo_512.png`,width:512,height:512},email:PD,telephone:FD,address:{"@type":`PostalAddress`,streetAddress:`Avenida da Verdizela 54`,addressLocality:`Corroios`,addressCountry:`PT`},areaServed:[{"@type":`Country`,name:`Portugal`},{"@type":`Country`,name:`Spain`},{"@type":`Country`,name:`United States`}],knowsLanguage:[`en`,`pt`,`es`],contactPoint:{"@type":`ContactPoint`,email:PD,telephone:FD,contactType:`Customer Support`,availableLanguage:[`English`,`Portuguese`,`Spanish`]},sameAs:[`https://www.linkedin.com/company/airealty`,`https://www.instagram.com/airealty`]})}],links:[{rel:`preload`,href:RD,as:`font`,type:`font/woff2`,crossOrigin:`anonymous`},{rel:`preconnect`,href:`https://www.googletagmanager.com`,crossOrigin:`anonymous`},{rel:`dns-prefetch`,href:`https://www.google-analytics.com`},{rel:`stylesheet`,href:zD},{rel:`icon`,type:`image/x-icon`,href:`/favicon.ico`},{rel:`icon`,type:`image/png`,sizes:`16x16`,href:`/favicon-16x16.png`},{rel:`icon`,type:`image/png`,sizes:`32x32`,href:`/favicon-32x32.png`},{rel:`apple-touch-icon`,sizes:`180x180`,href:`/apple-touch-icon.png`},{rel:`manifest`,href:`/manifest.json`}]}),component:()=>(0,z.jsx)(VD,{})});function VD(){let{queryClient:e}=BD.useRouteContext();return(0,z.jsxs)(`html`,{lang:`en`,suppressHydrationWarning:!0,children:[(0,z.jsx)(`head`,{children:(0,z.jsx)(Jd,{})}),(0,z.jsx)(`body`,{suppressHydrationWarning:!0,children:(0,z.jsx)(fp,{client:e,children:(0,z.jsxs)(Ew,{apiKey:`phc_CJCV7EvyrDDsUrCd8WZXbpSpB4e5kjg76JrrnXuuriHJ`,options:{api_host:`/api/posthog`,defaults:`2025-05-24`,capture_exceptions:!0,debug:!1,addTracingHeaders:typeof window<`u`?[window.location.hostname]:[]},children:[(0,z.jsx)(DE,{}),(0,z.jsx)(jE,{}),(0,z.jsx)(TD,{id:void 0}),(0,z.jsx)(Ww,{attribute:`class`,defaultTheme:`system`,disableTransitionOnChange:!0,enableSystem:!0,children:(0,z.jsxs)(SE,{defaultNS:`translation`,i18n:MD,children:[(0,z.jsx)(Fd,{}),(0,z.jsx)(SD,{}),(0,z.jsx)(Yd,{})]})})]})})})]})}var HD=`1.6.11`;function UD(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,{code:e,message:t,toString:()=>e}]))}var WD=UD({FAILED_TO_CREATE_USER:`Failed to create user`,USER_ALREADY_EXISTS:`User already exists.`,USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL:`User already exists. Use another email.`,YOU_CANNOT_BAN_YOURSELF:`You cannot ban yourself`,YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:`You are not allowed to change users role`,YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:`You are not allowed to create users`,YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:`You are not allowed to list users`,YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:`You are not allowed to list users sessions`,YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:`You are not allowed to ban users`,YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:`You are not allowed to impersonate users`,YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:`You are not allowed to revoke users sessions`,YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:`You are not allowed to delete users`,YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:`You are not allowed to set users password`,BANNED_USER:`You have been banned from this application`,YOU_ARE_NOT_ALLOWED_TO_GET_USER:`You are not allowed to get user`,NO_DATA_TO_UPDATE:`No data to update`,YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS:`You are not allowed to update users`,YOU_CANNOT_REMOVE_YOURSELF:`You cannot remove yourself`,YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE:`You are not allowed to set a non-existent role value`,YOU_CANNOT_IMPERSONATE_ADMINS:`You cannot impersonate admins`,INVALID_ROLE_TYPE:`Invalid role type`});function GD(){let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);return e===void 0?Object.isExtensible(Error):Object.prototype.hasOwnProperty.call(e,`writable`)?e.writable:e.set!==void 0}function KD(e){let t=e.split(`
22    at `);return t.length<=1?e:(t.splice(1,1),t.join(`
23    at `))}
23function qD(e,t){class n extends e{#e;constructor(...e){if(GD()){let t=Error.stackTraceLimit;Error.stackTraceLimit=0,super(...e),Error.stackTraceLimit=t}else super(...e);let t=Error().stack;t&&(this.#e=KD(t.replace(/^Error/,this.name)))}get errorStack(){return this.#e}}return Object.defineProperty(n.prototype,"constructor",{get(){return t},enumerable:!1,configurable:!0}),n}var JD={OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,TEMPORARY_REDIRECT:307,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,"I'M_A_TEAPOT":418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511};qD(class extends Error{constructor(e=`INTERNAL_SERVER_ERROR`,t=void 0,n={},r=typeof e==`number`?e:JD[e]){super(t?.message,t?.cause?{cause:t.cause}:void 0),this.status=e,this.body=t,this.headers=n,this.statusCode=r,this.name=`APIError`,this.status=e,this.headers=n,this.statusCode=r,this.body=t}},Error);var YD=class extends Error{constructor(e,t){super(e,t),this.name=`BetterAuthError`,this.message=e,this.stack=``}};function XD(e){return{authorize(t,n=`AND`){let r=!1;for(let[i,a]of Object.entries(t)){let t=e[i];if(!t)return{success:!1,error:`You are not allowed to access resource: ${i}`};if(Array.isArray(a))r=a.every(e=>t.includes(e));else if(typeof a==`object`){let e=a;r=e.connector===`OR`?e.actions.some(e=>t.includes(e)):e.actions.every(e=>t.includes(e))}else throw new YD(`Invalid access control request`);if(r&&n===`OR`)return{success:r};if(!r&&n===`AND`)return{success:!1,error:`unauthorized to access resource "${i}"`}}return r?{success:r}:{success:!1,error:`Not authorized`}},statements:e}}function ZD(e){return{newRole(e){return XD(e)},statements:e}}var QD={user:[`create`,`list`,`set-role`,`ban`,`impersonate`,`impersonate-admins`,`delete`,`set-password`,`get`,`update`],session:[`list`,`revoke`,`delete`]},$D=ZD(QD),eO=$D.newRole({user:[`create`,`list`,`set-role`,`ban`,`impersonate`,`delete`,`set-password`,`get`,`update`],session:[`list`,`revoke`,`delete`]}),tO=$D.newRole({user:[],session:[]}),nO={admin:eO,user:tO},rO=e=>{if(e.userId&&e.options?.adminUserIds?.includes(e.userId))return!0;if(!e.permissions)return!1;let t=(e.role||e.options?.defaultRole||`user`).split(`,`),n=e.options?.roles||nO;for(let r of t)if(n[r]?.authorize(e.permissions)?.success)return!0;return!1},iO=e=>{let t={admin:eO,user:tO,...e?.roles};return{id:`admin-client`,version:HD,$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:n=>rO({role:n.role,options:{ac:e?.ac,roles:t},permissions:n.permissions})}}),pathMethods:{"/admin/list-users":`GET`,"/admin/impersonate-user":`POST`,"/admin/stop-impersonating":`POST`},atomListeners:[{matcher:e=>e===`/admin/impersonate-user`||e===`/admin/stop-impersonating`,signal:`$sessionSignal`}],$ERROR_CODES:WD}},aO=UD({OTP_EXPIRED:`OTP expired`,INVALID_OTP:`Invalid OTP`,TOO_MANY_ATTEMPTS:`Too many attempts`}),oO=()=>({id:`email-otp`,version:HD,$InferServerPlugin:{},atomListeners:[{matcher:e=>e===`/email-otp/verify-email`||e===`/sign-in/email-otp`||e===`/email-otp/request-email-change`,signal:`$sessionSignal`}],$ERROR_CODES:aO}),sO=UD({INVALID_OAUTH_CONFIGURATION:`Invalid OAuth configuration`,TOKEN_URL_NOT_FOUND:`Invalid OAuth configuration. Token URL not found.`,PROVIDER_CONFIG_NOT_FOUND:`No config found for provider`,PROVIDER_ID_REQUIRED:`Provider ID is required`,INVALID_OAUTH_CONFIG:`Invalid OAuth configuration.`,SESSION_REQUIRED:`Session is required`,ISSUER_MISMATCH:`OAuth 
23issuer mismatch. The authorization server issuer does not match the expected value (RFC 9207).`,ISSUER_MISSING:`OAuth issuer parameter missing. The authorization server did not include the required iss parameter (RFC 9207).`}),cO=()=>({id:`generic-oauth-client`,version:HD,$InferServerPlugin:{},$ERROR_CODES:sO}),lO=()=>({id:`magic-link`,version:HD,$InferServerPlugin:{}}),uO=UD({INVALID_SESSION_TOKEN:`Invalid session token`}),dO=()=>({id:`multi-session`,version:HD,$InferServerPlugin:{},atomListeners:[{matcher(e){return e===`/multi-session/set-active`},signal:`$sessionSignal`}],$ERROR_CODES:uO}),fO=UD({YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:`You are not allowed to create a new organization`,YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:`You have reached the maximum number of organizations`,ORGANIZATION_ALREADY_EXISTS:`Organization already exists`,ORGANIZATION_SLUG_ALREADY_TAKEN:`Organization slug already taken`,ORGANIZATION_NOT_FOUND:`Organization not found`,USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:`User is not a member of the organization`,YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:`You are not allowed to update this organization`,YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:`You are not allowed to delete this organization`,NO_ACTIVE_ORGANIZATION:`No active organization`,USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:`User is already a member of this organization`,MEMBER_NOT_FOUND:`Member not found`,ROLE_NOT_FOUND:`Role not found`,YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:`You are not allowed to create a new team`,TEAM_ALREADY_EXISTS:`Team already exists`,TEAM_NOT_FOUND:`Team not found`,YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:`You cannot leave the organization as the only owner`,YOU_CANNOT_LEAVE_THE_ORGANIZATION_WITHOUT_AN_OWNER:`You cannot leave the organization without an owner`,YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:`You are not allowed to delete this member`,YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:`You are not allowed to invite users to this organization`,USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:`User is already invited to this organization`,INVITATION_NOT_FOUND:`Invitation not found`,YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:`You are not the recipient of the invitation`,EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION:`Email verification required before accepting or rejecting invitation`,EMAIL_VERIFICATION_REQUIRED_FOR_INVITATION:`Email verification required to view or list invitations for the session email`,YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:`You are not allowed to cancel this invitation`,INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:`Inviter is no longer a member of the organization`,YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:`You are not allowed to invite a user with this role`,FAILED_TO_RETRIEVE_INVITATION:`Failed to retrieve invitation`,YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:`You have reached the maximum number of teams`,UNABLE_TO_REMOVE_LAST_TEAM:`Unable to remove last team`,YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:`You are not allowed to update this member`,ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:`Organization membership limit reached`,YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:`You are not allowed to create teams in this organization`,YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:`You are not allowed to delete teams in this organization`,YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:`You are not allowed to update this team`,YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:`You are not allowed to delete this team`,INVITATION_LIMIT_REACHED:`Invitation limit reached`,TEAM_MEMBER_LIMIT_REACHED:`Team member limit reached`,USER_IS_NOT_A_MEMBER_OF_THE_TEAM:`User is not a member of the team`,YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM:`You are not allowed to list the members of this team`,YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM:`You do not have an active team`,YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER:`You are not allowed to create a new member`,YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER:`You are not allowed to remove a team member`,YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION:`You are not allowed to access this organization as an owner`,YOU_ARE_NOT_A_MEMBER_OF_THIS_ORGANIZATION:`You are not a member of this organization`,MISSING_AC_INSTANCE:`Dynamic Access Control requires a pre-defined ac instance on the server auth plugin. Read server logs for more information`,YOU_MUST_BE_IN_AN_ORGANIZATION_TO_CREATE_A_ROLE:`You must be in an organization to create a role`,YOU_ARE_NOT_ALLOWED_TO_CREATE_A_ROLE:`You are not allowed to create a role`,YOU_ARE_NOT_ALLOWED_TO_UPDATE_A_ROLE:`You are not allowed to update a role`,YOU_ARE_NOT_ALLOWED_TO_DELETE_A_ROLE:`You are not allowed to delete a role`,YOU_ARE_NOT_ALLOWED_TO_READ_A_ROLE:`You are not allowed to read a role`,YOU_ARE_NOT_ALLOWED_TO_LIST_A_ROLE:`You are not allowed to list a role`,YOU_ARE_NOT_ALLOWED_TO_GET_A_ROLE:`You are not allowed to get a role`,TOO_MANY_ROLES:`This organization has too many roles`,INVALID_RESOURCE:`The provided permission includes an invali
23d resource`,ROLE_NAME_IS_ALREADY_TAKEN:`That role name is already taken`,CANNOT_DELETE_A_PRE_DEFINED_ROLE:`Cannot delete a pre-defined role`,ROLE_IS_ASSIGNED_TO_MEMBERS:`Cannot delete a role that is assigned to members. Please reassign the members to a different role first`}),pO=[],mO=0,hO=4,gO=globalThis.nanostoresGlobal||={epoch:0},_O=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(e){return n.lc=t.push(e),()=>{for(let t=mO+hO;t<pO.length;)pO[t]===e?pO.splice(t,hO):t+=hO;let r=t.indexOf(e);~r&&(t.splice(r,1),--n.lc||n.off())}},notify(e,r){gO.epoch++;let i=!pO.length;for(let i of t)pO.push(i,n.value,e,r);if(i){for(mO=0;mO<pO.length;mO+=hO)pO[mO](pO[mO+1],pO[mO+2],pO[mO+3]);pO.length=0}},off(){},set(e){let t=n.value;t!==e&&(n.value=e,n.notify(t))},subscribe(e){let t=n.listen(e);return e(n.value),t},value:e};return n},vO=5,yO=6,bO=10,xO=(e,t,n,r)=>(e.events=e.events||{},e.events[n+bO]||(e.events[n+bO]=r(t=>{e.events[n].reduceRight((e,t)=>(t(e),e),{shared:{},...t})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let r=e.events[n],i=r.indexOf(t);r.splice(i,1),r.length||(delete e.events[n],e.events[n+bO](),delete e.events[n+bO])}),SO=1e3,CO=(e,t)=>
23xO(e,n=>{let r=t(n);r&&e.events[yO].push(r)},vO,t=>{let n=e.listen;e.listen=(...r)=>(!e.lc&&!e.active&&(e.active=!0,t()),n(...r));let r=e.off;return e.events[yO]=[],e.off=()=>{r(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let t of e.events[yO])t();e.events[yO]=[]}},SO)},()=>{e.listen=n,e.off=r}});function wO(e,t,n){let r=new Set(t).add(void 0);return e.listen((e,t,i)=>{r.has(i)&&n(e,t,i)})}var TO=()=>typeof window>`u`,EO=(e,t,n,r)=>{let i=_O({data:null,error:null,isPending:!0,isRefetching:!1,refetch:e=>a(e)}),a=async e=>new Promise(a=>{let o=typeof r==`function`?r({data:i.get().data,error:i.get().error,isPending:i.get().isPending}):r;n(t,{...o,query:{...o?.query,...e?.query},async onSuccess(e){i.set({data:e.data,error:null,isPending:!1,isRefetching:!1,refetch:i.value.refetch}),await o?.onSuccess?.(e)},async onError(e){let{request:t}=e,n=typeof t.retry==`number`?t.retry:t.retry?.attempts,r=t.retryAttempt||0;if(n&&r<n)return;let a=e.error.status===401;i.set({error:e.error,data:a?null:i.get().data,isPending:!1,isRefetching:!1,refetch:i.value.refetch}),await o?.onError?.(e)},async onRequest(e){let t=i.get();i.set({isPending:t.data===null,data:t.data,error:null,isRefetching:!0,refetch:i.value.refetch}),await o?.onRequest?.(e)}}).catch(e=>{i.set({error:e,data:i.get().data,isPending:!1,isRefetching:!1,refetch:i.value.refetch})}).finally(()=>{a(void 0)})});e=Array.isArray(e)?e:[e];let o=!1;for(let t of e)t.subscribe(async()=>{TO()||(o?await a():CO(i,()=>{let e=setTimeout(async()=>{o||(o=!0,await a())},0);return()=>{i.off(),t.off(),clearTimeout(e)}}))});return i},DO=ZD({organization:[`update`,`delete`],member:[`create`,`update`,`delete`],invitation:[`create`,`cancel`],team:[`create`,`update`,`delete`],ac:[`create`,`read`,`update`,`delete`]}),OO=DO.newRole({organization:[`update`],invitation:[`create`,`cancel`],member:[`create`,`update`,`delete`],team:[`create`,`update`,`delete`],ac:[`create`,`read`,`update`,`delete`]}),kO=DO.newRole({organization:[`update`,`delete`],member:[`create`,`update`,`delete`],invitation:[`create`,`cancel`],team:[`create`,`update`,`delete`],ac:[`create`,`read`,`update`,`delete`]}),AO=DO.newRole({organization:[],member:[],invitation:[],team:[],ac:[`read`]}),jO={admin:OO,owner:kO,member:AO},MO=(e,t)=>{if(!e.permissions)return!1;let n=e.role.split(`,`),r=e.options.creatorRole||`owner`,i=n.includes(r),a=e.allowCreatorAllPermissions||!1;if(i&&a)return!0;for(let r of n)if(t[r]?.authorize(e.permissions)?.success)return!0;return!1},NO=e=>MO(e,e.options.roles||jO),PO=e=>{let t=_O(!1),n=_O(!1),r=_O(!1),i=_O(!1),a={admin:OO,member:AO,owner:kO,...e?.roles};return{id:`organization`,version:HD,$InferServerPlugin:{},getActions:(t,n,r)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:t=>NO({role:t.role,options:{ac:e?.ac,roles:a},permissions:t.permissions})}}),getAtoms:e=>{let a=EO(t,`/organization/list`,e,{method:`GET`});return{$listOrg:t,$activeOrgSignal:n,$activeMemberSignal:r,$activeMemberRoleSignal:i,activeOrganization:EO([n],`/organization/get-full-organization`,e,()=>({method:`GET`})),listOrganizations:a,activeMember:EO([n,r],`/organization/get-active-member`,e,{method:`GET`}),activeMemberRole:EO([n,i],`/organization/get-active-member-role`,e,{method:`GET`})}},pathMethods:{"/organization/get-full-organization":`GET`,"/organization/list-user-teams":`GET`},atomListeners:[{matcher(e){return e===`/organization/create`||e===`/organization/delete`||e===`/organization/update`},signal:`$listOrg`},{matcher(e){return e===`/sign-out`||e.startsWith(`/organization`)},signal:`$activeOrgSignal`},{matcher(e){return e.startsWith(`/organization/set-active`)||e===`/organization/create`||e===`/organization/delete`||e===`/organization/remove-member`||e===`/organization/leave`||e===`/organization/accept-invitation`},signal:`$sessionSignal`},{matcher(e){return e.includes(`/organization/update-member-role`)||e.startsWith(`/organization/set-active`)},signal:`$activeMemberSignal`},{matcher(e){return e.includes(`/organization/update-member-role`)||e.startsWith(`/organization/set-active`)},signal:`$activeMemberRoleSignal`}],$ERROR_CODES:fO}},FO=UD({OTP_NOT_ENABLED:`OTP not enabled`,OTP_HAS_EXPIRED:`OTP has expired`,TOTP_NOT_ENABLED:`TOTP not enabled`,TWO_FACTOR_NOT_ENABLED:`Two factor isn't enabled`,BACKUP_CODES_NOT_ENABLED:`Backup codes aren't enabled`,INVALID_BACKUP_CODE:`Invalid backup code`,INVALID_CODE:`Invalid code`,TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:`Too many attempts. Please request a new code.`,INVALID_TWO_FACTOR_COOKIE:`Invalid two factor cookie`}),IO=e=>({id:`two-factor`,version:HD,$InferServerPlugin:{},atomListeners:[{matcher:e=>e.startsWith(`/two-factor/`),signal:`$sessionSignal`}],pathMethods:{"/two-factor/disable":`POST`,"/two-factor/enable":`POST`,"/two-factor/send-otp":`POST`,"/two-factor/generate-backup-codes":`POST`,"/two-factor/get-totp-uri":`POST`,"/two-factor/verify-totp":`POST`,"/two-factor/verify-otp":`POST`,"/two-factor/verify-backup-code":`POST`},fetchPlugins:[{id:`two-factor`,name:`two-factor`,hooks:{async onSuccess(t){if(t.data?.twoFactorRedirect){if(e?.onTwoFactorRedirect){await e.onTwoFactorRedirect({twoFactorMethods:t.data.twoFactorMethods});return}e?.twoFactorPage&&typeof window<`u`&&(window.location.href=e.twoFactorPage)}}}}],$ERROR_CODES:FO}),LO=UD({CHALLENGE_NOT_FOUND:`Challenge not found`,YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:`You are not allowed to register this passkey`,FAILED_TO_VERIFY_REGISTRATION:`Failed to verify registration`,PASSKEY_NOT_FOUND:`Passkey not found`,AUTHENTICATION_FAILED:`Authentication failed`,UNABLE_TO_CREATE_SESSION:`Unable to create session`,FAILED_TO_UPDATE_PASSKEY:`Failed to update passkey`,PREVIOUSLY_REGISTERED:`Previously registered`,REGISTRATION_CANCELLED:`Registration cancelled`,AUTH_CANCELLED:`Auth cancelled`,UNKNOWN_ERROR:`Unknown error`,SESSION_REQUIRED:`Passkey registration requires an authenticated session`,RESOLVE_USER_REQUIRED:`Passkey registration requires either an authenticated session or a resolveUser callback when requireSession is false`,RESOLVED_USER_INVA
23LID:`Resolved user is invalid`}),RO=`1.6.11`;function zO(e){let t=new Uint8Array(e),n=``;for(let e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function BO(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`),n=(4-t.length%4)%4,r=t.padEnd(t.length+n,`=`),i=atob(r),a=new ArrayBuffer(i.length),o=new Uint8Array(a);for(let e=0;e<i.length;e++)o[e]=i.charCodeAt(e);return a}function VO(){return HO.stubThis(globalThis?.PublicKeyCredential!==void 0&&typeof globalThis.PublicKeyCredential==`function`)}var HO={stubThis:e=>e};function UO(e){let{id:t}=e;return{...e,id:BO(t),transports:e.transports}}function WO(e){return e===`localhost`||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}var GO=class extends Error{constructor({message:e,code:t,cause:n,name:r}){super(e,{cause:n}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=r??n.name,this.code=t}};function KO({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new GO({message:`Registration ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`ConstraintError`){if(n.authenticatorSelection?.requireResidentKey===!0)return new GO({message:`Discoverable credentials were required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT`,cause:e});if(t.mediation===`conditional`&&n.authenticatorSelection?.userVerification===`required`)return new GO({message:`User verification was required during automatic registration but it could not be performed`,code:`ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE`,cause:e});if(n.authenticatorSelection?.userVerification===`required`)return new GO({message:`User verification was required but no available authenticator supported it`,code:`ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT`,cause:e})}else if(e.name===`InvalidStateError`)return new GO({message:`The authenticator was previously registered`,code:`ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED`,cause:e});else if(e.name===`NotAllowedError`)return new GO({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`NotSupportedError`)return n.pubKeyCredParams.filter(e=>e.type===`public-key`).length===0?new GO({message:`No entry in pubKeyCredParams was of type "public-key"`,code:`ERROR_MALFORMED_PUBKEYCREDPARAMS`,cause:e}):new GO({message:`No available authenticator supported any of the specified pubKeyCredParams algorithms`,code:`ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG`,cause:e});else if(e.name===`SecurityError`){let t=globalThis.location.hostname;if(!WO(t))return new GO({message:`${globalThis.location.hostname} is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rp.id!==t)return new GO({message:`The RP ID "${n.rp.id}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`TypeError`){if(n.user.id.byteLength<1||n.user.id.byteLength>64)return new GO({message:`User ID was not between 1 and 64 characters`,code:`ERROR_INVALID_USER_ID_LENGTH`,cause:e})}else if(e.name===`UnknownError`)return new GO({message:`The authenticator was unable to process the specified options, or could not create a new credential`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return e}var qO=new class{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){let e=Error(`Cancelling existing WebAuthn API call for new one`);e.name=`AbortError`,this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error(`Manually cancelling existing WebAuthn API call`);e.name=`AbortError`,this.controller.abort(e),this.controller=void 0}}},JO=[`cross-platform`,`platform`];function YO(e){if(e&&!(JO.indexOf(e)<0))return e}async function XO(e){!e.optionsJSON&&e.challenge&&(console.warn(`startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.`),e={optionsJSON:e});let{optionsJSON:t,useAutoRegister:n=!1}=e;if(!VO())throw Error(`WebAuthn is not supported in this browser`);let r={...t,challenge:BO(t.challenge),user:{...t.user,id:BO(t.user.id)},excludeCredentials:t.excludeCredentials?.map(UO)},i={};n&&(i.mediation=`conditional`),i.publicKey=r,i.signal=qO.createNewAbortSignal();let a;try{a=await navigator.credentials.create(i)}catch(e){throw KO({error:e,options:i})}if(!a)throw Error(`Registration was not completed`);let{id:o,rawId:s,response:c,type:l}=a,u;typeof c.getTransports==`function`&&(u=c.getTransports());let d;if(typeof c.getPublicKeyAlgorithm==`function`)try{d=c.getPublicKeyAlgorithm()}catch(e){ZO(`getPublicKeyAlgorithm()`,e)}let f;if(typeof c.getPublicKey==`function`)try{let e=c.getPublicKey();e!==null&&(f=zO(e))}catch(e){ZO(`getPublicKey()`,e)}let p;
23if(typeof c.getAuthenticatorData==`function`)try{p=zO(c.getAuthenticatorData())}catch(e){ZO(`getAuthenticatorData()`,e)}return{id:o,rawId:zO(s),response:{attestationObject:zO(c.attestationObject),clientDataJSON:zO(c.clientDataJSON),transports:u,publicKeyAlgorithm:d,publicKey:f,authenticatorData:p},type:l,clientExtensionResults:a.getClientExtensionResults(),authenticatorAttachment:YO(a.authenticatorAttachment)}}function ZO(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.\n`,t)}function QO(){if(!VO())return $O.stubThis(new Promise(e=>e(!1)));let e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?$O.stubThis(new Promise(e=>e(!1))):$O.stubThis(e.isConditionalMediationAvailable())}var $O={stubThis:e=>e};function ek({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error(`options was missing required publicKey property`);if(e.name===`AbortError`){if(t.signal instanceof AbortSignal)return new GO({message:`Authentication ceremony was sent an abort signal`,code:`ERROR_CEREMONY_ABORTED`,cause:e})}else if(e.name===`NotAllowedError`)return new GO({message:e.message,code:`ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY`,cause:e});else if(e.name===`SecurityError`){let t=globalThis.location.hostname;if(!WO(t))return new GO({message:`${globalThis.location.hostname} is an invalid domain`,code:`ERROR_INVALID_DOMAIN`,cause:e});if(n.rpId!==t)return new GO({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:`ERROR_INVALID_RP_ID`,cause:e})}else if(e.name===`UnknownError`)return new GO({message:`The authenticator was unable to process the specified options, or could not create a new assertion signature`,code:`ERROR_AUTHENTICATOR_GENERAL_ERROR`,cause:e});return e}async function tk(e){!e.optionsJSON&&e.challenge&&(console.warn(`startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information.`),e={optionsJSON:e});let{optionsJSON:t,useBrowserAutofill:n=!1,verifyBrowserAutofillInput:r=!0}=e;if(!VO())throw Error(`WebAuthn is not supported in this browser`);let i;t.allowCredentials?.length!==0&&(i=t.allowCredentials?.map(UO));let a={...t,challenge:BO(t.challenge),allowCredentials:i},o={};if(n){if(!await QO())throw Error(`Browser does not support WebAuthn autofill`);if(document.querySelectorAll(`input[autocomplete$='webauthn']`).length<1&&r)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');o.mediation=`conditional`,a.allowCredentials=[]}o.publicKey=a,o.signal=qO.createNewAbortSignal();let s;try{s=await navigator.credentials.get(o)}catch(e){throw ek({error:e,options:o})}if(!s)throw Error(`Authentication was not completed`);let{id:c,rawId:l,response:u,type:d}=s,f;return u.userHandle&&(f=zO(u.userHandle)),{id:c,rawId:zO(l),response:{authenticatorData:zO(u.authenticatorData),clientDataJSON:zO(u.clientDataJSON),signature:zO(u.signature),userHandle:f},type:d,clientExtensionResults:s.getClientExtensionResults(),authenticatorAttachment:YO(s.authenticatorAttachment)}}var nk=Symbol.for(`better-auth:broadcast-channel`),rk=()=>Math.floor(Date.now()/1e3),ik=class{listeners=new Set;name;constructor(e=`better-auth.message`){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>`u`))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:rk()}))}catch{}}setup(){if(typeof window>`u`||window.addEventListener===void 0)return()=>{};let e=e=>{if(e.key!==this.name)return;let t=JSON.parse(e.newValue??`{}`);t?.event!==`session`||!t?.data||this.listeners.forEach(e=>e(t))};return window.addEventListener(`storage`,e),()=>{window.removeEventListener(`storage`,e)}}};function ak(e=`better-auth.message`){return globalThis[nk]||(globalThis[nk]=new ik(e)),globalThis[nk]}var ok=Symbol.for(`better-auth:focus-manager`),sk=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}
23setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>`u`||typeof document>`u`||window.addEventListener===void 0)return()=>{};let e=()=>{document.visibilityState===`visible`&&this.setFocused(!0)};return document.addEventListener(`visibilitychange`,e,!1),()=>{document.removeEventListener(`visibilitychange`,e,!1)}}};function ck(){return globalThis[ok]||(globalThis[ok]=new sk),globalThis[ok]}var lk=Symbol.for(`better-auth:online-manager`),uk=class{listeners=new Set;isOnline=typeof navigator<`u`?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>`u`||window.addEventListener===void 0)return()=>{};let e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener(`online`,e,!1),window.addEventListener(`offline`,t,!1),()=>{window.removeEventListener(`online`,e,!1),window.removeEventListener(`offline`,t,!1)}}};function dk(){return globalThis[lk]||(globalThis[lk]=new uk),globalThis[lk]}var fk={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},pk=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,mk={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:1/0,"-infinity":-1/0},hk=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function gk(e){return e instanceof Date&&!isNaN(e.getTime())}function _k(e){let t=hk.exec(e);if(!t)return null;let[,n,r,i,a,o,s,c,l,u,d]=t,f=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(i,10),parseInt(a,10),parseInt(o,10),parseInt(s,10),c?parseInt(c.padEnd(3,`0`),10):0));if(l){let e=(parseInt(u,10)*60+parseInt(d,10))*(l===`+`?-1:1);f.setUTCMinutes(f.getUTCMinutes()+e)}return gk(f)?f:null}function vk(e,t={}){let{strict:n=!1,warnings:r=!1,reviver:i,parseDates:a=!0}=t;if(typeof e!=`string`)return e;let o=e.trim();if(o.length>0&&o[0]===`"`&&o.endsWith(`"`)&&!o.slice(1,-1).includes(`"`))return o.slice(1,-1);let s=o.toLowerCase();if(s.length<=9&&s in mk)return mk[s];if(!pk.test(o)){if(n)throw SyntaxError(`[better-json] Invalid JSON`);return e}if(Object.entries(fk).some(([e,t])=>{let n=t.test(o);return n&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${e} pattern`),n})&&n)throw Error(`[better-json] Potential prototype pollution attempt detected`);try{return JSON.parse(o,(e,t)=>{if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){r&&console.warn(`[better-json] Dropping "${e}" key to prevent prototype pollution`);return}if(a&&typeof t==`string`){let e=_k(t);if(e)return e}return i?i(e,t):t})}catch(t){if(n)throw t;return e}}function yk(e,t={strict:!0}){return vk(e,t)}var bk=()=>Math.floor(Date.now()/1e3);function xk(e){return typeof e==`object`&&e&&`data`in e&&`error`in e?e:{data:e,error:null}}var Sk=5;function Ck(e){let{sessionAtom:t,sessionSignal:n,$fetch:r,options:i={}}=e,a=i.sessionOptions?.refetchInterval??0,o=i.sessionOptions?.refetchOnWindowFocus??!0,s=i.sessionOptions?.refetchWhenOffline??!1,c={lastSync:0,lastSessionRequest:0,cachedSession:void 0},l=()=>s||dk().isOnline,u=e=>{if(!l())return;if(e?.event===`storage`){c.lastSync=bk(),n.set(!n.get());return}let i=t.get(),a=()=>{c.lastSessionRequest=bk(),r(`/get-session`).then(async e=>{let{data:a,error:o}=xk(e);if(a?.needsRefresh)try{let e=await r(`/get-session`,{method:`POST`});({data:a,error:o}=xk(e))}catch{}let s=a?.session&&a?.user?a:null;t.set({...i,data:s,error:o}),c.lastSync=bk(),n.set(!n.get())}).catch(()=>{})};if(e?.event===`poll`){a();return}if(e?.event===`visibilitychange`){if(bk()-c.lastSessionRequest<Sk)return;c.lastSessionRequest=bk()}if(e?.event===`visibilitychange`){a();return}(i?.data===null||i?.data===void 0)&&(c.lastSync=bk(),n.set(!n.get()))},d=e=>{ak().post({event:`session`,data:{trigger:e},clientId:Math.random().toString(36).substring(7)})},f=()=>{a&&a>0&&(c.pollInterval=setInterval(()=>{t.get()?.data&&u({event:`poll`})},a*1e3))},p=()=>{c.unsubscribeBroadcast=ak().subscribe(()=>{u({event:`storage`})})},m=()=>{o&&(c.unsubscribeFocus=ck().subscribe(()=>{u({event:`visibilitychange`})}))},h=()=>{c.unsubscribeOnline=dk().subscribe(e=>{e&&u({event:`visibilitychange`})})};return{init:()=>{f(),p(),m(),h(),ak().setup(),ck().setup(),dk().setup()},cleanup:()=>{c.pollInterval&&=(clearInterval(c.pollInterval),void 0),c.unsubscribeBroadcast&&=(c.unsubscribeBroadcast(),void 0),c.unsubscribeFocus&&=(c.unsubscribeFocus(),void 0),c.unsubscribeOnline&&=(c.unsubscribeOnline(),void 0),c.lastSync=0,c.lastSessionRequest=0,c.cachedSession=void 0},triggerRefetch:u,broadcastSessionUpdate:d}}var wk=Object.create(null),Tk=e=>({}),Ek=new Proxy(wk,{get(e,t){return Tk()[t]??wk[t]},has(e,t){return t in Tk()||t in wk},set(e,t,n){let r=Tk(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;let n=Tk(!0);return delete n[t],!0},ownKeys(){let e=Tk(!0);return Object.keys(e)}});function Dk(e,t){return typeof process<`u`?{}[e]??t:typeof Deno<`u`?Deno.env.get(e)??t:typeof Bun<`u`?Bun.env[e]??t:t}Object.freeze({get BETTER_AUTH_SECRET(){return Dk(`BETTER_AUTH_SECRET`)},get AUTH_SECRET(){return Dk(`AUTH_SECRET`)},get BETTER_AUTH_TELEMETRY(){return Dk(`BETTER_AUTH_TELEMETRY`)},get BETTER_AUTH_TELEMETRY_ID(){return Dk(`BETTER_AUTH_TELEMETRY_ID`)},get NODE_ENV(){return Dk(`NODE_ENV`,`development`)},get PACKAGE_VERSION(){return Dk(`PACKAGE_VERSION`,`0.0.0`)},get BETTER_AUTH_TELEMETRY_ENDPOINT(){return Dk(`BETTER_AUTH_TELEMETRY_ENDPOINT`,``)}});function Ok(e){try{return(new URL(e).pathname.replace(/\/+$/,``)||`/`)!==`/`}catch{throw new YD(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function kk(e){try{let t=new URL(e);if(t.protocol!==`http:`&&t.protocol!==`https:`)throw new YD(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof YD?t:new YD(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function Ak(e,t=`/api/auth`){if(kk(e),Ok(e))return e;let n=e.replace(/\/+$/,``);return!t||t===`/`?n:(t=t.startsWith(`/`)?t:`/${t}`,`${n}${t}`)}function jk(e,t){return!e||e.trim()===``?!1:t===`proto`?e===`http`||e===`https`:t===`host`?[/\.\./,/\0/,/[\s]/,/^[.]/,/[<>'"]/,/javascript:/i,/file:/i,/data:/i].some(t=>t.test(e))?!1:/^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*(:[0-9]{1,5})?$/.test(e)||/^(\d{1,3}\.){3}\d{1,3}(:[0-9]{1,5})?$/.test(e)||/^\[[0-9a-fA-F:]+\](:[0-9]{1,5})?$/.test(e)||/^localhost(:[0-9]{1,5})?$/i.test(e):!1}function Mk(e,t,n,r,i){if(e)return Ak(e,t);if(r!==!1){let e=Ek.BETTER_AUTH_URL||Ek.NEXT_PUBLIC_BETTER_AUTH_URL||Ek.PUBLIC_BETTER_AUTH_URL||Ek.NUXT_PUBLIC_BETTER_AUTH_URL||Ek.NUXT_PUBLIC_AUTH_URL||(Ek.BASE_URL===`/`?void 0:Ek.BASE_URL);if(e)return Ak(e,t)}let a=n?.headers.get(`x-forwarded-host`),o=n?.headers.get(`x-forwarded-proto`);if(a&&o&&i&&jk(o,`proto`)&&jk(a,`host`))try{return Ak(`${o}://${a}`,t)}catch{}if(n){let e=Nk(n.url);if(!e)throw new YD(`Could not get origin from request. Please provide a valid base URL.`);return Ak(e,t)}if(typeof window<`u`&&window.location)return Ak(window.location.origin,t)}function Nk(e){try{let t=new URL(e);return t.origin===`null`?null:t.origin}catch{return null}}var Pk={id:`redirect`,name:`Redirect`,hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<`u`&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};function Fk(e,t){let n=_O(!1),r=EO(n,`/get-session`,e,{method:`GET`}),i=()=>{};return CO(r,()=>{let a=Ck({sessionAtom:r,sessionSignal:n,$fetch:e,options:t});return a.init(),i=a.broadcastSessionUpdate,()=>{a.cleanup()}}),{session:r,$sessionSignal:n,broadcastSessionUpdate:e=>i(e)}}function Ik(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function Lk(e,t,n=`.`,r){if(!Ik(t))return Lk(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:Ik(a)&&Ik(i[t])?i[t]=Lk(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Rk(e){return(...t)=>t.reduce((t,n)=>Lk(t,n,``,e),{})}var zk=Rk(),Bk=Object.defineProperty,Vk=Object.defineProperties,Hk=Object.getOwnPropertyDescriptors,Uk=Object.getOwnPropertySymbols,Wk=Object.prototype.hasOwnProperty,Gk=Object.prototype.propertyIsEnumerable,Kk=(e,t,n)=>t in e?Bk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qk=(e,t)=>{for(var n in t||={})Wk.call(t,n)&&Kk(e,n,t[n]);if(Uk)for(var n of Uk(t))Gk.call(t,n)&&Kk(e,n,t[n]);return e},Jk=(e,t)=>
23Vk(e,Hk(t)),Yk=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor)}},Xk=async(e,t)=>{let n=t||{},r={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:n,hooks:r};for(let i of t?.plugins||[]){if(i.init){let r=await i.init?.call(i,e.toString(),t);n=r.options||n,e=r.url}r.onRequest.push(i.hooks?.onRequest),r.onResponse.push(i.hooks?.onResponse),r.onSuccess.push(i.hooks?.onSuccess),r.onError.push(i.hooks?.onError),r.onRetry.push(i.hooks?.onRetry)}return{url:e,options:n,hooks:r}},Zk=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},Qk=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function $k(e){if(typeof e==`number`)return new Zk({type:`linear`,attempts:e,delay:1e3});switch(e.type){case`linear`:return new Zk(e);case`exponential`:return new Qk(e);default:throw Error(`Invalid retry strategy`)}}var eA=async e=>{let t={},n=async e=>typeof e==`function`?await e():e;if(e?.auth){if(e.auth.type===`Bearer`){let r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type===`Basic`){let[r,i]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!r||!i)return t;t.authorization=`Basic ${btoa(`${r}:${i}`)}`}else if(e.auth.type===`Custom`){let[r,i]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!i)return t;t.authorization=`${r??``} ${i}`}}return t},tA=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function nA(e){let t=e.headers.get(`content-type`),n=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]);if(!t)return`json`;let r=t.split(`;`).shift()||``;return tA.test(r)?`json`:n.has(r)||r.startsWith(`text/`)?`text`:`blob`}function rA(e){try{return JSON.parse(e),!0}catch{return!1}}function iA(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}function aA(e){try{return JSON.parse(e)}catch{return e}}function oA(e){return typeof e==`function`}function sA(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<`u`&&oA(globalThis.fetch))return globalThis.fetch;if(typeof window<`u`&&oA(window.fetch))return window.fetch;throw Error(`No fetch implementation found`)}async function cA(e){let t=new Headers(e?.headers),n=await eA(e);for(let[e,r]of Object.entries(n||{}))t.set(e,r);if(!t.has(`content-type`)){let n=lA(e?.body);n&&t.set(`content-type`,n)}return t}function lA(e){return iA(e)?`application/json`:null}function uA(e){if(!e?.body)return null;let t=new Headers(e?.headers);if(iA(e.body)&&!t.has(`content-type`)){for(let[t,n]of Object.entries(e?.body))n instanceof Date&&(e.body[t]=n.toISOString());return JSON.stringify(e.body)}return t.has(`content-type`)&&t.get(`content-type`)===`application/x-www-form-urlencoded`&&iA(e.body)?new URLSearchParams(e.body).toString():e.body}function dA(e,t){if(t?.method)return t.method.toUpperCase();if(e.startsWith(`@`)){let n=e.split(`@`)[1]?.split(`/`)[0];return hA.includes(n)?n.toUpperCase():t?.body?`POST`:`GET`}return t?.body?`POST`:`GET`}function fA(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var pA=class e extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,e.prototype)}};async function mA(e,t){let n=await e[`~standard`].validate(t);if(n.issues)throw new pA(n.issues);return n.value}var hA=[`get`,`post`,`put`,`patch`,`delete`],gA=e=>({id:`apply-schema`,name:`Apply Schema`,version:`1.0.0`,async init(t,n){let r=e.plugins?.find(e=>
23e.schema?.config?t.startsWith(e.schema.config.baseURL||``)||t.startsWith(e.schema.config.prefix||``):!1)?.schema||e.schema;if(r){let e=t;r.config?.prefix&&e.startsWith(r.config.prefix)&&(e=e.replace(r.config.prefix,``),r.config.baseURL&&(t=t.replace(r.config.prefix,r.config.baseURL))),r.config?.baseURL&&e.startsWith(r.config.baseURL)&&(e=e.replace(r.config.baseURL,``));let i=r.schema[e];if(i){let e=Jk(qk({},n),{method:i.method,output:i.output});return n?.disableValidation||(e=Jk(qk({},e),{body:i.input?await mA(i.input,n?.body):n?.body,params:i.params?await mA(i.params,n?.params):n?.params,query:i.query?await mA(i.query,n?.query):n?.query})),{url:t,options:e}}}return{url:t,options:n}}}),_A=e=>{async function t(t,n){let r=Jk(qk(qk({},e),n),{plugins:[...e?.plugins||[],gA(e||{}),...n?.plugins||[]]});if(e?.catchAllError)try{return await yA(t,r)}catch(e){return{data:null,error:{status:500,statusText:`Fetch Error`,message:`Fetch related error. Captured by catchAllError option. See error property for more details.`,error:e}}}return await yA(t,r)}return t};function vA(e,t){let{baseURL:n,params:r,query:i}=t||{query:{},params:{},baseURL:``},a=e.startsWith(`http`)?e.split(`/`).slice(0,3).join(`/`):n||``;if(e.startsWith(`@`)){let t=e.toString().split(`@`)[1].split(`/`)[0];hA.includes(t)&&(e=e.replace(`@${t}/`,`/`))}a.endsWith(`/`)||(a+=`/`);let[o,s]=e.replace(a,``).split(`?`),c=new URLSearchParams(s);for(let[e,t]of Object.entries(i||{})){if(t==null)continue;let n;if(typeof t==`string`)n=t;else if(Array.isArray(t)){for(let n of t)c.append(e,n);continue}else n=JSON.stringify(t);c.set(e,n)}if(r)if(Array.isArray(r)){let e=o.split(`/`).filter(e=>e.startsWith(`:`));for(let[t,n]of e.entries()){let e=r[t];o=o.replace(n,e)}}else for(let[e,t]of Object.entries(r))o=o.replace(`:${e}`,String(t));o=o.split(`/`).map(encodeURIComponent).join(`/`),o.startsWith(`/`)&&(o=o.slice(1));let l=c.toString();return l=l.length>0?`?${l}`.replace(/\+/g,`%20`):``,a.startsWith(`http`)?new URL(`${o}${l}`,a):`${a}${o}${l}`}var yA=async(e,t)=>{let{hooks:n,url:r,options:i}=await Xk(e,t),a=sA(i),o=new AbortController,s=i.signal??o.signal,c=vA(r,i),l=uA(i),u=await cA(i),d=dA(r,i),f=Jk(qk({},i),{url:c,headers:u,body:l,method:d,signal:s});for(let e of n.onRequest)if(e){let t=await e(f);typeof t==`object`&&t&&(f=t)}(`pipeTo`in f&&typeof f.pipeTo==`function`||typeof t?.body?.pipe==`function`)&&(`duplex`in f||(f.duplex=`half`));let{clearTimeout:p}=fA(i,o),m=await a(f.url,f);p();let h={response:m,request:f};for(let e of n.onResponse)if(e){let n=await e(Jk(qk({},h),{response:t?.hookOptions?.cloneResponse?m.clone():m}));n instanceof Response?m=n:typeof n==`object`&&n&&(m=n.response)}if(m.ok){if(f.method===`HEAD`)return{data:``,error:null};let e=nA(m),r={data:null,response:m,request:f};if(e===`json`||e===`text`){let e=await m.text();r.data=await(f.jsonParser??aA)(e)}else r.data=await m[e]();f?.output&&f.output&&!f.disableValidation&&(r.data=await mA(f.output,r.data));for(let e of n.onSuccess)e&&await e(Jk(qk({},r),{response:t?.hookOptions?.cloneResponse?m.clone():m}));return t?.throw?r.data:{data:r.data,error:null}}let g=t?.jsonParser??aA,_=await m.text(),v=rA(_),y=v?await g(_):null,b={response:m,responseText:_,request:f,error:Jk(qk({},y),{status:m.status,statusText:m.statusText})};for(let e of n.onError)e&&await e(Jk(qk({},b),{response:t?.hookOptions?.cloneResponse?m.clone():m}));if(t?.retry){let r=$k(t.retry),i=t.retryAttempt??0;if(await r.shouldAttemptRetry(i,m)){for(let e of n.onRetry)e&&await e(h);let a=r.getDelay(i);return await new Promise(e=>setTimeout(e,a)),await yA(e,Jk(qk({},t),{retryAttempt:i+1}))}}if(t?.throw)throw new Yk(m.status,m.statusText,v?y:_);return{data:null,error:Jk(qk({},y),{status:m.status,statusText:m.statusText})}},bA=e=>{if(typeof process>`u`)return;let t=e??`/api/auth`;if({}.NEXT_PUBLIC_AUTH_URL)return{}.NEXT_PUBLIC_AUTH_URL;if(typeof window>`u`){if({}.NEXTAUTH_URL)try{return{}.NEXTAUTH_URL}catch{}if({}.VERCEL_URL)try{let e={}.VERCEL_URL.startsWith(`http`)?``:`https://`;return`${new URL(`${e}${{}.VERCEL_URL}`).origin}${t}`}catch{}}},xA=(e,t)=>{let n=`credentials`in Request.prototype,r=Mk(e?.baseURL,e?.basePath,void 0,t)??bA(e?.basePath)??`/api/auth`,i=e?.plugins?.flatMap(e=>e.fetchPlugins).filter(e=>e!==void 0)||[],a={id:`lifecycle-hooks`,name:`lifecycle-hooks`,hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:o,onError:s,onRequest:c,onResponse:l,...u}=e?.fetchOptions||{},d=_A({baseURL:r,...n?{credentials:`include`}:{},method:`GET`,jsonParser(e){return e?yk(e,{strict:!1}):null},customFetchImpl:fetch,...u,plugins:[a,...u.plugins||[],...e?.disableDefaultFetchPlugins?[]:[Pk],...i]}),{$sessionSignal:f,session:p,broadcastSessionUpdate:m}=Fk(d,e),h=e?.plugins||[],g={},_={$sessionSignal:f,session:p}
23,v={"/sign-out":`POST`,"/revoke-sessions":`POST`,"/revoke-other-sessions":`POST`,"/delete-user":`POST`},y=[{signal:`$sessionSignal`,matcher(e){return e===`/sign-out`||e===`/update-user`||e===`/update-session`||e===`/sign-up/email`||e===`/sign-in/email`||e===`/delete-user`||e===`/verify-email`||e===`/revoke-sessions`||e===`/revoke-session`||e===`/revoke-other-sessions`||e===`/change-email`||e===`/change-password`},callback(e){e===`/sign-out`?m(`signout`):(e===`/update-user`||e===`/update-session`)&&m(`updateUser`)}}];for(let e of h)e.getAtoms&&Object.assign(_,e.getAtoms?.(d)),e.pathMethods&&Object.assign(v,e.pathMethods),e.atomListeners&&y.push(...e.atomListeners);let b={notify:e=>{_[e].set(!_[e].get())},listen:(e,t)=>{_[e].subscribe(t)},atoms:_};for(let t of h)t.getActions&&(g=zk(t.getActions?.(d,b,e)??{},g));return{get baseURL(){return r},pluginsActions:g,pluginsAtoms:_,pluginPathMethods:v,atomListeners:y,$fetch:d,$store:b}};function SA(e){return typeof e==`object`&&!!e&&`get`in e&&typeof e.get==`function`&&`lc`in e&&typeof e.lc==`number`}function CA(e,t,n){let r=t[e],{fetchOptions:i,query:a,...o}=n||{};return r||(i?.method?i.method:o&&Object.keys(o).length>0?`POST`:`GET`)}function wA(e,t,n,r,i){function a(o=[]){return new Proxy(function(){},{get(t,n){if(typeof n!=`string`||n===`then`||n===`catch`||n===`finally`)return;let r=[...o,n],i=e;for(let e of r)if(i&&typeof i==`object`&&e in i)i=i[e];else{i=void 0;break}return typeof i==`function`||SA(i)?i:a(r)},apply:async(e,a,s)=>{let c=`/`+o.map(e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)).join(`/`),l=s[0]||{},u=s[1]||{},{query:d,fetchOptions:f,...p}=l,m={...u,...f},h=CA(c,n,l);return await t(c,{...m,body:h===`GET`?void 0:{...p,...m?.body||{}},query:d||m?.query,method:h,async onSuccess(e){if(await m?.onSuccess?.(e),!i||m.disableSignal)return;let t=i.filter(e=>e.matcher(c));if(!t.length)return;let n=new Set;for(let e of t){let t=r[e.signal];if(!t)return;if(n.has(e.signal))continue;n.add(e.signal);let i=t.get();setTimeout(()=>{t.set(!i)},10),e.callback?.(c)}}})}})}return a()}function TA(e){return e.charAt(0).toUpperCase()+e.slice(1)}var EA=(e,{$listPasskeys:t,$store:n})=>({signIn:{passkey:async(r,i)=>{let a=await e(`/passkey/generate-authenticate-options`,{method:`GET`,throw:!1});if(!a.data)return a;let o=a.data.extensions||r?.extensions?{...a.data.extensions||{},...r?.extensions||{}}:void 0,s;try{s=await tk({optionsJSON:{...a.data,extensions:o},useBrowserAutofill:r?.autoFill})}catch(e){return{data:null,error:{code:e instanceof GO?e.code:`AUTH_CANCELLED`,message:LO.AUTH_CANCELLED.message,status:400,statusText:`BAD_REQUEST`}}}try{let{clientExtensionResults:a,...o}=s,c=await e(`/passkey/verify-authentication`,{body:{response:o},...r?.fetchOptions,...i,method:`POST`,throw:!1});return t.set(Math.random()),n.notify(`$sessionSignal`),r?.returnWebAuthnResponse?{...c,webauthn:{response:s,clientExtensionResults:a}}:c}catch(e){return console.error(`[Better Auth] Error verifying passkey`,e),{data:null,error:{code:`AUTH_CANCELLED`,message:LO.AUTH_CANCELLED.message,status:400,statusText:`BAD_REQUEST`}}}}},passkey:{addPasskey:async(n,r)=>{let i=await e(`/passkey/generate-register-options`,{method:`GET`,query:{...n?.authenticatorAttachment&&{authenticatorAttachment:n.authenticatorAttachment},...n?.name&&{name:n.name},...n?.context&&{context:n.context}},throw:!1});if(!i.data)return i;try{let a=i.data.extensions||n?.extensions?{...i.data.extensions||{},...n?.extensions||{}}:void 0,o=await XO({optionsJSON:{...i.data,extensions:a},useAutoRegister:n?.useAutoRegister}),{clientExtensionResults:s,...c}=o,l=await e(`/passkey/verify-registration`,{...n?.fetchOptions,...r,body:{response:c,name:n?.name},method:`POST`,throw:!1});return l.data?(t.set(Math.random()),n?.returnWebAuthnResponse?{...l,webauthn:{response:o,clientExtensionResults:s}}:l):l}catch(e){return e instanceof GO?e.code===`ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED`?{data:null,error:{code:e.code,message:LO.PREVIOUSLY_REGISTERED.message,status:400,statusText:`BAD_REQUEST`}}:e.code===`ERROR_CEREMONY_ABORTED`?{data:null,error:{code:e.code,message:LO.REGISTRATION_CANCELLED.message,status:400,statusText:`BAD_REQUEST`}}:{data:null,error:{code:e.code,message:e.message,status:400,statusText:`BAD_REQUEST`}}:{data:null,error:{code:`UNKNOWN_ERROR`,message:e instanceof Error?e.message:LO.UNKNOWN_ERROR.message,status:500,statusText:`INTERNAL_SERVER_ERROR`}}}}},$Infer:{}}),DA=()=>{let e=_O();return{id:`passkey`,version:RO,$InferServerPlugin:{},getActions:(t,n)=>EA(t,{$listPasskeys:e,$store:n}
23),getAtoms(t){return{listPasskeys:EO(e,`/passkey/list-user-passkeys`,t,{method:`GET`}),$listPasskeys:e}},pathMethods:{"/passkey/register":`POST`,"/passkey/authenticate":`POST`},atomListeners:[{matcher(e){return e===`/passkey/verify-registration`||e===`/passkey/delete-passkey`||e===`/passkey/update-passkey`||e===`/sign-out`},signal:`$listPasskeys`},{matcher:e=>e===`/passkey/verify-authentication`,signal:`$sessionSignal`}],$ERROR_CODES:LO}},OA=UD({UNAUTHORIZED:`Unauthorized access`,INVALID_REQUEST_BODY:`Invalid request body`,SUBSCRIPTION_NOT_FOUND:`Subscription not found`,SUBSCRIPTION_PLAN_NOT_FOUND:`Subscription plan not found`,ALREADY_SUBSCRIBED_PLAN:`You're already subscribed to this plan`,REFERENCE_ID_NOT_ALLOWED:`Reference id is not allowed`,CUSTOMER_NOT_FOUND:`Stripe customer not found for this user`,UNABLE_TO_CREATE_CUSTOMER:`Unable to create customer`,UNABLE_TO_CREATE_BILLING_PORTAL:`Unable to create billing portal session`,STRIPE_SIGNATURE_NOT_FOUND:`Stripe signature not found`,STRIPE_WEBHOOK_SECRET_NOT_FOUND:`Stripe webhook secret not found`,STRIPE_WEBHOOK_ERROR:`Stripe webhook error`,FAILED_TO_CONSTRUCT_STRIPE_EVENT:`Failed to construct Stripe event`,FAILED_TO_FETCH_PLANS:`Failed to fetch plans`,EMAIL_VERIFICATION_REQUIRED:`Email verification is required before you can subscribe to a plan`,SUBSCRIPTION_NOT_ACTIVE:`Subscription is not active`,SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:`Subscription is not scheduled for cancellation`,SUBSCRIPTION_NOT_PENDING_CHANGE:`Subscription has no pending cancellation or scheduled plan change`,ORGANIZATION_NOT_FOUND:`Organization not found`,ORGANIZATION_SUBSCRIPTION_NOT_ENABLED:`Organization subscription is not enabled`,AUTHORIZE_REFERENCE_REQUIRED:`Organization subscriptions require authorizeReference callback to be configured`,ORGANIZATION_HAS_ACTIVE_SUBSCRIPTION:`Cannot delete organization with active subscription`,ORGANIZATION_REFERENCE_ID_REQUIRED:`Reference ID is required. Provide referenceId or set activeOrganizationId in session`}),kA=`1.6.11`,AA=e=>({id:`stripe-client`,version:kA,$InferServerPlugin:{},pathMethods:{"/subscription/billing-portal":`POST`,"/subscription/restore":`POST`},$ERROR_CODES:OA});function jA(e,t={}){let n=(0,R.useRef)(e.get()),{keys:r,deps:i=[e,r]}=t,a=(0,R.useCallback)(t=>{let i=e=>{n.current!==e&&(n.current=e,t())};return i(e.value),r?.length?wO(e,r,i):e.listen(i)},i),o=()=>n.current;return(0,R.useSyncExternalStore)(a,o,o)}function MA(e){return`use${TA(e)}`}function NA(e){let{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:i,$store:a,atomListeners:o}=xA(e),s={};for(let[e,t]of Object.entries(r))s[MA(e)]=()=>jA(t);return wA({...n,...s,$fetch:i,$store:a},i,t,r,o)}var PA=ZD({...QD,project:[`create`,`read`,`update`,`delete`,`share`],billing:[`read`,`update`,`manage`]}),FA=PA.newRole({project:[`create`,`read`],billing:[`read`]}),IA=PA.newRole({project:[`create`,`read`,`update`,`delete`,`share`],billing:[`read`,`update`],...eO.statements}),LA=PA.newRole({project:[`create`,`read`,`update`,`delete`,`share`],billing:[`read`,`update`,`manage`],...eO.statements});function RA(e){return e===`admin`||e===`superadmin`}function zA(e){return e===`admin`||e===`superadmin`}function BA(e){return e===`superadmin`}function VA(e){return e===`superadmin`}function HA(e){return e===`admin`||e===`superadmin`}function UA(e){switch(e){case`superadmin`:return[`user`,`admin`,`superadmin`];case`admin`:return[`user`,`admin`];case`user`:return[`user`];default:return[]}}function WA(e){return e===`admin`||e===`superadmin`}var GA=NA({plugins:[IO(),DA(),iO({ac:PA,roles:{user:FA,admin:IA,superadmin:LA}}),PO(),oO(),lO(),dO(),cO(),AA({subscription:!0})]}),KA=V(`/dashboard`)({component:H(()=>U(()=>import(`./layout-B8ZZXYja.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])),`component`),beforeLoad:async()=>{let{error:e,data:t}=await GA.getSession();if(e||!t||!t.session)throw _t({to:`/login`})}}),qA=V(`/(auth)`)({component:H(()=>U(()=>import(`./layout-umnWUo4_.js`),[]),`component`),beforeLoad:async()=>{let{data:e}=await GA.getSession();if(e&&e.session)throw _t({to:`/dashboard`})},head:()=>({meta:[{name:`robots`,content:`noindex, nofollow`}]})}),JA=V(`/(public)/`)({component:H(()=>U(()=>import(`./(public)-BpiVqtk-.js`),__vite__mapDeps([20,21,22,23,8,24,25,14,15,26,27,16,28,29])),`component`),head:()=>({meta:[...ID({title:`AI Realty — Automated Real Estate Ads in 2 Minutes`,description:`Launch AI-powered real estate ads on Instagram, TikTok, YouTube & Facebook in 2 minutes. For agents, agencies & developers. Start free.`,keywords:`AI advertising for real estate agents, real estate marketing automation, 2-minute ad setup, property promotion, AI Realty, YouTube ads for agents, TikTok real estate ads, Instagram property marketing, Facebook housing ads`,image:`https://airealty.global/air_logo_512.png`,url:`/`})],links:LD({url:`/`}),scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`SoftwareApplication`,name:`AI Realty`,applicationCategory:`BusinessApplication`,operatingSystem:`Web`,url:`https://airealty.global`,description:`AI-powered advertising platform for real estate agents. Launch targeted ads on Instagram, TikTok, YouTube and Facebook in 2 minutes.`,offers:{"@type":`Offer`,priceCurrency:`EUR`,price:`100`,description:`Minimum ad budget per platform`},featureList:[`Launch ads on 4 major social platforms in 2 minutes`,`Smart targeting powered by AI algorithms`,`Automatic bid and budget optimization`,`Real-time analytics and leads in one dashboard`,`Multi-language support for international campaigns`]})},{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:[{"@type":`Question`,name:`How does AI Realty generate qualified real estate leads?`,acceptedA
23nswer:{"@type":`Answer`,text:`AI Realty launches targeted ads on Instagram, TikTok, YouTube and Facebook, reaching buyers actively searching in your city and language. Our AI optimises targeting, bidding and creative variants automatically.`}},{"@type":`Question`,name:`Where do my real estate ads run?`,acceptedAnswer:{"@type":`Answer`,text:`Ads run on Instagram, TikTok, YouTube and Facebook. You choose which platforms to activate.`}},{"@type":`Question`,name:`How is the ad budget calculated?`,acceptedAnswer:{"@type":`Answer`,text:`Budget is based on property price and platforms selected. Minimum is 100 EUR per platform. Recommended budget for a 620,000 EUR property is around 1,000 EUR for 30 days.`}},{"@type":`Question`,name:`Is the payment really safe, and what about my client data?`,acceptedAnswer:{"@type":`Answer`,text:`Yes. Checkout is hosted by Stripe, a PCI-DSS Level 1 provider. Listing media and lead data are stored encrypted at rest (AES-256) in EU/US data centres, GDPR and CCPA-compliant.`}},{"@type":`Question`,name:`What happens after I pay and how fast does my campaign launch?`,acceptedA
23nswer:{"@type":`Answer`,text:`Your campaign goes through platform moderation immediately — usually 4–24 hours. You receive an email and in-app notification the moment ads go live.`}},{"@type":`Question`,name:`How do I track ROI on my real estate ad spend?`,acceptedAnswer:{"@type":`Answer`,text:`Every promotion gets full ROI tracking: cost per impression, cost per click, cost per lead, lead-to-appointment rate and cost per closed deal.`}}]})}]})}),YA=V(`/(public)/tos`)({component:H(()=>U(()=>import(`./tos-D3pilaWn.js`),[]),`component`),head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},...ID({title:`Terms of Service — AI Realty`,description:`Read the Terms of Service for AI Realty. Learn about our service terms, user responsibilities, and legal agreements.`,keywords:`Terms of Service, Terms and Conditions, Legal, AI Realty, User Agreement`,url:`/tos`})],links:LD({url:`/tos`})})}),XA=V(`/(public)/team`)({beforeLoad:()=>{throw _t({to:`/about`,hash:`team`,statusCode:301})},component:H(()=>U(()=>import(`./team-DARujFlR.js`),[]),`component`)}),ZA=V(`/(public)/privacy`)({component:H(()=>U(()=>import(`./privacy-ByIRdtgk.js`),[]),`component`),head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},...ID({title:`Privacy Policy — AI Realty`,description:`Read the Privacy Policy for AI Realty. Learn how we collect, use, and protect your personal information.`,keywords:`Privacy Policy, Data Protection, Privacy, GDPR, AI Realty, User Privacy`,url:`/privacy`})],links:LD({url:`/privacy`})})}),QA=V(`/(public)/pricing`)({component:H(()=>U(()=>import(`./pricing-BtdrTOUx.js`),[]),`component`),head:()=>({meta:[...ID({title:`Pricing — AI Realty Plans for Agents & Agencies`,description:`Visibility €19/mo, SEO/GEO €499/6mo, Autopilot lead packages from €299, AI Realty Capital. Choose the right plan for your real estate growth.`,keywords:`AI Realty pricing, real estate leads, autopilot real estate, SEO GEO realtor, AI Realty Capital`,image:`https://airealty.global/air_logo_512.png`,url:`/pricing`})],links:LD({url:`/pricing`}),scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`SoftwareApplication`,name:`AI Realty subscription plans`,description:`Real estate advertising platform plans: Visibility / Tripwire, SEO / GEO, Autopilot lead packages, and AI Realty Capital.`,image:`https://airealty.global/air_logo_512.png`,applicationCategory:`BusinessApplication`,operatingSystem:`Web`,brand:{"@type":`Brand`,name:`AI Realty`},offers:[{"@type":`Offer`,name:`Visibility / Tripwire`,price:`19`,priceCurrency:`EUR`,priceSpecification:{"@type":`UnitPriceSpecification`,price:`19`,priceCurrency:`EUR`,unitCode:`MON`},url:`https://airealty.global/pricing`,availability:`https://schema.org/InStock`},{"@type":`Offer`,name:`SEO / GEO`,price:`499`,priceCurrency:`EUR`,url:`https://airealty.global/pricing`,availability:`https://schema.org/InStock`},{"@type":`Offer`,name:`Autopilot 5`,price:`299`,priceCurrency:`EUR`,url:`https://airealty.global/pricing`,availability:`https://schema.org/InStock`},{"@type":`Offer`,name:`Autopilot 10`,price:`549`,priceCurrency:`EUR`,url:`https://airealty.global/pricing`,availability:`https://schema.org/InStock`},{"@type":`Offer`,name:`Autopilot 30`,price:`1499`,priceCurrency:`EUR`,url:`https://airealty.global/pricing`,availability:`https://schema.org/InStock`},{"@type":`Offer`,name:`Autopilot 90`,price:`3999`,priceCurrency:`EUR`,url:`https://airealty.global/pricing`,availability:`https://schema.org/InStock`},{"@type":`Offer`,name:`AI REALTY CAPITAL`,priceCurrency:`EUR`,url:`https://airealty.global/pricing`,availability:`https://schema.org/InStock`}]})}]})}),$A=V(`/(public)/prices`)({beforeLoad:()=>{throw _t({to:`/pricing`,statusCode:301})}}),ej=[{id:`platform`,title:`What AI Realty is and how it works`,description:`Core questions about the product, ad launch flow and voice onboarding.`,items:[{question:`What is AI Realty, and how is it different from a traditional ad agency?`,answer:`AI Realty is an automated platform for promoting real estate listings and realtor personal brands. Instead of paying for manual agency work, agents use AI to create campaign materials, select audiences, launch ads on Instagram, TikTok, YouTube and Facebook, and improve visibility in Google and AI search.`},{question:`How does the 2-minute ad launch work?`,answer:`The agent uploads photos, a video, a listing link or describes the property by voice. AI generates creatives, ad copy and audience suggestions. The agent reviews the campaign, confirms it, and the ads are prepared for the selected platforms.`},{question:`Which advertising platforms does AI Realty support?`,answer:`In 2026, AI Realty supports Instagram, TikTok, YouTube and Facebook. One launch flow adapts creative formats and copy for each platform, so the agent does not need to configure four ad managers separately.`},{question:`Do I need digital marketing experience?`,answer:`No. AI Realty is designed for real estate professionals without ad-platform experience. The system asks clear questions about the listing, then handles copy, creative structure, audience logic and ongoing optimisation.`},{question:`What is voice onboarding?`,answer:`Voice onboarding lets an agent start a campaign by speaking with AI. The agent describes the property, AI asks follow-up questions, turns the answers into a structured listing, prepares campaign materials and suggests the next step.`}]},{id:`directory-seo`,title:`Global realtor directory and SEO`,description:`How agent profiles work in Google, ChatGPT, Perplexity and long-tail search.`,items:[{question:`What is the AI Realty global realtor directory?`,answer:`It is an indexable directory of realtor profiles built for Google and AI search engines. Buyers can find specialists by city, language, agency and expertise, while agents can claim and verify their pages.`},{question:`How do I find and claim my directory page?`,answer:`Search for your profile inside AI Realty or through Google, click Claim profile, and verify your identity and agency connection. After verification, you can add listings, case studies, reviews and voice posts.`},{question:`Why can my page exist before I register?`,answer:`AI Realty may pre-create minimal pages from publicly available professional data so buyers can discover agents earlier. Once verified, the page comes under the agent’s control.`},{question:`How does AI Realty help agents appear in ChatGPT and Perplexity?`,answer:`The platform structures profiles with Schema.org data, case studies, reviews, cities, languages and internal links. Clean, structured information is easier for generative search engines to understand and cite.`},{question:`What is long-tail SEO for real estate agents?`,answer:`Long-tail SEO targets specific searches such as "villa with pool in Aroeira under 700,000 euros". Competition is lower, buyer intent is stronger, and every profile, case study or voice post can become a search page.`},{question:`How does a voice blog help SEO?`,answer:`A short voice story about a market insight or completed deal becomes a structured post in the agent’s own style. Eac
23h post adds original content and another page for long-tail search demand.`},{question:`When will my profile start ranking in Google?`,answer:`Initial indexing often takes 2-6 weeks. Profiles that are regularly updated with cases, reviews and posts usually build search value faster.`},{question:`Which countries does the directory cover?`,answer:`The 2026 focus is Portugal, Spain, France and Germany, with planned expansion into Latin America, the United States and Canada.`}]},{id:`ads-platform`,title:`Ad campaigns and AI Ads Platform`,description:`Creatives, targeting, optimisation, languages and lead handling.`,items:[{question:`How does AI create ad materials for my listing?`,answer:`AI analyses the property, price, location and target audience, then prepares vertical videos, carousels, horizontal video formats and ad copy in the selected languages.`},{question:`Can I edit AI-generated ad materials?`,answer:`Yes. Before launch, you can edit copy, replace photos or videos, adjust targeting and change the budget. AI proposes the campaign, but the agent approves it.`},{question:`How does AI choose the target audience?`,answer:`The system considers property type, price, country, city, display language and likely buyer profile. For example, a villa in Portugal may be targeted to higher-income families from the EU and the UK.`},{question:`What is campaign auto-optimisation?`,answer:`After launch, AI monitors CPL, clicks, leads and lead quality. Budget 
23can be shifted toward the platforms and creatives that deliver better results.`},{question:`Where can I see campaign results?`,answer:`All metrics are collected in one dashboard: views, clicks, leads, cost per lead, deals, platform reach and plain-English AI insights.`},{question:`Can I launch ads in multiple languages?`,answer:`Yes. AI translates and adapts ads for selected languages and cultural contexts, which is especially useful for international property buyers.`},{question:`Where do leads go?`,answer:`Leads arrive inside the AI Realty ecosystem and agent page instead of being owned by a third-party portal. The agent or agency keeps direct buyer contact.`},{question:`How is this better than setting up Meta Ads manually?`,answer:`Manual setup takes time and requires creative, targeting and monitoring skills. AI Realty launches faster, works across multiple platforms and automates optimisation.`}]},{id:`pricing`,title:`Pricing and monetisation`,description:`Subscription, ad budget, agency plans, cancellation and customer economics.`,items:[{question:`How much does an AI Realty subscription cost?`,answer:`Current plans are shown on the Pricing page. The platform model combines an agent profile, SEO/GEO visibility, AI ad launch tools and an analytics dashboard.`},{question:`How does the agency plan work?`,answer:`Agency and enterprise options can include team pages, branding, internal rankings, shared dashboards, API access and CRM integrations.`},{question:`How is the advertising budget commission charged?`,answer:`AI Realty may charge a service fee on ad budget processed through the platform. This covers automation, creative generation, multi-platform launch and optimisation.`},{question:`Is there a free trial or demo?`,answer:`Current demo and trial terms should be checked on the website or with the AI Realty team because commercial terms may change.`},{question:`Can I cancel my subscription?`,answer:`Yes. After cancellation, your profile and accumulated content can remain available, while active promotion and AI ad-launch features may become limited.`},{question:`Why can customer LTV grow over time?`,answer:`Active users launch more campaigns, receive more leads, churn less often and build a long-term SEO asset through profiles, cases and publications.`}]},{id:`agent-profile`,title:`Realtor profile and personal brand`,description:`Profile content, ratings, badges and the Claim & Verify process.`,items:[{question:`What is included in a realtor profile?`,answer:`A profile can include name, photo, agency, cities, languages, specialisation, listings, deal cases, reviews, voice posts, ratings, response rate and professional badges.`},{question:`How do ratings and badges work?`,answer:`Ratings are based on activity, profile quality, reviews, cases and response speed. Badges such as Verified Agent, Top Performer or Luxury Expert help buyers evaluate expertise faster.`},{question:`How does a voice blog build a personal brand?`,answer:`The agent records short stories about the market and completed deals, and AI turns them into posts in the agent’s own tone. Regular stories create a recognisable voice and proof of expertise.`},{question:`Can I promote an agency instead of only my personal brand?`,answer:`Yes. Team and enterprise features can support agency branding, employee pages and a shared customer acquisition infrastructure.`},{question:`What is Claim & Verify?`,answer:`Claim means taking control of your directory page. Verify means confirming identity and professional affiliation. Verification increases trust and improves data quality for search.`}]},{id:`security`,title:`Technical questions and security`,description:`Data, ad accounts, mobile use, MLS integrations and languages.`,items:[{question:`How does AI Realty protect data?`,answer:`The platform is designed with GDPR requirements in mind. Client data is kept inside the AI Realty ecosystem and is not shared with third parties without consent. Details are described in the privacy policy.`},{question:`Do I need to connect my ad accounts?`,answer:`Launching ads may require one-time authorisation of advertising accounts. After connection, campaign management happens through the AI Realty dashboard.`}
23,{question:`What happens if I do not log in for several days?`,answer:`Auto-optimisation continues running. The system can redistribute budget, pause weak ads and scale stronger ones. Important events trigger notifications.`},{question:`Does AI Realty work on mobile?`,answer:`Yes. The interface and voice onboarding are designed for mobile use, so agents can launch or manage campaigns between property showings.`},{question:`Does AI Realty integrate with MLS and listing databases?`,answer:`AI Realty supports importing from an existing listing link. Specific MLS integrations depend on region and source availability.`},{question:`How many languages does the platform support?`,answer:`The interface and ad materials support major European languages, and the directory helps buyers search for agents in their preferred language.`}]},{id:`results`,title:`Performance and results`,description:`Leads, payback, portal comparison and compounding distribution effects.`,items:[{question:`What results can AI Realty users get?`,answer:`Results depend on the property, market and budget. AI Realty materials include an Aroeira villa case with large reach, thousands of leads and a sale in 44 days.`},{question:`How quickly can I receive the first leads?`,answer:`Paid campaigns often generate first leads within 24-72 hours. SEO and directory traffic grow more slowly, but they build a longer-term organic channel.`},{question:`Why can AI Realty be more effective than posting only on portals?`,answer:`Portals help buyers find properties, but the lead often belongs to the portal. AI Realty builds the agent’s own channel: profile, content, ads, direct inquiries and long-term search visibility.`},{question:`What is the distribution flywheel?`,answer:`Paid ads bring agents and buyers, they add content and cases, pages rank better, organic leads reduce acquisition cost, and saved budget can be reinvested into growth.`},{question:`When can the subscription pay back?`,answer:`Platform materials describe CAC payback in a range of several months. In practice, one additional deal per quarter can cover subscription and advertising costs for many agents.`}]},{id:`competition`,title:`Competition and differentiation`,description:`Why AI Realty is different from Meta, CRMs and property portals.`,items:[{question:`Why would Meta or Google not simply build the same thing?`,answer:`Large platforms build horizontal tools for many industries. AI Realty is vertical: listings, agent profiles, SEO/GEO, trust signals, cases and multi-platform ad launch are all designed around real estate.`},{question:`How is AI Realty different from a CRM?`,answer:`A CRM manages existing clients and deals. AI Realty works one step earlier: attracting new clients, increasing agent visibility and launching advertising campaigns.`},{question:`Does AI Realty have direct competitors?`,answer:`There are ad tools, portals and CRMs, but fewer direct alternatives combine AI advertising, a realtor directory, SEO/GEO and personal brand infrastructure in one product.`}]},{id:`community`,title:`Gamification and community`,description:`City rankings, professional reputation and campaign privacy.`,items:[{question:`How can I get into the top agents in my city?`,answer:`Add cases regularly, respond quickly to requests, publish voice posts, collect reviews and keep your profile complete. Rankings update by category.`},{question:`How does the community layer work?`,answer:`AI Realty supports a professional community through deal cases, educational posts, comments, colleague mentions and reputation that can convert into client trust.`},{question:`Can colleagues see my campaigns and budgets?`,answer:`Only the results and materials an agent chooses to publish are public. Budgets, campaign details and client contacts remain private.`}]},{id:`start`,title:`Getting started`,description:`Registration, profile verification and the first campaign launch.`,items:[{question:`How do I register and start using AI Realty?`,answer:`Create an account at airealty.global, find or create your profile, complete verification and upload your first listing. For a faster start, use voice onboarding or contact support.`}]}],tj=V(`/(public)/faq`)({component:H(()=>U(()=>
23import(`./faq-kyJOrcLh.js`),__vite__mapDeps([30,31,3,6,32,33])),`component`),head:()=>({meta:[...ID({title:`AI Realty FAQ — Ads, SEO, Leads, Profiles and Security`,description:`Answers to common AI Realty questions about AI real estate ads, realtor profiles, SEO/GEO visibility, leads, pricing, security and getting started.`,keywords:`AI Realty FAQ, real estate ads FAQ, AI realtor profile, real estate SEO FAQ, realtor leads, AI Ads Platform`,image:`https://airealty.global/air_logo_512.png`,url:`/faq`})],links:LD({url:`/faq`}),scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:ej.flatMap(e=>e.items.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}})))})}]})}),nj=V(`/(public)/contact-us`)({beforeLoad:()=>{throw _t({to:`/about`,statusCode:301})},component:H(()=>U(()=>import(`./contact-us-Dilp1Tac.js`),[]),`component`)}),rj=V(`/(public)/about`)({component:H(()=>U(()=>import(`./about-Bk_SwpMg.js`),__vite__mapDeps([34,8,35,15])),`component`),head:()=>({meta:[...ID({title:`About AI Realty Global — AI Ads & Real Estate Agent Directory`,description:`AI Realty Global builds AI Ads for real estate promotion and a global realtor directory for verified agents, agencies, developers, investors and property buyers.`,keywords:`about AI Realty, real estate AI platform, AI Ads for realtors, global realtor directory, PropTech Portugal`,image:`https://airealty.global/air_logo_512.png`,url:`/about`})],links:LD({url:`/about`}),scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`AboutPage`,name:`About AI Realty Global`,url:`https://airealty.global/about`,mainEntity:{"@type":`Organization`,"@id":`https://airealty.global/#organization`,name:`AI Realty Global`,url:`https://airealty.global`,logo:`https://airealty.global/air_logo_512.png`,email:PD,telephone:FD,address:{"@type":`PostalAddress`,streetAddress:`Avenida da Verdizela 54`,addressLocality:`Corroios`,addressCountry:`PT`},description:`AI Realty Global builds AI Ads for real estate promotion and a global realtor directory for verified agents, agencies, developers and buyers.`}})}]})}),ij=V(`/dashboard/`)({component:H(()=>U(()=>import(`./dashboard-BJVa4glf.js`),__vite__mapDeps([36,23,12,13,15,26])),`component`)}),aj=V(`/dashboard/partner`)({component:H(()=>U(()=>import(`./partner-BURnlAGB.js`),__vite__mapDeps([37,38,39,16,18,40,19,41])),`component`)}),oj=V(`/(auth)/reset-password`)({component:H(()=>U(()=>import(`./reset-password-DueTWckH.js`),__vite__mapDeps([42,43,23,44,41])),`component`)}),sj=V(`/(auth)/register`)({component:H(()=>U(()=>import(`./register-DzKO9sQf.js`),__vite__mapDeps([45,46,47,44,48,18,41,29])),`component`)}),cj=V(`/(auth)/login`)({component:H(()=>U(()=>import(`./login-DKJuZvwe.js`),__vite__mapDeps([49,46,47,44,38,50,40,48,18,41,29])),`component`)}),lj=V(`/(auth)/forgot-password`)({component:H(()=>U(()=>import(`./forgot-password-Bj1hj8XM.js`),__vite__mapDeps([51,46,47,44,3,52,40,48,18,41,29])),`component`)}),uj=V(`/(public)/investors/`)({component:H(()=>U(()=>import(`./investors-DeJaCY_a.js`),__vite__mapDeps([53,6,8,35,26,54])),`component`),head:()=>({meta:[...ID({title:`Invest in AI Realty Global — PropTech AI Ads & Realtor Directory`,description:`Investor page for AI Realty Global: Portugal-born PropTech building AI Ads for real estate, a global realtor directory and SEO/GEO infrastructure. Pitch deck on request.`,keywords:`PropTech startup investment, AI real estate ads, real estate lead generation SaaS, global realtor directory, AI search visibility, GEO SEO for agents, Portugal PropTech`,image:`https://airealty.global/air_logo_512.png`,url:`/investors`})],links:LD({url:`/investors`}),scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`WebPage`,name:`Invest in AI Realty Global`,description:`Investor page for a PropTech platform building AI real estate ads, realtor directory infrastructure and SEO/GEO pages for AI search visibility.`,url:`https://airealty.global/investors`,mainEntity:{"@type":`FAQPage`,mainEntity:[{"@type":`Question`,name:`What PropTech startup is building AI ads for real estate agents?`,acceptedA
23nswer:{"@type":`Answer`,text:`AI Realty Global is building AI Ads, a workflow that helps real estate professionals launch property promotion across major social platforms and track views, clicks, leads and cost per lead.`}},{"@type":`Question`,name:`Is AI Realty Global raising investment?`,acceptedAnswer:{"@type":`Answer`,text:`AI Realty Global is considering investment for marketing, infrastructure, AI Ads growth, realtor directory expansion and multilingual SEO/GEO infrastructure.`}},{"@type":`Question`,name:`How can investors request the AI Realty Global pitch deck?`,acceptedAnswer:{"@type":`Answer`,text:`Investors can fill out the pitch deck request form on this page or contact ${PD} with their fund, role and investment focus.`}}]}})}]})}),dj=V(`/(public)/articles/`)({component:H(()=>U(()=>import(`./articles-kqHTMQhX.js`),__vite__mapDeps([55,31,3,6,32,33])),`component`),head:()=>({meta:[...ID({title:`Real Estate Marketing Articles — AI Realty Resources`,description:`Read AI Realty articles about real estate lead generation, paid ads, CRM workflows, seller leads, buyer funnels and campaign attribution.`,keywords:`real estate marketing articles, realtor marketing blog, real estate lead generation, property advertising guides, AI Realty resources`,image:`https://airealty.global/air_logo_512.png`,url:`/articles`})],links:LD({url:`/articles`}),scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`CollectionPage`,name:`AI Realty Articles`,url:`https://airealty.global/articles`})}]})}),fj=`Igor Mesch`,pj=`2026-05-15`,mj=[{question:`What are the best AI tools for real estate agents?`,answer:`The best AI tools for real estate agents depend on the job: AI lead generation for seller and buyer demand, AI CRM for follow-up, AI virtual staging for listing photos, AI video tools for tours, AI valuation tools for pricing, and AI document tools for transaction workflows. AI Tools Hub groups the top 100 tools by real estate use case so agents can compare services by workflow instead of browsing a generic software list.`},{question:`How can AI tools help realtors get more leads?`,answer:`AI tools help realtors get more leads by improving targeting, speed-to-lead, listing content, buyer qualification and follow-up. For example, AI ad platforms can promote properties on Instagram, TikTok, YouTube and Facebook, AI chat can capture website visitors, and predictive lead tools can identify homeowners more likely to sell in a specific city or neighborhood.`},{question:`Which AI tools are useful for real estate marketing?`,answer:`Useful AI real estate marketing tools include listing description generators, social media content tools, real estate SEO software, landing page builders, AI ad platforms, video tour generators, image enhancement tools and virtual staging software. The strongest stack connects content, visuals, paid traffic, lead capture and CRM follow-up.`},{question:`Are AI real estate tools worth it for small agencies?`,answer:`AI real estate tools can be worth it for small agencies when they save hours, reduce outsourcing costs or improve conversion. A small agency can start with one painful workflow, such as follow-up, listing visuals or lead generation, then measure cost per lead, booked appointments, listing quality and time saved before expanding the stack.`},{question:`How should agents choose between AI real estate software?`,answer:`Agents should choose AI real estate software by matching the tool to a clear business goal: more seller leads, faster buyer follow-up, better listing photos, stronger SEO pages, more property video content, better pricing advice or simpler documents. Compare tools inside one category, test them on one market or listing, and keep the product that improves ROI or saves measurable time.`}],hj=[{title:`Broad AI real estate software searches`,keywords:[`AI tools for real estate`,`AI tools for real estate agents`,`best AI tools for realtors`,`real estate AI software`,`AI realtor tools`,`PropTech AI tools`]},{title:`Lead generation and CRM searches`,keywords:[`AI real estate lead generation`,`AI seller lead generation`,`AI buyer leads real estate`,`AI real estate CRM`,`realtor follow up automation`,`AI prospecting for real estate agents`]},{title:`Marketing, SEO and listing searches`,keywords:[`AI real estate marketing tools`,`AI listing description generator`,`real estate SEO AI tools`,`AI property marketing software`,`AI social media tools for realtors`,`AI ads for real estate agents`]},{title:`Visual, valuation and transaction searches`,keywords:[`AI virtual staging real estate`,`AI property photo editing`,`AI real estate video tools`,`AI property valuation`,`AI CMA real estate`,`AI real estate document automation`]}],gj=[{id:`lead-generation`,slug:`lead-generation`,title:`AI Lead Generation for Real Estate`,shortTitle:`Lead generation`,description:`Predictive seller leads, buyer intent, website chat, voice follow-up and ad platforms that help agents find demand before competitors do.`,geoAngle:`Best for geo farming in cities, resort markets and relocation corridors where speed-to-lead decides who wins the client.`,image:`https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1200&q=80`,keywords:[`AI real estate lead generation`,`predictive seller leads`,`AI realtor leads`,`real estate prospecting software`],painKeywords:[`lead`,`seller`,`buyer`,`prospect`,`farm`,`conversion`,`appointment`]},{id:`crm-follow-up`,slug:`crm-follow-up`,title:`AI CRM and Follow-Up Tools`,shortTitle:`CRM and follow-up`,description:`Smart CRMs, lead routing, nurture sequences, inbox assistants and AI follow-up systems for agents and team
23s.`,geoAngle:`Useful for agents working multiple cities, languages or buyer segments because the CRM can route intent by market.`,image:`https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1200&q=80`,keywords:[`AI real estate CRM`,`realtor follow up automation`,`AI lead nurture`,`real estate CRM AI`],painKeywords:[`crm`,`follow`,`email`,`text`,`nurture`,`pipeline`,`database`,`reply`]},{id:`listing-marketing`,slug:`listing-marketing`,title:`AI Listing Marketing and SEO Tools`,shortTitle:`Listing marketing`,description:`Listing descriptions, landing pages, social content, ads, email campaigns and SEO workflows for property marketing.`,geoAngle:`Strong for city pages, neighborhood guides and property campaigns targeting buyers searching by location.`,image:`https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1200&q=80`,keywords:[`AI listing descriptions`,`real estate SEO tools`,`AI property marketing`,`realtor content AI`],painKeywords:[`listing`,`copy`,`seo`,`content`,`social`,`ads`,`instagram`,`description`]},{id:`visual-staging`,slug:`virtual-staging`,title:`AI Virtual Staging and Visual Design`,shortTitle:`Virtual staging`,description:`Virtual staging, renovation previews, image enhancement, photo tagging and room redesign for listings.`,geoAngle:`Especially useful in competitive cities where online listing photos decide whether buyers book a showing.`,image:`https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80`,keywords:[`AI virtual staging real estate`,`AI property photos`,`virtual renovation AI`,`listing photo AI`],painKeywords:[`photo`,`staging`,`empty`,`room`,`renovation`,`image`,`interior`,`visual`]},{id:`video-tours`,slug:`video-tours`,title:`AI Video, 3D Tours and Floor Plans`,shortTitle:`Video and tours`,description:`Tools for listing videos, 3D tours, floor plans, walkthroughs, reels and immersive property presentations.`,geoAngle:`Helps international buyers evaluate homes remotely before traveling to Portugal, Spain, Florida or any target market.`,image:`https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1200&q=80`,keywords:[`AI real estate video`,`3D virtual tour software`,`AI floor plan`,`property walkthrough AI`],painKeywords:[`video`,`tour`,`floor`,`walkthrough`,`reel`,`3d`,`remote`,`youtube`]},{id:`valuation-market-data`,slug:`valuation-market-data`,title:`AI Valuation and Market Intelligence`,shortTitle:`Valuation and data`,description:`CMA, AVM, market trends, comps, forecasting, image recognition and pricing tools for defensible advice.`,geoAngle:`Best for agents who need local pricing narratives: Lisbon apartments, Madrid luxury, Orlando rentals or US suburbs.`,image:`https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=80`,keywords:[`AI property valuation`,`AI CMA real estate`,`real estate market data AI`,`property analytics AI`],painKeywords:[`valuation`,`price`,`cma`,`comps`,`market`,`analytics`,`forecast`,`data`]},{id:`transaction-documents`,slug:`transaction-documents`,title:`AI Transaction and Document Automation`,shortTitle:`Documents`,description:`Contract review, lease abstraction, transaction coordination, compliance checks and document workflows.`,geoAngle:`Useful when agents work across jurisdictions, languages and document-heavy investor transactions.`,image:`https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1200&q=80`,keywords:[`AI real estate documents`,`lease abstraction AI`,`transaction coordination AI`,`real estate compliance AI`],painKeywords:[`contract`,`document`,`lease`,`transaction`,`closing`,`compliance`,`paperwork`]},{id:`property-management`,slug:`property-management`,title:`AI Property Management and Operations`,shortTitle:`Property management`,description:`Maintenance, resident communication, rent operations, asset management and AI assistants for property teams.`,geoAngle:`Strong for rental portfolios, vacation markets and build-to-rent operations where service quality must scale.`,image:`https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80`,keywords:[`AI property management`,`property operations AI`,`tenant communication AI`,`maintenance automation`],painKeywords:[`property management`,`tenant`,`maintenance`,`rent`,`resident`,`portfolio`,`operations`]},{id:`commercial-investment`,slug:`commercial-investment`,title:`AI Commercial Real Estate and Investment`,shortTitle:`Commercial and investment`,description:`Feasibility, site selection, CRE intelligence, underwriting, portfolio insights and development automation.`,geoAngle:`Built for investors comparing cities, parcels, zoning constraints, rent growth and capital allocation.`,image:`https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80`,keywords:[`AI commercial real estate`,`AI site selection`,`AI real estate investment`,`development feasibility AI`],painKeywords:[`commercial`,`investment`,`feasibility`,`zoning`,`development`,`underwriting`,`portfolio`]},{id:`productivity-research`,slug:`productivity-research`,title:`AI Productivity and Research Assistants`,shortTitle:`Productivity`,description:`General AI assistants for research, voice notes, meeting summaries, scripts, multilingual replies and daily execution.`,geoAngle:`Useful for multilingual agents serving relocation buyers, investors and cross-border seller conversations.`,image:`https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80`,keywords:[`AI assistant for real estate agents`,`realtor productivity AI`,`AI real estate research`,`voice notes AI`],painKeywords:[`research`,`assistant`,`voice`,`notes`,`translation`,`meeting`,`script`,`prompt`]}],_j=Object.fromEntries(gj.map(e=>[e.id,e])),vj=[{name:`AI Realty Lead Engine`,slug:`ai-realty-lead-engine`,categoryId:`lead-generation`,website:`https://airealty.global/`,pricing:`Campaign budget based`,bestFor:`AI lead generation from property ads and SEO pages`,region:`Global agents and agencies`,strength:`Turns listings, local pages and campaign data into measurable buyer and seller leads`},{name:`Ylopo`,slug:`ylopo`,categoryId:`lead-generation`,website:`https://www.ylopo.com/`,pricing:`Custom pricing`,bestFor:`AI lead generation and voice/text nurture`,region:`US teams and brokerages`,strength:`AI follows up when buyers show intent signals`},{name:`SmartZip`,slug:`smartzip`,categoryId:`lead-generation`,website:`https://smartzip.com/`,pricing:`Custom pricing`,bestFor:`Predictive seller farming`,region:`US geographic farms`,strength:`Ranks homeowners likely to sell in a farm area`},{name:`Top Producer Smart Targeting`,slug:`top-producer-smart-targeting`,categoryId:`lead-generation`,website:`https://www.topproducer.com/`,pricing:`Custom pricing`,bestFor:`Likely-seller prospecting`,region:`US agents`,strength:`Turns seller prediction into repeatable outreach`},{name:`Likely.AI`,slug:`likely-ai`,categoryId:`lead-generation`,website:`https://likely.ai/`,pricing:`Paid plans`,bestFor:`Seller intent scoring`,region:`US agents and team
23s`,strength:`Predicts homeowners with higher listing intent`},{name:`Offrs`,slug:`offrs`,categoryId:`lead-generation`,website:`https://offrs.com/`,pricing:`Paid plans`,bestFor:`Predictive listing leads`,region:`US farming markets`,strength:`Combines data signals with marketing automation`},{name:`Roof AI`,slug:`roof-ai`,categoryId:`lead-generation`,website:`https://roof.ai/`,pricing:`Paid plans`,bestFor:`Website lead qualification`,region:`Brokerage websites`,strength:`Captures and qualifies site visitors around the clock`},{name:`Verse.io`,slug:`verse-io`,categoryId:`lead-generation`,website:`https://verse.io/`,pricing:`Custom pricing`,bestFor:`Speed-to-lead conversations`,region:`US sales teams`,strength:`AI-assisted human conversations for fast qualification`},{name:`Raiya`,slug:`raiya`,categoryId:`lead-generation`,website:`https://www.raiya.ai/`,pricing:`Custom pricing`,bestFor:`AI phone and text assistants`,region:`US agents`,strength:`Helps answer, qualify and route inbound leads`},{name:`Fello`,slug:`fello`,categoryId:`lead-generation`,website:`https://hifello.com/`,pricing:`Paid plans`,bestFor:`Database-to-seller lead conversion`,region:`US teams`,strength:`Uses homeowner data to activate old contacts`},{name:`Follow Up Boss`,slug:`follow-up-boss`,categoryId:`crm-follow-up`,website:`https://www.followupboss.com/`,pricing:`Paid plans`,bestFor:`Lead routing and CRM workflow`,region:`US and international teams`,strength:`Centralizes leads, conversations and team accountability`},{name:`kvCORE / BoldTrail`,slug:`kvcore-boldtrail`,categoryId:`crm-follow-up`,website:`https://www.insiderealestate.com/boldtrail/`,pricing:`Custom pricing`,bestFor:`All-in-one CRM, IDX and automation`,region:`Brokerages and team
23s`,strength:`Connects websites, CRM, nurture and marketing automation`},{name:`Lofty AI Assistant`,slug:`lofty-ai-assistant`,categoryId:`crm-follow-up`,website:`https://www.lofty.com/`,pricing:`Custom pricing`,bestFor:`CRM with AI assistant`,region:`Growth teams`,strength:`Combines lead management with AI chat and listing alerts`},{name:`Real Geeks`,slug:`real-geeks`,categoryId:`crm-follow-up`,website:`https://www.realgeeks.com/`,pricing:`Paid plans`,bestFor:`IDX, CRM and lead conversion`,region:`US agents`,strength:`Pairs lead capture websites with follow-up workflows`},{name:`BoomTown`,slug:`boomtown`,categoryId:`crm-follow-up`,website:`https://www.boomtownroi.com/`,pricing:`Custom pricing`,bestFor:`Brokerage lead generation and CRM`,region:`US brokerages`,strength:`Broad platform for lead gen, nurture and team management`},{name:`Brivity`,slug:`brivity`,categoryId:`crm-follow-up`,website:`https://www.brivity.com/`,pricing:`Paid plans`,bestFor:`CRM plus transaction visibility`,region:`US teams`,strength:`Keeps clients, listings and team tasks connected`},{name:`LionDesk`,slug:`liondesk`,categoryId:`crm-follow-up`,website:`https://www.liondesk.com/`,pricing:`Paid plans`,bestFor:`Simple CRM and video messages`,region:`US agents`,strength:`Affordable follow-up system with automation basics`},{name:`Wise Agent`,slug:`wise-agent`,categoryId:`crm-follow-up`,website:`https://wiseagent.com/`,pricing:`Paid plans`,bestFor:`Budget CRM with automations`,region:`Agents and small teams`,strength:`Keeps contacts, campaigns and checklists organized`},{name:`RealOffice360`,slug:`realoffice360`,categoryId:`crm-follow-up`,website:`https://www.realoffice360.com/`,pricing:`Freemium`,bestFor:`Relationship CRM`,region:`Individual agents`,strength:`Simple pipeline and contact memory for repeat business`},{name:`HubSpot Breeze`,slug:`hubspot-breeze`,categoryId:`crm-follow-up`,website:`https://www.hubspot.com/artificial-intelligence`,pricing:`Free and paid plans`,bestFor:`General CRM AI for real estate teams`,region:`Global`,strength:`AI content, prospecting and CRM automation in one ecosystem`},{name:`AI Realty`,slug:`ai-realty`,categoryId:`listing-marketing`,website:`https://airealty.global/`,pricing:`Campaign budget based`,bestFor:`AI ads and realtor SEO pages`,region:`Global agents`,strength:`Turns listings into ads, landing pages and measurable lead flow`},{name:`ChatGPT`,slug:`chatgpt`,categoryId:`listing-marketing`,website:`https://chatgpt.com/`,pricing:`Free and paid plans`,bestFor:`Listing copy, scripts and planning`,region:`Global`,strength:`Flexible writing, research and workflow assistant`},{name:`Canva`,slug:`canva`,categoryId:`listing-marketing`,website:`https://www.canva.com/`,pricing:`Free and paid plans`,bestFor:`Flyers, listing graphics and social posts`,region:`Global`,strength:`Fast branded design with AI image and layout tools`},{name:`Jasper`,slug:`jasper`,categoryId:`listing-marketing`,website:`https://www.jasper.ai/`,pricing:`Paid plans`,bestFor:`Brand-safe marketing copy`,region:`Global teams`,strength:`Creates reusable campaign copy and brand voice assets`},{name:`Copy.ai`,slug:`copy-ai`,categoryId:`listing-marketing`,website:`https://www.copy.ai/`,pricing:`Free and paid plans`,bestFor:`Marketing workflows`,region:`Global`,strength:`Automates repeatable copy and sales workflows`},{name:`Anyword`,slug:`anyword`,categoryId:`listing-marketing`,website:`https://www.anyword.com/`,pricing:`Paid plans`,bestFor:`Ad copy scoring`,region:`Global marketers`,strength:`Predicts which copy variants are likely to perform`},{name:`Surfer SEO`,slug:`surfer-seo`,categoryId:`listing-marketing`,website:`https://surferseo.com/`,pricing:`Paid plans`,bestFor:`SEO articles and city pages`,region:`Global`,strength:`Optimizes content against search competitors`},{name:`Semrush ContentShake AI`,slug:`semrush-contentshake-ai`,categoryId:`listing-marketing`,website:`https://www.semrush.com/contentshake/`,pricing:`Paid plans`,bestFor:`SEO topic creation`,region:`Global`,strength:`Combines keyword research with AI article drafting`},{name:`AdCreative.ai`,slug:`adcreative-ai`,categoryId:`listing-marketing`,website:`https://www.adcreative.ai/`,pricing:`Paid plans`,bestFor:`Ad creative variants`,region:`Global advertisers`,strength:`Generates and tests creative ideas for paid campaigns`},{name:`Epique AI`,slug:`epique-ai`,categoryId:`listing-marketing`,website:`https://epique.ai/`,pricing:`Free tools`,bestFor:`Agent-specific copy utilities`,region:`US agents`,strength:`Creates bios, descriptions, emails and real estate copy`},{name:`REimagineHome`,slug:`reimaginehome`,categoryId:`visual-staging`,website:`https://www.reimaginehome.ai/`,pricing:`Free and paid plans`,bestFor:`Virtual staging and redesign`,region:`Global`,strength:`Transforms listing photos into furnished or redesigned scenes`},{name:`Virtual Staging AI`,slug:`virtual-staging-ai`,categoryId:`visual-staging`,website:`https://www.virtualstagingai.app/`,pricing:`Per image and paid plans`,bestFor:`Fast room staging`,region:`Global`,strength:`Stages empty rooms quickly with design style choices`},{name:`Collov AI`,slug:`collov-ai`,categoryId:`visual-staging`,website:`https://collov.ai/`,pricing:`Paid plans`,bestFor:`Interior design visualization`,region:`Global`,strength:`Creates staged interiors and design concepts`},{name:`AI HomeDesign`,slug:`ai-homedesign`,categoryId:`visual-staging`,website:`https://aihomedesign.com/`,pricing:`Freemium`,bestFor:`Photo enhancement and staging`,region:`Global`,strength:`Offers staging, redesign and image improvement workflows`},{name:`Apply Design`,slug:`apply-design`,categoryId:`visual-staging`,website:`https://www.applydesign.io/`,pricing:`Paid plans`,bestFor:`Virtual staging at listing scale`,region:`Global`,strength:`Creates staged rooms for marketing-ready listings`},{name:`Interior AI`,slug:`interior-ai`,categoryId:`visual-staging`,website:`https://interiorai.com/`,pricing:`Paid plans`,bestFor:`Design inspiration and room styles`,region:`Global`,strength:`Generates interior concepts from room photos`},{name:`RoomGPT`,slug:`roomgpt`,categoryId:`visual-staging`,website:`https://www.roomgpt.io/`,pricing:`Freemium`,bestFor:`Simple room redesign concepts`,region:`Global`,strength:`Produces quick visual concepts for different interior styles`},{name:`Restb.ai`,slug:`restb-ai`,categoryId:`visual-staging`,website:`https://restb.ai/`,pricing:`Enterprise`,bestFor:`Computer vision for property photos`,region:`Global portals and MLS`,strength:`Tags, describes and analyzes listing images at scale`},{name:`Photoroom`,slug:`photoroom`,categoryId:`visual-staging`,website:`https://www.photoroom.com/`,pricing:`Free and paid plans`,bestFor:`Backgroun
23d cleanup and image polish`,region:`Global`,strength:`Removes backgrounds and improves marketing visuals`},{name:`Adobe Firefly`,slug:`adobe-firefly`,categoryId:`visual-staging`,website:`https://www.adobe.com/products/firefly.html`,pricing:`Free and paid plans`,bestFor:`Commercial-safe image generation`,region:`Global`,strength:`Generates and edits visual assets for campaigns`},{name:`Matterport`,slug:`matterport`,categoryId:`video-tours`,website:`https://matterport.com/`,pricing:`Free and paid plans`,bestFor:`3D tours and digital twins`,region:`Global`,strength:`Creates immersive property models for remote buyers`},{name:`Getfloorplan`,slug:`getfloorplan`,categoryId:`video-tours`,website:`https://getfloorplan.com/`,pricing:`Per plan`,bestFor:`2D and 3D floor plans`,region:`Global`,strength:`Generates floor plans from photos or sketches`},{name:`AutoReel`,slug:`autoreel`,categoryId:`video-tours`,website:`https://autoreelapp.com/`,pricing:`Paid plans`,bestFor:`Listing video creation`,region:`Global`,strength:`Turns property media into short listing videos`},{name:`Pictory`,slug:`pictory`,categoryId:`video-tours`,website:`https://pictory.ai/`,pricing:`Paid plans`,bestFor:`Video from scripts and assets`,region:`Global`,strength:`Creates social videos from text and media`},{name:`Runway`,slug:`runway`,categoryId:`video-tours`,website:`https://runwayml.com/`,pricing:`Free and paid plans`,bestFor:`Generative video and editing`,region:`Global`,strength:`Creates cinematic motion and edits for property stories`},{name:`Descript`,slug:`descript`,categoryId:`video-tours`,website:`https://www.descript.com/`,pricing:`Free and paid plans`,bestFor:`Video editing and voiceover`,region:`Global`,strength:`Edits video like text and creates polished voice content`},{name:`Synthesia`,slug:`synthesia`,categoryId:`video-tours`,website:`https://www.synthesia.io/`,pricing:`Paid plans`,bestFor:`AI presenter videos`,region:`Global`,strength:`Creates multilingual explainers and market updates`},{name:`HeyGen`,slug:`heygen`,categoryId:`video-tours`,website:`https://www.heygen.com/`,pricing:`Free and paid plans`,bestFor:`Avatar and translated videos`,region:`Global`,strength:`Localizes video messages for international buyers`},{name:`OpusClip`,slug:`opusclip`,categoryId:`video-tours`,website:`https://www.opus.pro/`,pricing:`Free and paid plans`,bestFor:`Short social clips`,region:`Global`,strength:`Cuts long video into social-ready clips`},{name:`Trolto`,slug:`trolto`,categoryId:`video-tours`,website:`https://trolto.com/`,pricing:`Paid plans`,bestFor:`Cinematic listing videos`,region:`Global`,strength:`Creates listing videos from still property photos`},{name:`HouseCanary`,slug:`housecanary`,categoryId:`valuation-market-data`,website:`https://www.housecanary.com/`,pricing:`Enterprise and paid plans`,bestFor:`Valuations and CMAs`,region:`US property markets`,strength:`Provides AVMs, forecasts and property analytics`},{name:`CoreLogic`,slug:`corelogic`,categoryId:`valuation-market-data`,website:`https://www.corelogic.com/`,pricing:`Enterprise`,bestFor:`Property data and analytics`,region:`US and global enterprise`,strength:`Large property datasets and risk analytics`},{name:`Plunk`,slug:`plunk`,categoryId:`valuation-market-data`,website:`https://www.getplunk.com/`,pricing:`Freemium`,bestFor:`Home value and renovation ROI`,region:`US homeowners and agents`,strength:`Tracks home value and improvement upside`},{name:`RPR`,slug:`rpr`,categoryId:`valuation-market-data`,website:`https://www.narrpr.com/`,pricing:`Member access`,bestFor:`Realtor property reports`,region:`US NAR members`,strength:`Creates market reports and property insights`},{name:`Zillow Zestimate`,slug:`zillow-zestimate`,categoryId:`valuation-market-data`,website:`https://www.zillow.com/z/zestimate/`,pricing:`Free consumer access`,bestFor:`Consumer home value signal`,region:`US housing market`,strength:`Gives buyers and sellers a familiar valuation reference`},{name:`Redfin Estimate`,slug:`redfin-estimate`,categoryId:`valuation-market-data`,website:`https://www.redfin.com/redfin-estimate`,pricing:`Free consumer access`,bestFor:`Consumer price expectation checks`,region:`US housing market`,strength:`Uses listing and market data for home value estimates`},{name:`Cherre`,slug:`cherre`,categoryId:`valuation-market-data`,website:`https://www.cherre.com/`,pricing:`Enterprise`,bestFor:`Connected real estate data`,region:`Enterprise real estate`,strength:`Unifies property data for analytics and decisions`},{name:`Regrid`,slug:`regrid`,categoryId:`valuation-market-data`,website:`https://regrid.com/`,pricing:`Free and paid plans`,bestFor:`Parcel data and maps`,region:`US parcels`,strength:`Provides parcel, land and ownership data`},{name:`Local Logic`,slug:`local-logic`,categoryId:`valuation-market-data`,website:`https://locallogic.co/`,pricing:`Enterprise`,bestFor:`Location intelligence`,regi
23on:`North America and Europe`,strength:`Quantifies neighborhood and location quality`},{name:`Placer.ai`,slug:`placer-ai`,categoryId:`valuation-market-data`,website:`https://www.placer.ai/`,pricing:`Enterprise`,bestFor:`Foot traffic analytics`,region:`US retail and CRE`,strength:`Measures visitation and trade area behavior`},{name:`ListedKit AI`,slug:`listedkit-ai`,categoryId:`transaction-documents`,website:`https://listedkit.com/`,pricing:`Paid plans`,bestFor:`Transaction coordination`,region:`US teams`,strength:`Automates coordination tasks and reminders`},{name:`Prophia`,slug:`prophia`,categoryId:`transaction-documents`,website:`https://www.prophia.com/`,pricing:`Enterprise and per document`,bestFor:`Lease abstraction`,region:`Commercial real estate`,strength:`Extracts lease terms and document intelligence`},{name:`V7 Go`,slug:`v7-go`,categoryId:`transaction-documents`,website:`https://www.v7labs.com/go`,pricing:`Enterprise`,bestFor:`Document automation workflows`,region:`Global`,strength:`Processes document-heavy operations with AI agents`},{name:`DocuSign AI`,slug:`docusign-ai`,categoryId:`transaction-documents`,website:`https://www.docusign.com/products/ai`,pricing:`Paid plans`,bestFor:`Agreement intelligence`,regi
23on:`Global`,strength:`Summarizes, reviews and manages agreement workflows`},{name:`SkySlope`,slug:`skyslope`,categoryId:`transaction-documents`,website:`https://skyslope.com/`,pricing:`Custom pricing`,bestFor:`Brokerage transaction management`,region:`US brokerages`,strength:`Manages forms, compliance and transaction files`},{name:`Dotloop`,slug:`dotloop`,categoryId:`transaction-documents`,website:`https://www.dotloop.com/`,pricing:`Paid plans`,bestFor:`Forms and transaction collaboration`,region:`US agents`,strength:`Connects forms, signatures and transaction loops`},{name:`Lone Wolf Transactions`,slug:`lone-wolf-transactions`,categoryId:`transaction-documents`,website:`https://www.lwolf.com/`,pricing:`Custom pricing`,bestFor:`Brokerage transaction operations`,region:`US and Canada`,strength:`Brings forms, back office and transaction management together`},{name:`Dealpath`,slug:`dealpath`,categoryId:`transaction-documents`,website:`https://www.dealpath.com/`,pricing:`Enterprise`,bestFor:`Investment deal management`,region:`Commercial real estate`,strength:`Tracks acquisitions, pipelines and deal collaboration`},{name:`Kira Systems`,slug:`kira-systems`,categoryId:`transaction-documents`,website:`https://kirasystems.com/`,pricing:`Enterprise`,bestFor:`Contract analysis`,region:`Legal and real estate teams`,strength:`Extracts clauses and risks from document sets`},{name:`LeaseLens`,slug:`leaselens`,categoryId:`transaction-documents`,website:`https://leaselens.com/`,pricing:`Paid plans`,bestFor:`Lease abstraction`,region:`CRE teams`,strength:`Turns lease PDFs into structured obligations`},{name:`Yardi Virtuoso`,slug:`yardi-virtuoso`,categoryId:`property-management`,website:`https://www.yardi.com/`,pricing:`Enterprise`,bestFor:`AI agents for property operations`,region:`Property managers`,strength:`Role-specific AI assistants across Yardi workflows`},{name:`AppFolio Realm-X`,slug:`appfolio-realm-x`,categoryId:`property-management`,website:`https://www.appfolio.com/`,pricing:`Custom pricing`,bestFor:`Property management automation`,region:`US property managers`,strength:`AI-assisted operations inside property management software`},{name:`Property Meld`,slug:`property-meld`,categoryId:`property-management`,website:`https://propertymeld.com/`,pricing:`Paid plans`,bestFor:`Maintenance coordination`,region:`US property management`,strength:`Coordinates repair requests and vendor communication`},{name:`HappyCo`,slug:`happyco`,categoryId:`property-management`,website:`https://happy.co/`,pricing:`Custom pricing`,bestFor:`Inspections and operations`,region:`Multifamily and rentals`,strength:`Digitizes inspections and asset condition workflows`},{name:`EliseAI`,slug:`eliseai`,categoryId:`property-management`,website:`https://www.eliseai.com/`,pricing:`Enterprise`,bestFor:`Leasing and resident AI`,region:`Multifamily operators`,strength:`Automates leasing conversations and resident support`},{name:`Funnel Leasing`,slug:`funnel-leasing`,categoryId:`property-management`,website:`https://www.funnelleasing.com/`,pricing:`Custom pricing`,bestFor:`Renter journey automation`,region:`Multifamily operators`,strength:`Centralizes leasing CRM and renter communications`},{name:`Zego`,slug:`zego`,categoryId:`property-management`,website:`https://www.gozego.com/`,pricing:`Custom pricing`,bestFor:`Resident experience and payments`,region:`Property managers`,strength:`Connects payments, utilities and resident engagement`},{name:`Mezo`,slug:`mezo`,categoryId:`property-management`,website:`https://mezo.com/`,pricing:`Custom pricing`,bestFor:`Maintenance intelligence`,regi
23on:`Property operators`,strength:`Uses AI to triage maintenance and reduce operational waste`},{name:`LeaseHawk`,slug:`leasehawk`,categoryId:`property-management`,website:`https://www.leasehawk.com/`,pricing:`Custom pricing`,bestFor:`Leasing calls and analytics`,region:`Multifamily leasing`,strength:`Tracks calls, leasing performance and prospect experience`},{name:`ResMan`,slug:`resman`,categoryId:`property-management`,website:`https://www.myresman.com/`,pricing:`Custom pricing`,bestFor:`Property management platform`,region:`US multifamily`,strength:`Centralizes operations, accounting and resident workflows`},{name:`Archistar`,slug:`archistar`,categoryId:`commercial-investment`,website:`https://www.archistar.ai/`,pricing:`Paid plans`,bestFor:`Development feasibility`,region:`Australia and global developers`,strength:`Evaluates site potential, planning rules and design options`},{name:`TestFit`,slug:`testfit`,categoryId:`commercial-investment`,website:`https://testfit.io/`,pricing:`Paid plans`,bestFor:`Building configurator and feasibility`,region:`Developers and architects`,strength:`Generates feasible building layouts quickly`},{name:`Reonomy`,slug:`reonomy`,categoryId:`commercial-investment`,website:`https://www.reonomy.com/`,pricing:`Custom pricing`,bestFor:`CRE property intelligence`,regi
23on:`US commercial real estate`,strength:`Finds property ownership and commercial intelligence`},{name:`Cherre CRE`,slug:`cherre-cre`,categoryId:`commercial-investment`,website:`https://www.cherre.com/`,pricing:`Enterprise`,bestFor:`Investment data infrastructure`,region:`Institutional real estate`,strength:`Connects fragmented CRE data into usable intelligence`},{name:`CompStak`,slug:`compstak`,categoryId:`commercial-investment`,website:`https://www.compstak.com/`,pricing:`Enterprise`,bestFor:`Lease and sales comps`,region:`US and UK CRE`,strength:`Provides verified commercial comps for underwriting`},{name:`CoStar`,slug:`costar`,categoryId:`commercial-investment`,website:`https://www.costar.com/`,pricing:`Enterprise`,bestFor:`Commercial market data`,region:`Global CRE`,strength:`Large commercial real estate data and listing platform`},{name:`DealMachine`,slug:`dealmachine`,categoryId:`commercial-investment`,website:`https://www.dealmachine.com/`,pricing:`Paid plans`,bestFor:`Investor lead sourcing`,region:`US investors`,strength:`Finds distressed and off-market opportunities`},{name:`Valcre`,slug:`valcre`,categoryId:`commercial-investment`,website:`https://www.valcre.com/`,pricing:`Custom pricing`,bestFor:`Appraisal workflow`,region:`Commercial appraisers`,strength:`Speeds valuation reports and appraisal operations`},{name:`Northspyre`,slug:`northspyre`,categoryId:`commercial-investment`,website:`https://www.northspyre.com/`,pricing:`Custom pricing`,bestFor:`Development project intelligence`,regi
23on:`Developers`,strength:`Tracks budgets, risks and project delivery data`},{name:`Cherre Data Kit`,slug:`cherre-data-kit`,categoryId:`commercial-investment`,website:`https://www.cherre.com/`,pricing:`Enterprise`,bestFor:`Portfolio analytics`,region:`Institutional owners`,strength:`Creates a connected data layer for portfolio decisions`},{name:`Perplexity`,slug:`perplexity`,categoryId:`productivity-research`,website:`https://www.perplexity.ai/`,pricing:`Free and paid plans`,bestFor:`Market and neighborhood research`,region:`Global`,strength:`Finds sourced answers and summarizes current research`},{name:`Claude`,slug:`claude`,categoryId:`productivity-research`,website:`https://claude.ai/`,pricing:`Free and paid plans`,bestFor:`Long document analysis and writing`,region:`Global`,strength:`Reads long files and drafts polished client-facing text`},{name:`Gemini`,slug:`gemini`,categoryId:`productivity-research`,website:`https://gemini.google.com/`,pricing:`Free and paid plans`,bestFor:`Google workspace research and writing`,region:`Global`,strength:`Connects AI assistance with search and productivity workflows`},{name:`Microsoft Copilot`,slug:`microsoft-copilot`,categoryId:`productivity-research`,website:`https://copilot.microsoft.com/`,pricing:`Free and paid plans`,bestFor:`Office productivity`,region:`Global teams`,strength:`Helps with Outlook, Word, Excel and meeting workflows`},{name:`Notion AI`,slug:`notion-ai`,categoryId:`productivity-research`,website:`https://www.notion.com/product/ai`,pricing:`Paid add-on`,bestFor:`Knowledge base and SOPs`,region:`Global teams`,strength:`Turns notes, templates and internal docs into an agent workspace`},{name:`Otter.ai`,slug:`otter-ai`,categoryId:`productivity-research`,website:`https://otter.ai/`,pricing:`Free and paid plans`,bestFor:`Meeting transcripts`,region:`Global`,strength:`Transcribes calls, showings and team meetings`},{name:`Fathom`,slug:`fathom`,categoryId:`productivity-research`,website:`https://fathom.video/`,pricing:`Free and paid plans`,bestFor:`Call summaries`,region:`Global`,strength:`Summarizes Zoom calls and action items`},{name:`Fireflies.ai`,slug:`fireflies-ai`,categoryId:`productivity-research`,website:`https://fireflies.ai/`,pricing:`Free and paid plans`,bestFor:`Meeting intelligence`,regi
23on:`Global teams`,strength:`Records, transcribes and searches conversations`},{name:`ElevenLabs`,slug:`elevenlabs`,categoryId:`productivity-research`,website:`https://elevenlabs.io/`,pricing:`Free and paid plans`,bestFor:`Voiceovers and multilingual audio`,region:`Global`,strength:`Creates natural voiceovers for listing videos`},{name:`Zapier AI`,slug:`zapier-ai`,categoryId:`productivity-research`,website:`https://zapier.com/ai`,pricing:`Free and paid plans`,bestFor:`Workflow automation`,region:`Global`,strength:`Connects lead forms, CRMs, spreadsheets and AI steps`}];function yj(e,t){let n=_j[e.categoryId],r=t+1,i=`${e.name}: AI real estate tool review, use cases and SEO keywords`,a=`${e.name} is a ${n.shortTitle.toLowerCase()} tool for ${e.bestFor.toLowerCase()}. It is strongest for ${e.region.toLowerCase()} that need ${e.strength.toLowerCase()}.`,o=e.region===`Global`?`international real estate markets`:e.region;return{...e,rank:r,category:n,title:i,description:a,image:n.image,howItWorks:[`${e.name} fits into the ${n.shortTitle.toLowerCase()} workflow: collect the input, let the AI structure the work, then review the output before sending it to a client or campaign.`,`For ${o}, the practical setup is to connect the tool to listings, CRM data, photos, forms or market research, depending on the category.`,`The agent should keep control of pricing, compliance, Fair Housing language, local claims and client advice. AI accelerates production; it does not replace professional judgment.`],useCases:[`Use ${e.name} when the agent's main bottleneck is ${e.bestFor.toLowerCase()}.`,`Build a geo workflow around one city or neighborhood, then repeat it for seller pages, buyer guides and campaign audiences.`,`Compare the output with at least two alternatives before committing to a paid subscription or brokerage-wide rollout.`],roi:`${e.name} is valuable when it saves agent hours, improves speed-to-lead, upgrades listing presentation, or makes pricing and follow-up more consistent. Track ROI by cost per lead, appointment rate, listing conversion, time saved per week and content output per listing.`,keywords:[`${e.name} real estate`,`${e.name} AI tool`,`${e.name} for real estate agents`,...n.keywords,`${n.shortTitle.toLowerCase()} for realtors`,`${e.bestFor.toLowerCase()} software`],stats:[{value:`#${r}`,label:`position in the AI Realty Top 100 real estate AI tools index`},{value:n.shortTitle,label:`primary category for choosing and comparing this service`},{value:e.pricing,label:`pricing signal to verify before rollout because SaaS plans change often`}],faqs:[{question:`What is ${e.name} best used for in real estate?`,answer:`${e.name} is best used for ${e.bestFor.toLowerCase()}. It belongs in the ${n.shortTitle.toLowerCase()} part of the agent workflow.`},{question:`Is ${e.name} useful for local SEO and geo marketing?`,answer:`Yes, if the agent turns outputs into city-specific pages, neighborhood content, listing campaigns or follow-up sequences. The tool works best when paired with accurate local data.`},{question:`How should an agent compare ${e.name} with similar tools?`,answer:`Compare setup time, CRM integrations, output quality, data sources, compliance controls, team permissions, pricing and whether it improves appointments or listings in the target market.`}]}}var bj=vj.map(yj);function xj(e){return bj.find(t=>t.slug===e)}function Sj(e){return gj.find(t=>t.slug===e)}function Cj(e){let t=Sj(e);return t?bj.filter(e=>e.categoryId===t.id):[]}function wj(e,t=4){return bj.filter(t=>t.slug!==e.slug&&t.categoryId===e.categoryId).slice(0,t)}function Tj(e,t=8){let n=e.toLowerCase().trim();if(!n)return bj.slice(0,t);let r=n.split(/[^a-z0-9]+/).filter(Boolean);return bj.map(e=>{let t=[e.name,e.category.title,e.bestFor,e.strength,e.description,e.keywords.join(` `),e.category.painKeywords.join(` `)].join(` `).toLowerCase();return{tool:e,score:r.reduce((e,n)=>e+ +!!t.includes(n),0)}}).sort((e,t)=>t.score-e.score||e.tool.rank-t.tool.rank).map(e=>e.tool).slice(0,t)}function Ej(e){return bj.filter(t=>t.categoryId===e.id).slice(0,5).map(e=>({name:e.name,bestFor:e.bestFor,pricing:e.pricing,strength:e.strength,url:`/ai-tools/${e.slug}`}))}var Dj=V(`/(public)/ai-tools/`)({component:H(()=>U(()=>import(`./ai-tools-C0pJ8ZJW.js`),__vite__mapDeps([56,57,6,58,8,59,15])),`component`),head:()=>({meta:[...ID({title:`AI Tools Hub: Top 100 AI Tools for Real Estate Agents`,description:`Explore the AI Realty AI Tools Hub: top AI tools for real estate agents, realtors, brokerages and developers across lead generation, CRM, SEO, virtual staging, video tours, valuation and documents.`,keywords:`AI tools for real estate, AI tools for real estate agents, best AI tools for realtors, real estate AI software, AI realtor tools, AI real estate lead generation, AI real estate CRM, AI real estate marketing tools, AI listing description generator, AI virtual staging real estate, AI property valuation, AI real estate SEO tools`,image:`https://airealty.global/air_logo_512.png`,url:`/ai-tools`})],links:LD({url:`/ai-tools`}),scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@graph":[{"@type":`CollectionPage`,name:`AI Tools Hub`,description:`Top 100 AI tools for real estate agents, agencies, developers, property managers and commercial real estate teams.`,url:`https://airealty.global/ai-tools`,dateModified:pj,author:{"@type":`Person`,name:fj},hasPart:gj.map(e=>({"@type":`CollectionPage`,name:e.title,url:`https://airealty.global/ai-tools/category/${e.slug}`,description:e.description}))},{"@type":`ItemList`,name:`Top 100 AI tools for real estate`,numberOfItems:bj.length,itemListElement:bj.map(e=>({"@type":`ListItem`,position:e.rank,url:`https://airealty.global/ai-tools/${e.slug}`,name:e.name}))},{"@type":`FAQPage`,mainEntity:mj.map(e=>
23({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}}))}]})}]})}),Oj={ws_agent:`Real Estate Agent`},kj=/^[a-z0-9]+(_[a-z0-9]+)+$/i;function Aj(e){let t=e?.trim();return t?Oj[t.toLowerCase()]||(t.includes(`_`)||kj.test(t)?`Real Estate Agent`:t):`Real Estate Agent`}function jj(e){return(e??[]).filter(e=>!e.startsWith(`import:`))}var Mj={portugal:{country:`Portugal`,population:`around 10.7 million residents`,headline:`Portugal turns ocean light, old stone and new capital into one property story.`,summary:`Portugal is small on the map and cinematic in real life: Atlantic cliffs, tiled cities, wine country, tech migration and buyers who arrive for lifestyle but stay for stability.`,seoText:`Use this page to compare real estate agents working across Portugal. The country attracts relocation buyers, investors, second-home clients and families looking for a calmer European base with strong international connections.`,landmarks:[{name:`Lisbon waterfront`,image:`https://images.unsplash.com/photo-1501927023255-9063be98970c?auto=format&fit=crop&w=900&q=80`,alt:`Lisbon waterfront and historic architecture in Portugal`},{name:`Atlantic coast`,image:`https://images.unsplash.com/photo-1555881400-74d7acaacd8b?auto=format&fit=crop&w=900&q=80`,alt:`Portugal Atlantic coast and colorful city landscape`}]},"portugal/lisbon":{country:`Portugal`,city:`Lisbon`,population:`about 575,000 residents in the city and roughly 3 million in the metro area`,headline:`Lisbon is a sunlit stage where old empires, startups and sea air share the same street.`,summary:`The city moves like a Netflix opening shot: yellow trams grinding up seven hills, tiled facades catching Atlantic light, investors talking yields over espresso, and buyers measuring life by the distance to the river.`,seoText:`Find real estate agents in Lisbon who understand international buyers, relocation, investment apartments, family neighborhoods, riverside homes and the practical rhythm of Portuguese transactions.`,landmarks:[{name:`Belem and the Tagus`,image:`https://images.unsplash.com/photo-1501927023255-9063be98970c?auto=format&fit=crop&w=900&q=80`,alt:`Famous Lisbon riverside landmark near Belem and the Tagus`},{name:`Alfama streets`,image:`https://images.unsplash.com/photo-1513735492246-483525079686?auto=format&fit=crop&w=900&q=80`,alt:`Historic Alfama streets in Lisbon Portugal`}]},"portugal/setubal":{country:`Portugal`,city:`Setubal`,population:`about 120,000 residents in the municipality`,headline:`Setubal feels like Lisbon exhaled: sea, mountains, market mornings and quiet value.`,summary:`Between Arrabida, the Sado estuary and ferry routes to Troia, Setubal gives buyers a more grounded version of coastal Portugal without losing access to the capital.`,seoText:`Compare real estate agents in Setubal for coastal homes, family apartments, investment properties and clients searching between Lisbon, Arrabida and the Atlantic.`,landmarks:[{name:`Arrabida coast`,image:`https://images.unsplash.com/photo-1513735492246-483525079686?auto=format&fit=crop&w=900&q=80`,alt:`Portuguese coast near Setubal and Arrabida`},{name:`Sado estuary`,image:`https://images.unsplash.com/photo-1555881400-74d7acaacd8b?auto=format&fit=crop&w=900&q=80`,alt:`Portugal coastal landscape near Setubal`}]},spain:{country:`Spain`,population:`about 48.6 million residents`,headline:`Spain is not one market; it is a whole season of property stories.`,summary:`Madrid drives capital, Barcelona bends design toward the sea, the Costa del Sol sells light and rhythm, and inland cities keep their own scripts of family, food and long-term value.`,seoText:`Browse real estate agents across Spain for buying, selling, relocation, investment, luxury homes, new developments and multilingual support in major Spanish property markets.`,landmarks:[{name:`Madrid city center`,image:`https://images.unsplash.com/photo-1539037116277-4db20889f2d4?auto=format&fit=crop&w=900&q=80`,alt:`Madrid city center and famous Spanish architecture`},{name:`Barcelona coast`,image:`https://images.unsplash.com/photo-1583422409516-2895a77efded?auto=format&fit=crop&w=900&q=80`,alt:`Barcelona skyline and famous architecture in Spain`}]},"spain/madrid":{country:`Spain`,city:`Madrid`,population:`about 3.4 million residents in the city`,headline:`Madrid is where Spanish property talks in capital letters.`,summary:`The city has the confidence of a closing scene: grand avenues, late dinners, business districts, museums that refuse to whisper, and neighborhoods where buyers choose between prestige, yield and everyday life.`,seoText:`Find real estate agents in Madrid for central apartments, family neighborhoods, investment property, relocation support and premium homes across the Spanish capital.`,landmarks:[{name:`Gran Via`,image:`https://images.unsplash.com/photo-1539037116277-4db20889f2d4?auto=format&fit=crop&w=900&q=80`,alt:`Gran Via in Madrid Spain`},{name:`Retiro and historic Madrid`,image:`https://images.unsplash.com/photo-1578305698944-874fa44d04c9?auto=format&fit=crop&w=900&q=80`,alt:`Historic Madrid landmark and city park atmosphere`}]},"spain/barcelona":{country:`Spain`,city:`Barcelona`,population:`about 1.7 million residents in the city`,headline:`Barcelona sells the rare mix of architecture, sea air and global appetite.`,summary:`It is a city of sharp contrasts: Gaudi curves, grid streets, beach light, startup energy and buyers who want both Mediterranean ease and international liquidity.`,seoText:`Compare real estate agents in Barcelona for Eixample apartments, coastal homes, investment opportunities, relocation and international buyer support.`,landmarks:[{name:`Sagrada Familia`,image:`https://images.unsplash.com/photo-1583422409516-2895a77efded?auto=format&fit=crop&w=900&q=80`,alt:`Sagrada Familia and Barcelona city architecture`},{name:`Barcelona waterfront`,image:`https://images.unsplash.com/photo-1523531294919-4bcd7c65e216?auto=format&fit=crop&w=900&q=80`,alt:`Barcelona waterfront in Spain`}]},"united-states":{country:`United States`,population:`more than 330 million residents`,headline:`The United States is a property market of many climates, taxes and buyer dreams.`,summary:`From resort cities to financial capitals, every state rewrites the script. The right agent helps clients understand n
23ot just a home, but schools, insurance, financing, lifestyle and timing.`,seoText:`Browse real estate agents in the United States for local property searches, investment homes, relocation, second homes and international buyer support.`,landmarks:[{name:`Florida skyline`,image:`/cases/orlando.jpg`,alt:`Florida real estate market and city skyline`},{name:`American city living`,image:`https://images.unsplash.com/photo-1485738422979-f5c462d49f74?auto=format&fit=crop&w=900&q=80`,alt:`United States city skyline and residential property market`}]},"united-states/orlando":{country:`United States`,city:`Orlando`,population:`about 320,000 residents in the city and more than 2 million in the metro area`,headline:`Orlando is not only theme parks; it is Florida growth wearing a bright smile.`,summary:`Behind the vacation postcard is a practical market of families, investors, rentals, new communities and buyers who want sun, airports and a story they can rent or live in.`,seoText:`Find real estate agents in Orlando for Florida homes, investment property, relocation, rental-oriented purchases and international buyers looking at Central Florida.`,landmarks:[{name:`Downtown Orlando`,image:`/cases/orlando.jpg`,alt:`Orlando Florida real estate and city view`},{name:`Central Florida lifestyle`,image:`https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80`,alt:`Florida residential lifestyle and homes`}]}};function Nj(e){return(e||``).toLowerCase().normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/&/g,`and`).replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}
23function Pj(e){return e.split(`-`).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function Fj(e){return`/${Nj(e.country)||`global`}/${Nj(e.city)||`all-cities`}/agents/${e.slug}`}function Ij(e){return{countrySlug:Nj(e.country)||`global`,citySlug:Nj(e.city)||`all-cities`,agentSlug:e.slug}}function Lj(e,t){let n=Nj(e)||`global`,r=Nj(t);return r?`/${n}/${r}/agents`:`/${n}/agents`}function Rj(e,t){return e?.find(e=>Nj(e)===t)}function zj(e,t){let n=Nj(e),r=Nj(t),i=Mj[r?`${n}/${r}`:n];if(i)return i;let a=Mj[n],o=a?.country||e||Pj(n),s=t||void 0,c=s?`${s}, ${o}`:o;return{country:o,city:s,population:s?`local population varies by municipality and metropolitan area`:`national population varies by official annual estimates`,headline:`${c} is a local property market where trust, timing and neighborhood knowledge matter.`,summary:s?`${s} needs agents who can translate streets, schools, transport, lifestyle and price signals into a clear buying or selling decision.`:`${o} is best searched through local specialists who understand regions, buyer demand, language needs and the practical steps of a property transaction.`,seoText:`Use this page to compare real estate agents in ${c}. Browse local specialists by profile quality, company, specialty and location before sending a buyer or seller request.`,landmarks:a?.landmarks||[{name:c,image:`/air_logo_512.png`,alt:`${c} real estate agent directory`}]}}function Bj(e){let t=`${e.firstName} ${e.lastName}`,n=Aj(e.title),r=[e.city,e.state,e.country].filter(Boolean).join(`, `),i=[e.city,e.country].filter(Boolean).join(`, `),a=e.companyName?` at ${e.companyName}`:``,o=e.industry||`real estate`,s=e.isVerified?`Verified `:``;return{fullName:t,jobTitle:n,location:r,locationShort:i,company:a,title:`${s}${t} - ${n}${a} in ${i} | AI Realty`,description:`${s}Real Estate Agent ${t} serving ${r}. Compare local expertise, ${o.toLowerCase()} focus, profile quality and contact options on AI Realty.`,keywords:[t,`${n} ${i}`,`real estate agent ${e.city||e.country}`,`realtor ${e.country}`,`${o} agent`,e.companyName,e.isVerified?`verified realtor`:void 0,`verified realtor directory`,`AI Realty`].filter(Boolean).join(`, `)}}function Vj(e,t={}){let n=`${e.firstName} ${e.lastName}`,r=Aj(e.title),i=[e.city,e.country].filter(Boolean).join(`, `),a=`https://airealty.global${Fj(e)}`,o=`https://airealty.global/og/agents/${e.slug}.png`,s=[],c={"@context":`https://schema.org`,"@type":[`Person`,`RealEstateAgent`],"@id":`${a}#person`,name:n,jobTitle:r,url:a,...e.avatarUrl?{image:e.avatarUrl}:{image:o},address:{"@type":`PostalAddress`,...e.city?{addressLocality:e.city}:{},...e.state?{addressRegion:e.state}:{},...e.zipCode?{postalCode:e.zipCode}:{},addressCountry:e.country},areaServed:e.city?{"@type":`City`,name:i}:{"@type":`Country`,name:e.country},knowsLanguage:e.languages??[]};if(e.companyName){let t={"@type":`Organization`,name:e.companyName};e.companyWebsite&&(t.url=e.companyWebsite),c.worksFor=t}let l=[];e.personLinkedin&&l.push(e.personLinkedin),e.companyWebsite&&!l.includes(e.companyWebsite)&&l.push(e.companyWebsite),l.length>0&&(c.sameAs=l),e.phone&&(c.telephone=e.phone),e.email&&(c.email=e.email),e.isVerified&&(c.award=`Verified Agent`,c.hasCredential={"@type":`EducationalOccupationalCredential`,name:`Verified Real Estate Agent`,credentialCategory:`Platform Identity Verification`,recognizedBy:{"@type":`Organization`,name:`AI Realty`,url:`https://airealty.global`}}),s.push(c);let u=[{name:`Directory`,path:`/agents`},{name:e.country,path:Lj(e.country)},...e.city?[{name:e.city,path:Lj(e.country,e.city)}]:[],{name:n,path:Fj(e)}];return s.push({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:u.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,item:`https://airealty.global${e.path}`}))}),t.faqs&&t.faqs.length>0&&s.push({"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:t.faqs.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}}))}),s}async function Hj(e){let t=e.api??e.trpc;t&&(await e.queryClient.ensureQueryData(t.agents.listFilterOptions.queryOptions()),await e.queryClient.ensureQueryData(t.agents.listLocationIndex.queryOptions()),await e.queryClient.ensureQueryData(t.agents.list.queryOptions({input:{page:1,limit:30}})))}async function Uj(e,t){let n=e.api??e.trpc;if(!n)return;let r=await e.queryClient.ensureQueryData(n.agents.listFilterOptions.queryOptions());await e.queryClient.ensureQueryData(n.agents.listLocationIndex.queryOptions());let i=Rj(r?.countries,t.countrySlug)||Pj(t.countrySlug),a=t.citySlug===`all-cities`?void 0:Rj(r?.cities,t.citySlug)||Pj(t.citySlug);await e.queryClient.ensureQueryData(n.agents.list.queryOptions({input:{page:t.page??1,limit:30,country:i,...a?{city:a}:{}}}))}var Wj=(...e)=>
23e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Gj=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Kj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),qj=e=>{let t=Kj(e);return t.charAt(0).toUpperCase()+t.slice(1)},Jj={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Yj=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Xj=(0,R.createContext)({}),Zj=()=>(0,R.useContext)(Xj),Qj=(0,R.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=Zj()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,R.createElement)(`svg`,{ref:c,...Jj,width:t??l??Jj.width,height:t??l??Jj.height,stroke:e??f,strokeWidth:m,className:Wj(`lucide`,p,i),...!a&&!Yj(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,R.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),$j=(e,t)=>{let n=(0,R.forwardRef)(({className:n,...r},i)=>(0,R.createElement)(Qj,{ref:i,iconNode:t,className:Wj(`lucide-${Gj(qj(e))}`,`lucide-${e}`,n),...r}));return n.displayName=qj(e),n},eM=$j(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),tM=$j(`badge-check`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),nM=$j(`building-2`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),rM=$j(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),iM=$j(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),aM=$j(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),oM=$j(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),sM=$j(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),cM=$j(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),lM=$j(`earth`,[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),uM=$j(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),dM=$j(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),fM=$j(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),pM=$j(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),mM=$j(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),hM=$j(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),gM=$j(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),_M=$j(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),vM=$j(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]);function yM(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=yM(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function bM(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=yM(e))&&(r&&(r+=` `),r+=t);return r}var xM=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,SM=bM,CM=(e,t)=>n=>{if(t?.variants==null)return SM(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=xM(t)||xM(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>
vendor: 4,395 bytes, line 23
23{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return SM(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};function wM(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function TM(...e){return t=>{let n=!1,r=e.map(e=>{let r=wM(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():wM(e[t],null)}}}}function EM(...e){return R.useCallback(TM(...e),e)}function DM(e){let t=OM(e),n=R.forwardRef((e,n)=>{let{children:r,...i}=e,a=R.Children.toArray(r),o=a.find(AM);if(o){let e=o.props.children,r=a.map(t=>t===o?R.Children.count(e)>1?R.Children.only(null):R.isValidElement(e)?e.props.children:null:t);return(0,z.jsx)(t,{...i,ref:n,children:R.isValidElement(e)?R.cloneElement(e,void 0,r):null})}return(0,z.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function OM(e){let t=R.forwardRef((e,t)=>{let{children:n,...r}=e;if(R.isValidElement(n)){let e=MM(n),i=jM(r,n.props);return n.type!==R.Fragment&&(i.ref=t?TM(t,e):e),R.cloneElement(n,i)}return R.Children.count(n)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kM=Symbol(`radix.slottable`);function AM(e){return R.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===kM}function jM(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function MM(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var NM=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=DM(`Primitive.${t}`),r=R.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,z.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function PM(e,t){e&&cd.flushSync(()=>e.dispatchEvent(t))}var FM=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),IM=`VisuallyHidden`,LM=R.forwardRef((e,t)=>(0,z.jsx)(NM.span,{...e,ref:t,style:{...FM,...e.style}}));LM.displayName=IM;var RM=LM;function zM(e,t){let n=R.createContext(t),r=e=>{let{children:t,...r}=e,i=R.useMemo(()=>r,Object.values(r));return(0,z.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=R.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function BM(e,t=[]){let n=[];function r(t,r){let i=R.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=R.useMemo(()=>o,Object.values(o));return(0,z.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=R.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>R.createContext(e));return function(n){let r=n?.[e]||t;return R.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,VM(i,...t)]}function VM(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return R.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function HM(e){let t=UM(e),n=R.forwardRef((e,n)=>{let{children:r,...i}=e,a=R.Children.toArray(r),o=a.find(GM);if(o){let e=o.props.children,r=a.map(t=>t===o?R.Children.count(e)>1?R.Children.only(null):R.isValidElement(e)?e.props.children:null:t);return(0,z.jsx)(t,{...i,ref:n,children:R.isValidElement(e)?R.cloneElement(e,void 0,r):null})}return(0,z.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function UM(e){let t=R.forwardRef((e,t)=>
23{let{children:n,...r}=e;if(R.isValidElement(n)){let e=qM(n),i=KM(r,n.props);return n.type!==R.Fragment&&(i.ref=t?TM(t,e):e),R.cloneElement(n,i)}return R.Children.count(n)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var WM=Symbol(`radix.slottable`);function GM(e){return R.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===WM}function KM(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function qM(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function JM(e){let t=e+`CollectionProvider`,[n,r]=BM(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=R.useRef(null),a=R.useRef(new Map).current;return(0,z.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=HM(s),l=R.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,z.jsx)(c,{ref:EM(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=HM(u),p=R.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=R.useRef(null),s=EM(t,o),c=a(u,n);return R.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,z.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return R.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}typeof window<`u`&&window.document&&window.document.createElement;function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var YM=globalThis?.document?R.useLayoutEffect:()=>{},XM=R.useInsertionEffect||YM;function ZM({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=QM({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=R.useRef(e!==void 0);R.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. 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.`),t.current=s},[s,r])}return[c,R.useCallback(t=>{if(s){let n=$M(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function QM({defaultProp:e,onChange:t}){let[n,r]=R.useState(e),i=R.useRef(n),a=R.useRef(t);return XM(()=>{a.current=t},[t]),R.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function $M(e){return typeof e==`function`}function eN(e,t){return R.useReducer((e,n)=>t[e][n]??e,e)}var tN=e=>{let{present:t,children:n}=e,r=nN(t),i=typeof n==`function`?n({present:r.isPresent}):R.Children.only(n),a=EM(r.ref,iN(i));return typeof n==`function`||r.isPresent?R.cloneElement(i,{ref:a}):null};tN.displayName=`Presence`;function nN(e){let[t,n]=R.useState(),r=R.useRef(null),i=R.useRef(e),a=R.useRef(`none`),[o,s]=eN(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return R.useEffect(()=>{let e=rN(r.current);a.current=o===`mounted`?e:`none`},[o]),YM(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=rN(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),YM(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=rN(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=rN(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:R.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function rN(e){return e?.animationName||`none`}function iN(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var aN=R.useId||(()=>void 0),oN=0;
vendor: 17,297 bytes, lines 23-63
23function sN(e){let[t,n]=R.useState(aN());return YM(()=>{e||n(e=>e??String(oN++))},[e]),e||(t?`radix-${t}`:``)}var cN=R.createContext(void 0);function lN(e){let t=R.useContext(cN);return e||t||`ltr`}function uN(e){let t=R.useRef(e);return R.useEffect(()=>{t.current=e}),R.useMemo(()=>(...e)=>t.current?.(...e),[])}function dN(e,t=globalThis?.document){let n=uN(e);R.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var fN=`DismissableLayer`,pN=`dismissableLayer.update`,mN=`dismissableLayer.pointerDownOutside`,hN=`dismissableLayer.focusOutside`,gN,_N=R.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vN=R.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=R.useContext(_N),[u,d]=R.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=R.useState({}),m=EM(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=_,x=xN(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!b||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),S=SN(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return dN(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),R.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(gN=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),CN(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=gN)}},[u,f,n,l]),R.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),CN())},[u,l]),R.useEffect(()=>{let e=()=>p({});return document.addEventListener(pN,e),()=>document.removeEventListener(pN,e)},[]),(0,z.jsx)(NM.div,{...c,ref:m,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,x.onPointerDownCapture)})});vN.displayName=fN;var yN=`DismissableLayerBranch`,bN=R.forwardRef((e,t)=>{let n=R.useContext(_N),r=R.useRef(null),i=EM(t,r);return R.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,z.jsx)(NM.div,{...e,ref:i})});bN.displayName=yN;function xN(e,t=globalThis?.document){let n=uN(e),r=R.useRef(!1),i=R.useRef(()=>{});return R.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){wN(mN,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function SN(e,t=globalThis?.document){let n=uN(e),r=R.useRef(!1);return R.useEffect(()=>{let e=e=>{e.target&&!r.current&&wN(hN,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function CN(){let e=new CustomEvent(pN);document.dispatchEvent(e)}function wN(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?PM(i,a):i.dispatchEvent(a)}var TN=`focusScope.autoFocusOnMount`,EN=`focusScope.autoFocusOnUnmount`,DN={bubbles:!1,cancelable:!0},ON=`FocusScope`,kN=R.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=R.useState(null),l=uN(i),u=uN(a),d=R.useRef(null),f=EM(t,e=>c(e)),p=R.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;R.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:IN(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||IN(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&IN(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),R.useEffect(()=>{if(s){LN.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(TN,DN);s.addEventListener(TN,l),s.dispatchEvent(t),t.defaultPrevented||(AN(BN(MN(s)),{select:!0}),document.activeElement===e&&IN(s))}return()=>{s.removeEventListener(TN,l),setTimeout(()=>{let t=new CustomEvent(EN,DN);s.addEventListener(EN,u),s.dispatchEvent(t),t.defaultPrevented||IN(e??document.body,{select:!0}),s.removeEventListener(EN,u),LN.remove(p)},0)}}},[s,l,u,p]);let m=R.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=jN(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&IN(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&IN(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,z.jsx)(NM.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});kN.displayName=ON;function AN(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(IN(r,{select:t}),document.activeElement!==n)return}function jN(e){let t=MN(e);return[NN(t,e),NN(t.reverse(),e)]}function MN(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function NN(e,t){for(let n of e)if(!PN(n,{upTo:t}))return n}function PN(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function FN(e){return e instanceof HTMLInputElement&&`select`in e}function IN(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&FN(e)&&t&&e.select()}}var LN=RN();function RN(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=zN(e,t),e.unshift(t)},remove(t){e=zN(e,t),e[0]?.resume()}}}function zN(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function BN(e){return e.filter(e=>e.tagName!==`A`)}var VN=`Portal`,HN=R.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=R.useState(!1);YM(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?cd.createPortal((0,z.jsx)(NM.div,{...r,ref:t}),o):null});HN.displayName=VN;var UN=0;function WN(){R.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??GN()),document.body.insertAdjacentElement(`beforeend`,e[1]??GN()),UN++,()=>{UN===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),UN--}},[])}function GN(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var KN=function(){return KN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},KN.apply(this,arguments)};function qN(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function JN(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var YN=`right-scroll-bar-position`,XN=`width-before-scroll-bar`,ZN=`with-scroll-bars-hidden`,QN=`--removed-body-scroll-bar-size`;function $N(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function eP(e,t){var n=(0,R.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var tP=typeof window<`u`?R.useLayoutEffect:R.useEffect,nP=new WeakMap;function rP(e,t){var n=eP(t||null,function(t){return e.forEach(function(e){return $N(e,t)})});return tP(function(){var t=nP.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||$N(e,null)}),i.forEach(function(e){r.has(e)||$N(e,a)})}nP.set(n,e)},[e]),n}function iP(e){return e}function aP(e,t){t===void 0&&(t=iP);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function oP(e){e===void 0&&(e={});var t=aP(null);return t.options=KN({async:!0,ssr:!1},e),t}var sP=function(e){var t=e.sideCar,n=qN(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return R.createElement(r,KN({},n))};sP.isSideCarExport=!0;function cP(e,t){return e.useMedium(t),sP}var lP=oP(),uP=function(){},dP=R.forwardRef(function(e,t){var n=R.useRef(null),r=R.useState({onScrollCapture:uP,onWheelCapture:uP,onTouchMoveCapture:uP}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=qN(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=rP([n,t]),C=KN(KN({},b),i);return R.createElement(R.Fragment,null,u&&R.createElement(x,{sideCar:lP,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?R.cloneElement(R.Children.only(s),KN(KN({},C),{ref:S})):R.createElement(v,KN({},C,{className:c,ref:S}),s))});dP.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},dP.classNames={fullWidth:XN,zeroRight:YN};var fP,pP=function(){if(fP)return fP;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function mP(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=pP();return t&&e.setAttribute(`nonce`,t),e}function hP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gP(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var _P=function(){var e=0,t=null;return{add:function(n){e==0&&(t=mP())&&(hP(t,n),gP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vP=function(){var e=_P();return function(t,n){R.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},yP=function(){var e=vP();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},bP={left:0,top:0,right:0,gap:0},xP=function(e){return parseInt(e||``,10)||0},SP=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[xP(n),xP(r),xP(i)]},CP=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return bP;var t=SP(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wP=yP(),TP=`data-scroll-locked`,EP=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
24  .${ZN} {
25   overflow: hidden ${r};
26   padding-right: ${s}px ${r};
27  }
28  body[${TP}] {
29    overflow: hidden ${r};
30    overscroll-behavior: contain;
31    ${[t&&`position: relative ${r};`,n===`margin`&&`
32    padding-left: ${i}px;
33    padding-top: ${a}px;
34    padding-right: ${o}px;
35    margin-left:0;
36    margin-top:0;
37    margin-right: ${s}px ${r};
38    `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
39  }
40  
41  .${YN} {
42    right: ${s}px ${r};
43  }
44  
45  .${XN} {
46    margin-right: ${s}px ${r};
47  }
48  
49  .${YN} .${YN} {
50    right: 0 ${r};
51  }
52  
53  .${XN} .${XN} {
54    margin-right: 0 ${r};
55  }
56  
57  body[${TP}] {
58    ${QN}: ${s}px;
59  }
60`},DP=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},OP=function(){R.useEffect(function(){return document.body.setAttribute(TP,(DP()+1).toString()),function(){var e=DP()-1;e<=0?document.body.removeAttribute(TP):document.body.setAttribute(TP,e.toString())}},[])},kP=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;OP();var a=R.useMemo(function(){return CP(i)},[i]);return R.createElement(wP,{styles:EP(a,!t,i,n?``:`!important`)})},AP=!1;if(typeof window<`u`)try{var jP=Object.defineProperty({},"passive",{get:function(){return AP=!0,!0}});window.addEventListener(`test`,jP,jP),window.removeEventListener(`test`,jP,jP)}catch{AP=!1}var MP=AP?{passive:!1}:!1,NP=function(e){return e.tagName===`TEXTAREA`},PP=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!NP(e)&&n[t]===`visible`)},FP=function(e){return PP(e,`overflowY`)},IP=function(e){return PP(e,`overflowX`)},LP=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),BP(e,r)){var i=VP(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},RP=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},zP=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},BP=function(e,t){return e===`v`?FP(t):IP(t)},VP=function(e,t){return e===`v`?RP(t):zP(t)},HP=function(e,t){return e===`h`&&t===`rtl`?-1:1},UP=function(e,t,n,r,i){var a=HP(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=VP(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&BP(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},WP=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},GP=function(e){return[e.deltaX,e.deltaY]},KP=function(e){return e&&`current`in e?e.current:e},qP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},JP=function(e){return`
61  .block-interactivity-${e} {pointer-events: none;}
62  .allow-interactivity-${e} {pointer-events: all;}
63`},YP=0,XP=[];function ZP(e){var t=R.useRef([]),n=R.useRef([0,0]),r=R.useRef(),i=R.useState(YP++)[0],a=R.useState(yP)[0],o=R.useRef(e);R.useEffect(function(){o.current=e},[e]),R.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=JN([e.lockRef.current],(e.shards||[]).map(KP),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=R.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=WP(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=LP(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=LP(d,u)),!f)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var p=r.current||l;return UP(p,t,e,p===`h`?s:c,!0)},[]),c=R.useCallback(function(e){var n=e;if(!(!XP.length||XP[XP.length-1]!==a)){var r=`deltaY`in n?GP(n):WP(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&qP(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(KP).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>
vendor: 9,383 bytes, lines 63-67
630?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=R.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:QP(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=R.useCallback(function(e){n.current=WP(e),r.current=void 0},[]),d=R.useCallback(function(t){l(t.type,GP(t),t.target,s(t,e.lockRef.current))},[]),f=R.useCallback(function(t){l(t.type,WP(t),t.target,s(t,e.lockRef.current))},[]);R.useEffect(function(){return XP.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,MP),document.addEventListener(`touchmove`,c,MP),document.addEventListener(`touchstart`,u,MP),function(){XP=XP.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,MP),document.removeEventListener(`touchmove`,c,MP),document.removeEventListener(`touchstart`,u,MP)}},[]);var p=e.removeScrollBar,m=e.inert;return R.createElement(R.Fragment,null,m?R.createElement(a,{styles:JP(i)}):null,p?R.createElement(kP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function QP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var $P=cP(lP,ZP),eF=R.forwardRef(function(e,t){return R.createElement(dP,KN({},e,{ref:t,sideCar:$P}))});eF.classNames=dP.classNames;var tF=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},nF=new WeakMap,rF=new WeakMap,iF={},aF=0,oF=function(e){return e&&(e.host||oF(e.parentNode))},sF=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=oF(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},cF=function(e,t,n,r){var i=sF(t,Array.isArray(e)?e:[e]);iF[n]||(iF[n]=new WeakMap);var a=iF[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(nF.get(e)||0)+1,l=(a.get(e)||0)+1;nF.set(e,c),a.set(e,l),o.push(e),c===1&&i&&rF.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),aF++,function(){o.forEach(function(e){var t=nF.get(e)-1,i=a.get(e)-1;nF.set(e,t),a.set(e,i),t||(rF.has(e)||e.removeAttribute(r),rF.delete(e)),i||e.removeAttribute(n)}),aF--,aF||(nF=new WeakMap,nF=new WeakMap,rF=new WeakMap,iF={})}},lF=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||tF(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),cF(r,i,n,`aria-hidden`)):function(){return null}};function uF(e){let t=dF(e),n=R.forwardRef((e,n)=>{let{children:r,...i}=e,a=R.Children.toArray(r),o=a.find(pF);if(o){let e=o.props.children,r=a.map(t=>t===o?R.Children.count(e)>1?R.Children.only(null):R.isValidElement(e)?e.props.children:null:t);return(0,z.jsx)(t,{...i,ref:n,children:R.isValidElement(e)?R.cloneElement(e,void 0,r):null})}return(0,z.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function dF(e){let t=R.forwardRef((e,t)=>{let{children:n,...r}=e;if(R.isValidElement(n)){let e=hF(n),i=mF(r,n.props);return n.type!==R.Fragment&&(i.ref=t?TM(t,e):e),R.cloneElement(n,i)}return R.Children.count(n)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fF=Symbol(`radix.slottable`);function pF(e){return R.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===fF}function mF(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function hF(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var gF=`Dialog`,[_F,vF]=BM(gF),[yF,bF]=_F(gF),xF=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=R.useRef(null),c=R.useRef(null),[l,u]=ZM({prop:r,defaultProp:i??!1,onChange:a,caller:gF});return(0,z.jsx)(yF,{scope:t,triggerRef:s,contentRef:c,contentId:sN(),titleId:sN(),descriptionId:sN(),open:l,onOpenChange:u,onOpenToggle:R.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};xF.displayName=gF;var SF=`DialogTrigger`,CF=R.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=bF(SF,n),a=EM(t,i.triggerRef);return(0,z.jsx)(NM.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":UF(i.open),...r,ref:a,onClick:Z(e.onClick,i.onOpenToggle)})});CF.displayName=SF;var wF=`DialogPortal`,[TF,EF]=_F(wF,{forceMount:void 0}),DF=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=bF(wF,t);return(0,z.jsx)(TF,{scope:t,forceMount:n,children:R.Children.map(r,e=>(0,z.jsx)(tN,{present:n||a.open,children:(0,z.jsx)(HN,{asChild:!0,container:i,children:e})}))})};DF.displayName=wF;var OF=`DialogOverlay`,kF=R.forwardRef((e,t)=>{let n=EF(OF,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=bF(OF,e.__scopeDialog);return a.modal?(0,z.jsx)(tN,{present:r||a.open,children:(0,z.jsx)(jF,{...i,ref:t})}):null});kF.displayName=OF;var AF=uF(`DialogOverlay.RemoveScroll`),jF=R.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=bF(OF,n);return(0,z.jsx)(eF,{as:AF,allowPinchZoom:!0,shards:[i.contentRef],children:(0,z.jsx)(NM.div,{"data-state":UF(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),MF=`DialogContent`,NF=R.forwardRef((e,t)=>{let n=EF(MF,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=bF(MF,e.__scopeDialog);return(0,z.jsx)(tN,{present:r||a.open,children:a.modal?(0,z.jsx)(PF,{...i,ref:t}):(0,z.jsx)(FF,{...i,ref:t})})});NF.displayName=MF;var PF=R.forwardRef((e,t)=>{let n=bF(MF,e.__scopeDialog),r=R.useRef(null),i=EM(t,n.contentRef,r);return R.useEffect(()=>{let e=r.current;if(e)return lF(e)},[]),(0,z.jsx)(IF,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,e=>e.preventDefault())})}),FF=R.forwardRef((e,t)=>{let n=bF(MF,e.__scopeDialog),r=R.useRef(!1),i=R.useRef(!1);return(0,z.jsx)(IF,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),IF=R.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=bF(MF,n),c=R.useRef(null),l=EM(t,c);return WN(),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(kN,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,z.jsx)(vN,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":UF(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(qF,{titleId:s.titleId}),(0,z.jsx)(YF,{contentRef:c,descriptionId:s.descriptionId})]})]})}),LF=`DialogTitle`,RF=R.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=bF(LF,n);return(0,z.jsx)(NM.h2,{id:i.titleId,...r,ref:t})});RF.displayName=LF;var zF=`DialogDescription`,BF=R.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=bF(zF,n);return(0,z.jsx)(NM.p,{id:i.descriptionId,...r,ref:t})});BF.displayName=zF;var VF=`DialogClose`,HF=R.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=bF(VF,n);return(0,z.jsx)(NM.button,{type:`button`,...r,ref:t,onClick:Z(e.onClick,()=>i.onOpenChange(!1))})});HF.displayName=VF;function UF(e){return e?`open`:`closed`}var WF=`DialogTitleWarning`,[GF,KF]=zM(WF,{contentName:MF,titleName:LF,docsSlug:`dialog`}),qF=({titleId:e})=>{let t=KF(WF),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
64
65If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
66
67For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return R.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},JF=`DialogDescriptionWarning`,YF=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${KF(JF).contentName}}.`;return R.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},XF=xF,ZF=CF,QF=DF,$F=kF,eI=NF,tI=RF,nI=BF,rI=HF;function iI(e){let t=R.useRef({value:e,previous:e});return R.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}
vendor: 4,168 bytes, line 67
67function aI(e){let[t,n]=R.useState(void 0);return YM(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var oI=[`top`,`right`,`bottom`,`left`],sI=Math.min,cI=Math.max,lI=Math.round,uI=Math.floor,dI=e=>({x:e,y:e}),fI={left:`right`,right:`left`,bottom:`top`,top:`bottom`},pI={start:`end`,end:`start`};function mI(e,t,n){return cI(e,sI(t,n))}function hI(e,t){return typeof e==`function`?e(t):e}function gI(e){return e.split(`-`)[0]}function _I(e){return e.split(`-`)[1]}function vI(e){return e===`x`?`y`:`x`}function yI(e){return e===`y`?`height`:`width`}var bI=new Set([`top`,`bottom`]);function xI(e){return bI.has(gI(e))?`y`:`x`}function SI(e){return vI(xI(e))}function CI(e,t,n){n===void 0&&(n=!1);let r=_I(e),i=SI(e),a=yI(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=MI(o)),[o,MI(o)]}function wI(e){let t=MI(e);return[TI(e),t,TI(t)]}function TI(e){return e.replace(/start|end/g,e=>pI[e])}var EI=[`left`,`right`],DI=[`right`,`left`],OI=[`top`,`bottom`],kI=[`bottom`,`top`];function AI(e,t,n){switch(e){case`top`:case`bottom`:return n?t?DI:EI:t?EI:DI;case`left`:case`right`:return t?OI:kI;default:return[]}}function jI(e,t,n,r){let i=_I(e),a=AI(gI(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(TI)))),a}function MI(e){return e.replace(/left|right|bottom|top/g,e=>fI[e])}function NI(e){return{top:0,right:0,bottom:0,left:0,...e}}function PI(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:NI(e)}function FI(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function II(e,t,n){let{reference:r,floating:i}=e,a=xI(t),o=SI(t),s=yI(o),c=gI(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(_I(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}var LI=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=II(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=II(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function RI(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=hI(t,e),p=PI(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=FI(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=FI(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left
vendor: 6,383 bytes, line 67
67:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var zI=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=hI(e,t)||{};if(l==null)return{};let d=PI(u),f={x:n,y:r},p=SI(i),m=yI(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,E=C/2-h[m]/2-1,D=sI(d[_],E),ee=sI(d[v],E),O=D,te=C-h[m]-ee,k=C/2-h[m]/2+w,ne=mI(O,k,te),A=!c.arrow&&_I(i)!=null&&k!==ne&&a.reference[m]/2-(k<O?D:ee)-h[m]/2<0,j=A?k<O?k-O:k-te:0;return{[p]:f[p]+j,data:{[p]:ne,centerOffset:k-ne-j,...A&&{alignmentOffset:j}},reset:A}}}),BI=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=hI(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=gI(r),_=xI(o),v=gI(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[MI(o)]:wI(o)),x=p!==`none`;!d&&x&&b.push(...jI(o,m,p,y));let S=[o,...b],C=await RI(t,h),w=[],E=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=CI(r,a,y);w.push(C[e[0]],C[e[1]])}if(E=[...E,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==xI(t))||E.every(e=>xI(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:E},reset:{placement:t}};let n=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=E.filter(e=>{if(x){let t=xI(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function VI(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function HI(e){return oI.some(t=>e[t]>=0)}var UI=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=hI(e,t);switch(r){case`referenceHidden`:{let e=VI(await RI(t,{...i,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:HI(e)}}}case`escaped`:{let e=VI(await RI(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:HI(e)}}}default:return{}}}}},WI=new Set([`left`,`top`]);async function GI(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=gI(n),s=_I(n),c=xI(n)===`y`,l=WI.has(o)?-1:1,u=a&&c?-1:1,d=hI(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var KI=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await GI(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},qI=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=hI(e,t),l={x:n,y:r},u=await RI(t,c),d=xI(gI(i)),f=vI(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=mI(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=mI(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},JI=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=hI(e,t),u={x:n,y:r},d=xI(i),f=vI(d),p=u[f],m=u[d],h=hI(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=WI.has(gI(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},YI=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=hI(e,t),u=await RI(t,l),d=gI(i),f=_I(i),p=xI(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=sI(h-u[g],v),x=sI(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=cI(u.left,0),t=cI(u.right,0),n=cI(u.top,0),r=cI(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:cI(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:cI(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let E=await o.getDimensions(s.floating);return m!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function XI(){return typeof window<`u`}function ZI(e){return eL(e)?(e.nodeName||``).toLowerCase():`#document`}function QI(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $I(e){return((eL(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function eL(e){return XI()?e instanceof Node||e instanceof QI(e).Node:!1}function tL(e){return XI()?e instanceof Element||e instanceof QI(e).Element:!1}function nL(e){return XI()?e instanceof HTMLElement||e instanceof QI(e).HTMLElement:!1}function rL(e){return!XI()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof QI(e).ShadowRoot}var iL=new Set([`inline`,`contents`]);function aL(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=vL(e);
vendor: 7,355 bytes, line 67
67return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!iL.has(i)}var oL=new Set([`table`,`td`,`th`]);function sL(e){return oL.has(ZI(e))}var cL=[`:popover-open`,`:modal`];function lL(e){return cL.some(t=>{try{return e.matches(t)}catch{return!1}})}var uL=[`transform`,`translate`,`scale`,`rotate`,`perspective`],dL=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],fL=[`paint`,`layout`,`strict`,`content`];function pL(e){let t=hL(),n=tL(e)?vL(e):e;return uL.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||dL.some(e=>(n.willChange||``).includes(e))||fL.some(e=>(n.contain||``).includes(e))}function mL(e){let t=bL(e);for(;nL(t)&&!_L(t);){if(pL(t))return t;if(lL(t))return null;t=bL(t)}return null}function hL(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var gL=new Set([`html`,`body`,`#document`]);function _L(e){return gL.has(ZI(e))}function vL(e){return QI(e).getComputedStyle(e)}function yL(e){return tL(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bL(e){if(ZI(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||rL(e)&&e.host||$I(e);return rL(t)?t.host:t}function xL(e){let t=bL(e);return _L(t)?e.ownerDocument?e.ownerDocument.body:e.body:nL(t)&&aL(t)?t:xL(t)}function SL(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=xL(e),i=r===e.ownerDocument?.body,a=QI(r);if(i){let e=CL(a);return t.concat(a,a.visualViewport||[],aL(r)?r:[],e&&n?SL(e):[])}return t.concat(r,SL(r,[],n))}function CL(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wL(e){let t=vL(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=nL(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=lI(n)!==a||lI(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function TL(e){return tL(e)?e:e.contextElement}function EL(e){let t=TL(e);if(!nL(t))return dI(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=wL(t),o=(a?lI(n.width):n.width)/r,s=(a?lI(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var DL=dI(0);function OL(e){let t=QI(e);return!hL()||!t.visualViewport?DL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kL(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==QI(e)?!1:t}function AL(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=TL(e),o=dI(1);t&&(r?tL(r)&&(o=EL(r)):o=EL(e));let s=kL(a,n,r)?OL(a):dI(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=QI(a),t=r&&tL(r)?QI(r):r,n=e,i=CL(n);for(;i&&r&&t!==n;){let e=EL(i),t=i.getBoundingClientRect(),r=vL(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=QI(i),i=CL(n)}}return FI({width:u,height:d,x:c,y:l})}function jL(e,t){let n=yL(e).scrollLeft;return t?t.left+n:AL($I(e)).left+n}function ML(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-jL(e,n),y:n.top+t.scrollTop}}function NL(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=$I(r),s=t?lL(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=dI(1),u=dI(0),d=nL(r);if((d||!d&&!a)&&((ZI(r)!==`body`||aL(o))&&(c=yL(r)),nL(r))){let e=AL(r);l=EL(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?ML(o,c):dI(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function PL(e){return Array.from(e.getClientRects())}function FL(e){let t=$I(e),n=yL(e),r=e.ownerDocument.body,i=cI(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=cI(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+jL(e),s=-n.scrollTop;return vL(r).direction===`rtl`&&(o+=cI(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var IL=25;function LL(e,t){let n=QI(e),r=$I(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=hL();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=jL(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=IL&&(a-=o)}else l<=IL&&(a+=l);return{width:a,height:o,x:s,y:c}}var RL=new Set([`absolute`,`fixed`]);function zL(e,t){let n=AL(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=nL(e)?EL(e):dI(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function BL(e,t,n){let r;if(t===`viewport`)r=LL(e,n);else if(t===`document`)r=FL($I(e));else if(tL(t))r=zL(t,n);else{let n=OL(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return FI(r)}function VL(e,t){let n=bL(e);return n===t||!tL(n)||_L(n)?!1:vL(n).position===`fixed`||VL(n,t)}function HL(e,t){let n=t.get(e);if(n)return n;let r=SL(e,[],!1).filter(e=>tL(e)&&ZI(e)!==`body`),i=null,a=vL(e).position===`fixed`,o=a?bL(e):e;for(;tL(o)&&!_L(o);){let t=vL(o),n=pL(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&RL.has(i.position)||aL(o)&&!n&&VL(e,o))?r=r.filter(e=>e!==o):i=t,o=bL(o)}return t.set(e,r),r}function UL(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?lL(t)?[]:HL(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=BL(t,n,i);return e.top=cI(r.top,e.top),e.right=sI(r.right,e.right),e.bottom=sI(r.bottom,e.bottom),e.left=cI(r.left,e.left),e},BL(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function WL(e){let{width:t,height:n}=wL(e);return{width:t,height:n}}function GL(e,t,n){let r=nL(t),i=$I(t),a=n===`fixed`,o=AL(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=dI(0);function l(){c.x=jL(i)}if(r||!r&&!a)if((ZI(t)!==`body`||aL(i))&&(s=yL(t)),r){let e=AL(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?ML(i,s):dI(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function KL(e){return vL(e).position===`static`}function qL(e,t){if(!nL(e)||vL(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return $I(e)===n&&(n=n.ownerDocument.body),n}function JL(e,t){let n=QI(e);if(lL(e))return n;if(!nL(e)){let t=bL(e);for(;t&&!_L(t);){if(tL(t)&&!KL(t))return t;t=bL(t)}return n}let r=qL(e,t);for(;r&&sL(r)&&KL(r);)r=qL(r,t);return r&&_L(r)&&KL(r)&&!pL(r)?n:r||mL(e)||n}var YL=async function(e){let t=this.getOffsetParent||JL,n=this.getDimensions,r=await n(e.floating);return{reference:GL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function XL(e){return vL(e).direction===`rtl`}var ZL={convertOffsetParentRelativeRectToViewportRelativeRect:NL,getDocumentElement:$I,getClippingRect:UL,getOffsetParent:JL,getElementRects:YL,getClientRects:PL,getDimensions:WL,getScale:EL,isElement:tL,isRTL:XL};function QL(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $L(e,t){let n=null,r,i=$I(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;
vendor: 8,862 bytes, line 67
67let m=uI(d),h=uI(i.clientWidth-(u+f)),g=uI(i.clientHeight-(d+p)),_=uI(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:cI(0,sI(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!QL(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function eR(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=TL(e),u=i||a?[...l?SL(l):[],...SL(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?$L(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?AL(e):null;c&&g();function g(){let t=AL(e);h&&!QL(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var tR=KI,nR=qI,rR=BI,iR=YI,aR=UI,oR=zI,sR=JI,cR=(e,t,n)=>{let r=new Map,i={platform:ZL,...n},a={...i.platform,_c:r};return LI(e,t,{...i,platform:a})},lR=typeof document<`u`?R.useLayoutEffect:function(){};function uR(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!uR(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!uR(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function dR(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fR(e,t){let n=dR(e);return Math.round(t*n)/n}function pR(e){let t=R.useRef(e);return lR(()=>{t.current=e}),t}function mR(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=R.useState(r);uR(f,r)||p(r);let[m,h]=R.useState(null),[g,_]=R.useState(null),v=R.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=R.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=R.useRef(null),C=R.useRef(null),w=R.useRef(u),E=c!=null,D=pR(c),ee=pR(i),O=pR(l),te=R.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};ee.current&&(e.platform=ee.current),cR(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};k.current&&!uR(w.current,t)&&(w.current=t,cd.flushSync(()=>{d(t)}))})},[f,t,n,ee,O]);lR(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let k=R.useRef(!1);lR(()=>(k.current=!0,()=>{k.current=!1}),[]),lR(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(D.current)return D.current(b,x,te);te()}},[b,x,te,D,E]);let ne=R.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),A=R.useMemo(()=>({reference:b,floating:x}),[b,x]),j=R.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=fR(A.floating,u.x),r=fR(A.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...dR(A.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return R.useMemo(()=>({...u,update:te,refs:ne,elements:A,floatingStyles:j}),[u,te,ne,A,j])}var hR=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:oR({element:r.current,padding:i}).fn(n):r?oR({element:r,padding:i}).fn(n):{}}}},gR=(e,t)=>({...tR(e),options:[e,t]}),_R=(e,t)=>({...nR(e),options:[e,t]}),vR=(e,t)=>({...sR(e),options:[e,t]}),yR=(e,t)=>({...rR(e),options:[e,t]}),bR=(e,t)=>({...iR(e),options:[e,t]}),xR=(e,t)=>({...aR(e),options:[e,t]}),SR=(e,t)=>({...hR(e),options:[e,t]}),CR=`Arrow`,wR=R.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,z.jsx)(NM.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,z.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});wR.displayName=CR;var TR=wR,ER=`Popper`,[DR,OR]=BM(ER),[kR,AR]=DR(ER),jR=e=>{let{__scopePopper:t,children:n}=e,[r,i]=R.useState(null);return(0,z.jsx)(kR,{scope:t,anchor:r,onAnchorChange:i,children:n})};jR.displayName=ER;var MR=`PopperAnchor`,NR=R.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=AR(MR,n),o=R.useRef(null),s=EM(t,o),c=R.useRef(null);return R.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,z.jsx)(NM.div,{...i,ref:s})});NR.displayName=MR;var PR=`PopperContent`,[FR,IR]=DR(PR),LR=R.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=AR(PR,n),[_,v]=R.useState(null),y=EM(t,e=>v(e)),[b,x]=R.useState(null),S=aI(b),C=S?.width??0,w=S?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},ee=Array.isArray(l)?l:[l],O=ee.length>0,te={padding:D,boundary:ee.filter(VR),altBoundary:O},{refs:k,floatingStyles:ne,placement:A,isPositioned:j,middlewareData:re}=mR({strategy:`fixed`,placement:E,whileElementsMounted:(...e)=>eR(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[gR({mainAxis:i+w,alignmentAxis:o}),c&&_R({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?vR():void 0,...te}),c&&yR({...te}),bR({...te,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&SR({element:b,padding:s}),HR({arrowWidth:C,arrowHeight:w}),f&&xR({strategy:`referenceHidden`,...te})]}),[ie,M]=UR(A),N=uN(m);YM(()=>{j&&N?.()},[j,N]);let ae=re.arrow?.x,oe=re.arrow?.y,se=re.arrow?.centerOffset!==0,[P,F]=R.useState();return YM(()=>{_&&F(window.getComputedStyle(_).zIndex)},[_]),(0,z.jsx)(`div`,{ref:k.setFloating,"data-radix-popper-content-wrapper":``,style:{...ne,transform:j?ne.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:P,"--radix-popper-transform-origin":[re.transformOrigin?.x,re.transformOrigin?.y].join(` `),...re.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,z.jsx)(FR,{scope:n,placedSide:ie,onArrowChange:x,arrowX:ae,arrowY:oe,shouldHideArrow:se,children:(0,z.jsx)(NM.div,{"data-side":ie,"data-align":M,...h,ref:y,style:{...h.style,animation:j?void 0:`none`}})})})});LR.displayName=PR;var RR=`PopperArrow`,zR={top:`bottom`,right:`left`,bottom:`top`,left:`right`},BR=R.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=IR(RR,n),a=zR[i.placedSide];return(0,z.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,z.jsx)(TR,{...r,ref:t,style:{...r.style,display:`block`}})})});BR.displayName=RR;function VR(e){return e!==null}var HR=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=UR(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function UR(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var WR=jR,GR=NR,KR=LR,qR=BR,JR=`rovingFocusGroup.onEntryFocus`,YR={bubbles:!1,cancelable:!0},XR=`RovingFocusGroup`,[ZR,QR,$R]=JM(XR),[ez,tz]=BM(XR,[$R]),[nz,rz]=ez(XR),iz=R.forwardRef((e,t)=>
vendor: 4,203 bytes, line 67
67(0,z.jsx)(ZR.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,z.jsx)(ZR.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,z.jsx)(az,{...e,ref:t})})}));iz.displayName=XR;var az=R.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=R.useRef(null),p=EM(t,f),m=lN(a),[h,g]=ZM({prop:o,defaultProp:s??null,onChange:c,caller:XR}),[_,v]=R.useState(!1),y=uN(l),b=QR(n),x=R.useRef(!1),[S,C]=R.useState(0);return R.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(JR,y),()=>e.removeEventListener(JR,y)},[y]),(0,z.jsx)(nz,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:R.useCallback(e=>g(e),[g]),onItemShiftTab:R.useCallback(()=>v(!0),[]),onFocusableItemAdd:R.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:R.useCallback(()=>C(e=>e-1),[]),children:(0,z.jsx)(NM.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:Z(e.onMouseDown,()=>{x.current=!0}),onFocus:Z(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(JR,YR);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);dz([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:Z(e.onBlur,()=>v(!1))})})}),oz=`RovingFocusGroupItem`,sz=R.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=sN(),l=a||c,u=rz(oz,n),d=u.currentTabStopId===l,f=QR(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return R.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,z.jsx)(ZR.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,z.jsx)(NM.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Z(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:Z(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Z(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=uz(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?fz(n,r+1):n.slice(r+1)}setTimeout(()=>dz(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});sz.displayName=oz;var cz={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function lz(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function uz(e,t,n){let r=lz(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return cz[r]}function dz(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function fz(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var pz=iz,mz=sz;function hz(e){let t=gz(e),n=R.forwardRef((e,n)=>{let{children:r,...i}=e,a=R.Children.toArray(r),o=a.find(vz);if(o){let e=o.props.children,r=a.map(t=>t===o?R.Children.count(e)>1?R.Children.only(null):R.isValidElement(e)?e.props.children:null:t);return(0,z.jsx)(t,{...i,ref:n,children:R.isValidElement(e)?R.cloneElement(e,void 0,r):null})}return(0,z.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function gz(e){let t=R.forwardRef((e,t)=>{let{children:n,...r}=e;if(R.isValidElement(n)){let e=bz(n),i=yz(r,n.props);return n.type!==R.Fragment&&(i.ref=t?TM(t,e):e),R.cloneElement(n,i)}return R.Children.count(n)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _z=Symbol(`radix.slottable`);function vz(e){return R.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===_z}function yz(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}
vendor: 13,594 bytes, line 67
67:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function bz(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xz=[`Enter`,` `],Sz=[`ArrowDown`,`PageUp`,`Home`],Cz=[`ArrowUp`,`PageDown`,`End`],wz=[...Sz,...Cz],Tz={ltr:[...xz,`ArrowRight`],rtl:[...xz,`ArrowLeft`]},Ez={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Dz=`Menu`,[Oz,kz,Az]=JM(Dz),[jz,Mz]=BM(Dz,[Az,OR,tz]),Nz=OR(),Pz=tz(),[Fz,Iz]=jz(Dz),[Lz,Rz]=jz(Dz),zz=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Nz(t),[c,l]=R.useState(null),u=R.useRef(!1),d=uN(a),f=lN(i);return R.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.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,z.jsx)(WR,{...s,children:(0,z.jsx)(Fz,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,z.jsx)(Lz,{scope:t,onClose:R.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};zz.displayName=Dz;var Bz=`MenuAnchor`,Vz=R.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Nz(n);return(0,z.jsx)(GR,{...i,...r,ref:t})});Vz.displayName=Bz;var Hz=`MenuPortal`,[Uz,Wz]=jz(Hz,{forceMount:void 0}),Gz=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Iz(Hz,t);return(0,z.jsx)(Uz,{scope:t,forceMount:n,children:(0,z.jsx)(tN,{present:n||a.open,children:(0,z.jsx)(HN,{asChild:!0,container:i,children:r})})})};Gz.displayName=Hz;var Kz=`MenuContent`,[qz,Jz]=jz(Kz),Yz=R.forwardRef((e,t)=>{let n=Wz(Kz,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Iz(Kz,e.__scopeMenu),o=Rz(Kz,e.__scopeMenu);return(0,z.jsx)(Oz.Provider,{scope:e.__scopeMenu,children:(0,z.jsx)(tN,{present:r||a.open,children:(0,z.jsx)(Oz.Slot,{scope:e.__scopeMenu,children:o.modal?(0,z.jsx)(Xz,{...i,ref:t}):(0,z.jsx)(Zz,{...i,ref:t})})})})}),Xz=R.forwardRef((e,t)=>{let n=Iz(Kz,e.__scopeMenu),r=R.useRef(null),i=EM(t,r);return R.useEffect(()=>{let e=r.current;if(e)return lF(e)},[]),(0,z.jsx)($z,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Z(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Zz=R.forwardRef((e,t)=>{let n=Iz(Kz,e.__scopeMenu);return(0,z.jsx)($z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Qz=hz(`MenuContent.ScrollLock`),$z=R.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=Iz(Kz,n),_=Rz(Kz,n),v=Nz(n),y=Pz(n),b=kz(n),[x,S]=R.useState(null),C=R.useRef(null),w=EM(t,C,g.onContentChange),E=R.useRef(0),D=R.useRef(``),ee=R.useRef(0),O=R.useRef(null),te=R.useRef(`right`),k=R.useRef(0),ne=m?eF:R.Fragment,A=m?{as:Qz,allowPinchZoom:!0}:void 0,j=e=>{let t=D.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=LB(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){D.current=t,window.clearTimeout(E.current),t!==``&&(E.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};R.useEffect(()=>()=>window.clearTimeout(E.current),[]),WN();let re=R.useCallback(e=>te.current===O.current?.side&&zB(e,O.current?.area),[]);return(0,z.jsx)(qz,{scope:n,searchRef:D,onItemEnter:R.useCallback(e=>{re(e)&&e.preventDefault()},[re]),onItemLeave:R.useCallback(e=>{re(e)||(C.current?.focus(),S(null))},[re]),onTriggerLeave:R.useCallback(e=>{re(e)&&e.preventDefault()},[re]),pointerGraceTimerRef:ee,onPointerGraceIntentChange:R.useCallback(e=>{O.current=e},[]),children:(0,z.jsx)(ne,{...A,children:(0,z.jsx)(kN,{asChild:!0,trapped:i,onMountAutoFocus:Z(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,z.jsx)(vN,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,z.jsx)(pz,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:Z(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,z.jsx)(KR,{role:`menu`,"aria-orientation":`vertical`,"data-state":MB(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:Z(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&j(e.key));let i=C.current;if(e.target!==i||!wz.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);Cz.includes(e.key)&&a.reverse(),FB(a)}),onBlur:Z(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),D.current=``)}),onPointerMove:Z(e.onPointerMove,BB(e=>{let t=e.target,n=k.current!==e.clientX;e.currentTarget.contains(t)&&n&&(te.current=e.clientX>k.current?`right`:`left`,k.current=e.clientX)}))})})})})})})});Yz.displayName=Kz;var eB=`MenuGroup`,tB=R.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,z.jsx)(NM.div,{role:`group`,...r,ref:t})});tB.displayName=eB;var nB=`MenuLabel`,rB=R.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,z.jsx)(NM.div,{...r,ref:t})});rB.displayName=nB;var iB=`MenuItem`,aB=`menu.itemSelect`,oB=R.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=R.useRef(null),o=Rz(iB,e.__scopeMenu),s=Jz(iB,e.__scopeMenu),c=EM(t,a),l=R.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(aB,{bubbles:!0,cancelable:!0});e.addEventListener(aB,e=>r?.(e),{once:!0}),PM(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,z.jsx)(sB,{...i,ref:c,disabled:n,onClick:Z(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:Z(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:Z(e.onKeyDown,e=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||xz.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});oB.displayName=iB;var sB=R.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Jz(iB,n),s=Pz(n),c=R.useRef(null),l=EM(t,c),[u,d]=R.useState(!1),[f,p]=R.useState(``);return R.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,z.jsx)(Oz.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,z.jsx)(mz,{asChild:!0,...s,focusable:!r,children:(0,z.jsx)(NM.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:Z(e.onPointerMove,BB(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Z(e.onPointerLeave,BB(e=>o.onItemLeave(e))),onFocus:Z(e.onFocus,()=>d(!0)),onBlur:Z(e.onBlur,()=>d(!1))})})})}),cB=`MenuCheckboxItem`,lB=R.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,z.jsx)(_B,{scope:e.__scopeMenu,checked:n,children:(0,z.jsx)(oB,{role:`menuitemcheckbox`,"aria-checked":NB(n)?`mixed`:n,...i,ref:t,"data-state":PB(n),onSelect:Z(i.onSelect,()=>r?.(NB(n)?!0:!n),{checkForDefaultPrevented:!1})})})});lB.displayName=cB;var uB=`MenuRadioGroup`,[dB,fB]=jz(uB,{value:void 0,onValueChange:()=>{}}),pB=R.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=uN(r);return(0,z.jsx)(dB,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,z.jsx)(tB,{...i,ref:t})})});pB.displayName=uB;var mB=`MenuRadioItem`,hB=R.forwardRef((e,t)=>{let{value:n,...r}=e,i=fB(mB,e.__scopeMenu),a=n===i.value;return(0,z.jsx)(_B,{scope:e.__scopeMenu,checked:a,children:(0,z.jsx)(oB,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":PB(a),onSelect:Z(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});hB.displayName=mB;var gB=`MenuItemIndicator`,[_B,vB]=jz(gB,{checked:!1}),yB=R.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=vB(gB,n);return(0,z.jsx)(tN,{present:r||NB(a.checked)||a.checked===!0,children:(0,z.jsx)(NM.span,{...i,ref:t,"data-state":PB(a.checked)})})});yB.displayName=gB;var bB=`MenuSeparator`,xB=R.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,z.jsx)(NM.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});xB.displayName=bB;var SB=`MenuArrow`,CB=R.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Nz(n);return(0,z.jsx)(qR,{...i,...r,ref:t})});CB.displayName=SB;var wB=`MenuSub`,[TB,EB]=jz(wB),DB=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Iz(wB,t),o=Nz(t),[s,c]=R.useState(null),[l,u]=R.useState(null),d=uN(i);return R.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,z.jsx)(WR,{...o,children:(0,z.jsx)(Fz,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,z.jsx)(TB,{scope:t,contentId:sN(),triggerId:sN(),trigger:s,onTriggerChange:c,children:n})})})};DB.displayName=wB;var OB=`MenuSubTrigger`,kB=R.forwardRef((e,t)=>{let n=Iz(OB,e.__scopeMenu),r=Rz(OB,e.__scopeMenu),i=EB(OB,e.__scopeMenu),a=Jz(OB,e.__scopeMenu),o=R.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=R.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return R.useEffect(()=>u,[u]),R.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,z.jsx)(Vz,{asChild:!0,...l,children:(0,z.jsx)(sB,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":MB(n.open),...e,ref:TM(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Z(e.onPointerMove,BB(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:Z(e.onPointerLeave,BB(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Z(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||Tz[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});kB.displayName=OB;var AB=`MenuSubContent`,jB=R.forwardRef((e,t)=>{let n=Wz(Kz,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Iz(Kz,e.__scopeMenu),o=Rz(Kz,e.__scopeMenu),s=EB(AB,e.__scopeMenu),c=R.useRef(null),l=EM(t,c);return(0,z.jsx)(Oz.Provider,{scope:e.__scopeMenu,children:(0,z.jsx)(tN,{present:r||a.open,children:(0,z.jsx)(Oz.Slot,{scope:e.__scopeMenu,children:(0,z.jsx)($z,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Z(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Z(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:Z(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Ez[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});jB.displayName=AB;function MB(e){return e?`open`:`closed`}function NB(e){return e===`indeterminate`}function PB(e){return NB(e)?`indeterminate`:e?`checked`:`unchecked`}function FB(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function IB(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function LB(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=IB(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function RB(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function zB(e,t){return t?RB({x:e.clientX,y:e.clientY},t):!1}function BB(e){return t=>t.pointerType===`mouse`?e(t):void 0}var VB=zz,HB=Vz,UB=Gz,WB=Yz,GB=tB,KB=rB,qB=oB,JB=lB,YB=pB,XB=hB,ZB=yB,QB=xB,$B=CB,eV=kB,tV=jB,nV=`DropdownMenu`,[rV,iV]=BM(nV,[Mz]),aV=Mz(),[oV,sV]=rV(nV),cV=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=aV(t),l=R.useRef(null),[u,d]=ZM({prop:i,defaultProp:a??!1,onChange:o,caller:nV});return(0,z.jsx)(oV,{scope:t,triggerId:sN(),triggerRef:l,contentId:sN(),open:u,onOpenChange:d,onOpenToggle:R.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,z.jsx)(VB,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};cV.displayName=nV;var lV=`DropdownMenuTrigger`,uV=R.forwardRef((e,t)=>
67{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=sV(lV,n),o=aV(n);return(0,z.jsx)(HB,{asChild:!0,...o,children:(0,z.jsx)(NM.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:TM(t,a.triggerRef),onPointerDown:Z(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:Z(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});uV.displayName=lV;var dV=`DropdownMenuPortal`,fV=e=>{let{__scopeDropdownMenu:t,...n}=e,r=aV(t);return(0,z.jsx)(UB,{...r,...n})};fV.displayName=dV;var pV=`DropdownMenuContent`,mV=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=sV(pV,n),a=aV(n),o=R.useRef(!1);return(0,z.jsx)(WB,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:Z(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:Z(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.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)`}})});mV.displayName=pV;var hV=`DropdownMenuGroup`,gV=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=aV(n);return(0,z.jsx)(GB,{...i,...r,ref:t})});gV.displayName=hV;var _V=`DropdownMenuLabel`,vV=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=aV(n);return(0,z.jsx)(KB,{...i,...r,ref:t})});vV.displayName=_V;var yV=`DropdownMenuItem`,bV=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=aV(n);return(0,z.jsx)(qB,{...i,...r,ref:t})});bV.displayName=yV;var xV=`DropdownMenuCheckboxItem`,SV=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=aV(n);return(0,z.jsx)(JB,{...i,...r,ref:t})});SV.displayName=xV;var CV=`DropdownMenuRadioGroup`,wV=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=aV(n);return(0,z.jsx)(YB,{...i,...r,ref:t})});wV.displayName=CV;var TV=`DropdownMenuRadioItem`,EV=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=aV(n);return(0,z.jsx)(XB,{...i,...r,ref:t})});EV.displayName=TV;var DV=`DropdownMenuItemIndicator`,OV=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=aV(n);return(0,z.jsx)(ZB,{...i,...r,ref:t})});OV.displayName=DV;var kV=`DropdownMenuSeparator`,AV=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=aV(n);return(0,z.jsx)(QB,{...i,...r,ref:t})});AV.displayName=kV;var jV=`DropdownMenuArrow`,MV=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=aV(n);return(0,z.jsx)($B,{...i,...r,ref:t})});MV.displayName=jV;var NV=`DropdownMenuSubTrigger`,PV=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=aV(n);return(0,z.jsx)(eV,{...i,...r,ref:t})});PV.displayName=NV;var FV=`DropdownMenuSubContent`,IV=R.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=aV(n);return(0,z.jsx)(tV,{...i,...r,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)`}})});IV.displayName=FV;var LV=cV,RV=uV,zV=fV,BV=mV,VV=gV,HV=vV,UV=bV,WV=SV,GV=wV,KV=EV,qV=OV,JV=AV,YV=`Label`,XV=R.forwardRef((e,t)=>(0,z.jsx)(NM.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));XV.displayName=YV;var ZV=XV;function QV(e,[t,n]){return Math.min(n,Math.max(t,e))}
vendor: 4,099 bytes, line 67
67function $V(e){let t=eH(e),n=R.forwardRef((e,n)=>{let{children:r,...i}=e,a=R.Children.toArray(r),o=a.find(nH);if(o){let e=o.props.children,r=a.map(t=>t===o?R.Children.count(e)>1?R.Children.only(null):R.isValidElement(e)?e.props.children:null:t);return(0,z.jsx)(t,{...i,ref:n,children:R.isValidElement(e)?R.cloneElement(e,void 0,r):null})}return(0,z.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function eH(e){let t=R.forwardRef((e,t)=>{let{children:n,...r}=e;if(R.isValidElement(n)){let e=iH(n),i=rH(r,n.props);return n.type!==R.Fragment&&(i.ref=t?TM(t,e):e),R.cloneElement(n,i)}return R.Children.count(n)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tH=Symbol(`radix.slottable`);function nH(e){return R.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===tH}function rH(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function iH(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var aH=[` `,`Enter`,`ArrowUp`,`ArrowDown`],oH=[` `,`Enter`],sH=`Select`,[cH,lH,uH]=JM(sH),[dH,fH]=BM(sH,[uH,OR]),pH=OR(),[mH,hH]=dH(sH),[gH,_H]=dH(sH),vH=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m}=e,h=pH(t),[g,_]=R.useState(null),[v,y]=R.useState(null),[b,x]=R.useState(!1),S=lN(l),[C,w]=ZM({prop:r,defaultProp:i??!1,onChange:a,caller:sH}),[E,D]=ZM({prop:o,defaultProp:s,onChange:c,caller:sH}),ee=R.useRef(null),O=g?m||!!g.closest(`form`):!0,[te,k]=R.useState(new Set),ne=Array.from(te).map(e=>e.props.value).join(`;`);return(0,z.jsx)(WR,{...h,children:(0,z.jsxs)(mH,{required:p,scope:t,trigger:g,onTriggerChange:_,valueNode:v,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:x,contentId:sN(),value:E,onValueChange:D,open:C,onOpenChange:w,dir:S,triggerPointerDownPosRef:ee,disabled:f,children:[(0,z.jsx)(cH.Provider,{scope:t,children:(0,z.jsx)(gH,{scope:e.__scopeSelect,onNativeOptionAdd:R.useCallback(e=>{k(t=>new Set(t).add(e))},[]),onNativeOptionRemove:R.useCallback(e=>{k(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),O?(0,z.jsxs)(pU,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:E,onChange:e=>D(e.target.value),disabled:f,form:m,children:[E===void 0?(0,z.jsx)(`option`,{value:``}):null,Array.from(te)]},ne):null]})})};vH.displayName=sH;var yH=`SelectTrigger`,bH=R.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=pH(n),o=hH(yH,n),s=o.disabled||r,c=EM(t,o.onTriggerChange),l=lH(n),u=R.useRef(`touch`),[d,f,p]=hU(e=>{let t=l().filter(e=>!e.disabled),n=gU(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,z.jsx)(GR,{asChild:!0,...a,children:(0,z.jsx)(NM.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":mU(o.value)?``:void 0,...i,ref:c,onClick:Z(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:Z(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:Z(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&aH.includes(e.key)&&(m(),e.preventDefault())})})})});bH.displayName=yH;var xH=`SelectValue`,SH=R.forwardRef((e,t)=>
vendor: 13,250 bytes, line 67
67{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=hH(xH,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=EM(t,c.onValueNodeChange);return YM(()=>{l(u)},[l,u]),(0,z.jsx)(NM.span,{...s,ref:d,style:{pointerEvents:`none`},children:mU(c.value)?(0,z.jsx)(z.Fragment,{children:o}):a})});SH.displayName=xH;var CH=`SelectIcon`,wH=R.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,z.jsx)(NM.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});wH.displayName=CH;var TH=`SelectPortal`,EH=e=>(0,z.jsx)(HN,{asChild:!0,...e});EH.displayName=TH;var DH=`SelectContent`,OH=R.forwardRef((e,t)=>{let n=hH(DH,e.__scopeSelect),[r,i]=R.useState();if(YM(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?cd.createPortal((0,z.jsx)(AH,{scope:e.__scopeSelect,children:(0,z.jsx)(cH.Slot,{scope:e.__scopeSelect,children:(0,z.jsx)(`div`,{children:e.children})})}),t):null}return(0,z.jsx)(PH,{...e,ref:t})});OH.displayName=DH;var kH=10,[AH,jH]=dH(DH),MH=`SelectContentImpl`,NH=$V(`SelectContent.RemoveScroll`),PH=R.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=hH(DH,n),[y,b]=R.useState(null),[x,S]=R.useState(null),C=EM(t,e=>b(e)),[w,E]=R.useState(null),[D,ee]=R.useState(null),O=lH(n),[te,k]=R.useState(!1),ne=R.useRef(!1);R.useEffect(()=>{if(y)return lF(y)},[y]),WN();let A=R.useCallback(e=>{let[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[O,x]),j=R.useCallback(()=>A([w,y]),[A,w,y]);R.useEffect(()=>{te&&j()},[te,j]);let{onOpenChange:re,triggerPointerDownPosRef:ie}=v;R.useEffect(()=>{if(y){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(ie.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(ie.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():y.contains(n.target)||re(!1),document.removeEventListener(`pointermove`,t),ie.current=null};return ie.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,re,ie]),R.useEffect(()=>{let e=()=>re(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[re]);let[M,N]=hU(e=>{let t=O().filter(e=>!e.disabled),n=gU(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),ae=R.useCallback((e,t,n)=>{let r=!ne.current&&!n;(v.value!==void 0&&v.value===t||r)&&(E(e),r&&(ne.current=!0))},[v.value]),oe=R.useCallback(()=>y?.focus(),[y]),se=R.useCallback((e,t,n)=>{let r=!ne.current&&!n;(v.value!==void 0&&v.value===t||r)&&ee(e)},[v.value]),P=r===`popper`?RH:IH,F=P===RH?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,z.jsx)(AH,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:ae,selectedItem:w,onItemLeave:oe,itemTextRefCallback:se,focusSelectedItem:j,selectedItemText:D,position:r,isPositioned:te,searchRef:M,children:(0,z.jsx)(eF,{as:NH,allowPinchZoom:!0,children:(0,z.jsx)(kN,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Z(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,z.jsx)(vN,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,z.jsx)(P,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...F,onPlaced:()=>k(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:Z(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&N(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>A(t)),e.preventDefault()}})})})})})})});PH.displayName=MH;var FH=`SelectItemAlignedPosition`,IH=R.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=hH(DH,n),o=jH(DH,n),[s,c]=R.useState(null),[l,u]=R.useState(null),d=EM(t,e=>u(e)),f=lH(n),p=R.useRef(!1),m=R.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=R.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-kH,d=QV(a,[kH,Math.max(kH,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-kH,d=QV(a,[kH,Math.max(kH,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-kH*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),E=parseInt(C.paddingBottom,10),D=e.top+e.height/2-kH,ee=c-D,O=g.offsetHeight/2,te=g.offsetTop+O,k=m+v+te,ne=x-k;if(k<=D){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=k+Math.max(ee,O+(e?E:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(D,m+h.offsetTop+(e?w:0)+O)+ne;s.style.height=t+`px`,h.scrollTop=k-D+h.offsetTop}s.style.margin=`${kH}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);YM(()=>y(),[y]);let[b,x]=R.useState();return YM(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]),(0,z.jsx)(zH,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:R.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]),children:(0,z.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,z.jsx)(NM.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});IH.displayName=FH;var LH=`SelectPopperPosition`,RH=R.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=kH,...a}=e,o=pH(n);return(0,z.jsx)(KR,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});RH.displayName=LH;var[zH,BH]=dH(DH,{}),VH=`SelectViewport`,HH=R.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=jH(VH,n),o=BH(VH,n),s=EM(t,a.onViewportChange),c=R.useRef(0);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,z.jsx)(cH.Slot,{scope:n,children:(0,z.jsx)(NM.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:Z(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-kH*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});HH.displayName=VH;var UH=`SelectGroup`,[WH,GH]=dH(UH),KH=R.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=sN();return(0,z.jsx)(WH,{scope:n,id:i,children:(0,z.jsx)(NM.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});KH.displayName=UH;var qH=`SelectLabel`,JH=R.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=GH(qH,n);return(0,z.jsx)(NM.div,{id:i.id,...r,ref:t})});JH.displayName=qH;var YH=`SelectItem`,[XH,ZH]=dH(YH),QH=R.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=hH(YH,n),c=jH(YH,n),l=s.value===r,[u,d]=R.useState(a??``),[f,p]=R.useState(!1),m=EM(t,e=>c.itemRefCallback?.(e,r,i)),h=sN(),g=R.useRef(`touch`),_=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw Error(`A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,z.jsx)(XH,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:R.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,z.jsx)(cH.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,z.jsx)(NM.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:Z(o.onFocus,()=>p(!0)),onBlur:Z(o.onBlur,()=>p(!1)),onClick:Z(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:Z(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:Z(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:Z(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:Z(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(oH.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})});QH.displayName=YH;var $H=`SelectItemText`,eU=R.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=hH($H,n),s=jH($H,n),c=ZH($H,n),l=_H($H,n),[u,d]=R.useState(null),f=EM(t,e=>d(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,m=R.useMemo(()=>(0,z.jsx)(`option`,{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:g}=l;return YM(()=>(h(m),()=>g(m)),[h,g,m]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(NM.span,{id:c.textId,...a,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?cd.createPortal(a.children,o.valueNode):null]})});eU.displayName=$H;var tU=`SelectItemIndicator`,nU=R.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ZH(tU,n).isSelected?(0,z.jsx)(NM.span,{"aria-hidden":!0,...r,ref:t}):null});nU.displayName=tU;var rU=`SelectScrollUpButton`,iU=R.forwardRef((e,t)=>{let n=jH(rU,e.__scopeSelect),r=BH(rU,e.__scopeSelect),[i,a]=R.useState(!1),o=EM(t,r.onScrollButtonChange);return YM(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,z.jsx)(sU,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});iU.displayName=rU;var aU=`SelectScrollDownButton`,oU=R.forwardRef((e,t)=>{let n=jH(aU,e.__scopeSelect),r=BH(aU,e.__scopeSelect),[i,a]=R.useState(!1),o=EM(t,r.onScrollButtonChange);return YM(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,z.jsx)(sU,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});oU.displayName=aU;var sU=R.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=jH(`SelectScrollButton`,n),o=R.useRef(null),s=lH(n),c=R.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return R.useEffect(()=>()=>c(),[c]),YM(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,z.jsx)(NM.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Z(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:Z(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:Z(i.onPointerLeave,()=>{c()})})}),cU=`SelectSeparator`,lU=R.forwardRef((e,t)=>
67{let{__scopeSelect:n,...r}=e;return(0,z.jsx)(NM.div,{"aria-hidden":!0,...r,ref:t})});lU.displayName=cU;var uU=`SelectArrow`,dU=R.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=pH(n),a=hH(uU,n),o=jH(uU,n);return a.open&&o.position===`popper`?(0,z.jsx)(qR,{...i,...r,ref:t}):null});dU.displayName=uU;var fU=`SelectBubbleInput`,pU=R.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=R.useRef(null),a=EM(r,i),o=iI(t);return R.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,z.jsx)(NM.select,{...n,style:{...FM,...n.style},ref:a,defaultValue:t})});pU.displayName=fU;function mU(e){return e===``||e===void 0}function hU(e){let t=uN(e),n=R.useRef(``),r=R.useRef(0),i=R.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=R.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return R.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function gU(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=_U(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function _U(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var vU=vH,yU=bH,bU=SH,xU=wH,SU=EH,CU=OH,wU=HH,TU=QH,EU=eU,DU=nU,OU=iU,kU=oU,AU=[`PageUp`,`PageDown`],jU=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],MU={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},NU=`Slider`,[PU,FU,IU]=JM(NU),[LU,RU]=BM(NU,[IU]),[zU,BU]=LU(NU),VU=R.forwardRef((e,t)=>{let{name:n,min:r=0,max:i=100,step:a=1,orientation:o=`horizontal`,disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:u,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:m,...h}=e,g=R.useRef(new Set),_=R.useRef(0),v=o===`horizontal`?WU:GU,[y=[],b]=ZM({prop:u,defaultProp:l,onChange:e=>{[...g.current][_.current]?.focus(),d(e)}}),x=R.useRef(y);function S(e){E(e,aW(y,e))}function C(e){E(e,_.current)}function w(){let e=x.current[_.current];y[_.current]!==e&&f(y)}function E(e,t,{commit:n}={commit:!1}){let o=uW(a),s=QV(dW(Math.round((e-r)/a)*a+r,o),[r,i]);b((e=[])=>{let r=nW(e,s,t);if(cW(r,c*a)){_.current=r.indexOf(s);let t=String(r)!==String(e);return t&&n&&f(r),t?r:e}else return e})}return(0,z.jsx)(zU,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:i,valueIndexToChangeRef:_,thumbs:g.current,values:y,orientation:o,form:m,children:(0,z.jsx)(PU.Provider,{scope:e.__scopeSlider,children:(0,z.jsx)(PU.Slot,{scope:e.__scopeSlider,children:(0,z.jsx)(v,{"aria-disabled":s,"data-disabled":s?``:void 0,...h,ref:t,onPointerDown:Z(h.onPointerDown,()=>{s||(x.current=y)}),min:r,max:i,inverted:p,onSlideStart:s?void 0:S,onSlideMove:s?void 0:C,onSlideEnd:s?void 0:w,onHomeKeyDown:()=>!s&&E(r,0,{commit:!0}),onEndKeyDown:()=>!s&&E(i,y.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!s){let n=AU.includes(e.key)||e.shiftKey&&jU.includes(e.key)?10:1,r=_.current,i=y[r];E(i+a*n*t,r,{commit:!0})}}})})})})});VU.displayName=NU;var[HU,UU]=LU(NU,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),WU=R.forwardRef((e,t)=>{let{min:n,max:r,dir:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,[d,f]=R.useState(null),p=EM(t,e=>f(e)),m=R.useRef(void 0),h=lN(i),g=h===`ltr`,_=g&&!a||!g&&a;function v(e){let t=m.current||d.getBoundingClientRect(),i=lW([0,t.width],_?[n,r]:[r,n]);return m.current=t,i(e-t.left)}return(0,z.jsx)(HU,{scope:e.__scopeSlider,startEdge:_?`left`:`right`,endEdge:_?`right`:`left`,direction:_?1:-1,size:`width`,children:(0,z.jsx)(KU,{dir:h,"data-orientation":`horizontal`,...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=v(e.clientX);o?.(t)},onSlideMove:e=>{let t=v(e.clientX);s?.(t)},onSlideEnd:()=>{m.current=void 0,c?.()},onStepKeyDown:e=>
vendor: 4,708 bytes, line 67
67{let t=MU[_?`from-left`:`from-right`].includes(e.key);l?.({event:e,direction:t?-1:1})}})})}),GU=R.forwardRef((e,t)=>{let{min:n,max:r,inverted:i,onSlideStart:a,onSlideMove:o,onSlideEnd:s,onStepKeyDown:c,...l}=e,u=R.useRef(null),d=EM(t,u),f=R.useRef(void 0),p=!i;function m(e){let t=f.current||u.current.getBoundingClientRect(),i=lW([0,t.height],p?[r,n]:[n,r]);return f.current=t,i(e-t.top)}return(0,z.jsx)(HU,{scope:e.__scopeSlider,startEdge:p?`bottom`:`top`,endEdge:p?`top`:`bottom`,size:`height`,direction:p?1:-1,children:(0,z.jsx)(KU,{"data-orientation":`vertical`,...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=m(e.clientY);a?.(t)},onSlideMove:e=>{let t=m(e.clientY);o?.(t)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:e=>{let t=MU[p?`from-bottom`:`from-top`].includes(e.key);c?.({event:e,direction:t?-1:1})}})})}),KU=R.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:o,onEndKeyDown:s,onStepKeyDown:c,...l}=e,u=BU(NU,n);return(0,z.jsx)(NM.span,{...l,ref:t,onKeyDown:Z(e.onKeyDown,e=>{e.key===`Home`?(o(e),e.preventDefault()):e.key===`End`?(s(e),e.preventDefault()):AU.concat(jU).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:Z(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)}),onPointerMove:Z(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:Z(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),qU=`SliderTrack`,JU=R.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=BU(qU,n);return(0,z.jsx)(NM.span,{"data-disabled":i.disabled?``:void 0,"data-orientation":i.orientation,...r,ref:t})});JU.displayName=qU;var YU=`SliderRange`,XU=R.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=BU(YU,n),a=UU(YU,n),o=EM(t,R.useRef(null)),s=i.values.length,c=i.values.map(e=>rW(e,i.min,i.max)),l=s>1?Math.min(...c):0,u=100-Math.max(...c);return(0,z.jsx)(NM.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?``:void 0,...r,ref:o,style:{...e.style,[a.startEdge]:l+`%`,[a.endEdge]:u+`%`}})});XU.displayName=YU;var ZU=`SliderThumb`,QU=R.forwardRef((e,t)=>{let n=FU(e.__scopeSlider),[r,i]=R.useState(null),a=EM(t,e=>i(e)),o=R.useMemo(()=>r?n().findIndex(e=>e.ref.current===r):-1,[n,r]);return(0,z.jsx)($U,{...e,ref:a,index:o})}),$U=R.forwardRef((e,t)=>{let{__scopeSlider:n,index:r,name:i,...a}=e,o=BU(ZU,n),s=UU(ZU,n),[c,l]=R.useState(null),u=EM(t,e=>l(e)),d=c?o.form||!!c.closest(`form`):!0,f=aI(c),p=o.values[r],m=p===void 0?0:rW(p,o.min,o.max),h=iW(r,o.values.length),g=f?.[s.size],_=g?oW(g,m,s.direction):0;return R.useEffect(()=>{if(c)return o.thumbs.add(c),()=>{o.thumbs.delete(c)}},[c,o.thumbs]),(0,z.jsxs)(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[s.startEdge]:`calc(${m}% + ${_}px)`},children:[(0,z.jsx)(PU.ItemSlot,{scope:e.__scopeSlider,children:(0,z.jsx)(NM.span,{role:`slider`,"aria-label":e[`aria-label`]||h,"aria-valuemin":o.min,"aria-valuenow":p,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?``:void 0,tabIndex:o.disabled?void 0:0,...a,ref:u,style:p===void 0?{display:`none`}:e.style,onFocus:Z(e.onFocus,()=>{o.valueIndexToChangeRef.current=r})})}),d&&(0,z.jsx)(tW,{name:i??(o.name?o.name+(o.values.length>1?`[]`:``):void 0),form:o.form,value:p},r)]})});QU.displayName=ZU;var eW=`RadioBubbleInput`,tW=R.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{let i=R.useRef(null),a=EM(i,r),o=iI(t);return R.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`input`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,z.jsx)(NM.input,{style:{display:`none`},...n,ref:a,defaultValue:t})});tW.displayName=eW;function nW(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function rW(e,t,n){return QV(100/(n-t)*(e-t),[0,100])}function iW(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function aW(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function oW(e,t,n){let r=e/2;return(r-lW([0,50],[0,r])(t)*n)*n}function sW(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function cW(e,t){if(t>0){let n=sW(e);return Math.min(...n)>=t}return!0}function lW(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function uW(e){return(String(e).split(`.`)[1]||``).length}function dW(e,t){let n=10**t;return Math.round(e*n)/n}var fW=VU,pW=JU,mW=XU,hW=QU;
67function gW(e){let t=vW(e),n=R.forwardRef((e,n)=>{let{children:r,...i}=e,a=R.Children.toArray(r),o=a.find(bW);if(o){let e=o.props.children,r=a.map(t=>t===o?R.Children.count(e)>1?R.Children.only(null):R.isValidElement(e)?e.props.children:null:t);return(0,z.jsx)(t,{...i,ref:n,children:R.isValidElement(e)?R.cloneElement(e,void 0,r):null})}return(0,z.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var _W=gW(`Slot`);function vW(e){let t=R.forwardRef((e,t)=>{let{children:n,...r}=e;if(R.isValidElement(n)){let e=SW(n),i=xW(r,n.props);return n.type!==R.Fragment&&(i.ref=t?TM(t,e):e),R.cloneElement(n,i)}return R.Children.count(n)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yW=Symbol(`radix.slottable`);function bW(e){return R.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===yW}function xW(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function SW(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var CW=e=>crypto.getRandomValues(new Uint8Array(e)),wW=(e,t,n)=>{let r=256-256%e.length;if(r===256){let r=e.length-1;return(i=t)=>{if(!i)return``;let a=``;for(;;){let t=n(i),o=i;for(;o--;)if(a+=e[t[o]&r],a.length>=i)return a}}}let i=Math.ceil(1.6*256*t/r);return(a=t)=>{if(!a)return``;let o=``;for(;;){let t=n(i),s=i;for(;s--;)if(t[s]<r&&(o+=e[t[s]%e.length],o.length>=a))return o}}},TW=(e,t=21)=>wW(e,t|0,CW),EW=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},DW=(e,t)=>({classGroupId:e,validator:t}),OW=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),kW=`-`,AW=[],jW=`arbitrary..`,MW=e=>{let t=FW(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return PW(e);let n=e.split(kW);return NW(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?EW(i,t):t:i||AW}return n[e]||AW}}},NW=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=NW(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(kW):e.slice(t).join(kW),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},PW=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?jW+r:void 0})(),FW=e=>{let{theme:t,classGroups:n}=e;return IW(n,t)},IW=(e,t)=>{let n=OW();for(let r in e){let i=e[r];LW(i,n,r,t)}return n},LW=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];RW(i,t,n,r)}},RW=(e,t,n,r)=>{if(typeof e==`string`){zW(e,t,n);return}if(typeof e==`function`){BW(e,t,n,r);return}VW(e,t,n,r)},zW=(e,t,n)=>{let r=e===``?t:HW(t,e);r.classGroupId=n},BW=(e,t,n,r)=>{if(UW(e)){LW(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(DW(n,e))},VW=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];LW(o,HW(t,a),n,r)}},HW=(e,t)=>{let n=e,r=t.split(kW),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=OW(),n.nextPart.set(t,i)),n=i}return n},UW=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,WW=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},GW=`!`,KW=`:`,qW=[],JW=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),YW=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===KW){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}
vendor: 12,351 bytes, line 67
67o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(GW)?(c=s.slice(0,-1),l=!0):s.startsWith(GW)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return JW(t,l,c,u)};if(t){let e=t+KW,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):JW(qW,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},XW=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},ZW=e=>({cache:WW(e.cacheSize),parseClassName:YW(e),sortModifiers:XW(e),postfixLookupClassGroupIds:QW(e),...MW(e)}),QW=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},$W=/\s+/,eG=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split($W),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+GW:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},tG=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=nG(n))&&(i&&(i+=` `),i+=r);return i},nG=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=nG(e[r]))&&(n&&(n+=` `),n+=t);return n},rG=(e,...t)=>{let n,r,i,a,o=o=>(n=ZW(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=eG(e,n);return i(e,a),a};return a=o,(...e)=>a(tG(...e))},iG=[],aG=e=>{let t=t=>t[e]||iG;return t.isThemeGetter=!0,t},oG=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sG=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cG=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,lG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uG=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mG=e=>cG.test(e),hG=e=>!!e&&!Number.isNaN(Number(e)),gG=e=>!!e&&Number.isInteger(Number(e)),_G=e=>e.endsWith(`%`)&&hG(e.slice(0,-1)),vG=e=>lG.test(e),yG=()=>!0,bG=e=>uG.test(e)&&!dG.test(e),xG=()=>!1,SG=e=>fG.test(e),CG=e=>pG.test(e),wG=e=>!Q(e)&&!$(e),TG=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),EG=e=>VG(e,GG,xG),Q=e=>oG.test(e),DG=e=>VG(e,KG,bG),OG=e=>VG(e,qG,hG),kG=e=>VG(e,YG,yG),AG=e=>VG(e,JG,xG),jG=e=>VG(e,UG,xG),MG=e=>VG(e,WG,CG),NG=e=>VG(e,XG,SG),$=e=>sG.test(e),PG=e=>HG(e,KG),FG=e=>HG(e,JG),IG=e=>HG(e,UG),LG=e=>HG(e,GG),RG=e=>HG(e,WG),zG=e=>HG(e,XG,!0),BG=e=>HG(e,YG,!0),VG=(e,t,n)=>{let r=oG.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},HG=(e,t,n=!1)=>{let r=sG.exec(e);return r?r[1]?t(r[1]):n:!1},UG=e=>e===`position`||e===`percentage`,WG=e=>e===`image`||e===`url`,GG=e=>e===`length`||e===`size`||e===`bg-size`,KG=e=>e===`length`,qG=e=>e===`number`,JG=e=>e===`family-name`,YG=e=>e===`number`||e===`weight`,XG=e=>e===`shadow`,ZG=rG(()=>{let e=aG(`color`),t=aG(`font`),n=aG(`text`),r=aG(`font-weight`),i=aG(`tracking`),a=aG(`leading`),o=aG(`breakpoint`),s=aG(`container`),c=aG(`spacing`),l=aG(`radius`),u=aG(`shadow`),d=aG(`inset-shadow`),f=aG(`text-shadow`),p=aG(`drop-shadow`),m=aG(`blur`),h=aG(`perspective`),g=aG(`aspect`),_=aG(`ease`),v=aG(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],E=()=>[mG,`full`,`auto`,...w()],D=()=>[gG,`none`,`subgrid`,$,Q],ee=()=>[`auto`,{span:[`full`,gG,$,Q]},gG,$,Q],O=()=>[gG,`auto`,$,Q],te=()=>[`auto`,`min`,`max`,`fr`,$,Q],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ne=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...w()],j=()=>[mG,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[mG,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[mG,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[e,$,Q],N=()=>[...b(),IG,jG,{position:[$,Q]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,LG,EG,{size:[$,Q]}],se=()=>[_G,PG,DG],P=()=>[``,`none`,`full`,l,$,Q],F=()=>[``,hG,PG,DG],ce=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ue=()=>[hG,_G,IG,jG],de=()=>[``,`none`,m,$,Q],fe=()=>[`none`,hG,$,Q],pe=()=>[`none`,hG,$,Q],me=()=>[hG,$,Q],he=()=>[mG,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[vG],breakpoint:[vG],color:[yG],container:[vG],"drop-shadow":[vG],ease:[`in`,`out`,`in-out`],font:[wG],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[vG],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[vG],shadow:[vG],spacing:[`px`,hG],text:[vG],"text-shadow":[vG],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,mG,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[TG],columns:[{columns:[hG,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[gG,`auto`,$,Q]}],basis:[{basis:[mG,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[hG,mG,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,hG,$,Q]}],shrink:[{shrink:[``,hG,$,Q]}],order:[{order:[gG,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...ne(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ne()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...ne(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ne(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...ne(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ne()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,...j()]}],"font-size":[{text:[`base`,n,PG,DG]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,BG,kG]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,_G,Q]}],"font-family":[{font:[FG,AG,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[hG,`none`,$,OG]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ce(),`wavy`]}],"text-decoration-thickness":[{decoration:[hG,`from-font`,`auto`,$,DG]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[hG,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[gG,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},gG,$,Q],radial:[``,$,Q],conic:[gG,$,Q]},RG,MG]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:se()}
67],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":F()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ce(),`hidden`,`none`]}],"divide-style":[{divide:[...ce(),`hidden`,`none`]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}
vendor: 6,199 bytes, line 67
67],"divide-color":[{divide:M()}],"outline-style":[{outline:[...ce(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[hG,$,Q]}],"outline-w":[{outline:[``,hG,PG,DG]}],"outline-color":[{outline:M()}],shadow:[{shadow:[``,`none`,u,zG,NG]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":[`none`,d,zG,NG]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:F()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[hG,DG]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":[`none`,f,zG,NG]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[hG,$,Q]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[hG]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[hG]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:de()}],brightness:[{brightness:[hG,$,Q]}],contrast:[{contrast:[hG,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,zG,NG]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:[``,hG,$,Q]}],"hue-rotate":[{"hue-rotate":[hG,$,Q]}],invert:[{invert:[``,hG,$,Q]}],saturate:[{saturate:[hG,$,Q]}],sepia:[{sepia:[``,hG,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[hG,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[hG,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,hG,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[hG,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,hG,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[hG,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[hG,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,hG,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[hG,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[hG,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":[`scale-3d`],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":[`translate-none`],zoom:[{zoom:[gG,$,Q]}],accent:[{accent:M()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom
67-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}
67],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...M()]}],"stroke-w":[{stroke:[hG,PG,DG,OG]}],stroke:[{stroke:[`none`,...M()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function QG(...e){return ZG(bM(e))}TW(`abcdefghijklmnopqrstuvwxyz0123456789`);var $G=async e=>new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>
67t(r.result),r.onerror=n,r.readAsDataURL(e)});function eK(e){let t=Math.floor((new Date().getTime()-e.getTime())/1e3);if(t<60)return`just now`;let n=Math.floor(t/60);if(n<60)return`${n} minute${n===1?``:`s`} ago`;let r=Math.floor(n/60);if(r<24)return`${r} hour${r===1?``:`s`} ago`;let i=Math.floor(r/24);if(i<30)return`${i} day${i===1?``:`s`} ago`;let a=Math.floor(i/30);if(a<12)return`${a} month${a===1?``:`s`} ago`;let o=Math.floor(a/12);return`${o} year${o===1?``:`s`} ago`}var tK=CM(`group/button inline-flex shrink-0 items-center justify-center rounded-4xl border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-transparent dark:hover:bg-input/30`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5`,xs:`h-6 gap-1 px-2.5 text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,lg:`h-10 gap-1.5 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3`,icon:`size-9`,"icon-xs":`size-6 [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function nK({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){return(0,z.jsx)(r?_W:`button`,{"data-slot":`button`,"data-variant":t,"data-size":n,className:QG(tK({variant:t,size:n,className:e})),...i})}function rK({className:e,type:t,...n}){return(0,z.jsx)(`input`,{type:t,"data-slot":`input`,className:QG(`h-9 w-full min-w-0 rounded-3xl border border-transparent bg-input/50 px-3 py-1 text-base transition-[color,box-shadow,background-color] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}var iK={en:`en_US`,pt:`pt_PT`,es:`es_ES`,de:`de_DE`,ru:`ru_RU`};function aK(e,t){let{t:n,i18n:r}=xE();(0,R.useEffect)(()=>{if(typeof document>`u`)return;let i=String(n(e));if(i&&i!==e&&(document.title=i),t){let e=String(n(t));if(e&&e!==t){let t=document.querySelector(`meta[name="description"]`);t||(t=document.createElement(`meta`),t.name=`description`,document.head.appendChild(t)),t.content=e;let n=document.querySelector(`meta[property="og:description"]`);n&&(n.content=e);let r=document.querySelector(`meta[property="og:title"]`);r&&i&&(r.content=i)}}let a=r?.language?.split(`-`)[0];if(a){document.documentElement.lang=a;let e=document.querySelector(`meta[property="og:locale"]`);e&&iK[a]&&(e.content=iK[a])}},[n,r.language,e,t])}function oK({...e}){return(0,z.jsx)(vU,{"data-slot":`select`,...e})}function sK({...e}){return(0,z.jsx)(bU,{"data-slot":`select-value`,...e})}function cK({className:e,size:t=`default`,children:n,...r}){return(0,z.jsxs)(yU,{"data-slot":`select-trigger`,"data-size":t,className:QG(`flex w-fit items-center justify-between gap-1.5 rounded-3xl border border-transparent bg-input/50 px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow,background-color] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,z.jsx)(xU,{asChild:!0,children:(0,z.jsx)(cD,{className:`pointer-events-none size-4 text-muted-foreground`})})]})}function lK({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,z.jsx)(SU,{children:(0,z.jsxs)(CU,{"data-slot":`select-content`,"data-align-trigger":n===`item-aligned`,className:QG(`relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-3xl bg-popover text-popover-foreground shadow-lg ring-1 ring-foreground
67/5 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,z.jsx)(dK,{}),(0,z.jsx)(wU,{"data-position":n,className:QG(`data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)`,n===`popper`&&``),children:t}),(0,z.jsx)(fK,{})]})})}function uK({className:e,children:t,...n}){return(0,z.jsxs)(TU,{"data-slot":`select-item`,className:QG(`relative flex w-full cursor-default items-center gap-2.5 rounded-2xl py-2 pr-8 pl-3 text-sm font-medium outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,z.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`,children:(0,z.jsx)(DU,{children:(0,z.jsx)(fD,{className:`pointer-events-none`})})}),(0,z.jsx)(EU,{children:t})]})}function dK({className:e,...t}){return(0,z.jsx)(OU,{"data-slot":`select-scroll-up-button`,className:QG(`z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,z.jsx)(dD,{})})}function fK({className:e,...t}){return(0,z.jsx)(kU,{"data-slot":`select-scroll-down-button`,className:QG(`z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,z.jsx)(cD,{})})}function pK({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`skeleton`,className:QG(`animate-pulse rounded-2xl bg-muted`,e),...t})}function mK({className:e,...t}){return(0,z.jsx)(ZV,{"data-slot":`label`,className:QG(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}function hK({className:e,defaultValue:t,value:n,min:r=0,max:i=100,...a}){let o=R.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[r,i],[n,t,r,i]);return(0,z.jsxs)(fW,{"data-slot":`slider`,defaultValue:t,value:n,min:r,max:i,className:QG(`relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col`,e),...a,children:[(0,z.jsx)(pW,{"data-slot":`slider-track`,className:`relative grow overflow-hidden rounded-full bg-input/90 data-horizontal:h-2 data-horizontal:w-full data-vertical:h-full data-vertical:w-2`,children:(0,z.jsx)(mW,{"data-slot":`slider-range`,className:`absolute bg-primary select-none data-horizontal:h-full data-vertical:w-full`})}),Array.from({length:o.length},(e,t)=>(0,z.jsx)(hW,{"data-slot":`slider-thumb`,className:`block h-4 w-6 shrink-0 rounded-full bg-white shadow-md ring-1 ring-black/10 transition-[color,box-shadow,background-color] select-none not-dark:bg-clip-padding hover:ring-4 hover:ring-ring/30 focus-visible:ring-4 focus-visible:ring-ring/30 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-vertical:h-6 data-vertical:w-4`},t))]})}function gK({className:e,...t}){return(0,z.jsx)(`textarea`,{"data-slot":`textarea`,className:QG(`flex field-sizing-content min-h-16 w-full resize-none rounded-2xl border border-transparent bg-input/50 px-3 py-3 text-base transition-[color,box-shadow,background-color] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...t})}var _K=[`Buy an apartment`,`Buy a house`,`Rent`,`Sell`,`Investment`],vK=[`Studio`,`1`,`2`,`3`,`4+`,`Any`],yK=[`Urgent (1 month)`,`1–3 months`,`3–6 months`,`Just browsing`],bK=[`Email`,`WhatsApp`,`Call`,`Telegram`];function xK(){let e=eg(),t=kw(),[n,r]=(0,R.useState)(1),[i,a]=(0,R.useState)(!1),[o,s]=(0,R.useState)({requestType:``,city:``,neighbourhood:``,budget:2e5,rooms:``,timing:``,details:``,firstName:``,lastName:``,email:``,phone:``,contactMethod:``}),c=Dp(e.agents.submitBuyerLead.mutationOptions({onSuccess:()=>{t.capture(`buyer_lead_submitted`,{request_type:o.requestType,city:o.city,budget_eur:o.budget,timing:o.timing,contact_method:o.contactMethod}),a(!0),KE.success(`Request sent successfully!`)},onError:e=>{KE.error(e.message||`Failed to send request`)}}));return i?(0,z.jsxs)(`div`,{className:`rounded-xl border bg-card p-8 text-center`,children:[(0,z.jsx)(`div`,{className:`mx-auto flex h-16 w-16 items-center justify-center rounded-full bg-green-100 text-green-600 dark:bg-green-900/20`,children:(0,z.jsx)(rM,{className:`h-8 w-8`})}),(0,z.jsx)(`h3`,{className:`mt-4 text-xl font-semibold`,children:`Request sent!`}),(0,z.jsx)(`p`,{className:`mt-2 text-muted-foreground`,children:`Verified realtors in your city received your request. Expect a reply within 24 hours.`}),(0,z.jsx)(nK,{variant:`outline`,className:`mt-6`,onClick:()=>{a(!1),r(1),s({requestType:``,city:``,neighbourhood:``,budget:2e5,rooms:``,timing:``,details:``,firstName:``,lastName:``,email:``,phone:``,contactMethod:``})},children:`Send another request`})]}):(0,z.jsxs)(`div`,{className:`rounded-xl border bg-card p-6`,children:[(0,z.jsxs)(`div`,{className:`mb-6 flex items-center gap-2`,children:[(0,z.jsx)(`div`,{className:`h-1.5 flex-1 rounded-full bg-muted`,children:(0,z.jsx)(`div`,{className:`h-full rounded-full bg-primary transition-all`,style:{width:`${n/3*100}%`}})}),(0,z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`Step `,n,` of 3`]})]}),n===1&&(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(mK,{className:`mb-2 block`,children:`What are you looking for?`}),(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:_K.map(e=>(0,z.jsx)(`button`,{type:`button`,onClick:()=>s(t=>({...t,requestType:e})),className:`rounded-full border px-4 py-2 text-sm transition-colors ${o.requestType===e?`border-primary bg-primary text-primary-foreground`:`border-border bg-background hover:bg-accent`}`,children:e},e))})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(mK,{className:`mb-2 block`,children:`In which city?`}),(0,z.jsx)(rK,{placeholder:`e.g. Lisbon, Madrid, Barcelona...`,value:o.city,onChange:e=>s(t=>({...t,city:e.target.value}))})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(mK,{className:`mb-2 block`,children:[`Preferred neighbourhood `,(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`(optional)`})]}),(0,z.jsx)(rK,{placeholder:`e.g. Alfama, Belém...`,value:o.neighbourhood,onChange:e=>s(t=>({...t,neighbourhood:e.target.value}))})]}),(0,z.jsx)(`div`,{className:`flex justify-end`,children:(0,z.jsxs)(nK,{onClick:()=>r(2),disabled:!o.requestType||!o.city,children:[`Next `,(0,z.jsx)(oM,{className:`ml-1 h-4 w-4`})]})})]}),n===2&&(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(mK,{className:`mb-2 block`,children:`Budget`}),(0,z.jsxs)(`div`,{className:`mb-2 text-2xl font-bold`,children:[`€`,o.budget.toLocaleStr
67ing()]}),(0,z.jsx)(hK,{value:[o.budget],onValueChange:([e])=>s(t=>({...t,budget:e})),min:5e4,max:2e6,step:1e4}),(0,z.jsxs)(`div`,{className:`mt-1 flex justify-between text-xs text-muted-foreground`,children:[(0,z.jsx)(`span`,{children:`€50,000`}),(0,z.jsx)(`span`,{children:`€2,000,000+`})]})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(mK,{className:`mb-2 block`,children:`Number of rooms`}),(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:vK.map(e=>(0,z.jsx)(`button`,{type:`button`,onClick:()=>s(t=>({...t,rooms:e})),className:`rounded-full border px-4 py-2 text-sm transition-colors ${o.rooms===e?`border-primary bg-primary text-primary-foreground`:`border-border bg-background hover:bg-accent`}`,children:e},e))})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(mK,{className:`mb-2 block`,children:`When are you planning?`}),(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:yK.map(e=>(0,z.jsx)(`button`,{type:`button`,onClick:()=>s(t=>({...t,timing:e})),className:`rounded-full border px-4 py-2 text-sm transition-colors ${o.timing===e?`border-primary bg-primary text-primary-foreground`:`border-border bg-background hover:bg-accent`}`,children:e},e))})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(mK,{className:`mb-2 block`,children:[`Additional details `,(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`(optional)`})]}),(0,z.jsx)(gK,{placeholder:`Parking, terrace, floor preference, mortgage...`,value:o.details,onChange:e=>s(t=>({...t,details:e.target.value}))})]}),(0,z.jsxs)(`div`,{className:`flex justify-between`,children:[(0,z.jsx)(nK,{variant:`outline`,onClick:()=>r(1),children:`Back`}),(0,z.jsxs)(nK,{onClick:()=>r(3),disabled:!o.rooms||!o.timing,children:[`Next `,(0,z.jsx)(oM,{className:`ml-1 h-4 w-4`})]})]})]}),n===3&&(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(mK,{className:`mb-2 block`,children:`First name`}),(0,z.jsx)(rK,{placeholder:`First name`,value:o.firstName,onChange:e=>s(t=>({...t,firstName:e.target.value}))})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(mK,{className:`mb-2 block`,children:`Last name`}),(0,z.jsx)(rK,{placeholder:`Last name`,value:o.lastName,onChange:e=>s(t=>({...t,lastName:e.target.value}))})]})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(mK,{className:`mb-2 block`,children:`Email`}),(0,z.jsx)(rK,{type:`email`,placeholder:`[email protected]`,value:o.email,onChange:e=>s(t=>({...t,email:e.target.value}))})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(mK,{className:`mb-2 block`,children:[`Phone `,(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`(optional)`})]}),(0,z.jsx)(rK,{type:`tel`,placeholder:`+351 9XX XXX XXX`,value:o.phone,onChange:e=>s(t=>({...t,phone:e.target.value}))})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(mK,{className:`mb-2 block`,children:`Preferred contact method`}),(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:bK.map(e=>(0,z.jsx)(`button`,{type:`button`,onClick:()=>s(t=>({...t,contactMethod:e})),className:`rounded-full border px-4 py-2 text-sm transition-colors ${o.contactMethod===e?`border-primary bg-primary text-primary-foreground`:`border-border bg-background hover:bg-accent`}`,children:e},e))})]}),(0,z.jsxs)(`div`,{className:`flex justify-between`,children:[(0,z.jsx)(nK,{variant:`outline`,onClick:()=>r(2),children:`Back`}),(0,z.jsx)(nK,{onClick:()=>{c.mutate({requestType:o.requestType||void 0,city:o.city||void 0,neighbourhood:o.neighbourhood||void 0,budget:o.budget,rooms:o.rooms||void 0,timing:o.timing||void 0,details:o.details||void 0,firstName:o.firstName||void 0,lastName:o.lastName||void 0,email:o.email,phone:o.phone||void 0,contactMethod:o.contactMethod||void 0})},disabled:!o.email||c.isPending,children:c.isPending?`Sending...`:`Send request to realtors`})]}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Your request is prepared for the most relevant available agents. Contact details stay private until you submit.`})]})]})}function SK({src:e,alt:t,width:n,height:r,className:i,imgClassName:a,loading:o=`lazy`,fetchPriority:s,decoding:c=`async`,style:l}){let u=e.replace(/\.(jpe?g|png)$/i,``),d=/\.(jpe?g|png)$/i.test(e);return(0,z.jsxs)(`picture`,{className:i,style:l,children:[d?(0,z.jsx)(`source`,{srcSet:`${u}.avif`,type:`image/avif`}):null,d?(0,z.jsx)(`source`,{srcSet:`${u}.webp`,type:`image/webp`}):null,(0,z.jsx)(`img`,{src:e,alt:t,width:n,height:r,loading:o,decoding:c,fetchPriority:s,className:a})]})}function CK(){let e=new Date().getFullYear();return(0,z.jsx)(`footer`,{className:`border-t border-border bg-muted/40`,children:(0,z.jsxs)(`div`,{className:`mx-auto max-w-[1200px] px-7 py-12`,children:[(0,z.jsxs)(`div`,{className:`grid gap-9 md:grid-cols-4`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`mb-2.5 text-sm font-semibold`,children:`Catalog`}),(0,z.jsxs)(`ul`,{className:`grid gap-1.5`,children:[(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:`/agents`,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:`Find a realtor`})}),(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:`/agents`,hash:`directory-how`,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:`How it works`})}),(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:`/agents/for-realtors`,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:`For realtor`})})]})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`mb-2.5 text-sm font-semibold`,children:`Popular Countries`}),(0,z.jsxs)(`ul`,{className:`grid gap-1.5`,children:[(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:`/$countrySlug/agents`,params:{countrySlug:`portugal`},className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:`Portugal Realtors`})}),(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:`/$countrySlug/agents`,params:{countrySlug:`spain`},className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:`Spain Realtors`})})]})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`mb-2.5 text-sm font-semibold`,children:`Popular Cities`}),(0,z.jsx)(`ul`,{className:`grid gap-1.5`,children:[[`Lisbon Realtors`,`portugal`,`lisbon`],[`Porto Realtors`,`portugal`,`porto`],[`Cascais Realtors`,`portugal`,`cascais`],[`Madrid Realtors`,`spain`,`madrid`],[`Barcelona Realtors`,`spain`,`barcelona`]].map(([e,t,n])=>(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:`/$countrySlug/$citySlug/agents`,params:{countrySlug:t,citySlug:n},className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:e})},e))})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`mb-2.5 text-sm font-semibold`,children:`Legal`}),(0,z.jsxs)(`ul`,{className:`grid gap-1.5`,children:[(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:`/privacy`,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:`Privacy Policy`})}),(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:`/tos`,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:`Terms of Service`})}),(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:`/privacy`,hash:`cookies`,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:`Cookie Policy`})}),(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:`/privacy`,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:`GDPR`})}),(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:`/agents/remove-profile`,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:`Remove My Profile`})}),(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:`/agents/report-incorrect`,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:`Report Incorrect Information`})})]})]})]}),(0,z.jsx)(`div`,{className:`mt-9 border-t border-border pt-8`,children:(0,z.jsxs)(`div`,{className:`max-w-xl`,children:[(0,z.jsxs)(B,{to:`/agents`,className:`flex items-center gap-2`,children:[(0,z.jsx)(SK,{src:`/ai-realty-logo.png`,alt:`Europe real estate agent directory`,width:512,height:512,imgClassName:`h-8 w-8 rounded-lg`}),(0,z.jsx)(`span`,{className:`font-heading font-semibold`,children:`AI Realty`})]}),(0,z.jsx)(`p`,{className:`mt-3 text-sm font-medium text-foreground`,children:`Europe's Real Estate Agent Directory.`}),(0,z.jsx)(`p`,{className:`mt-2 text-sm leading-relaxed text-muted-foreground`,children:`Find verified real estate agents, agencies, and property professionals across Europe.`}),(0,z.jsx)(`a`,{href:`mailto:${PD}`,className:`mt-3 inline-block text-sm text-muted-foreground hover:text-foreground`,children:PD})]})}),(0,z.jsxs)(`div`,{className:`mt-8 flex flex-col items-center justify-between gap-2 border-t border-border pt-4 text-xs text-muted-foreground md:flex-row`,children:[(0,z.jsxs)(`span`,{children:[`© `,e,` AI Realty Global`]}),(0,z.jsx)(`a`,{href:`https://airealty.global/agents`,className:`hover:text-foreground`,children:`airealty.global/agents`})]})]})})}function wK({...e}){return(0,z.jsx)(LV,{"data-slot":`dropdown-menu`,...e})}function TK({...e}){return(0,z.jsx)(RV,{"data-slot":`dropdown-menu-trigger`,...e})}function EK({className:e,align:t=`start`,sideOffset:n=4,...r}){return(0,z.jsx)(zV,{children:(0,z.jsx)(BV,{"data-slot":`dropdown-menu-content`,sideOffset:n,align:t,className:QG(`z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-48 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-3xl bg-popover p-1.5 text-popover-foreground shadow-lg ring-1 ring-foreground
67/5 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r})})}function DK({...e}){return(0,z.jsx)(VV,{"data-slot":`dropdown-menu-group`,...e})}function OK({className:e,inset:t,variant:n=`default`,...r}){return(0,z.jsx)(UV,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:QG(`group/dropdown-menu-item relative flex cursor-default items-center gap-2.5 rounded-2xl px-3 py-2 text-sm font-medium outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-9.5 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}function kK({className:e,children:t,checked:n,inset:r,...i}){return(0,z.jsxs)(WV,{"data-slot":`dropdown-menu-checkbox-item`,"data-inset":r,className:QG(`relative flex cursor-default items-center gap-2.5 rounded-2xl py-2 pr-8 pl-3 text-sm font-medium outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-9.5 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:n,...i,children:[(0,z.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`,"data-slot":`dropdown-menu-checkbox-item-indicator`,children:(0,z.jsx)(qV,{children:(0,z.jsx)(fD,{})})}),t]})}function AK({...e}){return(0,z.jsx)(GV,{"data-slot":`dropdown-menu-radio-group`,...e})}function jK({className:e,children:t,inset:n,...r}){return(0,z.jsxs)(KV,{"data-slot":`dropdown-menu-radio-item`,"data-inset":n,className:QG(`relative flex cursor-default items-center gap-2.5 rounded-2xl py-2 pr-8 pl-3 text-sm font-medium outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-9.5 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[(0,z.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`,"data-slot":`dropdown-menu-radio-item-indicator`,children:(0,z.jsx)(qV,{children:(0,z.jsx)(fD,{})})}),t]})}function MK({className:e,inset:t,...n}){return(0,z.jsx)(HV,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:QG(`px-3 py-2.5 text-xs text-muted-foreground data-inset:pl-9.5`,e),...n})}function NK({className:e,...t}){return(0,z.jsx)(JV,{"data-slot":`dropdown-menu-separator`,className:QG(`-mx-1.5 my-1.5 h-px bg-border/50`,e),...t})}function PK(){let{setTheme:e}=Uw();return(0,z.jsxs)(wK,{children:[(0,z.jsx)(TK,{asChild:!0,children:(0,z.jsxs)(nK,{className:`mx-2`,size:`icon`,variant:`outline`,children:[(0,z.jsx)(_M,{className:`dark:-rotate-90 h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:scale-0`}),(0,z.jsx)(mM,{className:`absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100`}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`})]})}),(0,z.jsxs)(EK,{align:`end`,children:[(0,z.jsx)(OK,{onClick:()=>e(`light`),children:`Light`}),(0,z.jsx)(OK,{onClick:()=>e(`dark`),children:`Dark`}),(0,z.jsx)(OK,{onClick:()=>e(`system`),children:`System`})]})]})}function FK({...e}){return(0,z.jsx)(XF,{"data-slot":`sheet`,...e})}function IK({...e}){return(0,z.jsx)(ZF,{"data-slot":`sheet-trigger`,...e})}function LK({...e}){return(0,z.jsx)(QF,{"data-slot":`sheet-portal`,...e})}function RK({className:e,...t}){return(0,z.jsx)($F,{"data-slot":`sheet-overlay`,className:QG(`fixed inset-0 z-50 bg-black/30 duration-100 supports-backdrop-filter:backdrop-blur-sm data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function zK({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,z.jsxs)(LK,{children:[(0,z.jsx)(RK,{}),(0,z.jsxs)(eI,{"data-slot":`sheet-content`,"data-side":n,className:QG(`fixed z-50 flex flex-col bg-popover bg-clip-padding text-sm text-popover-foreground shadow-xl transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:sli
67de-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10`,e),...i,children:[t,r&&(0,z.jsx)(rI,{"data-slot":`sheet-close`,asChild:!0,children:(0,z.jsxs)(nK,{variant:`ghost`,className:`absolute top-4 right-4 bg-secondary`,size:`icon-sm`,children:[(0,z.jsx)(hD,{}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]})}function BK({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`sheet-header`,className:QG(`flex flex-col gap-1.5 p-6`,e),...t})}function VK({className:e,...t}){return(0,z.jsx)(tI,{"data-slot":`sheet-title`,className:QG(`font-heading text-base font-medium text-foreground`,e),...t})}function HK({className:e,...t}){return(0,z.jsx)(nI,{"data-slot":`sheet-description`,className:QG(`text-sm text-muted-foreground`,e),...t})}var UK={session:[`session`]},WK=()=>GA.useSession(),GK=()=>{let e=Tu(),t=kw();return{loginWithCredentials:Dp({mutationFn:async({email:e,password:t,rememberMe:n})=>{let r=await GA.signIn.email({email:e,password:t,rememberMe:n});if(r.error)throw Error(r.error.message||`Authentication failed`);return r},onSuccess(n){n.data?.user.id&&(t.identify(n.data.user.id,{email:n.data.user.email,name:n.data.user.name}),t.capture(`user_logged_in`,{method:`email`}),e.navigate({to:`/dashboard`}))},onError(e){console.error(`Login error:`,e)}}),loginWithPasskey:Dp({mutationFn:async()=>{let e=await GA.signIn.passkey();if(e?.error)throw Error(e.error.message||`Passkey authentication failed`);return e},onSuccess:()=>{e.navigate({to:`/dashboard`})},onError(e){console.error(`Passkey login error:`,e)}}),loginWithSocial:Dp({mutationFn:async({provider:e,callbackURL:n})=>{t.capture(`user_logged_in`,{method:e});let r=await GA.signIn.social({provider:e,callbackURL:n||`/dashboard`});if(r.error)throw Error(r.error.message||`Social authentication failed`);return r},onError(e){console.error(`Social login error:`,e)}})}},KK=()=>{let e=dp(),t=Tu(),n=kw();return Dp({mutationFn:async()=>await GA.signOut(),onSettled:async()=>{n.capture(`user_logged_out`),n.reset(),e.removeQueries({queryKey:UK.session}),await t.navigate({to:`/login`})}})},qK=()=>({forgotPassword:Dp({mutationFn:async({email:e})=>await GA.requestPasswordReset({email:e,redirectTo:`/reset-password`})}),sendOtp:Dp({mutationFn:async()=>await GA.twoFactor.sendOtp()}),verifyOtp:Dp({mutationFn:async({code:e})=>await GA.twoFactor.verifyOtp({code:e})}),resetPassword:Dp({mutationFn:async({newPassword:e,token:t})=>await GA.resetPassword({newPassword:e,token:t})}),verifyTwoFactor:Dp({mutationFn:async({code:e})=>await GA.twoFactor.verifyTotp({code:e})}),getTotpUri:Dp({mutationFn:async({password:e})=>{let t=await GA.twoFactor.getTotpUri({password:e});if(t.error)throw Error(t.error.message||`Failed to get TOTP URI`);return t}}),enableTwoFactor:Dp({mutationFn:async({password:e})=>{let t=await GA.twoFactor.enable({password:e});if(t.error)throw Error(t.error.message||`Failed to enable two-factor authentication`);return t}}),disableTwoFactor:Dp({mutationFn:async({password:e})=>{let t=await GA.twoFactor.disable({password:e});if(t.error)throw Error(t.error.message||`Failed to disable two-factor authentication`);return t}}),verifyTotpForEnable:Dp({mutationFn:async({code:e})=>{let t=await GA.twoFactor.verifyTotp({code:e});if(t.error)throw Error(t.error.message||`Invalid TOTP code`);return t}}),sendVerificationEmail:Dp({mutationFn:async({email:e})=>await GA.sendVerificationEmail({email:e})}),verifyEmail:Dp({mutationFn:async({token:e})=>await GA.verifyEmail({query:{token:e}})}),revokeSession:Dp({mutationFn:async({token:e})=>await GA.revokeSession({token:e})}),signOut:Dp({mutationFn:async()=>await GA.signOut()})}),JK=[{h:`Product`,l:[{label:`How it works`,to:`/`,hash:`how`},{label:`Pricing`,to:`/pricing`},{label:`Cases`,to:`/`,hash:`cases`},{label:`AI Tools Hub`,to:`/ai-tools`},{label:`Full FAQ`,to:`/faq`}]},{h:`Company`,l:[{label:`About`,to:`/about`},{label:`Investors`,to:`/investors`},{label:`Realtors`,to:`/agents`},{label:`Articles`,to:`/articles`},{label:`Privacy`,to:`/privacy`},{label:`Terms`,to:`/tos`}]},{h:`Trust`,l:[{label:`GDPR & data`,to:`/privacy`},{label:`Cookie policy`,to:`/privacy`,hash:`cookies`}]}];function YK(){let e=new Date().getFullYear();return(0,z.jsx)(`footer`,{className:`border-t border-border bg-muted/40`,children:(0,z.jsxs)(`div`,{className:`mx-auto max-w-[1200px] px-7 py-12`,children:[(0,z.jsxs)(`div`,{className:`grid gap-9 md:grid-cols-4`,children:[(0,z.jsxs)(`div`,{className:`md:col-span-1`,children:[(0,z.jsxs)(B,{to:`/`,className:`flex items-center gap-2`,children:[(0,z.jsx)(SK,{src:`/ai-realty-logo.png`,alt:`AI marketing for real estate agents and real estate advertising platform`,width:512,height:512,imgClassName:`h-8 w-8 rounded-lg`}),(0,z.jsx)(`span`,{className:`font-heading font-semibold`,children:`AI Realty`})]}),(0,z.jsx)(`p`,{className:`mt-3 max-w-xs text-sm leading-relaxed text-muted-foreground`,children:`AI-driven promotion for real estate agents, agencies and developers. Transparent budgets, secure payments, measurable results.`}),(0,z.jsx)(`a`,{href:`mailto:${PD}`,className:`mt-3 inline-block text-sm text-muted-foreground hover:text-foreground`,children:PD})]}),JK.map(e=>(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`mb-2.5 text-sm font-semibold`,children:e.h}),(0,z.jsx)(`ul`,{className:`grid gap-1.5`,children:e.l.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsx)(B,{to:e.to,hash:`hash`in e?e.hash:void 0,className:`text-sm text-muted-foreground transition-colors hover:text-foreground`,children:e.label})},e.label))})]},e.h))]}),(0,z.jsxs)(`div`,{className:`mt-8 flex flex-col items-center justify-between gap-2 border-t border-border pt-4 text-xs text-muted-foreground md:flex-row`,children:[(0,z.jsxs)(`span`,{children:[`© `,e,` AI Realty Global`]}),(0,z.jsx)(`a`,{href:`https://airealty.global`,className:`hover:text-foreground`,children:`airealty.global`})]})]})})}function XK({activePath:e}={}){let[t,n]=(0,R.useState)(!1),{t:r}=xE(),{data:i}=WK(),a=[{type:`hash`,label:r(`NAV_HOW_IT_WORKS`),hash:`how`},{type:`hash`,label:r(`NAV_CASES`),hash:`cases`},{type:`route`,label:r(`NAV_PRICING`),to:`/pricing`,active:e===`/pricing`},{type:`route`,label:`Find agents`,to:`/agents`,active:e===`/agents`},{type:`route`,label:`For Realtors`,to:`/agents/for-realtors`,active:e===`/agents/for-realtors`}],o=[{type:`route`,label:`AI Tools`,to:`/ai-tools`,active:e===`/ai-tools`||e?.startsWith(`/ai-tools/`)},{type:`route`,label:r(`NAV_INVESTORS`),to:`/investors`,active:e===`/investors`},{type:`route`,label:r(`NAV_ARTICLES`),to:`/articles`,active:e===`/articles`||e?.startsWith(`/articles/`)},{type:`route`,label:r(`NAV_ABOUT`),to:`/about`,active:e===`/about`}],s=[...a,...o],c=e=>e?`whitespace-nowrap rounded-full px-3 py-2 font-medium text-foreground`:`whitespace-nowrap rounded-full px-3 py-2 transition-colors hover:bg-muted hover:text-foreground`,l=(e,t)=>
67{let n=c(e.type===`route`?e.active:!1);return e.type===`hash`?(0,z.jsx)(B,{to:`/`,hash:e.hash,className:n,onClick:t,children:e.label},e.hash):(0,z.jsx)(B,{to:e.to,hash:e.hash,className:n,onClick:t,children:e.label},e.to)};return(0,z.jsx)(`header`,{className:`sticky top-0 z-50 border-b border-border/60 bg-background/85 backdrop-blur`,children:(0,z.jsxs)(`div`,{className:`mx-auto flex h-16 max-w-[1280px] items-center gap-4 px-5 lg:gap-6 lg:px-7`,children:[(0,z.jsxs)(B,{to:`/`,className:`flex min-w-[150px] shrink-0 items-center gap-2`,children:[(0,z.jsx)(SK,{src:`/ai-realty-logo.png`,alt:`AI real estate tools and real estate lead generation platform`,width:512,height:512,imgClassName:`h-9 w-9 rounded-lg object-cover`,loading:`eager`,fetchPriority:`high`}),(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-col leading-tight`,children:[(0,z.jsx)(`span`,{className:`whitespace-nowrap font-heading text-lg font-semibold`,children:`AI Realty`}),(0,z.jsx)(`span`,{className:`text-[10px] font-medium uppercase tracking-wider text-primary`,children:`Ads in 2 min`})]})]}),(0,z.jsxs)(`nav`,{className:`hidden min-w-0 flex-1 items-center justify-center gap-2 text-sm font-medium text-muted-foreground lg:flex`,children:[a.map(e=>l(e)),(0,z.jsxs)(`div`,{className:`group relative`,children:[(0,z.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1 whitespace-nowrap rounded-full px-3 py-2 text-sm font-medium transition-colors hover:bg-muted hover:text-foreground`,children:[`More `,(0,z.jsx)(iM,{className:`h-3.5 w-3.5`})]}),(0,z.jsx)(`div`,{className:`invisible absolute left-1/2 top-full z-50 w-44 -translate-x-1/2 pt-2 opacity-0 transition-all group-hover:visible group-hover:opacity-100 group-focus-within:visible group-focus-within:opacity-100`,children:(0,z.jsx)(`div`,{className:`grid gap-1 rounded-lg border border-border bg-popover p-2 text-popover-foreground shadow-lg`,children:o.map(e=>(0,z.jsx)(`div`,{className:`px-1`,children:l(e)},e.type===`route`?e.to:e.hash))})})]})]}),(0,z.jsxs)(`div`,{className:`ml-auto hidden shrink-0 items-center gap-2 md:flex`,children:[(0,z.jsx)(PK,{}),i?.user?(0,z.jsx)(nK,{size:`sm`,asChild:!0,children:(0,z.jsxs)(B,{to:`/dashboard`,children:[`Dashboard `,(0,z.jsx)(eM,{className:`ml-1.5 h-3.5 w-3.5`})]})}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(nK,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,z.jsx)(B,{to:`/login`,children:r(`PUBLIC_SIGN_IN`)})}),(0,z.jsx)(nK,{size:`sm`,asChild:!0,children:(0,z.jsxs)(B,{to:`/login`,children:[`Start free `,(0,z.jsx)(eM,{className:`ml-1.5 h-3.5 w-3.5`})]})})]})]}),(0,z.jsx)(`div`,{className:`ml-auto md:hidden`,children:(0,z.jsxs)(FK,{open:t,onOpenChange:n,children:[(0,z.jsx)(IK,{asChild:!0,children:(0,z.jsx)(nK,{size:`icon`,variant:`ghost`,"aria-label":`Open menu`,children:(0,z.jsx)(pM,{className:`h-5 w-5`})})}),(0,z.jsx)(zK,{side:`right`,className:`w-[300px]`,children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-6 px-5 pt-6`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsxs)(B,{to:`/`,className:`flex items-center gap-2`,onClick:()=>n(!1),children:[(0,z.jsx)(SK,{src:`/ai-realty-logo.png`,alt:`AI real estate tools and real estate advertising platform`,width:512,height:512,imgClassName:`h-8 w-8 rounded-lg`}),(0,z.jsx)(`span`,{className:`font-heading font-semibold`,children:`AI Realty`})]}),(0,z.jsx)(PK,{})]}),(0,z.jsxs)(`nav`,{className:`flex flex-col gap-2`,children:[s.map(e=>(0,z.jsx)(nK,{variant:`ghost`,className:`justify-start`,asChild:!0,children:e.type===`hash`?(0,z.jsx)(B,{to:`/`,hash:e.hash,onClick:()=>n(!1),children:e.label}):(0,z.jsx)(B,{to:e.to,onClick:()=>n(!1),children:e.label})},e.type===`route`?e.to:e.hash)),(0,z.jsx)(nK,{className:`mt-2 w-full`,asChild:!0,children:i?.user?(0,z.jsx)(B,{to:`/dashboard`,onClick:()=>n(!1),children:`Dashboard`}):(0,z.jsx)(B,{to:`/login`,onClick:()=>n(!1),children:r(`PUBLIC_START_PROMOTION`)})})]})]})})]})})]})})}var ZK=20;function QK(e){return`${e.toLocaleString(`en-US`)} agent${e===1?``:`s`}`}function $K({country:e,city:t,agentCount:n}){let r=`${t}, ${e}`;return(0,z.jsxs)(B,{to:`/$countrySlug/$citySlug/agents`,params:{countrySlug:Nj(e)||`global`,citySlug:Nj(t)||`all-cities`},className:`group flex min-h-[200px] flex-col justify-between rounded-[20px] border-2 border-dashed border-primary/30 bg-primary/5 p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:border-primary/50 hover:bg-primary/10 hover:shadow-md`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-primary/15 text-primary`,children:(0,z.jsx)(fM,{className:`h-5 w-5`})}),(0,z.jsx)(`p`,{className:`text-xs font-medium uppercase tracking-wider text-primary`,children:`Local directory`}),(0,z.jsxs)(`h3`,{className:`mt-1 font-heading text-lg font-bold leading-snug`,children:[`All agents in `,r]}),(0,z.jsx)(`p`,{className:`mt-2 text-sm leading-relaxed text-muted-foreground`,children:`Browse the dedicated page for real estate agents serving this area — full profiles, filters and local market context.`})]}),(0,z.jsxs)(`div`,{className:`mt-4 flex items-center justify-between gap-2`,children:[n===void 0?(0,z.jsx)(`span`,{}):(0,z.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:QK(n)}),(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-sm font-semibold text-primary`,children:[`View local directory`,(0,z.jsx)(oM,{className:`h-4 w-4 transition-transform group-hover:translate-x-0.5`})]})]})]})}function eq({countries:e}){return e.length===0?null:(0,z.jsx)(`section`,{id:`browse-by-location`,className:`border-b py-14`,children:(0,z.jsxs)(`div`,{className:`mx-auto max-w-[1200px] px-4`,children:[(0,z.jsxs)(`div`,{className:`mb-8 max-w-2xl`,children:[(0,z.jsxs)(`div`,{className:`mb-3 inline-flex items-center gap-2 rounded-full border border-primary/20 bg-primary/10 px-3 py-1.5 text-xs font-medium text-primary`,children:[(0,z.jsx)(lM,{className:`h-3.5 w-3.5`}),`Browse by location`]}),(0,z.jsx)(`h2`,{className:`font-heading text-2xl font-bold md:text-3xl`,children:`Find real estate agents by country and city`}),(0,z.jsx)(`p`,{className:`mt-3 text-sm leading-relaxed text-muted-foreground`,children:`Explore local realtor directories by geography. Each link o
67pens a dedicated page for agents in that country or city.`})]}),(0,z.jsx)(`div`,{className:`grid gap-6 lg:grid-cols-2`,children:e.map(e=>{let t=e.cities.slice(0,ZK),n=e.cities.length>ZK;return(0,z.jsxs)(`article`,{className:`rounded-[20px] border border-border bg-card p-6 shadow-sm`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h3`,{className:`font-heading text-xl font-bold`,children:(0,z.jsx)(B,{to:`/$countrySlug/agents`,params:{countrySlug:e.slug},className:`transition-colors hover:text-primary`,children:e.country})}),(0,z.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:QK(e.agentCount)})]}),(0,z.jsxs)(B,{to:`/$countrySlug/agents`,params:{countrySlug:e.slug},className:`inline-flex items-center gap-1 text-sm font-medium text-primary transition-colors hover:text-primary/80`,children:[`View country page`,(0,z.jsx)(oM,{className:`h-4 w-4`})]})]}),t.length>0?(0,z.jsx)(`ul`,{className:`mt-5 grid gap-2 sm:grid-cols-2`,children:t.map(t=>(0,z.jsx)(`li`,{children:(0,z.jsxs)(B,{to:`/$countrySlug/$citySlug/agents`,params:{countrySlug:e.slug,citySlug:t.slug},className:`flex items-center justify-between gap-2 rounded-lg border border-border bg-muted/30 px-3 py-2 text-sm transition-colors hover:border-primary/30 hover:bg-primary/5`,children:[(0,z.jsxs)(`span`,{className:`inline-flex min-w-0 items-center gap-1.5`,children:[(0,z.jsx)(fM,{className:`h-3.5 w-3.5 shrink-0 text-muted-foreground`}),(0,z.jsx)(`span`,{className:`truncate font-medium`,children:t.city})]}),(0,z.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground`,children:t.agentCount})]})},t.slug))}):null,n?(0,z.jsx)(`p`,{className:`mt-4`,children:(0,z.jsxs)(B,{to:`/$countrySlug/agents`,params:{countrySlug:e.slug},className:`inline-flex items-center gap-1 text-sm font-medium text-primary transition-colors hover:text-primary/80`,children:[`View all cities in `,e.country,(0,z.jsx)(oM,{className:`h-4 w-4`})]})}):null]},e.slug)})})]})})}function tq({country:e,cities:t}){if(t.length===0)return null;let n=Nj(e)||`global`;return(0,z.jsx)(`section`,{className:`border-b bg-muted/20 py-10`,children:(0,z.jsxs)(`div`,{className:`mx-auto max-w-[1200px] px-4`,children:[(0,z.jsxs)(`h2`,{className:`font-heading text-2xl font-bold`,children:[`Browse agents by city in `,e]}),(0,z.jsxs)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:[t.length.toLocaleString(`en-US`),` cities with listed realtor profiles`]}),(0,z.jsx)(`ul`,{className:`mt-6 grid gap-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4`,children:t.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsxs)(B,{to:`/$countrySlug/$citySlug/agents`,params:{countrySlug:n,citySlug:e.slug},className:`flex items-center justify-between gap-2 rounded-lg border border-border bg-card px-3 py-2.5 text-sm shadow-sm transition-colors hover:border-primary/30 hover:bg-primary/5`,children:[(0,z.jsxs)(`span`,{className:`inline-flex min-w-0 items-center gap-1.5`,children:[(0,z.jsx)(fM,{className:`h-3.5 w-3.5 shrink-0 text-muted-foreground`}),(0,z.jsx)(`span`,{className:`truncate font-medium`,children:e.city})]}),(0,z.jsx)(`span`,{className:`shrink-0 rounded-full border border-border bg-muted px-2 py-0.5 text-[11px] text-muted-foreground`,children:e.agentCount})]})},e.slug))})]})})}var nq=`all`,rq=[{question:`How do I find the best real estate agent near me?`,answer:`Use the AI Realty directory filters by country, city, state and specialty. GEO-structured profiles help you compare real estate agents by location, local expertise and service focus before sending a request.`},{question:`Can AI Realty help me find a realtor in Lisbon, Madrid, Barcelona or Algarve?`,answer:`Yes. The directory is built for geographic search, so clients can look for real estate agents in specific cities, regions and countries. Current coverage focuses on Portugal and Spain, with more markets added over time.`},{question:`Why is GEO important when choosing a real estate agent?`,answer:`Real estate decisions are local. GEO data helps match clients with agents who understand the city, district, property type, buyer profile, language needs and local transaction process.`},{question:`Are the realtors in the directory verified?`,answer:`Profiles are reviewed before publication, and agents can improve trust signals by completing profile details, adding company information, documents, specialties, reviews and local market content.`},{question:`What should I compare before contacting a real estate agent?`,answer:`Compare the agent location, company, languages, specialty, profile completeness and whether the profile answers your exact need: buying, selling, relocation, investment, new development or luxury property.`},{question:`Can I send one request and be matched with a relevant agent?`,answer:`Yes. Describe your property goal, location, budget, timing and preferred contact method. AI Realty prepares the request for the most relevant available agents and keeps the process client-friendly.`},{question:`Does the directory work for international buyers?`,answer:`Yes. International buyers can search by country, city and language, then contact agents who understand relocation, remote viewings, investment properties and cross-border buyer questions.`},{question:`How do AI and search engines understand these realtor profiles?`,answer:`AI Realty uses structured profile data, geographic fields, internal links and clear page content so Google, AI Overviews and assistant-style search can better understand which agents serve each location and specialty.`}];function iq(){aK(`DIRECTORY_META_TITLE`,`DIRECTORY_META_DESC`);let{t:e}=xE(),t=eg(),[n,r]=(0,R.useState)(``),[i,a]=(0,R.useState)(nq),[o,s]=(0,R.useState)(nq),[c,l]=(0,R.useState)(nq),[u,d]=(0,R.useState)(nq),[f,p]=(0,R.useState)(1),m=i!==nq&&o!==nq,{data:h}=Ep(t.agents.listFilterOptions.queryOptions()),{data:g}=Ep(t.agents.listLocationIndex.queryOptions()),{data:_,isLoading:v}=Ep(t.agents.list.queryOptions({input:{page:m?1:f,limit:m?5:30,search:n||void 0,country:i===nq?void 0:i,city:o===nq?void 0:o,state:c===nq?void 0:c,specialty:u===nq?void 0:u}})),y=_?.items??[],b=_?.pagination,x=m?y.slice(0,5):y,S=()=>p(1);return(0,z.jsxs)(`div`,{className:`flex min-h-screen flex-col bg-background`,children:[(0,z.jsx)(XK,{}),(0,z.jsxs)(`main`,{className:`flex-1`,children:[(0,z.jsx)(`section`,{className:`border-b bg-muted/30 py-12 md:py-16`,children:(0,z.jsxs)(`div`,{className:`mx-auto max-w-[1200px] px-4`,children:[(0,z.jsxs)(`div`,{className:`mx-auto max-w-2xl text-center`,children:[(0,z.jsx)(`span`,{className:`mb-3 inline-block rounded-full border border-primary/20 bg-primary/10 px-3 py-1 text-xs font-medium uppercase tracking-wider text-primary`,children:e(`DIRECTORY_HERO_BADGE`)}),(0,z.jsx)(`h1`,{className:`font-heading text-balance text-3xl font-bold leading-tight sm:text-4xl md:text-5xl`,children:e(`DIRECTORY_HERO_TITLE`)}),(0,z.jsx)(`p`,{className:`mt-4 text-base text-muted-foreground`,children:e(`DIRECTORY_HERO_DESC`)})]}),(0,z.jsxs)(`div`,{className:`mx-auto mt-8 flex max-w-3xl flex-wrap items-center justify-center gap-x-6 gap-y-2 text-xs text-muted-foreground`,children:[(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,z.jsx)(sM,{className:`h-3.5 w-3.5 text-green-600`}),` `,e(`DIRECTORY_TRUST_FREE`)]}),(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,z.jsx)(gM,{className:`h-3.5 w-3.5 text-green-600`}),` `,e(`DIRECTORY_TRUST_VERIFIED`)]}),(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,z.jsx)(dM,{className:`h-3.5 w-3.5 text-green-600`}),` `,e(`DIRECTORY_TRUST_REPLY`)]})]}),(0,z.jsx)(`div`,{className:`mx-auto mt-8 max-w-3xl rounded-[20px] border border-border bg-card p-5 shadow-sm md:p-6`,children:(0,z.jsx)(xK,{})})]})}),(0,z.jsx)(`section`,{id:`directory-how`,className:`border-b py-14`,children:(0,z.jsx)(`div`,{className:`mx-auto max-w-[1200px] px-4`,children:(0,z.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,z.jsxs)(`article`,{className:`rounded-[20px] border border-border bg-card p-6 shadow-sm`,children:[(0,z.jsx)(`p`,{className:`mb-2 text-xs font-medium uppercase tracking-wider text-primary`,children:e(`DIRECTORY_HOW_FOR_CLIENTS_KICKER`)}),(0,z.jsx)(`h2`,{className:`mb-2 font-heading text-xl font-bold`,children:e(`DIRECTORY_HOW_FOR_CLIENTS_TITLE`)}),(0,z.jsx)(`p`,{className:`text-[14px] leading-relaxed text-muted-foreground`,children:e(`DIRECTORY_HOW_FOR_CLIENTS_DESC`)})]}),(0,z.jsxs)(`article`,{id:`for-agents`,className:`rounded-[20px] border border-border bg-card p-6 shadow-sm`,children:[(0,z.jsx)(`p`,{className:`mb-2 text-xs font-medium uppercase tracking-wider text-primary`,children:e(`DIRECTORY_HOW_FOR_AGENTS_KICKER`)}),(0,z.jsx)(`h2`,{className:`mb-2 font-heading text-xl font-bold`,children:e(`DIRECTORY_HOW_FOR_AGENTS_TITLE`)}),(0,z.jsx)(`p`,{className:`text-[14px] leading-relaxed text-muted-foreground`,children:e(`DIRECTORY_HOW_FOR_AGENTS_DESC`)})]})]})})}),g?.countries?(0,z.jsx)(eq,{countries:g.countries}):null,(0,z.jsx)(`section`,{className:`border-b py-6`,children:(0,z.jsxs)(`div`,{className:`mx-auto max-w-[1200px] px-4`,children:[(0,z.jsx)(`h2`,{className:`mb-4 font-heading text-lg font-semibold`,children:e(`DIRECTORY_FILTERS_TITLE`)}),(0,z.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-[1fr_repeat(4,minmax(140px,180px))]`,children:[(0,z.jsxs)(`div`,{className:`relative`,children:[(0,z.jsx)(hM,{className:`absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground`}),(0,z.jsx)(rK,{placeholder:e(`DIRECTORY_FILTERS_SEARCH`),value:n,onChange:e=>{r(e.target.value),S()},className:`pl-9`})]}),(0,z.jsxs)(oK,{value:i,onValueChange:e=>{a(e),s(nq),l(nq),S()},children:[(0,z.jsx)(cK,{children:(0,z.jsx)(sK,{placeholder:e(`DIRECTORY_FILTERS_ANY_COUNTRY`)})}),(0,z.jsxs)(lK,{children:[(0,z.jsx)(uK,{value:nq,children:e(`DIRECTORY_FILTERS_ANY_COUNTRY`)}),h?.countries?.map(e=>(0,z.jsx)(uK,{value:e,children:e},e))]})]}),(0,z.jsxs)(oK,{value:o,onValueChange:e=>{s(e),S()},children:[(0,z.jsx)(cK,{children:(0,z.jsx)(sK,{placeholder:e(`DIRECTORY_FILTERS_ANY_CITY`)})}),(0,z.jsxs)(lK,{className:`max-h-[300px]`,children:[(0,z.jsx)(uK,{value:nq,children:e(`DIRECTORY_FILTERS_ANY_CITY`)}),h?.cities?.map(e=>(0,z.jsx)(uK,{value:e,children:e},e))]})]}),(0,z.jsxs)(oK,{value:c,onValueChange:e=>{l(e),S()},children:[(0,z.jsx)(cK,{children:(0,z.jsx)(sK,{placeholder:e(`DIRECTORY_FILTERS_ANY_STATE`)})}),(0,z.jsxs)(lK,{className:`max-h-[300px]`,children:[(0,z.jsx)(uK,{value:nq,children:e(`DIRECTORY_FILTERS_ANY_STATE`)}),h?.states?.map(e=>(0,z.jsx)(uK,{value:e,children:e},e))]})]}),(0,z.jsxs)(oK,{value:u,onValueChange:e=>{d(e),S()},children:[(0,z.jsx)(cK,{children:(0,z.jsx)(sK,{placeholder:e(`DIRECTORY_FILTERS_ANY_SPECIALTY`)})}),(0,z.jsxs)(lK,{children:[(0,z.jsx)(uK,{value:nq,children:e(`DIRECTORY_FILTERS_ANY_SPECIALTY`)}),h?.specialties?.map(e=>(0,z.jsx)(uK,{value:e,children:e},e))]})]})]}),b?(0,z.jsxs)(`p`,{className:`mt-3 text-sm text-muted-foreground`,children:[b.total.toLocaleStr
67ing(`en-US`),` `,e(`DIRECTORY_RESULTS_HINT`)]}):null]})}),(0,z.jsx)(`section`,{className:`py-10`,children:(0,z.jsxs)(`div`,{className:`mx-auto max-w-[1200px] px-4`,children:[m?(0,z.jsxs)(`div`,{className:`mb-6`,children:[(0,z.jsxs)(`h2`,{className:`font-heading text-2xl font-bold`,children:[`Agents in `,o,`, `,i]}),(0,z.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`Preview of local specialists. Open the dedicated directory page to browse every agent in this area.`})]}):(0,z.jsx)(`h2`,{className:`mb-6 font-heading text-2xl font-bold`,children:e(`DIRECTORY_TOP_REALTORS`)}),v?(0,z.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3`,children:Array.from({length:6}).map((e,t)=>(0,z.jsx)(pK,{className:`h-[200px] w-full rounded-[20px]`},t))}):m?(0,z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3`,children:[x.map(e=>(0,z.jsx)(uq,{agent:e},e.id)),(0,z.jsx)($K,{country:i,city:o,agentCount:b?.total})]}):y.length===0?(0,z.jsxs)(`div`,{className:`py-16 text-center`,children:[(0,z.jsx)(vM,{className:`mx-auto h-12 w-12 text-muted-foreground/50`}),(0,z.jsx)(`h3`,{className:`mt-4 text-lg font-semibold`,children:e(`DIRECTORY_NO_RESULTS`)}),(0,z.jsx)(`p`,{className:`mt-1 text-muted-foreground`,children:e(`DIRECTORY_NO_RESULTS_HINT`)})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3`,children:y.map(e=>(0,z.jsx)(uq,{agent:e},e.id))}),b&&b.totalPages>1?(0,z.jsxs)(`div`,{className:`mt-10 flex items-center justify-center gap-2`,children:[(0,z.jsx)(nK,{variant:`outline`,size:`sm`,onClick:()=>p(e=>Math.max(1,e-1)),disabled:f<=1,children:(0,z.jsx)(aM,{className:`h-4 w-4`})}),(0,z.jsxs)(`span`,{className:`text-sm text-muted-foreground`,children:[`Page `,f,` of `,b.totalPages]}),(0,z.jsx)(nK,{variant:`outline`,size:`sm`,onClick:()=>p(e=>Math.min(b.totalPages,e+1)),disabled:f>=b.totalPages,children:(0,z.jsx)(oM,{className:`h-4 w-4`})})]}):null]})]})}),(0,z.jsx)(lq,{}),(0,z.jsx)(cq,{})]}),(0,z.jsx)(CK,{})]})}function aq(e,t){let n=[...new Set([1,e-1,e,e+1,t])].filter(e=>e>=1&&e<=t).sort((e,t)=>e-t),r=[],i;for(let t of n)i!==void 0&&t-i>1&&r.push(t>e?`gap-end`:`gap-start`),r.push(t),i=t;return r}function oq({countrySlug:e,citySlug:t,page:n=1}){let r=eg(),{data:i}=Ep(r.agents.listFilterOptions.queryOptions()),{data:a}=Ep(r.agents.listLocationIndex.queryOptions()),o=Rj(i?.countries,e)||Pj(e),s=t===`all-cities`?void 0:Rj(i?.cities,t)||Pj(t),c=zj(o,s),{data:l,isLoading:u}=Ep(r.agents.list.queryOptions({input:{page:n,limit:30,country:o,...s?{city:s}:{}}})),d=l?.items??[],f=l?.pagination,p=a?.countries?.find(t=>t.slug===e||t.country===o)??null,m=t===`all-cities`;return(0,z.jsxs)(`div`,{className:`flex min-h-screen flex-col bg-background`,children:[(0,z.jsx)(XK,{}),(0,z.jsxs)(`main`,{className:`flex-1`,children:[(0,z.jsx)(sq,{profile:c}),(0,z.jsx)(`section`,{className:`border-b bg-muted/20 py-6`,children:(0,z.jsxs)(`div`,{className:`mx-auto flex max-w-[1200px] flex-wrap items-center justify-between gap-3 px-4`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`text-sm font-medium text-primary`,children:`Local directory`}),(0,z.jsxs)(`h2`,{className:`font-heading text-2xl font-bold`,children:[`Real estate agents in `,c.city?`${c.city}, `:``,c.country]}),f?(0,z.jsxs)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:[f.total.toLocaleString(`en-US`),` listed realtor profiles`]}):null]}),(0,z.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,z.jsx)(nK,{variant:`outline`,asChild:!0,children:(0,z.jsx)(B,{to:`/agents`,children:`All agents`})}),(0,z.jsx)(nK,{variant:`outline`,asChild:!0,children:(0,z.jsx)(B,{to:`/$countrySlug/agents`,params:{countrySlug:e},children:`Country page`})})]})]})}),m&&p?(0,z.jsx)(tq,{country:p.country,cities:p.cities}):null,(0,z.jsx)(`section`,{className:`py-10`,children:(0,z.jsx)(`div`,{className:`mx-auto max-w-[1200px] px-4`,children:u?(0,z.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3`,children:Array.from({length:6}).map((e,t)=>(0,z.jsx)(pK,{className:`h-[200px] w-full rounded-[20px]`},t))}):d.length===0?(0,z.jsxs)(`div`,{className:`rounded-[20px] border border-border bg-card p-10 text-center`,children:[(0,z.jsx)(vM,{className:`mx-auto h-12 w-12 text-muted-foreground
67/50`}),(0,z.jsx)(`h3`,{className:`mt-4 text-lg font-semibold`,children:`No agents found here yet`}),(0,z.jsx)(`p`,{className:`mt-1 text-muted-foreground`,children:`Browse the full directory or send a request so AI Realty can route it to a relevant specialist.`}),(0,z.jsx)(nK,{className:`mt-5`,asChild:!0,children:(0,z.jsx)(B,{to:`/agents`,children:`Browse all agents`})})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3`,children:d.map(e=>(0,z.jsx)(uq,{agent:e},e.id))}),f&&f.totalPages>1?(0,z.jsxs)(`nav`,{"aria-label":`Directory pages`,className:`mt-10 flex flex-wrap items-center justify-center gap-2`,children:[n>1?(0,z.jsx)(nK,{variant:`outline`,size:`sm`,asChild:!0,children:(0,z.jsx)(B,{to:`/$countrySlug/$citySlug/agents`,params:{countrySlug:e,citySlug:t},search:n-1>1?{page:n-1}:{},"aria-label":`Previous page`,children:(0,z.jsx)(aM,{className:`h-4 w-4`})})}):(0,z.jsx)(nK,{type:`button`,variant:`outline`,size:`sm`,disabled:!0,"aria-label":`Previous page`,children:(0,z.jsx)(aM,{className:`h-4 w-4`})}),aq(n,f.totalPages).map(r=>r===`gap-start`||r===`gap-end`?(0,z.jsx)(`span`,{className:`px-1 text-sm text-muted-foreground`,children:`…`},r):(0,z.jsx)(nK,{variant:r===n?`default`:`outline`,size:`sm`,asChild:!0,children:(0,z.jsx)(B,{to:`/$countrySlug/$citySlug/agents`,params:{countrySlug:e,citySlug:t},search:r>1?{page:r}:{},"aria-current":r===n?`page`:void 0,"aria-label":`Page ${r}`,children:r})},r)),n<f.totalPages?(0,z.jsx)(nK,{variant:`outline`,size:`sm`,asChild:!0,children:(0,z.jsx)(B,{to:`/$countrySlug/$citySlug/agents`,params:{countrySlug:e,citySlug:t},search:{page:n+1},"aria-label":`Next page`,children:(0,z.jsx)(oM,{className:`h-4 w-4`})})}):(0,z.jsx)(nK,{type:`button`,variant:`outline`,size:`sm`,disabled:!0,"aria-label":`Next page`,children:(0,z.jsx)(oM,{className:`h-4 w-4`})})]}):null]})})}),(0,z.jsx)(`section`,{className:`border-t bg-muted/30 py-14`,children:(0,z.jsxs)(`div`,{className:`mx-auto max-w-[900px] px-4`,children:[(0,z.jsxs)(`h2`,{className:`font-heading text-3xl font-bold`,children:[`How to choose a realtor in `,c.city||c.country]}),(0,z.jsxs)(`div`,{className:`mt-5 space-y-4 text-[15px] leading-relaxed text-muted-foreground`,children:[(0,z.jsx)(`p`,{children:c.seoText}),(0,z.jsx)(`p`,{children:`Start with geography, then compare company, specialty, profile completeness and whether the agent explains the local market clearly. A strong local profile should help you understand the transaction before the first call.`}),(0,z.jsx)(`p`,{children:`AI Realty structures these pages for Google, AI search and human buyers: country, city, service focus and profile details are all connected so the right agent can be discovered from specific searches.`})]})]})})]}),(0,z.jsx)(CK,{})]})}function sq({profile:e}){return(0,z.jsx)(`section`,{className:`border-b bg-muted/30 py-12 md:py-16`,children:(0,z.jsxs)(`div`,{className:`mx-auto grid max-w-[1200px] gap-8 px-4 lg:grid-cols-[1fr_0.9fr]`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`mb-3 inline-block rounded-full border border-primary/20 bg-primary/10 px-3 py-1 text-xs font-medium uppercase tracking-wider text-primary`,children:e.city?`${e.city}, ${e.country}`:e.country}),(0,z.jsx)(`h1`,{className:`font-heading text-balance text-3xl font-bold leading-tight sm:text-4xl md:text-5xl`,children:e.headline}),(0,z.jsx)(`p`,{className:`mt-4 max-w-2xl text-base leading-relaxed text-muted-foreground`,children:e.summary}),(0,z.jsxs)(`p`,{className:`mt-4 text-sm font-medium text-foreground`,children:[`Population: `,(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:e.population})]})]}),(0,z.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:e.landmarks.slice(0,2).map(e=>(0,z.jsxs)(`figure`,{className:`overflow-hidden rounded-[20px] border border-border bg-card shadow-sm`,children:[(0,z.jsx)(`img`,{src:e.image,alt:e.alt,className:`h-56 w-full object-cover`,loading:`eager`}),(0,z.jsx)(`figcaption`,{className:`px-4 py-3 text-sm font-medium`,children:e.name})]},e.name))})]})})}function cq(){return(0,z.jsx)(`section`,{className:`border-t py-14`,children:(0,z.jsxs)(`div`,{className:`mx-auto max-w-[900px] px-4`,children:[(0,z.jsx)(`p`,{className:`mb-3 text-xs font-medium uppercase tracking-wider text-primary`,children:`Realtor directory SEO guide`}),(0,z.jsx)(`h2`,{className:`font-heading text-3xl font-bold`,children:`Find real estate agents by country, city and local expertise`}),(0,z.jsxs)(`div`,{className:`mt-5 space-y-4 text-[15px] leading-relaxed text-muted-foreground`,children:[(0,z.jsx)(`p`,{children:`AI Realty is building an indexable global realtor directory for buyers, sellers, investors and relocation clients who search with real intent: "real estate agent in Lisbon", "realtor in Madrid", "property agent for relocation in Portugal", or "who can sell my apartment in Barcelona".`}),(0,z.jsx)(`p`,{children:`Every public profile connects the agent name, country, city, company, specialty and profile quality into one structured page. This helps people compare specialists faster and gives Google, AI Overviews, ChatGPT-style search and Perplexity clearer context about who serves which market.`}),(0,z.jsx)(`p`,{children:`Use the filters above to browse all listed agents or open country and city pages for a more specific local view. When no filters are selected, the directory shows every public realtor profile available on AI Realty.`})]})]})})}function lq(){return(0,z.jsx)(`section`,{id:`directory-faq`,className:`border-t bg-muted/30 py-14`,children:(0,z.jsxs)(`div`,{className:`mx-auto grid max-w-[1200px] gap-8 px-4 lg:grid-cols-[360px_1fr]`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(`div`,{className:`mb-4 inline-flex items-center gap-2 rounded-full border border-primary/20 bg-primary/10 px-3 py-1.5 text-xs font-medium text-primary`,children:[(0,z.jsx)(cM,{className:`h-3.5 w-3.5`}),`GEO FAQ`]}
67),(0,z.jsx)(`h2`,{className:`font-heading text-2xl font-bold leading-tight md:text-3xl`,children:`Questions clients ask before choosing a realtor`}),(0,z.jsx)(`p`,{className:`mt-4 text-sm leading-relaxed text-muted-foreground`,children:`Answers for buyers and sellers who search by city, country, language and property goal. This helps clients choose faster and helps AI search understand the directory by geography.`})]}),(0,z.jsx)(`div`,{className:`space-y-3`,children:rq.map((e,t)=>(0,z.jsxs)(`details`,{className:`rounded-lg border border-border bg-card px-4 py-3 shadow-sm`,open:t===0,children:[(0,z.jsx)(`summary`,{className:`cursor-pointer text-sm font-semibold`,children:e.question}),(0,z.jsx)(`p`,{className:`mt-3 text-sm leading-relaxed text-muted-foreground`,children:e.answer})]},e.question))})]})})}function uq({agent:e}){let t=`${e.firstName[0]||``}${e.lastName[0]||``}`.toUpperCase(),n=e.profileCompleteness||0;return(0,z.jsxs)(B,{to:`/$countrySlug/$citySlug/agents/$agentSlug`,params:Ij(e),className:`group flex flex-col rounded-[20px] border border-border bg-card p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:border-primary/30 hover:shadow-md`,children:[(0,z.jsxs)(`div`,{className:`mb-4 flex items-start gap-3`,children:[(0,z.jsxs)(`div`,{className:`relative shrink-0`,children:[e.avatarUrl?(0,z.jsx)(`img`,{src:e.avatarUrl,alt:`${e.firstName} ${e.lastName}`,className:`h-12 w-12 rounded-full object-cover`}):(0,z.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold text-primary`,children:t}),e.isVerified&&(0,z.jsx)(`div`,{className:`absolute -right-0.5 -bottom-0.5 flex h-4 w-4 items-center justify-center rounded-full bg-primary ring-2 ring-background`,children:(0,z.jsx)(tM,{className:`h-2.5 w-2.5 text-white`,"aria-hidden":`true`})})]}),(0,z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,z.jsxs)(`h3`,{className:`truncate font-semibold leading-tight`,children:[e.firstName,` `,e.lastName]}),(0,z.jsx)(`p`,{className:`mt-0.5 truncate text-sm text-muted-foreground`,children:Aj(e.title)})]}),(0,z.jsxs)(`span`,{className:`shrink-0 rounded-full border border-border bg-muted px-2 py-0.5 text-[11px] font-medium text-muted-foreground`,children:[n,`%`]})]}),e.companyName?(0,z.jsxs)(`div`,{className:`mb-1.5 flex items-center gap-1.5 text-sm text-muted-foreground`,children:[(0,z.jsx)(nM,{className:`h-3.5 w-3.5 shrink-0`}),(0,z.jsx)(`span`,{className:`truncate`,children:e.companyName})]}):null,(0,z.jsxs)(`div`,{className:`flex items-center gap-1.5 text-sm text-muted-foreground`,children:[(0,z.jsx)(fM,{className:`h-3.5 w-3.5 shrink-0`}),(0,z.jsx)(`span`,{className:`truncate`,children:[e.city,e.state,e.country].filter(Boolean).join(`, `)})]}),e.industry?(0,z.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-1.5`,children:(0,z.jsx)(`span`,{className:`rounded-full border border-border bg-muted px-2 py-0.5 text-[11px] text-muted-foreground`,children:e.industry})}):null,(0,z.jsx)(`div`,{className:`mt-4 h-1 w-full overflow-hidden rounded-full bg-muted`,children:(0,z.jsx)(`div`,{className:`h-full rounded-full bg-primary transition-all`,style:{width:`${n}%`}})}),(0,z.jsx)(`p`,{className:`mt-1.5 text-[11px] text-muted-foreground`,children:`Profile completeness`})]})}var dq=5*6e4,fq=V(`/(public)/agents/`)({loader:({context:e})=>Hj(e),staleTime:dq,component:H(()=>U(()=>import(`./agents-DJBG2y1D.js`),[]),`component`),head:()=>({meta:[...ID({title:`Find Verified Real Estate Agents by City, Country and Specialty`,description:`Browse verified realtors by city, country, language and specialty. Use AI Realty GEO search to find relevant agents for buying, selling, relocation and investment.`,keywords:`find a realtor near me, real estate agents Portugal, realtors Spain, property agents Lisbon, Madrid real estate agents, Barcelona realtors, GEO realtor directory, verified realtors`,url:`/agents`,image:`https://airealty.global/air_logo_512.png`})],links:LD({url:`/agents`}),scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`CollectionPage`,name:`AI Realty Agent Directory — Find Verified Realtors in Portugal & Spain`,url:`https://airealty.global/agents`,description:`Browse verified real estate agents by city, country, language and specialty. Get matched with relevant agents for buying, selling, relocation and investment.`,inLanguage:`en`,isPartOf:{"@type":`WebSite`,name:`AI Realty`,url:`https://airealty.global`},about:{"@type":`RealEstateAgent`,areaServed:[{"@type":`Country`,name:`Portugal`}
67,{"@type":`Country`,name:`Spain`}],knowsLanguage:[`en`,`pt`,`es`]}})},{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:rq.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}}))})}]})}),pq=V(`/(public)/pt/portugal`)({beforeLoad:()=>{throw _t({to:`/$countrySlug/agents`,params:{countrySlug:`portugal`},statusCode:301})},component:H(()=>U(()=>import(`./portugal-DkHoZ4AY.js`),[]),`component`)}),mq=V(`/(public)/partners/sales-directors`)({component:H(()=>U(()=>import(`./sales-directors-nhrvvcta.js`),__vite__mapDeps([60,16,41])),`component`),head:()=>({meta:[...ID({title:`AI Realty Partner Program for Real Estate Sales Directors`,description:`Private partner program for real estate office leaders. Apply after registration, wait for approval, then access training, office pages and agent referral tools.`,keywords:`real estate partner program, sales director real estate, realtor office software, AI real estate tools for teams`,url:`/partners/sales-directors`})],links:LD({url:`/partners/sales-directors`})})}),hq=V(`/(public)/office/$officeSlug`)({loader:async({context:e,params:t})=>{let n=e.api??e.trpc;return e.queryClient.ensureQueryData(n.partners.getOfficeBySlug.queryOptions({input:{slug:t.officeSlug}}))},component:H(()=>U(()=>import(`./_officeSlug-hjtpkrmC.js`),__vite__mapDeps([61,16,41])),`component`)}),gq=e=>e.investors,_q=()=>gq(eg()),vq=e=>typeof e==`string`?e:e.name,yq=e=>e>=3,bq=e=>(e||``).toLowerCase().normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/&/g,`and`).replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``),xq=e=>
67e.split(`-`).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `),Sq=(e,t)=>{if(e)for(let n of e){let e=vq(n);if(bq(e)===t)return e}},Cq=e=>{let t=e.decisionMaker?`${e.decisionMaker} — ${e.role||`Partner`} at ${e.fundName}`:e.fundName,n=[e.city,e.country||e.region].filter(Boolean).join(`, `),r=(e.focus||[]).join(`, `)||`PropTech, marketplaces and vertical AI`,i=e.stage||`Seed`;return{title:`${t} | PropTech Investor Profile | AI Realty`,description:`${e.decisionMaker||e.fundName} is an investor in ${r} at ${i} stage. Profile compiled from public sources by AI Realty.`,keywords:[e.fundName,e.decisionMaker||void 0,`PropTech investor`,`real estate VC`,`venture capital`,i,n,`AI Realty investor directory`].filter(Boolean).join(`, `),url:`/investors/${e.slug}`,image:e.logoUrl||`https://airealty.global/air_logo_512.png`}},wq=e=>{let t=`https://airealty.global/investors/${e.slug}`,n=e.decisionMaker?`${e.decisionMaker} — ${e.role||`Partner`} at ${e.fundName}`:e.fundName,r=e.country||e.region||`Global`,i=e.country?`https://airealty.global/investors/region/${bq(e.country)}`:`https://airealty.global/investors/directory`;return[{"@context":`https://schema.org`,"@type":`ProfilePage`,"@id":t,name:n,dateModified:e.lastReviewedAt?e.lastReviewedAt.toISOString().slice(0,10):new Date().toISOString().slice(0,10),isPartOf:{"@type":`WebSite`,name:`AI Realty`,url:`https://airealty.global`},mainEntity:{"@id":`${t}#entity`}},{"@context":`https://schema.org`,"@type":e.decisionMaker?`Person`:`Organization`,"@id":`${t}#entity`,name:e.decisionMaker||e.fundName,...e.photoUrl?{image:e.photoUrl}:{},...e.decisionMaker?{jobTitle:e.role||`Partner`,worksFor:{"@type":`Organization`,name:e.fundName,...e.website?{url:e.website}:{},...e.logoUrl?{logo:e.logoUrl}:{}}}:{...e.website?{url:e.website}:{},...e.logoUrl?{logo:e.logoUrl}:{}},address:{"@type":`PostalAddress`,...e.city?{addressLocality:e.city}:{},addressCountry:r},knowsAbout:e.focus||[`PropTech`,`Real Estate`,`AI`],sameAs:[e.linkedin,e.website].filter(Boolean)},{"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Investors`,item:`https://airealty.global/investors`},{"@type":`ListItem`,position:2,name:r,item:i},{"@type":`ListItem`,position:3,name:e.fundName,item:t}]},{"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:[{"@type":`Question`,name:`What does AI Realty sell?`,acceptedAnswer:{"@type":`Answer`,text:`AI Realty sells an AI advertising platform that turns a two-minute voice description of a property into live campaigns across Instagram, TikTok, YouTube and Facebook, plus a global directory of structured real estate agent profiles built to be found in Google and cited by AI answer engines.`}},{"@type":`Question`,name:`How does AI Realty reduce customer acquisition cost over time?`,acceptedAnswer:{"@type":`Answer`,text:`Acquisition relies on owned indexed pages rather than rented paid social inventory. Paid social costs rise each year while an indexed page costs nothing to keep and accumulates authority.`}},{"@type":`Question`,name:`Is AI Realty Global raising investment?`,acceptedAnswer:{"@type":`Answer`,text:`AI Realty Global is raising 300,000 euro in its current round. Instrument, valuation and use of funds are provided in the investor deck, available by email on request.`}}]}]},Tq=({page:e=1}={})=>{let t=`PropTech Investors & Real Estate Venture Capital Directory${e>1?` (Page ${e})`:``} | AI Realty`,n=e>1?`/investors/directory?page=${e}`:`/investors/directory`;return{title:t,description:`Browse verified PropTech venture capital funds, angel investors, and real estate technology seed investors by country, stage, and focus. Compiled from public sources by AI Realty.`,keywords:[`PropTech investor directory`,`real estate VC directory`,`venture capital real estate`,`PropTech investors`,`seed real estate investors`,`vertical AI venture capital`,`AI Realty investors`].join(`, `),url:n,canonicalUrl:`/investors/directory`,image:`https://airealty.global/air_logo_512.png`}},Eq=({country:e,regionSlug:t,total:n,page:r=1})=>{let i=yq(n),a=`PropTech Investors in ${e} — Real Estate VC Directory${r>1?` (Page ${r})`:``} | AI Realty`,o=`Find PropTech venture capital funds and active investors backing real estate technology in ${e}. Browse stages, investment focus, and thesis details on AI Realty.`,s=r>1?`/investors/region/${t}?page=${r}`:`/investors/region/${t}`;return{title:a,description:o,keywords:[`PropTech investors ${e}`,`real estate VC ${e}`,`venture capital ${e}`,`PropTech directory`,`AI Realty`].join(`, `),url:s,canonicalUrl:`/investors/region/${t}`,image:`https://airealty.global/air_logo_512.png`,robots:i?`index, follow`:`noindex, follow`,isIndexed:i}},Dq=({stage:e,stageSlug:t,total:n,page:r=1})=>{let i=yq(n),a=`${e} PropTech Investors & Real Estate VCs${r>1?` (Page ${r})`:``} | AI Realty`,o=`Browse active ${e} venture capital firms and investors investing in PropTech, real estate software, and vertical AI. Compiled by AI Realty.`,s=r>1?`/investors/stage/${t}?page=${r}`:`/investors/stage/${t}`;return{title:a,description:o,keywords:[`${e} PropTech investors`,`${e} real estate VC`,`PropTech seed capital`,`real estate technology funds`,`AI Realty directory`].join(`, `),url:s,canonicalUrl:`/investors/stage/${t}`,image:`https://airealty.global/air_logo_512.png`,robots:i?`index, follow`:`noindex, follow`,isIndexed:i}},Oq=({title:e,description:t,url:n,items:r,breadcrumbs:i})=>{let a=[{"@context":`https://schema.org`,"@type":`CollectionPage`,name:e,description:t,url:`https://airealty.global${n}`,inLanguage:`en`,isPartOf:{"@type":`WebSite`,name:`AI Realty`,url:`https://airealty.global`},mainEntity:{"@type":`ItemList`,numberOfItems:r.length,itemListElement:r.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.decisionMaker||e.fundName,url:`https://airealty.global/investors/${e.slug}`}))}}];return i&&i.length>0&&a.push({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:i.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,item:`https://airealty.global${e.url}`}))}),a},kq=async(e,t={})=>{let n=e.api??e.trpc;if(!n)return;let r=gq(n);return await e.queryClient.ensureQueryData(r.listFilterOptions.queryOptions()),e.queryClient.ensureQueryData(r.list.queryOptions({input:{page:t.page??1,limit:t.limit??30,country:t.country,stage:t.stage,focus:t.focus,search:t.search}}))},Aq=async(e,t)=>{let n=e.api??e.trpc;if(!n)return;let r=gq(n),i=Sq((await e.queryClient.ensureQueryData(r.listFilterOptions.queryOptions()))?.countries,t.regionSlug)||xq(t.regionSlug);return e.queryClient.ensureQueryData(r.list.queryOptions({input:{page:t.page??1,limit:30,country:i}}))},jq=async(e,t)=>{let n=e.api??e.trpc;if(!n)return;let r=gq(n),i=Sq((await e.queryClient.ensureQueryData(r.listFilterOptions.queryOptions()))?.stages,t.stageSlug)||xq(t.stageSlug);return e.queryClient.ensureQueryData(r.list.queryOptions({input:{page:t.page??1,limit:30,stage:i}}))},Mq=V(`/(public)/investors/directory`)({validateSearch:e=>{let t=Number(e.page),n=typeof e.country==`string`?e.country.trim():void 0,r=typeof e.stage==`string`?e.stage.trim():void 0,i=typeof e.focus==`string`?e.focus.trim():void 0,a=typeof e.q==`string`?e.q.trim():void 0;return{page:Number.isInteger(t)&&t>1?t:void 0,country:n||void 0,stage:r||void 0,focus:i||void 0,q:a||void 0}},loaderDeps:({search:e})=>({page:e.page??1,country:e.country,stage:e.stage,focus:e.focus,search:e.q}),loader:async({context:e,deps:t})=>{let n=await kq(e,{page:t.page,limit:30,country:t.country,stage:t.stage,focus:t.focus,search:t.search});return{page:t.page,items:n?.items??[],total:n?.total??n?.pagination?.total??0}},staleTime:dq,head:({loaderData:e})=>{let t=Tq({page:e?.page??1}
67),n=e?.items??[],r=Oq({title:t.title,description:t.description,url:t.url,items:n,breadcrumbs:[{name:`Investors`,url:`/investors`},{name:`Directory`,url:`/investors/directory`}]}).map(e=>({type:`application/ld+json`,children:JSON.stringify(e)}));return{meta:[...ID({title:t.title,description:t.description,keywords:t.keywords,url:t.url,image:t.image})],links:LD({url:t.canonicalUrl}),scripts:r}},component:H(()=>U(()=>import(`./directory-CpTINN7f.js`),__vite__mapDeps([62,63,16,64])),`component`)}),Nq=V(`/(public)/investors/$slug`)({staleTime:dq,loader:async({params:e,context:t})=>{if(e.slug===`directory`||e.slug===`region`||e.slug===`stage`)throw st();try{let n=t.api??t.trpc,[r,i]=await Promise.all([t.queryClient.ensureQueryData(n.investors.getBySlug.queryOptions({input:{slug:e.slug}})),t.queryClient.ensureQueryData(n.investors.getRelated.queryOptions({input:{slug:e.slug,limit:12}}))]);if(!r)throw st();return{investor:r,related:i??[]}}catch{throw st()}},head:({loaderData:e})=>{let t=e?.investor;if(!t)return{meta:[{name:`robots`,content:`noindex, follow`},...ID({title:`Investor Profile | AI Realty`,description:`Find PropTech investors and real estate venture funds on AI Realty.`,url:`/investors`})],links:LD({url:`/investors`})};let n=Cq(t),r=wq(t).map(e=>({type:`application/ld+json`,children:JSON.stringify(e)}));return{meta:[...ID({title:n.title,description:n.description,keywords:n.keywords,url:n.url,image:n.image})],links:LD({url:n.url}),scripts:r}},component:H(()=>U(()=>import(`./_slug-D8JLU7XP.js`),__vite__mapDeps([65,64,54])),`component`)}),Pq=V(`/(public)/articles/$articleSlug`)({component:H(()=>U(()=>import(`./_articleSlug-COBUDJgb.js`),__vite__mapDeps([66,31,3,6,32,33])),`component`),head:async({params:e})=>{let{getArticleBySlug:t}=await U(async()=>{let{getArticleBySlug:e}=await import(`./articles-data-Cg62xW6V.js`).then(e=>e.n);return{getArticleBySlug:e}},[]),n=t(e.articleSlug);if(!n)return{meta:[...ID({title:`Article Not Found — AI Realty`,description:`The requested AI Realty article could not be found.`,url:`/articles`})],links:LD({url:`/articles`})};let r=`/articles/${n.slug}`,i=`https://airealty.global${n.image}`;return{meta:[...ID({title:n.seo.title,description:n.seo.description,keywords:n.seo.keywords,image:i,url:r,type:`article`}),{property:`article:published_time`,content:n.publishedAt},{property:`article:modified_time`,content:n.updatedAt},{property:`article:section`,content:n.category}],links:LD({url:r}),scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@graph":[{"@type":`Article`,headline:n.title,description:n.seo.description,image:i,url:`https://airealty.global${r}`,datePublished:n.publishedAt,dateModified:n.updatedAt,author:{"@type":`Person`,name:n.author??`AI Realty Editorial`,url:`https://airealty.global/articles`},publisher:{"@type":`Organization`,name:`AI Realty`,logo:{"@type":`ImageObject`,url:`https://airealty.global/air_logo_512.png`}},articleSection:n.category,keywords:n.seo.keywords,mainEntityOfPage:`https://airealty.global${r}`},...n.faqs.length?[{"@type":`FAQPage`,mainEntity:n.faqs.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}}))}]:[]]})},{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`https://airealty.global/`},{"@type":`ListItem`,position:2,name:`Articles`,item:`https://airealty.global/articles`},{"@type":`ListItem`,position:3,name:n.title,item:`https://airealty.global${r}`}]})}]}},loader:async({params:e})=>{let{getArticleBySlug:t,loadGeneratedArticleContent:n}=await U(async()=>{let{getArticleBySlug:e,loadGeneratedArticleContent:t}=await import(`./articles-data-Cg62xW6V.js`).then(e=>e.n);return{getArticleBySlug:e,loadGeneratedArticleContent:t}},[]),r=t(e.articleSlug);if(!r)throw st();return{article:r,generatedContent:await n(e.articleSlug)}}}),Fq=V(`/(public)/ai-tools/$toolSlug`)({component:H(()=>U(()=>import(`./_toolSlug-2a-Q5Aqa.js`),__vite__mapDeps([67,57,6,58,8,59,15])),`component`),head:({params:e})=>{let t=xj(e.toolSlug);
67if(!t)return{meta:[...ID({title:`AI Tool Not Found — AI Realty`,description:`The requested real estate AI tool page could not be found.`,url:`/ai-tools`})],links:LD({url:`/ai-tools`})};let n=`/ai-tools/${t.slug}`,r=`${t.name} for Real Estate: ${t.category.shortTitle} AI Tool Review`;return{meta:[...ID({title:r,description:t.description,keywords:t.keywords.join(`, `),image:t.image,url:n,type:`article`}),{property:`article:published_time`,content:pj},{property:`article:modified_time`,content:pj},{property:`article:author`,content:fj},{property:`article:section`,content:t.category.title}],links:LD({url:n}),scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@graph":[{"@type":`Article`,headline:r,description:t.description,image:t.image,url:`https://airealty.global${n}`,datePublished:pj,dateModified:pj,author:{"@type":`Person`,name:fj,url:`https://airealty.global/about`},publisher:{"@type":`Organization`,name:`AI Realty`,logo:{"@type":`ImageObject`,url:`https://airealty.global/air_logo_512.png`}},articleSection:t.category.title,keywords:t.keywords.join(`, `),mainEntityOfPage:`https://airealty.global${n}`},{"@type":`SoftwareApplication`,name:t.name,applicationCategory:`BusinessApplication`,operatingSystem:`Web`,url:`https://airealty.global${n}`,description:t.description,offers:{"@type":`Offer`,price:`0`,priceCurrency:`USD`,availability:`https://schema.org/OnlineOnly`}},{"@type":`FAQPage`,mainEntity:t.faqs.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}}))},{"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`AI Tools Hub`,item:`https://airealty.global/ai-tools`},{"@type":`ListItem`,position:2,name:t.category.shortTitle,item:`https://airealty.global/ai-tools/category/${t.category.slug}`},{"@type":`ListItem`,position:3,name:t.name,item:`https://airealty.global${n}`}]},{"@type":`ItemList`,name:`Related ${t.category.shortTitle} AI tools`,itemListElement:wj(t).map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,url:`https://airealty.global/ai-tools/${e.slug}`}))}]})}]}},loader:({params:e})=>{let t=xj(e.toolSlug);if(!t)throw st();return t}}),Iq=V(`/(public)/agents/report-incorrect`)({component:H(()=>U(()=>import(`./report-incorrect-DnZ8bH5e.js`),__vite__mapDeps([68,69])),`component`),head:()=>({meta:[...ID({title:`Report Incorrect Information — AI Realty Agent Directory`,description:`Report incorrect or outdated information in a realtor directory profile.`,url:`/agents/report-incorrect`})],links:LD({url:`/agents/report-incorrect`})})}),Lq=V(`/(public)/agents/remove-profile`)({component:H(()=>U(()=>import(`./remove-profile-Bm4uGsmB.js`),__vite__mapDeps([70,69])),`component`),head:()=>({meta:[...ID({title:`Remove My Profile — AI Realty Agent Directory`,description:`Request removal of your realtor profile from the AI Realty agent directory.`,url:`/agents/remove-profile`})],links:LD({url:`/agents/remove-profile`})})}),Rq=V(`/(public)/agents/for-realtors`)({component:H(()=>U(()=>import(`./for-realtors-B9SXUuQP.js`),__vite__mapDeps([71,6,12,72,73])),`component`),head:()=>({meta:[...ID({title:`For Realtors — Free Agent Page & Listing Promotion | AI Realty`,description:`Claim your free agent page on AI Realty, receive inbound leads via form and WhatsApp, and promote your listings on Instagram, TikTok, YouTube and Facebook.`,url:`/agents/for-realtors`})],links:LD({url:`/agents/for-realtors`})})}),zq=V(`/(public)/agents/about`)({beforeLoad:()=>{throw _t({to:`/agents`,statusCode:301})}}),Bq=V(`/(public)/agents/$agentSlug`)({staleTime:dq,validateSearch:e=>typeof e.listing==`string`?{listing:e.listing}:{},loader:async({params:e,context:t})=>{try{let n=t.api??t.trpc,r=await t.queryClient.ensureQueryData(n.agents.getBySlug.queryOptions({input:{slug:e.agentSlug}}));if(!r)throw st();return{agent:r}}catch(e){throw e instanceof Um&&e.code===`NOT_FOUND`?st():e}},head:({params:e,loaderData:t})=>{let n=t?.agent,r=n?Fj(n):`/agents/${e.agentSlug}`;if(!n)return{meta:[{name:`robots`,content:`noindex, follow`},...ID({title:`Real Estate Agent Profile | AI Realty`,description:`Find verified real estate agents in Portugal and Spain on AI Realty. View profiles, services and contact details.`,url:r})],links:LD({url:r})};let i=Bj(n),a=`https://airealty.global/og/agents/${e.agentSlug}.png`,o=Vj(n,{faqs:[{question:`How do I find a real estate agent in ${n.city||n.country}?`,answer:`Use the directory filters to compare agents by city, specialty and language before sending a request.`},{question:`Which real estate agent works in ${n.city||n.country}?`,answer:`${i.fullName} is listed as a real estate agent for ${n.city||n.country}.`},{question:`Can I request help from a verified real estate agent?`,answer:`Yes. Use the directory request form and the nearest available verified realtor can contact you within 24 hours.`},{question:`How can I choose an agent if the rating is not filled yet?`,answer:`Compare the agent's location, company, specialty, languages and profile completeness, then request more information before cooperation.`}]}).map(e=>({type:`application/ld+json`,children:JSON.stringify(e)}));return{meta:[{name:`robots`,content:`noindex, follow`}
67,...ID({title:i.title,description:i.description,keywords:i.keywords,url:r,image:a}),{name:`twitter:image:alt`,content:`${i.fullName} — AI Realty`}],links:LD({url:r}),scripts:o}},component:H(()=>U(()=>import(`./_agentSlug-BuKOBMXw.js`),__vite__mapDeps([74,75,21,76,38,77,78,79,80,6,23,8,11,12,72,81,82,83,25,13,84,15,85,26,27,86,16,28,87,47,19,88,89])),`component`)}),Vq=V(`/dashboard/workspace/`)({component:H(()=>U(()=>import(`./workspace-BdwKg87V.js`),__vite__mapDeps([90,46,47,44,91,2,39,92,13,14,86,16,19,48,18,41,88,29,93])),`component`)}),Hq=V(`/dashboard/videos/`)({beforeLoad:()=>{throw _t({to:`/dashboard`,replace:!0})}}),Uq=V(`/dashboard/support/`)({component:H(()=>U(()=>import(`./support-Ch0baqMf.js`),__vite__mapDeps([94,21,9,11,81,83,27,87,18,41])),`component`)}),Wq=V(`/dashboard/settings/`)({component:H(()=>U(()=>import(`./settings-BrBflukQ.js`),__vite__mapDeps([95,46,47,44,38,96,1,2,43,23,97,79,39,8,10,83,13,98,87,18,40,19,48,41,88,29,93,99])),`component`)}),Gq=V(`/dashboard/publications/`)({beforeLoad:()=>{throw _t({to:`/dashboard`,replace:!0})}}),Kq=V(`/dashboard/promotions/`)({component:H(()=>U(()=>import(`./promotions-ChHy4vxT.js`),__vite__mapDeps([100,46,47,44,21,96,101,97,78,7,52,102,32,12,103,13,28,19,41,88,93])),`component`),loader:({context:e})=>{let t=e.api??e.trpc;e.queryClient.ensureQueryData(t.promotions.list.queryOptions({input:{page:1,limit:10}}))}}),qq=V(`/dashboard/notifications/`)({component:H(()=>U(()=>import(`./notifications-CV0stNRR.js`),__vite__mapDeps([104,4,12,18,41])),`component`)}),Jq=V(`/dashboard/listings/`)({component:H(()=>U(()=>import(`./listings-BhFiqg1N.js`),__vite__mapDeps([105,76,91,22,8,13,85,28,18,19,41,88])),`component`)}),Yq=V(`/dashboard/admin/`)({beforeLoad:()=>{throw _t({to:`/dashboard/admin/overview`,replace:!0})}}),Xq=V(`/dashboard/settings/social-media`)({component:H(()=>U(()=>import(`./social-media-BEQGmYf0.js`),__vite__mapDeps([106,21,76,2,52,103,18,41])),`component`)}),Zq=V(`/dashboard/promotions/new`)({component:H(()=>U(()=>import(`./new-AC0y0EED.js`),__vite__mapDeps([107,1,52,102,108,59,14,15,27,28,87,19,41,89])),`component`)}),Qq=V(`/dashboard/promotions/$promotionId`)({component:H(()=>U(()=>import(`./_promotionId-i3pTYD8U.js`),__vite__mapDeps([109,97,3,32,18,19,41,93,110,108])),`component`)}),$q=V(`/dashboard/admin/users`)({component:H(()=>U(()=>import(`./users-DxSapy7z.js`),__vite__mapDeps([111,91,2,97,79,39,112,92,23,58,98,14,85,73,86,16,87,18,19,41,88,93,99])),`component`)}),eJ=V(`/dashboard/admin/partners`)({component:H(()=>U(()=>import(`./partners-BOiH4vMV.js`),__vite__mapDeps([113,102,114,84,19,41])),`component`)}),tJ=V(`/dashboard/admin/overview`)({component:H(()=>U(()=>import(`./overview-8a4Ljh5p.js`),__vite__mapDeps([115,5,14,73,16,17,19,41,99])),`component`)}),nJ=V(`/dashboard/admin/jobs`)({component:H(()=>U(()=>import(`./jobs-CJZedUMA.js`),__vite__mapDeps([116,77,52,102,114,25,98,19,41,93])),`component`)}),rJ=V(`/dashboard/admin/investors`)({component:H(()=>U(()=>import(`./investors-BR55W75W.js`),__vite__mapDeps([117,77,79,32,82,98,85,27,19,41,88,93])),`component`)}),iJ=V(`/dashboard/admin/enrichment`)({component:H(()=>U(()=>import(`./enrichment-OBArknKP.js`),__vite__mapDeps([118,77,32,88])),`component`)}),aJ=V(`/dashboard/admin/buyer-leads`)({component:H(()=>U(()=>import(`./buyer-leads-BgHSRhGA.js`),__vite__mapDeps([119,11,83,19,41,93])),`component`)}),oJ=V(`/dashboard/admin/agents`)({component:H(()=>U(()=>import(`./agents-KeV44rQq.js`),__vite__mapDeps([120,21,77,5,80,112,92,23,108,58,8,11,72,83,13,98,14,15,85,27,16,28,19,41,88,93,89])),`component`)}),sJ=V(`/(auth)/two-factor/`)({component:H(()=>U(()=>import(`./two-factor-DcLDY6vV.js`),__vite__mapDeps([121,46,47,44,52,48,18,41,29])),`component`)}),cJ=V(`/(auth)/two-factor/otp`)({component:H(()=>U(()=>import(`./otp-BbsZEFnt.js`),__vite__mapDeps([122,46,47,44,50,52,11,48,18,41,29])),`component`)}),lJ=V(`/(public)/$countrySlug/agents/`)({loader:({context:e,params:t})=>Uj(e,{countrySlug:t.countrySlug,citySlug:`all-cities`}),staleTime:dq,component:H(()=>U(()=>import(`./agents-zo5Mmrgi.js`),[]),`component`),head:({params:e})=>{let t=zj(Pj(e.countrySlug)),n=`/${e.countrySlug}/agents`;return{meta:[...ID({title:`Real Estate Agents in ${t.country} | Country Realtor Directory`,description:`${t.summary} Browse verified realtor profiles across ${t.country} and compare city, specialty, company and profile quality.`,keywords:`real estate agents ${t.country}, realtor ${t.country}, property agents ${t.country}, verified realtors, AI Realty directory`,url:n,image:`https://airealty.global/air_logo_512.png`})],links:LD({url:n})}}}),uJ=V(`/(public)/investors/stage/$stageSlug`)({validateSearch:e=>{let t=Number(e.page);return Number.isInteger(t)&&t>1?{page:t}:{}},loaderDeps:({search:e})=>({page:e.page??1}),loader:async({context:e,params:t,deps:n})=>{let r=await jq(e,{stageSlug:t.stageSlug,page:n.page}),i=e.api??e.trpc,a=xq(t.stageSlug);
67if(i){let n=gq(i),r=Sq((await e.queryClient.ensureQueryData(n.listFilterOptions.queryOptions()))?.stages,t.stageSlug);r&&(a=r)}return{page:n.page,stage:a,items:r?.items??[],total:r?.total??r?.pagination?.total??0}},staleTime:dq,head:({params:e,loaderData:t})=>{let n=t?.page??1,r=t?.total??0,i=t?.stage??xq(e.stageSlug),a=Dq({stage:i,stageSlug:e.stageSlug,total:r,page:n}),o=t?.items??[],s=Oq({title:a.title,description:a.description,url:a.url,items:o,breadcrumbs:[{name:`Investors`,url:`/investors`},{name:`Directory`,url:`/investors/directory`},{name:i,url:a.canonicalUrl}]}).map(e=>({type:`application/ld+json`,children:JSON.stringify(e)}));return{meta:[{name:`robots`,content:a.robots},...ID({title:a.title,description:a.description,keywords:a.keywords,url:a.url,image:a.image})],links:LD({url:a.canonicalUrl}),scripts:s}},component:H(()=>U(()=>import(`./_stageSlug-DX3Qq2F2.js`),__vite__mapDeps([123,63,16,64])),`component`)}),dJ=V(`/(public)/investors/region/$regionSlug`)({validateSearch:e=>{let t=Number(e.page);return Number.isInteger(t)&&t>1?{page:t}:{}},loaderDeps:({search:e})=>({page:e.page??1}),loader:async({context:e,params:t,deps:n})=>{let r=await Aq(e,{regionSlug:t.regionSlug,page:n.page}),i=e.api??e.trpc,a=xq(t.regionSlug);if(i){let n=gq(i),r=Sq((await e.queryClient.ensureQueryData(n.listFilterOptions.queryOptions()))?.countries,t.regionSlug);r&&(a=r)}return{page:n.page,country:a,items:r?.items??[],total:r?.total??r?.pagination?.total??0}},staleTime:dq,head:({params:e,loaderData:t})=>{let n=t?.page??1,r=t?.total??0,i=t?.country??xq(e.regionSlug),a=Eq({country:i,regionSlug:e.regionSlug,total:r,page:n}),o=t?.items??[],s=Oq({title:a.title,description:a.description,url:a.url,items:o,breadcrumbs:[{name:`Investors`,url:`/investors`},{name:`Directory`,url:`/investors/directory`},{name:i,url:a.canonicalUrl}]}).map(e=>({type:`application/ld+json`,children:JSON.stringify(e)}));return{meta:[{name:`robots`,content:a.robots},...ID({title:a.title,description:a.description,keywords:a.keywords,url:a.url,image:a.image})],links:LD({url:a.canonicalUrl}),scripts:s}},component:H(()=>U(()=>import(`./_regionSlug-BOQs0V2s.js`),__vite__mapDeps([124,63,16,64])),`component`)}),fJ=V(`/(public)/ai-tools/category/$categorySlug`)({component:H(()=>U(()=>import(`./_categorySlug-Ja-EtqN4.js`),__vite__mapDeps([125,57,6,58,8,59,15])),`component`),head:({params:e})=>{let t=Sj(e.categorySlug);if(!t)return{meta:[...ID({title:`AI Tools Category Not Found — AI Realty`,description:`The requested real estate AI tools category could not be found.`,url:`/ai-tools`})],links:LD({url:`/ai-tools`})};let n=Cj(t.slug),r=`/ai-tools/category/${t.slug}`;return{meta:[...ID({title:`${t.title}: Best Real Estate AI Tools and Comparison`,description:`${t.description} Includes real estate use cases, geo SEO keywords, ROI guidance, FAQ and service comparisons for agents and brokerages.`,keywords:t.keywords.join(`, `),image:t.image,url:r})],links:LD({url:r}),scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@graph":[{"@type":`CollectionPage`,name:t.title,description:t.description,url:`https://airealty.global${r}`,image:t.image,dateModified:pj,author:{"@type":`Person`,name:fj},about:t.geoAngle},{"@type":`ItemList`,name:`${t.title} tools`,numberOfItems:n.length,itemListElement:n.map(e=>({"@type":`ListItem`,position:e.rank,url:`https://airealty.global/ai-tools/${e.slug}`,name:e.name}))},{"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`AI Tools Hub`,item:`https://airealty.global/ai-tools`},{"@type":`ListItem`,position:2,name:t.shortTitle,item:`https://airealty.global${r}`}]}]})}]}},loader:({params:e})=>{if(!Sj(e.categorySlug))throw st()}}),pJ=V(`/dashboard/admin/support/`)({component:H(()=>U(()=>import(`./support-CA0EyQu1.js`),__vite__mapDeps([126,97,11,18,19,41])),`component`)}),mJ=async()=>{let{error:e,data:t}=await GA.getSession();if(e||!t?.session)throw _t({to:`/login`});if(!RA(t.user?.role||`user`))throw _t({to:`/dashboard`})},hJ=V(`/dashboard/admin/promotions/`)({component:H(()=>U(()=>import(`./promotions-C8o027S_.js`),__vite__mapDeps([127,101,97,12,98,19,41,93,128])),`component`),beforeLoad:mJ}),gJ=V(`/dashboard/admin/payments/`)({component:H(()=>U(()=>import(`./payments-jQCeeoni.js`),__vite__mapDeps([129,97,32,14,19,41,93])),`component`)}),_J=V(`/dashboard/admin/promotions/$promotionId`)({component:H(()=>U(()=>import(`./_promotionId-CG-cdV_n.js`),__vite__mapDeps([130,21,2,97,3,32,8,11,72,83,35,18,19,41,128,110,108])),`component`),beforeLoad:mJ}),vJ=V(`/(auth)/accept-invitation/$invitationId/`)({component:H(()=>U(()=>import(`./_invitationId-fsH8CjpD.js`),__vite__mapDeps([131,50,87,41])),`component`)}),yJ=V(`/(public)/$countrySlug/$citySlug/agents/`)({validateSearch:e=>{let t=Number(e.page);return Number.isInteger(t)&&t>1?{page:t}:{}},loaderDeps:({search:e})=>({page:e.page??1}),loader:async({context:e,params:t,deps:n})=>(await Uj(e,{countrySlug:t.countrySlug,citySlug:t.citySlug,page:n.page}),{page:n.page}),staleTime:dq,component:H(()=>U(()=>import(`./agents-DgDh1Ip5.js`),[]),`component`),head:({params:e,loaderData:t})=>{let n=zj(Pj(e.countrySlug),e.citySlug===`all-cities`?void 0:Pj(e.citySlug)),r=n.city?`${n.city}, ${n.country}`:n.country,i=t?.page??1,a=`/${e.countrySlug}/${e.citySlug}/agents`,o=i>1?`${a}?page=${i}`:a;return{meta:[...ID({title:`Real Estate Agents in ${r}${i>1?` – Page ${i}`:``} | Verified Realtors | AI Realty`,description:`${n.summary} Browse realtor profiles serving ${r}, compare specialties and send a clear property request through AI Realty.`,keywords:`real estate agents ${r}, realtor ${r}, property agents ${r}, verified realtors ${n.country}, AI Realty directory`,url:o,image:`https://airealty.global/air_logo_512.png`})],links:LD({url:o}),scripts:[{type:`application/ld+json`,children:JSON.stringify({"@context":`https://schema.org`,"@type":`CollectionPage`,name:`Real estate agents in ${r}`,url:`https://airealty.global${o}`,description:n.seoText,inLanguage:`en`,about:{"@type":`Place`,name:r,address:{"@type":`PostalAddress`,...n.city?{addressLocality:n.city}:{},addressCountry:n.country}},isPartOf:{"@type":`WebSite`,name:`AI Realty`,url:`https://airealty.global`}})}]}}}),bJ=V(`/(public)/$countrySlug/$citySlug/agents/$agentSlug`)({staleTime:dq,validateSearch:e=>typeof e.listing==`string`?{listing:e.listing}:{},loader:async({params:e,context:t})=>{try{let n=t.api??t.trpc,r=await t.queryClient.ensureQueryData(n.agents.getBySlug.queryOptions({input:{slug:e.agentSlug}}));if(!r)throw st();return await t.queryClient.prefetchQuery(n.agents.getRelated.queryOptions({input:{slug:e.agentSlug,limit:6}})),{agent:r}}catch(e){throw e instanceof Um&&e.code===`NOT_FOUND`?st():e}},head:({params:e,loaderData:t})=>{let n=`/${e.countrySlug}/${e.citySlug}/agents/${e.agentSlug}`,r=t?.agent;if(!r)return{meta:[{name:`robots`,content:`noindex, follow`},...ID({title:`Real Estate Agent Profile | AI Realty`,description:`Find verified real estate agents by country and city on AI Realty. View profiles, services and contact details.`,url:n})],links:LD({url:n})};let i=Bj(r),a=`https://airealty.global/og/agents/${e.agentSlug}.png`,o=Vj(r,{faqs:[{question:`How do I find a real estate agent in ${r.city||r.country}?`,answer:`Use the directory filters to compare agents by city, specialty and language before sending a request.`},{question:`Which real estate agent works in ${r.city||r.country}?`,answer:`${i.fullName} is listed as a real estate agent for ${r.city||r.country}.`},{question:`Can I request help from a verified real estate agent?`,answer:`Yes. Use the directory request form and the nearest available verified realtor can contact you within 24 hours.`},{question:`How can I choose an agent if the rating is not filled yet?`,answer:`Compare the agent's location, company, specialty, languages and profile completeness, then request more information before cooperation.`}]}).map(e=>({type:`application/ld+json`,children:JSON.stringify(e)}));
67return{meta:[...ID({title:i.title,description:i.description,keywords:i.keywords,url:n,image:a,...!r.isIndexedEligible&&!r.isVerified?{robots:`noindex, follow`}:{}}),{name:`twitter:image:alt`,content:`${i.fullName} — AI Realty`}],links:LD({url:n}),scripts:o}},component:H(()=>U(()=>import(`./_agentSlug-DpOIz08P.js`),__vite__mapDeps([132,75,21,76,38,77,78,79,80,6,23,8,11,12,72,81,82,83,25,13,84,15,85,26,27,86,16,28,87,47,19,88,89])),`component`)}),xJ=KA.update({id:`/dashboard`,path:`/dashboard`,getParentRoute:()=>BD}),SJ=qA.update({id:`/(auth)`,getParentRoute:()=>BD}),CJ=JA.update({id:`/(public)/`,path:`/`,getParentRoute:()=>BD}),wJ=YA.update({id:`/(public)/tos`,path:`/tos`,getParentRoute:()=>BD}),TJ=XA.update({id:`/(public)/team`,path:`/team`,getParentRoute:()=>BD}),EJ=ZA.update({id:`/(public)/privacy`,path:`/privacy`,getParentRoute:()=>BD}),DJ=QA.update({id:`/(public)/pricing`,path:`/pricing`,getParentRoute:()=>BD}),OJ=$A.update({id:`/(public)/prices`,path:`/prices`,getParentRoute:()=>BD}),kJ=tj.update({id:`/(public)/faq`,path:`/faq`,getParentRoute:()=>BD}),AJ=nj.update({id:`/(public)/contact-us`,path:`/contact-us`,getParentRoute:()=>BD}),jJ=rj.update({id:`/(public)/about`,path:`/about`,getParentRoute:()=>BD}),MJ=ij.update({id:`/`,path:`/`,getParentRoute:()=>xJ}),NJ=aj.update({id:`/partner`,path:`/partner`,getParentRoute:()=>xJ}),PJ=oj.update({id:`/reset-password`,path:`/reset-password`,getParentRoute:()=>SJ}),FJ=sj.update({id:`/register`,path:`/register`,getParentRoute:()=>SJ}),IJ=cj.update({id:`/login`,path:`/login`,getParentRoute:()=>SJ}),LJ=lj.update({id:`/forgot-password`,path:`/forgot-password`,getParentRoute:()=>SJ}),RJ=uj.update({id:`/(public)/investors/`,path:`/investors/`,getParentRoute:()=>BD}),zJ=dj.update({id:`/(public)/articles/`,path:`/articles/`,getParentRoute:()=>BD}),BJ=Dj.update({id:`/(public)/ai-tools/`,path:`/ai-tools/`,getParentRoute:()=>BD}),VJ=fq.update({id:`/(public)/agents/`,path:`/agents/`,getParentRoute:()=>BD}),HJ=pq.update({id:`/(public)/pt/portugal`,path:`/pt/portugal`,getParentRoute:()=>BD}),UJ=mq.update({id:`/(public)/partners/sales-directors`,path:`/partners/sales-directors`,getParentRoute:()=>BD}),WJ=hq.update({id:`/(public)/office/$officeSlug`,path:`/office/$officeSlug`,getParentRoute:()=>BD}),GJ=Mq.update({id:`/(public)/investors/directory`,path:`/investors/directory`,getParentRoute:()=>BD}),KJ=Nq.update({id:`/(public)/investors/$slug`,path:`/investors/$slug`,getParentRoute:()=>BD}),qJ=Pq.update({id:`/(public)/articles/$articleSlug`,path:`/articles/$articleSlug`,getParentRoute:()=>BD}),JJ=Fq.update({id:`/(public)/ai-tools/$toolSlug`,path:`/ai-tools/$toolSlug`,getParentRoute:()=>BD}),YJ=Iq.update({id:`/(public)/agents/report-incorrect`,path:`/agents/report-incorrect`,getParentRoute:()=>BD}),XJ=Lq.update({id:`/(public)/agents/remove-profile`,path:`/agents/remove-profile`,getParentRoute:()=>BD}),ZJ=Rq.update({id:`/(public)/agents/for-realtors`,path:`/agents/for-realtors`,getParentRoute:()=>BD}),QJ=zq.update({id:`/(public)/agents/about`,path:`/agents/about`,getParentRoute:()=>BD}),$J=Bq.update({id:`/(public)/agents/$agentSlug`,path:`/agents/$agentSlug`,getParentRoute:()=>BD}),eY=Vq.update({id:`/workspace/`,path:`/workspace/`,getParentRoute:()=>xJ}),tY=Hq.update({id:`/videos/`,path:`/videos/`,getParentRoute:()=>xJ}),nY=Uq.update({id:`/support/`,path:`/support/`,getParentRoute:()=>xJ}),rY=Wq.update({id:`/settings/`,path:`/settings/`,getParentRoute:()=>xJ}),iY=Gq.update({id:`/publications/`,path:`/publications/`,getParentRoute:()=>xJ}),aY=Kq.update({id:`/promotions/`,path:`/promotions/`,getParentRoute:()=>xJ}),oY=qq.update({id:`/notifications/`,path:`/notifications/`,getParentRoute:()=>xJ}),sY=Jq.update({id:`/listings/`,path:`/listings/`,getParentRoute:()=>xJ}),cY=Yq.update({id:`/admin/`,path:`/admin/`,getParentRoute:()=>xJ}),lY=Xq.update({id:`/settings/social-media`,path:`/settings/social-media`,getParentRoute:()=>xJ}),uY=Zq.update({id:`/promotions/new`,path:`/promotions/new`,getParentRoute:()=>xJ}),dY=Qq.update({id:`/promotions/$promotionId`,path:`/promotions/$promotionId`,getParentRoute:()=>xJ}),fY=$q.update({id:`/admin/users`,path:`/admin/users`,getParentRoute:()=>xJ}),pY=eJ.update({id:`/admin/partners`,path:`/admin/partners`,getParentRoute:()=>xJ}),mY=tJ.update({id:`/admin/overview`,path:`/admin/overview`,getParentRoute:()=>xJ}),hY=nJ.update({id:`/admin/jobs`,path:`/admin/jobs`,getParentRoute:()=>xJ}),gY=rJ.update({id:`/admin/investors`,path:`/admin/investors`,getParentRoute:()=>xJ}),_Y=iJ.update({id:`/admin/enrichment`,path:`/admin/enrichment`,getParentRoute:()=>xJ}),vY=aJ.update({id:`/admin/buyer-leads`,path:`/admin/buyer-leads`,getParentRoute:()=>xJ}),yY=oJ.update({id:`/admin/agents`,path:`/admin/agents`,getParentRoute:()=>xJ}),bY=sJ.update({id:`/two-factor/`,path:`/two-factor/`,getParentRoute:()=>SJ}),xY=cJ.update({id:`/two-factor/otp`,path:`/two-factor/otp`,getParentRoute:()=>SJ}),SY=lJ.update({id:`/(public)/$countrySlug/agents/`,path:`/$countrySlug/agents/`,getParentRoute:()=>BD}),CY=uJ.update({id:`/(public)/investors/stage/$stageSlug`,path:`/investors/stage/$stageSlug`,getParentRoute:()=>BD}),wY=dJ.update({id:`/(public)/investors/region/$regionSlug`,path:`/investors/region/$regionSlug`,getParentRoute:()=>BD}),TY=fJ.update({id:`/(public)/ai-tools/category/$categorySlug`,path:`/ai-tools/category/$categorySlug`,getParentRoute:()=>BD}),EY=pJ.update({id:`/admin/support/`,path:`/admin/support/`,getParentRoute:()=>xJ}),DY=hJ.update({id:`/admin/promotions/`,path:`/admin/promotions/`,getParentRoute:()=>xJ}),OY=gJ.update({id:`/admin/payments/`,path:`/admin/payments/`,getParentRoute:()=>xJ}),kY=_J.update({id:`/admin/promotions/$promotionId`,path:`/admin/promotions/$promotionId`,getParentRoute:()=>xJ}),AY=vJ.update({id:`/accept-invitation/$invitationId/`,path:`/accept-invitation/$invitationId/`,getParentRoute:()=>SJ}),jY=yJ.update({id:`/(public)/$countrySlug/$citySlug/agents/`,path:`/$countrySlug/$citySlug/agents/`,getParentRoute:()=>BD}),MY=bJ.update({id:`/(public)/$countrySlug/$citySlug/agents/$agentSlug`,path:`/$countrySlug/$citySlug/agents/$agentSlug`,getParentRoute:()=>BD}),NY={authForgotPasswordRoute:LJ,authLoginRoute:IJ,authRegisterRoute:FJ,authResetPasswordRoute:PJ,authTwoFactorOtpRoute:xY,authTwoFactorIndexRoute:bY,authAcceptInvitationInvitationIdIndexRoute:AY},PY=SJ._addFileChildren(NY),FY={DashboardPartnerRoute:NJ,DashboardIndexRoute:MJ,DashboardAdminAgentsRoute:yY,DashboardAdminBuyerLeadsRoute:vY,DashboardAdminEnrichmentRoute:_Y,DashboardAdminInvestorsRoute:gY,DashboardAdminJobsRoute:hY,DashboardAdminOverviewRoute:mY,DashboardAdminPartnersRoute:pY,DashboardAdminUsersRoute:fY,DashboardPromotionsPromotionIdRoute:dY,DashboardPromotionsNewRoute:uY,DashboardSettingsSocialMediaRoute:lY,DashboardAdminIndexRoute:cY,DashboardListingsIndexRoute:sY,DashboardNotificationsIndexRoute:oY,DashboardPromotionsIndexRoute:aY,DashboardPublicationsIndexRoute:iY,DashboardSettingsIndexRoute:rY,DashboardSupportIndexRoute:nY,DashboardVideosIndexRoute:tY,DashboardWorkspaceIndexRoute:eY,DashboardAdminPromotionsPromotionIdRoute:kY,DashboardAdminPaymentsIndexRoute:OY,DashboardAdminPromotionsIndexRoute:DY,DashboardAdminSupportIndexRoute:EY},IY={authLayoutRoute:PY,DashboardLayoutRoute:xJ._addFileChildren(FY),publicAboutRoute:jJ,publicContactUsRoute:AJ,publicFaqRoute:kJ,publicPricesRoute:OJ,publicPricingRoute:DJ,publicPrivacyRoute:EJ,publicTeamRoute:TJ,publicTosRoute:wJ,publicIndexRoute:CJ,publicAgentsAgentSlugRoute:$J,publicAgentsAboutRoute:QJ,publicAgentsForRealtorsRoute:ZJ,publicAgentsRemoveProfileRoute:XJ,publicAgentsReportIncorrectRoute:YJ,publicAiToolsToolSlugRoute:JJ,publicArticlesArticleSlugRoute:qJ,publicInvestorsSlugRoute:KJ,publicInvestorsDirectoryRoute:GJ,publicOfficeOfficeSlugRoute:WJ,publicPartnersSalesDirectorsRoute:UJ,publicPtPortugalRoute:HJ,publicAgentsIndexRoute:VJ,publicAiToolsIndexRoute:BJ,publicArticlesIndexRoute:zJ,publicInvestorsIndexRoute:RJ,publicAiToolsCategoryCategorySlugRoute:TY,publicInvestorsRegionRegionSlugRoute:wY,publicInvestorsStageStageSlugRoute:CY,publicCountrySlugAgentsIndexRoute:SY,publicCountrySlugCitySlugAgentsAgentSlugRoute:MY,publicCountrySlugCitySlugAgentsIndexRoute:jY},LY=BD._addFileChildren(IY);function RY(){return(0,z.jsxs)(`div`,{className:`mx-auto mt-8 flex flex-col items-center justify-center`,children:[(0,z.jsx)(uM,{className:`animate-spin`}),(0,z.jsx)(`p`,{className:`mt-2 text-muted-foreground text-sm`,children:`Loading...`})]})}function zY(){return(0,z.jsx)(`div`,{className:`flex size-full items-center justify-center p-2 text-2xl`,children:(0,z.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,z.jsxs)(`p`,{className:`font-bold text-4xl`,children:[`404`,` `,(0,z.jsx)(B,{className:`hover:cursor-pointer hover:text-red-700`,to:`/`,children:(0,z.jsx)(`span`,{className:`mr-2 gap-3 text-5xl`,children:`⦻`})})]}),(0,z.jsx)(`p`,{className:`text-lg`,children:`Page not found`}),(0,z.jsx)(nK,{asChild:!0,children:(0,z.jsx)(B,{to:`/`,children:`Return to home`})})]})})}var BY=c({getRouter:()=>VY}),VY=()=>{let e=Yh(),t=Zh(e),n=Bd({routeTree:LY,context:{queryClient:e,api:t,trpc:t},scrollRestoration:!0,defaultPreloadStaleTime:3e4,defaultStaleTime:3e4,defaultPreload:`intent`,defaultViewTransition:!0,defaultPendingComponent:RY,defaultNotFoundComponent:zY,defaultErrorComponent:({error:e})=>(0,z.jsx)(bu,{error:e})});return kp({router:n,queryClient:e}),n};async function HY(){let e=await VY(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t}
67,t.push(nu),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await ou(e),e}var UY=HY;async function WY(){let e=await UY();return window.$_TSR?.h(),e}var GY;function KY(){return GY||=WY(),(0,z.jsx)(gu,{promise:GY,children:e=>(0,z.jsx)(Ud,{router:e})})}var qY=y();(0,R.startTransition)(()=>{(0,qY.hydrateRoot)(document,(0,z.jsx)(R.StrictMode,{children:(0,z.jsx)(KY,{})}))});export{sK as $,kw as $n,E as $r,mM as $t,HK as A,WA as An,Pr as Ar,WN as At,jK as B,lD as Bn,Bn as Br,Z as Bt,YK as C,Sj as Cn,Ll as Cr,XF as Ct,WK as D,ej as Dn,fl as Dr,vF as Dt,KK as E,Tj as En,dl as Er,GF as Et,EK as F,UA as Fn,Gn as Fr,lN as Ft,gK as G,vD as Gn,yt as Gr,TM as Gt,TK as H,hD as Hn,nn as Hr,BM as Ht,DK as I,PD as In,Wn as Ir,sN as It,pK as J,fD as Jn,st as Jr,bM as Jt,hK as K,bD as Kn,gt as Kr,EM as Kt,OK as L,FD as Ln,Rn as Lr,tN as Lt,VK as M,VA as Mn,al as Mr,kN as Mt,wK as N,RA as Nn,Jn as Nr,vN as Nt,FK as O,GA as On,ul as Or,lF as Ot,kK as P,HA as Pn,Yn as Pr,uN as Pt,cK as Q,Uw as Qn,oe as Qr,hM as Qt,MK as R,ED as Rn,zn as Rr,ZM as Rt,XK as S,gj as Sn,ru as Sr,QF as St,GK as T,Cj as Tn,kl as Tr,ZF as Tt,CK as U,dD as Un,Gt as Ur,RM as Ut,NK as V,yD as Vn,Un as Vr,JM as Vt,SK as W,cD as Wn,vt as Wr,NM as Wt,lK as X,KE as Xn,Ce as Xr,_M as Xt,oK as Y,sD as Yn,we as Yr,vM as Yt,uK as Z,xE as Zn,be as Zr,gM as Zt,vq as _,bj as _n,Gu as _r,iI as _t,fJ as a,_ as ai,oM as an,Ep as ar,$G as at,iq as b,hj as bn,mu as br,nI as bt,lJ as c,o as ci,rM as cn,Fd as cr,mz as ct,Pq as d,u as di,eM as dn,ad as dr,GR as dt,D as ei,fM as en,Qh as er,aK as et,Nq as f,$j as fn,id as fr,qR as ft,xq as g,Nj as gn,Hu as gr,aI as gt,bq as h,Aj as hn,Ju as hr,OR as ht,vJ as i,S as ii,sM as in,Dp as ir,QG as it,BK as j,BA as jn,sl as jr,HN as jt,zK as k,zA as kn,ol as kr,eF as kt,Bq as l,c as li,nM as ln,B as lr,pz as lt,Sq as m,Ij as mn,Xu as mr,WR as mt,bJ as n,x as ni,uM as nn,eg as nr,nK as nt,dJ as o,p as oi,aM as on,dp as or,eK as ot,Mq as p,jj as pn,$u as pr,KR as pt,mK as q,uD as qn,ct as qr,CM as qt,yJ as r,C as ri,cM as rn,U as rr,tK as rt,uJ as s,s as si,iM as sn,Ud as sr,_W as st,BY as t,b as ti,dM as tn,$h as tr,rK as tt,Fq as u,d as ui,tM as un,od as ur,tz as ut,_q as v,fj as vn,Au as vr,rI as vt,qK as w,Ej as wn,Il as wr,tI as wt,oq as x,pj as xn,su as xr,$F as xt,hq as y,mj as yn,Tu as yr,eI as yt,AK as z,xD as zn,Hn as zr,YM as zt};

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.