PageSourceSearch

https://www.learnair.com/assets/index-DKK002Nk.js

js learnair.com collected 2026-10-06 11:18:19 UTC 652,308 bytes, 89 lines download raw bytes

vendor: 5,484 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-C598TOn-.js","assets/Header-BYGLr43S.js","assets/Logo-B3X8PFOJ.js","assets/Footer-B1siaE-W.js","assets/HeroMountain-CHCVagPR.js","assets/hero-mountain-C0W1k_ZT.js","assets/TrustBar-DSEWvETJ.js","assets/oregon-workforce-combined.png.asset-CxQ-5vlV.js","assets/useQuery-DmZfuwzW.js","assets/check-CKA5OOyr.js","assets/CaseStudies-DOvspgOd.js","assets/arrow-right-ozK3RF2Q.js","assets/about-BNRuRogt.js","assets/users-BrGqU5hW.js","assets/blog-CijeGKRu.js","assets/rss-DIq-2Bbt.js","assets/clock-C5Arih1i.js","assets/brand-guidelines-B_qLQkuz.js","assets/Main_LearnAIR_logo-4.png.asset-Bru0iryS.js","assets/external-link-DAQe88nr.js","assets/chatgpt-7-pjPlBn.js","assets/forbusinesses-BGwyVMOf.js","assets/learnair-star-sky-white.png.asset-BOiHT8ON.js","assets/forhumans-ablU0Gla.js","assets/forveterans-Bjnu6q4P.js","assets/foundation-series-Cjm5Pd9r.js","assets/media-events-C4aR-8uu.js","assets/DH.png.asset-8aMAYKol.js","assets/workforce-Of1sf9Ds.js","assets/blog._slug-gj0J-HM4.js","assets/blog._slug-B1hF7Iwa.js","assets/blog._slug-BDp_di7b.js","assets/case-studies._slug-BxE47x-K.js","assets/DhFooter-CMjmz0OV.js","assets/DhLockup-NNzUJhMo.js","assets/EdcoLockup-CMePqe7_.js","assets/EdcoFooter-guvkLwLg.js","assets/IssiLockup-6JpLEogt.js","assets/IssiFooter-C6WphU2p.js","assets/case-studies._slug-Cn6C6SkB.js","assets/edco.index-DbDVMxmo.js","assets/ImageDeck-5bGSgezQ.js","assets/edco-deck-DS6ifEB1.js","assets/slide-7.jpg.asset-DayrfbCr.js","assets/edco.deck-B6G8jTOx.js","assets/issi.index-DnMIq1sp.js","assets/issi.deck-CpdQ1CB5.js","assets/msp-summit.index-5MmgTOv9.js","assets/GatedShell-RitZudqT.js","assets/MspSummitLockup-CciwK3qL.js","assets/msp-summit.deck-B9F7l5h8.js","assets/training-deck-CHa68yOC.js","assets/nwrpca.index-CGa5vGKz.js","assets/nwrpca.deck-Pbvu1SZP.js","assets/products._slug-BvDLm6Mm.js","assets/products._slug-pXOf7Qhw.js","assets/team._slug-D6iJ0sm-.js","assets/team._slug-BcwtZuGe.js","assets/training.index-CfDOJqn1.js","assets/training.deck-mA66WE6Q.js","assets/partners.dh.index-lBlNKknF.js","assets/dh-deck-BjwMC6dG.js","assets/partners.dh.deck-DodpRX_c.js"])))=>i.map(i=>d[i]);
2function Z_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Od={exports:{}},bs={};var qm;function eS(){if(qm)return bs;qm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(s,l,c){var u=null;if(c!==void 0&&(u=""+c),l.key!==void 0&&(u=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:e,type:s,key:u,ref:l!==void 0?l:null,props:c}}return bs.Fragment=t,bs.jsx=a,bs.jsxs=a,bs}var Vm;function tS(){return Vm||(Vm=1,Od.exports=eS()),Od.exports}var U=tS(),kd={exports:{}},ue={};var Gm;function nS(){if(Gm)return ue;Gm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),b=Symbol.iterator;function w(k){return k===null||typeof k!="object"?null:(k=b&&k[b]||k["@@iterator"],typeof k=="function"?k:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,A={};function E(k,q,J){this.props=k,this.context=q,this.refs=A,this.updater=J||S}E.prototype.isReactComponent={},E.prototype.setState=function(k,q){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,q,"setState")},E.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function C(){}C.prototype=E.prototype;function x(k,q,J){this.props=k,this.context=q,this.refs=A,this.updater=J||S}var M=x.prototype=new C;M.constructor=x,R(M,E.prototype),M.isPureReactComponent=!0;var $=Array.isArray;function G(){}var D={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function Y(k,q,J){var W=J.ref;return{$$typeof:e,type:k,key:q,ref:W!==void 0?W:null,props:J}}function se(k,q){return Y(k.type,q,k.props)}function re(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function oe(k){var q={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(J){return q[J]})}var ot=/\/+/g;function $e(k,q){return typeof k=="object"&&k!==null&&k.key!=null?oe(""+k.key):q.toString(36)}function Je(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(G,G):(k.status="pending",k.then(function(q){k.status==="pending"&&(k.status="fulfilled",k.value=q)},function(q){k.status==="pending"&&(k.status="rejected",k.reason=q)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function z(k,q,J,W,ne){var ge=typeof k;(ge==="undefined"||ge==="boolean")&&(k=null);var Se=!1;if(k===null)Se=!0;else switch(ge){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(k.$$typeof){case e:case t:Se=!0;break;case y:return Se=k._init,z(Se(k._payload),q,J,W,ne)}}if(Se)return ne=ne(k),Se=W===""?"."+$e(k,0):W,$(ne)?(J="",Se!=null&&(J=Se.replace(ot,"$&/")+"/"),z(ne,q,J,"",function(Rn){return Rn}
vendor: 15,899 bytes, line 2
2)):ne!=null&&(re(ne)&&(ne=se(ne,J+(ne.key==null||k&&k.key===ne.key?"":(""+ne.key).replace(ot,"$&/")+"/")+Se)),q.push(ne)),1;Se=0;var Qe=W===""?".":W+":";if($(k))for(var Ne=0;Ne<k.length;Ne++)W=k[Ne],ge=Qe+$e(W,Ne),Se+=z(W,q,J,ge,ne);else if(Ne=w(k),typeof Ne=="function")for(k=Ne.call(k),Ne=0;!(W=k.next()).done;)W=W.value,ge=Qe+$e(W,Ne++),Se+=z(W,q,J,ge,ne);else if(ge==="object"){if(typeof k.then=="function")return z(Je(k),q,J,W,ne);throw q=String(k),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Se}function K(k,q,J){if(k==null)return k;var W=[],ne=0;return z(k,W,"","",function(ge){return q.call(J,ge,ne++)}),W}function ie(k){if(k._status===-1){var q=k._result;q=q(),q.then(function(J){(k._status===0||k._status===-1)&&(k._status=1,k._result=J)},function(J){(k._status===0||k._status===-1)&&(k._status=2,k._result=J)}),k._status===-1&&(k._status=0,k._result=q)}if(k._status===1)return k._result.default;throw k._result}var Te=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Oe={map:K,forEach:function(k,q,J){K(k,function(){q.apply(this,arguments)},J)},count:function(k){var q=0;return K(k,function(){q++}),q},toArray:function(k){return K(k,function(q){return q})||[]},only:function(k){if(!re(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return ue.Activity=m,ue.Children=Oe,ue.Component=E,ue.Fragment=a,ue.Profiler=l,ue.PureComponent=x,ue.StrictMode=s,ue.Suspense=p,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,ue.__COMPILER_RUNTIME={__proto__:null,c:function(k){return D.H.useMemoCache(k)}},ue.cache=function(k){return function(){return k.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(k,q,J){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var W=R({},k.props),ne=k.key;if(q!=null)for(ge in q.key!==void 0&&(ne=""+q.key),q)!F.call(q,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&q.ref===void 0||(W[ge]=q[ge]);var ge=arguments.length-2;if(ge===1)W.children=J;else if(1<ge){for(var Se=Array(ge),Qe=0;Qe<ge;Qe++)Se[Qe]=arguments[Qe+2];W.children=Se}return Y(k.type,ne,W)},ue.createContext=function(k){return k={$$typeof:u,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:c,_context:k},k},ue.createElement=function(k,q,J){var W,ne={},ge=null;if(q!=null)for(W in q.key!==void 0&&(ge=""+q.key),q)F.call(q,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ne[W]=q[W]);var Se=arguments.length-2;if(Se===1)ne.children=J;else if(1<Se){for(var Qe=Array(Se),Ne=0;Ne<Se;Ne++)Qe[Ne]=arguments[Ne+2];ne.children=Qe}if(k&&k.defaultProps)for(W in Se=k.defaultProps,Se)ne[W]===void 0&&(ne[W]=Se[W]);return Y(k,ge,ne)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(k){return{$$typeof:h,render:k}},ue.isValidElement=re,ue.lazy=function(k){return{$$typeof:y,_payload:{_status:-1,_result:k},_init:ie}},ue.memo=function(k,q){return{$$typeof:g,type:k,compare:q===void 0?null:q}},ue.startTransition=function(k){var q=D.T,J={};D.T=J;try{var W=k(),ne=D.S;ne!==null&&ne(J,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(G,Te)}catch(ge){Te(ge)}finally{q!==null&&J.types!==null&&(q.types=J.types),D.T=q}},ue.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},ue.use=function(k){return D.H.use(k)},ue.useActionState=function(k,q,J){return D.H.useActionState(k,q,J)},ue.useCallback=function(k,q){return D.H.useCallback(k,q)},ue.useContext=function(k){return D.H.useContext(k)},ue.useDebugValue=function(){},ue.useDeferredValue=function(k,q){return D.H.useDeferredValue(k,q)},ue.useEffect=function(k,q){return D.H.useEffect(k,q)},ue.useEffectEvent=function(k){return D.H.useEffectEvent(k)},ue.useId=function(){return D.H.useId()},ue.useImperativeHandle=function(k,q,J){return D.H.useImperativeHandle(k,q,J)},ue.useInsertionEffect=function(k,q){return D.H.useInsertionEffect(k,q)},ue.useLayoutEffect=function(k,q){return D.H.useLayoutEffect(k,q)},ue.useMemo=function(k,q){return D.H.useMemo(k,q)},ue.useOptimistic=function(k,q){return D.H.useOptimistic(k,q)},ue.useReducer=function(k,q,J){return D.H.useReducer(k,q,J)},ue.useRef=function(k){return D.H.useRef(k)},ue.useState=function(k){return D.H.useState(k)},ue.useSyncExternalStore=function(k,q,J){return D.H.useSyncExternalStore(k,q,J)},ue.useTransition=function(){return D.H.useTransition()},ue.version="19.2.5",ue}var Fm;function Ks(){return Fm||(Fm=1,kd.exports=nS()),kd.exports}var X=Ks();const js=Z_(X);var xd={exports:{}},ws={},Id={exports:{}},Ld={};var Km;function rS(){return Km||(Km=1,(function(e){function t(z,K){var ie=z.length;z.push(K);e:for(;0<ie;){var Te=ie-1>>>1,Oe=z[Te];if(0<l(Oe,K))z[Te]=K,z[ie]=Oe,ie=Te;else break e}}function a(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var K=z[0],ie=z.pop();if(ie!==K){z[0]=ie;e:for(var Te=0,Oe=z.length,k=Oe>>>1;Te<k;){var q=2*(Te+1)-1,J=z[q],W=q+1,ne=z[W];if(0>l(J,ie))W<Oe&&0>l(ne,J)?(z[Te]=ne,z[W]=ie,Te=W):(z[Te]=J,z[q]=ie,Te=q);else if(W<Oe&&0>l(ne,ie))z[Te]=ne,z[W]=ie,Te=W;else break e}}return K}function l(z,K){var ie=z.sortIndex-K.sortIndex;return ie!==0?ie:z.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,h=u.now();e.unstable_now=function(){return u.now()-h}}var p=[],g=[],y=1,m=null,b=3,w=!1,S=!1,R=!1,A=!1,E=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function M(z){for(var K=a(g);K!==null;){if(K.callback===null)s(g);else if(K.startTime<=z)s(g),K.sortIndex=K.expirationTime,t(p,K);else break;K=a(g)}}function $(z){if(R=!1,M(z),!S)if(a(p)!==null)S=!0,G||(G=!0,oe());else{var K=a(g);K!==null&&Je($,K.startTime-z)}}var G=!1,D=-1,F=5,Y=-1;function se(){return A?!0:!(e.unstable_now()-Y<F)}function re(){if(A=!1,G){var z=e.unstable_now();Y=z;var K=!0;try{e:{S=!1,R&&(R=!1,C(D),D=-1),w=!0;var ie=b;try{t:{for(M(z),m=a(p);m!==null&&!(m.expirationTime>z&&se());){var Te=m.callback;if(typeof Te=="function"){m.callback=null,b=m.priorityLevel;var Oe=Te(m.expirationTime<=z);if(z=e.unstable_now(),typeof Oe=="function"){m.callback=Oe,M(z),K=!0;break t}m===a(p)&&s(p),M(z)}else s(p);m=a(p)}if(m!==null)K=!0;else{var k=a(g);k!==null&&Je($,k.startTime-z),K=!1}}break e}finally{m=null,b=ie,w=!1}K=void 0}}finally{K?oe():G=!1}}}var oe;if(typeof x=="function")oe=function(){x(re)};else if(typeof MessageChannel<"u"){var ot=new MessageChannel,$e=ot.port2;ot.port1.onmessage=re,oe=function(){$e.postMessage(null)}}else oe=function(){E(re,0)};function Je(z,K){D=E(function(){z(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(z){switch(b){case 1:case 2:case 3:var K=3;break;default:K=b}var ie=b;b=K;try{return z()}finally{b=ie}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(z,K){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ie=b;b=z;try{return K()}finally{b=ie}},e.unstable_scheduleCallback=function(z,K,ie){var Te=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?Te+ie:Te):ie=Te,z){case 1:var Oe=-1;break;case 2:Oe=250;break;case 5:Oe=1073741823;break;case 4:Oe=1e4;break;default:Oe=5e3}return Oe=ie+Oe,z={id:y++,callback:K,priorityLevel:z,startTime:ie,expirationTime:Oe,sortIndex:-1},ie>Te?(z.sortIndex=ie,t(g,z),a(p)===null&&z===a(g)&&(R?(C(D),D=-1):R=!0,Je($,ie-Te))):(z.sortIndex=Oe,t(p,z),S||w||(S=!0,G||(G=!0,oe()))),z},e.unstable_shouldYield=se,e.unstable_wrapCallback=function(z){var K=b;return function(){var ie=b;b=K;try{return z.apply(this,arguments)}finally{b=ie}}}})(Ld)),Ld}var Ym;function aS(){return Ym||(Ym=1,Id.exports=rS()),Id.exports}var jd={exports:{}},St={};var Jm;function iS(){if(Jm)return St;Jm=1;var e=Ks();function t(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(p,g,y){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:m==null?null:""+m,children:p,containerInfo:g,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return St.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,St.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(t(299));return c(p,g,null,y)},St.flushSync=function(p){var g=u.T,y=s.p;try{if(u.T=null,s.p=2,p)return p()}finally{u.T=g,s.p=y,s.d.f()}},St.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(p,g))},St.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},St.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,m=h(y,g.crossOrigin),b=typeof g.integrity=="string"?g.integrity:void 0,w=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?s.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:m,integrity:b,fetchPriority:w}):y==="script"&&s.d.X(p,{crossOrigin:m,integrity:b,fetchPriority:w,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},St.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=h(g.as,g.crossOrigin);s.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(p)},St.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,m=h(y,g.crossOrigin);s.d.L(p,y,{crossOrigin:m,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},St.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=h(g.as,g.crossOrigin);s.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(p)},St.requestFormReset=function(p){s.d.r(p)},St.unstable_batchedUpdates=function(p,g){return p(g)},St.useFormState=function(p,g,y){return u.H.useFormState(p,g,y)},St.useFormStatus=function(){return u.H.useHostTransitionStatus()},St.version="19.2.5",St}var Qm;function Nv(){if(Qm)return jd.exports;Qm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),jd.exports=iS(),jd.exports}var Xm;function sS(){if(Xm)return ws;Xm=1;var e=aS(),t=Ks(),a=Nv();function s(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var r=n,i=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(i=r.return),n=r.return;while(n)}return r.tag===3?i:null}function u(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function h(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function p(n){if(c(n)!==n)throw Error(s(188))}function g(n){var r=n.alternate;if(!r){if(r=c(n),r===null)throw Error(s(188));return r!==n?null:n}for(var i=n,o=r;;){var d=i.return;if(d===null)break;var f=d.alternate;if(f===null){if(o=d.return,o!==null){i=o;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===i)return p(d),n;if(f===o)return p(d),r;f=f.sibling}throw Error(s(188))}if(i.return!==o.return)i=d,o=f;else{for(var v=!1,_=d.child;_;){if(_===i){v=!0,i=d,o=f;break}if(_===o){v=!0,o=d,i=f;break}_=_.sibling}if(!v){for(_=f.child;_;){if(_===i){v=!0,i=f,o=d;break}if(_===o){v=!0,o=f,i=d;break}_=_.sibling}if(!v)throw Error(s(189))}}if(i.alternate!==o)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?n:r}function y(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=y(n),r!==null)return r;n=n.sibling}return null}var m=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),x=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function oe(n){return n===null||typeof n!="object"?null:(n=re&&n[re]||n["@@iterator"],typeof n=="function"?n:null)}var ot=Symbol.for("react.client.reference");function $e(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ot?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case R:return"Fragment";case E:return"Profiler";case A:return"StrictMode";case $:return"Suspense";case G:return"SuspenseList";case Y:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case x:return n.displayName||"Context";case C:return(n._context.displayName||"Context")+".Consumer";case M:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case D:return r=n.displayName||null,r!==null?r:$e(n.type)||"Memo";case F:r=n._payload,n=n._init;try{return $e(n(r))}catch{}}return null}var Je=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pen
vendor: 4,200 bytes, lines 2-9
2ding:!1,data:null,method:null,action:null},Te=[],Oe=-1;function k(n){return{current:n}}function q(n){0>Oe||(n.current=Te[Oe],Te[Oe]=null,Oe--)}function J(n,r){Oe++,Te[Oe]=n.current,n.current=r}var W=k(null),ne=k(null),ge=k(null),Se=k(null);function Qe(n,r){switch(J(ge,r),J(ne,n),J(W,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?hm(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=hm(r),n=fm(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(W),J(W,n)}function Ne(){q(W),q(ne),q(ge)}function Rn(n){n.memoizedState!==null&&J(Se,n);var r=W.current,i=fm(r,n.type);r!==i&&(J(ne,n),J(W,i))}function Tn(n){ne.current===n&&(q(W),q(ne)),Se.current===n&&(q(Se),gs._currentValue=ie)}var tr,Ei;function fn(n){if(tr===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);tr=r&&r[1]||"",Ei=-1<i.stack.indexOf(`
3    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
4`+tr+n+Ei}var Ri=!1;function va(n,r){if(!n||Ri)return"";Ri=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(r){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(P){var N=P}Reflect.construct(n,[],V)}else{try{V.call()}catch(P){N=P}n.call(V.prototype)}}else{try{throw Error()}catch(P){N=P}(V=n())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(P){if(P&&N&&typeof P.stack=="string")return[P.stack,N.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),v=f[0],_=f[1];if(v&&_){var T=v.split(`
5`),j=_.split(`
6`);for(d=o=0;o<T.length&&!T[o].includes("DetermineComponentFrameRoot");)o++;for(;d<j.length&&!j[d].includes("DetermineComponentFrameRoot");)d++;if(o===T.length||d===j.length)for(o=T.length-1,d=j.length-1;1<=o&&0<=d&&T[o]!==j[d];)d--;for(;1<=o&&0<=d;o--,d--)if(T[o]!==j[d]){if(o!==1||d!==1)do if(o--,d--,0>d||T[o]!==j[d]){var B=`
7`+T[o].replace(" at new "," at ");return n.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",n.displayName)),B}while(1<=o&&0<=d);break}}}finally{Ri=!1,Error.prepareStackTrace=i}return(i=n?n.displayName||n.name:"")?fn(i):""}function Zs(n,r){switch(n.tag){case 26:case 27:case 5:return fn(n.type);case 16:return fn("Lazy");case 13:return n.child!==r&&r!==null?fn("Suspense Fallback"):fn("Suspense");case 19:return fn("SuspenseList");case 0:case 15:return va(n.type,!1);case 11:return va(n.type.render,!1);case 1:return va(n.type,!0);case 31:return fn("Activity");default:return""}}function Cn(n){try{var r="",i=null;do r+=Zs(n,i),i=n,n=n.return;while(n);return r}catch(o){return`
8Error generating stack: `+o.message+`
9`+o.stack}}var Ur=Object.prototype.hasOwnProperty,an=e.unstable_scheduleCallback,Ti=e.unstable_cancelCallback,eo=e.unstable_shouldYield,gc=e.unstable_requestPaint,_t=e.unstable_now,Ue=e.unstable_getCurrentPriorityLevel,ht=e.unstable_ImmediatePriority,pn=e.unstable_UserBlockingPriority,ba=e.unstable_NormalPriority,N0=e.unstable_LowPriority,Gh=e.unstable_IdlePriority,M0=e.log,D0=e.unstable_setDisableYieldValue,Ci=null,Dt=null;function nr(n){if(typeof M0=="function"&&D0(n),Dt&&typeof Dt.setStrictMode=="function")try{Dt.setStrictMode(Ci,n)}catch{}}var Pt=Math.clz32?Math.clz32:z0,P0=Math.log,U0=Math.LN2;function z0(n){return n>>>=0,n===0?32:31-(P0(n)/U0|0)|0}var to=256,no=262144,ro=4194304;function zr(n){var r=n&42;if(r!==0)return r;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;
vendor: 5,621 bytes, line 9
9case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ao(n,r,i){var o=n.pendingLanes;if(o===0)return 0;var d=0,f=n.suspendedLanes,v=n.pingedLanes;n=n.warmLanes;var _=o&134217727;return _!==0?(o=_&~f,o!==0?d=zr(o):(v&=_,v!==0?d=zr(v):i||(i=_&~n,i!==0&&(d=zr(i))))):(_=o&~f,_!==0?d=zr(_):v!==0?d=zr(v):i||(i=o&~n,i!==0&&(d=zr(i)))),d===0?0:r!==0&&r!==d&&(r&f)===0&&(f=d&-d,i=r&-r,f>=i||f===32&&(i&4194048)!==0)?r:d}function Oi(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function B0(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fh(){var n=ro;return ro<<=1,(ro&62914560)===0&&(ro=4194304),n}function mc(n){for(var r=[],i=0;31>i;i++)r.push(n);return r}function ki(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function H0(n,r,i,o,d,f){var v=n.pendingLanes;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=i,n.entangledLanes&=i,n.errorRecoveryDisabledLanes&=i,n.shellSuspendCounter=0;var _=n.entanglements,T=n.expirationTimes,j=n.hiddenUpdates;for(i=v&~i;0<i;){var B=31-Pt(i),V=1<<B;_[B]=0,T[B]=-1;var N=j[B];if(N!==null)for(j[B]=null,B=0;B<N.length;B++){var P=N[B];P!==null&&(P.lane&=-536870913)}i&=~V}o!==0&&Kh(n,o,0),f!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=f&~(v&~r))}function Kh(n,r,i){n.pendingLanes|=r,n.suspendedLanes&=~r;var o=31-Pt(r);n.entangledLanes|=r,n.entanglements[o]=n.entanglements[o]|1073741824|i&261930}function Yh(n,r){var i=n.entangledLanes|=r;for(n=n.entanglements;i;){var o=31-Pt(i),d=1<<o;d&r|n[o]&r&&(n[o]|=r),i&=~d}}function Jh(n,r){var i=r&-r;return i=(i&42)!==0?1:yc(i),(i&(n.suspendedLanes|r))!==0?0:i}function yc(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function vc(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Qh(){var n=K.p;return n!==0?n:(n=window.event,n===void 0?32:Dm(n.type))}function Xh(n,r){var i=K.p;try{return K.p=n,r()}finally{K.p=i}}var rr=Math.random().toString(36).slice(2),ft="__reactFiber$"+rr,Tt="__reactProps$"+rr,wa="__reactContainer$"+rr,bc="__reactEvents$"+rr,$0="__reactListeners$"+rr,q0="__reactHandles$"+rr,Wh="__reactResources$"+rr,xi="__reactMarker$"+rr;function wc(n){delete n[ft],delete n[Tt],delete n[bc],delete n[$0],delete n[q0]}function _a(n){var r=n[ft];if(r)return r;for(var i=n.parentNode;i;){if(r=i[wa]||i[ft]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(n=wm(n);n!==null;){if(i=n[ft])return i;n=wm(n)}return r}n=i,i=n.parentNode}return null}function Sa(n){if(n=n[ft]||n[wa]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function Ii(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(s(33))}function Aa(n){var r=n[Wh];return r||(r=n[Wh]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function lt(n){n[xi]=!0}var Zh=new Set,ef={};function Br(n,r){Ea(n,r),Ea(n+"Capture",r)}function Ea(n,r){for(ef[n]=r,n=0;n<r.length;n++)Zh.add(r[n])}var V0=RegExp("^[: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]*$"),tf={},nf={};function G0(n){return Ur.call(nf,n)?!0:Ur.call(tf,n)?!1:V0.test(n)?nf[n]=!0:(tf[n]=!0,!1)}function io(n,r,i){if(G0(r))if(i===null)n.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var o=r.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+i)}}function so(n,r,i){if(i===null)n.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+i)}}function On(n,r,i,o){if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttributeNS(r,i,""+o)}}function Kt(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function rf(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function F0(n,r,i){var o=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,f=o.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(v){i=""+v,f.call(this,v)}}),Object.defineProperty(n,r,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(v){i=""+v},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}
vendor: 4,919 bytes, line 9
9function _c(n){if(!n._valueTracker){var r=rf(n)?"checked":"value";n._valueTracker=F0(n,r,""+n[r])}}function af(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var i=r.getValue(),o="";return n&&(o=rf(n)?n.checked?"true":"false":n.value),n=o,n!==i?(r.setValue(n),!0):!1}function oo(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var K0=/[\n"\\]/g;function Yt(n){return n.replace(K0,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Sc(n,r,i,o,d,f,v,_){n.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.type=v:n.removeAttribute("type"),r!=null?v==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+Kt(r)):n.value!==""+Kt(r)&&(n.value=""+Kt(r)):v!=="submit"&&v!=="reset"||n.removeAttribute("value"),r!=null?Ac(n,v,Kt(r)):i!=null?Ac(n,v,Kt(i)):o!=null&&n.removeAttribute("value"),d==null&&f!=null&&(n.defaultChecked=!!f),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?n.name=""+Kt(_):n.removeAttribute("name")}function sf(n,r,i,o,d,f,v,_){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(n.type=f),r!=null||i!=null){if(!(f!=="submit"&&f!=="reset"||r!=null)){_c(n);return}i=i!=null?""+Kt(i):"",r=r!=null?""+Kt(r):i,_||r===n.value||(n.value=r),n.defaultValue=r}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=_?n.checked:!!o,n.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.name=v),_c(n)}function Ac(n,r,i){r==="number"&&oo(n.ownerDocument)===n||n.defaultValue===""+i||(n.defaultValue=""+i)}function Ra(n,r,i,o){if(n=n.options,r){r={};for(var d=0;d<i.length;d++)r["$"+i[d]]=!0;for(i=0;i<n.length;i++)d=r.hasOwnProperty("$"+n[i].value),n[i].selected!==d&&(n[i].selected=d),d&&o&&(n[i].defaultSelected=!0)}else{for(i=""+Kt(i),r=null,d=0;d<n.length;d++){if(n[d].value===i){n[d].selected=!0,o&&(n[d].defaultSelected=!0);return}r!==null||n[d].disabled||(r=n[d])}r!==null&&(r.selected=!0)}}function of(n,r,i){if(r!=null&&(r=""+Kt(r),r!==n.value&&(n.value=r),i==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=i!=null?""+Kt(i):""}function lf(n,r,i,o){if(r==null){if(o!=null){if(i!=null)throw Error(s(92));if(Je(o)){if(1<o.length)throw Error(s(93));o=o[0]}i=o}i==null&&(i=""),r=i}i=Kt(r),n.defaultValue=i,o=n.textContent,o===i&&o!==""&&o!==null&&(n.value=o),_c(n)}function Ta(n,r){if(r){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=r;return}}n.textContent=r}var Y0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function cf(n,r,i){var o=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":o?n.setProperty(r,i):typeof i!="number"||i===0||Y0.has(r)?r==="float"?n.cssFloat=i:n[r]=(""+i).trim():n[r]=i+"px"}function uf(n,r,i){if(r!=null&&typeof r!="object")throw Error(s(62));if(n=n.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||r!=null&&r.hasOwnProperty(o)||(o.indexOf("--")===0?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="");for(var d in r)o=r[d],r.hasOwnProperty(d)&&i[d]!==o&&cf(n,d,o)}else for(var f in r)r.hasOwnProperty(f)&&cf(n,f,r[f])}function Ec(n){if(n.indexOf("-")===-1)return!1;switch(n){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 J0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
9dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Q0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function lo(n){return Q0.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function kn(){}var Rc=null;function Tc(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ca=null,Oa=null;function df(n){var r=Sa(n);if(r&&(n=r.stateNode)){var i=n[Tt]||null;e:switch(n=r.stateNode,r.type){case"input":if(Sc(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Yt(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var o=i[r];if(o!==n&&o.form===n.form){var d=o[Tt]||null;if(!d)throw Error(s(90));Sc(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<i.length;r++)o=i[r],o.form===n.form&&af(o)}break e;case"textarea":of(n,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&Ra(n,!!i.multiple,r,!1)}}}var Cc=!1;function hf(n,r,i){if(Cc)return n(r,i);Cc=!0;try{var o=n(r);return o}finally{if(Cc=!1,(Ca!==null||Oa!==null)&&(Qo(),Ca&&(r=Ca,n=Oa,Oa=Ca=null,df(r),n)))for(r=0;r<n.length;r++)df(n[r])}}function Li(n,r){var i=n.stateNode;if(i===null)return null;var o=i[Tt]||null;if(o===null)return null;i=o[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(n=n.type,o=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!o;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(s(231,r,typeof i));return i}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oc=!1;if(xn)try{var ji={};Object.defineProperty(ji,"passive",{get:function(){Oc=!0}}),window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{Oc=!1}var ar=null,kc=null,co=null;function ff(){if(co)return co;var n,r=kc,i=r.length,o,d="value"in ar?ar.value:ar.textContent,f=d.length;for(n=0;n<i&&r[n]===d[n];n++);var v=i-n;for(o=1;o<=v&&r[i-o]===d[f-o];o++);return co=d.slice(n,1<o?1-o:void 0)}function uo(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function ho(){return!0}function pf(){return!1}function Ct(n){function r(i,o,d,f,v){this._reactName=i,this._targetInst=d,this.type=o,this.nativeEvent=f,this.target=v,this.currentTarget=null;for(var _ in n)n.hasOwnProperty(_)&&(i=n[_],this[_]=i?i(f):f[_]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?ho:pf,this.isPropagationStopped=pf,this}return m(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ho)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ho)},persist:function(){},isPersistent:ho}),r}var Hr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fo=Ct(Hr),Ni=m({},Hr,{view:0,detail:0}),X0=Ct(Ni),xc,Ic,Mi,po=m({},Ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Mi&&(Mi&&n.type==="mousemove"?(xc=n.screenX-Mi.screenX,Ic=n.screenY-Mi.screenY):Ic=xc=0,Mi=n),xc)},movementY:function(n){return"movementY"in n?n.movementY:Ic}}),gf=Ct(po),W0=m({},po,{dataTransfer:0}),Z0=Ct(W0),ew=m({},Ni,{relatedTarget:0}),Lc=Ct(ew),tw=m({},Hr,{animationName:0,elapsedTime:0,pseudoElement:0}),nw=Ct(tw),rw=m({},Hr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),aw=Ct(rw),iw=m({},Hr,{data:0}),mf=Ct(iw),sw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ow={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"},lw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cw(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=lw[n])?!!r[n]:!1}function jc(){return cw}var uw=m({},Ni,{key:function(n){if(n.key){var r=sw[n.key]||n.key;if(r!=="Unidentified")return r}
vendor: 5,186 bytes, line 9
9return n.type==="keypress"?(n=uo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?ow[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jc,charCode:function(n){return n.type==="keypress"?uo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?uo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),dw=Ct(uw),hw=m({},po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yf=Ct(hw),fw=m({},Ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jc}),pw=Ct(fw),gw=m({},Hr,{propertyName:0,elapsedTime:0,pseudoElement:0}),mw=Ct(gw),yw=m({},po,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),vw=Ct(yw),bw=m({},Hr,{newState:0,oldState:0}),ww=Ct(bw),_w=[9,13,27,32],Nc=xn&&"CompositionEvent"in window,Di=null;xn&&"documentMode"in document&&(Di=document.documentMode);var Sw=xn&&"TextEvent"in window&&!Di,vf=xn&&(!Nc||Di&&8<Di&&11>=Di),bf=" ",wf=!1;function _f(n,r){switch(n){case"keyup":return _w.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sf(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ka=!1;function Aw(n,r){switch(n){case"compositionend":return Sf(r);case"keypress":return r.which!==32?null:(wf=!0,bf);case"textInput":return n=r.data,n===bf&&wf?null:n;default:return null}}function Ew(n,r){if(ka)return n==="compositionend"||!Nc&&_f(n,r)?(n=ff(),co=kc=ar=null,ka=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return vf&&r.locale!=="ko"?null:r.data;default:return null}}var Rw={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 Af(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!Rw[n.type]:r==="textarea"}function Ef(n,r,i,o){Ca?Oa?Oa.push(o):Oa=[o]:Ca=o,r=rl(r,"onChange"),0<r.length&&(i=new fo("onChange","change",null,i,o),n.push({event:i,listeners:r}))}var Pi=null,Ui=null;function Tw(n){sm(n,0)}function go(n){var r=Ii(n);if(af(r))return n}function Rf(n,r){if(n==="change")return r}var Tf=!1;if(xn){var Mc;if(xn){var Dc="oninput"in document;if(!Dc){var Cf=document.createElement("div");Cf.setAttribute("oninput","return;"),Dc=typeof Cf.oninput=="function"}Mc=Dc}else Mc=!1;Tf=Mc&&(!document.documentMode||9<document.documentMode)}function Of(){Pi&&(Pi.detachEvent("onpropertychange",kf),Ui=Pi=null)}function kf(n){if(n.propertyName==="value"&&go(Ui)){var r=[];Ef(r,Ui,n,Tc(n)),hf(Tw,r)}}function Cw(n,r,i){n==="focusin"?(Of(),Pi=r,Ui=i,Pi.attachEvent("onpropertychange",kf)):n==="focusout"&&Of()}function Ow(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return go(Ui)}function kw(n,r){if(n==="click")return go(r)}function xw(n,r){if(n==="input"||n==="change")return go(r)}function Iw(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Ut=typeof Object.is=="function"?Object.is:Iw;function zi(n,r){if(Ut(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var i=Object.keys(n),o=Object.keys(r);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var d=i[o];if(!Ur.call(r,d)||!Ut(n[d],r[d]))return!1}return!0}function xf(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function If(n,r){var i=xf(n);n=0;for(var o;i;){if(i.nodeType===3){if(o=n+i.textContent.length,n<=r&&o>=r)return{node:i,offset:r-n};n=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=xf(i)}}function Lf(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?Lf(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function jf(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=oo(n.document);r instanceof n.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)n=r.contentWindow;else break;r=oo(n.document)}return r}function Pc(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var Lw=xn&&"documentMode"in document&&11>=document.documentMode,xa=null,Uc=null,Bi=null,zc=!1;function Nf(n,r,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;zc||xa==null||xa!==oo(o)||(o=xa,"selectionStart"in o&&Pc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focu
vendor: 18,374 bytes, line 9
9sNode:o.focusNode,focusOffset:o.focusOffset}),Bi&&zi(Bi,o)||(Bi=o,o=rl(Uc,"onSelect"),0<o.length&&(r=new fo("onSelect","select",null,r,i),n.push({event:r,listeners:o}),r.target=xa)))}function $r(n,r){var i={};return i[n.toLowerCase()]=r.toLowerCase(),i["Webkit"+n]="webkit"+r,i["Moz"+n]="moz"+r,i}var Ia={animationend:$r("Animation","AnimationEnd"),animationiteration:$r("Animation","AnimationIteration"),animationstart:$r("Animation","AnimationStart"),transitionrun:$r("Transition","TransitionRun"),transitionstart:$r("Transition","TransitionStart"),transitioncancel:$r("Transition","TransitionCancel"),transitionend:$r("Transition","TransitionEnd")},Bc={},Mf={};xn&&(Mf=document.createElement("div").style,"AnimationEvent"in window||(delete Ia.animationend.animation,delete Ia.animationiteration.animation,delete Ia.animationstart.animation),"TransitionEvent"in window||delete Ia.transitionend.transition);function qr(n){if(Bc[n])return Bc[n];if(!Ia[n])return n;var r=Ia[n],i;for(i in r)if(r.hasOwnProperty(i)&&i in Mf)return Bc[n]=r[i];return n}var Df=qr("animationend"),Pf=qr("animationiteration"),Uf=qr("animationstart"),jw=qr("transitionrun"),Nw=qr("transitionstart"),Mw=qr("transitioncancel"),zf=qr("transitionend"),Bf=new Map,Hc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hc.push("scrollEnd");function sn(n,r){Bf.set(n,r),Br(r,[n])}var mo=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Jt=[],La=0,$c=0;function yo(){for(var n=La,r=$c=La=0;r<n;){var i=Jt[r];Jt[r++]=null;var o=Jt[r];Jt[r++]=null;var d=Jt[r];Jt[r++]=null;var f=Jt[r];if(Jt[r++]=null,o!==null&&d!==null){var v=o.pending;v===null?d.next=d:(d.next=v.next,v.next=d),o.pending=d}f!==0&&Hf(i,d,f)}}function vo(n,r,i,o){Jt[La++]=n,Jt[La++]=r,Jt[La++]=i,Jt[La++]=o,$c|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function qc(n,r,i,o){return vo(n,r,i,o),bo(n)}function Vr(n,r){return vo(n,null,null,r),bo(n)}function Hf(n,r,i){n.lanes|=i;var o=n.alternate;o!==null&&(o.lanes|=i);for(var d=!1,f=n.return;f!==null;)f.childLanes|=i,o=f.alternate,o!==null&&(o.childLanes|=i),f.tag===22&&(n=f.stateNode,n===null||n._visibility&1||(d=!0)),n=f,f=f.return;return n.tag===3?(f=n.stateNode,d&&r!==null&&(d=31-Pt(i),n=f.hiddenUpdates,o=n[d],o===null?n[d]=[r]:o.push(r),r.lane=i|536870912),f):null}function bo(n){if(50<ls)throw ls=0,Wu=null,Error(s(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var ja={};function Dw(n,r,i,o){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(n,r,i,o){return new Dw(n,r,i,o)}function Vc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function In(n,r){var i=n.alternate;return i===null?(i=zt(n.tag,r,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=r,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&65011712,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,r=n.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function $f(n,r){n.flags&=65011714;var i=n.alternate;return i===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,r=i.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function wo(n,r,i,o,d,f){var v=0;if(o=n,typeof n=="function")Vc(n)&&(v=1);else if(typeof n=="string")v=H_(n,i,W.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case Y:return n=zt(31,i,r,d),n.elementType=Y,n.lanes=f,n;case R:return Gr(i.children,d,f,r);case A:v=8,d|=24;break;case E:return n=zt(12,i,r,d|2),n.elementType=E,n.lanes=f,n;case $:return n=zt(13,i,r,d),n.elementType=$,n.lanes=f,n;case G:return n=zt(19,i,r,d),n.elementType=G,n.lanes=f,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case x:v=10;break e;case C:v=9;break e;case M:v=11;break e;case D:v=14;break e;case F:v=16,o=null;break e}v=29,i=Error(s(130,n===null?"null":typeof n,"")),o=null}return r=zt(v,i,r,d),r.elementType=n,r.type=o,r.lanes=f,r}function Gr(n,r,i,o){return n=zt(7,n,o,r),n.lanes=i,n}function Gc(n,r,i){return n=zt(6,n,null,r),n.lanes=i,n}function qf(n){var r=zt(18,null,null,0);return r.stateNode=n,r}function Fc(n,r,i){return r=zt(4,n.children!==null?n.children:[],n.key,r),r.lanes=i,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var Vf=new WeakMap;function Qt(n,r){if(typeof n=="object"&&n!==null){var i=Vf.get(n);return i!==void 0?i:(r={value:n,source:r,stack:Cn(r)},Vf.set(n,r),r)}return{value:n,source:r,stack:Cn(r)}}var Na=[],Ma=0,_o=null,Hi=0,Xt=[],Wt=0,ir=null,gn=1,mn="";function Ln(n,r){Na[Ma++]=Hi,Na[Ma++]=_o,_o=n,Hi=r}function Gf(n,r,i){Xt[Wt++]=gn,Xt[Wt++]=mn,Xt[Wt++]=ir,ir=n;var o=gn;n=mn;var d=32-Pt(o)-1;o&=~(1<<d),i+=1;var f=32-Pt(r)+d;if(30<f){var v=d-d%5;f=(o&(1<<v)-1).toString(32),o>>=v,d-=v,gn=1<<32-Pt(r)+d|i<<d|o,mn=f+n}else gn=1<<f|i<<d|o,mn=n}function Kc(n){n.return!==null&&(Ln(n,1),Gf(n,1,0))}function Yc(n){for(;n===_o;)_o=Na[--Ma],Na[Ma]=null,Hi=Na[--Ma],Na[Ma]=null;for(;n===ir;)ir=Xt[--Wt],Xt[Wt]=null,mn=Xt[--Wt],Xt[Wt]=null,gn=Xt[--Wt],Xt[Wt]=null}function Ff(n,r){Xt[Wt++]=gn,Xt[Wt++]=mn,Xt[Wt++]=ir,gn=r.id,mn=r.overflow,ir=n}var pt=null,Be=null,we=!1,sr=null,Zt=!1,Jc=Error(s(519));function or(n){var r=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $i(Qt(r,n)),Jc}function Kf(n){var r=n.stateNode,i=n.type,o=n.memoizedProps;switch(r[ft]=n,r[Tt]=o,i){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(i=0;i<us.length;i++)ye(us[i],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":ye("invalid",r),sf(r,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":ye("invalid",r);break;case"textarea":ye("invalid",r),lf(r,o.value,o.defaultValue,o.children)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||o.suppressHydrationWarning===!0||um(r.textContent,i)?(o.popover!=null&&(ye("beforetoggle",r),ye("toggle",r)),o.onScroll!=null&&ye("scroll",r),o.onScrollEnd!=null&&ye("scrollend",r),o.onClick!=null&&(r.onclick=kn),r=!0):r=!1,r||or(n,!0)}function Yf(n){for(pt=n.return;pt;)switch(pt.tag){case 5:case 31:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:pt=pt.return}}function Da(n){if(n!==pt)return!1;if(!we)return Yf(n),we=!0,!1;var r=n.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=n.type,i=!(i!=="form"&&i!=="button")||fd(n.type,n.memoizedProps)),i=!i),i&&Be&&or(n),Yf(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Be=bm(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Be=bm(n)}else r===27?(r=Be,_r(n.type)?(n=vd,vd=null,Be=n):Be=r):Be=pt?tn(n.stateNode.nextSibling):null;return!0}function Fr(){Be=pt=null,we=!1}function Qc(){var n=sr;return n!==null&&(It===null?It=n:It.push.apply(It,n),sr=null),n}function $i(n){sr===null?sr=[n]:sr.push(n)}var Xc=k(null),Kr=null,jn=null;function lr(n,r,i){J(Xc,r._currentValue),r._currentValue=i}function Nn(n){n._currentValue=Xc.current,q(Xc)}function Wc(n,r,i){for(;n!==null;){var o=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,o!==null&&(o.childLanes|=r)):o!==null&&(o.childLanes&r)!==r&&(o.childLanes|=r),n===i)break;n=n.return}}function Zc(n,r,i,o){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var f=d.dependencies;if(f!==null){var v=d.child;f=f.firstContext;e:for(;f!==null;){var _=f;f=d;for(var T=0;T<r.length;T++)if(_.context===r[T]){f.lanes|=i,_=f.alternate,_!==null&&(_.lanes|=i),Wc(f.return,i,n),o||(v=null);break e}f=_.next}}else if(d.tag===18){if(v=d.return,v===null)throw Error(s(341));v.lanes|=i,f=v.alternate,f!==null&&(f.lanes|=i),Wc(v,i,n),v=null}else v=d.child;if(v!==null)v.return=d;else for(v=d;v!==null;){if(v===n){v=null;break}if(d=v.sibling,d!==null){d.return=v.return,v=d;break}v=v.return}d=v}}function Pa(n,r,i,o){n=null;for(var d=r,f=!1;d!==null;){if(!f){if((d.flags&524288)!==0)f=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var v=d.alternate;if(v===null)throw Error(s(387));if(v=v.memoizedProps,v!==null){var _=d.type;Ut(d.pendingProps.value,v.value)||(n!==null?n.push(_):n=[_])}}else if(d===Se.current){if(v=d.alternate,v===null)throw Error(s(387));v.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(gs):n=[gs])}d=d.return}n!==null&&Zc(r,n,i,o),r.flags|=262144}function So(n){for(n=n.firstContext;n!==null;){if(!Ut(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Yr(n){Kr=n,jn=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function gt(n){return Jf(Kr,n)}function Ao(n,r){return Kr===null&&Yr(n),Jf(n,r)}function Jf(n,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},jn===null){if(n===null)throw Error(s(308));jn=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else jn=jn.next=r;return i}var Pw=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(i,o){n.push(o)}};this.abort=function(){r.aborted=!0,n.forEach(function(i){return i()})}},Uw=e.unstable_scheduleCallback,zw=e.unstable_NormalPriority,Ze={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function eu(){return{controller:new Pw,data:new Map,refCount:0}}function qi(n){n.refCount--,n.refCount===0&&Uw(zw,function(){n.controller.abort()})}var Vi=null,tu=0,Ua=0,za=null;function Bw(n,r){if(Vi===null){var i=Vi=[];tu=0,Ua=ad(),za={status:"pending",value:void 0,then:function(o){i.push(o)}}}return tu++,r.then(Qf,Qf),r}function Qf(){if(--tu===0&&Vi!==null){za!==null&&(za.status="fulfilled");var n=Vi;Vi=null,Ua=0,za=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function Hw(n,r){var i=[],o={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return n.then(function(){o.status="fulfilled",o.value=r;for(var d=0;d<i.length;d++)(0,i[d])(r)},function(d){for(o.status="rejected",o.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),o}var Xf=z.S;z.S=function(n,r){Ng=_t(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&Bw(n,r),Xf!==null&&Xf(n,r)};var Jr=k(null);function nu(){var n=Jr.current;return n!==null?n:Me.pooledCache}function Eo(n,r){r===null?J(Jr,Jr.current):J(Jr,r.pool)}function Wf(){var n=nu();return n===null?null:{parent:Ze._currentValue,pool:n}}var Ba=Error(s(460)),ru=Error(s(474)),Ro=Error(s(542)),To={then:function(){}};function Zf(n){return n=n.status,n==="fulfilled"||n==="rejected"}function ep(n,r,i){switch(i=n[i],i===void 0?n.push(r):i!==r&&(r.then(kn,kn),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,np(n),n;default:if(typeof r.status=="string")r.then(kn,kn);else{if(n=Me,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=r,n.status="pending",n.then(function(o){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=o}},function(o){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=o}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,np(n),n}throw Xr=r,Ba}}function Qr(n){try{var r=n._init;return r(n._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Xr=i,Ba):i}}var Xr=null;function tp(){if(Xr===null)throw Error(s(459));var n=Xr;return Xr=null,n}function np(n){if(n===Ba||n===Ro)throw Error(s(483))}var Ha=null,Gi=0;function Co(n){var r=Gi;return Gi+=1,Ha===null&&(Ha=[]),ep(Ha,n,r)}function Fi(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function Oo(n,r){throw r.$$typeof===b?Error(s(525)):(n=Object.prototype.toString.call(r),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function rp(n){function r(I,O){if(n){var L=I.deletions;L===null?(I.deletions=[O],I.flags|=16):L.push(O)}}function i(I,O){if(!n)return null;for(;O!==null;)r(I,O),O=O.sibling;return null}function o(I){for(var O=new Map;I!==null;)I.key!==null?O.set(I.key,I):O.set(I.index,I),I=I.sibling;return O}function d(I,O){return I=In(I,O),I.index=0,I.sibling=null,I}function f(I,O,L){return I.index=L,n?(L=I.alternate,L!==null?(L=L.index,L<O?(I.flags|=67108866,O):L):(I.flags|=67108866,O)):(I.flags|=1048576,O)}function v(I){return n&&I.alternate===null&&(I.flags|=67108866),I}function _(I,O,L,H){return O===null||O.tag!==6?(O=Gc(L,I.mode,H),O.return=I,O):(O=d(O,L),O.return=I,O)}function T(I,O,L,H){var ae=L.type;return ae===R?B(I,O,L.props.children,H,L.key):O!==null&&(O.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===F&&Qr(ae)===O.type)?(O=d(O,L.props),Fi(O,L),O.return=I,O):(O=wo(L.type,L.key,L.props,null,I.mode,H),Fi(O,L),O.return=I,O)}function j(I,O,L,H){return O===null||O.tag!==4||O.stateNode.containerInfo!==L.containerInfo||O.stateNode.implementation!==L.implementation?(O=Fc(L,I.mode,H),O.return=I,O):(O=d(O,L.children||[]),O.return=I,O)}function B(I,O,L,H,ae){return O===null||O.tag!==7?(O=Gr(L,I.mode,H,ae),O.return=I,O):(O=d(O,L),O.return=I,O)}function V(I,O,L){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Gc(""+O,I.mode,L),O.return=I,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case w:return L=wo(O.type,O.key,O.props,null,I.mode,L),Fi(L,O),L.return=I,L;case S:return O=Fc(O,I.mode,L),O.return=I,O;case F:return O=Qr(O),V(I,O,L)}if(Je(O)||oe(O))return O=Gr(O,I.mode,L,null),O.return=I,O;if(typeof O.then=="function")return V(I,Co(O),L);if(O.$$typeof===x)return V(I,Ao(I,O),L);Oo(I,O)}return null}function N(I,O,L,H){var ae=O!==null?O.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ae!==null?null:_(I,O,""+L,H);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case w:return L.key===ae?T(I,O,L,H):null;case S:return L.key===ae?j(I,O,L,H):null;case F:return L=Qr(L),N(I,O,L,H)}if(Je(L)||oe(L))return ae!==null?null:B(I,O,L,H,null);if(typeof L.then=="function")return N(I,O,Co(L),H);if(L.$$typeof===x)return N(I,O,Ao(I,L),H);Oo(I,L)}return null}function P(I,O,L,H,ae){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return I=I.get(L)||null,_(O,I,""+H,ae);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case w:return I=I.get(H.key===null?L:H.key)||null,T(O,I,H,ae);case S:return I=I.get(H.key===null?L:H.key)||null,j(O,I,H,ae);case F:return H=Qr(H),P(I,O,L,H,ae)}if(Je(H)||oe(H))return I=I.get(L)||null,B(O,I,H,ae,null);if(typeof H.then=="function")return P(I,O,L,Co(H),ae);if(H.$$typeof===x)return P(I,O,L,Ao(O,H),ae);Oo(O,H)}return null}function Z(I,O,L,H){for(var ae=null,Ee=null,te=O,he=O=0,be=null;te!==null&&he<L.length;he++){te.index>he?(be=te,te=null):be=te.sibling;var Re=N(I,te,L[he],H);if(Re===null){te===null&&(te=be);break}n&&te&&Re.alternate===null&&r(I,te),O=f(Re,O,he),Ee===null?ae=Re:Ee.sibling=Re,Ee=Re,te=be}if(he===L.length)return i(I,te),we&&Ln(I,he),ae;if(te===null){for(;he<L.length;he++)te=V(I,L[he],H),te!==null&&(O=f(te,O,he),Ee===null?ae=te:Ee.sibling=te,Ee=te);return we&&Ln(I,he),ae}for(te=o(te);he<L.length;he++)be=P(te,I,he,L[he],H),be!==null&&(n&&be.alternate!==null&&te.delete(be.key===null?he:be.key),O=f(be,O,he),Ee===null?ae=be:Ee.sibling=be,Ee=be);return n&&te.forEach(function(Tr){return r(I,Tr)}),we&&Ln(I,he),ae}function le(I,O,L,H){if(L==null)throw Error(s(151));for(var ae=null,Ee=null,te=O,he=O=0,be=null,Re=L.next();te!==null&&!Re.done;he++,Re=L.next()){te.index>he?(be=te,te=null):be=te.sibling;var Tr=N(I,te,Re.value,H);if(Tr===null){te===null&&(te=be);break}n&&te&&Tr.alternate===null&&r(I,te),O=f(Tr,O,he),Ee===null?ae=Tr:Ee.sibling=Tr,Ee=Tr,te=be}if(Re.done)return i(I,te),we&&Ln(I,he),ae;if(te===null){for(;!Re.done;he++,Re=L.next())Re=V(I,Re.value,H),Re!==null&&(O=f(Re,O,he),Ee===null?ae=Re:Ee.sibling=Re,Ee=Re);return we&&Ln(I,he),ae}for(te=o(te);!Re.done;he++,Re=L.next())Re=P(te,I,he,Re.value,H),Re!==null&&(n&&Re.alternate!==null&&te.delete(Re.key===null?he:Re.key),O=f(Re,O,he),Ee===null?ae=Re:Ee.sibling=Re,Ee=Re);return n&&te.forEach(function(W_){return r(I,W_)}),we&&Ln(I,he),ae}function je(I,O,L,H){if(typeof L=="object"&&L!==null&&L.type===R&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case w:e:{for(var ae=L.key;O!==null;){if(O.key===ae){if(ae=L.type,ae===R){if(O.tag===7){i(I,O.sibling),H=d(O,L.props.children),H.return=I,I=H;break e}}else if(O.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===F&&Qr(ae)===O.type){i(I,O.sibling),H=d(O,L.props),Fi(H,L),H.return=I,I=H;break e}i(I,O);break}else r(I,O);O=O.sibling}L.type===R?(H=Gr(L.props.children,I.mode,H,L.key),H.return=I,I=H):(H=wo(L.type,L.
vendor: 9,073 bytes, line 9
9key,L.props,null,I.mode,H),Fi(H,L),H.return=I,I=H)}return v(I);case S:e:{for(ae=L.key;O!==null;){if(O.key===ae)if(O.tag===4&&O.stateNode.containerInfo===L.containerInfo&&O.stateNode.implementation===L.implementation){i(I,O.sibling),H=d(O,L.children||[]),H.return=I,I=H;break e}else{i(I,O);break}else r(I,O);O=O.sibling}H=Fc(L,I.mode,H),H.return=I,I=H}return v(I);case F:return L=Qr(L),je(I,O,L,H)}if(Je(L))return Z(I,O,L,H);if(oe(L)){if(ae=oe(L),typeof ae!="function")throw Error(s(150));return L=ae.call(L),le(I,O,L,H)}if(typeof L.then=="function")return je(I,O,Co(L),H);if(L.$$typeof===x)return je(I,O,Ao(I,L),H);Oo(I,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,O!==null&&O.tag===6?(i(I,O.sibling),H=d(O,L),H.return=I,I=H):(i(I,O),H=Gc(L,I.mode,H),H.return=I,I=H),v(I)):i(I,O)}return function(I,O,L,H){try{Gi=0;var ae=je(I,O,L,H);return Ha=null,ae}catch(te){if(te===Ba||te===Ro)throw te;var Ee=zt(29,te,null,I.mode);return Ee.lanes=H,Ee.return=I,Ee}}}var Wr=rp(!0),ap=rp(!1),cr=!1;function au(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function iu(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ur(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function dr(n,r,i){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,(Ce&2)!==0){var d=o.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),o.pending=r,r=bo(n),Hf(n,null,i),r}return vo(n,o,r,i),bo(n)}function Ki(n,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194048)!==0)){var o=r.lanes;o&=n.pendingLanes,i|=o,r.lanes=i,Yh(n,i)}}function su(n,r){var i=n.updateQueue,o=n.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var d=null,f=null;if(i=i.firstBaseUpdate,i!==null){do{var v={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};f===null?d=f=v:f=f.next=v,i=i.next}while(i!==null);f===null?d=f=r:f=f.next=r}else d=f=r;i={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=r:n.next=r,i.lastBaseUpdate=r}var ou=!1;function Yi(){if(ou){var n=za;if(n!==null)throw n}}function Ji(n,r,i,o){ou=!1;var d=n.updateQueue;cr=!1;var f=d.firstBaseUpdate,v=d.lastBaseUpdate,_=d.shared.pending;if(_!==null){d.shared.pending=null;var T=_,j=T.next;T.next=null,v===null?f=j:v.next=j,v=T;var B=n.alternate;B!==null&&(B=B.updateQueue,_=B.lastBaseUpdate,_!==v&&(_===null?B.firstBaseUpdate=j:_.next=j,B.lastBaseUpdate=T))}if(f!==null){var V=d.baseState;v=0,B=j=T=null,_=f;do{var N=_.lane&-536870913,P=N!==_.lane;if(P?(ve&N)===N:(o&N)===N){N!==0&&N===Ua&&(ou=!0),B!==null&&(B=B.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var Z=n,le=_;N=r;var je=i;switch(le.tag){case 1:if(Z=le.payload,typeof Z=="function"){V=Z.call(je,V,N);break e}V=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=le.payload,N=typeof Z=="function"?Z.call(je,V,N):Z,N==null)break e;V=m({},V,N);break e;case 2:cr=!0}}N=_.callback,N!==null&&(n.flags|=64,P&&(n.flags|=8192),P=d.callbacks,P===null?d.callbacks=[N]:P.push(N))}else P={lane:N,tag:_.tag,payload:_.payload,callback:_.callback,next:null},B===null?(j=B=P,T=V):B=B.next=P,v|=N;if(_=_.next,_===null){if(_=d.shared.pending,_===null)break;P=_,_=P.next,P.next=null,d.lastBaseUpdate=P,d.shared.pending=null}}while(!0);B===null&&(T=V),d.baseState=T,d.firstBaseUpdate=j,d.lastBaseUpdate=B,f===null&&(d.shared.lanes=0),mr|=v,n.lanes=v,n.memoizedState=V}}function ip(n,r){if(typeof n!="function")throw Error(s(191,n));n.call(r)}function sp(n,r){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)ip(i[n],r)}var $a=k(null),ko=k(0);function op(n,r){n=qn,J(ko,n),J($a,r),qn=n|r.baseLanes}function lu(){J(ko,qn),J($a,$a.current)}function cu(){qn=ko.current,q($a),q(ko)}var Bt=k(null),en=null;function hr(n){var r=n.alternate;J(Xe,Xe.current&1),J(Bt,n),en===null&&(r===null||$a.current!==null||r.memoizedState!==null)&&(en=n)}function uu(n){J(Xe,Xe.current),J(Bt,n),en===null&&(en=n)}function lp(n){n.tag===22?(J(Xe,Xe.current),J(Bt,n),en===null&&(en=n)):fr()}function fr(){J(Xe,Xe.current),J(Bt,Bt.current)}function Ht(n){q(Bt),en===n&&(en=null),q(Xe)}var Xe=k(0);function xo(n){for(var r=n;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||md(i)||yd(i)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Mn=0,de=null,Ie=null,et=null,Io=!1,qa=!1,Zr=!1,Lo=0,Qi=0,Va=null,$w=0;function Ge(){throw Error(s(321))}function du(n,r){if(r===null)return!1;for(var i=0;i<r.length&&i<n.length;i++)if(!Ut(n[i],r[i]))return!1;return!0}function hu(n,r,i,o,d,f){return Mn=f,de=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,z.H=n===null||n.memoizedState===null?Gp:Cu,Zr=!1,f=i(o,d),Zr=!1,qa&&(f=up(r,i,o,d)),cp(n),f}function cp(n){z.H=Zi;var r=Ie!==null&&Ie.next!==null;if(Mn=0,et=Ie=de=null,Io=!1,Qi=0,Va=null,r)throw Error(s(300));n===null||tt||(n=n.dependencies,n!==null&&So(n)&&(tt=!0))}function up(n,r,i,o){de=n;var d=0;do{if(qa&&(Va=null),Qi=0,qa=!1,25<=d)throw Error(s(301));if(d+=1,et=Ie=null,n.updateQueue!=null){var f=n.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}z.H=Fp,f=r(i,o)}while(qa);return f}function qw(){var n=z.H,r=n.useState()[0];return r=typeof r.then=="function"?Xi(r):r,n=n.useState()[0],(Ie!==null?Ie.memoizedState:null)!==n&&(de.flags|=1024),r}function fu(){var n=Lo!==0;return Lo=0,n}function pu(n,r,i){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~i}function gu(n){if(Io){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}Io=!1}Mn=0,et=Ie=de=null,qa=!1,Qi=Lo=0,Va=null}function At(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?de.memoizedState=et=n:et=et.next=n,et}function We(){if(Ie===null){var n=de.alternate;n=n!==null?n.memoizedState:null}else n=Ie.next;var r=et===null?de.memoizedState:et.next;if(r!==null)et=r,Ie=n;else{if(n===null)throw de.alternate===null?Error(s(467)):Error(s(310));Ie=n,n={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},et===null?de.memoizedState=et=n:et=et.next=n}return et}function jo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xi(n){var r=Qi;return Qi+=1,Va===null&&(Va=[]),n=ep(Va,n,r),r=de,(et===null?r.memoizedState:et.next)===null&&(r=r.alternate,z.H=r===null||r.memoizedState===null?Gp:Cu),n}function No(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Xi(n);if(n.$$typeof===x)return gt(n)}throw Error(s(438,String(n)))}function mu(n){var r=null,i=de.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var o=de.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(r={data:o.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=jo(),de.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(n),o=0;o<n;o++)i[o]=se;return r.index++,i}function Dn(n,r){return typeof r=="function"?r(n):r}function Mo(n){var r=We();return yu(r,Ie,n)}function yu(n,r,i){var o=n.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=i;var d=n.baseQueue,f=o.pending;if(f!==null){if(d!==null){var v=d.next;d.next=f.next,f.next=v}r.baseQueue=d=f,o.pending=null}if(f=n.baseState,d===null)n.memoizedState=f;else{r=d.next;var _=v=null,T=null,j=r,B=!1;do{var V=j.lane&-536870913;if(V!==j.lane?(ve&V)===V:(Mn&V)===V){var N=j.revertLane;if(N===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),V===Ua&&(B=!0);else if((Mn&N)===N){j=j.next,N===Ua&&(B=!0);continue}else V={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},T===null?(_=T=V,v=f):T=T.next=V,de.lanes|=N,mr|=N;V=j.action,Zr&&i(f,V),f=j.hasEagerState?j.eagerState:i(f,V)}else N={lane:V,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},T===null?(_=T=N,v=f):T=T.next=N,de.lanes|=V,mr|=V;j=j.next}while(j!==null&&j!==r);if(T===null?v=f:T.next=_,!Ut(f,n.memoizedState)&&(tt=!0,B&&(i=za,i!==null)))throw i;n.memoizedState=f,n.baseState=v,n.baseQueue=T,o.lastRenderedState=f}return d===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function vu(n){var r=We(),i=r.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;
vendor: 7,043 bytes, line 9
9var o=i.dispatch,d=i.pending,f=r.memoizedState;if(d!==null){i.pending=null;var v=d=d.next;do f=n(f,v.action),v=v.next;while(v!==d);Ut(f,r.memoizedState)||(tt=!0),r.memoizedState=f,r.baseQueue===null&&(r.baseState=f),i.lastRenderedState=f}return[f,o]}function dp(n,r,i){var o=de,d=We(),f=we;if(f){if(i===void 0)throw Error(s(407));i=i()}else i=r();var v=!Ut((Ie||d).memoizedState,i);if(v&&(d.memoizedState=i,tt=!0),d=d.queue,_u(pp.bind(null,o,d,n),[n]),d.getSnapshot!==r||v||et!==null&&et.memoizedState.tag&1){if(o.flags|=2048,Ga(9,{destroy:void 0},fp.bind(null,o,d,i,r),null),Me===null)throw Error(s(349));f||(Mn&127)!==0||hp(o,r,i)}return i}function hp(n,r,i){n.flags|=16384,n={getSnapshot:r,value:i},r=de.updateQueue,r===null?(r=jo(),de.updateQueue=r,r.stores=[n]):(i=r.stores,i===null?r.stores=[n]:i.push(n))}function fp(n,r,i,o){r.value=i,r.getSnapshot=o,gp(r)&&mp(n)}function pp(n,r,i){return i(function(){gp(r)&&mp(n)})}function gp(n){var r=n.getSnapshot;n=n.value;try{var i=r();return!Ut(n,i)}catch{return!0}}function mp(n){var r=Vr(n,2);r!==null&&Lt(r,n,2)}function bu(n){var r=At();if(typeof n=="function"){var i=n;if(n=i(),Zr){nr(!0);try{i()}finally{nr(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:n},r}function yp(n,r,i,o){return n.baseState=i,yu(n,Ie,typeof o=="function"?o:Dn)}function Vw(n,r,i,o,d){if(Uo(n))throw Error(s(485));if(n=r.action,n!==null){var f={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){f.listeners.push(v)}};z.T!==null?i(!0):f.isTransition=!1,o(f),i=r.pending,i===null?(f.next=r.pending=f,vp(r,f)):(f.next=i.next,r.pending=i.next=f)}}function vp(n,r){var i=r.action,o=r.payload,d=n.state;if(r.isTransition){var f=z.T,v={};z.T=v;try{var _=i(d,o),T=z.S;T!==null&&T(v,_),bp(n,r,_)}catch(j){wu(n,r,j)}finally{f!==null&&v.types!==null&&(f.types=v.types),z.T=f}}else try{f=i(d,o),bp(n,r,f)}catch(j){wu(n,r,j)}}function bp(n,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){wp(n,r,o)},function(o){return wu(n,r,o)}):wp(n,r,i)}function wp(n,r,i){r.status="fulfilled",r.value=i,_p(r),n.state=i,r=n.pending,r!==null&&(i=r.next,i===r?n.pending=null:(i=i.next,r.next=i,vp(n,i)))}function wu(n,r,i){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do r.status="rejected",r.reason=i,_p(r),r=r.next;while(r!==o)}n.action=null}function _p(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function Sp(n,r){return r}function Ap(n,r){if(we){var i=Me.formState;if(i!==null){e:{var o=de;if(we){if(Be){t:{for(var d=Be,f=Zt;d.nodeType!==8;){if(!f){d=null;break t}if(d=tn(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){Be=tn(d.nextSibling),o=d.data==="F!";break e}}or(o)}o=!1}o&&(r=i[0])}}return i=At(),i.memoizedState=i.baseState=r,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sp,lastRenderedState:r},i.queue=o,i=$p.bind(null,de,o),o.dispatch=i,o=bu(!1),f=Tu.bind(null,de,!1,o.queue),o=At(),d={state:r,dispatch:null,action:n,pending:null},o.queue=d,i=Vw.bind(null,de,d,f,i),d.dispatch=i,o.memoizedState=n,[r,i,!1]}function Ep(n){var r=We();return Rp(r,Ie,n)}function Rp(n,r,i){if(r=yu(n,r,Sp)[0],n=Mo(Dn)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var o=Xi(r)}catch(v){throw v===Ba?Ro:v}else o=r;r=We();var d=r.queue,f=d.dispatch;return i!==r.memoizedState&&(de.flags|=2048,Ga(9,{destroy:void 0},Gw.bind(null,d,i),null)),[o,f,n]}function Gw(n,r){n.action=r}function Tp(n){var r=We(),i=Ie;if(i!==null)return Rp(r,i,n);We(),r=r.memoizedState,i=We();var o=i.queue.dispatch;return i.memoizedState=n,[r,o,!1]}function Ga(n,r,i,o){return n={tag:n,create:i,deps:o,inst:r,next:null},r=de.updateQueue,r===null&&(r=jo(),de.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=n.next=n:(o=i.next,i.next=n,n.next=o,r.lastEffect=n),n}function Cp(){return We().memoizedState}function Do(n,r,i,o){var d=At();de.flags|=n,d.memoizedState=Ga(1|r,{destroy:void 0},i,o===void 0?null:o)}function Po(n,r,i,o){var d=We();o=o===void 0?null:o;var f=d.memoizedState.inst;Ie!==null&&o!==null&&du(o,Ie.memoizedState.deps)?d.memoizedState=Ga(r,f,i,o):(de.flags|=n,d.memoizedState=Ga(1|r,f,i,o))}function Op(n,r){Do(8390656,8,n,r)}function _u(n,r){Po(2048,8,n,r)}function Fw(n){de.flags|=4;var r=de.updateQueue;if(r===null)r=jo(),de.updateQueue=r,r.events=[n];else{var i=r.events;i===null?r.events=[n]:i.push(n)}}function kp(n){var r=We().memoizedState;return Fw({ref:r,nextImpl:n}),function(){if((Ce&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}function xp(n,r){return Po(4,2,n,r)}function Ip(n,r){return Po(4,4,n,r)}function Lp(n,r){if(typeof r=="function"){n=n();var i=r(n);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function jp(n,r,i){i=i!=null?i.concat([n]):null,Po(4,4,Lp.bind(null,r,n),i)}function Su(){}function Np(n,r){var i=We();r=r===void 0?null:r;var o=i.memoizedState;return r!==null&&du(r,o[1])?o[0]:(i.memoizedState=[n,r],n)}function Mp(n,r){var i=We();r=r===void 0?null:r;var o=i.memoizedState;if(r!==null&&du(r,o[1]))return o[0];if(o=n(),Zr){nr(!0);try{n()}finally{nr(!1)}}return i.memoizedState=[o,r],o}function Au(n,r,i){return i===void 0||(Mn&1073741824)!==0&&(ve&261930)===0?n.memoizedState=r:(n.memoizedState=i,n=Dg(),de.lanes|=n,mr|=n,i)}function Dp(n,r,i,o){return Ut(i,r)?i:$a.current!==null?(n=Au(n,i,o),Ut(n,r)||(tt=!0),n):(Mn&42)===0||(Mn&1073741824)!==0&&(ve&261930)===0?(tt=!0,n.memoizedState=i):(n=Dg(),de.lanes|=n,mr|=n,r)}function Pp(n,r,i,o,d){var f=K.p;K.p=f!==0&&8>f?f:8;var v=z.T,_={};z.T=_,Tu(n,!1,r,i);try{var T=d(),j=z.S;if(j!==null&&j(_,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var B=Hw(T,o);Wi(n,r,B,Vt(n))}else Wi(n,r,o,Vt(n))}catch(V){Wi(n,r,{then:function(){},status:"rejected",reason:V},Vt())}finally{K.p=f,v!==null&&_.types!==null&&(v.types=_.types),z.T=v}}function Kw(){}function Eu(n,r,i,o){if(n.tag!==5)throw Error(s(476));var d=Up(n).queue;Pp(n,d,r,ie,i===null?Kw:function(){return zp(n),i(o)})}function Up(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:ie},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:i},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function zp(n){var r=Up(n);r.next===null&&(r=n.alternate.memoizedState),Wi(n,r.next.queue,{},Vt())}function Ru(){return gt(gs)}function Bp(){return We().memoizedState}function Hp(){return We().memoizedState}function Yw(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var i=Vt();n=ur(i);var o=dr(r,n,i);o!==null&&(Lt(o,r,i),Ki(o,r,i)),r={cache:eu()},n.payload=r;return}r=r.return}}function Jw(n,r,i){var o=Vt();i={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null}
vendor: 5,404 bytes, line 9
9,Uo(n)?qp(r,i):(i=qc(n,r,i,o),i!==null&&(Lt(i,n,o),Vp(i,r,o)))}function $p(n,r,i){var o=Vt();Wi(n,r,i,o)}function Wi(n,r,i,o){var d={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Uo(n))qp(r,d);else{var f=n.alternate;if(n.lanes===0&&(f===null||f.lanes===0)&&(f=r.lastRenderedReducer,f!==null))try{var v=r.lastRenderedState,_=f(v,i);if(d.hasEagerState=!0,d.eagerState=_,Ut(_,v))return vo(n,r,d,0),Me===null&&yo(),!1}catch{}if(i=qc(n,r,d,o),i!==null)return Lt(i,n,o),Vp(i,r,o),!0}return!1}function Tu(n,r,i,o){if(o={lane:2,revertLane:ad(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Uo(n)){if(r)throw Error(s(479))}else r=qc(n,i,o,2),r!==null&&Lt(r,n,2)}function Uo(n){var r=n.alternate;return n===de||r!==null&&r===de}function qp(n,r){qa=Io=!0;var i=n.pending;i===null?r.next=r:(r.next=i.next,i.next=r),n.pending=r}function Vp(n,r,i){if((i&4194048)!==0){var o=r.lanes;o&=n.pendingLanes,i|=o,r.lanes=i,Yh(n,i)}}var Zi={readContext:gt,use:No,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge};Zi.useEffectEvent=Ge;var Gp={readContext:gt,use:No,useCallback:function(n,r){return At().memoizedState=[n,r===void 0?null:r],n},useContext:gt,useEffect:Op,useImperativeHandle:function(n,r,i){i=i!=null?i.concat([n]):null,Do(4194308,4,Lp.bind(null,r,n),i)},useLayoutEffect:function(n,r){return Do(4194308,4,n,r)},useInsertionEffect:function(n,r){Do(4,2,n,r)},useMemo:function(n,r){var i=At();r=r===void 0?null:r;var o=n();if(Zr){nr(!0);try{n()}finally{nr(!1)}}return i.memoizedState=[o,r],o},useReducer:function(n,r,i){var o=At();if(i!==void 0){var d=i(r);if(Zr){nr(!0);try{i(r)}finally{nr(!1)}}}else d=r;return o.memoizedState=o.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},o.queue=n,n=n.dispatch=Jw.bind(null,de,n),[o.memoizedState,n]},useRef:function(n){var r=At();return n={current:n},r.memoizedState=n},useState:function(n){n=bu(n);var r=n.queue,i=$p.bind(null,de,r);return r.dispatch=i,[n.memoizedState,i]},useDebugValue:Su,useDeferredValue:function(n,r){var i=At();return Au(i,n,r)},useTransition:function(){var n=bu(!1);return n=Pp.bind(null,de,n.queue,!0,!1),At().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,i){var o=de,d=At();if(we){if(i===void 0)throw Error(s(407));i=i()}else{if(i=r(),Me===null)throw Error(s(349));(ve&127)!==0||hp(o,r,i)}d.memoizedState=i;var f={value:i,getSnapshot:r};return d.queue=f,Op(pp.bind(null,o,f,n),[n]),o.flags|=2048,Ga(9,{destroy:void 0},fp.bind(null,o,f,i,r),null),i},useId:function(){var n=At(),r=Me.identifierPrefix;if(we){var i=mn,o=gn;i=(o&~(1<<32-Pt(o)-1)).toString(32)+i,r="_"+r+"R_"+i,i=Lo++,0<i&&(r+="H"+i.toString(32)),r+="_"}else i=$w++,r="_"+r+"r_"+i.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:Ru,useFormState:Ap,useActionState:Ap,useOptimistic:function(n){var r=At();r.memoizedState=r.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=Tu.bind(null,de,!0,i),i.dispatch=r,[n,r]},useMemoCache:mu,useCacheRefresh:function(){return At().memoizedState=Yw.bind(null,de)},useEffectEvent:function(n){var r=At(),i={impl:n};return r.memoizedState=i,function(){if((Ce&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},Cu={readContext:gt,use:No,useCallback:Np,useContext:gt,useEffect:_u,useImperativeHandle:jp,useInsertionEffect:xp,useLayoutEffect:Ip,useMemo:Mp,useReducer:Mo,useRef:Cp,useState:function(){return Mo(Dn)},useDebugValue:Su,useDeferredValue:function(n,r){var i=We();return Dp(i,Ie.memoizedState,n,r)},useTransition:function(){var n=Mo(Dn)[0],r=We().memoizedState;return[typeof n=="boolean"?n:Xi(n),r]},useSyncExternalStore:dp,useId:Bp,useHostTransitionStatus:Ru,useFormState:Ep,useActionState:Ep,useOptimistic:function(n,r){var i=We();return yp(i,Ie,n,r)},useMemoCache:mu,useCacheRefresh:Hp};Cu.useEffectEvent=kp;var Fp={readContext:gt,use:No,useCallback:Np,useContext:gt,useEffect:_u,useImperativeHandle:jp,useInsertionEffect:xp,useLayoutEffect:Ip,useMemo:Mp,useReducer:vu,useRef:Cp,useState:function(){return vu(Dn)},useDebugValue:Su,useDeferredValue:function(n,r){var i=We();return Ie===null?Au(i,n,r):Dp(i,Ie.memoizedState,n,r)},useTransition:function(){var n=vu(Dn)[0],r=We().memoizedState;return[typeof n=="boolean"?n:Xi(n),r]},useSyncExternalStore:dp,useId:Bp,useHostTransitionStatus:Ru,useFormState:Tp,useActionState:Tp,useOptimistic:function(n,r){var i=We();return Ie!==null?yp(i,Ie,n,r):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:mu,useCacheRefresh:Hp};Fp.useEffectEvent=kp;function Ou(n,r,i,o){r=n.memoizedState,i=i(o,r),i=i==null?r:m({},r,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var ku={enqueueSetState:function(n,r,i){n=n._reactInternals;var o=Vt(),d=ur(o);d.payload=r,i!=null&&(d.callback=i),r=dr(n,d,o),r!==null&&(Lt(r,n,o),Ki(r,n,o))},enqueueReplaceState:function(n,r,i){n=n._reactInternals;var o=Vt(),d=ur(o);d.tag=1,d.payload=r,i!=null&&(d.callback=i),r=dr(n,d,o),r!==null&&(Lt(r,n,o),Ki(r,n,o))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var i=Vt(),o=ur(i);
vendor: 13,075 bytes, line 9
9o.tag=2,r!=null&&(o.callback=r),r=dr(n,o,i),r!==null&&(Lt(r,n,i),Ki(r,n,i))}};function Kp(n,r,i,o,d,f,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,f,v):r.prototype&&r.prototype.isPureReactComponent?!zi(i,o)||!zi(d,f):!0}function Yp(n,r,i,o){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,o),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,o),r.state!==n&&ku.enqueueReplaceState(r,r.state,null)}function ea(n,r){var i=r;if("ref"in r){i={};for(var o in r)o!=="ref"&&(i[o]=r[o])}if(n=n.defaultProps){i===r&&(i=m({},i));for(var d in n)i[d]===void 0&&(i[d]=n[d])}return i}function Jp(n){mo(n)}function Qp(n){console.error(n)}function Xp(n){mo(n)}function zo(n,r){try{var i=n.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(o){setTimeout(function(){throw o})}}function Wp(n,r,i){try{var o=n.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function xu(n,r,i){return i=ur(i),i.tag=3,i.payload={element:null},i.callback=function(){zo(n,r)},i}function Zp(n){return n=ur(n),n.tag=3,n}function eg(n,r,i,o){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var f=o.value;n.payload=function(){return d(f)},n.callback=function(){Wp(r,i,o)}}var v=i.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(n.callback=function(){Wp(r,i,o),typeof d!="function"&&(yr===null?yr=new Set([this]):yr.add(this));var _=o.stack;this.componentDidCatch(o.value,{componentStack:_!==null?_:""})})}function Qw(n,r,i,o,d){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(r=i.alternate,r!==null&&Pa(r,i,d,!0),i=Bt.current,i!==null){switch(i.tag){case 31:case 13:return en===null?Xo():i.alternate===null&&Fe===0&&(Fe=3),i.flags&=-257,i.flags|=65536,i.lanes=d,o===To?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([o]):r.add(o),td(n,o,d)),!1;case 22:return i.flags|=65536,o===To?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([o]):i.add(o)),td(n,o,d)),!1}throw Error(s(435,i.tag))}return td(n,o,d),Xo(),!1}if(we)return r=Bt.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,o!==Jc&&(n=Error(s(422),{cause:o}),$i(Qt(n,i)))):(o!==Jc&&(r=Error(s(423),{cause:o}),$i(Qt(r,i))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,o=Qt(o,i),d=xu(n.stateNode,o,d),su(n,d),Fe!==4&&(Fe=2)),!1;var f=Error(s(520),{cause:o});if(f=Qt(f,i),os===null?os=[f]:os.push(f),Fe!==4&&(Fe=2),r===null)return!0;o=Qt(o,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,n=d&-d,i.lanes|=n,n=xu(i.stateNode,o,n),su(i,n),!1;case 1:if(r=i.type,f=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(yr===null||!yr.has(f))))return i.flags|=65536,d&=-d,i.lanes|=d,d=Zp(d),eg(d,n,i,o),su(i,d),!1}i=i.return}while(i!==null);return!1}var Iu=Error(s(461)),tt=!1;function mt(n,r,i,o){r.child=n===null?ap(r,null,i,o):Wr(r,n.child,i,o)}function tg(n,r,i,o,d){i=i.render;var f=r.ref;if("ref"in o){var v={};for(var _ in o)_!=="ref"&&(v[_]=o[_])}else v=o;return Yr(r),o=hu(n,r,i,v,f,d),_=fu(),n!==null&&!tt?(pu(n,r,d),Pn(n,r,d)):(we&&_&&Kc(r),r.flags|=1,mt(n,r,o,d),r.child)}function ng(n,r,i,o,d){if(n===null){var f=i.type;return typeof f=="function"&&!Vc(f)&&f.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=f,rg(n,r,f,o,d)):(n=wo(i.type,null,o,r,r.mode,d),n.ref=r.ref,n.return=r,r.child=n)}if(f=n.child,!zu(n,d)){var v=f.memoizedProps;if(i=i.compare,i=i!==null?i:zi,i(v,o)&&n.ref===r.ref)return Pn(n,r,d)}return r.flags|=1,n=In(f,o),n.ref=r.ref,n.return=r,r.child=n}function rg(n,r,i,o,d){if(n!==null){var f=n.memoizedProps;if(zi(f,o)&&n.ref===r.ref)if(tt=!1,r.pendingProps=o=f,zu(n,d))(n.flags&131072)!==0&&(tt=!0);else return r.lanes=n.lanes,Pn(n,r,d)}return Lu(n,r,i,o,d)}function ag(n,r,i,o){var d=o.children,f=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((r.flags&128)!==0){if(f=f!==null?f.baseLanes|i:i,n!==null){for(o=r.child=n.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~f}else o=0,r.child=null;return ig(n,r,f,i,o)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&Eo(r,f!==null?f.cachePool:null),f!==null?op(r,f):lu(),lp(r);else return o=r.lanes=536870912,ig(n,r,f!==null?f.baseLanes|i:i,i,o)}else f!==null?(Eo(r,f.cachePool),op(r,f),fr(),r.memoizedState=null):(n!==null&&Eo(r,null),lu(),fr());return mt(n,r,d,i),r.child}function es(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function ig(n,r,i,o,d){var f=nu();return f=f===null?null:{parent:Ze._currentValue,pool:f},r.memoizedState={baseLanes:i,cachePool:f},n!==null&&Eo(r,null),lu(),lp(r),n!==null&&Pa(n,r,o,!0),r.childLanes=d,null}function Bo(n,r){return r=$o({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function sg(n,r,i){return Wr(r,n.child,null,i),n=Bo(r,r.pendingProps),n.flags|=2,Ht(r),r.memoizedState=null,n}function Xw(n,r,i){var o=r.pendingProps,d=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(we){if(o.mode==="hidden")return n=Bo(r,o),r.lanes=536870912,es(null,n);if(uu(r),(n=Be)?(n=vm(n,Zt),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:ir!==null?{id:gn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},i=qf(n),i.return=r,r.child=i,pt=r,Be=null)):n=null,n===null)throw or(r);return r.lanes=536870912,null}return Bo(r,o)}var f=n.memoizedState;if(f!==null){var v=f.dehydrated;if(uu(r),d)if(r.flags&256)r.flags&=-257,r=sg(n,r,i);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(s(558));else if(tt||Pa(n,r,i,!1),d=(i&n.childLanes)!==0,tt||d){if(o=Me,o!==null&&(v=Jh(o,i),v!==0&&v!==f.retryLane))throw f.retryLane=v,Vr(n,v),Lt(o,n,v),Iu;Xo(),r=sg(n,r,i)}else n=f.treeContext,Be=tn(v.nextSibling),pt=r,we=!0,sr=null,Zt=!1,n!==null&&Ff(r,n),r=Bo(r,o),r.flags|=4096;return r}return n=In(n.child,{mode:o.mode,children:o.children}),n.ref=r.ref,r.child=n,n.return=r,n}function Ho(n,r){var i=r.ref;if(i===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(n===null||n.ref!==i)&&(r.flags|=4194816)}}function Lu(n,r,i,o,d){return Yr(r),i=hu(n,r,i,o,void 0,d),o=fu(),n!==null&&!tt?(pu(n,r,d),Pn(n,r,d)):(we&&o&&Kc(r),r.flags|=1,mt(n,r,i,d),r.child)}function og(n,r,i,o,d,f){return Yr(r),r.updateQueue=null,i=up(r,o,i,d),cp(n),o=fu(),n!==null&&!tt?(pu(n,r,f),Pn(n,r,f)):(we&&o&&Kc(r),r.flags|=1,mt(n,r,i,f),r.child)}function lg(n,r,i,o,d){if(Yr(r),r.stateNode===null){var f=ja,v=i.contextType;typeof v=="object"&&v!==null&&(f=gt(v)),f=new i(o,f),r.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=ku,r.stateNode=f,f._reactInternals=r,f=r.stateNode,f.props=o,f.state=r.memoizedState,f.refs={},au(r),v=i.contextType,f.context=typeof v=="object"&&v!==null?gt(v):ja,f.state=r.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(Ou(r,i,v,o),f.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&ku.enqueueReplaceState(f,f.state,null),Ji(r,o,f,d),Yi(),f.state=r.memoizedState),typeof f.componentDidMount=="function"&&(r.flags|=4194308),o=!0}else if(n===null){f=r.stateNode;var _=r.memoizedProps,T=ea(i,_);f.props=T;var j=f.context,B=i.contextType;v=ja,typeof B=="object"&&B!==null&&(v=gt(B));var V=i.getDerivedStateFromProps;B=typeof V=="function"||typeof f.getSnapshotBeforeUpdate=="function",_=r.pendingProps!==_,B||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(_||j!==v)&&Yp(r,f,o,v),cr=!1;var N=r.memoizedState;f.state=N,Ji(r,o,f,d),Yi(),j=r.memoizedState,_||N!==j||cr?(typeof V=="function"&&(Ou(r,i,V,o),j=r.memoizedState),(T=cr||Kp(r,i,T,o,N,j,v))?(B||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(r.flags|=4194308)):(typeof f.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=o,r.memoizedState=j),f.props=o,f.state=j,f.context=v,o=T):(typeof f.componentDidMount=="function"&&(r.flags|=4194308),o=!1)}else{f=r.stateNode,iu(n,r),v=r.memoizedProps,B=ea(i,v),f.props=B,V=r.pendingProps,N=f.context,j=i.contextType,T=ja,typeof j=="object"&&j!==null&&(T=gt(j)),_=i.getDerivedStateFromProps,(j=typeof _=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==V||N!==T)&&Yp(r,f,o,T),cr=!1,N=r.memoizedState,f.state=N,Ji(r,o,f,d),Yi();var P=r.memoizedState;v!==V||N!==P||cr||n!==null&&n.dependencies!==null&&So(n.dependencies)?(typeof _=="function"&&(Ou(r,i,_,o),P=r.memoizedState),(B=cr||Kp(r,i,B,o,N,P,T)||n!==null&&n.dependencies!==null&&So(n.dependencies))?(j||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,P,T),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,P,T)),typeof f.componentDidUpdate=="function"&&(r.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===n.memoizedProps&&N===n.memoizedState||(r.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&N===n.memoizedState||(r.flags|=1024),r.memoizedProps=o,r.memoizedState=P),f.props=o,f.state=P,f.context=T,o=B):(typeof f.componentDidUpdate!="function"||v===n.memoizedProps&&N===n.memoizedState||(r.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&N===n.memoizedState||(r.flags|=1024),o=!1)}return f=o,Ho(n,r),o=(r.flags&128)!==0,f||o?(f=r.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:f.render(),r.flags|=1,n!==null&&o?(r.child=Wr(r,n.child,null,d),r.child=Wr(r,null,i,d)):mt(n,r,i,d),r.memoizedState=f.state,n=r.child):n=Pn(n,r,d),n}function cg(n,r,i,o){return Fr(),r.flags|=256,mt(n,r,i,o),r.child}var ju={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nu(n){return{baseLanes:n,cachePool:Wf()}}function Mu(n,r,i){return n=n!==null?n.childLanes&~i:0,r&&(n|=qt),n}function ug(n,r,i){var o=r.pendingProps,d=!1,f=(r.flags&128)!==0,v;if((v=f)||(v=n!==null&&n.memoizedState===null?!1:(Xe.current&2)!==0),v&&(d=!0,r.flags&=-129),v=(r.flags&32)!==0,r.flags&=-33,n===null){if(we){if(d?hr(r):fr(),(n=Be)?(n=vm(n,Zt),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:ir!==null?{id:gn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},i=qf(n),i.return=r,r.child=i,pt=r,Be=null)):n=null,n===null)throw or(r);return yd(n)?r.lanes=32:r.lanes=536870912,null}var _=o.children;return o=o.fallback,d?(fr(),d=r.mode,_=$o({mode:"hidden",children:_},d),o=Gr(o,d,i,null),_.return=r,o.return=r,_.sibling=o,r.child=_,o=r.child,o.memoizedState=Nu(i),o.childLanes=Mu(n,v,i),r.memoizedState=ju,es(null,o)):(hr(r),Du(r,_))}var T=n.memoizedState;if(T!==null&&(_=T.dehydrated,_!==null)){if(f)r.flags&256?(hr(r),r.flags&=-257,r=Pu(n,r,i)):r.memoizedState!==null?(fr(),r.child=n.child,r.flags|=128,r=null):(fr(),_=o.fallback,d=r.mode,o=$o({mode:"visible",children:o.children},d),_=Gr(_,d,i,null),_.flags|=2,o.return=r,_.return=r,o.sibling=_,r.child=o,Wr(r,n.child,null,i),o=r.child,o.memoizedState=Nu(i),o.childLanes=Mu(n,v,i),r.memoizedState=ju,r=es(null,o));else if(hr(r),yd(_)){if(v=_.nextSibling&&_.nextSibling.dataset,v)var j=v.dgst;v=j,o=Error(s(419)),o.stack="",o.digest=v,$i({value:o,source:null,stack:null}),r=Pu(n,r,i)}else if(tt||Pa(n,r,i,!1),v=(i&n.childLanes)!==0,tt||v){if(v=Me,v!==null&&(o=Jh(v,i),o!==0&&o!==T.retryLane))throw T.retryLane=o,Vr(n,o),Lt(v,n,o),Iu;md(_)||Xo(),r=Pu(n,r,i)}else md(_)?(r.flags|=192,r.child=n.child,r=null):(n=T.treeContext,Be=tn(_.nextSibling),pt=r,we=!0,sr=null,Zt=!1,n!==null&&Ff(r,n),r=Du(r,o.children),r.flags|=4096);return r}return d?(fr(),_=o.fallback,d=r.mode,T=n.child,j=T.sibling,o=In(T,{mode:"hidden",children:o.children}),o.subtreeFlags=T.subtreeFlags&65011712,j!==null?_=In(j,_):(_=Gr(_,d,i,null),_.flags|=2),_.return=r,o.return=r,o.sibling=_,r.child=o,es(null,o),o=r.child,_=n.child.memoizedState,_===null?_=Nu(i):(d=_.cachePool,d!==null?(T=Ze._currentValue,d=d.parent!==T?{parent:T,pool:T}
vendor: 4,815 bytes, line 9
9:d):d=Wf(),_={baseLanes:_.baseLanes|i,cachePool:d}),o.memoizedState=_,o.childLanes=Mu(n,v,i),r.memoizedState=ju,es(n.child,o)):(hr(r),i=n.child,n=i.sibling,i=In(i,{mode:"visible",children:o.children}),i.return=r,i.sibling=null,n!==null&&(v=r.deletions,v===null?(r.deletions=[n],r.flags|=16):v.push(n)),r.child=i,r.memoizedState=null,i)}function Du(n,r){return r=$o({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function $o(n,r){return n=zt(22,n,null,r),n.lanes=0,n}function Pu(n,r,i){return Wr(r,n.child,null,i),n=Du(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function dg(n,r,i){n.lanes|=r;var o=n.alternate;o!==null&&(o.lanes|=r),Wc(n.return,r,i)}function Uu(n,r,i,o,d,f){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:d,treeForkCount:f}:(v.isBackwards=r,v.rendering=null,v.renderingStartTime=0,v.last=o,v.tail=i,v.tailMode=d,v.treeForkCount=f)}function hg(n,r,i){var o=r.pendingProps,d=o.revealOrder,f=o.tail;o=o.children;var v=Xe.current,_=(v&2)!==0;if(_?(v=v&1|2,r.flags|=128):v&=1,J(Xe,v),mt(n,r,o,i),o=we?Hi:0,!_&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&dg(n,i,r);else if(n.tag===19)dg(n,i,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(d){case"forwards":for(i=r.child,d=null;i!==null;)n=i.alternate,n!==null&&xo(n)===null&&(d=i),i=i.sibling;i=d,i===null?(d=r.child,r.child=null):(d=i.sibling,i.sibling=null),Uu(r,!1,d,i,f,o);break;case"backwards":case"unstable_legacy-backwards":for(i=null,d=r.child,r.child=null;d!==null;){if(n=d.alternate,n!==null&&xo(n)===null){r.child=d;break}n=d.sibling,d.sibling=i,i=d,d=n}Uu(r,!0,i,null,f,o);break;case"together":Uu(r,!1,null,null,void 0,o);break;default:r.memoizedState=null}return r.child}function Pn(n,r,i){if(n!==null&&(r.dependencies=n.dependencies),mr|=r.lanes,(i&r.childLanes)===0)if(n!==null){if(Pa(n,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(s(153));if(r.child!==null){for(n=r.child,i=In(n,n.pendingProps),r.child=i,i.return=r;n.sibling!==null;)n=n.sibling,i=i.sibling=In(n,n.pendingProps),i.return=r;i.sibling=null}return r.child}function zu(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&So(n)))}function Ww(n,r,i){switch(r.tag){case 3:Qe(r,r.stateNode.containerInfo),lr(r,Ze,n.memoizedState.cache),Fr();break;case 27:case 5:Rn(r);break;case 4:Qe(r,r.stateNode.containerInfo);break;case 10:lr(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,uu(r),null;break;case 13:var o=r.memoizedState;if(o!==null)return o.dehydrated!==null?(hr(r),r.flags|=128,null):(i&r.child.childLanes)!==0?ug(n,r,i):(hr(r),n=Pn(n,r,i),n!==null?n.sibling:null);hr(r);break;case 19:var d=(n.flags&128)!==0;if(o=(i&r.childLanes)!==0,o||(Pa(n,r,i,!1),o=(i&r.childLanes)!==0),d){if(o)return hg(n,r,i);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),J(Xe,Xe.current),o)break;return null;case 22:return r.lanes=0,ag(n,r,i,r.pendingProps);case 24:lr(r,Ze,n.memoizedState.cache)}return Pn(n,r,i)}function fg(n,r,i){if(n!==null)if(n.memoizedProps!==r.pendingProps)tt=!0;else{if(!zu(n,i)&&(r.flags&128)===0)return tt=!1,Ww(n,r,i);tt=(n.flags&131072)!==0}else tt=!1,we&&(r.flags&1048576)!==0&&Gf(r,Hi,r.index);switch(r.lanes=0,r.tag){case 16:e:{var o=r.pendingProps;if(n=Qr(r.elementType),r.type=n,typeof n=="function")Vc(n)?(o=ea(n,o),r.tag=1,r=lg(null,r,n,o,i)):(r.tag=0,r=Lu(null,r,n,o,i));else{if(n!=null){var d=n.$$typeof;if(d===M){r.tag=11,r=tg(null,r,n,o,i);break e}else if(d===D){r.tag=14,r=ng(null,r,n,o,i);break e}}throw r=$e(n)||n,Error(s(306,r,""))}}return r;case 0:return Lu(n,r,r.type,r.pendingProps,i);case 1:return o=r.type,d=ea(o,r.pendingProps),lg(n,r,o,d,i);case 3:e:{if(Qe(r,r.stateNode.containerInfo),n===null)throw Error(s(387));o=r.pendingProps;var f=r.memoizedState;d=f.element,iu(n,r),Ji(r,o,null,i);var v=r.memoizedState;if(o=v.cache,lr(r,Ze,o),o!==f.cache&&Zc(r,[Ze],i,!0),Yi(),o=v.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:v.cache},r.updateQueue.baseState=f,r.memoizedState=f,r.flags&256){r=cg(n,r,o,i);break e}else if(o!==d){d=Qt(Error(s(424)),r),$i(d),r=cg(n,r,o,i);break e}else for(n=r.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,Be=tn(n.firstChild),pt=r,we=!0,sr=null,Zt=!0,i=ap(r,null,o,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Fr(),o===d){r=Pn(n,r,i);break e}mt(n,r,o,i)}r=r.child}return r;case 26:return Ho(n,r),n===null?(i=Em(r.type,null,r.pendingProps,null))?r.memoizedState=i:we||(i=r.type,n=r.pen
vendor: 4,917 bytes, line 9
9dingProps,o=al(ge.current).createElement(i),o[ft]=r,o[Tt]=n,yt(o,i,n),lt(o),r.stateNode=o):r.memoizedState=Em(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return Rn(r),n===null&&we&&(o=r.stateNode=_m(r.type,r.pendingProps,ge.current),pt=r,Zt=!0,d=Be,_r(r.type)?(vd=d,Be=tn(o.firstChild)):Be=d),mt(n,r,r.pendingProps.children,i),Ho(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&we&&((d=o=Be)&&(o=O_(o,r.type,r.pendingProps,Zt),o!==null?(r.stateNode=o,pt=r,Be=tn(o.firstChild),Zt=!1,d=!0):d=!1),d||or(r)),Rn(r),d=r.type,f=r.pendingProps,v=n!==null?n.memoizedProps:null,o=f.children,fd(d,f)?o=null:v!==null&&fd(d,v)&&(r.flags|=32),r.memoizedState!==null&&(d=hu(n,r,qw,null,null,i),gs._currentValue=d),Ho(n,r),mt(n,r,o,i),r.child;case 6:return n===null&&we&&((n=i=Be)&&(i=k_(i,r.pendingProps,Zt),i!==null?(r.stateNode=i,pt=r,Be=null,n=!0):n=!1),n||or(r)),null;case 13:return ug(n,r,i);case 4:return Qe(r,r.stateNode.containerInfo),o=r.pendingProps,n===null?r.child=Wr(r,null,o,i):mt(n,r,o,i),r.child;case 11:return tg(n,r,r.type,r.pendingProps,i);case 7:return mt(n,r,r.pendingProps,i),r.child;case 8:return mt(n,r,r.pendingProps.children,i),r.child;case 12:return mt(n,r,r.pendingProps.children,i),r.child;case 10:return o=r.pendingProps,lr(r,r.type,o.value),mt(n,r,o.children,i),r.child;case 9:return d=r.type._context,o=r.pendingProps.children,Yr(r),d=gt(d),o=o(d),r.flags|=1,mt(n,r,o,i),r.child;case 14:return ng(n,r,r.type,r.pendingProps,i);case 15:return rg(n,r,r.type,r.pendingProps,i);case 19:return hg(n,r,i);case 31:return Xw(n,r,i);case 22:return ag(n,r,i,r.pendingProps);case 24:return Yr(r),o=gt(Ze),n===null?(d=nu(),d===null&&(d=Me,f=eu(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=i),d=f),r.memoizedState={parent:o,cache:d},au(r),lr(r,Ze,d)):((n.lanes&i)!==0&&(iu(n,r),Ji(r,null,null,i),Yi()),d=n.memoizedState,f=r.memoizedState,d.parent!==o?(d={parent:o,cache:o},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),lr(r,Ze,o)):(o=f.cache,lr(r,Ze,o),o!==d.cache&&Zc(r,[Ze],i,!0))),mt(n,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function Un(n){n.flags|=4}function Bu(n,r,i,o,d){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(d&335544128)===d)if(n.stateNode.complete)n.flags|=8192;else if(Bg())n.flags|=8192;else throw Xr=To,ru}else n.flags&=-16777217}function pg(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!km(r))if(Bg())n.flags|=8192;else throw Xr=To,ru}function qo(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?Fh():536870912,n.lanes|=r,Ja|=r)}function ts(n,r){if(!we)switch(n.tailMode){case"hidden":r=n.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:o.sibling=null}}function He(n){var r=n.alternate!==null&&n.alternate.child===n.child,i=0,o=0;if(r)for(var d=n.child;d!==null;)i|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)i|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=o,n.childLanes=i,r}function Zw(n,r,i){var o=r.pendingProps;switch(Yc(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(r),null;case 1:return He(r),null;case 3:return i=r.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Nn(Ze),Ne(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(Da(r)?Un(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Qc())),He(r),null;case 26:var d=r.type,f=r.memoizedState;return n===null?(Un(r),f!==null?(He(r),pg(r,f)):(He(r),Bu(r,d,null,o,i))):f?f!==n.memoizedState?(Un(r),He(r),pg(r,f)):(He(r),r.flags&=-16777217):(n=n.memoizedProps,n!==o&&Un(r),He(r),Bu(r,d,n,o,i)),null;case 27:if(Tn(r),i=ge.current,d=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==o&&Un(r);else{if(!o){if(r.stateNode===null)throw Error(s(166));return He(r),null}n=W.current,Da(r)?Kf(r):(n=_m(d,o,i),r.stateNode=n,Un(r))}return He(r),null;case 5:if(Tn(r),d=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==o&&Un(r);else{if(!o){if(r.stateNode===null)throw Error(s(166));return He(r),null}if(f=W.current,Da(r))Kf(r);else{var v=al(ge.current);switch(f){case 1:f=v.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:f=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":f=v.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":f=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":f=v.createElement("div"),f.innerHTML="<script><\/script>
9",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?v.createElement("select",{is:o.is}):v.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?v.createElement(d,{is:o.is}):v.createElement(d)}}f[ft]=r,f[Tt]=o;e:for(v=r.child;v!==null;){if(v.tag===5||v.tag===6)f.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===r)break e;for(;v.sibling===null;){if(v.return===null||v.return===r)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}r.stateNode=f;e:switch(yt(f,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Un(r)}}return He(r),Bu(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,i),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==o&&Un(r);else{if(typeof o!="string"&&r.stateNode===null)throw Error(s(166));if(n=ge.current,Da(r)){if(n=r.stateNode,i=r.memoizedProps,o=null,d=pt,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}n[ft]=r,n=!!(n.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||um(n.nodeValue,i)),n||or(r,!0)}else n=al(n).createTextNode(o),n[ft]=r,r.stateNode=n}return He(r),null;case 31:if(i=r.memoizedState,n===null||n.memoizedState!==null){if(o=Da(r),i!==null){if(n===null){if(!o)throw Error(s(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[ft]=r}else Fr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;He(r),n=!1}else i=Qc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=i),n=!0;if(!n)return r.flags&256?(Ht(r),r):(Ht(r),null);if((r.flags&128)!==0)throw Error(s(558))}return He(r),null;case 13:if(o=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=Da(r),o!==null&&o.dehydrated!==null){if(n===null){if(!d)throw Error(s(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));d[ft]=r}else Fr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;He(r),d=!1}else d=Qc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(Ht(r),r):(Ht(r),null)}return Ht(r),(r.flags&128)!==0?(r.lanes=i,r):(i=o!==null,n=n!==null&&n.memoizedState!==null,i&&(o=r.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==d&&(o.flags|=2048)),i!==n&&i&&(r.child.flags|=8192),qo(r,r.updateQueue),He(r),null);case 4:return Ne(),n===null&&ld(r.stateNode.containerInfo),He(r),null;case 10:return Nn(r.type),He(r),null;case 19:if(q(Xe),o=r.memoizedState,o===null)return He(r),null;if(d=(r.flags&128)!==0,f=o.rendering,f===null)if(d)ts(o,!1);else{if(Fe!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(f=xo(n),f!==null){for(r.flags|=128,ts(o,!1),n=f.updateQueue,r.updateQueue=n,qo(r,n),r.subtreeFlags=0,n=i,i=r.child;i!==null;)$f(i,n),i=i.sibling;return J(Xe,Xe.current&1|2),we&&Ln(r,o.treeForkCount),r.child}n=n.sibling}o.tail!==null&&_t()>Yo&&(r.flags|=128,d=!0,ts(o,!1),r.lanes=4194304)}else{if(!d)if(n=xo(f),n!==null){if(r.flags|=128,d=!0,n=n.updateQueue,r.updateQueue=n,qo(r,n),ts(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!we)return He(r),null}else 2*_t()-o.renderingStartTime>Yo&&i!==536870912&&(r.flags|=128,d=!0,ts(o,!1),r.lanes=4194304);o.isBackwards?(f.sibling=r.child,r.child=f):(n=o.last,n!==null?n.sibling=f:r.child=f,o.last=f)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=_t(),n.sibling=null,i=Xe.current,J(Xe,d?i&1|2:i&1),we&&Ln(r,o.treeForkCount),n):(He(r),null);case 22:case 23:return Ht(r),cu(),o=r.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(r.flags|=8192):o&&(r.flags|=8192),o?(i&536870912)!==0&&(r.flags&128)===0&&(He(r),r.subtreeFlags&6&&(r.flags|=8192)):He(r),i=r.updateQueue,i!==null&&qo(r,i.retryQueue),i=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048),n!==null&&q(Jr),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),Nn(Ze),He(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function e_(n,r){switch(Yc(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return Nn(Ze),Ne(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return Tn(r),null;case 31:if(r.memoizedState!==null){if(Ht(r),r.alternate===null)throw Error(s(340));Fr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(Ht(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(s(340));Fr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return q(Xe),null;case 4:return Ne(),null;case 10:return Nn(r.type),null;case 22:case 23:return Ht(r),cu(),n!==null&&q(Jr),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return Nn(Ze),null;case 25:return null;default:return null}}function gg(n,r){switch(Yc(r),r.tag){case 3:Nn(Ze),Ne();break;case 26:case 27:case 5:Tn(r);break;case 4:Ne();break;case 31:r.memoizedState!==null&&Ht(r);break;case 13:Ht(r);break;case 19:q(Xe);break;case 10:Nn(r.type);break;
vendor: 14,013 bytes, line 9
9case 22:case 23:Ht(r),cu(),n!==null&&q(Jr);break;case 24:Nn(Ze)}}function ns(n,r){try{var i=r.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var d=o.next;i=d;do{if((i.tag&n)===n){o=void 0;var f=i.create,v=i.inst;o=f(),v.destroy=o}i=i.next}while(i!==d)}}catch(_){xe(r,r.return,_)}}function pr(n,r,i){try{var o=r.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var f=d.next;o=f;do{if((o.tag&n)===n){var v=o.inst,_=v.destroy;if(_!==void 0){v.destroy=void 0,d=r;var T=i,j=_;try{j()}catch(B){xe(d,T,B)}}}o=o.next}while(o!==f)}}catch(B){xe(r,r.return,B)}}function mg(n){var r=n.updateQueue;if(r!==null){var i=n.stateNode;try{sp(r,i)}catch(o){xe(n,n.return,o)}}}function yg(n,r,i){i.props=ea(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(o){xe(n,r,o)}}function rs(n,r){try{var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var o=n.stateNode;break;case 30:o=n.stateNode;break;default:o=n.stateNode}typeof i=="function"?n.refCleanup=i(o):i.current=o}}catch(d){xe(n,r,d)}}function yn(n,r){var i=n.ref,o=n.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(d){xe(n,r,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){xe(n,r,d)}else i.current=null}function vg(n){var r=n.type,i=n.memoizedProps,o=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(d){xe(n,n.return,d)}}function Hu(n,r,i){try{var o=n.stateNode;S_(o,n.type,i,r),o[Tt]=r}catch(d){xe(n,n.return,d)}}function bg(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&_r(n.type)||n.tag===4}function $u(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||bg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&_r(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function qu(n,r,i){var o=n.tag;if(o===5||o===6)n=n.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(n,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(n),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=kn));else if(o!==4&&(o===27&&_r(n.type)&&(i=n.stateNode,r=null),n=n.child,n!==null))for(qu(n,r,i),n=n.sibling;n!==null;)qu(n,r,i),n=n.sibling}function Vo(n,r,i){var o=n.tag;if(o===5||o===6)n=n.stateNode,r?i.insertBefore(n,r):i.appendChild(n);else if(o!==4&&(o===27&&_r(n.type)&&(i=n.stateNode),n=n.child,n!==null))for(Vo(n,r,i),n=n.sibling;n!==null;)Vo(n,r,i),n=n.sibling}function wg(n){var r=n.stateNode,i=n.memoizedProps;try{for(var o=n.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);yt(r,o,i),r[ft]=n,r[Tt]=i}catch(f){xe(n,n.return,f)}}var zn=!1,nt=!1,Vu=!1,_g=typeof WeakSet=="function"?WeakSet:Set,ct=null;function t_(n,r){if(n=n.containerInfo,dd=dl,n=jf(n),Pc(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var d=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{i.nodeType,f.nodeType}catch{i=null;break e}var v=0,_=-1,T=-1,j=0,B=0,V=n,N=null;t:for(;;){for(var P;V!==i||d!==0&&V.nodeType!==3||(_=v+d),V!==f||o!==0&&V.nodeType!==3||(T=v+o),V.nodeType===3&&(v+=V.nodeValue.length),(P=V.firstChild)!==null;)N=V,V=P;for(;;){if(V===n)break t;if(N===i&&++j===d&&(_=v),N===f&&++B===o&&(T=v),(P=V.nextSibling)!==null)break;V=N,N=V.parentNode}V=P}i=_===-1||T===-1?null:{start:_,end:T}}else i=null}i=i||{start:0,end:0}}else i=null;for(hd={focusedElem:n,selectionRange:i},dl=!1,ct=r;ct!==null;)if(r=ct,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,ct=n;else for(;ct!==null;){switch(r=ct,f=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(i=0;i<n.length;i++)d=n[i],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&f!==null){n=void 0,i=r,d=f.memoizedProps,f=f.memoizedState,o=i.stateNode;try{var Z=ea(i.type,d);n=o.getSnapshotBeforeUpdate(Z,f),o.__reactInternalSnapshotBeforeUpdate=n}catch(le){xe(i,i.return,le)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,i=n.nodeType,i===9)gd(n);else if(i===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":gd(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(s(163))}if(n=r.sibling,n!==null){n.return=r.return,ct=n;break}ct=r.return}}function Sg(n,r,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Hn(n,i),o&4&&ns(5,i);break;case 1:if(Hn(n,i),o&4)if(n=i.stateNode,r===null)try{n.componentDidMount()}catch(v){xe(i,i.return,v)}else{var d=ea(i.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(d,r,n.__reactInternalSnapshotBeforeUpdate)}catch(v){xe(i,i.return,v)}}o&64&&mg(i),o&512&&rs(i,i.return);break;case 3:if(Hn(n,i),o&64&&(n=i.updateQueue,n!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{sp(n,r)}catch(v){xe(i,i.return,v)}}break;case 27:r===null&&o&4&&wg(i);case 26:case 5:Hn(n,i),r===null&&o&4&&vg(i),o&512&&rs(i,i.return);break;case 12:Hn(n,i);break;case 31:Hn(n,i),o&4&&Rg(n,i);break;case 13:Hn(n,i),o&4&&Tg(n,i),o&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=u_.bind(null,i),x_(n,i))));break;case 22:if(o=i.memoizedState!==null||zn,!o){r=r!==null&&r.memoizedState!==null||nt,d=zn;var f=nt;zn=o,(nt=r)&&!f?$n(n,i,(i.subtreeFlags&8772)!==0):Hn(n,i),zn=d,nt=f}break;case 30:break;default:Hn(n,i)}}function Ag(n){var r=n.alternate;r!==null&&(n.alternate=null,Ag(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&wc(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var qe=null,Ot=!1;function Bn(n,r,i){for(i=i.child;i!==null;)Eg(n,r,i),i=i.sibling}function Eg(n,r,i){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(Ci,i)}catch{}switch(i.tag){case 26:nt||yn(i,r),Bn(n,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:nt||yn(i,r);var o=qe,d=Ot;_r(i.type)&&(qe=i.stateNode,Ot=!1),Bn(n,r,i),hs(i.stateNode),qe=o,Ot=d;break;case 5:nt||yn(i,r);case 6:if(o=qe,d=Ot,qe=null,Bn(n,r,i),qe=o,Ot=d,qe!==null)if(Ot)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(i.stateNode)}catch(f){xe(i,r,f)}else try{qe.removeChild(i.stateNode)}catch(f){xe(i,r,f)}break;case 18:qe!==null&&(Ot?(n=qe,mm(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),ri(n)):mm(qe,i.stateNode));break;case 4:o=qe,d=Ot,qe=i.stateNode.containerInfo,Ot=!0,Bn(n,r,i),qe=o,Ot=d;break;case 0:case 11:case 14:case 15:pr(2,i,r),nt||pr(4,i,r),Bn(n,r,i);break;case 1:nt||(yn(i,r),o=i.stateNode,typeof o.componentWillUnmount=="function"&&yg(i,r,o)),Bn(n,r,i);break;case 21:Bn(n,r,i);break;case 22:nt=(o=nt)||i.memoizedState!==null,Bn(n,r,i),nt=o;break;default:Bn(n,r,i)}}function Rg(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{ri(n)}catch(i){xe(r,r.return,i)}}}function Tg(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ri(n)}catch(i){xe(r,r.return,i)}}function n_(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new _g),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new _g),r;default:throw Error(s(435,n.tag))}}function Go(n,r){var i=n_(n);r.forEach(function(o){if(!i.has(o)){i.add(o);var d=d_.bind(null,n,o);o.then(d,d)}})}function kt(n,r){var i=r.deletions;if(i!==null)for(var o=0;o<i.length;o++){var d=i[o],f=n,v=r,_=v;e:for(;_!==null;){switch(_.tag){case 27:if(_r(_.type)){qe=_.stateNode,Ot=!1;break e}break;case 5:qe=_.stateNode,Ot=!1;break e;case 3:case 4:qe=_.stateNode.containerInfo,Ot=!0;break e}_=_.return}if(qe===null)throw Error(s(160));Eg(f,v,d),qe=null,Ot=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Cg(r,n),r=r.sibling}var on=null;function Cg(n,r){var i=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:kt(r,n),xt(n),o&4&&(pr(3,n,n.return),ns(3,n),pr(5,n,n.return));break;case 1:kt(r,n),xt(n),o&512&&(nt||i===null||yn(i,i.return)),o&64&&zn&&(n=n.updateQueue,n!==null&&(o=n.callbacks,o!==null&&(i=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var d=on;if(kt(r,n),xt(n),o&512&&(nt||i===null||yn(i,i.return)),o&4){var f=i!==null?i.memoizedState:null;if(o=n.memoizedState,i===null)if(o===null)if(n.stateNode===null){e:{o=n.type,i=n.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":f=d.getElementsByTagName("title")[0],(!f||f[xi]||f[ft]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(o),d.head.insertBefore(f,d.querySelector("head > title"))),yt(f,o,i),f[ft]=n,lt(f),o=f;break e;case"link":var v=Cm("link","href",d).get(o+(i.href||""));if(v){for(var _=0;_<v.length;_++)if(f=v[_],f.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&f.getAttribute("rel")===(i.rel==null?null:i.rel)&&f.getAttribute("title")===(i.title==null?null:i.title)&&f.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){v.splice(_,1);break t}}f=d.createElement(o),yt(f,o,i),d.head.appendChild(f);break;case"meta":if(v=Cm("meta","content",d).get(o+(i.content||""))){for(_=0;_<v.length;_++)if(f=v[_],f.getAttribute("content")===(i.content==null?null:""+i.content)&&f.getAttribute("name")===(i.name==null?null:i.name)&&f.getAttribute("property")===(i.property==null?null:i.property)&&f.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&f.getAttribute("charset")===(i.charSet==null?null:i.charSet)){v.splice(_,1);break t}}f=d.createElement(o),yt(f,o,i),d.head.appendChild(f);break;default:throw Error(s(468,o))}f[ft]=n,lt(f),o=f}n.stateNode=o}else Om(d,n.type,n.stateNode);else n.stateNode=Tm(d,o,n.memoizedProps);else f!==o?(f===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):f.count--,o===null?Om(d,n.type,n.stateNode):Tm(d,o,n.memoizedProps)):o===null&&n.stateNode!==null&&Hu(n,n.memoizedProps,i.memoizedProps)}break;case 27:kt(r,n),xt(n),o&512&&(nt||i===null||yn(i,i.return)),i!==null&&o&4&&Hu(n,n.memoizedProps,i.memoizedProps);break;case 5:if(kt(r,n),xt(n),o&512&&(nt||i===null||yn(i,i.return)),n.flags&32){d=n.stateNode;try{Ta(d,"")}catch(Z){xe(n,n.return,Z)}}o&4&&n.stateNode!=null&&(d=n.memoizedProps,Hu(n,d,i!==null?i.memoizedProps:d)),o&1024&&(Vu=!0);break;case 6:if(kt(r,n),xt(n),o&4){if(n.stateNode===null)throw Error(s(162));o=n.memoizedProps,i=n.stateNode;try{i.nodeValue=o}catch(Z){xe(n,n.return,Z)}}break;case 3:if(ol=null,d=on,on=il(r.containerInfo),kt(r,n),on=d,xt(n),o&4&&i!==null&&i.memoizedState.isDehydrated)try{ri(r.containerInfo)}catch(Z){xe(n,n.return,Z)}Vu&&(Vu=!1,Og(n));break;case 4:o=on,on=il(n.stateNode.containerInfo),kt(r,n),xt(n),on=o;break;case 12:kt(r,n),xt(n);break;case 31:kt(r,n),xt(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Go(n,o)));break;case 13:kt(r,n),xt(n),n.child.flags&8192&&n.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Ko=_t()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Go(n,o)));break;case 22:d=n.memoizedState!==null;var T=i!==null&&i.memoizedState!==null,j=zn,B=nt;if(zn=j||d,nt=B||T,kt(r,n),nt=B,zn=j,xt(n),o&8192)e:for(r=n.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(i===null||T||zn||nt||ta(n)),i=null,r=n;;){if(r.tag===5||r.tag===26){if(i===null){T=i=r;try{if(f=T.stateNode,d)v=f.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{_=T.stateNode;var V=T.memoizedProps.style,N=V!=null&&V.hasOwnProperty("display")?V.display:null;_.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(Z){xe(T,T.return,Z)}}}else if(r.tag===6){if(i===null){T=r;try{T.stateNode.nodeValue=d?"":T.memoizedProps}catch(Z){xe(T,T.return,Z)}}}else if(r.tag===18){if(i===null){T=r;try{var P=T.stateNode;d?ym(P,!0):ym(T.stateNode,!1)}catch(Z){xe(T,T.return,Z)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}o&4&&(o=n.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Go(n,i))));break;case 19:kt(r,n),xt(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Go(n,o)));break;case 30:break;case 21:break;default:kt(r,n),xt(n)}}function xt(n){var r=n.flags;if(r&2){try{for(var i,o=n.return;o!==null;){if(bg(o)){i=o;break}o=o.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var d=i.stateNode,f=$u(n);Vo(n,f,d);break;case 5:var v=i.stateNode;i.flags&32&&(Ta(v,""),i.flags&=-33);var _=$u(n);Vo(n,_,v);break;case 3:case 4:var T=i.stateNode.containerInfo,j=$u(n);qu(n,j,T);break;default:throw Error(s(161))}}catch(B){xe(n,n.return,B)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function Og(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;Og(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function Hn(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Sg(n,r.alternate,r),r=r.sibling}function ta(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:pr(4,r,r.return),ta(r);break;case 1:yn(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&yg(r,r.return,i),ta(r);break;case 27:hs(r.stateNode);case 26:case 5:yn(r,r.return),ta(r);break;case 22:r.memoizedState===null&&ta(r);break;case 30:ta(r);break;default:ta(r)}
vendor: 9,022 bytes, line 9
9n=n.sibling}}function $n(n,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var o=r.alternate,d=n,f=r,v=f.flags;switch(f.tag){case 0:case 11:case 15:$n(d,f,i),ns(4,f);break;case 1:if($n(d,f,i),o=f,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(j){xe(o,o.return,j)}if(o=f,d=o.updateQueue,d!==null){var _=o.stateNode;try{var T=d.shared.hiddenCallbacks;if(T!==null)for(d.shared.hiddenCallbacks=null,d=0;d<T.length;d++)ip(T[d],_)}catch(j){xe(o,o.return,j)}}i&&v&64&&mg(f),rs(f,f.return);break;case 27:wg(f);case 26:case 5:$n(d,f,i),i&&o===null&&v&4&&vg(f),rs(f,f.return);break;case 12:$n(d,f,i);break;case 31:$n(d,f,i),i&&v&4&&Rg(d,f);break;case 13:$n(d,f,i),i&&v&4&&Tg(d,f);break;case 22:f.memoizedState===null&&$n(d,f,i),rs(f,f.return);break;case 30:break;default:$n(d,f,i)}r=r.sibling}}function Gu(n,r){var i=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==i&&(n!=null&&n.refCount++,i!=null&&qi(i))}function Fu(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&qi(n))}function ln(n,r,i,o){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)kg(n,r,i,o),r=r.sibling}function kg(n,r,i,o){var d=r.flags;switch(r.tag){case 0:case 11:case 15:ln(n,r,i,o),d&2048&&ns(9,r);break;case 1:ln(n,r,i,o);break;case 3:ln(n,r,i,o),d&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&qi(n)));break;case 12:if(d&2048){ln(n,r,i,o),n=r.stateNode;try{var f=r.memoizedProps,v=f.id,_=f.onPostCommit;typeof _=="function"&&_(v,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(T){xe(r,r.return,T)}}else ln(n,r,i,o);break;case 31:ln(n,r,i,o);break;case 13:ln(n,r,i,o);break;case 23:break;case 22:f=r.stateNode,v=r.alternate,r.memoizedState!==null?f._visibility&2?ln(n,r,i,o):as(n,r):f._visibility&2?ln(n,r,i,o):(f._visibility|=2,Fa(n,r,i,o,(r.subtreeFlags&10256)!==0||!1)),d&2048&&Gu(v,r);break;case 24:ln(n,r,i,o),d&2048&&Fu(r.alternate,r);break;default:ln(n,r,i,o)}}function Fa(n,r,i,o,d){for(d=d&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var f=n,v=r,_=i,T=o,j=v.flags;switch(v.tag){case 0:case 11:case 15:Fa(f,v,_,T,d),ns(8,v);break;case 23:break;case 22:var B=v.stateNode;v.memoizedState!==null?B._visibility&2?Fa(f,v,_,T,d):as(f,v):(B._visibility|=2,Fa(f,v,_,T,d)),d&&j&2048&&Gu(v.alternate,v);break;case 24:Fa(f,v,_,T,d),d&&j&2048&&Fu(v.alternate,v);break;default:Fa(f,v,_,T,d)}r=r.sibling}}function as(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=n,o=r,d=o.flags;switch(o.tag){case 22:as(i,o),d&2048&&Gu(o.alternate,o);break;case 24:as(i,o),d&2048&&Fu(o.alternate,o);break;default:as(i,o)}r=r.sibling}}var is=8192;function Ka(n,r,i){if(n.subtreeFlags&is)for(n=n.child;n!==null;)xg(n,r,i),n=n.sibling}function xg(n,r,i){switch(n.tag){case 26:Ka(n,r,i),n.flags&is&&n.memoizedState!==null&&$_(i,on,n.memoizedState,n.memoizedProps);break;case 5:Ka(n,r,i);break;case 3:case 4:var o=on;on=il(n.stateNode.containerInfo),Ka(n,r,i),on=o;break;case 22:n.memoizedState===null&&(o=n.alternate,o!==null&&o.memoizedState!==null?(o=is,is=16777216,Ka(n,r,i),is=o):Ka(n,r,i));break;default:Ka(n,r,i)}}function Ig(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function ss(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var o=r[i];ct=o,jg(o,n)}Ig(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Lg(n),n=n.sibling}function Lg(n){switch(n.tag){case 0:case 11:case 15:ss(n),n.flags&2048&&pr(9,n,n.return);break;case 3:ss(n);break;case 12:ss(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,Fo(n)):ss(n);break;default:ss(n)}}function Fo(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var o=r[i];ct=o,jg(o,n)}Ig(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:pr(8,r,r.return),Fo(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,Fo(r));break;default:Fo(r)}n=n.sibling}}function jg(n,r){for(;ct!==null;){var i=ct;switch(i.tag){case 0:case 11:case 15:pr(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:qi(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,ct=o;else e:for(i=n;ct!==null;){o=ct;var d=o.sibling,f=o.return;if(Ag(o),o===i){ct=null;break e}if(d!==null){d.return=f,ct=d;break e}ct=f}}}var r_={getCacheForType:function(n){var r=gt(Ze),i=r.data.get(n);return i===void 0&&(i=n(),r.data.set(n,i)),i},cacheSignal:function(){return gt(Ze).controller.signal}},a_=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Me=null,me=null,ve=0,ke=0,$t=null,gr=!1,Ya=!1,Ku=!1,qn=0,Fe=0,mr=0,na=0,Yu=0,qt=0,Ja=0,os=null,It=null,Ju=!1,Ko=0,Ng=0,Yo=1/0,Jo=null,yr=null,it=0,vr=null,Qa=null,Vn=0,Qu=0,Xu=null,Mg=null,ls=0,Wu=null;function Vt(){return(Ce&2)!==0&&ve!==0?ve&-ve:z.T!==null?ad():Qh()}function Dg(){if(qt===0)if((ve&536870912)===0||we){var n=no;no<<=1,(no&3932160)===0&&(no=262144),qt=n}else qt=536870912;return n=Bt.current,n!==null&&(n.flags|=32),qt}function Lt(n,r,i){(n===Me&&(ke===2||ke===9)||n.cancelPendingCommit!==null)&&(Xa(n,0),br(n,ve,qt,!1)),ki(n,i),((Ce&2)===0||n!==Me)&&(n===Me&&((Ce&2)===0&&(na|=i),Fe===4&&br(n,ve,qt,!1)),vn(n))}function Pg(n,r,i){if((Ce&6)!==0)throw Error(s(327));var o=!i&&(r&127)===0&&(r&n.expiredLanes)===0||Oi(n,r),d=o?o_(n,r):ed(n,r,!0),f=o;do{if(d===0){Ya&&!o&&br(n,r,0,!1);break}else{if(i=n.current.alternate,f&&!i_(i)){d=ed(n,r,!1),f=!1;continue}if(d===2){if(f=r,n.errorRecoveryDisabledLanes&f)var v=0;else v=n.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){r=v;e:{var _=n;d=os;var T=_.current.memoizedState.isDehydrated;if(T&&(Xa(_,v).flags|=256),v=ed(_,v,!1),v!==2){if(Ku&&!T){_.errorRecoveryDisabledLanes|=f,na|=f,d=4;break e}f=It,It=d,f!==null&&(It===null?It=f:It.push.apply(It,f))}d=v}if(f=!1,d!==2)continue}}if(d===1){Xa(n,0),br(n,r,0,!0);break}e:{switch(o=n,f=d,f){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:br(o,r,qt,!gr);break e;case 2:It=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(d=Ko+300-_t(),10<d)){if(br(o,r,qt,!gr),ao(o,0,!0)!==0)break e;Vn=r,o.timeoutHandle=pm(Ug.bind(null,o,i,It,Jo,Ju,r,qt,na,Ja,gr,f,"Throttled",-0,0),d);break e}Ug(o,i,It,Jo,Ju,r,qt,na,Ja,gr,f,null,-0,0)}}break}while(!0);vn(n)}function Ug(n,r,i,o,d,f,v,_,T,j,B,V,N,P){if(n.timeoutHandle=-1,V=r.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kn},xg(r,f,V);var Z=(f&62914560)===f?Ko-_t():(f&4194048)===f?Ng-_t():0;if(Z=q_(V,Z),Z!==null){Vn=f,n.cancelPendingCommit=Z(Fg.bind(null,n,r,f,i,o,d,v,_,T,B,V,null,N,P)),br(n,f,v,!j);return}}Fg(n,r,f,i,o,d,v,_,T)}function i_(n){for(var r=n;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var d=i[o],f=d.getSnapshot;d=d.value;try{if(!Ut(f(),d))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function br(n,r,i,o){r&=~Yu,r&=~na,n.suspendedLanes|=r,n.pingedLanes&=~r,o&&(n.warmLanes|=r),o=n.expirationTimes;for(var d=r;0<d;){var f=31-Pt(d),v=1<<f;o[f]=-1,d&=~v}i!==0&&Kh(n,i,r)}function Qo(){return(Ce&6)===0?(cs(0),!1):!0}function Zu(){if(me!==null){if(ke===0)var n=me.return;else n=me,jn=Kr=null,gu(n),Ha=null,Gi=0,n=me;for(;n!==null;)gg(n.alternate,n),n=n.return;me=null}}function Xa(n,r){var i=n.timeoutHandle;i!==-1&&(n.timeoutHandle=-1,R_(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),Vn=0,Zu(),Me=n,me=i=In(n.current,null),ve=r,ke=0,$t=null,gr=!1,Ya=Oi(n,r),Ku=!1,Ja=qt=Yu=na=mr=Fe=0,It=os=null,Ju=!1,(r&8)!==0&&(r|=r&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=r;0<o;){var d=31-Pt(o),f=1<<d;r|=n[d],o&=~f}return qn=r,yo(),i}function zg(n,r){de=null,z.H=Zi,r===Ba||r===Ro?(r=tp(),ke=3):r===ru?(r=tp(),ke=4):ke=r===Iu?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,$t=r,me===null&&(Fe=1,zo(n,Qt(r,n.current)))}function Bg(){var n=Bt.current;return n===null?!0:(ve&4194048)===ve?en===null:(ve&62914560)===ve||(ve&536870912)!==0?n===en:!1}function Hg(){var n=z.H;return z.H=Zi,n===null?Zi:n}function $g(){var n=z.A;return z.A=r_,n}function Xo(){Fe=4,gr||(ve&4194048)!==ve&&Bt.current!==null||(Ya=!0),(mr&134217727)===0&&(na&134217727)===0||Me===null||br(Me,ve,qt,!1)}function ed(n,r,i){var o=Ce;Ce|=2;var d=Hg(),f=$g();(Me!==n||ve!==r)&&(Jo=null,Xa(n,r)),r=!1;var v=Fe;
vendor: 4,387 bytes, line 9
9e:do try{if(ke!==0&&me!==null){var _=me,T=$t;switch(ke){case 8:Zu(),v=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(r=!0);var j=ke;if(ke=0,$t=null,Wa(n,_,T,j),i&&Ya){v=0;break e}break;default:j=ke,ke=0,$t=null,Wa(n,_,T,j)}}s_(),v=Fe;break}catch(B){zg(n,B)}while(!0);return r&&n.shellSuspendCounter++,jn=Kr=null,Ce=o,z.H=d,z.A=f,me===null&&(Me=null,ve=0,yo()),v}function s_(){for(;me!==null;)qg(me)}function o_(n,r){var i=Ce;Ce|=2;var o=Hg(),d=$g();Me!==n||ve!==r?(Jo=null,Yo=_t()+500,Xa(n,r)):Ya=Oi(n,r);e:do try{if(ke!==0&&me!==null){r=me;var f=$t;t:switch(ke){case 1:ke=0,$t=null,Wa(n,r,f,1);break;case 2:case 9:if(Zf(f)){ke=0,$t=null,Vg(r);break}r=function(){ke!==2&&ke!==9||Me!==n||(ke=7),vn(n)},f.then(r,r);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:Zf(f)?(ke=0,$t=null,Vg(r)):(ke=0,$t=null,Wa(n,r,f,7));break;case 5:var v=null;switch(me.tag){case 26:v=me.memoizedState;case 5:case 27:var _=me;if(v?km(v):_.stateNode.complete){ke=0,$t=null;var T=_.sibling;if(T!==null)me=T;else{var j=_.return;j!==null?(me=j,Wo(j)):me=null}break t}}ke=0,$t=null,Wa(n,r,f,5);break;case 6:ke=0,$t=null,Wa(n,r,f,6);break;case 8:Zu(),Fe=6;break e;default:throw Error(s(462))}}l_();break}catch(B){zg(n,B)}while(!0);return jn=Kr=null,z.H=o,z.A=d,Ce=i,me!==null?0:(Me=null,ve=0,yo(),Fe)}function l_(){for(;me!==null&&!eo();)qg(me)}function qg(n){var r=fg(n.alternate,n,qn);n.memoizedProps=n.pendingProps,r===null?Wo(n):me=r}function Vg(n){var r=n,i=r.alternate;switch(r.tag){case 15:case 0:r=og(i,r,r.pendingProps,r.type,void 0,ve);break;case 11:r=og(i,r,r.pendingProps,r.type.render,r.ref,ve);break;case 5:gu(r);default:gg(i,r),r=me=$f(r,qn),r=fg(i,r,qn)}n.memoizedProps=n.pendingProps,r===null?Wo(n):me=r}function Wa(n,r,i,o){jn=Kr=null,gu(r),Ha=null,Gi=0;var d=r.return;try{if(Qw(n,d,r,i,ve)){Fe=1,zo(n,Qt(i,n.current)),me=null;return}}catch(f){if(d!==null)throw me=d,f;Fe=1,zo(n,Qt(i,n.current)),me=null;return}r.flags&32768?(we||o===1?n=!0:Ya||(ve&536870912)!==0?n=!1:(gr=n=!0,(o===2||o===9||o===3||o===6)&&(o=Bt.current,o!==null&&o.tag===13&&(o.flags|=16384))),Gg(r,n)):Wo(r)}function Wo(n){var r=n;do{if((r.flags&32768)!==0){Gg(r,gr);return}n=r.return;var i=Zw(r.alternate,r,qn);if(i!==null){me=i;return}if(r=r.sibling,r!==null){me=r;return}me=r=n}while(r!==null);Fe===0&&(Fe=5)}function Gg(n,r){do{var i=e_(n.alternate,n);if(i!==null){i.flags&=32767,me=i;return}if(i=n.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(n=n.sibling,n!==null)){me=n;return}me=n=i}while(n!==null);Fe=6,me=null}function Fg(n,r,i,o,d,f,v,_,T){n.cancelPendingCommit=null;do Zo();while(it!==0);if((Ce&6)!==0)throw Error(s(327));if(r!==null){if(r===n.current)throw Error(s(177));if(f=r.lanes|r.childLanes,f|=$c,H0(n,i,f,v,_,T),n===Me&&(me=Me=null,ve=0),Qa=r,vr=n,Vn=i,Qu=f,Xu=d,Mg=o,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,h_(ba,function(){return Xg(),null})):(n.callbackNode=null,n.callbackPriority=0),o=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||o){o=z.T,z.T=null,d=K.p,K.p=2,v=Ce,Ce|=4;try{t_(n,r,i)}finally{Ce=v,K.p=d,z.T=o}}it=1,Kg(),Yg(),Jg()}}function Kg(){if(it===1){it=0;var n=vr,r=Qa,i=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||i){i=z.T,z.T=null;var o=K.p;K.p=2;var d=Ce;Ce|=4;try{Cg(r,n);var f=hd,v=jf(n.containerInfo),_=f.focusedElem,T=f.selectionRange;if(v!==_&&_&&_.ownerDocument&&Lf(_.ownerDocument.documentElement,_)){if(T!==null&&Pc(_)){var j=T.start,B=T.end;if(B===void 0&&(B=j),"selectionStart"in _)_.selectionStart=j,_.selectionEnd=Math.min(B,_.value.length);else{var V=_.ownerDocument||document,N=V&&V.defaultView||window;if(N.getSelection){var P=N.getSelection(),Z=_.textContent.length,le=Math.min(T.start,Z),je=T.end===void 0?le:Math.min(T.end,Z);!P.extend&&le>je&&(v=je,je=le,le=v);var I=If(_,le),O=If(_,je);if(I&&O&&(P.rangeCount!==1||P.anchorNode!==I.node||P.anchorOffset!==I.offset||P.focusNode!==O.node||P.focusOffset!==O.offset)){var L=V.createRange();L.setStart(I.node,I.offset),P.removeAllRanges(),le>je?(P.addRange(L),P.extend(O.node,O.offset)):(L.setEnd(O.node,O.offset),P.addRange(L))}}}}for(V=[],P=_;P=P.parentNode;)P.nodeType===1&&V.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<V.length;_++){var H=V[_];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}dl=!!dd,hd=dd=null}finally{Ce=d,K.p=o,z.T=i}}n.current=r,it=2}}
vendor: 6,330 bytes, line 9
9function Yg(){if(it===2){it=0;var n=vr,r=Qa,i=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||i){i=z.T,z.T=null;var o=K.p;K.p=2;var d=Ce;Ce|=4;try{Sg(n,r.alternate,r)}finally{Ce=d,K.p=o,z.T=i}}it=3}}function Jg(){if(it===4||it===3){it=0,gc();var n=vr,r=Qa,i=Vn,o=Mg;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?it=5:(it=0,Qa=vr=null,Qg(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(yr=null),vc(i),r=r.stateNode,Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(Ci,r,void 0,(r.current.flags&128)===128)}catch{}if(o!==null){r=z.T,d=K.p,K.p=2,z.T=null;try{for(var f=n.onRecoverableError,v=0;v<o.length;v++){var _=o[v];f(_.value,{componentStack:_.stack})}}finally{z.T=r,K.p=d}}(Vn&3)!==0&&Zo(),vn(n),d=n.pendingLanes,(i&261930)!==0&&(d&42)!==0?n===Wu?ls++:(ls=0,Wu=n):ls=0,cs(0)}}function Qg(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,qi(r)))}function Zo(){return Kg(),Yg(),Jg(),Xg()}function Xg(){if(it!==5)return!1;var n=vr,r=Qu;Qu=0;var i=vc(Vn),o=z.T,d=K.p;try{K.p=32>i?32:i,z.T=null,i=Xu,Xu=null;var f=vr,v=Vn;if(it=0,Qa=vr=null,Vn=0,(Ce&6)!==0)throw Error(s(331));var _=Ce;if(Ce|=4,Lg(f.current),kg(f,f.current,v,i),Ce=_,cs(0,!1),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(Ci,f)}catch{}return!0}finally{K.p=d,z.T=o,Qg(n,r)}}function Wg(n,r,i){r=Qt(i,r),r=xu(n.stateNode,r,2),n=dr(n,r,2),n!==null&&(ki(n,2),vn(n))}function xe(n,r,i){if(n.tag===3)Wg(n,n,i);else for(;r!==null;){if(r.tag===3){Wg(r,n,i);break}else if(r.tag===1){var o=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(yr===null||!yr.has(o))){n=Qt(i,n),i=Zp(2),o=dr(r,i,2),o!==null&&(eg(i,o,r,n),ki(o,2),vn(o));break}}r=r.return}}function td(n,r,i){var o=n.pingCache;if(o===null){o=n.pingCache=new a_;var d=new Set;o.set(r,d)}else d=o.get(r),d===void 0&&(d=new Set,o.set(r,d));d.has(i)||(Ku=!0,d.add(i),n=c_.bind(null,n,r,i),r.then(n,n))}function c_(n,r,i){var o=n.pingCache;o!==null&&o.delete(r),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,Me===n&&(ve&i)===i&&(Fe===4||Fe===3&&(ve&62914560)===ve&&300>_t()-Ko?(Ce&2)===0&&Xa(n,0):Yu|=i,Ja===ve&&(Ja=0)),vn(n)}function Zg(n,r){r===0&&(r=Fh()),n=Vr(n,r),n!==null&&(ki(n,r),vn(n))}function u_(n){var r=n.memoizedState,i=0;r!==null&&(i=r.retryLane),Zg(n,i)}function d_(n,r){var i=0;switch(n.tag){case 31:case 13:var o=n.stateNode,d=n.memoizedState;d!==null&&(i=d.retryLane);break;case 19:o=n.stateNode;break;case 22:o=n.stateNode._retryCache;break;default:throw Error(s(314))}o!==null&&o.delete(r),Zg(n,i)}function h_(n,r){return an(n,r)}var el=null,Za=null,nd=!1,tl=!1,rd=!1,wr=0;function vn(n){n!==Za&&n.next===null&&(Za===null?el=Za=n:Za=Za.next=n),tl=!0,nd||(nd=!0,p_())}function cs(n,r){if(!rd&&tl){rd=!0;do for(var i=!1,o=el;o!==null;){if(n!==0){var d=o.pendingLanes;if(d===0)var f=0;else{var v=o.suspendedLanes,_=o.pingedLanes;f=(1<<31-Pt(42|n)+1)-1,f&=d&~(v&~_),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(i=!0,rm(o,f))}else f=ve,f=ao(o,o===Me?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||Oi(o,f)||(i=!0,rm(o,f));o=o.next}while(i);rd=!1}}function f_(){em()}function em(){tl=nd=!1;var n=0;wr!==0&&E_()&&(n=wr);for(var r=_t(),i=null,o=el;o!==null;){var d=o.next,f=tm(o,r);f===0?(o.next=null,i===null?el=d:i.next=d,d===null&&(Za=i)):(i=o,(n!==0||(f&3)!==0)&&(tl=!0)),o=d}it!==0&&it!==5||cs(n),wr!==0&&(wr=0)}function tm(n,r){for(var i=n.suspendedLanes,o=n.pingedLanes,d=n.expirationTimes,f=n.pendingLanes&-62914561;0<f;){var v=31-Pt(f),_=1<<v,T=d[v];T===-1?((_&i)===0||(_&o)!==0)&&(d[v]=B0(_,r)):T<=r&&(n.expiredLanes|=_),f&=~_}if(r=Me,i=ve,i=ao(n,n===r?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o=n.callbackNode,i===0||n===r&&(ke===2||ke===9)||n.cancelPendingCommit!==null)return o!==null&&o!==null&&Ti(o),n.callbackNode=null,n.callbackPriority=0;if((i&3)===0||Oi(n,i)){if(r=i&-i,r===n.callbackPriority)return r;switch(o!==null&&Ti(o),vc(i)){case 2:case 8:i=pn;break;case 32:i=ba;break;case 268435456:i=Gh;break;default:i=ba}return o=nm.bind(null,n),i=an(i,o),n.callbackPriority=r,n.callbackNode=i,r}return o!==null&&o!==null&&Ti(o),n.callbackPriority=2,n.callbackNode=null,2}function nm(n,r){if(it!==0&&it!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(Zo()&&n.callbackNode!==i)return null;var o=ve;return o=ao(n,n===Me?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o===0?null:(Pg(n,o,r),tm(n,_t()),n.callbackNode!=null&&n.callbackNode===i?nm.bind(null,n):null)}function rm(n,r){if(Zo())return null;Pg(n,r,!0)}function p_(){T_(function(){(Ce&6)!==0?an(ht,f_):em()})}function ad(){if(wr===0){var n=Ua;n===0&&(n=to,to<<=1,(to&261888)===0&&(to=256)),wr=n}return wr}function am(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:lo(""+n)}function im(n,r){var i=r.ownerDocument.createElement("input");return i.name=r.name,i.value=r.value,n.id&&i.setAttribute("form",n.id),r.parentNode.insertBefore(i,r),n=new FormData(n),i.parentNode.removeChild(i),n}function g_(n,r,i,o,d){if(r==="submit"&&i&&i.stateNode===d){var f=am((d[Tt]||null).action),v=o.submitter;v&&(r=(r=v[Tt]||null)?am(r.formAction):v.getAttribute("formAction"),r!==null&&(f=r,v=null));var _=new fo("action","action",null,o,d);n.push({event:_,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(wr!==0){var T=v?im(d,v):new FormData(d);Eu(i,{pending:!0,data:T,method:d.method,action:f},null,T)}}else typeof f=="function"&&(_.preventDefault(),T=v?im(d,v):new FormData(d),Eu(i,{pending:!0,data:T,method:d.method,action:f},f,T))},currentTarget:d}]})}}for(var id=0;id<Hc.length;id++){var sd=Hc[id],m_=sd.toLowerCase(),y_=sd[0].toUpperCase()+sd.slice(1);sn(m_,"on"+y_)}sn(Df,"onAnimationEnd"),sn(Pf,"onAnimationIteration"),sn(Uf,"onAnimationStart"),sn("dblclick","onDoubleClick"),sn("focusin","onFocus"),sn("focusout","onBlur"),sn(jw,"onTransitionRun"),sn(Nw,"onTransitionStart"),sn(Mw,"onTransitionCancel"),sn(zf,"onTransitionEnd"),Ea("onMouseEnter",["mouseout","mouseover"]),Ea("onMouseLeave",["mouseout","mouseover"]),Ea("onPointerEnter",["pointerout","pointerover"]),Ea("onPointerLeave",["pointerout","pointerover"]),Br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Br("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),Br("onBeforeInput",["compositionend","keypress","textInput","paste"]),Br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var us="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(" "),v_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(us));function sm(n,r){r=(r&4)!==0;for(var i=0;i<n.length;i++){var o=n[i],d=o.event;o=o.listeners;e:{var f=void 0;if(r)for(var v=o.length-1;0<=v;v--){var _=o[v],T=_.instance,j=_.currentTarget;if(_=_.listener,T!==f&&d.isPropagationStopped())break e;f=_,d.currentTarget=j;try{f(d)}catch(B){mo(B)}d.currentTarget=null,f=T}else for(v=0;v<o.length;v++){if(_=o[v],T=_.instance,j=_.currentTarget,_=_.listener,T!==f&&d.isPropagationStopped())break e;f=_,d.currentTarget=j;try{f(d)}catch(B){mo(B)}d.currentTarget=null,f=T}}}}function ye(n,r){var i=r[bc];i===void 0&&(i=r[bc]=new Set);var o=n+"__bubble";i.has(o)||(om(r,n,2,!1),i.add(o))}function od(n,r,i){var o=0;r&&(o|=4),om(i,n,o,r)}var nl="_reactListening"+Math.random().toString(36).slice(2);function ld(n){if(!n[nl]){n[nl]=!0,Zh.forEach(function(i){i!=="selectionchange"&&(v_.has(i)||od(i,!1,n),od(i,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[nl]||(r[nl]=!0,od("selectionchange",!1,r))}}function om(n,r,i,o){switch(Dm(r)){case 2:var d=F_;break;case 8:d=K_;break;default:d=Ad}i=d.bind(null,r,i,n),d=void 0,!Oc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),o?d!==void 0?n.addEventListener(r,i,{capture:!0,passive:d}):n.addEventListener(r,i,!0):d!==void 0?n.addEventListener(r,i,{passive:d}):n.addEventListener(r,i,!1)}function cd(n,r,i,o,d){var f=o;if((r&1)===0&&(r&2)===0&&o!==null)e:for(;;){if(o===null)return;var v=o.tag;if(v===3||v===4){var _=o.stateNode.containerInfo;if(_===d)break;if(v===4)for(v=o.return;v!==null;){var T=v.tag;if((T===3||T===4)&&v.stateNode.containerInfo===d)return;v=v.return}for(;_!==null;){if(v=_a(_),v===null)return;if(T=v.tag,T===5||T===6||T===26||T===27){o=f=v;continue e}_=_.parentNode}}o=o.return}hf(function(){var j=f,B=Tc(i),V=[];e:{var N=Bf.get(n);if(N!==void 0){var P=fo,Z=n;switch(n){case"keypress":if(uo(i)===0)break e;case"keydown":case"keyup":P=dw;break;case"focusin":Z="focus",P=Lc;break;case"focusout":Z="blur",P=Lc;break;case"beforeblur":case"afterblur":P=Lc;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=gf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=Z0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=pw;break;case Df:case Pf:case Uf:P=nw;break;case zf:P=mw;break;case"scroll":case"scrollend":P=X0;break;case"wheel":P=vw;break;case"copy":case"cut":case"paste":P=aw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=yf;break;case"toggle":case"beforetoggle":P=ww}var le=(r&4)!==0,je=!le&&(n==="scroll"||n==="scrollend"),I=le?N!==null?N+"Capture":null:N;le=[];for(var O=j,L;O!==null;){var H=O;if(L=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||L===null||I===null||(H=Li(O,I),H!=null&&le.push(ds(O,H,L))),je)break;O=O.return}0<le.length&&(N=new P(N,Z,null,i,B),V.push({event:N,listeners:le}))}}if((r&7)===0){e:{if(N=n==="mouseover"||n==="pointerover",P=n==="mouseout"||n==="pointerout",N&&i!==Rc&&(Z=i.relatedTarget||i.fromElement)&&(_a(Z)||Z[wa]))break e;if((P||N)&&(N=B.window===B?B:(N=B.ownerDocument)?N.defaultView||N.parentWindow:window,P?(Z=i.relatedTarget||i.toElement,P=j,Z=Z?_a(Z):null,Z!==null&&(je=c(Z),le=Z.tag,Z!==je||le!==5&&le!==27&&le!==6)&&(Z=null)):(P=null,Z=j),P!==Z)){if(le=gf,H="onMouseLeave",I="onMouseEnter",O="mouse",(n==="pointerout"||n==="pointerover")&&(le=yf,H="onPointerLeave",I="onPointerEnter",O="pointer"),je=P==null?N:Ii(P),L=Z==null?N:Ii(Z),N=new le(H,O+"leave",P,i,B),N.target=je,N.relatedTarget=L,H=null,_a(B)===j&&(le=new le(I,O+"enter",Z,i,B),le.target=L,le.relatedTarget=je,H=le),je=H,P&&Z)t:{for(le=b_,I=P,O=Z,L=0,H=I;H;H=le(H))L++;H=0;for(var ae=O;ae;ae=le(ae))H++;for(;0<L-H;)I=le(I),L--;for(;0<H-L;)O=le(O),H--;for(;L--;){if(I===O||O!==null&&I===O.alternate){le=I;break t}
vendor: 5,291 bytes, lines 9-10
9I=le(I),O=le(O)}le=null}else le=null;P!==null&&lm(V,N,P,le,!1),Z!==null&&je!==null&&lm(V,je,Z,le,!0)}}e:{if(N=j?Ii(j):window,P=N.nodeName&&N.nodeName.toLowerCase(),P==="select"||P==="input"&&N.type==="file")var Ee=Rf;else if(Af(N))if(Tf)Ee=xw;else{Ee=Ow;var te=Cw}else P=N.nodeName,!P||P.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?j&&Ec(j.elementType)&&(Ee=Rf):Ee=kw;if(Ee&&(Ee=Ee(n,j))){Ef(V,Ee,i,B);break e}te&&te(n,N,j),n==="focusout"&&j&&N.type==="number"&&j.memoizedProps.value!=null&&Ac(N,"number",N.value)}switch(te=j?Ii(j):window,n){case"focusin":(Af(te)||te.contentEditable==="true")&&(xa=te,Uc=j,Bi=null);break;case"focusout":Bi=Uc=xa=null;break;case"mousedown":zc=!0;break;case"contextmenu":case"mouseup":case"dragend":zc=!1,Nf(V,i,B);break;case"selectionchange":if(Lw)break;case"keydown":case"keyup":Nf(V,i,B)}var he;if(Nc)e:{switch(n){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else ka?_f(n,i)&&(be="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(be="onCompositionStart");be&&(vf&&i.locale!=="ko"&&(ka||be!=="onCompositionStart"?be==="onCompositionEnd"&&ka&&(he=ff()):(ar=B,kc="value"in ar?ar.value:ar.textContent,ka=!0)),te=rl(j,be),0<te.length&&(be=new mf(be,n,null,i,B),V.push({event:be,listeners:te}),he?be.data=he:(he=Sf(i),he!==null&&(be.data=he)))),(he=Sw?Aw(n,i):Ew(n,i))&&(be=rl(j,"onBeforeInput"),0<be.length&&(te=new mf("onBeforeInput","beforeinput",null,i,B),V.push({event:te,listeners:be}),te.data=he)),g_(V,n,j,i,B)}sm(V,r)})}function ds(n,r,i){return{instance:n,listener:r,currentTarget:i}}function rl(n,r){for(var i=r+"Capture",o=[];n!==null;){var d=n,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=Li(n,i),d!=null&&o.unshift(ds(n,d,f)),d=Li(n,r),d!=null&&o.push(ds(n,d,f))),n.tag===3)return o;n=n.return}return[]}function b_(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function lm(n,r,i,o,d){for(var f=r._reactName,v=[];i!==null&&i!==o;){var _=i,T=_.alternate,j=_.stateNode;if(_=_.tag,T!==null&&T===o)break;_!==5&&_!==26&&_!==27||j===null||(T=j,d?(j=Li(i,f),j!=null&&v.unshift(ds(i,j,T))):d||(j=Li(i,f),j!=null&&v.push(ds(i,j,T)))),i=i.return}v.length!==0&&n.push({event:r,listeners:v})}var w_=/\r\n?/g,__=/\u0000|\uFFFD/g;function cm(n){return(typeof n=="string"?n:""+n).replace(w_,`
10`).replace(__,"")}function um(n,r){return r=cm(r),cm(n)===r}function Le(n,r,i,o,d,f){switch(i){case"children":typeof o=="string"?r==="body"||r==="textarea"&&o===""||Ta(n,o):(typeof o=="number"||typeof o=="bigint")&&r!=="body"&&Ta(n,""+o);break;case"className":so(n,"class",o);break;case"tabIndex":so(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":so(n,i,o);break;case"style":uf(n,o,f);break;case"data":if(r!=="object"){so(n,"data",o);break}case"src":case"href":if(o===""&&(r!=="a"||i!=="href")){n.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(i);break}o=lo(""+o),n.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){n.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(i==="formAction"?(r!=="input"&&Le(n,r,"name",d.name,d,null),Le(n,r,"formEncType",d.formEncType,d,null),Le(n,r,"formMethod",d.formMethod,d,null),Le(n,r,"formTarget",d.formTarget,d,null)):(Le(n,r,"encType",d.encType,d,null),Le(n,r,"method",d.method,d,null),Le(n,r,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(i);break}o=lo(""+o),n.setAttribute(i,o);break;case"onClick":o!=null&&(n.onclick=kn);break;case"onScroll":o!=null&&ye("scroll",n);break;case"onScrollEnd":o!=null&&ye("scrollend",n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(i=o.__html,i!=null){if(d.children!=null)throw Error(s(60));n.innerHTML=i}}break;case"multiple":n.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":n.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){n.removeAttribute("xlink:href");break}i=lo(""+o),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(i,""+o):n.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(i,""):n.removeAttribute(i);break;case"capture":case"download":o===!0?n.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(i,o):n.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?n.setAttribute(i,o):n.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?n.removeAttribute(i):n.setAttribute(i,o);break;case"popover":ye("beforetoggle",n),ye("toggle",n),io(n,"popover",o);break;case"xlinkActuate":On(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":On(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":On(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":On(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":On(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":On(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":On(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":On(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":On(n,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":io(n,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=J0.get(i)||i,io(n,i,o))}}function ud(n,r,i,o,d,f){switch(i){case"style":uf(n,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(i=o.__html,i!=null){if(d.children!=null)throw Error(s(60));n.innerHTML=i}}break;case"children":typeof o=="string"?Ta(n,o):(typeof o=="number"||typeof o=="bigint")&&Ta(n,""+o);break;case"onScroll":o!=null&&ye("scroll",n);break;case"onScrollEnd":o!=null&&ye("scrollend",n);break;case"onClick":o!=null&&(n.onclick=kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ef.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),r=i.slice(2,d?i.length-7:void 0),f=n[Tt]||null,f=f!=null?f[i]:null,typeof f=="function"&&n.removeEventListener(r,f,d),typeof o=="function")){typeof f!="function"&&f!==null&&(i in n?n[i]=null:n.hasAttribute(i)&&n.removeAttribute(i)),n.addEventListener(r,o,d);break e}i in n?n[i]=o:o===!0?n.setAttribute(i,""):io(n,i,o)}}}function yt(n,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",n),ye("load",n);var o=!1,d=!1,f;for(f in i)if(i.hasOwnProperty(f)){var v=i[f];if(v!=null)switch(f){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Le(n,r,f,v,i,null)}}d&&Le(n,r,"srcSet",i.srcSet,i,null),o&&Le(n,r,"src",i.src,i,null);return;case"input":ye("invalid",n);var _=f=v=d=null,T=null,j=null;for(o in i)if(i.hasOwnProperty(o)){var B=i[o];if(B!=null)switch(o){case"name":d=B;break;case"type":v=B;break;case"checked":T=B;break;case"defaultChecked":j=B;break;case"value":f=B;break;case"defaultValue":_=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,r));break;default:Le(n,r,o,B,i,null)}}sf(n,f,_,T,j,v,d,!1);return;case"select":ye("invalid",n),o=v=f=null;for(d in i)if(i.hasOwnProperty(d)&&(_=i[d],_!=null))switch(d){case"value":f=_;break;case"defaultValue":v=_;break;case"multiple":o=_;default:Le(n,r,d,_,i,null)}r=f,i=v,n.multiple=!!o,r!=null?Ra(n,!!o,r,!1):i!=null&&Ra(n,!!o,i,!0);return;case"textarea":ye("invalid",n),f=d=o=null;for(v in i)if(i.hasOwnProperty(v)&&(_=i[v],_!=null))switch(v){case"value":o=_;break;case"defaultValue":d=_;break;case"children":f=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:Le(n,r,v,_,i,null)}lf(n,o,d,f);return;case"option":for(T in i)i.hasOwnProperty(T)&&(o=i[T],o!=null)&&(T==="selected"?n.selected=o&&typeof o!="function"&&typeof o!="symbol":Le(n,r,T,o,i,null));return;
vendor: 4,264 bytes, line 10
10case"dialog":ye("beforetoggle",n),ye("toggle",n),ye("cancel",n),ye("close",n);break;case"iframe":case"object":ye("load",n);break;case"video":case"audio":for(o=0;o<us.length;o++)ye(us[o],n);break;case"image":ye("error",n),ye("load",n);break;case"details":ye("toggle",n);break;case"embed":case"source":case"link":ye("error",n),ye("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in i)if(i.hasOwnProperty(j)&&(o=i[j],o!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Le(n,r,j,o,i,null)}return;default:if(Ec(r)){for(B in i)i.hasOwnProperty(B)&&(o=i[B],o!==void 0&&ud(n,r,B,o,i,void 0));return}}for(_ in i)i.hasOwnProperty(_)&&(o=i[_],o!=null&&Le(n,r,_,o,i,null))}function S_(n,r,i,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,f=null,v=null,_=null,T=null,j=null,B=null;for(P in i){var V=i[P];if(i.hasOwnProperty(P)&&V!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":T=V;default:o.hasOwnProperty(P)||Le(n,r,P,null,o,V)}}for(var N in o){var P=o[N];if(V=i[N],o.hasOwnProperty(N)&&(P!=null||V!=null))switch(N){case"type":f=P;break;case"name":d=P;break;case"checked":j=P;break;case"defaultChecked":B=P;break;case"value":v=P;break;case"defaultValue":_=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,r));break;default:P!==V&&Le(n,r,N,P,o,V)}}Sc(n,v,_,T,j,B,f,d);return;case"select":P=v=_=N=null;for(f in i)if(T=i[f],i.hasOwnProperty(f)&&T!=null)switch(f){case"value":break;case"multiple":P=T;default:o.hasOwnProperty(f)||Le(n,r,f,null,o,T)}for(d in o)if(f=o[d],T=i[d],o.hasOwnProperty(d)&&(f!=null||T!=null))switch(d){case"value":N=f;break;case"defaultValue":_=f;break;case"multiple":v=f;default:f!==T&&Le(n,r,d,f,o,T)}r=_,i=v,o=P,N!=null?Ra(n,!!i,N,!1):!!o!=!!i&&(r!=null?Ra(n,!!i,r,!0):Ra(n,!!i,i?[]:"",!1));return;case"textarea":P=N=null;for(_ in i)if(d=i[_],i.hasOwnProperty(_)&&d!=null&&!o.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Le(n,r,_,null,o,d)}for(v in o)if(d=o[v],f=i[v],o.hasOwnProperty(v)&&(d!=null||f!=null))switch(v){case"value":N=d;break;case"defaultValue":P=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:d!==f&&Le(n,r,v,d,o,f)}of(n,N,P);return;case"option":for(var Z in i)N=i[Z],i.hasOwnProperty(Z)&&N!=null&&!o.hasOwnProperty(Z)&&(Z==="selected"?n.selected=!1:Le(n,r,Z,null,o,N));for(T in o)N=o[T],P=i[T],o.hasOwnProperty(T)&&N!==P&&(N!=null||P!=null)&&(T==="selected"?n.selected=N&&typeof N!="function"&&typeof N!="symbol":Le(n,r,T,N,o,P));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var le in i)N=i[le],i.hasOwnProperty(le)&&N!=null&&!o.hasOwnProperty(le)&&Le(n,r,le,null,o,N);for(j in o)if(N=o[j],P=i[j],o.hasOwnProperty(j)&&N!==P&&(N!=null||P!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,r));break;default:Le(n,r,j,N,o,P)}return;default:if(Ec(r)){for(var je in i)N=i[je],i.hasOwnProperty(je)&&N!==void 0&&!o.hasOwnProperty(je)&&ud(n,r,je,void 0,o,N);for(B in o)N=o[B],P=i[B],!o.hasOwnProperty(B)||N===P||N===void 0&&P===void 0||ud(n,r,B,N,o,P);return}}for(var I in i)N=i[I],i.hasOwnProperty(I)&&N!=null&&!o.hasOwnProperty(I)&&Le(n,r,I,null,o,N);for(V in o)N=o[V],P=i[V],!o.hasOwnProperty(V)||N===P||N==null&&P==null||Le(n,r,V,N,o,P)}function dm(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function A_(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,i=performance.getEntriesByType("resource"),o=0;o<i.length;o++){var d=i[o],f=d.transferSize,v=d.initiatorType,_=d.duration;if(f&&_&&dm(v)){for(v=0,_=d.responseEnd,o+=1;o<i.length;o++){var T=i[o],j=T.startTime;if(j>_)break;var B=T.transferSize,V=T.initiatorType;B&&dm(V)&&(T=T.responseEnd,v+=B*(T<_?1:(_-j)/(T-j)))}if(--o,r+=8*(f+v)/(d.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?
vendor: 4,373 bytes, line 10
10n:5}var dd=null,hd=null;function al(n){return n.nodeType===9?n:n.ownerDocument}function hm(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fm(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function fd(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var pd=null;function E_(){var n=window.event;return n&&n.type==="popstate"?n===pd?!1:(pd=n,!0):(pd=null,!1)}var pm=typeof setTimeout=="function"?setTimeout:void 0,R_=typeof clearTimeout=="function"?clearTimeout:void 0,gm=typeof Promise=="function"?Promise:void 0,T_=typeof queueMicrotask=="function"?queueMicrotask:typeof gm<"u"?function(n){return gm.resolve(null).then(n).catch(C_)}:pm;function C_(n){setTimeout(function(){throw n})}function _r(n){return n==="head"}function mm(n,r){var i=r,o=0;do{var d=i.nextSibling;if(n.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"||i==="/&"){if(o===0){n.removeChild(d),ri(r);return}o--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")o++;else if(i==="html")hs(n.ownerDocument.documentElement);else if(i==="head"){i=n.ownerDocument.head,hs(i);for(var f=i.firstChild;f;){var v=f.nextSibling,_=f.nodeName;f[xi]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&f.rel.toLowerCase()==="stylesheet"||i.removeChild(f),f=v}}else i==="body"&&hs(n.ownerDocument.body);i=d}while(i);ri(r)}function ym(n,r){var i=n;n=0;do{var o=i.nextSibling;if(i.nodeType===1?r?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(r?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(n===0)break;n--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||n++;i=o}while(i)}function gd(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":gd(i),wc(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function O_(n,r,i,o){for(;n.nodeType===1;){var d=i;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!o&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(o){if(!n[xi])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(f=n.getAttribute("rel"),f==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(f!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(f=n.getAttribute("src"),(f!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&f&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var f=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===f)return n}else return n;if(n=tn(n.nextSibling),n===null)break}return null}function k_(n,r,i){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=tn(n.nextSibling),n===null))return null;return n}function vm(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=tn(n.nextSibling),n===null))return null;return n}function md(n){return n.data==="$?"||n.data==="$~"}function yd(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function x_(n,r){var i=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||i.readyState!=="loading")r();else{var o=function(){r(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),n._reactRetry=o}}function tn(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;
vendor: 1,042 bytes, line 10
10if(r==="/$"||r==="/&")return null}}return n}var vd=null;function bm(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var i=n.data;if(i==="/$"||i==="/&"){if(r===0)return tn(n.nextSibling);r--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||r++}n=n.nextSibling}return null}function wm(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(r===0)return n;r--}else i!=="/$"&&i!=="/&"||r++}n=n.previousSibling}return null}function _m(n,r,i){switch(r=al(i),n){case"html":if(n=r.documentElement,!n)throw Error(s(452));return n;case"head":if(n=r.head,!n)throw Error(s(453));return n;case"body":if(n=r.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function hs(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);wc(n)}var nn=new Map,Sm=new Set;function il(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Gn=K.d;K.d={f:I_,r:L_,D:j_,C:N_,L:M_,m:D_,X:U_,S:P_,M:z_};function I_(){var n=Gn.f(),r
vendor: 5,391 bytes, line 10
10=Qo();return n||r}function L_(n){var r=Sa(n);r!==null&&r.tag===5&&r.type==="form"?zp(r):Gn.r(n)}var ei=typeof document>"u"?null:document;function Am(n,r,i){var o=ei;if(o&&typeof r=="string"&&r){var d=Yt(r);d='link[rel="'+n+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),Sm.has(d)||(Sm.add(d),n={rel:n,crossOrigin:i,href:r},o.querySelector(d)===null&&(r=o.createElement("link"),yt(r,"link",n),lt(r),o.head.appendChild(r)))}}function j_(n){Gn.D(n),Am("dns-prefetch",n,null)}function N_(n,r){Gn.C(n,r),Am("preconnect",n,r)}function M_(n,r,i){Gn.L(n,r,i);var o=ei;if(o&&n&&r){var d='link[rel="preload"][as="'+Yt(r)+'"]';r==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+Yt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+Yt(i.imageSizes)+'"]')):d+='[href="'+Yt(n)+'"]';var f=d;switch(r){case"style":f=ti(n);break;case"script":f=ni(n)}nn.has(f)||(n=m({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:n,as:r},i),nn.set(f,n),o.querySelector(d)!==null||r==="style"&&o.querySelector(fs(f))||r==="script"&&o.querySelector(ps(f))||(r=o.createElement("link"),yt(r,"link",n),lt(r),o.head.appendChild(r)))}}function D_(n,r){Gn.m(n,r);var i=ei;if(i&&n){var o=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+Yt(o)+'"][href="'+Yt(n)+'"]',f=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ni(n)}if(!nn.has(f)&&(n=m({rel:"modulepreload",href:n},r),nn.set(f,n),i.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(ps(f)))return}o=i.createElement("link"),yt(o,"link",n),lt(o),i.head.appendChild(o)}}}function P_(n,r,i){Gn.S(n,r,i);var o=ei;if(o&&n){var d=Aa(o).hoistableStyles,f=ti(n);r=r||"default";var v=d.get(f);if(!v){var _={loading:0,preload:null};if(v=o.querySelector(fs(f)))_.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":r},i),(i=nn.get(f))&&bd(n,i);var T=v=o.createElement("link");lt(T),yt(T,"link",n),T._p=new Promise(function(j,B){T.onload=j,T.onerror=B}),T.addEventListener("load",function(){_.loading|=1}),T.addEventListener("error",function(){_.loading|=2}),_.loading|=4,sl(v,r,o)}v={type:"stylesheet",instance:v,count:1,state:_},d.set(f,v)}}}function U_(n,r){Gn.X(n,r);var i=ei;if(i&&n){var o=Aa(i).hoistableScripts,d=ni(n),f=o.get(d);f||(f=i.querySelector(ps(d)),f||(n=m({src:n,async:!0},r),(r=nn.get(d))&&wd(n,r),f=i.createElement("script"),lt(f),yt(f,"link",n),i.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(d,f))}}function z_(n,r){Gn.M(n,r);var i=ei;if(i&&n){var o=Aa(i).hoistableScripts,d=ni(n),f=o.get(d);f||(f=i.querySelector(ps(d)),f||(n=m({src:n,async:!0,type:"module"},r),(r=nn.get(d))&&wd(n,r),f=i.createElement("script"),lt(f),yt(f,"link",n),i.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(d,f))}}function Em(n,r,i,o){var d=(d=ge.current)?il(d):null;if(!d)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=ti(i.href),i=Aa(d).hoistableStyles,o=i.get(r),o||(o={type:"style",instance:null,count:0,state:null},i.set(r,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){n=ti(i.href);var f=Aa(d).hoistableStyles,v=f.get(n);if(v||(d=d.ownerDocument||d,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(n,v),(f=d.querySelector(fs(n)))&&!f._p&&(v.instance=f,v.state.loading=5),nn.has(n)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},nn.set(n,i),f||B_(d,n,i,v.state))),r&&o===null)throw Error(s(528,""));return v}if(r&&o!==null)throw Error(s(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=ni(i),i=Aa(d).hoistableScripts,o=i.get(r),o||(o={type:"script",instance:null,count:0,state:null},i.set(r,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function ti(n){return'href="'+Yt(n)+'"'}function fs(n){return'link[rel="stylesheet"]['+n+"]"}function Rm(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function B_(n,r,i,o){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?o.loading=1:(r=n.createElement("link"),o.preload=r,r.addEventListener("load",function(){return o.loading|=1}),r.addEventListener("error",function(){return o.loading|=2}),yt(r,"link",i),lt(r),n.head.appendChild(r))}function ni(n){return'[src="'+Yt(n)+'"]'}function ps(n){return"script[async]"+n}function Tm(n,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var o=n.querySelector('style[data-href~="'+Yt(i.href)+'"]');if(o)return r.instance=o,lt(o),o;var d=m({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),lt(o),yt(o,"style",d),sl(o,i.precedence,n),r.instance=o;case"stylesheet":d=ti(i.href);var f=n.querySelector(fs(d));if(f)return r.state.loading|=4,r.instance=f,lt(f),f;o=Rm(i),(d=nn.get(d))&&bd(o,d),f=(n.ownerDocument||n).createElement("link"),lt(f);var v=f;return v._p=new Promise(function(_,T){v.onload=_,v.onerror=T}
vendor: 5,618 bytes, line 10
10),yt(f,"link",o),r.state.loading|=4,sl(f,i.precedence,n),r.instance=f;case"script":return f=ni(i.src),(d=n.querySelector(ps(f)))?(r.instance=d,lt(d),d):(o=i,(d=nn.get(f))&&(o=m({},i),wd(o,d)),n=n.ownerDocument||n,d=n.createElement("script"),lt(d),yt(d,"link",o),n.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(o=r.instance,r.state.loading|=4,sl(o,i.precedence,n));return r.instance}function sl(n,r,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,f=d,v=0;v<o.length;v++){var _=o[v];if(_.dataset.precedence===r)f=_;else if(f!==d)break}f?f.parentNode.insertBefore(n,f.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(n,r.firstChild))}function bd(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function wd(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var ol=null;function Cm(n,r,i){if(ol===null){var o=new Map,d=ol=new Map;d.set(i,o)}else d=ol,o=d.get(i),o||(o=new Map,d.set(i,o));if(o.has(n))return o;for(o.set(n,null),i=i.getElementsByTagName(n),d=0;d<i.length;d++){var f=i[d];if(!(f[xi]||f[ft]||n==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var v=f.getAttribute(r)||"";v=n+v;var _=o.get(v);_?_.push(f):o.set(v,[f])}}return o}function Om(n,r,i){n=n.ownerDocument||n,n.head.insertBefore(i,r==="title"?n.querySelector("head > title"):null)}function H_(n,r,i){if(i===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(n=r.disabled,typeof r.precedence=="string"&&n==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function km(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function $_(n,r,i,o){if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=ti(o.href),f=r.querySelector(fs(d));if(f){r=f._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=ll.bind(n),r.then(n,n)),i.state.loading|=4,i.instance=f,lt(f);return}f=r.ownerDocument||r,o=Rm(o),(d=nn.get(d))&&bd(o,d),f=f.createElement("link"),lt(f);var v=f;v._p=new Promise(function(_,T){v.onload=_,v.onerror=T}),yt(f,"link",o),i.instance=f}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(i,r),(r=i.state.preload)&&(i.state.loading&3)===0&&(n.count++,i=ll.bind(n),r.addEventListener("load",i),r.addEventListener("error",i))}}var _d=0;function q_(n,r){return n.stylesheets&&n.count===0&&ul(n,n.stylesheets),0<n.count||0<n.imgCount?function(i){var o=setTimeout(function(){if(n.stylesheets&&ul(n,n.stylesheets),n.unsuspend){var f=n.unsuspend;n.unsuspend=null,f()}},6e4+r);0<n.imgBytes&&_d===0&&(_d=62500*A_());var d=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&ul(n,n.stylesheets),n.unsuspend)){var f=n.unsuspend;n.unsuspend=null,f()}},(n.imgBytes>_d?50:800)+r);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function ll(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ul(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var cl=null;function ul(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,cl=new Map,r.forEach(V_,n),cl=null,ll.call(n))}function V_(n,r){if(!(r.state.loading&4)){var i=cl.get(n);if(i)var o=i.get(null);else{i=new Map,cl.set(n,i);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var v=d[f];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(i.set(v.dataset.precedence,v),o=v)}o&&i.set(null,o)}d=r.instance,v=d.getAttribute("data-precedence"),f=i.get(v)||o,f===o&&i.set(null,d),i.set(v,d),this.count++,o=ll.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),f?f.parentNode.insertBefore(d,f.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),r.state.loading|=4}}var gs={$$typeof:x,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function G_(n,r,i,o,d,f,v,_,T){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=mc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mc(0),this.hiddenUpdates=mc(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function xm(n,r,i,o,d,f,v,_,T,j,B,V){return n=new G_(n,r,i,v,T,j,B,V,_),r=1,f===!0&&(r|=24),f=zt(3,null,null,r),n.current=f,f.stateNode=n,r=eu(),r.refCount++,n.pooledCache=r,r.refCount++,f.memoizedState={element:o,isDehydrated:i,cache:r},au(f),n}function Im(n){return n?(n=ja,n):ja}
vendor: 4,166 bytes, line 10
10function Lm(n,r,i,o,d,f){d=Im(d),o.context===null?o.context=d:o.pendingContext=d,o=ur(r),o.payload={element:i},f=f===void 0?null:f,f!==null&&(o.callback=f),i=dr(n,o,r),i!==null&&(Lt(i,n,r),Ki(i,n,r))}function jm(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<r?i:r}}function Sd(n,r){jm(n,r),(n=n.alternate)&&jm(n,r)}function Nm(n){if(n.tag===13||n.tag===31){var r=Vr(n,67108864);r!==null&&Lt(r,n,67108864),Sd(n,67108864)}}function Mm(n){if(n.tag===13||n.tag===31){var r=Vt();r=yc(r);var i=Vr(n,r);i!==null&&Lt(i,n,r),Sd(n,r)}}var dl=!0;function F_(n,r,i,o){var d=z.T;z.T=null;var f=K.p;try{K.p=2,Ad(n,r,i,o)}finally{K.p=f,z.T=d}}function K_(n,r,i,o){var d=z.T;z.T=null;var f=K.p;try{K.p=8,Ad(n,r,i,o)}finally{K.p=f,z.T=d}}function Ad(n,r,i,o){if(dl){var d=Ed(o);if(d===null)cd(n,r,o,hl,i),Pm(n,o);else if(J_(d,n,r,i,o))o.stopPropagation();else if(Pm(n,o),r&4&&-1<Y_.indexOf(n)){for(;d!==null;){var f=Sa(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var v=zr(f.pendingLanes);if(v!==0){var _=f;for(_.pendingLanes|=2,_.entangledLanes|=2;v;){var T=1<<31-Pt(v);_.entanglements[1]|=T,v&=~T}vn(f),(Ce&6)===0&&(Yo=_t()+500,cs(0))}}break;case 31:case 13:_=Vr(f,2),_!==null&&Lt(_,f,2),Qo(),Sd(f,2)}if(f=Ed(o),f===null&&cd(n,r,o,hl,i),f===d)break;d=f}d!==null&&o.stopPropagation()}else cd(n,r,o,null,i)}}function Ed(n){return n=Tc(n),Rd(n)}var hl=null;function Rd(n){if(hl=null,n=_a(n),n!==null){var r=c(n);if(r===null)n=null;else{var i=r.tag;if(i===13){if(n=u(r),n!==null)return n;n=null}else if(i===31){if(n=h(r),n!==null)return n;n=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return hl=n,null}function Dm(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ue()){case ht:return 2;case pn:return 8;case ba:case N0:return 32;case Gh:return 268435456;default:return 32}default:return 32}}var Td=!1,Sr=null,Ar=null,Er=null,ms=new Map,ys=new Map,Rr=[],Y_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Pm(n,r){switch(n){case"focusin":case"focusout":Sr=null;break;case"dragenter":case"dragleave":Ar=null;break;case"mouseover":case"mouseout":Er=null;break;case"pointerover":case"pointerout":ms.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":ys.delete(r.pointerId)}}function vs(n,r,i,o,d,f){return n===null||n.nativeEvent!==f?(n={blockedOn:r,domEventName:i,eventSystemFlags:o,nativeEvent:f,targetContainers:[d]},r!==null&&(r=Sa(r),r!==null&&Nm(r)),n):(n.eventSystemFlags|=o,r=n.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),n)}function J_(n,r,i,o,d){switch(r){case"focusin":return Sr=vs(Sr,n,r,i,o,d),!0;case"dragenter":return Ar=vs(Ar,n,r,i,o,d),!0;case"mouseover":return Er=vs(Er,n,r,i,o,d),!0;case"pointerover":var f=d.pointerId;
10return ms.set(f,vs(ms.get(f)||null,n,r,i,o,d)),!0;case"gotpointercapture":return f=d.pointerId,ys.set(f,vs(ys.get(f)||null,n,r,i,o,d)),!0}return!1}function Um(n){var r=_a(n.target);if(r!==null){var i=c(r);if(i!==null){if(r=i.tag,r===13){if(r=u(i),r!==null){n.blockedOn=r,Xh(n.priority,function(){Mm(i)});return}}else if(r===31){if(r=h(i),r!==null){n.blockedOn=r,Xh(n.priority,function(){Mm(i)});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function fl(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var i=Ed(n.nativeEvent);if(i===null){i=n.nativeEvent;var o=new i.constructor(i.type,i);Rc=o,i.target.dispatchEvent(o),Rc=null}else return r=Sa(i),r!==null&&Nm(r),n.blockedOn=i,!1;r.shift()}return!0}function zm(n,r,i){fl(n)&&i.delete(r)}function Q_(){Td=!1,Sr!==null&&fl(Sr)&&(Sr=null),Ar!==null&&fl(Ar)&&(Ar=null),Er!==null&&fl(Er)&&(Er=null),ms.forEach(zm),ys.forEach(zm)}function pl(n,r){n.blockedOn===r&&(n.blockedOn=null,Td||(Td=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Q_)))}var gl=null;function Bm(n){gl!==n&&(gl=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){gl===n&&(gl=null);for(var r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],d=n[r+2];if(typeof o!="function"){if(Rd(o||i)===null)continue;break}var f=Sa(i);f!==null&&(n.splice(r,3),r-=3,Eu(f,{pending:!0,data:d,method:i.method,action:o},o,d))}}))}function ri(n){function r(T){return pl(T,n)}Sr!==null&&pl(Sr,n),Ar!==null&&pl(Ar,n),Er!==null&&pl(Er,n),ms.forEach(r),ys.forEach(r);for(var i=0;i<Rr.length;i++){var o=Rr[i];o.blockedOn===n&&(o.blockedOn=null)}for(;0<Rr.length&&(i=Rr[0],i.blockedOn===null);)Um(i),i.blockedOn===null&&Rr.shift();if(i=(n.ownerDocument||n).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var d=i[o],f=i[o+1],v=d[Tt]||null;if(typeof f=="function")v||Bm(i);else if(v){var _=null;if(f&&f.hasAttribute("formAction")){if(d=f,v=f[Tt]||null)_=v.formAction;else if(Rd(d)!==null)continue}else _=v.action;typeof _=="function"?i[o+1]=_:(i.splice(o,3),o-=3),Bm(i)}}}function Hm(){function n(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(v){return d=v})},focusReset:"manual",scroll:"manual"})}function r(){d!==null&&(d(),d=null),o||setTimeout(i,20)}function i(){if(!o&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(i,100),function(){o=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),d!==null&&(d(),d=null)}}}function Cd(n){this._internalRoot=n}ml.prototype.render=Cd.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(s(409));var i=r.current,o=Vt();Lm(i,o,n,r,null,null)},ml.prototype.unmount=Cd.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Lm(n.current,2,null,n,null,null),Qo(),r[wa]=null}};function ml(n){this._internalRoot=n}ml.prototype.unstable_scheduleHydration=function(n){if(n){var r=Qh();n={blockedOn:null,target:n,priority:r};for(var i=0;i<Rr.length&&r!==0&&r<Rr[i].priority;i++);Rr.splice(i,0,n),i===0&&Um(n)}};var $m=t.version;if($m!=="19.2.5")throw Error(s(527,$m,"19.2.5"));K.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=g(r),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var X_={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yl.isDisabled&&yl.supportsFiber)try{Ci=yl.inject(X_),Dt=yl}catch{}}return ws.createRoot=function(n,r){if(!l(n))throw Error(s(299));var i=!1,o="",d=Jp,f=Qp,v=Xp;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(f=r.onCaughtError),r.onRecoverableError!==void 0&&(v=r.onRecoverableError)),r=xm(n,1,!1,null,null,i,o,null,d,f,v,Hm),n[wa]=r.current,ld(n),new Cd(r)},ws.hydrateRoot=function(n,r,i){if(!l(n))throw Error(s(299));var o=!1,d="",f=Jp,v=Qp,_=Xp,T=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(_=i.onRecoverableError),i.formState!==void 0&&(T=i.formState)),r=xm(n,1,!0,r,i??null,o,d,T,f,v,_,Hm),r.context=Im(null),i=r.current,o=Vt(),o=yc(o),d=ur(o),d.callback=null,dr(i,d,o),i=o,r.current.lanes=i,ki(r,i),vn(r),n[wa]=r.current,ld(n),new ml(r)},ws.version="19.2.5",ws}var Wm;function oS(){if(Wm)return xd.exports;Wm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),xd.exports=sS(),xd.exports}var lS=oS(),cS="__TSS_CONTEXT",th=Symbol.for("TSS_SERVER_FUNCTION"),FL=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),uS="application/x-tss-framed",Fn={JSON:0,CHUNK:1,END:2,ERROR:3},dS=/;\s*v=(\d+)/;function hS(e){const t=e.match(dS);return t?parseInt(t[1],10):void 0}function fS(e){const t=hS(e);if(t!==void 0&&t!==1)throw new Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var Mv=()=>window.__TSS_START_OPTIONS__;const Dv=!1;function Ns(e){return e[e.length-1]}function pS(e){return typeof e=="function"}function oa(e,t){return pS(e)?e(t):e}const Pv=Object.prototype.hasOwnProperty,Zm=Object.prototype.propertyIsEnumerable;function Uv(e){for(const t in e)if(Pv.call(e,t))return!0;return!1}const gS=()=>Object.create(null),ra=(e,t)=>la(e,t,gS);function la(e,t,a=()=>({}),s=0){if(e===t)return e;if(s>500)return t;const l=t,c=ny(e)&&ny(l);if(!c&&!(Bl(e)&&Bl(l)))return l;const u=c?e:ey(e);if(!u)return l;const h=c?l:ey(l);if(!h)return l;const p=u.length,g=h.length,y=c?new Array(g):a();let m=0;for(let b=0;b<g;b++){const w=c?b:h[b],S=e[w],R=l[w];if(S===R){y[w]=S,(c?b<p:Pv.call(e,w))&&m++;continue}if(S===null||R===null||typeof S!="object"||typeof R!="object"){y[w]=R;continue}const A=la(S,R,a,s+1);y[w]=A,A===S&&m++}return p===g&&m===p?e:y}function ey(e){const t=Object.getOwnPropertyNames(e);for(const l of t)if(!Zm.call(e,l))return!1;const a=Object.getOwnPropertySymbols(e);if(a.length===0)return t;const s=t;for(const l of a){if(!Zm.call(e,l))return!1;s.push(l)}return s}function Bl(e){if(!ty(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const a=t.prototype;return!(!ty(a)||!a.hasOwnProperty("isPrototypeOf"))}function ty(e){return Object.prototype.toString.call(e)==="[object Object]"}function ny(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Et(e,t,a){if(e===t)return!0;
10if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let s=0,l=e.length;s<l;s++)if(!Et(e[s],t[s],a))return!1;return!0}if(Bl(e)&&Bl(t)){const s=a?.ignoreUndefined??!0;if(a?.partial){for(const u in t)if((!s||t[u]!==void 0)&&!Et(e[u],t[u],a))return!1;return!0}let l=0;if(!s)l=Object.keys(e).length;else for(const u in e)e[u]!==void 0&&l++;let c=0;for(const u in t)if((!s||t[u]!==void 0)&&(c++,c>l||!Et(e[u],t[u],a)))return!1;return l===c}return!1}function ga(e){let t,a;const s=new Promise((l,c)=>{t=l,a=c});return s.status="pending",s.resolve=l=>{s.status="resolved",s.value=l,t(l),e?.(l)},s.reject=l=>{s.status="rejected",a(l)},s}function mS(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Ms(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}const yS=/[\x00-\x1f\x7f"<>`{}]/g;function vS(e){return e.replace(yS,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function ry(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,a=>{try{return decodeURI(a)}catch{return a}})}return vS(t)}const bS=["http:","https:","mailto:","tel:"];function Hl(e,t){if(!e)return!1;try{const a=new URL(e);return!t.has(a.protocol)}catch{return!1}}const wS={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},_S=/[&><\u2028\u2029]/g;function SS(e){return e.replace(_S,t=>wS[t])}function _s(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let a=0,s="",l;for(;(l=t.exec(e))!==null;)s+=ry(e.slice(a,l.index))+l[0],a=t.lastIndex;s=s+ry(a?e.slice(a):e);let c=!1;return s.startsWith("//")&&(c=!0,s="/"+s.replace(/^\/+/,"")),{path:s,handledProtocolRelativeURL:c}}function AS(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function ES(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function Mt(){throw new Error("Invariant failed")}function Ds(e){const t=new Map;let a,s;const l=c=>{c.next&&(c.prev?(c.prev.next=c.next,c.next.prev=c.prev,c.next=void 0,s&&(s.next=c,c.prev=s)):(c.next.prev=void 0,a=c.next,c.next=void 0,s&&(c.prev=s,s.next=c)),s=c)};return{get(c){const u=t.get(c);if(u)return l(u),u.value},set(c,u){if(t.size>=e&&a){const p=a;t.delete(p.key),p.next&&(a=p.next,p.next.prev=void 0),p===s&&(s=void 0)}const h=t.get(c);if(h)h.value=u,l(h);else{const p={key:c,value:u,prev:s};s&&(s.next=p),s=p,a||(a=p),t.set(c,p)}},clear(){t.clear(),a=void 0,s=void 0}}}const Lr=4,zv=5;function RS(e){const t=e.indexOf("{");if(t===-1)return null;const a=e.indexOf("}",t);return a===-1||t+1>=e.length?null:[t,a]}function Bv(e,t,a=new Uint16Array(6)){const s=e.indexOf("/",t),l=s===-1?e.length:s,c=e.substring(t,l);if(!c||!c.includes("$"))return a[0]=0,a[1]=t,a[2]=t,a[3]=l,a[4]=l,a[5]=l,a;if(c==="$"){const h=e.length;return a[0]=2,a[1]=t,a[2]=t,a[3]=h,a[4]=h,a[5]=h,a}if(c.charCodeAt(0)===36)return a[0]=1,a[1]=t,a[2]=t+1,a[3]=l,a[4]=l,a[5]=l,a;const u=RS(c);if(u){const[h,p]=u,g=c.charCodeAt(h+1);if(g===45){if(h+2<c.length&&c.charCodeAt(h+2)===36){const y=h+3,m=p;if(y<m)return a[0]=3,a[1]=t+h,a[2]=t+y,a[3]=t+m,a[4]=t+p+1,a[5]=l,a}}else if(g===36){const y=h+1,m=h+2;return m===p?(a[0]=2,a[1]=t+h,a[2]=t+y,a[3]=t+m,a[4]=t+p+1,a[5]=e.length,a):(a[0]=1,a[1]=t+h,a[2]=t+m,a[3]=t+p,a[4]=t+p+1,a[5]=l,a)}}return a[0]=0,a[1]=t,a[2]=t,a[3]=l,a[4]=l,a[5]=l,a}function nc(e,t,a,s,l,c,u){u?.(a);let h=s;{const p=a.fullPath??a.from,g=p.length,y=a.options?.caseSensitive??e,m=a.options?.params?.parse??a.options?.parseParams;for(;h<g;){const w=Bv(p,h,t);let S;const R=h,A=w[5];switch(h=A+1,c++,w[0]){case 0:{const E=p.substring(w[2],w[3]);if(y){const C=l.static?.get(E);if(C)S=C;else{l.static??=new Map;const x=ca(a.fullPath??a.from);x.parent=l,x.depth=c,S=x,l.static.set(E,x)}}else{const C=E.toLowerCase(),x=l.staticInsensitive?.get(C);if(x)S=x;else{l.staticInsensitive??=new Map;const M=ca(a.fullPath??a.from);M.parent=l,M.depth=c,S=M,l.staticInsensitive.set(C,M)}}break}case 1:{const E=p.substring(R,w[1]),C=p.substring(w[4],A),x=y&&!!(E||C),M=E?x?E:E.toLowerCase():void 0,$=C?x?C:C.toLowerCase():void 0,G=!m&&l.dynamic?.find(D=>!D.parse&&D.caseSensitive===x&&D.prefix===M&&D.suffix===$);if(G)S=G;else{const D=Md(1,a.fullPath??a.from,x,M,$);S=D,D.depth=c,D.parent=l,l.dynamic??=[],l.dynamic.push(D)}break}case 3:{const E=p.substring(R,w[1]),C=p.substring(w[4],A),x=y&&!!(E||C),M=E?x?E:E.toLowerCase():void 0,$=C?x?C:C.toLowerCase():void 0,G=!m&&l.optional?.find(D=>!D.parse&&D.caseSensitive===x&&D.prefix===M&&D.suffix===$);if(G)S=G;else{const D=Md(3,a.fullPath??a.from,x,M,$);
10S=D,D.parent=l,D.depth=c,l.optional??=[],l.optional.push(D)}break}case 2:{const E=p.substring(R,w[1]),C=p.substring(w[4],A),x=y&&!!(E||C),M=E?x?E:E.toLowerCase():void 0,$=C?x?C:C.toLowerCase():void 0,G=Md(2,a.fullPath??a.from,x,M,$);S=G,G.parent=l,G.depth=c,l.wildcard??=[],l.wildcard.push(G)}}l=S}if(m&&a.children&&!a.isRoot&&a.id&&a.id.charCodeAt(a.id.lastIndexOf("/")+1)===95){const w=ca(a.fullPath??a.from);w.kind=zv,w.parent=l,c++,w.depth=c,l.pathless??=[],l.pathless.push(w),l=w}const b=(a.path||!a.children)&&!a.isRoot;if(b&&p.endsWith("/")){const w=ca(a.fullPath??a.from);w.kind=Lr,w.parent=l,c++,w.depth=c,l.index=w,l=w}l.parse=m??null,l.priority=a.options?.params?.priority??0,b&&!l.route&&(l.route=a,l.fullPath=a.fullPath??a.from)}if(a.children)for(const p of a.children)nc(e,t,p,h,l,c,u)}function Nd(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Or(e){if(e.pathless)for(const t of e.pathless)Or(t);if(e.static)for(const t of e.static.values())Or(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Or(t);if(e.dynamic?.length){e.dynamic.sort(Nd);for(const t of e.dynamic)Or(t)}if(e.optional?.length){e.optional.sort(Nd);for(const t of e.optional)Or(t)}if(e.wildcard?.length){e.wildcard.sort(Nd);for(const t of e.wildcard)Or(t)}}function ca(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Md(e,t,a,s,l){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:a,prefix:s,suffix:l}}function TS(e,t){const a=ca("/"),s=new Uint16Array(6);for(const l of e)nc(!1,s,l,1,a,0);Or(a),t.masksTree=a,t.flatCache=Ds(1e3)}function CS(e,t){e||="/";const a=t.flatCache.get(e);if(a)return a;const s=Ch(e,t.masksTree);return t.flatCache.set(e,s),s}function OS(e,t,a,s,l){e||="/",s||="/";const c=t?`case\0${e}`:e;let u=l.singleCache.get(c);return u||(u=ca("/"),nc(t,new Uint16Array(6),{from:e},1,u,0),l.singleCache.set(c,u)),Ch(s,u,a)}function kS(e,t,a=!1){const s=a?e:`nofuzz\0${e}`,l=t.matchCache.get(s);if(l!==void 0)return l;e||="/";let c;try{c=Ch(e,t.segmentTree,a)}catch(u){if(u instanceof URIError)c=null;else throw u}return c&&(c.branch=$v(c.route)),t.matchCache.set(s,c),c}function xS(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function IS(e,t=!1,a){const s=ca(e.fullPath),l=new Uint16Array(6),c={},u={};let h=0;return nc(t,l,e,1,s,0,p=>{if(a?.(p,h),p.id in c&&Mt(),c[p.id]=p,h!==0&&p.path){const g=xS(p.fullPath);(!u[g]||p.fullPath.endsWith("/"))&&(u[g]=p)}h++}),Or(s),{processedTree:{segmentTree:s,singleCache:Ds(1e3),matchCache:Ds(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:u}}function Ch(e,t,a=!1){const s=e.split("/"),l=jS(e,s,t,a);if(!l)return null;const[c]=Hv(e,s,l);return{route:l.node.route,rawParams:c}}function Hv(e,t,a){const s=LS(a.node);let l=null;const c=Object.create(null);let u=a.extract?.part??0,h=a.extract?.node??0,p=a.extract?.path??0,g=a.extract?.segment??0;for(;h<s.length;u++,h++,p++,g++){const y=s[h];if(y.kind===Lr)break;if(y.kind===zv){g--,u--,p--;continue}const m=t[u],b=p;if(m&&(p+=m.length),y.kind===1){l??=a.node.fullPath.split("/");const w=l[g],S=y.prefix?.length??0;if(w.charCodeAt(S)===123){const R=y.suffix?.length??0,A=w.substring(S+2,w.length-R-1),E=m.substring(S,m.length-R);c[A]=decodeURIComponent(E)}else{const R=w.substring(1);c[R]=decodeURIComponent(m)}}else if(y.kind===3){if(a.skipped&1<<h){u--,p=b-1;continue}l??=a.node.fullPath.split("/");const w=l[g],S=y.prefix?.length??0,R=y.suffix?.length??0,A=w.substring(S+3,w.length-R-1),E=y.suffix||y.prefix?m.substring(S,m.length-R):m;E&&(c[A]=decodeURIComponent(E))}else if(y.kind===2){const w=y,S=e.substring(b+(w.prefix?.length??0),e.length-(w.suffix?.length??0)),R=decodeURIComponent(S);c["*"]=R,c._splat=R;break}}return a.rawParams&&Object.assign(c,a.rawParams),[c,{part:u,node:h,path:p,segment:g}]}function $v(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function LS(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function jS(e,t,a,s){if(e==="/"&&a.index)return{node:a.index,skipped:0};const l=!Ns(t),c=l&&e!=="/",u=t.length-(l?1:0),h=[{node:a,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let p=null,g=null;for(;h.length;){const y=h.pop(),{node:m,index:b,skipped:w,depth:S,statics:R,dynamics:A,optionals:E}=y;let{extract:C,rawParams:x}=y;if(m.kind===2&&m.route&&!bl(g,y))continue;if(m.parse){if(!ay(e,t,y))continue;x=y.rawParams,C=y.extract}s&&m.route&&m.kind!==Lr&&bl(p,y)&&(p=y);const M=b===u;if(M&&(m.route&&(!c||m.kind===Lr||m.kind===2)&&bl(g,y)&&(g=y),!m.optional&&!m.wildcard&&!m.index&&!m.pathless))continue;const $=M?void 0:t[b];let G;if(M&&m.index){const D={node:m.index,index:b,skipped:w,depth:S+1,statics:R,dynamics:A,optionals:E,extract:C,rawParams:x};let F=!0;if(m.index.parse&&(ay(e,t,D)||(F=!1)),F){if(!A&&!E&&!w&&NS(R,u))return D;bl(g,D)&&(g=D)}}if(m.wildcard)for(let D=m.wildcard.length-1;D>=0;D--){const F=m.wildcard[D],{prefix:Y,suffix:se}=F;if(!(Y&&(M||!(F.caseSensitive?$:G??=$.toLowerCase()).startsWith(Y)))){if(se){if(M)continue;const re=t.slice(b).join("/").slice(-se.length);if((F.caseSensitive?re:re.toLowerCase())!==se)continue}h.push({node:F,index:u,skipped:w,depth:S+1,statics:R,dynamics:A,optionals:E,extract:C,rawParams:x})}}if(m.optional){const D=w|1<<S,F=S+1;for(let Y=m.optional.length-1;Y>=0;Y--){const se=m.optional[Y];h.push({node:se,index:b,skipped:D,depth:F,statics:R,dynamics:A,optionals:E,extract:C,rawParams:x})}if(!M)for(let Y=m.optional.length-1;Y>=0;Y--){const se=m.optional[Y],{prefix:re,suffix:oe}=se;if(re||oe){const ot=se.caseSensitive?$:G??=$.toLowerCase();if(re&&!ot.startsWith(re)||oe&&!ot.endsWith(oe))continue}h.push({node:se,index:b+1,skipped:w,depth:F,statics:R,dynamics:A,optionals:E+vl(u,b),extract:C,rawParams:x})}}if(!M&&m.dynamic&&$)for(let D=m.dynamic.length-1;D>=0;D--){const F=m.dynamic[D],{prefix:Y,suffix:se}=F;if(Y||se){const re=F.caseSensitive?$:G??=$.toLowerCase();if(Y&&!re.startsWith(Y)||se&&!re.endsWith(se))continue}h.push({node:F,index:b+1,skipped:w,depth:S+1,statics:R,dynamics:A+vl(u,b),optionals:E,extract:C,rawParams:x})}if(!M&&m.staticInsensitive){const D=m.staticInsensitive.get(G??=$.toLowerCase());D&&h.push({node:D,index:b+1,skipped:w,depth:S+1,statics:R+vl(u,b),dynamics:A,optionals:E,extract:C,rawParams:x})}if(!M&&m.static){const D=m.static.get($);D&&h.push({node:D,index:b+1,skipped:w,depth:S+1,statics:R+vl(u,b),dynamics:A,optionals:E,extract:C,rawParams:x})}if(m.pathless){const D=S+1;for(let F=m.pathless.length-1;F>=0;F--){const Y=m.pathless[F];h.push({node:Y,index:b,skipped:w,depth:D,statics:R,dynamics:A,optionals:E,extract:C,rawParams:x})}}}if(g)return g;if(s&&p){let y=p.index;for(let b=0;b<p.index;b++)y+=t[b].length;const m=y===e.length?"/":e.slice(y);return p.rawParams??=Object.create(null),p.rawParams["**"]=decodeURIComponent(m),p}return null}function vl(e,t){return 2**(e-t-1)}function NS(e,t){return e===2**(t-1)-1}function ay(e,t,a){let s,l;try{[s,l]=Hv(e,t,a)}catch{return null}if(a.rawParams=s,a.extract=l,!a.node.parse)return!0;try{if(a.node.parse(s)===!1)return null}catch{}return!0}function bl(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Lr)>(e.node.kind===Lr)||t.node.kind===Lr==(e.node.kind===Lr)&&t.depth>e.depth))):!0}function jl(e){return Oh(e.filter(t=>t!==void 0).join("/"))}function Oh(e){return e.replace(/\/{2,}/g,"/")}function qv(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Qn(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function Vv(e){return Qn(qv(e))}function $l(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}
10function MS(e,t,a){return $l(e,a)===$l(t,a)}function DS({base:e,to:t,trailingSlash:a="never",cache:s}){const l=t.startsWith("/"),c=!l&&t===".";let u;if(s){u=l?t:c?e:e+"\0"+t;const g=s.get(u);if(g)return g}let h;if(c)h=e.split("/");else if(l)h=t.split("/");else{for(h=e.split("/");h.length>1&&Ns(h)==="";)h.pop();const g=t.split("/");for(let y=0,m=g.length;y<m;y++){const b=g[y];b===""?y?y===m-1&&h.push(b):h=[b]:b===".."?h.pop():b==="."||h.push(b)}}h.length>1&&(Ns(h)===""?a==="never"&&h.pop():a==="always"&&h.push(""));const p=Oh(h.join("/"))||"/";return u&&s&&s.set(u,p),p}function PS(e){const t=new Map(e.map(l=>[encodeURIComponent(l),l])),a=Array.from(t.keys()).map(l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),s=new RegExp(a,"g");return l=>l.replace(s,c=>t.get(c)??c)}function Dd(e,t,a){const s=t[e];return typeof s!="string"?s:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(s)?s:s.split("/").map(l=>sy(l,a)).join("/"):sy(s,a)}function iy({path:e,params:t,decoder:a,...s}){let l=!1;const c=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:l};if(!e.includes("$"))return{interpolatedPath:e,usedParams:c,isMissingParams:l};const u=e.length;let h=0,p,g="";for(;h<u;){const y=h;p=Bv(e,y,p);const m=p[5];if(h=m+1,y===m)continue;const b=p[0];if(b===0){g+="/"+e.substring(y,m);continue}if(b===2){const w=t._splat;c._splat=w,c["*"]=w;const S=e.substring(y,p[1]),R=e.substring(p[4],m);if(!w){l=!0,(S||R)&&(g+="/"+S+R);continue}const A=Dd("_splat",t,a);g+="/"+S+A+R;continue}if(b===1){const w=e.substring(p[2],p[3]);!l&&!(w in t)&&(l=!0),c[w]=t[w];const S=e.substring(y,p[1]),R=e.substring(p[4],m),A=Dd(w,t,a)??"undefined";g+="/"+S+A+R;continue}if(b===3){const w=e.substring(p[2],p[3]),S=t[w];if(S==null)continue;c[w]=S;const R=e.substring(y,p[1]),A=e.substring(p[4],m),E=Dd(w,t,a)??"";g+="/"+R+E+A;continue}}return e.endsWith("/")&&(g+="/"),{usedParams:c,interpolatedPath:g||"/",isMissingParams:l}}function sy(e,t){const a=encodeURIComponent(e);return t?.(a)??a}function Ys(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function dt(e){return e?.isNotFound===!0}function US(){try{return sessionStorage}catch{return}}const zS="tsr-scroll-restoration-v1_3",Gv=US();function BS(){try{return JSON.parse(Gv?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function HS(){try{Gv?.setItem(zS,JSON.stringify(ui))}catch{}}const ui=BS(),oy="data-scroll-restoration-id",$S=e=>e.state.__TSR_key||e.href;function qS(e){const t=e.getAttribute(oy);if(t)return`[${oy}="${t}"]`;let a="",s=e,l;for(;l=s.parentNode;){let c=1,u=s;for(;u=u.previousElementSibling;)c++;const h=`${s.localName}:nth-child(${c})`;a=a?`${h} > ${a}`:h,s=l}return a}let wl=!1;const Nl="window";function nh(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function ly(e){const t=new Set;for(const a of e){if(a===Nl)continue;const s=nh(a);s&&t.add(s)}return t}function VS(e,t){const a=e.options.scrollRestoration,s=e._scroll;a&&(s.restoring=!0);const l=e.options.getScrollRestorationKey||$S,c=new Set,u=h=>{const p=ui[h]||={};for(const g of c)g===document?p[Nl]={scrollX,scrollY}:g.isConnected&&(p[qS(g)]={scrollX:g.scrollLeft,scrollY:g.scrollTop})};a&&!s.restoration&&(s.restoration=!0,wl=!1,history.scrollRestoration="manual",document.addEventListener("scroll",h=>{wl||c.add(h.target)},!0),e.subscribe("onBeforeLoad",h=>{h.fromLocation&&u(l(h.fromLocation)),c.clear()}),addEventListener("pagehide",()=>{u(l(e.stores.resolvedLocation.get()??e.stores.location.get())),HS()})),!s.reset&&(s.reset=!0,e.subscribe("onRendered",h=>{const p=e.options.scrollRestorationBehavior,g=e.options.scrollToTopSelectors,y=s.next,m=s.hash;let b;if(c.clear(),s.next=!0,s.hash=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const w=l(h.toLocation),S=h.fromLocation&&l(h.fromLocation);if(s.restoring&&S&&S!==w){const R=ui[S];if(R){let A=ui[w];for(const E in R){if(E===Nl){if(y)continue}else{const C=nh(E);if(!C||y&&g&&(b??=ly(g),b.has(C)))continue}A||(A=ui[w]={}),A[E]??=R[E]}}}wl=!0;try{const R=h.toLocation.hash,A=h.toLocation.state.__hashScrollIntoViewOptions??!0;let E=!1;if(y){!R&&g&&(b??=ly(g));const C=R&&A&&m,x=s.restoring?ui[w]:void 0;if(x)for(const M in x){const{scrollX:$,scrollY:G}=x[M];if(M===Nl){if(C)continue;scrollTo({top:G,left:$,behavior:p}),E=!0}else{const D=nh(M);D&&(D.scrollLeft=$,D.scrollTop=G,b?.delete(D))}}if(!R){const M={top:0,left:0,behavior:p};if(E||scrollTo(M),b)for(const $ of b)$.scrollTo(M)}}!E&&R&&A&&document.getElementById(R)?.scrollIntoView(A)}finally{wl=!1}}))}function Fv(e,t=String){const a=new URLSearchParams;for(const s in e){const l=e[s];l!==void 0&&a.set(s,t(l))}return a.toString()}function Pd(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function GS(e){const t=new URLSearchParams(e),a=Object.create(null);for(const[s,l]of t.entries()){const c=a[s];c==null?a[s]=Pd(l):Array.isArray(c)?c.push(Pd(l)):a[s]=[c,Pd(l)]}return a}const FS=YS(JSON.parse),KS=JS(JSON.stringify,JSON.parse);function YS(e){return t=>{t[0]==="?"&&(t=t.substring(1));const a=GS(t);for(const s in a){const l=a[s];if(typeof l=="string")try{a[s]=e(l)}catch{}}return a}}function JS(e,t){const a=typeof t=="function";function s(l){if(typeof l=="object"&&l!==null)try{return e(l)}catch{}else if(a&&typeof l=="string")try{return t(l),e(l)}catch{}return l}return l=>{const c=Fv(l,s);return c?`?${c}`:""}}const fa="__root__";function Js(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const a=new Response(null,{status:e.statusCode,headers:t});if(a.options=e,e.throw)throw a;return a}function Nt(e){return e instanceof Response&&!!e.options}function QS(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return Js(e)}function XS(e){return{input:({url:t})=>{for(const a of e)t=rh(a,t);return t},output:({url:t})=>{for(let a=e.length-1;a>=0;a--)t=Kv(e[a],t);return t}}}function WS(e){const t=Vv(e.basepath),a=`/${t}`,s=e.caseSensitive?a:a.toLowerCase(),l=`${s}/`;return{input:({url:c})=>{const u=e.caseSensitive?c.pathname:c.pathname.toLowerCase();return u===s?c.pathname="/":u.startsWith(l)&&(c.pathname=c.pathname.slice(a.length)),c},output:({url:c})=>(c.pathname=jl(["/",t,c.pathname]),c)}}function rh(e,t){const a=e?.input?.({url:t});
10if(a){if(typeof a=="string")return new URL(a);if(a instanceof URL)return a}return t}function Kv(e,t){const a=e?.output?.({url:t});if(a){if(typeof a=="string")return new URL(a);if(a instanceof URL)return a}return t}function ZS(e,t){const{createMutableStore:a,createReadonlyStore:s,batch:l,init:c}=t,u=new Map,h=new Map,p=new Map,g=a(e.status),y=a(e.loadedAt),m=a(e.isLoading),b=a(e.isTransitioning),w=a(e.location),S=a(e.resolvedLocation),R=a(e.statusCode),A=a(e.redirect),E=a([]),C=a([]),x=a([]),M=s(()=>Ud(u,E.get())),$=s(()=>Ud(h,C.get())),G=s(()=>Ud(p,x.get())),D=s(()=>E.get()[0]),F=s(()=>E.get().some(K=>u.get(K)?.get().status==="pending")),Y=s(()=>({locationHref:w.get().href,resolvedLocationHref:S.get()?.href,status:g.get()})),se=s(()=>({status:g.get(),loadedAt:y.get(),isLoading:m.get(),isTransitioning:b.get(),matches:M.get(),location:w.get(),resolvedLocation:S.get(),statusCode:R.get(),redirect:A.get()})),re=Ds(64);function oe(K){let ie=re.get(K);return ie||(ie=s(()=>{const Te=E.get();for(const Oe of Te){const k=u.get(Oe);if(k&&k.routeId===K)return k.get()}}),re.set(K,ie)),ie}const ot={status:g,loadedAt:y,isLoading:m,isTransitioning:b,location:w,resolvedLocation:S,statusCode:R,redirect:A,matchesId:E,pendingIds:C,cachedIds:x,matches:M,pendingMatches:$,cachedMatches:G,firstId:D,hasPending:F,matchRouteDeps:Y,matchStores:u,pendingMatchStores:h,cachedMatchStores:p,__store:se,getRouteMatchStore:oe,setMatches:$e,setPending:Je,setCached:z};$e(e.matches),c?.(ot);function $e(K){zd(K,u,E,a,l)}function Je(K){zd(K,h,C,a,l)}function z(K){zd(K,p,x,a,l)}return ot}function Ud(e,t){const a=[];for(const s of t){const l=e.get(s);l&&a.push(l.get())}return a}function zd(e,t,a,s,l){const c=e.map(h=>h.id),u=new Set(c);l(()=>{for(const h of t.keys())u.has(h)||t.delete(h);for(const h of e){const p=t.get(h.id);if(!p){const g=s(h);g.routeId=h.routeId,t.set(h.id,g);continue}p.routeId=h.routeId,p.get()!==h&&p.set(h)}ES(a.get(),c)||a.set(c)})}const ah=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},eA=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),rc=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),pa=(e,t,a=!0)=>{const s={...e.router.options.context??{}},l=a?t:t-1;for(let c=0;c<=l;c++){const u=e.matches[c];if(!u)continue;const h=e.router.getMatch(u.id);h&&Object.assign(s,h.__routeContext,h.__beforeLoadContext)}return s},cy=(e,t)=>{if(!e.matches.length)return;const a=t.routeId,s=e.matches.findIndex(u=>u.routeId===e.router.routeTree.id),l=s>=0?s:0;let c=a?e.matches.findIndex(u=>u.routeId===a):e.firstBadMatchIndex??e.matches.length-1;c<0&&(c=l);for(let u=c;u>=0;u--){const h=e.matches[u];if(e.router.looseRoutesById[h.routeId].options.notFoundComponent)return u}return a?c:l},jr=(e,t,a)=>{if(!(!Nt(a)&&!dt(a)))throw Nt(a)&&a.redirectHandled&&!a.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=a,e.updateMatch(t.id,s=>({...s,status:Nt(a)?"redirected":dt(a)?"notFound":s.status==="pending"?"success":s.status,context:pa(e,t.index),isFetching:!1,error:a})),dt(a)&&!a.routeId&&(a.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Nt(a)&&(e.rendered=!0,a.options._fromLocation=e.location,a.redirectHandled=!0,a=e.router.resolveRedirect(a))),a},Yv=(e,t)=>{const a=e.router.getMatch(t);return!!(!a||a._nonReactive.dehydrated)},uy=(e,t,a)=>{const s=pa(e,a);e.updateMatch(t,l=>({...l,context:s}))},Ss=(e,t,a)=>{const{id:s,routeId:l}=e.matches[t],c=e.router.looseRoutesById[l];if(a instanceof Promise)throw a;e.firstBadMatchIndex??=t,jr(e,e.router.getMatch(s),a);try{c.options.onError?.(a)}catch(u){a=u,jr(e,e.router.getMatch(s),a)}e.updateMatch(s,u=>(u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,u._nonReactive.loadPromise?.resolve(),{...u,error:a,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Nt(a)&&!dt(a)&&(e.serialError??=a)},Jv=(e,t,a,s)=>{if(s._nonReactive.pendingTimeout!==void 0)return;const l=a.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!rc(e,t)&&(a.options.loader||a.options.beforeLoad||Xv(a))&&typeof l=="number"&&l!==1/0&&(a.options.pendingComponent??e.router.options?.defaultPendingComponent)){const c=setTimeout(()=>{ah(e)},l);
10s._nonReactive.pendingTimeout=c}},tA=(e,t,a)=>{const s=e.router.getMatch(t);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;Jv(e,t,a,s);const l=()=>{const c=e.router.getMatch(t);c.preload&&(c.status==="redirected"||c.status==="notFound")&&jr(e,c,c.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(l):l()},nA=(e,t,a,s)=>{const l=e.router.getMatch(t);let c=l._nonReactive.loadPromise;l._nonReactive.loadPromise=ga(()=>{c?.resolve(),c=void 0});const{paramsError:u,searchError:h}=l;u&&Ss(e,a,u),h&&Ss(e,a,h),Jv(e,t,s,l);const p=new AbortController;let g=!1;const y=()=>{g||(g=!0,e.updateMatch(t,M=>({...M,isFetching:"beforeLoad",fetchCount:M.fetchCount+1,abortController:p})))},m=()=>{l._nonReactive.beforeLoadPromise?.resolve(),l._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,M=>({...M,isFetching:!1}))};if(!s.options.beforeLoad){e.router.batch(()=>{y(),m()});return}l._nonReactive.beforeLoadPromise=ga();const b={...pa(e,a,!1),...l.__routeContext},{search:w,params:S,cause:R}=l,A=rc(e,t),E={search:w,abortController:p,params:S,preload:A,context:b,location:e.location,navigate:M=>e.router.navigate({...M,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:A?"preload":R,matches:e.matches,routeId:s.id,...e.router.options.additionalContext},C=M=>{if(M===void 0){e.router.batch(()=>{y(),m()});return}(Nt(M)||dt(M))&&(y(),Ss(e,a,M)),e.router.batch(()=>{y(),e.updateMatch(t,$=>({...$,__beforeLoadContext:M})),m()})};let x;try{if(x=s.options.beforeLoad(E),Ms(x))return y(),x.catch(M=>{Ss(e,a,M)}).then(C)}catch(M){y(),Ss(e,a,M)}C(x)},rA=(e,t)=>{const{id:a,routeId:s}=e.matches[t],l=e.router.looseRoutesById[s],c=()=>h(),u=()=>nA(e,a,t,l),h=()=>{if(Yv(e,a))return;const p=tA(e,a,l);return Ms(p)?p.then(u):u()};return c()},aA=(e,t,a)=>{const s=e.router.getMatch(t);if(!s||!a.options.head&&!a.options.scripts&&!a.options.headers)return;const l={ssr:e.router.options.ssr,matches:e.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([a.options.head?.(l),a.options.scripts?.(l),a.options.headers?.(l)]).then(([c,u,h])=>({meta:c?.meta,links:c?.links,headScripts:c?.scripts,headers:h,scripts:u,styles:c?.styles}))},Qv=(e,t,a,s,l)=>{const c=t[s-1],{params:u,loaderDeps:h,abortController:p,cause:g}=e.router.getMatch(a),y=pa(e,s),m=rc(e,a);return{params:u,deps:h,preload:!!m,parentMatchPromise:c,abortController:p,context:y,location:e.location,navigate:b=>e.router.navigate({...b,_fromLocation:e.location}),cause:m?"preload":g,route:l,...e.router.options.additionalContext}},dy=async(e,t,a,s,l)=>{try{const c=e.router.getMatch(a);try{(!(Dv??e.router.isServer)||c.ssr===!0)&&Ps(l);const u=l.options.loader,h=typeof u=="function"?u:u?.handler,p=h?.(Qv(e,t,a,s,l)),g=!!h&&Ms(p);if((g||l._lazyPromise||l._componentsPromise||l.options.head||l.options.scripts||l.options.headers||c._nonReactive.minPendingPromise)&&e.updateMatch(a,m=>({...m,isFetching:"loader"})),h){const m=g?await p:p;jr(e,e.router.getMatch(a),m),m!==void 0&&e.updateMatch(a,b=>({...b,loaderData:m}))}l._lazyPromise&&await l._lazyPromise;const y=c._nonReactive.minPendingPromise;y&&await y,l._componentsPromise&&await l._componentsPromise,e.updateMatch(a,m=>({...m,error:void 0,context:pa(e,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(u){let h=u;if(h?.name==="AbortError"){if(c.abortController.signal.aborted){c._nonReactive.loaderPromise?.resolve(),c._nonReactive.loaderPromise=void 0;return}e.updateMatch(a,g=>({...g,status:g.status==="pending"?"success":g.status,isFetching:!1,context:pa(e,s)}));return}const p=c._nonReactive.minPendingPromise;p&&await p,dt(u)&&await l.options.notFoundComponent?.preload?.(),jr(e,e.router.getMatch(a),u);try{l.options.onError?.(u)}catch(g){h=g,jr(e,e.router.getMatch(a),g)}!Nt(h)&&!dt(h)&&await Ps(l,["errorComponent"]),e.updateMatch(a,g=>({...g,error:h,context:pa(e,s),status:"error",isFetching:!1}))}}catch(c){const u=e.router.getMatch(a);u&&(u._nonReactive.loaderPromise=void 0),jr(e,u,c)}},iA=async(e,t,a)=>{async function s(w,S,R,A,E){const C=Date.now()-S.updatedAt,x=w?E.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:E.options.staleTime??e.router.options.defaultStaleTime??0,M=E.options.shouldReload,$=typeof M=="function"?M(Qv(e,t,l,a,E)):M,{status:G,invali
10d:D}=A,F=C>=x&&(!!e.forceStaleReload||A.cause==="enter"||R!==void 0&&R!==A.id);u=G==="success"&&(D||($??F)),w&&E.options.preload===!1||(u&&!e.sync&&y?(h=!0,(async()=>{try{await dy(e,t,l,a,E);const Y=e.router.getMatch(l);Y._nonReactive.loaderPromise?.resolve(),Y._nonReactive.loadPromise?.resolve(),Y._nonReactive.loaderPromise=void 0,Y._nonReactive.loadPromise=void 0}catch(Y){Nt(Y)&&await e.router.navigate(Y.options)}})()):G!=="success"||u?await dy(e,t,l,a,E):uy(e,l,a))}const{id:l,routeId:c}=e.matches[a];let u=!1,h=!1;const p=e.router.looseRoutesById[c],g=p.options.loader,y=((typeof g=="function"?void 0:g?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(Yv(e,l)){if(!e.router.getMatch(l))return e.matches[a];uy(e,l,a)}else{const w=e.router.getMatch(l),S=e.router.stores.matchesId.get()[a],R=(S&&e.router.stores.matchStores.get(S)||null)?.routeId===c?S:e.router.stores.matches.get().find(E=>E.routeId===c)?.id,A=rc(e,l);if(w._nonReactive.loaderPromise){if(w.status==="success"&&!e.sync&&!w.preload&&y)return w;await w._nonReactive.loaderPromise;const E=e.router.getMatch(l),C=E._nonReactive.error||E.error;C&&jr(e,E,C),E.status==="pending"&&await s(A,w,R,E,p)}else{const E=A&&!e.router.stores.matchStores.has(l),C=e.router.getMatch(l);C._nonReactive.loaderPromise=ga(),E!==C.preload&&e.updateMatch(l,x=>({...x,preload:E})),await s(A,w,R,C,p)}}const m=e.router.getMatch(l);h||(m._nonReactive.loaderPromise?.resolve(),m._nonReactive.loadPromise?.resolve(),m._nonReactive.loadPromise=void 0),clearTimeout(m._nonReactive.pendingTimeout),m._nonReactive.pendingTimeout=void 0,h||(m._nonReactive.loaderPromise=void 0),m._nonReactive.dehydrated=void 0;const b=h?m.isFetching:!1;return b!==m.isFetching||m.invalid!==!1?(e.updateMatch(l,w=>({...w,isFetching:b,invalid:!1})),e.router.getMatch(l)):m};async function hy(e){const t=e,a=[];eA(t.router)&&ah(t);let s;for(let b=0;b<t.matches.length;b++){try{const w=rA(t,b);Ms(w)&&await w}catch(w){if(Nt(w))throw w;if(dt(w))s=w;else if(!t.preload)throw w;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const l=t.firstBadMatchIndex??t.matches.length,c=s&&!t.preload?cy(t,s):void 0,u=s&&t.preload?0:c!==void 0?Math.min(c+1,l):l;let h,p;for(let b=0;b<u;b++)a.push(iA(t,a,b));try{await Promise.all(a)}catch{const b=await Promise.allSettled(a);for(const w of b){if(w.status!=="rejected")continue;const S=w.reason;if(Nt(S))throw S;dt(S)?h??=S:p??=S}if(p!==void 0)throw p}const g=h??(s&&!t.preload?s:void 0);let y=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!g&&s&&t.preload)return t.matches;if(g){const b=cy(t,g);b===void 0&&Mt();const w=t.matches[b],S=t.router.looseRoutesById[w.routeId],R=t.router.options?.defaultNotFoundComponent;!S.options.notFoundComponent&&R&&(S.options.notFoundComponent=R),g.routeId=w.routeId;const A=w.routeId===t.router.routeTree.id;t.updateMatch(w.id,E=>({...E,...A?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:g},isFetching:!1})),y=b,await Ps(S,["notFoundComponent"])}else if(!t.preload){const b=t.matches[0];b.globalNotFound||t.router.getMatch(b.id)?.globalNotFound&&t.updateMatch(b.id,w=>({...w,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const b=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Ps(b,["errorComponent"])}for(let b=0;b<=y;b++){const{id:w,routeId:S}=t.matches[b],R=t.router.looseRoutesById[S];try{const A=aA(t,w,R);if(A){const E=await A;t.updateMatch(w,C=>({...C,...E}))}}catch(A){console.error(`Error executing head for route ${S}:`,A)}}const m=ah(t);if(Ms(m)&&await m,g)throw g;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function fy(e,t){const a=t.map(s=>e.options[s]?.preload?.()).filter(Boolean);if(a.length!==0)return Promise.all(a)}function Ps(e,t=Ml){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(s=>{const{id:l,...c}=s.options;Object.assign(e.options,c),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const a=()=>e._componentsLoaded?void 0:t===Ml?(()=>{if(e._componentsPromise===void 0){const s=fy(e,Ml);s?e._componentsPromise=s.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():fy(e,t);return e._lazyPromise?e._lazyPromise.then(a):a()}function Xv(e){for(const t of Ml)if(e.options[t]?.preload)return!0;return!1}const Ml=["component","errorComponent","pendingComponent","notFoundComponent"];var Nr="__TSR_index",py="popstate",gy="beforeunload";function sA(e){let t=e.getLocation();const a=new Set,s=u=>{t=e.getLocation(),a.forEach(h=>h({location:t,action:u}))},l=u=>{e.notifyOnIndexChange??!0?s(u):t=e.getLocation()},c=async({task:u,navigateOpts:h,...p})=>{if(h?.ignoreBlocker??!1){u();return}const g=e.getBlockers?.()??[],y=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&g.length&&y)for(const m of g){const b=ql(p.path,p.state);if(await m.blockerFn({currentLocation:t,nextLocation:b,action:p.type})){e.onBlocked?.();return}}u()};return{get location(){return t},get length(){return e.getLength()},subscribers:a,subscribe:u=>(a.add(u),()=>{a.delete(u)}),push:(u,h,p)=>{const g=t.state[Nr];h=my(g+1,h),c({task:()=>{e.pushState(u,h),s({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:u,state:h})},replace:(u,h,p)=>{const g=t.state[Nr];h=my(g,h),c({task:()=>{e.replaceState(u,h),s({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:u,state:h})},go:(u,h)=>{c({task:()=>{e.go(u),l({type:"GO",index:u})},navigateOpts:h,type:"GO"})},back:u=>{c({task:()=>{e.back(u?.ignoreBlocker??!1),l({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{c({task:()=>{e.forward(u?.ignoreBlocker??!1),l({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>t.state[Nr]!==0,createHref:u=>e.createHref(u),block:u=>{if(!e.setBlockers)return()=>{};const h=e.getBlockers?.()??[];return e.setBlockers([...h,u]),()=>{const p=e.getBlockers?.()??[];e.setBlockers?.(p.filter(g=>g!==u))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:s}}function my(e,t){t||(t={});const a=kh();return{...t,key:a,__TSR_key:a,[Nr]:e}}function oA(e){const t=typeof document<"u"?window:void 0,a=t.history.pushState,s=t.history.replaceState;let l=[];const c=()=>l,u=F=>l=F,h=(F=>F),p=(()=>ql(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const F=kh();t.history.replaceState({[Nr]:0,key:F,__TSR_key:F},"")}let g=p(),y,m=!1,b=!1,w=!1,S=!1;const R=()=>g;let A,E;const C=()=>{A&&(D._ignoreSubscribers=!0,(A.isPush?t.history.pushState:t.history.replaceState)(A.state,"",A.href),D._ignoreSubscribers=!1,A=void 0,E=void 0,y=void 0)},x=(F,Y,se)=>{const re=h(Y);E||(y=g),g=ql(Y,se),A={href:re,state:se,isPush:A?.isPush||F==="push"}
10,E||(E=Promise.resolve().then(()=>C()))},M=F=>{g=p(),D.notify({type:F})},$=async()=>{if(b){b=!1;return}const F=p(),Y=F.state[Nr]-g.state[Nr],se=Y===1,re=Y===-1,oe=!se&&!re||m;m=!1;const ot=oe?"GO":re?"BACK":"FORWARD",$e=oe?{type:"GO",index:Y}:{type:re?"BACK":"FORWARD"};if(w)w=!1;else{const Je=c();if(typeof document<"u"&&Je.length){for(const z of Je)if(await z.blockerFn({currentLocation:g,nextLocation:F,action:ot})){b=!0,t.history.go(1),D.notify($e);return}}}g=p(),D.notify($e)},G=F=>{if(S){S=!1;return}let Y=!1;const se=c();if(typeof document<"u"&&se.length)for(const re of se){const oe=re.enableBeforeUnload??!0;if(oe===!0){Y=!0;break}if(typeof oe=="function"&&oe()===!0){Y=!0;break}}if(Y)return F.preventDefault(),F.returnValue=""},D=sA({getLocation:R,getLength:()=>t.history.length,pushState:(F,Y)=>x("push",F,Y),replaceState:(F,Y)=>x("replace",F,Y),back:F=>(F&&(w=!0),S=!0,t.history.back()),forward:F=>{F&&(w=!0),S=!0,t.history.forward()},go:F=>{m=!0,t.history.go(F)},createHref:F=>h(F),flush:C,destroy:()=>{t.history.pushState=a,t.history.replaceState=s,t.removeEventListener(gy,G,{capture:!0}),t.removeEventListener(py,$)},onBlocked:()=>{y&&g!==y&&(g=y)},getBlockers:c,setBlockers:u,notifyOnIndexChange:!1});return t.addEventListener(gy,G,{capture:!0}),t.addEventListener(py,$),t.history.pushState=function(...F){const Y=a.apply(t.history,F);return D._ignoreSubscribers||M("PUSH"),Y},t.history.replaceState=function(...F){const Y=s.apply(t.history,F);return D._ignoreSubscribers||M("REPLACE"),Y},D}function lA(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function ql(e,t){const a=lA(e),s=a.indexOf("#"),l=a.indexOf("?"),c=kh();return{href:a,pathname:a.substring(0,s>0?l>0?Math.min(s,l):s:l>0?l:a.length),hash:s>-1?a.substring(s):"",search:l>-1?a.slice(l,s===-1?void 0:s):"",state:t||{[Nr]:0,key:c,__TSR_key:c}}}function kh(){return(Math.random()+1).toString(36).substring(7)}function cA(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function vi(e,t){const a=t,s=e;return{fromLocation:a,toLocation:s,pathChanged:a?.pathname!==s.pathname,hrefChanged:a?.href!==s.href,hashChanged:a?.hash!==s.hash}}var uA=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=a=>a(),this.update=a=>{const s=this.options,l=this.basepath??s?.basepath??"/",c=this.basepath===void 0,u=s?.rewrite;if(this.options={...s,...a},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=PS(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=oA()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let y;this.resolvePathCache=Ds(1e3),y=this.buildRouteTree(),this.setRoutes(y)}if(!this.stores&&this.latestLocation){const y=this.getStoreConfig(this);this.batch=y.batch,this.stores=ZS(hA(this.latestLocation),y),VS(this)}let h=!1;const p=this.options.basepath??"/",g=this.options.rewrite;if(c||l!==p||u!==g){this.basepath=p;const y=[],m=Vv(p);m&&m!=="/"&&y.push(WS({basepath:p})),g&&y.push(g),this.rewrite=y.length===0?void 0:y.length===1?y[0]:XS(y),this.history&&this.updateLatestLocation(),h=!0}h&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const a=IS(this.routeTree,this.options.caseSensitive,(s,l)=>{s.init({originalIndex:l})});return this.options.routeMasks&&TS(this.options.routeMasks,a.processedTree),a},this.subscribe=(a,s)=>{const l={eventType:a,fn:s};return this.subscribers.add(l),()=>{this.subscribers.delete(l)}},this.emit=a=>
10{this.subscribers.forEach(s=>{s.eventType===a.type&&s.fn(a)})},this.parseLocation=(a,s)=>{const l=({pathname:p,search:g,hash:y,href:m,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const E=this.options.parseSearch(g),C=this.options.stringifySearch(E);return{href:p+C+y,publicHref:p+C+y,pathname:_s(p).path,external:!1,searchStr:C,search:ra(s?.search,E),hash:_s(y.slice(1)).path,state:la(s?.state,b)}}const w=new URL(m,this.origin),S=rh(this.rewrite,w),R=this.options.parseSearch(S.search),A=this.options.stringifySearch(R);return S.search=A,{href:S.href.replace(S.origin,""),publicHref:m,pathname:_s(S.pathname).path,external:!!this.rewrite&&S.origin!==this.origin,searchStr:A,search:ra(s?.search,R),hash:_s(S.hash.slice(1)).path,state:la(s?.state,b)}},c=l(a),{__tempLocation:u,__tempKey:h}=c.state;if(u&&(!h||h===this.tempLocationKey)){const p=l(u);return p.state.key=c.state.key,p.state.__TSR_key=c.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:c}}return c},this.resolvePathWithBase=(a,s)=>DS({base:a,to:s.includes("//")?Oh(s):s,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(a,s,l)=>typeof a=="string"?this.matchRoutesInternal({pathname:a,search:s},l):this.matchRoutesInternal(a,s),this.getMatchedRoutes=a=>fA({pathname:a,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=a=>{const s=this.getMatch(a);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(a=>{this.cancelMatch(a)}),this.stores.matchesId.get().forEach(a=>{if(this.stores.pendingMatchStores.has(a))return;const s=this.stores.matchStores.get(a)?.get();s&&(s.status==="pending"||s.isFetching==="loader")&&this.cancelMatch(a)})},this.buildLocation=a=>{const s=(c={})=>{const u=c._fromLocation||this.pendingBuiltLocation||this.latestLocation,h=this.matchRoutesLightweight(u);c.from;const p=c.unsafeRelative==="path"?u.pathname:c.from??h.fullPath,g=c.to?`${c.to}`:void 0,y=h.search,m=Object.assign(Object.create(null),h.params),b=g?.charCodeAt(0)===47?"/":this.resolvePathWithBase(p,"."),w=g?this.resolvePathWithBase(b,g):b,S=c.params===!1||c.params===null?Object.create(null):(c.params??!0)===!0?m:Object.assign(m,oa(c.params,m)),R=this.routesByPath[Qn(w)];let A;if(R)A=this.getRouteBranch(R);else if(w.includes("$"))A=[];else{const re=this.getMatchedRoutes(w);A=re.matchedRoutes,this.options.notFoundRoute&&(!re.foundRoute||re.foundRoute.path!=="/"&&re.routeParams["**"])&&(A=[...A,this.options.notFoundRoute])}if(A.length&&Uv(S))for(const re of A){const oe=re.options.params?.stringify??re.options.stringifyParams;if(oe)try{Object.assign(S,oe(S))}catch{}}const E=a.leaveParams?w:_s(iy({path:w,params:S,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let C=y;if(a._includeValidateSearch&&this.options.search?.strict){const re={};A.forEach(oe=>{if(oe.options.validateSearch)try{Object.assign(re,Dl(oe.options.validateSearch,{...re,...C}))}catch{}}),C=re}C=pA({search:C,dest:c,destRoutes:A,_includeValidateSearch:a._includeValidateSearch}),C=ra(y,C);const x=this.options.stringifySearch(C),M=c.hash===!0?u.hash:c.hash?oa(c.hash,u.hash):void 0,$=M?`#${M}`:"";let G=c.state===!0?u.state:c.state?oa(c.state,u.state):{};G=la(u.state,G);const D=`${E}${x}${$}`;let F,Y,se=!1;if(this.rewrite){const re=new URL(D,this.origin),oe=Kv(this.rewrite,re);F=re.href.replace(re.origin,""),oe.origin!==this.origin?(Y=oe.href,se=!0):Y=oe.pathname+oe.search+oe.hash}else F=AS(D),Y=F;return{publicHref:Y,href:F,pathname:E,search:C,searchStr:x,state:G,hash:M??"",external:se,unmaskOnReload:c.unmaskOnReload}},l=(c={},u)=>{const h=s(c);let p=u?s(u):void 0;if(!p){const g=Object.create(null);if(this.options.routeMasks){const y=CS(h.pathname,this.processedTree);if(y){Object.assign(g,y.rawParams);const{from:m,params:b,...w}=y.route,S=b===!1||b===null?Object.create(null):(b??!0)===!0?g:Object.assign(g,oa(b,g));u={from:a.from,...w,params:S},p=s(u)}}}return p&&(h.maskedLocation=p),h};return a.mask?l(a,{from:a.from,...a.mask}):l(a)},this.commitLocation=async({viewTransition:a,ignoreBlocker:s,...l})=>{let c;const u=()=>{const g=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];g.forEach(m=>{l.state[m]=this.latestLocation.state[m]}
10);const y=Et(l.state,this.latestLocation.state);return g.forEach(m=>{delete l.state[m]}),y},h=Qn(this.latestLocation.href)===Qn(l.href);let p=this.commitLocationPromise;if(this.commitLocationPromise=ga(()=>{p?.resolve(),p=void 0}),h&&u())this.load();else{let{maskedLocation:g,hashScrollIntoView:y,...m}=l;g&&(m={...g,state:{...g.state,__tempKey:void 0,__tempLocation:{...m,search:m.searchStr,state:{...m.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(m.unmaskOnReload??this.options.unmaskOnReload??!1)&&(m.state.__tempKey=this.tempLocationKey)),m.state.__hashScrollIntoViewOptions=y??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=a,c=l.replace?"REPLACE":"PUSH",this.history[c==="REPLACE"?"replace":"push"](m.publicHref,m.state,{ignoreBlocker:s})}return this._scroll.next=l.resetScroll??!0,this.history.subscribers.size||this.load(c?{action:{type:c}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:a,resetScroll:s,hashScrollIntoView:l,viewTransition:c,ignoreBlocker:u,href:h,...p}={})=>{if(h){const m=this.history.location.state.__TSR_index,b=ql(h,{__TSR_index:a?m:m+1}),w=new URL(b.pathname,this.origin);p.to=rh(this.rewrite,w).pathname,p.search=this.options.parseSearch(b.search),p.hash=b.hash.slice(1)}const g=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=g;const y=this.commitLocation({...g,viewTransition:c,replace:a,resetScroll:s,hashScrollIntoView:l,ignoreBlocker:u});return queueMicrotask(()=>{this.pendingBuiltLocation===g&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:a,reloadDocument:s,href:l,publicHref:c,...u})=>{let h=!1;if(l)try{new URL(`${l}`),h=!0}catch{}if(h&&!s&&(s=!0),s){if(a!==void 0||!l){const g=this.buildLocation({to:a,...u});l=l??g.publicHref,c=c??g.publicHref}const p=!h&&c?c:l;if(Hl(p,this.protocolAllowlist))return;if(!u.ignoreBlocker){const g=this.history.getBlockers?.()??[];for(const y of g)if(y?.blockerFn&&await y.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}u.replace?window.location.replace(p):window.location.href=p;return}return this.buildAndCommitLocation({...u,href:l,to:a,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const a=this.matchRoutes(this.latestLocation),s=this.stores.cachedMatches.get().filter(l=>!a.some(c=>c.id===l.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(a),this.stores.setCached(s)})},this.load=async a=>{const s=a?.action?.type;let l,c,u;const h=this.stores.resolvedLocation.get()??this.stores.location.get();for(u=new Promise(g=>{this.startTransition(async()=>{try{this.beforeLoad(),s&&(this._scroll.hash=s==="PUSH"||s==="REPLACE");const y=this.latestLocation,m=vi(y,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...m}),this.emit({type:"onBeforeLoad",...m}),await hy({router:this,sync:a?.sync,forceStaleReload:h.href===y.href,matches:this.stores.pendingMatches.get(),location:y,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=null,w=null,S=null,R=null;this.batch(()=>{const A=this.stores.pendingMatches.get(),E=A.length,C=this.stores.matches.get();b=E?C.filter($=>!this.stores.pendingMatchStores.has($.id)):null;const x=new Set;for(const $ of this.stores.pendingMatchStores.values())$.routeId&&x.add($.routeId);const M=new Set;for(const $ of this.stores.matchStores.values())$.routeId&&M.add($.routeId);w=E?C.filter($=>!x.has($.routeId)):null,S=E?A.filter($=>!M.has($.routeId)):null,R=E?A.filter($=>M.has($.routeId)):C,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),E&&(this.stores.setMatches(A),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...b.filter($=>$.status!=="error"&&$.status!=="notFound"&&$.status!=="redirected")]),this.clearExpiredCache())});for(const[A,E]of[[w,"onLeave"],[S,"onEnter"],[R,"onStay"]])if(A)for(const C of A)this.looseRoutesById[C.routeId].options[E]?.(C)})})}})}catch(y){Nt(y)?(l=y,this.navigate({...l.options,replace:!0,ignoreBlocker:!0})):dt(y)&&(c=y);const m=l?l.status:c?404:this.stores.matches.get().some(b=>b.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(m),this.stores.redirect.set(l)})}this.latestLoadPromise===u&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),g()})}),this.latestLoadPromise=u,await u;this.latestLoadPromise&&u!==this.latestLoadPromise;)await this.latestLoadPromise;let p;this.hasNotFoundMatch()?p=404:this.stores.matches.get().some(g=>g.status==="error")&&(p=500),p!==void 0&&this.stores.statusCode.set(p)},this.startViewTransition=a=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let l;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const c=this.latestLocation,u=this.stores.resolvedLocation.get(),h=typeof s.types=="function"?s.types(vi(c,u)):s.types;if(h===!1){a();return}l={update:a,types:h}}else l=a;document.startViewTransition(l)}else a()},this.updateMatch=(a,s)=>{this.startTransition(()=>
10{const l=this.stores.pendingMatchStores.get(a);if(l){l.set(s);return}const c=this.stores.matchStores.get(a);if(c){c.set(s);return}const u=this.stores.cachedMatchStores.get(a);if(u){const h=s(u.get());h.status==="redirected"?this.stores.cachedMatchStores.delete(a)&&this.stores.cachedIds.set(p=>p.filter(g=>g!==a)):u.set(h)}})},this.getMatch=a=>this.stores.cachedMatchStores.get(a)?.get()??this.stores.pendingMatchStores.get(a)?.get()??this.stores.matchStores.get(a)?.get(),this.invalidate=a=>{const s=l=>a?.filter?.(l)??!0?{...l,invalid:!0,...a?.forcePending||l.status==="error"||l.status==="notFound"?{status:"pending",error:void 0}:void 0}:l;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(s)),this.stores.setCached(this.stores.cachedMatches.get().map(s)),this.stores.setPending(this.stores.pendingMatches.get().map(s))}),this.shouldViewTransition=!1,this.load({sync:a?.sync})},this.getParsedLocationHref=a=>a.publicHref||"/",this.resolveRedirect=a=>{const s=a.headers.get("Location");if(!a.options.href||a.options._builtLocation){const l=a.options._builtLocation??this.buildLocation(a.options),c=this.getParsedLocationHref(l);a.options.href=c,a.headers.set("Location",c)}else if(s)try{const l=new URL(s);if(this.origin&&l.origin===this.origin){const c=l.pathname+l.search+l.hash;a.options.href=c,a.headers.set("Location",c)}}catch{}if(a.options.href&&!a.options._builtLocation&&Hl(a.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return a.headers.get("Location")||a.headers.set("Location",a.options.href),a},this.clearCache=a=>{const s=a?.filter;s!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(l=>!s(l))):this.stores.setCached([])},this.clearExpiredCache=()=>{const a=Date.now(),s=l=>{const c=this.looseRoutesById[l.routeId];if(!c.options.loader)return!0;const u=(l.preload?c.options.preloadGcTime??this.options.defaultPreloadGcTime:c.options.gcTime??this.options.defaultGcTime)??300*1e3;return l.status==="error"?!0:a-l.updatedAt>=u};this.clearCache({filter:s})},this.loadRouteChunk=Ps,this.preloadRoute=async a=>{const s=a._builtLocation??this.buildLocation(a);let l=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:a});const c=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),u=new Set([...c,...this.stores.cachedIds.get()]),h=l.filter(p=>!u.has(p.id));if(h.length){const p=this.stores.cachedMatches.get();this.stores.setCached([...p,...h])}try{return l=await hy({router:this,matches:l,location:s,preload:!0,updateMatch:(p,g)=>{c.has(p)?l=l.map(y=>y.id===p?g(y):y):this.updateMatch(p,g)}}),l}catch(p){if(Nt(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:s});dt(p)||console.error(p);return}},this.matchRoute=(a,s)=>{const l={...a,to:a.to?this.resolvePathWithBase(a.from||"",a.to):void 0,params:a.params||{},leaveParams:!0},c=this.buildLocation(l);if(s?.pending&&this.stores.status.get()!=="pending")return!1;const u=(s?.pending===void 0?!this.stores.isLoading.get():s.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),h=OS(c.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,u.pathname,this.processedTree);return!h||a.params&&!Et(h.rawParams,a.params,{partial:!0})?!1:s?.includeSearch??!0?Et(u.search,c.search,{partial:!0})?h.rawParams:!1:h.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(a=>a.status==="notFound"||a.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??KS,parseSearch:e.parseSearch??FS,protocolAllowlist:e.protocolAllowlist??bS}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:a}){this.routesById=e,this.routesByPath=t,this.processedTree=a;const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=$v(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const a=this.getMatchedRoutes(e.pathname),{foundRoute:s,routeParam
10s:l}=a;let{matchedRoutes:c}=a,u=!1;(s?s.path!=="/"&&l["**"]:Qn(e.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:u=!0);const h=u?mA(this.options.notFoundMode,c):void 0,p=new Array(c.length),g=new Map;for(const y of this.stores.matchStores.values())y.routeId&&g.set(y.routeId,y.get());for(let y=0;y<c.length;y++){const m=c[y],b=p[y-1];let w,S,R;{const oe=b?.search??e.search,ot=b?._strictSearch??void 0;try{const $e=Dl(m.options.validateSearch,{...oe})??void 0;w={...oe,...$e},S={...ot,...$e},R=void 0}catch($e){let Je=$e;if($e instanceof Vl||(Je=new Vl($e.message,{cause:$e})),t?.throwOnError)throw Je;w=oe,S={},R=Je}}const A=m.options.loaderDeps?.({search:w})??"",E=A?JSON.stringify(A):"",{interpolatedPath:C,usedParams:x}=iy({path:m.fullPath,params:l,decoder:this.pathParamsDecoder,server:this.isServer}),M=m.id+C+E,$=this.getMatch(M),G=g.get(m.id),D=$?._strictParams??x;let F;if(!$)try{yy(m,D)}catch(oe){if(dt(oe)||Nt(oe)?F=oe:F=new dA(oe.message,{cause:oe}),t?.throwOnError)throw F}Object.assign(l,D);const Y=G?"stay":"enter";let se;if($)se={...$,cause:Y,params:G?.params??l,_strictParams:D,search:ra(G?G.search:$.search,w),_strictSearch:S};else{const oe=m.options.loader||m.options.beforeLoad||m.lazyFn||Xv(m)?"pending":"success";se={id:M,ssr:m.options.ssr,index:y,routeId:m.id,params:G?.params??l,_strictParams:D,pathname:C,updatedAt:Date.now(),search:G?ra(G.search,w):w,_strictSearch:S,searchError:void 0,status:oe,isFetching:!1,error:void 0,paramsError:F,__routeC
10ontext:void 0,_nonReactive:{loadPromise:ga()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:Y,loaderDeps:G?la(G.loaderDeps,A):A,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},fullPath:m.fullPath}}t?.preload||(se.globalNotFound=h===m.id),se.searchError=R;const re=this.getParentContext(b);se.context={...re,...se.__routeContext,...se.__beforeLoadContext},p[y]=se}for(let y=0;y<p.length;y++){const m=p[y],b=this.looseRoutesById[m.routeId],w=this.getMatch(m.id),S=g.get(m.routeId);if(m.params=S?ra(S.params,l):l,!w){const R=p[y-1],A=this.getParentContext(R);if(b.options.context){const E={deps:m.loaderDeps,params:m.params,context:A??{},location:e,navigate:C=>this.navigate({...C,_fromLocation:e}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:p,routeId:b.id};m.__routeContext=b.options.context(E)??void 0}m.context={...A,...m.__routeContext,...m.__beforeLoadContext}}}return p}matchRoutesLightweight(e){const t=Ns(this.stores.matchesId.get()),a=this.lightweightCache.get(e);if(a&&a[0]===t)return a[1];const{matchedRoutes:s,routeParams:l}=this.getMatchedRoutes(e.pathname),c=Ns(s),u={...e.search};for(const m of s)try{Object.assign(u,Dl(m.options.validateSearch,u))}catch{}const h=t&&this.stores.matchStores.get(t)?.get(),p=h&&h.routeId===c.id&&h.pathname===e.pathname;let g;if(p)g=h.params;else{const m=Object.assign(Object.create(null),l);for(const b of s)try{yy(b,m)}catch{}g=m}const y={matchedRoutes:s,fullPath:c.fullPath,search:u,params:g};return this.lightweightCache.set(e,[t,y]),y}},Vl=class extends Error{},dA=class extends Error{};function hA(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Dl(e,t){if(e==null)return{};if("~standard"in e){const a=e["~standard"].validate(t);if(a instanceof Promise)throw new Vl("Async validation not supported");if(a.issues)throw new Vl(JSON.stringify(a.issues,void 0,2),{cause:a});return a.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function fA({pathname:e,routesById:t,processedTree:a}){const s=Object.create(null),l=Qn(e);let c;const u=kS(l,a,!0);return u&&(c=u.route,Object.assign(s,u.rawParams)),{matchedRoutes:u?.branch||[t.__root__],routeParams:s,foundRoute:c}}function pA({search:e,dest:t,destRoutes:a,_includeValidateSearch:s}){return gA(a)(e,t,s??!1)}function gA(e){let t,a;const s=[];for(const c of e){const u=c.options;if("search"in u)u.search?.middlewares&&s.push(...u.search.middlewares);else if(u.preSearchFilters||u.postSearchFilters){const p=({search:g,next:y})=>{const m=y(u.preSearchFilters?u.preSearchFilters.reduce((b,w)=>w(b),g):g);return u.postSearchFilters?u.postSearchFilters.reduce((b,w)=>w(b),m):m};s.push(p)}const h=u.validateSearch;if(h){const p=({search:g,next:y,meta:m})=>{const b=y(g);if(a)try{const w=Dl(h,b);if(m&&w)for(const S in w)S in b||(m.defaulted||=new Map).set(S,w[S]);return{...b,...w}}catch{}return b};s.push(p)}}const l=(c,u,h)=>{if(c>=s.length){if(!t.search)return{};if(t.search===!0)return u;const g=oa(t.search,u);return h&&(h.explicit=g),g}const p=(g,y)=>{if(y){const m=h||{};return{search:l(c+1,g,m),meta:m}}return l(c+1,g,h)};return s[c]({search:u,next:p,meta:h})};return function(u,h,p){return t=h,a=p,l(0,u)}}function mA(e,t){if(e!=="root")for(let a=t.length-1;a>=0;a--){const s=t[a];if(s.children)return s.id}return fa}function yy(e,t){const a=e.options.params?.parse??e.options.parseParams;if(a){const s=a(t);if(s===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,s)}}const Sn=Symbol.for("TSR_DEFERRED_PROMISE");function yA(e,t){const a=e;return a[Sn]||(a[Sn]={status:"pending"},a.then(s=>{a[Sn].status="success",a[Sn].data=s}).catch(s=>{a[Sn].status="error",a[Sn].error={data:cA(s),__isServerError:!0}})),a}const vA="Error preloading route! ☝️";function Wv(e,t){if(e)return typeof e=="string"?e:e[t]}function bA(e){return e?.scriptFormat??"module"}function wA(e,t,a){const s=_A(t),l=Wv(a,"script")??s.crossOrigin;return{...bA(e)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:s.href,...l?{crossOrigin:l}:{}}}function _A(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function _l(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}const a=new Set;for(const s of t){const l=JSON.stringify(s);a.has(l)||(a.add(l),e.push(s))}}function SA(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}var Zv=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const a=this.options,s=!a?.path&&!a?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=fa:this.parentRoute||Mt();let l=s?fa:a?.path;l&&l!=="/"&&(l=qv(l));const c=a?.id||l;let u=s?fa:jl([this.parentRoute.id==="__root__"?"":this.parentRoute.id,c]);l==="__root__"&&(l="/"),u!=="__root__"&&(u=jl(["/",u]));const h=u==="__root__"?"/":jl([this.parentRoute.fullPath,l]);this._path=l,this._id=u,this._fullPath=h,this._to=Qn(h)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>Js({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},AA=class extends Zv{constructor(e){super(e)}};const Xn=Symbol.asyncIterator,eb=Symbol.hasInstance,bi=Symbol.isConcatSpreadable,Wn=Symbol.iterator,tb=Symbol.match,nb=Symbol.matchAll,rb=Symbol.replace,ab=Symbol.search,ib=Symbol.species,sb=Symbol.split,ob=Symbol.toPrimitive,wi=Symbol.toStringTag,lb=Symbol.unscopables,cb={[Xn]:0,[eb]:1,[bi]:2,[Wn]:3,[tb]:4,[nb]:5,[rb]:6,[ab]:7,[ib]:8,[
10sb]:9,[ob]:10,[wi]:11,[lb]:12},EA={0:Xn,1:eb,2:bi,3:Wn,4:tb,5:nb,6:rb,7:ab,8:ib,9:sb,10:ob,11:wi,12:lb},RA={2:!0,3:!1,1:void 0,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:NaN},TA={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},CA={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function Ae(e,t,a,s,l,c,u,h,p,g,y,m){return{t:e,i:t,s:a,c:s,m:l,p:c,e:u,a:h,f:p,b:g,o:y,l:m}}function Mr(e){return Ae(2,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}const ub=Mr(2),db=Mr(3),OA=Mr(1),kA=Mr(0),xA=Mr(4),IA=Mr(5),LA=Mr(6),jA=Mr(7);function NA(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case`
11`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case"	":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return}}function Dr(e){let t="",a=0,s;for(let l=0,c=e.length;l<c;l++)s=NA(e[l]),s&&(t+=e.slice(a,l)+s,a=l+1);return a===0?t=e:t+=e.slice(a),t}function MA(e){switch(e){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return`
12`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return"	";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return e}}function Pr(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,MA)}const Sl="__SEROVAL_REFS__",hb=new Map,mi=new Map;function fb(e){return hb.has(e)}function DA(e){return mi.has(e)}function PA(e){if(fb(e))return hb.get(e);throw new pE(e)}function UA(e){if(DA(e))return mi.get(e);throw new gE(e)}typeof globalThis<"u"?Object.defineProperty(globalThis,Sl,{value:mi,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Sl,{value:mi,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Sl,{value:mi,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Sl,{value:mi,configurable:!0,writable:!1,enumerable:!1});function xh(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function zA(e){const t=TA[xh(e)];return e.name!==t?{name:e.name}:e.constructor.name!==t?{name:e.constructor.name}:{}}function pb(e,t){let a=zA(e);const s=Object.getOwnPropertyNames(e);for(let l=0,c=s.length,u;l<c;l++)u=s[l],u!=="name"&&u!=="message"&&(u==="stack"?t&4&&(a=a||{},a[u]=e[u]):(a=a||{},a[u]=e[u]));return a}function gb(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:Object.isExtensible(e)?0:1}function BA(e){switch(e){case Number.POSITIVE_INFINITY:return IA;case Number.NEGATIVE_INFINITY:return LA}return e!==e?jA:Object.is(e,-0)?xA:Ae(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function mb(e){return Ae(1,void 0,Dr(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function HA(e){return Ae(3,void 0,""+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function $A(e){return Ae(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function qA(e,t){const a=t.valueOf();return Ae(5,e,a!==a?"":t.toISOString(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Cr(e,t,a){return Ae(36,e,a.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function VA(e,t){return Ae(6,e,void 0,Dr(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function GA(e,t){return Ae(17,e,cb[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function FA(e,t){return Ae(18,e,Dr(PA(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function KA(e,t,a){return Ae(25,e,a,Dr(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function YA(e,t,a){return Ae(9,e,void 0,void 0,void 0,void 0,void 0,a,void 0,void 0,gb(t),void 0)}function JA(e,t){return Ae(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function QA(e,t,a){return Ae(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,a,t.byteOffset,void 0,t.length)}function XA(e,t,a){return Ae(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,a,t.byteOffset,void 0,t.length)}function WA(e,t,a){return Ae(20,e,void 0,void 0,void 0,void 0,void 0,void 0,a,t.byteOffset,void 0,t.byteLength)}function ZA(e,t,a){return Ae(13,e,xh(t),void 0,Dr(t.message),a,void 0,void 0,void 0,void 0,void 0,void 0)}function eE(e,t,a){return Ae(14,e,xh(t),void 0,Dr(t.message),a,void 0,void 0,void 0,void 0,void 0,void 0)}function tE(e,t){return Ae(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function nE(e,t){return Ae(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function rE(e,t){return Ae(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function aE(e,t,a){return Ae(31,e,void 0,void 0,void 0,void 0,void 0,a,t,void 0,void 0,void 0)}function iE(e,t){return Ae(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function sE(e,t){return Ae(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function oE(e,t){return Ae(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function lE(e,t,a,s){return Ae(35,e,a,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,s)}
12const cE={parsing:1,serialization:2,deserialization:3};function uE(e){return`Seroval Error (step: ${cE[e]})`}const dE=(e,t)=>uE(e);var yb=class extends Error{constructor(e,t){super(dE(e)),this.cause=t}},vy=class extends yb{constructor(e){super("parsing",e)}},hE=class extends yb{constructor(e){super("deserialization",e)}};function Zn(e){return`Seroval Error (specific: ${e})`}var ac=class extends Error{constructor(e){super(Zn(1)),this.value=e}},Ih=class extends Error{constructor(e){super(Zn(2))}},fE=class extends Error{constructor(e){super(Zn(3))}},Qs=class extends Error{constructor(e){super(Zn(4))}},pE=class extends Error{constructor(e){super(Zn(5)),this.value=e}},gE=class extends Error{constructor(e){super(Zn(6))}},mE=class extends Error{constructor(e){super(Zn(7))}},En=class extends Error{constructor(e){super(Zn(8))}},vb=class extends Error{constructor(e){super(Zn(9))}},yE=class{constructor(e,t){this.value=e,this.replacement=t}};const Lh=()=>{const e={p:0,s:0,f:0};return e.p=new Promise((t,a)=>{e.s=t,e.f=a}),e},vE=()=>{const e=[],t=[];let a=!0,s=!1,l=0;const c={flush(u,h,p){for(p=0;p<l;p++)t[p]&&t[p][h](u)},up(u,h,p,g){for(h=0,p=e.length;h<p;h++)g=e[h],!a&&h===p-1?u[s?"return":"throw"](g):u.next(g)},on(u,h){return a&&(h=l++,t[h]=u),c.up(u),()=>{a&&(t[h]=t[l],t[l--]=void 0)}}};return{__SEROVAL_STREAM__:!0,on(u){return c.on(u)},next(u){a&&(e.push(u),c.flush(u,"next"))},throw(u){a&&(e.push(u),c.flush(u,"throw"),a=!1,s=!1,t.length=0)},return(u){a&&(e.push(u),c.flush(u,"return"),a=!1,s=!0,t.length=0)}}},bE=e=>t=>()=>{let a=0;const s={[e](){return s},next(){if(a>t.d)return{done:!0,value:void 0};const l=a++,c=t.v[l];if(l===t.t)throw c;return{done:l===t.d,value:c}}};return s},wE=(e,t)=>a=>()=>{let s=0,l=-1,c=!1;const u=[],h=[],p={finalize(y=0,m=h.length){for(;y<m;y++)h[y].s({done:!0,value:void 0})}};a.on({next(y){const m=h.shift();m&&m.s({done:!1,value:y}),u.push(y)},throw(y){const m=h.shift();m&&m.f(y),p.finalize(),l=u.length,c=!0,u.push(y)},return(y){const m=h.shift();m&&m.s({done:!0,value:y}),p.finalize(),l=u.length,u.push(y)}});const g={[e](){return g},next(){if(l===-1){const b=s++;if(b>=u.length){const w=t();return h.push(w),w.p}return{done:!1,value:u[b]}}if(s>l)return{done:!0,value:void 0};const y=s++,m=u[y];if(y!==l)return{done:!1,value:m};if(c)throw m;return{done:!0,value:m}}};return g},_E=e=>{const t=atob(e),a=t.length,s=new Uint8Array(a);for(let l=0;l<a;l++)s[l]=t.charCodeAt(l);return s.buffer};function SE(e){return"__SEROVAL_SEQUENCE__"in e}function bb(e,t,a){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:a}}function AE(e){const t=[];let a=-1,s=-1;const l=e[Wn]();for(;;)try{const c=l.next();if(t.push(c.value),c.done){s=t.length-1;break}}catch(c){a=t.length,t.push(c)}return bb(t,a,s)}const EE=bE(Wn);function RE(e){return EE(e)}const TE={},CE={},OE={0:{},1:{},2:{},3:{},4:{},5:{}};function kE(e){return"__SEROVAL_STREAM__"in e}function ma(){return vE()}function xE(e){const t=ma(),a=e[Xn]();async function s(){try{const l=await a.next();l.done?t.return(l.value):(t.next(l.value),await s())}catch(l){t.throw(l)}}return s().catch(()=>{}),t}const IE=wE(Xn,Lh);function LE(e){return IE(e)}async function jE(e){try{return[1,await e]}catch(t){return[0,t]}}function NE(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:127^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function Pl(e,t){e.marked.add(t)}function ME(e,t){const a=e.refs.size;return e.refs.set(t,a),a}function ic(e,t){const a=e.refs.get(t);return a!=null?(Pl(e,a),{type:1,value:$A(a)}):{type:0,value:ME(e,t)}}function jh(e,t){const a=ic(e,t);return a.type===1?a:fb(t)?{type:2,value:FA(a.value,t)}:a}function ua(e,t){const a=jh(e,t);if(a.type!==0)return a.value;if(t in cb)return GA(a.value,t);throw new ac(t)}function sc(e,t){const a=ic(e,OE[t]);return a.type===1?a.value:Ae(26,a.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function DE(e){const t=ic(e,TE);return t.type===1?t.value:Ae(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,ua(e,Wn),void 0,void 0,void 0)}function PE(e){const t=ic(e,CE);return t.type===1?t.value:Ae(29,t.value,void 0,void 0,void 0,void 0,void 0,[sc(e,1),ua(e,Xn)],void 0,void 0,void 0,void 0)}function UE(e,t,a,s){return Ae(a?11:10,e,void 0,void 0,void 0,s,void 0,void 0,void 0,void 0,gb(t),void 0)}function zE(e,t,a,s){return Ae(8,t,void 0,void 0,void 0,void 0,{k:a,v:s},void 0,sc(e,0),void 0,void 0,void 0)}function BE(e,t,a){const s=new Uint8Array(a);let l="";for(let c=0,u=s.length;c<u;c++)l+=String.fromCharCode(s[c]);return Ae(19,t,Dr(btoa(l)),void 0,void 0,void 0,void 0,void 0,sc(e,5),void 0,void 0,void 0)}function HE(e,t){return{base:NE(e,t),child:void 0}}var $E=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return st(this._p,this.depth,e)}};async function qE(e,t,a){const s=[];for(let l=0,c=a.length;l<c;l++)l in a?s[l]=await st(e,t,a[l]):s[l]=0;return s}async function VE(e,t,a,s){return YA(a,s,await qE(e,t,s))}async function Nh(e,t,a){const s=Object.entries(a),l=[],c=[];for(let u=0,h=s.length;u<h;u++)l.push(Dr(s[u][0])),c.push(await st(e,t,s[u][1]));return Wn in a&&(l.push(ua(e.base,Wn)),c.push(nE(DE(e.base),await st(e,t,AE(a))))),Xn in a&&(l.push(ua(e.base,Xn)),c.push(rE(PE(e.base),await st(e,t,xE(a))))),wi 
12in a&&(l.push(ua(e.base,wi)),c.push(mb(a[wi]))),bi in a&&(l.push(ua(e.base,bi)),c.push(a[bi]?ub:db)),{k:l,v:c}}async function Bd(e,t,a,s,l){return UE(a,s,l,await Nh(e,t,s))}async function GE(e,t,a,s){return JA(a,await st(e,t,s.valueOf()))}async function FE(e,t,a,s){return QA(a,s,await st(e,t,s.buffer))}async function KE(e,t,a,s){return XA(a,s,await st(e,t,s.buffer))}async function YE(e,t,a,s){return WA(a,s,await st(e,t,s.buffer))}async function by(e,t,a,s){const l=pb(s,e.base.features);return ZA(a,s,l?await Nh(e,t,l):void 0)}async function JE(e,t,a,s){const l=pb(s,e.base.features);return eE(a,s,l?await Nh(e,t,l):void 0)}async function QE(e,t,a,s){const l=[],c=[];for(const[u,h]of s.entries())l.push(await st(e,t,u)),c.push(await st(e,t,h));return zE(e.base,a,l,c)}async function XE(e,t,a,s){const l=[];for(const c of s.keys())l.push(await st(e,t,c));return tE(a,l)}async function wb(e,t,a,s){const l=e.base.plugins;if(l)for(let c=0,u=l.length;c<u;c++){const h=l[c];if(h.parse.async&&h.test(s))return KA(a,h.tag,await h.parse.async(s,new $E(e,t),{id:a}))}}async function WE(e,t,a,s){const[l,c]=await jE(s);return Ae(12,a,l,void 0,void 0,void 0,void 0,void 0,await st(e,t,c),void 0,void 0,void 0)}function ZE(e,t,a,s,l){const c=[],u=a.on({next:h=>{Pl(this.base,t),st(this,e,h).then(p=>{c.push(iE(t,p))},p=>{l(p),u()})},throw:h=>{Pl(this.base,t),st(this,e,h).then(p=>{c.push(sE(t,p)),s(c),u()},p=>{l(p),u()})},return:h=>{Pl(this.base,t),st(this,e,h).then(p=>{c.push(oE(t,p)),s(c),u()},p=>{l(p),u()})}})}async function eR(e,t,a,s){return aE(a,sc(e.base,4),await new Promise(ZE.bind(e,t,a,s)))}async function tR(e,t,a,s){const l=[];for(let c=0,u=s.v.length;c<u;c++)l[c]=await st(e,t,s.v[c]);return lE(a,l,s.t,s.d)}async function nR(e,t,a,s){if(Array.isArray(s))return VE(e,t,a,s);if(kE(s))return eR(e,t,a,s);if(SE(s))return tR(e,t,a,s);let l=s.constructor;if(l!==void 0&&typeof l!="function"){const h=Object.getPrototypeOf(s);l=h===null?void 0:h.constructor}if(l===yE)return st(e,t,s.replacement);const c=await wb(e,t,a,s);if(c)return c;switch(l){case Object:return Bd(e,t,a,s,!1);case void 0:return Bd(e,t,a,s,!0);case Date:return qA(a,s);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return by(e,t,a,s);case Number:case Boolean:case String:case BigInt:return GE(e,t,a,s);case ArrayBuffer:return BE(e.base,a,s);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return FE(e,t,a,s);case DataView:return YE(e,t,a,s);case Map:return QE(e,t,a,s);case Set:return XE(e,t,a,s)}if(l===Promise||s instanceof Promise)return WE(e,t,a,s);const u=e.base.features;if(u&32&&l===RegExp)return VA(a,s);if(u&16)switch(l){case BigInt64Array:case BigUint64Array:return KE(e,t,a,s)}if(u&1&&typeof AggregateError<"u"&&(l===AggregateError||s instanceof AggregateError))return JE(e,t,a,s);if(u&64&&typeof Temporal<"u")switch(l){case Temporal.Instant:return Cr(a,0,s);case Temporal.Duration:return Cr(a,1,s);case Temporal.PlainDate:return Cr(a,2,s);case Temporal.PlainDateTime:return Cr(a,3,s);case Temporal.PlainMonthDay:return Cr(a,4,s);case Temporal.PlainTime:return Cr(a,5,s);case Temporal.PlainYearMonth:return Cr(a,6,s);case Temporal.ZonedDateTime:return Cr(a,7,s)}if(s instanceof Error)return by(e,t,a,s);if(Wn in s||Xn in s)return Bd(e,t,a,s,!!l);throw new ac(s)}async function rR(e,t,a){const s=jh(e.base,a);if(s.type!==0)return s.value;const l=await wb(e,t,s.value,a);if(l)return l;throw new ac(a)}async function st(e,t,a){if(t>=e.base.depthLimit)throw new vb(e.base.depthLimit);switch(typeof a){case"boolean":return a?ub:db;case"undefined":return OA;case"string":return mb(a);case"number":return BA(a);case"bigint":return HA(a);case"object":if(a){const s=jh(e.base,a);return s.type===0?await nR(e,t+1,s.value,a):s.value}return kA;case"symbol":return ua(e.base,a);case"function":return rR(e,t,a);default:throw new ac(a)}}async function aR(e,t){try{return await st(e,0,t)}catch(a){throw a instanceof vy?a:new vy(a)}}function _b(e,t){for(let a=0,s=t.length;a<s;a++){const l=t[a];e.has(l)||(e.add(l),l.extends&&_b(e,l.extends))}}function Sb(e){if(e){const t=new Set;return _b(t,e),[...t]}}function iR(e){switch(e){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new mE(e)}}function sR(e){switch(e){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function oR(e){switch(e){case Xn:case bi:case wi:case Wn:return!0;default:return!1}}const lR=1e6,cR=1e4,uR=2e4;function Ab(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}const dR=1e3;function hR(e,t){var a;const s=t.refs||new Map;return"types"in s||Object.assign(s,{types:new Map}),{mode:e,plugins:t.plugins,refs:s,features:(a=t.features)!==null&&a!==void 0?a:127^(t.disabledFeatures||0),depthLimit:t.depthLimit||dR}}
12function fR(e){return{mode:2,base:hR(2,e),child:void 0}}var pR=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return De(this._p,this.depth,e)}};function Eb(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new En({t:4,i:t});if(e.refs.has(t))throw new Error("Conflicted ref id: "+t)}function gR(e,t,a){return Eb(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,a),a}function mR(e,t,a){return Eb(e.base,t),e.base.refs.set(t,a),a}function at(e,t,a){return e.mode===1?gR(e,t,a):mR(e,t,a)}function ih(e,t,a){if(Object.hasOwn(t,a))return t[a];throw new En(e)}function yR(e,t){return at(e,t.i,UA(Pr(t.s)))}function vR(e,t,a){const s=a.a,l=s.length,c=at(e,a.i,new Array(l));for(let u=0,h;u<l;u++)h=s[u],h&&(c[u]=De(e,t,h));return Ab(c,a.o),c}function wy(e,t,a){sR(t)?e[t]=a:Object.defineProperty(e,t,{value:a,configurable:!0,enumerable:!0,writable:!0})}function bR(e,t,a,s,l){if(typeof s=="string")wy(a,Pr(s),De(e,t,l));else{const c=De(e,t,s);switch(typeof c){case"string":wy(a,c,De(e,t,l));break;case"symbol":oR(c)&&(a[c]=De(e,t,l));break;default:throw new En(s)}}}function Rb(e,t,a){e.base.refs.types.set(t,a)}function Xs(e,t,a,s){if(e.base.refs.types.get(a)!==s)throw new En(t)}function Tb(e,t,a,s){const l=a.k;if(l.length>0)for(let c=0,u=a.v,h=l.length;c<h;c++)bR(e,t,s,l[c],u[c]);return s}function wR(e,t,a){const s=at(e,a.i,a.t===10?{}:Object.create(null));return Tb(e,t,a.p,s),Ab(s,a.o),s}function _R(e,t){return at(e,t.i,new Date(t.s))}function SR(e,t){if(!(e.base.features&64))throw new Ih(t);let a;switch(t.c){case 0:a=Temporal.Instant.from(t.s);break;case 1:a=Temporal.Duration.from(t.s);break;case 2:a=Temporal.PlainDate.from(t.s);break;case 3:a=Temporal.PlainDateTime.from(t.s);break;case 4:a=Temporal.PlainMonthDay.from(t.s);break;case 5:a=Temporal.PlainTime.from(t.s);break;case 6:a=Temporal.PlainYearMonth.from(t.s);break;case 7:a=Temporal.ZonedDateTime.from(t.s);break;default:throw new En(t)}return at(e,t.i,a)}function AR(e,t){if(e.base.features&32){const a=Pr(t.c);if(a.length>uR)throw new En(t);return at(e,t.i,new RegExp(a,t.m))}throw new Ih(t)}function ER(e,t,a){const s=at(e,a.i,new Set);for(let l=0,c=a.a,u=c.length;l<u;l++)s.add(De(e,t,c[l]));return s}function RR(e,t,a){const s=at(e,a.i,new Map);for(let l=0,c=a.e.k,u=a.e.v,h=c.length;l<h;l++)s.set(De(e,t,c[l]),De(e,t,u[l]));return s}function TR(e,t){if(t.s.length>lR)throw new En(t);return at(e,t.i,_E(Pr(t.s)))}function CR(e,t,a){var s;const l=iR(a.c),c=De(e,t,a.f),u=(s=a.b)!==null&&s!==void 0?s:0;if(u<0||u>c.byteLength)throw new En(a);return at(e,a.i,new l(c,u,a.l))}function OR(e,t,a){var s;const l=De(e,t,a.f),c=(s=a.b)!==null&&s!==void 0?s:0;if(c<0||c>l.byteLength)throw new En(a);return at(e,a.i,new DataView(l,c,a.l))}function Cb(e,t,a,s){if(a.p){const l=Tb(e,t,a.p,{});Object.defineProperties(s,Object.getOwnPropertyDescriptors(l))}return s}function kR(e,t,a){return Cb(e,t,a,at(e,a.i,new AggregateError([],Pr(a.m))))}function xR(e,t,a){const s=ih(a,CA,a.s);return Cb(e,t,a,at(e,a.i,new s(Pr(a.m))))}function IR(e,t,a){const s=Lh(),l=at(e,a.i,s.p),c=De(e,t,a.f);return a.s?s.s(c):s.f(c),l}function LR(e,t,a){return at(e,a.i,Object(De(e,t,a.f)))}function jR(e,t,a){const s=e.base.plugins;if(s){const l=Pr(a.c);for(let c=0,u=s.length;c<u;c++){const h=s[c];if(h.tag===l)return at(e,a.i,h.deserialize(a.s,new pR(e,t),{id:a.i}))}}throw new fE(a.c)}function NR(e,t){const a=at(e,t.i,at(e,t.s,Lh()).p);return Rb(e,t.s,22),a}function MR(e,t,a){const s=e.base.refs.get(a.i);if(s){Xs(e,a,a.i,22),s.s(De(e,t,a.a[1]));return}throw new Qs("Promise")}function DR(e,t,a){const s=e.base.refs.get(a.i);if(s){Xs(e,a,a.i,22),s.f(De(e,t,a.a[1]));return}throw new Qs("Promise")}function PR(e,t,a){return De(e,t,a.a[0]),RE(De(e,t,a.a[1]))}function UR(e,t,a){return De(e,t,a.a[0]),LE(De(e,t,a.a[1]))}function zR(e,t,a){const s=at(e,a.i,ma());Rb(e,a.i,31);const l=a.a,c=l.length;if(c)for(let u=0;u<c;u++)De(e,t,l[u]);return s}function BR(e,t,a){const s=e.base.refs.get(a.i);if(s){Xs(e,a,a.i,31),s.next(De(e,t,a.f));return}throw new Qs("Stream")}function HR(e,t,a){const s=e.base.refs.get(a.i);if(s){Xs(e,a,a.i,31),s.throw(De(e,t,a.f));return}throw new Qs("Stream")}function $R(e,t,a){const s=e.base.refs.get(a.i);if(s){Xs(e,a,a.i,31),s.return(De(e,t,a.f));return}throw new Qs("Stream")}function qR(e,t,a){De(e,t,a.f)}function VR(e,t,a){De(e,t,a.a[1])}function GR(e,t,a){const s=at(e,a.i,bb([],a.s,a.l));for(let l=0,c=a.a.length;l<c;l++)s.v[l]=De(e,t,a.a[l]);return s}function De(e,t,a){if(t>e.base.depthLimit)throw new vb(e.base.depthLimit);switch(t+=1,a.t){case 2:return ih(a,RA,a.s);case 0:return Number(a.s);case 1:return Pr(String(a.s));case 3:if(String(a.s).length>cR)throw new En(a);return BigInt(a.s);case 4:return e.base.refs.get(a.i);case 18:return yR(e,a);case 9:return vR(e,t,a);case 10:case 11:return wR(e,t,a);case 5:return _R(e,a);case 6:return AR(e,a);case 7:return ER(e,t,a);case 8:return RR(e,t,a);case 19:return TR(e,a);case 16:case 15:return CR(e,t,a);case 20:return OR(e,t,a);case 14:return kR(e,t,a);case 13:return xR(e,t,a);case 12:return IR(e,t,a);case 17:return ih(a,EA,a.s);case 21:return LR(e,t,a);case 25:return jR(e,t,a);case 22:return NR(e,a);case 23:return MR(e,t,a);case 24:return DR(e,t,a);case 28:return PR(e,t,a);case 30:return UR(e,t,a);case 31:return zR(e,t,a);case 32:return BR(e,t,a);case 33:return HR(e,t,a);case 34:return $R(e,t,a);case 27:return qR(e,t,a);case 29:return VR(e,t,a);case 35:return GR(e,t,a);case 36:return SR(e,a);default:throw new Ih(a)}}function FR(e,t){try{return De(e,0,t)}catch(a){throw new hE(a)}}function _y(e,t){return FR(fR({plugins:Sb(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function KR(e,t={}){const a=HE(1,{plugins:Sb(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await aR(a,e),f:a.base.features,m:Array.from(a.base.marked)}}function YR(e){return{tag:"$TSR/t/"+e.key,test:e.test,parse:{sync(t,a,s){return{v:a.parse(e.toSerializable(t))}},async async(t,a,s){return{v:await a.parse(e.toSerializable(t))}},stream(t,a,s){return{v:a.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,a,s){return e.fromSerializable(a.deserialize(t.v))}}}var JR=class{constructor(e,t){this.stream=e,this.hint=t?.hint??"binary"}};const Gl=globalThis.Buffer,Ob=!!Gl&&typeof Gl.from=="function";function kb(e){if(e.length===0)return"";if(Ob)return Gl.from(e).toString("base64");const t=32768,a=[];for(let s=0;s<e.length;s+=t){const l=e.subarray(s,s+t);a.push(String.fromCharCode.apply(null,l))}return btoa(a.join(""))}function xb(e){if(e.length===0)return new Uint8Array(0);if(Ob){const s=Gl.from(e,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}const t=atob(e),a=new Uint8Array(t.length);for(let s=0;s<t.length;s++)a[s]=t.charCodeAt(s);return a}const As=Object.create(null),Es=Object.create(null),QR=e=>new ReadableStream({start(t){e.on({next(a){try{t.enqueue(xb(a))}catch{}},throw(a){t.error(a)},return(){try{t.close()}catch{}}})}}),XR=new TextEncoder,WR=e=>
12new ReadableStream({start(t){e.on({next(a){try{typeof a=="string"?t.enqueue(XR.encode(a)):t.enqueue(xb(a.$b64))}catch{}},throw(a){t.error(a)},return(){try{t.close()}catch{}}})}}),ZR="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",eT="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function Sy(e){const t=ma(),a=e.getReader();return(async()=>{try{for(;;){const{done:s,value:l}=await a.read();if(s){t.return(void 0);break}t.next(kb(l))}}catch(s){t.throw(s)}finally{a.releaseLock()}})(),t}function Ay(e){const t=ma(),a=e.getReader(),s=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:l,value:c}=await a.read();if(l){try{const u=s.decode();u.length>0&&t.next(u)}catch{}t.return(void 0);break}try{const u=s.decode(c,{stream:!0});u.length>0&&t.next(u)}catch{t.next({$b64:kb(c)})}}}catch(l){t.throw(l)}finally{a.releaseLock()}})(),t}const tT={tag:"tss/RawStream",extends:[{tag:"tss/RawStreamFactory",test(e){return e===As},parse:{sync(e,t,a){return{}},async async(e,t,a){return{}},stream(e,t,a){return{}}},serialize(e,t,a){return ZR},deserialize(e,t,a){return As}},{tag:"tss/RawStreamFactoryText",test(e){return e===Es},parse:{sync(e,t,a){return{}},async async(e,t,a){return{}},stream(e,t,a){return{}}},serialize(e,t,a){return eT},deserialize(e,t,a){return Es}}],test(e){return e instanceof JR},parse:{sync(e,t,a){const s=e.hint==="text"?Es:As;return{hint:t.parse(e.hint),factory:t.parse(s),stream:t.parse(ma())}},async async(e,t,a){const s=e.hint==="text"?Es:As,l=e.hint==="text"?Ay(e.stream):Sy(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(s),stream:await t.parse(l)}},stream(e,t,a){const s=e.hint==="text"?Es:As,l=e.hint==="text"?Ay(e.stream):Sy(e.stream);return{hint:t.parse(e.hint),factory:t.parse(s),stream:t.parse(l)}}},serialize(e,t,a){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t,a){const s=t.deserialize(e.stream);return t.deserialize(e.hint)==="text"?WR(s):QR(s)}};function nT(e){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(t,a,s){return e(typeof a?.deserialize=="function"?a.deserialize(t.streamId):t.streamId)}}}const rT={tag:"$TSR/Error",test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return"new Error("+t.serialize(e.message)+")"},deserialize(e,t){return new Error(t.deserialize(e.message))}},kr={},Ib=e=>new ReadableStream({start(t){e.on({next(a){try{t.enqueue(a)}catch{}},throw(a){t.error(a)},return(){try{t.close()}catch{}}})}}),aT={tag:"seroval-plugins/web/ReadableStreamFactory",test(e){return e===kr},parse:{sync(){return kr},async async(){return await Promise.resolve(kr)},stream(){return kr}},serialize(){return Ib.toString()},deserialize(){return kr}};
12async function Lb(e,t){try{const a=await t.read();a.done?(e.return(a.value),t.releaseLock()):(e.next(a.value),await Lb(e,t))}catch(a){e.throw(a)}}function iT(e){e.cancel().catch(()=>{}),e.releaseLock()}function Ey(e){const t=ma(),a=e.getReader(),s=iT.bind(null,a);return Lb(t,a).catch(s),[t,s]}const sT={tag:"seroval/plugins/web/ReadableStream",extends:[aT],test(e){return typeof ReadableStream>"u"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(kr),stream:t.parse(ma())}},async async(e,t){return{factory:await t.parse(kr),stream:await t.parse(Ey(e)[0])}},stream(e,t){const[a,s]=Ey(e);return t.addCleanup(s),{factory:t.parse(kr),stream:t.parse(a)}}},serialize(e,t){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t){const a=t.deserialize(e.stream);return Ib(a)}},oT=[rT,tT,sT];function lT(){return[...Mv()?.serializationAdapters?.map(YR)??[],...oT]}var Ry=new TextDecoder,cT=new Uint8Array(0),Ty=16*1024*1024,Cy=32*1024*1024,Oy=1024,ky=1e5;function uT(e){const t=new Map,a=new Map,s=new Set;let l=!1,c=null,u=0,h;const p=new ReadableStream({start(m){h=m},cancel(){l=!0;try{c?.cancel()}catch{}t.forEach(m=>{try{m.error(new Error("Framed response cancelled"))}catch{}}),t.clear(),a.clear(),s.clear()}});function g(m){const b=a.get(m);if(b)return b;if(s.has(m))return new ReadableStream({start(S){S.close()}});if(a.size>=Oy)throw new Error(`Too many raw streams in framed response (max ${Oy})`);const w=new ReadableStream({start(S){t.set(m,S)},cancel(){s.add(m),t.delete(m),a.delete(m)}});return a.set(m,w),w}function y(m){return g(m),t.get(m)}return(async()=>{const m=e.getReader();c=m;const b=[];let w=0;function S(){if(w<9)return null;const A=b[0];if(A.length>=9)return{type:A[0],streamId:(A[1]<<24|A[2]<<16|A[3]<<8|A[4])>>>0,length:(A[5]<<24|A[6]<<16|A[7]<<8|A[8])>>>0};const E=new Uint8Array(9);let C=0,x=9;for(let M=0;M<b.length&&x>0;M++){const $=b[M],G=Math.min($.length,x);E.set($.subarray(0,G),C),C+=G,x-=G}return{type:E[0],streamId:(E[1]<<24|E[2]<<16|E[3]<<8|E[4])>>>0,length:(E[5]<<24|E[6]<<16|E[7]<<8|E[8])>>>0}}function R(A){if(A===0)return cT;const E=b[0];if(E&&E.length>=A){const $=E.subarray(0,A);return E.length===A?b.shift():b[0]=E.subarray(A),w-=A,$}const C=new Uint8Array(A);let x=0,M=A;for(;M>0&&b.length>0;){const $=b[0];if(!$)break;const G=Math.min($.length,M);C.set($.subarray(0,G),x),x+=G,M-=G,G===$.length?b.shift():b[0]=$.subarray(G)}return w-=A,C}try{for(;;){const{done:A,value:E}=await m.read();if(l||A)break;if(E){if(w+E.length>Cy)throw new Error(`Framed response buffer exceeded ${Cy} bytes`);for(b.push(E),w+=E.length;;){const C=S();if(!C)break;const{type:x,streamId:M,length:$}=C;if(x!==Fn.JSON&&x!==Fn.CHUNK&&x!==Fn.END&&x!==Fn.ERROR)throw new Error(`Unknown frame type: ${x}`);if(x===Fn.JSON){if(M!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(M===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if($>Ty)throw new Error(`Frame payload too large: ${$} bytes (max ${Ty})`);const G=9+$;if(w<G)break;if(++u>ky)throw new Error(`Too many frames in framed response (max ${ky})`);R(9);const D=R($);switch(x){case Fn.JSON:try{h.enqueue(Ry.decode(D))}catch{}break;case Fn.CHUNK:{const F=y(M);F&&F.enqueue(D);break}case Fn.END:{const F=y(M);if(s.add(M),F){try{F.close()}catch{}t.delete(M)}break}case Fn.ERROR:{const F=y(M);if(s.add(M),F){const Y=Ry.decode(D);F.error(new Error(Y)),t.delete(M)}break}}}}}if(w!==0)throw new Error("Incomplete frame at end of framed response");try{h.close()}catch{}t.forEach(A=>{try{A.close()}catch{}}),t.clear()}catch(A){try{h.error(A)}catch{}t.forEach(E=>{try{E.error(A)}catch{}}),t.clear()}finally{try{m.releaseLock()}catch{}c=null}})(),{getOrCreateStream:g,jsonChunks:p}}var Us=null;async function sh(e){e.length>0&&await Promise.allSettled(e)}var dT=Object.prototype.hasOwnProperty;function jb(e){for(const t in e)if(dT.call(e,t))return!0;return!1}async function hT(e,t,a){Us||(Us=lT());const s=t[0],l=s.fetch??a,c=s.data instanceof FormData?"formData":"payload",u=s.headers?new Headers(s.headers):new Headers;if(u.set("x-tsr-serverFn","true"),c==="payload"&&u.set("accept",`${uS}, application/x-ndjson, application/json`),s.method==="GET"){if(c==="formData")throw new Error("FormData is not supported with GET requests");const p=await Nb(s);if(p!==void 0){const g=Fv({payload:p});e.includes("?")?e+=`&${g}`:e+=`?${g}`}}let h;
12if(s.method==="POST"){const p=await fT(s);p?.contentType&&u.set("content-type",p.contentType),h=p?.body}return await pT(async()=>l(e,{method:s.method,headers:u,signal:s.signal,body:h}))}async function Nb(e){let t=!1;const a={};if(e.data!==void 0&&(t=!0,a.data=e.data),e.context&&jb(e.context)&&(t=!0,a.context=e.context),t)return Mb(a)}async function Mb(e){return JSON.stringify(await Promise.resolve(KR(e,{plugins:Us})))}async function fT(e){if(e.data instanceof FormData){let a;return e.context&&jb(e.context)&&(a=await Mb(e.context)),a!==void 0&&e.data.set(cS,a),{body:e.data}}const t=await Nb(e);if(t)return{body:t,contentType:"application/json"}}async function pT(e){let t;try{t=await e()}catch(s){if(s instanceof Response)t=s;else throw console.log(s),s}if(t.headers.get("x-tss-raw")==="true")return t;const a=t.headers.get("content-type");if(a||Mt(),t.headers.get("x-tss-serialized")){let s;if(a.includes("application/x-tss-framed")){if(fS(a),!t.body)throw new Error("No response body for framed response");const{getOrCreateStream:l,jsonChunks:c}=uT(t.body),u=[nT(l),...Us||[]],h=new Map;s=await gT({jsonStream:c,onMessage:p=>_y(p,{refs:h,plugins:u}),onError(p,g){console.error(p,g)}})}else if(a.includes("application/json")){const l=await t.json(),c=[];s=_y(l,{plugins:Us}),await sh(c)}if(s||Mt(),s instanceof Error)throw s;return s}if(a.includes("application/json")){const s=await t.json(),l=QS(s);if(l)throw l;if(dt(s))throw s;return s}if(!t.ok)throw new Error(await t.text());return t}async function gT({jsonStream:e,onMessage:t,onError:a}){const s=e.getReader(),{value:l,done:c}=await s.read();if(c||!l)throw new Error("Stream ended before first object");const u=JSON.parse(l);let h=!1;const p=(async()=>{try{for(;;){const{value:m,done:b}=await s.read();if(b)break;
12if(m)try{const w=[];try{t(JSON.parse(m))}finally{}await sh(w)}catch(w){a?.(`Invalid JSON: ${m}`,w)}}}catch(m){h||a?.("Stream processing error:",m)}})();let g;const y=[];try{g=t(u)}catch(m){throw h=!0,s.cancel().catch(()=>{}),m}return await sh(y),Promise.resolve(g).catch(()=>{h=!0,s.cancel().catch(()=>{})}),p.finally(()=>{try{s.releaseLock()}catch{}}),g}function mT(e){const t="/_serverFn/"+e;return Object.assign((...l)=>{const c=Mv()?.serverFns?.fetch;return hT(t,l,c??fetch)},{url:t,serverFnMeta:{id:e},[th]:!0})}var yT={key:"$TSS/serverfn",test:e=>typeof e!="function"||!(th in e)?!1:!!e[th],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>mT(e)};function xy(e){return e.replaceAll("\0","/").replaceAll("�","/")}function vT(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function bT(e){window.$_TSR||Mt();const t=e.options.serializationAdapters;if(t?.length){const A=new Map;t.forEach(E=>{A.set(E.key,E.fromSerializable)}),window.$_TSR.t=A,window.$_TSR.buffer.forEach(E=>E())}window.$_TSR.initialized=!0,window.$_TSR.router||Mt();const a=window.$_TSR.router;a.matches.forEach(A=>{A.i=xy(A.i)}),a.lastMatchId&&(a.lastMatchId=xy(a.lastMatchId));const{manifest:s,dehydratedData:l,lastMatchId:c}=a;e.ssr={manifest:s};const u=document.querySelector('meta[property="csp-nonce"]')?.content;e.options.ssr={nonce:u},await e.options.hydrate?.(l);const h=e.matchRoutes(e.stores.location.get()),p=Promise.all(h.map(A=>e.loadRouteChunk(e.looseRoutesById[A.routeId])));function g(A){const E=e.looseRoutesById[A.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(E){const C=ga();A._nonReactive.minPendingPromise=C,A._forcePending=!0,setTimeout(()=>{C.resolve(),e.updateMatch(A.id,x=>(x._nonReactive.minPendingPromise=void 0,{...x,_forcePending:void 0}))},E)}}function y(A){const E=e.looseRoutesById[A.routeId];E&&(E.options.ssr=A.ssr)}let m;h.forEach(A=>{const E=a.matches.find(C=>C.i===A.id);if(!E){A._nonReactive.dehydrated=!1,A.ssr=!1,y(A);return}vT(A,E),y(A),A._nonReactive.dehydrated=A.ssr!==!1,(A.ssr==="data-only"||A.ssr===!1)&&m===void 0&&(m=A.index,g(A))}),e.stores.setMatches(h);const b=e.stores.matches.get(),w=e.stores.location.get();await Promise.all(b.map(async A=>{try{const E=e.looseRoutesById[A.routeId],C=b[A.index-1]?.context??e.options.context;if(E.options.context){const G={deps:A.loaderDeps,params:A.params,context:C??{},location:w,navigate:D=>e.navigate({...D,_fromLocation:w}),buildLocation:e.buildLocation,cause:A.cause,abortController:A.abortController,preload:!1,matches:h,routeId:E.id};A.__routeContext=E.options.context(G)??void 0}A.context={...C,...A.__routeContext,...A.__beforeLoadContext};const x={ssr:e.options.ssr,matches:b,match:A,params:A.params,loaderData:A.loaderData},M=await E.options.head?.(x),$=await E.options.scripts?.(x);A.meta=M?.meta,A.links=M?.links,A.headScripts=M?.scripts,A.styles=M?.styles,A.scripts=$}catch(E){if(dt(E))A.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${A.routeId}`,E);else throw A.error=E,console.error(`Error during hydration for route ${A.routeId}:`,E),E}}));const S=h[h.length-1].id!==c;if(!h.some(A=>A.ssr===!1)&&!S)return h.forEach(A=>{A._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),p;const R=Promise.resolve().then(()=>e.load()).catch(A=>{console.error("Error during router hydration:",A)});if(S){const A=h[1];A||Mt(),g(A),A._displayPending=!0,A._nonReactive.displayPendingPromise=R,R.then(()=>{e.batch(()=>{e.stores.status.get()==="pending"&&(e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(A.id,E=>({...E,_displayPending:void 0,displayPendingPromise:void 0}))})})}return p}var Fl=X.use,Cs=typeof window<"u"?X.useLayoutEffect:X.useEffect;function Hd(e){const t=X.useRef({value:e,prev:null}),a=t.current.value;return e!==a&&(t.current={value:e,prev:a}),t.current.prev}function wT(e,t,a={},s={}){X.useEffect(()=>{if(!e.current||s.disabled||typeof IntersectionObserver!="function")return;const l=new IntersectionObserver(([c])=>{t(c)},a);return l.observe(e.current),()=>{l.disconnect()}},[t,a,s.disabled,e])}function _T(e){const t=X.useRef(null);return X.useImperativeHandle(e,()=>t.current,[]),t}function ST({promise:e}){if(Fl)return Fl(e);const t=yA(e);if(t[Sn].status==="pending")throw t;if(t[Sn].status==="error")throw t[Sn].error;return t[Sn].data}function AT(e){const t=U.jsx(ET,{...e});
12return e.fallback?U.jsx(X.Suspense,{fallback:e.fallback,children:t}):t}function ET(e){const t=ST(e);return e.children(t)}function Mh(e){const t=e.errorComponent??Dh;return U.jsx(RT,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:a,reset:s})=>a?X.createElement(t,{error:a,reset:s}):e.children})}var RT=class extends X.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const a=e.getResetKey();return t.error&&t.resetKey!==a?{resetKey:a,error:null}:{resetKey:a}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Dh({error:e}){const[t,a]=X.useState(!1);return U.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[U.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),U.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>a(s=>!s),children:t?"Hide Error":"Show Error"})]}),U.jsx("div",{style:{height:".25rem"}}),t?U.jsx("div",{children:U.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?U.jsx("code",{children:e.message}):null})}):null]})}function TT({children:e,fallback:t=null}){return Ph()?U.jsx(js.Fragment,{children:e}):U.jsx(js.Fragment,{children:t})}function Ph(){return js.useSyncExternalStore(CT,()=>!0,()=>!1)}function CT(){return()=>{}}var Db=X.createContext(null);function wt(e){return X.useContext(Db)}var oc=X.createContext(void 0),OT=X.createContext(void 0),Ve=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(Ve||{});function kT({update:e,notify:t,unwatched:a}){return{link:s,unlink:l,propagate:c,checkDirty:u,shallowPropagate:h};function s(g,y,m){const b=y.depsTail;if(b!==void 0&&b.dep===g)return;const w=b!==void 0?b.nextDep:y.deps;if(w!==void 0&&w.dep===g){w.version=m,y.depsTail=w;return}const S=g.subsTail;if(S!==void 0&&S.version===m&&S.sub===y)return;const R=y.depsTail=g.subsTail={version:m,dep:g,sub:y,prevDep:b,nextDep:w,prevSub:S,nextSub:void 0};w!==void 0&&(w.prevDep=R),b!==void 0?b.nextDep=R:y.deps=R,S!==void 0?S.nextSub=R:g.subs=R}function l(g,y=g.sub){const m=g.dep,b=g.prevDep,w=g.nextDep,S=g.nextSub,R=g.prevSub;return w!==void 0?w.prevDep=b:y.depsTail=b,b!==void 0?b.nextDep=w:y.deps=w,S!==void 0?S.prevSub=R:m.subsTail=R,R!==void 0?R.nextSub=S:(m.subs=S)===void 0&&a(m),w}function c(g){let y=g.nextSub,m;e:do{const b=g.sub;let w=b.flags;if(w&60?w&12?w&4?!(w&48)&&p(g,b)?(b.flags=w|40,w&=1):w=0:b.flags=w&-9|32:w=0:b.flags=w|32,w&2&&t(b),w&1){const S=b.subs;if(S!==void 0){const R=(g=S).nextSub;R!==void 0&&(m={value:y,prev:m},y=R);continue}}if((g=y)!==void 0){y=g.nextSub;continue}for(;m!==void 0;)if(g=m.value,m=m.prev,g!==void 0){y=g.nextSub;continue e}break}while(!0)}function u(g,y){let m,b=0,w=!1;e:do{const S=g.dep,R=S.flags;if(y.flags&16)w=!0;else if((R&17)===17){if(e(S)){const A=S.subs;A.nextSub!==void 0&&h(A),w=!0}}else if((R&33)===33){(g.nextSub!==void 0||g.prevSub!==void 0)&&(m={value:g,prev:m}),g=S.deps,y=S,++b;continue}if(!w){const A=g.nextDep;if(A!==void 0){g=A;continue}}for(;b--;){const A=y.subs,E=A.nextSub!==void 0;if(E?(g=m.value,m=m.prev):g=A,w){if(e(y)){E&&h(A),y=g.sub;continue}w=!1}else y.flags&=-33;y=g.sub;const C=g.nextDep;if(C!==void 0){g=C;continue e}}return w}while(!0)}function h(g){do{const y=g.sub,m=y.flags;(m&48)===32&&(y.flags=m|16,(m&6)===2&&t(y))}while((g=g.nextSub)!==void 0)}function p(g,y){let m=y.depsTail;for(;m!==void 0;){if(m===g)return!0;m=m.prevDep}return!1}}function xT(e,t,a){const s=typeof e=="object",l=s?e:void 0;return{next:(s?e.next:e)?.bind(l),error:(s?e.error:t)?.bind(l),complete:(s?e.complete:a)?.bind(l)}}const oh=[];let Ul=0;const{link:Iy,unlink:IT,propagate:LT,checkDirty:Pb,shallowPropagate:Ly}=kT({update(e){return e._update()},notify(e){oh[lh++]=e,e.flags&=~Ve.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Ve.Mutable|Ve.Dirty,Kl(e))}});let Al=0,lh=0,wn,ch=0;function Ub(e){try{++ch,e()}finally{--ch||zb()}}function Kl(e){const t=e.depsTail;let a=t!==void 0?t.nextDep:e.deps;for(;a!==void 0;)a=IT(a,e)}function zb(){if(!(ch>0)){for(;Al<lh;){const e=oh[Al];oh[Al++]=void 0,e.notify()}Al=0,lh=0}}function jy(e,t){const a=typeof e=="function",s=e,l={_snapshot:a?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:a?Ve.None:Ve.Mutable,get(){return wn!==void 0&&Iy(l,wn,Ul),l._snapshot},subscribe(c){const u=xT(c),h={current:!1},p=jT(()=>{l.get(),h.current?u.next?.(l._snapshot):h.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(c){const u=wn,h=t?.compare??Object.is;if(a)wn=l,++Ul,l.depsTail=void 0;else if(c===void 0)return!1;a&&(l.flags=Ve.Mutable|Ve.RecursedCheck);try{const p=l._snapshot,g=typeof c=="function"?c(p):c===void 0&&a?s(p):c;return p===void 0||!h(p,g)?(l._snapshot=g,!0):!1}finally{wn=u,a&&(l.flags&=~Ve.RecursedCheck),Kl(l)}}};return a?(l.flags=Ve.Mutable|Ve.Dirty,l.get=function(){const c=l.flags;if(c&Ve.Dirty||c&Ve.Pending&&Pb(l.deps,l)){if(l._update()){const u=l.subs;u!==void 0&&Ly(u)}}else c&Ve.Pending&&(l.flags=c&~Ve.Pending);return wn!==void 0&&Iy(l,wn,Ul),l._snapshot}):l.set=function(c){if(l._update(c)){const u=l.subs;u!==void 0&&(LT(u),Ly(u),zb())}},l}function jT(e){const t=()=>{const s=wn;wn=a,++Ul,a.depsTail=void 0,a.flags=Ve.Watching|Ve.RecursedCheck;try{return e()}finally{wn=s,a.flags&=~Ve.RecursedCheck,Kl(a)}},a={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Ve.Watching|Ve.RecursedCheck,notify(){const s=this.flags;s&Ve.Dirty||s&Ve.Pending&&Pb(this.deps,this)?t():this.flags=Ve.Watching},stop(){this.flags=Ve.None,this.depsTail=void 0,Kl(this)}};return t(),a}var $d={exports:{}},qd={},Vd={exports:{}},Gd={};var Ny;
12function NT(){if(Ny)return Gd;Ny=1;var e=Ks();function t(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var a=typeof Object.is=="function"?Object.is:t,s=e.useState,l=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue;function h(m,b){var w=b(),S=s({inst:{value:w,getSnapshot:b}}),R=S[0].inst,A=S[1];return c(function(){R.value=w,R.getSnapshot=b,p(R)&&A({inst:R})},[m,w,b]),l(function(){return p(R)&&A({inst:R}),m(function(){p(R)&&A({inst:R})})},[m]),u(w),w}function p(m){var b=m.getSnapshot;m=m.value;try{var w=b();return!a(m,w)}catch{return!0}}function g(m,b){return b()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:h;return Gd.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,Gd}var My;function MT(){return My||(My=1,Vd.exports=NT()),Vd.exports}var Dy;function DT(){if(Dy)return qd;Dy=1;var e=Ks(),t=MT();function a(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}var s=typeof Object.is=="function"?Object.is:a,l=t.useSyncExternalStore,c=e.useRef,u=e.useEffect,h=e.useMemo,p=e.useDebugValue;return qd.useSyncExternalStoreWithSelector=function(g,y,m,b,w){var S=c(null);if(S.current===null){var R={hasValue:!1,value:null};S.current=R}else R=S.current;S=h(function(){function E(G){if(!C){if(C=!0,x=G,G=b(G),w!==void 0&&R.hasValue){var D=R.value;if(w(D,G))return M=D}return M=G}if(D=M,s(x,G))return D;var F=b(G);return w!==void 0&&w(D,F)?(x=G,D):(x=G,M=F)}var C=!1,x,M,$=m===void 0?null:m;return[function(){return E(y())},$===null?void 0:function(){return E($())}]},[y,m,b,w]);var A=l(g,S[0],S[1]);return u(function(){R.hasValue=!0,R.value=A},[A]),p(A),A},qd}var Py;function PT(){return Py||(Py=1,$d.exports=DT()),$d.exports}var UT=PT();function zT(e,t){return e===t}function Ye(e,t,a=zT){const s=X.useCallback(u=>{if(!e)return()=>{};const{unsubscribe:h}=e.subscribe(u);return h},[e]),l=X.useCallback(()=>e?.get(),[e]);return UT.useSyncExternalStoreWithSelector(s,l,l,t,a)}var Fd={get(){},subscribe(){return{unsubscribe(){}}}};function BT(e,t){const a=X.useRef();return s=>{const l=e?.select?e.select(s):s;return e?.structuralSharing??t.options.defaultStructuralSharing?a.current=la(a.current,l):l}}function ya(e){const t=wt(),a=X.useContext(e.from?OT:oc),s=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(a),l=BT(e,t),c=Ye(s??Fd,u=>u?l(u):Fd);if(c!==Fd)return c;(e.shouldThrow??!0)&&Mt()}function Bb(e){return ya({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Hb(e){const{select:t,...a}=e;return ya({...a,select:s=>t?t(s.loaderDeps):s.loaderDeps})}function $b(e){return ya({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const a=e.strict===!1?t.params:t._strictParams;return e.select?e.select(a):a}})}function qb(e){return ya({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Vb(e){const t=wt();return X.useCallback(a=>t.navigate({...a,from:a.from??e?.from}),[e?.from,t])}function Gb(e){return ya({...e,select:t=>e.select?e.select(t.context):t.context})}var HT=Nv();function $T(e,t){const a=wt(),s=_T(t),{activeProps:l,inactiveProps:c,activeOptions:u,to:h,preload:p,preloadDelay:g,preloadIntentProximity:y,hashScrollIntoView:m,replace:b,startTransition:w,resetScroll:S,viewTransition:R,children:A,target:E,disabled:C,style:x,className:M,onClick:$,onBlur:G,onFocus:D,onMouseEnter:F,onMouseLeave:Y,onTouchStart:se,ignoreBlocker:re,params:oe,search:ot,hash:$e,state:Je,mask:z,reloadDocument:K,unsafeRelative:ie,from:Te,_fromLocation:Oe,...k}=e,q=Ph(),J=X.useMemo(()=>e,[a,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),W=Ye(a.stores.location,Ue=>Ue,(Ue,ht)=>Ue.href===ht.href),ne=X.useMemo(()=>{const Ue={_fromLocation:W,...J};return a.buildLocation(Ue)},[a,W,J]),ge=ne.maskedLocation?ne.maskedLocation.publicHref:ne.publicHref,Se=ne.maskedLocation?ne.maskedLocation.external:ne.external,Qe=X.useMemo(()=>YT(ge,Se,a.history,C),[C,Se,ge,a.history]),Ne=X.useMemo(()=>
12{if(Qe?.external)return Hl(Qe.href,a.protocolAllowlist)?void 0:Qe.href;if(!JT(h)&&!(typeof h!="string"||h.indexOf(":")===-1))try{return new URL(h),Hl(h,a.protocolAllowlist)?void 0:h}catch{}},[h,Qe,a.protocolAllowlist]),Rn=X.useMemo(()=>{if(Ne)return!1;if(u?.exact){if(!MS(W.pathname,ne.pathname,a.basepath))return!1}else{const Ue=$l(W.pathname,a.basepath),ht=$l(ne.pathname,a.basepath);if(!(Ue.startsWith(ht)&&(Ue.length===ht.length||Ue[ht.length]==="/")))return!1}return(u?.includeSearch??!0)&&!Et(W.search,ne.search,{partial:!u?.exact,ignoreUndefined:!u?.explicitUndefined})?!1:u?.includeHash?q&&W.hash===ne.hash:!0},[u?.exact,u?.explicitUndefined,u?.includeHash,u?.includeSearch,W,Ne,q,ne.hash,ne.pathname,ne.search,a.basepath]),Tn=Rn?oa(l,{})??qT:Kd,tr=Rn?Kd:oa(c,{})??Kd,Ei=[M,Tn.className,tr.className].filter(Boolean).join(" "),fn=(x||Tn.style||tr.style)&&{...x,...Tn.style,...tr.style},[Ri,va]=X.useState(!1),Zs=X.useRef(!1),Cn=e.reloadDocument||Ne?!1:p??a.options.defaultPreload,Ur=g??a.options.defaultPreloadDelay??0,an=X.useCallback(()=>{a.preloadRoute({...J,_builtLocation:ne}).catch(Ue=>{console.warn(Ue),console.warn(vA)})},[a,J,ne]);wT(s,X.useCallback(Ue=>{Ue?.isIntersecting&&an()},[an]),KT,{disabled:!!C||Cn!=="viewport"}),X.useEffect(()=>{Zs.current||!C&&Cn==="render"&&(an(),Zs.current=!0)},[C,an,Cn]);const Ti=Ue=>{const ht=Ue.currentTarget.getAttribute("target"),pn=E!==void 0?E:ht;if(!C&&!QT(Ue)&&!Ue.defaultPrevented&&(!pn||pn==="_self")&&Ue.button===0){Ue.preventDefault(),HT.flushSync(()=>{va(!0)});const ba=a.subscribe("onResolved",()=>{ba(),va(!1)});a.navigate({...J,replace:b,resetScroll:S,hashScrollIntoView:m,startTransition:w,viewTransition:R,ignoreBlocker:re})}};if(Ne)return{...k,ref:s,href:Ne,...A&&{children:A},...E&&{target:E},...C&&{disabled:C},...x&&{style:x},...M&&{className:M},...$&&{onClick:$},...G&&{onBlur:G},...D&&{onFocus:D},...F&&{onMouseEnter:F},...Y&&{onMouseLeave:Y},...se&&{onTouchStart:se}};const eo=Ue=>{if(C||Cn!=="intent")return;if(!Ur){an();return}const ht=Ue.currentTarget;if(Rs.has(ht))return;const pn=setTimeout(()=>{Rs.delete(ht),an()},Ur);Rs.set(ht,pn)},gc=Ue=>{C||Cn!=="intent"||an()},_t=Ue=>{if(C||!Cn||!Ur)return;const ht=Ue.currentTarget,pn=Rs.get(ht);pn&&(clearTimeout(pn),Rs.delete(ht))};return{...k,...Tn,...tr,href:Qe?.href,ref:s,onClick:ai([$,Ti]),onBlur:ai([G,_t]),onFocus:ai([D,eo]),onMouseEnter:ai([F,eo]),onMouseLeave:ai([Y,_t]),onTouchStart:ai([se,gc]),disabled:!!C,target:E,...fn&&{style:fn},...Ei&&{className:Ei},...C&&VT,...Rn&&GT,...q&&Ri&&FT}}var Kd={},qT={className:"active"},VT={role:"link","aria-disabled":!0},GT={"data-status":"active","aria-current":"page"},FT={"data-transitioning":"transitioning"},Rs=new WeakMap,KT={rootMargin:"100px"},ai=e=>t=>{for(const a of e)if(a){if(t.defaultPrevented)return;a(t)}};function YT(e,t,a,s){if(!s)return t?{href:e,external:!0}:{href:a.createHref(e)||"/",external:!1}}function JT(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var lc=X.forwardRef((e,t)=>{const{_asChild:a,...s}=e,{type:l,...c}=$T(s,t),u=typeof s.children=="function"?s.children({isActive:c["data-status"]==="active"}):s.children;if(!a){const{disabled:h,...p}=c;return X.createElement("a",p,u)}return X.createElement(a,c,u)});function QT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var XT=class extends Zv{constructor(t){super(t),this.useMatch=a=>ya({select:a?.select,from:this.id,structuralSharing:a?.structuralSharing}),this.useRouteContext=a=>Gb({...a,from:this.id}),this.useSearch=a=>qb({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useParams=a=>$b({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useLoaderDeps=a=>Hb({...a,from:this.id}),this.useLoaderData=a=>Bb({...a,from:this.id}),this.useNavigate=()=>Vb({from:this.fullPath}),this.Link=js.forwardRef((a,s)=>U.jsx(lc,{ref:s,from:this.fullPath,...a}))}};function WT(e){return new XT(e)}function ZT(){return e=>t1(e)}var e1=class extends AA{constructor(e){super(e),this.useMatch=t=>ya({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Gb({...t,from:this.id}),this.useSearch=t=>qb({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>$b({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Hb({...t,from:this.id}),this.useLoaderData=t=>Bb({...t,from:this.id}),this.useNavigate=()=>Vb({from:this.fullPath}),this.Link=js.forwardRef((t,a)=>U.jsx(lc,{ref:a,from:this.fullPath,...t}))}};function t1(e){return new e1(e)}function _e(e){return new n1(e,{silent:!0}).createRoute}var n1=class{constructor(e,t){this.path=e,this.createRoute=a=>{const s=WT(a);return s.isRoot=!1,s},this.silent=t?.silent}};function fe(e,t){let a,s,l,c;const u=()=>(a||(a=e().then(p=>{a=void 0,s=p[t??"default"]}).catch(p=>{if(l=p,mS(l)&&l instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const g=`tanstack_router_reload:${l.message}`;sessionStorage.getItem(g)||(sessionStorage.setItem(g,"1"),c=!0)}})),a),h=function(g){if(c)throw window.location.reload(),new Promise(()=>{});if(l)throw l;if(!s)if(Fl)Fl(u());else throw u();return X.createElement(s,g)};return h.preload=u,h}function r1(e){const t=wt(),a=`not-found-${Ye(t.stores.location,s=>s.pathname)}-${Ye(t.stores.status,s=>s)}`;return U.jsx(Mh,{getResetKey:()=>a,onCatch:(s,l)=>{if(dt(s))e.onCatch?.(s,l);else throw s},errorComponent:({error:s})=>{if(dt(s))return e.fallback?.(s);throw s},children:e.children})}function a1(){return U.jsx("p",{children:"Not Found"})}function di(e){return U.jsx(U.Fragment,{children:e.children})}function Fb(e,t,a){return t.options.notFoundComponent?U.jsx(t.options.notFoundComponent,{...a}):e.options.defaultNotFoundComponent?U.jsx(e.options.defaultNotFoundComponent,{...a}):U.jsx(a1,{})}function i1(e){return null}function s1(){return i1(wt()),null}var o1=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,l1=(e,t)=>
12e[0]===t[0]&&e[1]===t[1],Kb=X.memo(function({matchId:t}){const a=wt(),s=a.stores.matchStores.get(t);s||Mt();const l=Ye(a.stores.loadedAt,u=>u),c=Ye(s,u=>u,o1);return U.jsx(c1,{router:a,matchId:t,resetKey:l,matchState:X.useMemo(()=>{const u=c.routeId,h=a.routesById[u].parentRoute?.id;return{routeId:u,ssr:c.ssr,_displayPending:c._displayPending,parentRouteId:h}},[c._displayPending,c.routeId,c.ssr,a.routesById])})});function c1({router:e,matchId:t,resetKey:a,matchState:s}){const l=e.routesById[s.routeId],c=l.options.pendingComponent??e.options.defaultPendingComponent,u=c?U.jsx(c,{}):null,h=l.options.errorComponent??e.options.defaultErrorComponent,p=l.options.onCatch??e.options.defaultOnCatch,g=l.isRoot?l.options.notFoundComponent??e.options.notFoundRoute?.options.component:l.options.notFoundComponent,y=s.ssr===!1||s.ssr==="data-only",m=(!l.isRoot||l.options.wrapInSuspense||y)&&(l.options.wrapInSuspense??c??(l.options.errorComponent?.preload||y))?X.Suspense:di,b=h?Mh:di,w=g?r1:di;return U.jsxs(l.isRoot?l.options.shellComponent??di:di,{children:[U.jsx(oc.Provider,{value:t,children:U.jsx(m,{fallback:u,children:U.jsx(b,{getResetKey:()=>a,errorComponent:h||Dh,onCatch:(S,R)=>{if(dt(S))throw S.routeId??=s.routeId,S;p?.(S,R)},children:U.jsx(w,{fallback:S=>{if(S.routeId??=s.routeId,!g||S.routeId&&S.routeId!==s.routeId||!S.routeId&&
12!l.isRoot)throw S;return X.createElement(g,S)},children:y||s._displayPending?U.jsx(TT,{fallback:u,children:U.jsx(Uy,{matchId:t})}):U.jsx(Uy,{matchId:t})})})})}),s.parentRouteId===fa?U.jsxs(U.Fragment,{children:[U.jsx(u1,{}),e.options.scrollRestoration&&Dv?U.jsx(s1,{}):null]}):null]})}function u1(){const e=wt(),t=X.useRef();return Cs(()=>{const a=e.stores.resolvedLocation.get(),s=t.current;a&&(!s||s.href!==a.href)&&e.emit({type:"onRendered",...vi(e.stores.location.get(),s??a)}),t.current=a},[Ye(e.stores.resolvedLocation,a=>a?.state.__TSR_key),e]),null}var Uy=X.memo(function({matchId:t}){const a=wt(),s=(y,m)=>a.getMatch(y.id)?._nonReactive[m]??y._nonReactive[m],l=a.stores.matchStores.get(t);l||Mt();const c=Ye(l,y=>y),u=c.routeId,h=a.routesById[u],p=X.useMemo(()=>{const y=(a.routesById[u].options.remountDeps??a.options.defaultRemountDeps)?.({routeId:u,loaderDeps:c.loaderDeps,params:c._strictParams,search:c._strictSearch});return y?JSON.stringify(y):void 0},[u,c.loaderDeps,c._strictParams,c._strictSearch,a.options.defaultRemountDeps,a.routesById]),g=X.useMemo(()=>{const y=h.options.component??a.options.defaultComponent;return y?U.jsx(y,{},p):U.jsx(Yb,{})},[p,h.options.component,a.options.defaultComponent]);if(c._displayPending)throw s(c,"displayPendingPromise");if(c._forcePending)throw s(c,"minPendingPromise");if(c.status==="pending"){const y=h.options.pendingMinMs??a.options.defaultPendingMinMs;if(y){const m=a.getMatch(c.id);if(m&&!m._nonReactive.minPendingPromise){const b=ga();m._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),m._nonReactive.minPendingPromise=void 0},y)}}throw s(c,"loadPromise")}if(c.status==="notFound")return dt(c.error)||Mt(),Fb(a,h,c.error);if(c.status==="redirected")throw Nt(c.error)||Mt(),s(c,"loadPromise");if(c.status==="error")throw c.error;return g}),Yb=X.memo(function(){const t=wt(),a=X.useContext(oc);let s,l=!1,c;{const g=a?t.stores.matchStores.get(a):void 0;[s,l]=Ye(g,y=>[y?.routeId,y?.globalNotFound??!1],l1),c=Ye(t.stores.matchesId,y=>y[y.findIndex(m=>m===a)+1])}const u=s?t.routesById[s]:void 0,h=t.options.defaultPendingComponent?U.jsx(t.options.defaultPendingComponent,{}):null;if(l)return u||Mt(),Fb(t,u,void 0);if(!c)return null;const p=U.jsx(Kb,{matchId:c});return s===fa?U.jsx(X.Suspense,{fallback:h,children:p}):p});function d1(){const e=wt(),t=X.useRef({router:e,mounted:!1}),[a,s]=X.useState(!1),l=Ye(e.stores.isLoading,m=>m),c=Ye(e.stores.hasPending,m=>m),u=Hd(l),h=l||a||c,p=Hd(h),g=l||c,y=Hd(g);return e.startTransition=m=>{s(!0),X.startTransition(()=>{m(),s(!1)})},X.useEffect(()=>{const m=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Qn(e.latestLocation.publicHref)!==Qn(b.publicHref)&&e.commitLocation({...b,replace:!0}),()=>{m()}},[e,e.history]),Cs(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),Cs(()=>{u&&!l&&e.emit({type:"onLoad",...vi(e.stores.location.get(),e.stores.resolvedLocation.get())})},[u,e,l]),Cs(()=>{y&&!g&&e.emit({type:"onBeforeRouteMount",...vi(e.stores.location.get(),e.stores.resolvedLocation.get())})},[g,y,e]),Cs(()=>{if(p&&!h){const m=vi(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...m}),Ub(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[h,p,e]),null}function h1(){const e=wt(),t=e.routesById[fa].options.pendingComponent??e.options.defaultPendingComponent,a=t?U.jsx(t,{}):null,s=U.jsxs(typeof document<"u"&&e.ssr?di:X.Suspense,{fallback:a,children:[U.jsx(d1,{}),U.jsx(f1,{})]});return e.options.InnerWrap?U.jsx(e.options.InnerWrap,{children:s}):s}function f1(){const e=wt(),t=Ye(e.stores.firstId,l=>l),a=Ye(e.stores.loadedAt,l=>l),s=t?U.jsx(Kb,{matchId:t}):null;return U.jsx(oc.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?s:U.jsx(Mh,{getResetKey:()=>a,errorComponent:Dh,onCatch:void 0,children:s})})}var p1=e=>({createMutableStore:jy,createReadonlyStore:jy,batch:Ub}),g1=e=>new m1(e),m1=class extends uA{constructor(e){super(e,p1)}};function y1({router:e,children:t,...a}){Uv(a)&&e.update({...e.options,...a,context:{...e.options.context,...a.context}});const s=U.jsx(Db.Provider,{value:e,children:t});return e.options.Wrap?U.jsx(e.options.Wrap,{children:s}):s}function v1({router:e,...t}){return U.jsx(y1,{router:e,...t,children:U.jsx(h1,{})})}function zy(e,t){if(t)for(const[a,s]of Object.entries(t))a!=="suppressHydrationWarning"&&s!==void 0&&s!==!1&&e.setAttribute(a,typeof s=="boolean"?"":String(s))}function Jb(e){const{attrs:t,children:a,nonce:s,preventScriptHoist:l}=e;switch(e.tag){case"title":return U.jsx("title",{...t,suppressHydrationWarning:!0,children:a});case"meta":return U.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return U.jsx("link",{...t,precedence:t?.precedence??(t?.rel==="stylesheet"?"default":void 0),nonce:s,suppressHydrationWarning:!0});case"style":return e.inlineCss,U.jsx("style",{...t,dangerouslySetInnerHTML:{__html:a},nonce:s});case"script":return U.jsx(b1,{attrs:t,preventScriptHoist:l,children:a});default:return null}}function b1({attrs:e,children:t,preventScriptHoist:a}){wt();const s=Ph(),l=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(X.useEffect(()=>{if(!l){if(e?.src){const c=(()=>{try{const h=document.baseURI||window.location.href;return new URL(e.src,h).href}catch{return e.src}})();for(const h of document.querySelectorAll("script[src]"))if(h.src===c)return;const u=document.createElement("script");return zy(u,e),document.head.appendChild(u),()=>u.remove()}if(typeof t=="string"){const c=typeof e?.type=="string"?e.type:"text/javascript",u=typeof e?.nonce=="string"?e.nonce:void 0;for(const p of document.querySelectorAll("script:not([src])")){if(!(p instanceof HTMLScriptElement))continue;const g=p.getAttribute("type")??"text/javascript",y=p.getAttribute("nonce")??void 0;if(p.textContent===t&&g===c&&y===u)return}const h=document.createElement("script");return h.textContent=t,zy(h,e),document.head.appendChild(h),()=>h.remove()}}},[e,t,l]),l&&typeof t=="string")return U.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!s){if(e?.src)return U.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return U.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var w1=e=>{const t=wt(),a=t.options.ssr?.nonce,s=Ye(t.stores.matches,m=>m.map(b=>b.meta).filter(b=>b!==void 0),Et),l=X.useMemo(()=>{const m=[],b={};let w;for(let S=s.length-1;S>=0;S--){const R=s[S];for(let A=R.length-1;A>=0;A--){const E=R[A];if(E)if(E.title)w||(w={tag:"title",children:E.title});else if("script:ld+json"in E)try{const C=JSON.stringify(E["script:ld+json"]);m.push({tag:"script",attrs:{type:"application/ld+json"},children:SS(C)})}catch{}else{const C=E.name??E.property;if(C){if(b[C])continue;b[C]=!0}m.push({tag:"meta",attrs:{...E,nonce:a}})}}}return w&&m.push(w),a&&m.push({tag:"meta",attrs:{property:"csp-nonce",content:a}}),m.reverse(),m},[s,a]),c=Ye(t.stores.matches,m=>m.flatMap(b=>b.links??[]).filter(b=>b!==void 0).map(b=>({tag:"link",attrs:{...b,nonce:a}})),Et),u=Ye(t.stores.matches,m=>{const b=t.ssr?.manifest,w=[];return b&&(m.forEach(S=>{b.routes[S.routeId]?.css?.forEach(R=>{const A=SA(R);w.push({tag:"link",attrs:{rel:"stylesheet",...A,crossOrigin:Wv(e,"stylesheet")??A.crossOrigin,suppressHydrationWarning:!0,nonce:a}})})}),b.inlineStyle&&w.push({tag:"style",attrs:{...b.inlineStyle.attrs,nonce:a},children:b.inlineStyle.children,inlineCss:!0})),w},Et),h=Ye(t.stores.matches,m=>{const b=[],w=t.ssr?.manifest;return w&&m.forEach(S=>{w.routes[S.routeId]?.preloads?.forEach(R=>{b.push({tag:"link",attrs:{...wA(w,R,e),nonce:a}})})}),b},Et),p=Ye(t.stores.matches,m=>m.flatMap(b=>b.styles??[]).filter(b=>b!==void 0).map(({children:b,...w})=>({tag:"style",attrs:{...w,nonce:a},children:b})),Et),g=Ye(t.stores.matches,m=>m.flatMap(b=>b.headScripts??[]).filter(b=>b!==void 0).map(({children:b,...w})=>({tag:"script",attrs:{...w,nonce:a},children:b})),Et),y=[];return _l(y,l),y.push(...h),_l(y,c),y.push(...u),_l(y,p),_l(y,g),y};function _1(e){const t=w1(e.assetCrossOrigin),a=wt().options.ssr?.nonce;return U.jsx(U.Fragment,{children:t.map(s=>X.createElement(Jb,{...s,key:`tsr-meta-${JSON.stringify(s)}`,nonce:a}))})}var S1=()=>{const e=wt(),t=e.options.ssr?.nonce,a=c=>{const u=[],h=e.ssr?.manifest;if(!h)return[];
12for(const p of c){const g=h.routes[p.routeId]?.scripts;if(g)for(const y of g)u.push({tag:"script",attrs:{...y.attrs,nonce:t},children:y.children,...typeof y.attrs?.src=="string"?{preventScriptHoist:!0}:{}})}return u},s=c=>c.map(u=>u.scripts).flat(1).filter(Boolean).map(({children:u,...h})=>({tag:"script",attrs:{...h,suppressHydrationWarning:!0,nonce:t},children:u})),l=Ye(e.stores.matches,a,Et);return A1(e,Ye(e.stores.matches,s,Et),l)};function A1(e,t,a){const s=[...t,...a];return U.jsx(U.Fragment,{children:s.map((l,c)=>X.createElement(Jb,{...l,key:`tsr-scripts-${l.tag}-${c}`}))})}var da=(e,t)=>{const a={type:"request",...t||e},s=l=>da({},Object.assign(a,{validator:l,inputValidator:l}));return{options:a,middleware:l=>da({},Object.assign(a,{middleware:l})),validator:s,inputValidator:s,client:l=>da({},Object.assign(a,{client:l})),server:l=>da({},Object.assign(a,{server:l}))}};function Qb(e,t){for(let a=0,s=t.length;a<s;a++){const l=t[a];e.has(l)||(e.add(l),l.extends&&Qb(e,l.extends))}}var E1=e=>({getOptions:async()=>{const t=await e();if(t.serializationAdapters){const a=new Set;Qb(a,t.serializationAdapters),t.serializationAdapters=Array.from(a)}return t},createMiddleware:da});function cc(e,t){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(a[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(e);l<s.length;l++)t.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(e,s[l])&&(a[s[l]]=e[s[l]]);return a}function R1(e,t,a,s){function l(c){return c instanceof a?c:new a(function(u){u(c)})}return new(a||(a=Promise))(function(c,u){function h(y){try{g(s.next(y))}catch(m){u(m)}}function p(y){try{g(s.throw(y))}catch(m){u(m)}}function g(y){y.done?c(y.value):l(y.value).then(h,p)}g((s=s.apply(e,t||[])).next())})}const T1=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Uh extends Error{constructor(t,a="FunctionsError",s){super(t),this.name=a,this.context=s}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class C1 extends Uh{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class By extends Uh{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Hy extends Uh{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var uh;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(uh||(uh={}));class O1{constructor(t,{headers:a={},customFetch:s,region:l=uh.Any}={}){this.url=t,this.headers=a,this.region=l,this.fetch=T1(s)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return R1(this,arguments,void 0,function*(a,s={}){var l;let c,u;try{const{headers:h,method:p,body:g,signal:y,timeout:m}=s;let b={},{region:w}=s;w||(w=this.region);const S=new URL(`${this.url}/${a}`);w&&w!=="any"&&(b["x-region"]=w,S.searchParams.set("forceFunctionRegion",w));let R;g&&(h&&!Object.prototype.hasOwnProperty.call(h,"Content-Type")||!h)?typeof Blob<"u"&&g instanceof Blob||g instanceof ArrayBuffer?(b["Content-Type"]="application/octet-stream",R=g):typeof g=="string"?(b["Content-Type"]="text/plain",R=g):typeof FormData<"u"&&g instanceof FormData?R=g:(b["Content-Type"]="application/json",R=JSON.stringify(g)):g&&typeof g!="string"&&!(typeof Blob<"u"&&g instanceof Blob)&&!(g instanceof ArrayBuffer)&&!(typeof FormData<"u"&&g instanceof FormData)?R=JSON.stringify(g):R=g;let A=y;m&&(u=new AbortController,c=setTimeout(()=>u.abort(),m),y?(A=u.signal,y.addEventListener("abort",()=>u.abort())):A=u.signal);const E=yield this.fetch(S.toString(),{method:p||"POST",headers:Object.assign(Object.assign(Object.assign({},b),this.headers),h),body:R,signal:A}).catch($=>{throw new C1($)}),C=E.headers.get("x-relay-error");
12if(C&&C==="true")throw new By(E);if(!E.ok)throw new Hy(E);let x=((l=E.headers.get("Content-Type"))!==null&&l!==void 0?l:"text/plain").split(";")[0].trim(),M;return x==="application/json"?M=yield E.json():x==="application/octet-stream"||x==="application/pdf"?M=yield E.blob():x==="text/event-stream"?M=E:x==="multipart/form-data"?M=yield E.formData():M=yield E.text(),{data:M,error:null,response:E}}catch(h){return{data:null,error:h,response:h instanceof Hy||h instanceof By?h.context:void 0}}finally{c&&clearTimeout(c)}})}}const Xb=3,$y=e=>Math.min(1e3*2**e,3e4),k1=[520,503],Wb=["GET","HEAD","OPTIONS"];var x1=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function qy(e,t){return new Promise(a=>{if(t?.aborted){a();return}const s=setTimeout(()=>{t?.removeEventListener("abort",l),a()},e);function l(){clearTimeout(s),a()}t?.addEventListener("abort",l)})}function I1(e,t,a,s){return!(!s||a>=Xb||!Wb.includes(e)||!k1.includes(t))}var L1=class{constructor(e){var t,a,s,l,c;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(a=e.isMaybeSingle)!==null&&a!==void 0?a:!1,this.shouldStripNulls=(s=e.shouldStripNulls)!==null&&s!==void 0?s:!1,this.urlLengthLimit=(l=e.urlLengthLimit)!==null&&l!==void 0?l:8e3,this.retryEnabled=(c=e.retry)!==null&&c!==void 0?c:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var a=this;if(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"),this.shouldStripNulls){const u=this.headers.get("Accept");u==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!u||u==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const s=this.fetch;let c=(async()=>{let u=0;for(;;){const g=new Headers(a.headers);u>0&&g.set("X-Retry-Count",String(u));let y;try{y=await s(a.url.toString(),{method:a.method,headers:g,body:JSON.stringify(a.body,(m,b)=>typeof b=="bigint"?b.toString():b),signal:a.signal})}catch(m){if(m?.name==="AbortError"||m?.code==="ABORT_ERR"||!Wb.includes(a.method))throw m;if(a.retryEnabled&&u<Xb){const b=$y(u);u++,await qy(b,a.signal);continue}throw m}if(I1(a.method,y.status,u,a.retryEnabled)){var h,p;const m=(h=(p=y.headers)===null||p===void 0?void 0:p.get("Retry-After"))!==null&&h!==void 0?h:null,b=m!==null?Math.max(0,parseInt(m,10)||0)*1e3:$y(u);await y.text(),u++,await qy(b,a.signal);continue}return await a.processResponse(y)}})();return this.shouldThrowOnError||(c=c.catch(u=>{var h;let p="",g="",y="";const m=u?.cause;if(m){var b,w,S,R;const C=(b=m?.message)!==null&&b!==void 0?b:"",x=(w=m?.code)!==null&&w!==void 0?w:"";p=`${(S=u?.name)!==null&&S!==void 0?S:"FetchError"}: ${u?.message}`,p+=`
13
14Caused by: ${(R=m?.name)!==null&&R!==void 0?R:"Error"}: ${C}`,x&&(p+=` (${x})`),m?.stack&&(p+=`
15${m.stack}`)}else{var A;p=(A=u?.stack)!==null&&A!==void 0?A:""}const E=this.url.toString().length;return u?.name==="AbortError"||u?.code==="ABORT_ERR"?(y="",g="Request was aborted (timeout or manual cancellation)",E>this.urlLengthLimit&&(g+=`. Note: Your request URL is ${E} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(m?.name==="HeadersOverflowError"||m?.code==="UND_ERR_HEADERS_OVERFLOW")&&(y="",g="HTTP headers exceeded server limits (typically 16KB)",E>this.urlLengthLimit&&(g+=`. Your request URL is ${E} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(h=u?.name)!==null&&h!==void 0?h:"FetchError"}: ${u?.message}`,details:p,hint:g,code:y},data:null,count:null,status:0,statusText:""}}
15)),c.then(e,t)}async processResponse(e){var t=this;let a=null,s=null,l=null,c=e.status,u=e.statusText;if(e.ok){var h,p;if(t.method!=="HEAD"){var g;const b=await e.text();b===""||(t.headers.get("Accept")==="text/csv"||t.headers.get("Accept")&&(!((g=t.headers.get("Accept"))===null||g===void 0)&&g.includes("application/vnd.pgrst.plan+text"))?s=b:s=JSON.parse(b))}const y=(h=t.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),m=(p=e.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");y&&m&&m.length>1&&(l=parseInt(m[1])),t.isMaybeSingle&&Array.isArray(s)&&(s.length>1?(a={code:"PGRST116",details:`Results contain ${s.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},s=null,l=null,c=406,u="Not Acceptable"):s.length===1?s=s[0]:s=null)}else{const y=await e.text();try{a=JSON.parse(y),Array.isArray(a)&&e.status===404&&(s=[],a=null,c=200,u="OK")}catch{e.status===404&&y===""?(c=204,u="No Content"):a={message:y}}if(a&&t.shouldThrowOnError)throw new x1(a)}return{success:a===null,error:a,data:s,count:l,status:c,statusText:u}}returns(){return this}overrideTypes(){return this}},j1=class extends L1{select(e){let t=!1;const a=(e??"*").split("").map(s=>/\s/.test(s)&&!t?"":(s==='"'&&(t=!t),s)).join("");return this.url.searchParams.set("select",a),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:a,foreignTable:s,referencedTable:l=s}={}){const c=l?`${l}.order`:"order",u=this.url.searchParams.get(c);return this.url.searchParams.set(c,`${u?`${u},`:""}${e}.${t?"asc":"desc"}${a===void 0?"":a?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:a=t}={}){const s=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(s,`${e}`),this}range(e,t,{foreignTable:a,referencedTable:s=a}={}){const l=typeof s>"u"?"offset":`${s}.offset`,c=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(l,`${e}`),this.url.searchParams.set(c,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:a=!1,buffers:s=!1,wal:l=!1,format:c="text"}={}){var u;const h=[e?"analyze":null,t?"verbose":null,a?"settings":null,s?"buffers":null,l?"wal":null].filter(Boolean).join("|"),p=(u=this.headers.get("Accept"))!==null&&u!==void 0?u:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${c}; for="${p}"; options=${h};`),c==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Vy=new RegExp("[,()]");var hi=class extends j1{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const a=Array.from(new Set(t)).map(s=>typeof s=="string"&&Vy.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`in.(${a})`),this}notIn(e,t){const a=Array.from(new Set(t)).map(s=>typeof s=="string"&&Vy.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`not.in.(${a})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:a,type:s}={}){let l="";s==="plain"?l="pl":s==="phrase"?l="ph":s==="websearch"&&(l="w");const c=a===void 0?"":`(${a})`;return this.url.searchParams.append(e,`${l}fts${c}.${t}`),this}match(e){return Object.entries(e).filter(([t,a])=>
15a!==void 0).forEach(([t,a])=>{this.url.searchParams.append(t,`eq.${a}`)}),this}not(e,t,a){return this.url.searchParams.append(e,`not.${t}.${a}`),this}or(e,{foreignTable:t,referencedTable:a=t}={}){const s=a?`${a}.or`:"or";return this.url.searchParams.append(s,`(${e})`),this}filter(e,t,a){return this.url.searchParams.append(e,`${t}.${a}`),this}},N1=class{constructor(e,{headers:t={},schema:a,fetch:s,urlLengthLimit:l=8e3,retry:c}){this.url=e,this.headers=new Headers(t),this.schema=a,this.fetch=s,this.urlLengthLimit=l,this.retry=c}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:a=!1,count:s}=t??{},l=a?"HEAD":"GET";let c=!1;const u=(e??"*").split("").map(g=>/\s/.test(g)&&!c?"":(g==='"'&&(c=!c),g)).join(""),{url:h,headers:p}=this.cloneRequestState();return h.searchParams.set("select",u),s&&p.append("Prefer",`count=${s}`),new hi({method:l,url:h,headers:p,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:a=!0}={}){var s;const l="POST",{url:c,headers:u}=this.cloneRequestState();
15if(t&&u.append("Prefer",`count=${t}`),a||u.append("Prefer","missing=default"),Array.isArray(e)){const h=e.reduce((p,g)=>p.concat(Object.keys(g)),[]);if(h.length>0){const p=[...new Set(h)].map(g=>`"${g}"`);c.searchParams.set("columns",p.join(","))}}return new hi({method:l,url:c,headers:u,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:a=!1,count:s,defaultToNull:l=!0}={}){var c;const u="POST",{url:h,headers:p}=this.cloneRequestState();if(p.append("Prefer",`resolution=${a?"ignore":"merge"}-duplicates`),t!==void 0&&h.searchParams.set("on_conflict",t),s&&p.append("Prefer",`count=${s}`),l||p.append("Prefer","missing=default"),Array.isArray(e)){const g=e.reduce((y,m)=>y.concat(Object.keys(m)),[]);if(g.length>0){const y=[...new Set(g)].map(m=>`"${m}"`);h.searchParams.set("columns",y.join(","))}}return new hi({method:u,url:h,headers:p,schema:this.schema,body:e,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var a;const s="PATCH",{url:l,headers:c}=this.cloneRequestState();return t&&c.append("Prefer",`count=${t}`),new hi({method:s,url:l,headers:c,schema:this.schema,body:e,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const a="DELETE",{url:s,headers:l}=this.cloneRequestState();return e&&l.append("Prefer",`count=${e}`),new hi({method:a,url:s,headers:l,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function zs(e){"@babel/helpers - typeof";return zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zs(e)}function M1(e,t){if(zs(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var s=a.call(e,t);if(zs(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D1(e){var t=M1(e,"string");return zs(t)=="symbol"?t:t+""}function P1(e,t,a){return(t=D1(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Gy(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,s)}return a}function El(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Gy(Object(a),!0).forEach(function(s){P1(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Gy(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}var U1=class Zb{constructor(t,{headers:a={},schema:s,fetch:l,timeout:c,urlLengthLimit:u=8e3,retry:h}={}){this.url=t,this.headers=new Headers(a),this.schemaName=s,this.urlLengthLimit=u;const p=l??globalThis.fetch;c!==void 0&&c>0?this.fetch=(g,y)=>{const m=new AbortController,b=setTimeout(()=>m.abort(),c),w=y?.signal;if(w){if(w.aborted)return clearTimeout(b),p(g,y);const S=()=>{clearTimeout(b),m.abort()};return w.addEventListener("abort",S,{once:!0}),p(g,El(El({},y),{},{signal:m.signal})).finally(()=>{clearTimeout(b),w.removeEventListener("abort",S)})}return p(g,El(El({},y),{},{signal:m.signal})).finally(()=>clearTimeout(b))}:this.fetch=p,this.retry=h}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new N1(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new Zb(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,a={},{head:s=!1,get:l=!1,count:c}={}){var u;let h;const p=new URL(`${this.url}/rpc/${t}`);let g;const y=w=>w!==null&&typeof w=="object"&&(!Array.isArray(w)||w.some(y)),m=s&&Object.values(a).some(y);m?(h="POST",g=a):s||l?(h=s?"HEAD":"GET",Object.entries(a).filter(([w,S])=>S!==void 0).map(([w,S])=>[w,Array.isArray(S)?`{${S.join(",")}}`:`${S}
15`]).forEach(([w,S])=>{p.searchParams.append(w,S)})):(h="POST",g=a);const b=new Headers(this.headers);return m?b.set("Prefer",c?`count=${c},return=minimal`:"return=minimal"):c&&b.set("Prefer",`count=${c}`),new hi({method:h,url:p,headers:b,schema:this.schemaName,body:g,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class z1{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const a=globalThis;if(typeof globalThis<"u"&&typeof a.WebSocket<"u")return{type:"native",wsConstructor:a.WebSocket};const s=typeof global<"u"?global:void 0;if(s&&typeof s.WebSocket<"u")return{type:"native",wsConstructor:s.WebSocket};if(typeof globalThis<"u"&&typeof a.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"&&a.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.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."};const l=globalThis.process;if(l){const c=l.versions;if(c&&c.node){const u=c.node,h=parseInt(u.replace(/^v/,"").split(".")[0]);return h>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${h} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${h} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
16import ws from "ws"
17new 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 t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let a=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(a+=`
18
19Suggested solution: ${t.workaround}`),new Error(a)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const B1="2.106.2",H1=`realtime-js/${B1}`,$1="1.0.0",e0="2.0.0",q1=e0,V1=1e4,G1=100,xr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},t0={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},dh={connecting:"connecting",closing:"closing",closed:"closed"};class F1{constructor(t){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=t??[]}encode(t,a){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return a(this._binaryEncodeUserBroadcastPush(t));let s=[t.join_ref,t.ref,t.topic,t.event,t.payload];return a(JSON.stringify(s))}_binaryEncodeUserBroadcastPush(t){var a;return this._isArrayBuffer((a=t.payload)===null||a===void 0?void 0:a.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var a,s;const l=(s=(a=t.payload)===null||a===void 0?void 0:a.payload)!==null&&s!==void 0?s:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,l)}_encodeJsonUserBroadcastPush(t){var a,s;const l=(s=(a=t.payload)===null||a===void 0?void 0:a.payload)!==null&&s!==void 0?s:{},u=new TextEncoder().encode(JSON.stringify(l)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,u)}_encodeUserBroadcastPush(t,a,s){var l,c;const u=t.topic,h=(l=t.ref)!==null&&l!==void 0?l:"",p=(c=t.join_ref)!==null&&c!==void 0?c:"",g=t.payload.event,y=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},m=Object.keys(y).length===0?"":JSON.stringify(y);if(p.length>255)throw new Error(`joinRef length ${p.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`ref length ${h.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`topic length ${u.length} exceeds maximum of 255`);if(g.length>255)throw new Error(`userEvent length ${g.length} exceeds maximum of 255`);if(m.length>255)throw new Error(`metadata length ${m.length} exceeds maximum of 255`);const b=this.USER_BROADCAST_PUSH_META_LENGTH+p.length+h.length+u.length+g.length+m.length,w=new ArrayBuffer(this.HEADER_LENGTH+b);let S=new DataView(w),R=0;S.setUint8(R++,this.KINDS.userBroadcastPush),S.setUint8(R++,p.length),S.setUint8(R++,h.length),S.setUint8(R++,u.length),S.setUint8(R++,g.length),S.setUint8(R++,m.length),S.setUint8(R++,a),Array.from(p,E=>
19S.setUint8(R++,E.charCodeAt(0))),Array.from(h,E=>S.setUint8(R++,E.charCodeAt(0))),Array.from(u,E=>S.setUint8(R++,E.charCodeAt(0))),Array.from(g,E=>S.setUint8(R++,E.charCodeAt(0))),Array.from(m,E=>S.setUint8(R++,E.charCodeAt(0)));var A=new Uint8Array(w.byteLength+s.byteLength);return A.set(new Uint8Array(w),0),A.set(new Uint8Array(s),w.byteLength),A.buffer}decode(t,a){if(this._isArrayBuffer(t)){let s=this._binaryDecode(t);return a(s)}if(typeof t=="string"){const s=JSON.parse(t),[l,c,u,h,p]=s;return a({join_ref:l,ref:c,topic:u,event:h,payload:p})}return a({})}_binaryDecode(t){const a=new DataView(t),s=a.getUint8(0),l=new TextDecoder;if(s===this.KINDS.userBroadcast)return this._decodeUserBroadcast(t,a,l)}_decodeUserBroadcast(t,a,s){const l=a.getUint8(1),c=a.getUint8(2),u=a.getUint8(3),h=a.getUint8(4);let p=this.HEADER_LENGTH+4;const g=s.decode(t.slice(p,p+l));p=p+l;const y=s.decode(t.slice(p,p+c));p=p+c;const m=s.decode(t.slice(p,p+u));p=p+u;const b=t.slice(p,t.byteLength),w=h===this.JSON_ENCODING?JSON.parse(s.decode(b)):b,S={type:this.BROADCAST_EVENT,event:y,payload:w};return u>0&&(S.meta=JSON.parse(m)),{join_ref:null,ref:null,topic:g,event:this.BROADCAST_EVENT,payload:S}}_isArrayBuffer(t){var a;return t instanceof ArrayBuffer||((a=t?.constructor)===null||a===void 0?void 0:a.name)==="ArrayBuffer"}_pick(t,a){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([s])=>a.includes(s)))}}var ze;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(ze||(ze={}));const Fy=(e,t,a={})=>{var s;const l=(s=a.skipTypes)!==null&&s!==void 0?s:[];return t?Object.keys(t).reduce((c,u)=>(c[u]=K1(u,e,t,l),c),{}):{}},K1=(e,t,a,s)=>{const l=t.find(h=>h.name===e),c=l?.type,u=a[e];return c&&!s.includes(c)?n0(c,u):hh(u)},n0=(e,t)=>{if(e.charAt(0)==="_"){const a=e.slice(1,e.length);return X1(t,a)}switch(e){case ze.bool:return Y1(t);case ze.float4:case ze.float8:case ze.int2:case ze.int4:case ze.int8:case ze.numeric:case ze.oid:return J1(t);case ze.json:case ze.jsonb:return Q1(t);case ze.timestamp:return W1(t);case ze.abstime:case ze.date:case ze.daterange:case ze.int4range:case ze.int8range:case ze.money:case ze.reltime:case ze.text:case ze.time:case ze.timestamptz:case ze.timetz:case ze.tsrange:case ze.tstzrange:return hh(t);default:return hh(t)}},hh=e=>e,Y1=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},J1=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},Q1=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},X1=(e,t)=>{if(typeof e!="string")return e;const a=e.length-1,s=e[a];if(e[0]==="{"&&s==="}"){let c;const u=e.slice(1,a);try{c=JSON.parse("["+u+"]")}catch{c=u?u.split(","):[]}return c.map(h=>n0(t,h))}return e},W1=e=>typeof e=="string"?e.replace(" ","T"):e,r0=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var xs=e=>typeof e=="function"?e:function(){return e},Z1=typeof self<"u"?self:null,fi=typeof window<"u"?window:null,_n=Z1||fi||globalThis,eC="2.0.0",tC=1e4,nC=1e3,An={connecting:0,open:1,closing:2,closed:3},jt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Yn={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},fh={longpoll:"longpoll",websocket:"websocket"},rC={complete:4},ph="base64url.bearer.phx.",Rl=class{constructor(e,t,a,s){this.channel=e,this.event=t,this.payload=a||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHo
vendor: 8,700 bytes, line 19
19oks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),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,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:a}){this.recHooks.filter(s=>s.status===e).forEach(s=>s.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},a0=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},aC=class{constructor(e,t,a){this.state=jt.closed,this.topic=e,this.params=xs(t||{}),this.socket=a,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Rl(this,Yn.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new a0(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=jt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",s=>{this.state=jt.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=jt.closed,this.socket.remove(this)}),this.onError(s=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.isJoining()&&this.joinPush.reset(),this.state=jt.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Rl(this,Yn.leave,xs({}),this.timeout).send(),this.state=jt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Yn.reply,(s,l)=>{this.trigger(this.replyEventName(l),s)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=jt.closed,this.bindings=[]}onClose(e){this.on(Yn.close,e)}onError(e){return this.on(Yn.error,t=>e(t))}on(e,t){let a=this.bindingRef++;return this.bindings.push({event:e,ref:a,callback:t}),a}off(e,t){this.bindings=this.bindings.filter(a=>!(a.event===e&&(typeof t>"u"||t===a.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,a=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new Rl(this,e,function(){return t},a);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=jt.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Yn.close,"leave")},a=new Rl(this,Yn.leave,xs({}),e);return a.receive("ok",()=>t()).receive("timeout",()=>t()),a.send(),this.canPush()||a.trigger("ok",{}),a}onMessage(e,t,a){return t}filterBindings(e,t,a){return!0}isMember(e,t,a,s){return this.topic!==e?!1:s&&s!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:a,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=jt.joining,this.joinPush.resend(e))}trigger(e,t,a,s){let l=this.onMessage(e,t,a,s);if(t&&!l)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let c=this.bindings.filter(u=>u.event===e&&this.filterBindings(u,t,a));for(let u=0;u<c.length;u++)c[u].callback(l,a,s||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===jt.closed}isErrored(){return this.state===jt.errored}isJoined(){return this.state===jt.joined}isJoining(){return this.state===jt.joining}isLeaving(){return this.state===jt.leaving}},Yl=class{static request(e,t,a,s,l,c,u){if(_n.XDomainRequest){let h=new _n.XDomainRequest;return this.xdomainRequest(h,e,t,s,l,c,u)}else if(_n.XMLHttpRequest){let h=new _n.XMLHttpRequest;return this.xhrRequest(h,e,t,a,s,l,c,u)}else{if(_n.fetch&&_n.AbortController)return this.fetchRequest(e,t,a,s,l,c,u);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,a,s,l,c,u){let h={method:e,headers:a,body:s},p=null;return l&&(p=new AbortController,setTimeout(()=>p.abort(),l),h.signal=p.signal),_n.fetch(t,h).then(g=>g.text()).then(g=>this.parseJSON(g)).then(g=>u&&u(g)).catch(g=>{g.name==="AbortError"&&c?c():u&&u(null)}),p}static xdomainRequest(e,t,a,s,l,c,u){return e.timeout=l,e.open(t,a),e.onload=()=>{let h=this.parseJSON(e.responseText);u&&u(h)},c&&(e.ontimeout=c),e.onprogress=()=>{},e.send(s),e}static xhrRequest(e,t,a,s,l,c,u,h){e.open(t,a,!0),e.timeout=c;for(let[p,g]of Object.entries(s))e.setRequestHeader(p,g);return e.onerror=()=>h&&h(null),e.onreadystatechange=()=>{if(e.readyState===rC.complete&&h){let p=this.parseJSON(e.responseText);h(p)}},u&&(e.ontimeout=u),e.send(l),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let a=[];for(var s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let l=t?`${t}[${s}]`:s,c=e[s];typeof c=="object"?a.push(this.serialize(c,l)):a.push(encodeURIComponent(l)+"="+encodeURIComponent(c))}return a.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let a=e.match(/\?/)?"&":"?";return`${e}${a}${this.serialize(t)}`}},iC=e=>{let t="",a=new Uint8Array(e),s=a.byteLength;for(let l=0;l<s;l++)t+=String.fromCharCode(a[l]);return btoa(t)},ii=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(ph)&&(this.authToken=atob(t[1].slice(ph.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=An.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+fh.websocket),"$1/"+fh.longpoll)}endpointURL(){return Yl.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,a){this.close(e,t,a),this.readyState=An.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===An.open||this.readyState===An.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:a,token:s,messages:l}=t;if(a===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=s}else a=0;switch(a){case 200:l.forEach(c=>{setTimeout(()=>this.onmessage({data:c}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=An.open,this.onopen({}),this.poll();break;
19case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${a}`)}})}send(e){typeof e!="string"&&(e=iC(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(`
20`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,a){for(let l of this.reqs)l.abort();this.readyState=An.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:a});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(e,t,a,s,l){let c,u=()=>{this.reqs.delete(c),s()};c=Yl.request(e,this.endpointURL(),t,a,this.timeout,u,h=>{this.reqs.delete(c),this.isActive()&&l(h)}),this.reqs.add(c)}},sC=class Os{constructor(t,a={}){let s=a.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(s.state,l=>{let{onJoin:c,onLeave:u,onSync:h}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Os.syncState(this.state,l,c,u),this.pendingDiffs.forEach(p=>{this.state=Os.syncDiff(this.state,p,c,u)}),this.pendingDiffs=[],h()}),this.channel.on(s.diff,l=>{let{onJoin:c,onLeave:u,onSync:h}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(l):(this.state=Os.syncDiff(this.state,l,c,u),h())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return Os.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,a,s,l){let c=this.clone(t),u={},h={};return this.map(c,(p,g)=>{a[p]||(h[p]=g)}),this.map(a,(p,g)=>{let y=c[p];if(y){let m=g.metas.map(R=>R.phx_ref),b=y.metas.map(R=>R.phx_ref),w=g.metas.filter(R=>b.indexOf(R.phx_ref)<0),S=y.metas.filter(R=>m.indexOf(R.phx_ref)<0);w.length>0&&(u[p]=g,u[p].metas=w),S.length>0&&(h[p]=this.clone(y),h[p].metas=S)}else u[p]=g}),this.syncDiff(c,{joins:u,leaves:h},s,l)}static syncDiff(t,a,s,l){let{joins:c,leaves:u}=this.clone(a);return s||(s=function(){}),l||(l=function(){}),this.map(c,(h,p)=>{let g=t[h];if(t[h]=this.clone(p),g){let y=t[h].metas.map(b=>b.phx_ref),m=g.metas.filter(b=>y.indexOf(b.phx_ref)<0);t[h].metas.unshift(...m)}s(h,g,p)}),this.map(u,(h,p)=>{let g=t[h];if(!g)return;let y=p.metas.map(m=>m.phx_ref);g.metas=g.metas.filter(m=>y.indexOf(m.phx_ref)<0),l(h,g,p),g.metas.length===0&&delete t[h]}),t}static list(t,a){return a||(a=function(s,l){return l}),this.map(t,(s,l)=>a(s,l))}static map(t,a){return Object.getOwnPropertyNames(t).map(s=>a(s,t[s]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Tl={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let a=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(a))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[a,s,l,c,u]=JSON.parse(e);return t({join_ref:a,ref:s,topic:l,event:c,payload:u})}},binaryEncode(e){let{join_ref:t,ref:a,event:s,topic:l,payload:c}=e,u=this.META_LENGTH+t.length+a.length+l.length+s.length,h=new ArrayBuffer(this.HEADER_LENGTH+u),p=new DataView(h),g=0;p.setUint8(g++,this.KINDS.push),p.setUint8(g++,t.length),p.setUint8(g++,a.length),p.setUint8(g++,l.length),p.setUint8(g++,s.length),Array.from(t,m=>p.setUint8(g++,m.charCodeAt(0))),Array.from(a,m=>p.setUint8(g++,m.charCodeAt(0))),Array.from(l,m=>p.setUint8(g++,m.charCodeAt(0))),Array.from(s,m=>p.setUint8(g++,m.charCodeAt(0)));var y=new Uint8Array(h.byteLength+c.byteLength);return y.set(new Uint8Array(h),0),y.set(new Uint8Array(c),h.byteLength),y.buffer},binaryDecode(e){let t=new DataView(e),a=t.getUint8(0),s=new TextDecoder;switch(a){case this.KINDS.push:return this.decodePush(e,t,s);case this.KINDS.reply:return this.decodeReply(e,t,s);
20case this.KINDS.broadcast:return this.decodeBroadcast(e,t,s)}},decodePush(e,t,a){let s=t.getUint8(1),l=t.getUint8(2),c=t.getUint8(3),u=this.HEADER_LENGTH+this.META_LENGTH-1,h=a.decode(e.slice(u,u+s));u=u+s;let p=a.decode(e.slice(u,u+l));u=u+l;let g=a.decode(e.slice(u,u+c));u=u+c;let y=e.slice(u,e.byteLength);return{join_ref:h,ref:null,topic:p,event:g,payload:y}},decodeReply(e,t,a){let s=t.getUint8(1),l=t.getUint8(2),c=t.getUint8(3),u=t.getUint8(4),h=this.HEADER_LENGTH+this.META_LENGTH,p=a.decode(e.slice(h,h+s));h=h+s;let g=a.decode(e.slice(h,h+l));h=h+l;let y=a.decode(e.slice(h,h+c));h=h+c;let m=a.decode(e.slice(h,h+u));h=h+u;let b=e.slice(h,e.byteLength),w={status:m,response:b};return{join_ref:p,ref:g,topic:y,event:Yn.reply,payload:w}},decodeBroadcast(e,t,a){let s=t.getUint8(1),l=t.getUint8(2),c=this.HEADER_LENGTH+2,u=a.decode(e.slice(c,c+s));c=c+s;let h=a.decode(e.slice(c,c+l));c=c+l;let p=e.slice(c,e.byteLength);return{join_ref:null,ref:null,topic:u,event:h,payload:p}}},oC=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||tC,this.transport=t.transport||_n.WebSocket||ii,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let a=null;try{a=_n&&_n.sessionStorage}catch{}this.sessionStore=t.sessionStorage||a,this.establishedConnections=0,this.defaultEncoder=Tl.encode.bind(Tl),this.defaultDecoder=Tl.decode.bind(Tl),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==ii?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let s=null;fi&&fi.addEventListener&&(fi.addEventListener("pagehide",l=>{this.conn&&(this.disconnect(),s=this.connectClock)}),fi.addEventListener("pageshow",l=>{s===this.connectClock&&(s=null,this.connect())}),fi.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=l=>t.rejoinAfterMs?t.rejoinAfterMs(l):[1e3,2e3,5e3][l-1]||1e4,this.reconnectAfterMs=l=>t.reconnectAfterMs?t.reconnectAfterMs(l):[10,50,100,150,200,250,500,1e3,2e3][l-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(l,c,u)=>{console.log(`${l}: ${c}`,u)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=xs(t.params||{}),this.endPoint=`${e}/${fh.websocket}`,this.vsn=t.vsn||eC,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new a0(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return ii}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Yl.appendParams(Yl.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,a){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,a)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=xs(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==ii?this.connectWithF
vendor: 4,353 bytes, line 20
20allback(ii,this.longPollFallbackMs):this.transportConnect())}log(e,t,a){this.logger&&this.logger(e,t,a)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),a=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let s=this.onMessage(l=>{l.ref===t&&(this.off([s]),e(Date.now()-a))});return!0}transportName(e){return e===ii?"LongPoll":e.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${ph}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let a=!1,s=!0,l,c,u=this.transportName(e),h=p=>{this.log("transport",`falling back to ${u}...`,p),this.off([l,c]),s=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${u}`))return h("memorized");this.fallbackTimer=setTimeout(h,t),c=this.onError(p=>{this.log("transport","error",p),s&&!a&&(clearTimeout(this.fallbackTimer),h(p))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(a=!0,!s){let p=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${p}`,"true"),this.log("transport",`established ${p} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(h,t),this.ping(p=>{this.log("transport","connected to primary after",p),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),nC,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,a){if(!this.conn)return e&&e();const s=this.conn;this.waitForBufferDone(s,()=>{t?s.close(t,a||""):s.close(),this.waitForSocketClosed(s,()=>{this.conn===s&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,a=1){if(a===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,a+1)},150*a)}waitForSocketClosed(e,t,a=1){if(a===5||e.readyState===An.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,a+1)},150*a)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,a=this.establishedConnections;this.triggerStateCallbacks("error",e,t,a),(t===this.transport||a>0)&&this.triggerChanError(e)}
20triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Yn.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case An.connecting:return"connecting";case An.open:return"open";case An.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([a])=>e.indexOf(a)===-1)}channel(e,t={}){let a=new aC(e,t,this);return this.channels.push(a),a}push(e){if(this.hasLogger()){let{topic:t,event:a,payload:s,ref:l,join_ref:c}=e;this.log("push",`${t} ${a} (${c}, ${l})`,s)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:a,event:s,payload:l,ref:c,join_ref:u}=t;if(c&&c===this.pendingHeartbeatRef){const h=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(l.status==="ok"?"ok":"error",h)}catch(p){this.log("error","error in heartbeat callback",p)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${l.status||""} ${a} ${s} ${c&&"("+c+")"||""}`.trim(),l);for(let h=0;h<this.channels.length;h++){const p=this.channels[h];p.isMember(a,s,l,u)&&p.trigger(s,l,c,u)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([a,s])=>{try{s(...t)}catch(l){this.log("error",`error in ${e} callback`,l)}})}catch(a){this.log("error",`error triggering ${e} callbacks`,a)}}leaveOpenTopic(e){let t=this.channels.find(a=>a.topic===e&&(a.isJoined()||a.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Is{constructor(t,a){const s=cC(a);this.presence=new sC(t.getChannel(),s),this.presence.onJoin((l,c,u)=>{const h=Is.onJoinPayload(l,c,u);t.getChannel().trigger("presence",h)}),this.presence.onLeave((l,c,u)=>{const h=Is.onLeavePayload(l,c,u);t.getChannel().trigger("presence",h)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Is.transformState(this.presence.state)}static transformState(t){return t=lC(t),Object.getOwnPropertyNames(t).reduce((a,s)=>{const l=t[s];return a[s]=zl(l),a},{})}static onJoinPayload(t,a,s){const l=Ky(a),c=zl(s);return{event:"join",key:t,currentPresences:l,newPresences:c}}static onLeavePayload(t,a,s){const l=Ky(a),c=zl(s);return{event:"leave",key:t,currentPresences:l,leftPresences:c}}}function zl(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function lC(e){return JSON.parse(JSON.stringify(e))}function cC(e){return e?.events&&{events:e.events}}function Ky(e){return e?.metas?zl(e):[]}var Yy;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Yy||(Yy={}));class uC{get state(){return this.presenceAdapter.state}constructor(t,a){this.channel=t,this.presenceAdapter=new Is(this.channel.channelAdapter,a)}}function dC(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
20if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const a=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${a}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class hC{constructor(t,a,s){const l=fC(s);this.channel=t.getSocket().channel(a,l),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,a){return this.channel.on(t,a)}off(t,a){this.channel.off(t,a)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,a,s){let l;try{l=this.channel.push(t,a,s)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>G1){const c=this.channel.pushBuffer.shift();c.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${c.event}`,c.payload())}return l}updateJoinPayload(t){const a=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},a),t)}canPush(){return this.socket.isConnected()&&this.state===xr.joined}isJoined(){return this.state===xr.joined}isJoining(){return this.state===xr.joining}isClosed(){return this.state===xr.closed}isLeaving(){return this.state===xr.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function fC(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var Jy;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Jy||(Jy={}));var yi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(yi||(yi={}));var Jn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Jn||(Jn={}));class Ls{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,a={config:{}},s){var l,c;if(this.topic=t,this.params=a,this.socket=s,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},a.config),this.channelAdapter=new hC(this.socket.socketAdapter,t,this.params),this.presence=new uC(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=r0(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((c=(l=this.params.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,a=this.timeout){var s,l,c;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:u,presence:h,private:p}}=this.params,g=(l=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(w=>w.filter))!==null&&l!==void 0?l:[],y=!!this.bindings[yi.PRESENCE]&&this.bindings[yi.PRESENCE].length>0||((c=this.params.config.presence)===null||c===void 0?void 0:c.enabled)===!0,m={},b={broadcast:u,presence:Object.assign(Object.assign({},h),{enabled:y}),postgres_changes:g,private:p};this.socket.accessTokenValue&&(m.access_token=this.socket.accessTokenValue),this._onError(w=>{t?.(Jn.CHANNEL_ERROR,dC(w))}),this._onClose(()=>t?.(Jn.CLOSED)),this.updateJoinPayload(Object.assign({config:b},m)),this._updateFilterMessage(),this.channelAdapter.subscribe(a).receive("ok",async({postgres_changes:w})=>{if(this.socket._isManualToken()||this.socket.setAuth(),w===void 0){t?.(Jn.SUBSCRIBED);return}this._updatePostgresBindings(w,t)}).receive("error",w=>{this.state=xr.errored;const S=Object.values(w).join(", ")||"error";t?.(Jn.CHANNEL_ERROR,new Error(S,{cause:w}))}).receive("timeout",()=>{t?.(Jn.TIMED_OUT)})}return this}_updatePostgresBindings(t,a){var s;const l=this.bindings.postgres_changes,c=(s=l?.length)!==null&&s!==void 0?s:0,u=[];for(let h=0;h<c;h++){const p=l[h],{filter:{event:g,schema:y,table:m,filter:b}}=p,w=t&&t[h];if(w&&w.event===g&&Ls.isFilterValueEqual(w.schema,y)&&Ls.isFilterValueEqual(w.table,m)&&Ls.isFilterValueEqual(w.filter,b))u.push(Object.assign(Object.assign({},p),{id:w.id}));else{this.unsubscribe(),this.state=xr.errored,a?.(Jn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=u,this.state!=xr.errored&&a&&a(Jn.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,a={}){return await this.send({type:"presence",event:"track",payload:t},a.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,a,s){const l=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),c=t===yi.PRESENCE||t===yi.POSTGRES_CHANGES;if(l&&c)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,a,s)}async httpSend(t,a,s={}){var l;if(a==null)return Promise.reject(new Error("Payload is required for httpSend()"));const c={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(c.Authorization=`Bearer ${this.socket.accessTokenValue}`);const u={method:"POST",headers:c,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:a,private:this.private}]})},h=await this._fetchWithTimeout(this.broadcastEndpointURL,u,(l=s.timeout)!==null&&l!==void 0?l:this.timeout);if(h.status===202)return{success:!0};let p=h.statusText;
20try{const g=await h.json();p=g.error||g.message||p}catch{}return Promise.reject(new Error(p))}async send(t,a={}){var s,l;if(!this.channelAdapter.canPush()&&t.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:c,payload:u}=t,h={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(h.Authorization=`Bearer ${this.socket.accessTokenValue}`);const p={method:"POST",headers:h,body:JSON.stringify({messages:[{topic:this.subTopic,event:c,payload:u,private:this.private}]})};try{const g=await this._fetchWithTimeout(this.broadcastEndpointURL,p,(s=a.timeout)!==null&&s!==void 0?s:this.timeout);return await((l=g.body)===null||l===void 0?void 0:l.cancel()),g.ok?"ok":"error"}catch(g){return g instanceof Error&&g.name==="AbortError"?"timed out":"error"}}else return new Promise(c=>{var u,h,p;const g=this.channelAdapter.push(t.type,t,a.timeout||this.timeout);t.type==="broadcast"&&!(!((p=(h=(u=this.params)===null||u===void 0?void 0:u.config)===null||h===void 0?void 0:h.broadcast)===null||p===void 0)&&p.ack)&&c("ok"),g.receive("ok",()=>c("ok")),g.receive("error",()=>c("error")),g.receive("timeout",()=>c("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(a=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>a("ok")).receive("timeout",()=>a("timed out")).receive("error",()=>a("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,a,s){const l=new AbortController,c=setTimeout(()=>l.abort(),s),u=await this.socket.fetch(t,Object.assign(Object.assign({},a),{signal:l.signal}));return clearTimeout(c),u}_on(t,a,s){const l=t.toLocaleLowerCase(),c=this.channelAdapter.on(t,s),u={type:l,filter:a,callback:s,ref:c};return this.bindings[l]?this.bindings[l].push(u):this.bindings[l]=[u],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,a,s)=>{var l,c,u,h,p,g,y;const m=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(m,s))return!1;const b=(l=this.bindings[m])===null||l===void 0?void 0:l.find(w=>w.ref===t.ref);if(!b)return!0;if(["broadcast","presence","postgres_changes"].includes(m))if("id"in b){const w=b.id,S=(c=b.filter)===null||c===void 0?void 0:c.event;return w&&((u=a.ids)===null||u===void 0?void 0:u.includes(w))&&(S==="*"||S?.toLocaleLowerCase()===((h=a.data)===null||h===void 0?void 0:h.type.toLocaleLowerCase()))}else{const w=(g=(p=b?.filter)===null||p===void 0?void 0:p.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return w==="*"||w===((y=a?.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return b.type.toLocaleLowerCase()===m})}_notThisChannelEvent(t,a){const{close:s,error:l,leave:c,join:u}=t0;return a&&[s,l,c,u].includes(t)&&a!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,a,s)=>{if(typeof a=="object"&&"ids"in a){const l=a.data,{schema:c,table:u,commit_timestamp:h,type:p,errors:g}=l;return Object.assign(Object.assign({},{schema:c,table:u,commit_timestamp:h,eventType:p,new:{},old:{},errors:g}),this._getPayloadRecords(l))}return a})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const a in t.bindings)for(const s of t.bindings[a])this._on(s.type,s.filter,s.callback)}static isFilterValueEqual(t,a){return(t??void 0)===(a??void 0)}_getPayloadRecords(t){const a={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(a.new=Fy(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(a.old=Fy(t.columns,t.old_record)),a}}class pC{constructor(t,a){this.socket=new oC(t,a)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,a,s,l=1e4){return new Promise(c=>{setTimeout(()=>c("timeout"),l),this.socket.disconnect(()=>{t(),c("ok")},a,s)})}push(t){this.socket.push(t)}log(t,a,s){this.socket.log(t,a,s)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==dh.connecting}isDisconnecting(){return this.socket.connectionState()==dh.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Qy={HEARTBEAT_INTERVAL:25e3},gC=[1e3,2e3,5e3,1e4],mC=1e4;function yC(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var a;return(a=Array.from(e.keys())[t])!==null&&a!==void 0?a:null},removeItem(t){e.delete(t)},setItem(t,a){e.set(t,String(a))}}}function vC(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return yC()}const bC=`
21  addEventListener("message", (e) => {
22    if (e.data.event === "start") {
23      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
24    }
25  });`;class wC{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,a){var s;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
25,this.ref=0,this.serializer=new F1,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=c=>c?(...u)=>c(...u):(...u)=>fetch(...u),!(!((s=a?.params)===null||s===void 0)&&s.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=a.params.apikey;const l=this._initializeOptions(a);this.socketAdapter=new pC(t,l),this.httpEndpoint=r0(t),this.fetch=this._resolveFetch(a?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const a=t.message;throw a.includes("Node.js")?new Error(`${a}
26
27To use Realtime in Node.js, you need to provide a WebSocket implementation:
28
29Option 1: Use Node.js 22+ which has native WebSocket support
30Option 2: Install and provide the "ws" package:
31
32  npm install ws
33
34  import ws from "ws"
35  const client = new RealtimeClient(url, {
36    ...options,
37    transport: ws
38  })`):new Error(`WebSocket not available: ${a}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,a){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,a)}getChannels(){return this.channels}async removeChannel(t){const a=await t.unsubscribe();return a==="ok"&&t.teardown(),a}async removeAllChannels(){const t=this.channels.map(async s=>{const l=await s.unsubscribe();return s.teardown(),l}),a=await Promise.all(t);return await this.disconnect(),a}log(t,a,s){this.socketAdapter.log(t,a,s)}connectionState(){return this.socketAdapter.connectionState()||dh.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,a={config:{}}){const s=`realtime:${t}`,l=this.getChannels().find(c=>c.topic===s);if(l)return l;{const c=new Ls(`realtime:${t}`,a,this);return this._cancelPendingDisconnect(),this.channels.push(c),c}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(a=>a.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
38this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let a,s=!1;if(t)a=t,s=!0;else if(this.accessToken)try{a=await this.accessToken()}catch(l){this.log("error","Error fetching access token from callback",l),a=this.accessTokenValue}else a=this.accessTokenValue;s?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=a&&(this.accessTokenValue=a,this.channels.forEach(l=>{const c={access_token:a,version:H1};a&&l.updateJoinPayload(c),l.joinedOnce&&l.channelAdapter.isJoined()&&l.channelAdapter.push(t0.access_token,{access_token:a})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(a=>{this.log("error",`Error setting auth in ${t}`,a)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(a=>{this.log("error","error waiting for auth on connect",a)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(a,s)=>{a=="sent"&&this._setAuthSafely(),t&&t(a,s)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=a=>{this.log("worker","worker error",a.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=a=>{a.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)}_workerObjectUrl(t){let a;if(t)a=t;else{const s=new Blob([bC],{type:"application/javascript"});a=URL.createObjectURL(s)}return a}_initializeOptions(t){var a,s,l,c,u,h,p,g,y,m,b,w;this.worker=(a=t?.worker)!==null&&a!==void 0?a:!1,this.accessToken=(s=t?.accessToken)!==null&&s!==void 0?s:null;const S={};S.timeout=(l=t?.timeout)!==null&&l!==void 0?l:V1,S.heartbeatIntervalMs=(c=t?.heartbeatIntervalMs)!==null&&c!==void 0?c:Qy.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(u=t?.disconnectOnEmptyChannelsAfterMs)!==null&&u!==void 0?u:2*((h=t?.heartbeatIntervalMs)!==null&&h!==void 0?h:Qy.HEARTBEAT_INTERVAL),S.transport=(p=t?.transport)!==null&&p!==void 0?p:z1.getWebSocketConstructor(),S.params=t?.params,S.logger=t?.logger,S.heartbeatCallback=this._wrapHeartbeatCallback(t?.heartbeatCallback),S.sessionStorage=(g=t?.sessionStorage)!==null&&g!==void 0?g:vC(),S.reconnectAfterMs=(y=t?.reconnectAfterMs)!==null&&y!==void 0?y:(C=>gC[C-1]||mC);let R,A;const E=(m=t?.vsn)!==null&&m!==void 0?m:q1;switch(E){case $1:R=(C,x)=>x(JSON.stringify(C)),A=(C,x)=>x(JSON.parse(C));break;case e0:R=this.serializer.encode.bind(this.serializer),A=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${S.vsn}`)}if(S.vsn=E,S.encode=(b=t?.encode)!==null&&b!==void 0?b:R,S.decode=(w=t?.decode)!==null&&w!==void 0?w:A,S.beforeReconnect=this._reconnectAuth.bind(this),(t?.logLevel||t?.log_level)&&(this.logLevel=t.logLevel||t.log_level,S.params=Object.assign(Object.assign({},S.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t?.workerUrl,S.autoSendHeartbeat=!this.worker}return S}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
38var Bs=class extends Error{constructor(e,t){super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&t.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function _C(e,t,a){const s=new URL(t,e);if(a)for(const[l,c]of Object.entries(a))c!==void 0&&s.searchParams.set(l,c);return s.toString()}async function SC(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function AC(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:a,path:s,query:l,body:c,headers:u}){const h=_C(e.baseUrl,s,l),p=await SC(e.auth),g=await t(h,{method:a,headers:{...c?{"Content-Type":"application/json"}:{},...p,...u},body:c?JSON.stringify(c):void 0}),y=await g.text(),m=(g.headers.get("content-type")||"").includes("application/json"),b=m&&y?JSON.parse(y):y;if(!g.ok){const w=m?b:void 0,S=w?.error;throw new Bs(S?.message??`Request failed with status ${g.status}`,{status:g.status,icebergType:S?.type,icebergCode:S?.code,details:w})}return{status:g.status,headers:g.headers,data:b}}}}function Cl(e){return e.join("�")}var EC=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Cl(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(s=>({namespace:s}))}async createNamespace(e,t){const a={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:a})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Cl(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Cl(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Cl(e.namespace)}`}),!0}catch(t){if(t instanceof Bs&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(a){if(a instanceof Bs&&a.status===409)return;throw a}}};function si(e){return e.join("�")}var RC=class{constructor(e,t="",a){this.client=e,this.prefix=t,this.accessDelegation=a}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const a={};return this.accessDelegation&&(a["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables`,body:t,headers:a})).data.metadata}async updateTable(e,t){const a=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":a.data["metadata-location"],metadata:a.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(a){if(a instanceof Bs&&a.status===404)return!1;throw a}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(a){if(a instanceof Bs&&a.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw a}}},TC=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const a=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=AC({baseUrl:a,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new EC(this.client,t),this.tableOps=new RC(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
38async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}function CC(e,t){if(Hs(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var s=a.call(e,t);if(Hs(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OC(e){var t=CC(e,"string");return Hs(t)=="symbol"?t:t+""}function kC(e,t,a){return(t=OC(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Xy(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,s)}return a}function ce(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Xy(Object(a),!0).forEach(function(s){kC(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Xy(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}var uc=class extends Error{constructor(e,t="storage",a,s){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=a,this.statusCode=s}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function dc(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var gh=class extends uc{constructor(e,t,a,s="storage"){super(e,s,t,a),this.name=s==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=a}toJSON(){return ce({},super.toJSON())}},i0=class extends uc{constructor(e,t,a="storage"){super(e,a),this.name=a==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function Jl(e,t,a){const s=ce({},e),l=t.toLowerCase();for(const c of Object.keys(s))c.toLowerCase()===l&&delete s[c];return s[l]=a,s}function xC(e){const t={};for(const[a,s]of Object.entries(e))t[a.toLowerCase()]=s;return t}const IC=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),LC=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mh=e=>{if(Array.isArray(e))return e.map(a=>mh(a));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([a,s])=>{const l=a.replace(/([-_][a-z])/gi,c=>c.toUpperCase().replace(/[-_]/g,""));t[l]=mh(s)}),t},jC=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Wy=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const a=t.error;if(typeof a.message=="string")return a.message}}return JSON.stringify(e)},NC=async(e,t,a,s)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const l=e;let c=parseInt(String(l.status),10);Number.isFinite(c)||(c=500),l.json().then(u=>{const h=u?.statusCode||u?.code||c+"";t(new gh(Wy(u),c,h,s))}).catch(()=>{const u=c+"";t(new gh(l.statusText||`HTTP ${c} error`,c,u,s))})}else t(new i0(Wy(e),e,s))},MC=(e,t,a,s)=>{const l={method:e,headers:t?.headers||{}};if(e==="GET"||e==="HEAD"||!s)return ce(ce({},l),a);if(LC(s)){var c;const u=t?.headers||{};let h;for(const[p,g]of Object.entries(u))p.toLowerCase()==="content-type"&&(h=g);l.headers=Jl(u,"Content-Type",(c=h)!==null&&c!==void 0?c:"application/json"),l.body=JSON.stringify(s)}else l.body=s;return t?.duplex&&(l.duplex=t.duplex),ce(ce({},l),a)};async function Ts(e,t,a,s,l,c,u){return new Promise((h,p)=>{e(a,MC(t,s,l,c)).then(g=>{if(!g.ok)throw g;if(s?.noResolveJson)return g;if(u==="vectors"){const y=g.headers.get("content-type");if(g.headers.get("content-length")==="0"||g.status===204)return{};if(!y||!y.includes("application/json"))return{}}return g.json()}).then(g=>h(g)).catch(g=>NC(g,p,s,u))})}function s0(e="storage"){return{get:async(t,a,s,l)=>Ts(t,"GET",a,s,l,void 0,e),post:async(t,a,s,l,c)=>Ts(t,"POST",a,l,c,s,e),put:async(t,a,s,l,c)=>Ts(t,"PUT",a,l,c,s,e),head:async(t,a,s,l)=>Ts(t,"HEAD",a,ce(ce({},s),{},{noResolveJson:!0}),l,void 0,e),remove:async(t,a,s,l,c)=>Ts(t,"DELETE",a,l,c,s,e)}}const DC=s0("storage"),{get:$s,post:un,put:yh,head:PC,remove:zh}=DC,Ft=s0("vectors");var Ai=class{constructor(e,t={},a,s="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=xC(t),this.fetch=IC(a),this.namespace=s}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=Jl(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(a){if(t.shouldThrowOnError)throw a;if(dc(a))return{data:null,error:a};throw a}}};let o0;o0=Symbol.toStringTag;var UC=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[o0]="StreamDownloadBuilder",this.promise=null}
38then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(dc(t))return{data:null,error:t};throw t}}};let l0;l0=Symbol.toStringTag;var zC=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[l0]="BlobDownloadBuilder",this.promise=null}asStream(){return new UC(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(dc(t))return{data:null,error:t};throw t}}};const BC={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Zy={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var HC=class extends Ai{constructor(e,t={},a,s){super(e,t,s,"storage"),this.bucketId=a}async uploadOrUpdate(e,t,a,s){var l=this;return l.handleOperation(async()=>{let c;const u=ce(ce({},Zy),s);let h=ce(ce({},l.headers),e==="POST"&&{"x-upsert":String(u.upsert)});const p=u.metadata;if(typeof Blob<"u"&&a instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),p&&c.append("metadata",l.encodeMetadata(p)),c.append("",a)):typeof FormData<"u"&&a instanceof FormData?(c=a,c.has("cacheControl")||c.append("cacheControl",u.cacheControl),p&&!c.has("metadata")&&c.append("metadata",l.encodeMetadata(p))):(c=a,h["cache-control"]=`max-age=${u.cacheControl}`,h["content-type"]=u.contentType,p&&(h["x-metadata"]=l.toBase64(l.encodeMetadata(p))),(typeof ReadableStream<"u"&&c instanceof ReadableStream||c&&typeof c=="object"&&"pipe"in c&&typeof c.pipe=="function")&&!u.duplex&&(u.duplex="half")),s?.headers)for(const[b,w]of Object.entries(s.headers))h=Jl(h,b,w);const g=l._removeEmptyFolders(t),y=l._getFinalPath(g),m=await(e=="PUT"?yh:un)(l.fetch,`${l.url}/object/${y}`,c,ce({headers:h},u?.duplex?{duplex:u.duplex}:{}));return{path:g,id:m.Id,fullPath:m.Key}})}async upload(e,t,a){return this.uploadOrUpdate("POST",e,t,a)}async uploadToSignedUrl(e,t,a,s){var l=this;const c=l._removeEmptyFolders(e),u=l._getFinalPath(c),h=new URL(l.url+`/object/upload/sign/${u}`);return h.searchParams.set("token",t),l.handleOperation(async()=>{let p;const g=ce(ce({},Zy),s);let y=ce(ce({},l.headers),{"x-upsert":String(g.upsert)});const m=g.metadata;if(typeof Blob<"u"&&a instanceof Blob?(p=new FormData,p.append("cacheControl",g.cacheControl),m&&p.append("metadata",l.encodeMetadata(m)),p.append("",a)):typeof FormData<"u"&&a instanceof FormData?(p=a,p.has("cacheControl")||p.append("cacheControl",g.cacheControl),m&&!p.has("metadata")&&p.append("metadata",l.encodeMetadata(m))):(p=a,y["cache-control"]=`max-age=${g.cac
38heControl}`,y["content-type"]=g.contentType,m&&(y["x-metadata"]=l.toBase64(l.encodeMetadata(m))),(typeof ReadableStream<"u"&&p instanceof ReadableStream||p&&typeof p=="object"&&"pipe"in p&&typeof p.pipe=="function")&&!g.duplex&&(g.duplex="half")),s?.headers)for(const[b,w]of Object.entries(s.headers))y=Jl(y,b,w);return{path:c,fullPath:(await yh(l.fetch,h.toString(),p,ce({headers:y},g?.duplex?{duplex:g.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var a=this;return a.handleOperation(async()=>{let s=a._getFinalPath(e);const l=ce({},a.headers);t?.upsert&&(l["x-upsert"]="true");const c=await un(a.fetch,`${a.url}/object/upload/sign/${s}`,{},{headers:l}),u=new URL(a.url+c.url),h=u.searchParams.get("token");if(!h)throw new uc("No token returned by API");return{signedUrl:u.toString(),path:e,token:h}})}async update(e,t,a){return this.uploadOrUpdate("PUT",e,t,a)}async move(e,t,a){var s=this;return s.handleOperation(async()=>await un(s.fetch,`${s.url}/object/move`,{bucketId:s.bucketId,sourceKey:e,destinationKey:t,destinationBucket:a?.destinationBucket},{headers:s.headers}))}async copy(e,t,a){var s=this;return s.handleOperation(async()=>({path:(await un(s.fetch,`${s.url}/object/copy`,{bucketId:s.bucketId,sourceKey:e,destinationKey:t,de
38stinationBucket:a?.destinationBucket},{headers:s.headers})).Key}))}async createSignedUrl(e,t,a){var s=this;return s.handleOperation(async()=>{let l=s._getFinalPath(e);const c=typeof a?.transform=="object"&&a.transform!==null&&Object.keys(a.transform).length>0;let u=await un(s.fetch,`${s.url}/object/sign/${l}`,ce({expiresIn:t},c?{transform:a.transform}:{}),{headers:s.headers});const h=new URLSearchParams;a?.download&&h.set("download",a.download===!0?"":a.download),a?.cacheNonce!=null&&h.set("cacheNonce",String(a.cacheNonce));const p=h.toString();return{signedUrl:encodeURI(`${s.url}${u.signedURL}${p?`&${p}`:""}`)}})}async createSignedUrls(e,t,a){var s=this;return s.handleOperation(async()=>{const l=await un(s.fetch,`${s.url}/object/sign/${s.bucketId}`,{expiresIn:t,paths:e},{headers:s.headers}),c=new URLSearchParams;a?.download&&c.set("download",a.download===!0?"":a.download),a?.cacheNonce!=null&&c.set("cacheNonce",String(a.cacheNonce));const u=c.toString();return l.map(h=>ce(ce({},h),{},{signedUrl:h.signedURL?encodeURI(`${s.url}${h.signedURL}${u?`&${u}`:""}`):null}))})}download(e,t,a){const s=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",l=new URLSearchParams;t?.transform&&this.applyTransformOptsToQuery(l,t.transform),t?.cacheNonce!=null&&l.set("cacheNonce",String(t.cacheNonce));const c=l.toString(),u=this._getFinalPath(e),h=()=>$s(this.fetch,`${this.url}/${s}/${u}${c?`?${c}`:""}`,{headers:this.headers,noResolveJson:!0},a);return new zC(h,this.shouldThrowOnError)}async info(e){var t=this;const a=t._getFinalPath(e);return t.handleOperation(async()=>mh(await $s(t.fetch,`${t.url}/object/info/${a}`,{headers:t.headers})))}async exists(e){var t=this;const a=t._getFinalPath(e);try{return await PC(t.fetch,`${t.url}/object/${a}`,{headers:t.headers}),{data:!0,error:null}}catch(l){if(t.shouldThrowOnError)throw l;if(dc(l)){var s;const c=l instanceof gh?l.status:l instanceof i0?(s=l.originalError)===null||s===void 0?void 0:s.status:void 0;if(c!==void 0&&[400,404].includes(c))return{data:!1,error:l}}throw l}}getPublicUrl(e,t){const a=this._getFinalPath(e),s=new URLSearchParams;t?.download&&s.set("download",t.download===!0?"":t.download),t?.transform&&this.applyTransformOptsToQuery(s,t.transform),t?.cacheNonce!=null&&s.set("cacheNonce",String(t.cacheNonce));const l=s.toString(),c=typeof t?.transform=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${c}/public/${a}`)+(l?`?${l}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await zh(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,a){var s=this;return s.handleOperation(async()=>{const l=ce(ce(ce({},BC),t),{},{prefix:e||""});return await un(s.fetch,`${s.url}/object/list/${s.bucketId}`,l,{headers:s.headers},a)})}async listV2(e,t){var a=this;return a.handleOperation(async()=>{const s=ce({},e);return await un(a.fetch,`${a.url}/object/list-v2/${a.bucketId}`,s,{headers:a.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const $C="2.106.2",Ws={"X-Client-Info":`storage-js/${$C}`};var qC=class extends Ai{constructor(e,t={},a,s){const l=new URL(e);s?.useNewHostname&&/supabase\.(co|in|red)$/.test(l.hostname)&&!l.hostname.includes("storage.supabase.")&&(l.hostname=l.hostname.replace("supabase.","storage.supabase."));const c=l.href.replace(/\/$/,""),u=ce(ce({},Ws),t);super(c,u,a,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const a=t.listBucketOptionsToQueryString(e);return await $s(t.fetch,`${t.url}/bucket${a}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await $s(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var a=this;return a.handleOperation(async()=>await un(a.fetch,`${a.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:a.headers}))}async updateBucket(e,t){var a=this;return a.handleOperation(async()=>await yh(a.fetch,`${a.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:a.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await un(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await zh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},VC=class extends Ai{constructor(e,t={},a){const s=e.replace(/\/$/,""),l=ce(ce({},Ws),t);super(s,l,a,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await un(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const a=new URLSearchParams;e?.limit!==void 0&&a.set("limit",e.limit.toString()),e?.offset!==void 0&&a.set("offset",e.offset.toString()),e?.sortColumn&&a.set("sortColumn",e.sortColumn),e?.sortOrder&&a.set("sortOrder",e.sortOrder),e?.search&&a.set("search",e.search);const s=a.toString(),l=s?`${t.url}/bucket?${s}`:`${t.url}/bucket`;return await $s(t.fetch,l,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await zh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!jC(e))throw new uc("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 a=new TC({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),s=this.shouldThrowOnError;return new Proxy(a,{get(l,c){const u=l[c];return typeof u!="function"?u:async(...h)=>{try{return{data:await u.apply(l,h),error:null}}catch(p){if(s)throw p;return{data:null,error:p}}}}})}},GC=class extends Ai{constructor(e,t={},a){const s=e.replace(/\/$/,""),l=ce(ce({},Ws),{},{"Content-Type":"application/json"},t);super(s,l,a,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Ft.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var a=this;return a.handleOperation(async()=>await Ft.post(a.fetch,`${a.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:a.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Ft.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var a=this;return a.handleOperation(async()=>await Ft.post(a.fetch,`${a.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:a.headers})||{})}},FC=class extends Ai{constructor(e,t={},a){const s=e.replace(/\/$/,""),l=ce(ce({},Ws),{},{"Content-Type":"application/json"},t);super(s,l,a,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Ft.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Ft.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
38if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Ft.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Ft.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Ft.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},KC=class extends Ai{constructor(e,t={},a){const s=e.replace(/\/$/,""),l=ce(ce({},Ws),{},{"Content-Type":"application/json"},t);super(s,l,a,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Ft.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Ft.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Ft.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Ft.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},YC=class extends KC{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new JC(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,a=this;return t().call(a,e)}async getBucket(e){var t=()=>super.getBucket,a=this;return t().call(a,e)}async listBuckets(e={}){var t=()=>super.listBuckets,a=this;return t().call(a,e)}async deleteBucket(e){var t=()=>super.deleteBucket,a=this;return t().call(a,e)}},JC=class extends GC{constructor(e,t,a,s){super(e,t,s),this.vectorBucketName=a}async createIndex(e){var t=()=>super.createIndex,a=this;return t().call(a,ce(ce({},e),{},{vectorBucketName:a.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,a=this;return t().call(a,ce(ce({},e),{},{vectorBucketName:a.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,a=this;return t().call(a,a.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,a=this;return t().call(a,a.vectorBucketName,e)}index(e){return new QC(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},QC=class extends FC{constructor(e,t,a,s,l){super(e,t,l),this.vectorBucketName=a,this.indexName=s}async putVectors(e){var t=()=>super.putVectors,a=this;return t().call(a,ce(ce({},e),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}async getVectors(e){var t=()=>super.getVectors,a=this;return t().call(a,ce(ce({},e),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,a=this;return t().call(a,ce(ce({},e),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,a=this;return t().call(a,ce(ce({},e),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,a=this;return t().call(a,ce(ce({},e),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}},XC=class extends qC{constructor(e,t={},a,s){super(e,t,a,s)}from(e){return new HC(this.url,this.headers,e,this.fetch)}get vectors(){return new YC(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new VC(this.url+"/iceberg",this.headers,this.fetch)}};const c0="2.106.2",pi=30*1e3,vh=3,Yd=vh*pi,WC="http://localhost:9999",ZC="supabase.auth.token",eO={"X-Client-Info":`gotrue-js/${c0}`},bh="X-Supabase-Api-Version",u0={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},tO=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,nO=600*1e3;
38class Si extends Error{constructor(t,a,s){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=a,this.code=s}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function Q(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class rO extends Si{constructor(t,a,s){super(t,a,s),this.name="AuthApiError",this.status=a,this.code=s}}function aO(e){return Q(e)&&e.name==="AuthApiError"}class hn extends Si{constructor(t,a){super(t),this.name="AuthUnknownError",this.originalError=a}}class er extends Si{constructor(t,a,s,l){super(t,s,l),this.name=a,this.status=s}}class ut extends er{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Ol(e){return Q(e)&&e.name==="AuthSessionMissingError"}class oi extends er{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class kl extends er{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class xl extends er{constructor(t,a=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=a}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function iO(e){return Q(e)&&e.name==="AuthImplicitGrantRedirectError"}class ev extends er{constructor(t,a=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=a}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class sO extends er{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 wh extends er{constructor(t,a){super(t,"AuthRetryableFetchError",a,void 0)}}function Jd(e){return Q(e)&&e.name==="AuthRetryableFetchError"}class tv extends er{constructor(t,a,s){super(t,"AuthWeakPasswordError",a,"weak_password"),this.reasons=s}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class _h extends er{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ql="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),nv=` 	
39\r=`.split(""),oO=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<nv.length;t+=1)e[nv[t].charCodeAt(0)]=-2;for(let t=0;t<Ql.length;t+=1)e[Ql[t].charCodeAt(0)]=t;return e})();function rv(e,t,a){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const s=t.queue>>t.queuedBits-6&63;a(Ql[s]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const s=t.queue>>t.queuedBits-6&63;a(Ql[s]),t.queuedBits-=6}}function d0(e,t,a){const s=oO[e];if(s>-1)for(t.queue=t.queue<<6|s,t.queuedBits+=6;t.queuedBits>=8;)a(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(s===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function av(e){const t=[],a=u=>{t.push(String.fromCodePoint(u))},s={utf8seq:0,codepoint:0},l={queue:0,queuedBits:0},c=u=>{uO(u,s,a)};for(let u=0;u<e.length;u+=1)d0(e.charCodeAt(u),l,c);return t.join("")}function lO(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function cO(e,t){for(let a=0;a<e.length;a+=1){let s=e.charCodeAt(a);if(s>55295&&s<=56319){const l=(s-55296)*1024&65535;s=(e.charCodeAt(a+1)-56320&65535|l)+65536,a+=1}lO(s,t)}}function uO(e,t,a){if(t.utf8seq===0){if(e<=127){a(e);return}for(let s=1;s<6;s+=1)if((e>>7-s&1)===0){t.utf8seq=s;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&a(t.codepoint)}}function _i(e){const t=[],a={queue:0,queuedBits:0},s=l=>{t.push(l)};for(let l=0;l<e.length;l+=1)d0(e.charCodeAt(l),a,s);return new Uint8Array(t)}function dO(e){const t=[];return cO(e,a=>t.push(a)),new Uint8Array(t)}function ha(e){const t=[],a={queue:0,queuedBits:0},s=l=>{t.push(l)};return e.forEach(l=>rv(l,a,s)),rv(null,a,s),t.join("")}function hO(e){return Math.round(Date.now()/1e3)+e}function fO(){return Symbol("auth-callback")}const bt=()=>typeof window<"u"&&typeof document<"u",aa={tested:!1,writable:!1},h0=()=>
39{if(!bt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(aa.tested)return aa.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),aa.tested=!0,aa.writable=!0}catch{aa.tested=!0,aa.writable=!1}return aa.writable};function pO(e){const t={},a=new URL(e);if(a.hash&&a.hash[0]==="#")try{new URLSearchParams(a.hash.substring(1)).forEach((l,c)=>{t[c]=l})}catch{}return a.searchParams.forEach((s,l)=>{t[l]=s}),t}const f0=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),gO=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",gi=async(e,t,a)=>{await e.setItem(t,JSON.stringify(a))},ia=async(e,t)=>{const a=await e.getItem(t);if(!a)return null;try{return JSON.parse(a)}catch{return null}},vt=async(e,t)=>{await e.removeItem(t)};class hc{constructor(){this.promise=new hc.promiseConstructor((t,a)=>{this.resolve=t,this.reject=a})}}hc.promiseConstructor=Promise;function Il(e){const t=e.split(".");if(t.length!==3)throw new _h("Invalid JWT structure");for(let s=0;s<t.length;s++)if(!tO.test(t[s]))throw new _h("JWT not in base64url format");return{header:JSON.parse(av(t[0])),payload:JSON.parse(av(t[1])),signature:_i(t[2]),raw:{header:t[0],payload:t[1]}}}async function mO(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function yO(e,t){return new Promise((s,l)=>{(async()=>{for(let c=0;c<1/0;c++)try{const u=await e(c);if(!t(c,null,u)){s(u);return}}catch(u){if(!t(c,u)){l(u);return}}})()})}function vO(e){return("0"+e.toString(16)).substr(-2)}function bO(){const t=new Uint32Array(56);if(typeof crypto>"u"){const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=a.length;let l="";for(let c=0;c<56;c++)l+=a.charAt(Math.floor(Math.random()*s));return l}return crypto.getRandomValues(t),Array.from(t,vO).join("")}async function wO(e){const a=new TextEncoder().encode(e),s=await crypto.subtle.digest("SHA-256",a),l=new Uint8Array(s);return Array.from(l).map(c=>String.fromCharCode(c)).join("")}async function _O(e){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."),e;const a=await wO(e);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function li(e,t,a=!1){const s=bO();let l=s;a&&(l+="/recovery"),await gi(e,`${t}-code-verifier`,l);const c=await _O(s);return[c,s===c?"plain":"s256"]}const SO=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function AO(e){const t=e.headers.get(bh);if(!t||!t.match(SO))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function EO(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function RO(e){switch(e){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 TO=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Kn(e){if(!TO.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function cn(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function Qd(){const e={};return new Proxy(e,{get:(t,a)=>{if(a==="__isUserNotAvailableProxy")return!0;if(typeof a=="symbol"){const s=a.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="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 "${a}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,a)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${a}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,a)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${a}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function CO(e,t){return new Proxy(e,{get:(a,s,l)=>{if(s==="__isInsecureUserWarningProxy")return!0;
39if(typeof s=="symbol"){const c=s.toString();if(c==="Symbol(Symbol.toPrimitive)"||c==="Symbol(Symbol.toStringTag)"||c==="Symbol(util.inspect.custom)"||c==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(a,s,l)}return!t.value&&typeof s=="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."),t.value=!0),Reflect.get(a,s,l)}})}function iv(e){return JSON.parse(JSON.stringify(e))}const sa=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},OO=[502,503,504,520,521,522,523,524,530];async function sv(e){var t;if(!gO(e))throw new wh(sa(e),0);if(OO.includes(e.status))throw new wh(sa(e),e.status);let a;try{a=await e.json()}catch(c){throw new hn(sa(c),c)}let s;const l=AO(e);if(l&&l.getTime()>=u0["2024-01-01"].timestamp&&typeof a=="object"&&a&&typeof a.code=="string"?s=a.code:typeof a=="object"&&a&&typeof a.error_code=="string"&&(s=a.error_code),s){if(s==="weak_password")throw new tv(sa(a),e.status,((t=a.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(s==="session_not_found")throw new ut}else if(typeof a=="object"&&a&&typeof a.weak_password=="object"&&a.weak_password&&Array.isArray(a.weak_password.reasons)&&a.weak_password.reasons.length&&a.weak_password.reasons.reduce((c,u)=>c&&typeof u=="string",!0))throw new tv(sa(a),e.status,a.weak_password.reasons);throw new rO(sa(a),e.status||500,s)}const kO=(e,t,a,s)=>{const l={method:e,headers:t?.headers||{}};return e==="GET"?l:(l.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t?.headers),l.body=JSON.stringify(s),Object.assign(Object.assign({},l),a))};async function ee(e,t,a,s){var l;const c=Object.assign({},s?.headers);c[bh]||(c[bh]=u0["2024-01-01"].name),s?.jwt&&(c.Authorization=`Bearer ${s.jwt}`);const u=(l=s?.query)!==null&&l!==void 0?l:{};s?.redirectTo&&(u.redirect_to=s.redirectTo);const h=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",p=await xO(e,t,a+h,{headers:c,noResolveJson:s?.noResolveJson},{},s?.body);return s?.xform?s?.xform(p):{data:Object.assign({},p),error:null}}async function xO(e,t,a,s,l,c){const u=kO(t,s,l,c);let h;try{h=await e(a,Object.assign({},u))}catch(p){throw console.error(p),new wh(sa(p),0)}if(h.ok||await sv(h),s?.noResolveJson)return h;try{return await h.json()}catch(p){await sv(p)}}function rn(e){var t;let a=null;jO(e)&&(a=Object.assign({},e),e.expires_at||(a.expires_at=hO(e.expires_in)));const s=(t=e.user)!==null&&t!==void 0?t:typeof e?.id=="string"?e:null;return{data:{session:a,user:s},error:null}}function ov(e){const t=rn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((a,s)=>a&&typeof s=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Ir(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function IO(e){return{data:e,error:null}}function LO(e){const{action_link:t,email_otp:a,hashed_token:s,redirect_to:l,verification_type:c}=e,u=cc(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),h={action_link:t,email_otp:a,hashed_token:s,redirect_to:l,verification_type:c},p=Object.assign({},u);return{data:{properties:h,user:p},error:null}}function lv(e){return e}function jO(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const Xd=["global","local","others"];class NO{_encodePathSegment(t){if(t==="."||t==="..")throw new Si("Invalid path segment");return encodeURIComponent(t)}constructor({url:t="",headers:a={},fetch:s,experimental:l}){this.url=t,this.headers=a,this.fetch=f0(s),this.experimental=l??{},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)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}
39async signOut(t,a=Xd[0]){if(Xd.indexOf(a)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Xd.join(", ")}`);try{return await ee(this.fetch,"POST",`${this.url}/logout?scope=${a}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(s){if(Q(s))return{data:null,error:s};throw s}}async inviteUserByEmail(t,a={}){try{return await ee(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:a.data},headers:this.headers,redirectTo:a.redirectTo,xform:Ir})}catch(s){if(Q(s))return{data:{user:null},error:s};throw s}}async generateLink(t){try{const{options:a}=t,s=cc(t,["options"]),l=Object.assign(Object.assign({},s),a);return"newEmail"in s&&(l.new_email=s?.newEmail,delete l.newEmail),await ee(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:l,headers:this.headers,xform:LO,redirectTo:a?.redirectTo})}catch(a){if(Q(a))return{data:{properties:null,user:null},error:a};throw a}}async createUser(t){try{return await ee(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Ir})}catch(a){if(Q(a))return{data:{user:null},error:a};throw a}}async listUsers(t){var a,s,l,c,u,h,p;try{const g={nextPage:null,lastPage:0,total:0},y=await ee(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(a=t?.page)===null||a===void 0?void 0:a.toString())!==null&&s!==void 0?s:"",per_page:(c=(l=t?.perPage)===null||l===void 0?void 0:l.toString())!==null&&c!==void 0?c:""},xform:lv});if(y.error)throw y.error;const m=await y.json(),b=(u=y.headers.get("x-total-count"))!==null&&u!==void 0?u:0,w=(p=(h=y.headers.get("link"))===null||h===void 0?void 0:h.split(","))!==null&&p!==void 0?p:[];return w.length>0&&(w.forEach(S=>{const R=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),A=JSON.parse(S.split(";")[1].split("=")[1]);g[`${A}Page`]=R}),g.total=parseInt(b)),{data:Object.assign(Object.assign({},m),g),error:null}}catch(g){if(Q(g))return{data:{users:[]},error:g};throw g}}async getUserById(t){Kn(t);try{return await ee(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Ir})}catch(a){if(Q(a))return{data:{user:null},error:a};throw a}}async updateUserById(t,a){Kn(t);try{return await ee(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:a,headers:this.headers,xform:Ir})}catch(s){if(Q(s))return{data:{user:null},error:s};throw s}}async deleteUser(t,a=!1){Kn(t);try{return await ee(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:a},xform:Ir})}catch(s){if(Q(s))return{data:{user:null},error:s};throw s}}async _listFactors(t){Kn(t.userId);try{const{data:a,error:s}=await ee(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:l=>({data:{factors:l},error:null})});return{data:a,error:s}}catch(a){if(Q(a))return{data:null,error:a};throw a}}async _deleteFactor(t){Kn(t.userId),Kn(t.id);try{return{data:await ee(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(a){if(Q(a))return{data:null,error:a};throw a}}async _listOAuthClients(t){var a,s,l,c,u,h,p;try{const g={nextPage:null,lastPage:0,total:0},y=await ee(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(a=t?.page)===null||a===void 0?void 0:a.toString())!==null&&s!==void 0?s:"",per_page:(c=(l=t?.perPage)===null||l===void 0?void 0:l.toString())!==null&&c!==void 0?c:""},xform:lv});if(y.error)throw y.error;const m=await y.json(),b=(u=y.headers.get("x-total-count"))!==null&&u!==void 0?u:0,w=(p=(h=y.headers.get("link"))===null||h===void 0?void 0:h.split(","))!==null&&p!==void 0?p:[];return w.length>0&&(w.forEach(S=>{const R=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),A=JSON.parse(S.split(";")[1].split("=")[1]);g[`${A}Page`]=R}),g.total=parseInt(b)),{data:Object.assign(Object.assign({},m),g),error:null}}catch(g){if(Q(g))return{data:{clients:[]},error:g};throw g}}async _createOAuthClient(t){try{return await ee(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(Q(a))return{data:null,error:a};throw a}}async _getOAuthClient(t){try{const a=this._encodePathSegment(t);return await ee(this.fetch,"GET",`${this.url}/admin/oauth/clients/${a}`,{headers:this.headers,xform:s=>({data:s,error:null})})}catch(a){if(Q(a))return{data:null,error:a};throw a}}async _updateOAuthClient(t,a){try{const s=this._encodePathSegment(t);return await ee(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${s}`,{body:a,headers:this.headers,xform:l=>({data:l,error:null})})}catch(s){if(Q(s))return{data:null,error:s};throw s}}async _deleteOAuthClient(t){try{const a=this._encodePathSegment(t);
39return await ee(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${a}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(a){if(Q(a))return{data:null,error:a};throw a}}async _regenerateOAuthClientSecret(t){try{const a=this._encodePathSegment(t);return await ee(this.fetch,"POST",`${this.url}/admin/oauth/clients/${a}/regenerate_secret`,{headers:this.headers,xform:s=>({data:s,error:null})})}catch(a){if(Q(a))return{data:null,error:a};throw a}}async _listCustomProviders(t){try{const a={};return t?.type&&(a.type=t.type),await ee(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:a,xform:s=>{var l;return{data:{providers:(l=s?.providers)!==null&&l!==void 0?l:[]},error:null}}})}catch(a){if(Q(a))return{data:{providers:[]},error:a};throw a}}async _createCustomProvider(t){try{return await ee(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(Q(a))return{data:null,error:a};throw a}}async _getCustomProvider(t){try{const a=this._encodePathSegment(t);return await ee(this.fetch,"GET",`${this.url}/admin/custom-providers/${a}`,{headers:this.headers,xform:s=>({data:s,error:null})})}catch(a){if(Q(a))return{data:null,error:a};throw a}}async _updateCustomProvider(t,a){try{const s=this._encodePathSegment(t);return await ee(this.fetch,"PUT",`${this.url}/admin/custom-providers/${s}`,{body:a,headers:this.headers,xform:l=>({data:l,error:null})})}catch(s){if(Q(s))return{data:null,error:s};throw s}}async _deleteCustomProvider(t){try{const a=this._encodePathSegment(t);return await ee(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${a}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(a){if(Q(a))return{data:null,error:a};throw a}}async _adminListPasskeys(t){cn(this.experimental),Kn(t.userId);try{return await ee(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(Q(a))return{data:null,error:a};throw a}}async _adminDeletePasskey(t){cn(this.experimental),Kn(t.userId),Kn(t.passkeyId);try{return await ee(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(a){if(Q(a))return{data:null,error:a};throw a}}}function cv(e={}){return{getItem:t=>e[t]||null,setItem:(t,a)=>{e[t]=a},removeItem:t=>{delete e[t]}}}const bn={debug:!!(globalThis&&h0()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
39class p0 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class uv extends p0{}async function MO(e,t,a){bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const s=new globalThis.AbortController;let l;t>0&&(l=setTimeout(()=>{s.abort(),bn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:s.signal},async c=>{if(c){clearTimeout(l),bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,c.name);try{return await a()}finally{bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,c.name)}}else{if(t===0)throw bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new uv(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(bn.debug)try{const u=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(u,null,"  "))}catch(u){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",u)}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"),clearTimeout(l),await a()}})}catch(c){if(t>0&&clearTimeout(l),c!==null&&typeof c=="object"&&"name"in c&&c.name==="AbortError"&&t>0){if(s.signal.aborted)return bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async u=>{if(u){bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,u.name);try{return await a()}finally{bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,u.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await a()}));throw bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new uv(`Lock "${e}" was released because another request stole it`)}throw c}}function DO(){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 g0(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function PO(e){return parseInt(e,16)}function UO(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,s=>s.toString(16).padStart(2,"0")).join("")}function zO(e){var t;const{chainId:a,domain:s,expirationTime:l,issuedAt:c=new Date,nonce:u,notBefore:h,requestId:p,resources:g,scheme:y,uri:m,version:b}=e;{if(!Number.isInteger(a))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${a}`);if(!s)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(u&&u.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${u}`);if(!m)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(b!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${b}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
40`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const w=g0(e.address),S=y?`${y}://${s}`:s,R=e.statement?`${e.statement}
41`:"",A=`${S}
41 wants you to sign in with your Ethereum account:
42${w}
43
44${R}`;let E=`URI: ${m}
45Version: ${b}
46Chain ID: ${a}${u?`
47Nonce: ${u}`:""}
48Issued At: ${c.toISOString()}`;if(l&&(E+=`
49Expiration Time: ${l.toISOString()}`),h&&(E+=`
50Not Before: ${h.toISOString()}`),p&&(E+=`
51Request ID: ${p}`),g){let C=`
52Resources:`;for(const x of g){if(!x||typeof x!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${x}`);C+=`
53- ${x}`}E+=C}return`${A}
54${E}`}class rt extends Error{constructor({message:t,code:a,cause:s,name:l}){var c;super(t,{cause:s}),this.__isWebAuthnError=!0,this.name=(c=l??(s instanceof Error?s.name:void 0))!==null&&c!==void 0?c:"Unknown Error",this.code=a}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Xl extends rt{constructor(t,a){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:a,message:t}),this.name="WebAuthnUnknownError",this.originalError=a}}function BO({error:e,options:t}){var a,s,l;const{publicKey:c}=t;if(!c)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new rt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((a=c.authenticatorSelection)===null||a===void 0?void 0:a.requireResidentKey)===!0)return new rt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((s=c.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new rt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((l=c.authenticatorSelection)===null||l===void 0?void 0:l.userVerification)==="required")return new rt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new rt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new rt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return c.pubKeyCredParams.filter(h=>h.type==="public-key").length===0?new rt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new rt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const u=window.location.hostname;if(m0(u)){if(c.rp.id!==u)return new rt({message:`The RP ID "${c.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new rt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(c.user.id.byteLength<1||c.user.id.byteLength>64)return new rt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new rt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new rt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function HO({error:e,options:t}){const{publicKey:a}=t;if(!a)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new rt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new rt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const s=window.location.hostname;if(m0(s)){if(a.rpId!==s)return new rt({message:`The RP ID "${a.rpId}
54" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new rt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new rt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new rt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class $O{createNewAbortSignal(){if(this.controller){const a=new Error("Cancelling existing WebAuthn API call for new one");a.name="AbortError",this.controller.abort(a)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const Sh=new $O;function dv(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:a,excludeCredentials:s}=e,l=cc(e,["challenge","user","excludeCredentials"]),c=_i(t).buffer,u=Object.assign(Object.assign({},a),{id:_i(a.id).buffer}),h=Object.assign(Object.assign({},l),{challenge:c,user:u});if(s&&s.length>0){h.excludeCredentials=new Array(s.length);for(let p=0;p<s.length;p++){const g=s[p];h.excludeCredentials[p]=Object.assign(Object.assign({},g),{id:_i(g.id).buffer,type:g.type||"public-key",transports:g.transports})}}return h}function hv(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:a}=e,s=cc(e,["challenge","allowCredentials"]),l=_i(t).buffer,c=Object.assign(Object.assign({},s),{challenge:l});if(a&&a.length>0){c.allowCredentials=new Array(a.length);for(let u=0;u<a.length;u++){const h=a[u];c.allowCredentials[u]=Object.assign(Object.assign({},h),{id:_i(h.id).buffer,type:h.type||"public-key",transports:h.transports})}}return c}function fv(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const a=e;return{id:e.id,rawId:e.id,response:{attestationObject:ha(new Uint8Array(e.response.attestationObject)),clientDataJSON:ha(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=a.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function pv(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const a=e,s=e.getClientExtensionResults(),l=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:ha(new Uint8Array(l.authenticatorData)),clientDataJSON:ha(new Uint8Array(l.clientDataJSON)),signature:ha(new Uint8Array(l.signature)),userHandle:l.userHandle?ha(new Uint8Array(l.userHandle)):void 0},type:"public-key",clientExtensionResults:s,authenticatorAttachment:(t=a.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function m0(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Wl(){var e,t;return!!(bt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.get)=="function")}async function y0(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Xl("Browser returned unexpected credential type",t)}:{data:null,error:new Xl("Empty credential response",t)}}catch(t){return{data:null,error:BO({error:t,options:e})}}}async function v0(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Xl("Browser returned unexpected credential type",t)}:{data:null,error:new Xl("Empty credential response",t)}}
54catch(t){return{data:null,error:HO({error:t,options:e})}}}const qO={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},VO={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Zl(...e){const t=l=>l!==null&&typeof l=="object"&&!Array.isArray(l),a=l=>l instanceof ArrayBuffer||ArrayBuffer.isView(l),s={};for(const l of e)if(l)for(const c in l){const u=l[c];if(u!==void 0)if(Array.isArray(u))s[c]=u;else if(a(u))s[c]=u;else if(t(u)){const h=s[c];t(h)?s[c]=Zl(h,u):s[c]=Zl(u)}else s[c]=u}return s}function GO(e,t){return Zl(qO,e,t||{})}function FO(e,t){return Zl(VO,e,t||{})}class KO{constructor(t){this.client=t,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(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:a,friendlyName:s,signal:l},c){var u;try{const{data:h,error:p}=await this.client.mfa.challenge({factorId:t,webauthn:a});if(!h)return{data:null,error:p};const g=l??Sh.createNewAbortSignal();if(h.webauthn.type==="create"){const{user:y}=h.webauthn.credential_options.publicKey;if(!y.name){const m=s;if(m)y.name=`${y.id}:${m}`;else{const w=(await this.client.getUser()).data.user,S=((u=w?.user_metadata)===null||u===void 0?void 0:u.name)||w?.email||w?.id||"User";y.name=`${y.id}:${S}`}}y.displayName||(y.displayName=y.name)}switch(h.webauthn.type){case"create":{const y=GO(h.webauthn.credential_options.publicKey,c?.create),{data:m,error:b}=await y0({publicKey:y,signal:g});return m?{data:{factorId:t,challengeId:h.id,webauthn:{type:h.webauthn.type,credential_response:m}},error:null}:{data:null,error:b}}case"request":{const y=FO(h.webauthn.credential_options.publicKey,c?.request),{data:m,error:b}=await v0(Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:y,signal:g}));return m?{data:{factorId:t,challengeId:h.id,webauthn:{type:h.webauthn.type,credential_response:m}},error:null}:{data:null,error:b}}}}catch(h){return Q(h)?{data:null,error:h}:{data:null,error:new hn("Unexpected error in challenge",h)}}}async _verify({challengeId:t,factorId:a,webauthn:s}){return this.client.mfa.verify({factorId:a,challengeId:t,webauthn:s})}async _authenticate({factorId:t,webauthn:{rpId:a=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:l}={}},c){if(!a)return{data:null,error:new Si("rpId is required for WebAuthn authentication")};try{if(!Wl())return{data:null,error:new hn("Browser does not support WebAuthn",null)};const{data:u,error:h}=await this.challenge({factorId:t,webauthn:{rpId:a,rpOrigins:s},signal:l},{request:c});if(!u)return{data:null,error:h};const{webauthn:p}=u;return this._verify({factorId:t,challengeId:u.challengeId,webauthn:{type:p.type,rpId:a,rpOrigins:s,credential_response:p.credential_response}})}catch(u){return Q(u)?{data:null,error:u}:{data:null,error:new hn("Unexpected error in authenticate",u)}}}async _register({friendlyName:t,webauthn:{rpId:a=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:l}={}},c){if(!a)return{data:null,error:new Si("rpId is required for WebAuthn registration")};try{if(!Wl())return{data:null,error:new hn("Browser does not support WebAuthn",null)};const{data:u,error:h}=await this._enroll({friendlyName:t});if(!u)return await this.client.mfa.listFactors().then(y=>{var m;return(m=y.data)===null||m===void 0?void 0:m.all.find(b=>b.factor_type==="webauthn"&&b.friendly_name===t&&b.status!=="unverified")}).then(y=>y?this.client.mfa.unenroll({factorId:y?.id}):void 0),{data:null,error:h};const{data:p,error:g}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:a,rpOrigins:s},signal:l},{create:c});return p?this._verify({factorId:u.id,challengeId:p.challengeId,webauthn:{rpId:a,rpOrigins:s,type:p.webauthn.type,credential_response:p.webauthn.credential_response}}):{data:null,error:g}}catch(u){return Q(u)?{data:null,error:u}:{data:null,error:new hn("Unexpected error in register",u)}}}}DO();const YO={url:WC,storageKey:ZC,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:eO,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};
54async function gv(e,t,a){return await a()}const ci={};class qs{get jwks(){var t,a;return(a=(t=ci[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&a!==void 0?a:{keys:[]}}set jwks(t){ci[this.storageKey]=Object.assign(Object.assign({},ci[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,a;return(a=(t=ci[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&a!==void 0?a:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){ci[this.storageKey]=Object.assign(Object.assign({},ci[this.storageKey]),{cachedAt:t})}constructor(t){var a,s,l,c;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=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 u=Object.assign(Object.assign({},YO),t);if(this.storageKey=u.storageKey,this.instanceID=(a=qs.nextInstanceID[this.storageKey])!==null&&a!==void 0?a:0,qs.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!u.debug,typeof u.debug=="function"&&(this.logger=u.debug),this.instanceID>0&&bt()){const h=`${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(h),this.logDebugMessages&&console.trace(h)}if(this.persistSession=u.persistSession,this.autoRefreshToken=u.autoRefreshToken,this.experimental=(s=u.experimental)!==null&&s!==void 0?s:{},this.admin=new NO({url:u.url,headers:u.headers,fetch:u.fetch,experimental:this.experimental}),this.url=u.url,this.headers=u.headers,this.fetch=f0(u.fetch),this.lock=u.lock||gv,this.detectSessionInUrl=u.detectSessionInUrl,this.flowType=u.flowType,this.hasCustomAuthorizationHeader=u.hasCustomAuthorizationHeader,this.throwOnError=u.throwOnError,this.lockAcquireTimeout=u.lockAcquireTimeout,u.lock?this.lock=u.lock:this.persistSession&&bt()&&(!((l=globalThis?.navigator)===null||l===void 0)&&l.locks)?this.lock=MO:this.lock=gv,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 KO(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.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(u.storage?this.storage=u.storage:h0()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=cv(this.memoryStorage)),u.userStorage&&(this.userStorage=u.userStorage)):(this.memoryStorage={},this.storage=cv(this.memoryStorage)),bt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(h){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",h)}(c=this.broadcastChannel)===null||c===void 0||c.addEventListener("message",async h=>{this._debug("received broadcast notification from other tab or client",h);try{await this._notifyAllSubscribers(h.data.event,h.data.session,!1)}catch(p){this._debug("#broadcastChannel","error",p)}})}u.skipAutoInitialize||this.initialize().catch(h=>{this._debug("#initialize()","error",h)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${c0}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let a={},s="none";if(bt()&&(a=pO(window.location.href),this._isImplicitGrantCallback(a)?s="implicit":await this._isPKCECallback(a)&&(s="pkce")),bt()&&this.detectSessionInUrl&&s!=="none"){const{data:l,error:c}=await this._getSessionFromURL(a,s);if(c){if(this._debug("#_initialize()","error detecting session from URL",c),iO(c)){const p=(t=c.details)===null||t===void 0?void 0:t.code;if(p==="identity_already_exists"||p==="identity_not_found"||p==="single_identity_not_deletable")return{error:c}}return{error:c}}const{session:u,redirectType:h}=l;return this._debug("#_initialize()","detected session in URL",u,"redirect type",h),await this._saveSession(u),setTimeout(async()=>{h==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",u):await this._notifyAllSubscribers("SIGNED_IN",u)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(a){return Q(a)?this._returnResult({error:a}):this._returnResult({error:new hn("Unexpected error during initialization",a)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var a,s,l;try{const c=await ee(this.fetch,"POST",`${this.url}
54/signup`,{headers:this.headers,body:{data:(s=(a=t?.options)===null||a===void 0?void 0:a.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:(l=t?.options)===null||l===void 0?void 0:l.captchaToken}},xform:rn}),{data:u,error:h}=c;if(h||!u)return this._returnResult({data:{user:null,session:null},error:h});const p=u.session,g=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",p)),this._returnResult({data:{user:g,session:p},error:null})}catch(c){if(Q(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signUp(t){var a,s,l;try{let c;if("email"in t){const{email:y,password:m,options:b}=t;let w=null,S=null;this.flowType==="pkce"&&([w,S]=await li(this.storage,this.storageKey)),c=await ee(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:b?.emailRedirectTo,body:{email:y,password:m,data:(a=b?.data)!==null&&a!==void 0?a:{},gotrue_meta_security:{captcha_token:b?.captchaToken},code_challenge:w,code_challenge_method:S},xform:rn})}else if("phone"in t){const{phone:y,password:m,options:b}=t;c=await ee(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:y,password:m,data:(s=b?.data)!==null&&s!==void 0?s:{},channel:(l=b?.channel)!==null&&l!==void 0?l:"sms",gotrue_meta_security:{captcha_token:b?.captchaToken}},xform:rn})}else throw new kl("You must provide either an email or phone number and a password");const{data:u,error:h}=c;if(h||!u)return await vt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:h});const p=u.session,g=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",p)),this._returnResult({data:{user:g,session:p},error:null})}catch(c){if(await vt(this.storage,`${this.storageKey}-code-verifier`),Q(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signInWithPassword(t){try{let a;if("email"in t){const{email:c,password:u,options:h}=t;a=await ee(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:c,password:u,gotrue_meta_security:{captcha_token:h?.captchaToken}},xform:ov})}else if("phone"in t){const{phone:c,password:u,options:h}=t;a=await ee(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:c,password:u,gotrue_meta_security:{captcha_token:h?.captchaToken}},xform:ov})}else throw new kl("You must provide either an email or phone number and a password");const{data:s,error:l}=a;if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!s||!s.session||!s.user){const c=new oi;return this._returnResult({data:{user:null,session:null},error:c})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:l})}catch(a){if(Q(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithOAuth(t){var a,s,l,c;return await this._handleProviderSignIn(t.provider,{redirectTo:(a=t.options)===null||a===void 0?void 0:a.redirectTo,scopes:(s=t.options)===null||s===void 0?void 0:s.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:(c=t.options)===null||c===void 0?void 0:c.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:a}=t;switch(a){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${a}"`)}}async signInWithEthereum(t){var a,s,l,c,u,h,p,g,y,m,b;let w,S;if("message"in t)w=t.message,S=t.signature;else{const{chain:R,wallet:A,statement:E,options:C}=t;let x;if(bt())if(typeof A=="object")x=A;else{const Y=window;if("ethereum"in Y&&typeof Y.ethereum=="object"&&"request"in Y.ethereum&&typeof Y.ethereum.request=="function")x=Y.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 A!="object"||!C?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=A}const M=new URL((a=C?.url)!==null&&a!==void 0?a:window.location.href),$=await x.request({method:"eth_requestAccounts"}).then(Y=>Y).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!$||$.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const G=g0($[0]);let D=(s=C?.signInWithEthereum)===null||s===void 0?void 0:s.chainId;if(!D){const Y=await x.request({method:"eth_chainId"});D=PO(Y)}const F={domain:M.host,address:G,statement:E,uri:M.href,version:"1",chainId:D,nonce:(l=C?.signInWithEthereum)===null||l===void 0?void 0:l.nonce,issuedAt:(u=(c=C?.signInWithEthereum)===null||c===void 0?void 0:c.issuedAt)!==null&&u!==void 0?u:new Date,expirationTime:(h=C?.signInWithEthereum)===null||h===void 0?void 0:h.expirationTime,notBefore:(p=C?.signInWithEthereum)===null||p===void 0?void 0:p.notBefore,requestId:(g=C?.signInWithEthereum)===null||g===void 0?void 0:g.requestId,resources:(y=C?.signInWithEthereum)===null||y===void 0?void 0:y.resources};w=zO(F),S=await x.request({method:"personal_sign",params:[UO(w),G]})}try{const{data:R,error:A}=await ee(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:w,signature:S},!((m=t.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(b=t.options)===null||b===void 0?void 0:b.captchaToken}}:null),xform:rn});if(A)throw A;
54if(!R||!R.session||!R.user){const E=new oi;return this._returnResult({data:{user:null,session:null},error:E})}return R.session&&(await this._saveSession(R.session),await this._notifyAllSubscribers("SIGNED_IN",R.session)),this._returnResult({data:Object.assign({},R),error:A})}catch(R){if(Q(R))return this._returnResult({data:{user:null,session:null},error:R});throw R}}async signInWithSolana(t){var a,s,l,c,u,h,p,g,y,m,b,w;let S,R;if("message"in t)S=t.message,R=t.signature;else{const{chain:A,wallet:E,statement:C,options:x}=t;let M;if(bt())if(typeof E=="object")M=E;else{const G=window;if("solana"in G&&typeof G.solana=="object"&&("signIn"in G.solana&&typeof G.solana.signIn=="function"||"signMessage"in G.solana&&typeof G.solana.signMessage=="function"))M=G.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 E!="object"||!x?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");M=E}const $=new URL((a=x?.url)!==null&&a!==void 0?a:window.location.href);if("signIn"in M&&M.signIn){const G=await M.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},x?.signInWithSolana),{version:"1",domain:$.host,uri:$.href}),C?{statement:C}:null));let D;if(Array.isArray(G)&&G[0]&&typeof G[0]=="object")D=G[0];else if(G&&typeof G=="object"&&"signedMessage"in G&&"signature"in G)D=G;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in D&&"signature"in D&&(typeof D.signedMessage=="string"||D.signedMessage instanceof Uint8Array)&&D.signature instanceof Uint8Array)S=typeof D.signedMessage=="string"?D.signedMessage:new TextDecoder().decode(D.signedMessage),R=D.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in M)||typeof M.signMessage!="function"||!("publicKey"in M)||typeof M!="object"||!M.publicKey||!("toBase58"in M.publicKey)||typeof M.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");S=[`${$.host} wants you to sign in with your Solana account:`,M.publicKey.toBase58(),...C?["",C,""]:[""],"Version: 1",`URI: ${$.href}`,`Issued At: ${(l=(s=x?.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&l!==void 0?l:new Date().toISOString()}`,...!((c=x?.signInWithSolana)===null||c===void 0)&&c.notBefore?[`Not Before: ${x.signInWithSolana.notBefore}`]:[],...!((u=x?.signInWithSolana)===null||u===void 0)&&u.expirationTime?[`Expiration Time: ${x.signInWithSolana.expirationTime}`]:[],...!((h=x?.signInWithSolana)===null||h===void 0)&&h.chainId?[`Chain ID: ${x.signInWithSolana.chainId}`]:[],...!((p=x?.signInWithSolana)===null||p===void 0)&&p.nonce?[`Nonce: ${x.signInWithSolana.nonce}`]:[],...!((g=x?.signInWithSolana)===null||g===void 0)&&g.requestId?[`Request ID: ${x.signInWithSolana.requestId}`]:[],...!((m=(y=x?.signInWithSolana)===null||y===void 0?void 0:y.resources)===null||m===void 0)&&m.length?["Resources",...x.signInWithSolana.resources.map(D=>`- ${D}`)]:[]].join(`
55`);const G=await M.signMessage(new TextEncoder().encode(S),"utf8");if(!G||!(G instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");R=G}}try{const{data:A,error:E}=await ee(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:S,signature:ha(R)},!((b=t.options)===null||b===void 0)&&b.captchaToken?{gotrue_meta_security:{captcha_token:(w=t.options)===null||w===void 0?void 0:w.captchaToken}}:null),xform:rn});if(E)throw E;if(!A||!A.session||!A.user){const C=new oi;return this._returnResult({data:{user:null,session:null},error:C})}
55return A.session&&(await this._saveSession(A.session),await this._notifyAllSubscribers("SIGNED_IN",A.session)),this._returnResult({data:Object.assign({},A),error:E})}catch(A){if(Q(A))return this._returnResult({data:{user:null,session:null},error:A});throw A}}async _exchangeCodeForSession(t){const a=await ia(this.storage,`${this.storageKey}-code-verifier`),[s,l]=(a??"").split("/");try{if(!s&&this.flowType==="pkce")throw new sO;const{data:c,error:u}=await ee(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:s},xform:rn});if(await vt(this.storage,`${this.storageKey}-code-verifier`),u)throw u;if(!c||!c.session||!c.user){const h=new oi;return this._returnResult({data:{user:null,session:null,redirectType:null},error:h})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers(l==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c.session)),this._returnResult({data:Object.assign(Object.assign({},c),{redirectType:l??null}),error:u})}catch(c){if(await vt(this.storage,`${this.storageKey}-code-verifier`),Q(c))return this._returnResult({data:{user:null,session:null,redirectType:null},error:c});throw c}}async signInWithIdToken(t){try{const{options:a,provider:s,token:l,access_token:c,nonce:u}=t,h=await ee(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:l,access_token:c,nonce:u,gotrue_meta_security:{captcha_token:a?.captchaToken}},xform:rn}),{data:p,error:g}=h;if(g)return this._returnResult({data:{user:null,session:null},error:g});if(!p||!p.session||!p.user){const y=new oi;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:p,error:g})}catch(a){if(Q(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithOtp(t){var a,s,l,c,u;try{if("email"in t){const{email:h,options:p}=t;let g=null,y=null;this.flowType==="pkce"&&([g,y]=await li(this.storage,this.storageKey));const{error:m}=await ee(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:h,data:(a=p?.data)!==null&&a!==void 0?a:{},create_user:(s=p?.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},code_challenge:g,code_challenge_method:y},redirectTo:p?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:m})}if("phone"in t){const{phone:h,options:p}=t,{data:g,error:y}=await ee(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:h,data:(l=p?.data)!==null&&l!==void 0?l:{},create_user:(c=p?.shouldCreateUser)!==null&&c!==void 0?c:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},channel:(u=p?.channel)!==null&&u!==void 0?u:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:g?.message_id},error:y})}throw new kl("You must provide either an email or phone number.")}catch(h){if(await vt(this.storage,`${this.storageKey}-code-verifier`),Q(h))return this._returnResult({data:{user:null,session:null},error:h});throw h}}async verifyOtp(t){var a,s;try{let l,c;"options"in t&&(l=(a=t.options)===null||a===void 0?void 0:a.redirectTo,c=(s=t.options)===null||s===void 0?void 0:s.captchaToken);const{data:u,error:h}=await ee(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:c}}),redirectTo:l,xform:rn});if(h)throw h;if(!u)throw new Error("An error occurred on token verification.");const p=u.session,g=u.user;return p?.access_token&&(await this._saveSession(p),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",p)),this._returnResult({data:{user:g,session:p},error:null})}catch(l){if(Q(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signInWithSSO(t){var a,s,l,c,u;try{let h=null,p=null;this.flowType==="pkce"&&([h,p]=await li(this.storage,this.storageKey));const g=await ee(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(s=(a=t.options)===null||a===void 0?void 0:a.redirectTo)!==null&&s!==void 0?s:void 0}),!((l=t?.options)===null||l===void 0)&&l.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:h,code_challenge_method:p}),headers:this.headers,xform:IO});return!((c=g.data)===null||c===void 0)&&c.url&&bt()&&!(!((u=t.options)===null||u===void 0)&&u.skipBrowserRedirect)&&window.location.assign(g.data.url),this._returnResult(g)}catch(h){if(await vt(this.storage,`${this.storageKey}-code-verifier`),Q(h))return this._returnResult({data:null,error:h});throw h}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:a},error:s}=t;if(s)throw s;if(!a)throw new ut;const{error:l}=await ee(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:a.access_token});return this._returnResult({data:{user:null,session:null},error:l})})}catch(t){if(Q(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const a=`${this.url}/resend`;if("email"in t){const{email:s,type:l,options:c}=t,{error:u}=await ee(this.fetch,"POST",a,{headers:this.headers,body:{email:s,type:l,gotrue_meta_security:{captcha_token:c?.captchaToken}},redirectTo:c?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:u})}else if("phone"in t){const{phone:s,type:l,options:c}=t,{data:u,error:h}=await ee(this.fetch,"POST",a,{headers:this.headers,body:{phone:s,type:l,gotrue_meta_security:{captcha_token:c?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:u?.message_id},error:h})}throw new kl("You must provide either an email or phone number and a type")}catch(a){if(Q(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async a=>a))}async _acquireLock(t,a){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const s=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),l=(async()=>(await s,await a()))();return this.pendingInLock.push((async()=>{try{await l}catch{}})()),l}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const s=a();for(this.pendingInLock.push((async()=>{try{await s}catch{}})()),await s;this.pendingInLock.length;){const l=[...this.pendingInLock];await Promise.all(l),this.pendingInLock.splice(0,l.length)}return await s}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const a=await this.__loadSession();return await t(a)}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 t=null;const a=await ia(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",a),a!==null&&(this._isValidSession(a)?t=a:(this._debug("#getSession()","session from storage is not val
55id"),await this._removeSession())),!t)return{data:{session:null},error:null};const s=t.expires_at?t.expires_at*1e3-Date.now()<Yd:!1;if(this._debug("#__loadSession()",`session has${s?"":" not"} expired`,"expires_at",t.expires_at),!s){if(this.userStorage){const u=await ia(this.userStorage,this.storageKey+"-user");u?.user?t.user=u.user:t.user=Qd()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const u={value:this.suppressGetSessionWarning};t.user=CO(t.user,u),u.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);return c?this._returnResult({data:{session:null},error:c}):this._returnResult({data:{session:l},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const a=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return a.data.user&&(this.suppressGetSessionWarning=!0),a}async _getUser(t){try{return t?await ee(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Ir}):await this._useSession(async a=>{var s,l,c;const{data:u,error:h}=a;if(h)throw h;return!(!((s=u.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ut}:await ee(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(c=(l=u.session)===null||l===void 0?void 0:l.access_token)!==null&&c!==void 0?c:void 0,xform:Ir})})}catch(a){if(Q(a))return Ol(a)&&(await this._removeSession(),await vt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:a});throw a}}async updateUser(t,a={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,a))}async _updateUser(t,a={}){try{return await this._useSession(async s=>{const{data:l,error:c}=s;if(c)throw c;if(!l.session)throw new ut;const u=l.session;let h=null,p=null;this.flowType==="pkce"&&t.email!=null&&([h,p]=await li(this.storage,this.storageKey));const{data:g,error:y}=await ee(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:a?.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:h,code_challenge_method:p}),jwt:u.access_token,xform:Ir});if(y)throw y;return u.user=g.user,await this._saveSession(u),await this._notifyAllSubscribers("USER_UPDATED",u),this._returnResult({data:{user:u.user},error:null})})}catch(s){if(await vt(this.storage,`${this.storageKey}-code-verifier`),Q(s))return this._returnResult({data:{user:null},error:s});throw s}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new ut;const a=Date.now()/1e3;let s=a,l=!0,c=null;const{payload:u}=Il(t.access_token);if(u.exp&&(s=u.exp,l=s<=a),l){const{data:h,error:p}=await this._callRefreshToken(t.refresh_token);if(p)return this._returnResult({data:{user:null,session:null},error:p});if(!h)return{data:{user:null,session:null},error:null};c=h}else{const{data:h,error:p}=await this._getUser(t.access_token);if(p)return this._returnResult({data:{user:null,session:null},error:p});c={access_token:t.access_token,refresh_token:t.refresh_token,user:h.user,token_type:"bearer",expires_in:s-a,expires_at:s},await this._saveSession(c),await this._notifyAllSubscribers("SIGNED_IN",c)}return this._returnResult({data:{user:c.user,session:c},error:null})}catch(a){if(Q(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async a=>{var s;if(!t){const{data:u,error:h}=a;if(h)throw h;t=(s=u.session)!==null&&s!==void 0?s:void 0}if(!t?.refresh_token)throw new ut;const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);return c?this._returnResult({data:{user:null,session:null},error:c}):l?this._returnResult({data:{user:l.user,session:l},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(a){if(Q(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async _getSessionFromURL(t,a){var s;try{if(!bt())throw new xl("No browser detected.");
55if(t.error||t.error_description||t.error_code)throw new xl(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(a){case"implicit":if(this.flowType==="pkce")throw new ev("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new xl("Not a valid implicit grant flow url.");break;default:}if(a==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new ev("No code detected.");const{data:x,error:M}=await this._exchangeCodeForSession(t.code);if(M)throw M;const $=new URL(window.location.href);return $.searchParams.delete("code"),window.history.replaceState(window.history.state,"",$.toString()),{data:{session:x.session,redirectType:(s=x.redirectType)!==null&&s!==void 0?s:null},error:null}}const{provider_token:l,provider_refresh_token:c,access_token:u,refresh_token:h,expires_in:p,expires_at:g,token_type:y}=t;if(!u||!p||!h||!y)throw new xl("No session defined in URL");const m=Math.round(Date.now()/1e3),b=parseInt(p);let w=m+b;g&&(w=parseInt(g));const S=w-m;S*1e3<=pi&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${S}s, should have been closer to ${b}s`);const R=w-b;m-R>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",R,w,m):m-R<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",R,w,m);const{data:A,error:E}=await this._getUser(u);if(E)throw E;const C={provider_token:l,provider_refresh_token:c,access_token:u,expires_in:b,expires_at:w,refresh_token:h,token_type:y,user:A.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:C,redirectType:t.type},error:null})}catch(l){if(Q(l))return this._returnResult({data:{session:null,redirectType:null},error:l});throw l}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const a=await ia(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&a)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async a=>{var s;const{data:l,error:c}=a;if(c&&!Ol(c))return this._returnResult({error:c});const u=(s=l.session)===null||s===void 0?void 0:s.access_token;if(u){const{error:h}=await this.admin.signOut(u,t);if(h&&!(aO(h)&&(h.status===404||h.status===401||h.status===403)||Ol(h)))return this._returnResult({error:h})}return t!=="others"&&(await this._removeSession(),await vt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const a=fO(),s={id:a,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",a),this.stateChangeEmitters.delete(a)}};return this._debug("#onAuthStateChange()","registered callback with id",a),this.stateChangeEmitters.set(a,s),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(a)})))(),{data:{subscription:s}}}async _emitInitialSession(t){return await this._useSession(async a=>{var s,l;try{const{data:{session:c},error:u}=a;if(u)throw u;await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",c)),this._debug("INITIAL_SESSION","callback id",t,"session",c)}catch(c){await((l=this.stateChangeEmitters.get(t))===null||l===void 0?void 0:l.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",c),Ol(c)?console.warn(c):console.error(c)}})}async resetPasswordForEmail(t,a={}){let s=null,l=null;this.flowType==="pkce"&&([s,l]=await li(this.storage,this.storageKey,!0));try{return await ee(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:s,code_challenge_method:l,gotrue_meta_security:{captcha_token:a.captchaToken}},headers:this.headers,redirectTo:a.redirectTo})}catch(c){if(await vt(this.storage,`${this.storageKey}-code-verifier`),Q(c))return this._returnResult({data:null,error:c});throw c}}async getUserIdentities(){var t;try{const{data:a,error:s}=await this.getUser();if(s)throw s;return this._returnResult({data:{identities:(t=a.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var a;try{const{data:s,error:l}=await this._useSession(async c=>{var u,h,p,g,y;const{data:m,error:b}=c;if(b)throw b;const w=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(u=t.options)===null||u===void 0?void 0:u.redirectTo,scopes:(h=t.options)===null||h===void 0?void 0:h.scopes,queryParams:(p=t.options)===null||p===void 0?void 0:p.queryParams,skipBrowserRedirect:!0});return await ee(this.fetch,"GET",w,{headers:this.headers,jwt:(y=(g=m.session)===null||g===void 0?void 0:g.access_token)!==null&&y!==void 0?y:void 0})});if(l)throw l;return bt()&&!(!((a=t.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(s?.url),this._returnResult({data:{provider:t.provider,url:s?.url},error:null})}catch(s){if(Q(s))return this._returnResult({data:{provider:t.provider,url:null},error:s});throw s}}async linkIdentityIdToken(t){return await this._useSession(async a=>{var s;try{const{error:l,data:{session:c}}=a;if(l)throw l;const{options:u,provider:h,token:p,access_token:g,nonce:y}=t,m=await ee(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(s=c?.access_token)!==null&&s!==void 0?s:void 0,body:{provider:h,id_token:p,access_token:g,nonce:y,link_identity:!0,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:rn}),{data:b,error:w}=m;return w?this._returnResult({data:{user:null,session:null},error:w}
55):!b||!b.session||!b.user?this._returnResult({data:{user:null,session:null},error:new oi}):(b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("USER_UPDATED",b.session)),this._returnResult({data:b,error:w}))}catch(l){if(await vt(this.storage,`${this.storageKey}-code-verifier`),Q(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}})}async unlinkIdentity(t){try{return await this._useSession(async a=>{var s,l;const{data:c,error:u}=a;if(u)throw u;return await ee(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(l=(s=c.session)===null||s===void 0?void 0:s.access_token)!==null&&l!==void 0?l:void 0})})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async _refreshAccessToken(t){const a=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(a,"begin");try{const s=Date.now();return await yO(async l=>(l>0&&await mO(200*Math.pow(2,l-1)),this._debug(a,"refreshing attempt",l),await ee(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:rn})),(l,c)=>{const u=200*Math.pow(2,l);return c&&Jd(c)&&Date.now()+u-s<pi})}catch(s){if(this._debug(a,"error",s),Q(s))return this._returnResult({data:{session:null,user:null},error:s});throw s}finally{this._debug(a,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,a){const s=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:a.redirectTo,scopes:a.scopes,queryParams:a.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",a,"url",s),bt()&&!a.skipBrowserRedirect&&window.location.assign(s),{data:{provider:t,url:s},error:null}}async _recoverAndRefresh(){var t,a;const s="#_recoverAndRefresh()";this._debug(s,"begin");try{const l=await ia(this.storage,this.storageKey);if(l&&this.userStorage){let u=await ia(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!u&&(u={user:l.user},await gi(this.userStorage,this.storageKey+"-user",u)),l.user=(t=u?.user)!==null&&t!==void 0?t:Qd()}else if(l&&!l.user&&!l.user){const u=await ia(this.storage,this.storageKey+"-user");u&&u?.user?(l.user=u.user,await vt(this.storage,this.storageKey+"-user"),await gi(this.storage,this.storageKey,l)):l.user=Qd()}if(this._debug(s,"session from storage",l),!this._isValidSession(l)){this._debug(s,"session is not valid"),l!==null&&await this._removeSession();return}const c=((a=l.expires_at)!==null&&a!==void 0?a:1/0)*1e3-Date.now()<Yd;if(this._debug(s,`session has${c?"":" not"} expired with margin of ${Yd}s`),c){if(this.autoRefreshToken&&l.refresh_token){const{error:u}=await this._callRefreshToken(l.refresh_token);u&&(console.error(u),Jd(u)||(this._debug(s,"refresh failed with a non-retryable error, removing the session",u),await this._removeSession()))}}else if(l.user&&l.user.__isUserNotAvailableProxy===!0)try{const{data:u,error:h}=await this._getUser(l.access_token);!h&&u?.user?(l.user=u.user,await this._saveSession(l),await this._notifyAllSubscribers("SIGNED_IN",l)):this._debug(s,"could not get user data, skipping SIGNED_IN notification")}catch(u){console.error("Error getting user data:",u),this._debug(s,"error getting user data, skipping SIGNED_IN notification",u)}else await this._notifyAllSubscribers("SIGNED_IN",l)}catch(l){this._debug(s,"error",l),console.error(l);return}finally{this._debug(s,"end")}}async _callRefreshToken(t){var a,s;if(!t)throw new ut;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const l=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(l,"begin");try{this.refreshingDeferred=new hc;const{data:c,error:u}=await this._refreshAccessToken(t);if(u)throw u;if(!c.session)throw new ut;await this._saveSession(c.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",c.session);const h={data:c.session,error:null};return this.refreshingDeferred.resolve(h),h}catch(c){if(this._debug(l,"error",c),Q(c)){const u={data:null,error:c};return Jd(c)||await this._removeSession(),(a=this.refreshingDeferred)===null||a===void 0||a.resolve(u),u}throw(s=this.refreshingDeferred)===null||s===void 0||s.reject(c),c}finally{this.refreshingDeferred=null,this._debug(l,"end")}}async _notifyAllSubscribers(t,a,s=!0){const l=`#_notifyAllSubscribers(${t})`;this._debug(l,"begin",a,`broadcast = ${s}`);try{this.broadcastChannel&&s&&this.broadcastChannel.postMessage({event:t,session:a});const c=[],u=Array.from(this.stateChangeEmitters.values()).map(async h=>{try{await h.callback(t,a)}catch(p){c.push(p)}});if(await Promise.all(u),c.length>0){for(let h=0;h<c.length;h+=1)console.error(c[h]);throw c[0]}}finally{this._debug(l,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await vt(this.storage,`${this.storageKey}-code-verifier`);const a=Object.assign({},t),s=a.user&&a.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!s&&a.user&&await gi(this.userStorage,this.storageKey+"-user",{user:a.user});const l=Object.assign({},a);delete l.user;const c=iv(l);await gi(this.storage,this.storageKey,c)}else{const l=iv(a);await gi(this.storage,this.storageKey,l)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await vt(this.storage,this.storageKey),await vt(this.storage,this.storageKey+"-code-verifier"),await vt(this.storage,this.storageKey+"-user"),this.userStorage&&await vt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&bt()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",t)}
55catch(a){console.error("removing visibilitychange callback failed",a)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),pi);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const a=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=a,a&&typeof a=="object"&&typeof a.unref=="function"?a.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(a)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const a=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,a&&clearTimeout(a)}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 t=Date.now();try{return await this._useSession(async a=>{const{data:{session:s}}=a;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const l=Math.floor((s.expires_at*1e3-t)/pi);this._debug("#_autoRefreshTokenTick()",`access token expires in ${l} ticks, a tick lasts ${pi}ms, refresh threshold is ${vh} ticks`),l<=vh&&await this._callRefreshToken(s.refresh_token)})}catch(a){console.error("Auto refresh tick failed with error. This is likely a transient error.",a)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof p0)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!bt()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const a=`#_onVisibilityChanged(${t})`;this._debug(a,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(a,"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(t,a,s){const l=[`provider=${encodeURIComponent(a)}`];if(s?.redirectTo&&l.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),s?.scopes&&l.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[c,u]=await li(this.storage,this.storageKey),h=new URLSearchParams({code_challenge:`${encodeURIComponent(c)}`,code_challenge_method:`${encodeURIComponent(u)}`});l.push(h.toString())}if(s?.queryParams){const c=new URLSearchParams(s.queryParams);l.push(c.toString())}return s?.skipBrowserRedirect&&l.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${t}?${l.join("&")}`}async _unenroll(t){try{return await this._useSession(async a=>{var s;const{data:l,error:c}=a;return c?this._returnResult({data:null,error:c}):await ee(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(s=l?.session)===null||s===void 0?void 0:s.access_token})})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async _enroll(t){try{return await this._useSession(async a=>{var s,l;const{data:c,error:u}=a;if(u)return this._returnResult({data:null,error:u});const h=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:p,error:g}=await ee(this.fetch,"POST",`${this.url}/factors`,{body:h,headers:this.headers,jwt:(s=c?.session)===null||s===void 0?void 0:s.access_token});return g?this._returnResult({data:null,error:g}):(t.factorType==="totp"&&p.type==="totp"&&(!((l=p?.totp)===null||l===void 0)&&l.qr_code)&&(p.totp.qr_code=`data:image/svg+xml;utf-8,${p.totp.qr_code}`),this._returnResult({data:p,error:null}))})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async a=>{var s;const{data:l,error:c}=a;if(c)return this._returnResult({data:null,error:c});const u=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?fv(t.webauthn.credential_response):pv(t.webauthn.credential_response)})}:{code:t.code}),{data:h,error:p}=await ee(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:u,headers:this.headers,jwt:(s=l?.session)===null||s===void 0?void 0:s.access_token});return p?this._returnResult({data:null,error:p}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+h.expires_in},h)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",h),this._returnResult({data:h,error:p}))})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async a=>{var s;const{data:l,error:c}=a;if(c)return this._returnResult({data:null,error:c});const u=await ee(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(s=l?.session)===null||s===void 0?void 0:s.access_token});if(u.error)return u;const{data:h}=u;if(h.type!=="webauthn")return{data:h,error:null};switch(h.webauthn.type){case"create":return{data:Object.assign(Object.assign({},h),{webauthn:Object.assign(Object.assign({},h.webauthn),{credential_options:Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:dv(h.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},h),{webauthn:Object.assign(Object.assign({},h.webauthn),{credential_options:Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:hv(h.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}})}async _challengeAndVerify(t){const{data:a,error:s}=await this._challenge({factorId:t.factorId});return s?this._returnResult({data:null,error:s}):await this._verify({factorId:t.factorId,challengeId:a.id,code:t.code})}async _listFactors(){var t;const{data:{user:a},error:s}=await this.getUser();if(s)return{data:null,error:s};const l={all:[],phone:[],totp:[],webauthn:[]};for(const c of(t=a?.factors)!==null&&t!==void 0?t:[])l.all.push(c),c.status==="verified"&&l[c.factor_type].push(c);return{data:l,error:null}}async _getAuthenticatorAssuranceLevel(t){var a,s,l,c;if(t)try{const{payload:w}=Il(t);let S=null;w.aal&&(S=w.aal);let R=S;const{data:{user:A},error:E}=await this.getUser(t);if(E)return this._returnResult({data:null,error:E});((s=(a=A?.factors)===null||a===void 0?void 0:a.filter(M=>M.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(R="aal2");const x=w.amr||[];return{data:{currentLevel:S,nextLevel:R,currentAuthenticationMethods:x},error:null}}catch(w){if(Q(w))return this._returnResult({data:null,error:w});throw w}const{data:{session:u},error:h}
55=await this.getSession();if(h)return this._returnResult({data:null,error:h});if(!u)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:p}=Il(u.access_token);let g=null;p.aal&&(g=p.aal);let y=g;((c=(l=u.user.factors)===null||l===void 0?void 0:l.filter(w=>w.status==="verified"))!==null&&c!==void 0?c:[]).length>0&&(y="aal2");const b=p.amr||[];return{data:{currentLevel:g,nextLevel:y,currentAuthenticationMethods:b},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async a=>{const{data:{session:s},error:l}=a;return l?this._returnResult({data:null,error:l}):s?await ee(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:s.access_token,xform:c=>({data:c,error:null})}):this._returnResult({data:null,error:new ut})})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async _approveAuthorization(t,a){try{return await this._useSession(async s=>{const{data:{session:l},error:c}=s;if(c)return this._returnResult({data:null,error:c});if(!l)return this._returnResult({data:null,error:new ut});const u=await ee(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:l.access_token,body:{action:"approve"},xform:h=>({data:h,error:null})});return u.data&&u.data.redirect_url&&bt()&&!a?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(s){if(Q(s))return this._returnResult({data:null,error:s});throw s}}async _denyAuthorization(t,a){try{return await this._useSession(async s=>{const{data:{session:l},error:c}=s;if(c)return this._returnResult({data:null,error:c});if(!l)return this._returnResult({data:null,error:new ut});const u=await ee(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:l.access_token,body:{action:"deny"},xform:h=>({data:h,error:null})});return u.data&&u.data.redirect_url&&bt()&&!a?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(s){if(Q(s))return this._returnResult({data:null,error:s});throw s}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:a},error:s}=t;return s?this._returnResult({data:null,error:s}):a?await ee(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:a.access_token,xform:l=>({data:l,error:null})}):this._returnResult({data:null,error:new ut})})}catch(t){if(Q(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async a=>{const{data:{session:s},error:l}=a;return l?this._returnResult({data:null,error:l}):s?(await ee(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:s.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new ut})})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async fetchJwk(t,a={keys:[]}){let s=a.keys.find(h=>h.kid===t);if(s)return s;const l=Date.now();if(s=this.jwks.keys.find(h=>h.kid===t),s&&this.jwks_cached_at+nO>l)return s;const{data:c,error:u}=await ee(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(u)throw u;return!c.keys||c.keys.length===0||(this.jwks=c,this.jwks_cached_at=l,s=c.keys.find(h=>h.kid===t),!s)?null:s}async getClaims(t,a={}){try{let s=t;if(!s){const{data:w,error:S}
55=await this.getSession();if(S||!w.session)return this._returnResult({data:null,error:S});s=w.session.access_token}const{header:l,payload:c,signature:u,raw:{header:h,payload:p}}=Il(s);a?.allowExpired||EO(c.exp);const g=!l.alg||l.alg.startsWith("HS")||!l.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(l.kid,a?.keys?{keys:a.keys}:a?.jwks);if(!g){const{error:w}=await this.getUser(s);if(w)throw w;return{data:{claims:c,header:l,signature:u},error:null}}const y=RO(l.alg),m=await crypto.subtle.importKey("jwk",g,y,!0,["verify"]);if(!await crypto.subtle.verify(y,m,u,dO(`${h}.${p}`)))throw new _h("Invalid JWT signature");return{data:{claims:c,header:l,signature:u},error:null}}catch(s){if(Q(s))return this._returnResult({data:null,error:s});throw s}}async signInWithPasskey(t){var a,s,l;cn(this.experimental);try{if(!Wl())return this._returnResult({data:null,error:new hn("Browser does not support WebAuthn",null)});const{data:c,error:u}=await this._startPasskeyAuthentication({options:{captchaToken:(a=t?.options)===null||a===void 0?void 0:a.captchaToken}});if(u||!c)return this._returnResult({data:null,error:u});const h=hv(c.options),p=(l=(s=t?.options)===null||s===void 0?void 0:s.signal)!==null&&l!==void 0?l:Sh.createNewAbortSignal(),{data:g,error:y}=await v0({publicKey:h,signal:p});if(y||!g)return this._returnResult({data:null,error:y??new hn("WebAuthn ceremony failed",null)});const m=pv(g);return this._verifyPasskeyAuthentication({challengeId:c.challenge_id,credential:m})}catch(c){if(Q(c))return this._returnResult({data:null,error:c});throw c}}async registerPasskey(t){var a,s;cn(this.experimental);try{if(!Wl())return this._returnResult({data:null,error:new hn("Browser does not support WebAuthn",null)});const{data:l,error:c}=await this._startPasskeyRegistration();if(c||!l)return this._returnResult({data:null,error:c});const u=dv(l.options),h=(s=(a=t?.options)===null||a===void 0?void 0:a.signal)!==null&&s!==void 0?s:Sh.createNewAbortSignal(),{data:p,error:g}=await y0({publicKey:u,signal:h});if(g||!p)return this._returnResult({data:null,error:g??new hn("WebAuthn ceremony failed",null)});const y=fv(p);return this._verifyPasskeyRegistration({challengeId:l.challenge_id,credential:y})}catch(l){if(Q(l))return this._returnResult({data:null,error:l});throw l}}async _startPasskeyRegistration(){cn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:a},error:s}=t;if(s)return this._returnResult({data:null,error:s});if(!a)return this._returnResult({data:null,error:new ut});const{data:l,error:c}=await ee(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:a.access_token,body:{}});return c?this._returnResult({data:null,error:c}):this._returnResult({data:l,error:null})})}catch(t){if(Q(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){cn(this.experimental);try{return await this._useSession(async a=>{const{data:{session:s},error:l}=a;if(l)return this._returnResult({data:null,error:l});if(!s)return this._returnResult({data:null,error:new ut});const{data:c,error:u}=await ee(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:s.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async _startPasskeyAuthentication(t){var a;cn(this.experimental);try{const{data:s,error:l}=await ee(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(a=t?.options)===null||a===void 0?void 0:a.captchaToken}}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:s,error:null})}catch(s){if(Q(s))return this._returnResult({data:null,error:s});throw s}}async _verifyPasskeyAuthentication(t){cn(this.experimental);try{const{data:a,error:s}=await ee(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:rn});return s?this._returnResult({data:null,error:s}):(a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:a,error:null}))}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async _listPasskeys(){cn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:a},error:s}=t;if(s)return this._returnResult({data:null,error:s});if(!a)return this._returnResult({data:null,error:new ut});const{data:l,error:c}=await ee(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:a.access_token,xform:u=>({data:u,error:null})});return c?this._returnResult({data:null,error:c}):this._returnResult({data:l,error:null})})}catch(t){if(Q(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){cn(this.experimental);try{return await this._useSession(async a=>{const{data:{session:s},error:l}=a;if(l)return this._returnResult({data:null,error:l});if(!s)return this._returnResult({data:null,error:new ut});const{data:c,error:u}=await ee(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:s.access_token,body:{friendly_name:t.friendlyName}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async _deletePasskey(t){cn(this.experimental);try{return await this._useSession(async a=>{const{data:{session:s},error:l}=a;if(l)return this._returnResult({data:null,error:l});if(!s)return this._returnResult({data:null,error:new ut});const{error:c}
55=await ee(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:s.access_token,noResolveJson:!0});return c?this._returnResult({data:null,error:c}):this._returnResult({data:null,error:null})})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}}qs.nextInstanceID={};const JO=qs,QO="2.106.2";let ks="";typeof Deno<"u"?ks="deno":typeof document<"u"?ks="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ks="react-native":ks="node";const XO={"X-Client-Info":`supabase-js-${ks}/${QO}`},WO={headers:XO},ZO={schema:"public"},ek={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},tk={},nk={enabled:!1,respectSamplingDecision:!0};function rk(e,t,a,s){function l(c){return c instanceof a?c:new a(function(u){u(c)})}return new(a||(a=Promise))(function(c,u){function h(y){try{g(s.next(y))}catch(m){u(m)}}function p(y){try{g(s.throw(y))}catch(m){u(m)}}function g(y){y.done?c(y.value):l(y.value).then(h,p)}g((s=s.apply(e,[])).next())})}let Wd=null;const ak="@opentelemetry/api";function ik(){return Wd===null&&(Wd=import(ak).catch(()=>null)),Wd}function sk(){return rk(this,void 0,void 0,function*(){try{const e=yield ik();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const a=t.traceparent;return a?{traceparent:a,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function ok(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[a,s,l,c]=t;if(a.length!==2||s.length!==32||l.length!==16||c.length!==2)return null;const u=/^[0-9a-f]+$/i;return!u.test(a)||!u.test(s)||!u.test(l)||!u.test(c)||s==="00000000000000000000000000000000"||l==="0000000000000000"?null:{version:a,traceId:s,parentId:l,traceFlags:c,isSampled:(parseInt(c,16)&1)===1}}function lk(e,t){if(!e||!t||t.length===0)return!1;let a;if(e instanceof URL)a=e;else try{a=new URL(e)}catch{return!1}for(const s of t)try{if(typeof s=="string"){if(ck(a.hostname,s))return!0}else if(s instanceof RegExp){if(s.test(a.hostname))return!0}else if(typeof s=="function"&&s(a))return!0}catch{continue}return!1}function ck(e,t){if(t===e)return!0;if(t.startsWith("*.")){const a=t.slice(2);if(e.endsWith(a)&&(e===a||e.endsWith("."+a)))return!0}return!1}function uk(e){const t=[];try{const a=new URL(e);t.push(a.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}function dk(e,t){if(Vs(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var s=a.call(e,t);if(Vs(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hk(e){var t=dk(e,"string");return Vs(t)=="symbol"?t:t+""}function fk(e,t,a){return(t=hk(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function mv(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,s)}return a}function Ke(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?mv(Object(a),!0).forEach(function(s){fk(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):mv(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}const pk=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),gk=()=>Headers,mk=(e,t,a,s,l)=>{const c=pk(s),u=gk(),h=l?.enabled===!0,p=l?.respectSamplingDecision!==!1,g=h?uk(t):null;return async(y,m)=>{var b;const w=(b=await a())!==null&&b!==void 0?b:e;let S=new u(m?.headers);if(S.has("apikey")||S.set("apikey",e),S.has("Authorization")||S.set("Authorization",`Bearer ${w}`),g){const R=await yk(y,g,p);R&&(R.traceparent&&!S.has("traceparent")&&S.set("traceparent",R.traceparent),R.tracestate&&!S.has("tracestate")&&S.set("tracestate",R.tracestate),R.baggage&&!S.has("baggage")&&S.set("baggage",R.baggage))}return c(y,Ke(Ke({},m),{},{headers:S}))}};async function yk(e,t,a){if(!lk(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const s=await sk();if(!s||!s.traceparent)return null;if(a){const l=ok(s.traceparent);if(l&&!l.isSampled)return null}return s}function yv(e){return typeof e=="boolean"?{enabled:e}:e}function vk(e){return e.endsWith("/")?e:e+"/"}function bk(e,t){var a,s,l,c,u,h;const{db:p,auth:g,realtime:y,global:m}=e,{db:b,auth:w,realtime:S,global:R}=t,A=yv(e.tracePropagation),E=yv(t.tracePropagation),C={db:Ke(Ke({},b),p),auth:Ke(Ke({},w),g),realtime:Ke(Ke({},S),y),storage:{},global:Ke(Ke(Ke({},R),m),{},{headers:Ke(Ke({},(a=R?.headers)!==null&&a!==void 0?a:{}),(s=m?.headers)!==null&&s!==void 0?s:{})}),tracePropagation:{enabled:(l=(c=A?.enabled)!==null&&c!==void 0?c:E?.enabled)!==null&&l!==void 0?l:!1,respectSamplingDecision:(u=(h=A?.respectSamplingDecision)!==null&&h!==void 0?h:E?.respectSamplingDecision)!==null&&u!==void 0?u:!0},accessToken:async()=>""};return e.accessToken?C.accessToken=e.accessToken:delete C.accessToken,C}function wk(e){const t=e?.trim();if(!t)throw new Error("supabaseUrl is required.");
55if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(vk(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var _k=class extends JO{constructor(e){super(e)}},Sk=class{constructor(e,t,a){var s,l;this.supabaseUrl=e,this.supabaseKey=t;const c=wk(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",c),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",c),this.storageUrl=new URL("storage/v1",c),this.functionsUrl=new URL("functions/v1",c);const u=`sb-${c.hostname.split(".")[0]}-auth-token`,h={db:ZO,realtime:tk,auth:Ke(Ke({},ek),{},{storageKey:u}),global:WO,tracePropagation:nk},p=bk(a??{},h);if(this.settings=p,this.storageKey=(s=p.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(l=p.global.headers)!==null&&l!==void 0?l:{},p.accessToken)this.accessToken=p.accessToken,this.auth=new Proxy({},{get:(y,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}});else{var g;this.auth=this._initSupabaseAuthClient((g=p.auth)!==null&&g!==void 0?g:{},this.headers,p.global.fetch)}this.fetch=mk(t,e,this._getAccessToken.bind(this),p.global.fetch,p.tracePropagation),this.realtime=this._initRealtimeClient(Ke({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},p.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(y=>this.realtime.setAuth(y)).catch(y=>console.warn("Failed to set initial Realtime auth token:",y)),this.rest=new U1(new URL("rest/v1",c).href,{headers:this.headers,schema:p.db.schema,fetch:this.fetch,timeout:p.db.timeout,urlLengthLimit:p.db.urlLengthLimit}),this.storage=new XC(this.storageUrl.href,this.headers,this.fetch,a?.storage),p.accessToken||this._listenForAuthEvents()}get functions(){return new O1(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},a={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,a)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,a;if(e.accessToken)return await e.accessToken();const{data:s}=await e.auth.getSession();return(t=(a=s.session)===null||a===void 0?void 0:a.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:a,storage:s,userStorage:l,storageKey:c,flowType:u,lock:h,debug:p,throwOnError:g,experimental:y,lockAcquireTimeout:m,skipAutoInitialize:b},w,S){const R={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new _k({url:this.authUrl.href,headers:Ke(Ke({},R),w),storageKey:c,autoRefreshToken:e,persistSession:t,detectSessionInUrl:a,storage:s,userStorage:l,flowType:u,lock:h,debug:p,throwOnError:g,experimental:y,fetch:S,lockAcquireTimeout:m,skipAutoInitialize:b,hasCustomAuthorizationHeader:Object.keys(this.headers).some(A=>A.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new wC(this.realtimeUrl.href,Ke(Ke({},e),{},{params:Ke(Ke({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t?.access_token)})}_handleTokenChanged(e,t,a){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==a?(this.changedAccessToken=a,this.realtime.setAuth(a)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const Ak=(e,t,a)=>new Sk(e,t,a);function Ek(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const a=t.match(/^v(\d+)\./);return a?parseInt(a[1],10)<=18:!1}Ek()&&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 N
55ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function Rk(){if(typeof window>"u")return;const e=location.hostname,a=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(A=>e===A||e.endsWith("."+A)),s="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",l=a?e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+s+")(?:-dev)?(?=\\.|$)","i"))?.[1]??e.match(new RegExp("^("+s+")(?=[.-])","i"))?.[1]:void 0,c=window.parent&&window.parent!==window;if(!l||!c)return localStorage;const u=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),h=u?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,p=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),g=p&&h.test(p)?[p]:u?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],y="lovable-preview-auth:result",m=2e3,b=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),w=(A,E,C)=>new Promise(x=>{const M=b();let $=!1,G;const D=se=>{$||($=!0,clearTimeout(G),window.removeEventListener("message",F),x(se))},F=se=>{if(g.indexOf(se.origin)<0)return;const re=se.data;re&&re.type===y&&re.requestId===M&&D(re)};window.addEventListener("message",F);const Y={type:A,requestId:M,projectId:l,key:E};C!==void 0&&(Y.value=C);for(const se of g)window.parent.postMessage(Y,se);G=setTimeout(()=>D(null),m)});let S=!0;const R=250;return{getItem:async A=>{let E=await w("lovable-preview-auth:get",A);return!E&&S&&(await new Promise(C=>setTimeout(C,R)),E=await w("lovable-preview-auth:get",A)),S=!1,E&&E.ok&&typeof E.value=="string"?E.value===""?(localStorage.removeItem(A),null):E.value:localStorage.getItem(A)},setItem:(A,E)=>(localStorage.setItem(A,E),w("lovable-preview-auth:set",A,E).then(C=>{C&&C.ok&&typeof C.value=="string"&&localStorage.getItem(A)===E&&(C.value===""?localStorage.removeItem(A):localStorage.setItem(A,C.value))})),removeItem:A=>(localStorage.removeItem(A),w("lovable-preview-auth:remove",A).then(()=>{}))}}function Tk(){return Ak("https://zmsqfdmtifgstumlsscd.supabase.co","sb_publishable_EKToV_vm2EZCTMEEgtP_jA_9YzYo8vq",{auth:{storage:Rk(),persistSession:!0,autoRefreshToken:!0}})}let Zd;const Ck=new Proxy({},{get(e,t,a){return Zd||(Zd=Tk()),Reflect.get(Zd,t,a)}}),Ok=da({type:"function"}).client(async({next:e})=>{const{data:t}=await Ck.auth.getSession(),a=t.session?.access_token;return e({headers:a?{Authorization:`Bearer ${a}`}:{}})}),kk=da(),vv=E1(()=>({functionMiddleware:[Ok],requestMiddleware:[kk]}));var fc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xk=class extends fc{#e;#n;#t;constructor(){super(),this.#t=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},b0=new xk,Ik={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Lk=class{#e=Ik;#n=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Ah=new Lk;function jk(e){setTimeout(e,0)}var Nk=typeof window>"u"||"Deno"in globalThis;function dn(){}function Mk(e,t){return typeof e=="function"?e(t):e}function Dk(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Eh(e,t){return typeof e=="function"?e(t):e}function Uk(e,t){return typeof e=="function"?e(t):e}function bv(e,t){const{type:a="all",exact:s,fetchStatus:l,predicate:c,queryKey:u,stale:h}=e;if(u){if(s){if(t.queryHash!==Bh(u,t.options))return!1}else if(!Fs(t.queryKey,u))return!1}if(a!=="all"){const p=t.isActive();if(a==="active"&&!p||a==="inactive"&&p)return!1}return!(typeof h=="boolean"&&t.isStale()!==h||l&&l!==t.state.fetchStatus||c&&!c(t))}function wv(e,t){const{exact:a,status:s,predicate:l,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(a){if(Gs(t.options.mutationKey)!==Gs(c))return!1}else if(!Fs(t.options.mutationKey,c))return!1}return!(s&&t.state.status!==s||l&&!l(t))}function Bh(e,t){return(t?.queryKeyHashFn||Gs)(e)}function Gs(e){return JSON.stringify(e,(t,a)=>Rh(a)?Object.keys(a).sort().reduce((s,l)=>(s[l]=a[l],s),{}):a)}function Fs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(a=>Fs(e[a],t[a])):!1}var zk=Object.prototype.hasOwnProperty;function w0(e,t,a=0){if(e===t)return e;if(a>500)return t;const s=_v(e)&&_v(t);if(!s&&!(Rh(e)&&Rh(t)))return t;const c=(s?e:Object.keys(e)).length,u=s?t:Object.keys(t),h=u.length,p=s?new Array(h):{};let g=0;for(let y=0;y<h;y++){const m=s?y:u[y],b=e[m],w=t[m];if(b===w){p[m]=b,(s?y<c:zk.call(e,m))&&g++;continue}if(b===null||w===null||typeof b!="object"||typeof w!="object"){p[m]=w;continue}const S=w0(b,w,a+1);p[m]=S,S===b&&g++}return c===h&&g===c?e:p}function YL(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const a in e)if(e[a]!==t[a])return!1;return!0}function _v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Rh(e){if(!Sv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const a=t.prototype;return!(!Sv(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Sv(e){return Object.prototype.toString.call(e)==="[object Object]"}function Bk(e){return new Promise(t=>{Ah.setTimeout(t,e)})}function Hk(e,t,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,t):a.structuralSharing!==!1?w0(e,t):t}function $k(e,t,a=0){const s=[...e,t];return a&&s.length>a?s.slice(1):s}function qk(e,t,a=0){const s=[t,...e];return a&&s.length>a?s.slice(0,-1):s}var Hh=Symbol();function _0(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Hh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function JL(e,t){return typeof e=="function"?e(...t):!!e}function Vk(e,t,a){let s=!1,l;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(l??=t(),s||(s=!0,l.aborted?a():l.addEventListener("abort",a,{once:!0})),l)}),e}var S0=(()=>{let e=()=>Nk;return{isServer(){return e()},setIsServer(t){e=t}}})();function Gk(){let e,t;const a=new Promise((l,c)=>{e=l,t=c});
vendor: 21,334 bytes, line 55
55a.status="pending",a.catch(()=>{});function s(l){Object.assign(a,l),delete a.resolve,delete a.reject}return a.resolve=l=>{s({status:"fulfilled",value:l}),e(l)},a.reject=l=>{s({status:"rejected",reason:l}),t(l)},a}var Fk=jk;function Kk(){let e=[],t=0,a=h=>{h()},s=h=>{h()},l=Fk;const c=h=>{t?e.push(h):l(()=>{a(h)})},u=()=>{const h=e;e=[],h.length&&l(()=>{s(()=>{h.forEach(p=>{a(p)})})})};return{batch:h=>{let p;t++;try{p=h()}finally{t--,t||u()}return p},batchCalls:h=>(...p)=>{c(()=>{h(...p)})},schedule:c,setNotifyFunction:h=>{a=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{l=h}}}var Rt=Kk(),Yk=class extends fc{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(a=>{a(e)}))}isOnline(){return this.#e}},ec=new Yk;function Jk(e){return Math.min(1e3*2**e,3e4)}function A0(e){return(e??"online")==="online"?ec.isOnline():!0}var Th=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function E0(e){let t=!1,a=0,s;const l=Gk(),c=()=>l.status!=="pending",u=R=>{if(!c()){const A=new Th(R);b(A),e.onCancel?.(A)}},h=()=>{t=!0},p=()=>{t=!1},g=()=>b0.isFocused()&&(e.networkMode==="always"||ec.isOnline())&&e.canRun(),y=()=>A0(e.networkMode)&&e.canRun(),m=R=>{c()||(s?.(),l.resolve(R))},b=R=>{c()||(s?.(),l.reject(R))},w=()=>new Promise(R=>{s=A=>{(c()||g())&&R(A)},e.onPause?.()}).then(()=>{s=void 0,c()||e.onContinue?.()}),S=()=>{if(c())return;let R;const A=a===0?e.initialPromise:void 0;try{R=A??e.fn()}catch(E){R=Promise.reject(E)}Promise.resolve(R).then(m).catch(E=>{if(c())return;const C=e.retry??(S0.isServer()?0:3),x=e.retryDelay??Jk,M=typeof x=="function"?x(a,E):x,$=C===!0||typeof C=="number"&&a<C||typeof C=="function"&&C(a,E);if(t||!$){b(E);return}a++,e.onFail?.(a,E),Bk(M).then(()=>g()?void 0:w()).then(()=>{t?b(E):S()})})};return{promise:l,status:()=>l.status,cancel:u,continue:()=>(s?.(),l),cancelRetry:h,continueRetry:p,canStart:y,start:()=>(y()?S():w().then(S),l)}}var R0=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Dk(this.gcTime)&&(this.#e=Ah.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(S0.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Ah.clearTimeout(this.#e),this.#e=void 0)}},Qk=class extends R0{#e;#n;#t;#a;#r;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#t=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Ev(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Ev(this.options);t.data!==void 0&&(this.setState(Av(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const a=Hk(this.state.data,e,this.options);return this.#o({data:a,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),a}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(dn).catch(dn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Uk(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Eh(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:!Pk(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s||this.#l()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const a=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,a.signal)})},l=()=>{const h=_0(this.options,t),g=(()=>{const y={client:this.#a,queryKey:this.queryKey,meta:this.meta};return s(y),y})();return this.#s=!1,this.options.persister?this.options.persister(h,g,this):h(g)},u=(()=>{const h={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:l};return s(h),h})();this.options.behavior?.onFetch(u,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#o({type:"fetch",meta:u.fetchOptions?.meta}),this.#r=E0({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:h=>{h instanceof Th&&h.revert&&this.setState({...this.#n,fetchStatus:"idle"}),a.abort()},onFail:(h,p)=>{this.#o({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#t.config.onSuccess?.(h,this),this.#t.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof Th){if(h.silent)return this.#r.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#o({type:"error",error:h}),this.#t.config.onError?.(h,this),this.#t.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#o(e){const t=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...Xk(a.data,this.options),fetchMeta:e.meta??null};case"success":const s={...a,...Av(e.data,e.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?s:void 0,s;case"error":const l=e.error;return{...a,error:l,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=t(this.state),Rt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:e})})}};function Xk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:A0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Av(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ev(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,a=t!==void 0,s=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:a?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}function Rv(e){return{onFetch:(t,a)=>{const s=t.options,l=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const g=async()=>{let y=!1;const m=S=>{Vk(S,()=>t.signal,()=>y=!0)},b=_0(t.options,t.fetchOptions),w=async(S,R,A)=>{if(y)return Promise.reject();if(R==null&&S.pages.length)return Promise.resolve(S);const C=(()=>{const G={client:t.client,queryKey:t.queryKey,pageParam:R,direction:A?"backward":"forward",meta:t.options.meta};return m(G),G})(),x=await b(C),{maxPages:M}=t.options,$=A?qk:$k;return{pages:$(S.pages,x,M),pageParams:$(S.pageParams,R,M)}};if(l&&c.length){const S=l==="backward",R=S?Wk:Tv,A={pages:c,pageParams:u},E=R(s,A);h=await w(A,E,S)}else{const S=e??c.length;do{const R=p===0?u[0]??s.initialPageParam:Tv(s,h);if(p>0&&R==null)break;h=await w(h,R),p++}while(p<S)}return h};t.options.persister?t.fetchFn=()=>t.options.persister?.(g,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},a):t.fetchFn=g}}}function Tv(e,{pages:t,pageParams:a}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,a[s],a):void 0}function Wk(e,{pages:t,pageParams:a}){return t.length>0?e.getPreviousPageParam?.(t[0],t,a[0],a):void 0}var Zk=class extends R0{#e;#n;#t;#a;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#n=[],this.state=e.state||ex(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=E0({fn:()=>this.options.mutationFn?this.options.mutationFn(e,a):Promise.reject(new Error("No mutationFn found")),onFail:(c,u)=>{this.#r({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",l=!this.#a.canStart();try{if(s)t();else{this.#r({type:"pending",variables:e,isPaused:l}),this.#t.config.onMutate&&await this.#t.config.onMutate(e,this,a);const u=await this.options.onMutate?.(e,a);u!==this.state.context&&this.#r({type:"pending",context:u,variables:e,isPaused:l})}const c=await this.#a.start();return await this.#t.config.onSuccess?.(c,e,this.state.context,this,a),await this.options.onSuccess?.(c,e,this.state.context,a),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(c,null,e,this.state.context,a),this.#r({type:"success",data:c}),c}catch(c){try{await this.#t.config.onError?.(c,e,this.state.context,this,a)}catch(u){Promise.reject(u)}try{await this.options.onError?.(c,e,this.state.context,a)}catch(u){Promise.reject(u)}try{await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,a)}catch(u){Promise.reject(u)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,a)}catch(u){Promise.reject(u)}throw this.#r({type:"error",error:c}),c}finally{this.#t.runNext(this)}}#r(e){const t=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,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{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Rt.batch(()=>{this.#n.forEach(a=>{a.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function ex(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var tx=class extends fc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(e,t,a){const s=new Zk({client:e,mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:a});return this.add(s),s}add(e){this.#e.add(e);const t=Ll(e);if(typeof t=="string"){const a=this.#n.get(t);a?a.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Ll(e);if(typeof t=="string"){const a=this.#n.get(t);if(a)if(a.length>1){const s=a.indexOf(e);s!==-1&&a.splice(s,1)}else a[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ll(e);if(typeof t=="string"){const s=this.#n.get(t)?.find(l=>l.state.status==="pending");return!s||s===e}else return!0}runNext(e){const t=Ll(e);return typeof t=="string"?this.#n.get(t)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Rt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(a=>wv(t,a))}findAll(e={}){return this.getAll().filter(t=>wv(e,t))}notify(e){Rt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Rt.batch(()=>Promise.all(e.map(t=>t.continue().catch(dn))))}};function Ll(e){return e.options.scope?.id}var nx=class extends fc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,a){const s=t.queryKey,l=t.queryHash??Bh(s,t);let c=this.get(l);return c||(c=new Qk({client:e,queryKey:s,queryHash:l,options:e.defaultQueryOptions(t),state:a,defaultOptions:e.getQueryDefaults(s)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Rt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(a=>bv(t,a))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(a=>bv(e,a)):t}notify(e){Rt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Rt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Rt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},rx=class{#e;#n;#t;#a;#r;#i;#s;#l;constructor(e={}){this.#e=e.queryCache||new nx,this.#n=e.mutationCache||new tx,this.#t=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=b0.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=ec.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),a=this.#e.build(this,t),s=a.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(Eh(t.staleTime,a))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:a})=>{const s=a.data;return[t,s]})}setQueryData(e,t,a){const s=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(s.queryHash)?.state.data,u=Mk(t,c);if(u!==void 0)return this.#e.build(this,s).setData(u,{...a,manual:!0})}setQueriesData(e,t,a){return Rt.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,a)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Rt.batch(()=>{t.findAll(e).forEach(a=>{t.remove(a)})})}resetQueries(e,t){const a=this.#e;return Rt.batch(()=>(a.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const a={revert:!0,...t},s=Rt.batch(()=>this.#e.findAll(e).map(l=>l.cancel(a)));return Promise.all(s).then(dn).catch(dn)}invalidateQueries(e,t={}){return Rt.batch(()=>(this.#e.findAll(e).forEach(a=>{a.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const a={...t,cancelRefetch:t.cancelRefetch??!0},s=Rt.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,a);return a.throwOnError||(c=c.catch(dn)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(dn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const a=this.#e.build(this,t);return a.isStaleByTime(Eh(t.staleTime,a))?a.fetch(t):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(dn).catch(dn)}fetchInfiniteQuery(e){return e.behavior=Rv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dn).catch(dn)}ensureInfiniteQueryData(e){return e.behavior=Rv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ec.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#a.set(Gs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],a={};return t.forEach(s=>{Fs(e,s.queryKey)&&Object.assign(a,s.defaultOptions)}),a}setMutationDefaults(e,t){this.#r.set(Gs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],a={};return t.forEach(s=>{Fs(e,s.mutationKey)&&Object.assign(a,s.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#t.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Bh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Hh&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},T0=X.createContext(void 0),QL=e=>{const t=X.useContext(T0);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ax=({client:e,children:t})=>(X.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),U.jsx(T0.Provider,{value:e,children:t}));const ix="/assets/styles-QmNlnsfK.css";const C0=(...e)=>e.filter((t,a,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===a).join(" ").trim();const sx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const ox=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,s)=>s?s.toUpperCase():a.toLowerCase());const Cv=e=>{const t=ox(e);return t.charAt(0).toUpperCase()+t.slice(1)};var lx={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"};const cx=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const ux=X.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:l="",children:c,iconNode:u,...h},p)=>X.createElement("svg",{ref:p,...lx,width:t,height:t,stroke:e,strokeWidth:s?Number(a)*24/Number(t):a,className:C0("lucide",l),...!c&&!cx(h)&&{"aria-hidden":"true"},...h},[...u.map(([g,y])=>
55X.createElement(g,y)),...Array.isArray(c)?c:[c]]));const O0=(e,t)=>{const a=X.forwardRef(({className:s,...l},c)=>X.createElement(ux,{ref:c,iconNode:t,className:C0(`lucide-${sx(Cv(e))}`,`lucide-${e}`,s),...l}));return a.displayName=Cv(e),a};const dx=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],hx=O0("arrow-left",dx);const fx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],px=O0("x",fx),k0=X.createContext(null);function XL(){const e=X.useContext(k0);if(!e)throw new Error("useContact must be used within ContactProvider");return e}const Ov="https://link.learnair.com/widget/form/4TKTabNG4JcLU3g8FMGU",gx=6e3;function mx({children:e}){const[t,a]=X.useState(!1),s=X.useCallback(()=>a(!0),[]),l=X.useCallback(()=>a(!1),[]);return X.useEffect(()=>{if(!t)return;const c=document.body.style.overflow;document.body.style.overflow="hidden";const u=h=>{h.key==="Escape"&&l()};return window.addEventListener("keydown",u),()=>{document.body.style.overflow=c,window.removeEventListener("keydown",u)}},[t,l]),X.useEffect(()=>{if(!t)return;let c;const u=h=>{let p="";try{p=new URL(Ov).origin}catch{return}if(h.origin!==p)return;const g=typeof h.data=="string"?h.data:JSON.stringify(h.data??"");/submit/i.test(g)&&(c||(c=setTimeout(()=>{a(!1),window.location.href="/"},gx)))};return window.addEventListener("message",u),()=>{window.removeEventListener("message",u),c&&clearTimeout(c)}},[t]),U.jsxs(k0.Provider,{value:{openContact:s},children:[e,t&&U.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"Connect with our team",className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-black/60 animate-in fade-in duration-200",onClick:l,children:U.jsxs("div",{className:"relative w-full max-w-2xl h-[85vh] rounded-2xl bg-offwhite overflow-hidden shadow-[var(--shadow-soft)] animate-in zoom-in-95 duration-200",onClick:c=>c.stopPropagation(),children:[U.jsx("button",{type:"button",onClick:l,"aria-label":"Close",className:"absolute right-3 top-3 z-10 rounded-full bg-white/90 p-2 text-charcoal/70 hover:bg-white hover:text-charcoal transition",children:U.jsx(px,{className:"h-5 w-5"})}),U.jsx("iframe",{src:Ov,title:"Connect with our team",className:"h-full w-full border-0"})]})})]})}function yx(){return U.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:U.jsxs("div",{className:"max-w-md text-center",children:[U.jsx("h1",{className:"text-7xl font-bold text-foreground",children:"404"}),U.jsx("h2",{className:"mt-4 text-xl font-semibold text-foreground",children:"Page not found"}),U.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The page you're looking for doesn't exist or has been moved."}),U.jsx("div",{className:"mt-6",children:U.jsx(lc,{to:"/",className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Go home"})})]})})}function vx({error:e,reset:t}){console.error(e);const a=wt();return U.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:U.jsxs("div",{className:"max-w-md text-center",children:[U.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground",children:"This page didn't load"}),U.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Something went wrong on our end. You can try refreshing or head back home."}),U.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[U.jsx("button",{onClick:()=>{a.invalidate(),t()},className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Try again"}),U.jsx("a",{href:"/",className:"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:"Go home"})]})]})})}const Pe=ZT()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"LearnAIR™"},{name:"description",content:"LearnAIR™'s website provides AI education and innovation resources."},{name:"author",content:"Lovable"},{property:"og:title",content:"LearnAIR™"},{property:"og:description",content:"LearnAIR™'s website provides AI education and innovation resources."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:site",content:"@Lovable"},{name:"twitter:title",content:"LearnAIR™"},{name:"twitter:description",content:"LearnAIR™'s website provides AI education and innovation resources."},{property:"og:image",content:"https://pub-bb2e103a32db4e198524a2e9ed8f35b4.r2.dev/d32a2227-d580-4018-a755-1713422a114e/id-preview-a4f614ae--93d537c2-7feb-41e0-98fa-1678e7cbd16e.lovable.app-1780275794620.png"},{name:"twitter:image",content:"https://pub-bb2e103a32db4e198524a2e9ed8f35b4.r2.dev/d32a2227-d580-4018-a755-1713422a114e/id-preview-a4f614ae--93d537c2-7feb-41e0-98fa-1678e7cbd16e.lovable.app-1780275794620.png"}],links:[{rel:"stylesheet",href:ix},{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32.png"},{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16.png"},{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}
55],scripts:[{src:"https://www.googletagmanager.com/gtag/js?id=G-KLYC0BBYTR",async:!0},{type:"text/javascript",children:`
56          
vendor: 157 bytes, lines 56-59
56window.dataLayer = window.dataLayer || [];
57          function gtag(){dataLayer.push(arguments);}
58          gtag('js', new Date());
59          gtag('config', '
59G-KLYC0BBYTR
vendor: 12 bytes, lines 59-60
59');
60        
60`}]}),shellComponent:bx,component:_x,notFoundComponent:yx,errorComponent:vx});function bx({children:e}){return U.jsxs("html",{lang:"en",children:[U.jsx("head",{children:U.jsx(_1,{})}),U.jsxs("body",{children:[e,U.jsx(S1,{})]})]})}function kv(e){const t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:s=>s.nodeValue?.includes("©")&&s.parentElement&&!["SCRIPT","STYLE","SUP"].includes(s.parentElement.tagName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),a=[];for(;t.nextNode();)a.push(t.currentNode);for(const s of a){const l=s.nodeValue.split("©"),c=document.createDocumentFragment();l.forEach((u,h)=>{if(h>0){const p=document.createElement("sup");p.textContent="©",c.appendChild(p)}u&&c.appendChild(document.createTextNode(u))}),s.parentNode?.replaceChild(c,s)}}function wx(){return X.useEffect(()=>{kv(document.body);const e=new MutationObserver(t=>{for(const a of t)a.addedNodes.forEach(s=>kv(s))});return e.observe(document.body,{childList:!0,subtree:!0}),()=>e.disconnect()},[]),null}function _x(){const{queryClient:e}=Pe.useRouteContext();return U.jsx(ax,{client:e,children:U.jsxs(mx,{children:[U.jsx(wx,{}),U.jsx(Yb,{})]})})}const Sx="modulepreload",Ax=function(e){return"/"+e},xv={},pe=function(t,a,s){let l=Promise.resolve();if(a&&a.length>0){let p=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),h=u?.nonce||u?.getAttribute("nonce");l=p(a.map(g=>{if(g=Ax(g),g in xv)return;xv[g]=!0;const y=g.endsWith(".css"),m=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${m}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":Sx,y||(b.as="script"),b.crossOrigin="",b.href=g,h&&b.setAttribute("nonce",h),document.head.appendChild(b),y)return new Promise((w,S)=>{b.addEventListener("load",w),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${g}`)))})}))}function c(u){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=u,window.dispatchEvent(h),!h.defaultPrevented)throw u}return l.then(u=>{for(const h of u||[])h.status==="rejected"&&c(h.reason);return t().catch(c)})},Ex=()=>pe(()=>import("./index-C598TOn-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),Rx=_e("/")({head:()=>({meta:[{title:"LearnAIR™ - Ushering Humanity into the AI Era"},{name:"description",content:"Hands-on AI training to build and deploy digital employees that save time, cut busywork, and supercharge productivity-without compromising the human element."},{property:"og:title",content:"LearnAIR™ - Ushering Humanity into the AI Era"},{property:"og:description",content:"Hands-on AI training for forward-thinking teams."}]}),component:fe(Ex,"component")}),Tx=()=>pe(()=>import("./about-BNRuRogt.js"),__vite__mapDeps([12,1,2,3,6,7,4,5,13])),Cx=_e("/about")({head:()=>({meta:[{title:"About - LearnAIR™"},{name:"description",content:"LearnAIR™ helps organizations build AI-Ready Workforces through practical training, workforce transformation, and human-centered AI adoption."},{property:"og:title",content:"About LearnAIR™"},{property:"og:description",content:"Human-First. AI-Forward."}]}),component:fe(Tx,"component")}),Ox=()=>pe(()=>import("./blog-CijeGKRu.js"),__vite__mapDeps([14,1,2,3,4,5,15,16,11])),kx=_e("/blog")({head:()=>({meta:[{title:"Blog - LearnAIR™"},{name:"description",content:"Ideas, playbooks, and field notes on AI readiness, workforce transformation, and the human side of working with AI - from the LearnAIR™ team."},{property:"og:title",content:"Blog - LearnAIR™"},{property:"og:description",content:"Practical writing on AI readiness, leadership, and workforce transformation from the LearnAIR™ team."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{tagName:"link",rel:"alternate",type:"application/rss+xml",title:"LearnAIR™ Blog",href:"/api/public/rss.xml"}]}),component:fe(Ox,"component")}),xx=()=>pe(()=>import("./brand-guidelines-B_qLQkuz.js"),__vite__mapDeps([17,1,2,3,4,5,18,9,19])),Ix=_e("/brand-guidelines")({head:()=>({meta:[{title:"Brand Guidelines - LearnAIR™"},{name:"description",content:"The LearnAIR™ Brand Book: logo usage, color, typography, voice, and the standards that keep every LearnAIR™ experience consistent."},{name:"robots",content:"noindex, nofollow"},{property:"og:title",content:"LearnAIR™ Brand Guidelines"},{property:"og:description",content:"Human-First. AI-Ready. The standards behind the LearnAIR™ brand."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:fe(xx,"component")}),Lx=()=>pe(()=>import("./chatgpt-7-pjPlBn.js"),__vite__mapDeps([20,1,2,3,4,5])),jx=_e("/chatgpt")({head:()=>({meta:[{title:"Get Started with ChatGPT - LearnAIR™"},{name:"description",content:"Ready to get started with ChatGPT? Contact LearnAIR™ for a code that gives you 1 free seat."},{property:"og:title",content:"Get Started with ChatGPT - LearnAIR™"},{property:"og:description",content:"Contact LearnAIR™ for a code that gives you 1 free ChatGPT seat."}]}),component:fe(Lx,"component")}),Nx=()=>pe(()=>import("./edco-BA4wbZwz.js"),[]),Mx=_e("/edco")({component:fe(Nx,"component")}),Dx=()=>pe(()=>import("./forbusinesses-BGwyVMOf.js"),__vite__mapDeps([21,1,2,3,22,5])),Px=_e("/forbusinesses")({head:()=>({meta:[{title:"The future of work is human + AI - LearnAIR™"},{name:"description",content:"Humans who understand AI. Judgment that guides it. Adoption that drives change."},{property:"og:title",content:"The future of work is human + AI - LearnAIR™"},{property:"og:description",content:"Humans who understand AI. Judgment that guides it. Adoption that drives change."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:"The future of work is human + AI - LearnAIR™"},{name:"twitter:description",content:"Humans who understand AI. Judgment that guides it. Adoption that drives change."}]}),component:fe(Dx,"component")}),Ux=()=>pe(()=>import("./forhumans-ablU0Gla.js"),__vite__mapDeps([23,3,1,2,22,5])),zx=_e("/forhumans")({head:()=>({meta:[{title:"Live AI Training for Working Professionals | LearnAIR™"},{name:"description",content:"Join LearnAIR™’s three-session Monthly Cohort and complete the Foundation Series© through practical, live AI training built for your work."},{property:"og:title",content:"Live AI Training for Working Professionals | LearnAIR™"},{property:"og:description",content:"Build practical AI literacy, useful workflows, and confidence in three live Foundation Series© sessions."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:"Live AI Training for Working Professionals | LearnAIR™"},{name:"twitter:description",content:"Build practical AI literacy, useful workflows, and confidence in three live Foundation Series© sessions."}]}),component:fe(Ux,"component")}),Bx=()=>pe(()=>import("./forveterans-Bjnu6q4P.js"),__vite__mapDeps([24,1,2,3,4,5])),Hx=_e("/forveterans")({head:()=>({meta:[{title:"Training 1 Million Soldiers in AI - LearnAIR™"},{name:"description",content:"Join LearnAIR™'s mission to train 1 million soldiers in AI literacy through hands-on monthly cohorts that prepare service members for the future of work."},{property:"og:title",content:"Training 1 Million Soldiers in AI - LearnAIR™"},{property:"og:description",content:"AI literacy training for soldiers, built to shape the next generation of the workforce."}]}),component:fe(Bx,"component")}),x0="/assets/product-cohort-BTZI3DLx.jpg",$x=()=>pe(()=>import("./foundation-series-Cjm5Pd9r.js"),__vite__mapDeps([25,1,2,3,4,5,9])),qx=_e("/fou
60ndation-series")({head:()=>({meta:[{title:"Foundation Series© - AI Training for Veterans | LearnAIR™"},{name:"description",content:"A 3-part live AI literacy training built for veterans, workforce re-entry, and anyone navigating today's changing career landscape."},{property:"og:title",content:"Foundation Series© - AI Training for Veterans | LearnAIR™"},{property:"og:description",content:"Practical AI skills for the next chapter of your career - built for veterans, job seekers, and career changers."},{property:"og:image",content:x0}]}),component:fe($x,"component")}),Vx=()=>pe(()=>import("./issi-BhkWdV99.js"),[]),Gx=_e("/issi")({component:fe(Vx,"component")}),Fx="/__l5e/assets-v1/d39129ec-f629-4197-9cdf-18941782192d/ihsq-cover-v2.png",Kx={url:Fx},Yx="/__l5e/assets-v1/9883b5dd-8c8f-4090-8bde-483f6d2d604d/techlandia-cover-v2.png",Jx={url:Yx},Qx="/__l5e/assets-v1/338eab72-ef24-42ed-82d4-d96a36a81416/art-of-hustle-cover.png",Xx={url:Qx},Wx="/__l5e/assets-v1/5e5d1742-6b68-43b7-92e2-9c7e9838905f/wtoe-cover.png",Zx={url:Wx},e2="/__l5e/assets-v1/51d25222-ab28-4b84-b154-08ff5ed7861b/dare-justin-neesh.jpg",t2={url:e2},n2="/__l5e/assets-v1/e3c63f40-0bae-4cc5-bb1f-c455eea086be/adventurous-entrepreneurs-justin.jpg",r2={url:n2},a2=()=>pe(()=>import("./media-events-C4aR-8uu.js"),__vite__mapDeps([26,1,2,3,4,5,7,27,13,11,16])),Iv=Jx.url,Gt=Kx.url,i2=Xx.url,s2=t2.url,o2=r2.url,l2=_e("/media-events")({head:()=>({meta:[{title:"Media & Events - LearnAIR™"},{name:"description",content:"Explore LearnAIR's podcast appearances, speaking engagements, and webinars as we help organizations navigate the future of work and AI readiness."},{property:"og:title",content:"Media & Events - LearnAIR™"},{property:"og:description",content:"Where AI conversations happen - podcasts, talks, and webinars from the LearnAIR™ team."}]}),component:fe(a2,"component")});[{publishedAt:"2026-08-11",title:"Ep 214: Accuracy Through Repetition: When Should You Let AI Work More Independently?",show:"I Have Some Questions...",date:"August 2026",category:"Leadership",desc:"Erik Berglund and Justin Coats tackle viewer-submitted AI questions on building trust with AI, handling compliance-constrained data, meeting recording boundaries, and how to scale an AI pilot without losing control.",art:Gt,url:"https://open.spotify.com/episode/5Tnry6cnXM2rZMWEnAUjkj?si=85dfe06354724fc0"},{publishedAt:"2026-08-05",title:"Ep 209: Are Your AI Tools Updating Faster Than Your Team Can Handle?",show:"I Have Some Questions...",date:"August 2026",category:"AI Literacy",desc:"Justin Coats joins Erik Berglund to talk about change fatigue in the AI era, and how teams can keep pace with constant tool updates without burning out.",art:Gt,url:"https://open.spotify.com/episode/5IaA3OdJUYDp0Mc7rYEewl?si=d9d7c156322f40c7"},{publishedAt:"2026-07-27",title:"Ep 201: Vision First Or Tools First: The Hidden Step Before Any AI Implementation",show:"I Have Some Questions...",date:"July 2026",category:"Leadership",desc:"Justin Coats and Erik Berglund unpack the step most organizations skip: defining a clear vision before choosing AI tools.",art:Gt,url:"https://open.spotify.com/episode/0vVxaS1S8TbzEu7grnOSxf?si=4f06f94c18a142fd"},{publishedAt:"2026-07-20",title:"Ep 196: Agent Collaboration Should Look Like Co-Working, Not Hand-Offs",show:"I Have Some Questions...",date:"July 2026",category:"Leadership",desc:"Justin Coats joins Erik Berglund to rethink how AI agents fit into teams, treating them as collaborators to work alongside rather than a chain of hand-offs.",art:Gt,url:"https://open.spotify.com/episode/1DerY791XDk3MqUl6Zxva8?si=0fef3ccc9a024ef8"},{publishedAt:"2026-03-15",title:"AI in the Workplace: A New Era of Leadership and Learning",show:"Techlandia",date:"March 2026",category:"Leadership",desc:"Teresa Coates joins Kate Cockrill to discuss blending human and artificial intelligence, the shifting role of leaders, and a top-down + bottom-up approach to AI adoption.",art:Iv,url:"https://open.spotify.com/episode/5GHYLXhcLvixS9CPZzEE0d?si=731986a04b164cc7"},{publishedAt:"2026-06-10",title:"Unlocking AI Literacy with LearnAir",show:"Techlandia",date:"June 2026",category:"AI Literacy",desc:"Justin Coats shares his journey from Marine Corps helicopter mechanic to AI literacy advocate, and how LearnAIR™ helps leaders and employees embrace generative AI and build a culture of continuous learning.",art:Iv,url:"https://open.spotify.com/episode/708S6o3RCc0WYdwGaNaZJG?si=2635c368629b4c6a"},{publishedAt:"2026-06-24",title:"Kids Are Intuitively Hacking AI With Their Voice, Not Their Keyboard",show:"I Have Some Questions...",date:"June 2026",category:"AI Literacy",desc:"Justin Coats joins Erik Berglund to unpack a voice-first, kid-friendly approach to AI - how children are naturally vibe-coding with ChatGPT, what that teaches us about creativity, and where human responsibility fits in.",art:Gt,url:"https://open.spotify.com/episode/0esGUfYfbNEwSq0ClIu5pW?si=90e2ce7e85da418e"},{publishedAt:"2026-06-16",title:"Ep 177: Is Typing Becoming Old-Fashioned in the AI Age?",show:"I Have Some Questions...",date:"June 2026",category:"AI Literacy",desc:"Justin Coats joins Erik Berglund to explore how voice-first and AI-native interfaces are reshaping the way 
60we communicate, create, and work.",art:Gt,url:"https://open.spotify.com/episode/4cgQG1QkbjQUZhSj5DhF1i?si=dBO-AaV2SuePjMOjjhI3XA"},{publishedAt:"2026-06-09",title:"Ep 171: Can Companies with 5 Employees and 50 Digital Employees Thrive?",show:"I Have Some Questions...",date:"June 2026",category:"Leadership",desc:"Justin Coats and Erik Berglund discuss the rise of lean, AI-augmented teams and what it means to build a thriving company when most of your workforce is digital.",art:Gt,url:"https://open.spotify.com/episode/0s8XdA78Iu7vRITyVwqJU8?si=bacd5262c0c4424e"},{publishedAt:"2026-06-02",title:"Ep 165: What Caused AI to Skyrocket in 2026?",show:"I Have Some Questions...",date:"June 2026",category:"AI Literacy",desc:"Justin Coats unpacks the forces - technical, cultural, and organizational - that pushed AI adoption from curiosity to mainstream capability in 2026.",art:Gt,url:"https://open.spotify.com/episode/4FDYo5uOE1dX72MSFyTjDf?si=71aaeb2969a74244"},{publishedAt:"2026-05-26",title:"Ep 161: How Should Companies Think About AI That Has Agency To Act?",show:"I Have Some Questions...",date:"May 2026",category:"Leadership",desc:"A conversation on agentic AI - what changes when models can take action, and how leaders should design guardrails, roles, and accountability around them.",art:Gt,url:"https://open.spotify.com/episode/4Fn5dJh6TzZID13iMw3xrR?si=6936b85b15c34c17"},{publishedAt:"2026-05-19",title:"Ep 157: You've Probably Just Scratched the Surface of AI",show:"I Have Some Questions...",date:"May 2026",category:"AI Literacy",desc:"Justin Coats challenges the comfortable plateau most teams hit with AI and shows what the next layer of capability looks like.",art:Gt,url:"https://open.spotify.com/episode/3S614fmPfHKrfcCiRwcHVd?si=99f4c050046f4567"},{publishedAt:"2026-05-12",title:"Ep 153: Are We Misunderstanding AI Job Loss Completely?",show:"I Have Some Questions...",date:"May 2026",category:"Leadership",desc:"A more nuanced take on the AI-and-jobs conversation - what's actually shifting, who's affected, and how leaders should respond.",art:Gt,url:"https://open.spotify.com/episode/1m8mCqnEM0WXQumRZ9DU2w?si=a3c11451600d478b"},{publishedAt:"2026-05-05",title:"Ep 149: Vague Thinking Produces Weak Outputs, Especially with AI",show:"I Have Some Questions...",date:"May 2026",category:"AI Literacy",desc:"Why clarity of thought is the highest-leverage skill in the AI era, and how to coach teams toward sharper prompts and sharper decisions.",art:Gt,url:"https://open.spotify.com/episode/2zi3IFfD9tYdT2hjFD5ysr?si=98be45baa5184ba8"},{publishedAt:"2025-07-09",title:"Ep 020: Can You Build a Culture Around Systems?",show:"I Have Some Questions...",date:"July 2025",category:"Leadership",desc:"Justin Coats joins Erik Berglund to explore whether organizational culture can be engineered through systems, rituals, and operating rhythms.",art:Gt,url:"https://open.spotify.com/episode/0WLn1jABOaP6FpVxJUoQrT?si=ff43ec65f9d24ca3"},{publishedAt:"2025-06-16",title:"1149: This is NOT your average AI episode! This is about AI INTEGRATION into life + biz w/ Justin Coats",show:"Wantrepreneur to Entrepreneur",date:"June 2025",category:"Leadership",desc:"Justin Coats joins the Wantrepreneur to Entrepreneur team to talk about AI integration into life and business, balancing the human element with strategic automation, and the four components of effective AI prompting.",art:Zx.url,url:"https://open.spotify.com/episode/1hkcP3BfAlg6yjrbWVTHVQ?si=5a09fc913fe6403f"},{publishedAt:"2025-12-06",title:"Change, AI, and the Future of Being Human - Justin Coats on Building What's Next",show:"Art of Hustle",date:"December 2025",category:"Leadership",desc:"Justin Coats joins Cornelius Edison to talk about navigating change, the mindset of building through failure, and how AI is reshaping business, creativity, and daily life while keeping the human element at the center.",art:i2,url:"https://open.spotify.com/episode/6lS6yav072WGscJoVP1qxj?si=39fc3b39054d480f"},{publishedAt:"2024-10-22",title:"2:42 Justin Coats, Neesh.ai",show:"DARE",date:"October 2024",category:"Leadership",desc:"Justin Coats shares his journey from the Marine Corps to entrepreneurship and how Neesh.ai makes complex AI concepts simple, usable, and human-centered.",art:s2,url:"https://open.spotify.com/episode/2HxFM02JXDnfdwcGwVNnN0?si=-ag3nrI_SFGm0GjoVDjIDw"},{publishedAt:"2024-03-22",title:"Navigating the AI Revolution in Business: Strategies for Seamless Integration, Creating Virtual Team Members, and Unlocking New Efficiencies",show:"Adventurous Entrepreneurs",date:"March 2024",category:"Leadership",desc:"Justin Coats joins TJ to explore how leaders can integrate AI into their teams, build virtual team members, and unlock new efficie
60ncies across the business.",art:o2,url:"https://open.spotify.com/episode/4x2eEaCYy6Te6lJkfw0mc7?si=40c11fe1f2554d17"}].sort((e,t)=>t.publishedAt.localeCompare(e.publishedAt));const c2=()=>pe(()=>import("./nwrpca-DM0Hho2j.js"),[]),u2=_e("/nwrpca")({component:fe(c2,"component")}),Lv={title:"Practical AI Tools to Do More With Less",tagline:"A hands-on working session for business professionals who want to use AI confidently in their everyday work. Spot the tasks worth automating, write better prompts, and leave with practical tools you can apply the same week.",time:"9:00 a.m. – 10:30 a.m. PDT",venue:"Oregon Christian Chamber of Commerce Office",address:"1001 SW Disk Drive, Suite 101, Bend, Oregon 97702",registerUrl:"https://www.eventbrite.com/e/ai-at-work-from-prompting-to-workflow-tickets-1997507184761?aff=oddtdtcreator",joinChamberUrl:"https://business.oregonchristianchamber.com/oregonapplicationtojoin"},d2=()=>pe(()=>import("./occc-ai-workshop-Gi_B1Kvo.js"),[]),h2=_e("/occc-ai-workshop")({head:()=>({meta:[{title:`${Lv.title} - LearnAIR™ x Oregon Christian Chamber`},{name:"description",content:"A practical, hands-on AI training session for Bend-area business professionals. September 29, 2026, hosted by the Oregon Christian Chamber of Commerce and LearnAIR™."},{name:"robots",content:"noindex, nofollow"},{property:"og:type",content:"website"},{property:"og:title",content:`${Lv.title} - LearnAIR™ x Oregon Christian Chamber`},{property:"og:description",content:"Practical AI training for business professionals. September 29, 2026 in Bend, Oregon."},{name:"twitter:card",content:"summary"}]}),component:fe(d2,"component")}),f2=()=>pe(()=>import("./products-CI2KDRP0.js"),[]),p2=_e("/products")({component:fe(f2,"component")}),g2=_e("/services")({beforeLoad:()=>{throw Js({to:"/forbusinesses"})}}),m2=()=>pe(()=>import("./workforce-Of1sf9Ds.js"),__vite__mapDeps([28,1,2,3,4,5])),y2=_e("/workforce")({head:()=>({meta:[{title:"WorkForce - Foundation Series© Training | LearnAIR™"},{name:"description",content:"AI literacy training for job seekers and career changers partnering with WorkSource - Oregon. Build practical skills through the LearnAIR™ Foundation Series©."},{property:"og:title",content:"WorkForce - Foundation Series© Training | LearnAIR™"},{property:"og:description",content:"AI literacy training for job seekers and career changers partnering with WorkSource - Oregon."}]}),component:fe(m2,"component")}),I0=[{slug:"welcome-to-the-learnair-blog",title:"Welcome to the LearnAIR™ Blog",excerpt:"A new home for practical ideas on AI readiness, workforce transformation, and the human side of working with AI.",author:"The LearnAIR™ Team",publishedAt:"2026-07-20",readMinutes:3,tags:["Announcements","AI Readiness"],body:[{type:"p",text:"Welcome to the LearnAIR™ blog - a new space where we share what we're learning as we help organizations build AI-Ready workforces. Expect practical playbooks, field notes from cohorts, and honest conversations about what it takes to work alongside AI."},{type:"h2",text:"What you'll find here"},{type:"ul",items:["Frameworks and roadmaps from our Learning Pathways","Case studies and lessons from partner organizations","Field notes from our monthly cohorts and community","Perspectives on leadership, culture, and the human part of AI"]},{type:"h2",text:"Stay in the loop"},{type:"p",text:"Subscribe to our newsletter or join the LearnAIR™ Community to get every new post, plus invitations to live webinars and events."}]},{slug:"placeholder-ai-readiness-roadmap",title:"Building Your 90-Day AI Readiness Roadmap",excerpt:"A practical, phase-by-phase plan for helping teams move from AI curiosity to confident daily use.",author:"The LearnAIR™ Team",publishedAt:"2026-07-10",readMinutes:6,tags:["AI Readiness","Playbooks"],body:[{type:"p",text:"Placeholder article - coming soon."}]},{slug:"placeholder-human-side-of-ai",title:"The Human Side of Working With AI",excerpt:"Why culture, trust, and psychological safety matter more than any single tool in your AI stack.",author:"The LearnAIR™ Team",publishedAt:"2026-06-28",readMinutes:5,tags:["Leadership","Culture"],body:[{type:"p",text:"Placeholder article - coming soon."}]},{slug:"placeholder-cohort-field-notes",title:"Field Notes From Our July Cohort",excerpt:"What we learned from a room full of operators experimenting with AI in their real workflows.",author:"The LearnAIR™ Team",publishedAt:"2026-06-15",readMinutes:4,tags:["Cohorts","Field Notes"],body:[{type:"p",text:"Placeholder article - coming soon."}]},{slug:"placeholder-ai-for-creatives",title:"AI for Creatives: Craft, Not Shortcut",excerpt:"How creative teams are using AI to expand their range without losing their voice.",author:"The LearnAIR™ Team",publishedAt:"2026-06-02",readMinutes:5,tags:["Creatives","Practice"],body:[{type:"p",text:"Placeholder article - coming soon."}]},{slug:"placeholder-reducing-admin-work",title:"Reducing Admin Work With AI Assistants",excerpt:"Where AI assistants pay off first - and the guardrails that keep the wins compounding.",author:"The LearnAIR™ Team",publishedAt:"2026-05-20",readMinutes:4,tags:["Productivity","Playbooks"],body:[{type:"p",text:"Placeholder article - coming soon."}]},{slug:"placeholder-reframing-ai",title:"Reframing AI for Your Organization",excerpt:"The language leaders use to introduce AI shapes adoption more than any training curriculum.",author:"The LearnAIR™ Team",publishedAt:"2026-05-05",readMinutes:5,tags:["Leadership","Change"],body:[{type:"p",text:"Placeholder article - coming soon."}]}];function WL(){return[...I0].sort((e,t)=>
60new Date(t.publishedAt).getTime()-new Date(e.publishedAt).getTime())}function v2(e){return I0.find(t=>t.slug===e)}function ZL(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}const b2=()=>pe(()=>import("./blog._slug-gj0J-HM4.js"),__vite__mapDeps([29,1,2,3,15,16])),w2=()=>pe(()=>import("./blog._slug-B1hF7Iwa.js"),__vite__mapDeps([30,1,2,3])),_2=()=>pe(()=>import("./blog._slug-BDp_di7b.js"),__vite__mapDeps([31,1,2,3])),S2=_e("/blog/$slug")({loader:({params:e})=>{const t=v2(e.slug);if(!t)throw Ys();return{post:t}},head:({loaderData:e})=>{if(!e)return{meta:[{title:"Post not found - LearnAIR™"},{name:"robots",content:"noindex"}]};const{post:t}=e;return{meta:[{title:`${t.title} - LearnAIR™ Blog`},{name:"description",content:t.excerpt},{property:"og:title",content:t.title},{property:"og:description",content:t.excerpt},{property:"og:type",content:"article"},{property:"article:published_time",content:t.publishedAt},{property:"article:author",content:t.author},...t.coverImage?[{property:"og:image",content:t.coverImage}]:[],{name:"twitter:card",content:"summary_large_image"}]}},notFoundComponent:fe(_2,"notFoundComponent"),errorComponent:fe(w2,"errorComponent"),component:fe(b2,"component")}),A2="/__l5e/assets-v1/b261fad5-bcfd-4d99-aa3e-e143c276a3e9/nwrpca.png",L0={url:A2},E2="/__l5e/assets-v1/115e2238-c39e-40c2-a467-a0378c5ab6c1/AIR_colored-4.png",R2={url:E2};function T2({className:e=""}){return U.jsxs("div",{className:`flex items-center ${e}`,children:[U.jsx("img",{src:L0.url,alt:"NWRPCA - Northwest Regional Primary Care Association",className:"h-12 w-auto object-contain"}),U.jsx("span",{className:"px-6 text-lg font-semibold text-nwrpca-slate","aria-hidden":"true",children:"X"}),U.jsx("img",{src:R2.url,alt:"LearnAIR",className:"h-9 w-auto object-contain"})]})}const C2="/assets/air-logo-white-BYn9ppox.png";function O2(){return U.jsx("footer",{className:"border-t-2 border-nwrpca-olive/60 bg-nwrpca-forest",children:U.jsxs("div",{className:"mx-auto flex max-w-6xl flex-col gap-4 px-6 py-8 sm:flex-row sm:items-center sm:justify-between",children:[U.jsx("p",{className:"text-sm font-semibold text-background/70",children:"NWRPCA Community Resources"}),U.jsxs("div",{className:"flex items-center gap-3",children:[U.jsx("img",{src:L0.url,alt:"NWRPCA",className:"h-9 w-auto object-contain brightness-0 invert"}),U.jsx("span",{className:"text-lg font-semibold text-white/70","aria-hidden":"true",children:"X"}),U.jsx("img",{src:C2,alt:"LearnAIR",className:"h-7 w-auto object-contain"})]})]})})}const k2="/__l5e/assets-v1/a7d80171-a659-488c-9cc9-f5b9fc6eb9c7/dh.jpg",x2={url:k2},I2="/__l5e/assets-v1/c1353620-be4b-416d-bdd7-54b69448dbb8/nova-tech.jpg",L2={url:I2},j2="/__l5e/assets-v1/b6692478-842e-4e9f-9086-b30dbfe20635/university-of-alabama.jpg",N2={url:j2},M2="/__l5e/assets-v1/47f4e4e2-d069-480b-8ce8-e2dec52ca2c4/pepsico.jpg",D2={url:M2},P2="/__l5e/assets-v1/cf64178e-fba6-4233-a0b0-d5e797f48180/omep-portrait.png",U2={url:P2},z2="/__l5e/assets-v1/ccda700c-8f3f-469d-bc55-f2aa2c1c4550/schwab-portrait.png",B2={url:z2},H2="/__l5e/assets-v1/a31846eb-6e44-499c-ad25-a721ff610160/bennington-portrait.png",$2={url:H2},q2=()=>pe(()=>import("./case-studies._slug-BxE47x-K.js"),__vite__mapDeps([32,1,2,3,33,4,5,34,27,18,35,36,37,38])),V2=()=>pe(()=>import("./case-studies._slug-CGTS2O4J.js"),[]),G2=()=>pe(()=>import("./case-studies._slug-Cn6C6SkB.js"),__vite__mapDeps([39,1,2,3])),tc={"university-of-alabama":{slug:"university-of-alabama",eyebrow:"Higher Education · Research & AI Literacy",title:"Building applied AI literacy at the University of Alabama",tagline:"From mixed AI experience to a shared model for responsible, applied AI across a multidisciplinary cohort.",image:N2.url,audience:"Universities, research organizations, academic centers, and multidisciplinary teams balancing AI adoption with privacy, governance, responsible use, and human judgment.",message:"Create shared AI foundations across a mixed-experience cohort while connecting AI directly to real research, administrative, and operational workflows.",evidence:"Strong demand for deeper hands-on building and an expanded conversation around AI literacy measurement, adoption, and research collaboration.",situation:"The University of Alabama brought together faculty, researchers, and staff whose experience with AI ranged from daily use to first exposure. Departments were experimenting independently, with little shared language around what the tools could do, where they fell short, and how institutional expectations around privacy, ethics, and academic integrity applied to everyday work.",approach:"The university engaged LearnAIR™ to establish shared AI foundations across the cohort - core concepts, large language models, prompting, tools, and responsible use - while keeping every session anchored to the work participants were actually doing. Rather than a generic overview, the program was built to translate AI capability into research, administrative, and operational practice.",signals:"LearnAIR™ connected training to practical workflows including literature review, grant development, data synthesis, report writing, project management, and knowledge work. Participants moved beyond basic prompting into assistants, custom GPTs, digital teammates, agents, and human-centered workflow design, with direct attention to verification, privacy, hallucinations, institutional constraints, ethics, and where human accountability must remain in the loop.",outcomes:"The cohort left with a common model for responsible, applied AI and created strong demand for deeper hands-on building, troubleshooting, and applied AI work. The engagement also expanded the conversation from one-time training into AI literacy measurement, adoption tracking, and potential research collaboration.",lookingAhead:"The University of Alabama now has a working higher-education model for moving multidisciplinary teams from AI awareness to responsible, practical application - a foun
60dation that can scale across departments as tools, policy, and research needs continue to evolve."},"nova-tech":{slug:"nova-tech",eyebrow:"Operations & Manufacturing · Executive Adoption",title:"Turning executive AI literacy into an adoption path at Nova-Tech",tagline:"From ChatGPT fundamentals to repeatable, documented AI work across leadership teams.",image:L2.url,audience:"Executive and functional leaders in operations-intensive organizations who need a practical, governed approach to AI adoption across teams with varied experience levels.",message:"Give leaders a shared language for AI, then move them from personal experimentation into repeatable, documented work supported by real project context.",evidence:"A staged executive-adoption model that begins with personal practice and builds toward organization-level implementation and governance decisions.",situation:"Nova-Tech's leadership team saw clear potential in AI but had no consistent starting point. Some leaders were already using ChatGPT regularly while others had barely opened it, and interest was outpacing any shared understanding of where AI genuinely fit into operational work - or what responsible use should look like across the business.",approach:"Nova-Tech engaged LearnAIR™ to deliver the Executive Series©, beginning with ChatGPT fundamentals, role-aware personalization, and a shared language for responsible use. The program then moved deliberately into everyday work: mapping repeatable tasks, organizing project context, and documenting reusable AI skills that could outlive any single session.",signals:"LearnAIR™ guided participants to build personalized digital colleagues using the LearnAIR™ DIRECT framework, personal context, and tailored assistant instructions. Sessions moved from general AI interest to real work by identifying repeatable tasks, organizing information in projects, and defining the process behind a reusable skill - with governance positioned alongside enablement, surfacing the decisions leaders need to make around connected tools, information access, permissions, usage, and more autonomous workflows.",outcomes:"The engagement produced a common language for discussing AI opportunity, verification, and responsible adoption across leadership and functional teams. Leaders left with clearer pathways from individual experimentation to structured, repeatable work supported by project context and documented processes.",lookingAhead:"Nova-Tech now has a staged executive-adoption model: personal practice first, then team-level workflows, then organization-level implementation and governance decisions - a sequence leaders can extend as AI capability moves deeper into operations."},dh:{slug:"dh",eyebrow:"Channel Distribution · Partner Enablement",title:"Building practical AI confidence for D&H's channel-facing teams",tagline:"Foundation Series© training that moved D&H from AI literacy into workflow-centered partner enablement.",image:x2.url,audience:"Technology distributors and channel organizations helping internal teams, reseller communities, and customer-facing leaders translate AI into practical work.",message:"Move AI conversations beyond generic capability demos toward credible, workflow-centered enablement for both technical and non-technical audiences.",evidence:"Personalized, project-specific Copilot working patterns grounded in participants' real responsibilities.",situation:"As a technology distributor, D&H sits between vendors and a large reseller community - which meant AI questions were arriving from every direction. Internal teams needed working fluency with Copilot for their own day-to-day responsibilities, and customer-facing leaders needed to speak about AI credibly rather than repeating vendor talking points.",approach:"D&H partnered with LearnAIR™ on the Foundation Series©, moving from approachable AI literacy and personalization into real-work workflow design and project-specific digital colleagues. Human review, governance, and practical partner use cases stayed at the center throughout.",signals:"LearnAIR™ built a shared foundation in Copilot, practical prompting, and personalization through the LearnAIR™ DIRECT framework, then guided participants from individual prompts into repeatable workflows: identifying routine work, supplying the right context, and refining outputs through real tasks. Project-based notebooks and tailored instructions organized conversations, resources, and role-specific supp
60ort, and the experience was adapted to D&H's available Copilot environment while reinforcing iteration, output validation, and responsible human oversight.",outcomes:"Participants gained a shared language for AI adoption that works for both technical and non-technical audiences, along with personalized, project-specific Copilot working patterns grounded in their actual responsibilities rather than demo scenarios.",lookingAhead:"D&H now has a practical foundation for taking AI conversations to its partner community with credibility - workflow-centered enablement that can extend from internal teams to resellers and their end customers."},pepsico:{slug:"pepsico",eyebrow:"Enterprise · Executive AI Enablement",title:"Personalized AI enablement for senior leaders at PepsiCo",tagline:"A shared executive AI baseline that moved leaders from awareness into personalized, hands-on application.",image:D2.url,audience:"Enterprise executive teams that have AI tools in place but need leaders to build confidence, improve personal effectiveness, model adoption, and identify practical opportunities across the organization.",message:"Create a common executive AI baseline, then move leaders beyond awareness into personalized application using the tools already in their environment.",evidence:"A repeatable enterprise model: shared baseline → personalized AI experience → practical leadership workflows.",situation:"PepsiCo's India executive leadership team already had AI tools available, including Microsoft Copilot and PEP GPT, but adoption varied widely from leader to leader. The gap was not access - it was confidence, personal relevance, and a shared sense of how senior leaders should model AI use for the organizations they run.",approach:"PepsiCo brought in LearnAIR™ to create a common AI baseline across leaders with varying levels of experience, then move past general awareness into practical, personalized application. The program was framed around executive productivity, real application, and leadership role modeling rather than generic AI education.",signals:"LearnAIR™ anchored the experience in PepsiCo's existing environment, including Microsoft Copilot and PEP GPT, while introducing the broader AI landscape and relevant use cases. A PepsiCo-specific Executive Training Persona Builder, loaded with context about the participating leaders, allowed executives to build AI thought partners highly relevant to their individual roles and working styles - combined with hands-on experimentation, personalized workflows, digital teammates, and guidance on maintaining authenticity and human judgment.",outcomes:"The engagement moved executive AI enablement from general awareness toward personalized, hands-on application, giving leaders a practical framework for using AI as a role-specific thought partner and productivity tool.",lookingAhead:"PepsiCo now has a repeatable model for enterprise executive adoption - shared baseline, personalized AI experience, then practical leadership workflows - that can be extended to additional regions and leadership tiers."},omep:{slug:"omep",eyebrow:"Partner Enablement",title:"Scaling AI literacy with OMEP",tagline:"A partner-led train-the-trainer model that turns one team into a regional AI delivery network.",image:U2.url,audience:"Working professionals, business leaders, and regional stakeholders across OMEP's network.",message:"OMEP partnered with LearnAIR™ to help business leaders and professionals confidently apply AI to drive organizational growth and innovation.",evidence:"Expanded access to AI literacy and immediate, on-the-job application for participants across the region.",situation:"OMEP recognized that artificial intelligence was becoming increasingly relevant across the industries and communities it serves. As organizations looked for practical ways to understand and adopt AI, there was a growing need for trusted education that could make emerging technology accessible, actionable, and aligned with real-world workforce needs.",approach:"To help meet that need, OMEP partnered with LearnAIR™ to deliver practical AI education designed for working professionals, business leaders, and regional stakeholders. Together, we created opportunities for participants to build confidence with AI, understand its business applications, and explore how it could support innovation, productivity, and long-term growth.",signals:"LearnAIR™ provided a structured learning experience focused on practical AI literacy and workplace application. Through engaging instruction, real-world examples, and hands-on learning, participants gained a clearer understanding of how AI can be used responsibly and effectively within their organizations.",outcomes:"The partnership helped expand access to AI education across OMEP's network while equipping participants with knowledge they could immediately apply in their work. By combining OMEP's regional leadership with LearnAIR™'s expertise in AI education, the program supported workforce readiness and helped organizations take meaningful steps toward adopting AI with confidence.",lookingAhead:"As AI continues to reshape industries, organizations need practical guidance to navigate change and identify new opportunities. The collaboration between OMEP and LearnAIR™ demonstrates how strategic partnerships can help businesses build capability, strengthen their workforce, and prepare for the future of work."},"les-schwab":{slug:"les-schwab",eyebrow:"Executive AI Adoption",title:"Building leadership AI confidence at Les Schwab",tagline:"Executive AI adoption inside a large, operationally complex company - turning curiosity into daily Gemini practice.",image:B2.url,audience:"Leaders across multiple regions and leadership levels at Les Schwab, navigating a rapidly evolving business environment.",message:"Deliver tailored AI education that helps leaders understand AI, explore workplace applications, and build confidence using it with their teams.",evidence:"Built AI literacy, confidence, and alignment across leadership teams.",situation:"As AI continues to reshape the business landscape, Les Schwab recognized the need to help leaders better understand emerging technologies and their potential impact on operations, decision-making, and future growth. With teams spanning multiple regions and leadership levels, the organization sought a practical approach to building AI awareness while preparing leaders to navigate a rapidly evolving business environment.",approach:"Les Schwab engaged LearnAIR™ to provide AI education tailored to leaders across the organization. The focus was on helping participants develop a clear understanding of AI, explore relevant workplace applications, and build confidence in discussing how these technologies may influence their teams and responsibilities.",signals:"LearnAIR™ delivered customized AI learning experiences designed specifically for leadership audiences. Through practical examples, interactive discussions, and real-world use cases, participants gained a better understanding of AI capabilities, limitations, and opportunities while developing a shared foundation of AI knowledge across leadership teams.",outcomes:"The engagement helped increase AI literacy and confidence among participants, creating a common language for discussing emerging technologies and their potential applications. Leaders left with a stronger understanding of AI and greater readiness to engage in conversations about innovation, workforce development, and organizational change.",lookingAhead:"As AI continues to evolve, organizations benefit from leaders who understand both the opportunities and challenges associated with emerging technologies. By investing in AI education and awareness, Les Schwab helped equip its leaders with knowledge that can support informed decision-making and ongoing learning as the technology landscape continues to change."},"bennington-properties":{slug:"bennington-properties",eyebrow:"From Training to Digital Employee",title:"Designing a guest-service AI agent for Bennington Properties",tagline:"From AI training to a practical, sanctioned digital employee that helps staff deliver more personal guest service.",image:$2.url,audience:"Business leaders and ke
60y stakeholders exploring how AI can enhance operational efficiency, improve service delivery, and support organizational growth.",message:"Help leaders build practical AI understanding, identify meaningful opportunities, and establish a foundation for informed decision-making as AI capabilities evolve.",evidence:"Increased AI literacy across teams, identified a digital guest services agent opportunity, and built leadership confidence to evaluate and explore future AI initiatives.",situation:"With the increased capability of AI supporting day-to-day business operations, Bennington Properties saw an opportunity to explore how AI could enhance efficiency, improve service delivery, and support teams across the organization. The company wanted to better understand where AI could create value while ensuring leaders and stakeholders had the knowledge needed to evaluate opportunities responsibly.",approach:"Bennington Properties engaged LearnAIR™ to help leaders and key stakeholders build a practical understanding of AI and explore how emerging technologies could support business operations. The focus was on creating awareness, identifying meaningful opportunities, and establishing a foundation for informed decision-making as AI capabilities continued to evolve.",signals:"LearnAIR™ delivered customized AI education and facilitated discussions around operational applications relevant to Bennington Properties. Through practical examples and collaborative exploration, participants developed a stronger understanding of how AI could support business functions while gaining clarity on considerations for implementation and adoption.",outcomes:"The engagement increased AI literacy across participating teams and helped establish a shared understanding of where AI could support operational goals. Through the learning process, Bennington Properties identified an opportunity to leverage a digital guest services agent, demonstrating how AI could enhance operational efficiency while supporting a more personalized customer experience. Leaders gained greater confidence evaluating opportunities and exploring future AI initiatives aligned with business needs.",lookingAhead:"As AI continues to transform how organizations operate, the ability to evaluate and adopt new technologies thoughtfully becomes increasingly important. Bennington Properties now has a stronger foundation for ongoing AI exploration, helping leaders make informed decisions and identify opportunities that support long-term organizational success."}},F2=_e("/case-studies/$slug")({validateSearch:e=>({from:typeof e.from=="string"?e.from:void 0}),head:({params:e})=>{const t=tc[e.slug];return t?{meta:[{title:`${t.title} - LearnAIR™ Case Study`},{name:"description",content:t.tagline},{property:"og:title",content:`${t.title} - LearnAIR™`},{property:"og:description",content:t.tagline},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"}]}:{meta:[{title:"Case Study - LearnAIR™"}]}},loader:({params:e})=>{const t=tc[e.slug];if(!t)throw Ys();return t},notFoundComponent:fe(G2,"notFoundComponent"),errorComponent:fe(V2,"errorComponent"),component:fe(q2,"component")});function ej({cs:e}){return U.jsxs("div",{className:"min-h-screen flex flex-col bg-nwrpca-mist",children:[U.jsx("header",{className:"border-b-2 border-nwrpca-olive/50 bg-background",children:U.jsxs("div",{className:"mx-auto flex max-w-6xl items-center justify-between px-6 py-4",children:[U.jsx(T2,{}),U.jsxs(lc,{to:"/nwrpca",className:"inline-flex items-center gap-2 text-sm font-semibold text-nwrpca-slate hover:text-nwrpca-blue",children:[U.jsx(hx,{className:"size-4"})," Back to NWRPCA Hub"]})]})}),U.jsxs("main",{className:"flex-1",children:[U.jsx("section",{className:"px-6 pt-10 pb-6",children:U.jsxs("div",{className:"mx-auto max-w-6xl rounded-2xl bg-card px-8 py-12 shadow-[0_10px_40px_-16px_rgba(57,66,20,0.25)] ring-1 ring-nwrpca-forest/10 md:px-14 md:py-16",children:[U.jsxs("p",{className:"text-sm font-bold uppercase tracking-[0.14em] text-nwrpca-slate",children:["Case Study ",U.jsxs("span",{className:"text-nwrpca-olive",children:["/ ",e.eyebrow]})]}),U.jsx("h1",{className:"mt-4 max-w-4xl text-4xl md:text-6xl font-extrabold leading-[1.05] text-nwrpca-forest",children:e.title}),U.jsx("div",{className:"mt-6 h-1 w-16 bg-nwrpca-blue"}),U.jsx("p",{className:"mt-6 max-w-3xl text-lg md:text-xl text-nwrpca-ink/75 leading-relaxed",children:e.tagline})]})}),U.jsx("section",{className:"px-6 py-6",children:U.jsxs("div",{className:"mx-auto grid max-w-6xl gap-8 lg:grid-cols-12",children:[U.jsx("div",{className:"lg:col-span-5",children:U.jsx("div",{className:"aspect-[3/4] overflow-hidden rounded-2xl bg-muted shadow-[0_10px_40px_-16px_rgba(57,66,20,0.3)]",children:U.jsx("img",{src:e.image,alt:e.title,width:768,height:1024,className:"h-full w-full object-cover object-center"})})}),U.jsx("div",{className:"flex flex-col gap-6 lg:col-span-7",children:[{label:"Audience",value:e.audience},{label:"Partnership Focus",value:e.message},{label:"Outcome",value:e.evidence}].map(t=>U.jsxs("div",{className:"flex-1 rounded-xl bg-card px-7 py-6 shadow-[0_10px_30px_-12px_rgba(57,66,20,0.22)] ring-1 ring-nwrpca-forest/10",children:[U.jsx("p",{className:"mb-2 text-xs font-bold uppercase tracking-[0.2em] text-nwrpca-olive",children:t.label}),U.jsx("p",{className:"font-medium leading-snug text-nwrpca-forest",children:t.value})]},t.label))})]})}),U.jsx("section",{className:"px-6 pt-6 pb-16",children:U.jsx("div",{className:"mx-auto max-w-5xl space-y-6",children:(()=>{const t=[{title:"Situation",body:e.situation},{title:"Partnership Focus",body:e.approach},{title:"Solution",body:e.signals},{title:"Impact",body:e.outcomes},...e.lookingAhead?[{title:"Looking Ahead",body:e.lookingAhead}]:[]],a=["bg-nwrpca-blue","bg-nwrpca-olive","bg-nwrpca-forest","bg-nwrpca-blue","bg-nwrpca-olive"];return t.map((s,l)=>U.jsxs("div",{className:"rounded-2xl bg-card px-8 py-8 shadow-[0_10px_30px_-14px_rgba(57,66,20,0.22)] ring-1 ring-nwrpca-forest/10 md:px-10",children:[U.jsx("h2",{className:"text-2xl md:text-3xl font-extrabold text-nwrpca-forest",children:s.title}),U.jsx("div",{className:`mt-3 h-1 w-12 ${a[l]}`}),U.jsx("p",{className:"mt-5 text-lg leading-relaxed text-nwrpca-ink/75",children:s.body})]},s.title))})()})})]}),U.jsx(O2,{})]})}const K2=()=>pe(()=>import("./edco.index-DbDVMxmo.js"),__vite__mapDeps([40,10,11,6,7,41,19,35,18,36,42,43])),Y2=_e("/edco/")({head:()=>({meta:[{title:"EDCO x LearnAIR™ - Practical AI Training for Central Oregon"},{name:"description",content:"Practical, role-relevant AI training for EDCO members and Central Oregon employers, powered by LearnAIR™."},{property:"og:title",content:"EDCO x LearnAIR™ - Practical AI Training for Central Oregon"},{property:"og:description",content:"Practical, role-relevant AI training for EDCO members and Central Oregon employers, powered by LearnAIR™."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:fe(K2,"component")}),J2=()=>pe(()=>import("./edco.deck-B6G8jTOx.js"),__vite__mapDeps([44,41,11,19,35,18,42,43])),Q2=_e("/edco/deck")({head:()=>({meta:[{title:"EDCO Training Presentation - Powered by LearnAIR™"},{name:"robots",content:"noindex, nofollow"},{name:"description",content:"Practical AI training presentation for EDCO members, powered by LearnAIR™."},{property:"og:title",content:"EDCO Training Presentation - Powered by LearnAIR™"},{property:"og:description",content:"Practical AI training presentation for EDCO members, powered by LearnAIR™."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:fe(J2,"component")}),X2=()=>pe(()=>import("./issi.index-DnMIq1sp.js"),__vite__mapDeps([45,10,11,6,7,41,19,37,38,42,43,18])),W2=_e("/issi/")({head:()=>({meta:[{title:"ISSI x LearnAIR™ - Practical AI Training for Technical Teams"},{name:"description",content:"Practical, role-relevant AI training for ISSI teams and partners, powered by LearnAIR™."},{property:"og:title",content:"ISSI x LearnAIR™ - Practical AI Training for Technical Teams"},{property:"og:description",content:"Practical, role-relevant AI training for ISSI teams and partners, powered by LearnAIR™."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:fe(X2,"component")}),Z2=()=>pe(()=>import("./issi.deck-CpdQ1CB5.js"),__vite__mapDeps([46,41,11,19,37,42,43])),eI=_e("/issi/deck")({head:()=>({meta:[{title:"ISSI Training Presentation - Powered by LearnAIR™"},{name:"robots",content:"noindex, nofollow"},{name:"description",content:"Practical AI training presentation for ISSI teams, powered by LearnAIR™."},{property:"og:title",content:"ISSI Training Presentation - Powered by LearnAIR™"},{property:"og:description",content:"Practical AI training presentation for ISSI teams, powered by LearnAIR™."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:fe(Z2,"component")}),tI=()=>pe(()=>import("./msp-summit.index-5MmgTOv9.js"),__vite__mapDeps([47,10,11,6,7,48,8,4,5,2,18,49])),nI=_e("/msp-summit/")({head:()=>({meta:[{title:"MSP Summit Partner Resources - Powered by LearnAIR™"},{name:"robots",content:"noindex, nofollow"},{name:"description",content:"Private MSP Summit partner resources for practical AI training, powered by LearnAIR™."},{property:"og:title",content:"MSP Summit Partner Resources - Powered by LearnAIR™"},{property:"og:description",content:"Private MSP Summit partner resources for practical AI training, powered by LearnAIR™."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:fe(tI,"component")}),rI=()=>pe(()=>import("./msp-summit.deck-B9F7l5h8.js"),__vite__mapDeps([50,48,8,4,5,2,41,11,19,51,49,18])),aI=_e("/msp-summit/deck")({head:()=>({meta:[{title:"MSP Summit Partner Presentation - Powered by LearnAIR™"},{name:"robots",content:"noindex, nofollow"},{name:"description",content:"Private MSP Summit partner enablement presentation, powered by LearnAIR™."},{property:"og:title",content:"MSP Summit Partner Presentation - Powered by LearnAIR™"},{property:"og:description",content:"Private MSP Summit partner enablement presentation, powered by LearnAIR™."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:fe(rI,"component")}),iI=()=>pe(()=>import("./nwrpca.index-CGa5vGKz.js"),__vite__mapDeps([52,10,11,6,7,18])),sI=_e("/nwrpca/")({head:()=>({meta:[{title:"NWRPCA x LearnAIR™ - Practical AI Training for Community Health Centers"},{name:"description",content:"Practical, role-relevant AI training for NWRPCA's own team and the community health centers they serve, powered by LearnAIR™."},{property:"og:title",content:"NWRPCA x LearnAIR™ - Practical AI Training for Community Health Centers"},{property:"og:description",content:"Practical, role-relevant AI training for NWRPCA's own team and the community health centers they serve, powered by LearnAIR™."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:fe(iI,"component")}),oI=()=>pe(()=>import("./nwrpca.deck-Pbvu1SZP.js"),__vite__mapDeps([53,41,11,19,43])),lI=_e("/nwrpca/deck")({head:()=>({meta:[{title:"NWRPCA Training Presentation - Powered by LearnAIR™"},{name:"robots",content:"noindex, nofollow"},{name:"description",content:"Practical AI training presentation for NWRPCA and the community health centers they serve, powered by LearnAIR™."},{property:"og:title",content:"NWRPCA Training Presentation - Powered by LearnAIR™"},{property:"og:description",content:"Practical AI training presentation for NWRPCA and the community health centers they serve, powered by LearnAIR™."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:fe(oI,"component")}),cI=_e("/products/")({beforeLoad:()=>{throw Js({to:"/forbusinesses"})}}),uI="/assets/product-enablement-BK9kHZdH.jpg",dI="/assets/product-hub-D-OTkAEy.jpg",hI=[{slug:"monthly-cohort",eyebrow:"For Individuals",name:"Monthly Cohort",tagline:`Build the foundation for working alongside AI.
61A 3-part live cohort designed to help develop the skills, confidence, and practical experience
62needed to thrive in an AI-powered workplace.`,shortDescription:`Build the foundation for working alongside AI.
63Our monthly cohort helps participants build AI literacy, understand modern AI workflows, and confidently use AI tools in their daily work.`,longDescription:["The Monthly Cohort is built around LearnAIR™’s Foundation Series© and designed to help individuals become AI-Ready for the future of work.","Across three live sessions, you’ll develop practical AI literacy, learn how to work effectively alongside AI tools and digital employees, and build real workflows that can be applied immediately in your career or business.","By the end of the cohort, you’ll have the confidence, skills, and systems needed to increase productivity, improve decision-making, and create value in an increasingly AI-powered workplace - all alongside a community of peers on the same journey."],image:x0,highlights:[{title:"Workforce-focused learning delivered in three live sessions.",description:"Sequenced over the month, designed for real-world momentum."},{title:"The foundational AI literacy program for future-ready professionals.",description:"Our signature curriculum-now in a cohort format."},{title:"Interactive learning with live coaching, collaboration, and peer accountability.",description:"Intimate setting with live trainer access and peer learning."},{title:"Practical resources you can keep using.",description:"Includes all live sessions, trainer access, replays, and practical frameworks you can immediately apply."}],audience:"Individuals & solo professionals",cadence:"3 sessions • 1 per week",cta:"Join the next cohort"},{slug:"team-enablement",eyebrow:"For Businesses",name:"AI-ready Workforce Enablement",tagline:`Help your organization build an AI-Ready Workforce through practical training,
64leadership alignment, and workforce transformation strategies.`,shortDescription:"Our Foundation©, Connect©, and Executive© Series help organizations build AI literacy, align leadership, and prepare teams to work effectively alongside AI.",longDescription:[`AI-Ready Workforce Enablement is LearnAIR™’s flagship workforce transformation offering. Built around our Foundation Series©, Connect Series©, and Executive Series©, these programs help organizations develop the skills, systems, and leadership capabilities needed to thrive in an AI-powered future.
65
66Rather than focusing on tools alone, we help organizations prepare their workforce to work confidently alongside AI and digital employees. Every engagement is practical, human-centered, and aligned to the real workflows, challenges, and opportunities your teams face every day.
67
68Foundation Series© - Build the Foundation
69Establish a common AI language across your workforce. Team members develop practical AI literacy, gain confidence using AI tools responsibly, and learn how to apply AI to real work.
70
71Connect Series© - Enable the Workforce
72Move beyond awareness and into application. Teams learn how to integrate AI into workflows, develop role-specific digital employees, and create repeatable systems that improve productivity and collaboration.
73
74Executive Series© - Lead the Transformation
75Equip leaders with the knowledge and frameworks needed to guide workforce transformation. Executives learn how to align people, process, and technology while creating a responsible approach to AI adoption and future-of-work planning.
76
77Every engagement is human-led, tool-agnostic, and designed to help organizations automate repetitive work, augment human capabilities, and transform how work gets done.`],image:uI,highlights:[{title:"Foundation Series©",description:"Build the workforce-wide AI literacy needed to create confidence, consistency, and responsible adoption."},{title:"Connect Series©",description:"Enable teams to integrate AI into daily workflows through practical systems, digital employees, and real-world applications."},{title:"Executive Series©",description:"Prepare leaders to guide workforce transformation and successfully manage human and digital teams."},{title:"Digital Employee Development",description:"Guided creation of role-specific digital employees that support productivity, consistency, and decision-making."},{title:"Human-led & tool-agnostic",description:"Practical training that works across any AI platform or tool your organization already uses-built for real work, not generic demos."},{title:"Measurable ROI",description:"Reduce repetitive work, increase workforce productivity, improve adoption, and accelerate organizational readiness for the future of work."}],audience:"Teams of 10–10,000",cadence:"AI Literacy",cta:"Connect with our team"},{slug:"everboarding-hub",eyebrow:"For Brands & Communities",name:"Co-branded Everboarding© Hub",tagline:"Sustain workforce readiness with ongoing learning, resources, and community.",shortDe
77scription:`Keep your workforce and community current as AI evolves.
78Our co-branded Everboarding© Hub provides ongoing learning, resources, live programming, and peer collaboration.`,longDescription:["The Co-branded Everboarding© Hub gives your workforce, members, or community a dedicated destination for continuous AI learning and workforce development-fully branded to your organization and powered by LearnAIR™.","As AI evolves, workforce readiness cannot be a one-time event. Our Everboarding© model provides ongoing education, live programming, resources, and peer collaboration that help individuals and organizations stay current, confident, and capable in an AI-powered world.","We manage the content, updates, and learning experience so you can deliver lasting value without building and maintaining a curriculum yourself.","Launch faster, increase engagement, and create a sustainable workforce readiness strategy that grows alongside AI."],image:dI,highlights:[{title:"Co-branded experience",description:"Deliver a workforce development experience that reflects your brand while leveraging LearnAIR™’s proven content and learning ecosystem."},{title:"Always-on library",description:"Continuously updated learning pathways that help members stay current as AI tools, technologies, and workforce expectations evolve."},{title:"Community forums",description:"Peer collaboration, expert guidance, and shared learning that reinforce adoption and long-term workforce development."},{title:"Subscription model",description:"A scalable model for sustaining workforce readiness through ongoing education, resources, events, and community engagement."}],audience:"Brands, associations, communities",cadence:"Subscription model",cta:"Explore a partnership"}],jv=e=>hI.find(t=>t.slug===e),fI=()=>pe(()=>import("./products._slug-BvDLm6Mm.js"),__vite__mapDeps([54,1,2,3,4,5,9])),pI=()=>pe(()=>import("./products._slug-Duqb-WpU.js"),[]),gI=()=>pe(()=>import("./products._slug-pXOf7Qhw.js"),__vite__mapDeps([55,1,2,3])),mI=_e("/products/$slug")({beforeLoad:({params:e})=>{if(e.slug==="monthly-cohort")throw Js({to:"/forhumans",statusCode:307})},head:({params:e})=>{const t=jv(e.slug);return t?{meta:[{title:`${t.name} - LearnAIR™`},{name:"description",content:t.shortDescription},{property:"og:title",content:`${t.name} - LearnAIR™`},{property:"og:description",content:t.shortDescription},{property:"og:image",content:t.image}]}:{meta:[{title:"Product - LearnAIR™"}]}},loader:({params:e})=>{const t=jv(e.slug);if(!t)throw Ys();return t},notFoundComponent:fe(gI,"notFoundComponent"),errorComponent:fe(pI,"errorComponent"),component:fe(fI,"component")}),yI="/__l5e/assets-v1/a34d4ec6-899f-421d-a247-29d95255059f/teresa-coats.png",vI={url:yI},bI="/__l5e/assets-v1/edf39cce-4d93-4eaa-af71-514f70363d8c/justin-coats.png",wI={url:bI},_I="/__l5e/assets-v1/5d8f83ea-82f1-417b-8374-51e1faee9942/kristina-brewer.png",SI={url:_I},AI="/__l5e/assets-v1/3c2d16f0-161e-4c25-986d-e8fc1beb94c2/rhonda-coats.png",EI={url:AI},RI="/assets/andrea-zuniga-D7vZSdgT.jpeg",TI="/assets/carl-bohme-BlNlmu9g.jpeg",CI="/assets/welza-soncio-KX3YwD99.jpeg",OI="/assets/bobby-napiltonia-D--zh8QE.jpeg",kI="/__l5e/assets-v1/69fea548-772b-47f3-8a7a-fbbffd2c51ed/makenna-bartow.png",xI={url:kI},II="/__l5e/assets-v1/de7c4a1d-3adb-451c-8885-a183de8118cf/michael-stoneman.png",LI={url:II},jI="/__l5e/assets-v1/3998e25b-39e5-4147-882a-bb57e39c8a2e/asher-albertini.png",NI={url:jI},MI="/__l5e/assets-v1/03f7c5bc-80a8-4f3e-a34e-3a6f7ab3eae6/brock-denherder.png",DI={url:MI},PI=[{slug:"teresa-coats",name:"Teresa Coats",role:"Chief Executive Officer",bio:"Teresa Coats is the CEO and Co-founder of LearnAIR™, a recognized OpenAI Service Partner dedicated to advancing AI literacy and enablement. A visionary leader with a diverse background spanning non-profits, retail, sports management, and technology, Teresa has spent her career helping organizations navigate change with clarity and confidence. At LearnAIR™, she leads with the conviction that the future of work is both human-first and AI-forward. Under her direction, the company’s mission is clear: to usher humanity into the AI era by equipping leaders and team
78s to understand, adopt, and scale AI responsibly. Teresa is known for transforming abstract vision into executable strategy, bridging the gap between innovation and implementation. Her leadership philosophy is rooted in radical transparency, strategic foresight, and a deep respect for human potential - ensuring that as technology advances, people remain at the center of progress. Outside of her role at LearnAIR™, Teresa finds balance in family life and tending her garden, grounding her leadership in the same curiosity and care that define her work.",image:vI.url,imageClass:"object-cover object-top"},{slug:"justin-coats",name:"Justin Coats",role:"Chief Innovation Officer",bio:"Justin Coats is a dynamic force in AI integration and personal development, bringing a unique perspective shaped by diverse experiences in technology, teaching, and entrepreneurship. His journey from the Marine Corps to pioneering in the AI space has equipped him with invaluable insights into the challenges and potential of AI in modern society. Passionate about empowering learners, Justin specializes in translating complex AI concepts into accessible, practical skills, driving innovation and efficiency. Justin has delivered hundreds of hours of specialized training sessions with individuals and small to medium-sized groups, mastering the art of AI integration for business solutions, enabling teams to complete projects weeks before their deadlines or, in some cases, months before they would have normally finished their project. With an unparalleled command over both quantitative and qualitative metrics, Justin is the go-to authority for AI Integration Coaching, ensuring that you not only feel comfortable taking his course but also achieve outstanding outcomes. Don’t Forget the Human Part©.",image:wI.url,imageClass:"object-cover object-top scale-[1.15] origin-top -translate-y-[8%]"},{slug:"kristina-brewer",name:"Kristina Brewer",role:"Chief of Staff",bio:"Kristina is a multidisciplinary creative and systems-minded operator who blends sharp operational design instincts with real-world business execution. She began her career in the fast-paced environment of a newspaper, where she honed her eye for visual storytelling, tight deadlines, and high-impact design. Building on that foundation, she lau
78nched and ran her own graphic design business, partnering with clients to bring brands to life through thoughtful, strategic visuals. Her entrepreneurial experience strengthened not just her creative skillset, but her ability to manage projects, relationships, and growth. Alongside her design work, Kristina has played a key role in a community non-profit, contributing as a behind-the-scenes force for clarity and momentum. She brings structure to mission-driven work; streamlining processes, aligning teams, and turning big ideas into tangible outcomes. Balancing creative vision with operational precision, Kristina thrives at the intersection of design, business, and community impact. Outside of her professional work, Kristina’s life is grounded in family and community. She is the wife of a retired 22-year Army veteran, a role that has shaped her resilience, adaptability, and deep sense of commitment. She and her family have a long-standing connection to youth baseball, with years spent at the field and traveling for tournaments as well as being involved in community youth baseball programs. Beyond the ballfield, her family embraces every opportunity to travel, explore, and experience new adventures together.",image:SI.url,imageClass:"object-cover scale-[1.15] translate-y-[8%]"},{slug:"rhonda-coats",name:"Rhonda Coats",role:"Director of Sales",bio:"Rhonda Coats is a seasoned professional with a diverse career spanning child welfare, legal defense, Mitigation investigation, e-commerce, and entrepreneurship. She began her career in the 1990s with the Oregon Department of Human Services, where she provided administrative and executive support before advancing to an Information Specialist role. Building on her skills in research and advocacy, Rhonda transitioned into the legal field and became a licensed Private Investigator. Specializing in Mitigation Investigation, she worked to keep defendants off death row in the state of Oregon. Rhonda later shifted into the private sector, where she became an accomplished Amazon Catalog and Advertising Manager overseeing more than a million dollars in annual ad spend and managing thousands of product listings, while also serving in an executive support capacity. Her keen eye for detail, data-driven approach, and ability to manage large-scale operations made her a trusted leader in the fast-paced world of e-commerce. Beyond her career, she is devoted to her family, an avid pickleball enthusiast, a quilter, and a lifelong learner who has lived through some of the most transformative eras in American history. From the social movements of the 1960s and 1970s to the challenges of the COVID-19 pandemic, she has remained deeply rooted in her small rural community.",image:EI.url,imageClass:"object-cover object-top"},{slug:"andrea-zuniga",name:"Andrea Zúñiga",role:"Client Success Lead",bio:"With seven years of experience in the digital and direct marketing industry, Andrea has honed her skills in project management, ensuring that teams operate efficiently and businesses achieve their goals seamlessly. Her expertise lies in streamlining processes, optimizing workflows, and fostering collaboration to drive impactful results. At LearnAIR™, she plays a role in keeping operations running smoothly, bridging communication across teams, and ensuring that projects stay on track. She believes that transparency, clear and open communication, and mutual respect are the foundation of any successful team; values she upholds in every interaction. A firm believer in continuous improvement, Andrea is consistently seeks to enhance productivity and efficiency, while discovering smarter approaches to work without compromising quality. Outside of work, she finds joy in nature, whether hiking, exploring the outdoors, or simply spending quality time with family and friends. For her, balance is key by combining professional excellence with meaningful personal experiences.",image:RI,imageClass:"object-cover object-top"},{slug:"brock-denherder",name:"Brock DenHerder",role:"Client Relations Specialist",bio:"Brock brings more than a decade of hospital
78ity experience to his role as Client Relations Specialist at LearnAIR™, with a career spanning theme parks, cruise lines, airlines, and resort hotels. Most recently in the industry, he led sales and revenue management for two hotel properties and a convention center, where success depended on coordinating complex operations across teams while managing long-term client relationships. Brock will apply his diverse experience in multi-departmental business operations with his proven client support skills to further empower teams with LearnAIR™'s dedicated services. Outside of work, Brock enjoys exploring a variety of Central Oregon outdoor activities, traveling, spending time with family, and pursuing his many hobbies.",image:DI.url,imageClass:"object-cover object-[center_28%]"},{slug:"carl-bohme",name:"Carl Bohme",role:"Applied AI Engineer",bio:"Carl is a technically driven problem solver at LearnAIR™, where he helps clients seamlessly integrate AI into their operations. He brings a systems-oriented mindset to the challenge of deploying intelligent tools in production environments, combining technical depth and a clear focus on usability and impact. His background includes software engineering roles at Intel and Thermo Fisher Scientific, completed as part of his studies in computer science with a focus on cybersecurity. These roles provided exposure to real-world development environments and helped build a strong foundation in secure systems, backend development, and collaborative engineering practices. Outside of work, Carl enjoys hiking, playing water polo, and developing personal web projects that explore new tech stacks, always looking for new tools to learn.",image:TI,imageClass:"object-cover object-top"},{slug:"makenna-bartow",name:"Makenna Bartow",role:"Educational Content Designer",bio:"Makenna Bartow studied Computer Science and AI at IE University in Madrid. She applies her technical training in AI to her work at LearnAIR™, focusing on practical, real-world applications. Makenna is especially passionate about teaching and helping others understand complex concepts in a simple, engaging way. She enjoys building learning experiences that make AI feel accessible, useful, and empowering for everyone. Outside of work, Makenna enjoys exploring her city of Madrid, spending time with her husband, cooking, attending Barre classes, and connecting with the LearnAIR™ team.",image:xI.url,imageClass:"object-cover object-top scale-[1.05]"},{slug:"michael-stoneman",name:"Michael Stoneman",role:"AI Educator",bio:`Michael is an educator and technologist who brings together a background in computer science, industry, and education to make emerging technology practical and approachable. He earned his degree in Computer Science, where he worked as an undergraduate researcher in natural language processing through SLIM. He later worked as a Sales Engineer, bridging the gap between the technical possibilities of engineering teams and the vision of executive and leadership teams. Driven by a passion for teaching, Michael returned to school to earn his master's degree in Secondary Education. He went on to build a STEM program from the ground up, developing and teaching programs across robotics, esports, computer science, graphic design, digital literacy, cybersecurity, and AI. 
79
80
81At LearnAIR™, Michael leads workshops, cohorts, and trainings while developing curriculum that helps people build the skills and confidence to work effectively with AI. His combination of technical experience and classroom teaching shapes his approach: understand how the technology works, make it useful, and help people feel empowered to put it into practice. Outside of work, Michael is usually learning about new technology or building something with it, whether that means automating a personal workflow, making a silly app for his wife, or building a website for a friend's business. When he steps away from a screen, he enjoys fishing, camping, escape rooms, and just about any puzzle he can get his hands on.`,image:LI.url,imageClass:"object-cover object-top"},{slug:"welza-soncio",name:"Welza Soncio",role:"Graphic Designer",bio:"Welza is a graphic designer who makes complex ideas simple, on brand, on time, and built to scale. She crafts, listens, and rapidly adjusts to the brand's values and objectives in a humble manner. She turns complex ideas into clean, on-brand visuals that help leaders act. At LearnAIR™ Welza designs executive one-pagers, infographics, training materials, and other digital assets that make AI adoption clear and approachable. She delivers work that is accurate, accessible, and on time. She brings a systems mindset from cross-functional projects, pairing sharp visual craft with thoughtful collaboration. Guided by the values of clarity, reliability, empathy, and continuous learning, Welza designs with purpose, communicates transparently, and consistently on brand. Her vision is to make complex technology human, ethical, and immediately useful through design which exactly is in-line with the LearnAIR™' mission. She prioritizes clarity, accessibility, and trust, measuring success by adoption and outcomes. By building scalable, on-brand systems and templates, Welza helps leaders communicate change and helps teams work faster with AI, confidently and responsibly. Outside work, Welza spends time with her son and fur baby and recharges by reading and drawing, balancing innovation with everyday joy.",image:CI,imageClass:"object-cover object-top"},{slug:"asher-albertini",name:"Asher Albertini",role:"Business Development & Sales Associate",bio:`Asher is a high school senior who has spent much of his life looking for ways to get closer to real work, real responsibility, and real problems.
82
83He started working at 12 and later built a successful service business, which gave him an early education in entrepreneurship, sales, customer relationships, and what it means to have people genuinely count on you.
84
85He joined LearnAIR™ as an Intern expecting to spend the summer learning how a growing company works. Instead, his role expanded across research, sales, business development, marketing, events, and strategic projects. As the summer progressed, that internship evolved into an ongoing part-time role as Business Development & Sales Associate during the school year.
86
87Today, Asher focuses on outreach, relationship development, new business opportunities, sales, growth, and strategic initiatives. Working inside an AI company while still in high school has also given him an unusual perspective on how quickly work is changing and how young people are being prepared to enter it.
88
89Outside of LearnAIR, Asher serves as Student Body President at Central Christian High School in Central Oregon. He also enjoys golfing, traveling, spending time outdoors, and being with family and friends.`,image:NI.url,imageClass:"object-cover object-top"},{slug:"bobby-napiltonia",name:"Bobby Napiltonia",role:"Chief Strategist",bio:"Bobby Napiltonia is a veteran technology leader with over 36 years of experience building and delivering transformative technologies that shape how we live and work today. A visionary with deep expertise across GTM strategy, cloud computing, APIs, GenAI, robotics, deep tech, open source, and ecosystems, Bobby has dedicated his career to driving innovation and meaningful growth in the tech world. At Salesforce, Bobby led the creation of the AppExchange alongside Marc Benioff, a platform that became the foundation for a trillion-dollar cloud ecosystem and inspired many of today’s most successful technology companies. From enabling computers to produce sound at Creative Labs to powering communication technology at Twilio, Bobby’s work has 
89influenced how people connect, create, and collaborate every day. His leadership philosophy is grounded in strategic foresight, authenticity, and inclusion, ensuring that as technology evolves, it does so in service of people. Known for his ability to scale startups to over $1 billion in sales, Bobby brings both vision and discipline to turning innovation into impact. Outside of his professional life, Bobby finds joy in fatherhood and in advancing the life of students at the University level. His commitment to mentorship and representation continues to shape the future of tech.",image:OI,imageClass:"object-cover object-top"}];function UI(e){return PI.find(t=>t.slug===e)}const zI=()=>pe(()=>import("./team._slug-D6iJ0sm-.js"),__vite__mapDeps([56,1,2,3,4,5])),BI=()=>pe(()=>import("./team._slug-BuvoahDm.js"),[]),HI=()=>pe(()=>import("./team._slug-BcwtZuGe.js"),__vite__mapDeps([57,1,2,3])),$I=_e("/team/$slug")({loader:({params:e})=>{const t=UI(e.slug);if(!t)throw Ys();return{member:t}},head:({loaderData:e})=>{const t=e?.member,a=t?`${t.name} - LearnAIR™`:"Team - LearnAIR™",s=t?`${t.name}, ${t.role} at LearnAIR™. ${t.bio}`:"";return{meta:[{title:a},{name:"description",content:s},{property:"og:title",content:a},{property:"og:description",content:s}]}},notFoundComponent:fe(HI,"notFoundComponent"),errorComponent:fe(BI,"errorComponent"),component:fe(zI,"component")}),qI=()=>pe(()=>import("./training.index-CfDOJqn1.js"),__vite__mapDeps([58,3,4,5,2,10,11,6,7])),VI=_e("/training/")({head:()=>({meta:[{title:"Private Training Resources - LearnAIR™"},{name:"robots",content:"noindex, nofollow"},{name:"description",content:"Private LearnAIR™ training resources for authorized clients and partners."},{property:"og:title",content:"Private Training Resources - LearnAIR™"},{property:"og:description",content:"Private LearnAIR™ training resources for authorized clients and partners."}]}),component:fe(qI,"component")}),GI=()=>pe(()=>import("./training.deck-mA66WE6Q.js"),__vite__mapDeps([59,2,41,11,19,51])),FI=_e("/training/deck")({head:()=>({meta:[{title:"Training Presentation - LearnAIR™"},{name:"robots",content:"noindex, nofollow"},{name:"description",content:"Private LearnAIR™ training presentation."},{property:"og:title",content:"Training Presentation - LearnAIR™"},{property:"og:description",content:"Private LearnAIR™ training presentation."}]}),component:fe(GI,"component")}),KI=()=>pe(()=>import("./nwrpca.case-studies._slug-BpObqCG5.js"),[]),YI=_e("/nwrpca/case-studies/$slug")({head:({params:e})=>{const t=tc[e.slug];return t?{meta:[{title:`${t.title} - NWRPCA x LearnAIR™`},{name:"description",content:t.tagline},{property:"og:title",content:`${t.title} - NWRPCA x LearnAIR™`},{property:"og:description",content:t.tagline},{property:"og:type",content:"article"},{name:"twitter:card",content:"summary_large_image"}]}:{meta:[{title:"Case Study - NWRPCA x LearnAIR™"}]}},loader:({params:e})=>{const t=tc[e.slug];if(!t)throw Ys();return t},component:fe(KI,"component")}),JI=()=>pe(()=>import("./partners.dh.index-lBlNKknF.js"),__vite__mapDeps([60,33,10,11,6,7,48,8,4,5,2,41,19,61,18,34,27])),QI=_e("/partners/dh/")({head:()=>({meta:[{title:"D&H Partner Resources - Powered by LearnAIR™"},{name:"robots",content:"noindex, nofollow"},{name:"description",content:"Private D&H partner resources for AI training, powered by LearnAIR™."},{property:"og:title",content:"D&H Partner Resources - Powered by LearnAIR™"},{property:"og:description",content:"Private D&H partner resources for AI training, powered by LearnAIR™."}]}),component:fe(JI,"component")}),XI=()=>pe(()=>import("./partners.dh.deck-DodpRX_c.js"),__vite__mapDeps([62,48,8,4,5,2,41,11,19,61,34,27,18])),WI=_e("/partners/dh/deck")({head:()=>({meta:[{title:"D&H Partner Presentation - Powered by LearnAIR™"},{name:"robots",content:"noindex, nofollow"},{name:"description",content:"Private D&H partner enablement presentation, powered by LearnAIR™."},{property:"og:title",content:"D&H Partner Presentation - Powered by LearnAIR™"},{property:"og:description",content:"Private D&H partner enablement presentation, powered by LearnAIR™."}]}),component:fe(XI,"component")}),ZI=Rx.update({id:"/",path:"/",getParentRoute:()=>Pe}),eL=Cx.update({id:"/about",path:"/about",getParentRoute:()=>Pe}),j0=kx.update({id:"/blog",path:"/blog",getParentRoute:()=>Pe}),tL=Ix.update({id:"/brand-guidelines",path:"/brand-guidelines",getParentRoute:()=>Pe}),nL=jx.update({id:"/chatgpt",path:"/chatgpt",getParentRoute:()=>Pe}),$h=Mx.update({id:"/edco",path:"/edco",getParentRoute:()=>Pe}),rL=Px.update({id:"/forbusinesses",path:"/forbusinesses",getParentRoute:()=>Pe}),aL=zx.update({id:"/forhumans",path:"/forhumans",getParentRoute:()=>Pe}),iL=Hx.update({id:"/forveterans",path:"/forveterans",getParentRoute:()=>Pe}),sL=qx.update({id:"/foundation-series",path:"/foundation-series",getParentRoute:()=>Pe}),qh=Gx.update({id:"/issi",path:"/issi",getParentRoute:()=>Pe}),oL=l2.update({id:"/media-events",path:"/media-events",getParentRoute:()=>Pe}),pc=u2.update({id:"/nwrpca",path:"/nwrpca",getParentRoute:()=>Pe}),lL=h2.update({id:"/occc-ai-workshop",path:"/occc-ai-workshop",getParentRoute:()=>Pe}),Vh=p2.update({id:"/products",path:"/products",getParentRoute:()=>Pe}),cL=g2.update({id:"/services",path:"/services",getParentRoute:()=>Pe}),uL=y2.update({id:"/workforce",path:"/workforce",getParentRoute:()=>Pe}),dL=S2.update({id:"/$slug",path:"/$slug",getParentRoute:()=>j0}),hL=F2.update({id:"/case-studies/$slug",path:"/case-studies/$slug",getParentRoute:()=>Pe}),fL=Y2.update({id:"/",path:"/",getParentRoute:()=>$h}),pL=Q2.update({id:"/deck",path:"/deck",getParentRoute:()=>$h}),gL=W2.update({id:"/",path:"/",getParentRoute:()=>qh}),mL=eI.update({id:"/deck",path:"/deck",getParentRoute:()=>qh}),yL=nI.update({id:"/msp-summit/",path:"/msp-summit/",getParentRoute:()=>Pe}),vL=aI.update({id:"/msp-summit/deck",path:"/msp-summit/deck",getParentRoute:()=>Pe}),bL=sI.update({id:"/",path:"/",getParentRoute:()=>pc}
89),wL=lI.update({id:"/deck",path:"/deck",getParentRoute:()=>pc}),_L=cI.update({id:"/",path:"/",getParentRoute:()=>Vh}),SL=mI.update({id:"/$slug",path:"/$slug",getParentRoute:()=>Vh}),AL=$I.update({id:"/team/$slug",path:"/team/$slug",getParentRoute:()=>Pe}),EL=VI.update({id:"/training/",path:"/training/",getParentRoute:()=>Pe}),RL=FI.update({id:"/training/deck",path:"/training/deck",getParentRoute:()=>Pe}),TL=YI.update({id:"/case-studies/$slug",path:"/case-studies/$slug",getParentRoute:()=>pc}),CL=QI.update({id:"/partners/dh/",path:"/partners/dh/",getParentRoute:()=>Pe}),OL=WI.update({id:"/partners/dh/deck",path:"/partners/dh/deck",getParentRoute:()=>Pe}),kL={BlogSlugRoute:dL},xL=j0._addFileChildren(kL),IL={EdcoDeckRoute:pL,EdcoIndexRoute:fL},LL=$h._addFileChildren(IL),jL={IssiDeckRoute:mL,IssiIndexRoute:gL},NL=qh._addFileChildren(jL),ML={NwrpcaDeckRoute:wL,NwrpcaIndexRoute:bL,NwrpcaCaseStudiesSlugRoute:TL},DL=pc._addFileChildren(ML),PL={ProductsSlugRoute:SL,ProductsIndexRoute:_L},UL=Vh._addFileChildren(PL),zL={IndexRoute:ZI,AboutRoute:eL,BlogRoute:xL,BrandGuidelinesRoute:tL,ChatgptRoute:nL,EdcoRoute:LL,ForbusinessesRoute:rL,ForhumansRoute:aL,ForveteransRoute:iL,FoundationSeriesRoute:sL,IssiRoute:NL,MediaEventsRoute:oL,NwrpcaRoute:DL,OcccAiWorkshopRoute:lL,ProductsRoute:UL,ServicesRoute:cL,WorkforceRoute:uL,CaseStudiesSlugRoute:hL,MspSummitDeckRoute:vL,TeamSlugRoute:AL,TrainingDeckRoute:RL,MspSummitIndexRoute:yL,TrainingIndexRoute:EL,PartnersDh
89DeckRoute:OL,PartnersDhIndexRoute:CL},BL=Pe._addFileChildren(zL),HL=()=>{const e=new rx;return g1({routeTree:BL,context:{queryClient:e},scrollRestoration:!0,defaultPreloadStaleTime:0})};async function $L(){const e=await HL();let t;if(vv){const a=await vv.getOptions();a.serializationAdapters=a.serializationAdapters??[],window.__TSS_START_OPTIONS__=a,t=a.serializationAdapters,e.options.defaultSsr=a.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(yT),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:t}),e.stores.matchesId.get().length||await bT(e),e}var qL=$L;async function VL(){const e=await qL();return window.$_TSR?.h(),e}var eh;function GL(){return eh||(eh=VL()),U.jsx(AT,{promise:eh,children:e=>U.jsx(v1,{router:e})})}X.startTransition(()=>{lS.hydrateRoot(document,U.jsx(X.StrictMode,{children:U.jsx(GL,{})}))});export{Rt as $,hx as A,R2 as B,wt as C,Nt as D,Lv as E,QS as F,FL as G,Mv as H,Gk as I,Uk as J,YL as K,lc as L,Eh as M,T2 as N,Yb as O,dn as P,S0 as Q,S2 as R,fc as S,PI as T,Dk as U,Pk as V,Ah as W,px as X,b0 as Y,Xk as Z,Hk as _,O0 as a,JL as a0,QL as a1,$I as a2,YI as a3,Ys as a4,ej as a5,Xx as b,mT as c,t2 as d,r2 as e,ZL as f,WL as g,O2 as h,Kx as i,U as j,F2 as k,C2 as l,mI as m,N2 as n,L0 as o,hI as p,L2 as q,X as r,x2 as s,Jx as t,XL as u,D2 as v,Zx as w,U2 as x,B2 as y,$2 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.