vendor: 7,612 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/algemene-voorwaarden-xSw6Fvmt.js","assets/webflow-shell-CGmACi8-.js","assets/_footer-D7shD8EY.js","assets/assessment-BtZO_SjU.js","assets/b2b2c-hSVdqBdU.js","assets/cookie-statement-D5tue9j8.js","assets/datenschutzerklarung-CnQst2Gp.js","assets/impressum-BuQ5xjNS.js","assets/over-ons-BQwPV1bD.js","assets/privacy-policy-DUJGQ2tk.js","assets/project-pico-DU7iuuJO.js","assets/app.admin-aJI3B-mO.js","assets/use-auth-DDQ9pifX.js","assets/button-DtCP8Qho.js","assets/cms-collections-Dz_7VXiN.js","assets/app.login-pxufjwZD.js","assets/blog.index-CnexngKF.js","assets/article-shell-BAVm8iQ2.js","assets/blog-date-Cru2dZtd.js","assets/blog.conversational-intake-koper-intentie-Cg_kpwqn.js","assets/blog.crm-thuisbatterij-specialist-platform-pico-vs-standaard-software-B8QeCcjr.js","assets/blog.data-gedreven-groei-installatiebedrijf-platform-pico-ClakmX2Q.js","assets/blog.de-visie-van-homezero-tech-D76tm6EH.js","assets/blog.de-woningen-van-jouw-klanten-verduurzamen-jvGMc5MZ.js","assets/blog.hoe-bouw-je-een-startup-in-een-dag-S-2IOh_k.js","assets/blog.hoe-kunnen-wij-ai-inzetten-voor-advies-CGiaAlAU.js","assets/blog.homezero-haalt-investering-op-bij-kairos-voor-europese-groei-Dqrd1qyJ.js","assets/blog.homezero-naar-de-solar-solutions-beurs-Sa0JVgrd.js","assets/blog.homezero-naar-de-vsk-berus-C1uuKXCz.js","assets/blog.homezero-op-de-webwinkel-vakdagen-met-bijbehorende-salestips-N18QZfC2.js","assets/blog.homezero-tech-voor-installateurs-By-uM_kU.js","assets/blog.huisscan-ari-oplossing-voor-schouw-knelpunt-installateur-BCElkUng.js","assets/blog.klant-niet-bezig-met-duurzaamheid-verkoop-faciliteren-DzO0Z1OL.js","assets/blog.project-pico-ontvangt-eu1-25m-eu-subsidie-van-het-jtf-eu-BAFtTJyZ.js","assets/blog.psychologie-van-de-misschien-klant-twijfel-als-dealbreaker-BF8Oauwu.js","assets/blog.rondetafel-sessie-zo-ga-jij-de-marktdip-overwinnen-C9R2VIrh.js","assets/blog.salescircus-2025-terugblik-eerste-editie-CwD4HiMb.js","assets/blog.samenwerking-tdi500-en-homezero-is-een-feit-C5TXjBLP.js","assets/blog.the-sharing-group-investeert-in-woningverduurzamings-start-up-homezero-SgW_iCE2.js","assets/blog.uitdagingen-bij-verkoop-en-installatie-van-zonnepanelen-warmtepompen-en-isolatie-Dkd1gRVr.js","assets/blog.vakbeurs-energie-interviews-over-de-warmtetransitie-met-warmtepompfabrikanten-BOv7OCpo.js","assets/blog.waarom-homezero-salescircus-organiseert-B55rHZfT.js","assets/blog.web-summit-lisambon-2023-BJDr7QI9.js","assets/blog.welkom-bij-homezero-tech-COx3gAyh.js","assets/blog.welkom-emiel-70874vVl.js","assets/blog.welkom-emma-hastjarjanto-B7daSOXV.js","assets/blog.welkom-lisanne-BilG6Ca7.js","assets/use-cases.adviseurs-DJ2TLJqR.js","assets/use-cases.airco-installateur-DM_i7Ph-.js","assets/use-cases.banken-DYgBNG3m.js","assets/use-cases.duurzame-totaal-installateur-DpRa3VJr.js","assets/use-cases.fabrikanten-Bs61-UtF.js","assets/use-cases.groothandels-DfM01cG9.js","assets/use-cases.installatiebedrijven-CiMPep9X.js","assets/use-cases.isolatiebedrijf-DctEamUA.js","assets/use-cases.thuisbatterij-installateur-CxXoH3PU.js","assets/use-cases.verenigingen-CN4KvkZ7.js","assets/use-cases.vergelijkers-CN1jkXUI.js","assets/use-cases.verzekeraars-DUcEA69u.js","assets/use-cases.warmtepomp-installateur-oWUwSn5E.js","assets/use-cases.zonnepaneel-installateur-DJLai0bK.js","assets/vacatures.index-UB_glAVL.js","assets/vacatures.customer-success-specialist-dach-BDxksEtZ.js","assets/vacatures.digital-specialist-BprtZrRU.js","assets/vacatures.marketing-stage-Bq4udS6a.js","assets/vacatures.sales-reseller-partner-dach-Dp2a6_G2.js","assets/app.admin.apps.index-DbcrrvzA.js","assets/app.admin.apps._id-Drc4vw0q.js","assets/app-form-Cd_8xULH.js","assets/image-upload-field-CI0BZ3wq.js","assets/app.admin.apps.new-BmjR9qMq.js","assets/app.admin.c._col.index-DCV_h8dH.js","assets/app.admin.c._col._id-Bgp8PM7O.js","assets/cms-form-0J0axQpG.js","assets/app.admin.c._col.new-DhzJpxCU.js"])))=>i.map(i=>d[i]); 2function kS(t,e){for(var i=0;i<e.length;i++){const a=e[i];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in t)){const c=Object.getOwnPropertyDescriptor(a,l);c&&Object.defineProperty(t,l,c.get?c:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function TS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xh={exports:{}},bs={};var rv;function RS(){if(rv)return bs;rv=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function i(a,l,c){var u=null;if(c!==void 0&&(u=""+c),l.key!==void 0&&(u=""+l.key),"key"in l){c={};for(var f in l)f!=="key"&&(c[f]=l[f])}else c=l;return l=c.ref,{$$typeof:t,type:a,key:u,ref:l!==void 0?l:null,props:c}}return bs.Fragment=e,bs.jsx=i,bs.jsxs=i,bs}var iv;function AS(){return iv||(iv=1,xh.exports=RS()),xh.exports}var H=AS(),zh={exports:{}},ye={};var av;function OS(){if(av)return ye;av=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function _(O){return O===null||typeof O!="object"?null:(O=b&&O[b]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function R(O,q,F){this.props=O,this.context=q,this.refs=T,this.updater=F||S}R.prototype.isReactComponent={},R.prototype.setState=function(O,q){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,q,"setState")},R.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function C(){}C.prototype=R.prototype;function j(O,q,F){this.props=O,this.context=q,this.refs=T,this.updater=F||S}var I=j.prototype=new C;I.constructor=j,E(I,R.prototype),I.isPureReactComponent=!0;var J=Array.isArray;function P(){}var z={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function ne(O,q,F){var ae=F.ref;return{$$typeof:t,type:O,key:q,ref:ae!==void 0?ae:null,props:F}}function ue(O,q){return ne(O.type,q,O.props)}function G(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function Z(O){var q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(F){return q[F]})}var X=/\/+/g;function ge(O,q){return typeof O=="object"&&O!==null&&O.key!=null?Z(""+O.key):q.toString(36)}function ce(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(P,P):(O.status="pending",O.then(function(q){O.status==="pending"&&(O.status="fulfilled",O.value=q)},function(q){O.status==="pending"&&(O.status="rejected",O.reason=q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function M(O,q,F,ae,ve){var we=typeof O;(we==="undefined"||we==="boolean")&&(O=null);var de=!1;if(O===null)de=!0;else switch(we){case"bigint":case"string":case"number":de=!0;break;case"object":switch(O.$$typeof){case t:case e:de=!0;break;case g:return de=O._init,M(de(O._payload),q,F,ae,ve)}}if(de)return ve=ve(O),de=ae===""?"."+ge(O,0):ae,J(ve)?(F="",de!=null&&(F=de.replace(X,"$&/")+"/"),M(ve,q,F,"",function(dn){return dn}
vendor: 5,194 bytes, line 2
2)):ve!=null&&(G(ve)&&(ve=ue(ve,F+(ve.key==null||O&&O.key===ve.key?"":(""+ve.key).replace(X,"$&/")+"/")+de)),q.push(ve)),1;de=0;var De=ae===""?".":ae+":";if(J(O))for(var $e=0;$e<O.length;$e++)ae=O[$e],we=De+ge(ae,$e),de+=M(ae,q,F,we,ve);else if($e=_(O),typeof $e=="function")for(O=$e.call(O),$e=0;!(ae=O.next()).done;)ae=ae.value,we=De+ge(ae,$e++),de+=M(ae,q,F,we,ve);else if(we==="object"){if(typeof O.then=="function")return M(ce(O),q,F,ae,ve);throw q=String(O),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return de}function Y(O,q,F){if(O==null)return O;var ae=[],ve=0;return M(O,ae,"","",function(we){return q.call(F,we,ve++)}),ae}function fe(O){if(O._status===-1){var q=O._result;q=q(),q.then(function(F){(O._status===0||O._status===-1)&&(O._status=1,O._result=F)},function(F){(O._status===0||O._status===-1)&&(O._status=2,O._result=F)}),O._status===-1&&(O._status=0,O._result=q)}if(O._status===1)return O._result.default;throw O._result}var ze=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},ke={map:Y,forEach:function(O,q,F){Y(O,function(){q.apply(this,arguments)},F)},count:function(O){var q=0;return Y(O,function(){q++}),q},toArray:function(O){return Y(O,function(q){return q})||[]},only:function(O){if(!G(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return ye.Activity=v,ye.Children=ke,ye.Component=R,ye.Fragment=i,ye.Profiler=l,ye.PureComponent=j,ye.StrictMode=a,ye.Suspense=p,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,ye.__COMPILER_RUNTIME={__proto__:null,c:function(O){return z.H.useMemoCache(O)}},ye.cache=function(O){return function(){return O.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(O,q,F){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ae=E({},O.props),ve=O.key;if(q!=null)for(we in q.key!==void 0&&(ve=""+q.key),q)!K.call(q,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&q.ref===void 0||(ae[we]=q[we]);var we=arguments.length-2;if(we===1)ae.children=F;else if(1<we){for(var de=Array(we),De=0;De<we;De++)de[De]=arguments[De+2];ae.children=de}return ne(O.type,ve,ae)},ye.createContext=function(O){return O={$$typeof:u,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},ye.createElement=function(O,q,F){var ae,ve={},we=null;if(q!=null)for(ae in q.key!==void 0&&(we=""+q.key),q)K.call(q,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ve[ae]=q[ae]);var de=arguments.length-2;if(de===1)ve.children=F;else if(1<de){for(var De=Array(de),$e=0;$e<de;$e++)De[$e]=arguments[$e+2];ve.children=De}if(O&&O.defaultProps)for(ae in de=O.defaultProps,de)ve[ae]===void 0&&(ve[ae]=de[ae]);return ne(O,we,ve)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(O){return{$$typeof:f,render:O}},ye.isValidElement=G,ye.lazy=function(O){return{$$typeof:g,_payload:{_status:-1,_result:O},_init:fe}},ye.memo=function(O,q){return{$$typeof:m,type:O,compare:q===void 0?null:q}},ye.startTransition=function(O){var q=z.T,F={};z.T=F;try{var ae=O(),ve=z.S;ve!==null&&ve(F,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(P,ze)}catch(we){ze(we)}finally{q!==null&&F.types!==null&&(q.types=F.types),z.T=q}},ye.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},ye.use=function(O){return z.H.use(O)},ye.useActionState=function(O,q,F){return z.H.useActionState(O,q,F)},ye.useCallback=function(O,q){return z.H.useCallback(O,q)},ye.useContext=function(O){return z.H.useContext(O)},ye.useDebugValue=function(){},ye.useDeferredValue=function(O,q){return z.H.useDeferredValue(O,q)},ye.useEffect=function(O,q){return z.H.useEffect(O,q)},ye.useEffectEvent=function(O){return z.H.useEffectEvent(O)},ye.useId=function(){return z.H.useId()},ye.useImperativeHandle=function(O,q,F){return z.H.useImperativeHandle(O,q,F)},ye.useInsertionEffect=function(O,q){return z.H.useInsertionEffect(O,q)},ye.useLayoutEffect=function(O,q){return z.H.useLayoutEffect(O,q)},ye.useMemo=function(O,q){return z.H.useMemo(O,q)},ye.useOptimistic=function(O,q){return z.H.useOptimistic(O,q)},ye.useReducer=function(O,q,F){return z.H.useReducer(O,q,F)},ye.useRef=function(O){return z.H.useRef(O)},ye.useState=function(O){return z.H.useState(O)},ye.useSyncExternalStore=function(O,q,F){return z.H.useSyncExternalStore(O,q,F)},ye.useTransition=function(){return z.H.useTransition()},ye.version="19.2.5",ye}var sv;function Ys(){return sv||(sv=1,zh.exports=OS()),zh.exports}var re=Ys();const Js=TS(re),qD=kS({__proto__:null,default:Js},[re]);var Dh={exports:{}},_s={}
vendor: 12,300 bytes, lines 2-4
2,Lh={exports:{}},Nh={};var ov;function jS(){return ov||(ov=1,(function(t){function e(M,Y){var fe=M.length;M.push(Y);e:for(;0<fe;){var ze=fe-1>>>1,ke=M[ze];if(0<l(ke,Y))M[ze]=Y,M[fe]=ke,fe=ze;else break e}}function i(M){return M.length===0?null:M[0]}function a(M){if(M.length===0)return null;var Y=M[0],fe=M.pop();if(fe!==Y){M[0]=fe;e:for(var ze=0,ke=M.length,O=ke>>>1;ze<O;){var q=2*(ze+1)-1,F=M[q],ae=q+1,ve=M[ae];if(0>l(F,fe))ae<ke&&0>l(ve,F)?(M[ze]=ve,M[ae]=fe,ze=ae):(M[ze]=F,M[q]=fe,ze=q);else if(ae<ke&&0>l(ve,fe))M[ze]=ve,M[ae]=fe,ze=ae;else break e}}return Y}function l(M,Y){var fe=M.sortIndex-Y.sortIndex;return fe!==0?fe:M.id-Y.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();t.unstable_now=function(){return u.now()-f}}var p=[],m=[],g=1,v=null,b=3,_=!1,S=!1,E=!1,T=!1,R=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function I(M){for(var Y=i(m);Y!==null;){if(Y.callback===null)a(m);else if(Y.startTime<=M)a(m),Y.sortIndex=Y.expirationTime,e(p,Y);else break;Y=i(m)}}function J(M){if(E=!1,I(M),!S)if(i(p)!==null)S=!0,P||(P=!0,Z());else{var Y=i(m);Y!==null&&ce(J,Y.startTime-M)}}var P=!1,z=-1,K=5,ne=-1;function ue(){return T?!0:!(t.unstable_now()-ne<K)}function G(){if(T=!1,P){var M=t.unstable_now();ne=M;var Y=!0;try{e:{S=!1,E&&(E=!1,C(z),z=-1),_=!0;var fe=b;try{t:{for(I(M),v=i(p);v!==null&&!(v.expirationTime>M&&ue());){var ze=v.callback;if(typeof ze=="function"){v.callback=null,b=v.priorityLevel;var ke=ze(v.expirationTime<=M);if(M=t.unstable_now(),typeof ke=="function"){v.callback=ke,I(M),Y=!0;break t}v===i(p)&&a(p),I(M)}else a(p);v=i(p)}if(v!==null)Y=!0;else{var O=i(m);O!==null&&ce(J,O.startTime-M),Y=!1}}break e}finally{v=null,b=fe,_=!1}Y=void 0}}finally{Y?Z():P=!1}}}var Z;if(typeof j=="function")Z=function(){j(G)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,ge=X.port2;X.port1.onmessage=G,Z=function(){ge.postMessage(null)}}else Z=function(){R(G,0)};function ce(M,Y){z=R(function(){M(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(M){M.callback=null},t.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<M?Math.floor(1e3/M):5},t.unstable_getCurrentPriorityLevel=function(){return b},t.unstable_next=function(M){switch(b){case 1:case 2:case 3:var Y=3;break;default:Y=b}var fe=b;b=Y;try{return M()}finally{b=fe}},t.unstable_requestPaint=function(){T=!0},t.unstable_runWithPriority=function(M,Y){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var fe=b;b=M;try{return Y()}finally{b=fe}},t.unstable_scheduleCallback=function(M,Y,fe){var ze=t.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?ze+fe:ze):fe=ze,M){case 1:var ke=-1;break;case 2:ke=250;break;case 5:ke=1073741823;break;case 4:ke=1e4;break;default:ke=5e3}return ke=fe+ke,M={id:g++,callback:Y,priorityLevel:M,startTime:fe,expirationTime:ke,sortIndex:-1},fe>ze?(M.sortIndex=fe,e(m,M),i(p)===null&&M===i(m)&&(E?(C(z),z=-1):E=!0,ce(J,fe-ze))):(M.sortIndex=ke,e(p,M),S||_||(S=!0,P||(P=!0,Z()))),M},t.unstable_shouldYield=ue,t.unstable_wrapCallback=function(M){var Y=b;return function(){var fe=b;b=Y;try{return M.apply(this,arguments)}finally{b=fe}}}})(Nh)),Nh}var lv;function CS(){return lv||(lv=1,Lh.exports=jS()),Lh.exports}var Mh={exports:{}},bt={};var cv;function xS(){if(cv)return bt;cv=1;var t=Ys();function e(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(e(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(p,m,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:v==null?null:""+v,children:p,containerInfo:m,implementation:g}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,bt.createPortal=function(p,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(e(299));return c(p,m,null,g)},bt.flushSync=function(p){var m=u.T,g=a.p;try{if(u.T=null,a.p=2,p)return p()}finally{u.T=m,a.p=g,a.d.f()}},bt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,a.d.C(p,m))},bt.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},bt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var g=m.as,v=f(g,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?a.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:_}):g==="script"&&a.d.X(p,{crossOrigin:v,integrity:b,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},bt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=f(m.as,m.crossOrigin);a.d.M(p,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&a.d.M(p)},bt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,v=f(g,m.crossOrigin);a.d.L(p,g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},bt.preloadModule=function(p,m){if(typeof p=="string")if(m){var g=f(m.as,m.crossOrigin);a.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else a.d.m(p)},bt.requestFormReset=function(p){a.d.r(p)},bt.unstable_batchedUpdates=function(p,m){return p(m)},bt.useFormState=function(p,m,g){return u.H.useFormState(p,m,g)},bt.useFormStatus=function(){return u.H.useHostTransitionStatus()},bt.version="19.2.5",bt}var uv;function qy(){if(uv)return Mh.exports;uv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Mh.exports=xS(),Mh.exports}var hv;function zS(){if(hv)return _s;hv=1;var t=CS(),e=Ys(),i=qy();function a(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)r+="&args[]="+encodeURIComponent(arguments[s])}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,s=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(s=r.return),n=r.return;while(n)}return r.tag===3?s: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 f(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(a(188))}function m(n){var r=n.alternate;if(!r){if(r=c(n),r===null)throw Error(a(188));return r!==n?null:n}for(var s=n,o=r;;){var h=s.return;if(h===null)break;var d=h.alternate;if(d===null){if(o=h.return,o!==null){s=o;continue}break}if(h.child===d.child){for(d=h.child;d;){if(d===s)return p(h),n;if(d===o)return p(h),r;d=d.sibling}throw Error(a(188))}if(s.return!==o.return)s=h,o=d;else{for(var y=!1,w=h.child;w;){if(w===s){y=!0,s=h,o=d;break}if(w===o){y=!0,o=h,s=d;break}w=w.sibling}if(!y){for(w=d.child;w;){if(w===s){y=!0,s=d,o=h;break}if(w===o){y=!0,o=d,s=h;break}w=w.sibling}if(!y)throw Error(a(189))}}if(s.alternate!==o)throw Error(a(190))}if(s.tag!==3)throw Error(a(188));return s.stateNode.current===s?n:r}function g(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=g(n),r!==null)return r;n=n.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),j=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),ue=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function Z(n){return n===null||typeof n!="object"?null:(n=G&&n[G]||n["@@iterator"],typeof n=="function"?n:null)}var X=Symbol.for("react.client.reference");function ge(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===X?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case E:return"Fragment";case R:return"Profiler";case T:return"StrictMode";case J:return"Suspense";case P:return"SuspenseList";case ne:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case j:return n.displayName||"Context";case C:return(n._context.displayName||"Context")+".Consumer";case I:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case z:return r=n.displayName||null,r!==null?r:ge(n.type)||"Memo";case K:r=n._payload,n=n._init;try{return ge(n(r))}catch{}}return null}var ce=Array.isArray,M=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},ze=[],ke=-1;function O(n){return{current:n}}function q(n){0>ke||(n.current=ze[ke],ze[ke]=null,ke--)}function F(n,r){ke++,ze[ke]=n.current,n.current=r}var ae=O(null),ve=O(null),we=O(null),de=O(null);function De(n,r){switch(F(we,r),F(ve,n),F(ae,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?Rg(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=Rg(r),n=Ag(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(ae),F(ae,n)}function $e(){q(ae),q(ve),q(we)}function dn(n){n.memoizedState!==null&&F(de,n);var r=ae.current,s=Ag(r,n.type);r!==s&&(F(ve,n),F(ae,s))}function Ir(n){ve.current===n&&(q(ae),q(ve)),de.current===n&&(q(de),ms._currentValue=fe)}var Rn,nd;function $r(n){if(Rn===void 0)try{throw Error()}catch(s){var r=s.stack.trim().match(/\n( *(at )?)/);Rn=r&&r[1]||"",nd=-1<s.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+Rn+n+nd}var pc=!1;function mc(n,r){if(!n||pc)return"";pc=!0;var s=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(U){var N=U}Reflect.construct(n,[],V)}else{try{V.call()}catch(U){N=U}n.call(V.prototype)}}else{try{throw Error()}catch(U){N=U}(V=n())&&typeof V.catch=="function"&&V.catch(function(){})}}
vendor: 1,926 bytes, lines 4-9
4catch(U){if(U&&N&&typeof U.stack=="string")return[U.stack,N.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),y=d[0],w=d[1];if(y&&w){var k=y.split(` 5`),L=w.split(` 6`);for(h=o=0;o<k.length&&!k[o].includes("DetermineComponentFrameRoot");)o++;for(;h<L.length&&!L[h].includes("DetermineComponentFrameRoot");)h++;if(o===k.length||h===L.length)for(o=k.length-1,h=L.length-1;1<=o&&0<=h&&k[o]!==L[h];)h--;for(;1<=o&&0<=h;o--,h--)if(k[o]!==L[h]){if(o!==1||h!==1)do if(o--,h--,0>h||k[o]!==L[h]){var B=` 7`+k[o].replace(" at new "," at ");return n.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",n.displayName)),B}while(1<=o&&0<=h);break}}}finally{pc=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?$r(s):""}function t_(n,r){switch(n.tag){case 26:case 27:case 5:return $r(n.type);case 16:return $r("Lazy");case 13:return n.child!==r&&r!==null?$r("Suspense Fallback"):$r("Suspense");case 19:return $r("SuspenseList");case 0:case 15:return mc(n.type,!1);case 11:return mc(n.type.render,!1);case 1:return mc(n.type,!0);case 31:return $r("Activity");default:return""}}function rd(n){try{var r="",s=null;do r+=t_(n,s),s=n,n=n.return;while(n);return r}catch(o){return` 8Error generating stack: `+o.message+` 9`+o.stack}}var gc=Object.prototype.hasOwnProperty,vc=t.unstable_scheduleCallback,yc=t.unstable_cancelCallback,n_=t.unstable_shouldYield,r_=t.unstable_requestPaint,Dt=t.unstable_now,i_=t.unstable_getCurrentPriorityLevel,id=t.unstable_ImmediatePriority,ad=t.unstable_UserBlockingPriority,Ws=t.unstable_NormalPriority,a_=t.unstable_LowPriority,sd=t.unstable_IdlePriority,s_=t.log,o_=t.unstable_setDisableYieldValue,Aa=null,
vendor: 4,532 bytes, line 9
9Lt=null;function ir(n){if(typeof s_=="function"&&o_(n),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(Aa,n)}catch{}}var Nt=Math.clz32?Math.clz32:u_,l_=Math.log,c_=Math.LN2;function u_(n){return n>>>=0,n===0?32:31-(l_(n)/c_|0)|0}var eo=256,to=262144,no=4194304;function qr(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;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ro(n,r,s){var o=n.pendingLanes;if(o===0)return 0;var h=0,d=n.suspendedLanes,y=n.pingedLanes;n=n.warmLanes;var w=o&134217727;return w!==0?(o=w&~d,o!==0?h=qr(o):(y&=w,y!==0?h=qr(y):s||(s=w&~n,s!==0&&(h=qr(s))))):(w=o&~d,w!==0?h=qr(w):y!==0?h=qr(y):s||(s=o&~n,s!==0&&(h=qr(s)))),h===0?0:r!==0&&r!==h&&(r&d)===0&&(d=h&-h,s=r&-r,d>=s||d===32&&(s&4194048)!==0)?r:h}function Oa(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function h_(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 od(){var n=no;return no<<=1,(no&62914560)===0&&(no=4194304),n}function bc(n){for(var r=[],s=0;31>s;s++)r.push(n);return r}function ja(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function f_(n,r,s,o,h,d){var y=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var w=n.entanglements,k=n.expirationTimes,L=n.hiddenUpdates;for(s=y&~s;0<s;){var B=31-Nt(s),V=1<<B;w[B]=0,k[B]=-1;var N=L[B];if(N!==null)for(L[B]=null,B=0;B<N.length;B++){var U=N[B];U!==null&&(U.lane&=-536870913)}s&=~V}o!==0&&ld(n,o,0),d!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=d&~(y&~r))}function ld(n,r,s){n.pendingLanes|=r,n.suspendedLanes&=~r;var o=31-Nt(r);n.entangledLanes|=r,n.entanglements[o]=n.entanglements[o]|1073741824|s&261930}function cd(n,r){var s=n.entangledLanes|=r;for(n=n.entanglements;s;){var o=31-Nt(s),h=1<<o;h&r|n[o]&r&&(n[o]|=r),s&=~h}}function ud(n,r){var s=r&-r;return s=(s&42)!==0?1:_c(s),(s&(n.suspendedLanes|r))!==0?0:s}function _c(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 wc(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function hd(){var n=Y.p;return n!==0?n:(n=window.event,n===void 0?32:Jg(n.type))}function fd(n,r){var s=Y.p;try{return Y.p=n,r()}finally{Y.p=s}}var ar=Math.random().toString(36).slice(2),ft="__reactFiber$"+ar,Tt="__reactProps$"+ar,_i="__reactContainer$"+ar,Sc="__reactEvents$"+ar,d_="__reactListeners$"+ar,p_="__reactHandles$"+ar,dd="__reactResources$"+ar,Ca="__reactMarker$"+ar;function Ec(n){delete n[ft],delete n[Tt],delete n[Sc],delete n[d_],delete n[p_]}function wi(n){var r=n[ft];if(r)return r;for(var s=n.parentNode;s;){if(r=s[_i]||s[ft]){if(s=r.alternate,r.child!==null||s!==null&&s.child!==null)for(n=Lg(n);n!==null;){if(s=n[ft])return s;n=Lg(n)}return r}n=s,s=n.parentNode}return null}function Si(n){if(n=n[ft]||n[_i]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function xa(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(a(33))}function Ei(n){var r=n[dd];return r||(r=n[dd]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function lt(n){n[Ca]=!0}var pd=new Set,md={};function Vr(n,r){ki(n,r),ki(n+"Capture",r)}function ki(n,r){for(md[n]=r,n=0;n<r.length;n++)pd.add(r[n])}var m_=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
vendor: 6,765 bytes, line 9
9037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gd={},vd={};function g_(n){return gc.call(vd,n)?!0:gc.call(gd,n)?!1:m_.test(n)?vd[n]=!0:(gd[n]=!0,!1)}function io(n,r,s){if(g_(r))if(s===null)n.removeAttribute(r);else{switch(typeof s){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,""+s)}}function ao(n,r,s){if(s===null)n.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+s)}}function An(n,r,s,o){if(o===null)n.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(r,s,""+o)}}function Vt(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function yd(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function v_(n,r,s){var o=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var h=o.get,d=o.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return h.call(this)},set:function(y){s=""+y,d.call(this,y)}}),Object.defineProperty(n,r,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(y){s=""+y},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function kc(n){if(!n._valueTracker){var r=yd(n)?"checked":"value";n._valueTracker=v_(n,r,""+n[r])}}function bd(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var s=r.getValue(),o="";return n&&(o=yd(n)?n.checked?"true":"false":n.value),n=o,n!==s?(r.setValue(n),!0):!1}function so(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 y_=/[\n"\\]/g;function Gt(n){return n.replace(y_,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Tc(n,r,s,o,h,d,y,w){n.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?n.type=y:n.removeAttribute("type"),r!=null?y==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+Vt(r)):n.value!==""+Vt(r)&&(n.value=""+Vt(r)):y!=="submit"&&y!=="reset"||n.removeAttribute("value"),r!=null?Rc(n,y,Vt(r)):s!=null?Rc(n,y,Vt(s)):o!=null&&n.removeAttribute("value"),h==null&&d!=null&&(n.defaultChecked=!!d),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?n.name=""+Vt(w):n.removeAttribute("name")}function _d(n,r,s,o,h,d,y,w){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(n.type=d),r!=null||s!=null){if(!(d!=="submit"&&d!=="reset"||r!=null)){kc(n);return}s=s!=null?""+Vt(s):"",r=r!=null?""+Vt(r):s,w||r===n.value||(n.value=r),n.defaultValue=r}o=o??h,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=w?n.checked:!!o,n.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.name=y),kc(n)}function Rc(n,r,s){r==="number"&&so(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function Ti(n,r,s,o){if(n=n.options,r){r={};for(var h=0;h<s.length;h++)r["$"+s[h]]=!0;for(s=0;s<n.length;s++)h=r.hasOwnProperty("$"+n[s].value),n[s].selected!==h&&(n[s].selected=h),h&&o&&(n[s].defaultSelected=!0)}else{for(s=""+Vt(s),r=null,h=0;h<n.length;h++){if(n[h].value===s){n[h].selected=!0,o&&(n[h].defaultSelected=!0);return}r!==null||n[h].disabled||(r=n[h])}r!==null&&(r.selected=!0)}}function wd(n,r,s){if(r!=null&&(r=""+Vt(r),r!==n.value&&(n.value=r),s==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=s!=null?""+Vt(s):""}function Sd(n,r,s,o){if(r==null){if(o!=null){if(s!=null)throw Error(a(92));if(ce(o)){if(1<o.length)throw Error(a(93));o=o[0]}s=o}s==null&&(s=""),r=s}s=Vt(r),n.defaultValue=s,o=n.textContent,o===s&&o!==""&&o!==null&&(n.value=o),kc(n)}function Ri(n,r){if(r){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=r;return}}n.textContent=r}var b_=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 Ed(n,r,s){var o=r.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?o?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":o?n.setProperty(r,s):typeof s!="number"||s===0||b_.has(r)?r==="float"?n.cssFloat=s:n[r]=(""+s).trim():n[r]=s+"px"}function kd(n,r,s){if(r!=null&&typeof r!="object")throw Error(a(62));if(n=n.style,s!=null){for(var o in s)!s.hasOwnProperty(o)||r!=null&&r.hasOwnProperty(o)||(o.indexOf("--")===0?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="");for(var h in r)o=r[h],r.hasOwnProperty(h)&&s[h]!==o&&Ed(n,h,o)}else for(var d in r)r.hasOwnProperty(d)&&Ed(n,d,r[d])}function Ac(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 __=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"]]),w_=/^[\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 oo(n){return w_.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function On(){}var Oc=null;function jc(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ai=null,Oi=null;function Td(n){var r=Si(n);if(r&&(n=r.stateNode)){var s=n[Tt]||null;e:switch(n=r.stateNode,r.type){case"input":if(Tc(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),r=s.name,s.type==="radio"&&r!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Gt(""+r)+'"][type="radio"]'),r=0;r<s.length;r++){var o=s[r];if(o!==n&&o.form===n.form){var h=o[Tt]||null;if(!h)throw Error(a(90));Tc(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(r=0;r<s.length;r++)o=s[r],o.form===n.form&&bd(o)}break e;case"textarea":wd(n,s.value,s.defaultValue);break e;case"select":r=s.value,r!=null&&Ti(n,!!s.multiple,r,!1)}}}var Cc=!1;function Rd(n,r,s){if(Cc)return n(r,s);Cc=!0;try{var o=n(r);return o}finally{if(Cc=!1,(Ai!==null||Oi!==null)&&(Yo(),Ai&&(r=Ai,n=Oi,Oi=Ai=null,Td(r),n)))for(r=0;r<n.length;r++)Td(n[r])}}function za(n,r){var s=n.stateNode;if(s===null)return null;var o=s[Tt]||null;if(o===null)return null;s=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(s&&typeof s!="function")throw Error(a(231,r,typeof s));return s}var jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xc=!1;if(jn)try{var Da={};Object.defineProperty(Da,"passive",{get:function(){xc=!0}}),window.addEventListener("test",Da,Da),window.removeEventListener("test",Da,Da)}catch{xc=!1}var sr=null,zc=null,lo=null;function Ad(){if(lo)return lo;var n,r=zc,s=r.length,o,h="value"in sr?sr.value:sr.textContent,d=h.length;for(n=0;n<s&&r[n]===h[n];n++);var y=s-n;for(o=1;o<=y&&r[s-o]===h[d-o];o++);return lo=h.slice(n,1<o?1-o:void 0)}function co(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 uo(){return!0}function Od(){return!1}function Rt(n){function r(s,o,h,d,y){this._reactName=s,this._targetInst=h,this.type=o,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var w in n)n.hasOwnProperty(w)&&(s=n[w],this[w]=s?s(d):d[w]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?uo:Od,this.isPropagationStopped=Od,this}return v(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=uo)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=uo)},persist:function(){},isPersistent:uo}),r}var Gr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ho=Rt(Gr),La=v({},Gr,{view:0,detail:0}),S_=Rt(La),Dc,Lc,Na,fo=v({},La,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mc,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!==Na&&(Na&&n.type==="mousemove"?(Dc=n.screenX-Na.screenX,Lc=n.screenY-Na.screenY):Lc=Dc=0,Na=n),Dc)},movementY:function(n){return"movementY"in n?n.movementY:Lc}}),jd=Rt(fo),E_=v({},fo,{dataTransfer:0}),k_=Rt(E_),T_=v({},La,{relatedTarget:0}),Nc=Rt(T_),R_=v({},Gr,{animationName:0,elapsedTime:0,pseudoElement:0}),A_=Rt(R_),O_=v({},Gr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),j_=Rt(O_),C_=v({},Gr,{data:0}
vendor: 1,296 bytes, line 9
9),Cd=Rt(C_),x_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},z_={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"},D_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L_(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=D_[n])?!!r[n]:!1}function Mc(){return L_}var N_=v({},La,{key:function(n){if(n.key){var r=x_[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=co(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?z_[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mc,charCode:function(n){return n.type==="keypress"?co(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0}
vendor: 4,811 bytes, line 9
9,which:function(n){return n.type==="keypress"?co(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),M_=Rt(N_),U_=v({},fo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xd=Rt(U_),H_=v({},La,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mc}),P_=Rt(H_),B_=v({},Gr,{propertyName:0,elapsedTime:0,pseudoElement:0}),I_=Rt(B_),$_=v({},fo,{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}),q_=Rt($_),V_=v({},Gr,{newState:0,oldState:0}),G_=Rt(V_),Z_=[9,13,27,32],Uc=jn&&"CompositionEvent"in window,Ma=null;jn&&"documentMode"in document&&(Ma=document.documentMode);var K_=jn&&"TextEvent"in window&&!Ma,zd=jn&&(!Uc||Ma&&8<Ma&&11>=Ma),Dd=" ",Ld=!1;function Nd(n,r){switch(n){case"keyup":return Z_.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Md(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ji=!1;function F_(n,r){switch(n){case"compositionend":return Md(r);case"keypress":return r.which!==32?null:(Ld=!0,Dd);case"textInput":return n=r.data,n===Dd&&Ld?null:n;default:return null}}function Y_(n,r){if(ji)return n==="compositionend"||!Uc&&Nd(n,r)?(n=Ad(),lo=zc=sr=null,ji=!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 zd&&r.locale!=="ko"?null:r.data;default:return null}}var J_={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 Ud(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!J_[n.type]:r==="textarea"}function Hd(n,r,s,o){Ai?Oi?Oi.push(o):Oi=[o]:Ai=o,r=nl(r,"onChange"),0<r.length&&(s=new ho("onChange","change",null,s,o),n.push({event:s,listeners:r}))}var Ua=null,Ha=null;function Q_(n){_g(n,0)}function po(n){var r=xa(n);if(bd(r))return n}function Pd(n,r){if(n==="change")return r}var Bd=!1;if(jn){var Hc;if(jn){var Pc="oninput"in document;if(!Pc){var Id=document.createElement("div");Id.setAttribute("oninput","return;"),Pc=typeof Id.oninput=="function"}Hc=Pc}else Hc=!1;Bd=Hc&&(!document.documentMode||9<document.documentMode)}function $d(){Ua&&(Ua.detachEvent("onpropertychange",qd),Ha=Ua=null)}function qd(n){if(n.propertyName==="value"&&po(Ha)){var r=[];Hd(r,Ha,n,jc(n)),Rd(Q_,r)}}function X_(n,r,s){n==="focusin"?($d(),Ua=r,Ha=s,Ua.attachEvent("onpropertychange",qd)):n==="focusout"&&$d()}function W_(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return po(Ha)}function ew(n,r){if(n==="click")return po(r)}function tw(n,r){if(n==="input"||n==="change")return po(r)}function nw(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Mt=typeof Object.is=="function"?Object.is:nw;function Pa(n,r){if(Mt(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var s=Object.keys(n),o=Object.keys(r);if(s.length!==o.length)return!1;for(o=0;o<s.length;o++){var h=s[o];if(!gc.call(r,h)||!Mt(n[h],r[h]))return!1}return!0}function Vd(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Gd(n,r){var s=Vd(n);n=0;for(var o;s;){if(s.nodeType===3){if(o=n+s.textContent.length,n<=r&&o>=r)return{node:s,offset:r-n};n=o}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Vd(s)}}function Zd(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?Zd(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function Kd(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=so(n.document);r instanceof n.HTMLIFrameElement;){try{var s=typeof r.contentWindow.location.href=="string"}catch{s=!1}if(s)n=r.contentWindow;else break;r=so(n.document)}return r}function Bc(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 rw=jn&&"documentMode"in document&&11>=document.documentMode,Ci=null,Ic=null,Ba=null,$c=!1;function Fd(n,r,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;$c||Ci==null||Ci!==so(o)||(o=Ci,"selectionStart"in o&&Bc(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,997 bytes, line 9
9sNode:o.focusNode,focusOffset:o.focusOffset}),Ba&&Pa(Ba,o)||(Ba=o,o=nl(Ic,"onSelect"),0<o.length&&(r=new ho("onSelect","select",null,r,s),n.push({event:r,listeners:o}),r.target=Ci)))}function Zr(n,r){var s={};return s[n.toLowerCase()]=r.toLowerCase(),s["Webkit"+n]="webkit"+r,s["Moz"+n]="moz"+r,s}var xi={animationend:Zr("Animation","AnimationEnd"),animationiteration:Zr("Animation","AnimationIteration"),animationstart:Zr("Animation","AnimationStart"),transitionrun:Zr("Transition","TransitionRun"),transitionstart:Zr("Transition","TransitionStart"),transitioncancel:Zr("Transition","TransitionCancel"),transitionend:Zr("Transition","TransitionEnd")},qc={},Yd={};jn&&(Yd=document.createElement("div").style,"AnimationEvent"in window||(delete xi.animationend.animation,delete xi.animationiteration.animation,delete xi.animationstart.animation),"TransitionEvent"in window||delete xi.transitionend.transition);function Kr(n){if(qc[n])return qc[n];if(!xi[n])return n;var r=xi[n],s;for(s in r)if(r.hasOwnProperty(s)&&s in Yd)return qc[n]=r[s];return n}var Jd=Kr("animationend"),Qd=Kr("animationiteration"),Xd=Kr("animationstart"),iw=Kr("transitionrun"),aw=Kr("transitionstart"),sw=Kr("transitioncancel"),Wd=Kr("transitionend"),ep=new Map,Vc="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(" ");Vc.push("scrollEnd");function tn(n,r){ep.set(n,r),Vr(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)},Zt=[],zi=0,Gc=0;function go(){for(var n=zi,r=Gc=zi=0;r<n;){var s=Zt[r];Zt[r++]=null;var o=Zt[r];Zt[r++]=null;var h=Zt[r];Zt[r++]=null;var d=Zt[r];if(Zt[r++]=null,o!==null&&h!==null){var y=o.pending;y===null?h.next=h:(h.next=y.next,y.next=h),o.pending=h}d!==0&&tp(s,h,d)}}function vo(n,r,s,o){Zt[zi++]=n,Zt[zi++]=r,Zt[zi++]=s,Zt[zi++]=o,Gc|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function Zc(n,r,s,o){return vo(n,r,s,o),yo(n)}function Fr(n,r){return vo(n,null,null,r),yo(n)}function tp(n,r,s){n.lanes|=s;var o=n.alternate;o!==null&&(o.lanes|=s);for(var h=!1,d=n.return;d!==null;)d.childLanes|=s,o=d.alternate,o!==null&&(o.childLanes|=s),d.tag===22&&(n=d.stateNode,n===null||n._visibility&1||(h=!0)),n=d,d=d.return;return n.tag===3?(d=n.stateNode,h&&r!==null&&(h=31-Nt(s),n=d.hiddenUpdates,o=n[h],o===null?n[h]=[r]:o.push(r),r.lane=s|536870912),d):null}function yo(n){if(50<ls)throw ls=0,th=null,Error(a(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var Di={};function ow(n,r,s,o){this.tag=n,this.key=s,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 Ut(n,r,s,o){return new ow(n,r,s,o)}function Kc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Cn(n,r){var s=n.alternate;return s===null?(s=Ut(n.tag,r,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=r,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,r=n.dependencies,s.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function np(n,r){n.flags&=65011714;var s=n.alternate;return s===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=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,r=s.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function bo(n,r,s,o,h,d){var y=0;if(o=n,typeof n=="function")Kc(n)&&(y=1);else if(typeof n=="string")y=fS(n,s,ae.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case ne:return n=Ut(31,s,r,h),n.elementType=ne,n.lanes=d,n;case E:return Yr(s.children,h,d,r);case T:y=8,h|=24;break;case R:return n=Ut(12,s,r,h|2),n.elementType=R,n.lanes=d,n;case J:return n=Ut(13,s,r,h),n.elementType=J,n.lanes=d,n;case P:return n=Ut(19,s,r,h),n.elementType=P,n.lanes=d,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case j:y=10;break e;case C:y=9;break e;case I:y=11;break e;case z:y=14;break e;case K:y=16,o=null;break e}y=29,s=Error(a(130,n===null?"null":typeof n,"")),o=null}return r=Ut(y,s,r,h),r.elementType=n,r.type=o,r.lanes=d,r}function Yr(n,r,s,o){return n=Ut(7,n,o,r),n.lanes=s,n}function Fc(n,r,s){return n=Ut(6,n,null,r),n.lanes=s,n}function rp(n){var r=Ut(18,null,null,0);return r.stateNode=n,r}function Yc(n,r,s){return r=Ut(4,n.children!==null?n.children:[],n.key,r),r.lanes=s,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var ip=new WeakMap;function Kt(n,r){if(typeof n=="object"&&n!==null){var s=ip.get(n);return s!==void 0?s:(r={value:n,source:r,stack:rd(r)},ip.set(n,r),r)}return{value:n,source:r,stack:rd(r)}}var Li=[],Ni=0,_o=null,Ia=0,Ft=[],Yt=0,or=null,pn=1,mn="";function xn(n,r){Li[Ni++]=Ia,Li[Ni++]=_o,_o=n,Ia=r}function ap(n,r,s){Ft[Yt++]=pn,Ft[Yt++]=mn,Ft[Yt++]=or,or=n;var o=pn;n=mn;var h=32-Nt(o)-1;o&=~(1<<h),s+=1;var d=32-Nt(r)+h;if(30<d){var y=h-h%5;d=(o&(1<<y)-1).toString(32),o>>=y,h-=y,pn=1<<32-Nt(r)+h|s<<h|o,mn=d+n}else pn=1<<d|s<<h|o,mn=n}function Jc(n){n.return!==null&&(xn(n,1),ap(n,1,0))}function Qc(n){for(;n===_o;)_o=Li[--Ni],Li[Ni]=null,Ia=Li[--Ni],Li[Ni]=null;for(;n===or;)or=Ft[--Yt],Ft[Yt]=null,mn=Ft[--Yt],Ft[Yt]=null,pn=Ft[--Yt],Ft[Yt]=null}function sp(n,r){Ft[Yt++]=pn,Ft[Yt++]=mn,Ft[Yt++]=or,pn=r.id,mn=r.overflow,or=n}var dt=null,Ge=null,Ae=!1,lr=null,Jt=!1,Xc=Error(a(519));function cr(n){var r=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $a(Kt(r,n)),Xc}function op(n){var r=n.stateNode,s=n.type,o=n.memoizedProps;switch(r[ft]=n,r[Tt]=o,s){case"dialog":Ee("cancel",r),Ee("close",r);break;case"iframe":case"object":case"embed":Ee("load",r);break;case"video":case"audio":for(s=0;s<us.length;s++)Ee(us[s],r);break;case"source":Ee("error",r);break;case"img":case"image":case"link":Ee("error",r),Ee("load",r);break;case"details":Ee("toggle",r);break;case"input":Ee("invalid",r),_d(r,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Ee("invalid",r);break;case"textarea":Ee("invalid",r),Sd(r,o.value,o.defaultValue,o.children)}s=o.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||r.textContent===""+s||o.suppressHydrationWarning===!0||kg(r.textContent,s)?(o.popover!=null&&(Ee("beforetoggle",r),Ee("toggle",r)),o.onScroll!=null&&Ee("scroll",r),o.onScrollEnd!=null&&Ee("scrollend",r),o.onClick!=null&&(r.onclick=On),r=!0):r=!1,r||cr(n,!0)}function lp(n){for(dt=n.return;dt;)switch(dt.tag){case 5:case 31:case 13:Jt=!1;return;case 27:case 3:Jt=!0;return;default:dt=dt.return}}function Mi(n){if(n!==dt)return!1;if(!Ae)return lp(n),Ae=!0,!1;var r=n.tag,s;if((s=r!==3&&r!==27)&&((s=r===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||gh(n.type,n.memoizedProps)),s=!s),s&&Ge&&cr(n),lp(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));Ge=Dg(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));Ge=Dg(n)}else r===27?(r=Ge,Er(n.type)?(n=wh,wh=null,Ge=n):Ge=r):Ge=dt?Xt(n.stateNode.nextSibling):null;return!0}function Jr(){Ge=dt=null,Ae=!1}function Wc(){var n=lr;return n!==null&&(Ct===null?Ct=n:Ct.push.apply(Ct,n),lr=null),n}function $a(n){lr===null?lr=[n]:lr.push(n)}var eu=O(null),Qr=null,zn=null;function ur(n,r,s){F(eu,r._currentValue),r._currentValue=s}function Dn(n){n._currentValue=eu.current,q(eu)}function tu(n,r,s){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===s)break;n=n.return}}function nu(n,r,s,o){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var d=h.dependencies;if(d!==null){var y=h.child;d=d.firstContext;e:for(;d!==null;){var w=d;d=h;for(var k=0;k<r.length;k++)if(w.context===r[k]){d.lanes|=s,w=d.alternate,w!==null&&(w.lanes|=s),tu(d.return,s,n),o||(y=null);break e}d=w.next}}else if(h.tag===18){if(y=h.return,y===null)throw Error(a(341));y.lanes|=s,d=y.alternate,d!==null&&(d.lanes|=s),tu(y,s,n),y=null}else y=h.child;if(y!==null)y.return=h;else for(y=h;y!==null;){if(y===n){y=null;break}if(h=y.sibling,h!==null){h.return=y.return,y=h;break}y=y.return}h=y}}function Ui(n,r,s,o){n=null;for(var h=r,d=!1;h!==null;){if(!d){if((h.flags&524288)!==0)d=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var y=h.alternate;if(y===null)throw Error(a(387));if(y=y.memoizedProps,y!==null){var w=h.type;Mt(h.pendingProps.value,y.value)||(n!==null?n.push(w):n=[w])}}else if(h===de.current){if(y=h.alternate,y===null)throw Error(a(387));y.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(ms):n=[ms])}h=h.return}n!==null&&nu(r,n,s,o),r.flags|=262144}function wo(n){for(n=n.firstContext;n!==null;){if(!Mt(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Xr(n){Qr=n,zn=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function pt(n){return cp(Qr,n)}function So(n,r){return Qr===null&&Xr(n),cp(n,r)}function cp(n,r){var s=r._currentValue;if(r={context:r,memoizedValue:s,next:null},zn===null){if(n===null)throw Error(a(308));zn=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else zn=zn.next=r;return s}var lw=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(s,o){n.push(o)}};this.abort=function(){r.aborted=!0,n.forEach(function(s){return s()})}},cw=t.unstable_scheduleCallback,uw=t.unstable_NormalPriority,et={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ru(){return{controller:new lw,data:new Map,refCount:0}}function qa(n){n.refCount--,n.refCount===0&&cw(uw,function(){n.controller.abort()})}var Va=null,iu=0,Hi=0,Pi=null;function hw(n,r){if(Va===null){var s=Va=[];iu=0,Hi=oh(),Pi={status:"pending",value:void 0,then:function(o){s.push(o)}}}return iu++,r.then(up,up),r}function up(){if(--iu===0&&Va!==null){Pi!==null&&(Pi.status="fulfilled");var n=Va;Va=null,Hi=0,Pi=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function fw(n,r){var s=[],o={status:"pending",value:null,reason:null,then:function(h){s.push(h)}};return n.then(function(){o.status="fulfilled",o.value=r;for(var h=0;h<s.length;h++)(0,s[h])(r)},function(h){for(o.status="rejected",o.reason=h,h=0;h<s.length;h++)(0,s[h])(void 0)}),o}var hp=M.S;M.S=function(n,r){Fm=Dt(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&hw(n,r),hp!==null&&hp(n,r)};var Wr=O(null);function au(){var n=Wr.current;return n!==null?n:Ie.pooledCache}function Eo(n,r){r===null?F(Wr,Wr.current):F(Wr,r.pool)}function fp(){var n=au();return n===null?null:{parent:et._currentValue,pool:n}}var Bi=Error(a(460)),su=Error(a(474)),ko=Error(a(542)),To={then:function(){}};function dp(n){return n=n.status,n==="fulfilled"||n==="rejected"}function pp(n,r,s){switch(s=n[s],s===void 0?n.push(r):s!==r&&(r.then(On,On),r=s),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,gp(n),n;default:if(typeof r.status=="string")r.then(On,On);else{if(n=Ie,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=r,n.status="pending",n.then(function(o){if(r.status==="pending"){var h=r;h.status="fulfilled",h.value=o}},function(o){if(r.status==="pending"){var h=r;h.status="rejected",h.reason=o}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,gp(n),n}throw ti=r,Bi}}function ei(n){try{var r=n._init;return r(n._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(ti=s,Bi):s}}var ti=null;function mp(){if(ti===null)throw Error(a(459));var n=ti;return ti=null,n}function gp(n){if(n===Bi||n===ko)throw Error(a(483))}var Ii=null,Ga=0;function Ro(n){var r=Ga;return Ga+=1,Ii===null&&(Ii=[]),pp(Ii,n,r)}function Za(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function Ao(n,r){throw r.$$typeof===b?Error(a(525)):(n=Object.prototype.toString.call(r),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function vp(n){function r(x,A){if(n){var D=x.deletions;D===null?(x.deletions=[A],x.flags|=16):D.push(A)}}function s(x,A){if(!n)return null;for(;A!==null;)r(x,A),A=A.sibling;return null}function o(x){for(var A=new Map;x!==null;)x.key!==null?A.set(x.key,x):A.set(x.index,x),x=x.sibling;return A}function h(x,A){return x=Cn(x,A),x.index=0,x.sibling=null,x}function d(x,A,D){return x.index=D,n?(D=x.alternate,D!==null?(D=D.index,D<A?(x.flags|=67108866,A):D):(x.flags|=67108866,A)):(x.flags|=1048576,A)}function y(x){return n&&x.alternate===null&&(x.flags|=67108866),x}function w(x,A,D,$){return A===null||A.tag!==6?(A=Fc(D,x.mode,$),A.return=x,A):(A=h(A,D),A.return=x,A)}function k(x,A,D,$){var he=D.type;return he===E?B(x,A,D.props.children,$,D.key):A!==null&&(A.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===K&&ei(he)===A.type)?(A=h(A,D.props),Za(A,D),A.return=x,A):(A=bo(D.type,D.key,D.props,null,x.mode,$),Za(A,D),A.return=x,A)}function L(x,A,D,$){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=Yc(D,x.mode,$),A.return=x,A):(A=h(A,D.children||[]),A.return=x,A)}function B(x,A,D,$,he){return A===null||A.tag!==7?(A=Yr(D,x.mode,$,he),A.return=x,A):(A=h(A,D),A.return=x,A)}function V(x,A,D){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Fc(""+A,x.mode,D),A.return=x,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return D=bo(A.type,A.key,A.props,null,x.mode,D),Za(D,A),D.return=x,D;case S:return A=Yc(A,x.mode,D),A.return=x,A;case K:return A=ei(A),V(x,A,D)}if(ce(A)||Z(A))return A=Yr(A,x.mode,D,null),A.return=x,A;if(typeof A.then=="function")return V(x,Ro(A),D);if(A.$$typeof===j)return V(x,So(x,A),D);Ao(x,A)}return null}function N(x,A,D,$){var he=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return he!==null?null:w(x,A,""+D,$);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case _:return D.key===he?k(x,A,D,$):null;case S:return D.key===he?L(x,A,D,$):null;case K:return D=ei(D),N(x,A,D,$)}if(ce(D)||Z(D))return he!==null?null:B(x,A,D,$,null);if(typeof D.then=="function")return N(x,A,Ro(D),$);if(D.$$typeof===j)return N(x,A,So(x,D),$);Ao(x,D)}return null}function U(x,A,D,$,he){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return x=x.get(D)||null,w(A,x,""+$,he);if(typeof $=="object"&&$!==null){switch($.$$typeof){case _:return x=x.get($.key===null?D:$.key)||null,k(A,x,$,he);case S:return x=x.get($.key===null?D:$.key)||null,L(A,x,$,he);case K:return $=ei($),U(x,A,D,$,he)}if(ce($)||Z($))return x=x.get(D)||null,B(A,x,$,he,null);if(typeof $.then=="function")return U(x,A,D,Ro($),he);if($.$$typeof===j)return U(x,A,D,So(A,$),he);Ao(A,$)}return null}function ie(x,A,D,$){for(var he=null,je=null,le=A,_e=A=0,Re=null;le!==null&&_e<D.length;_e++){le.index>_e?(Re=le,le=null):Re=le.sibling;var Ce=N(x,le,D[_e],$);if(Ce===null){le===null&&(le=Re);break}n&&le&&Ce.alternate===null&&r(x,le),A=d(Ce,A,_e),je===null?he=Ce:je.sibling=Ce,je=Ce,le=Re}if(_e===D.length)return s(x,le),Ae&&xn(x,_e),he;if(le===null){for(;_e<D.length;_e++)le=V(x,D[_e],$),le!==null&&(A=d(le,A,_e),je===null?he=le:je.sibling=le,je=le);return Ae&&xn(x,_e),he}for(le=o(le);_e<D.length;_e++)Re=U(le,x,_e,D[_e],$),Re!==null&&(n&&Re.alternate!==null&&le.delete(Re.key===null?_e:Re.key),A=d(Re,A,_e),je===null?he=Re:je.sibling=Re,je=Re);return n&&le.forEach(function(Or){return r(x,Or)}),Ae&&xn(x,_e),he}function pe(x,A,D,$){if(D==null)throw Error(a(151));for(var he=null,je=null,le=A,_e=A=0,Re=null,Ce=D.next();le!==null&&!Ce.done;_e++,Ce=D.next()){le.index>_e?(Re=le,le=null):Re=le.sibling;var Or=N(x,le,Ce.value,$);if(Or===null){le===null&&(le=Re);break}n&&le&&Or.alternate===null&&r(x,le),A=d(Or,A,_e),je===null?he=Or:je.sibling=Or,je=Or,le=Re}if(Ce.done)return s(x,le),Ae&&xn(x,_e),he;if(le===null){for(;!Ce.done;_e++,Ce=D.next())Ce=V(x,Ce.value,$),Ce!==null&&(A=d(Ce,A,_e),je===null?he=Ce:je.sibling=Ce,je=Ce);return Ae&&xn(x,_e),he}for(le=o(le);!Ce.done;_e++,Ce=D.next())Ce=U(le,x,_e,Ce.value,$),Ce!==null&&(n&&Ce.alternate!==null&&le.delete(Ce.key===null?_e:Ce.key),A=d(Ce,A,_e),je===null?he=Ce:je.sibling=Ce,je=Ce);return n&&le.forEach(function(ES){return r(x,ES)}),Ae&&xn(x,_e),he}function Pe(x,A,D,$){if(typeof D=="object"&&D!==null&&D.type===E&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case _:e:{for(var he=D.key;A!==null;){if(A.key===he){if(he=D.type,he===E){if(A.tag===7){s(x,A.sibling),$=h(A,D.props.children),$.return=x,x=$;break e}}else if(A.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===K&&ei(he)===A.type){s(x,A.sibling),$=h(A,D.props),Za($,D),$.return=x,x=$;break e}s(x,A);break}else r(x,A);A=A.sibling}D.type===E?($=Yr(D.props.children,x.mode,$,D.key),$.return=x,x=$):($=bo(D.type,D.key,D.props,null,x.mode,$),Za($,D),$.return=x,x=$)}return y(x);case S:e:{for(he=D.key;A!==null;){if(A.key===he)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){s(x,A.sibling),$=h(A,D.children||[]),$.return=x,x=$;break e}else{s(x,A);break}else r(x,A);A=A.sibling}$=Yc(D,x.mode,$),$.return=x,x=$}return y(x);case K:return D=ei(D),Pe(x,A,D,$)}if(ce(D))return ie(x,A,D,$);if(Z(D)){if(he=Z(D),typeof he!="function")throw Error(a(150));return D=he.call(D),pe(x,A,D,$)}if(typeof D.then=="function")return Pe(x,A,Ro(D),$);if(D.$$typeof===j)return Pe(x,A,So(x,D),$);Ao(x,D)}
vendor: 4,983 bytes, line 9
9return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(s(x,A.sibling),$=h(A,D),$.return=x,x=$):(s(x,A),$=Fc(D,x.mode,$),$.return=x,x=$),y(x)):s(x,A)}return function(x,A,D,$){try{Ga=0;var he=Pe(x,A,D,$);return Ii=null,he}catch(le){if(le===Bi||le===ko)throw le;var je=Ut(29,le,null,x.mode);return je.lanes=$,je.return=x,je}}}var ni=vp(!0),yp=vp(!1),hr=!1;function ou(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lu(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 fr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function dr(n,r,s){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,(Le&2)!==0){var h=o.pending;return h===null?r.next=r:(r.next=h.next,h.next=r),o.pending=r,r=yo(n),tp(n,null,s),r}return vo(n,o,r,s),yo(n)}function Ka(n,r,s){if(r=r.updateQueue,r!==null&&(r=r.shared,(s&4194048)!==0)){var o=r.lanes;o&=n.pendingLanes,s|=o,r.lanes=s,cd(n,s)}}function cu(n,r){var s=n.updateQueue,o=n.alternate;if(o!==null&&(o=o.updateQueue,s===o)){var h=null,d=null;if(s=s.firstBaseUpdate,s!==null){do{var y={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};d===null?h=d=y:d=d.next=y,s=s.next}while(s!==null);d===null?h=d=r:d=d.next=r}else h=d=r;s={baseState:o.baseState,firstBaseUpdate:h,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=r:n.next=r,s.lastBaseUpdate=r}var uu=!1;function Fa(){if(uu){var n=Pi;if(n!==null)throw n}}function Ya(n,r,s,o){uu=!1;var h=n.updateQueue;hr=!1;var d=h.firstBaseUpdate,y=h.lastBaseUpdate,w=h.shared.pending;if(w!==null){h.shared.pending=null;var k=w,L=k.next;k.next=null,y===null?d=L:y.next=L,y=k;var B=n.alternate;B!==null&&(B=B.updateQueue,w=B.lastBaseUpdate,w!==y&&(w===null?B.firstBaseUpdate=L:w.next=L,B.lastBaseUpdate=k))}if(d!==null){var V=h.baseState;y=0,B=L=k=null,w=d;do{var N=w.lane&-536870913,U=N!==w.lane;if(U?(Te&N)===N:(o&N)===N){N!==0&&N===Hi&&(uu=!0),B!==null&&(B=B.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var ie=n,pe=w;N=r;var Pe=s;switch(pe.tag){case 1:if(ie=pe.payload,typeof ie=="function"){V=ie.call(Pe,V,N);break e}V=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=pe.payload,N=typeof ie=="function"?ie.call(Pe,V,N):ie,N==null)break e;V=v({},V,N);break e;case 2:hr=!0}}N=w.callback,N!==null&&(n.flags|=64,U&&(n.flags|=8192),U=h.callbacks,U===null?h.callbacks=[N]:U.push(N))}else U={lane:N,tag:w.tag,payload:w.payload,callback:w.callback,next:null},B===null?(L=B=U,k=V):B=B.next=U,y|=N;if(w=w.next,w===null){if(w=h.shared.pending,w===null)break;U=w,w=U.next,U.next=null,h.lastBaseUpdate=U,h.shared.pending=null}}while(!0);B===null&&(k=V),h.baseState=k,h.firstBaseUpdate=L,h.lastBaseUpdate=B,d===null&&(h.shared.lanes=0),yr|=y,n.lanes=y,n.memoizedState=V}}function bp(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function _p(n,r){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)bp(s[n],r)}var $i=O(null),Oo=O(0);function wp(n,r){n=$n,F(Oo,n),F($i,r),$n=n|r.baseLanes}function hu(){F(Oo,$n),F($i,$i.current)}function fu(){$n=Oo.current,q($i),q(Oo)}var Ht=O(null),Qt=null;function pr(n){var r=n.alternate;F(Xe,Xe.current&1),F(Ht,n),Qt===null&&(r===null||$i.current!==null||r.memoizedState!==null)&&(Qt=n)}function du(n){F(Xe,Xe.current),F(Ht,n),Qt===null&&(Qt=n)}function Sp(n){n.tag===22?(F(Xe,Xe.current),F(Ht,n),Qt===null&&(Qt=n)):mr()}function mr(){F(Xe,Xe.current),F(Ht,Ht.current)}function Pt(n){q(Ht),Qt===n&&(Qt=null),q(Xe)}var Xe=O(0);function jo(n){for(var r=n;r!==null;){if(r.tag===13){var s=r.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||bh(s)||_h(s)))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 Ln=0,be=null,Ue=null,tt=null,Co=!1,qi=!1,ri=!1,xo=0,Ja=0,Vi=null,dw=0;function Ye(){throw Error(a(321))}function pu(n,r){if(r===null)return!1;for(var s=0;s<r.length&&s<n.length;s++)if(!Mt(n[s],r[s]))return!1;return!0}function mu(n,r,s,o,h,d){return Ln=d,be=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,M.H=n===null||n.memoizedState===null?am:Cu,ri=!1,d=s(o,h),ri=!1,qi&&(d=kp(r,s,o,h)),Ep(n),d}function Ep(n){M.H=Wa;var r=Ue!==null&&Ue.next!==null;if(Ln=0,tt=Ue=be=null,Co=!1,Ja=0,Vi=null,r)throw Error(a(300));n===null||nt||(n=n.dependencies,n!==null&&wo(n)&&(nt=!0))}function kp(n,r,s,o){be=n;var h=0;
vendor: 7,493 bytes, line 9
9do{if(qi&&(Vi=null),Ja=0,qi=!1,25<=h)throw Error(a(301));if(h+=1,tt=Ue=null,n.updateQueue!=null){var d=n.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}M.H=sm,d=r(s,o)}while(qi);return d}function pw(){var n=M.H,r=n.useState()[0];return r=typeof r.then=="function"?Qa(r):r,n=n.useState()[0],(Ue!==null?Ue.memoizedState:null)!==n&&(be.flags|=1024),r}function gu(){var n=xo!==0;return xo=0,n}function vu(n,r,s){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~s}function yu(n){if(Co){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}Co=!1}Ln=0,tt=Ue=be=null,qi=!1,Ja=xo=0,Vi=null}function wt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?be.memoizedState=tt=n:tt=tt.next=n,tt}function We(){if(Ue===null){var n=be.alternate;n=n!==null?n.memoizedState:null}else n=Ue.next;var r=tt===null?be.memoizedState:tt.next;if(r!==null)tt=r,Ue=n;else{if(n===null)throw be.alternate===null?Error(a(467)):Error(a(310));Ue=n,n={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},tt===null?be.memoizedState=tt=n:tt=tt.next=n}return tt}function zo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qa(n){var r=Ja;return Ja+=1,Vi===null&&(Vi=[]),n=pp(Vi,n,r),r=be,(tt===null?r.memoizedState:tt.next)===null&&(r=r.alternate,M.H=r===null||r.memoizedState===null?am:Cu),n}function Do(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Qa(n);if(n.$$typeof===j)return pt(n)}throw Error(a(438,String(n)))}function bu(n){var r=null,s=be.updateQueue;if(s!==null&&(r=s.memoCache),r==null){var o=be.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(r={data:o.data.map(function(h){return h.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),s===null&&(s=zo(),be.updateQueue=s),s.memoCache=r,s=r.data[r.index],s===void 0)for(s=r.data[r.index]=Array(n),o=0;o<n;o++)s[o]=ue;return r.index++,s}function Nn(n,r){return typeof r=="function"?r(n):r}function Lo(n){var r=We();return _u(r,Ue,n)}function _u(n,r,s){var o=n.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=s;var h=n.baseQueue,d=o.pending;if(d!==null){if(h!==null){var y=h.next;h.next=d.next,d.next=y}r.baseQueue=h=d,o.pending=null}if(d=n.baseState,h===null)n.memoizedState=d;else{r=h.next;var w=y=null,k=null,L=r,B=!1;do{var V=L.lane&-536870913;if(V!==L.lane?(Te&V)===V:(Ln&V)===V){var N=L.revertLane;if(N===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),V===Hi&&(B=!0);else if((Ln&N)===N){L=L.next,N===Hi&&(B=!0);continue}else V={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},k===null?(w=k=V,y=d):k=k.next=V,be.lanes|=N,yr|=N;V=L.action,ri&&s(d,V),d=L.hasEagerState?L.eagerState:s(d,V)}else N={lane:V,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},k===null?(w=k=N,y=d):k=k.next=N,be.lanes|=V,yr|=V;L=L.next}while(L!==null&&L!==r);if(k===null?y=d:k.next=w,!Mt(d,n.memoizedState)&&(nt=!0,B&&(s=Pi,s!==null)))throw s;n.memoizedState=d,n.baseState=y,n.baseQueue=k,o.lastRenderedState=d}return h===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function wu(n){var r=We(),s=r.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=n;var o=s.dispatch,h=s.pending,d=r.memoizedState;if(h!==null){s.pending=null;var y=h=h.next;do d=n(d,y.action),y=y.next;while(y!==h);Mt(d,r.memoizedState)||(nt=!0),r.memoizedState=d,r.baseQueue===null&&(r.baseState=d),s.lastRenderedState=d}return[d,o]}function Tp(n,r,s){var o=be,h=We(),d=Ae;if(d){if(s===void 0)throw Error(a(407));s=s()}else s=r();var y=!Mt((Ue||h).memoizedState,s);if(y&&(h.memoizedState=s,nt=!0),h=h.queue,ku(Op.bind(null,o,h,n),[n]),h.getSnapshot!==r||y||tt!==null&&tt.memoizedState.tag&1){if(o.flags|=2048,Gi(9,{destroy:void 0},Ap.bind(null,o,h,s,r),null),Ie===null)throw Error(a(349));d||(Ln&127)!==0||Rp(o,r,s)}return s}function Rp(n,r,s){n.flags|=16384,n={getSnapshot:r,value:s},r=be.updateQueue,r===null?(r=zo(),be.updateQueue=r,r.stores=[n]):(s=r.stores,s===null?r.stores=[n]:s.push(n))}function Ap(n,r,s,o){r.value=s,r.getSnapshot=o,jp(r)&&Cp(n)}function Op(n,r,s){return s(function(){jp(r)&&Cp(n)})}function jp(n){var r=n.getSnapshot;n=n.value;try{var s=r();return!Mt(n,s)}catch{return!0}}function Cp(n){var r=Fr(n,2);r!==null&&xt(r,n,2)}function Su(n){var r=wt();if(typeof n=="function"){var s=n;if(n=s(),ri){ir(!0);try{s()}finally{ir(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:n},r}function xp(n,r,s,o){return n.baseState=s,_u(n,Ue,typeof o=="function"?o:Nn)}function mw(n,r,s,o,h){if(Uo(n))throw Error(a(485));if(n=r.action,n!==null){var d={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};M.T!==null?s(!0):d.isTransition=!1,o(d),s=r.pending,s===null?(d.next=r.pending=d,zp(r,d)):(d.next=s.next,r.pending=s.next=d)}}function zp(n,r){var s=r.action,o=r.payload,h=n.state;if(r.isTransition){var d=M.T,y={};M.T=y;try{var w=s(h,o),k=M.S;k!==null&&k(y,w),Dp(n,r,w)}catch(L){Eu(n,r,L)}finally{d!==null&&y.types!==null&&(d.types=y.types),M.T=d}}else try{d=s(h,o),Dp(n,r,d)}catch(L){Eu(n,r,L)}}function Dp(n,r,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(o){Lp(n,r,o)},function(o){return Eu(n,r,o)}):Lp(n,r,s)}function Lp(n,r,s){r.status="fulfilled",r.value=s,Np(r),n.state=s,r=n.pending,r!==null&&(s=r.next,s===r?n.pending=null:(s=s.next,r.next=s,zp(n,s)))}function Eu(n,r,s){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do r.status="rejected",r.reason=s,Np(r),r=r.next;while(r!==o)}n.action=null}function Np(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function Mp(n,r){return r}function Up(n,r){if(Ae){var s=Ie.formState;if(s!==null){e:{var o=be;if(Ae){if(Ge){t:{for(var h=Ge,d=Jt;h.nodeType!==8;){if(!d){h=null;break t}if(h=Xt(h.nextSibling),h===null){h=null;break t}}d=h.data,h=d==="F!"||d==="F"?h:null}if(h){Ge=Xt(h.nextSibling),o=h.data==="F!";break e}}cr(o)}o=!1}o&&(r=s[0])}}return s=wt(),s.memoizedState=s.baseState=r,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mp,lastRenderedState:r},s.queue=o,s=nm.bind(null,be,o),o.dispatch=s,o=Su(!1),d=ju.bind(null,be,!1,o.queue),o=wt(),h={state:r,dispatch:null,action:n,pending:null},o.queue=h,s=mw.bind(null,be,h,d,s),h.dispatch=s,o.memoizedState=n,[r,s,!1]}function Hp(n){var r=We();return Pp(r,Ue,n)}function Pp(n,r,s){if(r=_u(n,r,Mp)[0],n=Lo(Nn)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var o=Qa(r)}catch(y){throw y===Bi?ko:y}else o=r;r=We();var h=r.queue,d=h.dispatch;return s!==r.memoizedState&&(be.flags|=2048,Gi(9,{destroy:void 0},gw.bind(null,h,s),null)),[o,d,n]}function gw(n,r){n.action=r}function Bp(n){var r=We(),s=Ue;if(s!==null)return Pp(r,s,n);We(),r=r.memoizedState,s=We();var o=s.queue.dispatch;return s.memoizedState=n,[r,o,!1]}function Gi(n,r,s,o){return n={tag:n,create:s,deps:o,inst:r,next:null},r=be.updateQueue,r===null&&(r=zo(),be.updateQueue=r),s=r.lastEffect,s===null?r.lastEffect=n.next=n:(o=s.next,s.next=n,n.next=o,r.lastEffect=n),n}function Ip(){return We().memoizedState}function No(n,r,s,o){var h=wt();be.flags|=n,h.memoizedState=Gi(1|r,{destroy:void 0}
vendor: 5,168 bytes, line 9
9,s,o===void 0?null:o)}function Mo(n,r,s,o){var h=We();o=o===void 0?null:o;var d=h.memoizedState.inst;Ue!==null&&o!==null&&pu(o,Ue.memoizedState.deps)?h.memoizedState=Gi(r,d,s,o):(be.flags|=n,h.memoizedState=Gi(1|r,d,s,o))}function $p(n,r){No(8390656,8,n,r)}function ku(n,r){Mo(2048,8,n,r)}function vw(n){be.flags|=4;var r=be.updateQueue;if(r===null)r=zo(),be.updateQueue=r,r.events=[n];else{var s=r.events;s===null?r.events=[n]:s.push(n)}}function qp(n){var r=We().memoizedState;return vw({ref:r,nextImpl:n}),function(){if((Le&2)!==0)throw Error(a(440));return r.impl.apply(void 0,arguments)}}function Vp(n,r){return Mo(4,2,n,r)}function Gp(n,r){return Mo(4,4,n,r)}function Zp(n,r){if(typeof r=="function"){n=n();var s=r(n);return function(){typeof s=="function"?s():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function Kp(n,r,s){s=s!=null?s.concat([n]):null,Mo(4,4,Zp.bind(null,r,n),s)}function Tu(){}function Fp(n,r){var s=We();r=r===void 0?null:r;var o=s.memoizedState;return r!==null&&pu(r,o[1])?o[0]:(s.memoizedState=[n,r],n)}function Yp(n,r){var s=We();r=r===void 0?null:r;var o=s.memoizedState;if(r!==null&&pu(r,o[1]))return o[0];if(o=n(),ri){ir(!0);try{n()}finally{ir(!1)}}return s.memoizedState=[o,r],o}function Ru(n,r,s){return s===void 0||(Ln&1073741824)!==0&&(Te&261930)===0?n.memoizedState=r:(n.memoizedState=s,n=Jm(),be.lanes|=n,yr|=n,s)}function Jp(n,r,s,o){return Mt(s,r)?s:$i.current!==null?(n=Ru(n,s,o),Mt(n,r)||(nt=!0),n):(Ln&42)===0||(Ln&1073741824)!==0&&(Te&261930)===0?(nt=!0,n.memoizedState=s):(n=Jm(),be.lanes|=n,yr|=n,r)}function Qp(n,r,s,o,h){var d=Y.p;Y.p=d!==0&&8>d?d:8;var y=M.T,w={};M.T=w,ju(n,!1,r,s);try{var k=h(),L=M.S;if(L!==null&&L(w,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var B=fw(k,o);Xa(n,r,B,$t(n))}else Xa(n,r,o,$t(n))}catch(V){Xa(n,r,{then:function(){},status:"rejected",reason:V},$t())}finally{Y.p=d,y!==null&&w.types!==null&&(y.types=w.types),M.T=y}}function yw(){}function Au(n,r,s,o){if(n.tag!==5)throw Error(a(476));var h=Xp(n).queue;Qp(n,h,r,fe,s===null?yw:function(){return Wp(n),s(o)})}function Xp(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:fe},next:null};var s={};return r.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:s},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function Wp(n){var r=Xp(n);r.next===null&&(r=n.alternate.memoizedState),Xa(n,r.next.queue,{},$t())}function Ou(){return pt(ms)}function em(){return We().memoizedState}function tm(){return We().memoizedState}function bw(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var s=$t();n=fr(s);var o=dr(r,n,s);o!==null&&(xt(o,r,s),Ka(o,r,s)),r={cache:ru()},n.payload=r;return}r=r.return}}function _w(n,r,s){var o=$t();s={lane:o,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Uo(n)?rm(r,s):(s=Zc(n,r,s,o),s!==null&&(xt(s,n,o),im(s,r,o)))}function nm(n,r,s){var o=$t();Xa(n,r,s,o)}function Xa(n,r,s,o){var h={lane:o,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Uo(n))rm(r,h);else{var d=n.alternate;if(n.lanes===0&&(d===null||d.lanes===0)&&(d=r.lastRenderedReducer,d!==null))try{var y=r.lastRenderedState,w=d(y,s);if(h.hasEagerState=!0,h.eagerState=w,Mt(w,y))return vo(n,r,h,0),Ie===null&&go(),!1}catch{}if(s=Zc(n,r,h,o),s!==null)return xt(s,n,o),im(s,r,o),!0}return!1}function ju(n,r,s,o){if(o={lane:2,revertLane:oh(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Uo(n)){if(r)throw Error(a(479))}else r=Zc(n,s,o,2),r!==null&&xt(r,n,2)}function Uo(n){var r=n.alternate;return n===be||r!==null&&r===be}function rm(n,r){qi=Co=!0;var s=n.pending;s===null?r.next=r:(r.next=s.next,s.next=r),n.pending=r}function im(n,r,s){if((s&4194048)!==0){var o=r.lanes;o&=n.pendingLanes,s|=o,r.lanes=s,cd(n,s)}}var Wa={readContext:pt,use:Do,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Wa.useEffectEvent=Ye;var am={readContext:pt,use:Do,useCallback:function(n,r){return wt().memoizedState=[n,r===void 0?null:r],n},useContext:pt,useEffect:$p,useImperativeHandle:function(n,r,s){s=s!=null?s.concat([n]):null,No(4194308,4,Zp.bind(null,r,n),s)},useLayoutEffect:function(n,r){return No(4194308,4,n,r)},useInsertionEffect:function(n,r){No(4,2,n,r)},useMemo:function(n,r){var s=wt();r=r===void 0?null:r;var o=n();if(ri){ir(!0);try{n()}finally{ir(!1)}}return s.memoizedState=[o,r],o},useReducer:function(n,r,s){var o=wt();if(s!==void 0){var h=s(r);if(ri){ir(!0);try{s(r)}finally{ir(!1)}}}else h=r;return o.memoizedState=o.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},o.queue=n,n=n.dispatch=_w.bind(null,be,n),[o.memoizedState,n]}
vendor: 3,264 bytes, line 9
9,useRef:function(n){var r=wt();return n={current:n},r.memoizedState=n},useState:function(n){n=Su(n);var r=n.queue,s=nm.bind(null,be,r);return r.dispatch=s,[n.memoizedState,s]},useDebugValue:Tu,useDeferredValue:function(n,r){var s=wt();return Ru(s,n,r)},useTransition:function(){var n=Su(!1);return n=Qp.bind(null,be,n.queue,!0,!1),wt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,s){var o=be,h=wt();if(Ae){if(s===void 0)throw Error(a(407));s=s()}else{if(s=r(),Ie===null)throw Error(a(349));(Te&127)!==0||Rp(o,r,s)}h.memoizedState=s;var d={value:s,getSnapshot:r};return h.queue=d,$p(Op.bind(null,o,d,n),[n]),o.flags|=2048,Gi(9,{destroy:void 0},Ap.bind(null,o,d,s,r),null),s},useId:function(){var n=wt(),r=Ie.identifierPrefix;if(Ae){var s=mn,o=pn;s=(o&~(1<<32-Nt(o)-1)).toString(32)+s,r="_"+r+"R_"+s,s=xo++,0<s&&(r+="H"+s.toString(32)),r+="_"}else s=dw++,r="_"+r+"r_"+s.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:Ou,useFormState:Up,useActionState:Up,useOptimistic:function(n){var r=wt();r.memoizedState=r.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=s,r=ju.bind(null,be,!0,s),s.dispatch=r,[n,r]},useMemoCache:bu,useCacheRefresh:function(){return wt().memoizedState=bw.bind(null,be)},useEffectEvent:function(n){var r=wt(),s={impl:n};return r.memoizedState=s,function(){if((Le&2)!==0)throw Error(a(440));return s.impl.apply(void 0,arguments)}}},Cu={readContext:pt,use:Do,useCallback:Fp,useContext:pt,useEffect:ku,useImperativeHandle:Kp,useInsertionEffect:Vp,useLayoutEffect:Gp,useMemo:Yp,useReducer:Lo,useRef:Ip,useState:function(){return Lo(Nn)},useDebugValue:Tu,useDeferredValue:function(n,r){var s=We();return Jp(s,Ue.memoizedState,n,r)},useTransition:function(){var n=Lo(Nn)[0],r=We().memoizedState;return[typeof n=="boolean"?n:Qa(n),r]},useSyncExternalStore:Tp,useId:em,useHostTransitionStatus:Ou,useFormState:Hp,useActionState:Hp,useOptimistic:function(n,r){var s=We();return xp(s,Ue,n,r)},useMemoCache:bu,useCacheRefresh:tm};Cu.useEffectEvent=qp;var sm={readContext:pt,use:Do,useCallback:Fp,useContext:pt,useEffect:ku,useImperativeHandle:Kp,useInsertionEffect:Vp,useLayoutEffect:Gp,useMemo:Yp,useReducer:wu,useRef:Ip,useState:function(){return wu(Nn)},useDebugValue:Tu,useDeferredValue:function(n,r){var s=We();return Ue===null?Ru(s,n,r):Jp(s,Ue.memoizedState,n,r)},useTransition:function(){var n=wu(Nn)[0],r=We().memoizedState;return[typeof n=="boolean"?n:Qa(n),r]},useSyncExternalStore:Tp,useId:em,useHostTransitionStatus:Ou,useFormState:Bp,useActionState:Bp,useOptimistic:function(n,r){var s=We();return Ue!==null?xp(s,Ue,n,r):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:bu,useCacheRefresh:tm};sm.useEffectEvent=qp;function xu(n,r,s,o){r=n.memoizedState,s=s(o,r),s=s==null?r:v({},r,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var zu={enqueueSetState:function(n,r,s){n=n._reactInternals;var o=$t(),h=fr(o);h.payload=r,s!=null&&(h.callback=s),r=dr(n,h,o),r!==null&&(xt(r,n,o),Ka(r,n,o))},enqueueReplaceState:function(n,r,s){n=n._reactInternals;var o=$t(),h=fr(o);h.tag=1,h.payload=r,s!=null&&(h.callback=s),r=dr(n,h,o),r!==null&&(xt(r,n,o),Ka(r,n,o))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var s=$t(),o=fr(s);
vendor: 12,356 bytes, line 9
9o.tag=2,r!=null&&(o.callback=r),r=dr(n,o,s),r!==null&&(xt(r,n,s),Ka(r,n,s))}};function om(n,r,s,o,h,d,y){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,d,y):r.prototype&&r.prototype.isPureReactComponent?!Pa(s,o)||!Pa(h,d):!0}function lm(n,r,s,o){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(s,o),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(s,o),r.state!==n&&zu.enqueueReplaceState(r,r.state,null)}function ii(n,r){var s=r;if("ref"in r){s={};for(var o in r)o!=="ref"&&(s[o]=r[o])}if(n=n.defaultProps){s===r&&(s=v({},s));for(var h in n)s[h]===void 0&&(s[h]=n[h])}return s}function cm(n){mo(n)}function um(n){console.error(n)}function hm(n){mo(n)}function Ho(n,r){try{var s=n.onUncaughtError;s(r.value,{componentStack:r.stack})}catch(o){setTimeout(function(){throw o})}}function fm(n,r,s){try{var o=n.onCaughtError;o(s.value,{componentStack:s.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Du(n,r,s){return s=fr(s),s.tag=3,s.payload={element:null},s.callback=function(){Ho(n,r)},s}function dm(n){return n=fr(n),n.tag=3,n}function pm(n,r,s,o){var h=s.type.getDerivedStateFromError;if(typeof h=="function"){var d=o.value;n.payload=function(){return h(d)},n.callback=function(){fm(r,s,o)}}var y=s.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(n.callback=function(){fm(r,s,o),typeof h!="function"&&(br===null?br=new Set([this]):br.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function ww(n,r,s,o,h){if(s.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(r=s.alternate,r!==null&&Ui(r,s,h,!0),s=Ht.current,s!==null){switch(s.tag){case 31:case 13:return Qt===null?Jo():s.alternate===null&&Je===0&&(Je=3),s.flags&=-257,s.flags|=65536,s.lanes=h,o===To?s.flags|=16384:(r=s.updateQueue,r===null?s.updateQueue=new Set([o]):r.add(o),ih(n,o,h)),!1;case 22:return s.flags|=65536,o===To?s.flags|=16384:(r=s.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([o])},s.updateQueue=r):(s=r.retryQueue,s===null?r.retryQueue=new Set([o]):s.add(o)),ih(n,o,h)),!1}throw Error(a(435,s.tag))}return ih(n,o,h),Jo(),!1}if(Ae)return r=Ht.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=h,o!==Xc&&(n=Error(a(422),{cause:o}),$a(Kt(n,s)))):(o!==Xc&&(r=Error(a(423),{cause:o}),$a(Kt(r,s))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,o=Kt(o,s),h=Du(n.stateNode,o,h),cu(n,h),Je!==4&&(Je=2)),!1;var d=Error(a(520),{cause:o});if(d=Kt(d,s),os===null?os=[d]:os.push(d),Je!==4&&(Je=2),r===null)return!0;o=Kt(o,s),s=r;do{switch(s.tag){case 3:return s.flags|=65536,n=h&-h,s.lanes|=n,n=Du(s.stateNode,o,n),cu(s,n),!1;case 1:if(r=s.type,d=s.stateNode,(s.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(br===null||!br.has(d))))return s.flags|=65536,h&=-h,s.lanes|=h,h=dm(h),pm(h,n,s,o),cu(s,h),!1}s=s.return}while(s!==null);return!1}var Lu=Error(a(461)),nt=!1;function mt(n,r,s,o){r.child=n===null?yp(r,null,s,o):ni(r,n.child,s,o)}function mm(n,r,s,o,h){s=s.render;var d=r.ref;if("ref"in o){var y={};for(var w in o)w!=="ref"&&(y[w]=o[w])}else y=o;return Xr(r),o=mu(n,r,s,y,d,h),w=gu(),n!==null&&!nt?(vu(n,r,h),Mn(n,r,h)):(Ae&&w&&Jc(r),r.flags|=1,mt(n,r,o,h),r.child)}function gm(n,r,s,o,h){if(n===null){var d=s.type;return typeof d=="function"&&!Kc(d)&&d.defaultProps===void 0&&s.compare===null?(r.tag=15,r.type=d,vm(n,r,d,o,h)):(n=bo(s.type,null,o,r,r.mode,h),n.ref=r.ref,n.return=r,r.child=n)}if(d=n.child,!$u(n,h)){var y=d.memoizedProps;if(s=s.compare,s=s!==null?s:Pa,s(y,o)&&n.ref===r.ref)return Mn(n,r,h)}return r.flags|=1,n=Cn(d,o),n.ref=r.ref,n.return=r,r.child=n}function vm(n,r,s,o,h){if(n!==null){var d=n.memoizedProps;if(Pa(d,o)&&n.ref===r.ref)if(nt=!1,r.pendingProps=o=d,$u(n,h))(n.flags&131072)!==0&&(nt=!0);else return r.lanes=n.lanes,Mn(n,r,h)}return Nu(n,r,s,o,h)}function ym(n,r,s,o){var h=o.children,d=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(d=d!==null?d.baseLanes|s:s,n!==null){for(o=r.child=n.child,h=0;o!==null;)h=h|o.lanes|o.childLanes,o=o.sibling;o=h&~d}else o=0,r.child=null;return bm(n,r,d,s,o)}if((s&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&Eo(r,d!==null?d.cachePool:null),d!==null?wp(r,d):hu(),Sp(r);else return o=r.lanes=536870912,bm(n,r,d!==null?d.baseLanes|s:s,s,o)}else d!==null?(Eo(r,d.cachePool),wp(r,d),mr(),r.memoizedState=null):(n!==null&&Eo(r,null),hu(),mr());return mt(n,r,h,s),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 bm(n,r,s,o,h){var d=au();return d=d===null?null:{parent:et._currentValue,pool:d},r.memoizedState={baseLanes:s,cachePool:d},n!==null&&Eo(r,null),hu(),Sp(r),n!==null&&Ui(n,r,o,!0),r.childLanes=h,null}function Po(n,r){return r=Io({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function _m(n,r,s){return ni(r,n.child,null,s),n=Po(r,r.pendingProps),n.flags|=2,Pt(r),r.memoizedState=null,n}function Sw(n,r,s){var o=r.pendingProps,h=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(Ae){if(o.mode==="hidden")return n=Po(r,o),r.lanes=536870912,es(null,n);if(du(r),(n=Ge)?(n=zg(n,Jt),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:or!==null?{id:pn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},s=rp(n),s.return=r,r.child=s,dt=r,Ge=null)):n=null,n===null)throw cr(r);return r.lanes=536870912,null}return Po(r,o)}var d=n.memoizedState;if(d!==null){var y=d.dehydrated;if(du(r),h)if(r.flags&256)r.flags&=-257,r=_m(n,r,s);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(a(558));else if(nt||Ui(n,r,s,!1),h=(s&n.childLanes)!==0,nt||h){if(o=Ie,o!==null&&(y=ud(o,s),y!==0&&y!==d.retryLane))throw d.retryLane=y,Fr(n,y),xt(o,n,y),Lu;Jo(),r=_m(n,r,s)}else n=d.treeContext,Ge=Xt(y.nextSibling),dt=r,Ae=!0,lr=null,Jt=!1,n!==null&&sp(r,n),r=Po(r,o),r.flags|=4096;return r}return n=Cn(n.child,{mode:o.mode,children:o.children}),n.ref=r.ref,r.child=n,n.return=r,n}function Bo(n,r){var s=r.ref;if(s===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(a(284));(n===null||n.ref!==s)&&(r.flags|=4194816)}}function Nu(n,r,s,o,h){return Xr(r),s=mu(n,r,s,o,void 0,h),o=gu(),n!==null&&!nt?(vu(n,r,h),Mn(n,r,h)):(Ae&&o&&Jc(r),r.flags|=1,mt(n,r,s,h),r.child)}function wm(n,r,s,o,h,d){return Xr(r),r.updateQueue=null,s=kp(r,o,s,h),Ep(n),o=gu(),n!==null&&!nt?(vu(n,r,d),Mn(n,r,d)):(Ae&&o&&Jc(r),r.flags|=1,mt(n,r,s,d),r.child)}function Sm(n,r,s,o,h){if(Xr(r),r.stateNode===null){var d=Di,y=s.contextType;typeof y=="object"&&y!==null&&(d=pt(y)),d=new s(o,d),r.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=zu,r.stateNode=d,d._reactInternals=r,d=r.stateNode,d.props=o,d.state=r.memoizedState,d.refs={},ou(r),y=s.contextType,d.context=typeof y=="object"&&y!==null?pt(y):Di,d.state=r.memoizedState,y=s.getDerivedStateFromProps,typeof y=="function"&&(xu(r,s,y,o),d.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&zu.enqueueReplaceState(d,d.state,null),Ya(r,o,d,h),Fa(),d.state=r.memoizedState),typeof d.componentDidMount=="function"&&(r.flags|=4194308),o=!0}else if(n===null){d=r.stateNode;var w=r.memoizedProps,k=ii(s,w);d.props=k;var L=d.context,B=s.contextType;y=Di,typeof B=="object"&&B!==null&&(y=pt(B));var V=s.getDerivedStateFromProps;B=typeof V=="function"||typeof d.getSnapshotBeforeUpdate=="function",w=r.pendingProps!==w,B||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(w||L!==y)&&lm(r,d,o,y),hr=!1;var N=r.memoizedState;d.state=N,Ya(r,o,d,h),Fa(),L=r.memoizedState,w||N!==L||hr?(typeof V=="function"&&(xu(r,s,V,o),L=r.memoizedState),(k=hr||om(r,s,k,o,N,L,y))?(B||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(r.flags|=4194308)):(typeof d.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=o,r.memoizedState=L),d.props=o,d.state=L,d.context=y,o=k):(typeof d.componentDidMount=="function"&&(r.flags|=4194308),o=!1)}else{d=r.stateNode,lu(n,r),y=r.memoizedProps,B=ii(s,y),d.props=B,V=r.pendingProps,N=d.context,L=s.contextType,k=Di,typeof L=="object"&&L!==null&&(k=pt(L)),w=s.getDerivedStateFromProps,(L=typeof w=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==V||N!==k)&&lm(r,d,o,k),hr=!1,N=r.memoizedState,d.state=N,Ya(r,o,d,h),Fa();var U=r.memoizedState;y!==V||N!==U||hr||n!==null&&n.dependencies!==null&&wo(n.dependencies)?(typeof w=="function"&&(xu(r,s,w,o),U=r.memoizedState),(B=hr||om(r,s,B,o,N,U,k)||n!==null&&n.dependencies!==null&&wo(n.dependencies))?(L||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,U,k),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,U,k)),typeof d.componentDidUpdate=="function"&&(r.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===n.memoizedProps&&N===n.memoizedState||(r.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===n.memoizedProps&&N===n.memoizedState||(r.flags|=1024),r.memoizedProps=o,r.memoizedState=U),d.props=o,d.state=U,d.context=k,o=B):(typeof d.componentDidUpdate!="function"||y===n.memoizedProps&&N===n.memoizedState||(r.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===n.memoizedProps&&N===n.memoizedState||(r.flags|=1024),o=!1)}return d=o,Bo(n,r),o=(r.flags&128)!==0,d||o?(d=r.stateNode,s=o&&typeof s.getDerivedStateFromError!="function"?null:d.render(),r.flags|=1,n!==null&&o?(r.child=ni(r,n.child,null,h),r.child=ni(r,null,s,h)):mt(n,r,s,h),r.memoizedState=d.state,n=r.child):n=Mn(n,r,h),n}function Em(n,r,s,o){return Jr(),r.flags|=256,mt(n,r,s,o),r.child}var Mu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uu(n){return{baseLanes:n,cachePool:fp()}}function Hu(n,r,s){return n=n!==null?n.childLanes&~s:0,r&&(n|=It),n}function km(n,r,s){var o=r.pendingProps,h=!1,d=(r.flags&128)!==0,y;if((y=d)||(y=n!==null&&n.memoizedState===null?!1:(Xe.current&2)!==0),y&&(h=!0,r.flags&=-129),y=(r.flags&32)!==0,r.flags&=-33,n===null){if(Ae){if(h?pr(r):mr(),(n=Ge)?(n=zg(n,Jt),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:or!==null?{id:pn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},s=rp(n),s.return=r,r.child=s,dt=r,Ge=null)):n=null,n===null)throw cr(r);return _h(n)?r.lanes=32:r.lanes=536870912,null}var w=o.children;return o=o.fallback,h?(mr(),h=r.mode,w=Io({mode:"hidden",children:w},h),o=Yr(o,h,s,null),w.return=r,o.return=r,w.sibling=o,r.child=w,o=r.child,o.memoizedState=Uu(s),o.childLanes=Hu(n,y,s),r.memoizedState=Mu,es(null,o)):(pr(r),Pu(r,w))}var k=n.memoizedState;if(k!==null&&(w=k.dehydrated,w!==null)){if(d)r.flags&256?(pr(r),r.flags&=-257,r=Bu(n,r,s)):r.memoizedState!==null?(mr(),r.child=n.child,r.flags|=128,r=null):(mr(),w=o.fallback,h=r.mode,o=Io({mode:"visible",children:o.children},h),w=Yr(w,h,s,null),w.flags|=2,o.return=r,w.return=r,o.sibling=w,r.child=o,ni(r,n.child,null,s),o=r.child,o.memoizedState=Uu(s),o.childLanes=Hu(n,y,s),r.memoizedState=Mu,r=es(null,o));else if(pr(r),_h(w)){if(y=w.nextSibling&&w.nextSibling.dataset,y)var L=y.dgst;y=L,o=Error(a(419)),o.stack="",o.digest=y,$a({value:o,source:null,stack:null}),r=Bu(n,r,s)}
vendor: 5,534 bytes, line 9
9else if(nt||Ui(n,r,s,!1),y=(s&n.childLanes)!==0,nt||y){if(y=Ie,y!==null&&(o=ud(y,s),o!==0&&o!==k.retryLane))throw k.retryLane=o,Fr(n,o),xt(y,n,o),Lu;bh(w)||Jo(),r=Bu(n,r,s)}else bh(w)?(r.flags|=192,r.child=n.child,r=null):(n=k.treeContext,Ge=Xt(w.nextSibling),dt=r,Ae=!0,lr=null,Jt=!1,n!==null&&sp(r,n),r=Pu(r,o.children),r.flags|=4096);return r}return h?(mr(),w=o.fallback,h=r.mode,k=n.child,L=k.sibling,o=Cn(k,{mode:"hidden",children:o.children}),o.subtreeFlags=k.subtreeFlags&65011712,L!==null?w=Cn(L,w):(w=Yr(w,h,s,null),w.flags|=2),w.return=r,o.return=r,o.sibling=w,r.child=o,es(null,o),o=r.child,w=n.child.memoizedState,w===null?w=Uu(s):(h=w.cachePool,h!==null?(k=et._currentValue,h=h.parent!==k?{parent:k,pool:k}:h):h=fp(),w={baseLanes:w.baseLanes|s,cachePool:h}),o.memoizedState=w,o.childLanes=Hu(n,y,s),r.memoizedState=Mu,es(n.child,o)):(pr(r),s=n.child,n=s.sibling,s=Cn(s,{mode:"visible",children:o.children}),s.return=r,s.sibling=null,n!==null&&(y=r.deletions,y===null?(r.deletions=[n],r.flags|=16):y.push(n)),r.child=s,r.memoizedState=null,s)}function Pu(n,r){return r=Io({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function Io(n,r){return n=Ut(22,n,null,r),n.lanes=0,n}function Bu(n,r,s){return ni(r,n.child,null,s),n=Pu(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function Tm(n,r,s){n.lanes|=r;var o=n.alternate;o!==null&&(o.lanes|=r),tu(n.return,r,s)}function Iu(n,r,s,o,h,d){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:o,tail:s,tailMode:h,treeForkCount:d}:(y.isBackwards=r,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=s,y.tailMode=h,y.treeForkCount=d)}function Rm(n,r,s){var o=r.pendingProps,h=o.revealOrder,d=o.tail;o=o.children;var y=Xe.current,w=(y&2)!==0;if(w?(y=y&1|2,r.flags|=128):y&=1,F(Xe,y),mt(n,r,o,s),o=Ae?Ia:0,!w&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Tm(n,s,r);else if(n.tag===19)Tm(n,s,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(h){case"forwards":for(s=r.child,h=null;s!==null;)n=s.alternate,n!==null&&jo(n)===null&&(h=s),s=s.sibling;s=h,s===null?(h=r.child,r.child=null):(h=s.sibling,s.sibling=null),Iu(r,!1,h,s,d,o);break;case"backwards":case"unstable_legacy-backwards":for(s=null,h=r.child,r.child=null;h!==null;){if(n=h.alternate,n!==null&&jo(n)===null){r.child=h;break}n=h.sibling,h.sibling=s,s=h,h=n}Iu(r,!0,s,null,d,o);break;case"together":Iu(r,!1,null,null,void 0,o);break;default:r.memoizedState=null}return r.child}function Mn(n,r,s){if(n!==null&&(r.dependencies=n.dependencies),yr|=r.lanes,(s&r.childLanes)===0)if(n!==null){if(Ui(n,r,s,!1),(s&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(a(153));if(r.child!==null){for(n=r.child,s=Cn(n,n.pendingProps),r.child=s,s.return=r;n.sibling!==null;)n=n.sibling,s=s.sibling=Cn(n,n.pendingProps),s.return=r;s.sibling=null}return r.child}function $u(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&wo(n)))}function Ew(n,r,s){switch(r.tag){case 3:De(r,r.stateNode.containerInfo),ur(r,et,n.memoizedState.cache),Jr();break;case 27:case 5:dn(r);break;case 4:De(r,r.stateNode.containerInfo);break;case 10:ur(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,du(r),null;break;case 13:var o=r.memoizedState;if(o!==null)return o.dehydrated!==null?(pr(r),r.flags|=128,null):(s&r.child.childLanes)!==0?km(n,r,s):(pr(r),n=Mn(n,r,s),n!==null?n.sibling:null);pr(r);break;case 19:var h=(n.flags&128)!==0;if(o=(s&r.childLanes)!==0,o||(Ui(n,r,s,!1),o=(s&r.childLanes)!==0),h){if(o)return Rm(n,r,s);r.flags|=128}if(h=r.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),F(Xe,Xe.current),o)break;return null;case 22:return r.lanes=0,ym(n,r,s,r.pendingProps);case 24:ur(r,et,n.memoizedState.cache)}return Mn(n,r,s)}function Am(n,r,s){if(n!==null)if(n.memoizedProps!==r.pendingProps)nt=!0;else{if(!$u(n,s)&&(r.flags&128)===0)return nt=!1,Ew(n,r,s);nt=(n.flags&131072)!==0}else nt=!1,Ae&&(r.flags&1048576)!==0&&ap(r,Ia,r.index);switch(r.lanes=0,r.tag){case 16:e:{var o=r.pendingProps;if(n=ei(r.elementType),r.type=n,typeof n=="function")Kc(n)?(o=ii(n,o),r.tag=1,r=Sm(null,r,n,o,s)):(r.tag=0,r=Nu(null,r,n,o,s));else{if(n!=null){var h=n.$$typeof;if(h===I){r.tag=11,r=mm(null,r,n,o,s);break e}else if(h===z){r.tag=14,r=gm(null,r,n,o,s);break e}}throw r=ge(n)||n,Error(a(306,r,""))}}return r;case 0:return Nu(n,r,r.type,r.pendingProps,s);case 1:return o=r.type,h=ii(o,r.pendingProps),Sm(n,r,o,h,s);case 3:e:{if(De(r,r.stateNode.containerInfo),n===null)throw Error(a(387));o=r.pendingProps;var d=r.memoizedState;h=d.element,lu(n,r),Ya(r,o,null,s);var y=r.memoizedState;if(o=y.cache,ur(r,et,o),o!==d.cache&&nu(r,[et],s,!0),Fa(),o=y.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:y.cache},r.updateQueue.baseState=d,r.memoizedState=d,r.flags&256){r=Em(n,r,o,s);break e}else if(o!==h){h=Kt(Error(a(424)),r),$a(h),r=Em(n,r,o,s);break e}else for(n=r.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,Ge=Xt(n.firstChild),dt=r,Ae=!0,lr=null,Jt=!0,s=yp(r,null,o,s),r.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Jr(),o===h){r=Mn(n,r,s);break e}mt(n,r,o,s)}r=r.child}return r;case 26:return Bo(n,r),n===null?(s=Hg(r.type,null,r.pendingProps,null))?r.memoizedState=s:Ae||(s=r.type,n=r.pen
vendor: 3,650 bytes, line 9
9dingProps,o=rl(we.current).createElement(s),o[ft]=r,o[Tt]=n,gt(o,s,n),lt(o),r.stateNode=o):r.memoizedState=Hg(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return dn(r),n===null&&Ae&&(o=r.stateNode=Ng(r.type,r.pendingProps,we.current),dt=r,Jt=!0,h=Ge,Er(r.type)?(wh=h,Ge=Xt(o.firstChild)):Ge=h),mt(n,r,r.pendingProps.children,s),Bo(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&Ae&&((h=o=Ge)&&(o=Ww(o,r.type,r.pendingProps,Jt),o!==null?(r.stateNode=o,dt=r,Ge=Xt(o.firstChild),Jt=!1,h=!0):h=!1),h||cr(r)),dn(r),h=r.type,d=r.pendingProps,y=n!==null?n.memoizedProps:null,o=d.children,gh(h,d)?o=null:y!==null&&gh(h,y)&&(r.flags|=32),r.memoizedState!==null&&(h=mu(n,r,pw,null,null,s),ms._currentValue=h),Bo(n,r),mt(n,r,o,s),r.child;case 6:return n===null&&Ae&&((n=s=Ge)&&(s=eS(s,r.pendingProps,Jt),s!==null?(r.stateNode=s,dt=r,Ge=null,n=!0):n=!1),n||cr(r)),null;case 13:return km(n,r,s);case 4:return De(r,r.stateNode.containerInfo),o=r.pendingProps,n===null?r.child=ni(r,null,o,s):mt(n,r,o,s),r.child;case 11:return mm(n,r,r.type,r.pendingProps,s);case 7:return mt(n,r,r.pendingProps,s),r.child;case 8:return mt(n,r,r.pendingProps.children,s),r.child;case 12:return mt(n,r,r.pendingProps.children,s),r.child;case 10:return o=r.pendingProps,ur(r,r.type,o.value),mt(n,r,o.children,s),r.child;case 9:return h=r.type._context,o=r.pendingProps.children,Xr(r),h=pt(h),o=o(h),r.flags|=1,mt(n,r,o,s),r.child;case 14:return gm(n,r,r.type,r.pendingProps,s);case 15:return vm(n,r,r.type,r.pendingProps,s);case 19:return Rm(n,r,s);case 31:return Sw(n,r,s);case 22:return ym(n,r,s,r.pendingProps);case 24:return Xr(r),o=pt(et),n===null?(h=au(),h===null&&(h=Ie,d=ru(),h.pooledCache=d,d.refCount++,d!==null&&(h.pooledCacheLanes|=s),h=d),r.memoizedState={parent:o,cache:h},ou(r),ur(r,et,h)):((n.lanes&s)!==0&&(lu(n,r),Ya(r,null,null,s),Fa()),h=n.memoizedState,d=r.memoizedState,h.parent!==o?(h={parent:o,cache:o},r.memoizedState=h,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=h),ur(r,et,o)):(o=d.cache,ur(r,et,o),o!==h.cache&&nu(r,[et],s,!0))),mt(n,r,r.pendingProps.children,s),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function Un(n){n.flags|=4}function qu(n,r,s,o,h){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(h&335544128)===h)if(n.stateNode.complete)n.flags|=8192;else if(eg())n.flags|=8192;else throw ti=To,su}else n.flags&=-16777217}function Om(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!qg(r))if(eg())n.flags|=8192;else throw ti=To,su}function $o(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?od():536870912,n.lanes|=r,Yi|=r)}function ts(n,r){if(!Ae)switch(n.tailMode){case"hidden":r=n.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:o.sibling=null}}function Ze(n){var r=n.alternate!==null&&n.alternate.child===n.child,s=0,o=0;if(r)for(var h=n.child;h!==null;)s|=h.lanes|h.childLanes,o|=h.subtreeFlags&65011712,o|=h.flags&65011712,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)s|=h.lanes|h.childLanes,o|=h.subtreeFlags,o|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=o,n.childLanes=s,r}function kw(n,r,s){var o=r.pendingProps;switch(Qc(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(r),null;case 1:return Ze(r),null;case 3:return s=r.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Dn(et),$e(),s.pe
vendor: 7,232 bytes, line 9
9ndingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(Mi(r)?Un(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Wc())),Ze(r),null;case 26:var h=r.type,d=r.memoizedState;return n===null?(Un(r),d!==null?(Ze(r),Om(r,d)):(Ze(r),qu(r,h,null,o,s))):d?d!==n.memoizedState?(Un(r),Ze(r),Om(r,d)):(Ze(r),r.flags&=-16777217):(n=n.memoizedProps,n!==o&&Un(r),Ze(r),qu(r,h,n,o,s)),null;case 27:if(Ir(r),s=we.current,h=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==o&&Un(r);else{if(!o){if(r.stateNode===null)throw Error(a(166));return Ze(r),null}n=ae.current,Mi(r)?op(r):(n=Ng(h,o,s),r.stateNode=n,Un(r))}return Ze(r),null;case 5:if(Ir(r),h=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==o&&Un(r);else{if(!o){if(r.stateNode===null)throw Error(a(166));return Ze(r),null}if(d=ae.current,Mi(r))op(r);else{var y=rl(we.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?d.multiple=!0:o.size&&(d.size=o.size);break;default:d=typeof o.is=="string"?y.createElement(h,{is:o.is}):y.createElement(h)}}d[ft]=r,d[Tt]=o;e:for(y=r.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===r)break e;for(;y.sibling===null;){if(y.return===null||y.return===r)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}r.stateNode=d;e:switch(gt(d,h,o),h){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 Ze(r),qu(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,s),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==o&&Un(r);else{if(typeof o!="string"&&r.stateNode===null)throw Error(a(166));if(n=we.current,Mi(r)){if(n=r.stateNode,s=r.memoizedProps,o=null,h=dt,h!==null)switch(h.tag){case 27:case 5:o=h.memoizedProps}n[ft]=r,n=!!(n.nodeValue===s||o!==null&&o.suppressHydrationWarning===!0||kg(n.nodeValue,s)),n||cr(r,!0)}else n=rl(n).createTextNode(o),n[ft]=r,r.stateNode=n}return Ze(r),null;case 31:if(s=r.memoizedState,n===null||n.memoizedState!==null){if(o=Mi(r),s!==null){if(n===null){if(!o)throw Error(a(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(557));n[ft]=r}else Jr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Ze(r),n=!1}else s=Wc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=s),n=!0;if(!n)return r.flags&256?(Pt(r),r):(Pt(r),null);if((r.flags&128)!==0)throw Error(a(558))}return Ze(r),null;case 13:if(o=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=Mi(r),o!==null&&o.dehydrated!==null){if(n===null){if(!h)throw Error(a(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(317));h[ft]=r}else Jr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Ze(r),h=!1}else h=Wc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return r.flags&256?(Pt(r),r):(Pt(r),null)}return Pt(r),(r.flags&128)!==0?(r.lanes=s,r):(s=o!==null,n=n!==null&&n.memoizedState!==null,s&&(o=r.child,h=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(h=o.alternate.memoizedState.cachePool.pool),d=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==h&&(o.flags|=2048)),s!==n&&s&&(r.child.flags|=8192),$o(r,r.updateQueue),Ze(r),null);case 4:return $e(),n===null&&hh(r.stateNode.containerInfo),Ze(r),null;case 10:return Dn(r.type),Ze(r),null;case 19:if(q(Xe),o=r.memoizedState,o===null)return Ze(r),null;if(h=(r.flags&128)!==0,d=o.rendering,d===null)if(h)ts(o,!1);else{if(Je!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(d=jo(n),d!==null){for(r.flags|=128,ts(o,!1),n=d.updateQueue,r.updateQueue=n,$o(r,n),r.subtreeFlags=0,n=s,s=r.child;s!==null;)np(s,n),s=s.sibling;return F(Xe,Xe.current&1|2),Ae&&xn(r,o.treeForkCount),r.child}n=n.sibling}o.tail!==null&&Dt()>Ko&&(r.flags|=128,h=!0,ts(o,!1),r.lanes=4194304)}else{if(!h)if(n=jo(d),n!==null){if(r.flags|=128,h=!0,n=n.updateQueue,r.updateQueue=n,$o(r,n),ts(o,!0),o.tail===null&&o.tailMode==="hidden"&&!d.alternate&&!Ae)return Ze(r),null}else 2*Dt()-o.renderingStartTime>Ko&&s!==536870912&&(r.flags|=128,h=!0,ts(o,!1),r.lanes=4194304);o.isBackwards?(d.sibling=r.child,r.child=d):(n=o.last,n!==null?n.sibling=d:r.child=d,o.last=d)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=Dt(),n.sibling=null,s=Xe.current,F(Xe,h?s&1|2:s&1),Ae&&xn(r,o.treeForkCount),n):(Ze(r),null);case 22:case 23:return Pt(r),fu(),o=r.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(r.flags|=8192):o&&(r.flags|=8192),o?(s&536870912)!==0&&(r.flags&128)===0&&(Ze(r),r.subtreeFlags&6&&(r.flags|=8192)):Ze(r),s=r.updateQueue,s!==null&&$o(r,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==s&&(r.flags|=2048),n!==null&&q(Wr),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),Dn(et),Ze(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function Tw(n,r){switch(Qc(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return Dn(et),$e(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return Ir(r),null;case 31:if(r.memoizedState!==null){if(Pt(r),r.alternate===null)throw Error(a(340));Jr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(Pt(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(a(340));Jr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return q(Xe),null;case 4:return $e(),null;case 10:return Dn(r.type),null;case 22:case 23:return Pt(r),fu(),n!==null&&q(Wr),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return Dn(et),null;case 25:return null;default:return null}}function jm(n,r){switch(Qc(r),r.tag){case 3:Dn(et),$e();break;case 26:case 27:case 5:Ir(r);break;case 4:$e();break;case 31:r.memoizedState!==null&&Pt(r);break;case 13:Pt(r);break;case 19:q(Xe);break;case 10:Dn(r.type);break;case 22:case 23:Pt(r),fu(),n!==null&&q(Wr);break;case 24:Dn(et)}}function ns(n,r){try{var s=r.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var h=o.next;s=h;do{if((s.tag&n)===n){o=void 0;var d=s.create,y=s.inst;o=d(),y.destroy=o}s=s.next}while(s!==h)}}catch(w){Me(r,r.return,w)}}function gr(n,r,s){try{var o=r.updateQueue,h=o!==null?o.lastEffect:null;if(h!==null){var d=h.next;o=d;do{if((o.tag&n)===n){var y=o.inst,w=y.destroy;if(w!==void 0){y.destroy=void 0,h=r;var k=s,L=w;
vendor: 20,231 bytes, line 9
9try{L()}catch(B){Me(h,k,B)}}}o=o.next}while(o!==d)}}catch(B){Me(r,r.return,B)}}function Cm(n){var r=n.updateQueue;if(r!==null){var s=n.stateNode;try{_p(r,s)}catch(o){Me(n,n.return,o)}}}function xm(n,r,s){s.props=ii(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(o){Me(n,r,o)}}function rs(n,r){try{var s=n.ref;if(s!==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 s=="function"?n.refCleanup=s(o):s.current=o}}catch(h){Me(n,r,h)}}function gn(n,r){var s=n.ref,o=n.refCleanup;if(s!==null)if(typeof o=="function")try{o()}catch(h){Me(n,r,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(h){Me(n,r,h)}else s.current=null}function zm(n){var r=n.type,s=n.memoizedProps,o=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":s.autoFocus&&o.focus();break e;case"img":s.src?o.src=s.src:s.srcSet&&(o.srcset=s.srcSet)}}catch(h){Me(n,n.return,h)}}function Vu(n,r,s){try{var o=n.stateNode;Kw(o,n.type,s,r),o[Tt]=r}catch(h){Me(n,n.return,h)}}function Dm(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Er(n.type)||n.tag===4}function Gu(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Dm(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&&Er(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 Zu(n,r,s){var o=n.tag;if(o===5||o===6)n=n.stateNode,r?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,r):(r=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,r.appendChild(n),s=s._reactRootContainer,s!=null||r.onclick!==null||(r.onclick=On));else if(o!==4&&(o===27&&Er(n.type)&&(s=n.stateNode,r=null),n=n.child,n!==null))for(Zu(n,r,s),n=n.sibling;n!==null;)Zu(n,r,s),n=n.sibling}function qo(n,r,s){var o=n.tag;if(o===5||o===6)n=n.stateNode,r?s.insertBefore(n,r):s.appendChild(n);else if(o!==4&&(o===27&&Er(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(qo(n,r,s),n=n.sibling;n!==null;)qo(n,r,s),n=n.sibling}function Lm(n){var r=n.stateNode,s=n.memoizedProps;try{for(var o=n.type,h=r.attributes;h.length;)r.removeAttributeNode(h[0]);gt(r,o,s),r[ft]=n,r[Tt]=s}catch(d){Me(n,n.return,d)}}var Hn=!1,rt=!1,Ku=!1,Nm=typeof WeakSet=="function"?WeakSet:Set,ct=null;function Rw(n,r){if(n=n.containerInfo,ph=ul,n=Kd(n),Bc(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var h=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{s.nodeType,d.nodeType}catch{s=null;break e}var y=0,w=-1,k=-1,L=0,B=0,V=n,N=null;t:for(;;){for(var U;V!==s||h!==0&&V.nodeType!==3||(w=y+h),V!==d||o!==0&&V.nodeType!==3||(k=y+o),V.nodeType===3&&(y+=V.nodeValue.length),(U=V.firstChild)!==null;)N=V,V=U;for(;;){if(V===n)break t;if(N===s&&++L===h&&(w=y),N===d&&++B===o&&(k=y),(U=V.nextSibling)!==null)break;V=N,N=V.parentNode}V=U}s=w===-1||k===-1?null:{start:w,end:k}}else s=null}s=s||{start:0,end:0}}else s=null;for(mh={focusedElem:n,selectionRange:s},ul=!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,d=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(s=0;s<n.length;s++)h=n[s],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&d!==null){n=void 0,s=r,h=d.memoizedProps,d=d.memoizedState,o=s.stateNode;try{var ie=ii(s.type,h);n=o.getSnapshotBeforeUpdate(ie,d),o.__reactInternalSnapshotBeforeUpdate=n}catch(pe){Me(s,s.return,pe)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,s=n.nodeType,s===9)yh(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":yh(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(a(163))}if(n=r.sibling,n!==null){n.return=r.return,ct=n;break}ct=r.return}}function Mm(n,r,s){var o=s.flags;switch(s.tag){case 0:case 11:case 15:Bn(n,s),o&4&&ns(5,s);break;case 1:if(Bn(n,s),o&4)if(n=s.stateNode,r===null)try{n.componentDidMount()}catch(y){Me(s,s.return,y)}else{var h=ii(s.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(h,r,n.__reactInternalSnapshotBeforeUpdate)}catch(y){Me(s,s.return,y)}}o&64&&Cm(s),o&512&&rs(s,s.return);break;case 3:if(Bn(n,s),o&64&&(n=s.updateQueue,n!==null)){if(r=null,s.child!==null)switch(s.child.tag){case 27:case 5:r=s.child.stateNode;break;case 1:r=s.child.stateNode}try{_p(n,r)}catch(y){Me(s,s.return,y)}}break;case 27:r===null&&o&4&&Lm(s);case 26:case 5:Bn(n,s),r===null&&o&4&&zm(s),o&512&&rs(s,s.return);break;case 12:Bn(n,s);break;case 31:Bn(n,s),o&4&&Pm(n,s);break;case 13:Bn(n,s),o&4&&Bm(n,s),o&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=Nw.bind(null,s),tS(n,s))));break;case 22:if(o=s.memoizedState!==null||Hn,!o){r=r!==null&&r.memoizedState!==null||rt,h=Hn;var d=rt;Hn=o,(rt=r)&&!d?In(n,s,(s.subtreeFlags&8772)!==0):Bn(n,s),Hn=h,rt=d}break;case 30:break;default:Bn(n,s)}}function Um(n){var r=n.alternate;r!==null&&(n.alternate=null,Um(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&Ec(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 Ke=null,At=!1;function Pn(n,r,s){for(s=s.child;s!==null;)Hm(n,r,s),s=s.sibling}function Hm(n,r,s){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(Aa,s)}catch{}switch(s.tag){case 26:rt||gn(s,r),Pn(n,r,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:rt||gn(s,r);var o=Ke,h=At;Er(s.type)&&(Ke=s.stateNode,At=!1),Pn(n,r,s),fs(s.stateNode),Ke=o,At=h;break;case 5:rt||gn(s,r);case 6:if(o=Ke,h=At,Ke=null,Pn(n,r,s),Ke=o,At=h,Ke!==null)if(At)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(s.stateNode)}catch(d){Me(s,r,d)}else try{Ke.removeChild(s.stateNode)}catch(d){Me(s,r,d)}break;case 18:Ke!==null&&(At?(n=Ke,Cg(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),ra(n)):Cg(Ke,s.stateNode));break;case 4:o=Ke,h=At,Ke=s.stateNode.containerInfo,At=!0,Pn(n,r,s),Ke=o,At=h;break;case 0:case 11:case 14:case 15:gr(2,s,r),rt||gr(4,s,r),Pn(n,r,s);break;case 1:rt||(gn(s,r),o=s.stateNode,typeof o.componentWillUnmount=="function"&&xm(s,r,o)),Pn(n,r,s);break;case 21:Pn(n,r,s);break;case 22:rt=(o=rt)||s.memoizedState!==null,Pn(n,r,s),rt=o;break;default:Pn(n,r,s)}}function Pm(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{ra(n)}catch(s){Me(r,r.return,s)}}}function Bm(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ra(n)}catch(s){Me(r,r.return,s)}}function Aw(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new Nm),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new Nm),r;default:throw Error(a(435,n.tag))}}function Vo(n,r){var s=Aw(n);r.forEach(function(o){if(!s.has(o)){s.add(o);var h=Mw.bind(null,n,o);o.then(h,h)}})}function Ot(n,r){var s=r.deletions;if(s!==null)for(var o=0;o<s.length;o++){var h=s[o],d=n,y=r,w=y;e:for(;w!==null;){switch(w.tag){case 27:if(Er(w.type)){Ke=w.stateNode,At=!1;break e}break;case 5:Ke=w.stateNode,At=!1;break e;case 3:case 4:Ke=w.stateNode.containerInfo,At=!0;break e}w=w.return}if(Ke===null)throw Error(a(160));Hm(d,y,h),Ke=null,At=!1,d=h.alternate,d!==null&&(d.return=null),h.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Im(r,n),r=r.sibling}var nn=null;function Im(n,r){var s=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Ot(r,n),jt(n),o&4&&(gr(3,n,n.return),ns(3,n),gr(5,n,n.return));break;case 1:Ot(r,n),jt(n),o&512&&(rt||s===null||gn(s,s.return)),o&64&&Hn&&(n=n.updateQueue,n!==null&&(o=n.callbacks,o!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?o:s.concat(o))));break;case 26:var h=nn;if(Ot(r,n),jt(n),o&512&&(rt||s===null||gn(s,s.return)),o&4){var d=s!==null?s.memoizedState:null;if(o=n.memoizedState,s===null)if(o===null)if(n.stateNode===null){e:{o=n.type,s=n.memoizedProps,h=h.ownerDocument||h;t:switch(o){case"title":d=h.getElementsByTagName("title")[0],(!d||d[Ca]||d[ft]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=h.createElement(o),h.head.insertBefore(d,h.querySelector("head > title"))),gt(d,o,s),d[ft]=n,lt(d),o=d;break e;case"link":var y=Ig("link","href",h).get(o+(s.href||""));if(y){for(var w=0;w<y.length;w++)if(d=y[w],d.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&d.getAttribute("rel")===(s.rel==null?null:s.rel)&&d.getAttribute("title")===(s.title==null?null:s.title)&&d.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){y.splice(w,1);break t}}d=h.createElement(o),gt(d,o,s),h.head.appendChild(d);break;case"meta":if(y=Ig("meta","content",h).get(o+(s.content||""))){for(w=0;w<y.length;w++)if(d=y[w],d.getAttribute("content")===(s.content==null?null:""+s.content)&&d.getAttribute("name")===(s.name==null?null:s.name)&&d.getAttribute("property")===(s.property==null?null:s.property)&&d.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&d.getAttribute("charset")===(s.charSet==null?null:s.charSet)){y.splice(w,1);break t}}d=h.createElement(o),gt(d,o,s),h.head.appendChild(d);break;default:throw Error(a(468,o))}d[ft]=n,lt(d),o=d}n.stateNode=o}else $g(h,n.type,n.stateNode);else n.stateNode=Bg(h,o,n.memoizedProps);else d!==o?(d===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):d.count--,o===null?$g(h,n.type,n.stateNode):Bg(h,o,n.memoizedProps)):o===null&&n.stateNode!==null&&Vu(n,n.memoizedProps,s.memoizedProps)}break;case 27:Ot(r,n),jt(n),o&512&&(rt||s===null||gn(s,s.return)),s!==null&&o&4&&Vu(n,n.memoizedProps,s.memoizedProps);break;case 5:if(Ot(r,n),jt(n),o&512&&(rt||s===null||gn(s,s.return)),n.flags&32){h=n.stateNode;try{Ri(h,"")}catch(ie){Me(n,n.return,ie)}}o&4&&n.stateNode!=null&&(h=n.memoizedProps,Vu(n,h,s!==null?s.memoizedProps:h)),o&1024&&(Ku=!0);break;case 6:if(Ot(r,n),jt(n),o&4){if(n.stateNode===null)throw Error(a(162));o=n.memoizedProps,s=n.stateNode;try{s.nodeValue=o}catch(ie){Me(n,n.return,ie)}}break;case 3:if(sl=null,h=nn,nn=il(r.containerInfo),Ot(r,n),nn=h,jt(n),o&4&&s!==null&&s.memoizedState.isDehydrated)try{ra(r.containerInfo)}catch(ie){Me(n,n.return,ie)}Ku&&(Ku=!1,$m(n));break;case 4:o=nn,nn=il(n.stateNode.containerInfo),Ot(r,n),jt(n),nn=o;break;case 12:Ot(r,n),jt(n);break;case 31:Ot(r,n),jt(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Vo(n,o)));break;case 13:Ot(r,n),jt(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Zo=Dt()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Vo(n,o)));break;case 22:h=n.memoizedState!==null;var k=s!==null&&s.memoizedState!==null,L=Hn,B=rt;if(Hn=L||h,rt=B||k,Ot(r,n),rt=B,Hn=L,jt(n),o&8192)e:for(r=n.stateNode,r._visibility=h?r._visibility&-2:r._visibility|1,h&&(s===null||k||Hn||rt||ai(n)),s=null,r=n;;){if(r.tag===5||r.tag===26){if(s===null){k=s=r;try{if(d=k.stateNode,h)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{w=k.stateNode;var V=k.memoizedProps.style,N=V!=null&&V.hasOwnProperty("display")?V.display:null;w.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(ie){Me(k,k.return,ie)}}}else if(r.tag===6){if(s===null){k=r;try{k.stateNode.nodeValue=h?"":k.memoizedProps}catch(ie){Me(k,k.return,ie)}}}else if(r.tag===18){if(s===null){k=r;try{var U=k.stateNode;h?xg(U,!0):xg(k.stateNode,!1)}catch(ie){Me(k,k.return,ie)}}}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;s===r&&(s=null),r=r.return}s===r&&(s=null),r.sibling.return=r.return,r=r.sibling}o&4&&(o=n.updateQueue,o!==null&&(s=o.retryQueue,s!==null&&(o.retryQueue=null,Vo(n,s))));break;case 19:Ot(r,n),jt(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Vo(n,o)));break;case 30:break;case 21:break;default:Ot(r,n),jt(n)}}function jt(n){var r=n.flags;if(r&2){try{for(var s,o=n.return;o!==null;){if(Dm(o)){s=o;break}o=o.return}if(s==null)throw Error(a(160));switch(s.tag){case 27:var h=s.stateNode,d=Gu(n);qo(n,d,h);break;case 5:var y=s.stateNode;s.flags&32&&(Ri(y,""),s.flags&=-33);var w=Gu(n);qo(n,w,y);break;case 3:case 4:var k=s.stateNode.containerInfo,L=Gu(n);Zu(n,L,k);break;default:throw Error(a(161))}}catch(B){Me(n,n.return,B)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function $m(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;$m(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function Bn(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Mm(n,r.alternate,r),r=r.sibling}function ai(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:gr(4,r,r.return),ai(r);break;case 1:gn(r,r.return);var s=r.stateNode;typeof s.componentWillUnmount=="function"&&xm(r,r.return,s),ai(r);break;case 27:fs(r.stateNode);case 26:case 5:gn(r,r.return),ai(r);break;case 22:r.memoizedState===null&&ai(r);break;case 30:ai(r);break;default:ai(r)}n=n.sibling}}function In(n,r,s){for(s=s&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var o=r.alternate,h=n,d=r,y=d.flags;switch(d.tag){case 0:case 11:case 15:In(h,d,s),ns(4,d);break;case 1:if(In(h,d,s),o=d,h=o.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(L){Me(o,o.return,L)}if(o=d,h=o.updateQueue,h!==null){var w=o.stateNode;try{var k=h.shared.hiddenCallbacks;if(k!==null)for(h.shared.hiddenCallbacks=null,h=0;h<k.length;h++)bp(k[h],w)}catch(L){Me(o,o.return,L)}}s&&y&64&&Cm(d),rs(d,d.return);break;case 27:Lm(d);case 26:case 5:In(h,d,s),s&&o===null&&y&4&&zm(d),rs(d,d.return);break;case 12:In(h,d,s);break;case 31:In(h,d,s),s&&y&4&&Pm(h,d);break;case 13:In(h,d,s),s&&y&4&&Bm(h,d);break;case 22:d.memoizedState===null&&In(h,d,s),rs(d,d.return);break;case 30:break;default:In(h,d,s)}r=r.sibling}}function Fu(n,r){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&qa(s))}function Yu(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&qa(n))}function rn(n,r,s,o){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)qm(n,r,s,o),r=r.sibling}function qm(n,r,s,o){var h=r.flags;switch(r.tag){case 0:case 11:case 15:rn(n,r,s,o),h&2048&&ns(9,r);break;case 1:rn(n,r,s,o);break;case 3:rn(n,r,s,o),h&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&qa(n)));break;case 12:if(h&2048){rn(n,r,s,o),n=r.stateNode;try{var d=r.memoizedProps,y=d.id,w=d.onPostCommit;typeof w=="function"&&w(y,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(k){Me(r,r.return,k)}}else rn(n,r,s,o);break;case 31:rn(n,r,s,o);break;case 13:rn(n,r,s,o);break;case 23:break;case 22:d=r.stateNode,y=r.alternate,r.memoizedState!==null?d._visibility&2?rn(n,r,s,o):is(n,r):d._visibility&2?rn(n,r,s,o):(d._visibility|=2,Zi(n,r,s,o,(r.subtreeFlags&10256)!==0||!1)),h&2048&&Fu(y,r);break;case 24:rn(n,r,s,o),h&2048&&Yu(r.alternate,r);break;default:rn(n,r,s,o)}}function Zi(n,r,s,o,h){for(h=h&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var d=n,y=r,w=s,k=o,L=y.flags;switch(y.tag){case 0:case 11:case 15:Zi(d,y,w,k,h),ns(8,y);break;case 23:break;case 22:var B=y.stateNode;y.memoizedState!==null?B._visibility&2?Zi(d,y,w,k,h):is(d,y):(B._visibility|=2,Zi(d,y,w,k,h)),h&&L&2048&&Fu(y.alternate,y);break;case 24:Zi(d,y,w,k,h),h&&L&2048&&Yu(y.alternate,y);break;default:Zi(d,y,w,k,h)}r=r.sibling}}function is(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var s=n,o=r,h=o.flags;switch(o.tag){case 22:is(s,o),h&2048&&Fu(o.alternate,o);break;case 24:is(s,o),h&2048&&Yu(o.alternate,o);break;default:is(s,o)}r=r.sibling}}var as=8192;function Ki(n,r,s){if(n.subtreeFlags&as)for(n=n.child;n!==null;)Vm(n,r,s),n=n.sibling}function Vm(n,r,s){switch(n.tag){case 26:Ki(n,r,s),n.flags&as&&n.memoizedState!==null&&dS(s,nn,n.memoizedState,n.memoizedProps);break;case 5:Ki(n,r,s);break;case 3:case 4:var o=nn;nn=il(n.stateNode.containerInfo),Ki(n,r,s),nn=o;break;case 22:n.memoizedState===null&&(o=n.alternate,o!==null&&o.memoizedState!==null?(o=as,as=16777216,Ki(n,r,s),as=o):Ki(n,r,s));break;default:Ki(n,r,s)}}function Gm(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 s=0;s<r.length;s++){var o=r[s];ct=o,Km(o,n)}Gm(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Zm(n),n=n.sibling}function Zm(n){switch(n.tag){case 0:case 11:case 15:ss(n),n.flags&2048&&gr(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,Go(n)):ss(n);break;default:ss(n)}}function Go(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var s=0;s<r.length;s++){var o=r[s];ct=o,Km(o,n)}Gm(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:gr(8,r,r.return),Go(r);break;case 22:s=r.stateNode,s._visibility&2&&(s._visibility&=-3,Go(r));break;default:Go(r)}n=n.sibling}}function Km(n,r){for(;ct!==null;){var s=ct;switch(s.tag){case 0:case 11:case 15:gr(8,s,r);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var o=s.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:qa(s.memoizedState.cache)}if(o=s.child,o!==null)o.return=s,ct=o;else e:for(s=n;ct!==null;){o=ct;var h=o.sibling,d=o.return;if(Um(o),o===s){ct=null;break e}if(h!==null){h.return=d,ct=h;break e}ct=d}}}var Ow={getCacheForType:function(n){var r=pt(et),s=r.data.get(n);return s===void 0&&(s=n(),r.data.set(n,s)),s},cacheSignal:function(){return pt(et).controller.signal}},jw=typeof WeakMap=="function"?WeakMap:Map,Le=0,Ie=null,Se=null,Te=0,Ne=0,Bt=null,vr=!1,Fi=!1,Ju=!1,$n=0,Je=0,yr=0,si=0,Qu=0,It=0,Yi=0,os=null,Ct=null,Xu=!1,Zo=0,Fm=0,Ko=1/0,Fo=null,br=null,st=0,_r=null,Ji=null,qn=0,Wu=0,eh=null,Ym=null,ls=0,th=null;function $t(){return(Le&2)!==0&&Te!==0?Te&-Te:M.T!==null?oh():hd()}function Jm(){if(It===0)if((Te&536870912)===0||Ae){var n=to;to<<=1,(to&3932160)===0&&(to=262144),It=n}else It=536870912;return n=Ht.current,n!==null&&(n.flags|=32),It}function xt(n,r,s){(n===Ie&&(Ne===2||Ne===9)||n.cancelPendingCommit!==null)&&(Qi(n,0),wr(n,Te,It,!1)),ja(n,s),((Le&2)===0||n!==Ie)&&(n===Ie&&((Le&2)===0&&(si|=s),Je===4&&wr(n,Te,It,!1)),vn(n))}function Qm(n,r,s){if((Le&6)!==0)throw Error(a(327));var o=!s&&(r&127)===0&&(r&n.expiredLanes)===0||Oa(n,r),h=o?zw(n,r):rh(n,r,!0),d=o;do{if(h===0){Fi&&!o&&wr(n,r,0,!1);break}else{if(s=n.current.alternate,d&&!Cw(s)){h=rh(n,r,!1),d=!1;continue}if(h===2){if(d=r,n.errorRecoveryDisabledLanes&d)var y=0;else y=n.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){r=y;e:{var w=n;h=os;var k=w.current.memoizedState.isDehydrated;if(k&&(Qi(w,y).flags|=256),y=rh(w,y,!1),y!==2){if(Ju&&!k){w.errorRecoveryDisabledLanes|=d,si|=d,h=4;break e}d=Ct,Ct=h,d!==null&&(Ct===null?Ct=d:Ct.push.apply(Ct,d))}h=y}if(d=!1,h!==2)continue}}if(h===1){Qi(n,0),wr(n,r,0,!0);break}e:{switch(o=n,d=h,d){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:wr(o,r,It,!vr);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(h=Zo+300-Dt(),10<h)){if(wr(o,r,It,!vr),ro(o,0,!0)!==0)break e;qn=r,o.timeoutHandle=Og(Xm.bind(null,o,s,Ct,Fo,Xu,r,It,si,Yi,vr,d,"Throttled",-0,0),h);break e}Xm(o,s,Ct,Fo,Xu,r,It,si,Yi,vr,d,null,-0,0)}}break}while(!0);vn(n)}
vendor: 13,961 bytes, line 9
9function Xm(n,r,s,o,h,d,y,w,k,L,B,V,N,U){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:On},Vm(r,d,V);var ie=(d&62914560)===d?Zo-Dt():(d&4194048)===d?Fm-Dt():0;if(ie=pS(V,ie),ie!==null){qn=d,n.cancelPendingCommit=ie(sg.bind(null,n,r,d,s,o,h,y,w,k,B,V,null,N,U)),wr(n,d,y,!L);return}}sg(n,r,d,s,o,h,y,w,k)}function Cw(n){for(var r=n;;){var s=r.tag;if((s===0||s===11||s===15)&&r.flags&16384&&(s=r.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var o=0;o<s.length;o++){var h=s[o],d=h.getSnapshot;h=h.value;try{if(!Mt(d(),h))return!1}catch{return!1}}if(s=r.child,r.subtreeFlags&16384&&s!==null)s.return=r,r=s;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 wr(n,r,s,o){r&=~Qu,r&=~si,n.suspendedLanes|=r,n.pingedLanes&=~r,o&&(n.warmLanes|=r),o=n.expirationTimes;for(var h=r;0<h;){var d=31-Nt(h),y=1<<d;o[d]=-1,h&=~y}s!==0&&ld(n,s,r)}function Yo(){return(Le&6)===0?(cs(0),!1):!0}function nh(){if(Se!==null){if(Ne===0)var n=Se.return;else n=Se,zn=Qr=null,yu(n),Ii=null,Ga=0,n=Se;for(;n!==null;)jm(n.alternate,n),n=n.return;Se=null}}function Qi(n,r){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,Jw(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),qn=0,nh(),Ie=n,Se=s=Cn(n.current,null),Te=r,Ne=0,Bt=null,vr=!1,Fi=Oa(n,r),Ju=!1,Yi=It=Qu=si=yr=Je=0,Ct=os=null,Xu=!1,(r&8)!==0&&(r|=r&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=r;0<o;){var h=31-Nt(o),d=1<<h;r|=n[h],o&=~d}return $n=r,go(),s}function Wm(n,r){be=null,M.H=Wa,r===Bi||r===ko?(r=mp(),Ne=3):r===su?(r=mp(),Ne=4):Ne=r===Lu?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Bt=r,Se===null&&(Je=1,Ho(n,Kt(r,n.current)))}function eg(){var n=Ht.current;return n===null?!0:(Te&4194048)===Te?Qt===null:(Te&62914560)===Te||(Te&536870912)!==0?n===Qt:!1}function tg(){var n=M.H;return M.H=Wa,n===null?Wa:n}function ng(){var n=M.A;return M.A=Ow,n}function Jo(){Je=4,vr||(Te&4194048)!==Te&&Ht.current!==null||(Fi=!0),(yr&134217727)===0&&(si&134217727)===0||Ie===null||wr(Ie,Te,It,!1)}function rh(n,r,s){var o=Le;Le|=2;var h=tg(),d=ng();(Ie!==n||Te!==r)&&(Fo=null,Qi(n,r)),r=!1;var y=Je;e:do try{if(Ne!==0&&Se!==null){var w=Se,k=Bt;switch(Ne){case 8:nh(),y=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(r=!0);var L=Ne;if(Ne=0,Bt=null,Xi(n,w,k,L),s&&Fi){y=0;break e}break;default:L=Ne,Ne=0,Bt=null,Xi(n,w,k,L)}}xw(),y=Je;break}catch(B){Wm(n,B)}while(!0);return r&&n.shellSuspendCounter++,zn=Qr=null,Le=o,M.H=h,M.A=d,Se===null&&(Ie=null,Te=0,go()),y}function xw(){for(;Se!==null;)rg(Se)}function zw(n,r){var s=Le;Le|=2;var o=tg(),h=ng();Ie!==n||Te!==r?(Fo=null,Ko=Dt()+500,Qi(n,r)):Fi=Oa(n,r);e:do try{if(Ne!==0&&Se!==null){r=Se;var d=Bt;t:switch(Ne){case 1:Ne=0,Bt=null,Xi(n,r,d,1);break;case 2:case 9:if(dp(d)){Ne=0,Bt=null,ig(r);break}r=function(){Ne!==2&&Ne!==9||Ie!==n||(Ne=7),vn(n)},d.then(r,r);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:dp(d)?(Ne=0,Bt=null,ig(r)):(Ne=0,Bt=null,Xi(n,r,d,7));break;case 5:var y=null;switch(Se.tag){case 26:y=Se.memoizedState;case 5:case 27:var w=Se;if(y?qg(y):w.stateNode.complete){Ne=0,Bt=null;var k=w.sibling;if(k!==null)Se=k;else{var L=w.return;L!==null?(Se=L,Qo(L)):Se=null}break t}}Ne=0,Bt=null,Xi(n,r,d,5);break;case 6:Ne=0,Bt=null,Xi(n,r,d,6);break;case 8:nh(),Je=6;break e;default:throw Error(a(462))}}Dw();break}catch(B){Wm(n,B)}while(!0);return zn=Qr=null,M.H=o,M.A=h,Le=s,Se!==null?0:(Ie=null,Te=0,go(),Je)}function Dw(){for(;Se!==null&&!n_();)rg(Se)}function rg(n){var r=Am(n.alternate,n,$n);n.memoizedProps=n.pendingProps,r===null?Qo(n):Se=r}function ig(n){var r=n,s=r.alternate;switch(r.tag){case 15:case 0:r=wm(s,r,r.pendingProps,r.type,void 0,Te);break;case 11:r=wm(s,r,r.pendingProps,r.type.render,r.ref,Te);break;case 5:yu(r);default:jm(s,r),r=Se=np(r,$n),r=Am(s,r,$n)}n.memoizedProps=n.pendingProps,r===null?Qo(n):Se=r}function Xi(n,r,s,o){zn=Qr=null,yu(r),Ii=null,Ga=0;var h=r.return;try{if(ww(n,h,r,s,Te)){Je=1,Ho(n,Kt(s,n.current)),Se=null;return}}catch(d){if(h!==null)throw Se=h,d;Je=1,Ho(n,Kt(s,n.current)),Se=null;return}r.flags&32768?(Ae||o===1?n=!0:Fi||(Te&536870912)!==0?n=!1:(vr=n=!0,(o===2||o===9||o===3||o===6)&&(o=Ht.current,o!==null&&o.tag===13&&(o.flags|=16384))),ag(r,n)):Qo(r)}function Qo(n){var r=n;do{if((r.flags&32768)!==0){ag(r,vr);return}n=r.return;var s=kw(r.alternate,r,$n);if(s!==null){Se=s;return}if(r=r.sibling,r!==null){Se=r;return}Se=r=n}while(r!==null);Je===0&&(Je=5)}function ag(n,r){do{var s=Tw(n.alternate,n);if(s!==null){s.flags&=32767,Se=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!r&&(n=n.sibling,n!==null)){Se=n;return}Se=n=s}while(n!==null);Je=6,Se=null}function sg(n,r,s,o,h,d,y,w,k){n.cancelPendingCommit=null;do Xo();while(st!==0);if((Le&6)!==0)throw Error(a(327));if(r!==null){if(r===n.current)throw Error(a(177));if(d=r.lanes|r.childLanes,d|=Gc,f_(n,s,d,y,w,k),n===Ie&&(Se=Ie=null,Te=0),Ji=r,_r=n,qn=s,Wu=d,eh=h,Ym=o,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Uw(Ws,function(){return hg(),null})):(n.callbackNode=null,n.callbackPriority=0),o=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||o){o=M.T,M.T=null,h=Y.p,Y.p=2,y=Le,Le|=4;try{Rw(n,r,s)}finally{Le=y,Y.p=h,M.T=o}}st=1,og(),lg(),cg()}}function og(){if(st===1){st=0;var n=_r,r=Ji,s=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||s){s=M.T,M.T=null;var o=Y.p;Y.p=2;var h=Le;Le|=4;try{Im(r,n);var d=mh,y=Kd(n.containerInfo),w=d.focusedElem,k=d.selectionRange;if(y!==w&&w&&w.ownerDocument&&Zd(w.ownerDocument.documentElement,w)){if(k!==null&&Bc(w)){var L=k.start,B=k.end;if(B===void 0&&(B=L),"selectionStart"in w)w.selectionStart=L,w.selectionEnd=Math.min(B,w.value.length);else{var V=w.ownerDocument||document,N=V&&V.defaultView||window;if(N.getSelection){var U=N.getSelection(),ie=w.textContent.length,pe=Math.min(k.start,ie),Pe=k.end===void 0?pe:Math.min(k.end,ie);!U.extend&&pe>Pe&&(y=Pe,Pe=pe,pe=y);var x=Gd(w,pe),A=Gd(w,Pe);if(x&&A&&(U.rangeCount!==1||U.anchorNode!==x.node||U.anchorOffset!==x.offset||U.focusNode!==A.node||U.focusOffset!==A.offset)){var D=V.createRange();D.setStart(x.node,x.offset),U.removeAllRanges(),pe>Pe?(U.addRange(D),U.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),U.addRange(D))}}}}for(V=[],U=w;U=U.parentNode;)U.nodeType===1&&V.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<V.length;w++){var $=V[w];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}ul=!!ph,mh=ph=null}finally{Le=h,Y.p=o,M.T=s}}n.current=r,st=2}}function lg(){if(st===2){st=0;var n=_r,r=Ji,s=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||s){s=M.T,M.T=null;var o=Y.p;Y.p=2;var h=Le;Le|=4;try{Mm(n,r.alternate,r)}finally{Le=h,Y.p=o,M.T=s}}st=3}}function cg(){if(st===4||st===3){st=0,r_();var n=_r,r=Ji,s=qn,o=Ym;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?st=5:(st=0,Ji=_r=null,ug(n,n.pendingLanes));var h=n.pendingLanes;if(h===0&&(br=null),wc(s),r=r.stateNode,Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(Aa,r,void 0,(r.current.flags&128)===128)}catch{}if(o!==null){r=M.T,h=Y.p,Y.p=2,M.T=null;try{for(var d=n.onRecoverableError,y=0;y<o.length;y++){var w=o[y];d(w.value,{componentStack:w.stack})}}finally{M.T=r,Y.p=h}}(qn&3)!==0&&Xo(),vn(n),h=n.pendingLanes,(s&261930)!==0&&(h&42)!==0?n===th?ls++:(ls=0,th=n):ls=0,cs(0)}}function ug(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,qa(r)))}function Xo(){return og(),lg(),cg(),hg()}function hg(){if(st!==5)return!1;var n=_r,r=Wu;Wu=0;var s=wc(qn),o=M.T,h=Y.p;try{Y.p=32>s?32:s,M.T=null,s=eh,eh=null;var d=_r,y=qn;if(st=0,Ji=_r=null,qn=0,(Le&6)!==0)throw Error(a(331));var w=Le;if(Le|=4,Zm(d.current),qm(d,d.current,y,s),Le=w,cs(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(Aa,d)}catch{}return!0}finally{Y.p=h,M.T=o,ug(n,r)}}function fg(n,r,s){r=Kt(s,r),r=Du(n.stateNode,r,2),n=dr(n,r,2),n!==null&&(ja(n,2),vn(n))}function Me(n,r,s){if(n.tag===3)fg(n,n,s);else for(;r!==null;){if(r.tag===3){fg(r,n,s);break}else if(r.tag===1){var o=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(br===null||!br.has(o))){n=Kt(s,n),s=dm(2),o=dr(r,s,2),o!==null&&(pm(s,o,r,n),ja(o,2),vn(o));break}}r=r.return}}function ih(n,r,s){var o=n.pingCache;if(o===null){o=n.pingCache=new jw;var h=new Set;o.set(r,h)}else h=o.get(r),h===void 0&&(h=new Set,o.set(r,h));h.has(s)||(Ju=!0,h.add(s),n=Lw.bind(null,n,r,s),r.then(n,n))}function Lw(n,r,s){var o=n.pingCache;o!==null&&o.delete(r),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,Ie===n&&(Te&s)===s&&(Je===4||Je===3&&(Te&62914560)===Te&&300>Dt()-Zo?(Le&2)===0&&Qi(n,0):Qu|=s,Yi===Te&&(Yi=0)),vn(n)}function dg(n,r){r===0&&(r=od()),n=Fr(n,r),n!==null&&(ja(n,r),vn(n))}function Nw(n){var r=n.memoizedState,s=0;r!==null&&(s=r.retryLane),dg(n,s)}function Mw(n,r){var s=0;switch(n.tag){case 31:case 13:var o=n.stateNode,h=n.memoizedState;h!==null&&(s=h.retryLane);break;case 19:o=n.stateNode;break;case 22:o=n.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(r),dg(n,s)}function Uw(n,r){return vc(n,r)}var Wo=null,Wi=null,ah=!1,el=!1,sh=!1,Sr=0;function vn(n){n!==Wi&&n.next===null&&(Wi===null?Wo=Wi=n:Wi=Wi.next=n),el=!0,ah||(ah=!0,Pw())}function cs(n,r){if(!sh&&el){sh=!0;do for(var s=!1,o=Wo;o!==null;){if(n!==0){var h=o.pendingLanes;if(h===0)var d=0;else{var y=o.suspendedLanes,w=o.pingedLanes;d=(1<<31-Nt(42|n)+1)-1,d&=h&~(y&~w),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(s=!0,vg(o,d))}else d=Te,d=ro(o,o===Ie?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||Oa(o,d)||(s=!0,vg(o,d));o=o.next}while(s);sh=!1}}function Hw(){pg()}function pg(){el=ah=!1;var n=0;Sr!==0&&Yw()&&(n=Sr);for(var r=Dt(),s=null,o=Wo;o!==null;){var h=o.next,d=mg(o,r);d===0?(o.next=null,s===null?Wo=h:s.next=h,h===null&&(Wi=s)):(s=o,(n!==0||(d&3)!==0)&&(el=!0)),o=h}st!==0&&st!==5||cs(n),Sr!==0&&(Sr=0)}function mg(n,r){for(var s=n.suspendedLanes,o=n.pingedLanes,h=n.expirationTimes,d=n.pendingLanes&-62914561;0<d;){var y=31-Nt(d),w=1<<y,k=h[y];k===-1?((w&s)===0||(w&o)!==0)&&(h[y]=h_(w,r)):k<=r&&(n.expiredLanes|=w),d&=~w}if(r=Ie,s=Te,s=ro(n,n===r?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o=n.callbackNode,s===0||n===r&&(Ne===2||Ne===9)||n.cancelPendingCommit!==null)return o!==null&&o!==null&&yc(o),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||Oa(n,s)){if(r=s&-s,r===n.callbackPriority)return r;switch(o!==null&&yc(o),wc(s)){case 2:case 8:s=ad;break;case 32:s=Ws;break;case 268435456:s=sd;break;default:s=Ws}return o=gg.bind(null,n),s=vc(s,o),n.callbackPriority=r,n.callbackNode=s,r}return o!==null&&o!==null&&yc(o),n.callbackPriority=2,n.callbackNode=null,2}function gg(n,r){if(st!==0&&st!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(Xo()&&n.callbackNode!==s)return null;var o=Te;return o=ro(n,n===Ie?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o===0?null:(Qm(n,o,r),mg(n,Dt()),n.callbackNode!=null&&n.callbackNode===s?gg.bind(null,n):null)}function vg(n,r){if(Xo())return null;Qm(n,r,!0)}function Pw(){Qw(function(){(Le&6)!==0?vc(id,Hw):pg()})}function oh(){if(Sr===0){var n=Hi;n===0&&(n=eo,eo<<=1,(eo&261888)===0&&(eo=256)),Sr=n}return Sr}function yg(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:oo(""+n)}function bg(n,r){var s=r.ownerDocument.createElement("input");return s.name=r.name,s.value=r.value,n.id&&s.setAttribute("form",n.id),r.parentNode.insertBefore(s,r),n=new FormData(n),s.parentNode.removeChild(s),n}function Bw(n,r,s,o,h){if(r==="submit"&&s&&s.stateNode===h){var d=yg((h[Tt]||null).action),y=o.submitter;y&&(r=(r=y[Tt]||null)?yg(r.formAction):y.getAttribute("formAction"),r!==null&&(d=r,y=null));var w=new ho("action","action",null,o,h);n.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Sr!==0){var k=y?bg(h,y):new FormData(h);Au(s,{pending:!0,data:k,method:h.method,action:d},null,k)}}else typeof d=="function"&&(w.preventDefault(),k=y?bg(h,y):new FormData(h),Au(s,{pending:!0,data:k,method:h.method,action:d},d,k))},currentTarget:h}]})}}for(var lh=0;lh<Vc.length;lh++){var ch=Vc[lh],Iw=ch.toLowerCase(),$w=ch[0].toUpperCase()+ch.slice(1);tn(Iw,"on"+$w)}tn(Jd,"onAnimationEnd"),tn(Qd,"onAnimationIteration"),tn(Xd,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(iw,"onTransitionRun"),tn(aw,"onTransitionStart"),tn(sw,"onTransitionCancel"),tn(Wd,"onTransitionEnd"),ki("onMouseEnter",["mouseout","mouseover"]),ki("onMouseLeave",["mouseout","mouseover"]),ki("onPointerEnter",["pointerout","pointerover"]),ki("onPointerLeave",["pointerout","pointerover"]),Vr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vr("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(" "),qw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(us));function _g(n,r){r=(r&4)!==0;for(var s=0;s<n.length;s++){var o=n[s],h=o.event;o=o.listeners;e:{var d=void 0;if(r)for(var y=o.length-1;0<=y;
vendor: 3,949 bytes, line 9
9y--){var w=o[y],k=w.instance,L=w.currentTarget;if(w=w.listener,k!==d&&h.isPropagationStopped())break e;d=w,h.currentTarget=L;try{d(h)}catch(B){mo(B)}h.currentTarget=null,d=k}else for(y=0;y<o.length;y++){if(w=o[y],k=w.instance,L=w.currentTarget,w=w.listener,k!==d&&h.isPropagationStopped())break e;d=w,h.currentTarget=L;try{d(h)}catch(B){mo(B)}h.currentTarget=null,d=k}}}}function Ee(n,r){var s=r[Sc];s===void 0&&(s=r[Sc]=new Set);var o=n+"__bubble";s.has(o)||(wg(r,n,2,!1),s.add(o))}function uh(n,r,s){var o=0;r&&(o|=4),wg(s,n,o,r)}var tl="_reactListening"+Math.random().toString(36).slice(2);function hh(n){if(!n[tl]){n[tl]=!0,pd.forEach(function(s){s!=="selectionchange"&&(qw.has(s)||uh(s,!1,n),uh(s,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[tl]||(r[tl]=!0,uh("selectionchange",!1,r))}}function wg(n,r,s,o){switch(Jg(r)){case 2:var h=vS;break;case 8:h=yS;break;default:h=Rh}s=h.bind(null,r,s,n),h=void 0,!xc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(h=!0),o?h!==void 0?n.addEventListener(r,s,{capture:!0,passive:h}):n.addEventListener(r,s,!0):h!==void 0?n.addEventListener(r,s,{passive:h}):n.addEventListener(r,s,!1)}function fh(n,r,s,o,h){var d=o;if((r&1)===0&&(r&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var w=o.stateNode.containerInfo;if(w===h)break;if(y===4)for(y=o.return;y!==null;){var k=y.tag;if((k===3||k===4)&&y.stateNode.containerInfo===h)return;y=y.return}for(;w!==null;){if(y=wi(w),y===null)return;if(k=y.tag,k===5||k===6||k===26||k===27){o=d=y;continue e}w=w.parentNode}}o=o.return}Rd(function(){var L=d,B=jc(s),V=[];e:{var N=ep.get(n);if(N!==void 0){var U=ho,ie=n;switch(n){case"keypress":if(co(s)===0)break e;case"keydown":case"keyup":U=M_;break;case"focusin":ie="focus",U=Nc;break;case"focusout":ie="blur",U=Nc;break;case"beforeblur":case"afterblur":U=Nc;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=jd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=k_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=P_;break;case Jd:case Qd:case Xd:U=A_;break;case Wd:U=I_;break;case"scroll":case"scrollend":U=S_;break;case"wheel":U=q_;break;case"copy":case"cut":case"paste":U=j_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=xd;break;case"toggle":case"beforetoggle":U=G_}var pe=(r&4)!==0,Pe=!pe&&(n==="scroll"||n==="scrollend"),x=pe?N!==null?N+"Capture":null:N;pe=[];for(var A=L,D;A!==null;){var $=A;if(D=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||D===null||x===null||($=za(A,x),$!=null&&pe.push(hs(A,$,D))),Pe)break;A=A.return}0<pe.length&&(N=new U(N,ie,null,s,B),V.push({event:N,listeners:pe}))}}if((r&7)===0){e:{if(N=n==="mouseover"||n==="pointerover",U=n==="mouseout"||n==="pointerout",N&&s!==Oc&&(ie=s.relatedTarget||s.fromElement)&&(wi(ie)||ie[_i]))break e;if((U||N)&&(N=B.window===B?B:(N=B.ownerDocument)?N.defaultView||N.parentWindow:window,U?(ie=s.relatedTarget||s.toElement,U=L,ie=ie?wi(ie):null,ie!==null&&(Pe=c(ie),pe=ie.tag,ie!==Pe||pe!==5&&pe!==27&&pe!==6)&&(ie=null)):(U=null,ie=L),U!==ie)){if(pe=jd,$="onMouseLeave",x="onMouseEnter",A="mouse",(n==="pointerout"||n==="pointerover")&&(pe=xd,$="onPointerLeave",x="onPointerEnter",A="pointer"),Pe=U==null?N:xa(U),D=ie==null?N:xa(ie),N=new pe($,A+"leave",U,s,B),N.target=Pe,N.relatedTarget=D,$=null,wi(B)===L&&(pe=new pe(x,A+"enter",ie,s,B),pe.target=D,pe.relatedTarget=Pe,$=pe),Pe=$,U&&ie)t:{for(pe=Vw,x=U,A=ie,D=0,$=x;$;$=pe($))D++;$=0;for(var he=A;he;he=pe(he))$++;for(;0<D-$;)x=pe(x),D--;for(;0<$-D;)A=pe(A),$--;for(;D--;){if(x===A||A!==null&&x===A.alternate){pe=x;break t}x=pe(x),A=pe(A)}pe=null}else pe=null;U!==null&&Sg(V,N,U,pe,!1),ie!==null&&Pe!==null&&Sg(V,Pe,ie,pe,!0)}}
vendor: 5,189 bytes, lines 9-10
9e:{if(N=L?xa(L):window,U=N.nodeName&&N.nodeName.toLowerCase(),U==="select"||U==="input"&&N.type==="file")var je=Pd;else if(Ud(N))if(Bd)je=tw;else{je=W_;var le=X_}else U=N.nodeName,!U||U.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?L&&Ac(L.elementType)&&(je=Pd):je=ew;if(je&&(je=je(n,L))){Hd(V,je,s,B);break e}le&&le(n,N,L),n==="focusout"&&L&&N.type==="number"&&L.memoizedProps.value!=null&&Rc(N,"number",N.value)}switch(le=L?xa(L):window,n){case"focusin":(Ud(le)||le.contentEditable==="true")&&(Ci=le,Ic=L,Ba=null);break;case"focusout":Ba=Ic=Ci=null;break;case"mousedown":$c=!0;break;case"contextmenu":case"mouseup":case"dragend":$c=!1,Fd(V,s,B);break;case"selectionchange":if(rw)break;case"keydown":case"keyup":Fd(V,s,B)}var _e;if(Uc)e:{switch(n){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else ji?Nd(n,s)&&(Re="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Re="onCompositionStart");Re&&(zd&&s.locale!=="ko"&&(ji||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&ji&&(_e=Ad()):(sr=B,zc="value"in sr?sr.value:sr.textContent,ji=!0)),le=nl(L,Re),0<le.length&&(Re=new Cd(Re,n,null,s,B),V.push({event:Re,listeners:le}),_e?Re.data=_e:(_e=Md(s),_e!==null&&(Re.data=_e)))),(_e=K_?F_(n,s):Y_(n,s))&&(Re=nl(L,"onBeforeInput"),0<Re.length&&(le=new Cd("onBeforeInput","beforeinput",null,s,B),V.push({event:le,listeners:Re}),le.data=_e)),Bw(V,n,L,s,B)}_g(V,r)})}function hs(n,r,s){return{instance:n,listener:r,currentTarget:s}}function nl(n,r){for(var s=r+"Capture",o=[];n!==null;){var h=n,d=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||d===null||(h=za(n,s),h!=null&&o.unshift(hs(n,h,d)),h=za(n,r),h!=null&&o.push(hs(n,h,d))),n.tag===3)return o;n=n.return}return[]}function Vw(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Sg(n,r,s,o,h){for(var d=r._reactName,y=[];s!==null&&s!==o;){var w=s,k=w.alternate,L=w.stateNode;if(w=w.tag,k!==null&&k===o)break;w!==5&&w!==26&&w!==27||L===null||(k=L,h?(L=za(s,d),L!=null&&y.unshift(hs(s,L,k))):h||(L=za(s,d),L!=null&&y.push(hs(s,L,k)))),s=s.return}y.length!==0&&n.push({event:r,listeners:y})}var Gw=/\r\n?/g,Zw=/\u0000|\uFFFD/g;function Eg(n){return(typeof n=="string"?n:""+n).replace(Gw,` 10`).replace(Zw,"")}function kg(n,r){return r=Eg(r),Eg(n)===r}function He(n,r,s,o,h,d){switch(s){case"children":typeof o=="string"?r==="body"||r==="textarea"&&o===""||Ri(n,o):(typeof o=="number"||typeof o=="bigint")&&r!=="body"&&Ri(n,""+o);break;case"className":ao(n,"class",o);break;case"tabIndex":ao(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ao(n,s,o);break;case"style":kd(n,o,d);break;case"data":if(r!=="object"){ao(n,"data",o);break}case"src":case"href":if(o===""&&(r!=="a"||s!=="href")){n.removeAttribute(s);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(s);break}o=oo(""+o),n.setAttribute(s,o);break;case"action":case"formAction":if(typeof o=="function"){n.setAttribute(s,"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 d=="function"&&(s==="formAction"?(r!=="input"&&He(n,r,"name",h.name,h,null),He(n,r,"formEncType",h.formEncType,h,null),He(n,r,"formMethod",h.formMethod,h,null),He(n,r,"formTarget",h.formTarget,h,null)):(He(n,r,"encType",h.encType,h,null),He(n,r,"method",h.method,h,null),He(n,r,"target",h.target,h,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(s);break}o=oo(""+o),n.setAttribute(s,o);break;case"onClick":o!=null&&(n.onclick=On);break;case"onScroll":o!=null&&Ee("scroll",n);break;case"onScrollEnd":o!=null&&Ee("scrollend",n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(s=o.__html,s!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=s}}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}s=oo(""+o),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);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(s,""+o):n.removeAttribute(s);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(s,""):n.removeAttribute(s);break;case"capture":case"download":o===!0?n.setAttribute(s,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(s,o):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?n.setAttribute(s,o):n.removeAttribute(s);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?n.removeAttribute(s):n.setAttribute(s,o);break;case"popover":Ee("beforetoggle",n),Ee("toggle",n),io(n,"popover",o);break;case"xlinkActuate":An(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":An(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":An(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":An(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":An(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":An(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":An(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":An(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":An(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<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=__.get(s)||s,io(n,s,o))}}function dh(n,r,s,o,h,d){switch(s){case"style":kd(n,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(s=o.__html,s!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=s}}break;case"children":typeof o=="string"?Ri(n,o):(typeof o=="number"||typeof o=="bigint")&&Ri(n,""+o);break;case"onScroll":o!=null&&Ee("scroll",n);break;case"onScrollEnd":o!=null&&Ee("scrollend",n);break;case"onClick":o!=null&&(n.onclick=On);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!md.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(h=s.endsWith("Capture"),r=s.slice(2,h?s.length-7:void 0),d=n[Tt]||null,d=d!=null?d[s]:null,typeof d=="function"&&n.removeEventListener(r,d,h),typeof o=="function")){typeof d!="function"&&d!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(r,o,h);break e}s in n?n[s]=o:o===!0?n.setAttribute(s,""):io(n,s,o)}}}function gt(n,r,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",n),Ee("load",n);var o=!1,h=!1,d;for(d in s)if(s.hasOwnProperty(d)){var y=s[d];if(y!=null)switch(d){case"src":o=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:He(n,r,d,y,s,null)}}h&&He(n,r,"srcSet",s.srcSet,s,null),o&&He(n,r,"src",s.src,s,null);return;case"input":Ee("invalid",n);var w=d=y=h=null,k=null,L=null;for(o in s)if(s.hasOwnProperty(o)){var B=s[o];if(B!=null)switch(o){case"name":h=B;break;case"type":y=B;break;case"checked":k=B;break;case"defaultChecked":L=B;break;case"value":d=B;break;case"defaultValue":w=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(a(137,r));break;default:He(n,r,o,B,s,null)}}_d(n,d,w,k,L,y,h,!1);return;case"select":Ee("invalid",n),o=y=d=null;for(h in s)if(s.hasOwnProperty(h)&&(w=s[h],w!=null))switch(h){case"value":d=w;break;case"defaultValue":y=w;break;case"multiple":o=w;default:He(n,r,h,w,s,null)}r=d,s=y,n.multiple=!!o,r!=null?Ti(n,!!o,r,!1):s!=null&&Ti(n,!!o,s,!0);return;case"textarea":Ee("invalid",n),d=h=o=null;for(y in s)if(s.hasOwnProperty(y)&&(w=s[y],w!=null))switch(y){case"value":o=w;break;case"defaultValue":h=w;break;case"children":d=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(a(91));break;default:He(n,r,y,w,s,null)}Sd(n,o,h,d);return;case"option":for(k in s)s.hasOwnProperty(k)&&(o=s[k],o!=null)&&(k==="selected"?n.selected=o&&typeof o!="function"&&typeof o!="symbol":He(n,r,k,o,s,null));return;case"dialog":Ee("beforetoggle",n),Ee("toggle",n),Ee("cancel",n),Ee("close",n);break;case"iframe":case"object":Ee("load",n);break;case"video":case"audio":for(o=0;o<us.length;o++)Ee(us[o],n);break;case"image":Ee("error",n),Ee("load",n);break;case"details":Ee("toggle",n);break;case"embed":case"source":case"link":Ee("error",n),Ee("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(L in s)if(s.hasOwnProperty(L)&&(o=s[L],o!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:He(n,r,L,o,s,null)}return;default:if(Ac(r)){for(B in s)s.hasOwnProperty(B)&&(o=s[B],o!==void 0&&dh(n,r,B,o,s,void 0));return}}for(w in s)s.hasOwnProperty(w)&&(o=s[w],o!=null&&He(n,r,w,o,s,null))}function Kw(n,r,s,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,d=null,y=null,w=null,k=null,L=null,B=null;for(U in s){var V=s[U];if(s.hasOwnProperty(U)&&V!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":k=V;default:o.hasOwnProperty(U)||He(n,r,U,null,o,V)}}for(var N in o){var U=o[N];if(V=s[N],o.hasOwnProperty(N)&&(U!=null||V!=null))switch(N){case"type":d=U;break;case"name":h=U;break;case"checked":L=U;break;case"defaultChecked":B=U;break;case"value":y=U;break;case"defaultValue":w=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(a(137,r));break;default:U!==V&&He(n,r,N,U,o,V)}}Tc(n,y,w,k,L,B,d,h);return;case"select":U=y=w=N=null;for(d in s)if(k=s[d],s.hasOwnProperty(d)&&k!=null)switch(d){case"value":break;case"multiple":U=k;default:o.hasOwnProperty(d)||He(n,r,d,null,o,k)}for(h in o)if(d=o[h],k=s[h],o.hasOwnProperty(h)&&(d!=null||k!=null))switch(h){case"value":N=d;break;case"defaultValue":w=d;break;case"multiple":y=d;default:d!==k&&He(n,r,h,d,o,k)}r=w,s=y,o=U,N!=null?Ti(n,!!s,N,!1):!!o!=!!s&&(r!=null?Ti(n,!!s,r,!0):Ti(n,!!s,s?[]:"",!1));return;case"textarea":U=N=null;for(w in s)if(h=s[w],s.hasOwnProperty(w)&&h!=null&&!o.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:He(n,r,w,null,o,h)}for(y in o)if(h=o[y],d=s[y],o.hasOwnProperty(y)&&(h!=null||d!=null))switch(y){case"value":N=h;break;case"defaultValue":U=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:h!==d&&He(n,r,y,h,o,d)}wd(n,N,U);return;case"option":for(var ie in s)N=s[ie],s.hasOwnProperty(ie)&&N!=null&&!o.hasOwnProperty(ie)&&(ie==="selected"?n.selected=!1:He(n,r,ie,null,o,N));for(k in o)N=o[k],U=s[k],o.hasOwnProperty(k)&&N!==U&&(N!=null||U!=null)&&(k==="selected"?n.selected=N&&t
vendor: 5,989 bytes, line 10
10ypeof N!="function"&&typeof N!="symbol":He(n,r,k,N,o,U));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 pe in s)N=s[pe],s.hasOwnProperty(pe)&&N!=null&&!o.hasOwnProperty(pe)&&He(n,r,pe,null,o,N);for(L in o)if(N=o[L],U=s[L],o.hasOwnProperty(L)&&N!==U&&(N!=null||U!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(a(137,r));break;default:He(n,r,L,N,o,U)}return;default:if(Ac(r)){for(var Pe in s)N=s[Pe],s.hasOwnProperty(Pe)&&N!==void 0&&!o.hasOwnProperty(Pe)&&dh(n,r,Pe,void 0,o,N);for(B in o)N=o[B],U=s[B],!o.hasOwnProperty(B)||N===U||N===void 0&&U===void 0||dh(n,r,B,N,o,U);return}}for(var x in s)N=s[x],s.hasOwnProperty(x)&&N!=null&&!o.hasOwnProperty(x)&&He(n,r,x,null,o,N);for(V in o)N=o[V],U=s[V],!o.hasOwnProperty(V)||N===U||N==null&&U==null||He(n,r,V,N,o,U)}function Tg(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Fw(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,s=performance.getEntriesByType("resource"),o=0;o<s.length;o++){var h=s[o],d=h.transferSize,y=h.initiatorType,w=h.duration;if(d&&w&&Tg(y)){for(y=0,w=h.responseEnd,o+=1;o<s.length;o++){var k=s[o],L=k.startTime;if(L>w)break;var B=k.transferSize,V=k.initiatorType;B&&Tg(V)&&(k=k.responseEnd,y+=B*(k<w?1:(w-L)/(k-L)))}if(--o,r+=8*(d+y)/(h.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var ph=null,mh=null;function rl(n){return n.nodeType===9?n:n.ownerDocument}function Rg(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 Ag(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 gh(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 vh=null;function Yw(){var n=window.event;return n&&n.type==="popstate"?n===vh?!1:(vh=n,!0):(vh=null,!1)}var Og=typeof setTimeout=="function"?setTimeout:void 0,Jw=typeof clearTimeout=="function"?clearTimeout:void 0,jg=typeof Promise=="function"?Promise:void 0,Qw=typeof queueMicrotask=="function"?queueMicrotask:typeof jg<"u"?function(n){return jg.resolve(null).then(n).catch(Xw)}:Og;function Xw(n){setTimeout(function(){throw n})}function Er(n){return n==="head"}function Cg(n,r){var s=r,o=0;do{var h=s.nextSibling;if(n.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"||s==="/&"){if(o===0){n.removeChild(h),ra(r);return}o--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")o++;else if(s==="html")fs(n.ownerDocument.documentElement);else if(s==="head"){s=n.ownerDocument.head,fs(s);for(var d=s.firstChild;d;){var y=d.nextSibling,w=d.nodeName;d[Ca]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&d.rel.toLowerCase()==="stylesheet"||s.removeChild(d),d=y}}else s==="body"&&fs(n.ownerDocument.body);s=h}while(s);ra(r)}function xg(n,r){var s=n;n=0;do{var o=s.nextSibling;if(s.nodeType===1?r?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(r?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),o&&o.nodeType===8)if(s=o.data,s==="/$"){if(n===0)break;n--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||n++;s=o}while(s)}function yh(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var s=r;switch(r=r.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":yh(s),Ec(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function Ww(n,r,s,o){for(;n.nodeType===1;){var h=s;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!o&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(o){if(!n[Ca])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(d=n.getAttribute("rel"),d==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(d!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(d=n.getAttribute("src"),(d!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&d&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var d=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===d)return n}else return n;if(n=Xt(n.nextSibling),n===null)break}return null}function eS(n,r,s){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=Xt(n.nextSibling),n===null))return null;return n}function zg(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=Xt(n.nextSibling),n===null))return null;return n}function bh(n){return n.data==="$?"||n.data==="$~"}function _h(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function tS(n,r){var s=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||s.readyState!=="loading")r();else{var o=function(){r(),s.removeEventListener("DOMContentLoaded",o)};s.addEventListener("DOMContentLoaded",o),n._reactRetry=o}}function Xt(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,341 bytes, line 10
10if(r==="/$"||r==="/&")return null}}return n}var wh=null;function Dg(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"||s==="/&"){if(r===0)return Xt(n.nextSibling);r--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||r++}n=n.nextSibling}return null}function Lg(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(r===0)return n;r--}else s!=="/$"&&s!=="/&"||r++}n=n.previousSibling}return null}function Ng(n,r,s){switch(r=rl(s),n){case"html":if(n=r.documentElement,!n)throw Error(a(452));return n;case"head":if(n=r.head,!n)throw Error(a(453));return n;case"body":if(n=r.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function fs(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);Ec(n)}var Wt=new Map,Mg=new Set;function il(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Vn=Y.d;Y.d={f:nS,r:rS,D:iS,C:aS,L:sS,m:oS,X:cS,S:lS,M:uS};function nS(){var n=Vn.f(),r=Yo();return n||r}function rS(n){var r=Si(n);r!==null&&r.tag===5&&r.type==="form"?Wp(r):Vn.r(n)}var ea=typeof document>"u"?null:document;function Ug(n,r,s){var o=ea;if(o&&typeof r=="string"&&r){var h=Gt(r);h='link[rel="'+n+'"][href="'+h+'"]',typeof s=="string"&&(h+='[crossorigin="'+s+'"]'),Mg.has(h
vendor: 4,889 bytes, line 10
10)||(Mg.add(h),n={rel:n,crossOrigin:s,href:r},o.querySelector(h)===null&&(r=o.createElement("link"),gt(r,"link",n),lt(r),o.head.appendChild(r)))}}function iS(n){Vn.D(n),Ug("dns-prefetch",n,null)}function aS(n,r){Vn.C(n,r),Ug("preconnect",n,r)}function sS(n,r,s){Vn.L(n,r,s);var o=ea;if(o&&n&&r){var h='link[rel="preload"][as="'+Gt(r)+'"]';r==="image"&&s&&s.imageSrcSet?(h+='[imagesrcset="'+Gt(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(h+='[imagesizes="'+Gt(s.imageSizes)+'"]')):h+='[href="'+Gt(n)+'"]';var d=h;switch(r){case"style":d=ta(n);break;case"script":d=na(n)}Wt.has(d)||(n=v({rel:"preload",href:r==="image"&&s&&s.imageSrcSet?void 0:n,as:r},s),Wt.set(d,n),o.querySelector(h)!==null||r==="style"&&o.querySelector(ds(d))||r==="script"&&o.querySelector(ps(d))||(r=o.createElement("link"),gt(r,"link",n),lt(r),o.head.appendChild(r)))}}function oS(n,r){Vn.m(n,r);var s=ea;if(s&&n){var o=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+Gt(o)+'"][href="'+Gt(n)+'"]',d=h;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=na(n)}if(!Wt.has(d)&&(n=v({rel:"modulepreload",href:n},r),Wt.set(d,n),s.querySelector(h)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(ps(d)))return}o=s.createElement("link"),gt(o,"link",n),lt(o),s.head.appendChild(o)}}}function lS(n,r,s){Vn.S(n,r,s);var o=ea;if(o&&n){var h=Ei(o).hoistableStyles,d=ta(n);r=r||"default";var y=h.get(d);if(!y){var w={loading:0,preload:null};if(y=o.querySelector(ds(d)))w.loading=5;else{n=v({rel:"stylesheet",href:n,"data-precedence":r},s),(s=Wt.get(d))&&Sh(n,s);var k=y=o.createElement("link");lt(k),gt(k,"link",n),k._p=new Promise(function(L,B){k.onload=L,k.onerror=B}),k.addEventListener("load",function(){w.loading|=1}),k.addEventListener("error",function(){w.loading|=2}),w.loading|=4,al(y,r,o)}y={type:"stylesheet",instance:y,count:1,state:w},h.set(d,y)}}}function cS(n,r){Vn.X(n,r);var s=ea;if(s&&n){var o=Ei(s).hoistableScripts,h=na(n),d=o.get(h);d||(d=s.querySelector(ps(h)),d||(n=v({src:n,async:!0},r),(r=Wt.get(h))&&Eh(n,r),d=s.createElement("script"),lt(d),gt(d,"link",n),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(h,d))}}function uS(n,r){Vn.M(n,r);var s=ea;if(s&&n){var o=Ei(s).hoistableScripts,h=na(n),d=o.get(h);d||(d=s.querySelector(ps(h)),d||(n=v({src:n,async:!0,type:"module"},r),(r=Wt.get(h))&&Eh(n,r),d=s.createElement("script"),lt(d),gt(d,"link",n),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(h,d))}}function Hg(n,r,s,o){var h=(h=we.current)?il(h):null;if(!h)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(r=ta(s.href),s=Ei(h).hoistableStyles,o=s.get(r),o||(o={type:"style",instance:null,count:0,state:null},s.set(r,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=ta(s.href);var d=Ei(h).hoistableStyles,y=d.get(n);if(y||(h=h.ownerDocument||h,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(n,y),(d=h.querySelector(ds(n)))&&!d._p&&(y.instance=d,y.state.loading=5),Wt.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Wt.set(n,s),d||hS(h,n,s,y.state))),r&&o===null)throw Error(a(528,""));return y}if(r&&o!==null)throw Error(a(529,""));return null;case"script":return r=s.async,s=s.src,typeof s=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=na(s),s=Ei(h).hoistableScripts,o=s.get(r),o||(o={type:"script",instance:null,count:0,state:null},s.set(r,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function ta(n){return'href="'+Gt(n)+'"'}function ds(n){return'link[rel="stylesheet"]['+n+"]"}function Pg(n){return v({},n,{"data-precedence":n.precedence,precedence:null})}function hS(n,r,s,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}),gt(r,"link",s),lt(r),n.head.appendChild(r))}function na(n){return'[src="'+Gt(n)+'"]'}function ps(n){return"script[async]"+n}function Bg(n,r,s){if(r.count++,r.instance===null)switch(r.type){case"style":var o=n.querySelector('style[data-href~="'+Gt(s.href)+'"]');if(o)return r.instance=o,lt(o),o;var h=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),lt(o),gt(o,"style",h),al(o,s.precedence,n),r.instance=o;case"stylesheet":h=ta(s.href);var d=n.querySelector(ds(h));
vendor: 4,845 bytes, line 10
10if(d)return r.state.loading|=4,r.instance=d,lt(d),d;o=Pg(s),(h=Wt.get(h))&&Sh(o,h),d=(n.ownerDocument||n).createElement("link"),lt(d);var y=d;return y._p=new Promise(function(w,k){y.onload=w,y.onerror=k}),gt(d,"link",o),r.state.loading|=4,al(d,s.precedence,n),r.instance=d;case"script":return d=na(s.src),(h=n.querySelector(ps(d)))?(r.instance=h,lt(h),h):(o=s,(h=Wt.get(d))&&(o=v({},s),Eh(o,h)),n=n.ownerDocument||n,h=n.createElement("script"),lt(h),gt(h,"link",o),n.head.appendChild(h),r.instance=h);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(o=r.instance,r.state.loading|=4,al(o,s.precedence,n));return r.instance}function al(n,r,s){for(var o=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=o.length?o[o.length-1]:null,d=h,y=0;y<o.length;y++){var w=o[y];if(w.dataset.precedence===r)d=w;else if(d!==h)break}d?d.parentNode.insertBefore(n,d.nextSibling):(r=s.nodeType===9?s.head:s,r.insertBefore(n,r.firstChild))}function Sh(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function Eh(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var sl=null;function Ig(n,r,s){if(sl===null){var o=new Map,h=sl=new Map;h.set(s,o)}else h=sl,o=h.get(s),o||(o=new Map,h.set(s,o));if(o.has(n))return o;for(o.set(n,null),s=s.getElementsByTagName(n),h=0;h<s.length;h++){var d=s[h];if(!(d[Ca]||d[ft]||n==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(r)||"";y=n+y;var w=o.get(y);w?w.push(d):o.set(y,[d])}}return o}function $g(n,r,s){n=n.ownerDocument||n,n.head.insertBefore(s,r==="title"?n.querySelector("head > title"):null)}function fS(n,r,s){if(s===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 qg(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function dS(n,r,s,o){if(s.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var h=ta(o.href),d=r.querySelector(ds(h));if(d){r=d._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=ol.bind(n),r.then(n,n)),s.state.loading|=4,s.instance=d,lt(d);return}d=r.ownerDocument||r,o=Pg(o),(h=Wt.get(h))&&Sh(o,h),d=d.createElement("link"),lt(d);var y=d;y._p=new Promise(function(w,k){y.onload=w,y.onerror=k}),gt(d,"link",o),s.instance=d}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(s,r),(r=s.state.preload)&&(s.state.loading&3)===0&&(n.count++,s=ol.bind(n),r.addEventListener("load",s),r.addEventListener("error",s))}}var kh=0;function pS(n,r){return n.stylesheets&&n.count===0&&cl(n,n.stylesheets),0<n.count||0<n.imgCount?function(s){var o=setTimeout(function(){if(n.stylesheets&&cl(n,n.stylesheets),n.unsuspend){var d=n.unsuspend;n.unsuspend=null,d()}},6e4+r);0<n.imgBytes&&kh===0&&(kh=62500*Fw());var h=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&cl(n,n.stylesheets),n.unsuspend)){var d=n.unsuspend;n.unsuspend=null,d()}},(n.imgBytes>kh?50:800)+r);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(o),clearTimeout(h)}}:null}function ol(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cl(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var ll=null;function cl(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,ll=new Map,r.forEach(mS,n),ll=null,ol.call(n))}function mS(n,r){if(!(r.state.loading&4)){var s=ll.get(n);if(s)var o=s.get(null);else{s=new Map,ll.set(n,s);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<h.length;d++){var y=h[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(s.set(y.dataset.precedence,y),o=y)}o&&s.set(null,o)}h=r.instance,y=h.getAttribute("data-precedence"),d=s.get(y)||o,d===o&&s.set(null,h),s.set(y,h),this.count++,o=ol.bind(this),h.addEventListener("load",o),h.addEventListener("error",o),d?d.parentNode.insertBefore(h,d.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),r.state.loading|=4}}var ms={$$typeof:j,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};
vendor: 6,127 bytes, line 10
10function gS(n,r,s,o,h,d,y,w,k){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=bc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bc(0),this.hiddenUpdates=bc(null),this.identifierPrefix=o,this.onUncaughtError=h,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function Vg(n,r,s,o,h,d,y,w,k,L,B,V){return n=new gS(n,r,s,y,k,L,B,V,w),r=1,d===!0&&(r|=24),d=Ut(3,null,null,r),n.current=d,d.stateNode=n,r=ru(),r.refCount++,n.pooledCache=r,r.refCount++,d.memoizedState={element:o,isDehydrated:s,cache:r},ou(d),n}function Gg(n){return n?(n=Di,n):Di}function Zg(n,r,s,o,h,d){h=Gg(h),o.context===null?o.context=h:o.pendingContext=h,o=fr(r),o.payload={element:s},d=d===void 0?null:d,d!==null&&(o.callback=d),s=dr(n,o,r),s!==null&&(xt(s,n,r),Ka(s,n,r))}function Kg(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<r?s:r}}function Th(n,r){Kg(n,r),(n=n.alternate)&&Kg(n,r)}function Fg(n){if(n.tag===13||n.tag===31){var r=Fr(n,67108864);r!==null&&xt(r,n,67108864),Th(n,67108864)}}function Yg(n){if(n.tag===13||n.tag===31){var r=$t();r=_c(r);var s=Fr(n,r);s!==null&&xt(s,n,r),Th(n,r)}}var ul=!0;function vS(n,r,s,o){var h=M.T;M.T=null;var d=Y.p;try{Y.p=2,Rh(n,r,s,o)}finally{Y.p=d,M.T=h}}function yS(n,r,s,o){var h=M.T;M.T=null;var d=Y.p;try{Y.p=8,Rh(n,r,s,o)}finally{Y.p=d,M.T=h}}function Rh(n,r,s,o){if(ul){var h=Ah(o);if(h===null)fh(n,r,o,hl,s),Qg(n,o);else if(_S(h,n,r,s,o))o.stopPropagation();else if(Qg(n,o),r&4&&-1<bS.indexOf(n)){for(;h!==null;){var d=Si(h);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=qr(d.pendingLanes);if(y!==0){var w=d;for(w.pendingLanes|=2,w.entangledLanes|=2;y;){var k=1<<31-Nt(y);w.entanglements[1]|=k,y&=~k}vn(d),(Le&6)===0&&(Ko=Dt()+500,cs(0))}}break;case 31:case 13:w=Fr(d,2),w!==null&&xt(w,d,2),Yo(),Th(d,2)}if(d=Ah(o),d===null&&fh(n,r,o,hl,s),d===h)break;h=d}h!==null&&o.stopPropagation()}else fh(n,r,o,null,s)}}function Ah(n){return n=jc(n),Oh(n)}var hl=null;function Oh(n){if(hl=null,n=wi(n),n!==null){var r=c(n);if(r===null)n=null;else{var s=r.tag;if(s===13){if(n=u(r),n!==null)return n;n=null}else if(s===31){if(n=f(r),n!==null)return n;n=null}else if(s===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 Jg(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(i_()){case id:return 2;case ad:return 8;case Ws:case a_:return 32;case sd:return 268435456;default:return 32}default:return 32}}var jh=!1,kr=null,Tr=null,Rr=null,gs=new Map,vs=new Map,Ar=[],bS="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 Qg(n,r){switch(n){case"focusin":case"focusout":kr=null;break;case"dragenter":case"dragleave":Tr=null;break;case"mouseover":case"mouseout":Rr=null;break;case"pointerover":case"pointerout":gs.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":vs.delete(r.pointerId)}}function ys(n,r,s,o,h,d){return n===null||n.nativeEvent!==d?(n={blockedOn:r,domEventName:s,eventSystemFlags:o,nativeEvent:d,targetContainers:[h]},r!==null&&(r=Si(r),r!==null&&Fg(r)),n):(n.eventSystemFlags|=o,r=n.targetContainers,h!==null&&r.indexOf(h)===-1&&r.push(h),n)}function _S(n,r,s,o,h){switch(r){case"focusin":return kr=ys(kr,n,r,s,o,h),!0;case"dragenter":return Tr=ys(Tr,n,r,s,o,h),!0;case"mouseover":return Rr=ys(Rr,n,r,s,o,h),!0;case"pointerover":var d=h.pointerId;return gs.set(d,ys(gs.get(d)||null,n,r,s,o,h)),!0;case"gotpointercapture":return d=h.pointerId,vs.set(d,ys(vs.get(d)||null,n,r,s,o,h)),!0}return!1}function Xg(n){var r=wi(n.target);if(r!==null){var s=c(r);if(s!==null){if(r=s.tag,r===13){if(r=u(s),r!==null){n.blockedOn=r,fd(n.priority,function(){Yg(s)});return}}else if(r===31){if(r=f(s),r!==null){n.blockedOn=r,fd(n.priority,function(){Yg(s)});return}}else if(r===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.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 s=Ah(n.nativeEvent);if(s===null){s=n.nativeEvent;var o=new s.constructor(s.type,s);Oc=o,s.target.dispatchEvent(o),Oc=null}else return r=Si(s),r!==null&&Fg(r),n.blockedOn=s,!1;r.shift()}return!0}function Wg(n,r,s){fl(n)&&s.delete(r)}function wS(){jh=!1,kr!==null&&fl(kr)&&(kr=null),Tr!==null&&fl(Tr)&&(Tr=null),Rr!==null&&fl(Rr)&&(Rr=null),gs.forEac
10h(Wg),vs.forEach(Wg)}function dl(n,r){n.blockedOn===r&&(n.blockedOn=null,jh||(jh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,wS)))}var pl=null;function ev(n){pl!==n&&(pl=n,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){pl===n&&(pl=null);for(var r=0;r<n.length;r+=3){var s=n[r],o=n[r+1],h=n[r+2];if(typeof o!="function"){if(Oh(o||s)===null)continue;break}var d=Si(s);d!==null&&(n.splice(r,3),r-=3,Au(d,{pending:!0,data:h,method:s.method,action:o},o,h))}}))}function ra(n){function r(k){return dl(k,n)}kr!==null&&dl(kr,n),Tr!==null&&dl(Tr,n),Rr!==null&&dl(Rr,n),gs.forEach(r),vs.forEach(r);for(var s=0;s<Ar.length;s++){var o=Ar[s];o.blockedOn===n&&(o.blockedOn=null)}for(;0<Ar.length&&(s=Ar[0],s.blockedOn===null);)Xg(s),s.blockedOn===null&&Ar.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(o=0;o<s.length;o+=3){var h=s[o],d=s[o+1],y=h[Tt]||null;if(typeof d=="function")y||ev(s);else if(y){var w=null;if(d&&d.hasAttribute("formAction")){if(h=d,y=d[Tt]||null)w=y.formAction;else if(Oh(h)!==null)continue}else w=y.action;typeof w=="function"?s[o+1]=w:(s.splice(o,3),o-=3),ev(s)}}}function tv(){function n(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return h=y})},focusReset:"manual",scroll:"manual"})}function r(){h!==null&&(h(),h=null),o||setTimeout(s,20)}function s(){if(!o&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,h=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(s,100),function(){o=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),h!==null&&(h(),h=null)}}}function Ch(n){this._internalRoot=n}ml.prototype.render=Ch.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(a(409));var s=r.current,o=$t();Zg(s,o,n,r,null,null)},ml.prototype.unmount=Ch.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Zg(n.current,2,null,n,null,null),Yo(),r[_i]=null}};function ml(n){this._internalRoot=n}ml.prototype.unstable_scheduleHydration=function(n){if(n){var r=hd();n={blockedOn:null,target:n,priority:r};for(var s=0;s<Ar.length&&r!==0&&r<Ar[s].priority;s++);Ar.splice(s,0,n),s===0&&Xg(n)}};var nv=e.version;if(nv!=="19.2.5")throw Error(a(527,nv,"19.2.5"));Y.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=m(r),n=n!==null?g(n):null,n=n===null?null:n.stateNode,n};var SS={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gl.isDisabled&&gl.supportsFiber)try{Aa=gl.inject(SS),Lt=gl}catch{}}return _s.createRoot=function(n,r){if(!l(n))throw Error(a(299));var s=!1,o="",h=cm,d=um,y=hm;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(d=r.onCaughtError),r.onRecoverableError!==void 0&&(y=r.onRecoverableError)),r=Vg(n,1,!1,null,null,s,o,null,h,d,y,tv),n[_i]=r.current,hh(n),new Ch(r)},_s.hydrateRoot=function(n,r,s){if(!l(n))throw Error(a(299));var o=!1,h="",d=cm,y=um,w=hm,k=null;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(d=s.onUncaughtError),s.onCaughtError!==void 0&&(y=s.onCaughtError),s.onRecoverableError!==void 0&&(w=s.onRecoverableError),s.formState!==void 0&&(k=s.formState)),r=Vg(n,1,!0,r,s??null,o,h,k,d,y,w,tv),r.context=Gg(null),s=r.current,o=$t(),o=_c(o),h=fr(o),h.callback=null,dr(s,h,o),s=o,r.current.lanes=s,ja(r,s),vn(r),n[_i]=r.current,hh(n),new ml(r)},_s.version="19.2.5",_s}var fv;function DS(){if(fv)return Dh.exports;fv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Dh.exports=zS(),Dh.exports}var LS=DS(),NS="__TSS_CONTEXT",nf=Symbol.for("TSS_SERVER_FUNCTION"),MS="application/x-tss-framed",Vy=()=>window.__TSS_START_OPTIONS__;function mi(t){return t?.isNotFound===!0}function Gy(t){t.statusCode=t.statusCode||t.code||307;const e=new Headers(t.headers);t.href&&e.get("Location")===null&&e.set("Location",t.href);const i=new Response(null,{status:t.statusCode,headers:e});if(i.options=t,t.throw)throw i;return i}function Zy(t){return t instanceof Response&&!!t.options}function US(t){if(t!==null&&typeof t=="object"&&t.isSerializedRedirect)return Gy(t)}function HS(t){return t.replaceAll("\0","/").replaceAll("�","/").replace(/~([~0r])/g,(e,i)=>i==="0"?"\0":i==="r"?"�":i)}const dv=!1;function Mr(t){return t[t.length-1]}function Ky(t,e){return typeof t=="function"?t(e):t}const xf=Object.prototype.hasOwnProperty;function Fy(t){for(const e in t)if(xf.call(t,e))return!0;return!1}const Ll=()=>Object.create(null),ia=(t,e)=>Lr(t,e,!0);function Lr(t,e,i,a=0){if(t===e)return t;if(a++>500)return e;const l=Array.isArray(t)&&Array.isArray(e);if(!l&&!($l(t)&&$l(e)))return e;const c=Object.keys(t),u=c.length,f=Object.keys(e),p=f.length;if(l?u!==t.length||p!==e.length||u&&Mr(c)!==`${u-1}`||p&&Mr(f)!==`${p-1}`:u!==Object.getOwnPropertyNames(t).length||p!==Object.getOwnPropertyNames(e).length||Object.getOwnPropertySymbols(e).length)return e;let m=0,g,v,b;if(l){for(;m<p&&(b=m,v=t[b],g=e[b],g=v===g?v:typeof v=="object"?Lr(v,g,i,a):g,g
10===v);m++);if(m===p&&u===p)return t}else{let S=u===p,E=!0;for(;m<p;m++){b=f[m],v=t[b];const T=e[b];g=v===T?v:typeof v=="object"?Lr(v,T,i,a):T,S&&=g===v&&(c[m]===b||xf.call(t,b)),E&&=Object.is(g,T),c[m]=g}if(S)return Object.getOwnPropertySymbols(t).length?e:t;if(E)return e}const _=l?f.fill(0):i?Ll():{};for(let S=0;S<p;S++)b=l?S:f[S],l?(v=t[b],S>m&&(g=e[b],g=v===g?v:typeof v=="object"?Lr(v,g,i,a):g),_[b]=S<m?v:g):_[b]=c[S];return _}function $l(t){return!t||typeof t!="object"?!1:(Object.getPrototypeOf(t)?.constructor??Object)===Object}function fn(t,e,i,a){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let l=0,c=t.length;l<c;l++){const u=t[l],f=e[l];if(u!==f&&!fn(u,f,i,a))return!1}return!0}if($l(t)&&$l(e)){if(i){for(const c in e)if((a||e[c]!==void 0)&&!fn(t[c],e[c],i,a))return!1;return!0}let l=0;if(a)l=Object.keys(t).length;else for(const c in t)t[c]!==void 0&&l++;for(const c in e)if((a||e[c]!==void 0)&&(l--===0||!fn(t[c],e[c],i,a)))return!1;return l===0}return!1}function PS(t){return typeof t?.message!="string"?!1:t.message.startsWith("Failed to fetch dynamically imported module")||t.message.startsWith("error loading dynamically imported module")||t.message.startsWith("Importing a module script failed")}const BS=/[\x00-\x1f\x7f"<>`{}]/g;function IS(t){return t.replace(BS,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function pv(t){let e;try{e=decodeURI(t)}catch{e=t.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return IS(e)}const $S=["http:","https:","mailto:","tel:"];function Ds(t){if(t[0]!=="/"&&t.includes(":"))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(t)?.[1]?.replace(/[\t\n\r]/g,"").toLowerCase()}const Yy=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function Jy(t,e){if(!t)return!1;if(Yy.test(t))return!0;const i=Ds(t);return i?!e.has(i):!1}const qS={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},VS=/[&><\u2028\u2029]/g;function GS(t){return t.replace(VS,e=>qS[e])}function ws(t){if(!t)return t;let e=t;if(/[%\\\x00-\x1f\x7f]/.test(t)){const i=/%25|%5C/gi;let a=0,l;for(e="";(l=i.exec(t))!==null;)e+=pv(t.slice(a,l.index))+l[0],a=i.lastIndex;e+=pv(a?t.slice(a):t)}return e}function ZS(t){return/[\s\u0080-\uFFFF]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function KS(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}function wa(t){return t.replace(/\/{2,}/g,"/")}function Qy(t){return t==="/"?t:t.replace(/^\/+/,"")}function En(t){const e=t.length;return e>1&&t[e-1]==="/"?t.replace(/\/+$/,""):t}function Xy(t){return En(Qy(t))}function mv(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function gv(t,e,i="never",a){if(e.includes("//")&&(e=wa(e)),e.startsWith("/"))return e.length===1||i==="preserve"?e:i==="always"?e.endsWith("/")?e:`${e}/`:e.endsWith("/")?e.slice(0,-1):e;const l=e===".";let c;if(a){c=l?t:t+"\0"+e;const m=a.get(c);if(m)return m}let u;if(l)u=t.split("/");else{for(t.includes("//")&&(t=wa(t)),u=t.split("/");u.length>1&&Mr(u)==="";)u.pop();const m=e.split("/");for(let g=0,v=m.length;g<v;g++){const b=m[g];b===""?g?g===v-1&&u.push(b):u=[b]:b===".."?u.length>1?u.pop():u=[""]:b==="."||u.push(b)}}u.length>1&&(Mr(u)===""?i==="never"&&u.pop():i==="always"&&u.push(""));const f=u.join("/"),p=(l?wa(f):f)||"/";return c&&a&&a.set(c,p),p}function FS(t){const e=new Map(t.map(a=>[encodeURIComponent(a),a])),i=new RegExp([...e.keys()].join("|").replace(/[.*()]/g,"\\$&"),"g");return a=>a.replace(i,l=>e.get(l)??l)}function YS(t){return t==null||t===""}function JS(t,e,i){if(typeof e!="string")return""+(e??void 0);const a=t==="_splat";if(a&&(!e||/^[a-zA-Z0-9\-._~!/]*$/.test(e)))return e;let l=encodeURIComponent(e);return a&&(l=l.replaceAll("%2F","/")),i?i(l):l}function vv(t,e,i,a,l){const c=t.endsWith("/")?"/":"";let u="";for(const f of e){if(typeof f=="string"){u+=f;continue}const[p,m,g,v]=f,b=p===2,_=b&&v!==void 0?v+c:v;let S=i[m];if(!(p===3&&S==null)){if(l&&(l[m]=S,b&&(l["*"]=S)),b&&YS(S)){if(g==="/"&&!_)continue;S=""}u+=g+JS(m,S,a)+(_||"")}}return u+c||"/"}function ql(t){const e=new Map;let i,a;return{get(l){const c=e.get(l);if(c)return c.visited=!0,c.value},set(l,c){const u=e.get(l);if(u){u.value=c;return}if(e.size>=t){let p=i?.next().value;for(;!p||p.visited;)p?p.visited=!1:i=e.values(),p=i.next().value;p===a&&(i=void 0),e.delete(p.key)}const f={key:l,value:c,visited:!1};a=f,e.set(l,f)},clear(){e.clear(),i=void 0,a=void 0}}}function Ls(){throw new Error("Invariant failed")}const Dr=4,Wy=5;function QS(t){const e=t.names;if(e)return e;const i=[];for(const a of t)typeof a!="string"&&i.push(a[1]);return t.names=i}
10function XS(t,e,i){const a=t.substring(e,i);if(a.charCodeAt(0)===36)return a.length===1?[2,"_splat","",void 0]:[1,a.substring(1),"",""];const l=a.indexOf("{");if(l>=0){const c=a.indexOf("}",l),u=a.charCodeAt(l+1)===45,f=l+(u?3:2);if(c>=0&&a.charCodeAt(f-1)===36&&(!u||f<c)){const p=a.substring(f,c);return[u?3:p?1:2,p||"_splat",a.substring(0,l),t.substring(e+c+1,p?i:t.length)]}}return a}function Ns(t,e,i,a,l,c){let u=i;const f=e.fullPath??e.from,p=e.options,m=f.length,g=f.endsWith("/")?m-1:m,v=p?.caseSensitive??t,b=p?.params?.parse??p?.parseParams;let _,S=c?i-1:0;if(!a||f.includes("$")){_=c?.slice()??[];const R=Mr(_);R&&typeof R!="string"&&R[0]===2&&(_[_.length-1]=[R[0],R[1],R[2],R[3]===void 0?void 0:R[3]+f.substring(i-(f[i-2]==="/"?2:1),g)],S=m)}for(;u<m;){const R=u,C=f.indexOf("/",R);let j=C===-1?m:C;const I=XS(f,R,j);u=j+1;let J;if(typeof I=="string"){if(!a)continue;let P=I,z;v?z=a.static??=new Map:(P=I.toLowerCase(),z=a.staticInsensitive??=new Map);const K=z.get(P);if(K)J=K;else{const ne=ui(a);J=ne,z.set(P,ne)}}else{const P=I[0];let z=I[2],K=I[3]??"";if(P===2&&(j=m,u=j+1),_&&S<j&&(S<R-1&&_.push(f.substring(S,R-1)),I[2]="/"+z,P===2&&I[3]!==void 0&&g<m&&(I[3]=K.slice(0,-1)),_.push(I),S=j),!a)continue;const ne=v&&!!(z||K);v||(z=z.toLowerCase(),K=K.toLowerCase());const ue=P===1?a.dynamic??=[]:P===3?a.optional??=[]:a.wildcard??=[],G=P!==2&&!b&&ue.find(Z=>!Z.parse&&Z.caseSensitive===ne&&Z.prefix===z&&Z.suffix===K);if(G)J=G;else{const Z=ui(a,P,ne,z,K);J=Z,ue.push(Z),ue.length===2&&l?.push(ue)}}a=J}_&&S<g&&_.push(f.substring(S,g));const E=_?.slice();if(!a)return E;if(b&&e.children&&!e.isRoot&&e.id&&e.id.charCodeAt(e.id.lastIndexOf("/")+1)===95){const R=ui(a,Wy);(a.pathless??=[]).push(R),a=R}const T=(e.path||!e.children)&&!e.isRoot;if(T&&g<m){const R=ui(a,Dr);a.index=R,a=R}return a.parse=b??null,a.priority=p?.params?.priority??0,a.route||(a.data=E,T&&(a.route=e)),[a,u,E]}function e0(t,e){if(t.parse&&!e.parse)return-1;if(!t.parse&&e.parse)return 1;if(t.parse&&e.parse&&(t.priority||e.priority))return e.priority-t.priority;if(t.prefix&&e.prefix&&t.prefix!==e.prefix){if(t.prefix.startsWith(e.prefix))return-1;if(e.prefix.startsWith(t.prefix))return 1}if(t.suffix&&e.suffix&&t.suffix!==e.suffix){if(t.suffix.endsWith(e.suffix))return-1;if(e.suffix.endsWith(t.suffix))return 1}return t.prefix&&!e.prefix?-1:!t.prefix&&e.prefix?1:t.suffix&&!e.suffix?-1:!t.suffix&&e.suffix?1:t.caseSensitive&&!e.caseSensitive?-1:!t.caseSensitive&&e.caseSensitive?1:0}function ui(t,e=0,i,a,l){return{kind:e,depth:t?t.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:t,parse:null,priority:0,caseSensitive:i,prefix:a,suffix:l}}function WS(t,e){const i=ui(),a=[];function l(c,u,f,p){const[m,g,v]=Ns(!1,c,u,f,a,p);if(c.children)for(const b of c.children)l(b,g,m,v)}for(const c of t)l(c,1,i);for(const c of a)c.sort(e0);e.masksTree=i,e.flatCache=ql(1e3)}function eE(t,e){t||="/";const i=e.flatCache.get(t);if(i!==void 0)return i;const a=zf(t,e.masksTree);return e.flatCache.set(t,a),a}function tE(t,e,i,a,l){t||="/",a||="/";const c=e?`case\0${t}`:t;let u=l.singleCache.get(c);return u||(u=ui(),Ns(e,{from:t},1,u),l.singleCache.set(c,u)),zf(a,u,i)}function nE(t,e,i=!1){const a=i?t:`nofuzz\0${t}`,l=e.matchCache.get(a);if(l!==void 0)return l;t||="/";let c;try{c=zf(t,e.segmentTree,i)}catch(u){if(u instanceof URIError)c=null;else throw u}return c&&(c.branch=n0(c.route)),e.matchCache.set(a,c),c}function rE(t,e=!1){const i=ui(),a=[],l={},c={};let u=0;function f(p,m,g,v){if(p.init(u),p.id in l&&Ls(),l[p.id]=p,u!==0&&p.path){const E=En(p.fullPath);(!c[E]||p.fullPath.endsWith("/"))&&(c[E]=p)}u++;const[b,_,S]=Ns(e,p,m,g,a,v);if(p._interpolation=S,p.children)for(const E of p.children)f(E,_,b,S)}f(t,1,i);for(const p of a)p.sort(e0);return{processedTree:{segmentTree:i,singleCache:ql(1e3),matchCache:ql(1e3),flatCache:null,masksTree:null},routesById:l,routesByPath:c}}function zf(t,e,i=!1){const a=t.split("/"),l=aE(t,a,e,i);if(!l)return null;const[c]=t0(t,a,l);return{route:l.node.route,rawParams:c}}function t0(t,e,i){const a=iE(i.node),l=i.node.data&&QS(i.node.data),c=Object.create(null);let u=i.extract?.part??0,f=i.extract?.node??0,p=i.extract?.path??0,m=i.extract?.param??0;for(;f<a.length;u++,f++,p++){const g=a[f];if(g.kind===Dr)break;
10if(g.kind===Wy){u--,p--;continue}const v=e[u],b=p;if(v&&(p+=v.length),g.kind===1||g.kind===3){const _=l[m++];if(g.kind===3&&i.skipped&1<<f){u--,p=b-1;continue}const S=g.suffix||g.prefix?v.substring(g.prefix.length,v.length-g.suffix.length):v;(S||g.kind===1)&&(c[_]=decodeURIComponent(S))}else if(g.kind===2){const _=g,S=t.substring(b+_.prefix.length,t.length-_.suffix.length),E=decodeURIComponent(S);c["*"]=E,c._splat=E;break}}return i.rawParams&&Object.assign(c,i.rawParams),[c,{part:u,node:f,path:p,param:m}]}function n0(t){const e=[t];for(;t.parentRoute;)t=t.parentRoute,e.push(t);return e.reverse(),e}function iE(t){const e=Array(t.depth+1);do e[t.depth]=t,t=t.parent;while(t);return e}function aE(t,e,i,a){if(t==="/"&&i.index)return{node:i.index,skipped:0};const l=!Mr(e),c=l&&t!=="/",u=e.length-(l?1:0),f=[{node:i,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let p=null,m=null;for(;f.length;){const g=f.pop(),{node:v,index:b,skipped:_,statics:S,dynamics:E,optionals:T}=g;let{extract:R,rawParams:C}=g;if(v.kind===2&&v.route&&!yl(m,g))continue;if(v.parse){if(!yv(t,e,g))continue;C=g.rawParams,R=g.extract}a&&v.route&&v.kind!==Dr&&yl(p,g)&&(p=g);const j=b===u;if(j&&(v.route&&(!c||v.kind===Dr||v.kind===2)&&yl(m,g)&&(m=g),!v.optional&&!v.wildcard&&!v.index&&!v.pathless))continue;const I=j?void 0:e[b];let J;if(j&&v.index){const P={node:v.index,index:b,skipped:_,statics:S,dynamics:E,optionals:T,extract:R,rawParams:C};let z=!0;if(v.index.parse&&(yv(t,e,P)||(z=!1)),z){if(!E&&!T&&!_&&sE(S,u))return P;yl(m,P)&&(m=P)}}if(v.wildcard)for(let P=v.wildcard.length-1;P>=0;P--){const z=v.wildcard[P],{prefix:K,suffix:ne}=z;if(!(K&&(j||!(z.caseSensitive?I:J??=I.toLowerCase()).startsWith(K)))){if(ne){if(j)continue;const ue=e.slice(b).join("/"),G=ue.slice(-ne.length);if((z.caseSensitive?G:G.toLowerCase())!==ne||ue.length-ne.length<K.length)continue}f.push({node:z,index:u,skipped:_,statics:S,dynamics:E,optionals:T,extract:R,rawParams:C})}}if(v.optional){const P=_|1<<v.depth+1;for(let z=v.optional.length-1;z>=0;z--){const K=v.optional[z];f.push({node:K,index:b,skipped:P,statics:S,dynamics:E,optionals:T,extract:R,rawParams:C})}if(!j)for(let z=v.optional.length-1;z>=0;z--){const K=v.optional[z],{prefix:ne,suffix:ue}=K;if(ne||ue){const G=K.caseSensitive?I:J??=I.toLowerCase();if(ne&&!G.startsWith(ne)||ue&&G.indexOf(ue,G.length-ue.length)<ne.length)continue}f.push({node:K,index:b+1,skipped:_,statics:S,dynamics:E,optionals:T+vl(u,b),extract:R,rawParams:C})}}if(!j&&v.dynamic&&I)for(let P=v.dynamic.length-1;P>=0;P--){const z=v.dynamic[P],{prefix:K,suffix:ne}=z;if(K||ne){const ue=z.caseSensitive?I:J??=I.toLowerCase();if(K&&!ue.startsWith(K)||ne&&ue.indexOf(ne,ue.length-ne.length)<K.length)continue}f.push({node:z,index:b+1,skipped:_,statics:S,dynamics:E+vl(u,b),optionals:T,extract:R,rawParams:C})}if(!j&&v.staticInsensitive){const P=v.staticInsensitive.get(J??=I.toLowerCase());P&&f.push({node:P,index:b+1,skipped:_,statics:S+vl(u,b),dynamics:E,optionals:T,extract:R,rawParams:C})}if(!j&&v.static){const P=v.static.get(I);P&&f.push({node:P,index:b+1,skipped:_,statics:S+vl(u,b),dynamics:E,optionals:T,extract:R,rawParams:C})}if(v.pathless)for(let P=v.pathless.length-1;P>=0;P--){const z=v.pathless[P];f.push({node:z,index:b,skipped:_,statics:S,dynamics:E,optionals:T,extract:R,rawParams:C})}}if(m)return m;if(a&&p){let g=p.index;for(let b=0;b<p.index;b++)g+=e[b].length;const v=g===t.length?"/":t.slice(g);return p.rawParams??=Object.create(null),p.rawParams["**"]=decodeURIComponent(v),p}return null}function vl(t,e){return 2**(t-e-1)}function sE(t,e){return t===2**(e-1)-1}function yv(t,e,i){let a,l;try{[a,l]=t0(t,e,i)}catch{return null}if(i.rawParams=a,i.extract=l,!i.node.parse)return!0;try{if(i.node.parse(a)===!1)return null}catch{}return!0}function yl(t,e){return t?e.statics>t.statics||e.statics===t.statics&&(e.dynamics>t.dynamics||e.dynamics===t.dynamics&&(e.optionals>t.optionals||e.optionals===t.optionals&&((e.node.kind===Dr)>(t.node.kind===Dr)||e.node.kind===Dr==(t.node.kind===Dr)&&e.node.depth>t.node.depth))):!0}function oE(){try{return sessionStorage}catch{return}}const lE="tsr-scroll-restoration-v1_3",r0=oE();function cE(){try{return JSON.parse(r0?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}const aa=cE(),bv="data-scroll-restoration-id",uE=t=>t.state.__TSR_key||t.href;function hE(t){const e=t.getAttribute(bv);if(e)return`[${bv}="${e}"]`;let i="",a=t,l;for(;l=a.parentNode;){let c=1,u=a;for(;u=u.previousElementSibling;)c++;const f=`${a.localName}:nth-child(${c})`;i=i?`${f} > ${i}`:f,a=l}return i}let bl=!1;const Nl="window";function rf(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function _v(t){const e=new Set;for(const i of t){if(i===Nl)continue;const a=rf(i);a&&e.add(a)}return e}function fE(t,e){const i=t.options.scrollRestoration,a=t._scroll;i&&(a.e=!0);const l=t.options.getScrollRestorationKey||uE,c=new Set,u=f=>{const p=aa[f]||={};for(const m of c)m===document?p[Nl]={scrollX,scrollY}:m.isConnected&&(p[hE(m)]={scrollX:m.scrollLeft,scrollY:m.scrollTop})};i&&!a.s&&(a.s=!0,bl=!1,history.scrollRestoration="manual",document.addEventListener("scroll",f=>{bl||c.add(f.target)},!0),t.subscribe("onBeforeLoad",f=>{f.fromLocation&&u(l(f.fromLocation)),c.clear()}),addEventListener("pagehide",()=>{history.scrollRestoration="auto",u(l(t.stores.resolvedLocation.get()??t.stores.location.get()));try{r0?.setItem(lE,JSON.stringify(aa))}catch{}}),addEventListener("pageshow",f=>{f.persisted&&(history.scrollRestoration="manual")})),!a.r&&(a.r=!0,t.subscribe("onRendered",f=>{const p=t.options.scrollRestorationBehavior,m=t.options.scrollToTopSelectors,g=a.n,v=a.h;let b;if(c.clear(),a.n=!0,a.h=!1,typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;const _=l(f.toLocation),S=f.fromLocation&&l(f.fromLocation);if(a.e&&S&&S!==_){const E=aa[S];if(E){let T=aa[_];for(const R in E){if(R===Nl){if(g)continue}else{const C=rf(R);if(!C||g&&m&&(b??=_v(m),b.has(C)))continue}T||(T=aa[_]={}),T[R]??=E[R]}}}bl=!0;try{const E=f.toLocation.hash,T=f.toLocation.state.__hashScrollIntoViewOptions??!0;let R=!1;if(g){!E&&m&&(b??=_v(m));const C=E&&T&&v,j=a.e?aa[_]:void 0;if(j)for(const I in j){const{scrollX:J,scrollY:P}=j[I];if(I===Nl){if(C)continue;scrollTo({top:P,left:J,behavior:p}),R=!0}else{const z=rf(I);z&&(z.scrollLeft=J,z.scrollTop=P,b?.delete(z))}}if(!E){const I={top:0,left:0,behavior:p};if(R||scrollTo(I),b)for(const J of b)J.scrollTo(I)}}!R&&E&&T&&document.getElementById(E)?.scrollIntoView(T)}finally{bl=!1}}))}function i0(t,e=String){let i;for(const a in t){const l=t[a];l!==void 0&&(i||=new URLSearchParams).set(a,e(l))}return i?i.toString():""}function Uh(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function dE(t){const e=new URLSearchParams(t),i=Object.create(null);for(const[a,l]of e.entries()){const c=i[a];c==null?i[a]=Uh(l):Array.isArray(c)?c.push(Uh(l)):i[a]=[c,Uh(l)]}return i}const a0=/^(?:\s|["[{\d-]|fa|nu|tr)/,pE=gE(JSON.parse),mE=vE(JSON.stringify,JSON.parse);function gE(t){const e=t===JSON.parse;return i=>{i[0]==="?"&&(i=i.substring(1));const a=dE(i);for(const l in a){const c=a[l];if(typeof c=="string"){if(e&&!a0.test(c))continue;try{a[l]=t(c)}catch{}}}return a}}function vE(t,e){const i=e===JSON.parse;function a(l){if(l&&typeof l=="object")try{return t(l)}catch{}else if(e&&typeof l=="string"){if(i&&!a0.test(l))return l;try{return e(l),t(l)}catch{}}return l}return l=>{const c=i0(l,a);return c?`?${c}`:""}}const Sa="__root__";
10function yE(t,e,i){const a=Xy(t),l=`/${a}`,c=e?l:l.toLowerCase(),u=`${c}/`,f={input:({url:p})=>{const m=e?p.pathname:p.pathname.toLowerCase();return m===c?p.pathname="/":m.startsWith(u)&&(p.pathname=p.pathname.slice(l.length)),p},output:({url:p})=>(p.pathname=wa(`/${a}${p.pathname}`),p)};return i?{input:({url:p})=>af(i,f.input({url:p})),output:({url:p})=>f.output({url:s0(i,p)})}:f}function af(t,e){const i=t?.input?.({url:e});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return e}function s0(t,e){const i=t?.output?.({url:e});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return e}function bE(t,e){const{createMutableStore:i,createReadonlyStore:a,batch:l}=e,c=new Map,u=i("idle"),f=i(t),p=i(void 0),m=i([]),g=a(()=>m.get().map(E=>c.get(E).get())),v=a(()=>({status:u.get(),isLoading:u.get()==="pending",matches:g.get(),location:f.get(),resolvedLocation:p.get()}));function b(E){let T=c.get(E);return T||(T=i(void 0),c.set(E,T)),T}const _={status:u,location:f,resolvedLocation:p,ids:m,matches:g,byRoute:c,__store:v,getMatchStore:b,setMatches:S};function S(E){const T=m.get(),R=E.map(C=>C.routeId);l(()=>{KS(T,R)||m.set(R);for(const C of T)R.includes(C)||c.get(C).set(()=>{});for(const C of E){const j=b(C.routeId);j.get()!==C&&j.set(C)}})}return _}var Nr="__TSR_index",wv="popstate",Sv="beforeunload",_E=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Ml(t){const e=_E.exec(t);return e?"/"+t.slice(e[0].length):t}function o0(t){return/[\x00-\x1f\x7f]/.test(t)&&(t=t.replace(/[\x00-\x1f\x7f]/g,e=>` 11\r`.includes(e)?"":encodeURIComponent(e))),Ml(t)}function wE(t){let e=t.getLocation();const i=new Set,a=u=>{e=t.getLocation(),i.forEach(f=>f({location:e,action:u}))},l=u=>{t.notifyOnIndexChange??!0?a(u):e=t.getLocation()},c=async({task:u,navigateOpts:f,...p})=>{if(f?.ignoreBlocker??!1){u();return}const m=t.getBlockers?.()??[],g=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&m.length&&g)for(const v of m){const b=Vl(p.path,p.state);if(await v.blockerFn({currentLocation:e,nextLocation:b,action:p.type})){t.onBlocked?.();return}}u()};return{get location(){return e},get length(){return t.getLength()},subscribers:i,subscribe:u=>(i.add(u),()=>{i.delete(u)}),push:(u,f,p)=>{const m=e.state[Nr];f=Ev(m+1,f),c({task:()=>{t.pushState(u,f),a({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:u,state:f})},replace:(u,f,p)=>{const m=e.state[Nr];f=Ev(m,f),c({task:()=>{t.replaceState(u,f),a({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:u,state:f})},go:(u,f)=>{c({task:()=>{t.go(u,f?.ignoreBlocker??!1),l({type:"GO",index:u})},navigateOpts:f,type:"GO"})},back:u=>{c({task:()=>{t.back(u?.ignoreBlocker??!1),l({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{c({task:()=>{t.forward(u?.ignoreBlocker??!1),l({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>e.state[Nr]!==0,createHref:u=>t.createHref(u),block:u=>{if(!t.setBlockers)return()=>{};const f=t.getBlockers?.()??[];return t.setBlockers([...f,u]),()=>{const p=t.getBlockers?.()??[];t.setBlockers?.(p.filter(m=>m!==u))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:a,_getBlockers:()=>t.getBlockers?.()??[]}}function Ev(t,e){const i=Df();return{...e,key:i,__TSR_key:i,[Nr]:t}}function SE(t){const e=typeof document<"u"?window:void 0,i=e.history.pushState,a=e.history.replaceState;let l=[];const c=()=>l,u=z=>l=z,f=z=>o0(z),p=(()=>Vl(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!e.history.state?.__TSR_key&&!e.history.state?.key){const z=Df();e.history.replaceState({[Nr]:0,key:z,__TSR_key:z},"")}let m=p(),g,v=!1,b=!1,_=!1,S=!1;const E=()=>m;let T;const R=()=>{T&&(P._ignoreSubscribers=!0,(T[2]?e.history.pushState:e.history.replaceState)(T[1],"",T[0]),P._ignoreSubscribers=!1,T=void 0,g=void 0)},C=(z,K,ne)=>{const ue=!!T;ue||(g=m),m=Vl(K,ne),T=[m.href,ne,T?.[2]||z],ue||queueMicrotask(()=>R())},j=z=>{m=p(),P.notify({type:z})},I=async()=>{if(S=!1,b){b=!1;return}const z=p(),K=z.state[Nr]-m.state[Nr],ne=K===1,ue=K===-1,G=!ne&&!ue||v;v=!1;const Z=G?"GO":ue?"BACK":"FORWARD",X=G?{type:"GO",index:K}:{type:ue?"BACK":"FORWARD"};if(_)_=!1;else{const ge=c();if(typeof document<"u"&&ge.length){for(const ce of ge)if(await ce.blockerFn({currentLocation:m,nextLocation:z,action:Z}
11)){b=!0,e.history.go(-K),P.notify(X);return}}}m=p(),P.notify(X)},J=z=>{if(S){S=!1;return}let K=!1;const ne=c();if(typeof document<"u"&&ne.length)for(const ue of ne){const G=ue.enableBeforeUnload??!0;if(G===!0){K=!0;break}if(typeof G=="function"&&G()===!0){K=!0;break}}if(K)return z.preventDefault(),z.returnValue=""},P=wE({getLocation:E,getLength:()=>e.history.length,pushState:(z,K)=>C(!0,z,K),replaceState:(z,K)=>C(!1,z,K),back:z=>(z&&(_=!0,S=!0),e.history.back()),forward:z=>{z&&(_=!0,S=!0),e.history.forward()},go:(z,K)=>{v=!0,K&&(_=!0,S=!0),e.history.go(z)},createHref:z=>f(z),flush:R,destroy:()=>{e.history.pushState=i,e.history.replaceState=a,e.removeEventListener(Sv,J,{capture:!0}),e.removeEventListener(wv,I)},onBlocked:()=>{g&&m!==g&&(m=g)},getBlockers:c,setBlockers:u,notifyOnIndexChange:!1});return P._ignoreNextBeforeUnload=z=>{S=!1;try{z=new URL(z,e.document.baseURI).href,S=/^https?:/.test(z)&&(!z.includes("#")||z.split("#")[0]!==e.location.href.split("#")[0])}catch{}},e.addEventListener(Sv,J,{capture:!0}),e.addEventListener(wv,I),e.history.pushState=function(...z){const K=i.apply(e.history,z);return P._ignoreSubscribers||j("PUSH"),K},e.history.replaceState=function(...z){const K=a.apply(e.history,z);return P._ignoreSubscribers||j("REPLACE"),K},P}function Vl(t,e){const i=o0(t),a=i.indexOf("#"),l=i.indexOf("?");if(!e){const c=Df();e={[Nr]:0,key:c,__TSR_key:c}}return{href:i,pathname:i.substring(0,a>0?l>0?Math.min(a,l):a:l>0?l:i.length),hash:a>-1?i.substring(a):"",search:l>-1?i.slice(l,a===-1?void 0:a):"",state:e}}function Df(){return(Math.random()+1).toString(36).substring(7)}function Hh(t,e){return t.protocol!=="http:"&&t.protocol!=="https:"||t.origin!==e||!!t.username||!!t.password}function Ph(t){return t.pathname+t.search+t.hash}function kv(t){return t.options.loader||t.options.beforeLoad||t.lazyFn||t.options.component?.preload||t.options.pendingComponent?.preload}function EE(t){return t instanceof Error?{name:t.name,message:t.message}:{data:t}}function tc(t,e){return{fromLocation:e,toLocation:t,pathChanged:e?.pathname!==t.pathname,hrefChanged:e?.href!==t.href,hashChanged:e?.hash!==t.hash}}function Tv({key:t,__TSR_key:e,__TSR_index:i,__hashScrollIntoViewOptions:a,...l}){return l}function l0(t){return t.findIndex(e=>e.status==="error"||e.status==="notFound"||e._notFound)+1}function kE(t,e,i,a,l,c){a&&(e=e.slice(0,a)),l&&(i=i.slice(0,l));for(const u of e){if(c&&t._tx!==c)return;i.some(f=>f.routeId===u.routeId)||t.routesById[u.routeId].options.onLeave?.(u)}for(const u of i){if(c&&t._tx!==c)return;t.routesById[u.routeId].options[e.some(f=>f.routeId===u.routeId)?"onStay":"onEnter"]?.(u)}}var TE=class{constructor(t,e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async i=>(i(),!1),this.update=i=>{const a=this.options;this.options={...a,...i},this.isServer=this.options.isServer??dv??typeof document>"u",this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=SE()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost");const l=this.options.basepath??"/",c=this.options.rewrite,u=this.basepath!==l||a?.rewrite!==c||a?.caseSensitive!==this.options.caseSensitive;if(u&&(this.basepath=l,this.rewrite=l!=="/"&&Xy(l)?yE(l,this.options.caseSensitive,c):c),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree||dv){this.routeTree=this.options.routeTree;let f;f=this.buildRouteTree(),this.setRoutes(f)}if(this.stores)u&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){const f=this.getStoreConfig(this);this.batch=f.batch,this.stores=bE(this.latestLocation,f),fE(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=rE(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&WS(this.options.routeMasks,i.processedTree),{...i,resolvePathCache:ql
11(1e3)}},this.subscribe=(i,a)=>{const l={eventType:i,fn:a};return this.subscribers.add(l),()=>{this.subscribers.delete(l)}},this.emit=i=>{for(const a of this.subscribers)if(a.eventType===i.type)try{a.fn(i)}catch(l){console.error(l)}},this.parseLocation=(i,a)=>{const l=({pathname:p,search:m,hash:g,href:v},b)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const T=this.options.parseSearch(m),R=this.options.stringifySearch(T);return{href:p+R+g,publicHref:p+R+g,pathname:ws(p),external:!1,searchStr:R,search:ia(a?.search,T),hash:ws(g.slice(1)),state:Lr(a?.state,b)}}const _=af(this.rewrite,new URL(v,this.origin)),S=this.options.parseSearch(_.search),E=this.options.stringifySearch(S);return _.search=E,{href:_.href.replace(_.origin,""),publicHref:v,pathname:ws(Ml(_.pathname)),external:!!this.rewrite&&Hh(_,this.origin),searchStr:E,search:ia(a?.search,S),hash:ws(_.hash.slice(1)),state:Lr(a?.state,b)}},c=l(i,i.state),{__tempLocation:u,__tempKey:f}=c.state;if(u&&(!f||f===this.tempLocationKey)){const p=l(u,{...u.state,__tempLocation:void 0,key:c.state.key,__TSR_key:c.state.__TSR_key});return p.maskedLocation=c,p}return c},this.matchRoutes=(i,a,l)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:a},l):this.matchRoutesInternal(i,a),this.getMatchedRoutes=i=>{const a=Object.create(null),l=nE(En(i),this.processedTree,!0);return l&&Object.assign(a,l.rawParams),[l?.branch||[this.routesById.__root__],a,l?.route]},this.buildLocation=i=>{{const u=this.staticLocations.get(i);if(u)return u}let a=!1;const l=(u={})=>{if(u.href){const ge=Vl(u.href,{});u={...u,to:af(this.rewrite,new URL(ge.pathname,this.origin)).pathname,search:this.options.parseSearch(ge.search),hash:ge.hash.slice(1)}}const f=u._fromLocation||this._pendingLocation||this.latestLocation;let p;const m=()=>(a=!0,f),g=()=>(a=!0,p??=this.matchRoutesLightweight(f)),v=u.to?`${u.to}`:".",b=gv(v[0]==="/"?"":u.unsafeRelative==="path"?m().pathname:u.from??g()[1],v,this.options.trailingSlash,this.resolvePathCache),_=this.routesByPath[En(b)],S=b.includes("$");let E;if(_)E=_._branch??=n0(_);else if(S)E=[];else{const[ge,ce,M]=this.getMatchedRoutes(b);E=ge,this.options.notFoundRoute&&(!M||M.path!=="/"&&ce["**"])&&(E=[...E,this.options.notFoundRoute])}const T=S?_?._interpolation??Ns(!1,{fullPath:b},0):void 0;let R;for(const ge of E){const ce=ge.options.params?.stringify??ge.options.stringifyParams;if(ce){const M=g()[3];if(R??=Bh(u.params,M),!Fy(R))break;R===M&&(R=Object.assign(Ll(),R));try{Object.assign(R,ce(R))}catch{}}}R??=Bh(u.params,AE(u.params,T)?g()[3]:Ih);const C=i.leaveParams?b:Ml(ws(T?vv(b,T,R,this.pathParamsDecoder):b)),j=OE(E,i._includeValidateSearch),I=()=>{let ge=g()[2];if(i._includeValidateSearch&&this.options.search?.strict){const ce={};E.forEach(M=>{if(M.options.validateSearch)try{Object.assign(ce,Ul(M.options.validateSearch,{...ce,...ge}))}catch{}}),ge=ce}return ge},J=j.length?jE(j,I(),u):u.search===!0?I():typeof u.search=="function"?u.search(I()):u.search||Ih,P=this.options.stringifySearch(J),z=u.hash===!0?m().hash:typeof u.hash=="function"?u.hash(m().hash):u.hash||void 0,K=z?`#${z}`:"",ne=u.state?u.state===!0?m().state:typeof u.state=="function"?u.state(m().state):u.state:Ih,ue=`${C}${P}${K}`;let G,Z,X=!1;if(this.rewrite){const ge=new URL(ue,this.origin),ce=ge.origin,M=s0(this.rewrite,ge);G=Ph(ge),Hh(M,ce)?(Z=M.href,X=!0):Z=Ml(Ph(M))}else G=ZS(ue),Z=G;return{publicHref:Z,href:G,pathname:C,search:J,searchStr:P,state:ne,hash:z??"",external:X,unmaskOnReload:u.unmaskOnReload}},c=l(i);if(i.mask)c.maskedLocation=l({from:i.from,...i.mask});else if(this.options.routeMasks){const u=eE(c.pathname,this.processedTree);if(u){const f=Object.assign(Ll(),u.rawParams),{from:p,params:m,...g}=u.route,v=Bh(m,f);c.maskedLocation=l({from:i.from,...g,params:v})}}return!a&&i._fromLocation&&!c.maskedLocation&&this.staticLocations.set(i,c),c},this.commitLocation=async({viewTransition:i,ignoreBlocker:a,...l})=>{const c=l.maskedLocation??l;if(c.external)return Rv(this,c.publicHref,{replace:l.replace,ignoreBlocker:a});let u;const f=En(this.latestLocation.href)===En(l.href)&&fn(Tv(l.state),Tv(this.latestLocation.state)),p=this._commitPromise;let m;const g=new Promise(v=>{m=v});if(g.resolve=()=>{m(),p?.resolve()},this._commitPromise=g,f)this.load();else{let{maskedLocation:v,hashScrollIntoView:b,..._}=l;v&&(_={...v,state:{...v.state,__tempKey:void 0,__tempLocation:{..._,search:_.searchStr,state:{..._.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(_.unmaskOnReload??this.options.unmaskOnReload??!1)&&(_.state.__tempKey=this.tempLocationKey)),_.state={..._.state,__hashScrollIntoViewOptions:b??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=i,u=l.replace?"REPLACE":"PUSH",this.history[u==="REPLACE"?"replace":"push"](_.publicHref,_.state,{ignoreBlocker:a}),this.history.subscribers.size||this.load({action:{type:u}})}return this._scroll.n=l.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:i,resetScroll:a,hashScrollIntoView:l,viewTransition:c,ignoreBlocker:u,...f}={})=>{const p=this.buildLocation({...f,_includeValidateSearch:!0});this._pendingLocation=p;const m=this.commitLocation({...p,viewTransition:c,replace:i,resetScroll:a,hashScrollIntoView:l,ignoreBlocker:u});return queueMicrotask(()=>
11{this._pendingLocation===p&&(this._pendingLocation=void 0)}),m},this.navigate=async({to:i,reloadDocument:a,href:l,publicHref:c,...u})=>{const f=l?Ds(l):void 0;if(f||a){if(i!==void 0||!l){const m=this.buildLocation({to:i,...u}),g=m.maskedLocation??m;l??=g.publicHref,c??=g.publicHref}return Rv(this,!f&&c?c:l,u)}return this.buildAndCommitLocation({...u,href:l,to:i,_isNavigate:!0})},this.load=async i=>{this.updateLatestLocation(),i?.action&&(this._scroll.h=i.action.type==="PUSH"||i.action.type==="REPLACE"),await UE(this,i)},this.startViewTransition=i=>{const a=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,a&&typeof document.startViewTransition=="function"){let l;if(typeof a=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const c=this.latestLocation,u=this.stores.resolvedLocation.get(),f=typeof a.types=="function"?a.types(tc(c,u)):a.types;if(f===!1)return i();l={update:i,types:f}}else l=i;return document.startViewTransition(l).updateCallbackDone}return i()},this.invalidate=i=>{const a=this._committed,l=i?.filter,c=this._preloads,u=new Set,f=g=>{(!l||l(g))&&u.add(g.id)};a.forEach(f),this._cache.forEach(f),c?.forEach(g=>g.forEach(f)),this._tx?.[3].forEach(f);const p=[];for(const[g,v]of c??[])v.some(b=>u.has(b.id))&&(c.delete(g),p.push(g));const m=g=>{if(u.has(g.id)){const v=this.routesById[g.routeId],b={...g,invalid:!0,...(i?.forcePending||g.status==="error"||g.status==="notFound")&&kv(v)?{status:"pending",error:void 0}:void 0};return g._flight=void 0,b}return g};this._committed=a.map(m);for(const[g,v]of this._cache)u.has(g)&&(v.invalid=!0,i?.forcePending&&(v.status="pending"));for(const g of u){const v=this._flights?.get(g);this._flights?.delete(g),v&&!v[2]&&p.push(v[1])}for(const g of p)g.abort();return this.shouldViewTransition=!1,this.load({sync:i?.sync})},this.resolveRedirect=i=>{const a=i.options;let l=i.headers.get("Location")||a.href;if(!l){const u=this.buildLocation(a);l=(u.maskedLocation??u).publicHref||"/"}let c;if(Yy.test(l)||(c=Ds(l))&&!this.protocolAllowlist.has(c))throw new Error("Redirect blocked: unsafe protocol");if(c==="http:"||c==="https:"){const u=new URL(l);u.pathname.startsWith("//")?l=u.href:Hh(u,this.origin)||(l=Ph(u),c=void 0)}return c&&(a.reloadDocument=!0),a.href=l,i.headers.set("Location",l),i},this.clearCache=i=>{const a=this._cache,l=this._preloads,c=i?.filter,u=[],f=[];for(const[m,g]of a)(!c||c(g))&&(f.push(m),u.push(g));const p=[];for(const[m,g]of l??[])(!c||g.some(c))&&(p.push(m),u.push(...g));for(const m of f)a.delete(m);for(const m of p)l.delete(m);for(const m of u){const g=m._flight;m._flight=void 0,g&&!--g[2]&&(this._flights?.get(m.id)===g&&this._flights.delete(m.id),p.push(g[1]))}for(const m of p)m.abort()},this.loadRouteChunk=Qn,this.preloadRoute=i=>HE(this,i),this.matchRoute=(i,a)=>{const l={...i,to:i.to?gv(i.from||"",i.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:i.params||{},leaveParams:!0},c=this.buildLocation(l),u=this.stores.status.get()==="pending";if(a?.pending&&!u)return!1;const f=a?.pending??!u?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),p=tE(c.pathname,a?.caseSensitive??!1,a?.fuzzy??!1,f.pathname,this.processedTree);return!p||i.params&&!fn(p.rawParams,i.params,!0)?!1:a?.includeSearch??!0?fn(f.search,c.search,!0)?p.rawParams:!1:p.rawParams},this.getStoreConfig=e,t.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=FS(t.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??mE,parseSearch:t.parseSearch??pE,protocolAllowlist:t.protocolAllowlist??$S}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(t){Object.assign(this,t),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;const e=this.options.notFoundRoute;e&&(e.init(99999999999),this.routesById[e.id]!==e&&(e._interpolation=Ns(!1,e,0)),this.routesById[e.id]=e)}matchRoutesInternal(t,e){const[i,a,l]=this.getMatchedRoutes(t.pathname);let c=i,u=!1;(l?l.path!=="/"&&a["**"]:En(t.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:u=!0);const f=u?CE(this.options.notFoundMode,c):void 0,p=new Array(c.length),m=this._committed,g=(b,_)=>{const S=m[_];return S?.routeId===b.id?S:b===this.options.notFoundRoute?m.find(E=>E.routeId===b.id):void 0};let v;for(let b=0;b<c.length;b++){const _=c[b],S=p[b-1];let E,T,R;{const X=S?.search??t.search,ge=S?._strictSearch??void 0;try{const ce=Ul(_.options.validateSearch,{...X})??void 0;E={...X,...ce},T={...ge,...ce}}catch(ce){let M=ce;
11if(ce instanceof Gl||(M=new Gl(ce.message,{cause:ce})),e?.throwOnError)throw M;E=X,T={},R=M}}let C="",j="";try{C=_.options.loaderDeps?.({search:E})??"",j=C&&JSON.stringify(C)||""}catch(X){if(e?.throwOnError)throw X;R??=X}const I=Ll(),J=_._interpolation?vv(_.fullPath,_._interpolation,a,this.pathParamsDecoder,I):_.fullPath,P=_.id+J+j,z=g(_,b),K=this._cache.get(P)??(z?.id===P?z:void 0);v=K?._strictParams??Object.assign(I,v);let ne;if(!K)try{Av(_,v)}catch(X){if(mi(X)||Zy(X)?ne=X:ne=new RE(X.message,{cause:X}),e?.throwOnError)throw ne}const ue=z?"stay":"enter";let G;if(K)G={...K,cause:ue,search:ia(z?z.search:K.search,E),_strictSearch:T,searchError:R};else{const X=kv(_)?"pending":"success";G={id:P,ssr:_.options.ssr,index:b,routeId:_.id,params:z?.params??v,_strictParams:v,pathname:J,updatedAt:Date.now(),search:z?ia(z.search,E):E,_strictSearch:T,searchError:R,status:X,isFetching:!1,error:void 0,paramsError:ne,context:{},abortController:e?._controller??new AbortController,cause:ue,loaderDeps:z?Lr(z.loaderDeps,C):C,invalid:!1,preload:!1,staticData:_.options.staticData||{},fullPath:_.fullPath}}const Z=f===_.id;G._notFound&&!Z&&(G.error=void 0),G._notFound=Z,p[b]=G}for(let b=0;b<p.length;b++){const _=p[b];_.params=_.cause==="stay"?ia(_.params,v):v,e?._controller&&(_.context={})}return p}matchRoutesLightweight(t){const e=Mr(this.stores.ids.get()),i=e?this.stores.byRoute.get(e).get():void 0,a=i?.id,l=this.lightweightCache.get(t);if(l&&l[0]===a)return l[1];const[c,u]=this.getMatchedRoutes(t.pathname),f=Mr(c),p={...t.search};for(const b of c)try{Object.assign(p,Ul(b.options.validateSearch,p))}catch{}const m=i&&i.routeId===f.id&&i.pathname===t.pathname;let g;if(m)g=i.params;else{const b=u;for(const _ of c)try{Av(_,b)}catch{}g=b}const v=[c,f.fullPath,p,g];return this.lightweightCache.set(t,[a,v]),v}};async function Rv(t,e,{replace:i,ignoreBlocker:a}){if(!Jy(e,t.protocolAllowlist)){if(!a){const l=t.history._getBlockers();for(const c of l)if(c?.blockerFn&&await c.blockerFn({currentLocation:t.history.location,nextLocation:t.history.location,action:i?"REPLACE":"PUSH"}))return}t.history._ignoreNextBeforeUnload?.(e),i?window.location.replace(e):window.location.href=e}}var Gl=class extends Error{},RE=class extends Error{};function Ul(t,e){if(t==null)return{};if("~standard"in t){const i=t["~standard"].validate(e);if(i instanceof Promise)throw new Gl("Async validation not supported");if(i.issues)throw new Gl(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in t?t.parse(e):typeof t=="function"?t(e):{}}function Bh(t,e){if(t===void 0||t===!0)return e;const i=Object.create(null);return t===!1||t===null?i:typeof t=="function"?(Object.assign(i,e),Object.assign(i,t(i))):Object.assign(i,e,t)}function AE(t,e){return typeof t=="function"?!0:!e||t===!1||t===null?!1:t===void 0||t===!0||e.some(i=>typeof i!="string"&&!xf.call(t,i[1]))}const Ih=Object.freeze({});function OE(t,e){const i=[];for(let a=0;a<t.length;a++){const l=t[a].options;if("search"in l)l.search?.middlewares&&i.push(...l.search.middlewares);else if(l.preSearchFilters||l.postSearchFilters){const u=({search:f,next:p})=>{const m=p(l.preSearchFilters?l.preSearchFilters.reduce((g,v)=>v(g),f):f);return l.postSearchFilters?l.postSearchFilters.reduce((g,v)=>v(g),m):m};i.push(u)}const c=l.validateSearch;if(e&&c){const u=({search:f,next:p,meta:m})=>{const g=p(f);try{const v=Ul(c,g);if(m&&v)for(const b in v)b in g||(m.defaulted||=new Map).set(b,v[b]);return{...g,...v}}catch{}return g};i.push(u)}}return i}function jE(t,e,i){const a=(l,c,u)=>{if(l>=t.length){if(!i.search)return{};if(i.search===!0)return c;const p=Ky(i.search,c);return u&&(u.explicit=p),p}const f=(p,m)=>{if(m){const g=u||{};return{search:a(l+1,p,g),meta:g}}return a(l+1,p,u)};return t[l]({search:c,next:f,meta:u})};return a(0,e)}function CE(t,e){if(t!=="root"){let i;for(let a=e.length-1;a>=0;a--){const l=e[a];if(l.options.notFoundComponent)return l.id;i||=l.children&&l.id}if(i)return i}return Sa}function Av(t,e){const i=t.options.params?.parse??t.options.parseParams;i&&Object.assign(e,i(e))}function sf(t,e){return t.options[e]?.preload?.()}function xE(t,e){const i=sf(t,"component");
11let a=sf(t,"pendingComponent");return e&&(a?a=a.then(e):e()),i&&a?Promise.all([i,a]).then(()=>{}):i??a}function Qn(t,e,i){const a=()=>e===!1?void 0:e?sf(t,e):xE(t,i),l=t._lazy;if(l)return l===!0?a():l.then(a);if(!t.lazyFn)return a();const c=t.lazyFn().then(u=>{{const{id:f,...p}=u.options;Object.assign(t.options,p),t._lazy=!0}},u=>{throw t._lazy=void 0,u});return t._lazy=c,c.then(a)}function Lf(t){const e=t.findIndex(i=>i.status!=="success"||i._notFound)+1;return e&&e<t.length?t.slice(0,e):t}function c0(t){let e=t.length;for(let i=0;i<e;i++){const a=t[i];if(a._assetEnd!==void 0){e=Math.min(e,Math.max(i+1,a._assetEnd));continue}if(a.status!=="success"||a._notFound){e=i+1;break}}return e<t.length?t.slice(0,e):t}const kn=0,Xn=1,nc=2,Et=3,Ur=[4];function Ms(t){return typeof t[0]=="number"}function Wn(t,e){return e.aborted?Promise.race([Promise.reject(e),t]):new Promise((i,a)=>{const l=()=>a(e);e.addEventListener("abort",l,{once:!0}),Promise.resolve(t).then(i,a).then(()=>e.removeEventListener("abort",l))})}function hn(t,e){return t.routesById[e.routeId]}function Us(t,e,i){return Zy(t)?[Et,t]:mi(t)?(t.routeId||=i,[nc,t]):e?(typeof t?.then=="function"&&(t=new Error("A Promise was thrown",{cause:t})),[Xn,t]):[kn,t]}function Nf(t,e){let i=Us(e,!0,t.id);if(i[0]!==Xn)return i;try{t.options.onError?.(i[1])}catch(a){i=Us(a,!0,t.id)}return i}function Os(t,e,i,a,l){return l[0].signal.aborted?Ur:Hf(t,e,i,Nf(i,a),l)}async function zE(t,e,i,a,l,c){const[u,f]=e,p=i[0].signal,m=!!i[3];for(let g=i[6]??0;g<a;g++){const v=f[g],b=hn(t,v);v.abortController=i[0];const _=f[g-1]?.context??t.options.context??{},S={params:v.params,location:u,navigate:C=>t.navigate({...C,_fromLocation:u}),buildLocation:t.buildLocation,cause:m?"preload":v.cause,abortController:i[0],preload:m,matches:f,routeId:b.id};try{const C=v._ctx||=b.options.context?b.options.context({...S,deps:v.loaderDeps,context:_})||{}:void 0;v.context={..._,...C}}catch(C){return Jn(t,v),[g,Os(t,e,b,C,i)]}if(p.aborted)return[g,Ur];const E=v.paramsError??v.searchError;if(E!==void 0)return Jn(t,v),[g,Os(t,e,b,E,i)];const T=b.options.beforeLoad;if(!T)continue;const R=v.status;g>=c&&(v.status="pending",i[7]?.());try{Hs(t,v,"beforeLoad",i[0]);const C=T({...S,search:v.search,context:v.context,...t.options.additionalContext}),j=await(typeof C?.then=="function"?Wn(C,p):C);if(p.aborted)return[g,Ur];const I=Hf(t,e,b,Us(j,!1,b.id),i);if(I[0]!==kn)return Jn(t,v),[g,I];v.context={...v.context,...j}}catch(C){return Jn(t,v),[g,Os(t,e,b,C,i)]}finally{v.status=R,Hs(t,v,!1,i[0])}}l()}function Mf(t,e,i){if(!(!i||--i[2])){if(t._flights?.get(e.id)===i){const a=t._tx;if(a&&!a[0].signal.aborted&&!a[3].includes(e)&&a[3].some(l=>l.id===e.id)&&a[3].some(l=>l.isFetching==="beforeLoad"))return;t._flights.delete(e.id)}return i[1]}}function Jn(t,e){const i=e._flight;e._flight=void 0,Mf(t,e,i)?.abort()}function _t(t,e,i,a){const l=[];for(const c of e)if(!i?.includes(c)){const u=c._flight;if(c._flight=void 0,a&&u?.[2]===1&&t._flights?.get(c.id)===u&&i?.some(f=>f.id===c.id))u[2]=0;else{const f=Mf(t,c,u);f&&l.push(f)}}for(const c of l)c.abort()}function Uf(t){for(const e of t){const i=e._flight;i&&i[2]++}}function Hs(t,e,i,a){if(e.isFetching=i,a&&t._tx?.[0]!==a)return;const l=t.stores.byRoute.get(e.routeId),c=l?.get();c?.id===e.id&&l.set({...c,isFetching:i})}function u0(t,e,i,a,l,c,u){const f=e[0];return{params:i.params,location:f,navigate:p=>t.navigate({...p,_fromLocation:f}),cause:u?"preload":i.cause,abortController:l,preload:u,deps:i.loaderDeps,parentMatchPromise:c,context:i.context,route:a,...t.options.additionalContext}}async function Ov(t,e,i,a,l,c,u){const f=u[0],p=f.signal;if(p.aborted)return Ur;if(!l)return[kn,void 0];let m=i._flight;Hs(t,i,"loader",f);try{if(!m){const g=new AbortController;m=[Promise.resolve().then(()=>l(u0(t,e,i,a,g,c,!!u[3]))).then(v=>Us(v,!1,a.id),v=>Us(v,!0,a.id)).then(v=>(v[0]!==kn&&t._flights?.get(i.id)===m&&(t._flights.delete(i.id),m[2]||g.abort()),v[0]===Xn&&m[2]?Nf(a,v[1]):v)),g,1],(t._flights??=new Map).set(i.id,m)}return i._flight=m,i.abortController=m[1],Hf(t,e,a,await Wn(m[0],p),u)}catch(g){if(g!==p||!p.aborted)throw g;return Jn(t,i),Ur}finally{Hs(t,i,!1,f)}}function jv(t,e,i){e[0]!==Et&&(t.status="success",t.error=void 0,e[0]===kn?(t.loaderData=e[1],t.invalid=!1,t.updatedAt=Date.now(),t.preload=i):t.invali
11d=!0)}function h0(t,e,i){const a=t._cache.get(e.id);if(a!==i||t._committed.some(c=>c.id===e.id&&c._flight===e._flight))return;const l={...e,_notFound:void 0,context:{}};l._flight&&l._flight[2]++,t._cache.set(e.id,l),a&&Jn(t,a)}function Cv(t,e){return e[0]===Xn||e[0]===nc?{...t,status:e[0]===Xn?"error":"notFound",error:e[1],_flight:void 0}:t}function DE(t,e,i,a,l,c,u){const f=e[1][i],p=hn(t,f),m=!!c[3],g=t._cache.get(f.id);let v,b=!1,_;try{if(f.status==="success"&&(v=p.options.shouldReload,typeof v=="function"&&(v=v(u0(t,e,f,p,c[0],l,m))),c[0].signal.aborted&&(_=Ur)),!_)if(f.status!=="success")b=!0;else{const Z=m||f.preload?p.options.preloadStaleTime??t.options.defaultPreloadStaleTime??3e4:p.options.staleTime??t.options.defaultStaleTime??0;b=!!(f.invalid||v||v===void 0&&Date.now()-f.updatedAt>=Z&&(c[5]||f.cause==="enter"||c[2].some(X=>X.routeId===f.routeId&&X.id!==f.id)))}}catch(Z){f.invalid=!0,Jn(t,f),_=Os(t,e,p,Z,c)}const S=p.options.loader,E=typeof S=="function",T=E?S:S?.handler,R=!m||p.options.preload!==!1;let C=R&&S?t._flights?.get(f.id):void 0;C===f._flight||_?C=void 0:C&&!b&&!m&&v===void 0?b=!0:b||(C=void 0);const j=!!(S&&b&&f.status==="success"&&!m&&!c[4]&&((E?void 0:S.staleReloadMode)??t.options.defaultStaleReloadMode)!=="blocking"),I=b&&R,J=I&&!j&&(f.status!=="success"||!!S),P=i>=u?c[7]:void 0,z=p.lazyFn&&p._lazy!==!0?P:void 0;if(I&&!S&&(f.invalid=!1,f.updatedAt=Date.now()),C&&C[2]++,J){const Z=f._flight;f._flight=C,Mf(t,f,Z)?.abort(),i>=u&&(f.status="pending"),P?.()}I||(f.isFetching=!1);const K=!_&&J?Ov(t,e,f,p,T,l,c).then(Z=>(jv(f,Z,m),Z[0]===kn&&(S&&!c[0].signal.aborted&&h0(t,f,g),i>=u&&(f.status="pending")),Z)):Promise.resolve(_??[kn,f.loaderData]),ne=(async()=>{try{const X=Qn(p,void 0,z);X&&await Wn(X,c[0].signal)}catch(X){if(!e[1].some((ge,ce)=>ce<=i&&(ge.status==="error"||ge.status==="notFound"||ge._notFound)))return[i,Os(t,e,p,X,c)]}const Z=await K;J&&Z[0]===kn&&f.status==="pending"&&!c[0].signal.aborted&&(f.status="success",P?.())})();if(a.push([i,K,ne]),!j)return K.then(Z=>Cv(f,Z));const ue={...f,status:"pending",preload:!1,_flight:C};f.invalid=!1,f.isFetching="loader";const G=Ov(t,e,ue,p,T,l,c).then(Z=>(f.isFetching=!1,jv(ue,Z,!1),Z));return(e[2]??=[]).push([i,G,ne,ue]),G.then(Z=>Cv(ue,Z))}async function of(t,e,i,a,l=0){const c=i?.[1][1];let u=c?.routeId?e.findIndex(f=>f.routeId===c.routeId):i?.[0]??e.length-1;u<0&&(u=0);for(let f=u;f>=0;f--){const p=hn(t,e[f]);try{const m=Qn(p,!1);m&&await Wn(m,a)}catch(m){if(m===a&&a.aborted)throw m}if(p.options.notFoundComponent)return f}return c?.routeId?u:l}function pi(t,e){e[2]&&(_t(t,e[2].map(i=>i[3])),e[2]=void 0)}async function xv(t,e,i,a){let l;try{await Promise.all(t.map(c=>c[1].then(async u=>{const f=c[0];if(!(a&&f>=await a)){if(u[0]>=Et)throw[f,u];!l&&u[0]!==kn&&(l=[f,u],await Promise.all((i??[]).map(p=>{if(!(p[0]<=f))return p[1].then(m=>{if(m[0]===Et)throw[p[0],m]})})))}})))}catch(c){return c}return e??l}function Hf(t,e,i,a,l,c){for(;a[0]===Et;){const u=a[1],f=u.options;try{if((f.href||u.headers.has("Location"))&&(t.resolveRedirect(u),f.reloadDocument)||(f.reloadDocument?l[3]:l[1]>=20))return a;const p=t.buildLocation({...f,_fromLocation:e[0],_includeValidateSearch:!0}),m=p.maskedLocation??p;if(m.external){const g=u.clone();return g.options={...f},g.headers.set("Location",m.publicHref),t.resolveRedirect(g),l[3]?[Et,g]:[Et,g,m]}return[Et,u,p]}catch(p){a=c?[Xn,p]:Nf(i,p),c=!0}}return a}async function f0(t,e,i,a,l,c){const u=e[1];let f=await l,p=!1;const m=u.findIndex(_=>_._notFound),g=_=>_[1][0]===nc?of(t,u,_,a.signal):_[0];let v=m<0?u.length:m;if((f?.[1][0]??0)>=Et)v=0;else if(f){v=f[2]??=await g(f);for(const _ of i){if(_[0]>=v)break;const S=await _[1];if(S[0]!==kn&&S[0]<Et&&!("loaderData"in u[_[0]])){f=[_[0],S],v=f[2]=await g(f);break}}}for(const _ of i){if(_[0]>=v)break;const S=await _[2];if(S){f=S;break}}if((f?.[1][0]??0)>=Et){const _=f[1];if(_[0]!==Et||_[1].options.reloadDocument||_[2])return pi(t,e),_;p=!0,f=[0,[Xn,new Error("Too many redirects")]]}const b=f?f[2]??await g(f):m;if(b>=0){const _=f?.[1],S=_?.[0],E=u[b],T=_?.[1],R=()=>{_&&(E._notFound=void 0,S===Xn?E.status="error":(T.routeId=E.routeId,E.routeId===t.routeTree.id?(E.status="success",E._notFound=!0):E.status="notFound"),E.error=T,E.isFetching=!1)};R(),_||c?.();const C=hn(t,E);try{await Wn(_?Promise.resolve().then(()=>Qn(C,S===Xn?"errorComponent":"notFoundComponent")):Promise.all([Qn(C),Qn(C,"notFoundComponent")]),a.signal)}catch(j){if(j===a.signal&&a.signal.aborted)return pi(t,e),Ur}_?p&&(a.abort(),await Promise.all([...i.map(j=>j[1]),...i.map(j=>j[2]),...(e[2]??[]).map(j=>j[1])]),pi(t,e),_t(t,u),R()):E.status="success"}return e}async function Pf(t,e,i,a=0,l=e[1].length){const c=e[1];for(let u=a;u<l;u++){const f=c[u],p=hn(t,f).options;if(p.head||p.scripts)try{const m={ssr:t.options.ssr,matches:c,match:f,params:f.params,loaderData:f.loaderData},[g,v]=await Wn(Promise.all([p.head?.(m),p.scripts?.(m)]),i);f.meta=g?.meta,f.links=g?.links,f.headScripts=g?.scripts,f.styles=g?.styles,f.scripts=v}catch(m){if(m===i&&i.aborted)break;console.error(m)}if(f.status!=="success"||f._notFound)break}return e}async function d0(t,e,i,a){const l=[e,i],c=a[0].signal;let u;
11try{const f=t.stores.matches.get();let p=i.findIndex(R=>R._notFound);if(t.options.notFoundMode!=="root"&&p>=0){const R=await of(t,i,void 0,c,p);i[p]._notFound=void 0,i[R]._notFound=!0,p=R}let m=p<0?i.length:p+1,g=0;for(;g<m&&g!==p;){const R=i[g],C=a[2][g],j=f[g];if(C?.id!==R.id||C.status!=="success"||R.preload||j?.id!==R.id||j.status!=="success"||(g++,C._notFound||j._notFound))break}const v=[],b=a[6]??0;let _=b?Promise.resolve(i[b-1]):void 0;const S=()=>{for(let R=b;R<m&&!c.aborted;R++)_=DE(t,l,R,v,_,a,g)},E=await zE(t,l,a,m,S,g);if(E){if(a[4]=!0,m=E[0],E[1][0]===nc){const R=await of(t,i,E,c);E[2]=R,m=Math.min(m,R+1)}else E[1][0]>=Et&&(m=0);S()}if(!c.aborted&&!a[3]){const R=[];for(const[C,j]of t._flights??[])j[2]||(t._flights.delete(C),R.push(j[1]));for(const C of R)C.abort()}const T=f0(t,l,v,a[0],xv(v,E,l[2]),a[7]);l[2]?.length&&(l[3]=xv(l[2],void 0,void 0,T.then(R=>Ms(R)?0:Lf(i).length,()=>0))),u=await T}catch(f){if(pi(t,l),f===c&&c.aborted)return Ur;throw f}return Ms(u)?u:Pf(t,u,c,a[6]===i.length?a[6]:0)}function lf(t,e){if(t._tx!==e)return;const i=e[3],a=t.stores.matches.get();let l=t._pending;for(let c=0;c<i.length;c++){const u=i[c],f=u.status==="success"&&!u._notFound,p=a[c]?.id===u.id&&a[c]?.status==="pending";if(f&&!p)continue;const m=hn(t,u),g=f||u.invalid?0:m.options.pendingMs??t.options.defaultPendingMs,v=m.options.pendingComponent??t.options.defaultPendingComponent;if(!v||typeof g!="number"||g===1/0){l&&(l[0]=e,l[2]=0,l[4]=!0);return}const b=m.options.pendingMinMs??t.options.defaultPendingMinMs??0;let _=!1;if(l?.[1]===u.id?(_=l[0]!==e,l[0]=e):(clearTimeout(l?.[3]),t._pending=l=void 0),l||(t._pending=l=[e,u.id,p?Date.now()+b:e[4]+g,void 0,p||void 0,v]),l[4]&&!_&&l[5]===v)return;if(l[5]=v,!l[4]){clearTimeout(l[3]);const T=l[2]-Date.now();if(T>0){l[3]=setTimeout(()=>lf(t,e),T);return}l[2]=0}const S=i.map(T=>({...T,_flight:void 0}));S[c].status="pending";const E=l[4]=t.startTransition(()=>t.stores.setMatches(S),S).then(T=>(T&&t._pending===l&&l[4]===E&&!l[2]&&(l[2]=Date.now()+b),T));return}}function Ss(t,e){const i=t._pending;(t._tx===e||!t._tx?.[3].some(a=>a.id===i?.[1]))&&(clearTimeout(i?.[3]),t._pending=void 0)}async function zv(t,e){const i=t._pending;if(!i)return;clearTimeout(i[3]);const a=i[2]-Date.now();if(!i[4]||a<=0||!Lf(e[3]).some(c=>c.id===i[1]))return;let l;try{await Wn(new Promise(c=>{l=setTimeout(c,a)}),e[0].signal)}catch{}clearTimeout(l)}function p0(t,e){t._committed=e,t.stores.setMatches(e)}function LE(t,e,i,a){const l=t._committed,c=t._lifecycleEnd,u=t._cache;for(const g of i)g.preload=!1,a&&(g._assetEnd=void 0);const f=Lf(i).length,p=new Map;{const g=Date.now(),v=new Set;for(let b=0;b<i.length;b++){const _=i[b];(b<f||_.status==="success")&&v.add(_.id)}for(const b of[...l,...u.values()]){if(b.status!=="success"||v.has(b.id))continue;const _=hn(t,b);!_.options.loader||g-b.updatedAt>=(b.preload?_.options.preloadGcTime??t.options.defaultPreloadGcTime??3e5:_.options.gcTime??t.options.defaultGcTime??3e5)||p.set(b.id,u.get(b.id)===b?b:{...b,_flight:void 0,isFetching:!1,context:{}})}}e[3]=[],t._cache=p;const m=t._lifecycleEnd=l0(i);p0(t,i),_t(t,[...u.values(),...l].filter(g=>g._flight&&p.get(g.id)!==g),i),kE(t,l,i,c,m,e)}async function _l(t,e){let i=t._tx;for(;i&&i!==e;)e=i,await i[5],i=t._tx}function m0(t,e,i){const a=i[1].options,l=i[2];if(!l)return t.navigate({...a,replace:!0,ignoreBlocker:!0});if(a.reloadDocument)return t.navigate({href:(l.maskedLocation??l).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});l._redirects=e[1]+1,t._pendingLocation=l;const c=t.commitLocation({...l,viewTransition:a.viewTransition,replace:!0,resetScroll:a.resetScroll,hashScrollIntoView:a.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{t._pendingLocation===l&&(t._pendingLocation=void 0)}),c}async function NE(t,e,i,a,l){const c=i.map(p=>({...p}));Uf(c);for(const p of a)Jn(t,c[p[0]]),c[p[0]]=p[3];const u=[e[2],c];let f;try{f=await f0(t,u,a,e[0],l)}catch(p){throw _t(t,c),p}if(Ms(f)){_t(t,c),f[0]===Et&&t._tx===e&&t._committed===i&&await m0(t,e,f);return}if(await Pf(t,f,e[0].signal),t._tx!==e||t._committed!==i){_t(t,c);return}
11for(const p of c){const m=t._cache.get(p.id);m?._flight&&m._flight===p._flight&&(t._cache.delete(p.id),Jn(t,m))}p0(t,c),_t(t,i,c)}async function ME(t,e,i,a,l,c){const u=await d0(t,e[2],e[3],[e[0],e[1],t._committed,void 0,l,i,c,a]);if(Ms(u)){const v=u[0]===Et&&t._tx===e;if((!v||u[1].options.reloadDocument)&&Ss(t,e),_t(t,e[3]),e[3]=[],!v)return;if(t._tx!==e){Ss(t,e);return}await m0(t,e,u);return}const f=u[1];if(t._tx===e&&await zv(t,e),t._tx!==e){Ss(t,e),_t(t,f),pi(t,u);return}const p=e[2],m=tc(p,t.stores.resolvedLocation.get()),g=u[2];await t.startViewTransition(async()=>{if(t._tx===e&&await zv(t,e),t._tx!==e){Ss(t,e),_t(t,f),pi(t,u);return}const v=()=>{Ss(t,e),LE(t,e,f,c),t._tx===e&&(t.emit({type:"onLoad",...m}),t._tx===e&&t.emit({type:"onBeforeRouteMount",...m}))},b=await t.startTransition(v,f);if(t._tx!==e){pi(t,u);return}g?.length&&NE(t,e,f,g,u[3]).catch(console.error),t.batch(()=>{t.stores.resolvedLocation.set(p),t.stores.status.set("idle"),t._tx===e&&t.emit({type:"onResolved",...m}),b&&t._tx===e&&t.emit({type:"onRendered",...m})}),t._tx===e&&(t._commitPromise?.resolve(),t._commitPromise=void 0)})}async function UE(t,e){const i=t._tx,a=t.stores.resolvedLocation.get(),l=a??t.stores.location.get(),c=t.latestLocation,u=t._pendingLocation,f=u?.href===c.href?u._redirects??0:0,p=t._handoff,m=p?.[0](),g=new AbortController,v=t._preflight;if(t._preflight=g,m||p?.[1](),v?.abort(),!g.signal.aborted){const I=tc(c,a);t.emit({type:"onBeforeNavigate",...I}),g.signal.aborted||t.emit({type:"onBeforeLoad",...I})}if(g.signal.aborted){await _l(t,i);return}const b=l.href===c.href;let _=g;const S=t.matchRoutes(c,{_controller:g});Uf(S);const E=m?p[1](S):void 0;if(E?_=m:m?.abort(),g.signal.aborted){_t(t,S),await _l(t,i);return}t._preflight=void 0;let T;const R=()=>ME(t,j,b,()=>lf(t,j),e?.sync,E),C=e?.sync?new Promise(I=>T=I):Promise.resolve().then(R),j=[_,f,c,S,Date.now(),C.then(()=>_l(t,j))];if(t._tx=j,i){for(const I of t.stores.matches.get()){if(t._tx!==j)break;I.isFetching&&Hs(t,I,!1)}i[0].abort(),_t(t,i[3],j[3],!0)}if(t._tx!==j){_t(t,j[3]),j[3]=[],T?.(),await _l(t,j);return}t.batch(()=>{t.stores.status.set("pending"),t.stores.location.set(c)}),(E||!t._committed.length&&S[0]?.status!=="success"&&!S.some(I=>I._notFound))&&lf(t,j),T?.(R()),await j[5]}async function HE(t,e){let i=t.buildLocation(e);for(let a=0;;a++){const l=t._committed,c=new AbortController;let u,f,p;try{try{u=t.matchRoutes(i,{_controller:c}),Uf(u),f=(t._preloads??=new Map).set(c,u),p=await d0(t,i,u,[c,a,l,!0])}finally{f&&(f=f.delete(c),_t(t,u)),c.abort()}if(!Ms(p))return p[1];if(!f||p.length<3)return;i=p[2]}catch(m){mi(m)||console.error(m);return}}}async function PE(t){const e=window.$_TSR,i=t.options.serializationAdapters;i?.length&&(e.t=new Map(i.map(G=>[G.key,G.fromSerializable])),e.buffer.forEach(G=>G())),e.initialized=!0;const a=e.router;t.ssr={manifest:a.manifest},t.options.ssr={nonce:document.querySelector('meta[property="csp-nonce"]')?.content};const l=a.matches,c=new AbortController,u=t._preflight;t._preflight=c,u?.abort();const f=()=>t._preflight===c;let p,m,g,v;try{if(await Wn(t.options.hydrate?.(a.dehydratedData),c.signal),!f())return;const G=t.history.location;g=G.href,v=G.state,t.updateLatestLocation(),p=t.latestLocation,t.stores.location.set(p),m=t.matchRoutes(p,{_controller:c})}catch(G){if(f()&&(t._preflight=void 0),c.abort(G),G!==c.signal)throw G}if(!f())return;const b=[];let _,S=0;const E=G=>{S=Math.min(S,G+1);const Z=b.splice(G);for(const X of Z)hn(t,X).options.loader&&(X.status==="success"||!X.invalid&&"loaderData"in X)&&h0(t,{...X,status:"success",error:void 0,preload:!0},t._cache.get(X.id));_t(t,Z)},T=l.length>m.length?m.findIndex(G=>G._notFound)+1:l.length;let R=!1;for(let G=0;G<T;G++){const Z=m[G],X=l[G];if(typeof X.i!="string"||HS(X.i)!==Z.id){_??=G;break}S=G+1;const ge=hn(t,Z);if(("l"in X||X.s==="success"&&X.e===void 0&&ge.options.loader)&&(Z.loaderData=X.l),Z.status=X.s,Z.ssr=X.ssr,ge.options.ssr=Z.ssr,Z.updatedAt=X.u,Z.error=X.e,Z._notFound||=X.g,Z.status==="error"||Z.status==="notFound"||Z._notFound){R=!0,b.push(Z),(Z.ssr===!1||Z.ssr==="data-only")&&(_??=G);break}if(Z.status==="pending"){_??=G;break}b.push(Z),Z.ssr==="data-only"&&(_??=G)}!R&&b.length===T&&T<m.length&&(_=T);const C=b.map(async G=>{try{const Z=hn(t,G);return await(G._notFound?Promise.all([Qn(Z),Qn(Z,"notFoundComponent")]):Qn(Z,G.status==="error"?"errorComponent":G.status==="notFound"?"notFoundComponent":void 0)),!0}catch{return!1}});let j=0;try{for(;j<C.length&&await Wn(C[j],c.signal);)j++}catch{return}if(!f())return;j<b.length&&E(j);const I=Math.max(_===b.length?b.length+1:b.length,j<C.length?j:S);for(let G=0;G<I;G++){const Z=m[G],X=hn(t,Z),ge=m[G-1]?.context??t.options.context??{};let ce;if(X.options.context){try{ce=Z._ctx=X.options.context({deps:Z.loaderDeps,params:Z.params,context:ge,location:p,navigate:M=>t.navigate({...M,_fromLocation:p}),buildLocation:t.buildLocation,cause:Z.cause,abortController:c,preload:!1,matches:m,routeId:X.id})||{}}catch{if(!f())return;if(Z.status!=="error"&&Z.status!=="notFound"&&!Z._notFound){_=Math.min(_??G,G),E(G);break}}if(!f())return}Z.context={...ge,...ce,...b[G]&&l[G].b}}if(await Pf(t,[p,m],c.signal,0,S),!f())return;const J=_!==void 0||b.length<T,P=R&&b.length===T?m:b;let z=J?m:P,K;if(J&&_!==void 0){const G=z[_];K=G.ssr==="data-only"&&S>_+1?S:void 0,z=z.slice(),z[_]={...G,status:"pending",ssr:G.ssr==="data-only"?"data-only":!1,_assetEnd:K}}const ne=()=>{const G=t.history.location;return J&&!t._tx&&G.href===g&&G.state===v&&t._committed===P&&P.length&&!c.signal.aborted?c:void 0},ue=[ne,G=>{if(t._handoff!==ue)return;t._handoff=void 0;const Z=P.length;if(!G||!ne()||P.some((ce,M)=>ce.id!==G[M]?.id)){c.abort();return}let X=K;if(X!==void 0){for(let ce=Z;ce<X;ce++)if(m[ce]?.id!==G[ce]?.id){X=ce>_+1?ce:void 0;break}}const ge=P.map(ce=>({...ce}));X!==void 0&&(ge[_]._assetEnd=X),_t(t,G.splice(0,Z,...ge));for(let ce=Z;ce<G.length;ce++){const M=G[ce],Y=m[ce];
11Y?.id===M.id&&Y._ctx&&(M._ctx=Y._ctx),M.abortController=c}return Z}];t._committed=P,t._lifecycleEnd=l0(P),t._handoff=ue,t._preflight=void 0,t.batch(()=>{t.stores.setMatches(z),t.stores.status.set("idle"),J||t.stores.resolvedLocation.set(t.stores.location.get())})}const er=Symbol.asyncIterator,g0=Symbol.hasInstance,Ea=Symbol.isConcatSpreadable,tr=Symbol.iterator,v0=Symbol.match,y0=Symbol.matchAll,b0=Symbol.replace,_0=Symbol.search,w0=Symbol.species,S0=Symbol.split,E0=Symbol.toPrimitive,ka=Symbol.toStringTag,k0=Symbol.unscopables,T0={[er]:0,[g0]:1,[Ea]:2,[tr]:3,[v0]:4,[y0]:5,[b0]:6,[_0]:7,[w0]:8,[S0]:9,[E0]:10,[ka]:11,[k0]:12},BE={0:er,1:g0,2:Ea,3:tr,4:v0,5:y0,6:b0,7:_0,8:w0,9:S0,10:E0,11:ka,12:k0},IE={2:!0,3:!1,1:void 0,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:NaN},$E={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},qE={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function Oe(t,e,i,a,l,c,u,f,p,m,g,v){return{t,i:e,s:i,c:a,m:l,p:c,e:u,a:f,f:p,b:m,o:g,l:v}}function Pr(t){return Oe(2,void 0,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}const R0=Pr(2),A0=Pr(3),VE=Pr(1),GE=Pr(0),ZE=Pr(4),KE=Pr(5),FE=Pr(6),YE=Pr(7),JE=64,QE=/[\x00-\x07\x0b\x0e-\x1f<\u2028\u2029\ud800-\udfff]/;function XE(t){switch(t){case'"':return'\\"';case"\\":return"\\\\";case` 12`: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 gi(t){if(t.length>=JE&&!QE.test(t))return JSON.stringify(t).slice(1,-1);let e="",i=0,a;for(let l=0,c=t.length;l<c;l++)a=XE(t[l]),a&&(e+=t.slice(i,l)+a,i=l+1);return i===0?e=t:e+=t.slice(i),e}function WE(t){switch(t){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return` 13`;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 t}}function Br(t){return typeof t=="string"&&!t.includes("\\")?t:t.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,WE)}const ek={parsing:1,serialization:2,deserialization:3};function tk(t){return`Seroval Error (step: ${ek[t]})`}const nk=(t,e)=>tk(t);var O0=class extends Error{constructor(t,e){super(nk(t)),this.cause=e}},Dv=class extends O0{constructor(t){super("parsing",t)}},rk=class extends O0{constructor(t){super("deserialization",t)}};function nr(t){return`Seroval Error (specific: ${t})`}var vi=class extends Error{constructor(t){super(nr(1)),this.value=t}},Bf=class extends Error{constructor(t){super(nr(2))}},ik=class extends Error{constructor(t){super(nr(3))}},rc=class extends Error{constructor(t){super(nr(4))}},ak=class extends Error{constructor(t){super(nr(5)),this.value=t}},sk=class extends Error{constructor(t){super(nr(6))}},ok=class extends Error{constructor(t){super(nr(7))}},ht=class extends Error{constructor(t){super(nr(8))}},j0=class extends Error{constructor(t){super(nr(9))}};const wl="__SEROVAL_REFS__",C0=new Map,va=new Map;function x0(t){return C0.has(t)}function lk(t){return va.has(t)}function ck(t){if(x0(t))return C0.get(t);throw new ak(t)}function uk(t){if(lk(t))return va.get(t);throw new sk(t)}typeof globalThis<"u"?Object.defineProperty(globalThis,wl,{value:va,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,wl,{value:va,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,wl,{value:va,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,wl,{value:va,configurable:!0,writable:!1,enumerable:!1});function If(t){return t instanceof EvalError?1:t instanceof RangeError?2:t instanceof ReferenceError?3:t instanceof SyntaxError?4:t instanceof TypeError?5:t instanceof URIError?6:0}function hk(t){const e=$E[If(t)];return t.name!==e?{name:t.name}:t.constructor.name!==e?{name:t.constructor.name}:{}}function z0(t,e){let i=hk(t);const a=Object.getOwnPropertyNames(t);for(let l=0,c=a.length,u;l<c;l++)u=a[l],u!=="name"&&u!=="message"&&(u==="stack"?e&4&&(i=i||{},i[u]=t[u]):(i=i||{},i[u]=t[u]));return i}function D0(t){return Object.isFrozen(t)?3:Object.isSealed(t)?2:Object.isExtensible(t)?0:1}function fk(t){switch(t){case Number.POSITIVE_INFINITY:return KE;case Number.NEGATIVE_INFINITY:return FE}return t!==t?YE:Object.is(t,-0)?ZE:Oe(0,void 0,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function L0(t){return Oe(1,void 0,gi(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function dk(t){return Oe(3,void 0,""+t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function pk(t){return Oe(4,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function mk(t,e){const i=e.valueOf();return Oe(5,t,i!==i?"":e.toISOString(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function jr(t,e,i){return Oe(36,t,i.toString(),e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function gk(t,e){return Oe(6,t,void 0,gi(e.source),e.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function vk(t,e){return Oe(17,t,T0[e],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function yk(t,e){return Oe(18,t,gi(ck(e)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function bk(t,e,i){return Oe(25,t,i,gi(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function _k(t,e,i){return Oe(9,t,void 0,void 0,void 0,void 0,void 0,i,void 0,void 0,D0(e),void 0)}function wk(t,e){return Oe(21,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}const $f=1e6;function Sk(t,e,i){if(e.length>$f)throw new vi(e);return Oe(15,t,void 0,e.constructor.name,void 0,void 0,void 0,void 0,i,e.byteOffset,void 0,e.length)}function Ek(t,e,i){if(e.length>$f)throw new vi(e);return Oe(16,t,void 0,e.constructor.name,void 0,void 0,void 0,void 0,i,e.byteOffset,void 0,e.length)}function kk(t,e,i){if(e.byteLength>$f)throw new vi(e);return Oe(20,t,void 0,void 0,void 0,void 0,void 0,void 0,i,e.byteOffset,void 0,e.byteLength)}function Tk(t,e,i){return Oe(13,t,If(e),void 0,gi(e.message),i,void 0,void 0,void 0,void 0,void 0,void 0)}
13function Rk(t,e,i){return Oe(14,t,If(e),void 0,gi(e.message),i,void 0,void 0,void 0,void 0,void 0,void 0)}function Ak(t,e){return Oe(7,t,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0,void 0)}function Ok(t,e){return Oe(28,void 0,void 0,void 0,void 0,void 0,void 0,[t,e],void 0,void 0,void 0,void 0)}function jk(t,e){return Oe(30,void 0,void 0,void 0,void 0,void 0,void 0,[t,e],void 0,void 0,void 0,void 0)}function Ck(t,e,i){return Oe(31,t,void 0,void 0,void 0,void 0,void 0,i,e,void 0,void 0,void 0)}function xk(t,e){return Oe(32,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function zk(t,e){return Oe(33,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function Dk(t,e){return Oe(34,t,void 0,void 0,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0)}function Lk(t,e,i,a){return Oe(35,t,i,void 0,void 0,void 0,void 0,e,void 0,void 0,void 0,a)}var Nk=class{constructor(t,e){this.value=t,this.replacement=e}};const qf=()=>{const t={p:0,s:0,f:0};return t.p=new Promise((e,i)=>{t.s=e,t.f=i}),t},Mk=t=>e=>()=>{let i=0;const a={[t](){return a},next(){if(i>e.d)return{done:!0,value:void 0};const l=i++,c=e.v[l];if(l===e.t)throw c;return{done:l===e.d,value:c}}};return a},Uk=(t,e)=>i=>()=>{let a=0,l=-1,c=!1;const u=[],f=[],p={finalize(g=0,v=f.length){for(;g<v;g++)f[g].s({done:!0,value:void 0})}};i.on({next(g){const v=f.shift();v&&v.s({done:!1,value:g}),u.push(g)},throw(g){const v=f.shift();v&&v.f(g),p.finalize(),l=u.length,c=!0,u.push(g)},return(g){const v=f.shift();v&&v.s({done:!0,value:g}),p.finalize(),l=u.length,u.push(g)}});const m={[t](){return m},next(){if(l===-1){const b=a++;if(b>=u.length){const _=e();return f.push(_),_.p}return{done:!1,value:u[b]}}if(a>l)return{done:!0,value:void 0};const g=a++,v=u[g];if(g!==l)return{done:!1,value:v};if(c)throw v;return{done:!0,value:v}}};return m},Hk=t=>{const e=atob(t),i=e.length,a=new Uint8Array(i);for(let l=0;l<i;l++)a[l]=e.charCodeAt(l);return a.buffer};var N0=class{constructor(t,e,i){this.v=t,this.t=e,this.d=i}};function M0(t){return t instanceof N0}function U0(t,e,i){return new N0(t,e,i)}function Pk(t){const e=[];let i=-1,a=-1;const l=t[tr]();for(;;)try{const c=l.next();if(e.push(c.value),c.done){a=e.length-1;break}}catch(c){i=e.length,a=i,e.push(c);break}return U0(e,i,a)}const Bk=Mk(tr);function Ik(t){return Bk(t)}const $k={},qk={},Vk={0:{},1:{},2:{},3:{},4:{},5:{}};function H0(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Gk(t,e){H0(t,e),e.add(t)}function Es(t,e,i){H0(t,e),e.set(t,i)}function ya(t,e,i){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}function Be(t,e){return t.get(ya(t,e))}function sa(t,e,i){return t.set(ya(t,e),i),i}var ba=new WeakMap,Zn=new WeakMap,Kn=new WeakMap,Hl=new WeakMap,an=new WeakMap,ks=new WeakSet,P0=class{constructor(){Gk(this,ks),Es(this,ba,[]),Es(this,Zn,[]),Es(this,Kn,!0),Es(this,Hl,!1),Es(this,an,0)}on(t){let e=Be(Kn,this),i=0;if(e){for(;i<Be(an,this)&&Be(Zn,this)[i];i++);if(i===Be(an,this)){var a;sa(an,this,(a=Be(an,this),a++,a))}Be(Zn,this)[i]=t}return ya(ks,this,Zk).call(this,t),()=>{if(Be(Kn,this)&&e){for(e=!1,Be(Zn,this)[i]=void 0;Be(an,this)>0&&!Be(Zn,this)[Be(an,this)-1];){var l;sa(an,this,(l=Be(an,this),l--,l))}Be(Zn,this).length=Be(an,this)}}}next(t){Be(Kn,this)&&(Be(ba,this).push(t),ya(ks,this,$h).call(this,t,"next"))}throw(t){Be(Kn,this)&&(Be(ba,this).push(t),ya(ks,this,$h).call(this,t,"throw"),sa(Kn,this,!1),sa(Hl,this,!1),Be(Zn,this).length=0)}return(t){Be(Kn,this)&&(Be(ba,this).push(t),ya(ks,this,$h).call(this,t,"return"),sa(Kn,this,!1),sa(Hl,this,!0),Be(Zn,this).length=0)}};function $h(t,e){for(let a=0;a<Be(an,this);a++){var i;(i=Be(Zn,this)[a])===null||i===void 0||i[e](t)}}function Zk(t){for(let e=0,i=Be(ba,this).length;e<i;e++){const a=Be(ba,this)[e];!Be(Kn,this)&&e===i-1?t[Be(Hl,this)?"return":"throw"](a):t.next(a)}}function Vf(t){return t instanceof P0}function Qs(){return new P0}function Kk(t,e){const i=Qs(),a=t[er]();let l=!1,c=!1;async function u(){try{for(;!l;){const f=await a.next();if(f.done){c=!0,i.return(f.value);break}i.next(f.value)}}catch(f){c=!0,i.throw(f)}}return u().catch(()=>{}),i}const Fk=Uk(er,qf);function Yk(t){return Fk(t)}async function Jk(t){try{return[1,await t]}catch(e){return[0,e]}}function Qk(t,e){var i;return{plugins:e.plugins,mode:t,marked:new Set,features:127^(e.disabledFeatures||0),refs:e.refs||new Map,depthLimit:e.depthLimit||1e3,compactArrayBufferViews:(i=e.compactArrayBufferViews)!==null&&i!==void 0?i:!1}}function Pl(t,e){t.marked.add(e)}function Xk(t,e){const i=t.refs.size;return t.refs.set(e,i),i}function ic(t,e){const i=t.refs.get(e);return i!=null?(Pl(t,i),{type:1,value:pk(i)}):{type:0,value:Xk(t,e)}}function Gf(t,e){const i=ic(t,e);
13return i.type===1?i:x0(e)?{type:2,value:yk(i.value,e)}:i}function hi(t,e){const i=Gf(t,e);if(i.type!==0)return i.value;if(e in T0)return vk(i.value,e);throw new vi(e)}function ac(t,e){const i=ic(t,Vk[e]);return i.type===1?i.value:Oe(26,i.value,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Wk(t){const e=ic(t,$k);return e.type===1?e.value:Oe(27,e.value,void 0,void 0,void 0,void 0,void 0,void 0,hi(t,tr),void 0,void 0,void 0)}function eT(t){const e=ic(t,qk);return e.type===1?e.value:Oe(29,e.value,void 0,void 0,void 0,void 0,void 0,[ac(t,1),hi(t,er)],void 0,void 0,void 0,void 0)}function tT(t,e,i,a){return Oe(i?11:10,t,void 0,void 0,void 0,a,void 0,void 0,void 0,void 0,D0(e),void 0)}function nT(t,e,i,a){return Oe(8,e,void 0,void 0,void 0,void 0,{k:i,v:a},void 0,ac(t,0),void 0,void 0,void 0)}function Zf(t,e){if(!t.compactArrayBufferViews)return e;const i=new Uint8Array(e.buffer,e.byteOffset,e.byteLength).slice().buffer,a=e.constructor;return new a(i)}function rT(t){if(typeof Buffer<"u")return Buffer.from(t).toString("base64");const e=new Uint8Array(t);if(typeof e.toBase64=="function")return e.toBase64();let i="";for(let a=0,l=e.length;a<l;a++)i+=String.fromCharCode(e[a]);return btoa(i)}function iT(t,e,i){return Oe(19,e,rT(i),void 0,void 0,void 0,void 0,void 0,ac(t,5),void 0,void 0,void 0)}function aT(t,e){return{base:Qk(t,e),child:void 0}}var sT=class{constructor(t,e){this._p=t,this.depth=e}parse(t){return ot(this._p,this.depth,t)}};async function oT(t,e,i){const a=[];for(let l=0,c=i.length;l<c;l++)l in i?a[l]=await ot(t,e,i[l]):a[l]=0;return a}async function lT(t,e,i,a){return _k(i,a,await oT(t,e,a))}async function Kf(t,e,i){const a=Object.entries(i),l=[],c=[];for(let u=0,f=a.length;u<f;u++)l.push(gi(a[u][0])),c.push(await ot(t,e,a[u][1]));return tr in i&&(l.push(hi(t.base,tr)),c.push(Ok(Wk(t.base),await ot(t,e,Pk(i))))),er in i&&(l.push(hi(t.base,er)),c.push(jk(eT(t.base),await ot(t,e,Kk(i))))),ka in i&&(l.push(hi(t.base,ka)),c.push(L0(i[ka]))),Ea in i&&(l.push(hi(t.base,Ea)),c.push(i[Ea]?R0:A0)),{k:l,v:c}}async function qh(t,e,i,a,l){return tT(i,a,l,await Kf(t,e,a))}async function cT(t,e,i,a){return wk(i,await ot(t,e,a.valueOf()))}async function uT(t,e,i,a){return a=Zf(t.base,a),Sk(i,a,await ot(t,e,a.buffer))}async function hT(t,e,i,a){return a=Zf(t.base,a),Ek(i,a,await ot(t,e,a.buffer))}async function fT(t,e,i,a){return a=Zf(t.base,a),kk(i,a,await ot(t,e,a.buffer))}async function Lv(t,e,i,a){const l=z0(a,t.base.features);return Tk(i,a,l?await Kf(t,e,l):void 0)}async function dT(t,e,i,a){const l=z0(a,t.base.features);return Rk(i,a,l?await Kf(t,e,l):void 0)}async function pT(t,e,i,a){const l=[],c=[];for(const[u,f]of a.entries())l.push(await ot(t,e,u)),c.push(await ot(t,e,f));return nT(t.base,i,l,c)}async function mT(t,e,i,a){const l=[];for(const c of a.keys())l.push(await ot(t,e,c));return Ak(i,l)}async function B0(t,e,i,a){const l=t.base.plugins;if(l)for(let c=0,u=l.length;c<u;c++){const f=l[c];if(f.parse.async&&f.test(a))return bk(i,f.tag,await f.parse.async(a,new sT(t,e),{id:i}))}}async function gT(t,e,i,a){const[l,c]=await Jk(a);return Oe(12,i,l,void 0,void 0,void 0,void 0,void 0,await ot(t,e,c),void 0,void 0,void 0)}function vT(t,e,i,a,l){const c=[],u=i.on({next:f=>{Pl(this.base,e),ot(this,t,f).then(p=>{c.push(xk(e,p))},p=>{l(p),u()})},throw:f=>{Pl(this.base,e),ot(this,t,f).then(p=>{c.push(zk(e,p)),a(c),u()},p=>{l(p),u()})},return:f=>{Pl(this.base,e),ot(this,t,f).then(p=>{c.push(Dk(e,p)),a(c),u()},p=>{l(p),u()})}})}async function yT(t,e,i,a){return Ck(i,ac(t.base,4),await new Promise(vT.bind(t,e,i,a)))}async function bT(t,e,i,a){const l=[];for(let c=0,u=a.v.length;c<u;c++)l[c]=await ot(t,e,a.v[c]);return Lk(i,l,a.t,a.d)}async function _T(t,e,i,a){if(Array.isArray(a))return lT(t,e,i,a);if(Vf(a))return yT(t,e,i,a);if(M0(a))return bT(t,e,i,a);let l=a.constructor;if(l!==void 0&&typeof l!="function"){const f=Object.getPrototypeOf(a);l=f===null?void 0:f.constructor}if(l===Nk)return ot(t,e,a.replacement);const c=await B0(t,e,i,a);if(c)return c;switch(l){case Object:return qh(t,e,i,a,!1);case void 0:return qh(t,e,i,a,!0);case Date:return mk(i,a);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Lv(t,e,i,a);case Number:case Boolean:case String:case BigInt:return cT(t,e,i,a);case ArrayBuffer:return iT(t.base,i,a);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return uT(t,e,i,a);case DataView:return fT(t,e,i,a);case Map:return pT(t,e,i,a);case Set:return mT(t,e,i,a)}
13if(l===Promise||a instanceof Promise)return gT(t,e,i,a);const u=t.base.features;if(u&32&&l===RegExp)return gk(i,a);if(u&16)switch(l){case BigInt64Array:case BigUint64Array:return hT(t,e,i,a)}if(u&1&&typeof AggregateError<"u"&&(l===AggregateError||a instanceof AggregateError))return dT(t,e,i,a);if(u&64&&typeof Temporal<"u")switch(l){case Temporal.Instant:return jr(i,0,a);case Temporal.Duration:return jr(i,1,a);case Temporal.PlainDate:return jr(i,2,a);case Temporal.PlainDateTime:return jr(i,3,a);case Temporal.PlainMonthDay:return jr(i,4,a);case Temporal.PlainTime:return jr(i,5,a);case Temporal.PlainYearMonth:return jr(i,6,a);case Temporal.ZonedDateTime:return jr(i,7,a)}if(a instanceof Error)return Lv(t,e,i,a);if(tr in a||er in a)return qh(t,e,i,a,!!l);throw new vi(a)}async function wT(t,e,i){const a=Gf(t.base,i);if(a.type!==0)return a.value;const l=await B0(t,e,a.value,i);if(l)return l;throw new vi(i)}async function ot(t,e,i){if(e>=t.base.depthLimit)throw new j0(t.base.depthLimit);switch(typeof i){case"boolean":return i?R0:A0;case"undefined":return VE;case"string":return L0(i);case"number":return fk(i);case"bigint":return dk(i);case"object":if(i){const a=Gf(t.base,i);return a.type===0?await _T(t,e+1,a.value,i):a.value}return GE;case"symbol":return hi(t.base,i);case"function":return wT(t,e,i);default:throw new vi(i)}}async function ST(t,e){try{return await ot(t,0,e)}catch(i){throw i instanceof Dv?i:new Dv(i)}}function I0(t,e){for(let i=0,a=e.length;i<a;i++){const l=e[i];t.has(l)||(t.add(l),l.extends&&I0(t,l.extends))}}function $0(t){if(t){const e=new Set;return I0(e,t),[...e]}}function ET(t){switch(t){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 ok(t)}}function kT(t){switch(t){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function TT(t){switch(t){case er:case Ea:case ka:case tr:return!0;default:return!1}}const RT=1e6,AT=512,OT=1e4,jT=2e4;function q0(t,e){switch(e){case 3:return Object.freeze(t);case 1:return Object.preventExtensions(t);case 2:return Object.seal(t);default:return t}}const CT=1e3;function xT(t,e){var i,a;const l=(i=e.maxBase64Length)!==null&&i!==void 0?i:RT;if(!Number.isSafeInteger(l)||l<0)throw new RangeError("maxBase64Length must be a non-negative safe integer");const c=e.refs||new Map;return"types"in c||Object.assign(c,{types:new Map}),{mode:t,plugins:e.plugins,refs:c,features:(a=e.features)!==null&&a!==void 0?a:127^(e.disabledFeatures||0),depthLimit:e.depthLimit||CT,maxBase64Length:l}}function zT(t){return{mode:2,base:xT(2,t),child:void 0}}var DT=class{constructor(t,e){this._p=t,this.depth=e}deserialize(t){return Ve(this._p,this.depth,t)}};function V0(t,e){if(e<0||!Number.isFinite(e)||!Number.isInteger(e))throw new ht({t:4,i:e});if(t.refs.has(e))throw new Error("Conflicted ref id: "+e)}function G0(t){return!!t&&(typeof t=="object"||typeof t=="function")&&"then"in t&&typeof t.then=="function"}function LT(t,e,i){return V0(t.base,e),t.state.marked.has(e)&&t.base.refs.set(e,i),i}function NT(t,e,i){return V0(t.base,e),t.base.refs.set(e,i),i}function at(t,e,i){return t.mode===1?LT(t,e,i):NT(t,e,i)}function cf(t,e,i){if(Object.hasOwn(e,i))return e[i];throw new ht(t)}function MT(t,e){return at(t,e.i,uk(Br(e.s)))}function Hr(t,e){if(!Array.isArray(e))throw new ht(t)}function UT(t,e,i){const a=i.a;Hr(i,a);const l=a.length,c=at(t,i.i,new Array(l));for(let u=0,f;u<l;u++)f=a[u],f&&(c[u]=Ve(t,e,f));return q0(c,i.o),c}function Nv(t,e,i){kT(e)?t[e]=i:Object.defineProperty(t,e,{value:i,configurable:!0,enumerable:!0,writable:!0})}function HT(t,e,i,a,l){if(typeof a=="string")Nv(i,Br(a),Ve(t,e,l));else{const c=Ve(t,e,a);switch(typeof c){case"string":Nv(i,c,Ve(t,e,l));break;case"symbol":TT(c)&&(i[c]=Ve(t,e,l));break;default:throw new ht(a)}}}
13function Z0(t,e,i){t.base.refs.types.set(e,i)}function sc(t,e,i,a){if(t.base.refs.types.get(i)!==a)throw new ht(e)}function K0(t,e,i,a){const l=i.k;if(Hr(i,l),Hr(i,i.v),l.length>0)for(let c=0,u=i.v,f=l.length;c<f;c++)HT(t,e,a,l[c],u[c]);return a}function PT(t,e,i){const a=at(t,i.i,i.t===10?{}:Object.create(null));return K0(t,e,i.p,a),q0(a,i.o),a}function BT(t,e){return at(t,e.i,new Date(e.s))}function IT(t,e){if(!(t.base.features&64))throw new Bf(e);let i;switch(e.c){case 0:i=Temporal.Instant.from(e.s);break;case 1:i=Temporal.Duration.from(e.s);break;case 2:i=Temporal.PlainDate.from(e.s);break;case 3:i=Temporal.PlainDateTime.from(e.s);break;case 4:i=Temporal.PlainMonthDay.from(e.s);break;case 5:i=Temporal.PlainTime.from(e.s);break;case 6:i=Temporal.PlainYearMonth.from(e.s);break;case 7:i=Temporal.ZonedDateTime.from(e.s);break;default:throw new ht(e)}return at(t,e.i,i)}function $T(t,e){if(t.base.features&32){const i=Br(e.c);if(i.length>jT)throw new ht(e);return at(t,e.i,new RegExp(i,e.m))}throw new Bf(e)}function qT(t,e,i){const a=at(t,i.i,new Set);Hr(i,i.a);for(let l=0,c=i.a,u=c.length;l<u;l++)a.add(Ve(t,e,c[l]));return a}function VT(t,e,i){const a=at(t,i.i,new Map);Hr(i,i.e.k),Hr(i,i.e.v);for(let l=0,c=i.e.k,u=i.e.v,f=c.length;l<f;l++)a.set(Ve(t,e,c[l]),Ve(t,e,u[l]));return a}function GT(t,e){if(typeof e.s!="string")throw new ht(e);if(e.s.length>t.base.maxBase64Length)throw new RangeError("ArrayBuffer exceeds maxBase64Length ("+t.base.maxBase64Length+")");const i=Br(e.s);let a;if(i.length<AT||typeof Buffer>"u")a=Hk(i);else{const l=atob(i);a=new ArrayBuffer(l.length),Buffer.from(a).write(l,"latin1")}return at(t,e.i,a)}function ZT(t,e,i){var a;const l=ET(i.c),c=Ve(t,e,i.f);if(!(c instanceof ArrayBuffer))throw new ht(i);const u=(a=i.b)!==null&&a!==void 0?a:0;if(u<0||u>c.byteLength)throw new ht(i);return at(t,i.i,new l(c,u,i.l))}function KT(t,e,i){var a;const l=Ve(t,e,i.f);if(!(l instanceof ArrayBuffer))throw new ht(i);const c=(a=i.b)!==null&&a!==void 0?a:0;if(c<0||c>l.byteLength)throw new ht(i);return at(t,i.i,new DataView(l,c,i.l))}function F0(t,e,i,a){if(i.p){const l=K0(t,e,i.p,{});Object.defineProperties(a,Object.getOwnPropertyDescriptors(l))}return a}function FT(t,e,i){return F0(t,e,i,at(t,i.i,new AggregateError([],Br(i.m))))}function YT(t,e,i){const a=cf(i,qE,i.s);return F0(t,e,i,at(t,i.i,new a(Br(i.m))))}function JT(t,e,i){const a=qf(),l=at(t,i.i,a.p),c=Ve(t,e,i.f);if(G0(c))throw new ht(i.f);return i.s?a.s(c):a.f(c),l}function QT(t,e,i){return at(t,i.i,Object(Ve(t,e,i.f)))}function XT(t,e,i){const a=t.base.plugins;if(a){const l=Br(i.c);for(let c=0,u=a.length;c<u;c++){const f=a[c];if(f.tag===l)return at(t,i.i,f.deserialize(i.s,new DT(t,e),{id:i.i}))}}throw new ik(i.c)}function WT(t,e){const i=at(t,e.i,at(t,e.s,qf()).p);return Z0(t,e.s,22),i}function eR(t,e,i){const a=t.base.refs.get(i.i);if(a){sc(t,i,i.i,22);const l=Ve(t,e,i.a[1]);if(G0(l))throw new ht(i.a[1]);i.t===23?a.s(l):a.f(l);return}throw new rc("Promise")}function tR(t,e,i){Ve(t,e,i.a[0]);const a=Ve(t,e,i.a[1]);if(!M0(a))throw new ht(i.a[1]);return Ik(a)}function nR(t,e,i){Ve(t,e,i.a[0]);const a=Ve(t,e,i.a[1]);if(!Vf(a))throw new ht(i.a[1]);return Yk(a)}function rR(t,e,i){const a=at(t,i.i,Qs());Z0(t,i.i,31);const l=i.a;Hr(i,l);const c=l.length;if(c)for(let u=0;u<c;u++)Ve(t,e,l[u]);return a}function iR(t,e,i){const a=t.base.refs.get(i.i);if(a){sc(t,i,i.i,31),a.next(Ve(t,e,i.f));return}throw new rc("Stream")}function aR(t,e,i){const a=t.base.refs.get(i.i);if(a){sc(t,i,i.i,31),a.throw(Ve(t,e,i.f));return}throw new rc("Stream")}function sR(t,e,i){const a=t.base.refs.get(i.i);if(a){sc(t,i,i.i,31),a.return(Ve(t,e,i.f));return}throw new rc("Stream")}function oR(t,e,i){Ve(t,e,i.f)}function lR(t,e,i){Ve(t,e,i.a[1])}function Mv(t,e){return Number.isInteger(t)&&t>=-1&&t<e}function cR(t,e,i){Hr(i,i.a);const a=i.a.length;if(!(Mv(i.s,a)&&Mv(i.l,a)))throw new ht(i);const l=at(t,i.i,U0([],i.s,i.l));for(let c=0;c<a;c++)l.v[c]=Ve(t,e,i.a[c]);return l}function Ve(t,e,i){if(e>t.base.depthLimit)throw new j0(t.base.depthLimit);switch(e+=1,i.t){case 2:return cf(i,IE,i.s);case 0:return Number(i.s);case 1:return Br(String(i.s));case 3:if(String(i.s).length>OT)throw new ht(i);return BigInt(i.s);case 4:return t.base.refs.get(i.i);
13case 18:return MT(t,i);case 9:return UT(t,e,i);case 10:case 11:return PT(t,e,i);case 5:return BT(t,i);case 6:return $T(t,i);case 7:return qT(t,e,i);case 8:return VT(t,e,i);case 19:return GT(t,i);case 16:case 15:return ZT(t,e,i);case 20:return KT(t,e,i);case 14:return FT(t,e,i);case 13:return YT(t,e,i);case 12:return JT(t,e,i);case 17:return cf(i,BE,i.s);case 21:return QT(t,e,i);case 25:return XT(t,e,i);case 22:return WT(t,i);case 23:case 24:return eR(t,e,i);case 28:return tR(t,e,i);case 30:return nR(t,e,i);case 31:return rR(t,e,i);case 32:return iR(t,e,i);case 33:return aR(t,e,i);case 34:return sR(t,e,i);case 27:return oR(t,e,i);case 29:return lR(t,e,i);case 35:return cR(t,e,i);case 36:return IT(t,i);default:throw new Bf(i)}}function uR(t,e){try{return Ve(t,0,e)}catch(i){throw new rk(i)}}function hR(t,e){const i=$0(e.plugins);return uR(zT({maxBase64Length:e.maxBase64Length,plugins:i,refs:e.refs,features:e.features,disabledFeatures:e.disabledFeatures,depthLimit:e.depthLimit}),t)}async function fR(t,e={}){const i=$0(e.plugins),a=aT(1,{compactArrayBufferViews:e.compactArrayBufferViews,plugins:i,disabledFeatures:e.disabledFeatures});return{t:await ST(a,t),f:a.base.features,m:Array.from(a.base.marked)}}function dR(t){return{tag:"$TSR/t/"+t.key,test:t.test,parse:{sync(e,i){return{v:i.parse(t.toSerializable(e))}},async async(e,i){return{v:await i.parse(t.toSerializable(e))}},stream(e,i){return{v:i.parse(t.toSerializable(e))}}},serialize:void 0,deserialize(e,i){return t.fromSerializable(i.deserialize(e.v))}}}const pR={tag:"$TSR/Error",test(t){return t instanceof Error},parse:{sync(t,e){return{message:e.parse(t.message)}},async async(t,e){return{message:await e.parse(t.message)}},stream(t,e){return{message:e.parse(t.message)}}},serialize(t,e){return"new Error("+e.serialize(t.message)+")"},deserialize(t,e){return new Error(e.deserialize(t.message))}};var mR=class{constructor(t,e){this.stream=t,this.hint=e?.hint??"binary"}};function Y0(t){const e=[];for(let i=0;i<t.length;i+=32768)e.push(String.fromCharCode.apply(null,t.subarray(i,i+32768)));return btoa(e.join(""))}function J0(t){const e=atob(t),i=new Uint8Array(e.length);for(let a=0;a<e.length;a++)i[a]=e.charCodeAt(a);return i}const gR=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});function vR(t){try{return"t"+gR.decode(t)}catch{return"b"+Y0(t)}}const yR=new TextEncoder;function bR(t){const e=t.slice(1);return t[0]==="t"?yR.encode(e):J0(e)}function _R(t,e,i){i?.throwIfAborted();const a=Qs(),l=t.getReader();let c=!0;const u=()=>{c=!1,i?.removeEventListener("abort",p),l.releaseLock()},f=m=>c?(l.cancel(m).catch(()=>{}),u(),!0):!1,p=()=>{f(i.reason)&&a.throw(i.reason)};return i?.addEventListener("abort",p),(async()=>{try{for(;c;){const{done:m,value:g}=await l.read();if(!c)return;if(m){u(),a.return(void 0);return}a.next(e(g))}}catch(m){f(m)&&a.throw(m)}})(),[a,f]}function wR(t,e){let i,a=!1;return new ReadableStream({start(l){const c=t.on({next(u){if(!a)try{l.enqueue(e(u))}catch(f){a=!0;const p=i;i=void 0,p?.(),l.error(f)}},throw(u){a||(a=!0,i=void 0,l.error(u))},return(){a||(a=!0,i=void 0,l.close())}});a?c():i=c},cancel(){const l=i;i=void 0,l?.()}})}function Q0(t){return{tag:"tss/RawStream",test:e=>e instanceof mR,parse:{async:async(e,i)=>{const a=await i.parse(e.hint==="text"),[l]=_R(e.stream,e.hint==="text"?vR:Y0,t);return{text:a,stream:await i.parse(l)}}},serialize:void 0,deserialize:void 0}}const SR=Q0(),ER={tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(t,e){return wR(e.deserialize(t.stream),e.deserialize(t.text)?bR:J0)}},Cr={},X0=t=>new ReadableStream({start(e){t.on({next(i){try{e.enqueue(i)}catch{}},throw(i){e.error(i)},return(){try{e.close()}catch{}}})}}),kR={tag:"seroval-plugins/web/ReadableStreamFactory",test(t){return t===Cr},parse:{sync(){return Cr},async async(){return await Promise.resolve(Cr)},stream(){return Cr}},serialize(){return X0.toString()},deserialize(){return Cr}};async function TR(t,e){try{for(;;){const i=await e.read();if(i.done){t.return(i.value),e.releaseLock();break}t.next(i.value)}}catch(i){e.releaseLock(),t.throw(i)}}function RR(t){t.cancel().catch(()=>{}),t.releaseLock()}function Uv(t){const e=Qs(),i=t.getReader(),a=RR.bind(null,i);return TR(e,i).catch(a),[e,a]}const AR={tag:"seroval/plugins/web/ReadableStream",extends:[kR],test(t){return typeof ReadableStream>"u"?!1:t instanceof ReadableStream},parse:{sync(t,e){return{factory:e.parse(Cr),stream:e.parse(Qs())}},async async(t,e){return{factory:await e.parse(Cr),stream:await e.parse(Uv(t)[0])}},stream(t,e){const[i,a]=Uv(t);return e.addCleanup(a),{factory:e.parse(Cr),stream:e.parse(i)}}},serialize(t,e){return"("+e.serialize(t.factory)+")("+e.serialize(t.stream)+")"},deserialize(t,e){const i=e.deserialize(t.stream);if(!i||typeof i!="object"||!Vf(i))throw new Error("Expected a stream source.");return X0(i)}};function W0(t){return[pR,t?Q0(t):SR,AR]}const OR=W0();[...OR];function jR(t){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize:void 0,deserialize(e,i){return t(i.deserialize(e.streamId))}}}function CR(t){return[...Vy()?.serializationAdapters?.map(dR)??[],...t]}function eb(t){return CR(W0(t))}var Hv=new TextDecoder,yn=new Uint8Array,xR=new ByteLengthQueuingStrategy({highWaterMark:0});function zR(t){const e=t.getReader(),i=new Map;let a=0,l,c;const u=()=>{l?.(),l=void 0},f=(v,b)=>{const _=v[1];v[1]=!1,_&&(b===1?_.close():_.error(b[0]))},p=new ReadableStream({start(v){c=v},pull:u,cancel(v){const b=[v===void 0?new Error("Framed response cancelled"):v];a=b,u(),e.cancel(v).catch(()=>{});for(const _ of i.values())f(_,b)}});function m(v){const b=i.get(v);if(b)return b;if(i.size>=1024)throw new Error("Too many raw streams");let _;const S=[new ReadableStream({start(E){_=E},cancel(){S[1]!==!1&&(S[1]=null)}},xR),_];return i.set(v,S),a!==0&&f(S,a),S}function g(v){if(v===0||v>>>0!==v)throw new RangeError("Invalid raw stream ID");return m(v)[0]}return(async()=>{let v=yn,b=0;async function _(){for(;b===v.byteLength;){v=yn,b=0;const E=await e.read();if(a!==0||E.done)return!1;v=E.value}return!0}async function S(E,T){if(E===0)return yn;if(!await _()){if(T)return;throw new Error("Incomplete frame")}if(v.byteLength-b>=E){const j=v.subarray(b,b+E);return b+=E,b===v.byteLength&&(v=yn,b=0),j}const R=new Uint8Array(E);let C=0;for(;C<E;){if(!await _())throw new Error("Incomplete frame");const j=Math.min(E-C,v.byteLength-b);R.set(v.subarray(b,b+j),C),b+=j,C+=j}return b===v.byteLength&&(v=yn,b=0),R}try{for(;a===0;){let E=await S(9,!0);if(a!==0)return;if(!E){for(const J of i.values())if(J[1])throw new Error("Incomplete raw
13stream");a=1,c.close();return}const T=E[0],R=(E[1]<<24|E[2]<<16|E[3]<<8|E[4])>>>0,C=(E[5]<<24|E[6]<<16|E[7]<<8|E[8])>>>0;if(E=yn,T>3||T===0!=(R===0)||C>16777216||T===2&&C!==0)throw new Error("Invalid frame");const j=T===0?void 0:m(R);if(j?.[1]===!1)throw new Error("Raw stream already ended");let I=await S(C);if(a!==0)return;if(!j){const J=Hv.decode(I);for(I=yn,c.enqueue(J);a===0&&c.desiredSize<=0;)await new Promise(P=>{l=P});continue}if(T===1){const J=j[1];if(J){if(-J.desiredSize>134217728){J.error(new Error(`Raw stream ${R} has too many unread bytes`)),j[1]=null,I=yn;continue}const P=I.byteLength*4<I.buffer.byteLength?I.slice():I;I=yn,J.enqueue(P)}}else f(j,T===2?1:[new Error(Hv.decode(I))])}}catch(E){if(a===0){const T=[E];a=T,e.cancel(E).catch(()=>{}),c.error(E);for(const R of i.values())f(R,T)}}finally{v=yn,e.releaseLock()}})(),[p,g]}const wn=Symbol.for("TSR_DEFERRED_PROMISE");function DR(t,e){const i=t;return i[wn]||(i[wn]={status:"pending"},i.then(a=>{i[wn].status="success",i[wn].data=a}).catch(a=>{i[wn].status="error",i[wn].error={data:EE(a),__isServerError:!0}})),i}const LR="Error preloading route! âï¸";function tb(t,e){if(t)return typeof t=="string"?t:t[e]}function NR(t){return t?.scriptFormat??"module"}function MR(t,e,i){const a=UR(e),l=tb(i,"script")??a.crossOrigin;return{...NR(t)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:a.href,...l?{crossOrigin:l}:{}}}function UR(t){return typeof t=="string"?{href:t,crossOrigin:void 0}:t}function Sl(t,e){if(e.length===0)return;if(e.length===1){t.push(e[0]);return}const i=new Set;for(const a of e){const l=JSON.stringify(a);i.has(l)||(i.add(l),t.push(a))}}function HR(t){return typeof t=="string"?{href:t,crossOrigin:void 0}:t}function PR(t,e,i,a){const l=c0(t),c=[],u=[];for(const f of l)for(const p of Array.isArray(f.scripts)?f.scripts:[]){if(!p)continue;const{children:m,...g}=p;c.push({tag:"script",attrs:{...g,...a,nonce:i},children:m})}if(e)for(const f of l)for(const p of e.routes[f.routeId]?.scripts??[])u.push({tag:"script",attrs:{...p.attrs,nonce:i},children:p.children});return[c,u]}function BR([t,e],i){return[...t,...e]}var nb=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;const i=this.options,a=!i?.path&&!i?.id;this.parentRoute=this.options.getParentRoute?.(),a?this._path=Sa:this.parentRoute||Ls();let l=a?Sa:i?.path;l&&l!=="/"&&(l=Qy(l));const c=i?.id||l,u=a?Sa:wa((this.parentRoute.id==="__root__"?"":this.parentRoute.id)+"/"+(c??""));l==="__root__"&&(l="/");const f=u==="__root__"?"/":l===void 0?this.parentRoute.fullPath:wa(this.parentRoute.fullPath+"/"+l);this._path=l,this._id=u,this._fullPath=f,this._to=En(f)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e=="object"&&e!==null&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>Gy({from:this.fullPath,...e}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},IR=class extends nb{constructor(t){super(t)}};var Ps;function uf(t,e,i){try{return hR(t,e)}catch(a){throw ib(i),a}}async function rb(t){t.length>0&&(await Promise.allSettled(t),t.length=0)}function ib(t){for(const e of t)e.catch(()=>{});t.length=0}var $R=Object.prototype.hasOwnProperty;function ab(t){for(const e in t)if($R.call(t,e))return!0;return!1}async function qR(t,e,i){Ps||(Ps=eb());const a=e[0],l=a.fetch??i,c=a.data instanceof FormData,u=new Headers(a.headers);if(u.set("x-tsr-serverFn","true"),c||u.set("accept",`${MS}, application/x-ndjson, application/json`),a.method==="GET"){if(c)throw new Error("FormData is not supported with GET requests");const p=await sb(a);if(p!==void 0){const m=i0({payload:p});t.includes("?")?t+=`&${m}`:t+=`?${m}`}}let f;return a.method==="POST"&&(f=await VR(a),typeof f=="string"&&u.set("content-type","application/json")),GR(()=>l(t,{method:a.method,headers:u,signal:a.signal,body:f}))}
13async function sb(t){let e;return t.data!==void 0&&(e={data:t.data}),t.context&&ab(t.context)&&((e??={}).context=t.context),e?ob(e,t.signal):void 0}async function ob(t,e){e?.throwIfAborted();let i;try{i=await fR(t,{plugins:e?eb(e):Ps})}finally{e?.throwIfAborted()}return JSON.stringify(i)}async function VR(t){if(t.data instanceof FormData){let e;return t.context&&ab(t.context)&&(e=await ob(t.context,t.signal)),e!==void 0&&t.data.set(NS,e),t.data}return sb(t)}async function GR(t){let e;try{e=await t()}catch(a){if(a instanceof Response)e=a;else throw a}if(e.headers.get("x-tss-raw")==="true")return e;const i=e.headers.get("content-type");if(i||Ls(),e.headers.get("x-tss-serialized")){let a;if(i.includes("application/x-tss-framed")){const l=/;\s*v=(\d+)/.exec(i)?.[1];if(l&&+l!=1)throw new Error(`Unsupported framed protocol version ${l}`);if(!e.body)throw new Error("No response body for framed response");const[c,u]=zR(e.body);a=await ZR(c,[jR(u),...Ps])}else if(i.includes("application/json")){const l=await e.json(),c=[];a=uf(l,{plugins:Ps},c),await rb(c)}if(a||Ls(),a instanceof Error)throw a;return a}if(i.includes("application/json")){const a=await e.json(),l=US(a);if(l)throw l;if(mi(a))throw a;return a}if(!e.ok)throw new Error(await e.text());return e}async function ZR(t,e){const i=t.getReader(),a={refs:new Map,plugins:e},l=f=>{i.cancel(f).catch(()=>{})};let c;const u=[];try{const f=await i.read();if(f.done)throw new Error("Stream ended before first object");c=uf(JSON.parse(f.value),a,u)}catch(f){throw l(f),i.releaseLock(),f}return(async()=>{const f=[];try{for(;;){const p=await i.read();if(p.done)return;uf(JSON.parse(p.value),a,f),ib(f)}}catch(p){l(p),console.error("Stream processing error:",p)}finally{i.releaseLock()}})(),await rb(u),c}function KR(t){const e="/_serverFn/"+t;return Object.assign((...l)=>{const c=Vy()?.serverFns?.fetch;return qR(e,l,c??fetch)},{url:e,serverFnMeta:{id:t},[nf]:!0})}var FR={key:"$TSS/serverfn",test:t=>typeof t!="function"||!(nf in t)?!1:!!t[nf],toSerializable:({serverFnMeta:t})=>({functionId:t.id}),fromSerializable:({functionId:t})=>KR(t)},Zl=re.use,lb=re.useLayoutEffect;function YR({promise:t}){if(Zl)return Zl(t);const e=DR(t);if(e[wn].status==="pending")throw e;if(e[wn].status==="error")throw e[wn].error;return e[wn].data}function JR(t){const e=H.jsx(QR,{...t});return t.fallback?H.jsx(re.Suspense,{fallback:t.fallback,children:e}):e}function QR(t){const e=YR(t);return t.children(e)}var Ff=class extends re.Component{constructor(...t){super(...t),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(t,e){const i=t.getResetKey();return e.error&&e.resetKey!==i?{resetKey:i,error:0}:{resetKey:i}}static getDerivedStateFromError(t){return{error:[t]}}componentDidCatch(t,e){this.props.onCatch?.(t,e)}render(){const t=this.state.error;return t?re.createElement(this.props.errorComponent??XR,{error:t[0],reset:this.reset}):this.props.children}};function XR({error:t}){const[e,i]=re.useState(!1);return H.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[H.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[H.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),H.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(a=>!a),children:e?"Hide Error":"Show Error"})]}),H.jsx("div",{style:{height:".25rem"}}),e?H.jsx("div",{children:H.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t?.message?H.jsx("code",{children:t.message}):null})}):null]})}var Pv=()=>!0,WR=()=>!1;function eA({children:t,fallback:e=null}){return H.jsx(Js.Fragment,{children:Yf()?t:e})}function Yf(t=!0){return Js.useSyncExternalStore(tA,Pv,t?WR:Pv)}function tA(){return()=>{}}var cb=re.createContext(null);function kt(t){return re.useContext(cb)}var Jf=re.createContext(void 0),nA=re.createContext(void 0);function rA({update:t,notify:e,unwatched:i}){return{link:a,unlink:l,propagate:c,checkDirty:u,shallowPropagate:f};function a(m,g,v){const b=g.depsTail;if(b!==void 0&&b.dep===m)return;const _=b!==void 0?b.nextDep:g.deps;if(_!==void 0&&_.dep===m){_.version=v,g.depsTail=_;return}const S=m.subsTail;if(S!==void 0&&S.version===v&&S.sub===g)return;const E=g.depsTail=m.subsTail={version:v,dep:m,sub:g,prevDep:b,nextDep:_,prevSub:S,nextSub:void 0};_!==void 0&&(_.prevDep=E),b!==void 0?b.nextDep=E:g.deps=E,S!==void 0?S.nextSub=E:m.subs=E}function l(m,g=m.sub){const v=m.dep,b=m.prevDep,_=m.nextDep,S=m.nextSub,E=m.prevSub;return _!==void 0?_.prevDep=b:g.depsTail=b,b!==void 0?b.nextDep=_:g.deps=_,S!==void 0?S.prevSub=E:v.subsTail=E,E!==void 0?E.nextSub=S:(v.subs=S)===void 0&&i(v),_}function c(m){let g=m.nextSub,v;e:do{const b=m.sub;let _=b.flags;if(_&60?_&12?_&4?!(_&48)&&p(m,b)?(b.flags=_|40,_&=1):_=0:b.flags=_&-9|32:_=0:b.flags=_|32,_&2&&e(b),_&1){const S=b.subs;if(S!==void 0){const E=(m=S).nextSub;E!==void 0&&(v={value:g,prev:v},g=E);continue}}if((m=g)!==void 0){g=m.nextSub;continue}for(;v!==void 0;)if(m=v.value,v=v.prev,m!==void 0){g=m.nextSub;continue e}break}while(!0)}function u(m,g){let v,b=0,_=!1;e:do{const S=m.dep,E=S.flags;if(g.flags&16)_=!0;else if((E&17)===17){if(t(S)){const T=S.subs;T.nextSub!==void 0&&f(T),_=!0}}else if((E&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(v={value:m,prev:v}),m=S.deps,g=S,++b;continue}if(!_){const T=m.nextDep;if(T!==void 0){m=T;continue}}for(;b--;){const T=g.subs,R=T.nextSub!==void 0;if(R?(m=v.value,v=v.prev):m=T,_){if(t(g)){R&&f(T),g=m.sub;continue}_=!1}else g.flags&=-33;g=m.sub;const C=m.nextDep;if(C!==void 0){m=C;continue e}}return _}while(!0)}function f(m){do{const g=m.sub,v=g.flags;(v&48)===32&&(g.flags=v|16,(v&6)===2&&e(g))}while((m=m.nextSub)!==void 0)}function p(m,g){let v=g.depsTail;for(;v!==void 0;){if(v===m)return!0;v=v.prevDep}return!1}}function iA(t,e,i){const a=typeof t=="object",l=a?t:void 0;return{next:(a?t.next:t)?.bind(l),error:(a?t.error:e)?.bind(l),complete:(a?t.complete:i)?.bind(l)}}const hf=[];let Bl=0;const{link:Bv,unlink:aA,propagate:sA,checkDirty:ub,shallowPropagate:Iv}=rA({update(t){return t._update()},notify(t){hf[ff++]=t,t.flags&=-3},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=17,Kl(t))}});let El=0,ff=0,on,df=0;function oA(t){try{++df,t()}finally{--df||hb()}}function Kl(t){const e=t.depsTail;let i=e!==void 0?e.nextDep:t.deps;for(;i!==void 0;)i=aA(i,t)}function hb(){if(!(df>0)){for(;El<ff;){const t=hf[El];hf[El++]=void 0,t.notify()}El=0,ff=0}}function $v(t,e){const i=typeof t=="function",a=t,l={_snapshot:i?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?0:1,get(){return on!==void 0&&Bv(l,on,Bl),l._snapshot},subscribe(c){const u=iA(c),f={current:!1},p=lA(()=>{l.get(),f.current?(on=void 0,u.next?.(l._snapshot)):f.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(c){const u=on,f=e?.compare??Object.is;if(i)on=l,++Bl,l.depsTail=void 0;else if(c===void 0)return!1;i&&(l.flags=5);try{const p=l._snapshot,m=typeof c=="function"?c(p):c===void 0&&i?a(p):c;return p===void 0||!f(p,m)?(l._snapshot=m,!0):!1}finally{on=u,i&&(l.flags&=-5),Kl(l)}}};return i?(l.flags=17,l.get=function(){const c=l.flags;if(c&16||c&32&&ub(l.deps,l)){if(l._update()){const u=l.subs;u!==void 0&&Iv(u)}}else c&32&&(l.flags=c&-33);return on!==void 0&&Bv(l,on,Bl),l._snapshot}):l.set=function(c){if(l._update(c)){const u=l.subs;u!==void 0&&(sA(u),Iv(u),hb())}},l}function lA(t){const e=()=>{const a=on;on=i,++Bl,i.depsTail=void 0,i.flags=6;try{return t()}finally{on=a,i.flags&=-5,Kl(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){const a=this.flags;a&16||a&32&&ub(this.deps,this)?e():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Kl(this)}};return e(),i}var Vh={exports:{}},Gh={},Zh={exports:{}},Kh={};var qv;function cA(){if(qv)return Kh;qv=1;var t=Ys();function e(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var i=typeof Object.is=="function"?Object.is:e,a=t.useState,l=t.useEffect,c=t.useLayoutEffect,u=t.useDebugValue;function f(v,b){var _=b(),S=a({inst:{value:_,getSnapshot:b}}),E=S[0].inst,T=S[1];return c(function(){E.value=_,E.getSnapshot=b,p(E)&&T({inst:E})},[v,_,b]),l(function(){return p(E)&&T({inst:E}),v(function(){p(E)&&T({inst:E})})},[v]),u(_),_}function p(v){var b=v.getSnapshot;v=v.value;try{var _=b();return!i(v,_)}catch{return!0}}function m(v,b){return b()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:f;return Kh.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,Kh}var Vv;function uA(){return Vv||(Vv=1,Zh.exports=cA()),Zh.exports}var Gv;function hA(){if(Gv)return Gh;Gv=1;var t=Ys(),e=uA();function i(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var a=typeof Object.is=="function"?Object.is:i,l=e.useSyncExternalStore,c=t.useRef,u=t.useEffect,f=t.useMemo,p=t.useDebugValue;return Gh.useSyncExternalStoreWithSelector=function(m,g,v,b,_){var S=c(null);if(S.current===null){var E={hasValue:!1,value:null};S.current=E}else E=S.current;S=f(function(){function R(P){if(!C){if(C=!0,j=P,P=b(P),_!==void 0&&E.hasValue){var z=E.value;if(_(z,P))return I=z}return I=P}if(z=I,a(j,P))return z;var K=b(P);return _!==void 0&&_(z,K)?(j=P,z):(j=P,I=K)}var C=!1,j,I,J=v===void 0?null:v;return[function(){return R(g())}
13,J===null?void 0:function(){return R(J())}]},[g,v,b,_]);var T=l(m,S[0],S[1]);return u(function(){E.hasValue=!0,E.value=T},[T]),p(T),T},Gh}var Zv;function fA(){return Zv||(Zv=1,Vh.exports=hA()),Vh.exports}var dA=fA();function pA(t,e){return t===e}function Tn(t,e=a=>a,i){const a=i?.compare??pA,l=re.useCallback(u=>{const{unsubscribe:f}=t.subscribe(u);return f},[t]),c=re.useCallback(()=>t.get(),[t]);return dA.useSyncExternalStoreWithSelector(l,c,c,e,a)}var Kv={};function mA(t,e){const i=re.useRef();return a=>{const l=t?.select?t.select(a):a;return t?.structuralSharing??e.options.defaultStructuralSharing?i.current=Lr(i.current,l):l}}function yi(t){const e=kt(),i=re.useContext(t.from?nA:Jf),a=t.from??i,l=e.stores.getMatchStore(a),c=mA(t,e),u=Tn(l,f=>f?c(f):Kv);if(u!==Kv)return u;(t.shouldThrow??!0)&&Ls()}function fb(t){return yi({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.loaderData):e.loaderData})}function db(t){const{select:e,...i}=t;return yi({...i,select:a=>e?e(a.loaderDeps):a.loaderDeps})}function pb(t){return yi({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:e=>{const i=t.strict===!1?e.params:e._strictParams;return t.select?t.select(i):i}})}function mb(t){return yi({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.search):e.search})}function gb(t){const e=kt();return re.useCallback(i=>e.navigate({...i,from:i.from??t?.from}),[t?.from,e])}function vb(t){return yi({...t,select:e=>t.select?t.select(e.context):e.context})}function gA(...t){const e=re.useRef(t),i=e.current;return t.forEach((a,l)=>{fn(i[l],a,!1,!0)||(i[l]=a)}),e.current}function kl(t,e){t.preloadRoute(e).catch(i=>{console.warn(i),console.warn(LR)})}var vA={compare:(t,e)=>t[0]===e[0]&&t[1]===e[1]};function yA(t,e){const i=typeof t=="string"&&Ds(t);if(i)return e.has(i)?t:null}function bA(t,e,i,a,l){const c=mv(t.pathname,a),u=mv(e.pathname,a);return(i?.exact?c!==u:!(c.startsWith(u)&&(c.length===u.length||c[u.length]==="/")))||(i?.includeSearch??!0)&&!fn(t.search,e.search,!i?.exact,i?.explicitUndefined)?!1:i?.includeHash?l&&t.hash===e.hash:!0}function _A(t,e,i){const a=kt(),l=re.useRef(null),c=re.useCallback(de=>{if(l.current=de,typeof e=="function")return e(de);e&&(e.current=de)},[e]),{activeOptions:u,to:f,preload:p,preloadDelay:m,hashScrollIntoView:g,replace:v,startTransition:b,resetScroll:_,viewTransition:S,ignoreBlocker:E,disabled:T,target:R,onClick:C,onBlur:j,onFocus:I,onMouseEnter:J,onMouseLeave:P,onTouchStart:z}=t,K=Yf(!!u?.includeHash),[ne,ue,G]=gA(t.search,t.params,u),[Z,X]=re.useMemo(()=>[t,{...t}],[a,t.from,t._fromLocation,t.hash,t.to,ne,ue,t.state,t.mask,t.unsafeRelative]),ge=re.useMemo(()=>{const de=yA(f,a.protocolAllowlist);if(de!==void 0){const dn=[de??void 0];return()=>dn}let De,$e;return dn=>{Z._fromLocation||(X._fromLocation=dn);const Ir=a.buildLocation(X),Rn=TA(Ir,a,T);return(!De||De[0]!==Rn)&&(De=[Rn,!(T||Rn&&!Ds(Rn))&&void 0],$e=[Rn,!0]),De[1]!==void 0&&bA(dn,Ir,G,a.basepath,K)?$e:De}},[G,T,K,Z,X,a,f]),[ce,M]=Tn(a.stores.location,ge,vA),Y=M===void 0&&ce,fe=T||ce===void 0,ze=re.useRef(!1),ke=t.reloadDocument||Y||fe?!1:p??a.options.defaultPreload,O=m??a.options.defaultPreloadDelay??0,q=re.useCallback(de=>{const De=de?.isIntersecting;if(!(De??ke==="intent")){De===!1&&Fh(l);return}if(!O){kl(a,Z);return}js.has(l)||js.set(l,setTimeout(()=>{js.delete(l),kl(a,Z)},O))},[a,Z,l,ke,O]);re.useEffect(()=>{if(!ke)return;ke==="render"&&!ze.current&&(ze.current=!0,kl(a,Z));let de=!0,De;return ke==="viewport"&&l.current&&typeof IntersectionObserver=="function"&&(De=new IntersectionObserver($e=>{de&&q($e.pop())},{rootMargin:"100px"}),De.observe(l.current)),()=>{de=!1,De?.disconnect(),Fh(l)}},[a,Z,ke,q,l]);const F=EA(t,i);if(F.ref=e?c:l,Y)return F.href=Y,F;const ae=de=>{const De=R??de.currentTarget.getAttribute("target");!fe&&!(de.metaKey||de.altKey||de.ctrlKey||de.shiftKey)&&!de.defaultPrevented&&(!De||De==="_self")&&de.button===0&&(de.preventDefault(),a.navigate({...Z,replace:v,resetScroll:_,hashScrollIntoView:g,startTransition:b,viewTransition:S,ignoreBlocker:E}))},ve=()=>{ke==="intent"&&kl(a,Z)},we=()=>{ke==="intent"&&Fh(l)};return F.onClick=oa(C,ae),F.onBlur=oa(j,we),F.onFocus=oa(I,q),F.onMouseEnter=oa(J,q),F.onMouseLeave=oa(P,we),F.onTouchStart=
13oa(z,ve),kA(F,t,M,ce,fe,i)}var wA={},SA={className:"active"},yb=new Set(["to","params","search","hash","state","mask","from","unsafeRelative","_fromLocation","reloadDocument","preload","preloadDelay","preloadIntentProximity","hashScrollIntoView","replace","startTransition","resetScroll","viewTransition","ignoreBlocker","activeProps","inactiveProps","activeOptions","_asChild"]);function EA(t,e){const i={};for(const a in t)yb.has(a)||a==="type"&&e!==void 0||a==="disabled"&&e==="a"||(i[a]=t[a]);return i}function kA(t,e,i,a,l,c){const{activeProps:u,inactiveProps:f,className:p,style:m,target:g}=e,v=Ky(i?u:f,{})??(i?SA:wA);Object.assign(t,v),t.href=a,c!=="a"&&(t.disabled=l),t.target=g;const b=v.style;(m||b)&&(t.style=m&&b?{...m,...b}:m||b);const _=v.className;return(p||_)&&(t.className=p?_?`${p} ${_}`:p:_),l&&(t.role="link",t["aria-disabled"]=!0),i&&(t["data-status"]="active",t["aria-current"]="page"),t}var js=new WeakMap,Fh=t=>{clearTimeout(js.get(t)),js.delete(t)},oa=(t,e)=>t?i=>i.defaultPrevented||(t(i),i.defaultPrevented||e(i)):e;function TA(t,e,i){if(i)return;const a=t.maskedLocation??t,l=a.external?a.publicHref:e.history.createHref(a.publicHref)||"/";if(!((a.external||l!==a.publicHref)&&Jy(l,e.protocolAllowlist)))return l}var Qf=re.memo(re.forwardRef((t,e)=>{const i=t._asChild||"a",a=_A(t,e,i),l=typeof t.children=="function"?t.children({isActive:a["data-status"]==="active"}):t.children;return re.createElement(i,a,l)}),RA);function RA(t,e){let i=0;for(const a in e)if(i++,t[a]!==e[a]&&(!yb.has(a)||!fn(t[a],e[a],!1,!0)))return!1;for(const a in t)i--;return i===0}var AA=class extends nb{constructor(e){super(e),this.useMatch=i=>yi({...i,from:this.id}),this.useRouteContext=i=>vb({...i,from:this.id}),this.useSearch=i=>mb({...i,from:this.id}),this.useParams=i=>pb({...i,from:this.id}),this.useLoaderDeps=i=>db({...i,from:this.id}),this.useLoaderData=i=>fb({...i,from:this.id}),this.useNavigate=()=>gb({from:this.fullPath}),this.Link=Js.forwardRef((i,a)=>H.jsx(Qf,{ref:a,from:this.fullPath,...i}))}};function OA(t){return new AA(t)}function jA(){return t=>xA(t)}var CA=class extends IR{constructor(t){super(t),this.useMatch=e=>yi({...e,from:this.id}),this.useRouteContext=e=>vb({...e,from:this.id}),this.useSearch=e=>mb({...e,from:this.id}),this.useParams=e=>pb({...e,from:this.id}),this.useLoaderDeps=e=>db({...e,from:this.id}),this.useLoaderData=e=>fb({...e,from:this.id}),this.useNavigate=()=>gb({from:this.fullPath}),this.Link=Js.forwardRef((e,i)=>H.jsx(Qf,{ref:i,from:this.fullPath,...e}))}};function xA(t){return new CA(t)}function W(t){return e=>{const i=OA(e);return i.isRoot=!1,i}}function ee(t,e){let i,a,l;const c=()=>(i||(l=void 0,i=t().then(f=>{i=void 0,u.preload=void 0,a=f[e]}).catch(f=>{i=void 0,l=f})),i),u=function(p){if(l){if(PS(l)&&typeof sessionStorage<"u"){const m=`tanstack_router_reload:${l.message}`;if(!sessionStorage.getItem(m))throw sessionStorage.setItem(m,"1"),window.location.reload(),new Promise(()=>{})}throw l}if(!a)if(Zl)Zl(c());else throw c();return re.createElement(a,p)};return u.preload=c,u}function zA(t){const e=kt(),i=`not-found-${Tn(e.stores.location,a=>a.pathname)}-${Tn(e.stores.status)}`;return H.jsx(Ff,{getResetKey:()=>i,onCatch:(a,l)=>{if(mi(a))t.onCatch?.(a,l);else throw a},errorComponent:({error:a})=>{if(mi(a))return t.fallback?.(a);throw a},children:t.children})}function DA(){return H.jsx("p",{children:"Not Found"})}function bb(t,e,i){return e.options.notFoundComponent?H.jsx(e.options.notFoundComponent,{...i}):t.options.defaultNotFoundComponent?H.jsx(t.options.defaultNotFoundComponent,{...i}):H.jsx(DA,{})}function oc(t,e){const i=e?.options.pendingComponent??t.options.defaultPendingComponent;return i?H.jsx(i,{}):null}var LA=(t,e)=>t[0]===e[0]&&t[1]===e[1],_b=(t,e,i)=>!e.isRoot||e.options.shellComponent||e.options.wrapInSuspense||i===!1||i==="data-only"||!t.ssr,wb=re.memo(function({routeId:e}){const i=kt();return H.jsx(NA,{router:i,match:Tn(i.stores.getMatchStore(e))})});function NA({router:t,match:e}){const i=t.routesById[e.routeId],a=oc(t,i),l=i.options.errorComponent??t.options.defaultErrorComponent,c=i.options.onCatch??t.options.defaultOnCatch,u=i.isRoot?i.options.notFoundComponent??t.options.notFoundRoute?.options.component:i.options.notFoundComponent,f=e.ssr===!1||e.ssr==="data-only",p=_b(t,i,e.ssr)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||f));let m=H.jsx(MA,{match:e});f&&(m=H.jsx(eA,{fallback:a,children:m})),u&&(m=H.jsx(zA,{fallback:b=>{if(b.routeId??=e.routeId,b.routeId!==e.routeId)throw b;return re.createElement(u,b)},children:m})),l&&(m=H.jsx(Ff,{getResetKey:()=>e,errorComponent:l,onCatch:(b,_)=>{if(mi(b))throw b.routeId??=e.routeId,b;c?.(b,_)},children:m})),p&&(m=H.jsx(re.Suspense,{fallback:a,children:m}));const g=null,v=i.isRoot?i.options.shellComponent:void 0;return H.jsx(Jf.Provider,{value:e.routeId,children:v?H.jsxs(v,{children:[m,g]}):H.jsxs(H.Fragment,{children:[m,g]})})}var MA=re.memo(function({match:e}){const i=kt(),a=e.routeId,l=i.routesById[a],c=re.useMemo(()=>{const f=(l.options.remountDeps??i.options.defaultRemountDeps)?.({routeId:a,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return f?JSON.stringify(f):void 0},[a,e.loaderDeps,e._strictParams,e._strictSearch,l.options.remountDeps,i.options.defaultRemountDeps]),u=re.useMemo(()=>{const f=l.options.component??i.options.defaultComponent;return f?H.jsx(f,{},c):H.jsx(Sb,{})},[c,l.options.component,i.options.defaultComponent]);if(e.status==="pending"){if(i.ssr&&!_b(i,l,e.ssr))return u;
13if(i._tx)throw i._tx[5];return oc(i,l)}if(e.status==="notFound")return bb(i,l,e.error);if(e.status==="error")throw e.error;return u}),Sb=re.memo(function(){const e=kt(),i=re.useContext(Jf);let a,l,c;{const f=e.stores.getMatchStore(i);[a,l]=Tn(f,p=>[!!p._notFound,p.error],{compare:LA}),c=Tn(e.stores.ids,p=>p[p.indexOf(i)+1])}if(a)return bb(e,e.routesById[i],l);if(!c)return null;const u=H.jsx(wb,{routeId:c});return i===Sa?H.jsx(re.Suspense,{fallback:oc(e),children:u}):u});function Eb(t,e){const i=t[1];t.length=0,i?.(e)}function UA({t}){const e=kt(),i=e._rendered??=[];return e.startTransition=(a,l)=>new Promise(c=>{Eb(i,!1),i.push(l,c),t(e),re.startTransition(a)}),lb(()=>{const a=e.history.subscribe(e.load);e.updateLatestLocation();const l=e.latestLocation,c=e.buildLocation({to:l.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(En(l.publicHref)!==En(c.publicHref))return e.commitLocation({...c,replace:!0,ignoreBlocker:!0}),a;const u=e.stores.resolvedLocation.get();return u?.href===l.href&&u.state.__TSR_key===l.state.__TSR_key?i.push(e.stores.matches.get(),f=>{f&&e.emit({type:"onRendered",...tc(u,u)})}):e._tx||e.load({sync:!0}).catch(console.error),a},[e,e.history]),null}function HA(){const t=kt(),e=t.routesById[Sa],i=oc(t,e),a=H.jsxs(H.Fragment,{children:[H.jsx(UA,{t:re.useState()[1]}),t.ssr?H.jsx(Fv,{}):H.jsx(re.Suspense,{fallback:i,children:H.jsx(Fv,{})})]});return t.options.InnerWrap?H.jsx(t.options.InnerWrap,{children:a}):a}function Fv(){const t=kt(),e=t._rendered,i=Tn(t.stores.matches,u=>e[0]??u),a=i[0],l=a?.routeId;lb(()=>{e[0]===i&&Eb(e,!0)},[e,i]);const c=l?H.jsx(wb,{routeId:l}):null;return t.options.disableGlobalCatchBoundary?c:H.jsx(Ff,{getResetKey:()=>a,onCatch:void 0,children:c})}var PA=t=>({createMutableStore:$v,createReadonlyStore:$v,batch:oA}),BA=t=>new IA(t),IA=class extends TE{constructor(t){super(t,PA)}};function $A({router:t,children:e,...i}){Fy(i)&&t.update({...t.options,...i,context:{...t.options.context,...i.context}});const a=H.jsx(cb.Provider,{value:t,children:e});return t.options.Wrap?H.jsx(t.options.Wrap,{children:a}):a}function qA({router:t,...e}){return H.jsx($A,{router:t,...e,children:H.jsx(HA,{})})}function Yv(t,e){if(e)for(const[i,a]of Object.entries(e))i!=="suppressHydrationWarning"&&a!==void 0&&a!==!1&&t.setAttribute(i,typeof a=="boolean"?"":String(a))}function kb(t){const{attrs:e,children:i,nonce:a,preventScriptHoist:l}=t,c=re.useMemo(()=>i===void 0?void 0:{__html:i},[i]);switch(t.tag){case"title":return H.jsx("title",{...e,suppressHydrationWarning:!0,children:i});case"meta":return H.jsx("meta",{...e,suppressHydrationWarning:!0});case"link":return H.jsx("link",{...e,precedence:e?.precedence??(e?.rel==="stylesheet"?"default":void 0),nonce:a,suppressHydrationWarning:!0});case"style":return t.inlineCss,H.jsx("style",{...e,dangerouslySetInnerHTML:c,nonce:a});case"script":return H.jsx(VA,{attrs:e,preventScriptHoist:l,children:i});default:return null}}function VA({attrs:t,children:e,preventScriptHoist:i}){kt();const a=Yf(),l=re.useMemo(()=>e===void 0?void 0:{__html:e},[e]),c=typeof t?.type=="string"&&t.type!==""&&t.type!=="text/javascript"&&t.type!=="module";if(re.useEffect(()=>{if(!c){if(t?.src){const u=document.createElement("a");u.href=t.src;const f=u.href;for(const m of document.scripts)if(m.src===f)return;const p=document.createElement("script");return Yv(p,t),document.head.appendChild(p),()=>p.remove()}if(typeof e=="string"){const u=typeof t?.type=="string"?t.type:"text/javascript",f=typeof t?.nonce=="string"?t.nonce:void 0;for(const m of document.scripts){if(m.hasAttribute("src"))continue;const g=m.getAttribute("type")??"text/javascript",v=m.getAttribute("nonce")??void 0;if(m.textContent===e&&g===u&&v===f)return}const p=document.createElement("script");return p.textContent=e,Yv(p,t),document.head.appendChild(p),()=>p.remove()}}},[t,e,c]),c&&typeof e=="string")return H.jsx("script",{...t,suppressHydrationWarning:!0,dangerouslySetInnerHTML:l});if(!a){if(t?.src)return H.jsx("script",{...t,suppressHydrationWarning:!0});if(typeof e=="string")return H.jsx("script",{...t,dangerouslySetInnerHTML:l,suppressHydrationWarning:!0})}return null}function GA(t,e,i,a){i=c0(i);const l=i.map(E=>E.meta).filter(E=>E!==void 0),c=[],u={};let f;for(let E=l.length-1;E>=0;E--){const T=l[E];for(let R=T.length-1;R>=0;R--){const C=T[R];if(C)if(C.title)f||(f={tag:"title",children:C.title});else if("script:ld+json"in C)try{const j=JSON.stringify(C["script:ld+json"]);c.push({tag:"script",attrs:{type:"application/ld+json"},children:GS(j)})}catch{}else{const j=C.name??C.property;if(j){if(u[j])continue;u[j]=!0}c.push({tag:"meta",attrs:{...C,nonce:e}})}}}f&&c.push(f),e&&c.push({tag:"meta",attrs:{property:"csp-nonce",content:e}}),c.reverse();const p=i.flatMap(E=>E.links??[]).filter(E=>E!==void 0).map(E=>({tag:"link",attrs:{...E,nonce:e}})),m=t.ssr?.manifest,g=[];m&&(i.forEach(E=>{m.routes[E.routeId]?.css?.forEach(T=>{const R=HR(T);g.push({tag:"link",attrs:{rel:"stylesheet",...R,crossOrigin:tb(a,"stylesheet")??R.crossOrigin,suppressHydrationWarning:!0,nonce:e}})})}
13),m.inlineStyle&&g.push({tag:"style",attrs:{...m.inlineStyle.attrs,nonce:e},children:m.inlineStyle.children,inlineCss:!0}));const v=[];m&&i.forEach(E=>{m.routes[E.routeId]?.preloads?.forEach(T=>{v.push({tag:"link",attrs:{...MR(m,T,a),nonce:e}})})});const b=i.flatMap(E=>E.styles??[]).filter(E=>E!==void 0).map(({children:E,...T})=>({tag:"style",attrs:{...T,nonce:e},children:E})),_=i.flatMap(E=>E.headScripts??[]).filter(E=>E!==void 0).map(({children:E,...T})=>({tag:"script",attrs:{...T,nonce:e},children:E})),S=[];return Sl(S,c),S.push(...v),Sl(S,p),S.push(...g),Sl(S,b),Sl(S,_),S}var ZA=t=>{const e=kt(),i=e.options.ssr?.nonce,a=re.useCallback(l=>GA(e,i,l,t),[t,i,e]);return Tn(e.stores.matches,a,{compare:fn})};function KA(t){const e=ZA(t.assetCrossOrigin),i=kt().options.ssr?.nonce;return H.jsx(H.Fragment,{children:e.map(a=>re.createElement(kb,{...a,key:`tsr-meta-${JSON.stringify(a)}`,nonce:i}))})}var FA={suppressHydrationWarning:!0},YA=()=>{const t=kt(),e=t.options.ssr?.nonce,i=l=>{const c=PR(l,t.ssr?.manifest,e,FA);for(const u of c[1])if(typeof u.attrs?.src=="string"){const f=u;f.preventScriptHoist=!0}return c},a=l=>BR(i(l));return JA(Tn(t.stores.matches,a,{compare:fn}))};function JA(t){return H.jsx(H.Fragment,{children:t.map((e,i)=>re.createElement(kb,{...e,key:`tsr-scripts-${e.tag}-${i}`}))})}var fi=(t,e)=>{const i={type:"request",...e||t},a=l=>fi({},Object.assign(i,{validator:l,inputValidator:l}));return{options:i,middleware:l=>fi({},Object.assign(i,{middleware:l})),validator:a,inputValidator:a,client:l=>fi({},Object.assign(i,{client:l})),server:l=>fi({},Object.assign(i,{server:l}))}};function Tb(t,e){for(let i=0,a=e.length;i<a;i++){const l=e[i];t.has(l)||(t.add(l),l.extends&&Tb(t,l.extends))}}var QA=t=>({getOptions:async()=>{const e=await t();if(e.serializationAdapters){const i=new Set;Tb(i,e.serializationAdapters),e.serializationAdapters=Array.from(i)}return e},createMiddleware:fi});function lc(t,e){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(t);l<a.length;l++)e.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(t,a[l])&&(i[a[l]]=t[a[l]]);return i}function XA(t,e,i,a){function l(c){return c instanceof i?c:new i(function(u){u(c)})}return new(i||(i=Promise))(function(c,u){function f(g){try{m(a.next(g))}catch(v){u(v)}}function p(g){try{m(a.throw(g))}catch(v){u(v)}}function m(g){g.done?c(g.value):l(g.value).then(f,p)}m((a=a.apply(t,e||[])).next())})}const WA=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class Xf extends Error{constructor(e,i="FunctionsError",a){super(e),this.name=i,this.context=a}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class e1 extends Xf{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Jv extends Xf{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class Qv extends Xf{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var pf;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(pf||(pf={}));class t1{constructor(e,{headers:i={},customFetch:a,region:l=pf.Any}={}){this.url=e,this.headers=i,this.region=l,this.fetch=WA(a)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return XA(this,arguments,void 0,function*(i,a={}){var l;let c,u;try{const{headers:f,method:p,body:m,signal:g,timeout:v}=a;let b={},{region:_}=a;_||(_=this.region);const S=new URL(`${this.url}/${i}`);_&&_!=="any"&&(b["x-region"]=_,S.searchParams.set("forceFunctionRegion",_));let E;m&&(f&&!Object.prototype.hasOwnProperty.call(f,"Content-Type")||!f)?typeof Blob<"u"&&m instanceof Blob||m instanceof ArrayBuffer?(b["Content-Type"]="application/octet-stream",E=m):typeof m=="string"?(b["Content-Type"]="text/plain",E=m):typeof FormData<"u"&&m instanceof FormData?E=m:(b["Content-Type"]="application/json",E=JSON.stringify(m)):m&&typeof m!="string"&&!(typeof Blob<"u"&&m instanceof Blob)&&!(m instanceof ArrayBuffer)&&!(typeof FormData<"u"&&m instanceof FormData)?E=JSON.stringify(m):E=m;let T=g;v&&(u=new AbortController,c=setTimeout(()=>u.abort(),v),g?(T=u.signal,g.addEventListener("abort",()=>u.abort())):T=u.signal);const R=yield this.fetch(S.toString(),{method:p||"POST",headers:Object.assign(Object.assign(Object.assign({},b),this.headers),f),body:E,signal:T}).catch(J=>{throw new e1(J)}),C=R.headers.get("x-relay-error");
13if(C&&C==="true")throw new Jv(R);if(!R.ok)throw new Qv(R);let j=((l=R.headers.get("Content-Type"))!==null&&l!==void 0?l:"text/plain").split(";")[0].trim(),I;return j==="application/json"?I=yield R.json():j==="application/octet-stream"||j==="application/pdf"?I=yield R.blob():j==="text/event-stream"?I=R:j==="multipart/form-data"?I=yield R.formData():I=yield R.text(),{data:I,error:null,response:R}}catch(f){return{data:null,error:f,response:f instanceof Qv||f instanceof Jv?f.context:void 0}}finally{c&&clearTimeout(c)}})}}const Rb=3,Xv=t=>Math.min(1e3*2**t,3e4),n1=[520,503],Ab=["GET","HEAD","OPTIONS"];var r1=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Wv(t,e){return new Promise(i=>{if(e?.aborted){i();return}const a=setTimeout(()=>{e?.removeEventListener("abort",l),i()},t);function l(){clearTimeout(a),i()}e?.addEventListener("abort",l)})}function i1(t,e,i,a){return!(!a||i>=Rb||!Ab.includes(t)||!n1.includes(e))}var a1=class{constructor(t){var e,i,a,l,c;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(i=t.isMaybeSingle)!==null&&i!==void 0?i:!1,this.shouldStripNulls=(a=t.shouldStripNulls)!==null&&a!==void 0?a:!1,this.urlLengthLimit=(l=t.urlLengthLimit)!==null&&l!==void 0?l:8e3,this.retryEnabled=(c=t.retry)!==null&&c!==void 0?c:!0,t.fetch?this.fetch=t.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(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}retry(t){return this.retryEnabled=t,this}then(t,e){var i=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 a=this.fetch;let c=(async()=>{let u=0;for(;;){const m=new Headers(i.headers);u>0&&m.set("X-Retry-Count",String(u));let g;try{g=await a(i.url.toString(),{method:i.method,headers:m,body:JSON.stringify(i.body,(v,b)=>typeof b=="bigint"?b.toString():b),signal:i.signal})}catch(v){if(v?.name==="AbortError"||v?.code==="ABORT_ERR"||!Ab.includes(i.method))throw v;if(i.retryEnabled&&u<Rb){const b=Xv(u);u++,await Wv(b,i.signal);continue}throw v}if(i1(i.method,g.status,u,i.retryEnabled)){var f,p;const v=(f=(p=g.headers)===null||p===void 0?void 0:p.get("Retry-After"))!==null&&f!==void 0?f:null,b=v!==null?Math.max(0,parseInt(v,10)||0)*1e3:Xv(u);await g.text(),u++,await Wv(b,i.signal);continue}return await i.processResponse(g)}})();return this.shouldThrowOnError||(c=c.catch(u=>{var f;let p="",m="",g="";const v=u?.cause;if(v){var b,_,S,E;const C=(b=v?.message)!==null&&b!==void 0?b:"",j=(_=v?.code)!==null&&_!==void 0?_:"";p=`${(S=u?.name)!==null&&S!==void 0?S:"FetchError"}: ${u?.message}`,p+=` 14 15Caused by: ${(E=v?.name)!==null&&E!==void 0?E:"Error"}: ${C}`,j&&(p+=` (${j})`),v?.stack&&(p+=` 16${v.stack}`)}else{var T;p=(T=u?.stack)!==null&&T!==void 0?T:""}const R=this.url.toString().length;return u?.name==="AbortError"||u?.code==="ABORT_ERR"?(g="",m="Request was aborted (timeout or manual cancellation)",R>this.urlLengthLimit&&(m+=`. Note: Your request URL is ${R} 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.`)):(v?.name==="HeadersOverflowError"||v?.code==="UND_ERR_HEADERS_OVERFLOW")&&(g="",m="HTTP headers exceeded server limits (typically 16KB)",R>this.urlLengthLimit&&(m+=`. Your request URL is ${R} 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:`${(f=u?.name)!==null&&f!==void 0?f:"FetchError"}: ${u?.message}`,details:p,hint:m,code:g},data:null,count:null,status:0,statusText:""}}
16)),c.then(t,e)}async processResponse(t){var e=this;let i=null,a=null,l=null,c=t.status,u=t.statusText;if(t.ok){var f,p;if(e.method!=="HEAD"){var m;const b=await t.text();b===""||(e.headers.get("Accept")==="text/csv"||e.headers.get("Accept")&&(!((m=e.headers.get("Accept"))===null||m===void 0)&&m.includes("application/vnd.pgrst.plan+text"))?a=b:a=JSON.parse(b))}const g=(f=e.headers.get("Prefer"))===null||f===void 0?void 0:f.match(/count=(exact|planned|estimated)/),v=(p=t.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");g&&v&&v.length>1&&(l=parseInt(v[1])),e.isMaybeSingle&&Array.isArray(a)&&(a.length>1?(i={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,c=406,u="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{const g=await t.text();try{i=JSON.parse(g),Array.isArray(i)&&t.status===404&&(a=[],i=null,c=200,u="OK")}catch{t.status===404&&g===""?(c=204,u="No Content"):i={message:g}}if(i&&e.shouldThrowOnError)throw new r1(i)}return{success:i===null,error:i,data:a,count:l,status:c,statusText:u}}returns(){return this}overrideTypes(){return this}},s1=class extends a1{select(t){let e=!1;const i=(t??"*").split("").map(a=>/\s/.test(a)&&!e?"":(a==='"'&&(e=!e),a)).join("");return this.url.searchParams.set("select",i),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:i,foreignTable:a,referencedTable:l=a}={}){const c=l?`${l}.order`:"order",u=this.url.searchParams.get(c);return this.url.searchParams.set(c,`${u?`${u},`:""}${t}.${e?"asc":"desc"}${i===void 0?"":i?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:i=e}={}){const a=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(a,`${t}`),this}range(t,e,{foreignTable:i,referencedTable:a=i}={}){const l=typeof a>"u"?"offset":`${a}.offset`,c=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(l,`${t}`),this.url.searchParams.set(c,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:t=!1,verbose:e=!1,settings:i=!1,buffers:a=!1,wal:l=!1,format:c="text"}={}){var u;const f=[t?"analyze":null,e?"verbose":null,i?"settings":null,a?"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=${f};`),c==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const ey=new RegExp("[,()]");var da=class extends s1{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const i=Array.from(new Set(e)).map(a=>
16typeof a=="string"&&ey.test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(t,`in.(${i})`),this}notIn(t,e){const i=Array.from(new Set(e)).map(a=>typeof a=="string"&&ey.test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(t,`not.in.(${i})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:i,type:a}={}){let l="";a==="plain"?l="pl":a==="phrase"?l="ph":a==="websearch"&&(l="w");const c=i===void 0?"":`(${i})`;return this.url.searchParams.append(t,`${l}fts${c}.${e}`),this}match(t){return Object.entries(t).filter(([e,i])=>i!==void 0).forEach(([e,i])=>{this.url.searchParams.append(e,`eq.${i}`)}),this}not(t,e,i){return this.url.searchParams.append(t,`not.${e}.${i}`),this}or(t,{foreignTable:e,referencedTable:i=e}={}){const a=i?`${i}.or`:"or";return this.url.searchParams.append(a,`(${t})`),this}filter(t,e,i){return this.url.searchParams.append(t,`${e}.${i}`),this}},o1=class{constructor(t,{headers:e={},schema:i,fetch:a,urlLengthLimit:l=8e3,retry:c}){this.url=t,this.headers=new Headers(e),this.schema=i,this.fetch=a,this.urlLengthLimit=l,this.retry=c}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:i=!1,count:a}=e??{},l=i?"HEAD":"GET";let c=!1;const u=(t??"*").split("").map(m=>/\s/.test(m)&&!c?"":(m==='"'&&(c=!c),m)).join(""),{url:f,headers:p}=this.cloneRequestState();return f.searchParams.set("select",u),a&&p.append("Prefer",`count=${a}`),new da({method:l,url:f,headers:p,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(t,{count:e,defaultToNull:i=!0}={}){var a;const l="POST",{url:c,headers:u}=this.cloneRequestState();if(e&&u.append("Prefer",`count=${e}`),i||u.append("Prefer","missing=default"),Array.isArray(t)){const f=t.reduce((p,m)=>p.concat(Object.keys(m)),[]);if(f.length>0){const p=[...new Set(f)].map(m=>`"${m}"`);c.searchParams.set("columns",p.join(","))}}return new da({method:l,url:c,headers:u,schema:this.schema,body:t,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(t,{onConflict:e,ignoreDuplicates:i=!1,count:a,defaultToNull:l=!0}={}){var c;const u="POST",{url:f,headers:p}=this.cloneRequestState();if(p.append("Prefer",`resolution=${i?"ignore":"merge"}-duplicates`),e!==void 0&&f.searchParams.set("on_conflict",e),a&&p.append("Prefer",`count=${a}`),l||p.append("Prefer","missing=default"),Array.isArray(t)){const m=t.reduce((g,v)=>g.concat(Object.keys(v)),[]);if(m.length>0){const g=[...new Set(m)].map(v=>`"${v}"`);f.searchParams.set("columns",g.join(","))}}return new da({method:u,url:f,headers:p,schema:this.schema,body:t,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(t,{count:e}={}){var i;const a="PATCH",{url:l,headers:c}=this.cloneRequestState();return e&&c.append("Prefer",`count=${e}`),new da({method:a,url:l,headers:c,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:t}={}){var e;const i="DELETE",{url:a,headers:l}=this.cloneRequestState();return t&&l.append("Prefer",`count=${t}`),new da({method:i,url:a,headers:l,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Bs(t){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(t)}function l1(t,e){if(Bs(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,e);if(Bs(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function c1(t){var e=l1(t,"string");return Bs(e)=="symbol"?e:e+""}function u1(t,e,i){return(e=c1(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function ty(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),i.push.apply(i,a)}return i}function Tl(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};
16e%2?ty(Object(i),!0).forEach(function(a){u1(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ty(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}var h1=class Ob{constructor(e,{headers:i={},schema:a,fetch:l,timeout:c,urlLengthLimit:u=8e3,retry:f}={}){this.url=e,this.headers=new Headers(i),this.schemaName=a,this.urlLengthLimit=u;const p=l??globalThis.fetch;c!==void 0&&c>0?this.fetch=(m,g)=>{const v=new AbortController,b=setTimeout(()=>v.abort(),c),_=g?.signal;if(_){if(_.aborted)return clearTimeout(b),p(m,g);const S=()=>{clearTimeout(b),v.abort()};return _.addEventListener("abort",S,{once:!0}),p(m,Tl(Tl({},g),{},{signal:v.signal})).finally(()=>{clearTimeout(b),_.removeEventListener("abort",S)})}return p(m,Tl(Tl({},g),{},{signal:v.signal})).finally(()=>clearTimeout(b))}:this.fetch=p,this.retry=f}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new o1(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(e){return new Ob(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,i={},{head:a=!1,get:l=!1,count:c}={}){var u;let f;const p=new URL(`${this.url}/rpc/${e}`);let m;const g=_=>_!==null&&typeof _=="object"&&(!Array.isArray(_)||_.some(g)),v=a&&Object.values(i).some(g);v?(f="POST",m=i):a||l?(f=a?"HEAD":"GET",Object.entries(i).filter(([_,S])=>S!==void 0).map(([_,S])=>[_,Array.isArray(S)?`{${S.join(",")}}`:`${S}`]).forEach(([_,S])=>{p.searchParams.append(_,S)})):(f="POST",m=i);const b=new Headers(this.headers);return v?b.set("Prefer",c?`count=${c},return=minimal`:"return=minimal"):c&&b.set("Prefer",`count=${c}`),new da({method:f,url:p,headers:b,schema:this.schemaName,body:m,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class f1{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const i=globalThis;if(typeof globalThis<"u"&&typeof i.WebSocket<"u")return{type:"native",wsConstructor:i.WebSocket};const a=typeof global<"u"?global:void 0;if(a&&typeof a.WebSocket<"u")return{type:"native",wsConstructor:a.WebSocket};if(typeof globalThis<"u"&&typeof i.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"&&i.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const l=globalThis.process;if(l){const c=l.versions;if(c&&c.node){const u=c.node,f=parseInt(u.replace(/^v/,"").split(".")[0]);return f>=22?typeof globalThis.WebSocket<"u"?{type:"native",wsConstructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${f} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${f} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 17import ws from "ws" 18new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.wsConstructor)return e.wsConstructor;let i=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(i+=` 19 20Suggested solution: ${e.workaround}`),new Error(i)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const d1="2.105.4",p1=`realtime-js/${d1}`,m1="1.0.0",jb="2.0.0",g1=jb,v1=1e4,y1=100,xr={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Cb={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},mf={connecting:"connecting",closing:"closing",closed:"closed"};class b1{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,i){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return i(this._binaryEncodeUserBroadcastPush(e));let a=[e.join_ref,e.ref,e.topic,e.event,e.payload];return i(JSON.stringify(a))}_binaryEncodeUserBroadcastPush(e){var i;return this._isArrayBuffer((i=e.payload)===null||i===void 0?void 0:i.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var i,a;const l=(a=(i=e.payload)===null||i===void 0?void 0:i.payload)!==null&&a!==void 0?a:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,l)}_encodeJsonUserBroadcastPush(e){var i,a;const l=(a=(i=e.payload)===null||i===void 0?void 0:i.payload)!==null&&a!==void 0?a:{},u=new TextEncoder().encode(JSON.stringify(l)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,u)}_encodeUserBroadcastPush(e,i,a){var l,c;const u=e.topic,f=(l=e.ref)!==null&&l!==void 0?l:"",p=(c=e.join_ref)!==null&&c!==void 0?c:"",m=e.payload.event,g=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},v=Object.keys(g).length===0?"":JSON.stringify(g);if(p.length>255)throw new Error(`joinRef length ${p.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`ref length ${f.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`topic length ${u.length} exceeds maximum of 255`);if(m.length>255)throw new Error(`userEvent length ${m.length} exceeds maximum of 255`);if(v.length>255)throw new Error(`metadata length ${v.length} exceeds maximum of 255`);const b=this.USER_BROADCAST_PUSH_META_LENGTH+p.length+f.length+u.length+m.length+v.length,_=new ArrayBuffer(this.HEADER_LENGTH+b);let S=new DataView(_),E=0;S.setUint8(E++,this.KINDS.userBroadcastPush),S.setUint8(E++,p.length),S.setUint8(E++,f.length),S.setUint8(E++,u.length),S.setUint8(E++,m.length),S.setUint8(E++,v.length),S.setUint8(E++,i),Array.from(p,R=>S.setUint8(E++,R.charCodeAt(0))),Array.from(f,R=>S.setUint8(E++,R.charCodeAt(0))),Array.from(u,R=>S.setUint8(E++,R.charCodeAt(0))),Array.from(m,R=>S.setUint8(E++,R.charCodeAt(0))),Array.from(v,R=>S.setUint8(E++,R.charCodeAt(0)));var T=new Uint8Array(_.byteLength+a.byteLength);
20return T.set(new Uint8Array(_),0),T.set(new Uint8Array(a),_.byteLength),T.buffer}decode(e,i){if(this._isArrayBuffer(e)){let a=this._binaryDecode(e);return i(a)}if(typeof e=="string"){const a=JSON.parse(e),[l,c,u,f,p]=a;return i({join_ref:l,ref:c,topic:u,event:f,payload:p})}return i({})}_binaryDecode(e){const i=new DataView(e),a=i.getUint8(0),l=new TextDecoder;if(a===this.KINDS.userBroadcast)return this._decodeUserBroadcast(e,i,l)}_decodeUserBroadcast(e,i,a){const l=i.getUint8(1),c=i.getUint8(2),u=i.getUint8(3),f=i.getUint8(4);let p=this.HEADER_LENGTH+4;const m=a.decode(e.slice(p,p+l));p=p+l;const g=a.decode(e.slice(p,p+c));p=p+c;const v=a.decode(e.slice(p,p+u));p=p+u;const b=e.slice(p,e.byteLength),_=f===this.JSON_ENCODING?JSON.parse(a.decode(b)):b,S={type:this.BROADCAST_EVENT,event:g,payload:_};return u>0&&(S.meta=JSON.parse(v)),{join_ref:null,ref:null,topic:m,event:this.BROADCAST_EVENT,payload:S}}_isArrayBuffer(e){var i;return e instanceof ArrayBuffer||((i=e?.constructor)===null||i===void 0?void 0:i.name)==="ArrayBuffer"}_pick(e,i){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([a])=>i.includes(a)))}}var qe;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(qe||(qe={}));const ny=(t,e,i={})=>{var a;const l=(a=i.skipTypes)!==null&&a!==void 0?a:[];return e?Object.keys(e).reduce((c,u)=>(c[u]=_1(u,t,e,l),c),{}):{}},_1=(t,e,i,a)=>{const l=e.find(f=>f.name===t),c=l?.type,u=i[t];return c&&!a.includes(c)?xb(c,u):gf(u)},xb=(t,e)=>{if(t.charAt(0)==="_"){const i=t.slice(1,t.length);return k1(e,i)}switch(t){case qe.bool:return w1(e);case qe.float4:case qe.float8:case qe.int2:case qe.int4:case qe.int8:case qe.numeric:case qe.oid:return S1(e);case qe.json:case qe.jsonb:return E1(e);case qe.timestamp:return T1(e);case qe.abstime:case qe.date:case qe.daterange:case qe.int4range:case qe.int8range:case qe.money:case qe.reltime:case qe.text:case qe.time:case qe.timestamptz:case qe.timetz:case qe.tsrange:case qe.tstzrange:return gf(e);default:return gf(e)}},gf=t=>t,w1=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},S1=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},E1=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},k1=(t,e)=>{if(typeof t!="string")return t;const i=t.length-1,a=t[i];if(t[0]==="{"&&a==="}"){let c;const u=t.slice(1,i);try{c=JSON.parse("["+u+"]")}catch{c=u?u.split(","):[]}return c.map(f=>xb(e,f))}return t},T1=t=>typeof t=="string"?t.replace(" ","T"):t,zb=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};var Cs=t=>typeof t=="function"?t:function(){return t},R1=typeof self<"u"?self:null,pa=typeof window<"u"?window:null,_n=R1||pa||globalThis,A1="2.0.0",O1=1e4,j1=1e3,Sn={connecting:0,open:1,closing:2,closed:3},zt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Fn={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},vf={longpoll:"longpoll",websocket:"websocket"},C1={complete:4},yf="base64url.bearer.phx.",Rl=class{constructor(t,e,i,a){this.channel=t,this.event=e,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=a,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(t){this.timeout=t,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,j
vendor: 8,439 bytes, line 20
20oin_ref:this.channel.joinRef()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:t,response:e,_ref:i}){this.recHooks.filter(a=>a.status===t).forEach(a=>a.callback(e))}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,t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}},Db=class{constructor(t,e){this.callback=t,this.timerCalc=e,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))}},x1=class{constructor(t,e,i){this.state=zt.closed,this.topic=t,this.params=Cs(e||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Rl(this,Fn.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Db(()=>{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=zt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this.joinPush.receive("error",a=>{this.state=zt.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,a),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=zt.closed,this.socket.remove(this)}),this.onError(a=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,a),this.isJoining()&&this.joinPush.reset(),this.state=zt.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,Fn.leave,Cs({}),this.timeout).send(),this.state=zt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Fn.reply,(a,l)=>{this.trigger(this.replyEventName(l),a)})}join(t=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=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=zt.closed,this.bindings=[]}onClose(t){this.on(Fn.close,t)}onError(t){return this.on(Fn.error,e=>t(e))}on(t,e){let i=this.bindingRef++;return this.bindings.push({event:t,ref:i,callback:e}),i}off(t,e){this.bindings=this.bindings.filter(i=>!(i.event===t&&(typeof e>"u"||e===i.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,i=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let a=new Rl(this,t,function(){return e},i);return this.canPush()?a.send():(a.startTimeout(),this.pushBuffer.push(a)),a}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=zt.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Fn.close,"leave")},i=new Rl(this,Fn.leave,Cs({}),t);return i.receive("ok",()=>e()).receive("timeout",()=>e()),i.send(),this.canPush()||i.trigger("ok",{}),i}onMessage(t,e,i){return e}filterBindings(t,e,i){return!0}isMember(t,e,i,a){return this.topic!==t?!1:a&&a!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:i,joinRef:a}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=zt.joining,this.joinPush.resend(t))}trigger(t,e,i,a){let l=this.onMessage(t,e,i,a);if(e&&!l)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let c=this.bindings.filter(u=>u.event===t&&this.filterBindings(u,e,i));for(let u=0;u<c.length;u++)c[u].callback(l,i,a||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===zt.closed}isErrored(){return this.state===zt.errored}isJoined(){return this.state===zt.joined}isJoining(){return this.state===zt.joining}isLeaving(){return this.state===zt.leaving}},Fl=class{static request(t,e,i,a,l,c,u){if(_n.XDomainRequest){let f=new _n.XDomainRequest;return this.xdomainRequest(f,t,e,a,l,c,u)}else if(_n.XMLHttpRequest){let f=new _n.XMLHttpRequest;return this.xhrRequest(f,t,e,i,a,l,c,u)}else{if(_n.fetch&&_n.AbortController)return this.fetchRequest(t,e,i,a,l,c,u);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(t,e,i,a,l,c,u){let f={method:t,headers:i,body:a},p=null;return l&&(p=new AbortController,setTimeout(()=>p.abort(),l),f.signal=p.signal),_n.fetch(e,f).then(m=>m.text()).then(m=>this.parseJSON(m)).then(m=>u&&u(m)).catch(m=>{m.name==="AbortError"&&c?c():u&&u(null)}),p}static xdomainRequest(t,e,i,a,l,c,u){return t.timeout=l,t.open(e,i),t.onload=()=>{let f=this.parseJSON(t.responseText);u&&u(f)},c&&(t.ontimeout=c),t.onprogress=()=>{},t.send(a),t}static xhrRequest(t,e,i,a,l,c,u,f){t.open(e,i,!0),t.timeout=c;for(let[p,m]of Object.entries(a))t.setRequestHeader(p,m);return t.onerror=()=>f&&f(null),t.onreadystatechange=()=>{if(t.readyState===C1.complete&&f){let p=this.parseJSON(t.responseText);f(p)}},u&&(t.ontimeout=u),t.send(l),t}static parseJSON(t){if(!t||t==="")return null;try{return JSON.parse(t)}catch{return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let i=[];for(var a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let l=e?`${e}[${a}]`:a,c=t[a];typeof c=="object"?i.push(this.serialize(c,l)):i.push(encodeURIComponent(l)+"="+encodeURIComponent(c))}return i.join("&")}static appendParams(t,e){if(Object.keys(e).length===0)return t;let i=t.match(/\?/)?"&":"?";return`${t}${i}${this.serialize(e)}`}},z1=t=>{let e="",i=new Uint8Array(t),a=i.byteLength;for(let l=0;l<a;l++)e+=String.fromCharCode(i[l]);return btoa(e)},la=class{constructor(t,e){e&&e.length===2&&e[1].startsWith(yf)&&(this.authToken=atob(e[1].slice(yf.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(t),this.readyState=Sn.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+vf.websocket),"$1/"+vf.longpoll)}endpointURL(){return Fl.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,i){this.close(t,e,i),this.readyState=Sn.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Sn.open||this.readyState===Sn.connecting}poll(){const t={Accept:"application/json"};this.authToken&&(t["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",t,null,()=>this.ontimeout(),e=>{if(e){var{status:i,token:a,messages:l}=e;if(i===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=a}else i=0;switch(i){case 200:l.forEach(c=>{setTimeout(()=>this.onmessage({data:c}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Sn.open,this.onopen({}),this.poll();break;
20case 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 ${i}`)}})}send(t){typeof t!="string"&&(t=z1(t)),this.currentBatch?this.currentBatch.push(t):this.awaitingBatchAck?this.batchBuffer.push(t):(this.currentBatch=[t],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(t){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},t.join(` 21`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(t,e,i){for(let l of this.reqs)l.abort();this.readyState=Sn.closed;let a=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:i});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",a)):this.onclose(a)}ajax(t,e,i,a,l){let c,u=()=>{this.reqs.delete(c),a()};c=Fl.request(t,this.endpointURL(),e,i,this.timeout,u,f=>{this.reqs.delete(c),this.isActive()&&l(f)}),this.reqs.add(c)}},D1=class Rs{constructor(e,i={}){let a=i.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(a.state,l=>{let{onJoin:c,onLeave:u,onSync:f}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Rs.syncState(this.state,l,c,u),this.pendingDiffs.forEach(p=>{this.state=Rs.syncDiff(this.state,p,c,u)}),this.pendingDiffs=[],f()}),this.channel.on(a.diff,l=>{let{onJoin:c,onLeave:u,onSync:f}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(l):(this.state=Rs.syncDiff(this.state,l,c,u),f())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return Rs.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,i,a,l){let c=this.clone(e),u={},f={};return this.map(c,(p,m)=>{i[p]||(f[p]=m)}),this.map(i,(p,m)=>{let g=c[p];if(g){let v=m.metas.map(E=>E.phx_ref),b=g.metas.map(E=>E.phx_ref),_=m.metas.filter(E=>b.indexOf(E.phx_ref)<0),S=g.metas.filter(E=>v.indexOf(E.phx_ref)<0);_.length>0&&(u[p]=m,u[p].metas=_),S.length>0&&(f[p]=this.clone(g),f[p].metas=S)}else u[p]=m}),this.syncDiff(c,{joins:u,leaves:f},a,l)}static syncDiff(e,i,a,l){let{joins:c,leaves:u}=this.clone(i);return a||(a=function(){}),l||(l=function(){}),this.map(c,(f,p)=>{let m=e[f];if(e[f]=this.clone(p),m){let g=e[f].metas.map(b=>b.phx_ref),v=m.metas.filter(b=>g.indexOf(b.phx_ref)<0);e[f].metas.unshift(...v)}a(f,m,p)}),this.map(u,(f,p)=>{let m=e[f];if(!m)return;let g=p.metas.map(v=>v.phx_ref);m.metas=m.metas.filter(v=>g.indexOf(v.phx_ref)<0),l(f,m,p),m.metas.length===0&&delete e[f]}),e}static list(e,i){return i||(i=function(a,l){return l}),this.map(e,(a,l)=>i(a,l))}static map(e,i){return Object.getOwnPropertyNames(e).map(a=>i(a,e[a]))}static clone(e){return JSON.parse(JSON.stringify(e))}},Al={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let i=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(JSON.stringify(i))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[i,a,l,c,u]=JSON.parse(t);return e({join_ref:i,ref:a,topic:l,event:c,payload:u})}},binaryEncode(t){let{join_ref:e,ref:i,event:a,topic:l,payload:c}=t,u=this.META_LENGTH+e.length+i.length+l.length+a.length,f=new ArrayBuffer(this.HEADER_LENGTH+u),p=new DataView(f),m=0;p.setUint8(m++,this.KINDS.push),p.setUint8(m++,e.length),p.setUint8(m++,i.length),p.setUint8(m++,l.length),p.setUint8(m++,a.length),Array.from(e,v=>p.setUint8(m++,v.charCodeAt(0))),Array.from(i,v=>p.setUint8(m++,v.charCodeAt(0))),Array.from(l,v=>p.setUint8(m++,v.charCodeAt(0))),Array.from(a,v=>p.setUint8(m++,v.charCodeAt(0)));var g=new Uint8Array(f.byteLength+c.byteLength);return g.set(new Uint8Array(f),0),g.set(new Uint8Array(c),f.byteLength),g.buffer},binaryDecode(t){let e=new DataView(t),i=e.getUint8(0),a=new TextDecoder;switch(i){case this.KINDS.push:return this.decodePush(t,e,a);case this.KINDS.reply:return this.decodeReply(t,e,a);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,a)}},decodePush(t,e,i){let a=e.getUint8(1),l=e.getUint8(2),c=e.getUint8(3),u=this.HEADER_LENGTH+this.META_LENGTH-1,f=i.decode(t.slice(u,u+a));u=u+a;let p=i.decode(t.slice(u,u+l));u=u+l;let m=i.decode(t.slice(u,u+c));u=u+c;let g=t.slice(u,t.byteLength);return{join_ref:f,ref:null,topic:p,event:m,payload:g}},decodeReply(t,e,i){let a=e.getUint8(1),l=e.getUint8(2),c=e.getUint8(3),u=e.getUint8(4),f=this.HEADER_LENGTH+this.META_LENGTH,p=i.decode(t.slice(f,f+a));f=f+a;let m=i.decode(t.slice(f,f+l));f=f+l;let g=i.decode(t.slice(f,f+c));f=f+c;let v=i.decode(t.slice(f,f+u));f=f+u;let b=t.slice(f,t.byteLength),_={status:v,response:b};return{join_ref:p,ref:m,topic:g,event:Fn.reply,payload:_}},decodeBroadcast(t,e,i){let a=e.getUint8(1),l=e.getUint8(2),c=this.HEADER_LENGTH+2,u=i.decode(t.slice(c,c+a));c=c+a;let f=i.decode(t.slice(c,c+l));c=c+l;let p=t.slice(c,t.byteLength);return{join_ref:null,ref:null,topic:u,event:f,payload:p}}},L1=class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=e.timeout||O1,this.transport=e.transport||_n.WebSocket||la,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=e.longPollFallbackMs,this.fallbackTimer=null;let i=null;try{i=_n&&_n.sessionStorage}catch{}this.sessionStore=e.sessionStorage||i,this.establishedConnections=0,this.defaultEncoder=Al.encode.bind(Al),this.defaultDecoder=Al.decode.bind(Al),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==la?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let a=null;pa&&pa.addEventListener&&(pa.addEventListener("pagehide",l=>{this.conn&&(this.disconnect(),a=this.connectClock)}),pa.addEventListener("pageshow",l=>{a===this.connectClock&&(a=null,this.connect())}),pa.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=e.autoSendHeartbeat??!0,this.heartbeatCallback=e.heartbeatCallback??(()=>{}),this.rejoinAfterMs=l=>e.rejoinAfterMs?e.rejoinAfterMs(l):[1e3,2e3,5e3][l-1]||1e4,this.reconnectAfterMs=l=>e.reconnectAfterMs?e.reconnectAfterMs(l):[10,50,100,150,200,250,500,1e3,2e3][l-1]||5e3,this.logger=e.logger||null,!this.logger&&e.debug&&(this.logger=(l,c,u)=>{console.log(`${l}: ${c}`,u)}),this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=Cs(e.params||{}),this.endPoint=`${t}/${vf.websocket}`,this.vsn=e.vsn||A1,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Db(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{e.beforeReconnect&&await e.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=e.authToken}getLongPollTransport(){return la}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.
vendor: 4,337 bytes, line 21
21close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Fl.appendParams(Fl.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,i){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,t&&t()},e,i)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Cs(t)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==la?this.connectWithFallback(la,this.longPollFallbackMs):this.transportConnect())}log(t,e,i){this.logger&&this.logger(t,e,i)}hasLogger(){return this.logger!==null}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}onHeartbeat(t){this.heartbeatCallback=t}ping(t){if(!this.isConnected())return!1;let e=this.makeRef(),i=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let a=this.onMessage(l=>{l.ref===e&&(this.off([a]),t(Date.now()-i))});return!0}transportName(t){return t===la?"LongPoll":t.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let t;this.authToken&&(t=["phoenix",`${yf}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),t),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(t){return this.sessionStore&&this.sessionStore.getItem(t)}storeSession(t,e){this.sessionStore&&this.sessionStore.setItem(t,e)}connectWithFallback(t,e=2500){clearTimeout(this.fallbackTimer);let i=!1,a=!0,l,c,u=this.transportName(t),f=p=>{this.log("transport",`falling back to ${u}...`,p),this.off([l,c]),a=!1,this.replaceTransport(t),this.transportConnect()};if(this.getSession(`phx:fallback:${u}`))return f("memorized");this.fallbackTimer=setTimeout(f,e),c=this.onError(p=>{this.log("transport","error",p),a&&!i&&(clearTimeout(this.fallbackTimer),f(p))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(i=!0,!a){let p=this.transportName(t);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${p}`,"true"),this.log("transport",`established ${p} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(f,e),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(t){this.log("error","error in heartbeat callback",t)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),j1,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,e,i){if(!this.conn)return t&&t();const a=this.conn;this.waitForBufferDone(a,()=>{e?a.close(e,i||""):a.close(),this.waitForSocketClosed(a,()=>{this.conn===a&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){}
21,this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,e,i=1){if(i===5||!t.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(t,e,i+1)},150*i)}waitForSocketClosed(t,e,i=1){if(i===5||t.readyState===Sn.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(t,e,i+1)},150*i)}onConnClose(t){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(t),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",t)}onConnError(t){this.hasLogger()&&this.log("transport","error",t);let e=this.transport,i=this.establishedConnections;this.triggerStateCallbacks("error",t,e,i),(e===this.transport||i>0)&&this.triggerChanError(t)}triggerChanError(t){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(Fn.error,t)})}connectionState(){switch(this.conn&&this.conn.readyState){case Sn.connecting:return"connecting";case Sn.open:return"open";case Sn.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(e=>e!==t)}off(t){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([i])=>t.indexOf(i)===-1)}channel(t,e={}){let i=new x1(t,e,this);return this.channels.push(i),i}push(t){if(this.hasLogger()){let{topic:e,event:i,payload:a,ref:l,join_ref:c}=t;this.log("push",`${e} ${i} (${c}, ${l})`,a)}this.isConnected()?this.encode(t,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(t,e=>this.conn.send(e)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(t){this.log("error","error in heartbeat callback",t)}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(t){this.log("error","error in heartbeat callback",t)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,e=>{let{topic:i,event:a,payload:l,ref:c,join_ref:u}=e;if(c&&c===this.pendingHeartbeatRef){const f=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(l.status==="ok"?"ok":"error",f)}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||""} ${i} ${a} ${c&&"("+c+")"||""}`.trim(),l);for(let f=0;f<this.channels.length;f++){const p=this.channels[f];p.isMember(i,a,l,u)&&p.trigger(a,l,c,u)}this.triggerStateCallbacks("message",e)})}triggerStateCallbacks(t,...e){try{this.stateChangeCallbacks[t].forEach(([i,a])=>{try{a(...e)}catch(l){this.log("error",`error in ${t} callback`,l)}})}catch(i){this.log("error",`error triggering ${t} callbacks`,i)}}leaveOpenTopic(t){let e=this.channels.find(i=>i.topic===t&&(i.isJoined()||i.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}};class xs{constructor(e,i){const a=M1(i);this.presence=new D1(e.getChannel(),a),this.presence.onJoin((l,c,u)=>{const f=xs.onJoinPayload(l,c,u);e.getChannel().trigger("presence",f)}),this.presence.onLeave((l,c,u)=>{const f=xs.onLeavePayload(l,c,u);e.getChannel().trigger("presence",f)}),this.presence.onSync(()=>{e.getChannel().trigger("presence",{event:"sync"})})}get state(){return xs.transformState(this.presence.state)}static transformState(e){return e=N1(e),Object.getOwnPropertyNames(e).reduce((i,a)=>{const l=e[a];return i[a]=Il(l),i},{})}static onJoinPayload(e,i,a){const l=ry(i),c=Il(a);return{event:"join",key:e,currentPresences:l,newPresences:c}}static onLeavePayload(e,i,a){const l=ry(i),c=Il(a);return{event:"leave",key:e,currentPresences:l,leftPresences:c}}}function Il(t){return t.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e))}function N1(t){return JSON.parse(JSON.stringify(t))}function M1(t){return t?.events&&{events:t.events}}function ry(t){return t?.metas?Il(t):[]}var iy;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(iy||(iy={}));class U1{get state(){return this.presenceAdapter.state}constructor(e,i){this.channel=e,this.presenceAdapter=new xs(this.channel.channelAdapter,i)}}function H1(t){if(t instanceof Error)return t;if(typeof t=="string")return new Error(t);if(t&&typeof t=="object"){const e=t;
21if(typeof e.code=="number"){const i=typeof e.reason=="string"&&e.reason?` (${e.reason})`:"";return new Error(`socket closed: ${e.code}${i}`,{cause:t})}return new Error("channel error: transport failure",{cause:t})}return new Error("channel error: connection lost")}class P1{constructor(e,i,a){const l=B1(a);this.channel=e.getSocket().channel(i,l),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,i){return this.channel.on(e,i)}off(e,i){this.channel.off(e,i)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}push(e,i,a){let l;try{l=this.channel.push(e,i,a)}catch{throw new Error(`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>y1){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(e){const i=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},i),e)}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(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}}function B1(t){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config)}}var ay;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(ay||(ay={}));var _a;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(_a||(_a={}));var Yn;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Yn||(Yn={}));class zs{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}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(e,i={config:{}},a){var l,c;if(this.topic=e,this.params=i,this.socket=a,this.bindings={},this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},i.config),this.channelAdapter=new P1(this.socket.socketAdapter,e,this.params),this.presence=new U1(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=zb(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(e,i=this.timeout){var a,l,c;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:u,presence:f,private:p}}=this.params,m=(l=(a=this.bindings.postgres_changes)===null||a===void 0?void 0:a.map(_=>_.filter))!==null&&l!==void 0?l:[],g=!!this.bindings[_a.PRESENCE]&&this.bindings[_a.PRESENCE].length>0||((c=this.params.config.presence)===null||c===void 0?void 0:c.enabled)===!0,v={},b={broadcast:u,presence:Object.assign(Object.assign({},f),{enabled:g}),postgres_changes:m,private:p};this.socket.accessTokenValue&&(v.access_token=this.socket.accessTokenValue),this._onError(_=>{e?.(Yn.CHANNEL_ERROR,H1(_))}),this._onClose(()=>e?.(Yn.CLOSED)),this.updateJoinPayload(Object.assign({config:b},v)),this._updateFilterMessage(),this.channelAdapter.subscribe(i).receive("ok",async({postgres_changes:_})=>
21{if(this.socket._isManualToken()||this.socket.setAuth(),_===void 0){e?.(Yn.SUBSCRIBED);return}this._updatePostgresBindings(_,e)}).receive("error",_=>{this.state=xr.errored;const S=Object.values(_).join(", ")||"error";e?.(Yn.CHANNEL_ERROR,new Error(S,{cause:_}))}).receive("timeout",()=>{e?.(Yn.TIMED_OUT)})}return this}_updatePostgresBindings(e,i){var a;const l=this.bindings.postgres_changes,c=(a=l?.length)!==null&&a!==void 0?a:0,u=[];for(let f=0;f<c;f++){const p=l[f],{filter:{event:m,schema:g,table:v,filter:b}}=p,_=e&&e[f];if(_&&_.event===m&&zs.isFilterValueEqual(_.schema,g)&&zs.isFilterValueEqual(_.table,v)&&zs.isFilterValueEqual(_.filter,b))u.push(Object.assign(Object.assign({},p),{id:_.id}));else{this.unsubscribe(),this.state=xr.errored,i?.(Yn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=u,this.state!=xr.errored&&i&&i(Yn.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e,i={}){return await this.send({type:"presence",event:"track",payload:e},i.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,i,a){const l=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),c=e===_a.PRESENCE||e===_a.POSTGRES_CHANGES;if(l&&c)throw this.socket.log("channel",`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(e,i,a)}async httpSend(e,i,a={}){var l;if(i==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:e,payload:i,private:this.private}]})},f=await this._fetchWithTimeout(this.broadcastEndpointURL,u,(l=a.timeout)!==null&&l!==void 0?l:this.timeout);if(f.status===202)return{success:!0};let p=f.statusText;try{const m=await f.json();p=m.error||m.message||p}catch{}return Promise.reject(new Error(p))}async send(e,i={}){var a,l;if(!this.channelAdapter.canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
21in the future. Please use httpSend() explicitly for REST delivery.");const{event:c,payload:u}=e,f={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(f.Authorization=`Bearer ${this.socket.accessTokenValue}`);const p={method:"POST",headers:f,body:JSON.stringify({messages:[{topic:this.subTopic,event:c,payload:u,private:this.private}]})};try{const m=await this._fetchWithTimeout(this.broadcastEndpointURL,p,(a=i.timeout)!==null&&a!==void 0?a:this.timeout);return await((l=m.body)===null||l===void 0?void 0:l.cancel()),m.ok?"ok":"error"}catch(m){return m instanceof Error&&m.name==="AbortError"?"timed out":"error"}}else return new Promise(c=>{var u,f,p;const m=this.channelAdapter.push(e.type,e,i.timeout||this.timeout);e.type==="broadcast"&&!(!((p=(f=(u=this.params)===null||u===void 0?void 0:u.config)===null||f===void 0?void 0:f.broadcast)===null||p===void 0)&&p.ack)&&c("ok"),m.receive("ok",()=>c("ok")),m.receive("error",()=>c("error")),m.receive("timeout",()=>c("timed out"))})}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(i=>{this.channelAdapter.unsubscribe(e).receive("ok",()=>i("ok")).receive("timeout",()=>i("timed out")).receive("error",()=>i("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,i,a){const l=new AbortController,c=setTimeout(()=>l.abort(),a),u=await this.socket.fetch(e,Object.assign(Object.assign({},i),{signal:l.signal}));return clearTimeout(c),u}_on(e,i,a){const l=e.toLocaleLowerCase(),c=this.channelAdapter.on(e,a),u={type:l,filter:i,callback:a,ref:c};return this.bindings[l]?this.bindings[l].push(u):this.bindings[l]=[u],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,i,a)=>{var l,c,u,f,p,m,g;const v=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(v,a))return!1;const b=(l=this.bindings[v])===null||l===void 0?void 0:l.find(_=>_.ref===e.ref);if(!b)return!0;if(["broadcast","presence","postgres_changes"].includes(v))if("id"in b){const _=b.id,S=(c=b.filter)===null||c===void 0?void 0:c.event;return _&&((u=i.ids)===null||u===void 0?void 0:u.includes(_))&&(S==="*"||S?.toLocaleLowerCase()===((f=i.data)===null||f===void 0?void 0:f.type.toLocaleLowerCase()))}else{const _=(m=(p=b?.filter)===null||p===void 0?void 0:p.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return _==="*"||_===((g=i?.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return b.type.toLocaleLowerCase()===v})}_notThisChannelEvent(e,i){const{close:a,error:l,leave:c,join:u}=Cb;return i&&[a,l,c,u].includes(e)&&i!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,i,a)=>{if(typeof i=="object"&&"ids"in i){const l=i.data,{schema:c,table:u,commit_timestamp:f,type:p,errors:m}=l;return Object.assign(Object.assign({},{schema:c,table:u,commit_timestamp:f,eventType:p,new:{},old:{},errors:m}),this._getPayloadRecords(l))}return i})}copyBindings(e){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const i in e.bindings)for(const a of e.bindings[i])this._on(a.type,a.filter,a.callback)}static isFilterValueEqual(e,i){return(e??void 0)===(i??void 0)}_getPayloadRecords(e){const i={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(i.new=ny(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(i.old=ny(e.columns,e.old_record)),i}}class I1{constructor(e,i){this.socket=new L1(e,i)}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(e){this.socket.heartbeatCallback=e}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(e,i,a,l=1e4){return new Promise(c=>{setTimeout(()=>c("timeout"),l),this.socket.disconnect(()=>{e(),c("ok")},i,a)})}push(e){this.socket.push(e)}log(e,i,a){this.socket.log(e,i,a)}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==mf.connecting}isDisconnecting(){return this.socket.connectionState()==mf.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const sy={HEARTBEAT_INTERVAL:25e3},$1=[1e3,2e3,5e3,1e4],q1=1e4;function V1(){const t=new Map;return{get length(){return t.size},clear(){t.clear()},getItem(e){return t.has(e)?t.get(e):null},key(e){var i;return(i=Array.from(t.keys())[e])!==null&&i!==void 0?i:null},removeItem(e){t.delete(e)},setItem(e,i){t.set(e,String(i))}}}function G1(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return V1()}const Z1=` 22 addEventListener("message", (e) => { 23 if (e.data.event === "start") { 24 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 25 } 26 });`;class K1{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(e,i){var a;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
26,this.ref=0,this.serializer=new b1,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),!(!((a=i?.params)===null||a===void 0)&&a.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=i.params.apikey;const l=this._initializeOptions(i);this.socketAdapter=new I1(e,l),this.httpEndpoint=zb(e),this.fetch=this._resolveFetch(i?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){const i=e.message;throw i.includes("Node.js")?new Error(`${i} 27 28To use Realtime in Node.js, you need to provide a WebSocket implementation: 29 30Option 1: Use Node.js 22+ which has native WebSocket support 31Option 2: Install and provide the "ws" package: 32 33 npm install ws 34 35 import ws from "ws" 36 const client = new RealtimeClient(url, { 37 ...options, 38 transport: ws 39 })`):new Error(`WebSocket not available: ${i}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,i){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,i)}getChannels(){return this.channels}async removeChannel(e){const i=await e.unsubscribe();return i==="ok"&&e.teardown(),i}async removeAllChannels(){const e=this.channels.map(async a=>{const l=await a.unsubscribe();return a.teardown(),l}),i=await Promise.all(e);return await this.disconnect(),i}log(e,i,a){this.socketAdapter.log(e,i,a)}connectionState(){return this.socketAdapter.connectionState()||mf.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,i={config:{}}){const a=`realtime:${e}`,l=this.getChannels().find(c=>c.topic===a);if(l)return l;{const c=new zs(`realtime:${e}`,i,this);return this._cancelPendingDisconnect(),this.channels.push(c),c}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(i=>i.topic!==e.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}
39this._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(e=null){let i,a=!1;if(e)i=e,a=!0;else if(this.accessToken)try{i=await this.accessToken()}catch(l){this.log("error","Error fetching access token from callback",l),i=this.accessTokenValue}else i=this.accessTokenValue;a?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=i&&(this.accessTokenValue=i,this.channels.forEach(l=>{const c={access_token:i,version:p1};i&&l.updateJoinPayload(c),l.joinedOnce&&l.channelAdapter.isJoined()&&l.channelAdapter.push(Cb.access_token,{access_token:i})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(i=>{this.log("error",`Error setting auth in ${e}`,i)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(i=>{this.log("error","error waiting for auth on connect",i)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(i,a)=>{i=="sent"&&this._setAuthSafely(),e&&e(i,a)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=i=>{this.log("worker","worker error",i.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=i=>{i.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(e){let i;if(e)i=e;else{const a=new Blob([Z1],{type:"application/javascript"});i=URL.createObjectURL(a)}return i}_initializeOptions(e){var i,a,l,c,u,f,p,m,g,v,b,_;this.worker=(i=e?.worker)!==null&&i!==void 0?i:!1,this.accessToken=(a=e?.accessToken)!==null&&a!==void 0?a:null;const S={};S.timeout=(l=e?.timeout)!==null&&l!==void 0?l:v1,S.heartbeatIntervalMs=(c=e?.heartbeatIntervalMs)!==null&&c!==void 0?c:sy.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(u=e?.disconnectOnEmptyChannelsAfterMs)!==null&&u!==void 0?u:2*((f=e?.heartbeatIntervalMs)!==null&&f!==void 0?f:sy.HEARTBEAT_INTERVAL),S.transport=(p=e?.transport)!==null&&p!==void 0?p:f1.getWebSocketConstructor(),S.params=e?.params,S.logger=e?.logger,S.heartbeatCallback=this._wrapHeartbeatCallback(e?.heartbeatCallback),S.sessionStorage=(m=e?.sessionStorage)!==null&&m!==void 0?m:G1(),S.reconnectAfterMs=(g=e?.reconnectAfterMs)!==null&&g!==void 0?g:(C=>$1[C-1]||q1);let E,T;const R=(v=e?.vsn)!==null&&v!==void 0?v:g1;switch(R){case m1:E=(C,j)=>j(JSON.stringify(C)),T=(C,j)=>j(JSON.parse(C));break;case jb:E=this.serializer.encode.bind(this.serializer),T=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${S.vsn}`)}if(S.vsn=R,S.encode=(b=e?.encode)!==null&&b!==void 0?b:E,S.decode=(_=e?.decode)!==null&&_!==void 0?_:T,S.beforeReconnect=this._reconnectAuth.bind(this),(e?.logLevel||e?.log_level)&&(this.logLevel=e.logLevel||e.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=e?.workerUrl,S.autoSendHeartbeat=!this.worker}return S}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
39var Is=class extends Error{constructor(t,e){super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&e.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function F1(t,e,i){const a=new URL(e,t);if(i)for(const[l,c]of Object.entries(i))c!==void 0&&a.searchParams.set(l,c);return a.toString()}async function Y1(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function J1(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:i,path:a,query:l,body:c,headers:u}){const f=F1(t.baseUrl,a,l),p=await Y1(t.auth),m=await e(f,{method:i,headers:{...c?{"Content-Type":"application/json"}:{},...p,...u},body:c?JSON.stringify(c):void 0}),g=await m.text(),v=(m.headers.get("content-type")||"").includes("application/json"),b=v&&g?JSON.parse(g):g;if(!m.ok){const _=v?b:void 0,S=_?.error;throw new Is(S?.message??`Request failed with status ${m.status}`,{status:m.status,icebergType:S?.type,icebergCode:S?.code,details:_})}return{status:m.status,headers:m.headers,data:b}}}}function Ol(t){return t.join("�")}var Q1=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:Ol(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(a=>({namespace:a}))}async createNamespace(t,e){const i={namespace:t.namespace,properties:e?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:i})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ol(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ol(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ol(t.namespace)}`}),!0}catch(e){if(e instanceof Is&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(i){if(i instanceof Is&&i.status===409)return;throw i}}};function ca(t){return t.join("�")}var X1=class{constructor(t,e="",i){this.client=t,this.prefix=e,this.accessDelegation=i}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ca(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const i={};return this.accessDelegation&&(i["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ca(t.namespace)}/tables`,body:e,headers:i})).data.metadata}async updateTable(t,e){const i=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ca(t.namespace)}/tables/${t.name}`,body:e});return{"metadata-location":i.data["metadata-location"],metadata:i.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ca(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String(e?.purge??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ca(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ca(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(i){if(i instanceof Is&&i.status===404)return!1;throw i}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(i){if(i instanceof Is&&i.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw i}}},W1=class{constructor(t){let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const i=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=J1({baseUrl:i,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=t.accessDelegation?.join(","),this.namespaceOps=new Q1(this.client,e),this.tableOps=new X1(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}
39async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}};function $s(t){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$s(t)}function eO(t,e){if($s(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,e);if($s(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function tO(t){var e=eO(t,"string");return $s(e)=="symbol"?e:e+""}function nO(t,e,i){return(e=tO(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function oy(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),i.push.apply(i,a)}return i}function me(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?oy(Object(i),!0).forEach(function(a){nO(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):oy(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}var cc=class extends Error{constructor(t,e="storage",i,a){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=i,this.statusCode=a}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function uc(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var bf=class extends cc{constructor(t,e,i,a="storage"){super(t,a,e,i),this.name=a==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=i}toJSON(){return me({},super.toJSON())}},Lb=class extends cc{constructor(t,e,i="storage"){super(t,i),this.name=i==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};function Yl(t,e,i){const a=me({},t),l=e.toLowerCase();for(const c of Object.keys(a))c.toLowerCase()===l&&delete a[c];return a[l]=i,a}function rO(t){const e={};for(const[i,a]of Object.entries(t))e[i.toLowerCase()]=a;return e}const iO=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),aO=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},_f=t=>{if(Array.isArray(t))return t.map(i=>_f(i));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([i,a])=>{const l=i.replace(/([-_][a-z])/gi,c=>c.toUpperCase().replace(/[-_]/g,""));e[l]=_f(a)}),e},sO=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t),ly=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error;if(typeof e.error=="object"&&e.error!==null){const i=e.error;if(typeof i.message=="string")return i.message}}return JSON.stringify(t)},oO=async(t,e,i,a)=>{if(t!==null&&typeof t=="object"&&"json"in t&&typeof t.json=="function"){const l=t;let c=parseInt(String(l.status),10);Number.isFinite(c)||(c=500),l.json().then(u=>{const f=u?.statusCode||u?.code||c+"";e(new bf(ly(u),c,f,a))}).catch(()=>{const u=c+"";e(new bf(l.statusText||`HTTP ${c} error`,c,u,a))})}else e(new Lb(ly(t),t,a))},lO=(t,e,i,a)=>{const l={method:t,headers:e?.headers||{}};if(t==="GET"||t==="HEAD"||!a)return me(me({},l),i);if(aO(a)){var c;const u=e?.headers||{};let f;for(const[p,m]of Object.entries(u))p.toLowerCase()==="content-type"&&(f=m);l.headers=Yl(u,"Content-Type",(c=f)!==null&&c!==void 0?c:"application/json"),l.body=JSON.stringify(a)}else l.body=a;return e?.duplex&&(l.duplex=e.duplex),me(me({},l),i)};async function Ts(t,e,i,a,l,c,u){return new Promise((f,p)=>{t(i,lO(e,a,l,c)).then(m=>{if(!m.ok)throw m;if(a?.noResolveJson)return m;if(u==="vectors"){const g=m.headers.get("content-type");if(m.headers.get("content-length")==="0"||m.status===204)return{};if(!g||!g.includes("application/json"))return{}}return m.json()}).then(m=>f(m)).catch(m=>oO(m,p,a,u))})}function Nb(t="storage"){return{get:async(e,i,a,l)=>Ts(e,"GET",i,a,l,void 0,t),post:async(e,i,a,l,c)=>Ts(e,"POST",i,l,c,a,t),put:async(e,i,a,l,c)=>Ts(e,"PUT",i,l,c,a,t),head:async(e,i,a,l)=>Ts(e,"HEAD",i,me(me({},a),{},{noResolveJson:!0}),l,void 0,t),remove:async(e,i,a,l,c)=>Ts(e,"DELETE",i,l,c,a,t)}}const cO=Nb("storage"),{get:qs,post:ln,put:wf,head:uO,remove:Wf}=cO,qt=Nb("vectors");var Ra=class{constructor(t,e={},i,a="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=rO(e),this.fetch=iO(i),this.namespace=a}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=Yl(this.headers,t,e),this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(i){if(e.shouldThrowOnError)throw i;if(uc(i))return{data:null,error:i};throw i}}},hO=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e}then(t,e){return this.execute().then(t,e)}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(uc(e))return{data:null,error:e};throw e}}};let Mb;Mb=Symbol.toStringTag;var fO=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[Mb]="BlobDownloadBuilder",this.promise=null}asStream(){return new hO(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(uc(e))return{data:null,error:e};throw e}}};const dO={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},cy={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var pO=class extends Ra{constructor(t,e={},i,a){super(t,e,a,"storage"),this.bucketId=i}async uploadOrUpdate(t,e,i,a){var l=this;return l.handleOperation(async()=>{let c;const u=me(me({},cy),a);let f=me(me({},l.headers),t==="POST"&&{"x-upsert":String(u.upsert)});const p=u.metadata;if(typeof Blob<"u"&&i instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),p&&c.append("metadata",l.encodeMetadata(p)),c.append("",i)):typeof FormData<"u"&&i instanceof FormData?(c=i,c.has("cacheControl")||c.append("cacheControl",u.cacheControl),p&&!c.has("metadata")&&c.append("metadata",l.encodeMetadata(p))):(c=i,f["cache-control"]=`max-age=${u.cacheControl}`,f["content-type"]=u.contentType,p&&(f["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")),a?.headers)for(const[b,_]of Object.entries(a.headers))f=Yl(f,b,_);const m=l._removeEmptyFolders(e),g=l._getFinalPath(m),v=await(t=="PUT"?wf:ln)(l.fetch,`${l.url}/object/${g}`,c,me({headers:f},u?.duplex?{duplex:u.duplex}:{}));return{path:m,id:v.Id,fullPath:v.Key}})}async upload(t,e,i){return this.uploadOrUpdate("POST",t,e,i)}async uploadToSignedUrl(t,e,i,a){var l=this;const c=l._removeEmptyFolders(t),u=l._getFinalPath(c),f=new URL(l.url+`/object/upload/sign/${u}`);return f.searchParams.set("token",e),l.handleOperation(async()=>{let p;const m=me(me({},cy),a);let g=me(me({},l.headers),{"x-upsert":String(m.upsert)});const v=m.metadata;if(typeof Blob<"u"&&i instanceof Blob?(p=new FormData,p.append("cacheControl",m.cacheControl),v&&p.append("metadata",l.encodeMetadata(v)),p.append("",i)):typeof FormData<"u"&&i instanceof FormData?(p=i,p.has("cacheControl")||p.append("cacheControl",m.cacheControl),v&&!p.has("metadata")&&p.append("metadata",l.encodeMetadata(v))):(p=i,g["cache-control"]=`max-age=${m.cacheControl}`,g["content-type"]=m.contentType,v&&(g["x-metadata"]=l.toBase64(l.encodeMetadata(v))),(typeof ReadableStream<"u"&&p instanceof ReadableStream||p&&typeof p=="object"&&"pipe"in p&&typeof p.pipe=="function")&&!m.duplex&&(m.duplex="half")),a?.headers)for(const[b,_]of Object.entries(a.headers))g=Yl(g,b,_);return{path:c,fullPath:(await wf(l.fetch,f.toString(),p,me({headers:g},m?.duplex?{duplex:m.duplex}:{}))).Key}})}async createSignedUploadUrl(t,e){var i=this;return i.handleOperation(async()=>{let a=i._getFinalPath(t);const l=me({},i.headers);e?.upsert&&(l["x-upsert"]="true");const c=await ln(i.fetch,`${i.url}/object/upload/sign/${a}`,{},{headers:l}),u=new URL(i.url+c.url),f=u.searchParams.get("token");if(!f)throw new cc("No token returned by API");return{signedUrl:u.toString(),path:t,token:f}})}async update(t,e,i){return this.uploadOrUpdate("PUT",t,e,i)}async move(t,e,i){var a=this;return a.handleOperation(async()=>await ln(a.fetch,`${a.url}/object/move`,{bucketId:a.bucketId,sourceKey:t,destinationKey:e,destinationBucket:i?.destinationBucket},{headers:a.headers}))}
39async copy(t,e,i){var a=this;return a.handleOperation(async()=>({path:(await ln(a.fetch,`${a.url}/object/copy`,{bucketId:a.bucketId,sourceKey:t,destinationKey:e,destinationBucket:i?.destinationBucket},{headers:a.headers})).Key}))}async createSignedUrl(t,e,i){var a=this;return a.handleOperation(async()=>{let l=a._getFinalPath(t);const c=typeof i?.transform=="object"&&i.transform!==null&&Object.keys(i.transform).length>0;let u=await ln(a.fetch,`${a.url}/object/sign/${l}`,me({expiresIn:e},c?{transform:i.transform}:{}),{headers:a.headers});const f=new URLSearchParams;i?.download&&f.set("download",i.download===!0?"":i.download),i?.cacheNonce!=null&&f.set("cacheNonce",String(i.cacheNonce));const p=f.toString();return{signedUrl:encodeURI(`${a.url}${u.signedURL}${p?`&${p}`:""}`)}})}async createSignedUrls(t,e,i){var a=this;return a.handleOperation(async()=>{const l=await ln(a.fetch,`${a.url}/object/sign/${a.bucketId}`,{expiresIn:e,paths:t},{headers:a.headers}),c=new URLSearchParams;i?.download&&c.set("download",i.download===!0?"":i.download),i?.cacheNonce!=null&&c.set("cacheNonce",String(i.cacheNonce));const u=c.toString();return l.map(f=>me(me({},f),{},{signedUrl:f.signedURL?encodeURI(`${a.url}${f.signedURL}${u?`&${u}`:""}`):null}))})}download(t,e,i){const a=typeof e?.transform=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image/authenticated":"object",l=new URLSearchParams;e?.transform&&this.applyTransformOptsToQuery(l,e.transform),e?.cacheNonce!=null&&l.set("cacheNonce",String(e.cacheNonce));const c=l.toString(),u=this._getFinalPath(t),f=()=>qs(this.fetch,`${this.url}/${a}/${u}${c?`?${c}`:""}`,{headers:this.headers,noResolveJson:!0},i);return new fO(f,this.shouldThrowOnError)}async info(t){var e=this;const i=e._getFinalPath(t);return e.handleOperation(async()=>_f(await qs(e.fetch,`${e.url}/object/info/${i}`,{headers:e.headers})))}async exists(t){var e=this;const i=e._getFinalPath(t);try{return await uO(e.fetch,`${e.url}/object/${i}`,{headers:e.headers}),{data:!0,error:null}}catch(l){if(e.shouldThrowOnError)throw l;if(uc(l)){var a;const c=l instanceof bf?l.status:l instanceof Lb?(a=l.originalError)===null||a===void 0?void 0:a.status:void 0;if(c!==void 0&&[400,404].includes(c))return{data:!1,error:l}}throw l}}getPublicUrl(t,e){const i=this._getFinalPath(t),a=new URLSearchParams;e?.download&&a.set("download",e.download===!0?"":e.download),e?.transform&&this.applyTransformOptsToQuery(a,e.transform),e?.cacheNonce!=null&&a.set("cacheNonce",String(e.cacheNonce));const l=a.toString(),c=typeof e?.transform=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${c}/public/${i}`)+(l?`?${l}`:"")}}}async remove(t){var e=this;return e.handleOperation(async()=>await Wf(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async list(t,e,i){var a=this;return a.handleOperation(async()=>{const l=me(me(me({},dO),e),{},{prefix:t||""});return await ln(a.fetch,`${a.url}/object/list/${a.bucketId}`,l,{headers:a.headers},i)})}async listV2(t,e){var i=this;return i.handleOperation(async()=>{const a=me({},t);return await ln(i.fetch,`${i.url}/object/list-v2/${i.bucketId}`,a,{headers:i.headers},e)})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(t,e){return e.width&&t.set("width",e.width.toString()),e.height&&t.set("height",e.height.toString()),e.resize&&t.set("resize",e.resize),e.format&&t.set("format",e.format),e.quality&&t.set("quality",e.quality.toString()),t}};const mO="2.105.4",Xs={"X-Client-Info":`storage-js/${mO}`};var gO=class extends Ra{constructor(t,e={},i,a){const l=new URL(t);a?.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=me(me({},Xs),e);super(c,u,i,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const i=e.listBucketOptionsToQueryString(t);return await qs(e.fetch,`${e.url}/bucket${i}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await qs(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var i=this;return i.handleOperation(async()=>await ln(i.fetch,`${i.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:i.headers}))}async updateBucket(t,e){var i=this;return i.handleOperation(async()=>await wf(i.fetch,`${i.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:i.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await ln(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Wf(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},vO=class extends Ra{constructor(t,e={},i){const a=t.replace(/\/$/,""),l=me(me({},Xs),e);super(a,l,i,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await ln(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const i=new URLSearchParams;t?.limit!==void 0&&i.set("limit",t.limit.toString()),t?.offset!==void 0&&i.set("offset",t.offset.toString()),t?.sortColumn&&i.set("sortColumn",t.sortColumn),t?.sortOrder&&i.set("sortOrder",t.sortOrder),t?.search&&i.set("search",t.search);const a=i.toString(),l=a?`${e.url}/bucket?${a}`:`${e.url}/bucket`;return await qs(e.fetch,l,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Wf(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;
39if(!sO(t))throw new cc("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 i=new W1({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}),a=this.shouldThrowOnError;return new Proxy(i,{get(l,c){const u=l[c];return typeof u!="function"?u:async(...f)=>{try{return{data:await u.apply(l,f),error:null}}catch(p){if(a)throw p;return{data:null,error:p}}}}})}},yO=class extends Ra{constructor(t,e={},i){const a=t.replace(/\/$/,""),l=me(me({},Xs),{},{"Content-Type":"application/json"},e);super(a,l,i,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await qt.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var i=this;return i.handleOperation(async()=>await qt.post(i.fetch,`${i.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:i.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await qt.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var i=this;return i.handleOperation(async()=>await qt.post(i.fetch,`${i.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:i.headers})||{})}},bO=class extends Ra{constructor(t,e={},i){const a=t.replace(/\/$/,""),l=me(me({},Xs),{},{"Content-Type":"application/json"},e);super(a,l,i,"vectors")}async putVectors(t){var e=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return e.handleOperation(async()=>await qt.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await qt.post(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}))}async listVectors(t){var e=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return e.handleOperation(async()=>await qt.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await qt.post(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}))}async deleteVectors(t){var e=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return e.handleOperation(async()=>await qt.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},_O=class extends Ra{constructor(t,e={},i){const a=t.replace(/\/$/,""),l=me(me({},Xs),{},{"Content-Type":"application/json"},e);super(a,l,i,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await qt.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await qt.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await qt.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await qt.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},wO=class extends _O{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new SO(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,i=this;return e().call(i,t)}async getBucket(t){var e=()=>super.getBucket,i=this;return e().call(i,t)}async listBuckets(t={}){var e=()=>super.listBuckets,i=this;return e().call(i,t)}async deleteBucket(t){var e=()=>super.deleteBucket,i=this;return e().call(i,t)}},SO=class extends yO{constructor(t,e,i,a){super(t,e,a),this.vectorBucketName=i}async createIndex(t){var e=()=>super.createIndex,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,i=this;return e().call(i,i.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,i=this;return e().call(i,i.vectorBucketName,t)}index(t){return new EO(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},EO=class extends bO{constructor(t,e,i,a,l){super(t,e,l),this.vectorBucketName=i,this.indexName=a}async putVectors(t){var e=()=>super.putVectors,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async getVectors(t){var e=()=>super.getVectors,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,i=this;return e().call(i,me(me({},t),{},{vectorBucketName:i.vectorBucketName,indexName:i.indexName}))}},kO=class extends gO{constructor(t,e={},i,a){super(t,e,i,a)}from(t){return new pO(this.url,this.headers,t,this.fetch)}get vectors(){return new wO(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new vO(this.url+"/iceberg",this.headers,this.fetch)}};const Ub="2.105.4",ma=30*1e3,Sf=3,Yh=Sf*ma,TO="http://localhost:9999",RO="supabase.auth.token",AO={"X-Client-Info":`gotrue-js/${Ub}`},Ef="X-Supabase-Api-Version",Hb={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},OO=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,jO=600*1e3;
39class Vs extends Error{constructor(e,i,a){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=i,this.code=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function Q(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class CO extends Vs{constructor(e,i,a){super(e,i,a),this.name="AuthApiError",this.status=i,this.code=a}}function xO(t){return Q(t)&&t.name==="AuthApiError"}class un extends Vs{constructor(e,i){super(e),this.name="AuthUnknownError",this.originalError=i}}class rr extends Vs{constructor(e,i,a,l){super(e,a,l),this.name=i,this.status=a}}class ut extends rr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function jl(t){return Q(t)&&t.name==="AuthSessionMissingError"}class ua extends rr{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Cl extends rr{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class xl extends rr{constructor(e,i=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=i}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function zO(t){return Q(t)&&t.name==="AuthImplicitGrantRedirectError"}class uy extends rr{constructor(e,i=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=i}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class DO extends rr{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 kf extends rr{constructor(e,i){super(e,"AuthRetryableFetchError",i,void 0)}}function Jh(t){return Q(t)&&t.name==="AuthRetryableFetchError"}class hy extends rr{constructor(e,i,a){super(e,"AuthWeakPasswordError",i,"weak_password"),this.reasons=a}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Tf extends rr{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Jl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),fy=` 40\r=`.split(""),LO=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<fy.length;e+=1)t[fy[e].charCodeAt(0)]=-2;for(let e=0;e<Jl.length;e+=1)t[Jl[e].charCodeAt(0)]=e;return t})();function dy(t,e,i){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const a=e.queue>>e.queuedBits-6&63;i(Jl[a]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const a=e.queue>>e.queuedBits-6&63;i(Jl[a]),e.queuedBits-=6}}function Pb(t,e,i){const a=LO[t];if(a>-1)for(e.queue=e.queue<<6|a,e.queuedBits+=6;e.queuedBits>=8;)i(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(a===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function py(t){const e=[],i=u=>{e.push(String.fromCodePoint(u))},a={utf8seq:0,codepoint:0},l={queue:0,queuedBits:0},c=u=>{UO(u,a,i)};for(let u=0;u<t.length;u+=1)Pb(t.charCodeAt(u),l,c);return e.join("")}function NO(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function MO(t,e){for(let i=0;i<t.length;i+=1){let a=t.charCodeAt(i);if(a>55295&&a<=56319){const l=(a-55296)*1024&65535;a=(t.charCodeAt(i+1)-56320&65535|l)+65536,i+=1}NO(a,e)}}function UO(t,e,i){if(e.utf8seq===0){if(t<=127){i(t);return}for(let a=1;a<6;a+=1)if((t>>7-a&1)===0){e.utf8seq=a;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&i(e.codepoint)}}function Ta(t){const e=[],i={queue:0,queuedBits:0},a=l=>{e.push(l)};for(let l=0;l<t.length;l+=1)Pb(t.charCodeAt(l),i,a);return new Uint8Array(e)}function HO(t){const e=[];return MO(t,i=>e.push(i)),new Uint8Array(e)}function di(t){const e=[],i={queue:0,queuedBits:0},a=l=>{e.push(l)};return t.forEach(l=>dy(l,i,a)),dy(null,i,a),e.join("")}function PO(t){return Math.round(Date.now()/1e3)+t}function BO(){return Symbol("auth-callback")}const yt=()=>typeof window<"u"&&typeof document<"u",oi={tested:!1,writable:!1},Bb=()=>{if(!yt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(oi.tested)return oi.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),oi.tested=!0,oi.writable=!0}catch{oi.tested=!0,oi.writable=!1}return oi.writable};function IO(t){const e={},i=new URL(t);if(i.hash&&i.hash[0]==="#")try{new URLSearchParams(i.hash.substring(1)).forEac
40h((l,c)=>{e[c]=l})}catch{}return i.searchParams.forEach((a,l)=>{e[l]=a}),e}const Ib=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),$O=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",ga=async(t,e,i)=>{await t.setItem(e,JSON.stringify(i))},li=async(t,e)=>{const i=await t.getItem(e);if(!i)return null;try{return JSON.parse(i)}catch{return null}},vt=async(t,e)=>{await t.removeItem(e)};class hc{constructor(){this.promise=new hc.promiseConstructor((e,i)=>{this.resolve=e,this.reject=i})}}hc.promiseConstructor=Promise;function zl(t){const e=t.split(".");if(e.length!==3)throw new Tf("Invalid JWT structure");for(let a=0;a<e.length;a++)if(!OO.test(e[a]))throw new Tf("JWT not in base64url format");return{header:JSON.parse(py(e[0])),payload:JSON.parse(py(e[1])),signature:Ta(e[2]),raw:{header:e[0],payload:e[1]}}}async function qO(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function VO(t,e){return new Promise((a,l)=>{(async()=>{for(let c=0;c<1/0;c++)try{const u=await t(c);if(!e(c,null,u)){a(u);return}}catch(u){if(!e(c,u)){l(u);return}}})()})}function GO(t){return("0"+t.toString(16)).substr(-2)}function ZO(){const e=new Uint32Array(56);if(typeof crypto>"u"){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",a=i.length;let l="";for(let c=0;c<56;c++)l+=i.charAt(Math.floor(Math.random()*a));return l}return crypto.getRandomValues(e),Array.from(e,GO).join("")}async function KO(t){const i=new TextEncoder().encode(t),a=await crypto.subtle.digest("SHA-256",i),l=new Uint8Array(a);return Array.from(l).map(c=>String.fromCharCode(c)).join("")}async function FO(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const i=await KO(t);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ha(t,e,i=!1){const a=ZO();let l=a;i&&(l+="/recovery"),await ga(t,`${e}-code-verifier`,l);const c=await FO(a);return[c,a===c?"plain":"s256"]}const YO=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function JO(t){const e=t.headers.get(Ef);if(!e||!e.match(YO))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function QO(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function XO(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const WO=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Gn(t){if(!WO.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function sn(t){if(!t.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 Qh(){const t={};return new Proxy(t,{get:(e,i)=>{if(i==="__isUserNotAvailableProxy")return!0;if(typeof i=="symbol"){const a=i.toString();if(a==="Symbol(Symbol.toPrimitive)"||a==="Symbol(Symbol.toStringTag)"||a==="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 "${i}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function ej(t,e){return new Proxy(t,{get:(i,a,l)=>{if(a==="__isInsecureUserWarningProxy")return!0;
40if(typeof a=="symbol"){const c=a.toString();if(c==="Symbol(Symbol.toPrimitive)"||c==="Symbol(Symbol.toStringTag)"||c==="Symbol(util.inspect.custom)"||c==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(i,a,l)}return!e.value&&typeof a=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),e.value=!0),Reflect.get(i,a,l)}})}function my(t){return JSON.parse(JSON.stringify(t))}const ci=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error}return JSON.stringify(t)},tj=[502,503,504,520,521,522,523,524,530];async function gy(t){var e;if(!$O(t))throw new kf(ci(t),0);if(tj.includes(t.status))throw new kf(ci(t),t.status);let i;try{i=await t.json()}catch(c){throw new un(ci(c),c)}let a;const l=JO(t);if(l&&l.getTime()>=Hb["2024-01-01"].timestamp&&typeof i=="object"&&i&&typeof i.code=="string"?a=i.code:typeof i=="object"&&i&&typeof i.error_code=="string"&&(a=i.error_code),a){if(a==="weak_password")throw new hy(ci(i),t.status,((e=i.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(a==="session_not_found")throw new ut}else if(typeof i=="object"&&i&&typeof i.weak_password=="object"&&i.weak_password&&Array.isArray(i.weak_password.reasons)&&i.weak_password.reasons.length&&i.weak_password.reasons.reduce((c,u)=>c&&typeof u=="string",!0))throw new hy(ci(i),t.status,i.weak_password.reasons);throw new CO(ci(i),t.status||500,a)}const nj=(t,e,i,a)=>{const l={method:t,headers:e?.headers||{}};return t==="GET"?l:(l.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e?.headers),l.body=JSON.stringify(a),Object.assign(Object.assign({},l),i))};async function se(t,e,i,a){var l;const c=Object.assign({},a?.headers);c[Ef]||(c[Ef]=Hb["2024-01-01"].name),a?.jwt&&(c.Authorization=`Bearer ${a.jwt}`);const u=(l=a?.query)!==null&&l!==void 0?l:{};a?.redirectTo&&(u.redirect_to=a.redirectTo);const f=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",p=await rj(t,e,i+f,{headers:c,noResolveJson:a?.noResolveJson},{},a?.body);return a?.xform?a?.xform(p):{data:Object.assign({},p),error:null}}async function rj(t,e,i,a,l,c){const u=nj(e,a,l,c);let f;try{f=await t(i,Object.assign({},u))}catch(p){throw console.error(p),new kf(ci(p),0)}if(f.ok||await gy(f),a?.noResolveJson)return f;try{return await f.json()}catch(p){await gy(p)}}function en(t){var e;let i=null;sj(t)&&(i=Object.assign({},t),t.expires_at||(i.expires_at=PO(t.expires_in)));const a=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:i,user:a},error:null}}function vy(t){const e=en(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((i,a)=>i&&typeof a=="string",!0)&&(e.data.weak_password=t.weak_password),e}function zr(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function ij(t){return{data:t,error:null}}function aj(t){const{action_link:e,email_otp:i,hashed_token:a,redirect_to:l,verification_type:c}=t,u=lc(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),f={action_link:e,email_otp:i,hashed_token:a,redirect_to:l,verification_type:c},p=Object.assign({},u);return{data:{properties:f,user:p},error:null}}function yy(t){return t}function sj(t){return!!t.access_token&&!!t.refresh_token&&!!t.expires_in}const Xh=["global","local","others"];class oj{constructor({url:e="",headers:i={},fetch:a,experimental:l}){this.url=e,this.headers=i,this.fetch=Ib(a),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)}}
40async signOut(e,i=Xh[0]){if(Xh.indexOf(i)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Xh.join(", ")}`);try{return await se(this.fetch,"POST",`${this.url}/logout?scope=${i}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(a){if(Q(a))return{data:null,error:a};throw a}}async inviteUserByEmail(e,i={}){try{return await se(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:i.data},headers:this.headers,redirectTo:i.redirectTo,xform:zr})}catch(a){if(Q(a))return{data:{user:null},error:a};throw a}}async generateLink(e){try{const{options:i}=e,a=lc(e,["options"]),l=Object.assign(Object.assign({},a),i);return"newEmail"in a&&(l.new_email=a?.newEmail,delete l.newEmail),await se(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:l,headers:this.headers,xform:aj,redirectTo:i?.redirectTo})}catch(i){if(Q(i))return{data:{properties:null,user:null},error:i};throw i}}async createUser(e){try{return await se(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:zr})}catch(i){if(Q(i))return{data:{user:null},error:i};throw i}}async listUsers(e){var i,a,l,c,u,f,p;try{const m={nextPage:null,lastPage:0,total:0},g=await se(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(a=(i=e?.page)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:"",per_page:(c=(l=e?.perPage)===null||l===void 0?void 0:l.toString())!==null&&c!==void 0?c:""},xform:yy});if(g.error)throw g.error;const v=await g.json(),b=(u=g.headers.get("x-total-count"))!==null&&u!==void 0?u:0,_=(p=(f=g.headers.get("link"))===null||f===void 0?void 0:f.split(","))!==null&&p!==void 0?p:[];return _.length>0&&(_.forEach(S=>{const E=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),T=JSON.parse(S.split(";")[1].split("=")[1]);m[`${T}Page`]=E}),m.total=parseInt(b)),{data:Object.assign(Object.assign({},v),m),error:null}}catch(m){if(Q(m))return{data:{users:[]},error:m};throw m}}async getUserById(e){Gn(e);try{return await se(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:zr})}catch(i){if(Q(i))return{data:{user:null},error:i};throw i}}async updateUserById(e,i){Gn(e);try{return await se(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:i,headers:this.headers,xform:zr})}catch(a){if(Q(a))return{data:{user:null},error:a};throw a}}async deleteUser(e,i=!1){Gn(e);try{return await se(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:i},xform:zr})}catch(a){if(Q(a))return{data:{user:null},error:a};throw a}}async _listFactors(e){Gn(e.userId);try{const{data:i,error:a}=await se(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:l=>({data:{factors:l},error:null})});return{data:i,error:a}}catch(i){if(Q(i))return{data:null,error:i};throw i}}async _deleteFactor(e){Gn(e.userId),Gn(e.id);try{return{data:await se(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(i){if(Q(i))return{data:null,error:i};throw i}}async _listOAuthClients(e){var i,a,l,c,u,f,p;try{const m={nextPage:null,lastPage:0,total:0},g=await se(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(a=(i=e?.page)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:"",per_page:(c=(l=e?.perPage)===null||l===void 0?void 0:l.toString())!==null&&c!==void 0?c:""},xform:yy});if(g.error)throw g.error;const v=await g.json(),b=(u=g.headers.get("x-total-count"))!==null&&u!==void 0?u:0,_=(p=(f=g.headers.get("link"))===null||f===void 0?void 0:f.split(","))!==null&&p!==void 0?p:[];return _.length>0&&(_.forEach(S=>{const E=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),T=JSON.parse(S.split(";")[1].split("=")[1]);m[`${T}Page`]=E}),m.total=parseInt(b)),{data:Object.assign(Object.assign({},v),m),error:null}}catch(m){if(Q(m))return{data:{clients:[]},error:m};throw m}}async _createOAuthClient(e){try{return await se(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(Q(i))return{data:null,error:i};throw i}}async _getOAuthClient(e){try{return await se(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(Q(i))return{data:null,error:i};throw i}}async _updateOAuthClient(e,i){try{return await se(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:i,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(Q(a))return{data:null,error:a};throw a}}async _deleteOAuthClient(e){try{return await se(this.fetch,"DELET
40E",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(Q(i))return{data:null,error:i};throw i}}async _regenerateOAuthClientSecret(e){try{return await se(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(Q(i))return{data:null,error:i};throw i}}async _listCustomProviders(e){try{const i={};return e?.type&&(i.type=e.type),await se(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:i,xform:a=>{var l;return{data:{providers:(l=a?.providers)!==null&&l!==void 0?l:[]},error:null}}})}catch(i){if(Q(i))return{data:{providers:[]},error:i};throw i}}async _createCustomProvider(e){try{return await se(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(Q(i))return{data:null,error:i};throw i}}async _getCustomProvider(e){try{return await se(this.fetch,"GET",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(Q(i))return{data:null,error:i};throw i}}async _updateCustomProvider(e,i){try{return await se(this.fetch,"PUT",`${this.url}/admin/custom-providers/${e}`,{body:i,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(Q(a))return{data:null,error:a};throw a}}async _deleteCustomProvider(e){try{return await se(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(Q(i))return{data:null,error:i};throw i}}async _adminListPasskeys(e){sn(this.experimental),Gn(e.userId);try{return await se(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/passkeys`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(Q(i))return{data:null,error:i};throw i}}async _adminDeletePasskey(e){sn(this.experimental),Gn(e.userId),Gn(e.passkeyId);try{return await se(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/passkeys/${e.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(i){if(Q(i))return{data:null,error:i};throw i}}}function by(t={}){return{getItem:e=>t[e]||null,setItem:(e,i)=>{t[e]=i},removeItem:e=>{delete t[e]}}}const bn={debug:!!(globalThis&&Bb()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class $b extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class _y extends $b{}async function lj(t,e,i){bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const a=new globalThis.AbortController;let l;e>0&&(l=setTimeout(()=>{a.abort(),bn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e)),await Promise.resolve();try{return await globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:a.signal},async c=>{if(c){clearTimeout(l),bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,c.name);try{return await i()}finally{bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,c.name)}}else{if(e===0)throw bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new _y(`Acquiring an exclusive Navigator LockManager lock "${t}" 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 i()}})}catch(c){if(e>0&&clearTimeout(l),c!==null&&typeof c=="object"&&"name"in c&&c.name==="AbortError"&&e>0){if(a.signal.aborted)return bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",t),console.warn(`@
40supabase/gotrue-js: Lock "${t}" was not released within ${e}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(t,{mode:"exclusive",steal:!0},async u=>{if(u){bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",t,u.name);try{return await i()}finally{bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",t,u.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await i()}));throw bn.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",t),new _y(`Lock "${t}" was released because another request stole it`)}throw c}}function cj(){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 qb(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function uj(t){return parseInt(t,16)}function hj(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,a=>a.toString(16).padStart(2,"0")).join("")}function fj(t){var e;const{chainId:i,domain:a,expirationTime:l,issuedAt:c=new Date,nonce:u,notBefore:f,requestId:p,resources:m,scheme:g,uri:v,version:b}=t;{if(!Number.isInteger(i))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${i}`);if(!a)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(!v)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(!((e=t.statement)===null||e===void 0)&&e.includes(` 41`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const _=qb(t.address),S=g?`${g}://${a}`:a,E=t.statement?`${t.statement} 42`:"",T=`${S} wants you to sign in with your Ethereum account: 43${_} 44 45${E}`;let R=`URI: ${v} 46Version: ${b} 47Chain ID: ${i}${u?` 48Nonce: ${u}`:""} 49Issued At: ${c.toISOString()}`;if(l&&(R+=` 50Expiration Time: ${l.toISOString()}`),f&&(R+=` 51Not Before: ${f.toISOString()}`),p&&(R+=` 52Request ID: ${p}`),m){let C=` 53Resources:`;for(const j of m){if(!j||typeof j!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${j}`);C+=` 54- ${j}`}R+=C}return`${T} 55${R}`}class it extends Error{constructor({message:e,code:i,cause:a,name:l}){var c;super(e,{cause:a}),this.__isWebAuthnError=!0,this.name=(c=l??(a instanceof Error?a.name:void 0))!==null&&c!==void 0?c:"Unknown Error",this.code=i}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Ql extends it{constructor(e,i){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:i,message:e}),this.name="WebAuthnUnknownError",this.originalError=i}}function dj({error:t,options:e}){var i,a,l;const{publicKey:c}=e;if(!c)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new it({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((i=c.authenticatorSelection)===null||i===void 0?void 0:i.requireResidentKey)===!0)return new it({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((a=c.authenticatorSelection)===null||a===void 0?void 0:a.userVerification)==="required")return new it({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((l=c.authenticatorSelection)===null||l===void 0?void 0:l.userVerification)==="required")return new it({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new it({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new it({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return c.pubKeyCredParams.filter(f=>f.type==="public-key").length===0?new it({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new it({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const u=window.location.hostname;if(Vb(u)){if(c.rp.id!==u)return new it({message:`The RP ID "${c.rp.id}
55" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new it({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(c.user.id.byteLength<1||c.user.id.byteLength>64)return new it({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new it({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new it({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function pj({error:t,options:e}){const{publicKey:i}=e;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new it({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new it({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const a=window.location.hostname;if(Vb(a)){if(i.rpId!==a)return new it({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new it({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new it({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new it({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class mj{createNewAbortSignal(){if(this.controller){const i=new Error("Cancelling existing WebAuthn API call for new one");i.name="AbortError",this.controller.abort(i)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const Rf=new mj;function wy(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:i,excludeCredentials:a}=t,l=lc(t,["challenge","user","excludeCredentials"]),c=Ta(e).buffer,u=Object.assign(Object.assign({},i),{id:Ta(i.id).buffer}),f=Object.assign(Object.assign({},l),{challenge:c,user:u});if(a&&a.length>0){f.excludeCredentials=new Array(a.length);for(let p=0;p<a.length;p++){const m=a[p];f.excludeCredentials[p]=Object.assign(Object.assign({},m),{id:Ta(m.id).buffer,type:m.type||"public-key",transports:m.transports})}}return f}function Sy(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:i}=t,a=lc(t,["challenge","allowCredentials"]),l=Ta(e).buffer,c=Object.assign(Object.assign({},a),{challenge:l});if(i&&i.length>0){c.allowCredentials=new Array(i.length);for(let u=0;u<i.length;u++){const f=i[u];c.allowCredentials[u]=Object.assign(Object.assign({},f),{id:Ta(f.id).buffer,type:f.type||"public-key",transports:f.transports})}}return c}function Ey(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const i=t;return{id:t.id,rawId:t.id,response:{attestationObject:di(new Uint8Array(t.response.attestationObject)),clientDataJSON:di(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=i.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function ky(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const i=t,a=t.getClientExtensionResults(),l=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:di(new Uint8Array(l.authenticatorData)),clientDataJSON:di(new Uint8Array(l.clientDataJSON)),signature:di(new Uint8Array(l.signature)),userHandle:l.userHandle?di(new Uint8Array(l.userHandle)):void 0},type:"public-key",clientExtensionResults:a,authenticatorAttachment:(e=i.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function Vb(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function Xl(){var t,e;return!!(yt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.get)=="function")}async function Gb(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Ql("Browser returned unexpected credential type",e)}:{data:null,error:new Ql("Empty credential response",e)}}catch(e){return{data:null,error:dj({error:e,options:t})}}}async function Zb(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Ql("Browser returned unexpected credential type",e)}:{data:null,error:new Ql("Empty credential response",e)}}catch(e){return{data:null,error:pj({error:e,options:t})}}}const gj={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},vj={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Wl(...t){const e=l=>l!==null&&typeof l=="object"&&!Array.isArray(l),i=l=>l instanceof ArrayBuffer||ArrayBuffer.isView(l),a={};for(const l of t)if(l)for(const c in l){const u=l[c];if(u!==void 0)if(Array.isArray(u))a[c]=u;else if(i(u))a[c]=u;else if(e(u)){const f=a[c];e(f)?a[c]=Wl(f,u):a[c]=Wl(u)}else a[c]=u}return a}function yj(t,e){return Wl(gj,t,e||{})}function bj(t,e){return Wl(vj,t,e||{})}class _j{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:i,friendlyName:a,signal:l},c){var u;try{const{data:f,error:p}=await this.client.mfa.challenge({factorId:e,webauthn:i});if(!f)return{data:null,error:p};const m=l??Rf.createNewAbortSignal();if(f.webauthn.type==="create"){const{user:g}=f.webauthn.credential_options.publicKey;if(!g.name){const v=a;if(v)g.name=`${g.id}:${v}`;else{const _=(await this.client.getUser()).data.user,S=((u=_?.user_metadata)===null||u===void 0?void 0:u.name)||_?.email||_?.id||"User";g.name=`${g.id}:${S}`}}g.displayName||(g.displayName=g.name)}switch(f.webauthn.type){case"create":{const g=yj(f.webauthn.credential_options.publicKey,c?.create),{data:v,error:b}=await Gb({publicKey:g,signal:m});return v?{data:{factorId:e,challengeId:f.id,webauthn:{type:f.webauthn.type,credential_response:v}},error:null}:{data:null,error:b}}case"request":{const g=bj(f.webauthn.credential_options.publicKey,c?.request),{data:v,error:b}=await Zb(Object.assign(Object.assign({},f.webauthn.credential_options),{publicKey:g,signal:m}));return v?{data:{factorId:e,challengeId:f.id,webauthn:{type:f.webauthn.type,credential_response:v}},error:null}:{data:null,error:b}}}}catch(f){return Q(f)?{data:null,error:f}:{data:null,error:new un("Unexpected error in challenge",f)}}}async _verify({challengeId:e,factorId:i,webauthn:a}){return this.client.mfa.verify({factorId:i,challengeId:e,webauthn:a})}async _authenticate({factorId:e,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:a=typeof window<"u"?[window.location.origin]:void 0,signal:l}={}},c){if(!i)return{data:null,error:new Vs("rpId is required for WebAuthn authentication")};try{if(!Xl())return{data:null,error:new un("Browser does not support WebAuthn",null)};const{data:u,error:f}=await this.challenge({factorId:e,webauthn:{rpId:i,rpOrigins:a},signal:l},{request:c});if(!u)return{data:null,error:f};const{webauthn:p}=u;return this._verify({factorId:e,challengeId:u.challengeId,webauthn:{type:p.type,rpId:i,rpOrigins:a,credential_response:p.credential_response}})}catch(u){return Q(u)?{data:null,error:u}:{data:null,error:new un("Unexpected error in authenticate",u)}}}async _register({friendlyName:e,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:a=typeof window<"u"?[window.location.origin]:void 0,signal:l}={}},c){if(!i)return{data:null,error:new Vs("rpId is required for WebAuthn registration")};try{if(!Xl())return{data:null,error:new un("Browser does not support WebAuthn",null)};const{data:u,error:f}=await this._enroll({friendlyName:e});if(!u)return await this.client.mfa.listFactors().then(g=>{var v;return(v=g.data)===null||v===void 0?void 0:v.all.find(b=>b.factor_type==="webauthn"&&b.friendly_name===e&&b.status!=="unverified")}).then(g=>g?this.client.mfa.unenroll({factorId:g?.id}):void 0),{data:null,error:f};const{data:p,error:m}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:i,rpOrigins:a},signal:l},{create:c});return p?this._verify({factorId:u.id,challengeId:p.challengeId,webauthn:{rpId:i,rpOrigins:a,type:p.webauthn.type,credential_response:p.webauthn.credential_response}}):{data:null,error:m}}catch(u){return Q(u)?{data:null,error:u}:{data:null,error:new un("Unexpected error in register",u)}}}}cj();const wj={url:TO,storageKey:RO,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:AO,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}};async function Ty(t,e,i){return await i()}const fa={};class Gs{get jwks(){var e,i;return(i=(e=fa[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&i!==void 0?i:{keys:[]}}set jwks(e){fa[this.storageKey]=Object.assign(Object.assign({},fa[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,i;return(i=(e=fa[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&i!==void 0?i:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){fa[this.storageKey]=Object.assign(Object.assign({},fa[this.storageKey]),{cachedAt:e})}constructor(e){var i,a,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({},wj),e);if(this.storageKey=u.storageKey,this.instanceID=(i=Gs.nextInstanceID[this.storageKey])!==null&&i!==void 0?i:0,Gs.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!u.debug,typeof u.debug=="function"&&(this.logger=u.debug),this.instanceID>0&&yt()){const f=`${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(f),this.logDebugMessages&&console.trace(f)}if(this.persistSession=u.persistSession,this.autoRefreshToken=u.autoRefreshToken,this.experimental=(a=u.experimental)!==null&&a!==void 0?a:{},this.admin=new oj({url:u.url,headers:u.headers,fetch:u.fetch,experimental:this.experimental}),this.url=u.url,this.headers=u.headers,this.fetch=Ib(u.fetch),this.lock=u.lock||Ty,this.detectSessionInUrl=u.detectSessionInUrl,this.flowType=u.flowType,this.hasCustomAuthorizationHeader=u.hasCu
55stomAuthorizationHeader,this.throwOnError=u.throwOnError,this.lockAcquireTimeout=u.lockAcquireTimeout,u.lock?this.lock=u.lock:this.persistSession&&yt()&&(!((l=globalThis?.navigator)===null||l===void 0)&&l.locks)?this.lock=lj:this.lock=Ty,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 _j(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:Bb()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=by(this.memoryStorage)),u.userStorage&&(this.userStorage=u.userStorage)):(this.memoryStorage={},this.storage=by(this.memoryStorage)),yt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(f){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",f)}(c=this.broadcastChannel)===null||c===void 0||c.addEventListener("message",async f=>{this._debug("received broadcast notification from other tab or client",f);try{await this._notifyAllSubscribers(f.data.event,f.data.session,!1)}catch(p){this._debug("#broadcastChannel","error",p)}})}u.skipAutoInitialize||this.initialize().catch(f=>{this._debug("#initialize()","error",f)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Ub}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{let i={},a="none";if(yt()&&(i=IO(window.location.href),this._isImplicitGrantCallback(i)?a="implicit":await this._isPKCECallback(i)&&(a="pkce")),yt()&&this.detectSessionInUrl&&a!=="none"){const{data:l,error:c}=await this._getSessionFromURL(i,a);if(c){if(this._debug("#_initialize()","error detecting session from URL",c),zO(c)){const p=(e=c.details)===null||e===void 0?void 0:e.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:f}=l;return this._debug("#_initialize()","detected session in URL",u,"redirect type",f),await this._saveSession(u),setTimeout(async()=>{f==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",u):await this._notifyAllSubscribers("SIGNED_IN",u)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(i){return Q(i)?this._returnResult({error:i}):this._returnResult({error:new un("Unexpected error during initialization",i)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var i,a,l;try{const c=await se(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(a=(i=e?.options)===null||i===void 0?void 0:i.data)!==null&&a!==void 0?a:{},gotrue_meta_security:{captcha_token:(l=e?.options)===null||l===void 0?void 0:l.captchaToken}},xform:en}),{data:u,error:f}=c;if(f||!u)return this._returnResult({data:{user:null,session:null},error:f});const p=u.session,m=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",p)),this._returnResult({data:{user:m,session:p},error:null})}catch(c){if(Q(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signUp(e){var i,a,l;try{let c;if("email"in e){const{email:g,password:v,options:b}=e;let _=null,S=null;this.flowType==="pkce"&&([_,S]=await ha(this.storage,this.storageKey)),c=await se(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:b?.emailRedirectTo,body:{email:g,password:v,data:(i=b?.data)!==null&&i!==void 0?i:{},gotrue_meta_security:{captcha_token:b?.captchaToken},code_challenge:_,code_challenge_method:S},xform:en})}else if("phone"in e){const{phone:g,password:v,options:b}=e;c=await se(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:g,password:v,data:(a=b?.data)!==null&&a!==void 0?a:{},channel:(l=b?.channel)!==null&&l!==void 0?l:"sms",gotrue_meta_security:{captcha_token:b?.captchaToken}},xform:en})}else throw new Cl("You must provide either an email or phone number and a password");const{data:u,error:f}=c;if(f||!u)return await vt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:f});const p=u.session,m=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",p)),this._returnResult({data:{user:m,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(e){try{let i;if("email"in e){const{email:c,password:u,options:f}=e;i=await se(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:c,password:u,gotrue_meta_security:{captcha_token:f?.captchaToken}},xform:vy})}else if("phone"in e){const{phone:c,password:u,options:f}=e;i=await se(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:c,password:u,gotrue_meta_security:{captcha_token:f?.captchaToken}},xform:vy})}else throw new Cl("You must provide either an email or phone number and a password");const{data:a,error:l}=i;if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a||!a.session||!a.user){const c=new ua;return this._returnResult({data:{user:null,session:null},error:c})}return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:Object.assign({user:a.user,session:a.session},a.weak_password?{weakPassword:a.weak_password}:null),error:l})}catch(i){if(Q(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithOAuth(e){var i,a,l,c;return await this._handleProviderSignIn(e.provider,{redirectTo:(i=e.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:(c=e.options)===null||c===void 0?void 0:c.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:i}=e;switch(i){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${i}"`)}}async signInWithEthereum(e){var i,a,l,c,u,f,p,m,g,v,b;let _,S;if("message"in e)_=e.message,S=e.signature;else{const{chain:E,wallet:T,statement:R,options:C}=e;let j;if(yt())if(typeof T=="object")j=T;else{const ne=window;if("ethereum"in ne&&typeof ne.ethereum=="object"&&"request"in ne.ethereum&&typeof ne.ethereum.request=="function")j=ne.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 T!="object"||!C?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");j=T}const I=new URL((i=C?.url)!==null&&i!==void 0?i:window.location.href),J=await j.request({method:"eth_requestAccounts"}).then(ne=>ne).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!J||J.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const P=qb(J[0]);let z=(a=C?.signInWithEthereum)===null||a===void 0?void 0:a.chainId;if(!z){const ne=await j.request({method:"eth_chainId"});z=uj(ne)}const K={domain:I.host,address:P,statement:R,uri:I.href,version:"1",chainId:z,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:(f=C?.signInWithEthereum)===null||f===void 0?void 0:f.expirationTime,notBefore:(p=C?.signInWithEthereum)===null||p===void 0?void 0:p.notBefore,requestId:(m=C?.signInWithEthereum)===null||m===void 0?void 0:m.requestId,resources:(g=C?.signInWithEthereum)===null||g===void 0?void 0:g.resources};_=fj(K),S=await j.request({method:"personal_sign",params:[hj(_),P]})}try{const{data:E,error:T}=await se(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:_,signature:S},!((v=e.options)===null||v===void 0)&&v.captchaToken?{gotrue_meta_security:{captcha_token:(b=e.options)===null||b===void 0?void 0:b.captchaToken}}:null),xform:en});if(T)throw T;if(!E||!E.session||!E.user){const R=new ua;return this._returnResult({data:{user:null,session:null},error:R})}return E.session&&(await this._saveSession(E.session),await this._notifyAllSubscribers("SIGNED_IN",E.session)),this._returnResult({data:Object.assign({},E),error:T})}
55catch(E){if(Q(E))return this._returnResult({data:{user:null,session:null},error:E});throw E}}async signInWithSolana(e){var i,a,l,c,u,f,p,m,g,v,b,_;let S,E;if("message"in e)S=e.message,E=e.signature;else{const{chain:T,wallet:R,statement:C,options:j}=e;let I;if(yt())if(typeof R=="object")I=R;else{const P=window;if("solana"in P&&typeof P.solana=="object"&&("signIn"in P.solana&&typeof P.solana.signIn=="function"||"signMessage"in P.solana&&typeof P.solana.signMessage=="function"))I=P.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 R!="object"||!j?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");I=R}const J=new URL((i=j?.url)!==null&&i!==void 0?i:window.location.href);if("signIn"in I&&I.signIn){const P=await I.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},j?.signInWithSolana),{version:"1",domain:J.host,uri:J.href}),C?{statement:C}:null));let z;if(Array.isArray(P)&&P[0]&&typeof P[0]=="object")z=P[0];else if(P&&typeof P=="object"&&"signedMessage"in P&&"signature"in P)z=P;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in z&&"signature"in z&&(typeof z.signedMessage=="string"||z.signedMessage instanceof Uint8Array)&&z.signature instanceof Uint8Array)S=typeof z.signedMessage=="string"?z.signedMessage:new TextDecoder().decode(z.signedMessage),E=z.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in I)||typeof I.signMessage!="function"||!("publicKey"in I)||typeof I!="object"||!I.publicKey||!("toBase58"in I.publicKey)||typeof I.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");S=[`${J.host} wants you to sign in with your Solana account:`,I.publicKey.toBase58(),...C?["",C,""]:[""],"Version: 1",`URI: ${J.href}`,`Issued At: ${(l=(a=j?.signInWithSolana)===null||a===void 0?void 0:a.issuedAt)!==null&&l!==void 0?l:new Date().toISOString()}`,...!((c=j?.signInWithSolana)===null||c===void 0)&&c.notBefore?[`Not Before: ${j.signInWithSolana.notBefore}`]:[],...!((u=j?.signInWithSolana)===null||u===void 0)&&u.expirationTime?[`Expiration Time: ${j.signInWithSolana.expirationTime}`]:[],...!((f=j?.signInWithSolana)===null||f===void 0)&&f.chainId?[`Chain ID: ${j.signInWithSolana.chainId}`]:[],...!((p=j?.signInWithSolana)===null||p===void 0)&&p.nonce?[`Nonce: ${j.signInWithSolana.nonce}`]:[],...!((m=j?.signInWithSolana)===null||m===void 0)&&m.requestId?[`Request ID: ${j.signInWithSolana.requestId}`]:[],...!((v=(g=j?.signInWithSolana)===null||g===void 0?void 0:g.resources)===null||v===void 0)&&v.length?["Resources",...j.signInWithSolana.resources.map(z=>`- ${z}`)]:[]].join(` 56`);const P=await I.signMessage(new TextEncoder().encode(S),"utf8");if(!P||!(P instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");E=P}}try{const{data:T,error:R}=await se(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:S,signature:di(E)},!((b=e.options)===null||b===void 0)&&b.captchaToken?{gotrue_meta_security:{captcha_token:(_=e.options)===null||_===void 0?void 0:_.captchaToken}}:null),xform:en});if(R)throw R;if(!T||!T.session||!T.user){const C=new ua;return this._returnResult({data:{user:null,session:null},error:C})}
56return T.session&&(await this._saveSession(T.session),await this._notifyAllSubscribers("SIGNED_IN",T.session)),this._returnResult({data:Object.assign({},T),error:R})}catch(T){if(Q(T))return this._returnResult({data:{user:null,session:null},error:T});throw T}}async _exchangeCodeForSession(e){const i=await li(this.storage,`${this.storageKey}-code-verifier`),[a,l]=(i??"").split("/");try{if(!a&&this.flowType==="pkce")throw new DO;const{data:c,error:u}=await se(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:a},xform:en});if(await vt(this.storage,`${this.storageKey}-code-verifier`),u)throw u;if(!c||!c.session||!c.user){const f=new ua;return this._returnResult({data:{user:null,session:null,redirectType:null},error:f})}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(e){try{const{options:i,provider:a,token:l,access_token:c,nonce:u}=e,f=await se(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:a,id_token:l,access_token:c,nonce:u,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:en}),{data:p,error:m}=f;if(m)return this._returnResult({data:{user:null,session:null},error:m});if(!p||!p.session||!p.user){const g=new ua;return this._returnResult({data:{user:null,session:null},error:g})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:p,error:m})}catch(i){if(Q(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithOtp(e){var i,a,l,c,u;try{if("email"in e){const{email:f,options:p}=e;let m=null,g=null;this.flowType==="pkce"&&([m,g]=await ha(this.storage,this.storageKey));const{error:v}=await se(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:f,data:(i=p?.data)!==null&&i!==void 0?i:{},create_user:(a=p?.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},code_challenge:m,code_challenge_method:g},redirectTo:p?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:v})}if("phone"in e){const{phone:f,options:p}=e,{data:m,error:g}=await se(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:f,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:m?.message_id},error:g})}throw new Cl("You must provide either an email or phone number.")}catch(f){if(await vt(this.storage,`${this.storageKey}-code-verifier`),Q(f))return this._returnResult({data:{user:null,session:null},error:f});throw f}}async verifyOtp(e){var i,a;try{let l,c;"options"in e&&(l=(i=e.options)===null||i===void 0?void 0:i.redirectTo,c=(a=e.options)===null||a===void 0?void 0:a.captchaToken);const{data:u,error:f}=await se(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:c}}),redirectTo:l,xform:en});if(f)throw f;if(!u)throw new Error("An error occurred on token verification.");const p=u.session,m=u.user;return p?.access_token&&(await this._saveSession(p),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",p)),this._returnResult({data:{user:m,session:p},error:null})}catch(l){if(Q(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async signInWithSSO(e){var i,a,l,c,u;try{let f=null,p=null;this.flowType==="pkce"&&([f,p]=await ha(this.storage,this.storageKey));const m=await se(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(a=(i=e.options)===null||i===void 0?void 0:i.redirectTo)!==null&&a!==void 0?a:void 0}),!((l=e?.options)===null||l===void 0)&&l.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:f,code_challenge_method:p}),headers:this.headers,xform:ij});return!((c=m.data)===null||c===void 0)&&c.url&&yt()&&!(!((u=e.options)===null||u===void 0)&&u.skipBrowserRedirect)&&window.location.assign(m.data.url),this._returnResult(m)}catch(f){if(await vt(this.storage,`${this.storageKey}-code-verifier`),Q(f))return this._returnResult({data:null,error:f});throw f}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:i},error:a}=e;if(a)throw a;if(!i)throw new ut;const{error:l}=await se(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:i.access_token});return this._returnResult({data:{user:null,session:null},error:l})})}catch(e){if(Q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const i=`${this.url}/resend`;if("email"in e){const{email:a,type:l,options:c}=e,{error:u}=await se(this.fetch,"POST",i,{headers:this.headers,body:{email:a,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 e){const{phone:a,type:l,options:c}=e,{data:u,error:f}=await se(this.fetch,"POST",i,{headers:this.headers,body:{phone:a,type:l,gotrue_meta_security:{captcha_token:c?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:u?.message_id},error:f})}throw new Cl("You must provide either an email or phone number and a type")}catch(i){if(Q(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async i=>i))}async _acquireLock(e,i){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const a=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),l=(async()=>(await a,await i()))();return this.pendingInLock.push((async()=>{try{await l}catch{}})()),l}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const a=i();for(this.pendingInLock.push((async()=>{try{await a}catch{}})()),await a;this.pendingInLock.length;){const l=[...this.pendingInLock];await Promise.all(l),this.pendingInLock.splice(0,l.length)}return await a}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const i=await this.__loadSession();return await e(i)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const i=await li(this.storage,this.storageKey);
56if(this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?e=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};const a=e.expires_at?e.expires_at*1e3-Date.now()<Yh:!1;if(this._debug("#__loadSession()",`session has${a?"":" not"} expired`,"expires_at",e.expires_at),!a){if(this.userStorage){const u=await li(this.userStorage,this.storageKey+"-user");u?.user?e.user=u.user:e.user=Qh()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const u={value:this.suppressGetSessionWarning};e.user=ej(e.user,u),u.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:l,error:c}=await this._callRefreshToken(e.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(e){if(e)return await this._getUser(e);await this.initializePromise;const i=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return i.data.user&&(this.suppressGetSessionWarning=!0),i}async _getUser(e){try{return e?await se(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:zr}):await this._useSession(async i=>{var a,l,c;const{data:u,error:f}=i;if(f)throw f;return!(!((a=u.session)===null||a===void 0)&&a.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ut}:await se(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:zr})})}catch(i){if(Q(i))return jl(i)&&(await this._removeSession(),await vt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:i});throw i}}async updateUser(e,i={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,i))}async _updateUser(e,i={}){try{return await this._useSession(async a=>{const{data:l,error:c}=a;if(c)throw c;if(!l.session)throw new ut;const u=l.session;let f=null,p=null;this.flowType==="pkce"&&e.email!=null&&([f,p]=await ha(this.storage,this.storageKey));const{data:m,error:g}=await se(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:i?.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:f,code_challenge_method:p}),jwt:u.access_token,xform:zr});if(g)throw g;return u.user=m.user,await this._saveSession(u),await this._notifyAllSubscribers("USER_UPDATED",u),this._returnResult({data:{user:u.user},error:null})})}catch(a){if(await vt(this.storage,`${this.storageKey}-code-verifier`),Q(a))return this._returnResult({data:{user:null},error:a});throw a}}async setSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new ut;const i=Date.now()/1e3;let a=i,l=!0,c=null;const{payload:u}=zl(e.access_token);if(u.exp&&(a=u.exp,l=a<=i),l){const{data:f,error:p}=await this._callRefreshToken(e.refresh_token);if(p)return this._returnResult({data:{user:null,session:null},error:p});if(!f)return{data:{user:null,session:null},error:null};c=f}else{const{data:f,error:p}=await this._getUser(e.access_token);if(p)return this._returnResult({data:{user:null,session:null},error:p});c={access_token:e.access_token,refresh_token:e.refresh_token,user:f.user,token_type:"bearer",expires_in:a-i,expires_at:a},await this._saveSession(c),await this._notifyAllSubscribers("SIGNED_IN",c)}return this._returnResult({data:{user:c.user,session:c},error:null})}catch(i){if(Q(i))return this._returnResult({data:{session:null,user:null},error:i});throw i}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async i=>{var a;if(!e){const{data:u,error:f}=i;if(f)throw f;e=(a=u.session)!==null&&a!==void 0?a:void 0}if(!e?.refresh_token)throw new ut;const{data:l,error:c}=await this._callRefreshToken(e.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(i){if(Q(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async _getSessionFromURL(e,i){var a;try{if(!yt())throw new xl("No browser detected.");
56if(e.error||e.error_description||e.error_code)throw new xl(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(i){case"implicit":if(this.flowType==="pkce")throw new uy("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(i==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new uy("No code detected.");const{data:j,error:I}=await this._exchangeCodeForSession(e.code);if(I)throw I;const J=new URL(window.location.href);return J.searchParams.delete("code"),window.history.replaceState(window.history.state,"",J.toString()),{data:{session:j.session,redirectType:(a=j.redirectType)!==null&&a!==void 0?a:null},error:null}}const{provider_token:l,provider_refresh_token:c,access_token:u,refresh_token:f,expires_in:p,expires_at:m,token_type:g}=e;if(!u||!p||!f||!g)throw new xl("No session defined in URL");const v=Math.round(Date.now()/1e3),b=parseInt(p);let _=v+b;m&&(_=parseInt(m));const S=_-v;S*1e3<=ma&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${S}s, should have been closer to ${b}s`);const E=_-b;v-E>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",E,_,v):v-E<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",E,_,v);const{data:T,error:R}=await this._getUser(u);if(R)throw R;const C={provider_token:l,provider_refresh_token:c,access_token:u,expires_in:b,expires_at:_,refresh_token:f,token_type:g,user:T.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:C,redirectType:e.type},error:null})}catch(l){if(Q(l))return this._returnResult({data:{session:null,redirectType:null},error:l});throw l}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error_description)}async _isPKCECallback(e){const i=await li(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&i)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async i=>{var a;const{data:l,error:c}=i;if(c&&!jl(c))return this._returnResult({error:c});const u=(a=l.session)===null||a===void 0?void 0:a.access_token;if(u){const{error:f}=await this.admin.signOut(u,e);if(f&&!(xO(f)&&(f.status===404||f.status===401||f.status===403)||jl(f)))return this._returnResult({error:f})}return e!=="others"&&(await this._removeSession(),await vt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const i=BO(),a={id:i,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",i),this.stateChangeEmitters.delete(i)}};return this._debug("#onAuthStateChange()","registered callback with id",i),this.stateChangeEmitters.set(i,a),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(i)})))(),{data:{subscription:a}}}async _emitInitialSession(e){return await this._useSession(async i=>{var a,l;try{const{data:{session:c},error:u}=i;if(u)throw u;await((a=this.stateChangeEmitters.get(e))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",c)),this._debug("INITIAL_SESSION","callback id",e,"session",c)}catch(c){await((l=this.stateChangeEmitters.get(e))===null||l===void 0?void 0:l.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",c),jl(c)?console.warn(c):console.error(c)}})}async resetPasswordForEmail(e,i={}){let a=null,l=null;this.flowType==="pkce"&&([a,l]=await ha(this.storage,this.storageKey,!0));try{return await se(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:a,code_challenge_method:l,gotrue_meta_security:{captcha_token:i.captchaToken}},headers:this.headers,redirectTo:i.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 e;try{const{data:i,error:a}=await this.getUser();if(a)throw a;return this._returnResult({data:{identities:(e=i.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(i){if(Q(i))return this._returnResult({data:null,error:i});throw i}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var i;try{const{data:a,error:l}=await this._useSession(async c=>{var u,f,p,m,g;const{data:v,error:b}=c;if(b)throw b;const _=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(u=e.options)===null||u===void 0?void 0:u.redirectTo,scopes:(f=e.options)===null||f===void 0?void 0:f.scopes,queryParams:(p=e.options)===null||p===void 0?void 0:p.queryParams,skipBrowserRedirect:!0});return await se(this.fetch,"GET",_,{headers:this.headers,jwt:(g=(m=v.session)===null||m===void 0?void 0:m.access_token)!==null&&g!==void 0?g:void 0})});if(l)throw l;return yt()&&!(!((i=e.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(a?.url),this._returnResult({data:{provider:e.provider,url:a?.url},error:null})}catch(a){if(Q(a))return this._returnResult({data:{provider:e.provider,url:null},error:a});throw a}}async linkIdentityIdToken(e){return await this._useSession(async i=>{var a;try{const{error:l,data:{session:c}}=i;if(l)throw l;const{options:u,provider:f,token:p,access_token:m,nonce:g}=e,v=await se(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(a=c?.access_token)!==null&&a!==void 0?a:void 0,body:{provider:f,id_token:p,access_token:m,nonce:g,link_identity:!0,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:en}),{data:b,error:_}=v;return _?this._returnResult({data:{user:null,session:null},error:_}
56):!b||!b.session||!b.user?this._returnResult({data:{user:null,session:null},error:new ua}):(b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("USER_UPDATED",b.session)),this._returnResult({data:b,error:_}))}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(e){try{return await this._useSession(async i=>{var a,l;const{data:c,error:u}=i;if(u)throw u;return await se(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(l=(a=c.session)===null||a===void 0?void 0:a.access_token)!==null&&l!==void 0?l:void 0})})}catch(i){if(Q(i))return this._returnResult({data:null,error:i});throw i}}async _refreshAccessToken(e){const i=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(i,"begin");try{const a=Date.now();return await VO(async l=>(l>0&&await qO(200*Math.pow(2,l-1)),this._debug(i,"refreshing attempt",l),await se(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:en})),(l,c)=>{const u=200*Math.pow(2,l);return c&&Jh(c)&&Date.now()+u-a<ma})}catch(a){if(this._debug(i,"error",a),Q(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}finally{this._debug(i,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,i){const a=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:i.redirectTo,scopes:i.scopes,queryParams:i.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",i,"url",a),yt()&&!i.skipBrowserRedirect&&window.location.assign(a),{data:{provider:e,url:a},error:null}}async _recoverAndRefresh(){var e,i;const a="#_recoverAndRefresh()";this._debug(a,"begin");try{const l=await li(this.storage,this.storageKey);if(l&&this.userStorage){let u=await li(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!u&&(u={user:l.user},await ga(this.userStorage,this.storageKey+"-user",u)),l.user=(e=u?.user)!==null&&e!==void 0?e:Qh()}else if(l&&!l.user&&!l.user){const u=await li(this.storage,this.storageKey+"-user");u&&u?.user?(l.user=u.user,await vt(this.storage,this.storageKey+"-user"),await ga(this.storage,this.storageKey,l)):l.user=Qh()}if(this._debug(a,"session from storage",l),!this._isValidSession(l)){this._debug(a,"session is not valid"),l!==null&&await this._removeSession();return}const c=((i=l.expires_at)!==null&&i!==void 0?i:1/0)*1e3-Date.now()<Yh;if(this._debug(a,`session has${c?"":" not"} expired with margin of ${Yh}s`),c){if(this.autoRefreshToken&&l.refresh_token){const{error:u}=await this._callRefreshToken(l.refresh_token);u&&(console.error(u),Jh(u)||(this._debug(a,"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:f}=await this._getUser(l.access_token);!f&&u?.user?(l.user=u.user,await this._saveSession(l),await this._notifyAllSubscribers("SIGNED_IN",l)):this._debug(a,"could not get user data, skipping SIGNED_IN notification")}catch(u){console.error("Error getting user data:",u),this._debug(a,"error getting user data, skipping SIGNED_IN notification",u)}else await this._notifyAllSubscribers("SIGNED_IN",l)}catch(l){this._debug(a,"error",l),console.error(l);return}finally{this._debug(a,"end")}}async _callRefreshToken(e){var i,a;if(!e)throw new ut;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const l=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(l,"begin");try{this.refreshingDeferred=new hc;const{data:c,error:u}=await this._refreshAccessToken(e);if(u)throw u;if(!c.session)throw new ut;await this._saveSession(c.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",c.session);const f={data:c.session,error:null};return this.refreshingDeferred.resolve(f),f}catch(c){if(this._debug(l,"error",c),Q(c)){const u={data:null,error:c};return Jh(c)||await this._removeSession(),(i=this.refreshingDeferred)===null||i===void 0||i.resolve(u),u}throw(a=this.refreshingDeferred)===null||a===void 0||a.reject(c),c}finally{this.refreshingDeferred=null,this._debug(l,"end")}}async _notifyAllSubscribers(e,i,a=!0){const l=`#_notifyAllSubscribers(${e})`;this._debug(l,"begin",i,`broadcast = ${a}`);try{this.broadcastChannel&&a&&this.broadcastChannel.postMessage({event:e,session:i});const c=[],u=Array.from(this.stateChangeEmitters.values()).map(async f=>{try{await f.callback(e,i)}catch(p){c.push(p)}});if(await Promise.all(u),c.length>0){for(let f=0;f<c.length;f+=1)console.error(c[f]);throw c[0]}}finally{this._debug(l,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await vt(this.storage,`${this.storageKey}-code-verifier`);const i=Object.assign({},e),a=i.user&&i.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!a&&i.user&&await ga(this.userStorage,this.storageKey+"-user",{user:i.user});const l=Object.assign({},i);delete l.user;const c=my(l);await ga(this.storage,this.storageKey,c)}else{const l=my(i);await ga(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 e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&yt()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",e)}
56catch(i){console.error("removing visibilitychange callback failed",i)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),ma);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);const i=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=i,i&&typeof i=="object"&&typeof i.unref=="function"?i.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(i)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const i=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,i&&clearTimeout(i)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async i=>{const{data:{session:a}}=i;if(!a||!a.refresh_token||!a.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const l=Math.floor((a.expires_at*1e3-e)/ma);this._debug("#_autoRefreshTokenTick()",`access token expires in ${l} ticks, a tick lasts ${ma}ms, refresh threshold is ${Sf} ticks`),l<=Sf&&await this._callRefreshToken(a.refresh_token)})}catch(i){console.error("Auto refresh tick failed with error. This is likely a transient error.",i)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e instanceof $b)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!yt()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const i=`#_onVisibilityChanged(${e})`;this._debug(i,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(i,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,i,a){const l=[`provider=${encodeURIComponent(i)}`];if(a?.redirectTo&&l.push(`redirect_to=${encodeURIComponent(a.redirectTo)}`),a?.scopes&&l.push(`scopes=${encodeURIComponent(a.scopes)}`),this.flowType==="pkce"){const[c,u]=await ha(this.storage,this.storageKey),f=new URLSearchParams({code_challenge:`${encodeURIComponent(c)}`,code_challenge_method:`${encodeURIComponent(u)}`});l.push(f.toString())}if(a?.queryParams){const c=new URLSearchParams(a.queryParams);l.push(c.toString())}return a?.skipBrowserRedirect&&l.push(`skip_http_redirect=${a.skipBrowserRedirect}`),`${e}?${l.join("&")}`}async _unenroll(e){try{return await this._useSession(async i=>{var a;const{data:l,error:c}=i;return c?this._returnResult({data:null,error:c}):await se(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(a=l?.session)===null||a===void 0?void 0:a.access_token})})}catch(i){if(Q(i))return this._returnResult({data:null,error:i});throw i}}async _enroll(e){try{return await this._useSession(async i=>{var a,l;const{data:c,error:u}=i;if(u)return this._returnResult({data:null,error:u});const f=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:p,error:m}=await se(this.fetch,"POST",`${this.url}/factors`,{body:f,headers:this.headers,jwt:(a=c?.session)===null||a===void 0?void 0:a.access_token});return m?this._returnResult({data:null,error:m}):(e.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(i){if(Q(i))return this._returnResult({data:null,error:i});throw i}}async _verify(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async i=>{var a;const{data:l,error:c}=i;
56if(c)return this._returnResult({data:null,error:c});const u=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?Ey(e.webauthn.credential_response):ky(e.webauthn.credential_response)})}:{code:e.code}),{data:f,error:p}=await se(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:u,headers:this.headers,jwt:(a=l?.session)===null||a===void 0?void 0:a.access_token});return p?this._returnResult({data:null,error:p}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+f.expires_in},f)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",f),this._returnResult({data:f,error:p}))})}catch(i){if(Q(i))return this._returnResult({data:null,error:i});throw i}})}async _challenge(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async i=>{var a;const{data:l,error:c}=i;if(c)return this._returnResult({data:null,error:c});const u=await se(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(a=l?.session)===null||a===void 0?void 0:a.access_token});if(u.error)return u;const{data:f}=u;if(f.type!=="webauthn")return{data:f,error:null};switch(f.webauthn.type){case"create":return{data:Object.assign(Object.assign({},f),{webauthn:Object.assign(Object.assign({},f.webauthn),{credential_options:Object.assign(Object.assign({},f.webauthn.credential_options),{publicKey:wy(f.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},f),{webauthn:Object.assign(Object.assign({},f.webauthn),{credential_options:Object.assign(Object.assign({},f.webauthn.credential_options),{publicKey:Sy(f.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(i){if(Q(i))return this._returnResult({data:null,error:i});throw i}})}async _challengeAndVerify(e){const{data:i,error:a}=await this._challenge({factorId:e.factorId});return a?this._returnResult({data:null,error:a}):await this._verify({factorId:e.factorId,challengeId:i.id,code:e.code})}async _listFactors(){var e;const{data:{user:i},error:a}=await this.getUser();if(a)return{data:null,error:a};const l={all:[],phone:[],totp:[],webauthn:[]};for(const c of(e=i?.factors)!==null&&e!==void 0?e:[])l.all.push(c),c.status==="verified"&&l[c.factor_type].push(c);return{data:l,error:null}}async _getAuthenticatorAssuranceLevel(e){var i,a,l,c;if(e)try{const{payload:_}=zl(e);let S=null;_.aal&&(S=_.aal);let E=S;const{data:{user:T},error:R}=await this.getUser(e);if(R)return this._returnResult({data:null,error:R});((a=(i=T?.factors)===null||i===void 0?void 0:i.filter(I=>I.status==="verified"))!==null&&a!==void 0?a:[]).length>0&&(E="aal2");const j=_.amr||[];return{data:{currentLevel:S,nextLevel:E,currentAuthenticationMethods:j},error:null}}catch(_){if(Q(_))return this._returnResult({data:null,error:_});throw _}const{data:{session:u},error:f}
56=await this.getSession();if(f)return this._returnResult({data:null,error:f});if(!u)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:p}=zl(u.access_token);let m=null;p.aal&&(m=p.aal);let g=m;((c=(l=u.user.factors)===null||l===void 0?void 0:l.filter(_=>_.status==="verified"))!==null&&c!==void 0?c:[]).length>0&&(g="aal2");const b=p.amr||[];return{data:{currentLevel:m,nextLevel:g,currentAuthenticationMethods:b},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async i=>{const{data:{session:a},error:l}=i;return l?this._returnResult({data:null,error:l}):a?await se(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:a.access_token,xform:c=>({data:c,error:null})}):this._returnResult({data:null,error:new ut})})}catch(i){if(Q(i))return this._returnResult({data:null,error:i});throw i}}async _approveAuthorization(e,i){try{return await this._useSession(async a=>{const{data:{session:l},error:c}=a;if(c)return this._returnResult({data:null,error:c});if(!l)return this._returnResult({data:null,error:new ut});const u=await se(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:l.access_token,body:{action:"approve"},xform:f=>({data:f,error:null})});return u.data&&u.data.redirect_url&&yt()&&!i?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async _denyAuthorization(e,i){try{return await this._useSession(async a=>{const{data:{session:l},error:c}=a;if(c)return this._returnResult({data:null,error:c});if(!l)return this._returnResult({data:null,error:new ut});const u=await se(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:l.access_token,body:{action:"deny"},xform:f=>({data:f,error:null})});return u.data&&u.data.redirect_url&&yt()&&!i?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:i},error:a}=e;return a?this._returnResult({data:null,error:a}):i?await se(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:i.access_token,xform:l=>({data:l,error:null})}):this._returnResult({data:null,error:new ut})})}catch(e){if(Q(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async i=>{const{data:{session:a},error:l}=i;return l?this._returnResult({data:null,error:l}):a?(await se(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:a.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new ut})})}catch(i){if(Q(i))return this._returnResult({data:null,error:i});throw i}}async fetchJwk(e,i={keys:[]}){let a=i.keys.find(f=>f.kid===e);if(a)return a;const l=Date.now();if(a=this.jwks.keys.find(f=>f.kid===e),a&&this.jwks_cached_at+jO>l)return a;const{data:c,error:u}=await se(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,a=c.keys.find(f=>f.kid===e),!a)?null:a}async getClaims(e,i={}){try{let a=e;if(!a){const{data:_,error:S}
56=await this.getSession();if(S||!_.session)return this._returnResult({data:null,error:S});a=_.session.access_token}const{header:l,payload:c,signature:u,raw:{header:f,payload:p}}=zl(a);i?.allowExpired||QO(c.exp);const m=!l.alg||l.alg.startsWith("HS")||!l.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(l.kid,i?.keys?{keys:i.keys}:i?.jwks);if(!m){const{error:_}=await this.getUser(a);if(_)throw _;return{data:{claims:c,header:l,signature:u},error:null}}const g=XO(l.alg),v=await crypto.subtle.importKey("jwk",m,g,!0,["verify"]);if(!await crypto.subtle.verify(g,v,u,HO(`${f}.${p}`)))throw new Tf("Invalid JWT signature");return{data:{claims:c,header:l,signature:u},error:null}}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async signInWithPasskey(e){var i,a,l;sn(this.experimental);try{if(!Xl())return this._returnResult({data:null,error:new un("Browser does not support WebAuthn",null)});const{data:c,error:u}=await this._startPasskeyAuthentication({options:{captchaToken:(i=e?.options)===null||i===void 0?void 0:i.captchaToken}});if(u||!c)return this._returnResult({data:null,error:u});const f=Sy(c.options),p=(l=(a=e?.options)===null||a===void 0?void 0:a.signal)!==null&&l!==void 0?l:Rf.createNewAbortSignal(),{data:m,error:g}=await Zb({publicKey:f,signal:p});if(g||!m)return this._returnResult({data:null,error:g??new un("WebAuthn ceremony failed",null)});const v=ky(m);return this._verifyPasskeyAuthentication({challengeId:c.challenge_id,credential:v})}catch(c){if(Q(c))return this._returnResult({data:null,error:c});throw c}}async registerPasskey(e){var i,a;sn(this.experimental);try{if(!Xl())return this._returnResult({data:null,error:new un("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=wy(l.options),f=(a=(i=e?.options)===null||i===void 0?void 0:i.signal)!==null&&a!==void 0?a:Rf.createNewAbortSignal(),{data:p,error:m}=await Gb({publicKey:u,signal:f});if(m||!p)return this._returnResult({data:null,error:m??new un("WebAuthn ceremony failed",null)});const g=Ey(p);return this._verifyPasskeyRegistration({challengeId:l.challenge_id,credential:g})}catch(l){if(Q(l))return this._returnResult({data:null,error:l});throw l}}async _startPasskeyRegistration(){sn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:i},error:a}=e;if(a)return this._returnResult({data:null,error:a});if(!i)return this._returnResult({data:null,error:new ut});const{data:l,error:c}=await se(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:i.access_token,body:{}});return c?this._returnResult({data:null,error:c}):this._returnResult({data:l,error:null})})}catch(e){if(Q(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyRegistration(e){sn(this.experimental);try{return await this._useSession(async i=>{const{data:{session:a},error:l}=i;if(l)return this._returnResult({data:null,error:l});if(!a)return this._returnResult({data:null,error:new ut});const{data:c,error:u}=await se(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:a.access_token,body:{challenge_id:e.challengeId,credential:e.credential}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(i){if(Q(i))return this._returnResult({data:null,error:i});throw i}}async _startPasskeyAuthentication(e){var i;sn(this.experimental);try{const{data:a,error:l}=await se(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(i=e?.options)===null||i===void 0?void 0:i.captchaToken}}});return l?this._returnResult({data:null,error:l}):this._returnResult({data:a,error:null})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async _verifyPasskeyAuthentication(e){sn(this.experimental);try{const{data:i,error:a}=await se(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:e.challengeId,credential:e.credential},xform:en});return a?this._returnResult({data:null,error:a}):(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:i,error:null}))}catch(i){if(Q(i))return this._returnResult({data:null,error:i});throw i}}async _listPasskeys(){sn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:i},error:a}=e;if(a)return this._returnResult({data:null,error:a});if(!i)return this._returnResult({data:null,error:new ut});const{data:l,error:c}=await se(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:i.access_token,xform:u=>({data:u,error:null})});return c?this._returnResult({data:null,error:c}):this._returnResult({data:l,error:null})})}catch(e){if(Q(e))return this._returnResult({data:null,error:e});throw e}}async _updatePasskey(e){sn(this.experimental);try{return await this._useSession(async i=>{const{data:{session:a},error:l}=i;if(l)return this._returnResult({data:null,error:l});if(!a)return this._returnResult({data:null,error:new ut});const{data:c,error:u}=await se(this.fetch,"PATCH",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:a.access_token,body:{friendly_name:e.friendlyName}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(i){if(Q(i))return this._returnResult({data:null,error:i});throw i}}async _deletePasskey(e){sn(this.experimental);try{return await this._useSession(async i=>{const{data:{session:a},error:l}=i;if(l)return this._returnResult({data:null,error:l});if(!a)return this._returnResult({data:null,error:new ut});const{error:c}
56=await se(this.fetch,"DELETE",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:a.access_token,noResolveJson:!0});return c?this._returnResult({data:null,error:c}):this._returnResult({data:null,error:null})})}catch(i){if(Q(i))return this._returnResult({data:null,error:i});throw i}}}Gs.nextInstanceID={};const Sj=Gs,Ej="2.105.4";let As="";typeof Deno<"u"?As="deno":typeof document<"u"?As="web":typeof navigator<"u"&&navigator.product==="ReactNative"?As="react-native":As="node";const kj={"X-Client-Info":`supabase-js-${As}/${Ej}`},Tj={headers:kj},Rj={schema:"public"},Aj={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Oj={};function Zs(t){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zs(t)}function jj(t,e){if(Zs(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,e);if(Zs(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Cj(t){var e=jj(t,"string");return Zs(e)=="symbol"?e:e+""}function xj(t,e,i){return(e=Cj(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ry(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),i.push.apply(i,a)}return i}function Qe(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?Ry(Object(i),!0).forEach(function(a){xj(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ry(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}const zj=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),Dj=()=>Headers,Lj=(t,e,i)=>{const a=zj(i),l=Dj();return async(c,u)=>{var f;const p=(f=await e())!==null&&f!==void 0?f:t;let m=new l(u?.headers);return m.has("apikey")||m.set("apikey",t),m.has("Authorization")||m.set("Authorization",`Bearer ${p}`),a(c,Qe(Qe({},u),{},{headers:m}))}};function Nj(t){return t.endsWith("/")?t:t+"/"}function Mj(t,e){var i,a;const{db:l,auth:c,realtime:u,global:f}=t,{db:p,auth:m,realtime:g,global:v}=e,b={db:Qe(Qe({},p),l),auth:Qe(Qe({},m),c),realtime:Qe(Qe({},g),u),storage:{},global:Qe(Qe(Qe({},v),f),{},{headers:Qe(Qe({},(i=v?.headers)!==null&&i!==void 0?i:{}),(a=f?.headers)!==null&&a!==void 0?a:{})}),accessToken:async()=>""};return t.accessToken?b.accessToken=t.accessToken:delete b.accessToken,b}function Uj(t){const e=t?.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(Nj(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var Hj=class extends Sj{constructor(t){super(t)}},Pj=class{constructor(t,e,i){var a,l;this.supabaseUrl=t,this.supabaseKey=e;const c=Uj(t);if(!e)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`,f={db:Rj,realtime:Oj,auth:Qe(Qe({},Aj),{},{storageKey:u}),global:Tj},p=Mj(i??{},f);if(this.storageKey=(a=p.auth.storageKey)!==null&&a!==void 0?a:"",this.headers=(l=p.global.headers)!==null&&l!==void 0?l:{},p.accessToken)this.accessToken=p.accessToken,this.auth=new Proxy({},{get:(g,v)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(v)} is not possible`)}});else{var m;this.auth=this._initSupabaseAuthClient((m=p.auth)!==null&&m!==void 0?m:{},this.headers,p.global.fetch)}this.fetch=Lj(e,this._getAccessToken.bind(this),p.global.fetch),this.realtime=this._initRealtimeClient(Qe({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},p.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(g=>this.realtime.setAuth(g)).catch(g=>console.warn("Failed to set initial Realtime auth token:",g)),this.rest=new h1(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 kO(this.storageUrl.href,this.headers,this.fetch,i?.storage),p.accessToken||this._listenForAuthEvents()}get functions(){return new t1(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},i={head:!1,get:!1,count:void 0}
56){return this.rest.rpc(t,e,i)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,i;if(t.accessToken)return await t.accessToken();const{data:a}=await t.auth.getSession();return(e=(i=a.session)===null||i===void 0?void 0:i.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:i,storage:a,userStorage:l,storageKey:c,flowType:u,lock:f,debug:p,throwOnError:m,experimental:g,lockAcquireTimeout:v,skipAutoInitialize:b},_,S){const E={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Hj({url:this.authUrl.href,headers:Qe(Qe({},E),_),storageKey:c,autoRefreshToken:t,persistSession:e,detectSessionInUrl:i,storage:a,userStorage:l,flowType:u,lock:f,debug:p,throwOnError:m,experimental:g,fetch:S,lockAcquireTimeout:v,skipAutoInitialize:b,hasCustomAuthorizationHeader:Object.keys(this.headers).some(T=>T.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new K1(this.realtimeUrl.href,Qe(Qe({},t),{},{params:Qe(Qe({},{apikey:this.supabaseKey}),t?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e?.access_token)})}_handleTokenChanged(t,e,i){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==i?(this.changedAccessToken=i,this.realtime.setAuth(i)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const Bj=(t,e,i)=>new Pj(t,e,i);function Ij(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const i=e.match(/^v(\d+)\./);return i?parseInt(i[1],10)<=18:!1}Ij()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function $j(){if(typeof window>"u")return;const t=location.hostname,i=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(T=>t===T||t.endsWith("."+T)),a="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",l=i?t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+a+")(?:-dev)?(?=\\.|$)","i"))?.[1]??t.match(new RegExp("^("+a+")(?=[.-])","i"))?.[1]:void 0,c=window.parent&&window.parent!==window;if(!l||!c)return localStorage;const u=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),f=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:""),m=p&&f.test(p)?[p]:u?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],g="lovable-preview-auth:result",v=2e3,b=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),_=(T,R,C)=>new Promise(j=>{const I=b();let J=!1,P;const z=ue=>{J||(J=!0,clearTimeout(P),window.removeEventListener("message",K),j(ue))},K=ue=>{if(m.indexOf(ue.origin)<0)return;const G=ue.data;G&&G.type===g&&G.requestId===I&&z(G)};window.addEventListener("message",K);const ne={type:T,requestId:I,projectId:l,key:R};C!==void 0&&(ne.value=C);for(const ue of m)window.parent.postMessage(ne,ue);P=setTimeout(()=>z(null),v)});let S=!0;const E=250;return{getItem:async T=>{let R=await _("lovable-preview-auth:get",T);return!R&&S&&(await new Promise(C=>setTimeout(C,E)),R=await _("lovable-preview-auth:get",T)),S=!1,R&&R.ok&&typeof R.value=="string"?R.value===""?(localStorage.removeItem(T),null):R.value:localStorage.getItem(T)},setItem:(T,R)=>(localStorage.setItem(T,R),_("lovable-preview-auth:set",T,R).then(C=>{C&&C.ok&&typeof C.value=="string"&&localStorage.getItem(T)===R&&(C.value===""?localStorage.removeItem(T):localStorage.setItem(T,C.value))})),removeItem:T=>(localStorage.removeItem(T),_("lovable-preview-auth:remove",T).then(()=>{}))}}function qj(){return Bj("https://ystckkktjcktugqoqxtd.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InlzdGNra2t0amNrdHVncW9xeHRkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzgzNDQ1NDMsImV4cCI6MjA5MzkyMDU0M30.rAemX4qel2oTBLq3xHvKUC3r2Ak8kmSSr7XeQlctHUc",{auth:{storage:$j(),persistSession:!0,autoRefreshToken:!0}})}let Wh;const Vj=new Proxy({},{get(t,e,i){return Wh||(Wh=qj()),Reflect.get(Wh,e,i)}}),Gj=fi({type:"function"}).client(async({next:t})=>{const{data:e}=await Vj.auth.getSession(),i=e.session?.access_token;return t({headers:i?{Authorization:`Bearer ${i}`}:{}})}),Zj=fi(),Ay=QA(()=>({functionMiddleware:[Gj],requestMiddleware:[Zj]}));var fc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Kj=class extends fc{#e;#n;#t;constructor(){super(),this.#t=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(t){this.#t=t,this.#n?.(),this.#n=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 25,352 bytes, line 56
56this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Kb=new Kj,Fj={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},Yj=class{#e=Fj;#n=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},Af=new Yj;function Jj(t){setTimeout(t,0)}var Qj=typeof window>"u"||"Deno"in globalThis;function cn(){}function Xj(t,e){return typeof t=="function"?t(e):t}function Wj(t){return typeof t=="number"&&t>=0&&t!==1/0}function eC(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Of(t,e){return typeof t=="function"?t(e):t}function tC(t,e){return typeof t=="function"?t(e):t}function Oy(t,e){const{type:i="all",exact:a,fetchStatus:l,predicate:c,queryKey:u,stale:f}=t;if(u){if(a){if(e.queryHash!==ed(u,e.options))return!1}else if(!Fs(e.queryKey,u))return!1}if(i!=="all"){const p=e.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof f=="boolean"&&e.isStale()!==f||l&&l!==e.state.fetchStatus||c&&!c(e))}function jy(t,e){const{exact:i,status:a,predicate:l,mutationKey:c}=t;if(c){if(!e.options.mutationKey)return!1;if(i){if(Ks(e.options.mutationKey)!==Ks(c))return!1}else if(!Fs(e.options.mutationKey,c))return!1}return!(a&&e.state.status!==a||l&&!l(e))}function ed(t,e){return(e?.queryKeyHashFn||Ks)(t)}function Ks(t){return JSON.stringify(t,(e,i)=>jf(i)?Object.keys(i).sort().reduce((a,l)=>(a[l]=i[l],a),{}):i)}function Fs(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(i=>Fs(t[i],e[i])):!1}var nC=Object.prototype.hasOwnProperty;function Fb(t,e,i=0){if(t===e)return t;if(i>500)return e;const a=Cy(t)&&Cy(e);if(!a&&!(jf(t)&&jf(e)))return e;const c=(a?t:Object.keys(t)).length,u=a?e:Object.keys(e),f=u.length,p=a?new Array(f):{};let m=0;for(let g=0;g<f;g++){const v=a?g:u[g],b=t[v],_=e[v];if(b===_){p[v]=b,(a?g<c:nC.call(t,v))&&m++;continue}if(b===null||_===null||typeof b!="object"||typeof _!="object"){p[v]=_;continue}const S=Fb(b,_,i+1);p[v]=S,S===b&&m++}return c===f&&m===c?t:p}function Cy(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function jf(t){if(!xy(t))return!1;const e=t.constructor;if(e===void 0)return!0;const i=e.prototype;return!(!xy(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function xy(t){return Object.prototype.toString.call(t)==="[object Object]"}function rC(t){return new Promise(e=>{Af.setTimeout(e,t)})}function iC(t,e,i){return typeof i.structuralSharing=="function"?i.structuralSharing(t,e):i.structuralSharing!==!1?Fb(t,e):e}function aC(t,e,i=0){const a=[...t,e];return i&&a.length>i?a.slice(1):a}function sC(t,e,i=0){const a=[e,...t];return i&&a.length>i?a.slice(0,-1):a}var td=Symbol();function Yb(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===td?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function oC(t,e,i){let a=!1,l;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(l??=e(),a||(a=!0,l.aborted?i():l.addEventListener("abort",i,{once:!0})),l)}),t}var Jb=(()=>{let t=()=>Qj;return{isServer(){return t()},setIsServer(e){t=e}}})();function lC(){let t,e;const i=new Promise((l,c)=>{t=l,e=c});i.status="pending",i.catch(()=>{});function a(l){Object.assign(i,l),delete i.resolve,delete i.reject}return i.resolve=l=>{a({status:"fulfilled",value:l}),t(l)},i.reject=l=>{a({status:"rejected",reason:l}),e(l)},i}var cC=Jj;function uC(){let t=[],e=0,i=f=>{f()},a=f=>{f()},l=cC;const c=f=>{e?t.push(f):l(()=>{i(f)})},u=()=>{const f=t;t=[],f.length&&l(()=>{a(()=>{f.forEach(p=>{i(p)})})})};return{batch:f=>{let p;e++;try{p=f()}finally{e--,e||u()}return p},batchCalls:f=>(...p)=>{c(()=>{f(...p)})},schedule:c,setNotifyFunction:f=>{i=f},setBatchNotifyFunction:f=>{a=f},setScheduler:f=>{l=f}}}var St=uC(),hC=class extends fc{#e=!0;#n;#t;constructor(){super(),this.#t=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(t){this.#t=t,this.#n?.(),this.#n=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(i=>{i(t)}))}isOnline(){return this.#e}},ec=new hC;function fC(t){return Math.min(1e3*2**t,3e4)}function Qb(t){return(t??"online")==="online"?ec.isOnline():!0}var Cf=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Xb(t){let e=!1,i=0,a;const l=lC(),c=()=>l.status!=="pending",u=E=>{if(!c()){const T=new Cf(E);b(T),t.onCancel?.(T)}},f=()=>{e=!0},p=()=>{e=!1},m=()=>Kb.isFocused()&&(t.networkMode==="always"||ec.isOnline())&&t.canRun(),g=()=>Qb(t.networkMode)&&t.canRun(),v=E=>{c()||(a?.(),l.resolve(E))},b=E=>{c()||(a?.(),l.reject(E))},_=()=>new Promise(E=>{a=T=>{(c()||m())&&E(T)},t.onPause?.()}).then(()=>{a=void 0,c()||t.onContinue?.()}),S=()=>{if(c())return;let E;const T=i===0?t.initialPromise:void 0;try{E=T??t.fn()}catch(R){E=Promise.reject(R)}Promise.resolve(E).then(v).catch(R=>{if(c())return;const C=t.retry??(Jb.isServer()?0:3),j=t.retryDelay??fC,I=typeof j=="function"?j(i,R):j,J=C===!0||typeof C=="number"&&i<C||typeof C=="function"&&C(i,R);if(e||!J){b(R);return}i++,t.onFail?.(i,R),rC(I).then(()=>m()?void 0:_()).then(()=>{e?b(R):S()})})};return{promise:l,status:()=>l.status,cancel:u,continue:()=>(a?.(),l),cancelRetry:f,continueRetry:p,canStart:g,start:()=>(g()?S():_().then(S),l)}}var Wb=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wj(this.gcTime)&&(this.#e=Af.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Jb.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Af.clearTimeout(this.#e),this.#e=void 0)}},dC=class extends Wb{#e;#n;#t;#i;#r;#a;#s;constructor(t){super(),this.#s=!1,this.#a=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#t=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=Dy(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#a,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=Dy(this.options);e.data!==void 0&&(this.setState(zy(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(t,e){const i=iC(this.state.data,t,this.options);return this.#o({data:i,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),i}setState(t,e){this.#o({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(cn).catch(cn):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(t=>tC(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===td||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Of(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!eC(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),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:t}))}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(t,e){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const i=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#s=!0,i.signal)})},l=()=>{const f=Yb(this.options,e),m=(()=>{const g={client:this.#i,queryKey:this.queryKey,meta:this.meta};return a(g),g})();return this.#s=!1,this.options.persister?this.options.persister(f,m,this):f(m)},u=(()=>{const f={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:l};return a(f),f})();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=Xb({initialPromise:e?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof Cf&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),i.abort()},onFail:(f,p)=>{this.#o({type:"failed",failureCount:f,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 f=await this.#r.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#t.config.onSuccess?.(f,this),this.#t.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Cf){if(f.silent)return this.#r.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#t.config.onError?.(f,this),this.#t.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...pC(i.data,this.options),fetchMeta:t.meta??null};case"success":const a={...i,...zy(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?a:void 0,a;case"error":const l=t.error;return{...i,error:l,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),St.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:t})})}};function pC(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Qb(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function zy(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Dy(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,i=e!==void 0,a=i?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:i?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}function Ly(t){return{onFetch:(e,i)=>{const a=e.options,l=e.fetchOptions?.meta?.fetchMore?.direction,c=e.state.data?.pages||[],u=e.state.data?.pageParams||[];let f={pages:[],pageParams:[]},p=0;const m=async()=>{let g=!1;const v=S=>{oC(S,()=>e.signal,()=>g=!0)},b=Yb(e.options,e.fetchOptions),_=async(S,E,T)=>{if(g)return Promise.reject();if(E==null&&S.pages.length)return Promise.resolve(S);const C=(()=>{const P={client:e.client,queryKey:e.queryKey,pageParam:E,direction:T?"backward":"forward",meta:e.options.meta};return v(P),P})(),j=await b(C),{maxPages:I}=e.options,J=T?sC:aC;return{pages:J(S.pages,j,I),pageParams:J(S.pageParams,E,I)}};if(l&&c.length){const S=l==="backward",E=S?mC:Ny,T={pages:c,pageParams:u},R=E(a,T);f=await _(T,R,S)}else{const S=t??c.length;do{const E=p===0?u[0]??a.initialPageParam:Ny(a,f);if(p>0&&E==null)break;f=await _(f,E),p++}while(p<S)}return f};e.options.persister?e.fetchFn=()=>e.options.persister?.(m,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},i):e.fetchFn=m}}}function Ny(t,{pages:e,pageParams:i}){const a=e.length-1;return e.length>0?t.getNextPageParam(e[a],e,i[a],i):void 0}function mC(t,{pages:e,pageParams:i}){return e.length>0?t.getPreviousPageParam?.(e[0],e,i[0],i):void 0}var gC=class extends Wb{#e;#n;#t;#i;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#t=t.mutationCache,this.#n=[],this.state=t.state||vC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#n.includes(t)||(this.#n.push(t),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#n=this.#n.filter(e=>e!==t),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#r({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Xb({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(c,u)=>{this.#r({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#r({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const a=this.state.status==="pending",l=!this.#i.canStart();try{if(a)e();else{this.#r({type:"pending",variables:t,isPaused:l}),this.#t.config.onMutate&&await this.#t.config.onMutate(t,this,i);const u=await this.options.onMutate?.(t,i);u!==this.state.context&&this.#r({type:"pending",context:u,variables:t,isPaused:l})}const c=await this.#i.start();return await this.#t.config.onSuccess?.(c,t,this.state.context,this,i),await this.options.onSuccess?.(c,t,this.state.context,i),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(c,null,t,this.state.context,i),this.#r({type:"success",data:c}),c}catch(c){try{await this.#t.config.onError?.(c,t,this.state.context,this,i)}catch(u){Promise.reject(u)}try{await this.options.onError?.(c,t,this.state.context,i)}catch(u){Promise.reject(u)}try{await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,i)}catch(u){Promise.reject(u)}try{await this.options.onSettled?.(void 0,c,t,this.state.context,i)}catch(u){Promise.reject(u)}throw this.#r({type:"error",error:c}),c}finally{this.#t.runNext(this)}}#r(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),St.batch(()=>{this.#n.forEach(i=>{i.onMutationUpdate(t)}),this.#t.notify({mutation:this,type:"updated",action:t})})}};function vC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var yC=class extends fc{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(t,e,i){const a=new gC({client:t,mutationCache:this,mutationId:++this.#t,options:t.defaultMutationOptions(e),state:i});return this.add(a),a}add(t){this.#e.add(t);const e=Dl(t);if(typeof e=="string"){const i=this.#n.get(e);i?i.push(t):this.#n.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=Dl(t);if(typeof e=="string"){const i=this.#n.get(e);if(i)if(i.length>1){const a=i.indexOf(t);a!==-1&&i.splice(a,1)}else i[0]===t&&this.#n.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=Dl(t);if(typeof e=="string"){const a=this.#n.get(e)?.find(l=>l.state.status==="pending");return!a||a===t}else return!0}runNext(t){const e=Dl(t);return typeof e=="string"?this.#n.get(e)?.find(a=>a!==t&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){St.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(i=>jy(e,i))}findAll(t={}){return this.getAll().filter(e=>jy(t,e))}notify(t){St.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return St.batch(()=>Promise.all(t.map(e=>e.continue().catch(cn))))}};function Dl(t){return t.options.scope?.id}var bC=class extends fc{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,i){const a=e.queryKey,l=e.queryHash??ed(a,e);let c=this.get(l);return c||(c=new dC({client:t,queryKey:a,queryHash:l,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(a)}),this.add(c)),c}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){St.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(i=>Oy(e,i))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(i=>Oy(t,i)):e}notify(t){St.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){St.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},_C=class{#e;#n;#t;#i;#r;#a;#s;#l;constructor(t={}){this.#e=t.queryCache||new bC,this.#n=t.mutationCache||new yC,this.#t=t.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=Kb.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=ec.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#s?.(),this.#s=void 0,this.#l?.(),this.#l=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#n.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),i=this.#e.build(this,e),a=i.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(Of(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(a))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:i})=>{const a=i.data;return[e,a]})}setQueryData(t,e,i){const a=this.defaultQueryOptions({queryKey:t}),c=this.#e.get(a.queryHash)?.state.data,u=Xj(e,c);if(u!==void 0)return this.#e.build(this,a).setData(u,{...i,manual:!0})}setQueriesData(t,e,i){return St.batch(()=>this.#e.findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,e,i)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;St.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=this.#e;return St.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const i={revert:!0,...e},a=St.batch(()=>this.#e.findAll(t).map(l=>l.cancel(i)));return Promise.all(a).then(cn).catch(cn)}invalidateQueries(t,e={}){return St.batch(()=>(this.#e.findAll(t).forEach(i=>{i.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const i={...e,cancelRefetch:e.cancelRefetch??!0},a=St.batch(()=>this.#e.findAll(t).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,i);return i.throwOnError||(c=c.catch(cn)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(a).then(cn)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=this.#e.build(this,e);return i.isStaleByTime(Of(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(cn).catch(cn)}fetchInfiniteQuery(t){return t.behavior=Ly(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(cn).catch(cn)}ensureInfiniteQueryData(t){return t.behavior=Ly(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return ec.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(t){this.#t=t}setQueryDefaults(t,e){this.#i.set(Ks(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#i.values()],i={};return e.forEach(a=>{Fs(t,a.queryKey)&&Object.assign(i,a.defaultOptions)}),i}setMutationDefaults(t,e){this.#r.set(Ks(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#r.values()],i={};return e.forEach(a=>{Fs(t,a.mutationKey)&&Object.assign(i,a.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#t.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ed(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===td&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#t.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},wC=re.createContext(void 0),SC=({client:t,children:e})=>(re.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),H.jsx(wC.Provider,{value:t,children:e}));const EC="/assets/styles-CM_a5xwX.css",My=["nl","en","de","fr"];function Uy(){if(typeof window>"u")return"nl";try{const e=localStorage.getItem("hz_lang");if(e&&My.includes(e))return e}catch{}const t=(navigator.language||"nl").slice(0,2).toLowerCase();return My.includes(t)?t:"nl"}const kC={nl:{intro:"Wij gebruiken cookies. Lees meer in onze ",privacy:"privacyverklaring",trailing:".",customize:"Aanpassen",ok:"Oke!",prefsTitle:"Cookievoorkeuren",necessary:"Noodzakelijk",necessaryDesc:"Vereist voor de werking van de site.",statistics:"Statistieken",statisticsDesc:"Anonieme metingen om de site te verbeteren.",marketing:"Marketing",marketingDesc:"Personalisatie en advertenties.",alwaysActive:"altijd actief",back:"Terug",save:"Opslaan"},en:{intro:"We use cookies. Read more in our ",privacy:"privacy statement",trailing:".",customize:"Customize",ok:"OK!",prefsTitle:"Cookie preferences",necessary:"Necessary",necessaryDesc:"Required for the site to function.",statistics:"Statistics",statisticsDesc:"Anonymous measurements to improve the site.",marketing:"Marketing",marketingDesc:"Personalisation and advertising.",alwaysActive:"always active",back:"Back",save:"Save"},de:{intro:"Wir verwenden Cookies. Mehr dazu in unserer ",privacy:"Datenschutzerklärung",trailing:".",customize:"Anpassen",ok:"OK!",prefsTitle:"Cookie-Einstellungen",necessary:"Notwendig",necessaryDesc:"Erforderlich für den Betrieb der Website.",statistics:"Statistiken",statisticsDesc:"Anonyme Messungen zur Verbesserung der Website.",marketing:"Marketing",marketingDesc:"Personalisierung und Werbung.",alwaysActive:"immer aktiv",back:"Zurück",save:"Speichern"}
56,fr:{intro:"Nous utilisons des cookies. En savoir plus dans notre ",privacy:"déclaration de confidentialité",trailing:".",customize:"Personnaliser",ok:"OK !",prefsTitle:"Préférences cookies",necessary:"Nécessaire",necessaryDesc:"Requis pour le fonctionnement du site.",statistics:"Statistiques",statisticsDesc:"Mesures anonymes pour améliorer le site.",marketing:"Marketing",marketingDesc:"Personnalisation et publicité.",alwaysActive:"toujours actif",back:"Retour",save:"Enregistrer"}},e_="cookieConsent",TC="hz_cookie_consent_v1";function Hy(){if(typeof window>"u")return null;try{const t=localStorage.getItem(e_);if(t){const i=JSON.parse(t);return{functional:!0,analytics:!!i.analytics,marketing:!!i.marketing}}const e=localStorage.getItem(TC);if(e){const i=JSON.parse(e);return{functional:!0,analytics:!!i.statistics,marketing:!!i.marketing}}}catch{}if(typeof document<"u"&&/(?:^|;\s*)cookies_noodzakelijke=true/.test(document.cookie)){const t=/(?:^|;\s*)cookies_statistieken=true/.test(document.cookie),e=/(?:^|;\s*)cookies_marketing=true/.test(document.cookie);return{functional:!0,analytics:t,marketing:e}}return null}function RC(t){localStorage.setItem(e_,JSON.stringify(t));const e=new Date(Date.now()+1e3*60*60*24*180).toUTCString();document.cookie=`cookies_noodzakelijke=true; path=/; expires=${e}`,document.cookie=`cookies_statistieken=${t.analytics}; path=/; expires=${e}`,document.cookie=`cookies_marketing=${t.marketing}; path=/; expires=${e}`;const i=window;typeof i.gtag=="function"&&i.gtag("consent","update",{analytics_storage:t.analytics?"granted":"denied",ad_storage:t.marketing?"granted":"denied",ad_user_data:t.marketing?"granted":"denied",ad_personalization:t.marketing?"granted":"denied"}),window.dispatchEvent(new CustomEvent("hz:consent",{detail:{statistics:t.analytics,marketing:t.marketing}}))}function AC(){const[t,e]=re.useState(!1),[i,a]=re.useState(!1),[l,c]=re.useState(!0),[u,f]=re.useState(!0),[p,m]=re.useState("nl");if(re.useEffect(()=>{m(Uy()),Hy()||e(!0);const _=()=>{Hy()&&e(!1)},S=()=>m(Uy());return window.addEventListener("hz:consent",_),window.addEventListener("hz:lang",S),window.addEventListener("storage",S),()=>{window.removeEventListener("hz:consent",_),window.removeEventListener("hz:lang",S),window.removeEventListener("storage",S)}},[]),!t)return null;const g=kC[p],v=_=>{RC(_),e(!1)},b=()=>{if(typeof document<"u"){const _=document.querySelector(".cookies-modal");if(_){_.style.display="flex",window.dispatchEvent(new CustomEvent("hz:open-cookie-prefs"));return}}a(!0)};if(!i){const _=typeof window<"u"&&window.matchMedia("(max-width: 640px)").matches;return H.jsxs("div",{role:"dialog","aria-label":"Cookie consent",style:{position:"fixed",zIndex:9999,left:0,right:0,bottom:0,background:"#0b0d10",color:"#fff",borderRadius:_?"20px 20px 0 0":999,boxShadow:"0 -10px 40px rgba(0,0,0,.25)",padding:_?"18px 20px 24px":"10px 12px 10px 20px",display:"flex",flexDirection:_?"column":"row",alignItems:_?"stretch":"center",gap:14,fontFamily:"inherit",maxWidth:_?"100%":720,margin:_?"0":"0 auto"},children:[H.jsxs("div",{style:{fontSize:14,fontWeight:600},children:[g.intro,H.jsx(Qf,{to:p==="de"?"/datenschutzerklarung":"/privacy-policy",style:{color:"#ffd166",textDecoration:"underline",fontWeight:500},children:g.privacy}),g.trailing]}),H.jsxs("div",{style:{display:"flex",gap:8,justifyContent:_?"stretch":"flex-start",flexShrink:0},children:[H.jsx("button",{onClick:b,style:{...By,flex:_?1:"0 0 auto",textAlign:"center",padding:_?"12px 16px":"10px 18px"},children:g.customize}),H.jsx("button",{onClick:()=>v({functional:!0,analytics:!0,marketing:!0}),style:{...Py,flex:_?1:"0 0 auto",textAlign:"center",padding:_?"12px 16px":"10px 18px"},children:g.ok})]})]})}return H.jsxs("div",{role:"dialog","aria-label":g.prefsTitle,style:{position:"fixed",zIndex:9999,left:16,right:16,bottom:16,margin:"0 auto",maxWidth:480,background:"#0b0d10",color:"#fff",borderRadius:16,boxShadow:"0 20px 60px rgba(0,0,0,.35)",padding:20,fontFamily:"inherit"},children:[H.jsx("div",{style:{fontWeight:700,fontSize:16,marginBottom:8},children:g.prefsTitle}),H.jsx(ef,{title:g.necessary,desc:g.necessaryDesc,checked:!0,disabled:!0,alwaysActiveLabel:g.alwaysActive}),H.jsx(ef,{title:g.statistics,desc:g.statisticsDesc,checked:l,onChange:c,alwaysActiveLabel:g.alwaysActive}),H.jsx(ef,{title:g.marketing,desc:g.marketingDesc,checked:u,onChange:f,alwaysActiveLabel:g.alwaysActive}),H.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:12,flexWrap:"wrap"},children:[H.jsx("button",{onClick:()=>a(!1),style:By,children:g.back}),H.jsx("button",{onClick:()=>v({functional:!0,analytics:l,marketing:u}),style:Py,children:g.save})]})]})}function ef({title:t,desc:e,checked:i,disabled:a,onChange:l,alwaysActiveLabel:c}){return H.jsxs("label",{style:{display:"flex",gap:12,padding:"10px 0",borderTop:"1px solid rgba(255,255,255,.08)",cursor:a?"default":"pointer"},children:[H.jsx("input",{type:"checkbox",checked:i,disabled:a,onChange:u=>l?.(u.target.checked),style:{marginTop:4}}),H.jsxs("div",{children:[H.jsxs("div",{style:{fontWeight:600,fontSize:14},children:[t,a&&H.jsxs("span",{style:{opacity:.6,fontWeight:400},children:[" · ",c??"altijd actief"]})]}),H.jsx("div",{style:{fontSize:13,opacity:.8},children:e})]})]})}const Py={background:"#ffd166",color:"#0b0d10",border:0,borderRadius:999,padding:"10px 18px",fontWeight:700,cursor:"pointer",fontSize:14},By={background:"transparent",color:"#fff",border:"1px solid rgba(255,255,255,.25)",borderRadius:999,padding:"10px 16px",fontWeight:600,cursor:"pointer",fontSize:14};var OC=qy();const jC={nl:"Nederlands",en:"English",fr:"Français",de:"Deutsch"};function Iy({code:t,size:e=22}
56){const i={width:e,height:Math.round(e*.7),viewBox:"0 0 30 21",xmlns:"http://www.w3.org/2000/svg",style:{display:"block",borderRadius:3,boxShadow:"0 0 0 1px rgba(0,0,0,.08)"}};switch(t){case"nl":return H.jsxs("svg",{...i,"aria-label":"Nederlands",children:[H.jsx("rect",{width:"30",height:"7",fill:"#AE1C28"}),H.jsx("rect",{y:"7",width:"30",height:"7",fill:"#fff"}),H.jsx("rect",{y:"14",width:"30",height:"7",fill:"#21468B"})]});case"en":return H.jsxs("svg",{...i,viewBox:"0 0 60 30","aria-label":"English",children:[H.jsx("clipPath",{id:"t",children:H.jsx("path",{d:"M0,0 v30 h60 v-30 z"})}),H.jsx("path",{d:"M0,0 v30 h60 v-30 z",fill:"#012169"}),H.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#fff",strokeWidth:"6"}),H.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",clipPath:"url(#t)",stroke:"#C8102E",strokeWidth:"4"}),H.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#fff",strokeWidth:"10"}),H.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#C8102E",strokeWidth:"6"})]});case"fr":return H.jsxs("svg",{...i,"aria-label":"Français",children:[H.jsx("rect",{width:"10",height:"21",fill:"#0055A4"}),H.jsx("rect",{x:"10",width:"10",height:"21",fill:"#fff"}),H.jsx("rect",{x:"20",width:"10",height:"21",fill:"#EF4135"})]});case"de":return H.jsxs("svg",{...i,"aria-label":"Deutsch",children:[H.jsx("rect",{width:"30",height:"7",fill:"#000"}),H.jsx("rect",{y:"7",width:"30",height:"7",fill:"#DD0000"}),H.jsx("rect",{y:"14",width:"30",height:"7",fill:"#FFCE00"})]});default:return null}}function CC(){const[t,e]=re.useState(()=>{if(typeof window>"u")return"nl";const a=window.__hzI18n;return a?a.get():"nl"});re.useEffect(()=>{const a=window.__hzI18n;if(a)return e(a.get()),a.onChange(e)},[]);const i=re.useCallback(a=>{window.__hzI18n?.set(a)},[]);return{lang:t,set:i}}function xC(){const{lang:t,set:e}=CC(),[i,a]=re.useState(!1),l=re.useRef(null);return re.useEffect(()=>{if(!i)return;const c=u=>{l.current&&!l.current.contains(u.target)&&a(!1)};return document.addEventListener("click",c),()=>document.removeEventListener("click",c)},[i]),H.jsxs("div",{ref:l,style:{position:"relative",display:"inline-block"},"data-no-i18n":"",children:[H.jsx("button",{type:"button",onClick:c=>{c.stopPropagation(),a(u=>!u)},style:{appearance:"none",background:"transparent",border:0,padding:4,cursor:"pointer",display:"inline-flex",alignItems:"center",gap:4,lineHeight:0},"aria-haspopup":"listbox","aria-expanded":i,"aria-label":"Taal kiezen",children:H.jsx(Iy,{code:t})}),i&&H.jsx("ul",{role:"listbox",style:{position:"absolute",right:0,top:"calc(100% + 8px)",background:"#fff",color:"#111",listStyle:"none",margin:0,padding:6,borderRadius:12,boxShadow:"0 12px 32px rgba(0,0,0,.18)",border:"1px solid rgba(0,0,0,.06)",minWidth:56,zIndex:1e4},children:["nl","en","fr","de"].map(c=>H.jsx("li",{children:H.jsx("button",{type:"button",role:"option","aria-selected":t===c,title:jC[c],onClick:()=>{e(c),a(!1)},style:{width:"100%",padding:6,borderRadius:8,border:0,background:t===c?"rgba(0,0,0,.06)":"transparent",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:0},children:H.jsx(Iy,{code:c})})},c))})]})}function zC(){const[t,e]=re.useState([]);return re.useEffect(()=>{if(typeof document>"u")return;let i=!1,a=[];const l=(p,m)=>{if(p.length!==m.length)return!1;for(let g=0;g<p.length;g++)if(p[g]!==m[g])return!1;return!0},c=()=>{const p=Array.from(document.querySelectorAll(".lng-cont"));p.forEach(m=>{m.getAttribute("data-hz-switcher")!=="react"&&m.setAttribute("data-hz-switcher","react");const g=m.querySelector(".hz-lang-select");g&&g.remove()}),l(a,p)||(a=p,e(p))},u=()=>{i||(i=!0,requestAnimationFrame(()=>{i=!1,c()}))};c();const f=new MutationObserver(u);return f.observe(document.body,{childList:!0,subtree:!0}),()=>f.disconnect()},[]),t.length?H.jsx(H.Fragment,{children:t.map((i,a)=>OC.createPortal(H.jsx(xC,{}),i,"hz-lng-"+a))}):null}function DC(){return H.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:H.jsxs("div",{className:"max-w-md text-center",children:[H.jsx("h1",{className:"text-7xl font-bold text-foreground",children:"404"}),H.jsx("h2",{className:"mt-4 text-xl font-semibold text-foreground",children:"Page not found"}),H.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The page you're looking for doesn't exist or has been moved."}),H.jsx("div",{className:"mt-6",children:H.jsx("a",{href:"/",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 LC({error:t,reset:e}){console.error(t);const i=kt();return H.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:H.jsxs("div",{className:"max-w-md text-center",children:[H.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground",children:"This page didn't load"}),H.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."}),H.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[H.jsx("button",{onClick:()=>{i.invalidate(),e()},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"}),H.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 oe=jA()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"HomeZero"},{name:"description",content:"The best whitelabel sales suite, CRM and ERP for the energy transition."},{name:"author",content:"Lovable"},{property:"og:title",content:"HomeZero"},{property:"og:description",content:"The best whitelabel sales suite, CRM and ERP for the energy transition."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:site",content:"@Lovable"},{name:"twitter:title",content:"HomeZero"},{name:"twitter:description",content:"The best whitelabel sales suite, CRM and ERP for the energy transition."},{property:"og:image",content:"https://storage.googleapis.com/gpt-engineer-file-uploads/dTMGXoSB5jfuxcLQaNP87kmIYiG3/social-images/social-1778404720889-1000198412.webp"},{name:"twitter:image",content:"https://storage.googleapis.com/gpt-engineer-file-uploads/dTMGXoSB5jfuxcLQaNP87kmIYiG3/social-images/social-1778404720889-1000198412.webp"}],links:[{rel:"stylesheet",href:EC}],scripts:[]}),shellComponent:NC,component:MC,notFoundComponent:DC,errorComponent:LC});function NC({children:t}){return H.jsxs("html",{lang:"en",children:[H.jsx("head",{children:H.jsx(KA,{})}),H.jsxs("body",{children:[t,H.jsx(YA,{})]})]})}function MC(){const{queryClient:t}=oe.useRouteContext();return re.useEffect(()=>{if(!(typeof window>"u")){document.querySelectorAll('script[data-weglot], script[src*="weglot"]').forEach(e
56=>e.remove());try{delete window.Weglot,delete window.__weglotInited}catch{}if(!document.querySelector("script[data-hz-i18n]")){const e=document.createElement("script");e.src="/js/hz-i18n.js?v=freeze-fix-20260602",e.async=!1,e.dataset.hzI18n="1",document.head.appendChild(e)}if(!document.querySelector("script[data-pico-status]")){const e=document.createElement("script");e.src="/js/pico-status.js",e.defer=!0,e.dataset.picoStatus="1",document.head.appendChild(e)}}},[]),H.jsxs(SC,{client:t,children:[H.jsx(Sb,{}),H.jsx(AC,{}),H.jsx(zC,{})]})}const UC="modulepreload",HC=function(t){return"/"+t},$y={},te=function(e,i,a){let l=Promise.resolve();if(i&&i.length>0){let p=function(m){return Promise.all(m.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");l=p(i.map(m=>{if(m=HC(m),m in $y)return;$y[m]=!0;const g=m.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const b=document.createElement("link");if(b.rel=g?"stylesheet":UC,g||(b.as="script"),b.crossOrigin="",b.href=m,f&&b.setAttribute("nonce",f),document.head.appendChild(b),g)return new Promise((_,S)=>{b.addEventListener("load",_),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return l.then(u=>{for(const f of u||[])f.status==="rejected"&&c(f.reason);return e().catch(c)})},Fe=[{rel:"stylesheet",href:"/css/normalize.css"},{rel:"stylesheet",href:"/css/webflow.css"},{rel:"stylesheet",href:"/css/homezerotech.webflow.css"},{rel:"shortcut icon",href:"/images/favicon.png",type:"image/x-icon"},{rel:"apple-touch-icon",href:"/images/webclip.png"}],xe=[{rel:"stylesheet",href:"/css/normalize.css"},{rel:"stylesheet",href:"/css/webflow.css"},{rel:"stylesheet",href:"/css/homezerotech.webflow.css"},{rel:"shortcut icon",href:"/images/favicon.png",type:"image/x-icon"},{rel:"apple-touch-icon",href:"/images/webclip.png"}],PC=()=>te(()=>import("./algemene-voorwaarden-xSw6Fvmt.js"),__vite__mapDeps([0,1,2])),BC=W()({head:()=>({meta:[{title:"Algemene voorwaarden"},{property:"og:title",content:"Algemene voorwaarden"},{property:"og:description",content:""}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/algemene-voorwaarden"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/algemene-voorwaarden"}]}),component:ee(PC,"component")}),IC=()=>te(()=>import("./app-CBq17C5G.js"),[]),$C=W()({component:ee(IC,"component")}),qC=()=>te(()=>import("./assessment-BtZO_SjU.js"),__vite__mapDeps([3,1,2])),VC=W()({head:()=>({meta:[{title:"AI Performance Check | HomeZero"},{name:"description",content:"Analyseer je website in 30 seconden met AI en ontdek hoeveel leads je misloopt."},{property:"og:title",content:"AI Performance Check | HomeZero"},{property:"og:description",content:"Analyseer je website in 30 seconden met AI en ontdek hoeveel leads je misloopt."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/assessment"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/assessment"}]}),component:ee(qC,"component")}),GC=()=>te(()=>import("./b2b2c-hSVdqBdU.js"),__vite__mapDeps([4,1,2])),ZC=W()({head:()=>({meta:[{title:"HomeZero voor B2B2C organisaties â Verduurzaming via jouw kanaal"},{name:"description",content:"HomeZero helpt B2B2C-organisaties zoals groothandels, fabrikanten en verzekeraars verduurzaming aan te bieden via hun eigen kanaal. Slimme leadflows en whitelabel tools."},{property:"og:title",content:"HomeZero voor B2B2C organisaties â Verduurzaming via jouw kanaal"},{property:"og:description",content:"HomeZero helpt B2B2C-organisaties zoals groothandels, fabrikanten en verzekeraars verduurzaming aan te bieden via hun eigen kanaal. Slimme leadflows en whitelabel tools."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/b2b2c"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/b2b2c"}]}
56),component:ee(GC,"component")}),KC=()=>te(()=>import("./b2b2cs-DtqBFgK5.js"),[]),FC=W()({component:ee(KC,"component")}),YC=()=>te(()=>import("./cookie-statement-D5tue9j8.js"),__vite__mapDeps([5,1,2])),JC=W()({head:()=>({meta:[{title:"Cookie statement"},{property:"og:title",content:"Cookie statement"},{property:"og:description",content:""}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/cookie-statement"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/cookie-statement"}]}),component:ee(YC,"component")}),QC=()=>te(()=>import("./datenschutzerklarung-CnQst2Gp.js"),__vite__mapDeps([6,1,2])),XC=W()({head:()=>({meta:[{title:"Datenschutzerklärung"},{property:"og:title",content:"Datenschutzerklärung"},{property:"og:description",content:""}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/datenschutzerklarung"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/datenschutzerklarung"}]}),component:ee(QC,"component")}),WC=()=>te(()=>import("./impressum-BuQ5xjNS.js"),__vite__mapDeps([7,1,2])),e2=W()({head:()=>({meta:[{title:"Impressum"},{property:"og:title",content:"Impressum"},{property:"og:description",content:""}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/impressum"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/impressum"}]}),component:ee(WC,"component")}),t2=()=>te(()=>import("./over-ons-BQwPV1bD.js"),__vite__mapDeps([8,1,2])),n2=W()({head:()=>({meta:[{title:"Over HomeZero â Tech voor de energietransitie"},{name:"description",content:"Vanuit de Koepel in Haarlem werkt ons team van 10 aan slimme leadflows en AI-tools voor installateurs en B2B2C-organisaties. Ontdek ons verhaal."},{property:"og:title",content:"Over HomeZero â Tech voor de energietransitie"},{property:"og:description",content:"Vanuit de Koepel in Haarlem werkt ons team van 10 aan slimme leadflows en AI-tools voor installateurs en B2B2C-organisaties. Ontdek ons verhaal."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/over-ons"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/over-ons"}]}),component:ee(t2,"component")}),r2=()=>te(()=>import("./privacy-policy-DUJGQ2tk.js"),__vite__mapDeps([9,1,2])),i2=W()({head:()=>({meta:[{title:"HomeZero - Privacy Policy"},{property:"og:title",content:"HomeZero - Privacy Policy"},{property:"og:description",content:""}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/privacy-policy"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/privacy-policy"}]}),component:ee(r2,"component")}),a2=()=>te(()=>import("./project-pico-DU7iuuJO.js"),__vite__mapDeps([10,1,2])),s2=W()({head:()=>({meta:[{title:"Pico â Operatie- en salesplatform voor verduurzaming"},{name:"description",content:"Pico is het operationele platform van HomeZero. Beheer leads, monteurs, offertes en klantcommunicatie op één plek â van warmtepomp tot thuisbatterij."},{property:"og:title",content:"Pico â Operatie- en salesplatform voor verduurzaming"},{property:"og:description",content:"Pico is het operationele platform van HomeZero. Beheer leads, monteurs, offertes en klantcommunicatie op één plek â van warmtepomp tot thuisbatterij."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/project-pico"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/project-pico"}]}),component:ee(a2,"component")}),o2=()=>te(()=>import("./unsubscribe-Bt1A7oPO.js"),[]),l2=W()({validateSearch:t=>({token:typeof t.token=="string"?t.token:""}),component:ee(o2,"component"),head:()=>({meta:[{title:"Uitschrijven â HomeZero"},{name:"description",content:"Schrijf je uit voor e-mails van HomeZero."},{name:"robots",content:"noindex,nofollow"}]})}),c2=()=>te(()=>import("./app.index-C7lCTlAI.js"),[]),u2=W()({head:()=>({meta:[{title:"HomeZero â App"},{name:"description",content:"HomeZero application."}]}),component:ee(c2,"component")}),h2=()=>te(()=>import("./app.admin-aJI3B-mO.js"),__vite__mapDeps([11,12,13,14])),f2=W()({head:()=>({meta:[{title:"Admin â HomeZero"}]}),component:ee(h2,"component")}),d2=()=>te(()=>import("./app.login-pxufjwZD.js"),__vite__mapDeps([15,12,13])),p2=W()({head:()=>({meta:[{title:"Sign in â HomeZero"}]}),component:ee(d2,"component")}),m2=()=>te(()=>import("./blog.index-CnexngKF.js"),__vite__mapDeps([16,17,2,18])),g2=[{rel:"stylesheet",href:"/css/normalize.css"},{rel:"stylesheet",href:"/css/webflow.css"},{rel:"stylesheet",href:"/css/homezerotech.webflow.css"},{rel:"shortcut icon",href:"/images/favicon.png",type:"image/x-icon"},{rel:"apple-touch-icon",href:"/images/webclip.png"}],v2=W()({head:()=>({meta:[{title:"Blog â HomeZero â Inzichten & opinie over verduurzaming"},{name:"description",content:"Lees de laatste inzichten van HomeZero over verduurzaming, installatiebedrijven, leadflows en AI-tools voor de energietransitie."},{property:"og:title",content:"Blog â HomeZero â Inzichten & opinie over verduurzaming"},{property:"og:description",content:"Lees de laatste inzichten van HomeZero over verduurzaming, installatiebedrijven, leadflows en AI-tools voor de energietransitie."}],links:[...g2,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog"}]}),component:ee(m2,"component")}),y2=()=>te(()=>import("./blog.conversational-intake-koper-intentie-Cg_kpwqn.js"),__vite__mapDeps([19,17,2,18])),b2=W()({head:()=>({meta:[{title:"De Conversational Intake: Waarom het statische formulier je leads kost (en hoe het beter kan) â HomeZero blog"},{name:"description",content:"Het statische contactformulier is dood. Ontdek hoe je met een 'conversational intake' onzekerheden wegneemt, de intentie van de koper meet en meer Homeruns⢠scoort."},{property:"og:title",content:"De Conversational Intake: Waarom het statische formulier je leads kost (en hoe het beter kan)"},{property:"og:description",content:"Het statische contactformulier is dood. Ontdek hoe je met een 'conversational intake' onzekerheden wegneemt, de intentie van de koper meet en meer Homeruns⢠scoort."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/def99a020c95eced.png"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/def99a020c95eced.png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/conversational-intake-koper-intentie"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/conversational-intake-koper-intentie"}]}),component:ee(y2,"component")}),_2=()=>te(()=>import("./blog.crm-thuisbatterij-specialist-platform-pico-vs-standaard-software-B8QeCcjr.js"),__vite__mapDeps([20,17,2,18])),w2=W()({head:()=>({meta:[{title:"Waarom een standaard CRM niet werkt voor de thuisbatterij-specialist â HomeZero blog"},{name:"description",content:"Waarom generieke CRM-systemen tekortschieten bij de verkoop van thuisbatterijen en hoe je met de gespecialiseerde tools van HomeZero technische en financiële twijfel bij klanten wegneemt."},{property:"og:title",content:"Waarom een standaard CRM niet werkt voor de thuisbatterij-specialist"},{property:"og:description",content:"Waarom generieke CRM-systemen tekortschieten bij de verkoop van thuisbatterijen en hoe je met de gespecialiseerde tools van HomeZero technische en financiële twijfel bij klanten wegneemt."},{property:"og:image",content:"https://cdn.prod.website-files.com/648c75320169e2407e860544/69f9ea0a360d5a8fb5b13e20_Upgrade%20je%20CRM%20(2).png"},{name:"twitter:image",content:"https://cdn.prod.website-files.com/648c75320169e2407e860544/69f9ea0a360d5a8fb5b13e20_Upgrade%20je%20CRM%20(2).png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/crm-thuisbatterij-specialist-platform-pico-vs-standaard-software"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/crm-thuisbatterij-specialist-platform-pico-vs-standaard-software"}]}),component:ee(_2,"component")}),S2=()=>te(()=>import("./blog.data-gedreven-groei-installatiebedrijf-platform-pico-ClakmX2Q.js"),__vite__mapDeps([21,17,2,18])),E2=W()({head:()=>({meta:[{title:"Echte groei in de installatiewereld: stop met dweilen, begin met bou
56wen â HomeZero blog"},{name:"description",content:"Stop met het simpelweg inkopen van meer leads. Ontdek hoe je met data-gedreven keuzes en procesoptimalisatie je installatiebedrijf echt schaalbaar maakt."},{property:"og:title",content:"Echte groei in de installatiewereld: stop met dweilen, begin met bouwen"},{property:"og:description",content:"Stop met het simpelweg inkopen van meer leads. Ontdek hoe je met data-gedreven keuzes en procesoptimalisatie je installatiebedrijf echt schaalbaar maakt."},{property:"og:image",content:"https://cdn.prod.website-files.com/648c75320169e2407e860544/69f9ea72ead7171966682d4c_Groei%20in%20installatiewereld%20(1).png"},{name:"twitter:image",content:"https://cdn.prod.website-files.com/648c75320169e2407e860544/69f9ea72ead7171966682d4c_Groei%20in%20installatiewereld%20(1).png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/data-gedreven-groei-installatiebedrijf-platform-pico"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/data-gedreven-groei-installatiebedrijf-platform-pico"}]}),component:ee(S2,"component")}),k2=()=>te(()=>import("./blog.de-visie-van-homezero-tech-D76tm6EH.js"),__vite__mapDeps([22,17,2,18])),T2=W()({head:()=>({meta:[{title:"De visie van HomeZero â HomeZero blog"},{name:"description",content:"De energietransitie in de bestaande bouw moet sneller, slimmer en vooral samen.In Nederland zijn we goed op weg maar begint een nieuwe fase waarin we moeten versnellen."},{property:"og:title",content:"De visie van HomeZero"},{property:"og:description",content:"De energietransitie in de bestaande bouw moet sneller, slimmer en vooral samen.In Nederland zijn we goed op weg maar begint een nieuwe fase waarin we moeten versnellen."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/1c3d6966245b9d7e.png"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/1c3d6966245b9d7e.png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/de-visie-van-homezero-tech"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/de-visie-van-homezero-tech"}]}),component:ee(k2,"component")}),R2=()=>te(()=>import("./blog.de-woningen-van-jouw-klanten-verduurzamen-jvGMc5MZ.js"),__vite__mapDeps([23,17,2,18])),A2=W()({head:()=>({meta:[{title:"De woningen van jouw klanten verduurzamen? â HomeZero blog"},{name:"description",content:"Duurzaamheid onafhankelijk en gemakkelijk gemaakt: Ontdek de Whitelabel Propositie van HomeZero.tech"},{property:"og:title",content:"De woningen van jouw klanten verduurzamen?"},{property:"og:description",content:"Duurzaamheid onafhankelijk en gemakkelijk gemaakt: Ontdek de Whitelabel Propositie van HomeZero.tech"},{property:"og:image",content:"https://cdn.prod.website-files.com/648c75320169e2407e860544/64e7606938fe194b44382ef8_image%20(6).png"},{name:"twitter:image",content:"https://cdn.prod.website-files.com/648c75320169e2407e860544/64e7606938fe194b44382ef8_image%20(6).png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/de-woningen-van-jouw-klanten-verduurzamen"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/de-woningen-van-jouw-klanten-verduurzamen"}]}),component:ee(R2,"component")}),O2=()=>te(()=>import("./blog.hoe-bouw-je-een-startup-in-een-dag-S-2IOh_k.js"),__vite__mapDeps([24,17,2,18])),j2=W()({head:()=>({meta:[{title:"HomeZero bouwt een startup in een dag â HomeZero blog"},{name:"description",content:""},{property:"og:title",content:"HomeZero bouwt een startup in een dag"},{property:"og:description",content:""},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/f58580cdb872c8e9.png"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/f58580cdb872c8e9.png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/hoe-bouw-je-een-startup-in-een-dag"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/hoe-bouw-je-een-startup-in-een-dag"}]}),component:ee(O2,"component")}),C2=()=>te(()=>import("./blog.hoe-kunnen-wij-ai-inzetten-voor-advies-CGiaAlAU.js"),__vite__mapDeps([25,17,2,18])),x2=W()({head:()=>({meta:[{title:"Hoe kunnen wij AI inzetten voor advies? â HomeZero blog"},{name:"description",content:"Samen met Tijn en Cas hield team HomeZero een ware hackathon tijdens het #GPTx event in Haarlem bij ons op kantoor."},{property:"og:title",content:"Hoe kunnen wij AI inzetten voor advies?"},{property:"og:description",content:"Samen met Tijn en Cas hield team HomeZero een ware hackathon tijdens het #GPTx event in Haarlem bij ons op kantoor."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/130769d48c967b22.png"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/130769d48c967b22.png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/hoe-kunnen-wij-ai-inzetten-voor-advies"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/hoe-kunnen-wij-ai-inzetten-voor-advies"}]}
56),component:ee(C2,"component")}),z2=()=>te(()=>import("./blog.homezero-haalt-investering-op-bij-kairos-voor-europese-groei-Dqrd1qyJ.js"),__vite__mapDeps([26,17,2,18])),D2=W()({head:()=>({meta:[{title:"HomeZero haalt investering op bij Kairos voor Europese groei â HomeZero blog"},{name:"description",content:"HomeZero, het online platform voor het upgraden van woningen, heefteen investering ontvangen van Kairos. De investering stelt HomeZero in staat om haar innovatievewhitelabel-platform versneld door te ontwikkelen."},{property:"og:title",content:"HomeZero haalt investering op bij Kairos voor Europese groei"},{property:"og:description",content:"HomeZero, het online platform voor het upgraden van woningen, heefteen investering ontvangen van Kairos. De investering stelt HomeZero in staat om haar innovatievewhitelabel-platform versneld door te ontwikkelen."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/07c970ef283b8050.jpg"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/07c970ef283b8050.jpg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/homezero-haalt-investering-op-bij-kairos-voor-europese-groei"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/homezero-haalt-investering-op-bij-kairos-voor-europese-groei"}]}),component:ee(z2,"component")}),L2=()=>te(()=>import("./blog.homezero-naar-de-solar-solutions-beurs-Sa0JVgrd.js"),__vite__mapDeps([27,17,2,18])),N2=W()({head:()=>({meta:[{title:"HomeZero naar de Solar Solutions beurs â HomeZero blog"},{name:"description",content:""},{property:"og:title",content:"HomeZero naar de Solar Solutions beurs"},{property:"og:description",content:""},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/048fb486b23c22fc.webp"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/048fb486b23c22fc.webp"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/homezero-naar-de-solar-solutions-beurs"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/homezero-naar-de-solar-solutions-beurs"}]}),component:ee(L2,"component")}),M2=()=>te(()=>import("./blog.homezero-naar-de-vsk-berus-C1uuKXCz.js"),__vite__mapDeps([28,17,2,18])),U2=W()({head:()=>({meta:[{title:"HomeZero naar de VSK beurs â HomeZero blog"},{name:"description",content:""},{property:"og:title",content:"HomeZero naar de VSK beurs"},{property:"og:description",content:""},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/af4068192d1bfe1a.jpeg"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/af4068192d1bfe1a.jpeg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/homezero-naar-de-vsk-berus"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/homezero-naar-de-vsk-berus"}]}),component:ee(M2,"component")}),H2=()=>te(()=>import("./blog.homezero-op-de-webwinkel-vakdagen-met-bijbehorende-salestips-N18QZfC2.js"),__vite__mapDeps([29,17,2,18])),P2=W()({head:()=>({meta:[{title:"Homezero op de webwinkel vakdagen, met bijbehorende salestips! â HomeZero blog"},{name:"description",content:"10 verkooptips voor installatiebedrijven: inzichten van e-commerce experts"},{property:"og:title",content:"Homezero op de webwinkel vakdagen, met bijbehorende salestips!"},{property:"og:description",content:"10 verkooptips voor installatiebedrijven: inzichten van e-commerce experts"},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/64e4f8c0dab4cf57.jpg"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/64e4f8c0dab4cf57.jpg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/homezero-op-de-webwinkel-vakdagen-met-bijbehorende-salestips"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/homezero-op-de-webwinkel-vakdagen-met-bijbehorende-salestips"}]}),component:ee(H2,"component")}),B2=()=>te(()=>import("./blog.homezero-tech-voor-installateurs-By-uM_kU.js"),__vite__mapDeps([30,17,2,18])),I2=W()({head:()=>({meta:[{title:"HomeZero voor installateurs â HomeZero blog"},{name:"description",content:"Want de ambitie van het klimaatakkoord is groot met 1,5m HomeZeroâs in 2030. En die moeten geïnstalleerd worden door 4.000 installatie bedrijven, waarvan er tweederde klein tot middelgroot zijn en waar tot 2030 meer dan 100.000 extra mensen nodig zijn."},{property:"og:title",content:"HomeZero voor installateurs"},{property:"og:description",content:"Want de ambitie van het klimaatakkoord is groot met 1,5m HomeZeroâs in 2030. En die moeten geïnstalleerd worden door 4.000 installatie bedrijven, waarvan er tweederde klein tot middelgroot zijn en waar tot 2030 meer dan 100.000 extra mensen nodig zijn."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/fd5efde5246f5ca9.png"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/fd5efde5246f5ca9.png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/homezero-tech-voor-installateurs"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/homezero-tech-voor-installateurs"}]}
56),component:ee(B2,"component")}),$2=()=>te(()=>import("./blog.huisscan-ari-oplossing-voor-schouw-knelpunt-installateur-BCElkUng.js"),__vite__mapDeps([31,17,2,18])),q2=W()({head:()=>({meta:[{title:"Huisscan Ari: de oplossing voor het grootste knelpunt in de installatiewereld â HomeZero blog"},{name:"description",content:"Hoe AI en Augmented Reality het tijdrovende schouwproces overbodig maken. Een blik op de toekomst van digitale woningopnames met Huisscan Ari."},{property:"og:title",content:"Huisscan Ari: de oplossing voor het grootste knelpunt in de installatiewereld"},{property:"og:description",content:"Hoe AI en Augmented Reality het tijdrovende schouwproces overbodig maken. Een blik op de toekomst van digitale woningopnames met Huisscan Ari."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/93d8eee9133b6bad.jpeg"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/93d8eee9133b6bad.jpeg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/huisscan-ari-oplossing-voor-schouw-knelpunt-installateur"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/huisscan-ari-oplossing-voor-schouw-knelpunt-installateur"}]}),component:ee($2,"component")}),V2=()=>te(()=>import("./blog.klant-niet-bezig-met-duurzaamheid-verkoop-faciliteren-DzO0Z1OL.js"),__vite__mapDeps([32,17,2,18])),G2=W()({head:()=>({meta:[{title:"Waarom je klant eigenlijk niet bezig is met 'duurzaamheid' (en hoe je ze toch laat kopen) â HomeZero blog"},{name:"description",content:"Waarom de term 'duurzaamheid' vaak niet de doorslag geeft bij een aankoop en hoe je door regie en gemak meer warmtepompen en isolatie verkoopt."},{property:"og:title",content:"Waarom je klant eigenlijk niet bezig is met 'duurzaamheid' (en hoe je ze toch laat kopen)"},{property:"og:description",content:"Waarom de term 'duurzaamheid' vaak niet de doorslag geeft bij een aankoop en hoe je door regie en gemak meer warmtepompen en isolatie verkoopt."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/6ed90e798fb79cea.png"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/6ed90e798fb79cea.png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/klant-niet-bezig-met-duurzaamheid-verkoop-faciliteren"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/klant-niet-bezig-met-duurzaamheid-verkoop-faciliteren"}]}),component:ee(V2,"component")}),Z2=()=>te(()=>import("./blog.project-pico-ontvangt-eu1-25m-eu-subsidie-van-het-jtf-eu-BAFtTJyZ.js"),__vite__mapDeps([33,17,2,18])),K2=W()({head:()=>({meta:[{title:"Project pico ontvangt â¬1.25M EU subsidie van het JTF EU â HomeZero blog"},{name:"description",content:"ð£ð¿ð¼ð·ð²ð°ð ð£ð¶ð°ð¼ ð¼ð»ððð®ð»ð´ð â¬ð.ð®ð±ð ðð¨ ððð¯ðð¶ð±ð¶ð² ðð®ð» ðµð²ð ðð§ð ðªðº Vol trots kunnen wij de succesvolle toekenning van ons initiatief Project Pico mededelen, samen met onze partners Chapter en Kobeon bij het Just Transition Fund in de IJmond."},{property:"og:title",content:"Project pico ontvangt â¬1.25M EU subsidie van het JTF EU"},{property:"og:description",content:"ð£ð¿ð¼ð·ð²ð°ð ð£ð¶ð°ð¼ ð¼ð»ððð®ð»ð´ð â¬ð.ð®ð±ð ðð¨ ððð¯ðð¶ð±ð¶ð² ðð®ð» ðµð²ð ðð§ð ðªðº Vol trots kunnen wij de succesvolle toekenning van ons initiatief Project Pico mededelen, samen met onze partners Chapter en Kobeon bij het Just Transition Fund in de IJmond."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/a1b4ac23226b6654.png"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/a1b4ac23226b6654.png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/project-pico-ontvangt-eu1-25m-eu-subsidie-van-het-jtf-eu"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/project-pico-ontvangt-eu1-25m-eu-subsidie-van-het-jtf-eu"}]}),component:ee(Z2,"component")}),F2=()=>te(()=>import("./blog.psychologie-van-de-misschien-klant-twijfel-als-dealbreaker-BF8Oauwu.js"),__vite__mapDeps([34,17,2,18])),Y2=W()({head:()=>({meta:[{title:"De psychologie van de 'misschien-klant': waarom twijfel de grootste dealbreaker is â HomeZero blog"},{name:"description",content:"Ontdek waarom twijfel de grootste barrière is in de energietransitie en hoe je 'misschien-klanten' met digitale tools omzet in succesvolle installaties."},{property:"og:title",content:"De psychologie van de 'misschien-klant': waarom twijfel de grootste dealbreaker is"},{property:"og:description",content:"Ontdek waarom twijfel de grootste barrière is in de energietransitie en hoe je 'misschien-klanten' met digitale tools omzet in succesvolle installaties."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/aa37fcdc37b7e5b6.png"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/aa37fcdc37b7e5b6.png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/psychologie-van-de-misschien-klant-twijfel-als-dealbreaker"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/psychologie-van-de-misschien-klant-twijfel-als-dealbreaker"}]}),component:ee(F2,"component")}),J2=()=>te(()=>import("./blog.rondetafel-sessie-zo-ga-jij-de-marktdip-overwinnen-C9R2VIrh.js"),__vite__mapDeps([35,17,2,18])),Q2=W()({head:()=>
56({meta:[{title:"Rondetafel sessie | Zo ga jij de marktdip overwinnen! â HomeZero blog"},{name:"description",content:"Mike Out CEO HomeZero was tafelheer bij de rondetafel sessie georganiseerd door Chapter.Works."},{property:"og:title",content:"Rondetafel sessie | Zo ga jij de marktdip overwinnen!"},{property:"og:description",content:"Mike Out CEO HomeZero was tafelheer bij de rondetafel sessie georganiseerd door Chapter.Works."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/1f832b6341ae2908.png"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/1f832b6341ae2908.png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/rondetafel-sessie-zo-ga-jij-de-marktdip-overwinnen"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/rondetafel-sessie-zo-ga-jij-de-marktdip-overwinnen"}]}),component:ee(J2,"component")}),X2=()=>te(()=>import("./blog.salescircus-2025-terugblik-eerste-editie-CwD4HiMb.js"),__vite__mapDeps([36,17,2,18])),W2=W()({head:()=>({meta:[{title:"SalesCircus 2025: wat we leerden van ons eerste event | HomeZero Blog"},{name:"description",content:"264 bezoekers, een 8.5 als rapportcijfer en een flink verlies. Wat leerde HomeZero van de eerste editie van SalesCircus?"},{property:"og:title",content:"SalesCircus 2025: wat we leerden van ons eerste event"},{property:"og:description",content:"264 bezoekers, een 8.5 als rapportcijfer en een flink verlies. Wat leerde HomeZero van de eerste editie van SalesCircus?"},{property:"og:image",content:"/images/blog/salescircus-2025-terugblik-eerste-editie.jpg"},{name:"twitter:image",content:"/images/blog/salescircus-2025-terugblik-eerste-editie.jpg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/salescircus-2025-terugblik-eerste-editie"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/salescircus-2025-terugblik-eerste-editie"}]}),component:ee(X2,"component")}),ex=()=>te(()=>import("./blog.samenwerking-tdi500-en-homezero-is-een-feit-C5TXjBLP.js"),__vite__mapDeps([37,17,2,18])),tx=W()({head:()=>({meta:[{title:"Samenwerking Team Duurzaam Installeren en HomeZero is een feit! â HomeZero blog"},{name:"description",content:"HomeZero, het online platform voor het upgraden van woningen, heeft een samenwerking met Team Duurzaam Installeren (TDI) gerealiseerd voor een waanzinnig project."},{property:"og:title",content:"Samenwerking Team Duurzaam Installeren en HomeZero is een feit!"},{property:"og:description",content:"HomeZero, het online platform voor het upgraden van woningen, heeft een samenwerking met Team Duurzaam Installeren (TDI) gerealiseerd voor een waanzinnig project."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/9f17f0000407a093.jpg"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/9f17f0000407a093.jpg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/samenwerking-tdi500-en-homezero-is-een-feit"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/samenwerking-tdi500-en-homezero-is-een-feit"}]}),component:ee(ex,"component")}),nx=()=>te(()=>import("./blog.the-sharing-group-investeert-in-woningverduurzamings-start-up-homezero-SgW_iCE2.js"),__vite__mapDeps([38,17,2,18])),rx=W()({head:()=>({meta:[{title:"The Sharing Group investeert in woningverduurzamings start-up HomeZero â HomeZero blog"},{name:"description",content:"AMSTERDAM, 6 november 2023 - The Sharing Group presenteert met trots haar nieuwste investering in HomeZero. De investering stelt de Haarlemse start-up in staat om hun whitelabel marktplaatsmodel voor woningverduurzaming verder uit te bouwen. HomeZero heeft de eerste klanten inmiddels aangesloten."},{property:"og:title",content:"The Sharing Group investeert in woningverduurzamings start-up HomeZero"},{property:"og:description",content:"AMSTERDAM, 6 november 2023 - The Sharing Group presenteert met trots haar nieuwste investering in HomeZero. De investering stelt de Haarlemse start-up in staat om hun whitelabel marktplaatsmodel voor woningverduurzaming verder uit te bouwen. HomeZero heeft de eerste klanten inmiddels aangesloten."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/ca898247be35f564.jpeg"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/ca898247be35f564.jpeg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/the-sharing-group-investeert-in-woningverduurzamings-start-up-homezero"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/the-sharing-group-investeert-in-woningverduurzamings-start-up-homezero"}]}),component:ee(nx,"component")}),ix=()=>te(()=>
56import("./blog.uitdagingen-bij-verkoop-en-installatie-van-zonnepanelen-warmtepompen-en-isolatie-Dkd1gRVr.js"),__vite__mapDeps([39,17,2,18])),ax=W()({head:()=>({meta:[{title:"Uitdagingen bij verkoop en installatie van zonnepanelen, warmtepompen en isolatie â HomeZero blog"},{name:"description",content:""},{property:"og:title",content:"Uitdagingen bij verkoop en installatie van zonnepanelen, warmtepompen en isolatie"},{property:"og:description",content:""},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/0968f09c8108b01b.jpg"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/0968f09c8108b01b.jpg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/uitdagingen-bij-verkoop-en-installatie-van-zonnepanelen-warmtepompen-en-isolatie"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/uitdagingen-bij-verkoop-en-installatie-van-zonnepanelen-warmtepompen-en-isolatie"}]}),component:ee(ix,"component")}),sx=()=>te(()=>import("./blog.vakbeurs-energie-interviews-over-de-warmtetransitie-met-warmtepompfabrikanten-BOv7OCpo.js"),__vite__mapDeps([40,17,2,18])),ox=W()({head:()=>({meta:[{title:"Vakbeurs Energie | Interviews over de warmtetransitie met warmtepompfabrikanten â HomeZero blog"},{name:"description",content:"HomeZero was op de Vakbeurs Energie. Om te leren en geïnspireerd te raken door alle ontwikkelingen in de markt."},{property:"og:title",content:"Vakbeurs Energie | Interviews over de warmtetransitie met warmtepompfabrikanten"},{property:"og:description",content:"HomeZero was op de Vakbeurs Energie. Om te leren en geïnspireerd te raken door alle ontwikkelingen in de markt."},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/ad3c8fffac07a952.jpg"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/ad3c8fffac07a952.jpg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/vakbeurs-energie-interviews-over-de-warmtetransitie-met-warmtepompfabrikanten"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/vakbeurs-energie-interviews-over-de-warmtetransitie-met-warmtepompfabrikanten"}]}),component:ee(sx,"component")}),lx=()=>te(()=>import("./blog.waarom-homezero-salescircus-organiseert-B55rHZfT.js"),__vite__mapDeps([41,17,2,18])),cx=W()({head:()=>({meta:[{title:"Waarom HomeZero een sales event organiseert in een gevangenis | HomeZero Blog"},{name:"description",content:"Hoe verkoop je een warmtepomp? HomeZero organiseerde SalesCircus om die vraag serieus te nemen â in een gevangenis in Haarlem."},{property:"og:title",content:"Waarom HomeZero een sales event organiseert in een gevangenis"},{property:"og:description",content:"Hoe verkoop je een warmtepomp? HomeZero organiseerde SalesCircus om die vraag serieus te nemen â in een gevangenis in Haarlem."},{property:"og:image",content:"/images/blog/waarom-homezero-salescircus-organiseert.jpg"},{name:"twitter:image",content:"/images/blog/waarom-homezero-salescircus-organiseert.jpg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/waarom-homezero-salescircus-organiseert"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/waarom-homezero-salescircus-organiseert"}]}),component:ee(lx,"component")}),ux=()=>te(()=>import("./blog.web-summit-lisambon-2023-BJDr7QI9.js"),__vite__mapDeps([42,17,2,18])),hx=W()({head:()=>({meta:[{title:"Web Summit Lissabon 2023 â HomeZero blog"},{name:"description",content:"Mike Out was uitgenodigd door Amazon-webdiensten (AWS (Engelstalig)) om Web Summit in Lissabon bij te wonen. Daar is een kleine video gemaakt om te laten zien wat je kunt verwachten als je Europa's grootste tech-evenement ð¥ bezoekt!"},{property:"og:title",content:"Web Summit Lissabon 2023"},{property:"og:description",content:"Mike Out was uitgenodigd door Amazon-webdiensten (AWS (Engelstalig)) om Web Summit in Lissabon bij te wonen. Daar is een kleine video gemaakt om te laten zien wat je kunt verwachten als je Europa's grootste tech-evenement ð¥ bezoekt!"},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/6f58f0c8917dbe0d.jpg"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/6f58f0c8917dbe0d.jpg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/web-summit-lisambon-2023"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/web-summit-lisambon-2023"}]}),component:ee(ux,"component")}),fx=()=>te(()=>import("./blog.welkom-bij-homezero-tech-COx3gAyh.js"),__vite__mapDeps([43,17,2,18])),dx=W()({head:()=>({meta:[{title:"Welkom bij HomeZero Tech â HomeZero blog"},{name:"description",content:"Lancering HomeZero Tech website"},{property:"og:title",content:"Welkom bij HomeZero Tech"},{property:"og:description",content:"Lancering HomeZero Tech website"},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/d88f688ccbf3164f.png"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/d88f688ccbf3164f.png"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/welkom-bij-homezero-tech"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/welkom-bij-homezero-tech"}]}
56),component:ee(fx,"component")}),px=()=>te(()=>import("./blog.welkom-emiel-70874vVl.js"),__vite__mapDeps([44,17,2,18])),mx=W()({head:()=>({meta:[{title:"HomeZero verwelkomt Emiel â HomeZero blog"},{name:"description",content:""},{property:"og:title",content:"HomeZero verwelkomt Emiel"},{property:"og:description",content:""},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/32dd512cd139f77c.jpeg"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/32dd512cd139f77c.jpeg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/welkom-emiel"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/welkom-emiel"}]}),component:ee(px,"component")}),gx=()=>te(()=>import("./blog.welkom-emma-hastjarjanto-B7daSOXV.js"),__vite__mapDeps([45,17,2,18])),vx=W()({head:()=>({meta:[{title:"HomeZero verwelkomt Emma Hastjarjanto | HomeZero Blog"},{name:"description",content:"Emma Hastjarjanto versterkt het HomeZero team als developer. Ze brengt een bak aan ervaring, gezelligheid en power mee tijdens onze snelle groei in Europa."},{property:"og:title",content:"HomeZero verwelkomt Emma Hastjarjanto"},{property:"og:description",content:"Emma Hastjarjanto versterkt het HomeZero team als developer. Ze brengt een bak aan ervaring, gezelligheid en power mee tijdens onze snelle groei in Europa."},{property:"og:image",content:"/images/blog/welkom-emma-hastjarjanto.jpg"},{name:"twitter:image",content:"/images/blog/welkom-emma-hastjarjanto.jpg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/welkom-emma-hastjarjanto"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/welkom-emma-hastjarjanto"}]}),component:ee(gx,"component")}),yx=()=>te(()=>import("./blog.welkom-lisanne-BilG6Ca7.js"),__vite__mapDeps([46,17,2,18])),bx=W()({head:()=>({meta:[{title:"HomeZero verwelkomt Lisanne â HomeZero blog"},{name:"description",content:""},{property:"og:title",content:"HomeZero verwelkomt Lisanne"},{property:"og:description",content:""},{property:"og:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/a0a2ca43a9056efe.jpeg"},{name:"twitter:image",content:"https://ystckkktjcktugqoqxtd.supabase.co/storage/v1/object/public/media/imported/a0a2ca43a9056efe.jpeg"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/blog/welkom-lisanne"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/blog/welkom-lisanne"}]}),component:ee(yx,"component")}),_x=()=>te(()=>import("./use-cases.adviseurs-DJ2TLJqR.js"),__vite__mapDeps([47,17,2])),wx=W()({head:()=>({meta:[{title:"HomeZero voor energieadviseurs â Whitelabel verduurzamingsplatform"},{name:"description",content:"HomeZero biedt energieadviseurs een whitelabel platform om klanten te adviseren, leads te genereren en verduurzamingsprojecten te begeleiden."},{property:"og:title",content:"HomeZero voor energieadviseurs â Whitelabel verduurzamingsplatform"},{property:"og:description",content:"HomeZero biedt energieadviseurs een whitelabel platform om klanten te adviseren, leads te genereren en verduurzamingsprojecten te begeleiden."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use-cases/adviseurs"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/adviseurs"}]}),component:ee(_x,"component")}),Sx=()=>te(()=>import("./use-cases.airco-installateur-DM_i7Ph-.js"),__vite__mapDeps([48,17,2])),Ex=W()({head:()=>({meta:[{title:"HomeZero voor airco installateurs â Van lead tot deal"},{name:"description",content:"Haal meer uit het hoogseizoen met slimme leadflows van HomeZero. Genereer eigen leads voor airco-installaties en converteer sneller van contact tot opdracht."},{property:"og:title",content:"HomeZero voor airco installateurs â Van lead tot deal"},{property:"og:description",content:"Haal meer uit het hoogseizoen met slimme leadflows van HomeZero. Genereer eigen leads voor airco-installaties en converteer sneller van contact tot opdracht."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use
56-cases/airco-installateur"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/airco-installateur"}]}),component:ee(Sx,"component")}),kx=()=>te(()=>import("./use-cases.banken-DYgBNG3m.js"),__vite__mapDeps([49,17,2])),Tx=W()({head:()=>({meta:[{title:"HomeZero voor banken â Financiering naar energiezuinige woningen"},{name:"description",content:"HomeZero helpt banken hun financieringsproducten te koppelen aan verduurzaming. Van oriëntatie tot installatie â met slimme leadflows voor energiezuinige woningen."},{property:"og:title",content:"HomeZero voor banken â Financiering naar energiezuinige woningen"},{property:"og:description",content:"HomeZero helpt banken hun financieringsproducten te koppelen aan verduurzaming. Van oriëntatie tot installatie â met slimme leadflows voor energiezuinige woningen."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use-cases/banken"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/banken"}]}),component:ee(kx,"component")}),Rx=()=>te(()=>import("./use-cases.duurzame-totaal-installateur-DpRa3VJr.js"),__vite__mapDeps([50,17,2])),Ax={"@context":"https://schema.org","@type":"FAQPage","@id":"https://homezero.ai/use-cases/duurzame-totaal-installateur#faq",mainEntity:[{"@type":"Question",name:"Wat kost HomeZero voor duurzame totaal installateurs?",acceptedAnswer:{"@type":"Answer",text:"Wij werken met een Implementatie Fee (vanaf ⬠2.500,-) en een maandelijks bedrag afhankelijk van de grootte van jouw organisatie, het type, hoeveel features en hoeveel services je afneemt. De maandelijkse all-in kosten beginnen bij ⬠750,- per maand voor 2 gebruikers en 3 maatregelen. De meeste klanten hebben de investering er snel uit door een combinatie van meer leads, betere leads en een hogere conversie van leads naar deals."}},{"@type":"Question",name:"Hoe lang duurt de implementatie?",acceptedAnswer:{"@type":"Answer",text:"Afhankelijk van je pakket en de integraties kan je live binnen een paar dagen of een paar weken. Het is een strategisch traject waarin wij ondersteunen om jullie proposities, prijzen, producten en calculaties te configureren in Pico en zo de optimale klantreis te ontwerpen. Ons team begeleidt dit proces en coördineert ook taken zoals integratie(s) met bestaande systemen en de upgrade van jullie site en landingspagina's met onze Website Widget."}},{"@type":"Question",name:"Kan HomeZero meerdere maatregelen tegelijk combineren, zoals warmtepomp én zonnepanelen?",acceptedAnswer:{"@type":"Answer",text:"Ja, Pico is gebouwd om verschillende maatregelen in één klantreis te combineren. Via de energiehub-configurator stelt de klant zelf een compleet verduurzamingsplan samen, en automatische checks zorgen dat de gekozen installaties, bijvoorbeeld warmtepomp en zonnepanelen, goed op elkaar aansluiten."}}]},Ox=W()({head:()=>({meta:[{title:"HomeZero voor duurzame totaal installateurs â Alles op één platform"},{name:"description",content:"Als totaal installateur werk je met warmtepompen, zonnepanelen, thuisbatterijen én isolatie. HomeZero brengt leads, sales en operatie samen op één platform."},{property:"og:title",content:"HomeZero voor duurzame totaal installateurs â Alles op één platform"},{property:"og:description",content:"Als totaal installateur werk je met warmtepompen, zonnepanelen, thuisbatterijen én isolatie. HomeZero brengt leads, sales en operatie samen op één platform."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use-cases/duurzame-totaal-installateur"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/duurzame-totaal-installateur"}],scripts:[{type:"application/ld+json",children:JSON.stringify(Ax)}]}),component:ee(Rx,"component")}),jx=()=>te(()=>import("./use-cases.fabrikanten-Bs61-UtF.js"),__vite__mapDeps([51,17,2])),Cx=W()({head:()=>({meta:[{title:"HomeZero voor fabrikanten â Betere leadsquality via installateurs"},{name:"description",content:"HomeZero helpt fabrikanten hun producten beter te positioneren via installateurs. Meer gekwalificeerde leads, geen ruwe data."},{property:"og:title",content:"HomeZero voor fabrikanten â Betere leadsquality via installateurs"},{property:"og:description",content:"HomeZero helpt fabrikanten hun producten beter te positioneren via installateurs. Meer gekwalificeerde leads, geen ruwe data."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use
56-cases/fabrikanten"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/fabrikanten"}]}),component:ee(jx,"component")}),xx=()=>te(()=>import("./use-cases.groothandels-DfM01cG9.js"),__vite__mapDeps([52,17,2])),zx=W()({head:()=>({meta:[{title:"HomeZero voor groothandels â Meer omzet via jouw installatiekanaal"},{name:"description",content:"HomeZero helpt groothandels meer omzet te genereren via hun installatiekanaal. Slimme leadflows en AI-tools die installateurs helpen meer te verkopen."},{property:"og:title",content:"HomeZero voor groothandels â Meer omzet via jouw installatiekanaal"},{property:"og:description",content:"HomeZero helpt groothandels meer omzet te genereren via hun installatiekanaal. Slimme leadflows en AI-tools die installateurs helpen meer te verkopen."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use-cases/groothandels"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/groothandels"}]}),component:ee(xx,"component")}),Dx=()=>te(()=>import("./use-cases.installatiebedrijven-CiMPep9X.js"),__vite__mapDeps([53,17,2])),Lx={"@context":"https://schema.org","@type":"FAQPage","@id":"https://homezero.ai/use-cases/installatiebedrijven#faq",mainEntity:[{"@type":"Question",name:"Wat kost HomeZero voor installatiebedrijven?",acceptedAnswer:{"@type":"Answer",text:"Wij werken met een Implementatie Fee (vanaf ⬠2.500,-) en een maandelijks bedrag afhankelijk van de grootte van jouw organisatie, het type, hoeveel features en hoeveel services je afneemt. De maandelijkse all-in kosten beginnen bij ⬠750,- per maand voor 2 gebruikers en 3 maatregelen. De meeste klanten hebben de investering er snel uit door een combinatie van meer leads, betere leads en een hogere conversie van leads naar deals."}},{"@type":"Question",name:"Hoe lang duurt de implementatie?",acceptedAnswer:{"@type":"Answer",text:"Afhankelijk van je pakket en de integraties kan je live binnen een paar dagen of een paar weken. Het is een strategisch traject waarin wij ondersteunen om jullie proposities, prijzen, producten en calculaties te configureren in Pico en zo de optimale klantreis te ontwerpen. Ons team begeleidt dit proces en coördineert ook taken zoals integratie(s) met bestaande systemen en de upgrade van jullie site en landingspagina's met onze Website Widget."}},{"@type":"Question",name:"Integreert HomeZero met bestaande systemen zoals Salesdock of Syntess Atrium?",acceptedAnswer:{"@type":"Answer",text:"Ja, Pico integreert met veelgebruikte systemen in de installatiebranche zoals Salesdock en Syntess Atrium, voor een volledig klantbeeld in één omgeving. Daarnaast zijn koppelingen met andere CRM- en ERP-systemen mogelijk via Make.com of eigen webhooks."}}]},Nx=W()({head:()=>({meta:[{title:"HomeZero voor installatiebedrijven â Betere leads, efficiëntere operatie"},{name:"description",content:"HomeZero helpt installatiebedrijven groeien met eigen leads en slimmere sales. Van leadflow tot planning en facturatie op één whitelabel platform."},{property:"og:title",content:"HomeZero voor installatiebedrijven â Betere leads, efficiëntere operatie"},{property:"og:description",content:"HomeZero helpt installatiebedrijven groeien met eigen leads en slimmere sales. Van leadflow tot planning en facturatie op één whitelabel platform."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use-cases/installatiebedrijven"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/installatiebedrijven"}],scripts:[{type:"application/ld+json",children:JSON.stringify(Lx)}]}),component:ee(Dx,"component")}),Mx=()=>te(()=>import("./use-cases.isolatiebedrijf-DctEamUA.js"),__vite__mapDeps([54,17,2])),Ux=W()({head:()=>({meta:[{title:"HomeZero voor isolatiebedrijven â Van inspectie tot opdracht"},{name:"description",content:"HomeZero helpt isolatiebedrijven meer eigen leads te genereren en sneller te converteren. Van woningscan tot getekende offerte op één platform."},{property:"og:title",content:"HomeZero voor isolatiebedrijven â Van inspectie tot opdracht"},{property:"og:description",content:"HomeZero helpt isolatiebedrijven meer eigen leads te genereren en sneller te converteren. Van woningscan tot getekende offerte op één platform."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use
56-cases/isolatiebedrijf"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/isolatiebedrijf"}]}),component:ee(Mx,"component")}),Hx=()=>te(()=>import("./use-cases.thuisbatterij-installateur-CxXoH3PU.js"),__vite__mapDeps([55,17,2])),Px=W()({head:()=>({meta:[{title:"HomeZero voor thuisbatterij installateurs â Businesscase simpel gemaakt"},{name:"description",content:"HomeZero helpt thuisbatterij installateurs de complexe businesscase simpel uit te leggen. Slimme AI-tools en leadflows voor hogere conversie."},{property:"og:title",content:"HomeZero voor thuisbatterij installateurs â Businesscase simpel gemaakt"},{property:"og:description",content:"HomeZero helpt thuisbatterij installateurs de complexe businesscase simpel uit te leggen. Slimme AI-tools en leadflows voor hogere conversie."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use-cases/thuisbatterij-installateur"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/thuisbatterij-installateur"}]}),component:ee(Hx,"component")}),Bx=()=>te(()=>import("./use-cases.verenigingen-CN4KvkZ7.js"),__vite__mapDeps([56,17,2])),Ix=W()({head:()=>({meta:[{title:"HomeZero voor verenigingen â Verduurzaming makkelijk voor leden"},{name:"description",content:"HomeZero helpt verenigingen hun leden te begeleiden bij verduurzaming. Van collectieve inkoop tot individuele installatie op één platform."},{property:"og:title",content:"HomeZero voor verenigingen â Verduurzaming makkelijk voor leden"},{property:"og:description",content:"HomeZero helpt verenigingen hun leden te begeleiden bij verduurzaming. Van collectieve inkoop tot individuele installatie op één platform."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use-cases/verenigingen"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/verenigingen"}]}),component:ee(Bx,"component")}),$x=()=>te(()=>import("./use-cases.vergelijkers-CN1jkXUI.js"),__vite__mapDeps([57,17,2])),qx=W()({head:()=>({meta:[{title:"HomeZero voor vergelijkers â Lever gekwalificeerde leads"},{name:"description",content:"HomeZero helpt vergelijkersplatforms gekwalificeerde leads te leveren aan installateurs. Geen ruwe data, maar geconverteerde klanten."},{property:"og:title",content:"HomeZero voor vergelijkers â Lever gekwalificeerde leads"},{property:"og:description",content:"HomeZero helpt vergelijkersplatforms gekwalificeerde leads te leveren aan installateurs. Geen ruwe data, maar geconverteerde klanten."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use-cases/vergelijkers"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/vergelijkers"}]}),component:ee($x,"component")}),Vx=()=>te(()=>import("./use-cases.verzekeraars-DUcEA69u.js"),__vite__mapDeps([58,17,2])),Gx=W()({head:()=>({meta:[{title:"HomeZero voor verzekeraars â Verduurzaming als deel van je propositie"},{name:"description",content:"HomeZero helpt verzekeraars verduurzaming te integreren in hun propositie. Slimme tools die klanten begeleiden van advies tot installatie."},{property:"og:title",content:"HomeZero voor verzekeraars â Verduurzaming als deel van je propositie"},{property:"og:description",content:"HomeZero helpt verzekeraars verduurzaming te integreren in hun propositie. Slimme tools die klanten begeleiden van advies tot installatie."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use-cases/verzekeraars"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/verzekeraars"}]}),component:ee(Vx,"component")}),Zx=()=>te(()=>import("./use-cases.warmtepomp-installateur-oWUwSn5E.js"),__vite__mapDeps([59,17,2])),Kx={"@context":"https://schema.org","@type":"FAQPage","@id":"https://homezero.ai/use-cases/warmtepomp-installateur#faq",mainEntity:[{"@type":"Question",name:"Wat kost HomeZero voor warmtepomp-installateurs?",acceptedAnswer:{"@type":"Answer",text:"Wij werken met een Implementatie Fee (vanaf ⬠2.500,-) en een maandelijks bedrag afhankelijk van de grootte van jouw organisatie, het type, hoeveel features en hoeveel services je afneemt. De maandelijkse all-in kosten beginnen bij ⬠750,- per maand voor 2 gebruikers en 3 maatregelen. De meeste klanten hebben de investering er snel uit door een combinatie van meer leads, betere leads en een hogere conversie van leads naar deals."}},{"@type":"Question",name:"Hoe lang duurt de implementatie?",acceptedA
56nswer:{"@type":"Answer",text:"Afhankelijk van je pakket en de integraties kan je live binnen een paar dagen of een paar weken. Het is een strategisch traject waarin wij ondersteunen om jullie proposities, prijzen, producten en calculaties te configureren in Pico en zo de optimale klantreis te ontwerpen. Ons team begeleidt dit proces en coördineert ook taken zoals integratie(s) met bestaande systemen en de upgrade van jullie site en landingspagina's met onze Website Widget."}},{"@type":"Question",name:"Integreert HomeZero met ons bestaande CRM/ERP-systeem?",acceptedAnswer:{"@type":"Answer",text:"Ja, Pico integreert met bestaande CRM- en ERP-systemen, standaard via Make.com of eigen webhooks, met triggers voor leads, opdrachten, foto's en statuswijzigingen. We hebben dit al gerealiseerd voor partners op onder meer HubSpot, 2Solar, Zoho en Inventive."}}]},Fx=W()({head:()=>({meta:[{title:"HomeZero voor warmtepomp installateurs â Slimmer verkopen"},{name:"description",content:"Verkoop meer warmtepompen met slimme leadflows en AI-adviestools van HomeZero. Van eerste oriëntatie tot ondertekende offerte op één platform."},{property:"og:title",content:"HomeZero voor warmtepomp installateurs â Slimmer verkopen"},{property:"og:description",content:"Verkoop meer warmtepompen met slimme leadflows en AI-adviestools van HomeZero. Van eerste oriëntatie tot ondertekende offerte op één platform."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use-cases/warmtepomp-installateur"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/warmtepomp-installateur"}],scripts:[{type:"application/ld+json",children:JSON.stringify(Kx)}]}),component:ee(Zx,"component")}),Yx=()=>te(()=>import("./use-cases.zonnepaneel-installateur-DJLai0bK.js"),__vite__mapDeps([60,17,2])),Jx=W()({head:()=>({meta:[{title:"HomeZero voor zonnepaneel installateurs â Meer leads, meer deals"},{name:"description",content:"Genereer meer eigen leads voor zonnepanelen met slimme leadflows en AI-tools. HomeZero helpt zonnepaneel installateurs sneller te converteren van oriëntatie tot installatie."},{property:"og:title",content:"HomeZero voor zonnepaneel installateurs â Meer leads, meer deals"},{property:"og:description",content:"Genereer meer eigen leads voor zonnepanelen met slimme leadflows en AI-tools. HomeZero helpt zonnepaneel installateurs sneller te converteren van oriëntatie tot installatie."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/use-cases/zonnepaneel-installateur"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/use-cases/zonnepaneel-installateur"}]}),component:ee(Yx,"component")}),Qx=()=>te(()=>import("./vacatures.index-UB_glAVL.js"),__vite__mapDeps([61,1,2])),Xx=W()({head:()=>({meta:[{title:"Vacatures bij HomeZero â Werk mee aan de energietransitie"},{name:"description",content:"Werken bij HomeZero? Vanuit de Koepel in Haarlem bouwen we aan de toekomst van verduurzaming. Bekijk onze openstaande vacatures."},{property:"og:title",content:"Vacatures bij HomeZero â Werk mee aan de energietransitie"},{property:"og:description",content:"Werken bij HomeZero? Vanuit de Koepel in Haarlem bouwen we aan de toekomst van verduurzaming. Bekijk onze openstaande vacatures."}],links:[...Fe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/vacatures"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/vacatures"}]}),component:ee(Qx,"component")}),Wx=()=>te(()=>import("./vacatures.customer-success-specialist-dach-BDxksEtZ.js"),__vite__mapDeps([62,17,2])),ez=W()({head:()=>({meta:[{title:"Customer Success Specialist - German Speaking â HomeZero vacancy"},{name:"description",content:"Customer Success Specialist for the DACH market at HomeZero â Haarlem / Hybrid, ~24 hours per week."},{property:"og:title",content:"Customer Success Specialist - German Speaking"},{property:"og:description",content:"Customer Success Specialist for the DACH market at HomeZero â Haarlem / Hybrid, ~24 hours per week."}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/vacatures/customer-success-s
56pecialist-dach"},{rel:"alternate",hreflang:"en",href:"https://homezero.ai/vacatures/customer-success-specialist-dach"},{rel:"alternate",hreflang:"de",href:"https://homezero.ai/vacatures/customer-success-specialist-dach"},{rel:"alternate",hreflang:"fr",href:"https://homezero.ai/vacatures/customer-success-specialist-dach"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/vacatures/customer-success-specialist-dach"}]}),component:ee(Wx,"component")}),tz=()=>te(()=>import("./vacatures.digital-specialist-BprtZrRU.js"),__vite__mapDeps([63,17,2])),nz=W()({head:()=>({meta:[{title:"Digital Specialist (stage) â HomeZero vacature"},{name:"description",content:"Zoek jij een scale-up avontuur waar je impact kan maken in de energie transitie als implementatie specialist?"},{property:"og:title",content:"Digital Specialist (stage)"},{property:"og:description",content:"Zoek jij een scale-up avontuur waar je impact kan maken in de energie transitie als implementatie specialist?"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/vacatures/digital-specialist"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/vacatures/digital-specialist"}]}),component:ee(tz,"component")}),rz=()=>te(()=>import("./vacatures.marketing-stage-Bq4udS6a.js"),__vite__mapDeps([64,17,2])),iz=W()({head:()=>({meta:[{title:"Marketing Specialist (stage) â HomeZero vacature"},{name:"description",content:"Wil jij stage lopen bij een innovatieve start-up? Snel leren in een ondernemende rol? Echt impact maken in de energie transitie? Onderzoek vertalen naar strategie? Kom dan stage lopen bij HomeZero!"},{property:"og:title",content:"Marketing Specialist (stage)"},{property:"og:description",content:"Wil jij stage lopen bij een innovatieve start-up? Snel leren in een ondernemende rol? Echt impact maken in de energie transitie? Onderzoek vertalen naar strategie? Kom dan stage lopen bij HomeZero!"}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/vacatures/marketing-stage"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/vacatures/marketing-stage"}]}),component:ee(rz,"component")}),az=()=>te(()=>import("./vacatures.sales-reseller-partner-dach-Dp2a6_G2.js"),__vite__mapDeps([65,17,2])),sz=W()({head:()=>({meta:[{title:"Independent Sales & Reseller Partner (DACH) â HomeZero"},{name:"description",content:"Partnership opportunity for independent Sales Partners, SaaS Resellers or Business Development Agencies driving HomeZero's expansion in the DACH market."},{property:"og:title",content:"Independent Sales & Reseller Partner (DACH)"},{property:"og:description",content:"Partnership opportunity for independent Sales Partners, SaaS Resellers or Business Development Agencies driving HomeZero's expansion in the DACH market."}],links:[...xe,{rel:"alternate",hreflang:"nl",href:"https://homezero.ai/vacatures/sales-reseller-partner-dach"},{rel:"alternate",hreflang:"en",href:"https://homezero.ai/vacatures/sales-reseller-partner-dach"},{rel:"alternate",hreflang:"de",href:"https://homezero.ai/vacatures/sales-reseller-partner-dach"},{rel:"alternate",hreflang:"fr",href:"https://homezero.ai/vacatures/sales-reseller-partner-dach"},{rel:"alternate",hreflang:"x-default",href:"https://homezero.ai/vacatures/sales-reseller-partner-dach"}]}),component:ee(az,"component")}),oz=()=>te(()=>import("./app.admin.apps.index-DbcrrvzA.js"),__vite__mapDeps([66,13])),lz=W()({component:ee(oz,"component")}),cz=()=>te(()=>import("./app.admin.apps._id-Drc4vw0q.js"),__vite__mapDeps([67,68,13,69])),uz=W()({component:ee(cz,"component")}),hz=()=>te(()=>import("./app.admin.apps.new-BmjR9qMq.js"),__vite__mapDeps([70,68,13,69])),fz=W()({component:ee(hz,"component")}),dz=()=>te(()=>import("./app.admin.c._col.index-DCV_h8dH.js"),__vite__mapDeps([71,13,14])),pz=W()({component:ee(dz,"component")}),mz=()=>te(()=>import("./app.admin.c._col._id-Bgp8PM7O.js"),__vite__mapDeps([72,73,13,69,14])),gz=W()({component:ee(mz,"component")}),vz=()=>te(()=>import("./app.admin.c._col.new-DhzJpxCU.js"),__vite__mapDeps([74,73,13,69,14])),yz=W()({component:ee(vz,"component")}),bz=BC.update({id:"/algemene-voorwaarden",path:"/algemene-voorwaarden",getParentRoute:()=>oe}),dc=$C.update({id:"/app",path:"/app",getParentRoute:()=>oe}),_z=VC.update({id:"/assessment",path:"/assessment",getParentRoute:()=>oe}),wz=ZC.update({id:"/b2b2c",path:"/b2b2c",getParentRoute:()=>oe}),Sz=FC.update({id:"/b2b2cs",path:"/b2b2cs",getParentRoute:()=>oe}),Ez=JC.update({id:"/cookie-statement",path:"/cookie-statement",getParentRoute:()=>oe}),kz=XC.update({id:"/datenschutzerklarung",path:"/datenschutzerklarung",getParentRoute:()=>oe}),Tz=e2.update({id:"/impressum",path:"/impressum",getParentRoute:()=>oe}),Rz=n2.update({id:"/over-ons",path:"/over-ons",getParentRoute:()=>oe}),Az=i2.update({id:"/privacy-policy",path:"/privacy-policy",getParentRoute:()=>oe}),Oz=s2.update({id:"/project-pico",path:"/project-pico",getParentRoute:()=>oe}),jz=l2.update({id:"/unsubscribe",path:"/unsubscribe",getParentRoute:()=>oe}),Cz=u2.update({id:"/",path:"/",getParentRoute:()=>dc}),bi=f2.update({id:"/admin",path:"/admin",getParentRoute:()=>dc}),xz=p2.update({id:"/login",path:"/login",getParentRoute:()=>dc}),zz=v2.update({id:"/blog/",path:"/blog/",getParentRoute:()=>oe}),Dz=b2.update({id:"/blog/conversational-intake-koper-intentie",path:"/blog/conversational-intake-koper-intentie",getParentRoute:()=>oe}),Lz=w2.update({id:"/blog/crm-thuisbatterij-specialist-platform-pico-vs-standaard-software",path:"/blog/crm-thuisbatterij-specialist-platform-pico-vs-standaard-software",getParentRoute:()=>oe}),Nz=E2.update({id:"/blog/data-gedreven-groei-installatiebedrijf-platform-pico",path:"/blog/data-gedreven-groei-installatiebedrijf-platform-pico",getParentRoute:()=>oe}),Mz=T2.update({id:"/blog/de-visie-van-homezero-tech",path:"/blog/de-visie-van-homezero-tech",getParentRoute:()=>oe}),Uz=A2.update({id:"/blog/de-woningen-van-jouw-klanten-verduurzamen",path:"/blog/de-woningen-van-jouw-klanten-verduurzamen",getParentRoute:()=>oe}),Hz=j2.update({id:"/blog/hoe-bouw-je-een-startup-in-een-dag",path:"/blog/hoe-bouw-je-een-startup-in-een-dag",getParentRoute:()=>oe}),Pz=x2.update({id:"/blog/hoe-kunnen-wij-ai-inzetten-voor-advies",path:"/blog/hoe-kunnen-wij-ai-inzetten-voor-advies",getParentRoute:()=>oe}),Bz=D2.update({id:"/blog/homezero-haalt-investering-op-bij-kairos-voor-europese
56-groei",path:"/blog/homezero-haalt-investering-op-bij-kairos-voor-europese-groei",getParentRoute:()=>oe}),Iz=N2.update({id:"/blog/homezero-naar-de-solar-solutions-beurs",path:"/blog/homezero-naar-de-solar-solutions-beurs",getParentRoute:()=>oe}),$z=U2.update({id:"/blog/homezero-naar-de-vsk-berus",path:"/blog/homezero-naar-de-vsk-berus",getParentRoute:()=>oe}),qz=P2.update({id:"/blog/homezero-op-de-webwinkel-vakdagen-met-bijbehorende-salestips",path:"/blog/homezero-op-de-webwinkel-vakdagen-met-bijbehorende-salestips",getParentRoute:()=>oe}),Vz=I2.update({id:"/blog/homezero-tech-voor-installateurs",path:"/blog/homezero-tech-voor-installateurs",getParentRoute:()=>oe}),Gz=q2.update({id:"/blog/huisscan-ari-oplossing-voor-schouw-knelpunt-installateur",path:"/blog/huisscan-ari-oplossing-voor-schouw-knelpunt-installateur",getParentRoute:()=>oe}),Zz=G2.update({id:"/blog/klant-niet-bezig-met-duurzaamheid-verkoop-faciliteren",path:"/blog/klant-niet-bezig-met-duurzaamheid-verkoop-faciliteren",getParentRoute:()=>oe}),Kz=K2.update({id:"/blog/project-pico-ontvangt-eu1-25m-eu-subsidie-van-het-jtf-eu",path:"/blog/project-pico-ontvangt-eu1-25m-eu-subsidie-van-het-jtf-eu",getParentRoute:()=>oe}),Fz=Y2.update({id:"/blog/psychologie-van-de-misschien-klant-twijfel-als-dealbreaker",path:"/blog/psychologie-van-de-misschien-klant-twijfel-als-dealbreaker",getParentRoute:()=>oe}),Yz=Q2.update({id:"/blog/rondetafel-sessie-zo-ga-jij-de-marktdip-overwinnen",path:"/blog/rondetafel-sessie-zo-ga-jij-de-marktdip-overwinnen",getParentRoute:()=>oe}),Jz=W2.update({id:"/blog/salescircus-2025-terugblik-eerste-editie",path:"/blog/salescircus-2025-terugblik-eerste-editie",getParentRoute:()=>oe}),Qz=tx.update({id:"/blog/samenwerking-tdi500-en-homezero-is-een-feit",path:"/blog/samenwerking-tdi500-en-homezero-is-een-feit",getParentRoute:()=>oe}),Xz=rx.update({id:"/blog/the-sharing-group-investeert-in-woningverduurzamings-start-up-homezero",path:"/blog/the-sharing-group-investeert-in-woningverduurzamings-start-up-homezero",getParentRoute:()=>oe}),Wz=ax.update({id:"/blog/uitdagingen-bij-verkoop-en-installatie-van-zonnepanelen-warmtepompen-en-isolatie",path:"/blog/uitdagingen-bij-verkoop-en-installatie-van-zonnepanelen-warmtepompen-en-isolatie",getParentRoute:()=>oe}),eD=ox.update({id:"/blog/vakbeurs-energie-interviews-over-de-warmtetransitie-met-warmtepompfabrikanten",path:"/blog/vakbeurs-energie-interviews-over-de-warmtetransitie-met-warmtepompfabrikanten",getParentRoute:()=>oe}),tD=cx.update({id:"/blog/waarom-homezero-salescircus-organiseert",path:"/blog/waarom-homezero-salescircus-organiseert",getParentRoute:()=>oe}),nD=hx.update({id:"/blog/web-summit-lisambon-2023",path:"/blog/web-summit-lisambon-2023",getParentRoute:()=>oe}),rD=dx.update({id:"/blog/welkom-bij-homezero-tech",path:"/blog/welkom-bij-homezero-tech",getParentRoute:()=>oe}),iD=mx.update({id:"/blog/welkom-emiel",path:"/blog/welkom-emiel",getParentRoute:()=>oe}),aD=vx.update({id:"/blog/welkom-emma-hastjarjanto",path:"/blog/welkom-emma-hastjarjanto",getParentRoute:()=>oe}),sD=bx.update({id:"/blog/welkom-lisanne",path:"/blog/welkom-lisanne",getParentRoute:()=>oe}),oD=wx.update({id:"/use-cases/adviseurs",path:"/use-cases/adviseurs",getParentRoute:()=>oe}),lD=Ex.update({id:"/use-cases/airco-installateur",path:"/use-cases/airco-installateur",getParentRoute:()=>oe}),cD=Tx.update({id:"/use-cases/banken",path:"/use-cases/banken",getParentRoute:()=>oe}),uD=Ox.update({id:"/use-cases/duurzame-totaal-installateur",path:"/use-cases/duurzame-totaal-installateur",getParentRoute:()=>oe}),hD=Cx.update({id:"/use-cases/fabrikanten",path:"/use-cases/fabrikanten",getParentRoute:()=>oe}),fD=zx.update({id:"/use-cases/groothandels",path:"/use-cases/groothandels",getParentRoute:()=>oe}),dD=Nx.update({id:"/use-cases/installatiebedrijven",path:"/use-cases/installatiebedrijven",getParentRoute:()=>oe}),pD=Ux.update({id:"/use-cases/isolatiebedrijf",path:"/use-cases/isolatiebedrijf",getParentRoute:()=>oe}),mD=Px.update({id:"/use-cases/thuisbatterij-installateur",path:"/use-cases/thuisbatterij-installateur",getParentRoute:()=>oe}),gD=Ix.update({id:"/use-cases/verenigingen",path:"/use-cases/verenigingen",getParentRoute:()=>oe}),vD=qx.update({id:"/use-cases/vergelijkers",path:"/use-cases/vergelijkers",getParentRoute:()=>oe}),yD=Gx.update({id:"/use-cases/verzekeraars",path:"/use-cases/verzekeraars",getParentRoute:()=>oe}),bD=Fx.update({id:"/use-cases/warmtepomp-installateur",path:"/use-cases/warmtepomp-installateur",getParentRoute:()=>oe}),_D=Jx.update({id:"/use-cases/zonnepaneel-installateur",path:"/use-cases/zonnepaneel-installateur",getParentRoute:()=>oe}),wD=Xx.update({id:"/vacatures/",path:"/vacatures/",getParentRoute:()=>oe}
56),SD=ez.update({id:"/vacatures/customer-success-specialist-dach",path:"/vacatures/customer-success-specialist-dach",getParentRoute:()=>oe}),ED=nz.update({id:"/vacatures/digital-specialist",path:"/vacatures/digital-specialist",getParentRoute:()=>oe}),kD=iz.update({id:"/vacatures/marketing-stage",path:"/vacatures/marketing-stage",getParentRoute:()=>oe}),TD=sz.update({id:"/vacatures/sales-reseller-partner-dach",path:"/vacatures/sales-reseller-partner-dach",getParentRoute:()=>oe}),RD=lz.update({id:"/apps/",path:"/apps/",getParentRoute:()=>bi}),AD=uz.update({id:"/apps/$id",path:"/apps/$id",getParentRoute:()=>bi}),OD=fz.update({id:"/apps/new",path:"/apps/new",getParentRoute:()=>bi}),jD=pz.update({id:"/c/$col/",path:"/c/$col/",getParentRoute:()=>bi}),CD=gz.update({id:"/c/$col/$id",path:"/c/$col/$id",getParentRoute:()=>bi}),xD=yz.update({id:"/c/$col/new",path:"/c/$col/new",getParentRoute:()=>bi}),zD={AppAdminAppsIdRoute:AD,AppAdminAppsNewRoute:OD,AppAdminAppsIndexRoute:RD,AppAdminCColIdRoute:CD,AppAdminCColNewRoute:xD,AppAdminCColIndexRoute:jD},DD=bi._addFileChildren(zD),LD={AppAdminRoute:DD,AppLoginRoute:xz,AppIndexRoute:Cz},ND=dc._addFileChildren(LD),MD={AlgemeneVoorwaardenRoute:bz,AppRoute:ND,AssessmentRoute:_z,B2b2cRoute:wz,B2b2csRoute:Sz,CookieStatementRoute:Ez,DatenschutzerklarungRoute:kz,ImpressumRoute:Tz,OverOnsRoute:Rz,PrivacyPolicyRoute:Az,ProjectPicoRoute:Oz,UnsubscribeRoute:jz,BlogConversationalIntakeKoperIntentieRoute:Dz,BlogCrmThuisbatterijSpecialistPlatformPicoVsStandaardSoftwareRoute:Lz,BlogDataGedrevenGroeiInstallatiebedrijfPlatformPicoRoute:Nz,BlogDeVisieVanHomezeroTechRoute:Mz,BlogDeWoningenVanJouwKlantenVerduurzamenRoute:Uz,BlogHoeBouwJeEenStartupInEenDagRoute:Hz,BlogHoeKunnenWijAiInzettenVoorAdviesRoute:Pz,BlogHomezeroHaaltInvesteringOpBijKairosVoorEuropeseGroeiRoute:Bz,BlogHomezeroNaarDeSolarSolutionsBeursRoute:Iz,BlogHomezeroNaarDeVskBerusRoute:$z,BlogHomezeroOpDeWebwinkelVakdagenMetBijbehorendeSalestipsRoute:qz,BlogHomezeroTechVoorInstallateursRoute:Vz,BlogHuisscanAriOplossingVoorSchouwKnelpuntInstallateurRoute:Gz,BlogKlantNietBezigMetDuurzaamheidVerkoopFaciliterenRoute:Zz,BlogProjectPicoOntvangtEu125mEuSubsidieVanHetJtfEuRoute:Kz,BlogPsychologieVanDeMisschienKlantTwijfelAlsDealbreakerRoute:Fz,BlogRondetafelSessieZoGaJijDeMarktdipOverwinnenRoute:Yz,BlogSalescircus2025TerugblikEersteEditieRoute:Jz,BlogSamenwerkingTdi500EnHomezeroIsEenFeitRoute:Qz,BlogTheSharingGroupInvesteertInWoningverduurzamingsStartUpHomezeroRoute:Xz,BlogUitdagingenBijVerkoopEnInstallatieVanZonnepanelenWarmtepompenEnIsolatieRoute:Wz,BlogVakbeursEnergieInterviewsOverDeWarmtetransitieMetWarmtepompfabrikantenRoute:eD,BlogWaaromHomezeroSalescircusOrganiseertRoute:tD,BlogWebSummitLisambon2023Route:nD,BlogWelkomBijHomezeroTechRoute:rD,BlogWelkomEmielRoute:iD,BlogWelkomEmmaHastjarjantoRoute:aD,BlogWelkomLisanneRoute:sD,UseCasesAdviseursRoute:oD,UseCasesAircoInstallateurRoute:lD,UseCasesBankenRoute:cD,UseCasesDuurzameTotaalInstallateurRoute:uD,UseCasesFabrikantenRoute:hD,UseCasesGroothandelsRoute:fD,UseCasesInstallatiebedrijvenRoute:dD,UseCasesIsolatiebedrijfRoute:pD,UseCasesThuisbatterijInstallateurRoute:mD,UseCasesVerenigingenRoute:gD,UseCasesVergelijkersRoute:vD,UseCasesVerzekeraarsRoute:yD,UseCasesWarmtepompInstallateurRoute:bD,UseCasesZonnepaneelInstallateurRoute:_D,VacaturesCustomerSuccessSpecialistDachRoute:SD,VacaturesDigitalSpecialistRoute:ED,VacaturesMarketingStageRoute:kD,VacaturesSalesResellerPartnerDachRoute:TD,BlogIndexRoute:zz,VacaturesIndexRoute:wD},UD=oe._addFileChildren(MD),HD=()=>{const t=new _C;return BA({routeTree:UD,context:{queryClient:t},scrollRestoration:!0,defaultPreloadStaleTime:0})};async function PD(){const t=await HD();let e;if(Ay){const i=await Ay.getOptions();i.serializationAdapters=i.serializationAdapters??[],window.__TSS_START_OPTIONS__=i,e=i.serializationAdapters,t.options.defaultSsr=i.defaultSsr}else e=[],window.__TSS_START_OPTIONS__={serializationAdapters:e};return e.push(FR),t.options.serializationAdapters&&e.push(...t.options.serializationAdapters),t.update({basepath:"",serializationAdapters:e}),t.stores.ids.get().length||await PE(t),t}var BD=PD;function ID(){return BD().finally(()=>window.$_TSR?.h())}var tf;function $D(){return tf||(tf=ID()),H.jsx(JR,{promise:tf,children:t=>H.jsx(qA,{router:t})})}re.startTransition(()=>{LS.hydrateRoot(document,H.jsx(re.StrictMode,{children:H.jsx($D,{})}))});export{Qf as L,Sb as O,qD as R,gb as a,kt as b,Tn as c,mA as d,uz as e,pz as f,gz as g,yz as h,H as
56j,re as r,Vj as s,mb as u};
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.