vendor: 8,118 bytes, line 1
1function sj(n,s){for(var i=0;i<s.length;i++){const l=s[i];if(typeof l!="string"&&!Array.isArray(l)){for(const d in l)if(d!=="default"&&!(d in n)){const m=Object.getOwnPropertyDescriptor(l,d);m&&Object.defineProperty(n,d,m.get?m:{enumerable:!0,get:()=>l[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))l(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function i(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function l(d){if(d.ep)return;d.ep=!0;const m=i(d);fetch(d.href,m)}})();function Ki(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Mu={exports:{}},Di={};var Ux;function ij(){if(Ux)return Di;Ux=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function i(l,d,m){var p=null;if(m!==void 0&&(p=""+m),d.key!==void 0&&(p=""+d.key),"key"in d){m={};for(var g in d)g!=="key"&&(m[g]=d[g])}else m=d;return d=m.ref,{$$typeof:n,type:l,key:p,ref:d!==void 0?d:null,props:m}}return Di.Fragment=s,Di.jsx=i,Di.jsxs=i,Di}var Fx;function oj(){return Fx||(Fx=1,Mu.exports=ij()),Mu.exports}var t=oj(),Au={exports:{}},Pi={},Tu={exports:{}},Cu={};var Bx;function lj(){return Bx||(Bx=1,(function(n){function s(T,F){var B=T.length;T.push(F);e:for(;0<B;){var ie=B-1>>>1,M=T[ie];if(0<d(M,F))T[ie]=F,T[B]=M,B=ie;else break e}}function i(T){return T.length===0?null:T[0]}function l(T){if(T.length===0)return null;var F=T[0],B=T.pop();if(B!==F){T[0]=B;e:for(var ie=0,M=T.length,Y=M>>>1;ie<Y;){var ne=2*(ie+1)-1,ae=T[ne],se=ne+1,J=T[se];if(0>d(ae,B))se<M&&0>d(J,ae)?(T[ie]=J,T[se]=B,ie=se):(T[ie]=ae,T[ne]=B,ie=ne);else if(se<M&&0>d(J,B))T[ie]=J,T[se]=B,ie=se;else break e}}return F}function d(T,F){var B=T.sortIndex-F.sortIndex;return B!==0?B:T.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var p=Date,g=p.now();n.unstable_now=function(){return p.now()-g}}var f=[],h=[],x=1,y=null,v=3,S=!1,k=!1,N=!1,A=!1,E=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function P(T){for(var F=i(h);F!==null;){if(F.callback===null)l(h);else if(F.startTime<=T)l(h),F.sortIndex=F.expirationTime,s(f,F);else break;F=i(h)}}function q(T){if(N=!1,P(T),!k)if(i(f)!==null)k=!0,V||(V=!0,fe());else{var F=i(h);F!==null&&G(q,F.startTime-T)}}var V=!1,Z=-1,K=5,re=-1;function le(){return A?!0:!(n.unstable_now()-re<K)}function he(){if(A=!1,V){var T=n.unstable_now();re=T;var F=!0;try{e:{k=!1,N&&(N=!1,L(Z),Z=-1),S=!0;var B=v;try{t:{for(P(T),y=i(f);y!==null&&!(y.expirationTime>T&&le());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,v=y.priorityLevel;var M=ie(y.expirationTime<=T);if(T=n.unstable_now(),typeof M=="function"){y.callback=M,P(T),F=!0;break t}y===i(f)&&l(f),P(T)}else l(f);y=i(f)}if(y!==null)F=!0;else{var Y=i(h);Y!==null&&G(q,Y.startTime-T),F=!1}}break e}finally{y=null,v=B,S=!1}F=void 0}}finally{F?fe():V=!1}}}var fe;if(typeof H=="function")fe=function(){H(he)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,te=ye.port2;ye.port1.onmessage=he,fe=function(){te.postMessage(null)}}else fe=function(){E(he,0)};function G(T,F){Z=E(function(){T(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(T){T.callback=null},n.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<T?Math.floor(1e3/T):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(T){switch(v){case 1:case 2:case 3:var F=3;break;default:F=v}var B=v;v=F;try{return T()}finally{v=B}},n.unstable_requestPaint=function(){A=!0},n.unstable_runWithPriority=function(T,F){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var B=v;v=T;try{return F()}finally{v=B}},n.unstable_scheduleCallback=function(T,F,B){var ie=n.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?ie+B:ie):B=ie,T){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=B+M,T={id:x++,callback:F,priorityLevel:T,startTime:B,expirationTime:M,sortIndex:-1},B>ie?(T.sortIndex=B,s(h,T),i(f)===null&&T===i(h)&&(N?(L(Z),Z=-1):N=!0,G(q,B-ie))):(T.sortIndex=M,s(f,T),k||S||(k=!0,V||(V=!0,fe()))),T},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(T){var F=v;return function(){var B=v;v=F;try{return T.apply(this,arguments)}finally{v=B}}}})(Cu)),Cu}var qx;function cj(){return qx||(qx=1,Tu.exports=lj()),Tu.exports}var Eu={exports:{}},Te={};var Wx;function dj(){if(Wx)return Te;Wx=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=y&&M[y]||M["@@iterator"],typeof M=="function"?M:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,N={};function A(M,Y,ne){this.props=M,this.context=Y,this.refs=N,this.updater=ne||S}A.prototype.isReactComponent={},A.prototype.setState=function(M,Y){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,Y,"setState")},A.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function E(){}E.prototype=A.prototype;function L(M,Y,ne){this.props=M,this.context=Y,this.refs=N,this.updater=ne||S}var H=L.prototype=new E;H.constructor=L,k(H,A.prototype),H.isPureReactComponent=!0;var P=Array.isArray,q={H:null,A:null,T:null,S:null,V:null},V=Object.prototype.hasOwnProperty;function Z(M,Y,ne,ae,se,J){return ne=J.ref,{$$typeof:n,type:M,key:Y,ref:ne!==void 0?ne:null,props:J}}function K(M,Y){return Z(M.type,Y,void 0,void 0,void 0,M.props)}function re(M){return typeof M=="object"&&M!==null&&M.$$typeof===n}function le(M){var Y={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(ne){return Y[ne]})}var he=/\/+/g;function fe(M,Y){return typeof M=="object"&&M!==null&&M.key!=null?le(""+M.key):Y.toString(36)}function ye(){}function te(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(ye,ye):(M.status="pending",M.then(function(Y){M.status==="pending"&&(M.status="fulfilled",M.value=Y)},function(Y){M.status==="pending"&&(M.status="rejected",M.reason=Y)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function G(M,Y,ne,ae,se){var J=typeof M;(J==="undefined"||J==="boolean")&&(M=null);var ee=!1;if(M===null)ee=!0;else switch(J){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(M.$$typeof){case n:case s:ee=!0;break;case x:return ee=M._init,G(ee(M._payload),Y,ne,ae,se)}}if(ee)return se=se(M),ee=ae===""?"."+fe(M,0):ae,P(se)?(ne="",ee!=null&&(ne=ee.replace(he,"$&/")+"/"),G(se,Y,ne,"",function(De){return De})):se!=null&&(re(se)&&(se=K(se,ne+(se.key==null||M&&M.key===se.ke
vendor: 17,673 bytes, line 1
1y?"":(""+se.key).replace(he,"$&/")+"/")+ee)),Y.push(se)),1;ee=0;var Ae=ae===""?".":ae+":";if(P(M))for(var we=0;we<M.length;we++)ae=M[we],J=Ae+fe(ae,we),ee+=G(ae,Y,ne,J,se);else if(we=v(M),typeof we=="function")for(M=we.call(M),we=0;!(ae=M.next()).done;)ae=ae.value,J=Ae+fe(ae,we++),ee+=G(ae,Y,ne,J,se);else if(J==="object"){if(typeof M.then=="function")return G(te(M),Y,ne,ae,se);throw Y=String(M),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ee}function T(M,Y,ne){if(M==null)return M;var ae=[],se=0;return G(M,ae,"","",function(J){return Y.call(ne,J,se++)}),ae}function F(M){if(M._status===-1){var Y=M._result;Y=Y(),Y.then(function(ne){(M._status===0||M._status===-1)&&(M._status=1,M._result=ne)},function(ne){(M._status===0||M._status===-1)&&(M._status=2,M._result=ne)}),M._status===-1&&(M._status=0,M._result=Y)}if(M._status===1)return M._result.default;throw M._result}var B=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)};function ie(){}return Te.Children={map:T,forEach:function(M,Y,ne){T(M,function(){Y.apply(this,arguments)},ne)},count:function(M){var Y=0;return T(M,function(){Y++}),Y},toArray:function(M){return T(M,function(Y){return Y})||[]},only:function(M){if(!re(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Te.Component=A,Te.Fragment=i,Te.Profiler=d,Te.PureComponent=L,Te.StrictMode=l,Te.Suspense=f,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Te.__COMPILER_RUNTIME={__proto__:null,c:function(M){return q.H.useMemoCache(M)}},Te.cache=function(M){return function(){return M.apply(null,arguments)}},Te.cloneElement=function(M,Y,ne){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var ae=k({},M.props),se=M.key,J=void 0;if(Y!=null)for(ee in Y.ref!==void 0&&(J=void 0),Y.key!==void 0&&(se=""+Y.key),Y)!V.call(Y,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&Y.ref===void 0||(ae[ee]=Y[ee]);var ee=arguments.length-2;if(ee===1)ae.children=ne;else if(1<ee){for(var Ae=Array(ee),we=0;we<ee;we++)Ae[we]=arguments[we+2];ae.children=Ae}return Z(M.type,se,void 0,void 0,J,ae)},Te.createContext=function(M){return M={$$typeof:p,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:m,_context:M},M},Te.createElement=function(M,Y,ne){var ae,se={},J=null;if(Y!=null)for(ae in Y.key!==void 0&&(J=""+Y.key),Y)V.call(Y,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(se[ae]=Y[ae]);var ee=arguments.length-2;if(ee===1)se.children=ne;else if(1<ee){for(var Ae=Array(ee),we=0;we<ee;we++)Ae[we]=arguments[we+2];se.children=Ae}if(M&&M.defaultProps)for(ae in ee=M.defaultProps,ee)se[ae]===void 0&&(se[ae]=ee[ae]);return Z(M,J,void 0,void 0,null,se)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(M){return{$$typeof:g,render:M}},Te.isValidElement=re,Te.lazy=function(M){return{$$typeof:x,_payload:{_status:-1,_result:M},_init:F}},Te.memo=function(M,Y){return{$$typeof:h,type:M,compare:Y===void 0?null:Y}},Te.startTransition=function(M){var Y=q.T,ne={};q.T=ne;try{var ae=M(),se=q.S;se!==null&&se(ne,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(ie,B)}catch(J){B(J)}finally{q.T=Y}},Te.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Te.use=function(M){return q.H.use(M)},Te.useActionState=function(M,Y,ne){return q.H.useActionState(M,Y,ne)},Te.useCallback=function(M,Y){return q.H.useCallback(M,Y)},Te.useContext=function(M){return q.H.useContext(M)},Te.useDebugValue=function(){},Te.useDeferredValue=function(M,Y){return q.H.useDeferredValue(M,Y)},Te.useEffect=function(M,Y,ne){var ae=q.H;if(typeof ne=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(M,Y)},Te.useId=function(){return q.H.useId()},Te.useImperativeHandle=function(M,Y,ne){return q.H.useImperativeHandle(M,Y,ne)},Te.useInsertionEffect=function(M,Y){return q.H.useInsertionEffect(M,Y)},Te.useLayoutEffect=function(M,Y){return q.H.useLayoutEffect(M,Y)},Te.useMemo=function(M,Y){return q.H.useMemo(M,Y)},Te.useOptimistic=function(M,Y){return q.H.useOptimistic(M,Y)},Te.useReducer=function(M,Y,ne){return q.H.useReducer(M,Y,ne)},Te.useRef=function(M){return q.H.useRef(M)},Te.useState=function(M){return q.H.useState(M)},Te.useSyncExternalStore=function(M,Y,ne){return q.H.useSyncExternalStore(M,Y,ne)},Te.useTransition=function(){return q.H.useTransition()},Te.version="19.1.0",Te}var Ix;function Ql(){return Ix||(Ix=1,Eu.exports=dj()),Eu.exports}var Hu={exports:{}},_t={};var Vx;function uj(){if(Vx)return _t;Vx=1;var n=Ql();function s(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)h+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(s(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(f,h,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:y==null?null:""+y,children:f,containerInfo:h,implementation:x}}var p=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return _t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,_t.createPortal=function(f,h){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(s(299));return m(f,h,null,x)},_t.flushSync=function(f){var h=p.T,x=l.p;try{if(p.T=null,l.p=2,f)return f()}finally{p.T=h,l.p=x,l.d.f()}},_t.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,l.d.C(f,h))},_t.prefetchDNS=function(f){typeof f=="string"&&l.d.D(f)},_t.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var x=h.as,y=g(x,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;x==="style"?l.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:S}):x==="script"&&l.d.X(f,{crossOrigin:y,integrity:v,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},_t.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var x=g(h.as,h.crossOrigin);l.d.M(f,{crossOrigin:x,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&l.d.M(f)},_t.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var x=h.as,y=g(x,h.crossOrigin);l.d.L(f,x,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},_t.preloadModule=function(f,h){if(typeof f=="string")if(h){var x=g(h.as,h.crossOrigin);l.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:x,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else l.d.m(f)},_t.requestFormReset=function(f){l.d.r(f)},_t.unstable_batchedUpdates=function(f,h){return f(h)},_t.useFormState=function(f,h,x){return p.H.useFormState(f,h,x)},_t.useFormStatus=function(){return p.H.useHostTransitionStatus()},_t.version="19.1.0",_t}var Gx;function wb(){if(Gx)return Hu.exports;Gx=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),Hu.exports=uj(),Hu.exports}var Yx;function mj(){if(Yx)return Pi;Yx=1;var n=cj(),s=Ql(),i=wb();function l(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)a+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var a=e,r=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(r=a.return),e=a.return;while(e)}return a.tag===3?r:null}function p(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function g(e){if(m(e)!==e)throw Error(l(188))}function f(e){var a=e.alternate;if(!a){if(a=m(e),a===null)throw Error(l(188));return a!==e?null:e}for(var r=e,o=a;;){var c=r.return;if(c===null)break;var u=c.alternate;if(u===null){if(o=c.return,o!==null){r=o;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===r)return g(c),e;if(u===o)return g(c),a;u=u.sibling}throw Error(l(188))}if(r.return!==o.return)r=c,o=u;else{for(var b=!1,j=c.child;j;){if(j===r){b=!0,r=c,o=u;break}if(j===o){b=!0,o=c,r=u;break}j=j.sibling}if(!b){for(j=u.child;j;){if(j===r){b=!0,r=u,o=c;break}if(j===o){b=!0,o=u,r=c;break}j=j.sibling}if(!b)throw Error(l(189))}}if(r.alternate!==o)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?e:a}function h(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=h(e),a!==null)return a;e=e.sibling}return null}var x=Object.assign,y=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),L=Symbol.for("react.consumer"),H=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Symbol.for("react.client.reference");function te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case A:return"Profiler";case N:return"StrictMode";case q:return"Suspense";case V:return"SuspenseList";case re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case H:return(e.displayName||"Context")+".Provider";case L:return(e._context.displayName||"Context")+".Consumer";case P:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return a=e.displayName||null,a!==null?a:te(e.type)||"Memo";case K:a=e._payload,e=e._init;try{return te(e(a))}catch{}}return null}var G=Array.isArray,T=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},ie=[],M=-1;function Y(e){return{current:e}}function ne(e){0>M||(e.current=ie[M],ie[M]=null,M--)}function ae(e,a){M++,ie[M]=e.current,e.current=a}var se=Y(null),J=Y(null),ee=Y(null),Ae=Y(null);function we(e,a){switch(ae(ee,a),ae(J,e),ae(se,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?hx(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=hx(a),e=fx(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ne(se),ae(se,e)}function De(){ne(se),ne(J),ne(ee)}function ht(e){e.memoizedState!==null&&ae(Ae,e);var a=se.current,r=fx(a,e.type);a!==r&&(ae(J,e),ae(se,r))}function gt(e){J.current===e&&(ne(se),ne(J)),Ae.current===e&&(ne(Ae),Ti._currentValue=B)}var Tt=Object.prototype.hasOwnProperty,z=n.unstable_scheduleCallback,Ne=n.unstable_cancelCallback,We=n.unstable_shouldYield,qt=n.unstable_requestPaint,Ye=n.unstable_now,vn=n.unstable_getCurrentPriorityLevel,zs=n.unstable_ImmediatePriority,tr=n.unstable_UserBlockingPriority,ar=n.unstable_NormalPriority,eo=n.unstable_LowPriority,to=n.unstable_IdlePriority,pc=n.log,ao=n.unstable_setDisableYieldValue,wn=null,Ct=null;function La(e){if(typeof pc=="function"&&ao(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(wn,e)}catch{}}var nt=Math.clz32?Math.clz32:no,Ma=Math.log,xc=Math.LN2;function no(e){return e>>>=0,e===0?32:31-(Ma(e)/xc|0)|0}var Pr=256,nr=4194304;function Qa(e){var a=e&42;if(a!==0)return a;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Rr(e,a,r){var o=e.pendingLanes;if(o===0)return 0;var c=0,u=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var j=o&134217727;return j!==0?(o=j&~u,o!==0?c=Qa(o):(b&=j,b!==0?c=Qa(b):r||(r=j&~e,r!==0&&(c=Qa(r))))):(j=o&~u,j!==0?c=Qa(j):b!==0?c=Qa(b):r||(r=o&~e,r!==0&&(c=Qa(r)))),c===0?0:a!==0&&a!==c&&(a&u)===0&&(u=c&-c,r=a&-a,u>=r||u===32&&(r&4194048)!==0)?a:c}function rr(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function gc(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 ze(){var e=Pr;return Pr<<=1,(Pr&4194048)===0&&(Pr=256),e}function Ze(){var e=nr;return nr<<=1,(nr&62914560)===0&&(nr=4194304),e}function Wt(e){for(var a=[],r=0;31>r;r++)a.push(e);return a}function It(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function O(e,a,r,o,c,u){var b=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var j=e.entanglements,C=e.expirationTimes,U=e.hiddenUpdates;for(r=b&~r;0<r;){var $=31-nt(r),X=1<<$;j[$]=0,C[$]=-1;var W=U[$];if(W!==null)for(U[$]=null,$=0;$<W.length;$++){var I=W[$];I!==null&&(I.lane&=-536870913)}r&=~X}o!==0&&oe(e,o,0),u!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=u&~(b&~a))}function oe(e,a,r){e.pendingLanes|=a,e.suspendedLanes&=~a;var o=31-nt(a);e.entangledLanes|=a,e.entanglements[o]=e.entanglements[o]|1073741824|r&4194090}function xe(e,a){var r=e.entangledLanes|=a;for(e=e.entanglements;r;){var o=31-nt(r),c=1<<o;c&a|e[o]&a&&(e[o]|=a),r&=~c}}function Se(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function bt(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Aa(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:Dx(e.type))}function sr(e,a){var r=F.p;try{return F.p=e,a()}finally{F.p=r}}var ct=Math.random().toString(36).slice(2),Pt="__reactFiber$"+ct,Vt="__reactProps$"+ct,_r="__reactContainer$"+ct,bc="__reactEvents$"+ct,K0="__reactListeners$"+ct,Q0="__reactHandles$"+ct,eh="__reactResources$"+ct,Us="__reactMarker$"+ct;function yc(e){delete e[Pt],delete e[Vt],delete e[bc],delete e[K0],delete e[Q0]}function Lr(e){var a=e[Pt];if(a)return a;for(var r=e.parentNode;r;){if(a=r[_r]||r[Pt]){if(r=a.alternate,a.child!==null||r!==null&&r.child!==null)for(e=bx(e);e!==null;){if(r=e[Pt])return r;e=bx(e)}return a}e=r,r=e.parentNode}return null}function zr(e){if(e=e[Pt]||e[_r]){var a=e.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return e}return null}function Fs(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(l(33))}function Ur(e){var a=e[eh];return a||(a=e[eh]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Nt(e){e[Us]=!0}var th=new Set,ah={};function ir(e,a){Fr(e,a),Fr(e+"Capture",a)}function Fr(e,a){for(ah[e]=a,e=0;e<a.length;e++)th.add(a[e])}var X0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
1037D\\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]*$"),nh={},rh={};function Z0(e){return Tt.call(rh,e)?!0:Tt.call(nh,e)?!1:X0.test(e)?rh[e]=!0:(nh[e]=!0,!1)}function ro(e,a,r){if(Z0(a))if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+r)}}function so(e,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+r)}}function Xa(e,a,r,o){if(o===null)e.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(a,r,""+o)}}var vc,sh;function Br(e){if(vc===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);vc=a&&a[1]||"",sh=-1<r.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+vc+e+sh}var wc=!1;function jc(e,a){if(!e||wc)return"";wc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(I){var W=I}Reflect.construct(e,[],X)}else{try{X.call()}catch(I){W=I}e.call(X.prototype)}}else{try{throw Error()}catch(I){W=I}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(I){if(I&&W&&typeof I.stack=="string")return[I.stack,W.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=o.DetermineComponentFrameRoot(),b=u[0],j=u[1];if(b&&j){var C=b.split(` 4`),U=j.split(` 5`);for(c=o=0;o<C.length&&!C[o].includes("DetermineComponentFrameRoot");)o++;for(;c<U.length&&!U[c].includes("DetermineComponentFrameRoot");)c++;if(o===C.length||c===U.length)for(o=C.length-1,c=U.length-1;1<=o&&0<=c&&C[o]!==U[c];)c--;for(;1<=o&&0<=c;o--,c--)if(C[o]!==U[c]){if(o!==1||c!==1)do if(o--,c--,0>c||C[o]!==U[c]){var $=` 6`+C[o].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=o&&0<=c);break}}}finally{wc=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Br(r):""}function J0(e){switch(e.tag){case 26:case 27:case 5:return Br(e.type);case 16:return Br("Lazy");case 13:return Br("Suspense");case 19:return Br("SuspenseList");case 0:case 15:return jc(e.type,!1);case 11:return jc(e.type.render,!1);case 1:return jc(e.type,!0);case 31:return Br("Activity");default:return""}}function ih(e){try{var a="";do a+=J0(e),e=e.return;while(e);return a}catch(r){return` 7Error generating stack: `+r.message+` 8`+r.stack}}function ma(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oh(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ev(e){var a=oh(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,a),o=""+e[a];if(!e.hasOwnProperty(a)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,u=r.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return c.call(this)},set:function(b){o=""+b,u.call(this,b)}}),Object.defineProperty(e,a,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function io(e){e._valueTracker||(e._valueTracker=ev(e))}function lh(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var r=a.getValue(),o="";return e&&(o=oh(e)?e.checked?"true":"false":e.value),e=o,e!==r?(a.setValue(e),!0):!1}function oo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var tv=/[\n"\\]/g;function ha(e){return e.replace(tv,function(a){return"\\"+a.charCo
vendor: 4,398 bytes, line 8
8deAt(0).toString(16)+" "})}function Nc(e,a,r,o,c,u,b,j){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),a!=null?b==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+ma(a)):e.value!==""+ma(a)&&(e.value=""+ma(a)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),a!=null?Sc(e,b,ma(a)):r!=null?Sc(e,b,ma(r)):o!=null&&e.removeAttribute("value"),c==null&&u!=null&&(e.defaultChecked=!!u),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?e.name=""+ma(j):e.removeAttribute("name")}function ch(e,a,r,o,c,u,b,j){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),a!=null||r!=null){if(!(u!=="submit"&&u!=="reset"||a!=null))return;r=r!=null?""+ma(r):"",a=a!=null?""+ma(a):r,j||a===e.value||(e.value=a),e.defaultValue=a}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=j?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b)}function Sc(e,a,r){a==="number"&&oo(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function qr(e,a,r,o){if(e=e.options,a){a={};for(var c=0;c<r.length;c++)a["$"+r[c]]=!0;for(r=0;r<e.length;r++)c=a.hasOwnProperty("$"+e[r].value),e[r].selected!==c&&(e[r].selected=c),c&&o&&(e[r].defaultSelected=!0)}else{for(r=""+ma(r),a=null,c=0;c<e.length;c++){if(e[c].value===r){e[c].selected=!0,o&&(e[c].defaultSelected=!0);return}a!==null||e[c].disabled||(a=e[c])}a!==null&&(a.selected=!0)}}function dh(e,a,r){if(a!=null&&(a=""+ma(a),a!==e.value&&(e.value=a),r==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=r!=null?""+ma(r):""}function uh(e,a,r,o){if(a==null){if(o!=null){if(r!=null)throw Error(l(92));if(G(o)){if(1<o.length)throw Error(l(93));o=o[0]}r=o}r==null&&(r=""),a=r}r=ma(a),e.defaultValue=r,o=e.textContent,o===r&&o!==""&&o!==null&&(e.value=o)}function Wr(e,a){if(a){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=a;return}}e.textContent=a}var av=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 mh(e,a,r){var o=a.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?o?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":o?e.setProperty(a,r):typeof r!="number"||r===0||av.has(a)?a==="float"?e.cssFloat=r:e[a]=(""+r).trim():e[a]=r+"px"}function hh(e,a,r){if(a!=null&&typeof a!="object")throw Error(l(62));if(e=e.style,r!=null){for(var o in r)!r.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var c in a)o=a[c],a.hasOwnProperty(c)&&r[c]!==o&&mh(e,c,o)}else for(var u in a)a.hasOwnProperty(u)&&mh(e,u,a[u])}function kc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nv=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
8dering","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"]]),rv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function lo(e){return rv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Mc=null;function Ac(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ir=null,Vr=null;function fh(e){var a=zr(e);if(a&&(e=a.stateNode)){var r=e[Vt]||null;e:switch(e=a.stateNode,a.type){case"input":if(Nc(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),a=r.name,r.type==="radio"&&a!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+ha(""+a)+'"][type="radio"]'),a=0;a<r.length;a++){var o=r[a];if(o!==e&&o.form===e.form){var c=o[Vt]||null;if(!c)throw Error(l(90));Nc(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(a=0;a<r.length;a++)o=r[a],o.form===e.form&&lh(o)}break e;case"textarea":dh(e,r.value,r.defaultValue);break e;case"select":a=r.value,a!=null&&qr(e,!!r.multiple,a,!1)}}}var Tc=!1;function ph(e,a,r){if(Tc)return e(a,r);Tc=!0;try{var o=e(a);return o}finally{if(Tc=!1,(Ir!==null||Vr!==null)&&($o(),Ir&&(a=Ir,e=Vr,Vr=Ir=null,fh(a),e)))for(a=0;a<e.length;a++)fh(e[a])}}function Bs(e,a){var r=e.stateNode;if(r===null)return null;var o=r[Vt]||null;if(o===null)return null;r=o[a];e:switch(a){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)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(l(231,a,typeof r));return r}var Za=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cc=!1;if(Za)try{var qs={};Object.defineProperty(qs,"passive",{get:function(){Cc=!0}}),window.addEventListener("test",qs,qs),window.removeEventListener("test",qs,qs)}catch{Cc=!1}var jn=null,Ec=null,co=null;function xh(){if(co)return co;var e,a=Ec,r=a.length,o,c="value"in jn?jn.value:jn.textContent,u=c.length;for(e=0;e<r&&a[e]===c[e];e++);var b=r-e;for(o=1;o<=b&&a[r-o]===c[u-o];o++);return co=c.slice(e,1<o?1-o:void 0)}function uo(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function mo(){return!0}function gh(){return!1}function Gt(e){function a(r,o,c,u,b){this._reactName=r,this._targetInst=c,this.type=o,this.nativeEvent=u,this.target=b,this.currentTarget=null;for(var j in e)e.hasOwnProperty(j)&&(r=e[j],this[j]=r?r(u):u[j]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?mo:gh,this.isPropagationStopped=gh,this}return x(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=mo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=mo)},persist:function(){},isPersistent:mo}),a}var or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ho=Gt(or),Ws=x({},or,{view:0,detail:0}),sv=Gt(Ws),Hc,Oc,Is,fo=x({},Ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Is&&(Is&&e.type==="mousemove"?(Hc=e.screenX-Is.screenX,Oc=e.screenY-Is.screenY):Oc=Hc=0,Is=e),Hc)},movementY:function(e){return"movementY"in e?e.movementY:Oc}}),bh=Gt(fo),iv=x({},fo,{dataTransfer:0}),ov=Gt(iv),lv=x({},Ws,{relatedTarget:0}),Dc=Gt(lv),cv=x({},or,{animationName:0,elapsedTime:0,pseudoElement:0}
vendor: 4,609 bytes, line 8
8),dv=Gt(cv),uv=x({},or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mv=Gt(uv),hv=x({},or,{data:0}),yh=Gt(hv),fv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pv={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"},xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gv(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=xv[e])?!!a[e]:!1}function Pc(){return gv}var bv=x({},Ws,{key:function(e){if(e.key){var a=fv[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=uo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pc,charCode:function(e){return e.type==="keypress"?uo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?uo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yv=Gt(bv),vv=x({},fo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vh=Gt(vv),wv=x({},Ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pc}),jv=Gt(wv),Nv=x({},or,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sv=Gt(Nv),kv=x({},fo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mv=Gt(kv),Av=x({},or,{newState:0,oldState:0}),Tv=Gt(Av),Cv=[9,13,27,32],Rc=Za&&"CompositionEvent"in window,Vs=null;Za&&"documentMode"in document&&(Vs=document.documentMode);var Ev=Za&&"TextEvent"in window&&!Vs,wh=Za&&(!Rc||Vs&&8<Vs&&11>=Vs),jh=" ",Nh=!1;function Sh(e,a){switch(e){case"keyup":return Cv.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gr=!1;function Hv(e,a){switch(e){case"compositionend":return kh(a);case"keypress":return a.which!==32?null:(Nh=!0,jh);case"textInput":return e=a.data,e===jh&&Nh?null:e;default:return null}}function Ov(e,a){if(Gr)return e==="compositionend"||!Rc&&Sh(e,a)?(e=xh(),co=Ec=jn=null,Gr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return wh&&a.locale!=="ko"?null:a.data;default:return null}}var Dv={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 Mh(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!Dv[e.type]:a==="textarea"}function Ah(e,a,r,o){Ir?Vr?Vr.push(o):Vr=[o]:Ir=o,a=el(a,"onChange"),0<a.length&&(r=new ho("onChange","change",null,r,o),e.push({event:r,listeners:a}))}var Gs=null,Ys=null;function Pv(e){lx(e,0)}function po(e){var a=Fs(e);if(lh(a))return e}function Th(e,a){if(e==="change")return a}var Ch=!1;if(Za){var _c;if(Za){var Lc="oninput"in document;if(!Lc){var Eh=document.createElement("div");Eh.setAttribute("oninput","return;"),Lc=typeof Eh.oninput=="function"}_c=Lc}else _c=!1;Ch=_c&&(!document.documentMode||9<document.documentMode)}function Hh(){Gs&&(Gs.detachEvent("onpropertychange",Oh),Ys=Gs=null)}function Oh(e){if(e.propertyName==="value"&&po(Ys)){var a=[];Ah(a,Ys,e,Ac(e)),ph(Pv,a)}}function Rv(e,a,r){e==="focusin"?(Hh(),Gs=a,Ys=r,Gs.attachEvent("onpropertychange",Oh)):e==="focusout"&&Hh()}function _v(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return po(Ys)}function Lv(e,a){if(e==="click")return po(a)}function zv(e,a){if(e==="input"||e==="change")return po(a)}function Uv(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var ta=typeof Object.is=="function"?Object.is:Uv;function $s(e,a){if(ta(e,a))return!0;
vendor: 97,980 bytes, line 8
8if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var r=Object.keys(e),o=Object.keys(a);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var c=r[o];if(!Tt.call(a,c)||!ta(e[c],a[c]))return!1}return!0}function Dh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ph(e,a){var r=Dh(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=a&&o>=a)return{node:r,offset:a-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Dh(r)}}function Rh(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Rh(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function _h(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=oo(e.document);a instanceof e.HTMLIFrameElement;){try{var r=typeof a.contentWindow.location.href=="string"}catch{r=!1}if(r)e=a.contentWindow;else break;a=oo(e.document)}return a}function zc(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var Fv=Za&&"documentMode"in document&&11>=document.documentMode,Yr=null,Uc=null,Ks=null,Fc=!1;function Lh(e,a,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Fc||Yr==null||Yr!==oo(o)||(o=Yr,"selectionStart"in o&&zc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ks&&$s(Ks,o)||(Ks=o,o=el(Uc,"onSelect"),0<o.length&&(a=new ho("onSelect","select",null,a,r),e.push({event:a,listeners:o}),a.target=Yr)))}function lr(e,a){var r={};return r[e.toLowerCase()]=a.toLowerCase(),r["Webkit"+e]="webkit"+a,r["Moz"+e]="moz"+a,r}var $r={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},Bc={},zh={};Za&&(zh=document.createElement("div").style,"AnimationEvent"in window||(delete $r.animationend.animation,delete $r.animationiteration.animation,delete $r.animationstart.animation),"TransitionEvent"in window||delete $r.transitionend.transition);function cr(e){if(Bc[e])return Bc[e];if(!$r[e])return e;var a=$r[e],r;for(r in a)if(a.hasOwnProperty(r)&&r in zh)return Bc[e]=a[r];return e}var Uh=cr("animationend"),Fh=cr("animationiteration"),Bh=cr("animationstart"),Bv=cr("transitionrun"),qv=cr("transitionstart"),Wv=cr("transitioncancel"),qh=cr("transitionend"),Wh=new Map,qc="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(" ");qc.push("scrollEnd");function Ta(e,a){Wh.set(e,a),ir(a,[e])}var Ih=new WeakMap;function fa(e,a){if(typeof e=="object"&&e!==null){var r=Ih.get(e);return r!==void 0?r:(a={value:e,source:a,stack:ih(a)},Ih.set(e,a),a)}return{value:e,source:a,stack:ih(a)}}var pa=[],Kr=0,Wc=0;function xo(){for(var e=Kr,a=Wc=Kr=0;a<e;){var r=pa[a];pa[a++]=null;var o=pa[a];pa[a++]=null;var c=pa[a];pa[a++]=null;var u=pa[a];if(pa[a++]=null,o!==null&&c!==null){var b=o.pending;b===null?c.next=c:(c.next=b.next,b.next=c),o.pending=c}u!==0&&Vh(r,c,u)}}function go(e,a,r,o){pa[Kr++]=e,pa[Kr++]=a,pa[Kr++]=r,pa[Kr++]=o,Wc|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ic(e,a,r,o){return go(e,a,r,o),bo(e)}function Qr(e,a){return go(e,null,null,a),bo(e)}function Vh(e,a,r){e.lanes|=r;var o=e.alternate;o!==null&&(o.lanes|=r);for(var c=!1,u=e.return;u!==null;)u.childLanes|=r,o=u.alternate,o!==null&&(o.childLanes|=r),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(c=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,c&&a!==null&&(c=31-nt(r),e=u.hiddenUpdates,o=e[c],o===null?e[c]=[a]:o.push(a),a.lane=r|536870912),u):null}function bo(e){if(50<vi)throw vi=0,Qd=null,Error(l(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var Xr={};function Iv(e,a,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,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 aa(e,a,r,o){return new Iv(e,a,r,o)}function Vc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ja(e,a){var r=e.alternate;return r===null?(r=aa(e.tag,a,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=a,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,a=e.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Gh(e,a){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,a=r.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function yo(e,a,r,o,c,u){var b=0;if(o=e,typeof e=="function")Vc(e)&&(b=1);else if(typeof e=="string")b=Gw(e,r,se.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=aa(31,r,a,c),e.elementType=re,e.lanes=u,e;case k:return dr(r.children,c,u,a);case N:b=8,c|=24;break;case A:return e=aa(12,r,a,c|2),e.elementType=A,e.lanes=u,e;case q:return e=aa(13,r,a,c),e.elementType=q,e.lanes=u,e;case V:return e=aa(19,r,a,c),e.elementType=V,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E:case H:b=10;break e;case L:b=9;break e;case P:b=11;break e;case Z:b=14;break e;case K:b=16,o=null;break e}b=29,r=Error(l(130,e===null?"null":typeof e,"")),o=null}return a=aa(b,r,a,c),a.elementType=e,a.type=o,a.lanes=u,a}function dr(e,a,r,o){return e=aa(7,e,o,a),e.lanes=r,e}function Gc(e,a,r){return e=aa(6,e,null,a),e.lanes=r,e}function Yc(e,a,r){return a=aa(4,e.children!==null?e.children:[],e.key,a),a.lanes=r,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var Zr=[],Jr=0,vo=null,wo=0,xa=[],ga=0,ur=null,en=1,tn="";function mr(e,a){Zr[Jr++]=wo,Zr[Jr++]=vo,vo=e,wo=a}function Yh(e,a,r){xa[ga++]=en,xa[ga++]=tn,xa[ga++]=ur,ur=e;var o=en;e=tn;var c=32-nt(o)-1;o&=~(1<<c),r+=1;var u=32-nt(a)+c;if(30<u){var b=c-c%5;u=(o&(1<<b)-1).toString(32),o>>=b,c-=b,en=1<<32-nt(a)+c|r<<c|o,tn=u+e}else en=1<<u|r<<c|o,tn=e}function $c(e){e.return!==null&&(mr(e,1),Yh(e,1,0))}function Kc(e){for(;e===vo;)vo=Zr[--Jr],Zr[Jr]=null,wo=Zr[--Jr],Zr[Jr]=null;for(;e===ur;)ur=xa[--ga],xa[ga]=null,tn=xa[--ga],xa[ga]=null,en=xa[--ga],xa[ga]=null}var Ut=null,it=null,qe=!1,hr=null,za=!1,Qc=Error(l(519));function fr(e){var a=Error(l(418,""));throw Zs(fa(a,e)),Qc}function $h(e){var a=e.stateNode,r=e.type,o=e.memoizedProps;switch(a[Pt]=e,a[Vt]=o,r){case"dialog":Re("cancel",a),Re("close",a);break;case"iframe":case"object":case"embed":Re("load",a);break;case"video":case"audio":for(r=0;r<ji.length;r++)Re(ji[r],a);break;case"source":Re("error",a);break;case"img":case"image":case"link":Re("error",a),Re("load",a);break;case"details":Re("toggle",a);break;case"input":Re("invalid",a),ch(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),io(a);break;case"select":Re("invalid",a);break;case"textarea":Re("invalid",a),uh(a,o.value,o.defaultValue,o.children),io(a)}r=o.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||a.textContent===""+r||o.suppressHydrationWarning===!0||mx(a.textContent,r)?(o.popover!=null&&(Re("beforetoggle",a),Re("toggle",a)),o.onScroll!=null&&Re("scroll",a),o.onScrollEnd!=null&&Re("scrollend",a),o.onClick!=null&&(a.onclick=tl),a=!0):a=!1,a||fr(e)}function Kh(e){for(Ut=e.return;Ut;)switch(Ut.tag){case 5:case 13:za=!1;return;case 27:case 3:za=!0;return;default:Ut=Ut.return}}function Qs(e){if(e!==Ut)return!1;if(!qe)return Kh(e),qe=!0,!1;var a=e.tag,r;if((r=a!==3&&a!==27)&&((r=a===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||mu(e.type,e.memoizedProps)),r=!r),r&&it&&fr(e),Kh(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,a=0;e;){if(e.nodeType===8)if(r=e.data,r==="/$"){if(a===0){it=Ea(e.nextSibling);break e}a--}else r!=="$"&&r!=="$!"&&r!=="$?"||a++;e=e.nextSibling}it=null}}else a===27?(a=it,zn(e.type)?(e=xu,xu=null,it=e):it=a):it=Ut?Ea(e.stateNode.nextSibling):null;return!0}function Xs(){it=Ut=null,qe=!1}function Qh(){var e=hr;return e!==null&&(Kt===null?Kt=e:Kt.push.apply(Kt,e),hr=null),e}function Zs(e){hr===null?hr=[e]:hr.push(e)}var Xc=Y(null),pr=null,an=null;function Nn(e,a,r){ae(Xc,a._currentValue),a._currentValue=r}function nn(e){e._currentValue=Xc.current,ne(Xc)}function Zc(e,a,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),e===r)break;e=e.return}}function Jc(e,a,r,o){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var u=c.dependencies;if(u!==null){var b=c.child;u=u.firstContext;e:for(;u!==null;){var j=u;u=c;for(var C=0;C<a.length;C++)if(j.context===a[C]){u.lanes|=r,j=u.alternate,j!==null&&(j.lanes|=r),Zc(u.return,r,e),o||(b=null);break e}u=j.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(l(341));b.lanes|=r,u=b.alternate,u!==null&&(u.lanes|=r),Zc(b,r,e),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===e){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function Js(e,a,r,o){e=null;for(var c=a,u=!1;c!==null;){if(!u){if((c.flags&524288)!==0)u=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(l(387));if(b=b.memoizedProps,b!==null){var j=c.type;ta(c.pendingProps.value,b.value)||(e!==null?e.push(j):e=[j])}}else if(c===Ae.current){if(b=c.alternate,b===null)throw Error(l(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Ti):e=[Ti])}c=c.return}e!==null&&Jc(a,e,r,o),a.flags|=262144}function jo(e){for(e=e.firstContext;e!==null;){if(!ta(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xr(e){pr=e,an=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Rt(e){return Xh(pr,e)}function No(e,a){return pr===null&&xr(e),Xh(e,a)}function Xh(e,a){var r=a._currentValue;if(a={context:a,memoizedValue:r,next:null},an===null){if(e===null)throw Error(l(308));an=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else an=an.next=a;return r}var Vv=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(r,o){e.push(o)}};this.abort=function(){a.aborted=!0,e.forEach(function(r){return r()})}},Gv=n.unstable_scheduleCallback,Yv=n.unstable_NormalPriority,yt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ed(){return{controller:new Vv,data:new Map,refCount:0}}function ei(e){e.refCount--,e.refCount===0&&Gv(Yv,function(){e.controller.abort()})}var ti=null,td=0,es=0,ts=null;function $v(e,a){if(ti===null){var r=ti=[];td=0,es=nu(),ts={status:"pending",value:void 0,then:function(o){r.push(o)}}}return td++,a.then(Zh,Zh),a}function Zh(){if(--td===0&&ti!==null){ts!==null&&(ts.status="fulfilled");var e=ti;ti=null,es=0,ts=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function Kv(e,a){var r=[],o={status:"pending",value:null,reason:null,then:function(c){r.push(c)}};return e.then(function(){o.status="fulfilled",o.value=a;for(var c=0;c<r.length;c++)(0,r[c])(a)},function(c){for(o.status="rejected",o.reason=c,c=0;c<r.length;c++)(0,r[c])(void 0)}),o}var Jh=T.S;T.S=function(e,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&$v(e,a),Jh!==null&&Jh(e,a)};var gr=Y(null);function ad(){var e=gr.current;return e!==null?e:Je.pooledCache}function So(e,a){a===null?ae(gr,gr.current):ae(gr,a.pool)}function ef(){var e=ad();return e===null?null:{parent:yt._currentValue,pool:e}}var ai=Error(l(460)),tf=Error(l(474)),ko=Error(l(542)),nd={then:function(){}};function af(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mo(){}function nf(e,a,r){switch(r=e[r],r===void 0?e.push(a):r!==a&&(a.then(Mo,Mo),a=r),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,sf(e),e;default:if(typeof a.status=="string")a.then(Mo,Mo);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=a,e.status="pending",e.then(function(o){if(a.status==="pending"){var c=a;c.status="fulfilled",c.value=o}},function(o){if(a.status==="pending"){var c=a;c.status="rejected",c.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,sf(e),e}throw ni=a,ai}}var ni=null;function rf(){if(ni===null)throw Error(l(459));var e=ni;return ni=null,e}function sf(e){if(e===ai||e===ko)throw Error(l(483))}var Sn=!1;function rd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sd(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Mn(e,a,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ie&2)!==0){var c=o.pending;return c===null?a.next=a:(a.next=c.next,c.next=a),o.pending=a,a=bo(e),Vh(e,null,r),a}return go(e,o,a,r),bo(e)}function ri(e,a,r){if(a=a.updateQueue,a!==null&&(a=a.shared,(r&4194048)!==0)){var o=a.lanes;o&=e.pendingLanes,r|=o,a.lanes=r,xe(e,r)}}function id(e,a){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var c=null,u=null;if(r=r.firstBaseUpdate,r!==null){do{var b={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};u===null?c=u=b:u=u.next=b,r=r.next}while(r!==null);u===null?c=u=a:u=u.next=a}else c=u=a;r={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:o.shared,callbacks:o.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=a:e.next=a,r.lastBaseUpdate=a}var od=!1;function si(){if(od){var e=ts;if(e!==null)throw e}}function ii(e,a,r,o){od=!1;var c=e.updateQueue;Sn=!1;var u=c.firstBaseUpdate,b=c.lastBaseUpdate,j=c.shared.pending;if(j!==null){c.shared.pending=null;var C=j,U=C.next;C.next=null,b===null?u=U:b.next=U,b=C;var $=e.alternate;$!==null&&($=$.updateQueue,j=$.lastBaseUpdate,j!==b&&(j===null?$.firstBaseUpdate=U:j.next=U,$.lastBaseUpdate=C))}if(u!==null){var X=c.baseState;b=0,$=U=C=null,j=u;do{var W=j.lane&-536870913,I=W!==j.lane;if(I?(Ue&W)===W:(o&W)===W){W!==0&&W===es&&(od=!0),$!==null&&($=$.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var ke=e,ve=j;W=a;var Qe=r;switch(ve.tag){case 1:if(ke=ve.payload,typeof ke=="function"){X=ke.call(Qe,X,W);break e}X=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=ve.payload,W=typeof ke=="function"?ke.call(Qe,X,W):ke,W==null)break e;X=x({},X,W);break e;case 2:Sn=!0}}W=j.callback,W!==null&&(e.flags|=64,I&&(e.flags|=8192),I=c.callbacks,I===null?c.callbacks=[W]:I.push(W))}else I={lane:W,tag:j.tag,payload:j.payload,callback:j.callback,next:null},$===null?(U=$=I,C=X):$=$.next=I,b|=W;if(j=j.next,j===null){if(j=c.shared.pending,j===null)break;I=j,j=I.next,I.next=null,c.lastBaseUpdate=I,c.shared.pending=null}}while(!0);$===null&&(C=X),c.baseState=C,c.firstBaseUpdate=U,c.lastBaseUpdate=$,u===null&&(c.shared.lanes=0),Pn|=b,e.lanes=b,e.memoizedState=X}}function of(e,a){if(typeof e!="function")throw Error(l(191,e));e.call(a)}function lf(e,a){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)of(r[e],a)}var as=Y(null),Ao=Y(0);function cf(e,a){e=un,ae(Ao,e),ae(as,a),un=e|a.baseLanes}function ld(){ae(Ao,un),ae(as,as.current)}function cd(){un=Ao.current,ne(as),ne(Ao)}var An=0,Ce=null,$e=null,ft=null,To=!1,ns=!1,br=!1,Co=0,oi=0,rs=null,Qv=0;function dt(){throw Error(l(321))}function dd(e,a){if(a===null)return!1;for(var r=0;r<a.length&&r<e.length;r++)if(!ta(e[r],a[r]))return!1;return!0}function ud(e,a,r,o,c,u){return An=u,Ce=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,T.H=e===null||e.memoizedState===null?Gf:Yf,br=!1,u=r(o,c),br=!1,ns&&(u=uf(a,r,o,c)),df(e),u}function df(e){T.H=Ro;var a=$e!==null&&$e.next!==null;if(An=0,ft=$e=Ce=null,To=!1,oi=0,rs=null,a)throw Error(l(300));e===null||St||(e=e.dependencies,e!==null&&jo(e)&&(St=!0))}function uf(e,a,r,o){Ce=e;var c=0;do{if(ns&&(rs=null),oi=0,ns=!1,25<=c)throw Error(l(301));if(c+=1,ft=$e=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}T.H=nw,u=a(r,o)}while(ns);return u}function Xv(){var e=T.H,a=e.useState()[0];return a=typeof a.then=="function"?li(a):a,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Ce.flags|=1024),a}function md(){var e=Co!==0;return Co=0,e}function hd(e,a,r){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~r}function fd(e){if(To){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}To=!1}An=0,ft=$e=Ce=null,ns=!1,oi=Co=0,rs=null}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?Ce.memoizedState=ft=e:ft=ft.next=e,ft}function pt(){if($e===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var a=ft===null?Ce.memoizedState:ft.next;if(a!==null)ft=a,$e=e;else{if(e===null)throw Ce.alternate===null?Error(l(467)):Error(l(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},ft===null?Ce.memoizedState=ft=e:ft=ft.next=e}return ft}function pd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function li(e){var a=oi;return oi+=1,rs===null&&(rs=[]),e=nf(rs,e,a),a=Ce,(ft===null?a.memoizedState:ft.next)===null&&(a=a.alternate,T.H=a===null||a.memoizedState===null?Gf:Yf),e}function Eo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return li(e);if(e.$$typeof===H)return Rt(e)}throw Error(l(438,String(e)))}function xd(e){var a=null,r=Ce.updateQueue;if(r!==null&&(a=r.memoCache),a==null){var o=Ce.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(c){return c.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),r===null&&(r=pd(),Ce.updateQueue=r),r.memoCache=a,r=a.data[a.index],r===void 0)for(r=a.data[a.index]=Array(e),o=0;o<e;o++)r[o]=le;return a.index++,r}function rn(e,a){return typeof a=="function"?a(e):a}function Ho(e){var a=pt();return gd(a,$e,e)}function gd(e,a,r){var o=e.queue;if(o===null)throw Error(l(311));o.lastRenderedReducer=r;var c=e.baseQueue,u=o.pending;if(u!==null){if(c!==null){var b=c.next;c.next=u.next,u.next=b}a.baseQueue=c=u,o.pending=null}if(u=e.baseState,c===null)e.memoizedState=u;else{a=c.next;var j=b=null,C=null,U=a,$=!1;do{var X=U.lane&-536870913;if(X!==U.lane?(Ue&X)===X:(An&X)===X){var W=U.revertLane;if(W===0)C!==null&&(C=C.next={lane:0,revertLane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),X===es&&($=!0);else if((An&W)===W){U=U.next,W===es&&($=!0);continue}else X={lane:0,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},C===null?(j=C=X,b=u):C=C.next=X,Ce.lanes|=W,Pn|=W;X=U.action,br&&r(u,X),u=U.hasEagerState?U.eagerState:r(u,X)}else W={lane:X,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},C===null?(j=C=W,b=u):C=C.next=W,Ce.lanes|=X,Pn|=X;U=U.next}while(U!==null&&U!==a);if(C===null?b=u:C.next=j,!ta(u,e.memoizedState)&&(St=!0,$&&(r=ts,r!==null)))throw r;e.memoizedState=u,e.baseState=b,e.baseQueue=C,o.lastRenderedState=u}return c===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function bd(e){var a=pt(),r=a.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=e;var o=r.dispatch,c=r.pending,u=a.memoizedState;if(c!==null){r.pending=null;var b=c=c.next;do u=e(u,b.action),b=b.next;while(b!==c);ta(u,a.memoizedState)||(St=!0),a.memoizedState=u,a.baseQueue===null&&(a.baseState=u),r.lastRenderedState=u}return[u,o]}function mf(e,a,r){var o=Ce,c=pt(),u=qe;if(u){if(r===void 0)throw Error(l(407));r=r()}else r=a();var b=!ta(($e||c).memoizedState,r);b&&(c.memoizedState=r,St=!0),c=c.queue;var j=pf.bind(null,o,c,e);if(ci(2048,8,j,[e]),c.getSnapshot!==a||b||ft!==null&&ft.memoizedState.tag&1){if(o.flags|=2048,ss(9,Oo(),ff.bind(null,o,c,r,a),null),Je===null)throw Error(l(349));u||(An&124)!==0||hf(o,a,r)}return r}function hf(e,a,r){e.flags|=16384,e={getSnapshot:a,value:r},a=Ce.updateQueue,a===null?(a=pd(),Ce.updateQueue=a,a.stores=[e]):(r=a.stores,r===null?a.stores=[e]:r.push(e))}function ff(e,a,r,o){a.value=r,a.getSnapshot=o,xf(a)&&gf(e)}function pf(e,a,r){return r(function(){xf(a)&&gf(e)})}function xf(e){var a=e.getSnapshot;e=e.value;try{var r=a();return!ta(e,r)}catch{return!0}}function gf(e){var a=Qr(e,2);a!==null&&oa(a,e,2)}function yd(e){var a=Yt();if(typeof e=="function"){var r=e;if(e=r(),br){La(!0);try{r()}finally{La(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:e},a}function bf(e,a,r,o){return e.baseState=r,gd(e,$e,typeof o=="function"?o:rn)}function Zv(e,a,r,o,c){if(Po(e))throw Error(l(485));if(e=a.action,e!==null){var u={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){u.listeners.push(b)}};T.T!==null?r(!0):u.isTransition=!1,o(u),r=a.pending,r===null?(u.next=a.pending=u,yf(a,u)):(u.next=r.next,a.pending=r.next=u)}}function yf(e,a){var r=a.action,o=a.payload,c=e.state;if(a.isTransition){var u=T.T,b={};T.T=b;try{var j=r(c,o),C=T.S;C!==null&&C(b,j),vf(e,a,j)}catch(U){vd(e,a,U)}finally{T.T=u}}else try{u=r(c,o),vf(e,a,u)}catch(U){vd(e,a,U)}}function vf(e,a,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(o){wf(e,a,o)},function(o){return vd(e,a,o)}):wf(e,a,r)}function wf(e,a,r){a.status="fulfilled",a.value=r,jf(a),e.state=r,a=e.pending,a!==null&&(r=a.next,r===a?e.pending=null:(r=r.next,a.next=r,yf(e,r)))}function vd(e,a,r){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=r,jf(a),a=a.next;while(a!==o)}e.action=null}function jf(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function Nf(e,a){return a}function Sf(e,a){if(qe){var r=Je.formState;if(r!==null){e:{var o=Ce;if(qe){if(it){t:{for(var c=it,u=za;c.nodeType!==8;){if(!u){c=null;break t}if(c=Ea(c.nextSibling),c===null){c=null;break t}}u=c.data,c=u==="F!"||u==="F"?c:null}if(c){it=Ea(c.nextSibling),o=c.data==="F!";break e}}fr(o)}o=!1}o&&(a=r[0])}}return r=Yt(),r.memoizedState=r.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nf,lastRenderedState:a},r.queue=o,r=Wf.bind(null,Ce,o),o.dispatch=r,o=yd(!1),u=kd.bind(null,Ce,!1,o.queue),o=Yt(),c={state:a,dispatch:null,action:e,pending:null},o.queue=c,r=Zv.bind(null,Ce,c,u,r),c.dispatch=r,o.memoizedState=e,[a,r,!1]}function kf(e){var a=pt();return Mf(a,$e,e)}function Mf(e,a,r){if(a=gd(e,a,Nf)[0],e=Ho(rn)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=li(a)}catch(b){throw b===ai?ko:b}else o=a;a=pt();var c=a.queue,u=c.dispatch;return r!==a.memoizedState&&(Ce.flags|=2048,ss(9,Oo(),Jv.bind(null,c,r),null)),[o,u,e]}function Jv(e,a){e.action=a}function Af(e){var a=pt(),r=$e;if(r!==null)return Mf(a,r,e);pt(),a=a.memoizedState,r=pt();var o=r.queue.dispatch;return r.memoizedState=e,[a,o,!1]}function ss(e,a,r,o){return e={tag:e,create:r,deps:o,inst:a,next:null},a=Ce.updateQueue,a===null&&(a=pd(),Ce.updateQueue=a),r=a.lastEffect,r===null?a.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,a.lastEffect=e),e}function Oo(){return{destroy:void 0,resource:void 0}}function Tf(){return pt().memoizedState}function Do(e,a,r,o){var c=Yt();o=o===void 0?null:o,Ce.flags|=e,c.memoizedState=ss(1|a,Oo(),r,o)}function ci(e,a,r,o){var c=pt();o=o===void 0?null:o;var u=c.memoizedState.inst;$e!==null&&o!==null&&dd(o,$e.memoizedState.deps)?c.memoizedState=ss(a,u,r,o):(Ce.flags|=e,c.memoizedState=ss(1|a,u,r,o))}function Cf(e,a){Do(8390656,8,e,a)}function Ef(e,a){ci(2048,8,e,a)}function Hf(e,a){return ci(4,2,e,a)}function Of(e,a){return ci(4,4,e,a)}function Df(e,a){if(typeof a=="function"){e=e();var r=a(e);return function(){typeof r=="function"?r():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function Pf(e,a,r){r=r!=null?r.concat([e]):null,ci(4,4,Df.bind(null,a,e),r)}function wd(){}function Rf(e,a){var r=pt();a=a===void 0?null:a;var o=r.memoizedState;return a!==null&&dd(a,o[1])?o[0]:(r.memoizedState=[e,a],e)}function _f(e,a){var r=pt();a=a===void 0?null:a;var o=r.memoizedState;if(a!==null&&dd(a,o[1]))return o[0];if(o=e(),br){La(!0);try{e()}finally{La(!1)}}return r.memoizedState=[o,a],o}function jd(e,a,r){return r===void 0||(An&1073741824)!==0?e.memoizedState=a:(e.memoizedState=r,e=Up(),Ce.lanes|=e,Pn|=e,r)}function Lf(e,a,r,o){return ta(r,a)?r:as.current!==null?(e=jd(e,r,o),ta(e,a)||(St=!0),e):(An&42)===0?(St=!0,e.memoizedState=r):(e=Up(),Ce.lanes|=e,Pn|=e,a)}function zf(e,a,r,o,c){var u=F.p;F.p=u!==0&&8>u?u:8;var b=T.T,j={};T.T=j,kd(e,!1,a,r);try{var C=c(),U=T.S;if(U!==null&&U(j,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var $=Kv(C,o);di(e,a,$,ia(e))}else di(e,a,o,ia(e))}catch(X){di(e,a,{then:function(){},status:"rejected",reason:X},ia())}finally{F.p=u,T.T=b}}function ew(){}function Nd(e,a,r,o){if(e.tag!==5)throw Error(l(476));var c=Uf(e).queue;zf(e,c,a,B,r===null?ew:function(){return Ff(e),r(o)})}function Uf(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:B},next:null};var r={};return a.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:r},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function Ff(e){var a=Uf(e).next.queue;di(e,a,{},ia())}function Sd(){return Rt(Ti)}function Bf(){return pt().memoizedState}function qf(){return pt().memoizedState}function tw(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var r=ia();e=kn(r);var o=Mn(a,e,r);o!==null&&(oa(o,a,r),ri(o,a,r)),a={cache:ed()},e.payload=a;return}a=a.return}}function aw(e,a,r){var o=ia();r={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},Po(e)?If(a,r):(r=Ic(e,a,r,o),r!==null&&(oa(r,e,o),Vf(r,a,o)))}function Wf(e,a,r){var o=ia();di(e,a,r,o)}function di(e,a,r,o){var c={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(Po(e))If(a,c);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=a.lastRenderedReducer,u!==null))try{var b=a.lastRenderedState,j=u(b,r);if(c.hasEagerState=!0,c.eagerState=j,ta(j,b))return go(e,a,c,0),Je===null&&xo(),!1}catch{}if(r=Ic(e,a,c,o),r!==null)return oa(r,e,o),Vf(r,a,o),!0}return!1}function kd(e,a,r,o){if(o={lane:2,revertLane:nu(),action:o,hasEagerState:!1,eagerState:null,next:null},Po(e)){if(a)throw Error(l(479))}else a=Ic(e,r,o,2),a!==null&&oa(a,e,2)}function Po(e){var a=e.alternate;return e===Ce||a!==null&&a===Ce}function If(e,a){ns=To=!0;var r=e.pending;r===null?a.next=a:(a.next=r.next,r.next=a),e.pending=a}function Vf(e,a,r){if((r&4194048)!==0){var o=a.lanes;o&=e.pendingLanes,r|=o,a.lanes=r,xe(e,r)}}var Ro={readContext:Rt,use:Eo,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt},Gf={readContext:Rt,use:Eo,useCallback:function(e,a){return Yt().memoizedState=[e,a===void 0?null:a],e},useContext:Rt,useEffect:Cf,useImperativeHandle:function(e,a,r){r=r!=null?r.concat([e]):null,Do(4194308,4,Df.bind(null,a,e),r)},useLayoutEffect:function(e,a){return Do(4194308,4,e,a)},useInsertionEffect:function(e,a){Do(4,2,e,a)},useMemo:function(e,a){var r=Yt();a=a===void 0?null:a;var o=e();if(br){La(!0);try{e()}finally{La(!1)}}return r.memoizedState=[o,a],o},useReducer:function(e,a,r){var o=Yt();if(r!==void 0){var c=r(a);if(br){La(!0);try{r(a)}finally{La(!1)}}}else c=a;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=aw.bind(null,Ce,e),[o.memoizedState,e]},useRef:function(e){var a=Yt();return e={current:e},a.memoizedState=e},useState:function(e){e=yd(e);var a=e.queue,r=Wf.bind(null,Ce,a);return a.dispatch=r,[e.memoizedState,r]},useDebugValue:wd,useDeferredValue:function(e,a){var r=Yt();return jd(r,e,a)},useTransition:function(){var e=yd(!1);return e=zf.bind(null,Ce,e.queue,!0,!1),Yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,r){var o=Ce,c=Yt();if(qe){if(r===void 0)throw Error(l(407));r=r()}else{if(r=a(),Je===null)throw Error(l(349));(Ue&124)!==0||hf(o,a,r)}c.memoizedState=r;var u={value:r,getSnapshot:a};return c.queue=u,Cf(pf.bind(null,o,u,e),[e]),o.flags|=2048,ss(9,Oo(),ff.bind(null,o,u,r,a),null),r},useId:function(){var e=Yt(),a=Je.identifierPrefix;if(qe){var r=tn,o=en;r=(o&~(1<<32-nt(o)-1)).toString(32)+r,a="«"+a+"R"+r,r=Co++,0<r&&(a+="H"+r.toString(32)),a+="»"}else r=Qv++,a="«"+a+"r"+r.toString(32)+"»";return e.memoizedState=a},useHostTransitionStatus:Sd,useFormState:Sf,useActionState:Sf,useOptimistic:function(e){var a=Yt();a.memoizedState=a.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=r,a=kd.bind(null,Ce,!0,r),r.dispatch=a,[e,a]},useMemoCache:xd,useCacheRefresh:function(){return Yt().memoizedState=tw.bind(null,Ce)}},Yf={readContext:Rt,use:Eo,useCallback:Rf,useContext:Rt,useEffect:Ef,useImperativeHandle:Pf,useInsertionEffect:Hf,useLayoutEffect:Of,useMemo:_f,useReducer:Ho,useRef:Tf,useState:function(){return Ho(rn)},useDebugValue:wd,useDeferredValue:function(e,a){var r=pt();return Lf(r,$e.memoizedState,e,a)},useTransition:function(){var e=Ho(rn)[0],a=pt().memoizedState;return[typeof e=="boolean"?e:li(e),a]},useSyncExternalStore:mf,useId:Bf,useHostTransitionStatus:Sd,useFormState:kf,useActionState:kf,useOptimistic:function(e,a){var r=pt();return bf(r,$e,e,a)},useMemoCache:xd,useCacheRefresh:qf},nw={readContext:Rt,use:Eo,useCallback:Rf,useContext:Rt,useEffect:Ef,useImperativeHandle:Pf,useInsertionEffect:Hf,useLayoutEffect:Of,useMemo:_f,useReducer:bd,useRef:Tf,useState:function(){return bd(rn)},useDebugValue:wd,useDeferredValue:function(e,a){var r=pt();return $e===null?jd(r,e,a):Lf(r,$e.memoizedState,e,a)},useTransition:function(){var e=bd(rn)[0],a=pt().memoizedState;return[typeof e=="boolean"?e:li(e),a]},useSyncExternalStore:mf,useId:Bf,useHostTransitionStatus:Sd,useFormState:Af,useActionState:Af,useOptimistic:function(e,a){var r=pt();return $e!==null?bf(r,$e,e,a):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:xd,useCacheRefresh:qf},is=null,ui=0;function _o(e){var a=ui;return ui+=1,is===null&&(is=[]),nf(is,e,a)}function mi(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function Lo(e,a){throw a.$$typeof===y?Error(l(525)):(e=Object.prototype.toString.call(a),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function $f(e){var a=e._init;return a(e._payload)}function Kf(e){function a(R,D){if(e){var _=R.deletions;_===null?(R.deletions=[D],R.flags|=16):_.push(D)}}function r(R,D){if(!e)return null;for(;D!==null;)a(R,D),D=D.sibling;return null}function o(R){for(var D=new Map;R!==null;)R.key!==null?D.set(R.key,R):D.set(R.index,R),R=R.sibling;return D}function c(R,D){return R=Ja(R,D),R.index=0,R.sibling=null,R}function u(R,D,_){return R.index=_,e?(_=R.alternate,_!==null?(_=_.index,_<D?(R.flags|=67108866,D):_):(R.flags|=67108866,D)):(R.flags|=1048576,D)}function b(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function j(R,D,_,Q){return D===null||D.tag!==6?(D=Gc(_,R.mode,Q),D.return=R,D):(D=c(D,_),D.return=R,D)}function C(R,D,_,Q){var de=_.type;return de===k?$(R,D,_.props.children,Q,_.key):D!==null&&(D.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===K&&$f(de)===D.type)?(D=c(D,_.props),mi(D,_),D.return=R,D):(D=yo(_.type,_.key,_.props,null,R.mode,Q),mi(D,_),D.return=R,D)}function U(R,D,_,Q){return D===null||D.tag!==4||D.stateNode.containerInfo!==_.containerInfo||D.stateNode.implementation!==_.implementation?(D=Yc(_,R.mode,Q),D.return=R,D):(D=c(D,_.children||[]),D.return=R,D)}function $(R,D,_,Q,de){return D===null||D.tag!==7?(D=dr(_,R.mode,Q,de),D.return=R,D):(D=c(D,_),D.return=R,D)}function X(R,D,_){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Gc(""+D,R.mode,_),D.return=R,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case v:return _=yo(D.type,D.key,D.props,null,R.mode,_),mi(_,D),_.return=R,_;case S:return D=Yc(D,R.mode,_),D.return=R,D;case K:var Q=D._init;return D=Q(D._payload),X(R,D,_)}if(G(D)||fe(D))return D=dr(D,R.mode,_,null),D.return=R,D;if(typeof D.then=="function")return X(R,_o(D),_);if(D.$$typeof===H)return X(R,No(R,D),_);Lo(R,D)}return null}function W(R,D,_,Q){var de=D!==null?D.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return de!==null?null:j(R,D,""+_,Q);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case v:return _.key===de?C(R,D,_,Q):null;case S:return _.key===de?U(R,D,_,Q):null;case K:return de=_._init,_=de(_._payload),W(R,D,_,Q)}if(G(_)||fe(_))return de!==null?null:$(R,D,_,Q,null);if(typeof _.then=="function")return W(R,D,_o(_),Q);if(_.$$typeof===H)return W(R,D,No(R,_),Q);Lo(R,_)}return null}function I(R,D,_,Q,de){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return R=R.get(_)||null,j(D,R,""+Q,de);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case v:return R=R.get(Q.key===null?_:Q.key)||null,C(D,R,Q,de);case S:return R=R.get(Q.key===null?_:Q.key)||null,U(D,R,Q,de);case K:var Oe=Q._init;return Q=Oe(Q._payload),I(R,D,_,Q,de)}if(G(Q)||fe(Q))return R=R.get(_)||null,$(D,R,Q,de,null);if(typeof Q.then=="function")return I(R,D,_,_o(Q),de);if(Q.$$typeof===H)return I(R,D,_,No(D,Q),de);Lo(D,Q)}return null}function ke(R,D,_,Q){for(var de=null,Oe=null,ge=D,je=D=0,Mt=null;ge!==null&&je<_.length;je++){ge.index>je?(Mt=ge,ge=null):Mt=ge.sibling;var Fe=W(R,ge,_[je],Q);if(Fe===null){ge===null&&(ge=Mt);break}e&&ge&&Fe.alternate===null&&a(R,ge),D=u(Fe,D,je),Oe===null?de=Fe:Oe.sibling=Fe,Oe=Fe,ge=Mt}if(je===_.length)return r(R,ge),qe&&mr(R,je),de;if(ge===null){for(;je<_.length;je++)ge=X(R,_[je],Q),ge!==null&&(D=u(ge,D,je),Oe===null?de=ge:Oe.sibling=ge,Oe=ge);return qe&&mr(R,je),de}for(ge=o(ge);je<_.length;je++)Mt=I(ge,R,je,_[je],Q),Mt!==null&&(e&&Mt.alternate!==null&&ge.delete(Mt.key===null?je:Mt.key),D=u(Mt,D,je),Oe===null?de=Mt:Oe.sibling=Mt,Oe=Mt);return e&&ge.forEach(function(Wn){return a(R,Wn)}),qe&&mr(R,je),de}function ve(R,D,_,Q){if(_==null)throw Error(l(151));for(var de=null,Oe=null,ge=D,je=D=0,Mt=null,Fe=_.next();ge!==null&&!Fe.done;je++,Fe=_.next()){ge.index>je?(Mt=ge,ge=null):Mt=ge.sibling;var Wn=W(R,ge,Fe.value,Q);if(Wn===null){ge===null&&(ge=Mt);break}e&&ge&&Wn.alternate===null&&a(R,ge),D=u(Wn,D,je),Oe===null?de=Wn:Oe.sibling=Wn,Oe=Wn,ge=Mt}if(Fe.done)return r(R,ge),qe&&mr(R,je),de;if(ge===null){for(;!Fe.done;je++,Fe=_.next())Fe=X(R,Fe.value,Q),Fe!==null&&(D=u(Fe,D,je),Oe===null?de=Fe:Oe.sibling=Fe,Oe=Fe);return qe&&mr(R,je),de}for(ge=o(ge);!Fe.done;je++,Fe=_.next())Fe=I(ge,R,je,Fe.value,Q),Fe!==null&&(e&&Fe.alternate!==null&&ge.delete(Fe.key===null?je:Fe.key),D=u(Fe,D,je),Oe===null?de=Fe:Oe.sibling=Fe,Oe=Fe);return e&&ge.forEach(function(rj){return a(R,rj)}),qe&&mr(R,je),de}function Qe(R,D,_,Q){if(typeof _=="object"&&_!==null&&_.type===k&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case v:e:{for(var de=_.key;D!==null;){if(D.key===de){if(de=_.type,de===k){if(D.tag===7){r(R,D.sibling),Q=c(D,_.props.children),Q.return=R,R=Q;break e}}else if(D.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===K&&$f(de)===D.type){r(R,D.sibling),Q=c(D,_.props),mi(Q,_),Q.return=R,R=Q;break e}r(R,D);break}else a(R,D);D=D.sibling}_.type===k?(Q=dr(_.props.children,R.mode,Q,_.key),Q.return=R,R=Q):(Q=yo(_.type,_.key,_.props,null,R.mode,Q),mi(Q,_),Q.return=R,R=Q)}return b(R);case S:e:{for(de=_.key;D!==null;){if(D.key===de)if(D.tag===4&&D.stateNode.containerInfo===_.containerInfo&&D.stateNode.implementation===_.implementation){r(R,D.sibling),Q=c(D,_.children||[]),Q.return=R,R=Q;break e}else{r(R,D);break}else a(R,D);D=D.sibling}Q=Yc(_,R.mode,Q),Q.return=R,R=Q}return b(R);case K:return de=_._init,_=de(_._payload),Qe(R,D,_,Q)}if(G(_))return ke(R,D,_,Q);if(fe(_)){if(de=fe(_),typeof de!="function")throw Error(l(150));return _=de.call(_),ve(R,D,_,Q)}if(typeof _.then=="function")return Qe(R,D,_o(_),Q);if(_.$$typeof===H)return Qe(R,D,No(R,_),Q);Lo(R,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,D!==null&&D.tag===6?(r(R,D.sibling),Q=c(D,_),Q.return=R,R=Q):(r(R,D),Q=Gc(_,R.mode,Q),Q.return=R,R=Q),b(R)):r(R,D)}return function(R,D,_,Q){try{ui=0;var de=Qe(R,D,_,Q);return is=null,de}catch(ge){if(ge===ai||ge===ko)throw ge;var Oe=aa(29,ge,null,R.mode);return Oe.lanes=Q,Oe.return=R,Oe}}}var os=Kf(!0),Qf=Kf(!1),ba=Y(null),Ua=null;function Tn(e){var a=e.alternate;ae(vt,vt.current&1),ae(ba,e),Ua===null&&(a===null||as.current!==null||a.memoizedState!==null)&&(Ua=e)}function Xf(e){if(e.tag===22){if(ae(vt,vt.current),ae(ba,e),Ua===null){var a=e.alternate;a!==null&&a.memoizedState!==null&&(Ua=e)}}else Cn()}function Cn(){ae(vt,vt.current),ae(ba,ba.current)}function sn(e){ne(ba),Ua===e&&(Ua=null),ne(vt)}var vt=Y(0);function zo(e){for(var a=e;a!==null;){if(a.tag===13){var r=a.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||pu(r)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Md(e,a,r,o){a=e.memoizedState,r=r(o,a),r=r==null?a:x({},a,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Ad={enqueueSetState:function(e,a,r){e=e._reactInternals;var o=ia(),c=kn(o);c.payload=a,r!=null&&(c.callback=r),a=Mn(e,c,o),a!==null&&(oa(a,e,o),ri(a,e,o))},enqueueReplaceState:function(e,a,r){e=e._reactInternals;var o=ia(),c=kn(o);c.tag=1,c.payload=a,r!=null&&(c.callback=r),a=Mn(e,c,o),a!==null&&(oa(a,e,o),ri(a,e,o))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var r=ia(),o=kn(r);o.tag=2,a!=null&&(o.callback=a),a=Mn(e,o,r),a!==null&&(oa(a,e,r),ri(a,e,r))}};function Zf(e,a,r,o,c,u,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,u,b):a.prototype&&a.prototype.isPureReactComponent?!$s(r,o)||!$s(c,u):!0}function Jf(e,a,r,o){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(r,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(r,o),a.state!==e&&Ad.enqueueReplaceState(a,a.state,null)}function yr(e,a){var r=a;if("ref"in a){r={};for(var o in a)o!=="ref"&&(r[o]=a[o])}if(e=e.defaultProps){r===a&&(r=x({},r));for(var c in e)r[c]===void 0&&(r[c]=e[c])}return r}var Uo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function ep(e){Uo(e)}function tp(e){console.error(e)}function ap(e){Uo(e)}function Fo(e,a){try{var r=e.onUncaughtError;r(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function np(e,a,r){try{var o=e.onCaughtError;o(r.value,{componentStack:r.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Td(e,a,r){return r=kn(r),r.tag=3,r.payload={element:null},r.callback=function(){Fo(e,a)},r}function rp(e){return e=kn(e),e.tag=3,e}function sp(e,a,r,o){var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var u=o.value;e.payload=function(){return c(u)},e.callback=function(){np(a,r,o)}}var b=r.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){np(a,r,o),typeof c!="function"&&(Rn===null?Rn=new Set([this]):Rn.add(this));var j=o.stack;this.componentDidCatch(o.value,{componentStack:j!==null?j:""})})}function rw(e,a,r,o,c){if(r.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=r.alternate,a!==null&&Js(a,r,c,!0),r=ba.current,r!==null){switch(r.tag){case 13:return Ua===null?Zd():r.alternate===null&&ot===0&&(ot=3),r.flags&=-257,r.flags|=65536,r.lanes=c,o===nd?r.flags|=16384:(a=r.updateQueue,a===null?r.updateQueue=new Set([o]):a.add(o),eu(e,o,c)),!1;case 22:return r.flags|=65536,o===nd?r.flags|=16384:(a=r.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},r.updateQueue=a):(r=a.retryQueue,r===null?a.retryQueue=new Set([o]):r.add(o)),eu(e,o,c)),!1}throw Error(l(435,r.tag))}return eu(e,o,c),Zd(),!1}if(qe)return a=ba.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=c,o!==Qc&&(e=Error(l(422),{cause:o}),Zs(fa(e,r)))):(o!==Qc&&(a=Error(l(423),{cause:o}),Zs(fa(a,r))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=fa(o,r),c=Td(e.stateNode,o,c),id(e,c),ot!==4&&(ot=2)),!1;var u=Error(l(520),{cause:o});if(u=fa(u,r),yi===null?yi=[u]:yi.push(u),ot!==4&&(ot=2),a===null)return!0;o=fa(o,r),r=a;do{switch(r.tag){case 3:return r.flags|=65536,e=c&-c,r.lanes|=e,e=Td(r.stateNode,o,e),id(r,e),!1;case 1:if(a=r.type,u=r.stateNode,(r.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Rn===null||!Rn.has(u))))return r.flags|=65536,c&=-c,r.lanes|=c,c=rp(c),sp(c,e,r,o),id(r,c),!1}r=r.return}while(r!==null);return!1}var ip=Error(l(461)),St=!1;function Et(e,a,r,o){a.child=e===null?Qf(a,null,r,o):os(a,e.child,r,o)}function op(e,a,r,o,c){r=r.render;var u=a.ref;if("ref"in o){var b={};for(var j in o)j!=="ref"&&(b[j]=o[j])}else b=o;return xr(a),o=ud(e,a,r,b,u,c),j=md(),e!==null&&!St?(hd(e,a,c),on(e,a,c)):(qe&&j&&$c(a),a.flags|=1,Et(e,a,o,c),a.child)}function lp(e,a,r,o,c){if(e===null){var u=r.type;return typeof u=="function"&&!Vc(u)&&u.defaultProps===void 0&&r.compare===null?(a.tag=15,a.type=u,cp(e,a,u,o,c)):(e=yo(r.type,null,o,a,a.mode,c),e.ref=a.ref,e.return=a,a.child=e)}if(u=e.child,!_d(e,c)){var b=u.memoizedProps;if(r=r.compare,r=r!==null?r:$s,r(b,o)&&e.ref===a.ref)return on(e,a,c)}return a.flags|=1,e=Ja(u,o),e.ref=a.ref,e.return=a,a.child=e}function cp(e,a,r,o,c){if(e!==null){var u=e.memoizedProps;if($s(u,o)&&e.ref===a.ref)if(St=!1,a.pendingProps=o=u,_d(e,c))(e.flags&131072)!==0&&(St=!0);else return a.lanes=e.lanes,on(e,a,c)}return Cd(e,a,r,o,c)}function dp(e,a,r){var o=a.pendingProps,c=o.children,u=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((a.flags&128)!==0){if(o=u!==null?u.baseLanes|r:r,e!==null){for(c=a.child=e.child,u=0;c!==null;)u=u|c.lanes|c.childLanes,c=c.sibling;a.childLanes=u&~o}else a.childLanes=0,a.child=null;return up(e,a,o,r)}if((r&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&So(a,u!==null?u.cachePool:null),u!==null?cf(a,u):ld(),Xf(a);else return a.lanes=a.childLanes=536870912,up(e,a,u!==null?u.baseLanes|r:r,r)}else u!==null?(So(a,u.cachePool),cf(a,u),Cn(),a.memoizedState=null):(e!==null&&So(a,null),ld(),Cn());return Et(e,a,c,r),a.child}function up(e,a,r,o){var c=ad();return c=c===null?null:{parent:yt._currentValue,pool:c},a.memoizedState={baseLanes:r,cachePool:c},e!==null&&So(a,null),ld(),Xf(a),e!==null&&Js(e,a,o,!0),null}function Bo(e,a){var r=a.ref;if(r===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(e===null||e.ref!==r)&&(a.flags|=4194816)}}function Cd(e,a,r,o,c){return xr(a),r=ud(e,a,r,o,void 0,c),o=md(),e!==null&&!St?(hd(e,a,c),on(e,a,c)):(qe&&o&&$c(a),a.flags|=1,Et(e,a,r,c),a.child)}function mp(e,a,r,o,c,u){return xr(a),a.updateQueue=null,r=uf(a,o,r,c),df(e),o=md(),e!==null&&!St?(hd(e,a,u),on(e,a,u)):(qe&&o&&$c(a),a.flags|=1,Et(e,a,r,u),a.child)}function hp(e,a,r,o,c){if(xr(a),a.stateNode===null){var u=Xr,b=r.contextType;typeof b=="object"&&b!==null&&(u=Rt(b)),u=new r(o,u),a.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ad,a.stateNode=u,u._reactInternals=a,u=a.stateNode,u.props=o,u.state=a.memoizedState,u.refs={},rd(a),b=r.contextType,u.context=typeof b=="object"&&b!==null?Rt(b):Xr,u.state=a.memoizedState,b=r.getDerivedStateFromProps,typeof b=="function"&&(Md(a,r,b,o),u.state=a.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(b=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),b!==u.state&&Ad.enqueueReplaceState(u,u.state,null),ii(a,o,u,c),si(),u.state=a.memoizedState),typeof u.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(e===null){u=a.stateNode;var j=a.memoizedProps,C=yr(r,j);u.props=C;var U=u.context,$=r.contextType;b=Xr,typeof $=="object"&&$!==null&&(b=Rt($));var X=r.getDerivedStateFromProps;$=typeof X=="function"||typeof u.getSnapshotBeforeUpdate=="function",j=a.pendingProps!==j,$||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(j||U!==b)&&Jf(a,u,o,b),Sn=!1;var W=a.memoizedState;u.state=W,ii(a,o,u,c),si(),U=a.memoizedState,j||W!==U||Sn?(typeof X=="function"&&(Md(a,r,X,o),U=a.memoizedState),(C=Sn||Zf(a,r,C,o,W,U,b))?($||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(a.flags|=4194308)):(typeof u.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=U),u.props=o,u.state=U,u.context=b,o=C):(typeof u.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{u=a.stateNode,sd(e,a),b=a.memoizedProps,$=yr(r,b),u.props=$,X=a.pendingProps,W=u.context,U=r.contextType,C=Xr,typeof U=="object"&&U!==null&&(C=Rt(U)),j=r.getDerivedStateFromProps,(U=typeof j=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b!==X||W!==C)&&Jf(a,u,o,C),Sn=!1,W=a.memoizedState,u.state=W,ii(a,o,u,c),si();var I=a.memoizedState;b!==X||W!==I||Sn||e!==null&&e.dependencies!==null&&jo(e.dependencies)?(typeof j=="function"&&(Md(a,r,j,o),I=a.memoizedState),($=Sn||Zf(a,r,$,o,W,I,C)||e!==null&&e.dependencies!==null&&jo(e.dependencies))?(U||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(o,I,C),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(o,I,C)),typeof u.componentDidUpdate=="function"&&(a.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof u.componentDidUpdate!="function"||b===e.memoizedProps&&W===e.memoizedState||(a.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&W===e.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=I),u.props=o,u.state=I,u.context=C,o=$):(typeof u.componentDidUpdate!="function"||b===e.memoizedProps&&W===e.memoizedState||(a.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&W===e.memoizedState||(a.flags|=1024),o=!1)}return u=o,Bo(e,a),o=(a.flags&128)!==0,u||o?(u=a.stateNode,r=o&&typeof r.getDerivedStateFromError!="function"?null:u.render(),a.flags|=1,e!==null&&o?(a.child=os(a,e.child,null,c),a.child=os(a,null,r,c)):Et(e,a,r,c),a.memoizedState=u.state,e=a.child):e=on(e,a,c),e}function fp(e,a,r,o){return Xs(),a.flags|=256,Et(e,a,r,o),a.child}var Ed={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hd(e){return{baseLanes:e,cachePool:ef()}}function Od(e,a,r){return e=e!==null?e.childLanes&~r:0,a&&(e|=ya),e}function pp(e,a,r){var o=a.pendingProps,c=!1,u=(a.flags&128)!==0,b;if((b=u)||(b=e!==null&&e.memoizedState===null?!1:(vt.current&2)!==0),b&&(c=!0,a.flags&=-129),b=(a.flags&32)!==0,a.flags&=-33,e===null){if(qe){if(c?Tn(a):Cn(),qe){var j=it,C;if(C=j){e:{for(C=j,j=za;C.nodeType!==8;){if(!j){j=null;break e}if(C=Ea(C.nextSibling),C===null){j=null;break e}}j=C}j!==null?(a.memoizedState={dehydrated:j,treeContext:ur!==null?{id:en,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},C=aa(18,null,null,0),C.stateNode=j,C.return=a,a.child=C,Ut=a,it=null,C=!0):C=!1}C||fr(a)}if(j=a.memoizedState,j!==null&&(j=j.dehydrated,j!==null))return pu(j)?a.lanes=32:a.lanes=536870912,null;sn(a)}return j=o.children,o=o.fallback,c?(Cn(),c=a.mode,j=qo({mode:"hidden",children:j},c),o=dr(o,c,r,null),j.return=a,o.return=a,j.sibling=o,a.child=j,c=a.child,c.memoizedState=Hd(r),c.childLanes=Od(e,b,r),a.memoizedState=Ed,o):(Tn(a),Dd(a,j))}if(C=e.memoizedState,C!==null&&(j=C.dehydrated,j!==null)){if(u)a.flags&256?(Tn(a),a.flags&=-257,a=Pd(e,a,r)):a.memoizedState!==null?(Cn(),a.child=e.child,a.flags|=128,a=null):(Cn(),c=o.fallback,j=a.mode,o=qo({mode:"visible",children:o.children},j),c=dr(c,j,r,null),c.flags|=2,o.return=a,c.return=a,o.sibling=c,a.child=o,os(a,e.child,null,r),o=a.child,o.memoizedState=Hd(r),o.childLanes=Od(e,b,r),a.memoizedState=Ed,a=c);else if(Tn(a),pu(j)){if(b=j.nextSibling&&j.nextSibling.dataset,b)var U=b.dgst;b=U,o=Error(l(419)),o.stack="",o.digest=b,Zs({value:o,source:null,stack:null}),a=Pd(e,a,r)}else if(St||Js(e,a,r,!1),b=(r&e.childLanes)!==0,St||b){if(b=Je,b!==null&&(o=r&-r,o=(o&42)!==0?1:Se(o),o=(o&(b.suspendedLanes|r))!==0?0:o,o!==0&&o!==C.retryLane))throw C.retryLane=o,Qr(e,o),oa(b,e,o),ip;j.data==="$?"||Zd(),a=Pd(e,a,r)}else j.data==="$?"?(a.flags|=192,a.child=e.child,a=null):(e=C.treeContext,it=Ea(j.nextSibling),Ut=a,qe=!0,hr=null,za=!1,e!==null&&(xa[ga++]=en,xa[ga++]=tn,xa[ga++]=ur,en=e.id,tn=e.overflow,ur=a),a=Dd(a,o.children),a.flags|=4096);return a}return c?(Cn(),c=o.fallback,j=a.mode,C=e.child,U=C.sibling,o=Ja(C,{mode:"hidden",children:o.children}),o.subtreeFlags=C.subtreeFlags&65011712,U!==null?c=Ja(U,c):(c=dr(c,j,r,null),c.flags|=2),c.return=a,o.return=a,o.sibling=c,a.child=o,o=c,c=a.child,j=e.child.memoizedState,j===null?j=Hd(r):(C=j.cachePool,C!==null?(U=yt._currentValue,C=C.parent!==U?{parent:U,pool:U}:C):C=ef(),j={baseLanes:j.baseLanes|r,cachePool:C}),c.memoizedState=j,c.childLanes=Od(e,b,r),a.memoizedState=Ed,o):(Tn(a),r=e.child,e=r.sibling,r=Ja(r,{mode:"visible",children:o.children}),r.return=a,r.sibling=null,e!==null&&(b=a.deletions,b===null?(a.deletions=[e],a.flags|=16):b.push(e)),a.child=r,a.memoizedState=null,r)}function Dd(e,a){return a=qo({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function qo(e,a){return e=aa(22,e,null,a),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Pd(e,a,r){return os(a,e.child,null,r),e=Dd(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function xp(e,a,r){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a),Zc(e.return,a,r)}function Rd(e,a,r,o,c){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:c}:(u.isBackwards=a,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=r,u.tailMode=c)}function gp(e,a,r){var o=a.pendingProps,c=o.revealOrder,u=o.tail;if(Et(e,a,o.children,r),o=vt.current,(o&2)!==0)o=o&1|2,a.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xp(e,r,a);else if(e.tag===19)xp(e,r,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(ae(vt,o),c){case"forwards":for(r=a.child,c=null;r!==null;)e=r.alternate,e!==null&&zo(e)===null&&(c=r),r=r.sibling;r=c,r===null?(c=a.child,a.child=null):(c=r.sibling,r.sibling=null),Rd(a,!1,c,r,u);break;case"backwards":for(r=null,c=a.child,a.child=null;c!==null;){if(e=c.alternate,e!==null&&zo(e)===null){a.child=c;break}e=c.sibling,c.sibling=r,r=c,c=e}Rd(a,!0,r,null,u);break;case"together":Rd(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function on(e,a,r){if(e!==null&&(a.dependencies=e.dependencies),Pn|=a.lanes,(r&a.childLanes)===0)if(e!==null){if(Js(e,a,r,!1),(r&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(l(153));if(a.child!==null){for(e=a.child,r=Ja(e,e.pendingProps),a.child=r,r.return=a;e.sibling!==null;)e=e.sibling,r=r.sibling=Ja(e,e.pendingProps),r.return=a;r.sibling=null}return a.child}function _d(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&jo(e)))}function sw(e,a,r){switch(a.tag){case 3:we(a,a.stateNode.containerInfo),Nn(a,yt,e.memoizedState.cache),Xs();break;case 27:case 5:ht(a);break;case 4:we(a,a.stateNode.containerInfo);break;case 10:Nn(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Tn(a),a.flags|=128,null):(r&a.child.childLanes)!==0?pp(e,a,r):(Tn(a),e=on(e,a,r),e!==null?e.sibling:null);Tn(a);break;case 19:var c=(e.flags&128)!==0;if(o=(r&a.childLanes)!==0,o||(Js(e,a,r,!1),o=(r&a.childLanes)!==0),c){if(o)return gp(e,a,r);a.flags|=128}if(c=a.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ae(vt,vt.current),o)break;return null;case 22:case 23:return a.lanes=0,dp(e,a,r);case 24:Nn(a,yt,e.memoizedState.cache)}return on(e,a,r)}function bp(e,a,r){if(e!==null)if(e.memoizedProps!==a.pendingProps)St=!0;else{if(!_d(e,r)&&(a.flags&128)===0)return St=!1,sw(e,a,r);St=(e.flags&131072)!==0}else St=!1,qe&&(a.flags&1048576)!==0&&Yh(a,wo,a.index);switch(a.lanes=0,a.tag){case 16:e:{e=a.pendingProps;var o=a.elementType,c=o._init;if(o=c(o._payload),a.type=o,typeof o=="function")Vc(o)?(e=yr(o,e),a.tag=1,a=hp(null,a,o,e,r)):(a.tag=0,a=Cd(null,a,o,e,r));else{if(o!=null){if(c=o.$$typeof,c===P){a.tag=11,a=op(null,a,o,e,r);break e}else if(c===Z){a.tag=14,a=lp(null,a,o,e,r);break e}}throw a=te(o)||o,Error(l(306,a,""))}}return a;case 0:return Cd(e,a,a.type,a.pendingProps,r);case 1:return o=a.type,c=yr(o,a.pendingProps),hp(e,a,o,c,r);case 3:e:{if(we(a,a.stateNode.containerInfo),e===null)throw Error(l(387));o=a.pendingProps;var u=a.memoizedState;c=u.element,sd(e,a),ii(a,o,null,r);var b=a.memoizedState;if(o=b.cache,Nn(a,yt,o),o!==u.cache&&Jc(a,[yt],r,!0),si(),o=b.element,u.isDehydrated)if(u={element:o,isDehydrated:!1,cache:b.cache},a.updateQueue.baseState=u,a.memoizedState=u,a.flags&256){a=fp(e,a,o,r);break e}else if(o!==c){c=fa(Error(l(424)),a),Zs(c),a=fp(e,a,o,r);break e}else for(e=a.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,it=Ea(e.firstChild),Ut=a,qe=!0,hr=null,za=!0,r=Qf(a,null,o,r),a.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Xs(),o===c){a=on(e,a,r);break e}Et(e,a,o,r)}a=a.child}return a;case 26:return Bo(e,a),e===null?(r=jx(a.type,null,a.pendingProps,null))?a.memoizedState=r:qe||(r=a.type,e=a.pendingProps,o=al(ee.current).createElement(r),o[Pt]=a,o[Vt]=e,Ot(o,r,e),Nt(o),a.stateNode=o):a.memoizedState=jx(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return ht(a),e===null&&qe&&(o=a.stateNode=yx(a.type,a.pendingProps,ee.current),Ut=a,za=!0,c=it,zn(a.type)?(xu=c,it=Ea(o.firstChild)):it=c),Et(e,a,a.pendingProps.children,r),Bo(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&qe&&((c=o=it)&&(o=Dw(o,a.type,a.pendingProps,za),o!==null?(a.stateNode=o,Ut=a,it=Ea(o.firstChild),za=!1,c=!0):c=!1),c||fr(a)),ht(a),c=a.type,u=a.pendingProps,b=e!==null?e.memoizedProps:null,o=u.children,mu(c,u)?o=null:b!==null&&mu(c,b)&&(a.flags|=32),a.memoizedState!==null&&(c=ud(e,a,Xv,null,null,r),Ti._currentValue=c),Bo(e,a),Et(e,a,o,r),a.child;case 6:return e===null&&qe&&((e=r=it)&&(r=Pw(r,a.pendingProps,za),r!==null?(a.stateNode=r,Ut=a,it=null,e=!0):e=!1),e||fr(a)),null;case 13:return pp(e,a,r);case 4:return we(a,a.stateNode.containerInfo),o=a.pendingProps,e===null?a.child=os(a,null,o,r):Et(e,a,o,r),a.child;case 11:return op(e,a,a.type,a.pendingProps,r);case 7:return Et(e,a,a.pendingProps,r),a.child;case 8:return Et(e,a,a.pendingProps.children,r),a.child;case 12:return Et(e,a,a.pendingProps.children,r),a.child;case 10:return o=a.pendingProps,Nn(a,a.type,o.value),Et(e,a,o.children,r),a.child;case 9:return c=a.type._context,o=a.pendingProps.children,xr(a),c=Rt(c),o=o(c),a.flags|=1,Et(e,a,o,r),a.child;case 14:return lp(e,a,a.type,a.pendingProps,r);case 15:return cp(e,a,a.type,a.pendingProps,r);case 19:return gp(e,a,r);case 31:return o=a.pendingProps,r=a.mode,o={mode:o.mode,children:o.children},e===null?(r=qo(o,r),r.ref=a.ref,a.child=r,r.return=a,a=r):(r=Ja(e.child,o),r.ref=a.ref,a.child=r,r.return=a,a=r),a;case 22:return dp(e,a,r);case 24:return xr(a),o=Rt(yt),e===null?(c=ad(),c===null&&(c=Je,u=ed(),c.pooledCache=u,u.refCount++,u!==null&&(c.pooledCacheLanes|=r),c=u),a.memoizedState={parent:o,cache:c},rd(a),Nn(a,yt,c)):((e.lanes&r)!==0&&(sd(e,a),ii(a,null,null,r),si()),c=e.memoizedState,u=a.memoizedState,c.parent!==o?(c={parent:o,cache:o},a.memoizedState=c,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=c),Nn(a,yt,o)):(o=u.cache,Nn(a,yt,o),o!==c.cache&&Jc(a,[yt],r,!0))),Et(e,a,a.pendingProps.children,r),a.child;case 29:throw a.pendingProps}throw Error(l(156,a.tag))}function ln(e){e.flags|=4}function yp(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ax(a)){if(a=ba.current,a!==null&&((Ue&4194048)===Ue?Ua!==null:(Ue&62914560)!==Ue&&(Ue&536870912)===0||a!==Ua))throw ni=nd,tf;e.flags|=8192}}function Wo(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?Ze():536870912,e.lanes|=a,us|=a)}function hi(e,a){if(!qe)switch(e.tailMode){case"hidden":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function rt(e){var a=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(a)for(var c=e.child;c!==null;)r|=c.lanes|c.childLanes,o|=c.subtreeFlags&65011712,o|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)r|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=r,a}function iw(e,a,r){var o=a.pendingProps;switch(Kc(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(a),null;case 1:return rt(a),null;case 3:return r=a.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),nn(yt),De(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Qs(a)?ln(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Qh())),rt(a),null;case 26:return r=a.memoizedState,e===null?(ln(a),r!==null?(rt(a),yp(a,r)):(rt(a),a.flags&=-16777217)):r?r!==e.memoizedState?(ln(a),rt(a),yp(a,r)):(rt(a),a.flags&=-16777217):(e.memoizedProps!==o&&ln(a),rt(a),a.flags&=-16777217),null;case 27:gt(a),r=ee.current;var c=a.type;if(e!==null&&a.stateNode!=null)e.memoizedProps!==o&&ln(a);else{if(!o){if(a.stateNode===null)throw Error(l(166));return rt(a),null}e=se.current,Qs(a)?$h(a):(e=yx(c,o,r),a.stateNode=e,ln(a))}return rt(a),null;case 5:if(gt(a),r=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==o&&ln(a);else{if(!o){if(a.stateNode===null)throw Error(l(166));return rt(a),null}if(e=se.current,Qs(a))$h(a);else{switch(c=al(ee.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?c.createElement("select",{is:o.is}):c.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?c.createElement(r,{is:o.is}):c.createElement(r)}}e[Pt]=a,e[Vt]=o;e:for(c=a.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===a)break e;for(;c.sibling===null;){if(c.return===null||c.return===a)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}a.stateNode=e;e:switch(Ot(e,r,o),r){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ln(a)}}return rt(a),a.flags&=-16777217,null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==o&&ln(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(l(166));if(e=ee.current,Qs(a)){if(e=a.stateNode,r=a.memoizedProps,o=null,c=Ut,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}e[Pt]=a,e=!!(e.nodeValue===r||o!==null&&o.suppressHydrationWarning===!0||mx(e.nodeValue,r)),e||fr(a)}else e=al(e).createTextNode(o),e[Pt]=a,a.stateNode=e}return rt(a),null;case 13:if(o=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Qs(a),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(l(318));if(c=a.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(l(317));c[Pt]=a}else Xs(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;rt(a),c=!1}else c=Qh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return a.flags&256?(sn(a),a):(sn(a),null)}if(sn(a),(a.flags&128)!==0)return a.lanes=r,a;if(r=o!==null,e=e!==null&&e.memoizedState!==null,r){o=a.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool);var u=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),u!==c&&(o.flags|=2048)}return r!==e&&r&&(a.child.flags|=8192),Wo(a,a.updateQueue),rt(a),null;case 4:return De(),e===null&&ou(a.stateNode.containerInfo),rt(a),null;case 10:return nn(a.type),rt(a),null;case 19:if(ne(vt),c=a.memoizedState,c===null)return rt(a),null;if(o=(a.flags&128)!==0,u=c.rendering,u===null)if(o)hi(c,!1);else{if(ot!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(u=zo(e),u!==null){for(a.flags|=128,hi(c,!1),e=u.updateQueue,a.updateQueue=e,Wo(a,e),a.subtreeFlags=0,e=r,r=a.child;r!==null;)Gh(r,e),r=r.sibling;return ae(vt,vt.current&1|2),a.child}e=e.sibling}c.tail!==null&&Ye()>Go&&(a.flags|=128,o=!0,hi(c,!1),a.lanes=4194304)}else{if(!o)if(e=zo(u),e!==null){if(a.flags|=128,o=!0,e=e.updateQueue,a.updateQueue=e,Wo(a,e),hi(c,!0),c.tail===null&&c.tailMode==="hidden"&&!u.alternate&&!qe)return rt(a),null}else 2*Ye()-c.renderingStartTime>Go&&r!==536870912&&(a.flags|=128,o=!0,hi(c,!1),a.lanes=4194304);c.isBackwards?(u.sibling=a.child,a.child=u):(e=c.last,e!==null?e.sibling=u:a.child=u,c.last=u)}return c.tail!==null?(a=c.tail,c.rendering=a,c.tail=a.sibling,c.renderingStartTime=Ye(),a.sibling=null,e=vt.current,ae(vt,o?e&1|2:e&1),a):(rt(a),null);case 22:case 23:return sn(a),cd(),o=a.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(r&536870912)!==0&&(a.flags&128)===0&&(rt(a),a.subtreeFlags&6&&(a.flags|=8192)):rt(a),r=a.updateQueue,r!==null&&Wo(a,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==r&&(a.flags|=2048),e!==null&&ne(gr),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),a.memoizedState.cache!==r&&(a.flags|=2048),nn(yt),rt(a),null;case 25:return null;case 30:return null}throw Error(l(156,a.tag))}function ow(e,a){switch(Kc(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return nn(yt),De(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return gt(a),null;case 13:if(sn(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(l(340));Xs()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return ne(vt),null;case 4:return De(),null;case 10:return nn(a.type),null;case 22:case 23:return sn(a),cd(),e!==null&&ne(gr),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return nn(yt),null;case 25:return null;default:return null}}function vp(e,a){switch(Kc(a),a.tag){case 3:nn(yt),De();break;case 26:case 27:case 5:gt(a);break;case 4:De();break;case 13:sn(a);break;case 19:ne(vt);break;case 10:nn(a.type);break;case 22:case 23:sn(a),cd(),e!==null&&ne(gr);break;case 24:nn(yt)}}function fi(e,a){try{var r=a.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var c=o.next;r=c;do{if((r.tag&e)===e){o=void 0;var u=r.create,b=r.inst;o=u(),b.destroy=o}r=r.next}while(r!==c)}}catch(j){Xe(a,a.return,j)}}function En(e,a,r){try{var o=a.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var u=c.next;o=u;do{if((o.tag&e)===e){var b=o.inst,j=b.destroy;if(j!==void 0){b.destroy=void 0,c=a;var C=r,U=j;try{U()}catch($){Xe(c,C,$)}}}o=o.next}while(o!==u)}}catch($){Xe(a,a.return,$)}}function wp(e){var a=e.updateQueue;if(a!==null){var r=e.stateNode;try{lf(a,r)}catch(o){Xe(e,e.return,o)}}}function jp(e,a,r){r.props=yr(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(o){Xe(e,a,o)}}function pi(e,a){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof r=="function"?e.refCleanup=r(o):r.current=o}}catch(c){Xe(e,a,c)}}function Fa(e,a){var r=e.ref,o=e.refCleanup;if(r!==null)if(typeof o=="function")try{o()}catch(c){Xe(e,a,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(c){Xe(e,a,c)}else r.current=null}function Np(e){var a=e.type,r=e.memoizedProps,o=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":r.autoFocus&&o.focus();break e;case"img":r.src?o.src=r.src:r.srcSet&&(o.srcset=r.srcSet)}}catch(c){Xe(e,e.return,c)}}function Ld(e,a,r){try{var o=e.stateNode;Tw(o,e.type,r,a),o[Vt]=a}catch(c){Xe(e,e.return,c)}}function Sp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zn(e.type)||e.tag===4}function zd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&zn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ud(e,a,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,a?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,a):(a=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,a.appendChild(e),r=r._reactRootContainer,r!=null||a.onclick!==null||(a.onclick=tl));else if(o!==4&&(o===27&&zn(e.type)&&(r=e.stateNode,a=null),e=e.child,e!==null))for(Ud(e,a,r),e=e.sibling;e!==null;)Ud(e,a,r),e=e.sibling}function Io(e,a,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,a?r.insertBefore(e,a):r.appendChild(e);else if(o!==4&&(o===27&&zn(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Io(e,a,r),e=e.sibling;e!==null;)Io(e,a,r),e=e.sibling}function kp(e){var a=e.stateNode,r=e.memoizedProps;try{for(var o=e.type,c=a.attributes;c.length;)a.removeAttributeNode(c[0]);Ot(a,o,r),a[Pt]=e,a[Vt]=r}catch(u){Xe(e,e.return,u)}}var cn=!1,ut=!1,Fd=!1,Mp=typeof WeakSet=="function"?WeakSet:Set,kt=null;function lw(e,a){if(e=e.containerInfo,du=ll,e=_h(e),zc(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var c=o.anchorOffset,u=o.focusNode;o=o.focusOffset;try{r.nodeType,u.nodeType}catch{r=null;break e}var b=0,j=-1,C=-1,U=0,$=0,X=e,W=null;t:for(;;){for(var I;X!==r||c!==0&&X.nodeType!==3||(j=b+c),X!==u||o!==0&&X.nodeType!==3||(C=b+o),X.nodeType===3&&(b+=X.nodeValue.length),(I=X.firstChild)!==null;)W=X,X=I;for(;;){if(X===e)break t;if(W===r&&++U===c&&(j=b),W===u&&++$===o&&(C=b),(I=X.nextSibling)!==null)break;X=W,W=X.parentNode}X=I}r=j===-1||C===-1?null:{start:j,end:C}}else r=null}r=r||{start:0,end:0}}else r=null;for(uu={focusedElem:e,selectionRange:r},ll=!1,kt=a;kt!==null;)if(a=kt,e=a.child,(a.subtreeFlags&1024)!==0&&e!==null)e.return=a,kt=e;else for(;kt!==null;){switch(a=kt,u=a.alternate,e=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,r=a,c=u.memoizedProps,u=u.memoizedState,o=r.stateNode;try{var ke=yr(r.type,c,r.elementType===r.type);e=o.getSnapshotBeforeUpdate(ke,u),o.__reactInternalSnapshotBeforeUpdate=e}catch(ve){Xe(r,r.return,ve)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,r=e.nodeType,r===9)fu(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=a.sibling,e!==null){e.return=a.return,kt=e;break}kt=a.return}}function Ap(e,a,r){var o=r.flags;switch(r.tag){case 0:case 11:case 15:Hn(e,r),o&4&&fi(5,r);break;case 1:if(Hn(e,r),o&4)if(e=r.stateNode,a===null)try{e.componentDidMount()}catch(b){Xe(r,r.return,b)}else{var c=yr(r.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(c,a,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Xe(r,r.return,b)}}o&64&&wp(r),o&512&&pi(r,r.return);break;case 3:if(Hn(e,r),o&64&&(e=r.updateQueue,e!==null)){if(a=null,r.child!==null)switch(r.child.tag){case 27:case 5:a=r.child.stateNode;break;case 1:a=r.child.stateNode}try{lf(e,a)}catch(b){Xe(r,r.return,b)}}break;case 27:a===null&&o&4&&kp(r);case 26:case 5:Hn(e,r),a===null&&o&4&&Np(r),o&512&&pi(r,r.return);break;case 12:Hn(e,r);break;case 13:Hn(e,r),o&4&&Ep(e,r),o&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=gw.bind(null,r),Rw(e,r))));break;case 22:if(o=r.memoizedState!==null||cn,!o){a=a!==null&&a.memoizedState!==null||ut,c=cn;var u=ut;cn=o,(ut=a)&&!u?On(e,r,(r.subtreeFlags&8772)!==0):Hn(e,r),cn=c,ut=u}break;case 30:break;default:Hn(e,r)}}function Tp(e){var a=e.alternate;a!==null&&(e.alternate=null,Tp(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&yc(a)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var tt=null,$t=!1;function dn(e,a,r){for(r=r.child;r!==null;)Cp(e,a,r),r=r.sibling}function Cp(e,a,r){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(wn,r)}catch{}switch(r.tag){case 26:ut||Fa(r,a),dn(e,a,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:ut||Fa(r,a);var o=tt,c=$t;zn(r.type)&&(tt=r.stateNode,$t=!1),dn(e,a,r),Si(r.stateNode),tt=o,$t=c;break;case 5:ut||Fa(r,a);case 6:if(o=tt,c=$t,tt=null,dn(e,a,r),tt=o,$t=c,tt!==null)if($t)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(r.stateNode)}catch(u){Xe(r,a,u)}else try{tt.removeChild(r.stateNode)}catch(u){Xe(r,a,u)}break;case 18:tt!==null&&($t?(e=tt,gx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Oi(e)):gx(tt,r.stateNode));break;case 4:o=tt,c=$t,tt=r.stateNode.containerInfo,$t=!0,dn(e,a,r),tt=o,$t=c;break;case 0:case 11:case 14:case 15:ut||En(2,r,a),ut||En(4,r,a),dn(e,a,r);break;case 1:ut||(Fa(r,a),o=r.stateNode,typeof o.componentWillUnmount=="function"&&jp(r,a,o)),dn(e,a,r);break;case 21:dn(e,a,r);break;case 22:ut=(o=ut)||r.memoizedState!==null,dn(e,a,r),ut=o;break;default:dn(e,a,r)}}function Ep(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oi(e)}catch(r){Xe(a,a.return,r)}}function cw(e){switch(e.tag){case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new Mp),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new Mp),a;default:throw Error(l(435,e.tag))}}function Bd(e,a){var r=cw(e);a.forEach(function(o){var c=bw.bind(null,e,o);r.has(o)||(r.add(o),o.then(c,c))})}function na(e,a){var r=a.deletions;if(r!==null)for(var o=0;o<r.length;o++){var c=r[o],u=e,b=a,j=b;e:for(;j!==null;){switch(j.tag){case 27:if(zn(j.type)){tt=j.stateNode,$t=!1;break e}break;case 5:tt=j.stateNode,$t=!1;break e;case 3:case 4:tt=j.stateNode.containerInfo,$t=!0;break e}j=j.return}if(tt===null)throw Error(l(160));Cp(u,b,c),tt=null,$t=!1,u=c.alternate,u!==null&&(u.return=null),c.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Hp(a,e),a=a.sibling}var Ca=null;function Hp(e,a){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:na(a,e),ra(e),o&4&&(En(3,e,e.return),fi(3,e),En(5,e,e.return));break;case 1:na(a,e),ra(e),o&512&&(ut||r===null||Fa(r,r.return)),o&64&&cn&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?o:r.concat(o))));break;case 26:var c=Ca;if(na(a,e),ra(e),o&512&&(ut||r===null||Fa(r,r.return)),o&4){var u=r!==null?r.memoizedState:null;if(o=e.memoizedState,r===null)if(o===null)if(e.stateNode===null){e:{o=e.type,r=e.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":u=c.getElementsByTagName("title")[0],(!u||u[Us]||u[Pt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=c.createElement(o),c.head.insertBefore(u,c.querySelector("head > title"))),Ot(u,o,r),u[Pt]=e,Nt(u),o=u;break e;case"link":var b=kx("link","href",c).get(o+(r.href||""));if(b){for(var j=0;j<b.length;j++)if(u=b[j],u.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&u.getAttribute("rel")===(r.rel==null?null:r.rel)&&u.getAttribute("title")===(r.title==null?null:r.title)&&u.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){b.splice(j,1);break t}}u=c.createElement(o),Ot(u,o,r),c.head.appendChild(u);break;case"meta":if(b=kx("meta","content",c).get(o+(r.content||""))){for(j=0;j<b.length;j++)if(u=b[j],u.getAttribute("content")===(r.content==null?null:""+r.content)&&u.getAttribute("name")===(r.name==null?null:r.name)&&u.getAttribute("property")===(r.property==null?null:r.property)&&u.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&u.getAttribute("charset")===(r.charSet==null?null:r.charSet)){b.splice(j,1);break t}}u=c.createElement(o),Ot(u,o,r),c.head.appendChild(u);break;default:throw Error(l(468,o))}u[Pt]=e,Nt(u),o=u}e.stateNode=o}else Mx(c,e.type,e.stateNode);else e.stateNode=Sx(c,o,e.memoizedProps);else u!==o?(u===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):u.count--,o===null?Mx(c,e.type,e.stateNode):Sx(c,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Ld(e,e.memoizedProps,r.memoizedProps)}break;case 27:na(a,e),ra(e),o&512&&(ut||r===null||Fa(r,r.return)),r!==null&&o&4&&Ld(e,e.memoizedProps,r.memoizedProps);break;case 5:if(na(a,e),ra(e),o&512&&(ut||r===null||Fa(r,r.return)),e.flags&32){c=e.stateNode;try{Wr(c,"")}catch(I){Xe(e,e.return,I)}}o&4&&e.stateNode!=null&&(c=e.memoizedProps,Ld(e,c,r!==null?r.memoizedProps:c)),o&1024&&(Fd=!0);break;case 6:if(na(a,e),ra(e),o&4){if(e.stateNode===null)throw Error(l(162));o=e.memoizedProps,r=e.stateNode;try{r.nodeValue=o}catch(I){Xe(e,e.return,I)}}break;case 3:if(sl=null,c=Ca,Ca=nl(a.containerInfo),na(a,e),Ca=c,ra(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{Oi(a.containerInfo)}catch(I){Xe(e,e.return,I)}Fd&&(Fd=!1,Op(e));break;case 4:o=Ca,Ca=nl(e.stateNode.containerInfo),na(a,e),ra(e),Ca=o;break;case 12:na(a,e),ra(e);break;case 13:na(a,e),ra(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Yd=Ye()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Bd(e,o)));break;case 22:c=e.memoizedState!==null;var C=r!==null&&r.memoizedState!==null,U=cn,$=ut;if(cn=U||c,ut=$||C,na(a,e),ut=$,cn=U,ra(e),o&8192)e:for(a=e.stateNode,a._visibility=c?a._visibility&-2:a._visibility|1,c&&(r===null||C||cn||ut||vr(e)),r=null,a=e;;){if(a.tag===5||a.tag===26){if(r===null){C=r=a;try{if(u=C.stateNode,c)b=u.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{j=C.stateNode;var X=C.memoizedProps.style,W=X!=null&&X.hasOwnProperty("display")?X.display:null;j.style.display=W==null||typeof W=="boolean"?"":(""+W).trim()}}catch(I){Xe(C,C.return,I)}}}else if(a.tag===6){if(r===null){C=a;try{C.stateNode.nodeValue=c?"":C.memoizedProps}catch(I){Xe(C,C.return,I)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;r===a&&(r=null),a=a.return}r===a&&(r=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=e.updateQueue,o!==null&&(r=o.retryQueue,r!==null&&(o.retryQueue=null,Bd(e,r))));break;case 19:na(a,e),ra(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Bd(e,o)));break;case 30:break;case 21:break;default:na(a,e),ra(e)}}function ra(e){var a=e.flags;if(a&2){try{for(var r,o=e.return;o!==null;){if(Sp(o)){r=o;break}o=o.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var c=r.stateNode,u=zd(e);Io(e,u,c);break;case 5:var b=r.stateNode;r.flags&32&&(Wr(b,""),r.flags&=-33);var j=zd(e);Io(e,j,b);break;case 3:case 4:var C=r.stateNode.containerInfo,U=zd(e);Ud(e,U,C);break;default:throw Error(l(161))}}catch($){Xe(e,e.return,$)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function Op(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;Op(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function Hn(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Ap(e,a.alternate,a),a=a.sibling}function vr(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:En(4,a,a.return),vr(a);break;case 1:Fa(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount=="function"&&jp(a,a.return,r),vr(a);break;case 27:Si(a.stateNode);case 26:case 5:Fa(a,a.return),vr(a);break;case 22:a.memoizedState===null&&vr(a);break;case 30:vr(a);break;default:vr(a)}e=e.sibling}}function On(e,a,r){for(r=r&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,c=e,u=a,b=u.flags;switch(u.tag){case 0:case 11:case 15:On(c,u,r),fi(4,u);break;case 1:if(On(c,u,r),o=u,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(U){Xe(o,o.return,U)}if(o=u,c=o.updateQueue,c!==null){var j=o.stateNode;try{var C=c.shared.hiddenCallbacks;if(C!==null)for(c.shared.hiddenCallbacks=null,c=0;c<C.length;c++)of(C[c],j)}catch(U){Xe(o,o.return,U)}}r&&b&64&&wp(u),pi(u,u.return);break;case 27:kp(u);case 26:case 5:On(c,u,r),r&&o===null&&b&4&&Np(u),pi(u,u.return);break;case 12:On(c,u,r);break;case 13:On(c,u,r),r&&b&4&&Ep(c,u);break;case 22:u.memoizedState===null&&On(c,u,r),pi(u,u.return);break;case 30:break;default:On(c,u,r)}a=a.sibling}}function qd(e,a){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&ei(r))}function Wd(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&ei(e))}function Ba(e,a,r,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Dp(e,a,r,o),a=a.sibling}function Dp(e,a,r,o){var c=a.flags;switch(a.tag){case 0:case 11:case 15:Ba(e,a,r,o),c&2048&&fi(9,a);break;case 1:Ba(e,a,r,o);break;case 3:Ba(e,a,r,o),c&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&ei(e)));break;case 12:if(c&2048){Ba(e,a,r,o),e=a.stateNode;try{var u=a.memoizedProps,b=u.id,j=u.onPostCommit;typeof j=="function"&&j(b,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Xe(a,a.return,C)}}else Ba(e,a,r,o);break;case 13:Ba(e,a,r,o);break;case 23:break;case 22:u=a.stateNode,b=a.alternate,a.memoizedState!==null?u._visibility&2?Ba(e,a,r,o):xi(e,a):u._visibility&2?Ba(e,a,r,o):(u._visibility|=2,ls(e,a,r,o,(a.subtreeFlags&10256)!==0)),c&2048&&qd(b,a);break;case 24:Ba(e,a,r,o),c&2048&&Wd(a.alternate,a);break;default:Ba(e,a,r,o)}}function ls(e,a,r,o,c){for(c=c&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var u=e,b=a,j=r,C=o,U=b.flags;switch(b.tag){case 0:case 11:case 15:ls(u,b,j,C,c),fi(8,b);break;case 23:break;case 22:var $=b.stateNode;b.memoizedState!==null?$._visibility&2?ls(u,b,j,C,c):xi(u,b):($._visibility|=2,ls(u,b,j,C,c)),c&&U&2048&&qd(b.alternate,b);break;case 24:ls(u,b,j,C,c),c&&U&2048&&Wd(b.alternate,b);break;default:ls(u,b,j,C,c)}a=a.sibling}}function xi(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var r=e,o=a,c=o.flags;switch(o.tag){case 22:xi(r,o),c&2048&&qd(o.alternate,o);break;case 24:xi(r,o),c&2048&&Wd(o.alternate,o);break;default:xi(r,o)}a=a.sibling}}var gi=8192;function cs(e){if(e.subtreeFlags&gi)for(e=e.child;e!==null;)Pp(e),e=e.sibling}function Pp(e){switch(e.tag){case 26:cs(e),e.flags&gi&&e.memoizedState!==null&&$w(Ca,e.memoizedState,e.memoizedProps);break;case 5:cs(e);break;case 3:case 4:var a=Ca;Ca=nl(e.stateNode.containerInfo),cs(e),Ca=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gi,gi=16777216,cs(e),gi=a):cs(e));break;default:cs(e)}}function Rp(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function bi(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var r=0;r<a.length;r++){var o=a[r];kt=o,Lp(o,e)}Rp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_p(e),e=e.sibling}function _p(e){switch(e.tag){case 0:case 11:case 15:bi(e),e.flags&2048&&En(9,e,e.return);break;case 3:bi(e);break;case 12:bi(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,Vo(e)):bi(e);break;default:bi(e)}}function Vo(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var r=0;r<a.length;r++){var o=a[r];kt=o,Lp(o,e)}Rp(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:En(8,a,a.return),Vo(a);break;case 22:r=a.stateNode,r._visibility&2&&(r._visibility&=-3,Vo(a));break;default:Vo(a)}e=e.sibling}}function Lp(e,a){for(;kt!==null;){var r=kt;switch(r.tag){case 0:case 11:case 15:En(8,r,a);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var o=r.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:ei(r.memoizedState.cache)}if(o=r.child,o!==null)o.return=r,kt=o;else e:for(r=e;kt!==null;){o=kt;var c=o.sibling,u=o.return;if(Tp(o),o===r){kt=null;break e}if(c!==null){c.return=u,kt=c;break e}kt=u}}}var dw={getCacheForType:function(e){var a=Rt(yt),r=a.data.get(e);return r===void 0&&(r=e(),a.data.set(e,r)),r}},uw=typeof WeakMap=="function"?WeakMap:Map,Ie=0,Je=null,Pe=null,Ue=0,Ve=0,sa=null,Dn=!1,ds=!1,Id=!1,un=0,ot=0,Pn=0,wr=0,Vd=0,ya=0,us=0,yi=null,Kt=null,Gd=!1,Yd=0,Go=1/0,Yo=null,Rn=null,Ht=0,_n=null,ms=null,hs=0,$d=0,Kd=null,zp=null,vi=0,Qd=null;function ia(){if((Ie&2)!==0&&Ue!==0)return Ue&-Ue;if(T.T!==null){var e=es;return e!==0?e:nu()}return Aa()}function Up(){ya===0&&(ya=(Ue&536870912)===0||qe?ze():536870912);var e=ba.current;return e!==null&&(e.flags|=32),ya}function oa(e,a,r){(e===Je&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(fs(e,0),Ln(e,Ue,ya,!1)),It(e,r),((Ie&2)===0||e!==Je)&&(e===Je&&((Ie&2)===0&&(wr|=r),ot===4&&Ln(e,Ue,ya,!1)),qa(e))}function Fp(e,a,r){if((Ie&6)!==0)throw Error(l(327));var o=!r&&(a&124)===0&&(a&e.expiredLanes)===0||rr(e,a),c=o?fw(e,a):Jd(e,a,!0),u=o;do{if(c===0){ds&&!o&&Ln(e,a,0,!1);break}else{if(r=e.current.alternate,u&&!mw(r)){c=Jd(e,a,!1),u=!1;continue}if(c===2){if(u=a,e.errorRecoveryDisabledLanes&u)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){a=b;e:{var j=e;c=yi;var C=j.current.memoizedState.isDehydrated;if(C&&(fs(j,b).flags|=256),b=Jd(j,b,!1),b!==2){if(Id&&!C){j.errorRecoveryDisabledLanes|=u,wr|=u,c=4;break e}u=Kt,Kt=c,u!==null&&(Kt===null?Kt=u:Kt.push.apply(Kt,u))}c=b}if(u=!1,c!==2)continue}}if(c===1){fs(e,0),Ln(e,a,0,!0);break}e:{switch(o=e,u=c,u){case 0:case 1:throw Error(l(345));case 4:if((a&4194048)!==a)break;case 6:Ln(o,a,ya,!Dn);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((a&62914560)===a&&(c=Yd+300-Ye(),10<c)){if(Ln(o,a,ya,!Dn),Rr(o,0,!0)!==0)break e;o.timeoutHandle=px(Bp.bind(null,o,r,Kt,Yo,Gd,a,ya,wr,us,Dn,u,2,-0,0),c);break e}Bp(o,r,Kt,Yo,Gd,a,ya,wr,us,Dn,u,0,-0,0)}}break}while(!0);qa(e)}function Bp(e,a,r,o,c,u,b,j,C,U,$,X,W,I){if(e.timeoutHandle=-1,X=a.subtreeFlags,(X&8192||(X&16785408)===16785408)&&(Ai={stylesheets:null,count:0,unsuspend:Yw},Pp(a),X=Kw(),X!==null)){e.cancelPendingCommit=X($p.bind(null,e,a,u,r,o,c,b,j,C,$,1,W,I)),Ln(e,u,b,!U);return}$p(e,a,u,r,o,c,b,j,C)}function mw(e){for(var a=e;;){var r=a.tag;if((r===0||r===11||r===15)&&a.flags&16384&&(r=a.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var o=0;o<r.length;o++){var c=r[o],u=c.getSnapshot;c=c.value;try{if(!ta(u(),c))return!1}catch{return!1}}if(r=a.child,a.subtreeFlags&16384&&r!==null)r.return=a,a=r;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ln(e,a,r,o){a&=~Vd,a&=~wr,e.suspendedLanes|=a,e.pingedLanes&=~a,o&&(e.warmLanes|=a),o=e.expirationTimes;for(var c=a;0<c;){var u=31-nt(c),b=1<<u;o[u]=-1,c&=~b}r!==0&&oe(e,r,a)}function $o(){return(Ie&6)===0?(wi(0),!1):!0}function Xd(){if(Pe!==null){if(Ve===0)var e=Pe.return;else e=Pe,an=pr=null,fd(e),is=null,ui=0,e=Pe;for(;e!==null;)vp(e.alternate,e),e=e.return;Pe=null}}function fs(e,a){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,Ew(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Xd(),Je=e,Pe=r=Ja(e.current,null),Ue=a,Ve=0,sa=null,Dn=!1,ds=rr(e,a),Id=!1,us=ya=Vd=wr=Pn=ot=0,Kt=yi=null,Gd=!1,(a&8)!==0&&(a|=a&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=a;0<o;){var c=31-nt(o),u=1<<c;a|=e[c],o&=~u}return un=a,xo(),r}function qp(e,a){Ce=null,T.H=Ro,a===ai||a===ko?(a=rf(),Ve=3):a===tf?(a=rf(),Ve=4):Ve=a===ip?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,sa=a,Pe===null&&(ot=1,Fo(e,fa(a,e.current)))}function Wp(){var e=T.H;return T.H=Ro,e===null?Ro:e}function Ip(){var e=T.A;return T.A=dw,e}function Zd(){ot=4,Dn||(Ue&4194048)!==Ue&&ba.current!==null||(ds=!0),(Pn&134217727)===0&&(wr&134217727)===0||Je===null||Ln(Je,Ue,ya,!1)}function Jd(e,a,r){var o=Ie;Ie|=2;var c=Wp(),u=Ip();(Je!==e||Ue!==a)&&(Yo=null,fs(e,a)),a=!1;var b=ot;e:do try{if(Ve!==0&&Pe!==null){var j=Pe,C=sa;switch(Ve){case 8:Xd(),b=6;break e;case 3:case 2:case 9:case 6:ba.current===null&&(a=!0);var U=Ve;if(Ve=0,sa=null,ps(e,j,C,U),r&&ds){b=0;break e}break;default:U=Ve,Ve=0,sa=null,ps(e,j,C,U)}}hw(),b=ot;break}catch($){qp(e,$)}while(!0);return a&&e.shellSuspendCounter++,an=pr=null,Ie=o,T.H=c,T.A=u,Pe===null&&(Je=null,Ue=0,xo()),b}function hw(){for(;Pe!==null;)Vp(Pe)}function fw(e,a){var r=Ie;Ie|=2;var o=Wp(),c=Ip();Je!==e||Ue!==a?(Yo=null,Go=Ye()+500,fs(e,a)):ds=rr(e,a);e:do try{if(Ve!==0&&Pe!==null){a=Pe;var u=sa;t:switch(Ve){case 1:Ve=0,sa=null,ps(e,a,u,1);break;case 2:case 9:if(af(u)){Ve=0,sa=null,Gp(a);break}a=function(){Ve!==2&&Ve!==9||Je!==e||(Ve=7),qa(e)},u.then(a,a);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:af(u)?(Ve=0,sa=null,Gp(a)):(Ve=0,sa=null,ps(e,a,u,7));break;case 5:var b=null;switch(Pe.tag){case 26:b=Pe.memoizedState;case 5:case 27:var j=Pe;if(!b||Ax(b)){Ve=0,sa=null;var C=j.sibling;if(C!==null)Pe=C;else{var U=j.return;U!==null?(Pe=U,Ko(U)):Pe=null}break t}}Ve=0,sa=null,ps(e,a,u,5);break;case 6:Ve=0,sa=null,ps(e,a,u,6);break;case 8:Xd(),ot=6;break e;default:throw Error(l(462))}}pw();break}catch($){qp(e,$)}while(!0);return an=pr=null,T.H=o,T.A=c,Ie=r,Pe!==null?0:(Je=null,Ue=0,xo(),ot)}function pw(){for(;Pe!==null&&!We();)Vp(Pe)}function Vp(e){var a=bp(e.alternate,e,un);e.memoizedProps=e.pendingProps,a===null?Ko(e):Pe=a}function Gp(e){var a=e,r=a.alternate;switch(a.tag){case 15:case 0:a=mp(r,a,a.pendingProps,a.type,void 0,Ue);break;case 11:a=mp(r,a,a.pendingProps,a.type.render,a.ref,Ue);break;case 5:fd(a);default:vp(r,a),a=Pe=Gh(a,un),a=bp(r,a,un)}e.memoizedProps=e.pendingProps,a===null?Ko(e):Pe=a}function ps(e,a,r,o){an=pr=null,fd(a),is=null,ui=0;var c=a.return;try{if(rw(e,c,a,r,Ue)){ot=1,Fo(e,fa(r,e.current)),Pe=null;return}}catch(u){if(c!==null)throw Pe=c,u;ot=1,Fo(e,fa(r,e.current)),Pe=null;return}a.flags&32768?(qe||o===1?e=!0:ds||(Ue&536870912)!==0?e=!1:(Dn=e=!0,(o===2||o===9||o===3||o===6)&&(o=ba.current,o!==null&&o.tag===13&&(o.flags|=16384))),Yp(a,e)):Ko(a)}function Ko(e){var a=e;do{if((a.flags&32768)!==0){Yp(a,Dn);return}e=a.return;var r=iw(a.alternate,a,un);if(r!==null){Pe=r;return}if(a=a.sibling,a!==null){Pe=a;return}Pe=a=e}while(a!==null);ot===0&&(ot=5)}function Yp(e,a){do{var r=ow(e.alternate,e);if(r!==null){r.flags&=32767,Pe=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!a&&(e=e.sibling,e!==null)){Pe=e;return}Pe=e=r}while(e!==null);ot=6,Pe=null}function $p(e,a,r,o,c,u,b,j,C){e.cancelPendingCommit=null;do Qo();while(Ht!==0);if((Ie&6)!==0)throw Error(l(327));if(a!==null){if(a===e.current)throw Error(l(177));if(u=a.lanes|a.childLanes,u|=Wc,O(e,r,u,b,j,C),e===Je&&(Pe=Je=null,Ue=0),ms=a,_n=e,hs=r,$d=u,Kd=c,zp=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,yw(ar,function(){return Jp(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=T.T,T.T=null,c=F.p,F.p=2,b=Ie,Ie|=4;try{lw(e,a,r)}finally{Ie=b,F.p=c,T.T=o}}Ht=1,Kp(),Qp(),Xp()}}function Kp(){if(Ht===1){Ht=0;var e=_n,a=ms,r=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||r){r=T.T,T.T=null;var o=F.p;F.p=2;var c=Ie;Ie|=4;try{Hp(a,e);var u=uu,b=_h(e.containerInfo),j=u.focusedElem,C=u.selectionRange;if(b!==j&&j&&j.ownerDocument&&Rh(j.ownerDocument.documentElement,j)){if(C!==null&&zc(j)){var U=C.start,$=C.end;if($===void 0&&($=U),"selectionStart"in j)j.selectionStart=U,j.selectionEnd=Math.min($,j.value.length);else{var X=j.ownerDocument||document,W=X&&X.defaultView||window;if(W.getSelection){var I=W.getSelection(),ke=j.textContent.length,ve=Math.min(C.start,ke),Qe=C.end===void 0?ve:Math.min(C.end,ke);!I.extend&&ve>Qe&&(b=Qe,Qe=ve,ve=b);var R=Ph(j,ve),D=Ph(j,Qe);if(R&&D&&(I.rangeCount!==1||I.anchorNode!==R.node||I.anchorOffset!==R.offset||I.focusNode!==D.node||I.focusOffset!==D.offset)){var _=X.createRange();_.setStart(R.node,R.offset),I.removeAllRanges(),ve>Qe?(I.addRange(_),I.extend(D.node,D.offset)):(_.setEnd(D.node,D.offset),I.addRange(_))}}}}for(X=[],I=j;I=I.parentNode;)I.nodeType===1&&X.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<X.length;j++){var Q=X[j];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}ll=!!du,uu=du=null}finally{Ie=c,F.p=o,T.T=r}}e.current=a,Ht=2}}function Qp(){if(Ht===2){Ht=0;var e=_n,a=ms,r=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||r){r=T.T,T.T=null;var o=F.p;F.p=2;var c=Ie;Ie|=4;try{Ap(e,a.alternate,a)}finally{Ie=c,F.p=o,T.T=r}}Ht=3}}function Xp(){if(Ht===4||Ht===3){Ht=0,qt();var e=_n,a=ms,r=hs,o=zp;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Ht=5:(Ht=0,ms=_n=null,Zp(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Rn=null),bt(r),a=a.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(wn,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=T.T,c=F.p,F.p=2,T.T=null;try{for(var u=e.onRecoverableError,b=0;b<o.length;b++){var j=o[b];u(j.value,{componentStack:j.stack})}}finally{T.T=a,F.p=c}}(hs&3)!==0&&Qo(),qa(e),c=e.pendingLanes,(r&4194090)!==0&&(c&42)!==0?e===Qd?vi++:(vi=0,Qd=e):vi=0,wi(0)}}function Zp(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,ei(a)))}function Qo(e){return Kp(),Qp(),Xp(),Jp()}function Jp(){if(Ht!==5)return!1;var e=_n,a=$d;$d=0;var r=bt(hs),o=T.T,c=F.p;try{F.p=32>r?32:r,T.T=null,r=Kd,Kd=null;var u=_n,b=hs;if(Ht=0,ms=_n=null,hs=0,(Ie&6)!==0)throw Error(l(331));var j=Ie;if(Ie|=4,_p(u.current),Dp(u,u.current,b,r),Ie=j,wi(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(wn,u)}catch{}return!0}finally{F.p=c,T.T=o,Zp(e,a)}}function ex(e,a,r){a=fa(r,a),a=Td(e.stateNode,a,2),e=Mn(e,a,2),e!==null&&(It(e,2),qa(e))}function Xe(e,a,r){if(e.tag===3)ex(e,e,r);else for(;a!==null;){if(a.tag===3){ex(a,e,r);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Rn===null||!Rn.has(o))){e=fa(r,e),r=rp(2),o=Mn(a,r,2),o!==null&&(sp(r,o,a,e),It(o,2),qa(o));break}}a=a.return}}function eu(e,a,r){var o=e.pingCache;if(o===null){o=e.pingCache=new uw;var c=new Set;o.set(a,c)}else c=o.get(a),c===void 0&&(c=new Set,o.set(a,c));c.has(r)||(Id=!0,c.add(r),e=xw.bind(null,e,a,r),a.then(e,e))}function xw(e,a,r){var o=e.pingCache;o!==null&&o.delete(a),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Je===e&&(Ue&r)===r&&(ot===4||ot===3&&(Ue&62914560)===Ue&&300>Ye()-Yd?(Ie&2)===0&&fs(e,0):Vd|=r,us===Ue&&(us=0)),qa(e)}function tx(e,a){a===0&&(a=Ze()),e=Qr(e,a),e!==null&&(It(e,a),qa(e))}function gw(e){var a=e.memoizedState,r=0;a!==null&&(r=a.retryLane),tx(e,r)}function bw(e,a){var r=0;switch(e.tag){case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(r=c.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(l(314))}o!==null&&o.delete(a),tx(e,r)}function yw(e,a){return z(e,a)}var Xo=null,xs=null,tu=!1,Zo=!1,au=!1,jr=0;function qa(e){e!==xs&&e.next===null&&(xs===null?Xo=xs=e:xs=xs.next=e),Zo=!0,tu||(tu=!0,ww())}function wi(e,a){if(!au&&Zo){au=!0;do for(var r=!1,o=Xo;o!==null;){if(e!==0){var c=o.pendingLanes;if(c===0)var u=0;else{var b=o.suspendedLanes,j=o.pingedLanes;u=(1<<31-nt(42|e)+1)-1,u&=c&~(b&~j),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(r=!0,sx(o,u))}else u=Ue,u=Rr(o,o===Je?u:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(u&3)===0||rr(o,u)||(r=!0,sx(o,u));o=o.next}while(r);au=!1}}function vw(){ax()}function ax(){Zo=tu=!1;var e=0;jr!==0&&(Cw()&&(e=jr),jr=0);for(var a=Ye(),r=null,o=Xo;o!==null;){var c=o.next,u=nx(o,a);u===0?(o.next=null,r===null?Xo=c:r.next=c,c===null&&(xs=r)):(r=o,(e!==0||(u&3)!==0)&&(Zo=!0)),o=c}wi(e)}function nx(e,a){for(var r=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var b=31-nt(u),j=1<<b,C=c[b];C===-1?((j&r)===0||(j&o)!==0)&&(c[b]=gc(j,a)):C<=a&&(e.expiredLanes|=j),u&=~j}if(a=Je,r=Ue,r=Rr(e,e===a?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,r===0||e===a&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Ne(o),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||rr(e,r)){if(a=r&-r,a===e.callbackPriority)return a;switch(o!==null&&Ne(o),bt(r)){case 2:case 8:r=tr;break;case 32:r=ar;break;case 268435456:r=to;break;default:r=ar}return o=rx.bind(null,e),r=z(r,o),e.callbackPriority=a,e.callbackNode=r,a}return o!==null&&o!==null&&Ne(o),e.callbackPriority=2,e.callbackNode=null,2}function rx(e,a){if(Ht!==0&&Ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Qo()&&e.callbackNode!==r)return null;var o=Ue;return o=Rr(e,e===Je?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Fp(e,o,a),nx(e,Ye()),e.callbackNode!=null&&e.callbackNode===r?rx.bind(null,e):null)}function sx(e,a){if(Qo())return null;Fp(e,a,!0)}function ww(){Hw(function(){(Ie&6)!==0?z(zs,vw):ax()})}function nu(){return jr===0&&(jr=ze()),jr}function ix(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lo(""+e)}function ox(e,a){var r=a.ownerDocument.createElement("input");
vendor: 5,906 bytes, line 8
8return r.name=a.name,r.value=a.value,e.id&&r.setAttribute("form",e.id),a.parentNode.insertBefore(r,a),e=new FormData(e),r.parentNode.removeChild(r),e}function jw(e,a,r,o,c){if(a==="submit"&&r&&r.stateNode===c){var u=ix((c[Vt]||null).action),b=o.submitter;b&&(a=(a=b[Vt]||null)?ix(a.formAction):b.getAttribute("formAction"),a!==null&&(u=a,b=null));var j=new ho("action","action",null,o,c);e.push({event:j,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(jr!==0){var C=b?ox(c,b):new FormData(c);Nd(r,{pending:!0,data:C,method:c.method,action:u},null,C)}}else typeof u=="function"&&(j.preventDefault(),C=b?ox(c,b):new FormData(c),Nd(r,{pending:!0,data:C,method:c.method,action:u},u,C))},currentTarget:c}]})}}for(var ru=0;ru<qc.length;ru++){var su=qc[ru],Nw=su.toLowerCase(),Sw=su[0].toUpperCase()+su.slice(1);Ta(Nw,"on"+Sw)}Ta(Uh,"onAnimationEnd"),Ta(Fh,"onAnimationIteration"),Ta(Bh,"onAnimationStart"),Ta("dblclick","onDoubleClick"),Ta("focusin","onFocus"),Ta("focusout","onBlur"),Ta(Bv,"onTransitionRun"),Ta(qv,"onTransitionStart"),Ta(Wv,"onTransitionCancel"),Ta(qh,"onTransitionEnd"),Fr("onMouseEnter",["mouseout","mouseover"]),Fr("onMouseLeave",["mouseout","mouseover"]),Fr("onPointerEnter",["pointerout","pointerover"]),Fr("onPointerLeave",["pointerout","pointerover"]),ir("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ir("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ir("onBeforeInput",["compositionend","keypress","textInput","paste"]),ir("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ir("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ir("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ji="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(" "),kw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ji));function lx(e,a){a=(a&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],c=o.event;o=o.listeners;e:{var u=void 0;if(a)for(var b=o.length-1;0<=b;b--){var j=o[b],C=j.instance,U=j.currentTarget;if(j=j.listener,C!==u&&c.isPropagationStopped())break e;u=j,c.currentTarget=U;try{u(c)}catch($){Uo($)}c.currentTarget=null,u=C}else for(b=0;b<o.length;b++){if(j=o[b],C=j.instance,U=j.currentTarget,j=j.listener,C!==u&&c.isPropagationStopped())break e;u=j,c.currentTarget=U;try{u(c)}catch($){Uo($)}c.currentTarget=null,u=C}}}}function Re(e,a){var r=a[bc];r===void 0&&(r=a[bc]=new Set);var o=e+"__bubble";r.has(o)||(cx(a,e,2,!1),r.add(o))}function iu(e,a,r){var o=0;a&&(o|=4),cx(r,e,o,a)}var Jo="_reactListening"+Math.random().toString(36).slice(2);function ou(e){if(!e[Jo]){e[Jo]=!0,th.forEach(function(r){r!=="selectionchange"&&(kw.has(r)||iu(r,!1,e),iu(r,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[Jo]||(a[Jo]=!0,iu("selectionchange",!1,a))}}function cx(e,a,r,o){switch(Dx(a)){case 2:var c=Zw;break;case 8:c=Jw;break;default:c=wu}r=c.bind(null,a,r,e),c=void 0,!Cc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(c=!0),o?c!==void 0?e.addEventListener(a,r,{capture:!0,passive:c}):e.addEventListener(a,r,!0):c!==void 0?e.addEventListener(a,r,{passive:c}):e.addEventListener(a,r,!1)}function lu(e,a,r,o,c){var u=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var j=o.stateNode.containerInfo;if(j===c)break;if(b===4)for(b=o.return;b!==null;){var C=b.tag;if((C===3||C===4)&&b.stateNode.containerInfo===c)return;b=b.return}for(;j!==null;){if(b=Lr(j),b===null)return;if(C=b.tag,C===5||C===6||C===26||C===27){o=u=b;continue e}j=j.parentNode}}o=o.return}ph(function(){var U=u,$=Ac(r),X=[];e:{var W=Wh.get(e);if(W!==void 0){var I=ho,ke=e;switch(e){case"keypress":if(uo(r)===0)break e;case"keydown":case"keyup":I=yv;break;case"focusin":ke="focus",I=Dc;break;case"focusout":ke="blur",I=Dc;break;case"beforeblur":case"afterblur":I=Dc;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=bh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=ov;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=jv;break;case Uh:case Fh:case Bh:I=dv;break;case qh:I=Sv;break;case"scroll":case"scrollend":I=sv;break;case"wheel":I=Mv;break;case"copy":case"cut":case"paste":I=mv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=vh;break;case"toggle":case"beforetoggle":I=Tv}var ve=(a&4)!==0,Qe=!ve&&(e==="scroll"||e==="scrollend"),R=ve?W!==null?W+"Capture":null:W;ve=[];for(var D=U,_;D!==null;){var Q=D;if(_=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||_===null||R===null||(Q=Bs(D,R),Q!=null&&ve.push(Ni(D,Q,_))),Qe)break;D=D.return}0<ve.length&&(W=new I(W,ke,null,r,$),X.push({event:W,listeners:ve}))}}if((a&7)===0){e:{if(W=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",W&&r!==Mc&&(ke=r.relatedTarget||r.fromElement)&&(Lr(ke)||ke[_r]))break e;if((I||W)&&(W=$.window===$?$:(W=$.ownerDocument)?W.defaultView||W.parentWindow:window,I?(ke=r.relatedTarget||r.toElement,I=U,ke=ke?Lr(ke):null,ke!==null&&(Qe=m(ke),ve=ke.tag,ke!==Qe||ve!==5&&ve!==27&&ve!==6)&&(ke=null)):(I=null,ke=U),I!==ke)){if(ve=bh,Q="onMouseLeave",R="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(ve=vh,Q="onPointerLeave",R="onPointerEnter",D="pointer"),Qe=I==null?W:Fs(I),_=ke==null?W:Fs(ke),W=new ve(Q,D+"leave",I,r,$),W.target=Qe,W.relatedTarget=_,Q=null,
vendor: 5,574 bytes, lines 8-9
8Lr($)===U&&(ve=new ve(R,D+"enter",ke,r,$),ve.target=_,ve.relatedTarget=Qe,Q=ve),Qe=Q,I&&ke)t:{for(ve=I,R=ke,D=0,_=ve;_;_=gs(_))D++;for(_=0,Q=R;Q;Q=gs(Q))_++;for(;0<D-_;)ve=gs(ve),D--;for(;0<_-D;)R=gs(R),_--;for(;D--;){if(ve===R||R!==null&&ve===R.alternate)break t;ve=gs(ve),R=gs(R)}ve=null}else ve=null;I!==null&&dx(X,W,I,ve,!1),ke!==null&&Qe!==null&&dx(X,Qe,ke,ve,!0)}}e:{if(W=U?Fs(U):window,I=W.nodeName&&W.nodeName.toLowerCase(),I==="select"||I==="input"&&W.type==="file")var de=Th;else if(Mh(W))if(Ch)de=zv;else{de=_v;var Oe=Rv}else I=W.nodeName,!I||I.toLowerCase()!=="input"||W.type!=="checkbox"&&W.type!=="radio"?U&&kc(U.elementType)&&(de=Th):de=Lv;if(de&&(de=de(e,U))){Ah(X,de,r,$);break e}Oe&&Oe(e,W,U),e==="focusout"&&U&&W.type==="number"&&U.memoizedProps.value!=null&&Sc(W,"number",W.value)}switch(Oe=U?Fs(U):window,e){case"focusin":(Mh(Oe)||Oe.contentEditable==="true")&&(Yr=Oe,Uc=U,Ks=null);break;case"focusout":Ks=Uc=Yr=null;break;case"mousedown":Fc=!0;break;case"contextmenu":case"mouseup":case"dragend":Fc=!1,Lh(X,r,$);break;case"selectionchange":if(Fv)break;case"keydown":case"keyup":Lh(X,r,$)}var ge;if(Rc)e:{switch(e){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else Gr?Sh(e,r)&&(je="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(je="onCompositionStart");je&&(wh&&r.locale!=="ko"&&(Gr||je!=="onCompositionStart"?je==="onCompositionEnd"&&Gr&&(ge=xh()):(jn=$,Ec="value"in jn?jn.value:jn.textContent,Gr=!0)),Oe=el(U,je),0<Oe.length&&(je=new yh(je,e,null,r,$),X.push({event:je,listeners:Oe}),ge?je.data=ge:(ge=kh(r),ge!==null&&(je.data=ge)))),(ge=Ev?Hv(e,r):Ov(e,r))&&(je=el(U,"onBeforeInput"),0<je.length&&(Oe=new yh("onBeforeInput","beforeinput",null,r,$),X.push({event:Oe,listeners:je}),Oe.data=ge)),jw(X,e,U,r,$)}lx(X,a)})}function Ni(e,a,r){return{instance:e,listener:a,currentTarget:r}}function el(e,a){for(var r=a+"Capture",o=[];e!==null;){var c=e,u=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||u===null||(c=Bs(e,r),c!=null&&o.unshift(Ni(e,c,u)),c=Bs(e,a),c!=null&&o.push(Ni(e,c,u))),e.tag===3)return o;e=e.return}return[]}function gs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dx(e,a,r,o,c){for(var u=a._reactName,b=[];r!==null&&r!==o;){var j=r,C=j.alternate,U=j.stateNode;if(j=j.tag,C!==null&&C===o)break;j!==5&&j!==26&&j!==27||U===null||(C=U,c?(U=Bs(r,u),U!=null&&b.unshift(Ni(r,U,C))):c||(U=Bs(r,u),U!=null&&b.push(Ni(r,U,C)))),r=r.return}b.length!==0&&e.push({event:a,listeners:b})}var Mw=/\r\n?/g,Aw=/\u0000|\uFFFD/g;function ux(e){return(typeof e=="string"?e:""+e).replace(Mw,` 9`).replace(Aw,"")}function mx(e,a){return a=ux(a),ux(e)===a}function tl(){}function Ke(e,a,r,o,c,u){switch(r){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||Wr(e,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&Wr(e,""+o);break;case"className":so(e,"class",o);break;case"tabIndex":so(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":so(e,r,o);break;case"style":hh(e,o,u);break;case"data":if(a!=="object"){so(e,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||r!=="href")){e.removeAttribute(r);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=lo(""+o),e.setAttribute(r,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(r,"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 u=="function"&&(r==="formAction"?(a!=="input"&&Ke(e,a,"name",c.name,c,null),Ke(e,a,"formEncType",c.formEncType,c,null),Ke(e,a,"formMethod",c.formMethod,c,null),Ke(e,a,"formTarget",c.formTarget,c,null)):(Ke(e,a,"encType",c.encType,c,null),Ke(e,a,"method",c.method,c,null),Ke(e,a,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=lo(""+o),e.setAttribute(r,o);break;case"onClick":o!=null&&(e.onclick=tl);break;case"onScroll":o!=null&&Re("scroll",e);break;case"onScrollEnd":o!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(r=o.__html,r!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.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"){e.removeAttribute("xlink:href");break}r=lo(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);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"?e.setAttribute(r,""+o):e.removeAttribute(r);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
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":o===!0?e.setAttribute(r,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,o):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(r,o):e.removeAttribute(r);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(r):e.setAttribute(r,o);break;case"popover":Re("beforetoggle",e),Re("toggle",e),ro(e,"popover",o);break;case"xlinkActuate":Xa(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Xa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Xa(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Xa(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Xa(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Xa(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Xa(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Xa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Xa(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ro(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=nv.get(r)||r,ro(e,r,o))}}function cu(e,a,r,o,c,u){switch(r){case"style":hh(e,o,u);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(r=o.__html,r!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof o=="string"?Wr(e,o):(typeof o=="number"||typeof o=="bigint")&&Wr(e,""+o);break;case"onScroll":o!=null&&Re("scroll",e);break;case"onScrollEnd":o!=null&&Re("scrollend",e);break;case"onClick":o!=null&&(e.onclick=tl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ah.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(c=r.endsWith("Capture"),a=r.slice(2,c?r.length-7:void 0),u=e[Vt]||null,u=u!=null?u[r]:null,typeof u=="function"&&e.removeEventListener(a,u,c),typeof o=="function")){typeof u!="function"&&u!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(a,o,c);break e}r in e?e[r]=o:o===!0?e.setAttribute(r,""):ro(e,r,o)}}}function Ot(e,a,r){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var o=!1,c=!1,u;for(u in r)if(r.hasOwnProperty(u)){var b=r[u];if(b!=null)switch(u){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:Ke(e,a,u,b,r,null)}}c&&Ke(e,a,"srcSet",r.srcSet,r,null),o&&Ke(e,a,"src",r.src,r,null);return;case"input":Re("invalid",e);var j=u=b=c=null,C=null,U=null;for(o in r)if(r.hasOwnProperty(o)){var $=r[o];if($!=null)switch(o){case"name":c=$;break;case"type":b=$;break;case"checked":C=$;break;case"defaultChecked":U=$;break;case"value":u=$;break;case"defaultValue":j=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(l(137,a));break;default:Ke(e,a,o,$,r,null)}}ch(e,u,j,C,U,b,c,!1),io(e);return;case"select":Re("invalid",e),o=b=u=null;for(c in r)if(r.hasOwnProperty(c)&&(j=r[c],j!=null))switch(c){case"value":u=j;break;case"defaultValue":b=j;break;case"multiple":o=j;default:Ke(e,a,c,j,r,null)}a=u,r=b,e.multiple=!!o,a!=null?qr(e,!!o,a,!1):r!=null&&qr(e,!!o,r,!0);return;case"textarea":Re("invalid",e),u=c=o=null;for(b in r)if(r.hasOwnProperty(b)&&(j=r[b],j!=null))switch(b){case"value":o=j;break;case"defaultValue":c=j;break;case"children":u=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(l(91));break;default:Ke(e,a,b,j,r,null)}uh(e,o,c,u),io(e);return;case"option":for(C in r)r.hasOwnProperty(C)&&(o=r[C],o!=null)&&(C==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":Ke(e,a,C,o,r,null));return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(o=0;o<ji.length;o++)Re(ji[o],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in r)if(r.hasOwnProperty(U)&&(o=r[U],o!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:Ke(e,a,U,o,r,null)}return;default:if(kc(a)){for($ in r)r.hasOwnProperty($)&&(o=r[$],o!==void 0&&cu(e,a,$,o,r,void 0));return}}for(j in r)r.hasOwnProperty(j)&&(o=r[j],o!=null&&Ke(e,a,j,o,r,null))}function Tw(e,a,r,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,u=null,b=null,j=null,C=null,U=null,$=null;for(I in r){var X=r[I];if(r.hasOwnProperty(I)&&X!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":C=X;default:o.hasOwnProperty(I)||Ke(e,a,I,null,o,X)}}for(var W in o){var I=o[W];if(X=r[W],o.hasOwnProperty(W)&&(I!=null||X!=null))switch(W){case"type":u=I;break;case"name":c=I;break;case"checked":U=I;break;case"defaultChecked":$=I;break;case"value":b=I;break;case"defaultValue":j=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(l(137,a));break;default:I!==X&&Ke(e,a,W,I,o,X)}}Nc(e,b,j,C,U,$,u,c);return;case"select":I=b=j=W=null;for(u in r)if(C=r[u],r.hasOwnProperty(u)&&C!=null)switch(u){case"value":break;case"multiple":I=C;default:o.hasOwnProperty(u)||Ke(e,a,u,null,o,C)}for(c in o)if(u=o[c],C=r[c],o.hasOwnProperty(c)&&(u!=null||C!=null))switch(c){case"value":W=u;break;case"defaultValue":j=u;break;case"multiple":b=u;default:u!==C&&Ke(e,a,c,u,o,C)}a=j,r=b,o=I,W!=null?qr(e,!!r,W,!1):!!o!=!!r&&(a!=null?qr(e,!!r,a,!0):qr(e,!!r,r?[]:"",!1));return;
vendor: 8,789 bytes, line 9
9case"textarea":I=W=null;for(j in r)if(c=r[j],r.hasOwnProperty(j)&&c!=null&&!o.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:Ke(e,a,j,null,o,c)}for(b in o)if(c=o[b],u=r[b],o.hasOwnProperty(b)&&(c!=null||u!=null))switch(b){case"value":W=c;break;case"defaultValue":I=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(l(91));break;default:c!==u&&Ke(e,a,b,c,o,u)}dh(e,W,I);return;case"option":for(var ke in r)W=r[ke],r.hasOwnProperty(ke)&&W!=null&&!o.hasOwnProperty(ke)&&(ke==="selected"?e.selected=!1:Ke(e,a,ke,null,o,W));for(C in o)W=o[C],I=r[C],o.hasOwnProperty(C)&&W!==I&&(W!=null||I!=null)&&(C==="selected"?e.selected=W&&typeof W!="function"&&typeof W!="symbol":Ke(e,a,C,W,o,I));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 ve in r)W=r[ve],r.hasOwnProperty(ve)&&W!=null&&!o.hasOwnProperty(ve)&&Ke(e,a,ve,null,o,W);for(U in o)if(W=o[U],I=r[U],o.hasOwnProperty(U)&&W!==I&&(W!=null||I!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(l(137,a));break;default:Ke(e,a,U,W,o,I)}return;default:if(kc(a)){for(var Qe in r)W=r[Qe],r.hasOwnProperty(Qe)&&W!==void 0&&!o.hasOwnProperty(Qe)&&cu(e,a,Qe,void 0,o,W);for($ in o)W=o[$],I=r[$],!o.hasOwnProperty($)||W===I||W===void 0&&I===void 0||cu(e,a,$,W,o,I);return}}for(var R in r)W=r[R],r.hasOwnProperty(R)&&W!=null&&!o.hasOwnProperty(R)&&Ke(e,a,R,null,o,W);for(X in o)W=o[X],I=r[X],!o.hasOwnProperty(X)||W===I||W==null&&I==null||Ke(e,a,X,W,o,I)}var du=null,uu=null;function al(e){return e.nodeType===9?e:e.ownerDocument}function hx(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fx(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function mu(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var hu=null;function Cw(){var e=window.event;return e&&e.type==="popstate"?e===hu?!1:(hu=e,!0):(hu=null,!1)}var px=typeof setTimeout=="function"?setTimeout:void 0,Ew=typeof clearTimeout=="function"?clearTimeout:void 0,xx=typeof Promise=="function"?Promise:void 0,Hw=typeof queueMicrotask=="function"?queueMicrotask:typeof xx<"u"?function(e){return xx.resolve(null).then(e).catch(Ow)}:px;function Ow(e){setTimeout(function(){throw e})}function zn(e){return e==="head"}function gx(e,a){var r=a,o=0,c=0;do{var u=r.nextSibling;if(e.removeChild(r),u&&u.nodeType===8)if(r=u.data,r==="/$"){if(0<o&&8>o){r=o;var b=e.ownerDocument;if(r&1&&Si(b.documentElement),r&2&&Si(b.body),r&4)for(r=b.head,Si(r),b=r.firstChild;b;){var j=b.nextSibling,C=b.nodeName;b[Us]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&b.rel.toLowerCase()==="stylesheet"||r.removeChild(b),b=j}}if(c===0){e.removeChild(u),Oi(a);return}c--}else r==="$"||r==="$?"||r==="$!"?c++:o=r.charCodeAt(0)-48;else o=0;r=u}while(r);Oi(a)}function fu(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var r=a;switch(a=a.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":fu(r),yc(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function Dw(e,a,r,o){for(;e.nodeType===1;){var c=r;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Us])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var u=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Ea(e.nextSibling),e===null)break}return null}function Pw(e,a,r){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Ea(e.nextSibling),e===null))return null;return e}function pu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Rw(e,a){var r=e.ownerDocument;if(e.data!=="$?"||r.readyState==="complete")a();else{var o=function(){a(),r.removeEventListener("DOMContentLoaded",o)};r.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Ea(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return e}var xu=null;function bx(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(a===0)return e;a--}else r==="/$"&&a++}e=e.previousSibling}return null}function yx(e,a,r){switch(a=al(r),e){case"html":if(e=a.documentElement,!e)throw Error(l(452));return e;case"head":if(e=a.head,!e)throw Error(l(453));return e;case"body":if(e=a.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Si(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);yc(e)}var va=new Map,vx=new Set;function nl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var mn=F.d;F.d={f:_w,r:Lw,D:zw,C:Uw,L:Fw,m:Bw,X:Ww,S:qw,M:Iw};function _w(){var e=mn.f(),a=$o();return e||a}function Lw(e){var a=zr(e);a!==null&&a.tag===5&&a.type==="form"?Ff(a):mn.r(e)}var bs=typeof document>"u"?null:document;function wx(e,a,r){var o=bs;if(o&&typeof a=="string"&&a){var c=ha(a);c='link[rel="'+e+'"][href="'+c+'"]',typeof r=="string"&&(c+='[crossorigin="'+r+'"]'),vx.has(c)||(vx.add(c),e={rel:e,crossOrigin:r,href:a},o.querySelector(c)===null&&(a=o.createElement("link"),Ot(a,"link",e),Nt(a),o.head.appendChild(a)))}}function zw(e){mn.D(e),wx("dns-prefetch",e,null)}function Uw(e,a){mn.C(e,a),wx("preconnect",e,a)}function Fw(e,a,r){mn.L(e,a,r);var o=bs;if(o&&e&&a){var c='link[rel="preload"][as="'+ha(a)+'"]';a==="image"&&r&&r.imageSrcSet?(c+='[imagesrcset="'+ha(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(c+='[imagesizes="'+ha(r.imageSizes)+'"]')):c+='[href="'+ha(e)+'"]';var u=c;switch(a){case"style":u=ys(e);break;case"script":u=vs(e)}va.has(u)||(e=x({rel:"preload",href:a==="image"&&r&&r.imageSrcSet?void 0:e,as:a},r),va.set(u,e),o.querySelector(c)!==null||a==="style"&&o.querySelector(ki(u))||a==="script"&&o.querySelector(Mi(u))||(a=o.createElement("link"),Ot(a,"link",e),Nt(a),o.head.appendChild(a)))}}function Bw(e,a){mn.m(e,a);var r=bs;if(r&&e){var o=a&&typeof a.as=="string"?a.as:"script",c='link[rel="modulepreload"][as="'+ha(o)+'"][href="'+ha(e)+'"]',u=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=vs(e)}if(!va.has(u)&&(e=x({rel:"modulepreload",href:e},a),va.set(u,e),r.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Mi(u)))return}o=r.createElement("link"),Ot(o,"link",e),Nt(o),r.head.appendChild(o)}}}function qw(e,a,r){mn.S(e,a,r);var o=bs;if(o&&e){var c=Ur(o).hoistableStyles,u=ys(e);a=a||"default";var b=c.get(u);if(!b){var j={loading:0,preload:null};if(b=o.querySelector(ki(u)))j.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":a},r),(r=va.get(u))&&gu(e,r);var C=b=o.createElement("link");Nt(C),Ot(C,"link",e),C._p=new Promise(function(U,$){C.onload=U,C.onerror=$}),C.addEventListener("load",function(){j.loading|=1}),C.addEventListener("error",function(){j.loading|=2}),j.loading|=4,rl(b,a,o)}b={type:"stylesheet",instance:b,count:1,state:j},c.set(u,b)}}}function Ww(e,a){mn.X(e,a);var r=bs;if(r&&e){var o=Ur(r).hoistableScripts,c=vs(e),u=o.get(c);u||(u=r.querySelector(Mi(c)),u||(e=x({src:e,async:!0},a),(a=va.get(c))&&bu(e,a),u=r.createElement("script"),Nt(u),Ot(u,"link",e),r.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},o.set(c,u))}}function Iw(e,a){mn.M(e,a);var r=bs;if(r&&e){var o=Ur(r).hoistableScripts,c=vs(e),u=o.get(c);u||(u=r.querySelector(Mi(c)),u||(e=x({src:e,async:!0,type:"module"}
vendor: 4,940 bytes, line 9
9,a),(a=va.get(c))&&bu(e,a),u=r.createElement("script"),Nt(u),Ot(u,"link",e),r.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},o.set(c,u))}}function jx(e,a,r,o){var c=(c=ee.current)?nl(c):null;if(!c)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(a=ys(r.href),r=Ur(c).hoistableStyles,o=r.get(a),o||(o={type:"style",instance:null,count:0,state:null},r.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=ys(r.href);var u=Ur(c).hoistableStyles,b=u.get(e);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,b),(u=c.querySelector(ki(e)))&&!u._p&&(b.instance=u,b.state.loading=5),va.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},va.set(e,r),u||Vw(c,e,r,b.state))),a&&o===null)throw Error(l(528,""));return b}if(a&&o!==null)throw Error(l(529,""));return null;case"script":return a=r.async,r=r.src,typeof r=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=vs(r),r=Ur(c).hoistableScripts,o=r.get(a),o||(o={type:"script",instance:null,count:0,state:null},r.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function ys(e){return'href="'+ha(e)+'"'}function ki(e){return'link[rel="stylesheet"]['+e+"]"}function Nx(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Vw(e,a,r,o){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=e.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Ot(a,"link",r),Nt(a),e.head.appendChild(a))}function vs(e){return'[src="'+ha(e)+'"]'}function Mi(e){return"script[async]"+e}function Sx(e,a,r){if(a.count++,a.instance===null)switch(a.type){case"style":var o=e.querySelector('style[data-href~="'+ha(r.href)+'"]');if(o)return a.instance=o,Nt(o),o;var c=x({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Nt(o),Ot(o,"style",c),rl(o,r.precedence,e),a.instance=o;case"stylesheet":c=ys(r.href);var u=e.querySelector(ki(c));if(u)return a.state.loading|=4,a.instance=u,Nt(u),u;o=Nx(r),(c=va.get(c))&&gu(o,c),u=(e.ownerDocument||e).createElement("link"),Nt(u);var b=u;return b._p=new Promise(function(j,C){b.onload=j,b.onerror=C}),Ot(u,"link",o),a.state.loading|=4,rl(u,r.precedence,e),a.instance=u;case"script":return u=vs(r.src),(c=e.querySelector(Mi(u)))?(a.instance=c,Nt(c),c):(o=r,(c=va.get(u))&&(o=x({},r),bu(o,c)),e=e.ownerDocument||e,c=e.createElement("script"),Nt(c),Ot(c,"link",o),e.head.appendChild(c),a.instance=c);case"void":return null;default:throw Error(l(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,rl(o,r.precedence,e));return a.instance}function rl(e,a,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,u=c,b=0;b<o.length;b++){var j=o[b];if(j.dataset.precedence===a)u=j;else if(u!==c)break}u?u.parentNode.insertBefore(e,u.nextSibling):(a=r.nodeType===9?r.head:r,a.insertBefore(e,a.firstChild))}function gu(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function bu(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var sl=null;function kx(e,a,r){if(sl===null){var o=new Map,c=sl=new Map;c.set(r,o)}else c=sl,o=c.get(r),o||(o=new Map,c.set(r,o));if(o.has(e))return o;for(o.set(e,null),r=r.getElementsByTagName(e),c=0;c<r.length;c++){var u=r[c];if(!(u[Us]||u[Pt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var b=u.getAttribute(a)||"";b=e+b;var j=o.get(b);j?j.push(u):o.set(b,[u])}}return o}function Mx(e,a,r){e=e.ownerDocument||e,e.head.insertBefore(r,a==="title"?e.querySelector("head > title"):null)}function Gw(e,a,r){if(r===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(e=a.disabled,typeof a.precedence=="string"&&e==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Ax(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Ai=null;function Yw(){}
vendor: 10,188 bytes, line 9
9function $w(e,a,r){if(Ai===null)throw Error(l(475));var o=Ai;if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=ys(r.href),u=e.querySelector(ki(c));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=il.bind(o),e.then(o,o)),a.state.loading|=4,a.instance=u,Nt(u);return}u=e.ownerDocument||e,r=Nx(r),(c=va.get(c))&&gu(r,c),u=u.createElement("link"),Nt(u);var b=u;b._p=new Promise(function(j,C){b.onload=j,b.onerror=C}),Ot(u,"link",r),a.instance=u}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=il.bind(o),e.addEventListener("load",a),e.addEventListener("error",a))}}function Kw(){if(Ai===null)throw Error(l(475));var e=Ai;return e.stylesheets&&e.count===0&&yu(e,e.stylesheets),0<e.count?function(a){var r=setTimeout(function(){if(e.stylesheets&&yu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r)}}:null}function il(){if(this.count--,this.count===0){if(this.stylesheets)yu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ol=null;function yu(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ol=new Map,a.forEach(Qw,e),ol=null,il.call(e))}function Qw(e,a){if(!(a.state.loading&4)){var r=ol.get(e);if(r)var o=r.get(null);else{r=new Map,ol.set(e,r);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<c.length;u++){var b=c[u];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(r.set(b.dataset.precedence,b),o=b)}o&&r.set(null,o)}c=a.instance,b=c.getAttribute("data-precedence"),u=r.get(b)||o,u===o&&r.set(null,c),r.set(b,c),this.count++,o=il.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),u?u.parentNode.insertBefore(c,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),a.state.loading|=4}}var Ti={$$typeof:H,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function Xw(e,a,r,o,c,u,b,j){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Wt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wt(0),this.hiddenUpdates=Wt(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=u,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Tx(e,a,r,o,c,u,b,j,C,U,$,X){return e=new Xw(e,a,r,b,j,C,U,X),a=1,u===!0&&(a|=24),u=aa(3,null,null,a),e.current=u,u.stateNode=e,a=ed(),a.refCount++,e.pooledCache=a,a.refCount++,u.memoizedState={element:o,isDehydrated:r,cache:a},rd(u),e}function Cx(e){return e?(e=Xr,e):Xr}function Ex(e,a,r,o,c,u){c=Cx(c),o.context===null?o.context=c:o.pendingContext=c,o=kn(a),o.payload={element:r},u=u===void 0?null:u,u!==null&&(o.callback=u),r=Mn(e,o,a),r!==null&&(oa(r,e,a),ri(r,e,a))}function Hx(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<a?r:a}}function vu(e,a){Hx(e,a),(e=e.alternate)&&Hx(e,a)}function Ox(e){if(e.tag===13){var a=Qr(e,67108864);a!==null&&oa(a,e,67108864),vu(e,67108864)}}var ll=!0;function Zw(e,a,r,o){var c=T.T;T.T=null;var u=F.p;try{F.p=2,wu(e,a,r,o)}finally{F.p=u,T.T=c}}function Jw(e,a,r,o){var c=T.T;T.T=null;var u=F.p;try{F.p=8,wu(e,a,r,o)}finally{F.p=u,T.T=c}}function wu(e,a,r,o){if(ll){var c=ju(o);if(c===null)lu(e,a,o,cl,r),Px(e,o);else if(tj(c,e,a,r,o))o.stopPropagation();else if(Px(e,o),a&4&&-1<ej.indexOf(e)){for(;c!==null;){var u=zr(c);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var b=Qa(u.pendingLanes);if(b!==0){var j=u;for(j.pendingLanes|=2,j.entangledLanes|=2;b;){var C=1<<31-nt(b);j.entanglements[1]|=C,b&=~C}qa(u),(Ie&6)===0&&(Go=Ye()+500,wi(0))}}break;case 13:j=Qr(u,2),j!==null&&oa(j,u,2),$o(),vu(u,2)}if(u=ju(o),u===null&&lu(e,a,o,cl,r),u===c)break;c=u}c!==null&&o.stopPropagation()}else lu(e,a,o,null,r)}}function ju(e){return e=Ac(e),Nu(e)}var cl=null;function Nu(e){if(cl=null,e=Lr(e),e!==null){var a=m(e);if(a===null)e=null;else{var r=a.tag;if(r===13){if(e=p(a),e!==null)return e;e=null}else if(r===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return cl=e,null}function Dx(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(vn()){case zs:return 2;case tr:return 8;case ar:case eo:return 32;case to:return 268435456;default:return 32}default:return 32}}var Su=!1,Un=null,Fn=null,Bn=null,Ci=new Map,Ei=new Map,qn=[],ej="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 Px(e,a){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":Fn=null;break;case"mouseover":case"mouseout":Bn=null;break;case"pointerover":case"pointerout":Ci.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ei.delete(a.pointerId)}}function Hi(e,a,r,o,c,u){return e===null||e.nativeEvent!==u?(e={blockedOn:a,domEventName:r,eventSystemFlags:o,nativeEvent:u,targetContainers:[c]},a!==null&&(a=zr(a),a!==null&&Ox(a)),e):(e.eventSystemFlags|=o,a=e.targetContainers,c!==null&&a.indexOf(c)===-1&&a.push(c),e)}function tj(e,a,r,o,c){switch(a){case"focusin":return Un=Hi(Un,e,a,r,o,c),!0;case"dragenter":return Fn=Hi(Fn,e,a,r,o,c),!0;case"mouseover":return Bn=Hi(Bn,e,a,r,o,c),!0;case"pointerover":var u=c.pointerId;return Ci.set(u,Hi(Ci.get(u)||null,e,a,r,o,c)),!0;case"gotpointercapture":return u=c.pointerId,Ei.set(u,Hi(Ei.get(u)||null,e,a,r,o,c)),!0}return!1}function Rx(e){var a=Lr(e.target);if(a!==null){var r=m(a);if(r!==null){if(a=r.tag,a===13){if(a=p(r),a!==null){e.blockedOn=a,sr(e.priority,function(){if(r.tag===13){var o=ia();o=Se(o);var c=Qr(r,o);c!==null&&oa(c,r,o),vu(r,o)}});return}}else if(a===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function dl(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var r=ju(e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Mc=o,r.target.dispatchEvent(o),Mc=null}else return a=zr(r),a!==null&&Ox(a),e.blockedOn=r,!1;a.shift()}return!0}function _x(e,a,r){dl(e)&&r.delete(a)}function aj(){Su=!1,Un!==null&&dl(Un)&&(Un=null),Fn!==null&&dl(Fn)&&(Fn=null),Bn!==null&&dl(Bn)&&(Bn=null),Ci.forEach(_x),Ei.forEach(_x)}function ul(e,a){e.blockedOn===a&&(e.blockedOn=null,Su||(Su=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,aj)))}var ml=null;function Lx(e){ml!==e&&(ml=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ml===e&&(ml=null);for(var a=0;a<e.length;a+=3){var r=e[a],o=e[a+1],c=e[a+2];if(typeof o!="function"){if(Nu(o||r)===null)continue;break}var u=zr(r);u!==null&&(e.splice(a,3),a-=3,Nd(u,{pending:!0,data:c,method:r.method,action:o},o,c))}}))}function Oi(e){function a(C){return ul(C,e)}Un!==null&&ul(Un,e),Fn!==null&&ul(Fn,e),Bn!==null&&ul(Bn,e),Ci.forEach(a),Ei.forEach(a);for(var r=0;r<qn.length;r++){var o=qn[r];o.blockedOn===e&&(o.blockedOn=null)}for(;0<qn.length&&(r=qn[0],r.blockedOn===null);)Rx(r),r.blockedOn===null&&qn.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(o=0;o<r.length;o+=3){var c=r[o],u=r[o+1],b=c[Vt]||null;if(typeof u=="function")b||Lx(r);else if(b){var j=null;if(u&&u.hasAttribute("formAction")){if(c=u,b=u[Vt]||null)j=b.formAction;else if(Nu(c)!==null)continue}else j=b.action;typeof j=="function"?r[o+1]=j:(r.splice(o,3),o-=3),Lx(r)}}}function ku(e){this._internalRoot=e}hl.prototype.render=ku.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(l(409));var r=a.current,o=ia();Ex(r,o,e,a,null,null)},hl.prototype.unmount=ku.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;Ex(e.current,2,null,e,null,null),$o(),a[_r]=null}};function hl(e){this._internalRoot=e}hl.prototype.unstable_scheduleHydration=function(e){if(e){var a=Aa();e={blockedOn:null,target:e,priority:a};for(var r=0;r<qn.length&&a!==0&&a<qn[r].priority;r++);qn.splice(r,0,e),r===0&&Rx(e)}};var zx=s.version;if(zx!=="19.1.0")throw Error(l(527,zx,"19.1.0"));F.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=f(a),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var nj={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.1.0"};
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fl.isDisabled&&fl.supportsFiber)try{wn=fl.inject(nj),Ct=fl}catch{}}return Pi.createRoot=function(e,a){if(!d(e))throw Error(l(299));var r=!1,o="",c=ep,u=tp,b=ap,j=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(u=a.onCaughtError),a.onRecoverableError!==void 0&&(b=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(j=a.unstable_transitionCallbacks)),a=Tx(e,1,!1,null,null,r,o,c,u,b,j,null),e[_r]=a.current,ou(e),new ku(a)},Pi.hydrateRoot=function(e,a,r){if(!d(e))throw Error(l(299));var o=!1,c="",u=ep,b=tp,j=ap,C=null,U=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onUncaughtError!==void 0&&(u=r.onUncaughtError),r.onCaughtError!==void 0&&(b=r.onCaughtError),r.onRecoverableError!==void 0&&(j=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(C=r.unstable_transitionCallbacks),r.formState!==void 0&&(U=r.formState)),a=Tx(e,1,!0,a,r??null,o,c,u,b,j,C,U),a.context=Cx(null),r=a.current,o=ia(),o=Se(o),c=kn(o),c.callback=null,Mn(r,c,o),r=o,a.current.lanes=r,It(a,r),qa(a),e[_r]=a.current,ou(e),new hl(a)},Pi.version="19.1.0",Pi}var $x;function hj(){if($x)return Au.exports;$x=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),Au.exports=mj(),Au.exports}var fj=hj();const pj="https://website-migration-wordpress.replit.app";function Ou(n){return n.startsWith("/api/")?`${pj}${n}`:n}function be(n,s){if(typeof n=="string")return fetch(Ou(n),s);if(n instanceof URL)return fetch(Ou(n.pathname+n.search+n.hash),s);const i=new URL(n.url,window.location.origin),l=Ou(i.pathname+i.search+i.hash);return l!==i.pathname+i.search+i.hash?fetch(new Request(l,n),s):fetch(n,s)}function xj(n,s){if(n instanceof RegExp)return{keys:!1,pattern:n};var i,l,d,m,p=[],g="",f=n.split("/");for(f[0]||f.shift();d=f.shift();)i=d[0],i==="*"?(p.push(i),g+=d[1]==="?"?"(?:/(.*))?":"/(.*)"):i===":"?(l=d.indexOf("?",1),m=d.indexOf(".",1),p.push(d.substring(1,~l?l:~m?m:d.length)),g+=~l&&!~m?"(?:/([^/]+?))?":"/([^/]+?)",~m&&(g+=(~l?"?":"")+"\\"+d.substring(m))):g+="/"+d;return{keys:p,pattern:new RegExp("^"+g+(s?"(?=$|/)":"/?$"),"i")}}var w=Ql();const Me=Ki(w),jb=sj({__proto__:null,default:Me},[w]);var Du={exports:{}},Pu={};var Kx;function gj(){if(Kx)return Pu;Kx=1;var n=Ql();function s(y,v){return y===v&&(y!==0||1/y===1/v)||y!==y&&v!==v}var i=typeof Object.is=="function"?Object.is:s,l=n.useState,d=n.useEffect,m=n.useLayoutEffect,p=n.useDebugValue;function g(y,v){var S=v(),k=l({inst:{value:S,getSnapshot:v}}),N=k[0].inst,A=k[1];return m(function(){N.value=S,N.getSnapshot=v,f(N)&&A({inst:N})},[y,S,v]),d(function(){return f(N)&&A({inst:N}),y(function(){f(N)&&A({inst:N})})},[y]),p(S),S}function f(y){var v=y.getSnapshot;y=y.value;try{var S=v();return!i(y,S)}catch{return!0}}function h(y,v){return v()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:g;return Pu.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:x,Pu}var Qx;function bj(){return Qx||(Qx=1,Du.exports=gj()),Du.exports}var yj=bj();const vj=jb.useInsertionEffect,wj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jj=wj?w.useLayoutEffect:w.useEffect,Nj=vj||jj,Nb=n=>{const s=w.useRef([n,(...i)=>s[0](...i)]).current;return Nj(()=>{s[0]=n}),s[1]},Sj="popstate",Am="pushState",Tm="replaceState",kj="hashchange",Xx=[Sj,Am,Tm,kj],Mj=n=>{for(const s of Xx)addEventListener(s,n);return()=>{for(const s of Xx)removeEventListener(s,n)}},Sb=(n,s)=>yj.useSyncExternalStore(Mj,n,s),Zx=()=>location.search,Aj=({ssrSearch:n}={})=>Sb(Zx,n!=null?()=>n:Zx),Jx=()=>location.pathname,Tj=({ssrPath:n}={})=>Sb(Jx,n!=null?()=>n:Jx),Cj=(n,{replace:s=!1,state:i=null}={})=>history[s?Tm:Am](i,"",n),Ej=(n={})=>[Tj(n),Cj],eg=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[eg]>"u"){for(const n of[Am,Tm]){const s=history[n];history[n]=function(){const i=s.apply(this,arguments),l=new Event(n);return l.arguments=arguments,dispatchEvent(l),i}}Object.defineProperty(window,eg,{value:!0})}const Hj=(n,s)=>s.toLowerCase().indexOf(n.toLowerCase())?"~"+s:s.slice(n.length)||"/",kb=(n="")=>n==="/"?"":n,Oj=(n,s)=>n[0]==="~"?n.slice(1):kb(s)+n,Dj=(n="",s)=>Hj(em(kb(n)),em(s)),Pj=n=>n[0]==="?"?n.slice(1):n,em=n=>{try{return decodeURI(n)}catch{return n}},Rj=n=>em(Pj(n)),Mb={hook:Ej,searchHook:Aj,parser:xj,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n,aroundNav:(n,s,i)=>n(s,i)},Ab=w.createContext(Mb),Rs=()=>w.useContext(Ab),Tb={},Cb=w.createContext(Tb),_j=()=>w.useContext(Cb),Xl=n=>{const[s,i]=n.hook(n);return[Dj(n.base,s),Nb((l,d)=>n.aroundNav(i,Oj(l,n.base),d))]},Lj=()=>Xl(Rs()),Eb=()=>{const n=Rs();return Rj(n.searchHook(n))},Hb=(n,s,i,l)=>{const{pattern:d,keys:m}=s instanceof RegExp?{keys:!1,pattern:s}:n(s||"*",l),p=d.exec(i)||[],[g,...f]=p;return g!==void 0?[!0,(()=>{const h=m!==!1?Object.fromEntries(m.map((y,v)=>[y,f[v]])):p.groups;let x={...f};return h&&Object.assign(x,h),x}
9)(),...l?[g]:[]]:[!1,null]},Ob=({children:n,...s})=>{const i=Rs(),l=s.hook?Mb:i;let d=l;const[m,p=s.ssrSearch??""]=s.ssrPath?.split("?")??[];m&&(s.ssrSearch=p,s.ssrPath=m),s.hrefs=s.hrefs??s.hook?.hrefs,s.searchHook=s.searchHook??s.hook?.searchHook;let g=w.useRef({}),f=g.current,h=f;for(let x in l){const y=x==="base"?l[x]+(s[x]??""):s[x]??l[x];f===h&&y!==h[x]&&(g.current=h={...h}),h[x]=y,(y!==l[x]||y!==d[x])&&(d=h)}return w.createElement(Ab.Provider,{value:d,children:n})},tg=({children:n,component:s},i)=>s?w.createElement(s,{params:i}):typeof n=="function"?n(i):n,zj=n=>{let s=w.useRef(Tb);const i=s.current;return s.current=Object.keys(n).length!==Object.keys(i).length||Object.entries(n).some(([l,d])=>d!==i[l])?n:i},_e=({path:n,nest:s,match:i,...l})=>{const d=Rs(),[m]=Xl(d),[p,g,f]=i??Hb(d.parser,n,m,s),h=zj({..._j(),...g});if(!p)return null;const x=f?w.createElement(Ob,{base:f},tg(l,h)):tg(l,h);return w.createElement(Cb.Provider,{value:h,children:x})},pe=w.forwardRef((n,s)=>{const i=Rs(),[l,d]=Xl(i),{to:m="",href:p=m,onClick:g,asChild:f,children:h,className:x,replace:y,state:v,transition:S,...k}=n,N=Nb(E=>{E.ctrlKey||E.metaKey||E.altKey||E.shiftKey||E.button!==0||(g?.(E),E.defaultPrevented||(E.preventDefault(),d(p,n)))}),A=i.hrefs(p[0]==="~"?p.slice(1):i.base+p,i);return f&&w.isValidElement(h)?w.cloneElement(h,{onClick:N,href:A}):w.createElement("a",{...k,onClick:N,href:A,className:x?.call?x(l===p):x,children:h,ref:s})}),Db=n=>Array.isArray(n)?n.flatMap(s=>Db(s&&s.type===w.Fragment?s.props.children:s)):[n],ag=({children:n,location:s})=>{const i=Rs(),[l]=Xl(i);for(const d of Db(n)){let m=0;if(w.isValidElement(d)&&(m=Hb(i.parser,d.props.path,s||l,d.props.nest))[0])return w.cloneElement(d,{match:m})}return null};var Ru,ng;function Uj(){if(ng)return Ru;ng=1;var n=typeof Element<"u",s=typeof Map=="function",i=typeof Set=="function",l=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function d(m,p){if(m===p)return!0;if(m&&p&&typeof m=="object"&&typeof p=="object"){if(m.constructor!==p.constructor)return!1;var g,f,h;if(Array.isArray(m)){if(g=m.length,g!=p.length)return!1;for(f=g;f--!==0;)if(!d(m[f],p[f]))return!1;return!0}var x;if(s&&m instanceof Map&&p instanceof Map){if(m.size!==p.size)return!1;for(x=m.entries();!(f=x.next()).done;)if(!p.has(f.value[0]))return!1;for(x=m.entries();!(f=x.next()).done;)if(!d(f.value[1],p.get(f.value[0])))return!1;return!0}if(i&&m instanceof Set&&p instanceof Set){if(m.size!==p.size)return!1;for(x=m.entries();!(f=x.next()).done;)if(!p.has(f.value[0]))return!1;return!0}if(l&&ArrayBuffer.isView(m)&&ArrayBuffer.isView(p)){if(g=m.length,g!=p.length)return!1;for(f=g;f--!==0;)if(m[f]!==p[f])return!1;return!0}if(m.constructor===RegExp)return m.source===p.source&&m.flags===p.flags;if(m.valueOf!==Object.prototype.valueOf&&typeof m.valueOf=="function"&&typeof p.valueOf=="function")return m.valueOf()===p.valueOf();if(m.toString!==Object.prototype.toString&&typeof m.toString=="function"&&typeof p.toString=="function")return m.toString()===p.toString();if(h=Object.keys(m),g=h.length,g!==Object.keys(p).length)return!1;for(f=g;f--!==0;)if(!Object.prototype.hasOwnProperty.call(p,h[f]))return!1;if(n&&m instanceof Element)return!1;for(f=g;f--!==0;)if(!((h[f]==="_owner"||h[f]==="__v"||h[f]==="__o")&&m.$$typeof)&&!d(m[h[f]],p[h[f]]))return!1;return!0}return m!==m&&p!==p}return Ru=function(p,g){try{return d(p,g)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Ru}var Fj=Uj();const Bj=Ki(Fj);var _u,rg;function qj(){if(rg)return _u;rg=1;var n=function(s,i,l,d,m,p,g,f){if(!s){var h;if(i===void 0)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var x=[l,d,m,p,g,f],y=0;h=new Error(i.replace(/%s/g,function(){return x[y++]})),h.name="Invariant Violation"}throw h.framesToPop=1,h}};return _u=n,_u}var Wj=qj();const sg=Ki(Wj);var Lu,ig;function Ij(){return ig||(ig=1,Lu=function(s,i,l,d){var m=l?l.call(d,s,i):void 0;if(m!==void 0)return!!m;if(s===i)return!0;
9if(typeof s!="object"||!s||typeof i!="object"||!i)return!1;var p=Object.keys(s),g=Object.keys(i);if(p.length!==g.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(i),h=0;h<p.length;h++){var x=p[h];if(!f(x))return!1;var y=s[x],v=i[x];if(m=l?l.call(d,y,v,x):void 0,m===!1||m===void 0&&y!==v)return!1}return!0}),Lu}var Vj=Ij();const Gj=Ki(Vj);var Pb=(n=>(n.BASE="base",n.BODY="body",n.HEAD="head",n.HTML="html",n.LINK="link",n.META="meta",n.NOSCRIPT="noscript",n.SCRIPT="script",n.STYLE="style",n.TITLE="title",n.FRAGMENT="Symbol(react.fragment)",n))(Pb||{}),zu={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},og=Object.values(Pb),Zl={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Rb=Object.entries(Zl).reduce((n,[s,i])=>(n[i]=s,n),{}),Da="data-rh",As={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ts=(n,s)=>{for(let i=n.length-1;i>=0;i-=1){const l=n[i];if(Object.prototype.hasOwnProperty.call(l,s))return l[s]}return null},Yj=n=>{let s=Ts(n,"title");const i=Ts(n,As.TITLE_TEMPLATE);if(Array.isArray(s)&&(s=s.join("")),i&&s)return i.replace(/%s/g,()=>s);const l=Ts(n,As.DEFAULT_TITLE);return s||l||void 0},$j=n=>Ts(n,As.ON_CHANGE_CLIENT_STATE)||(()=>{}),Uu=(n,s)=>s.filter(i=>typeof i[n]<"u").map(i=>i[n]).reduce((i,l)=>({...i,...l}),{}),Kj=(n,s)=>s.filter(i=>typeof i.base<"u").map(i=>i.base).reverse().reduce((i,l)=>{if(!i.length){const d=Object.keys(l);for(let m=0;m<d.length;m+=1){const g=d[m].toLowerCase();if(n.indexOf(g)!==-1&&l[g])return i.concat(l)}}return i},[]),Qj=n=>console&&typeof console.warn=="function"&&console.warn(n),Ri=(n,s,i)=>{const l={};return i.filter(d=>Array.isArray(d[n])?!0:(typeof d[n]<"u"&&Qj(`Helmet: ${n} should be of type "Array". Instead found type "${typeof d[n]}"`),!1)).map(d=>d[n]).reverse().reduce((d,m)=>{const p={};m.filter(f=>{let h;const x=Object.keys(f);for(let v=0;v<x.length;v+=1){const S=x[v],k=S.toLowerCase();s.indexOf(k)!==-1&&!(h==="rel"&&f[h].toLowerCase()==="canonical")&&!(k==="rel"&&f[k].toLowerCase()==="stylesheet")&&(h=k),s.indexOf(S)!==-1&&(S==="innerHTML"||S==="cssText"||S==="itemprop")&&(h=S)}if(!h||!f[h])return!1;const y=f[h].toLowerCase();return l[h]||(l[h]={}),p[h]||(p[h]={}),l[h][y]?!1:(p[h][y]=!0,!0)}).reverse().forEach(f=>d.push(f));const g=Object.keys(p);for(let f=0;f<g.length;f+=1){const h=g[f],x={...l[h],...p[h]};l[h]=x}return d},[]).reverse()},Xj=(n,s)=>{if(Array.isArray(n)&&n.length){for(let i=0;i<n.length;i+=1)if(n[i][s])return!0}return!1},Zj=n=>({baseTag:Kj(["href"],n),bodyAttributes:Uu("bodyAttributes",n),defer:Ts(n,As.DEFER),encode:Ts(n,As.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Uu("htmlAttributes",n),linkTags:Ri("link",["rel","href"],n),metaTags:Ri("meta",["name","charset","http-equiv","property","itemprop"],n),noscriptTags:Ri("noscript",["innerHTML"],n),onChangeClientState:$j(n),scriptTags:Ri("script",["src","innerHTML"],n),styleTags:Ri("style",["cssText"],n),title:Yj(n),titleAttributes:Uu("titleAttributes",n),prioritizeSeoTags:Xj(n,As.PRIORITIZE_SEO_TAGS)}),_b=n=>Array.isArray(n)?n.join(""):n,Jj=(n,s)=>{const i=Object.keys(n);for(let l=0;l<i.length;l+=1)if(s[i[l]]&&s[i[l]].includes(n[i[l]]))return!0;return!1},Fu=(n,s)=>Array.isArray(n)?n.reduce((i,l)=>(Jj(l,s)?i.priority.push(l):i.default.push(l),i),{priority:[],default:[]}):{default:n,priority:[]},lg=(n,s)=>({...n,[s]:void 0}),eN=["noscript","script","style"],tm=(n,s=!0)=>s===!1?String(n):String(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Lb=n=>Object.keys(n).reduce((s,i)=>{const l=typeof n[i]<"u"?`${i}="${n[i]}"`:`${i}`;return s?`${s} ${l}`:l},""),tN=(n,s,i,l)=>{const d=Lb(i),m=_b(s);return d?`<${n} ${Da}="true" ${d}>${tm(m,l)}</${n}>`:`<${n} ${Da}="true">${tm(m,l)}</${n}>`},aN=(n,s,i=!0)=>s.reduce((l,d)=>{const m=d,p=Object.keys(m).filter(h=>!(h==="innerHTML"||h==="cssText")).reduce((h,x)=>{const y=typeof m[x]>"u"?x:`${x}="${tm(m[x],i)}"`;return h?`${h} ${y}`:y},""),g=m.innerHTML||m.cssText||"",f=eN.indexOf(n)===-1;return`${l}<${n} ${Da}="true" ${p}${f?"/>":`>${g}</${n}>`}`},""),zb=(n,s={})=>Object.keys(n).reduce((i,l)=>{const d=Zl[l];return i[d||l]=n[l],i},s),nN=(n,s,i)=>{const l={key:s,[Da]:!0},d=zb(i,l);return[Me.createElement("title",d,s)]},Ml=(n,s)=>s.map((i,l)=>{const d={key:l,[Da]:!0};
9return Object.keys(i).forEach(m=>{const g=Zl[m]||m;if(g==="innerHTML"||g==="cssText"){const f=i.innerHTML||i.cssText;d.dangerouslySetInnerHTML={__html:f}}else d[g]=i[m]}),Me.createElement(n,d)}),ja=(n,s,i=!0)=>{switch(n){case"title":return{toComponent:()=>nN(n,s.title,s.titleAttributes),toString:()=>tN(n,s.title,s.titleAttributes,i)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>zb(s),toString:()=>Lb(s)};default:return{toComponent:()=>Ml(n,s),toString:()=>aN(n,s,i)}}},rN=({metaTags:n,linkTags:s,scriptTags:i,encode:l})=>{const d=Fu(n,zu.meta),m=Fu(s,zu.link),p=Fu(i,zu.script);return{priorityMethods:{toComponent:()=>[...Ml("meta",d.priority),...Ml("link",m.priority),...Ml("script",p.priority)],toString:()=>`${ja("meta",d.priority,l)} ${ja("link",m.priority,l)} ${ja("script",p.priority,l)}`},metaTags:d.default,linkTags:m.default,scriptTags:p.default}},sN=n=>{const{baseTag:s,bodyAttributes:i,encode:l=!0,htmlAttributes:d,noscriptTags:m,styleTags:p,title:g="",titleAttributes:f,prioritizeSeoTags:h}=n;let{linkTags:x,metaTags:y,scriptTags:v}=n,S={toComponent:()=>[],toString:()=>""};return h&&({priorityMethods:S,linkTags:x,metaTags:y,scriptTags:v}=rN(n)),{priority:S,base:ja("base",s,l),bodyAttributes:ja("bodyAttributes",i,l),htmlAttributes:ja("htmlAttributes",d,l),link:ja("link",x,l),meta:ja("meta",y,l),noscript:ja("noscript",m,l),script:ja("script",v,l),style:ja("style",p,l),title:ja("title",{title:g,titleAttributes:f},l)}},am=sN,pl=[],Cm=!!(typeof window<"u"&&window.document&&window.document.createElement),nm=class{instances=[];canUseDOM=Cm;context;value={setHelmet:n=>{this.context.helmet=n},helmetInstances:{get:()=>this.canUseDOM?pl:this.instances,add:n=>{(this.canUseDOM?pl:this.instances).push(n)},remove:n=>{const s=(this.canUseDOM?pl:this.instances).indexOf(n);(this.canUseDOM?pl:this.instances).splice(s,1)}}};constructor(n,s){this.context=n,this.canUseDOM=s||!1,s||(n.helmet=am({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},iN=parseInt(Me.version.split(".")[0],10),rm=iN>=19,oN={},Ub=Me.createContext(oN),Fb=class Bb extends w.Component{static canUseDOM=Cm;helmetData;constructor(s){super(s),rm?this.helmetData=null:this.helmetData=new nm(this.props.context||{},Bb.canUseDOM)}render(){return rm?Me.createElement(Me.Fragment,null,this.props.children):Me.createElement(Ub.Provider,{value:this.helmetData.value},this.props.children)}},ws=(n,s)=>{const i=document.head||document.querySelector("head"),l=i.querySelectorAll(`${n}[${Da}]`),d=[].slice.call(l),m=[];let p;return s&&s.length&&s.forEach(g=>{const f=document.createElement(n);for(const h in g)if(Object.prototype.hasOwnProperty.call(g,h))if(h==="innerHTML")f.innerHTML=g.innerHTML;else if(h==="cssText"){const x=g.cssText;f.appendChild(document.createTextNode(x))}else{const x=h,y=typeof g[x]>"u"?"":g[x];f.setAttribute(h,y)}f.setAttribute(Da,"true"),d.some((h,x)=>(p=x,f.isEqualNode(h)))?d.splice(p,1):m.push(f)}),d.forEach(g=>g.parentNode?.removeChild(g)),m.forEach(g=>i.appendChild(g)),{oldTags:d,newTags:m}},sm=(n,s)=>{const i=document.getElementsByTagName(n)[0];if(!i)return;const l=i.getAttribute(Da),d=l?l.split(","):[],m=[...d],p=Object.keys(s);for(const g of p){const f=s[g]||"";i.getAttribute(g)!==f&&i.setAttribute(g,f),d.indexOf(g)===-1&&d.push(g);const h=m.indexOf(g);h!==-1&&m.splice(h,1)}for(let g=m.length-1;g>=0;g-=1)i.removeAttribute(m[g]);d.length===m.length?i.removeAttribute(Da):i.getAttribute(Da)!==p.join(",")&&i.setAttribute(Da,p.join(","))},lN=(n,s)=>{typeof n<"u"&&document.title!==n&&(document.title=_b(n)),sm("title",s)},cg=(n,s)=>{const{baseTag:i,bodyAttributes:l,htmlAttributes:d,linkTags:m,metaTags:p,noscriptTags:g,onChangeClientState:f,scriptTags:h,styleTags:x,title:y,titleAttributes:v}=n;
9sm("body",l),sm("html",d),lN(y,v);const S={baseTag:ws("base",i),linkTags:ws("link",m),metaTags:ws("meta",p),noscriptTags:ws("noscript",g),scriptTags:ws("script",h),styleTags:ws("style",x)},k={},N={};Object.keys(S).forEach(A=>{const{newTags:E,oldTags:L}=S[A];E.length&&(k[A]=E),L.length&&(N[A]=S[A].oldTags)}),s&&s(),f(n,k,N)},_i=null,cN=n=>{_i&&cancelAnimationFrame(_i),n.defer?_i=requestAnimationFrame(()=>{cg(n,()=>{_i=null})}):(cg(n),_i=null)},dN=cN,dg=class extends w.Component{rendered=!1;shouldComponentUpdate(n){return!Gj(n,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:n}=this.props.context;n.remove(this),this.emitChange()}emitChange(){const{helmetInstances:n,setHelmet:s}=this.props.context;let i=null;const l=Zj(n.get().map(d=>{const{context:m,...p}=d.props;return p}));Fb.canUseDOM?dN(l):am&&(i=am(l)),s(i)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:n}=this.props.context;n.add(this),this.emitChange()}render(){return this.init(),null}},Al=[],ug=n=>{const s={};for(const i of Object.keys(n))s[Rb[i]||i]=n[i];return s},Nr=n=>{const s={};for(const i of Object.keys(n)){const l=Zl[i];s[l||i]=n[i]}return s},mg=(n,s)=>{if(!Cm)return;const i=document.getElementsByTagName(n)[0];if(!i)return;const l="data-rh-managed",d=i.getAttribute(l),m=d?d.split(","):[],p=Object.keys(s);for(const g of m)p.includes(g)||i.removeAttribute(g);for(const g of p){const f=s[g];f==null||f===!1?i.removeAttribute(g):f===!0?i.setAttribute(g,""):i.setAttribute(g,String(f))}p.length>0?i.setAttribute(l,p.join(",")):i.removeAttribute(l)},Bu=()=>{const n={},s={};for(const i of Al){const{htmlAttributes:l,bodyAttributes:d}=i.props;l&&Object.assign(n,ug(l)),d&&Object.assign(s,ug(d))}mg("html",n),mg("body",s)},uN=class extends w.Component{componentDidMount(){Al.push(this),Bu()}componentDidUpdate(){Bu()}componentWillUnmount(){const n=Al.indexOf(this);n!==-1&&Al.splice(n,1),Bu()}resolveTitle(){const{title:n,titleTemplate:s,defaultTitle:i}=this.props;return n&&s?s.replace(/%s/g,()=>Array.isArray(n)?n.join(""):n):n||i||void 0}renderTitle(){const n=this.resolveTitle();if(n===void 0)return null;const s=this.props.titleAttributes||{};return Me.createElement("title",Nr(s),n)}renderBase(){const{base:n}=this.props;return n?Me.createElement("base",Nr(n)):null}renderMeta(){const{meta:n}=this.props;return!n||!Array.isArray(n)?null:n.map((s,i)=>Me.createElement("meta",{key:i,...Nr(s)}))}renderLink(){const{link:n}=this.props;return!n||!Array.isArray(n)?null:n.map((s,i)=>Me.createElement("link",{key:i,...Nr(s)}))}renderScript(){const{script:n}=this.props;return!n||!Array.isArray(n)?null:n.map((s,i)=>{const{innerHTML:l,...d}=s,m=Nr(d);return l&&(m.dangerouslySetInnerHTML={__html:l}),Me.createElement("script",{key:i,...m})})}renderStyle(){const{style:n}=this.props;return!n||!Array.isArray(n)?null:n.map((s,i)=>{const{cssText:l,...d}=s,m=Nr(d);return l&&(m.dangerouslySetInnerHTML={__html:l}),Me.createElement("style",{key:i,...m})})}renderNoscript(){const{noscript:n}=this.props;return!n||!Array.isArray(n)?null:n.map((s,i)=>{const{innerHTML:l,...d}=s,m=Nr(d);return l&&(m.dangerouslySetInnerHTML={__html:l}),Me.createElement("noscript",{key:i,...m})})}render(){return Me.createElement(Me.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},mN=class extends w.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(n){return!Bj(lg(this.props,"helmetData"),lg(n,"helmetData"))}mapNestedChildrenToProps(n,s){if(!s)return null;switch(n.type){case"script":case"noscript":return{innerHTML:s};case"style":return{cssText:s};default:throw new Error(`<${n.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(n,s,i,l){return{...s,[n.type]:[...s[n.type]||[],{...i,...this.mapNestedChildrenToProps(n,l)}]}}mapObjectTypeChildren(n,s,i,l){switch(n.type){case"title":return{...s,[n.type]:l,titleAttributes:{...i}};case"body":return{...s,bodyAttributes:{...i}};case"html":return{...s,htmlAttributes:{...i}};default:return{...s,[n.type]:{...i}}}}mapArrayTypeChildrenToProps(n,s){let i={...s};
9return Object.keys(n).forEach(l=>{i={...i,[l]:n[l]}}),i}warnOnInvalidChildren(n,s){return sg(og.some(i=>n.type===i),typeof n.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${og.join(", ")} are allowed. Helmet does not support rendering <${n.type}> elements. Refer to our API for more information.`),sg(!s||typeof s=="string"||Array.isArray(s)&&!s.some(i=>typeof i!="string"),`Helmet expects a string as a child of <${n.type}>. Did you forget to wrap your children in braces? ( <${n.type}>{\`\`}</${n.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(n,s){let i={};return Me.Children.forEach(n,l=>{if(!l||!l.props)return;const{children:d,...m}=l.props,p=Object.keys(m).reduce((f,h)=>(f[Rb[h]||h]=m[h],f),{});let{type:g}=l;switch(typeof g=="symbol"?g=g.toString():this.warnOnInvalidChildren(l,d),g){case"Symbol(react.fragment)":s=this.mapChildrenToProps(d,s);break;case"link":case"meta":case"noscript":case"script":case"style":i=this.flattenArrayTypeChildren(l,i,p,d);break;default:s=this.mapObjectTypeChildren(l,s,p,d);break}}),this.mapArrayTypeChildrenToProps(i,s)}render(){const{children:n,...s}=this.props;let i={...s},{helmetData:l}=s;if(n&&(i=this.mapChildrenToProps(n,i)),l&&!(l instanceof nm)){const d=l;l=new nm(d.context,!0),delete i.helmetData}return rm?Me.createElement(uN,{...i}):l?Me.createElement(dg,{...i,context:l.value}):Me.createElement(Ub.Consumer,null,d=>Me.createElement(dg,{...i,context:d}))}},Jl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hN={setTimeout:(n,s)=>setTimeout(n,s),clearTimeout:n=>clearTimeout(n),setInterval:(n,s)=>setInterval(n,s),clearInterval:n=>clearInterval(n)},fN=class{#e=hN;#a=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,s){return this.#e.setTimeout(n,s)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,s){return this.#e.setInterval(n,s)}clearInterval(n){this.#e.clearInterval(n)}},im=new fN;function pN(n){setTimeout(n,0)}var ec=typeof window>"u"||"Deno"in globalThis;function Oa(){}function xN(n,s){return typeof n=="function"?n(s):n}function gN(n){return typeof n=="number"&&n>=0&&n!==1/0}function bN(n,s){return Math.max(n+(s||0)-Date.now(),0)}function om(n,s){return typeof n=="function"?n(s):n}function yN(n,s){return typeof n=="function"?n(s):n}function hg(n,s){const{type:i="all",exact:l,fetchStatus:d,predicate:m,queryKey:p,stale:g}=n;if(p){if(l){if(s.queryHash!==Em(p,s.options))return!1}else if(!Ii(s.queryKey,p))return!1}if(i!=="all"){const f=s.isActive();if(i==="active"&&!f||i==="inactive"&&f)return!1}return!(typeof g=="boolean"&&s.isStale()!==g||d&&d!==s.state.fetchStatus||m&&!m(s))}function fg(n,s){const{exact:i,status:l,predicate:d,mutationKey:m}=n;if(m){if(!s.options.mutationKey)return!1;if(i){if(Wi(s.options.mutationKey)!==Wi(m))return!1}else if(!Ii(s.options.mutationKey,m))return!1}return!(l&&s.state.status!==l||d&&!d(s))}function Em(n,s){return(s?.queryKeyHashFn||Wi)(n)}function Wi(n){return JSON.stringify(n,(s,i)=>lm(i)?Object.keys(i).sort().reduce((l,d)=>(l[d]=i[d],l),{}):i)}function Ii(n,s){return n===s?!0:typeof n!=typeof s?!1:n&&s&&typeof n=="object"&&typeof s=="object"?Object.keys(s).every(i=>Ii(n[i],s[i])):!1}var vN=Object.prototype.hasOwnProperty;function qb(n,s,i=0){if(n===s)return n;if(i>500)return s;const l=pg(n)&&pg(s);if(!l&&!(lm(n)&&lm(s)))return s;const m=(l?n:Object.keys(n)).length,p=l?s:Object.keys(s),g=p.length,f=l?new Array(g):{};let h=0;for(let x=0;x<g;x++){const y=l?x:p[x],v=n[y],S=s[y];if(v===S){f[y]=v,(l?x<m:vN.call(n,y))&&h++;continue}if(v===null||S===null||typeof v!="object"||typeof S!="object"){f[y]=S;continue}const k=qb(v,S,i+1);f[y]=k,k===v&&h++}return m===g&&h===m?n:f}function pg(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function lm(n){if(!xg(n))return!1;const s=n.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!xg(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function xg(n){return Object.prototype.toString.call(n)==="[object Object]"}function wN(n){return new Promise(s=>{im.setTimeout(s,n)})}function jN(n,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,s):i.structuralSharing!==!1?qb(n,s):s}function NN(n,s,i=0){const l=[...n,s];return i&&l.length>
vendor: 20,087 bytes, line 9
9i?l.slice(1):l}function SN(n,s,i=0){const l=[s,...n];return i&&l.length>i?l.slice(0,-1):l}var Hm=Symbol();function Wb(n,s){return!n.queryFn&&s?.initialPromise?()=>s.initialPromise:!n.queryFn||n.queryFn===Hm?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function kN(n,s,i){let l=!1,d;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(d??=s(),l||(l=!0,d.aborted?i():d.addEventListener("abort",i,{once:!0})),d)}),n}var MN=class extends Jl{#e;#a;#t;constructor(){super(),this.#t=n=>{if(!ec&&window.addEventListener){const s=()=>n();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}}}onSubscribe(){this.#a||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#a?.(),this.#a=void 0)}setEventListener(n){this.#t=n,this.#a?.(),this.#a=n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(s=>{s(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Ib=new MN;function AN(){let n,s;const i=new Promise((d,m)=>{n=d,s=m});i.status="pending",i.catch(()=>{});function l(d){Object.assign(i,d),delete i.resolve,delete i.reject}return i.resolve=d=>{l({status:"fulfilled",value:d}),n(d)},i.reject=d=>{l({status:"rejected",reason:d}),s(d)},i}var TN=pN;function CN(){let n=[],s=0,i=g=>{g()},l=g=>{g()},d=TN;const m=g=>{s?n.push(g):d(()=>{i(g)})},p=()=>{const g=n;n=[],g.length&&d(()=>{l(()=>{g.forEach(f=>{i(f)})})})};return{batch:g=>{let f;s++;try{f=g()}finally{s--,s||p()}return f},batchCalls:g=>(...f)=>{m(()=>{g(...f)})},schedule:m,setNotifyFunction:g=>{i=g},setBatchNotifyFunction:g=>{l=g},setScheduler:g=>{d=g}}}var Ft=CN(),EN=class extends Jl{#e=!0;#a;#t;constructor(){super(),this.#t=n=>{if(!ec&&window.addEventListener){const s=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#a||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#a?.(),this.#a=void 0)}setEventListener(n){this.#t=n,this.#a?.(),this.#a=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(i=>{i(n)}))}isOnline(){return this.#e}},Ll=new EN;function HN(n){return Math.min(1e3*2**n,3e4)}function Vb(n){return(n??"online")==="online"?Ll.isOnline():!0}var cm=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Gb(n){let s=!1,i=0,l;const d=AN(),m=()=>d.status!=="pending",p=N=>{if(!m()){const A=new cm(N);v(A),n.onCancel?.(A)}},g=()=>{s=!0},f=()=>{s=!1},h=()=>Ib.isFocused()&&(n.networkMode==="always"||Ll.isOnline())&&n.canRun(),x=()=>Vb(n.networkMode)&&n.canRun(),y=N=>{m()||(l?.(),d.resolve(N))},v=N=>{m()||(l?.(),d.reject(N))},S=()=>new Promise(N=>{l=A=>{(m()||h())&&N(A)},n.onPause?.()}).then(()=>{l=void 0,m()||n.onContinue?.()}),k=()=>{if(m())return;let N;const A=i===0?n.initialPromise:void 0;try{N=A??n.fn()}catch(E){N=Promise.reject(E)}Promise.resolve(N).then(y).catch(E=>{if(m())return;const L=n.retry??(ec?0:3),H=n.retryDelay??HN,P=typeof H=="function"?H(i,E):H,q=L===!0||typeof L=="number"&&i<L||typeof L=="function"&&L(i,E);if(s||!q){v(E);return}i++,n.onFail?.(i,E),wN(P).then(()=>h()?void 0:S()).then(()=>{s?v(E):k()})})};return{promise:d,status:()=>d.status,cancel:p,continue:()=>(l?.(),d),cancelRetry:g,continueRetry:f,canStart:x,start:()=>(x()?k():S().then(k),d)}}var Yb=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gN(this.gcTime)&&(this.#e=im.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ec?1/0:300*1e3))}clearGcTimeout(){this.#e&&(im.clearTimeout(this.#e),this.#e=void 0)}},ON=class extends Yb{#e;#a;#t;#r;#n;#i;#o;constructor(n){super(),this.#o=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#r=n.client,this.#t=this.#r.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=bg(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(n){if(this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=bg(this.options);s.data!==void 0&&(this.setState(gg(s.data,s.dataUpdatedAt)),this.#e=s)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(n,s){const i=jN(this.state.data,n,this.options);return this.#s({data:i,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),i}setState(n,s){this.#s({type:"setState",state:n,setStateOptions:s})}cancel(n){const s=this.#n?.promise;return this.#n?.cancel(n),s?s.then(Oa).catch(Oa):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>yN(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>om(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!bN(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(s=>s.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(s=>s.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(s=>s!==n),this.observers.length||(this.#n&&(this.#o?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,s){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&s?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(n&&this.setOptions(n),!this.options.queryFn){const g=this.observers.find(f=>f.options.queryFn);g&&this.setOptions(g.options)}const i=new AbortController,l=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(this.#o=!0,i.signal)})},d=()=>{const g=Wb(this.options,s),h=(()=>{const x={client:this.#r,queryKey:this.queryKey,meta:this.meta};return l(x),x})();return this.#o=!1,this.options.persister?this.options.persister(g,h,this):g(h)},p=(()=>{const g={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:d};return l(g),g})();this.options.behavior?.onFetch(p,this),this.#a=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==p.fetchOptions?.meta)&&this.#s({type:"fetch",meta:p.fetchOptions?.meta}),this.#n=Gb({initialPromise:s?.initialPromise,fn:p.fetchFn,onCancel:g=>{g instanceof cm&&g.revert&&this.setState({...this.#a,fetchStatus:"idle"}),i.abort()},onFail:(g,f)=>{this.#s({type:"failed",failureCount:g,error:f})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0});try{const g=await this.#n.start();if(g===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(g),this.#t.config.onSuccess?.(g,this),this.#t.config.onSettled?.(g,this.state.error,this),g}catch(g){if(g instanceof cm){if(g.silent)return this.#n.promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw this.#s({type:"error",error:g}),this.#t.config.onError?.(g,this),this.#t.config.onSettled?.(this.state.data,g,this),g}finally{this.scheduleGc()}}#s(n){const s=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...DN(i.data,this.options),fetchMeta:n.meta??null};case"success":const l={...i,...gg(n.data,n.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#a=n.manual?l:void 0,l;case"error":const d=n.error;return{...i,error:d,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=s(this.state),Ft.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:n})})}};function DN(n,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Vb(s.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function gg(n,s){return{data:n,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function bg(n){const s=typeof n.initialData=="function"?n.initialData():n.initialData,i=s!==void 0,l=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:i?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}function yg(n){return{onFetch:(s,i)=>{const l=s.options,d=s.fetchOptions?.meta?.fetchMore?.direction,m=s.state.data?.pages||[],p=s.state.data?.pageParams||[];let g={pages:[],pageParams:[]},f=0;const h=async()=>{let x=!1;const y=k=>{kN(k,()=>s.signal,()=>x=!0)},v=Wb(s.options,s.fetchOptions),S=async(k,N,A)=>{if(x)return Promise.reject();if(N==null&&k.pages.length)return Promise.resolve(k);const L=(()=>{const V={client:s.client,queryKey:s.queryKey,pageParam:N,direction:A?"backward":"forward",meta:s.options.meta};return y(V),V})(),H=await v(L),{maxPages:P}=s.options,q=A?SN:NN;return{pages:q(k.pages,H,P),pageParams:q(k.pageParams,N,P)}};if(d&&m.length){const k=d==="backward",N=k?PN:vg,A={pages:m,pageParams:p},E=N(l,A);g=await S(A,E,k)}else{const k=n??m.length;do{const N=f===0?p[0]??l.initialPageParam:vg(l,g);if(f>0&&N==null)break;g=await S(g,N),f++}while(f<k)}return g};s.options.persister?s.fetchFn=()=>s.options.persister?.(h,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i):s.fetchFn=h}}}function vg(n,{pages:s,pageParams:i}){const l=s.length-1;return s.length>0?n.getNextPageParam(s[l],s,i[l],i):void 0}function PN(n,{pages:s,pageParams:i}){return s.length>0?n.getPreviousPageParam?.(s[0],s,i[0],i):void 0}var RN=class extends Yb{#e;#a;#t;#r;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#t=n.mutationCache,this.#a=[],this.state=n.state||_N(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#a.includes(n)||(this.#a.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#a=this.#a.filter(s=>s!==n),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#a.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(n){const s=()=>{this.#n({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Gb({fn:()=>this.options.mutationFn?this.options.mutationFn(n,i):Promise.reject(new Error("No mutationFn found")),onFail:(m,p)=>{this.#n({type:"failed",failureCount:m,error:p})},onPause:()=>{this.#n({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const l=this.state.status==="pending",d=!this.#r.canStart();try{if(l)s();else{this.#n({type:"pending",variables:n,isPaused:d}),this.#t.config.onMutate&&await this.#t.config.onMutate(n,this,i);const p=await this.options.onMutate?.(n,i);p!==this.state.context&&this.#n({type:"pending",context:p,variables:n,isPaused:d})}const m=await this.#r.start();return await this.#t.config.onSuccess?.(m,n,this.state.context,this,i),await this.options.onSuccess?.(m,n,this.state.context,i),await this.#t.config.onSettled?.(m,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(m,null,n,this.state.context,i),this.#n({type:"success",data:m}),m}catch(m){try{await this.#t.config.onError?.(m,n,this.state.context,this,i)}catch(p){Promise.reject(p)}try{await this.options.onError?.(m,n,this.state.context,i)}catch(p){Promise.reject(p)}try{await this.#t.config.onSettled?.(void 0,m,this.state.variables,this.state.context,this,i)}catch(p){Promise.reject(p)}try{await this.options.onSettled?.(void 0,m,n,this.state.context,i)}catch(p){Promise.reject(p)}throw this.#n({type:"error",error:m}),m}finally{this.#t.runNext(this)}}#n(n){const s=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Ft.batch(()=>{this.#a.forEach(i=>{i.onMutationUpdate(n)}),this.#t.notify({mutation:this,type:"updated",action:n})})}};function _N(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var LN=class extends Jl{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#a=new Map,this.#t=0}#e;#a;#t;build(n,s,i){const l=new RN({client:n,mutationCache:this,mutationId:++this.#t,options:n.defaultMutationOptions(s),state:i});return this.add(l),l}add(n){this.#e.add(n);const s=xl(n);if(typeof s=="string"){const i=this.#a.get(s);i?i.push(n):this.#a.set(s,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const s=xl(n);if(typeof s=="string"){const i=this.#a.get(s);if(i)if(i.length>1){const l=i.indexOf(n);l!==-1&&i.splice(l,1)}else i[0]===n&&this.#a.delete(s)}}this.notify({type:"removed",mutation:n})}canRun(n){const s=xl(n);if(typeof s=="string"){const l=this.#a.get(s)?.find(d=>d.state.status==="pending");return!l||l===n}else return!0}runNext(n){const s=xl(n);return typeof s=="string"?this.#a.get(s)?.find(l=>l!==n&&l.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ft.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#a.clear()})}getAll(){return Array.from(this.#e)}find(n){const s={exact:!0,...n};return this.getAll().find(i=>fg(s,i))}findAll(n={}){return this.getAll().filter(s=>fg(n,s))}notify(n){Ft.batch(()=>{this.listeners.forEach(s=>{s(n)})})}resumePausedMutations(){const n=this.getAll().filter(s=>s.state.isPaused);return Ft.batch(()=>Promise.all(n.map(s=>s.continue().catch(Oa))))}};function xl(n){return n.options.scope?.id}var zN=class extends Jl{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,s,i){const l=s.queryKey,d=s.queryHash??Em(l,s);let m=this.get(d);return m||(m=new ON({client:n,queryKey:l,queryHash:d,options:n.defaultQueryOptions(s),state:i,defaultOptions:n.getQueryDefaults(l)}),this.add(m)),m}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const s=this.#e.get(n.queryHash);s&&(n.destroy(),s===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ft.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const s={exact:!0,...n};return this.getAll().find(i=>hg(s,i))}findAll(n={}){const s=this.getAll();return Object.keys(n).length>0?s.filter(i=>hg(n,i)):s}notify(n){Ft.batch(()=>{this.listeners.forEach(s=>{s(n)})})}onFocus(){Ft.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ft.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},UN=class{#e;#a;#t;#r;#n;#i;#o;#s;constructor(n={}){this.#e=n.queryCache||new zN,this.#a=n.mutationCache||new LN,this.#t=n.defaultOptions||{},this.#r=new Map,this.#n=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=Ib.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ll.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#a.findAll({...n,status:"pending"}).length}getQueryData(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state.data}ensureQueryData(n){const s=this.defaultQueryOptions(n),i=this.#e.build(this,s),l=i.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(om(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(l))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:s,state:i})=>{const l=i.data;return[s,l]})}setQueryData(n,s,i){const l=this.defaultQueryOptions({queryKey:n}),m=this.#e.get(l.queryHash)?.state.data,p=xN(s,m);if(p!==void 0)return this.#e.build(this,l).setData(p,{...i,manual:!0})}setQueriesData(n,s,i){return Ft.batch(()=>this.#e.findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,s,i)]))}getQueryState(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state}removeQueries(n){const s=this.#e;Ft.batch(()=>{s.findAll(n).forEach(i=>{s.remove(i)})})}resetQueries(n,s){const i=this.#e;return Ft.batch(()=>(i.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},s)))}cancelQueries(n,s={}){const i={revert:!0,...s},l=Ft.batch(()=>this.#e.findAll(n).map(d=>d.cancel(i)));return Promise.all(l).then(Oa).catch(Oa)}invalidateQueries(n,s={}){return Ft.batch(()=>(this.#e.findAll(n).forEach(i=>{i.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},s)))}refetchQueries(n,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},l=Ft.batch(()=>this.#e.findAll(n).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,i);return i.throwOnError||(m=m.catch(Oa)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(l).then(Oa)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const i=this.#e.build(this,s);return i.isStaleByTime(om(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Oa).catch(Oa)}fetchInfiniteQuery(n){return n.behavior=yg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Oa).catch(Oa)}ensureInfiniteQueryData(n){return n.behavior=yg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Ll.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#a}getDefaultOptions(){return this.#t}setDefaultOptions(n){this.#t=n}
9setQueryDefaults(n,s){this.#r.set(Wi(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...this.#r.values()],i={};return s.forEach(l=>{Ii(n,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(n,s){this.#n.set(Wi(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...this.#n.values()],i={};return s.forEach(l=>{Ii(n,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const s={...this.#t.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=Em(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===Hm&&(s.enabled=!1),s}defaultMutationOptions(n){return n?._defaulted?n:{...this.#t.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#a.clear()}},FN=w.createContext(void 0),BN=({client:n,children:s})=>(w.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),t.jsx(FN.Provider,{value:n,children:s}));const qN=1,WN=1e6;let qu=0;function IN(){return qu=(qu+1)%Number.MAX_SAFE_INTEGER,qu.toString()}const Wu=new Map,wg=n=>{if(Wu.has(n))return;const s=setTimeout(()=>{Wu.delete(n),qi({type:"REMOVE_TOAST",toastId:n})},WN);Wu.set(n,s)},VN=(n,s)=>{switch(s.type){case"ADD_TOAST":return{...n,toasts:[s.toast,...n.toasts].slice(0,qN)};case"UPDATE_TOAST":return{...n,toasts:n.toasts.map(i=>i.id===s.toast.id?{...i,...s.toast}:i)};case"DISMISS_TOAST":{const{toastId:i}=s;return i?wg(i):n.toasts.forEach(l=>{wg(l.id)}),{...n,toasts:n.toasts.map(l=>l.id===i||i===void 0?{...l,open:!1}:l)}}case"REMOVE_TOAST":return s.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(i=>i.id!==s.toastId)}}},Tl=[];let Cl={toasts:[]};function qi(n){Cl=VN(Cl,n),Tl.forEach(s=>{s(Cl)})}function GN({...n}){const s=IN(),i=d=>qi({type:"UPDATE_TOAST",toast:{...d,id:s}}),l=()=>qi({type:"DISMISS_TOAST",toastId:s});return qi({type:"ADD_TOAST",toast:{...n,id:s,open:!0,onOpenChange:d=>{d||l()}}}),{id:s,dismiss:l,update:i}}function YN(){const[n,s]=w.useState(Cl);return w.useEffect(()=>(Tl.push(s),()=>{const i=Tl.indexOf(s);i>-1&&Tl.splice(i,1)}),[n]),{...n,toast:GN,dismiss:i=>qi({type:"DISMISS_TOAST",toastId:i})}}var tc=wb();const $N=Ki(tc);function jt(n,s,{checkForDefaultPrevented:i=!0}={}){return function(d){if(n?.(d),i===!1||!d.defaultPrevented)return s?.(d)}}function jg(n,s){if(typeof n=="function")return n(s);n!=null&&(n.current=s)}function $b(...n){return s=>{let i=!1;const l=n.map(d=>{const m=jg(d,s);return!i&&typeof m=="function"&&(i=!0),m});if(i)return()=>{for(let d=0;d<l.length;d++){const m=l[d];typeof m=="function"?m():jg(n[d],null)}}}}function Pa(...n){return w.useCallback($b(...n),n)}function ac(n,s=[]){let i=[];function l(m,p){const g=w.createContext(p),f=i.length;i=[...i,p];const h=y=>{const{scope:v,children:S,...k}=y,N=v?.[n]?.[f]||g,A=w.useMemo(()=>k,Object.values(k));return t.jsx(N.Provider,{value:A,children:S})};h.displayName=m+"Provider";function x(y,v){const S=v?.[n]?.[f]||g,k=w.useContext(S);if(k)return k;if(p!==void 0)return p;throw new Error(`\`${y}\` must be used within \`${m}\``)}return[h,x]}const d=()=>{const m=i.map(p=>w.createContext(p));return function(g){const f=g?.[n]||m;return w.useMemo(()=>({[`__scope${n}`]:{...g,[n]:f}}),[g,f])}};return d.scopeName=n,[l,KN(d,...s)]}function KN(...n){const s=n[0];if(n.length===1)return s;const i=()=>{const l=n.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(m){const p=l.reduce((g,{useScope:f,scopeName:h})=>{const y=f(m)[`__scope${h}`];return{...g,...y}},{});return w.useMemo(()=>({[`__scope${s.scopeName}`]:p}),[p])}};return i.scopeName=s.scopeName,i}function dm(n){const s=QN(n),i=w.forwardRef((l,d)=>{const{children:m,...p}=l,g=w.Children.toArray(m),f=g.find(ZN);if(f){const h=f.props.children,x=g.map(y=>y===f?w.Children.count(h)>1?w.Children.only(null):w.isValidElement(h)?h.props.children:null:y);return t.jsx(s,{...p,ref:d,children:w.isValidElement(h)?w.cloneElement(h,void 0,x):null})}return t.jsx(s,{...p,ref:d,children:m})});return i.displayName=`${n}.Slot`,i}function QN(n){const s=w.forwardRef((i,l)=>{const{children:d,...m}=i;if(w.isValidElement(d)){const p=e1(d),g=JN(m,d.props);return d.type!==w.Fragment&&(g.ref=l?$b(l,p):p),w.cloneElement(d,g)}return w.Children.count(d)>1?w.Children.only(null):null});return s.displayName=`${n}.SlotClone`,s}var Kb=Symbol("radix.slottable");function XN(n){const s=({children:i})=>t.jsx(t.Fragment,{children:i});return s.displayName=`${n}.Slottable`,s.__radixId=Kb,s}function ZN(n){return w.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Kb}function JN(n,s){const i={...s};for(const l in s){const d=n[l],m=s[l];/^on[A-Z]/.test(l)?d&&m?i[l]=(...g)=>{const f=m(...g);return d(...g),f}:d&&(i[l]=d):l==="style"?i[l]={...d,...m}
vendor: 6,655 bytes, line 9
9:l==="className"&&(i[l]=[d,m].filter(Boolean).join(" "))}return{...n,...i}}function e1(n){let s=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,i=s&&"isReactWarning"in s&&s.isReactWarning;return i?n.ref:(s=Object.getOwnPropertyDescriptor(n,"ref")?.get,i=s&&"isReactWarning"in s&&s.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}function t1(n){const s=n+"CollectionProvider",[i,l]=ac(s),[d,m]=i(s,{collectionRef:{current:null},itemMap:new Map}),p=N=>{const{scope:A,children:E}=N,L=Me.useRef(null),H=Me.useRef(new Map).current;return t.jsx(d,{scope:A,itemMap:H,collectionRef:L,children:E})};p.displayName=s;const g=n+"CollectionSlot",f=dm(g),h=Me.forwardRef((N,A)=>{const{scope:E,children:L}=N,H=m(g,E),P=Pa(A,H.collectionRef);return t.jsx(f,{ref:P,children:L})});h.displayName=g;const x=n+"CollectionItemSlot",y="data-radix-collection-item",v=dm(x),S=Me.forwardRef((N,A)=>{const{scope:E,children:L,...H}=N,P=Me.useRef(null),q=Pa(A,P),V=m(x,E);return Me.useEffect(()=>(V.itemMap.set(P,{ref:P,...H}),()=>{V.itemMap.delete(P)})),t.jsx(v,{[y]:"",ref:q,children:L})});S.displayName=x;function k(N){const A=m(n+"CollectionConsumer",N);return Me.useCallback(()=>{const L=A.collectionRef.current;if(!L)return[];const H=Array.from(L.querySelectorAll(`[${y}]`));return Array.from(A.itemMap.values()).sort((V,Z)=>H.indexOf(V.ref.current)-H.indexOf(Z.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:p,Slot:h,ItemSlot:S},k,l]}var a1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ea=a1.reduce((n,s)=>{const i=dm(`Primitive.${s}`),l=w.forwardRef((d,m)=>{const{asChild:p,...g}=d,f=p?i:s;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),t.jsx(f,{...g,ref:m})});return l.displayName=`Primitive.${s}`,{...n,[s]:l}},{});function Qb(n,s){n&&tc.flushSync(()=>n.dispatchEvent(s))}function Kn(n){const s=w.useRef(n);return w.useEffect(()=>{s.current=n}),w.useMemo(()=>(...i)=>s.current?.(...i),[])}function n1(n,s=globalThis?.document){const i=Kn(n);w.useEffect(()=>{const l=d=>{d.key==="Escape"&&i(d)};return s.addEventListener("keydown",l,{capture:!0}),()=>s.removeEventListener("keydown",l,{capture:!0})},[i,s])}var r1="DismissableLayer",um="dismissableLayer.update",s1="dismissableLayer.pointerDownOutside",i1="dismissableLayer.focusOutside",Ng,Xb=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Om=w.forwardRef((n,s)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:p,onDismiss:g,...f}=n,h=w.useContext(Xb),[x,y]=w.useState(null),v=x?.ownerDocument??globalThis?.document,[,S]=w.useState({}),k=Pa(s,Z=>y(Z)),N=Array.from(h.layers),[A]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),E=N.indexOf(A),L=x?N.indexOf(x):-1,H=h.layersWithOutsidePointerEventsDisabled.size>0,P=L>=E,q=l1(Z=>{const K=Z.target,re=[...h.branches].some(le=>le.contains(K));!P||re||(d?.(Z),p?.(Z),Z.defaultPrevented||g?.())},v),V=c1(Z=>{const K=Z.target;[...h.branches].some(le=>le.contains(K))||(m?.(Z),p?.(Z),Z.defaultPrevented||g?.())},v);return n1(Z=>{L===h.layers.size-1&&(l?.(Z),!Z.defaultPrevented&&g&&(Z.preventDefault(),g()))},v),w.useEffect(()=>{if(x)return i&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Ng=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(x)),h.layers.add(x),Sg(),()=>{i&&h.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ng)}},[x,v,i,h]),w.useEffect(()=>()=>{x&&(h.layers.delete(x),h.layersWithOutsidePointerEventsDisabled.delete(x),Sg())},[x,h]),w.useEffect(()=>{const Z=()=>S({});return document.addEventListener(um,Z),()=>document.removeEventListener(um,Z)},[]),t.jsx(ea.div,{...f,ref:k,style:{pointerEvents:H?P?"auto":"none":void 0,...n.style},onFocusCapture:jt(n.onFocusCapture,V.onFocusCapture),onBlurCapture:jt(n.onBlurCapture,V.onBlurCapture),onPointerDownCapture:jt(n.onPointerDownCapture,q.onPointerDownCapture)})});Om.displayName=r1;var o1="DismissableLayerBranch",Zb=w.forwardRef((n,s)=>{const i=w.useContext(Xb),l=w.useRef(null),d=Pa(s,l);return w.useEffect(()=>{const m=l.current;if(m)return i.branches.add(m),()=>{i.branches.delete(m)}},[i.branches]),t.jsx(ea.div,{...n,ref:d})});Zb.displayName=o1;function l1(n,s=globalThis?.document){const i=Kn(n),l=w.useRef(!1),d=w.useRef(()=>{});return w.useEffect(()=>{const m=g=>{if(g.target&&!l.current){let f=function(){Jb(s1,i,h,{discrete:!0})};const h={originalEvent:g};g.pointerType==="touch"?(s.removeEventListener("click",d.current),d.current=f,s.addEventListener("click",d.current,{once:!0})):f()}else s.removeEventListener("click",d.current);l.current=!1},p=window.setTimeout(()=>{s.addEventListener("pointerdown",m)},0);return()=>{window.clearTimeout(p),s.removeEventListener("pointerdown",m),s.removeEventListener("click",d.current)}},[s,i]),{onPointerDownCapture:()=>l.current=!0}}function c1(n,s=globalThis?.document){const i=Kn(n),l=w.useRef(!1);return w.useEffect(()=>{const d=m=>{m.target&&!l.current&&Jb(i1,i,{originalEvent:m},{discrete:!1})};return s.addEventListener("focusin",d),()=>s.removeEventListener("focusin",d)},[s,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Sg(){const n=new CustomEvent(um);document.dispatchEvent(n)}function Jb(n,s,i,{discrete:l}){const d=i.originalEvent.target,m=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});s&&d.addEventListener(n,s,{once:!0}),l?Qb(d,m):d.dispatchEvent(m)}var d1=Om,u1=Zb,Qn=globalThis?.document?w.useLayoutEffect:()=>{},m1="Portal",Dm=w.forwardRef((n,s)=>{const{container:i,...l}=n,[d,m]=w.useState(!1);Qn(()=>m(!0),[]);const p=i||d&&globalThis?.document?.body;return p?$N.createPortal(t.jsx(ea.div,{...l,ref:s}),p):null});Dm.displayName=m1;function h1(n,s){return w.useReducer((i,l)=>s[i][l]??i,n)}var nc=n=>{const{present:s,children:i}=n,l=f1(s),d=typeof i=="function"?i({present:l.isPresent}):w.Children.only(i),m=Pa(l.ref,p1(d));return typeof i=="function"||l.isPresent?w.cloneElement(d,{ref:m}):null};nc.displayName="Presence";function f1(n){const[s,i]=w.useState(),l=w.useRef(null),d=w.useRef(n),m=w.useRef("none"),p=n?"mounted":"unmounted",[g,f]=h1(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const h=gl(l.current);m.current=g==="mounted"?h:"none"},[g]),Qn(()=>{const h=l.current,x=d.current;if(x!==n){const v=m.current,S=gl(h);n?f("MOUNT"):S==="none"||h?.display==="none"?f("UNMOUNT"):f(x&&v!==S?"ANIMATION_OUT":"UNMOUNT"),d.current=n}},[n,f]),Qn(()=>
9{if(s){let h;const x=s.ownerDocument.defaultView??window,y=S=>{const N=gl(l.current).includes(CSS.escape(S.animationName));if(S.target===s&&N&&(f("ANIMATION_END"),!d.current)){const A=s.style.animationFillMode;s.style.animationFillMode="forwards",h=x.setTimeout(()=>{s.style.animationFillMode==="forwards"&&(s.style.animationFillMode=A)})}},v=S=>{S.target===s&&(m.current=gl(l.current))};return s.addEventListener("animationstart",v),s.addEventListener("animationcancel",y),s.addEventListener("animationend",y),()=>{x.clearTimeout(h),s.removeEventListener("animationstart",v),s.removeEventListener("animationcancel",y),s.removeEventListener("animationend",y)}}else f("ANIMATION_END")},[s,f]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:w.useCallback(h=>{l.current=h?getComputedStyle(h):null,i(h)},[])}}function gl(n){return n?.animationName||"none"}function p1(n){let s=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,i=s&&"isReactWarning"in s&&s.isReactWarning;return i?n.ref:(s=Object.getOwnPropertyDescriptor(n,"ref")?.get,i=s&&"isReactWarning"in s&&s.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var x1=jb[" useInsertionEffect ".trim().toString()]||Qn;function g1({prop:n,defaultProp:s,onChange:i=()=>{},caller:l}){const[d,m,p]=b1({defaultProp:s,onChange:i}),g=n!==void 0,f=g?n:d;{const x=w.useRef(n!==void 0);w.useEffect(()=>{const y=x.current;y!==g&&console.warn(`${l} is changing from ${y?"controlled":"uncontrolled"} to ${g?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=g},[g,l])}const h=w.useCallback(x=>{if(g){const y=y1(x)?x(n):x;y!==n&&p.current?.(y)}else m(x)},[g,n,m,p]);return[f,h]}function b1({defaultProp:n,onChange:s}){const[i,l]=w.useState(n),d=w.useRef(i),m=w.useRef(s);return x1(()=>{m.current=s},[s]),w.useEffect(()=>{d.current!==i&&(m.current?.(i),d.current=i)},[i,d]),[i,l,m]}function y1(n){return typeof n=="function"}var v1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),w1="VisuallyHidden",rc=w.forwardRef((n,s)=>t.jsx(ea.span,{...n,ref:s,style:{...v1,...n.style}}));rc.displayName=w1;var j1=rc,Pm="ToastProvider",[Rm,N1,S1]=t1("Toast"),[ey]=ac("Toast",[S1]),[k1,sc]=ey(Pm),ty=n=>{const{__scopeToast:s,label:i="Notification",duration:l=5e3,swipeDirection:d="right",swipeThreshold:m=50,children:p}=n,[g,f]=w.useState(null),[h,x]=w.useState(0),y=w.useRef(!1),v=w.useRef(!1);return i.trim()||console.error(`Invalid prop \`label\` supplied to \`${Pm}\`. Expected non-empty \`string\`.`),t.jsx(Rm.Provider,{scope:s,children:t.jsx(k1,{scope:s,label:i,duration:l,swipeDirection:d,swipeThreshold:m,toastCount:h,viewport:g,onViewportChange:f,onToastAdd:w.useCallback(()=>x(S=>S+1),[]),onToastRemove:w.useCallback(()=>x(S=>S-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:v,children:p})})};ty.displayName=Pm;var ay="ToastViewport",M1=["F8"],mm="toast.viewportPause",hm="toast.viewportResume",ny=w.forwardRef((n,s)=>{const{__scopeToast:i,hotkey:l=M1,label:d="Notifications ({hotkey})",...m}=n,p=sc(ay,i),g=N1(i),f=w.useRef(null),h=w.useRef(null),x=w.useRef(null),y=w.useRef(null),v=Pa(s,y,p.onViewportChange),S=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),k=p.toastCount>0;w.useEffect(()=>{const A=E=>{l.length!==0&&l.every(H=>E[H]||E.code===H)&&y.current?.focus()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[l]),w.useEffect(()=>{const A=f.current,E=y.current;if(k&&A&&E){const L=()=>
9{if(!p.isClosePausedRef.current){const V=new CustomEvent(mm);E.dispatchEvent(V),p.isClosePausedRef.current=!0}},H=()=>{if(p.isClosePausedRef.current){const V=new CustomEvent(hm);E.dispatchEvent(V),p.isClosePausedRef.current=!1}},P=V=>{!A.contains(V.relatedTarget)&&H()},q=()=>{A.contains(document.activeElement)||H()};return A.addEventListener("focusin",L),A.addEventListener("focusout",P),A.addEventListener("pointermove",L),A.addEventListener("pointerleave",q),window.addEventListener("blur",L),window.addEventListener("focus",H),()=>{A.removeEventListener("focusin",L),A.removeEventListener("focusout",P),A.removeEventListener("pointermove",L),A.removeEventListener("pointerleave",q),window.removeEventListener("blur",L),window.removeEventListener("focus",H)}}},[k,p.isClosePausedRef]);const N=w.useCallback(({tabbingDirection:A})=>{const L=g().map(H=>{const P=H.ref.current,q=[P,...U1(P)];return A==="forwards"?q:q.reverse()});return(A==="forwards"?L.reverse():L).flat()},[g]);return w.useEffect(()=>{const A=y.current;if(A){const E=L=>{const H=L.altKey||L.ctrlKey||L.metaKey;if(L.key==="Tab"&&!H){const q=document.activeElement,V=L.shiftKey;if(L.target===A&&V){h.current?.focus();return}const re=N({tabbingDirection:V?"backwards":"forwards"}),le=re.findIndex(he=>he===q);Iu(re.slice(le+1))?L.preventDefault():V?h.current?.focus():x.current?.focus()}};return A.addEventListener("keydown",E),()=>A.removeEventListener("keydown",E)}},[g,N]),t.jsxs(u1,{ref:f,role:"region","aria-label":d.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:k?void 0:"none"},children:[k&&t.jsx(fm,{ref:h,onFocusFromOutsideViewport:()=>{const A=N({tabbingDirection:"forwards"});Iu(A)}}),t.jsx(Rm.Slot,{scope:i,children:t.jsx(ea.ol,{tabIndex:-1,...m,ref:v})}),k&&t.jsx(fm,{ref:x,onFocusFromOutsideViewport:()=>{const A=N({tabbingDirection:"backwards"});Iu(A)}})]})});ny.displayName=ay;var ry="ToastFocusProxy",fm=w.forwardRef((n,s)=>{const{__scopeToast:i,onFocusFromOutsideViewport:l,...d}=n,m=sc(ry,i);return t.jsx(rc,{tabIndex:0,...d,ref:s,style:{position:"fixed"},onFocus:p=>{const g=p.relatedTarget;!m.viewport?.contains(g)&&l()}})});fm.displayName=ry;var Qi="Toast",A1="toast.swipeStart",T1="toast.swipeMove",C1="toast.swipeCancel",E1="toast.swipeEnd",sy=w.forwardRef((n,s)=>{const{forceMount:i,open:l,defaultOpen:d,onOpenChange:m,...p}=n,[g,f]=g1({prop:l,defaultProp:d??!0,onChange:m,caller:Qi});return t.jsx(nc,{present:i||g,children:t.jsx(D1,{open:g,...p,ref:s,onClose:()=>f(!1),onPause:Kn(n.onPause),onResume:Kn(n.onResume),onSwipeStart:jt(n.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:jt(n.onSwipeMove,h=>{const{x,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:jt(n.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:jt(n.onSwipeEnd,h=>{const{x,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),f(!1)})})})});sy.displayName=Qi;var[H1,O1]=ey(Qi,{onClose(){}}),D1=w.forwardRef((n,s)=>{const{__scopeToast:i,type:l="foreground",duration:d,open:m,onClose:p,onEscapeKeyDown:g,onPause:f,onResume:h,onSwipeStart:x,onSwipeMove:y,onSwipeCancel:v,onSwipeEnd:S,...k}=n,N=sc(Qi,i),[A,E]=w.useState(null),L=Pa(s,te=>E(te)),H=w.useRef(null),P=w.useRef(null),q=d||N.duration,V=w.useRef(0),Z=w.useRef(q),K=w.useRef(0),{onToastAdd:re,onToastRemove:le}=N,he=Kn(()=>{A?.contains(document.activeElement)&&N.viewport?.focus(),p()}),fe=w.useCallback(te=>
9{!te||te===1/0||(window.clearTimeout(K.current),V.current=new Date().getTime(),K.current=window.setTimeout(he,te))},[he]);w.useEffect(()=>{const te=N.viewport;if(te){const G=()=>{fe(Z.current),h?.()},T=()=>{const F=new Date().getTime()-V.current;Z.current=Z.current-F,window.clearTimeout(K.current),f?.()};return te.addEventListener(mm,T),te.addEventListener(hm,G),()=>{te.removeEventListener(mm,T),te.removeEventListener(hm,G)}}},[N.viewport,q,f,h,fe]),w.useEffect(()=>{m&&!N.isClosePausedRef.current&&fe(q)},[m,q,N.isClosePausedRef,fe]),w.useEffect(()=>(re(),()=>le()),[re,le]);const ye=w.useMemo(()=>A?my(A):null,[A]);return N.viewport?t.jsxs(t.Fragment,{children:[ye&&t.jsx(P1,{__scopeToast:i,role:"status","aria-live":l==="foreground"?"assertive":"polite",children:ye}),t.jsx(H1,{scope:i,onClose:he,children:tc.createPortal(t.jsx(Rm.ItemSlot,{scope:i,children:t.jsx(d1,{asChild:!0,onEscapeKeyDown:jt(g,()=>{N.isFocusedToastEscapeKeyDownRef.current||he(),N.isFocusedToastEscapeKeyDownRef.current=!1}),children:t.jsx(ea.li,{tabIndex:0,"data-state":m?"open":"closed","data-swipe-direction":N.swipeDirection,...k,ref:L,style:{userSelect:"none",touchAction:"none",...n.style},onKeyDown:jt(n.onKeyDown,te=>{te.key==="Escape"&&(g?.(te.nativeEvent),te.nativeEvent.defaultPrevented||(N.isFocusedToastEscapeKeyDownRef.current=!0,he()))}),onPointerDown:jt(n.onPointerDown,te=>{te.button===0&&(H.current={x:te.clientX,y:te.clientY})}),onPointerMove:jt(n.onPointerMove,te=>{if(!H.current)return;const G=te.clientX-H.current.x,T=te.clientY-H.current.y,F=!!P.current,B=["left","right"].includes(N.swipeDirection),ie=["left","up"].includes(N.swipeDirection)?Math.min:Math.max,M=B?ie(0,G):0,Y=B?0:ie(0,T),ne=te.pointerType==="touch"?10:2,ae={x:M,y:Y},se={originalEvent:te,delta:ae};F?(P.current=ae,bl(T1,y,se,{discrete:!1})):kg(ae,N.swipeDirection,ne)?(P.current=ae,bl(A1,x,se,{discrete:!1}),te.target.setPointerCapture(te.pointerId)):(Math.abs(G)>ne||Math.abs(T)>ne)&&(H.current=null)}),onPointerUp:jt(n.onPointerUp,te=>{const G=P.current,T=te.target;if(T.hasPointerCapture(te.pointerId)&&T.releasePointerCapture(te.pointerId),P.current=null,H.current=null,G){const F=te.currentTarget,B={originalEvent:te,delta:G};kg(G,N.swipeDirection,N.swipeThreshold)?bl(E1,S,B,{discrete:!0}):bl(C1,v,B,{discrete:!0}),F.addEventListener("click",ie=>ie.preventDefault(),{once:!0})}})})})}),N.viewport)})]}):null}),P1=n=>{const{__scopeToast:s,children:i,...l}=n,d=sc(Qi,s),[m,p]=w.useState(!1),[g,f]=w.useState(!1);return L1(()=>p(!0)),w.useEffect(()=>{const h=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(h)},[]),g?null:t.jsx(Dm,{asChild:!0,children:t.jsx(rc,{...l,children:m&&t.jsxs(t.Fragment,{children:[d.label," ",i]})})})},R1="ToastTitle",iy=w.forwardRef((n,s)=>{const{__scopeToast:i,...l}=n;return t.jsx(ea.div,{...l,ref:s})});iy.displayName=R1;var _1="ToastDescription",oy=w.forwardRef((n,s)=>{const{__scopeToast:i,...l}=n;return t.jsx(ea.div,{...l,ref:s})});oy.displayName=_1;var ly="ToastAction",cy=w.forwardRef((n,s)=>{const{altText:i,...l}=n;return i.trim()?t.jsx(uy,{altText:i,asChild:!0,children:t.jsx(_m,{...l,ref:s})}):(console.error(`Invalid prop \`altText\` supplied to \`${ly}\`. Expected non-empty \`string\`.`),null)});cy.displayName=ly;var dy="ToastClose",_m=w.forwardRef((n,s)=>{const{__scopeToast:i,...l}=n,d=O1(dy,i);return t.jsx(uy,{asChild:!0,children:t.jsx(ea.button,{type:"button",...l,ref:s,onClick:jt(n.onClick,d.onClose)})})});_m.displayName=dy;var uy=w.forwardRef((n,s)=>{const{__scopeToast:i,altText:l,...d}=n;return t.jsx(ea.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":l||void 0,...d,ref:s})});function my(n){const s=[];return Array.from(n.childNodes).forEach(l=>{if(l.nodeType===l.TEXT_NODE&&l.textContent&&s.push(l.textContent),z1(l)){const d=l.ariaHidden||l.hidden||l.style.display==="none",m=l.dataset.radixToastAnnounceExclude==="";if(!d)if(m){const p=l.dataset.radixToastAnnounceAlt;p&&s.push(p)}else s.push(...my(l))}}),s}function bl(n,s,i,{discrete:l}){const d=i.originalEvent.currentTarget,m=new CustomEvent(n,{bubbles:!0,cancelable:!0,detail:i});s&&d.addEventListener(n,s,{once:!0}),l?Qb(d,m):d.dispatchEvent(m)}var kg=(n,s,i=0)=>{const l=Math.abs(n.x),d=Math.abs(n.y),m=l>d;return s==="left"||s==="right"?m&&l>i:!m&&d>i};function L1(n=()=>{}){const s=Kn(n);Qn(()=>{let i=0,l=0;return i=window.requestAnimationFrame(()=>l=window.requestAnimationFrame(s)),()=>{window.cancelAnimationFrame(i),window.cancelAnimationFrame(l)}},[s])}function z1(n){return n.nodeType===n.ELEMENT_NODE}function U1(n){const s=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const d=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||d?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)s.push(i.currentNode);return s}function Iu(n){const s=document.activeElement;return n.some(i=>i===s?!0:(i.focus(),document.activeElement!==s))}var F1=ty,hy=ny,fy=sy,py=iy,xy=oy,gy=cy,by=_m;function yy(n){var s,i,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var d=n.length;for(s=0;s<d;s++)n[s]&&(i=yy(n[s]))&&(l&&(l+=" "),l+=i)}else for(i in n)n[i]&&(l&&(l+=" "),l+=i);return l}function vy(){for(var n,s,i=0,l="",d=arguments.length;i<d;i++)(n=arguments[i])&&(s=yy(n))&&(l&&(l+=" "),l+=s);return l}const Mg=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Ag=vy,B1=(n,s)=>i=>{var l;if(s?.variants==null)return Ag(n,i?.class,i?.className);const{variants:d,defaultVariants:m}=s,p=Object.keys(d).map(h=>{const x=i?.[h],y=m?.[h];if(x===null)return null;const v=Mg(x)||Mg(y);return d[h][v]}),g=i&&Object.entries(i).reduce((h,x)=>{let[y,v]=x;return v===void 0||(h[y]=v),h},{}),f=s==null||(l=s.compoundVariants)===null||l===void 0?void 0:l.reduce((h,x)=>{let{class:y,className:v,...S}=x;return Object.entries(S).every(k=>{let[N,A]=k;return Array.isArray(A)?A.includes({...m,...g}[N]):{...m,...g}[N]===A})?[...h,y,v]:h},[]);return Ag(n,p,f,i?.class,i?.className)};const q1=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),W1=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,i,l)=>l?l.toUpperCase():i.toLowerCase()),Tg=n=>{const s=W1(n);return s.charAt(0).toUpperCase()+s.slice(1)},wy=(...n)=>n.filter((s,i,l)=>!!s&&s.trim()!==""&&l.indexOf(s)===i).join(" ").trim(),I1=n=>
vendor: 4,486 bytes, line 9
9{for(const s in n)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};var V1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const G1=w.forwardRef(({color:n="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:d="",children:m,iconNode:p,...g},f)=>w.createElement("svg",{ref:f,...V1,width:s,height:s,stroke:n,strokeWidth:l?Number(i)*24/Number(s):i,className:wy("lucide",d),...!m&&!I1(g)&&{"aria-hidden":"true"},...g},[...p.map(([h,x])=>w.createElement(h,x)),...Array.isArray(m)?m:[m]]));const ce=(n,s)=>{const i=w.forwardRef(({className:l,...d},m)=>w.createElement(G1,{ref:m,iconNode:s,className:wy(`lucide-${q1(Tg(n))}`,`lucide-${n}`,l),...d}));return i.displayName=Tg(n),i};const Y1=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],$1=ce("arrow-down",Y1);const K1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Q1=ce("arrow-left",K1);const X1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],xt=ce("arrow-right",X1);const Z1=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],pm=ce("book-open",Z1);const J1=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],xm=ce("building-2",J1);const e2=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],ka=ce("calendar-days",e2);const t2=[["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M21 12.598V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8.5",key:"1glfrc"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}]],Cg=ce("calendar-plus",t2);const a2=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],n2=ce("calendar",a2);const r2=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],gm=ce("camera",r2);const s2=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Vu=ce("car",s2);const i2=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],Eg=ce("chart-pie",i2);const o2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],zl=ce("chevron-down",o2);const l2=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],c2=ce("chevron-left",l2);const d2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ul=ce("chevron-right",d2);const u2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],jy=ce("chevron-up",u2);const m2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],At=ce("circle-alert",m2);const h2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Bt=ce("circle-check",h2);const f2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],zt=ce("circle-check-big",f2);const p2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Xn=ce("circle-x",p2);
9const x2=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]],Hg=ce("clipboard-check",x2);const g2=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Xt=ce("clock",g2);const b2=[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]],y2=ce("construction",b2);const v2=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Og=ce("dollar-sign",v2);const w2=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],pn=ce("download",w2);const j2=[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]],N2=ce("droplets",j2);const S2=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Tr=ce("external-link",S2);const k2=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Ny=ce("facebook",k2);const M2=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Na=ce("file-text",M2);const A2=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Sy=ce("graduation-cap",A2);const T2=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Lm=ce("heart",T2);const C2=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],E2=ce("history",C2);const H2=[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]],Vi=ce("images",H2);const O2=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],ky=ce("instagram",O2);const D2=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],My=ce("key-round",D2);const P2=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],R2=ce("landmark",P2);const _2=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],ic=ce("leaf",_2);const L2=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],z2=ce("list",L2);const U2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Gi=ce("loader-circle",U2);const F2=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],B2=ce("log-out",F2);const q2=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],xn=ce("mail",q2);const W2=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Sa=ce("map-pin",W2);const I2=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],V2=ce("menu",I2);const G2=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Ay=ce("message-square",G2);const Y2=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Dg=ce("mic",Y2);const $2=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Pg=ce("package",$2);const K2=[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.
91-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]],Q2=ce("plane",K2);const X2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Z2=ce("plus",X2);const J2=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],Yi=ce("printer",J2);const eS=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ga=ce("refresh-cw",eS);const tS=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Ty=ce("save",tS);const aS=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Rg=ce("search",aS);const nS=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],oc=ce("send",nS);const rS=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Cs=ce("shield-alert",rS);const sS=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],yl=ce("shield-check",sS);const iS=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Cy=ce("shield",iS);const oS=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
vendor: 5,236 bytes, line 9
9],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ey=ce("sparkles",oS);const lS=[["path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3",key:"139s4v"}],["path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4",key:"1dlkgp"}],["path",{d:"M5 21h14",key:"11awu3"}]],cS=ce("sprout",lS);const dS=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Hy=ce("star",dS);const uS=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],mS=ce("tag",uS);const hS=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],fS=ce("toggle-left",hS);const pS=[["circle",{cx:"15",cy:"12",r:"3",key:"1afu0r"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],xS=ce("toggle-right",pS);const gS=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Fl=ce("trash-2",gS);const bS=[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]],zm=ce("tree-pine",bS);const yS=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],_g=ce("trending-up",yS);const vS=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Zt=ce("triangle-alert",vS);const wS=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Ya=ce("users",wS);const jS=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],NS=ce("waves",jS);const SS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Jt=ce("x",SS),kS=(n,s)=>{const i=new Array(n.length+s.length);for(let l=0;l<n.length;l++)i[l]=n[l];for(let l=0;l<s.length;l++)i[n.length+l]=s[l];return i},MS=(n,s)=>({classGroupId:n,validator:s}),Oy=(n=new Map,s=null,i)=>({nextPart:n,validators:s,classGroupId:i}),Bl="-",Lg=[],AS="arbitrary..",TS=n=>{const s=ES(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:p=>{if(p.startsWith("[")&&p.endsWith("]"))return CS(p);const g=p.split(Bl),f=g[0]===""&&g.length>1?1:0;return Dy(g,f,s)},getConflictingClassGroupIds:(p,g)=>{if(g){const f=l[p],h=i[p];return f?h?kS(h,f):f:h||Lg}return i[p]||Lg}}},Dy=(n,s,i)=>{if(n.length-s===0)return i.classGroupId;const d=n[s],m=i.nextPart.get(d);if(m){const h=Dy(n,s+1,m);if(h)return h}const p=i.validators;if(p===null)return;const g=s===0?n.join(Bl):n.slice(s).join(Bl),f=p.length;for(let h=0;h<f;h++){const x=p[h];if(x.validator(g))return x.classGroupId}},CS=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=n.slice(1,-1),i=s.indexOf(":"),l=s.slice(0,i);return l?AS+l:void 0})(),ES=n=>{const{theme:s,classGroups:i}=n;return HS(i,s)},HS=(n,s)=>{const i=Oy();for(const l in n){const d=n[l];Um(d,i,l,s)}return i},Um=(n,s,i,l)=>{const d=n.length;for(let m=0;m<d;m++){const p=n[m];OS(p,s,i,l)}},OS=(n,s,i,l)=>{if(typeof n=="string"){DS(n,s,i);return}if(typeof n=="function"){PS(n,s,i,l);return}RS(n,s,i,l)},DS=(n,s,i)=>{const l=n===""?s:Py(s,n);l.classGroupId=i},PS=(n,s,i,l)=>{if(_S(n)){Um(n(l),s,i,l);return}s.validators===null&&(s.validators=[]),s.validators.push(MS(i,n))},RS=(n,s,i,l)=>{const d=Object.entries(n),m=d.length;for(let p=0;p<m;p++){const[g,f]=d[p];Um(f,Py(s,g),i,l)}},Py=(n,s)=>{let i=n;const l=s.split(Bl),d=l.length;for(let m=0;m<d;m++){const p=l[m];let g=i.nextPart.get(p);g||(g=Oy(),i.nextPart.set(p,g)),i=g}return i},_S=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,LS=n=>{if(n<1)return{get:()=>{},set:()=>{}};let s=0,i=Object.create(null),l=Object.create(null);const d=(m,p)=>{i[m]=p,s++,s>n&&(s=0,l=i,i=Object.create(null))};return{get(m){let p=i[m];if(p!==void 0)return p;if((p=l[m])!==void 0)return d(m,p),p},set(m,p){m in i?i[m]=p:d(m,p)}}},bm="!",zg=":",zS=[],Ug=(n,s,i,l,d)=>({modifiers:n,hasImportantModifier:s,baseClassName:i,maybePostfixModifierPosition:l,isExternal:d}),US=n=>
vendor: 6,081 bytes, line 9
9{const{prefix:s,experimentalParseClassName:i}=n;let l=d=>{const m=[];let p=0,g=0,f=0,h;const x=d.length;for(let N=0;N<x;N++){const A=d[N];if(p===0&&g===0){if(A===zg){m.push(d.slice(f,N)),f=N+1;continue}if(A==="/"){h=N;continue}}A==="["?p++:A==="]"?p--:A==="("?g++:A===")"&&g--}const y=m.length===0?d:d.slice(f);let v=y,S=!1;y.endsWith(bm)?(v=y.slice(0,-1),S=!0):y.startsWith(bm)&&(v=y.slice(1),S=!0);const k=h&&h>f?h-f:void 0;return Ug(m,S,v,k)};if(s){const d=s+zg,m=l;l=p=>p.startsWith(d)?m(p.slice(d.length)):Ug(zS,!1,p,void 0,!0)}if(i){const d=l;l=m=>i({className:m,parseClassName:d})}return l},FS=n=>{const s=new Map;return n.orderSensitiveModifiers.forEach((i,l)=>{s.set(i,1e6+l)}),i=>{const l=[];let d=[];for(let m=0;m<i.length;m++){const p=i[m],g=p[0]==="[",f=s.has(p);g||f?(d.length>0&&(d.sort(),l.push(...d),d=[]),l.push(p)):d.push(p)}return d.length>0&&(d.sort(),l.push(...d)),l}},BS=n=>({cache:LS(n.cacheSize),parseClassName:US(n),sortModifiers:FS(n),...TS(n)}),qS=/\s+/,WS=(n,s)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:d,sortModifiers:m}=s,p=[],g=n.trim().split(qS);let f="";for(let h=g.length-1;h>=0;h-=1){const x=g[h],{isExternal:y,modifiers:v,hasImportantModifier:S,baseClassName:k,maybePostfixModifierPosition:N}=i(x);if(y){f=x+(f.length>0?" "+f:f);continue}let A=!!N,E=l(A?k.substring(0,N):k);if(!E){if(!A){f=x+(f.length>0?" "+f:f);continue}if(E=l(k),!E){f=x+(f.length>0?" "+f:f);continue}A=!1}const L=v.length===0?"":v.length===1?v[0]:m(v).join(":"),H=S?L+bm:L,P=H+E;if(p.indexOf(P)>-1)continue;p.push(P);const q=d(E,A);for(let V=0;V<q.length;++V){const Z=q[V];p.push(H+Z)}f=x+(f.length>0?" "+f:f)}return f},IS=(...n)=>{let s=0,i,l,d="";for(;s<n.length;)(i=n[s++])&&(l=Ry(i))&&(d&&(d+=" "),d+=l);return d},Ry=n=>{if(typeof n=="string")return n;let s,i="";for(let l=0;l<n.length;l++)n[l]&&(s=Ry(n[l]))&&(i&&(i+=" "),i+=s);return i},VS=(n,...s)=>{let i,l,d,m;const p=f=>{const h=s.reduce((x,y)=>y(x),n());return i=BS(h),l=i.cache.get,d=i.cache.set,m=g,g(f)},g=f=>{const h=l(f);if(h)return h;const x=WS(f,i);return d(f,x),x};return m=p,(...f)=>m(IS(...f))},GS=[],wt=n=>{const s=i=>i[n]||GS;return s.isThemeGetter=!0,s},_y=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ly=/^\((?:(\w[\w-]*):)?(.+)\)$/i,YS=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,$S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,KS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,QS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,XS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ZS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,In=n=>YS.test(n),Ee=n=>!!n&&!Number.isNaN(Number(n)),Vn=n=>!!n&&Number.isInteger(Number(n)),Gu=n=>n.endsWith("%")&&Ee(n.slice(0,-1)),hn=n=>$S.test(n),zy=()=>!0,JS=n=>KS.test(n)&&!QS.test(n),Fm=()=>!1,ek=n=>XS.test(n),tk=n=>ZS.test(n),ak=n=>!ue(n)&&!me(n),nk=n=>er(n,By,Fm),ue=n=>_y.test(n),Sr=n=>er(n,qy,JS),Fg=n=>er(n,uk,Ee),rk=n=>er(n,Iy,zy),sk=n=>er(n,Wy,Fm),Bg=n=>er(n,Uy,Fm),ik=n=>er(n,Fy,tk),vl=n=>er(n,Vy,ek),me=n=>Ly.test(n),Li=n=>Or(n,qy),ok=n=>Or(n,Wy),qg=n=>Or(n,Uy),lk=n=>Or(n,By),ck=n=>Or(n,Fy),wl=n=>Or(n,Vy,!0),dk=n=>Or(n,Iy,!0),er=(n,s,i)=>{const l=_y.exec(n);return l?l[1]?s(l[1]):i(l[2]):!1},Or=(n,s,i=!1)=>{const l=Ly.exec(n);return l?l[1]?s(l[1]):i:!1},Uy=n=>n==="position"||n==="percentage",Fy=n=>n==="image"||n==="url",By=n=>n==="length"||n==="size"||n==="bg-size",qy=n=>n==="length",uk=n=>n==="number",Wy=n=>n==="family-name",Iy=n=>n==="number"||n==="weight",Vy=n=>n==="shadow",mk=()=>{const n=wt("color"),s=wt("font"),i=wt("text"),l=wt("font-weight"),d=wt("tracking"),m=wt("leading"),p=wt("breakpoint"),g=wt("container"),f=wt("spacing"),h=wt("radius"),x=wt("shadow"),y=wt("inset-shadow"),v=wt("text-shadow"),S=wt("drop-shadow"),k=wt("blur"),N=wt("perspective"),A=wt("aspect"),E=wt("ease"),L=wt("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...P(),me,ue],V=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],K=()=>[me,ue,f],re=()=>[In,"full","auto",...K()],le=()=>[Vn,"none","subgrid",me,ue],he=()=>["auto",{span:["full",Vn,me,ue]},Vn,me,ue],fe=()=>[Vn,"auto",me,ue],ye=()=>["auto","min","max","fr",me,ue],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...K()],F=()=>[In,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...K()],B=()=>[In,"screen","full","dvw","lvw","svw","min","max","fit",...K()],ie=()=>[In,"screen","full","lh","dvh","lvh","svh","min","max","fit",...K()],M=()=>[n,me,ue],Y=()=>[...P(),qg,Bg,{position:[me,ue]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",lk,nk,{size:[me,ue]}],se=()=>[Gu,Li,Sr],J=()=>["","none","full",h,me,ue],ee=()=>["",Ee,Li,Sr],Ae=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],De=()=>[Ee,Gu,qg,Bg],ht=()=>["","none",k,me,ue],gt=()=>["none",Ee,me,ue],Tt=()=>["none",Ee,me,ue],z=()=>[Ee,me,ue],Ne=()=>[In,"full",...K()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hn],breakpoint:[hn],color:[zy],container:[hn],"drop-shadow":[hn],ease:["in","out","in-out"],font:[ak],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hn],shadow:[hn],spacing:["px",Ee],text:[hn],"text-shadow":[hn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",In,ue,me,A]}
vendor: 6,123 bytes, line 9
9],container:["container"],columns:[{columns:[Ee,ue,me,g]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:q()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:re()}],"inset-x":[{"inset-x":re()}],"inset-y":[{"inset-y":re()}],start:[{"inset-s":re(),start:re()}],end:[{"inset-e":re(),end:re()}],"inset-bs":[{"inset-bs":re()}],"inset-be":[{"inset-be":re()}],top:[{top:re()}],right:[{right:re()}],bottom:[{bottom:re()}],left:[{left:re()}],visibility:["visible","invisible","collapse"],z:[{z:[Vn,"auto",me,ue]}],basis:[{basis:[In,"full","auto",g,...K()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,In,"auto","initial","none",ue]}],grow:[{grow:["",Ee,me,ue]}],shrink:[{shrink:["",Ee,me,ue]}],order:[{order:[Vn,"first","last","none",me,ue]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:he()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:he()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:K()}],"gap-x":[{"gap-x":K()}],"gap-y":[{"gap-y":K()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:K()}],px:[{px:K()}],py:[{py:K()}],ps:[{ps:K()}],pe:[{pe:K()}],pbs:[{pbs:K()}],pbe:[{pbe:K()}],pt:[{pt:K()}],pr:[{pr:K()}],pb:[{pb:K()}],pl:[{pl:K()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":K()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":K()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...ie()]}],"min-block-size":[{"min-block":["auto",...ie()]}],"max-block-size":[{"max-block":["none",...ie()]}],w:[{w:[g,"screen",...F()]}],"min-w":[{"min-w":[g,"screen","none",...F()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[p]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",i,Li,Sr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,dk,rk]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gu,ue]}],"font-family":[{font:[ok,sk,s]}],"font-features":[{"font-features":[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,me,ue]}],"line-clamp":[{"line-clamp":[Ee,"none",me,Fg]}],leading:[{leading:[m,...K()]}],"list-image":[{"list-image":["none",me,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",me,Sr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Ee,"auto",me,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Vn,me,ue],radial:["",me,ue],conic:[Vn,me,ue]},ck,ik]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:se()}
9],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-bs":[{"border-bs":ee()}],"border-w-be":[{"border-be":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}
vendor: 5,754 bytes, line 9
9],"divide-color":[{divide:M()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,me,ue]}],"outline-w":[{outline:["",Ee,Li,Sr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",x,wl,vl]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",y,wl,vl]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Ee,Sr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",v,wl,vl]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[Ee,me,ue]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":De()}],"mask-image-linear-to-pos":[{"mask-linear-to":De()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":De()}],"mask-image-t-to-pos":[{"mask-t-to":De()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":De()}],"mask-image-r-to-pos":[{"mask-r-to":De()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":De()}],"mask-image-b-to-pos":[{"mask-b-to":De()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":De()}],"mask-image-l-to-pos":[{"mask-l-to":De()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":De()}],"mask-image-x-to-pos":[{"mask-x-to":De()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":De()}],"mask-image-y-to-pos":[{"mask-y-to":De()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[me,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":De()}],"mask-image-radial-to-pos":[{"mask-radial-to":De()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":De()}],"mask-image-conic-to-pos":[{"mask-conic-to":De()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,ue]}],filter:[{filter:["","none",me,ue]}],blur:[{blur:ht()}],brightness:[{brightness:[Ee,me,ue]}],contrast:[{contrast:[Ee,me,ue]}],"drop-shadow":[{"drop-shadow":["","none",S,wl,vl]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",Ee,me,ue]}],"hue-rotate":[{"hue-rotate":[Ee,me,ue]}],invert:[{invert:["",Ee,me,ue]}],saturate:[{saturate:[Ee,me,ue]}],sepia:[{sepia:["",Ee,me,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",me,ue]}],"backdrop-blur":[{"backdrop-blur":ht()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,me,ue]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,me,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,me,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,me,ue]}],"backdrop-invert":[{"backdrop-invert":["",Ee,me,ue]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,me,ue]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,me,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,me,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":K()}],"border-spacing-x":[{"border-spacing-x":K()}],"border-spacing-y":[{"border-spacing-y":K()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",me,ue]}],ease:[{ease:["linear","initial",E,me,ue]}],delay:[{delay:[Ee,me,ue]}],animate:[{animate:["none",L,me,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,me,ue]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:gt()}],"rotate-x":[{"rotate-x":gt()}],"rotate-y":[{"rotate-y":gt()}],"rotate-z":[{"rotate-z":gt()}],scale:[{scale:Tt()}],"scale-x":[{"scale-x":Tt()}],"scale-y":[{"scale-y":Tt()}],"scale-z":[{"scale-z":Tt()}],"scale-3d":["scale-3d"],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[me,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ne()}],"translate-x":[{"translate-x":Ne()}],"translate-y":[{"translate-y":Ne()}],"translate-z":[{"translate-z":Ne()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}
9],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mbs":[{"scroll-mbs":K()}],"scroll-mbe":[{"scroll-mbe":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pbs":[{"scroll-pbs":K()}],"scroll-pbe":[{"scroll-pbe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,ue]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Ee,Li,Sr,Fg]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},hk=VS(mk);function Dr(...n){return hk(vy(n))}const fk=F1,Gy=w.forwardRef(({className:n,...s},i)=>t.jsx(hy,{ref:i,className:Dr("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",n),...s}));Gy.displayName=hy.displayName;const pk=B1("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Yy=w.forwardRef(({className:n,variant:s,...i},l)=>t.jsx(fy,{ref:l,className:Dr(pk({variant:s}),n),...i}));Yy.displayName=fy.displayName;const xk=w.forwardRef(({className:n,...s},i)=>t.jsx(gy,{ref:i,className:Dr("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",n),...s}));xk.displayName=gy.displayName;const $y=w.forwardRef(({className:n,...s},i)=>t.jsx(by,{ref:i,className:Dr("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 6,462 bytes, line 9
9/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",n),"toast-close":"",...s,children:t.jsx(Jt,{className:"h-4 w-4"})}));$y.displayName=by.displayName;const Ky=w.forwardRef(({className:n,...s},i)=>t.jsx(py,{ref:i,className:Dr("text-sm font-semibold",n),...s}));Ky.displayName=py.displayName;const Qy=w.forwardRef(({className:n,...s},i)=>t.jsx(xy,{ref:i,className:Dr("text-sm opacity-90",n),...s}));Qy.displayName=xy.displayName;function gk(){const{toasts:n}=YN();return t.jsxs(fk,{children:[n.map(function({id:s,title:i,description:l,action:d,...m}){return t.jsxs(Yy,{...m,children:[t.jsxs("div",{className:"grid gap-1",children:[i&&t.jsx(Ky,{children:i}),l&&t.jsx(Qy,{children:l})]}),d,t.jsx($y,{})]},s)}),t.jsx(Gy,{})]})}const bk=["top","right","bottom","left"],Zn=Math.min,la=Math.max,ql=Math.round,jl=Math.floor,Va=n=>({x:n,y:n}),yk={left:"right",right:"left",bottom:"top",top:"bottom"};function ym(n,s,i){return la(n,Zn(s,i))}function gn(n,s){return typeof n=="function"?n(s):n}function bn(n){return n.split("-")[0]}function _s(n){return n.split("-")[1]}function Bm(n){return n==="x"?"y":"x"}function qm(n){return n==="y"?"height":"width"}function Ia(n){const s=n[0];return s==="t"||s==="b"?"y":"x"}function Wm(n){return Bm(Ia(n))}function vk(n,s,i){i===void 0&&(i=!1);const l=_s(n),d=Wm(n),m=qm(d);let p=d==="x"?l===(i?"end":"start")?"right":"left":l==="start"?"bottom":"top";return s.reference[m]>s.floating[m]&&(p=Wl(p)),[p,Wl(p)]}function wk(n){const s=Wl(n);return[vm(n),s,vm(s)]}function vm(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Wg=["left","right"],Ig=["right","left"],jk=["top","bottom"],Nk=["bottom","top"];function Sk(n,s,i){switch(n){case"top":case"bottom":return i?s?Ig:Wg:s?Wg:Ig;case"left":case"right":return s?jk:Nk;default:return[]}}function kk(n,s,i,l){const d=_s(n);let m=Sk(bn(n),i==="start",l);return d&&(m=m.map(p=>p+"-"+d),s&&(m=m.concat(m.map(vm)))),m}function Wl(n){const s=bn(n);return yk[s]+n.slice(s.length)}function Mk(n){return{top:0,right:0,bottom:0,left:0,...n}}function Xy(n){return typeof n!="number"?Mk(n):{top:n,right:n,bottom:n,left:n}}function Il(n){const{x:s,y:i,width:l,height:d}=n;return{width:l,height:d,top:i,left:s,right:s+l,bottom:i+d,x:s,y:i}}function Vg(n,s,i){let{reference:l,floating:d}=n;const m=Ia(s),p=Wm(s),g=qm(p),f=bn(s),h=m==="y",x=l.x+l.width/2-d.width/2,y=l.y+l.height/2-d.height/2,v=l[g]/2-d[g]/2;let S;switch(f){case"top":S={x,y:l.y-d.height};break;case"bottom":S={x,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y};break;case"left":S={x:l.x-d.width,y};break;default:S={x:l.x,y:l.y}}switch(_s(s)){case"start":S[p]-=v*(i&&h?-1:1);break;case"end":S[p]+=v*(i&&h?-1:1);break}return S}async function Ak(n,s){var i;s===void 0&&(s={});const{x:l,y:d,platform:m,rects:p,elements:g,strategy:f}=n,{boundary:h="clippingAncestors",rootBoundary:x="viewport",elementContext:y="floating",altBoundary:v=!1,padding:S=0}=gn(s,n),k=Xy(S),A=g[v?y==="floating"?"reference":"floating":y],E=Il(await m.getClippingRect({element:(i=await(m.isElement==null?void 0:m.isElement(A)))==null||i?A:A.contextElement||await(m.getDocumentElement==null?void 0:m.getDocumentElement(g.floating)),boundary:h,rootBoundary:x,strategy:f})),L=y==="floating"?{x:l,y:d,width:p.floating.width,height:p.floating.height}:p.reference,H=await(m.getOffsetParent==null?void 0:m.getOffsetParent(g.floating)),P=await(m.isElement==null?void 0:m.isElement(H))?await(m.getScale==null?void 0:m.getScale(H))||{x:1,y:1}:{x:1,y:1},q=Il(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:L,offsetParent:H,strategy:f}):L);return{top:(E.top-q.top+k.top)/P.y,bottom:(q.bottom-E.bottom+k.bottom)/P.y,left:(E.left-q.left+k.left)/P.x,right:(q.right-E.right+k.right)/P.x}}const Tk=50,Ck=async(n,s,i)=>{const{placement:l="bottom",strategy:d="absolute",middleware:m=[],platform:p}=i,g=p.detectOverflow?p:{...p,detectOverflow:Ak},f=await(p.isRTL==null?void 0:p.isRTL(s));let h=await p.getElementRects({reference:n,floating:s,strategy:d}),{x,y}=Vg(h,l,f),v=l,S=0;const k={};for(let N=0;N<m.length;N++){const A=m[N];if(!A)continue;const{name:E,fn:L}=A,{x:H,y:P,data:q,reset:V}=await L({x,y,initialPlacement:l,placement:v,strategy:d,middlewareData:k,rects:h,platform:g,elements:{reference:n,floating:s}});x=H??x,y=P??y,k[E]={...k[E],...q},V&&S<Tk&&(S++,typeof V=="object"&&(V.placement&&(v=V.placement),V.rects&&(h=V.rects===!0?await p.getElementRects({reference:n,floating:s,strategy:d}):V.rects),{x,y}=Vg(h,v,f)),N=-1)}return{x,y,placement:v,strategy:d,middlewareData:k}},Ek=n=>({name:"arrow",options:n,async fn(s){const{x:i,y:l,placement:d,rects:m,platform:p,elements:g,middlewareData:f}=s,{element:h,padding:x=0}=gn(n,s)||{};if(h==null)return{};const y=Xy(x),v={x:i,y:l},S=Wm(d),k=qm(S),N=await p.getDimensions(h),A=S==="y",E=A?"top":"left",L=A?"bottom":"right",H=A?"clientHeight":"clientWidth",P=m.reference[k]+m.reference[S]-v[S]-m.floating[k],q=v[S]-m.reference[S],V=await(p.getOffsetParent==null?void 0:p.getOffsetParent(h));let Z=V?V[H]:0;(!Z||!await(p.isElement==null?void 0:p.isElement(V)))&&(Z=g.floating[H]||m.floating[k]);const K=P/2-q/2,re=Z/2-N[k]/2-1,le=Zn(y[E],re),he=Zn(y[L],re),fe=le,ye=Z-N[k]-he,te=Z/2-N[k]/2+K,G=ym(fe,te,ye),T=!f.arrow&&_s(d)!=null&&te!==G&&m.reference[k]/2-(te<fe?le:he)-N[k]/2<0,F=T?te<fe?te-fe:te-ye:0;return{[S]:v[S]+F,data:{[S]:G,centerOffset:te-G-F,...T&&{alignmentOffset:F}},reset:T}}}),Hk=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(s){var i,l;const{placement:d,middlewareData:m,rects:p,initialPlacement:g,platform:f,elements:h}=s,{mainAxis:x=!0,crossAxis:y=!0,fallbackPlacements:v,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:N=!0,...A}=gn(n,s);if((i=m.arrow)!=null&&i.alignmentOffset)return{};const E=bn(d),L=Ia(g),H=bn(g)===g,P=await(f.isRTL==null?void 0:f.isRTL(h.floating)),q=v||(H||!N?[Wl(g)]:wk(g)),V=k!=="none";!v&&V&&q.push(...kk(g,N,k,P));const Z=[g,...q],K=await f.detectOverflow(s,A),re=[];let le=((l=m.flip)==null?void 0:l.overflows)||[];if(x&&re.push(K[E]),y){const te=vk(d,p,P);re.push(K[te[0]],K[te[1]])}if(le=[...le,{placement:d,overflows:re}],!re.every(te=>te<=0)){var he,fe;
vendor: 4,103 bytes, line 9
9const te=(((he=m.flip)==null?void 0:he.index)||0)+1,G=Z[te];if(G&&(!(y==="alignment"?L!==Ia(G):!1)||le.every(B=>Ia(B.placement)===L?B.overflows[0]>0:!0)))return{data:{index:te,overflows:le},reset:{placement:G}};let T=(fe=le.filter(F=>F.overflows[0]<=0).sort((F,B)=>F.overflows[1]-B.overflows[1])[0])==null?void 0:fe.placement;if(!T)switch(S){case"bestFit":{var ye;const F=(ye=le.filter(B=>{if(V){const ie=Ia(B.placement);return ie===L||ie==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ie=>ie>0).reduce((ie,M)=>ie+M,0)]).sort((B,ie)=>B[1]-ie[1])[0])==null?void 0:ye[0];F&&(T=F);break}case"initialPlacement":T=g;break}if(d!==T)return{reset:{placement:T}}}return{}}}};function Gg(n,s){return{top:n.top-s.height,right:n.right-s.width,bottom:n.bottom-s.height,left:n.left-s.width}}function Yg(n){return bk.some(s=>n[s]>=0)}const Ok=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(s){const{rects:i,platform:l}=s,{strategy:d="referenceHidden",...m}=gn(n,s);switch(d){case"referenceHidden":{const p=await l.detectOverflow(s,{...m,elementContext:"reference"}),g=Gg(p,i.reference);return{data:{referenceHiddenOffsets:g,referenceHidden:Yg(g)}}}case"escaped":{const p=await l.detectOverflow(s,{...m,altBoundary:!0}),g=Gg(p,i.floating);return{data:{escapedOffsets:g,escaped:Yg(g)}}}default:return{}}}}},Zy=new Set(["left","top"]);async function Dk(n,s){const{placement:i,platform:l,elements:d}=n,m=await(l.isRTL==null?void 0:l.isRTL(d.floating)),p=bn(i),g=_s(i),f=Ia(i)==="y",h=Zy.has(p)?-1:1,x=m&&f?-1:1,y=gn(s,n);let{mainAxis:v,crossAxis:S,alignmentAxis:k}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return g&&typeof k=="number"&&(S=g==="end"?k*-1:k),f?{x:S*x,y:v*h}:{x:v*h,y:S*x}}const Pk=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(s){var i,l;const{x:d,y:m,placement:p,middlewareData:g}=s,f=await Dk(s,n);return p===((i=g.offset)==null?void 0:i.placement)&&(l=g.arrow)!=null&&l.alignmentOffset?{}:{x:d+f.x,y:m+f.y,data:{...f,placement:p}}}}},Rk=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(s){const{x:i,y:l,placement:d,platform:m}=s,{mainAxis:p=!0,crossAxis:g=!1,limiter:f={fn:E=>{let{x:L,y:H}=E;return{x:L,y:H}}},...h}=gn(n,s),x={x:i,y:l},y=await m.detectOverflow(s,h),v=Ia(bn(d)),S=Bm(v);let k=x[S],N=x[v];if(p){const E=S==="y"?"top":"left",L=S==="y"?"bottom":"right",H=k+y[E],P=k-y[L];k=ym(H,k,P)}if(g){const E=v==="y"?"top":"left",L=v==="y"?"bottom":"right",H=N+y[E],P=N-y[L];N=ym(H,N,P)}const A=f.fn({...s,[S]:k,[v]:N});return{...A,data:{x:A.x-i,y:A.y-l,enabled:{[S]:p,[v]:g}}}}}},_k=function(n){return n===void 0&&(n={}),{options:n,fn(s){const{x:i,y:l,placement:d,rects:m,middlewareData:p}=s,{offset:g=0,mainAxis:f=!0,crossAxis:h=!0}=gn(n,s),x={x:i,y:l},y=Ia(d),v=Bm(y);let S=x[v],k=x[y];const N=gn(g,s),A=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(f){const H=v==="y"?"height":"width",P=m.reference[v]-m.floating[H]+A.mainAxis,q=m.reference[v]+m.reference[H]-A.mainAxis;S<P?S=P:S>q&&(S=q)}if(h){var E,L;const H=v==="y"?"width":"height",P=Zy.has(bn(d)),q=m.reference[y]-m.floating[H]+(P&&((E=p.offset)==null?void 0:E[y])||0)+(P?0:A.crossAxis),V=m.reference[y]+m.reference[H]+(P?0:((L=p.offset)==null?void 0:L[y])||0)-(P?A.crossAxis:0);k<q?k=q:k>V&&(k=V)}return{[v]:S,[y]:k}}}},Lk=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(s){var i,l;const{placement:d,rects:m,platform:p,elements:g}=s,{apply:f=()=>{},...h}=gn(n,s),x=await p.detectOverflow(s,h),y=bn(d),v=_s(d),S=Ia(d)==="y",{width:k,height:N}=m.floating;let A,E;y==="top"||y==="bottom"?(A=y,E=v===(await(p.isRTL==null?void 0:p.isRTL(g.floating))?"start":"end")?"left":"right"):(E=y,A=v==="end"?"top":"bottom");const L=N-x.top-x.bottom,H=k-x.left-x.right,P=Zn(N-x[A],L),q=Zn(k-x[E],H),V=!s.middlewareData.shift;let Z=P,K=q;if((i=s.middlewareData.shift)!=null&&i.enabled.x&&(K=H),(l=s.middlewareData.shift)!=null&&l.enabled.y&&(Z=L),V&&!v){const le=la(x.left,0),he=la(x.right,0),fe=la(x.top,0),ye=la(x.bottom,0);
9S?K=k-2*(le!==0||he!==0?le+he:la(x.left,x.right)):Z=N-2*(fe!==0||ye!==0?fe+ye:la(x.top,x.bottom))}await f({...s,availableWidth:K,availableHeight:Z});const re=await p.getDimensions(g.floating);return k!==re.width||N!==re.height?{reset:{rects:!0}}:{}}}};function lc(){return typeof window<"u"}function Ls(n){return Jy(n)?(n.nodeName||"").toLowerCase():"#document"}function ua(n){var s;return(n==null||(s=n.ownerDocument)==null?void 0:s.defaultView)||window}function Ka(n){var s;return(s=(Jy(n)?n.ownerDocument:n.document)||window.document)==null?void 0:s.documentElement}function Jy(n){return lc()?n instanceof Node||n instanceof ua(n).Node:!1}function Ra(n){return lc()?n instanceof Element||n instanceof ua(n).Element:!1}function yn(n){return lc()?n instanceof HTMLElement||n instanceof ua(n).HTMLElement:!1}function $g(n){return!lc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ua(n).ShadowRoot}function Xi(n){const{overflow:s,overflowX:i,overflowY:l,display:d}=_a(n);return/auto|scroll|overlay|hidden|clip/.test(s+l+i)&&d!=="inline"&&d!=="contents"}function zk(n){return/^(table|td|th)$/.test(Ls(n))}function cc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const Uk=/transform|translate|scale|rotate|perspective|filter/,Fk=/paint|layout|strict|content/,kr=n=>!!n&&n!=="none";let Yu;function Im(n){const s=Ra(n)?_a(n):n;return kr(s.transform)||kr(s.translate)||kr(s.scale)||kr(s.rotate)||kr(s.perspective)||!Vm()&&(kr(s.backdropFilter)||kr(s.filter))||Uk.test(s.willChange||"")||Fk.test(s.contain||"")}function Bk(n){let s=Jn(n);for(;yn(s)&&!Hs(s);){if(Im(s))return s;if(cc(s))return null;s=Jn(s)}return null}function Vm(){return Yu==null&&(Yu=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Yu}function Hs(n){return/^(html|body|#document)$/.test(Ls(n))}function _a(n){return ua(n).getComputedStyle(n)}function dc(n){return Ra(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Jn(n){if(Ls(n)==="html")return n;const s=n.assignedSlot||n.parentNode||$g(n)&&n.host||Ka(n);return $g(s)?s.host:s}function e0(n){const s=Jn(n);return Hs(s)?n.ownerDocument?n.ownerDocument.body:n.body:yn(s)&&Xi(s)?s:e0(s)}function $i(n,s,i){var l;s===void 0&&(s=[]),i===void 0&&(i=!0);const d=e0(n),m=d===((l=n.ownerDocument)==null?void 0:l.body),p=ua(d);if(m){const g=wm(p);return s.concat(p,p.visualViewport||[],Xi(d)?d:[],g&&i?$i(g):[])}else return s.concat(d,$i(d,[],i))}function wm(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function t0(n){const s=_a(n);let i=parseFloat(s.width)||0,l=parseFloat(s.height)||0;const d=yn(n),m=d?n.offsetWidth:i,p=d?n.offsetHeight:l,g=ql(i)!==m||ql(l)!==p;return g&&(i=m,l=p),{width:i,height:l,$:g}}function Gm(n){return Ra(n)?n:n.contextElement}function Es(n){const s=Gm(n);if(!yn(s))return Va(1);const i=s.getBoundingClientRect(),{width:l,height:d,$:m}=t0(s);let p=(m?ql(i.width):i.width)/l,g=(m?ql(i.height):i.height)/d;return(!p||!Number.isFinite(p))&&(p=1),(!g||!Number.isFinite(g))&&(g=1),{x:p,y:g}}const qk=Va(0);function a0(n){const s=ua(n);return!Vm()||!s.visualViewport?qk:{x:s.visualViewport.offsetLeft,y:s.visualViewport.offsetTop}}function Wk(n,s,i){return s===void 0&&(s=!1),!i||s&&i!==ua(n)?!1:s}function Cr(n,s,i,l){s===void 0&&(s=!1),i===void 0&&(i=!1);const d=n.getBoundingClientRect(),m=Gm(n);let p=Va(1);s&&(l?Ra(l)&&(p=Es(l)):p=Es(n));const g=Wk(m,i,l)?a0(m):Va(0);let f=(d.left+g.x)/p.x,h=(d.top+g.y)/p.y,x=d.width/p.x,y=d.height/p.y;if(m){const v=ua(m),S=l&&Ra(l)?ua(l):l;let k=v,N=wm(k);for(;N&&l&&S!==k;){const A=Es(N),E=N.getBoundingClientRect(),L=_a(N),H=E.left+(N.clientLeft+parseFloat(L.paddingLeft))*A.x,P=E.top+(N.clientTop+parseFloat(L.paddingTop))*A.y;f*=A.x,h*=A.y,x*=A.x,y*=A.y,f+=H,h+=P,k=ua(N),N=wm(k)}}return Il({width:x,height:y,x:f,y:h})}function uc(n,s){const i=dc(n).scrollLeft;return s?s.left+i:Cr(Ka(n)).left+i}function n0(n,s){const i=n.getBoundingClientRect(),l=i.left+s.scrollLeft-uc(n,i),d=i.top+s.scrollTop;return{x:l,y:d}}function Ik(n){let{elements:s,rect:i,offsetParent:l,strategy:d}=n;const m=d==="fixed",p=Ka(l),g=s?cc(s.floating):!1;if(l===p||g&&m)return i;let f={scrollLeft:0,scrollTop:0},h=Va(1);const x=Va(0),y=yn(l);
vendor: 5,677 bytes, line 9
9if((y||!y&&!m)&&((Ls(l)!=="body"||Xi(p))&&(f=dc(l)),y)){const S=Cr(l);h=Es(l),x.x=S.x+l.clientLeft,x.y=S.y+l.clientTop}const v=p&&!y&&!m?n0(p,f):Va(0);return{width:i.width*h.x,height:i.height*h.y,x:i.x*h.x-f.scrollLeft*h.x+x.x+v.x,y:i.y*h.y-f.scrollTop*h.y+x.y+v.y}}function Vk(n){return Array.from(n.getClientRects())}function Gk(n){const s=Ka(n),i=dc(n),l=n.ownerDocument.body,d=la(s.scrollWidth,s.clientWidth,l.scrollWidth,l.clientWidth),m=la(s.scrollHeight,s.clientHeight,l.scrollHeight,l.clientHeight);let p=-i.scrollLeft+uc(n);const g=-i.scrollTop;return _a(l).direction==="rtl"&&(p+=la(s.clientWidth,l.clientWidth)-d),{width:d,height:m,x:p,y:g}}const Kg=25;function Yk(n,s){const i=ua(n),l=Ka(n),d=i.visualViewport;let m=l.clientWidth,p=l.clientHeight,g=0,f=0;if(d){m=d.width,p=d.height;const x=Vm();(!x||x&&s==="fixed")&&(g=d.offsetLeft,f=d.offsetTop)}const h=uc(l);if(h<=0){const x=l.ownerDocument,y=x.body,v=getComputedStyle(y),S=x.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,k=Math.abs(l.clientWidth-y.clientWidth-S);k<=Kg&&(m-=k)}else h<=Kg&&(m+=h);return{width:m,height:p,x:g,y:f}}function $k(n,s){const i=Cr(n,!0,s==="fixed"),l=i.top+n.clientTop,d=i.left+n.clientLeft,m=yn(n)?Es(n):Va(1),p=n.clientWidth*m.x,g=n.clientHeight*m.y,f=d*m.x,h=l*m.y;return{width:p,height:g,x:f,y:h}}function Qg(n,s,i){let l;if(s==="viewport")l=Yk(n,i);else if(s==="document")l=Gk(Ka(n));else if(Ra(s))l=$k(s,i);else{const d=a0(n);l={x:s.x-d.x,y:s.y-d.y,width:s.width,height:s.height}}return Il(l)}function r0(n,s){const i=Jn(n);return i===s||!Ra(i)||Hs(i)?!1:_a(i).position==="fixed"||r0(i,s)}function Kk(n,s){const i=s.get(n);if(i)return i;let l=$i(n,[],!1).filter(g=>Ra(g)&&Ls(g)!=="body"),d=null;const m=_a(n).position==="fixed";let p=m?Jn(n):n;for(;Ra(p)&&!Hs(p);){const g=_a(p),f=Im(p);!f&&g.position==="fixed"&&(d=null),(m?!f&&!d:!f&&g.position==="static"&&!!d&&(d.position==="absolute"||d.position==="fixed")||Xi(p)&&!f&&r0(n,p))?l=l.filter(x=>x!==p):d=g,p=Jn(p)}return s.set(n,l),l}function Qk(n){let{element:s,boundary:i,rootBoundary:l,strategy:d}=n;const p=[...i==="clippingAncestors"?cc(s)?[]:Kk(s,this._c):[].concat(i),l],g=Qg(s,p[0],d);let f=g.top,h=g.right,x=g.bottom,y=g.left;for(let v=1;v<p.length;v++){const S=Qg(s,p[v],d);f=la(S.top,f),h=Zn(S.right,h),x=Zn(S.bottom,x),y=la(S.left,y)}return{width:h-y,height:x-f,x:y,y:f}}function Xk(n){const{width:s,height:i}=t0(n);return{width:s,height:i}}function Zk(n,s,i){const l=yn(s),d=Ka(s),m=i==="fixed",p=Cr(n,!0,m,s);let g={scrollLeft:0,scrollTop:0};const f=Va(0);function h(){f.x=uc(d)}if(l||!l&&!m)if((Ls(s)!=="body"||Xi(d))&&(g=dc(s)),l){const S=Cr(s,!0,m,s);f.x=S.x+s.clientLeft,f.y=S.y+s.clientTop}else d&&h();m&&!l&&d&&h();const x=d&&!l&&!m?n0(d,g):Va(0),y=p.left+g.scrollLeft-f.x-x.x,v=p.top+g.scrollTop-f.y-x.y;return{x:y,y:v,width:p.width,height:p.height}}function $u(n){return _a(n).position==="static"}function Xg(n,s){if(!yn(n)||_a(n).position==="fixed")return null;if(s)return s(n);let i=n.offsetParent;return Ka(n)===i&&(i=i.ownerDocument.body),i}function s0(n,s){const i=ua(n);if(cc(n))return i;if(!yn(n)){let d=Jn(n);for(;d&&!Hs(d);){if(Ra(d)&&!$u(d))return d;d=Jn(d)}return i}let l=Xg(n,s);for(;l&&zk(l)&&$u(l);)l=Xg(l,s);return l&&Hs(l)&&$u(l)&&!Im(l)?i:l||Bk(n)||i}const Jk=async function(n){const s=this.getOffsetParent||s0,i=this.getDimensions,l=await i(n.floating);return{reference:Zk(n.reference,await s(n.floating),n.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function e5(n){return _a(n).direction==="rtl"}const t5={convertOffsetParentRelativeRectToViewportRelativeRect:Ik,getDocumentElement:Ka,getClippingRect:Qk,getOffsetParent:s0,getElementRects:Jk,getClientRects:Vk,getDimensions:Xk,getScale:Es,isElement:Ra,isRTL:e5};function i0(n,s){return n.x===s.x&&n.y===s.y&&n.width===s.width&&n.height===s.height}function a5(n,s){let i=null,l;const d=Ka(n);function m(){var g;clearTimeout(l),(g=i)==null||g.disconnect(),i=null}function p(g,f){g===void 0&&(g=!1),f===void 0&&(f=1),m();const h=n.getBoundingClientRect(),{left:x,top:y,width:v,height:S}=h;if(g||s(),!v||!S)return;const k=jl(y),N=jl(d.clientWidth-(x+v)),A=jl(d.clientHeight-(y+S)),E=jl(x),H={rootMargin:-k+"px "+-N+"px "+-A+"px "+-E+"px",threshold:la(0,Zn(1,f))||1};let P=!0;function q(V){const Z=V[0].intersectionRatio;if(Z!==f){if(!P)return p();Z?p(!1,Z):l=setTimeout(()=>{p(!1,1e-7)},1e3)}Z===1&&!i0(h,n.getBoundingClientRect())&&p(),P=!1}try{i=new IntersectionObserver(q,{...H,root:d.ownerDocument})}catch{i=new IntersectionObserver(q,H)}i.observe(n)}return p(!0),m}function n5(n,s,i,l){l===void 0&&(l={});const{ancestorScroll:d=!0,ancestorResize:m=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:f=!1}=l,h=Gm(n),x=d||m?[...h?$i(h):[],...s?$i(s):[]]:[];x.forEach(E=>{d&&E.addEventListener("scroll",i,{passive:!0}),m&&E.addEventListener("resize",i)});const y=h&&g?a5(h,i):null;let v=-1,S=null;p&&(S=new ResizeObserver(E=>{let[L]=E;L&&L.target===h&&S&&s&&(S.unobserve(s),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var H;(H=S)==null||H.observe(s)})),i()}),h&&!f&&S.observe(h),s&&S.observe(s));let k,N=f?Cr(n):null;f&&A();function A(){const E=Cr(n);N&&!i0(N,E)&&i(),N=E,k=requestAnimationFrame(A)}return i(),()=>{var E;x.forEach(L=>{d&&L.removeEventListener("scroll",i),m&&L.removeEventListener("resize",i)}),y?.(),(E=S)==null||E.disconnect(),S=null,f&&cancelAnimationFrame(k)}}const r5=Pk,s5=Rk,i5=Hk,o5=Lk,l5=Ok,Zg=Ek,c5=_k,d5=(n,s,i)=>{const l=new Map,d={platform:t5,...i},m={...d.platform,_c:l};return Ck(n,s,{...d,platform:m})};var u5=typeof document<"u",m5=function(){},El=u5?w.useLayoutEffect:m5;
vendor: 14,295 bytes, line 9
9function Vl(n,s){if(n===s)return!0;if(typeof n!=typeof s)return!1;if(typeof n=="function"&&n.toString()===s.toString())return!0;let i,l,d;if(n&&s&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==s.length)return!1;for(l=i;l--!==0;)if(!Vl(n[l],s[l]))return!1;return!0}if(d=Object.keys(n),i=d.length,i!==Object.keys(s).length)return!1;for(l=i;l--!==0;)if(!{}.hasOwnProperty.call(s,d[l]))return!1;for(l=i;l--!==0;){const m=d[l];if(!(m==="_owner"&&n.$$typeof)&&!Vl(n[m],s[m]))return!1}return!0}return n!==n&&s!==s}function o0(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Jg(n,s){const i=o0(n);return Math.round(s*i)/i}function Ku(n){const s=w.useRef(n);return El(()=>{s.current=n}),s}function h5(n){n===void 0&&(n={});const{placement:s="bottom",strategy:i="absolute",middleware:l=[],platform:d,elements:{reference:m,floating:p}={},transform:g=!0,whileElementsMounted:f,open:h}=n,[x,y]=w.useState({x:0,y:0,strategy:i,placement:s,middlewareData:{},isPositioned:!1}),[v,S]=w.useState(l);Vl(v,l)||S(l);const[k,N]=w.useState(null),[A,E]=w.useState(null),L=w.useCallback(B=>{B!==V.current&&(V.current=B,N(B))},[]),H=w.useCallback(B=>{B!==Z.current&&(Z.current=B,E(B))},[]),P=m||k,q=p||A,V=w.useRef(null),Z=w.useRef(null),K=w.useRef(x),re=f!=null,le=Ku(f),he=Ku(d),fe=Ku(h),ye=w.useCallback(()=>{if(!V.current||!Z.current)return;const B={placement:s,strategy:i,middleware:v};he.current&&(B.platform=he.current),d5(V.current,Z.current,B).then(ie=>{const M={...ie,isPositioned:fe.current!==!1};te.current&&!Vl(K.current,M)&&(K.current=M,tc.flushSync(()=>{y(M)}))})},[v,s,i,he,fe]);El(()=>{h===!1&&K.current.isPositioned&&(K.current.isPositioned=!1,y(B=>({...B,isPositioned:!1})))},[h]);const te=w.useRef(!1);El(()=>(te.current=!0,()=>{te.current=!1}),[]),El(()=>{if(P&&(V.current=P),q&&(Z.current=q),P&&q){if(le.current)return le.current(P,q,ye);ye()}},[P,q,ye,le,re]);const G=w.useMemo(()=>({reference:V,floating:Z,setReference:L,setFloating:H}),[L,H]),T=w.useMemo(()=>({reference:P,floating:q}),[P,q]),F=w.useMemo(()=>{const B={position:i,left:0,top:0};if(!T.floating)return B;const ie=Jg(T.floating,x.x),M=Jg(T.floating,x.y);return g?{...B,transform:"translate("+ie+"px, "+M+"px)",...o0(T.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:ie,top:M}},[i,g,T.floating,x.x,x.y]);return w.useMemo(()=>({...x,update:ye,refs:G,elements:T,floatingStyles:F}),[x,ye,G,T,F])}const f5=n=>{function s(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:l,padding:d}=typeof n=="function"?n(i):n;return l&&s(l)?l.current!=null?Zg({element:l.current,padding:d}).fn(i):{}:l?Zg({element:l,padding:d}).fn(i):{}}}},p5=(n,s)=>{const i=r5(n);return{name:i.name,fn:i.fn,options:[n,s]}},x5=(n,s)=>{const i=s5(n);return{name:i.name,fn:i.fn,options:[n,s]}},g5=(n,s)=>({fn:c5(n).fn,options:[n,s]}),b5=(n,s)=>{const i=i5(n);return{name:i.name,fn:i.fn,options:[n,s]}},y5=(n,s)=>{const i=o5(n);return{name:i.name,fn:i.fn,options:[n,s]}},v5=(n,s)=>{const i=l5(n);return{name:i.name,fn:i.fn,options:[n,s]}},w5=(n,s)=>{const i=f5(n);return{name:i.name,fn:i.fn,options:[n,s]}};var j5="Arrow",l0=w.forwardRef((n,s)=>{const{children:i,width:l=10,height:d=5,...m}=n;return t.jsx(ea.svg,{...m,ref:s,width:l,height:d,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:t.jsx("polygon",{points:"0,0 30,0 15,10"})})});l0.displayName=j5;var N5=l0;function S5(n){const[s,i]=w.useState(void 0);return Qn(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const l=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const m=d[0];let p,g;if("borderBoxSize"in m){const f=m.borderBoxSize,h=Array.isArray(f)?f[0]:f;p=h.inlineSize,g=h.blockSize}else p=n.offsetWidth,g=n.offsetHeight;i({width:p,height:g})});return l.observe(n,{box:"border-box"}),()=>l.unobserve(n)}else i(void 0)},[n]),s}var c0="Popper",[d0,u0]=ac(c0),[WA,m0]=d0(c0),h0="PopperAnchor",f0=w.forwardRef((n,s)=>{const{__scopePopper:i,virtualRef:l,...d}=n,m=m0(h0,i),p=w.useRef(null),g=Pa(s,p),f=w.useRef(null);return w.useEffect(()=>{const h=f.current;f.current=l?.current||p.current,h!==f.current&&m.onAnchorChange(f.current)}),l?null:t.jsx(ea.div,{...d,ref:g})});f0.displayName=h0;var Ym="PopperContent",[k5,M5]=d0(Ym),p0=w.forwardRef((n,s)=>{const{__scopePopper:i,side:l="bottom",sideOffset:d=0,align:m="center",alignOffset:p=0,arrowPadding:g=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:x=0,sticky:y="partial",hideWhenDetached:v=!1,updatePositionStrategy:S="optimized",onPlaced:k,...N}=n,A=m0(Ym,i),[E,L]=w.useState(null),H=Pa(s,Ae=>L(Ae)),[P,q]=w.useState(null),V=S5(P),Z=V?.width??0,K=V?.height??0,re=l+(m!=="center"?"-"+m:""),le=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},he=Array.isArray(h)?h:[h],fe=he.length>0,ye={padding:le,boundary:he.filter(T5),altBoundary:fe},{refs:te,floatingStyles:G,placement:T,isPositioned:F,middlewareData:B}=h5({strategy:"fixed",placement:re,whileElementsMounted:(...Ae)=>n5(...Ae,{animationFrame:S==="always"}),elements:{reference:A.anchor},middleware:[p5({mainAxis:d+K,alignmentAxis:p}),f&&x5({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?g5():void 0,...ye}),f&&b5({...ye}),y5({...ye,apply:({elements:Ae,rects:we,availableWidth:De,availableHeight:ht})=>{const{width:gt,height:Tt}=we.reference,z=Ae.floating.style;z.setProperty("--radix-popper-available-width",`${De}px`),z.setProperty("--radix-popper-available-height",`${ht}px`),z.setProperty("--radix-popper-anchor-width",`${gt}px`),z.setProperty("--radix-popper-anchor-height",`${Tt}px`)}}),P&&w5({element:P,padding:g}),C5({arrowWidth:Z,arrowHeight:K}),v&&v5({strategy:"referenceHidden",...ye})]}),[ie,M]=b0(T),Y=Kn(k);Qn(()=>{F&&Y?.()},[F,Y]);const ne=B.arrow?.x,ae=B.arrow?.y,se=B.arrow?.centerOffset!==0,[J,ee]=w.useState();return Qn(()=>{E&&ee(window.getComputedStyle(E).zIndex)},[E]),t.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:F?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:t.jsx(k5,{scope:i,placedSide:ie,onArrowChange:q,arrowX:ne,arrowY:ae,shouldHideArrow:se,children:t.jsx(ea.div,{"data-side":ie,"data-align":M,...N,ref:H,style:{...N.style,animation:F?void 0:"none"}})})})});p0.displayName=Ym;var x0="PopperArrow",A5={top:"bottom",right:"left",bottom:"top",left:"right"},g0=w.forwardRef(function(s,i){const{__scopePopper:l,...d}=s,m=M5(x0,l),p=A5[m.placedSide];return t.jsx("span",{ref:m.onArrowChange,style:{position:"absolute",left:m.arrowX,top:m.arrowY,[p]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[m.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[m.placedSide],visibility:m.shouldHideArrow?"hidden":void 0},children:t.jsx(N5,{...d,ref:i,style:{...d.style,display:"block"}})})});g0.displayName=x0;function T5(n){return n!==null}var C5=n=>({name:"transformOrigin",options:n,fn(s){const{placement:i,rects:l,middlewareData:d}=s,p=d.arrow?.centerOffset!==0,g=p?0:n.arrowWidth,f=p?0:n.arrowHeight,[h,x]=b0(i),y={start:"0%",center:"50%",end:"100%"}[x],v=(d.arrow?.x??0)+g/2,S=(d.arrow?.y??0)+f/2;let k="",N="";return h==="bottom"?(k=p?y:`${v}px`,N=`${-f}px`):h==="top"?(k=p?y:`${v}px`,N=`${l.floating.height+f}px`):h==="right"?(k=`${-f}px`,N=p?y:`${S}px`):h==="left"&&(k=`${l.floating.width+f}px`,N=p?y:`${S}px`),{data:{x:k,y:N}}}});function b0(n){const[s,i="center"]=n.split("-");return[s,i]}var E5=f0,H5=p0,O5=g0,[mc]=ac("Tooltip",[u0]),$m=u0(),y0="TooltipProvider",D5=700,eb="tooltip.open",[P5,v0]=mc(y0),w0=n=>{const{__scopeTooltip:s,delayDuration:i=D5,skipDelayDuration:l=300,disableHoverableContent:d=!1,children:m}=n,p=w.useRef(!0),g=w.useRef(!1),f=w.useRef(0);return w.useEffect(()=>{const h=f.current;return()=>window.clearTimeout(h)},[]),t.jsx(P5,{scope:s,isOpenDelayedRef:p,delayDuration:i,onOpen:w.useCallback(()=>{window.clearTimeout(f.current),p.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>p.current=!0,l)},[l]),isPointerInTransitRef:g,onPointerInTransitChange:w.useCallback(h=>{g.current=h},[]),disableHoverableContent:d,children:m})};w0.displayName=y0;var j0="Tooltip",[IA,Zi]=mc(j0),jm="TooltipTrigger",R5=w.forwardRef((n,s)=>{const{__scopeTooltip:i,...l}=n,d=Zi(jm,i),m=v0(jm,i),p=$m(i),g=w.useRef(null),f=Pa(s,g,d.onTriggerChange),h=w.useRef(!1),x=w.useRef(!1),y=w.useCallback(()=>h.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),t.jsx(E5,{asChild:!0,...p,children:t.jsx(ea.button,{"aria-describedby":d.open?d.contentId:void 0,"data-state":d.stateAttribute,...l,ref:f,onPointerMove:jt(n.onPointerMove,v=>{v.pointerType!=="touch"&&!x.current&&!m.isPointerInTransitRef.current&&(d.onTriggerEnter(),x.current=!0)}),onPointerLeave:jt(n.onPointerLeave,()=>{d.onTriggerLeave(),x.current=!1}),onPointerDown:jt(n.onPointerDown,()=>{d.open&&d.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:jt(n.onFocus,()=>{h.current||d.onOpen()}),onBlur:jt(n.onBlur,d.onClose),onClick:jt(n.onClick,d.onClose)})})});R5.displayName=jm;var Km="TooltipPortal",[_5,L5]=mc(Km,{forceMount:void 0}),N0=n=>{const{__scopeTooltip:s,forceMount:i,children:l,container:d}=n,m=Zi(Km,s);return t.jsx(_5,{scope:s,forceMount:i,children:t.jsx(nc,{present:i||m.open,children:t.jsx(Dm,{asChild:!0,container:d,children:l})})})};N0.displayName=Km;var Os="TooltipContent",S0=w.forwardRef((n,s)=>{const i=L5(Os,n.__scopeTooltip),{forceMount:l=i.forceMount,side:d="top",...m}=n,p=Zi(Os,n.__scopeTooltip);return t.jsx(nc,{present:l||p.open,children:p.disableHoverableContent?t.jsx(k0,{side:d,...m,ref:s}):t.jsx(z5,{side:d,...m,ref:s})})}),z5=w.forwardRef((n,s)=>{const i=Zi(Os,n.__scopeTooltip),l=v0(Os,n.__scopeTooltip),d=w.useRef(null),m=Pa(s,d),[p,g]=w.useState(null),{trigger:f,onClose:h}=i,x=d.current,{onPointerInTransitChange:y}=l,v=w.useCallback(()=>{g(null),y(!1)},[y]),S=w.useCallback((k,N)=>{const A=k.currentTarget,E={x:k.clientX,y:k.clientY},L=W5(E,A.getBoundingClientRect()),H=I5(E,L),P=V5(N.getBoundingClientRect()),q=Y5([...H,...P]);g(q),y(!0)},[y]);return w.useEffect(()=>()=>v(),[v]),w.useEffect(()=>{if(f&&x){const k=A=>S(A,x),N=A=>S(A,f);return f.addEventListener("pointerleave",k),x.addEventListener("pointerleave",N),()=>{f.removeEventListener("pointerleave",k),x.removeEventListener("pointerleave",N)}}},[f,x,S,v]),w.useEffect(()=>{if(p){const k=N=>{const A=N.target,E={x:N.clientX,y:N.clientY},L=f?.contains(A)||x?.contains(A),H=!G5(E,p);L?v():H&&(v(),h())};return document.addEventListener("pointermove",k),()=>document.removeEventListener("pointermove",k)}},[f,x,p,h,v]),t.jsx(k0,{...n,ref:m})}),[U5,F5]=mc(j0,{isInside:!1}),B5=XN("TooltipContent"),k0=w.forwardRef((n,s)=>{const{__scopeTooltip:i,children:l,"aria-label":d,onEscapeKeyDown:m,onPointerDownOutside:p,...g}=n,f=Zi(Os,i),h=$m(i),{onClose:x}=f;return w.useEffect(()=>(document.addEventListener(eb,x),()=>document.removeEventListener(eb,x)),[x]),w.useEffect(()=>{if(f.trigger){const y=v=>{v.target?.contains(f.trigger)&&x()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[f.trigger,x]),t.jsx(Om,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:m,onPointerDownOutside:p,onFocusOutside:y=>y.preventDefault(),onDismiss:x,children:t.jsxs(H5,{"data-state":f.stateAttribute,...h,...g,ref:s,style:{...g.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[t.jsx(B5,{children:l}),t.jsx(U5,{scope:i,isInside:!0,children:t.jsx(j1,{id:f.contentId,role:"tooltip",children:d||l})})]})})});S0.displayName=Os;var M0="TooltipArrow",q5=w.forwardRef((n,s)=>{const{__scopeTooltip:i,...l}=n,d=$m(i);return F5(M0,i).isInside?null:t.jsx(O5,{...d,...l,ref:s})});q5.displayName=M0;function W5(n,s){const i=Math.abs(s.top-n.y),l=Math.abs(s.bottom-n.y),d=Math.abs(s.right-n.x),m=Math.abs(s.left-n.x);switch(Math.min(i,l,d,m)){case m:return"left";case d:return"right";case i:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function I5(n,s,i=5){const l=[];switch(s){case"top":l.push({x:n.x-i,y:n.y+i},{x:n.x+i,y:n.y+i});break;case"bottom":l.push({x:n.x-i,y:n.y-i},{x:n.x+i,y:n.y-i});break;case"left":l.push({x:n.x+i,y:n.y-i},{x:n.x+i,y:n.y+i});break;case"right":l.push({x:n.x-i,y:n.y-i},{x:n.x-i,y:n.y+i});break}return l}function V5(n){const{top:s,right:i,bottom:l,left:d}=n;return[{x:d,y:s},{x:i,y:s},{x:i,y:l},{x:d,y:l}]}function G5(n,s){const{x:i,y:l}=n;let d=!1;for(let m=0,p=s.length-1;m<s.length;p=m++){const g=s[m],f=s[p],h=g.x,x=g.y,y=f.x,v=f.y;x>l!=v>l&&i<(y-h)*(l-x)/(v-x)+h&&(d=!d)}return d}function Y5(n){const s=n.slice();return s.sort((i,l)=>i.x<l.x?-1:i.x>l.x?1:i.y<l.y?-1:i.y>l.y?1:0),$5(s)}function $5(n){if(n.length<=1)return n.slice();const s=[];for(let l=0;l<n.length;l++){const d=n[l];for(;s.length>=2;){const m=s[s.length-1],p=s[s.length-2];if((m.x-p.x)*(d.y-p.y)>=(m.y-p.y)*(d.x-p.x))s.pop();else break}s.push(d)}s.pop();const i=[];for(let l=n.length-1;l>=0;l--){const d=n[l];for(;i.length>=2;){const m=i[i.length-1],p=i[i.length-2];if((m.x-p.x)*(d.y-p.y)>=(m.y-p.y)*(d.x-p.x))i.pop();else break}i.push(d)}return i.pop(),s.length===1&&i.length===1&&s[0].x===i[0].x&&s[0].y===i[0].y?s:s.concat(i)}var K5=w0,Q5=N0,A0=S0;const X5=K5,Z5=w.forwardRef(({className:n,sideOffset:s=4,...i},l)=>t.jsx(Q5,{children:t.jsx(A0,{ref:l,sideOffset:s,className:Dr("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
9de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",n),...i})}));Z5.displayName=A0.displayName;const He={"malama-kapapapuhi":{id:"malama-kapapapuhi",title:"KÅ«kulu i loko o Kapapapuhi",subtitle:"Coastal Restoration",location:"Kapapapuhi Point Park, Ê»Ewa Beach",locationDetail:'Kapapapuhi Point Park, Ê»Ewa Beach â GPS "Kapapapuhi St" (not the park name)',mapsUrl:"https://maps.google.com/?q=Kapapapuhi+St,+Ewa+Beach,+HI",schedule:"Second Saturday of each month, 8:00 AM â 12:00 PM",whatToBring:["Closed-toe shoes","Sun protection (hat, sunscreen)","Water bottle","Gloves (provided)"],flexible:!1,startHour:8,endHour:12,schedulePattern:{nth:2,label:"second Saturday"}},"waipahu-loi":{id:"waipahu-loi",title:"PuÊ»uhonua O Waipahu LoÊ»i",subtitle:"Traditional Taro Farming",location:"Pupuole Street Mini Park, Waipahu",locationDetail:"Pupuole Street Mini Park, Waipahu â behind Waipahu Intermediate School",mapsUrl:"https://maps.google.com/?q=Pupuole+St+Mini+Park,+Waipahu,+HI",schedule:"Fourth Saturday of each month, 8:00 AM â 12:00 PM",whatToBring:["Old clothes you can get muddy","Closed-toe shoes or water shoes","Water bottle","Sun protection"],flexible:!1,startHour:8,endHour:12,schedulePattern:{nth:4,label:"fourth Saturday"}},"pearl-harbor-aviation":{id:"pearl-harbor-aviation",title:"PHAM Community Monthly Workday",subtitle:"Pearl Harbor Aviation Museum (PHAM)",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",locationDetail:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor â bring a valid government-issued photo ID for base access",mapsUrl:"https://maps.google.com/?q=Pearl+Harbor+Aviation+Museum,+Ford+Island,+HI",schedule:"First Saturday of each month, 8:00 AM â 12:00 PM",whatToBring:["Government-issued photo ID (required for base entry)","Closed-toe shoes","Long sleeves and work clothes","Sun protection (hat, sunscreen)","Water bottle","Work gloves (provided)"],flexible:!1,startHour:8,endHour:12,schedulePattern:{nth:1,label:"first Saturday"}},"halawa-landing":{id:"halawa-landing",title:"HÄlawa Landing Community Workday",subtitle:"Pearl Harbor National Memorial",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu â meet in front of the Visitor Center bookstore",locationDetail:`Pearl Harbor National Memorial, HÄlawa, OÊ»ahu 10 11Free parking: in front of Restaurant 604 â 57 Arizona Memorial Dr, Honolulu, HI 96818 12Meet in front of the Visitor Center bookstore`,mapsUrl:"https://maps.google.com/?q=57+Arizona+Memorial+Dr,+Honolulu,+HI+96818",schedule:"Third Saturday of each month, 8:00 AM â 12:00 PM",whatToBring:["Closed-toe shoes (required)","Long sleeves and work clothes","Sun protection (hat, sunscreen)","Water bottle","Work gloves (provided)","Only clear bags are allowed per NPS policy"],flexible:!1,startHour:8,endHour:12,schedulePattern:{nth:3,label:"third Saturday",startDate:"2026-06-20"}},"adopt-a-plot":{id:"adopt-a-plot",title:"Adopt a Plot",subtitle:"Stewardship Program",location:"Various sites across Ê»Ewa Moku",locationDetail:"Various sites across Ê»Ewa Moku",mapsUrl:null,schedule:"Flexible â a staff member will reach out to coordinate your schedule",whatToBring:["Comfortable outdoor clothing","Water bottle","Curiosity and aloha"],flexible:!0,startHour:8,endHour:12,schedulePattern:null},"education-outreach":{id:"education-outreach",title:"Education & Outreach",subtitle:"School & Community Programs",location:"Schools and community centers, Ê»Ewa district",locationDetail:"Schools and community centers, Ê»Ewa district",mapsUrl:null,schedule:"Weekdays during the school year â a staff member will reach out to coordinate",whatToBring:["Enthusiasm for teaching","Patience with keiki","Professional dress"],flexible:!0,startHour:8,endHour:12,schedulePattern:null},general:{id:"general",title:"General Volunteer",subtitle:"All HOH Programs",location:"Various sites across Ê»Ewa Moku",locationDetail:"Various sites across Ê»Ewa Moku",mapsUrl:null,schedule:"Flexible schedule across all active HOH projects",whatToBring:["Comfortable outdoor clothing","Closed-toe shoes","Water bottle","Sun protection"],flexible:!0,startHour:8,endHour:12,schedulePattern:null}};function Er(n){return He[n]}function Ds(n){const s=n>=12?"PM":"AM";return`${n%12===0?12:n%12}:00 ${s}`}function Qm(n,s,i){const d=new Date(n,s,1).getDay(),m=d===6?0:6-d;return new Date(n,s,1+m+(i-1)*7)}function J5(n){const i=(4-new Date(n,10,1).getDay()+7)%7,l=new Date(n,10,1+i),d=new Date(n,10,l.getDate()+21);return new Date(n,10,d.getDate()+2)}function T0(n){const s=n.getFullYear(),i=n.getMonth(),l=n.getDate();if(i===6&&l===4)return new Date(s,6,l+7);if(i===10){const d=J5(s);if(l===d.getDate())return new Date(s,10,l-7)}return i===11&&l>=24&&l<=26?new Date(s,11,l-7):i===0&&l===1?new Date(s,0,8):n}function Xm(n,s=6){const l=He[n]?.schedulePattern??null;if(!l)return[];const d=new Date;d.setHours(0,0,0,0);const m=l.startDate?new Date(l.startDate+"T00:00:00"):d,p=m>d?m:d,g=[];let f=p.getFullYear(),h=p.getMonth(),x=0;for(;g.length<s&&x<24;){const y=Qm(f,h,l.nth),v=T0(y);if(v>=p){const S=v.getFullYear(),k=String(v.getMonth()+1).padStart(2,"0"),N=String(v.getDate()).padStart(2,"0"),A=`${S}-${k}-${N}`,E=`${v.getDate()} ${v.toLocaleDateString("en-US",{month:"long"})} ${S}`;g.push({dateStr:A,label:E})}h++,h>11&&(h=0,f++),x++}return g}const e3="/hoh-logo.png",tb=[{label:"Home",href:"/"},{label:"About",href:"/about",children:[{label:"Staff",href:"/staff"},{label:"Board of Directors & Advisors",href:"/board"},{label:"HOH Partners",href:"/partners"},{label:"Our Model (3N1)",href:"/our-model"},{label:"News & Updates",href:"/news"},{label:"Stories & Interviews",href:"/stories"}
12,{label:"Transparency & Financials",href:"/transparency"},{label:"Past, Present & Future Grants",href:"/grants"}]},{label:"Program Sites",href:"/project-sites"},{label:"Volunteer",href:"/volunteer",children:[{label:"KÅ«kulu i loko o Kapapapuhi",href:"/volunteer?signup=malama-kapapapuhi"},{label:"PuÊ»uhonua O Waipahu LoÊ»i",href:"/volunteer?signup=waipahu-loi"},{label:"PHAM Community Monthly Workday",href:"/volunteer?signup=pearl-harbor-aviation"},{label:"HÄlawa Landing Community Workday",href:"/volunteer?signup=halawa-landing"},{label:"Adopt a Plot",href:"/volunteer?signup=adopt-a-plot"},{label:"Education & Outreach",href:"/volunteer?signup=education-outreach"}]},{label:"Support",href:"/support",children:[{label:"Donate",href:"/donate"},{label:"Sponsorship",href:"/sponsorship"},{label:"Shop",href:"https://hoh808.threadless.com/",external:!0}]},{label:"License Plate",href:"/license-plate"},{label:"Contact Us",href:"/contact"},{label:"Events",href:"/events"}];function t3(){const[n,s]=w.useState(!1),[i,l]=w.useState(null),[d]=Lj(),m=w.useRef(null);function p(f){m.current&&clearTimeout(m.current),l(f)}function g(){m.current=setTimeout(()=>l(null),180)}return t.jsxs("nav",{className:"bg-white border-b border-border sticky top-0 z-50 shadow-sm","data-testid":"navbar",children:[t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"flex items-center justify-between h-16",children:[t.jsxs(pe,{href:"/",className:"flex items-center gap-3","data-testid":"nav-logo",children:[t.jsx("img",{src:e3,alt:"Hui o HoÊ»ohonua logo",className:"w-10 h-10 object-contain"}),t.jsx("span",{className:"font-serif font-semibold text-foreground text-sm leading-tight hidden sm:block",children:"Hui o HoÊ»ohonua"})]}),t.jsxs("div",{className:"hidden md:flex items-center gap-1",children:[tb.map(f=>t.jsxs("div",{className:"relative",onMouseEnter:()=>f.children&&p(f.label),onMouseLeave:()=>f.children&&g(),children:[t.jsxs(pe,{href:f.href,className:`flex items-center gap-1 px-3 py-2 rounded-md text-sm font-medium transition-colors ${d===f.href?"text-primary bg-primary/10":"text-foreground/70 hover:text-primary hover:bg-primary/5"}`,"data-testid":`nav-${f.label.toLowerCase().replace(/\s+/g,"-")}`,children:[f.label,f.children&&t.jsx(zl,{className:"w-3 h-3"})]}),f.children&&i===f.label&&t.jsx("div",{className:"absolute top-full left-0 w-56 z-50",onMouseEnter:()=>p(f.label),onMouseLeave:()=>g(),children:t.jsx("div",{className:"mt-1 bg-white border border-border rounded-lg shadow-lg py-1",children:f.children.map(h=>h.external?t.jsx("a",{href:h.href,target:"_blank",rel:"noopener noreferrer",className:"block px-4 py-2 text-sm text-foreground/70 hover:text-primary hover:bg-primary/5",children:h.label},h.href):t.jsx(pe,{href:h.href,className:"block px-4 py-2 text-sm text-foreground/70 hover:text-primary hover:bg-primary/5",onClick:()=>l(null),children:h.label},h.href))})})]},f.href)),t.jsx("a",{href:"/donate",className:"ml-2 px-4 py-2 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary/90 transition-colors","data-testid":"nav-donate-btn",children:"Support Us"})]}),t.jsx("button",{className:"md:hidden p-2 rounded-md text-foreground/70 hover:text-primary",onClick:()=>s(!n),"aria-label":n?"Close navigation menu":"Open navigation menu","aria-expanded":n,"data-testid":"nav-mobile-toggle",children:n?t.jsx(Jt,{className:"w-6 h-6","aria-hidden":"true"}):t.jsx(V2,{className:"w-6 h-6","aria-hidden":"true"})})]})}),n&&t.jsxs("div",{className:"md:hidden border-t border-border bg-white px-4 py-3 space-y-1","data-testid":"mobile-menu",children:[tb.map(f=>t.jsxs("div",{children:[t.jsx(pe,{href:f.href,className:"block px-3 py-2 text-sm font-medium text-foreground/70 hover:text-primary",onClick:()=>s(!1),children:f.label}),f.children&&t.jsx("div",{className:"pl-4 space-y-1",children:f.children.map(h=>h.external?t.jsx("a",{href:h.href,target:"_blank",rel:"noopener noreferrer",className:"block px-3 py-1.5 text-sm text-muted-foreground hover:text-primary",children:h.label},h.href):t.jsx(pe,{href:h.href,className:"block px-3 py-1.5 text-sm text-muted-foreground hover:text-primary",onClick:()=>s(!1),children:h.label},h.href))})]},f.href)),t.jsx("a",{href:"/donate",className:"block mt-2 px-3 py-2 bg-primary text-white text-sm font-medium rounded-md text-center",onClick:()=>s(!1),children:"Support Us"})]})]})}const a3="/hoh-logo.png";function n3(){return t.jsx("footer",{className:"bg-foreground text-white","data-testid":"footer",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[t.jsx("div",{className:"w-10 h-10 rounded-full bg-white flex items-center justify-center overflow-hidden",children:t.jsx("img",{src:a3,alt:"Hui o HoÊ»ohonua logo",className:"w-9 h-9 object-contain"})}),t.jsx("span",{className:"font-serif font-semibold text-white text-sm leading-tight",children:"Hui o HoÊ»ohonua"})]}),t.jsx("p",{className:"text-white/70 text-sm leading-relaxed",children:"Serving the land, water, and people of the Ê»Ewa Moku. Following the lead of this place and those who have always cared for it."}),t.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[t.jsx("a",{href:"https://www.facebook.com/HOH808/",target:"_blank",rel:"noopener noreferrer",className:"text-white/60 hover:text-white transition-colors","aria-label":"Hui o HoÊ»ohonua on Facebook","data-testid":"footer-facebook",children:t.jsx(Ny,{className:"w-5 h-5","aria-hidden":"true"})}),t.jsx("a",{href:"https://www.instagram.com/huiohoohonua/",target:"_blank",rel:"noopener noreferrer",className:"text-white/60 hover:text-white transition-colors","aria-label":"Hui o HoÊ»ohonua on Instagram","data-testid":"footer-instagram",children:t.jsx(ky,{className:"w-5 h-5","aria-hidden":"true"})}),t.jsx("a",{href:"mailto:[email protected]",className:"text-white/60 hover:text-white transition-colors","aria-label":"Email Hui o HoÊ»ohonua","data-testid":"footer-email",children:t.jsx(xn,{className:"w-5 h-5","aria-hidden":"true"})})]})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-serif font-semibold text-white mb-4",children:"Qu
12ick Links"}),t.jsx("ul",{className:"space-y-2",children:[{label:"About",href:"/about"},{label:"Our Programs",href:"/programs"},{label:"News & Updates",href:"/news"},{label:"Stories & Interviews",href:"/stories"},{label:"Transparency & Financials",href:"/transparency"},{label:"Past, Present & Future Grants",href:"/grants"},{label:"License Plate",href:"/license-plate"},{label:"HOH Partners",href:"/partners"},{label:"Program Sites",href:"/project-sites"},{label:"Volunteer",href:"/volunteer"},{label:"Events",href:"/events"},{label:"Contact Us",href:"/contact"}].map(n=>t.jsx("li",{children:t.jsx(pe,{href:n.href,className:"text-white/70 hover:text-white text-sm transition-colors",children:n.label})},n.href))})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-serif font-semibold text-white mb-4",children:"Contact"}),t.jsxs("p",{className:"text-white/70 text-sm leading-relaxed",children:["Hui o HoÊ»ohonua",t.jsx("br",{}),"PO Box 970711",t.jsx("br",{}),"Waipahu, HI 96797"]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx("a",{href:"tel:+18086280937",className:"text-white/70 hover:text-white text-sm transition-colors block",children:"808-628-0937"}),t.jsx("a",{href:"mailto:[email protected]",className:"text-white/70 hover:text-white text-sm transition-colors block",children:"[email protected]"})]}),t.jsx("div",{className:"mt-6",children:t.jsx(pe,{href:"/donate",className:"inline-block px-5 py-2.5 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary/90 transition-colors","data-testid":"footer-donate",children:"Donate"})})]})]}),t.jsxs("div",{className:"border-t border-white/10 mt-10 pt-6 text-center text-white/40 text-xs space-y-1",children:[t.jsxs("p",{children:["© ",new Date().getFullYear()," Hui o HoÊ»ohonua. A 501(c)(3) Nonprofit Organization. EIN: 47-3973613. All rights reserved."]}),t.jsx("p",{children:"PO Box 970711, Waipahu, HI 96797 · Donations are tax-deductible to the fullest extent of the law."})]})]})})}function Be({title:n,description:s}){const i="Hui o HoÊ»ohonua",l=n?`${n} â ${i}`:i;return t.jsxs(mN,{children:[t.jsx("title",{children:l}),t.jsx("meta",{name:"description",content:s})]})}const r3="/hoh-logo.png",s3=["/gallery-1.png","/gallery-2.png","/gallery-3.png","/gallery-4.jpg","/gallery-5.jpg","/gallery-6.jpg"],i3=[{hawaiian:"Ê»Äina Momona",english:"Fertile Lands",description:"Land that is abundantly productive â taro paddies, fishponds, and rich soil tended through generations.",emoji:"ð±",gradient:"from-emerald-900 via-emerald-700 to-emerald-500",image:"https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=600&q=80"},{hawaiian:"Wahi Pana",english:"Sacred or Storied Place",description:"A place made significant by legend, history, or spiritual meaning â the Ê»Ewa moku is full of them.",emoji:"â°ï¸",gradient:"from-stone-800 via-amber-800 to-stone-600",image:"https://images.unsplash.com/photo-1598135753163-6167c1a1ad65?w=600&q=80"},{hawaiian:"KiaÊ»i",english:"Guardian, Protector, Caretaker",description:"One who watches over and protects â a steward of the land, water, and community.",emoji:"ð",gradient:"from-teal-900 via-teal-700 to-cyan-600",image:"https://images.unsplash.com/photo-1505118380757-91f5f5632de0?w=600&q=80"},{hawaiian:"Hui",english:"A Group United in Purpose",description:"A collective, an association, a coming-together of people who share a common goal.",emoji:"ð¤",gradient:"from-green-900 via-green-700 to-lime-600",image:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=600&q=80"},{hawaiian:"Aloha Ê»Äina",english:"Love of the Land",description:"A deep, reciprocal love between people and the earth â to care for the land as the land cares for us.",emoji:"ðº",gradient:"from-rose-900 via-emerald-800 to-green-700",image:"https://images.unsplash.com/photo-1542259009477-d625272157b7?w=600&q=80"},{hawaiian:"Kuleana",english:"Responsibility",description:"Both the right and the responsibility to act â the privilege of stewardship comes with the duty to serve.",emoji:"ð¿",gradient:"from-lime-900 via-lime-700 to-emerald-600",image:"https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=600&q=80"}],o3=[{word:"Ubuntu",lang:"Zulu",meaning:"I am because we are"},{word:"Saudade",lang:"Portuguese",meaning:"A longing to belong"},{word:"Namaste",lang:"Sanskrit",meaning:"The light in me sees the light in y
12ou"},{word:"Whakapapa",lang:"MÄori",meaning:"To place in layers â who you come from"},{word:"Aloha",lang:"Ê»Ålelo HawaiÊ»i",meaning:"Unconditional Love in Action."},{word:"Meraki",lang:"Greek",meaning:"Pouring your soul into what you do"}],l3=[{who:"The student",story:"She came for community service hours. She left with soil under her fingernails and something she couldn't name â a feeling that the land already knew her before she arrived."},{who:"The veteran",story:"He needed somewhere quiet where the work was physical and honest. Standing in the loÊ»i, water around his ankles, something in him remembered how to be still."},{who:"The grandmother",story:"Her family is from the Philippines. Her grandmother grew taro. When she stood in the paddies, she didn't say anything. The land said it for her."},{who:"The family",story:"They wanted to do something together that actually mattered. The land gave them that â not the organization. The land."}];function c3(n=.15){const s=w.useRef(null),[i,l]=w.useState(!1);return w.useEffect(()=>{const d=s.current;if(!d)return;const m=new IntersectionObserver(([p])=>{p.isIntersecting&&l(!0)},{threshold:n});return m.observe(d),()=>m.disconnect()},[n]),{ref:s,visible:i}}function st({children:n,delay:s=0,className:i=""}){const{ref:l,visible:d}=c3();return t.jsx("div",{ref:l,className:`transition-all duration-700 ${d?"opacity-100 translate-y-0":"opacity-0 translate-y-6"} ${i}`,style:{transitionDelay:`${s}ms`},children:n})}function d3(){const[n,s]=w.useState(!1);return w.useEffect(()=>{const i=setTimeout(()=>s(!0),80);return()=>clearTimeout(i)},[]),t.jsxs("div",{"data-testid":"home-page",children:[t.jsx(Be,{description:"Hui o HoÊ»ohonua is a Hawaiian nonprofit fostering love for the land, water, and people of the Ê»Ewa Moku through community volunteer programs, environmental restoration, and Aloha Ê»Äina."}),t.jsxs("section",{className:"relative min-h-screen flex flex-col items-center justify-center text-white overflow-hidden",style:{backgroundImage:"url(https://www.hoh808.org/uploads/1/3/3/0/133027313/published/img-6525.jpg?1723773138)",backgroundSize:"cover",backgroundPosition:"center"},"data-testid":"hero-section",children:[t.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#071a0c]/80 via-[#0a2410]/70 to-[#0a2410]/85"}),t.jsxs("div",{className:"relative z-10 max-w-3xl mx-auto text-center px-6 flex flex-col items-center",children:[t.jsx("div",{className:`transition-all duration-1000 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:"100ms"},children:t.jsx("p",{className:"text-white/50 uppercase tracking-[0.25em] text-xs font-medium mb-10",children:"Aloha Ê»Äina · Ê»Ewa Moku · OÊ»ahu"})}),t.jsx("div",{className:`transition-all duration-1000 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-6"}`,style:{transitionDelay:"350ms"},children:t.jsxs("h1",{className:"font-serif text-5xl md:text-7xl font-bold leading-[1.1] mb-6 tracking-tight",children:["The Ê»Äina",t.jsx("br",{}),t.jsx("span",{className:"text-emerald-300",children:"has been waiting."})]})}),t.jsx("div",{className:`transition-all duration-1000 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-6"}`,style:{transitionDelay:"650ms"},children:t.jsxs("p",{className:"text-lg md:text-xl text-white/75 max-w-xl mx-auto leading-relaxed font-light mb-10",children:["Wherever you're from. Whatever brought you here.",t.jsx("br",{}),t.jsx("em",{className:"text-white/90 not-italic font-medium",children:"You belong."})]})}),t.jsxs("div",{className:`transition-all duration-1000 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-6"}`,style:{transitionDelay:"900ms"},children:[t.jsx("img",{src:r3,alt:"Hui o HoÊ»ohonua",className:"w-16 h-16 object-contain mx-auto mb-8 opacity-80"}),t.jsx("p",{className:"text-white/50 text-sm font-medium mb-8 tracking-wide",children:"Hui o HoÊ»ohonua"}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[t.jsxs(pe,{href:"/volunteer",className:"px-8 py-3.5 bg-primary text-white font-medium rounded-md hover:bg-primary/90 transition-colors flex items-center justify-center gap-2","data-testid":"hero-get-involved",children:["Find Your Place Here ",t.jsx(xt,{className:"w-4 h-4"})]}),t.jsx(pe,{href:"/donate",className:"px-8 py-3.5 bg-white/10 border border-white/25 text-white font-medium rounded-md hover:bg-white/20 transition-colors","data-testid":"hero-donate",children:"Support Our Work"})]})]})]}),t.jsx("div",{className:"absolute bottom-8 left-0 right-0 flex justify-center animate-bounce",children:t.jsx($1,{className:"w-5 h-5 text-white/30"})})]}),t.jsx("section",{className:"py-24 bg-[#0e2d14] text-white","data-testid":"universal-section",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs(st,{className:"text-center mb-16",children:[t.jsx("p",{className:"text-emerald-400 uppercase tracking-widest text-xs font-medium mb-3",children:"A Word That Belongs to Everyone"}),t.jsx("p",{className:"text-white/70 text-sm tracking-wide mb-6 italic",children:"Aloha â Unconditional Love in Action"}),t.jsx("h2",{className:"font-serif text-3xl md:text-4xl font-semibold mb-6 leading-snug",children:"Aloha is Hawaiian."}),t.jsx("p",{className:"text-white/60 text-lg md:text-xl max-w-xl mx-auto leading-relaxed mb-4",children:"But the feeling it names â being seen, received, welcomed â that lives in every language."}),t.jsx("p",{className:"text-white/50 text-base max-w-lg mx-auto leading-relaxed",children:"Every culture on earth has a word for it. When you arrive here, you don't need to translate anything â the land already knows."})]}),t.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-4",children:o3.map((i,l)=>t.jsx(st,{delay:l*80,children:t.jsxs("div",{className:`rounded-xl p-5 border border-white/10 bg-white/5 hover:bg-white/10 transition-colors ${i.lang==="Ê»Ålelo HawaiÊ»i"?"border-emerald-500/40 bg-emerald-900/30":""}`,children:[t.jsx("p",{className:"font-serif text-xl font-bold text-white mb-1",children:i.word}),t.jsx("p",{className:"text-emerald-400 text-xs uppercase tracking-wider mb-2 font-medium",children:i.lang}),t.jsxs("p",{className:"text-white/55 text-xs leading-relaxed italic",children:['"',i.meaning,'"']})]})},i.word))})]})}),t.jsxs("section",{className:"relative py-32 bg-[#040f06] text-white overflow-hidden","data-testid":"premise-section",children:[t.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"url(https://www.hoh808.org/uploads/1/3/3/0/133027313/published/img-6525.jpg?1723773138)",backgroundSize:"cover",backgroundPosition:"center 40%"}}),t.jsx("div",{className:"absolute inset-0 bg-[#040f06]/90"}),t.jsxs("div",{className:"relative z-10 max-w-3xl mx-auto px-6 text-center",children:[t.jsx(st,{children:t.jsx("p",{className:"text-emerald-500 uppercase tracking-widest text-xs font-medium mb-10",children:"What We Believe"})}),t.jsx(st,{delay:100,children:t.jsx("p",{className:"font-serif text-2xl md:text-3xl text-white/50 leading-relaxed mb-4",children:"Growth isn't about learning new things about yourself."})}),t.jsx(st,{delay:250,children:t.jsxs("p",{className:"font-serif text-3xl md:text-5xl font-bold text-white leading-tight mb-6",children:["It's about remembering who you always were â",t.jsx("br",{}),t.jsx("span",{className:"text-emerald-300",children:"before the world told you to hide it."})]})}),t.jsxs(st,{delay:450,children:[t.jsx("div",{className:"w-12 h-0.5 bg-emerald-500/40 mx-auto my-8"}),t.jsx("p",{className:"font-serif text-2xl md:text-3xl text-white font-semibold mb-3",children:"You were born perfect."}),t.jsx("p",{className:"font-serif text-2xl md:text-3xl text-white/70 font-light",children:"You still are."})]}),t.jsx(st,{delay:600,children:t.jsxs("p",{className:"text-white/35 text-sm mt-10 max-w-md mx-auto leading-relaxed italic",children:["The land knows this. The loÊ»i knows this.",t.jsx("br",{}),"The sea remembers what the land was before anyone told it to be something else.",t.jsx("br",{}),"So do we."]})})]})]}),t.jsx("section",{className:"py-24 bg-white","data-testid":"moments-section",children:t.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[t.jsxs(st,{className:"text-center mb-14",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-3",children:"You Are Not Alone"}),t.jsx("h2",{className:"font-serif text-3xl md:text-4xl font-semibold text-foreground mb-4",children:"Others found their way here, too."}),t.jsx("p",{className:"text-muted-foreground text-base max-w-xl mx-auto",children:"They came for different reasons. They stayed because something in them remembered."})]}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 mb-10",children:l3.map((i,l)=>t.jsx(st,{delay:l*100,children:t.jsxs("div",{className:"group rounded-2xl bg-muted/40 hover:bg-primary/5 border border-border hover:border-primary/20 p-7 transition-all duration-300",children:[t.jsx("div",{className:"w-8 h-0.5 bg-primary/40 mb-4 group-hover:w-12 transition-all duration-300"}),t.jsx("p",{className:"text-primary text-xs uppercase tracking-widest font-semibold mb-3",children:i.who}
12),t.jsx("p",{className:"text-foreground/70 text-sm leading-relaxed",children:i.story})]})},i.who))}),t.jsxs(st,{delay:400,className:"text-center",children:[t.jsx("p",{className:"font-serif text-2xl md:text-3xl text-foreground/40 mb-2",children:"and â"}),t.jsx("p",{className:"font-serif text-3xl md:text-4xl font-bold text-foreground",children:"you."})]})]})}),t.jsx("section",{className:"py-16 bg-primary text-white","data-testid":"stats-section",children:t.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[t.jsx(st,{className:"text-center mb-10",children:t.jsx("p",{className:"text-white/60 text-sm uppercase tracking-widest font-medium",children:"The community that showed up"})}),t.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-8 text-center",children:[{number:"20,000+",label:"Humans who showed up"},{number:"3.11",label:"Acres restored (GIS-verified)"},{number:"3",label:"Active program areas"},{number:"4+",label:"Federal & state funders"}].map((i,l)=>t.jsx(st,{delay:l*80,children:t.jsxs("div",{children:[t.jsx("p",{className:"font-serif text-4xl md:text-5xl font-bold mb-2",children:i.number}),t.jsx("p",{className:"text-white/70 text-sm",children:i.label})]})},i.label))})]})}),t.jsx("section",{className:"py-20 bg-white","data-testid":"intro-section",children:t.jsx("div",{className:"max-w-4xl mx-auto px-6 text-center",children:t.jsxs(st,{children:[t.jsx("div",{className:"w-12 h-0.5 bg-primary mx-auto mb-6"}),t.jsx("h2",{className:"font-serif text-3xl md:text-4xl font-semibold text-foreground mb-6",children:"Aloha,"}),t.jsx("p",{className:"text-foreground/80 text-lg leading-relaxed mb-6",children:"The Ê»Äina of the Ê»Ewa moku has always known how to heal. It was diverted. Paved over. Told it was worth more as something else. Hu
12i o HoÊ»ohonua exists because the land hasn't forgotten what it was â and neither have the people who love it."}),t.jsxs("p",{className:"text-foreground/65 text-base leading-relaxed mb-6",children:["We are a community-based 501(c)3 on the island of OÊ»ahu. We don't come with answers â we come with hands and time and a willingness to follow the lead of this place and its people. Over 20,000 people have shown up. Not to save anything. To remember something. And to be part of the ",t.jsx("em",{children:"pilina"})," â the connection â that was always here."]}),t.jsx("p",{className:"text-foreground/65 text-base leading-relaxed",children:"We hold space for community workdays, place-based learning for K-College students, and walk-talk stories around the project sites. We are not the experts here. The land is. The knowledge that has been tended across generations by Hawaiian communities is. We are grateful to be of service to both."})]})})}),t.jsx("section",{className:"py-20 bg-muted/20","data-testid":"gallery-section",children:t.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[t.jsxs(st,{className:"text-center mb-12",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-2",children:"The Work"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground mb-3",children:"The Power of Hui"}),t.jsx("p",{className:"text-muted-foreground text-sm max-w-md mx-auto",children:"Every photo is a person who showed up. Every acre is a community that remembered."})]}),t.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:s3.map((i,l)=>t.jsx(st,{delay:l*60,children:t.jsx("div",{className:"aspect-square overflow-hidden rounded-xl","data-testid":`gallery-photo-${l}`,children:t.jsx("img",{src:i,alt:`Community restoration work ${l+1}`,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-700",loading:"lazy"})})},l))})]})}),t.jsx("section",{className:"py-24 bg-[#0a1f0d]","data-testid":"word-bank-section",children:t.jsxs("div",{className:"max-w-6xl mx-auto px-6",children:[t.jsxs(st,{className:"text-center mb-14",children:[t.jsx("p",{className:"text-emerald-400 uppercase tracking-widest text-xs font-medium mb-3",children:"Ê»Ålelo HawaiÊ»i"}),t.jsx("h2",{className:"font-serif text-4xl font-semibold text-white mb-4",children:"The Language Carries the Values"}),t.jsx("p",{className:"text-white/40 text-sm max-w-xl mx-auto",children:"These words don't just name things â they hold a way of being in the world."})]}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:i3.map((i,l)=>t.jsx(st,{delay:l*70,children:t.jsxs("div",{className:"group relative rounded-2xl overflow-hidden cursor-default",style:{minHeight:"340px"},"data-testid":`word-${i.hawaiian.replace(/[^a-zA-Z]/g,"")}`,children:[t.jsx("img",{src:i.image,alt:i.english,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-700 group-hover:scale-110",loading:"lazy"}),t.jsx("div",{className:`absolute inset-0 bg-gradient-to-t ${i.gradient} opacity-85 group-hover:opacity-75 transition-opacity duration-500`}),t.jsx("div",{className:"absolute inset-0 ring-1 ring-inset ring-white/10 rounded-2xl"}),t.jsxs("div",{className:"relative h-full flex flex-col justify-between p-7",style:{minHeight:"340px"},children:[t.jsx("div",{className:"w-14 h-14 bg-white/15 backdrop-blur-sm rounded-xl flex items-center justify-center text-3xl shadow-lg border border-white/20",children:i.emoji}),t.jsxs("div",{children:[t.jsx("p",{className:"font-serif text-2xl font-bold text-white mb-1 drop-shadow",children:i.hawaiian}),t.jsx("p",{className:"text-white/90 text-sm font-medium uppercase tracking-wider mb-3",children:i.english}),t.jsx("div",{className:"w-8 h-0.5 bg-white/40 mb-3"}),t.jsx("p",{className:"text-white/70 text-sm leading-relaxed",children:i.description})]})]})]})},i.hawaiian))})]})}),t.jsx("section",{className:"py-20 bg-muted/30","data-testid":"features-section",children:t.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[t.jsxs(st,{className:"text-center mb-12",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-3",children:"Ways to Show Up"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground",children:"Find Your Entry Point"})]}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[t.jsx(st,{delay:0,children:t.jsxs("div",{className:"bg-white rounded-xl p-8 border border-border hover:border-primary/20 hover:shadow-sm transition-all",children:[t.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-5",children:t.jsx(ic,{className:"w-6 h-6 text-primary"})}),t.jsx("h3",{className:"font-serif font-semibold text-lg mb-3",children:"Community Workdays"}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"Monthly days in the field at our sites in Honouliuli and Waipahu. No expertise required. No Hawaiian ancestry required. Just presence. Show up as you are."}),t.jsxs(pe,{href:"/project-sites",className:"inline-flex items-center gap-1 mt-4 text-primary text-sm font-medium hover:underline",children:["Explore Project Sites ",t.jsx(xt,{className:"w-3.5 h-3.5","aria-hidden":"true"})]})]})}),t.jsx(st,{delay:100,children:t.jsxs("div",{className:"bg-white rounded-xl p-8 border border-border hover:border-primary/20 hover:shadow-sm transition-all",children:[t.jsx("div",{className:"w-12 h-12 bg-accent/10 rounded-lg flex items-center justify-center mb-5",children:t.jsx(Ya,{className:"w-6 h-6 text-accent"})}),t.jsx("h3",{className:"font-serif font-semibold text-lg mb-3",children:"Education Programs"}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"Place-based learning for K-College students. Walk-talk stories around our project sites. Knowledge that comes from the land itself."}),t.jsxs(pe,{href:"/programs",className:"inline-flex items-center gap-1 mt-4 text-primary text-sm font-medium hover:underline",children:["Explore Programs ",t.jsx(xt,{className:"w-3.5 h-3.5","aria-hidden":"true"})]})]})}),t.jsx(st,{delay:200,children:t.jsxs("div",{className:"bg-white rounded-xl p-8 border border-border hover:border-primary/20 hover:shadow-sm transition-all",children:[t.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-5",children:t.jsx(Lm,{className:"w-6 h-6 text-primary"})}),t.jsx("h3",{className:"font-serif font-semibold text-lg mb-3",children:"Adopt a Plot"}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"Bring a corner of the land into your home or classroom. Restoration that starts close, and ripples outward."}),t.jsxs(pe,{href:"/adopt-a-plot",className:"inline-flex items-center gap-1 mt-4 text-primary text-sm font-medium hover:underline",children:["Learn More ",t.jsx(xt,{className:"w-3.5 h-3.5","aria-hidden":"true"})]})]})})]})]})}),t.jsx("section",{className:"py-20 bg-white","data-testid":"calendar-section",children:t.jsx("div",{className:"max-w-3xl mx-auto px-6 text-center",children:t.jsxs(st,{children:[t.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mx-auto mb-5",children:t.jsx(n2,{className:"w-6 h-6 text-primary"})}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground mb-4",children:"Community Calendar"}),t.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8",children:"Second Saturday Workdays at Kapapapuhi. Fourth Saturday Workdays at the Waipahu LoÊ»i. Something is always growing. You're welcome at any of it."}),t.jsxs(pe,{href:"/events",className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-white font-medium rounded-md hover:bg-primary/90 transition-colors","data-testid":"calendar-link",children:["View Full Calendar ",t.jsx(xt,{className:"w-4 h-4"})]})]})})}),t.jsx("section",{className:"py-16 bg-primary/5 border-t border-primary/10","data-testid":"social-section",children:t.jsx("div",{className:"max-w-3xl mx-auto px-6 text-center",children:t.jsxs(st,{children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-4",children:"Follow Our Journey"}),t.jsx("p",{className:"text-muted-foreground mb-6",children:"The work continues between workdays. Stay close."}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[t.jsx("a",{href:"https://www.instagram.com/huiohoohonua/",target:"_blank",rel:"noopener noreferrer",className:"px-6 py-3 bg-foreground text-white font-medium rounded-md hover:bg-foreground
12/90 transition-colors","data-testid":"follow-instagram",children:"Follow on Instagram"}),t.jsx("a",{href:"https://www.facebook.com/HOH808/",target:"_blank",rel:"noopener noreferrer",className:"px-6 py-3 bg-blue-600 text-white font-medium rounded-md hover:bg-blue-700 transition-colors","data-testid":"follow-facebook",children:"Visit on Facebook"})]})]})})})]})}const u3=[{year:"2015",event:"Hui o HoÊ»ohonua founded in Ê»Ewa, OÊ»ahu with a focus on community stewardship of PuÊ»uloa and the Ê»Ewa Moku."},{year:"2017",event:"Launched restoration operations at West Loch, PuÊ»uloa / Pearl Harbor. Began monthly community workdays at Kapapapuhi Point Park."},{year:"2019",event:"Initiated the PuÊ»uloa Strategic Partnership â a coalition of stakeholders managing natural and cultural resources along the Pearl Harbor shoreline."},{year:"2021",event:"Received National Fish and Wildlife Foundation (NFWF) grant. Began formally documented coastal wetland restoration with GIS monitoring."},{year:"2024",event:"Completed 3.11-acre NFWF restoration project â fully expended, fully matched, fully reported, and closed without deobligation or compliance findings."},{year:"2026",event:"Submitted pre-proposal to NFWF for 9-acre West Loch expansion. Active programs operating at Kapapapuhi, Ford Island, and JBPHH."}],m3=[{name:"National Fish and Wildlife Foundation",abbr:"NFWF",type:"Federal"},{name:"U.S. Fish & Wildlife Service",abbr:"USFWS",type:"Federal"},{name:"NOAA â Bays Watersheds Education and Training",abbr:"NOAA-BWET",type:"Federal"},{name:"DLNR â Division of Aquatic Resources",abbr:"DLNR-DAR",type:"State"}];function h3(){return t.jsxs("div",{"data-testid":"about-page",children:[t.jsx(Be,{title:"About",description:"Learn about Hui o HoÊ»ohonua's mission, history, and vision for environmental restoration and community stewardship in the Ê»Ewa Moku of OÊ»ahu, HawaiÊ»i."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"Who We Are"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4",children:"About Us"}),t.jsx("p",{className:"text-white/80 text-lg leading-relaxed max-w-2xl mx-auto",children:"A culturally grounded, community-supported stewardship nonprofit organizing people, partners, and permissions around the care of places that matter."})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-6",children:t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 items-start",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-3",children:"Our Mission"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground mb-6",children:"Stewardship, Service, and Strategic Impact"}),t.jsx("p",{className:"text-foreground/80 text-lg leading-relaxed mb-6",children:"The lands and waters of the Ê»Ewa moku carry the memory of what they were. They were diverted, paved over, told they were worth more as something else. Hu
12i o HoÊ»ohonua exists because the Ê»Äina hasn't forgotten â and neither have the people who love it."}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-6",children:"We are a community-based 501(c)(3) on the island of OÊ»ahu. We organize community capacity around historically and culturally significant places â showing up consistently, doing the work, and staying accountable to the land and the people who have always cared for it."}),t.jsx("blockquote",{className:"border-l-4 border-primary pl-5 py-2 italic font-serif text-xl text-foreground/80",children:'"Impossible is where we start"'})]}),t.jsxs("div",{className:"bg-muted/30 rounded-2xl p-8 space-y-6",children:[t.jsxs("div",{children:[t.jsxs("h3",{className:"font-semibold text-foreground mb-2",children:["Our ",t.jsx("em",{children:"KÅ«lana"})," â Role"]}),t.jsxs("p",{className:"text-foreground/70 text-sm leading-relaxed",children:["To be a bridge â helping all who live on OÊ»ahu find their way into relationship with PuÊ»uloa, guided by the values of ",t.jsx("strong",{children:"Aloha Ê»Äina"})," â stewardship of land and natural resources rooted in Hawaiian culture and tradition."]})]}),t.jsxs("div",{children:[t.jsxs("h3",{className:"font-semibold text-foreground mb-2",children:["Our ",t.jsx("em",{children:"Kuleana"})," â Responsibility"]}),t.jsxs("p",{className:"text-foreground/70 text-sm leading-relaxed",children:["To uplift pono practices, organize stewardship, and walk alongside the next generation of ",t.jsx("em",{children:"KiaÊ»i"})," â those the land is already calling."]})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Our Model"}),t.jsx("p",{className:"text-foreground/70 text-sm leading-relaxed mb-2",children:"One community. Three interdependent Ê»ohana â Government, Private Industry, and Nonprofits â working together as one. HOH808 coordinates. The Ê»Äina leads."}),t.jsxs(pe,{href:"/our-model",className:"text-primary text-sm font-medium inline-flex items-center gap-1 hover:underline",children:["The 3N1 Model ",t.jsx(xt,{className:"w-3 h-3"})]})]})]})]})})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs("div",{className:"text-center mb-12",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-2",children:"How We Think"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground",children:"Our Planning Ethos"}),t.jsx("p",{className:"text-muted-foreground mt-3 max-w-2xl mx-auto",children:"Planning is not just about pointing out what is wrong. It is about building shared understanding, offering real options, and taking responsibility for helping move a good idea into action."})]}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5 mb-10",children:[{hawaiian:"Ê»Ike",meaning:"Understanding Before Action",body:"Before rushing to solve a problem, we take time to understand what is really happening, why it matters, who is affected, and what conditions surround it. Good planning starts with clear thinking and shared understanding."},{hawaiian:"Kuleana",meaning:"Responsibility with Ownership",body:"If we raise a problem, we take responsibility for helping address it. The person who identifies a challenge should help explain it clearly, offer possible ways forward, and stay involved in carrying it out."},{hawaiian:"Laulima",meaning:"Many Hands Working Together",body:"The best solutions rarely come from one person alone. Good planning invites people to think together, listen well, and contribute from different perspectives. We value collaboration and honest discussion."},{hawaiian:"Pono",meaning:"Right, Balanced, and Practical",body:"Not every solution is a good solution. We bring forward options that are thoughtful, realistic, and aligned with our values. Our goal is to help the organization choose the path that is most balanced and most likely to do good."},{hawaiian:"Hana",meaning:"Moving from Thought to Action",body:"Planning is not complete when a meeting ends. Real planning continues into action. Once a direction is chosen, we support it, improve it as needed, and help carry it forward."},{hawaiian:"Humility",meaning:"Staying Open to Learning",body:"Sometimes the first answer is not the best answer. Good planning means
12staying open, making adjustments, and being willing to refine the path. Learning is not a sign of weakness â it is part of doing the work well."}].map(n=>t.jsxs("div",{className:"border border-border rounded-xl p-6 bg-card",children:[t.jsx("p",{className:"font-serif font-bold text-primary text-lg mb-0.5",children:n.hawaiian}),t.jsx("p",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground mb-3",children:n.meaning}),t.jsx("p",{className:"text-foreground/70 text-sm leading-relaxed",children:n.body})]},n.hawaiian))}),t.jsxs("div",{className:"bg-primary text-white rounded-2xl p-8 text-center",children:[t.jsx("p",{className:"font-serif text-xl italic mb-2",children:"Me ka Ê»ike, me ke kuleana, me ka laulima."}),t.jsx("p",{className:"text-white/80 text-sm",children:"With understanding, responsibility, and working together."}),t.jsxs("div",{className:"mt-6 pt-6 border-t border-white/20 flex flex-col sm:flex-row justify-center gap-6 text-white/70 text-sm",children:[t.jsx("span",{children:"Bring understanding."}),t.jsx("span",{children:"Bring options."}),t.jsx("span",{children:"Bring ownership."})]})]})]})}),t.jsx("section",{className:"py-20 bg-muted/30",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs("div",{className:"text-center mb-12",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-2",children:"Track Record"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground",children:"Our History"})]}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"absolute left-[68px] top-0 bottom-0 w-0.5 bg-border hidden md:block"}),t.jsx("div",{className:"space-y-8",children:u3.map(n=>t.jsxs("div",{className:"flex gap-6 items-start","data-testid":`timeline-${n.year}`,children:[t.jsx("div",{className:"w-20 flex-shrink-0 text-right",children:t.jsx("span",{className:"inline-block bg-primary text-white text-sm font-semibold px-3 py-1 rounded-full",children:n.year})}),t.jsx("div",{className:"flex-1 pb-2",children:t.jsx("p",{className:"text-foreground/75 leading-relaxed text-sm",children:n.event})})]},n.year))})]})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs("div",{className:"text-center mb-12",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-2",children:"Credibility"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground",children:"Federal & State Funders"}),t.jsx("p",{className:"text-muted-foreground mt-3 max-w-2xl mx-auto",children:"HOH808 has received funding from federal and state agencies â with a track record of full compliance, complete reporting, and verified outcomes."})]}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:m3.map(n=>t.jsxs("div",{className:"border border-border rounded-xl p-6 flex items-start gap-4","data-testid":`funder-${n.abbr}`,children:[t.jsx("div",{className:"w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:t.jsx("span",{className:"text-primary font-bold text-xs text-center leading-tight",children:n.abbr})}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-foreground text-sm",children:n.name}),t.jsxs("p",{className:"text-muted-foreground text-xs mt-0.5",children:[n.type," Agency"]})]})]},n.abbr))}),t.jsx("div",{className:"mt-8 bg-primary/5 border border-primary/20 rounded-xl p-6 text-center",children:t.jsxs("p",{className:"text-foreground/80 text-sm leading-relaxed",children:[t.jsx("strong",{children:"Prior NFWF Award:"})," Fully expended · Fully matched · Fully reported · Closed without deobligation or compliance findings · 3.11 acres GIS-verified"]})})]})}),t.jsx("section",{className:"py-16 bg-muted/30",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-8 text-center",children:"Learn More"}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-5 gap-4",children:[t.jsxs(pe,{href:"/our-model",className:"block border border-primary/30 rounded-lg p-6 hover:border-primary/60 hover:bg-primary/5 transition-all text-center bg-primary/5","data-testid":"about-link-model",children:[t.jsx("p",{className:"font-serif font-semibold text-foreground",children:"Our Model"}),t.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"The 3N1 framework"})]}),t.jsxs(pe,{href:"/programs",className:"block border border-border rounded-lg p-6 hover:border-primary/40 hover:bg-primary/5 transition-all text-center bg-white","data-testid":"about-link-programs",children:[t.jsx("p",{className:"font-serif font-semibold text-foreground",children:"Our Programs"}),t.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"What we do"})]}),t.jsxs(pe,{href:"/staff",className:"block border border-border rounded-lg p-6 hover:border-primary/40 hover:bg-primary/5 transition-all text-center bg-white","data-testid":"about-link-staff",children:[t.jsx("p",{className:"font-serif font-semibold text-foreground",children:"Staff"}),t.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Meet our team"})]}),t.jsxs(pe,{href:"/board",className:"block border border-border rounded-lg p-6 hover:border-primary/40 hover:bg-primary/5 transition-all text-center bg-white","data-testid":"about-link-board",children:[t.jsx("p",{className:"font-serif font-semibold text-foreground",children:"Board of Directors"}),t.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Our leadership"})]}),t.jsxs(pe,{href:"/partners",className:"block border border-border rounded-lg p-6 hover:border-primary/40 hover:bg-primary/5 transition-all text-center bg-white","data-testid":"about-link-partners",children:[t.jsx("p",{className:"font-serif font-semibold text-foreground",children:"HOH Partners"}),t.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Our collaborators"})]})]})]})})]})}const f3=[{name:'Anthony "Tony" Chance',title:"CEO & Founder",bio:'Anthony "Tony" Chance â known by the callsign "Papa Honu" â is a Licensed Clinical Social Worker (LCSW), retired U.S. Navy Seabee Senior Chief, and combat Veteran who has spent the past seven years serving homeless Veterans. A proud graduate of the University of HawaiÊ»i at MÄnoa with both a Bachelor of Social Work and Master of Social Work, Anthony brings together military leadership, social work practice, and deep community commitment in his role as CEO and Founder of Hui o HoÊ»ohonua. He is also a husband, father, and grandfather dedicated to restoring Ê»Äina, strengthening communities, and creating pathways of service for future generations.',photo:"/staff-tony-chance.jpg",photoPosition:"center"}],p3=[{projectId:"malama-kapapapuhi",projectName:"KÅ«kulu i loko o Kapapapuhi â Coastal Restoration",members:[{name:"Kyleena Simeona",title:"Executive Director",location:"Ê»Ähuimanu, KoÊ»olaupoko, OÊ»ahu | MÄnana, Ê»Ewa, OÊ»ahu",bio:"Kyleena believes that the most powerful form of resistance is the ability for individuals to freely cultivate the land to feed themselves and their community.",quote:"I believe in people. I am empowered by my pillars to lead with kindness, patience, integrity and humility to do both the hard
12work and the heart work that comes with stewarding our natural resources. I look forward to continuing to mÄlama Ê»Äina as an ancestor... it is very fulfilling to know that the actions I execute today will be for the good of a people that I may never meet. Sincerely, 'til the very last Aloha Ê»Äina.",photo:"/staff-kyleena-simeona.jpg"},{name:"Evan Uiagalelei",title:"PoÊ»o, KÅ«kulu i loko o Kapapapuhi | Lead Field Restoration Technician",location:"HoÊ»aeÊ»ae, Ê»Ewa, OÊ»ahu",bio:"I was drawn to working on restoring Ê»Äina right down the street from where I grew up in Waipahu and I love learning new things about this place (Honouliuli, PuÊ»uloa and Ê»Ewa) every day. I didn't grow up with stories of PuÊ»uloa â especially before it was a place known for the military and am grateful to Kumu Sanborn (of Waipahu HS) for sharing moÊ»olelo â like that of KaÊ»ahupahau our guardian shark. I'm especially motivated by the history of PuÊ»uloa, its former abundance and exploring how we can bring that back... how we can merge knowledge from the past and present to make things better for the future.",photo:"/staff-evan-uiagalelei.jpg"}]},{projectId:"waipahu-loi",projectName:"PuÊ»uhonua O Waipahu LoÊ»i â Traditional Taro Farming",members:[{name:"Kayla Aguado",title:"Farm Manager & ArcGIS Specialist",location:"HoÊ»aeÊ»ae, Ê»Ewa, OÊ»ahu | Moanalua, Kona, OÊ»ahu",bio:"Kayla Aguado is a graduate of Waipahu High School and earned a Bachelor of Science in Natural Resources and Environmental Management with a specialization in Soil and Water Conservation from the University of HawaiÊ»i at MÄnoa. She began her early career as an intern with Bee's Greens Co., where she gained hands-on hydroponic farming experience, and later became an Environmental Scientist from 2019 to 2024. Today, she works as a Real Property Appraiser with the City and County of Honolulu. With historical ties to Waipahu's plantation era, she has a deep connection to the land and community that raised her â inspiring her commitment to strengthen HawaiÊ»i's local food systems.",photo:"/staff-kayla-aguado.jpg"},{name:'PaumÄlÅ« "Malu" Cassiday',title:"PoÊ»o, PuÊ»uhonua O Waipahu LoÊ»i",location:"Waipahu, OÊ»ahu",bio:"PaumÄlÅ« âMaluâ Cassiday is the PoÊ»o for PuÊ»uhonua O Waipahu LoÊ»i, a Licensed Clinical Social Worker, cultural practitioner, and Ê»Äina-based educator dedicated to healing, stewardship, and community wellbeing. Rooted in moÊ»okūʻauhau connected to Niu Valley and shaped by years of service in Native Hawaiian nonprofits, mental health, foster care, and cultural programming, Malu brings a grounded blend of clinical experience, aloha Ê»Äina, and hands-on practice. Through Makawalu Health and Healing LLC, he works to develop Indigenized psychotherapy that integrates holistic health, mindfulness, cultural practice, and Ê»Äina-based interventions. As a haumÄna and practitioner of kuÊ»i kalo, ulana lau niu, Ê»ieÊ»ie weaving, and other Ê»ike kÅ«puna, Malu is committed to perpetuating ancestral knowledge in service of lÄhui, community, and place. Now rooted in Waipahu with his Ê»ohana, he brings passion, humility, and steadfast kuleana to the PuÊ»uhonua O Waipahu LoÊ»i.",photo:"/staff-malu-cassiday.jpg"},{name:"Lotus Yasuda",title:"AlakaÊ»i",location:"Waipahu, OÊ»ahu",bio:"Lotus Yasuda is a senior at Waipahu High School and serves as President of the Student Government. As the HawaiÊ»i State Student Council Chairperson, she represents and advocates for over 165,000 public and charter school students across the islands, focusing on civic engagement, leadership, and social-emotional well-being. She helps organize the annual Secondary Student Conference and Student Leadership Conference, and serves as an ambassador for Pledge to Our Keiki. Lotus volunteered at her first workday at PuÊ»uhonua o Waipahu in March 2023 and has continued contributing to the loÊ»i to address food insecurity in her hometown. She is on track to earn her Associate in Liberal Arts degree from Leeward Community College in May 2026, and plans to pursue environmental science and public policy at Harvard College.",photo:"/staff-lotus-yasuda.jpg"}]},{projectId:"pearl-harbor-aviation",projectName:"PHAM Community Monthly Workday â Pearl Harbor Aviation Museum",members:[]},{projectId:"education-outreach",projectName:"Education & Outreach",members:[]},{projectId:"adopt-a-plot",projectName:"Adopt a Plot",members:[]}];function ab({member:n,testId:s}){return t.jsx("div",{className:"border border-border rounded-xl bg-card overflow-hidden hover:border-primary/30 transition-colors","data-testid":s,children:t.jsxs("div",{className:"flex flex-col sm:flex-row gap-0",children:[t.jsx("div",{className:"sm:w-36 flex-shrink-0 flex items-start justify-center bg-muted/30 p-6",children:n.photo?t.jsx("img",{src:n.photo,alt:n.name,className:"w-24 h-24 rounded-full object-cover border-2 border-white shadow-sm",style:{objectPosition:n.photoPosition??"top"}}):t.jsx("div",{className:"w-24 h-24 rounded-full bg-primary/10 flex items-center justify-center font-serif font-bold text-primary text-2xl",children:n.name.split(" ").filter(i=>/^[A-Z]/.test(i)).map(i=>i[0]).join("").slice(0,2)})}),t.jsxs("div",{className:"flex-1 p-6",children:[t.jsxs("div",{className:"mb-3",children:[t.jsx("h3",{className:"font-serif font-semibold text-foreground text-lg",children:n.name}),t.jsx("p",{className:"text-primary text-sm font-medium",children:n.title}),n.location&&t.jsx("p",{className:"text-muted-foreground text-xs mt-0.5",children:n.location})]}
12),n.bio?t.jsx("p",{className:"text-foreground/70 text-sm leading-relaxed",children:n.bio}):t.jsx("p",{className:"text-muted-foreground text-sm italic",children:"Bio coming soon."}),n.quote&&t.jsxs("blockquote",{className:"mt-4 border-l-4 border-primary/30 pl-4 italic text-sm text-foreground/60 leading-relaxed",children:['"',n.quote,'"']})]})]})})}const nb=p3.filter(n=>n.members.length>0);function x3(){return t.jsxs("div",{"data-testid":"staff-page",children:[t.jsx(Be,{title:"Staff",description:"Meet the Hui o HoÊ»ohonua team â dedicated stewards working to restore the Ê»Äina and empower community conservation across the Ê»Ewa Moku, OÊ»ahu."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"Our People"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:"Meet the Staff"})]})}),t.jsx("section",{className:"py-6 bg-amber-50 border-b border-amber-200",children:t.jsx("div",{className:"max-w-4xl mx-auto px-6",children:t.jsxs("p",{className:"text-amber-800 text-sm text-center",children:[t.jsx("strong",{children:"Notice:"})," As of February 14, 2025, all staff have been transitioned to layoff status as a direct impact of the Federal Funding Freeze. However, all amazing personnel have agreed to continue supporting in their capacities as they are able. We look forward to returning to capacity as soon as possible. Please continue to join us on community workdays and check our community calendar on the home page."]})})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsx("p",{className:"text-foreground/70 text-center mb-16 leading-relaxed max-w-2xl mx-auto",children:"Hui o HoÊ»ohonua is operated by a small staff with guidance from an active Board of Directors and KÅ«puna Council. Our team spans administrative leadership and dedicated field technicians working across multiple restoration sites."}),t.jsxs("div",{className:"mb-20",children:[t.jsxs("div",{className:"text-center mb-10",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-2",children:"Leadership"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground",children:"Admin Staff"})]}),t.jsx("div",{className:"space-y-6",children:f3.map(n=>t.jsx(ab,{member:n,testId:`staff-admin-${n.name.split(" ")[0].toLowerCase()}`},n.name))})]}),nb.length>0&&t.jsxs("div",{children:[t.jsxs("div",{className:"text-center mb-10",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-2",children:"Field Teams"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground",children:"Project Staff"}),t.jsx("p",{className:"text-muted-foreground mt-3 max-w-xl mx-auto text-sm",children:"Our field technicians are embedded within specific restoration projects and bring specialized knowledge of their sites, ecosystems, and communities."})]}),t.jsx("div",{className:"space-y-16",children:nb.map(n=>t.jsxs("div",{children:[t.jsx("h3",{className:"font-serif text-xl font-semibold text-foreground mb-6 pb-3 border-b border-border",children:n.projectName}),t.jsx("div",{className:"space-y-6",children:n.members.map(s=>t.jsx(ab,{member:s,testId:`staff-${n.projectId}-${s.name.split(" ")[0].toLowerCase()}`},s.name))})]},n.projectId))})]})]})})]})}const g3=[{name:"Ken Kozuma",role:"Board Chair",photo:"/board-ken-kozuma.png",affiliation:"Agriculture Educator & FFA/HOSA Advisor, Waipahu Intermediate School",bio:"Ken Kozuma is an agriculture educator and advisor for FFA and HOSA at Waipahu Intermediate School, where he has taught since 2012. He began his career as a high school math teacher in 2004 and later served as Center Director at Sylvan Learning Center in Kahala before returning to public education. A committed problem-solver with working relationships across the HawaiÊ»i State Leg
12islature, Ken has a track record of building programs, recruiting high-performing students, and connecting organizations with the resources and partnerships they need to move forward."},{name:"Nick Belluzzo, M.A.",role:"Board Member",photo:"/board-nick-belluzzo.png",affiliation:"RPA | Director, Honolulu & Western Pacific Office, ASM Affiliates",bio:"Nick Belluzzo is an archaeologist, historian, and ethnographer with extensive experience in cultural preservation, architectural history, and GIS-based research in HawaiÊ»i. He currently serves as Director and Principal Archaeologist at ASM Affiliates and has supported major preservation, mapping, and public history initiatives across the islands."},{name:"Katie Landgraf",role:"Board Treasurer",photo:"/board-katie-landgraf.png",affiliation:"Assistant Professor of Accounting, University of HawaiÊ»iâWest OÊ»ahu",bio:"Katie Landgraf is an Assistant Professor of Accounting at the University of HawaiÊ»iâWest OÊ»ahu, where she has taught since 2012. She holds a Bachelor's in Business Administration (Accounting & Finance) from the University of WisconsinâEau Claire, an MBA, and a Doctorate in Business Administration from Walden University, and is a licensed Certified Public Accountant (CPA). Her professional background spans public accounting as an Auditor at Baker Tilly, LLP, financial consulting for small businesses, and higher education, all of which she brings directly to her role as HOH808's Board Treasurer. She is a recipient of the 2014â2015 University of HawaiÊ»i Board of Regents' Excellence in Teaching Award."},{name:"Courtney Chang",role:"Board Member",photo:null,bio:null},{name:"Danielle La'a",role:"Board Member",photo:null,bio:null}],rb=[{name:"Mike Rompel",role:"Advisor",photo:"/advisor-mike-rompel.png",affiliation:"Domino's Franchisee | HawaiÊ»i & Utah",bio:"Mike Rompel is a longtime Domino's franchisee with nearly 50 locations spanning HawaiÊ»i and the Salt Lake City area. He brings extensive experience in multi-unit franchise operations, business logistics, and community entrepreneurship to his role as an HOH808 advisor."},{name:"Hercules Huihui",role:"Cultural Advisor",photo:"/advisor-hercules-huihui.png",affiliation:"KÅ«puna | Cultural Practitioner | Waipahu Community Advocate",bio:"Hercules Huihui is a respected Waipahu kÅ«puna, cultural practitioner, and longtime community advocate with deep roots in Waipahu spanning more than two decades. He serves as a cultural mentor for Hui o HoÊ»ohonua's Waipahu LoÊ»i restoration work, helping guide the effort to restore the terraced loÊ»i kalo once found in the area. Widely recognized for offering oli and cultural blessings at community events across the region, including programs at HawaiÊ»i's Plantation Village, he has been engaged in Waipahu community service since the founding of Waipahu Weed & Seed in 2000."},{name:"Jeffrey Pantaleo, M.A.",role:"Advisor",photo:null,affiliation:"Archaeologist & Cultural Resource Manager | NAVFAC HawaiÊ»i · Archaeological Services Hawaii, LLC",bio:"Jeffrey Pantaleo is a HawaiÊ»i archaeologist and cultural resource manager with extensive experience protecting Native Hawaiian cultural sites and historic resources. He holds a bachelor's degree in anthropology from the University of HawaiÊ»i and a master's degree from San Diego State University, and has worked across both the private sector and federal government, including as Cultural Resources Program Manager for Navy Region HawaiÊ»i and Joint Base Pearl HarborâHickam and as a cultural resource manager and Native Hawaiian liaison at NAVFAC HawaiÊ»i. He played a key role in the rediscovery and ongoing restoration of Loko IÊ»a PÄÊ»aiau, an ancient Hawaiian fishpond at Joint Base Pearl HarborâHickam, and currently serves as a principal investigator for Archaeological Services Hawaii, LLC."}];function sb({member:n,testPrefix:s}){return t.jsx("div",{className:"border border-border rounded-xl bg-card overflow-hidden hover:border-primary/30 transition-colors","data-testid":`${s}-${n.name.split(" ")[0].toLowerCase()}`,children:t.jsxs("div",{className:"flex flex-col sm:flex-row gap-0",children:[t.jsx("div",{className:"sm:w-36 flex-shrink-0 flex items-start justify-center bg-muted/30 p-6",children:n.photo?t.jsx("img",{src:n.photo,alt:n.name,className:"w-24 h-24 rounded-full object-cover object-top border-2 border-white shadow-sm"}):t.jsx("div",{className:"w-24 h-24 rounded-full bg-primary/10 flex items-center justify-center font-serif font-bold text-primary text-2xl",children:n.name.split(" ").filter(i=>/^[A-Z]/.test(i)).map(i=>i[0]).join("").slice(0,2)})}),t.jsxs("div",{className:"flex-1 p-6",children:[t.jsxs("div",{className:"mb-3",children:[t.jsx("h3",{className:"font-serif font-semibold text-foreground text-lg",children:n.name}),t.jsx("p",{className:"text-primary text-sm font-medium",children:n.role}),n.affiliation&&t.jsx("p",{className:"text-muted-foreground text-xs mt-0.5",children:n.affiliation})]}
12),n.bio?t.jsx("p",{className:"text-foreground/70 text-sm leading-relaxed",children:n.bio}):t.jsx("p",{className:"text-muted-foreground text-sm italic",children:"Bio coming soon."})]})]})})}function b3(){return t.jsxs("div",{"data-testid":"board-page",children:[t.jsx(Be,{title:"Board of Directors",description:"Meet the Board of Directors and Advisors guiding Hui o HoÊ»ohonua's nonprofit mission of environmental restoration and community stewardship in HawaiÊ»i."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"Leadership"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:"Board of Directors & Advisors"})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsx("p",{className:"text-foreground/70 text-center text-lg leading-relaxed mb-16",children:"The land asks something of the people who love it. These are some of them â showing up with their knowledge, their time, and their belief that abundance is still possible. We are humbled and grateful for their guidance."}),t.jsx("div",{className:"space-y-8",children:g3.map(n=>t.jsx(sb,{member:n,testPrefix:"board"},n.name))})]})}),rb.length>0&&t.jsx("section",{className:"py-20 bg-muted/30","data-testid":"advisors-section",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs("div",{className:"text-center mb-12",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-2",children:"Advisory Council"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground",children:"Advisors"}),t.jsx("p",{className:"text-muted-foreground mt-3 max-w-2xl mx-auto",children:"Our advisors bring specialized expertise in restoration ecology, cultural preservation, education, and community engagement."})]}),t.jsx("div",{className:"space-y-8",children:rb.map(n=>t.jsx(sb,{member:n,testPrefix:"advisor"},n.name))})]})})]})}const y3=[{abbr:"NFWF",name:"National Fish and Wildlife Foundation",type:"Federal",note:"National Coastal Resilience Fund â prior award fully completed, matched, and reported"},{abbr:"USFWS",name:"U.S. Fish & Wildlife Service",type:"Federal",note:"Invasive species removal and coastal habitat restoration"},{abbr:"NOAA-BWET",name:"NOAA Bays Watersheds Education and Training",type:"Federal",note:"Place-based education and community engagement programming"},{abbr:"DLNR-DAR",name:"HawaiÊ»i DLNR â Division of Aquatic Resources",type:"State",note:"Aquatic habitat management and restoration support"}];function v3(){return t.jsxs("div",{"data-testid":"partners-page",children:[t.jsx(Be,{title:"HOH Partners",description:"Hui o HoÊ»ohonua partners with organizations across HawaiÊ»i to support environmental restoration, cultural stewardship, and community volunteerism in the Ê»Ewa Moku."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"Collaboration"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:"HOH Partners"})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs("div",{className:"mb-16",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-2",children:"Government Funders"}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-8",children:"HOH808 has earned the trust of federal and state agencies through a consistent track record of project delivery, full compliance, and verified outcomes."}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-6",children:y3.map(n=>t.jsxs("div",{className:"border border-border rounded-xl p-5 flex items-start gap-4","data-testid":`funder-${n.abbr}
12`,children:[t.jsx("div",{className:"w-14 h-14 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:t.jsx("span",{className:"text-primary font-bold text-xs text-center leading-tight px-1",children:n.abbr})}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-foreground text-sm",children:n.name}),t.jsxs("p",{className:"text-muted-foreground text-xs mt-0.5 mb-1",children:[n.type," Agency"]}),t.jsx("p",{className:"text-foreground/60 text-xs",children:n.note})]})]},n.abbr))})]}),t.jsxs("div",{className:"mb-16 border-t border-border pt-16",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-4",children:"PuÊ»uloa Strategic Partnership"}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-4",children:"The PuÊ»uloa Strategic Partnership is a group of stakeholders currently involved in natural area and cultural resource management, as well as community engagement, along the Pearl Harbor shoreline."}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-4",children:"Initiated by the community non-profit Hui o HoÊ»ohonua in August of 2019, the PuÊ»uloa Strategic Partnership seeks to build collaboration that enhances the capacity of all participants to achieve our restoration and management goals."}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-6",children:"PuÊ»uloa Strategic Partnership participants represent a wide range of stakeholders, many of whom participate in an informal, advisory capacity. Currently, the PuÊ»uloa Strategic Network is managed and supervised by our Board Member, Nick Belluzzo, with support from our Executive Director, Kyleena Simeona."})]}),t.jsxs("div",{className:"border-t border-border pt-16",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-4",children:"Become a Partner"}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-8",children:"Partnerships are vital to the work of caring for Ê»Äina within the Ê»Ewa moku. By becoming a partner, you join a coalition working to let PuÊ»uloa return to what it was â a place of abundance, biodiversity, and life."}),t.jsxs("form",{className:"max-w-xl space-y-4",onSubmit:n=>{n.preventDefault();const s=n.currentTarget,i=new FormData(s),l=i.get("firstName"),d=i.get("lastName"),m=i.get("email"),p=i.get("phone"),g=i.get("partnerType"),f=i.get("comment"),h=encodeURIComponent(`Partnership Inquiry â ${l} ${d}`),x=encodeURIComponent(`Name: ${l} ${d} 13Email: ${m} 14Phone: ${p} 15Partnership Type: ${g} 16 17Comment: 18${f}`);window.location.href=`mailto:[email protected]?subject=${h}&body=${x}`},"data-testid":"partner-form",children:[t.jsx("p",{className:"text-muted-foreground text-sm",children:"Clicking Submit will open your email app with your inquiry pre-filled â just send it from there."}),t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"First Name *"}),t.jsx("input",{name:"firstName",type:"text",required:!0,className:"w-full border border-input rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:border-transparent outline-none","data-testid":"partner-first-name"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Last Name *"}),t.jsx("input",{name:"lastName",type:"text",required:!0,className:"w-full border border-input rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:border-transparent outline-none","data-testid":"partner-last-name"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Email *"}),t.jsx("input",{name:"email",type:"email",required:!0,className:"w-full border border-input rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:border-transparent outline-none","data-testid":"partner-email"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Phone Number *"}),t.jsx("input",{name:"phone",type:"tel",required:!0,className:"w-full border border-input rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:border-transparent outline-none","data-testid":"partner-phone"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Partnership Type *"}),t.jsxs("select",{name:"partnerType",required:!0,className:"w-full border border-input rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:border-transparent outline-none bg-white","data-testid":"partner-type",children:[t.jsx("option",{value:"",children:"Select..."}),t.jsx("option",{value:"research",children:"Research and Education"}),t.jsx("option",{value:"outreach",children:"Community Outreach"}),t.jsx("option",{value:"financial",children:"Financial Support"}),t.jsx("option",{value:"labor",children:"Labor and Machinery"}),t.jsx("option",{value:"other",children:"Other"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Comment *"}),t.jsx("textarea",{name:"comment",required:!0,rows:4,className:"w-full border border-input rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:border-transparent outline-none","data-testid":"partner-comment"})]}),t.jsx("button",{type:"submit",className:"px-6 py-2.5 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary/90 transition-colors","data-testid":"partner-submit",children:"Submit"})]})]})]})})]})}function w3(){return t.jsxs("div",{"data-testid":"get-involved-page",children:[t.jsx(Be,{title:"Get Involved",description:"Get involved with Hui o HoÊ»ohonua â volunteer at a workday, adopt a restoration plot, or attend a community event in Ê»Ewa Moku, OÊ»ahu."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"Join Our Hui"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:"Get Involved"})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsx("blockquote",{className:"font-serif text-2xl text-center italic text-foreground
18/80 mb-12",children:'"Impossible is where we start"'}),t.jsxs("div",{className:"text-center mb-16",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-4",children:"Welcome to our HOH Ê»Ohana!"}),t.jsx("p",{className:"text-foreground/70 leading-relaxed max-w-3xl mx-auto mb-4",children:"Since 2015, our hui has been privileged to lead and participate in volunteer opportunities throughout the Ê»Ewa moku, specifically within the areas of Honouliuli and Waipahu."}),t.jsxs("p",{className:"text-foreground/70 leading-relaxed max-w-3xl mx-auto mb-4",children:["At one point in time, PuÊ»uloa was the breadbasket of OÊ»ahu, providing food for thousands of kÄnaka. Between the late 1800s and early 1900s, our kÅ«puna witnessed Ê»Äina become land and in modern day we now reap the consequences of the fruit that was sewn. Ê»Äina, to our ancestors, referred to the ",t.jsx("em",{children:"land that feeds"}),", and today it is a loose term for land. Due to the growing economy, the fertile soils and vast waters of Ê»Ewa have been lost and it is ",t.jsx("strong",{children:"our"})," kuleana as residents HawaiÊ»i to find and return them home."]}),t.jsx("p",{className:"text-foreground/70 leading-relaxed max-w-3xl mx-auto",children:"Our hope is that one day, all things and people will exist in lÅkahi, unity. We will need your help to get there!"})]}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[t.jsxs(pe,{href:"/project-sites",className:"block border border-border rounded-xl p-6 hover:border-primary/40 hover:bg-primary/5 transition-all group","data-testid":"get-involved-project-sites",children:[t.jsx("h3",{className:"font-serif font-semibold text-lg text-foreground mb-2 group-hover:text-primary transition-colors",children:"Project Sites"}),t.jsx("p",{className:"text-muted-foreground text-sm mb-4 leading-relaxed",children:"Visit our active restoration sites in Honouliuli, Waipahu, and Pearl Harbor."}),t.jsxs("span",{className:"inline-flex items-center gap-1 text-primary text-sm font-medium",children:["Learn more ",t.jsx(xt,{className:"w-3.5 h-3.5"})]})]}),t.jsxs(pe,{href:"/adopt-a-plot",className:"block border border-border rounded-xl p-6 hover:border-primary/40 hover:bg-primary/5 transition-all group","data-testid":"get-involved-adopt",children:[t.jsx("h3",{className:"font-serif font-semibold text-lg text-foreground mb-2 group-hover:text-primary transition-colors",children:"Adopt a Plot"}),t.jsx("p",{className:"text-muted-foreground text-sm mb-4 leading-relaxed",children:"Grow native plants at home, in your classroom, or backyard to support our restoration efforts."}),t.jsxs("span",{className:"inline-flex items-center gap-1 text-primary text-sm font-medium",children:["Learn more ",t.jsx(xt,{className:"w-3.5 h-3.5"})]})]}),t.jsxs(pe,{href:"/contact",className:"block border border-border rounded-xl p-6 hover:border-primary/40 hover:bg-primary/5 transition-all group","data-testid":"get-involved-school",children:[t.jsx("h3",{className:"font-serif font-semibold text-lg text-foreground mb-2 group-hover:text-primary transition-colors",children:"School/Group Opportunities"}),t.jsx("p",{className:"text-muted-foreground text-sm mb-4 leading-relaxed",children:"Educational programs and group experiences for students K-College."}),t.jsxs("span",{className:"inline-flex items-center gap-1 text-primary text-sm font-medium",children:["Contact Us ",t.jsx(xt,{className:"w-3.5 h-3.5"})]})]})]})]})})]})}const j3=[{id:"kapapapuhi",qrId:"malama-kapapapuhi",title:He["malama-kapapapuhi"].title,subtitle:He["malama-kapapapuhi"].subtitle,location:He["malama-kapapapuhi"].location,schedule:He["malama-kapapapuhi"].schedule,description:"Stewarding three traditional Hawaiian fishponds (loko iÊ»a) and salt beds at Kapapapuhi Point Park. Volunteers remove invasive plants, propagate native Ê»akulikuli and Ê»ahuÊ»awa sedge, and restore the coastal wetland ecosystem along West Loch.",tag:"Coastal Wetland Restoration",tagColor:"bg-blue-50 text-blue-800 border-blue-100",learnHref:"/malama-kapapapuhi",volunteerHref:"/volunteer?signup=malama-kapapapuhi",accentColor:"border-l-blue-400",testId:"site-kapapapuhi"},{id:"waipahu-loi",qrId:"waipahu-loi",title:He["waipahu-loi"].title,subtitle:He["waipahu-loi"].subtitle,location:He["waipahu-loi"].location,schedule:He["waipahu-loi"].schedule,description:"A 7-acre project transforming an invasive species site into a productive traditional loÊ»i kalo (taro patch). Community volunteers work alongside farmers to weed, irrigate, plant, and harvest â connecting directly with Hawaiian agricultural traditions and food sovereignty.",tag:"LoÊ»i Kalo & Food Sovereignty",tagColor:"bg-green-50 text-green-800 border-green-100",learnHref:"/waipahu-loi",volunteerHref:"/volunteer?signup=waipahu-loi",accentColor:"border-l-primary",testId:"site-waipahu"},{id:"pearl-harbor-aviation",qrId:"pearl-harbor-aviation",title:He["pearl-harbor-aviation"].title,subtitle:He["pearl-harbor-aviation"].subtitle,location:He["pearl-harbor-aviation"].location,schedule:He["pearl-harbor-aviation"].schedule,description:"Monthly stewardship workday at Pearl Harbor Aviation Museum on Ford Island. Volunteers support landscaping, beautification, and visible care of a place where Hawaiian cultural history and national wartime history meet. HOH provides coordination, tools, supplies, and food. A valid government-issued photo ID is required for base access.",tag:"Heritage & Base Stewardship",tagColor:"bg-slate-50 text-slate-700 border-slate-200",learnHref:"/programs",volunteerHref:"/volunteer?signup=pearl-harbor-aviation",accentColor:"border-l-slate-400",testId:"site-pham"},{id:"halawa-landing",qrId:"halawa-landing",title:He["halawa-landing"].title,subtitle:He["halawa-landing"].subtitle,location:He["halawa-landing"].location,schedule:He["halawa-landing"].schedule,description:"Community stewardship workday at Pearl Harbor National Memorial â honoring the cultural and historical significance of HÄlawa through active, community-led land care. HOH provides coordination, tools, and supplies.",tag:"Cultural Heritage Stewardship",tagColor:"bg-teal-50 text-teal-800 border-teal-100",learnHref:"/halawa-landing",volunteerHref:"/volunteer?signup=halawa-landing",accentColor:"border-l-teal-400",testId:"site-halawa-landing"},{id:"adopt-a-plot",qrId:"adopt-a-plot",title:He["adopt-a-plot"].title,subtitle:He["adopt-a-plot"].subtitle,location:He["adopt-a-plot"].location,schedule:He["adopt-a-plot"].schedule,description:"Adopt a dedicated plot and take personal kuleana (responsibility) for native plant propagation. Two active initiatives: Project 5,000 Flats grows Ê»akulikuli (sea purslane) as coastal groundcover, and Project Sedges Save Ledges cultivates Ê»ahuÊ»awa sedge to stabilize the shoreline.",tag:"Native Plant Propagation",tagColor:"bg-
18amber-50 text-amber-800 border-amber-100",learnHref:"/adopt-a-plot",volunteerHref:"/volunteer?signup=adopt-a-plot",accentColor:"border-l-accent",testId:"site-adopt-a-plot"},{id:"education-outreach",qrId:"education-outreach",title:He["education-outreach"].title,subtitle:He["education-outreach"].subtitle,location:He["education-outreach"].location,schedule:He["education-outreach"].schedule,description:"HOH brings hands-on environmental and cultural education to Kâ12 students, youth groups, and community organizations. Programs connect participants with the history of Ê»Äina, native Hawaiian ecosystems, and the ongoing restoration work happening in their own backyard.",tag:"Community Education",tagColor:"bg-purple-50 text-purple-800 border-purple-100",learnHref:"/contact",volunteerHref:"/volunteer?signup=education-outreach",accentColor:"border-l-purple-400",testId:"site-education"}];function N3(){return t.jsxs("div",{"data-testid":"project-sites-page",children:[t.jsx(Be,{title:"Program Sites",description:"Explore Hui o HoÊ»ohonua's active stewardship sites across Ê»Ewa Moku â coastal fishpond restoration, traditional taro farming, and Pearl Harbor stewardship programs."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"Stewardship"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4",children:"MÄlama Ê»Äina with Us"}),t.jsx("p",{className:"text-white/75 text-lg leading-relaxed max-w-2xl mx-auto",children:"Our program sites span Honouliuli, Waipahu, and Pearl Harbor â each one a place where community, culture, and land come together."})]})}),t.jsx("section",{className:"py-16 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs("div",{className:"text-center mb-12",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-4",children:"Inspiring community to do what you can, when you can!"}),t.jsxs("p",{className:"text-foreground/70 leading-relaxed max-w-3xl mx-auto mb-4",children:["If you are someone who is inspired by the generosity of our lands, waters and people of Ê»Ewa and are ready to steward its natural resources through community philanthropy and the values of ",t.jsx("em",{children:"aloha Ê»Äina"})," then we are so glad you have found us."]}),t.jsxs("p",{className:"text-foreground/70 leading-relaxed max-w-3xl mx-auto mb-4",children:["We believe that the power of ",t.jsx("em",{children:"hui"}),", a people united in purpose, guided by ",t.jsx("em",{children:"Ê»ike kÅ«puna"}),", ancestral knowledge, will restore agricultural lands to increase food accessibility and equitability for our community."]}),t.jsxs("p",{className:"text-foreground/70 leading-relaxed max-w-3xl mx-auto",children:["Currently, ",t.jsx("strong",{children:"95%"})," of our food and resources are brought to us from the Continental US and other countries. Our hui's goal is to restore that balance â one workday at a time."]})]}),t.jsx("div",{className:"space-y-6",children:j3.map(n=>t.jsx("div",{"data-testid":n.testId,className:`bg-card border border-card-border rounded-xl overflow-hidden shadow-sm border-l-4 ${n.accentColor}`,children:t.jsx("div",{className:"p-6 md:p-8",children:t.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4 mb-4",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:t.jsx("span",{className:`text-xs font-semibold px-2.5 py-1 rounded-full border ${n.tagColor}`,children:n.tag})}),t.jsx("h3",{className:"font-serif text-xl md:text-2xl font-bold text-foreground leading-snug",children:n.title}),t.jsx("p",{className:"text-muted-foreground text-sm font-medium mt-0.5",children:n.subtitle})]}),t.jsxs("div",{className:"flex gap-3 flex-shrink-0 flex-wrap",children:[t.jsxs(pe,{href:n.volunteerHref,className:"inline-flex items-center gap-1.5 px-4 py-2 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary/90 transition-colors",children:[t.jsx(Ya,{className:"w-3.5 h-3.5"}),"Sign Up"]}),t.jsxs(pe,{href:n.learnHref,className:"inline-flex items-center gap-1.5 px-4 py-2 border border-border text-foreground text-sm font-medium rounded-md hover:bg-muted/50 transition-colors","aria-label":`Learn more about ${n.title}`,children:["Learn More",t.jsx(xt,{className:"w-3.5 h-3.5","aria-hidden":"true"})]})]})]}
18),t.jsx("p",{className:"text-foreground/70 text-sm leading-relaxed",children:n.description}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mt-5 pt-5 border-t border-border",children:[t.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t.jsx(Sa,{className:"w-4 h-4 text-primary flex-shrink-0"}),n.location]}),t.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t.jsx(ka,{className:"w-4 h-4 text-primary flex-shrink-0"}),n.schedule]})]})]}),t.jsxs("div",{className:"flex flex-col items-center gap-2 flex-shrink-0 lg:w-32",children:[t.jsx("div",{className:"rounded-xl border border-border shadow-sm p-2.5 bg-white w-full",children:t.jsx("img",{src:`/qr/${n.qrId}.png`,alt:`Signup QR code for ${n.title}`,className:"w-full aspect-square object-contain"})}),t.jsx("p",{className:"text-xs text-muted-foreground text-center leading-tight",children:"Scan to sign up"}),t.jsxs("a",{href:`/qr/${n.qrId}.png`,download:`HOH-QR-${n.qrId}.png`,className:"inline-flex items-center gap-1 text-xs text-primary hover:text-primary/80 font-medium",children:[t.jsx(pn,{className:"w-3 h-3"}),"Download"]})]})]})})},n.id))}),t.jsxs("div",{className:"mt-12 text-center",children:[t.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Not sure where to start? Every site welcomes everyone."}),t.jsxs(pe,{href:"/contact",className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-white font-medium rounded-md hover:bg-primary/90 transition-colors text-sm",children:["Contact Us â we'll listen and help you find where you belong",t.jsx(xt,{className:"w-4 h-4"})]})]})]})})]})}const Ha=He["malama-kapapapuhi"],ib=[];function S3(){return t.jsxs("div",{"data-testid":"malama-kapapapuhi-page",children:[t.jsx(Be,{title:Ha.title,description:`Join the monthly ${Ha.title} workday at ${Ha.location} â restoring traditional Hawaiian fishponds and coastal wetlands. ${Ha.schedule}.`}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsxs("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:["Project Site · ",Ha.subtitle]}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:Ha.title}),t.jsx("p",{className:"mt-3 text-white/80 italic font-serif text-lg",children:"Standing up the origins of Kapapapuhi"})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-4",children:"Stewarding traditional Hawaiian aquaculture technologies"}),t.jsxs("p",{className:"text-foreground/70 leading-relaxed mb-6",children:["At one point in time, PuÊ»uloa was rich with over 30 ",t.jsx("em",{children:"loko iÊ»a"})," (traditional Hawaiian fishponds) and ",t.jsx("em",{children:"loÊ»i kalo"})," (taro patches). Today, we are one of many hui who are stewarding what is left of these ancient technologies to combat food insecurity and sustain the health and well-being of our people. Within Kapapapuhi Point Park, we are grateful to steward three (inoperable) loko iÊ»a and are working alongside the land to bring them back to life."]}),t.jsxs("p",{className:"text-foreground/70 leading-relaxed mb-6",children:["Ke Ê»Awalau o ",t.jsx("strong",{children:"PuÊ»uloa"})," was once the breadbasket and political gathering place of OÊ»ahu due to its rich and fertile Ê»Äina. From Honouliuli to HÄlawa, each ahupuaÊ»a had fisheries in the harbor, floodplains with loÊ»i kalo and loko iÊ»a, mÄla, and mountain forests. This was likely due to its abundance of water resources as Ê»Ewa is the only district on OÊ»ahu where all water sources meet in one place, Ke Ê»awalau o PuÊ»uloa."]}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-6",children:"During peak stewardship, there was an estimated 300 fishponds that could be found throughout Komoawa [East Loch], Waiawa [Middle Loch], and Kaihuopalaai [West Loch]. Today, many of those ponds have been filled in or covered to meet the needs of OÊ»ahu's growing residency, military footprint, and expanding developments."}
18),t.jsxs("p",{className:"text-foreground/70 leading-relaxed mb-8",children:[t.jsx("em",{children:"KÅ«kulu i loko o Kapapapuhi"})," serves as a program of Hui o HoÊ»ohonua. We engage our community through hosting monthly community workdays, educating local youth through Ê»Äina-based programs, and creating a lei of partnerships to support the progression of our collaborative goals to increase the health and sustainability of our communities."]}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-8",children:"Blueprints of these brilliantly engineered water and food systems, designed to feed hundreds and thousands of people, were once found within the boundaries of Kapapapuhi Point. Our hui works to recover, conserve, and restore three (currently) inoperable fishponds, historic salt beds, and loÊ»i kalo, with the hands and hearts of our tremendous volunteers."}),t.jsxs("div",{className:"bg-muted/40 rounded-xl p-6 md:p-8 border border-border mb-10",children:[t.jsx("h3",{className:"font-serif text-lg font-semibold text-foreground mb-5",children:"Visit Details"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(Sa,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Location"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:Ha.locationDetail}),t.jsx("a",{href:Ha.mapsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary underline underline-offset-2 mt-0.5 inline-block",children:"Get directions â"})]})]}),t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(ka,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Schedule"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:Ha.schedule})]})]}),t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(Xt,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Time"}),t.jsxs("p",{className:"text-sm text-muted-foreground",children:[Ds(Ha.startHour)," â ",Ds(Ha.endHour)]})]})]})]})]}),ib.length>0&&t.jsxs("div",{className:"mb-12",children:[t.jsx("h3",{className:"font-serif text-xl font-semibold text-foreground mb-5",children:"From the Field"}),t.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:ib.map((n,s)=>t.jsx("div",{className:"rounded-lg overflow-hidden aspect-square",children:t.jsx("img",{src:n.src,alt:n.alt,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500",loading:"lazy"})},s))})]}),t.jsxs("div",{className:"border-t border-border pt-10",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-4",children:"The Power of Hui"}),t.jsx("p",{className:"text-foreground/70 italic font-serif text-lg mb-2",children:"AÊ»ohe hana nui ke alu ia"}),t.jsx("p",{className:"text-muted-foreground text-sm mb-8",children:"No task is too big when done together"}),t.jsxs(pe,{href:"/volunteer?signup=malama-kapapapuhi",className:"inline-flex items-center gap-2 px-5 py-2.5 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary/90 transition-colors",children:["Volunteer at Kapapapuhi ",t.jsx(xt,{className:"w-4 h-4"})]})]})]})})]})}const wa=He["waipahu-loi"],ob=[];function k3(){return t.jsxs("div",{"data-testid":"waipahu-loi-page",children:[t.jsx(Be,{title:wa.title,description:`Volunteer at ${wa.title} â join Hui o HoÊ»ohonua to restore traditional loÊ»i kalo (taro) farming at ${wa.location}. ${wa.schedule}.`}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsxs("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:["Project Site · ",wa.subtitle]}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:wa.title}),t.jsx("p",{className:"mt-3 text-white/80 italic font-serif text-lg",children:"A Project on Generational Stewardship"})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-4",children:"Welcome to the PuÊ»uhonua o Waipahu!"}
18),t.jsxs("p",{className:"text-foreground/70 leading-relaxed mb-6",children:["Nestled in the wetlands of Waikele, this 7 acre project is being transformed from an invasive species hotspot to a productive food garden that is anticipated to feed the Waipahu community. Focusing on student-led stewardship, increasing accessibility to food sources, and developing innovative technologies with guidance from ",t.jsx("em",{children:"Ê»ike kÅ«puna"}),", ancestral knowledge, we hope to begin feeding our community by 2030."]}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-6",children:"This project broke ground in 2023 and continues to be stewarded by Future Farmers of America Waipahu Chapter, Waipahu Intermediate students, and the HOH hui. Following mentorship from KÅ«puna, Hercules Huihui, the vision for this plot is to recreate terraced loÊ»i kalo that was once found in the area. The terraced loÊ»i kalo has the potential to feed the entire Waipahu community, from Waikele to HoÊ»aeÊ»ae and further pending the harvest."}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-8",children:"In August 2024, we celebrated our 1st birthday in the mÄla! We have come a long way but there is much more to go and we need the community's help to get there. As we move soil, we are unearthing cement blocks, old metal pipes, numerous invasive plant species, and old waste piles. If we want to begin feeding our community it is going to take community involvement to get us started. We invite all people of all ages and expertise levels to join us in building sustainable practices for our community."}),t.jsxs("div",{className:"border border-primary/20 bg-primary/5 rounded-xl p-6 mb-10",children:[t.jsx("h3",{className:"font-serif font-semibold text-foreground mb-2",children:"Join the Hana"}),t.jsxs("p",{className:"text-foreground/70 text-sm mb-3",children:["Check out our ",t.jsx(pe,{href:"/events",className:"text-primary underline underline-offset-2 hover:text-primary/80",children:"Community Calendar"})," for upcoming volunteer opportunities. ",wa.schedule,"."]}),t.jsxs(pe,{href:"/volunteer?signup=waipahu-loi",className:"inline-flex items-center gap-2 px-5 py-2.5 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary/90 transition-colors",children:["Volunteer at Waipahu LoÊ»i ",t.jsx(xt,{className:"w-4 h-4"})]})]}),t.jsxs("div",{className:"bg-muted/40 rounded-xl p-6 md:p-8 border border-border mb-10",children:[t.jsx("h3",{className:"font-serif text-lg font-semibold text-foreground mb-5",children:"Visit Details"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(Sa,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Location"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:wa.locationDetail}),t.jsx("a",{href:wa.mapsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary underline underline-offset-2 mt-0.5 inline-block",children:"Get directions â"})]})]}),t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(ka,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Schedule"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:wa.schedule})]})]}),t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(Xt,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Time"}),t.jsxs("p",{className:"text-sm text-muted-foreground",children:[Ds(wa.startHour)," â ",Ds(wa.endHour)]})]})]})]})]}),ob.length>0&&t.jsxs("div",{className:"mb-10",children:[t.jsx("h3",{className:"font-serif text-xl font-semibold text-foreground mb-5",children:"From the Field"}),t.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:ob.map((n,s)=>t.jsx("div",{className:"rounded-lg overflow-hidden aspect-square",children:t.jsx("img",{src:n.src,alt:n.alt,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500",loading:"lazy"})},s))})]})]})})]})}const M3=[{title:"Project 5,000 Flats",subtitle:"Adopt a Plant â Ê»Akulikuli",description:"Help our hui restore native wetlands, bird habitat, improve water quality, and prevent erosion by growing Ê»akulikuli in your homes, schools, or backyards that will later return to PuÊ»uloa!",learnMoreUrl:"https://www.hoh808.org/uploads/1/3/3/0/133027313/82621b17-385b-4d2d-bda6-bc381b3968ed.png"},{title:"Project Sedges Save Ledges",subtitle:"Adopt a Plant â Ê»AhuÊ»awa",description:"Help our hui create boundaries and prevent erosion from the waterlines of Honouliuli Stream, traditional Hawaiian fishponds, and coastlines by growing Ê»ahuÊ»awa in your homes, schools, or backyards that will later return to PuÊ»uloa!",learnMoreUrl:null}];function A3(){return t.jsxs("div",{"data-testid":"adopt-practice-page",children:[t.jsx(Be,{title:"Adopt a Plot",description:"Join Hui o HoÊ»ohonua's Adopt a Plot program â grow native Ê»akulikuli or Ê»ahuÊ»awa plants at home, in your classroom, or backyard to support coastal restoration efforts in Ê»Ewa Moku."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"Take Action"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:"Adopt a Plot"})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-4",children:"Improving the Health of Our Watersheds"}
18),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-4",children:'Aloha, Welcome to our "Adopt a Plot" Program! Restoring health and abundance to our natural resources and traditional technologies is generational work, it will truly take everyone. This programs design is guided by community voices who are committed to rejuvenating Ê»Äina back to abundance.'}),t.jsxs("p",{className:"text-foreground/70 leading-relaxed mb-10",children:["We encourage and empower community members to do ",t.jsx("strong",{children:"what"})," they can ",t.jsx("strong",{children:"when"})," they can! Check out the different practices you can adopt and activate in your home, classroom, or community that promote the restoration efforts of Hui o HoÊ»ohonua across the Ê»Ewa moku."]}),t.jsx("h3",{className:"font-serif text-xl font-semibold text-foreground mb-6",children:"Adopt a Plant"}),t.jsx("p",{className:"text-foreground/70 mb-8 leading-relaxed",children:"All passionate gardeners and green thumb enthusiasts â it's time to lock in! We are asking for the community's assistance in growing plants for our restoration sites."}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:M3.map(n=>t.jsxs("div",{className:"border border-border rounded-xl p-6 bg-card hover:border-primary/30 transition-colors","data-testid":`practice-${n.title.replace(/\s+/g,"-").toLowerCase()}`,children:[t.jsx("h4",{className:"font-serif font-semibold text-lg text-foreground mb-1",children:n.title}),t.jsx("p",{className:"text-primary text-sm font-medium mb-3",children:n.subtitle}),t.jsx("p",{className:"text-foreground/70 text-sm leading-relaxed mb-4",children:n.description}),n.learnMoreUrl&&t.jsx("a",{href:n.learnMoreUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-block px-4 py-2 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary/90 transition-colors","aria-label":`Learn more about ${n.title}`,children:"Learn More"})]},n.title))})]})})]})}const T3=["Par HawaiÊ»i","Hilton Grand Vacations","Aligned Mortgage","Hawaiian Electric","First Insurance Company of Hawaii","HawaiÊ»i Dept of Land and Natural Resources, Division of Aquatic Resources","Island Energy â HoÊ»ala Program","Lowes","Kamehameha Schools Bishop Estate","Mike Rompel, Ê»Ewa Business Owner","U.S. Fish and Wildlife Service","Hawaii Fish Habitat Partnership","Patagonia","Kua Ê»Äina Ulu Auamo","Hawaiian Airlines","Matson","Atherton Family Foundation","The Starbucks Foundation","KUPU (via Kupu Ê»Äina Corp)","Kamehameha Schools Community Engagement and Resources Ê»Ewa Region"];function C3(){return t.jsxs("div",{"data-testid":"support-page",children:[t.jsx(Be,{title:"Support Us",description:"Support Hui o HoÊ»ohonua's mission through donations, corporate sponsorships, or shopping our merchandise. Every contribution helps restore the Ê»Äina of Ê»Ewa Moku."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"Be the Change"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:"KÅkua Today"}),t.jsx("p",{className:"mt-4 text-white/80 text-lg",children:"It takes a Village"})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"text-foreground/70 leading-relaxed text-lg max-w-3xl mx-auto mb-8",children:"We would not be anything without the aloha and kÄkoÊ»o of our community â the people, sponsors, and donors who understand that the land is worth showing up for."}),t.jsx("p",{className:"text-foreground/70 leading-relaxed max-w-3xl mx-auto mb-12",children:"With a village of supporters, we are fortunate to be aided by funding and donations of tools, equipment, and time to continue the work that we do across three project sites. As an organization that competes for grants to sustain our operation our work may sometimes be hindered due to lack of funding, we kindly ask that you consider donating to us or other local nonprofits that you believe are doing great things for your community."}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 max-w-2xl mx-auto",children:[t.jsx(pe,{href:"/donate",className:"block px-5 py-3 bg-primary text-white font-medium rounded-md hover:bg-primary/90 transition-colors","data-testid":"support-donate",children:"Donate"}),t.jsx(pe,{href:"/sponsorship",className:"block px-5 py-3 border-2 border-primary text-primary font-medium rounded-md hover:bg-primary/5 transition-colors","data-testid":"support-sponsorship",children:"Sponsorship"}),t.jsx("a",{href:"https://hoh808.threadless.com/",target:"_blank",rel:"noopener noreferrer",className:"block px-5 py-3 bg-accent text-white font-medium rounded-md hover:bg-accent/90 transition-colors","data-testid":"support-shop",children:"Shop"})]})]})}),t.jsx("section",{className:"py-20 bg-muted/30",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground text-center mb-10",children:"Mahalo to Our Sponsors"}),t.jsx("div",{className:"flex flex-wrap gap-3 justify-center",children:T3.map(n=>t.jsx("span",{className:"px-4 py-2 bg-white border border-border rounded-full text-sm text-foreground
18/70","data-testid":`sponsor-${n.replace(/[^a-zA-Z]/g,"").toLowerCase().slice(0,10)}`,children:n},n))})]})})]})}const E3=[10,25,50,100,250],H3=[{icon:ic,amount:10,description:"Provides native plant seedlings for one restoration session"},{icon:Ya,amount:25,description:"Supports supplies for a community volunteer workday"},{icon:zm,amount:50,description:"Funds educational materials for K-12 place-based learning"},{icon:Lm,amount:100,description:"Sponsors a full month of loÊ»i kalo maintenance"}];function O3(){const[n,s]=w.useState(25),[i,l]=w.useState(""),[d,m]=w.useState(""),[p,g]=w.useState(!1),[f,h]=w.useState(""),x=i?parseFloat(i):n,y=k=>{const N=k.replace(/[^0-9.]/g,"");l(N),s(null)},v=k=>{s(k),l("")},S=async()=>{if(h(""),!x||x<1){h("Please enter a donation amount of at least $1.");return}g(!0);try{const k=await be("/api/donations/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount:x,donorEmail:d||void 0})}),N=await k.json();if(!k.ok){h(N.error||"Something went wrong. Please try again.");return}window.location.href=N.url}catch{h("Network error. Please check your connection and try again.")}finally{g(!1)}};return t.jsxs("div",{"data-testid":"donate-page",children:[t.jsx(Be,{title:"Donate",description:"Make a tax-deductible gift to Hui o HoÊ»ohonua, a 501(c)(3) nonprofit restoring native habitat and traditional Hawaiian land stewardship in Ê»Ewa Moku, OÊ»ahu."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"Make a Difference"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:"Support Our Work"}),t.jsx("p",{className:"mt-4 text-white/80 text-lg max-w-xl mx-auto",children:"Your gift restores Ê»Äina and empowers community across the Ê»Ewa Moku"})]})}),t.jsx("section",{className:"py-16 bg-white",children:t.jsx("div",{className:"max-w-5xl mx-auto px-6",children:t.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-start",children:[t.jsxs("div",{className:"bg-white border border-border rounded-2xl shadow-sm p-8",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-2",children:"Choose an Amount"}),t.jsx("p",{className:"text-muted-foreground text-sm mb-6",children:"Hui o HoÊ»ohonua is a 501(c)(3) nonprofit. All donations are tax-deductible."}),t.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-4",children:[E3.map(k=>t.jsxs("button",{onClick:()=>v(k),className:`py-3 rounded-lg font-medium text-sm border-2 transition-all ${n===k?"border-primary bg-primary text-white":"border-border hover:border-primary/50 text-foreground"}`,children:["$",k]},k)),t.jsx("button",{onClick:()=>{s(null)},className:`py-3 rounded-lg font-medium text-sm border-2 transition-all col-span-3 ${!n&&i?"border-primary bg-primary/5 text-primary":"border-border hover:border-primary/50 text-foreground"}`,children:"Custom Amount"})]}),(!n||i)&&t.jsxs("div",{className:"relative mb-4",children:[t.jsx("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground font-medium",children:"$"}),t.jsx("input",{type:"text",inputMode:"decimal",placeholder:"Enter amount",value:i,onChange:k=>y(k.target.value),className:"w-full pl-8 pr-4 py-3 border-2 border-border rounded-lg focus:border-primary focus:outline-none text-foreground","data-testid":"custom-amount-input"})]}),t.jsxs("div",{className:"mb-6",children:[t.jsxs("label",{className:"block text-sm font-medium text-foreground mb-1",children:["Email ",t.jsx("span",{className:"text-muted-foreground font-normal",children:"(optional â for receipt)"})]}),t.jsx("input",{type:"email",placeholder:"[email protected]",value:d,onChange:k=>m(k.target.value),className:"w-full px-4 py-3 border-2 border-border rounded-lg focus:border-primary focus:outline-none text-foreground","data-testid":"donor-email"})]}),f&&t.jsx("div",{className:"mb-4 px-4 py-3 bg-red-50 border border-red-200 text-red-700 rounded-lg text-sm",children:f}),t.jsx("button",{onClick:S,disabled:p||!x,"data-testid":"donate-button",className:"w-full py-4 bg-primary text-white font-semibold rounded-lg hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed text-base",children:p?"Redirecting to checkout...":x?`Donate $${typeof x=="number"&&!Number.isInteger(x)?x.toFixed(2):x}`:"Select an amount"}),t.jsx("p",{className:"mt-4 text-center text-xs text-muted-foreground",children:"Secure payment powered by Stripe. Your card details are never stored on our servers."})]}),t.jsxs("div",{children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-6",children:"Your Impact"}),t.jsx("div",{className:"space-y-4 mb-8",children:H3.map(({icon:k,amount:N,description:A})=>t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"flex-shrink-0 w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center",children:t.jsx(k,{className:"w-5 h-5 text-primary"})}),t.jsxs("div",{children:[t.jsxs("span",{className:"font-semibold text-foreground",children:["$",N," â "]}),t.jsx("span",{className:"text-muted-foreground",children:A})]})]},N))}),t.jsxs("div",{className:"bg-primary/5 border border-primary/20 rounded-xl p-6 mb-6",children:[t.jsx("h3",{className:"font-serif font-semibold text-foreground mb-2",children:"About Hui o HoÊ»ohonua"}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"We are a 501(c)(3) nonprofit restoring fishponds, loÊ»i kalo, and native habitats across the Ê»Ewa Moku on OÊ»ahu. 100% of your donation goes directly to our programs."})]}),t.jsxs("div",{className:"border border-border rounded-xl p-5",children:[t.jsx("h3",{className:"font-semibold text-foreground text-sm mb-2",children:"Prefer to mail a check?"}),t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Hui o HoÊ»ohonua",t.jsx("br",{}),"PO Box 970711",t.jsx("br",{}),"Waipahu, HI 96797"]}),t.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["Questions?"," ",t.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]})]})]})})})]})}function Nl(n,s){const i=(s?.trim()||"USD").toUpperCase();return new Intl.NumberFormat("en-US",{style:"currency",currency:i,minimumFractionDigits:0,maximumFractionDigits:2}).format(n/100)}function D3(n){if(!n)return"";const s=new Date(n);return isNaN(s.getTime())?"":s.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}const P3=3,R3=[1e3,2e3];function _3(){const n=Eb(),i=new URLSearchParams(n).get("session_id"),[l,d]=w.useState(null),[m,p]=w.useState(!1),[g,f]=w.useState(!1),[h,x]=w.useState(!1);w.useEffect(()=>{if(!i)return;const A=i;let E=!1;async function L(){p(!0),f(!1),x(!1);let H=null;for(let P=0;P<P3&&!(E||P>0&&(f(!0),await new Promise(q=>setTimeout(q,R3[P-1])),E));P++)try{const q=await be(`/api/donations/history?session_id=${encodeURIComponent(A)}`);
18if(q.ok){H=await q.json();break}}catch{}E||(H?d(H):x(!0),p(!1),f(!1))}return L(),()=>{E=!0}},[i]);const y=l?.history??[],v=l?.lifetimeTotal,S=l?.hasEmail??!0,k=l?.current?.amountTotal??0,N=y.length>0||v!=null&&v>k;return t.jsxs("div",{"data-testid":"donate-success-page",className:"min-h-[60vh] flex items-center justify-center bg-white",children:[t.jsx(Be,{title:"Thank You",description:"Thank you for supporting Hui o HoÊ»ohonua. Your donation helps restore the Ê»Äina and empower community stewardship in Ê»Ewa Moku, OÊ»ahu, HawaiÊ»i."}),t.jsxs("div",{className:"max-w-lg mx-auto px-6 py-20 text-center",children:[t.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(zt,{className:"w-10 h-10 text-primary"})}),t.jsx("h1",{className:"font-serif text-3xl font-bold text-foreground mb-4",children:"Mahalo for Your Gift!"}),t.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8",children:"Your donation has been received and will go directly toward restoring the lands and waters of the Ê»Ewa Moku. You'll receive a receipt by email if you provided one."}),t.jsxs("div",{className:"bg-primary/5 border border-primary/20 rounded-xl p-6 mb-8 text-left",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[t.jsx(Lm,{className:"w-4 h-4 text-primary"}),t.jsx("span",{className:"font-semibold text-foreground text-sm",children:"What happens next?"})]}),t.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[t.jsx("li",{children:"⢠A tax receipt will be emailed to you"}),t.jsx("li",{children:"⢠Your gift supports volunteer workdays at Kapapapuhi and Waipahu LoÊ»i"}),t.jsx("li",{children:"⢠Follow us on Instagram @huiohoohonua for updates"})]})]}),i&&t.jsxs("div",{className:"bg-white border border-border rounded-xl p-6 mb-8 text-left",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[t.jsx(E2,{className:"w-4 h-4 text-primary"}),t.jsx("span",{className:"font-semibold text-foreground text-sm",children:"Your giving history"})]}),m||g?t.jsxs("div",{className:"flex items-center justify-center py-4 gap-2",children:[t.jsx(Gi,{className:"w-5 h-5 text-muted-foreground animate-spin"}),g&&t.jsx("span",{className:"text-sm text-muted-foreground",children:"Checking your paymentâ¦"})]}):h?t.jsxs("div",{"data-testid":"retries-failed-notice",children:[t.jsx("p",{className:"text-sm font-medium text-foreground mb-1",children:"Your payment was received â mahalo!"}),t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Your giving history may take a moment to appear."," ",t.jsx("button",{onClick:()=>window.location.reload(),className:"underline hover:text-foreground transition-colors",children:"Reload the page"})," ","to check again."]})]}):N?t.jsxs(t.Fragment,{children:[!S&&k>0&&t.jsxs("p",{className:"text-sm font-medium text-foreground mb-3",children:["Payment received:"," ",t.jsx("span",{"data-testid":"current-amount",children:Nl(k,"usd")})]}),v!=null&&v>0&&t.jsxs("div",{className:"flex items-center justify-between mb-4 pb-3 border-b border-border",children:[t.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Lifetime giving"}),t.jsx("span",{className:"text-sm font-bold text-primary",children:Nl(v,"usd")})]}),t.jsx("ul",{className:"space-y-2",children:y.map(A=>t.jsxs("li",{className:"flex items-center justify-between text-sm",children:[t.jsx("span",{className:"text-muted-foreground",children:D3(A.createdAt)}),t.jsx("span",{className:"font-medium text-foreground",children:Nl(A.amountTotal,A.currency)})]},A.id))})]}):t.jsxs("div",{children:[!S&&k>0&&t.jsxs("p",{className:"text-sm font-medium text-foreground mb-2",children:["Payment received:"," ",t.jsx("span",{"data-testid":"current-amount",children:Nl(k,"usd")})]}),t.jsx("p",{className:"text-sm text-muted-foreground",children:S?"This is your first donation â thank you for joining our Ê»ohana!":"We couldn't find a giving history to show for this browser. If you've given before, it may show up next time using the same browser."})]})]}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[t.jsx(pe,{href:"/",className:"px-6 py-3 bg-primary text-white font-medium rounded-lg hover:bg-primary/90 transition-colors",children:"Back to Home"}),t.jsx(pe,{href:"/volunteer",className:"px-6 py-3 border border-primary text-primary font-medium rounded-lg hover:bg-primary/5 transition-colors",children:"Get Involved"})]})]})]})}function L3(){return t.jsxs("div",{"data-testid":"sponsorship-page",children:[t.jsx(Be,{title:"Sponsorship",description:"Partner with Hui o HoÊ»ohonua as a corporate or community sponsor and support environmental restoration, cultural stewardship, and volunteer programs in Ê»Ewa Moku, OÊ»ahu."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"Partner with Us"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:"Sponsorship"})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6",children:[t.jsx("p",{className:"text-foreground
18/70 leading-relaxed text-lg mb-8 text-center",children:"Become a sponsor and stand with the Ê»Ewa Moku â the land and the people who have always called it home."}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-8",children:"Sponsorships help us sustain our operations, support our community workdays, and expand our educational programs. In return, we are proud to recognize our sponsors publicly and celebrate the organizations and individuals who make our work possible."}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-10",children:"For information about sponsorship opportunities and packages, please reach out to us directly."}),t.jsx("div",{className:"text-center",children:t.jsx("a",{href:"mailto:[email protected]",className:"inline-block px-6 py-3 bg-primary text-white font-medium rounded-md hover:bg-primary/90 transition-colors","data-testid":"sponsorship-contact",children:"Contact Us About Sponsorship"})})]})})]})}function z3(){const n=w.useRef(null),s=w.useRef(null),i=w.useRef(null),l=w.useRef(null);function d(m){m.preventDefault();const p=n.current?.value??"",g=s.current?.value??"",f=i.current?.value??"",h=l.current?.value??"",x=encodeURIComponent(`Website Contact Form â ${p} ${g}`),y=encodeURIComponent(`Name: ${p} ${g} 19Email: ${f} 20 21Message: 22${h}`);window.location.href=`mailto:[email protected]?subject=${x}&body=${y}`}return t.jsxs("div",{"data-testid":"contact-page",children:[t.jsx(Be,{title:"Contact Us",description:"Contact Hui o HoÊ»ohonua â reach our team for information about volunteering, programs, partnerships, or general inquiries about our work in Ê»Ewa Moku."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"Get in Touch"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:"Contact Us"})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-6",children:t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-6",children:"Send Us a Message"}),t.jsxs("form",{onSubmit:d,className:"space-y-4","data-testid":"contact-form",children:[t.jsx("p",{className:"text-muted-foreground text-sm mb-2",children:"Clicking Submit will open your email app with your message pre-filled â just send it from there."}),t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"First Name *"}),t.jsx("input",{ref:n,type:"text",required:!0,className:"w-full border border-input rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:border-transparent outline-none","data-testid":"contact-first-name"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Last Name *"}),t.jsx("input",{ref:s,type:"text",required:!0,className:"w-full border border-input rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:border-transparent outline-none","data-testid":"contact-last-name"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Email *"}),t.jsx("input",{ref:i,type:"email",required:!0,className:"w-full border border-input rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:border-transparent outline-none","data-testid":"contact-email"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Message *"}),t.jsx("textarea",{ref:l,required:!0,rows:5,className:"w-full border border-input rounded-md px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:border-transparent outline-none","data-testid":"contact-message"})]}),t.jsx("button",{type:"submit",className:"px-6 py-2.5 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary/90 transition-colors","data-testid":"contact-submit",children:"Submit"})]})]}),t.jsxs("div",{children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-6",children:"Get in Touch"}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"font-medium text-foreground mb-1",children:"Mailing Address"}),t.jsxs("p",{className:"text-muted-foreground text-sm",children:["Hui o HoÊ»ohonua",t.jsx("br",{}),"PO Box 970711",t.jsx("br",{}),"Waipahu, HI 96797"]})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-medium text-foreground mb-2",children:"Phone"}),t.jsx("a",{href:"tel:+18086280937",className:"flex items-center gap-2 text-primary text-sm hover:underline","data-testid":"contact-phone-link",children:"808-628-0937"})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-medium text-foreground mb-2",children:"Email"}),t.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 text-primary text-sm hover:underline","data-testid":"contact-email-link",children:[t.jsx(xn,{className:"w-4 h-4"}),"[email protected]"]}
22)]}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-medium text-foreground mb-2",children:"Social Media"}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs("a",{href:"https://www.facebook.com/HOH808/",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-foreground/70 hover:text-primary text-sm transition-colors","data-testid":"contact-facebook",children:[t.jsx(Ny,{className:"w-4 h-4"})," Facebook"]}),t.jsxs("a",{href:"https://www.instagram.com/huiohoohonua/",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-foreground/70 hover:text-primary text-sm transition-colors","data-testid":"contact-instagram",children:[t.jsx(ky,{className:"w-4 h-4"})," Instagram"]})]})]})]})]})]})})})]})}const U3=[{date:"June 1, 2025",title:"Job Free but not Kuleana Free!",content:`Hui! Hey kÄkou, Kyleena here to share some updates since our last chat: 23 24The number one question asked since our team's layoff is "What are the challenges of this freeze?": Most people believe that funding is our top issue and the truth is, that's wrong. Funding allows us to produce the work at a faster rate, support local agricultural businesses, conduct educational and recruitment outreach, and more, but it is not and never will be the heartbeat of our work. 25 26The heart of our work is in the hands of our Ê»Åpio, in soles of our kÅ«puna's feet, and in the brains of our mÄkua. We will resume consistent Second Saturday Workdays at Kapapuhi immediately, as well as Fourth Saturday Workdays at the Waipahu LoÊ»i. Check us out on Instagram and Facebook for more details! E mÄlama pono`},{date:"February 14, 2025",title:"Federal Funding Freeze Impact",content:"Effective immediately, all Hui o HoÊ»ohonua staff are laid off as a result of the Federal Funding Freeze. We mahalo our dedicated kiaÊ»i for sharing your hardworking hands, committed hearts, and talented minds, in a working capacity for as long as we could keep you on. As we navigate another 'new normal' within our operations, please stay up to date with us through Instagram @huiohoohonua or Facebook @HOH808"},{date:"Summer 2024",title:"Evolving our Initiative",content:"Our organization continues to transform, adapt, and evolve to what is best for our community. As we have undergone great internal transition, we feel it is important to keep our community informed and up to date with our progress."}];function F3(){return t.jsxs("div",{"data-testid":"news-page",children:[t.jsx(Be,{title:"News & Updates",description:"Stay current with Hui o HoÊ»ohonua news and updates â environmental restoration milestones, volunteer highlights, and community events across Ê»Ewa Moku, OÊ»ahu."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"NÅ« Hou"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:"News"})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6",children:[t.jsx("div",{className:"space-y-10",children:U3.map(n=>t.jsxs("article",{className:"border-b border-border pb-10 last:border-0","data-testid":`news-${n.date.replace(/\s+/g,"-").toLowerCase().slice(0,15)}`,children:[t.jsx("p",{className:"text-muted-foreground text-sm mb-2 uppercase tracking-wide",children:n.date}),t.jsx("h2",{className:"font-serif text-xl font-semibold text-foreground mb-4",children:n.title}),t.jsx("div",{className:"bg-muted/30 rounded-lg p-5 border-l-4 border-primary",children:t.jsx("p",{className:"text-foreground/70 text-sm leading-relaxed whitespace-pre-line",children:n.content})})]},n.title))}),t.jsx("div",{className:"mt-12 text-center",children:t.jsxs("p",{className:"text-muted-foreground text-sm",children:["For the latest updates, follow us on"," ",t.jsx("a",{href:"https://www.instagram.com/huiohoohonua/",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Instagram @huiohoohonua"})," ","or"," ",t.jsx("a",{href:"https://www.facebook.com/HOH808/",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Facebook @HOH808"})]})})]})})]})}function mt(n){const s=Object.prototype.toString.call(n);return n instanceof Date||typeof n=="object"&&s==="[object Date]"?new n.constructor(+n):typeof n=="number"||s==="[object Number]"||typeof n=="string"||s==="[object String]"?new Date(n):new Date(NaN)}function $a(n,s){return n instanceof Date?new n.constructor(s):new Date(s)}function C0(n,s){const i=mt(n);if(isNaN(s))return $a(n,NaN);if(!s)return i;const l=i.getDate(),d=$a(n,i.getTime());d.setMonth(i.getMonth()+s+1,0);const m=d.getDate();return l>=m?d:(i.setFullYear(d.getFullYear(),d.getMonth(),l),i)}const E0=6048e5,B3=864e5,H0=6e4,O0=36e5;let q3={};function Ji(){return q3}function Ps(n,s){const i=Ji(),l=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,d=mt(n),m=d.getDay(),p=(m<l?7:0)+m-l;return d.setDate(d.getDate()-p),d.setHours(0,0,0,0),d}function Gl(n){return Ps(n,{weekStartsOn:1}
26)}function D0(n){const s=mt(n),i=s.getFullYear(),l=$a(n,0);l.setFullYear(i+1,0,4),l.setHours(0,0,0,0);const d=Gl(l),m=$a(n,0);m.setFullYear(i,0,4),m.setHours(0,0,0,0);const p=Gl(m);return s.getTime()>=d.getTime()?i+1:s.getTime()>=p.getTime()?i:i-1}function Yl(n){const s=mt(n);return s.setHours(0,0,0,0),s}function lb(n){const s=mt(n),i=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()));return i.setUTCFullYear(s.getFullYear()),+n-+i}function W3(n,s){const i=Yl(n),l=Yl(s),d=+i-lb(i),m=+l-lb(l);return Math.round((d-m)/B3)}function I3(n){const s=D0(n),i=$a(n,0);return i.setFullYear(s,0,4),i.setHours(0,0,0,0),Gl(i)}function V3(n){return $a(n,Date.now())}function Hl(n,s){const i=Yl(n),l=Yl(s);return+i==+l}function G3(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Y3(n){if(!G3(n)&&typeof n!="number")return!1;const s=mt(n);return!isNaN(Number(s))}function $3(n){const s=mt(n),i=s.getMonth();return s.setFullYear(s.getFullYear(),i+1,0),s.setHours(23,59,59,999),s}function K3(n,s){const i=mt(n.start),l=mt(n.end);let d=+i>+l;const m=d?+i:+l,p=d?l:i;p.setHours(0,0,0,0);let g=1;const f=[];for(;+p<=m;
vendor: 17,949 bytes, line 26
26)f.push(mt(p)),p.setDate(p.getDate()+g),p.setHours(0,0,0,0);return d?f.reverse():f}function Q3(n){const s=mt(n);return s.setDate(1),s.setHours(0,0,0,0),s}function X3(n){const s=mt(n),i=$a(n,0);return i.setFullYear(s.getFullYear(),0,1),i.setHours(0,0,0,0),i}function Z3(n,s){const i=Ji(),l=i.weekStartsOn??i.locale?.options?.weekStartsOn??0,d=mt(n),m=d.getDay(),p=(m<l?-7:0)+6-(m-l);return d.setDate(d.getDate()+p),d.setHours(23,59,59,999),d}const J3={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},e4=(n,s,i)=>{let l;const d=J3[n];return typeof d=="string"?l=d:s===1?l=d.one:l=d.other.replace("{{count}}",s.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+l:l+" ago":l};function Qu(n){return(s={})=>{const i=s.width?String(s.width):n.defaultWidth;return n.formats[i]||n.formats[n.defaultWidth]}}const t4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},r4={date:Qu({formats:t4,defaultWidth:"full"}),time:Qu({formats:a4,defaultWidth:"full"}),dateTime:Qu({formats:n4,defaultWidth:"full"})},s4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i4=(n,s,i,l)=>s4[n];function zi(n){return(s,i)=>{const l=i?.context?String(i.context):"standalone";let d;if(l==="formatting"&&n.formattingValues){const p=n.defaultFormattingWidth||n.defaultWidth,g=i?.width?String(i.width):p;d=n.formattingValues[g]||n.formattingValues[p]}else{const p=n.defaultWidth,g=i?.width?String(i.width):n.defaultWidth;d=n.values[g]||n.values[p]}const m=n.argumentCallback?n.argumentCallback(s):s;return d[m]}}const o4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},l4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},c4={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},d4={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},m4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},h4=(n,s)=>{const i=Number(n),l=i%100;if(l>20||l<10)switch(l%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},f4={ordinalNumber:h4,era:zi({values:o4,defaultWidth:"wide"}),quarter:zi({values:l4,defaultWidth:"wide",argumentCallback:n=>n-1}),month:zi({values:c4,defaultWidth:"wide"}),day:zi({values:d4,defaultWidth:"wide"}),dayPeriod:zi({values:u4,defaultWidth:"wide",formattingValues:m4,defaultFormattingWidth:"wide"})};function Ui(n){return(s,i={})=>{const l=i.width,d=l&&n.matchPatterns[l]||n.matchPatterns[n.defaultMatchWidth],m=s.match(d);if(!m)return null;const p=m[0],g=l&&n.parsePatterns[l]||n.parsePatterns[n.defaultParseWidth],f=Array.isArray(g)?x4(g,y=>y.test(p)):p4(g,y=>y.test(p));let h;h=n.valueCallback?n.valueCallback(f):f,h=i.valueCallback?i.valueCallback(h):h;const x=s.slice(p.length);return{value:h,rest:x}}}function p4(n,s){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&s(n[i]))return i}function x4(n,s){for(let i=0;i<n.length;i++)if(s(n[i]))return i}function g4(n){return(s,i={})=>{const l=s.match(n.matchPattern);if(!l)return null;const d=l[0],m=s.match(n.parsePattern);if(!m)return null;let p=n.valueCallback?n.valueCallback(m[0]):m[0];p=i.valueCallback?i.valueCallback(p):p;const g=s.slice(d.length);return{value:p,rest:g}}}const b4=/^(\d+)(th|st|nd|rd)?/i,y4=/\d+/i,v4={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},w4={any:[/^b/i,/^(a|c)/i]},j4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},N4={any:[/1/i,/2/i,/3/i,/4/i]},S4={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},k4={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},M4={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},A4={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},T4={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},C4={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},E4={ordinalNumber:g4({matchPattern:b4,parsePattern:y4,valueCallback:n=>parseInt(n,10)}),era:Ui({matchPatterns:v4,defaultMatchWidth:"wide",parsePatterns:w4,defaultParseWidth:"any"}),quarter:Ui({matchPatterns:j4,defaultMatchWidth:"wide",parsePatterns:N4,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Ui({matchPatterns:S4,defaultMatchWidth:"wide",parsePatterns:k4,defaultParseWidth:"any"}),day:Ui({matchPatterns:M4,defaultMatchWidth:"wide",parsePatterns:A4,defaultParseWidth:"any"}),dayPeriod:Ui({matchPatterns:T4,defaultMatchWidth:"any",parsePatterns:C4,defaultParseWidth:"any"})},H4={code:"en-US",formatDistance:e4,formatLong:r4,formatRelative:i4,localize:f4,match:E4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function O4(n){const s=mt(n);return W3(s,X3(s))+1}function D4(n){const s=mt(n),i=+Gl(s)-+I3(s);return Math.round(i/E0)+1}function P0(n,s){const i=mt(n),l=i.getFullYear(),d=Ji(),m=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,p=$a(n,0);p.setFullYear(l+1,0,m),p.setHours(0,0,0,0);const g=Ps(p,s),f=$a(n,0);f.setFullYear(l,0,m),f.setHours(0,0,0,0);const h=Ps(f,s);return i.getTime()>=g.getTime()?l+1:i.getTime()>=h.getTime()?l:l-1}function P4(n,s){const i=Ji(),l=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,d=P0(n,s),m=$a(n,0);return m.setFullYear(d,0,l),m.setHours(0,0,0,0),Ps(m,s)}function R4(n,s){const i=mt(n),l=+Ps(i,s)-+P4(i,s);return Math.round(l/E0)+1}function Ge(n,s){const i=n<0?"-":"",l=Math.abs(n).toString().padStart(s,"0");return i+l}const Gn={y(n,s){const i=n.getFullYear(),l=i>0?i:1-i;return Ge(s==="yy"?l%100:l,s.length)},M(n,s){const i=n.getMonth();return s==="M"?String(i+1):Ge(i+1,2)},d(n,s){return Ge(n.getDate(),s.length)},a(n,s){const i=n.getHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return i==="am"?"a.m.":"p.m."}},h(n,s){return Ge(n.getHours()%12||12,s.length)},H(n,s){return Ge(n.getHours(),s.length)},m(n,s){return Ge(n.getMinutes(),s.length)},s(n,s){return Ge(n.getSeconds(),s.length)},S(n,s){const i=s.length,l=n.getMilliseconds(),d=Math.trunc(l*Math.pow(10,i-3));return Ge(d,s.length)}},js={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cb={G:function(n,s,i){const l=n.getFullYear()>0?1:0;switch(s){case"G":case"GG":case"GGG":return i.era(l,{width:"abbreviated"});case"GGGGG":return i.era(l,{width:"narrow"});default:return i.era(l,{width:"wide"})}},y:function(n,s,i){if(s==="yo"){const l=n.getFullYear(),d=l>0?l:1-l;return i.ordinalNumber(d,{unit:"year"})}return Gn.y(n,s)},Y:function(n,s,i,l){const d=P0(n,l),m=d>0?d:1-d;if(s==="YY"){const p=m%100;return Ge(p,2)}return s==="Yo"?i.ordinalNumber(m,{unit:"year"}):Ge(m,s.length)},R:function(n,s){const i=D0(n);return Ge(i,s.length)},u:function(n,s){const i=n.getFullYear();return Ge(i,s.length)},Q:function(n,s,i){const l=Math.ceil((n.getMonth()+1)/3);switch(s){case"Q":return String(l);case"QQ":return Ge(l,2);case"Qo":return i.ordinalNumber(l,{unit:"quarter"});case"QQQ":return i.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(l,{width:"narrow",context:"formatting"});default:return i.quarter(l,{width:"wide",context:"formatting"})}},q:function(n,s,i){const l=Math.ceil((n.getMonth()+1)/3);switch(s){case"q":return String(l);case"qq":return Ge(l,2);case"qo":return i.ordinalNumber(l,{unit:"quarter"});case"qqq":return i.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(l,{width:"narrow",context:"standalone"});default:return i.quarter(l,{width:"wide",context:"standalone"})}},M:function(n,s,i){const l=n.getMonth();switch(s){case"M":case"MM":return Gn.M(n,s);case"Mo":return i.ordinalNumber(l+1,{unit:"month"});case"MMM":return i.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(l,{width:"narrow",context:"formatting"});default:return i.month(l,{width:"wide",context:"formatting"})}},L:function(n,s,i){const l=n.getMonth();switch(s){case"L":return String(l+1);case"LL":return Ge(l+1,2);case"Lo":return i.ordinalNumber(l+1,{unit:"month"});case"LLL":return i.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(l,{width:"narrow",context:"standalone"});default:return i.month(l,{width:"wide",context:"standalone"})}},w:function(n,s,i,l){const d=R4(n,l);return s==="wo"?i.ordinalNumber(d,{unit:"week"}):Ge(d,s.length)},I:function(n,s,i){const l=D4(n);return s==="Io"?i.ordinalNumber(l,{unit:"week"}):Ge(l,s.length)},d:function(n,s,i){return s==="do"?i.ordinalNumber(n.getDate(),{unit:"date"}):Gn.d(n,s)},D:function(n,s,i){const l=O4(n);return s==="Do"?i.ordinalNumber(l,{unit:"dayOfYear"}):Ge(l,s.length)},E:function(n,s,i){const l=n.getDay();switch(s){case"E":case"EE":case"EEE":return i.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(l,{width:"short",context:"formatting"});default:return i.day(l,{width:"wide",context:"formatting"})}},e:function(n,s,i,l){const d=n.getDay(),m=(d-l.weekStartsOn+8)%7||7;switch(s){case"e":return String(m);case"ee":return Ge(m,2);case"eo":return i.ordinalNumber(m,{unit:"day"});case"eee":return i.day(d,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(d,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(d,{width:"short",context:"formatting"});default:return i.day(d,{width:"wide",context:"formatting"})}},c:function(n,s,i,l){const d=n.getDay(),m=(d-l.weekStartsOn+8)%7||7;switch(s){case"c":return String(m);case"cc":return Ge(m,s.length);case"co":return i.ordinalNumber(m,{unit:"day"});case"ccc":return i.day(d,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(d,{width:"narrow",context:"standalone"});case"cccccc":return i.day(d,{width:"short",context:"standalone"});default:return i.day(d,{width:"wide",context:"standalone"})}},i:function(n,s,i){const l=n.getDay(),d=l===0?7:l;switch(s){case"i":return String(d);case"ii":return Ge(d,s.length);case"io":return i.ordinalNumber(d,{unit:"day"});case"iii":return i.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(l,{width:"short",context:"formatting"});default:return i.day(l,{width:"wide",context:"formatting"})}},a:function(n,s,i){const d=n.getHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return i.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(d,{width:"narrow",context:"formatting"});default:return i.dayPeriod(d,{width:"wide",context:"formatting"})}},b:function(n,s,i){const l=n.getHours();let d;switch(l===12?d=js.noon:l===0?d=js.midnight:d=l/12>=1?"pm":"am",s){case"b":case"bb":return i.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(d,{width:"narrow",context:"formatting"});default:return i.dayPeriod(d,{width:"wide",context:"formatting"})}},B:function(n,s,i){const l=n.getHours();let d;switch(l>=17?d=js.evening:l>=12?d=js.afternoon:l>=4?d=js.morning:d=js.night,s){case"B":case"BB":case"BBB":return i.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(d,{width:"narrow",context:"formatting"});default:return i.dayPeriod(d,{width:"wide",context:"formatting"})}},h:function(n,s,i){if(s==="ho"){let l=n.getHours()%12;return l===0&&(l=12),i.ordinalNumber(l,{unit:"hour"})}return Gn.h(n,s)},H:function(n,s,i){return s==="Ho"?i.ordinalNumber(n.getHours(),{unit:"hour"}):Gn.H(n,s)},K:function(n,s,i){const l=n.getHours()%12;return s==="Ko"?i.ordinalNumber(l,{unit:"hour"}):Ge(l,s.length)},k:function(n,s,i){let l=n.getHours();return l===0&&(l=24),s==="ko"?i.ordinalNumber(l,{unit:"hour"}):Ge(l,s.length)},m:function(n,s,i){return s==="mo"?i.ordinalNumber(n.getMinutes(),{unit:"minute"}):Gn.m(n,s)},s:function(n,s,i){return s==="so"?i.ordinalNumber(n.getSeconds(),{unit:"second"}):Gn.s(n,s)},S:function(n,s){return Gn.S(n,s)},X:function(n,s,i){const l=n.getTimezoneOffset();if(l===0)return"Z";switch(s){case"X":return ub(l);case"XXXX":case"XX":return Ar(l);default:return Ar(l,":")}},x:function(n,s,i){const l=n.getTimezoneOffset();switch(s){case"x":return ub(l);case"xxxx":case"xx":return Ar(l);default:return Ar(l,":")}},O:function(n,s,i){const l=n.getTimezoneOffset();switch(s){case"O":case"OO":case"OOO":return"GMT"+db(l,":");default:return"GMT"+Ar(l,":")}},z:function(n,s,i){const l=n.getTimezoneOffset();switch(s){case"z":case"zz":case"zzz":return"GMT"+db(l,":");default:return"GMT"+Ar(l,":")}},t:function(n,s,i){const l=Math.trunc(n.getTime()/1e3);return Ge(l,s.length)},T:function(n,s,i){const l=n.getTime();return Ge(l,s.length)}};function db(n,s=""){const i=n>0?"-":"+",l=Math.abs(n),d=Math.trunc(l/60),m=l%60;return m===0?i+String(d):i+String(d)+s+Ge(m,2)}function ub(n,s){return n%60===0?(n>0?"-":"+")+Ge(Math.abs(n)/60,2):Ar(n,s)}function Ar(n,s=""){const i=n>0?"-":"+",l=Math.abs(n),d=Ge(Math.trunc(l/60),2),m=Ge(l%60,2);return i+d+s+m}const mb=(n,s)=>{switch(n){case"P":return s.date({width:"short"});case"PP":return s.date({width:"medium"});case"PPP":return s.date({width:"long"});default:return s.date({width:"full"})}},R0=(n,s)=>{switch(n){case"p":return s.time({width:"short"});case"pp":return s.time({width:"medium"});case"ppp":return s.time({width:"long"});default:return s.time({width:"full"})}},_4=(n,s)=>{const i=n.match(/(P+)(p+)?/)||[],l=i[1],d=i[2];if(!d)return mb(n,s);let m;switch(l){case"P":m=s.dateTime({width:"short"});break;case"PP":m=s.dateTime({width:"medium"});break;case"PPP":m=s.dateTime({width:"long"});break;default:m=s.dateTime({width:"full"});break}return m.replace("{{date}}",mb(l,s)).replace("{{time}}",R0(d,s))},L4={p:R0,P:_4},z4=/^D+$/,U4=/^Y+$/,F4=["D","DD","YY","YYYY"];function B4(n){return z4.test(n)}function q4(n){return U4.test(n)}function W4(n,s,i){const l=I4(n,s,i);if(console.warn(l),F4.includes(n))throw new RangeError(l)}function I4(n,s,i){const l=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${s}\`) for formatting ${l} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const V4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,G4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Y4=/^'([^]*?)'?$/,$4=/''/g,K4=/[a-zA-Z]/;function Ns(n,s,i){const l=Ji(),d=l.locale??H4,m=l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,p=l.weekStartsOn??l.locale?.options?.weekStartsOn??0,g=mt(n);if(!Y3(g))throw new RangeError("Invalid time value");let f=s.match(G4).map(x=>{const y=x[0];if(y==="p"||y==="P"){const v=L4[y];return v(x,d.formatLong)}return x}).join("").match(V4).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const y=x[0];if(y==="'")return{isToken:!1,value:Q4(x)};if(cb[y])return{isToken:!0,value:x};
vendor: 14,752 bytes, line 26
26if(y.match(K4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:x}});d.localize.preprocessor&&(f=d.localize.preprocessor(g,f));const h={firstWeekContainsDate:m,weekStartsOn:p,locale:d};return f.map(x=>{if(!x.isToken)return x.value;const y=x.value;(q4(y)||B4(y))&&W4(y,s,String(n));const v=cb[y[0]];return v(g,y,d.localize,h)}).join("")}function Q4(n){const s=n.match(Y4);return s?s[1].replace($4,"'"):n}function X4(n){return+mt(n)<Date.now()}function Z4(n,s){const i=mt(n),l=mt(s);return i.getFullYear()===l.getFullYear()&&i.getMonth()===l.getMonth()}function J4(n){return Hl(n,V3(n))}function Ss(n,s){const l=nM(n);let d;if(l.date){const f=rM(l.date,2);d=sM(f.restDateString,f.year)}if(!d||isNaN(d.getTime()))return new Date(NaN);const m=d.getTime();let p=0,g;if(l.time&&(p=iM(l.time),isNaN(p)))return new Date(NaN);if(l.timezone){if(g=oM(l.timezone),isNaN(g))return new Date(NaN)}else{const f=new Date(m+p),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return new Date(m+p+g)}const Sl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},eM=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,tM=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,aM=/^([+-])(\d{2})(?::?(\d{2}))?$/;function nM(n){const s={},i=n.split(Sl.dateTimeDelimiter);let l;if(i.length>2)return s;if(/:/.test(i[0])?l=i[0]:(s.date=i[0],l=i[1],Sl.timeZoneDelimiter.test(s.date)&&(s.date=n.split(Sl.timeZoneDelimiter)[0],l=n.substr(s.date.length,n.length))),l){const d=Sl.timezone.exec(l);d?(s.time=l.replace(d[1],""),s.timezone=d[1]):s.time=l}return s}function rM(n,s){const i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+s)+"})|(\\d{2}|[+-]\\d{"+(2+s)+"})$)"),l=n.match(i);if(!l)return{year:NaN,restDateString:""};const d=l[1]?parseInt(l[1]):null,m=l[2]?parseInt(l[2]):null;return{year:m===null?d:m*100,restDateString:n.slice((l[1]||l[2]).length)}}function sM(n,s){if(s===null)return new Date(NaN);const i=n.match(eM);if(!i)return new Date(NaN);const l=!!i[4],d=Fi(i[1]),m=Fi(i[2])-1,p=Fi(i[3]),g=Fi(i[4]),f=Fi(i[5])-1;if(l)return mM(s,g,f)?lM(s,g,f):new Date(NaN);{const h=new Date(0);return!dM(s,m,p)||!uM(s,d)?new Date(NaN):(h.setUTCFullYear(s,m,Math.max(d,p)),h)}}function Fi(n){return n?parseInt(n):1}function iM(n){const s=n.match(tM);if(!s)return NaN;const i=Xu(s[1]),l=Xu(s[2]),d=Xu(s[3]);return hM(i,l,d)?i*O0+l*H0+d*1e3:NaN}function Xu(n){return n&&parseFloat(n.replace(",","."))||0}function oM(n){if(n==="Z")return 0;const s=n.match(aM);if(!s)return 0;const i=s[1]==="+"?-1:1,l=parseInt(s[2]),d=s[3]&&parseInt(s[3])||0;return fM(l,d)?i*(l*O0+d*H0):NaN}function lM(n,s,i){const l=new Date(0);l.setUTCFullYear(n,0,4);const d=l.getUTCDay()||7,m=(s-1)*7+i+1-d;return l.setUTCDate(l.getUTCDate()+m),l}const cM=[31,null,31,30,31,30,31,31,30,31,30,31];function _0(n){return n%400===0||n%4===0&&n%100!==0}function dM(n,s,i){return s>=0&&s<=11&&i>=1&&i<=(cM[s]||(_0(n)?29:28))}function uM(n,s){return s>=1&&s<=(_0(n)?366:365)}function mM(n,s,i){return s>=1&&s<=53&&i>=0&&i<=6}function hM(n,s,i){return n===24?s===0&&i===0:i>=0&&i<60&&s>=0&&s<60&&n>=0&&n<25}function fM(n,s){return s>=0&&s<=59}function pM(n,s){return C0(n,-1)}const Qt={volunteer:{label:"Volunteer Workday",bg:"bg-primary/15",text:"text-primary",dot:"bg-primary"},education:{label:"Education",bg:"bg-blue-100",text:"text-blue-700",dot:"bg-blue-500"},community:{label:"Community Event",bg:"bg-amber-100",text:"text-amber-700",dot:"bg-amber-500"},fundraiser:{label:"Fundraiser",bg:"bg-rose-100",text:"text-rose-700",dot:"bg-rose-500"}},xM=[{id:1,title:"PHAM Community Monthly Workday",date:"2026-04-04",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Join HOH808 for our monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this place where Hawaiian cultural history and national wartime history meet. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:2,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2026-04-11",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:`Join us for a morning of coastal restoration at Kapapapuhi Point. We'll be removing invasive species and planting native groundcovers. Wear closed-toe shoes and sun protection. Tools and water provided. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location.`,category:"volunteer"},{id:5,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2026-04-25",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:6,title:"PHAM Community Monthly Workday",date:"2026-05-02",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:7,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2026-05-09",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Join us in removing invasive species and planting native coastal plants. All skill levels welcome. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location.',category:"volunteer"},{id:10,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2026-05-23",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:11,title:"PHAM Community Monthly Workday",date:"2026-06-06",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:12,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2026-06-13",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration workday at Kapapapuhi Point. Help us protect and restore this special coastal ecosystem. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location.',category:"volunteer"},{id:14,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2026-06-27",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:15,title:"HÄlawa Landing Restoration Workday",date:"2026-06-20",time:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings along this culturally significant shoreline. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer"},{id:16,title:"PHAM Community Monthly Workday",date:"2026-07-11",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer",holidayNote:"Rescheduled from July 4 due to Independence Day."},{id:17,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2026-07-11",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Help remove invasive species and plant native coastal groundcovers. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location. Wear closed-toe shoes and sun protection. Tools and water provided.',category:"volunteer"},{id:18,title:"HÄlawa Landing Restoration Workday",date:"2026-07-18",time:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer"},{id:19,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2026-07-25",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:20,title:"PHAM Community Monthly Workday",date:"2026-08-01",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:21,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2026-08-08",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Help remove invasive species and plant native coastal groundcovers. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location. Wear closed-toe shoes and sun protection. Tools and water provided.',category:"volunteer"},{id:22,title:"HÄlawa Landing Restoration Workday",date:"2026-08-15",time:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer"},{id:23,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2026-08-22",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:24,title:"PHAM Community Monthly Workday",date:"2026-09-05",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:25,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2026-09-12",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Join us in removing invasive species and planting native coastal plants. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location. All skill levels welcome.',category:"volunteer"},{id:26,title:"HÄlawa Landing Restoration Workday",date:"2026-09-19",time:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer"},{id:27,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2026-09-26",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:28,title:"PHAM Community Monthly Workday",date:"2026-10-03",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:29,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2026-10-10",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Help remove invasive species and plant native coastal groundcovers. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location. Wear closed-toe shoes and sun protection. Tools and water provided.',category:"volunteer"},{id:30,title:"HÄlawa Landing Restoration Workday",date:"2026-10-17",t
26ime:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer"},{id:31,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2026-10-24",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:32,title:"PHAM Community Monthly Workday",date:"2026-11-07",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:33,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2026-11-14",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Help remove invasive species and plant native coastal groundcovers. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location. Wear closed-toe shoes and sun protection. Tools and water provided.',category:"volunteer"},{id:34,title:"HÄlawa Landing Restoration Workday",date:"2026-11-21",time:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer"},{id:35,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2026-11-28",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:36,title:"PHAM Community Monthly Workday",date:"2026-12-05",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:37,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2026-12-12",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Help protect and restore this special coastal ecosystem as the year winds down. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location. All skill levels welcome.',category:"volunteer"},{id:38,title:"HÄlawa Landing Restoration Workday",date:"2026-12-19",time:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer"},{id:39,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2026-12-26",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer",holidayNote:"This workday falls the day after Christmas. Confirm with staff before attending."},{id:40,title:"PHAM Community Monthly Workday",date:"2027-01-02",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer",holidayNote:"This workday falls the day after New Year's Day. Confirm with staff before attending."},{id:41,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2027-01-09",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Help remove invasive species and plant native coastal groundcovers. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location. Wear closed-toe shoes and sun protection. Tools and water provided.',category:"volunteer"},{id:42,title:"HÄlawa Landing Restoration Workday",date:"2027-01-16",time:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer"},{id:43,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2027-01-23",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:44,title:"PHAM Community Monthly Workday",date:"2027-02-06",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:45,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2027-02-13",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Help remove invasive species and plant native coastal groundcovers. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location. Wear closed-toe shoes and sun protection. Tools and water provided.',category:"volunteer"}
26,{id:46,title:"HÄlawa Landing Restoration Workday",date:"2027-02-20",time:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer"},{id:47,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2027-02-27",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:48,title:"PHAM Community Monthly Workday",date:"2027-03-06",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:49,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2027-03-13",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Join us in removing invasive species and planting native coastal plants. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location. All skill levels welcome.',category:"volunteer"},{id:50,title:"HÄlawa Landing Restoration Workday",date:"2027-03-20",time:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer"},{id:51,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2027-03-27",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:52,title:"PHAM Community Monthly Workday",date:"2027-04-03",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:53,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2027-04-10",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Help remove invasive species and plant native coastal groundcovers. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location. Wear closed-toe shoes and sun protection. Tools and water provided.',category:"volunteer"},{id:54,title:"HÄlawa Landing Restoration Workday",date:"2027-04-17",time:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer"},{id:55,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2027-04-24",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:56,title:"PHAM Community Monthly Workday",date:"2027-05-01",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:57,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2027-05-08",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Help remove invasive species and plant native coastal groundcovers. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location. Wear closed-toe shoes and sun protection. Tools and water provided.',category:"volunteer"},{id:58,title:"HÄlawa Landing Restoration Workday",date:"2027-05-15",time:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer"},{id:59,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2027-05-22",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"},{id:60,title:"PHAM Community Monthly Workday",date:"2027-06-05",time:"8:00 AM",endTime:"12:00 PM",location:"MokuÊ»umeÊ»ume (Ford Island), Pearl Harbor",description:"Monthly community stewardship workday at Pearl Harbor Aviation Museum. Volunteers support landscaping, beautification, and visible care of this historic site. HOH808 provides tools, supplies, and food. A valid government-issued photo ID is required for base access.",category:"volunteer"},{id:61,title:"KÅ«kulu i loko o Kapapapuhi Volunteer Workday",date:"2027-06-12",time:"8:00 AM",endTime:"12:00 PM",location:"Kapapapuhi Point Park, Ê»Ewa Beach",description:'Monthly coastal restoration at Kapapapuhi Point. Help remove invasive species and plant native coastal groundcovers. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location. Wear closed-toe shoes and sun protection. Tools and water provided.',category:"volunteer"},{id:62,title:"HÄlawa Landing Restoration Workday",date:"2027-06-19",time:"8:00 AM",endTime:"12:00 PM",location:"Pearl Harbor National Memorial, HÄlawa, OÊ»ahu",description:"Monthly native plant stewardship at the Pearl Harbor National Memorial in HÄlawa. Volunteers remove invasive species from the shoreline hedge and protect native Naupaka and Stonecrop plantings. HOH provides tools, gloves, and water. Wear closed-toe shoes and sun protection.",category:"volunteer",holidayNote:"This workday falls on Juneteenth National Independence Day. Confirm with staff before attending."},{id:63,title:"PuÊ»uhonua O Waipahu LoÊ»i Volunteer Day",date:"2027-06-26",time:"8:00 AM",endTime:"12:00 PM",location:"Pupuole Street Mini Park, Waipahu",description:"Monthly volunteer workday at our loÊ»i kalo. Help with weeding, irrigation, planting, and harvesting while connecting with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",category:"volunteer"}],gM=[{name:"Independence Day",date:"2026-07-04",emoji:"ð",bg:"bg-red-50",text:"text-red-700",border:"border-red-300"},{name:"HawaiÊ»i Statehood Day",date:"2026-08-21",emoji:"ðº",bg:"bg-yellow-50",text:"text-yellow-700",border:"border-yellow-300"},{name:"Labor Day",date:"2026-09-07",emoji:"âï¸",bg:"bg-amber-50",text:"text-amber-700",border:"border-amber-300"},{name:"Discoverers' Day",date:"2026-10-12",emoji:"ð§",bg:"bg-sky-50",text:"text-sky-700",border:"border-sky-300"},{name:"Veterans Day",date:"2026-11-11",emoji:"ðï¸",bg:"bg-blue-50",text:"text-blue-800",border:"border-blue-300"},{name:"Thanksgiving",date:"2026-11-26",emoji:"ð¦",bg:"bg-orange-50",text:"text-orange-700",border:"border-orange-300"},{name:"Christmas",date:"2026-12-25",emoji:"ð",bg:"bg-green-50",text:"text-green-800",border:"border-green-300"},{name:"New Year's Day",date:"2027-01-01",emoji:"ð",bg:"bg-purple-50",text:"text-purple-700",border:"border-purple-300"},{name:"MLK Jr. Day",date:"2027-01-18",emoji:"â",bg:"bg-blue-50",text:"text-blue-700",border:"border-blue-300"},{name:"Presidents Day",date:"2027-02-15",emoji:"ðºð¸",bg:"bg-red-50",text:"text-red-700",border:"border-red-300"},{name:"KÅ«hiÅ Day",date:"2027-03-26",emoji:"ðº",bg:"bg-green-50",text:"text-green-700",border:"border-green-300"},{name:"Memorial Day",date:"2027-05-31",emoji:"ðï¸",bg:"bg-red-50",text:"text-red-700",border:"border-red-300"},{name:"Kamehameha Day",date:"2027-06-11",emoji:"ð",bg:"bg-yellow-50",text:"text-yellow-700",border:"border-yellow-300"},{name:"Juneteenth",date:"2027-06-19",emoji:"â",bg:"bg-red-50",text:"text-red-700",border:"border-red-300"}];function bM(){const[n,s]=w.useState(()=>{const E=new Date;return new Date(E.getFullYear(),E.getMonth(),1)}),[i,l]=w.useState("calendar"),[d,m]=w.useState(null),[p,g]=w.useState("all"),f=xM.filter(E=>p==="all"||E.category===p),h=Q3(n),x=$3(n),y=Ps(h),v=Z3(x),S=K3({start:y,end:v}),k=E=>f.filter(L=>Hl(Ss(L.date),E)),N=E=>gM.filter(L=>Hl(Ss(L.date),E)),A=f.filter(E=>
26!X4(Ss(E.date))||Hl(Ss(E.date),new Date)).sort((E,L)=>E.date.localeCompare(L.date));return t.jsxs("div",{className:"min-h-screen bg-background",children:[t.jsx(Be,{title:"Events",description:"Find upcoming volunteer workdays and community events hosted by Hui o Hoʻohonua. Join us for coastal restoration, taro farming, and stewardship programs in ʻEwa Moku."}),t.jsx("div",{className:"relative py-16 text-white",style:{background:"hsl(142 48% 32%)"},children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[t.jsx("p",{className:"text-sm font-medium uppercase tracking-widest text-white/70 mb-2",children:"Community Calendar"}),t.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold mb-4",children:"Events"}),t.jsx("p",{className:"text-lg text-white/80 max-w-xl mx-auto",children:"Join us in the field, in the classroom, and in the community. All events are free and open to the public unless noted."})]})}),t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10",children:[t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-8",children:[t.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.jsx("button",{onClick:()=>g("all"),className:`px-3 py-1.5 rounded-full text-sm font-medium border transition-colors ${p==="all"?"bg-foreground text-background border-foreground":"bg-white text-foreground/60 border-border hover:border-foreground
26/30"}`,children:"All Events"}),Object.keys(Qt).map(E=>t.jsx("button",{onClick:()=>g(E),className:`px-3 py-1.5 rounded-full text-sm font-medium border transition-colors ${p===E?`${Qt[E].bg} ${Qt[E].text} border-transparent`:"bg-white text-foreground/60 border-border hover:border-foreground/30"}`,children:Qt[E].label},E))]}),t.jsxs("div",{className:"flex items-center gap-1 border border-border rounded-lg p-1 bg-white self-start sm:self-auto",children:[t.jsxs("button",{onClick:()=>l("calendar"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm font-medium transition-colors ${i==="calendar"?"bg-primary text-white":"text-foreground/60 hover:text-foreground"}`,children:[t.jsx(ka,{className:"w-4 h-4"}),"Calendar"]}),t.jsxs("button",{onClick:()=>l("list"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm font-medium transition-colors ${i==="list"?"bg-primary text-white":"text-foreground/60 hover:text-foreground"}`,children:[t.jsx(z2,{className:"w-4 h-4"}),"List"]})]})]}),i==="calendar"&&t.jsxs("div",{className:"bg-white rounded-xl border border-border shadow-sm overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border",children:[t.jsx("button",{onClick:()=>s(pM(n)),className:"p-2 rounded-lg hover:bg-muted transition-colors","aria-label":"Previous month",children:t.jsx(c2,{className:"w-5 h-5"})}),t.jsx("h2",{className:"text-xl font-serif font-semibold",children:Ns(n,"MMMM yyyy")}),t.jsx("button",{onClick:()=>s(C0(n,1)),className:"p-2 rounded-lg hover:bg-muted transition-colors","aria-label":"Next month",children:t.jsx(Ul,{className:"w-5 h-5"})})]}),t.jsx("div",{className:"grid grid-cols-7 border-b border-border",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(E=>t.jsx("div",{className:"py-2 text-center text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:E},E))}),t.jsx("div",{className:"grid grid-cols-7",children:S.map((E,L)=>{const H=k(E),P=N(E),q=Z4(E,n),V=J4(E),Z=q?P[0]:void 0,K=Math.max(1,3-P.length),re=H.length-K;return t.jsxs("div",{className:`min-h-[100px] p-1.5 border-b border-r border-border last:border-r-0 transition-colors ${q?Z?`${Z.bg} border-l-2 ${Z.border}`:"":"bg-muted/30"}`,children:[t.jsx("div",{className:`w-7 h-7 flex items-center justify-center rounded-full text-sm font-medium mb-1 ${V?"bg-primary text-white":q?"text-foreground":"text-muted-foreground/50"}`,children:Ns(E,"d")}),t.jsxs("div",{className:"space-y-0.5",children:[P.map(le=>t.jsxs("div",{className:`w-full text-xs px-1.5 py-0.5 rounded flex items-center gap-0.5 font-medium ${le.text}`,title:le.name,children:[t.jsx("span",{className:"leading-none flex-shrink-0",children:le.emoji}),t.jsx("span",{className:"truncate",children:le.name})]},le.date)),H.slice(0,K).map(le=>t.jsxs("button",{onClick:()=>m(le),className:`w-full text-left text-xs font-medium px-1.5 py-0.5 rounded truncate block ${Qt[le.category].bg} ${Qt[le.category].text} hover:opacity-80 transition-opacity`,children:[le.title,le.holidayNote&&t.jsx("span",{className:"ml-0.5",children:"*"})]},le.id)),re>0&&t.jsxs("button",{onClick:()=>m(H[K]),className:"text-xs text-muted-foreground hover:text-foreground px-1.5",children:["+",re," more"]})]})]},L)})})]}),i==="list"&&t.jsx("div",{className:"space-y-4",children:A.length===0?t.jsxs("div",{className:"text-center py-16 text-muted-foreground",children:[t.jsx(ka,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),t.jsx("p",{children:"No upcoming events found."})]}):A.map(E=>{const L=Ss(E.date);return t.jsxs("div",{className:"bg-white rounded-xl border border-border shadow-sm flex overflow-hidden hover:shadow-md transition-shadow cursor-pointer",onClick:()=>m(E),children:[t.jsxs("div",{className:"w-20 flex-shrink-0 flex flex-col items-center justify-center text-white py-4",style:{background:"hsl(142 48% 32%)"},children:[t.jsx("span",{className:"text-xs font-semibold uppercase tracking-widest opacity-80",children:Ns(L,"MMM")}),t.jsx("span",{className:"text-3xl font-bold leading-none",children:Ns(L,"d")}),t.jsx("span",{className:"text-xs opacity-70",children:Ns(L,"yyyy")})]}),t.jsxs("div",{className:"flex-1 px-5 py-4",children:[t.jsx("div",{className:"flex flex-wrap items-center gap-2 mb-1.5",children:t.jsxs("span",{className:`inline-flex items-center gap-1 text-xs font-medium px-2 py-0.5 rounded-full ${Qt[E.category].bg} ${Qt[E.category].text}`,children:[t.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${Qt[E.category].dot}`}),Qt[E.category].label]})}),t.jsxs("h3",{className:"font-serif font-semibold text-lg text-foreground mb-1 leading-snug",children:[E.title,E.holidayNote&&t.jsx("span",{className:"text-muted-foreground font-sans text-base ml-0.5",children:"*"})]}),t.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-sm text-muted-foreground",children:[t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(Xt,{className:"w-3.5 h-3.5"}),E.time,E.endTime&&` â ${E.endTime}`]}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(Sa,{className:"w-3.5 h-3.5"}),E.location]})]})]}),t.jsx("div",{className:"hidden sm:flex items-center pr-5 text-muted-foreground",children:t.jsx(Ul,{className:"w-5 h-5"})})]},E.id)})}),f.some(E=>E.holidayNote)&&t.jsx("p",{className:"mt-4 text-xs text-muted-foreground",children:"* Date differs from the regular schedule due to a holiday."}),t.jsxs("div",{className:"mt-12 bg-primary/5 border border-primary/20 rounded-xl p-6 text-center",children:[t.jsx("h3",{className:"font-serif font-semibold text-lg mb-2",children:"Stay in the Loop"}),t.jsx("p",{className:"text-muted-foreground text-sm mb-4",children:"Want to be notified about upcoming events and volunteer opportunities? Reach out and ask to be added to our mailing list."}),t.jsx("a",{href:"/contact",className:"inline-flex items-center gap-2 px-5 py-2.5 bg-primary text-white text-sm font-medium rounded-lg hover:bg-primary/90 transition-colors",children:"Contact Us"})]})]}),d&&t.jsx("div",{className:"fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4",onClick:()=>m(null),children:t.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl w-full max-w-lg overflow-hidden",onClick:E=>E.stopPropagation(),children:[t.jsxs("div",{className:"px-6 py-5 text-white relative",style:{background:"hsl(142 48% 32%)"},children:[t.jsx("button",{onClick:()=>m(null),className:"absolute top-4 right-4 p-1 rounded-full hover:bg-white/20 transition-colors","aria-label":"Close",children:t.jsx(Jt,{className:"w-5 h-5"})}),t.jsxs("span",{className:`inline-flex items-center gap-1 text-xs font-medium px-2 py-0.5 rounded-full mb-3 ${Qt[d.category].bg} ${Qt[d.category].text}`,children:[t.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${Qt[d.category].dot}`}),Qt[d.category].label]}),t.jsxs("h2",{className:"font-serif font-bold text-2xl leading-snug pr-8",children:[d.title,d.holidayNote&&t.jsx("span",{className:"font-sans text-xl ml-0.5 opacity-80",children:"*"})]})]}),t.jsxs("div",{className:"px-6 py-5 space-y-4",children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx(ka,{className:"w-4 h-4 mt-0.5 text-primary flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground mb-0.5",children:"Date"}),t.jsx("p",{className:"text-sm font-medium",children:Ns(Ss(d.date),"EEEE, MMMM d, yyyy")})]})]}),t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx(Xt,{className:"w-4 h-4 mt-0.5 text-primary flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground mb-0.5",children:"Time"}),t.jsxs("p",{className:"text-sm font-medium",children:[d.time,d.endTime&&t.jsxs("span",{className:"text-muted-foreground",children:[" ","â ",d.endTime]})]})]})]})]}),t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx(Sa,{className:"w-4 h-4 mt-0.5 text-primary flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground mb-0.5",children:"Location"}),t.jsx("p",{className:"text-sm font-medium",children:d.location})]})]}),d.holidayNote&&t.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-lg px-4 py-2.5 text-sm text-amber-800",children:[t.jsx("span",{className:"font-semibold",children:"* Date change:"})," ",d.holidayNote]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground mb-1.5",children:"About This Event"}
26),t.jsx("p",{className:"text-sm text-foreground/80 leading-relaxed",children:d.description})]}),t.jsxs("div",{className:"flex gap-3 pt-2",children:[d.url?t.jsxs("a",{href:d.url,className:"flex-1 flex items-center justify-center gap-2 px-4 py-2.5 bg-primary text-white text-sm font-medium rounded-lg hover:bg-primary/90 transition-colors","aria-label":`Learn more about ${d.title}`,children:[t.jsx(Tr,{className:"w-4 h-4","aria-hidden":"true"}),"Learn More"]}):t.jsx("a",{href:"/volunteer",className:"flex-1 flex items-center justify-center gap-2 px-4 py-2.5 bg-primary text-white text-sm font-medium rounded-lg hover:bg-primary/90 transition-colors",children:"Sign Up to Volunteer"}),t.jsx("a",{href:"/contact",className:"flex-1 flex items-center justify-center gap-2 px-4 py-2.5 border border-border text-sm font-medium rounded-lg hover:bg-muted transition-colors",children:"Ask a Question"})]})]})]})})]})}function yM(n){const s=n?parseInt(n,10):NaN;if(!isNaN(s)&&s>0){if(s<60)return`Too many submissions â please try again in ${s} second${s===1?"":"s"}.`;const i=Math.ceil(s/60);return`Too many submissions â please try again in ${i} minute${i===1?"":"s"}.`}return"Too many submissions â please wait a few minutes before trying again."}function hb(n){return n>=200&&n<300?null:n===404?"Token not found. Make sure you copied the full confirmation code from your signup email.":n===429?"Too many lookups â please wait a few minutes before trying again.":"Could not load records. Please try again."}function vM(n){const{title:s,location:i,date:l,startHour:d,endHour:m,description:p}=n,[g,f,h]=l.split("-").map(Number),x=k=>String(k).padStart(2,"0"),y=`${g}${x(f)}${x(h)}`,v=`${y}T${x(d)}0000/${y}T${x(m)}0000`;return`https://calendar.google.com/calendar/render?${new URLSearchParams({action:"TEMPLATE",text:s,dates:v,details:p,location:i}).toString()}`}function wM(n){const{title:s,location:i,date:l,startHour:d,endHour:m,description:p}=n,[g,f,h]=l.split("-").map(Number),x=L=>String(L).padStart(2,"0"),y=`${g}${x(f)}${x(h)}`,v=`${y}T${x(d)}0000`,S=`${y}T${x(m)}0000`,k=`${Date.now()}-${Math.random().toString(36).slice(2)}@hoh808.org`,N=new Date().toISOString().replace(/[-:.]/g,"").slice(0,15)+"Z",A=L=>L.replace(/\\/g,"\\\\").replace(/;/g,"\\;").replace(/,/g,"\\,").replace(/\n/g,"\\n"),E=["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//Hui o Hoohonua//HOH808//EN","CALSCALE:GREGORIAN","METHOD:PUBLISH","BEGIN:VEVENT",`DTSTART:${v}`,`DTEND:${S}`,`DTSTAMP:${N}`,`UID:${k}`,`SUMMARY:${A(s)}`,`LOCATION:${A(i)}`,`DESCRIPTION:${A(p)}`,"STATUS:CONFIRMED","END:VEVENT","END:VCALENDAR"].join(`\r 27`);return`data:text/calendar;charset=utf-8,${encodeURIComponent(E)}`}function Zu(n,s){if(!s||!n)return null;const i=He[n]?.schedulePattern??null;if(!i)return null;const[l,d,m]=s.split("-").map(Number),p=new Date(l,d-1,m);if(i.startDate){const h=new Date(i.startDate+"T00:00:00");if(p<h)return`This program begins ${h.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})} â please choose that date or a later workday.`}if(p.getDay()!==6)return`This project meets on the ${i.label} of each month â please choose a Saturday.`;const g=Qm(l,d-1,i.nth),f=T0(g);
27if(p.getTime()!==g.getTime()&&p.getTime()!==f.getTime()){const h=Xm(n,1),x=h.length>0?` Next workday: ${h[0].label}.`:"";return`This project meets on the ${i.label} of each month (with holiday adjustments).${x}`}return null}const Ol=[{...He["malama-kapapapuhi"],description:'Restore native coastal plants and remove invasive species at Kapapapuhi Point. Volunteers help with planting, weeding, mulching, and general habitat restoration along the shoreline. GPS "Kapapapuhi St" â do not GPS the park by name, it will take you to the wrong location.',icon:t.jsx(ic,{className:"w-7 h-7"}),color:"hsl(142 48% 32%)"},{...He["waipahu-loi"],description:"Work alongside community farmers to maintain traditional Hawaiian loÊ»i kalo (taro patches). Tasks include weeding, irrigation, planting, and harvesting â deeply connecting volunteers with Hawaiian agricultural traditions. Located at Pupuole Street Mini Park, behind Waipahu Intermediate School.",icon:t.jsx(N2,{className:"w-7 h-7"}),color:"hsl(210 60% 38%)"},{...He["pearl-harbor-aviation"],description:"Join HOH808 for our monthly community stewardship workday at Pearl Harbor Aviation Museum on MokuÊ»umeÊ»ume (Ford Island). Volunteers support landscaping, beautification, and visible care of a place where Hawaiian cultural history and national wartime history meet. HOH808 provides volunteer coordination, tools, supplies, and food. Note: Ford Island is a military installation â all volunteers must provide a valid government-issued photo ID for base access and complete the required waiver before the workday.",icon:t.jsx(Q2,{className:"w-7 h-7"}),color:"hsl(200 55% 38%)"},{...He["halawa-landing"],description:"Remove invasive plants along the shoreline hedge at Pearl Harbor National Memorial, protecting native Naupaka and Stonecrop. Work takes place in a high-visitation area near the water's edge, with hand tools and utility carts. HOH provides coordination, tools, supplies, and high-visibility vests. Parking in front of Restaurant 604 (57 Arizona Memorial Dr). Note: a federal NPS Volunteer Service Agreement (OF-301a) is required â forms available on the day. First workday: Saturday, June 20, 2026.",icon:t.jsx(ka,{className:"w-7 h-7"}),color:"hsl(174 55% 32%)"},{...He["adopt-a-plot"],description:"Commit to an ongoing stewardship practice tied to Hawaiian land and sea care traditions. Individuals, families, or groups adopt a specific practice and learn to tend it through regular visits with HOH guidance.",icon:t.jsx(zm,{className:"w-7 h-7"}),color:"hsl(30 55% 38%)"},{...He["education-outreach"],description:"Support place-based education programs for Kâ12 students. Volunteers assist educators in the field, help facilitate hands-on activities, and share their knowledge of Hawaiian culture and environmental stewardship.",icon:t.jsx(Sy,{className:"w-7 h-7"}),color:"hsl(270 40% 40%)"},{...He.general,description:"Want to stay connected and show up wherever you're needed? Register as a general volunteer and receive updates about upcoming workdays across all of our active projects. Perfect for scanning in at events or community fairs.",icon:t.jsx(Ya,{className:"w-7 h-7"}),color:"hsl(142 38% 24%)"}],Dl={firstName:"",lastName:"",email:"",phone:"",eventDate:"",grantId:"",groupName:"",groupSize:"",isStudent:!1,schoolName:"",gradeLevel:"",teacherName:"",emergencyContactName:"",emergencyContactPhone:"",isMinor:!1,guardianName:"",isMilitary:!1,militaryBranch:"",militaryUnit:"",comments:"",waiverAgreed:!1},Pl={cancellationToken:"",volunteerFirstName:"",volunteerLastName:"",serviceDate:"",hours:"",minutes:"0",description:"",supervisorName:""};function fb(n){if(!n)return"";const[s,i,l]=n.split("-").map(Number);return new Date(s,i-1,l).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}function Rl(n){return`hoh_signup_draft_${n}`}function ks(n){return`hoh_hours_draft_${n}`}function jM(n){try{const s=ks(n),i=localStorage.getItem(s);if(!i)return!1;const l=JSON.parse(i);if(Zm(l))return localStorage.removeItem(s),!1;const d=l;return!!(d.cancellationToken?.trim()||d.volunteerFirstName?.trim()||d.volunteerLastName?.trim()||d.serviceDate?.trim()||d.hours?.trim()||d.description?.trim())}catch{return!1}}const NM=720*60*60*1e3;function Zm(n){const s=n._savedAt;
27return typeof s!="string"?!1:Date.now()-new Date(s).getTime()>NM}function SM(n){try{const s=Rl(n),i=localStorage.getItem(s);if(!i)return null;const l=JSON.parse(i);if(Zm(l))return localStorage.removeItem(s),null;const d={...Dl,...l};return(d.firstName?.trim()??"")!==""||(d.lastName?.trim()??"")!==""||(d.email?.trim()??"")!==""||(d.groupName?.trim()??"")!==""||(d.emergencyContactName?.trim()??"")!==""?d:null}catch{return null}}function kM(n){try{const s=ks(n),i=localStorage.getItem(s);if(!i)return null;const l=JSON.parse(i);if(Zm(l))return localStorage.removeItem(s),null;const d={...Pl,...l};return(d.cancellationToken?.trim()??"")!==""||(d.volunteerFirstName?.trim()??"")!==""||(d.volunteerLastName?.trim()??"")!==""||(d.serviceDate??"")!==""||(d.hours??"")!==""||(d.description?.trim()??"")!==""?d:null}catch{return null}}function MM(n){return Ol.find(s=>s.id===n)?.title??n}function AM(){const[n,s]=w.useState(null),[i,l]=w.useState(null),[d,m]=w.useState([]),[p,g]=w.useState({}),[f,h]=w.useState(Dl),[x,y]=w.useState({}),[v,S]=w.useState(!1),[k,N]=w.useState(!1),[A,E]=w.useState(!1),L=w.useRef(null),[H,P]=w.useState(Pl),[q,V]=w.useState({}),[Z,K]=w.useState(!1),[re,le]=w.useState(!1),[he,fe]=w.useState("mood"),[ye,te]=w.useState(null),[G,T]=w.useState(""),[F,B]=w.useState(null),[ie,M]=w.useState(""),[Y,ne]=w.useState(!1),[ae,se]=w.useState(""),[J,ee]=w.useState(null),[Ae,we]=w.useState(!1),[De,ht]=w.useState(void 0),[gt,Tt]=w.useState(void 0),[z,Ne]=w.useState(!1),[We,qt]=w.useState(""),[Ye,vn]=w.useState(null),[zs,tr]=w.useState(""),[ar,eo]=w.useState(!1),[to,pc]=w.useState([]),[ao,wn]=w.useState(()=>{const O=new Set;try{for(const oe of Ol)oe.id!=="general"&&jM(oe.id)&&O.add(oe.id)}catch{}return O});w.useEffect(()=>{be("/api/volunteer/program-settings").then(xe=>xe.ok?xe.json():null).then(xe=>{xe?.data&&g(xe.data)}).catch(()=>{}),be("/api/cancellations").then(xe=>xe.ok?xe.json():null).then(xe=>{xe?.data&&pc(xe.data)}).catch(()=>{});const O=new URLSearchParams(window.location.search),oe=O.get("signup");if(oe){const xe=Ol.find(Se=>Se.id===oe);if(xe){const Se=ct=>O.get(ct)||void 0,bt=ct=>O.get(ct)==="1"||void 0,Aa=Se("email"),sr={email:Aa,firstName:Se("firstName"),lastName:Se("lastName"),phone:Se("phone")??"",emergencyContactName:Se("emergencyContactName")??"",emergencyContactPhone:Se("emergencyContactPhone")??"",groupName:Se("groupName")??"",groupSize:O.get("groupSize")?O.get("groupSize"):"",isStudent:bt("isStudent")??!1,schoolName:Se("schoolName")??"",gradeLevel:Se("gradeLevel")??"",teacherName:Se("teacherName")??"",isMinor:bt("isMinor")??!1,isMilitary:bt("isMilitary")??!1,comments:Se("comments")??""};Ct(xe,Se("eventDate"),sr),Aa&&be(`/api/volunteer/waiver-status?email=${encodeURIComponent(Aa)}`).then(ct=>ct.ok?ct.json():null).then(ct=>{ct?.hasWaiver&&(E(!0),Ze("waiverAgreed",!0))}).catch(()=>{})}window.history.replaceState({},"",window.location.pathname)}},[]),w.useEffect(()=>{if(n==="signup"&&i&&!v)try{localStorage.setItem(Rl(i.id),JSON.stringify({...f,_savedAt:new Date().toISOString()}))}catch{}},[f,n,i,v]),w.useEffect(()=>{if(n==="logHours"&&i&&!Z)try{localStorage.setItem(ks(i.id),JSON.stringify({...H,_savedAt:new Date().toISOString()}))}catch{}},[H,n,i,Z]);async function Ct(O,oe,xe){l(O),ht(oe),Tt(xe);const Se=SM(O.id),bt={...Dl,...xe};if(Se){const Aa=oe?{...Se,eventDate:oe}:Se,sr={...bt,...Object.fromEntries(Object.entries(Aa).filter(([,ct])=>ct!==""&&ct!==!1&&ct!=null)),...oe?{eventDate:oe}:{}};h(sr),we(!0)}else h(oe?{...bt,eventDate:oe}:bt),we(!1);y({}),S(!1),m([]),s("signup");try{const Aa=await be(`/api/volunteer/grants?programId=${encodeURIComponent(O.id)}`);if(Aa.ok){const sr=await Aa.json();m(sr.data??[])}}catch{}}function La(O){l(O);const oe=kM(O.id);oe?(P(oe),Ne(!0)):(P(Pl),Ne(!1)),V({}),K(!1),fe("mood"),te(null),T(""),B(null),M(""),se(""),ee(null),s("logHours"),be(`/api/workday-photos/context?projectId=${encodeURIComponent(O.id)}`).then(xe=>xe.ok?xe.json():null).then(xe=>{xe&&ee(xe)}).catch(()=>{})}function nt(){if(n==="logHours"&&i){try{localStorage.removeItem(ks(i.id))}catch{}wn(O=>{const oe=new Set(O);return oe.delete(i.id),oe})}s(null),l(null),we(!1),Ne(!1),ht(void 0),Tt(void 0),S(!1),K(!1),E(!1),L.current&&(clearTimeout(L.current),L.current=null),fe("mood"),te(null),T(""),B(null),M(""),se(""),ee(null),vn(null),qt(""),tr("")}const Ma=i?i.flexible:!1;function xc(){const O={};if(f.firstName.trim()||(O.firstName="Required"),f.lastName.trim()||(O.lastName="Required"),(!f.email.trim()||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f.email))&&(O.email="Valid email required"),!Ma){if(!f.eventDate)O.eventDate="Required";else if(i){const oe=He[i.id]?.schedulePattern??null;if(oe?.startDate){const xe=new Date(f.eventDate+"T00:00:00"),Se=new Date(oe.startDate+"T00:00:00");xe<Se&&(O.eventDate=`This program begins ${Se.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})} â please choose that date or a later workday.`)}if(!O.eventDate){const xe=Zu(i.id,f.eventDate);xe&&!f.comments.trim()&&(O.eventDate=xe)}}}return f.groupName.trim()||(O.groupName="Required"),f.emergencyContactName.trim()||(O.emergencyContactName="Required"),f.emergencyContactPhone.trim()||(O.emergencyContactPhone="Required"),f.isStudent&&!f.schoolName.trim()&&(O.schoolName="Required for students"),f.isMinor&&!f.guardianName.trim()&&(O.guardianName="Required â enter your legal name as parent or guardian"),f.isMilitary&&!f.militaryBranch&&(O.militaryBranch="Please select your branch"),!A&&!f.waiverAgreed&&(O.waiverAgreed="You must read and agree to the waiver"),y(O),Object.keys(O).length===0}function no(O){return yM(O.headers.get("Retry-After"))}async function Pr(O){if(O.preventDefault(),!(!xc()||!i)){N(!0);try{const oe=await be("/api/volunteer/signup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...f,projectId:i.id,grantId:f.grantId?Number(f.grantId):null,groupSize:f.groupSize?Number(f.groupSize):null,waiverAgreed:!0})});if(oe.status===429){y({submit:no(oe)});return}
27if(!oe.ok){let xe="Something went wrong. Please try again or contact us.";try{const Se=await oe.json();typeof Se?.error=="string"&&Se.error&&(xe=Se.error)}catch{}y({submit:xe});return}try{localStorage.removeItem(Rl(i.id))}catch{}we(!1),S(!0)}catch{y({submit:"Something went wrong. Please try again or contact us."})}finally{N(!1)}}}function nr(O){const oe=O.trim();try{const Se=new URL(oe).searchParams.get("token");if(Se)return Se}catch{}return oe}function Qa(){const O={};return H.cancellationToken.trim()||(O.cancellationToken="Required â paste the confirmation code from your signup email"),H.volunteerFirstName.trim()||(O.volunteerFirstName="Required"),H.volunteerLastName.trim()||(O.volunteerLastName="Required"),H.serviceDate||(O.serviceDate="Required"),(!H.hours||Number(H.hours)<1)&&(O.hours="At least 1 hour required"),V(O),Object.keys(O).length===0}async function Rr(O){if(O.preventDefault(),!(!Qa()||!i)){le(!0);try{const oe=await be("/api/volunteer/hours",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cancellationToken:nr(H.cancellationToken),volunteerFirstName:H.volunteerFirstName,volunteerLastName:H.volunteerLastName,projectId:i.id,serviceDate:H.serviceDate,hours:Number(H.hours),minutes:Number(H.minutes),description:H.description,supervisorName:H.supervisorName})});if(oe.status===429){V({submit:no(oe)});return}if(!oe.ok)throw new Error("Failed");try{localStorage.removeItem(ks(i.id))}catch{}wn(xe=>{const Se=new Set(xe);return Se.delete(i.id),Se}),K(!0)}catch{V({submit:"Something went wrong. Please try again."})}finally{le(!1)}}}async function rr(){if(!(!F||!i)){ne(!0),se("");try{const O=await be("/api/storage/uploads/request-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:F.name,size:F.size,contentType:F.type})});if(!O.ok)throw new Error("upload-url");const{uploadURL:oe,objectPath:xe}=await O.json();await fetch(oe,{method:"PUT",body:F,headers:{"Content-Type":F.type}}),await be("/api/volunteer/workday-photo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectId:i.id,serviceDate:H.serviceDate||new Date().toISOString().split("T")[0],objectPath:xe,caption:ie.trim()||void 0,volunteerName:H.volunteerFirstName?`${H.volunteerFirstName} ${H.volunteerLastName}`.trim():void 0,mood:ye||void 0,moodNote:G.trim()||void 0})}),fe("done")}catch{se("Couldn't upload the photo. Try again or skip.")}finally{ne(!1)}}}async function gc(O){if(O.preventDefault(),!!We.trim()){eo(!0),tr(""),vn(null);try{const oe=nr(We),xe=await be(`/api/volunteer/lookup?token=${encodeURIComponent(oe)}`),Se=hb(xe.status);if(Se){tr(Se);return}const bt=await xe.json();vn(bt.data)}catch{tr(hb(500))}finally{eo(!1)}}}const ze=f,Ze=(O,oe)=>h(xe=>({...xe,[O]:oe})),Wt=H,It=(O,oe)=>P(xe=>({...xe,[O]:oe}));return t.jsxs("div",{className:"min-h-screen bg-background",children:[t.jsx(Be,{title:"Volunteer",description:"Sign up to volunteer with Hui o HoÊ»ohonua in Ê»Ewa Moku. Join a community workday at Kapapapuhi, Waipahu LoÊ»i, Pearl Harbor, HÄlawa Landing, or Adopt a Plot."}),t.jsx("div",{className:"relative py-16 text-white",style:{background:"hsl(142 48% 32%)"},children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[t.jsx("p",{className:"text-sm font-medium uppercase tracking-widest text-white/70 mb-2",children:"Join Our Ê»Ohana"}),t.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold mb-4",children:"Volunteer"}),t.jsx("p",{className:"text-lg text-white/80 max-w-2xl mx-auto",children:"Choose a program below to sign up, complete the required liability waiver, and start logging your community service hours."})]})}),t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsx("div",{className:"flex justify-end mb-8",children:t.jsxs("button",{onClick:()=>s("tracker"),className:"flex items-center gap-2 px-4 py-2.5 border border-border rounded-lg text-sm font-medium hover:bg-muted transition-colors",children:[t.jsx(Rg,{className:"w-4 h-4"}),"Look Up My Hours"]})}),t.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:Ol.map(O=>t.jsxs("div",{className:"bg-white rounded-2xl border border-border shadow-sm overflow-hidden hover:shadow-md transition-shadow",children:[t.jsxs("div",{className:"px-6 py-5 text-white flex items-start gap-4",style:{background:O.color},children:[t.jsx("div",{className:"mt-0.5 opacity-90",children:O.icon}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-white/70 mb-0.5",children:O.subtitle}),t.jsx("h2",{className:"text-xl font-serif font-bold",children:O.title})]})]}),t.jsxs("div",{className:"px-6 py-5 space-y-4",children:[t.jsxs("div",{className:"flex flex-wrap gap-x-5 gap-y-2 text-sm text-muted-foreground",children:[t.jsxs("span",{className:"flex items-center gap-1.5",children:[t.jsx(Sa,{className:"w-3.5 h-3.5 flex-shrink-0"}),O.location]}),t.jsxs("span",{className:"flex items-center gap-1.5",children:[t.jsx(Xt,{className:"w-3.5 h-3.5 flex-shrink-0"}),O.schedule]})]}
27),t.jsx("p",{className:"text-sm text-foreground/80 leading-relaxed",children:O.description}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground mb-1.5",children:"What to Bring"}),t.jsx("ul",{className:"space-y-0.5",children:O.whatToBring.map(oe=>t.jsxs("li",{className:"flex items-center gap-2 text-sm text-foreground/70",children:[t.jsx(zt,{className:"w-3.5 h-3.5 flex-shrink-0 text-primary"}),oe]},oe))})]}),t.jsxs("div",{children:[t.jsxs("p",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground mb-2 flex items-center gap-1.5",children:[t.jsx(ka,{className:"w-3.5 h-3.5"}),"Upcoming Workdays"]}),O.flexible?t.jsx("p",{className:"text-sm text-muted-foreground italic",children:O.id==="general"?"Sign up to stay connected â if you have any questions, just reach out and a staff member is happy to help.":"Schedule is flexible â sign up and a staff member will reach out to coordinate your schedule."}):t.jsx("div",{className:"space-y-1.5",children:Xm(O.id).map(({dateStr:oe,label:xe})=>{const Se=to.find(bt=>bt.projectId===O.id&&bt.workdayDate===oe);return Se?t.jsxs("div",{className:"w-full px-3 py-2 rounded-lg border border-red-200 bg-red-50",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(At,{className:"w-3.5 h-3.5 shrink-0 text-red-600"}),t.jsx("span",{className:"text-sm font-medium text-foreground/50 line-through",children:xe}),t.jsx("span",{className:"ml-auto text-xs font-semibold text-red-700 bg-red-100 px-1.5 py-0.5 rounded shrink-0",children:"Cancelled"})]}),Se.reason&&t.jsx("p",{className:"text-xs text-red-600 mt-1 ml-5",children:Se.reason})]},oe):t.jsxs("button",{onClick:()=>Ct(O,oe),className:"w-full flex items-center justify-between px-3 py-2 rounded-lg border border-border hover:border-primary/40 hover:bg-primary/5 transition-colors text-left group",children:[t.jsx("span",{className:"text-sm font-medium text-foreground",children:xe}),t.jsxs("span",{className:"text-xs text-primary font-medium opacity-0 group-hover:opacity-100 transition-opacity flex items-center gap-1",children:["Sign Up ",t.jsx(Ul,{className:"w-3.5 h-3.5"})]})]},oe)})})]}),t.jsxs("div",{className:"flex gap-3 pt-1 flex-wrap",children:[t.jsxs("button",{onClick:()=>Ct(O),className:"flex-1 flex items-center justify-center gap-2 px-4 py-2.5 text-white text-sm font-medium rounded-lg hover:opacity-90 transition-opacity",style:{background:O.color},children:[t.jsx(Hg,{className:"w-4 h-4"}),"Sign Up & Waiver"]}),O.id==="general"||O.id==="pearl-harbor-aviation"||O.id==="halawa-landing"?t.jsxs("a",{href:O.id==="general"?"/volunteer/general-flyer":O.id==="pearl-harbor-aviation"?"/volunteer/pham-flyer":"/volunteer/halawa-flyer",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2.5 border border-border text-sm font-medium rounded-lg hover:bg-muted transition-colors",children:[t.jsx(Yi,{className:"w-4 h-4"}),"Print Flyer"]}):t.jsxs("button",{onClick:()=>La(O),className:"relative flex items-center gap-2 px-4 py-2.5 border text-sm font-medium rounded-lg hover:bg-muted transition-colors",style:ao.has(O.id)?{borderColor:"hsl(38 92% 50%)",color:"hsl(32 95% 35%)",background:"hsl(48 96% 96%)"}:{},children:[t.jsx(Xt,{className:"w-4 h-4"}),"Log Hours",ao.has(O.id)&&t.jsxs("span",{className:"flex items-center gap-1 ml-0.5 text-xs font-semibold",style:{color:"hsl(32 95% 35%)"},children:[t.jsx(At,{className:"w-3.5 h-3.5"}),"Draft"]})]}),p[O.id]&&t.jsxs("a",{href:p[O.id],target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2.5 border border-border text-sm font-medium rounded-lg hover:bg-muted transition-colors",children:[t.jsx(Vi,{className:"w-4 h-4"}),"Photos"]})]})]})]},O.id))}),t.jsx("div",{className:"mt-12 grid sm:grid-cols-3 gap-4 text-center",children:[{label:"Sign Up & Waiver",desc:"Select a program and complete the volunteer registration form with embedded liability waiver.",step:"1"},{label:"Show Up & Serve",desc:"Attend your selected project's workday. Wear your layers and bring aloha!",step:"2"},{label:"Log Your Hours",desc:"After each session, click 'Log Hours' to record your community service time.",step:"3"}].map(({label:O,desc:oe,step:xe})=>t.jsxs("div",{className:"bg-primary/5 border border-primary/15 rounded-xl p-5",children:[t.jsx("div",{className:"w-9 h-9 rounded-full bg-primary text-white text-sm font-bold flex items-center justify-center mx-auto mb-3",children:xe}),t.jsx("h3",{className:"font-semibold text-sm mb-1",children:O}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:oe})]},xe))})]}),n&&t.jsx("div",{className:"fixed inset-0 bg-black/50 z-50 flex items-start justify-center p-4 overflow-y-auto",onClick:nt,children:t.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl w-full max-w-2xl my-8",onClick:O=>O.stopPropagation(),children:[n==="signup"&&i&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"px-6 py-5 text-white rounded-t-2xl flex items-start justify-between",style:{background:i.color},children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-white/70 mb-0.5",children:"Volunteer Registration"}),t.jsx("h2",{className:"text-xl font-serif font-bold",children:i.title})]}),t.jsx("button",{onClick:nt,className:"p-1 rounded-full hover:bg-white/20 transition-colors",children:t.jsx(Jt,{className:"w-5 h-5"})})]}),v?t.jsxs("div",{className:"px-6 py-8",children:[t.jsxs("div",{className:"text-center mb-6",children:[t.jsx(zt,{className:"w-14 h-14 text-primary mx-auto mb-4"}),t.jsx("h3",{className:"font-serif text-2xl font-bold mb-2",children:"Check Your Email"}),t.jsx("p",{className:"text-muted-foreground max-w-sm mx-auto",children:f.email?t.jsxs(t.Fragment,{children:["A confirmation has been sent to ",t.jsx("strong",{children:f.email}),". Click the verification link in that email to activate your registration."]}):t.jsxs(t.Fragment,{children:["Welcome to ",i.title,"! We'll be in touch before the next workday."]})})]}),t.jsxs("div",{className:"rounded-xl border border-primary/20 bg-primary/5 overflow-hidden mb-6",children:[t.jsxs("div",{className:"px-4 py-3 border-b border-primary/15 flex items-center gap-2",children:[t.jsx(xn,{className:"w-4 h-4 text-primary flex-shrink-0"}),t.jsx("h4",{className:"text-sm font-semibold text-primary",children:"Your Registration Details"})]}),t.jsxs("div",{className:"px-4 py-4 space-y-3 text-sm",children:[t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx("span",{style:{color:i.color},className:"mt-0.5 flex-shrink-0",children:i.icon}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-foreground",children:i.title}),t.jsx("p",{className:"text-muted-foreground text-xs",children:i.subtitle})]})]}),!Ma&&f.eventDate&&t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx(ka,{className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-0.5",children:"Date"}),t.jsx("p",{className:"text-foreground",children:fb(f.eventDate)})]})]}),t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx(Sa,{className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-0.5",children:"Location"}),t.jsx("p",{className:"text-foreground whitespace-pre-line",children:Ma?"A staff member will reach out to coordinate your schedule.":i.locationDetail??i.location}),!Ma&&i.mapsUrl&&t.jsxs("a",{href:i.mapsUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 mt-1.5 text-xs font-medium text-primary hover:underline",children:[t.jsx(Sa,{className:"w-3 h-3 flex-shrink-0"}),"Get directions â"]})]})]}),t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx(Xt,{className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-0.5",children:"Schedule"}),t.jsx("p",{className:"text-foreground",children:i.schedule})]})]}),t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx(Pg,{className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-1",children:"What to Bring"}),t.jsx("ul",{className:"space-y-0.5",children:i.whatToBring.map(O=>t.jsxs("li",{className:"flex items-center gap-2 text-foreground",children:[t.jsx(zt,{className:"w-3.5 h-3.5 flex-shrink-0 text-primary"}),O]},O))})]})]})]})]}),!Ma&&f.eventDate&&i&&(()=>{const O=`HOH Workday â ${i.title}`,oe=i.locationDetail??i.location,xe=`Join Hui o HoÊ»ohonua for ${i.title} (${i.subtitle}). 28 29${i.schedule} 30 31${oe}${i.mapsUrl?` 32 33Directions: ${i.mapsUrl}`:""} 34 35Questions? [email protected]`,Se=vM({title:O,location:oe,date:f.eventDate,startHour:i.startHour,endHour:i.endHour,description:xe}),bt=wM({title:O,location:oe,date:f.eventDate,startHour:i.startHour,endHour:i.endHour,description:xe});return t.jsxs("div",{className:"rounded-xl border border-primary/20 bg-primary/5 overflow-hidden mb-6",children:[t.jsxs("div",{className:"px-4 py-3 border-b border-primary/15 flex items-center gap-2",children:[t.jsx(Cg,{className:"w-4 h-4 text-primary flex-shrink-0"}),t.jsx("h4",{className:"text-sm font-semibold text-primary",children:"Save the Date"})]}),t.jsxs("div",{className:"px-4 py-4 flex flex-col sm:flex-row sm:flex-wrap gap-3",children:[t.jsxs("a",{href:Se,target:"_blank",rel:"noopener noreferrer",className:"flex-1 flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg border border-primary/30 bg-white text-primary text-sm font-medium hover:bg-primary/5 transition-colors",children:[t.jsx(Cg,{className:"w-4 h-4 flex-shrink-0"}),"Google Calendar"]}),t.jsxs("a",{href:bt,download:"workday.ics",className:"flex-1 flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg border border-primary/30 bg-white text-primary text-sm font-medium hover:bg-primary/5 transition-colors",children:[t.jsx(ka,{className:"w-4 h-4 flex-shrink-0"}),"Apple / Outlook"]}),t.jsxs("a",{href:bt,download:"workday.ics",className:"flex-1 flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg border border-primary/30 bg-white text-primary text-sm font-medium hover:bg-primary/5 transition-colors",children:[t.jsx(pn,{className:"w-4 h-4 flex-shrink-0"}),"Download .ics"]})]}),t.jsx("p",{className:"px-4 pb-3 text-xs text-muted-foreground",children:"Apple / Outlook and Download .ics both save the same event file â use whichever your device opens automatically."})]})})(),t.jsx("div",{className:"text-center",children:t.jsx("button",{onClick:nt,className:"px-6 py-2.5 bg-primary text-white rounded-lg text-sm font-medium hover:bg-primary/90 transition-colors",children:"Done"})})]}):t.jsxs("form",{onSubmit:Pr,className:"px-6 py-6 space-y-6",children:[Ae&&t.jsxs("div",{className:"flex items-center gap-3 -mx-6 -mt-6 mb-0 px-4 py-3 bg-amber-50 border-b border-amber-200 text-sm",children:[t.jsx(At,{className:"w-4 h-4 text-amber-600 flex-shrink-0"}),t.jsx("span",{className:"flex-1 text-amber-800",children:"We restored your last draft â review before submitting."}),t.jsx("button",{type:"button",onClick:()=>
35{if(i)try{localStorage.removeItem(Rl(i.id))}catch{}const O={...Dl,...gt};h(De?{...O,eventDate:De}:O),we(!1)},className:"text-amber-700 underline underline-offset-2 hover:text-amber-900 font-medium flex-shrink-0",children:"Start fresh"})]}),t.jsxs("section",{children:[t.jsx("h3",{className:"text-sm font-semibold uppercase tracking-wide text-muted-foreground mb-3",children:"Event & Registration"}),t.jsxs("div",{className:"grid sm:grid-cols-2 gap-3",children:[!Ma&&t.jsxs(et,{label:"Date of Volunteer Event *",error:x.eventDate,className:"sm:col-span-2",children:[t.jsx("input",{type:"date",className:at(!!x.eventDate),value:ze.eventDate,onChange:O=>Ze("eventDate",O.target.value)}),(()=>{const O=i&&ze.eventDate&&!x.eventDate?Zu(i.id,ze.eventDate):null;return O?t.jsxs("div",{className:"text-xs text-amber-700 bg-amber-50 border border-amber-200 rounded-md px-2.5 py-2 mt-1.5 space-y-0.5",children:[t.jsxs("p",{className:"flex items-start gap-1.5",children:[t.jsx(At,{className:"w-3.5 h-3.5 flex-shrink-0 mt-px"}),O]}),!ze.comments.trim()&&t.jsxs("p",{className:"pl-5",children:["Requesting a different day? Explain in the ",t.jsx("strong",{children:"Comments"})," box below and staff will follow up."]})]}):null})()]}),d.length>0&&t.jsx(et,{label:"Project",className:"sm:col-span-2",children:t.jsxs("select",{className:at(!1),value:ze.grantId,onChange:O=>Ze("grantId",O.target.value),children:[t.jsx("option",{value:"",children:"Select a project (optional)â¦"}),d.map(O=>t.jsx("option",{value:String(O.id),children:O.name},O.id))]})}),t.jsx(et,{label:"Your Name or Group Name *",error:x.groupName,className:"sm:col-span-2",children:t.jsx("input",{className:at(!!x.groupName),value:ze.groupName,onChange:O=>Ze("groupName",O.target.value),placeholder:"Your name, Ê»ohana name, club, or organization"})}),t.jsx(et,{label:"Number of People in Your Group",className:"sm:col-span-2",children:t.jsx("input",{type:"number",min:"1",className:at(!1),value:ze.groupSize,onChange:O=>Ze("groupSize",O.target.value),placeholder:"Leave blank if volunteering individually"})})]})]}),t.jsxs("section",{children:[t.jsx("h3",{className:"text-sm font-semibold uppercase tracking-wide text-muted-foreground mb-3",children:"Personal Information"}),t.jsxs("div",{className:"grid sm:grid-cols-2 gap-3",children:[t.jsx(et,{label:"First Name *",error:x.firstName,children:t.jsx("input",{className:at(!!x.firstName),value:ze.firstName,onChange:O=>Ze("firstName",O.target.value),placeholder:"First name"})}),t.jsx(et,{label:"Last Name *",error:x.lastName,children:t.jsx("input",{className:at(!!x.lastName),value:ze.lastName,onChange:O=>Ze("lastName",O.target.value),placeholder:"Last name"})}),t.jsx(et,{label:"Email Address *",error:x.email,children:t.jsx("input",{type:"email",className:at(!!x.email),value:ze.email,onChange:O=>{const oe=O.target.value;Ze("email",oe),E(!1),L.current&&clearTimeout(L.current);const xe=oe.trim();/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(xe)&&(L.current=setTimeout(()=>{be(`/api/volunteer/waiver-status?email=${encodeURIComponent(xe)}`).then(Se=>Se.ok?Se.json():null).then(Se=>{Se?.hasWaiver&&(E(!0),Ze("waiverAgreed",!0))}).catch(()=>{})},600))},placeholder:"[email protected]"})}),t.jsx(et,{label:"Phone Number",children:t.jsx("input",{type:"tel",className:at(!1),value:ze.phone,onChange:O=>Ze("phone",O.target.value),placeholder:"(808) 555-0000"})})]})]}),t.jsxs("section",{children:[t.jsxs("label",{className:"flex items-center gap-2.5 cursor-pointer mb-3",children:[t.jsx("input",{type:"checkbox",className:"w-4 h-4 rounded border-border accent-primary",checked:ze.isStudent,onChange:O=>Ze("isStudent",O.target.checked)}),t.jsx("span",{className:"text-sm font-medium",children:"I am a student earning community service hours"})]}),ze.isStudent&&t.jsxs("div",{className:"grid sm:grid-cols-2 gap-3 pl-6 border-l-2 border-primary/20",children:[t.jsx(et,{label:"School Name *",error:x.schoolName,children:t.jsx("input",{className:at(!!x.schoolName),value:ze.schoolName,onChange:O=>Ze("schoolName",O.target.value),placeholder:"School name"})}),t.jsx(et,{label:"Grade Level",children:t.jsxs("select",{className:at(!1),value:ze.gradeLevel,onChange:O=>Ze("gradeLevel",O.target.value),children:[t.jsx("option",{value:"",children:"Select gradeâ¦"}),["6th","7th","8th","9th","10th","11th","12th","College"].map(O=>t.jsx("option",{value:O,children:O},O))]})}),t.jsx(et,{label:"Teacher / Advisor Name",className:"sm:col-span-2",children:t.jsx("input",{className:at(!1),value:ze.teacherName,onChange:O=>Ze("teacherName",O.target.value),placeholder:"Teacher or advisor name"})})]})]}),t.jsxs("section",{children:[t.jsxs("label",{className:"flex items-center gap-2.5 cursor-pointer mb-3",children:[t.jsx("input",{type:"checkbox",className:"w-4 h-4 rounded border-border accent-primary",checked:ze.isMilitary,onChange:O=>Ze("isMilitary",O.target.checked)}),t.jsx("span",{className:"text-sm font-medium",children:"I am an active-duty service member tracking hours toward the MOVSM"})]}),ze.isMilitary&&t.jsxs("div",{className:"grid sm:grid-cols-2 gap-3 pl-6 border-l-2 border-primary/20",children:[t.jsxs("p",{className:"sm:col-span-2 text-xs text-muted-foreground bg-muted/50 rounded-lg px-3 py-2",children:["The Military Outstanding Volunteer Service Medal (MOVSM) recognizes sustained, direct civilian-community volunteer service. Requirements vary by branch and sometimes by command."," ",t.jsx("a",{href:"/movsm",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline underline-offset-2 whitespace-nowrap",children:"See branch-by-branch requirements â"})]}),t.jsx(et,{label:"Branch of Service *",error:x.militaryBranch,className:"sm:col-span-2",children:t.jsxs("select",{className:at(!!x.militaryBranch),value:ze.militaryBranch,onChange:O=>Ze("militaryBranch",O.target.value),children:[t.jsx("option",{value:"",children:"Select branchâ¦"}),["Navy","Marine Corps","Army","Coast Guard","Air Force","Space Force"].map(O=>t.jsx("option",{value:O,children:O},O))]})}),t.jsx(et,{label:"Unit / Command",className:"sm:col-span-2",children:t.jsx("input",{className:at(!1),value:ze.militaryUnit,onChange:O=>Ze("militaryUnit",O.target.value),placeholder:"e.g., USS Arizona Memorial, HQ USARPAC"})})]})]}),t.jsxs("section",{children:[t.jsx("h3",{className:"text-sm font-semibold uppercase tracking-wide text-muted-foreground mb-3",children:"Emergency Contact"}),t.jsxs("div",{className:"grid sm:grid-cols-2 gap-3",children:[t.jsx(et,{label:"Contact Name *",error:x.emergencyContactName,children:t.jsx("input",{className:at(!!x.emergencyContactName),value:ze.emergencyContactName,onChange:O=>Ze("emergencyContactName",O.target.value),placeholder:"Full name"})}),t.jsx(et,{label:"Contact Phone *",error:x.emergencyContactPhone,children:t.jsx("input",{type:"tel",className:at(!!x.emergencyContactPhone),value:ze.emergencyContactPhone,onChange:O=>Ze("emergencyContactPhone",O.target.value),placeholder:"(808) 555-0000"})})]})]}),t.jsx("section",{children:t.jsxs(et,{label:"Comments or Questions (optional)",children:[t.jsx("textarea",{rows:3,className:"w-full px-3 py-2 rounded-lg border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary/40 resize-none",value:ze.comments,onChange:O=>Ze("comments",O.target.value),placeholder:"Special scheduling requests, accessibility needs, questions for staff, or anything else we should knowâ¦"}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"If you'd like to volunteer on a day outside the regular schedule, explain here and a staff member will reach out to coordinate."})]})}),t.jsxs("section",{className:"rounded-xl border border-primary/20 bg-primary/5 overflow-hidden",children:[t.jsxs("div",{className:"px-4 py-3 border-b border-primary/15 flex items-center gap-2",children:[t.jsx(xn,{className:"w-4 h-4 text-primary flex-shrink-0"}),t.jsx("h3",{className:"text-sm font-semibold text-primary",children:"Your Confirmation Email Will Include"})]}),t.jsxs("div",{className:"px-4 py-4 space-y-3 text-sm",children:[t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx("span",{style:{color:i.color},className:"mt-0.5 flex-shrink-0",children:i.icon}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-foreground",children:i.title}),t.jsx("p",{className:"text-muted-foreground text-xs",children:i.subtitle})]})]}),!Ma&&ze.eventDate&&t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx(ka,{className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-0.5",children:"Date"}),t.jsx("p",{className:"text-foreground",children:fb(ze.eventDate)})]})]}),t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx(Sa,{className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-0.5",children:"Location"}),t.jsx("p",{className:"text-foreground whitespace-pre-line",children:Ma?"A staff member will reach out to coordinate your schedule.":i.locationDetail??i.location}),!Ma&&i.mapsUrl&&t.jsxs("a",{href:i.mapsUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 mt-1.5 text-xs font-medium text-primary hover:underline",children:[t.jsx(Sa,{className:"w-3 h-3 flex-shrink-0"}),"Get directions â"]})]})]}),t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx(Xt,{className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-0.5",children:"Schedule"}),t.jsx("p",{className:"text-foreground",children:i.schedule})]})]}),t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx(Pg,{className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-1",children:"What to Bring"}),t.jsx("ul",{className:"space-y-0.5",children:i.whatToBring.map(O=>t.jsxs("li",{className:"flex items-center gap-2 text-foreground",children:[t.jsx(zt,{className:"w-3.5 h-3.5 flex-shrink-0 text-primary"}),O]},O))})]})]}),t.jsxs("p",{className:"text-xs text-muted-foreground pt-1 border-t border-primary/10",children:["A copy of these details will be sent to ",ze.email||"
35your email address"," after you submit."]})]})]}),t.jsxs("section",{className:"bg-muted/40 rounded-xl p-4 border border-border",children:[t.jsxs("h3",{className:"text-sm font-semibold uppercase tracking-wide text-foreground mb-3 flex items-center gap-2",children:[t.jsx(Hg,{className:"w-4 h-4 text-primary"}),"Volunteer Liability Waiver & Release"]}),A?t.jsxs("div",{className:"flex items-start gap-3 bg-primary/8 border border-primary/20 rounded-lg p-3",children:[t.jsx(zt,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Your existing HOH waiver covers this program."}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Because you've already signed the liability waiver with Hui o HoÊ»ohonua, you don't need to sign it again to join another program."})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"h-48 overflow-y-auto text-xs text-foreground/70 leading-relaxed space-y-3 pr-1 mb-3",children:[t.jsx("p",{children:t.jsx("strong",{children:"HUI O HOÊ»OHONUA â VOLUNTEER WAIVER, RELEASE OF LIABILITY, AND ASSUMPTION OF RISK"})}),t.jsx("p",{children:'In consideration of being permitted to participate in volunteer activities organized by Hui o HoÊ»ohonua (hereinafter "HOH"), a 501(c)(3) nonprofit organization, I, the undersigned, hereby acknowledge and agree to the following:'}),t.jsxs("p",{children:[t.jsx("strong",{children:"1. Nature of Activities."})," Volunteer activities may include, but are not limited to: outdoor environmental restoration, native plant planting and removal of invasive species, traditional Hawaiian farming (loÊ»i kalo), coastal cleanup, educational programming, and community outreach. These activities take place in outdoor environments and may involve physical exertion, use of hand tools, exposure to sun and weather, uneven terrain, and other conditions inherent to outdoor work."]}),t.jsxs("p",{children:[t.jsx("strong",{children:"2. Assumption of Risk."})," I understand and acknowledge that participation in volunteer activities involves inherent risks, including but not limited to: injury from hand tools, slips and falls on uneven terrain, sunburn, dehydration, insect bites, exposure to plants that may cause allergic reactions, and other hazards associated with outdoor environmental work. I voluntarily and knowingly assume all such risks, both known and unknown."]}),t.jsxs("p",{children:[t.jsx("strong",{children:"3. Release of Liability."})," In consideration of being permitted to participate in HOH volunteer activities, I, on behalf of myself, my heirs, personal representatives, and assigns, hereby release, discharge, and hold harmless Hui o HoÊ»ohonua, its officers, directors, employees, volunteers, and agents from and against any and all claims, damages, losses, costs, and expenses, including reasonable attorney's fees, arising out of or related to my participation in volunteer activities, including claims arising from ordinary negligence. This release does not apply to gross negligence or intentional misconduct."]}),t.jsxs("p",{children:[t.jsx("strong",{children:"4. Medical Authorization."})," In the event of an emergency, I authorize HOH staff to seek medical attention on my behalf. I understand that I am responsible for any medical costs incurred."]}),t.jsxs("p",{children:[t.jsx("strong",{children:"5. Media Release."})," I grant HOH permission to use photographs or video taken during volunteer activities for promotional and educational purposes, without compensation."]}),t.jsxs("p",{children:[t.jsx("strong",{children:"6. Minor Participants."})," If the volunteer is under 18 years of age, this waiver must be reviewed and agreed to by a parent or legal guardian on their behalf."]}),t.jsxs("p",{children:[t.jsx("strong",{children:"7. Governing Law."})," This agreement shall be governed by the laws of the State of HawaiÊ»i."]}),t.jsx("p",{children:"I have read this waiver carefully, understand its terms, and agree to be bound by it."})]}),t.jsxs("label",{className:"flex items-center gap-2.5 cursor-pointer mb-3",children:[t.jsx("input",{type:"checkbox",className:"w-4 h-4 rounded border-border accent-primary",checked:ze.isMinor,onChange:O=>Ze("isMinor",O.target.checked)}),t.jsx("span",{className:"text-sm font-medium",children:"My child is under 18 years of age â I am signing this waiver on their behalf"})]}),ze.isMinor&&t.jsx(et,{label:"Parent / Guardian Legal Name *",error:x.guardianName,className:"mb-3 pl-6",children:t.jsx("input",{className:at(!!x.guardianName),value:ze.guardianName,onChange:O=>Ze("guardianName",O.target.value),placeholder:"Legal first and last name"})}),t.jsxs("label",{className:`flex items-start gap-2.5 cursor-pointer ${x.waiverAgreed?"text-red-600":""}`,children:[t.jsx("input",{type:"checkbox",className:"w-4 h-4 mt-0.5 rounded border-border accent-primary flex-shrink-0",checked:ze.
35waiverAgreed,onChange:O=>Ze("waiverAgreed",O.target.checked)}),t.jsxs("span",{className:"text-sm font-medium",children:["I agree to this waiver.",ze.isMinor&&" By checking this, I am signing on behalf of my child as their parent or legal guardian."]})]}),x.waiverAgreed&&t.jsxs("p",{className:"text-xs text-red-600 mt-1 flex items-center gap-1",children:[t.jsx(At,{className:"w-3 h-3"}),x.waiverAgreed]})]})]}),x.submit&&t.jsxs("p",{className:"text-sm text-red-600 flex items-center gap-2",children:[t.jsx(At,{className:"w-4 h-4"}),x.submit]}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx("button",{type:"button",onClick:nt,className:"flex-1 px-4 py-2.5 border border-border text-sm font-medium rounded-lg hover:bg-muted transition-colors",children:"Cancel"}),t.jsxs("button",{type:"submit",disabled:k,className:"flex-1 flex items-center justify-center gap-2 px-4 py-2.5 text-white text-sm font-medium rounded-lg hover:opacity-90 transition-opacity disabled:opacity-60",style:{background:i.color},children:[k?"Submittingâ¦":"Submit & Sign Waiver",!k&&t.jsx(Ul,{className:"w-4 h-4"})]})]})]})]}),n==="logHours"&&i&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"px-6 py-5 text-white rounded-t-2xl flex items-start justify-between",style:{background:i.color},children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-white/70 mb-0.5",children:"Log Community Service Hours"}),t.jsx("h2",{className:"text-xl font-serif font-bold",children:i.title})]}),t.jsx("button",{onClick:nt,className:"p-1 rounded-full hover:bg-white/20 transition-colors",children:t.jsx(Jt,{className:"w-5 h-5"})})]}),Z?t.jsxs(t.Fragment,{children:[he==="mood"&&t.jsxs("div",{className:"px-8 py-10 text-center",children:[t.jsx("div",{className:"text-4xl mb-3",children:"â "}),t.jsx("h3",{className:"font-serif text-2xl font-bold mb-1",children:"Hours Logged!"}),t.jsx("p",{className:"text-muted-foreground text-sm mb-7",children:"How did today feel?"}),t.jsx("div",{className:"flex flex-wrap justify-center gap-3 mb-6",children:[{emoji:"ð±",label:"Growing"},{emoji:"ð",label:"Joyful"},{emoji:"ðª",label:"Energized"},{emoji:"ðº",label:"Inspired"},{emoji:"ð´",label:`Tired but 36worth it`}].map(({emoji:O,label:oe})=>t.jsxs("button",{onClick:()=>te(ye===O?null:O),className:`flex flex-col items-center gap-1 px-4 py-3 rounded-xl border-2 text-sm font-medium transition-all ${ye===O?"border-primary bg-primary/10 scale-105":"border-border hover:border-primary/50 hover:bg-muted"}`,children:[t.jsx("span",{className:"text-2xl",children:O}),t.jsx("span",{className:"text-xs whitespace-pre-line leading-tight text-center",children:oe})]},O))}),t.jsx("textarea",{className:"w-full border border-border rounded-lg px-3 py-2 text-sm resize-none focus:outline-none focus:ring-2 focus:ring-primary/30 mb-5",rows:2,placeholder:"One thing you'll remember from today⦠(optional)",value:G,onChange:O=>T(O.target.value),maxLength:300}),t.jsxs("div",{className:"flex gap-3 justify-center",children:[t.jsx("button",{onClick:()=>fe("photo"),className:"px-5 py-2.5 border border-border rounded-lg text-sm font-medium hover:bg-muted transition-colors",children:"Skip"}),t.jsx("button",{onClick:()=>fe("photo"),className:"px-5 py-2.5 bg-primary text-white rounded-lg text-sm font-medium hover:bg-primary/90 transition-colors",children:"Next â"})]})]}),he==="photo"&&t.jsxs("div",{className:"px-8 py-10",children:[t.jsxs("div",{className:"text-center mb-6",children:[t.jsx("div",{className:"text-3xl mb-2",children:"ð¸"}),t.jsx("h3",{className:"font-serif text-xl font-bold mb-1",children:"Share a moment from today?"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"Optional â approved photos appear on our website to inspire future volunteers."})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsx("div",{children:F?t.jsxs("div",{className:"relative rounded-xl overflow-hidden border border-border",children:[t.jsx("img",{src:URL.createObjectURL(F),alt:"Selected",className:"w-full max-h-48 object-cover"}),t.jsx("button",{onClick:()=>B(null),className:"absolute top-2 right-2 bg-black/60 text-white rounded-full p-1 hover:bg-black/80 transition-colors",children:t.jsx(Jt,{className:"w-3.5 h-3.5"})})]}):t.jsxs("label",{className:"flex flex-col items-center gap-2 border-2 border-dashed border-border rounded-xl py-8 px-4 cursor-pointer hover:border-primary/50 hover:bg-muted/30 transition-all",children:[t.jsx(Vi,{className:"w-8 h-8 text-muted-foreground"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:"Tap to choose a photo"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"JPG, PNG, HEIC â max 10 MB"}),t.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:O=>{const oe=O.target.files?.[0];oe&&oe.size<=10*1024*1024?(B(oe),se("")):oe&&se("Photo must be under 10 MB.")}})]})}),F&&t.jsx("textarea",{className:"w-full border border-border rounded-lg px-3 py-2 text-sm resize-none focus:outline-none focus:ring-2 focus:ring-primary/30",rows:2,placeholder:"Describe what you're seeing⦠(optional)",value:ie,onChange:O=>M(O.target.value),maxLength:500}),ae&&t.jsxs("p",{className:"text-sm text-red-600 flex items-center gap-2",children:[t.jsx(At,{className:"w-4 h-4 flex-shrink-0"})," ",ae]})]}),t.jsxs("div",{className:"flex gap-3 mt-6",children:[t.jsx("button",{onClick:()=>fe("done"),className:"flex-1 px-4 py-2.5 border border-border rounded-lg text-sm font-medium hover:bg-muted transition-colors",children:"Skip"}),t.jsx("button",{onClick:rr,disabled:!F||Y,className:"flex-1 px-4 py-2.5 bg-primary text-white rounded-lg text-sm font-medium hover:bg-primary/90 transition-colors disabled:opacity-50",children:Y?"Uploadingâ¦":"Share Photo"})]})]}),he==="done"&&t.jsxs("div",{className:"px-8 py-12 text-center",children:[t.jsx(zt,{className:"w-14 h-14 text-primary mx-auto mb-4"}),t.jsx("h3",{className:"font-serif text-2xl font-bold mb-2",children:"Mahalo!"}),t.jsx("p",{className:"text-muted-foreground mb-6 max-w-sm mx-auto",children:'Your hours are recorded. Use "Look Up My Hours" anytime to view and print your full service record.'}),t.jsxs("div",{className:"flex gap-3 justify-center",children:[t.jsx("button",{onClick:nt,className:"px-6 py-2.5 border border-border rounded-lg text-sm font-medium hover:bg-muted transition-colors",children:"Done"}),t.jsx("button",{onClick:()=>{nt(),setTimeout(()=>s("tracker"),100)},className:"px-6 py-2.5 bg-primary text-white rounded-lg text-sm font-medium hover:bg-primary/90 transition-colors",children:"View My Record"})]})]})]}):t.jsxs("form",{onSubmit:Rr,className:"px-6 py-6 space-y-4",children:[z&&t.jsxs("div",{className:"flex items-center gap-3 -mx-6 -mt-6 mb-0 px-4 py-3 bg-amber-50 border-b border-amber-200 text-sm",children:[t.jsx(At,{className:"w-4 h-4 text-amber-600 flex-shrink-0"}),t.jsx("span",{className:"flex-1 text-amber-800",children:"We restored your last draft â review before submitting."}),t.jsx("button",{type:"button",onClick:()=>
36{if(i)try{localStorage.removeItem(ks(i.id))}catch{}P(Pl),Ne(!1)},className:"text-amber-700 underline underline-offset-2 hover:text-amber-900 font-medium flex-shrink-0",children:"Start fresh"})]}),t.jsxs(et,{label:"Confirmation Code *",error:q.cancellationToken,className:"",children:[t.jsx("input",{className:at(!!q.cancellationToken),value:Wt.cancellationToken,onChange:O=>It("cancellationToken",O.target.value),placeholder:"Paste the code or link from your signup email"}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Find this in the confirmation email you received after signing up."})]}),t.jsxs("div",{className:"grid sm:grid-cols-2 gap-3",children:[t.jsx(et,{label:"First Name *",error:q.volunteerFirstName,children:t.jsx("input",{className:at(!!q.volunteerFirstName),value:Wt.volunteerFirstName,onChange:O=>It("volunteerFirstName",O.target.value),placeholder:"First name"})}),t.jsx(et,{label:"Last Name *",error:q.volunteerLastName,children:t.jsx("input",{className:at(!!q.volunteerLastName),value:Wt.volunteerLastName,onChange:O=>It("volunteerLastName",O.target.value),placeholder:"Last name"})}),t.jsxs(et,{label:"Date of Service *",error:q.serviceDate,children:[t.jsx("input",{type:"date",className:at(!!q.serviceDate),value:Wt.serviceDate,onChange:O=>It("serviceDate",O.target.value),max:new Date().toISOString().split("T")[0]}),(()=>{const O=i&&Wt.serviceDate&&!q.serviceDate?Zu(i.id,Wt.serviceDate):null;return O?t.jsxs("p",{className:"text-xs text-amber-700 bg-amber-50 border border-amber-200 rounded-md px-2.5 py-2 mt-1.5 flex items-start gap-1.5",children:[t.jsx(At,{className:"w-3.5 h-3.5 flex-shrink-0 mt-px"}),O]}):null})()]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(et,{label:"Hours *",error:q.hours,className:"flex-1",children:t.jsx("input",{type:"number",min:"1",max:"24",className:at(!!q.hours),value:Wt.hours,onChange:O=>It("hours",O.target.value),placeholder:"0"})}),t.jsx(et,{label:"Minutes",className:"w-24",children:t.jsx("select",{className:at(!1),value:Wt.minutes,onChange:O=>It("minutes",O.target.value),children:[0,15,30,45].map(O=>t.jsx("option",{value:O,children:O},O))})})]}),t.jsx(et,{label:"Description of Work",className:"sm:col-span-2",children:t.jsx("textarea",{className:`${at(!1)} resize-none`,rows:2,value:Wt.description,onChange:O=>It("description",O.target.value),placeholder:"What did you work on today?"})}),t.jsx(et,{label:"Supervisor / Staff Name",className:"sm:col-span-2",children:t.jsx("input",{className:at(!1),value:Wt.supervisorName,onChange:O=>It("supervisorName",O.target.value),placeholder:"HOH staff or supervisor who can verify"})})]}),q.submit&&t.jsxs("p",{className:"text-sm text-red-600 flex items-center gap-2",children:[t.jsx(At,{className:"w-4 h-4"})," ",q.submit]}),t.jsxs("div",{className:"flex gap-3 pt-1",children:[t.jsx("button",{type:"button",onClick:nt,className:"flex-1 px-4 py-2.5 border border-border text-sm font-medium rounded-lg hover:bg-muted transition-colors",children:"Cancel"}),t.jsxs("button",{type:"submit",disabled:re,className:"flex-1 flex items-center justify-center gap-2 px-4 py-2.5 text-white text-sm font-medium rounded-lg hover:opacity-90 transition-opacity disabled:opacity-60",style:{background:i.color},children:[re?"Savingâ¦":"Save Hours",!re&&t.jsx(Xt,{className:"w-4 h-4"})]})]})]})]}),n==="tracker"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"px-6 py-5 text-white rounded-t-2xl flex items-start justify-between",style:{background:"hsl(142 48% 32%)"},children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-white/70 mb-0.5",children:"Community Service Record"}),t.jsx("h2",{className:"text-xl font-serif font-bold",children:"My Volunteer Hours"})]}),t.jsx("button",{onClick:nt,className:"p-1 rounded-full hover:bg-white/20 transition-colors",children:t.jsx(Jt,{className:"w-5 h-5"})})]}),t.jsxs("div",{className:"px-6 py-6",children:[t.jsx("p",{className:"text-xs text-muted-foreground mb-3 leading-relaxed",children:"Paste the confirmation code or the full cancellation link from your signup confirmation email."}),t.jsxs("form",{onSubmit:gc,className:"flex gap-2 mb-6",children:[t.jsx("input",{type:"text",className:"flex-1 px-3 py-2.5 rounded-lg border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary/40",placeholder:"Paste your confirmation code or link",value:We,onChange:O=>qt(O.target.value)}),t.jsxs("button",{type:"submit",disabled:ar,className:"px-4 py-2.5 bg-primary text-white text-sm font-medium rounded-lg hover:bg-primary/90 transition-colors disabled:opacity-60 flex items-center gap-2",children:[t.jsx(Rg,{className:"w-4 h-4"}),ar?"Searchingâ¦":"Look Up"]})]}),zs&&t.jsxs("p",{className:"text-sm text-red-600 flex items-center gap-2 mb-4",children:[t.jsx(At,{className:"w-4 h-4"})," ",zs]}),Ye&&t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[t.jsxs("div",{className:"bg-primary/10 rounded-xl p-4 text-center",children:[t.jsxs("p",{className:"text-3xl font-bold text-primary",children:[Ye.totalHours,t.jsx("span",{className:"text-base font-normal",children:"h"}),Ye.totalMinutes>0&&t.jsxs(t.Fragment,{children:[" ",Ye.totalMinutes,t.jsx("span",{className:"text-base font-normal",children:"m"})]})]}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Total Service Hours"})]}),t.jsxs("div",{className:"bg-muted rounded-xl p-4 text-center",children:[t.jsx("p",{className:"text-3xl font-bold",children:Ye.hours.length}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Sessions Logged"})]})]}),Ye.hours.length===0?t.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:'No hours logged yet. After each volunteer session, use the "Log Hours" button on the project card.'}):t.jsx("div",{className:"overflow-hidden rounded-xl border border-border",children:t.jsxs("table",{className:"w-full text-sm",children:[t.jsx("thead",{className:"bg-muted text-xs uppercase tracking-wide text-muted-foreground",children:t.jsxs("tr",{children:[t.jsx("th",{className:"px-4 py-2.5 text-left",children:"Date"}),t.jsx("th",{className:"px-4 py-2.5 text-left",children:"Project"}),t.jsx("th",{className:"px-4 py-2.5 text-right",children:"Hours"})]})}),t.jsx("tbody",{className:"divide-y divide-border",children:Ye.hours.map(O=>t.jsxs("tr",{className:"hover:bg-muted/30",children:[t.jsx("td",{className:"px-4 py-2.5 whitespace-nowrap",children:new Date(O.serviceDate+"T12:00:00").toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),t.jsx("td",{className:"px-4 py-2.5",children:MM(O.projectId)}),t.jsxs("td",{className:"px-4 py-2.5 text-right font-medium",children:[O.hours,"h",O.minutes>0?` ${O.minutes}m`:""]})]},O.id))})]})}),Ye.hours.length>0&&t.jsxs("button",{onClick:()=>window.print(),className:"w-full flex items-center justify-center gap-2 px-4 py-2.5 border border-border text-sm font-medium rounded-lg hover:bg-muted transition-colors",children:[t.jsx(Yi,{className:"w-4 h-4"}),"Print Service Record"]})]})]})]})]})})]})}function at(n){return`w-full px-3 py-2 rounded-lg border text-sm focus:outline-none focus:ring-2 focus:ring-primary/40 ${n?"border-red-400 bg-red-50":"border-border"}`}function et({label:n,error:s,children:i,className:l=""}){return t.jsxs("div",{className:l,children:[t.jsx("label",{className:"block text-xs font-medium text-foreground
36/70 mb-1",children:n}),i,s&&t.jsxs("p",{className:"text-xs text-red-600 mt-1 flex items-center gap-1",children:[t.jsx(At,{className:"w-3 h-3"}),s]})]})}const TM=[{id:"west-loch",category:"Coastal Wetland Restoration",title:"West Loch / Kapapapuhi Point",location:"PuÊ»uloa / Pearl Harbor, OÊ»ahu",icon:NS,color:"bg-blue-50 border-blue-200",iconColor:"text-blue-600 bg-blue-100",tagColor:"bg-blue-100 text-blue-700",description:"HOH808's flagship project. Since 2017, community workdays have brought thousands of hands to West Loch and Kapapapuhi Point â removing invasives, planting natives, letting the shoreline remember what it was. Part of the culturally significant PuÊ»uloa (Pearl Harbor) corridor.",accomplishments:["3.11 acres of coastal wetland restored (GIS-verified, NFWF-reported)","Monthly community workdays every Second Saturday at Kapapapuhi Point Park","Invasive Red Mangrove removal restoring tidal exchange and stormwater flow","Native coastal and wetland species replanted in restored areas","Military volunteer groups integrated into ongoing stewardship","9-acre expansion currently in proposal phase (NFWF 2026)"],funders:["National Fish and Wildlife Foundation (NFWF)","DLNR â Division of Aquatic Resources","U.S. Fish & Wildlife Service (USFWS)","NOAA â Bays Watersheds Education and Training (BWET)"],partners:["PuÊ»uloa Strategic Partnership","City & County of Honolulu","DLNR-DAR","U.S. Military Volunteer Groups"],cta:{label:"Volunteer at Kapapapuhi",href:"/volunteer"}},{id:"ford-island",category:"Historic Trail Stewardship",title:"Ford Island Historic Trail",location:"Joint Base Pearl HarborâHickam, OÊ»ahu",icon:zm,color:"bg-green-50 border-green-200",iconColor:"text-primary bg-primary/10",tagColor:"bg-primary/10 text-primary",description:"A historically significant corridor where community shows up month after month â clearing, planting, tending. The Ford Island Trail connects Hawaiian cultural heritage with hands-on land care at one of the Pacific's most storied places. HOH provides structure; the community provides the hands.",accomplishments:["Recurring monthly workdays with defined scope and documented outcomes","Overgrowth clearing, rubbish removal, planting, and monitoring","Place-based education integrated with historic and cultural interpretation","Community and military volunteer coordination under proper authorization","Visual readiness restored along a nationally significant heritage corridor"],funders:["Partner-supported","In-kind and volunteer contributions"],partners:["Joint Base Pearl HarborâHickam (JBPHH)","Public Works oversight","Pearl Harbor Aviation Museum"],cta:{label:"Get Involved",href:"/volunteer"}},{id:"jbphh",category:"Base Beautification & Heritage Partnership",title:"JBPHH Partnership",location:"Pearl Harbor & Hickam, OÊ»ahu",icon:xm,color:"bg-amber-50 border-amber-200",iconColor:"text-accent bg-accent/10",tagColor:"bg-accent/10 text-accent",description:"HOH808 holds the door open at Joint Base Pearl HarborâHickam â organizing community stewardship in spaces that fall outside standard maintenance. The Pearl Harbor Aviation Museum is a neighbor and partner: a place where Hawaiian cultural history and national history share the same ground, tended by the same community hands.",accomplishments:["Organized volunteer workdays across both Pearl Harbor and Hickam sectors","Public Works designates areas; HOH808 manages volunteers, logistics, and documentation","Pearl Harbor Aviation Museum partnership for educational and heritage programming","Visitor-facing environments maintained to a standard reflecting their cultural significance","Reduces burden on installation systems without displacing formal authority"],funders:["In-kind and partner-supported"],partners:["Joint Base Pearl HarborâHickam (JBPHH)","Pearl Harbor Aviation Museum","Public Works Command"],cta:{label:"Become a Partner",href:"/partners"}}],CM=[{icon:Ya,title:"Community Volunteer Mobilization",description:"Monthly workdays open to all ages and skill levels. Over 20,000 community participants engaged since 2015."},{icon:Sy,title:"Place-Based Education",description:"KâCollege field programs, walk-talk stories, and university internships that walk alongside the next generation of land stewards â those the Ê»Äina is already calling."},{icon:Cy,title:"Institutional Integration",description:"HOH808 operates within authorized frameworks â government retains authority; HOH808 organizes community capacity and continuity."}];function EM(){return t.jsxs("div",{"data-testid":"programs-page",children:[t.jsx(Be,{title:"Programs",description:"Explore Hui o HoÊ»ohonua's environmental and cultural programs â
36coastal restoration, traditional taro farming, education outreach, and community stewardship in Ê»Ewa Moku."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"What We Do"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4",children:"Our Programs"}),t.jsx("p",{className:"text-white/80 text-lg leading-relaxed",children:"Three sites. One thread: showing up for the places that have always mattered â and the people who never left them."})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsx("div",{className:"max-w-5xl mx-auto px-6 space-y-16",children:TM.map(n=>{const s=n.icon;return t.jsx("div",{className:`rounded-2xl border-2 ${n.color} overflow-hidden`,"data-testid":`program-${n.id}`,children:t.jsxs("div",{className:"p-8 md:p-10",children:[t.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[t.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center flex-shrink-0 ${n.iconColor}`,children:t.jsx(s,{className:"w-6 h-6"})}),t.jsxs("div",{children:[t.jsx("span",{className:`inline-block text-xs font-semibold uppercase tracking-wider px-3 py-1 rounded-full mb-2 ${n.tagColor}`,children:n.category}),t.jsx("h2",{className:"font-serif text-2xl md:text-3xl font-bold text-foreground",children:n.title}),t.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:n.location})]})]}),t.jsx("p",{className:"text-foreground/80 leading-relaxed mb-8 text-base",children:n.description}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"font-semibold text-foreground mb-3 text-sm uppercase tracking-wide",children:"Accomplishments"}),t.jsx("ul",{className:"space-y-2",children:n.accomplishments.map((i,l)=>t.jsxs("li",{className:"flex items-start gap-2 text-sm text-foreground/70",children:[t.jsx("span",{className:"text-primary mt-0.5 flex-shrink-0",children:"â"}),i]},l))})]}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"font-semibold text-foreground mb-3 text-sm uppercase tracking-wide",children:"Funding Support"}),t.jsx("ul",{className:"space-y-1",children:n.funders.map((i,l)=>t.jsxs("li",{className:"text-sm text-foreground/70",children:["⢠",i]},l))})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-semibold text-foreground mb-3 text-sm uppercase tracking-wide",children:"Key Partners"}),t.jsx("ul",{className:"space-y-1",children:n.partners.map((i,l)=>t.jsxs("li",{className:"text-sm text-foreground/70",children:["⢠",i]},l))})]})]})]}),t.jsx("div",{className:"mt-8 pt-6 border-t border-black/10",children:t.jsxs(pe,{href:n.cta.href,className:"inline-flex items-center gap-2 px-5 py-2.5 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary/90 transition-colors",children:[n.cta.label," ",t.jsx(xt,{className:"w-4 h-4"})]})})]})},n.id)})})}),t.jsx("section",{className:"py-20 bg-muted/30",children:t.jsxs("div",{className:"max-w-5xl mx-auto px-6",children:[t.jsxs("div",{className:"text-center mb-12",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-2",children:"How We Work"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground",children:"Our Approach"})]}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:CM.map(n=>{const s=n.icon;return t.jsxs("div",{className:"bg-white rounded-xl p-8 border border-border",children:[t.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-5",children:t.jsx(s,{className:"w-6 h-6 text-primary"})}),t.jsx("h3",{className:"font-serif font-semibold text-lg mb-3",children:n.title}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:n.description})]},n.title)})})]})}),t.jsx("section",{className:"py-20 bg-primary text-white",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("h2",{className:"font-serif text-3xl font-semibold mb-4",children:"Support Our Work"}),t.jsx("p",{className:"text-white/80 leading-relaxed mb-8",children:"Hui o HoÊ»ohonua is a 501(c)(3) nonprofit. All donations are tax-deductible and go directly to program operations, field work, and community engagement."}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[t.jsx(pe,{href:"/donate",className:"px-8 py-3.5 bg-white text-primary font-semibold rounded-md hover:bg-white/90 transition-colors",children:"Donate Now"}),t.jsx(pe,{href:"/partners",className:"px-8 py-3.5 bg-white/15 border border-white/30 text-white font-medium rounded-md hover:bg-white/25 transition-colors",children:"Become a Partner"})]})]})})]})}const $l={"malama-kapapapuhi":"KÅ«kulu i loko o Kapapapuhi","waipahu-loi":"PuÊ»uhonua O Waipahu LoÊ»i","adopt-a-plot":"Adopt a Plot","education-outreach":"Education & Outreach","pearl-harbor-aviation":"PHAM Community Monthly Workday","halawa-landing":"HÄlawa Landing Community Workday",general:"General Volunteer"},Bi=Object.keys($l);function da(n){return $l[n]??n}function $n(n){return n?new Date(n).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",timeZone:"UTC"}):"â"}
36function ca(n){return n?new Date(n).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}):"â"}function hc(n,s){if(!s.length)return;const i=Object.keys(s[0]),l=[i.join(","),...s.map(g=>i.map(f=>{const h=String(g[f]??"");return`"${(/^[=+\-@|]/.test(h)?` ${h}`:h).replace(/"/g,'""')}"`}).join(","))].join(` 37`),d=new Blob([l],{type:"text/csv"}),m=URL.createObjectURL(d),p=document.createElement("a");p.href=m,p.download=n,p.click(),URL.revokeObjectURL(m)}function Jm(n){const[s,i]=w.useState(null),[l,d]=w.useState("asc");function m(g){s===g?d(f=>f==="asc"?"desc":"asc"):(i(g),d("asc"))}return{sorted:s?[...n].sort((g,f)=>{const h=String(g[s]??""),x=String(f[s]??"");return l==="asc"?h.localeCompare(x):x.localeCompare(h)}):n,sortKey:s,sortDir:l,toggleSort:m}}function Dt({col:n,label:s,sortKey:i,sortDir:l,onSort:d}){const m=i===n;return t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide cursor-pointer select-none hover:text-foreground whitespace-nowrap",onClick:()=>d(n),children:t.jsxs("span",{className:"inline-flex items-center gap-1",children:[s,m?l==="asc"?t.jsx(jy,{className:"w-3 h-3"}):t.jsx(zl,{className:"w-3 h-3"}):t.jsx(zl,{className:"w-3 h-3 opacity-30"})]})})}function pb(n){const s=He[n]?.schedulePattern??null;if(!s)return null;const i=new Date;i.setHours(0,0,0,0);for(let l=0;l<=2;l++){const d=i.getMonth()+l,m=i.getFullYear()+Math.floor(d/12),p=d%12,g=Qm(m,p,s.nth);if(g>=i)return`${g.getFullYear()}-${String(g.getMonth()+1).padStart(2,"0")}-${String(g.getDate()).padStart(2,"0")}`}return null}function HM({signup:n,token:s,onClose:i,onSent:l}){const[d,m]=w.useState(()=>pb(n.projectId)??""),[p,g]=w.useState(""),[f,h]=w.useState(!1),[x,y]=w.useState("");async function v(){if(!d){y("Next workday date is required.");return}h(!0),y("");try{const S=await be("/api/admin/thank-you",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s}`},body:JSON.stringify({signupId:n.id,nextWorkdayDate:d,note:p.trim()||null})});if(!S.ok){const k=await S.json().catch(()=>({}));y(k.error??"Failed to send. Try again.");return}l(n.id),i()}catch{y("Could not reach the server. Try again.")}finally{h(!1)}}return t.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:t.jsxs("div",{className:"bg-white rounded-2xl shadow-xl w-full max-w-md",children:[t.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border",children:[t.jsx("h2",{className:"font-serif font-semibold text-foreground",children:"Send Thank You + Reminder"}),t.jsx("button",{onClick:i,className:"text-muted-foreground hover:text-foreground transition-colors",children:t.jsx(Jt,{className:"w-5 h-5"})})]}),t.jsxs("div",{className:"p-5 space-y-4",children:[t.jsxs("div",{className:"bg-muted/40 rounded-lg px-4 py-3 text-sm space-y-0.5",children:[t.jsxs("p",{className:"font-semibold text-foreground",children:[n.firstName," ",n.lastName]}),t.jsx("p",{className:"text-muted-foreground",children:n.email}),t.jsxs("p",{className:"text-muted-foreground",children:[da(n.projectId),n.eventDate?` â attended ${$n(n.eventDate)}`:""]})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-foreground mb-1.5",children:["Next workday date ",t.jsx("span",{className:"text-red-500",children:"*"})]}),t.jsx("input",{type:"date",value:d,onChange:S=>m(S.target.value),className:"w-full border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30"}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:pb(n.projectId)?"Auto-filled from schedule â confirm before sending.":"No fixed schedule for this program â enter the date manually."})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-foreground mb-1.5",children:["Personal note ",t.jsx("span",{className:"text-muted-foreground font-normal",children:"(optional)"})]}),t.jsx("textarea",{value:p,onChange:S=>g(S.target.value),rows:3,maxLength:500,placeholder:"E.g. Your work on the Ê»akulikuli planting was incredible â mahalo for your aloha Ê»Äina!",className:"w-full border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30 resize-none"})]}),x&&t.jsx("p",{className:"text-sm text-red-600",children:x}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Sends a thank you email with next workday details, a Google Calendar link, and a .ics calendar attachment."})]}),t.jsxs("div",{className:"flex gap-2.5 px-5 pb-5",children:[t.jsx("button",{onClick:i,className:"flex-1 py-2.5 text-sm font-medium border border-border rounded-lg hover:bg-muted transition-colors",children:"Cancel"}),t.jsxs("button",{onClick:v,disabled:f||!d,className:"flex-1 flex items-center justify-center gap-2 py-2.5 bg-primary text-white text-sm font-medium rounded-lg hover:bg-primary/90 disabled:opacity-50 transition-colors",children:[t.jsx(oc,{className:"w-4 h-4"}),f?"Sendingâ¦":"Send Email"]})]})]})})}function OM({data:n,grants:s,token:i,onDeleteSignups:l}){const{sorted:d,sortKey:m,sortDir:p,toggleSort:g}=Jm(n),f=d,[h,x]=w.useState("upcoming"),[y,v]=w.useState(null),[S,k]=w.useState(new Set),[N,A]=w.useState(null),[E,L]=w.useState(!1),[H,P]=w.useState(null),[q,V]=w.useState(""),[Z,K]=w.useState(!1),[re,le]=w.useState(""),[he,fe]=w.useState(new Set),[ye,te]=w.useState(new Set),[G,T]=w.useState(new Map),[F,B]=w.useState(new Set),[ie,M]=w.useState(new Map);async function Y(z){fe(Ne=>new Set(Ne).add(z.id)),T(Ne=>{const We=new Map(Ne);return We.delete(z.id),We});try{const Ne=await be(`/api/admin/signups/${z.id}/resend-confirmation`,{method:"POST",headers:{Authorization:`Bearer ${i}`}});if(!Ne.ok){const We=await Ne.json().catch(()=>({}));T(qt=>
37new Map(qt).set(z.id,We.error??"Failed to resend. Try again."));return}te(We=>new Set(We).add(z.id))}catch{T(Ne=>new Map(Ne).set(z.id,"Could not reach the server."))}finally{fe(Ne=>{const We=new Set(Ne);return We.delete(z.id),We})}}async function ne(){if(window.confirm(`Send a MOVSM progress check email to all ${f.filter(z=>z.isMilitary&&!z.cancelledAt).length} active military volunteer(s)? 38 39Each will receive their current hours total and an offer of support letters. 40 41Note: cancelled signups are excluded.`)){L(!0),P(null),V("");try{const z=await be("/api/admin/movsm-outreach",{method:"POST",headers:{Authorization:`Bearer ${i}`}});if(!z.ok){V("Failed to send. Try again.");return}const Ne=await z.json();P({sent:Ne.sent,total:Ne.total})}catch{V("Could not reach the server.")}finally{L(!1)}}}async function ae(){const z=f.filter(Ne=>!!Ne.cancelledAt);if(z.length&&window.confirm(`Permanently delete ${z.length} cancelled signup${z.length!==1?"s":""}? This cannot be undone.`)){K(!0),le("");try{const Ne=await Promise.allSettled(z.map(Ye=>be(`/api/admin/signups/${Ye.id}`,{method:"DELETE",headers:{Authorization:`Bearer ${i}`}}))),We=z.filter((Ye,vn)=>Ne[vn].status==="fulfilled"&&Ne[vn].value.ok).map(Ye=>Ye.id),qt=z.length-We.length;We.length>0&&l(We),qt>0?le(`${qt} record${qt!==1?"s":""} could not be deleted.`):x("upcoming")}catch{le("Could not reach the server.")}finally{K(!1)}}}async function se(z){if(window.confirm(`Permanently delete the cancelled signup for ${z.firstName} ${z.lastName}? This cannot be undone.`)){B(Ne=>new Set(Ne).add(z.id)),M(Ne=>{const We=new Map(Ne);return We.delete(z.id),We});try{const Ne=await be(`/api/admin/signups/${z.id}`,{method:"DELETE",headers:{Authorization:`Bearer ${i}`}});if(!Ne.ok){const We=await Ne.json().catch(()=>({}));M(qt=>new Map(qt).set(z.id,We.error??"Failed to delete. Try again."));return}l([z.id])}catch{M(Ne=>new Map(Ne).set(z.id,"Could not reach the server."))}finally{B(Ne=>{const We=new Set(Ne);return We.delete(z.id),We})}}}const J=new Date;J.setHours(0,0,0,0);function ee(z){return z.eventDate?new Date(z.eventDate+"T00:00:00")<J:!1}const Ae=h==="cancelled"?f.filter(z=>!!z.cancelledAt):f.filter(z=>!z.cancelledAt&&(h==="past"?ee(z):!ee(z))),we=f.filter(z=>!z.cancelledAt&&!ee(z)).length,De=f.filter(z=>!z.cancelledAt&&ee(z)).length,ht=f.filter(z=>!!z.cancelledAt).length;function gt(z){return z?s.find(Ne=>Ne.id===z)?.name??`Grant #${z}`:"â"}function Tt(){hc("hoh-signups.csv",Ae.map(z=>({ID:z.id,Status:z.cancelledAt?"Cancelled":"Active","Cancelled At":z.cancelledAt?ca(z.cancelledAt):"","First Name":z.firstName,"Last Name":z.lastName,Email:z.email,Phone:z.phone??"",Program:da(z.projectId),"Project / Grant":gt(z.grantId),"Event Date":z.eventDate??"","Group Name":z.groupName??"","Group Size":z.groupSize??"",Student:z.isStudent?"Yes":"No",School:z.schoolName??"",Grade:z.gradeLevel??"",Teacher:z.teacherName??"",Minor:z.isMinor?"Yes":"No",Guardian:z.guardianName??"",MOVSM:z.isMilitary?"Yes":"No",Branch:z.militaryBranch??"","Unit / Command":z.militaryUnit??"","Emergency Contact":z.emergencyContactName,"Emergency Phone":z.emergencyContactPhone,Comments:z.comments??"","Waiver Signed":z.waiverSignedAt?ca(z.waiverSignedAt):"",Submitted:ca(z.signedAt)})))}return t.jsxs("div",{children:[y&&t.jsx(HM,{signup:y,token:i,onClose:()=>v(null),onSent:z=>k(Ne=>new Set(Ne).add(z))}),N&&t.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",onClick:()=>A(null),children:t.jsxs("div",{className:"bg-white rounded-2xl shadow-xl w-full max-w-md",onClick:z=>z.stopPropagation(),children:[t.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border",children:[t.jsx("h2",{className:"font-serif font-semibold text-foreground text-sm",children:N.name}),t.jsx("button",{onClick:()=>A(null),className:"text-muted-foreground hover:text-foreground transition-colors",children:t.jsx(Jt,{className:"w-5 h-5"})})]}),t.jsx("div",{className:"px-5 py-4",children:t.jsx("p",{className:"text-sm text-foreground/80 whitespace-pre-wrap leading-relaxed",children:N.text})})]})}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[t.jsxs("button",{onClick:()=>x("upcoming"),className:`px-3 py-1.5 text-sm font-medium rounded-lg transition-colors ${h==="upcoming"?"bg-primary text-white":"border border-border text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:["Upcoming ",t.jsxs("span",{className:"ml-1 opacity-75",children:["(",we,")"]})]}),t.jsxs("button",{onClick:()=>x("past"),className:`px-3 py-1.5 text-sm font-medium rounded-lg transition-colors ${h==="past"?"bg-primary text-white":"border border-border text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:["Past ",t.jsxs("span",{className:"ml-1 opacity-75",children:["(",De,")"]})]}),ht>0&&t.jsxs("button",{onClick:()=>x("cancelled"),className:`px-3 py-1.5 text-sm font-medium rounded-lg transition-colors ${h==="cancelled"?"bg-red-600 text-white":"border border-red-200 text-red-600 hover:bg-red-50"}`,children:["Cancelled ",t.jsxs("span",{className:"ml-1 opacity-75",children:["(",ht,")"]})]}),h==="cancelled"&&ht>0&&t.jsxs("button",{onClick:ae,disabled:Z,className:"ml-auto inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium bg-red-600 text-white rounded-lg hover:bg-red-700 disabled:opacity-50 transition-colors",children:[t.jsx(Fl,{className:"w-4 h-4"}),Z?"Deletingâ¦":`Delete all cancelled (${ht})`]})]}),re&&t.jsx("p",{className:"text-xs text-red-600 mb-2",children:re}),t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsxs("p",{className:"text-sm text-muted-foreground",children:[Ae.length," record",Ae.length!==1?"s":""]}),f.filter(z=>z.isMilitary&&!z.cancelledAt).length>0&&t.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[t.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium bg-blue-50 text-blue-700 border border-blue-200 rounded-full px-2.5 py-1",children:["ðï¸ ",f.filter(z=>z.isMilitary&&!z.cancelledAt).length," MOVSM"]}),t.jsxs("button",{onClick:ne,disabled:E,className:"inline-flex items-center gap-1.5 px-3 py-1 text-xs font-medium bg-blue-700 text-white rounded-full hover:bg-blue-800 disabled:opacity-50 transition-colors",children:[t.jsx(oc,{className:"w-3 h-3"}),E?"Sendingâ¦":"Send Progress Check"]}),H&&t.jsxs("span",{className:"text-xs text-green-700 font-medium",children:["â Sent to ",H.sent,"/",H.total]}),q&&t.jsx("span",{className:"text-xs text-red-600",children:q})]})]}),t.jsxs("button",{onClick:Tt,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium border border-border rounded-lg hover:bg-muted transition-colors",children:[t.jsx(pn,{className:"w-4 h-4"})," Export CSV"]})]}),t.jsx("div",{className:"overflow-x-auto rounded-lg border border-border",children:t.jsxs("table",{className:"w-full text-sm",children:[t.jsx("thead",{className:"bg-muted/50 border-b border-border",children:t.jsxs("tr",{children:[t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide whitespace-nowrap",children:"Action"}),t.jsx(Dt,{col:"signedAt",label:"Submitted",sortKey:m,sortDir:p,onSort:g}),t.jsx(Dt,{col:"firstName",label:"First",sortKey:m,sortDir:p,onSort:g}),t.jsx(Dt,{col:"lastName",label:"Last",sortKey:m,sortDir:p,onSort:g}),t.jsx(Dt,{col:"email",label:"Email",sortKey:m,sortDir:p,onSort:g}),t.jsx(Dt,{col:"phone",label:"Phone",sortKey:m,sortDir:p,onSort:g}),t.jsx(Dt,{col:"projectId",label:"Program",sortKey:m,sortDir:p,onSort:g}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide whitespace-nowrap",children:"Project"}),t.jsx(Dt,{col:"eventDate",label:"Event Date",sortKey:m,sortDir:p,onSort:g}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide whitespace-nowrap",children:"Group"}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide whitespace-nowrap",children:"Student"}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide whitespace-nowrap",children:"MOVSM"}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide whitespace-nowrap",children:"Emerg. Contact"}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide whitespace-nowrap",children:"Comments"}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide whitespace-nowrap",children:"Waiver"})]})}),t.jsx("tbody",{className:"divide-y divide-border",children:Ae.length===0?t.jsx("tr",{children:t.jsxs("td",{colSpan:15,className:"px-4 py-8 text-center text-muted-foreground",children:["No ",h," signups."]})}):Ae.map(z=>t.jsxs("tr",{className:`transition-colors ${z.cancelledAt?"bg-red-50/40 hover:bg-red-50/60":"hover:bg-muted/30"}`,children:[h==="cancelled"?t.jsx("td",{className:"px-3 py-2",children:t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsxs("button",{onClick:()=>se(z),disabled:F.has(z.id),className:"inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium border border-red-200 text-red-600 rounded-lg hover:bg-red-50 disabled:opacity-50 transition-colors whitespace-nowrap",children:[t.jsx(Fl,{className:"w-3.5 h-3.5"}),F.has(z.id)?"Deletingâ¦":"Delete"]}),ie.has(z.id)&&t.jsx("span",{className:"text-xs text-red-600 max-w-[140px]",children:ie.get(z.id)})]})}):t.jsx("td",{className:"px-3 py-2",children:t.jsxs("div",{className:"flex flex-col gap-1",children:[h==="past"&&(z.cancelledAt?t.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-red-600 font-medium whitespace-nowrap",children:[t.jsx(Jt,{className:"w-3.5 h-3.5"})," Cancelled"]}):S.has(z.id)?t.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-green-600 font-medium whitespace-nowrap",children:[t.jsx(Bt,{className:"w-3.5 h-3.5"})," Sent"]}):t.jsxs("button",{onClick:()=>v(z),className:"inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium bg-primary/10 text-primary rounded-lg hover:bg-primary/20 transition-colors whitespace-nowrap",children:[t.jsx(xn,{className:"w-3.5 h-3.5"}),"Thank You"]})),!z.cancelledAt&&(ye.has(z.id)?t.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-green-600 font-medium whitespace-nowrap",children:[t.jsx(Bt,{className:"w-3.5 h-3.5"})," Resent"]}):t.jsxs("button",{onClick:()=>Y(z),disabled:he.has(z.id),className:"inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium border border-border text-muted-foreground rounded-lg hover:bg-muted hover:text-foreground disabled:opacity-50 transition-colors whitespace-nowrap",children:[t.jsx(Ga,{className:"w-3.5 h-3.5"}),he.has(z.id)?"Sendingâ¦":"Resend"]})),G.has(z.id)&&t.jsx("span",{className:"text-xs text-red-600 max-w-[140px]",children:G.get(z.id)}),z.hoursCertified&&t.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-emerald-700 bg-emerald-50 border border-emerald-200 rounded-full px-1.5 py-0.5 whitespace-nowrap font-medium",children:[t.jsx(Bt,{className:"w-3 h-3"})," Attended"]})]})}),t.jsxs("td",{className:"px-3 py-2 whitespace-nowrap",children:[t.jsx("span",{className:`text-xs ${z.cancelledAt?"text-muted-foreground
41/60":"text-muted-foreground"}`,children:ca(z.signedAt)}),z.cancelledAt&&t.jsxs("span",{className:"flex items-center gap-1 mt-0.5",children:[t.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-red-600 bg-red-50 border border-red-200 rounded-full px-1.5 py-0.5 whitespace-nowrap",children:[t.jsx(Jt,{className:"w-2.5 h-2.5"})," Cancelled"]}),t.jsx("span",{className:"text-xs text-red-500/80 whitespace-nowrap",children:ca(z.cancelledAt)})]})]}),t.jsxs("td",{className:`px-3 py-2 font-medium whitespace-nowrap ${z.cancelledAt?"line-through text-muted-foreground/60":""}`,children:[z.firstName,z.isMinor&&t.jsx("span",{className:"ml-1.5 text-xs font-normal text-amber-700 bg-amber-50 border border-amber-200 rounded-full px-1.5 py-0.5",children:"Minor"})]}),t.jsx("td",{className:`px-3 py-2 whitespace-nowrap ${z.cancelledAt?"line-through text-muted-foreground/60":""}`,children:z.lastName}),t.jsx("td",{className:"px-3 py-2 text-blue-600 whitespace-nowrap",children:t.jsx("a",{href:`mailto:${z.email}`,className:z.cancelledAt?"opacity-50":"",children:z.email})}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:z.phone??"â"}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:t.jsx("span",{className:"inline-block px-2 py-0.5 rounded-full text-xs font-medium bg-primary/10 text-primary",children:da(z.projectId)})}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap text-xs text-muted-foreground",children:gt(z.grantId)}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:$n(z.eventDate)}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:z.groupName?`${z.groupName}${z.groupSize?` (${z.groupSize})`:""}`:"â"}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:z.isStudent?t.jsxs("span",{className:"text-xs",children:[z.schoolName??"Yes",z.gradeLevel?`, ${z.gradeLevel}`:""]}):"No"}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:z.isMilitary?t.jsxs("span",{className:"text-xs",children:[t.jsxs("span",{className:"inline-block px-1.5 py-0.5 rounded-full text-xs font-medium bg-blue-50 text-blue-700 border border-blue-200 whitespace-nowrap",children:["ðï¸ ",z.militaryBranch??"Military"]}),z.militaryUnit&&t.jsx("span",{className:"block text-muted-foreground mt-0.5",children:z.militaryUnit})]}):t.jsx("span",{className:"text-muted-foreground text-xs",children:"â"})}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:t.jsxs("span",{className:"text-xs",children:[z.emergencyContactName,t.jsx("br",{}),z.emergencyContactPhone]})}),t.jsx("td",{className:"px-3 py-2 max-w-[180px]",children:z.comments?t.jsx("button",{onClick:()=>A({name:`${z.firstName} ${z.lastName}`,text:z.comments}),className:"text-xs text-left text-foreground/70 line-clamp-2 hover:text-primary hover:underline underline-offset-2 transition-colors cursor-pointer",children:z.comments}):"â"}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:z.waiverAgreed?t.jsx("span",{className:"text-green-600 text-xs font-medium",children:"â Signed"}):t.jsx("span",{className:"text-red-500 text-xs",children:"Unsigned"})})]},z.id))})]})})]})}function DM({data:n,signups:s}){const{sorted:i,sortKey:l,sortDir:d,toggleSort:m}=Jm(n),p=i,g=new Map(s.filter(N=>N.isMilitary).map(N=>[N.email,N])),f=n.reduce((N,A)=>N+A.hours*60+A.minutes,0),h=Math.floor(f/60),x=f%60,y=n.filter(N=>g.has(N.volunteerEmail)).reduce((N,A)=>N+A.hours*60+A.minutes,0),v=Math.floor(y/60),S=y%60;function k(){hc("hoh-hours.csv",p.map(N=>{const A=g.get(N.volunteerEmail);return{ID:N.id,"First Name":N.volunteerFirstName,"Last Name":N.volunteerLastName,Email:N.volunteerEmail,MOVSM:A?"Yes":"No",Branch:A?.militaryBranch??"","Unit / Command":A?.militaryUnit??"",Program:da(N.projectId),"Service Date":N.serviceDate,Hours:N.hours,Minutes:N.minutes,Description:N.description??"",Supervisor:N.supervisorName??"","Logged At":ca(N.loggedAt)}}))}return t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsxs("p",{className:"text-sm text-muted-foreground",children:[n.length," record",n.length!==1?"s":""]}),t.jsxs("p",{className:"text-sm font-medium text-primary",children:["Total: ",h,"h ",x>0?`${x}m`:""]}),y>0&&t.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium bg-blue-50 text-blue-700 border border-blue-200 rounded-full px-2.5 py-1",children:["ðï¸ MOVSM: ",v,"h ",S>0?`${S}m`:""]})]}),t.jsxs("button",{onClick:k,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium border border-border rounded-lg hover:bg-muted transition-colors",children:[t.jsx(pn,{className:"w-4 h-4"})," Export CSV"]})]}),t.jsx("div",{className:"overflow-x-auto rounded-lg border border-border",children:t.jsxs("table",{className:"w-full text-sm",children:[t.jsx("thead",{className:"bg-muted/50 border-b border-border",children:t.jsxs("tr",{children:[t.jsx(Dt,{col:"serviceDate",label:"Service Date",sortKey:l,sortDir:d,onSort:m}),t.jsx(Dt,{col:"volunteerFirstName",label:"First",sortKey:l,sortDir:d,onSort:m}),t.jsx(Dt,{col:"volunteerLastName",label:"Last",sortKey:l,sortDir:d,onSort:m}),t.jsx(Dt,{col:"volunteerEmail",label:"Email",sortKey:l,sortDir:d,onSort:m}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide whitespace-nowrap",children:"MOVSM"}),t.jsx(Dt,{col:"projectId",label:"Program",sortKey:l,sortDir:d,onSort:m}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Hours"}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Description"}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide whitespace-nowrap",children:"Supervisor"})]})}),t.jsx("tbody",{className:"divide-y divide-border",children:p.length===0?t.jsx("tr",{children:t.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-muted-foreground",children:"No hours logged yet."})}):p.map(N=>{const A=g.get(N.volunteerEmail);return t.jsxs("tr",{className:"hover:bg-muted/30 transition-colors",children:[t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:$n(N.serviceDate)}),t.jsx("td",{className:"px-3 py-2 font-medium whitespace-nowrap",children:N.volunteerFirstName}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:N.volunteerLastName}),t.jsx("td",{className:"px-3 py-2 text-blue-600 whitespace-nowrap",children:t.jsx("a",{href:`mailto:${N.volunteerEmail}`,children:N.volunteerEmail})}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:A?t.jsxs("span",{className:"text-xs",children:[t.jsxs("span",{className:"inline-block px-1.5 py-0.5 rounded-full text-xs font-medium bg-blue-50 text-blue-700 border border-blue-200 whitespace-nowrap",children:["ðï¸ ",A.militaryBranch??"Military"]}),A.militaryUnit&&t.jsx("span",{className:"block text-muted-foreground mt-0.5",children:A.militaryUnit})]}):t.jsx("span",{className:"text-muted-foreground text-xs",children:"â"})}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:t.jsx("span",{className:"inline-block px-2 py-0.5 rounded-full text-xs font-medium bg-primary/10 text-primary",children:da(N.projectId)})}),t.jsxs("td",{className:"px-3 py-2 whitespace-nowrap font-medium",children:[N.hours,"h",N.minutes>0?` ${N.minutes}m`:""]}),t.jsx("td",{className:"px-3 py-2 max-w-xs truncate",children:N.description??"â"}),t.jsx("td",{className:"px-3 py-2 whitespace-nowrap",children:N.supervisorName??"â"})]},N.id)})})]})})]})}function PM({grants:n,signups:s,token:i,programSettings:l,onGrantsChanged:d,onSettingsChanged:m}){const[p,g]=w.useState(!1),[f,h]=w.useState(""),[x,y]=w.useState(""),[v,S]=w.useState(!1),[k,N]=w.useState(""),[A,E]=w.useState(null),[L,H]=w.useState(()=>Object.fromEntries(Bi.map(G=>[G,l[G]??""]))),[P,q]=w.useState(null),[V,Z]=w.useState({}),[K,re]=w.useState({});async function le(G){const T=L[G]?.trim()??"";q(G),Z(F=>({...F,[G]:""})),re(F=>({...F,[G]:!1}));try{const F=await be(`/api/admin/program-settings/${G}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:JSON.stringify({photosUrl:T||null})});if(!F.ok){const ie=await F.json().catch(()=>({}));Z(M=>({...M,[G]:ie.error??"Failed to save."}));return}const B={...l};T?B[G]=T:delete B[G],m(B),re(ie=>({...ie,[G]:!0})),setTimeout(()=>re(ie=>({...ie,[G]:!1})),3e3)}catch{Z(F=>({...F,[G]:"Could not reach the server."}))}finally{q(null)}}async function he(G){if(G.preventDefault(),!f.trim()||!x){N("Name and program are required.");return}S(!0),N("");try{const T=await be("/api/admin/grants",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:JSON.stringify({name:f.trim(),programId:x})});if(!T.ok){const B=await T.json().catch(()=>({}));N(B.error??"Failed to save.");return}const F=await T.json();d([...n,F.data]),h(""),y(""),g(!1)}catch{N("Could not reach the server.")}finally{S(!1)}}async function fe(G){E(G.id);try{const T=await be(`/api/admin/grants/${G.id}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:JSON.stringify({active:!G.active})});if(T.ok){const F=await T.json();d(n.map(B=>B.id===G.id?F.data:B))}}finally{E(null)}}
41function ye(G){const T=s.filter(B=>B.grantId===G.id);if(!T.length){alert(`No signups found for "${G.name}".`);return}const F=G.name.replace(/[^a-z0-9]/gi,"-").toLowerCase().slice(0,40);hc(`hoh-grant-${F}.csv`,T.map(B=>({ID:B.id,"First Name":B.firstName,"Last Name":B.lastName,Email:B.email,Phone:B.phone??"",Program:da(B.projectId),"Project / Grant":G.name,"Event Date":B.eventDate??"","Group Name":B.groupName??"","Group Size":B.groupSize??"",Student:B.isStudent?"Yes":"No",School:B.schoolName??"",Grade:B.gradeLevel??"",Teacher:B.teacherName??"",Guardian:B.guardianName??"","Emergency Contact":B.emergencyContactName,"Emergency Phone":B.emergencyContactPhone,Comments:B.comments??"","Waiver Signed":B.waiverSignedAt?ca(B.waiverSignedAt):"",Submitted:ca(B.signedAt)})))}const te=Bi.map(G=>({programId:G,programLabel:da(G),grants:n.filter(T=>T.programId===G)})).filter(G=>G.grants.length>0);return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("p",{className:"text-sm text-muted-foreground",children:[n.length," grant",n.length!==1?"s":""," configured"]}),t.jsxs("button",{onClick:()=>{g(G=>!G),N("")},className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors",children:[t.jsx(Z2,{className:"w-4 h-4"}),"Add Grant"]})]}),p&&t.jsxs("form",{onSubmit:he,className:"bg-muted/30 border border-border rounded-xl p-4 space-y-3",children:[t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"New Grant / Project"}),t.jsxs("div",{className:"grid sm:grid-cols-2 gap-3",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1",children:"Grant Name *"}),t.jsx("input",{value:f,onChange:G=>h(G.target.value),placeholder:"e.g. HCF Honouliuli Preserve Management Fund",className:"w-full border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",maxLength:200})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1",children:"Program *"}),t.jsxs("select",{value:x,onChange:G=>y(G.target.value),className:"w-full border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",children:[t.jsx("option",{value:"",children:"Select a programâ¦"}),Bi.map(G=>t.jsx("option",{value:G,children:da(G)},G))]})]})]}),k&&t.jsx("p",{className:"text-sm text-red-600",children:k}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx("button",{type:"button",onClick:()=>{g(!1),N(""),h(""),y("")},className:"px-3 py-1.5 text-sm font-medium border border-border rounded-lg hover:bg-muted transition-colors",children:"Cancel"}),t.jsx("button",{type:"submit",disabled:v,className:"px-3 py-1.5 text-sm font-medium bg-primary text-white rounded-lg hover:bg-primary/90 disabled:opacity-50 transition-colors",children:v?"Savingâ¦":"Save Grant"})]})]}),n.length===0?t.jsx("div",{className:"text-center py-12 text-muted-foreground text-sm",children:'No grants configured yet. Click "Add Grant" to create one.'}):t.jsx("div",{className:"space-y-6",children:te.map(({programId:G,programLabel:T,grants:F})=>t.jsxs("div",{children:[t.jsx("h3",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground mb-2",children:T}),t.jsx("div",{className:"rounded-lg border border-border overflow-hidden",children:t.jsxs("table",{className:"w-full text-sm",children:[t.jsx("thead",{className:"bg-muted/50 border-b border-border",children:t.jsxs("tr",{children:[t.jsx("th",{className:"px-4 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Grant Name"}),t.jsx("th",{className:"px-4 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Signups"}),t.jsx("th",{className:"px-4 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Status"}),t.jsx("th",{className:"px-4 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Actions"})]})}),t.jsx("tbody",{className:"divide-y divide-border",children:F.map(B=>{const ie=s.filter(M=>M.grantId===B.id).length;return t.jsxs("tr",{className:"hover:bg-muted/20 transition-colors",children:[t.jsx("td",{className:"px-4 py-3 font-medium",children:B.name}),t.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:ie}),t.jsx("td",{className:"px-4 py-3",children:t.jsx("span",{className:`inline-flex items-center gap-1 text-xs font-medium px-2 py-0.5 rounded-full ${B.active?"bg-green-100 text-green-700":"bg-muted text-muted-foreground"}`,children:B.active?"Active":"Inactive"})}),t.jsx("td",{className:"px-4 py-3",children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs("button",{onClick:()=>fe(B),disabled:A===B.id,className:"inline-flex items-center gap-1.5 px-2.5 py-1 text-xs font-medium border border-border rounded-lg hover:bg-muted transition-colors disabled:opacity-50",title:B.active?"Deactivate (hides from volunteer form)":"Activate (shows on volunteer form)",children:[B.active?t.jsx(xS,{className:"w-3.5 h-3.5 text-green-600"}):t.jsx(fS,{className:"w-3.5 h-3.5 text-muted-foreground"}),B.active?"Deactivate":"Activate"]}),t.jsxs("button",{onClick:()=>
41ye(B),className:"inline-flex items-center gap-1.5 px-2.5 py-1 text-xs font-medium border border-border rounded-lg hover:bg-muted transition-colors",children:[t.jsx(pn,{className:"w-3.5 h-3.5"}),"Export"]})]})})]},B.id)})})]})})]},G))}),t.jsxs("div",{className:"mt-8",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx(Vi,{className:"w-4 h-4 text-primary"}),t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Program Photo Links"})]}),t.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:'Paste a Google Photos shared album URL for each program. Volunteers will see a "Photos" button on the program card.'}),t.jsx("div",{className:"rounded-lg border border-border overflow-hidden",children:t.jsxs("table",{className:"w-full text-sm",children:[t.jsx("thead",{className:"bg-muted/50 border-b border-border",children:t.jsxs("tr",{children:[t.jsx("th",{className:"px-4 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Program"}),t.jsx("th",{className:"px-4 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Google Photos URL"}),t.jsx("th",{className:"px-4 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide w-24",children:"Action"})]})}),t.jsx("tbody",{className:"divide-y divide-border",children:Bi.map(G=>t.jsxs("tr",{className:"hover:bg-muted/20 transition-colors",children:[t.jsx("td",{className:"px-4 py-3 font-medium whitespace-nowrap",children:da(G)}),t.jsx("td",{className:"px-4 py-3",children:t.jsxs("div",{className:"space-y-1",children:[t.jsx("input",{type:"url",value:L[G]??"",onChange:T=>H(F=>({...F,[G]:T.target.value})),placeholder:"https://photos.app.goo.gl/â¦",className:"w-full border border-border rounded-lg px-3 py-1.5 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",maxLength:2e3}),V[G]&&t.jsx("p",{className:"text-xs text-red-600",children:V[G]}),K[G]&&t.jsx("p",{className:"text-xs text-green-600 font-medium",children:"Saved!"})]})}),t.jsx("td",{className:"px-4 py-3",children:t.jsxs("button",{onClick:()=>le(G),disabled:P===G,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-primary text-white rounded-lg hover:bg-primary/90 disabled:opacity-50 transition-colors",children:[t.jsx(Ty,{className:"w-3.5 h-3.5"}),P===G?"Savingâ¦":"Save"]})})]},G))})]})})]})]})}const xb={full_name:"Full name OK",first_name_only:"First name only",image_no_name:"Image/video, no name",internal_only:"Internal only",other:"Other"};function RM({data:n}){const{sorted:s,sortKey:i,sortDir:l,toggleSort:d}=Jm(n);function m(h){return h.signupId!==null?"Signup-linked":h.emailVerified?"Email-verified":"Unverified"}function p(){hc("media-releases.csv",n.map(h=>({ID:h.id,"Trust Level":m(h),"Signup ID":h.signupId??"","First Name":h.firstName,"Last Name":h.lastName,Email:h.email??"",Program:da(h.programId),"Event Date":h.eventDate??"","Is Minor":h.isMinor?"Yes":"No","Minor Name":h.minorName??"","Consent Preference":xb[h.consentPreference]??h.consentPreference,"Consent Note":h.consentNote??"",Signature:h.signature,"Guardian Name":h.guardianName??"","Guardian Relationship":h.guardianRelationship??"","Submitted At":ca(h.submittedAt)})))}if(!n.length)return t.jsx("div",{className:"text-center py-16 text-muted-foreground text-sm",children:"No media releases submitted yet."});const g=n.filter(h=>h.signupId===null).length,f=n.filter(h=>h.signupId===null&&!h.emailVerified).length;return t.jsxs("div",{children:[g>0&&t.jsxs("div",{className:"mb-4 flex items-start gap-2.5 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-800",children:[t.jsx("span",{className:"mt-0.5 flex-shrink-0 text-base",children:"â ï¸"}),t.jsxs("span",{children:[t.jsxs("strong",{children:[g," self-attested record",g!==1?"s":""]})," â submitted without a volunteer signup token.",f>0&&t.jsxs(t.Fragment,{children:[" ",t.jsx("strong",{children:f})," of ",g===1?"it has":"these have"," not been email-verified."]})," ","Only ",t.jsx("strong",{children:"Signup-linked"})," records bind consent to a verified volunteer identity. Treat self
41-attested records as unconfirmed until staff can verify independently."]})]}),t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsxs("p",{className:"text-sm text-muted-foreground",children:[n.length," release",n.length!==1?"s":""]}),t.jsxs("button",{onClick:p,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium border border-border rounded-lg hover:bg-muted transition-colors",children:[t.jsx(pn,{className:"w-4 h-4"}),"Export CSV"]})]}),t.jsx("div",{className:"overflow-x-auto rounded-xl border border-border bg-white",children:t.jsxs("table",{className:"w-full text-sm",children:[t.jsx("thead",{children:t.jsxs("tr",{className:"border-b border-border bg-muted/40",children:[t.jsx(Dt,{col:"lastName",label:"Name",sortKey:i,sortDir:l,onSort:d}),t.jsx(Dt,{col:"programId",label:"Program",sortKey:i,sortDir:l,onSort:d}),t.jsx(Dt,{col:"eventDate",label:"Date",sortKey:i,sortDir:l,onSort:d}),t.jsx(Dt,{col:"consentPreference",label:"Consent",sortKey:i,sortDir:l,onSort:d}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Minor?"}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Signature"}),t.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Verified"}),t.jsx(Dt,{col:"submittedAt",label:"Submitted",sortKey:i,sortDir:l,onSort:d})]})}),t.jsx("tbody",{children:s.map(h=>t.jsxs("tr",{className:`border-b border-border last:border-0 hover:bg-muted/20 transition-colors ${h.signupId===null?"bg-amber-50/30":""}`,children:[t.jsxs("td",{className:"px-3 py-2.5 whitespace-nowrap font-medium",children:[h.firstName," ",h.lastName,h.email&&t.jsx("span",{className:"block text-xs text-muted-foreground font-normal",children:h.email})]}),t.jsx("td",{className:"px-3 py-2.5 whitespace-nowrap text-muted-foreground",children:da(h.programId)}),t.jsx("td",{className:"px-3 py-2.5 whitespace-nowrap text-muted-foreground",children:$n(h.eventDate)}),t.jsxs("td",{className:"px-3 py-2.5",children:[t.jsx("span",{className:"inline-block bg-primary/10 text-primary text-xs font-medium px-2 py-0.5 rounded-full",children:xb[h.consentPreference]??h.consentPreference}),h.consentNote&&t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:h.consentNote})]}),t.jsx("td",{className:"px-3 py-2.5 text-center",children:h.isMinor?t.jsx("span",{className:"text-amber-600 font-medium text-xs",children:"Yes"}):t.jsx("span",{className:"text-xs text-muted-foreground",children:"No"})}),t.jsx("td",{className:"px-3 py-2.5 font-serif italic text-foreground/70 max-w-[140px] truncate",children:h.signature}),t.jsx("td",{className:"px-3 py-2.5 whitespace-nowrap text-center",children:h.signupId!==null?t.jsx("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-green-700 bg-green-50 border border-green-200 px-2 py-0.5 rounded-full",children:"â Signup-linked"}):h.emailVerified?t.jsx("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-blue-700 bg-blue-50 border border-blue-200 px-2 py-0.5 rounded-full",children:"â Email-verified"}):t.jsx("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-amber-700 bg-amber-50 border border-amber-200 px-2 py-0.5 rounded-full",children:"â Unverified"})}),t.jsx("td",{className:"px-3 py-2.5 whitespace-nowrap text-muted-foreground",children:ca(h.submittedAt)})]},h.id))})]})})]})}function _M({events:n,loading:s,onClear:i,securityAlertEmail:l,onGoToSettings:d}){const[m,p]=w.useState(!1),[g,f]=w.useState(!1),[h,x]=w.useState(""),y=w.useRef(0);async function v(){const S=++y.current;f(!0),x("");try{await i(),y.current===S&&p(!1)}catch{y.current===S&&x("Failed to clear events. Please try again.")}finally{y.current===S&&f(!1)}}return s?t.jsxs("div",{className:"flex items-center justify-center py-16 text-muted-foreground text-sm",children:[t.jsx(Ga,{className:"w-4 h-4 animate-spin mr-2"})," Loadingâ¦"]}):t.jsx("div",{className:"space-y-4",children:t.jsxs("div",{className:"bg-white border border-border rounded-xl p-6",children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Cs,{className:"w-5 h-5 text-amber-600"}),t.jsx("h2",{className:"font-semibold text-foreground",children:"Login Lockout Events"})]}),n.length>0&&!m&&t.jsx("button",{onClick:()=>p(!0),className:"text-xs text-muted-foreground hover:text-destructive border border-border rounded-lg px-3 py-1.5 transition-colors",children:"Clear all"}),m&&t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-xs text-muted-foreground",children:"Clear all events?"}),t.jsx("button",{onClick:v,disabled:g,className:"text-xs bg-destructive text-destructive-foreground rounded-lg px-3 py-1.5 disabled:opacity-50",children:g?"Clearingâ¦":"Yes, clear all"}),t.jsx("button",{onClick:()=>{y.current+=1,p(!1),f(!1),x("")},className:"text-xs border border-border rounded-lg px-3 py-1.5",children:"Cancel"})]})]}),h&&t.jsx("p",{className:"text-xs text-destructive mb-3",children:h}),l!==void 0&&t.jsxs("p",{className:"text-xs text-muted-foreground mb-3",children:[t.jsx("span",{className:"font-medium text-foreground",children:"Alert emails:"})," ",l?t.jsx("span",{className:"font-mono",children:l}):t.jsxs(t.Fragment,{children:["default (",t.jsx("span",{className:"font-mono",children:"STAFF_EMAIL"}),")"]}),d&&t.jsxs(t.Fragment,{children:[" â ",t.jsx("button",{type:"button",className:"underline underline-offset-2 hover:text-foreground transition-colors",onClick:d,children:"change in Settings"})]})]}),t.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Recorded each time an IP address is locked out after too many failed login attempts. Up to 100 most recent events are shown."}),n.length===0?t.jsxs("div",{className:"flex items-center gap-2 py-8 justify-center text-sm text-muted-foreground",children:[t.jsx(Cs,{className:"w-4 h-4"}),"No lockout events recorded yet."]}):t.jsx("div",{className:"overflow-x-auto",children:t.jsxs("table",{className:"w-full text-sm",children:[t.jsx("thead",{children:t.jsxs("tr",{className:"border-b border-border",children:[t.jsx("th",{className:"text-left py-2 pr-4 font-medium text-muted-foreground",children:"IP Address"}),t.jsx("th",{className:"text-left py-2 pr-4 font-medium text-muted-foreground",children:"Event"}),t.jsx("th",{className:"text-left py-2 font-medium text-muted-foreground",children:"Time"})]})}),t.jsx("tbody",{children:n.map(S=>t.jsxs("tr",{className:"border-b border-border/50 hover:bg-muted/30",children:[t.jsx("td",{className:"py-2 pr-4 font-mono text-xs",children:S.ip}),t.jsx("td",{className:"py-2 pr-4",children:t.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 bg-amber-50 text-amber-700 border border-amber-200 rounded-full text-xs font-medium",children:[t.jsx(Cs,{className:"w-3 h-3"}),S.eventType==="login_lockout"?"Login lockout":S.eventType]})}),t.jsx("td",{className:"py-2 text-muted-foreground",children:ca(S.occurredAt)})]},S.id))})]})})]})})}function LM({token:n}){const[s,i]=w.useState(""),[l,d]=w.useState(""),[m,p]=w.useState(""),[g,f]=w.useState(null),[h,x]=w.useState(!1),[y,v]=w.useState(!1),[S,k]=w.useState(null),[N,A]=w.useState(""),[E,L]=w.useState([]),[H,P]=w.useState(!0),[q,V]=w.useState(null),[Z,K]=w.useState(null);w.useEffect(()=>{re()},[]);async function re(){P(!0);try{const T=await be("/api/admin/cancellations",{headers:{Authorization:`Bearer ${n}`}});if(T.ok){const F=await T.json();L(F.data??[])}}finally{P(!1)}}async function le(){if(!(!s||!l)){x(!0),f(null);try{const T=await be(`/api/admin/cancellations/preview?projectId=${encodeURIComponent(s)}&date=${encodeURIComponent(l)}`,{headers:{Authorization:`Bearer ${n}`}});if(T.ok){const F=await T.json();f(F.data?.count??0)}}finally{x(!1)}}}w.useEffect(()=>{s&&l?le():f(null)},[s,l]);async function he(T){if(T.preventDefault(),!s||!l){A("Program and date are required.");return}if(window.confirm(`Cancel the ${$l[s]??s} workday on ${$n(l)}? 42 43This will email all ${g??"?"} registered volunteers. This cannot be undone.`)){v(!0),A(""),k(null);try{const F=await be("/api/admin/cancellations",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({projectId:s,date:l,reason:m.trim()||null})}),B=await F.json();if(!F.ok){A(B.error??"Failed to cancel workday.");return}k(B.data),i(""),d(""),p(""),f(null),re()}catch{A("Could not reach the server.")}finally{v(!1)}}}async function fe(T){if(window.confirm("Remove this cancellation? The workday banner will disappear from the site.")){V(T);try{await be(`/api/admin/cancellations/${T}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}),re()}finally{V(null)}}}async function ye(T){if(window.confirm(`Send the cancellation notice to every volunteer in the database â not just those who signed up for this date? 44 45This reaches all volunteers who have ever provided an email address, regardless of which program they signed up for. 46 47This cannot be undone.`)){K(T.id);try{const F=await be(`/api/admin/cancellations/${T.id}/notify-all`,{method:"POST",headers:{Authorization:`Bearer ${n}`}}),B=await F.json();if(F.status===409){alert("A broadcast was already sent for this cancellation. The list has been refreshed."),re();return}
47if(!F.ok){alert(B.error??"Failed to send emails.");return}re()}catch{alert("Could not reach the server.")}finally{K(null)}}}const te=E.filter(T=>T.active),G=E.filter(T=>!T.active);return t.jsxs("div",{className:"space-y-8",children:[t.jsxs("div",{className:"bg-white rounded-xl border border-border p-6",children:[t.jsx("h2",{className:"font-serif font-semibold text-lg text-foreground mb-1",children:"Cancel a Workday"}),t.jsx("p",{className:"text-sm text-muted-foreground mb-5",children:"Sends a cancellation email to every volunteer signed up for the selected date and posts a banner on the website."}),t.jsxs("form",{onSubmit:he,className:"space-y-4 max-w-md",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Program"}),t.jsxs("select",{value:s,onChange:T=>i(T.target.value),className:"w-full border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",required:!0,children:[t.jsx("option",{value:"",children:"Select a programâ¦"}),Bi.map(T=>t.jsx("option",{value:T,children:$l[T]},T))]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Workday Date"}),t.jsx("input",{type:"date",value:l,onChange:T=>d(T.target.value),className:"w-full border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",required:!0})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-foreground mb-1",children:["Reason ",t.jsx("span",{className:"text-muted-foreground font-normal",children:"(optional â shown to volunteers)"})]}),t.jsx("textarea",{value:m,onChange:T=>p(T.target.value),rows:3,maxLength:500,placeholder:"e.g. Due to severe weather forecast, we are cancelling this workday for the safety of our volunteers.",className:"w-full border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30 resize-none"})]}),s&&l&&t.jsx("div",{className:`rounded-lg px-4 py-3 text-sm flex items-center gap-2 ${g===0?"bg-amber-50 text-amber-700 border border-amber-200":"bg-blue-50 text-blue-700 border border-blue-200"}`,children:h?t.jsxs(t.Fragment,{children:[t.jsx(Ga,{className:"w-4 h-4 animate-spin"})," Checking signupsâ¦"]}):g!==null?t.jsxs(t.Fragment,{children:[t.jsx(Zt,{className:"w-4 h-4 shrink-0"})," ",t.jsx("strong",{children:g})," volunteer",g!==1?"s":""," will receive a cancellation email."]}):null}),N&&t.jsx("p",{className:"text-sm text-red-600",children:N}),S&&t.jsxs("div",{className:"rounded-lg bg-green-50 border border-green-200 text-green-800 px-4 py-3 text-sm flex items-center gap-2",children:[t.jsx(Bt,{className:"w-4 h-4 shrink-0"}),"Workday cancelled. ",S.emailsSent," of ",S.totalSignups," email",S.totalSignups!==1?"s":""," sent successfully."]}),t.jsxs("button",{type:"submit",disabled:y||!s||!l,className:"inline-flex items-center gap-2 px-5 py-2.5 bg-red-600 text-white text-sm font-medium rounded-lg hover:bg-red-700 transition-colors disabled:opacity-50",children:[t.jsx(Zt,{className:"w-4 h-4"}),y?"Sendingâ¦":"Cancel Workday & Notify Volunteers"]})]})]}),t.jsxs("div",{className:"bg-white rounded-xl border border-border p-6",children:[t.jsxs("h2",{className:"font-serif font-semibold text-lg text-foreground mb-4",children:["Active Cancellations",te.length>0&&t.jsx("span",{className:"ml-2 bg-red-100 text-red-700 text-xs font-semibold px-1.5 py-0.5 rounded-full",children:te.length})]}),H?t.jsxs("div",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[t.jsx(Ga,{className:"w-4 h-4 animate-spin"})," Loadingâ¦"]}):te.length===0?t.jsx("p",{className:"text-sm text-muted-foreground",children:"No active cancellations. The website banner is not showing."}):t.jsx("div",{className:"space-y-3",children:te.map(T=>t.jsxs("div",{className:"rounded-lg border border-red-200 bg-red-50 px-4 py-3 space-y-2",children:[t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[t.jsxs("div",{className:"text-sm",children:[t.jsxs("p",{className:"font-semibold text-red-800",children:[da(T.projectId)," â ",$n(T.workdayDate)]}),T.reason&&t.jsx("p",{className:"text-red-700 mt-0.5",children:T.reason}),t.jsxs("p",{className:"text-red-600 text-xs mt-1",children:[T.emailsSent," email",T.emailsSent!==1?"s":""," sent · Cancelled ",ca(T.cancelledAt)]})]}),t.jsxs("button",{onClick:()=>fe(T.id),disabled:q===T.id,className:"shrink-0 inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-red-700 border border-red-300 rounded-lg hover:bg-red-100 transition-colors disabled:opacity-50",children:[t.jsx(Fl,{className:"w-3.5 h-3.5"}),q===T.id?"Removingâ¦":"Remove"]})]}),T.broadcastSentAt?t.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-green-50 border border-green-200 text-green-800 px-3 py-2 text-xs",children:[t.jsx(Bt,{className:"w-3.5 h-3.5 shrink-0"}),"Broadcast sent ",ca(T.broadcastSentAt)," â all volunteers notified."]}):t.jsxs("button",{onClick:()=>ye(T),disabled:Z===T.id,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-red-700 border border-red-300 rounded-lg hover:bg-red-100 transition-colors disabled:opacity-50",children:[t.jsx(oc,{className:"w-3.5 h-3.5"}),Z===T.id?"Sendingâ¦":"Notify All Volunteers"]})]},T.id))})]}),G.length>0&&t.jsxs("div",{className:"bg-white rounded-xl border border-border p-6",children:[t.jsx("h2",{className:"font-serif font-semibold text-base text-foreground mb-3 text-muted-foreground",children:"Past Cancellations"}),t.jsx("div",{className:"space-y-2",children:G.map(T=>t.jsxs("div",{className:"text-sm text-muted-foreground border border-border rounded-lg px-4 py-2.5 flex justify-between",children:[t.jsxs("span",{children:[da(T.projectId)," â ",$n(T.workdayDate)]}),t.jsxs("span",{children:[T.emailsSent," emails · ",$n(T.cancelledAt)]})]},T.id))})]})]})}function zM(n,s){if(n===null)return!0;const i=l=>l==="error"?2:1;return i(n)<i(s)}
47function Nm(n,s){if(s)return{icon:t.jsx(Ga,{className:"w-3.5 h-3.5 animate-spin"}),text:"Checking emailâ¦",severity:"loading"};if(!n)return{icon:t.jsx(Zt,{className:"w-3.5 h-3.5"}),text:"Email status unavailable",severity:"warn"};if(!n.apiKeyConfigured)return{icon:t.jsx(Zt,{className:"w-3.5 h-3.5"}),text:"RESEND_API_KEY not set â emails disabled",severity:"error"};if(n.status==="verified"){const i=n.fromAddress?n.fromAddress.replace(/^.*<(.+)>$/,"$1"):n.domain??"unknown";return{icon:t.jsx(Bt,{className:"w-3.5 h-3.5"}),text:`Sending from ${i}`,severity:"ok"}}return n.status==="auth_error"?{icon:t.jsx(Zt,{className:"w-3.5 h-3.5"}),text:"RESEND_API_KEY is invalid or expired â emails are disabled",severity:"error"}:n.status==="not_found"||n.status==="error"?{icon:t.jsx(xn,{className:"w-3.5 h-3.5"}),text:t.jsxs("span",{children:["Sending from ",t.jsx("strong",{children:n.domain??n.fromAddress??"configured address"})," â Resend's domain check is temporarily unavailable for this account, but emails are still sending normally"]}),severity:"info"}:n.status==="pending"||n.status==="not_started"?{icon:t.jsx(Zt,{className:"w-3.5 h-3.5"}),text:t.jsxs("span",{children:["Domain ",t.jsx("strong",{children:n.domain})," pending DNS verification"]}),severity:"warn"}:n.status==="temporary_failure"||n.status==="permanent_failure"?{icon:t.jsx(Zt,{className:"w-3.5 h-3.5"}),text:t.jsxs("span",{children:["Domain ",t.jsx("strong",{children:n.domain})," verification failed â emails may fall back to [email protected]"]}),severity:"error"}:{icon:t.jsx(xn,{className:"w-3.5 h-3.5"}),text:`Email status: ${n.status??"unknown"}`,severity:"warn"}}function UM({status:n,loading:s}){const i=Nm(n,s),l=i.severity==="ok"?"text-green-700":i.severity==="error"?"text-red-600":i.severity==="info"||i.severity==="loading"?"text-muted-foreground":"text-amber-600",d=i.severity==="error"?"border-red-200":i.severity==="warn"?"border-amber-200":"border-border",m=!s&&n&&n.apiKeyConfigured&&n.status!=="verified"&&i.severity!=="info",p=!s&&n?.dmarcPolicy?.toLowerCase()==="none";return t.jsxs("div",{className:`bg-white rounded-xl border p-6 max-w-lg ${d}`,children:[t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx(xn,{className:"w-4 h-4 text-muted-foreground"}),t.jsx("h2",{className:"font-serif font-semibold text-lg text-foreground",children:"Email Sending Status"})]}),t.jsxs("div",{className:"text-sm text-muted-foreground mb-3",children:["Confirms that the sending domain is verified in Resend. If unverified, volunteer emails silently fall back to ",t.jsx("code",{className:"bg-muted px-1 py-0.5 rounded font-mono text-xs",children:"[email protected]"}),"."]}),t.jsxs("span",{className:`inline-flex items-center gap-1.5 text-xs ${l}`,children:[i.icon," ",i.text]}),m&&n?.fromAddress&&t.jsxs("p",{className:"mt-2 text-xs text-muted-foreground",children:["Configured sender: ",t.jsx("code",{className:"bg-muted px-1 py-0.5 rounded font-mono",children:n.fromAddress})]}),p&&t.jsxs("div",{className:"mt-4 flex items-start gap-2.5 rounded-lg border border-amber-200 bg-amber-50 p-3 text-sm text-amber-900",children:[t.jsx(Zt,{className:"mt-0.5 h-4 w-4 shrink-0 text-amber-600"}),t.jsxs("p",{children:[t.jsx("span",{className:"font-medium",children:"DMARC is in monitor-only mode (`p=none`). "}),"Spoofed messages that claim to be from ",n.domain??"this domain"," may still reach recipients. After reviewing DMARC reports, change the policy to ",t.jsx("code",{className:"rounded bg-amber-100 px-1 font-mono text-xs",children:"p=quarantine"})," or ",t.jsx("code",{className:"rounded bg-amber-100 px-1 font-mono text-xs",children:"p=reject"}),"."," ",t.jsx("a",{href:"https://dmarc.org/overview/",target:"_blank",rel:"noopener noreferrer",className:"font-medium text-amber-800 underline underline-offset-2 hover:text-amber-950",children:"Read DMARC guidance"})]})]})]})}function FM({token:n,initialEmail:s,onSaved:i}){const[l,d]=w.useState(s??""),[m,p]=w.useState(s??null),[g,f]=w.useState(s===void 0),[h,x]=w.useState(!1),[y,v]=w.useState(""),[S,k]=w.useState(!1);w.useEffect(()=>{if(s!==void 0){f(!1);return}f(!0),be("/api/admin/settings",{headers:{Authorization:`Bearer ${n}`}}).then(A=>A.ok?A.json():null).then(A=>{if(A?.data){const E=A.data.securityAlertEmail??null;p(E),d(E??"")}}).catch(()=>{}).finally(()=>f(!1))},[n]);async function N(A){A.preventDefault(),v(""),k(!1),x(!0);try{const E=await be("/api/admin/settings",{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({securityAlertEmail:l.trim()||null})}),L=await E.json().catch(()=>({}));if(!E.ok){v(L.error??"Failed to save.");return}const H=L.securityAlertEmail??null;p(H),d(H??""),k(!0),i?.(H)}catch{v("Could not reach the server. Try again.")}finally{x(!1)}}return t.jsxs("div",{className:"bg-white rounded-xl border border-border p-6",children:[t.jsxs("div",{className:"flex items-start gap-3 mb-1",children:[t.jsx(Cs,{className:"w-5 h-5 text-amber-600 mt-0.5 shrink-0"}),t.jsx("h2",{className:"font-serif font-semibold text-lg text-foreground",children:"Security Alert Email"})]}),t.jsxs("p",{className:"text-sm text-muted-foreground mb-5 mt-2",children:["When a login lockout is triggered, an alert is sent to this address. Leave blank to use the default staff address (",t.jsx("code",{className:"bg-muted px-1 py-0.5 rounded text-xs font-mono",children:"STAFF_EMAIL"}),")."]}),g?t.jsxs("div",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[t.jsx(Ga,{className:"w-4 h-4 animate-spin"})," Loadingâ¦"]}):t.jsxs(t.Fragment,{children:[S&&t.jsxs("div",{className:"mb-4 flex items-center gap-2 rounded-lg bg-green-50 border border-green-200 text-green-800 px-4 py-3 text-sm",children:[t.jsx(Bt,{className:"w-4 h-4 shrink-0"}),m?`Alert emails will be sent to ${m}.`:"Cleared â alerts will go to the default staff address."]}),t.jsxs("form",{onSubmit:N,className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Alert recipient email"}
47),t.jsx("input",{type:"email",value:l,onChange:A=>{d(A.target.value),k(!1)},className:"w-full border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",placeholder:"Default: [email protected] (STAFF_EMAIL)",maxLength:254})]}),y&&t.jsx("p",{className:"text-sm text-red-600",children:y}),t.jsxs("div",{className:"flex gap-3",children:[t.jsxs("button",{type:"submit",disabled:h,className:"inline-flex items-center gap-2 px-5 py-2.5 bg-primary text-white text-sm font-medium rounded-lg hover:bg-primary/90 transition-colors disabled:opacity-50",children:[t.jsx(Ty,{className:"w-4 h-4"}),h?"Savingâ¦":"Save"]}),(m||l)&&t.jsxs("button",{type:"button",disabled:h,onClick:()=>{d(""),k(!1)},className:"inline-flex items-center gap-2 px-4 py-2.5 border border-border text-sm font-medium rounded-lg text-muted-foreground hover:text-foreground transition-colors disabled:opacity-50",children:[t.jsx(Jt,{className:"w-4 h-4"}),"Clear"]})]})]})]})]})}function BM({token:n}){const[s,i]=w.useState([]),[l,d]=w.useState(!0),[m,p]=w.useState("");if(w.useEffect(()=>{be("/api/admin/feedback",{headers:{Authorization:`Bearer ${n}`}}).then(h=>h.ok?h.json():Promise.reject(new Error(`HTTP ${h.status}`))).then(h=>{h?.data&&i(h.data)}).catch(()=>p("Failed to load feedback responses.")).finally(()=>d(!1))},[n]),l)return t.jsxs("div",{className:"flex items-center justify-center py-20 text-muted-foreground text-sm",children:[t.jsx(Ga,{className:"w-5 h-5 animate-spin mr-2"})," Loadingâ¦"]});if(m)return t.jsx("p",{className:"text-sm text-red-600 py-4",children:m});if(s.length===0)return t.jsxs("div",{className:"text-center py-20 text-muted-foreground",children:[t.jsx(Ay,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),t.jsx("p",{className:"text-sm font-medium",children:"No feedback responses yet."}),t.jsx("p",{className:"text-xs mt-1",children:"Send the survey from Settings to start collecting responses."})]});const g=s.filter(h=>h.rating).reduce((h,x)=>h+(x.rating??0),0)/s.filter(h=>h.rating).length,f={yes:0,somewhat:0,no:0};return s.forEach(h=>{h.foundWhatLookedFor&&h.foundWhatLookedFor in f&&f[h.foundWhatLookedFor]++}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-4 text-center",children:[t.jsx("p",{className:"text-2xl font-bold text-foreground",children:s.length}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Total Responses"})]}),t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-4 text-center",children:[t.jsx("p",{className:"text-2xl font-bold text-foreground",children:isNaN(g)?"â":g.toFixed(1)}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Avg Rating / 5"})]}),t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-4 text-center",children:[t.jsx("p",{className:"text-2xl font-bold text-primary",children:f.yes}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Found What Needed"})]}),t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-4 text-center",children:[t.jsx("p",{className:"text-2xl font-bold text-red-600",children:f.no}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Didn't Find It"})]})]}),t.jsx("div",{className:"space-y-4",children:s.map(h=>t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-5",children:[t.jsxs("div",{className:"flex items-start justify-between mb-3 gap-4",children:[t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[h.name&&t.jsx("span",{className:"font-semibold text-sm text-foreground",children:h.name}),h.email&&t.jsx("span",{className:"text-xs text-muted-foreground",children:h.email}),!h.name&&!h.email&&t.jsx("span",{className:"text-xs text-muted-foreground italic",children:"Anonymous"}),h.rating&&t.jsx("span",{className:"flex items-center gap-0.5",children:Array.from({length:5}).map((x,y)=>t.jsx(Hy,{className:`w-3.5 h-3.5 ${y<h.rating?"fill-yellow-400 text-yellow-400":"text-muted-foreground
47/20"}`},y))}),h.foundWhatLookedFor&&t.jsx("span",{className:`text-xs font-medium px-2 py-0.5 rounded-full ${h.foundWhatLookedFor==="yes"?"bg-green-50 text-green-700 border border-green-200":h.foundWhatLookedFor==="somewhat"?"bg-yellow-50 text-yellow-700 border border-yellow-200":"bg-red-50 text-red-700 border border-red-200"}`,children:h.foundWhatLookedFor==="yes"?"â Found it":h.foundWhatLookedFor==="somewhat"?"â Somewhat":"â Didn't find it"})]}),t.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap flex-shrink-0",children:new Date(h.submittedAt).toLocaleDateString()})]}),h.purposeOfVisit&&t.jsxs("div",{className:"mb-3",children:[t.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"What brought them here"}),t.jsx("p",{className:"text-sm text-foreground",children:h.purposeOfVisit})]}),h.improvement&&t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"Suggested improvement"}),t.jsx("p",{className:"text-sm text-foreground",children:h.improvement})]})]},h.id))})]})}function qM({token:n}){const[s,i]=w.useState([]),[l,d]=w.useState(!0),[m,p]=w.useState("pending"),[g,f]=w.useState({});w.useEffect(()=>{d(!0);const v=m==="all"?"":`?status=${m}`;be(`/api/admin/workday-photos${v}`,{headers:{Authorization:`Bearer ${n}`}}).then(S=>S.ok?S.json():Promise.reject()).then(S=>i(S)).catch(()=>{}).finally(()=>d(!1))},[n,m]);async function h(v,S){f(k=>({...k,[v]:!0}));try{await be(`/api/admin/workday-photos/${v}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({status:S})}),i(k=>k.map(N=>N.id===v?{...N,status:S}:N))}finally{f(k=>({...k,[v]:!1}))}}async function x(v){if(window.confirm("Delete this photo permanently?")){f(S=>({...S,[v]:!0}));try{await be(`/api/admin/workday-photos/${v}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}),i(S=>S.filter(k=>k.id!==v))}finally{f(S=>({...S,[v]:!1}))}}}const y=s.filter(v=>v.status==="pending").length;return t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-lg font-semibold",children:"Volunteer Photos"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Submitted by volunteers after logging hours. Approve to publish on the website."})]}),y>0&&t.jsxs("span",{className:"bg-amber-100 text-amber-700 text-sm font-semibold px-2.5 py-1 rounded-full",children:[y," pending"]})]}),t.jsx("div",{className:"flex gap-2 mb-5",children:["pending","approved","rejected","all"].map(v=>t.jsx("button",{onClick:()=>p(v),className:`px-3 py-1.5 text-sm rounded-lg capitalize font-medium transition-colors ${m===v?"bg-primary text-white":"bg-muted text-muted-foreground hover:text-foreground"}`,children:v},v))}),l?t.jsxs("div",{className:"flex items-center justify-center py-16 text-muted-foreground text-sm",children:[t.jsx(Ga,{className:"w-4 h-4 animate-spin mr-2"})," Loadingâ¦"]}):s.length===0?t.jsxs("div",{className:"text-center py-16 text-muted-foreground text-sm",children:['No photos with status "',m,'".']}):t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:s.map(v=>t.jsxs("div",{className:"border border-border rounded-xl overflow-hidden bg-card shadow-sm",children:[t.jsxs("div",{className:"relative bg-muted aspect-video flex items-center justify-center",children:[t.jsx("img",{src:`/api${v.objectPath}`,alt:v.caption??"Volunteer photo",className:"w-full h-full object-cover",onError:S=>{S.target.style.display="none"}}),t.jsx("span",{className:`absolute top-2 right-2 text-xs font-semibold px-2 py-0.5 rounded-full ${v.status==="approved"?"bg-green-100 text-green-700":v.status==="rejected"?"bg-red-100 text-red-600":"bg-amber-100 text-amber-700"}`,children:v.status})]}),t.jsxs("div",{className:"p-3 space-y-2",children:[t.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.jsx("span",{children:v.projectId}),t.jsx("span",{children:"·"}),t.jsx("span",{children:v.serviceDate}),v.mood&&t.jsxs("span",{children:["· ",v.mood]})]}),v.caption&&t.jsx("p",{className:"text-sm text-foreground",children:v.caption}),v.moodNote&&t.jsxs("p",{className:"text-xs text-muted-foreground italic",children:['"',v.moodNote,'"']}),v.volunteerName&&t.jsxs("p",{className:"text-xs text-muted-foreground",children:["â ",v.volunteerName]}),t.jsxs("div",{className:"flex gap-2 pt-1",children:[v.status!=="approved"&&t.jsx("button",{onClick:()=>h(v.id,"approved"),disabled:g[v.id],className:"flex-1 py-1.5 text-xs font-medium bg-green-50 text-green-700 border border-green-200 rounded-lg hover:bg-green-100 disabled:opacity-50 transition-colors",children:"Approve"}),v.status!=="rejected"&&t.jsx("button",{onClick:()=>h(v.id,"rejected"),disabled:g[v.id],className:"flex-1 py-1.5 text-xs font-medium bg-red-50 text-red-600 border border-red-200 rounded-lg hover:bg-red-100 disabled:opacity-50 transition-colors",children:"Reject"}),t.jsx("button",{onClick:()=>x(v.id),disabled:g[v.id],className:"py-1.5 px-2 text-xs font-medium text-muted-foreground border border-border rounded-lg hover:bg-muted disabled:opacity-50 transition-colors",children:t.jsx(Fl,{className:"w-3.5 h-3.5"})})]})]})]},v.id))})]})}function WM({token:n}){const[s,i]=w.useState(!1),[l,d]=w.useState(null),[m,p]=w.useState(""),[g,f]=w.useState([]);w.useEffect(()=>{be("/api/admin/survey-sends",{headers:{Authorization:`Bearer ${n}`}}).then(x=>x.ok?x.json():Promise.reject()).then(x=>{x?.data&&f(x.data)}).catch(()=>{})},[n]);async function h(){if(p(""),d(null),!!window.confirm(`Send a website feedback survey to all volunteers (past and present)? 48 49Each will receive an email linking to hoh808.org/feedback. 50Cancelled signups are excluded. 51 52This cannot be undone.`)){i(!0);try{const x=await be("/api/admin/send-survey",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({})}),y=await x.json().catch(()=>({}));if(!x.ok){p(y.error??"Failed to send. Try again.");return}const v=y;d(v),f(S=>[{id:Date.now(),sentAt:new Date().toISOString(),totalEligible:v.total,sent:v.sent,failed:v.failed},...S])}catch{p("Could not reach the server. Try again.")}finally{i(!1)}}}return t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[t.jsx(xn,{className:"w-4 h-4 text-primary"}),t.jsx("h2",{className:"font-serif font-semibold text-foreground",children:"Website Feedback Survey"})]}),t.jsxs("p",{className:"text-sm text-muted-foreground mb-4 ml-7",children:["Email all volunteers (past and present) a link to the built-in feedback form at"," ",t.jsx("span",{className:"font-mono text-xs text-foreground",children:"hoh808.org/feedback"}),". Cancelled signups are excluded. Responses appear in the Feedback tab."]}),t.jsxs("div",{className:"space-y-3",children:[m&&t.jsx("p",{className:"text-xs text-red-600",children:m}),l&&t.jsxs("p",{className:"text-xs text-green-700 font-medium",children:["â Sent to ",l.sent,"/",l.total," verified volunteer",l.total!==1?"s":"",l.failed>0&&` (${l.failed} failed)`]}),t.jsxs("button",{onClick:h,disabled:s,className:"inline-flex items-center gap-2 px-4 py-2 bg-primary text-white text-sm font-medium rounded-lg hover:bg-primary/90 disabled:opacity-50 transition-colors",children:[t.jsx(oc,{className:"w-4 h-4"}),s?"Sendingâ¦":"Send Survey to All Volunteers"]})]}),g.length>0&&t.jsxs("div",{className:"mt-5 pt-5 border-t border-border",children:[t.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-3",children:"Send History"}),t.jsx("div",{className:"space-y-2",children:g.map(x=>t.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[t.jsx("span",{children:new Date(x.sentAt).toLocaleStr
52ing()}),t.jsxs("span",{className:x.failed>0?"text-amber-600 font-medium":"text-foreground font-medium",children:[x.sent,"/",x.totalEligible," sent",x.failed>0?` · ${x.failed} failed`:""]})]},x.id))})]})]})}function IM({token:n,onPasswordChanged:s}){const[i,l]=w.useState(""),[d,m]=w.useState(""),[p,g]=w.useState(!1),[f,h]=w.useState(""),[x,y]=w.useState(!1),[v,S]=w.useState(null),[k,N]=w.useState(null),[A,E]=w.useState(!0);w.useEffect(()=>{E(!0),be("/api/admin/settings",{headers:{Authorization:`Bearer ${n}`}}).then(H=>H.ok?H.json():null).then(H=>{H?.data&&(S(H.data.passwordLastChangedAt??null),N(H.data.passwordLastChangedIp??null))}).catch(()=>{}).finally(()=>E(!1))},[n]);async function L(H){if(H.preventDefault(),h(""),y(!1),i.length<8){h("Password must be at least 8 characters.");return}if(i!==d){h("Passwords do not match.");return}g(!0);try{const P=await be("/api/admin/change-password",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({newPassword:i})}),q=await P.json().catch(()=>({}));if(!P.ok){h(q.error??"Failed to update password.");return}y(!0),l(""),m(""),S(new Date().toISOString()),s(i)}catch{h("Could not reach the server. Try again.")}finally{g(!1)}}return t.jsxs("div",{className:"max-w-lg",children:[t.jsxs("div",{className:"bg-white rounded-xl border border-border p-6",children:[t.jsx("div",{className:"flex items-start justify-between mb-1",children:t.jsx("h2",{className:"font-serif font-semibold text-lg text-foreground",children:"Change Admin Password"})}),!A&&v&&t.jsxs("p",{className:"text-xs text-muted-foreground mb-1",children:["Last changed: ",new Date(v).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}),k?` · from ${k}`:""]}),t.jsxs("p",{className:"text-sm text-muted-foreground mb-5 mt-2",children:["Update the admin dashboard password. Your current session will stay active with the new password. If you ever get locked out, an administrator can reset access by updating the ",t.jsx("code",{className:"bg-muted px-1 py-0.5 rounded text-xs font-mono",children:"ADMIN_TOKEN"})," environment variable in Replit Secrets."]}),x&&t.jsxs("div",{className:"mb-4 flex items-center gap-2 rounded-lg bg-green-50 border border-green-200 text-green-800 px-4 py-3 text-sm",children:[t.jsx(Bt,{className:"w-4 h-4 shrink-0"}),"Password updated successfully. Use your new password next time you log in."]}),t.jsxs("form",{onSubmit:L,className:"space-y-4",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-foreground mb-1",children:["New Password ",t.jsx("span",{className:"text-red-500",children:"*"})]}),t.jsx("input",{type:"password",value:i,onChange:H=>l(H.target.value),className:"w-full border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",placeholder:"At least 8 characters",minLength:8,required:!0})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-foreground mb-1",children:["Confirm New Password ",t.jsx("span",{className:"text-red-500",children:"*"})]}),t.jsx("input",{type:"password",value:d,onChange:H=>m(H.target.value),className:"w-full border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",placeholder:"Re-enter new password",required:!0})]}),f&&t.jsx("p",{className:"text-sm text-red-600",children:f}),t.jsxs("button",{type:"submit",disabled:p||!i||!d,className:"inline-flex items-center gap-2 px-5 py-2.5 bg-primary text-white text-sm font-medium rounded-lg hover:bg-primary/90 transition-colors disabled:opacity-50",children:[t.jsx(My,{className:"w-4 h-4"}),p?"Updatingâ¦":"Update Password"]})]})]}),t.jsxs("div",{className:"mt-6 bg-amber-50 border border-amber-200 rounded-xl p-5",children:[t.jsx("h3",{className:"text-sm font-semibold text-amber-900 mb-2",children:"Emergency Reset"}),t.jsx("p",{className:"text-sm text-amber-800",children:"If the admin password is ever forgotten, an administrator with Replit access can reset it:"}),t.jsxs("ol",{className:"mt-2 text-sm text-amber-800 list-decimal list-inside space-y-1",children:[t.jsxs("li",{children:["Open the Replit project and go to ",t.jsx("strong",{children:"Secrets"}),"."]}),t.jsxs("li",{children:["Update the ",t.jsx("code",{className:"bg-amber-100 px-1 py-0.5 rounded font-mono text-xs",children:"ADMIN_TOKEN"})," secret to a new password."]}),t.jsx("li",{children:"Restart the API Server workflow."}),t.jsx("li",{children:"Log in with the new password â it will work immediately as an override."}),t.jsx("li",{children:"Optionally set a permanent password from this panel to replace it."})]})]})]})}
52function VM(){const[n,s]=w.useState(()=>sessionStorage.getItem("hoh_admin_token")??""),[i,l]=w.useState(""),[d,m]=w.useState(""),[p,g]=w.useState(!1),[f,h]=w.useState("signups"),[x,y]=w.useState([]),[v,S]=w.useState([]),[k,N]=w.useState([]),[A,E]=w.useState([]),[L,H]=w.useState({}),[P,q]=w.useState([]),[V,Z]=w.useState(!1),[K,re]=w.useState(void 0),[le,he]=w.useState(!1),[fe,ye]=w.useState(""),[te,G]=w.useState(null),[T,F]=w.useState(!1),[B,ie]=w.useState(null);async function M(J){he(!0),ye("");try{const[ee,Ae,we,De,ht]=await Promise.all([be("/api/admin/signups",{headers:{Authorization:`Bearer ${J}`}}),be("/api/admin/hours",{headers:{Authorization:`Bearer ${J}`}}),be("/api/admin/grants",{headers:{Authorization:`Bearer ${J}`}}),be("/api/volunteer/program-settings"),be("/api/admin/media-releases",{headers:{Authorization:`Bearer ${J}`}})]),gt=[ee,Ae,we,ht].find(Ye=>Ye.status===429);if(gt){const Ye=await gt.json().catch(()=>null);ye(Ye?.error??"Too many requests. Please wait a few minutes and try again.");return}if(ee.status===401||Ae.status===401||we.status===401){s(""),sessionStorage.removeItem("hoh_admin_token"),ye("Invalid password. Please log in again.");return}const Tt=await ee.json(),z=await Ae.json(),Ne=await we.json(),We=De.ok?await De.json():{data:{}},qt=ht.ok?await ht.json():{data:[]};y(Tt.data??[]),S(z.data??[]),N(Ne.data??[]),H(We.data??{}),E(qt.data??[])}catch{ye("Could not reach the server. Try again.")}finally{he(!1)}}w.useEffect(()=>{n&&M(n)},[n]);function Y(J){F(!0),be("/api/admin/email-status",{headers:{Authorization:`Bearer ${J}`}}).then(ee=>ee.ok?ee.json():null).then(ee=>{ee?.data&&G(ee.data)}).catch(()=>{}).finally(()=>F(!1))}w.useEffect(()=>{if(!n)return;G(null),Y(n);const J=setInterval(()=>Y(n),300*1e3);return()=>clearInterval(J)},[n]),w.useEffect(()=>{!n||f!=="settings"||Y(n)},[f]);async function ne(J){Z(!0);try{const ee=await be("/api/admin/security-events",{headers:{Authorization:`Bearer ${J}`}}),Ae=ee.ok?await ee.json():null;q(Ae?.data??[])}catch{}finally{Z(!1)}}w.useEffect(()=>{n&&(q([]),re(void 0),Promise.all([ne(n),be("/api/admin/settings",{headers:{Authorization:`Bearer ${n}`}}).then(J=>J.ok?J.json():null).then(J=>{re(J?.data?.securityAlertEmail??null)}).catch(()=>{re(null)})]))},[n]);async function ae(J){J.preventDefault(),g(!0),m("");try{const ee=await be("/api/admin/login",{method:"POST",headers:{Authorization:`Bearer ${i}`}});if(ee.status===429){m("Too many failed attempts. Please wait 10 minutes before trying again.");return}if(ee.status===401||ee.status===503){m("Incorrect password. Try again.");return}if(!ee.ok){m("Could not verify password. Try again.");return}sessionStorage.setItem("hoh_admin_token",i),s(i)}catch{m("Could not reach the server. Try again.")}finally{g(!1)}}function se(){sessionStorage.removeItem("hoh_admin_token"),s(""),l(""),y([]),S([]),N([]),H({}),E([]),q([])}return n?t.jsxs("div",{className:"min-h-screen bg-muted/20",children:[t.jsxs("div",{className:"bg-white border-b border-border px-6 py-4 flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("img",{src:"/hoh-logo.png",alt:"HOH808",className:"w-8 h-8 object-contain"}),t.jsx("span",{className:"font-serif font-semibold text-foreground",children:"HOH808 Admin"})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[P.length>0&&t.jsxs("button",{onClick:()=>h("security"),title:`${P.length} lockout event${P.length===1?"":"s"} waiting for review â open Security tab`,className:"hidden sm:inline-flex items-center gap-1.5 text-xs text-amber-600 hover:underline",children:[t.jsx(Cs,{className:"w-3.5 h-3.5"}),P.length," lockout",P.length===1?"":"s"]}),(()=>{const J=Nm(te,T),ee=J.severity==="ok"?"text-green-700":J.severity==="error"?"text-red-600":J.severity==="loading"?"text-muted-foreground":"text-amber-600",Ae=(J.severity==="warn"||J.severity==="error")&&typeof J.text=="string"?J.text:"Email",we=J.severity==="ok"?"Emails are sending â see Settings for details":J.severity==="loading"?"Checking email statusâ¦":"Email problem detected â see Settings";return t.jsxs("button",{onClick:()=>h("settings"),title:we,className:`hidden sm:inline-flex items-center gap-1.5 text-xs ${ee} hover:underline`,children:[J.icon," ",Ae]})})(),t.jsxs("button",{onClick:()=>{M(n),Y(n)},disabled:le,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium border border-border rounded-lg hover:bg-muted transition-colors",children:[t.jsx(Ga,{className:`w-4 h-4 ${le?"animate-spin":""}`}),"Refresh"]}),t.jsxs("button",{onClick:se,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-red-600 border border-red-200 rounded-lg hover:bg-red-50 transition-colors",children:[t.jsx(B2,{className:"w-4 h-4"}),"Sign Out"]})]})]}),(()=>{const J=Nm(te,T);if(!(!T&&(J.severity==="warn"||J.severity==="error")))return null;const Ae=J.severity;if(!zM(B,Ae))return null;const we=Ae==="error";return t.jsxs("div",{className:`flex items-start gap-3 px-6 py-3 ${we?"bg-red-50 border-b border-red-200":"bg-amber-50 border-b border-amber-200"}`,children:[t.jsx(Zt,{className:`w-4 h-4 mt-0.5 shrink-0 ${we?"text-red-600":"text-amber-600"}`}),t.jsxs("p",{className:`text-sm flex-1 ${we?"text-red-800":"text-amber-800"}`,children:[t.jsx("span",{className:"font-medium",children:"Email issue detected: "}),J.text," ",t.jsx("button",{onClick:()=>h("settings"),className:`underline font-medium ${we?"text-red-700 hover:text-red-900":"text-amber-700 hover:text-amber-900"}`,children:"Open Settings"})]}),t.jsx("button",{onClick:()=>ie(Ae),"aria-label":"Dismiss email warning",className:`shrink-0 p-0.5 rounded hover:bg-black/10 transition-colors ${we?"text-red-500":"text-amber-500"}`,children:t.jsx(Jt,{className:"w-4 h-4"})})]})})(),t.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 py-6",children:[t.jsxs("div",{className:"flex gap-1 mb-6 border-b border-border",children:[t.jsxs("button",{onClick:()=>h("signups"),className:`flex items-center gap-2 px-4 py-2.5 text-sm font-medium border-b-2 transition-colors ${f==="signups"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[t.jsx(Ya,{className:"w-4 h-4"}),"Signups & Waivers",t.jsx("span",{className:"bg-primary/10 text-primary text-xs font-semibold px-1.5 py-0.5 rounded-full",children:x.length})]}),t.jsxs("button",{onClick:()=>h("hours"),className:`flex items-center gap-2 px-4 py-2.5 text-sm font-medium border-b-2 transition-colors ${f==="hours"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[t.jsx(Xt,{className:"w-4 h-4"}),"Volunteer Hours",t.jsx("span",{className:"bg-primary/10 text-primary text-xs font-semibold px-1.5 py-0.5 rounded-full",children:v.length})]}),t.jsxs("button",{onClick:()=>h("grants"),className:`flex items-center gap-2 px-4 py-2.5 text-sm font-medium border-b-2 transition-colors ${f==="grants"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[t.jsx(mS,{className:"w-4 h-4"}),"Grants / Projects",t.jsx("span",{className:"bg-primary/10 text-primary text-xs font-semibold px-1.5 py-0.5 rounded-full",children:k.length})]}),t.jsxs("button",{onClick:()=>h("cancellations"),className:`flex items-center gap-2 px-4 py-2.5 text-sm font-medium border-b-2 transition-colors ${f==="cancellations"?"border-red-600 text-red-600":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[t.jsx(Zt,{className:"w-4 h-4"}),"Cancellations"]}),t.jsxs("button",{onClick:()=>h("media"),className:`flex items-center gap-2 px-4 py-2.5 text-sm font-medium border-b-2 transition-colors ${f==="media"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[t.jsx(Vi,{className:"w-4 h-4"}),"Media Releases",t.jsx("span",{className:"bg-primary/10 text-primary text-xs font-semibold px-1.5 py-0.5 rounded-full",children:A.length})]}),t.jsxs("button",{onClick:()=>h("security"),className:`flex items-center gap-2 px-4 py-2.5 text-sm font-medium border-b-2 transition-colors ${f==="security"?"border-amber-600 text-amber-600":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[t.jsx(Cs,{className:"w-4 h-4"}),"Security",P.length>0&&t.jsx("span",{className:"bg-amber-100 text-amber-700 text-xs font-semibold px-1.5 py-0.5 rounded-full",children:P.length})]}),t.jsxs("button",{onClick:()=>h("feedback"),className:`flex items-center gap-2 px-4 py-2.5 text-sm font-medium border-b-2 transition-colors ${f==="feedback"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[t.jsx(Ay,{className:"w-4 h-4"}),"Feedback"]}),t.jsxs("button",{onClick:()=>h("photos"),className:`flex items-center gap-2 px-4 py-2.5 text-sm font-medium border-b-2 transition-colors ${f==="photos"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[t.jsx(Vi,{className:"w-4 h-4"}),"Photos"]}),t.jsxs("button",{"data-tab":"settings",onClick:()=>h("settings"),className:`flex items-center gap-2 px-4 py-2.5 text-sm font-medium border-b-2 transition-colors ${f==="settings"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[t.jsx(My,{className:"w-4 h-4"}),"Settings"]})]}),fe&&t.jsx("div",{className:"mb-4 p-3 bg-red-50 border border-red-200 text-red-700 text-sm rounded-lg",children:fe}),le?t.jsxs("div",{className:"flex items-center justify-center py-20 text-muted-foreground text-sm",children:[t.jsx(Ga,{className:"w-5 h-5 animate-spin mr-2"})," Loadingâ¦"]}):t.jsxs(t.Fragment,{children:[f==="signups"&&t.jsx(OM,{data:x,grants:k,token:n,onDeleteSignups:J=>y(ee=>ee.filter(Ae=>!J.includes(Ae.id)))}),f==="hours"&&t.jsx(DM,{data:v,signups:x}),f==="media"&&t.jsx(RM,{data:A}),f==="cancellations"&&t.jsx(LM,{token:n}),f==="security"&&t.jsx(_M,{events:P,loading:V,securityAlertEmail:K,onGoToSettings:()=>h("settings"),onClear:async()=>
52{if(!(await be("/api/admin/security-events",{method:"DELETE",headers:{Authorization:`Bearer ${n}`}})).ok)throw new Error("Failed to clear");await ne(n)}}),f==="feedback"&&t.jsx(BM,{token:n}),f==="photos"&&t.jsx(qM,{token:n}),f==="settings"&&t.jsxs("div",{className:"space-y-6",children:[t.jsx(UM,{status:te,loading:T}),t.jsx(WM,{token:n}),t.jsx(FM,{token:n,initialEmail:K,onSaved:re}),t.jsx(IM,{token:n,onPasswordChanged:J=>{sessionStorage.setItem("hoh_admin_token",J),s(J)}})]}),f==="grants"&&t.jsx(PM,{grants:k,signups:x,token:n,programSettings:L,onGrantsChanged:N,onSettingsChanged:H})]})]})]}):t.jsx("div",{className:"min-h-screen bg-muted/30 flex items-center justify-center p-4",children:t.jsxs("div",{className:"bg-white rounded-2xl shadow-md w-full max-w-sm p-8",children:[t.jsxs("div",{className:"text-center mb-6",children:[t.jsx("img",{src:"/hoh-logo.png",alt:"HOH808",className:"w-12 h-12 mx-auto mb-3 object-contain"}),t.jsx("h1",{className:"font-serif font-bold text-xl text-foreground",children:"Admin Access"}),t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Hui o HoÊ»ohonua â Staff Only"})]}),t.jsxs("form",{onSubmit:ae,className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:"Password"}),t.jsx("input",{type:"password",value:i,onChange:J=>l(J.target.value),className:"w-full border border-border rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",placeholder:"Enter admin password",autoFocus:!0,required:!0})]}),d&&t.jsx("p",{className:"text-sm text-red-600",children:d}),t.jsx("button",{type:"submit",disabled:p||!i,className:"w-full py-2.5 bg-primary text-white text-sm font-medium rounded-lg hover:bg-primary/90 transition-colors disabled:opacity-50",children:p?"Checkingâ¦":"Sign In"})]})]})})}const Sm={"malama-kapapapuhi":"KÅ«kulu i loko o Kapapapuhi","waipahu-loi":"PuÊ»uhonua O Waipahu LoÊ»i","adopt-a-plot":"Adopt a Plot","education-outreach":"Education & Outreach","pearl-harbor-aviation":"PHAM Community Monthly Workday","halawa-landing":"HÄlawa Landing Community Workday"},GM=Object.keys(Sm),YM=[{value:"full_name",label:"OK to use my full name with images and video"},{value:"first_name_only",label:"OK to use first name only"},{value:"image_no_name",label:"OK to use my image/video, but do not publish my name"},{value:"internal_only",label:"Internal reporting and grant documentation only â do not publish"},{value:"other",label:"Other â I have a specific preference (describe below)"}],fn=n=>`w-full px-3 py-2 rounded-lg border text-sm focus:outline-none focus:ring-2 focus:ring-primary/40 ${n?"border-red-400 bg-red-50":"border-border"}`;function Wa({label:n,error:s,children:i,className:l=""}){return t.jsxs("div",{className:l,children:[t.jsx("label",{className:"block text-sm font-medium text-foreground mb-1",children:n}),i,s&&t.jsx("p",{className:"text-xs text-red-600 mt-0.5",children:s})]})}function $M(n){if(!n)return"";const[s,i,l]=n.split("-").map(Number);return new Date(s,i-1,l).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}function KM(){const n=Eb(),s=new URLSearchParams(n),i=s.get("token")??"",[l,d]=w.useState({firstName:s.get("firstName")??"",lastName:s.get("lastName")??"",email:s.get("email")??"",programId:s.get("program")??"",eventDate:s.get("date")??"",isMinor:!1,minorName:"",consentPreference:"full_name",consentNote:"",signature:"",guardianName:"",guardianRelationship:""}),[m,p]=w.useState({}),[g,f]=w.useState(!1),[h,x]=w.useState(!1),[y,v]=w.useState(!1),[S,k]=w.useState("");function N(P,q){d(V=>({...V,[P]:q})),p(V=>({...V,[P]:void 0}))}function A(){const P={};return l.firstName.trim()||(P.firstName="First name is required."),l.lastName.trim()||(P.lastName="Last name is required."),l.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l.email.trim())||(P.email="Please enter a valid email address."):P.email="Email address is required to verify your consent.",l.programId||(P.programId="Please select a program."),l.signature.trim()||(P.signature="Please type your full name as your signature."),l.isMinor&&(l.minorName.trim()||(P.minorName="Minor's full name is required."),l.guardianName.trim()||(P.guardianName="Parent or guardian name is required.")),l.consentPreference==="other"&&!l.consentNote.trim()&&(P.consentNote="Please describe your preference."),p(P),Object.keys(P).length===0}async function E(P){if(P.preventDefault(),!!A()){f(!0),k("");try{const q=await be("/api/media-release",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...i?{token:i}:{},firstName:l.firstName.trim(),lastName:l.lastName.trim(),email:l.email.trim(),programId:l.programId,eventDate:l.eventDate||null,isMinor:l.isMinor,minorName:l.isMinor?l.minorName.trim():null,consentPreference:l.consentPreference,consentNote:l.consentNote.trim()||null,signature:l.signature.trim(),guardianName:l.isMinor?l.guardianName.trim():null,guardianRelationship:l.isMinor&&l.guardianRelationship.trim()||null})});if(!q.ok){const Z=await q.json().catch(()=>({}));k(Z.error??"Something went wrong. Please try again.");return}const V=await q.json().catch(()=>({}));v(!!V.verified),x(!0)}catch{k("Could not reach the server. Please check your connection and try again.")}finally{f(!1)}}}if(h)return t.jsx("div",{className:"min-h-[60vh] flex items-center justify-center p-4",children:t.jsxs("div",{className:"bg-white rounded-2xl shadow-sm border border-border w-full max-w-sm p-8 text-center",children:[t.jsx(zt,{className:"w-14 h-14 text-primary mx-auto mb-4"}),t.jsx("h1",{className:"font-serif font-bold text-xl text-foreground mb-2",children:"Mahalo!"}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-3",children:"Your media consent form has been submitted."}),y?t.jsxs("div",{className:"rounded-lg border border-green-200 bg-green-50 px-4 py-3 text-left",children:[t.jsx("p",{className:"text-sm font-medium text-green-800 mb-1",children:"â Consent verified"}),t.jsx("p",{className:"text-xs text-green-700 leading-relaxed",children:"Your consent is linked to your volunteer signup and marked as verified. No further action is needed."})]}):t.jsxs("div",{className:"rounded-lg border border-primary/20 bg-primary/5 px-4 py-3 text-left",children:[t.jsx("p",{className:"text-sm font-medium text-foreground mb-1",children:"Check your email"}),t.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:["We sent a verification link to ",t.jsx("strong",{children:l.email}),". Please click it to confirm your consent â this helps staff distinguish authentic records."]})]})]})});const L=!!s.get("program"),H=!!s.get("date");return t.jsxs("div",{className:"max-w-xl mx-auto px-4 py-10",children:[t.jsx(Be,{title:"Media Release Form",description:"Complete the Hui o HoÊ»ohonua media release and consent form before your volunteer workday. Quick consent form for photography and video participation."}),t.jsxs("div",{className:"mb-6 text-center",children:[t.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 bg-primary/10 rounded-full mb-3",children:t.jsx(gm,{className:"w-6 h-6 text-primary"})}),t.jsx("h1",{className:"font-serif font-bold text-2xl text-foreground",children:"Media Release & Consent"}),t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Hui o HoÊ»ohonua â HOH808"})]}),t.jsxs("div",{className:"bg-white rounded-2xl shadow-sm border border-border p-6",children:[t.jsx("p",{className:"text-sm text-foreground
52/70 leading-relaxed mb-6",children:"This form documents your consent for HOH808 to photograph, film, and use names, images, and participation for communications, outreach, grant reporting, and fundraising."}),t.jsxs("form",{onSubmit:E,noValidate:!0,className:"space-y-6",children:[t.jsxs("section",{children:[t.jsx("h2",{className:"text-sm font-semibold uppercase tracking-wide text-muted-foreground mb-3",children:"Your Information"}),t.jsxs("div",{className:"grid sm:grid-cols-2 gap-3",children:[t.jsx(Wa,{label:"First Name *",error:m.firstName,children:t.jsx("input",{className:fn(!!m.firstName),value:l.firstName,onChange:P=>N("firstName",P.target.value),placeholder:"First name"})}),t.jsx(Wa,{label:"Last Name *",error:m.lastName,children:t.jsx("input",{className:fn(!!m.lastName),value:l.lastName,onChange:P=>N("lastName",P.target.value),placeholder:"Last name"})}),t.jsxs(Wa,{label:"Email *",error:m.email,className:"sm:col-span-2",children:[t.jsx("input",{type:"email",className:fn(!!m.email),value:l.email,onChange:P=>N("email",P.target.value),placeholder:"[email protected]"}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Required to verify your consent via email."})]})]})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"text-sm font-semibold uppercase tracking-wide text-muted-foreground mb-3",children:"Event"}),t.jsxs("div",{className:"space-y-3",children:[t.jsx(Wa,{label:"Program *",error:m.programId,children:L?t.jsx("div",{className:"px-3 py-2 rounded-lg border border-border bg-muted/40 text-sm text-foreground",children:Sm[l.programId]??l.programId}):t.jsxs("select",{className:fn(!!m.programId),value:l.programId,onChange:P=>N("programId",P.target.value),children:[t.jsx("option",{value:"",children:"Select a programâ¦"}),GM.map(P=>t.jsx("option",{value:P,children:Sm[P]},P))]})}),t.jsx(Wa,{label:"Event Date",children:H?t.jsx("div",{className:"px-3 py-2 rounded-lg border border-border bg-muted/40 text-sm text-foreground",children:$M(l.eventDate)}):t.jsx("input",{type:"date",className:fn(!1),value:l.eventDate,onChange:P=>N("eventDate",P.target.value)})})]})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"text-sm font-semibold uppercase tracking-wide text-muted-foreground mb-3",children:"Consent Preference"}),t.jsx("div",{className:"space-y-2.5",children:YM.map(P=>t.jsxs("label",{className:"flex items-start gap-2.5 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"consent",value:P.value,checked:l.consentPreference===P.value,onChange:()=>N("consentPreference",P.value),className:"mt-0.5 w-4 h-4 accent-primary flex-shrink-0"}),t.jsx("span",{className:"text-sm text-foreground",children:P.label})]},P.value))}),l.consentPreference==="other"&&t.jsx("div",{className:"mt-3",children:t.jsx(Wa,{label:"Describe your preference *",error:m.consentNote,children:t.jsx("textarea",{rows:2,className:`w-full px-3 py-2 rounded-lg border text-sm focus:outline-none focus:ring-2 focus:ring-primary/40 resize-none ${m.consentNote?"border-red-400 bg-red-50":"border-border"}`,value:l.consentNote,onChange:P=>N("consentNote",P.target.value),placeholder:"Describe any specific limitations or notesâ¦"})})})]}),t.jsxs("section",{className:"bg-muted/30 rounded-xl p-4 border border-border",children:[t.jsxs("label",{className:"flex items-center gap-2.5 cursor-pointer mb-3",children:[t.jsx("input",{type:"checkbox",className:"w-4 h-4 rounded border-border accent-primary",checked:l.isMinor,onChange:P=>N("isMinor",P.target.checked)}),t.jsx("span",{className:"text-sm font-medium",children:"I am the parent or guardian completing this for a minor (under 18)"})]}),l.isMinor&&t.jsxs("div",{className:"space-y-3 pl-6 border-l-2 border-primary/20",children:[t.jsx(Wa,{label:"Minor's Full Name *",error:m.minorName,children:t.jsx("input",{className:fn(!!m.minorName),value:l.minorName,onChange:P=>N("minorName",P.target.value),placeholder:"Child's full name"})}),t.jsxs("div",{className:"grid sm:grid-cols-2 gap-3",children:[t.jsx(Wa,{label:"Parent / Guardian Name *",error:m.guardianName,children:t.jsx("input",{className:fn(!!m.guardianName),value:l.guardianName,onChange:P=>N("guardianName",P.target.value),placeholder:"Your full name"})}),t.jsx(Wa,{label:"Relationship to Minor",children:t.jsx("input",{className:fn(!1),value:l.guardianRelationship,onChange:P=>N("guardianRelationship",P.target.value),placeholder:"Parent, legal guardianâ¦"})})]})]})]}),t.jsx("section",{children:t.jsx("div",{className:"h-28 overflow-y-auto text-xs text-foreground
52/60 leading-relaxed border border-border rounded-lg p-3 bg-muted/20",children:l.isMinor?"I am the parent or legal guardian of the minor named above. I authorize Hui o HoÊ»ohonua (HOH808), including its officers, staff, volunteers, contractors, partners, funders, successors, and assigns, to photograph, film, record, edit, reproduce, publish, distribute, display, and otherwise use the minor's name, image, likeness, voice, written statements, and participation in any format or media for the organizational purposes described in this form. I understand that these materials may be used without compensation and that this release is binding on my minor child and our heirs, personal representatives, and assigns.":"I authorize Hui o HoÊ»ohonua (HOH808), including its officers, staff, volunteers, contractors, partners, funders, successors, and assigns, to photograph, film, record, edit, reproduce, publish, distribute, display, and otherwise use my name, image, likeness, voice, written statements, and participation in any format or media for the organizational purposes described in this form. I understand that these materials may be used without compensation to me and that this release is binding on my heirs, personal representatives, and assigns."})}),t.jsx("section",{children:t.jsxs(Wa,{label:"Signature â type your full name *",error:m.signature,children:[t.jsx("input",{className:`${fn(!!m.signature)} font-serif italic`,value:l.signature,onChange:P=>N("signature",P.target.value),placeholder:"Type your full legal name"}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Typing your name constitutes a legally binding electronic signature."})]})}),S&&t.jsx("p",{className:"text-sm text-red-600",children:S}),t.jsx("button",{type:"submit",disabled:g,className:"w-full py-3 bg-primary text-white font-medium rounded-lg hover:bg-primary/90 disabled:opacity-50 transition-colors",children:g?"Submittingâ¦":"Submit Media Release"})]})]})]})}function L0({message:n}){return t.jsx("div",{className:"bg-amber-50 border-b border-amber-200",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-3 flex items-center gap-3",children:[t.jsx(cS,{className:"w-4 h-4 text-amber-600 flex-shrink-0"}),t.jsx("p",{className:"text-amber-800 text-sm leading-snug",children:n??"This page is still growing â we are actively adding documents and content. Check back soon."})]})})}const QM=[{id:1,type:"Interview",title:"Interview: [Volunteer Name]",subtitle:"Long-time Kapapapuhi volunteer shares what keeps them coming back every Second Saturday.",description:"Placeholder â Replace with a 300â500 word interview with a KÅ«kulu i loko o Kapapapuhi volunteer. Ask them: Why did you start? What have you learned about the land? What does Aloha Ê»Äina mean to you in practice?",tag:"Volunteer Story",tagColor:"bg-primary/10 text-primary",icon:Dg,image:null,imageNote:"Photo needed: portrait of volunteer at Kapapapuhi site."},{id:2,type:"Interview",title:"Interview: [Community Elder / Kupuna Name]",subtitle:"A kupuna reflects on the history of Kapapapuhi and why fishpond restoration matters to future generations.",description:"Placeholder â Feature a kupuna voice connected to the Ê»Ewa Moku region. Ask about memories of the land before development, what thriving looks like, and what message they have for young people joining HOH workdays.",tag:"Community Voice",tagColor:"bg-accent/15 text-accent-foreground",icon:Ya,image:null,imageNote:"Photo needed: kupuna at or near the restoration site."},{id:3,type:"Story",title:"Story: The Return of the Ê»AhuÊ»awa Sedge",subtitle:"How Project Sedges Save Ledges is bringing back a native plant that held the coastline together.",description:"Placeholder â A narrative piece on the Ê»AhuÊ»awa (sedge grass) planting initiative at Kapapapuhi. Describe what the plant does ecologically, how volunteers are propagating it, and what the site looked like before vs. now.",tag:"Restoration Story",tagColor:"bg-green-50 text-green-800",icon:pm,image:null,imageNote:"Photos needed: before/after of sedge planting area."},{id:4,type:"Interview",title:"Interview: [Partner Agency Representative]",subtitle:"A representative from JBPHH or DLNR describes what the HOH partnership means on the ground.",description:"Placeholder â A short Q&A with a partner agency contact (USFWS, DLNR, or JBPHH staff). Ask about why the partnership formed, what HOH brings to the table, and outcomes they've seen together.",tag:"Partner Perspective",tagColor:"bg-blue-50 text-blue-800",icon:Ya,image:null,imageNote:"Photo needed: joint workday or site visit with partner."},{id:5,type:"Story",title:"Story: A Morning at the Waipahu LoÊ»i",subtitle:"What it feels like to step into a taro field at 8 AM on a Fourth Saturday â and why people drive from across OÊ»ahu to be there.",description:"Placeholder â A first-person narrative or photo essay capturing a single PuÊ»uhonua O Waipahu LoÊ»i workday. Describe the sights, sounds, and conversations. Include what participants learn about loÊ»i kalo and what they take home.",tag:"Field Story",tagColor:"bg-
52amber-50 text-amber-800",icon:pm,image:null,imageNote:"Photos needed: volunteers in the loÊ»i, taro plants, community moments."},{id:6,type:"Interview",title:"Interview: [Student / Youth Participant]",subtitle:"A student from one of HOH's education outreach programs talks about what they learned beyond the classroom.",description:"Placeholder â Feature a student or young volunteer (with guardian consent) who participated in an education and outreach session. Ask what surprised them, what they want others to know about Ê»Äina, and if they plan to come back.",tag:"Youth Voice",tagColor:"bg-teal-50 text-teal-800",icon:Dg,image:null,imageNote:"Photo needed: student participant at a field event (with consent)."}];function XM(){return t.jsxs("div",{className:"min-h-screen bg-background",children:[t.jsx(Be,{title:"Stories & Interviews",description:"Read volunteer stories and personal accounts from the Hui o HoÊ»ohonua community â people working to restore the Ê»Äina of Ê»Ewa Moku, one workday at a time."}),t.jsxs("div",{className:"relative py-20 px-4 text-white text-center overflow-hidden",style:{background:"linear-gradient(135deg, hsl(160 25% 18%) 0%, hsl(142 48% 25%) 60%, hsl(160 35% 20%) 100%)"},children:[t.jsxs("div",{className:"max-w-3xl mx-auto relative z-10",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-white/15 text-white/90 text-sm font-medium mb-5",children:[t.jsx(pm,{className:"w-4 h-4"}),"Stories & Interviews"]}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4 leading-tight",children:"Voices of the Ê»Äina"}),t.jsx("p",{className:"text-white/80 text-lg leading-relaxed max-w-2xl mx-auto",children:"The people behind Hui o HoÊ»ohonua â volunteers, community elders, partner agencies, and students â share what this work means in their own words."})]}),t.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px)"}})]}),t.jsx(L0,{message:"Our Stories page is actively being built â real interviews, field narratives, and community voices are on the way. Check back soon."}),t.jsx("div",{className:"max-w-3xl mx-auto px-4 py-6",children:t.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-lg px-5 py-4 flex gap-3 items-start",children:[t.jsx(gm,{className:"w-5 h-5 text-amber-600 mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-amber-900 font-semibold text-sm",children:"Content Placeholder"}),t.jsx("p",{className:"text-amber-800 text-sm mt-1",children:"These story cards are placeholders. Replace each one with a real volunteer interview, field narrative, or partner quote. Photos are also needed for each story â see the image note inside each card. Once content is ready, remove this banner."})]})]})}),t.jsx("div",{className:"max-w-3xl mx-auto px-4 pb-16 space-y-8",children:QM.map(n=>{const s=n.icon;return t.jsxs("article",{className:"bg-card border border-card-border rounded-xl overflow-hidden shadow-sm",children:[t.jsxs("div",{className:"bg-muted/40 border-b border-border h-48 flex flex-col items-center justify-center gap-2 text-center px-6",children:[t.jsx(gm,{className:"w-8 h-8 text-muted-foreground/40"}),t.jsx("p",{className:"text-xs text-muted-foreground italic max-w-xs",children:n.imageNote})]}),t.jsxs("div",{className:"p-6 md:p-8",children:[t.jsx("div",{className:"flex items-center gap-2 mb-3",children:t.jsxs("span",{className:`inline-flex items-center gap-1.5 text-xs font-semibold px-2.5 py-1 rounded-full ${n.tagColor}`,children:[t.jsx(s,{className:"w-3 h-3"}),n.tag]})}),t.jsx("h2",{className:"font-serif text-xl md:text-2xl font-bold text-foreground mb-2 leading-snug",children:n.title}),t.jsx("p",{className:"text-muted-foreground text-sm font-medium mb-4 leading-relaxed",children:n.subtitle}),t.jsx("div",{className:"border-l-4 border-muted bg-muted/30 rounded-r-md px-4 py-3 mb-5",children:t.jsxs("p",{className:"text-xs text-muted-foreground italic leading-relaxed",children:[t.jsx("span",{className:"font-semibold not-italic text-foreground
52/60",children:"Placeholder note:"})," ",n.description]})}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"w-8 h-8 rounded-full bg-muted flex items-center justify-center",children:t.jsx(Ya,{className:"w-4 h-4 text-muted-foreground"})}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold text-foreground/60",children:"[Author / Interviewer Name]"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"[Date to be added]"})]})]})]})]},n.id)})}),t.jsxs("div",{className:"py-14 px-4 text-center text-white",style:{background:"linear-gradient(135deg, hsl(160 25% 18%) 0%, hsl(142 48% 25%) 100%)"},children:[t.jsx("h2",{className:"font-serif text-2xl md:text-3xl font-bold mb-3",children:"Have a Story to Share?"}),t.jsx("p",{className:"text-white/75 text-base max-w-xl mx-auto mb-7",children:"Are you a volunteer, community member, or partner with a story about this work? We would love to hear from you."}),t.jsxs(pe,{href:"/contact",className:"inline-flex items-center gap-2 px-6 py-3 bg-white text-foreground font-semibold rounded-md hover:bg-white/90 transition-colors text-sm",children:["Share Your Story",t.jsx(xt,{className:"w-4 h-4"})]})]})]})}const kl="/";function Yn({icon:n,title:s,description:i,href:l,label:d,available:m,note:p}){return t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6 flex flex-col gap-4",children:[t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:`w-11 h-11 rounded-lg flex items-center justify-center flex-shrink-0 ${m?"bg-primary/10":"bg-muted"}`,children:t.jsx(n,{className:`w-5 h-5 ${m?"text-primary":"text-muted-foreground"}`})}),t.jsxs("div",{className:"flex-1",children:[t.jsx("h3",{className:"font-serif font-semibold text-foreground text-base leading-snug mb-1",children:s}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:i}),p&&t.jsx("p",{className:"text-xs text-amber-700 bg-amber-50 border border-amber-100 rounded px-2.5 py-1.5 mt-2 italic",children:p})]})]}),m&&l?t.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 self-start px-4 py-2 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary/90 transition-colors",children:[t.jsx(pn,{className:"w-4 h-4"}),d]}):t.jsxs("div",{className:"inline-flex items-center gap-2 self-start px-4 py-2 bg-muted text-muted-foreground text-sm font-medium rounded-md cursor-not-allowed opacity-60",children:[t.jsx(At,{className:"w-4 h-4"}),d]})]})}function ZM(){return t.jsxs("div",{className:"min-h-screen bg-background",children:[t.jsx(Be,{title:"Transparency & Financials",description:"Hui o HoÊ»ohonua financial reports, annual documents, and grant disclosures. We are committed to full transparency as a 501(c)(3) nonprofit in HawaiÊ»i."}),t.jsxs("div",{className:"relative py-20 px-4 text-white text-center overflow-hidden",style:{background:"linear-gradient(135deg, hsl(200 60% 25%) 0%, hsl(200 50% 32%) 60%, hsl(160 30% 22%) 100%)"},children:[t.jsxs("div",{className:"max-w-3xl mx-auto relative z-10",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-white/15 text-white/90 text-sm font-medium mb-5",children:[t.jsx(yl,{className:"w-4 h-4"}),"Transparency & Financials"]}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4 leading-tight",children:"Open Books, Trusted Stewardship"}),t.jsx("p",{className:"text-white/80 text-lg leading-relaxed max-w-2xl mx-auto",children:"Hui o HoÊ»ohonua is committed to full financial transparency. Every dollar we receive is held in trust for the land and the community we serve."})]}),t.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px)"}})]}),t.jsx(L0,{message:"We are still adding financial documents to this page â annual reports, Form 990, and audited financials are coming soon. Documents already uploaded are available to download below."}),t.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-12 space-y-12",children:[t.jsxs("section",{children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx(yl,{className:"w-5 h-5 text-primary"}),t.jsx("h2",{className:"font-serif text-2xl font-bold text-foreground",children:"501(c)(3) Status & Tax Exemption"})]}),t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6 mb-4",children:[t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"Organization Name"}),t.jsx("p",{className:"font-semibold text-foreground text-sm",children:"Hui o HoÊ»ohonua"})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"Federal EIN"}),t.jsx("p",{className:"font-semibold text-foreground text-sm font-mono",children:"47-3973613"})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"Tax-Exempt Status"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Bt,{className:"w-4 h-4 text-primary"}),t.jsx("p",{className:"font-semibold text-primary text-sm",children:"IRS 501(c)(3) Active"})]})]})]}),t.jsx("p",{className:"text-muted-foreground text-sm mt-5 leading-relaxed border-t border-border pt-5",children:"Hui o HoÊ»ohonua is recognized by the Internal Revenue Service as a tax-exempt public charity under Section 501(c)(3) of the Internal Revenue Code. Donations are tax-deductible to the fullest extent permitted by law. State tax-exempt status is also confirmed by the Hawaii Department of Taxation."})]}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(Yn,{icon:Na,title:"IRS Determination Letter",description:"Official letter from the Internal Revenue Service confirming 501(c)(3) tax-exempt status.",href:`${kl}irs-determination-letter.pdf`,label:"Download IRS Letter (PDF)",available:!0}),t.jsx(Yn,{icon:xm,title:"Hawaii State Tax Exemption",description:"Hawaii Department of Taxation letter confirming state-level tax-exempt status.",href:`${kl}hawaii-tax-exemption-letter.pdf`,label:"Download HI Tax Letter (PDF)",available:!0}),t.jsx(Yn,{icon:yl,title:"Certificate of Good Standing â 2026",description:"Issued January 18, 2026 by the Hawaii Department of Commerce and Consumer Affairs, confirming Hui o HoÊ»ohonua is an active, compliant nonprofit corporation in good standing under Hawaii law.",href:`${kl}certificate-of-good-standing-2026.pdf`,label:"Download Certificate (PDF)",available:!0})]})]}),t.jsxs("section",{children:[t.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[t.jsx(Na,{className:"w-5 h-5 text-primary"}),t.jsx("h2",{className:"font-serif text-2xl font-bold text-foreground",children:"IRS Form 990"})]}),t.jsx("p",{className:"text-muted-foreground text-sm mb-6 ml-8 leading-relaxed",children:"Form 990 is the annual informational return required by the IRS of all 501(c)(3) organizations. It is a public document and disclose
52s revenue, expenses, governance, and program activity."}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(Yn,{icon:Na,title:"Form 990 â FY 2023",description:"Annual informational return filed with the IRS for Fiscal Year 2023.",available:!1,label:"Coming Soon",note:"Placeholder â Upload the most recent 990 PDF here once available. You can also link to your ProPublica Nonprofit Explorer listing."}),t.jsx(Yn,{icon:Na,title:"Form 990 â FY 2022",description:"Annual informational return filed with the IRS for Fiscal Year 2022.",available:!1,label:"Coming Soon",note:"Placeholder â Upload prior year 990 PDF here. Funders often review 2 years."})]}),t.jsxs("div",{className:"mt-4 flex items-start gap-3 bg-blue-50 border border-blue-100 rounded-lg px-5 py-4",children:[t.jsx(Tr,{className:"w-4 h-4 text-blue-600 mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-blue-900 text-sm font-semibold",children:"Find Us on ProPublica Nonprofit Explorer"}),t.jsxs("p",{className:"text-blue-800 text-sm mt-0.5",children:["Our 990 filings are also publicly searchable at ProPublica's Nonprofit Explorer â an independent database of IRS-filed nonprofit tax returns."," ",t.jsx("a",{href:"https://projects.propublica.org/nonprofits/search?q=hui+o+hoohonua",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-blue-900 font-medium",children:"Search ProPublica"})]})]})]})]}),t.jsxs("section",{children:[t.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[t.jsx(Eg,{className:"w-5 h-5 text-primary"}),t.jsx("h2",{className:"font-serif text-2xl font-bold text-foreground",children:"Audited Financials & Annual Report"})]}),t.jsx("p",{className:"text-muted-foreground text-sm mb-6 ml-8 leading-relaxed",children:"Audited financial statements and annual reports demonstrate organizational accountability and responsible stewardship of grant funds."}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(Yn,{icon:Na,title:"Audited Financial Statements",description:"Independent CPA-reviewed or audited financial statements showing HOH revenue, expenses, and net assets.",available:!1,label:"Coming Soon",note:"Placeholder â Upload the most recent audited or reviewed financials here (PDF). If a full audit has not yet been completed, a CPA-reviewed statement or a compiled financial report is acceptable for most grantors."}),t.jsx(Yn,{icon:Na,title:"Annual Report",description:"Year-in-review document covering program outcomes, financial summary, volunteer hours, and community impact.",available:!1,label:"Coming Soon",note:"Placeholder â A 1â2 page PDF annual report covering outcomes, acreage restored, volunteer hours, and financials would satisfy most grantors. No full glossy document required."})]})]}),t.jsxs("section",{children:[t.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[t.jsx(Eg,{className:"w-5 h-5 text-primary"}),t.jsx("h2",{className:"font-serif text-2xl font-bold text-foreground",children:"How We Use Funds"})]}),t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6 md:p-8",children:[t.jsxs("div",{className:"bg-amber-50 border border-amber-100 rounded-lg px-4 py-3 mb-6 flex gap-2 items-start",children:[t.jsx(At,{className:"w-4 h-4 text-amber-600 mt-0.5 flex-shrink-0"}),t.jsx("p",{className:"text-amber-800 text-xs italic",children:"Placeholder â Replace these percentages with actual figures from your most recent 990 or financial statement. The categories below reflect common nonprofit breakdowns."})]}),t.jsx("div",{className:"space-y-4",children:[{label:"Program Services",sublabel:"Restoration labor, native plant propagation, volunteer coordination, education outreach",pct:80,color:"bg-primary"},{label:"Management & General",sublabel:"Administration, accounting, compliance, insurance",pct:12,color:"bg-accent"},{label:"Fundraising",sublabel:"Donor outreach, grant writing, events",pct:8,color:"bg-muted-foreground/40"}].map(n=>t.jsxs("div",{children:[t.jsxs("div",{className:"flex justify-between items-baseline mb-1.5",children:[t.jsx("span",{className:"text-sm font-semibold text-foreground",dangerouslySetInnerHTML:{__html:n.label}}),t.jsxs("span",{className:"text-sm font-bold text-foreground",children:[n.pct,"%"]})]}),t.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden",children:t.jsx("div",{className:`h-full rounded-full ${n.color}`,style:{width:`${n.pct}%`}})}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:n.sublabel})]},n.label))}),t.jsx("p",{className:"text-xs text-muted-foreground mt-6 border-t border-border pt-4 italic",children:"Figures above are placeholders. Verified allocations will be posted upon completion of the next annual financial review."})]})]}),t.jsxs("section",{children:[t.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[t.jsx(xm,{className:"w-5 h-5 text-primary"}),t.jsx("h2",{className:"font-serif text-2xl font-bold text-foreground",children:"Grant Funders & Awards"})]}),t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6",children:[t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed mb-4",children:"Hui o HoÊ»ohonua has received funding from federal and state agencies to support habitat restoration, native species recovery, and community stewardship in the Ê»Ewa Moku. Current and prior grantors include:"}),t.jsx("ul",{className:"space-y-3",children:[{name:"National Fis
52h and Wildlife Foundation (NFWF)",purpose:"Coastal and wetland habitat restoration, Kapapapuhi"},{name:"National Oceanic and Atmospheric Administration (NOAA)",purpose:"Coastal resilience and community stewardship"},{name:"U.S. Fish and Wildlife Service (USFWS)",purpose:"Native species habitat recovery"},{name:"Hawaii DLNR Division of Forestry and Wildlife (DOFAW)",purpose:"Native plant propagation and restoration"}].map(n=>t.jsxs("li",{className:"flex items-start gap-3",children:[t.jsx(Bt,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-semibold text-foreground",children:n.name}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n.purpose})]})]},n.name))}),t.jsx("div",{className:"mt-5 border-t border-border pt-4",children:t.jsxs(pe,{href:"/partners",className:"inline-flex items-center gap-2 text-primary text-sm font-medium hover:underline",children:["View full partner and funder list",t.jsx(xt,{className:"w-4 h-4"})]})})]})]}),t.jsxs("section",{children:[t.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[t.jsx(R2,{className:"w-5 h-5 text-primary"}),t.jsx("h2",{className:"font-serif text-2xl font-bold text-foreground",children:"USDA Farm Service Agency Registration"})]}),t.jsx("p",{className:"text-muted-foreground text-sm mb-6 ml-8 leading-relaxed",children:"Hui o HoÊ»ohonua is registered with the USDA Farm Service Agency (FSA) as a nonprofit agricultural organization in Honolulu County, HawaiÊ»i. FSA registration enables the organization to access federal conservation and agricultural assistance programs in support of its land stewardship mission."}),t.jsx("div",{className:"bg-card border border-card-border rounded-xl p-6 mb-4",children:t.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-6",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"Registered Farms"}),t.jsx("p",{className:"font-semibold text-foreground text-sm",children:"3 FSA Farms"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Nos. 1798, 1799, 1800"})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"Total Acreage"}),t.jsx("p",{className:"font-semibold text-foreground text-sm",children:"~31.4 acres"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Honolulu County"})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"Conservation Status"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Bt,{className:"w-4 h-4 text-primary"}),t.jsx("p",{className:"font-semibold text-primary text-sm",children:"In Compliance"})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"2026 Crop Year"})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"Entity Type"}),t.jsx("p",{className:"font-semibold text-foreground text-sm",children:"Nonprofit Org."}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Churches, Charities & Nonprofits"})]})]})}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:t.jsx(Yn,{icon:Na,title:"USDA FSA Subsidiary Print â 2026",description:"Official USDA Farm Service Agency document confirming Hui o HoÊ»ohonua's producer eligibility, conservation compliance, and registered nonprofit status for 2026.",href:`${kl}usda-subsidiary-print-2026.pdf`,label:"Download Subsidiary Print (PDF)",available:!0})})]}),t.jsx("section",{children:t.jsxs("div",{className:"bg-primary/5 border border-primary/15 rounded-xl p-6 md:p-8 text-center",children:[t.jsx(yl,{className:"w-8 h-8 text-primary mx-auto mb-3"}),t.jsx("h2",{className:"font-serif text-xl font-bold text-foreground mb-2",children:"Questions About Our Finances?"}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed max-w-lg mx-auto mb-6",children:"We welcome questions from grantors, donors, and community members. Contact us directly and we will respond within 5 business days."}),t.jsxs(pe,{href:"/contact",className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-white text-sm font-semibold rounded-md hover:bg-primary/90 transition-colors",children:["Contact Us",t.jsx(xt,{className:"w-4 h-4"})]})]})})]})]})}
52const JM=[{funder:"National Fish and Wildlife Foundation (NFWF)",program:"Five Star & Urban Waters Restoration Grant",amount:"[Amount â add from grant records]",period:"[Year range]",purpose:"Coastal wetland habitat restoration at Kapapapuhi Point Park, including invasive species removal, native plant propagation (Ê»akulikuli and Ê»ahuÊ»awa sedge), and community volunteer engagement.",outcomes:"3.11 acres of coastal wetland restored (GIS-verified). Grant fully expended with zero deobligation. Community volunteer base established across multiple Saturday workdays.",status:"completed"},{funder:"U.S. Fish and Wildlife Service (USFWS)",program:"[Program name â add from grant records]",amount:"[Amount]",period:"[Year range]",purpose:"Native species habitat recovery and community stewardship capacity building in the Ê»Ewa Moku region.",outcomes:"[Outcomes â add verified results from grant closeout report]",status:"completed",placeholder:!0},{funder:"National Oceanic and Atmospheric Administration (NOAA)",program:"[Program name â add from grant records]",amount:"[Amount]",period:"[Year range]",purpose:"Coastal resilience and community stewardship programming.",outcomes:"[Outcomes â add verified results]",status:"completed",placeholder:!0},{funder:"Hawaii DLNR â Division of Forestry and Wildlife (DOFAW)",program:"[Program name]",amount:"[Amount]",period:"[Year range]",purpose:"Native plant propagation and upland/coastal restoration support.",outcomes:"[Outcomes]",status:"completed",placeholder:!0}],eA=[{funder:"Joint Base Pearl HarborâHickam (JBPHH)",program:"Community Partnership â Base Beautification & Heritage Stewardship",period:"Ongoing",purpose:"HOH serves as the primary community volunteer coordinator for authorized stewardship at JBPHH â organizing monthly workdays at Pearl Harbor Aviation Museum (PHAM) on MokuÊ»umeÊ»ume (Ford Island). Work includes landscaping, beautification, and heritage site care.",outcomes:"PHAM Community Monthly Workday established on the 1st Saturday of every month. Consistent volunteer turnout and sustained partnership with base Public Works Command.",status:"active"},{funder:"[Active Funder â add if applicable]",program:"[Program name]",amount:"[Amount]",period:"[Grant period]",purpose:"[Purpose â describe what the current grant funds]",outcomes:"[In-progress outcomes and milestones]",status:"active",placeholder:!0}],tA=[{funder:"National Fish and Wildlife Foundation (NFWF)",program:"Coastal Resilience / Five Star Program",purpose:"Continued expansion of Kapapapuhi Point Park restoration â Phase 2 native plant propagation, loko iÊ»a (fishpond) structural restoration, and community education programming.",status:"seeking",placeholder:!0},{funder:"NOAA â Bipartisan Infrastructure Law / Coastal and Waterways Program",program:"[Program name]",purpose:"Coastal resilience programming and community-based restoration in the Honouliuli and Waipahu watersheds.",status:"seeking",placeholder:!0},{funder:"USFWS â Tribal Wildlife Grants or Partners for Fish and Wildlife",program:"[Program name]",purpose:"Native species recovery and habitat restoration in partnership with DLNR and JBPHH.",status:"seeking",placeholder:!0},{funder:"[Additional Target Funder]",program:"[Program]",purpose:"[Describe funding need and intended program or expansion]",status:"seeking",placeholder:!0}],aA={completed:{label:"Completed",icon:Bt,pill:"bg-green-50 text-green-800 border-green-200",iconColor:"text-green-600",accent:"border-l-green-400"},active:{label:"Active",icon:Xt,pill:"bg-blue-50 text-blue-800 border-blue-200",iconColor:"text-blue-600",accent:"border-l-blue-400"},seeking:{label:"Seeking Funding",icon:Ey,pill:"bg-amber-50 text-amber-800 border-amber-200",iconColor:"text-amber-600",accent:"border-l-amber-400"}};function nA({grant:n}){const s=aA[n.status],i=s.icon;return t.jsx("div",{className:`bg-card border border-card-border rounded-xl overflow-hidden shadow-sm border-l-4 ${s.accent}`,children:t.jsxs("div",{className:"p-5 md:p-6",children:[n.placeholder&&t.jsxs("div",{className:"flex items-center gap-2 bg-amber-50 border border-amber-100 rounded px-3 py-2 mb-4",children:[t.jsx(At,{className:"w-3.5 h-3.5 text-amber-600 flex-shrink-0"}),t.jsx("p",{className:"text-xs text-amber-700 italic",children:"Placeholder â replace with actual grant details from your records."})]}),t.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3 mb-3",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx("p",{className:"font-serif font-bold text-foreground text-base leading-snug",children:n.funder}),n.program&&t.jsx("p",{className:"text-sm text-muted-foreground mt-0.5 font-medium",children:n.program})]}),t.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0 flex-wrap",children:[n.amount&&t.jsx("span",{className:"text-sm font-bold text-foreground bg-muted px-2.5 py-1 rounded-md",children:n.amount}),n.period&&t.jsx("span",{className:"text-xs text-muted-foreground",children:n.period}),t.jsxs("span",{className:`inline-flex items-center gap-1.5 text-xs font-semibold px-2.5 py-1 rounded-full border ${s.pill}`,children:[t.jsx(i,{className:`w-3 h-3 ${s.iconColor}`}),s.label]})]})]}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"Purpose"}
52),t.jsx("p",{className:"text-sm text-foreground/75 leading-relaxed",children:n.purpose})]}),n.outcomes&&t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:n.status==="active"?"Progress to Date":"Outcomes Achieved"}),t.jsx("p",{className:"text-sm text-foreground/75 leading-relaxed",children:n.outcomes})]})]})]})})}function Ju({title:n,subtitle:s,grants:i,icon:l,iconColor:d}){return t.jsxs("section",{children:[t.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[t.jsx(l,{className:`w-5 h-5 ${d}`}),t.jsx("h2",{className:"font-serif text-2xl font-bold text-foreground",children:n})]}),t.jsx("p",{className:"text-muted-foreground text-sm mb-6 ml-8 leading-relaxed",children:s}),t.jsx("div",{className:"space-y-4",children:i.map((m,p)=>t.jsx(nA,{grant:m},p))})]})}function rA(){return t.jsxs("div",{className:"min-h-screen bg-background",children:[t.jsx(Be,{title:"Grants",description:"Explore past, present, and future grants supporting Hui o HoÊ»ohonua's environmental restoration and community stewardship programs in Ê»Ewa Moku, OÊ»ahu."}),t.jsxs("div",{className:"relative py-20 px-4 text-white text-center overflow-hidden",style:{background:"linear-gradient(135deg, hsl(160 25% 18%) 0%, hsl(142 48% 28%) 60%, hsl(160 30% 22%) 100%)"},children:[t.jsxs("div",{className:"max-w-3xl mx-auto relative z-10",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-white/15 text-white/90 text-sm font-medium mb-5",children:[t.jsx(_g,{className:"w-4 h-4"}),"Grant History & Capacity"]}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4 leading-tight",children:"Past, Present & Future Grants"}),t.jsx("p",{className:"text-white/80 text-lg leading-relaxed max-w-2xl mx-auto",children:"Hui o HoÊ»ohonua has a proven track record of responsible stewardship of public and private grant funds. This page documents our funding history, current partnerships, and areas where we are actively seeking support."})]}),t.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px)"}})]}),t.jsx("div",{className:"max-w-4xl mx-auto px-4 py-4",children:t.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-lg px-5 py-4 flex gap-3 items-start my-6",children:[t.jsx(At,{className:"w-4 h-4 text-amber-600 mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-amber-900 font-semibold text-sm",children:"Page in Progress"}),t.jsx("p",{className:"text-amber-800 text-sm mt-1 leading-relaxed",children:"Several grant entries below are placeholders. Replace bracketed text with actual grant amounts, periods, program names, and outcomes from your grant records and closeout reports."})]})]})}),t.jsx("div",{className:"max-w-4xl mx-auto px-4 pb-6",children:t.jsx("div",{className:"grid grid-cols-3 gap-4 text-center",children:[{label:"Grants Completed",value:"4+",sub:"Federal & state awards"},{label:"Acres Restored",value:"3.11",sub:"GIS-verified at Kapapapuhi"},{label:"Community Participants",value:"20,000+",sub:"Since 2015"}].map(n=>t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-5",children:[t.jsx("p",{className:"font-serif text-3xl font-bold text-primary",children:n.value}),t.jsx("p",{className:"font-semibold text-sm text-foreground mt-1",children:n.label}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:n.sub})]},n.label))})}),t.jsxs("div",{className:"max-w-4xl mx-auto px-4 pb-16 space-y-14",children:[t.jsx(Ju,{title:"Past Grants â Completed",subtitle:"Grants that have been fully expended and closed out. These demonstrate our track record of responsible fund management and measurable outcomes.",grants:JM,icon:Bt,iconColor:"text-green-600"}),t.jsx(Ju,{title:"Present â Active Partnerships & Funding",subtitle:"Current active grants, government partnerships, and funded programs underway.",grants:eA,icon:Xt,iconColor:"text-blue-600"}
52),t.jsx(Ju,{title:"Future â Funding We Are Seeking",subtitle:"Programs and expansions for which Hui o HoÊ»ohonua is actively pursuing grant support. Grantors and funders interested in partnering are encouraged to reach out.",grants:tA,icon:Ey,iconColor:"text-amber-600"}),t.jsxs("div",{className:"bg-primary/5 border border-primary/15 rounded-xl p-6 md:p-8 text-center",children:[t.jsx(_g,{className:"w-8 h-8 text-primary mx-auto mb-3"}),t.jsx("h2",{className:"font-serif text-xl font-bold text-foreground mb-2",children:"Interested in Funding Our Work?"}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed max-w-lg mx-auto mb-4",children:"We welcome conversations with foundations, government agencies, and corporate partners who share our commitment to Ê»Äina stewardship, food sovereignty, and community resilience in the Ê»Ewa Moku."}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed max-w-lg mx-auto mb-6",children:"For financial documents including our IRS determination letter, Certificate of Good Standing, and 501(c)(3) confirmation, visit our Transparency page."}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[t.jsxs(pe,{href:"/contact",className:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-primary text-white text-sm font-semibold rounded-md hover:bg-primary/90 transition-colors",children:["Contact Us",t.jsx(xt,{className:"w-4 h-4"})]}),t.jsxs(pe,{href:"/transparency",className:"inline-flex items-center justify-center gap-2 px-6 py-3 border border-border text-foreground text-sm font-semibold rounded-md hover:bg-muted/50 transition-colors",children:["Transparency & Financials",t.jsx(xt,{className:"w-4 h-4"})]})]})]})]})]})}const _l="https://www.honolulu.gov/agencies/executive-branch/168-main-site/29273-jm-forms.html",sA=[{step:"1",title:"Download the Application",desc:`Go to the City & County of Honolulu's website and download form CS-L(MVR)211 â "Application/Replacement for Organization License Plates/Decals."`,action:{label:"Go to Honolulu.gov Forms",href:_l,external:!0}},{step:"2",title:"Fill Out the Form",desc:"Select MÄlama PuÊ»uloa / Hui o HoÊ»ohonua as your organization. You'll need your current vehicle registration certificate."},{step:"3",title:"Submit at Any Satellite City Hall",desc:"Bring the completed form and your payment to any Satellite City Hall on OÊ»ahu. No appointment needed."},{step:"4",title:"Pay the Fee â $30.50 Total",desc:"$25 goes directly to Hui o HoÊ»ohonua as a fundraising fee. The remaining $5.50 covers the plate and registration emblem."}],iA=[{q:"Who can get an organization license plate?",a:"Any registered motor vehicle owner who is a resident of HawaiÊ»i and completes the application. Plates may be assigned to cars and trucks â there are no organization plates for motorcycles."},{q:"How much goes to Hui o HoÊ»ohonua?",a:"$25 of the $30.50 fee goes directly to HOH every time you apply and every time you renew. The City & County retains a $5 administrative fee per issuance/renewal, and $0.50 covers the plate emblem."},{q:"Does this replace my regular license plate?",a:"Yes. The organization plate replaces your standard HawaiÊ»i plate. The HOH decal is affixed to the left side of the plate."},{q:"Can I have multiple vehicles with the HOH plate?",a:"Yes. There is no limit on the number of vehicles a registered owner may request the same or different organization plates for."},{q:"What happens at renewal?",a:"The $25 fundraising fee is charged again each year at renewal â so your plate continues supporting HOH annually."},{q:"What if the decal is lost or damaged?",a:"Replacement decals are issued free of charge. Complete an application form at any Satellite City Hall."}];function oA(){return t.jsxs("div",{className:"min-h-screen bg-background",children:[t.jsx(Be,{title:"License Plate",description:"Support Hui o HoÊ»ohonua with a HawaiÊ»i Environmental Awareness specialty license plate. Learn how to order yours and help fund community restoration programs in Ê»Ewa Moku."}),t.jsx("div",{className:"bg-amber-400 text-amber-950 px-4 py-3",children:t.jsxs("div",{className:"max-w-4xl mx-auto flex flex-col sm:flex-row items-center justify-center gap-2 text-center sm:text-left",children:[t.jsx(y2,{className:"w-5 h-5 flex-shrink-0"}),t.jsxs("p",{className:"text-sm font-bold tracking-wide uppercase",children:["This page is currently in development â the license plate program is not yet open for applications. ",t.jsx("span",{className:"font-medium normal-case",children:"Launch date and application process are to be determined (TBD). Check back for updates."})]})]})}),t.jsxs("div",{className:"relative py-20 px-4 text-white text-center overflow-hidden",style:{background:"linear-gradient(135deg, hsl(160 25% 16%) 0%, hsl(142 48% 26%) 55%, hsl(200 50% 28%) 100%)"},children:[t.jsxs("div",{className:"max-w-3xl mx-auto relative z-10",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-white/15 text-white/90 text-sm font-medium mb-5",children:[t.jsx(Vu,{className:"w-4 h-4"}),"Community Fundraiser"]}),t.jsxs("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4 leading-tight",children:["MÄlama PuÊ»uloa",t.jsx("br",{}),t.jsx("span",{className:"text-white/80 text-3xl md:text-4xl",children:"Organization License Plate"})]}),t.jsx("p",{className:"text-white/80 text-lg leading-relaxed max-w-2xl mx-auto",children:"Show your aloha Ê»Äina on the road. HawaiÊ»i HB2715 (2024) authorized a special license plate honoring MÄlama PuÊ»uloa and the work of Hui o HoÊ»ohonua â and every plate registration raise
52s funds directly for our mission."}),t.jsxs("div",{className:"mt-8 flex flex-col sm:flex-row gap-4 justify-center",children:[t.jsxs("a",{href:_l,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-7 py-3.5 bg-white text-primary font-semibold text-sm rounded-md hover:bg-white/90 transition-colors shadow-md",children:[t.jsx(pn,{className:"w-4 h-4"}),"Get the Application Form"]}),t.jsx("a",{href:"mailto:[email protected]?subject=License Plate Program",className:"inline-flex items-center justify-center gap-2 px-7 py-3.5 border border-white/40 text-white font-semibold text-sm rounded-md hover:bg-white/10 transition-colors",children:"Contact Us"})]})]}),t.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px)"}})]}),t.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-12 space-y-14",children:[t.jsx("section",{children:t.jsx("div",{className:"grid md:grid-cols-3 gap-5 text-center",children:[{icon:Og,value:"$25",label:"Per Plate Goes to HOH",sub:"Every initial application & every renewal",color:"text-green-600",bg:"bg-green-50"},{icon:Vu,value:"150",label:"Applicants Needed",sub:"Required to activate the program statewide",color:"text-primary",bg:"bg-primary/5"},{icon:Na,value:"HB2715",label:"State Legislature Authorized",sub:"Passed in 2024 â names HOH by statute",color:"text-blue-600",bg:"bg-blue-50"}].map(n=>t.jsxs("div",{className:`${n.bg} border border-border rounded-xl p-6`,children:[t.jsx(n.icon,{className:`w-7 h-7 ${n.color} mx-auto mb-2`}),t.jsx("p",{className:`font-serif text-3xl font-bold ${n.color}`,children:n.value}),t.jsx("p",{className:"font-semibold text-sm text-foreground mt-1",children:n.label}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1 leading-snug",children:n.sub})]},n.label))})}),t.jsxs("section",{children:[t.jsx("h2",{className:"font-serif text-2xl font-bold text-foreground mb-2",children:"Why This Plate Matters"}),t.jsx("div",{className:"w-12 h-1 bg-primary rounded mb-6"}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6",children:[t.jsxs("h3",{className:"font-semibold text-base mb-3 flex items-center gap-2",children:[t.jsx(Na,{className:"w-4 h-4 text-primary"}),"HawaiÊ»i HB2715 â 2024"]}),t.jsxs("p",{className:"text-sm text-foreground/75 leading-relaxed mb-3",children:["The HawaiÊ»i State Leg
52islature passed HB2715 in 2024, authorizing special number plates to honor ",t.jsx("strong",{children:"MÄlama PuÊ»uloa"})," and recognize Hui o HoÊ»ohonua's contributions to the restoration of PuÊ»uloa (Pearl Harbor)."]}),t.jsxs("p",{className:"text-sm text-foreground/75 leading-relaxed",children:["The bill specifically recognizes that PuÊ»uloa was home to at least"," ",t.jsx("strong",{children:"30 loko iÊ»a (fishponds) and loÊ»i kalo"})," and that HOH is leading community-based restoration of this culturally significant place."]})]}),t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6",children:[t.jsxs("h3",{className:"font-semibold text-base mb-3 flex items-center gap-2",children:[t.jsx(Og,{className:"w-4 h-4 text-green-600"}),"How Funds Are Used"]}),t.jsxs("p",{className:"text-sm text-foreground/75 leading-relaxed mb-3",children:["Every plate registration and annual renewal generates ",t.jsx("strong",{children:"$25 for HOH"}),". The City & County issues HOH a quarterly statement and check covering all initial issuances, renewals, and total payments received during that period."]}),t.jsx("p",{className:"text-sm text-foreground/75 leading-relaxed",children:"Funds support our on-the-ground restoration work â native plant propagation, loko iÊ»a stewardship, loÊ»i kalo farming, and community education across the Ê»Ewa Moku."})]})]})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"font-serif text-2xl font-bold text-foreground mb-2",children:"How to Get Your Plate"}),t.jsx("div",{className:"w-12 h-1 bg-primary rounded mb-6"}),t.jsx("div",{className:"space-y-4",children:sA.map(n=>t.jsxs("div",{className:"flex gap-5 bg-card border border-card-border rounded-xl p-5",children:[t.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-full bg-primary text-white text-sm font-bold flex items-center justify-center",children:n.step}),t.jsxs("div",{className:"flex-1",children:[t.jsx("p",{className:"font-semibold text-foreground mb-1",children:n.title}),t.jsx("p",{className:"text-sm text-foreground/70 leading-relaxed",children:n.desc}),n.action&&t.jsxs("a",{href:n.action.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-3 text-sm font-medium text-primary hover:text-primary/80 transition-colors",children:[n.action.label,t.jsx(Tr,{className:"w-3.5 h-3.5"})]})]})]},n.step))})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"font-serif text-2xl font-bold text-foreground mb-2",children:"Requirements & Eligibility"}),t.jsx("div",{className:"w-12 h-1 bg-primary rounded mb-6"}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-5",children:[t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-5",children:[t.jsx("h3",{className:"font-semibold text-sm uppercase tracking-wide text-muted-foreground mb-3",children:"You Qualify If Youâ¦"}),t.jsx("ul",{className:"space-y-2",children:["Are a registered motor vehicle owner in HawaiÊ»i","Own a car or truck (no motorcycles)","Have your most recent registration certificate","Can pay the $30.50 application fee"].map(n=>t.jsxs("li",{className:"flex items-start gap-2 text-sm text-foreground/75",children:[t.jsx(Bt,{className:"w-4 h-4 text-green-600 flex-shrink-0 mt-0.5"}),n]},n))})]}),t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-5",children:[t.jsx("h3",{className:"font-semibold text-sm uppercase tracking-wide text-muted-foreground mb-3",children:"Where to Apply"}),t.jsxs("div",{className:"flex items-start gap-2 text-sm text-foreground/75 mb-3",children:[t.jsx(Sa,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),t.jsx("span",{children:"Any Satellite City Hall on OÊ»ahu â no appointment needed."})]}),t.jsxs("div",{className:"flex items-start gap-2 text-sm text-foreground/75 mb-4",children:[t.jsx(Tr,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),t.jsxs("span",{children:["Or download form"," ",t.jsx("strong",{children:"CS-L(MVR)211"})," online and submit in person."]})]}),t.jsxs("a",{href:_l,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-primary hover:text-primary/80 transition-colors",children:["Find the form on Honolulu.gov",t.jsx(Tr,{className:"w-3.5 h-3.5"})]})]})]}),t.jsxs("div",{className:"mt-4 bg-amber-50 border border-amber-200 rounded-xl p-5 flex gap-3",children:[t.jsx(At,{className:"w-4 h-4 text-amber-600 flex-shrink-0 mt-0.5"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-semibold text-amber-900 mb
52-1",children:"150 Applicants Needed to Activate the Program"}),t.jsx("p",{className:"text-sm text-amber-800 leading-relaxed",children:"HawaiÊ»i law requires at least 150 confirmed applicants before organization plates are issued statewide. Spread the word â the more kama'Äina who sign up, the sooner we can get HOH plates on the road across the islands."})]})]})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"font-serif text-2xl font-bold text-foreground mb-2",children:"Frequently Asked Questions"}),t.jsx("div",{className:"w-12 h-1 bg-primary rounded mb-6"}),t.jsx("div",{className:"space-y-3",children:iA.map(n=>t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-5",children:[t.jsx("p",{className:"font-semibold text-foreground mb-2 text-sm",children:n.q}),t.jsx("p",{className:"text-sm text-foreground/70 leading-relaxed",children:n.a})]},n.q))})]}),t.jsx("section",{children:t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6 md:p-8",children:[t.jsxs("h2",{className:"font-serif text-xl font-bold text-foreground mb-2 flex items-center gap-2",children:[t.jsx(Ya,{className:"w-5 h-5 text-primary"}),"Official Documentation"]}),t.jsx("p",{className:"text-sm text-foreground/70 leading-relaxed mb-5",children:"The following documents govern the organization license plate program and HOH's eligibility."}),t.jsx("div",{className:"grid sm:grid-cols-3 gap-3",children:[{label:"HawaiÊ»i HB2715 (2024)",sub:"State law authorizing MÄlama PuÊ»uloa plates",icon:Na},{label:"City & County Instructions",sub:"Organization license plate requirements",icon:Na},{label:"IRS 501(c)(3) Letter",sub:"Confirms HOH's tax-exempt status",icon:Na,href:"/irs-determination-letter.pdf"}].map(n=>t.jsxs("div",{className:"bg-muted/40 border border-border rounded-lg p-4 flex items-start gap-3",children:[t.jsx(n.icon,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-semibold text-foreground leading-snug",children:n.label}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:n.sub}),n.href&&t.jsxs("a",{href:n.href,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:text-primary/80 mt-1 inline-flex items-center gap-1",children:["View PDF ",t.jsx(Tr,{className:"w-3 h-3"})]})]})]},n.label))})]})}),t.jsxs("section",{className:"bg-primary/5 border border-primary/15 rounded-xl p-6 md:p-8 text-center",children:[t.jsx(Vu,{className:"w-8 h-8 text-primary mx-auto mb-3"}),t.jsx("h2",{className:"font-serif text-xl font-bold text-foreground mb-2",children:"Ready to Represent MÄlama PuÊ»uloa?"}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed max-w-lg mx-auto mb-6",children:"Download the form, fill it out, and head to your nearest Satellite City Hall. Questions? Reach out to us â we're happy to walk you through it."}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[t.jsxs("a",{href:_l,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-primary text-white text-sm font-semibold rounded-md hover:bg-primary/90 transition-colors",children:[t.jsx(pn,{className:"w-4 h-4"}),"Get Application Form (CS-L(MVR)211)"]}),t.jsx("a",{href:"mailto:[email protected]?subject=License Plate Program Question",className:"inline-flex items-center justify-center gap-2 px-6 py-3 border border-border text-foreground text-sm font-semibold rounded-md hover:bg-muted/50 transition-colors",children:"Email Us a Question"})]})]})]})]})}const lA=[{id:"navy",name:"United States Navy",shortName:"Navy",color:"hsl(210 60% 38%)",governingDoc:"SECNAV M-1650.1",governingDocUrl:"https://www.mynavyhr.navy.mil/Support-Services/Military-Personnel/Awards/",sustainedPeriod:"Normally 36 months (not an absolute minimum â exceptional service in a shorter period may qualify if the overall impact and participation level justify the award)",awardingAuthority:"Commanding officer with authority to award the Navy and Marine Corps Achievement Medal (NAM)",submissionMethod:"OPNAV 1650/3; volunteer service must be attested to by an official of the organization served; must be entered into official channels within 3 years after the volunteer period ends",awardComponents:"Ribbon and medal only â no citation or certificate is issued (the awarding authority may issue an optional letter documenting approval)",multiplePerTour:"Not authorized",deadlineToSubmit:"Within 3 years after the volunteer period ends",notes:["
52Service must not be performed while deployed in a combat theater.","Volunteer activity that is part of your expected duties does not qualify.","Fundraising for fellow service members does not qualify.","Helping only other service members does not qualify.","Combined Federal Campaign activity does not qualify.","Officially sponsored Navy/Marine Corps participation does not qualify.","Service tied to your official government position does not qualify."]},{id:"marines",name:"United States Marine Corps",shortName:"Marine Corps",color:"hsl(0 55% 38%)",governingDoc:"SECNAV M-1650.1",governingDocUrl:"https://www.marines.mil/News/Publications/MCPEL/Electronic-Library-Display/Article/899759/secnav-m-16501/",sustainedPeriod:"Normally 36 months (same as Navy â a shorter period may qualify if service is exceptional in impact and level of participation)",awardingAuthority:"Commanding officer with authority to award the NAM",submissionMethod:"IAPS (the Integrated Awards Processing System) serves as the official record; volunteer service must be attested to by an official of the organization served; must be entered within 3 years after service ends",awardComponents:"Ribbon and medal only â no citation or certificate",multiplePerTour:"Not authorized",deadlineToSubmit:"Within 3 years after the volunteer period ends",notes:["Service must not be performed while deployed in a combat theater.","Toys for Tots participation that was part of official duties does not qualify.","Fundraising tied to support for fellow service members does not qualify.","Comb
52ined Federal Campaign activity does not qualify.","Officially sponsored Navy or Marine Corps participation does not qualify.","Service tied to your official government position does not qualify."]},{id:"army",name:"United States Army",shortName:"Army",color:"hsl(90 40% 32%)",governingDoc:"AR 600-8-22",governingDocUrl:"https://armypubs.army.mil/ProductMaps/PubForm/Details.aspx?PUB_ID=1004527",sustainedPeriod:"No fixed minimum â 36 months / 500 hours is given as an example of sustained service, not a hard rule; the key factor is overall level of participation and impact",awardingAuthority:"LTC (O-5) and above, and certain equivalent commanders, directors, and principal officials",submissionMethod:"Memorandum through official channels, with supporting proof such as hour logs, letters, or certificates from the organization served",awardComponents:"Medal and ribbon set",multiplePerTour:"Not authorized during a single assignment or tour",deadlineToSubmit:"Per official channels â consult your awards NCO",notes:["A single act or achievement does not qualify.","Attending meetings or social events alone does not qualify.","Tasked, detailed, or command-sponsored service does not qualify.","Service that results in personal gain does not qualify.","Service that only benefits other service members does not qualify."]},{id:"coastguard",name:"United States Coast Guard",shortName:"Coast Guard",color:"hsl(25 70% 40%)",governingDoc:"COMDTINST M.1650.25E",governingDocUrl:"https://www.dcms.uscg.mil/Our-Organization/Assistant-Commandant-for-Human-Resources-CG-1/Awards/",sustainedPeriod:"No fixed minimum â award periods of less than two years are uncommon; intended for exceptional community support over an extended period, not a single act",awardingAuthority:"Per the chain of command; recommendation is submitted by the member's immediate supervisor",submissionMethod:"Form CG-1650 with Summary of Action through chain of command. The summary must include: the organization's name, address, and point of contact; the period of service; the mission and population served; the service rendered and impact/results achieved; and the approximate number of hours contributed",awardComponents:"Medal, ribbon bar, and a one-page letter signed by the awarding authority; subsequent awards are shown with 3/16-inch bronze stars (silver star for the sixth award)",multiplePerTour:"Consult your awards office for current guidance",deadlineToSubmit:"Per official channels â consult your awards office",notes:["Volunteer service performed while deployed in support of a contingency operation does not qualify.","Service must benef
52it the civilian community (including the military family community)."]},{id:"airforce",name:"United States Air Force / Space Force",shortName:"Air Force / Space Force",color:"hsl(215 55% 45%)",governingDoc:"DAFI 36-2803",governingDocUrl:"https://www.af.mil/About-Us/Fact-Sheets/Display/Article/104520/military-outstanding-volunteer-service-medal/",sustainedPeriod:"Sustained period of direct civilian-community service; consult your unit awards office for current thresholds",awardingAuthority:"Per the chain of command â consult your awards NCO or unit admin",submissionMethod:"AF Form 1206 (Nomination for Award) or equivalent; requirements may vary by major command (MAJCOM) â always check with your local awards office for the current submission package requirements",awardComponents:"Medal and ribbon set",multiplePerTour:"Consult your awards office",deadlineToSubmit:"Per official channels â consult your awards office",notes:["Criteria mirror DoD-wide requirements: voluntary, civilian community benefit, sustained, direct, significant results.","Requirements and nomination formats can vary by MAJCOM or command â always verify locally.","Service must not be tasked or command-sponsored."]}],cA=["Coastal restoration and native plant work (HOH808 â)","Traditional Hawaiian farming â loÊ»i kalo (HOH808 â)","Coastal cleanup and environmental stewardship","Youth coaching and mentoring programs","Tutoring and academic support","Food bank or homeless shelter volunteering","Hospital or hospice volunteering","Literacy and educational programs","Scout leader / youth organization leader","Nonprofit park, museum, or cultural site volunteer"],dA=["Service tied to your official military duties","Tasked, detailed, or command-sponsored participation","Fundraising for fellow service members","Volunteering that only benefits other service members","Combined Federal Campaign (CFC) activity","Service performed while deployed in a combat theater","A single event or one-time act (must be sustained)","Activity that results in personal financial gain"];function uA({branch:n}){const[s,i]=w.useState(!1);return t.jsxs("div",{className:"border border-border rounded-xl overflow-hidden",children:[t.jsxs("button",{className:"w-full flex items-center justify-between px-5 py-4 text-left hover:bg-muted/40 transition-colors",onClick:()=>i(l=>!l),children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("span",{className:"w-3 h-3 rounded-full flex-shrink-0",style:{background:n.color}}),t.jsx("span",{className:"font-semibold",children:n.name}),t.jsx("span",{className:"hidden sm:inline text-xs text-muted-foreground border border-border rounded-full px-2 py-0.5",children:n.governingDoc}
52)]}),s?t.jsx(jy,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"}):t.jsx(zl,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"})]}),s&&t.jsxs("div",{className:"px-5 pb-5 space-y-4 border-t border-border bg-muted/20",children:[t.jsxs("div",{className:"pt-4 grid sm:grid-cols-2 gap-4",children:[t.jsx(Mr,{label:"Governing document",children:t.jsxs("a",{href:n.governingDocUrl,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline inline-flex items-center gap-1",children:[n.governingDoc,t.jsx(Tr,{className:"w-3 h-3"})]})}),t.jsx(Mr,{label:"Sustained service period",children:n.sustainedPeriod}),t.jsx(Mr,{label:"Awarding authority",children:n.awardingAuthority}),t.jsx(Mr,{label:"Submission method",children:n.submissionMethod}),t.jsx(Mr,{label:"Award components",children:n.awardComponents}),t.jsx(Mr,{label:"Multiple awards per tour",children:n.multiplePerTour}),t.jsx(Mr,{label:"Deadline to submit",className:"sm:col-span-2",children:n.deadlineToSubmit})]}),n.notes.length>0&&t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground mb-2",children:"Branch-specific disqualifiers & notes"}),t.jsx("ul",{className:"space-y-1",children:n.notes.map((l,d)=>t.jsxs("li",{className:"flex items-start gap-2 text-sm text-foreground/80",children:[t.jsx(Xn,{className:"w-3.5 h-3.5 text-red-400 flex-shrink-0 mt-0.5"}),l]},d))})]})]})]})}function Mr({label:n,children:s,className:i=""}){return t.jsxs("div",{className:i,children:[t.jsx("p",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground mb-0.5",children:n}),t.jsx("p",{className:"text-sm text-foreground/90 leading-relaxed",children:s})]})}function mA(){return t.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-12 space-y-12",children:[t.jsx(Be,{title:"MOVSM Volunteer Recognition",description:"Hui o HoÊ»ohonua volunteers may qualify for the Military Outstanding Volunteer Service Medal (MOVSM). Learn how to document your service hours at our stewardship sites."}),t.jsxs("div",{children:[t.jsxs(pe,{href:"/volunteer",className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors mb-6",children:[t.jsx(Q1,{className:"w-4 h-4"}),"Back to Volunteer"]}),t.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[t.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:t.jsx(Cy,{className:"w-5 h-5 text-primary"})}),t.jsx("h1",{className:"font-serif text-3xl font-bold",children:"Military Outstanding Volunteer Service Medal"})]}),t.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"The MOVSM is a DoD-wide military medal awarded to active-duty, Reserve, and National Guard members who perform outstanding volunteer community service of a sustained, direct, and consequential nature. It was authorized by Executive Order 12830 on January 9, 1993. Volunteer work with Hui o HoÊ»ohonua can qualify â here is what each branch requires."})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"font-serif text-xl font-bold mb-1",children:"Core requirements (all branches)"}),t.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Every branch applies the same five DoD-wide criteria. Your service must be:"}),t.jsx("ol",{className:"space-y-2",children:["Voluntary â freely given, without compensation or compulsion.","To the civilian community â including the military family community.","Significant â producing tangible, measurable results.","Sustained and direct â an ongoing commitment over time, not a single event.","Favorable to your branch and the Department of Defense."].map((n,s)=>t.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[t.jsx("span",{className:"w-5 h-5 rounded-full bg-primary text-white text-xs font-bold flex items-center justify-center flex-shrink-0 mt-0.5",children:s+1}),n]},s))})]}),t.jsxs("section",{className:"grid sm:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsxs("h2",{className:"font-serif text-xl font-bold mb-3 flex items-center gap-2",children:[t.jsx(zt,{className:"w-5 h-5 text-green-600"}),"What qualifies"]}),t.jsx("ul",{className:"space-y-1.5",children:cA.map((n,s)=>t.jsxs("li",{className:"flex items-start gap-2 text-sm text-foreground
52/80",children:[t.jsx(zt,{className:"w-3.5 h-3.5 text-green-500 flex-shrink-0 mt-0.5"}),n]},s))})]}),t.jsxs("div",{children:[t.jsxs("h2",{className:"font-serif text-xl font-bold mb-3 flex items-center gap-2",children:[t.jsx(Xn,{className:"w-5 h-5 text-red-500"}),"What does not qualify"]}),t.jsx("ul",{className:"space-y-1.5",children:dA.map((n,s)=>t.jsxs("li",{className:"flex items-start gap-2 text-sm text-foreground/80",children:[t.jsx(Xn,{className:"w-3.5 h-3.5 text-red-400 flex-shrink-0 mt-0.5"}),n]},s))})]})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"font-serif text-xl font-bold mb-2",children:"Does HOH count?"}),t.jsxs("div",{className:"bg-primary/5 border border-primary/20 rounded-xl p-5 text-sm leading-relaxed space-y-3",children:[t.jsx("p",{children:"Yes â Hui o HoÊ»ohonua is a 501(c)(3) nonprofit providing direct, sustained community environmental and cultural restoration service. Our work is entirely civilian and community-driven, not affiliated with any military command or government office. Participation is voluntary and off-duty."}),t.jsx("p",{children:"What makes HOH a strong MOVSM candidate: each program meets on a regular recurring schedule (monthly workdays), your hours are logged and verifiable, and you will be working alongside the local civilian community on projects with clear, tangible environmental and cultural outcomes."}),t.jsx("p",{children:"To support your nomination package, HOH can provide:"}),t.jsx("ul",{className:"space-y-1 pl-1",children:["An official letter on HOH letterhead verifying your volunteer service, signed by the executive director","A summary of the program mission, the population served, and the environmental impact","A printout of your logged volunteer hours with dates and project descriptions"].map((n,s)=>t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(zt,{className:"w-3.5 h-3.5 text-primary flex-shrink-0 mt-0.5"}),n]},s))}),t.jsxs("p",{children:["To request a verification letter, email"," ",t.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})," ","with your name, branch, the period of service, and a brief description of your nomination timeline. Allow 5â7 business days."]})]})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"font-serif text-xl font-bold mb-2",children:"How to document your hours"}),t.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:['Start building your record now. Every time you volunteer with HOH, log your hours using the "Log Hours" button on the'," ",t.jsx(pe,{href:"/volunteer",className:"text-primary hover:underline",children:"Volunteer page"}),'. Your record will be tied to your email address and available for printing at any time under "Look Up My Hours."']}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"When you are ready to put together your nomination package, print your full service record, request a letter from HOH, and consult the branch-specific requirements below to ensure your package meets your command's standards."})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"font-serif text-xl font-bold mb-1",children:"Requirements by branch"}),t.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Each branch applies the same five core criteria, but the nomination form, awarding authority, timeline, and other administrative requirements differ â and within some branches, individual commands may add their own guidance. Always verify with your unit awards office or admin before submitting."}),t.jsx("div",{className:"space-y-3",children:lA.map(n=>t.jsx(uA,{branch:n},n.id))})]}),t.jsxs("div",{className:"border-t border-border pt-8 text-center",children:[t.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Ready to sign up and start building your service record?"}),t.jsx(pe,{href:"/volunteer",className:"inline-flex items-center gap-2 px-6 py-2.5 bg-primary text-white text-sm font-medium rounded-lg hover:bg-primary/90 transition-colors",children:"Go to Volunteer Sign Up"})]})]})}const Lt=He["halawa-landing"],gb=[];function hA(){return t.jsxs("div",{"data-testid":"halawa-landing-page",children:[t.jsx(Be,{title:Lt.title,de
52scription:`Join the ${Lt.title} at ${Lt.location} â removing invasive plants and restoring native species with Hui o HoÊ»ohonua. ${Lt.schedule}.`}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsxs("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:["Program Site · ",Lt.subtitle]}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold",children:Lt.title}),t.jsxs("p",{className:"mt-4 text-white/80 text-lg leading-relaxed max-w-2xl mx-auto",children:["Vegetation removal and native plant stewardship at ",Lt.location," â honoring the cultural heritage of HÄlawa."]})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-4",children:"About This Program"}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-6",children:"The HÄlawa Landing Community Workday is a stewardship program hosted by Hui o HoÊ»ohonua at the Pearl Harbor National Memorial in HÄlawa, OÊ»ahu. Volunteers work alongside HOH staff to remove invasive plants from the shoreline hedge, protecting the native species that belong there â primarily Naupaka and Stonecrop â and hauling green waste to keep the site healthy and beautiful."}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-6",children:'HÄlawa, meaning "the curved or bent place," is an ahupuaÊ»a with deep roots in Hawaiian history. The landing and surrounding area carry immense cultural significance as a place of gathering, agriculture, and connection to the land and water. Through this program, the community honors that legacy with their hands. HOH holds the space, provides the tools, and follows the lead of a place that has always known its own meaning.'}),t.jsxs("p",{className:"text-foreground/70 leading-relaxed mb-6",children:["HOH provides volunteer coordination, tools, and supplies for this independent community effort. Please note: this program is an independent Hui o HoÊ»ohonua initiative. It is not partnered with, sponsored, endorsed, or supported by the National Park Service or Pearl Harbor National Memorial.",Lt.schedulePattern?.startDate&&t.jsxs(t.Fragment,{children:[" ","Our first workday begins"," ",new Date(`${Lt.schedulePattern.startDate}T00:00:00`).toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})," ","â we hope to see you there."]})]}),t.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-xl p-4 mb-8 flex items-start gap-3",children:[t.jsx(At,{className:"w-5 h-5 text-amber-600 mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-semibold text-amber-800 mb-1",children:"Federal NPS Volunteer Form Required"}),t.jsx("p",{className:"text-sm text-amber-700 leading-relaxed",children:"Because this program takes place within a National Park Service site, all volunteers must complete a federal Volunteer Service Agreement (OF-301a) in addition to the HOH signup. HOH staff will have forms available on the day of each workday."})]})]}),t.jsxs("div",{className:"bg-muted/40 rounded-xl p-6 md:p-8 border border-border mb-10",children:[t.jsx("h3",{className:"font-serif text-lg font-semibold text-foreground mb-5",children:"Program Details"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(Sa,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Location"}),Lt.locationDetail.split(` 53`).filter(n=>n.trim().length>0).map((n,s)=>t.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:n},s)),t.jsx("a",{href:Lt.mapsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary underline underline-offset-2 mt-0.5 inline-block",children:"Get directions â"})]})]}),t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(ka,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Schedule"}),Lt.schedulePattern?.startDate&&t.jsxs("p",{className:"text-sm text-muted-foreground",children:["First workday: ",new Date(`${Lt.schedulePattern.startDate}T00:00:00`).toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})]}),t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:Lt.schedule})]})]}),t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(Xt,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Time"}),t.jsxs("p",{className:"text-sm text-muted-foreground",children:[Ds(Lt.startHour)," â ",Ds(Lt.endHour)]})]})]}),t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(ic,{className:"w-4 h-4 text-primary mt-0.5 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:"Work"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Invasive plant removal along the shoreline hedge"}),t.jsxs("p",{className:"text-sm text-muted-foreground mt-0.5",children:["Native plants to protect: ",t.jsx("span",{className:"font-medium text-foreground
53/80",children:"Naupaka"})," and ",t.jsx("span",{className:"font-medium text-foreground/80",children:"Stonecrop"})," â remove everything else"]})]})]})]})]}),t.jsxs("div",{className:"bg-muted/30 rounded-xl p-6 border border-border mb-10",children:[t.jsx("h3",{className:"font-serif text-lg font-semibold text-foreground mb-3",children:"What to Expect"}),t.jsx("p",{className:"text-sm text-foreground/70 leading-relaxed mb-3",children:"Work takes place along the shoreline hedge in a high-visitation area near moving vehicles and the water's edge. Terrain can be uneven, loose, or slippery near the shoreline. Volunteers work with hand tools (loppers, pruners, weed wrenches, shovels) and haul green waste using tarps and utility carts."}),t.jsx("p",{className:"text-sm text-foreground/70 leading-relaxed",children:"Required gear: closed-toe shoes and gloves (provided). A high-visibility vest is required when working near roadways â HOH will have vests available. Recommended: long sleeves, hat, and sunscreen. Stay hydrated and take breaks â HOH staff check in regularly."})]}),gb.length>0&&t.jsxs("div",{className:"mb-10",children:[t.jsx("h3",{className:"font-serif text-xl font-semibold text-foreground mb-5",children:"From the Field"}),t.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:gb.map((n,s)=>t.jsx("div",{className:"rounded-lg overflow-hidden aspect-square",children:t.jsx("img",{src:n.src,alt:n.alt,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500",loading:"lazy"})},s))})]}),t.jsxs("div",{className:"border-t border-border pt-10",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-4",children:"The Power of Hui"}),t.jsx("p",{className:"text-foreground/70 italic font-serif text-lg mb-2",children:"AÊ»ohe hana nui ke alu ia"}),t.jsx("p",{className:"text-muted-foreground text-sm mb-8",children:"No task is too big when done together"}),t.jsxs(pe,{href:"/volunteer?signup=halawa-landing",className:"inline-flex items-center gap-2 px-5 py-2.5 bg-primary text-white text-sm font-medium rounded-md hover:bg-primary/90 transition-colors",children:["Volunteer at HÄlawa Landing ",t.jsx(xt,{className:"w-4 h-4"})]})]})]})})]})}var fA=Object.defineProperty,Kl=Object.getOwnPropertySymbols,z0=Object.prototype.hasOwnProperty,U0=Object.prototype.propertyIsEnumerable,bb=(n,s,i)=>s in n?fA(n,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[s]=i,km=(n,s)=>{for(var i in s||(s={}))z0.call(s,i)&&bb(n,i,s[i]);if(Kl)for(var i of Kl(s))U0.call(s,i)&&bb(n,i,s[i]);return n},Mm=(n,s)=>{var i={};for(var l in n)z0.call(n,l)&&s.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&Kl)for(var l of Kl(n))s.indexOf(l)<0&&U0.call(n,l)&&(i[l]=n[l]);return i};var Hr;(n=>{const s=class Le{constructor(f,h,x,y){if(this.version=f,this.errorCorrectionLevel=h,this.modules=[],this.isFunction=[],f<Le.MIN_VERSION||f>Le.MAX_VERSION)throw new RangeError("Version value out of range");if(y<-1||y>7)throw new RangeError("Mask value out of range");this.size=f*4+17;let v=[];for(let k=0;k<this.size;k++)v.push(!1);for(let k=0;k<this.size;k++)this.modules.push(v.slice()),this.isFunction.push(v.slice());this.drawFunctionPatterns();const S=this.addEccAndInterleave(x);if(this.drawCodewords(S),y==-1){let k=1e9;for(let N=0;N<8;N++){this.applyMask(N),this.drawFormatBits(N);const A=this.getPenaltyScore();A<k&&(y=N,k=A),this.applyMask(N)}}d(0<=y&&y<=7),this.mask=y,this.applyMask(y),this.drawFormatBits(y),this.isFunction=[]}static encodeText(f,h){const x=n.QrSegment.makeSegments(f);return Le.encodeSegments(x,h)}static encodeBinary(f,h){const x=n.QrSegment.makeBytes(f);return Le.encodeSegments([x],h)}static encodeSegments(f,h,x=1,y=40,v=-1,S=!0){if(!(Le.MIN_VERSION<=x&&x<=y&&y<=Le.MAX_VERSION)||v<-1||v>7)throw new RangeError("Invalid value");let k,N;for(k=x;;k++){const H=Le.getNumDataCodewords(k,h)*8,P=p.getTotalBits(f,k);if(P<=H){N=P;break}if(k>=y)throw new RangeError("Data too long")}for(const H of[Le.Ecc.MEDIUM,Le.Ecc.QUARTILE,Le.Ecc.HIGH])S&&N<=Le.getNumDataCodewords(k,H)*8&&(h=H);let A=[];for(const H of f){i(H.mode.modeBits,4,A),i(H.numChars,H.mode.numCharCountBits(k),A);for(const P of H.getData())A.push(P)}d(A.length==N);const E=Le.getNumDataCodewords(k,h)*8;d(A.length<=E),i(0,Math.min(4,E-A.length),A),i(0,(8-A.length%8)%8,A),d(A.length%8==0);for(let H=236;A.length<E;H^=253)i(H,8,A);let L=[];for(;L.length*8<A.length;)L.push(0);return A.forEach((H,P)=>L[P>>>3]|=H<<7-(P&7)),new Le(k,h,L,v)}getModule(f,h){return 0<=f&&f<this.size&&0<=h&&h<this.size&&this.modules[h][f]}getModules(){return this.modules}drawFunctionPatterns(){for(let x=0;x<this.size;x++)this.setFunctionModule(6,x,x%2==0),this.setFunctionModule(x,6,x%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const f=this.getAlignmentPatternPositions(),h=f.length;for(let x=0;x<h;x++)for(let y=0;y<h;y++)x==0&&y==0||x==0&&y==h-1||x==h-1&&y==0||this.drawAlignmentPattern(f[x],f[y]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(f){const h=this.errorCorrectionLevel.formatBits<<3|f;let x=h;for(let v=0;v<10;v++)x=x<<1^(x>>>9)*1335;const y=(h<<10|x)^21522;d(y>>>15==0);for(let v=0;v<=5;v++)this.setFunctionModule(8,v,l(y,v));this.setFunctionModule(8,7,l(y,6)),this.setFunctionModule(8,8,l(y,7)),this.setFunctionModule(7,8,l(y,8));for(let v=9;v<15;v++)this.setFunctionModule(14-v,8,l(y,v));for(let v=0;v<8;v++)this.setFunctionModule(this.size-1-v,8,l(y,v));for(let v=8;v<15;v++)this.setFunctionModule(8,this.size-15+v,l(y,v));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let f=this.version;for(let x=0;x<12;x++)f=f<<1^(f>>>11)*7973;const h=this.version<<12|f;d(h>>>18==0);for(let x=0;x<18;x++){const y=l(h,x),v=this.size-11+x%3,S=Math.floor(x/3);this.setFunctionModule(v,S,y),this.setFunctionModule(S,v,y)}}drawFinderPattern(f,h){for(let x=-4;x<=4;x++)for(let y=-4;y<=4;y++){const v=Math.max(Math.abs(y),Math.abs(x)),S=f+y,k=h+x;0<=S&&S<this.size&&0<=k&&k<this.size&&this.setFunctionModule(S,k,v!=2&&v!=4)}}drawAlignmentPattern(f,h){for(let x=-2;x<=2;x++)for(let y=-2;y<=2;y++)this.setFunctionModule(f+y,h+x,Math.max(Math.abs(y),Math.abs(x))!=1)}setFunctionModule(f,h,x){this.modules[h][f]=x,this.isFunction[h][f]=!0}addEccAndInterleave(f){const h=this.version,x=this.errorCorrectionLevel;if(f.length!=Le.getNumDataCodewords(h,x))throw new RangeError("Invalid argument");const y=Le.NUM_ERROR_CORRECTION_BLOCKS[x.ordinal][h],v=Le.ECC_CODEWORDS_PER_BLOCK[x.ordinal][h],S=Math.floor(Le.getNumRawDataModules(h)/8),k=y-S%y,N=Math.floor(S/y);let A=[];const E=Le.reedSolomonComputeDivisor(v);for(let H=0,P=0;H<y;H++){let q=f.slice(P,P+N-v+(H<k?0:1));P+=q.length;const V=Le.reedSolomonComputeRemainder(q,E);H<k&&q.push(0),A.push(q.concat(V))}let L=[];for(let H=0;H<A[0].length;H++)A.forEach((P,q)=>{(H!=N-v||q>=k)&&L.push(P[H])});return d(L.length==S),L}drawCodewords(f){if(f.length!=Math.floor(Le.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let h=0;for(let x=this.size-1;x>=1;x-=2){x==6&&(x=5);for(let y=0;y<this.size;y++)for(let v=0;v<2;v++){const S=x-v,N=(x+1&2)==0?this.size-1-y:y;!this.isFunction[N][S]&&h<f.length*8&&(this.modules[N][S]=l(f[h>>>3],7-(h&7)),h++)}}d(h==f.length*8)}
53applyMask(f){if(f<0||f>7)throw new RangeError("Mask value out of range");for(let h=0;h<this.size;h++)for(let x=0;x<this.size;x++){let y;switch(f){case 0:y=(x+h)%2==0;break;case 1:y=h%2==0;break;case 2:y=x%3==0;break;case 3:y=(x+h)%3==0;break;case 4:y=(Math.floor(x/3)+Math.floor(h/2))%2==0;break;case 5:y=x*h%2+x*h%3==0;break;case 6:y=(x*h%2+x*h%3)%2==0;break;case 7:y=((x+h)%2+x*h%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[h][x]&&y&&(this.modules[h][x]=!this.modules[h][x])}}getPenaltyScore(){let f=0;for(let v=0;v<this.size;v++){let S=!1,k=0,N=[0,0,0,0,0,0,0];for(let A=0;A<this.size;A++)this.modules[v][A]==S?(k++,k==5?f+=Le.PENALTY_N1:k>5&&f++):(this.finderPenaltyAddHistory(k,N),S||(f+=this.finderPenaltyCountPatterns(N)*Le.PENALTY_N3),S=this.modules[v][A],k=1);f+=this.finderPenaltyTerminateAndCount(S,k,N)*Le.PENALTY_N3}for(let v=0;v<this.size;v++){let S=!1,k=0,N=[0,0,0,0,0,0,0];for(let A=0;A<this.size;A++)this.modules[A][v]==S?(k++,k==5?f+=Le.PENALTY_N1:k>5&&f++):(this.finderPenaltyAddHistory(k,N),S||(f+=this.finderPenaltyCountPatterns(N)*Le.PENALTY_N3),S=this.modules[A][v],k=1);f+=this.finderPenaltyTerminateAndCount(S,k,N)*Le.PENALTY_N3}for(let v=0;v<this.size-1;v++)for(let S=0;S<this.size-1;S++){const k=this.modules[v][S];k==this.modules[v][S+1]&&k==this.modules[v+1][S]&&k==this.modules[v+1][S+1]&&(f+=Le.PENALTY_N2)}let h=0;for(const v of this.modules)h=v.reduce((S,k)=>S+(k?1:0),h);const x=this.size*this.size,y=Math.ceil(Math.abs(h*20-x*10)/x)-1;return d(0<=y&&y<=9),f+=y*Le.PENALTY_N4,d(0<=f&&f<=2568888),f}getAlignmentPatternPositions(){if(this.version==1)return[];{const f=Math.floor(this.version/7)+2,h=this.version==32?26:Math.ceil((this.version*4+4)/(f*2-2))*2;let x=[6];for(let y=this.size-7;x.length<f;y-=h)x.splice(1,0,y);return x}}static getNumRawDataModules(f){if(f<Le.MIN_VERSION||f>Le.MAX_VERSION)throw new RangeError("Version number out of range");let h=(16*f+128)*f+64;if(f>=2){const x=Math.floor(f/7)+2;h-=(25*x-10)*x-55,f>=7&&(h-=36)}return d(208<=h&&h<=29648),h}static getNumDataCodewords(f,h){return Math.floor(Le.getNumRawDataModules(f)/8)-Le.ECC_CODEWORDS_PER_BLOCK[h.ordinal][f]*Le.NUM_ERROR_CORRECTION_BLOCKS[h.ordinal][f]}static reedSolomonComputeDivisor(f){if(f<1||f>255)throw new RangeError("Degree out of range");let h=[];for(let y=0;y<f-1;y++)h.push(0);h.push(1);let x=1;for(let y=0;y<f;y++){for(let v=0;v<h.length;v++)h[v]=Le.reedSolomonMultiply(h[v],x),v+1<h.length&&(h[v]^=h[v+1]);x=Le.reedSolomonMultiply(x,2)}return h}static reedSolomonComputeRemainder(f,h){let x=h.map(y=>0);for(const y of f){const v=y^x.shift();x.push(0),h.forEach((S,k)=>x[k]^=Le.reedSolomonMultiply(S,v))}return x}static reedSolomonMultiply(f,h){if(f>>>8||h>>>8)throw new RangeError("Byte out of range");let x=0;for(let y=7;y>=0;y--)x=x<<1^(x>>>7)*285,x^=(h>>>y&1)*f;return d(x>>>8==0),x}finderPenaltyCountPatterns(f){const h=f[1];d(h<=this.size*3);const x=h>0&&f[2]==h&&f[3]==h*3&&f[4]==h&&f[5]==h;return(x&&f[0]>=h*4&&f[6]>=h?1:0)+(x&&f[6]>=h*4&&f[0]>=h?1:0)}finderPenaltyTerminateAndCount(f,h,x){return f&&(this.finderPenaltyAddHistory(h,x),h=0),h+=this.size,this.finderPenaltyAddHistory(h,x),this.finderPenaltyCountPatterns(x)}finderPenaltyAddHistory(f,h){h[0]==0&&(f+=this.size),h.pop(),h.unshift(f)}};s.MIN_VERSION=1,s.MAX_VERSION=40,s.PENALTY_N1=3,s.PENALTY_N2=3,s.PENALTY_N3=40,s.PENALTY_N4=10,s.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],s.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],n.QrCode=s;function i(g,f,h){if(f<0||f>31||g>>>f)throw new RangeError("Value out of range");for(let x=f-1;x>=0;x--)h.push(g>>>x&1)}function l(g,f){return(g>>>f&1)!=0}function d(g){if(!g)throw new Error("Assertion error")}const m=class lt{constructor(f,h,x){if(this.mode=f,this.numChars=h,this.bitData=x,h<0)throw new RangeError("Invalid argument");this.bitData=x.slice()}static makeBytes(f){let h=[];for(const x of f)i(x,8,h);return new lt(lt.Mode.BYTE,f.length,h)}static makeNumeric(f){if(!lt.isNumeric(f))throw new RangeError("String contains
53non-numeric characters");let h=[];for(let x=0;x<f.length;){const y=Math.min(f.length-x,3);i(parseInt(f.substring(x,x+y),10),y*3+1,h),x+=y}return new lt(lt.Mode.NUMERIC,f.length,h)}static makeAlphanumeric(f){if(!lt.isAlphanumeric(f))throw new RangeError("String contains unencodable characters in alphanumeric mode");let h=[],x;for(x=0;x+2<=f.length;x+=2){let y=lt.ALPHANUMERIC_CHARSET.indexOf(f.charAt(x))*45;y+=lt.ALPHANUMERIC_CHARSET.indexOf(f.charAt(x+1)),i(y,11,h)}return x<f.length&&i(lt.ALPHANUMERIC_CHARSET.indexOf(f.charAt(x)),6,h),new lt(lt.Mode.ALPHANUMERIC,f.length,h)}static makeSegments(f){return f==""?[]:lt.isNumeric(f)?[lt.makeNumeric(f)]:lt.isAlphanumeric(f)?[lt.makeAlphanumeric(f)]:[lt.makeBytes(lt.toUtf8ByteArray(f))]}static makeEci(f){let h=[];if(f<0)throw new RangeError("ECI assignment value out of range");if(f<128)i(f,8,h);else if(f<16384)i(2,2,h),i(f,14,h);else if(f<1e6)i(6,3,h),i(f,21,h);else throw new RangeError("ECI assignment value out of range");return new lt(lt.Mode.ECI,0,h)}static isNumeric(f){return lt.NUMERIC_REGEX.test(f)}static isAlphanumeric(f){return lt.ALPHANUMERIC_REGEX.test(f)}getData(){return this.bitData.slice()}static getTotalBits(f,h){let x=0;for(const y of f){const v=y.mode.numCharCountBits(h);if(y.numChars>=1<<v)return 1/0;x+=4+v+y.bitData.length}return x}static toUtf8ByteArray(f){f=encodeURI(f);let h=[];for(let x=0;x<f.length;x++)f.charAt(x)!="%"?h.push(f.charCodeAt(x)):(h.push(parseInt(f.substring(x+1,x+3),16)),x+=2);return h}};m.NUMERIC_REGEX=/^[0-9]*$/,m.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,m.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let p=m;n.QrSegment=m})(Hr||(Hr={}));(n=>{(s=>{const i=class{constructor(d,m){this.ordinal=d,this.formatBits=m}};i.LOW=new i(0,1),i.MEDIUM=new i(1,0),i.QUARTILE=new i(2,3),i.HIGH=new i(3,2),s.Ecc=i})(n.QrCode||(n.QrCode={}))})(Hr||(Hr={}));(n=>{(s=>{const i=class{constructor(d,m){this.modeBits=d,this.numBitsCharCount=m}numCharCountBits(d){return this.numBitsCharCount[Math.floor((d+7)/17)]}};i.NUMERIC=new i(1,[10,12,14]),i.ALPHANUMERIC=new i(2,[9,11,13]),i.BYTE=new i(4,[8,16,16]),i.KANJI=new i(8,[8,10,12]),i.ECI=new i(7,[0,0,0]),s.Mode=i})(n.QrSegment||(n.QrSegment={}))})(Hr||(Hr={}));var Ms=Hr;var pA={L:Ms.QrCode.Ecc.LOW,M:Ms.QrCode.Ecc.MEDIUM,Q:Ms.QrCode.Ecc.QUARTILE,H:Ms.QrCode.Ecc.HIGH},F0=128,B0="L",q0="#FFFFFF",W0="#000000",I0=!1,V0=1,xA=4,gA=0,bA=.1;function G0(n,s=0){const i=[];return n.forEach(function(l,d){let m=null;l.forEach(function(p,g){if(!p&&m!==null){i.push(`M${m+s} ${d+s}h${g-m}v1H${m+s}z`),m=null;return}if(g===l.length-1){if(!p)return;m===null?i.push(`M${g+s},${d+s} h1v1H${g+s}z`):i.push(`M${m+s},${d+s} h${g+1-m}v1H${m+s}z`);return}p&&m===null&&(m=g)})}),i.join("")}function Y0(n,s){return n.slice().map((i,l)=>l<s.y||l>=s.y+s.h?i:i.map((d,m)=>m<s.x||m>=s.x+s.w?d:!1))}function yA(n,s,i,l){if(l==null)return null;const d=n.length+i*2,m=Math.floor(s*bA),p=d/s,g=(l.width||m)*p,f=(l.height||m)*p,h=l.x==null?n.length/2-g/2:l.x*p,x=l.y==null?n.length/2-f/2:l.y*p,y=l.opacity==null?1:l.opacity;let v=null;if(l.excavate){let k=Math.floor(h),N=Math.floor(x),A=Math.ceil(g+h-k),E=Math.ceil(f+x-N);v={x:k,y:N,w:A,h:E}}const S=l.crossOrigin;return{x:h,y:x,h:f,w:g,excavation:v,opacity:y,crossOrigin:S}}function vA(n,s){return s!=null?Math.max(Math.floor(s),0):n?xA:gA}function $0({value:n,level:s,minVersion:i,includeMargin:l,marginSize:d,imageSettings:m,size:p,boostLevel:g}){let f=Me.useMemo(()=>{const k=(Array.isArray(n)?n:[n]).reduce((N,A)=>(N.push(...Ms.QrSegment.makeSegments(A)),N),[]);return Ms.QrCode.encodeSegments(k,pA[s],i,void 0,void 0,g)},[n,s,i,g]);const{cells:h,margin:x,numCells:y,calculatedImageSettings:v}=Me.useMemo(()=>{let S=f.getModules();const k=vA(l,d),N=S.length+k*2,A=yA(S,p,k,m);return{cells:S,margin:k,numCells:N,calculatedImageSettings:A}},[f,p,m,l,d]);return{qrcode:f,margin:x,cells:h,numCells:y,calculatedImageSettings:v}}var wA=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),jA=Me.forwardRef(function(s,i){const l=s,{value:d,size:m=F0,level:p=B0,bgColor:g=q0,fgColor:f=W0,includeMargin:h=I0,minVersion:x=V0,boostLevel:y,marginSize:v,imageSettings:S}=l,N=Mm(l,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:A}=N,E=Mm(N,["style"]),L=S?.src,H=Me.useRef(null),P=Me.useRef(null),q=Me.useCallback(te=>{H.current=te,typeof i=="function"?i(te):i&&(i.current=te)},[i]),[V,Z]=Me.useState(!1),{margin:K,cells:re,numCells:le,calculatedImageSettings:he}=$0({value:d,level:p,minVersion:x,boostLevel:y,includeMargin:h,marginSize:v,imageSettings:S,size:m});Me.useEffect(()=>{if(H.current!=null){const te=H.current,G=te.getContext("2d");if(!G)return;let T=re;const F=P.current,B=he!=null&&F!==null&&F.complete&&F.naturalHeight!==0&&F.naturalWi
53dth!==0;B&&he.excavation!=null&&(T=Y0(re,he.excavation));const ie=window.devicePixelRatio||1;te.height=te.width=m*ie;const M=m/le*ie;G.scale(M,M),G.fillStyle=g,G.fillRect(0,0,le,le),G.fillStyle=f,wA?G.fill(new Path2D(G0(T,K))):re.forEach(function(Y,ne){Y.forEach(function(ae,se){ae&&G.fillRect(se+K,ne+K,1,1)})}),he&&(G.globalAlpha=he.opacity),B&&G.drawImage(F,he.x+K,he.y+K,he.w,he.h)}}),Me.useEffect(()=>{Z(!1)},[L]);const fe=km({height:m,width:m},A);let ye=null;return L!=null&&(ye=Me.createElement("img",{src:L,key:L,style:{display:"none"},onLoad:()=>{Z(!0)},ref:P,crossOrigin:he?.crossOrigin})),Me.createElement(Me.Fragment,null,Me.createElement("canvas",km({style:fe,height:m,width:m,ref:q,role:"img"},E)),ye)});jA.displayName="QRCodeCanvas";var fc=Me.forwardRef(function(s,i){const l=s,{value:d,size:m=F0,level:p=B0,bgColor:g=q0,fgColor:f=W0,includeMargin:h=I0,minVersion:x=V0,boostLevel:y,title:v,marginSize:S,imageSettings:k}=l,N=Mm(l,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:A,cells:E,numCells:L,calculatedImageSettings:H}=$0({value:d,level:p,minVersion:x,boostLevel:y,includeMargin:h,marginSize:S,imageSettings:k,size:m});let P=E,q=null;k!=null&&H!=null&&(H.excavation!=null&&(P=Y0(E,H.excavation)),q=Me.createElement("image",{href:k.src,height:H.h,width:H.w,x:H.x+A,y:H.y+A,preserveAspectRatio:"none",opacity:H.opacity,crossOrigin:H.crossOrigin}));const V=G0(P,A);return Me.createElement("svg",km({height:m,width:m,viewBox:`0 0 ${L} ${L}`,ref:i,role:"img"},N),!!v&&Me.createElement("title",null,v),Me.createElement("path",{fill:g,d:`M0,0 h${L}v${L}H0z`,shapeRendering:"crispEdges"}),Me.createElement("path",{fill:f,d:V,shapeRendering:"crispEdges"}),q)});fc.displayName="QRCodeSVG";const NA="https://hoh808.org/volunteer?signup=general";function SA(){return t.jsxs(t.Fragment,{children:[t.jsx("style",{children:` 54 .flyer-page, .flyer-page * { 55 -webkit-print-color-adjust: exact; 56 print-color-adjust: exact; 57 } 58 @media print { 59 .no-print { display: none !important; } 60 .flyer-page, .flyer-page * { 61 -webkit-print-color-adjust: exact !important; 62 print-color-adjust: exact !important; 63 } 64 body { margin: 0; background: white; } 65 .flyer-page { box-shadow: none !important; margin: 0 !important; border-radius: 0 !important; zoom: 0.78; page-break-inside: avoid; break-inside: avoid; } 66 html, body { height: auto !important; } 67 .flyer-outer { padding: 0 !important; background: white !important; min-height: unset !important; } 68 } 69 @page { size: 5.5in 8.5in; margin: 0.3in; } 70 `}),t.jsxs("div",{className:"flyer-outer",style:{minHeight:"100vh",background:"#f3f4ef",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",padding:"32px 16px",fontFamily:"Georgia, 'Times New Roman', serif"},children:[t.jsxs("div",{className:"no-print",style:{marginBottom:20,display:"flex",gap:12},children:[t.jsxs("button",{onClick:()=>window.print(),style:{display:"flex",alignItems:"center",gap:8,padding:"10px 22px",background:"#3a7d44",color:"white",border:"none",borderRadius:8,fontSize:15,fontFamily:"inherit",fontWeight:600,cursor:"pointer"},children:[t.jsx(Yi,{style:{width:18,height:18}}),"Print Flyer"]}),t.jsx("a",{href:"/volunteer-flyer.pdf",download:!0,style:{display:"flex",alignItems:"center",gap:8,padding:"10px 22px",background:"#1f3a5f",color:"white",border:"none",borderRadius:8,fontSize:15,fontFamily:"inherit",fontWeight:600,cursor:"pointer",textDecoration:"none"},children:"Download PDF"}),t.jsx("a",{href:"/volunteer",style:{display:"flex",alignItems:"center",gap:8,padding:"10px 22px",background:"white",color:"#3a7d44",border:"1px solid #3a7d44",borderRadius:8,fontSize:15,fontFamily:"inherit",fontWeight:600,cursor:"pointer",textDecoration:"none"},children:"â Back"})]}),t.jsxs("div",{className:"flyer-page",style:{width:"100%",maxWidth:420,background:"white",borderRadius:16,boxShadow:"0 2px 16px rgba(0,0,0,0.10)",overflow:"hidden",display:"flex",flexDirection:"column"},children:[t.jsxs("div",{style:{background:"#3a7d44",padding:"28px 32px 24px",textAlign:"center",color:"white"},children:[t.jsx("img",{src:"https://hoh808.org/hoh-logo.png",alt:"Hui o HoÊ»ohonua",style:{width:72,height:72,marginBottom:16,display:"block",margin:"0 auto 14px"}}),t.jsx("p",{style:{fontSize:16,fontWeight:700,letterSpacing:"0.04em",margin:"0 0 10px"},children:"Hui o HoÊ»ohonua"}),t.jsx("p",{style:{fontSize:12,fontWeight:700,letterSpacing:"0.15em",textTransform:"uppercase",opacity:.75,margin:"0 0 6px"},children:"Join Our Ê»Ohana"}),t.jsxs("h1",{style:{fontSize:26,fontWeight:700,margin:"0 0 6px",lineHeight:1.2},children:["Volunteer",t.jsx("br",{}),"With Us"]}),t.jsxs("p",{style:{fontSize:13,opacity:.85,margin:0,lineHeight:1.5},children:["Environmental stewardship & cultural restoration",t.jsx("br",{}),"across Ê»Ewa Moku, OÊ»ahu"]})]}),t.jsxs("div",{style:{padding:"24px 32px",display:"flex",flexDirection:"column",alignItems:"center",gap:20},children:[t.jsxs("div",{style:{background:"#f3f4ef",borderRadius:12,padding:16,display:"flex",flexDirection:"column",alignItems:"center",gap:10},children:[t.jsx(fc,{value:NA,size:180,bgColor:"transparent",fgColor:"#1a1a1a",level:"M"}),t.jsxs("p",{style:{fontSize:11,color:"#666",margin:0,textAlign:"center",fontFamily:"Georgia, serif"},children:["Scan to sign up & complete",t.jsx("br",{}),"the volunteer waiver"]})]}),t.jsxs("div",{style:{width:"100%",borderTop:"1px solid #e8e4dc",paddingTop:18},children:[t.jsx("p",{style:{fontSize:12,fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase",color:"#3a7d44",margin:"0 0 12px",textAlign:"center"},children:"What to Expect"}),t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[["1","Scan the QR code or visit hoh808.org/volunteer"],["2","Complete the registration form & liability waiver"],["3","You'll receive a confirmation email with upcoming workday details"]].map(([n,s])=>
70t.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:10},children:[t.jsx("div",{style:{width:24,height:24,borderRadius:"50%",background:"#3a7d44",color:"white",fontSize:12,fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginTop:1},children:n}),t.jsx("p",{style:{fontSize:13,color:"#333",margin:0,lineHeight:1.5},dangerouslySetInnerHTML:{__html:s}})]},n))})]}),t.jsx("div",{style:{width:"100%",background:"#f3f4ef",borderRadius:10,padding:"12px 16px"},children:t.jsxs("p",{style:{fontSize:11,color:"#555",margin:0,lineHeight:1.6,textAlign:"center"},children:[t.jsx("strong",{children:"Active projects:"})," Coastal Restoration · Taro Farming",t.jsx("br",{}),"Pearl Harbor Aviation Museum · HÄlawa Landing",t.jsx("br",{}),"Adopt a Plot · Education & Outreach"]})}),t.jsx("div",{style:{borderTop:"1px solid #e8e4dc",paddingTop:14,width:"100%",textAlign:"center"},children:t.jsxs("p",{style:{fontSize:12,color:"#888",margin:0},children:["Questions?"," ",t.jsx("span",{style:{color:"#3a7d44",fontWeight:600},children:"[email protected]"})," ","·"," ",t.jsx("span",{style:{color:"#3a7d44",fontWeight:600},children:"hoh808.org"})]})})]})]}),t.jsx("p",{className:"no-print",style:{marginTop:16,fontSize:12,color:"#999",fontFamily:"Georgia, serif"},children:"Prints as a half-sheet (5.5 à 8.5 in) â fits two per letter-size page"})]})]})}const kA="https://hoh808.org/volunteer?signup=pearl-harbor-aviation";function MA(){return t.jsxs(t.Fragment,{children:[t.jsx("style",{children:` 71 .flyer-page, .flyer-page * { 72 -webkit-print-color-adjust: exact; 73 print-color-adjust: exact; 74 } 75 @media print { 76 .no-print { display: none !important; } 77 .flyer-page, .flyer-page * { 78 -webkit-print-color-adjust: exact !important; 79 print-color-adjust: exact !important; 80 } 81 body { margin: 0; background: white; } 82 .flyer-page { box-shadow: none !important; margin: 0 !important; border-radius: 0 !important; zoom: 0.78; page-break-inside: avoid; break-inside: avoid; } 83 html, body { height: auto !important; } 84 .flyer-outer { padding: 0 !important; background: white !important; min-height: unset !important; } 85 } 86 @page { size: 5.5in 8.5in; margin: 0.3in; } 87 `}),t.jsxs("div",{className:"flyer-outer",style:{minHeight:"100vh",background:"#f3f4ef",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",padding:"32px 16px",fontFamily:"Georgia, 'Times New Roman', serif"},children:[t.jsxs("div",{className:"no-print",style:{marginBottom:20,display:"flex",gap:12},children:[t.jsxs("button",{onClick:()=>window.print(),style:{display:"flex",alignItems:"center",gap:8,padding:"10px 22px",background:"#3a7d44",color:"white",border:"none",borderRadius:8,fontSize:15,fontFamily:"inherit",fontWeight:600,cursor:"pointer"},children:[t.jsx(Yi,{style:{width:18,height:18}}),"Print Flyer"]}),t.jsx("a",{href:"/pham-flyer.pdf",download:!0,style:{display:"flex",alignItems:"center",gap:8,padding:"10px 22px",background:"#1f3a5f",color:"white",border:"none",borderRadius:8,fontSize:15,fontFamily:"inherit",fontWeight:600,cursor:"pointer",textDecoration:"none"},children:"Download PDF"}),t.jsx("a",{href:"/volunteer",style:{display:"flex",alignItems:"center",gap:8,padding:"10px 22px",background:"white",color:"#3a7d44",border:"1px solid #3a7d44",borderRadius:8,fontSize:15,fontFamily:"inherit",fontWeight:600,cursor:"pointer",textDecoration:"none"},children:"â Back"})]}),t.jsxs("div",{className:"flyer-page",style:{width:"100%",maxWidth:420,background:"white",borderRadius:16,boxShadow:"0 2px 16px rgba(0,0,0,0.10)",overflow:"hidden",display:"flex",flexDirection:"column"},children:[t.jsxs("div",{style:{background:"#1f3a5f",padding:"28px 32px 24px",textAlign:"center",color:"white"},children:[t.jsx("img",{src:"https://hoh808.org/hoh-logo.png",alt:"Hui o HoÊ»ohonua",style:{width:72,height:72,marginBottom:16,display:"block",margin:"0 auto 14px"}}),t.jsx("p",{style:{fontSize:16,fontWeight:700,letterSpacing:"0.04em",margin:"0 0 10px"},children:"Hui o HoÊ»ohonua"}),t.jsx("p",{style:{fontSize:12,fontWeight:700,letterSpacing:"0.15em",textTransform:"uppercase",opacity:.75,margin:"0 0 6px"},children:"1st Saturday of Every Month"}),t.jsxs("h1",{style:{fontSize:24,fontWeight:700,margin:"0 0 6px",lineHeight:1.25},children:["PHAM Community",t.jsx("br",{}),"Monthly Workday"]}),t.jsxs("p",{style:{fontSize:13,opacity:.85,margin:0,lineHeight:1.5},children:["Pearl Harbor Aviation Museum",t.jsx("br",{}),"MokuÊ»umeÊ»ume (Ford Island) · 8:00 AM â 12:00 PM"]})]}),t.jsxs("div",{style:{padding:"24px 32px",display:"flex",flexDirection:"column",alignItems:"center",gap:18},children:[t.jsxs("div",{style:{background:"#f3f4ef",borderRadius:12,padding:16,display:"flex",flexDirection:"column",alignItems:"center",gap:10},children:[t.jsx(fc,{value:kA,size:170,bgColor:"transparent",fgColor:"#1a1a1a",level:"M"}),t.jsxs("p",{style:{fontSize:11,color:"#666",margin:0,textAlign:"center",fontFamily:"Georgia, serif"},children:["Scan to sign up & complete",t.jsx("br",{}),"the volunteer waiver"]})]}),t.jsxs("div",{style:{width:"100%",borderTop:"1px solid #e8e4dc",paddingTop:16},children:[t.jsx("p",{style:{fontSize:12,fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase",color:"#1f3a5f",margin:"0 0 12px",textAlign:"center"},children:"What to Expect"}),t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[["1","Scan the QR code or visit hoh808.org/volunteer","#1f3a5f"],["2","Complete the registration form & liability waiver","#3a7d44"],["3","Bring a valid government-issued photo ID â required for base access","#c0704d"]].map(([n,s,i])=>
87t.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:10},children:[t.jsx("div",{style:{width:24,height:24,borderRadius:"50%",background:i,color:"white",fontSize:12,fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginTop:1},children:n}),t.jsx("p",{style:{fontSize:13,color:"#333",margin:0,lineHeight:1.5},dangerouslySetInnerHTML:{__html:s}})]},n))})]}),t.jsx("div",{style:{width:"100%",background:"linear-gradient(135deg, #eef4ee 0%, #f6f1e7 100%)",border:"1px solid #dce8dc",borderRadius:10,padding:"12px 16px"},children:t.jsxs("p",{style:{fontSize:11,color:"#444",margin:0,lineHeight:1.6,textAlign:"center"},children:["Volunteers support landscaping, beautification, and visible care of a place where Hawaiian cultural history and national history share the same ground.",t.jsx("br",{}),t.jsx("span",{style:{color:"#3a7d44",fontWeight:700},children:"ð± Tools · 𧤠Supplies · ð± Food"}),t.jsx("span",{style:{color:"#555"},children:" â all provided by HOH808"})]})})]}),t.jsxs("div",{children:[t.jsxs("svg",{viewBox:"0 0 420 26",preserveAspectRatio:"none",style:{width:"100%",height:26,display:"block"},children:[t.jsx("path",{d:"M0 26 L0 14 Q52 0 105 12 T210 12 T315 12 T420 12 L420 26 Z",fill:"#3a7d44",opacity:"0.35"}),t.jsx("path",{d:"M0 26 L0 20 Q52 8 105 18 T210 18 T315 18 T420 18 L420 26 Z",fill:"#1f3a5f",opacity:"0.55"}),t.jsx("path",{d:"M0 26 L0 24 Q52 14 105 22 T210 22 T315 22 T420 22 L420 26 Z",fill:"#1f3a5f"})]}),t.jsxs("div",{style:{background:"#1f3a5f",padding:"10px 16px 14px",textAlign:"center"},children:[t.jsxs("p",{style:{fontSize:12,color:"rgba(255,255,255,0.92)",margin:0},children:["Questions?"," ",t.jsx("span",{style:{color:"#a8d5b0",fontWeight:700},children:"[email protected]"})," ","·"," ",t.jsx("span",{style:{color:"#a8d5b0",fontWeight:700},children:"hoh808.org"})]}),t.jsx("p",{style:{fontSize:10,color:"rgba(255,255,255,0.65)",margin:"4px 0 0",letterSpacing:"0.08em"},children:"E mÄlama kÄkou i ka Ê»Äina · Caring for the land together"})]})]})]}),t.jsx("p",{className:"no-print",style:{marginTop:16,fontSize:12,color:"#999",fontFamily:"Georgia, serif"},children:"Prints as a half-sheet (5.5 à 8.5 in) â fits two per letter-size page"})]})]})}const AA="https://hoh808.org/volunteer?signup=halawa-landing";function TA(){return t.jsxs(t.Fragment,{children:[t.jsx("style",{children:` 88 .flyer-page, .flyer-page * { 89 -webkit-print-color-adjust: exact; 90 print-color-adjust: exact; 91 } 92 @media print { 93 .no-print { display: none !important; } 94 .flyer-page, .flyer-page * { 95 -webkit-print-color-adjust: exact !important; 96 print-color-adjust: exact !important; 97 } 98 body { margin: 0; background: white; } 99 .flyer-page { box-shadow: none !important; margin: 0 !important; border-radius: 0 !important; zoom: 0.70; page-break-inside: avoid; break-inside: avoid; } 100 html, body { height: auto !important; } 101 .flyer-outer { padding: 0 !important; background: white !important; min-height: unset !important; } 102 } 103 @page { size: 5.5in 8.5in; margin: 0.3in; } 104 `}),t.jsxs("div",{className:"flyer-outer",style:{minHeight:"100vh",background:"#f3f4ef",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",padding:"32px 16px",fontFamily:"Georgia, 'Times New Roman', serif"},children:[t.jsxs("div",{className:"no-print",style:{marginBottom:20,display:"flex",gap:12},children:[t.jsxs("button",{onClick:()=>window.print(),style:{display:"flex",alignItems:"center",gap:8,padding:"10px 22px",background:"#3a7d44",color:"white",border:"none",borderRadius:8,fontSize:15,fontFamily:"inherit",fontWeight:600,cursor:"pointer"},children:[t.jsx(Yi,{style:{width:18,height:18}}),"Print Flyer"]}),t.jsx("a",{href:"/halawa-flyer.pdf",download:!0,style:{display:"flex",alignItems:"center",gap:8,padding:"10px 22px",background:"#1f3a5f",color:"white",border:"none",borderRadius:8,fontSize:15,fontFamily:"inherit",fontWeight:600,cursor:"pointer",textDecoration:"none"},children:"Download PDF"}),t.jsx("a",{href:"/halawa-landing",style:{display:"flex",alignItems:"center",gap:8,padding:"10px 22px",background:"white",color:"#3a7d44",border:"1px solid #3a7d44",borderRadius:8,fontSize:15,fontFamily:"inherit",fontWeight:600,cursor:"pointer",textDecoration:"none"},children:"â Back"})]}),t.jsxs("div",{className:"flyer-page",style:{width:"100%",maxWidth:420,background:"white",borderRadius:16,boxShadow:"0 2px 16px rgba(0,0,0,0.10)",overflow:"hidden",display:"flex",flexDirection:"column"},children:[t.jsxs("div",{style:{background:"#1f3a5f",padding:"28px 32px 24px",textAlign:"center",color:"white"},children:[t.jsx("img",{src:"https://hoh808.org/hoh-logo.png",alt:"Hui o HoÊ»ohonua",style:{width:72,height:72,marginBottom:16,display:"block",margin:"0 auto 14px"}}),t.jsx("p",{style:{fontSize:16,fontWeight:700,letterSpacing:"0.04em",margin:"0 0 10px"},children:"Hui o HoÊ»ohonua"}),t.jsx("p",{style:{fontSize:12,fontWeight:700,letterSpacing:"0.15em",textTransform:"uppercase",opacity:.75,margin:"0 0 6px"},children:"3rd Saturday of Every Month"}),t.jsxs("h1",{style:{fontSize:24,fontWeight:700,margin:"0 0 6px",lineHeight:1.25},children:["HÄlawa Landing",t.jsx("br",{}),"Community Workday"]}),t.jsxs("p",{style:{fontSize:13,opacity:.85,margin:0,lineHeight:1.5},children:["Pearl Harbor National Memorial",t.jsx("br",{}),"HÄlawa, OÊ»ahu · 8:00 AM â 12:00 PM"]})]}),t.jsxs("div",{style:{padding:"24px 32px",display:"flex",flexDirection:"column",alignItems:"center",gap:18},children:[t.jsxs("div",{style:{background:"#f3f4ef",borderRadius:12,padding:16,display:"flex",flexDirection:"column",alignItems:"center",gap:10},children:[t.jsx(fc,{value:AA,size:170,bgColor:"transparent",fgColor:"#1a1a1a",level:"M"}),t.jsxs("p",{style:{fontSize:11,color:"#666",margin:0,textAlign:"center",fontFamily:"Georgia, serif"},children:["Scan to sign up & complete",t.jsx("br",{}),"the volunteer waiver"]})]}),t.jsxs("div",{style:{width:"100%",borderTop:"1px solid #e8e4dc",paddingTop:16},children:[t.jsx("p",{style:{fontSize:12,fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase",color:"#1f3a5f",margin:"0 0 12px",textAlign:"center"},children:"What to Expect"}),t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[["1","Scan the QR code or visit hoh808.org/volunteer","#1f3a5f"],["2","Complete the registration form & liability waiver","#3a7d44"],["3","Meet in front of the Visitor Center bookstore â free parking in front of Restaurant 604","#c0704d"]].map(([n,s,i])=>
104t.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:10},children:[t.jsx("div",{style:{width:24,height:24,borderRadius:"50%",background:i,color:"white",fontSize:12,fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginTop:1},children:n}),t.jsx("p",{style:{fontSize:13,color:"#333",margin:0,lineHeight:1.5},dangerouslySetInnerHTML:{__html:s}})]},n))})]}),t.jsx("div",{style:{width:"100%",background:"linear-gradient(135deg, #eef4ee 0%, #f6f1e7 100%)",border:"1px solid #dce8dc",borderRadius:10,padding:"12px 16px"},children:t.jsxs("p",{style:{fontSize:11,color:"#444",margin:0,lineHeight:1.55,textAlign:"center"},children:["Volunteers care for the HÄlawa shoreline by removing invasive plants and protecting native Naupaka and Stonecrop.",t.jsx("br",{}),t.jsx("strong",{style:{color:"#1f3a5f"},children:"Bring closed-toe shoes, work clothes, sun protection, and water."}),t.jsx("br",{}),t.jsx("span",{style:{color:"#c0704d",fontWeight:700},children:"Only clear bags are allowed per NPS policy."}),t.jsx("br",{}),t.jsx("span",{style:{color:"#3a7d44",fontWeight:700},children:"ð± Tools · 𧤠Gloves · ð± Supplies"}),t.jsx("span",{style:{color:"#555"},children:" â provided by HOH808"})]})}),t.jsx("p",{style:{fontSize:9.5,color:"#666",margin:"-4px 0 0",lineHeight:1.35,textAlign:"center"},children:"An independent Hui o HoÊ»ohonua initiative â not partnered with, sponsored, endorsed, or supported by the National Park Service or Pearl Harbor National Memorial."})]}),t.jsxs("div",{children:[t.jsxs("svg",{viewBox:"0 0 420 26",preserveAspectRatio:"none",style:{width:"100%",height:26,display:"block"},children:[t.jsx("path",{d:"M0 26 L0 14 Q52 0 105 12 T210 12 T315 12 T420 12 L420 26 Z",fill:"#3a7d44",opacity:"0.35"}),t.jsx("path",{d:"M0 26 L0 20 Q52 8 105 18 T210 18 T315 18 T420 18 L420 26 Z",fill:"#1f3a5f",opacity:"0.55"}),t.jsx("path",{d:"M0 26 L0 24 Q52 14 105 22 T210 22 T315 22 T420 22 L420 26 Z",fill:"#1f3a5f"})]}),t.jsxs("div",{style:{background:"#1f3a5f",padding:"10px 16px 14px",textAlign:"center"},children:[t.jsxs("p",{style:{fontSize:12,color:"rgba(255,255,255,0.92)",margin:0},children:["Questions?"," ",t.jsx("span",{style:{color:"#a8d5b0",fontWeight:700},children:"[email protected]"})," ","·"," ",t.jsx("span",{style:{color:"#a8d5b0",fontWeight:700},children:"hoh808.org"})]}),t.jsx("p",{style:{fontSize:10,color:"rgba(255,255,255,0.65)",margin:"4px 0 0",letterSpacing:"0.08em"},children:"E mÄlama kÄkou i ka Ê»Äina · Caring for the land together"})]})]})]}),t.jsx("p",{className:"no-print",style:{marginTop:16,fontSize:12,color:"#999",fontFamily:"Georgia, serif"},children:"Prints as a half-sheet (5.5 à 8.5 in) â fits two per letter-size page"})]})]})}function yb(n){const[s,i,l]=n.split("-").map(Number);return new Date(s,i-1,l).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}function CA(n){const s=new URLSearchParams;s.set("signup",n.projectId),s.set("email",n.email),s.set("firstName",n.firstName),s.set("lastName",n.lastName),n.phone&&s.set("phone",n.phone),s.set("emergencyContactName",n.emergencyContactName),s.set("emergencyContactPhone",n.emergencyContactPhone),n.groupName&&s.set("groupName",n.groupName),n.groupSize!=null&&s.set("groupSize",String(n.groupSize)),n.isStudent&&s.set("isStudent","1"),n.schoolName&&s.set("schoolName",n.schoolName),n.gradeLevel&&s.set("gradeLevel",n.gradeLevel),n.teacherName&&s.set("teacherName",n.teacherName),n.isMinor&&s.set("isMinor","1"),n.isMilitary&&s.set("isMilitary","1"),n.comments&&s.set("comments",n.comments);const i=Xm(n.projectId,6).find(l=>l.dateStr!==n.eventDate);return i&&s.set("eventDate",i.dateStr),`/volunteer?${s.toString()}`}function EA(){const[n,s]=w.useState({status:"loading"}),i=new URLSearchParams(window.location.search).get("token")??"";w.useEffect(()=>{if(!i){s({status:"not_found"});return}be(`/api/volunteer/cancel?token=${encodeURIComponent(i)}`).then(async d=>{const m=await d.json();d.ok?s({status:"ready",info:m.data}):d.status===410&&m.alreadyCancelled?s({status:"already_cancelled"}
104):d.status===410&&m.expired?s({status:"expired"}):d.status===404?s({status:"not_found"}):s({status:"error",message:m.error??"Something went wrong."})}).catch(()=>s({status:"error",message:"Could not connect. Please try again."}))},[i]);async function l(){if(n.status!=="ready")return;const d=n.info;s({status:"confirming",info:d});try{const m=await be("/api/volunteer/cancel",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:i})}),p=await m.json();m.ok?s({status:"cancelled",info:d}):m.status===410&&p.alreadyCancelled?s({status:"already_cancelled"}):m.status===410&&p.expired?s({status:"expired"}):s({status:"error",message:p.error??"Something went wrong."})}catch{s({status:"error",message:"Could not connect. Please try again."})}}return t.jsxs("div",{className:"min-h-[60vh] flex items-center justify-center bg-white",children:[t.jsx(Be,{title:"Cancel Registration",description:"Cancel your volunteer signup with Hui o HoÊ»ohonua."}),t.jsxs("div",{className:"max-w-lg mx-auto px-6 py-20 text-center",children:[n.status==="loading"&&t.jsxs(t.Fragment,{children:[t.jsx(Gi,{className:"w-10 h-10 text-primary animate-spin mx-auto mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"Loading your registrationâ¦"})]}),(n.status==="ready"||n.status==="confirming")&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"w-20 h-20 bg-amber-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(Zt,{className:"w-10 h-10 text-amber-600"})}),t.jsx("h1",{className:"font-serif text-3xl font-bold text-foreground mb-4",children:"Cancel Your Registration?"}),t.jsxs("p",{className:"text-muted-foreground leading-relaxed mb-6",children:["Aloha ",n.info.firstName," â are you sure you want to cancel your volunteer registration?"]}),t.jsxs("div",{className:"bg-stone-50 border border-stone-200 rounded-xl p-5 mb-8 text-left text-sm text-foreground space-y-1",children:[t.jsxs("div",{children:[t.jsx("span",{className:"text-muted-foreground",children:"Program: "}),t.jsx("span",{className:"font-medium",children:Er(n.info.projectId)?.title??n.info.projectId})]}),n.info.eventDate&&t.jsxs("div",{children:[t.jsx("span",{className:"text-muted-foreground",children:"Date: "}),t.jsx("span",{className:"font-medium",children:yb(n.info.eventDate)})]})]}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[t.jsxs("button",{onClick:l,disabled:n.status==="confirming",className:"px-6 py-3 bg-red-600 text-white font-medium rounded-lg hover:bg-red-700 transition-colors disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:[n.status==="confirming"&&t.jsx(Gi,{className:"w-4 h-4 animate-spin"}),"Yes, cancel my registration"]}),t.jsx(pe,{href:"/volunteer",className:"px-6 py-3 border border-stone-300 text-foreground font-medium rounded-lg hover:bg-stone-50 transition-colors",children:"Keep my registration"})]})]}),n.status==="cancelled"&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(zt,{className:"w-10 h-10 text-primary"})}),t.jsx("h1",{className:"font-serif text-3xl font-bold text-foreground mb-4",children:"Registration Cancelled"}),t.jsxs("p",{className:"text-muted-foreground leading-relaxed mb-8",children:["Your registration for"," ",t.jsx("span",{className:"font-medium text-foreground",children:Er(n.info.projectId)?.title??n.info.projectId}),n.info.eventDate&&t.jsxs(t.Fragment,{children:[" on ",t.jsx("span",{className:"font-medium text-foreground",children:yb(n.info.eventDate)})]})," ","has been cancelled. Our staff has been notified. We hope to see you at a future workday!"]}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[t.jsx(pe,{href:CA(n.info),className:"px-6 py-3 bg-primary text-white font-medium rounded-lg hover:bg-primary/90 transition-colors",children:"Sign up for another workday"}),t.jsx(pe,{href:"/",className:"px-6 py-3 border border-primary text-primary font-medium rounded-lg hover:bg-primary/5 transition-colors",children:"Back to Home"})]})]}),n.status==="already_cancelled"&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"w-20 h-20 bg-stone-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(zt,{className:"w-10 h-10 text-stone-500"})}),t.jsx("h1",{className:"font-serif text-3xl font-bold text-foreground mb-4",children:"Already Cancelled"}),t.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8",children:"This registration has already been cancelled. No further action is needed."}),t.jsx(pe,{href:"/volunteer",className:"inline-block px-6 py-3 bg-primary text-white font-medium rounded-lg hover:bg-primary/90 transition-colors",children:"Sign up for a workday"})]}),n.status==="expired"&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"w-20 h-20 bg-stone-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(Xn,{className:"w-10 h-10 text-stone-400"})}),t.jsx("h1",{className:"font-serif text-3xl font-bold text-foreground mb-4",children:"Link Expired"}),t.jsxs("p",{className:"text-muted-foreground leading-relaxed mb-8",children:["This cancellation link has expired because the workday date has already passed. If you need to update your attendance, please contact us at"," ",t.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline",children:"[email protected]"}),"."]}),t.jsx(pe,{href:"/",className:"inline-block px-6 py-3 border border-primary text-primary font-medium rounded-lg hover:bg-primary/5 transition-colors",children:"Back to Home"})]}),(n.status==="not_found"||n.status==="error")&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(Xn,{className:"w-10 h-10 text-red-500"})}),t.jsx("h1",{className:"font-serif text-3xl font-bold text-foreground mb-4",children:n.status==="not_found"?"Link Not Found":"Something Went Wrong"}),t.jsxs("p",{className:"text-muted-foreground leading-relaxed mb-8",children:[n.status==="not_found"?"This cancellation link is invali
104d or has expired. If you need to cancel your registration, please contact us at ":n.message+" You can also contact us at ",t.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline",children:"[email protected]"}),"."]}),t.jsx(pe,{href:"/",className:"inline-block px-6 py-3 border border-primary text-primary font-medium rounded-lg hover:bg-primary/5 transition-colors",children:"Back to Home"})]})]})]})}function HA(){const[n,s]=w.useState({status:"loading"}),i=new URLSearchParams(window.location.search).get("token")??"";return w.useEffect(()=>{if(!i){s({status:"not_found"});return}be(`/api/volunteer/verify?token=${encodeURIComponent(i)}`).then(async l=>{const d=await l.json();l.ok&&d.data?.alreadyVerified?s({status:"already_verified",firstName:d.data.firstName,projectId:d.data.projectId}):l.ok?s({status:"verified",firstName:d.data.firstName,projectId:d.data.projectId}):l.status===404?s({status:"not_found"}):s({status:"error",message:d.error??"Something went wrong."})}).catch(()=>s({status:"error",message:"Could not connect. Please try again."}))},[i]),t.jsxs("div",{className:"min-h-[60vh] flex items-center justify-center bg-white",children:[t.jsx(Be,{title:"Verify Email",description:"Verify your volunteer registration with Hui o HoÊ»ohonua."}),t.jsxs("div",{className:"max-w-lg mx-auto px-6 py-20 text-center",children:[n.status==="loading"&&t.jsxs(t.Fragment,{children:[t.jsx(Gi,{className:"w-10 h-10 text-primary animate-spin mx-auto mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"Verifying your emailâ¦"})]}),(n.status==="verified"||n.status==="already_verified")&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(zt,{className:"w-10 h-10 text-primary"})}),t.jsx("h1",{className:"font-serif text-3xl font-bold text-foreground mb-4",children:n.status==="already_verified"?"Already Verified":"Email Verified!"}),t.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:n.status==="already_verified"?`Aloha ${n.firstName} â your registration for ${Er(n.projectId)?.title??n.projectId} is already verified.`:`Aloha ${n.firstName} â your registration for ${Er(n.projectId)?.title??n.projectId} is confirmed. You can now look up your service record and log hours.`}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[t.jsx(pe,{href:"/volunteer",className:"px-6 py-3 bg-primary text-white font-medium rounded-lg hover:bg-primary/90 transition-colors",children:"Go to Volunteer Page"}),t.jsx(pe,{href:"/",className:"px-6 py-3 border border-primary text-primary font-medium rounded-lg hover:bg-primary/5 transition-colors",children:"Back to Home"})]})]}),(n.status==="not_found"||n.status==="error")&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(Xn,{className:"w-10 h-10 text-red-500"})}),t.jsx("h1",{className:"font-serif text-3xl font-bold text-foreground mb-4",children:n.status==="not_found"?"Link Not Found":"Something Went Wrong"}),t.jsxs("p",{className:"text-muted-foreground leading-relaxed mb-8",children:[n.status==="not_found"?"This verification link is invalid or has expired. Please contact us at ":n.message+" You can also contact us at ",t.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline",children:"[email protected]"}),"."]}),t.jsx(pe,{href:"/",className:"inline-block px-6 py-3 border border-primary text-primary font-medium rounded-lg hover:bg-primary/5 transition-colors",children:"Back to Home"})]})]})]})}function vb(n){const[s,i,l]=n.split("-").map(Number);return new Date(s,i-1,l).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}function OA(){const[n,s]=w.useState({status:"loading"});return w.useEffect(()=>{const l=new URLSearchParams(window.location.search).get("token");if(!l){s({status:"no_token"});return}be(`/api/volunteer/confirm-attendance?token=${encodeURIComponent(l)}`).then(async d=>{const m=await d.json();if(d.status===404)s({status:"not_found"});
104else if(d.status===410)m.cancelled?s({status:"cancelled"}):s({status:"expired"});else if(!d.ok)s({status:"error",message:m.error??"Something went wrong."});else{const p=m.data;p.alreadyConfirmed?s({status:"already_confirmed",firstName:p.firstName,projectId:p.projectId,eventDate:p.eventDate,hoursLogged:p.hoursLogged}):s({status:"confirmed",firstName:p.firstName,projectId:p.projectId,eventDate:p.eventDate,hoursLogged:p.hoursLogged,totalHours:p.totalHours,totalMinutes:p.totalMinutes})}}).catch(()=>s({status:"error",message:"Could not reach the server. Please try again."}))},[]),t.jsxs(t.Fragment,{children:[t.jsx(Be,{title:"Attendance Confirmed | Hui o HoÊ»ohonua",description:"Volunteer attendance confirmation"}),t.jsx("div",{className:"min-h-[60vh] flex items-center justify-center px-4 py-16",children:t.jsxs("div",{className:"max-w-lg w-full text-center space-y-6",children:[n.status==="loading"&&t.jsxs(t.Fragment,{children:[t.jsx(Gi,{className:"mx-auto h-12 w-12 text-primary animate-spin"}),t.jsx("p",{className:"text-muted-foreground",children:"Confirming your attendanceâ¦"})]}),n.status==="confirmed"&&t.jsxs(t.Fragment,{children:[t.jsx(zt,{className:"mx-auto h-14 w-14 text-green-600"}),t.jsxs("h1",{className:"text-2xl font-serif font-bold text-primary",children:["Mahalo, ",n.firstName,"!"]}),t.jsxs("p",{className:"text-muted-foreground",children:["Your attendance at"," ",t.jsx("span",{className:"font-medium text-foreground",children:Er(n.projectId)?.title??n.projectId})," ","on"," ",t.jsx("span",{className:"font-medium text-foreground",children:vb(n.eventDate)})," ","has been confirmed."]}),t.jsxs("div",{className:"rounded-lg border bg-muted/40 px-6 py-4 inline-block text-left space-y-1",children:[t.jsx("p",{className:"text-sm text-muted-foreground",children:"Hours recorded today"}),t.jsxs("p",{className:"text-3xl font-bold text-primary",children:[n.hoursLogged," hrs"]}),(n.totalHours>0||n.totalMinutes>0)&&t.jsxs("p",{className:"text-sm text-muted-foreground pt-1",children:["Running total with HOH:"," ",t.jsxs("span",{className:"font-medium text-foreground",children:[n.totalHours," hr",n.totalHours!==1?"s":"",n.totalMinutes>0?` ${n.totalMinutes} min`:""]})]})]}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Your service record has been updated. If you logged MOVSM or school community service hours, you'll receive a separate summary email shortly."}),t.jsx(pe,{href:"/volunteer",className:"inline-block mt-2 text-primary underline underline-offset-4 hover:text-primary/80 text-sm",children:"Sign up for a future workday â"})]}),n.status==="already_confirmed"&&t.jsxs(t.Fragment,{children:[t.jsx(zt,{className:"mx-auto h-14 w-14 text-green-600"}),t.jsxs("h1",{className:"text-2xl font-serif font-bold text-primary",children:["Already confirmed, ",n.firstName,"!"]}),t.jsxs("p",{className:"text-muted-foreground",children:["Your attendance at"," ",t.jsx("span",{className:"font-medium text-foreground",children:Er(n.projectId)?.title??n.projectId})," ","on"," ",t.jsx("span",{className:"font-medium text-foreground",children:vb(n.eventDate)})," ","was already confirmed â your"," ",t.jsxs("span",{className:"font-medium text-foreground",children:[n.hoursLogged," hour",n.hoursLogged!==1?"s":""]})," ","are on record."]}),t.jsx(pe,{href:"/volunteer",className:"inline-block mt-2 text-primary underline underline-offset-4 hover:text-primary/80 text-sm",children:"Sign up for a future workday â"})]}),n.status==="cancelled"&&t.jsxs(t.Fragment,{children:[t.jsx(Xn,{className:"mx-auto h-14 w-14 text-destructive"}),t.jsx("h1",{className:"text-2xl font-serif font-bold",children:"Signup cancelled"}),t.jsxs("p",{className:"text-muted-foreground",children:["This signup was cancelled, so attendance cannot be confirmed. If you believe this is an error, please reach out to us at"," ",t.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline",children:"[email protected]"}),"."]})]}),n.status==="expired"&&t.jsxs(t.Fragment,{children:[t.jsx(Xt,{className:"mx-auto h-14 w-14 text-amber-500"}),t.jsx("h1",{className:"text-2xl font-serif font-bold",children:"Link expired"}),t.jsxs("p",{className:"text-muted-foreground",children:["This confirmation link is no longer active. If you need to update your service record, please contact us at"," ",t.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline",children:"[email protected]"}),"."]})]}),n.status==="not_found"&&t.jsxs(t.Fragment,{children:[t.jsx(Zt,{className:"mx-auto h-14 w-14 text-amber-500"}),t.jsx("h1",{className:"text-2xl font-serif font-bold",children:"Link not found"}),t.jsxs("p",{className:"text-muted-foreground",children:["We couldn't find a signup matching this link. Please check the email from us or contact"," ",t.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline",children:"[email protected]"}),"."]})]}),n.status==="no_token"&&t.jsxs(t.Fragment,{children:[t.jsx(Zt,{className:"mx-auto h-14 w-14 text-amber-500"}),t.jsx("h1",{className:"text-2xl font-serif font-bold",children:"Invalid link"}),t.jsx("p",{className:"text-muted-foreground",children:"This confirmation link is missing required information. Please use the link from your thank-you email."})]}),n.status==="error"&&t.jsxs(t.Fragment,{children:[t.jsx(Xn,{className:"mx-auto h-14 w-14 text-destructive"}),t.jsx("h1",{className:"text-2xl font-serif font-bold",children:"Something went wrong"}),t.jsx("p",{className:"text-muted-foreground",children:n.message}),t.jsx("button",{onClick:()=>window.location.reload(),className:"text-primary underline underline-offset-4 text-sm",children:"Try again"})]})]})})]})}function DA(){const[n,s]=w.useState(null),[i,l]=w.useState(null),[d,m]=w.useState(null),[p,g]=w.useState(""),[f,h]=w.useState(""),[x,y]=w.useState(""),[v,S]=w.useState(""),[k,N]=w.useState(!1),[A,E]=w.useState(!1),[L,H]=w.useState("");async function P(V){if(V.preventDefault(),H(""),!n&&!d&&!p.trim()&&!f.trim()){H("Please fill in at least one response before submitting.");return}N(!0);try{const Z=await be("/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({rating:n??void 0,foundWhatLookedFor:d??void 0,purposeOfVisit:p.trim()||void 0,improvement:f.trim()||void 0,name:x.trim()||void 0,email:v.trim()||void 0})}),K=await Z.json().catch(()=>({}));if(!Z.ok){H(K.error??"Something went wrong. Please try again.");return}E(!0)}catch{H("Could not reach the server. Please try again.")}finally{N(!1)}}if(A)return t.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-4",children:t.jsxs("div",{className:"max-w-md w-full text-center py-20",children:[t.jsx(Bt,{className:"w-14 h-14 text-primary mx-auto mb-5"}),t.jsx("h1",{className:"font-serif text-3xl font-bold text-foreground mb-3",children:"Mahalo!"}),t.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:"Your feedback has been received. We read every response and use it to improve the site for our whole community."})]})});
104const q={1:"Poor",2:"Fair",3:"Good",4:"Very good",5:"Excellent"};return t.jsxs("div",{className:"min-h-screen bg-background",children:[t.jsx(Be,{title:"Website Feedback",description:"Share your thoughts on the Hui o HoÊ»ohonua website â your feedback helps us improve."}),t.jsxs("div",{className:"relative py-16 px-4 text-white text-center overflow-hidden",style:{background:"linear-gradient(135deg, hsl(142 48% 22%) 0%, hsl(142 48% 32%) 100%)"},children:[t.jsxs("div",{className:"max-w-2xl mx-auto relative z-10",children:[t.jsx("h1",{className:"font-serif text-4xl font-bold mb-3 leading-tight",children:"Help Us Improve"}),t.jsx("p",{className:"text-white/80 text-lg leading-relaxed",children:"A few quick questions â your honest feedback shapes how we improve the site for our whole community."})]}),t.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px)"}})]}),t.jsx("div",{className:"max-w-2xl mx-auto px-4 py-12",children:t.jsxs("form",{onSubmit:P,className:"space-y-6",children:[t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6",children:[t.jsx("p",{className:"font-serif font-semibold text-foreground mb-4 text-base",children:"How would you rate your overall experience on our website?"}),t.jsx("div",{className:"flex gap-2",children:[1,2,3,4,5].map(V=>t.jsx("button",{type:"button",onClick:()=>s(V),onMouseEnter:()=>l(V),onMouseLeave:()=>l(null),className:"transition-transform hover:scale-110 focus:outline-none","aria-label":`${V} star${V!==1?"s":""}`,children:t.jsx(Hy,{className:`w-10 h-10 transition-colors ${V<=(i??n??0)?"fill-yellow-400 text-yellow-400":"fill-muted text-muted-foreground/25"}`})},V))}),n&&t.jsx("p",{className:"text-sm text-muted-foreground mt-2 font-medium",children:q[n]})]}),t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6",children:[t.jsx("p",{className:"font-serif font-semibold text-foreground mb-4 text-base",children:"Did you find what you were looking for?"}),t.jsx("div",{className:"flex gap-3 flex-wrap",children:["yes","somewhat","no"].map(V=>t.jsx("button",{type:"button",onClick:()=>m(V),className:`px-5 py-2 rounded-full text-sm font-medium border transition-colors ${d===V?"bg-primary text-white border-primary":"border-border text-foreground hover:bg-muted"}`,children:V==="yes"?"Yes":V==="somewhat"?"Somewhat":"No"},V))})]}),t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6",children:[t.jsx("label",{htmlFor:"purpose",className:"font-serif font-semibold text-foreground block mb-1 text-base",children:"What brought you to our website today?"}),t.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"e.g. looking into volunteering, learning about the organization, making a donationâ¦"}),t.jsx("textarea",{id:"purpose",value:p,onChange:V=>g(V.target.value),maxLength:2e3,rows:3,placeholder:"I came to the site becauseâ¦",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:ring-2 focus:ring-primary/40 resize-none"})]}),t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6",children:[t.jsx("label",{htmlFor:"improvement",className:"font-serif font-semibold text-foreground block mb-1 text-base",children:"What would make this site better for you?"}),t.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Too busy, hard to navigate, missing info â be as specific as you like."}),t.jsx("textarea",{id:"improvement",value:f,onChange:V=>h(V.target.value),maxLength:2e3,rows:4,placeholder:"It would be better ifâ¦",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:ring-2 focus:ring-primary/40 resize-none"})]}),t.jsxs("div",{className:"bg-card border border-card-border rounded-xl p-6",children:[t.jsxs("p",{className:"font-serif font-semibold text-foreground mb-1 text-base",children:["Your name & email"," ",t.jsx("span",{className:"text-muted-foreground font-normal text-sm",children:"(optional)"})]}),t.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Only needed if you'd like us to follow up with you."}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[t.jsx("input",{type:"text",value:x,onChange:V=>y(V.target.value),maxLength:100,placeholder:"Your name",className:"px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:ring-2 focus:ring-primary/40"}
104),t.jsx("input",{type:"email",value:v,onChange:V=>S(V.target.value),maxLength:255,placeholder:"[email protected]",className:"px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:ring-2 focus:ring-primary/40"})]})]}),L&&t.jsx("p",{className:"text-sm text-red-600",children:L}),t.jsx("button",{type:"submit",disabled:k,className:"w-full py-3 bg-primary text-white text-sm font-semibold rounded-lg hover:bg-primary/90 disabled:opacity-50 transition-colors",children:k?"Submittingâ¦":"Submit Feedback"}),t.jsx("p",{className:"text-center text-xs text-muted-foreground pb-4",children:"Only HOH staff can see your responses. They are never shared and used only to improve the website."})]})})]})}const PA=[{number:"01",label:"Pillar 1 â Hub",hawaiian:"Ka Piko â The Hub",title:"HOH808 as Coordinator",body:"The Hub is the connective tissue. HOH808 holds relationships with government agencies, military installations, cultural practitioners, and partner organizations so that individual volunteers and community members don't have to navigate those systems alone. The Hub reduces friction, aligns incentives, and keeps the work accountable â not by directing the community, but by clearing the path.",accent:"bg-primary text-white"},{number:"02",label:"Pillar 2 â Network",hawaiian:"Ka Pilina â The Network",title:"Community as the Asset",body:"The Ê»Äina does not need saving by outsiders. It needs the people who already love it â and the systems that govern it â to work in the same direction. The Network is every participant: kÅ«puna, residents, government agencies, schools, businesses, the military, and nonprofits. All are members of the same community, sharing the same shoreline, the same watershed, the same future. When these participants come together, the work becomes possible. The Navy, the Park Service, the state, the city â these are not separate from the community. They are the community, in uniform, in office, in the field. They sit in the same pews. They cheer at the same games. Their kids go to the same schools. They shop at the same grocery stores, bank at the same credit unions, and drive the same roads home. They are not agencies. They are us. The 3N1 model only works when everyone shows up as one.",accent:"bg-muted/40"},{number:"03",label:"Pillar 3 â Continuity",hawaiian:"Ka Mau â Continuity",title:"Stewardship That Stays",body:"Most projects end when funding ends. The 3N1 model treats continuity as a design requirement â not a follow-up. Maintenance is planned alongside restoration. Volunteer pipelines are built before the need is urgent. Relationships with land managers are maintained between workdays. The goal is not a successful project. The goal is a place that continues to be cared for â long after any particular grant cycle closes.",accent:"bg-muted/40"}],RA=[{title:"Permission Before Action",body:"Before initiating any project activity, HOH808 formally seeks guidance from kÅ«puna and cultural practitioners with generational knowledge of place. Protocol is not ceremony performed before the real work begins â protocol is governance. It shapes what we do, in what order, and whether we proceed at all."},{title:"Community Authority Over External Intention",body:"The 3N1 model builds in an explicit question: are we doing this right? Not just legally or logistically â but in a way the community would recognize as theirs. HOH808 actively invites feedback on whether language, leadership dynamics, or project framing risk reproducing patterns of outside control. When community members raise those concerns, that is governance to respect, not a problem to manage."},{title:"Assets, Not Deficits",body:"The Ê»Ewa Moku has been diverted, paved over, and managed by outside institutions for generations. The 3N1 model does not begin with a deficit. It begins with what is already here: ecological memory in the land, cultural knowledge in the people, trust built by those who never stopped showing up. HOH808 organizes around what communities already have."},{title:"Minimal-Grant Sustainability",body:"Grant dependency produces short-termism. When funding determines activity, stewardship stops the moment the check runs out. HOH808's model treats community capacity â volunteer time, organizational relationships, cultural legitimacy â as primary resources. Grants support the work; they do not define it."}];function _A(){return t.jsxs("div",{"data-testid":"our-model-page",children:[t.jsx(Be,{title:"Our Model",description:"Hui o HoÊ»ohonua operates through the Three-in-One Community Development Model (3N1) â a systems-based framework that treats community as a unified ecosystem, with Community Philanthropy as its foundation."}),t.jsx("div",{className:"bg-primary text-white py-20",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-6 text-center",children:[t.jsx("p",{className:"uppercase tracking-widest text-xs text-white/70 mb-3 font-medium",children:"How We Work"}),t.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4",children:"Our Model"}),t.jsx("p",{className:"text-white/80 text-lg leading-relaxed max-w-2xl mx-auto",children:"The Three-in-One Community Development Model â built from the ground up through the work of HOH808 in the Ê»Ewa Moku."})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-6",children:t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 items-start",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-3",children:"The Foundation"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground mb-6",children:"Community Philanthropy"}
104),t.jsx("p",{className:"text-foreground/80 text-lg leading-relaxed mb-5",children:"The resources this work needs are already in the community. KÅ«puna carry knowledge no grant can buy. Volunteers carry capacity no contract can replicate. Residents carry trust no outside organization has earned."}),t.jsx("p",{className:"text-foreground/70 leading-relaxed mb-5",children:"Community Philanthropy starts from that recognition. Rather than treating the community as a recipient of outside generosity, it treats community members â their time, relationships, knowledge, and presence â as the primary assets. External funding supports the work. It does not define it, direct it, or determine who belongs in it."}),t.jsx("p",{className:"text-foreground/70 leading-relaxed",children:"For HOH808, this means the measure of success is not how much we raised or how many acres we treated. It is whether the people who love PuÊ»uloa have more ways to care for it than they did before â and whether those ways will still exist after we are gone."})]}),t.jsxs("div",{className:"bg-muted/30 rounded-2xl p-8 space-y-6",children:[t.jsx("blockquote",{className:"border-l-4 border-primary pl-5 py-2 font-serif text-xl italic text-foreground/80 leading-relaxed",children:'"Impossible is where we start."'}),t.jsxs("div",{className:"space-y-4 text-sm text-foreground/70 leading-relaxed",children:[t.jsx("p",{children:"What we are addressing is not a failure of intent. It is institutional capacity erosion â a gradual reduction in the stewardship continuity available to sustain historically and culturally significant places at the standard their importance deserves."}),t.jsx("p",{children:"HOH808's role is to help restore that capacity: a community-supported force multiplier that complements existing government structures, operates within authorized boundaries, and strengthens the shared responsibility that has always been the foundation of this work."})]})]})]})})}),t.jsx("section",{className:"py-20 bg-muted/20",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs("div",{className:"text-center mb-12",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-2",children:"The Framework"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground mb-3",children:"Three-in-One (3N1)"}),t.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto leading-relaxed mb-3",children:"One community. Three interdependent Ê»ohana. Each depends on the others. None works alone."}),t.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto leading-relaxed text-sm",children:"Organizations that adhere to the 3N1 philosophy of Community Philanthropy bring all three Ê»ohana â Government, Private Industry, and Nonprofits â together as a synergistic entity. No single Ê»ohana solves the issue. All three must show up."})]}),t.jsxs("div",{className:"text-center mb-6",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-1",children:"Who Participates"}),t.jsx("h3",{className:"font-serif text-2xl font-semibold text-foreground",children:"Three Ê»Ohana â One Community"}),t.jsx("p",{className:"text-muted-foreground text-sm mt-2 max-w-xl mx-auto",children:"Each Ê»ohana brings something the others cannot. Together they form one synergistic whole."})]}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 mb-8",children:[{title:"Government Entities",color:"border-blue-200 bg-blue-50",titleColor:"text-blue-800",items:["Permits & Permissions","MOUs / Legal Frameworks","Legislation","Minimal Grants","Military Volunteers"]},{title:"Private Industry",color:"border-amber-200 bg-amber-50",titleColor:"text-amber-800",items:["Project Funding","Employee Volunteers","Donated Equipment & Supplies"]},{title:"Community Nonprofits",color:"border-green-200 bg-green-50",titleColor:"text-green-800",items:["Volunteer Workforce","Cultural Competency","Empowering Community","Educational Programs","Workforce Development","Community Philanthropy"]}].map(n=>t.jsxs("div",{className:`rounded-xl border ${n.color} p-5`,children:[t.jsx("h4",{className:`font-serif text-base font-semibold mb-3 ${n.titleColor}`,children:n.title}),t.jsx("ul",{className:"space-y-1.5",children:n.items.map(s=>
104t.jsxs("li",{className:"text-sm text-foreground/70 flex items-start gap-2",children:[t.jsx("span",{className:"mt-1.5 w-1.5 h-1.5 rounded-full bg-current flex-shrink-0 opacity-40"}),s]},s))})]},n.title))}),t.jsxs("div",{className:"rounded-2xl bg-primary text-white px-8 py-8 mb-10",children:[t.jsx("h3",{className:"font-serif text-xl font-semibold mb-4",children:"Who Is the Community?"}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6 mb-6 text-sm text-white/80",children:[t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-white mb-2",children:"Government"}),t.jsx("ul",{className:"space-y-1",children:["Federal","State","City & County"].map(n=>t.jsxs("li",{children:["· ",n]},n))})]}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-white mb-2",children:"Private Industry"}),t.jsx("ul",{className:"space-y-1",children:["Major Corporations","Local Businesses"].map(n=>t.jsxs("li",{children:["· ",n]},n))})]}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-white mb-2",children:"Community"}),t.jsx("ul",{className:"space-y-1",children:["Nonprofits","Community Volunteers","Community Action Groups","All Citizens","Students & Non-Students"].map(n=>t.jsxs("li",{children:["· ",n]},n))})]})]}),t.jsx("p",{className:"text-white/80 text-sm leading-relaxed border-t border-white/20 pt-5",children:"Regardless of what category a person falls in â elected official, employee, owner, citizen â everyone is the Community. Everyone works, resides, and utilizes the same banks, schools, grocery stores, restaurants, and hospitals. It is not us against them. It is all of us working together toward a common goal. The true power does not lie in any one group's hands. It comes from the Community working together as One."})]}),t.jsxs("div",{className:"text-center mb-6 mt-12",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-1",children:"How It's Structured"}),t.jsx("h3",{className:"font-serif text-2xl font-semibold text-foreground",children:"The Three Pillars"}),t.jsx("p",{className:"text-muted-foreground text-sm mt-2 max-w-xl mx-auto",children:"The operational architecture that holds the three Ê»ohana together â Hub, Network, and Continuity."})]}),t.jsx("div",{className:"space-y-6",children:PA.map(n=>t.jsx("div",{className:"rounded-2xl border border-border overflow-hidden",children:t.jsx("div",{className:`${n.accent} px-8 py-6`,children:t.jsxs("div",{className:"flex items-start gap-6",children:[t.jsx("span",{className:`font-serif text-4xl font-bold leading-none flex-shrink-0 ${n.accent.includes("primary")?"text-white/30":"text-primary/20"}`,children:n.number}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:`inline-block text-xs font-bold uppercase tracking-widest px-3 py-1 rounded-full mb-3 ${n.accent.includes("primary")?"bg-white/20 text-white":"bg-primary/10 text-primary"}`,children:n.label}),t.jsx("p",{className:`text-xs font-semibold uppercase tracking-widest mb-1 ${n.accent.includes("primary")?"text-white/60":"text-primary/70"}`,children:n.hawaiian}),t.jsx("h3",{className:`font-serif text-xl font-semibold mb-3 ${n.accent.includes("primary")?"text-white":"text-foreground"}`,children:n.title}),t.jsx("p",{className:`leading-relaxed text-sm ${n.accent.includes("primary")?"text-white/80":"text-foreground/70"}`,children:n.body})]})]})})},n.number))})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs("div",{className:"text-center mb-12",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-2",children:"In Practice"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground mb-3",children:"What This Looks Like at PuÊ»uloa"}),t.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"The 3N1 model is not a theory we apply to HOH808 â it is the structure that emerged from HOH808's actual work."})]}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6 mb-10",children:[{step:"Before the workday",body:"HOH808 coordinates permits and access with the Navy, Park Service, or land managers. Cultural protocol is observed. Volunteers are registered, safety briefed, and welcomed into a relationship with the place â not just a task."},{step:"During the workday",body:"Each participant shows up with what they carry â access, knowledge, tools, time. HOH808 coordinates. The Ê»Äina leads. No outside organization tells the land what it needs â we listen, and we work."},{step:"After the workday",body:"Restoration doesn't end at noon. Monitoring, maintenance, and return visits are built into the plan. New volunteers become regulars. Regulars become leaders. The network deepens with each season."}].map(n=>t.jsxs("div",{className:"border border-border rounded-xl p-6 bg-card",children:[t.jsx("p",{className:"font-semibold text-primary text-sm uppercase tracking-wide mb-3",children:n.step}
104),t.jsx("p",{className:"text-foreground/70 text-sm leading-relaxed",children:n.body})]},n.step))}),t.jsxs("div",{className:"bg-primary/5 border border-primary/20 rounded-2xl p-8",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-3 text-center",children:"The Role HOH808 Plays"}),t.jsx("p",{className:"text-foreground/80 text-center leading-relaxed max-w-2xl mx-auto",children:"HOH808 is not the expert on what PuÊ»uloa needs. The Ê»Äina is. The kÅ«puna are. The communities who have lived alongside these waters for generations are. HOH808's role is to organize the conditions that let that knowledge lead â reducing barriers, sustaining relationships, and showing up consistently enough to be trusted."})]})]})}),t.jsx("section",{className:"py-20 bg-muted/20",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs("div",{className:"text-center mb-12",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-2",children:"Track Record"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground mb-3",children:"Eleven Years of Evidence"}),t.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"The 3N1 model isn't proposed â it's proven. HOH808 has been operating for over a decade, at multiple sites, with volunteers who return not because they are asked to, but because something about the work calls them back."})]}),t.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4 mb-10",children:[{stat:"11+",label:"Years of continuous operation"},{stat:"4",label:"Active restoration program sites"},{stat:"10,000s",label:"People a restored loÊ»i system has the potential to feed"},{stat:"100%",label:"NFWF grant compliance â fully closed"}].map(n=>t.jsxs("div",{className:"border border-border rounded-xl p-6 bg-white text-center",children:[t.jsx("p",{className:"font-serif text-3xl font-bold text-primary mb-2",children:n.stat}),t.jsx("p",{className:"text-muted-foreground text-xs leading-snug",children:n.label})]},n.label))}),t.jsxs("div",{className:"bg-white border border-border rounded-2xl p-8",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-4 text-center",children:"What Sustained Return Proves"}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 text-sm text-foreground/70 leading-relaxed",children:[t.jsx("p",{children:"A volunteer who shows up once may be curious. A volunteer who shows up every month for years is telling you something. They have found a place that receives them â where their presence matters, where the work is real, and where the community around them reflects something they needed to see in themselves."}),t.jsx("p",{children:"That is not loyalty to an organization. That is belonging to a place and a people. Eleven years of it is not an outcome of good programming â it is the natural result of the Ê»Äina and the Ê»ohana doing what they have always done: calling people home."})]})]})]})}),t.jsx("section",{className:"py-20 bg-[#1a1a0e] text-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs("div",{className:"text-center mb-14",children:[t.jsx("p",{className:"text-amber-400 uppercase tracking-widest text-xs font-medium mb-2",children:"The Human Dimension"}),t.jsx("h2",{className:"font-serif text-3xl md:text-4xl font-semibold mb-4",children:"Why People Keep Coming Back"}),t.jsx("p",{className:"text-white/55 max-w-xl mx-auto leading-relaxed",children:"The ecological work is real. But it is not the only thing happening at a workday."})]}),t.jsxs("div",{className:"space-y-6 mb-12",children:[t.jsxs("div",{className:"border border-white/10 bg-white/5 rounded-2xl p-8",children:[t.jsx("h3",{className:"font-serif text-xl font-semibold text-white mb-4",children:"They Find What They Didn't Know They Were Looking For"}),t.jsx("p",{className:"text-white/70 leading-relaxed mb-4",children:"People arrive at a workday for different reasons â curiosity, a school requirement, a friend's invitation, a vague sense that something is missing. What they find is harder to name. The Ê»Äina asks something of you. When you answer it â when you get your hands in the soil, stand in the water of the loÊ»i, pull an invasive species from a shoreline that has been waiting â something in you is met. Something is validated that no resume or credential or social role has been able to reach."}),t.jsx("p",{className:"text-white/70 leading-relaxed",children:"That is not a program outcome. That is
104what happens when a person is genuinely received â by a place, and by the people who care for it."})]}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[t.jsxs("div",{className:"border border-white/10 bg-white/5 rounded-xl p-6",children:[t.jsx("h3",{className:"font-serif text-lg font-semibold text-amber-300 mb-3",children:"Ê»Ohana â Not a Metaphor"}),t.jsx("p",{className:"text-white/65 text-sm leading-relaxed",children:"When people return month after month, they are not returning to a volunteer program. They are returning to each other. They are part of an Ê»ohana â a family defined not by blood but by shared commitment to a place. That belonging is one of the most powerful forces in sustained community engagement. HOH808 does not manufacture it. The Ê»Äina and the people create it together."})]}),t.jsxs("div",{className:"border border-white/10 bg-white/5 rounded-xl p-6",children:[t.jsx("h3",{className:"font-serif text-lg font-semibold text-amber-300 mb-3",children:"Feeding People â Literally"}),t.jsx("p",{className:"text-white/65 text-sm leading-relaxed",children:"The loÊ»i kalo at Waipahu is not a demonstration garden. Traditional Hawaiian agriculture built on systems like this fed hundreds of thousands of people across these islands. Every hour of volunteer work at the loÊ»i is an hour invested in rebuilding that capacity â not preserving history, but growing a living food system with the potential to feed tens of thousands again. Volunteers are not observers of that future. They are building it."})]})]}),t.jsxs("div",{className:"border border-white/10 bg-white/5 rounded-2xl p-8",children:[t.jsx("h3",{className:"font-serif text-xl font-semibold text-white mb-4",children:"Honest About History"}),t.jsx("p",{className:"text-white/70 leading-relaxed mb-4",children:"Part of this work is education. HawaiÊ»i's sovereignty was overthrown. Its language was banned. Its land was taken from the people who had shaped and sustained it for a thousand years. These are not distant historical footnotes â they are the context for every invasive species crowding a native shoreline, every diverted stream, every loÊ»i left dry."}),t.jsx("p",{className:"text-white/70 leading-relaxed mb-4",children:"Understanding this changes what a volunteer is doing when they show up. They are not performing a charitable act for a place in need. They are participating in a repair â one the land itself has been waiting for, and one that the people who never stopped caring for it have been holding space for, for a very long time."}),t.jsx("p",{className:"text-white/70 leading-relaxed",children:"And this truth opens something wider: all humans carry some form of historical or personal trauma. Disconnection, displacement, the loss of something that was supposed to be there. The work of restoration â of returning to a place, caring for it with others, learning its real story â creates space where that weight can be named and, in time, set down."})]})]}),t.jsxs("div",{className:"border border-amber-400/30 bg-amber-400/5 rounded-2xl p-10 text-center",children:[t.jsx("p",{className:"text-amber-300 uppercase tracking-widest text-xs font-medium mb-5",children:"What Has Always Been True"}),t.jsx("p",{className:"font-serif text-2xl md:text-3xl text-white font-semibold leading-snug mb-6",children:"Faith. Hope. Love."}),t.jsx("p",{className:"text-white/70 leading-relaxed max-w-2xl mx-auto mb-4",children:"These are not aspirations we are working toward. They are the original condition â present in the Ê»Äina, present in every person who has ever loved something enough to care for it. The work of HOH808 is not to create connection. It is to remove what has been placed between people and the connection that was always there."}),t.jsx("p",{className:"text-white/70 leading-relaxed max-w-2xl mx-auto",children:"Through Aloha â Unconditional Love in Action â through respect for the land and for each other, we remember: we are not separate. We have never been separate. We are all connected. Through love."}),t.jsx("div",{className:"mt-8 pt-8 border-t border-white/10",children:t.jsx("p",{className:"font-serif text-lg italic text-white/60",children:"Aloha â Unconditional Love in Action."})})]})]})}),t.jsx("section",{className:"py-20 bg-[#0e2d14] text-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs("div",{className:"text-center mb-12",children:[t.jsx("p",{className:"text-emerald-400 uppercase tracking-widest text-xs font-medium mb-2",children:"Built-In Accountability"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold mb-3",children:"Protocol and Reflexivity"}),t.jsx("p",{className:"text-white/60 max-w-2xl mx-auto leading-relaxed",children:"The 3N1 model includes explicit safeguards against two familiar patterns: short-term extraction, and outside organizations defining what is good for a community. Neither is acceptable. Both require ongoing attention."})]}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:RA.map(n=>t.jsxs("div",{className:"border border-white/10 bg-white/5 rounded-xl p-6",children:[t.jsx("h3",{className:"font-serif font-semibold text-white text-base mb-3",children:n.title}),t.jsx("p",{className:"text-white/60 text-sm leading-relaxed",children:n.body})]},n.title))}),t.jsxs("div",{className:"mt-10 border-t border-white/10 pt-10 text-center",children:[t.jsx("p",{className:"font-serif text-xl italic text-white/80 mb-2",children:"E mÄlama i ka Ê»Äina, e mÄlama ka Ê»Äina iÄ Ê»oe."}),t.jsx("p",{className:"text-white/50 text-sm",children:"Care for the land, and the land will care for you."})]})]})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsxs("div",{className:"text-center mb-10",children:[t.jsx("p",{className:"text-primary uppercase tracking-widest text-xs font-medium mb-2",children:"Scholarship"}),t.jsx("h2",{className:"font-serif text-3xl font-semibold text-foreground mb-3",children:"Research Foundation"}),t.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"The 3N1 model is the subject of ongoing doctoral research in Community Resources and Development at Arizona State University, currently being implemented through HOH808."})]}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-8",children:[{field:"Systems Theory",desc:"Communities as interdependent socio-ecological systems â when all participants move in the same direction, the whole system grows stronger."},{field:"Asset-Based Development",desc:"Local knowledge, relationships, and cultural legitimacy are core resources â not supplemental context."},{field:"Network Governance",desc:"Hub-based coordination reduces barriers to participation, clarifies roles, and aligns diverse actors around shared stewardship."},{field:"Indigenous Methodologies",desc:"Cultural protocol is treated as governance, not symbolism â consent, place-based authority, and relational accountability are structural requirements."},{field:"Community Philanthropy",desc:"The community's own capacity â time, trust, knowledge, presence â is the primary philanthropic asset. External grants support that capacity; they do not replace it."}
104,{field:"Reflexive Ethics",desc:"Ongoing self-examination is built into model operation: practitioners actively invite feedback on whether language and leadership respect community authority."}].map(n=>t.jsxs("div",{className:"border border-border rounded-xl p-5 bg-card flex gap-4 items-start",children:[t.jsx("div",{className:"w-2 h-2 rounded-full bg-primary mt-2 flex-shrink-0"}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-foreground text-sm mb-1",children:n.field}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:n.desc})]})]},n.field))})]})}),t.jsx("section",{className:"py-16 bg-muted/30",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[t.jsx("h2",{className:"font-serif text-2xl font-semibold text-foreground mb-8 text-center",children:"Continue Exploring"}),t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[t.jsxs(pe,{href:"/about",className:"block border border-border rounded-lg p-6 hover:border-primary/40 hover:bg-primary/5 transition-all text-center bg-white",children:[t.jsx("p",{className:"font-serif font-semibold text-foreground",children:"About Us"}),t.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Our mission and history"})]}),t.jsxs(pe,{href:"/project-sites",className:"block border border-border rounded-lg p-6 hover:border-primary/40 hover:bg-primary/5 transition-all text-center bg-white",children:[t.jsx("p",{className:"font-serif font-semibold text-foreground",children:"Program Sites"}),t.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Where the model operates"})]}),t.jsxs(pe,{href:"/volunteer",className:"block border border-border rounded-lg p-6 hover:border-primary/40 hover:bg-primary/5 transition-all text-center bg-white flex flex-col items-center",children:[t.jsx("p",{className:"font-serif font-semibold text-foreground",children:"Volunteer"}),t.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Join the network"})]})]})]})})]})}function LA(){return t.jsxs("div",{className:"min-h-[60vh] flex items-center justify-center","data-testid":"not-found-page",children:[t.jsx(Be,{title:"Page Not Found",description:"The page you're looking for doesn't exist. Return to the Hui o Hoʻohonua homepage to find volunteer programs, events, and restoration projects in ʻEwa Moku."}),t.jsxs("div",{className:"text-center px-6",children:[t.jsx("p",{className:"font-serif text-6xl font-bold text-primary mb-4",children:"404"}),t.jsx("h1",{className:"font-serif text-2xl font-semibold text-foreground mb-3",children:"Page Not Found"}),t.jsx("p",{className:"text-muted-foreground mb-8",children:"The page you're looking for doesn't exist."}),t.jsx(pe,{href:"/",className:"inline-block px-6 py-3 bg-primary text-white font-medium rounded-md hover:bg-primary/90 transition-colors",children:"Go Home"})]})]})}const zA=new UN;function UA(n){const[s,i,l]=n.split("-").map(Number);return new Date(s,i-1,l).toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric"})}function FA(){const[n,s]=w.useState([]),[i,l]=w.useState(new Set);w.useEffect(()=>{be("/api/cancellations").then(m=>m.ok?m.json():null).then(m=>{m?.data&&s(m.data)}).catch(()=>{})},[]);const d=n.filter(m=>!i.has(m.id));return d.length===0?null:t.jsx("div",{className:"space-y-0",children:d.map(m=>t.jsxs("div",{className:"bg-red-600 text-white px-4 py-3 flex items-start justify-between gap-4",children:[t.jsxs("div",{className:"flex items-start gap-2 text-sm leading-snug",children:[t.jsx(Zt,{className:"w-4 h-4 shrink-0 mt-0.5"}),t.jsxs("div",{children:[t.jsx("span",{className:"font-semibold",children:"Workday Cancelled: "}),Er(m.projectId)?.title??m.projectId," on ",UA(m.workdayDate)," has been cancelled.",m.reason&&t.jsxs("span",{children:[" ",m.reason]})," ","Registered volunteers have been notified by email."]})]}),t.jsx("button",{onClick:()=>l(p=>new Set([...p,m.id])),className:"shrink-0 text-white/80 hover:text-white transition-colors","aria-label":"Dismiss",children:t.jsx(Jt,{className:"w-4 h-4"})})]},m.id))})}function BA(){return t.jsxs(ag,{children:[t.jsx(_e,{path:"/admin",component:VM}),t.jsx(_e,{path:"/volunteer/general-flyer",component:SA}),t.jsx(_e,{path:"/volunteer/pham-flyer",component:MA}),t.jsx(_e,{path:"/volunteer/halawa-flyer",component:TA}),t.jsx(_e,{children:t.jsxs("div",{className:"flex flex-col min-h-screen",children:[t.jsx(FA,{}),t.jsx(t3,{}),t.jsx("main",{className:"flex-1",children:t.jsxs(ag,{children:[t.jsx(_e,{path:"/",component:d3}),t.jsx(_e,{path:"/about",component:h3}),t.jsx(_e,{path:"/programs",component:EM}),t.jsx(_e,{path:"/staff",component:x3}),t.jsx(_e,{path:"/board",component:b3}),t.jsx(_e,{path:"/partners",component:v3}),t.jsx(_e,{path:"/get-involved",component:w3}),t.jsx(_e,{path:"/project-sites",component:N3}),t.jsx(_e,{path:"/malama-kapapapuhi",component:S3}),t.jsx(_e,{path:"/waipahu-loi",component:k3}),t.jsx(_e,{path:"/adopt-a-plot",component:A3}),t.jsx(_e,{path:"/support",component:C3}),t.jsx(_e,{path:"/donate",component:O3}),t.jsx(_e,{path:"/donate/success",component:_3}),t.jsx(_e,{path:"/sponsorship",component:L3}),t.jsx(_e,{path:"/contact",component:z3}),t.jsx(_e,{path:"/news",component:F3}),t.jsx(_e,{path:"/events",component:bM}),t.jsx(_e,{path:"/volunteer/cancel",component:EA}),t.jsx(_e,{path:"/volunteer/verify",component:HA}),t.jsx(_e,{path:"/volunteer/confirm",component:OA}),t.jsx(_e,{path:"/volunteer",component:AM}),t.jsx(_e,{path:"/media-release",component:KM}),t.jsx(_e,{path:"/stories",component:XM}
104),t.jsx(_e,{path:"/transparency",component:ZM}),t.jsx(_e,{path:"/grants",component:rA}),t.jsx(_e,{path:"/license-plate",component:oA}),t.jsx(_e,{path:"/movsm",component:mA}),t.jsx(_e,{path:"/halawa-landing",component:hA}),t.jsx(_e,{path:"/feedback",component:DA}),t.jsx(_e,{path:"/our-model",component:_A}),t.jsx(_e,{component:LA})]})}),t.jsx(n3,{})]})})]})}function qA(){return t.jsx(Fb,{children:t.jsx(BN,{client:zA,children:t.jsxs(X5,{children:[t.jsx(Ob,{base:"/".replace(/\/$/,""),children:t.jsx(BA,{})}),t.jsx(gk,{})]})})})}fj.createRoot(document.getElementById("root")).render(t.jsx(qA,{}));
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.