vendor: 7,798 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Services-CEACFq8b.js","assets/PublicPageHero-B9cJ0o04.js","assets/ContactClose-qRkl_z0_.js","assets/hero-services-BvaLpAzk.js","assets/Pricing-DOk3RrDa.js","assets/arrow-right-C1ZpRQsV.js","assets/star-DKVNFug0.js","assets/zap-BICkhC58.js","assets/target-BbcEUIab.js","assets/Samples-DXme0zT2.js","assets/calendar-xjeyf6ev.js","assets/wrench-wZjPWNoP.js","assets/sparkles-Czid1nMA.js","assets/badge-FCm-e1LB.js","assets/tabs-BaDrzTtw.js","assets/eye-CI8KRZ7F.js","assets/About-CqZrdcvK.js","assets/HowItWorks-9I44O3os.js","assets/FAQ-Blml_YW2.js","assets/Contact-CQlfV1Gx.js","assets/clock-BL7Oz_uh.js","assets/Auth-DeW7wQjw.js","assets/index-BWPPF6qF.js","assets/NotFound-rNa4sUdZ.js","assets/lock-CckJTguz.js","assets/eye-off-jYmo-QgU.js","assets/Admin-DPUHaFTh.js","assets/PaymentSuccess-HYYmSycj.js","assets/card-C5oecWZp.js","assets/circle-check-big-BIUTf8Ol.js","assets/SignIn-D6oW7w8E.js","assets/SignUp-CY-8gNi5.js","assets/ResetPassword-D8YxFrfy.js","assets/Dashboard-BMSgqK5f.js","assets/loader-circle-B3-Oruoq.js","assets/Technology-CBeDxhUO.js","assets/hero-technology-B8pgPZoY.js","assets/CaseStudies-CDjMEudB.js","assets/Blog-Bkc1AETw.js","assets/blogPosts-CogZgnFG.js","assets/BlogPost-Ry49aF4Y.js","assets/Unsubscribe-BDiWXH3C.js","assets/QuincyWebDesign-C4nJ9jXU.js","assets/IndustriesHub-D0Ls_2Mf.js","assets/Roofing-5wZpXCrN.js","assets/IndustryPageTemplate-CFIJ5C3N.js","assets/Plumbing-By51YKwB.js","assets/LawnCare-Bg-XYDil.js","assets/HVAC-D2fd_urQ.js"])))=>i.map(i=>d[i]); 2var ng=t=>{throw TypeError(t)};var Du=(t,e,n)=>e.has(t)||ng("Cannot "+n);var A=(t,e,n)=>(Du(t,e,"read from private field"),n?n.call(t):e.get(t)),ue=(t,e,n)=>e.has(t)?ng("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),te=(t,e,n,r)=>(Du(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),it=(t,e,n)=>(Du(t,e,"access private method"),n);var el=(t,e,n,r)=>({set _(s){te(t,e,s,n)},get _(){return A(t,e,r)}});function iE(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var QU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var yw={exports:{}},Kc={},vw={exports:{}},oe={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var $a=Symbol.for("react.element"),oE=Symbol.for("react.portal"),aE=Symbol.for("react.fragment"),lE=Symbol.for("react.strict_mode"),cE=Symbol.for("react.profiler"),uE=Symbol.for("react.provider"),dE=Symbol.for("react.context"),hE=Symbol.for("react.forward_ref"),fE=Symbol.for("react.suspense"),pE=Symbol.for("react.memo"),mE=Symbol.for("react.lazy"),rg=Symbol.iterator;function gE(t){return t===null||typeof t!="object"?null:(t=rg&&t[rg]||t["@@iterator"],typeof t=="function"?t:null)}var ww={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xw=Object.assign,bw={};function no(t,e,n){this.props=t,this.context=e,this.refs=bw,this.updater=n||ww}no.prototype.isReactComponent={};no.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};no.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function _w(){}_w.prototype=no.prototype;function Uf(t,e,n){this.props=t,this.context=e,this.refs=bw,this.updater=n||ww}var Ff=Uf.prototype=new _w;Ff.constructor=Uf;xw(Ff,no.prototype);Ff.isPureReactComponent=!0;var sg=Array.isArray,Sw=Object.prototype.hasOwnProperty,Bf={current:null},kw={key:!0,ref:!0,__self:!0,__source:!0};function Ew(t,e,n){var r,s={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)Sw.call(e,r)&&!kw.hasOwnProperty(r)&&(s[r]=e[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:$a,type:t,key:i,ref:o,props:s,_owner:Bf.current}}function yE(t,e){return{$$typeof:$a,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function zf(t){return typeof t=="object"&&t!==null&&t.$$typeof===$a}function vE(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var ig=/\/+/g;function Lu(t,e){return typeof t=="object"&&t!==null&&t.key!=null?vE(""+t.key):e.toString(36)}function Ol(t,e,n,r,s){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case $a:case oE:o=!0}}if(o)return o=t,s=s(o),t=r===""?"."+Lu(o,0):r,sg(s)?(n="",t!=null&&(n=t.replace(ig,"$&/")+"/"),Ol(s,e,n,"",function(c){return c})):s!=null&&(zf(s)&&(s=yE(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(ig,"$&/")+"/")+t)),e.push(s)),1;if(o=0,r=r===""?".":r+":",sg(t))for(var a=0;a<t.length;a++){i=t[a];var l=r+Lu(i,a);o+=Ol(i,e,n,l,s)}else if(l=gE(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=r+Lu(i,a++),o+=Ol(i,e,n,l,s);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function tl(t,e,n){if(t==null)return t;var r=[],s=0;return Ol(t,r,"","",function(i){return e.call(n,i,s++)}),r}function wE(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var wt={current:null},jl={transition:null},xE={ReactCurrentDispatcher:wt,ReactCurrentBatchConfig:jl,ReactCurrentOwner:Bf};function Tw(){throw Error("act(...) is not supported in production builds of React.")}oe.Children={map:tl,forEach:function(t,e,n){tl(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return tl(t,function(){e++}),e},toArray:function(t){return tl(t,function(e){return e})||[]},only:function(t){if(!zf(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};oe.Component=no;oe.Fragment=aE;oe.Profiler=cE;oe.PureComponent=Uf;oe.StrictMode=lE;oe.Suspense=fE;
vendor: 5,064 bytes, lines 10-26
10oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xE;oe.act=Tw;oe.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=xw({},t.props),s=t.key,i=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,o=Bf.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Sw.call(e,l)&&!kw.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:$a,type:t.type,key:s,ref:i,props:r,_owner:o}};oe.createContext=function(t){return t={$$typeof:dE,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:uE,_context:t},t.Consumer=t};oe.createElement=Ew;oe.createFactory=function(t){var e=Ew.bind(null,t);return e.type=t,e};oe.createRef=function(){return{current:null}};oe.forwardRef=function(t){return{$$typeof:hE,render:t}};oe.isValidElement=zf;oe.lazy=function(t){return{$$typeof:mE,_payload:{_status:-1,_result:t},_init:wE}};oe.memo=function(t,e){return{$$typeof:pE,type:t,compare:e===void 0?null:e}};oe.startTransition=function(t){var e=jl.transition;jl.transition={};try{t()}finally{jl.transition=e}};oe.unstable_act=Tw;oe.useCallback=function(t,e){return wt.current.useCallback(t,e)};oe.useContext=function(t){return wt.current.useContext(t)};oe.useDebugValue=function(){};oe.useDeferredValue=function(t){return wt.current.useDeferredValue(t)};oe.useEffect=function(t,e){return wt.current.useEffect(t,e)};oe.useId=function(){return wt.current.useId()};oe.useImperativeHandle=function(t,e,n){return wt.current.useImperativeHandle(t,e,n)};oe.useInsertionEffect=function(t,e){return wt.current.useInsertionEffect(t,e)};oe.useLayoutEffect=function(t,e){return wt.current.useLayoutEffect(t,e)};oe.useMemo=function(t,e){return wt.current.useMemo(t,e)};oe.useReducer=function(t,e,n){return wt.current.useReducer(t,e,n)};oe.useRef=function(t){return wt.current.useRef(t)};oe.useState=function(t){return wt.current.useState(t)};oe.useSyncExternalStore=function(t,e,n){return wt.current.useSyncExternalStore(t,e,n)};oe.useTransition=function(){return wt.current.useTransition()};oe.version="18.3.1";vw.exports=oe;var b=vw.exports;const j=gw(b),Wf=iE({__proto__:null,default:j},[b]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var bE=b,_E=Symbol.for("react.element"),SE=Symbol.for("react.fragment"),kE=Object.prototype.hasOwnProperty,EE=bE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,TE={key:!0,ref:!0,__self:!0,__source:!0};function Cw(t,e,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)kE.call(e,r)&&!TE.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)s[r]===void 0&&(s[r]=e[r]);return{$$typeof:_E,type:t,key:i,ref:o,props:s,_owner:EE.current}}Kc.Fragment=SE;Kc.jsx=Cw;Kc.jsxs=Cw;yw.exports=Kc;var g=yw.exports,Pw={exports:{}},Vt={},Aw={exports:{}},Rw={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(t){function e(C,R){var M=C.length;C.push(R);e:for(;0<M;){var Z=M-1>>>1,K=C[Z];if(0<s(K,R))C[Z]=R,C[M]=K,M=Z;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var R=C[0],M=C.pop();if(M!==R){C[0]=M;e:for(var Z=0,K=C.length,ie=K>>>1;Z<ie;){var ae=2*(Z+1)-1,Ue=C[ae],st=ae+1,he=C[st];if(0>s(Ue,M))st<K&&0>s(he,Ue)?(C[Z]=he,C[st]=M,Z=st):(C[Z]=Ue,C[ae]=M,Z=ae);else if(st<K&&0>s(he,M))C[Z]=he,C[st]=M,Z=st;else break e}}return R}function s(C,R){var M=C.sortIndex-R.sortIndex;return M!==0?M:C.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,h=3,f=!1,w=!1,p=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(C){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=C)r(c),R.sortIndex=R.expirationTime,e(l,R);else break;R=n(c)}}function _(C){if(p=!1,v(C),!w)if(n(l)!==null)w=!0,Q(S);else{var R=n(c);R!==null&&z(_,R.startTime-C)}}function S(C,R){w=!1,p&&(p=!1,y(T),T=-1),f=!0;var M=h;try{for(v(R),d=n(l);d!==null&&(!(d.expirationTime>R)||C&&!B());){var Z=d.callback;
vendor: 9,160 bytes, lines 26-35
26if(typeof Z=="function"){d.callback=null,h=d.priorityLevel;var K=Z(d.expirationTime<=R);R=t.unstable_now(),typeof K=="function"?d.callback=K:d===n(l)&&r(l),v(R)}else r(l);d=n(l)}if(d!==null)var ie=!0;else{var ae=n(c);ae!==null&&z(_,ae.startTime-R),ie=!1}return ie}finally{d=null,h=M,f=!1}}var k=!1,E=null,T=-1,P=5,O=-1;function B(){return!(t.unstable_now()-O<P)}function D(){if(E!==null){var C=t.unstable_now();O=C;var R=!0;try{R=E(!0,C)}finally{R?Y():(k=!1,E=null)}}else k=!1}var Y;if(typeof m=="function")Y=function(){m(D)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,re=L.port2;L.port1.onmessage=D,Y=function(){re.postMessage(null)}}else Y=function(){x(D,0)};function Q(C){E=C,k||(k=!0,Y())}function z(C,R){T=x(function(){C(t.unstable_now())},R)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(C){C.callback=null},t.unstable_continueExecution=function(){w||f||(w=!0,Q(S))},t.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<C?Math.floor(1e3/C):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(C){switch(h){case 1:case 2:case 3:var R=3;break;default:R=h}var M=h;h=R;try{return C()}finally{h=M}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(C,R){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var M=h;h=C;try{return R()}finally{h=M}},t.unstable_scheduleCallback=function(C,R,M){var Z=t.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?Z+M:Z):M=Z,C){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=M+K,C={id:u++,callback:R,priorityLevel:C,startTime:M,expirationTime:K,sortIndex:-1},M>Z?(C.sortIndex=M,e(c,C),n(l)===null&&C===n(c)&&(p?(y(T),T=-1):p=!0,z(_,M-Z))):(C.sortIndex=K,e(l,C),w||f||(w=!0,Q(S))),C},t.unstable_shouldYield=B,t.unstable_wrapCallback=function(C){var R=h;return function(){var M=h;h=R;try{return C.apply(this,arguments)}finally{h=M}}}})(Rw);Aw.exports=Rw;var CE=Aw.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var PE=b,Lt=CE;function N(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ow=new Set,Xo={};function Us(t,e){Ui(t,e),Ui(t+"Capture",e)}function Ui(t,e){for(Xo[t]=e,t=0;t<e.length;t++)Ow.add(e[t])}var Yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zd=Object.prototype.hasOwnProperty,AE=/^[: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][: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]*$/,og={},ag={};function RE(t){return zd.call(ag,t)?!0:zd.call(og,t)?!1:AE.test(t)?ag[t]=!0:(og[t]=!0,!1)}function OE(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function jE(t,e,n,r){if(e===null||typeof e>"u"||OE(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function xt(t,e,n,r,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){rt[t]=new xt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];rt[e]=new xt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){rt[t]=new xt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){rt[t]=new xt(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){rt[t]=new xt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){rt[t]=new xt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){rt[t]=new xt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){rt[t]=new xt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){rt[t]=new xt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Hf=/[\-:]([a-z])/g;function Kf(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Hf,Kf);rt[e]=new xt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Hf,Kf);rt[e]=new xt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Hf,Kf);rt[e]=new xt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){rt[t]=new xt(t,1,!1,t.toLowerCase(),null,!1,!1)});rt.xlinkHref=new xt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){rt[t]=new xt(t,1,!1,t.toLowerCase(),null,!0,!0)});function qf(t,e,n,r){var s=rt.hasOwnProperty(e)?rt[e]:null;(s!==null?s.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(jE(e,n,s,r)&&(n=null),r||s===null?RE(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):s.mustUseProperty?t[s.propertyName]=n===null?s.type===3?!1:"":n:(e=s.attributeName,r=s.attributeNamespace,n===null?t.removeAttribute(e):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var rr=PE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,nl=Symbol.for("react.element"),ii=Symbol.for("react.portal"),oi=Symbol.for("react.fragment"),Gf=Symbol.for("react.strict_mode"),Wd=Symbol.for("react.profiler"),jw=Symbol.for("react.provider"),Nw=Symbol.for("react.context"),Yf=Symbol.for("react.forward_ref"),Hd=Symbol.for("react.suspense"),Kd=Symbol.for("react.suspense_list"),Qf=Symbol.for("react.memo"),vr=Symbol.for("react.lazy"),Iw=Symbol.for("react.offscreen"),lg=Symbol.iterator;function yo(t){return t===null||typeof t!="object"?null:(t=lg&&t[lg]||t["@@iterator"],typeof t=="function"?t:null)}var je=Object.assign,Mu;function Ao(t){if(Mu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Mu=e&&e[1]||""}return` 35`+Mu+t}var $u=!1;function Vu(t,e){if(!t||$u)return"";$u=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var r=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){r=c}t.call(e.prototype)}else{try{throw Error()}catch(c){r=c}t()}}
vendor: 16,737 bytes, lines 35-38
35catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(` 36`),i=r.stack.split(` 37`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=` 38`+s[o].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{$u=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Ao(t):""}function NE(t){switch(t.tag){case 5:return Ao(t.type);case 16:return Ao("Lazy");case 13:return Ao("Suspense");case 19:return Ao("SuspenseList");case 0:case 2:case 15:return t=Vu(t.type,!1),t;case 11:return t=Vu(t.type.render,!1),t;case 1:return t=Vu(t.type,!0),t;default:return""}}function qd(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case oi:return"Fragment";case ii:return"Portal";case Wd:return"Profiler";case Gf:return"StrictMode";case Hd:return"Suspense";case Kd:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Nw:return(t.displayName||"Context")+".Consumer";case jw:return(t._context.displayName||"Context")+".Provider";case Yf:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Qf:return e=t.displayName||null,e!==null?e:qd(t.type)||"Memo";case vr:e=t._payload,t=t._init;try{return qd(t(e))}catch{}}return null}function IE(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return qd(e);case 8:return e===Gf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Kr(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Dw(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function DE(t){var e=Dw(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function rl(t){t._valueTracker||(t._valueTracker=DE(t))}function Lw(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Dw(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Zl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Gd(t,e){var n=e.checked;return je({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function cg(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Kr(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Mw(t,e){e=e.checked,e!=null&&qf(t,"checked",e,!1)}function Yd(t,e){Mw(t,e);var n=Kr(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Qd(t,e.type,n):e.hasOwnProperty("defaultValue")&&Qd(t,e.type,Kr(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ug(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Qd(t,e,n){(e!=="number"||Zl(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Ro=Array.isArray;function _i(t,e,n,r){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Kr(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,r&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Zd(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(N(91));return je({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function dg(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(N(92));if(Ro(n)){if(1<n.length)throw Error(N(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Kr(n)}}function $w(t,e){var n=Kr(e.value),r=Kr(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function hg(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Vw(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jd(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Vw(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var sl,Uw=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,s){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(sl=sl||document.createElement("div"),sl.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=sl.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ea(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Mo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},LE=["Webkit","ms","Moz","O"];Object.keys(Mo).forEach(function(t){LE.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Mo[e]=Mo[t]})});function Fw(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Mo.hasOwnProperty(t)&&Mo[t]?(""+e).trim():e+"px"}function Bw(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Fw(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,s):t[n]=s}}var ME=je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xd(t,e){if(e){if(ME[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(N(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(N(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(N(61))}if(e.style!=null&&typeof e.style!="object")throw Error(N(62))}}function eh(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 th=null;function Zf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var nh=null,Si=null,ki=null;function fg(t){if(t=Fa(t)){if(typeof nh!="function")throw Error(N(280));var e=t.stateNode;e&&(e=Zc(e),nh(t.stateNode,t.type,e))}}function zw(t){Si?ki?ki.push(t):ki=[t]:Si=t}function Ww(){if(Si){var t=Si,e=ki;if(ki=Si=null,fg(t),e)for(t=0;t<e.length;t++)fg(e[t])}}function Hw(t,e){return t(e)}function Kw(){}var Uu=!1;function qw(t,e,n){if(Uu)return t(e,n);Uu=!0;try{return Hw(t,e,n)}finally{Uu=!1,(Si!==null||ki!==null)&&(Kw(),Ww())}}function ta(t,e){var n=t.stateNode;if(n===null)return null;var r=Zc(n);if(r===null)return null;n=r[e];e:switch(e){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)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(N(231,e,typeof n));return n}var rh=!1;if(Yn)try{var vo={};Object.defineProperty(vo,"passive",{get:function(){rh=!0}}),window.addEventListener("test",vo,vo),window.removeEventListener("test",vo,vo)}catch{rh=!1}function $E(t,e,n,r,s,i,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(u){this.onError(u)}}var $o=!1,Jl=null,Xl=!1,sh=null,VE={onError:function(t){$o=!0,Jl=t}};function UE(t,e,n,r,s,i,o,a,l){$o=!1,Jl=null,$E.apply(VE,arguments)}function FE(t,e,n,r,s,i,o,a,l){if(UE.apply(this,arguments),$o){if($o){var c=Jl;$o=!1,Jl=null}else throw Error(N(198));Xl||(Xl=!0,sh=c)}}function Fs(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Gw(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function pg(t){if(Fs(t)!==t)throw Error(N(188))}function BE(t){var e=t.alternate;if(!e){if(e=Fs(t),e===null)throw Error(N(188));return e!==t?null:t}for(var n=t,r=e;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return pg(s),t;if(i===r)return pg(s),e;i=i.sibling}throw Error(N(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?t:e}function Yw(t){return t=BE(t),t!==null?Qw(t):null}function Qw(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Qw(t);if(e!==null)return e;t=t.sibling}return null}var Zw=Lt.unstable_scheduleCallback,mg=Lt.unstable_cancelCallback,zE=Lt.unstable_shouldYield,WE=Lt.unstable_requestPaint,Me=Lt.unstable_now,HE=Lt.unstable_getCurrentPriorityLevel,Jf=Lt.unstable_ImmediatePriority,Jw=Lt.unstable_UserBlockingPriority,ec=Lt.unstable_NormalPriority,KE=Lt.unstable_LowPriority,Xw=Lt.unstable_IdlePriority,qc=null,Rn=null;function qE(t){if(Rn&&typeof Rn.onCommitFiberRoot=="function")try{Rn.onCommitFiberRoot(qc,t,void 0,(t.current.flags&128)===128)}catch{}}var yn=Math.clz32?Math.clz32:QE,GE=Math.log,YE=Math.LN2;function QE(t){return t>>>=0,t===0?32:31-(GE(t)/YE|0)|0}var il=64,ol=4194304;function Oo(t){switch(t&-t){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: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function tc(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,s=t.suspendedLanes,i=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Oo(a):(i&=o,i!==0&&(r=Oo(i)))}else o=n&~s,o!==0?r=Oo(o):i!==0&&(r=Oo(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&s)&&(s=r&-r,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-yn(e),s=1<<n,r|=t[n],e&=~s;return r}function ZE(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64: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 e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function JE(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,s=t.expirationTimes,i=t.pendingLanes;0<i;){var o=31-yn(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=ZE(a,e)):l<=e&&(t.expiredLanes|=a),i&=~a}}function ih(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function ex(){var t=il;return il<<=1,!(il&4194240)&&(il=64),t}function Fu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Va(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-yn(e),t[e]=n}function XE(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var s=31-yn(n),i=1<<s;e[s]=0,r[s]=-1,t[s]=-1,n&=~i}}function Xf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-yn(n),s=1<<r;s&e|t[r]&e&&(t[r]|=e),n&=~s}}var fe=0;function tx(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var nx,ep,rx,sx,ix,oh=!1,al=[],Lr=null,Mr=null,$r=null,na=new Map,ra=new Map,Sr=[],eT="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 submit".split(" ");function gg(t,e){switch(t){case"focusin":case"focusout":Lr=null;break;case"dragenter":case"dragleave":Mr=null;break;case"mouseover":case"mouseout":$r=null;break;case"pointerover":case"pointerout":na.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ra.delete(e.pointerId)}}function wo(t,e,n,r,s,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},e!==null&&(e=Fa(e),e!==null&&ep(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function tT(t,e,n,r,s){switch(e){case"focusin":return Lr=wo(Lr,t,e,n,r,s),!0;case"dragenter":return Mr=wo(Mr,t,e,n,r,s),!0;case"mouseover":return $r=wo($r,t,e,n,r,s),!0;case"pointerover":var i=s.pointerId;return na.set(i,wo(na.get(i)||null,t,e,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ra.set(i,wo(ra.get(i)||null,t,e,n,r,s)),!0}return!1}function ox(t){var e=vs(t.target);if(e!==null){var n=Fs(e);if(n!==null){if(e=n.tag,e===13){if(e=Gw(n),e!==null){t.blockedOn=e,ix(t.priority,function(){rx(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Nl(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=ah(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);th=r,n.target.dispatchEvent(r),th=null}else return e=Fa(n),e!==null&&ep(e),t.blockedOn=n,!1;e.shift()}return!0}function yg(t,e,n){Nl(t)&&n.delete(e)}function nT(){oh=!1,Lr!==null&&Nl(Lr)&&(Lr=null),Mr!==null&&Nl(Mr)&&(Mr=null),$r!==null&&Nl($r)&&($r=null),na.forEac
vendor: 11,841 bytes, line 38
38h(yg),ra.forEach(yg)}function xo(t,e){t.blockedOn===e&&(t.blockedOn=null,oh||(oh=!0,Lt.unstable_scheduleCallback(Lt.unstable_NormalPriority,nT)))}function sa(t){function e(s){return xo(s,t)}if(0<al.length){xo(al[0],t);for(var n=1;n<al.length;n++){var r=al[n];r.blockedOn===t&&(r.blockedOn=null)}}for(Lr!==null&&xo(Lr,t),Mr!==null&&xo(Mr,t),$r!==null&&xo($r,t),na.forEach(e),ra.forEach(e),n=0;n<Sr.length;n++)r=Sr[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Sr.length&&(n=Sr[0],n.blockedOn===null);)ox(n),n.blockedOn===null&&Sr.shift()}var Ei=rr.ReactCurrentBatchConfig,nc=!0;function rT(t,e,n,r){var s=fe,i=Ei.transition;Ei.transition=null;try{fe=1,tp(t,e,n,r)}finally{fe=s,Ei.transition=i}}function sT(t,e,n,r){var s=fe,i=Ei.transition;Ei.transition=null;try{fe=4,tp(t,e,n,r)}finally{fe=s,Ei.transition=i}}function tp(t,e,n,r){if(nc){var s=ah(t,e,n,r);if(s===null)Zu(t,e,r,rc,n),gg(t,r);else if(tT(s,t,e,n,r))r.stopPropagation();else if(gg(t,r),e&4&&-1<eT.indexOf(t)){for(;s!==null;){var i=Fa(s);if(i!==null&&nx(i),i=ah(t,e,n,r),i===null&&Zu(t,e,r,rc,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Zu(t,e,r,null,n)}}var rc=null;function ah(t,e,n,r){if(rc=null,t=Zf(r),t=vs(t),t!==null)if(e=Fs(t),e===null)t=null;else if(n=e.tag,n===13){if(t=Gw(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return rc=t,null}function ax(t){switch(t){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(HE()){case Jf:return 1;case Jw:return 4;case ec:case KE:return 16;case Xw:return 536870912;default:return 16}default:return 16}}var Or=null,np=null,Il=null;function lx(){if(Il)return Il;var t,e=np,n=e.length,r,s="value"in Or?Or.value:Or.textContent,i=s.length;for(t=0;t<n&&e[t]===s[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===s[i-r];r++);return Il=s.slice(t,1<r?1-r:void 0)}function Dl(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ll(){return!0}function vg(){return!1}function Ut(t){function e(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ll:vg,this.isPropagationStopped=vg,this}return je(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ll)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ll)},persist:function(){},isPersistent:ll}),e}var ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rp=Ut(ro),Ua=je({},ro,{view:0,detail:0}),iT=Ut(Ua),Bu,zu,bo,Gc=je({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sp,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==bo&&(bo&&t.type==="mousemove"?(Bu=t.screenX-bo.screenX,zu=t.screenY-bo.screenY):zu=Bu=0,bo=t),Bu)},movementY:function(t){return"movementY"in t?t.movementY:zu}}),wg=Ut(Gc),oT=je({},Gc,{dataTransfer:0}),aT=Ut(oT),lT=je({},Ua,{relatedTarget:0}),Wu=Ut(lT),cT=je({},ro,{animationName:0,elapsedTime:0,pseudoElement:0}),uT=Ut(cT),dT=je({},ro,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),hT=Ut(dT),fT=je({},ro,{data:0}),xg=Ut(fT),pT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mT={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"},gT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yT(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=gT[t])?!!e[t]:!1}function sp(){return yT}var vT=je({},Ua,{key:function(t){if(t.key){var e=pT[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Dl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?mT[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sp,charCode:function(t){return t.type==="keypress"?Dl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Dl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),wT=Ut(vT),xT=je({},Gc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bg=Ut(xT),bT=je({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sp}),_T=Ut(bT),ST=je({},ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),kT=Ut(ST),ET=je({},Gc,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),TT=Ut(ET),CT=[9,13,27,32],ip=Yn&&"CompositionEvent"in window,Vo=null;Yn&&"documentMode"in document&&(Vo=document.documentMode);var PT=Yn&&"TextEvent"in window&&!Vo,cx=Yn&&(!ip||Vo&&8<Vo&&11>=Vo),_g=" ",Sg=!1;function ux(t,e){switch(t){case"keyup":return CT.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dx(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ai=!1;function AT(t,e){switch(t){case"compositionend":return dx(e);case"keypress":return e.which!==32?null:(Sg=!0,_g);case"textInput":return t=e.data,t===_g&&Sg?null:t;default:return null}}function RT(t,e){if(ai)return t==="compositionend"||!ip&&ux(t,e)?(t=lx(),Il=np=Or=null,ai=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return cx&&e.locale!=="ko"?null:e.data;default:return null}}var OT={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 kg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!OT[t.type]:e==="textarea"}function hx(t,e,n,r){zw(r),e=sc(e,"onChange"),0<e.length&&(n=new rp("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Uo=null,ia=null;function jT(t){Sx(t,0)}function Yc(t){var e=ui(t);if(Lw(e))return t}function NT(t,e){if(t==="change")return e}var fx=!1;if(Yn){var Hu;if(Yn){var Ku="oninput"in document;if(!Ku){var Eg=document.createElement("div");Eg.setAttribute("oninput","return;"),Ku=typeof Eg.oninput=="function"}Hu=Ku}else Hu=!1;fx=Hu&&(!document.documentMode||9<document.documentMode)}function Tg(){Uo&&(Uo.detachEvent("onpropertychange",px),ia=Uo=null)}function px(t){if(t.propertyName==="value"&&Yc(ia)){var e=[];hx(e,ia,t,Zf(t)),qw(jT,e)}}function IT(t,e,n){t==="focusin"?(Tg(),Uo=e,ia=n,Uo.attachEvent("onpropertychange",px)):t==="focusout"&&Tg()}function DT(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Yc(ia)}function LT(t,e){if(t==="click")return Yc(e)}function MT(t,e){if(t==="input"||t==="change")return Yc(e)}function $T(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var wn=typeof Object.is=="function"?Object.is:$T;function oa(t,e){if(wn(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!zd.call(e,s)||!wn(t[s],e[s]))return!1}return!0}function Cg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Pg(t,e){var n=Cg(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cg(n)}}function mx(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?mx(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function gx(){for(var t=window,e=Zl();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Zl(t.document)}return e}function op(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function VT(t){var e=gx(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&mx(n.ownerDocument.documentElement,n)){if(r!==null&&op(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!t.extend&&i>r&&(s=r,r=i,i=s),s=Pg(n,i);var o=Pg(n,r);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var UT=Yn&&"documentMode"in document&&11>=document.documentMode,li=null,lh=null,Fo=null,ch=!1;function Ag(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ch||li==null||li!==Zl(r)||(r=li,"selectionStart"in r&&op(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 38
38sNode:r.focusNode,focusOffset:r.focusOffset}),Fo&&oa(Fo,r)||(Fo=r,r=sc(lh,"onSelect"),0<r.length&&(e=new rp("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=li)))}function cl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ci={animationend:cl("Animation","AnimationEnd"),animationiteration:cl("Animation","AnimationIteration"),animationstart:cl("Animation","AnimationStart"),transitionend:cl("Transition","TransitionEnd")},qu={},yx={};Yn&&(yx=document.createElement("div").style,"AnimationEvent"in window||(delete ci.animationend.animation,delete ci.animationiteration.animation,delete ci.animationstart.animation),"TransitionEvent"in window||delete ci.transitionend.transition);function Qc(t){if(qu[t])return qu[t];if(!ci[t])return t;var e=ci[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in yx)return qu[t]=e[n];return t}var vx=Qc("animationend"),wx=Qc("animationiteration"),xx=Qc("animationstart"),bx=Qc("transitionend"),_x=new Map,Rg="abort auxClick 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(" ");function ts(t,e){_x.set(t,e),Us(e,[t])}for(var Gu=0;Gu<Rg.length;Gu++){var Yu=Rg[Gu],FT=Yu.toLowerCase(),BT=Yu[0].toUpperCase()+Yu.slice(1);ts(FT,"on"+BT)}ts(vx,"onAnimationEnd");ts(wx,"onAnimationIteration");ts(xx,"onAnimationStart");ts("dblclick","onDoubleClick");ts("focusin","onFocus");ts("focusout","onBlur");ts(bx,"onTransitionEnd");Ui("onMouseEnter",["mouseout","mouseover"]);Ui("onMouseLeave",["mouseout","mouseover"]);Ui("onPointerEnter",["pointerout","pointerover"]);Ui("onPointerLeave",["pointerout","pointerover"]);Us("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Us("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Us("onBeforeInput",["compositionend","keypress","textInput","paste"]);Us("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Us("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Us("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jo="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(" "),zT=new Set("cancel close invalid load scroll toggle".split(" ").concat(jo));function Og(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,FE(r,e,void 0,t),t.currentTarget=null}function Sx(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],s=r.event;r=r.listeners;e:{var i=void 0;if(e)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;Og(s,a,c),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;Og(s,a,c),i=l}}}if(Xl)throw t=sh,Xl=!1,sh=null,t}function _e(t,e){var n=e[ph];n===void 0&&(n=e[ph]=new Set);var r=t+"__bubble";n.has(r)||(kx(e,t,2,!1),n.add(r))}function Qu(t,e,n){var r=0;e&&(r|=4),kx(n,t,r,e)}var ul="_reactListening"+Math.random().toString(36).slice(2);function aa(t){if(!t[ul]){t[ul]=!0,Ow.forEach(function(n){n!=="selectionchange"&&(zT.has(n)||Qu(n,!1,t),Qu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ul]||(e[ul]=!0,Qu("selectionchange",!1,e))}}function kx(t,e,n,r){switch(ax(e)){case 1:var s=rT;break;case 4:s=sT;break;default:s=tp}n=s.bind(null,e,n,t),s=void 0,!rh||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),r?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function Zu(t,e,n,r,s){var i=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;
vendor: 5,316 bytes, lines 38-39
38if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=vs(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}qw(function(){var c=i,u=Zf(n),d=[];e:{var h=_x.get(t);if(h!==void 0){var f=rp,w=t;switch(t){case"keypress":if(Dl(n)===0)break e;case"keydown":case"keyup":f=wT;break;case"focusin":w="focus",f=Wu;break;case"focusout":w="blur",f=Wu;break;case"beforeblur":case"afterblur":f=Wu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=wg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=aT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=_T;break;case vx:case wx:case xx:f=uT;break;case bx:f=kT;break;case"scroll":f=iT;break;case"wheel":f=TT;break;case"copy":case"cut":case"paste":f=hT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=bg}var p=(e&4)!==0,x=!p&&t==="scroll",y=p?h!==null?h+"Capture":null:h;p=[];for(var m=c,v;m!==null;){v=m;var _=v.stateNode;if(v.tag===5&&_!==null&&(v=_,y!==null&&(_=ta(m,y),_!=null&&p.push(la(m,_,v)))),x)break;m=m.return}0<p.length&&(h=new f(h,w,null,n,u),d.push({event:h,listeners:p}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",h&&n!==th&&(w=n.relatedTarget||n.fromElement)&&(vs(w)||w[Qn]))break e;if((f||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,f?(w=n.relatedTarget||n.toElement,f=c,w=w?vs(w):null,w!==null&&(x=Fs(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(f=null,w=c),f!==w)){if(p=wg,_="onMouseLeave",y="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(p=bg,_="onPointerLeave",y="onPointerEnter",m="pointer"),x=f==null?h:ui(f),v=w==null?h:ui(w),h=new p(_,m+"leave",f,n,u),h.target=x,h.relatedTarget=v,_=null,vs(u)===c&&(p=new p(y,m+"enter",w,n,u),p.target=v,p.relatedTarget=x,_=p),x=_,f&&w)t:{for(p=f,y=w,m=0,v=p;v;v=Gs(v))m++;for(v=0,_=y;_;_=Gs(_))v++;for(;0<m-v;)p=Gs(p),m--;for(;0<v-m;)y=Gs(y),v--;for(;m--;){if(p===y||y!==null&&p===y.alternate)break t;p=Gs(p),y=Gs(y)}p=null}else p=null;f!==null&&jg(d,h,f,p,!1),w!==null&&x!==null&&jg(d,x,w,p,!0)}}e:{if(h=c?ui(c):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var S=NT;else if(kg(h))if(fx)S=MT;else{S=DT;var k=IT}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=LT);if(S&&(S=S(t,c))){hx(d,S,n,u);break e}k&&k(t,h,c),t==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&Qd(h,"number",h.value)}switch(k=c?ui(c):window,t){case"focusin":(kg(k)||k.contentEditable==="true")&&(li=k,lh=c,Fo=null);break;case"focusout":Fo=lh=li=null;break;case"mousedown":ch=!0;break;case"contextmenu":case"mouseup":case"dragend":ch=!1,Ag(d,n,u);break;case"selectionchange":if(UT)break;case"keydown":case"keyup":Ag(d,n,u)}var E;if(ip)e:{switch(t){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else ai?ux(t,n)&&(T="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(cx&&n.locale!=="ko"&&(ai||T!=="onCompositionStart"?T==="onCompositionEnd"&&ai&&(E=lx()):(Or=u,np="value"in Or?Or.value:Or.textContent,ai=!0)),k=sc(c,T),0<k.length&&(T=new xg(T,t,null,n,u),d.push({event:T,listeners:k}),E?T.data=E:(E=dx(n),E!==null&&(T.data=E)))),(E=PT?AT(t,n):RT(t,n))&&(c=sc(c,"onBeforeInput"),0<c.length&&(u=new xg("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=E))}Sx(d,e)})}function la(t,e,n){return{instance:t,listener:e,currentTarget:n}}function sc(t,e){for(var n=e+"Capture",r=[];t!==null;){var s=t,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ta(t,n),i!=null&&r.unshift(la(t,i,s)),i=ta(t,e),i!=null&&r.push(la(t,i,s))),t=t.return}return r}function Gs(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function jg(t,e,n,r,s){for(var i=e._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,s?(l=ta(n,i),l!=null&&o.unshift(la(n,l,a))):s||(l=ta(n,i),l!=null&&o.push(la(n,l,a)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var WT=/\r\n?/g,HT=/\u0000|\uFFFD/g;function Ng(t){return(typeof t=="string"?t:""+t).replace(WT,` 39`).replace(HT,"")}function dl(t,e,n){if(e=Ng(e),Ng(t)!==e&&n)throw Error(N(425))}function ic(){}var uh=null,dh=null;function hh(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var fh=typeof setTimeout=="function"?setTimeout:void 0,KT=typeof clearTimeout=="function"?clearTimeout:void 0,Ig=typeof Promise=="function"?Promise:void 0,qT=typeof queueMicrotask=="function"?queueMicrotask:typeof Ig<"u"?function(t){return Ig.resolve(null).then(t).cat
vendor: 4,824 bytes, line 39
39ch(GT)}:fh;function GT(t){setTimeout(function(){throw t})}function Ju(t,e){var n=e,r=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){t.removeChild(s),sa(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);sa(e)}function Vr(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Dg(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var so=Math.random().toString(36).slice(2),Pn="__reactFiber$"+so,ca="__reactProps$"+so,Qn="__reactContainer$"+so,ph="__reactEvents$"+so,YT="__reactListeners$"+so,QT="__reactHandles$"+so;function vs(t){var e=t[Pn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Qn]||n[Pn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Dg(t);t!==null;){if(n=t[Pn])return n;t=Dg(t)}return e}t=n,n=t.parentNode}return null}function Fa(t){return t=t[Pn]||t[Qn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function ui(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(N(33))}function Zc(t){return t[ca]||null}var mh=[],di=-1;function ns(t){return{current:t}}function Se(t){0>di||(t.current=mh[di],mh[di]=null,di--)}function ye(t,e){di++,mh[di]=t.current,t.current=e}var qr={},dt=ns(qr),kt=ns(!1),Ns=qr;function Fi(t,e){var n=t.type.contextTypes;if(!n)return qr;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function Et(t){return t=t.childContextTypes,t!=null}function oc(){Se(kt),Se(dt)}function Lg(t,e,n){if(dt.current!==qr)throw Error(N(168));ye(dt,e),ye(kt,n)}function Ex(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(N(108,IE(t)||"Unknown",s));return je({},n,r)}function ac(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||qr,Ns=dt.current,ye(dt,t),ye(kt,kt.current),!0}function Mg(t,e,n){var r=t.stateNode;if(!r)throw Error(N(169));n?(t=Ex(t,e,Ns),r.__reactInternalMemoizedMergedChildContext=t,Se(kt),Se(dt),ye(dt,t)):Se(kt),ye(kt,n)}var Wn=null,Jc=!1,Xu=!1;function Tx(t){Wn===null?Wn=[t]:Wn.push(t)}function ZT(t){Jc=!0,Tx(t)}function rs(){if(!Xu&&Wn!==null){Xu=!0;var t=0,e=fe;try{var n=Wn;for(fe=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Wn=null,Jc=!1}catch(s){throw Wn!==null&&(Wn=Wn.slice(t+1)),Zw(Jf,rs),s}finally{fe=e,Xu=!1}}return null}var hi=[],fi=0,lc=null,cc=0,Wt=[],Ht=0,Is=null,Kn=1,qn="";function hs(t,e){hi[fi++]=cc,hi[fi++]=lc,lc=t,cc=e}function Cx(t,e,n){Wt[Ht++]=Kn,Wt[Ht++]=qn,Wt[Ht++]=Is,Is=t;var r=Kn;t=qn;var s=32-yn(r)-1;r&=~(1<<s),n+=1;var i=32-yn(e)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Kn=1<<32-yn(e)+s|n<<s|r,qn=i+t}else Kn=1<<i|n<<s|r,qn=t}function ap(t){t.return!==null&&(hs(t,1),Cx(t,1,0))}function lp(t){for(;t===lc;)lc=hi[--fi],hi[fi]=null,cc=hi[--fi],hi[fi]=null;for(;t===Is;)Is=Wt[--Ht],Wt[Ht]=null,qn=Wt[--Ht],Wt[Ht]=null,Kn=Wt[--Ht],Wt[Ht]=null}var It=null,Nt=null,Te=!1,gn=null;function Px(t,e){var n=Kt(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function $g(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,It=t,Nt=Vr(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,It=t,Nt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Is!==null?{id:Kn,overflow:qn}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=Kt(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,It=t,Nt=null,!0):!1;default:return!1}}function gh(t){return(t.mode&1)!==0&&(t.flags&128)===0}function yh(t){if(Te){var e=Nt;if(e){var n=e;if(!$g(t,e)){if(gh(t))throw Error(N(418));e=Vr(n.nextSibling);var r=It;e&&$g(t,e)?Px(r,n):(t.flags=t.flags&-4097|2,Te=!1,It=t)}}else{if(gh(t))throw Error(N(418));t.flags=t.flags&-4097|2,Te=!1,It=t}}}function Vg(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;It=t}function hl(t){if(t!==It)return!1;if(!Te)return Vg(t),Te=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!hh(t.type,t.memoizedProps)),e&&(e=Nt)){if(gh(t))throw Ax(),Error(N(418));for(;e;)Px(t,e),e=Vr(e.nextSibling)}if(Vg(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(N(317));e:{for(t=t.nextSibling,e=0;t;
vendor: 24,898 bytes, lines 39-41
39){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Nt=Vr(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Nt=null}}else Nt=It?Vr(t.stateNode.nextSibling):null;return!0}function Ax(){for(var t=Nt;t;)t=Vr(t.nextSibling)}function Bi(){Nt=It=null,Te=!1}function cp(t){gn===null?gn=[t]:gn.push(t)}var JT=rr.ReactCurrentBatchConfig;function _o(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,t));var s=r,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},e._stringRef=i,e)}if(typeof t!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,t))}return t}function fl(t,e){throw t=Object.prototype.toString.call(e),Error(N(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Ug(t){var e=t._init;return e(t._payload)}function Rx(t){function e(y,m){if(t){var v=y.deletions;v===null?(y.deletions=[m],y.flags|=16):v.push(m)}}function n(y,m){if(!t)return null;for(;m!==null;)e(y,m),m=m.sibling;return null}function r(y,m){for(y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function s(y,m){return y=zr(y,m),y.index=0,y.sibling=null,y}function i(y,m,v){return y.index=v,t?(v=y.alternate,v!==null?(v=v.index,v<m?(y.flags|=2,m):v):(y.flags|=2,m)):(y.flags|=1048576,m)}function o(y){return t&&y.alternate===null&&(y.flags|=2),y}function a(y,m,v,_){return m===null||m.tag!==6?(m=od(v,y.mode,_),m.return=y,m):(m=s(m,v),m.return=y,m)}function l(y,m,v,_){var S=v.type;return S===oi?u(y,m,v.props.children,_,v.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===vr&&Ug(S)===m.type)?(_=s(m,v.props),_.ref=_o(y,m,v),_.return=y,_):(_=Bl(v.type,v.key,v.props,null,y.mode,_),_.ref=_o(y,m,v),_.return=y,_)}function c(y,m,v,_){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=ad(v,y.mode,_),m.return=y,m):(m=s(m,v.children||[]),m.return=y,m)}function u(y,m,v,_,S){return m===null||m.tag!==7?(m=Os(v,y.mode,_,S),m.return=y,m):(m=s(m,v),m.return=y,m)}function d(y,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=od(""+m,y.mode,v),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case nl:return v=Bl(m.type,m.key,m.props,null,y.mode,v),v.ref=_o(y,null,m),v.return=y,v;case ii:return m=ad(m,y.mode,v),m.return=y,m;case vr:var _=m._init;return d(y,_(m._payload),v)}if(Ro(m)||yo(m))return m=Os(m,y.mode,v,null),m.return=y,m;fl(y,m)}return null}function h(y,m,v,_){var S=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return S!==null?null:a(y,m,""+v,_);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case nl:return v.key===S?l(y,m,v,_):null;case ii:return v.key===S?c(y,m,v,_):null;case vr:return S=v._init,h(y,m,S(v._payload),_)}if(Ro(v)||yo(v))return S!==null?null:u(y,m,v,_,null);fl(y,v)}return null}function f(y,m,v,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return y=y.get(v)||null,a(m,y,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case nl:return y=y.get(_.key===null?v:_.key)||null,l(m,y,_,S);case ii:return y=y.get(_.key===null?v:_.key)||null,c(m,y,_,S);case vr:var k=_._init;return f(y,m,v,k(_._payload),S)}if(Ro(_)||yo(_))return y=y.get(v)||null,u(m,y,_,S,null);fl(m,_)}return null}function w(y,m,v,_){for(var S=null,k=null,E=m,T=m=0,P=null;E!==null&&T<v.length;T++){E.index>T?(P=E,E=null):P=E.sibling;var O=h(y,E,v[T],_);if(O===null){E===null&&(E=P);break}t&&E&&O.alternate===null&&e(y,E),m=i(O,m,T),k===null?S=O:k.sibling=O,k=O,E=P}if(T===v.length)return n(y,E),Te&&hs(y,T),S;if(E===null){for(;T<v.length;T++)E=d(y,v[T],_),E!==null&&(m=i(E,m,T),k===null?S=E:k.sibling=E,k=E);return Te&&hs(y,T),S}for(E=r(y,E);T<v.length;T++)P=f(E,y,T,v[T],_),P!==null&&(t&&P.alternate!==null&&E.delete(P.key===null?T:P.key),m=i(P,m,T),k===null?S=P:k.sibling=P,k=P);return t&&E.forEach(function(B){return e(y,B)}),Te&&hs(y,T),S}function p(y,m,v,_){var S=yo(v);if(typeof S!="function")throw Error(N(150));if(v=S.call(v),v==null)throw Error(N(151));for(var k=S=null,E=m,T=m=0,P=null,O=v.next();E!==null&&!O.done;T++,O=v.next()){E.index>T?(P=E,E=null):P=E.sibling;var B=h(y,E,O.value,_);if(B===null){E===null&&(E=P);break}t&&E&&B.alternate===null&&e(y,E),m=i(B,m,T),k===null?S=B:k.sibling=B,k=B,E=P}if(O.done)return n(y,E),Te&&hs(y,T),S;if(E===null){for(;!O.done;T++,O=v.next())O=d(y,O.value,_),O!==null&&(m=i(O,m,T),k===null?S=O:k.sibling=O,k=O);return Te&&hs(y,T),S}for(E=r(y,E);!O.done;T++,O=v.next())O=f(E,y,T,O.value,_),O!==null&&(t&&O.alternate!==null&&E.delete(O.key===null?T:O.key),m=i(O,m,T),k===null?S=O:k.sibling=O,k=O);return t&&E.forEach(function(D){return e(y,D)}),Te&&hs(y,T),S}function x(y,m,v,_){if(typeof v=="object"&&v!==null&&v.type===oi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case nl:e:{for(var S=v.key,k=m;k!==null;){if(k.key===S){if(S=v.type,S===oi){if(k.tag===7){n(y,k.sibling),m=s(k,v.props.children),m.return=y,y=m;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===vr&&Ug(S)===k.type){n(y,k.sibling),m=s(k,v.props),m.ref=_o(y,k,v),m.return=y,y=m;break e}n(y,k);break}else e(y,k);k=k.sibling}v.type===oi?(m=Os(v.props.children,y.mode,_,v.key),m.return=y,y=m):(_=Bl(v.type,v.key,v.props,null,y.mode,_),_.ref=_o(y,m,v),_.return=y,y=_)}return o(y);case ii:e:{for(k=v.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(y,m.sibling),m=s(m,v.children||[]),m.return=y,y=m;break e}else{n(y,m);break}else e(y,m);m=m.sibling}m=ad(v,y.mode,_),m.return=y,y=m}return o(y);case vr:return k=v._init,x(y,m,k(v._payload),_)}if(Ro(v))return w(y,m,v,_);if(yo(v))return p(y,m,v,_);fl(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(y,m.sibling),m=s(m,v),m.return=y,y=m):(n(y,m),m=od(v,y.mode,_),m.return=y,y=m),o(y)):n(y,m)}return x}var zi=Rx(!0),Ox=Rx(!1),uc=ns(null),dc=null,pi=null,up=null;function dp(){up=pi=dc=null}function hp(t){var e=uc.current;Se(uc),t._currentValue=e}function vh(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Ti(t,e){dc=t,up=pi=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(St=!0),t.firstContext=null)}function Qt(t){var e=t._currentValue;if(up!==t)if(t={context:t,memoizedValue:e,next:null},pi===null){if(dc===null)throw Error(N(308));pi=t,dc.dependencies={lanes:0,firstContext:t}}else pi=pi.next=t;return e}var ws=null;function fp(t){ws===null?ws=[t]:ws.push(t)}function jx(t,e,n,r){var s=e.interleaved;return s===null?(n.next=n,fp(e)):(n.next=s.next,s.next=n),e.interleaved=n,Zn(t,r)}function Zn(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var wr=!1;function pp(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Nx(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Gn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Ur(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var s=r.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),r.pending=e,Zn(t,n)}return s=r.interleaved,s===null?(e.next=e,fp(r)):(e.next=s.next,s.next=e),r.interleaved=e,Zn(t,n)}function Ll(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Xf(t,n)}}function Fg(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=e:i=i.next=e}else s=i=e;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function hc(t,e,n,r){var s=t.updateQueue;wr=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?i=c:o.next=c,o=l;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,u=c=l=null,a=i;do{var h=a.lane,f=a.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=t,p=a;switch(h=e,f=n,p.tag){case 1:if(w=p.payload,typeof w=="function"){d=w.call(f,d,h);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=p.payload,h=typeof w=="function"?w.call(f,d,h):w,h==null)break e;d=je({},d,h);break e;case 2:wr=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=f,l=d):u=u.next=f,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(u===null&&(l=d),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=u,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);Ls|=o,t.lanes=o,t.memoizedState=d}}function Bg(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(N(191,s));s.call(r)}}}var Ba={},On=ns(Ba),ua=ns(Ba),da=ns(Ba);function xs(t){if(t===Ba)throw Error(N(174));return t}function mp(t,e){switch(ye(da,e),ye(ua,t),ye(On,Ba),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Jd(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Jd(e,t)}Se(On),ye(On,e)}function Wi(){Se(On),Se(ua),Se(da)}function Ix(t){xs(da.current);var e=xs(On.current),n=Jd(e,t.type);e!==n&&(ye(ua,t),ye(On,n))}function gp(t){ua.current===t&&(Se(On),Se(ua))}var Ae=ns(0);function fc(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ed=[];function yp(){for(var t=0;t<ed.length;t++)ed[t]._workInProgressVersionPrimary=null;ed.length=0}var Ml=rr.ReactCurrentDispatcher,td=rr.ReactCurrentBatchConfig,Ds=0,Oe=null,qe=null,Qe=null,pc=!1,Bo=!1,ha=0,XT=0;function ot(){throw Error(N(321))}function vp(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!wn(t[n],e[n]))return!1;return!0}function wp(t,e,n,r,s,i){if(Ds=i,Oe=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Ml.current=t===null||t.memoizedState===null?rC:sC,t=n(r,s),Bo){i=0;do{if(Bo=!1,ha=0,25<=i)throw Error(N(301));i+=1,Qe=qe=null,e.updateQueue=null,Ml.current=iC,t=n(r,s)}while(Bo)}if(Ml.current=mc,e=qe!==null&&qe.next!==null,Ds=0,Qe=qe=Oe=null,pc=!1,e)throw Error(N(300));return t}function xp(){var t=ha!==0;return ha=0,t}function kn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Oe.memoizedState=Qe=t:Qe=Qe.next=t,Qe}function Zt(){if(qe===null){var t=Oe.alternate;t=t!==null?t.memoizedState:null}else t=qe.next;var e=Qe===null?Oe.memoizedState:Qe.next;if(e!==null)Qe=e,qe=t;else{if(t===null)throw Error(N(310));qe=t,t={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Qe===null?Oe.memoizedState=Qe=t:Qe=Qe.next=t}return Qe}function fa(t,e){return typeof e=="function"?e(t):e}function nd(t){var e=Zt(),n=e.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=t;var r=qe,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,c=i;do{var u=c.lane;if((Ds&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:t(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,Oe.lanes|=u,Ls|=u}c=c.next}while(c!==null&&c!==i);l===null?o=r:l.next=a,wn(r,e.memoizedState)||(St=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){s=t;do i=s.lane,Oe.lanes|=i,Ls|=i,s=s.next;while(s!==t)}else s===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function rd(t){var e=Zt(),n=e.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=t;var r=n.dispatch,s=n.pending,i=e.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=t(i,o.action),o=o.next;while(o!==s);wn(i,e.memoizedState)||(St=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,r]}function Dx(){}function Lx(t,e){var n=Oe,r=Zt(),s=e(),i=!wn(r.memoizedState,s);if(i&&(r.memoizedState=s,St=!0),r=r.queue,bp(Vx.bind(null,n,r,t),[t]),r.getSnapshot!==e||i||Qe!==null&&Qe.memoizedState.tag&1){if(n.flags|=2048,pa(9,$x.bind(null,n,r,s,e),void 0,null),Ze===null)throw Error(N(349));Ds&30||Mx(n,e,s)}return s}function Mx(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Oe.updateQueue,e===null?(e={lastEffect:null,stores:null},Oe.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function $x(t,e,n,r){e.value=n,e.getSnapshot=r,Ux(e)&&Fx(t)}function Vx(t,e,n){return n(function(){Ux(e)&&Fx(t)})}function Ux(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!wn(t,n)}catch{return!0}}function Fx(t){var e=Zn(t,1);e!==null&&vn(e,t,1,-1)}function zg(t){var e=kn();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:t},e.queue=t,t=t.dispatch=nC.bind(null,Oe,t),[e.memoizedState,t]}function pa(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=Oe.updateQueue,e===null?(e={lastEffect:null,stores:null},Oe.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function Bx(){return Zt().memoizedState}function $l(t,e,n,r){var s=kn();Oe.flags|=t,s.memoizedState=pa(1|e,n,void 0,r===void 0?null:r)}function Xc(t,e,n,r){var s=Zt();r=r===void 0?null:r;var i=void 0;if(qe!==null){var o=qe.memoizedState;if(i=o.destroy,r!==null&&vp(r,o.deps)){s.memoizedState=pa(e,n,i,r);return}}Oe.flags|=t,s.memoizedState=pa(1|e,n,i,r)}function Wg(t,e){return $l(8390656,8,t,e)}function bp(t,e){return Xc(2048,8,t,e)}function zx(t,e){return Xc(4,2,t,e)}function Wx(t,e){return Xc(4,4,t,e)}function Hx(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Kx(t,e,n){return n=n!=null?n.concat([t]):null,Xc(4,4,Hx.bind(null,e,t),n)}function _p(){}function qx(t,e){var n=Zt();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&vp(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Gx(t,e){var n=Zt();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&vp(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Yx(t,e,n){return Ds&21?(wn(n,e)||(n=ex(),Oe.lanes|=n,Ls|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,St=!0),t.memoizedState=n)}function eC(t,e){var n=fe;fe=n!==0&&4>n?n:4,t(!0);var r=td.transition;td.transition={};try{t(!1),e()}finally{fe=n,td.transition=r}}function Qx(){return Zt().memoizedState}function tC(t,e,n){var r=Br(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zx(t))Jx(e,n);else if(n=jx(t,e,n,r),n!==null){var s=yt();vn(n,t,r,s),Xx(n,e,r)}}function nC(t,e,n){var r=Br(t),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zx(t))Jx(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,wn(a,o)){var l=e.interleaved;l===null?(s.next=s,fp(e)):(s.next=l.next,l.next=s),e.interleaved=s;return}}catch{}finally{}n=jx(t,e,s,r),n!==null&&(s=yt(),vn(n,t,r,s),Xx(n,e,r))}}function Zx(t){var e=t.alternate;return t===Oe||e!==null&&e===Oe}function Jx(t,e){Bo=pc=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Xx(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Xf(t,n)}}var mc={readContext:Qt,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},rC={readContext:Qt,useCallback:function(t,e){return kn().memoizedState=[t,e===void 0?null:e],t},useContext:Qt,useEffect:Wg,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,$l(4194308,4,Hx.bind(null,e,t),n)},useLayoutEffect:function(t,e){return $l(4194308,4,t,e)},useInsertionEffect:function(t,e){return $l(4,2,t,e)},useMemo:function(t,e){var n=kn();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=kn();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=tC.bind(null,Oe,t),[r.memoizedState,t]},useRef:function(t){var e=kn();return t={current:t},e.memoizedState=t},useState:zg,useDebugValue:_p,useDeferredValue:function(t){return kn().memoizedState=t},useTransition:function(){var t=zg(!1),e=t[0];return t=eC.bind(null,t[1]),kn().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Oe,s=kn();if(Te){if(n===void 0)throw Error(N(407));n=n()}else{if(n=e(),Ze===null)throw Error(N(349));Ds&30||Mx(r,e,n)}s.memoizedState=n;var i={value:n,getSnapshot:e};return s.queue=i,Wg(Vx.bind(null,r,i,t),[t]),r.flags|=2048,pa(9,$x.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=kn(),e=Ze.identifierPrefix;if(Te){var n=qn,r=Kn;n=(r&~(1<<32-yn(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=ha++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=XT++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},sC={readContext:Qt,useCallback:qx,useContext:Qt,useEffect:bp,useImperativeHandle:Kx,useInsertionEffect:zx,useLayoutEffect:Wx,useMemo:Gx,useReducer:nd,useRef:Bx,useState:function(){return nd(fa)},useDebugValue:_p,useDeferredValue:function(t){var e=Zt();return Yx(e,qe.memoizedState,t)},useTransition:function(){var t=nd(fa)[0],e=Zt().memoizedState;return[t,e]},useMutableSource:Dx,useSyncExternalStore:Lx,useId:Qx,unstable_isNewReconciler:!1},iC={readContext:Qt,useCallback:qx,useContext:Qt,useEffect:bp,useImperativeHandle:Kx,useInsertionEffect:zx,useLayoutEffect:Wx,useMemo:Gx,useReducer:rd,useRef:Bx,useState:function(){return rd(fa)},useDebugValue:_p,useDeferredValue:function(t){var e=Zt();return qe===null?e.memoizedState=t:Yx(e,qe.memoizedState,t)},useTransition:function(){var t=rd(fa)[0],e=Zt().memoizedState;return[t,e]},useMutableSource:Dx,useSyncExternalStore:Lx,useId:Qx,unstable_isNewReconciler:!1};function cn(t,e){if(t&&t.defaultProps){e=je({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function wh(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:je({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var eu={isMounted:function(t){return(t=t._reactInternals)?Fs(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=yt(),s=Br(t),i=Gn(r,s);i.payload=e,n!=null&&(i.callback=n),e=Ur(t,i,s),e!==null&&(vn(e,t,s,r),Ll(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=yt(),s=Br(t),i=Gn(r,s);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=Ur(t,i,s),e!==null&&(vn(e,t,s,r),Ll(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=yt(),r=Br(t),s=Gn(n,r);s.tag=2,e!=null&&(s.callback=e),e=Ur(t,s,r),e!==null&&(vn(e,t,r,n),Ll(e,t,r))}};function Hg(t,e,n,r,s,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,i,o):e.prototype&&e.prototype.isPureReactComponent?!oa(n,r)||!oa(s,i):!0}function eb(t,e,n){var r=!1,s=qr,i=e.contextType;return typeof i=="object"&&i!==null?i=Qt(i):(s=Et(e)?Ns:dt.current,r=e.contextTypes,i=(r=r!=null)?Fi(t,s):qr),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=eu,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=i),e}function Kg(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&eu.enqueueReplaceState(e,e.state,null)}function xh(t,e,n,r){var s=t.stateNode;s.props=n,s.state=t.memoizedState,s.refs={},pp(t);var i=e.contextType;typeof i=="object"&&i!==null?s.context=Qt(i):(i=Et(e)?Ns:dt.current,s.context=Fi(t,i)),s.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(wh(t,e,i,n),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&eu.enqueueReplaceState(s,s.state,null),hc(t,n,s,r),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function Hi(t,e){try{var n="",r=e;do n+=NE(r),r=r.return;while(r);var s=n}catch(i){s=` 40Error generating stack: `+i.message+` 41`+i.stack}return{value:t,source:e,stack:s,digest:null}}function sd(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function bh(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var oC=typeof WeakMap=="function"?WeakMap:Map;function tb(t,e,n){n=Gn(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){yc||(yc=!0,Oh=r),bh(t,e)},n}function nb(t,e,n){n=Gn(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var s=e.value;n.payload=function(){return r(s)},n.callback=function(){bh(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){bh(t,e),typeof r!="function"&&(Fr===null?Fr=new Set([this]):Fr.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function qg(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new oC;var s=new Set;r.set(e,s)}else s=r.get(e),s===void 0&&(s=new Set,r.set(e,s));s.has(n)||(s.add(n),t=xC.bind(null,t,e,n),e.then(t,t))}function Gg(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Yg(t,e,n,r,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Gn(-1,1),e.tag=2,Ur(n,e,1))),n.lanes|=1),t)}var aC=rr.ReactCurrentOwner,St=!1;function ft(t,e,n,r){e.child=t===null?Ox(e,null,n,r):zi(e,t.child,n,r)}function Qg(t,e,n,r,s){n=n.render;var i=e.ref;return Ti(e,s),r=wp(t,e,n,r,i,s),n=xp(),t!==null&&!St?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Jn(t,e,s)):(Te&&n&&ap(e),e.flags|=1,ft(t,e,r,s),e.child)}function Zg(t,e,n,r,s){if(t===null){var i=n.type;return typeof i=="function"&&!Rp(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,rb(t,e,i,r,s)):(t=Bl(n.type,null,r,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:oa,n(o,r)&&t.ref===e.ref)return Jn(t,e,s)}return e.flags|=1,t=zr(i,r),t.ref=e.ref,t.return=e,e.child=t}function rb(t,e,n,r,s){if(t!==null){var i=t.memoizedProps;if(oa(i,r)&&t.ref===e.ref)if(St=!1,e.pendingProps=r=i,(t.lanes&s)!==0)t.flags&131072&&(St=!0);else return e.lanes=t.lanes,Jn(t,e,s)}return _h(t,e,n,r,s)}
vendor: 8,719 bytes, line 41
41function sb(t,e,n){var r=e.pendingProps,s=r.children,i=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(gi,At),At|=n;else{if(!(n&1073741824))return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ye(gi,At),At|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ye(gi,At),At|=r}else i!==null?(r=i.baseLanes|n,e.memoizedState=null):r=n,ye(gi,At),At|=r;return ft(t,e,s,n),e.child}function ib(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function _h(t,e,n,r,s){var i=Et(n)?Ns:dt.current;return i=Fi(e,i),Ti(e,s),n=wp(t,e,n,r,i,s),r=xp(),t!==null&&!St?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Jn(t,e,s)):(Te&&r&&ap(e),e.flags|=1,ft(t,e,n,s),e.child)}function Jg(t,e,n,r,s){if(Et(n)){var i=!0;ac(e)}else i=!1;if(Ti(e,s),e.stateNode===null)Vl(t,e),eb(e,n,r),xh(e,n,r,s),r=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Qt(c):(c=Et(n)?Ns:dt.current,c=Fi(e,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Kg(e,o,r,c),wr=!1;var h=e.memoizedState;o.state=h,hc(e,r,o,s),l=e.memoizedState,a!==r||h!==l||kt.current||wr?(typeof u=="function"&&(wh(e,n,u,r),l=e.memoizedState),(a=wr||Hg(e,n,a,r,h,l,c))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,Nx(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:cn(e.type,a),o.props=c,d=e.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Qt(l):(l=Et(n)?Ns:dt.current,l=Fi(e,l));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Kg(e,o,r,l),wr=!1,h=e.memoizedState,o.state=h,hc(e,r,o,s);var w=e.memoizedState;a!==d||h!==w||kt.current||wr?(typeof f=="function"&&(wh(e,n,f,r),w=e.memoizedState),(c=wr||Hg(e,n,c,r,h,w,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=w),o.props=r,o.state=w,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),r=!1)}return Sh(t,e,n,r,i,s)}function Sh(t,e,n,r,s,i){ib(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return s&&Mg(e,n,!1),Jn(t,e,i);r=e.stateNode,aC.current=e;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=zi(e,t.child,null,i),e.child=zi(e,null,a,i)):ft(t,e,a,i),e.memoizedState=r.state,s&&Mg(e,n,!0),e.child}function ob(t){var e=t.stateNode;e.pendingContext?Lg(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Lg(t,e.context,!1),mp(t,e.containerInfo)}function Xg(t,e,n,r,s){return Bi(),cp(s),e.flags|=256,ft(t,e,n,r),e.child}var kh={dehydrated:null,treeContext:null,retryLane:0};function Eh(t){return{baseLanes:t,cachePool:null,transitions:null}}function ab(t,e,n){var r=e.pendingProps,s=Ae.current,i=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(s&2)!==0),a?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),ye(Ae,s&1),t===null)return yh(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,i?(r=e.mode,i=e.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=ru(o,r,0,null),t=Os(t,r,n,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=Eh(n),e.memoizedState=kh,t):Sp(e,o));if(s=t.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return lC(t,e,o,r,a,s,n);if(i){i=r.fallback,o=e.mode,s=t.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&e.child!==s?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=zr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=zr(a,i):(i=Os(i,o,n,null),i.flags|=2),i.return=e,r.return=e,r.sibling=i,e.child=r,r=i,i=e.child,o=t.child.memoizedState,o=o===null?Eh(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=t.childLanes&~n,e.memoizedState=kh,r}return i=t.child,t=i.sibling,r=zr(i,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function Sp(t,e){return e=ru({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function pl(t,e,n,r){return r!==null&&cp(r),zi(e,t.child,null,n),t=Sp(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function lC(t,e,n,r,s,i,o){if(n)return e.flags&256?(e.flags&=-257,r=sd(Error(N(422))),pl(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=r.fallback,s=e.mode,r=ru({mode:"visible",children:r.children},s,0,null),i=Os(i,s,o,null),i.flags|=2,r.return=e,i.return=e,r.sibling=i,e.child=r,e.mode&1&&zi(e,t.child,null,o),e.child.memoizedState=Eh(o),e.memoizedState=kh,i);if(!(e.mode&1))return pl(t,e,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(N(419)),r=sd(i,r,void 0),pl(t,e,o,r)}if(a=(o&t.childLanes)!==0,St||a){if(r=Ze,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Zn(t,s),vn(r,t,s,-1))}return Ap(),r=sd(Error(N(421))),pl(t,e,o,r)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=bC.bind(null,t),s._reactRetry=e,null):(t=i.treeContext,Nt=Vr(s.nextSibling),It=e,Te=!0,gn=null,t!==null&&(Wt[Ht++]=Kn,Wt[Ht++]=qn,Wt[Ht++]=Is,Kn=t.id,qn=t.overflow,Is=e),e=Sp(e,r.children),e.flags|=4096,e)}function ey(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),vh(t.return,e,n)}function id(t,e,n,r,s){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function lb(t,e,n){var r=e.pendingProps,s=r.revealOrder,i=r.tail;if(ft(t,e,r.children,n),r=Ae.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ey(t,n,e);else if(t.tag===19)ey(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(ye(Ae,r),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&fc(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),id(e,!1,s,n,i);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&fc(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}id(e,!0,n,null,i);break;case"together":id(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Vl(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}
vendor: 4,903 bytes, line 41
41function Jn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ls|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(N(153));if(e.child!==null){for(t=e.child,n=zr(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=zr(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function cC(t,e,n){switch(e.tag){case 3:ob(e),Bi();break;case 5:Ix(e);break;case 1:Et(e.type)&&ac(e);break;case 4:mp(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,s=e.memoizedProps.value;ye(uc,r._currentValue),r._currentValue=s;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(ye(Ae,Ae.current&1),e.flags|=128,null):n&e.child.childLanes?ab(t,e,n):(ye(Ae,Ae.current&1),t=Jn(t,e,n),t!==null?t.sibling:null);ye(Ae,Ae.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return lb(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ye(Ae,Ae.current),r)break;return null;case 22:case 23:return e.lanes=0,sb(t,e,n)}return Jn(t,e,n)}var cb,Th,ub,db;cb=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Th=function(){};ub=function(t,e,n,r){var s=t.memoizedProps;if(s!==r){t=e.stateNode,xs(On.current);var i=null;switch(n){case"input":s=Gd(t,s),r=Gd(t,r),i=[];break;case"select":s=je({},s,{value:void 0}),r=je({},r,{value:void 0}),i=[];break;case"textarea":s=Zd(t,s),r=Zd(t,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=ic)}Xd(n,r);var o;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Xo.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Xo.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&_e("scroll",t),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(e.updateQueue=c)&&(e.flags|=4)}};db=function(t,e,n,r){n!==r&&(e.flags|=4)};function So(t,e){if(!Te)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function at(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function uC(t,e,n){var r=e.pendingProps;switch(lp(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(e),null;case 1:return Et(e.type)&&oc(),at(e),null;case 3:return r=e.stateNode,Wi(),Se(kt),Se(dt),yp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(hl(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,gn!==null&&(Ih(gn),gn=null))),Th(t,e),at(e),null;case 5:gp(e);var s=xs(da.current);if(n=e.type,t!==null&&e.stateNode!=null)ub(t,e,n,r,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(N(166));return at(e),null}if(t=xs(On.current),hl(e)){r=e.stateNode,n=e.type;var i=e.memoizedProps;switch(r[Pn]=e,r[ca]=i,t=(e.mode&1)!==0,n){case"dialog":_e("cancel",r),_e("close",r);break;case"iframe":case"object":case"embed":_e("load",r);break;case"video":case"audio":for(s=0;s<jo.length;s++)_e(jo[s],r);break;case"source":_e("error",r);break;case"img":case"image":case"link":_e("error",r),_e("load",r);break;case"details":_e("toggle",r);break;case"input":cg(r,i),_e("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},_e("invalid",r);break;case"textarea":dg(r,i),_e("invalid",r)}Xd(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];
vendor: 29,659 bytes, line 41
41o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&dl(r.textContent,a,t),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&dl(r.textContent,a,t),s=["children",""+a]):Xo.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&_e("scroll",r)}switch(n){case"input":rl(r),ug(r,i,!0);break;case"textarea":rl(r),hg(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ic)}r=s,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Vw(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Pn]=e,t[ca]=r,cb(t,e,!1,!1),e.stateNode=t;e:{switch(o=eh(n,r),n){case"dialog":_e("cancel",t),_e("close",t),s=r;break;case"iframe":case"object":case"embed":_e("load",t),s=r;break;case"video":case"audio":for(s=0;s<jo.length;s++)_e(jo[s],t);s=r;break;case"source":_e("error",t),s=r;break;case"img":case"image":case"link":_e("error",t),_e("load",t),s=r;break;case"details":_e("toggle",t),s=r;break;case"input":cg(t,r),s=Gd(t,r),_e("invalid",t);break;case"option":s=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},s=je({},r,{value:void 0}),_e("invalid",t);break;case"textarea":dg(t,r),s=Zd(t,r),_e("invalid",t);break;default:s=r}Xd(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Bw(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Uw(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ea(t,l):typeof l=="number"&&ea(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Xo.hasOwnProperty(i)?l!=null&&i==="onScroll"&&_e("scroll",t):l!=null&&qf(t,i,l,o))}switch(n){case"input":rl(t),ug(t,r,!1);break;case"textarea":rl(t),hg(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Kr(r.value));break;case"select":t.multiple=!!r.multiple,i=r.value,i!=null?_i(t,!!r.multiple,i,!1):r.defaultValue!=null&&_i(t,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=ic)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return at(e),null;case 6:if(t&&e.stateNode!=null)db(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(N(166));if(n=xs(da.current),xs(On.current),hl(e)){if(r=e.stateNode,n=e.memoizedProps,r[Pn]=e,(i=r.nodeValue!==n)&&(t=It,t!==null))switch(t.tag){case 3:dl(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&dl(r.nodeValue,n,(t.mode&1)!==0)}i&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Pn]=e,e.stateNode=r}return at(e),null;case 13:if(Se(Ae),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Te&&Nt!==null&&e.mode&1&&!(e.flags&128))Ax(),Bi(),e.flags|=98560,i=!1;else if(i=hl(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(N(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(N(317));i[Pn]=e}else Bi(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;at(e),i=!1}else gn!==null&&(Ih(gn),gn=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||Ae.current&1?Ye===0&&(Ye=3):Ap())),e.updateQueue!==null&&(e.flags|=4),at(e),null);case 4:return Wi(),Th(t,e),t===null&&aa(e.stateNode.containerInfo),at(e),null;case 10:return hp(e.type._context),at(e),null;case 17:return Et(e.type)&&oc(),at(e),null;case 19:if(Se(Ae),i=e.memoizedState,i===null)return at(e),null;if(r=(e.flags&128)!==0,o=i.rendering,o===null)if(r)So(i,!1);else{if(Ye!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=fc(t),o!==null){for(e.flags|=128,So(i,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)i=n,t=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,t=o.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ye(Ae,Ae.current&1|2),e.child}t=t.sibling}i.tail!==null&&Me()>Ki&&(e.flags|=128,r=!0,So(i,!1),e.lanes=4194304)}else{if(!r)if(t=fc(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),So(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Te)return at(e),null}else 2*Me()-i.renderingStartTime>Ki&&n!==1073741824&&(e.flags|=128,r=!0,So(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(n=i.last,n!==null?n.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Me(),e.sibling=null,n=Ae.current,ye(Ae,r?n&1|2:n&1),e):(at(e),null);case 22:case 23:return Pp(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?At&1073741824&&(at(e),e.subtreeFlags&6&&(e.flags|=8192)):at(e),null;case 24:return null;case 25:return null}throw Error(N(156,e.tag))}function dC(t,e){switch(lp(e),e.tag){case 1:return Et(e.type)&&oc(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Wi(),Se(kt),Se(dt),yp(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return gp(e),null;case 13:if(Se(Ae),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(N(340));Bi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Se(Ae),null;case 4:return Wi(),null;case 10:return hp(e.type._context),null;case 22:case 23:return Pp(),null;case 24:return null;default:return null}}var ml=!1,ct=!1,hC=typeof WeakSet=="function"?WeakSet:Set,V=null;function mi(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Le(t,e,r)}else n.current=null}function Ch(t,e,n){try{n()}catch(r){Le(t,e,r)}}var ty=!1;function fC(t,e){if(uh=nc,t=gx(),op(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,u=0,d=t,h=null;t:for(;;){for(var f;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===t)break t;if(h===n&&++c===s&&(a=o),h===i&&++u===r&&(l=o),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(dh={focusedElem:t,selectionRange:n},nc=!1,V=e;V!==null;)if(e=V,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,V=t;else for(;V!==null;){e=V;try{var w=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var p=w.memoizedProps,x=w.memoizedState,y=e.stateNode,m=y.getSnapshotBeforeUpdate(e.elementType===e.type?p:cn(e.type,p),x);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=e.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(_){Le(e,e.return,_)}if(t=e.sibling,t!==null){t.return=e.return,V=t;break}V=e.return}return w=ty,ty=!1,w}function zo(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&Ch(e,n,i)}s=s.next}while(s!==r)}}function tu(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Ph(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function hb(t){var e=t.alternate;e!==null&&(t.alternate=null,hb(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Pn],delete e[ca],delete e[ph],delete e[YT],delete e[QT])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function fb(t){return t.tag===5||t.tag===3||t.tag===4}function ny(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||fb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ah(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ic));else if(r!==4&&(t=t.child,t!==null))for(Ah(t,e,n),t=t.sibling;t!==null;)Ah(t,e,n),t=t.sibling}function Rh(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Rh(t,e,n),t=t.sibling;t!==null;)Rh(t,e,n),t=t.sibling}var et=null,pn=!1;function fr(t,e,n){for(n=n.child;n!==null;)pb(t,e,n),n=n.sibling}function pb(t,e,n){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(qc,n)}catch{}switch(n.tag){case 5:ct||mi(n,e);case 6:var r=et,s=pn;et=null,fr(t,e,n),et=r,pn=s,et!==null&&(pn?(t=et,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(pn?(t=et,n=n.stateNode,t.nodeType===8?Ju(t.parentNode,n):t.nodeType===1&&Ju(t,n),sa(t)):Ju(et,n.stateNode));break;case 4:r=et,s=pn,et=n.stateNode.containerInfo,pn=!0,fr(t,e,n),et=r,pn=s;break;case 0:case 11:case 14:case 15:if(!ct&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Ch(n,e,o),s=s.next}while(s!==r)}fr(t,e,n);break;case 1:if(!ct&&(mi(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Le(n,e,a)}fr(t,e,n);break;case 21:fr(t,e,n);break;case 22:n.mode&1?(ct=(r=ct)||n.memoizedState!==null,fr(t,e,n),ct=r):fr(t,e,n);break;default:fr(t,e,n)}}function ry(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new hC),e.forEach(function(r){var s=_C.bind(null,t,r);n.has(r)||(n.add(r),r.then(s,s))})}}function rn(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:et=a.stateNode,pn=!1;break e;case 3:et=a.stateNode.containerInfo,pn=!0;break e;case 4:et=a.stateNode.containerInfo,pn=!0;break e}a=a.return}if(et===null)throw Error(N(160));pb(i,o,s),et=null,pn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){Le(s,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)mb(e,t),e=e.sibling}function mb(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(rn(e,t),Sn(t),r&4){try{zo(3,t,t.return),tu(3,t)}catch(p){Le(t,t.return,p)}try{zo(5,t,t.return)}catch(p){Le(t,t.return,p)}}break;case 1:rn(e,t),Sn(t),r&512&&n!==null&&mi(n,n.return);break;case 5:if(rn(e,t),Sn(t),r&512&&n!==null&&mi(n,n.return),t.flags&32){var s=t.stateNode;try{ea(s,"")}catch(p){Le(t,t.return,p)}}if(r&4&&(s=t.stateNode,s!=null)){var i=t.memoizedProps,o=n!==null?n.memoizedProps:i,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Mw(s,i),eh(a,o);var c=eh(a,i);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?Bw(s,d):u==="dangerouslySetInnerHTML"?Uw(s,d):u==="children"?ea(s,d):qf(s,u,d,c)}switch(a){case"input":Yd(s,i);break;case"textarea":$w(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?_i(s,!!i.multiple,f,!1):h!==!!i.multiple&&(i.defaultValue!=null?_i(s,!!i.multiple,i.defaultValue,!0):_i(s,!!i.multiple,i.multiple?[]:"",!1))}s[ca]=i}catch(p){Le(t,t.return,p)}}break;case 6:if(rn(e,t),Sn(t),r&4){if(t.stateNode===null)throw Error(N(162));s=t.stateNode,i=t.memoizedProps;try{s.nodeValue=i}catch(p){Le(t,t.return,p)}}break;case 3:if(rn(e,t),Sn(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{sa(e.containerInfo)}catch(p){Le(t,t.return,p)}break;case 4:rn(e,t),Sn(t);break;case 13:rn(e,t),Sn(t),s=t.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Tp=Me())),r&4&&ry(t);break;case 22:if(u=n!==null&&n.memoizedState!==null,t.mode&1?(ct=(c=ct)||u,rn(e,t),ct=c):rn(e,t),Sn(t),r&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!u&&t.mode&1)for(V=t,u=t.child;u!==null;){for(d=V=u;V!==null;){switch(h=V,f=h.child,h.tag){case 0:case 11:case 14:case 15:zo(4,h,h.return);break;case 1:mi(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{e=r,w.props=e.memoizedProps,w.state=e.memoizedState,w.componentWillUnmount()}catch(p){Le(r,n,p)}}break;case 5:mi(h,h.return);break;case 22:if(h.memoizedState!==null){iy(d);continue}}f!==null?(f.return=h,V=f):iy(d)}u=u.sibling}e:for(u=null,d=t;;){if(d.tag===5){if(u===null){u=d;try{s=d.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Fw("display",o))}catch(p){Le(t,t.return,p)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(p){Le(t,t.return,p)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:rn(e,t),Sn(t),r&4&&ry(t);break;case 21:break;default:rn(e,t),Sn(t)}}function Sn(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(fb(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(ea(s,""),r.flags&=-33);var i=ny(t);Rh(t,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=ny(t);Ah(t,a,o);break;default:throw Error(N(161))}}catch(l){Le(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function pC(t,e,n){V=t,gb(t)}function gb(t,e,n){for(var r=(t.mode&1)!==0;V!==null;){var s=V,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||ml;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||ct;a=ml;var c=ct;if(ml=o,(ct=l)&&!c)for(V=s;V!==null;)o=V,l=o.child,o.tag===22&&o.memoizedState!==null?oy(s):l!==null?(l.return=o,V=l):oy(s);for(;i!==null;)V=i,gb(i),i=i.sibling;V=s,ml=a,ct=c}sy(t)}else s.subtreeFlags&8772&&i!==null?(i.return=s,V=i):sy(t)}}function sy(t){for(;V!==null;){var e=V;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:ct||tu(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!ct)if(n===null)r.componentDidMount();else{var s=e.elementType===e.type?n.memoizedProps:cn(e.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&Bg(e,i,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Bg(e,o,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var c=e.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&sa(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}ct||e.flags&512&&Ph(e)}catch(h){Le(e,e.return,h)}}if(e===t){V=null;break}if(n=e.sibling,n!==null){n.return=e.return,V=n;break}V=e.return}}function iy(t){for(;V!==null;){var e=V;if(e===t){V=null;break}var n=e.sibling;if(n!==null){n.return=e.return,V=n;break}V=e.return}}function oy(t){for(;V!==null;){var e=V;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{tu(4,e)}catch(l){Le(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var s=e.return;try{r.componentDidMount()}catch(l){Le(e,s,l)}}var i=e.return;try{Ph(e)}catch(l){Le(e,i,l)}break;case 5:var o=e.return;try{Ph(e)}catch(l){Le(e,o,l)}}}catch(l){Le(e,e.return,l)}if(e===t){V=null;break}var a=e.sibling;if(a!==null){a.return=e.return,V=a;break}V=e.return}}var mC=Math.ceil,gc=rr.ReactCurrentDispatcher,kp=rr.ReactCurrentOwner,Gt=rr.ReactCurrentBatchConfig,le=0,Ze=null,ze=null,nt=0,At=0,gi=ns(0),Ye=0,ma=null,Ls=0,nu=0,Ep=0,Wo=null,_t=null,Tp=0,Ki=1/0,Bn=null,yc=!1,Oh=null,Fr=null,gl=!1,jr=null,vc=0,Ho=0,jh=null,Ul=-1,Fl=0;function yt(){return le&6?Me():Ul!==-1?Ul:Ul=Me()}function Br(t){return t.mode&1?le&2&&nt!==0?nt&-nt:JT.transition!==null?(Fl===0&&(Fl=ex()),Fl):(t=fe,t!==0||(t=window.event,t=t===void 0?16:ax(t.type)),t):1}function vn(t,e,n,r){if(50<Ho)throw Ho=0,jh=null,Error(N(185));Va(t,n,r),(!(le&2)||t!==Ze)&&(t===Ze&&(!(le&2)&&(nu|=n),Ye===4&&kr(t,nt)),Tt(t,r),n===1&&le===0&&!(e.mode&1)&&(Ki=Me()+500,Jc&&rs()))}function Tt(t,e){var n=t.callbackNode;JE(t,e);var r=tc(t,t===Ze?nt:0);if(r===0)n!==null&&mg(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&mg(n),e===1)t.tag===0?ZT(ay.bind(null,t)):Tx(ay.bind(null,t)),qT(function(){!(le&6)&&rs()}),n=null;else{switch(tx(r)){case 1:n=Jf;break;case 4:n=Jw;break;case 16:n=ec;break;case 536870912:n=Xw;break;default:n=ec}n=kb(n,yb.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function yb(t,e){if(Ul=-1,Fl=0,le&6)throw Error(N(327));var n=t.callbackNode;if(Ci()&&t.callbackNode!==n)return null;var r=tc(t,t===Ze?nt:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=wc(t,r);else{e=r;var s=le;le|=2;var i=wb();(Ze!==t||nt!==e)&&(Bn=null,Ki=Me()+500,Rs(t,e));do try{vC();break}catch(a){vb(t,a)}while(!0);dp(),gc.current=i,le=s,ze!==null?e=0:(Ze=null,nt=0,e=Ye)}if(e!==0){if(e===2&&(s=ih(t),s!==0&&(r=s,e=Nh(t,s))),e===1)throw n=ma,Rs(t,0),kr(t,r),Tt(t,Me()),n;if(e===6)kr(t,r);else{if(s=t.current.alternate,!(r&30)&&!gC(s)&&(e=wc(t,r),e===2&&(i=ih(t),i!==0&&(r=i,e=Nh(t,i))),e===1))throw n=ma,Rs(t,0),kr(t,r),Tt(t,Me()),n;switch(t.finishedWork=s,t.finishedLanes=r,e){case 0:case 1:throw Error(N(345));case 2:fs(t,_t,Bn);break;case 3:if(kr(t,r),(r&130023424)===r&&(e=Tp+500-Me(),10<e)){if(tc(t,0)!==0)break;if(s=t.suspendedLanes,(s&r)!==r){yt(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=fh(fs.bind(null,t,_t,Bn),e);break}fs(t,_t,Bn);break;case 4:if(kr(t,r),(r&4194240)===r)break;for(e=t.eventTimes,s=-1;0<r;){var o=31-yn(r);i=1<<o,o=e[o],o>s&&(s=o),r&=~i}if(r=s,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*mC(r/1960))-r,10<r){t.timeoutHandle=fh(fs.bind(null,t,_t,Bn),r);break}fs(t,_t,Bn);break;case 5:fs(t,_t,Bn);break;default:throw Error(N(329))}}}return Tt(t,Me()),t.callbackNode===n?yb.bind(null,t):null}function Nh(t,e){var n=Wo;return t.current.memoizedState.isDehydrated&&(Rs(t,e).flags|=256),t=wc(t,e),t!==2&&(e=_t,_t=n,e!==null&&Ih(e)),t}function Ih(t){_t===null?_t=t:_t.push.apply(_t,t)}function gC(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!wn(i(),s))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function kr(t,e){for(e&=~Ep,e&=~nu,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-yn(e),r=1<<n;t[n]=-1,e&=~r}}function ay(t){if(le&6)throw Error(N(327));Ci();var e=tc(t,0);if(!(e&1))return Tt(t,Me()),null;var n=wc(t,e);if(t.tag!==0&&n===2){var r=ih(t);r!==0&&(e=r,n=Nh(t,r))}if(n===1)throw n=ma,Rs(t,0),kr(t,e),Tt(t,Me()),n;if(n===6)throw Error(N(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,fs(t,_t,Bn),Tt(t,Me()),null}function Cp(t,e){var n=le;le|=1;try{return t(e)}finally{le=n,le===0&&(Ki=Me()+500,Jc&&rs())}}function Ms(t){jr!==null&&jr.tag===0&&!(le&6)&&Ci();var e=le;le|=1;var n=Gt.transition,r=fe;try{if(Gt.transition=null,fe=1,t)return t()}finally{fe=r,Gt.transition=n,le=e,!(le&6)&&rs()}}function Pp(){At=gi.current,Se(gi)}function Rs(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,KT(n)),ze!==null)for(n=ze.return;n!==null;){var r=n;switch(lp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&oc();break;case 3:Wi(),Se(kt),Se(dt),yp();break;case 5:gp(r);break;case 4:Wi();break;case 13:Se(Ae);break;case 19:Se(Ae);break;case 10:hp(r.type._context);break;case 22:case 23:Pp()}n=n.return}if(Ze=t,ze=t=zr(t.current,null),nt=At=e,Ye=0,ma=null,Ep=nu=Ls=0,_t=Wo=null,ws!==null){for(e=0;e<ws.length;e++)if(n=ws[e],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}ws=null}return t}function vb(t,e){do{var n=ze;try{if(dp(),Ml.current=mc,pc){for(var r=Oe.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}pc=!1}if(Ds=0,Qe=qe=Oe=null,Bo=!1,ha=0,kp.current=null,n===null||n.return===null){Ye=1,ma=e,ze=null;break}e:{var i=t,o=n.return,a=n,l=e;if(e=nt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Gg(o);if(f!==null){f.flags&=-257,Yg(f,o,a,i,e),f.mode&1&&qg(i,c,e),e=f,l=c;var w=e.updateQueue;if(w===null){var p=new Set;p.add(l),e.updateQueue=p}else w.add(l);break e}else{if(!(e&1)){qg(i,c,e),Ap();break e}l=Error(N(426))}}else if(Te&&a.mode&1){var x=Gg(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Yg(x,o,a,i,e),cp(Hi(l,a));break e}}i=l=Hi(l,a),Ye!==4&&(Ye=2),Wo===null?Wo=[i]:Wo.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var y=tb(i,l,e);Fg(i,y);break e;case 1:a=l;var m=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Fr===null||!Fr.has(v)))){i.flags|=65536,e&=-e,i.lanes|=e;var _=nb(i,a,e);Fg(i,_);break e}}i=i.return}while(i!==null)}bb(n)}catch(S){e=S,ze===n&&n!==null&&(ze=n=n.return);continue}break}while(!0)}function wb(){var t=gc.current;return gc.current=mc,t===null?mc:t}function Ap(){(Ye===0||Ye===3||Ye===2)&&(Ye=4),Ze===null||!(Ls&268435455)&&!(nu&268435455)||kr(Ze,nt)}function wc(t,e){var n=le;le|=2;var r=wb();(Ze!==t||nt!==e)&&(Bn=null,Rs(t,e));do try{yC();break}catch(s){vb(t,s)}while(!0);if(dp(),le=n,gc.current=r,ze!==null)throw Error(N(261));return Ze=null,nt=0,Ye}function yC(){for(;ze!==null;)xb(ze)}function vC(){for(;ze!==null&&!zE();)xb(ze)}function xb(t){var e=Sb(t.alternate,t,At);t.memoizedProps=t.pendingProps,e===null?bb(t):ze=e,kp.current=null}function bb(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=dC(n,e),n!==null){n.flags&=32767,ze=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ye=6,ze=null;return}}else if(n=uC(n,e,At),n!==null){ze=n;return}if(e=e.sibling,e!==null){ze=e;return}ze=e=t}while(e!==null);Ye===0&&(Ye=5)}function fs(t,e,n){var r=fe,s=Gt.transition;try{Gt.transition=null,fe=1,wC(t,e,n,r)}finally{Gt.transition=s,fe=r}return null}function wC(t,e,n,r){do Ci();while(jr!==null);if(le&6)throw Error(N(327));n=t.finishedWork;var s=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(N(177));t.callbackNode=null,t.callbackPriority=0;var i=n.lanes|n.childLanes;if(XE(t,i),t===Ze&&(ze=Ze=null,nt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||gl||(gl=!0,kb(ec,function(){return Ci(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Gt.transition,Gt.transition=null;var o=fe;fe=1;var a=le;le|=4,kp.current=null,fC(t,n),mb(n,t),VT(dh),nc=!!uh,dh=uh=null,t.current=n,pC(n),WE(),le=a,fe=o,Gt.transition=i}else t.current=n;if(gl&&(gl=!1,jr=t,vc=s),i=t.pendingLanes,i===0&&(Fr=null),qE(n.stateNode),Tt(t,Me()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)s=e[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(yc)throw yc=!1,t=Oh,Oh=null,t;return vc&1&&t.tag!==0&&Ci(),i=t.pendingLanes,i&1?t===jh?Ho++:(Ho=0,jh=t):Ho=0,rs(),null}function Ci(){if(jr!==null){var t=tx(vc),e=Gt.transition,n=fe;try{if(Gt.transition=null,fe=16>t?16:t,jr===null)var r=!1;else{if(t=jr,jr=null,vc=0,le&6)throw Error(N(331));var s=le;for(le|=4,V=t.current;V!==null;){var i=V,o=i.child;if(V.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(V=c;V!==null;){var u=V;switch(u.tag){case 0:case 11:case 15:zo(8,u,i)}var d=u.child;if(d!==null)d.return=u,V=d;else for(;V!==null;){u=V;var h=u.sibling,f=u.return;if(hb(u),u===c){V=null;break}if(h!==null){h.return=f,V=h;break}V=f}}}var w=i.alternate;if(w!==null){var p=w.child;if(p!==null){w.child=null;do{var x=p.sibling;p.sibling=null,p=x}while(p!==null)}}V=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,V=o;else e:for(;V!==null;){if(i=V,i.flags&2048)switch(i.tag){case 0:case 11:case 15:zo(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,V=y;break e}V=i.return}}var m=t.current;for(V=m;V!==null;){o=V;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,V=v;else e:for(o=m;V!==null;){if(a=V,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:tu(9,a)}}catch(S){Le(a,a.return,S)}if(a===o){V=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,V=_;break e}V=a.return}}if(le=s,rs(),Rn&&typeof Rn.onPostCommitFiberRoot=="function")try{Rn.onPostCommitFiberRoot(qc,t)}catch{}r=!0}return r}finally{fe=n,Gt.transition=e}}return!1}function ly(t,e,n){e=Hi(n,e),e=tb(t,e,1),t=Ur(t,e,1),e=yt(),t!==null&&(Va(t,1,e),Tt(t,e))}function Le(t,e,n){if(t.tag===3)ly(t,t,n);else for(;e!==null;){if(e.tag===3){ly(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fr===null||!Fr.has(r))){t=Hi(n,t),t=nb(e,t,1),e=Ur(e,t,1),t=yt(),e!==null&&(Va(e,1,t),Tt(e,t));break}}e=e.return}}function xC(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=yt(),t.pingedLanes|=t.suspendedLanes&n,Ze===t&&(nt&n)===n&&(Ye===4||Ye===3&&(nt&130023424)===nt&&500>Me()-Tp?Rs(t,0):Ep|=n),Tt(t,e)}function _b(t,e){e===0&&(t.mode&1?(e=ol,ol<<=1,!(ol&130023424)&&(ol=4194304)):e=1);var n=yt();t=Zn(t,e),t!==null&&(Va(t,e,n),Tt(t,n))}function bC(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),_b(t,n)}function _C(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(e),_b(t,n)}var Sb;Sb=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||kt.current)St=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return St=!1,cC(t,e,n);St=!!(t.flags&131072)}else St=!1,Te&&e.flags&1048576&&Cx(e,cc,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Vl(t,e),t=e.pendingProps;var s=Fi(e,dt.current);Ti(e,n),s=wp(null,e,r,t,s,n);var i=xp();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Et(r)?(i=!0,ac(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,pp(e),s.updater=eu,e.stateNode=s,s._reactInternals=e,xh(e,r,t,n),e=Sh(null,e,r,!0,i,n)):(e.tag=0,Te&&i&&ap(e),ft(null,e,s,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Vl(t,e),t=e.pendingProps,s=r._init,r=s(r._payload),e.type=r,s=e.tag=kC(r),t=cn(r,t),s){case 0:e=_h(null,e,r,t,n);break e;case 1:e=Jg(null,e,r,t,n);break e;case 11:e=Qg(null,e,r,t,n);break e;case 14:e=Zg(null,e,r,cn(r.type,t),n);break e}throw Error(N(306,r,""))}return e;case 0:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:cn(r,s),_h(t,e,r,s,n);case 1:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:cn(r,s),Jg(t,e,r,s,n);case 3:e:{if(ob(e),t===null)throw Error(N(387));r=e.pendingProps,i=e.memoizedState,s=i.element,Nx(t,e),hc(e,r,null,n);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=Hi(Error(N(423)),e),e=Xg(t,e,r,n,s);break e}else if(r!==s){s=Hi(Error(N(424)),e),e=Xg(t,e,r,n,s);break e}else for(Nt=Vr(e.stateNode.containerInfo.firstChild),It=e,Te=!0,gn=null,n=Ox(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bi(),r===s){e=Jn(t,e,n);break e}ft(t,e,r,n)}e=e.child}return e;case 5:return Ix(e),t===null&&yh(e),r=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,hh(r,s)?o=null:i!==null&&hh(r,i)&&
vendor: 9,602 bytes, line 41
41(e.flags|=32),ib(t,e),ft(t,e,o,n),e.child;case 6:return t===null&&yh(e),null;case 13:return ab(t,e,n);case 4:return mp(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=zi(e,null,r,n):ft(t,e,r,n),e.child;case 11:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:cn(r,s),Qg(t,e,r,s,n);case 7:return ft(t,e,e.pendingProps,n),e.child;case 8:return ft(t,e,e.pendingProps.children,n),e.child;case 12:return ft(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,ye(uc,r._currentValue),r._currentValue=o,i!==null)if(wn(i.value,o)){if(i.children===s.children&&!kt.current){e=Jn(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Gn(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),vh(i.return,n,e),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),vh(o,n,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ft(t,e,s.children,n),e=e.child}return e;case 9:return s=e.type,r=e.pendingProps.children,Ti(e,n),s=Qt(s),r=r(s),e.flags|=1,ft(t,e,r,n),e.child;case 14:return r=e.type,s=cn(r,e.pendingProps),s=cn(r.type,s),Zg(t,e,r,s,n);case 15:return rb(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:cn(r,s),Vl(t,e),e.tag=1,Et(r)?(t=!0,ac(e)):t=!1,Ti(e,n),eb(e,r,s),xh(e,r,s,n),Sh(null,e,r,!0,t,n);case 19:return lb(t,e,n);case 22:return sb(t,e,n)}throw Error(N(156,e.tag))};function kb(t,e){return Zw(t,e)}function SC(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 Kt(t,e,n,r){return new SC(t,e,n,r)}function Rp(t){return t=t.prototype,!(!t||!t.isReactComponent)}function kC(t){if(typeof t=="function")return Rp(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Yf)return 11;if(t===Qf)return 14}return 2}function zr(t,e){var n=t.alternate;return n===null?(n=Kt(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Bl(t,e,n,r,s,i){var o=2;if(r=t,typeof t=="function")Rp(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case oi:return Os(n.children,s,i,e);case Gf:o=8,s|=8;break;case Wd:return t=Kt(12,n,e,s|2),t.elementType=Wd,t.lanes=i,t;case Hd:return t=Kt(13,n,e,s),t.elementType=Hd,t.lanes=i,t;case Kd:return t=Kt(19,n,e,s),t.elementType=Kd,t.lanes=i,t;case Iw:return ru(n,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case jw:o=10;break e;case Nw:o=9;break e;case Yf:o=11;break e;case Qf:o=14;break e;case vr:o=16,r=null;break e}throw Error(N(130,t==null?t:typeof t,""))}return e=Kt(o,n,e,s),e.elementType=t,e.type=r,e.lanes=i,e}function Os(t,e,n,r){return t=Kt(7,t,r,e),t.lanes=n,t}function ru(t,e,n,r){return t=Kt(22,t,r,e),t.elementType=Iw,t.lanes=n,t.stateNode={isHidden:!1},t}function od(t,e,n){return t=Kt(6,t,null,e),t.lanes=n,t}function ad(t,e,n){return e=Kt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function EC(t,e,n,r,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fu(0),this.expirationTimes=Fu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fu(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Op(t,e,n,r,s,i,o,a,l){return t=new EC(t,e,n,a,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Kt(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pp(i),t}function TC(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ii,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function Eb(t){if(!t)return qr;t=t._reactInternals;e:{if(Fs(t)!==t||t.tag!==1)throw Error(N(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Et(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(N(171))}if(t.tag===1){var n=t.type;if(Et(n))return Ex(t,n,e)}return e}function Tb(t,e,n,r,s,i,o,a,l){return t=Op(n,r,!0,t,s,i,o,a,l),t.context=Eb(null),n=t.current,r=yt(),s=Br(n),i=Gn(r,s),i.callback=e??null,Ur(n,i,s),t.current.lanes=s,Va(t,s,r),Tt(t,r),t}function su(t,e,n,r){var s=e.current,i=yt(),o=Br(s);return n=Eb(n),e.context===null?e.context=n:e.pendingContext=n,e=Gn(i,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Ur(s,e,o),t!==null&&(vn(t,s,o,i),Ll(t,s,o)),o}function xc(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function cy(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function jp(t,e){cy(t,e),(t=t.alternate)&&cy(t,e)}function CC(){return null}var Cb=typeof reportError=="function"?reportError:function(t){console.error(t)};function Np(t){this._internalRoot=t}iu.prototype.render=Np.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(N(409));su(t,e,null,null)};iu.prototype.unmount=Np.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ms(function(){su(null,t,null,null)}),e[Qn]=null}};function iu(t){this._internalRoot=t}iu.prototype.unstable_scheduleHydration=function(t){if(t){var e=sx();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Sr.length&&e!==0&&e<Sr[n].priority;n++);Sr.splice(n,0,t),n===0&&ox(t)}};function Ip(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ou(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function uy(){}function PC(t,e,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=xc(o);i.call(c)}}var o=Tb(e,r,t,0,null,!1,!1,"",uy);return t._reactRootContainer=o,t[Qn]=o.current,aa(t.nodeType===8?t.parentNode:t),Ms(),o}for(;s=t.lastChild;)t.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=xc(l);a.call(c)}}var l=Op(t,0,!1,null,null,!1,!1,"",uy);return t._reactRootContainer=l,t[Qn]=l.current,aa(t.nodeType===8?t.parentNode:t),Ms(function(){su(e,l,n,r)}),l}function au(t,e,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=xc(o);a.call(l)}}su(e,o,t,s)}else o=PC(n,e,t,s,r);return xc(o)}nx=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Oo(e.pendingLanes);n!==0&&(Xf(e,n|1),Tt(e,Me()),!(le&6)&&(Ki=Me()+500,rs()))}break;case 13:Ms(function(){var r=Zn(t,1);if(r!==null){var s=yt();vn(r,t,1,s)}}),jp(t,1)}};ep=function(t){if(t.tag===13){var e=Zn(t,134217728);if(e!==null){var n=yt();vn(e,t,134217728,n)}jp(t,134217728)}};rx=function(t){if(t.tag===13){var e=Br(t),n=Zn(t,e);if(n!==null){var r=yt();vn(n,t,e,r)}jp(t,e)}};sx=function(){return fe};ix=function(t,e){var n=fe;try{return fe=t,e()}finally{fe=n}};nh=function(t,e,n){switch(e){case"input":if(Yd(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var s=Zc(r);if(!s)throw Error(N(90));Lw(r),Yd(r,s)}}}break;case"textarea":$w(t,n);break;case"select":e=n.value,e!=null&&_i(t,!!n.multiple,e,!1)}};Hw=Cp;Kw=Ms;var AC={usingClientEntryPoint:!1,Events:[Fa,ui,Zc,zw,Ww,Cp]},ko={findFiberByHostInstance:vs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},RC={bundleType:ko.bundleType,version:ko.version,rendererPackageName:ko.rendererPackageName,rendererConfig:ko.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rr.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Yw(t),t===null?null:t.stateNode},findFiberByHostInstance:ko.findFiberByHostInstance||CC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
41if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yl.isDisabled&&yl.supportsFiber)try{qc=yl.inject(RC),Rn=yl}catch{}}Vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AC;Vt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ip(e))throw Error(N(200));return TC(t,e,null,n)};Vt.createRoot=function(t,e){if(!Ip(t))throw Error(N(299));var n=!1,r="",s=Cb;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=Op(t,1,!1,null,null,n,!1,r,s),t[Qn]=e.current,aa(t.nodeType===8?t.parentNode:t),new Np(e)};Vt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(N(188)):(t=Object.keys(t).join(","),Error(N(268,t)));return t=Yw(e),t=t===null?null:t.stateNode,t};Vt.flushSync=function(t){return Ms(t)};Vt.hydrate=function(t,e,n){if(!ou(e))throw Error(N(200));return au(null,t,e,!0,n)};Vt.hydrateRoot=function(t,e,n){if(!Ip(t))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Cb;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=Tb(e,null,t,1,n??null,s,!1,i,o),t[Qn]=e.current,aa(t),r)for(t=0;t<r.length;t++)n=r[t],s=n._getVersion,s=s(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,s]:e.mutableSourceEagerHydrationData.push(n,s);return new iu(e)};Vt.render=function(t,e,n){if(!ou(e))throw Error(N(200));return au(null,t,e,!1,n)};Vt.unmountComponentAtNode=function(t){if(!ou(t))throw Error(N(40));return t._reactRootContainer?(Ms(function(){au(null,null,t,!1,function(){t._reactRootContainer=null,t[Qn]=null})}),!0):!1};Vt.unstable_batchedUpdates=Cp;Vt.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!ou(n))throw Error(N(200));if(t==null||t._reactInternals===void 0)throw Error(N(38));return au(t,e,n,!1,r)};Vt.version="18.3.1-next-f1338f8080-20240426";function Pb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Pb)}catch(t){console.error(t)}}Pb(),Pw.exports=Vt;var za=Pw.exports;const Ab=gw(za);var Rb,dy=za;Rb=dy.createRoot,dy.hydrateRoot;const OC="modulepreload",jC=function(t){return"/"+t},hy={},ve=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=jC(l),l in hy)return;hy[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":OC,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},NC=1,IC=1e6;let ld=0;function DC(){return ld=(ld+1)%Number.MAX_SAFE_INTEGER,ld.toString()}const cd=new Map,fy=t=>{if(cd.has(t))return;const e=setTimeout(()=>{cd.delete(t),Ko({type:"REMOVE_TOAST",toastId:t})},IC);cd.set(t,e)},LC=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,NC)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;return n?fy(n):t.toasts.forEach(r=>{fy(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},zl=[];let Wl={toasts:[]};
vendor: 9,866 bytes, line 41
41function Ko(t){Wl=LC(Wl,t),zl.forEach(e=>{e(Wl)})}function MC({...t}){const e=DC(),n=s=>Ko({type:"UPDATE_TOAST",toast:{...s,id:e}}),r=()=>Ko({type:"DISMISS_TOAST",toastId:e});return Ko({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||r()}}}),{id:e,dismiss:r,update:n}}function Ob(){const[t,e]=b.useState(Wl);return b.useEffect(()=>(zl.push(e),()=>{const n=zl.indexOf(e);n>-1&&zl.splice(n,1)}),[t]),{...t,toast:MC,dismiss:n=>Ko({type:"DISMISS_TOAST",toastId:n})}}function $e(t,e,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function py(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function jb(...t){return e=>{let n=!1;const r=t.map(s=>{const i=py(s,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():py(t[s],null)}}}}function Mt(...t){return b.useCallback(jb(...t),t)}function ZU(t,e){const n=b.createContext(e),r=i=>{const{children:o,...a}=i,l=b.useMemo(()=>a,Object.values(a));return g.jsx(n.Provider,{value:l,children:o})};r.displayName=t+"Provider";function s(i){const o=b.useContext(n);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[r,s]}function io(t,e=[]){let n=[];function r(i,o){const a=b.createContext(o),l=n.length;n=[...n,o];const c=d=>{var y;const{scope:h,children:f,...w}=d,p=((y=h==null?void 0:h[t])==null?void 0:y[l])||a,x=b.useMemo(()=>w,Object.values(w));return g.jsx(p.Provider,{value:x,children:f})};c.displayName=i+"Provider";function u(d,h){var p;const f=((p=h==null?void 0:h[t])==null?void 0:p[l])||a,w=b.useContext(f);if(w)return w;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=n.map(o=>b.createContext(o));return function(a){const l=(a==null?void 0:a[t])||i;return b.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return s.scopeName=t,[r,$C(s,...e)]}function $C(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return b.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function bc(t){const e=UC(t),n=b.forwardRef((r,s)=>{const{children:i,...o}=r,a=b.Children.toArray(i),l=a.find(BC);if(l){const c=l.props.children,u=a.map(d=>d===l?b.Children.count(c)>1?b.Children.only(null):b.isValidElement(c)?c.props.children:null:d);return g.jsx(e,{...o,ref:s,children:b.isValidElement(c)?b.cloneElement(c,void 0,u):null})}return g.jsx(e,{...o,ref:s,children:i})});return n.displayName=`${t}.Slot`,n}var VC=bc("Slot");function UC(t){const e=b.forwardRef((n,r)=>{const{children:s,...i}=n;if(b.isValidElement(s)){const o=WC(s),a=zC(i,s.props);return s.type!==b.Fragment&&(a.ref=r?jb(r,o):o),b.cloneElement(s,a)}return b.Children.count(s)>1?b.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Nb=Symbol("radix.slottable");function FC(t){const e=({children:n})=>g.jsx(g.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=Nb,e}function BC(t){return b.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Nb}function zC(t,e){const n={...e};for(const r in e){const s=t[r],i=e[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function WC(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function Ib(t){const e=t+"CollectionProvider",[n,r]=io(e),[s,i]=n(e,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:x,children:y}=p,m=j.useRef(null),v=j.useRef(new Map).current;return g.jsx(s,{scope:x,itemMap:v,collectionRef:m,children:y})};o.displayName=e;const a=t+"CollectionSlot",l=bc(a),c=j.forwardRef((p,x)=>{const{scope:y,children:m}=p,v=i(a,y),_=Mt(x,v.collectionRef);return g.jsx(l,{ref:_,children:m})});c.displayName=a;const u=t+"CollectionItemSlot",d="data-radix-collection-item",h=bc(u),f=j.forwardRef((p,x)=>{const{scope:y,children:m,...v}=p,_=j.useRef(null),S=Mt(x,_),k=i(u,y);return j.useEffect(()=>(k.itemMap.set(_,{ref:_,...v}),()=>void k.itemMap.delete(_))),g.jsx(h,{[d]:"",ref:S,children:m})});f.displayName=u;function w(p){const x=i(t+"CollectionConsumer",p);return j.useCallback(()=>{const m=x.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((k,E)=>v.indexOf(k.ref.current)-v.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},w,r]}var HC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=HC.reduce((t,e)=>{const n=bc(`Primitive.${e}`),r=b.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function Db(t,e){t&&za.flushSync(()=>t.dispatchEvent(e))}function Gr(t){const e=b.useRef(t);return b.useEffect(()=>{e.current=t}),b.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function KC(t,e=globalThis==null?void 0:globalThis.document){const n=Gr(t);b.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var qC="DismissableLayer",Dh="dismissableLayer.update",GC="dismissableLayer.pointerDownOutside",YC="dismissableLayer.focusOutside",my,Lb=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dp=b.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=t,c=b.useContext(Lb),[u,d]=b.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=b.useState({}),w=Mt(e,E=>d(E)),p=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(x),m=u?p.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,_=m>=y,S=ZC(E=>{const T=E.target,P=[...c.branches].some(O=>O.contains(T));!_||P||(s==null||s(E),o==null||o(E),E.defaultPrevented||a==null||a())},h),k=JC(E=>{const T=E.target;[...c.branches].some(O=>O.contains(T))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},h);return KC(E=>{m===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),b.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(my=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),gy(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=my)}},[u,h,n,c]),b.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),gy())},[u,c]),b.useEffect(()=>{const E=()=>f({});return document.addEventListener(Dh,E),()=>document.removeEventListener(Dh,E)},[]),g.jsx(We.div,{...l,ref:w,style:{pointerEvents:v?_?"auto":"none":void 0,...t.style},onFocusCapture:$e(t.onFocusCapture,k.onFocusCapture),onBlurCapture:$e(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:$e(t.onPointerDownCapture,S.onPointerDownCapture)})});Dp.displayName=qC;var QC="DismissableLayerBranch",Mb=b.forwardRef((t,e)=>{const n=b.useContext(Lb),r=b.useRef(null),s=Mt(e,r);return b.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),g.jsx(We.div,{...t,ref:s})});Mb.displayName=QC;function ZC(t,e=globalThis==null?void 0:globalThis.document){const n=Gr(t),r=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){$b(GC,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=l,e.addEventListener("click",s.current,{once:!0})):l()}else e.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function JC(t,e=globalThis==null?void 0:globalThis.document){const n=Gr(t),r=b.useRef(!1);return b.useEffect(()=>{const s=i=>{i.target&&!r.current&&$b(YC,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function gy(){const t=new CustomEvent(Dh);document.dispatchEvent(t)}function $b(t,e,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?Db(s,i):s.dispatchEvent(i)}var XC=Dp,eP=Mb,Ln=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},tP="Portal",Vb=b.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[s,i]=b.useState(!1);Ln(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Ab.createPortal(g.jsx(We.div,{...r,ref:e}),o):null});Vb.displayName=tP;function nP(t,e){return b.useReducer((n,r)=>e[n][r]??n,t)}var lu=t=>{const{present:e,children:n}=t,r=rP(e),s=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),i=Mt(r.ref,sP(s));return typeof n=="function"||r.isPresent?b.cloneElement(s,{ref:i}
41):null};lu.displayName="Presence";function rP(t){const[e,n]=b.useState(),r=b.useRef(null),s=b.useRef(t),i=b.useRef("none"),o=t?"mounted":"unmounted",[a,l]=nP(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const c=vl(r.current);i.current=a==="mounted"?c:"none"},[a]),Ln(()=>{const c=r.current,u=s.current;if(u!==t){const h=i.current,f=vl(c);t?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,l]),Ln(()=>{if(e){let c;const u=e.ownerDocument.defaultView??window,d=f=>{const p=vl(r.current).includes(f.animationName);if(f.target===e&&p&&(l("ANIMATION_END"),!s.current)){const x=e.style.animationFillMode;e.style.animationFillMode="forwards",c=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=x)})}},h=f=>{f.target===e&&(i.current=vl(r.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{u.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function vl(t){return(t==null?void 0:t.animationName)||"none"}function sP(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var iP=Wf[" useInsertionEffect ".trim().toString()]||Ln;function cu({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[s,i,o]=oP({defaultProp:e,onChange:n}),a=t!==void 0,l=a?t:s;{const u=b.useRef(t!==void 0);b.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"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.`),u.current=a},[a,r])}const c=b.useCallback(u=>{var d;if(a){const h=aP(u)?u(t):u;h!==t&&((d=o.current)==null||d.call(o,h))}else i(u)},[a,t,i,o]);return[l,c]}function oP({defaultProp:t,onChange:e}){const[n,r]=b.useState(t),s=b.useRef(n),i=b.useRef(e);return iP(()=>{i.current=e},[e]),b.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function aP(t){return typeof t=="function"}var lP=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"}),cP="VisuallyHidden",uu=b.forwardRef((t,e)=>g.jsx(We.span,{...t,ref:e,style:{...lP,...t.style}}));uu.displayName=cP;var uP=uu,Lp="ToastProvider",[Mp,dP,hP]=Ib("Toast"),[Ub,JU]=io("Toast",[hP]),[fP,du]=Ub(Lp),Fb=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=t,[a,l]=b.useState(null),[c,u]=b.useState(0),d=b.useRef(!1),h=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Lp}\`. Expected non-empty \`string\`.`),g.jsx(Mp.Provider,{scope:e,children:g.jsx(fP,{scope:e,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>u(f=>f+1),[]),onToastRemove:b.useCallback(()=>u(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:o})})};Fb.displayName=Lp;var Bb="ToastViewport",pP=["F8"],Lh="toast.viewportPause",Mh="toast.viewportResume",zb=b.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:r=pP,label:s="Notifications ({hotkey})",...i}=t,o=du(Bb,n),a=dP(n),l=b.useRef(null),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),h=Mt(e,d,o.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=o.toastCount>0;b.useEffect(()=>{const x=y=>{var v;r.length!==0&&r.every(_=>y[_]||y.code===_)&&((v=d.current)==null||v.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),b.useEffect(()=>{const x=l.current,y=d.current;if(w&&x&&y){const m=()=>{if(!o.isClosePausedRef.current){const k=new CustomEvent(Lh);y.dispatchEvent(k),o.isClosePausedRef.current=!0}},v=()=>{if(o.isClosePausedRef.current){const k=new CustomEvent(Mh);y.dispatchEvent(k),o.isClosePausedRef.current=!1}},_=k=>{!x.contains(k.relatedTarget)&&v()},S=()=>{x.contains(document.activeElement)||v()};return x.addEventListener("focusin",m),x.addEventListener("focusout",_),x.addEventListener("pointermove",m),x.addEventListener("pointerleave",S),window.addEventListener("blur",m),window.addEventListener("focus",v),()=>{x.removeEventListener("focusin",m),x.removeEventListener("focusout",_),x.removeEventListener("pointermove",m),x.removeEventListener("pointerleave",S),window.removeEventListener("blur",m),window.removeEventListener("focus",v)}}},[w,o.isClosePausedRef]);const p=b.useCallback(({tabbingDirection:x})=>{const m=a().map(v=>{const _=v.ref.current,S=[_,...CP(_)];return x==="forwards"?S:S.reverse()});return(x==="forwards"?m.reverse():m).flat()},[a]);return b.useEffect(()=>{const x=d.current;if(x){const y=m=>{var S,k,E;const v=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!v){const T=document.activeElement,P=m.shiftKey;if(m.target===x&&P){(S=c.current)==null||S.focus();return}const D=p({tabbingDirection:P?"backwards":"forwards"}),Y=D.findIndex(L=>L===T);ud(D.slice(Y+1))?m.preventDefault():P?(k=c.current)==null||k.focus():(E=u.current)==null||E.focus()}};return x.addEventListener("keydown",y),()=>x.removeEventListener("keydown",y)}},[a,p]),g.jsxs(eP,{ref:l,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&g.jsx($h,{ref:c,onFocusFromOutsideViewport:()=>{const x=p({tabbingDirection:"forwards"});ud(x)}}),g.jsx(Mp.Slot,{scope:n,children:g.jsx(We.ol,{tabIndex:-1,...i,ref:h})}),w&&g.jsx($h,{ref:u,onFocusFromOutsideViewport:()=>{const x=p({tabbingDirection:"backwards"});ud(x)}})]})});zb.displayName=Bb;var Wb="ToastFocusProxy",$h=b.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=t,i=du(Wb,n);return g.jsx(uu,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=i.viewport)!=null&&c.contains(a))&&r()}})});$h.displayName=Wb;var Wa="Toast",mP="toast.swipeStart",gP="toast.swipeMove",yP="toast.swipeCancel",vP="toast.swipeEnd",Hb=b.forwardRef((t,e)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=t,[a,l]=cu({prop:r,defaultProp:s??!0,onChange:i,caller:Wa});return g.jsx(lu,{present:n||a,children:g.jsx(bP,{open:a,...o,ref:e,onClose:()=>l(!1),onPause:Gr(t.onPause),onResume:Gr(t.onResume),onSwipeStart:$e(t.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:$e(t.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:$e(t.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:$e(t.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});Hb.displayName=Wa;var[wP,xP]=Ub(Wa,{onClose(){}}),bP=b.forwardRef((t,e)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:f,...w}=t,p=du(Wa,n),[x,y]=b.useState(null),m=Mt(e,L=>y(L)),v=b.useRef(null),_=b.useRef(null),S=s||p.duration,k=b.useRef(0),E=b.useRef(S),T=b.useRef(0),{onToastAdd:P,onToastRemove:O}=p,B=Gr(()=>{var re;(x==null?void 0:x.contains(document.activeElement))&&((re=p.viewport)==null||re.focus()),o()}),D=b.useCallback(L=>
41{!L||L===1/0||(window.clearTimeout(T.current),k.current=new Date().getTime(),T.current=window.setTimeout(B,L))},[B]);b.useEffect(()=>{const L=p.viewport;if(L){const re=()=>{D(E.current),c==null||c()},Q=()=>{const z=new Date().getTime()-k.current;E.current=E.current-z,window.clearTimeout(T.current),l==null||l()};return L.addEventListener(Lh,Q),L.addEventListener(Mh,re),()=>{L.removeEventListener(Lh,Q),L.removeEventListener(Mh,re)}}},[p.viewport,S,l,c,D]),b.useEffect(()=>{i&&!p.isClosePausedRef.current&&D(S)},[i,S,p.isClosePausedRef,D]),b.useEffect(()=>(P(),()=>O()),[P,O]);const Y=b.useMemo(()=>x?Jb(x):null,[x]);return p.viewport?g.jsxs(g.Fragment,{children:[Y&&g.jsx(_P,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Y}),g.jsx(wP,{scope:n,onClose:B,children:za.createPortal(g.jsx(Mp.ItemSlot,{scope:n,children:g.jsx(XC,{asChild:!0,onEscapeKeyDown:$e(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||B(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(We.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...w,ref:m,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:$e(t.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:$e(t.onPointerDown,L=>{L.button===0&&(v.current={x:L.clientX,y:L.clientY})}),onPointerMove:$e(t.onPointerMove,L=>{if(!v.current)return;const re=L.clientX-v.current.x,Q=L.clientY-v.current.y,z=!!_.current,C=["left","right"].includes(p.swipeDirection),R=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,M=C?R(0,re):0,Z=C?0:R(0,Q),K=L.pointerType==="touch"?10:2,ie={x:M,y:Z},ae={originalEvent:L,delta:ie};z?(_.current=ie,wl(gP,d,ae,{discrete:!1})):yy(ie,p.swipeDirection,K)?(_.current=ie,wl(mP,u,ae,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(re)>K||Math.abs(Q)>K)&&(v.current=null)}),onPointerUp:$e(t.onPointerUp,L=>{const re=_.current,Q=L.target;if(Q.hasPointerCapture(L.pointerId)&&Q.releasePointerCapture(L.pointerId),_.current=null,v.current=null,re){const z=L.currentTarget,C={originalEvent:L,delta:re};yy(re,p.swipeDirection,p.swipeThreshold)?wl(vP,f,C,{discrete:!0}):wl(yP,h,C,{discrete:!0}),z.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),_P=t=>{const{__scopeToast:e,children:n,...r}=t,s=du(Wa,e),[i,o]=b.useState(!1),[a,l]=b.useState(!1);return EP(()=>o(!0)),b.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:g.jsx(Vb,{asChild:!0,children:g.jsx(uu,{...r,children:i&&g.jsxs(g.Fragment,{children:[s.label," ",n]})})})},SP="ToastTitle",Kb=b.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return g.jsx(We.div,{...r,ref:e})});Kb.displayName=SP;var kP="ToastDescription",qb=b.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return g.jsx(We.div,{...r,ref:e})});qb.displayName=kP;var Gb="ToastAction",Yb=b.forwardRef((t,e)=>{const{altText:n,...r}=t;return n.trim()?g.jsx(Zb,{altText:n,asChild:!0,children:g.jsx($p,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${Gb}\`. Expected non-empty \`string\`.`),null)});Yb.displayName=Gb;var Qb="ToastClose",$p=b.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t,s=xP(Qb,n);return g.jsx(Zb,{asChild:!0,children:g.jsx(We.button,{type:"button",...r,ref:e,onClick:$e(t.onClick,s.onClose)})})});$p.displayName=Qb;var Zb=b.forwardRef((t,e)=>{const{__scopeToast:n,altText:r,...s}=t;return g.jsx(We.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:e})});function Jb(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),TP(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...Jb(r))}}),e}function wl(t,e,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?Db(s,i):s.dispatchEvent(i)}var yy=(t,e,n=0)=>{const r=Math.abs(t.x),s=Math.abs(t.y),i=r>s;return e==="left"||e==="right"?i&&r>n:!i&&s>n};function EP(t=()=>{}){const e=Gr(t);Ln(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function TP(t){return t.nodeType===t.ELEMENT_NODE}function CP(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function ud(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var PP=Fb,Xb=zb,e_=Hb,t_=Kb,n_=qb,r_=Yb,s_=$p;function i_(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=i_(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function o_(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=i_(t))&&(r&&(r+=" "),r+=e);return r}const vy=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,wy=o_,Vp=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return wy(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=e,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const h=vy(u)||vy(d);return s[c][h]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:h,...f}=u;return Object.entries(f).every(w=>{let[p,x]=w;return Array.isArray(x)?x.includes({...i,...a}[p]):{...i,...a}[p]===x})?[...c,d,h]:c},[]);return wy(t,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 42 * @license lucide-react v0.462.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const AP=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a_=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/** 47 * @license lucide-react v0.462.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */var RP={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"};/** 52 * @license lucide-react v0.462.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const OP=b.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>b.createElement("svg",{ref:l,...RP,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:a_("lucide",s),...a},[...o.map(([c,u])=>b.createElement(c,u)),...Array.isArray(i)?i:[i]]));/** 57 * @license lucide-react v0.462.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const we=(t,e)=>{const n=b.forwardRef(({className:r,...s},i)=>b.createElement(OP,{ref:i,iconNode:e,className:a_(`lucide-${AP(t)}`,r),...s}));return n.displayName=`${t}`,n};/** 62 * @license lucide-react v0.462.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const jP=we("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/** 67 * @license lucide-react v0.462.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const Jt=we("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 72 * @license lucide-react v0.462.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const NP=we("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/** 77 * @license lucide-react v0.462.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const xy=we("CalendarCheck",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);/** 82 * @license lucide-react v0.462.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const IP=we("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 87 * @license lucide-react v0.462.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const DP=we("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 92 * @license lucide-react v0.462.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const LP=we("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 97 * @license lucide-react v0.462.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const MP=we("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 102 * @license lucide-react v0.462.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const $P=we("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"}]]);/** 107 * @license lucide-react v0.462.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree.
111 */const Vh=we("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 112 * @license lucide-react v0.462.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const VP=we("LayoutTemplate",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]);/** 117 * @license lucide-react v0.462.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const l_=we("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 122 * @license lucide-react v0.462.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const Up=we("MapPin",[["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"}]]);/** 127 * @license lucide-react v0.462.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const UP=we("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 132 * @license lucide-react v0.462.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const c_=we("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 137 * @license lucide-react v0.462.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const by=we("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** 142 * @license lucide-react v0.462.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const FP=we("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/** 147 * @license lucide-react v0.462.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const BP=we("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 152 * @license lucide-react v0.462.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const u_=we("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 157 * @license lucide-react v0.462.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const zP=we("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 162 * @license lucide-react v0.462.0 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const Fp=we("ShieldCheck",[["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",ke
vendor: 10,013 bytes, lines 166-191
166y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 167 * @license lucide-react v0.462.0 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const WP=we("Shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]);/** 172 * @license lucide-react v0.462.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 */const HP=we("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 177 * @license lucide-react v0.462.0 - ISC 178 * 179 * This source code is licensed under the ISC license. 180 * See the LICENSE file in the root directory of this source tree. 181 */const _y=we("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** 182 * @license lucide-react v0.462.0 - ISC 183 * 184 * This source code is licensed under the ISC license. 185 * See the LICENSE file in the root directory of this source tree. 186 */const KP=we("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 187 * @license lucide-react v0.462.0 - ISC 188 * 189 * This source code is licensed under the ISC license. 190 * See the LICENSE file in the root directory of this source tree. 191 */const Bp=we("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),zp="-",qP=t=>{const e=YP(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{const a=o.split(zp);return a[0]===""&&a.length!==1&&a.shift(),d_(a,e)||GP(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},d_=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?d_(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const i=t.join(zp);return(o=e.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Sy=/^\[(.+)\]$/,GP=t=>{if(Sy.test(t)){const e=Sy.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},YP=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return ZP(Object.entries(t.classGroups),n).forEach(([i,o])=>{Uh(o,r,i,e)}),r},Uh=(t,e,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?e:ky(e,s);i.classGroupId=n;return}if(typeof s=="function"){if(QP(s)){Uh(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Uh(o,ky(e,i),n,r)})})},ky=(t,e)=>{let n=t;return e.split(zp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},QP=t=>t.isThemeGetter,ZP=(t,e)=>e?t.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[e+o,a])):i);return[n,s]}):t,JP=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),e++,e>t&&(e=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},h_="!",XP=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,s=e[0],i=e.length,o=a=>{const l=[];let c=0,u=0,d;for(let x=0;x<a.length;x++){let y=a[x];if(c===0){if(y===s&&(r||a.slice(x,x+i)===e)){l.push(a.slice(u,x)),u=x+i;continue}if(y==="/"){d=x;continue}}y==="["?c++:y==="]"&&c--}const h=l.length===0?a:a.substring(u),f=h.startsWith(h_),w=f?h.substring(1):h,p=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:w,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},eA=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},tA=t=>({cache:JP(t.cacheSize),parseClassName:XP(t),...qP(t)}),nA=/\s+/,rA=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,i=[],o=t.trim().split(nA);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:f}=n(c);let w=!!f,p=r(w?h.substring(0,f):h);if(!p){if(!w){a=c+(a.length>0?" "+a:a);continue}if(p=r(h),!p){a=c+(a.length>0?" "+a:a);continue}w=!1}const x=eA(u).join(":"),y=d?x+h_:x,m=y+p;if(i.includes(m))continue;i.push(m);const v=s(p,w);for(let _=0;_<v.length;++_){const S=v[_];i.push(y+S)}a=c+(a.length>0?" "+a:a)}return a};function sA(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=f_(e))&&(r&&(r+=" "),r+=n);return r}const f_=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=f_(t[r]))&&(n&&(n+=" "),n+=e);return n};function iA(t,...e){let n,r,s,i=o;function o(l){const c=e.reduce((u,d)=>d(u),t());return n=tA(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=rA(l,n);return s(l,u),u}return function(){return i(sA.apply(null,arguments))}}const be=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},p_=/^\[(?:([a-z-]+):)?(.+)\]$/i,oA=/^\d+\/\d+$/,aA=new Set(["px","full","screen"]),lA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cA=/\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$/,uA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,dA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Un=t=>Pi(t)||aA.has(t)||oA.test(t),pr=t=>oo(t,"length",xA),Pi=t=>!!t&&!Number.isNaN(Number(t)),dd=t=>oo(t,"number",Pi),Eo=t=>!!t&&Number.isInteger(Number(t)),fA=t=>t.endsWith("%")&&Pi(t.slice(0,-1)),ne=t=>p_.test(t),mr=t=>lA.test(t),pA=new Set(["length","size","percentage"]),mA=t=>oo(t,pA,m_),gA=t=>oo(t,"position",m_),yA=new Set(["image","url"]),vA=t=>oo(t,yA,_A),wA=t=>oo(t,"",bA),To=()=>!0,oo=(t,e,n)=>{const r=p_.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},xA=t=>cA.test(t)&&!uA.test(t),m_=()=>!1,bA=t=>dA.test(t),_A=t=>hA.test(t),SA=()=>{const t=be("colors"),e=be("spacing"),n=be("blur"),r=be("brightness"),s=be("borderColor"),i=be("borderRadius"),o=be("borderSpacing"),a=be("borderWidth"),l=be("contrast"),c=be("grayscale"),u=be("hueRotate"),d=be("invert"),h=be("gap"),f=be("gradientColorStops"),w=be("gradientColorStopPositions"),p=be("inset"),x=be("margin"),y=be("opacity"),m=be("padding"),v=be("saturate"),_=be("scale"),S=be("sepia"),k=be("skew"),E=be("space"),T=be("translate"),P=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",ne,e],D=()=>[ne,e],Y=()=>["",Un,pr],L=()=>["auto",Pi,ne],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",ne],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[Pi,ne];return{cacheSize:500,separator:":",theme:{colors:[To],spacing:[Un,pr],blur:["none","",mr,ne],brightness:Z(),borderColor:[t],borderRadius:["none","","full",mr,ne],borderSpacing:D(),borderWidth:Y(),contrast:Z(),grayscale:R(),hueRotate:Z(),invert:R(),gap:D(),gradientColorStops:[t],gradientColorStopPositions:[fA,pr],inset:B(),margin:B(),opacity:Z(),padding:D(),saturate:Z(),scale:Z(),sepia:R(),skew:Z(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",ne]}],container:["container"],columns:[{columns:[mr]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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"],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:[...re(),ne]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Eo,ne]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ne]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Eo,ne]}],"grid-cols":[{"grid-cols":[To]}],"col-start-end":[{col:["auto",{span:["full",Eo,ne]},ne]}],"col-start":[{"col-start":L()}
vendor: 4,241 bytes, line 191
191],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[To]}],"row-start-end":[{row:["auto",{span:[Eo,ne]},ne]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ne]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ne]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ne,e]}],"min-w":[{"min-w":[ne,e,"min","max","fit"]}],"max-w":[{"max-w":[ne,e,"none","full","min","max","fit","prose",{screen:[mr]},mr]}],h:[{h:[ne,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ne,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ne,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ne,e,"auto","min","max","fit"]}],"font-size":[{text:["base",mr,pr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",dd]}],"font-family":[{font:[To]}],"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:["tighter","tight","normal","wide","wider","widest",ne]}],"line-clamp":[{"line-clamp":["none",Pi,dd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Un,ne]}],"list-image":[{"list-image":["none",ne]}],"list-style-type":[{list:["none","disc","decimal",ne]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Un,pr]}],"underline-offset":[{"underline-offset":["auto",Un,ne]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),gA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mA]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vA]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[w]}
191],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,467 bytes, line 191
191],"divide-style":[{divide:Q()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[Un,ne]}],"outline-w":[{outline:[Un,pr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Un,pr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",mr,wA]}],"shadow-color":[{shadow:[To]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",mr,ne]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ne]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",ne]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",ne]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Eo,ne]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ne]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],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-in","zoom-out",ne]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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"]}],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",ne]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Un,pr,dd]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
191none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-s","border-color-e","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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},kA=iA(SA);function Ct(...t){return kA(o_(t))}const EA=PP,g_=b.forwardRef(({className:t,...e},n)=>g.jsx(Xb,{ref:n,className:Ct("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));g_.displayName=Xb.displayName;const TA=Vp("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),y_=b.forwardRef(({className:t,variant:e,...n},r)=>g.jsx(e_,{ref:r,className:Ct(TA({variant:e}),t),...n}));y_.displayName=e_.displayName;const CA=b.forwardRef(({className:t,...e},n)=>g.jsx(r_,{ref:n,className:Ct("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",t),...e}));CA.displayName=r_.displayName;const v_=b.forwardRef(({className:t,...e},n)=>g.jsx(s_,{ref:n,className:Ct("absolute right-2 top-2 rounded-md p-1 text-foreground
191/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:g.jsx(Bp,{className:"h-4 w-4"})}));v_.displayName=s_.displayName;const w_=b.forwardRef(({className:t,...e},n)=>g.jsx(t_,{ref:n,className:Ct("text-sm font-semibold",t),...e}));w_.displayName=t_.displayName;const x_=b.forwardRef(({className:t,...e},n)=>g.jsx(n_,{ref:n,className:Ct("text-sm opacity-90",t),...e}));x_.displayName=n_.displayName;function PA(){const{toasts:t}=Ob();return g.jsxs(EA,{children:[t.map(function({id:e,title:n,description:r,action:s,...i}){return g.jsxs(y_,{...i,children:[g.jsxs("div",{className:"grid gap-1",children:[n&&g.jsx(w_,{children:n}),r&&g.jsx(x_,{children:r})]}),s,g.jsx(v_,{})]},e)}),g.jsx(g_,{})]})}var Ey=["light","dark"],AA="(prefers-color-scheme: dark)",RA=b.createContext(void 0),OA={setTheme:t=>{},themes:[]},jA=()=>{var t;return(t=b.useContext(RA))!=null?t:OA};b.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let c=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=s?Ey.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(w,p=!1,x=!0)=>{let y=o?o[w]:w,m=p?w+"|| ''":`'${y}'`,v="";return s&&x&&!p&&Ey.includes(w)&&(v+=`d.style.colorScheme = '${w}';`),n==="class"?p||y?v+=`c.add(${m})`:v+="null":y&&(v+=`d[s](n,${m})`),v},f=t?`!function(){${u}${h(t)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${c})){var t='${AA}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${c?"":"else{"+h(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${e}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${d}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var NA=t=>{switch(t){case"success":return LA;case"info":return $A;case"warning":return MA;case"error":return VA;default:return null}},IA=Array(12).fill(0),DA=({visible:t,className:e})=>j.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},j.createElement("div",{className:"sonner-spinner"},IA.map((n,r)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),LA=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),MA=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},j.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"})),$A=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),VA=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.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"})),UA=j.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"},j.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),j.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),FA=()=>{let[t,e]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{e(document.hidden)};
191return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},Fh=1,BA=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...r}=t,s=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Fh++,i=this.toasts.find(a=>a.id===s),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...t,id:s,title:n}),{...a,...t,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let r=t instanceof Promise?t:t(),s=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],j.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(WA(l)&&!l.ok){s=!1;let c=typeof e.error=="function"?await e.error(`HTTP error! status: ${l.status}`):e.error,u=typeof e.description=="function"?await e.description(`HTTP error! status: ${l.status}`):e.description;this.create({id:n,type:"error",message:c,description:u})}else if(e.success!==void 0){s=!1;let c=typeof e.success=="function"?await e.success(l):e.success,u=typeof e.description=="function"?await e.description(l):e.description;this.create({id:n,type:"success",message:c,description:u})}}).catch(async l=>{if(i=["reject",l],e.error!==void 0){s=!1;let c=typeof e.error=="function"?await e.error(l):e.error,u=typeof e.description=="function"?await e.description(l):e.description;this.create({id:n,type:"error",message:c,description:u})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=e.finally)==null||l.call(e)}),a=()=>new Promise((l,c)=>o.then(()=>i[0]==="reject"?c(i[1]):l(i[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||Fh++;return this.create({jsx:t(n),id:n,...e}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},bt=new BA,zA=(t,e)=>{let n=(e==null?void 0:e.id)||Fh++;return bt.addToast({title:t,...e,id:n}),n},WA=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",HA=zA,KA=()=>bt.toasts,qA=()=>bt.getActiveToasts(),XU=Object.assign(HA,{success:bt.success,info:bt.info,warning:bt.warning,error:bt.error,custom:bt.custom,message:bt.message,promise:bt.promise,dismiss:bt.dismiss,loading:bt.loading},{getHistory:KA,getToasts:qA});function GA(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}GA(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
191left: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);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
191:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px)) translate(var(--swipe-amount-x, 0px));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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
191--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-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-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],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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%)} 192`);function xl(t){return t.label!==void 0}var YA=3,QA="32px",ZA="16px",Ty=4e3,JA=356,XA=14,eR=20,tR=200;function sn(...t){return t.filter(Boolean).join(" ")}function nR(t){let[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}var rR=t=>{var e,n,r,s,i,o,a,l,c,u,d;let{invert:h,toast:f,unstyled:w,interacting:p,setHeights:x,visibleToasts:y,heights:m,index:v,toasts:_,expanded:S,removeToast:k,defaultRichColors:E,closeButton:T,style:P,cancelButtonStyle:O,actionButtonStyle:B,className:D="",descriptionClassName:Y="",duration:L,position:re,gap:Q,loadingIcon:z,expandByDefault:C,classNames:R,icons:M,closeButtonAriaLabel:Z="Close toast",pauseWhenPageIsHidden:K}=t,[ie,ae]=j.useState(null),[Ue,st]=j.useState(null),[he,Bs]=j.useState(!1),[ar,os]=j.useState(!1),[lr,zs]=j.useState(!1),[cr,Za]=j.useState(!1),[Ou,Ja]=j.useState(!1),[ju,mo]=j.useState(0),[Ws,Qm]=j.useState(0),go=j.useRef(f.duration||L||Ty),Zm=j.useRef(null),as=j.useRef(null),Qk=v===0,Zk=v+1<=y,Ft=f.type,Hs=f.dismissible!==!1,Jk=f.className||"",Xk=f.descriptionClassName||"",Xa=j.useMemo(()=>m.findIndex(ee=>ee.toastId===f.id)||0,[m,f.id]),eE=j.useMemo(()=>{var ee;return(ee=f.closeButton)!=null?ee:T},[f.closeButton,T]),Jm=j.useMemo(()=>f.duration||L||Ty,[f.duration,L]),Nu=j.useRef(0),Ks=j.useRef(0),Xm=j.useRef(0),qs=j.useRef(null),[tE,nE]=re.split("-"),eg=j.useMemo(()=>m.reduce((ee,pe,Ee)=>Ee>=Xa?ee:ee+pe.height,0),[m,Xa]),tg=FA(),rE=f.invert||h,Iu=Ft==="loading";Ks.current=j.useMemo(()=>Xa*Q+eg,[Xa,eg]),j.useEffect(()=>{go.current=Jm},[Jm]),j.useEffect(()=>{Bs(!0)},[]),j.useEffect(()=>{let ee=as.current;if(ee){let pe=ee.getBoundingClientRect().height;return Qm(pe),x(Ee=>[{toastId:f.id,height:pe,position:f.position},...Ee]),()=>x(Ee=>Ee.filter(en=>en.toastId!==f.id))}},[x,f.id]),j.useLayoutEffect(()=>{if(!he)return;let ee=as.current,pe=ee.style.height;ee.style.height="auto";let Ee=ee.getBoundingClientRect().height;ee.style.height=pe,Qm(Ee),x(en=>en.find(tn=>tn.toastId===f.id)?en.map(tn=>tn.toastId===f.id?{...tn,height:Ee}:tn):[{toastId:f.id,height:Ee,position:f.position},...en])},[he,f.title,f.description,x,f.id]);let ur=j.useCallback(()=>{os(!0),mo(Ks.current),x(ee=>ee.filter(pe=>pe.toastId!==f.id)),setTimeout(()=>{k(f)},tR)},[f,k,x,Ks]);j.useEffect(()=>{if(f.promise&&Ft==="loading"||f.duration===1/0||f.type==="loading")return;let ee;return S||p||K&&tg?(()=>{if(Xm.current<Nu.current){let pe=new Date().getTime()-Nu.current;go.current=go.current-pe}
192Xm.current=new Date().getTime()})():go.current!==1/0&&(Nu.current=new Date().getTime(),ee=setTimeout(()=>{var pe;(pe=f.onAutoClose)==null||pe.call(f,f),ur()},go.current)),()=>clearTimeout(ee)},[S,p,f,Ft,K,tg,ur]),j.useEffect(()=>{f.delete&&ur()},[ur,f.delete]);function sE(){var ee,pe,Ee;return M!=null&&M.loading?j.createElement("div",{className:sn(R==null?void 0:R.loader,(ee=f==null?void 0:f.classNames)==null?void 0:ee.loader,"sonner-loader"),"data-visible":Ft==="loading"},M.loading):z?j.createElement("div",{className:sn(R==null?void 0:R.loader,(pe=f==null?void 0:f.classNames)==null?void 0:pe.loader,"sonner-loader"),"data-visible":Ft==="loading"},z):j.createElement(DA,{className:sn(R==null?void 0:R.loader,(Ee=f==null?void 0:f.classNames)==null?void 0:Ee.loader),visible:Ft==="loading"})}return j.createElement("li",{tabIndex:0,ref:as,className:sn(D,Jk,R==null?void 0:R.toast,(e=f==null?void 0:f.classNames)==null?void 0:e.toast,R==null?void 0:R.default,R==null?void 0:R[Ft],(n=f==null?void 0:f.classNames)==null?void 0:n[Ft]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:E,"data-styled":!(f.jsx||f.unstyled||w),"data-mounted":he,"data-promise":!!f.promise,"data-swiped":Ou,"data-removed":ar,"data-visible":Zk,"data-y-position":tE,"data-x-position":nE,"data-index":v,"data-front":Qk,"data-swiping":lr,"data-dismissible":Hs,"data-type":Ft,"data-invert":rE,"data-swipe-out":cr,"data-swipe-direction":Ue,"data-expanded":!!(S||C&&he),style:{"--index":v,"--toasts-before":v,"--z-index":_.length-v,"--offset":`${ar?ju:Ks.current}px`,"--initial-height":C?"auto":`${Ws}px`,...P,...f.style},onDragEnd:()=>{zs(!1),ae(null),qs.current=null},onPointerDown:ee=>{Iu||!Hs||(Zm.current=new Date,mo(Ks.current),ee.target.setPointerCapture(ee.pointerId),ee.target.tagName!=="BUTTON"&&(zs(!0),qs.current={x:ee.clientX,y:ee.clientY}))},onPointerUp:()=>{var ee,pe,Ee,en;if(cr||!Hs)return;qs.current=null;let tn=Number(((ee=as.current)==null?void 0:ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),dr=Number(((pe=as.current)==null?void 0:pe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ls=new Date().getTime()-((Ee=Zm.current)==null?void 0:Ee.getTime()),nn=ie==="x"?tn:dr,hr=Math.abs(nn)/ls;if(Math.abs(nn)>=eR||hr>.11){mo(Ks.current),(en=f.onDismiss)==null||en.call(f,f),st(ie==="x"?tn>0?"right":"left":dr>0?"down":"up"),ur(),Za(!0),Ja(!1);return}zs(!1),ae(null)},onPointerMove:ee=>{var pe,Ee,en,tn;if(!qs.current||!Hs||((pe=window.getSelection())==null?void 0:pe.toString().length)>0)return;let dr=ee.clientY-qs.current.y,ls=ee.clientX-qs.current.x,nn=(Ee=t.swipeDirections)!=null?Ee:nR(re);!ie&&(Math.abs(ls)>1||Math.abs(dr)>1)&&ae(Math.abs(ls)>Math.abs(dr)?"x":"y");let hr={x:0,y:0};ie==="y"?(nn.includes("top")||nn.includes("bottom"))&&(nn.includes("top")&&dr<0||nn.includes("bottom")&&dr>0)&&(hr.y=dr):ie==="x"&&(nn.includes("left")||nn.includes("right"))&&(nn.includes("left")&&ls<0||nn.includes("right")&&ls>0)&&(hr.x=ls),(Math.abs(hr.x)>0||Math.abs(hr.y)>0)&&Ja(!0),(en=as.current)==null||en.style.setProperty("--swipe-amount-x",`${hr.x}px`),(tn=as.current)==null||tn.style.setProperty("--swipe-amount-y",`${hr.y}px`)}},eE&&!f.jsx?j.createElement("button",{"aria-label":Z,"data-disabled":Iu,"data-close-button":!0,onClick:Iu||!Hs?()=>{}:()=>{var ee;ur(),(ee=f.onDismiss)==null||ee.call(f,f)},className:sn(R==null?void 0:R.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(i=M==null?void 0:M.close)!=null?i:UA):null,f.jsx||b.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:j.createElement(j.Fragment,null,Ft||f.icon||f.promise?j.createElement("div",{"data-icon":"",className:sn(R==null?void 0:R.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||sE():null,f.type!=="loading"?f.icon||(M==null?void 0:M[Ft])||NA(Ft):null):null,j.createElement("div",{"data-content":"",className:sn(R==null?void 0:R.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},j.createElement("div",{"data-title":"",className:sn(R==null?void 0:R.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?j.createElement("div",{"data-description":"",className:sn(Y,Xk,R==null?void 0:R.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},typeof f.description=="function"?f.description():f.description):null),b.isValidElement(f.cancel)?f.cancel:f.cancel&&xl(f.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||O,onClick:ee=>{var pe,Ee;xl(f.cancel)&&Hs&&((Ee=(pe=f.cancel).onClick)==null||Ee.call(pe,ee),ur()
vendor: 5,848 bytes, line 192
192)},className:sn(R==null?void 0:R.cancelButton,(u=f==null?void 0:f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,b.isValidElement(f.action)?f.action:f.action&&xl(f.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||B,onClick:ee=>{var pe,Ee;xl(f.action)&&((Ee=(pe=f.action).onClick)==null||Ee.call(pe,ee),!ee.defaultPrevented&&ur())},className:sn(R==null?void 0:R.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function Cy(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function sR(t,e){let n={};return[t,e].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?ZA:QA;function l(c){["top","right","bottom","left"].forEach(u=>{n[`${o}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=a:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}var iR=b.forwardRef(function(t,e){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:c,theme:u="light",richColors:d,duration:h,style:f,visibleToasts:w=YA,toastOptions:p,dir:x=Cy(),gap:y=XA,loadingIcon:m,icons:v,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:S}=t,[k,E]=j.useState([]),T=j.useMemo(()=>Array.from(new Set([r].concat(k.filter(K=>K.position).map(K=>K.position)))),[k,r]),[P,O]=j.useState([]),[B,D]=j.useState(!1),[Y,L]=j.useState(!1),[re,Q]=j.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),z=j.useRef(null),C=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=j.useRef(null),M=j.useRef(!1),Z=j.useCallback(K=>{E(ie=>{var ae;return(ae=ie.find(Ue=>Ue.id===K.id))!=null&&ae.delete||bt.dismiss(K.id),ie.filter(({id:Ue})=>Ue!==K.id)})},[]);return j.useEffect(()=>bt.subscribe(K=>{if(K.dismiss){E(ie=>ie.map(ae=>ae.id===K.id?{...ae,delete:!0}:ae));return}setTimeout(()=>{Ab.flushSync(()=>{E(ie=>{let ae=ie.findIndex(Ue=>Ue.id===K.id);return ae!==-1?[...ie.slice(0,ae),{...ie[ae],...K},...ie.slice(ae+1)]:[K,...ie]})})})}),[]),j.useEffect(()=>{if(u!=="system"){Q(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Q("dark"):Q("light")),typeof window>"u")return;let K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:ie})=>{Q(ie?"dark":"light")})}catch{K.addListener(({matches:ae})=>{try{Q(ae?"dark":"light")}catch(Ue){console.error(Ue)}})}},[u]),j.useEffect(()=>{k.length<=1&&D(!1)},[k]),j.useEffect(()=>{let K=ie=>{var ae,Ue;s.every(st=>ie[st]||ie.code===st)&&(D(!0),(ae=z.current)==null||ae.focus()),ie.code==="Escape"&&(document.activeElement===z.current||(Ue=z.current)!=null&&Ue.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[s]),j.useEffect(()=>{if(z.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,M.current=!1)}},[z.current]),j.createElement("section",{ref:e,"aria-label":`${_} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((K,ie)=>{var ae;let[Ue,st]=K.split("-");return k.length?j.createElement("ol",{key:K,dir:x==="auto"?Cy():x,tabIndex:-1,ref:z,className:a,"data-sonner-toaster":!0,"data-theme":re,"data-y-position":Ue,"data-lifted":B&&k.length>1&&!i,"data-x-position":st,style:{"--front-toast-height":`${((ae=P[0])==null?void 0:ae.height)||0}px`,"--width":`${JA}px`,"--gap":`${y}px`,...f,...sR(l,c)},onBlur:he=>{M.current&&!he.currentTarget.contains(he.relatedTarget)&&(M.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||M.current||(M.current=!0,R.current=he.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{Y||D(!1)},onDragEnd:()=>D(!1),onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},k.filter(he=>!he.position&&ie===0||he.position===K).map((he,Bs)=>{var ar,os;return j.createElement(rR,{key:he.id,icons:v,index:Bs,toast:he,defaultRichColors:d,duration:(ar=p==null?void 0:p.duration)!=null?ar:h,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:w,closeButton:(os=p==null?void 0:p.closeButton)!=null?os:o,interacting:Y,position:K,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:Z,toasts:k.filter(lr=>lr.position==he.position),heights:P.filter(lr=>lr.position==he.position),setHeights:O,expandByDefault:i,gap:y,loadingIcon:m,expanded:B,pauseWhenPageIsHidden:S,swipeDirections:t.swipeDirections})})):null}))});const oR=({...t})=>{const{theme:e="system"}=jA();return g.jsx(iR,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};var aR=Wf[" useId ".trim().toString()]||(()=>{}),lR=0;function b_(t){const[e,n]=b.useState(aR());return Ln(()=>{n(r=>r??String(lR++))},[t]),e?`radix-${e}
192`:""}const cR=["top","right","bottom","left"],Yr=Math.min,Rt=Math.max,_c=Math.round,bl=Math.floor,jn=t=>({x:t,y:t}),uR={left:"right",right:"left",bottom:"top",top:"bottom"},dR={start:"end",end:"start"};function Bh(t,e,n){return Rt(t,Yr(e,n))}function Xn(t,e){return typeof t=="function"?t(e):t}function er(t){return t.split("-")[0]}function ao(t){return t.split("-")[1]}function Wp(t){return t==="x"?"y":"x"}function Hp(t){return t==="y"?"height":"width"}const hR=new Set(["top","bottom"]);function An(t){return hR.has(er(t))?"y":"x"}function Kp(t){return Wp(An(t))}function fR(t,e,n){n===void 0&&(n=!1);const r=ao(t),s=Kp(t),i=Hp(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Sc(o)),[o,Sc(o)]}function pR(t){const e=Sc(t);return[zh(t),e,zh(e)]}function zh(t){return t.replace(/start|end/g,e=>dR[e])}const Py=["left","right"],Ay=["right","left"],mR=["top","bottom"],gR=["bottom","top"];function yR(t,e,n){switch(t){case"top":case"bottom":return n?e?Ay:Py:e?Py:Ay;case"left":case"right":return e?mR:gR;default:return[]}}function vR(t,e,n,r){const s=ao(t);let i=yR(er(t),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(zh)))),i}function Sc(t){return t.replace(/left|right|bottom|top/g,e=>uR[e])}function wR(t){return{top:0,right:0,bottom:0,left:0,...t}}function __(t){return typeof t!="number"?wR(t):{top:t,right:t,bottom:t,left:t}}function kc(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function Ry(t,e,n){let{reference:r,floating:s}=t;const i=An(e),o=Kp(e),a=Hp(o),l=er(e),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let f;switch(l){case"top":f={x:u,y:r.y-s.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-s.width,y:d};break;default:f={x:r.x,y:r.y}}switch(ao(e)){case"start":f[o]-=h*(n&&c?-1:1);break;case"end":f[o]+=h*(n&&c?-1:1);break}return f}const xR=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:u,y:d}=Ry(c,r,l),h=r,f={},w=0;for(let p=0;p<a.length;p++){const{name:x,fn:y}=a[p],{x:m,y:v,data:_,reset:S}=await y({x:u,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:f,re
vendor: 17,016 bytes, line 192
192cts:c,platform:o,elements:{reference:t,floating:e}});u=m??u,d=v??d,f={...f,[x]:{...f[x],..._}},S&&w<=50&&(w++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):S.rects),{x:u,y:d}=Ry(c,h,l)),p=-1)}return{x:u,y:d,placement:h,strategy:s,middlewareData:f}};async function ga(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=Xn(e,t),w=__(f),x=a[h?d==="floating"?"reference":"floating":d],y=kc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),m=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=kc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:v,strategy:l}):m);return{top:(y.top-S.top+w.top)/_.y,bottom:(S.bottom-y.bottom+w.bottom)/_.y,left:(y.left-S.left+w.left)/_.x,right:(S.right-y.right+w.right)/_.x}}const bR=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=Xn(t,e)||{};if(c==null)return{};const d=__(u),h={x:n,y:r},f=Kp(s),w=Hp(f),p=await o.getDimensions(c),x=f==="y",y=x?"top":"left",m=x?"bottom":"right",v=x?"clientHeight":"clientWidth",_=i.reference[w]+i.reference[f]-h[f]-i.floating[w],S=h[f]-i.reference[f],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let E=k?k[v]:0;(!E||!await(o.isElement==null?void 0:o.isElement(k)))&&(E=a.floating[v]||i.floating[w]);const T=_/2-S/2,P=E/2-p[w]/2-1,O=Yr(d[y],P),B=Yr(d[m],P),D=O,Y=E-p[w]-B,L=E/2-p[w]/2+T,re=Bh(D,L,Y),Q=!l.arrow&&ao(s)!=null&&L!==re&&i.reference[w]/2-(L<D?O:B)-p[w]/2<0,z=Q?L<D?L-D:L-Y:0;return{[f]:h[f]+z,data:{[f]:re,centerOffset:L-re-z,...Q&&{alignmentOffset:z}},reset:Q}}}),_R=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...x}=Xn(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=er(s),m=An(a),v=er(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=h||(v||!p?[Sc(a)]:pR(a)),k=w!=="none";!h&&k&&S.push(...vR(a,p,w,_));const E=[a,...S],T=await ga(e,x),P=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&P.push(T[y]),d){const L=fR(s,o,_);P.push(T[L[0]],T[L[1]])}if(O=[...O,{placement:s,overflows:P}],!P.every(L=>L<=0)){var B,D;const L=(((B=i.flip)==null?void 0:B.index)||0)+1,re=E[L];if(re&&(!(d==="alignment"?m!==An(re):!1)||O.every(C=>C.overflows[0]>0&&An(C.placement)===m)))return{data:{index:L,overflows:O},reset:{placement:re}};let Q=(D=O.filter(z=>z.overflows[0]<=0).sort((z,C)=>z.overflows[1]-C.overflows[1])[0])==null?void 0:D.placement;if(!Q)switch(f){case"bestFit":{var Y;const z=(Y=O.filter(C=>{if(k){const R=An(C.placement);return R===m||R==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:Y[0];z&&(Q=z);break}case"initialPlacement":Q=a;break}if(s!==Q)return{reset:{placement:Q}}}return{}}}};function Oy(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function jy(t){return cR.some(e=>t[e]>=0)}const SR=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...s}=Xn(t,e);switch(r){case"referenceHidden":{const i=await ga(e,{...s,elementContext:"reference"}),o=Oy(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:jy(o)}}}case"escaped":{const i=await ga(e,{...s,altBoundary:!0}),o=Oy(i,n.floating);return{data:{escapedOffsets:o,escaped:jy(o)}}}default:return{}}}}},S_=new Set(["left","top"]);async function kR(t,e){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=er(n),a=ao(n),l=An(n)==="y",c=S_.has(o)?-1:1,u=i&&l?-1:1,d=Xn(e,t);let{mainAxis:h,crossAxis:f,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof w=="number"&&(f=a==="end"?w*-1:w),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}const ER=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=e,l=await kR(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},TR=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:y,y:m}=x;return{x:y,y:m}}},...l}=Xn(t,e),c={x:n,y:r},u=await ga(e,l),d=An(er(s)),h=Wp(d);let f=c[h],w=c[d];if(i){const x=h==="y"?"top":"left",y=h==="y"?"bottom":"right",m=f+u[x],v=f-u[y];f=Bh(m,f,v)}if(o){const x=d==="y"?"top":"left",y=d==="y"?"bottom":"right",m=w+u[x],v=w-u[y];w=Bh(m,w,v)}const p=a.fn({...e,[h]:f,[d]:w});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:i,[d]:o}}}}}},CR=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Xn(t,e),u={x:n,y:r},d=An(s),h=Wp(d);let f=u[h],w=u[d];const p=Xn(a,e),x=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const v=h==="y"?"height":"width",_=i.reference[h]-i.floating[v]+x.mainAxis,S=i.reference[h]+i.reference[v]-x.mainAxis;f<_?f=_:f>S&&(f=S)}if(c){var y,m;const v=h==="y"?"width":"height",_=S_.has(er(s)),S=i.reference[d]-i.floating[v]+(_&&((y=o.offset)==null?void 0:y[d])||0)+(_?0:x.crossAxis),k=i.reference[d]+i.reference[v]+(_?0:((m=o.offset)==null?void 0:m[d])||0)-(_?x.crossAxis:0);w<S?w=S:w>k&&(w=k)}return{[h]:f,[d]:w}}}},PR=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:s,rects:i,platform:o,elements:a}=e,{apply:l=()=>{},...c}=Xn(t,e),u=await ga(e,c),d=er(s),h=ao(s),f=An(s)==="y",{width:w,height:p}=i.floating;let x,y;d==="top"||d==="bottom"?(x=d,y=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,x=h==="end"?"top":"bottom");const m=p-u.top-u.bottom,v=w-u.left-u.right,_=Yr(p-u[x],m),S=Yr(w-u[y],v),k=!e.middlewareData.shift;let E=_,T=S;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(T=v),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(E=m),k&&!h){const O=Rt(u.left,0),B=Rt(u.right,0),D=Rt(u.top,0),Y=Rt(u.bottom,0);f?T=w-2*(O!==0||B!==0?O+B:Rt(u.left,u.right)):E=p-2*(D!==0||Y!==0?D+Y:Rt(u.top,u.bottom))}await l({...e,availableWidth:T,availableHeight:E});const P=await o.getDimensions(a.floating);return w!==P.width||p!==P.height?{reset:{rects:!0}}:{}}}};function hu(){return typeof window<"u"}function lo(t){return k_(t)?(t.nodeName||"").toLowerCase():"#document"}function Dt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Vn(t){var e;return(e=(k_(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function k_(t){return hu()?t instanceof Node||t instanceof Dt(t).Node:!1}function xn(t){return hu()?t instanceof Element||t instanceof Dt(t).Element:!1}function Mn(t){return hu()?t instanceof HTMLElement||t instanceof Dt(t).HTMLElement:!1}function Ny(t){return!hu()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Dt(t).ShadowRoot}const AR=new Set(["inline","contents"]);function Ha(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=bn(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!AR.has(s)}const RR=new Set(["table","td","th"]);function OR(t){return RR.has(lo(t))}const jR=[":popover-open",":modal"];function fu(t){return jR.some(e=>{try{return t.matches(e)}catch{return!1}})}const NR=["transform","translate","scale","rotate","perspective"],IR=["transform","translate","scale","rotate","perspective","filter"],DR=["paint","layout","strict","content"];function qp(t){const e=Gp(),n=xn(t)?bn(t):t;return NR.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||IR.some(r=>(n.willChange||"").includes(r))||DR.some(r=>(n.contain||"").includes(r))}function LR(t){let e=Qr(t);for(;Mn(e)&&!qi(e);){if(qp(e))return e;if(fu(e))return null;e=Qr(e)}return null}function Gp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const MR=new Set(["html","body","#document"]);function qi(t){return MR.has(lo(t))}function bn(t){return Dt(t).getComputedStyle(t)}function pu(t){return xn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Qr(t){if(lo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ny(t)&&t.host||Vn(t);return Ny(e)?e.host:e}function E_(t){const e=Qr(t);return qi(e)?t.ownerDocument?t.ownerDocument.body:t.body:Mn(e)&&Ha(e)?e:E_(e)}function ya(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=E_(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),o=Dt(s);if(i){const a=Wh(o);return e.concat(o,o.visualViewport||[],Ha(s)?s:[],a&&n?ya(a):[])}return e.concat(s,ya(s,[],n))}function Wh(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function T_(t){const e=bn(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=Mn(t),i=s?t.offsetWidth:n,o=s?t.offsetHeight:r,a=_c(n)!==i||_c(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Yp(t){return xn(t)?t:t.contextElement}function Ai(t){const e=Yp(t);if(!Mn(e))return jn(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:i}=T_(e);let o=(i?_c(n.width):n.width)/r,a=(i?_c(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const $R=jn(0);function C_(t){const e=Dt(t);return!Gp()||!e.visualViewport?$R:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function VR(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Dt(t)?!1:e}function $s(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=Yp(t);let o=jn(1);e&&(r?xn(r)&&(o=Ai(r)):o=Ai(t));const a=VR(i,n,r)?C_(i):jn(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const h=Dt(i),f=r&&xn(r)?Dt(r):r;let w=h,p=Wh(w);for(;p&&r&&f!==w;){const x=Ai(p),y=p.getBoundingClientRect(),m=bn(p),v=y.left+(p.clientLeft+parseFloat(m.paddingLeft))*x.x,_=y.top+(p.clientTop+parseFloat(m.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=v,c+=_,w=Dt(p),p=Wh(w)}}return kc({width:u,height:d,x:l,y:c})}function Qp(t,e){const n=pu(t).scrollLeft;return e?e.left+n:$s(Vn(t)).left+n}function P_(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:Qp(t,r)),i=r.top+e.scrollTop;return{x:s,y:i}}function UR(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",o=Vn(r),a=e?fu(e.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=jn(1);const u=jn(0),d=Mn(r);if((d||!d&&!i)&&((lo(r)!=="body"||Ha(o))&&(l=pu(r)),Mn(r))){const f=$s(r);c=Ai(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const h=o&&!d&&!i?P_(o,l,!0):jn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function FR(t){return Array.from(t.getClientRects())}function BR(t){const e=Vn(t),n=pu(t),r=t.ownerDocument.body,s=Rt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Rt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Qp(t);const a=-n.scrollTop;return bn(r).direction==="rtl"&&(o+=Rt(e.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function zR(t,e){const n=Dt(t),r=Vn(t),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=Gp();(!c||c&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const WR=new Set(["absolute","fixed"]);function HR(t,e){const n=$s(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=Mn(t)?Ai(t):jn(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function Iy(t,e,n){let r;if(e==="viewport")r=zR(t,n);else if(e==="document")r=BR(Vn(t));else if(xn(e))r=HR(e,n);else{const s=C_(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return kc(r)}function A_(t,e){const n=Qr(t);return n===e||!xn(n)||qi(n)?!1:bn(n).position==="fixed"||A_(n,e)}function KR(t,e){const n=e.get(t);if(n)return n;let r=ya(t,[],!1).filter(a=>xn(a)&&lo(a)!=="body"),s=null;const i=bn(t).position==="fixed";let o=i?Qr(t):t;for(;xn(o)&&!qi(o);){const a=bn(o),l=qp(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&WR.has(s.position)||Ha(o)&&!l&&A_(t,o))?r=r.filter(u=>u!==o):s=a,o=Qr(o)}return e.set(t,r),r}function qR(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?fu(e)?[]:KR(e,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=Iy(e,u,s);return c.top=Rt(d.top,c.top),c.right=Yr(d.right,c.right),c.bottom=Yr(d.bottom,c.bottom),c.left=Rt(d.left,c.left),c},Iy(e,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function GR(t){const{width:e,height:n}=T_(t);return{width:e,height:n}}function YR(t,e,n){const r=Mn(e),s=Vn(e),i=n==="fixed",o=$s(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=jn(0);function c(){l.x=Qp(s)}if(r||!r&&!i)if((lo(e)!=="body"||Ha(s))&&(a=pu(e)),r){const f=$s(e,!0,i,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else s&&c();i&&!r&&s&&c();const u=s&&!r&&!i?P_(s,a):jn(0),d=o.left+a.scrollLeft-l.x-u.x,h=o.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:o.width,height:o.height}}function hd(t){return bn(t).position==="static"}function Dy(t,e){if(!Mn(t)||bn(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Vn(t)===n&&(n=n.ownerDocument.body),n}function R_(t,e){const n=Dt(t);if(fu(t))return n;if(!Mn(t)){let s=Qr(t);for(;s&&!qi(s);){if(xn(s)&&!hd(s))return s;s=Qr(s)}return n}let r=Dy(t,e);for(;r&&OR(r)&&hd(r);)r=Dy(r,e);return r&&qi(r)&&hd(r)&&!qp(r)?n:r||LR(t)||n}const QR=async function(t){const e=this.getOffsetParent||R_,n=this.getDimensions,r=await n(t.floating);return{reference:YR(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ZR(t){return bn(t).direction==="rtl"}const JR={convertOffsetParentRelativeRectToViewportRelativeRect:UR,getDocumentElement:Vn,getClippingRect:qR,getOffsetParent:R_,getElementRects:QR,getClientRects:FR,getDimensions:GR,getScale:Ai,isElement:xn,isRTL:ZR};function O_(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function XR(t,e){let n=null,r;const s=Vn(t);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=t.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=c;if(a||e(),!h||!f)return;const w=bl(d),p=bl(s.clientWidth-(u+h)),x=bl(s.clientHeight-(d+f)),y=bl(u),v={rootMargin:-w+"px "+-p+"px "+-x+"px "+-y+"px",threshold:Rt(0,Yr(1,l))||1};let _=!0;function S(k){const E=k[0].intersectionRatio;if(E!==l){if(!_)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!O_(c,t.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(S,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(t)}return o(!0),i}function eO(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Yp(t),u=s||i?[...c?ya(c):[],...ya(e)]:[];u.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=c&&a?XR(c,n):null;let h=-1,f=null;o&&(f=new ResizeObserver(y=>{let[m]=y;m&&m.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(e)})),n()}),c&&!l&&f.observe(c),f.observe(e));let w,p=l?$s(t):null;l&&x();function x(){const y=$s(t);p&&!O_(p,y)&&n(),p=y,w=requestAnimationFrame(x)}return n(),()=>{var y;u.forEach(m=>{s&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),d==null||d(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(w)}}const tO=ER,nO=TR,rO=_R,sO=PR,iO=SR,Ly=bR,oO=CR,aO=(t,e,n)=>{const r=new Map,s={platform:JR,...n},i={...s.platform,_c:r};return xR(t,e,{...s,platform:i})};var lO=typeof document<"u",cO=function(){},Hl=lO?b.useLayoutEffect:cO;function Ec(t,e){if(t===e)return!0;
vendor: 4,136 bytes, line 192
192if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Ec(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&t.$$typeof)&&!Ec(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function j_(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function My(t,e){const n=j_(t);return Math.round(e*n)/n}function fd(t){const e=b.useRef(t);return Hl(()=>{e.current=t}),e}function uO(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[u,d]=b.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,f]=b.useState(r);Ec(h,r)||f(r);const[w,p]=b.useState(null),[x,y]=b.useState(null),m=b.useCallback(C=>{C!==k.current&&(k.current=C,p(C))},[]),v=b.useCallback(C=>{C!==E.current&&(E.current=C,y(C))},[]),_=i||w,S=o||x,k=b.useRef(null),E=b.useRef(null),T=b.useRef(u),P=l!=null,O=fd(l),B=fd(s),D=fd(c),Y=b.useCallback(()=>{if(!k.current||!E.current)return;const C={placement:e,strategy:n,middleware:h};B.current&&(C.platform=B.current),aO(k.current,E.current,C).then(R=>{const M={...R,isPositioned:D.current!==!1};L.current&&!Ec(T.current,M)&&(T.current=M,za.flushSync(()=>{d(M)}))})},[h,e,n,B,D]);Hl(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(C=>({...C,isPositioned:!1})))},[c]);const L=b.useRef(!1);Hl(()=>(L.current=!0,()=>{L.current=!1}),[]),Hl(()=>{if(_&&(k.current=_),S&&(E.current=S),_&&S){if(O.current)return O.current(_,S,Y);Y()}},[_,S,Y,O,P]);const re=b.useMemo(()=>({reference:k,floating:E,setReference:m,setFloating:v}),[m,v]),Q=b.useMemo(()=>({reference:_,floating:S}),[_,S]),z=b.useMemo(()=>{const C={position:n,left:0,top:0};if(!Q.floating)return C;const R=My(Q.floating,u.x),M=My(Q.floating,u.y);return a?{...C,transform:"translate("+R+"px, "+M+"px)",...j_(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:M}},[n,a,Q.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:Y,refs:re,elements:Q,floatingStyles:z}),[u,Y,re,Q,z])}const dO=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Ly({element:r.current,padding:s}).fn(n):{}:r?Ly({element:r,padding:s}).fn(n):{}}}},hO=(t,e)=>({...tO(t),options:[t,e]}),fO=(t,e)=>({...nO(t),options:[t,e]}),pO=(t,e)=>({...oO(t),options:[t,e]}),mO=(t,e)=>({...rO(t),options:[t,e]}),gO=(t,e)=>({...sO(t),options:[t,e]}),yO=(t,e)=>({...iO(t),options:[t,e]}),vO=(t,e)=>({...dO(t),options:[t,e]});var wO="Arrow",N_=b.forwardRef((t,e)=>{const{children:n,width:r=10,height:s=5,...i}=t;return g.jsx(We.svg,{...i,ref:e,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});N_.displayName=wO;var xO=N_;function bO(t){const[e,n]=b.useState(void 0);return Ln(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=t.offsetWidth,a=t.offsetHeight;n({width:o,height:a})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var I_="Popper",[D_,L_]=io(I_),[eF,M_]=D_(I_),$_="PopperAnchor",V_=b.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...s}=t,i=M_($_,n),o=b.useRef(null),a=Mt(e,o);return b.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:g.jsx(We.div,{...s,ref:a})});V_.displayName=$_;var Zp="PopperContent",[_O,SO]=D_(Zp),U_=b.forwardRef((t,e)=>{var he,Bs,ar,os,lr,zs;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l
vendor: 9,537 bytes, line 192
192=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:w,...p}=t,x=M_(Zp,n),[y,m]=b.useState(null),v=Mt(e,cr=>m(cr)),[_,S]=b.useState(null),k=bO(_),E=(k==null?void 0:k.width)??0,T=(k==null?void 0:k.height)??0,P=r+(i!=="center"?"-"+i:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},B=Array.isArray(c)?c:[c],D=B.length>0,Y={padding:O,boundary:B.filter(EO),altBoundary:D},{refs:L,floatingStyles:re,placement:Q,isPositioned:z,middlewareData:C}=uO({strategy:"fixed",placement:P,whileElementsMounted:(...cr)=>eO(...cr,{animationFrame:f==="always"}),elements:{reference:x.anchor},middleware:[hO({mainAxis:s+T,alignmentAxis:o}),l&&fO({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?pO():void 0,...Y}),l&&mO({...Y}),gO({...Y,apply:({elements:cr,rects:Za,availableWidth:Ou,availableHeight:Ja})=>{const{width:ju,height:mo}=Za.reference,Ws=cr.floating.style;Ws.setProperty("--radix-popper-available-width",`${Ou}px`),Ws.setProperty("--radix-popper-available-height",`${Ja}px`),Ws.setProperty("--radix-popper-anchor-width",`${ju}px`),Ws.setProperty("--radix-popper-anchor-height",`${mo}px`)}}),_&&vO({element:_,padding:a}),TO({arrowWidth:E,arrowHeight:T}),h&&yO({strategy:"referenceHidden",...Y})]}),[R,M]=z_(Q),Z=Gr(w);Ln(()=>{z&&(Z==null||Z())},[z,Z]);const K=(he=C.arrow)==null?void 0:he.x,ie=(Bs=C.arrow)==null?void 0:Bs.y,ae=((ar=C.arrow)==null?void 0:ar.centerOffset)!==0,[Ue,st]=b.useState();return Ln(()=>{y&&st(window.getComputedStyle(y).zIndex)},[y]),g.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:z?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ue,"--radix-popper-transform-origin":[(os=C.transformOrigin)==null?void 0:os.x,(lr=C.transformOrigin)==null?void 0:lr.y].join(" "),...((zs=C.hide)==null?void 0:zs.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:g.jsx(_O,{scope:n,placedSide:R,onArrowChange:S,arrowX:K,arrowY:ie,shouldHideArrow:ae,children:g.jsx(We.div,{"data-side":R,"data-align":M,...p,ref:v,style:{...p.style,animation:z?void 0:"none"}})})})});U_.displayName=Zp;var F_="PopperArrow",kO={top:"bottom",right:"left",bottom:"top",left:"right"},B_=b.forwardRef(function(e,n){const{__scopePopper:r,...s}=e,i=SO(F_,r),o=kO[i.placedSide];return g.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]: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:g.jsx(xO,{...s,ref:n,style:{...s.style,display:"block"}})})});B_.displayName=F_;function EO(t){return t!==null}var TO=t=>({name:"transformOrigin",options:t,fn(e){var x,y,m;const{placement:n,rects:r,middlewareData:s}=e,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[c,u]=z_(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(((y=s.arrow)==null?void 0:y.x)??0)+a/2,f=(((m=s.arrow)==null?void 0:m.y)??0)+l/2;let w="",p="";return c==="bottom"?(w=o?d:`${h}px`,p=`${-l}px`):c==="top"?(w=o?d:`${h}px`,p=`${r.floating.height+l}px`):c==="right"?(w=`${-l}px`,p=o?d:`${f}px`):c==="left"&&(w=`${r.floating.width+l}px`,p=o?d:`${f}px`),{data:{x:w,y:p}}}});function z_(t){const[e,n="center"]=t.split("-");return[e,n]}var CO=V_,PO=U_,AO=B_,[mu,tF]=io("Tooltip",[L_]),Jp=L_(),W_="TooltipProvider",RO=700,$y="tooltip.open",[OO,H_]=mu(W_),K_=t=>{const{__scopeTooltip:e,delayDuration:n=RO,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=t,o=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),g.jsx(OO,{scope:e,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:i})};K_.displayName=W_;var q_="Tooltip",[nF,gu]=mu(q_),Hh="TooltipTrigger",jO=b.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=gu(Hh,n),i=H_(Hh,n),o=Jp(n),a=b.useRef(null),l=Mt(e,a,s.onTriggerChange),c=b.useRef(!1),u=b.useRef(!1),d=b.useCallback(()=>c.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),g.jsx(CO,{asChild:!0,...o,children:g.jsx(We.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:$e(t.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:$e(t.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:$e(t.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:$e(t.onFocus,()=>{c.current||s.onOpen()}),onBlur:$e(t.onBlur,s.onClose),onClick:$e(t.onClick,s.onClose)})})});jO.displayName=Hh;var NO="TooltipPortal",[rF,IO]=mu(NO,{forceMount:void 0}),Gi="TooltipContent",G_=b.forwardRef((t,e)=>{const n=IO(Gi,t.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=t,o=gu(Gi,t.__scopeTooltip);return g.jsx(lu,{present:r||o.open,children:o.disableHoverableContent?g.jsx(Y_,{side:s,...i,ref:e}):g.jsx(DO,{side:s,...i,ref:e})})}),DO=b.forwardRef((t,e)=>{const n=gu(Gi,t.__scopeTooltip),r=H_(Gi,t.__scopeTooltip),s=b.useRef(null),i=Mt(e,s),[o,a]=b.useState(null),{trigger:l,onClose:c}=n,u=s.current,{onPointerInTransitChange:d}=r,h=b.useCallback(()=>{a(null),d(!1)},[d]),f=b.useCallback((w,p)=>{const x=w.currentTarget,y={x:w.clientX,y:w.clientY},m=UO(y,x.getBoundingClientRect()),v=FO(y,m),_=BO(p.getBoundingClientRect()),S=WO([...v,..._]);a(S),d(!0)},[d]);return b.useEffect(()=>()=>h(),[h]),b.useEffect(()=>{if(l&&u){const w=x=>f(x,u),p=x=>f(x,l);return l.addEventListener("pointerleave",w),u.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",w),u.removeEventListener("pointerleave",p)}}},[l,u,f,h]),b.useEffect(()=>{if(o){const w=p=>{const x=p.target,y={x:p.clientX,y:p.clientY},m=(l==null?void 0:l.contains(x))||(u==null?void 0:u.contains(x)),v=!zO(y,o);m?h():v&&(h(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,u,o,c,h]),g.jsx(Y_,{...t,ref:i})}),[LO,MO]=mu(q_,{isInside:!1}),$O=FC("TooltipContent"),Y_=b.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,l=gu(Gi,n),c=Jp(n),{onClose:u}=l;return b.useEffect(()=>(document.addEventListener($y,u),()=>document.removeEventListener($y,u)),[u]),b.useEffect(()=>{if(l.trigger){const d=h=>{const f=h.target;f!=null&&f.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),g.jsx(Dp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:g.jsxs(PO,{"data-state":l.stateAttribute,...c,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx($O,{children:r}),g.jsx(LO,{scope:n,isInside:!0,children:g.jsx(uP,{id:l.contentId,role:"tooltip",children:s||r})})]})})});G_.displayName=Gi;var Q_="TooltipArrow",VO=b.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=Jp(n);return MO(Q_,n).isInside?null:g.jsx(AO,{...s,...r,ref:e})});VO.displayName=Q_;function UO(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function FO(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function BO(t){const{top:e,right:n,bottom:r,left:s}=t;return[{x:s,y:e},{x:n,y:e},{x:n,y:r},{x:s,y:r}]}function zO(t,e){const{x:n,y:r}=t;let s=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const a=e[i],l=e[o],c=a.x,u=a.y,d=l.x,h=l.y;u>r!=h>r&&n<(d-c)*(r-u)/(h-u)+c&&(s=!s)}return s}function WO(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),HO(e)}function HO(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const s=t[r];for(;e.length>=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const s=t[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var KO=K_,Z_=G_;const qO=KO,GO=b.forwardRef(({className:t,sideOffset:e=4,...n},r)=>
vendor: 19,133 bytes, line 192
192g.jsx(Z_,{ref:r,sideOffset:e,className:Ct("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 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",t),...n}));GO.displayName=Z_.displayName;var yu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},vu=typeof window>"u"||"Deno"in globalThis;function un(){}function YO(t,e){return typeof t=="function"?t(e):t}function QO(t){return typeof t=="number"&&t>=0&&t!==1/0}function ZO(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Kh(t,e){return typeof t=="function"?t(e):t}function JO(t,e){return typeof t=="function"?t(e):t}function Vy(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=t;if(o){if(r){if(e.queryHash!==Xp(o,e.options))return!1}else if(!wa(e.queryKey,o))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||i&&!i(e))}function Uy(t,e){const{exact:n,status:r,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(va(e.options.mutationKey)!==va(i))return!1}else if(!wa(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function Xp(t,e){return((e==null?void 0:e.queryKeyHashFn)||va)(t)}function va(t){return JSON.stringify(t,(e,n)=>qh(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function wa(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>wa(t[n],e[n])):!1}function J_(t,e){if(t===e)return t;const n=Fy(t)&&Fy(e);if(n||qh(t)&&qh(e)){const r=n?t:Object.keys(t),s=r.length,i=n?e:Object.keys(e),o=i.length,a=n?[]:{},l=new Set(r);let c=0;for(let u=0;u<o;u++){const d=n?u:i[u];(!n&&l.has(d)||n)&&t[d]===void 0&&e[d]===void 0?(a[d]=void 0,c++):(a[d]=J_(t[d],e[d]),a[d]===t[d]&&t[d]!==void 0&&c++)}return s===o&&c===s?t:a}return e}function Fy(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function qh(t){if(!By(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!By(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function By(t){return Object.prototype.toString.call(t)==="[object Object]"}function XO(t){return new Promise(e=>{setTimeout(e,t)})}function ej(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?J_(t,e):e}function tj(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function nj(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var em=Symbol();function X_(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===em?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var ks,Tr,ji,lw,rj=(lw=class extends yu{constructor(){super();ue(this,ks);ue(this,Tr);ue(this,ji);te(this,ji,e=>{if(!vu&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,Tr)||this.setEventListener(A(this,ji))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,Tr))==null||e.call(this),te(this,Tr,void 0))}setEventListener(e){var n;te(this,ji,e),(n=A(this,Tr))==null||n.call(this),te(this,Tr,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){A(this,ks)!==e&&(te(this,ks,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof A(this,ks)=="boolean"?A(this,ks):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},ks=new WeakMap,Tr=new WeakMap,ji=new WeakMap,lw),e1=new rj,Ni,Cr,Ii,cw,sj=(cw=class extends yu{constructor(){super();ue(this,Ni,!0);ue(this,Cr);ue(this,Ii);te(this,Ii,e=>{if(!vu&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){A(this,Cr)||this.setEventListener(A(this,Ii))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,Cr))==null||e.call(this),te(this,Cr,void 0))}setEventListener(e){var n;te(this,Ii,e),(n=A(this,Cr))==null||n.call(this),te(this,Cr,e(this.setOnline.bind(this)))}setOnline(e){A(this,Ni)!==e&&(te(this,Ni,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return A(this,Ni)}},Ni=new WeakMap,Cr=new WeakMap,Ii=new WeakMap,cw),Tc=new sj;function ij(){let t,e;const n=new Promise((s,i)=>{t=s,e=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}function oj(t){return Math.min(1e3*2**t,3e4)}function t1(t){return(t??"online")==="online"?Tc.isOnline():!0}var n1=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function pd(t){return t instanceof n1}function r1(t){let e=!1,n=0,r=!1,s;const i=ij(),o=p=>{var x;r||(h(new n1(p)),(x=t.abort)==null||x.call(t))},a=()=>{e=!0},l=()=>{e=!1},c=()=>e1.isFocused()&&(t.networkMode==="always"||Tc.isOnline())&&t.canRun(),u=()=>t1(t.networkMode)&&t.canRun(),d=p=>{var x;r||(r=!0,(x=t.onSuccess)==null||x.call(t,p),s==null||s(),i.resolve(p))},h=p=>{var x;r||(r=!0,(x=t.onError)==null||x.call(t,p),s==null||s(),i.reject(p))},f=()=>new Promise(p=>{var x;s=y=>{(r||c())&&p(y)},(x=t.onPause)==null||x.call(t)}).then(()=>{var p;s=void 0,r||(p=t.onContinue)==null||p.call(t)}),w=()=>{if(r)return;let p;const x=n===0?t.initialPromise:void 0;try{p=x??t.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(d).catch(y=>{var k;if(r)return;const m=t.retry??(vu?0:3),v=t.retryDelay??oj,_=typeof v=="function"?v(n,y):v,S=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,y);if(e||!S){h(y);return}n++,(k=t.onFail)==null||k.call(t,n,y),XO(_).then(()=>c()?void 0:f()).then(()=>{e?h(y):w()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?w():f().then(w),i)}}var aj=t=>setTimeout(t,0);function lj(){let t=[],e=0,n=a=>{a()},r=a=>{a()},s=aj;const i=a=>{e?t.push(a):s(()=>{n(a)})},o=()=>{const a=t;t=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;e++;try{l=a()}finally{e--,e||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var pt=lj(),Es,uw,s1=(uw=class{constructor(){ue(this,Es)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),QO(this.gcTime)&&te(this,Es,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(vu?1/0:5*60*1e3))}clearGcTimeout(){A(this,Es)&&(clearTimeout(A(this,Es)),te(this,Es,void 0))}},Es=new WeakMap,uw),Di,Ts,zt,Cs,lt,La,Ps,hn,Fn,dw,cj=(dw=class extends s1{constructor(e){super();ue(this,hn);ue(this,Di);ue(this,Ts);ue(this,zt);ue(this,Cs);ue(this,lt);ue(this,La);ue(this,Ps);te(this,Ps,!1),te(this,La,e.defaultOptions),this.setOptions(e.options),this.observers=[],te(this,Cs,e.client),te(this,zt,A(this,Cs).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,te(this,Di,dj(this.options)),this.state=e.state??A(this,Di),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=A(this,lt))==null?void 0:e.promise}setOptions(e){this.options={...A(this,La),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,zt).remove(this)}setData(e,n){const r=ej(this.state.data,e,this.options);return it(this,hn,Fn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){it(this,hn,Fn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,s;const n=(r=A(this,lt))==null?void 0:r.promise;return(s=A(this,lt))==null||s.cancel(e),n?n.then(un).catch(un):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,Di))}isActive(){return this.observers.some(e=>JO(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===em||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Kh(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:!ZO(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,lt))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,lt))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),A(this,zt).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(A(this,lt)&&(A(this,Ps)?A(this,lt).cancel({revert:!0}):A(this,lt).cancelRetry()),this.scheduleGc()),A(this,zt).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||it(this,hn,Fn).call(this,{type:"invalidate"})}fetch(e,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,lt))return A(this,lt).continueRetry(),A(this,lt).promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(te(this,Ps,!0),r.signal)})},i=()=>{const h=X_(this.options,n),w=(()=>{const p={client:A(this,Cs),queryKey:this.queryKey,meta:this.meta};return s(p),p})();return te(this,Ps,!1),this.options.persister?this.options.persister(h,w,this):h(w)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:A(this,Cs),state:this.state,fetchFn:i};return s(h),h})();(c=this.options.behavior)==null||c.onFetch(a,this),te(this,Ts,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&it(this,hn,Fn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=h=>{var f,w,p,x;pd(h)&&h.silent||it(this,hn,Fn).call(this,{type:"error",error:h}),pd(h)||((w=(f=A(this,zt).config).onError)==null||w.call(f,h,this),(x=(p=A(this,zt).config).onSettled)==null||x.call(p,this.state.data,h,this)),this.scheduleGc()};return te(this,lt,r1({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,w,p,x;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(y){l(y);return}(w=(f=A(this,zt).config).onSuccess)==null||w.call(f,h,this),(x=(p=A(this,zt).config).onSettled)==null||x.call(p,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,f)=>{it(this,hn,Fn).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{it(this,hn,Fn).call(this,{type:"pause"})},onContinue:()=>{it(this,hn,Fn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),A(this,lt).start()}},Di=new WeakMap,Ts=new WeakMap,zt=new WeakMap,Cs=new WeakMap,lt=new WeakMap,La=new WeakMap,Ps=new WeakMap,hn=new WeakSet,Fn=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...uj(r.data,this.options),fetchMeta:e.meta??null};case"success":return te(this,Ts,void 0),{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return pd(s)&&s.revert&&A(this,Ts)?{...A(this,Ts),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),pt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),A(this,zt).notify({query:this,type:"updated",action:e})})},dw);function uj(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:t1(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function dj(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var En,hw,hj=(hw=class extends yu{constructor(e={}){super();ue(this,En);this.config=e,te(this,En,new Map)}build(e,n,r){const s=n.queryKey,i=n.queryHash??Xp(s,n);let o=this.get(i);return o||(o=new cj({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){A(this,En).has(e.queryHash)||(A(this,En).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=A(this,En).get(e.queryHash);n&&(e.destroy(),n===e&&A(this,En).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){pt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return A(this,En).get(e)}getAll(){return[...A(this,En).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Vy(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>Vy(e,r)):n}notify(e){pt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){pt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){pt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},En=new WeakMap,hw),Tn,ht,As,Cn,gr,fw,fj=(fw=class extends s1{constructor(e){super();ue(this,Cn);ue(this,Tn);ue(this,ht);ue(this,As);this.mutationId=e.mutationId,te(this,ht,e.mutationCache),te(this,Tn,[]),this.state=e.state||pj(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){A(this,Tn).includes(e)||(A(this,Tn).push(e),this.clearGcTimeout(),A(this,ht).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){te(this,Tn,A(this,Tn).filter(n=>n!==e)),this.scheduleGc(),A(this,ht).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){A(this,Tn).length||(this.state.status==="pending"?this.scheduleGc():A(this,ht).remove(this))}continue(){var e;return((e=A(this,As))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,o,a,l,c,u,d,h,f,w,p,x,y,m,v,_,S,k,E,T;const n=()=>{it(this,Cn,gr).call(this,{type:"continue"})};te(this,As,r1({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(P,O)=>{it(this,Cn,gr).call(this,{type:"failed",failureCount:P,error:O})},onPause:()=>{it(this,Cn,gr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,ht).canRun(this)}));const r=this.state.status==="pending",s=!A(this,As).canStart();try{if(r)n();else{it(this,Cn,gr).call(this,{type:"pending",variables:e,isPaused:s}),await((o=(i=A(this,ht).config).onMutate)==null?void 0:o.call(i,e,this));const O=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,e));O!==this.state.context&&it(this,Cn,gr).call(this,{type:"pending",context:O,variables:e,isPaused:s})}const P=await A(this,As).start();return await((u=(c=A(this,ht).config).onSuccess)==null?void 0:u.call(c,P,e,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,P,e,this.state.context)),await((w=(f=A(this,ht).config).onSettled)==null?void 0:w.call(f,P,null,this.state.variables,this.state.context,this)),await((x=(p=this.options).onSettled)==null?void 0:x.call(p,P,null,e,this.state.context)),it(this,Cn,gr).call(this,{type:"success",data:P}),P}catch(P){try{throw await((m=(y=A(this,ht).config).onError)==null?void 0:m.call(y,P,e,this.state.context,this)),await((_=(v=this.options).onError)==null?void 0:_.call(v,P,e,this.state.context)),await((k=(S=A(this,ht).config).onSettled)==null?void 0:k.call(S,void 0,P,this.state.variables,this.state.context,this)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,void 0,P,e,this.state.context)),P}finally{it(this,Cn,gr).call(this,{type:"error",error:P})}}finally{A(this,ht).runNext(this)}}},Tn=new WeakMap,ht=new WeakMap,As=new WeakMap,Cn=new WeakSet,gr=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),pt.batch(()=>{A(this,Tn).forEach(r=>{r.onMutationUpdate(e)}),A(this,ht).notify({mutation:this,type:"updated",action:e})})},fw);function pj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Hn,fn,Ma,pw,mj=(pw=class extends yu{constructor(e={}){super();ue(this,Hn);ue(this,fn);ue(this,Ma);this.config=e,te(this,Hn,new Set),te(this,fn,new Map),te(this,Ma,0)}build(e,n,r){const s=new fj({mutationCache:this,mutationId:++el(this,Ma)._,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){A(this,Hn).add(e);const n=_l(e);
192if(typeof n=="string"){const r=A(this,fn).get(n);r?r.push(e):A(this,fn).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(A(this,Hn).delete(e)){const n=_l(e);if(typeof n=="string"){const r=A(this,fn).get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&A(this,fn).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=_l(e);if(typeof n=="string"){const r=A(this,fn).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){var r;const n=_l(e);if(typeof n=="string"){const s=(r=A(this,fn).get(n))==null?void 0:r.find(i=>i!==e&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){pt.batch(()=>{A(this,Hn).forEach(e=>{this.notify({type:"removed",mutation:e})}),A(this,Hn).clear(),A(this,fn).clear()})}getAll(){return Array.from(A(this,Hn))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Uy(n,r))}findAll(e={}){return this.getAll().filter(n=>Uy(e,n))}notify(e){pt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return pt.batch(()=>Promise.all(e.map(n=>n.continue().catch(un))))}},Hn=new WeakMap,fn=new WeakMap,Ma=new WeakMap,pw);function _l(t){var e;return(e=t.options.scope)==null?void 0:e.id}function zy(t){return{onFetch:(e,n)=>{var u,d,h,f,w;const r=e.options,s=(h=(d=(u=e.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((f=e.state.data)==null?void 0:f.pages)||[],o=((w=e.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let p=!1;const x=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(e.signal.aborted?p=!0:e.signal.addEventListener("abort",()=>{p=!0}),e.signal)})},y=X_(e.options,e.fetchOptions),m=async(v,_,S)=>{if(p)return Promise.reject();if(_==null&&v.pages.length)return Promise.resolve(v);const E=(()=>{const B={client:e.client,queryKey:e.queryKey,pageParam:_,direction:S?"backward":"forward",meta:e.options.meta};return x(B),B})(),T=await y(E),{maxPages:P}=e.options,O=S?nj:tj;return{pages:O(v.pages,T,P),pageParams:O(v.pageParams,_,P)}};if(s&&i.length){const v=s==="backward",_=v?gj:Wy,S={pages:i,pageParams:o},k=_(r,S);a=await m(S,k,v)}else{const v=t??i.length;do{const _=l===0?o[0]??r.initialPageParam:Wy(r,a);if(l>0&&_==null)break;a=await m(a,_),l++}while(l<v)}return a};e.options.persister?e.fetchFn=()=>{var p,x;return(x=(p=e.options).persister)==null?void 0:x.call(p,c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=c}}}function Wy(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function gj(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var Ne,Pr,Ar,Li,Mi,Rr,$i,Vi,mw,yj=(mw=class{constructor(t={}){ue(this,Ne);ue(this,Pr);ue(this,Ar);ue(this,Li);ue(this,Mi);ue(this,Rr);ue(this,$i);ue(this,Vi);te(this,Ne,t.queryCache||new hj),te(this,Pr,t.mutationCache||new mj),te(this,Ar,t.defaultOptions||{}),te(this,Li,new Map),te(this,Mi,new Map),te(this,Rr,0)}mount(){el(this,Rr)._++,A(this,Rr)===1&&(te(this,$i,e1.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,Ne).onFocus())})),te(this,Vi,Tc.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,Ne).onOnline())})))}unmount(){var t,e;el(this,Rr)._--,A(this,Rr)===0&&((t=A(this,$i))==null||t.call(this),te(this,$i,void 0),(e=A(this,Vi))==null||e.call(this),te(this,Vi,void 0))}isFetching(t){return A(this,Ne).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return A(this,Pr).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=A(this,Ne).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=A(this,Ne).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Kh(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return A(this,Ne).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=A(this,Ne).get(r.queryHash),i=s==null?void 0:s.state.data,o=YO(e,i);if(o!==void 0)return A(this,Ne).build(this,r).setData(o,{...n,manual:!0})}
192setQueriesData(t,e,n){return pt.batch(()=>A(this,Ne).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=A(this,Ne).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=A(this,Ne);pt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=A(this,Ne);return pt.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=pt.batch(()=>A(this,Ne).findAll(t).map(s=>s.cancel(n)));return Promise.all(r).then(un).catch(un)}invalidateQueries(t,e={}){return pt.batch(()=>(A(this,Ne).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=pt.batch(()=>A(this,Ne).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(un)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(un)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=A(this,Ne).build(this,e);return n.isStaleByTime(Kh(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(un).catch(un)}fetchInfiniteQuery(t){return t.behavior=zy(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(un).catch(un)}ensureInfiniteQueryData(t){return t.behavior=zy(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Tc.isOnline()?A(this,Pr).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,Ne)}getMutationCache(){return A(this,Pr)}getDefaultOptions(){return A(this,Ar)}setDefaultOptions(t){te(this,Ar,t)}setQueryDefaults(t,e){A(this,Li).set(va(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...A(this,Li).values()],n={};return e.forEach(r=>{wa(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){A(this,Mi).set(va(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...A(this,Mi).values()],n={};return e.forEach(r=>{wa(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...A(this,Ar).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Xp(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===em&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...A(this,Ar).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){A(this,Ne).clear(),A(this,Pr).clear()}},Ne=new WeakMap,Pr=new WeakMap,Ar=new WeakMap,Li=new WeakMap,Mi=new WeakMap,Rr=new WeakMap,$i=new WeakMap,Vi=new WeakMap,mw),vj=b.createContext(void 0),wj=({client:t,children:e})=>(b.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),g.jsx(vj.Provider,{value:t,children:e}));/** 193 * @remix-run/router v1.23.0 194 * 195 * Copyright (c) Remix Software Inc. 196 * 197 * This source code is licensed under the MIT license found in the 198 * LICENSE.md file in the root directory of this source tree. 199 * 200 * @license MIT 201 */function xa(){return xa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xa.apply(this,arguments)}var Nr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Nr||(Nr={}));const Hy="popstate";function xj(t){t===void 0&&(t={});function e(r,s){let{pathname:i,search:o,hash:a}=r.location;return Gh("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Cc(s)}return _j(e,n,null,t)}function Ve(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function i1(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function bj(){return Math.random().toString(36).substr(2,8)}function Ky(t,e){return{usr:t.state,key:t.key,idx:e}}function Gh(t,e,n,r){return n===void 0&&(n=null),xa({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?co(e):e,{state:n,key:e&&e.key||r||bj()})}function Cc(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function co(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function _j(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=Nr.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(xa({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){a=Nr.Pop;let x=u(),y=x==null?null:x-c;c=x,l&&l({action:a,location:p.location,delta:y})}function h(x,y){a=Nr.Push;let m=Gh(p.location,x,y);c=u()+1;let v=Ky(m,c),_=p.createHref(m);try{o.pushState(v,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(_)}i&&l&&l({action:a,location:p.location,delta:1})}function f(x,y){a=Nr.Replace;let m=Gh(p.location,x,y);c=u();let v=Ky(m,c),_=p.createHref(m);o.replaceState(v,"",_),i&&l&&l({action:a,location:p.location,delta:0})}function w(x){let y=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof x=="str
201ing"?x:Cc(x);return m=m.replace(/ $/,"%20"),Ve(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let p={get action(){return a},get location(){return t(s,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Hy,d),l=x,()=>{s.removeEventListener(Hy,d),l=null}},createHref(x){return e(s,x)},createURL:w,encodeLocation(x){let y=w(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:f,go(x){return o.go(x)}};return p}var qy;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(qy||(qy={}));function Sj(t,e,n){return n===void 0&&(n="/"),kj(t,e,n,!1)}function kj(t,e,n,r){let s=typeof e=="string"?co(e):e,i=tm(s.pathname||"/",n);if(i==null)return null;let o=o1(t);Ej(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=Lj(i);a=Ij(o[l],c,r)}return a}function o1(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(Ve(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Wr([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Ve(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),o1(i.children,e,u,c)),!(i.path==null&&!i.index)&&e.push({path:c,score:jj(c,i.index),routesMeta:u})};return t.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of a1(i.path))s(i,o,l)}),e}function a1(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=a1(r.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function Ej(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Nj(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Tj=/^:[\w-]+$/,Cj=3,Pj=2,Aj=1,Rj=10,Oj=-2,Gy=t=>t==="*";function jj(t,e){let n=t.split("/"),r=n.length;return n.some(Gy)&&(r+=Oj),e&&(r+=Pj),n.filter(s=>!Gy(s)).reduce((s,i)=>s+(Tj.test(i)?Cj:i===""?Aj:Rj),r)}function Nj(t,e){return t.length===e.length&&t.slice(0,-1).every((r,s)=>r===e[s])?t[t.length-1]-e[e.length-1]:0}function Ij(t,e,n){let{routesMeta:r}=t,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=i==="/"?e:e.slice(i.length)||"/",d=Yy({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Yy({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;
vendor: 6,917 bytes, lines 201-210
201Object.assign(s,d.params),o.push({params:s,pathname:Wr([i,d.pathname]),pathnameBase:Uj(Wr([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=Wr([i,d.pathnameBase]))}return o}function Yy(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Dj(t.path,t.caseSensitive,t.end),s=e.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:h,isOptional:f}=u;if(h==="*"){let p=a[d]||"";o=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const w=a[d];return f&&!w?c[h]=void 0:c[h]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:t}}function Dj(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),i1(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function Lj(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return i1(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function tm(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function Mj(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?co(t):t;return{pathname:n?n.startsWith("/")?n:$j(n,e):e,search:Fj(r),hash:Bj(s)}}function $j(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function md(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Vj(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function nm(t,e){let n=Vj(t);return e?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function rm(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=co(t):(s=xa({},t),Ve(!s.pathname||!s.pathname.includes("?"),md("?","pathname","search",s)),Ve(!s.pathname||!s.pathname.includes("#"),md("#","pathname","hash",s)),Ve(!s.search||!s.search.includes("#"),md("#","search","hash",s)));let i=t===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let d=e.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;s.pathname=h.join("/")}a=d>=0?e[d]:"/"}let l=Mj(s,a),c=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Wr=t=>t.join("/").replace(/\/\/+/g,"/"),Uj=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Fj=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Bj=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function zj(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const l1=["post","put","patch","delete"];new Set(l1);const Wj=["get",...l1];new Set(Wj);/** 202 * React Router v6.30.1 203 * 204 * Copyright (c) Remix Software Inc. 205 * 206 * This source code is licensed under the MIT license found in the 207 * LICENSE.md file in the root directory of this source tree. 208 * 209 * @license MIT 210 */function ba(){return ba=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ba.apply(this,arguments)}const sm=b.createContext(null),Hj=b.createContext(null),ss=b.createContext(null),wu=b.createContext(null),sr=b.createContext({outlet:null,matches:[],isDataRoute:!1}),c1=b.createContext(null);function Kj(t,e){let{relative:n}=e===void 0?{}:e;uo()||Ve(!1);let{basename:r,navigator:s}=b.useContext(ss),{hash:i,pathname:o,search:a}=d1(t,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:Wr([r,o])),s.createHref({pathname:l,search:a,hash:i})}function uo(){return b.useContext(wu)!=null}function ir(){return uo()||Ve(!1),b.useContext(wu).location}function u1(t){b.useContext(ss).static||b.useLayoutEffect(t)}function im(){let{isDataRoute:t}=b.useContext(sr);return t?iN():qj()}function qj(){uo()||Ve(!1);let t=b.useContext(sm),{basename:e,future:n,navigator:r}=b.useContext(ss),{matches:s}=b.useContext(sr),{pathname:i}=ir(),o=JSON.stringify(nm(s,n.v7_relativeSplatPath)),a=b.useRef(!1);return u1(()=>{a.current=!0}),b.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=rm(c,JSON.parse(o),i,u.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:Wr([e,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[e,r,o,i,t])}function sF(){let{matches:t}=b.useContext(sr),e=t[t.length-1];return e?e.params:{}}function d1(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=b.useContext(ss),{matches:s}=b.useContext(sr),{pathname:i}=ir(),o=JSON.stringify(nm(s,r.v7_relativeSplatPath));return b.useMemo(()=>rm(t,JSON.parse(o),i,n==="path"),[t,o,i,n])}function Gj(t,e){return Yj(t,e)}function Yj(t,e,n,r){uo()||Ve(!1);let{navigator:s}=b.useContext(ss),{matches:i}=b.useContext(sr),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=ir(),u;if(e){var d;let x=typeof e=="string"?co(e):e;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||Ve(!1),u=x}else u=c;let h=u.pathname||"/",f=h;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=Sj(t,{pathname:f}),p=eN(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Wr([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Wr([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return e&&p?b.createElement(wu.Provider,{value:{location:ba({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Nr.Pop}},p):p}function Qj(){let t=sN(),e=zj(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application
210Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},e),n?b.createElement("pre",{style:s},n):null,null)}const Zj=b.createElement(Qj,null);class Jj extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?b.createElement(sr.Provider,{value:this.props.routeContext},b.createElement(c1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Xj(t){let{routeContext:e,match:n,children:r}=t,s=b.useContext(sm);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(sr.Provider,{value:e},r)}function eN(t,e,n,r){var s;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var i;if(!n)return null;if(n.errors)t=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let o=t,a=(s=n)==null?void 0:s.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||Ve(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:h,errors:f}=n,w=d.route.loader&&h[d.route.id]===void 0&&(!f||f[d.route.id]===void 0);if(d.route.lazy||w){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,h)=>{let f,w=!1,p=null,x=null;n&&(f=a&&d.route.id?a[d.route.id]:void 0,p=d.route.errorElement||Zj,l&&(c<0&&h===0?(w=!0,x=null):c===h&&(w=!0,x=d.route.hydrateFallbackElement||null)));let y=e.concat(o.slice(0,h+1)),m=()=>{let v;return f?v=p:w?v=x:d.route.Component?v=b.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=u,b.createElement(Xj,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?b.createElement(Jj,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var h1=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(h1||{}),Pc=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Pc||{});function tN(t){let e=b.useContext(sm);return e||Ve(!1),e}function nN(t){let e=b.useContext(Hj);return e||Ve(!1),e}function rN(t){let e=b.useContext(sr);return e||Ve(!1),e}function f1(t){let e=rN(),n=e.matches[e.matches.length-1];return n.route.id||Ve(!1),n.route.id}function sN(){var t;let e=b.useContext(c1),n=nN(Pc.UseRouteError),r=f1(Pc.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function iN(){let{router:t}=tN(h1.UseNavigateStable),e=f1(Pc.UseNavigateStable),n=b.useRef(!1);return u1(()=>{n.current=!0}),b.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,ba({fromRouteId:e},i)))},[t,e])}function oN(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function iF(t){let{to:e,replace:n,state:r,relative:s}=t;uo()||Ve(!1);let{future:i,static:o}=b.useContext(ss),{matches:a}=b.useContext(sr),{pathname:l}=ir(),c=im(),u=rm(e,nm(a,i.v7_relativeSplatPath),l,s==="path"),d=JSON.stringify(u);return b.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:s}),[c,d,s,n,r]),null}function me(t){Ve(!1)}function aN(t){let{basename:e="/",children:n=null,location:r,navigationType:s=Nr.Pop,navigator:i,static:o=!1,future:a}=t;uo()&&Ve(!1);let l=e.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:i,static:o,future:ba({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=co(r));
210let{pathname:u="/",search:d="",hash:h="",state:f=null,key:w="default"}=r,p=b.useMemo(()=>{let x=tm(u,l);return x==null?null:{location:{pathname:x,search:d,hash:h,state:f,key:w},navigationType:s}},[l,u,d,h,f,w,s]);return p==null?null:b.createElement(ss.Provider,{value:c},b.createElement(wu.Provider,{children:n,value:p}))}function lN(t){let{children:e,location:n}=t;return Gj(Yh(e),n)}new Promise(()=>{});function Yh(t,e){e===void 0&&(e=[]);let n=[];return b.Children.forEach(t,(r,s)=>{if(!b.isValidElement(r))return;let i=[...e,s];if(r.type===b.Fragment){n.push.apply(n,Yh(r.props.children,i));return}r.type!==me&&Ve(!1),!r.props.index||!r.props.children||Ve(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Yh(r.props.children,i)),n.push(o)}),n}/** 211 * React Router DOM v6.30.1 212 * 213 * Copyright (c) Remix Software Inc. 214 * 215 * This source code is licensed under the MIT license found in the 216 * LICENSE.md file in the root directory of this source tree. 217 * 218 * @license MIT 219 */function Qh(){return Qh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qh.apply(this,arguments)}function cN(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function uN(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function dN(t,e){return t.button===0&&(!e||e==="_self")&&!uN(t)}function Zh(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function hN(t,e){let n=Zh(t);return e&&e.forEach((r,s)=>{n.has(s)||e.getAll(s).forEach(i=>{n.append(s,i)})}),n}const fN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],pN="6";try{window.__reactRouterVersion=pN}catch{}const mN="startTransition",Qy=Wf[mN];function gN(t){let{basename:e,children:n,future:r,window:s}=t,i=b.useRef();i.current==null&&(i.current=xj({window:s,v5Compat:!0}));let o=i.current,[a,l]=b.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=b.useCallback(d=>{c&&Qy?Qy(()=>l(d)):l(d)},[l,c]);return b.useLayoutEffect(()=>o.listen(u),[o,u]),b.useEffect(()=>oN(r),[r]),b.createElement(aN,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const yN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ge=b.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=e,h=cN(e,fN),{basename:f}=b.useContext(ss),w,p=!1;if(typeof c=="string"&&vN.test(c)&&(w=c,yN))try{let v=new URL(window.location.href),_=c.startsWith("//")?new URL(v.protocol+c):new URL(c),S=tm(_.pathname,f);_.origin===v.origin&&S!=null?c=S+_.search+_.hash:p=!0}catch{}let x=Kj(c,{relative:s}),y=wN(c,{replace:o,state:a,target:l,preventScrollReset:u,relative:s,viewTransition:d});function m(v){r&&r(v),v.defaultPrevented||y(v)}return b.createElement("a",Qh({},h,{href:w||x,onClick:p||i?r:m,ref:n,target:l}))});var Zy;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Zy||(Zy={}));var Jy;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Jy||(Jy={}));function wN(t,e){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=e===void 0?{}:e,l=im(),c=ir(),u=d1(t,{relative:o});return b.useCallback(d=>
219{if(dN(d,n)){d.preventDefault();let h=r!==void 0?r:Cc(c)===Cc(u);l(t,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,l,u,r,s,n,t,i,o,a])}function oF(t){let e=b.useRef(Zh(t)),n=b.useRef(!1),r=ir(),s=b.useMemo(()=>hN(r.search,n.current?null:e.current),[r.search]),i=im(),o=b.useCallback((a,l)=>{const c=Zh(typeof a=="function"?a(s):a);n.current=!0,i("?"+c,l)},[i,s]);return[s,o]}var Xy=function(){return Xy=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Xy.apply(this,arguments)};function xu(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function xN(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((r=r.apply(t,e||[])).next())})}function aF(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,i;r<s;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}const bN=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class om extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}}class _N extends om{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class ev extends om{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class tv extends om{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Jh;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Jh||(Jh={}));class SN{constructor(e,{headers:n={},customFetch:r,region:s=Jh.Any}={}){this.url=e,this.headers=n,this.region=s,this.fetch=bN(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return xN(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:a,method:l,body:c,signal:u,timeout:d}=r;let h={},{region:f}=r;f||(f=this.region);const w=new URL(`${this.url}/${n}`);f&&f!=="any"&&(h["x-region"]=f,w.searchParams.set("forceFunctionRegion",f));let p;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",p=c):typeof c=="string"?(h["Content-Type"]="text/plain",p=c):typeof FormData<"u"&&c instanceof FormData?p=c:(h["Content-Type"]="application/json",p=JSON.stringify(c)):p=c;let x=u;d&&(o=new AbortController,i=setTimeout(()=>o.abort(),d),u?(x=o.signal,u.addEventListener("abort",()=>o.abort())):x=o.signal);const y=yield this.fetch(w.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),a),body:p,signal:x}).catch(S=>{throw new _N(S)}),m=y.headers.get("x-relay-error");if(m&&m==="true")throw new ev(y);if(!y.ok)throw new tv(y);let v=((s=y.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),_;return v==="application/json"?_=yield y.json():v==="application/octet-stream"||v==="application/pdf"?_=yield y.blob():v==="text/event-stream"?_=y:v==="multipart/form-data"?_=yield y.formData():_=yield y.text(),{data:_,error:null,response:y}}catch(a){return{data:null,error:a,response:a instanceof tv||a instanceof ev?a.context:void 0}}finally{i&&clearTimeout(i)}})}}var kN=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
219de=t.code}},EN=class{constructor(t){var e,n;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}then(t,e){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let o=null,a=null,l=null,c=i.status,u=i.statusText;if(i.ok){var d,h;if(n.method!=="HEAD"){var f;const y=await i.text();y===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((f=n.headers.get("Accept"))===null||f===void 0)&&f.includes("application/vnd.pgrst.plan+text"))?a=y:a=JSON.parse(y))}const p=(d=n.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),x=(h=i.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");p&&x&&x.length>1&&(l=parseInt(x[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(a)&&(a.length>1?(o={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,c=406,u="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var w;const p=await i.text();try{o=JSON.parse(p),Array.isArray(o)&&i.status===404&&(a=[],o=null,c=200,u="OK")}catch{i.status===404&&p===""?(c=204,u="No Content"):o={message:p}}if(o&&n.isMaybeSingle&&(!(o==null||(w=o.details)===null||w===void 0)&&w.includes("0 rows"))&&(o=null,c=200,u="OK"),o&&n.shouldThrowOnError)throw new kN(o)}return{error:o,data:a,count:l,status:c,statusText:u}});return this.shouldThrowOnError||(s=s.catch(i=>{var o;let a="";const l=i==null?void 0:i.cause;if(l){var c,u,d,h;const w=(c=l==null?void 0:l.message)!==null&&c!==void 0?c:"",p=(u=l==null?void 0:l.code)!==null&&u!==void 0?u:"";a=`${(d=i==null?void 0:i.name)!==null&&d!==void 0?d:"FetchError"}: ${i==null?void 0:i.message}`,a+=` 220 221Caused by: ${(h=l==null?void 0:l.name)!==null&&h!==void 0?h:"Error"}: ${w}`,p&&(a+=` (${p})`),l!=null&&l.stack&&(a+=` 222${l.stack}`)}else{var f;a=(f=i==null?void 0:i.stack)!==null&&f!==void 0?f:""}return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:a,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),s.then(t,e)}returns(){return this}overrideTypes(){return this}},TN=class extends EN{select(t){let e=!1;const n=(t??"*").split("").map(r=>/\s/.test(r)&&!e?"":(r==='"'&&(e=!e),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${t}.${e?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:n=e}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${t}`),this}range(t,e,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(i,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
222explain({analyze:t=!1,verbose:e=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const a=[t?"analyze":null,e?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${l}"; options=${a};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const nv=new RegExp("[,()]");var ti=class extends TN{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const n=Array.from(new Set(e)).map(r=>typeof r=="string"&&nv.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}notIn(t,e){const n=Array.from(new Set(e)).map(r=>typeof r=="string"&&nv.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(t,`not.in.(${n})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${s}fts${i}.${e}`),this}match(t){return Object.entries(t).forEach(([e,n])=>{this.url.searchParams.append(e,`eq.${n}`)}),this}not(t,e,n){return this.url.searchParams.append(t,`not.${e}.${n}`),this}or(t,{foreignTable:e,referencedTable:n=e}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${t})`),this}filter(t,e,n){return this.url.searchParams.append(t,`${e}.${n}`),this}},CN=class{constructor(t,{headers:e={},schema:n,fetch:r}){this.url=t,this.headers=new Headers(e),this.schema=n,this.fetch=r}select(t,e){const{head:n=!1,count:r}=e??{},s=n?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),r&&this.headers.append("Prefer",`count=${r}`),new ti({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:e,defaultToNull:n=!0}={}){var r;const s="POST";if(e&&this.headers.append("Prefer",`count=${e}`),n||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const i=t.reduce((o,a)=>o.concat(Object.keys(a)),[]);if(i.length>0){const o=[...new Set(i)].map(a=>`"${a}"`);this.url.searchParams.set("columns",o.join(","))}}return new ti({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}upsert(t,{onConflict:e,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const o="POST";if(this.headers.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),e!==void 0&&this.url.searchParams.set("on_conflict",e),r&&this.headers.append("Prefer",`count=${r}`),s||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const a=t.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(a.length>
2220){const l=[...new Set(a)].map(c=>`"${c}"`);this.url.searchParams.set("columns",l.join(","))}}return new ti({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(t,{count:e}={}){var n;const r="PATCH";return e&&this.headers.append("Prefer",`count=${e}`),new ti({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:t}={}){var e;const n="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new ti({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch})}},PN=class p1{constructor(e,{headers:n={},schema:r,fetch:s}={}){this.url=e,this.headers=new Headers(n),this.schemaName=r,this.fetch=s}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new CN(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new p1(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${e}`);let c;r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([d,h])=>h!==void 0).map(([d,h])=>[d,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([d,h])=>{l.searchParams.append(d,h)})):(a="POST",c=n);const u=new Headers(this.headers);return i&&u.set("Prefer",`count=${i}`),new ti({method:a,url:l,headers:u,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};class AN{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const r=n.node,s=parseInt(r.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 223import ws from "ws" 224new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=` 225 226Suggested solution: ${e.workaround}`),new Error(n)}static createWebSocket(e,n){const r=this.getWebSocketConstructor();return new r(e,n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const RN="2.89.0",ON=`realtime-js/${RN}`,m1="1.0.0",jN="2.0.0",rv=m1,Xh=1e4,NN=1e3,IN=100;var xr;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(xr||(xr={}));var He;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(He||(He={}));var mn;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(mn||(mn={}));var ef;(function(t){t.websocket="websocket"})(ef||(ef={}));var gs;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(gs||(gs={}));class DN{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,n){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(e));let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(e){var n;return this._isArrayBuffer((n=e.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var n,r;const s=(r=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(e){var n,r;const s=(r=(n=e.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(e,n,r){var s,i;const o=e.topic,a=(s=e.ref)!==null&&s!==void 0?s:"",l=(i=e.join_ref)!==null&&i!==void 0?i:"",c=e.payload.event,u=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},d=Object.keys(u).length===0?"":JSON.stringify(u);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const h=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+c.length+d.length,f=new ArrayBuffer(this.HEADER_LENGTH+h);let w=new DataView(f),p=0;w.setUint8(p++,this.KINDS.userBroadcastPush),w.setUint8(p++,l.length),w.setUint8(p++,a.length),w.setUint8(p++,o.length),w.setUint8(p++,c.length),w.setUint8(p++,d.length),w.setUint8(p++,n),Array.from(l,y=>
226w.setUint8(p++,y.charCodeAt(0))),Array.from(a,y=>w.setUint8(p++,y.charCodeAt(0))),Array.from(o,y=>w.setUint8(p++,y.charCodeAt(0))),Array.from(c,y=>w.setUint8(p++,y.charCodeAt(0))),Array.from(d,y=>w.setUint8(p++,y.charCodeAt(0)));var x=new Uint8Array(f.byteLength+r.byteLength);return x.set(new Uint8Array(f),0),x.set(new Uint8Array(r),f.byteLength),x.buffer}decode(e,n){if(this._isArrayBuffer(e)){let r=this._binaryDecode(e);return n(r)}if(typeof e=="string"){const r=JSON.parse(e),[s,i,o,a,l]=r;return n({join_ref:s,ref:i,topic:o,event:a,payload:l})}return n({})}_binaryDecode(e){const n=new DataView(e),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,n,s)}}_decodeUserBroadcast(e,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const c=r.decode(e.slice(l,l+s));l=l+s;const u=r.decode(e.slice(l,l+i));l=l+i;const d=r.decode(e.slice(l,l+o));l=l+o;const h=e.slice(l,e.byteLength),f=a===this.JSON_ENCODING?JSON.parse(r.decode(h)):h,w={type:this.BROADCAST_EVENT,event:u,payload:f};return o>0&&(w.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(e){var n;return e instanceof ArrayBuffer||((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(e,n){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([r])=>n.includes(r)))}}class g1{constructor(e,n){this.callback=e,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var ge;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(ge||(ge={}));const sv=(t,e,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return e?Object.keys(e).reduce((i,o)=>(i[o]=LN(o,t,e,s),i),{}):{}},LN=(t,e,n,r)=>{const s=e.find(a=>a.name===t),i=s==null?void 0:s.type,o=n[t];return i&&!r.includes(i)?y1(i,o):tf(o)},y1=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return UN(e,n)}switch(t){case ge.bool:return MN(e);case ge.float4:case ge.float8:case ge.int2:case ge.int4:case ge.int8:case ge.numeric:case ge.oid:return $N(e);case ge.json:case ge.jsonb:return VN(e);case ge.timestamp:return FN(e);case ge.abstime:case ge.date:case ge.daterange:case ge.int4range:case ge.int8range:case ge.money:case ge.reltime:case ge.text:case ge.time:case ge.timestamptz:case ge.timetz:case ge.tsrange:case ge.tstzrange:return tf(e);default:return tf(e)}},tf=t=>t,MN=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},$N=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},VN=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},UN=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let i;const o=t.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>y1(e,a))}return t},FN=t=>typeof t=="string"?t.replace(" ","T"):t,v1=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};class gd{constructor(e,n,r={},s=Xh){this.channel=e,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,j
226oin_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,n){var r;return this._hasReceived(e)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:e,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(n))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var iv;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(iv||(iv={}));class qo{constructor(e,n){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=qo.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=qo.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=qo.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,n,r,s){const i=this.cloneDeep(e),o=this.transformState(n),a={},l={};return this.map(i,(c,u)=>{o[c]||(l[c]=u)}),this.map(o,(c,u)=>{const d=i[c];if(d){const h=u.map(x=>x.presence_ref),f=d.map(x=>x.presence_ref),w=u.filter(x=>f.indexOf(x.presence_ref)<0),p=d.filter(x=>h.indexOf(x.presence_ref)<0);w.length>0&&(a[c]=w),p.length>0&&(l[c]=p)}else a[c]=u}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(e,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var c;const u=(c=e[a])!==null&&c!==void 0?c:[];if(e[a]=this.cloneDeep(l),u.length>0){const d=e[a].map(f=>f.presence_ref),h=u.filter(f=>d.indexOf(f.presence_ref)<0);e[a].unshift(...h)}r(a,u,l)}),this.map(o,(a,l)=>{let c=e[a];if(!c)return;const u=l.map(d=>d.presence_ref);c=c.filter(d=>u.indexOf(d.presence_ref)<0),e[a]=c,s(a,c,l),c.length===0&&delete e[a]}),e}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const s=e[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var ov;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(ov||(ov={}));var Go;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Go||(Go={}));var zn;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(zn||(zn={}));class yi{constructor(e,n={config:{}},r){var s,i;if(this.topic=e,this.params=n,this.socket=r,this.bindings={},this.state=He.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new gd(this,mn.join,this.params,this.timeout),this.rejoinTimer=new g1(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=He.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=He.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=He.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=He.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=He.errored,this.rejoinTimer.scheduleTimeout())}),this._on(mn.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new qo(this),this.broadcastEndpointURL=v1(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==He.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[Go.PRESENCE]&&this.bindings[Go.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,d={},h={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:u}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(f=>e==null?void 0:e(zn.CHANNEL_ERROR,f)),this._onClose(()=>e==null?void 0:e(zn.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:f})=>{var w;if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){e==null||e(zn.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,x=(w=p==null?void 0:p.length)!==null&&w!==void 0?w:0,y=[];for(let m=0;m<x;m++){const v=p[m],{filter:{event:_,schema:S,table:k,filter:E}}=v,T=f&&f[m];if(T&&T.event===_&&yi.isFilterValueEqual(T.schema,S)&&yi.isFilterValueEqual(T.table,k)&&yi.isFilterValueEqual(T.filter,E))y.push(Object.assign(Object.assign({},v),{id:T.id}));else{this.unsubscribe(),this.state=He.errored,e==null||e(zn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=y,e&&e(zn.SUBSCRIBED);return}}).receive("error",f=>{this.state=He.errored,e==null||e(zn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(zn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,r){return this.state===He.joined&&e===Go.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(e,n,r)}async httpSend(e,n,r={}){var s;if(n==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
226try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(e,n={}){var r,s;if(!this._canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=e,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const c=this._push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),c.receive("ok",()=>i("ok")),c.receive("error",()=>i("error")),c.receive("timeout",()=>i("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=He.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(mn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new gd(this,mn.leave,{},e),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=He.closed,this.bindings={}}async _fetchWithTimeout(e,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_push(e,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new gd(this,e,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>IN){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(e,n,r){return n}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,n,r){var s,i;const o=e.toLocaleLowerCase(),{close:a,error:l,leave:c,join:u}=mn;if(r&&[a,l,c,u].indexOf(o)>=0&&r!==this._joinRef())return;let h=this._onMessage(o,n,r);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(f=>{var w,p,x;return((w=f.filter)===null||w===void 0?void 0:w.event)==="*"||((x=(p=f.filter)===null||p===void 0?void 0:p.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===o}).map(f=>f.callback(h,r)):(i=this.bindings[o])===null||i===void 0||i.filter(f=>{var w,p,x,y,m,v;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in f){const _=f.id,S=(w=f.filter)===null||w===void 0?void 0:w.event;return _&&((p=n.ids)===null||p===void 0?void 0:p.includes(_))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((x=n.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))}else{const _=(m=(y=f==null?void 0:f.filter)===null||y===void 0?void 0:y.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return _==="*"||_===((v=n==null?void 0:n.event)===null||v===void 0?void 0:v.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===o}).map(f=>{if(typeof h=="object"&&"ids"in h){const w=h.data,{schema:p,table:
226x,commit_timestamp:y,type:m,errors:v}=w;h=Object.assign(Object.assign({},{schema:p,table:x,commit_timestamp:y,eventType:m,new:{},old:{},errors:v}),this._getPayloadRecords(w))}f.callback(h,r)})}_isClosed(){return this.state===He.closed}_isJoined(){return this.state===He.joined}_isJoining(){return this.state===He.joining}_isLeaving(){return this.state===He.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,n,r){const s=e.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(e,n){const r=e.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&yi.isEqual(s.filter,n))})),this}static isEqual(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}static isFilterValueEqual(e,n){return(e??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(mn.close,{},e)}_onError(e){this._on(mn.error,{},n=>e(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=He.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=sv(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=sv(e.columns,e.old_record)),n}}const yd=()=>{},Sl={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},BN=[1e3,2e3,5e3,1e4],zN=1e4,WN=` 227 addEventListener("message", (e) => { 228 if (e.data.event === "start") { 229 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 230 } 231 });`;class HN{constructor(e,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Xh,this.transport=null,this.heartbeatIntervalMs=Sl.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=yd,this.ref=0,this.reconnectTimer=null,this.vsn=rv,this.logger=yd,this.conn=null,this.sendBuffer=[],this.serializer=new DN,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${e}/${ef.websocket}`,this.httpEndpoint=v1(e),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=AN.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const n=e.message;throw n.includes("Node.js")?new Error(`${n} 232 233To use Realtime in Node.js, you need to provide a WebSocket implementation: 234 235Option 1: Use Node.js 22+ which has native WebSocket support 236Option 2: Install and provide the "ws" package: 237 238 npm install ws 239 240 import ws from "ws" 241 const client = new RealtimeClient(url, { 242 ...options, 243 transport: ws 244 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(e,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")}
244,typeof this.conn.close=="function"&&(e?this.conn.close(e,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const e=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,n,r){this.logger(e,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case xr.connecting:return gs.Connecting;case xr.open:return gs.Open;case xr.closing:return gs.Closing;default:return gs.Closed}}isConnected(){return this.connectionState()===gs.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,n={config:{}}){const r=`realtime:${e}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new yi(`realtime:${e}`,n,this);return this.channels.push(i),i}}push(e){const{topic:n,event:r,payload:s,ref:i}=e,o=()=>{this.encode(e,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(NN,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Sl.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let n=this.channels.find(r=>r.topic===e&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${e}"`),n.unsubscribe())}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(c){this.log("error","error in heartbeat callback",c)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:i,ref:o}=n,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),i),this.channels.filter(c=>c._isMember(r)).forEach(c=>c._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(e){var n;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e),this.conn.readyState===xr.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===xr.open||this.conn.readyState===xr.connecting)try{this.conn.close()}catch(e){this.log("error","Error closing connection",e)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose
244=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(e){var n;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(mn.error))}_appendParams(e,n){if(Object.keys(n).length===0)return e;const r=e.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${e}${r}${s}`}_workerObjectUrl(e){let n;if(e)n=e;
244else{const r=new Blob([WN],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(e,n=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(e=null){let n,r=!1;if(e)n=e,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const i={access_token:n,version:ON};n&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(mn.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${e}`,n)})}_triggerStateCallbacks(e,n){try{this.stateChangeCallbacks[e].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new g1(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Sl.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var n,r,s,i,o,a,l,c,u,d,h,f;switch(this.transport=(n=e==null?void 0:e.transport)!==null&&n!==void 0?n:null,this.timeout=(r=e==null?void 0:e.timeout)!==null&&r!==void 0?r:Xh,this.heartbeatIntervalMs=(s=e==null?void 0:e.heartbeatIntervalMs)!==null&&s!==void 0?s:Sl.HEARTBEAT_INTERVAL,this.worker=(i=e==null?void 0:e.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=e==null?void 0:e.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=e==null?void 0:e.heartbeatCallback)!==null&&a!==void 0?a:yd,this.vsn=(l=e==null?void 0:e.vsn)!==null&&l!==void 0?l:rv,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=e==null?void 0:e.reconnectAfterMs)!==null&&c!==void 0?c:w=>BN[w-1]||zN,this.vsn){case m1:this.encode=(u=e==null?void 0:e.encode)!==null&&u!==void 0?u:(w,p)=>p(JSON.stringify(w)),this.decode=(d=e==null?void 0:e.decode)!==null&&d!==void 0?d:(w,p)=>p(JSON.parse(w));break;case jN:this.encode=(h=e==null?void 0:e.encode)!==null&&h!==void 0?h:this.serializer.encode.bind(this.serializer),this.decode=(f=e==null?void 0:e.decode)!==null&&f!==void 0?f:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}var _a=class extends Error{constructor(t,e){var n;super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&((n=e.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function KN(t,e,n){const r=new URL(e,t);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function qN(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function GN(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=KN(t.baseUrl,r,s),l=await qN(t.auth),c=await e(a,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),u=await c.text(),d=(c.headers.get("content-type")||"").includes("application/json"),h=d&&u?JSON.parse(u):u;if(!c.ok){const f=d?h:void 0,w=f==null?void 0:f.error;throw new _a((w==null?void 0:w.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:w==null?void 0:w.type,icebergCode:w==null?void 0:w.code,details:f})}return{status:c.status,headers:c.headers,data:h}}}}function kl(t){return t.join("�")}var YN=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:kl(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(t,e){const n={namespace:t.namespace,properties:e==null?void 0:e.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${kl(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${kl(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${kl(t.namespace)}`}),!0}catch(e){if(e instanceof _a&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(n){if(n instanceof _a&&n.status===409)return;throw n}}};function Ys(t){return t.join("�")}var QN=class{constructor(t,e="",n){this.client=t,this.prefix=e,this.accessDelegation=n}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ys(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ys(t.namespace)}/tables`,body:e,headers:n})).data.metadata}async updateTable(t,e){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ys(t.namespace)}
244/tables/${t.name}`,body:e});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ys(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String((e==null?void 0:e.purge)??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ys(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ys(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(n){if(n instanceof _a&&n.status===404)return!1;throw n}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(n){if(n instanceof _a&&n.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw n}}},ZN=class{constructor(t){var r;let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const n=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=GN({baseUrl:n,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=(r=t.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new YN(this.client,e),this.tableOps=new QN(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}},bu=class extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}};function Ce(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var JN=class extends bu{constructor(t,e,n){super(t),this.name="StorageApiError",this.status=e,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},nf=class extends bu{constructor(t,e){super(t),this.name="StorageUnknownError",this.originalError=e}};const am=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),XN=()=>Response,rf=t=>{if(Array.isArray(t))return t.map(n=>rf(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));e[s]=rf(r)}),e},eI=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},tI=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t);function Sa(t){"@babel/helpers - typeof";return Sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sa(t)}function nI(t,e){if(Sa(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Sa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rI(t){var e=nI(t,"string");return Sa(e)=="symbol"?e:e+""}function sI(t,e,n){return(e=rI(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function av(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
244e%2?av(Object(n),!0).forEach(function(r){sI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):av(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const vd=t=>{var e;return t.msg||t.message||t.error_description||(typeof t.error=="string"?t.error:(e=t.error)===null||e===void 0?void 0:e.message)||JSON.stringify(t)},iI=async(t,e,n)=>{t instanceof await XN()&&!(n!=null&&n.noResolveJson)?t.json().then(r=>{const s=t.status||500,i=(r==null?void 0:r.statusCode)||s+"";e(new JN(vd(r),s,i))}).catch(r=>{e(new nf(vd(r),r))}):e(new nf(vd(t),t))},oI=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!r?s:(eI(r)?(s.headers=G({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(r)):s.body=r,e!=null&&e.duplex&&(s.duplex=e.duplex),G(G({},s),n))};async function Ka(t,e,n,r,s,i){return new Promise((o,a)=>{t(n,oI(e,r,s,i)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>iI(l,a,r))})}async function ka(t,e,n,r){return Ka(t,"GET",e,n,r)}async function dn(t,e,n,r,s){return Ka(t,"POST",e,r,s,n)}async function sf(t,e,n,r,s){return Ka(t,"PUT",e,r,s,n)}async function aI(t,e,n,r){return Ka(t,"HEAD",e,G(G({},n),{},{noResolveJson:!0}),r)}async function lm(t,e,n,r,s){return Ka(t,"DELETE",e,r,s,n)}var lI=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e}then(t,e){return this.execute().then(t,e)}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Ce(e))return{data:null,error:e};throw e}}};let w1;w1=Symbol.toStringTag;var cI=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[w1]="BlobDownloadBuilder",this.promise=null}asStream(){return new lI(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Ce(e))return{data:null,error:e};throw e}}};const uI={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},lv={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var dI=class{constructor(t,e={},n,r){this.shouldThrowOnError=!1,this.url=t,this.headers=e,this.bucketId=n,this.fetch=am(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(t,e,n,r){var s=this;try{let i;const o=G(G({},lv),r);let a=G(G({},s.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",s.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(l))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(a=G(G({},a),r.headers));const c=s._removeEmptyFolders(e),u=s._getFinalPath(c),d=await(t=="PUT"?sf:dn)(s.fetch,`${s.url}/object/${u}`,i,G({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:c,id:d.Id,fullPath:d.Key},error:null}}catch(i){if(s.shouldThrowOnError)throw i;if(Ce(i))return{data:null,error:i};throw i}}async upload(t,e,n){return this.uploadOrUpdate("POST",t,e,n)}async uploadToSignedUrl(t,e,n,r){var s=this;const i=s._removeEmptyFolders(t),o=s._getFinalPath(i),a=new URL(s.url+`/object/upload/sign/${o}`);a.searchParams.set("token",e);try{let l;const c=G({upsert:lv.upsert},r),u=G(G({},s.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType),{data:{path:i,fullPath:(await sf(s.fetch,a.toString(),l,{headers:u})).Key},error:null}}catch(l){if(s.shouldThrowOnError)throw l;if(Ce(l))return{data:null,error:l};throw l}}async createSignedUploadUrl(t,e){var n=this;try{let r=n._getFinalPath(t);const s=G({},n.headers);e!=null&&e.upsert&&(s["x-upsert"]="true");const i=await dn(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(n.url+i.url),a=o.searchParams.get("token");if(!a)throw new bu("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:a},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Ce(r))return{data:null,error:r};throw r}}async update(t,e,n){return this.uploadOrUpdate("PUT",t,e,n)}async move(t,e,n){var r=this;try{return{data:await dn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}),error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(Ce(s))return{data:null,error:s};throw s}}async copy(t,e,n){var r=this;try{return{data:{path:(await dn(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:t,destinationKey:e,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key},error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(Ce(s))return{data:null,error:s};throw s}}async createSignedUrl(t,e,n){var r=this;try{let s=r._getFinalPath(t),i=await dn(r.fetch,`${r.url}/object/sign/${s}
244`,G({expiresIn:e},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i={signedUrl:encodeURI(`${r.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(Ce(s))return{data:null,error:s};throw s}}async createSignedUrls(t,e,n){var r=this;try{const s=await dn(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:e,paths:t},{headers:r.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:s.map(o=>G(G({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(Ce(s))return{data:null,error:s};throw s}}download(t,e){const n=typeof(e==null?void 0:e.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((e==null?void 0:e.transform)||{}),s=r?`?${r}`:"",i=this._getFinalPath(t),o=()=>ka(this.fetch,`${this.url}/${n}/${i}${s}`,{headers:this.headers,noResolveJson:!0});return new cI(o,this.shouldThrowOnError)}async info(t){var e=this;const n=e._getFinalPath(t);try{return{data:rf(await ka(e.fetch,`${e.url}/object/info/${n}`,{headers:e.headers})),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Ce(r))return{data:null,error:r};throw r}}async exists(t){var e=this;const n=e._getFinalPath(t);try{return await aI(e.fetch,`${e.url}/object/${n}`,{headers:e.headers}),{data:!0,error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Ce(r)&&r instanceof nf){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}}getPublicUrl(t,e){const n=this._getFinalPath(t),r=[],s=e!=null&&e.download?`download=${e.download===!0?"":e.download}`:"";s!==""&&r.push(s);const i=typeof(e==null?void 0:e.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((e==null?void 0:e.transform)||{});o!==""&&r.push(o);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}${a}`)}}}async remove(t){var e=this;try{return{data:await lm(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ce(n))return{data:null,error:n};throw n}}async list(t,e,n){var r=this;try{const s=G(G(G({},uI),e),{},{prefix:t||""});return{data:await dn(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n),error:null}}catch(s){if(r.shouldThrowOnError)throw s;if(Ce(s))return{data:null,error:s};throw s}}async listV2(t,e){var n=this;try{const r=G({},t);return{data:await dn(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},e),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Ce(r))return{data:null,error:r};throw r}}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const e=[];return t.width&&e.push(`width=${t.width}`),t.height&&e.push(`height=${t.height}`),t.resize&&e.push(`resize=${t.resize}`),t.format&&e.push(`format=${t.format}`),t.quality&&e.push(`quality=${t.quality}`),e.join("&")}};const x1="2.89.0",b1={"X-Client-Info":`storage-js/${x1}`};var hI=class{constructor(t,e={},n,r){this.shouldThrowOnError=!1;const s=new URL(t);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href.replace(/\/$/,""),this.headers=G(G({},b1),e),this.fetch=am(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(t){var e=this;try{const n=e.listBucketOptionsToQueryString(t);return{data:await ka(e.fetch,`${e.url}/bucket${n}`,{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ce(n))return{data:null,error:n};throw n}}async getBucket(t){var e=this;try{return{data:await ka(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ce(n))return{data:null,error:n};throw n}}async createBucket(t,e={public:!1}){var n=this;try{return{data:await dn(n.fetch,`${n.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Ce(r))return{data:null,error:r};throw r}}async updateBucket(t,e){var n=this;try{return{data:await sf(n.fetch,`${n.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Ce(r))return{data:null,error:r};throw r}}async emptyBucket(t){var e=this;try{return{data:await dn(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ce(n))return{data:null,error:n};throw n}}async deleteBucket(t){var e=this;try{return{data:await lm(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ce(n))return{data:null,error:n};throw n}}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},fI=class{constructor(t,e={},n){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=G(G({},b1),e),this.fetch=am(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(t){var e=this;try{return{data:await dn(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ce(n))return{data:null,error:n};throw n}}async listBuckets(t){var e=this;try{const n=new URLSearchParams;(t==null?void 0:t.limit)!==void 0&&n.set("limit",t.limit.toString()),(t==null?void 0:t.offset)!==void 0&&n.set("offset",t.offset.toString()),t!=null&&t.sortColumn&&n.set("sortColumn",t.sortColumn),t!=null&&t.sortOrder&&n.set("sortOrder",t.sortOrder),t!=null&&t.search&&n.set("search",t.search);const r=n.toString(),s=r?`${e.url}/bucket?${r}`:`${e.url}/bucket`;return{data:await ka(e.fetch,s,{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ce(n))return{data:null,error:n};throw n}}async deleteBucket(t){var e=this;try{return{data:await lm(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ce(n))return{data:null,error:n};throw n}}from(t){var e=this;if(!tI(t))throw new bu("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new ZN({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}
244),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(s,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}};const cm={"X-Client-Info":`storage-js/${x1}`,"Content-Type":"application/json"};var _1=class extends Error{constructor(t){super(t),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function Ot(t){return typeof t=="object"&&t!==null&&"__isStorageVectorsError"in t}var wd=class extends _1{constructor(t,e,n){super(t),this.name="StorageVectorsApiError",this.status=e,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},pI=class extends _1{constructor(t,e){super(t),this.name="StorageVectorsUnknownError",this.originalError=e}};const um=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),mI=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},cv=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),gI=async(t,e,n)=>{if(t&&typeof t=="object"&&"status"in t&&"ok"in t&&typeof t.status=="number"&&!(n!=null&&n.noResolveJson)){const r=t.status||500,s=t;if(typeof s.json=="function")s.json().then(i=>{const o=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||r+"";e(new wd(cv(i),r,o))}).catch(()=>{const i=r+"";e(new wd(s.statusText||`HTTP ${r} error`,r,i))});else{const i=r+"";e(new wd(s.statusText||`HTTP ${r} error`,r,i))}}else e(new pI(cv(t),t))},yI=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return r?(mI(r)?(s.headers=G({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(r)):s.body=r,G(G({},s),n)):s};async function vI(t,e,n,r,s,i){return new Promise((o,a)=>{t(n,yI(e,r,s,i)).then(l=>{if(!l.ok)throw l;if(r!=null&&r.noResolveJson)return l;const c=l.headers.get("content-type");return!c||!c.includes("application/json")?{}:l.json()}).then(l=>o(l)).catch(l=>gI(l,a,r))})}async function jt(t,e,n,r,s){return vI(t,"POST",e,r,s,n)}var wI=class{constructor(t,e={},n){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=G(G({},cm),e),this.fetch=um(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(t){var e=this;try{return{data:await jt(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{},error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ot(n))return{data:null,error:n};throw n}}async getIndex(t,e){var n=this;try{return{data:await jt(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Ot(r))return{data:null,error:r};throw r}}async listIndexes(t){var e=this;try{return{data:await jt(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ot(n))return{data:null,error:n};throw n}}async deleteIndex(t,e){var n=this;try{return{data:await jt(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:n.headers})||{},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(Ot(r))return{data:null,error:r};throw r}}},xI=class{constructor(t,e={},n){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=G(G({},cm),e),this.fetch=um(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async putVectors(t){var e=this;try{if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:await jt(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{},error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ot(n))return{data:null,error:n};throw n}}async getVectors(t){var e=this;try{return{data:await jt(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ot(n))return{data:null,error:n};throw n}}async listVectors(t){var e=this;try{if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
244if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return{data:await jt(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ot(n))return{data:null,error:n};throw n}}async queryVectors(t){var e=this;try{return{data:await jt(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ot(n))return{data:null,error:n};throw n}}async deleteVectors(t){var e=this;try{if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:await jt(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{},error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ot(n))return{data:null,error:n};throw n}}},bI=class{constructor(t,e={},n){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=G(G({},cm),e),this.fetch=um(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(t){var e=this;try{return{data:await jt(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{},error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ot(n))return{data:null,error:n};throw n}}async getBucket(t){var e=this;try{return{data:await jt(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ot(n))return{data:null,error:n};throw n}}async listBuckets(t={}){var e=this;try{return{data:await jt(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ot(n))return{data:null,error:n};throw n}}async deleteBucket(t){var e=this;try{return{data:await jt(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{},error:null}}catch(n){if(e.shouldThrowOnError)throw n;if(Ot(n))return{data:null,error:n};throw n}}},_I=class extends bI{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new SI(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,n=this;return e().call(n,t)}async getBucket(t){var e=()=>super.getBucket,n=this;return e().call(n,t)}async listBuckets(t={}){var e=()=>super.listBuckets,n=this;return e().call(n,t)}async deleteBucket(t){var e=()=>super.deleteBucket,n=this;return e().call(n,t)}},SI=class extends wI{constructor(t,e,n,r){super(t,e,r),this.vectorBucketName=n}async createIndex(t){var e=()=>super.createIndex,n=this;return e().call(n,G(G({},t),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,n=this;return e().call(n,G(G({},t),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,n=this;return e().call(n,n.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,n=this;return e().call(n,n.vectorBucketName,t)}index(t){return new kI(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},kI=class extends xI{constructor(t,e,n,r,s){super(t,e,s),this.vectorBucketName=n,this.indexName=r}async putVectors(t){var e=()=>super.putVectors,n=this;return e().call(n,G(G({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(t){var e=()=>super.getVectors,n=this;return e().call(n,G(G({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,n=this;return e().call(n,G(G({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,n=this;return e().call(n,G(G({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,n=this;return e().call(n,G(G({},t),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},EI=class extends hI{constructor(t,e={},n,r){super(t,e,n,r)}from(t){return new dI(this.url,this.headers,t,this.fetch)}get vectors(){return new _I(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new fI(this.url+"/iceberg",this.headers,this.fetch)}};const S1="2.89.0",ni=30*1e3,of=3,xd=of*ni,TI="http://localhost:9999",CI="supabase.auth.token",PI={"X-Client-Info":`gotrue-js/${S1}`},af="X-Supabase-Api-Version",k1={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},AI=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,RI=10*60*1e3;
244class Ea extends Error{constructor(e,n,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function H(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class OI extends Ea{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function jI(t){return H(t)&&t.name==="AuthApiError"}class ys extends Ea{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class or extends Ea{constructor(e,n,r,s){super(e,r,s),this.name=n,this.status=r}}class Pt extends or{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function NI(t){return H(t)&&t.name==="AuthSessionMissingError"}class Qs extends or{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class El extends or{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Tl extends or{constructor(e,n=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function II(t){return H(t)&&t.name==="AuthImplicitGrantRedirectError"}class uv extends or{constructor(e,n=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class DI extends or{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class lf extends or{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function bd(t){return H(t)&&t.name==="AuthRetryableFetchError"}class dv extends or{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class cf extends or{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ac="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),hv=` 245\r=`.split(""),LI=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<hv.length;e+=1)t[hv[e].charCodeAt(0)]=-2;for(let e=0;e<Ac.length;e+=1)t[Ac[e].charCodeAt(0)]=e;return t})();function fv(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Ac[r]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Ac[r]),e.queuedBits-=6}}function E1(t,e,n){const r=LI[t];if(r>-1)for(e.queue=e.queue<<6|r,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function pv(t){const e=[],n=o=>{e.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{VI(o,r,n)};for(let o=0;o<t.length;o+=1)E1(t.charCodeAt(o),s,i);return e.join("")}function MI(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function $I(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}MI(r,e)}}function VI(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let r=1;r<6;r+=1)if(!(t>>7-r&1)){e.utf8seq=r;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function Ri(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)E1(t.charCodeAt(s),n,r);return new Uint8Array(e)}function UI(t){const e=[];return $I(t,n=>e.push(n)),new Uint8Array(e)}function bs(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};return t.forEach(s=>fv(s,n,r)),fv(null,n,r),e.join("")}function FI(t){return Math.round(Date.now()/1e3)+t}function BI(){return Symbol("auth-callback")}const Xe=()=>typeof window<"u"&&typeof document<"u",cs={tested:!1,writable:!1},T1=()=>
245{if(!Xe())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(cs.tested)return cs.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),cs.tested=!0,cs.writable=!0}catch{cs.tested=!0,cs.writable=!1}return cs.writable};function zI(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{e[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{e[s]=r}),e}const C1=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),WI=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",ri=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},us=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Je=async(t,e)=>{await t.removeItem(e)};class _u{constructor(){this.promise=new _u.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}_u.promiseConstructor=Promise;function _d(t){const e=t.split(".");if(e.length!==3)throw new cf("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!AI.test(e[r]))throw new cf("JWT not in base64url format");return{header:JSON.parse(pv(e[0])),payload:JSON.parse(pv(e[1])),signature:Ri(e[2]),raw:{header:e[0],payload:e[1]}}}async function HI(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function KI(t,e){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await t(i);if(!e(i,null,o)){r(o);return}}catch(o){if(!e(i,o)){s(o);return}}})()})}function qI(t){return("0"+t.toString(16)).substr(-2)}function GI(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(e),Array.from(e,qI).join("")}async function YI(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function QI(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const n=await YI(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Zs(t,e,n=!1){const r=GI();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await ri(t,`${e}-code-verifier`,s);const i=await QI(r);return[i,r===i?"plain":"s256"]}const ZI=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function JI(t){const e=t.headers.get(af);if(!e||!e.match(ZI))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function XI(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function e2(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const t2=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Js(t){if(!t2.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Sd(){const t={};return new Proxy(t,{get:(e,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function n2(t,e){return new Proxy(t,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
245if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!e.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),e.value=!0),Reflect.get(n,r,s)}})}function mv(t){return JSON.parse(JSON.stringify(t))}const ps=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),r2=[502,503,504];async function gv(t){var e;if(!WI(t))throw new lf(ps(t),0);if(r2.includes(t.status))throw new lf(ps(t),t.status);let n;try{n=await t.json()}catch(i){throw new ys(ps(i),i)}let r;const s=JI(t);if(s&&s.getTime()>=k1["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new dv(ps(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new Pt}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new dv(ps(n),t.status,n.weak_password.reasons);throw new OI(ps(n),t.status||500,r)}const s2=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function q(t,e,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[af]||(i[af]=k1["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await i2(t,e,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function i2(t,e,n,r,s,i){const o=s2(e,r,s,i);let a;try{a=await t(n,Object.assign({},o))}catch(l){throw console.error(l),new lf(ps(l),0)}if(a.ok||await gv(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await gv(l)}}function an(t){var e;let n=null;l2(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=FI(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:r},error:null}}function yv(t){const e=an(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Er(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function o2(t){return{data:t,error:null}}function a2(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=t,o=xu(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function vv(t){return t}function l2(t){return t.access_token&&t.refresh_token&&t.expires_in}const kd=["global","local","others"];class c2{constructor({url:e="",headers:n={},fetch:r}){this.url=e,this.headers=n,this.fetch=C1(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}
vendor: 4,751 bytes, line 245
245async signOut(e,n=kd[0]){if(kd.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${kd.join(", ")}`);try{return await q(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if(H(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await q(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Er})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=xu(e,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await q(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:a2,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(H(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await q(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Er})}catch(n){if(H(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await q(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:vv});if(u.error)throw u.error;const d=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(w=>{const p=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);c[`${x}Page`]=p}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(H(c))return{data:{users:[]},error:c};throw c}}async getUserById(e){Js(e);try{return await q(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Er})}catch(n){if(H(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){Js(e);try{return await q(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:Er})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){Js(e);try{return await q(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:Er})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){Js(e.userId);try{const{data:n,error:r}=await q(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(H(n))return{data:null,error:n};throw n}}async _deleteFactor(e){Js(e.userId),Js(e.id);try{return{data:await q(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(H(n))return{data:null,error:n};throw n}}async _listOAuthClients(e){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await q(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:vv});if(u.error)throw u.error;const d=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return f.length>0&&(f.forEach(w=>{const p=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(w.split(";")[1].split("=")[1]);c[`${x}Page`]=p}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(H(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(e){try{return await q(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _getOAuthClient(e){try{return await q(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _updateOAuthClient(e,n){try{return await q(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(H(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(e){try{return await q(this.fetch,"DELET
245E",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(H(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(e){try{return await q(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}}function wv(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}const Xs={debug:!!(globalThis&&T1()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class P1 extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class u2 extends P1{}async function d2(t,e,n){Xs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const r=new globalThis.AbortController;return e>0&&setTimeout(()=>{r.abort(),Xs.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){Xs.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,s.name);try{return await n()}finally{Xs.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,s.name)}}else{if(e===0)throw Xs.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new u2(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Xs.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function h2(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function A1(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function f2(t){return parseInt(t,16)}function p2(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,r=>r.toString(16).padStart(2,"0")).join("")}function m2(t){var e;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:c,scheme:u,uri:d,version:h}=t;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(` 246`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const f=A1(t.address),w=u?`${u}://${r}`:r,p=t.statement?`${t.statement} 247`:"",x=`${w} wants you to sign in with your Ethereum account: 248${f} 249 250${p}`;let y=`URI: ${d} 251Version: ${h} 252Chain ID: ${n}${o?` 253Nonce: ${o}`:""} 254Issued At: ${i.toISOString()}`;if(s&&(y+=` 255Expiration Time: ${s.toISOString()}`),a&&(y+=` 256Not Before: ${a.toISOString()}`),l&&(y+=` 257Request ID: ${l}`),c){let m=` 258Resources:`;for(const v of c){if(!v||typeof v!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${v}`);m+=` 259- ${v}`}y+=m}return`${x} 260${y}`}
260class Fe extends Error{constructor({message:e,code:n,cause:r,name:s}){var i;super(e,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class Rc extends Fe{constructor(e,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:e}),this.name="WebAuthnUnknownError",this.originalError=n}}function g2({error:t,options:e}){var n,r,s;const{publicKey:i}=e;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Fe({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Fe({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Fe({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Fe({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new Fe({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new Fe({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return i.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Fe({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new Fe({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const o=window.location.hostname;if(R1(o)){if(i.rp.id!==o)return new Fe({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Fe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Fe({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new Fe({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Fe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function y2({error:t,options:e}){const{publicKey:n}=e;if(!n)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Fe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Fe({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const r=window.location.hostname;if(R1(r)){if(n.rpId!==r)return new Fe({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Fe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Fe({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Fe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class v2{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}
260const w2=new v2;function x2(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:n,excludeCredentials:r}=t,s=xu(t,["challenge","user","excludeCredentials"]),i=Ri(e).buffer,o=Object.assign(Object.assign({},n),{id:Ri(n.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:i,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const c=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:Ri(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function b2(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:n}=t,r=xu(t,["challenge","allowCredentials"]),s=Ri(e).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:Ri(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function _2(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t;return{id:t.id,rawId:t.id,response:{attestationObject:bs(new Uint8Array(t.response.attestationObject)),clientDataJSON:bs(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function S2(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const n=t,r=t.getClientExtensionResults(),s=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:bs(new Uint8Array(s.authenticatorData)),clientDataJSON:bs(new Uint8Array(s.clientDataJSON)),signature:bs(new Uint8Array(s.signature)),userHandle:s.userHandle?bs(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(e=n.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function R1(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function xv(){var t,e;return!!(Xe()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.get)=="function")}async function k2(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Rc("Browser returned unexpected credential type",e)}:{data:null,error:new Rc("Empty credential response",e)}}catch(e){return{data:null,error:g2({error:e,options:t})}}}async function E2(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Rc("Browser returned unexpected credential type",e)}:{data:null,error:new Rc("Empty credential response",e)}}catch(e){return{data:null,error:y2({error:e,options:t})}}}const T2={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},C2={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Oc(...t){const e=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of t)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(e(o)){const a=r[i];e(a)?r[i]=Oc(a,o):r[i]=Oc(o)}else r[i]=o}return r}function P2(t,e){return Oc(T2,t,e||{})}function A2(t,e){return Oc(C2,t,e||{})}class R2{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:n,friendlyName:r,signal:s},i){try{const{data:o,error:a}=await this.client.mfa.challenge({factorId:e,webauthn:n});if(!o)return{data:null,error:a};const l=s??w2.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:c}=o.webauthn.credential_options.publicKey;c.name||(c.name=`${c.id}:${r}`),c.displayName||(c.displayName=c.name)}switch(o.webauthn.type){case"create":{const c=P2(o.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:u,error:d}=await k2({publicKey:c,signal:l});return u?{data:{factorId:e,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:u}},error:null}:{data:null,error:d}}case"request":{const c=A2(o.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:u,error:d}=await E2(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:c,signal:l}));return u?{data:{factorId:e,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:u}},error:null}:{data:null,error:d}}}}catch(o){return H(o)?{data:null,error:o}:{data:null,error:new ys("Unexpected error in challenge",o)}}}async _verify({challengeId:e,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:e,webauthn:r})}async _authenticate({factorId:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Ea("rpId is required for WebAuthn authentication")};try{if(!xv())return{data:null,error:new ys("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:e,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:e,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return H(o)?{data:null,error:o}:{data:null,error:new ys("Unexpected error in authenticate",o)}}}async _register({friendlyName:e,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Ea("rpId is required for WebAuthn registration")};try{if(!xv())return{data:null,error:new ys("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:e});if(!o)return await this.client.mfa.listFactors().then(u=>{var d;return(d=u.data)===null||d===void 0?void 0:d.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===e&&h.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(o){return H(o)?{data:null,error:o}:{data:null,error:new ys("Unexpected error in register",o)}}}}h2();const O2={url:TI,storageKey:CI,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:PI,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function bv(t,e,n){return await n()}const ei={};class Ta{get jwks(){var e,n;return(n=(e=ei[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){ei[this.storageKey]=Object.assign(Object.assign({},ei[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=ei[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){ei[this.storageKey]=Object.assign(Object.assign({},ei[this.storageKey]),{cachedAt:e})}constructor(e){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},O2),e);if(this.storageKey=i.storageKey,this.instanceID=(n=Ta.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Ta.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>
2600&&Xe()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new c2({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=C1(i.fetch),this.lock=i.lock||bv,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,i.lock?this.lock=i.lock:this.persistSession&&Xe()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=d2:this.lock=bv,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new R2(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:T1()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=wv(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=wv(this.memoryStorage)),Xe()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${S1}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{let n={},r="none";if(Xe()&&(n=zI(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Xe()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),II(i)){const l=(e=i.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return H(n)?this._returnResult({error:n}):this._returnResult({error:new ys("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,s;try{const i=await q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:an}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(H(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(e){var n,r,s;try{let i;if("email"in e){const{email:u,password:d,options:h}=e;let f=null,w=null;this.flowType==="pkce"&&([f,w]=await Zs(this.storage,this.storageKey)),i=await q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:u,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:f,code_challenge_method:w},xform:an})}else if("phone"in e){const{phone:u,password:d,options:h}=e;i=await q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:an})}else throw new El("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await Je(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(await Je(this.storage,`${this.storageKey}-code-verifier`),H(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(e){try{let n;if("email"in e){const{email:i,password:o,options:a}=e;n=await q(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:yv})}else if("phone"in e){const{phone:i,password:o,options:a}=e;n=await q(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:yv})}else throw new El("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new Qs;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(H(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(e){var n,r,s,i;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=e.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=e.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;switch(n){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(e){var n,r,s,i,o,a,l,c,u,d,h;let f,w;if("message"in e)f=e.message,w=e.signature;else{const{chain:p,wallet:x,statement:y,options:m}=e;let v;if(Xe())if(typeof x=="object")v=x;else{const P=window;if("ethereum"in P&&typeof P.ethereum=="object"&&"request"in P.ethereum&&typeof P.ethereum.request=="function")v=P.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");v=x}const _=new URL((n=m==null?void 0:m.url)!==null&&n!==void 0?n:window.location.href),S=await v.request({method:"eth_requestAccounts"}).then(P=>P).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const k=A1(S[0]);let E=(r=m==null?void 0:m.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!E){const P=await v.request({method:"eth_chainId"});E=f2(P)}const T={domain:_.host,address:k,statement:y,uri:_.href,version:"1",chainId:E,nonce:(s=m==null?void 0:m.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=m==null?void 0:m.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=m==null?void 0:m.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=m==null?void 0:m.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=m==null?void 0:m.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(u=m==null?void 0:m.signInWithEthereum)===null||u===void 0?void 0:u.resources};f=m2(T),w=await v.request({method:"personal_sign",params:[p2(f),k]})}try{const{data:p,error:x}=await q(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:w},!((d=e.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=e.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:an});if(x)throw x;if(!p||!p.session||!p.user){const y=new Qs;return this._returnResult({data:{user:null,session:null},error:y})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:Object.assign({},p),error:x})}catch(p){if(H(p))return this._returnResult({data:{user:null,session:null},error:p});throw p}}async signInWithSolana(e){var n,r,s,i,o,a,l,c,u,d,h,f;let w,p;if("message"in e)w=e.message,p=e.signature;else{const{chain:x,wallet:y,statement:m,options:v}=e;let _;if(Xe())if(typeof y=="object")_=y;
260else{const k=window;if("solana"in k&&typeof k.solana=="object"&&("signIn"in k.solana&&typeof k.solana.signIn=="function"||"signMessage"in k.solana&&typeof k.solana.signMessage=="function"))_=k.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=y}const S=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const k=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},v==null?void 0:v.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),m?{statement:m}:null));let E;if(Array.isArray(k)&&k[0]&&typeof k[0]=="object")E=k[0];else if(k&&typeof k=="object"&&"signedMessage"in k&&"signature"in k)E=k;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in E&&"signature"in E&&(typeof E.signedMessage=="string"||E.signedMessage instanceof Uint8Array)&&E.signature instanceof Uint8Array)w=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),p=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=v==null?void 0:v.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=v==null?void 0:v.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${v.signInWithSolana.notBefore}`]:[],...!((o=v==null?void 0:v.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${v.signInWithSolana.expirationTime}`]:[],...!((a=v==null?void 0:v.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${v.signInWithSolana.chainId}`]:[],...!((l=v==null?void 0:v.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${v.signInWithSolana.nonce}`]:[],...!((c=v==null?void 0:v.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${v.signInWithSolana.requestId}`]:[],...!((d=(u=v==null?void 0:v.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||d===void 0)&&d.length?["Resources",...v.signInWithSolana.resources.map(E=>`- ${E}`)]:[]].join(` 261`);const k=await _.signMessage(new TextEncoder().encode(w),"utf8");if(!k||!(k instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=k}}try{const{data:x,error:y}=await q(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:bs(p)},!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:an});if(y)throw y;if(!x||!x.session||!x.user){const m=new Qs;return this._returnResult({data:{user:null,session:null},error:m})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:y})}catch(x){if(H(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(e){const n=await us(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new DI;const{data:i,error:o}=await q(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:an});if(await Je(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new Qs;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await Je(this.storage,`${this.storageKey}-code-verifier`),H(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(e){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=e,a=await q(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:an}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const u=new Qs;return this._returnResult({data:{user:null,session:null},error:u})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(n){if(H(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(e){var n,r,s,i,o;try{if("email"in e){const{email:a,options:l}=e;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await Zs(this.storage,this.storageKey));const{error:d}=await q(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in e){const{phone:a,options:l}=e,{data:c,error:u}=await q(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u})}throw new El("You must provide either an email or phone number.")}catch(a){if(await Je(this.storage,`${this.storageKey}-code-verifier`),H(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(e){var n,r;try{let s,i;"options"in e&&(s=(n=e.options)===null||n===void 0?void 0:n.redirectTo,i=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await q(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:an});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(H(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(e){var n,r,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await Zs(this.storage,this.storageKey));const c=await q(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(r=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:o2});return!((i=c.data)===null||i===void 0)&&i.url&&Xe()&&!(!((o=e.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await Je(this.storage,`${this.storageKey}-code-verifier`),H(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)throw r;if(!n)throw new Pt;const{error:s}=await q(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(e){if(H(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:r,type:s,options:i}=e,{error:o}=await q(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in e){const{phone:r,type:s,options:i}=e,{data:o,error:a}=await q(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new El("You must provide either an email or phone number and a type")}catch(n){if(H(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(e,n){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const n=await us(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not val
261id"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<xd:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const o=await us(this.userStorage,this.storageKey+"-user");o!=null&&o.user?e.user=o.user:e.user=Sd()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};e.user=n2(e.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const n=await this._acquireLock(-1,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(e){try{return e?await q(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Er}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Pt}:await q(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:Er})})}catch(n){if(H(n))return NI(n)&&(await this._removeSession(),await Je(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new Pt;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await Zs(this.storage,this.storageKey));const{data:c,error:u}=await q(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Er});if(u)throw u;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Je(this.storage,`${this.storageKey}-code-verifier`),H(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Pt;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=_d(e.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:a,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(e.access_token);if(l)throw l;i={access_token:e.access_token,refresh_token:e.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(H(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:o,error:a}=n;if(a)throw a;e=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(e!=null&&e.refresh_token))throw new Pt;const{data:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(H(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(e,n){try{if(!Xe())throw new Tl("No browser detected.");
261if(e.error||e.error_description||e.error_code)throw new Tl(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new uv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Tl("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new uv("No code detected.");const{data:m,error:v}=await this._exchangeCodeForSession(e.code);if(v)throw v;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:m.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=e;if(!i||!a||!o||!c)throw new Tl("No session defined in URL");const u=Math.round(Date.now()/1e3),d=parseInt(a);let h=u+d;l&&(h=parseInt(l));const f=h-u;f*1e3<=ni&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${d}s`);const w=h-d;u-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,h,u):u-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,h,u);const{data:p,error:x}=await this._getUser(i);if(x)throw x;const y={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:d,expires_at:h,refresh_token:o,token_type:c,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:y,redirectType:e.type},error:null})}catch(r){if(H(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await us(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,e);if(a&&!(jI(a)&&(a.status===404||a.status===401||a.status===403)))return this._returnResult({error:a})}return e!=="others"&&(await this._removeSession(),await Je(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const n=BI(),r={id:n,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(e){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",i),console.error(i)}})}async resetPasswordForEmail(e,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Zs(this.storage,this.storageKey,!0));try{return await q(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await Je(this.storage,`${this.storageKey}-code-verifier`),H(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,c,u;const{data:d,error:h}=i;if(h)throw h;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await q(this.fetch,"GET",f,{headers:this.headers,jwt:(u=(c=d.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;return Xe()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:e.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(H(r))return this._returnResult({data:{provider:e.provider,url:null},error:r});throw r}}async linkIdentityIdToken(e){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;
261if(s)throw s;const{options:o,provider:a,token:l,access_token:c,nonce:u}=e,d=await q(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:c,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:an}),{data:h,error:f}=d;return f?this._returnResult({data:{user:null,session:null},error:f}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new Qs}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:f}))}catch(s){if(await Je(this.storage,`${this.storageKey}-code-verifier`),H(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await q(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await KI(async s=>(s>
2610&&await HI(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await q(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:an})),(s,i)=>{const o=200*Math.pow(2,s);return i&&bd(i)&&Date.now()+o-r<ni})}catch(r){if(this._debug(n,"error",r),H(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",r),Xe()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await us(this.storage,this.storageKey);if(s&&this.userStorage){let o=await us(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await ri(this.userStorage,this.storageKey+"-user",o)),s.user=(e=o==null?void 0:o.user)!==null&&e!==void 0?e:Sd()}else if(s&&!s.user&&!s.user){const o=await us(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Je(this.storage,this.storageKey+"-user"),await ri(this.storage,this.storageKey,s)):s.user=Sd()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<xd;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${xd}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),bd(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(e){var n,r;if(!e)throw new Pt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new _u;const{data:i,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!i.session)throw new Pt;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={data:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),H(i)){const o={data:null,error:i};return bd(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(e,n,r=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(e,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await Je(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await ri(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;
261const i=mv(s);await ri(this.storage,this.storageKey,i)}else{const s=mv(n);await ri(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Je(this.storage,this.storageKey),await Je(this.storage,this.storageKey+"-code-verifier"),await Je(this.storage,this.storageKey+"-user"),this.userStorage&&await Je(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Xe()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),ni);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-e)/ni);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ni}ms, refresh threshold is ${of} ticks`),s<=of&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof P1)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Xe()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await Zs(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}
261):await q(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(e){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:l,error:c}=await q(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(e.factorType==="totp"&&l.type==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?_2(e.webauthn.credential_response):S2(e.webauthn.credential_response)})}:{code:e.code}),{data:a,error:l}=await q(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=await q(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:x2(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:b2(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){var e;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(e=n==null?void 0:n.factors)!==null&&e!==void 0?e:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(){var e,n;const{data:{session:r},error:s}
261=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=_d(r.access_token);let o=null;i.aal&&(o=i.aal);let a=o;((n=(e=r.user.factors)===null||e===void 0?void 0:e.filter(u=>u.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(a="aal2");const c=i.amr||[];return{data:{currentLevel:o,nextLevel:a,currentAuthenticationMethods:c},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await q(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Pt})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(e,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Pt});const o=await q(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&Xe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(H(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(e,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Pt});const o=await q(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&Xe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(H(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;return r?this._returnResult({data:null,error:r}):n?await q(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Pt})})}catch(e){if(H(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await q(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Pt})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(a=>a.kid===e);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===e),r&&this.jwks_cached_at+RI>s)return r;const{data:i,error:o}=await q(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(a=>a.kid===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:f,error:w}
261=await this.getSession();if(w||!f.session)return this._returnResult({data:null,error:w});r=f.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=_d(r);n!=null&&n.allowExpired||XI(i.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!c){const{error:f}=await this.getUser(r);if(f)throw f;return{data:{claims:i,header:s,signature:o},error:null}}const u=e2(s.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,o,UI(`${a}.${l}`)))throw new cf("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(H(r))return this._returnResult({data:null,error:r});throw r}}}Ta.nextInstanceID={};const j2=Ta,N2="2.89.0";let No="";typeof Deno<"u"?No="deno":typeof document<"u"?No="web":typeof navigator<"u"&&navigator.product==="ReactNative"?No="react-native":No="node";const I2={"X-Client-Info":`supabase-js-${No}/${N2}`},D2={headers:I2},L2={schema:"public"},M2={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},$2={};function Ca(t){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ca(t)}function V2(t,e){if(Ca(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ca(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function U2(t){var e=V2(t,"string");return Ca(e)=="symbol"?e:e+""}function F2(t,e,n){return(e=U2(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Ie(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_v(Object(n),!0).forEach(function(r){F2(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_v(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const B2=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),z2=()=>Headers,W2=(t,e,n)=>{const r=B2(n),s=z2();return async(i,o)=>{var a;const l=(a=await e())!==null&&a!==void 0?a:t;let c=new s(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",t),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(i,Ie(Ie({},o),{},{headers:c}))}};function H2(t){return t.endsWith("/")?t:t+"/"}function K2(t,e){var n,r;const{db:s,auth:i,realtime:o,global:a}=t,{db:l,auth:c,realtime:u,global:d}=e,h={db:Ie(Ie({},l),s),auth:Ie(Ie({},c),i),realtime:Ie(Ie({},u),o),storage:{},global:Ie(Ie(Ie({},d),a),{},{headers:Ie(Ie({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return t.accessToken?h.accessToken=t.accessToken:delete h.accessToken,h}function q2(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(H2(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var G2=class extends j2{constructor(t){super(t)}},Y2=class{constructor(t,e,n){var r,s;this.supabaseUrl=t,this.supabaseKey=e;const i=q2(t);if(!e)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,a={db:L2,realtime:$2,auth:Ie(Ie({},M2),{},{storageKey:o}),global:D2},l=K2(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(u,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=W2(e,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Ie({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&this.accessToken().then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new PN(new URL("rest/v1",i).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),this.storage=new EI(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new SN(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,n)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,n;if(t.accessToken)return await t.accessToken();const{data:r}=await t.auth.getSession();
261return(e=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:c},u,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new G2({url:this.authUrl.href,headers:Ie(Ie({},h),u),storageKey:i,autoRefreshToken:t,persistSession:e,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:c,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new HN(this.realtimeUrl.href,Ie(Ie({},t),{},{params:Ie(Ie({},{apikey:this.supabaseKey}),t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e==null?void 0:e.access_token)})}_handleTokenChanged(t,e,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const Q2=(t,e,n)=>new Y2(t,e,n);function Z2(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}Z2()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function J2(){var x,y;if(typeof window>"u")return;const t=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(m=>t===m||t.endsWith("."+m)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((x=t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:x[1])??((y=t.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:y[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),a=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),c=l&&a.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],u="lovable-preview-auth:result",d=2e3,h=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),f=(m,v,_)=>new Promise(S=>{const k=h();let E=!1,T;const P=D=>{E||(E=!0,clearTimeout(T),window.removeEventListener("message",O),S(D))},O=D=>{if(c.indexOf(D.origin)<0)return;const Y=D.data;Y&&Y.type===u&&Y.requestId===k&&P(Y)};window.addEventListener("message",O);const B={type:m,requestId:k,projectId:s,key:v};_!==void 0&&(B.value=_);for(const D of c)window.parent.postMessage(B,D);T=setTimeout(()=>P(null),d)});let w=!0;const p=250;return{getItem:async m=>{let v=await f("lovable-preview-auth:get",m);return!v&&w&&(await new Promise(_=>setTimeout(_,p)),v=await f("lovable-preview-auth:get",m)),w=!1,v&&v.ok&&typeof v.value=="string"?v.value===""?(localStorage.removeItem(m),null):v.value:localStorage.getItem(m)},setItem:(m,v)=>(localStorage.setItem(m,v),f("lovable-preview-auth:set",m,v).then(()=>{})),removeItem:m=>(localStorage.removeItem(m),f("lovable-preview-auth:remove",m).then(()=>{}))}}const X2="https://zopcovvutfnxkkddkpxm.supabase.co",eD="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InpvcGNvdnZ1dGZueGtrZGRrcHhtIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjczNzA1MjgsImV4cCI6MjA4Mjk0NjUyOH0.wWcvFaDdpNc5poubXBqeUBU9N9dUiL4Bu3SCj8h4a2s",br=Q2(X2,eD,{auth:{storage:J2(),persistSession:!0,autoRefreshToken:!0}}),O1=b.createContext(void 0);function tD({children:t}){const[e,n]=b.useState(null),[r,s]=b.useState(null),[i,o]=b.useState(!1),[a,l]=b.useState(!0);b.useEffect(()=>{const{data:{subscription:f}}=br.auth.onAuthStateChange((w,p)=>
261{s(p),n((p==null?void 0:p.user)??null),p!=null&&p.user?setTimeout(()=>{c(p.user.id)},0):o(!1)});return br.auth.getSession().then(({data:{session:w}})=>{s(w),n((w==null?void 0:w.user)??null),w!=null&&w.user&&c(w.user.id),l(!1)}),()=>f.unsubscribe()},[]);const c=async f=>{try{const{data:w,error:p}=await br.from("user_roles").select("role").eq("user_id",f).eq("role","admin").maybeSingle();o(!!(!p&&w))}catch{o(!1)}},u=async(f,w)=>{const{error:p}=await br.auth.signInWithPassword({email:f,password:w});return{error:p}},d=async(f,w)=>{const p=`${window.location.origin}/`,{error:x}=await br.auth.signUp({email:f,password:w,options:{emailRedirectTo:p}});return{error:x}},h=async()=>{await br.auth.signOut(),n(null),s(null),o(!1)};return g.jsx(O1.Provider,{value:{user:e,session:r,isAdmin:i,isLoading:a,signIn:u,signUp:d,signOut:h},children:t})}function nD(){const t=b.useContext(O1);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}function rD(){const{pathname:t}=ir();return b.useEffect(()=>{window.scrollTo(0,0)},[t]),null}const dm=b.createContext({});function hm(t){const e=b.useRef(null);return e.current===null&&(e.current=t()),e.current}const j1=typeof window<"u",N1=j1?b.useLayoutEffect:b.useEffect,Su=b.createContext(null);function fm(t,e){t.indexOf(e)===-1&&t.push(e)}function pm(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const $n=(t,e,n)=>n>e?e:n<t?t:n;let ku=()=>{},Yi=()=>{};const tr={},I1=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function D1(t){return typeof t=="object"&&t!==null}const L1=t=>/^0[^.\s]+$/u.test(t);function mm(t){let e;return()=>(e===void 0&&(e=t()),e)}const Yt=t=>t,sD=(t,e)=>n=>e(t(n)),qa=(...t)=>t.reduce(sD),Pa=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class gm{constructor(){this.subscriptions=[]}add(e){return fm(this.subscriptions,e),()=>pm(this.subscriptions,e)}notify(e,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Nn=t=>t*1e3,qt=t=>t/1e3;function M1(t,e){return e?t*(1e3/e):0}const $1=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,iD=1e-7,oD=12;function aD(t,e,n,r,s){let i,o,a=0;do o=e+(n-e)/2,i=$1(o,r,s)-t,i>0?n=o:e=o;while(Math.abs(i)>iD&&++a<oD);return o}function Ga(t,e,n,r){if(t===e&&n===r)return Yt;const s=i=>aD(i,0,1,t,n);return i=>i===0||i===1?i:$1(s(i),e,r)}const V1=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,U1=t=>e=>1-t(1-e),F1=Ga(.33,1.53,.69,.99),ym=U1(F1),B1=V1(ym),z1=t=>(t*=2)<1?.5*ym(t):.5*(2-Math.pow(2,-10*(t-1))),vm=t=>1-Math.sin(Math.acos(t)),W1=U1(vm),H1=V1(vm),lD=Ga(.42,0,1,1),cD=Ga(0,0,.58,1),K1=Ga(.42,0,.58,1),uD=t=>Array.isArray(t)&&typeof t[0]!="number",q1=t=>Array.isArray(t)&&typeof t[0]=="number",Sv={linear:Yt,easeIn:lD,easeInOut:K1,easeOut:cD,circIn:vm,circInOut:H1,circOut:W1,backIn:ym,backInOut:B1,backOut:F1,anticipate:z1},dD=t=>typeof t=="string",kv=t=>{if(q1(t)){Yi(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,r,s]=t;return Ga(e,n,r,s)}else if(dD(t))return Yi(Sv[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),Sv[t];return t},Cl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Ev={value:null,addProjectionMetrics:null};function hD(t,e){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(d){o.has(d)&&(u.schedule(d),t()),l++,d(a)}const u={schedule:(d,h=!1,f=!1)=>{const p=f&&s?n:r;return h&&o.add(d),p.has(d)||p.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(c),e&&Ev.value&&Ev.value.frameloop[e].push(l),l=0,n.clear(),s=!1,i&&(i=!1,u.process(d))}};return u}const fD=40;function G1(t,e){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Cl.reduce((v,_)=>(v[_]=hD(i,e?_:void 0),v),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:f,postRender:w}=o,p=()=>{const v=tr.useManualTiming?s.timestamp:performance.now();n=!1,tr.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,fD),1)),s.timestamp=v,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),h.process(s),f.process(s),w.process(s),s.isProcessing=!1,n&&e&&(r=!1,t(p))},x=()=>{n=!0,r=!0,s.isProcessing||t(p)};return{schedule:Cl.reduce((v,_)=>{const S=o[_];return v[_]=(k,E=!1,T=!1)=>(n||x(),S.schedule(k,E,T)),v},{}),cancel:v=>{for(let _=0;_<Cl.length;_++)o[Cl[_]].cancel(v)},state:s,steps:o}}const{schedule:ke,cancel:Zr,state:tt,steps:Ed}=G1(typeof requestAnimationFrame<"u"?requestAnimationFrame:Yt,!0);let Kl;function pD(){Kl=void 0}const mt={now:()=>(Kl===void 0&&mt.set(tt.isProcessing||tr.useManualTiming?tt.timestamp:performance.now()),Kl),set:t=>
vendor: 25,205 bytes, line 261
261{Kl=t,queueMicrotask(pD)}},Y1=t=>e=>typeof e=="string"&&e.startsWith(t),Q1=Y1("--"),mD=Y1("var(--"),wm=t=>mD(t)?gD.test(t.split("/*")[0].trim()):!1,gD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Tv(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const ho={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Aa={...ho,transform:t=>$n(0,1,t)},Pl={...ho,default:1},Yo=t=>Math.round(t*1e5)/1e5,xm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yD(t){return t==null}const vD=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bm=(t,e)=>n=>!!(typeof n=="string"&&vD.test(n)&&n.startsWith(t)||e&&!yD(n)&&Object.prototype.hasOwnProperty.call(n,e)),Z1=(t,e,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(xm);return{[t]:parseFloat(s),[e]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},wD=t=>$n(0,255,t),Td={...ho,transform:t=>Math.round(wD(t))},_s={test:bm("rgb","red"),parse:Z1("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Td.transform(t)+", "+Td.transform(e)+", "+Td.transform(n)+", "+Yo(Aa.transform(r))+")"};function xD(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const uf={test:bm("#"),parse:xD,transform:_s.transform},Ya=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),yr=Ya("deg"),In=Ya("%"),U=Ya("px"),bD=Ya("vh"),_D=Ya("vw"),Cv={...In,parse:t=>In.parse(t)/100,transform:t=>In.transform(t*100)},vi={test:bm("hsl","hue"),parse:Z1("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+In.transform(Yo(e))+", "+In.transform(Yo(n))+", "+Yo(Aa.transform(r))+")"},Be={test:t=>_s.test(t)||uf.test(t)||vi.test(t),parse:t=>_s.test(t)?_s.parse(t):vi.test(t)?vi.parse(t):uf.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?_s.transform(t):vi.transform(t),getAnimatableNone:t=>{const e=Be.parse(t);return e.alpha=0,Be.transform(e)}},SD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kD(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(xm))==null?void 0:e.length)||0)+(((n=t.match(SD))==null?void 0:n.length)||0)>0}const J1="number",X1="color",ED="var",TD="var(",Pv="${}",CD=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ra(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=e.replace(CD,l=>(Be.test(l)?(r.color.push(i),s.push(X1),n.push(Be.parse(l))):l.startsWith(TD)?(r.var.push(i),s.push(ED),n.push(l)):(r.number.push(i),s.push(J1),n.push(parseFloat(l))),++i,Pv)).split(Pv);return{values:n,split:a,indexes:r,types:s}}function eS(t){return Ra(t).values}function tS(t){const{split:e,types:n}=Ra(t),r=e.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=e[o],s[o]!==void 0){const a=n[o];a===J1?i+=Yo(s[o]):a===X1?i+=Be.transform(s[o]):i+=s[o]}return i}}const PD=t=>typeof t=="number"?0:Be.test(t)?Be.getAnimatableNone(t):t;function AD(t){const e=eS(t);return tS(t)(e.map(PD))}const Jr={test:kD,parse:eS,createTransformer:tS,getAnimatableNone:AD};function Cd(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function RD({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let s=0,i=0,o=0;if(!e)s=i=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;s=Cd(l,a,t+1/3),i=Cd(l,a,t),o=Cd(l,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function jc(t,e){return n=>n>0?e:t}const Re=(t,e,n)=>t+(e-t)*n,Pd=(t,e,n)=>{const r=t*t,s=n*(e*e-r)+r;return s<0?0:Math.sqrt(s)},OD=[uf,_s,vi],jD=t=>OD.find(e=>e.test(t));function Av(t){const e=jD(t);if(ku(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===vi&&(n=RD(n)),n}const Rv=(t,e)=>{const n=Av(t),r=Av(e);if(!n||!r)return jc(t,e);const s={...n};return i=>(s.red=Pd(n.red,r.red,i),s.green=Pd(n.green,r.green,i),s.blue=Pd(n.blue,r.blue,i),s.alpha=Re(n.alpha,r.alpha,i),_s.transform(s))},df=new Set(["none","hidden"]);function ND(t,e){return df.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ID(t,e){return n=>Re(t,e,n)}function _m(t){return typeof t=="number"?ID:typeof t=="string"?wm(t)?jc:Be.test(t)?Rv:MD:Array.isArray(t)?nS:typeof t=="object"?Be.test(t)?Rv:DD:jc}function nS(t,e){const n=[...t],r=n.length,s=t.map((i,o)=>_m(i)(i,e[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function DD(t,e){const n={...t,...e},r={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(r[s]=_m(t[s])(t[s],e[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function LD(t,e){const n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const i=e.types[s],o=t.indexes[i][r[i]],a=t.values[o]??0;n[s]=a,r[i]++}return n}const MD=(t,e)=>{const n=Jr.createTransformer(e),r=Ra(t),s=Ra(e);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?df.has(t)&&!s.values.length||df.has(e)&&!r.values.length?ND(t,e):qa(nS(LD(r,s),s.values),n):(ku(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),jc(t,e))};function rS(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Re(t,e,n):_m(t)(t,e)}const $D=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>ke.update(e,n),stop:()=>Zr(e),now:()=>tt.isProcessing?tt.timestamp:mt.now()}},sS=(t,e,n=10)=>{let r="";const s=Math.max(Math.round(e/n),2);for(let i=0;i<s;i++)r+=Math.round(t(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Nc=2e4;function Sm(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Nc;)e+=n,r=t.next(e);return e>=Nc?1/0:e}function VD(t,e=100,n){const r=n({...t,keyframes:[0,e]}),s=Math.min(Sm(r),Nc);return{type:"keyframes",ease:i=>r.next(s*i).value/e,duration:qt(s)}}const UD=5;function iS(t,e,n){const r=Math.max(e-UD,0);return M1(n-t(r),e-r)}const Pe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ad=.001;function FD({duration:t=Pe.duration,bounce:e=Pe.bounce,velocity:n=Pe.velocity,mass:r=Pe.mass}){let s,i;ku(t<=Nn(Pe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=$n(Pe.minDamping,Pe.maxDamping,o),t=$n(Pe.minDuration,Pe.maxDuration,qt(t)),o<1?(s=c=>{const u=c*o,d=u*t,h=u-n,f=hf(c,o),w=Math.exp(-d);return Ad-h/f*w},i=c=>{const d=c*o*t,h=d*n+n,f=Math.pow(o,2)*Math.pow(c,2)*t,w=Math.exp(-d),p=hf(Math.pow(c,2),o);return(-s(c)+Ad>0?-1:1)*((h-f)*w)/p}):(s=c=>{const u=Math.exp(-c*t),d=(c-n)*t+1;return-Ad+u*d},i=c=>{const u=Math.exp(-c*t),d=(n-c)*(t*t);return u*d});const a=5/t,l=zD(s,i,a);if(t=Nn(t),isNaN(l))return{stiffness:Pe.stiffness,damping:Pe.damping,duration:t};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:t}}}const BD=12;function zD(t,e,n){let r=n;for(let s=1;s<BD;s++)r=r-t(r)/e(r);return r}function hf(t,e){return t*Math.sqrt(1-e*e)}const WD=["duration","bounce"],HD=["stiffness","damping","mass"];function Ov(t,e){return e.some(n=>t[n]!==void 0)}function KD(t){let e={velocity:Pe.velocity,stiffness:Pe.stiffness,damping:Pe.damping,mass:Pe.mass,isResolvedFromDuration:!1,...t};if(!Ov(t,HD)&&Ov(t,WD))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*$n(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:Pe.mass,stiffness:s,damping:i}}else{const n=FD(t);e={...e,...n,mass:Pe.mass},e.isResolvedFromDuration=!0}return e}function Ic(t=Pe.visualDuration,e=Pe.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:f}=KD({...n,velocity:-qt(n.velocity||0)}),w=h||0,p=c/(2*Math.sqrt(l*u)),x=o-i,y=qt(Math.sqrt(l/u)),m=Math.abs(x)<5;r||(r=m?Pe.restSpeed.granular:Pe.restSpeed.default),s||(s=m?Pe.restDelta.granular:Pe.restDelta.default);let v;if(p<1){const S=hf(y,p);v=k=>{const E=Math.exp(-p*y*k);return o-E*((w+p*y*x)/S*Math.sin(S*k)+x*Math.cos(S*k))}}else if(p===1)v=S=>o-Math.exp(-y*S)*(x+(w+y*x)*S);else{const S=y*Math.sqrt(p*p-1);v=k=>{const E=Math.exp(-p*y*k),T=Math.min(S*k,300);return o-E*((w+p*y*x)*Math.sinh(T)+S*x*Math.cosh(T))/S}}const _={calculatedDuration:f&&d||null,next:S=>{const k=v(S);if(f)a.done=S>=d;else{let E=S===0?w:0;p<1&&(E=S===0?Nn(w):iS(v,S,k));const T=Math.abs(E)<=r,P=Math.abs(o-k)<=s;a.done=T&&P}return a.value=a.done?o:k,a},toString:()=>{const S=Math.min(Sm(_),Nc),k=sS(E=>_.next(S*E).value,S,30);return S+"ms "+k},toTransition:()=>{}};return _}Ic.applyToOptions=t=>{const e=VD(t,100,Ic);return t.ease=e.ease,t.duration=Nn(e.duration),t.type="keyframes",t};function ff({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=t[0],h={done:!1,value:d},f=T=>a!==void 0&&T<a||l!==void 0&&T>l,w=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let p=n*e;const x=d+p,y=o===void 0?x:o(x);y!==x&&(p=y-d);const m=T=>-p*Math.exp(-T/r),v=T=>y+m(T),_=T=>{const P=m(T),O=v(T);h.done=Math.abs(P)<=c,h.value=h.done?y:O};let S,k;const E=T=>{f(h.value)&&(S=T,k=Ic({keyframes:[h.value,w(h.value)],velocity:iS(v,T,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:T=>{let P=!1;return!k&&S===void 0&&(P=!0,_(T),E(T)),S!==void 0&&T>=S?k.next(T-S):(!P&&_(T),h)}}}function qD(t,e,n){const r=[],s=n||tr.mix||rS,i=t.length-1;for(let o=0;o<i;o++){let a=s(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||Yt:e;a=qa(l,a)}r.push(a)}return r}function GD(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const i=t.length;if(Yi(i===e.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>e[0];if(i===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=qD(e,r,s),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let d=0;if(l>1)for(;d<t.length-2&&!(u<t[d+1]);d++);const h=Pa(t[d],t[d+1],u);return a[d](h)};return n?u=>c($n(t[0],t[i-1],u)):c}function YD(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const s=Pa(0,e,r);t.push(Re(n,1,s))}}function QD(t){const e=[0];return YD(e,t.length-1),e}function ZD(t,e){return t.map(n=>n*e)}function JD(t,e){return t.map(()=>e||K1).splice(0,t.length-1)}function Qo({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const s=uD(r)?r.map(kv):kv(r),i={done:!1,value:e[0]},o=ZD(n&&n.length===e.length?n:QD(e),t),a=GD(o,e,{ease:Array.isArray(s)?s:JD(e,s)});return{calculatedDuration:t,next:l=>(i.value=a(l),i.done=l>=t,i)}}const XD=t=>t!==null;function km(t,{repeat:e,repeatType:n="loop"},r,s=1){const i=t.filter(XD),a=s<0||e&&n!=="loop"&&e%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const eL={decay:ff,inertia:ff,tween:Qo,keyframes:Qo,spring:Ic};function oS(t){typeof t.type=="string"&&(t.type=eL[t.type])}class Em{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const tL=t=>t/100;class Tm extends Em{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==mt.now()&&this.tick(mt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;oS(e);const{type:n=Qo,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=e;let{keyframes:a}=e;const l=n||Qo;l!==Qo&&typeof a[0]!="number"&&(this.mixKeyframes=qa(tL,rS(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Sm(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:f,type:w,onUpdate:p,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,_=r;if(d){const T=Math.min(this.currentTime,s)/a;let P=Math.floor(T),O=T%1;!O&&T>=1&&(O=1),O===1&&P--,P=Math.min(P,d+1),!!(P%2)&&(h==="reverse"?(O=1-O,f&&(O-=f/a)):h==="mirror"&&(_=o)),v=$n(0,1,O)*a}const S=m?{done:!1,value:u[0]}:_.next(v);i&&(S.value=i(S.value));let{done:k}=S;!m&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return E&&w!==ff&&(S.value=km(u,this.options,x,this.speed)),p&&p(S.value),E&&this.finish(),S}then(e,n){return this.finished.then(e,n)}get duration(){return qt(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+qt(e)}get time(){return qt(this.currentTime)}set time(e){var n;e=Nn(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(mt.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=qt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:e=$D,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(mt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function nL(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Ss=t=>t*180/Math.PI,pf=t=>{const e=Ss(Math.atan2(t[1],t[0]));return mf(e)},rL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:pf,rotateZ:pf,skewX:t=>Ss(Math.atan(t[1])),skewY:t=>Ss(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},mf=t=>(t=t%360,t<0&&(t+=360),t),jv=pf,Nv=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Iv=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),sL={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Nv,scaleY:Iv,scale:t=>(Nv(t)+Iv(t))/2,rotateX:t=>mf(Ss(Math.atan2(t[6],t[5]))),rotateY:t=>mf(Ss(Math.atan2(-t[2],t[0]))),rotateZ:jv,rotate:jv,skewX:t=>Ss(Math.atan(t[4])),skewY:t=>Ss(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function gf(t){return t.includes("scale")?1:0}function yf(t,e){if(!t||t==="none")return gf(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=sL,s=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=rL,s=a}if(!s)return gf(e);const i=r[e],o=s[1].split(",").map(oL);return typeof i=="function"?i(o):o[i]}const iL=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return yf(n,e)};function oL(t){return parseFloat(t.trim())}const fo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],po=new Set(fo),Dv=t=>t===ho||t===U,aL=new Set(["x","y","z"]),lL=fo.filter(t=>!aL.has(t));function cL(t){const e=[];return lL.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Ir={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>yf(e,"x"),y:(t,{transform:e})=>yf(e,"y")};Ir.translateX=Ir.x;Ir.translateY=Ir.y;const js=new Set;let vf=!1,wf=!1,xf=!1;function aS(){if(wf){const t=Array.from(js).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const s=cL(r);s.length&&(n.set(r,s),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}wf=!1,vf=!1,js.forEach(t=>t.complete(xf)),js.clear()}function lS(){js.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(wf=!0)})}function uL(){xf=!0,lS(),aS(),xf=!1}class Cm{constructor(e,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(js.add(this),vf||(vf=!0,ke.read(lS),ke.resolveKeyframes(aS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:s}=this;if(e[0]===null){const i=s==null?void 0:s.get(),o=e[e.length-1];if(i!==void 0)e[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),s&&i===void 0&&s.set(e[0])}nL(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),js.delete(this)}cancel(){this.state==="scheduled"&&(js.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const dL=t=>t.startsWith("--");function hL(t,e,n){dL(e)?t.style.setProperty(e,n):t.style[e]=n}const fL=mm(()=>window.ScrollTimeline!==void 0),pL={};function mL(t,e){const n=mm(t);return()=>pL[e]??n()}const cS=mL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Io=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Lv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Io([0,.65,.55,1]),circOut:Io([.55,0,1,.45]),backIn:Io([.31,.01,.66,-.59]),backOut:Io([.33,1.53,.69,.99])};function uS(t,e){if(t)return typeof t=="function"?cS()?sS(t,e):"ease-out":q1(t)?Io(t):Array.isArray(t)?t.map(n=>uS(n,e)||Lv.easeOut):Lv[t]}function gL(t,e,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const d=uS(a,s);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),t.animate(u,h)}function dS(t){return typeof t=="function"&&"applyToOptions"in t}function yL({type:t,...e}){return dS(t)&&cS()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class vL extends Em{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,Yi(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=yL(e);this.animation=gL(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=km(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):hL(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return qt(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+qt(e)}get time(){return qt(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Nn(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&fL()?(this.animation.timeline=e,Yt):n(this)}}const hS={anticipate:z1,backInOut:B1,circInOut:H1};function wL(t){return t in hS}function xL(t){typeof t.ease=="string"&&wL(t.ease)&&(t.ease=hS[t.ease])}const Rd=10;class bL extends vL{constructor(e){xL(e),oS(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Tm({...o,autoplay:!1}),l=Math.max(Rd,mt.now()-this.startTime),c=$n(0,Rd,l-Rd);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const Mv=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Jr.test(t)||t==="0")&&!t.startsWith("url("));function _L(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function SL(t,e,n,r){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const i=t[t.length-1],o=Mv(s,e),a=Mv(i,e);return ku(o===a,`You are trying to animate ${e} from "${s}" to "${i}". "${o?i:s}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:_L(t)||(n==="spring"||dS(n))&&r}function bf(t){t.duration=0,t.type="keyframes"}const kL=new Set(["opacity","clipPath","filter","transform"]),EL=mm(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function TL(t){var u;const{motionValue:e,name:n,repeatDelay:r,repeatType:s,damping:i,type:o}=t;if(!(((u=e==null?void 0:e.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return EL()&&n&&kL.has(n)&&(n!=="transform"||!c)&&!l&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const CL=40;
261class PL extends Em{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var w;super(),this.stop=()=>{var p,x;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=mt.now();const h={autoplay:e,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},f=(u==null?void 0:u.KeyframeResolver)||Cm;this.keyframeResolver=new f(a,(p,x,y)=>this.onKeyframesResolved(p,x,h,!y),l,c,u),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(e,n,r,s){var x,y;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=mt.now(),SL(e,i,o,a)||((tr.instantAnimations||!l)&&(u==null||u(km(e,r,n))),e[0]=e[e.length-1],bf(r),r.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>CL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},f=!c&&TL(h),w=(y=(x=h.motionValue)==null?void 0:x.owner)==null?void 0:y.current,p=f?new bL({...h,element:w}):new Tm(h);p.finished.then(()=>{this.notifyFinished()}).catch(Yt),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),uL()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function fS(t,e,n,r=0,s=1){const i=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),o=t.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const AL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function RL(t){const e=AL.exec(t);if(!e)return[,];const[,n,r,s]=e;return[`--${n??r}`,s]}const OL=4;function pS(t,e,n=1){Yi(n<=OL,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,s]=RL(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);if(i){const o=i.trim();return I1(o)?parseFloat(o):o}return wm(s)?pS(s,e,n+1):s}const jL={type:"spring",stiffness:500,damping:25,restSpeed:10},NL=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),IL={type:"keyframes",duration:.8},DL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LL=(t,{keyframes:e})=>e.length>2?IL:po.has(t)?t.startsWith("scale")?NL(e[1]):jL:DL,ML=t=>t!==null;function $L(t,{repeat:e,repeatType:n="loop"},r){const s=t.filter(ML),i=e&&n!=="loop"&&e%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}function Pm(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}function VL({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Am=(t,e,n,r={},s,i)=>o=>{const a=Pm(r,t)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Nn(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:i?void 0:s};VL(a)||Object.assign(u,LL(t,u)),u.duration&&(u.duration=Nn(u.duration)),u.repeatDelay&&(u.repeatDelay=Nn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(bf(u),u.delay===0&&(
vendor: 47,215 bytes, line 261
261d=!0)),(tr.instantAnimations||tr.skipAnimations)&&(d=!0,bf(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&e.get()!==void 0){const h=$L(u.keyframes,a);if(h!==void 0){ke.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Tm(u):new PL(u)};function $v(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function Rm(t,e,n,r){if(typeof e=="function"){const[s,i]=$v(r);e=e(n!==void 0?n:t.custom,s,i)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,i]=$v(r);e=e(n!==void 0?n:t.custom,s,i)}return e}function Oi(t,e,n){const r=t.getProps();return Rm(r,e,n!==void 0?n:r.custom,t)}const mS=new Set(["width","height","top","left","right","bottom",...fo]),Vv=30,UL=t=>!isNaN(parseFloat(t));class FL{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=mt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=mt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=UL(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new gm);const r=this.events[e].add(n);return e==="change"?()=>{r(),ke.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=mt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Vv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Vv);return M1(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qi(t,e){return new FL(t,e)}const _f=t=>Array.isArray(t);function BL(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Qi(n))}function zL(t){return _f(t)?t[t.length-1]||0:t}function WL(t,e){const n=Oi(t,e);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=zL(i[o]);BL(t,o,a)}}const ut=t=>!!(t&&t.getVelocity);function HL(t){return!!(ut(t)&&t.add)}function Sf(t,e){const n=t.getValue("willChange");if(HL(n))return n.add(e);if(!n&&tr.WillChange){const r=new tr.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function Om(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const KL="framerAppearId",gS="data-"+Om(KL);function yS(t){return t.props[gS]}function qL({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function vS(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:o,...a}=e;const l=i==null?void 0:i.reduceMotion;r&&(i=r);const c=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const d in a){const h=t.getValue(d,t.latestValues[d]??null),f=a[d];if(f===void 0||u&&qL(u,d))continue;const w={delay:n,...Pm(i||{},d)},p=h.get();if(p!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===p&&!w.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const v=yS(t);if(v){const _=window.MotionHandoffAnimation(v,d,ke);_!==null&&(w.startTime=_,x=!0)}}Sf(t,d);const y=l??t.shouldReduceMotion;h.start(Am(d,h,f,y&&mS.has(d)?{type:!1}:w,t,x));const m=h.animation;m&&c.push(m)}return o&&Promise.all(c).then(()=>{ke.update(()=>{o&&WL(t,o)})}),c}function kf(t,e,n={}){var l;const r=Oi(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(vS(t,r,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=s;return GL(t,e,c,u,d,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,u]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>u())}else return Promise.all([i(),o(n.delay)])}function GL(t,e,n=0,r=0,s=0,i=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(kf(l,e,{...o,delay:n+(typeof r=="function"?0:r)+fS(t.variantChildren,l,r,s,i)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function YL(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const s=e.map(i=>kf(t,i,n));r=Promise.all(s)}else if(typeof e=="string")r=kf(t,e,n);else{const s=typeof e=="function"?Oi(t,e,n.custom):e;r=Promise.all(vS(t,s,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const QL={test:t=>t==="auto",parse:t=>t},wS=t=>e=>e.test(t),xS=[ho,U,In,yr,_D,bD,QL],Uv=t=>xS.find(wS(t));function ZL(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||L1(t):!0}const JL=new Set(["brightness","contrast","saturate","opacity"]);function XL(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(xm)||[];if(!r)return t;const s=n.replace(r,"");let i=JL.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+s+")"}const eM=/\b([a-z-]*)\(.*?\)/gu,Ef={...Jr,getAnimatableNone:t=>{const e=t.match(eM);return e?e.map(XL).join(" "):t}},Fv={...ho,transform:Math.round},tM={rotate:yr,rotateX:yr,rotateY:yr,rotateZ:yr,scale:Pl,scaleX:Pl,scaleY:Pl,scaleZ:Pl,skew:yr,skewX:yr,skewY:yr,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:Aa,originX:Cv,originY:Cv,originZ:U},jm={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,inset:U,insetBlock:U,insetBlockStart:U,insetBlockEnd:U,insetInline:U,insetInlineStart:U,insetInlineEnd:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockStart:U,paddingBlockEnd:U,paddingInline:U,paddingInlineStart:U,paddingInlineEnd:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockStart:U,marginBlockEnd:U,marginInline:U,marginInlineStart:U,marginInlineEnd:U,fontSize:U,backgroundPositionX:U,backgroundPositionY:U,...tM,zIndex:Fv,fillOpacity:Aa,strokeOpacity:Aa,numOctaves:Fv},nM={...jm,color:Be,backgroundColor:Be,outlineColor:Be,fill:Be,stroke:Be,borderColor:Be,borderTopColor:Be,borderRightColor:Be,borderBottomColor:Be,borderLeftColor:Be,filter:Ef,WebkitFilter:Ef},bS=t=>nM[t];function _S(t,e){let n=bS(t);return n!==Ef&&(n=Jr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const rM=new Set(["auto","none","0"]);function sM(t,e,n){let r=0,s;for(;r<t.length&&!s;){const i=t[r];typeof i=="string"&&!rM.has(i)&&Ra(i).values.length&&(s=t[r]),r++}if(s&&n)for(const i of e)t[i]=_S(n,s)}class iM extends Cm{constructor(e,n,r,s,i){super(e,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let d=e[u];if(typeof d=="string"&&(d=d.trim(),wm(d))){const h=pS(d,n.current);h!==void 0&&(e[u]=h),u===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!mS.has(r)||e.length!==2)return;const[s,i]=e,o=Uv(s),a=Uv(i),l=Tv(s),c=Tv(i);if(l!==c&&Ir[r]){this.needsMeasurement=!0;return}if(o!==a)if(Dv(o)&&Dv(a))for(let u=0;u<e.length;u++){const d=e[u];typeof d=="string"&&(e[u]=parseFloat(d))}else Ir[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let s=0;s<e.length;s++)(e[s]===null||ZL(e[s]))&&r.push(s);r.length&&sM(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ir[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=Ir[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{e.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function oM(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){const s=document.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(r=>r!=null)}const SS=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Tf(t){return D1(t)&&"offsetHeight"in t}const{schedule:Nm,cancel:lF}=G1(queueMicrotask,!1),ln={x:!1,y:!1};function kS(){return ln.x||ln.y}function aM(t){return t==="x"||t==="y"?ln[t]?null:(ln[t]=!0,()=>{ln[t]=!1}):ln.x||ln.y?null:(ln.x=ln.y=!0,()=>{ln.x=ln.y=!1})}function ES(t,e){const n=oM(t),r=new AbortController,s={passive:!0,...e,signal:r.signal};return[n,s,()=>r.abort()]}function Bv(t){return!(t.pointerType==="touch"||kS())}function lM(t,e,n={}){const[r,s,i]=ES(t,n),o=a=>{if(!Bv(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=d=>{Bv(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}const TS=(t,e)=>e?t===e?!0:TS(t,e.parentElement):!1,Im=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,cM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function CS(t){return cM.has(t.tagName)||t.isContentEditable===!0}const ql=new WeakSet;function zv(t){return e=>{e.key==="Enter"&&t(e)}}function Od(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const uM=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=zv(()=>{if(ql.has(n))return;Od(n,"down");const s=zv(()=>{Od(n,"up")}),i=()=>Od(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",i,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Wv(t){return Im(t)&&!kS()}function dM(t,e,n={}){const[r,s,i]=ES(t,n),o=a=>{const l=a.currentTarget;if(!Wv(a))return;ql.add(l);const c=e(l,a),u=(f,w)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),ql.has(l)&&ql.delete(l),Wv(f)&&typeof c=="function"&&c(f,{success:w})},d=f=>{u(f,l===window||l===document||n.useGlobalTarget||TS(l,f.target))},h=f=>{u(f,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",h,s)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),Tf(a)&&(a.addEventListener("focus",c=>uM(c,s)),!CS(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function PS(t){return D1(t)&&"ownerSVGElement"in t}function hM(t){return PS(t)&&t.tagName==="svg"}const fM=[...xS,Be,Jr],pM=t=>fM.find(wS(t)),Hv=()=>({translate:0,scale:1,origin:0,originPoint:0}),wi=()=>({x:Hv(),y:Hv()}),Kv=()=>({min:0,max:0}),Ke=()=>({x:Kv(),y:Kv()}),Dc={current:null},Dm={current:!1},mM=typeof window<"u";function AS(){if(Dm.current=!0,!!mM)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Dc.current=t.matches;t.addEventListener("change",e),e()}else Dc.current=!1}const gM=new WeakMap;function Eu(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Oa(t){return typeof t=="string"||Array.isArray(t)}const Lm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mm=["initial",...Lm];function Tu(t){return Eu(t.animate)||Mm.some(e=>Oa(t[e]))}function RS(t){return!!(Tu(t)||t.variants)}function yM(t,e,n){for(const r in e){const s=e[r],i=n[r];if(ut(s))t.addValue(r,s);else if(ut(i))t.addValue(r,Qi(s,{owner:t}));else if(i!==s)if(t.hasValue(r)){const o=t.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=t.getStaticValue(r);t.addValue(r,Qi(o!==void 0?o:s,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const qv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Lc={};function OS(t){Lc=t}function vM(){return Lc}class wM{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Cm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=mt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ke.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Tu(n),this.isVariantNode=RS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const f=d[h];l[h]!==void 0&&ut(f)&&f.set(l[h])}}mount(e){var n;this.current=e,gM.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,s)=>this.bindToMotionValue(s,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Dm.current||AS(),this.shouldReduceMotion=Dc.current),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),Zr(this.notifyUpdate),Zr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=po.has(e);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&ke.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Lc){const n=Lc[e];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[e]&&s&&r(this.props)&&(this.features[e]=new s(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ke()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<qv.length;r++){const s=qv[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=e[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=yM(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Qi(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(I1(r)||L1(r))?r=parseFloat(r):!pM(r)&&Jr.test(n)&&(r=_S(e,n)),this.setBaseTarget(e,ut(r)?r.get():r)),ut(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Rm(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[e])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!ut(s)?s:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new gm),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Nm.render(this.render)}}class jS extends wM{constructor(){super(...arguments),this.KeyframeResolver=iM}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const r=e.style;return r?r[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ut(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class is{constructor(e){this.isMounted=!1,this.node=e}update(){}}function NS({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function xM({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function bM(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function jd(t){return t===void 0||t===1}function Cf({scale:t,scaleX:e,scaleY:n}){return!jd(t)||!jd(e)||!jd(n)}function ms(t){return Cf(t)||IS(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function IS(t){return Gv(t.x)||Gv(t.y)}function Gv(t){return t&&t!=="0%"}function Mc(t,e,n){const r=t-n,s=e*r;return n+s}function Yv(t,e,n,r,s){return s!==void 0&&(t=Mc(t,s,r)),Mc(t,n,r)+e}function Pf(t,e=0,n=1,r,s){t.min=Yv(t.min,e,n,r,s),t.max=Yv(t.max,e,n,r,s)}function DS(t,{x:e,y:n}){Pf(t.x,e.translate,e.scale,e.originPoint),Pf(t.y,n.translate,n.scale,n.originPoint)}const Qv=.999999999999,Zv=1.0000000000001;function _M(t,e,n,r=!1){const s=n.length;if(!s)return;e.x=e.y=1;let i,o;for(let a=0;a<s;a++){i=n[a],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&bi(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,DS(t,o)),r&&ms(i.latestValues)&&bi(t,i.latestValues))}e.x<Zv&&e.x>Qv&&(e.x=1),e.y<Zv&&e.y>Qv&&(e.y=1)}function xi(t,e){t.min=t.min+e,t.max=t.max+e}function Jv(t,e,n,r,s=.5){const i=Re(t.min,t.max,s);Pf(t,e,n,i,r)}function bi(t,e){Jv(t.x,e.x,e.scaleX,e.scale,e.originX),Jv(t.y,e.y,e.scaleY,e.scale,e.originY)}function LS(t,e){return NS(bM(t.getBoundingClientRect(),e))}function SM(t,e,n){const r=LS(t,n),{scroll:s}=e;return s&&(xi(r.x,s.offset.x),xi(r.y,s.offset.y)),r}const kM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},EM=fo.length;function TM(t,e,n){let r="",s=!0;for(let i=0;i<EM;i++){const o=fo[i],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const c=parseFloat(a);l=o.startsWith("scale")?c===1:c===0}if(!l||n){const c=SS(a,jm[o]);if(!l){s=!1;const u=kM[o]||o;r+=`${u}(${c}) `}n&&(e[o]=c)}}return r=r.trim(),n?r=n(e,s?"":r):s&&(r="none"),r}function $m(t,e,n){const{style:r,vars:s,transformOrigin:i}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(po.has(l)){o=!0;continue}else if(Q1(l)){s[l]=c;continue}else{const u=SS(c,jm[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(e.transform||(o||n?r.transform=TM(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function MS(t,{style:e,vars:n},r,s){const i=t.style;let o;for(o in e)i[o]=e[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function Xv(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Co={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(U.test(t))t=parseFloat(t);else return t;const n=Xv(t,e.target.x),r=Xv(t,e.target.y);return`${n}% ${r}%`}},CM={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,s=Jr.parse(t);if(s.length>5)return r;const i=Jr.createTransformer(t),o=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+o]/=a,s[1+o]/=l;const c=Re(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},Af={borderRadius:{...Co,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Co,borderTopRightRadius:Co,borderBottomLeftRadius:Co,borderBottomRightRadius:Co,boxShadow:CM};function $S(t,{layout:e,layoutId:n}){return po.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Af[t]||t==="opacity")}function Vm(t,e,n){var o;const r=t.style,s=e==null?void 0:e.style,i={};if(!r)return i;for(const a in r)(ut(r[a])||s&&ut(s[a])||$S(a,t)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function PM(t){return window.getComputedStyle(t)}class AM extends jS{constructor(){super(...arguments),this.type="html",this.renderInstance=MS}readValueFromInstance(e,n){var r;if(po.has(n))return(r=this.projection)!=null&&r.isProjecting?gf(n):iL(e,n);{const s=PM(e),i=(Q1(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return LS(e,n)}build(e,n,r){$m(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return Vm(e,n,r)}}const RM={offset:"stroke-dashoffset",array:"stroke-dasharray"},OM={offset:"strokeDashoffset",array:"strokeDasharray"};function jM(t,e,n=1,r=0,s=!0){t.pathLength=1;const i=s?RM:OM;t[i.offset]=`${-r}`,t[i.array]=`${e} ${n}`}const NM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function VS(t,{attrX:e,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if($m(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:h}=t;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const f of NM)d[f]!==void 0&&(h[f]=d[f],delete d[f]);e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&jM(d,s,i,o,!1)}const US=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),FS=t=>typeof t=="string"&&t.toLowerCase()==="svg";function IM(t,e,n,r){MS(t,e,void 0,r);for(const s in e.attrs)t.setAttribute(US.has(s)?s:Om(s),e.attrs[s])}function BS(t,e,n){const r=Vm(t,e,n);for(const s in t)if(ut(t[s])||ut(e[s])){const i=fo.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=t[s]}return r}class DM extends jS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ke}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(po.has(n)){const r=bS(n);return r&&r.default||0}return n=US.has(n)?n:Om(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return BS(e,n,r)}build(e,n,r){VS(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,s){IM(e,n,r,s)}mount(e){this.isSVGTag=FS(e.tagName),super.mount(e)}}const LM=Mm.length;function zS(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?zS(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<LM;n++){const r=Mm[n],s=t.props[r];(Oa(s)||s===!1)&&(e[r]=s)}return e}function WS(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const MM=[...Lm].reverse(),$M=Lm.length;function VM(t){return e=>Promise.all(e.map(({animation:n,options:r})=>YL(t,n,r)))}function UM(t){let e=VM(t),n=e0(),r=!0;const s=l=>(c,u)=>{var h;const d=Oi(t,u,l==="exit"?(h=t.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:f,transitionEnd:w,...p}=d;c={...c,...p,...w}}return c};function i(l){e=l(t)}function o(l){const{props:c}=t,u=zS(t.parent)||{},d=[],h=new Set;let f={},w=1/0;for(let x=0;x<$M;x++){const y=MM[x],m=n[y],v=c[y]!==void 0?c[y]:u[y],_=Oa(v),S=y===l?m.isActive:null;S===!1&&(w=x);let k=v===u[y]&&v!==c[y]&&_;if(k&&r&&t.manuallyAnimateOnMount&&(k=!1),m.protectedKeys={...f},!m.isActive&&S===null||!v&&!m.prevProp||Eu(v)||typeof v=="boolean")continue;const E=FM(m.prevProp,v);let T=E||y===l&&m.isActive&&!k&&_||x>w&&_,P=!1;const O=Array.isArray(v)?v:[v];let B=O.reduce(s(y),{});S===!1&&(B={});const{prevResolvedValues:D={}}=m,Y={...D,...B},L=z=>{T=!0,h.has(z)&&(P=!0,h.delete(z)),m.needsAnimating[z]=!0;const C=t.getValue(z);C&&(C.liveStyle=!1)};for(const z in Y){const C=B[z],R=D[z];if(f.hasOwnProperty(z))continue;let M=!1;_f(C)&&_f(R)?M=!WS(C,R):M=C!==R,M?C!=null?L(z):h.add(z):C!==void 0&&h.has(z)?L(z):m.protectedKeys[z]=!0}m.prevProp=v,m.prevResolvedValues=B,m.isActive&&(f={...f,...B}),r&&t.blockInitialAnimation&&(T=!1);const re=k&&E;T&&(!re||P)&&d.push(...O.map(z=>{const C={type:y};if(typeof z=="string"&&r&&!re&&t.manuallyAnimateOnMount&&t.parent){const{parent:R}=t,M=Oi(R,z);if(R.enteringChildren&&M){const{delayChildren:Z}=M.transition||{};C.delay=fS(R.enteringChildren,t,Z)}}return{animation:z,options:C}}))}if(h.size){const x={};if(typeof c.initial!="boolean"){const y=Oi(t,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(x.transition=y.transition)}h.forEach(y=>{const m=t.getBaseTarget(y),v=t.getValue(y);v&&(v.liveStyle=!0),x[y]=m??null}),d.push({animation:x})}let p=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(p=!1),r=!1,p?e(d):Promise.resolve()}function a(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=t.variantChildren)==null||d.forEach(h=>{var f;return(f=h.animationState)==null?void 0:f.setActive(l,c)}),n[l].isActive=c;const u=o(l);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=e0()}}}function FM(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!WS(e,t):!1}function ds(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function e0(){return{animate:ds(!0),whileInView:ds(),whileHover:ds(),whileTap:ds(),whileDrag:ds(),whileFocus:ds(),exit:ds()}}function t0(t,e){t.min=e.min,t.max=e.max}function on(t,e){t0(t.x,e.x),t0(t.y,e.y)}function n0(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const HS=1e-4,BM=1-HS,zM=1+HS,KS=.01,WM=0-KS,HM=0+KS;function gt(t){return t.max-t.min}function KM(t,e,n){return Math.abs(t-e)<=n}function r0(t,e,n,r=.5){t.origin=r,t.originPoint=Re(e.min,e.max,t.origin),t.scale=gt(n)/gt(e),t.translate=Re(n.min,n.max,t.origin)-t.originPoint,(t.scale>=BM&&t.scale<=zM||isNaN(t.scale))&&(t.scale=1),(t.translate>=WM&&t.translate<=HM||isNaN(t.translate))&&(t.translate=0)}function Zo(t,e,n,r){r0(t.x,e.x,n.x,r?r.originX:void 0),r0(t.y,e.y,n.y,r?r.originY:void 0)}function s0(t,e,n){t.min=n.min+e.min,t.max=t.min+gt(e)}function qM(t,e,n){s0(t.x,e.x,n.x),s0(t.y,e.y,n.y)}function i0(t,e,n){t.min=e.min-n.min,t.max=t.min+gt(e)}function $c(t,e,n){i0(t.x,e.x,n.x),i0(t.y,e.y,n.y)}function o0(t,e,n,r,s){return t-=e,t=Mc(t,1/n,r),s!==void 0&&(t=Mc(t,1/s,r)),t}function GM(t,e=0,n=1,r=.5,s,i=t,o=t){if(In.test(e)&&(e=parseFloat(e),e=Re(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Re(i.min,i.max,r);t===i&&(a-=e),t.min=o0(t.min,e,n,a,s),t.max=o0(t.max,e,n,a,s)}function a0(t,e,[n,r,s],i,o){GM(t,e[n],e[r],e[s],e.scale,i,o)}const YM=["x","scaleX","originX"],QM=["y","scaleY","originY"];function l0(t,e,n,r){a0(t.x,e,YM,n?n.x:void 0,r?r.x:void 0),a0(t.y,e,QM,n?n.y:void 0,r?r.y:void 0)}function c0(t){return t.translate===0&&t.scale===1}function qS(t){return c0(t.x)&&c0(t.y)}function u0(t,e){return t.min===e.min&&t.max===e.max}function ZM(t,e){return u0(t.x,e.x)&&u0(t.y,e.y)}function d0(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function GS(t,e){return d0(t.x,e.x)&&d0(t.y,e.y)}function h0(t){return gt(t.x)/gt(t.y)}function f0(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Bt(t){return[t("x"),t("y")]}function JM(t,e,n){let r="";const s=t.x.translate/e.x,i=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:h,skewX:f,skewY:w}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),f&&(r+=`skewX(${f}deg) `),w&&(r+=`skewY(${w}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const YS=["TopLeft","TopRight","BottomLeft","BottomRight"],XM=YS.length,p0=t=>typeof t=="string"?parseFloat(t):t,m0=t=>typeof t=="number"||U.test(t);function e$(t,e,n,r,s,i){s?(t.opacity=Re(0,n.opacity??1,t$(r)),t.opacityExit=Re(e.opacity??1,0,n$(r))):i&&(t.opacity=Re(e.opacity??1,n.opacity??1,r));for(let o=0;o<XM;o++){const a=`border${YS[o]}Radius`;let l=g0(e,a),c=g0(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||m0(l)===m0(c)?(t[a]=Math.max(Re(p0(l),p0(c),r),0),(In.test(c)||In.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=Re(e.rotate||0,n.rotate||0,r))}function g0(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const t$=QS(0,.5,W1),n$=QS(.5,.95,Yt);function QS(t,e,n){return r=>r<t?0:r>e?1:n(Pa(t,e,r))}function r$(t,e,n){const r=ut(t)?t:Qi(t);return r.start(Am("",r,e,n)),r.animation}function ja(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const s$=(t,e)=>t.depth-e.depth;class i${constructor(){this.children=[],this.isDirty=!1}add(e){fm(this.children,e),this.isDirty=!0}remove(e){pm(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(s$),this.isDirty=!1,this.children.forEach(e)}}function o$(t,e){const n=mt.now(),r=({timestamp:s})=>{const i=s-n;i>=e&&(Zr(r),t(i-e))};return ke.setup(r,!0),()=>Zr(r)}function Gl(t){return ut(t)?t.get():t}class a${constructor(){this.members=[]}add(e){fm(this.members,e),e.scheduleRender()}remove(e){if(pm(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender();const s=r.options.layoutDependency,i=e.options.layoutDependency;s!==void 0&&i!==void 0&&s===i||(e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0));const{crossfade:a}=e.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Yl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Nd=["","X","Y","Z"],l$=1e3;let c$=0;function Id(t,e,n,r){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),r&&(r[t]=0))}function ZS(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=yS(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",ke,!(s||i))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&ZS(r)}function JS({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=e==null?void 0:e()){this.id=c$++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(h$),this.nodes.forEach(g$),this.nodes.forEach(y$),this.nodes.forEach(f$)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new i$)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new gm),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=PS(o)&&!hM(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,d=0;const h=()=>this.root.updateBlockedByResize=!1;ke.read(()=>{d=window.innerWidth}),t(o,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,u&&u(),u=o$(h,250),Yl.hasAnimatedSinceResize&&(Yl.hasAnimatedSinceResize=!1,this.nodes.forEach(w0)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||c.getDefaultTransition()||_$,{onLayoutAnimationStart:p,onLayoutAnimationComplete:x}=c.getProps(),y=!this.targetLayout||!GS(this.targetLayout,f),m=!d&&h;if(this.options.layoutRoot||this.resumeFrom||m||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Pm(w,"layout"),onPlay:p,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(u,m)}else d||w0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Zr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(v$),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ZS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(y0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(v0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(m$),this.nodes.forEach(u$),this.nodes.forEach(d$)):this.nodes.forEach(v0),this.clearAllSnapshots();const a=mt.now();tt.delta=$n(0,1e3/60,a-tt.timestamp),tt.timestamp=a,tt.isProcessing=!0,Ed.update.process(tt),Ed.preRender.process(tt),Ed.render.process(tt),tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Nm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(p$),this.sharedNodes.forEach(w$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!gt(this.snapshot.measuredBox.x)&&!gt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ke(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!qS(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||ms(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),S$(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Ke();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(k$))){const{scroll:u}=this.root;u&&(xi(a.x,u.offset.x),xi(a.y,u.offset.y))}return a}removeElementScroll(o){var l;const a=Ke();if(on(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&on(a,o),xi(a.x,d.offset.x),xi(a.y,d.offset.y))}return a}applyTransform(o,a=!1){const l=Ke();on(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&bi(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ms(u.latestValues)&&bi(l,u.latestValues)}return ms(this.latestValues)&&bi(l,this.latestValues),l}removeTransform(o){const a=Ke();on(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!ms(c.latestValues))continue;Cf(c.latestValues)&&c.updateSnapshot();const u=Ke(),d=c.measurePageBox();on(u,d),l0(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return ms(this.latestValues)&&l0(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=tt.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ke(),this.targetWithTransforms=Ke()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):on(this.target,this.layout.layoutBox),DS(this.target,this.targetDelta)):on(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Cf(this.parent.latestValues)||IS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ke(),this.relativeTargetOrigin=Ke(),$c(this.relativeTargetOrigin,a,l),on(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var w;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&
vendor: 5,271 bytes, line 261
261(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===tt.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;on(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;_M(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Ke());const{target:f}=o;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(n0(this.prevProjectionDelta.x,this.projectionDelta.x),n0(this.prevProjectionDelta.y,this.projectionDelta.y)),Zo(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!f0(this.projectionDelta.x,this.prevProjectionDelta.x)||!f0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=wi(),this.projectionDelta=wi(),this.projectionDeltaWithTransform=wi()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=wi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Ke(),f=l?l.source:void 0,w=this.layout?this.layout.source:void 0,p=f!==w,x=this.getStack(),y=!x||x.members.length<=1,m=!!(p&&!y&&this.options.crossfade===!0&&!this.path.some(b$));this.animationProgress=0;let v;this.mixTargetDelta=_=>{const S=_/1e3;x0(d.x,o.x,S),x0(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($c(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),x$(this.relativeTarget,this.relativeTargetOrigin,h,S),v&&ZM(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Ke()),on(v,this.relativeTarget)),p&&(this.animationValues=u,e$(u,c,this.latestValues,S,m,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Zr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ke.update(()=>{Yl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Qi(0)),this.currentAnimation=r$(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(l$),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&XS(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ke();const d=gt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=gt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}on(a,l),bi(a,u),Zo(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new a$),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 35,180 bytes, lines 261-269
261resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Id("z",o,c,this.animationValues);for(let u=0;u<Nd.length;u++)Id(`rotate${Nd[u]}`,o,c,this.animationValues),Id(`skew${Nd[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Gl(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Gl(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ms(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=JM(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),o.transform=d;const{x:h,y:f}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const w in Af){if(u[w]===void 0)continue;const{correct:p,applyTo:x,isCSSVariable:y}=Af[w],m=d==="none"?u[w]:p(u[w],c);if(x){const v=x.length;for(let _=0;_<v;_++)o[x[_]]=m}else y?this.options.visualElement.renderState.vars[w]=m:o[w]=m}this.options.layoutId&&(o.pointerEvents=c===this?Gl(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(y0),this.root.sharedNodes.clear()}}}function u$(t){t.updateLayout()}function d$(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?Bt(d=>{const h=o?e.measuredBox[d]:e.layoutBox[d],f=gt(h);h.min=r[d].min,h.max=h.min+f}):XS(i,e.layoutBox,r)&&Bt(d=>{const h=o?e.measuredBox[d]:e.layoutBox[d],f=gt(r[d]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+f)});const a=wi();Zo(a,r,e.layoutBox);const l=wi();o?Zo(l,t.applyTransform(s,!0),e.measuredBox):Zo(l,r,e.layoutBox);const c=!qS(a);let u=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:f}=d;if(h&&f){const w=Ke();$c(w,e.layoutBox,h.layoutBox);const p=Ke();$c(p,r,f.layoutBox),GS(w,p)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=w,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function h$(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function f$(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function p$(t){t.clearSnapshot()}function y0(t){t.clearMeasurements()}function v0(t){t.isLayoutDirty=!1}function m$(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function w0(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function g$(t){t.resolveTargetDelta()}function y$(t){t.calcProjection()}function v$(t){t.resetSkewAndRotation()}function w$(t){t.removeLeadSnapshot()}function x0(t,e,n){t.translate=Re(e.translate,0,n),t.scale=Re(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function b0(t,e,n,r){t.min=Re(e.min,n.min,r),t.max=Re(e.max,n.max,r)}function x$(t,e,n,r){b0(t.x,e.x,n.x,r),b0(t.y,e.y,n.y,r)}function b$(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const _$={duration:.45,ease:[.4,0,.1,1]},_0=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),S0=_0("applewebkit/")&&!_0("chrome/")?Math.round:Yt;function k0(t){t.min=S0(t.min),t.max=S0(t.max)}function S$(t){k0(t.x),k0(t.y)}function XS(t,e,n){return t==="position"||t==="preserve-aspect"&&!KM(h0(e),h0(n),.2)}function k$(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const E$=JS({attachResizeListener:(t,e)=>ja(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Dd={current:void 0},ek=JS({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Dd.current){const t=new E$({});t.mount(window),t.setOptions({layoutScroll:!0}),Dd.current=t}return Dd.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Um=b.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function E0(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function T$(...t){return e=>{let n=!1;const r=t.map(s=>{const i=E0(s,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():E0(t[s],null)}}}}function C$(...t){return b.useCallback(T$(...t),t)}class P$ extends b.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=Tf(r)&&r.offsetWidth||0,i=Tf(r)&&r.offsetHeight||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=s-o.width-o.left,o.bottom=i-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function A$({children:t,isPresent:e,anchorX:n,anchorY:r,root:s}){var d;const i=b.useId(),o=b.useRef(null),a=b.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=b.useContext(Um),c=((d=t.props)==null?void 0:d.ref)??(t==null?void 0:t.ref),u=C$(o,c);return b.useInsertionEffect(()=>{const{width:h,height:f,top:w,left:p,right:x,bottom:y}=a.current;if(e||!o.current||!h||!f)return;const m=n==="left"?`left: ${p}`:`right: ${x}`,v=r==="bottom"?`bottom: ${y}`:`top: ${w}`;o.current.dataset.motionPopId=i;const _=document.createElement("style");l&&(_.nonce=l);const S=s??document.head;return S.appendChild(_),_.sheet&&_.sheet.insertRule(` 262 [data-motion-pop-id="${i}"] { 263 position: absolute !important; 264 width: ${h}px !important; 265 height: ${f}px !important; 266 ${m}px !important; 267 ${v}px !important; 268 } 269 `),()=>{S.contains(_)&&S.removeChild(_)}},[e]),g.jsx(P$,{isPresent:e,childRef:o,sizeRef:a,children:b.cloneElement(t,{ref:u})})}const R$=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:l,root:c})=>{const u=hm(O$),d=b.useId();let h=!0,f=b.useMemo(()=>(h=!1,{id:d,initial:e,isPresent:n,custom:s,onExitComplete:w=>{u.set(w,!0);for(const p of u.values())if(!p)return;r&&r()},register:w=>(u.set(w,!1),()=>u.delete(w))}),[n,u,r]);return i&&h&&(f={...f}),b.useMemo(()=>{u.forEach((w,p)=>u.set(p,!1))},[n]),b.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(t=g.jsx(A$,{isPresent:n,anchorX:a,anchorY:l,root:c,children:t})),g.jsx(Su.Provider,{value:f,children:t})};function O$(){return new Map}function tk(t=!0){const e=b.useContext(Su);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=e,i=b.useId();b.useEffect(()=>{if(t)return s(i)},[t]);const o=b.useCallback(()=>t&&r&&r(i),[i,r,t]);return!n&&r?[!1,o]:[!0]}const Al=t=>t.key||"";function T0(t){const e=[];return b.Children.forEach(t,n=>{b.isValidElement(n)&&e.push(n)}),e}const j$=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,d]=tk(o),h=b.useMemo(()=>T0(t),[t]),f=o&&!u?[]:h.map(Al),w=b.useRef(!0),p=b.useRef(h),x=hm(()=>new Map),y=b.useRef(new Set),[m,v]=b.useState(h),[_,S]=b.useState(h);N1(()=>{w.current=!1,p.current=h;for(let T=0;T<_.length;T++){const P=Al(_[T]);f.includes(P)?(x.delete(P),y.current.delete(P)):x.get(P)!==!0&&x.set(P,!1)}},[_,f.length,f.join("-")]);const k=[];if(h!==m){let T=[...h];for(let P=0;P<_.length;P++){const O=_[P],B=Al(O);f.includes(B)||(T.splice(P,0,O),k.push(O))}return i==="wait"&&k.length&&(T=k),S(T0(T)),v(h),null}const{forceRender:E}=b.useContext(dm);return g.jsx(g.Fragment,{children:_.map(T=>{const P=Al(T),O=o&&!u?!1:h===_||f.includes(P),B=()=>{if(y.current.has(P))return;if(y.current.add(P),x.has(P))x.set(P,!0);else return;let D=!0;x.forEach(Y=>{Y||(D=!1)}),D&&(E==null||E(),S(p.current),o&&(d==null||d()),r&&r())};return g.jsx(R$,{isPresent:O,initial:!w.current||n?void 0:!1,custom:e,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:O?void 0:B,anchorX:a,anchorY:l,children:T},P)})})},nk=b.createContext({strict:!1}),C0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let P0=!1;function N$(){if(P0)return;const t={};for(const e in C0)t[e]={isEnabled:n=>C0[e].some(r=>!!n[r])};OS(t),P0=!0}function rk(){return N$(),vM()}function I$(t){const e=rk();for(const n in t)e[n]={...e[n],...t[n]};OS(e)}const D$=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Vc(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||D$.has(t)}let sk=t=>!Vc(t);function L$(t){typeof t=="function"&&(sk=e=>e.startsWith("on")?!Vc(e):t(e))}try{L$(require("@emotion/is-prop-valid").default)}catch{}function M$(t,e,n){const r={};for(const s in t)s==="values"&&typeof t.values=="object"||(sk(s)||n===!0&&Vc(s)||!e&&!Vc(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}const Cu=b.createContext({});function $$(t,e){if(Tu(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Oa(n)?n:void 0,animate:Oa(r)?r:void 0}}return t.inherit!==!1?e:{}}function V$(t){const{initial:e,animate:n}=$$(t,b.useContext(Cu));return b.useMemo(()=>({initial:e,animate:n}),[A0(e),A0(n)])}function A0(t){return Array.isArray(t)?t.join(" "):t}const Fm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ik(t,e,n){for(const r in e)!ut(e[r])&&!$S(r,n)&&(t[r]=e[r])}function U$({transformTemplate:t},e){return b.useMemo(()=>{const n=Fm();return $m(n,e,t),Object.assign({},n.vars,n.style)},[e])}function F$(t,e){const n=t.style||{},r={};return ik(r,n,t),Object.assign(r,U$(t,e)),r}function B$(t,e){const n={},r=F$(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const ok=()=>({...Fm(),attrs:{}});function z$(t,e,n,r){const s=b.useMemo(()=>{const i=ok();return VS(i,e,FS(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};ik(i,t.style,t),s.style={...i,...s.style}}return s}const W$=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Bm(t){return typeof t!="string"||t.includes("-")?!1:!!(W$.indexOf(t)>-1||/[A-Z]/u.test(t))}function H$(t,e,n,{latestValues:r},s,i=!1,o){const l=(o??Bm(t)?z$:B$)(e,r,s,t),c=M$(e,typeof t=="string",i),u=t!==b.Fragment?{...c,...l,ref:n}:{},{children:d}=e,h=b.useMemo(()=>ut(d)?d.get():d,[d]);return b.createElement(t,{...u,children:h})}function K$({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,s){return{latestValues:q$(n,r,s,t),renderState:e()}}function q$(t,e,n,r){const s={},i=r(t,{});for(const h in i)s[h]=Gl(i[h]);let{initial:o,animate:a}=t;const l=Tu(t),c=RS(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Eu(d)){const h=Array.isArray(d)?d:[d];for(let f=0;f<h.length;f++){const w=Rm(t,h[f]);if(w){const{transitionEnd:p,transition:x,...y}=w;for(const m in y){let v=y[m];if(Array.isArray(v)){const _=u?v.length-1:0;v=v[_]}v!==null&&(s[m]=v)}for(const m in p)s[m]=p[m]}}}return s}const ak=t=>(e,n)=>{const r=b.useContext(Cu),s=b.useContext(Su),i=()=>K$(t,e,r,s);return n?i():hm(i)},G$=ak({scrapeMotionValuesFromProps:Vm,createRenderState:Fm}),Y$=ak({scrapeMotionValuesFromProps:BS,createRenderState:ok}),Q$=Symbol.for("motionComponentSymbol");function Z$(t,e,n){const r=b.useRef(n);b.useInsertionEffect(()=>{r.current=n});const s=b.useRef(null);return b.useCallback(i=>{var a;i&&((a=t.onMount)==null||a.call(t,i)),e&&(i?e.mount(i):e.unmount());const o=r.current;if(typeof o=="function")if(i){const l=o(i);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[e])}const lk=b.createContext({});function Do(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function J$(t,e,n,r,s,i){var y,m;const{visualElement:o}=b.useContext(Cu),a=b.useContext(nk),l=b.useContext(Su),c=b.useContext(Um).reducedMotion,u=b.useRef(null),d=b.useRef(!1);r=r||a.renderer,!u.current&&r&&(u.current=r(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,isSVG:i}),d.current&&u.current&&(u.current.manuallyAnimateOnMount=!0));const h=u.current,f=b.useContext(lk);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&X$(u.current,n,s,f);const w=b.useRef(!1);b.useInsertionEffect(()=>{h&&w.current&&h.update(n,l)});const p=n[gS],x=b.useRef(!!p&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,p))&&((m=window.MotionHasOptimisedAnimation)==null?void 0:m.call(window,p)));return N1(()=>{d.current=!0,h&&(w.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),x.current&&h.animationState&&h.animationState.animateChanges())}),b.useEffect(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)==null||v.call(window,p)}),x.current=!1),h.enteringChildren=void 0)}),h}function X$(t,e,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:ck(t.parent)),t.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Do(a),visualElement:t,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function ck(t){if(t)return t.options.allowProjection!==!1?t.projection:ck(t.parent)}function Ld(t,{forwardMotionProps:e=!1,type:n}={},r,s){r&&I$(r);const i=n?n==="svg":Bm(t),o=i?Y$:G$;function a(c,u){let d;const h={...b.useContext(Um),...c,layoutId:e4(c)},{isStatic:f}=h,w=V$(c),p=o(c,f);if(!f&&j1){t4();const x=n4(h);d=x.MeasureLayout,w.visualElement=J$(t,p,h,s,x.ProjectionNode,i)}return g.jsxs(Cu.Provider,{value:w,children:[d&&w.visualElement?g.jsx(d,{visualElement:w.visualElement,...h}):null,H$(t,c,Z$(p,w.visualElement,u),p,f,e,i)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=b.forwardRef(a);return l[Q$]=t,l}function e4({layoutId:t}){const e=b.useContext(dm).id;return e&&t!==void 0?e+"-"+t:t}function t4(t,e){b.useContext(nk).strict}function n4(t){const e=rk(),{drag:n,layout:r}=e;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(t)||r!=null&&r.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function r4(t,e){if(typeof Proxy>"u")return Ld;const n=new Map,r=(i,o)=>Ld(i,o,t,e),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,Ld(o,void 0,t,e)),n.get(o))})}const s4=(t,e)=>e.isSVG??Bm(t)?new DM(e):new AM(e,{allowProjection:t!==b.Fragment});class i4 extends is{constructor(e){super(e),e.animationState||(e.animationState=UM(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Eu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let o4=0;class a4 extends is{constructor(){super(...arguments),this.id=o4++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const l4={animation:{Feature:i4},exit:{Feature:a4}};function Qa(t){return{point:{x:t.pageX,y:t.pageY}}}const c4=t=>e=>Im(e)&&t(e,Qa(e));function Jo(t,e,n,r){return ja(t,e,c4(n),r)}const uk=({current:t})=>t?t.ownerDocument.defaultView:null,R0=(t,e)=>Math.abs(t-e);function u4(t,e){const n=R0(t.x,e.x),r=R0(t.y,e.y);return Math.sqrt(n**2+r**2)}const O0=new Set(["auto","scroll"]);class dk{constructor(e,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=$d(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,p=u4(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!p)return;const{point:x}=f,{timestamp:y}=tt;this.history.push({...x,timestamp:y});const{onStart:m,onMove:v}=this.handlers;w||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,f)},this.handlePointerMove=(f,w)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Md(w,this.transformPagePoint),ke.update(this.updatePoint,!0)},this.handlePointerUp=(f,w)=>{this.end();const{onEnd:p,onSessionEnd:x,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=$d(f.type==="pointercancel"?this.lastMoveEventInfo:Md(w,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,m),x&&x(f,m)},!Im(e))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const l=Qa(e),c=Md(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=tt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(e,$d(c,this.history)),this.removeListeners=qa(Jo(this.contextWindow,"pointermove",this.handlePointerMove),Jo(this.contextWindow,"pointerup",this.handlePointerUp),Jo(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const r=getComputedStyle(n);(O0.has(r.overflowX)||O0.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const r=e===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,s),ke.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Zr(this.updatePoint)}}function Md(t,e){return e?{point:e(t.point)}:t}function j0(t,e){return{x:t.x-e.x,y:t.y-e.y}}function $d({point:t},e){return{point:t,delta:j0(t,hk(e)),offset:j0(t,d4(e)),velocity:h4(e,.1)}}function d4(t){return t[0]}function hk(t){return t[t.length-1]}function h4(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const s=hk(t);for(;n>=0&&(r=t[n],!(s.timestamp-r.timestamp>Nn(e)));)n--;if(!r)return{x:0,y:0};const i=qt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function f4(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Re(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Re(n,t,r.max):Math.min(t,n)),t}function N0(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function p4(t,{top:e,left:n,bottom:r,right:s}){return{x:N0(t.x,n,s),y:N0(t.y,e,r)}}function I0(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function m4(t,e){return{x:I0(t.x,e.x),y:I0(t.y,e.y)}}function g4(t,e){let n=.5;const r=gt(t),s=gt(e);return s>r?n=Pa(e.min,e.max-r,t.min):r>s&&(n=Pa(t.min,t.max-s,e.min)),$n(0,1,n)}function y4(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Rf=.35;function v4(t=Rf){return t===!1?t=0:t===!0&&(t=Rf),{x:D0(t,"left","right"),y:D0(t,"top","bottom")}}function D0(t,e,n){return{min:L0(t,e),max:L0(t,n)}}function L0(t,e){return typeof t=="number"?t:t[e]||0}const w4=new WeakMap;class x4{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ke(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=d=>{n?(this.stopAnimation(),this.snapToCursor(Qa(d).point)):this.pauseAnimation()},o=(d,h)=>{this.stopAnimation();const{drag:f,dragPropagation:w,onDragStart:p}=this.getProps();if(f&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aM(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bt(y=>{let m=this.getAxisMotionValue(y).get()||0;if(In.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const _=v.layout.layoutBox[y];_&&(m=gt(_)*(parseFloat(m)/100))}}this.originPoint[y]=m}),p&&ke.postRender(()=>p(d,h)),Sf(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:f,dragDirectionLock:w,onDirectionLock:p,onDrag:x}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(w&&this.currentDirection===null){this.currentDirection=b4(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),x&&x(d,h)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Bt(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)==null?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new dk(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:uk(this.visualElement),element:this.visualElement.current})}stop(e,n){const r=e||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&ke.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,r){const{drag:s}=this.getProps();if(!r||!Rl(e,s,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=f4(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;e&&Do(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=p4(r.layoutBox,e):this.constraints=!1,this.elastic=v4(n),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Bt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=y4(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Do(e))return!1;const r=e.current;Yi(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=SM(r,s.root,this.visualElement.getTransformPagePoint());let o=m4(s.layout.layoutBox,i);if(n){const a=n(xM(o));this.hasMutatedConstraints=!!a,a&&(o=NS(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Bt(u=>{if(!Rl(u,n,this.currentDirection))return;let d=l&&l[u]||{};o&&(d={min:0,max:0});const h=s?200:1e6,f=s?40:1e7,w={type:"inertia",velocity:r?e[u]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,w)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Sf(this.visualElement,e),r.start(Am(e,r,0,n,this.visualElement,!1))}stopAnimation(){Bt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Bt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Bt(n=>{const{drag:r}=this.getProps();if(!Rl(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],l=i.get()||0;i.set(e[n]-Re(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Do(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Bt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=g4({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Bt(o=>{if(!Rl(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Re(l,c,s[o]))})}addListeners(){if(!this.visualElement.current)return;w4.set(this.visualElement,this);const e=this.visualElement.current,n=Jo(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps(),d=l.target,h=d!==e&&CS(d);c&&u&&!h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Do(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ke.read(r);const o=ja(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Bt(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Rf,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Rl(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function b4(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class _4 extends is{constructor(e){super(e),this.removeGroupControls=Yt,this.removeListeners=Yt,this.controls=new x4(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Yt}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const M0=t=>(e,n)=>{t&&ke.postRender(()=>t(e,n))};class S4 extends is{constructor(){super(...arguments),this.removePointerDownListener=Yt}onPointerDown(e){this.session=new dk(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uk(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:M0(e),onStart:M0(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&ke.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Jo(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Vd=!1;class k4 extends b.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=e;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),Vd&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Yl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Vd=!0,s||e.layoutDependency!==n||n===void 0||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||ke.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Nm.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=e;Vd=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function fk(t){const[e,n]=tk(),r=b.useContext(dm);return g.jsx(k4,{...t,layoutGroup:r,switchLayoutGroup:b.useContext(lk),isPresent:e,safeToRemove:n})}const E4={pan:{Feature:S4},drag:{Feature:_4,ProjectionNode:ek,MeasureLayout:fk}};function $0(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&ke.postRender(()=>i(e,Qa(e)))}class T4 extends is{mount(){const{current:e}=this.node;e&&(this.unmount=lM(e,(n,r)=>($0(this.node,r,"Start"),s=>$0(this.node,s,"End"))))}unmount(){}}class C4 extends is{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=qa(ja(this.node.current,"focus",()=>this.onFocus()),ja(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function V0(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&ke.postRender(()=>i(e,Qa(e)))}class P4 extends is{mount(){const{current:e}=this.node;e&&(this.unmount=dM(e,(n,r)=>(V0(this.node,r,"Start"),(s,{success:i})=>V0(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Of=new WeakMap,Ud=new WeakMap,A4=t=>{const e=Of.get(t.target);e&&e(t)}
vendor: 2,710 bytes, line 269
269,R4=t=>{t.forEach(A4)};function O4({root:t,...e}){const n=t||document;Ud.has(n)||Ud.set(n,{});const r=Ud.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(R4,{root:t,...e})),r[s]}function j4(t,e,n){const r=O4(e);return Of.set(t,n),r.observe(t),()=>{Of.delete(t),r.unobserve(t)}}const N4={some:0,all:1};class I4 extends is{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:N4[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return j4(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(D4(e,n))&&this.startObserver()}unmount(){}}function D4({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const L4={inView:{Feature:I4},tap:{Feature:P4},focus:{Feature:C4},hover:{Feature:T4}},M4={layout:{ProjectionNode:ek,MeasureLayout:fk}},$4={...l4,...L4,...E4,...M4},Zi=r4($4,s4);function V4(){!Dm.current&&AS();const[t]=b.useState(Dc.current);return t}const U4=Vp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-gradient-cta text-cta-foreground font-bold tracking-tight shadow-cta hover:bg-gradient-cta-hover hover:shadow-cta-hover hover:-translate-y-0.5 focus-visible:ring-cta-ring",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-background/45 text-foreground backdrop-blur-md hover:bg-secondary hover:border-cta font-semibold",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-cta underline-offset-4 hover:underline",accent:"bg-cta text-cta-foreground font-semibold shadow-cta hover:bg-cta-hover hover:scale-[1.02]",hero:"bg-gradient-cta text-cta-foreground font-bold tracking-tight text-base shadow-cta hover:bg-gradient-cta-hover hover:shadow-cta-hover hover:-translate-y-0.5",heroOutline:"border border-foreground
269/30 bg-background/25 text-foreground backdrop-blur-md hover:bg-foreground/10 hover:border-foreground/60 font-semibold",navCta:"bg-cta text-cta-foreground font-semibold shadow-cta hover:bg-cta-hover",tech:"bg-gradient-cta text-cta-foreground font-bold tracking-tight shadow-cta hover:bg-gradient-cta-hover hover:shadow-cta-hover hover:-translate-y-0.5"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-12 rounded-lg px-8",xl:"h-14 rounded-lg px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),vt=b.forwardRef(({className:t,variant:e,size:n,asChild:r=!1,...s},i)=>{const o=r?VC:"button";return g.jsx(o,{className:Ct(U4({variant:e,size:n,className:t})),ref:i,...s})});vt.displayName="Button";const pk=b.forwardRef((t,e)=>{const[n,r]=b.useState(null),[s,i]=b.useState(!1),[o,a]=b.useState(!1),[l,c]=b.useState(!1);b.useEffect(()=>{if(sessionStorage.getItem("install-dismissed")||window.matchMedia("(display-mode: standalone)").matches)return;const h=/iPad|iPhone|iPod/.test(navigator.userAgent);if(a(h),h){const w=setTimeout(()=>i(!0),3e3);return()=>clearTimeout(w)}const f=w=>{w.preventDefault(),r(w),setTimeout(()=>i(!0),2e3)};return window.addEventListener("beforeinstallprompt",f),()=>window.removeEventListener("beforeinstallprompt",f)},[]);const u=async()=>{if(!n)return;await n.prompt();const{outcome:h}=await n.userChoice;h==="accepted"&&i(!1),r(null)},d=()=>{c(!0),i(!1),sessionStorage.setItem("install-dismissed","true")};return l||!s?null:g.jsx(j$,{children:g.jsx(Zi.div,{ref:e,initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{type:"spring",damping:25,stiffness:300},className:"fixed bottom-4 left-4 right-4 z-[60] sm:left-auto sm:right-6 sm:max-w-sm",children:g.jsxs("div",{className:"rounded-2xl bg-card border border-border/50 shadow-xl p-4 sm:p-5 relative overflow-hidden",children:[g.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-accent"}),g.jsx("button",{onClick:d,className:"absolute top-3 right-3 p-1.5 rounded-full hover:bg-secondary transition-colors text-muted-foreground hover:text-foreground","aria-label":"Dismiss",children:g.jsx(Bp,{className:"w-4 h-4"})}),g.jsxs("div",{className:"flex items-start gap-3",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-accent/15 flex items-center justify-center flex-shrink-0",children:g.jsx(HP,{className:"w-5 h-5 text-accent"})}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("h3",{className:"font-display text-sm font-bold text-foreground mb-1",children:"Install Clear Path"}),o?g.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed mb-3",children:["Tap the ",g.jsx("span",{className:"font-semibold text-foreground",children:"Share"})," button in Safari, then tap ",g.jsx("span",{className:"font-semibold text-foreground",children:'"Add to Home Screen"'})," to install."]}):g.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed mb-3",children:"Add to your home screen for quick access â works just like an app!"}),!o&&n&&g.jsxs(vt,{onClick:u,size:"sm",className:"w-full text-xs font-bold",children:[g.jsx(MP,{className:"w-3.5 h-3.5"}),"Install App"]})]})]})]})})})});pk.displayName="InstallPrompt";const mk="/assets/clearpath-logo-full-F9rNGkEj.png",U0=[{name:"Services",href:"/services"},{name:"Work",href:"/case-studies"},{name:"Pricing",href:"/pricing"},{name:"About",href:"/about"},{name:"Insights",href:"/blog"}];function F4(){const[t,e]=b.useState(!1),[n,r]=b.useState(!1),s=ir(),{user:i,isAdmin:o}=nD();b.useEffect(()=>{const l=()=>r(window.scrollY>12);return l(),addEventListener("scroll",l,{passive:!0}),()=>removeEventListener("scroll",l)},[]),b.useEffect(()=>e(!1),[s.pathname]);const a=o?"/admin":"/dashboard";return g.jsxs("header",{className:`fixed inset-x-0 top-0 z-50 border-b transition ${n||t?"border-border bg-background/95 backdrop-blur-xl":"border-transparent bg-background/35 backdrop-blur-sm"}`,children:[g.jsxs("nav",{className:"container-wide flex h-[72px] items-center justify-between",children:[g.jsx(Ge,{to:"/","aria-label":"Clear Path Solution home",children:g.jsx("img",{src:mk,alt:"Clear Path Solution",className:"h-14 w-auto"})}),g.jsx("div",{className:"hidden items-center gap-7 lg:flex",children:U0.map(l=>g.jsx(Ge,{to:l.href,className:`text-sm font-medium transition-colors hover:text-foreground ${s.pathname===l.href?"text-accent":"text-foreground
269/65"}`,children:l.name},l.href))}),g.jsxs("div",{className:"hidden items-center gap-2 lg:flex",children:[i&&g.jsx(Ge,{to:a,children:g.jsxs(vt,{variant:"ghost",size:"sm",children:[o?g.jsx(Fp,{}):g.jsx(Vh,{}),o?"Admin":"Dashboard"]})}),g.jsx(Ge,{to:"/contact",children:g.jsxs(vt,{size:"sm",children:["Start a Project ",g.jsx(Jt,{})]})})]}),g.jsx("button",{type:"button",onClick:()=>e(l=>!l),"aria-label":t?"Close menu":"Open menu","aria-expanded":t,className:"grid h-11 w-11 place-items-center rounded-md border border-border bg-background/60 text-foreground lg:hidden",children:t?g.jsx(Bp,{}):g.jsx(UP,{})})]}),t&&g.jsx("div",{className:"border-t border-border bg-background lg:hidden",children:g.jsxs("div",{className:"container-wide py-4",children:[U0.map(l=>g.jsx(Ge,{to:l.href,className:"flex min-h-12 items-center border-b border-border text-base font-medium",children:l.name},l.href)),g.jsx(Ge,{to:"/contact",className:"mt-4 block",children:g.jsxs(vt,{className:"w-full",children:["Letâs Talk About Your Project ",g.jsx(Jt,{})]})}),i&&g.jsx(Ge,{to:a,className:"mt-2 block text-center text-sm text-muted-foreground",children:o?"Admin":"Dashboard"})]})})]})}const B4=[{title:"Explore",links:[["Services","/services"],["Work","/case-studies"],["Pricing","/pricing"],["About","/about"]]},{title:"Resources",links:[["Insights","/blog"],["FAQ","/faq"],["Industry Examples","/samples"],["How It Works","/how-it-works"]]},{title:"Local",links:[["Quincy Web Design","/quincy-il-website-design"],["Industries","/industries"],["Contact","/contact"]]}];function z4(){return g.jsx("footer",{className:"border-t border-border bg-background pb-20 lg:pb-0",children:g.jsxs("div",{className:"container-wide py-16 sm:py-20",children:[g.jsxs("div",{className:"grid gap-12 lg:grid-cols-[1.2fr_1fr]",children:[g.jsxs("div",{children:[g.jsx("img",{src:mk,alt:"Clear Path Solution",className:"h-24 w-auto"}),g.jsx("p",{className:"mt-5 max-w-sm text-sm leading-relaxed text-muted-foreground",children:"Custom websites, business apps, local visibility foundations, and practical automations for local businesses."}),g.jsxs("p",{className:"mt-5 flex items-center gap-2 text-sm text-foreground/70",children:[g.jsx(Up,{className:"h-4 w-4 text-accent"}),"Quincy, Illinois"]}),g.jsxs("a",{href:"mailto:[email protected]",className:"mt-3 flex items-center gap-2 text-sm text-foreground/70 hover:text-accent",children:[g.jsx(l_,{className:"h-4 w-4 text-accent"}),"[email protected]"]})]}),g.jsx("div",{className:"grid grid-cols-2 gap-8 sm:grid-cols-3",children:B4.map(t=>g.jsxs("div",{children:[g.jsx("h2",{className:"text-xs font-bold uppercase tracking-[.14em] text-foreground",children:t.title}),g.jsx("ul",{className:"mt-5 space-y-3",children:t.links.map(([e,n])=>g.jsx("li",{children:g.jsxs(Ge,{to:n,className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[e,g.jsx(Jt,{className:"h-3 w-3"})]})},n))})]},t.title))})]}),g.jsxs("div",{className:"mt-14 flex flex-col gap-3 border-t border-border pt-6 text-xs text-muted-foreground sm:flex-row sm:justify-between",children:[g.jsxs("p",{children:["© ",new Date().getFullYear()," Clear Path Solution. All rights reserved."]}),g.jsx("p",{children:"Proudly serving Quincy and surrounding communities."})]})]})})}const gk=b.forwardRef((t,e)=>g.jsx("div",{ref:e,className:"fixed bottom-0 left-0 right-0 lg:hidden z-40 safe-area-bottom border-t border-accent/30 bg-background/95 backdrop-blur-xl shadow-[0_-8px_32px_-8px_rgba(0,0,0,0.6)]",children:g.jsxs(Ge,{to:"/contact",className:"flex items-center justify-center gap-2 py-3.5 bg-accent text-accent-foreground transition-colors hover:bg-accent/90 active:bg-accent/80","aria-label":"Talk about your project",children:[g.jsx(c_,{className:"w-4 h-4"}),g.jsx("span",{className:"text-sm font-bold",children:"Letâs Talk About Your Project"})]})}));gk.displayName="MobileCTA";const yk=b.forwardRef((t,e)=>g.jsx("section",{ref:e,className:"relative overflow-hidden border-t border-border/50 bg-background py-16 sm:py-20",children:g.jsx("div",{className:"container-wide relative",children:g.jsxs(Zi.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"mx-auto grid max-w-5xl gap-8 text-center lg:grid-cols-[1fr_auto] lg:items-end lg:text-left",children:[g.jsxs("div",{children:[g.jsx("p",{className:"editorial-eyebrow mb-4",children:"A direct line to Kevin"}),g.jsx("h2",{className:"font-display text-3xl font-semibold text-foreground sm:text-4xl",children:"Have a project in mind?"}),g.jsx("p",{className:"mt-3 text-base text-muted-foreground sm:text-lg",children:"Use the project form or email Kevin directly. Youâll receive a practical response within one business day."}),g.jsxs("a",{href:"mailto:[email protected]",className:"mt-4 inline-flex items-center gap-2 text-sm font-semibold text-foreground transition-colors hover:text-accent",children:[g.jsx(l_,{className:"h-4 w-4 text-accent"}),"[email protected]"]})]}),g.jsx(Ge,{to:"/contact",children:g.jsxs(vt,{size:"xl",className:"w-full sm:w-auto",children:["Start a Conversation ",g.jsx(Jt,{})]})})]})})}));
269yk.displayName="CallTextCTA";function W4({children:t}){const{pathname:e}=ir(),r=!["/auth","/admin","/dashboard","/sign-in","/sign-up","/reset-password","/payment-success"].some(s=>e.startsWith(s));return g.jsxs("div",{className:`min-h-screen ${r?"public-site":""}`,children:[g.jsx(F4,{}),g.jsx("main",{className:"pt-[72px] md:pt-[80px]",children:t}),g.jsx(yk,{}),g.jsx(z4,{}),g.jsx(gk,{})]})}const F0="https://www.clear-path-solution.com";function B0(t,e){if(t.length<=e)return t;const n=t.slice(0,e+1),r=n.lastIndexOf(" ");return`${n.slice(0,r>0?r:e).replace(/[,:;|ââ-]+$/,"")}â¦`}function H4({title:t,description:e,canonical:n,ogImage:r,type:s="website"}){const i=t.includes("Clear Path")?t:`${t} | Clear Path Solution`,o=B0(i,59),a=B0(e,159),l=n?`${F0}${n}`:void 0,c=r||`${F0}/og-image.png`;return b.useEffect(()=>{document.title=o;const u=(d,h,f=!1)=>{const w=f?"property":"name";let p=document.querySelector(`meta[${w}="${d}"]`);p||(p=document.createElement("meta"),p.setAttribute(w,d),document.head.appendChild(p)),p.setAttribute("content",h)};if(u("description",a),u("og:title",o,!0),u("og:description",a,!0),u("og:type",s,!0),u("og:image",c,!0),u("twitter:card","summary_large_image"),u("twitter:title",o),u("twitter:description",a),u("twitter:image",c),l){u("og:url",l,!0);let d=document.querySelector('link[rel="canonical"]');d||(d=document.createElement("link"),d.setAttribute("rel","canonical"),document.head.appendChild(d)),d.setAttribute("href",l)}return()=>{const d=document.querySelector('link[rel="canonical"]');d&&d.remove()}},[o,a,l,c,s]),null}function K4({data:t}){return b.useEffect(()=>{const e=document.createElement("script");return e.type="application/ld+json",e.text=JSON.stringify({"@context":"https://schema.org",...t}),e.id=`jsonld-${JSON.stringify(t["@type"])}`,document.head.appendChild(e),()=>{e.remove()}},[t]),null}const q4="/assets/hero-bg-quincy-skyline-DwEWZw9T.jpg",vk="/assets/tristate-app-BT88YqVW.jpg",wk="/assets/lucky-js-app-p-pIJ9LT.jpg";function G4(){const t=V4();return g.jsxs("section",{className:"relative isolate min-h-[660px] overflow-hidden bg-background sm:min-h-[720px] lg:min-h-[820px]",children:[g.jsx("img",{src:q4,alt:"Quincy riverfront and bridge at dusk",className:"absolute inset-0 h-full w-full object-cover object-center",fetchPriority:"high"}),g.jsx("div",{className:"absolute inset-0 bg-hero-cinematic"}),g.jsxs("div",{className:"container-wide relative grid min-h-[660px] items-center gap-12 py-12 sm:min-h-[720px] sm:py-16 lg:min-h-[820px] lg:grid-cols-[1.08fr_.92fr] lg:py-20",children:[g.jsxs(Zi.div,{initial:t?!1:{opacity:0,y:22},animate:{opacity:1,y:0},transition:{duration:t?0:.7},className:"max-w-3xl",children:[g.jsx("p",{className:"editorial-eyebrow mb-6",children:"Web Design & Business Apps · Quincy, IL"}),g.jsxs("h1",{className:"font-display text-[3.25rem] font-semibold leading-[.88] text-foreground sm:text-7xl lg:text-[6.6rem]",children:["Your Brand.",g.jsx("br",{}),g.jsx("span",{className:"text-accent",children:"Elevated."})]}),g.jsx("p",{className:"mt-7 max-w-2xl text-base leading-relaxed text-foreground/78 sm:text-xl",children:"Custom websites, business apps, and practical automations that help local businesses look professional, connect with customers, and simplify everyday work."}),g.jsxs("div",{className:"mt-9 flex flex-col gap-3 sm:flex-row",children:[g.jsx(Ge,{to:"/contact",children:g.jsxs(vt,{size:"xl",className:"w-full sm:w-auto",children:["Letâs Talk About Your Project ",g.jsx(Jt,{})]})}),g.jsx(Ge,{to:"/case-studies",children:g.jsx(vt,{variant:"heroOutline",size:"xl",className:"w-full sm:w-auto",children:"Explore Our Work"})})]})]}),g.jsxs(Zi.div,{initial:t?!1:{opacity:0,x:24},animate:{opacity:1,x:0},transition:{duration:t?0:.8,delay:.12},className:"relative hidden min-h-[560px] lg:block","aria-label":"Selected Clear Path Solution projects",children:[g.jsx("div",{className:"absolute right-0 top-0 w-[68%] overflow-hidden rounded-md border border-foreground
269/15 bg-card shadow-2xl rotate-[2deg]",children:g.jsx("img",{src:vk,alt:"Tri-State Claims Advocates website",className:"aspect-[4/5] w-full object-cover object-top"})}),g.jsx("div",{className:"absolute bottom-0 left-0 w-[58%] overflow-hidden rounded-md border border-foreground/15 bg-card shadow-2xl -rotate-[3deg]",children:g.jsx("img",{src:wk,alt:"Lucky Jâs Gaming Lounge app",className:"aspect-[4/5] w-full object-cover object-top"})}),g.jsxs("div",{className:"absolute bottom-5 right-0 border-l border-accent pl-4 text-sm text-foreground/75",children:[g.jsx("span",{className:"block font-semibold text-foreground",children:"Built in Quincy"}),"Websites, apps, and owner tools"]})]})]}),g.jsxs("a",{href:"#local-work","aria-label":"View local client work",className:"absolute bottom-5 right-5 hidden items-center gap-2 text-xs font-semibold uppercase tracking-[.14em] text-foreground/65 md:flex",children:["Selected work ",g.jsx(jP,{className:"h-4 w-4"})]})]})}const Y4="/assets/quincy-chamber-member-BSvzZodD.jpg",Q4="/assets/lucky-js-logo-BV1_BDGl.png",Z4="/assets/tristate-logo-IQQXUNBk.png",z0="/assets/heck-gaming-logo-DWbwByKx.png",W0="/assets/level-up-lounge-logo-1Qr_I-_3.png",xk=[{name:"Tri-State Claims Advocates",location:"Quincy, IL",owner:"Jeff Delonjay",logo:Z4,image:vk,website:"https://tristateclaimsadvocates.com",websiteLabel:"tristateclaimsadvocates.com",summary:"A professional website and clear inquiry path for an independent claims advocacy business.",services:[{label:"Brand-ready website",icon:by},{label:"Lead capture",icon:KP},{label:"Local search setup",icon:u_}],quote:"Thank you for getting the website rolling and making the entire process easier than my previous experience with website developers."},{name:"Lucky Jâs Gaming Lounge",location:"Quincy, IL",owner:"Jordan Robertson",logo:Q4,image:wk,website:"https://www.luckyjsgaminglounge.com",websiteLabel:"luckyjsgaminglounge.com",summary:"A customer-facing website, check-in rewards experience, event sign-ups, and an owner dashboard.",services:[{label:"Rewards system",icon:_y},{label:"Owner dashboard",icon:Vh},{label:"Event sign-ups",icon:xy}],quote:"Customers check in for points, redeem them for cash, and I control everything from one dashboard. Game changer."},{name:"Heck Gaming",location:"Tri-State Area",logo:z0,image:z0,website:"https://heckgaming.net",websiteLabel:"heckgaming.net",summary:"A brand upgrade, online dart league registration, and an admin dashboard built to manage multiple leagues.",services:[{label:"Brand upgrade",icon:by},{label:"League sign-ups",icon:xy},{label:"League dashboard",icon:Vh}],imageFit:"contain"},{name:"Level Up Lounge & Accessories",location:"Quincy, IL",logo:W0,image:W0,website:"https://leveluploungeandaccessories.com",websiteLabel:"leveluploungeandaccessories.com",summary:"A new-business website presenting custom team jerseys and gear, lounge activities, and customer 3D printing.",services:[{label:"Jerseys & gear",icon:WP},{label:"Lounge activities",icon:_y},{label:"3D printing",icon:FP}],imageFit:"contain"}];function J4(){return g.jsx("section",{className:"border-y border-border bg-secondary/40",children:g.jsxs("div",{className:"container-wide grid items-center gap-6 py-6 lg:grid-cols-[auto_1fr_auto]",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(Up,{className:"h-5 w-5 text-accent"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm font-semibold",children:"Based in Quincy, Illinois"}),g.jsx("p",{className:"text-xs text-muted-foreground",children:"Serving the Tri-State area and beyond"})]})]}),g.jsx("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-3 lg:justify-center",children:xk.map(t=>g.jsx("img",{src:t.logo,alt:`${t.name} logo`,loading:"lazy",className:"h-9 w-9 object-contain opacity-75 grayscale transition hover:opacity-100 hover:grayscale-0"},t.name))}),g.jsxs("a",{href:"https://www.quincychamber.org/",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3",children:[g.jsx("img",{src:Y4,alt:"Quincy Area Chamber of Commerce member",loading:"lazy",className:"h-11 w-auto rounded-sm"}),g.jsxs("span",{className:"hidden text-xs font-semibold text-foreground
269/75 sm:inline",children:[g.jsx(Fp,{className:"mr-1 inline h-4 w-4 text-accent"}),"Chamber member"]})]})]})})}function X4(){return g.jsx("section",{id:"local-work",className:"section-padding bg-background",children:g.jsxs("div",{className:"container-wide",children:[g.jsxs("div",{className:"mb-12 grid gap-6 lg:grid-cols-[1fr_.65fr] lg:items-end",children:[g.jsxs("div",{children:[g.jsx("p",{className:"editorial-eyebrow mb-4",children:"Selected local work"}),g.jsx("h2",{className:"max-w-3xl font-display text-4xl font-semibold leading-[1.02] sm:text-6xl",children:"Built for real businesses in and around Quincy."})]}),g.jsx("p",{className:"max-w-xl text-muted-foreground lg:justify-self-end",children:"Websites and business tools designed around each clientâs actual services, customers, and daily work."})]}),g.jsx("div",{className:"space-y-5",children:xk.map((t,e)=>g.jsxs("article",{className:"grid overflow-hidden rounded-md border border-border bg-card lg:grid-cols-[1.08fr_.92fr]",children:[g.jsxs("div",{className:`relative min-h-[320px] overflow-hidden bg-secondary ${e%2?"lg:order-2":""}`,children:[g.jsx("img",{src:t.image,alt:`${t.name} project`,loading:"lazy",className:`absolute inset-0 h-full w-full ${t.imageFit==="contain"?"object-contain p-12":"object-cover object-top"}`}),g.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/55 via-transparent to-transparent"})]}),g.jsxs("div",{className:`flex flex-col justify-center p-7 sm:p-10 lg:p-14 ${e%2?"lg:order-1":""}`,children:[g.jsxs("div",{className:"mb-8 flex items-center gap-4",children:[g.jsx("img",{src:t.logo,alt:`${t.name} logo`,loading:"lazy",className:"h-14 w-14 rounded-sm border border-border bg-secondary object-contain p-1"}),g.jsxs("div",{children:[g.jsxs("p",{className:"text-xs uppercase tracking-[.14em] text-muted-foreground",children:[t.location,t.owner?` · ${t.owner}`:""]}),g.jsx("h3",{className:"mt-1 font-display text-2xl font-semibold sm:text-3xl",children:t.name})]})]}),g.jsx("p",{className:"text-base leading-relaxed text-muted-foreground sm:text-lg",children:t.summary}),g.jsx("ul",{className:"mt-7 grid gap-3 sm:grid-cols-3",children:t.services.map(n=>g.jsxs("li",{className:"flex items-center gap-2 border-t border-border pt-3 text-xs font-semibold text-foreground/80",children:[g.jsx(n.icon,{className:"h-4 w-4 text-accent"}),n.label]},n.label))}),t.quote&&g.jsxs("blockquote",{className:"mt-8 border-l border-accent pl-4 text-sm italic leading-relaxed text-foreground/75",children:[g.jsx(BP,{className:"mb-2 h-4 w-4 text-accent"}),"â",t.quote,"â"]}),g.jsxs("a",{href:t.website,target:"_blank",rel:"noopener noreferrer",className:"mt-8 inline-flex items-center gap-2 text-sm font-semibold text-accent hover:text-accent/80",children:["Visit ",t.websiteLabel," ",g.jsx(Jt,{className:"h-4 w-4"})]})]})]},t.name))}),g.jsx("div",{className:"mt-10 text-center",children:g.jsx(Ge,{to:"/case-studies",children:g.jsxs(vt,{variant:"outline",size:"lg",children:["View All Project Details ",g.jsx(Jt,{})]})})})]})})}const Po={launch:{name:"Launch",displayName:"Launch Site",price:"$899",priceUSD:899,monthlyPrice:"$149"},growth:{name:"Growth",displayName:"Local Growth Site",price:"$1,499",priceUSD:1499,monthlyPrice:"$249"},leadEngine:{name:"Lead Engine",displayName:"Lead Engine / App System",price:"$2,500+",priceUSD:2500,monthlyPrice:null}},eV=[{name:"Launch Site",price:Po.launch.price,monthly:`${Po.launch.monthlyPrice}/month managed`,copy:"A clean professional website for a new or small local business.",items:["1â3 core pages","Mobile-friendly custom design","Contact form","Basic SEO setup","30 days of launch support"],intent:"launch-site"},{name:"Local Growth Site",price:Po.growth.price,monthly:`${Po.growth.monthlyPrice}/month managed`,copy:"A larger website with lead capture, local visibility support, and room to grow.",items:["4â6 page custom website","Lead capture form","Service and location sections","Google Business Profile support","Managed content and SEO options"],intent:"growth-site",popular:!0},{name:"Lead Engine / App System",price:Po.leadEngine.price,monthly:"Custom monthly plan available",copy:"A website plus the customer or owner tools your business needs.",items:["Website or landing page","Customer intake flow","Rewards or simple custom app","Automation options","Ongoing optimization options"],intent:"lead-engine"}];function tV(){return g.jsx("section",{className:"section-padding bg-background",children:g.jsxs("div",{className:"container-wide",children:[g.jsxs("div",{className:"mb-12 max-w-3xl",children:[g.jsx("p",{className:"editorial-eyebrow mb-4",children:"Clear starting points"}),g.jsx("h2",{className:"font-display text-4xl font-semibold leading-tight sm:text-5xl",children:"Simple website pricing for local businesses."}),g.jsx("p",{className:"mt-4 text-muted-foreground",children:"Choose a one-time build or managed support. Final scope depends on the pages, features, and integrations your business needs."})]}),g.jsx("div",{className:"grid gap-5 lg:grid-cols-3",children:eV.map(t=>g.jsxs("article",{className:`relative flex flex-col rounded-md border p-7 ${t.popular?"border-accent bg-accent/5":"border-border bg-card"}`,children:[t.popular&&g.jsx("span",{className:"mb-5 self-start rounded-sm bg-accent px-2.5 py-1 text-[10px] font-bold uppercase tracking-[.14em] text-accent-foreground",children:"Most Popular"}),g.jsx("h3",{className:"font-display text-2xl font-semibold",children:t.name}),g.jsx("p",{className:"mt-3 min-h-16 text-sm leading-relaxed text-muted-foreground",children:t.copy}),g.jsxs("div",{className:"my-6 border-y border-border py-5",children:[g.jsx("span",{className:"font-display text-4xl font-semibold",children:t.price}),g.jsx("span",{className:"ml-2 text-xs text-muted-foreground",children:"one-time"}),g.jsx("p",{className:"mt-1 text-xs font-semibold text-accent",children:t.monthly})]}),g.jsx("ul",{className:"mb-7 flex-1 space-y-3",children:t.items.map(e=>
269g.jsxs("li",{className:"flex gap-2 text-sm text-foreground/80",children:[g.jsx(IP,{className:"mt-0.5 h-4 w-4 shrink-0 text-accent"}),e]},e))}),g.jsx(Ge,{to:`/contact?intent=${t.intent}`,children:g.jsxs(vt,{variant:t.popular?"default":"outline",className:"w-full",children:["Discuss This Option ",g.jsx(Jt,{})]})})]},t.name))}),g.jsx("div",{className:"mt-9 text-center",children:g.jsx(Ge,{to:"/pricing",children:g.jsxs(vt,{variant:"outline",size:"lg",children:["Compare Full Pricing ",g.jsx(Jt,{})]})})})]})})}const nV=[{number:"01",icon:VP,title:"Websites & landing pages",copy:"Custom, mobile-first pages that clearly present your business, services, and next step."},{number:"02",icon:$P,title:"Custom business apps",copy:"Practical customer and owner tools for rewards, sign-ups, intake, and day-to-day management."},{number:"03",icon:u_,title:"Local visibility & SEO",copy:"Strong page structure, local search foundations, and Google Business Profile support."},{number:"04",icon:NP,title:"Practical automations",copy:"Forms, notifications, content workflows, and simple automations that reduce repetitive work."}];function rV(){return g.jsx("section",{className:"surface-light section-padding",children:g.jsx("div",{className:"container-wide",children:g.jsxs("div",{className:"grid gap-10 lg:grid-cols-[.8fr_1.2fr] lg:gap-20",children:[g.jsxs("div",{className:"lg:sticky lg:top-28 lg:self-start",children:[g.jsx("p",{className:"editorial-eyebrow mb-4",children:"What we build"}),g.jsx("h2",{className:"font-display text-4xl font-semibold leading-[1.02] sm:text-5xl",children:"Digital tools shaped around the way your business works."}),g.jsx("p",{className:"mt-5 max-w-md text-muted-foreground",children:"No generic package of features. We identify what customers and staff need, then build the clearest useful solution."}),g.jsx(Ge,{to:"/services",className:"mt-7 inline-block",children:g.jsxs(vt,{children:["Explore Services ",g.jsx(Jt,{})]})})]}),g.jsx("div",{className:"divide-y divide-border border-y border-border",children:nV.map(t=>g.jsxs("article",{className:"grid gap-4 py-8 sm:grid-cols-[4rem_3rem_1fr] sm:items-start",children:[g.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:t.number}),g.jsx(t.icon,{className:"h-6 w-6 text-accent"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-display text-2xl font-semibold",children:t.title}),g.jsx("p",{className:"mt-2 max-w-xl leading-relaxed text-muted-foreground",children:t.copy})]})]},t.title))})]})})})}var Pu="Collapsible",[sV,bk]=io(Pu),[iV,zm]=sV(Pu),_k=b.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:i,onOpenChange:o,...a}=t,[l,c]=cu({prop:r,defaultProp:s??!1,onChange:o,caller:Pu});return g.jsx(iV,{scope:n,disabled:i,contentId:b_(),open:l,onOpenToggle:b.useCallback(()=>c(u=>!u),[c]),children:g.jsx(We.div,{"data-state":Hm(l),"data-disabled":i?"":void 0,...a,ref:e})})});_k.displayName=Pu;var Sk="CollapsibleTrigger",kk=b.forwardRef((t,e)=>{const{__scopeCollapsible:n,...r}=t,s=zm(Sk,n);return g.jsx(We.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":Hm(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:e,onClick:$e(t.onClick,s.onOpenToggle)})});kk.displayName=Sk;var Wm="CollapsibleContent",Ek=b.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=zm(Wm,t.__scopeCollapsible);return g.jsx(lu,{present:n||s.open,children:({present:i})=>g.jsx(oV,{...r,ref:e,present:i})})});Ek.displayName=Wm;var oV=b.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:r,children:s,...i}=t,o=zm(Wm,n),[a,l]=b.useState(r),c=b.useRef(null),u=Mt(e,c),d=b.useRef(0),h=d.current,f=b.useRef(0),w=f.current,p=o.open||a,x=b.useRef(p),y=b.useRef(void 0);return b.useEffect(()=>{const m=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(m)},[]),Ln(()=>{const m=c.current;if(m){y.current=y.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const v=m.getBoundingClientRect();d.current=v.height,f.current=v.width,x.current||(m.style.transitionDuration=y.current.transitionDuration,m.style.animationName=y.current.animationName),l(r)}},[o.open,r]),g.jsx(We.div,{"data-state":Hm(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...i,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...t.style},children:p&&s})});function Hm(t){return t?"open":"closed"}var aV=_k,lV=kk,cV=Ek,uV=b.createContext(void 0);function dV(t){const e=b.useContext(uV);return t||e||"ltr"}var _n="Accordion",hV=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Km,fV,pV]=Ib(_n),[Au,uF]=io(_n,[pV,bk]),qm=bk(),Tk=j.forwardRef((t,e)=>{const{type:n,...r}=t,s=r,i=r;return g.jsx(Km.Provider,{scope:t.__scopeAccordion,children:n==="multiple"?g.jsx(vV,{...i,ref:e}):g.jsx(yV,{...s,ref:e})})});Tk.displayName=_n;var[Ck,mV]=Au(_n),[Pk,gV]=Au(_n,{collapsible:!1}),yV=j.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},collapsible:i=!1,...o}=t,[a,l]=cu({prop:n,defaultProp:r??"",onChange:s,caller:_n});return g.jsx(Ck,{scope:t.__scopeAccordion,value:j.useMemo(()=>a?[a]:[],[a]),onItemOpen:l,onItemClose:j.useCallback(()=>i&&l(""),[i,l]),children:g.jsx(Pk,{scope:t.__scopeAccordion,collapsible:i,children:g.jsx(Ak,{...o,ref:e})})})}),vV=j.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},...i}=t,[o,a]=cu({prop:n,defaultProp:r??[],onChange:s,caller:_n}),l=j.useCallback(u=>a((d=[])=>[...d,u]),[a]),c=j.useCallback(u=>a((d=[])=>d.filter(h=>h!==u)),[a]);return g.jsx(Ck,{scope:t.__scopeAccordion,value:o,onItemOpen:l,onItemClose:c,children:g.jsx(Pk,{scope:t.__scopeAccordion,collapsible:!0,children:g.jsx(Ak,{...i,ref:e})})})}),[wV,Ru]=Au(_n),Ak=j.forwardRef((t,e)=>{const{__scopeAccordion:n,disabled:r,dir:s,orientation:i="vertical",...o}=t,a=j.useRef(null),l=Mt(a,e),c=fV(n),d=dV(s)==="ltr",h=$e(t.onKeyDown,f=>{var T;if(!hV.includes(f.key))return;const w=f.target,p=c().filter(P=>{var O;return!((O=P.ref.current)!=null&&O.disabled)}),x=p.findIndex(P=>P.ref.current===w),y=p.length;if(x===-1)return;f.preventDefault();let m=x;const v=0,_=y-1,S=()=>{m=x+1,m>_&&(m=v)},k=()=>{m=x-1,m<v&&(m=_)};switch(f.key){case"Home":m=v;break;case"End":m=_;break;case"ArrowRight":i==="horizontal"&&(d?S():k());break;case"ArrowDown":i==="vertical"&&S();break;case"ArrowLeft":i==="horizontal"&&(d?k():S());break;case"ArrowUp":i==="vertical"&&k();break}const E=m%y;(T=p[E].ref.current)==null||T.focus()});return g.jsx(wV,{scope:n,disabled:r,direction:s,orientation:i,children:g.jsx(Km.Slot,{scope:n,children:g.jsx(We.div,{...o,"data-orientation":i,ref:l,onKeyDown:r?void 0:h})})})}),Uc="AccordionItem",[xV,Gm]=Au(Uc),Rk=j.forwardRef((t,e)=>{const{__scopeAccordion:n,value:r,...s}=t,i=Ru(Uc,n),o=mV(Uc,n),a=qm(n),l=b_(),c=r&&o.value.includes(r)||!1,u=i.disabled||t.disabled;return g.jsx(xV,{scope:n,open:c,disabled:u,triggerId:l,children:g.jsx(aV,{"data-orientation":i.orientation,"data-state":Lk(c),...a,...s,ref:e,disabled:u,open:c,onOpenChange:d=>{d?o.onItemOpen(r):o.onItemClose(r)}})})});Rk.displayName=Uc;var Ok="AccordionHeader",jk=j.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,s=Ru(_n,n),i=Gm(Ok,n);return g.jsx(We.h3,{"data-orientation":s.orientation,"data-state":Lk(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:e})});jk.displayName=Ok;var jf="AccordionTrigger",Nk=j.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,s=Ru(_n,n),i=Gm(jf,n),o=gV(jf,n),a=qm(n);return g.jsx(Km.ItemSlot,{scope:n,children:g.jsx(lV,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...a,...r,ref:e})})});Nk.displayName=jf;var Ik="AccordionContent",Dk=j.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,s=Ru(_n,n),i=Gm(Ik,n),o=qm(n);return g.jsx(cV,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...o,...r,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});Dk.displayName=Ik;function Lk(t){return t?"open":"closed"}var bV=Tk,_V=Rk,SV=jk,Mk=Nk,$k=Dk;const kV=bV,Vk=b.forwardRef(({className:t,...e},n)=>g.jsx(_V,{ref:n,className:Ct("border-b",t),...e}));Vk.displayName="AccordionItem";const Uk=b.forwardRef(({className:t,children:e,...n},r)=>g.jsx(SV,{className:"flex",children:g.jsxs(Mk,{ref:r,className:Ct("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...n,children:[e,g.jsx(DP,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Uk.displayName=Mk.displayName;const Fk=b.forwardRef(({className:t,children:e,...n},r)=>g.jsx($k,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:g.jsx("div",{className:Ct("pb-4 pt-0",t),children:e})}));Fk.displayName=$k.displayName;const EV=[{q:"What kinds of projects do you take on?",a:"Clear Path Solution builds local business websites, focused landing pages, simple customer or owner apps, lead capture flows, and practical automations."},{q:"Can you improve an existing website?",a:"Yes. A project can begin with a focused refresh, mobile improvements, clearer content, stronger contact paths, or a complete rebuild when needed."},{q:"Do you offer ongoing help after launch?",a:"Yes. You can choose a one-time build or a managed plan for updates, support, and continued improvements."},{q:"Can we start small and add features later?",a:"Yes. Many projects begin with a clear website or landing page and add search support, lead tools, automations, or custom app features later."}];function TV(){return g.jsx("section",{className:"surface-light section-padding",children:g.jsxs("div",{className:"container-wide grid gap-12 lg:grid-cols-[.7fr_1fr] lg:gap-20",children:[g.jsxs("div",{children:[g.jsx("p",{className:"editorial-eyebrow mb-4",children:"Common questions"}),g.jsx("h2",{className:"font-display text-4xl font-semibold sm:text-5xl",children:"Straight answers before we start."}),g.jsxs(Ge,{to:"/faq",className:"mt-6 inline-flex items-center gap-2 text-sm font-semibold text-accent",children:["Read all questions ",g.jsx(Jt,{className:"h-4 w-4"})]})]}),g.jsx(kV,{type:"single",collapsible:!0,className:"border-t border-border",children:EV.map((t,e)=>g.jsxs(Vk,{value:`faq-${e}`,className:"border-b border-border",children:[g.jsx(Uk,{className:"py-6 text-left font-display text-lg font-semibold hover:no-underline",children:t.q}),g.jsx(Fk,{className:"pb-6 leading-relaxed text-muted-foreground",children:t.a})]},t.q))})]})})}const CV=[{n:"01",title:"Discuss",copy:"We start with your business, your customers, and the work that needs to become easier."},{n:"02",title:"Design",copy:"You see a clear visual direction and a focused plan before the full build moves forward."},{n:"03",title:"Build",copy:"Your website or app is developed, reviewed, and refined around real useânot feature clutter."},{n:"04",title:"Launch & support",copy:"We launch carefully, connect the essentials, and remain available for updates and improvements."}];function PV(){return g.jsx("section",{className:"section-padding border-y border-border bg-background",children:g.jsxs("div",{className:"container-wide",children:[g.jsxs("div",{className:"mb-12 max-w-3xl",children:[g.jsx("p",{className:"editorial-eyebrow mb-4",children:"A clear process"}),g.jsx("h2",{className:"font-display text-4xl font-semibold leading-tight sm:text-5xl",children:"From first conversation to a confident launch."})]}),g.jsx("ol",{className:"grid gap-px overflow-hidden rounded-md border border-border bg-border md:grid-cols-4",children:CV.map(t=>g.jsxs("li",{className:"min-h-64 bg-background p-7",children:[g.jsx("span",{className:"font-mono text-xs text-accent",children:t.n}),g.jsx("h3",{className:"mt-16 font-display text-2xl font-semibold",children:t.title}),g.jsx("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:t.copy})]},t.n))})]})})}const AV="/assets/kevin-bradshaw-CZJ3xShC.png";function RV(){return g.jsx("section",{className:"section-padding bg-secondary/30",children:g.jsxs("div",{className:"container-wide grid items-center gap-10 lg:grid-cols-[.82fr_1.18fr] lg:gap-20",children:[g.jsx("div",{className:"overflow-hidden rounded-md border border-border",children:g.jsx("img",{src:AV,alt:"Kevin Bradshaw, founder of Clear Path Solution",loading:"lazy",className:"aspect-[4/5] w-full object-cover object-top"})}),g.jsxs("div",{children:[g.jsx("p",{className:"editorial-eyebrow mb-4",children:"Local, direct, accountable"}),g.jsx("h2",{className:"font-display text-4xl font-semibold leading-tight sm:text-5xl",children:"Work directly with the person building your project."}),g.jsx("p",{className:"mt-6 text-lg leading-relaxed text-muted-foreground",children:"Clear Path Solution is led by
269Kevin Bradshaw in Quincy, Illinois. The approach is straightforward: understand the business, build the right tool, and make it easy for the owner to use."}),g.jsxs("p",{className:"mt-4 flex items-center gap-2 text-sm text-foreground/75",children:[g.jsx(Up,{className:"h-4 w-4 text-accent"}),"Quincy, Illinois · Serving the Tri-State area and beyond"]}),g.jsxs("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row",children:[g.jsx(Ge,{to:"/about",children:g.jsx(vt,{variant:"outline",size:"lg",children:"About Clear Path"})}),g.jsx(Ge,{to:"/contact",children:g.jsxs(vt,{size:"lg",children:["Talk With Kevin ",g.jsx(Jt,{})]})})]})]})]})})}var de;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},t.getValidEnumValues=s=>{const i=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return t.objectValues(o)},t.objectValues=s=>t.objectKeys(s).map(function(i){return s[i]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},t.find=(s,i)=>{for(const o of s)if(i(o))return o},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}t.joinValues=r,t.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(de||(de={}));var H0;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(H0||(H0={}));const F=de.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_r=t=>{switch(typeof t){case"undefined":return F.undefined;case"string":return F.string;case"number":return Number.isNaN(t)?F.nan:F.number;case"boolean":return F.boolean;case"function":return F.function;case"bigint":return F.bigint;case"symbol":return F.symbol;case"object":return Array.isArray(t)?F.array:t===null?F.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?F.promise:typeof Map<"u"&&t instanceof Map?F.map:typeof Set<"u"&&t instanceof Set?F.set:typeof Date<"u"&&t instanceof Date?F.date:F.object;default:return F.unknown}}
vendor: 4,685 bytes, line 269
269,I=de.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class nr extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),r}static assert(e){if(!(e instanceof nr))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,de.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];n[i]=n[i]||[],n[i].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}nr.create=t=>new nr(t);const Nf=(t,e)=>{let n;switch(t.code){case I.invalid_type:t.received===F.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case I.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,de.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:n=`Unrecognized key(s) in object: ${de.joinValues(t.keys,", ")}`;break;case I.invalid_union:n="Invalid input";break;case I.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${de.joinValues(t.options)}`;break;case I.invalid_enum_value:n=`Invalid enum value. Expected ${de.joinValues(t.options)}, received '${t.received}'`;break;case I.invalid_arguments:n="Invalid function arguments";break;case I.invalid_return_type:n="Invalid function return type";break;case I.invalid_date:n="Invalid date";break;case I.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:de.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case I.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case I.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case I.custom:n="Invalid input";break;case I.invalid_intersection_types:n="Intersection results could not be merged";break;case I.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case I.not_finite:n="Number must be finite";break;default:n=e.defaultError,de.assertNever(t)}return{message:n}};let OV=Nf;function jV(){return OV}const NV=t=>
vendor: 29,041 bytes, line 269
269{const{data:e,path:n,errorMaps:r,issueData:s}=t,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:e,defaultError:a}).message;return{...s,path:i,message:a}};function $(t,e){const n=jV(),r=NV({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Nf?void 0:Nf].filter(s=>!!s)});t.common.issues.push(r)}class $t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return J;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n){const i=await s.key,o=await s.value;r.push({key:i,value:o})}return $t.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return J;i.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:e.value,value:r}}}const J=Object.freeze({status:"aborted"}),Lo=t=>({status:"dirty",value:t}),Xt=t=>({status:"valid",value:t}),K0=t=>t.status==="aborted",q0=t=>t.status==="dirty",Ji=t=>t.status==="valid",Fc=t=>typeof Promise<"u"&&t instanceof Promise;var W;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(W||(W={}));class Xr{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const G0=(t,e)=>{if(Ji(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new nr(t.common.issues);return this._error=n,this._error}}};function se(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(o,a)=>{const{message:l}=t;return o.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:s}}class ce{get description(){return this._def.description}_getType(e){return _r(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:_r(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new $t,ctx:{common:e.parent.common,data:e.data,parsedType:_r(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(Fc(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_r(e)},s=this._parseSync({data:e,path:r.path,parent:r});return G0(r,s)}"~validate"(e){var r,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_r(e)};if(!this["~standard"].async)try{const i=this._parseSync({data:e,path:[],parent:n});return Ji(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(s=(r=i==null?void 0:i.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(i=>Ji(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_r(e)},s=this._parse({data:e,path:r.path,parent:r}),i=await(Fc(s)?s:Promise.resolve(s));return G0(r,i)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=e(s),a=()=>i.addIssue({code:I.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new eo({schema:this,typeName:X.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Hr.create(this,this._def)}nullable(){return to.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dn.create(this)}promise(){return Hc.create(this,this._def)}or(e){return zc.create([this,e],this._def)}and(e){return Wc.create(this,e,this._def)}transform(e){return new eo({...se(this._def),schema:this,typeName:X.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Df({...se(this._def),innerType:this,defaultValue:n,typeName:X.ZodDefault})}brand(){return new nU({typeName:X.ZodBranded,type:this,...se(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Lf({...se(this._def),innerType:this,catchValue:n,typeName:X.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Ym.create(this,e)}readonly(){return Mf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const IV=/^c[^\s-]{8,}$/i,DV=/^[0-9a-z]+$/,LV=/^[0-9A-HJKMNP-TV-Z]{26}$/i,MV=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,$V=/^[a-z0-9_-]{21}$/i,VV=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,UV=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,FV=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,BV="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Fd;const zV=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,WV=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,HV=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,KV=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,qV=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,GV=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Bk="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",YV=new RegExp(`^${Bk}$`);function zk(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function QV(t){return new RegExp(`^${zk(t)}$`)}function ZV(t){let e=`${Bk}T${zk(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function JV(t,e){return!!((e==="v4"||!e)&&zV.test(t)||(e==="v6"||!e)&&HV.test(t))}function XV(t,e){if(!VV.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function eU(t,e){return!!((e==="v4"||!e)&&WV.test(t)||(e==="v6"||!e)&&KV.test(t))}class Dr extends ce{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==F.string){const i=this._getOrReturnCtx(e);return $(i,{code:I.invalid_type,expected:F.string,received:i.parsedType}),J}const r=new $t;let s;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(s=this._getOrReturnCtx(e,s),$(s,{code:I.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")e.data.length>i.value&&(s=this._getOrReturnCtx(e,s),$(s,{code:I.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=e.data.length>i.value,a=e.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(e,s),o?$(s,{code:I.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&$(s,{code:I.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")FV.test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"email",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Fd||(Fd=new RegExp(BV,"u")),Fd.test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"emoji",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")MV.test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"uuid",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")$V.test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"nanoid",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")IV.test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"cuid",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")DV.test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"cuid2",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")LV.test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"ulid",code:I.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),$(s,{validation:"url",code:I.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"regex",code:I.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(e,s),$(s,{code:I.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(s=this._getOrReturnCtx(e,s),$(s,{code:I.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(s=this._getOrReturnCtx(e,s),$(s,{code:I.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?ZV(i).test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{code:I.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?YV.test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{code:I.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?QV(i).test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{code:I.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?UV.test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"duration",code:I.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?JV(e.data,i.version)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"ip",code:I.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?XV(e.data,i.alg)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"jwt",code:I.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?eU(e.data,i.version)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"cidr",code:I.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?qV.test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"base64",code:I.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?GV.test(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{validation:"base64url",code:I.invalid_string,message:i.message}),r.dirty()):de.assertNever(i);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(s=>e.test(s),{validation:n,code:I.invalid_string,...W.errToObj(r)})}_addCheck(e){return new Dr({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...W.errToObj(e)})}url(e){return this._addCheck({kind:"url",...W.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...W.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...W.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...W.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...W.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...W.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...W.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...W.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...W.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...W.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...W.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...W.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...W.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...W.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...W.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...W.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...W.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...W.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...W.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...W.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...W.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...W.errToObj(n)})}nonempty(e){return this.min(1,W.errToObj(e))}trim(){return new Dr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Dr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Dr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Dr.create=t=>new Dr({checks:[],typeName:X.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...se(t)});function tU(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,i=Number.parseInt(t.toFixed(s).replace(".","")),o=Number.parseInt(e.toFixed(s).replace(".",""));return i%o/10**s}class Na extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==F.number){const i=this._getOrReturnCtx(e);return $(i,{code:I.invalid_type,expected:F.number,received:i.parsedType}),J}let r;const s=new $t;for(const i of this._def.checks)i.kind==="int"?de.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),$(r,{code:I.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),$(r,{code:I.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),$(r,{code:I.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?tU(e.data,i.value)!==0&&(r=this._getOrReturnCtx(e,r),$(r,{code:I.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),$(r,{code:I.not_finite,message:i.message}),s.dirty()):de.assertNever(i);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,W.toString(n))}gt(e,n){return this.setLimit("min",e,!1,W.toString(n))}lte(e,n){return this.setLimit("max",e,!0,W.toString(n))}lt(e,n){return this.setLimit("max",e,!1,W.toString(n))}setLimit(e,n,r,s){return new Na({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:W.toString(s)}]})}_addCheck(e){return new Na({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:W.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:W.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:W.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:W.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:W.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:W.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:W.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:W.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:W.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&de.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}Na.create=t=>new Na({checks:[],typeName:X.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...se(t)});class Ia extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==F.bigint)return this._getInvalidInput(e);let r;const s=new $t;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),$(r,{code:I.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),$(r,{code:I.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),$(r,{code:I.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):de.assertNever(i);return{status:s.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return $(n,{code:I.invalid_type,expected:F.bigint,received:n.parsedType}),J}gte(e,n){return this.setLimit("min",e,!0,W.toString(n))}gt(e,n){return this.setLimit("min",e,!1,W.toString(n))}lte(e,n){return this.setLimit("max",e,!0,W.toString(n))}lt(e,n){return this.setLimit("max",e,!1,W.toString(n))}setLimit(e,n,r,s){return new Ia({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:W.toString(s)}]})}_addCheck(e){return new Ia({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:W.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:W.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:W.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:W.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:W.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Ia.create=t=>new Ia({checks:[],typeName:X.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...se(t)});class Y0 extends ce{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==F.boolean){const r=this._getOrReturnCtx(e);return $(r,{code:I.invalid_type,expected:F.boolean,received:r.parsedType}),J}return Xt(e.data)}}Y0.create=t=>new Y0({typeName:X.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...se(t)});class Bc extends ce{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==F.date){const i=this._getOrReturnCtx(e);return $(i,{code:I.invalid_type,expected:F.date,received:i.parsedType}),J}if(Number.isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return $(i,{code:I.invalid_date}),J}const r=new $t;let s;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(s=this._getOrReturnCtx(e,s),$(s,{code:I.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(s=this._getOrReturnCtx(e,s),$(s,{code:I.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):de.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Bc({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:W.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:W.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}Bc.create=t=>new Bc({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:X.ZodDate,...se(t)});class Q0 extends ce{_parse(e){if(this._getType(e)!==F.symbol){const r=this._getOrReturnCtx(e);return $(r,{code:I.invalid_type,expected:F.symbol,received:r.parsedType}),J}return Xt(e.data)}}Q0.create=t=>new Q0({typeName:X.ZodSymbol,...se(t)});class Z0 extends ce{_parse(e){if(this._getType(e)!==F.undefined){const r=this._getOrReturnCtx(e);return $(r,{code:I.invalid_type,expected:F.undefined,received:r.parsedType}),J}return Xt(e.data)}}Z0.create=t=>new Z0({typeName:X.ZodUndefined,...se(t)});class J0 extends ce{_parse(e){if(this._getType(e)!==F.null){const r=this._getOrReturnCtx(e);return $(r,{code:I.invalid_type,expected:F.null,received:r.parsedType}),J}return Xt(e.data)}}J0.create=t=>new J0({typeName:X.ZodNull,...se(t)});class X0 extends ce{constructor(){super(...arguments),this._any=!0}_parse(e){return Xt(e.data)}}X0.create=t=>new X0({typeName:X.ZodAny,...se(t)});class ew extends ce{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Xt(e.data)}}ew.create=t=>new ew({typeName:X.ZodUnknown,...se(t)});class es extends ce{_parse(e){const n=this._getOrReturnCtx(e);return $(n,{code:I.invalid_type,expected:F.never,received:n.parsedType}),J}}es.create=t=>new es({typeName:X.ZodNever,...se(t)});class tw extends ce{_parse(e){if(this._getType(e)!==F.undefined){const r=this._getOrReturnCtx(e);return $(r,{code:I.invalid_type,expected:F.void,received:r.parsedType}),J}return Xt(e.data)}}tw.create=t=>new tw({typeName:X.ZodVoid,...se(t)});class Dn extends ce{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==F.array)return $(n,{code:I.invalid_type,expected:F.array,received:n.parsedType}),J;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(o||a)&&($(n,{code:o?I.too_big:I.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&($(n,{code:I.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&($(n,{code:I.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new Xr(n,o,n.path,a)))).then(o=>$t.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new Xr(n,o,n.path,a)));return $t.mergeArray(r,i)}
vendor: 5,068 bytes, line 269
269get element(){return this._def.type}min(e,n){return new Dn({...this._def,minLength:{value:e,message:W.toString(n)}})}max(e,n){return new Dn({...this._def,maxLength:{value:e,message:W.toString(n)}})}length(e,n){return new Dn({...this._def,exactLength:{value:e,message:W.toString(n)}})}nonempty(e){return this.min(1,e)}}Dn.create=(t,e)=>new Dn({type:t,minLength:null,maxLength:null,exactLength:null,typeName:X.ZodArray,...se(e)});function si(t){if(t instanceof De){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=Hr.create(si(r))}return new De({...t._def,shape:()=>e})}else return t instanceof Dn?new Dn({...t._def,type:si(t.element)}):t instanceof Hr?Hr.create(si(t.unwrap())):t instanceof to?to.create(si(t.unwrap())):t instanceof Vs?Vs.create(t.items.map(e=>si(e))):t}class De extends ce{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=de.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==F.object){const c=this._getOrReturnCtx(e);return $(c,{code:I.invalid_type,expected:F.object,received:c.parsedType}),J}const{status:r,ctx:s}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof es&&this._def.unknownKeys==="strip"))for(const c in s.data)o.includes(c)||a.push(c);const l=[];for(const c of o){const u=i[c],d=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Xr(s,d,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof es){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(c==="strict")a.length>0&&($(s,{code:I.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Xr(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,h=await u.value;c.push({key:d,value:h,alwaysSet:u.alwaysSet})}return c}).then(c=>$t.mergeObjectSync(r,c)):$t.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(e){return W.errToObj,new De({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var i,o;const s=((o=(i=this._def).errorMap)==null?void 0:o.call(i,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:W.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new De({...this._def,unknownKeys:"strip"})}passthrough(){return new De({...this._def,unknownKeys:"passthrough"})}extend(e){return new De({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new De({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:X.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new De({...this._def,catchall:e})}pick(e){const n={};for(const r of de.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new De({...this._def,shape:()=>n})}omit(e){const n={};for(const r of de.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new De({...this._def,shape:()=>n})}deepPartial(){return si(this)}partial(e){const n={};for(const r of de.objectKeys(this.shape)){const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}return new De({...this._def,shape:()=>n})}required(e){const n={};for(const r of de.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Hr;)i=i._def.innerType;n[r]=i}return new De({...this._def,shape:()=>n})}keyof(){return Wk(de.objectKeys(this.shape))}}De.create=(t,e)=>new De({shape:()=>t,unknownKeys:"strip",catchall:es.create(),typeName:X.ZodObject,...se(e)});De.strictCreate=(t,e)=>new De({shape:()=>t,unknownKeys:"strict",catchall:es.create(),typeName:X.ZodObject,...se(e)});De.lazycreate=(t,e)=>new De({shape:t,unknownKeys:"strip",catchall:es.create(),typeName:X.ZodObject,...se(e)});class zc extends ce{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new nr(a.ctx.common.issues));return $(n,{code:I.invalid_union,unionErrors:o}),J}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;
vendor: 4,993 bytes, line 269
269const a=o.map(l=>new nr(l));return $(n,{code:I.invalid_union,unionErrors:a}),J}}get options(){return this._def.options}}zc.create=(t,e)=>new zc({options:t,typeName:X.ZodUnion,...se(e)});function If(t,e){const n=_r(t),r=_r(e);if(t===e)return{valid:!0,data:t};if(n===F.object&&r===F.object){const s=de.objectKeys(e),i=de.objectKeys(t).filter(a=>s.indexOf(a)!==-1),o={...t,...e};for(const a of i){const l=If(t[a],e[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(n===F.array&&r===F.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let i=0;i<t.length;i++){const o=t[i],a=e[i],l=If(o,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===F.date&&r===F.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Wc extends ce{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=(i,o)=>{if(K0(i)||K0(o))return J;const a=If(i.value,o.value);return a.valid?((q0(i)||q0(o))&&n.dirty(),{status:n.value,value:a.data}):($(r,{code:I.invalid_intersection_types}),J)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Wc.create=(t,e,n)=>new Wc({left:t,right:e,typeName:X.ZodIntersection,...se(n)});class Vs extends ce{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==F.array)return $(r,{code:I.invalid_type,expected:F.array,received:r.parsedType}),J;if(r.data.length<this._def.items.length)return $(r,{code:I.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&r.data.length>this._def.items.length&&($(r,{code:I.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Xr(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>$t.mergeArray(n,o)):$t.mergeArray(n,i)}get items(){return this._def.items}rest(e){return new Vs({...this._def,rest:e})}}Vs.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Vs({items:t,typeName:X.ZodTuple,rest:null,...se(e)})};class nw extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==F.map)return $(r,{code:I.invalid_type,expected:F.map,received:r.parsedType}),J;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,l],c)=>({key:s._parse(new Xr(r,a,r.path,[c,"key"])),value:i._parse(new Xr(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return J;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return J;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}nw.create=(t,e,n)=>new nw({valueType:e,keyType:t,typeName:X.ZodMap,...se(n)});class Da extends ce{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==F.set)return $(r,{code:I.invalid_type,expected:F.set,received:r.parsedType}),J;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&($(r,{code:I.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&($(r,{code:I.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return J;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>i._parse(new Xr(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(e,n){return new Da({...this._def,minSize:{value:e,message:W.toString(n)}})}max(e,n){return new Da({...this._def,maxSize:{value:e,message:W.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}Da.create=(t,e)=>new Da({valueType:t,minSize:null,maxSize:null,typeName:X.ZodSet,...se(e)});class rw extends ce{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}rw.create=(t,e)=>new rw({getter:t,typeName:X.ZodLazy,...se(e)});class sw extends ce{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return $(n,{received:n.data,code:I.invalid_literal,expected:this._def.value}),J}
vendor: 5,343 bytes, line 269
269return{status:"valid",value:e.data}}get value(){return this._def.value}}sw.create=(t,e)=>new sw({value:t,typeName:X.ZodLiteral,...se(e)});function Wk(t,e){return new Xi({values:t,typeName:X.ZodEnum,...se(e)})}class Xi extends ce{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return $(n,{expected:de.joinValues(r),received:n.parsedType,code:I.invalid_type}),J}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return $(n,{received:n.data,code:I.invalid_enum_value,options:r}),J}return Xt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return Xi.create(e,{...this._def,...n})}exclude(e,n=this._def){return Xi.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}Xi.create=Wk;class iw extends ce{_parse(e){const n=de.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==F.string&&r.parsedType!==F.number){const s=de.objectValues(n);return $(r,{expected:de.joinValues(s),received:r.parsedType,code:I.invalid_type}),J}if(this._cache||(this._cache=new Set(de.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const s=de.objectValues(n);return $(r,{received:r.data,code:I.invalid_enum_value,options:s}),J}return Xt(e.data)}get enum(){return this._def.values}}iw.create=(t,e)=>new iw({values:t,typeName:X.ZodNativeEnum,...se(e)});class Hc extends ce{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==F.promise&&n.common.async===!1)return $(n,{code:I.invalid_type,expected:F.promise,received:n.parsedType}),J;const r=n.parsedType===F.promise?n.data:Promise.resolve(n.data);return Xt(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Hc.create=(t,e)=>new Hc({type:t,typeName:X.ZodPromise,...se(e)});class eo extends ce{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===X.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,i={addIssue:o=>{$(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return J;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?J:l.status==="dirty"||n.value==="dirty"?Lo(l.value):l});{if(n.value==="aborted")return J;const a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?J:a.status==="dirty"||n.value==="dirty"?Lo(a.value):a}}if(s.type==="refinement"){const o=a=>{const l=s.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?J:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?J:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ji(o))return J;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>Ji(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):J);de.assertNever(s)}}eo.create=(t,e,n)=>new eo({schema:t,typeName:X.ZodEffects,effect:e,...se(n)});eo.createWithPreprocess=(t,e,n)=>new eo({schema:e,effect:{type:"preprocess",transform:t},typeName:X.ZodEffects,...se(n)});class Hr extends ce{_parse(e){return this._getType(e)===F.undefined?Xt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Hr.create=(t,e)=>new Hr({innerType:t,typeName:X.ZodOptional,...se(e)});class to extends ce{_parse(e){return this._getType(e)===F.null?Xt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}to.create=(t,e)=>new to({innerType:t,typeName:X.ZodNullable,...se(e)});class Df extends ce{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===F.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Df.create=(t,e)=>new Df({innerType:t,typeName:X.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...se(e)});class Lf extends ce{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Fc(s)?s.then(i=>
vendor: 3,988 bytes, line 269
269({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new nr(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new nr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Lf.create=(t,e)=>new Lf({innerType:t,typeName:X.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...se(e)});class ow extends ce{_parse(e){if(this._getType(e)!==F.nan){const r=this._getOrReturnCtx(e);return $(r,{code:I.invalid_type,expected:F.nan,received:r.parsedType}),J}return{status:"valid",value:e.data}}}ow.create=t=>new ow({typeName:X.ZodNaN,...se(t)});class nU extends ce{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ym extends ce{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?J:i.status==="dirty"?(n.dirty(),Lo(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?J:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new Ym({in:e,out:n,typeName:X.ZodPipeline})}}class Mf extends ce{_parse(e){const n=this._def.innerType._parse(e),r=s=>(Ji(s)&&(s.value=Object.freeze(s.value)),s);return Fc(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Mf.create=(t,e)=>new Mf({innerType:t,typeName:X.ZodReadonly,...se(e)});De.lazycreate;var X;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(X||(X={}));const Bd=Dr.create;es.create;Dn.create;const rU=De.create;De.strictCreate;zc.create;Wc.create;Vs.create;Xi.create;Hc.create;Hr.create;to.create;const $f=b.forwardRef(({className:t,type:e,...n},r)=>g.jsx("input",{type:e,className:Ct("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:r,...n}));$f.displayName="Input";var sU="Label",Hk=b.forwardRef((t,e)=>g.jsx(We.label,{...t,ref:e,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Hk.displayName=sU;var Kk=Hk;const iU=Vp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ql=b.forwardRef(({className:t,...e},n)=>g.jsx(Kk,{ref:n,className:Ct(iU(),t),...e}));Ql.displayName=Kk.displayName;const qk=b.forwardRef(({className:t,...e},n)=>g.jsx("textarea",{className:Ct("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
269ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:n,...e}));qk.displayName="Textarea";const oU=["viagra","cialis","casino","porn","xxx","bitcoin","crypto investment","forex","loan offer","seo services","rank your website","guest post","backlink","make money fast","work from home opportunity","weight loss pill","кÑпиÑÑ","поможем","недоÑого"],aU=/\b(?:https?:\/\/|www\.)\S+/gi,lU=/[\u0400-\u04FF\u0500-\u052F\u4E00-\u9FFF\u3040-\u30FF]/;function cU(t){const e=Object.values(t).filter(Boolean).join(" ").toLowerCase();if((e.match(aU)||[]).length>=3)return"Too many links";for(const s of oU)if(e.includes(s))return"Blocked content";const r=(t.name||"").trim();return r&&lU.test(r)?"Invalid characters in name":/(.)\1{9,}/.test(e)?"Repeated characters":null}const Vf="cps_form_rl",uU=3,Gk=10*60*1e3;function dU(){try{const t=localStorage.getItem(Vf),e=Date.now();return(t?JSON.parse(t):[]).filter(s=>e-s<Gk).length>=uU}catch{return!1}}function hU(){try{const t=localStorage.getItem(Vf),e=Date.now(),r=(t?JSON.parse(t):[]).filter(s=>e-s<Gk);r.push(e),localStorage.setItem(Vf,JSON.stringify(r))}catch{}}const fU=2500;function pU(){const t=b.useRef(Date.now()),[e,n]=b.useState(""),r=b.useCallback(i=>{if(e.trim().length>0)return{ok:!1,reason:"honeypot"};if(Date.now()-t.current<fU)return{ok:!1,reason:"Please take a moment to review before submitting."};if(dU())return{ok:!1,reason:"You've submitted a lot recently. Please wait a few minutes and try again."};const o=cU(i);return o?{ok:!1,reason:o}:(hU(),{ok:!0})},[e]);return{HoneypotField:b.useCallback(()=>g.jsx("div",{"aria-hidden":"true",style:{position:"absolute",left:"-9999px",top:"auto",width:1,height:1,overflow:"hidden",opacity:0,pointerEvents:"none"},children:g.jsxs("label",{htmlFor:"cps_website_url",children:["Website (leave this empty)",g.jsx("input",{id:"cps_website_url",name:"website_url",type:"text",tabIndex:-1,autoComplete:"off",value:e,onChange:i=>n(i.target.value)})]})}),[e]),checkSpam:r}}const mU=rU({name:Bd().trim().min(1,"Your name is required").max(100),email:Bd().trim().email("Please enter a valid email").max(255),message:Bd().trim().min(1,"Tell us a bit about what you need").max(1e3)});function gU(){const{toast:t}=Ob(),[e,n]=b.useState(!1),[r,s]=b.useState(!1),[i,o]=b.useState({name:"",email:"",message:""}),[a,l]=b.useState({}),{HoneypotField:c,checkSpam:u}=pU(),d=async h=>{h.preventDefault(),l({});const f=mU.safeParse(i);if(!f.success){const p={};f.error.errors.forEach(x=>{x.path[0]&&(p[String(x.path[0])]=x.message)}),l(p);return}const w=u({name:f.data.name,email:f.data.email,message:f.data.message});if(w.ok===!1){const p=w.reason;p!=="honeypot"?t({title:"Could not submit",description:p,variant:"destructive"}):s(!0);return}n(!0);try{const{error:p}=await br.from("leads").insert({name:f.data.name,contact:f.data.email,business_type:"Quick Contact",help_needed:f.data.message,wants_sample:!1});if(p)throw p;br.functions.invoke("notify-new-lead",{body:{name:f.data.name,contact:f.data.email,businessType:"Quick Contact",helpNeeded:f.data.message}}).catch(()=>{}),s(!0),t({title:"Message sent!",description:"We'll get back to you within 1 business day."})}catch(p){console.error(p),t({title:"Something went wrong",description:"Please try again or email [email protected].",variant:"destructive"})}finally{n(!1)}};return g.jsx("section",{id:"quick-contact",className:"section-padding bg-background relative overflow-hidden",children:g.jsxs("div",{className:"container-narrow relative",children:[g.jsxs(Zi.div,{className:"text-center max-w-xl mx-auto mb-8",initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[g.jsxs("span",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full border border-accent/30 bg-accent/10 text-accent text-sm font-semibold mb-4",children:[g.jsx(c_,{className:"w-3.5 h-3.5"}),"Start a project"]}),g.jsx("h2",{className:"font-display text-3xl sm:text-4xl font-black text-foreground mb-3",children:"Tell us what youâre building."}),g.jsx("p",{className:"text-muted-foreground",children:"Three fields. Kevin will reply within one business day."})]}),g.jsx(Zi.form,{onSubmit:d,className:"rounded-md border border-border bg-card p-6 sm:p-8 space-y-4 max-w-xl mx-auto",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:r?g.jsxs("div",{className:"text-center py-8",children:[g.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 roun
269ded-full bg-accent/15 border border-accent/30 mb-4",children:g.jsx(LP,{className:"w-7 h-7 text-accent"})}),g.jsxs("h3",{className:"font-display text-2xl font-bold text-foreground mb-2",children:["Thanks ",i.name.split(" ")[0]," â message received!"]}),g.jsxs("p",{className:"text-muted-foreground",children:["We'll reply to ",g.jsx("span",{className:"text-foreground font-semibold",children:i.email})," within 1 business day."]})]}):g.jsxs(g.Fragment,{children:[g.jsx(c,{}),g.jsxs("div",{children:[g.jsx(Ql,{htmlFor:"qc-name",children:"Your name *"}),g.jsx($f,{id:"qc-name",value:i.name,onChange:h=>o({...i,name:h.target.value}),className:"mt-1.5",maxLength:100}),a.name&&g.jsx("p",{className:"text-xs text-destructive mt-1",children:a.name})]}),g.jsxs("div",{children:[g.jsx(Ql,{htmlFor:"qc-email",children:"Email *"}),g.jsx($f,{id:"qc-email",type:"email",value:i.email,onChange:h=>o({...i,email:h.target.value}),className:"mt-1.5",maxLength:255}),a.email&&g.jsx("p",{className:"text-xs text-destructive mt-1",children:a.email})]}),g.jsxs("div",{children:[g.jsx(Ql,{htmlFor:"qc-message",children:"How can we help? *"}),g.jsx(qk,{id:"qc-message",rows:4,placeholder:"A few words about your business and what you're looking forâ¦",value:i.message,onChange:h=>o({...i,message:h.target.value}),className:"mt-1.5",maxLength:1e3}),a.message&&g.jsx("p",{className:"text-xs text-destructive mt-1",children:a.message})]}),g.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:items-center sm:justify-between pt-1",children:[g.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[g.jsx(Fp,{className:"w-3.5 h-3.5 text-accent"}),"We never share your info."]}),g.jsxs(vt,{type:"submit",variant:"tech",size:"lg",disabled:e,className:"font-bold",children:[g.jsx(zP,{className:"w-4 h-4"}),e?"Sendingâ¦":"Send Message"]})]})]})})]})})}const yU=()=>g.jsxs(W4,{children:[g.jsx(H4,{title:"Web Design & Business Apps in Quincy, IL | Clear Path",description:"Clear Path Solution builds custom websites, business apps, local SEO foundations, and practical automations for local businesses in Quincy, Illinois.",canonical:"/"}),g.jsx(K4,{data:{"@type":"LocalBusiness",name:"Clear Path Solution",description:"Custom websites, business apps, local SEO foundations, and practical automations for local businesses in Quincy, Illinois.",url:"https://www.clear-path-solution.com",address:{"@type":"PostalAddress",addressLocality:"Quincy",addressRegion:"IL",postalCode:"62301",addressCountry:"US"},areaServed:["Quincy, IL","Hannibal, MO","Tri-State Area"],priceRange:"$$",sameAs:[],hasOfferCatalog:{"@type":"OfferCatalog",name:"Clear Path Solution Services",itemListElement:[{"@type":"Offer",itemOffered:{"@type":"Service",name:"Custom Website Design"}},{"@type":"Offer",itemOffered:{"@type":"Service",name:"Landing Pages for Local Businesses"}},{"@type":"Offer",itemOffered:{"@type":"Service",name:"Custom Business Apps"}},{"@type":"Offer",itemOffered:{"@type":"Service",name:"Practical Business Automations"}},{"@type":"Offer",itemOffered:{"@type":"Service",name:"Local SEO & Google Business Profile Support"}}]}}}),g.jsx(G4,{}),g.jsx(J4,{}),g.jsx(X4,{}),g.jsx(rV,{}),g.jsx(PV,{}),g.jsx(RV,{}),g.jsx(tV,{}),g.jsx(TV,{}),g.jsx(gU,{})]});function xe(t,e=2,n=400){return b.lazy(async()=>{let r;for(let i=0;i<=e;i++)try{return await t()}catch(o){r=o;const a=String((o==null?void 0:o.message)||o);if(!/Failed to fetch dynamically imported module/i.test(a)&&!/Importing a module script failed/i.test(a)&&!/ChunkLoadError/i.test(a))throw o;i<e&&await new Promise(l=>setTimeout(l,n*(i+1)))}const s=new URL(window.location.href);throw s.searchParams.set("_r",String(Date.now())),window.location.replace(s.toString()),r})}const vU=xe(()=>ve(()=>import("./Services-CEACFq8b.js"),__vite__mapDeps([0,1,2,3]))),wU=xe(()=>ve(()=>import("./Pricing-DOk3RrDa.js"),__vite__mapDeps([4,1,2,5,6,7,8]))),xU=xe(()=>ve(()=>import("./Samples-DXme0zT2.js"),__vite__mapDeps([9,10,6,11,12,13,14,15,5,7]))),bU=xe(()=>ve(()=>import("./About-CqZrdcvK.js"),__vite__mapDeps([16,1,2]))),_U=xe(()=>ve(()=>import("./HowItWorks-9I44O3os.js"),__vite__mapDeps([17,1,2]))),SU=xe(()=>ve(()=>import("./FAQ-Blml_YW2.js"),__vite__mapDeps([18,1,2]))),kU=xe(()=>ve(()=>import("./Contact-CQlfV1Gx.js"),__vite__mapDeps([19,1,20]))),EU=xe(()=>ve(()=>import("./Auth-DeW7wQjw.js"),__vite__mapDeps([21,22,23,24,25,15]))),TU=xe(()=>ve(()=>import("./Admin-DPUHaFTh.js"),__vite__mapDeps([26,14,10,8,12]))),CU=xe(()=>ve(()=>import("./NotFound-rNa4sUdZ.js"),[])),PU=xe(()=>ve(()=>import("./PaymentSuccess-HYYmSycj.js"),__vite__mapDeps([27,28,29,5]))),AU=xe(()=>ve(()=>import("./SignIn-D6oW7w8E.js"),__vite__mapDeps([30,22,24,25,15,5]))),RU=xe(()=>ve(()=>import("./SignUp-CY-8gNi5.js"),__vite__mapDeps([31,22,24,25,15,5]))),OU=xe(()=>ve(()=>import("./ResetPassword-D8YxFrfy.js"),__vite__mapDeps([32,5,29,24,25,15]))),jU=xe(()=>ve(()=>import("./Dashboard-BMSgqK5f.js"),__vite__mapDeps([33,28,13,34,5,20]))),NU=xe(()=>ve(()=>import("./Technology-CBeDxhUO.js"),__vite__mapDeps([35,1,2,36,24]))),IU=xe(()=>ve(()=>import("./CaseStudies-CDjMEudB.js"),__vite__mapDeps([37,1,2,36]))),DU=xe(()=>ve(()=>import("./Blog-Bkc1AETw.js"),__vite__mapDeps([38,13,39,34,2,20,5]))),LU=xe(()=>ve(()=>import("./BlogPost-Ry49aF4Y.js").then(t=>t.B),__vite__mapDeps([40,39,34,13,2,20,10]))),MU=xe(()=>ve(()=>import("./Unsubscribe-BDiWXH3C.js"),__vite__mapDeps([41,34]))),$U=xe(()=>ve(()=>import("./QuincyWebDesign-C4nJ9jXU.js"),__vite__mapDeps([42,7,5,8,12]))),VU=xe(()=>ve(()=>import("./IndustriesHub-D0Ls_2Mf.js"),__vite__mapDeps([43,1,2,3,11]))),UU=xe(()=>ve(()=>import("./Roofing-5wZpXCrN.js"),__vite__mapDeps([44,45,2,5]))),FU=xe(()=>ve(()=>import("./Plumbing-By51YKwB.js"),__vite__mapDeps([46,45,2,5]))),BU=xe(()=>ve(()=>import("./LawnCare-Bg-XYDil.js"),__vite__mapDeps([47,45,2,5]))),zU=xe(()=>ve(()=>import("./HVAC-D2fd_urQ.js"),__vite__mapDeps([48,45,2,5]))),WU=new yj;function HU(){return g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:g.jsx("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent roun
269ded-full animate-spin"})})}function KU(){return g.jsx(b.Suspense,{fallback:g.jsx(HU,{}),children:g.jsxs(lN,{children:[g.jsx(me,{path:"/",element:g.jsx(yU,{})}),g.jsx(me,{path:"/services",element:g.jsx(vU,{})}),g.jsx(me,{path:"/technology",element:g.jsx(NU,{})}),g.jsx(me,{path:"/case-studies",element:g.jsx(IU,{})}),g.jsx(me,{path:"/blog",element:g.jsx(DU,{})}),g.jsx(me,{path:"/blog/:slug",element:g.jsx(LU,{})}),g.jsx(me,{path:"/pricing",element:g.jsx(wU,{})}),g.jsx(me,{path:"/samples",element:g.jsx(xU,{})}),g.jsx(me,{path:"/about",element:g.jsx(bU,{})}),g.jsx(me,{path:"/how-it-works",element:g.jsx(_U,{})}),g.jsx(me,{path:"/faq",element:g.jsx(SU,{})}),g.jsx(me,{path:"/contact",element:g.jsx(kU,{})}),g.jsx(me,{path:"/auth",element:g.jsx(EU,{})}),g.jsx(me,{path:"/admin",element:g.jsx(TU,{})}),g.jsx(me,{path:"/payment-success",element:g.jsx(PU,{})}),g.jsx(me,{path:"/sign-in",element:g.jsx(AU,{})}),g.jsx(me,{path:"/sign-up",element:g.jsx(RU,{})}),g.jsx(me,{path:"/reset-password",element:g.jsx(OU,{})}),g.jsx(me,{path:"/dashboard",element:g.jsx(jU,{})}),g.jsx(me,{path:"/unsubscribe",element:g.jsx(MU,{})}),g.jsx(me,{path:"/quincy-il-website-design",element:g.jsx($U,{})}),g.jsx(me,{path:"/industries",element:g.jsx(VU,{})}),g.jsx(me,{path:"/industries/roofing",element:g.jsx(UU,{})}),g.jsx(me,{path:"/industries/plumbing",element:g.jsx(FU,{})}),g.jsx(me,{path:"/industries/lawn-care",element:g.jsx(BU,{})}),g.jsx(me,{path:"/industries/hvac",element:g.jsx(zU,{})}),g.jsx(me,{path:"*",element:g.jsx(CU,{})})]})})}const qU=()=>g.jsx(wj,{client:WU,children:g.jsx(tD,{children:g.jsxs(qO,{children:[g.jsx(PA,{}),g.jsx(oR,{}),g.jsxs(gN,{children:[g.jsx(rD,{}),g.jsx(KU,{}),g.jsx(pk,{})]})]})})}),aw="cps_chunk_reload_at",GU=1e4;function Yk(t){if(!/Failed to fetch dynamically imported module/i.test(t)&&!/Importing a module script failed/i.test(t)&&!/ChunkLoadError/i.test(t))return;const e=Number(sessionStorage.getItem(aw)||0);if(Date.now()-e<GU)return;sessionStorage.setItem(aw,String(Date.now()));const n=new URL(window.location.href);n.searchParams.set("_r",String(Date.now())),window.location.replace(n.toString())}window.addEventListener("error",t=>Yk(t.message||""));window.addEventListener("unhandledrejection",t=>Yk(String(t.reason&&t.reason.message||t.reason||"")));Rb(document.getElementById("root")).render(g.jsx(qU,{}));export{j as $,Jt as A,vt as B,IP as C,oF as D,$P as E,pU as F,Ql as G,zP as H,$f as I,K4 as J,l_ as K,W4 as L,c_ as M,rU as N,Bd as O,Po as P,br as Q,nD as R,H4 as S,qk as T,im as U,FC as V,U4 as W,Bp as X,QU as Y,gw as Z,o_ as _,Ge as a,KP as a0,Xy as a1,xu as a2,aF as a3,Dp as a4,ZU as a5,cu as a6,b_ as a7,Vb as a8,bc as a9,Ib as aa,ir as ab,Vh as ac,xk as ad,BP as ae,ve as af,sF as ag,iF as ah,MP as ai,XU as aj,Vp as ak,V4 as al,VP as b,u_ as c,NP as d,we as e,kV as f,Vk as g,Uk as h,Fk as i,g as j,HP as k,Ct as l,Zi as m,io as n,dV as o,We as p,lu as q,b as r,$e as s,Gr as t,Mt as u,Ln as v,Up as w,LP as x,AV as y,Ob as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.