PageSourceSearch

https://mnchurches.org/assets/index-DjSzh7PR.js

js mnchurches.org collected 2026-09-25 18:52:27 UTC 1,193,449 bytes, 502 lines download raw bytes

vendor: 4,305 bytes, lines 1-9
1var KS=Object.defineProperty;var o1=e=>{throw TypeError(e)};var ZS=(e,t,n)=>t in e?KS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qn=(e,t,n)=>ZS(e,typeof t!="symbol"?t+"":t,n),nf=(e,t,n)=>t.has(e)||o1("Cannot "+n);var M=(e,t,n)=>(nf(e,t,"read from private field"),n?n.call(e):t.get(e)),we=(e,t,n)=>t.has(e)?o1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(nf(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),xt=(e,t,n)=>(nf(e,t,"access private method"),n);var _c=(e,t,n,r)=>({set _(s){he(e,t,s,n)},get _(){return M(e,t,r)}});function GS(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i2={exports:{}},Wd={},o2={exports:{}},ve={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var rc=Symbol.for("react.element"),JS=Symbol.for("react.portal"),YS=Symbol.for("react.fragment"),QS=Symbol.for("react.strict_mode"),XS=Symbol.for("react.profiler"),ek=Symbol.for("react.provider"),tk=Symbol.for("react.context"),nk=Symbol.for("react.forward_ref"),rk=Symbol.for("react.suspense"),sk=Symbol.for("react.memo"),ik=Symbol.for("react.lazy"),a1=Symbol.iterator;function ok(e){return e===null||typeof e!="object"?null:(e=a1&&e[a1]||e["@@iterator"],typeof e=="function"?e:null)}var a2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l2=Object.assign,c2={};function ta(e,t,n){this.props=e,this.context=t,this.refs=c2,this.updater=n||a2}ta.prototype.isReactComponent={};ta.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ta.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function u2(){}u2.prototype=ta.prototype;function Eg(e,t,n){this.props=e,this.context=t,this.refs=c2,this.updater=n||a2}var Ng=Eg.prototype=new u2;Ng.constructor=Eg;l2(Ng,ta.prototype);Ng.isPureReactComponent=!0;var l1=Array.isArray,d2=Object.prototype.hasOwnProperty,Rg={current:null},h2={key:!0,ref:!0,__self:!0,__source:!0};function f2(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)d2.call(t,r)&&!h2.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:rc,type:e,key:i,ref:o,props:s,_owner:Rg.current}}function ak(e,t){return{$$typeof:rc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ag(e){return typeof e=="object"&&e!==null&&e.$$typeof===rc}function lk(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var c1=/\/+/g;function rf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?lk(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function mu(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case rc:case JS:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+rf(o,0):r,l1(s)?(n="",e!=null&&(n=e.replace(c1,"$&/")+"/"),mu(s,t,n,"",function(u){return u})):s!=null&&(Ag(s)&&(s=ak(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(c1,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",l1(e))for(var l=0;l<e.length;l++){i=e[l];var c=r+rf(i,l);o+=mu(i,t,n,c,s)}else if(c=ok(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=r+rf(i,l++),o+=mu(i,t,n,c,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function jc(e,t,n){if(e==null)return e;var r=[],s=0;return mu(e,r,"","",function(i){return t.call(n,i,s++)}),r}function ck(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ot={current:null},gu={transition:null},uk={ReactCurrentDispatcher:Ot,ReactCurrentBatchConfig:gu,ReactCurrentOwner:Rg};function p2(){throw Error("act(...) is not supported in production builds of React.")}ve.Children={map:jc,forEach:function(e,t,n){jc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return jc(e,function(){t++}),t},toArray:function(e){return jc(e,function(t){return t})||[]},only:function(e){if(!Ag(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ve.Component=ta;ve.Fragment=YS;ve.Profiler=XS;ve.PureComponent=Eg;ve.StrictMode=QS;ve.Suspense=rk;ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uk;ve.act=p2;ve.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=l2({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Rg.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)d2.call(t,c)&&!h2.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:rc,type:e.type,key:s,ref:i,props:r,_owner:o}};ve.createContext=function(e){return e={$$typeof:tk,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ek,_context:e},e.Consumer=e};ve.createElement=f2;ve.createFactory=function(e){var t=f2.bind(null,e);return t.type=e,t};ve.createRef=function(){return{current:null}};ve.forwardRef=function(e){return{$$typeof:nk,render:e}};ve.isValidElement=Ag;ve.lazy=function(e){return{$$typeof:ik,_payload:{_status:-1,_result:e},_init:ck}};ve.memo=function(e,t){return{$$typeof:sk,type:e,compare:t===void 0?null:t}};ve.startTransition=function(e){var t=gu.transition;gu.transition={};try{e()}finally{gu.transition=t}};ve.unstable_act=p2;ve.useCallback=function(e,t){return Ot.current.useCallback(e,t)};ve.useContext=function(e){return Ot.current.useContext(e)};ve.useDebugValue=function(){};ve.useDeferredValue=function(e){return Ot.current.useDeferredValue(e)};ve.useEffect=function(e,t){return Ot.current.useEffect(e,t)};ve.useId=function(){return Ot.current.useId()};ve.useImperativeHandle=function(e,t,n){return Ot.current.useImperativeHandle(e,t,n)};ve.useInsertionEffect=function(e,t){return Ot.current.useInsertionEffect(e,t)};ve.useLayoutEffect=function(e,t){return Ot.current.useLayoutEffect(e,t)};ve.useMemo=function(e,t){return Ot.current.useMemo(e,t)};ve.useReducer=function(e,t,n){return Ot.current.useReducer(e,t,n)};ve.useRef=function(e){return Ot.current.useRef(e)};ve.useState=function(e){return Ot.current.useState(e)};ve.useSyncExternalStore=function(e,t,n){return Ot.current.useSyncExternalStore(e,t,n)};ve.useTransition=function(){return Ot.current.useTransition()};ve.version="18.3.1";o2.exports=ve;var b=o2.exports;const $=nc(b),Pg=GS({__proto__:null,default:$},[b]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var dk=b,hk=Symbol.for("react.element"),fk=Symbol.for("react.fragment"),pk=Object.prototype.hasOwnProperty,mk=dk.__SECRET_INT
vendor: 8,834 bytes, lines 17-33
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gk={key:!0,ref:!0,__self:!0,__source:!0};function m2(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)pk.call(t,r)&&!gk.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:hk,type:e,key:i,ref:o,props:s,_owner:mk.current}}Wd.Fragment=fk;Wd.jsx=m2;Wd.jsxs=m2;i2.exports=Wd;var a=i2.exports,g2={exports:{}},nn={},v2={exports:{}},y2={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(N,P){var A=N.length;N.push(P);e:for(;0<A;){var Z=A-1>>>1,K=N[Z];if(0<s(K,P))N[Z]=P,N[A]=K,A=Z;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var P=N[0],A=N.pop();if(A!==P){N[0]=A;e:for(var Z=0,K=N.length,se=K>>>1;Z<se;){var ee=2*(Z+1)-1,_e=N[ee],Te=ee+1,U=N[Te];if(0>s(_e,A))Te<K&&0>s(U,_e)?(N[Z]=U,N[Te]=A,Z=Te):(N[Z]=_e,N[ee]=A,Z=ee);else if(Te<K&&0>s(U,A))N[Z]=U,N[Te]=A,Z=Te;else break e}}return P}function s(N,P){var A=N.sortIndex-P.sortIndex;return A!==0?A:N.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,y=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(N){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=N)r(u),P.sortIndex=P.expirationTime,t(c,P);else break;P=n(u)}}function C(N){if(m=!1,x(N),!y)if(n(c)!==null)y=!0,B(_);else{var P=n(u);P!==null&&V(C,P.startTime-N)}}function _(N,P){y=!1,m&&(m=!1,v(k),k=-1),p=!0;var A=f;try{for(x(P),h=n(c);h!==null&&(!(h.expirationTime>P)||N&&!D());){var Z=h.callback;if(typeof Z=="function"){h.callback=null,f=h.priorityLevel;var K=Z(h.expirationTime<=P);P=e.unstable_now(),typeof K=="function"?h.callback=K:h===n(c)&&r(c),x(P)}else r(c);h=n(c)}if(h!==null)var se=!0;else{var ee=n(u);ee!==null&&V(C,ee.startTime-P),se=!1}return se}finally{h=null,f=A,p=!1}}var S=!1,j=null,k=-1,T=5,R=-1;function D(){return!(e.unstable_now()-R<T)}function O(){if(j!==null){var N=e.unstable_now();R=N;var P=!0;try{P=j(!0,N)}finally{P?W():(S=!1,j=null)}}else S=!1}var W;if(typeof g=="function")W=function(){g(O)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,J=L.port2;L.port1.onmessage=O,W=function(){J.postMessage(null)}}else W=function(){w(O,0)};function B(N){j=N,S||(S=!0,W())}function V(N,P){k=w(function(){N(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){y||p||(y=!0,B(_))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(N){switch(f){case 1:case 2:case 3:var P=3;break;default:P=f}var A=f;f=P;try{return N()}finally{f=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,P){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var A=f;f=N;try{return P()}finally{f=A}},e.unstable_scheduleCallback=function(N,P,A){var Z=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?Z+A:Z):A=Z,N){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=A+K,N={id:d++,callback:P,priorityLevel:N,startTime:A,expirationTime:K,sortIndex:-1},A>Z?(N.sortIndex=A,t(u,N),n(c)===null&&N===n(u)&&(m?(v(k),k=-1):m=!0,V(C,A-Z))):(N.sortIndex=K,t(c,N),y||p||(y=!0,B(_))),N},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(N){var P=f;return function(){var A=f;f=P;try{return N.apply(this,arguments)}finally{f=A}}}})(y2);v2.exports=y2;var vk=v2.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var yk=b,en=vk;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b2=new Set,dl={};function Ai(e,t){Bo(e,t),Bo(e+"Capture",t)}function Bo(e,t){for(dl[e]=t,e=0;e<t.length;e++)b2.add(t[e])}var Lr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kp=Object.prototype.hasOwnProperty,bk=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u1={},d1={};function xk(e){return kp.call(d1,e)?!0:kp.call(u1,e)?!1:bk.test(e)?d1[e]=!0:(u1[e]=!0,!1)}function wk(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ck(e,t,n,r){if(t===null||typeof t>"u"||wk(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function It(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yt[e]=new It(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yt[t]=new It(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yt[e]=new It(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yt[e]=new It(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yt[e]=new It(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yt[e]=new It(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yt[e]=new It(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yt[e]=new It(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yt[e]=new It(e,5,!1,e.toLowerCase(),null,!1,!1)});var $g=/[\-:]([a-z])/g;function Mg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
33-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($g,Mg);yt[t]=new It(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace($g,Mg);yt[t]=new It(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($g,Mg);yt[t]=new It(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yt[e]=new It(e,1,!1,e.toLowerCase(),null,!1,!1)});yt.xlinkHref=new It("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yt[e]=new It(e,1,!1,e.toLowerCase(),null,!0,!0)});function Og(e,t,n,r){var s=yt.hasOwnProperty(t)?yt[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ck(t,n,s,r)&&(n=null),r||s===null?xk(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var qr=yk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sc=Symbol.for("react.element"),to=Symbol.for("react.portal"),no=Symbol.for("react.fragment"),Ig=Symbol.for("react.strict_mode"),Tp=Symbol.for("react.profiler"),x2=Symbol.for("react.provider"),w2=Symbol.for("react.context"),Dg=Symbol.for("react.forward_ref"),Ep=Symbol.for("react.suspense"),Np=Symbol.for("react.suspense_list"),Lg=Symbol.for("react.memo"),os=Symbol.for("react.lazy"),C2=Symbol.for("react.offscreen"),h1=Symbol.iterator;function xa(e){return e===null||typeof e!="object"?null:(e=h1&&e[h1]||e["@@iterator"],typeof e=="function"?e:null)}var We=Object.assign,sf;function Ma(e){if(sf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);sf=t&&t[1]||""}return`
34`+sf+e}var of=!1;function af(e,t){if(!e||of)return"";of=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),i=r.stack.split(`
36`),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var c=`
37`+s[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{of=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ma(e):""}function _k(e){switch(e.tag){case 5:return Ma(e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return e=af(e.type,!1),e;case 11:return e=af(e.type.render,!1),e;case 1:return e=af(e.type,!0),e;default:return""}}function Rp(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case no:return"Fragment";case to:return"Portal";case Tp:return"Profiler";case Ig:return"StrictMode";case Ep:return"Suspense";case Np:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w2:return(e.displayName||"Context")+".Consumer";case x2:return(e._context.displayName||"Context")+".Provider";case Dg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lg:return t=e.displayName||null,t!==null?t:Rp(e.type)||"Memo";case os:t=e._payload,e=e._init;try{return Rp(e(t))}catch{}}return null}function jk(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Rp(t);case 8:return t===Ig?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ps(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sk(e){var t=_2(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kc(e){e._valueTracker||(e._valueTracker=Sk(e))}function j2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_2(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fu(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}}function Ap(e,t){var n=t.checked;return We({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function f1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ps(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function S2(e,t){t=t.checked,t!=null&&Og(e,"checked",t,!1)}function Pp(e,t){S2(e,t);var n=Ps(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$p(e,t.type,n):t.hasOwnProperty("defaultValue")&&$p(e,t.type,Ps(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function p1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function $p(e,t,n){(t!=="number"||Fu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Oa=Array.isArray;function wo(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ps(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Mp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(z(91));return We({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function m1(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(z(92));if(Oa(n)){if(1<n.length)throw Error(z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ps(n)}}function k2(e,t){var n=Ps(t.value),r=Ps(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function g1(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function T2(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Op(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?T2(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Tc,E2=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Tc=Tc||document.createElement("div"),Tc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Tc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hl(e,t){if(t){var n=e.firstChild;
vendor: 8,865 bytes, line 37
37if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ka={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kk=["Webkit","ms","Moz","O"];Object.keys(Ka).forEach(function(e){kk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ka[t]=Ka[e]})});function N2(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ka.hasOwnProperty(e)&&Ka[e]?(""+t).trim():t+"px"}function R2(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=N2(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Tk=We({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ip(e,t){if(t){if(Tk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Dp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Lp=null;function zg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zp=null,Co=null,_o=null;function v1(e){if(e=oc(e)){if(typeof zp!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Jd(t),zp(e.stateNode,e.type,t))}}function A2(e){Co?_o?_o.push(e):_o=[e]:Co=e}function P2(){if(Co){var e=Co,t=_o;if(_o=Co=null,v1(e),t)for(e=0;e<t.length;e++)v1(t[e])}}function $2(e,t){return e(t)}function M2(){}var lf=!1;function O2(e,t,n){if(lf)return e(t,n);lf=!0;try{return $2(e,t,n)}finally{lf=!1,(Co!==null||_o!==null)&&(M2(),P2())}}function fl(e,t){var n=e.stateNode;if(n===null)return null;var r=Jd(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(z(231,t,typeof n));return n}var Fp=!1;if(Lr)try{var wa={};Object.defineProperty(wa,"passive",{get:function(){Fp=!0}}),window.addEventListener("test",wa,wa),window.removeEventListener("test",wa,wa)}catch{Fp=!1}function Ek(e,t,n,r,s,i,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Za=!1,Uu=null,Bu=!1,Up=null,Nk={onError:function(e){Za=!0,Uu=e}};function Rk(e,t,n,r,s,i,o,l,c){Za=!1,Uu=null,Ek.apply(Nk,arguments)}function Ak(e,t,n,r,s,i,o,l,c){if(Rk.apply(this,arguments),Za){if(Za){var u=Uu;Za=!1,Uu=null}else throw Error(z(198));Bu||(Bu=!0,Up=u)}}function Pi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function I2(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y1(e){if(Pi(e)!==e)throw Error(z(188))}function Pk(e){var t=e.alternate;if(!t){if(t=Pi(e),t===null)throw Error(z(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return y1(s),e;if(i===r)return y1(s),t;i=i.sibling}throw Error(z(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o)throw Error(z(189))}}if(n.alternate!==r)throw Error(z(190))}if(n.tag!==3)throw Error(z(188));return n.stateNode.current===n?e:t}function D2(e){return e=Pk(e),e!==null?L2(e):null}function L2(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=L2(e);if(t!==null)return t;e=e.sibling}return null}var z2=en.unstable_scheduleCallback,b1=en.unstable_cancelCallback,$k=en.unstable_shouldYield,Mk=en.unstable_requestPaint,Xe=en.unstable_now,Ok=en.unstable_getCurrentPriorityLevel,Fg=en.unstable_ImmediatePriority,F2=en.unstable_UserBlockingPriority,Vu=en.unstable_NormalPriority,Ik=en.unstable_LowPriority,U2=en.unstable_IdlePriority,qd=null,ur=null;function Dk(e){if(ur&&typeof ur.onCommitFiberRoot=="function")try{ur.onCommitFiberRoot(qd,e,void 0,(e.current.flags&128)===128)}catch{}}var Bn=Math.clz32?Math.clz32:Fk,Lk=Math.log,zk=Math.LN2;function Fk(e){return e>>>=0,e===0?32:31-(Lk(e)/zk|0)|0}var Ec=64,Nc=4194304;function Ia(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~s;l!==0?r=Ia(l):(i&=o,i!==0&&(r=Ia(i)))}else o=n&~s,o!==0?r=Ia(o):i!==0&&(r=Ia(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Bn(t),s=1<<n,r|=e[n],t&=~s;return r}function Uk(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bk(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Bn(i),l=1<<o,c=s[o];c===-1?(!(l&n)||l&r)&&(s[o]=Uk(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function Bp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function B2(){var e=Ec;return Ec<<=1,!(Ec&4194240)&&(Ec=64),e}function cf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function sc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bn(t),e[t]=n}function Vk(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Bn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Ug(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Bn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ke=0;function V2(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var H2,Bg,W2,q2,K2,Vp=!1,Rc=[],Cs=null,_s=null,js=null,pl=new Map,ml=new Map,cs=[],Hk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function x1(e,t){switch(e){case"focusin":case"focusout":Cs=null;break;case"dragenter":case"dragleave":_s=null;break;case"mouseover":case"mouseout":js=null;break;case"pointerover":case"pointerout":pl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ml.delete(t.pointerId)}}function Ca(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=oc(t),t!==null&&Bg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 11,707 bytes, line 37
37function Wk(e,t,n,r,s){switch(t){case"focusin":return Cs=Ca(Cs,e,t,n,r,s),!0;case"dragenter":return _s=Ca(_s,e,t,n,r,s),!0;case"mouseover":return js=Ca(js,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return pl.set(i,Ca(pl.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ml.set(i,Ca(ml.get(i)||null,e,t,n,r,s)),!0}return!1}function Z2(e){var t=ii(e.target);if(t!==null){var n=Pi(t);if(n!==null){if(t=n.tag,t===13){if(t=I2(n),t!==null){e.blockedOn=t,K2(e.priority,function(){W2(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Lp=r,n.target.dispatchEvent(r),Lp=null}else return t=oc(n),t!==null&&Bg(t),e.blockedOn=n,!1;t.shift()}return!0}function w1(e,t,n){vu(e)&&n.delete(t)}function qk(){Vp=!1,Cs!==null&&vu(Cs)&&(Cs=null),_s!==null&&vu(_s)&&(_s=null),js!==null&&vu(js)&&(js=null),pl.forEach(w1),ml.forEach(w1)}function _a(e,t){e.blockedOn===t&&(e.blockedOn=null,Vp||(Vp=!0,en.unstable_scheduleCallback(en.unstable_NormalPriority,qk)))}function gl(e){function t(s){return _a(s,e)}if(0<Rc.length){_a(Rc[0],e);for(var n=1;n<Rc.length;n++){var r=Rc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Cs!==null&&_a(Cs,e),_s!==null&&_a(_s,e),js!==null&&_a(js,e),pl.forEach(t),ml.forEach(t),n=0;n<cs.length;n++)r=cs[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<cs.length&&(n=cs[0],n.blockedOn===null);)Z2(n),n.blockedOn===null&&cs.shift()}var jo=qr.ReactCurrentBatchConfig,Wu=!0;function Kk(e,t,n,r){var s=ke,i=jo.transition;jo.transition=null;try{ke=1,Vg(e,t,n,r)}finally{ke=s,jo.transition=i}}function Zk(e,t,n,r){var s=ke,i=jo.transition;jo.transition=null;try{ke=4,Vg(e,t,n,r)}finally{ke=s,jo.transition=i}}function Vg(e,t,n,r){if(Wu){var s=Hp(e,t,n,r);if(s===null)bf(e,t,r,qu,n),x1(e,r);else if(Wk(s,e,t,n,r))r.stopPropagation();else if(x1(e,r),t&4&&-1<Hk.indexOf(e)){for(;s!==null;){var i=oc(s);if(i!==null&&H2(i),i=Hp(e,t,n,r),i===null&&bf(e,t,r,qu,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else bf(e,t,r,null,n)}}var qu=null;function Hp(e,t,n,r){if(qu=null,e=zg(r),e=ii(e),e!==null)if(t=Pi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=I2(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qu=e,null}function G2(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ok()){case Fg:return 1;case F2:return 4;case Vu:case Ik:return 16;case U2:return 536870912;default:return 16}default:return 16}}var ys=null,Hg=null,yu=null;function J2(){if(yu)return yu;var e,t=Hg,n=t.length,r,s="value"in ys?ys.value:ys.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return yu=s.slice(e,1<r?1-r:void 0)}function bu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ac(){return!0}function C1(){return!1}function rn(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ac:C1,this.isPropagationStopped=C1,this}return We(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ac)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ac)},persist:function(){},isPersistent:Ac}),t}var na={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wg=rn(na),ic=We({},na,{view:0,detail:0}),Gk=rn(ic),uf,df,ja,Kd=We({},ic,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qg,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!==ja&&(ja&&e.type==="mousemove"?(uf=e.screenX-ja.screenX,df=e.screenY-ja.screenY):df=uf=0,ja=e),uf)},movementY:function(e){return"movementY"in e?e.movementY:df}}),_1=rn(Kd),Jk=We({},Kd,{dataTransfer:0}),Yk=rn(Jk),Qk=We({},ic,{relatedTarget:0}),hf=rn(Qk),Xk=We({},na,{animationName:0,elapsedTime:0,pseudoElement:0}),e6=rn(Xk),t6=We({},na,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),n6=rn(t6),r6=We({},na,{data:0}),j1=rn(r6),s6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i6={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"},o6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function a6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=o6[e])?!!t[e]:!1}function qg(){return a6}var l6=We({},ic,{key:function(e){if(e.key){var t=s6[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?i6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qg,charCode:function(e){return e.type==="keypress"?bu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),c6=rn(l6),u6=We({},Kd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),S1=rn(u6),d6=We({},ic,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qg}),h6=rn(d6),f6=We({},na,{propertyName:0,elapsedTime:0,pseudoElement:0}),p6=rn(f6),m6=We({},Kd,{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}),g6=rn(m6),v6=[9,13,27,32],Kg=Lr&&"CompositionEvent"in window,Ga=null;Lr&&"documentMode"in document&&(Ga=document.documentMode);var y6=Lr&&"TextEvent"in window&&!Ga,Y2=Lr&&(!Kg||Ga&&8<Ga&&11>=Ga),k1=" ",T1=!1;function Q2(e,t){switch(e){case"keyup":return v6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function X2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ro=!1;function b6(e,t){switch(e){case"compositionend":return X2(t);case"keypress":return t.which!==32?null:(T1=!0,k1);case"textInput":return e=t.data,e===k1&&T1?null:e;default:return null}}function x6(e,t){if(ro)return e==="compositionend"||!Kg&&Q2(e,t)?(e=J2(),yu=Hg=ys=null,ro=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Y2&&t.locale!=="ko"?null:t.data;default:return null}}var w6={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 E1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!w6[e.type]:t==="textarea"}function eC(e,t,n,r){A2(r),t=Ku(t,"onChange"),0<t.length&&(n=new Wg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ja=null,vl=null;function C6(e){dC(e,0)}function Zd(e){var t=oo(e);if(j2(t))return e}function _6(e,t){if(e==="change")return t}var tC=!1;if(Lr){var ff;if(Lr){var pf="oninput"in document;if(!pf){var N1=document.createElement("div");N1.setAttribute("oninput","return;"),pf=typeof N1.oninput=="function"}ff=pf}else ff=!1;tC=ff&&(!document.documentMode||9<document.documentMode)}function R1(){Ja&&(Ja.detachEvent("onpropertychange",nC),vl=Ja=null)}function nC(e){if(e.propertyName==="value"&&Zd(vl)){var t=[];eC(t,vl,e,zg(e)),O2(C6,t)}}function j6(e,t,n){e==="focusin"?(R1(),Ja=t,vl=n,Ja.attachEvent("onpropertychange",nC)):e==="focusout"&&R1()}function S6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zd(vl)}function k6(e,t){if(e==="click")return Zd(t)}function T6(e,t){if(e==="input"||e==="change")return Zd(t)}function E6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wn=typeof Object.is=="function"?Object.is:E6;function yl(e,t){if(Wn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!kp.call(t,s)||!Wn(e[s],t[s]))return!1}return!0}function A1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function P1(e,t){var n=A1(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=A1(n)}}function rC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sC(){for(var e=window,t=Fu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fu(e.document)}return t}function Zg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function N6(e){var t=sC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rC(n.ownerDocument.documentElement,n)){if(r!==null&&Zg(n)){if
vendor: 4,319 bytes, line 37
37(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=P1(n,i);var o=P1(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var R6=Lr&&"documentMode"in document&&11>=document.documentMode,so=null,Wp=null,Ya=null,qp=!1;function $1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qp||so==null||so!==Fu(r)||(r=so,"selectionStart"in r&&Zg(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ya&&yl(Ya,r)||(Ya=r,r=Ku(Wp,"onSelect"),0<r.length&&(t=new Wg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=so)))}function Pc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var io={animationend:Pc("Animation","AnimationEnd"),animationiteration:Pc("Animation","AnimationIteration"),animationstart:Pc("Animation","AnimationStart"),transitionend:Pc("Transition","TransitionEnd")},mf={},iC={};Lr&&(iC=document.createElement("div").style,"AnimationEvent"in window||(delete io.animationend.animation,delete io.animationiteration.animation,delete io.animationstart.animation),"TransitionEvent"in window||delete io.transitionend.transition);function Gd(e){if(mf[e])return mf[e];if(!io[e])return e;var t=io[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in iC)return mf[e]=t[n];return e}var oC=Gd("animationend"),aC=Gd("animationiteration"),lC=Gd("animationstart"),cC=Gd("transitionend"),uC=new Map,M1="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function zs(e,t){uC.set(e,t),Ai(t,[e])}for(var gf=0;gf<M1.length;gf++){var vf=M1[gf],A6=vf.toLowerCase(),P6=vf[0].toUpperCase()+vf.slice(1);zs(A6,"on"+P6)}zs(oC,"onAnimationEnd");zs(aC,"onAnimationIteration");zs(lC,"onAnimationStart");zs("dblclick","onDoubleClick");zs("focusin","onFocus");zs("focusout","onBlur");zs(cC,"onTransitionEnd");Bo("onMouseEnter",["mouseout","mouseover"]);Bo("onMouseLeave",["mouseout","mouseover"]);Bo("onPointerEnter",["pointerout","pointerover"]);Bo("onPointerLeave",["pointerout","pointerover"]);Ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ai("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Da="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(" "),$6=new Set("cancel close invalid load scroll toggle".split(" ").concat(Da));
vendor: 5,269 bytes, line 37
37function O1(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ak(r,t,void 0,e),e.currentTarget=null}function dC(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&s.isPropagationStopped())break e;O1(s,l,u),i=c}else for(o=0;o<r.length;o++){if(l=r[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&s.isPropagationStopped())break e;O1(s,l,u),i=c}}}if(Bu)throw e=Up,Bu=!1,Up=null,e}function $e(e,t){var n=t[Yp];n===void 0&&(n=t[Yp]=new Set);var r=e+"__bubble";n.has(r)||(hC(t,e,2,!1),n.add(r))}function yf(e,t,n){var r=0;t&&(r|=4),hC(n,e,r,t)}var $c="_reactListening"+Math.random().toString(36).slice(2);function bl(e){if(!e[$c]){e[$c]=!0,b2.forEach(function(n){n!=="selectionchange"&&($6.has(n)||yf(n,!1,e),yf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$c]||(t[$c]=!0,yf("selectionchange",!1,t))}}function hC(e,t,n,r){switch(G2(t)){case 1:var s=Kk;break;case 4:s=Zk;break;default:s=Vg}n=s.bind(null,t,n,e),s=void 0,!Fp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function bf(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;o=o.return}for(;l!==null;){if(o=ii(l),o===null)return;if(c=o.tag,c===5||c===6){r=i=o;continue e}l=l.parentNode}}r=r.return}O2(function(){var u=i,d=zg(n),h=[];e:{var f=uC.get(e);if(f!==void 0){var p=Wg,y=e;switch(e){case"keypress":if(bu(n)===0)break e;case"keydown":case"keyup":p=c6;break;case"focusin":y="focus",p=hf;break;case"focusout":y="blur",p=hf;break;case"beforeblur":case"afterblur":p=hf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=_1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Yk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=h6;break;case oC:case aC:case lC:p=e6;break;case cC:p=p6;break;case"scroll":p=Gk;break;case"wheel":p=g6;break;case"copy":case"cut":case"paste":p=n6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=S1}var m=(t&4)!==0,w=!m&&e==="scroll",v=m?f!==null?f+"Capture":null:f;m=[];for(var g=u,x;g!==null;){x=g;var C=x.stateNode;if(x.tag===5&&C!==null&&(x=C,v!==null&&(C=fl(g,v),C!=null&&m.push(xl(g,C,x)))),w)break;g=g.return}0<m.length&&(f=new p(f,y,null,n,d),h.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==Lp&&(y=n.relatedTarget||n.fromElement)&&(ii(y)||y[zr]))break e;if((p||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p?(y=n.relatedTarget||n.toElement,p=u,y=y?ii(y):null,y!==null&&(w=Pi(y),y!==w||y.tag!==5&&y.tag!==6)&&(y=null)):(p=null,y=u),p!==y)){if(m=_1,C="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=S1,C="onPointerLeave",v="onPointerEnter",g="pointer"),w=p==null?f:oo(p),x=y==null?f:oo(y),f=new m(C,g+"leave",p,n,d),f.target=w,f.relatedTarget=x,C=null,ii(d)===u&&(m=new m(v,g+"enter",y,n,d),m.target=x,m.relatedTarget=w,C=m),w=C,p&&y)t:{for(m=p,v=y,g=0,x=m;x;x=zi(x))g++;for(x=0,C=v;C;C=zi(C))x++;for(;0<g-x;)m=zi(m),g--;for(;0<x-g;)v=zi(v),x--;for(;g--;){if(m===v||v!==null&&m===v.alternate)break t;m=zi(m),v=zi(v)}m=null}else m=null;p!==null&&I1(h,f,p,m,!1),y!==null&&w!==null&&I1(h,w,y,m,!0)}}e:{if(f=u?oo(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var _=_6;else if(E1(f))if(tC)_=T6;else{_=S6;var S=j6}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=k6);if(_&&(_=_(e,u))){eC(h,_,n,d);break e}S&&S(e,f,u),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&$p(f,"number",f.value)}switch(S=u?oo(u):window,e){case"focusin":(E1(S)||S.contentEditable==="true")&&(so=S,Wp=u,Ya=null);break;case"focusout":Ya=Wp=so=null;break;case"mousedown":qp=!0;break;case"contextmenu":case"mouseup":case"dragend":qp=!1,$1(h,n,d);break;case"selectionchange":if(R6)break;case"keydown":case"keyup":$1(h,n,d)}var j;if(Kg)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else ro?Q2(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(Y2&&n.locale!=="ko"&&(ro||k!=="onCompositionStart"?k==="onCompositionEnd"&&ro&&(j=J2()):(ys=d,Hg="value"in ys?ys.value:ys.textContent,ro=!0)),S=Ku(u,k),0<S.length&&(k=new j1(k,e,null,n,d),h.push({event:k,listeners:S}),j?k.data=j:(j=X2(n),j!==null&&(k.data=j)))),(j=y6?b6(e,n):x6(e,n))&&
vendor: 4,519 bytes, lines 37-38
37(u=Ku(u,"onBeforeInput"),0<u.length&&(d=new j1("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=j))}dC(h,t)})}function xl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ku(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=fl(e,n),i!=null&&r.unshift(xl(e,i,s)),i=fl(e,t),i!=null&&r.push(xl(e,i,s))),e=e.return}return r}function zi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function I1(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,s?(c=fl(n,i),c!=null&&o.unshift(xl(n,c,l))):s||(c=fl(n,i),c!=null&&o.push(xl(n,c,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var M6=/\r\n?/g,O6=/\u0000|\uFFFD/g;function D1(e){return(typeof e=="string"?e:""+e).replace(M6,`
38`).replace(O6,"")}function Mc(e,t,n){if(t=D1(t),D1(e)!==t&&n)throw Error(z(425))}function Zu(){}var Kp=null,Zp=null;function Gp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jp=typeof setTimeout=="function"?setTimeout:void 0,I6=typeof clearTimeout=="function"?clearTimeout:void 0,L1=typeof Promise=="function"?Promise:void 0,D6=typeof queueMicrotask=="function"?queueMicrotask:typeof L1<"u"?function(e){return L1.resolve(null).then(e).catch(L6)}:Jp;function L6(e){setTimeout(function(){throw e})}function xf(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),gl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);gl(t)}function Ss(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function z1(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ra=Math.random().toString(36).slice(2),ar="__reactFiber$"+ra,wl="__reactProps$"+ra,zr="__reactContainer$"+ra,Yp="__reactEvents$"+ra,z6="__reactListeners$"+ra,F6="__reactHandles$"+ra;function ii(e){var t=e[ar];if(t)return t;for(var n=e.parentNode;n;){if(t=n[zr]||n[ar]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=z1(e);e!==null;){if(n=e[ar])return n;e=z1(e)}return t}e=n,n=e.parentNode}return null}function oc(e){return e=e[ar]||e[zr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function oo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(z(33))}function Jd(e){return e[wl]||null}var Qp=[],ao=-1;function Fs(e){return{current:e}}function Me(e){0>ao||(e.current=Qp[ao],Qp[ao]=null,ao--)}function Ae(e,t){ao++,Qp[ao]=e.current,e.current=t}var $s={},Et=Fs($s),Bt=Fs(!1),xi=$s;function Vo(e,t){var n=e.type.contextTypes;if(!n)return $s;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Vt(e){return e=e.childContextTypes,e!=null}function Gu(){Me(Bt),Me(Et)}function F1(e,t,n){if(Et.current!==$s)throw Error(z(168));Ae(Et,t),Ae(Bt,n)}function fC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(z(108,jk(e)||"Unknown",s));return We({},n,r)}function Ju(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$s,xi=Et.current,Ae(Et,e),Ae(Bt,Bt.current),!0}function U1(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=fC(e,t,xi),r.__reactInternalMemoizedMergedChildContext=e,Me(Bt),Me(Et),Ae(Et,e)):Me(Bt),Ae(Bt,n)}var Ar=null,Yd=!1,wf=!1;function pC(e){Ar===null?Ar=[e]:Ar.push(e)}function U6(e){Yd=!0,pC(e)}function Us(){if(!wf&&Ar!==null){wf=!0;var e=0,t=ke;try{var n=Ar;for(ke=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ar=null,Yd=!1}catch(s){throw Ar!==null&&(Ar=Ar.slice(e+1)),z2(Fg,Us),s}finally{ke=t,wf=!1}}return null}var lo=[],co=0,Yu=null,Qu=0,un=[],dn=0,wi=null,$r=1,Mr="";function ei(e,t){lo[co++]=Qu,lo[co++]=Yu,Yu=e,Qu=t}function mC(e,t,n){un[dn++]=$r,un[dn++]=Mr,un[dn++]=wi,wi=e;var r=$r;e=Mr;var s=32-Bn(r)-1;r&=~(1<<s),n+=1;var i=32-Bn(t)+s;
vendor: 25,521 bytes, lines 38-40
38if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,$r=1<<32-Bn(t)+s|n<<s|r,Mr=i+e}else $r=1<<i|n<<s|r,Mr=e}function Gg(e){e.return!==null&&(ei(e,1),mC(e,1,0))}function Jg(e){for(;e===Yu;)Yu=lo[--co],lo[co]=null,Qu=lo[--co],lo[co]=null;for(;e===wi;)wi=un[--dn],un[dn]=null,Mr=un[--dn],un[dn]=null,$r=un[--dn],un[dn]=null}var Yt=null,Jt=null,Ie=!1,zn=null;function gC(e,t){var n=hn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function B1(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Yt=e,Jt=Ss(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Yt=e,Jt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wi!==null?{id:$r,overflow:Mr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=hn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Yt=e,Jt=null,!0):!1;default:return!1}}function Xp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function em(e){if(Ie){var t=Jt;if(t){var n=t;if(!B1(e,t)){if(Xp(e))throw Error(z(418));t=Ss(n.nextSibling);var r=Yt;t&&B1(e,t)?gC(r,n):(e.flags=e.flags&-4097|2,Ie=!1,Yt=e)}}else{if(Xp(e))throw Error(z(418));e.flags=e.flags&-4097|2,Ie=!1,Yt=e}}}function V1(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Yt=e}function Oc(e){if(e!==Yt)return!1;if(!Ie)return V1(e),Ie=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Gp(e.type,e.memoizedProps)),t&&(t=Jt)){if(Xp(e))throw vC(),Error(z(418));for(;t;)gC(e,t),t=Ss(t.nextSibling)}if(V1(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Jt=Ss(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Jt=null}}else Jt=Yt?Ss(e.stateNode.nextSibling):null;return!0}function vC(){for(var e=Jt;e;)e=Ss(e.nextSibling)}function Ho(){Jt=Yt=null,Ie=!1}function Yg(e){zn===null?zn=[e]:zn.push(e)}var B6=qr.ReactCurrentBatchConfig;function Sa(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(z(309));var r=n.stateNode}if(!r)throw Error(z(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=s.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(z(284));if(!n._owner)throw Error(z(290,e))}return e}function Ic(e,t){throw e=Object.prototype.toString.call(t),Error(z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function H1(e){var t=e._init;return t(e._payload)}function yC(e){function t(v,g){if(e){var x=v.deletions;x===null?(v.deletions=[g],v.flags|=16):x.push(g)}}function n(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function r(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function s(v,g){return v=Ns(v,g),v.index=0,v.sibling=null,v}function i(v,g,x){return v.index=x,e?(x=v.alternate,x!==null?(x=x.index,x<g?(v.flags|=2,g):x):(v.flags|=2,g)):(v.flags|=1048576,g)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,g,x,C){return g===null||g.tag!==6?(g=Ef(x,v.mode,C),g.return=v,g):(g=s(g,x),g.return=v,g)}function c(v,g,x,C){var _=x.type;return _===no?d(v,g,x.props.children,C,x.key):g!==null&&(g.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===os&&H1(_)===g.type)?(C=s(g,x.props),C.ref=Sa(v,g,x),C.return=v,C):(C=ku(x.type,x.key,x.props,null,v.mode,C),C.ref=Sa(v,g,x),C.return=v,C)}function u(v,g,x,C){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=Nf(x,v.mode,C),g.return=v,g):(g=s(g,x.children||[]),g.return=v,g)}function d(v,g,x,C,_){return g===null||g.tag!==7?(g=yi(x,v.mode,C,_),g.return=v,g):(g=s(g,x),g.return=v,g)}function h(v,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Ef(""+g,v.mode,x),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Sc:return x=ku(g.type,g.key,g.props,null,v.mode,x),x.ref=Sa(v,null,g),x.return=v,x;case to:return g=Nf(g,v.mode,x),g.return=v,g;case os:var C=g._init;return h(v,C(g._payload),x)}if(Oa(g)||xa(g))return g=yi(g,v.mode,x,null),g.return=v,g;Ic(v,g)}return null}function f(v,g,x,C){var _=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:l(v,g,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Sc:return x.key===_?c(v,g,x,C):null;case to:return x.key===_?u(v,g,x,C):null;case os:return _=x._init,f(v,g,_(x._payload),C)}if(Oa(x)||xa(x))return _!==null?null:d(v,g,x,C,null);Ic(v,x)}return null}function p(v,g,x,C,_){if(typeof C=="string"&&C!==""||typeof C=="number")return v=v.get(x)||null,l(g,v,""+C,_);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Sc:return v=v.get(C.key===null?x:C.key)||null,c(g,v,C,_);case to:return v=v.get(C.key===null?x:C.key)||null,u(g,v,C,_);case os:var S=C._init;return p(v,g,x,S(C._payload),_)}if(Oa(C)||xa(C))return v=v.get(x)||null,d(g,v,C,_,null);Ic(g,C)}return null}function y(v,g,x,C){for(var _=null,S=null,j=g,k=g=0,T=null;j!==null&&k<x.length;k++){j.index>k?(T=j,j=null):T=j.sibling;var R=f(v,j,x[k],C);if(R===null){j===null&&(j=T);break}e&&j&&R.alternate===null&&t(v,j),g=i(R,g,k),S===null?_=R:S.sibling=R,S=R,j=T}if(k===x.length)return n(v,j),Ie&&ei(v,k),_;if(j===null){for(;k<x.length;k++)j=h(v,x[k],C),j!==null&&(g=i(j,g,k),S===null?_=j:S.sibling=j,S=j);return Ie&&ei(v,k),_}for(j=r(v,j);k<x.length;k++)T=p(j,v,k,x[k],C),T!==null&&(e&&T.alternate!==null&&j.delete(T.key===null?k:T.key),g=i(T,g,k),S===null?_=T:S.sibling=T,S=T);return e&&j.forEach(function(D){return t(v,D)}),Ie&&ei(v,k),_}function m(v,g,x,C){var _=xa(x);if(typeof _!="function")throw Error(z(150));if(x=_.call(x),x==null)throw Error(z(151));for(var S=_=null,j=g,k=g=0,T=null,R=x.next();j!==null&&!R.done;k++,R=x.next()){j.index>k?(T=j,j=null):T=j.sibling;var D=f(v,j,R.value,C);if(D===null){j===null&&(j=T);break}e&&j&&D.alternate===null&&t(v,j),g=i(D,g,k),S===null?_=D:S.sibling=D,S=D,j=T}if(R.done)return n(v,j),Ie&&ei(v,k),_;if(j===null){for(;!R.done;k++,R=x.next())R=h(v,R.value,C),R!==null&&(g=i(R,g,k),S===null?_=R:S.sibling=R,S=R);return Ie&&ei(v,k),_}for(j=r(v,j);!R.done;k++,R=x.next())R=p(j,v,k,R.value,C),R!==null&&(e&&R.alternate!==null&&j.delete(R.key===null?k:R.key),g=i(R,g,k),S===null?_=R:S.sibling=R,S=R);return e&&j.forEach(function(O){return t(v,O)}),Ie&&ei(v,k),_}function w(v,g,x,C){if(typeof x=="object"&&x!==null&&x.type===no&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Sc:e:{for(var _=x.key,S=g;S!==null;){if(S.key===_){if(_=x.type,_===no){if(S.tag===7){n(v,S.sibling),g=s(S,x.props.children),g.return=v,v=g;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===os&&H1(_)===S.type){n(v,S.sibling),g=s(S,x.props),g.ref=Sa(v,S,x),g.return=v,v=g;break e}n(v,S);break}else t(v,S);S=S.sibling}x.type===no?(g=yi(x.props.children,v.mode,C,x.key),g.return=v,v=g):(C=ku(x.type,x.key,x.props,null,v.mode,C),C.ref=Sa(v,g,x),C.return=v,v=C)}return o(v);case to:e:{for(S=x.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(v,g.sibling),g=s(g,x.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=Nf(x,v.mode,C),g.return=v,v=g}return o(v);case os:return S=x._init,w(v,g,S(x._payload),C)}if(Oa(x))return y(v,g,x,C);if(xa(x))return m(v,g,x,C);Ic(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(v,g.sibling),g=s(g,x),g.return=v,v=g):(n(v,g),g=Ef(x,v.mode,C),g.return=v,v=g),o(v)):n(v,g)}return w}var Wo=yC(!0),bC=yC(!1),Xu=Fs(null),ed=null,uo=null,Qg=null;function Xg(){Qg=uo=ed=null}function ev(e){var t=Xu.current;Me(Xu),e._currentValue=t}function tm(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function So(e,t){ed=e,Qg=uo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ut=!0),e.firstContext=null)}function pn(e){var t=e._currentValue;if(Qg!==e)if(e={context:e,memoizedValue:t,next:null},uo===null){if(ed===null)throw Error(z(308));uo=e,ed.dependencies={lanes:0,firstContext:e}}else uo=uo.next=e;return t}var oi=null;function tv(e){oi===null?oi=[e]:oi.push(e)}function xC(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,tv(t)):(n.next=s.next,s.next=n),t.interleaved=n,Fr(e,r)}function Fr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var as=!1;function nv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Or(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ks(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,be&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Fr(e,n)}return s=r.interleaved,s===null?(t.next=t,tv(r)):(t.next=s.next,s.next=t),r.interleaved=t,Fr(e,n)}function xu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ug(e,n)}}function W1(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function td(e,t,n,r){var s=e.updateQueue;as=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?i=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var h=s.baseState;o=0,d=u=c=null,l=i;do{var f=l.lane,p=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,m=l;switch(f=t,p=n,m.tag){case 1:if(y=m.payload,typeof y=="function"){h=y.call(p,h,f);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,f=typeof y=="function"?y.call(p,h,f):y,f==null)break e;h=We({},h,f);break e;case 2:as=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,c=h):d=d.next=p,o|=f;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;f=l,l=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(d===null&&(c=h),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);_i|=o,e.lanes=o,e.memoizedState=h}}function q1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(z(191,s));s.call(r)}}}var ac={},dr=Fs(ac),Cl=Fs(ac),_l=Fs(ac);function ai(e){if(e===ac)throw Error(z(174));return e}function rv(e,t){switch(Ae(_l,t),Ae(Cl,e),Ae(dr,ac),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Op(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Op(t,e)}Me(dr),Ae(dr,t)}function qo(){Me(dr),Me(Cl),Me(_l)}function CC(e){ai(_l.current);var t=ai(dr.current),n=Op(t,e.type);t!==n&&(Ae(Cl,e),Ae(dr,n))}function sv(e){Cl.current===e&&(Me(dr),Me(Cl))}var Fe=Fs(0);function nd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Cf=[];function iv(){for(var e=0;e<Cf.length;e++)Cf[e]._workInProgressVersionPrimary=null;Cf.length=0}var wu=qr.ReactCurrentDispatcher,_f=qr.ReactCurrentBatchConfig,Ci=0,Ve=null,st=null,ct=null,rd=!1,Qa=!1,jl=0,V6=0;function wt(){throw Error(z(321))}function ov(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wn(e[n],t[n]))return!1;return!0}function av(e,t,n,r,s,i){if(Ci=i,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wu.current=e===null||e.memoizedState===null?K6:Z6,e=n(r,s),Qa){i=0;do{if(Qa=!1,jl=0,25<=i)throw Error(z(301));i+=1,ct=st=null,t.updateQueue=null,wu.current=G6,e=n(r,s)}while(Qa)}if(wu.current=sd,t=st!==null&&st.next!==null,Ci=0,ct=st=Ve=null,rd=!1,t)throw Error(z(300));return e}function lv(){var e=jl!==0;return jl=0,e}function er(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?Ve.memoizedState=ct=e:ct=ct.next=e,ct}function mn(){if(st===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=st.next;var t=ct===null?Ve.memoizedState:ct.next;if(t!==null)ct=t,st=e;else{if(e===null)throw Error(z(310));st=e,e={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},ct===null?Ve.memoizedState=ct=e:ct=ct.next=e}return ct}function Sl(e,t){return typeof t=="function"?t(e):t}function jf(e){var t=mn(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=st,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=o=null,c=null,u=i;do{var d=u.lane;if((Ci&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,o=r):c=c.next=h,Ve.lanes|=d,_i|=d}u=u.next}while(u!==null&&u!==i);c===null?o=r:c.next=l,Wn(r,t.memoizedState)||(Ut=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Ve.lanes|=i,_i|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sf(e){var t=mn(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Wn(i,t.memoizedState)||(Ut=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function _C(){}function jC(e,t){var n=Ve,r=mn(),s=t(),i=!Wn(r.memoizedState,s);if(i&&(r.memoizedState=s,Ut=!0),r=r.queue,cv(TC.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ct!==null&&ct.memoizedState.tag&1){if(n.flags|=2048,kl(9,kC.bind(null,n,r,s,t),void 0,null),ut===null)throw Error(z(349));Ci&30||SC(n,t,s)}return s}function SC(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kC(e,t,n,r){t.value=n,t.getSnapshot=r,EC(t)&&NC(e)}function TC(e,t,n){return n(function(){EC(t)&&NC(e)})}function EC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wn(e,n)}catch{return!0}}function NC(e){var t=Fr(e,1);t!==null&&Vn(t,e,1,-1)}function K1(e){var t=er();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sl,lastRenderedState:e},t.queue=e,e=e.dispatch=q6.bind(null,Ve,e),[t.memoizedState,e]}function kl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function RC(){return mn().memoizedState}function Cu(e,t,n,r){var s=er();Ve.flags|=e,s.memoizedState=kl(1|t,n,void 0,r===void 0?null:r)}function Qd(e,t,n,r){var s=mn();r=r===void 0?null:r;var i=void 0;if(st!==null){var o=st.memoizedState;if(i=o.destroy,r!==null&&ov(r,o.deps)){s.memoizedState=kl(t,n,i,r);return}}Ve.flags|=e,s.memoizedState=kl(1|t,n,i,r)}function Z1(e,t){return Cu(8390656,8,e,t)}function cv(e,t){return Qd(2048,8,e,t)}function AC(e,t){return Qd(4,2,e,t)}function PC(e,t){return Qd(4,4,e,t)}function $C(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function MC(e,t,n){return n=n!=null?n.concat([e]):null,Qd(4,4,$C.bind(null,t,e),n)}function uv(){}function OC(e,t){var n=mn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ov(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function IC(e,t){var n=mn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ov(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function DC(e,t,n){return Ci&21?(Wn(n,t)||(n=B2(),Ve.lanes|=n,_i|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ut=!0),e.memoizedState=n)}function H6(e,t){var n=ke;ke=n!==0&&4>n?n:4,e(!0);var r=_f.transition;_f.transition={};try{e(!1),t()}finally{ke=n,_f.transition=r}}function LC(){return mn().memoizedState}function W6(e,t,n){var r=Es(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zC(e))FC(t,n);else if(n=xC(e,t,n,r),n!==null){var s=Mt();Vn(n,e,r,s),UC(n,t,r)}}function q6(e,t,n){var r=Es(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zC(e))FC(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(s.hasEagerState=!0,s.eagerState=l,Wn(l,o)){var c=t.interleaved;c===null?(s.next=s,tv(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=xC(e,t,s,r),n!==null&&(s=Mt(),Vn(n,e,r,s),UC(n,t,r))}}function zC(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function FC(e,t){Qa=rd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function UC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ug(e,n)}}var sd={readContext:pn,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},K6={readContext:pn,useCallback:function(e,t){return er().memoizedState=[e,t===void 0?null:t],e},useContext:pn,useEffect:Z1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Cu(4194308,4,$C.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Cu(4,2,e,t)},useMemo:function(e,t){var n=er();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=er();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=W6.bind(null,Ve,e),[r.memoizedState,e]},useRef:function(e){var t=er();return e={current:e},t.memoizedState=e},useState:K1,useDebugValue:uv,useDeferredValue:function(e){return er().memoizedState=e},useTransition:function(){var e=K1(!1),t=e[0];return e=H6.bind(null,e[1]),er().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ve,s=er();if(Ie){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),ut===null)throw Error(z(349));Ci&30||SC(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Z1(TC.bind(null,r,i,e),[e]),r.flags|=2048,kl(9,kC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=er(),t=ut.identifierPrefix;if(Ie){var n=Mr,r=$r;n=(r&~(1<<32-Bn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=V6++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Z6={readContext:pn,useCallback:OC,useContext:pn,useEffect:cv,useImperativeHandle:MC,useInsertionEffect:AC,useLayoutEffect:PC,useMemo:IC,useReducer:jf,useRef:RC,useState:function(){return jf(Sl)},useDebugValue:uv,useDeferredValue:function(e){var t=mn();return DC(t,st.memoizedState,e)},useTransition:function(){var e=jf(Sl)[0],t=mn().memoizedState;return[e,t]},useMutableSource:_C,useSyncExternalStore:jC,useId:LC,unstable_isNewReconciler:!1},G6={readContext:pn,useCallback:OC,useContext:pn,useEffect:cv,useImperativeHandle:MC,useInsertionEffect:AC,useLayoutEffect:PC,useMemo:IC,useReducer:Sf,useRef:RC,useState:function(){return Sf(Sl)},useDebugValue:uv,useDeferredValue:function(e){var t=mn();return st===null?t.memoizedState=e:DC(t,st.memoizedState,e)},useTransition:function(){var e=Sf(Sl)[0],t=mn().memoizedState;return[e,t]},useMutableSource:_C,useSyncExternalStore:jC,useId:LC,unstable_isNewReconciler:!1};function Pn(e,t){if(e&&e.defaultProps){t=We({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function nm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:We({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xd={isMounted:function(e){return(e=e._reactInternals)?Pi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Mt(),s=Es(e),i=Or(r,s);i.payload=t,n!=null&&(i.callback=n),t=ks(e,i,s),t!==null&&(Vn(t,e,s,r),xu(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Mt(),s=Es(e),i=Or(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ks(e,i,s),t!==null&&(Vn(t,e,s,r),xu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mt(),r=Es(e),s=Or(n,r);s.tag=2,t!=null&&(s.callback=t),t=ks(e,s,r),t!==null&&(Vn(t,e,r,n),xu(t,e,r))}};function G1(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!yl(n,r)||!yl(s,i):!0}function BC(e,t,n){var r=!1,s=$s,i=t.contextType;return typeof i=="object"&&i!==null?i=pn(i):(s=Vt(t)?xi:Et.current,r=t.contextTypes,i=(r=r!=null)?Vo(e,s):$s),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function J1(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xd.enqueueReplaceState(t,t.state,null)}function rm(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},nv(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=pn(i):(i=Vt(t)?xi:Et.current,s.context=Vo(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(nm(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Xd.enqueueReplaceState(s,s.state,null),td(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ko(e,t){try{var n="",r=t;do n+=_k(r),r=r.return;while(r);var s=n}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function kf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function sm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var J6=typeof WeakMap=="function"?WeakMap:Map;function VC(e,t,n){n=Or(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){od||(od=!0,pm=r),sm(e,t)},n}function HC(e,t,n){n=Or(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){sm(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){sm(e,t),typeof r!="function"&&(Ts===null?Ts=new Set([this]):Ts.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Y1(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new J6;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=u7.bind(null,e,t,n),t.then(e,e))}function Q1(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}
vendor: 10,629 bytes, line 40
40function X1(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Or(-1,1),t.tag=2,ks(n,t,1))),n.lanes|=1),e)}var Y6=qr.ReactCurrentOwner,Ut=!1;function Pt(e,t,n,r){t.child=e===null?bC(t,null,n,r):Wo(t,e.child,n,r)}function e0(e,t,n,r,s){n=n.render;var i=t.ref;return So(t,s),r=av(e,t,n,r,i,s),n=lv(),e!==null&&!Ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ur(e,t,s)):(Ie&&n&&Gg(t),t.flags|=1,Pt(e,t,r,s),t.child)}function t0(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!yv(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,WC(e,t,i,r,s)):(e=ku(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:yl,n(o,r)&&e.ref===t.ref)return Ur(e,t,s)}return t.flags|=1,e=Ns(i,r),e.ref=t.ref,e.return=t,t.child=e}function WC(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(yl(i,r)&&e.ref===t.ref)if(Ut=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Ut=!0);else return t.lanes=e.lanes,Ur(e,t,s)}return im(e,t,n,r,s)}function qC(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(fo,qt),qt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ae(fo,qt),qt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ae(fo,qt),qt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ae(fo,qt),qt|=r;return Pt(e,t,s,n),t.child}function KC(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function im(e,t,n,r,s){var i=Vt(n)?xi:Et.current;return i=Vo(t,i),So(t,s),n=av(e,t,n,r,i,s),r=lv(),e!==null&&!Ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ur(e,t,s)):(Ie&&r&&Gg(t),t.flags|=1,Pt(e,t,n,s),t.child)}function n0(e,t,n,r,s){if(Vt(n)){var i=!0;Ju(t)}else i=!1;if(So(t,s),t.stateNode===null)_u(e,t),BC(t,n,r),rm(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=pn(u):(u=Vt(n)?xi:Et.current,u=Vo(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||c!==u)&&J1(t,o,r,u),as=!1;var f=t.memoizedState;o.state=f,td(t,r,o,s),c=t.memoizedState,l!==r||f!==c||Bt.current||as?(typeof d=="function"&&(nm(t,n,d,r),c=t.memoizedState),(l=as||G1(t,n,l,r,f,c,u))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,wC(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Pn(t.type,l),o.props=u,h=t.pendingProps,f=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=pn(c):(c=Vt(n)?xi:Et.current,c=Vo(t,c));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||f!==c)&&J1(t,o,r,c),as=!1,f=t.memoizedState,o.state=f,td(t,r,o,s);var y=t.memoizedState;l!==h||f!==y||Bt.current||as?(typeof p=="function"&&(nm(t,n,p,r),y=t.memoizedState),(u=as||G1(t,n,u,r,f,y,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=c,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return om(e,t,n,r,i,s)}function om(e,t,n,r,s,i){KC(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&U1(t,n,!1),Ur(e,t,i);r=t.stateNode,Y6.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Wo(t,e.child,null,i),t.child=Wo(t,null,l,i)):Pt(e,t,l,i),t.memoizedState=r.state,s&&U1(t,n,!0),t.child}function ZC(e){var t=e.stateNode;t.pendingContext?F1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&F1(e,t.context,!1),rv(e,t.containerInfo)}function r0(e,t,n,r,s){return Ho(),Yg(s),t.flags|=256,Pt(e,t,n,r),t.child}var am={dehydrated:null,treeContext:null,retryLane:0};function lm(e){return{baseLanes:e,cachePool:null,transitions:null}}function GC(e,t,n){var r=t.pendingProps,s=Fe.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Ae(Fe,s&1),e===null)return em(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=nh(o,r,0,null),e=yi(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=lm(n),t.memoizedState=am,e):dv(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return Q6(e,t,o,r,l,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,l=s.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Ns(s,c),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Ns(l,i):(i=yi(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?lm(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=am,r}return i=e.child,e=i.sibling,r=Ns(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function dv(e,t){return t=nh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Dc(e,t,n,r){return r!==null&&Yg(r),Wo(t,e.child,null,n),e=dv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Q6(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=kf(Error(z(422))),Dc(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=nh({mode:"visible",children:r.children},s,0,null),i=yi(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Wo(t,e.child,null,o),t.child.memoizedState=lm(o),t.memoizedState=am,i);if(!(t.mode&1))return Dc(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(z(419)),r=kf(i,r,void 0),Dc(e,t,o,r)}if(l=(o&e.childLanes)!==0,Ut||l){if(r=ut,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Fr(e,s),Vn(r,e,s,-1))}return vv(),r=kf(Error(z(421))),Dc(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=d7.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Jt=Ss(s.nextSibling),Yt=t,Ie=!0,zn=null,e!==null&&(un[dn++]=$r,un[dn++]=Mr,un[dn++]=wi,$r=e.id,Mr=e.overflow,wi=t),t=dv(t,r.children),t.flags|=4096,t)}function s0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),tm(e.return,t,n)}function Tf(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function JC(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Pt(e,t,r.children,n),r=Fe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&s0(e,n,t);else if(e.tag===19)s0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ae(Fe,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&nd(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Tf(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&nd(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Tf(t,!0,n,null,i);break;case"together":Tf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _u(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ur(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_i|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,n=Ns(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ns(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function X6(e,t,n){switch(t.tag){case 3:ZC(t),Ho();break;case 5:CC(t);break;case 1:Vt(t.type)&&Ju(t);break;case 4:rv(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Ae(Xu,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ae(Fe,Fe.current&1),t.flags|=128,null):n&t.child.childLanes?GC(e,t,n
vendor: 4,883 bytes, line 40
40):(Ae(Fe,Fe.current&1),e=Ur(e,t,n),e!==null?e.sibling:null);Ae(Fe,Fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return JC(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ae(Fe,Fe.current),r)break;return null;case 22:case 23:return t.lanes=0,qC(e,t,n)}return Ur(e,t,n)}var YC,cm,QC,XC;YC=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};cm=function(){};QC=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ai(dr.current);var i=null;switch(n){case"input":s=Ap(e,s),r=Ap(e,r),i=[];break;case"select":s=We({},s,{value:void 0}),r=We({},r,{value:void 0}),i=[];break;case"textarea":s=Mp(e,s),r=Mp(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Zu)}Ip(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(dl.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(dl.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&$e("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};XC=function(e,t,n,r){n!==r&&(t.flags|=4)};function ka(e,t){if(!Ie)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function e7(e,t,n){var r=t.pendingProps;switch(Jg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(t),null;case 1:return Vt(t.type)&&Gu(),Ct(t),null;case 3:return r=t.stateNode,qo(),Me(Bt),Me(Et),iv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Oc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,zn!==null&&(vm(zn),zn=null))),cm(e,t),Ct(t),null;case 5:sv(t);var s=ai(_l.current);if(n=t.type,e!==null&&t.stateNode!=null)QC(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(z(166));return Ct(t),null}if(e=ai(dr.current),Oc(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ar]=t,r[wl]=i,e=(t.mode&1)!==0,n){case"dialog":$e("cancel",r),$e("close",r);break;case"iframe":case"object":case"embed":$e("load",r);break;case"video":case"audio":for(s=0;s<Da.length;s++)$e(Da[s],r);break;case"source":$e("error",r);break;case"img":case"image":case"link":$e("error",r),$e("load",r);break;case"details":$e("toggle",r);break;case"input":f1(r,i),$e("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},$e("invalid",r);break;case"textarea":m1(r,i),$e("invalid",r)}Ip(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Mc(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Mc(r.textContent,l,e),s=["children",""+l]):dl.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&$e("scroll",r)}switch(n){case"input":kc(r),p1(r,i,!0);break;case"textarea":kc(r),g1(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Zu)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=T2(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ar]=t,e[wl]=r,YC(e,t,!1,!1),t.stateNode=e;e:{switch(o=Dp(n,r),n){case"dialog":$e("cancel",e),$e("close",e),s=r;break;case"iframe":case"object":case"embed":$e("load",e),s=r;break;case"video":case"audio":for(s=0;s<Da.length;s++)$e(Da[s],e);s=r;break;case"source":$e("error",e),s=r;break;case"img":case"image":case"link":$e("error",e),$e("load",e),s=r;break;case"details":$e("toggle",e),s=r;break;case"input":f1(e,r),s=Ap(e,r),$e("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=We({},r,{value:void 0}),$e("invalid",e);break;case"textarea":m1(e,r),s=Mp(e,r),$e("invalid",e);break;default:s=r}Ip(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?R2(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&E2(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&hl(e,c):typeof c=="number"&&hl(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(dl.hasOwnProperty(i)?c!=null&&i==="onScroll"&&$e("scroll",e):c!=null&&Og(e,i,c,o))}switch(n){case"input":kc(e),p1(e,r,!1);break;case"textarea":kc(e),g1(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ps(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?wo(e,!!r.multiple,i,!1):r.defaultValue!=null&&wo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Zu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ct(t),null;case 6:if(e&&t.stateNode!=null)XC(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(z(166));if(n=ai(_l.current),ai(dr.current),Oc(t)){if(r=t.stateNode,n=t.memoizedProps,r[ar]=t,(i=r.nodeValue!==n)&&(e=Yt,e!==null))switch(e.tag){case 3:Mc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mc(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ar]=t,t.stateNode=r}return Ct(t),null;case 13:if(Me(Fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ie&&Jt!==null&&t.mode&1&&!(t.flags&128))vC(),Ho(),t.flags|=98560,i=!1;else if(i=Oc(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(z(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(z(317));i[ar]=t}else Ho(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ct(t),i=!1}else zn!==null&&(vm(zn),zn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Fe.current&1?it===0&&(it=3):vv())),t.updateQueue!==null&&(t.flags|=4),Ct(t),null);case 4:return qo(),cm(e,t),e===null&&bl(t.stateNode.containerInfo),Ct(t),null;case 10:return ev(t.type._context),Ct(t),null;case 17:return Vt(t.type)&&Gu(),Ct(t),null;case 19:if(Me(Fe),i=t.memoizedState,i===null)return Ct(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)ka(i,!1);else{if(it!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=nd(e),o!==null){for(t.flags|=128,ka(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ae(Fe,Fe.current&1|2),t.child}e=e.sibling}i.tail!==null&&Xe()>Zo&&(t.flags|=128,r=!0,ka(i,!1),t.lanes=4194304)}else{if(!r)if(e=nd(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ka(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ie)return Ct(t),null}else 2*Xe()-i.renderingStartTime>Zo&&n!==1073741824&&(t.flags|=128,r=!0,ka(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xe(),t.sibling=null,n=Fe.current,Ae(Fe,r?n&1|2:n&1),t):(Ct(t),null);case 22:case 23:return gv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qt&1073741824&&(Ct(t),t.subtreeFlags&6&&(t.flags|=8192)):Ct(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function t7(e,t){switch(Jg(t),t.tag){case 1:return Vt(t.type)&&Gu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 23,984 bytes, line 40
40case 3:return qo(),Me(Bt),Me(Et),iv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sv(t),null;case 13:if(Me(Fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Me(Fe),null;case 4:return qo(),null;case 10:return ev(t.type._context),null;case 22:case 23:return gv(),null;case 24:return null;default:return null}}var Lc=!1,kt=!1,n7=typeof WeakSet=="function"?WeakSet:Set,q=null;function ho(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Je(e,t,r)}else n.current=null}function um(e,t,n){try{n()}catch(r){Je(e,t,r)}}var i0=!1;function r7(e,t){if(Kp=Wu,e=sC(),Zg(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||s!==0&&h.nodeType!==3||(l=o+s),h!==i||r!==0&&h.nodeType!==3||(c=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(p=h.firstChild)!==null;)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===s&&(l=o),f===i&&++d===r&&(c=o),(p=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=p}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zp={focusedElem:e,selectionRange:n},Wu=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,w=y.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Pn(t.type,m),w);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(C){Je(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return y=i0,i0=!1,y}function Xa(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&um(t,n,i)}s=s.next}while(s!==r)}}function eh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function e_(e){var t=e.alternate;t!==null&&(e.alternate=null,e_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ar],delete t[wl],delete t[Yp],delete t[z6],delete t[F6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function t_(e){return e.tag===5||e.tag===3||e.tag===4}function o0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||t_(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.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 hm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zu));else if(r!==4&&(e=e.child,e!==null))for(hm(e,t,n),e=e.sibling;e!==null;)hm(e,t,n),e=e.sibling}function fm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fm(e,t,n),e=e.sibling;e!==null;)fm(e,t,n),e=e.sibling}var pt=null,Ln=!1;function es(e,t,n){for(n=n.child;n!==null;)n_(e,t,n),n=n.sibling}function n_(e,t,n){if(ur&&typeof ur.onCommitFiberUnmount=="function")try{ur.onCommitFiberUnmount(qd,n)}catch{}switch(n.tag){case 5:kt||ho(n,t);case 6:var r=pt,s=Ln;pt=null,es(e,t,n),pt=r,Ln=s,pt!==null&&(Ln?(e=pt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pt.removeChild(n.stateNode));break;case 18:pt!==null&&(Ln?(e=pt,n=n.stateNode,e.nodeType===8?xf(e.parentNode,n):e.nodeType===1&&xf(e,n),gl(e)):xf(pt,n.stateNode));break;case 4:r=pt,s=Ln,pt=n.stateNode.containerInfo,Ln=!0,es(e,t,n),pt=r,Ln=s;break;case 0:case 11:case 14:case 15:if(!kt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&um(n,t,o),s=s.next}while(s!==r)}es(e,t,n);break;case 1:if(!kt&&(ho(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Je(n,t,l)}es(e,t,n);break;case 21:es(e,t,n);break;case 22:n.mode&1?(kt=(r=kt)||n.memoizedState!==null,es(e,t,n),kt=r):es(e,t,n);break;default:es(e,t,n)}}function a0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new n7),t.forEach(function(r){var s=h7.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Sn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:pt=l.stateNode,Ln=!1;break e;case 3:pt=l.stateNode.containerInfo,Ln=!0;break e;case 4:pt=l.stateNode.containerInfo,Ln=!0;break e}l=l.return}if(pt===null)throw Error(z(160));n_(i,o,s),pt=null,Ln=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){Je(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)r_(t,e),t=t.sibling}function r_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Sn(t,e),Xn(e),r&4){try{Xa(3,e,e.return),eh(3,e)}catch(m){Je(e,e.return,m)}try{Xa(5,e,e.return)}catch(m){Je(e,e.return,m)}}break;case 1:Sn(t,e),Xn(e),r&512&&n!==null&&ho(n,n.return);break;case 5:if(Sn(t,e),Xn(e),r&512&&n!==null&&ho(n,n.return),e.flags&32){var s=e.stateNode;try{hl(s,"")}catch(m){Je(e,e.return,m)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&S2(s,i),Dp(l,o);var u=Dp(l,i);for(o=0;o<c.length;o+=2){var d=c[o],h=c[o+1];d==="style"?R2(s,h):d==="dangerouslySetInnerHTML"?E2(s,h):d==="children"?hl(s,h):Og(s,d,h,u)}switch(l){case"input":Pp(s,i);break;case"textarea":k2(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?wo(s,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?wo(s,!!i.multiple,i.defaultValue,!0):wo(s,!!i.multiple,i.multiple?[]:"",!1))}s[wl]=i}catch(m){Je(e,e.return,m)}}break;case 6:if(Sn(t,e),Xn(e),r&4){if(e.stateNode===null)throw Error(z(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(m){Je(e,e.return,m)}}break;case 3:if(Sn(t,e),Xn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{gl(t.containerInfo)}catch(m){Je(e,e.return,m)}break;case 4:Sn(t,e),Xn(e);break;case 13:Sn(t,e),Xn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(pv=Xe())),r&4&&a0(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(kt=(u=kt)||d,Sn(t,e),kt=u):Sn(t,e),Xn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(q=e,d=e.child;d!==null;){for(h=q=d;q!==null;){switch(f=q,p=f.child,f.tag){case 0:case 11:case 14:case 15:Xa(4,f,f.return);break;case 1:ho(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){Je(r,n,m)}}break;case 5:ho(f,f.return);break;case 22:if(f.memoizedState!==null){c0(h);continue}}p!==null?(p.return=f,q=p):c0(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=N2("display",o))}catch(m){Je(e,e.return,m)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(m){Je(e,e.return,m)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Sn(t,e),Xn(e),r&4&&a0(e);break;case 21:break;default:Sn(t,e),Xn(e)}}function Xn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(t_(n)){var r=n;break e}n=n.return}throw Error(z(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(hl(s,""),r.flags&=-33);var i=o0(e);fm(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,l=o0(e);hm(e,l,o);break;default:throw Error(z(161))}}catch(c){Je(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function s7(e,t,n){q=e,s_(e)}function s_(e,t,n){for(var r=(e.mode&1)!==0;q!==null;){var s=q,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Lc;if(!o){var l=s.alternate,c=l!==null&&l.memoizedState!==null||kt;l=Lc;var u=kt;if(Lc=o,(kt=c)&&!u)for(q=s;q!==null;)o=q,c=o.child,o.tag===22&&o.memoizedState!==null?u0(s):c!==null?(c.return=o,q=c):u0(s);for(;i!==null;)q=i,s_(i),i=i.sibling;q=s,Lc=l,kt=u}l0(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,q=i):l0(e)}}function l0(e){for(;q!==null;){var t=q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:kt||eh(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!kt)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Pn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&q1(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}q1(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&gl(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(z(163))}kt||t.flags&512&&dm(t)}catch(f){Je(t,t.return,f)}}if(t===e){q=null;break}if(n=t.sibling,n!==null){n.return=t.return,q=n;break}q=t.return}}function c0(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,q=n;break}q=t.return}}function u0(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{eh(4,t)}catch(c){Je(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(c){Je(t,s,c)}}var i=t.return;try{dm(t)}catch(c){Je(t,i,c)}break;case 5:var o=t.return;try{dm(t)}catch(c){Je(t,o,c)}}}catch(c){Je(t,t.return,c)}if(t===e){q=null;break}var l=t.sibling;if(l!==null){l.return=t.return,q=l;break}q=t.return}}var i7=Math.ceil,id=qr.ReactCurrentDispatcher,hv=qr.ReactCurrentOwner,fn=qr.ReactCurrentBatchConfig,be=0,ut=null,tt=null,vt=0,qt=0,fo=Fs(0),it=0,Tl=null,_i=0,th=0,fv=0,el=null,Ft=null,pv=0,Zo=1/0,Tr=null,od=!1,pm=null,Ts=null,zc=!1,bs=null,ad=0,tl=0,mm=null,ju=-1,Su=0;function Mt(){return be&6?Xe():ju!==-1?ju:ju=Xe()}function Es(e){return e.mode&1?be&2&&vt!==0?vt&-vt:B6.transition!==null?(Su===0&&(Su=B2()),Su):(e=ke,e!==0||(e=window.event,e=e===void 0?16:G2(e.type)),e):1}function Vn(e,t,n,r){if(50<tl)throw tl=0,mm=null,Error(z(185));sc(e,n,r),(!(be&2)||e!==ut)&&(e===ut&&(!(be&2)&&(th|=n),it===4&&us(e,vt)),Ht(e,r),n===1&&be===0&&!(t.mode&1)&&(Zo=Xe()+500,Yd&&Us()))}function Ht(e,t){var n=e.callbackNode;Bk(e,t);var r=Hu(e,e===ut?vt:0);if(r===0)n!==null&&b1(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&b1(n),t===1)e.tag===0?U6(d0.bind(null,e)):pC(d0.bind(null,e)),D6(function(){!(be&6)&&Us()}),n=null;else{switch(V2(r)){case 1:n=Fg;break;case 4:n=F2;break;case 16:n=Vu;break;case 536870912:n=U2;break;default:n=Vu}n=h_(n,i_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function i_(e,t){if(ju=-1,Su=0,be&6)throw Error(z(327));var n=e.callbackNode;if(ko()&&e.callbackNode!==n)return null;var r=Hu(e,e===ut?vt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ld(e,r);else{t=r;var s=be;be|=2;var i=a_();(ut!==e||vt!==t)&&(Tr=null,Zo=Xe()+500,vi(e,t));do try{l7();break}catch(l){o_(e,l)}while(!0);Xg(),id.current=i,be=s,tt!==null?t=0:(ut=null,vt=0,t=it)}if(t!==0){if(t===2&&(s=Bp(e),s!==0&&(r=s,t=gm(e,s))),t===1)throw n=Tl,vi(e,0),us(e,r),Ht(e,Xe()),n;if(t===6)us(e,r);else{if(s=e.current.alternate,!(r&30)&&!o7(s)&&(t=ld(e,r),t===2&&(i=Bp(e),i!==0&&(r=i,t=gm(e,i))),t===1))throw n=Tl,vi(e,0),us(e,r),Ht(e,Xe()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(z(345));case 2:ti(e,Ft,Tr);break;case 3:if(us(e,r),(r&130023424)===r&&(t=pv+500-Xe(),10<t)){if(Hu(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Mt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Jp(ti.bind(null,e,Ft,Tr),t);break}ti(e,Ft,Tr);break;case 4:if(us(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Bn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*i7(r/1960))-r,10<r){e.timeoutHandle=Jp(ti.bind(null,e,Ft,Tr),r);break}ti(e,Ft,Tr);break;case 5:ti(e,Ft,Tr);break;default:throw Error(z(329))}}}return Ht(e,Xe()),e.callbackNode===n?i_.bind(null,e):null}function gm(e,t){var n=el;return e.current.memoizedState.isDehydrated&&(vi(e,t).flags|=256),e=ld(e,t),e!==2&&(t=Ft,Ft=n,t!==null&&vm(t)),e}function vm(e){Ft===null?Ft=e:Ft.push.apply(Ft,e)}function o7(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Wn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function us(e,t){for(t&=~fv,t&=~th,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Bn(t),r=1<<n;e[n]=-1,t&=~r}}function d0(e){if(be&6)throw Error(z(327));ko();var t=Hu(e,0);if(!(t&1))return Ht(e,Xe()),null;var n=ld(e,t);if(e.tag!==0&&n===2){var r=Bp(e);r!==0&&(t=r,n=gm(e,r))}if(n===1)throw n=Tl,vi(e,0),us(e,t),Ht(e,Xe()),n;if(n===6)throw Error(z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ti(e,Ft,Tr),Ht(e,Xe()),null}function mv(e,t){var n=be;be|=1;try{return e(t)}finally{be=n,be===0&&(Zo=Xe()+500,Yd&&Us())}}function ji(e){bs!==null&&bs.tag===0&&!(be&6)&&ko();var t=be;be|=1;var n=fn.transition,r=ke;try{if(fn.transition=null,ke=1,e)return e()}finally{ke=r,fn.transition=n,be=t,!(be&6)&&Us()}}function gv(){qt=fo.current,Me(fo)}function vi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,I6(n)),tt!==null)for(n=tt.return;n!==null;){var r=n;switch(Jg(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gu();break;case 3:qo(),Me(Bt),Me(Et),iv();break;case 5:sv(r);break;case 4:qo();break;case 13:Me(Fe);break;case 19:Me(Fe);break;case 10:ev(r.type._context);break;case 22:case 23:gv()}n=n.return}if(ut=e,tt=e=Ns(e.current,null),vt=qt=t,it=0,Tl=null,fv=th=_i=0,Ft=el=null,oi!==null){for(t=0;t<oi.length;t++)if(n=oi[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}oi=null}return e}function o_(e,t){do{var n=tt;try{if(Xg(),wu.current=sd,rd){for(var r=Ve.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}rd=!1}if(Ci=0,ct=st=Ve=null,Qa=!1,jl=0,hv.current=null,n===null||n.return===null){it=1,Tl=t,tt=null;break}e:{var i=e,o=n.return,l=n,c=t;if(t=vt,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=Q1(o);if(p!==null){p.flags&=-257,X1(p,o,l,i,t),p.mode&1&&Y1(i,u,t),t=p,c=u;var y=t.updateQueue;if(y===null){var m=new Set;m.add(c),t.updateQueue=m}else y.add(c);break e}else{if(!(t&1)){Y1(i,u,t),vv();break e}c=Error(z(426))}}else if(Ie&&l.mode&1){var w=Q1(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),X1(w,o,l,i,t),Yg(Ko(c,l));break e}}i=c=Ko(c,l),it!==4&&(it=2),el===null?el=[i]:el.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=VC(i,c,t);W1(i,v);break e;case 1:l=c;var g=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Ts===null||!Ts.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=HC(i,l,t);W1(i,C);break e}}i=i.return}while(i!==null)}c_(n)}catch(_){t=_,tt===n&&n!==null&&(tt=n=n.return);continue}break}while(!0)}function a_(){var e=id.current;return id.current=sd,e===null?sd:e}function vv(){(it===0||it===3||it===2)&&(it=4),ut===null||!(_i&268435455)&&!(th&268435455)||us(ut,vt)}function ld(e,t){var n=be;be|=2;var r=a_();(ut!==e||vt!==t)&&(Tr=null,vi(e,t));do try{a7();break}catch(s){o_(e,s)}while(!0);if(Xg(),be=n,id.current=r,tt!==null)throw Error(z(261));return ut=null,vt=0,it}function a7(){for(;tt!==null;)l_(tt)}function l7(){for(;tt!==null&&!$k();)l_(tt)}function l_(e){var t=d_(e.alternate,e,qt);e.memoizedProps=e.pendingProps,t===null?c_(e):tt=t,hv.current=null}function c_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=t7(n,t),n!==null){n.flags&=32767,tt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{it=6,tt=null;return}}else if(n=e7(n,t,qt),n!==null){tt=n;return}if(t=t.sibling,t!==null){tt=t;return}tt=t=e}while(t!==null);it===0&&(it=5)}function ti(e,t,n){var r=ke,s=fn.transition;try{fn.transition=null,ke=1,c7(e,t,n,r)}finally{fn.transition=s,ke=r}return null}function c7(e,t,n,r){do ko();while(bs!==null);if(be&6)throw Error(z(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(z(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Vk(e,i),e===ut&&(tt=ut=null,vt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||zc||(zc=!0,h_(Vu,function(){return ko(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=fn.transition,fn.transition=null;var o=ke;ke=1;var l=be;be|=4,hv.current=null,r7(e,n),r_(n,e),N6(Zp),Wu=!!Kp,Zp=Kp=null,e.current=n,s7(n),Mk(),be=l,ke=o,fn.transition=i}else e.current=n;if(zc&&(zc=!1,bs=e,ad=s),i=e.pendingLanes,i===0&&(Ts=null),Dk(n.stateNode),Ht(e,Xe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(od)throw od=!1,e=pm,pm=null,e;return ad&1&&e.tag!==0&&ko(),i=e.pendingLanes,i&1?e===mm?tl++:(tl=0,mm=e):tl=0,Us(),null}function ko(){if(bs!==null){var e=V2(ad),t=fn.transition,n=ke;try{if(fn.transition=null,ke=16>e?16:e,bs===null)var r=!1;else{if(e=bs,bs=null,ad=0,be&6)throw Error(z(331));var s=be;for(be|=4,q=e.current;q!==null;){var i=q,o=i.child;if(q.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(q=u;q!==null;){var d=q;switch(d.tag){case 0:case 11:case 15:Xa(8,d,i)}var h=d.child;if(h!==null)h.return=d,q=h;else for(;q!==null;){d=q;var f=d.sibling,p=d.return;if(e_(d),d===u){q=null;break}if(f!==null){f.return=p,q=f;break}q=p}}}var y=i.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var w=m.sibling;m.sibling=null,m=w}while(m!==null)}}q=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,q=o;else e:for(;q!==null;){if(i=q,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Xa(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,q=v;break e}q=i.return}}var g=e.current;for(q=g;q!==null;){o=q;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,q=x;else e:for(o=g;q!==null;){if(l=q,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:eh(9,l)}}catch(_){Je(l,l.return,_)}if(l===o){q=null;break e}var C=l.sibling;if(C!==null){C.return=l.return,q=C;break e}q=l.return}}if(be=s,Us(),ur&&typeof ur.onPostCommitFiberRoot=="function")try{ur.onPostCommitFiberRoot(qd,e)}catch{}r=!0}return r}finally{ke=n,fn.transition=t}}return!1}function h0(e,t,n){t=Ko(n,t),t=VC(e,t,1),e=ks(e,t,1),t=Mt(),e!==null&&(sc(e,1,t),Ht(e,t))}function Je(e,t,n){if(e.tag===3)h0(e,e,n);else for(;t!==null;){if(t.tag===3){h0(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ts===null||!Ts.has(r))){e=Ko(n,e),e=HC(t,e,1),t=ks(t,e,1),e=Mt(),t!==null&&(sc(t,1,e),Ht(t,e));break}}t=t.return}}function u7(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Mt(),e.pingedLanes|=e.suspendedLanes&n,ut===e&&(vt&n)===n&&(it===4||it===3&&(vt&130023424)===vt&&500>Xe()-pv?vi(e,0):fv|=n),Ht(e,t)}function u_(e,t){t===0&&(e.mode&1?(t=Nc,Nc<<=1,!(Nc&130023424)&&(Nc=4194304)):t=1);var n=Mt();e=Fr(e,t),e!==null&&(sc(e,t,n),Ht(e,n))}function d7(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),u_(e,n)}function h7(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),u_(e,n)}var d_;d_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Bt.current)Ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ut=!1,X6(e,t,n);Ut=!!(e.flags&131072)}else Ut=!1,Ie&&t.flags&1048576&&mC(t,Qu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_u(e,t),e=t.pendingProps;var s=Vo(t,Et.current);So(t,n),s=av(null,t,r,e,s,n);var i=lv();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Vt(r)?(i=!0,Ju(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,nv(t),s.updater=Xd,t.stateNode=s,s._reactInternals=t,rm(t,r,e,n),t=om(null,t,r,!0,i,n)):(t.tag=0,Ie&&i&&Gg(t),Pt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_u(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=p7(r),e=Pn(r,e),s){case 0:t=im(null,t,r,e,n);break e;case 1:t=n0(null,t,r,e,n);break e;case 11:t=e0(null,t,r,e,n);break e;case 14:t=t0(null,t,r,Pn(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Pn(r,s),im(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Pn(r,s),n0(e,t,r,s,n);case 3:e:{if(ZC(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,s=i.element,wC(e,t),td(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Ko(Error(z(423)),t),t=r0(e,t,r,n,s);break e}else if(r!==s){s=Ko(Error(z(424)),t),t=r0(e,t,r,n,s);break e}else for(Jt=Ss(t.stateNode.containerInfo.firstChild),Yt=t,Ie=!0,zn=null,n=bC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ho(),r===s){t=Ur(e,t,n);break e}Pt(e,t,r,n)}t=t.child}return t;case 5:return CC(t),e===null&&em(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Gp(r,s)?o=null:i!==null&&Gp(r,i)&&(t.flags|=32),KC(e,t),Pt(e,t,o,n),t.child;case 6:return e===null&&em(t),null;
vendor: 5,376 bytes, line 40
40case 13:return GC(e,t,n);case 4:return rv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wo(t,null,r,n):Pt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Pn(r,s),e0(e,t,r,s,n);case 7:return Pt(e,t,t.pendingProps,n),t.child;case 8:return Pt(e,t,t.pendingProps.children,n),t.child;case 12:return Pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,Ae(Xu,r._currentValue),r._currentValue=o,i!==null)if(Wn(i.value,o)){if(i.children===s.children&&!Bt.current){t=Ur(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Or(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),tm(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(z(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),tm(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Pt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,So(t,n),s=pn(s),r=r(s),t.flags|=1,Pt(e,t,r,n),t.child;case 14:return r=t.type,s=Pn(r,t.pendingProps),s=Pn(r.type,s),t0(e,t,r,s,n);case 15:return WC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Pn(r,s),_u(e,t),t.tag=1,Vt(r)?(e=!0,Ju(t)):e=!1,So(t,n),BC(t,r,s),rm(t,r,s,n),om(null,t,r,!0,e,n);case 19:return JC(e,t,n);case 22:return qC(e,t,n)}throw Error(z(156,t.tag))};function h_(e,t){return z2(e,t)}function f7(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(e,t,n,r){return new f7(e,t,n,r)}function yv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function p7(e){if(typeof e=="function")return yv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Dg)return 11;if(e===Lg)return 14}return 2}function Ns(e,t){var n=e.alternate;return n===null?(n=hn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ku(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")yv(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case no:return yi(n.children,s,i,t);case Ig:o=8,s|=8;break;case Tp:return e=hn(12,n,t,s|2),e.elementType=Tp,e.lanes=i,e;case Ep:return e=hn(13,n,t,s),e.elementType=Ep,e.lanes=i,e;case Np:return e=hn(19,n,t,s),e.elementType=Np,e.lanes=i,e;case C2:return nh(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case x2:o=10;break e;case w2:o=9;break e;case Dg:o=11;break e;case Lg:o=14;break e;case os:o=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=hn(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function yi(e,t,n,r){return e=hn(7,e,r,t),e.lanes=n,e}function nh(e,t,n,r){return e=hn(22,e,r,t),e.elementType=C2,e.lanes=n,e.stateNode={isHidden:!1},e}function Ef(e,t,n){return e=hn(6,e,null,t),e.lanes=n,e}function Nf(e,t,n){return t=hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function m7(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cf(0),this.expirationTimes=cf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cf(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function bv(e,t,n,r,s,i,o,l,c){return e=new m7(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=hn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nv(i),e}function g7(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:to,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function f_(e){if(!e)return $s;e=e._reactInternals;e:{if(Pi(e)!==e||e.tag!==1)throw Error(z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Vt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(z(171))}if(e.tag===1){var n=e.type;if(Vt(n))return fC(e,n,t)}return t}
vendor: 4,149 bytes, line 40
40function p_(e,t,n,r,s,i,o,l,c){return e=bv(n,r,!0,e,s,i,o,l,c),e.context=f_(null),n=e.current,r=Mt(),s=Es(n),i=Or(r,s),i.callback=t??null,ks(n,i,s),e.current.lanes=s,sc(e,s,r),Ht(e,r),e}function rh(e,t,n,r){var s=t.current,i=Mt(),o=Es(s);return n=f_(n),t.context===null?t.context=n:t.pendingContext=n,t=Or(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ks(s,t,o),e!==null&&(Vn(e,s,o,i),xu(e,s,o)),o}function cd(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function f0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xv(e,t){f0(e,t),(e=e.alternate)&&f0(e,t)}function v7(){return null}var m_=typeof reportError=="function"?reportError:function(e){console.error(e)};function wv(e){this._internalRoot=e}sh.prototype.render=wv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(z(409));rh(e,t,null,null)};sh.prototype.unmount=wv.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ji(function(){rh(null,e,null,null)}),t[zr]=null}};function sh(e){this._internalRoot=e}sh.prototype.unstable_scheduleHydration=function(e){if(e){var t=q2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cs.length&&t!==0&&t<cs[n].priority;n++);cs.splice(n,0,e),n===0&&Z2(e)}};function Cv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ih(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function p0(){}function y7(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=cd(o);i.call(u)}}var o=p_(t,r,e,0,null,!1,!1,"",p0);return e._reactRootContainer=o,e[zr]=o.current,bl(e.nodeType===8?e.parentNode:e),ji(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=cd(c);l.call(u)}}var c=bv(e,0,!1,null,null,!1,!1,"",p0);return e._reactRootContainer=c,e[zr]=c.current,bl(e.nodeType===8?e.parentNode:e),ji(function(){rh(t,c,n,r)}),c}function oh(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var c=cd(o);l.call(c)}}rh(t,o,e,s)}else o=y7(n,t,e,s,r);return cd(o)}H2=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ia(t.pendingLanes);n!==0&&(Ug(t,n|1),Ht(t,Xe()),!(be&6)&&(Zo=Xe()+500,Us()))}break;case 13:ji(function(){var r=Fr(e,1);if(r!==null){var s=Mt();Vn(r,e,1,s)}}),xv(e,1)}};Bg=function(e){if(e.tag===13){var t=Fr(e,134217728);if(t!==null){var n=Mt();Vn(t,e,134217728,n)}xv(e,134217728)}};W2=function(e){if(e.tag===13){var t=Es(e),n=Fr(e,t);if(n!==null){var r=Mt();Vn(n,e,t,r)}xv(e,t)}};q2=function(){return ke};K2=function(e,t){var n=ke;try{return ke=e,t()}finally{ke=n}};zp=function(e,t,n){switch(t){case"input":if(Pp(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Jd(r);if(!s)throw Error(z(90));j2(r),Pp(r,s)}}}break;case"textarea":k2(e,n);break;case"select":t=n.value,t!=null&&wo(e,!!n.multiple,t,!1)}};$2=mv;M2=ji;var b7={usingClientEntryPoint:!1,Events:[oc,oo,Jd,A2,P2,mv]},Ta={findFiberByHostInstance:ii,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},x7={bundleType:Ta.bundleType,version:Ta.version,rendererPackageName:Ta.rendererPackageName,rendererConfig:Ta.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=D2(e),e===null?null:e.stateNode},findFiberByHostInstance:Ta.findFiberByHostInstance||v7,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fc.isDisabled&&Fc.supportsFiber)try{qd=Fc.inject(x7),ur=Fc}catch{}}nn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b7;nn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cv(t))throw Error(z(200));return g7(e,t,null,n)};nn.createRoot=function(e,t){if(!Cv(e))throw Error(z(299));var n=!1,r="",s=m_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=bv(e,1,!1,null,null,n,!1,r,s),e[zr]=t.current,bl(e.nodeType===8?e.parentNode:e),new wv(t)};nn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(z(188)):(e=Object.keys(e).join(","),Error(z(268,e)));return e=D2(t),e=e===null?null:e.stateNode,e};nn.flushSync=function(e){return ji(e)};nn.hydrate=function(e,t,n){if(!ih(t))throw Error(z(200));return oh(null,e,t,!0,n)};nn.hydrateRoot=function(e,t,n){if(!Cv(e))throw Error(z(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=m_;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=p_(t,null,e,1,n??null,s,!1,i,o),e[zr]=t.current,bl(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new sh(t)};nn.render=function(e,t,n){if(!ih(t))throw Error(z(200));return oh(null,e,t,!1,n)};nn.unmountComponentAtNode=function(e){if(!ih(e))throw Error(z(40));return e._reactRootContainer?(ji(function(){oh(null,null,e,!1,function(){e._reactRootContainer=null,e[zr]=null})}),!0):!1};nn.unstable_batchedUpdates=mv;nn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ih(n))throw Error(z(200));if(e==null||e._reactInternals===void 0)throw Error(z(38));return oh(e,t,n,!1,r)};nn.version="18.3.1-next-f1338f8080-20240426";function g_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g_)}catch(e){console.error(e)}}g_(),g2.exports=nn;var $i=g2.exports;const v_=nc($i);var y_,m0=$i;y_=m0.createRoot,m0.hydrateRoot;var w7=typeof Element<"u",C7=typeof Map=="function",_7=typeof Set=="function",j7=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Tu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Tu(e[r],t[r]))return!1;return!0}var i;if(C7&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Tu(r.value[1],t.get(r.value[0])))return!1;return!0}if(_7&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(j7&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(w7&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!Tu(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var S7=function(t,n){try{return Tu(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const k7=nc(S7);var T7=function(e,t,n,r,s,i,o,l){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,s,i,o,l],d=0;c=new Error(t.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},E7=T7;const g0=nc(E7);var N7=function(t,n,r,s){var i=r?r.call(s,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;
40if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),l=Object.keys(n);if(o.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),u=0;u<o.length;u++){var d=o[u];if(!c(d))return!1;var h=t[d],f=n[d];if(i=r?r.call(s,h,f,d):void 0,i===!1||i===void 0&&h!==f)return!1}return!0};const R7=nc(N7);var b_=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(b_||{}),Rf={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"]}},v0=Object.values(b_),ah={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},x_=Object.entries(ah).reduce((e,[t,n])=>(e[n]=t,e),{}),Un="data-rh",To={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Eo=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},A7=e=>{let t=Eo(e,"title");const n=Eo(e,To.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Eo(e,To.DEFAULT_TITLE);return t||r||void 0},P7=e=>Eo(e,To.ON_CHANGE_CLIENT_STATE)||(()=>{}),Af=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),$7=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let i=0;i<s.length;i+=1){const l=s[i].toLowerCase();if(e.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),M7=e=>console&&typeof console.warn=="function"&&console.warn(e),Ea=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&M7(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,i)=>{const o={};i.filter(c=>{let u;const d=Object.keys(c);for(let f=0;f<d.length;f+=1){const p=d[f],y=p.toLowerCase();t.indexOf(y)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(y==="rel"&&c[y].toLowerCase()==="stylesheet")&&(u=y),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(u=p)}if(!u||!c[u])return!1;const h=c[u].toLowerCase();return r[u]||(r[u]={}),o[u]||(o[u]={}),r[u][h]?!1:(o[u][h]=!0,!0)}).reverse().forEach(c=>s.push(c));const l=Object.keys(o);for(let c=0;c<l.length;c+=1){const u=l[c],d={...r[u],...o[u]};r[u]=d}return s},[]).reverse()},O7=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},I7=e=>({baseTag:$7(["href"],e),bodyAttributes:Af("bodyAttributes",e),defer:Eo(e,To.DEFER),encode:Eo(e,To.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Af("htmlAttributes",e),linkTags:Ea("link",["rel","href"],e),metaTags:Ea("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Ea("noscript",["innerHTML"],e),onChangeClientState:P7(e),scriptTags:Ea("script",["src","innerHTML"],e),styleTags:Ea("style",["cssText"],e),title:A7(e),titleAttributes:Af("titleAttributes",e),prioritizeSeoTags:O7(e,To.PRIORITIZE_SEO_TAGS)}),w_=e=>Array.isArray(e)?e.join(""):e,D7=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Pf=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(D7(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},y0=(e,t)=>({...e,[t]:void 0}),L7=["noscript","script","style"],ym=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),C_=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),z7=(e,t,n,r)=>{const s=C_(n),i=w_(t);return s?`<${e} ${Un}="true" ${s}>${ym(i,r)}</${e}>`:`<${e} ${Un}="true">${ym(i,r)}</${e}>`},F7=(e,t,n=!0)=>t.reduce((r,s)=>{const i=s,o=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const h=typeof i[d]>"u"?d:`${d}="${ym(i[d],n)}"`;return u?`${u} ${h}`:h},""),l=i.innerHTML||i.cssText||"",c=L7.indexOf(e)===-1;return`${r}<${e} ${Un}="true" ${o}${c?"/>":`>${l}</${e}>`}`},""),__=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=ah[r];return n[s||r]=e[r],n},t),U7=(e,t,n)=>{const r={key:t,[Un]:!0},s=__(n,r);return[$.createElement("title",s,t)]},Eu=(e,t)=>t.map((n,r)=>{const s={key:r,[Un]:!0};
40return Object.keys(n).forEach(i=>{const l=ah[i]||i;if(l==="innerHTML"||l==="cssText"){const c=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:c}}else s[l]=n[i]}),$.createElement(e,s)}),ln=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>U7(e,t.title,t.titleAttributes),toString:()=>z7(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>__(t),toString:()=>C_(t)};default:return{toComponent:()=>Eu(e,t),toString:()=>F7(e,t,n)}}},B7=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=Pf(e,Rf.meta),i=Pf(t,Rf.link),o=Pf(n,Rf.script);return{priorityMethods:{toComponent:()=>[...Eu("meta",s.priority),...Eu("link",i.priority),...Eu("script",o.priority)],toString:()=>`${ln("meta",s.priority,r)} ${ln("link",i.priority,r)} ${ln("script",o.priority,r)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}},V7=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:l="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:h,scriptTags:f}=e,p={toComponent:()=>[],toString:()=>""};return u&&({priorityMethods:p,linkTags:d,metaTags:h,scriptTags:f}=B7(e)),{priority:p,base:ln("base",t,r),bodyAttributes:ln("bodyAttributes",n,r),htmlAttributes:ln("htmlAttributes",s,r),link:ln("link",d,r),meta:ln("meta",h,r),noscript:ln("noscript",i,r),script:ln("script",f,r),style:ln("style",o,r),title:ln("title",{title:l,titleAttributes:c},r)}},bm=V7,Uc=[],_v=!!(typeof window<"u"&&window.document&&window.document.createElement),xm=class{constructor(e,t){Qn(this,"instances",[]);Qn(this,"canUseDOM",_v);Qn(this,"context");Qn(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Uc:this.instances,add:e=>{(this.canUseDOM?Uc:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Uc:this.instances).indexOf(e);(this.canUseDOM?Uc:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=bm({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},H7=parseInt($.version.split(".")[0],10),wm=H7>=19,W7={},j_=$.createContext(W7),ui,S_=(ui=class extends b.Component{constructor(n){super(n);Qn(this,"helmetData");wm?this.helmetData=null:this.helmetData=new xm(this.props.context||{},ui.canUseDOM)}render(){return wm?$.createElement($.Fragment,null,this.props.children):$.createElement(j_.Provider,{value:this.helmetData.value},this.props.children)}},Qn(ui,"canUseDOM",_v),ui),Fi=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Un}]`),s=[].slice.call(r),i=[];let o;return t&&t.length&&t.forEach(l=>{const c=document.createElement(e);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")c.innerHTML=l.innerHTML;else if(u==="cssText"){const d=l.cssText;c.appendChild(document.createTextNode(d))}else{const d=u,h=typeof l[d]>"u"?"":l[d];c.setAttribute(u,h)}c.setAttribute(Un,"true"),s.some((u,d)=>(o=d,c.isEqualNode(u)))?s.splice(o,1):i.push(c)}),s.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),i.forEach(l=>n.appendChild(l)),{oldTags:s,newTags:i}},Cm=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Un),s=r?r.split(","):[],i=[...s],o=Object.keys(t);for(const l of o){const c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),s.indexOf(l)===-1&&s.push(l);const u=i.indexOf(l);u!==-1&&i.splice(u,1)}for(let l=i.length-1;l>=0;l-=1)n.removeAttribute(i[l]);s.length===i.length?n.removeAttribute(Un):n.getAttribute(Un)!==o.join(",")&&n.setAttribute(Un,o.join(","))},q7=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=w_(e)),Cm("title",t)},b0=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:l,onChangeClientState:c,scriptTags:u,styleTags:d,title:h,titleAttributes:f}=e;Cm("body",r),Cm("html",s),q7(h,f);const p={baseTag:Fi("base",n),linkTags:Fi("link",i),metaTags:Fi("meta",o),noscriptTags:Fi("noscript",l),scriptTags:Fi("script",u),styleTags:Fi("style",d)},y={},m={};
40Object.keys(p).forEach(w=>{const{newTags:v,oldTags:g}=p[w];v.length&&(y[w]=v),g.length&&(m[w]=p[w].oldTags)}),t&&t(),c(e,y,m)},Na=null,K7=e=>{Na&&cancelAnimationFrame(Na),e.defer?Na=requestAnimationFrame(()=>{b0(e,()=>{Na=null})}):(b0(e),Na=null)},Z7=K7,x0=class extends b.Component{constructor(){super(...arguments);Qn(this,"rendered",!1)}shouldComponentUpdate(t){return!R7(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=I7(t.get().map(i=>{const{context:o,...l}=i.props;return l}));S_.canUseDOM?Z7(s):bm&&(r=bm(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Nu=[],w0=e=>{const t={};for(const n of Object.keys(e))t[x_[n]||n]=e[n];return t},Gs=e=>{const t={};for(const n of Object.keys(e)){const r=ah[n];t[r||n]=e[n]}return t},C0=(e,t)=>{if(!_v)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",s=n.getAttribute(r),i=s?s.split(","):[],o=Object.keys(t);for(const l of i)o.includes(l)||n.removeAttribute(l);for(const l of o){const c=t[l];c==null||c===!1?n.removeAttribute(l):c===!0?n.setAttribute(l,""):n.setAttribute(l,String(c))}o.length>0?n.setAttribute(r,o.join(",")):n.removeAttribute(r)},$f=()=>{const e={},t={};for(const n of Nu){const{htmlAttributes:r,bodyAttributes:s}=n.props;r&&Object.assign(e,w0(r)),s&&Object.assign(t,w0(s))}C0("html",e),C0("body",t)},G7=class extends b.Component{componentDidMount(){Nu.push(this),$f()}componentDidUpdate(){$f()}componentWillUnmount(){const e=Nu.indexOf(this);e!==-1&&Nu.splice(e,1),$f()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return $.createElement("title",Gs(t),e)}renderBase(){const{base:e}=this.props;return e?$.createElement("base",Gs(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>$.createElement("meta",{key:n,...Gs(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>$.createElement("link",{key:n,...Gs(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=Gs(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),$.createElement("script",{key:n,...i})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:r,...s}=t,i=Gs(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),$.createElement("style",{key:n,...i})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:r,...s}=t,i=Gs(s);return r&&(i.dangerouslySetInnerHTML={__html:r}),$.createElement("noscript",{key:n,...i})})}render(){return $.createElement($.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Sp,sa=(Sp=class extends b.Component{shouldComponentUpdate(e){return!k7(y0(this.props,"helmetData"),y0(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
40warnOnInvalidChildren(e,t){return g0(v0.some(n=>e.type===n),typeof e.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 ${v0.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),g0(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return $.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...i}=r.props,o=Object.keys(i).reduce((c,u)=>(c[x_[u]||u]=i[u],c),{});let{type:l}=r;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,s),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,s);break;default:t=this.mapObjectTypeChildren(r,t,o,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof xm)){const s=r;r=new xm(s.context,!0),delete n.helmetData}return wm?$.createElement(G7,{...n}
vendor: 5,589 bytes, lines 40-49
40):r?$.createElement(x0,{...n,context:r.value}):$.createElement(j_.Consumer,null,s=>$.createElement(x0,{...n,context:s}))}},Qn(Sp,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Sp);/**
41 * @remix-run/router v1.23.0
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},El.apply(this,arguments)}var xs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(xs||(xs={}));const _0="popstate";function J7(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:l}=r.location;return _m("",{pathname:i,search:o,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:ud(s)}return Q7(t,n,null,e)}function He(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function k_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Y7(){return Math.random().toString(36).substr(2,8)}function j0(e,t){return{usr:e.state,key:e.key,idx:t}}function _m(e,t,n,r){return n===void 0&&(n=null),El({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ia(t):t,{state:n,key:t&&t.key||r||Y7()})}function ud(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ia(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Q7(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,l=xs.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(El({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function h(){l=xs.Pop;let w=d(),v=w==null?null:w-u;u=w,c&&c({action:l,location:m.location,delta:v})}function f(w,v){l=xs.Push;let g=_m(m.location,w,v);u=d()+1;let x=j0(g,u),C=m.createHref(g);try{o.pushState(x,"",C)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;s.location.assign(C)}i&&c&&c({action:l,location:m.location,delta:1})}function p(w,v){l=xs.Replace;let g=_m(m.location,w,v);u=d();let x=j0(g,u),C=m.createHref(g);o.replaceState(x,"",C),i&&c&&c({action:l,location:m.location,delta:0})}function y(w){let v=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof w=="string"?w:ud(w);return g=g.replace(/ $/,"%20"),He(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let m={get action(){return l},get location(){return e(s,o)},listen(w){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(_0,h),c=w,()=>{s.removeEventListener(_0,h),c=null}},createHref(w){return t(s,w)},createURL:y,encodeLocation(w){let v=y(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:p,go(w){return o.go(w)}};return m}var S0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(S0||(S0={}));function X7(e,t,n){return n===void 0&&(n="/"),e9(e,t,n,!1)}function e9(e,t,n,r){let s=typeof t=="string"?ia(t):t,i=Go(s.pathname||"/",n);if(i==null)return null;let o=T_(e);t9(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let u=h9(i);l=u9(o[c],u,r)}return l}function T_(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(He(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Rs([r,c.relativePath]),d=n.concat(c);i.children&&i.children.length>0&&(He(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),T_(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:l9(u,i.index),routesMeta:d})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,o);else for(let c of E_(i.path))s(i,o,c)}),t}function E_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=E_(r.join("/")),l=[];return l.push(...o.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function t9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:c9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const n9=/^:[\w-]+$/,r9=3,s9=2,i9=1,o9=10,a9=-2,k0=e=>e==="*";function l9(e,t){let n=e.split("/"),r=n.length;return n.some(k0)&&(r+=a9),t&&(r+=s9),n.filter(s=>!k0(s)).reduce((s,i)=>s+(n9.test(i)?r9:i===""?i9:o9),r)}function c9(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function u9(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",h=dd({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),f=c.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=dd({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;
vendor: 9,263 bytes, lines 49-58
49Object.assign(s,h.params),o.push({params:s,pathname:Rs([i,h.pathname]),pathnameBase:g9(Rs([i,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(i=Rs([i,h.pathnameBase]))}return o}function dd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=d9(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:f,isOptional:p}=d;if(f==="*"){let m=l[h]||"";o=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const y=l[h];return p&&!y?u[f]=void 0:u[f]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function d9(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),k_(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function h9(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return k_(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Go(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function f9(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?ia(e):e;return{pathname:n?n.startsWith("/")?n:p9(n,t):t,search:v9(r),hash:y9(s)}}function p9(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Mf(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function m9(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jv(e,t){let n=m9(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Sv(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=ia(e):(s=El({},e),He(!s.pathname||!s.pathname.includes("?"),Mf("?","pathname","search",s)),He(!s.pathname||!s.pathname.includes("#"),Mf("#","pathname","hash",s)),He(!s.search||!s.search.includes("#"),Mf("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,l;if(o==null)l=n;else{let h=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),h-=1;s.pathname=f.join("/")}l=h>=0?t[h]:"/"}let c=f9(s,l),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Rs=e=>e.join("/").replace(/\/\/+/g,"/"),g9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),v9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,y9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function b9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const N_=["post","put","patch","delete"];new Set(N_);const x9=["get",...N_];new Set(x9);/**
50 * React Router v6.30.1
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nl.apply(this,arguments)}const lh=b.createContext(null),R_=b.createContext(null),Kr=b.createContext(null),ch=b.createContext(null),Zr=b.createContext({outlet:null,matches:[],isDataRoute:!1}),A_=b.createContext(null);function w9(e,t){let{relative:n}=t===void 0?{}:t;oa()||He(!1);let{basename:r,navigator:s}=b.useContext(Kr),{hash:i,pathname:o,search:l}=uh(e,{relative:n}),c=o;return r!=="/"&&(c=o==="/"?r:Rs([r,o])),s.createHref({pathname:c,search:l,hash:i})}function oa(){return b.useContext(ch)!=null}function Zn(){return oa()||He(!1),b.useContext(ch).location}function P_(e){b.useContext(Kr).static||b.useLayoutEffect(e)}function lc(){let{isDataRoute:e}=b.useContext(Zr);return e?O9():C9()}function C9(){oa()||He(!1);let e=b.useContext(lh),{basename:t,future:n,navigator:r}=b.useContext(Kr),{matches:s}=b.useContext(Zr),{pathname:i}=Zn(),o=JSON.stringify(jv(s,n.v7_relativeSplatPath)),l=b.useRef(!1);return P_(()=>{l.current=!0}),b.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let h=Sv(u,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Rs([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,o,i,e])}function _9(){let{matches:e}=b.useContext(Zr),t=e[e.length-1];return t?t.params:{}}function uh(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(Kr),{matches:s}=b.useContext(Zr),{pathname:i}=Zn(),o=JSON.stringify(jv(s,r.v7_relativeSplatPath));return b.useMemo(()=>Sv(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function j9(e,t){return S9(e,t)}function S9(e,t,n,r){oa()||He(!1);let{navigator:s}=b.useContext(Kr),{matches:i}=b.useContext(Zr),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=Zn(),d;if(t){var h;let w=typeof t=="string"?ia(t):t;c==="/"||(h=w.pathname)!=null&&h.startsWith(c)||He(!1),d=w}else d=u;let f=d.pathname||"/",p=f;if(c!=="/"){let w=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=X7(e,{pathname:p}),m=R9(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Rs([c,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Rs([c,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&m?b.createElement(ch.Provider,{value:{location:Nl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:xs.Pop}},m):m}function k9(){let e=M9(),t=b9(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:s},n):null,null)}const T9=b.createElement(k9,null);class E9 extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(Zr.Provider,{value:this.props.routeContext},b.createElement(A_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function N9(e){let{routeContext:t,match:n,children:r}=e,s=b.useContext(lh);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Zr.Provider,{value:t},r)}function R9(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let d=o.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);d>=0||He(!1),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:f,errors:p}=n,y=h.route.loader&&f[h.route.id]===void 0&&(!p||p[h.route.id]===void 0);if(h.route.lazy||y){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,h,f)=>{let p,y=!1,m=null,w=null;n&&(p=l&&h.route.id?l[h.route.id]:void 0,m=h.route.errorElement||T9,c&&(u<0&&f===0?(y=!0,w=null):u===f&&(y=!0,w=h.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,f+1)),g=()=>{let x;return p?x=m:y?x=w:h.route.Component?x=b.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=d,b.createElement(N9,{match:h,routeC
58ontext:{outlet:d,matches:v,isDataRoute:n!=null},children:x})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?b.createElement(E9,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var $_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($_||{}),hd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(hd||{});function A9(e){let t=b.useContext(lh);return t||He(!1),t}function P9(e){let t=b.useContext(R_);return t||He(!1),t}function $9(e){let t=b.useContext(Zr);return t||He(!1),t}function M_(e){let t=$9(),n=t.matches[t.matches.length-1];return n.route.id||He(!1),n.route.id}function M9(){var e;let t=b.useContext(A_),n=P9(hd.UseRouteError),r=M_(hd.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function O9(){let{router:e}=A9($_.UseNavigateStable),t=M_(hd.UseNavigateStable),n=b.useRef(!1);return P_(()=>{n.current=!0}),b.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Nl({fromRouteId:t},i)))},[e,t])}function I9(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function wr(e){let{to:t,replace:n,state:r,relative:s}=e;oa()||He(!1);let{future:i,static:o}=b.useContext(Kr),{matches:l}=b.useContext(Zr),{pathname:c}=Zn(),u=lc(),d=Sv(t,jv(l,i.v7_relativeSplatPath),c,s==="path"),h=JSON.stringify(d);return b.useEffect(()=>u(JSON.parse(h),{replace:n,state:r,relative:s}),[u,h,s,n,r]),null}function Q(e){He(!1)}function D9(e){let{basename:t="/",children:n=null,location:r,navigationType:s=xs.Pop,navigator:i,static:o=!1,future:l}=e;oa()&&He(!1);let c=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:c,navigator:i,static:o,future:Nl({v7_relativeSplatPath:!1},l)}),[c,l,i,o]);typeof r=="string"&&(r=ia(r));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:y="default"}=r,m=b.useMemo(()=>{let w=Go(d,c);return w==null?null:{location:{pathname:w,search:h,hash:f,state:p,key:y},navigationType:s}},[c,d,h,f,p,y,s]);return m==null?null:b.createElement(Kr.Provider,{value:u},b.createElement(ch.Provider,{children:n,value:m}))}function L9(e){let{children:t,location:n}=e;return j9(jm(t),n)}new Promise(()=>{});function jm(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,s)=>{if(!b.isValidElement(r))return;let i=[...t,s];if(r.type===b.Fragment){n.push.apply(n,jm(r.props.children,i));return}r.type!==Q&&He(!1),!r.props.index||!r.props.children||He(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=jm(r.props.children,i)),n.push(o)}),n}/**
59 * React Router DOM v6.30.1
60 *
61 * Copyright (c) Remix Software Inc.
62 *
63 * This source code is licensed under the MIT license found in the
64 * LICENSE.md file in the root directory of this source tree.
65 *
66 * @license MIT
67 */function fd(){return fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fd.apply(this,arguments)}function O_(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function z9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function F9(e,t){return e.button===0&&(!t||t==="_self")&&!z9(e)}function Sm(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function U9(e,t){let n=Sm(e);return t&&t.forEach((r,s)=>
67{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const B9=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],V9=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],H9="6";try{window.__reactRouterVersion=H9}catch{}const W9=b.createContext({isTransitioning:!1}),q9="startTransition",T0=Pg[q9];function K9(e){let{basename:t,children:n,future:r,window:s}=e,i=b.useRef();i.current==null&&(i.current=J7({window:s,v5Compat:!0}));let o=i.current,[l,c]=b.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=b.useCallback(h=>{u&&T0?T0(()=>c(h)):c(h)},[c,u]);return b.useLayoutEffect(()=>o.listen(d),[o,d]),b.useEffect(()=>I9(r),[r]),b.createElement(D9,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const Z9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",G9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Y=b.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h}=t,f=O_(t,B9),{basename:p}=b.useContext(Kr),y,m=!1;if(typeof u=="string"&&G9.test(u)&&(y=u,Z9))try{let x=new URL(window.location.href),C=u.startsWith("//")?new URL(x.protocol+u):new URL(u),_=Go(C.pathname,p);C.origin===x.origin&&_!=null?u=_+C.search+C.hash:m=!0}catch{}let w=w9(u,{relative:s}),v=Y9(u,{replace:o,state:l,target:c,preventScrollReset:d,relative:s,viewTransition:h});function g(x){r&&r(x),x.defaultPrevented||v(x)}return b.createElement("a",fd({},f,{href:y||w,onClick:m||i?r:g,ref:n,target:c}))}),E0=b.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:i="",end:o=!1,style:l,to:c,viewTransition:u,children:d}=t,h=O_(t,V9),f=uh(c,{relative:h.relative}),p=Zn(),y=b.useContext(R_),{navigator:m,basename:w}=b.useContext(Kr),v=y!=null&&X9(f)&&u===!0,g=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,x=p.pathname,C=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;s||(x=x.toLowerCase(),C=C?C.toLowerCase():null,g=g.toLowerCase()),C&&w&&(C=Go(C,w)||C);const _=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let S=x===g||!o&&x.startsWith(g)&&x.charAt(_)==="/",j=C!=null&&(C===g||!o&&C.startsWith(g)&&C.charAt(g.length)==="/"),k={isActive:S,isPending:j,isTransitioning:v},T=S?r:void 0,R;typeof i=="function"?R=i(k):R=[i,S?"active":null,j?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let D=typeof l=="function"?l(k):l;return b.createElement(Y,fd({},h,{"aria-current":T,className:R,ref:n,style:D,to:c,viewTransition:u}),typeof d=="function"?d(k):d)});var km;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(km||(km={}));var N0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(N0||(N0={}));function J9(e){let t=b.useContext(lh);return t||He(!1),t}function Y9(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,c=lc(),u=Zn(),d=uh(e,{relative:o});return b.useCallback(h=>{if(F9(h,n)){h.preventDefault();let f=r!==void 0?r:ud(u)===ud(d);c(e,{replace:f,state:s,preventScrollReset:i,relative:o,viewTransition:l})}},[u,c,d,r,s,n,e,i,o,l])}function Q9(e){let t=b.useRef(Sm(e)),n=b.useRef(!1),r=Zn(),s=b.useMemo(()=>U9(r.search,n.current?null:t.current),[r.search]),i=lc(),o=b.useCallback((l,c)=>{const u=Sm(typeof l=="function"?l(s):l);n.current=!0,i("?"+u,c)},[i,s]);return[s,o]}function X9(e,t){t===void 0&&(t={});let n=b.useContext(W9);n==null&&He(!1);let{basename:r}=J9(km.useViewTransitionState),s=uh(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Go(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Go(n.nextLocation.pathname,r)||n.nextLocation.pathname;return dd(s.pathname,o)!=null||dd(s.pathname,i)!=null}const eT=()=>{const{pathname:e}=Zn();return b.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[e]),null};class tT extends b.Component{constructor(){super(...arguments);Qn(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n){console.error("Recovered from a render error:",n)}render(){return this.state.hasError?a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background px-6",children:a.jsxs("div",{className:"max-w-md text-center space-y-4",children:[a.jsx("h1",{className:"font-serif text-3xl text-foreground",children:"Something went wrong"}),a.jsx("p",{className:"text-muted-foreground",children:"The page ran into a display error. Reloading usually resolves it."}),a.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"inline-flex h-11 items-center rounded-full bg-primary px-6 font-semibold text-primary-foreground",children:"Reload page"})]})}):this.props.children}}var dh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hh=typeof window>"u"||"Deno"in globalThis;function $n(){}function nT(e,t){return typeof e=="function"?e(t):e}function rT(e){return typeof e=="number"&&e>=0&&e!==1/0}function sT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Tm(e,t){return typeof e=="function"?e(t):e}function iT(e,t){return typeof e=="function"?e(t):e}function R0(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==kv(o,t.options))return!1}else if(!Al(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||i&&!i(t))}function A0(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Rl(t.options.mutationKey)!==Rl(i))return!1}else if(!Al(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function kv(e,t){return((t==null?void 0:t.queryKeyHashFn)||Rl)(e)}function Rl(e){return JSON.stringify(e,(t,n)=>Em(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Al(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Al(e[n],t[n])):!1}function I_(e,t){if(e===t)return e;const n=P0(e)&&P0(t);if(n||Em(e)&&Em(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,l=n?[]:{},c=new Set(r);let u=0;for(let d=0;d<o;d++){const h=n?d:i[d];(!n&&c.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(l[h]=void 0,u++):(l[h]=I_(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&u++)}return s===o&&u===s?e:l}return t}function P0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Em(e){if(!$0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!$0(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function $0(e){return Object.prototype.toString.call(e)==="[object Object]"}function oT(e){return new Promise(t=>{setTimeout(t,e)})}function aT(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?I_(e,t):t}function lT(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function cT(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Tv=Symbol();function D_(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Tv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var di,fs,Mo,Yw,uT=(Yw=class extends dh{constructor(){super();we(this,di);we(this,fs);we(this,Mo);he(this,Mo,t=>{if(!hh&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){M(this,fs)||this.setEventListener(M(this,Mo))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,fs))==null||t.call(this),he(this,fs,void 0))}setEventListener(t){var n;he(this,Mo,t),(n=M(this,fs))==null||n.call(this),he(this,fs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){M(this,di)!==t&&(he(this,di,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,924 bytes, line 67
67this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,di)=="boolean"?M(this,di):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},di=new WeakMap,fs=new WeakMap,Mo=new WeakMap,Yw),L_=new uT,Oo,ps,Io,Qw,dT=(Qw=class extends dh{constructor(){super();we(this,Oo,!0);we(this,ps);we(this,Io);he(this,Io,t=>{if(!hh&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){M(this,ps)||this.setEventListener(M(this,Io))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,ps))==null||t.call(this),he(this,ps,void 0))}setEventListener(t){var n;he(this,Io,t),(n=M(this,ps))==null||n.call(this),he(this,ps,t(this.setOnline.bind(this)))}setOnline(t){M(this,Oo)!==t&&(he(this,Oo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return M(this,Oo)}},Oo=new WeakMap,ps=new WeakMap,Io=new WeakMap,Qw),pd=new dT;function hT(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function fT(e){return Math.min(1e3*2**e,3e4)}function z_(e){return(e??"online")==="online"?pd.isOnline():!0}var F_=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Of(e){return e instanceof F_}function U_(e){let t=!1,n=0,r=!1,s;const i=hT(),o=m=>{var w;r||(f(new F_(m)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>L_.isFocused()&&(e.networkMode==="always"||pd.isOnline())&&e.canRun(),d=()=>z_(e.networkMode)&&e.canRun(),h=m=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,m),s==null||s(),i.resolve(m))},f=m=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,m),s==null||s(),i.reject(m))},p=()=>new Promise(m=>{var w;s=v=>{(r||u())&&m(v)},(w=e.onPause)==null||w.call(e)}).then(()=>{var m;s=void 0,r||(m=e.onContinue)==null||m.call(e)}),y=()=>{if(r)return;let m;const w=n===0?e.initialPromise:void 0;try{m=w??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(h).catch(v=>{var S;if(r)return;const g=e.retry??(hh?0:3),x=e.retryDelay??fT,C=typeof x=="function"?x(n,v):x,_=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,v);if(t||!_){f(v);return}n++,(S=e.onFail)==null||S.call(e,n,v),oT(C).then(()=>u()?void 0:p()).then(()=>{t?f(v):y()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?y():p().then(y),i)}}var pT=e=>setTimeout(e,0);function mT(){let e=[],t=0,n=l=>{l()},r=l=>{l()},s=pT;const i=l=>{t?e.push(l):s(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&s(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var $t=mT(),hi,Xw,B_=(Xw=class{constructor(){we(this,hi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),rT(this.gcTime)&&he(this,hi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hh?1/0:5*60*1e3))}clearGcTimeout(){M(this,hi)&&(clearTimeout(M(this,hi)),he(this,hi,void 0))}},hi=new WeakMap,Xw),Do,fi,cn,pi,jt,ec,mi,In,kr,e2,gT=(e2=class extends B_{constructor(t){super();we(this,In);we(this,Do);we(this,fi);we(this,cn);we(this,pi);we(this,jt);we(this,ec);we(this,mi);he(this,mi,!1),he(this,ec,t.defaultOptions),this.setOptions(t.options),this.observers=[],he(this,pi,t.client),he(this,cn,M(this,pi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,he(this,Do,yT(this.options)),this.state=t.state??M(this,Do),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,jt))==null?void 0:t.promise}setOptions(t){this.options={...M(this,ec),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,cn).remove(this)}setData(t,n){const r=aT(this.state.data,t,this.options);return xt(this,In,kr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){xt(this,In,kr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=M(this,jt))==null?void 0:r.promise;return(s=M(this,jt))==null||s.cancel(t),n?n.then($n).catch($n):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,Do))}isActive(){return this.observers.some(t=>iT(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Tv||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 67
67Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Tm(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!sT(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,jt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,jt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,cn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(M(this,jt)&&(M(this,mi)?M(this,jt).cancel({revert:!0}):M(this,jt).cancelRetry()),this.scheduleGc()),M(this,cn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||xt(this,In,kr).call(this,{type:"invalidate"})}
vendor: 13,738 bytes, line 67
67fetch(t,n){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,jt))return M(this,jt).continueRetry(),M(this,jt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(he(this,mi,!0),r.signal)})},i=()=>{const f=D_(this.options,n),y=(()=>{const m={client:M(this,pi),queryKey:this.queryKey,meta:this.meta};return s(m),m})();return he(this,mi,!1),this.options.persister?this.options.persister(f,y,this):f(y)},l=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:M(this,pi),state:this.state,fetchFn:i};return s(f),f})();(u=this.options.behavior)==null||u.onFetch(l,this),he(this,fi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&xt(this,In,kr).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const c=f=>{var p,y,m,w;Of(f)&&f.silent||xt(this,In,kr).call(this,{type:"error",error:f}),Of(f)||((y=(p=M(this,cn).config).onError)==null||y.call(p,f,this),(w=(m=M(this,cn).config).onSettled)==null||w.call(m,this.state.data,f,this)),this.scheduleGc()};return he(this,jt,U_({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,y,m,w;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){c(v);return}(y=(p=M(this,cn).config).onSuccess)==null||y.call(p,f,this),(w=(m=M(this,cn).config).onSettled)==null||w.call(m,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,p)=>{xt(this,In,kr).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{xt(this,In,kr).call(this,{type:"pause"})},onContinue:()=>{xt(this,In,kr).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),M(this,jt).start()}},Do=new WeakMap,fi=new WeakMap,cn=new WeakMap,pi=new WeakMap,jt=new WeakMap,ec=new WeakMap,mi=new WeakMap,In=new WeakSet,kr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...vT(r.data,this.options),fetchMeta:t.meta??null};case"success":return he(this,fi,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Of(s)&&s.revert&&M(this,fi)?{...M(this,fi),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),$t.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),M(this,cn).notify({query:this,type:"updated",action:t})})},e2);function vT(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:z_(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function yT(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var rr,t2,bT=(t2=class extends dh{constructor(t={}){super();we(this,rr);this.config=t,he(this,rr,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??kv(s,n);let o=this.get(i);return o||(o=new gT({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){M(this,rr).has(t.queryHash)||(M(this,rr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,rr).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,rr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){$t.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,rr).get(t)}getAll(){return[...M(this,rr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>R0(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>R0(t,r)):n}notify(t){$t.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){$t.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){$t.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},rr=new WeakMap,t2),sr,At,gi,ir,rs,n2,xT=(n2=class extends B_{constructor(t){super();we(this,ir);we(this,sr);we(this,At);we(this,gi);this.mutationId=t.mutationId,he(this,At,t.mutationCache),he(this,sr,[]),this.state=t.state||wT(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,sr).includes(t)||(M(this,sr).push(t),this.clearGcTimeout(),M(this,At).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){he(this,sr,M(this,sr).filter(n=>n!==t)),this.scheduleGc(),M(this,At).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,sr).length||(this.state.status==="pending"?this.scheduleGc():M(this,At).remove(this))}continue(){var t;return((t=M(this,gi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,l,c,u,d,h,f,p,y,m,w,v,g,x,C,_,S,j,k;const n=()=>{xt(this,ir,rs).call(this,{type:"continue"})};he(this,gi,U_({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,R)=>{xt(this,ir,rs).call(this,{type:"failed",failureCount:T,error:R})},onPause:()=>{xt(this,ir,rs).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,At).canRun(this)}));const r=this.state.status==="pending",s=!M(this,gi).canStart();try{if(r)n();else{xt(this,ir,rs).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=M(this,At).config).onMutate)==null?void 0:o.call(i,t,this));const R=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));R!==this.state.context&&xt(this,ir,rs).call(this,{type:"pending",context:R,variables:t,isPaused:s})}const T=await M(this,gi).start();return await((d=(u=M(this,At).config).onSuccess)==null?void 0:d.call(u,T,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,T,t,this.state.context)),await((y=(p=M(this,At).config).onSettled)==null?void 0:y.call(p,T,null,this.state.variables,this.state.context,this)),await((w=(m=this.options).onSettled)==null?void 0:w.call(m,T,null,t,this.state.context)),xt(this,ir,rs).call(this,{type:"success",data:T}),T}catch(T){try{throw await((g=(v=M(this,At).config).onError)==null?void 0:g.call(v,T,t,this.state.context,this)),await((C=(x=this.options).onError)==null?void 0:C.call(x,T,t,this.state.context)),await((S=(_=M(this,At).config).onSettled)==null?void 0:S.call(_,void 0,T,this.state.variables,this.state.context,this)),await((k=(j=this.options).onSettled)==null?void 0:k.call(j,void 0,T,t,this.state.context)),T}finally{xt(this,ir,rs).call(this,{type:"error",error:T})}}finally{M(this,At).runNext(this)}}},sr=new WeakMap,At=new WeakMap,gi=new WeakMap,ir=new WeakSet,rs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),$t.batch(()=>{M(this,sr).forEach(r=>{r.onMutationUpdate(t)}),M(this,At).notify({mutation:this,type:"updated",action:t})})},n2);function wT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pr,Dn,tc,r2,CT=(r2=class extends dh{constructor(t={}){super();we(this,Pr);we(this,Dn);we(this,tc);this.config=t,he(this,Pr,new Set),he(this,Dn,new Map),he(this,tc,0)}build(t,n,r){const s=new xT({mutationCache:this,mutationId:++_c(this,tc)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){M(this,Pr).add(t);const n=Bc(t);if(typeof n=="string"){const r=M(this,Dn).get(n);r?r.push(t):M(this,Dn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(M(this,Pr).delete(t)){const n=Bc(t);if(typeof n=="string"){const r=M(this,Dn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&M(this,Dn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Bc(t);if(typeof n=="string"){const r=M(this,Dn).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Bc(t);if(typeof n=="string"){const s=(r=M(this,Dn).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$t.batch(()=>{M(this,Pr).forEach(t=>{this.notify({type:"removed",mutation:t})}),M(this,Pr).clear(),M(this,Dn).clear()})}getAll(){return Array.from(M(this,Pr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>A0(n,r))}findAll(t={}){return this.getAll().filter(n=>A0(t,n))}notify(t){$t.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return $t.batch(()=>Promise.all(t.map(n=>n.continue().catch($n))))}},Pr=new WeakMap,Dn=new WeakMap,tc=new WeakMap,r2);function Bc(e){var t;return(t=e.options.scope)==null?void 0:t.id}function M0(e){return{onFetch:(t,n)=>{var d,h,f,p,y;const r=t.options,s=(f=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let m=!1;const w=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=D_(t.options,t.fetchOptions),g=async(x,C,_)=>{if(m)return Promise.reject();if(C==null&&x.pages.length)return Promise.resolve(x);const j=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:C,direction:_?"backward":"forward",meta:t.options.meta};return w(D),D})(),k=await v(j),{maxPages:T}=t.options,R=_?cT:lT;return{pages:R(x.pages,k,T),pageParams:R(x.pageParams,C,T)}};if(s&&i.length){const x=s==="backward",C=x?_T:O0,_={pages:i,pageParams:o},S=C(r,_);l=await g(_,S,x)}else{const x=e??i.length;do{const C=c===0?o[0]??r.initialPageParam:O0(r,l);if(c>0&&C==null)break;l=await g(l,C),c++}while(c<x)}return l};t.options.persister?t.fetchFn=()=>{var m,w;return(w=(m=t.options).persister)==null?void 0:w.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function O0(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function _T(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ke,ms,gs,Lo,zo,vs,Fo,Uo,s2,jT=(s2=class{constructor(e={}){we(this,Ke);we(this,ms);we(this,gs);we(this,Lo);we(this,zo);we(this,vs);we(this,Fo);we(this,Uo);he(this,Ke,e.queryCache||new bT),he(this,ms,e.mutationCache||new CT),he(this,gs,e.defaultOptions||{}),he(this,Lo,new Map),he(this,zo,new Map),he(this,vs,0)}mount(){_c(this,vs)._++,M(this,vs)===1&&(he(this,Fo,L_.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,Ke).onFocus())})),he(this,Uo,pd.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,Ke).onOnline())})))}unmount(){var e,t;_c(this,vs)._--,M(this,vs)===0&&((e=M(this,Fo))==null||e.call(this),he(this,Fo,void 0),(t=M(this,Uo))==null||t.call(this),he(this,Uo,void 0))}isFetching(e){return M(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,ms).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,Ke).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=M(this,Ke).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Tm(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return M(this,Ke).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=M(this,Ke).get(r.queryHash),i=s==null?void 0:s.state.data,o=nT(t,i);if(o!==void 0)return M(this,Ke).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return $t.batch(()=>M(this,Ke).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,Ke).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,Ke);$t.batch(()=>
67{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,Ke);return $t.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=$t.batch(()=>M(this,Ke).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then($n).catch($n)}invalidateQueries(e,t={}){return $t.batch(()=>(M(this,Ke).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=$t.batch(()=>M(this,Ke).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch($n)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then($n)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,Ke).build(this,t);return n.isStaleByTime(Tm(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($n).catch($n)}fetchInfiniteQuery(e){return e.behavior=M0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($n).catch($n)}ensureInfiniteQueryData(e){return e.behavior=M0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return pd.isOnline()?M(this,ms).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,Ke)}getMutationCache(){return M(this,ms)}getDefaultOptions(){return M(this,gs)}setDefaultOptions(e){he(this,gs,e)}setQueryDefaults(e,t){M(this,Lo).set(Rl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,Lo).values()],n={};return t.forEach(r=>{Al(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){M(this,zo).set(Rl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,zo).values()],n={};return t.forEach(r=>{Al(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,gs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=kv(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Tv&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,gs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,Ke).clear(),M(this,ms).clear()}},Ke=new WeakMap,ms=new WeakMap,gs=new WeakMap,Lo=new WeakMap,zo=new WeakMap,vs=new WeakMap,Fo=new WeakMap,Uo=new WeakMap,s2),ST=b.createContext(void 0),kT=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(ST.Provider,{value:e,children:t})),I0=["light","dark"],TT="(prefers-color-scheme: dark)",ET=b.createContext(void 0),NT={setTheme:e=>{},themes:[]},RT=()=>{var e;return(e=b.useContext(ET))!=null?e:NT};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:l,nonce:c})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?I0.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(y,m=!1,w=!0)=>{let v=o?o[y]:y,g=m?y+"|| ''":`'${v}'`,x="";return s&&w&&!m&&I0.includes(y)&&(x+=`d.style.colorScheme = '${y}';`),n==="class"?m||v?x+=`c.add(${g})`:x+="null":v&&(x+=`d[s](n,${g})`),x},p=e?`!function(){${d}${f(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${TT}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${u?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return b.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:p}})});var AT=e=>{switch(e){case"success":return MT;case"info":return IT;case"warning":return OT;case"error":return DT;default:return null}},PT=Array(12).fill(0),$T=({visible:e,className:t})=>$.createElement("div",{className:["sonner-loading-wrapper",t].filter(
67Boolean).join(" "),"data-visible":e},$.createElement("div",{className:"sonner-spinner"},PT.map((n,r)=>$.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),MT=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),OT=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),IT=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),DT=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),LT=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},$.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),$.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),zT=()=>{let[e,t]=$.useState(document.hidden);return $.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Nm=1,FT=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Nm++,i=this.toasts.find(l=>l.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...e,id:s,title:n}),{...l,...e,id:s,dismissible:o,title:n}):l):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
67this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,o=r.then(async c=>{if(i=["resolve",c],$.isValidElement(c))s=!1,this.create({id:n,type:"default",message:c});else if(BT(c)&&!c.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async c=>{if(i=["reject",c],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var c;s&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,u)=>o.then(()=>i[0]==="reject"?u(i[1]):c(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Nm++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},zt=new FT,UT=(e,t)=>{let n=(t==null?void 0:t.id)||Nm++;return zt.addToast({title:e,...t,id:n}),n},BT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",VT=UT,HT=()=>zt.toasts,WT=()=>zt.getActiveToasts();Object.assign(VT,{success:zt.success,info:zt.info,warning:zt.warning,error:zt.error,custom:zt.custom,message:zt.message,promise:zt.promise,dismiss:zt.dismiss,loading:zt.loading},{getHistory:HT,getToasts:WT});function qT(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}qT(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
67left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
67:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
67--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
68`);function Vc(e){return e.label!==void 0}var KT=3,ZT="32px",GT="16px",D0=4e3,JT=356,YT=14,QT=20,XT=200;function kn(...e){return e.filter(Boolean).join(" ")}function eE(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var tE=e=>{var t,n,r,s,i,o,l,c,u,d,h;let{invert:f,toast:p,unstyled:y,interacting:m,setHeights:w,visibleToasts:v,heights:g,index:x,toasts:C,expanded:_,removeToast:S,defaultRichColors:j,closeButton:k,style:T,cancelButtonStyle:R,actionButtonStyle:D,className:O="",descriptionClassName:W="",duration:L,position:J,gap:B,loadingIcon:V,expandByDefault:N,classNames:P,icons:A,closeButtonAriaLabel:Z="Close toast",pauseWhenPageIsHidden:K}=e,[se,ee]=$.useState(null),[_e,Te]=$.useState(null),[U,le]=$.useState(!1),[xe,ue]=$.useState(!1),[X,F]=$.useState(!1),[de,ye]=$.useState(!1),[Le,rt]=$.useState(!1),[ht,Wt]=$.useState(0),[Nt,Yn]=$.useState(0),yn=$.useRef(p.duration||L||D0),Ii=$.useRef(null),bn=$.useRef(null),yc=x===0,bc=x+1<=v,Dt=p.type,xr=p.dismissible!==!1,Qh=p.className||"",va=p.descriptionClassName||"",xn=$.useMemo(()=>g.findIndex(ie=>ie.toastId===p.id)||0,[g,p.id]),ya=$.useMemo(()=>{var ie;return(ie=p.closeButton)!=null?ie:k},[p.closeButton,k]),Di=$.useMemo(()=>p.duration||L||D0,[p.duration,L]),Gr=$.useRef(0),Jr=$.useRef(0),xc=$.useRef(0),Yr=$.useRef(null),[Xh,ef]=J.split("-"),ba=$.useMemo(()=>g.reduce((ie,je,Ne)=>Ne>
68=xn?ie:ie+je.height,0),[g,xn]),wc=zT(),Cc=p.invert||f,Li=Dt==="loading";Jr.current=$.useMemo(()=>xn*B+ba,[xn,ba]),$.useEffect(()=>{yn.current=Di},[Di]),$.useEffect(()=>{le(!0)},[]),$.useEffect(()=>{let ie=bn.current;if(ie){let je=ie.getBoundingClientRect().height;return Yn(je),w(Ne=>[{toastId:p.id,height:je,position:p.position},...Ne]),()=>w(Ne=>Ne.filter(Cn=>Cn.toastId!==p.id))}},[w,p.id]),$.useLayoutEffect(()=>{if(!U)return;let ie=bn.current,je=ie.style.height;ie.style.height="auto";let Ne=ie.getBoundingClientRect().height;ie.style.height=je,Yn(Ne),w(Cn=>Cn.find(_n=>_n.toastId===p.id)?Cn.map(_n=>_n.toastId===p.id?{..._n,height:Ne}:_n):[{toastId:p.id,height:Ne,position:p.position},...Cn])},[U,p.title,p.description,w,p.id]);let wn=$.useCallback(()=>{ue(!0),Wt(Jr.current),w(ie=>ie.filter(je=>je.toastId!==p.id)),setTimeout(()=>{S(p)},XT)},[p,S,w,Jr]);$.useEffect(()=>{if(p.promise&&Dt==="loading"||p.duration===1/0||p.type==="loading")return;let ie;return _||m||K&&wc?(()=>{if(xc.current<Gr.current){let je=new Date().getTime()-Gr.current;yn.current=yn.current-je}xc.current=new Date().getTime()})():yn.current!==1/0&&(Gr.current=new Date().getTime(),ie=setTimeout(()=>{var je;(je=p.onAutoClose)==null||je.call(p,p),wn()},yn.current)),()=>clearTimeout(ie)},[_,m,p,Dt,K,wc,wn]),$.useEffect(()=>{p.delete&&wn()},[wn,p.delete]);function tf(){var ie,je,Ne;return A!=null&&A.loading?$.createElement("div",{className:kn(P==null?void 0:P.loader,(ie=p==null?void 0:p.classNames)==null?void 0:ie.loader,"sonner-loader"),"data-visible":Dt==="loading"},A.loading):V?$.createElement("div",{className:kn(P==null?void 0:P.loader,(je=p==null?void 0:p.classNames)==null?void 0:je.loader,"sonner-loader"),"data-visible":Dt==="loading"},V):$.createElement($T,{className:kn(P==null?void 0:P.loader,(Ne=p==null?void 0:p.classNames)==null?void 0:Ne.loader),visible:Dt==="loading"})}return $.createElement("li",{tabIndex:0,ref:bn,className:kn(O,Qh,P==null?void 0:P.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[Dt],(n=p==null?void 0:p.classNames)==null?void 0:n[Dt]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:j,"data-styled":!(p.jsx||p.unstyled||y),"data-mounted":U,"data-promise":!!p.promise,"data-swiped":Le,"data-removed":xe,"data-visible":bc,"data-y-position":Xh,"data-x-position":ef,"data-index":x,"data-front":yc,"data-swiping":X,"data-dismissible":xr,"data-type":Dt,"data-invert":Cc,"data-swipe-out":de,"data-swipe-direction":_e,"data-expanded":!!(_||N&&U),style:{"--index":x,"--toasts-before":x,"--z-index":C.length-x,"--offset":`${xe?ht:Jr.current}px`,"--initial-height":N?"auto":`${Nt}px`,...T,...p.style},onDragEnd:()=>{F(!1),ee(null),Yr.current=null},onPointerDown:ie=>{Li||!xr||(Ii.current=new Date,Wt(Jr.current),ie.target.setPointerCapture(ie.pointerId),ie.target.tagName!=="BUTTON"&&(F(!0),Yr.current={x:ie.clientX,y:ie.clientY}))},onPointerUp:()=>{var ie,je,Ne,Cn;if(de||!xr)return;Yr.current=null;let _n=Number(((ie=bn.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Qr=Number(((je=bn.current)==null?void 0:je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Zs=new Date().getTime()-((Ne=Ii.current)==null?void 0:Ne.getTime()),jn=se==="x"?_n:Qr,Xr=Math.abs(jn)/Zs;if(Math.abs(jn)>=QT||Xr>.11){Wt(Jr.current),(Cn=p.onDismiss)==null||Cn.call(p,p),Te(se==="x"?_n>0?"right":"left":Qr>0?"down":"up"),wn(),ye(!0),rt(!1);return}F(!1),ee(null)},onPointerMove:ie=>{var je,Ne,Cn,_n;if(!Yr.current||!xr||((je=window.getSelection())==null?void 0:je.toString().length)>0)return;let Qr=ie.clientY-Yr.current.y,Zs=ie.clientX-Yr.current.x,jn=(Ne=e.swipeDirections)!=null?Ne:eE(J);!se&&(Math.abs(Zs)>1||Math.abs(Qr)>1)&&ee(Math.abs(Zs)>Math.abs(Qr)?"x":"y");let Xr={x:0,y:0};se==="y"?(jn.includes("top")||jn.includes("bottom"))&&(jn.includes("top")&&Qr<0||jn.includes("bottom")&&Qr>0)&&(Xr.y=Qr):se==="x"&&(jn.includes("left")||jn.includes("right"))&&(jn.includes("left")&&Zs<0||jn.includes("right")&&Zs>0)&&(Xr.x=Zs),(Math.abs(Xr.x)>0||Math.abs(Xr.y)>0)&&rt(!0),(Cn=bn.current)==null||Cn.style.setProperty("--swipe-amount-x",`${Xr.x}px`),(_n=bn.current)==null||_n.style.setProperty("--swipe-amount-y",`${Xr.y}px`)}},ya&&!p.jsx?$.createElement("button",{"aria-label":Z,"data-disabled":Li,"data-close-button":!0,onClick:Li||!xr?()=>{}:()=>{var ie;wn(),(ie=p.onDismiss)==null||ie.call(p,p)},className:kn(P==null?void 0:P.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=A==null?void 0:A.close)!=null?i:LT):null,p.jsx||b.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:$.createElement($.Fragment,null,Dt||p.icon||p.promise?$.createElement("div",{"data-icon":"",className:kn(P==null?void 0:P.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)}
68,p.promise||p.type==="loading"&&!p.icon?p.icon||tf():null,p.type!=="loading"?p.icon||(A==null?void 0:A[Dt])||AT(Dt):null):null,$.createElement("div",{"data-content":"",className:kn(P==null?void 0:P.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},$.createElement("div",{"data-title":"",className:kn(P==null?void 0:P.title,(c=p==null?void 0:p.classNames)==null?void 0:c.title)},typeof p.title=="function"?p.title():p.title),p.description?$.createElement("div",{"data-description":"",className:kn(W,va,P==null?void 0:P.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),b.isValidElement(p.cancel)?p.cancel:p.cancel&&Vc(p.cancel)?$.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||R,onClick:ie=>{var je,Ne;Vc(p.cancel)&&xr&&((Ne=(je=p.cancel).onClick)==null||Ne.call(je,ie),wn())},className:kn(P==null?void 0:P.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,b.isValidElement(p.action)?p.action:p.action&&Vc(p.action)?$.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||D,onClick:ie=>{var je,Ne;Vc(p.action)&&((Ne=(je=p.action).onClick)==null||Ne.call(je,ie),!ie.defaultPrevented&&wn())},className:kn(P==null?void 0:P.actionButton,(h=p==null?void 0:p.classNames)==null?void 0:h.actionButton)},p.action.label):null))};function L0(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function nE(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",l=i?GT:ZT;function c(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=l:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(l)}),n}var rE=b.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:l,offset:c,mobileOffset:u,theme:d="light",richColors:h,duration:f,style:p,visibleToasts:y=KT,toastOptions:m,dir:w=L0(),gap:v=YT,loadingIcon:g,icons:x,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:_}=e,[S,j]=$.useState([]),k=$.useMemo(()=>Array.from(new Set([r].concat(S.filter(K=>K.position).map(K=>K.position)))),[S,r]),[T,R]=$.useState([]),[D,O]=$.useState(!1),[W,L]=$.useState(!1),[J,B]=$.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=$.useRef(null),N=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=$.useRef(null),A=$.useRef(!1),Z=$.useCallback(K=>{j(se=>{var ee;return(ee=se.find(_e=>_e.id===K.id))!=null&&ee.delete||zt.dismiss(K.id),se.filter(({id:_e})=>_e!==K.id)})},[]);return $.useEffect(()=>zt.subscribe(K=>{if(K.dismiss){j(se=>se.map(ee=>ee.id===K.id?{...ee,delete:!0}:ee));return}setTimeout(()=>{v_.flushSync(()=>
68{j(se=>{let ee=se.findIndex(_e=>_e.id===K.id);return ee!==-1?[...se.slice(0,ee),{...se[ee],...K},...se.slice(ee+1)]:[K,...se]})})})}),[]),$.useEffect(()=>{if(d!=="system"){B(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:se})=>{B(se?"dark":"light")})}catch{K.addListener(({matches:ee})=>{try{B(ee?"dark":"light")}catch(_e){console.error(_e)}})}},[d]),$.useEffect(()=>{S.length<=1&&O(!1)},[S]),$.useEffect(()=>{let K=se=>{var ee,_e;s.every(Te=>se[Te]||se.code===Te)&&(O(!0),(ee=V.current)==null||ee.focus()),se.code==="Escape"&&(document.activeElement===V.current||(_e=V.current)!=null&&_e.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[s]),$.useEffect(()=>{if(V.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,A.current=!1)}},[V.current]),$.createElement("section",{ref:t,"aria-label":`${C} ${N}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((K,se)=>{var ee;let[_e,Te]=K.split("-");return S.length?$.createElement("ol",{key:K,dir:w==="auto"?L0():w,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":J,"data-y-position":_e,"data-lifted":D&&S.length>1&&!i,"data-x-position":Te,style:{"--front-toast-height":`${((ee=T[0])==null?void 0:ee.height)||0}px`,"--width":`${JT}px`,"--gap":`${v}px`,...p,...nE(c,u)},onBlur:U=>{A.current&&!U.currentTarget.contains(U.relatedTarget)&&(A.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:U=>{U.target instanceof HTMLElement&&U.target.dataset.dismissible==="false"||A.current||(A.current=!0,P.current=U.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{W||O(!1)},onDragEnd:()=>O(!1),onPointerDown:U=>{U.target instanceof HTMLElement&&U.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},S.filter(U=>!U.position&&se===0||U.position===K).map((U,le)=>{var xe,ue;return $.createElement(tE,{key:U.id,icons:x,index:le,toast:U,defaultRichColors:h,duration:(xe=m==null?void 0:m.duration)!=null?xe:f,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:y,closeButton:(ue=m==null?void 0:m.closeButton)!=null?ue:o,interacting:W,position:K,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:Z,toasts:S.filter(X=>X.position==U.position),heights:T.filter(X=>X.position==U.position),setHeights:R,expandByDefault:i,gap:v,loadingIcon:g,expanded:D,pauseWhenPageIsHidden:_,swipeDirections:e.swipeDirections})})):null}))});const sE=({...e})=>{const{theme:t="system"}=RT();return a.jsx(rE,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},iE=1,oE=1e6;let If=0;function aE(){return If=(If+1)%Number.MAX_SAFE_INTEGER,If.toString()}const Df=new Map,z0=e=>{if(Df.has(e))return;const t=setTimeout(()=>{Df.delete(e),nl({type:"REMOVE_TOAST",toastId:e})},oE);Df.set(e,t)},lE=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,iE)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?z0(n):e.toasts.forEach(r=>{z0(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ru=[];let Au={toasts:[]};function nl(e){Au=lE(Au,e),Ru.forEach(t=>{t(Au)})}function Mn({...e}){const t=aE(),n=s=>nl({type:"UPDATE_TOAST",toast:{...s,id:t}}
vendor: 13,267 bytes, line 68
68),r=()=>nl({type:"DISMISS_TOAST",toastId:t});return nl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function cE(){const[e,t]=b.useState(Au);return b.useEffect(()=>(Ru.push(t),()=>{const n=Ru.indexOf(t);n>-1&&Ru.splice(n,1)}),[e]),{...e,toast:Mn,dismiss:n=>nl({type:"DISMISS_TOAST",toastId:n})}}function re(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function F0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function V_(...e){return t=>{let n=!1;const r=e.map(s=>{const i=F0(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():F0(e[s],null)}}}}function Se(...e){return b.useCallback(V_(...e),e)}function Gn(e,t=[]){let n=[];function r(i,o){const l=b.createContext(o),c=n.length;n=[...n,o];const u=h=>{var v;const{scope:f,children:p,...y}=h,m=((v=f==null?void 0:f[e])==null?void 0:v[c])||l,w=b.useMemo(()=>y,Object.values(y));return a.jsx(m.Provider,{value:w,children:p})};u.displayName=i+"Provider";function d(h,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[c])||l,y=b.useContext(p);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const s=()=>{const i=n.map(o=>b.createContext(o));return function(l){const c=(l==null?void 0:l[e])||i;return b.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[r,uE(s,...t)]}function uE(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...l,...h}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Pl(e){const t=hE(e),n=b.forwardRef((r,s)=>{const{children:i,...o}=r,l=b.Children.toArray(i),c=l.find(pE);if(c){const u=c.props.children,d=l.map(h=>h===c?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:h);return a.jsx(t,{...o,ref:s,children:b.isValidElement(u)?b.cloneElement(u,void 0,d):null})}return a.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var dE=Pl("Slot");function hE(e){const t=b.forwardRef((n,r)=>{const{children:s,...i}=n;if(b.isValidElement(s)){const o=gE(s),l=mE(i,s.props);return s.type!==b.Fragment&&(l.ref=r?V_(r,o):o),b.cloneElement(s,l)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var H_=Symbol("radix.slottable");function fE(e){const t=({children:n})=>a.jsx(a.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=H_,t}function pE(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===H_}function mE(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{const c=i(...l);return s(...l),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function gE(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function fh(e){const t=e+"CollectionProvider",[n,r]=Gn(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:w,children:v}=m,g=$.useRef(null),x=$.useRef(new Map).current;return a.jsx(s,{scope:w,itemMap:x,collectionRef:g,children:v})};o.displayName=t;const l=e+"CollectionSlot",c=Pl(l),u=$.forwardRef((m,w)=>{const{scope:v,children:g}=m,x=i(l,v),C=Se(w,x.collectionRef);return a.jsx(c,{ref:C,children:g})});u.displayName=l;const d=e+"CollectionItemSlot",h="data-radix-collection-item",f=Pl(d),p=$.forwardRef((m,w)=>{const{scope:v,children:g,...x}=m,C=$.useRef(null),_=Se(w,C),S=i(d,v);return $.useEffect(()=>(S.itemMap.set(C,{ref:C,...x}),()=>void S.itemMap.delete(C))),a.jsx(f,{[h]:"",ref:_,children:g})});p.displayName=d;function y(m){const w=i(e+"CollectionConsumer",m);return $.useCallback(()=>{const g=w.collectionRef.current;if(!g)return[];const x=Array.from(g.querySelectorAll(`[${h}]`));return Array.from(w.itemMap.values()).sort((S,j)=>x.indexOf(S.ref.current)-x.indexOf(j.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:o,Slot:u,ItemSlot:p},y,r]}var vE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pe=vE.reduce((e,t)=>{const n=Pl(`Primitive.${t}`),r=b.forwardRef((s,i)=>{const{asChild:o,...l}=s,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function W_(e,t){e&&$i.flushSync(()=>e.dispatchEvent(t))}function gn(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function yE(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e);b.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var bE="DismissableLayer",Rm="dismissableLayer.update",xE="dismissableLayer.pointerDownOutside",wE="dismissableLayer.focusOutside",U0,q_=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ph=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,u=b.useContext(q_),[d,h]=b.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=b.useState({}),y=Se(t,j=>h(j)),m=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(w),g=d?m.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,C=g>=v,_=_E(j=>{const k=j.target,T=[...u.branches].some(R=>R.contains(k));!C||T||(s==null||s(j),o==null||o(j),j.defaultPrevented||l==null||l())},f),S=jE(j=>{const k=j.target;[...u.branches].some(R=>R.contains(k))||(i==null||i(j),o==null||o(j),j.defaultPrevented||l==null||l())},f);return yE(j=>{g===u.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&l&&(j.preventDefault(),l()))},f),b.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(U0=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),B0(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=U0)}},[d,f,n,u]),b.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),B0())},[d,u]),b.useEffect(()=>{const j=()=>p({});return document.addEventListener(Rm,j),()=>document.removeEventListener(Rm,j)},[]),a.jsx(pe.div,{...c,ref:y,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:re(e.onFocusCapture,S.onFocusCapture),onBlurCapture:re(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:re(e.onPointerDownCapture,_.onPointerDownCapture)})});ph.displayName=bE;var CE="DismissableLayerBranch",K_=b.forwardRef((e,t)=>{const n=b.useContext(q_),r=b.useRef(null),s=Se(t,r);return b.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),a.jsx(pe.div,{...e,ref:s})});K_.displayName=CE;function _E(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e),r=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){Z_(xE,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function jE(e,t=globalThis==null?void 0:globalThis.document){const n=gn(e),r=b.useRef(!1);return b.useEffect(()=>{const s=i=>{i.target&&!r.current&&Z_(wE,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function B0(){const e=new CustomEvent(Rm);document.dispatchEvent(e)}function Z_(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?W_(s,i):s.dispatchEvent(i)}var SE=ph,kE=K_,dt=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},TE="Portal",Ev=b.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[s,i]=b.useState(!1);dt(()=>i(!0),[]);const o=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?v_.createPortal(a.jsx(pe.div,{...r,ref:t}),o):null});Ev.displayName=TE;function EE(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var aa=e=>{const{present:t,children:n}=e,r=NE(t),s=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),i=Se(r.ref,RE(s));return typeof n=="function"||r.isPresent?b.cloneElement(s,{ref:i}):null};aa.displayName="Presence";function NE(e){const[t,n]=b.useState(),r=b.useRef(null),s=b.useRef(e),i=b.useRef("none"),o=e?"mounted":"unmounted",[l,c]=EE(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=Hc(r.current);i.current=l==="mounted"?u:"none"},[l]),dt(()=>{const u=r.current,d=s.current;if(d!==e){const f=i.current,p=Hc(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),dt(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=p=>{const m=Hc(r.current).includes(p.animationName);if(p.target===t&&m&&(c("ANIMATION_END"),!s.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},f=p=>{p.target===t&&(i.current=Hc(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Hc(e){return(e==null?void 0:e.animationName)||"none"}function RE(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var AE=Pg[" useInsertionEffect ".trim().toString()]||dt;function Br({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=PE({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:s;{const d=b.useRef(e!==void 0);b.useEffect(()=>{const h=d.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"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.`),d.current=l},[l,r])}const u=b.useCallback(d=>{var h;if(l){const f=$E(d)?d(e):d;f!==e&&((h=o.current)==null||h.call(o,f))}else i(d)},[l,e,i,o]);return[c,u]}function PE({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),s=b.useRef(n),i=b.useRef(t);return AE(()=>{i.current=t},[t]),b.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function $E(e){return typeof e=="function"}var G_=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"}),ME="VisuallyHidden",mh=b.forwardRef((e,t)=>a.jsx(pe.span,{...e,ref:t,style:{...G_,...e.style}}));mh.displayName=ME;var OE=mh,Nv="ToastProvider",[Rv,IE,DE]=fh("Toast"),[J_,rge]=Gn("Toast",[DE]),[LE,gh]=J_(Nv),Y_=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[l,c]=b.useState(null),[u,d]=b.useState(0),h=b.useRef(!1),f=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Nv}\`. Expected non-empty \`string\`.`),a.jsx(Rv.Provider,{scope:t,children:a.jsx(LE,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:b.useCallback(()=>d(p=>p+1),[]),onToastRemove:b.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:o})})};Y_.displayName=Nv;var Q_="ToastViewport",zE=["F8"],Am="toast.viewportPause",Pm="toast.viewportResume",X_=b.forwardRef((e,t)=>
68{const{__scopeToast:n,hotkey:r=zE,label:s="Notifications ({hotkey})",...i}=e,o=gh(Q_,n),l=IE(n),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),h=b.useRef(null),f=Se(t,h,o.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;b.useEffect(()=>{const w=v=>{var x;r.length!==0&&r.every(C=>v[C]||v.code===C)&&((x=h.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),b.useEffect(()=>{const w=c.current,v=h.current;if(y&&w&&v){const g=()=>{if(!o.isClosePausedRef.current){const S=new CustomEvent(Am);v.dispatchEvent(S),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const S=new CustomEvent(Pm);v.dispatchEvent(S),o.isClosePausedRef.current=!1}},C=S=>{!w.contains(S.relatedTarget)&&x()},_=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",g),w.addEventListener("focusout",C),w.addEventListener("pointermove",g),w.addEventListener("pointerleave",_),window.addEventListener("blur",g),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",g),w.removeEventListener("focusout",C),w.removeEventListener("pointermove",g),w.removeEventListener("pointerleave",_),window.removeEventListener("blur",g),window.removeEventListener("focus",x)}}},[y,o.isClosePausedRef]);const m=b.useCallback(({tabbingDirection:w})=>{const g=l().map(x=>{const C=x.ref.current,_=[C,...QE(C)];return w==="forwards"?_:_.reverse()});return(w==="forwards"?g.reverse():g).flat()},[l]);return b.useEffect(()=>{const w=h.current;if(w){const v=g=>{var _,S,j;const x=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!x){const k=document.activeElement,T=g.shiftKey;if(g.target===w&&T){(_=u.current)==null||_.focus();return}const O=m({tabbingDirection:T?"backwards":"forwards"}),W=O.findIndex(L=>L===k);Lf(O.slice(W+1))?g.preventDefault():T?(S=u.current)==null||S.focus():(j=d.current)==null||j.focus()}};return w.addEventListener("keydown",v),()=>w.removeEventListener("keydown",v)}},[l,m]),a.jsxs(kE,{ref:c,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&a.jsx($m,{ref:u,onFocusFromOutsideViewport:()=>{const w=m({tabbingDirection:"forwards"});Lf(w)}}),a.jsx(Rv.Slot,{scope:n,children:a.jsx(pe.ol,{tabIndex:-1,...i,ref:f})}),y&&a.jsx($m,{ref:d,onFocusFromOutsideViewport:()=>{const w=m({tabbingDirection:"backwards"});Lf(w)}})]})});X_.displayName=Q_;var ej="ToastFocusProxy",$m=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=gh(ej,n);return a.jsx(mh,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const l=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});$m.displayName=ej;var cc="Toast",FE="toast.swipeStart",UE="toast.swipeMove",BE="toast.swipeCancel",VE="toast.swipeEnd",tj=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[l,c]=Br({prop:r,defaultProp:s??!0,onChange:i,caller:cc});return a.jsx(aa,{present:n||l,children:a.jsx(qE,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:gn(e.onPause),onResume:gn(e.onResume),onSwipeStart:re(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:re(e.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:re(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:re(e.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});tj.displayName=cc;var[HE,WE]=J_(cc,{onClose(){}}),qE=b.forwardRef((e,t)=>
68{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:p,...y}=e,m=gh(cc,n),[w,v]=b.useState(null),g=Se(t,L=>v(L)),x=b.useRef(null),C=b.useRef(null),_=s||m.duration,S=b.useRef(0),j=b.useRef(_),k=b.useRef(0),{onToastAdd:T,onToastRemove:R}=m,D=gn(()=>{var J;(w==null?void 0:w.contains(document.activeElement))&&((J=m.viewport)==null||J.focus()),o()}),O=b.useCallback(L=>{!L||L===1/0||(window.clearTimeout(k.current),S.current=new Date().getTime(),k.current=window.setTimeout(D,L))},[D]);b.useEffect(()=>{const L=m.viewport;if(L){const J=()=>{O(j.current),u==null||u()},B=()=>{const V=new Date().getTime()-S.current;j.current=j.current-V,window.clearTimeout(k.current),c==null||c()};return L.addEventListener(Am,B),L.addEventListener(Pm,J),()=>{L.removeEventListener(Am,B),L.removeEventListener(Pm,J)}}},[m.viewport,_,c,u,O]),b.useEffect(()=>{i&&!m.isClosePausedRef.current&&O(_)},[i,_,m.isClosePausedRef,O]),b.useEffect(()=>(T(),()=>R()),[T,R]);const W=b.useMemo(()=>w?lj(w):null,[w]);return m.viewport?a.jsxs(a.Fragment,{children:[W&&a.jsx(KE,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),a.jsx(HE,{scope:n,onClose:D,children:$i.createPortal(a.jsx(Rv.ItemSlot,{scope:n,children:a.jsx(SE,{asChild:!0,onEscapeKeyDown:re(l,()=>{m.isFocusedToastEscapeKeyDownRef.current||D(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:a.jsx(pe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:re(e.onKeyDown,L=>{L.key==="Escape"&&(l==null||l(L.nativeEvent),L.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:re(e.onPointerDown,L=>{L.button===0&&(x.current={x:L.clientX,y:L.clientY})}),onPointerMove:re(e.onPointerMove,L=>{if(!x.current)return;const J=L.clientX-x.current.x,B=L.clientY-x.current.y,V=!!C.current,N=["left","right"].includes(m.swipeDirection),P=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,A=N?P(0,J):0,Z=N?0:P(0,B),K=L.pointerType==="touch"?10:2,se={x:A,y:Z},ee={originalEvent:L,delta:se};V?(C.current=se,Wc(UE,h,ee,{discrete:!1})):V0(se,m.swipeDirection,K)?(C.current=se,Wc(FE,d,ee,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(J)>K||Math.abs(B)>K)&&(x.current=null)}),onPointerUp:re(e.onPointerUp,L=>{const J=C.current,B=L.target;if(B.hasPointerCapture(L.pointerId)&&B.releasePointerCapture(L.pointerId),C.current=null,x.current=null,J){const V=L.currentTarget,N={originalEvent:L,delta:J};V0(J,m.swipeDirection,m.swipeThreshold)?Wc(VE,p,N,{discrete:!0}):Wc(BE,f,N,{discrete:!0}),V.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),KE=e=>{const{__scopeToast:t,children:n,...r}=e,s=gh(cc,t),[i,o]=b.useState(!1),[l,c]=b.useState(!1);return JE(()=>o(!0)),b.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:a.jsx(Ev,{asChild:!0,children:a.jsx(mh,{...r,children:i&&a.jsxs(a.Fragment,{children:[s.label," ",n]})})})},ZE="ToastTitle",nj=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.jsx(pe.div,{...r,ref:t})});nj.displayName=ZE;var GE="ToastDescription",rj=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.jsx(pe.div,{...r,ref:t})});rj.displayName=GE;var sj="ToastAction",ij=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?a.jsx(aj,{altText:n,asChild:!0,children:a.jsx(Av,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${sj}\`. Expected non-empty \`string\`.`),null)});ij.displayName=sj;var oj="ToastClose",Av=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=WE(oj,n);return a.jsx(aj,{asChild:!0,children:a.jsx(pe.button,{type:"button",...r,ref:t,onClick:re(e.onClick,s.onClose)})})});Av.displayName=oj;var aj=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return a.jsx(pe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function lj(e){const t=[];
vendor: 7,053 bytes, lines 68-142
68return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),YE(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...lj(r))}}),t}function Wc(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?W_(s,i):s.dispatchEvent(i)}var V0=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function JE(e=()=>{}){const t=gn(e);dt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function YE(e){return e.nodeType===e.ELEMENT_NODE}function QE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Lf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var XE=Y_,cj=X_,uj=tj,dj=nj,hj=rj,fj=ij,pj=Av;function mj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=mj(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function gj(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=mj(e))&&(r&&(r+=" "),r+=t);return r}const H0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,W0=gj,Pv=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return W0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const d=n==null?void 0:n[u],h=i==null?void 0:i[u];if(d===null)return null;const f=H0(d)||H0(h);return s[u][f]}),l=n&&Object.entries(n).reduce((u,d)=>{let[h,f]=d;return f===void 0||(u[h]=f),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:f,...p}=d;return Object.entries(p).every(y=>{let[m,w]=y;return Array.isArray(w)?w.includes({...i,...l}[m]):{...i,...l}[m]===w})?[...u,h,f]:u},[]);return W0(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
69 * @license lucide-react v0.462.0 - ISC
70 *
71 * This source code is licensed under the ISC license.
72 * See the LICENSE file in the root directory of this source tree.
73 */const eN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vj=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
74 * @license lucide-react v0.462.0 - ISC
75 *
76 * This source code is licensed under the ISC license.
77 * See the LICENSE file in the root directory of this source tree.
78 */var tN={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"};/**
79 * @license lucide-react v0.462.0 - ISC
80 *
81 * This source code is licensed under the ISC license.
82 * See the LICENSE file in the root directory of this source tree.
83 */const nN=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...l},c)=>b.createElement("svg",{ref:c,...tN,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:vj("lucide",s),...l},[...o.map(([u,d])=>b.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
84 * @license lucide-react v0.462.0 - ISC
85 *
86 * This source code is licensed under the ISC license.
87 * See the LICENSE file in the root directory of this source tree.
88 */const me=(e,t)=>{const n=b.forwardRef(({className:r,...s},i)=>b.createElement(nN,{ref:i,iconNode:t,className:vj(`lucide-${eN(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
89 * @license lucide-react v0.462.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const yj=me("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
94 * @license lucide-react v0.462.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */const nt=me("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
99 * @license lucide-react v0.462.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const md=me("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
104 * @license lucide-react v0.462.0 - ISC
105 *
106 * This source code is licensed under the ISC license.
107 * See the LICENSE file in the root directory of this source tree.
108 */const bj=me("BookOpen",[["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"}]]);/**
109 * @license lucide-react v0.462.0 - ISC
110 *
111 * This source code is licensed under the ISC license.
112 * See the LICENSE file in the root directory of this source tree.
113 */const xj=me("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
114 * @license lucide-react v0.462.0 - ISC
115 *
116 * This source code is licensed under the ISC license.
117 * See the LICENSE file in the root directory of this source tree.
118 */const rN=me("Calendar",[["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"}]]);/**
119 * @license lucide-react v0.462.0 - ISC
120 *
121 * This source code is licensed under the ISC license.
122 * See the LICENSE file in the root directory of this source tree.
123 */const wj=me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
124 * @license lucide-react v0.462.0 - ISC
125 *
126 * This source code is licensed under the ISC license.
127 * See the LICENSE file in the root directory of this source tree.
128 */const $l=me("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
129 * @license lucide-react v0.462.0 - ISC
130 *
131 * This source code is licensed under the ISC license.
132 * See the LICENSE file in the root directory of this source tree.
133 */const sN=me("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
134 * @license lucide-react v0.462.0 - ISC
135 *
136 * This source code is licensed under the ISC license.
137 * See the LICENSE file in the root directory of this source tree.
138 */const iN=me("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
139 * @license lucide-react v0.462.0 - ISC
140 *
141 * This source code is licensed under the ISC license.
142 * See the LICENSE file in the root directory of this source tree.
143 */const Mm=me("Church",[["path",{d:"M10 9h4",key:"u4k05v"}],["path",{d:"M12 7v5",key:"ma6bk"}],["path",{d:"M14 22v-4a2 2 0 0 0-4 0v4",key:"1pdhuj"}],["path",{d:"M18 22V5.618a1 1 0 0 0-.553-.894l-4.553-2.277a2 2 0 0 0-1.788 0L6.553 4.724A1 1 0 0 0 6 5.618V22",key:"1rkokr"}],["path",{d:"m18 7 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.618a1 1 0 0 1 .553-.894L6 7",key:"1w6esw"}]]);/**
144 * @license lucide-react v0.462.0 - ISC
145 *
146 * This source code is licensed under the ISC license.
147 * See the LICENSE file in the root directory of this source tree.
148 */const oN=me("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
149 * @license lucide-react v0.462.0 - ISC
150 *
151 * This source code is licensed under the ISC license.
152 * See the LICENSE file in the root directory of this source tree.
153 */const aN=me("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
154 * @license lucide-react v0.462.0 - ISC
155 *
156 * This source code is licensed under the ISC license.
157 * See the LICENSE file in the root directory of this source tree.
158 */const $v=me("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
159 * @license lucide-react v0.462.0 - ISC
160 *
161 * This source code is licensed under the ISC license.
162 * See the LICENSE file in the root directory of this source tree.
163 */const lN=me("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/**
164 * @license lucide-react v0.462.0 - ISC
165 *
166 * This source code is licensed under the ISC license.
167 * See the LICENSE file in the root directory of this source tree.
168 */const Cj=me("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
169 * @license lucide-react v0.462.0 - ISC
170 *
171 * This source code is licensed under the ISC license.
172 * See the LICENSE file in the root directory of this source tree.
173 */const cN=me("GraduationCap",[["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"}]]);/**
174 * @license lucide-react v0.462.0 - ISC
175 *
176 * This source code is licensed under the ISC license.
177 * See the LICENSE file in the root directory of this source tree.
178 */const _j=me("HandHeart",[["path",{d:"M11 14h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16",key:"1ifwr1"}],["path",{d:"m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"17abbs"}],["path",{d:"m2 15 6 6",key:"10dquu"}],["path",{d:"M19.5 8.5c.7-.7 1.5-1.6 1.5-2.7A2.73 2.73 0 0 0 16 4a2.78 2.78 0 0 0-5 1.8c0 1.2.8 2 1.5 2.8L16 12Z",key:"1h3036"}]]);/**
179 * @license lucide-react v0.462.0 - ISC
180 *
181 * This source code is licensed under the ISC license.
182 * See the LICENSE file in the root directory of this source tree.
183 */const gd=me("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
184 * @license lucide-react v0.462.0 - ISC
185 *
186 * This source code is licensed under the ISC license.
187 * See the LICENSE file in the root directory of this source tree.
188 */const Mv=me("Instagram",[["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"}]]);/**
189 * @license lucide-react v0.462.0 - ISC
190 *
191 * This source code is licensed under the ISC license.
192 * See the LICENSE file in the root directory of this source tree.
193 */const Ov=me("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
194 * @license lucide-react v0.462.0 - ISC
195 *
196 * This source code is licensed under the ISC license.
197 * See the LICENSE file in the root directory of this source tree.
198 */const vh=me("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
199 * @license lucide-react v0.462.0 - ISC
200 *
201 * This source code is licensed under the ISC license.
202 * See the LICENSE file in the root directory of this source tree.
203 */const jj=me("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
204 * @license lucide-react v0.462.0 - ISC
205 *
206 * This source code is licensed under the ISC license.
207 * See the LICENSE file in the root directory of this source tree.
208 */const uN=me("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
209 * @license lucide-react v0.462.0 - ISC
210 *
211 * This source code is licensed under the ISC license.
212 * See the LICENSE file in the root directory of this source tree.
213 */const yh=me("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
214 * @license lucide-react v0.462.0 - ISC
215 *
216 * This source code is licensed under the ISC license.
217 * See the LICENSE file in the root directory of this source tree.
218 */const dN=me("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
219 * @license lucide-react v0.462.0 - ISC
220 *
221 * This source code is licensed under the ISC license.
222 * See the LICENSE file in the root directory of this source tree.
223 */const Sj=me("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
224 * @license lucide-react v0.462.0 - ISC
225 *
226 * This source code is licensed under the ISC license.
227 * See the LICENSE file in the root directory of this source tree.
228 */const hN=me("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
229 * @license lucide-react v0.462.0 - ISC
230 *
231 * This source code is licensed under the ISC license.
232 * See the LICENSE file in the root directory of this source tree.
233 */const fN=me("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
234 * @license lucide-react v0.462.0 - ISC
235 *
236 * This source code is licensed under the ISC license.
237 * See the LICENSE file in the root directory of this source tree.
238 */const pN=me("PhoneCall",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]]);/**
239 * @license lucide-react v0.462.0 - ISC
240 *
241 * This source code is licensed under the ISC license.
242 * See the LICENSE file in the root directory of this source tree.
243 */const Iv=me("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
244 * @license lucide-react v0.462.0 - ISC
245 *
246 * This source code is licensed under the ISC license.
247 * See the LICENSE file in the root directory of this source tree.
248 */const mN=me("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
249 * @license lucide-react v0.462.0 - ISC
250 *
251 * This source code is licensed under the ISC license.
252 * See the LICENSE file in the root directory of this source tree.
253 */const gN=me("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
254 * @license lucide-react v0.462.0 - ISC
255 *
256 * This source code is licensed under the ISC license.
257 * See the LICENSE file in the root directory of this source tree.
258 */const vN=me("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
259 * @license lucide-react v0.462.0 - ISC
260 *
261 * This source code is licensed under the ISC license.
262 * See the LICENSE file in the root directory of this source tree.
263 */const Dv=me("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}
vendor: 9,108 bytes, lines 263-303
263],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
264 * @license lucide-react v0.462.0 - ISC
265 *
266 * This source code is licensed under the ISC license.
267 * See the LICENSE file in the root directory of this source tree.
268 */const yN=me("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
269 * @license lucide-react v0.462.0 - ISC
270 *
271 * This source code is licensed under the ISC license.
272 * See the LICENSE file in the root directory of this source tree.
273 */const kj=me("Stamp",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M19.27 13.73A2.5 2.5 0 0 0 17.5 13h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1.5c0-.66-.26-1.3-.73-1.77Z",key:"1sy9ra"}],["path",{d:"M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-3-3c-1.66 0-3 1-3 3s1 2 1 3.5V13",key:"cnxgux"}]]);/**
274 * @license lucide-react v0.462.0 - ISC
275 *
276 * This source code is licensed under the ISC license.
277 * See the LICENSE file in the root directory of this source tree.
278 */const bN=me("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
279 * @license lucide-react v0.462.0 - ISC
280 *
281 * This source code is licensed under the ISC license.
282 * See the LICENSE file in the root directory of this source tree.
283 */const xN=me("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
284 * @license lucide-react v0.462.0 - ISC
285 *
286 * This source code is licensed under the ISC license.
287 * See the LICENSE file in the root directory of this source tree.
288 */const Bs=me("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
289 * @license lucide-react v0.462.0 - ISC
290 *
291 * This source code is licensed under the ISC license.
292 * See the LICENSE file in the root directory of this source tree.
293 */const wN=me("Vote",[["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}],["path",{d:"M5 7c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v12H5V7Z",key:"1ezoue"}],["path",{d:"M22 19H2",key:"nuriw5"}]]);/**
294 * @license lucide-react v0.462.0 - ISC
295 *
296 * This source code is licensed under the ISC license.
297 * See the LICENSE file in the root directory of this source tree.
298 */const Tj=me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
299 * @license lucide-react v0.462.0 - ISC
300 *
301 * This source code is licensed under the ISC license.
302 * See the LICENSE file in the root directory of this source tree.
303 */const Lv=me("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),zv="-",CN=e=>{const t=jN(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const l=o.split(zv);return l[0]===""&&l.length!==1&&l.shift(),Ej(l,t)||_N(o)},getConflictingClassGroupIds:(o,l)=>{const c=n[o]||[];return l&&r[o]?[...c,...r[o]]:c}}},Ej=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Ej(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(zv);return(o=t.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},q0=/^\[(.+)\]$/,_N=e=>{if(q0.test(e)){const t=q0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},jN=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return kN(Object.entries(e.classGroups),n).forEach(([i,o])=>{Om(o,r,i,t)}),r},Om=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:K0(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(SN(s)){Om(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Om(o,K0(t,i),n,r)})})},K0=(e,t)=>{let n=e;return t.split(zv).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},SN=e=>e.isThemeGetter,kN=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[t+o,l])):i);return[n,s]}):e,TN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},Nj="!",EN=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=l=>{const c=[];let u=0,d=0,h;for(let w=0;w<l.length;w++){let v=l[w];if(u===0){if(v===s&&(r||l.slice(w,w+i)===t)){c.push(l.slice(d,w)),d=w+i;continue}if(v==="/"){h=w;continue}}v==="["?u++:v==="]"&&u--}const f=c.length===0?l:l.substring(d),p=f.startsWith(Nj),y=p?f.substring(1):f,m=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}};return n?l=>n({className:l,parseClassName:o}):o},NN=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},RN=e=>({cache:TN(e.cacheSize),parseClassName:EN(e),...CN(e)}),AN=/\s+/,PN=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(AN);let l="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:p}=n(u);let y=!!p,m=r(y?f.substring(0,p):f);if(!m){if(!y){l=u+(l.length>0?" "+l:l);continue}if(m=r(f),!m){l=u+(l.length>0?" "+l:l);continue}y=!1}const w=NN(d).join(":"),v=h?w+Nj:w,g=v+m;if(i.includes(g))continue;i.push(g);const x=s(m,y);for(let C=0;C<x.length;++C){const _=x[C];i.push(v+_)}l=u+(l.length>0?" "+l:l)}return l};function $N(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Rj(t))&&(r&&(r+=" "),r+=n);return r}const Rj=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Rj(e[r]))&&(n&&(n+=" "),n+=t);return n};function MN(e,...t){let n,r,s,i=o;function o(c){const u=t.reduce((d,h)=>h(d),e());return n=RN(u),r=n.cache.get,s=n.cache.set,i=l,l(c)}function l(c){const u=r(c);if(u)return u;const d=PN(c,n);return s(c,d),d}return function(){return i($N.apply(null,arguments))}}const Pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Aj=/^\[(?:([a-z-]+):)?(.+)\]$/i,ON=/^\d+\/\d+$/,IN=new Set(["px","full","screen"]),DN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LN=/\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$/,zN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,FN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,UN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Cr=e=>No(e)||IN.has(e)||ON.test(e),ts=e=>la(e,"length",GN),No=e=>!!e&&!Number.isNaN(Number(e)),zf=e=>la(e,"number",No),Ra=e=>!!e&&Number.isInteger(Number(e)),BN=e=>e.endsWith("%")&&No(e.slice(0,-1)),ge=e=>Aj.test(e),ns=e=>DN.test(e),VN=new Set(["length","size","percentage"]),HN=e=>la(e,VN,Pj),WN=e=>la(e,"position",Pj),qN=new Set(["image","url"]),KN=e=>la(e,qN,YN),ZN=e=>la(e,"",JN),Aa=()=>!0,la=(e,t,n)=>{const r=Aj.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},GN=e=>LN.test(e)&&!zN.test(e),Pj=()=>!1,JN=e=>FN.test(e),YN=e=>UN.test(e),QN=()=>{const e=Pe("colors"),t=Pe("spacing"),n=Pe("blur"),r=Pe("brightness"),s=Pe("borderColor"),i=Pe("borderRadius"),o=Pe("borderSpacing"),l=Pe("borderWidth"),c=Pe("contrast"),u=Pe("grayscale"),d=Pe("hueRotate"),h=Pe("invert"),f=Pe("gap"),p=Pe("gradientColorStops"),y=Pe("gradientColorStopPositions"),m=Pe("inset"),w=Pe("margin"),v=Pe("opacity"),g=Pe("padding"),x=Pe("saturate"),C=Pe("scale"),_=Pe("sepia"),S=Pe("skew"),j=Pe("space"),k=Pe("translate"),T=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",ge,t],O=()=>[ge,t],W=()=>["",Cr,ts],L=()=>["auto",No,ge],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",ge],A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[No,ge];return{cacheSize:500,separator:":",theme:{colors:[Aa],spacing:[Cr,ts],blur:["none","",ns,ge],brightness:Z(),borderColor:[e],borderRadius:["n
303one","","full",ns,ge],borderSpacing:O(),borderWidth:W(),contrast:Z(),grayscale:P(),hueRotate:Z(),invert:P(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[BN,ts],inset:D(),margin:D(),opacity:Z(),padding:O(),saturate:Z(),scale:Z(),sepia:P(),skew:Z(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[ns]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),ge]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ra,ge]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Ra,ge]}],"grid-cols":[{"grid-cols":[Aa]}],"col-start-end":[{col:["auto",{span:["full",Ra,ge]},ge]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Aa]}],"row-start-end":[{row:["auto",{span:[Ra,ge]},ge]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ge,t]}],"min-w":[{"min-w":[ge,t,"min","max","fit"]}],"max-w":[{"max-w":[ge,t,"none","full","min","max","fit","prose",{screen:[ns]},ns]}],h:[{h:[ge,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ns,ts]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",zf]}],"font-family":[{font:[Aa]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ge]}],"line-clamp":[{"line-clamp":["none",No,zf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Cr,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Cr,ts]}],"underline-offset":[{"underline-offset":["auto",Cr,ge]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),WN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",HN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},KN]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}
vendor: 4,885 bytes, line 303
303],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:B()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Cr,ge]}],"outline-w":[{outline:[Cr,ts]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Cr,ts]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ns,ZN]}],"shadow-color":[{shadow:[Aa]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ns,ge]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[x]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ra,ge]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}
vendor: 4,942 bytes, line 303
303],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Cr,ts,zf]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},XN=MN(QN);function Ce(...e){return XN(gj(e))}const eR=XE,$j=b.forwardRef(({className:e,...t},n)=>a.jsx(cj,{ref:n,className:Ce("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]",e),...t}));$j.displayName=cj.displayName;const tR=Pv("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"}}),Mj=b.forwardRef(({className:e,variant:t,...n},r)=>a.jsx(uj,{ref:r,className:Ce(tR({variant:t}),e),...n}));Mj.displayName=uj.displayName;const nR=b.forwardRef(({className:e,...t},n)=>a.jsx(fj,{ref:n,className:Ce("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));nR.displayName=fj.displayName;const Oj=b.forwardRef(({className:e,...t},n)=>a.jsx(pj,{ref:n,className:Ce("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 13,149 bytes, line 303
303/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:a.jsx(Tj,{className:"h-4 w-4"})}));Oj.displayName=pj.displayName;const Ij=b.forwardRef(({className:e,...t},n)=>a.jsx(dj,{ref:n,className:Ce("text-sm font-semibold",e),...t}));Ij.displayName=dj.displayName;const Dj=b.forwardRef(({className:e,...t},n)=>a.jsx(hj,{ref:n,className:Ce("text-sm opacity-90",e),...t}));Dj.displayName=hj.displayName;function rR(){const{toasts:e}=cE();return a.jsxs(eR,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return a.jsxs(Mj,{...i,children:[a.jsxs("div",{className:"grid gap-1",children:[n&&a.jsx(Ij,{children:n}),r&&a.jsx(Dj,{children:r})]}),s,a.jsx(Oj,{})]},t)}),a.jsx($j,{})]})}var sR=Pg[" useId ".trim().toString()]||(()=>{}),iR=0;function ca(e){const[t,n]=b.useState(sR());return dt(()=>{n(r=>r??String(iR++))},[e]),t?`radix-${t}`:""}const oR=["top","right","bottom","left"],Ms=Math.min,Zt=Math.max,vd=Math.round,qc=Math.floor,hr=e=>({x:e,y:e}),aR={left:"right",right:"left",bottom:"top",top:"bottom"},lR={start:"end",end:"start"};function Im(e,t,n){return Zt(e,Ms(t,n))}function Vr(e,t){return typeof e=="function"?e(t):e}function Hr(e){return e.split("-")[0]}function ua(e){return e.split("-")[1]}function Fv(e){return e==="x"?"y":"x"}function Uv(e){return e==="y"?"height":"width"}const cR=new Set(["top","bottom"]);function cr(e){return cR.has(Hr(e))?"y":"x"}function Bv(e){return Fv(cr(e))}function uR(e,t,n){n===void 0&&(n=!1);const r=ua(e),s=Bv(e),i=Uv(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=yd(o)),[o,yd(o)]}function dR(e){const t=yd(e);return[Dm(e),t,Dm(t)]}function Dm(e){return e.replace(/start|end/g,t=>lR[t])}const Z0=["left","right"],G0=["right","left"],hR=["top","bottom"],fR=["bottom","top"];function pR(e,t,n){switch(e){case"top":case"bottom":return n?t?G0:Z0:t?Z0:G0;case"left":case"right":return t?hR:fR;default:return[]}}function mR(e,t,n,r){const s=ua(e);let i=pR(Hr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Dm)))),i}function yd(e){return e.replace(/left|right|bottom|top/g,t=>aR[t])}function gR(e){return{top:0,right:0,bottom:0,left:0,...e}}function Lj(e){return typeof e!="number"?gR(e):{top:e,right:e,bottom:e,left:e}}function bd(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function J0(e,t,n){let{reference:r,floating:s}=e;const i=cr(t),o=Bv(t),l=Uv(o),c=Hr(t),u=i==="y",d=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,f=r[l]/2-s[l]/2;let p;switch(c){case"top":p={x:d,y:r.y-s.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-s.width,y:h};break;default:p={x:r.x,y:r.y}}switch(ua(t)){case"start":p[o]-=f*(n&&u?-1:1);break;case"end":p[o]+=f*(n&&u?-1:1);break}return p}const vR=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=J0(u,r,c),f=r,p={},y=0;for(let m=0;m<l.length;m++){const{name:w,fn:v}=l[m],{x:g,y:x,data:C,reset:_}=await v({x:d,y:h,initialPlacement:r,placement:f,strategy:s,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});d=g??d,h=x??h,p={...p,[w]:{...p[w],...C}},_&&y<=50&&(y++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(u=_.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):_.rects),{x:d,y:h}=J0(u,f,c)),m=-1)}return{x:d,y:h,placement:f,strategy:s,middlewareData:p}};async function Ml(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=Vr(t,e),y=Lj(p),w=l[f?h==="floating"?"reference":"floating":h],v=bd(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),g=h==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),C=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},_=bd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:x,strategy:c}):g);return{top:(v.top-_.top+y.top)/C.y,bottom:(_.bottom-v.bottom+y.bottom)/C.y,left:(v.left-_.left+y.left)/C.x,right:(_.right-v.right+y.right)/C.x}}const yR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=Vr(e,t)||{};if(u==null)return{};const h=Lj(d),f={x:n,y:r},p=Bv(s),y=Uv(p),m=await o.getDimensions(u),w=p==="y",v=w?"top":"left",g=w?"bottom":"right",x=w?"clientHeight":"clientWidth",C=i.reference[y]+i.reference[p]-f[p]-i.floating[y],_=f[p]-i.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let j=S?S[x]:0;(!j||!await(o.isElement==null?void 0:o.isElement(S)))&&(j=l.floating[x]||i.floating[y]);const k=C/2-_/2,T=j/2-m[y]/2-1,R=Ms(h[v],T),D=Ms(h[g],T),O=R,W=j-m[y]-D,L=j/2-m[y]/2+k,J=Im(O,L,W),B=!c.arrow&&ua(s)!=null&&L!==J&&i.reference[y]/2-(L<O?R:D)-m[y]/2<0,V=B?L<O?L-O:L-W:0;return{[p]:f[p]+V,data:{[p]:J,centerOffset:L-J-V,...B&&{alignmentOffset:V}},reset:B}}}),bR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:m=!0,...w}=Vr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Hr(s),g=cr(l),x=Hr(l)===l,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),_=f||(x||!m?[yd(l)]:dR(l)),S=y!=="none";!f&&S&&_.push(...mR(l,m,y,C));const j=[l,..._],k=await Ml(t,w),T=[];let R=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&T.push(k[v]),h){const L=uR(s,o,C);T.push(k[L[0]],k[L[1]])}if(R=[...R,{placement:s,overflows:T}],!T.every(L=>L<=0)){var D,O;const L=(((D=i.flip)==null?void 0:D.index)||0)+1,J=j[L];if(J&&(!(h==="alignment"?g!==cr(J):!1)||R.every(N=>N.overflows[0]>0&&cr(N.placement)===g)))return{data:{index:L,overflows:R},reset:{placement:J}};let B=(O=R.filter(V=>V.overflows[0]<=0).sort((V,N)=>V.overflows[1]-N.overflows[1])[0])==null?void 0:O.placement;if(!B)switch(p){case"bestFit":{var W;const V=(W=R.filter(N=>{if(S){const P=cr(N.placement);return P===g||P==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(P=>P>0).reduce((P,A)=>P+A,0)]).sort((N,P)=>N[1]-P[1])[0])==null?void 0:W[0];V&&(B=V);break}case"initialPlacement":B=l;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function Y0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Q0(e){return oR.some(t=>e[t]>=0)}const xR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Vr(e,t);switch(r){case"referenceHidden":{const i=await Ml(t,{...s,elementContext:"reference"}),o=Y0(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Q0(o)}}}case"escaped":{const i=await Ml(t,{...s,altBoundary:!0}),o=Y0(i,n.floating);return{data:{escapedOffsets:o,escaped:Q0(o)}}}default:return{}}}}},zj=new Set(["left","top"]);async function wR(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Hr(n),l=ua(n),c=cr(n)==="y",u=zj.has(o)?-1:1,d=i&&c?-1:1,h=Vr(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof y=="number"&&(p=l==="end"?y*-1:y),c?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const CR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:l}=t,c=await wR(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},_R=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:w=>{let{x:v,y:g}=w;return{x:v,y:g}}},...c}=Vr(e,t),u={x:n,y:r},d=await Ml(t,c),h=cr(Hr(s)),f=Fv(h);let p=u[f],y=u[h];if(i){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",g=p+d[w],x=p-d[v];p=Im(g,p,x)}if(o){const w=h==="y"?"top":"left",v=h==="y"?"bottom":"right",g=y+d[w],x=y-d[v];y=Im(g,y,x)}const m=l.fn({...t,[f]:p,[h]:y});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[h]:o}}}}}},jR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Vr(e,t),d={x:n,y:r},h=cr(s),f=Fv(h);let p=d[f],y=d[h];const m=Vr(l,t),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const x=f==="y"?"height":"width",C=i.reference[f]-i.floating[x]+w.mainAxis,_=i.reference[f]+i.reference[x]-w.mainAxis;p<C?p=C:p>_&&(p=_)}if(u){var v,g;const x=f==="y"?"width":"height",C=zj.has(Hr(s)),_=i.reference[h]-i.floating[x]+(C&&((v=o.offset)==null?void 0:v[h])||0)+(C?0:w.crossAxis),S=i.reference[h]+i.reference[x]+(C?0:((g=o.offset)==null?void 0:g[h])||0)-(C?w.crossAxis:0);y<_?y=_:y>S&&(y=S)}return{[f]:p,[h]:y}}}},SR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:l}=t,{apply:c=()=>{},...u}=Vr(e,t),d=await Ml(t,u),h=Hr(s),f=ua(s),p=cr(s)==="y",{width:y,height:m}=i.floating;let w,v;h==="top"||h==="bottom"?(w=h,v=f===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(v=h,w=f==="end"?"top":"bottom");const g=m-d.top-d.bottom,x=y-d.left-d.right,C=Ms(m-d[w],g),_=Ms(y-d[v],x),S=!t.middlewareData.shift;let j=C,k=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=g),S&&!f){const R=Zt(d.left,0),D=Zt(d.right,0),O=Zt(d.top,0),W=Zt(d.bottom,0);p?k=y-2*(R!==0||D!==0?R+D:Zt(d.left,d.right)):j=m-2*(O!==0||W!==0?O+W:Zt(d.top,d.bottom))}await c({...t,availableWidth:k,availableHeight:j});const T=await o.getDimensions(l.floating);return y!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}};function bh(){return typeof window<"u"}function da(e){return Fj(e)?(e.nodeName||"").toLowerCase():"#document"}function Qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vr(e){var t;return(t=(Fj(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fj(e){return bh()?e instanceof Node||e instanceof Qt(e).Node:!1}function qn(e){return bh()?e instanceof Element||e instanceof Qt(e).Element:!1}function gr(e){return bh()?e instanceof HTMLElement||e instanceof Qt(e).HTMLElement:!1}function X0(e){return!bh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qt(e).ShadowRoot}const kR=new Set(["inline","contents"]);function uc(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Kn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!kR.has(s)}const TR=new Set(["table","td","th"]);function ER(e){return TR.has(da(e))}const NR=[":popover-open",":modal"];function xh(e){return NR.some(t=>{try{return e.matches(t)}catch{return!1}})}const RR=["transform","translate","scale","rotate","perspective"],AR=["transform","translate","scale","rotate","perspective","filter"],PR=["paint","layout","strict","content"];function Vv(e){const t=Hv(),n=qn(e)?Kn(e):e;return RR.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||AR.some(r=>(n.willChange||"").includes(r))||PR.some(r=>(n.contain||"").includes(r))}function $R(e){let t=Os(e);for(;gr(t)&&!Jo(t);){if(Vv(t))return t;if(xh(t))return null;t=Os(t)}return null}function Hv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const MR=new Set(["html","body","#document"]);function Jo(e){return MR.has(da(e))}function Kn(e){return Qt(e).getComputedStyle(e)}function wh(e){return qn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Os(e){if(da(e)==="html")return e;const t=e.assignedSlot||e.parentNode||X0(e)&&e.host||vr(e);return X0(t)?t.host:t}function Uj(e){const t=Os(e);return Jo(t)?e.ownerDocument?e.ownerDocument.body:e.body:gr(t)&&uc(t)?t:Uj(t)}function Ol(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Uj(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Qt(s);if(i){const l=Lm(o);
vendor: 4,772 bytes, line 303
303return t.concat(o,o.visualViewport||[],uc(s)?s:[],l&&n?Ol(l):[])}return t.concat(s,Ol(s,[],n))}function Lm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bj(e){const t=Kn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=gr(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,l=vd(n)!==i||vd(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function Wv(e){return qn(e)?e:e.contextElement}function Ro(e){const t=Wv(e);if(!gr(t))return hr(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Bj(t);let o=(i?vd(n.width):n.width)/r,l=(i?vd(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const OR=hr(0);function Vj(e){const t=Qt(e);return!Hv()||!t.visualViewport?OR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function IR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qt(e)?!1:t}function Si(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Wv(e);let o=hr(1);t&&(r?qn(r)&&(o=Ro(r)):o=Ro(e));const l=IR(i,n,r)?Vj(i):hr(0);let c=(s.left+l.x)/o.x,u=(s.top+l.y)/o.y,d=s.width/o.x,h=s.height/o.y;if(i){const f=Qt(i),p=r&&qn(r)?Qt(r):r;let y=f,m=Lm(y);for(;m&&r&&p!==y;){const w=Ro(m),v=m.getBoundingClientRect(),g=Kn(m),x=v.left+(m.clientLeft+parseFloat(g.paddingLeft))*w.x,C=v.top+(m.clientTop+parseFloat(g.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,h*=w.y,c+=x,u+=C,y=Qt(m),m=Lm(y)}}return bd({width:d,height:h,x:c,y:u})}function qv(e,t){const n=wh(e).scrollLeft;return t?t.left+n:Si(vr(e)).left+n}function Hj(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:qv(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function DR(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=vr(r),l=t?xh(t.floating):!1;if(r===o||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=hr(1);const d=hr(0),h=gr(r);if((h||!h&&!i)&&((da(r)!=="body"||uc(o))&&(c=wh(r)),gr(r))){const p=Si(r);u=Ro(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=o&&!h&&!i?Hj(o,c,!0):hr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-c.scrollTop*u.y+d.y+f.y}}function LR(e){return Array.from(e.getClientRects())}function zR(e){const t=vr(e),n=wh(e),r=e.ownerDocument.body,s=Zt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Zt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+qv(e);const l=-n.scrollTop;return Kn(r).direction==="rtl"&&(o+=Zt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:l}}function FR(e,t){const n=Qt(e),r=vr(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,c=0;if(s){i=s.width,o=s.height;const u=Hv();(!u||u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:l,y:c}}const UR=new Set(["absolute","fixed"]);function BR(e,t){const n=Si(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=gr(e)?Ro(e):hr(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,c=s*i.x,u=r*i.y;return{width:o,height:l,x:c,y:u}}function eb(e,t,n){let r;if(t==="viewport")r=FR(e,n);else if(t==="document")r=zR(vr(e));else if(qn(t))r=BR(t,n);else{const s=Vj(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return bd(r)}function Wj(e,t){const n=Os(e);return n===t||!qn(n)||Jo(n)?!1:Kn(n).position==="fixed"||Wj(n,t)}function VR(e,t){const n=t.get(e);if(n)return n;let r=Ol(e,[],!1).filter(l=>qn(l)&&da(l)!=="body"),s=null;const i=Kn(e).position==="fixed";let o=i?Os(e):e;for(;qn(o)&&!Jo(o);){const l=Kn(o),c=Vv(o);!c&&l.position==="fixed"&&(s=null),(i?!c&&!s:!c&&l.position==="static"&&!!s&&UR.has(s.position)||uc(o)&&!c&&Wj(e,o))?r=r.filter(d=>d!==o):s=l,o=Os(o)}return t.set(e,r),r}function HR(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?xh(t)?[]:VR(t,this._c):[].concat(n),r],l=o[0],c=o.reduce((u,d)=>{const h=eb(t,d,s);return u.top=Zt(h.top,u.top),u.right=Ms(h.right,u.right),u.bottom=Ms(h.bottom,u.bottom),u.left=Zt(h.left,u.left),u},eb(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function WR(e){const{width:t,height:n}=Bj(e);return{width:t,height:n}}function qR(e,t,n){const r=gr(t),s=vr(t),i=n==="fixed",o=Si(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=hr(0);function u(){c.x=qv(s)}if(r||!r&&!i)if((da(t)!=="body"||uc(s))&&(l=wh(t)),r){const p=Si(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else s&&u();i&&!r&&s&&u();const d=s&&!r&&!i?Hj(s,l):hr(0),h=o.left+l.scrollLeft-c.x-d.x,f=o.top+l.scrollTop-c.y-d.y;return{x:h,y:f,width:o.width,height:o.height}}function Ff(e){return Kn(e).position==="static"}function tb(e,t){if(!gr(e)||Kn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return vr(e)===n&&(n=n.ownerDocument.body),n}function qj(e,t){const n=Qt(e);
vendor: 10,977 bytes, line 303
303if(xh(e))return n;if(!gr(e)){let s=Os(e);for(;s&&!Jo(s);){if(qn(s)&&!Ff(s))return s;s=Os(s)}return n}let r=tb(e,t);for(;r&&ER(r)&&Ff(r);)r=tb(r,t);return r&&Jo(r)&&Ff(r)&&!Vv(r)?n:r||$R(e)||n}const KR=async function(e){const t=this.getOffsetParent||qj,n=this.getDimensions,r=await n(e.floating);return{reference:qR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ZR(e){return Kn(e).direction==="rtl"}const GR={convertOffsetParentRelativeRectToViewportRelativeRect:DR,getDocumentElement:vr,getClippingRect:HR,getOffsetParent:qj,getElementRects:KR,getClientRects:LR,getDimensions:WR,getScale:Ro,isElement:qn,isRTL:ZR};function Kj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function JR(e,t){let n=null,r;const s=vr(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:h,width:f,height:p}=u;if(l||t(),!f||!p)return;const y=qc(h),m=qc(s.clientWidth-(d+f)),w=qc(s.clientHeight-(h+p)),v=qc(d),x={rootMargin:-y+"px "+-m+"px "+-w+"px "+-v+"px",threshold:Zt(0,Ms(1,c))||1};let C=!0;function _(S){const j=S[0].intersectionRatio;if(j!==c){if(!C)return o();j?o(!1,j):r=setTimeout(()=>{o(!1,1e-7)},1e3)}j===1&&!Kj(u,e.getBoundingClientRect())&&o(),C=!1}try{n=new IntersectionObserver(_,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return o(!0),i}function YR(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Wv(e),d=s||i?[...u?Ol(u):[],...Ol(t)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const h=u&&l?JR(u,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(v=>{let[g]=v;g&&g.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let y,m=c?Si(e):null;c&&w();function w(){const v=Si(e);m&&!Kj(m,v)&&n(),m=v,y=requestAnimationFrame(w)}return n(),()=>{var v;d.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),h==null||h(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(y)}}const QR=CR,XR=_R,eA=bR,tA=SR,nA=xR,nb=yR,rA=jR,sA=(e,t,n)=>{const r=new Map,s={platform:GR,...n},i={...s.platform,_c:r};return vR(e,t,{...s,platform:i})};var iA=typeof document<"u",oA=function(){},Pu=iA?b.useLayoutEffect:oA;function xd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!xd(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!xd(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Zj(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rb(e,t){const n=Zj(e);return Math.round(t*n)/n}function Uf(e){const t=b.useRef(e);return Pu(()=>{t.current=e}),t}function aA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=b.useState(r);xd(f,r)||p(r);const[y,m]=b.useState(null),[w,v]=b.useState(null),g=b.useCallback(N=>{N!==S.current&&(S.current=N,m(N))},[]),x=b.useCallback(N=>{N!==j.current&&(j.current=N,v(N))},[]),C=i||y,_=o||w,S=b.useRef(null),j=b.useRef(null),k=b.useRef(d),T=c!=null,R=Uf(c),D=Uf(s),O=Uf(u),W=b.useCallback(()=>{if(!S.current||!j.current)return;const N={placement:t,strategy:n,middleware:f};D.current&&(N.platform=D.current),sA(S.current,j.current,N).then(P=>{const A={...P,isPositioned:O.current!==!1};L.current&&!xd(k.current,A)&&(k.current=A,$i.flushSync(()=>{h(A)}))})},[f,t,n,D,O]);Pu(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,h(N=>({...N,isPositioned:!1})))},[u]);const L=b.useRef(!1);Pu(()=>(L.current=!0,()=>{L.current=!1}),[]),Pu(()=>{if(C&&(S.current=C),_&&(j.current=_),C&&_){if(R.current)return R.current(C,_,W);W()}},[C,_,W,R,T]);const J=b.useMemo(()=>({reference:S,floating:j,setReference:g,setFloating:x}),[g,x]),B=b.useMemo(()=>({reference:C,floating:_}),[C,_]),V=b.useMemo(()=>{const N={position:n,left:0,top:0};if(!B.floating)return N;const P=rb(B.floating,d.x),A=rb(B.floating,d.y);return l?{...N,transform:"translate("+P+"px, "+A+"px)",...Zj(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:A}},[n,l,B.floating,d.x,d.y]);return b.useMemo(()=>({...d,update:W,refs:J,elements:B,floatingStyles:V}),[d,W,J,B,V])}const lA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?nb({element:r.current,padding:s}).fn(n):{}:r?nb({element:r,padding:s}).fn(n):{}}}},cA=(e,t)=>({...QR(e),options:[e,t]}),uA=(e,t)=>({...XR(e),options:[e,t]}),dA=(e,t)=>({...rA(e),options:[e,t]}),hA=(e,t)=>({...eA(e),options:[e,t]}),fA=(e,t)=>({...tA(e),options:[e,t]}),pA=(e,t)=>({...nA(e),options:[e,t]}),mA=(e,t)=>({...lA(e),options:[e,t]});var gA="Arrow",Gj=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return a.jsx(pe.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gj.displayName=gA;var vA=Gj;function Kv(e){const[t,n]=b.useState(void 0);return dt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,l=u.blockSize}else o=e.offsetWidth,l=e.offsetHeight;n({width:o,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Zv="Popper",[Jj,Ch]=Gn(Zv),[yA,Yj]=Jj(Zv),Qj=e=>{const{__scopePopper:t,children:n}=e,[r,s]=b.useState(null);return a.jsx(yA,{scope:t,anchor:r,onAnchorChange:s,children:n})};Qj.displayName=Zv;var Xj="PopperAnchor",e3=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=Yj(Xj,n),o=b.useRef(null),l=Se(t,o);return b.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:a.jsx(pe.div,{...s,ref:l})});e3.displayName=Xj;var Gv="PopperContent",[bA,xA]=Jj(Gv),t3=b.forwardRef((e,t)=>{var U,le,xe,ue,X,F;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:y,...m}=e,w=Yj(Gv,n),[v,g]=b.useState(null),x=Se(t,de=>g(de)),[C,_]=b.useState(null),S=Kv(C),j=(S==null?void 0:S.width)??0,k=(S==null?void 0:S.height)??0,T=r+(i!=="center"?"-"+i:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(u)?u:[u],O=D.length>0,W={padding:R,boundary:D.filter(CA),altBoundary:O},{refs:L,floatingStyles:J,placement:B,isPositioned:V,middlewareData:N}=aA({strategy:"fixed",placement:T,whileElementsMounted:(...de)=>YR(...de,{animationFrame:p==="always"}),elements:{reference:w.anchor},middleware:[cA({mainAxis:s+k,alignmentAxis:o}),c&&uA({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?dA():void 0,...W}),c&&hA({...W}),fA({...W,apply:({elements:de,rects:ye,availableWidth:Le,availableHeight:rt})=>{const{width:ht,height:Wt}=ye.reference,Nt=de.floating.style;Nt.setProperty("--radix-popper-available-width",`${Le}px`),Nt.setProperty("--radix-popper-available-height",`${rt}px`),Nt.setProperty("--radix-popper-anchor-width",`${ht}px`),Nt.setProperty("--radix-popper-anchor-height",`${Wt}px`)}}),C&&mA({element:C,padding:l}),_A({arrowWidth:j,arrowHeight:k}),f&&pA({strategy:"referenceHidden",...W})]}),[P,A]=s3(B),Z=gn(y);dt(()=>{V&&(Z==null||Z())},[V,Z]);const K=(U=N.arrow)==null?void 0:U.x,se=(le=N.arrow)==null?void 0:le.y,ee=((xe=N.arrow)==null?void 0:xe.centerOffset)!==0,[_e,Te]=b.useState();return dt(()=>{v&&Te(window.getComputedStyle(v).zIndex)},[v]),a.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:V?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[(ue=N.transformOrigin)==null?void 0:ue.x,(X=N.transformOrigin)==null?void 0:X.y].join(" "),...((F=N.hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(bA,{scope:n,placedSide:P,onArrowChange:_,arrowX:K,arrowY:se,shouldHideArrow:ee,children:a.jsx(pe.div,{"data-side":P,"data-align":A,...m,ref:x,style:{...m.style,animation:V?void 0:"none"}})})})});t3.displayName=Gv;var n3="PopperArrow",wA={top:"bottom",right:"left",bottom:"top",left:"right"},r3=b.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=xA(n3,r),o=wA[i.placedSide];return a.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:a.jsx(vA,{...s,ref:n,style:{...s.style,display:"block"}})})});r3.displayName=n3;function CA(e){return e!==null}var _A=e=>({name:"transformOrigin",options:e,fn(t){var w,v,g;const{placement:n,rects:r,middlewareData:s}=t,o=((w=s.arrow)==null?void 0:w.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=s3(n),h={start:"0%",center:"50%",end:"100%"}[d],f=(((v=s.arrow)==null?void 0:v.x)??0)+l/2,p=(((g=s.arrow)==null?void 0:g.y)??0)+c/2;let y="",m="";return u==="bottom"?(y=o?h:`${f}px`,m=`${-c}px`):u==="top"?(y=o?h:`${f}px`,m=`${r.floating.height+c}px`):u==="right"?(y=`${-c}px`,m=o?h:`${p}px`):u==="left"&&(y=`${r.floating.width+c}px`,m=o?h:`${p}px`),{data:{x:y,y:m}}}});function s3(e){const[t,n="center"]=e.split("-");return[t,n]}var jA=Qj,i3=e3,o3=t3,a3=r3,[_h,sge]=Gn("Tooltip",[Ch]),Jv=Ch(),l3="TooltipProvider",SA=700,sb="tooltip.open",[kA,c3]=_h(l3),u3=e=>{const{__scopeTooltip:t,delayDuration:n=SA,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=b.useRef(!0),l=b.useRef(!1),c=b.useRef(0);return b.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),a.jsx(kA,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 4,667 bytes, line 303
303o.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:b.useCallback(u=>{l.current=u},[]),disableHoverableContent:s,children:i})};u3.displayName=l3;var d3="Tooltip",[ige,jh]=_h(d3),zm="TooltipTrigger",TA=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=jh(zm,n),i=c3(zm,n),o=Jv(n),l=b.useRef(null),c=Se(t,l,s.onTriggerChange),u=b.useRef(!1),d=b.useRef(!1),h=b.useCallback(()=>u.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),a.jsx(i3,{asChild:!0,...o,children:a.jsx(pe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:re(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:re(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:re(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:re(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:re(e.onBlur,s.onClose),onClick:re(e.onClick,s.onClose)})})});TA.displayName=zm;var EA="TooltipPortal",[oge,NA]=_h(EA,{forceMount:void 0}),Yo="TooltipContent",h3=b.forwardRef((e,t)=>{const n=NA(Yo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=jh(Yo,e.__scopeTooltip);return a.jsx(aa,{present:r||o.open,children:o.disableHoverableContent?a.jsx(f3,{side:s,...i,ref:t}):a.jsx(RA,{side:s,...i,ref:t})})}),RA=b.forwardRef((e,t)=>{const n=jh(Yo,e.__scopeTooltip),r=c3(Yo,e.__scopeTooltip),s=b.useRef(null),i=Se(t,s),[o,l]=b.useState(null),{trigger:c,onClose:u}=n,d=s.current,{onPointerInTransitChange:h}=r,f=b.useCallback(()=>{l(null),h(!1)},[h]),p=b.useCallback((y,m)=>{const w=y.currentTarget,v={x:y.clientX,y:y.clientY},g=OA(v,w.getBoundingClientRect()),x=IA(v,g),C=DA(m.getBoundingClientRect()),_=zA([...x,...C]);l(_),h(!0)},[h]);return b.useEffect(()=>()=>f(),[f]),b.useEffect(()=>{if(c&&d){const y=w=>p(w,d),m=w=>p(w,c);return c.addEventListener("pointerleave",y),d.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",m)}}},[c,d,p,f]),b.useEffect(()=>{if(o){const y=m=>{const w=m.target,v={x:m.clientX,y:m.clientY},g=(c==null?void 0:c.contains(w))||(d==null?void 0:d.contains(w)),x=!LA(v,o);g?f():x&&(f(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[c,d,o,u,f]),a.jsx(f3,{...e,ref:i})}),[AA,PA]=_h(d3,{isInside:!1}),$A=fE("TooltipContent"),f3=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=e,c=jh(Yo,n),u=Jv(n),{onClose:d}=c;return b.useEffect(()=>(document.addEventListener(sb,d),()=>document.removeEventListener(sb,d)),[d]),b.useEffect(()=>{if(c.trigger){const h=f=>{const p=f.target;p!=null&&p.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),a.jsx(ph,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:a.jsxs(o3,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.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:[a.jsx($A,{children:r}),a.jsx(AA,{scope:n,isInside:!0,children:a.jsx(OE,{id:c.contentId,role:"tooltip",children:s||r})})]})})});h3.displayName=Yo;var p3="TooltipArrow",MA=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Jv(n);return PA(p3,n).isInside?null:a.jsx(a3,{...s,...r,ref:t})});MA.displayName=p3;function OA(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function IA(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function DA(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function LA(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;
303o=i++){const l=t[i],c=t[o],u=l.x,d=l.y,h=c.x,f=c.y;d>r!=f>r&&n<(h-u)*(r-d)/(f-d)+u&&(s=!s)}return s}function zA(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),FA(t)}function FA(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var UA=u3,m3=h3;const BA=UA,VA=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(m3,{ref:r,sideOffset:t,className:Ce("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));VA.displayName=m3.displayName;const HA=Pv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",gold:"bg-gold text-gold-foreground hover:bg-gold/90 font-semibold rounded-full shadow-md hover:shadow-lg transition-all","outline-navy":"border-2 border-navy text-navy hover:bg-navy hover:text-navy-foreground rounded-full font-semibold transition-all"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ce=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?dE:"button";return a.jsx(o,{className:Ce(HA({variant:t,size:n,className:e})),ref:i,...s})});ce.displayName="Button";function WA(e){return Object.prototype.toString.call(e)==="[object Object]"}function ib(e){return WA(e)||Array.isArray(e)}function qA(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Yv(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const l=e[o],c=t[o];return typeof l=="function"?`${l}`==`${c}`:!ib(l)||!ib(c)?l===c:Yv(l,c)})}function ob(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function KA(e,t){if(e.length!==t.length)return!1;const n=ob(e),r=ob(t);return n.every((s,i)=>{const o=r[i];return Yv(s,o)})}function Qv(e){return typeof e=="number"}function Fm(e){return typeof e=="string"}function Sh(e){return typeof e=="boolean"}function ab(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ue(e){return Math.abs(e)}function Xv(e){return Math.sign(e)}function rl(e,t){return Ue(e-t)}function ZA(e,t){if(e===0||t===0||Ue(e)<=Ue(t))return 0;const n=rl(Ue(e),Ue(t));return Ue(n/e)}function GA(e){return Math.round(e*100)/100}function Il(e){return Dl(e).map(Number)}function Hn(e){return e[dc(e)]}function dc(e){return Math.max(0,e.length-1)}function ey(e,t){return t===dc(e)}function lb(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Dl(e){return Object.keys(e)}function g3(e,t){return[e,t].reduce((n,r)=>(Dl(r).forEach(s=>{const i=n[s],o=r[s],l=ab(i)&&ab(o);n[s]=l?g3(i,o):o}),n),{})}function Um(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function JA(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(c){return i(c)/2}function i(c){return t-c}function o(c,u){return Fm(e)?n[e](c):e(t,c,u)}return{measure:o}}function Ll(){let e=[];function t(s,i,o,l={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(i,o,l),c=()=>s.removeEventListener(i,o,l);else{const u=s;u.addListener(o),c=()=>u.removeListener(o)}return e.push(c),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function YA(e,t,n,r){const s=Ll(),i=1e3/60;let o=null,l=0,c=0;function u(){s.add(e,"visibilitychange",()=>{e.hidden&&y()})}function d(){p(),s.clear()}function h(w){if(!c)return;o||(o=w,n(),n());const v=w-o;for(o=w,l+=v;l>=i;)n(),l-=i;const g=l/i;r(g),c&&(c=t.requestAnimationFrame(h))}function f(){c||(c=t.requestAnimationFrame(h))}function p(){t.cancelAnimationFrame(c),o=null,l=0,c=0}function y(){o=null,l=0}return{init:u,destroy:d,start:f,stop:p,update:n,render:r}}function QA(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,l=d(),c=h();function u(y){const{height:m,width:w}=y;return r?m:w}function d(){return r?"top":n?"right":"left"}function h(){return r?"bottom":n?"left":"right"}
vendor: 16,506 bytes, line 303
303function f(y){return y*o}return{scroll:s,cross:i,startEdge:l,endEdge:c,measureSize:u,direction:f}}function ki(e=0,t=0){const n=Ue(e-t);function r(u){return u<e}function s(u){return u>t}function i(u){return r(u)||s(u)}function o(u){return i(u)?r(u)?e:t:u}function l(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:l}}function v3(e,t,n){const{constrain:r}=ki(0,e),s=e+1;let i=o(t);function o(f){return n?Ue((s+f)%s):r(f)}function l(){return i}function c(f){return i=o(f),h}function u(f){return d().set(l()+f)}function d(){return v3(e,l(),n)}const h={get:l,set:c,add:u,clone:d};return h}function XA(e,t,n,r,s,i,o,l,c,u,d,h,f,p,y,m,w,v,g){const{cross:x,direction:C}=e,_=["INPUT","SELECT","TEXTAREA"],S={passive:!1},j=Ll(),k=Ll(),T=ki(50,225).constrain(p.measure(20)),R={mouse:300,touch:400},D={mouse:500,touch:600},O=y?43:25;let W=!1,L=0,J=0,B=!1,V=!1,N=!1,P=!1;function A(F){if(!g)return;function de(Le){(Sh(g)||g(F,Le))&&Te(Le)}const ye=t;j.add(ye,"dragstart",Le=>Le.preventDefault(),S).add(ye,"touchmove",()=>{},S).add(ye,"touchend",()=>{}).add(ye,"touchstart",de).add(ye,"mousedown",de).add(ye,"touchcancel",le).add(ye,"contextmenu",le).add(ye,"click",xe,!0)}function Z(){j.clear(),k.clear()}function K(){const F=P?n:t;k.add(F,"touchmove",U,S).add(F,"touchend",le).add(F,"mousemove",U,S).add(F,"mouseup",le)}function se(F){const de=F.nodeName||"";return _.includes(de)}function ee(){return(y?D:R)[P?"mouse":"touch"]}function _e(F,de){const ye=h.add(Xv(F)*-1),Le=d.byDistance(F,!y).distance;return y||Ue(F)<T?Le:w&&de?Le*.5:d.byIndex(ye.get(),0).distance}function Te(F){const de=Um(F,r);P=de,N=y&&de&&!F.buttons&&W,W=rl(s.get(),o.get())>=2,!(de&&F.button!==0)&&(se(F.target)||(B=!0,i.pointerDown(F),u.useFriction(0).useDuration(0),s.set(o),K(),L=i.readPoint(F),J=i.readPoint(F,x),f.emit("pointerDown")))}function U(F){if(!Um(F,r)&&F.touches.length>=2)return le(F);const ye=i.readPoint(F),Le=i.readPoint(F,x),rt=rl(ye,L),ht=rl(Le,J);if(!V&&!P&&(!F.cancelable||(V=rt>ht,!V)))return le(F);const Wt=i.pointerMove(F);rt>m&&(N=!0),u.useFriction(.3).useDuration(.75),l.start(),s.add(C(Wt)),F.preventDefault()}function le(F){const ye=d.byDistance(0,!1).index!==h.get(),Le=i.pointerUp(F)*ee(),rt=_e(C(Le),ye),ht=ZA(Le,rt),Wt=O-10*ht,Nt=v+ht/50;V=!1,B=!1,k.clear(),u.useDuration(Wt).useFriction(Nt),c.distance(rt,!y),P=!1,f.emit("pointerUp")}function xe(F){N&&(F.stopPropagation(),F.preventDefault(),N=!1)}function ue(){return B}return{init:A,destroy:Z,pointerDown:ue}}function eP(e,t){let r,s;function i(h){return h.timeStamp}function o(h,f){const y=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(Um(h,t)?h:h.touches[0])[y]}function l(h){return r=h,s=h,o(h)}function c(h){const f=o(h)-o(s),p=i(h)-i(r)>170;return s=h,p&&(r=h),f}function u(h){if(!r||!s)return 0;const f=o(s)-o(r),p=i(h)-i(r),y=i(h)-i(s)>170,m=f/p;return p&&!y&&Ue(m)>.1?m:0}return{pointerDown:l,pointerMove:c,pointerUp:u,readPoint:o}}function tP(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function nP(e){function t(r){return e*(r/100)}return{measure:t}}function rP(e,t,n,r,s,i,o){const l=[e].concat(r);let c,u,d=[],h=!1;function f(w){return s.measureSize(o.measure(w))}function p(w){if(!i)return;u=f(e),d=r.map(f);function v(g){for(const x of g){if(h)return;const C=x.target===e,_=r.indexOf(x.target),S=C?u:d[_],j=f(C?e:r[_]);if(Ue(j-S)>=.5){w.reInit(),t.emit("resize");break}}}c=new ResizeObserver(g=>{(Sh(i)||i(w,g))&&v(g)}),n.requestAnimationFrame(()=>{l.forEach(g=>c.observe(g))})}function y(){h=!0,c&&c.disconnect()}return{init:p,destroy:y}}function sP(e,t,n,r,s,i){let o=0,l=0,c=s,u=i,d=e.get(),h=0;function f(){const S=r.get()-e.get(),j=!c;let k=0;return j?(o=0,n.set(r),e.set(r),k=S):(n.set(e),o+=S/c,o*=u,d+=o,e.add(o),k=d-h),l=Xv(k),h=d,_}function p(){const S=r.get()-t.get();return Ue(S)<.001}function y(){return c}function m(){return l}function w(){return o}function v(){return x(s)}function g(){return C(i)}function x(S){return c=S,_}function C(S){return u=S,_}const _={direction:m,duration:y,velocity:w,seek:f,settled:p,useBaseFriction:g,useBaseDuration:v,useFriction:C,useDuration:x};return _}function iP(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),l=ki(.1,.99);let c=!1;function u(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(p){if(!u())return;const y=e.reachedMin(t.get())?"min":"max",m=Ue(e[y]-t.get()),w=n.get()-t.get(),v=l.constrain(m/o);n.subtract(w*v),!p&&Ue(w)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function h(p){c=!p}return{shouldConstrain:u,constrain:d,toggleActive:h}}function oP(e,t,n,r,s){const i=ki(-t+e,0),o=h(),l=d(),c=f();function u(y,m){return rl(y,m)<=1}function d(){const y=o[0],m=Hn(o),w=o.lastIndexOf(y),v=o.indexOf(m)+1;return ki(w,v)}function h(){return n.map((y,m)=>{const{min:w,max:v}=i,g=i.constrain(y),x=!m,C=ey(n,m);return x?v:C||u(w,g)?w:u(v,g)?v:g}).map(y=>parseFloat(y.toFixed(3)))}function f(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:y,max:m}=l;return o.slice(y,m)}return{snapsContained:c,scrollContainLimit:l}}function aP(e,t,n){const r=t[0],s=n?r-e:Hn(t);return{limit:ki(s,r)}}function lP(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:l,reachedMax:c}=ki(i,o);function u(f){return f===1?c(n.get()):f===-1?l(n.get()):!1}function d(f){if(!u(f))return;const p=e*(f*-1);r.forEach(y=>y.add(p))}return{loop:d}}function cP(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function uP(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:l}=s,c=h().map(t.measure),u=f(),d=p();function h(){return l(r).map(m=>Hn(m)[o]-m[0][i]).map(Ue)}function f(){return r.map(m=>n[i]-m[i]).map(m=>-Ue(m))}function p(){return l(u).map(m=>m[0]).map((m,w)=>m+c[w])}return{snaps:u,snapsAligned:d}}function dP(e,t,n,r,s,i){const{groupSlides:o}=s,{min:l,max:c}=r,u=d();function d(){const f=o(i),p=!e||t==="keepSnaps";return n.length===1?[i]:p?f:f.slice(l,c).map((y,m,w)=>{const v=!m,g=ey(w,m);if(v){const x=Hn(w[0])+1;return lb(x)}if(g){const x=dc(i)-Hn(w)[0]+1;return lb(x,Hn(w)[0])}return y})}return{slideRegistry:u}}function hP(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:l}=r;function c(y){return y.concat().sort((m,w)=>Ue(m)-Ue(w))[0]}function u(y){const m=e?o(y):l(y),w=t.map((g,x)=>({diff:d(g-m,0),index:x})).sort((g,x)=>Ue(g.diff)-Ue(x.diff)),{index:v}=w[0];return{index:v,distance:m}}function d(y,m){const w=[y,y+n,y-n];if(!e)return y;if(!m)return c(w);const v=w.filter(g=>Xv(g)===m);return v.length?c(v):Hn(w)-n}function h(y,m){const w=t[y]-s.get(),v=d(w,m);return{index:y,distance:v}}function f(y,m){const w=s.get()+y,{index:v,distance:g}=u(w),x=!e&&i(w);if(!m||x)return{index:v,distance:y};const C=t[v]-g,_=y+d(C,0);return{index:v,distance:_}}return{byDistance:f,byIndex:h,shortcut:d}}function fP(e,t,n,r,s,i,o){function l(h){const f=h.distance,p=h.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(h.index),o.emit("select"))}function c(h,f){const p=s.byDistance(h,f);l(p)}function u(h,f){const p=t.clone().set(h),y=s.byIndex(p.get(),f);l(y)}return{distance:c,index:u}}function pP(e,t,n,r,s,i,o,l){const c={passive:!0,capture:!0};let u=0;function d(p){if(!l)return;function y(m){if(new Date().getTime()-u>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const g=n.findIndex(x=>x.includes(m));Qv(g)&&(s.useDuration(0),r.index(g,0),o.emit("slideFocus"))}i.add(document,"keydown",h,!1),t.forEach((m,w)=>{i.add(m,"focus",v=>{(Sh(l)||l(p,v))&&y(w)},c)})}function h(p){p.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function La(e){let t=e;function n(){return t}function r(c){t=o(c)}function s(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return Qv(c)?c:c.get()}return{get:n,set:r,add:s,subtract:i}}function y3(e,t){const n=e.scroll==="x"?o:l,r=t.style;let s=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function l(f){return`translate3d(0px,${f}px,0px)`}function c(f){if(i)return;const p=GA(e.direction(f));p!==s&&(r.transform=n(p),s=p)}function u(f){i=!f}function d(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:d,to:c,toggleActive:u}}function mP(e,t,n,r,s,i,o,l,c){const d=Il(s),h=Il(s).reverse(),f=v().concat(g());function p(j,k){return j.reduce((T,R)=>T-s[R],k)}function y(j,k){return j.reduce((T,R)=>p(T,k)>0?T.concat([R]):T,[])}function m(j){return i.map((k,T)=>({start:k-r[T]+.5+j,end:k+t-.5+j}))}function w(j,k,T){const R=m(k);return j.map(D=>{const O=T?0:-n,W=T?n:0,L=T?"end":"start",J=R[D][L];return{index:D,loopPoint:J,slideLocation:La(-1),translate:y3(e,c[D]),target:()=>l.get()>J?O:W}})}function v(){const j=o[0],k=y(h,j);return w(k,n,!1)}function g(){const j=t-o[0]-1,k=y(d,j);return w(k,-n,!0)}function x(){return f.every(({index:j})=>{const k=d.filter(T=>T!==j);return p(k,t)<=.1})}function C(){f.forEach(j=>{const{target:k,translate:T,slideLocation:R}=j,D=k();D!==R.get()&&(T.to(D),R.set(D))})}function _(){f.forEach(j=>j.translate.clear())}return{canLoop:x,clear:_,loop:C,loopPoints:f}}function gP(e,t,n){let r,s=!1;function i(c){if(!n)return;function u(d){for(const h of d)if(h.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{s||(Sh(n)||n(c,d))&&u(d)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function vP(e,t,n,r){const s={};let i=null,o=null,l,c=!1;function u(){l=new IntersectionObserver(y=>{c||(y.forEach(m=>{const w=t.indexOf(m.target);s[w]=m}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(y=>l.observe(y))}function d(){l&&l.disconnect(),c=!0}function h(y){return Dl(s).reduce((m,w)=>{const v=parseInt(w),{isIntersecting:g}=s[v];return(y&&g||!y&&!g)&&m.push(v),m},[])}function f(y=!0){if(y&&i)return i;if(!y&&o)return o;const m=h(y);return y&&(i=m),y||(o=m),m}return{init:u,destroy:d,get:f}}function yP(e,t,n,r,s,i){const{measureSize:o,startEdge:l,endEdge:c}=e,u=n[0]&&s,d=y(),h=m(),f=n.map(o),p=w();function y(){if(!u)return 0;const g=n[0];return Ue(t[l]-g[l])}function m(){if(!u)return 0;const g=i.getComputedStyle(Hn(r));return parseFloat(g.getPropertyValue(`margin-${c}`))}function w(){return n.map((g,x,C)=>{const _=!x,S=ey(C,x);return _?f[x]+d:S?f[x]+h:C[x+1][l]-g[l]}).map(Ue)}return{slideSizes:f,slideSizesWithGaps:p,startGap:d,endGap:h}}function bP(e,t,n,r,s,i,o,l,c){const{startEdge:u,endEdge:d,direction:h}=e,f=Qv(n);function p(v,g){return Il(v).filter(x=>x%g===0).map(x=>v.slice(x,x+g))}function y(v){return v.length?Il(v).reduce((g,x,C)=>{const _=Hn(g)||0,S=_===0,j=x===dc(v),k=s[u]-i[_][u],T=s[u]-i[x][d],R=!r&&S?h(o):0,D=!r&&j?h(l):0,O=Ue(T-D-(k+R));return C&&O>t+c&&g.push(x),j&&g.push(v.length),g},[]).map((g,x,C)=>{const _=Math.max(C[x-1]||0);return v.slice(_,g)}):[]}function m(v){return f?p(v,n):y(v)}return{groupSlides:m}}function xP(e,t,n,r,s,i,o){const{align:l,axis:c,direction:u,startIndex:d,loop:h,duration:f,dragFree:p,dragThreshold:y,inViewThreshold:m,slidesToScroll:w,skipSnaps:v,containScroll:g,watchResize:x,watchSlides:C,watchDrag:_,watchFocus:S}=i,j=2,k=tP(),T=k.measure(t),R=n.map(k.measure),D=QA(c,u),O=D.measureSize(T),W=nP(O),L=JA(l,O),J=!h&&!!g,B=h||!!g,{slideSizes:V,slideSizesWithGaps:N,startGap:P,endGap:A}=yP(D,T,R,n,B,s),Z=bP(D,O,w,h,T,R,P,A,j),{snaps:K,snapsAligned:se}=uP(D,L,T,R,Z),ee=-Hn(K)+Hn(N),{snapsContained:_e,scrollContainLimit:Te}=oP(O,ee,se,g,j),U=J?_e:se,{limit:le}=aP(ee,U,h),xe=v3(dc(U),d,h),ue=xe.clone(),X=Il(n),F=({dragHandler:xn,scrollBody:ya,scrollBounds:Di,options:{loop:Gr}})=>{Gr||Di.constrain(xn.pointerDown()),ya.seek()},de=({scrollBody:xn,translate:ya,location:Di,offsetLocation:Gr,previousLocation:Jr,scrollLooper:xc,slideLooper:Yr,dragHandler:Xh,animation:ef,eventHandler:ba,scrollBounds:wc,options:{loop:Cc}},Li)=>{const wn=xn.settled(),tf=!wc.shouldConstrain(),ie=Cc?wn:wn&&tf,je=ie&&!Xh.pointerDown();je&&ef.stop();const Ne=Di.get()*Li+Jr.get()*(1-Li);Gr.set(Ne),Cc&&(xc.loop(xn.direction()),Yr.loop()),ya.to(Gr.get()),je&&ba.emit("settle"),ie||ba.emit("scroll")},ye=YA(r,s,()=>F(va),xn=>de(va,xn)),Le=.68,rt=U[xe.get()],ht=La(rt),Wt=La(rt),Nt=La(rt),Yn=La(rt),yn=sP(ht,Nt,Wt,Yn,f,Le),Ii=hP(h,U,ee,le,Yn),bn=fP(ye,xe,ue,yn,Ii,Yn,o),yc=cP(le),bc=Ll(),Dt=vP(t,n,o,m),{slideRegistry:xr}=dP(J,g,U,Te,Z,X),Qh=pP(e,n,xr,bn,yn,bc,o,S),va={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:T,slideRects:R,animation:ye,axis:D,dragHandler:XA(D,e,r,s,Yn,eP(D,s),ht,ye,bn,yn,Ii,xe,o,W,p,y,v,Le,_),eventStore:bc,percentOfView:W,index:xe,indexPrevious:ue,limit:le,location:ht,offsetLocation:Nt,previousLocation:Wt,options:i,resizeHandler:rP(t,o,s,n,D,x,k),scrollBody:yn,scrollBounds:iP(le,Nt,Yn,yn,W),scrollLooper:lP(ee,le,Nt,[ht,Nt,Wt,Yn]),scrollProgress:yc,scrollSnapList:U.map(yc.get),scrollSnaps:U,scrollTarget:Ii,scrollTo:bn,slideLooper:mP(D,O,ee,V,N,K,U,Nt,n),slideFocus:Qh,slidesHandler:gP(t,o,C),slidesInView:Dt,slideIndexes:X,slideRegistry:xr,slidesToScroll:Z,target:Yn,translate:y3(D,t)};return va}function wP(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function s(u){return r(u).forEach(d=>d(t,u)),c}function i(u,d){return e[u]=r(u).concat([d]),c}function o(u,d){return e[u]=r(u).filter(h=>h!==d),c}function l(){e={}}const c={init:n,emit:s,off:o,on:i,clear:l};return c}const CP={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function _P(e){function t(i,o){return g3(i,o||{})}function n(i){const o=i.breakpoints||{},l=Dl(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,u)=>t(c,u),{});return t(i,l)}function r(i){return i.map(o=>Dl(o.breakpoints||{})).reduce((o,l)=>o.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function jP(e){let t=[];function n(i,o){return t=o.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(i,e)),o.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function wd(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=_P(s),o=jP(i),l=Ll(),c=wP(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:h}=i,{on:f,off:p,emit:y}=c,m=D;let w=!1,v,g=u(CP,wd.globalOptions),x=u(g),C=[],_,S,j;function k(){const{container:X,slides:F}=x;S=(Fm(X)?e.querySelector(X):X)||e.children[0];const ye=Fm(F)?S.querySelectorAll(F):F;j=[].slice.call(ye||S.children)}function T(X){const F=xP(e,S,j,r,s,X,c);if(X.loop&&!F.slideLooper.canLoop()){const de=Object.assign({},X,{loop:!1});return T(de)}return F}function R(X,F){w||(g=u(g,X),x=d(g),C=F||C,k(),v=T(x),h([g,...C.map(({options:de})=>de)]).forEach(de=>l.add(de,"change",D)),x.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(ue),v.eventHandler.init(ue),v.resizeHandler.init(ue),v.slidesHandler.init(ue),v.options.loop&&v.slideLooper.loop(),S.offsetParent&&j.length&&v.dragHandler.init(ue),_=o.init(ue,C)))}function D(X,F){const de=Z();O(),R(u({startIndex:de},X),F),c.emit("reInit")}function O(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),l.clear()}function W(){w||(w=!0,l.clear(),O(),c.emit("destroy"),c.clear())}function L(X,F,de){!x.active||w||(v.scrollBody.useBaseFriction().useDuration(F===!0?0:x.duration),v.scrollTo.index(X,de||0))}function J(X){const F=v.index.add(1).get();L(F,X,-1)}function B(X){const F=v.index.add(-1).get();L(F,X,1)}function V(){return v.index.add(1).get()!==Z()}function N(){return v.index.add(-1).get()!==Z()}function P(){return v.scrollSnapList}function A(){return v.scrollProgress.get(v.offsetLocation.get())}function Z(){return v.index.get()}function K(){return v.indexPrevious.get()}function se(){return v.slidesInView.get()}function ee(){return v.slidesInView.get(!1)}function _e(){return _}function Te(){return v}function U(){return e}function le(){return S}function xe(){return j}const ue={canScrollNext:V,canScrollPrev:N,containerNode:le,internalEngine:Te,destroy:W,off:p,on:f,emit:y,plugins:_e,previousScrollSnap:K,reInit:m,rootNode:U,scrollNext:J,scrollPrev:B,scrollProgress:A,scrollSnapList:P,scrollTo:L,selectedScrollSnap:Z,slideNo
303des:xe,slidesInView:se,slidesNotInView:ee};return R(t,n),setTimeout(()=>c.emit("init"),0),ue}wd.globalOptions=void 0;function ty(e={},t=[]){const n=b.useRef(e),r=b.useRef(t),[s,i]=b.useState(),[o,l]=b.useState(),c=b.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return b.useEffect(()=>{Yv(n.current,e)||(n.current=e,c())},[e,c]),b.useEffect(()=>{KA(r.current,t)||(r.current=t,c())},[t,c]),b.useEffect(()=>{if(qA()&&o){wd.globalOptions=ty.globalOptions;const u=wd(o,n.current,r.current);return i(u),()=>u.destroy()}else i(void 0)},[o,i]),[l,s]}ty.globalOptions=void 0;const b3=b.createContext(null);function kh(){const e=b.useContext(b3);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const x3=b.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:s,children:i,...o},l)=>{const[c,u]=ty({...t,axis:e==="horizontal"?"x":"y"},r),[d,h]=b.useState(!1),[f,p]=b.useState(!1),y=b.useCallback(g=>{g&&(h(g.canScrollPrev()),p(g.canScrollNext()))},[]),m=b.useCallback(()=>{u==null||u.scrollPrev()},[u]),w=b.useCallback(()=>{u==null||u.scrollNext()},[u]),v=b.useCallback(g=>{g.key==="ArrowLeft"?(g.preventDefault(),m()):g.key==="ArrowRight"&&(g.preventDefault(),w())},[m,w]);return b.useEffect(()=>{!u||!n||n(u)},[u,n]),b.useEffect(()=>{if(u)return y(u),u.on("reInit",y),u.on("select",y),()=>{u==null||u.off("select",y)}},[u,y]),a.jsx(b3.Provider,{value:{carouselRef:c,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:w,canScrollPrev:d,canScrollNext:f},children:a.jsx("div",{ref:l,onKeyDownCapture:v,className:Ce("relative",s),role:"region","aria-roledescription":"carousel",...o,children:i})})});x3.displayName="Carousel";const w3=b.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:s}=kh();return a.jsx("div",{ref:r,className:"overflow-hidden",children:a.jsx("div",{ref:n,className:Ce("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});w3.displayName="CarouselContent";const C3=b.forwardRef(({className:e,...t},n)=>{const{orientation:r}=kh();return a.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:Ce("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});C3.displayName="CarouselItem";const _3=b.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:i,scrollPrev:o,canScrollPrev:l}=kh();return a.jsxs(ce,{ref:s,variant:t,size:n,className:Ce("absolute h-8 w-8 rounded-full",i==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...r,children:[a.jsx(yj,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Previous slide"})]})});_3.displayName="CarouselPrevious";const j3=b.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:i,scrollNext:o,canScrollNext:l}=kh();return a.jsxs(ce,{ref:s,variant:t,size:n,className:Ce("absolute h-8 w-8 rounded-full",i==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...r,children:[a.jsx(nt,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Next slide"})]})});j3.displayName="CarouselNext";function ny({className:e}){return a.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",focusable:"false",className:e,children:a.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231 5.451-6.231Zm-1.161 17.52h1.833L7.084 4.126H5.117l11.966 15.644Z"})})}const SP="/assets/mcc-logo-BoIVXNcK.jpg",kP=[{label:"Facebook",href:"https://www.facebook.com/mnchurches/",Icon:$v},{label:"X (Twitter)",href:"https://x.com/mnchurches",Icon:ny},{label:"LinkedIn",href:"https://www.linkedin.com/company/mnchurches/",Icon:Ov},{label:"Instagram",href:"https://www.instagram.com/minnesota_churches/",Icon:Mv},{label:"YouTube",href:"https://www.youtube.com/@MNChurches",Icon:Lv}],cb=[{label:"About Us",href:"/about",children:[{label:"Our Mission & Vision",href:"/about/mission"},{label:"Our Staff",href:"/about/staff"},{label:"Our Members",href:"/about/members"},{label:"Board of Directors",href:"/about/board"},{label:"Racial Justice Commitment",href:"/about/racial-justice"},{label:"Our History",href:"/about/history"},{label:"Financials & Reports",href:"/about/financials"},{label:"FAQ",href:"/faq"}]},{label:"Programs",href:"/programs",children:[{label:"Office of Civic Dialogue",href:"/programs/civic-dialogue",bold:!0},{label:"Respectful Conversations",href:"/programs/civic-dialogue/respectful-conversations"},{label:"Hosting a Respectful Conversation",href:"/programs/civic-dialogue/respectful-conversations/hosting"},{label:"Respectful Conversations Testimonials",href:"/programs/civic-dialogue/respectful-conversations/testimonials"},{label:"Additional Programming",href:"/programs/civic-dialogue/additional-programming"},{label:"Congregational Member Services",href:"/programs/congregational-services",bold:!0},{label:"Refugee & Immigrant Services",href:"/programs/refugee-services",bold:!0},{label:"Who are Refugees?",href:"/programs/refugee-services/about-refugees"},{label:"Immigration Legal Services",href:"/programs/refugee-services/legal"},{label:"Twin Cities Programming",href:"/programs/refugee-services/twin-cities"},{label:"Mankato Programming",href:"/programs/refugee-services/mankato"},{label:"How to Help Refugees",href:"/programs/refugee-services/how-to-help"},{label:"Justice & Advocacy",href:"/programs/justice-advocacy",bold:!0},{label:"Taking Heart Ramadan Iftars",href:"/programs/justice-advocacy/taking-heart"},{label:"Joint Religious Legislative Coalition",href:"/programs/justice-advocacy/joint-religious-legislative-coalition"},{label:"Partnerships and Opportunities to Engage",href:"/programs/justice-advocacy/partnerships",subhead:!0}]},{label:"Get Involved",href:"/get-involved",children:[{label:"Donate",href:"https://minnesota-council-of-churches.givecloud.co/fundraising/forms/8NDR96EK"},{label:"Become a Member",href:"/get-involved/membership"},{label:"Give Items",href:"/get-involved/give-items"},{label:"Resources",href:"/get-involved/resources"}]},{label:"News & Events",href:"/news",children:[{label:"In the News",href:"/news/in-the-news"},{label:"Elder Kelly's Blog",href:"/news/blog"},{label:"Newsletter Sign-up & Archive",href:"/news/newsletter"},{label:"Events Calendar",href:"/news/events"}]},{label:"Contact",href:"/contact"}],TP=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(null),[s,i]=b.useState(null),o=()=>{t(!1),i(null)};return a.jsxs("header",{className:"sticky top-0 z-50 bg-card/95 backdrop-blur-md border-b border-border",children:[a.jsxs("div",{className:"container flex items-center justify-between h-20 gap-4",children:[a.jsx(Y,{to:"/",className:"flex items-center gap-3",onClick:o,children:a.jsx("img",{src:SP,alt:"Minnesota Council of Churches",className:"h-14 w-auto"})}),a.jsx("nav",{className:"hidden lg:flex items-center gap-1","aria-label":"Main",children:cb.map(l=>a.jsxs("div",{className:"relative",onMouseEnter:()=>r(l.label),onMouseLeave:()=>r(null),children:[a.jsxs(Y,{to:l.href,className:"flex items-center gap-1 px-3 py-2 text-sm font-medium text-foreground hover:text-primary transition-colors rounded-lg",children:[l.label,l.children&&a.jsx($l,{className:"h-3.5 w-3.5 opacity-50"})]}),l.children&&n===l.label&&a.jsx("div",{className:"absolute top-full left-0 pt-2 w-80",children:a.jsx("div",{className:"bg-card rounded-xl shadow-xl border border-border px-6 py-5 space-y-1",children:l.children.map((c,u)=>a.jsx("div",{children:c.subhead?a.jsx(Y,{to:c.href,className:"block text-sm text-foreground hover:text-primary transition-colors py-2",children:c.label}):c.bold?a.jsxs("div",{className:u>0?"mt-4":"",children:[c.href.startsWith("http")?a.jsx("a",{href:c.href,className:"block text-base font-bold text-foreground hover:text-primary transition-colors rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1",children:c.label}):a.jsx(Y,{to:c.href,className:"block text-base font-bold text-foreground hover:text-primary transition-colors rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1",children:c.label}),a.jsx("div",{className:"w-full h-0.5 bg-gold mt-1"})]}):c.href.startsWith("http")?a.jsx("a",{href:c.href,className:"block py-2 text-sm text-foreground hover:text-primary transition-colors rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1",children:c.label}):a.jsx(Y,{to:c.href,className:"block py-2 text-sm text-foreground hover:text-primary transition-colors rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1",children:c.label})},`${c.href}-${u}`))})})]},l.label))}),a.jsxs("div",{className:"hidden lg:flex items-center gap-2",children:[a.jsx("ul",{className:"flex items-center gap-1 list-none pl-0 mr-1",children:kP.map(({label:l,href:c,Icon:u})=>a.jsx("li",{children:a.jsx("a",{href:c,"aria-label":l,className:"inline-flex h-8 w-8 items-center justify-center rounded-full text-foreground hover:text-primary transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2",children:a.jsx(u,{className:"h-4 w-4"})})},l))}),a.jsx(ce,{variant:"outline-navy",size:"sm",asChild:!0,children:a.jsx(Y,{to:"/careers",children:"Careers"})}),a.jsx(ce,{variant:"gold",size:"sm",asChild:!0,children:a.jsx("a",{href:"https://minnesota-council-of-churches.givecloud.co/fundraising/forms/8NDR96EK",children:"Donate"})})]}),a.jsx("button",{className:"lg:hidden p-2 text-foreground",onClick:()=>t(!e),"aria-label":"Toggle menu","aria-expanded":e,children:e?a.jsx(Tj,{className:"h-6 w-6"}):a.jsx(uN,{className:"h-6 w-6"})})]}),e&&a.jsx("div",{className:"lg:hidden bg-card border-t border-border",children:a.jsxs("nav",{className:"container py-6 space-y-1","aria-label":"Mobile",children:[cb.map(l=>a.jsxs("div",{className:"border-b border-border last:border-b-0",children:[a.jsxs("div",{className:"flex items-stretch",children:[a.jsx(Y,{to:l.href,onClick:o,className:"flex-1 px-4 py-3 text-base font-bold text-foreground hover:text-primary text-left",children:l.label}),l.children&&a.jsx("button",{type:"button",onClick:()=>i(s===l.label?null:l.label),"aria-label":`Toggle ${l.label} submenu`,"aria-expanded":s===l.label,className:"px-4 text-foreground",children:a.jsx($l,{className:`h-4 w-4 opacity-60 transition-transform ${s===l.label?"rotate-180":""}`})})]}),l.children&&s===l.label&&a.jsx("div",{className:"ml-4 pb-3 space-y-0.5",children:l.children.map((c,u)=>a.jsx("div",{children:c.subhead?a.jsx(Y,{to:c.href,onClick:o,className:"block pt-3 pb-1 px-4 text-sm text-foreground hover:text-primary transition-colors",children:c.label}):c.bold?a.jsxs("div",{className:`${u>0?"mt-3":""} px-4`,children:[c.href.startsWith("http")?a.jsx("a",{href:c.href,onClick:o,className:"block text-sm font-bold text-foreground hover:text-primary rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1",children:c.label}):a.jsx(Y,{to:c.href,onClick:o,className:"block text-sm font-bold text-foreground hover:text-primary rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1",children:c.label}),a.jsx("div",{className:"w-full h-0.5 bg-gold mt-1"})]}):c.href.startsWith("http")?a.jsx("a",{href:c.href,onClick:o,className:"block px-4 py-1.5 text-sm text-muted-foreground hover:text-primary rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1",children:c.label}):a.jsx(Y,{to:c.href,onClick:o,className:"block px-4 py-1.5 text-sm text-muted-foreground hover:text-primary rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1",children:c.label})},`${c.href}-${u}`))})]},l.label)),a.jsx("div",{className:"pt-4 px-4 space-y-2",children:a.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[a.jsx(ce,{variant:"outline-navy",size:"lg",asChild:!0,className:"w-full",children:a.jsx(Y,{to:"/careers",onClick:o,children:"Careers"})}),a.jsx(ce,{variant:"gold",size:"lg",asChild:!0,className:"w-full",children:a.jsx("a",{href:"https://minnesota-council-of-churches.givecloud.co/fundraising/forms/8NDR96EK",onClick:o,children:"Donate"})})]})})]})})]})},EP=1,NP="7f035397-00ef-4666-b645-67258a4ac932",RP="5317579a-a8ee-431d-9a53-6d8cfe773828",AP="/__l5e/assets-v1/7f035397-00ef-4666-b645-67258a4ac932/mcc-logo-long-white.png",PP="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/7f035397-00ef-4666-b645-67258a4ac932/mcc-logo-long-white.png",$P="mcc-logo-long-white.png",MP=143902,OP="image/png",IP="2026-07-07T05:40:00Z",DP={version:EP,asset_id:NP,project_id:RP,url:AP,r2_key:PP,original_filename:$P,size:MP,content_type:OP,created_at:IP},LP=[{label:"Facebook",href:"https://www.facebook.com/mnchurches/",Icon:$v},{label:"X (Twitter)",href:"https://x.com/mnchurches",Icon:ny},{label:"LinkedIn",href:"https://www.linkedin.com/company/mnchurches/",Icon:Ov},{label:"Instagram",href:"https://www.instagram.com/minnesota_churches/",Icon:Mv},{label:"YouTube",href:"https://www.youtube.com/@MNChurches",Icon:Lv}],zP=[{label:"About Us",href:"/about"},{label:"Programs",href:"/programs"},{label:"Get Involved",href:"/get-involved"},{label:"News & Events",href:"/news"},{label:"Careers",href:"/careers"},{label:"FAQ",href:"/faq"},{label:"Contact Us",href:"/contact"}],FP=[{label:"Office of Civic Dialogue",href:"/programs/civic-dialogue"},{label:"Congregational Member Services",href:"/programs/congregational-services"},{label:"Refugee & Immigrant Services",href:"/programs/refugee-services"},{label:"Justice & Advocacy",href:"/programs/justice-advocacy"}],UP=()=>a.jsx("footer",{className:"bg-[hsl(var(--charcoal))] text-navy-foreground",children:a.jsxs("div",{className:"container py-16",children:[a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("img",{src:DP.url,alt:"Minnesota Council of Churches",className:"h-auto w-64 max-w-full object-contain"}),a.jsx("p",{className:"text-sm opacity-75 leading-relaxed",children:"The Minnesota Council of Churches convenes, connects, and catalyzes people of faith to build just, equitable, and livable communities for all Minnesotans."})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-serif text-lg mb-4 text-gold",children:"Qu
303ick Links"}),a.jsx("ul",{className:"space-y-2.5",children:zP.map(e=>a.jsx("li",{children:a.jsx(Y,{to:e.href,className:"text-sm opacity-75 hover:opacity-100 hover:text-gold transition-all",children:e.label})},e.href))})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-serif text-lg mb-4 text-gold",children:"Programs"}),a.jsx("ul",{className:"space-y-2.5",children:FP.map(e=>a.jsx("li",{children:a.jsx(Y,{to:e.href,className:"text-sm opacity-75 hover:opacity-100 hover:text-gold transition-all",children:e.label})},e.href))})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-serif text-lg mb-4 text-gold",children:"Contact Us"}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("a",{href:"tel:612-870-3600",className:"flex items-center gap-2 text-sm opacity-75 hover:opacity-100",children:[a.jsx(Iv,{className:"h-4 w-4"})," 612-870-3600"]}),a.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 text-sm opacity-75 hover:opacity-100",children:[a.jsx(vh,{className:"h-4 w-4"})," [email protected]"]}),a.jsxs("div",{className:"flex items-start gap-2 text-sm opacity-75",children:[a.jsx(jj,{className:"h-4 w-4 mt-0.5 shrink-0"}),a.jsxs("span",{children:["1600 University Ave. W., Ste. 500",a.jsx("br",{}),"St. Paul, MN 55104"]})]}),a.jsx("ul",{className:"flex items-center gap-2 list-none pl-0 pt-1",children:LP.map(({label:e,href:t,Icon:n})=>a.jsx("li",{children:a.jsx("a",{href:t,"aria-label":e,className:"inline-flex h-9 w-9 items-center justify-center rounded-full border border-navy-foreground/20 opacity-75 hover:opacity-100 hover:text-gold hover:border-gold transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gold focus-visible:ring-offset-2 focus-visible:ring-offset-[hsl(var(--charcoal))]",children:a.jsx(n,{className:"h-4 w-4"})})},e))})]})]})]}),a.jsx("div",{className:"border-t border-navy-foreground/10 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:a.jsxs("p",{className:"text-sm opacity-50",children:["© ",new Date().getFullYear()," Minnesota Council of Churches. All rights reserved."]})})]})}),BP=()=>{const{pathname:e}=Zn();return e.startsWith("/get-involved/donate")?null:a.jsx("aside",{"aria-label":"Support the Minnesota Council of Churches",className:"border-t border-border bg-cream",children:a.jsxs("div",{className:"container py-8 md:py-10 flex flex-col md:flex-row items-center gap-6 md:gap-8",children:[a.jsx("div",{className:"hidden md:flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-gold/15 text-gold",children:a.jsx(gd,{className:"h-6 w-6","aria-hidden":!0})}),a.jsxs("div",{className:"flex-1 text-center md:text-left",children:[a.jsx("h2",{className:"font-serif text-xl md:text-2xl text-navy leading-snug",children:"Your gift keeps our mission going."}),a.jsx("p",{className:"mt-1 text-sm md:text-base text-warm-gray max-w-2xl md:mx-0 mx-auto",children:"Every contribution sustains refugee and immigrant services, the Office of Civic Dialogue, Respectful Conversations, and congregational and community support across Minnesota."})]}),a.jsx(ce,{variant:"gold",size:"lg",asChild:!0,className:"shrink-0",children:a.jsxs("a",{href:"https://minnesota-council-of-churches.givecloud.co/fundraising/forms/8NDR96EK",children:[a.jsx(gd,{className:"h-4 w-4 mr-2","aria-hidden":!0}),"Donate"]})})]})})},$u=({children:e})=>a.jsxs("div",{className:"min-h-screen flex flex-col",children:[a.jsx(TP,{}),a.jsx("main",{className:"flex-1",children:e}),a.jsx(BP,{}),a.jsx(UP,{})]}),S3=b.createContext({});function VP(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const ry=b.createContext(null),k3=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function HP(e=!0){const t=b.useContext(ry);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=b.useId();b.useEffect(()=>{e&&s(i)},[e]);const o=b.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const sy=typeof window<"u",WP=sy?b.useLayoutEffect:b.useEffect,Xt=e=>e;let Bm=Xt;function iy(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ir=e=>e*1e3,Dr=e=>e/1e3,qP={skipAnimations:!1,useManualTiming:!1};function KP(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){i.has(u)&&(c.schedule(u),e()),u(o)}const c={schedule:(u,d=!1,h=!1)=>{const p=h&&r?t:n;return d&&i.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(o=u,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,s&&(s=!1,c.process(u))}};return c}const Kc=["read","resolveKeyframes","update","preRender","render","postRender"],ZP=40;function T3(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Kc.reduce((v,g)=>(v[g]=KP(i),v),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:h,postRender:f}=o,p=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,ZP),1),s.timestamp=v,s.isProcessing=!0,l.process(s),c.process(s),u.process(s),d.process(s),h.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(p))},y=()=>{n=!0,r=!0,s.isProcessing||e(p)};return{schedule:Kc.reduce((v,g)=>{const x=o[g];return v[g]=(C,_=!1,S=!1)=>(n||y(),x.schedule(C,_,S)),v},{}),cancel:v=>{for(let g=0;g<Kc.length;g++)o[Kc[g]].cancel(v)},state:s,steps:o}}const{schedule:Oe,cancel:Is,state:mt,steps:Bf}=T3(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xt,!0),E3=b.createContext({strict:!1}),ub={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Xo={};for(const e in ub)Xo[e]={isEnabled:t=>ub[e].some(n=>!!t[n])};function GP(e){for(const t in e)Xo[t]={...Xo[t],...e[t]}}const JP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Cd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||JP.has(e)}let N3=e=>!Cd(e);function YP(e){e&&(N3=t=>t.startsWith("on")?!Cd(t):e(t))}try{YP(require("@emotion/is-prop-valid").default)}catch{}function QP(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(N3(s)||n===!0&&Cd(s)||!t&&!Cd(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function XP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const Th=b.createContext({});function zl(e){return typeof e=="string"||Array.isArray(e)}function Eh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const oy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ay=["initial",...oy];function Nh(e){return Eh(e.animate)||ay.some(t=>zl(e[t]))}function R3(e){return!!(Nh(e)||e.variants)}function e$(e,t){if(Nh(e)){const{initial:n,animate:r}=e;return{initial:n===!1||zl(n)?n:void 0,animate:zl(r)?r:void 0}}return e.inherit!==!1?t:{}}function t$(e){const{initial:t,animate:n}=e$(e,b.useContext(Th));return b.useMemo(()=>({initial:t,animate:n}),[db(t),db(n)])}function db(e){return Array.isArray(e)?e.join(" "):e}const n$=Symbol.for("motionComponentSymbol");function po(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function r$(e,t,n){return b.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):po(n)&&(n.current=r))},[t])}const ly=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),s$="framerAppearId",A3="data-"+ly(s$),{schedule:cy,cancel:age}=T3(queueMicrotask,!1),P3=b.createContext({});
vendor: 10,217 bytes, line 303
303function i$(e,t,n,r,s){var i,o;const{visualElement:l}=b.useContext(Th),c=b.useContext(E3),u=b.useContext(ry),d=b.useContext(k3).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const f=h.current,p=b.useContext(P3);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&o$(h.current,n,s,p);const y=b.useRef(!1);b.useInsertionEffect(()=>{f&&y.current&&f.update(n,u)});const m=n[A3],w=b.useRef(!!m&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,m))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,m)));return WP(()=>{f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),cy.render(f.render),w.current&&f.animationState&&f.animationState.animateChanges())}),b.useEffect(()=>{f&&(!w.current&&f.animationState&&f.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,m)}),w.current=!1))}),f}function o$(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:$3(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||l&&po(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function $3(e){if(e)return e.options.allowProjection!==!1?e.projection:$3(e.parent)}function a$({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&GP(e);function l(u,d){let h;const f={...b.useContext(k3),...u,layoutId:l$(u)},{isStatic:p}=f,y=t$(u),m=r(u,p);if(!p&&sy){c$();const w=u$(f);h=w.MeasureLayout,y.visualElement=i$(s,m,f,t,w.ProjectionNode)}return a.jsxs(Th.Provider,{value:y,children:[h&&y.visualElement?a.jsx(h,{visualElement:y.visualElement,...f}):null,n(s,u,r$(m,y.visualElement,d),m,p,y.visualElement)]})}l.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const c=b.forwardRef(l);return c[n$]=s,c}function l$({layoutId:e}){const t=b.useContext(S3).id;return t&&e!==void 0?t+"-"+e:e}function c$(e,t){b.useContext(E3).strict}function u$(e){const{drag:t,layout:n}=Xo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const d$=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function uy(e){return typeof e!="string"||e.includes("-")?!1:!!(d$.indexOf(e)>-1||/[A-Z]/u.test(e))}function hb(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function dy(e,t,n,r){if(typeof t=="function"){const[s,i]=hb(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=hb(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const Vm=e=>Array.isArray(e),h$=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),f$=e=>Vm(e)?e[e.length-1]||0:e,Tt=e=>!!(e&&e.getVelocity);function Mu(e){const t=Tt(e)?e.get():e;return h$(t)?t.toValue():t}function p$({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:m$(r,s,i,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const M3=e=>(t,n)=>{const r=b.useContext(Th),s=b.useContext(ry),i=()=>p$(e,t,r,s);return n?i():VP(i)};function m$(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=Mu(i[f]);let{initial:o,animate:l}=e;const c=Nh(e),u=R3(e);t&&u&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?l:o;if(h&&typeof h!="boolean"&&!Eh(h)){const f=Array.isArray(h)?h:[h];for(let p=0;p<f.length;p++){const y=dy(e,f[p]);if(y){const{transitionEnd:m,transition:w,...v}=y;for(const g in v){let x=v[g];if(Array.isArray(x)){const C=d?x.length-1:0;x=x[C]}x!==null&&(s[g]=x)}for(const g in m)s[g]=m[g]}}}return s}const ha=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mi=new Set(ha),O3=e=>t=>typeof t=="string"&&t.startsWith(e),I3=O3("--"),g$=O3("var(--"),hy=e=>g$(e)?v$.test(e.split("/*")[0].trim()):!1,v$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,D3=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Wr=(e,t,n)=>n>t?t:n<e?e:n,fa={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Fl={...fa,transform:e=>Wr(0,1,e)},Zc={...fa,default:1},hc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ss=hc("deg"),fr=hc("%"),ne=hc("px"),y$=hc("vh"),b$=hc("vw"),fb={...fr,parse:e=>fr.parse(e)/100,transform:e=>fr.transform(e*100)},x$={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,backgroundPositionX:ne,backgroundPositionY:ne},w$={rotate:ss,rotateX:ss,rotateY:ss,rotateZ:ss,scale:Zc,scaleX:Zc,scaleY:Zc,scaleZ:Zc,skew:ss,skewX:ss,skewY:ss,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:Fl,originX:fb,originY:fb,originZ:ne},pb={...fa,transform:Math.round},fy={...x$,...w$,zIndex:pb,size:ne,fillOpacity:Fl,strokeOpacity:Fl,numOctaves:pb},C$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_$=ha.length;function j$(e,t,n){let r="",s=!0;for(let i=0;i<_$;i++){const o=ha[i],l=e[o];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(o.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=D3(l,fy[o]);if(!c){s=!1;const d=C$[o]||o;r+=`${d}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function py(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,l=!1;for(const c in t){const u=t[c];if(Mi.has(c)){o=!0;continue}else if(I3(c)){s[c]=u;continue}else{const d=D3(u,fy[c]);c.startsWith("origin")?(l=!0,i[c]=d):r[c]=d}}if(t.transform||(o||n?r.transform=j$(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;r.transformOrigin=`${c} ${u} ${d}`}}const S$={offset:"stroke-dashoffset",array:"stroke-dasharray"},k$={offset:"strokeDashoffset",array:"strokeDasharray"};function T$(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?S$:k$;e[i.offset]=ne.transform(-r);const o=ne.transform(t),l=ne.transform(n);e[i.array]=`${o} ${l}`}function mb(e,t,n){return typeof e=="string"?e:ne.transform(t+n*e)}function E$(e,t,n){const r=mb(t,e.x,e.width),s=mb(n,e.y,e.height);return`${r} ${s}`}function my(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:l=1,pathOffset:c=0,...u},d,h){if(py(e,u,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:y}=e;f.transform&&(y&&(p.transform=f.transform),delete f.transform),y&&(s!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=E$(y,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&T$(f,o,l,c,!1)}const gy=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),L3=()=>({...gy(),attrs:{}}),vy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function z3(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const F3=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function U3(e,t,n,r){z3(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(F3.has(s)?s:ly(s),t.attrs[s])}const _d={};function N$(e){Object.assign(_d,e)}function B3(e,{layout:t,layoutId:n}){return Mi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_d[e]||e==="opacity")}function yy(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(Tt(s[o])||t.style&&Tt(t.style[o])||B3(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}function V3(e,t,n){const r=yy(e,t,n);for(const s in e)if(Tt(e[s])||Tt(t[s])){const i=ha.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function R$(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const gb=["x","y","width","height","cx","cy","r"],A$={useVisualState:M3({scrapeMotionValuesFromProps:V3,createRenderState:L3,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const l in s)if(Mi.has(l)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let l=0;l<gb.length;l++){const c=gb[l];e[c]!==t[c]&&(o=!0)}o&&Oe.read(()=>{R$(n,r),Oe.render(()=>{my(r,s,vy(n.tagName),e.transformTemplate),U3(n,r)})})}})},P$={useVisualState:M3({scrapeMotionValuesFromProps:yy,createRenderState:gy})};function H3(e,t,n){for(const r in t)!Tt(t[r])&&!B3(r,n)&&(e[r]=t[r])}function $$({transformTemplate:e},t){return b.useMemo(()=>{const n=gy();return py(n,t,e),Object.assign({},n.vars,n.style)},[t])}function M$(e,t){const n=e.style||{},r={};return H3(r,n,e),Object.assign(r,$$(e,t)),r}function O$(e,t){const n={},r=M$(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
303`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function I$(e,t,n,r){const s=b.useMemo(()=>{const i=L3();return my(i,t,vy(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};H3(i,e.style,e),s.style={...i,...s.style}}return s}function D$(e=!1){return(n,r,s,{latestValues:i},o)=>{const c=(uy(n)?I$:O$)(r,i,o,n),u=QP(r,typeof n=="string",e),d=n!==b.Fragment?{...u,...c,ref:s}:{},{children:h}=r,f=b.useMemo(()=>Tt(h)?h.get():h,[h]);return b.createElement(n,{...d,children:f})}}function L$(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...uy(r)?A$:P$,preloadedFeatures:e,useRender:D$(s),createVisualElement:t,Component:r};return a$(o)}}function W3(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Rh(e,t,n){const r=e.getProps();return dy(r,t,n!==void 0?n:r.custom,e)}const z$=iy(()=>window.ScrollTimeline!==void 0);class F${constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(z$()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class U$ extends F${then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function by(e,t){return e?e[t]||e.default||e:void 0}const Hm=2e4;function q3(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Hm;)t+=n,r=e.next(t);return t>=Hm?1/0:t}function xy(e){return typeof e=="function"}function vb(e,t){e.timeline=t,e.onfinish=null}const wy=e=>Array.isArray(e)&&typeof e[0]=="number",B$={linearEasing:void 0};function V$(e,t){const n=iy(e);return()=>{var r;return(r=B$[t])!==null&&r!==void 0?r:n()}}const jd=V$(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 21,652 bytes, line 303
303,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),K3=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=e(Qo(0,s-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function Z3(e){return!!(typeof e=="function"&&jd()||!e||typeof e=="string"&&(e in Wm||jd())||wy(e)||Array.isArray(e)&&e.every(Z3))}const za=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Wm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:za([0,.65,.55,1]),circOut:za([.55,0,1,.45]),backIn:za([.31,.01,.66,-.59]),backOut:za([.33,1.53,.69,.99])};function G3(e,t){if(e)return typeof e=="function"&&jd()?K3(e,t):wy(e)?za(e):Array.isArray(e)?e.map(n=>G3(n,t)||Wm.easeOut):Wm[e]}const Nn={x:!1,y:!1};function J3(){return Nn.x||Nn.y}function H$(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Y3(e,t){const n=H$(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function yb(e){return t=>{t.pointerType==="touch"||J3()||e(t)}}function W$(e,t,n={}){const[r,s,i]=Y3(e,n),o=yb(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=yb(h=>{u(h),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,s)});return r.forEach(l=>{l.addEventListener("pointerenter",o,s)}),i}const Q3=(e,t)=>t?e===t?!0:Q3(e,t.parentElement):!1,Cy=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,q$=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function K$(e){return q$.has(e.tagName)||e.tabIndex!==-1}const Fa=new WeakSet;function bb(e){return t=>{t.key==="Enter"&&e(t)}}function Vf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Z$=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=bb(()=>{if(Fa.has(n))return;Vf(n,"down");const s=bb(()=>{Vf(n,"up")}),i=()=>Vf(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function xb(e){return Cy(e)&&!J3()}function G$(e,t,n={}){const[r,s,i]=Y3(e,n),o=l=>{const c=l.currentTarget;if(!xb(l)||Fa.has(c))return;Fa.add(c);const u=t(l),d=(p,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!xb(p)||!Fa.has(c))&&(Fa.delete(c),typeof u=="function"&&u(p,{success:y}))},h=p=>{d(p,n.useGlobalTarget||Q3(c,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return r.forEach(l=>{!K$(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,s),l.addEventListener("focus",u=>Z$(u,s),s)}),i}function J$(e){return e==="x"||e==="y"?Nn[e]?null:(Nn[e]=!0,()=>{Nn[e]=!1}):Nn.x||Nn.y?null:(Nn.x=Nn.y=!0,()=>{Nn.x=Nn.y=!1})}const X3=new Set(["width","height","top","left","right","bottom",...ha]);let Ou;function Y$(){Ou=void 0}const pr={now:()=>(Ou===void 0&&pr.set(mt.isProcessing||qP.useManualTiming?mt.timestamp:performance.now()),Ou),set:e=>{Ou=e,queueMicrotask(Y$)}};function _y(e,t){e.indexOf(t)===-1&&e.push(t)}function jy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Sy{constructor(){this.subscriptions=[]}add(t){return _y(this.subscriptions,t),()=>jy(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function e8(e,t){return t?e*(1e3/t):0}const wb=30,Q$=e=>!isNaN(parseFloat(e));class X${constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=pr.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=pr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Q$(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Sy);const r=this.events[t].add(n);return t==="change"?()=>{r(),Oe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=pr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>wb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,wb);return e8(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ul(e,t){return new X$(e,t)}function eM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ul(n))}function tM(e,t){const n=Rh(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const l=f$(i[o]);eM(e,o,l)}}function nM(e){return!!(Tt(e)&&e.add)}function qm(e,t){const n=e.getValue("willChange");if(nM(n))return n.add(t)}function t8(e){return e.props[A3]}const n8=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,rM=1e-7,sM=12;function iM(e,t,n,r,s){let i,o,l=0;do o=t+(n-t)/2,i=n8(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>rM&&++l<sM);return o}function fc(e,t,n,r){if(e===t&&n===r)return Xt;const s=i=>iM(i,0,1,e,n);return i=>i===0||i===1?i:n8(s(i),t,r)}const r8=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,s8=e=>t=>1-e(1-t),i8=fc(.33,1.53,.69,.99),ky=s8(i8),o8=r8(ky),a8=e=>(e*=2)<1?.5*ky(e):.5*(2-Math.pow(2,-10*(e-1))),Ty=e=>1-Math.sin(Math.acos(e)),l8=s8(Ty),c8=r8(Ty),u8=e=>/^0[^.\s]+$/u.test(e);function oM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||u8(e):!0}const sl=e=>Math.round(e*1e5)/1e5,Ey=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function aM(e){return e==null}const lM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ny=(e,t)=>n=>!!(typeof n=="string"&&lM.test(n)&&n.startsWith(e)||t&&!aM(n)&&Object.prototype.hasOwnProperty.call(n,t)),d8=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,l]=r.match(Ey);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},cM=e=>Wr(0,255,e),Hf={...fa,transform:e=>Math.round(cM(e))},li={test:Ny("rgb","red"),parse:d8("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Hf.transform(e)+", "+Hf.transform(t)+", "+Hf.transform(n)+", "+sl(Fl.transform(r))+")"};function uM(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Km={test:Ny("#"),parse:uM,transform:li.transform},mo={test:Ny("hsl","hue"),parse:d8("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+fr.transform(sl(t))+", "+fr.transform(sl(n))+", "+sl(Fl.transform(r))+")"},St={test:e=>li.test(e)||Km.test(e)||mo.test(e),parse:e=>li.test(e)?li.parse(e):mo.test(e)?mo.parse(e):Km.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?li.transform(e):mo.transform(e)},dM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ey))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(dM))===null||n===void 0?void 0:n.length)||0)>0}const h8="number",f8="color",fM="var",pM="var(",Cb="${}",mM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Bl(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const l=t.replace(mM,c=>(St.test(c)?(r.color.push(i),s.push(f8),n.push(St.parse(c))):c.startsWith(pM)?(r.var.push(i),s.push(fM),n.push(c)):(r.number.push(i),s.push(h8),n.push(parseFloat(c))),++i,Cb)).split(Cb);return{values:n,split:l,indexes:r,types:s}}function p8(e){return Bl(e).values}function m8(e){const{split:t,types:n}=Bl(e),r=t.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],s[o]!==void 0){const l=n[o];l===h8?i+=sl(s[o]):l===f8?i+=St.transform(s[o]):i+=s[o]}return i}}const gM=e=>typeof e=="number"?0:e;function vM(e){const t=p8(e);return m8(e)(t.map(gM))}const Ds={test:hM,parse:p8,createTransformer:m8,getAnimatableNone:vM},yM=new Set(["brightness","contrast","saturate","opacity"]);function bM(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ey)||[];if(!r)return e;const s=n.replace(r,"");let i=yM.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const xM=/\b([a-z-]*)\(.*?\)/gu,Zm={...Ds,getAnimatableNone:e=>{const t=e.match(xM);return t?t.map(bM).join(" "):e}},wM={...fy,color:St,backgroundColor:St,outlineColor:St,fill:St,stroke:St,borderColor:St,borderTopColor:St,borderRightColor:St,borderBottomColor:St,borderLeftColor:St,filter:Zm,WebkitFilter:Zm},Ry=e=>wM[e];function g8(e,t){let n=Ry(e);return n!==Zm&&(n=Ds),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const CM=new Set(["auto","none","0"]);function _M(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!CM.has(i)&&Bl(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=g8(n,s)}const _b=e=>e===fa||e===ne,jb=(e,t)=>parseFloat(e.split(", ")[t]),Sb=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return jb(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?jb(i[1],e):0}},jM=new Set(["x","y","z"]),SM=ha.filter(e=>!jM.has(e));function kM(e){const t=[];return SM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ea={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Sb(4,13),y:Sb(5,14)};ea.translateX=ea.x;ea.translateY=ea.y;const bi=new Set;let Gm=!1,Jm=!1;function v8(){if(Jm){const e=Array.from(bi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=kM(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var l;(l=r.getValue(i))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Jm=!1,Gm=!1,bi.forEach(e=>e.complete()),bi.clear()}function y8(){bi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jm=!0)})}function TM(){y8(),v8()}class Ay{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(bi.add(this),Gm||(Gm=!0,Oe.read(y8),Oe.resolveKeyframes(v8))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=s==null?void 0:s.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),s&&o===void 0&&s.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),bi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,bi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const b8=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),EM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function NM(e){const t=EM.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function x8(e,t,n=1){const[r,s]=NM(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return b8(o)?parseFloat(o):o}return hy(s)?x8(s,t,n+1):s}const w8=e=>t=>t.test(e),RM={test:e=>e==="auto",parse:e=>e},C8=[fa,ne,fr,ss,b$,y$,RM],kb=e=>C8.find(w8(e));class _8 extends Ay{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),hy(u))){const d=x8(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!X3.has(r)||t.length!==2)return;const[s,i]=t,o=kb(s),l=kb(i);if(o!==l)if(_b(o)&&_b(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)oM(t[s])&&r.push(s);r.length&&_M(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ea[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,l=s[o];s[o]=ea[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const Tb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ds.test(e)||e==="0")&&!e.startsWith("url("));function AM(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function PM(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Tb(s,t),l=Tb(i,t);return!o||!l?!1:AM(e)||(n==="spring"||xy(n))&&r}const $M=e=>e!==null;function Ah(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter($M),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const MM=40;class j8{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=pr.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>MM?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&TM(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=pr.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!PM(t,r,s,i))if(o)this.options.duration=0;else{c&&c(Ah(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Be=(e,t,n)=>e+(t-e)*n;function Wf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function OM({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;s=Wf(c,l,e+1/3),i=Wf(c,l,e),o=Wf(c,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Sd(e,t){return n=>n>0?t:e}const qf=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},IM=[Km,li,mo],DM=e=>IM.find(t=>t.test(e));function Eb(e){const t=DM(e);if(!t)return!1;let n=t.parse(e);return t===mo&&(n=OM(n)),n}const Nb=(e,t)=>{const n=Eb(e),r=Eb(t);if(!n||!r)return Sd(e,t);const s={...n};return i=>(s.red=qf(n.red,r.red,i),s.green=qf(n.green,r.green,i),s.blue=qf(n.blue,r.blue,i),s.alpha=Be(n.alpha,r.alpha,i),li.transform(s))},LM=(e,t)=>n=>t(e(n)),pc=(...e)=>e.reduce(LM),Ym=new Set(["none","hidden"]);function zM(e,t){return Ym.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function FM(e,t){return n=>Be(e,t,n)}function Py(e){return typeof e=="number"?FM:typeof e=="string"?hy(e)?Sd:St.test(e)?Nb:VM:Array.isArray(e)?S8:typeof e=="object"?St.test(e)?Nb:UM:Sd}function S8(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Py(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function UM(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Py(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function BM(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],l=e.indexes[o][s[o]],c=(n=e.values[l])!==null&&n!==void 0?n:0;r[i]=c,s[o]++}return r}const VM=(e,t)=>{const n=Ds.createTransformer(t),r=Bl(e),s=Bl(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Ym.has(e)&&!s.values.length||Ym.has(t)&&!r.values.length?zM(e,t):pc(S8(BM(r,s),s.values),n):Sd(e,t)};function k8(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Be(e,t,n):Py(e)(e,t)}const HM=5;function T8(e,t,n){const r=Math.max(t-HM,0);return e8(n-e(r),t-r)}const Ge={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Kf=.001;function WM({duration:e=Ge.duration,bounce:t=Ge.bounce,velocity:n=Ge.velocity,mass:r=Ge.mass}){let s,i,o=1-t;o=Wr(Ge.minDamping,Ge.maxDamping,o),e=Wr(Ge.minDuration,Ge.maxDuration,Dr(e)),o<1?(s=u=>{const d=u*o,h=d*e,f=d-n,p=Qm(u,o),y=Math.exp(-h);return Kf-f/p*y},i=u=>{const h=u*o*e,f=h*n+n,p=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-h),m=Qm(Math.pow(u,2),o);return(-s(u)+Kf>0?-1:1)*((f-p)*y)/m}):(s=u=>{const d=Math.exp(-u*e),h=(u-n)*e+1;return-Kf+d*h},i=u=>{const d=Math.exp(-u*e),h=(n-u)*(e*e);return d*h});const l=5/e,c=KM(s,i,l);if(e=Ir(e),isNaN(c))return{stiffness:Ge.stiffness,damping:Ge.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const qM=12;function KM(e,t,n){let r=n;for(let s=1;s<qM;s++)r=r-e(r)/t(r);return r}function Qm(e,t){return e*Math.sqrt(1-t*t)}const ZM=["duration","bounce"],GM=["stiffness","damping","mass"];function Rb(e,t){return t.some(n=>e[n]!==void 0)}function JM(e){let t={velocity:Ge.velocity,stiffness:Ge.stiffness,damping:Ge.damping,mass:Ge.mass,isResolvedFromDuration:!1,...e};if(!Rb(e,GM)&&Rb(e,ZM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Wr(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Ge.mass,stiffness:s,damping:i}}else{const n=WM(e);t={...t,...n,mass:Ge.mass},t.isResolvedFromDuration=!0}return t}function E8(e=Ge.visualDuration,t=Ge.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=JM({...n,velocity:-Dr(n.velocity||0)}),y=f||0,m=u/(2*Math.sqrt(c*d)),w=o-i,v=Dr(Math.sqrt(c/d)),g=Math.abs(w)<5;r||(r=g?Ge.restSpeed.granular:Ge.restSpeed.default),s||(s=g?Ge.restDelta.granular:Ge.restDelta.default);let x;if(m<1){const _=Qm(v,m);x=S=>{const j=Math.exp(-m*v*S);return o-j*((y+m*v*w)/_*Math.sin(_*S)+w*Math.cos(_*S))}}else if(m===1)x=_=>o-Math.exp(-v*_)*(w+(y+v*w)*_);else{const _=v*Math.sqrt(m*m-1);x=S=>{const j=Math.exp(-m*v*S),k=Math.min(_*S,300);return o-j*((y+m*v*w)*Math.sinh(k)+_*w*Math.cosh(k))/_}}
vendor: 5,499 bytes, line 303
303const C={calculatedDuration:p&&h||null,next:_=>{const S=x(_);if(p)l.done=_>=h;else{let j=0;m<1&&(j=_===0?Ir(y):T8(x,_,S));const k=Math.abs(j)<=r,T=Math.abs(o-S)<=s;l.done=k&&T}return l.value=l.done?o:S,l},toString:()=>{const _=Math.min(q3(C),Hm),S=K3(j=>C.next(_*j).value,_,30);return _+"ms "+S}};return C}function Ab({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:c,restDelta:u=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},p=k=>l!==void 0&&k<l||c!==void 0&&k>c,y=k=>l===void 0?c:c===void 0||Math.abs(l-k)<Math.abs(c-k)?l:c;let m=n*t;const w=h+m,v=o===void 0?w:o(w);v!==w&&(m=v-h);const g=k=>-m*Math.exp(-k/r),x=k=>v+g(k),C=k=>{const T=g(k),R=x(k);f.done=Math.abs(T)<=u,f.value=f.done?v:R};let _,S;const j=k=>{p(f.value)&&(_=k,S=E8({keyframes:[f.value,y(f.value)],velocity:T8(x,k,f.value),damping:s,stiffness:i,restDelta:u,restSpeed:d}))};return j(0),{calculatedDuration:null,next:k=>{let T=!1;return!S&&_===void 0&&(T=!0,C(k),j(k)),_!==void 0&&k>=_?S.next(k-_):(!T&&C(k),f)}}}const YM=fc(.42,0,1,1),QM=fc(0,0,.58,1),N8=fc(.42,0,.58,1),XM=e=>Array.isArray(e)&&typeof e[0]!="number",Pb={linear:Xt,easeIn:YM,easeInOut:N8,easeOut:QM,circIn:Ty,circInOut:c8,circOut:l8,backIn:ky,backInOut:o8,backOut:i8,anticipate:a8},$b=e=>{if(wy(e)){Bm(e.length===4);const[t,n,r,s]=e;return fc(t,n,r,s)}else if(typeof e=="string")return Bm(Pb[e]!==void 0),Pb[e];return e};function eO(e,t,n){const r=[],s=n||k8,i=e.length-1;for(let o=0;o<i;o++){let l=s(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||Xt:t;l=pc(c,l)}r.push(l)}return r}function tO(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Bm(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=eO(t,r,s),c=l.length,u=d=>{if(o&&d<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=Qo(e[h],e[h+1],d);return l[h](f)};return n?d=>u(Wr(e[0],e[i-1],d)):u}function nO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Qo(0,t,r);e.push(Be(n,1,s))}}function rO(e){const t=[0];return nO(t,e.length-1),t}function sO(e,t){return e.map(n=>n*t)}function iO(e,t){return e.map(()=>t||N8).splice(0,e.length-1)}function kd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=XM(r)?r.map($b):$b(r),i={done:!1,value:t[0]},o=sO(n&&n.length===t.length?n:rO(t),e),l=tO(o,t,{ease:Array.isArray(s)?s:iO(t,s)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const oO=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Oe.update(t,!0),stop:()=>Is(t),now:()=>mt.isProcessing?mt.timestamp:pr.now()}},aO={decay:Ab,inertia:Ab,tween:kd,keyframes:kd,spring:E8},lO=e=>e/100;class $y extends j8{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Ay,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new o(i,l,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,l=xy(n)?n:aO[n]||kd;let c,u;l!==kd&&typeof t[0]!="number"&&(c=pc(lO,k8(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});i==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=q3(d));const{calculatedDuration:h}=d,f=h+s,p=f*(r+1)-s;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:y,repeatDelay:m,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>d;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let x=this.currentTime,C=i;if(p){const k=Math.min(this.currentTime,d)/h;let T=Math.floor(k),R=k%1;!R&&k>=1&&(R=1),R===1&&T--,T=Math.min(T,p+1),!!(T%2)&&(y==="reverse"?(R=1-R,m&&(R-=m/h)):y==="mirror"&&(C=o)),x=Wr(0,1,R)*h}const _=g?{done:!1,value:c[0]}:C.next(x);l&&(_.value=l(_.value));let{done:S}=_;!g&&u!==null&&(S=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return j&&s!==void 0&&(_.value=Ah(c,this.options,s)),w&&w(_.value),j&&this.finish(),_}get duration(){const{resolved:t}=this;return t?Dr(t.calculatedDuration):0}
vendor: 54,403 bytes, line 303
303get time(){return Dr(this.currentTime)}set time(t){t=Ir(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Dr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=oO,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const cO=new Set(["opacity","clipPath","filter","transform"]);function uO(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=G3(l,s);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const dO=iy(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Td=10,hO=2e4;function fO(e){return xy(e.type)||e.type==="spring"||!Z3(e.ease)}function pO(e,t){const n=new $y({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&i<hO;)r=n.sample(i),s.push(r.value),i+=Td;return{times:void 0,keyframes:s,duration:i-Td,ease:"linear"}}const R8={anticipate:a8,backInOut:o8,circInOut:c8};function mO(e){return e in R8}class Mb extends j8{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:i}=this.options;this.resolver=new _8(i,(o,l)=>this.onKeyframesResolved(o,l),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof i=="string"&&jd()&&mO(i)&&(i=R8[i]),fO(this.options)){const{onComplete:h,onUpdate:f,motionValue:p,element:y,...m}=this.options,w=pO(t,m);t=w.keyframes,t.length===1&&(t[1]=t[0]),r=w.duration,s=w.times,i=w.ease,o="keyframes"}const d=uO(l.owner.current,c,t,{...this.options,duration:r,times:s,ease:i});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(vb(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;l.set(Ah(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Dr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Dr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ir(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Xt;const{animation:r}=n;vb(r,t)}return Xt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:h,element:f,...p}=this.options,y=new $y({...p,keyframes:r,duration:s,type:i,ease:o,times:l,isGenerator:!0}),m=Ir(this.time);u.setWithVelocity(y.sample(m-Td).value,y.sample(m).value,Td)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return dO()&&r&&cO.has(r)&&!c&&!u&&!s&&i!=="mirror"&&o!==0&&l!=="inertia"}}const gO={type:"spring",stiffness:500,damping:25,restSpeed:10},vO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yO={type:"keyframes",duration:.8},bO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xO=(e,{keyframes:t})=>t.length>2?yO:Mi.has(e)?e.startsWith("scale")?vO(t[1]):gO:bO;function wO({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const My=(e,t,n,r={},s,i)=>o=>{const l=by(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Ir(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:s};wO(l)||(d={...d,...xO(e,d)}),d.duration&&(d.duration=Ir(d.duration)),d.repeatDelay&&(d.repeatDelay=Ir(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!i&&t.get()!==void 0){const f=Ah(d.keyframes,l);if(f!==void 0)return Oe.update(()=>{d.onUpdate(f),d.onComplete()}),new U$([])}return!i&&Mb.supports(d)?new Mb(d):new $y(d)};function CO({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function A8(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(o=r);const u=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const h in c){const f=e.getValue(h,(i=e.latestValues[h])!==null&&i!==void 0?i:null),p=c[h];if(p===void 0||d&&CO(d,h))continue;const y={delay:n,...by(o||{},h)};let m=!1;if(window.MotionHandoffAnimation){const v=t8(e);if(v){const g=window.MotionHandoffAnimation(v,h,Oe);g!==null&&(y.startTime=g,m=!0)}}qm(e,h),f.start(My(h,f,p,e.shouldReduceMotion&&X3.has(h)?{type:!1}:y,e,m));const w=f.animation;w&&u.push(w)}return l&&Promise.all(u).then(()=>{Oe.update(()=>{l&&tM(e,l)})}),u}function Xm(e,t,n={}){var r;const s=Rh(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(A8(e,s,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=i;return _O(e,t,d+u,h,f,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[u,d]=c==="beforeChildren"?[o,l]:[l,o];return u().then(()=>d())}else return Promise.all([o(),l(n.delay)])}function _O(e,t,n=0,r=0,s=1,i){const o=[],l=(e.variantChildren.size-1)*r,c=s===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(jO).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(Xm(u,t,{...i,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function jO(e,t){return e.sortNodePosition(t)}function SO(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Xm(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Xm(e,t,n);else{const s=typeof t=="function"?Rh(e,t,n.custom):t;r=Promise.all(A8(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const kO=ay.length;function P8(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?P8(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<kO;n++){const r=ay[n],s=e.props[r];(zl(s)||s===!1)&&(t[r]=s)}return t}const TO=[...oy].reverse(),EO=oy.length;function NO(e){return t=>Promise.all(t.map(({animation:n,options:r})=>SO(e,n,r)))}function RO(e){let t=NO(e),n=Ob(),r=!0;const s=c=>(u,d)=>{var h;const f=Rh(e,d,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:p,transitionEnd:y,...m}=f;u={...u,...m,...y}}return u};function i(c){t=c(e)}function o(c){const{props:u}=e,d=P8(e.parent)||{},h=[],f=new Set;let p={},y=1/0;for(let w=0;w<EO;w++){const v=TO[w],g=n[v],x=u[v]!==void 0?u[v]:d[v],C=zl(x),_=v===c?g.isActive:null;_===!1&&(y=w);let S=x===d[v]&&x!==u[v]&&C;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),g.protectedKeys={...p},!g.isActive&&_===null||!x&&!g.prevProp||Eh(x)||typeof x=="boolean")continue;const j=AO(g.prevProp,x);let k=j||v===c&&g.isActive&&!S&&C||w>y&&C,T=!1;const R=Array.isArray(x)?x:[x];let D=R.reduce(s(v),{});_===!1&&(D={});const{prevResolvedValues:O={}}=g,W={...O,...D},L=V=>{k=!0,f.has(V)&&(T=!0,f.delete(V)),g.needsAnimating[V]=!0;const N=e.getValue(V);N&&(N.liveStyle=!1)};for(const V in W){const N=D[V],P=O[V];if(p.hasOwnProperty(V))continue;let A=!1;Vm(N)&&Vm(P)?A=!W3(N,P):A=N!==P,A?N!=null?L(V):f.add(V):N!==void 0&&f.has(V)?L(V):g.protectedKeys[V]=!0}g.prevProp=x,g.prevResolvedValues=D,g.isActive&&(p={...p,...D}),r&&e.blockInitialAnimation&&(k=!1),k&&(!(S&&j)||T)&&h.push(...R.map(V=>({animation:V,options:{type:v}})))}if(f.size){const w={};f.forEach(v=>{const g=e.getBaseTarget(v),x=e.getValue(v);x&&(x.liveStyle=!0),w[v]=g??null}),h.push({animation:w})}let m=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(h):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(c,u)}),n[c].isActive=u;const h=o(c);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Ob(),r=!0}}}function AO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!W3(t,e):!1}function Js(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ob(){return{animate:Js(!0),whileInView:Js(),whileHover:Js(),whileTap:Js(),whileDrag:Js(),whileFocus:Js(),exit:Js()}}class Vs{constructor(t){this.isMounted=!1,this.node=t}update(){}}class PO extends Vs{constructor(t){super(t),t.animationState||(t.animationState=RO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Eh(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let $O=0;class MO extends Vs{constructor(){super(...arguments),this.id=$O++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const OO={animation:{Feature:PO},exit:{Feature:MO}};function Vl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function mc(e){return{point:{x:e.pageX,y:e.pageY}}}const IO=e=>t=>Cy(t)&&e(t,mc(t));function il(e,t,n,r){return Vl(e,t,IO(n),r)}const Ib=(e,t)=>Math.abs(e-t);function DO(e,t){const n=Ib(e.x,t.x),r=Ib(e.y,t.y);return Math.sqrt(n**2+r**2)}class $8{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Gf(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=DO(h.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:y}=h,{timestamp:m}=mt;this.history.push({...y,timestamp:m});const{onStart:w,onMove:v}=this.handlers;f||(w&&w(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Zf(f,this.transformPagePoint),Oe.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Gf(h.type==="pointercancel"?this.lastMoveEventInfo:Zf(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,w),y&&y(h,w)},!Cy(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=mc(t),l=Zf(o,this.transformPagePoint),{point:c}=l,{timestamp:u}=mt;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Gf(l,this.history)),this.removeListeners=pc(il(this.contextWindow,"pointermove",this.handlePointerMove),il(this.contextWindow,"pointerup",this.handlePointerUp),il(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Is(this.updatePoint)}}function Zf(e,t){return t?{point:t(e.point)}:e}function Db(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gf({point:e},t){return{point:e,delta:Db(e,M8(t)),offset:Db(e,LO(t)),velocity:zO(t,.1)}}function LO(e){return e[0]}function M8(e){return e[e.length-1]}function zO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=M8(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Ir(t)));)n--;if(!r)return{x:0,y:0};const i=Dr(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const O8=1e-4,FO=1-O8,UO=1+O8,I8=.01,BO=0-I8,VO=0+I8;function tn(e){return e.max-e.min}function HO(e,t,n){return Math.abs(e-t)<=n}function Lb(e,t,n,r=.5){e.origin=r,e.originPoint=Be(t.min,t.max,e.origin),e.scale=tn(n)/tn(t),e.translate=Be(n.min,n.max,e.origin)-e.originPoint,(e.scale>=FO&&e.scale<=UO||isNaN(e.scale))&&(e.scale=1),(e.translate>=BO&&e.translate<=VO||isNaN(e.translate))&&(e.translate=0)}function ol(e,t,n,r){Lb(e.x,t.x,n.x,r?r.originX:void 0),Lb(e.y,t.y,n.y,r?r.originY:void 0)}function zb(e,t,n){e.min=n.min+t.min,e.max=e.min+tn(t)}function WO(e,t,n){zb(e.x,t.x,n.x),zb(e.y,t.y,n.y)}function Fb(e,t,n){e.min=t.min-n.min,e.max=e.min+tn(t)}function al(e,t,n){Fb(e.x,t.x,n.x),Fb(e.y,t.y,n.y)}function qO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Be(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Be(n,e,r.max):Math.min(e,n)),e}function Ub(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function KO(e,{top:t,left:n,bottom:r,right:s}){return{x:Ub(e.x,n,s),y:Ub(e.y,t,r)}}function Bb(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ZO(e,t){return{x:Bb(e.x,t.x),y:Bb(e.y,t.y)}}function GO(e,t){let n=.5;const r=tn(e),s=tn(t);return s>r?n=Qo(t.min,t.max-r,e.min):r>s&&(n=Qo(e.min,e.max-s,t.min)),Wr(0,1,n)}function JO(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const eg=.35;function YO(e=eg){return e===!1?e=0:e===!0&&(e=eg),{x:Vb(e,"left","right"),y:Vb(e,"top","bottom")}}function Vb(e,t,n){return{min:Hb(e,t),max:Hb(e,n)}}function Hb(e,t){return typeof e=="number"?e:e[t]||0}const Wb=()=>({translate:0,scale:1,origin:0,originPoint:0}),go=()=>({x:Wb(),y:Wb()}),qb=()=>({min:0,max:0}),Qe=()=>({x:qb(),y:qb()});function an(e){return[e("x"),e("y")]}function D8({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function QO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function XO(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Jf(e){return e===void 0||e===1}function tg({scale:e,scaleX:t,scaleY:n}){return!Jf(e)||!Jf(t)||!Jf(n)}function ni(e){return tg(e)||L8(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function L8(e){return Kb(e.x)||Kb(e.y)}function Kb(e){return e&&e!=="0%"}function Ed(e,t,n){const r=e-n,s=t*r;return n+s}function Zb(e,t,n,r,s){return s!==void 0&&(e=Ed(e,s,r)),Ed(e,n,r)+t}function ng(e,t=0,n=1,r,s){e.min=Zb(e.min,t,n,r,s),e.max=Zb(e.max,t,n,r,s)}function z8(e,{x:t,y:n}){ng(e.x,t.translate,t.scale,t.originPoint),ng(e.y,n.translate,n.scale,n.originPoint)}const Gb=.999999999999,Jb=1.0000000000001;function eI(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let l=0;l<s;l++){i=n[l],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&yo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,z8(e,o)),r&&ni(i.latestValues)&&yo(e,i.latestValues))}t.x<Jb&&t.x>Gb&&(t.x=1),t.y<Jb&&t.y>Gb&&(t.y=1)}function vo(e,t){e.min=e.min+t,e.max=e.max+t}function Yb(e,t,n,r,s=.5){const i=Be(e.min,e.max,s);ng(e,t,n,i,r)}function yo(e,t){Yb(e.x,t.x,t.scaleX,t.scale,t.originX),Yb(e.y,t.y,t.scaleY,t.scale,t.originY)}function F8(e,t){return D8(XO(e.getBoundingClientRect(),t))}function tI(e,t,n){const r=F8(e,n),{scroll:s}=t;return s&&(vo(r.x,s.offset.x),vo(r.y,s.offset.y)),r}const U8=({current:e})=>e?e.ownerDocument.defaultView:null,nI=new WeakMap;class rI{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Qe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(mc(d).point)},i=(d,h)=>{const{drag:f,dragPropagation:p,onDragStart:y}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=J$(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),an(w=>{let v=this.getAxisMotionValue(w).get()||0;if(fr.test(v)){const{projection:g}=this.visualElement;if(g&&g.layout){const x=g.layout.layoutBox[w];x&&(v=tn(x)*(parseFloat(v)/100))}}this.originPoint[w]=v}),y&&Oe.postRender(()=>y(d,h)),qm(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},o=(d,h)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:y,onDrag:m}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:w}=h;if(p&&this.currentDirection===null){this.currentDirection=sI(w),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,w),this.updateAxis("y",h.point,w),this.visualElement.render(),m&&m(d,h)},l=(d,h)=>this.stop(d,h),c=()=>an(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new $8(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:U8(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&Oe.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Gc(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=qO(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&po(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=KO(s.layoutBox,n):this.constraints=!1,this.elastic=YO(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&an(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=JO(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!po(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=tI(r,s.root,this.visualElement.getTransformPagePoint());let o=ZO(s.layout.layoutBox,i);if(n){const l=n(QO(o));this.hasMutatedConstraints=!!l,l&&(o=D8(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=an(d=>{if(!Gc(d,n,this.currentDirection))return;let h=c&&c[d]||{};o&&(h={min:0,max:0});const f=s?200:1e6,p=s?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,y)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return qm(this.visualElement,t),r.start(My(t,r,0,n,this.visualElement,!1))}stopAnimation(){an(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){an(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){an(n=>{const{drag:r}=this.getProps();if(!Gc(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:l}=s.layout.layoutBox[n];i.set(t[n]-Be(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!po(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};an(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();s[o]=GO({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),an(o=>{if(!Gc(o,t,null))return;const l=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];l.set(Be(c,u,s[o]))})}addListeners(){if(!this.visualElement.current)return;nI.set(this.visualElement,this);const t=this.visualElement.current,n=il(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();po(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Oe.read(r);const o=Vl(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(an(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=eg,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function Gc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function sI(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class iI extends Vs{constructor(t){super(t),this.removeGroupControls=Xt,this.removeListeners=Xt,this.controls=new rI(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qb=e=>(t,n)=>{e&&Oe.postRender(()=>e(t,n))};class oI extends Vs{constructor(){super(...arguments),this.removePointerDownListener=Xt}onPointerDown(t){this.session=new $8(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:U8(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Qb(t),onStart:Qb(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&Oe.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=il(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Iu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;const n=Xb(e,t.target.x),r=Xb(e,t.target.y);return`${n}% ${r}%`}},aI={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Ds.parse(e);if(s.length>5)return r;const i=Ds.createTransformer(e),o=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;s[0+o]/=l,s[1+o]/=c;const u=Be(l,c,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),i(s)}};class lI extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;N$(cI),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Iu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Oe.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),cy.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function B8(e){const[t,n]=HP(),r=b.useContext(S3);return a.jsx(lI,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(P3),isPresent:t,safeToRemove:n})}const cI={borderRadius:{...Pa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pa,borderTopRightRadius:Pa,borderBottomLeftRadius:Pa,borderBottomRightRadius:Pa,boxShadow:aI};function uI(e,t,n){const r=Tt(e)?e:Ul(e);return r.start(My("",r,t,n)),r.animation}function dI(e){return e instanceof SVGElement&&e.tagName!=="svg"}const hI=(e,t)=>e.depth-t.depth;class fI{constructor(){this.children=[],this.isDirty=!1}add(t){_y(this.children,t),this.isDirty=!0}remove(t){jy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hI),this.isDirty=!1,this.children.forEach(t)}}function pI(e,t){const n=pr.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Is(r),e(i-t))};return Oe.read(r,!0),()=>Is(r)}const V8=["TopLeft","TopRight","BottomLeft","BottomRight"],mI=V8.length,ex=e=>typeof e=="string"?parseFloat(e):e,tx=e=>typeof e=="number"||ne.test(e);function gI(e,t,n,r,s,i){s?(e.opacity=Be(0,n.opacity!==void 0?n.opacity:1,vI(r)),e.opacityExit=Be(t.opacity!==void 0?t.opacity:1,0,yI(r))):i&&(e.opacity=Be(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<mI;o++){const l=`border${V8[o]}Radius`;let c=nx(t,l),u=nx(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||tx(c)===tx(u)?(e[l]=Math.max(Be(ex(c),ex(u),r),0),(fr.test(u)||fr.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=Be(t.rotate||0,n.rotate||0,r))}function nx(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const vI=H8(0,.5,l8),yI=H8(.5,.95,Xt);function H8(e,t,n){return r=>r<e?0:r>t?1:n(Qo(e,t,r))}function rx(e,t){e.min=t.min,e.max=t.max}function sn(e,t){rx(e.x,t.x),rx(e.y,t.y)}function sx(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ix(e,t,n,r,s){return e-=t,e=Ed(e,1/n,r),s!==void 0&&(e=Ed(e,1/s,r)),e}function bI(e,t=0,n=1,r=.5,s,i=e,o=e){if(fr.test(t)&&(t=parseFloat(t),t=Be(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=Be(i.min,i.max,r);e===i&&(l-=t),e.min=ix(e.min,t,n,l,s),e.max=ix(e.max,t,n,l,s)}function ox(e,t,[n,r,s],i,o){bI(e,t[n],t[r],t[s],t.scale,i,o)}const xI=["x","scaleX","originX"],wI=["y","scaleY","originY"];function ax(e,t,n,r){ox(e.x,t,xI,n?n.x:void 0,r?r.x:void 0),ox(e.y,t,wI,n?n.y:void 0,r?r.y:void 0)}function lx(e){return e.translate===0&&e.scale===1}function W8(e){return lx(e.x)&&lx(e.y)}function cx(e,t){return e.min===t.min&&e.max===t.max}function CI(e,t){return cx(e.x,t.x)&&cx(e.y,t.y)}function ux(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q8(e,t){return ux(e.x,t.x)&&ux(e.y,t.y)}function dx(e){return tn(e.x)/tn(e.y)}function hx(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _I{constructor(){this.members=[]}add(t){_y(this.members,t),t.scheduleRender()}remove(t){if(jy(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jI(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:f,skewX:p,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),y&&(r+=`skewY(${y}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const ri={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ua=typeof window<"u"&&window.MotionDebug!==void 0,Yf=["","X","Y","Z"],SI={visibility:"hidden"},fx=1e3;let kI=0;function Qf(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function K8(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=t8(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Oe,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&K8(r)}function Z8({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},l=t==null?void 0:t()){this.id=kI++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ua&&(ri.totalNodes=ri.resolvedTargetDeltas=ri.recalculatedProjection=0),this.nodes.forEach(NI),this.nodes.forEach(MI),this.nodes.forEach(OI),this.nodes.forEach(RI),Ua&&window.MotionDebug.record(ri)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new fI)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Sy),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=dI(o),this.instance=o;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let h;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=pI(f,250),Iu.hasAnimatedSinceResize&&(Iu.hasAnimatedSinceResize=!1,this.nodes.forEach(mx))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||d.getDefaultTransition()||FI,{onLayoutAnimationStart:w,onLayoutAnimationComplete:v}=d.getProps(),g=!this.targetLayout||!q8(this.targetLayout,y)||p,x=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,x);const C={...by(m,"layout"),onPlay:w,onComplete:v};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else f||mx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Is(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(II),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&K8(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(px);return}this.isUpdating||this.nodes.forEach(PI),this.isUpdating=!1,this.nodes.forEach($I),this.nodes.forEach(TI),this.nodes.forEach(EI),this.clearAllSnapshots();const l=pr.now();mt.delta=Wr(0,1e3/60,l-mt.timestamp),mt.timestamp=l,mt.isProcessing=!0,Bf.update.process(mt),Bf.preRender.process(mt),Bf.render.process(mt),mt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(AI),this.sharedNodes.forEach(DI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Oe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Oe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Qe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!W8(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(l||ni(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),UI(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return Qe();const c=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(BI))){const{scroll:d}=this.root;d&&(vo(c.x,d.offset.x),vo(c.y,d.offset.y))}return c}removeElementScroll(o){var l;const c=Qe();if(sn(c,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:h,options:f}=d;d!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&sn(c,o),vo(c.x,h.offset.x),vo(c.y,h.offset.y))}return c}applyTransform(o,l=!1){const c=Qe();sn(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&yo(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ni(d.latestValues)&&yo(c,d.latestValues)}return ni(this.latestValues)&&yo(c,this.latestValues),c}removeTransform(o){const l=Qe();sn(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!ni(u.latestValues))continue;tg(u.latestValues)&&u.updateSnapshot();const d=Qe(),h=u.measurePageBox();sn(d,h),ax(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ni(this.latestValues)&&ax(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==mt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=mt.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Qe(),this.relativeTargetOrigin=Qe(),al(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Qe(),this.targetWithTransforms=Qe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),WO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),z8(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Qe(),this.relativeTargetOrigin=Qe(),al(this.relativeTargetOrigin,this.target,p.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ua&&ri.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||tg(this.parent.latestValues)||L8(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===mt.timestamp&&(u=!1),u)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;sn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;eI(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Qe());const{target:y}=l;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(sx(this.prevProjectionDelta.x,this.projectionDelta.x),sx(this.prevProjectionDelta.y,this.projectionDelta.y)),ol(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!hx(this.projectionDelta.x,this.prevProjectionDelta.x)||!hx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),Ua&&ri.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=go(),this.projectionDelta=go(),this.projectionDeltaWithTransform=go()}setAnimationOrigin(o,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},h=go();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=Qe(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,w=this.getStack(),v=!w||w.members.length<=1,g=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(zI));this.animationProgress=0;let x;this.mixTargetDelta=C=>{const _=C/1e3;gx(h.x,o.x,_),gx(h.y,o.y,_),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(al(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LI(this.relativeTarget,this.relativeTargetOrigin,f,_),x&&CI(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Qe()),sn(x,this.relativeTarget)),m&&(this.animationValues=d,gI(d,u,this.latestValues,_,g,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Is(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Oe.update(()=>{Iu.hasAnimatedSinceResize=!0,this.currentAnimation=uI(0,fx,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=o;if(!(!l||!c||!u)){if(this!==o&&this.layout&&u&&G8(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Qe();const h=tn(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const f=tn(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}sn(l,c),yo(l,d),ol(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new _I),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Qf("z",o,u,this.animationValues);for(let d=0;d<Yf.length;d++)Qf(`rotate${Yf[d]}`,o,u,this.animationValues),Qf(`skew${Yf[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return SI;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Mu(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=Mu(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!ni(this.latestValues)&&(m.transform=d?d({},""):"none",this.hasProjected=!1),m}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=jI(this.projectionDeltaWithTransform,this.treeScale,f),d&&(u.transform=d(f,u.transform));const{x:p,y}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${y.origin*100}% 0`,h.animationValues?u.opacity=h===this?(c=(l=f.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const m in _d){if(f[m]===void 0)continue;const{correct:w,applyTo:v}=_d[m],g=u.transform==="none"?f[m]:w(f[m],h);if(v){const x=v.length;for(let C=0;C<x;C++)u[v[C]]=g}else u[m]=g}return this.options.layoutId&&(u.pointerEvents=h===this?Mu(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(px),this.root.sharedNodes.clear()}}}function TI(e){e.updateLayout()}function EI(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?an(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],p=tn(f);f.min=r[h].min,f.max=f.min+p}):G8(i,n.layoutBox,r)&&an(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],p=tn(r[h]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+p)});const l=go();ol(l,r,n.layoutBox);const c=go();o?ol(c,e.applyTransform(s,!0),n.measuredBox):ol(c,r,n.layoutBox);const u=!W8(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:p}=h;if(f&&p){const y=Qe();al(y,n.layoutBox,f.layoutBox);const m=Qe();al(m,r,p.layoutBox),q8(y,m)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=y,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function NI(e){Ua&&ri.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function RI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function AI(e){e.clearSnapshot()}function px(e){e.clearMeasurements()}function PI(e){e.isLayoutDirty=!1}function $I(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function MI(e){e.resolveTargetDelta()}function OI(e){e.calcProjection()}
vendor: 6,595 bytes, line 303
303function II(e){e.resetSkewAndRotation()}function DI(e){e.removeLeadSnapshot()}function gx(e,t,n){e.translate=Be(t.translate,0,n),e.scale=Be(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vx(e,t,n,r){e.min=Be(t.min,n.min,r),e.max=Be(t.max,n.max,r)}function LI(e,t,n,r){vx(e.x,t.x,n.x,r),vx(e.y,t.y,n.y,r)}function zI(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const FI={duration:.45,ease:[.4,0,.1,1]},yx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bx=yx("applewebkit/")&&!yx("chrome/")?Math.round:Xt;function xx(e){e.min=bx(e.min),e.max=bx(e.max)}function UI(e){xx(e.x),xx(e.y)}function G8(e,t,n){return e==="position"||e==="preserve-aspect"&&!HO(dx(t),dx(n),.2)}function BI(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const VI=Z8({attachResizeListener:(e,t)=>Vl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xf={current:void 0},J8=Z8({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xf.current){const e=new VI({});e.mount(window),e.setOptions({layoutScroll:!0}),Xf.current=e}return Xf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),HI={pan:{Feature:oI},drag:{Feature:iI,ProjectionNode:J8,MeasureLayout:B8}};function wx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Oe.postRender(()=>i(t,mc(t)))}class WI extends Vs{mount(){const{current:t}=this.node;t&&(this.unmount=W$(t,n=>(wx(this.node,n,"Start"),r=>wx(this.node,r,"End"))))}unmount(){}}class qI extends Vs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pc(Vl(this.node.current,"focus",()=>this.onFocus()),Vl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Cx(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&Oe.postRender(()=>i(t,mc(t)))}class KI extends Vs{mount(){const{current:t}=this.node;t&&(this.unmount=G$(t,n=>(Cx(this.node,n,"Start"),(r,{success:s})=>Cx(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const rg=new WeakMap,ep=new WeakMap,ZI=e=>{const t=rg.get(e.target);t&&t(e)},GI=e=>{e.forEach(ZI)};function JI({root:e,...t}){const n=e||document;ep.has(n)||ep.set(n,{});const r=ep.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(GI,{root:e,...t})),r[s]}function YI(e,t,n){const r=JI(t);return rg.set(e,n),r.observe(e),()=>{rg.delete(e),r.unobserve(e)}}const QI={some:0,all:1};class XI extends Vs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:QI[s]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=u?d:h;f&&f(c)};return YI(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(eD(t,n))&&this.startObserver()}unmount(){}}function eD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const tD={inView:{Feature:XI},tap:{Feature:KI},focus:{Feature:qI},hover:{Feature:WI}},nD={layout:{ProjectionNode:J8,MeasureLayout:B8}},Nd={current:null},Oy={current:!1};function Y8(){if(Oy.current=!0,!!sy)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Nd.current=e.matches;e.addListener(t),t()}else Nd.current=!1}const rD=[...C8,St,Ds],sD=e=>rD.find(w8(e)),_x=new WeakMap;function iD(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Tt(s))e.addValue(r,s);else if(Tt(i))e.addValue(r,Ul(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Ul(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const jx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class oD{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ay,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=pr.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Oe.render(this.render,!1,!0))};const{latestValues:c,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=Nh(n),this.isVariantNode=R3(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const y=f[p];c[p]!==void 0&&Tt(y)&&y.set(c[p],!1)}}mount(t){this.current=t,_x.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 5,772 bytes, line 303
303h((n,r)=>this.bindToMotionValue(r,n)),Oy.current||Y8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Nd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){_x.delete(this.current),this.projection&&this.projection.unmount(),Is(this.notifyUpdate),Is(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Mi.has(t),s=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Oe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Xo){const n=Xo[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Qe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<jx.length;r++){const s=jx[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=iD(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ul(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(b8(s)||u8(s))?s=parseFloat(s):!sD(s)&&Ds.test(n)&&(s=g8(t,n)),this.setBaseTarget(t,Tt(s)?s.get():s)),Tt(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=dy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Tt(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Sy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Q8 extends oD{constructor(){super(...arguments),this.KeyframeResolver=_8}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Tt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function aD(e){return window.getComputedStyle(e)}class lD extends Q8{constructor(){super(...arguments),this.type="html",this.renderInstance=z3}readValueFromInstance(t,n){if(Mi.has(n)){const r=Ry(n);return r&&r.default||0}else{const r=aD(t),s=(I3(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return F8(t,n)}build(t,n,r){py(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return yy(t,n,r)}}class cD extends Q8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Qe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Mi.has(n)){const r=Ry(n);return r&&r.default||0}return n=F3.has(n)?n:ly(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return V3(t,n,r)}
303build(t,n,r){my(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){U3(t,n,r,s)}mount(t){this.isSVGTag=vy(t.tagName),super.mount(t)}}const uD=(e,t)=>uy(e)?new cD(t):new lD(t,{allowProjection:e!==b.Fragment}),dD=L$({...OO,...tD,...HI,...nD},uD),Kt=XP(dD);function Iy(){!Oy.current&&Y8();const[e]=b.useState(Nd.current);return e}const Ui=({children:e,className:t,as:n="section",stagger:r=.12,delay:s=0})=>{const i=Iy(),o=n==="section"?Kt.section:Kt.div;return a.jsx(o,{className:t,initial:i?"visible":"hidden",whileInView:"visible",viewport:{once:!0,margin:"-80px"},variants:{hidden:{},visible:i?{}:{transition:{staggerChildren:r,delayChildren:s}}},children:e})},tr=({children:e,className:t})=>{const n=Iy();return a.jsx(Kt.div,{className:t,variants:{hidden:n?{}:{opacity:0,y:24},visible:n?{}:{opacity:1,y:0,transition:{duration:.55,ease:"easeOut"}}},children:e})},tp={w:1e3,h:936.6,d:"M0,0C1,1 91,1 202,1C312,1 403,1 403,2C403,2 397,5 390,9C383,13 370,19 363,23C355,27 347,31 345,32C340,34 340,35 349,93C353,115 368,230 371,256C372,264 372,264 364,266C360,267 354,269 351,270C348,271 342,272 339,273C331,275 330,275 328,276C325,277 289,287 275,290C251,296 214,295 191,288C179,285 180,284 182,294C187,313 195,352 197,362C200,376 198,376 227,362C259,346 309,325 345,311C356,307 367,303 369,302C375,299 377,299 378,303C380,310 392,415 400,489C403,517 406,542 406,545C407,551 407,551 385,554C359,559 295,572 266,579C256,582 246,584 245,584C242,585 220,591 197,598C175,604 120,622 110,626C104,629 104,629 101,642C100,649 98,658 97,662C95,666 94,671 94,673C94,675 91,685 89,695C83,717 80,707 116,785C125,805 125,805 116,806C67,814 26,827 13,839C11,841 8,843 5,845C0,849 0,849 0,871C0,893 0,893 17,902C26,908 40,916 48,920C55,925 62,929 64,930C65,930 68,932 71,934C78,938 78,938 78,923C78,902 86,886 100,875C110,868 133,856 139,855C139,855 140,855 141,854C146,851 208,832 222,830C224,830 227,829 228,829C230,828 230,828 257,823C308,814 343,816 386,829C393,831 401,834 403,834C406,835 415,838 423,840C432,843 446,847 453,849C461,851 474,855 482,858C501,864 527,871 547,875C555,877 567,879 572,880C578,882 587,884 594,885C601,887 608,888 609,888C708,909 799,908 885,886C896,883 906,882 907,882C908,882 908,882 9
30308,881C907,881 908,880 911,879C927,876 961,863 988,850C1000,845 1000,845 1000,805C1000,767 1000,765 998,766C989,771 953,786 951,786C950,786 949,787 949,788C949,788 941,792 933,796C915,803 915,803 901,810C895,812 890,814 890,814C890,814 886,816 882,818C878,820 865,825 852,831C839,836 828,840 827,841C820,845 786,852 761,855C741,857 648,857 625,855C602,852 576,849 571,848C568,847 563,846 559,846C536,843 493,833 461,823C385,798 272,790 163,801C155,801 155,801 152,786C146,760 139,728 140,728C140,728 155,730 173,733C254,746 277,748 353,748C468,748 533,739 600,712C610,708 622,704 627,702C641,696 661,688 673,683C679,681 685,679 686,679C686,680 687,680 686,679C686,678 688,677 690,676C693,675 697,674 698,673C699,672 709,668 719,664C730,660 743,655 748,652C777,640 786,636 786,637C787,638 783,654 779,674C774,694 770,714 769,718C768,723 764,739 760,754C745,817 744,810 765,807C774,806 782,805 783,805C784,805 787,801 790,796C793,791 797,784 799,780C805,771 826,736 828,731C829,729 830,728 831,728C831,728 833,725 835,722C836,719 843,708 850,697C856,686 861,677 861,676C861,676 862,675 863,674C864,672 879,648 902,608C909,597 916,585 917,584C921,579 921,576 917,554C913,534 911,519 910,514C910,510 909,510 906,509C897,509 730,520 628,528C614,529 587,532 567,533C526,536 478,541 468,542C460,544 461,546 454,513C438,439 432,397 426,327C422,279 421,284 441,278C457,274 468,271 490,266C524,259 614,258 622,264C625,266 625,261 625,248C623,225 623,216 622,197C621,181 621,178 619,179C611,181 579,193 553,203C547,205 541,207 539,207C538,207 537,208 537,208C537,209 537,209 536,209C534,208 533,208 533,209C533,210 525,213 515,216C505,220 480,228 459,235C422,248 422,248 421,236C420,225 421,65 422,56C422,54 423,42 423,28C424,15 425,4 425,3C425,2 522,2 713,1C970,0 947,0 500,0C225,0 0,0 0,0ZM841,558C846,559 846,559 842,561C822,573 711,627 700,631C698,632 694,633 690,635C687,637 684,638 683,637C683,637 683,637 683,638C683,639 682,640 681,640C680,640 677,641 674,642C661,648 651,652 630,660C618,665 604,671 600,673C595,674 591,676 589,675C588,675 587,675 587,676C588,676 579,680 576,680C576,680 575,681 574,681C573,682 551,689 522,698C506,703 507,704 499,679C493,660 489,647 475,600C468,576 468,579 480,577C516,571 550,567 585,564C590,564 596,563 598,563C600,563 609,562 617,562C625,561 641,560 653,560C695,557 828,556 841,558ZM411,605C412,653 405,716 399,721C390,728 242,715 181,702C159,697 136,689 136,687C136,679 147,645 149,645C150,644 168,640 189,636C210,631 230,627 233,626C240,625 252,622 268,618C275,617 283,615 286,614C289,614 314,609 343,603C371,597 396,592 399,592C411,589 411,589 411,605Z"},np={w:1e3,h:46.8,d:"M66,23C66,46 66,46 69,46C72,46 72,46 72,29C72,13 72,13 89,30C105,47 105,47 105,25C105,0 106,1 102,2C100,2 100,2 100,18C99,34 99,34 84,18C75,9 68,1 68,1C67,-2 66,3 66,23ZM112,23C112,46 112,46 115,46C118,46 118,46 118,30C118,13 118,13 128,24C154,51 151,51 151,25C151,2 151,2 148,2C146,2 146,2 146,18C145,34 145,34 129,17C120,8 113,0 113,0C112,0 112,10 112,23ZM483,23C483,46 483,46 485,46C488,46 488,46 488,29C489,13 489,13 494,18C516,42 521,47 521,46C521,46 521,36 521,24C521,2 521,2 519,2C516,2 516,2 516,18C516,34 516,34 505,23C480,-3 483,-3 483,23ZM4,23C-1,48 -1,46 2,46C5,46 5,47 8,31C10,17 10,16 11,19C13,23 23,46 24,46C24,46 27,40 30,32C34,24 37,17 37,17C37,17 38,22 39,27C40,36 41,39 42,45C43,46 47,47 48,45C48,44 39,1 39,1C39,1 37,4 36,7C29,23 24,34 24,34C23,34 17,20 11,5C10,3 9,1 9,1C8,1 6,11 4,23ZM197,2C186,6 187,17 201,24C209,28 212,31 210,36C207,44 195,43 194,36C193,34 193,33 192,34C191,34 190,34 189,34C188,34 188,37 190,41C198,52 215,47 215,33C215,26 213,23 203,19C196,16 194,14 196,9C198,5 205,5 208,8C210,10 210,10 212,8C218,5 205,-1 197,2ZM234,2C223,6 216,18 219,30C226,54 260,52 264,27C267,11 250,-4 234,2ZM249,8C267,16 260,43 241,42C217,40 219,5 242,6C245,6 247,7 249,8ZM311,5C310,8 306,16 302,24C299,32 295,40 295,41C292,46 292,46 295,46C298,46 298,46 301,40C303,35 303,35 313,35C324,35 324,35 326,40C329,46 329,46 332,46C334,46 334,46 334,45C333,41 314,1 313,1C313,1 312,3 311,5ZM317,20C319,25 321,29 321,29C321,29 318,30 313,30C309,30 306,30 306,29C306,29 313,12 313,12C314,12 315,16 317,20ZM371,1C345,8 349,46 376,46C385,46 388,45 388,41C388,38 388,38 384,40C372,46 359,38 358,24C358,10 373,1 385,8C388,9 388,9 388,6C388,2 379,-1 371,1ZM408,2C392,6 386,28 398,40C409,51 429,48 436,34C444,16 427,-3 408,2ZM423,8C442,18 429,48 408,41C393,35 393,12 408,7C412,5 419,6 423,8ZM543,2C518,10 523,46 549,46C558,46 561,45 561,41C561,38 561,38 557,40C540,49 524,27 536,12C541,6 551,4 558,8C561,9 561,9 561,6C561,2 551,-1 543,2ZM634,2C622,6 616,
30319 620,31C628,56 664,50 664,24C664,8 649,-3 634,2ZM649,7C666,15 661,42 642,42C628,42 620,28 626,16C630,7 640,3 649,7ZM729,2C704,10 709,46 735,46C744,46 747,45 747,41C747,38 747,38 743,40C726,49 710,27 722,12C727,6 738,4 744,8C747,9 747,9 747,6C747,2 737,-1 729,2ZM880,1C855,8 859,46 886,46C895,46 898,45 898,41C898,38 898,38 895,39C877,49 860,27 873,12C878,6 888,4 895,8C898,10 898,10 898,7C898,2 889,-1 880,1ZM982,2C970,6 972,17 985,24C994,28 996,31 994,36C992,44 980,43 978,36C978,34 978,33 976,34C976,34 975,34 974,34C972,34 973,37 975,41C982,52 1000,47 1000,33C1000,26 997,23 988,19C980,16 979,14 981,9C982,5 990,5 993,8C995,10 995,10 997,8C1003,5 990,-1 982,2ZM54,2C53,2 53,12 53,24C53,46 53,46 56,46C58,46 58,46 58,24C58,1 58,1 56,1C55,1 54,2 54,2ZM160,2C160,2 159,12 159,24C159,46 159,46 171,46C183,46 183,46 183,44C183,41 183,41 174,41C164,41 164,41 164,33C164,24 164,24 174,24C183,24 183,24 183,22C182,19 182,19 173,19C164,19 164,19 164,13C164,6 164,6 174,6C183,6 183,6 183,4C183,2 183,2 172,2C165,1 160,2 160,2ZM267,2C264,4 266,6 272,6C277,6 277,6 277,26C277,46 277,46 280,46C283,46 283,46 283,26C283,6 283,6 288,6C293,6 293,6 293,4C293,1 293,1 280,1C273,1 267,2 267,2ZM443,18C443,36 443,39 448,43C456,50 471,47 474,36C476,28 475,1 473,1C470,1 470,1 470,17C470,38 468,42 459,42C450,42 448,39 448,18C448,2 448,2 445,2C443,1 443,1 443,18ZM569,2C568,2 568,12 568,24C568,46 568,46 571,46C574,46 574,2 571,2C570,1 569,2 569,2ZM582,2C582,2 582,12 582,24C582,46 582,46 591,46C601,46 601,46 601,44C601,41 601,41 594,41C587,41 587,41 587,21C587,2 587,2 585,2C584,1 583,2 582,2ZM671,24C671,46 671,46 673,46C676,46 676,46 676,35C676,24 676,24 684,24C691,24 691,24 691,21C691,19 691,19 683,19C676,19 676,19 676,13C676,7 676,7 684,7C692,6 692,6 692,4C692,2 692,2 681,2C671,1 671,1 671,24ZM754,2C754,2 754,12 754,24C754,46 754,46 756,46C759,46 759,46 759,35C759,25 759,25 770,25C781,25 781,25 781,35C781,46 781,46 783,46C786,46 786,46 785,24C785,2 785,2 783,2C781,2 781,2 781,11C781,20 781,20 770,20C759,20 759,20 759,11C759,2 757,-1 754,2ZM793,18C793,34 793,34 795,38C801,51 820,49 824,36C827,28 825,2 823,2C820,1 820,1 820,17C820,39 818,42 809,41C800,41 799,39 798,18C798,2 798,2 796,2C793,1 793,1 793,18ZM834,2C834,2 833,12 833,24C833,46 833,46 836,46C838,46 838,46 838,37C838,27 838,27 840,27C841,27 843,29 848,37C854,46 854,46 857,46C861,46 861,46 857,40C847,28 846,26 849,26C859,26 860,8 851,3C848,2 835,1 834,2ZM847,7C854,9 854,20 846,22C839,24 838,24 838,15C838,6 839,5 847,7ZM904,2C904,2 904,12 904,24C904,46 904,46 907,46C909,46 909,46 909,35C909,25 909,25 920,25C931,25 931,25 931,35C931,46 931,46 933,46C937,46 937,2 933,2C931,1 931,1 931,10C931,20 931,20 920,20C909,20 909,20 909,11C909,2 907,-1 904,2ZM944,2C944,2 944,12 944,24C944,46 944,46 956,46C968,46 968,46 968,44C968,41 968,41 959,41C949,41 949,41 949,33C949,24 949,24 958,24C967,24 967,24 967,22C967,19 967,19 958,19C949,19 949,19 949,13C949,6 949,6 959,6C968,6 968,6 968,4C968,2 968,2 956,2C950,1 945,2 944,2Z"},hD={w:2e3,h:170,reps:2,d:"M0,66C8,67 30,70 45,72C61,73 76,75 91,76C106,76 121,76 136,75C152,74 167,72 182,69C197,66 212,62 227,57C242,52 258,46 273,41C288,35 303,29 318,24C333,19 348,14 364,10C379,7 394,4 409,2C424,0 439,0 455,0C470,0 485,1 500,3C515,4 530,6 545,8C561,10 576,13 591,15C606,17 621,19 636,22C652,24 667,26 682,27C697,29 712,31 727,33C742,34 758,36 773,37C788,39 803,40 818,42C833,43 848,45 864,47C879,49 894,50 909,52C924,54 939,57 955,59C970,61 985,63 1000,66C1015,68 1030,70 1045,72C1061,73 1076,75 1091,76C1106,76 1121,76 1136,75C1152,74 1167,72 1182,69C1197,66 1212,62 1227,57C1242,52 1258,46 1273,41C1288,35 1303,29 1318,24C1333,19 1348,14 1364,10C1379,7 1394,4 1409,2C1424,0 1439,0 1455,0C1470,0 1485,1 1500,3C1515,4 1530,6 1545,8C1561,10 1576,13 1591,15C1606,17 1621,19 1636,22C1652,24 1667,26 1682,27C1697,29 1712,31 1727,33C1742,34 1758,36 1773,37C1788,39 1803,40 1818,42C1833,43 1848,45 1864,47C1879,49 1894,50 1909,52C1924,54 1939,57 1955,59C1970,61 1992,64 2000,66L2000,174L0,174Z"},fD={w:3e3,h:170,reps:3,d:"M0,23C8,22 30,18 45,17C61,15 76,14 91,14C106,14 121,14 136,15C152,16 167,18 182,19C197,21 212,22 227,24C242,26 258,28 273,29C288,31 303,33 318,34C333,36 348,37 364,39C379,40 394,42 409,43C424,44 439,46 455,47C470,49 485,50 500,51C515,53 530,55 545,56C561,58 576,60 591,61C606,63 621,65 636,67C652,68 667,70 682,71C697,72 712,73 727,74C742,74 758,74 773,73C788,72 803,71 818,68C833,66 848,63 864,59C879,56 894,51 909,47C924,43 939,38 955,34C970,30 985,26 1000,23C1015,21 1030,18 1045,17C1061,15 1076,14 1091,14C1106,14 1121,14 1136,15C1152,16 1167,18 1182,19C1197,21 1212,22 1227,24C1242,26 1258,28 1273,29C1288,31 1303,33 1318,34C1333,36 1348,37 1364,39C1379,40 1394,42 1409,43C1424,44 1439,46 1455,47C1470,49 1485,50 1500,51C1515,53 1530,55 1545,56C1561,58 1576,60 1591,61C1606,63 1621,65 1636,67C1652,68 1667,70 1682,71C1697,72 1712,73 1727,74C1742,74 1758,74 1773,73C1788,72 1803,71 1818,68C1833,66 1848,63 1864,59C1879,56 1894,51 1909,47C1924,43 1939,38 1955,34C1970,30 1985,26 2000,23C2015,21 2030,18 2045,17C2061,15 2076,14 2091,14C2106,14 2121,14 2136,15C2152,16 2167,18 2182,19C2197,21 2212,22 2227,24C2242,26 2258,28 2273,29C2288,31 2303,33 2318,34C2333,36 2348,37 2364,39C2379,40 2394,42 2409,43C2424,44 2439,46 2455,47C2470,49 2485,50 2500,51C2515,53 2530,55 2545,56C2561,58 2576,60 2591,61C2606,63 2621,65 2636,67C2652,68 2667,70 2682,71C2697,72 2712,73 2727,74C2742,74 2758,74 2773,73C2788,72 2803,71 2818,68C2833,66 2848,63 2864,59C2879,56 2894,51 2909,47C2924,43 2939,38 2955,34C2970,30 2992,25 3000,23L3000,174L0,174Z"},pD={w:3e3,h:170,reps:3,d:"M0,60C8,60 30,60 45,61C61,61 76,62 91,63C106,64 121,66 136,67C152,69 16
3037,71 182,72C197,74 212,76 227,78C242,79 258,81 273,83C288,84 303,86 318,88C333,90 348,91 364,93C379,95 394,96 409,98C424,100 439,102 455,103C470,105 485,107 500,108C515,110 530,111 545,112C561,114 576,115 591,115C606,116 621,116 636,116C652,116 667,115 682,113C697,112 712,110 727,108C742,105 758,102 773,99C788,96 803,92 818,88C833,85 848,81 864,78C879,75 894,71 909,69C924,66 939,64 955,63C970,61 985,61 1000,60C1015,60 1030,60 1045,61C1061,61 1076,62 1091,63C1106,64 1121,66 1136,67C1152,69 1167,71 1182,72C1197,74 1212,76 1227,78C1242,79 1258,81 1273,83C1288,84 1303,86 1318,88C1333,90 1348,91 1364,93C1379,95 1394,96 1409,98C1424,100 1439,102 1455,103C1470,105 1485,107 1500,108C1515,110 1530,111 1545,112C1561,114 1576,115 1591,115C1606,116 1621,116 1636,116C1652,116 1667,115 1682,113C1697,112 1712,110 1727,108C1742,105 1758,102 1773,99C1788,96 1803,92 1818,88C1833,85 1848,81 1864,78C1879,75 1894,71 1909,69C1924,66 1939,64 1955,63C1970,61 1985,61 2000,60C2015,60 2030,60 2045,61C2061,61 2076,62 2091,63C2106,64 2121,66 2136,67C2152,69 2167,71 2182,72C2197,74 2212,76 2227,78C2242,79 2258,81 2273,83C2288,84 2303,86 2318,88C2333,90 2348,91 2364,93C2379,95 2394,96 2409,98C2424,100 2439,102 2455,103C2470,105 2485,107 2500,108C2515,110 2530,111 2545,112C2561,114 2576,115 2591,115C2606,116 2621,116 2636,116C2652,116 2667,115 2682,113C2697,112 2712,110 2727,108C2742,105 2758,102 2773,99C2788,96 2803,92 2818,88C2833,85 2848,81 2864,78C2879,75 2894,71 2909,69C2924,66 2939,64 2955,63C2970,61 2992,61 3000,60L3000,174L0,174Z"},mD={w:3e3,h:170,reps:3,d:"M0,87C8,88 30,90 45,91C61,93 76,95 91,96C106,98 121,99 136,101C152,103 167,104 182,106C197,108 212,109 227,111C242,113 258,114 273,116C288,117 303,119 318,121C333,122 348,124 364,125C379,127 394,128 409,130C424,131 439,132 455,133C470,133 485,134 500,134C515,134 530,134 545,133C561,132 576,130 591,128C606,126 621,124 636,121C652,118 667,115 682,112C697,109 712,105 727,102C742,99 758,96 773,93C788,91 803,88 818,87C833,85 848,84 864,83C879,82 894,82 909,82C924,82 939,83 955,84C970,85 985,86 1000,87C1015,88 1030,90 1045,91C1061,93 1076,95 1091,96C1106,98 1121,99 1136,101C1152,103 1167,104 1182,106C1197,108 1212,109 1227,111C1242,113 1258,114 1273,116C1288,117 1303,119 1318,121C1333,122 1348,124 1364,125C1379,127 1394,128 1409,130C1424,131 1439,132 1455,133C1470,133 1485,134 1500,134C1515,134 1530,134 1545,133C1561,132 1576,130 1591,128C1606,126 1621,124 1636,121C1652,118 1667,115 1682,112C1697,109 1712,105 1727,102C1742,99 1758,96 1773,93C1788,91 1803,88 1818,87C1833,85 1848,84 1864,83C1879,82 1894,82 1909,82C1924,82 1939,83 1955,84C1970,85 1985,86 2000,87C2015,88 2030,90 2045,91C2061,93 2076,95 2091,96C2106,98 2121,99 2136,101C2152,103 2167,104 2182,106C2197,108 2212,109 2227,111C2242,113 2258,114 2273,116C2288,117 2303,119 2318,121C2333,122 2348,124 2364,125C2379,127 2394,128 2409,130C2424,131 2439,132 2455,133C2470,133 2485,134 2500,134C2515,134 2530,134 2545,133C2561,132 2576,130 2591,128C2606,126 2621,124 2636,121C2652,118 2667,115 2682,112C2697,109 2712,105 2727,102C2742,99 2758,96 2773,93C2788,91 2803,88 2818,87C2833,85 2848,84 2864,83C2879,82 2894,82 2909,82C2924,82 2939,83 2955,84C2970,85 2992,87 3000,87L3000,174L0,174Z"},rp={w:2e3,h:170,reps:2,d:"M0,6C6,5 26,3 38,2C51,2 64,2 77,4C90,5 103,7 115,9C128,11 141,14 154,17C167,20 179,23 192,26C205,29 218,32 231,35C244,38 256,41 269,43C282,46 295,49 308,51C321,54 333,56 346,59C359,61 372,63 385,65C397,68 410,70 423,72C436,74 449,76 462,78C474,80 487,82 500,84C513,87 526,89 538,91C551,93 564,95 577,97C590,99 603,101 615,103C628,105 641,106 654,107C667,108 679,109 692,109C705,109 718,108 731,106C744,105 756,102 769,99C782,95 795,91 808,86C821,81 833,75 846,69C859,63 872,56 885,50C897,43 910,37 923,31C936,25 949,20 962,16C974,12 987,8 1000,6C1013,4 1026,3 1038,2C1051,2 1064,2 1077,4C1090,5 1103,7 1115,9C1128,11 1141,14 1154,17C1167,20 1179,23 1192,26C1205,29 1218,32 1231,35C1244,38 1256,41 1269,43C1282,46 1295,49 1308,51C1321,54 1333,56 1346,59C1359,61 1372,63 1385,65C1397,68 1410,70 1423,72C1436,74 1449,76 1462,78C1474,80 1487,82 1500,84C1513,87 1526,89 1538,91C1
303551,93 1564,95 1577,97C1590,99 1603,101 1615,103C1628,105 1641,106 1654,107C1667,108 1679,109 1692,109C1705,109 1718,108 1731,106C1744,105 1756,102 1769,99C1782,95 1795,91 1808,86C1821,81 1833,75 1846,69C1859,63 1872,56 1885,50C1897,43 1910,37 1923,31C1936,25 1949,20 1962,16C1974,12 1994,8 2000,6L2000,58C1994,59 1974,63 1962,66C1949,70 1936,74 1923,79C1910,84 1897,89 1885,94C1872,99 1859,105 1846,109C1833,114 1821,118 1808,122C1795,125 1782,128 1769,130C1756,132 1744,132 1731,132C1718,132 1705,132 1692,130C1679,129 1667,127 1654,125C1641,123 1628,120 1615,117C1603,115 1590,112 1577,109C1564,107 1551,104 1538,102C1526,100 1513,98 1500,96C1487,94 1474,92 1462,91C1449,89 1436,88 1423,87C1410,86 1397,85 1385,84C1372,83 1359,82 1346,81C1333,80 1321,79 1308,78C1295,77 1282,76 1269,75C1256,74 1244,73 1231,72C1218,70 1205,69 1192,67C1179,66 1167,64 1154,62C1141,61 1128,59 1115,58C1103,56 1090,55 1077,54C1064,54 1051,54 1038,54C1026,55 1013,56 1000,58C987,60 974,63 962,66C949,70 936,74 923,79C910,84 897,89 885,94C872,99 859,105 846,109C833,114 821,118 808,122C795,125 782,128 769,130C756,132 744,132 731,132C718,132 705,132 692,130C679,129 667,127 654,125C641,123 628,120 615,117C603,115 590,112 577,109C564,107 551,104 538,102C526,100 513,98 500,96C487,94 474,92 462,91C449,89 436,88 423,87C410,86 397,85 385,84C372,83 359,82 346,81C333,80 321,79 308,78C295,77 282,76 269,75C256,74 244,73 231,72C218,70 205,69 192,67C179,66 167,64 154,62C141,61 128,59 115,58C103,56 90,55 77,54C64,54 51,54 38,54C26,55 6,57 0,58Z"},sp={w:3e3,h:170,reps:3,d:"M0,75C6,76 26,78 38,80C51,82 64,83 77,85C90,87 103,88 115,90C128,91 141,93 154,94C167,96 179,97 192,99C205,100 218,102 231,103C244,105 256,106 269,107C282,109 295,110 308,111C321,112 333,113 346,114C359,115 372,116 385,116C397,117 410,117 423,117C436,117 449,117 462,116C474,115 487,114 500,113C513,111 526,109 538,107C551,105 564,102 577,99C590,96 603,93 615,90C628,87 641,84 654,81C667,78 679,75 692,72C705,70 718,67 731,65C744,64 756,62 769,61C782,60 795,59 808,59C821,59 833,59 846,60C859,60 872,61 885,62C897,63 910,64 923,66C936,67 949,69 962,70C974,72 987,73 1000,75C1013,77 1026,78 1038,80C1051,82 1064,83 1077,85C1090,87 1103,88 1115,90C1128,91 1141,93 1154,94C1167,9
3036 1179,97 1192,99C1205,100 1218,102 1231,103C1244,105 1256,106 1269,107C1282,109 1295,110 1308,111C1321,112 1333,113 1346,114C1359,115 1372,116 1385,116C1397,117 1410,117 1423,117C1436,117 1449,117 1462,116C1474,115 1487,114 1500,113C1513,111 1526,109 1538,107C1551,105 1564,102 1577,99C1590,96 1603,93 1615,90C1628,87 1641,84 1654,81C1667,78 1679,75 1692,72C1705,70 1718,67 1731,65C1744,64 1756,62 1769,61C1782,60 1795,59 1808,59C1821,59 1833,59 1846,60C1859,60 1872,61 1885,62C1897,63 1910,64 1923,66C1936,67 1949,69 1962,70C1974,72 1987,73 2000,75C2013,77 2026,78 2038,80C2051,82 2064,83 2077,85C2090,87 2103,88 2115,90C2128,91 2141,93 2154,94C2167,96 2179,97 2192,99C2205,100 2218,102 2231,103C2244,105 2256,106 2269,107C2282,109 2295,110 2308,111C2321,112 2333,113 2346,114C2359,115 2372,116 2385,116C2397,117 2410,117 2423,117C2436,117 2449,117 2462,116C2474,115 2487,114 2500,113C2513,111 2526,109 2538,107C2551,105 2564,102 2577,99C2590,96 2603,93 2615,90C2628,87 2641,84 2654,81C2667,78 2679,75 2692,72C2705,70 2718,67 2731,65C2744,64 2756,62 2769,61C2782,60 2795,59 2808,59C2821,59 2833,59 2846,60C2859,60 2872,61 2885,62C2897,63 2910,64 2923,66C2936,67 2949,69 2962,70C2974,72 2994,74 3000,75L3000,90C2994,90 2974,88 2962,87C2949,86 2936,85 2923,84C2910,84 2897,83 2885,82C2872,82 2859,81 2846,81C2833,81 2821,81 2808,81C2795,81 2782,82 2769,83C2756,84 2744,86 2731,87C2718,89 2705,91 2692,93C2679,95 2667,98 2654,101C2641,103 2628,106 2615,108C2603,111 2590,114 2577,116C2564,118 2551,120 2538,122C2526,123 2513,125 2500,126C2487,126 2474,127 2462,127C2449,127 2436,127 2423,127C2410,126 2397,125 2385,124C2372,123 2359,122 2346,121C2333,120 2321,119 2308,117C2295,116 2282,115 2269,113C2256,112 2244,111 2231,109C2218,108 2205,107 2192,106C2179,105 2167,104 2154,102C2141,101 2128,100 2115,99C2103,98 2090,97 2077,96C2064,95 2051,94 2038,93C2026,92 2013,91 2000,90C1987,89 1974,88 1962,87C1949,86 1936,85 1923,84C1910,84 1897,83 1885,82C1872,82 1859,81 1846,81C1833,81 1821,81 1808,81C1795,81 1782,82 1769,83C1756,84 1744,86 1731,87C1718,89 1705,91 1692,93C1679,95 1667,98 1654,101C1641,103 1628,106 1615,108C1603,111 1590,114 1577,116C1564,118 1551,120 1538,122C1526,123 1513,125 1500,126C1487,126 1474,127 1462,127C1449,127 1436,127 1423,127C1410,126 1397,125 1385,124C1372,123 1359,122 1346,121C1333,120 1321,119 1308,117C1295,116 1282,115 1269,113C1256,112 1244,111 1231,109C1218,108 1205,107 1192,106C1179,105 1167,104 1154,102C1141,101 1128,100 1115,99C1103,98 1090,97 1077,96C1064,95 1051,94 1038,93C1026,92 1013,91 1000,90C987,89 974,88 962,87C949,86 936,85 923,84C910,84 897,83 885,82C872,82 859,81 846,81C833,81 821,81 808,81C795,81 782,82 769,83C756,84 744,86 731,87C718,89 705,91 692,93C679,95 667,98 654,101C641,103 628,106 615,108C603,111 590,114 577,116C564,118 551,120 538,122C526,123 513,125 500,126C487,126 474,127 462,127C449,127 436,127 423,127C410,126 397,125 385,124C372,123 359,122 346,121C333,120 321,119 308,117C295,116 282,115 269,113C256,112 244,111 231,109C218,108 205,107 192,106C179,105 167,104 154,102C141,101 128,100 115,99C103,98 90,97 77,96C64,95 51,94 38,93C26,92 6,91 0,90Z"},gD=[{art:hD,fill:"hsl(var(--teal-deep))",opacity:.55,anim:"animate-drift-half-slow"},{art:fD,fill:"hsl(var(--teal))",opacity:.26,anim:"animate-drift-third-rev"},{art:pD,fill:"hsl(var(--teal-night))",opacity:.9,anim:"animate-drift-third"},{art:mD,fill:"hsl(var(--ivory))",opacity:1,anim:"animate-drift-third-slow"}],vD=({image:e,imageAlt:t,title:n,subtitle:r,actions:s})=>{const i=Iy(),o={hidden:{},visible:{transition:{staggerChildren:.14}}},l={hidden:{opacity:0,y:24},visible:{opacity:1,y:0,transition:{duration:.55,ease:"easeOut"}}},c=Kt.div,u={initial:i?"visible":"hidden",animate:"visible",variants:i?{hidden:{},visible:{}}:o},d=Kt.div,h={variants:i?{hidden:{},visible:{}}:l};return a.jsxs("section",{className:"relative isolate overflow-hidden bg-[hsl(var(--teal-abyss))] pt-14 md:pt-20 pb-48 md:pb-56 lg:pb-64 text-center",children:[a.jsx("img",{src:e,alt:t,width:1920,height:900,className:"absolute inset-0 -z-30 h-full w-full object-cover object-[50%_40%] opacity-[0.66] mix-blend-soft-light [filter:saturate(0.58)_contrast(1.10)_brightness(0.98)]"}),a.jsx("div",{className:"absolute inset-0 -z-20","aria-hidden":!0,style:{background:["radial-gradient(78% 62% at 50% 30%, hsl(var(--teal-deep) / 0.34) 0%, transparent 64%)","linear-gradient(to bottom, hsl(var(--teal-abyss) / 0.78) 0%, hsl(var(--teal-abyss) / 0.42) 42%, hsl(var(--teal-abyss) / 0.88) 100%)"].join(",")}}),a.jsx("svg",{className:"pointer-events-none absolute left-0 top-[42%] -z-10 h-auto w-[230%] min-w-[1800px] animate-drift-half-rev motion-reduce:animate-none",viewBox:`0 0 ${rp.w} ${rp.h}
303`,preserveAspectRatio:"none","aria-hidden":!0,children:a.jsx("path",{d:rp.d,fill:"hsl(var(--teal))",fillOpacity:.16})}),a.jsx("svg",{className:"pointer-events-none absolute left-0 top-[70%] -z-10 h-auto w-[230%] min-w-[1800px] animate-drift-third-slower motion-reduce:animate-none",viewBox:`0 0 ${sp.w} ${sp.h}`,preserveAspectRatio:"none","aria-hidden":!0,children:a.jsx("path",{d:sp.d,fill:"hsl(var(--gold))",fillOpacity:.13})}),a.jsx("div",{className:"container relative z-10",children:a.jsxs(c,{...u,className:"flex flex-col items-center",children:[a.jsx(d,{...h,children:a.jsx("svg",{className:"mx-auto mb-5 h-auto w-16 md:w-20 lg:w-[104px]",viewBox:`0 0 ${tp.w} ${tp.h}`,"aria-hidden":!0,children:a.jsx("path",{d:tp.d,fill:"hsl(var(--gold))"})})}),a.jsx(d,{...h,children:a.jsx("svg",{className:"mx-auto h-auto w-[min(400px,62vw)]",viewBox:`0 0 ${np.w} ${np.h}`,role:"img","aria-label":"Minnesota Council of Churches",preserveAspectRatio:"xMidYMid meet",children:a.jsx("path",{d:np.d,fill:"hsl(var(--ivory))"})})}),a.jsx(d,{...h,children:a.jsx("span",{className:"mx-auto mb-1 mt-7 block h-px w-16 bg-[hsl(var(--gold)/0.62)]","aria-hidden":!0})}),a.jsx(d,{...h,children:a.jsx("h1",{className:"max-w-[22ch] text-balance font-serif text-4xl leading-[1.06] tracking-[-0.01em] !text-white md:text-5xl lg:text-[4.25rem]",children:n})}),r&&a.jsx(d,{...h,children:a.jsx("p",{className:"mx-auto mt-5 max-w-[52ch] text-lg leading-relaxed text-[hsl(var(--ivory)/0.82)] md:text-xl",children:r})}),s&&a.jsx(d,{...h,children:a.jsx("div",{className:"mt-8 flex flex-wrap justify-center gap-3",children:s})})]})}),a.jsx("div",{className:"pointer-events-none absolute inset-x-0 -bottom-px z-[3] h-36 md:h-48 lg:h-60","aria-hidden":!0,children:gD.map(({art:f,fill:p,opacity:y,anim:m},w)=>a.jsx("svg",{className:`absolute bottom-0 left-0 h-full w-[240%] min-w-[1700px] ${m} motion-reduce:animate-none`,viewBox:`0 0 ${f.w} ${f.h}`,preserveAspectRatio:"none",children:a.jsx("path",{d:f.d,fill:p,fillOpacity:y})},w))})]})},yD={2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-2 lg:grid-cols-4"},bD=({items:e,columns:t=3,floating:n=!1})=>a.jsx("div",{className:`grid ${yD[t]} gap-6 ${n?"relative z-20 -mt-24":""}`,children:e.map(r=>a.jsx(tr,{children:a.jsxs(Y,{to:r.href,className:"group block bg-card rounded-2xl border border-border p-8 text-center shadow-lg h-full hover:shadow-xl hover:-translate-y-1 transition-all motion-reduce:transform-none motion-reduce:transition-none",children:[a.jsx(r.icon,{className:"h-12 w-12 mx-auto mb-4 text-gold",strokeWidth:1.5}),a.jsx("h3",{className:"font-serif text-xl mb-3",children:r.title}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:r.desc}),a.jsxs("span",{className:"inline-flex items-center text-sm font-medium text-primary gap-1",children:[r.cta??"Learn More"," ",a.jsx(nt,{className:"h-4 w-4"})]})]})},r.title))}),Sx=({eyebrow:e,title:t,body:n,image:r,imageAlt:s,href:i,cta:o="Learn more",reverse:l=!1})=>a.jsxs("div",{className:`grid lg:grid-cols-2 gap-10 lg:gap-16 items-center ${l?"lg:[&>*:first-child]:order-2":""}`,children:[a.jsx(tr,{children:a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"absolute -top-4 -left-4 w-full h-full rounded-2xl border-2 border-[hsl(var(--gold))]/40","aria-hidden":!0}),a.jsx("div",{className:"relative aspect-[5/4] rounded-2xl overflow-hidden shadow-xl",children:a.jsx("img",{src:r,alt:s,className:"w-full h-full object-cover",loading:"lazy",width:960,height:768})})]})}),a.jsx(tr,{children:a.jsxs("div",{children:[e&&a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx("span",{className:"h-px w-10 bg-[hsl(var(--gold))]","aria-hidden":!0}),a.jsx("div",{className:"text-[11px] font-semibold tracking-[0.18em] uppercase text-[hsl(var(--gold))]",children:e})]}),a.jsx("h2",{className:"font-serif text-3xl md:text-4xl lg:text-5xl text-[hsl(var(--navy))] leading-tight mb-5",children:t}),a.jsx("p",{className:"text-base md:text-lg text-foreground/75 leading-relaxed mb-6",children:n}),a.jsxs(Y,{to:i,className:"inline-flex items-center gap-2 font-medium text-[hsl(var(--teal-deep))] hover:text-[hsl(var(--teal))] group",children:[o,a.jsx(nt,{className:"h-4 w-4 transition-transform group-hover:translate-x-1 motion-reduce:transition-none"})]})]})})]}),xD=({eyebrow:e,title:t,body:n,actions:r})=>a.jsxs("section",{className:"relative bg-[hsl(var(--teal-deep))] text-card overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 opacity-20 pointer-events-none",style:{backgroundImage:"radial-gradient(circle at 20% 30%, hsl(var(--gold)/0.4), transparent 45%), radial-gradient(circle at 80% 70%, hsl(var(--teal)/0.6), transparent 45%)"},"aria-hidden":!0}),a.jsx("div",{className:"container relative py-16 lg:py-20",children:a.jsxs("div",{className:"grid lg:grid-cols-[1.6fr_1fr] gap-10 items-center",children:[a.jsxs("div",{children:[e&&a.jsx("div",{className:"text-[11px] font-semibold tracking-[0.18em] uppercase text-[hsl(var(--gold))] mb-3",children:e}),a.jsx("h2",{className:"font-serif text-3xl md:text-4xl lg:text-5xl !text-card leading-tight",children:t}),n&&a.jsx("p",{className:"mt-4 text-card/80 text-base md:text-lg max-w-2xl leading-relaxed",children:n})]}),a.jsx("div",{className:"flex flex-wrap gap-3 lg:justify-end",children:r})]})})]}),wD="/assets/hero-community-BkozgHL1.jpg",CD=1,_D="66aa8bf1-9781-4b32-ba1e-28f3d10f6ae0",jD="5317579a-a8ee-431d-9a53-6d8cfe773828",SD="/__l5e/assets-v1/66aa8bf1-9781-4b32-ba1e-28f3d10f6ae0/all-are-welcome-banner-2.jpg",kD="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/66aa8bf1-9781-4b32-ba1e-28f3d10f6ae0/all-are-welcome-banner-2.jpg",TD="all-are-welcome-banner-2.jpg",ED=64275,ND="image/jpeg",RD="2026-09-08T18:55:53Z",AD={version:CD,asset_id:_D,project_id:jD,url:SD,r2_key:kD,original_filename:TD,size:ED,content_type:ND,created_at:RD},PD=1,$D="de6cacc0-f260-42b3-b5e2-ec4be9f2d676",MD="5317579a-a8ee-431d-9a53-6d8cfe773828",OD="/__l5e/assets-v1/de6cacc0-f260-42b3-b5e2-ec4be9f2d676/taking-heart-picnic-2.jpg",ID="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/de6cacc0-f260-42b3-b5e2-ec4be9f2d676/taking-heart-picnic-2.jpg",DD="taking-heart-picnic-2.jpg",LD=486447,zD="image/jpeg",FD="2026-09-09T14:19:28Z",UD={version:PD,asset_id:$D,project_id:MD,url:OD,r2_key:ID,original_filename:DD,size:LD,content_type:zD,created_at:FD},BD=1,VD="a18be7c2-e2bb-4c43-89eb-b8ba0bd10326",HD="5317579a-a8ee-431d-9a53-6d8cfe773828",WD="/__l5e/assets-v1/a18be7c2-e2bb-4c43-89eb-b8ba0bd10326/Elder_Suzanne_Kelly_Headshot.png",qD="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/a18be7c2-e2bb-4c43-89eb-b8ba0bd10326/Elder_Suzanne_Kelly_Headshot.png",KD="Elder_Suzanne_Kelly_Headshot.png",ZD=614045,GD="image/png",JD="2026-08-17T16:26:40Z",YD={version:BD,asset_id:VD,project_id:HD,url:WD,r2_key:qD,original_filename:KD,size:ZD,content_type:GD,created_at:JD};function QD(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
303return new(n||(n=Promise))(function(i,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?i(d.value):s(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})}const XD=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Dy extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class eL extends Dy{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class kx extends Dy{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Tx extends Dy{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var sg;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(sg||(sg={}));class tL{constructor(t,{headers:n={},customFetch:r,region:s=sg.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=XD(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return QD(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:l,method:c,body:u,signal:d,timeout:h}=r;let f={},{region:p}=r;p||(p=this.region);const y=new URL(`${this.url}/${n}`);p&&p!=="any"&&(f["x-region"]=p,y.searchParams.set("forceFunctionRegion",p));let m;const w=!!l&&Object.keys(l).some(S=>S.toLowerCase()==="content-type");u&&!w?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",m=u):typeof u=="string"?(f["Content-Type"]="text/plain",m=u):typeof FormData<"u"&&u instanceof FormData?m=u:(f["Content-Type"]="application/json",m=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?m=JSON.stringify(u):m=u;let v=d;h&&(o=new AbortController,i=setTimeout(()=>o.abort(),h),d?(v=o.signal,d.addEventListener("abort",()=>o.abort())):v=o.signal);const g=yield this.fetch(y.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),l),body:m,signal:v}).catch(S=>{throw new eL(S)}),x=g.headers.get("x-relay-error");if(x&&x==="true")throw new kx(g);if(!g.ok)throw new Tx(g);let C=((s=g.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),_;return C==="application/json"?_=yield g.json():C==="application/octet-stream"||C==="application/pdf"?_=yield g.blob():C==="text/event-stream"?_=g:C==="multipart/form-data"?_=yield g.formData():_=yield g.text(),{data:_,error:null,response:g}}catch(l){return{data:null,error:l,response:l instanceof Tx||l instanceof kx?l.context:void 0}}finally{i&&clearTimeout(i)}})}}const X8=3,Ex=e=>Math.min(1e3*2**e,3e4),nL=[520,503],e4=["GET","HEAD","OPTIONS"];var Nx=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
303de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function Rx(e,t){return new Promise(n=>{if(t!=null&&t.aborted){n();return}const r=setTimeout(()=>{t==null||t.removeEventListener("abort",s),n()},e);function s(){clearTimeout(r),n()}t==null||t.addEventListener("abort",s)})}function rL(e,t,n,r){return!(!r||n>=X8||!e4.includes(e)||!nL.includes(t))}var sL=class{constructor(e){var t,n,r,s,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(r=e.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(s=e.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(i=e.retry)!==null&&i!==void 0?i:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const o=this.headers.get("Accept");o==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!o||o==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let i=(async()=>{let o=0;for(;;){const u={};n.headers.forEach((h,f)=>{u[f]=h}),o>0&&(u["X-Retry-Count"]=String(o));let d;try{d=await r(n.url.toString(),{method:n.method,headers:u,body:JSON.stringify(n.body,(h,f)=>typeof f=="bigint"?f.toString():f),signal:n.signal})}catch(h){if((h==null?void 0:h.name)==="AbortError"||(h==null?void 0:h.code)==="ABORT_ERR"||!e4.includes(n.method))throw h;if(n.retryEnabled&&o<X8){const f=Ex(o);o++,await Rx(f,n.signal);continue}throw h}if(rL(n.method,d.status,o,n.retryEnabled)){var l,c;const h=(l=(c=d.headers)===null||c===void 0?void 0:c.get("Retry-After"))!==null&&l!==void 0?l:null,f=h!==null?Math.max(0,parseInt(h,10)||0)*1e3:Ex(o);await d.text(),o++,await Rx(f,n.signal);continue}return await n.processResponse(d)}})();return this.shouldThrowOnError||(i=i.catch(o=>{var l;let c="",u="",d="";const h=o==null?void 0:o.cause;if(h){var f,p,y,m;const g=(f=h==null?void 0:h.message)!==null&&f!==void 0?f:"",x=(p=h==null?void 0:h.code)!==null&&p!==void 0?p:"";c=`${(y=o==null?void 0:o.name)!==null&&y!==void 0?y:"FetchError"}: ${o==null?void 0:o.message}`,c+=`
304
305Caused by: ${(m=h==null?void 0:h.name)!==null&&m!==void 0?m:"Error"}: ${g}`,x&&(c+=` (${x})`),h!=null&&h.stack&&(c+=`
306${h.stack}`)}else{var w;c=(w=o==null?void 0:o.stack)!==null&&w!==void 0?w:""}const v=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(d="",u="Request was aborted (timeout or manual cancellation)",v>this.urlLengthLimit&&(u+=`. Note: Your request URL is ${v} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((h==null?void 0:h.name)==="HeadersOverflowError"||(h==null?void 0:h.code)==="UND_ERR_HEADERS_OVERFLOW")&&(d="",u="HTTP headers exceeded server limits (typically 16KB)",v>this.urlLengthLimit&&(u+=`. Your request URL is ${v} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(l=o==null?void 0:o.name)!==null&&l!==void 0?l:"FetchError"}: ${o==null?void 0:o.message}`,details:c,hint:u,code:d},data:null,count:null,status:0,statusText:""}}
306)),i.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,s=null,i=e.status,o=e.statusText;if(e.ok){var l,c;if(t.method!=="HEAD"){var u;const f=await e.text();if(f!=="")if(t.headers.get("Accept")==="text/csv")r=f;else if(t.headers.get("Accept")&&(!((u=t.headers.get("Accept"))===null||u===void 0)&&u.includes("application/vnd.pgrst.plan+text")))r=f;else try{r=JSON.parse(f)}catch{if(n={message:f},r=null,t.shouldThrowOnError)throw new Nx({message:f,details:"",hint:"",code:""})}}const d=(l=t.headers.get("Prefer"))===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),h=(c=e.headers.get("content-range"))===null||c===void 0?void 0:c.split("/");d&&h&&h.length>1&&(s=parseInt(h[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,s=null,i=406,o="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const d=await e.text();try{n=JSON.parse(d),Array.isArray(n)&&e.status===404&&(r=[],n=null,i=200,o="OK")}catch{e.status===404&&d===""?(i=204,o="No Content"):n={message:d}}if(n&&t.shouldThrowOnError)throw new Nx(n)}return{success:n===null,error:n,data:r,count:s,status:i,statusText:o}}returns(){return this}overrideTypes(){return this}},iL=class extends sL{throwOnError(){return super.throwOnError()}select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const l=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Ax=new RegExp("[,()]");var Qi=class extends iL{throwOnError(){return super.throwOnError()}eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Ax.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Ax.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>
306n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},oL=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3,retry:i}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s,this.retry=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(u=>/\s/.test(u)&&!i?"":(u==='"'&&(i=!i),u)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",o),r&&c.append("Prefer",`count=${r}`),new Qi({method:s,url:l,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);i.searchParams.set("columns",c.join(","))}}return new Qi({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const o="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&l.searchParams.set("on_conflict",t),r&&c.append("Prefer",`count=${r}`),s||c.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((d,h)=>d.concat(Object.keys(h)),[]);if(u.length>0){const d=[...new Set(u)].map(h=>`"${h}"`);l.searchParams.set("columns",d.join(","))}}return new Qi({method:o,url:l,headers:c,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new Qi({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new Qi({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function Hl(e){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hl(e)}function aL(e,t){if(Hl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lL(e){var t=aL(e,"string");return Hl(t)=="symbol"?t:t+""}function cL(e,t,n){return(t=lL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Px(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Jc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Px(Object(n),!0).forEach(function(r){cL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Px(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var uL=class t4{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:o=8e3,retry:l}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const c=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(u,d)=>{const h=new AbortController,f=setTimeout(()=>h.abort(),i),p=d==null?void 0:d.signal;if(p){if(p.aborted)return clearTimeout(f),c(u,d);const y=()=>{clearTimeout(f),h.abort()};return p.addEventListener("abort",y,{once:!0}),c(u,Jc(Jc({},d),{},{signal:h.signal})).finally(()=>{clearTimeout(f),p.removeEventListener("abort",y)})}return c(u,Jc(Jc({},d),{},{signal:h.signal})).finally(()=>clearTimeout(f))}:this.fetch=c,this.retry=l}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new oL(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new t4(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let l;const c=new URL(`${this.url}/rpc/${t}`);let u;const d=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(d)),h=r&&Object.values(n).some(d);h?(l="POST",u=n):r||s?(l=r?"HEAD":"GET",Object.entries(n).filter(([p,y])=>y!==void 0).map(([p,y])=>[p,Array.isArray(y)?`{${y.join(",")}}`:`${y}
306`]).forEach(([p,y])=>{c.searchParams.append(p,y)})):(l="POST",u=n);const f=new Headers(this.headers);return h?f.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&f.set("Prefer",`count=${i}`),new Qi({method:l,url:c,headers:f,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class dL{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const n=globalThis;if(typeof globalThis<"u"&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};const r=typeof global<"u"?global:void 0;if(r&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};if(typeof globalThis<"u"&&typeof n.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&n.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const s=globalThis.process;if(s){const i=s.versions;if(i&&i.node)return{type:"unsupported",error:"Node.js detected but native WebSocket not found.",workaround:"Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option."}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
307
308Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{return this.detectEnvironment().type==="native"}catch{return!1}}}const hL="2.110.0",fL=`realtime-js/${hL}`,pL="1.0.0",n4="2.0.0",mL=n4,gL=1e4,vL=100,ds={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},r4={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},ig={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class yL{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var s,i;const o=t.topic,l=(s=t.ref)!==null&&s!==void 0?s:"",c=(i=t.join_ref)!==null&&i!==void 0?i:"",u=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+l.length+o.length+u.length+h.length,p=new ArrayBuffer(this.HEADER_LENGTH+f);let y=new DataView(p),m=0;y.setUint8(m++,this.KINDS.userBroadcastPush),y.setUint8(m++,c.length),y.setUint8(m++,l.length),y.setUint8(m++,o.length),y.setUint8(m++,u.length),y.setUint8(m++,h.length),y.setUint8(m++,n),Array.from(c,v=>y.setUint8(m++,v.charCodeAt(0))),Array.from(l,v=>y.setUint8(m++,v.charCodeAt(0))),Array.from(o,v=>y.setUint8(m++,v.charCodeAt(0))),Array.from(u,v=>y.setUint8(m++,v.charCodeAt(0))),Array.from(h,v=>y.setUint8(m++,v.charCodeAt(0)));var w=new Uint8Array(p.byteLength+r.byteLength);return w.set(new Uint8Array(p),0),w.set(new Uint8Array(r),p.byteLength),w.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,o,l,c]=r;
308return n({join_ref:s,ref:i,topic:o,event:l,payload:c})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),l=n.getUint8(4);let c=this.HEADER_LENGTH+4;const u=r.decode(t.slice(c,c+s));c=c+s;const d=r.decode(t.slice(c,c+i));c=c+i;const h=r.decode(t.slice(c,c+o));c=c+o;const f=t.slice(c,t.byteLength),p=l===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,y={type:this.BROADCAST_EVENT,event:d,payload:p};return o>0&&(y.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:y}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}var Re;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Re||(Re={}));const $x=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=bL(o,e,t,s),i),{}):{}},bL=(e,t,n,r)=>{const s=t.find(l=>
vendor: 5,523 bytes, line 308
308l.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?s4(i,o):og(o)},s4=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return _L(t,n)}switch(e){case Re.bool:return xL(t);case Re.float4:case Re.float8:case Re.int2:case Re.int4:case Re.int8:case Re.numeric:case Re.oid:return wL(t);case Re.json:case Re.jsonb:return CL(t);case Re.timestamp:return jL(t);case Re.abstime:case Re.date:case Re.daterange:case Re.int4range:case Re.int8range:case Re.money:case Re.reltime:case Re.text:case Re.time:case Re.timestamptz:case Re.timetz:case Re.tsrange:case Re.tstzrange:return og(t);default:return og(t)}},og=e=>e,xL=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},wL=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},CL=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},_L=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(l=>s4(t,l))}return e},jL=e=>typeof e=="string"?e.replace(" ","T"):e,i4=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var ll=e=>typeof e=="function"?e:function(){return e},SL=typeof self<"u"?self:null,Xi=typeof window<"u"?window:null,nr=SL||Xi||globalThis,kL="2.0.0",TL=1e4,EL=1e3,or={connecting:0,open:1,closing:2,closed:3},Lt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Er={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},ag={longpoll:"longpoll",websocket:"websocket"},NL={complete:4},lg="base64url.bearer.phx.",Yc=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},o4=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},RL=class{constructor(e,t,n){this.state=Lt.closed,this.topic=e,this.params=ll(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Yc(this,Er.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new o4(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Lt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=Lt.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=Lt.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Lt.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Yc(this,Er.leave,ll({}),this.timeout).send(),this.state=Lt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Er.reply,(r,s)=>{this.trigger(this.replyEventName(s),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}
vendor: 5,263 bytes, line 308
308teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Lt.closed,this.bindings=[]}onClose(e){this.on(Er.close,e)}onError(e){return this.on(Er.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Yc(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Lt.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Er.close,"leave")},n=new Yc(this,Er.leave,ll({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Lt.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let s=this.onMessage(e,t,n,r);if(t&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,n));for(let o=0;o<i.length;o++)i[o].callback(s,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Lt.closed}isErrored(){return this.state===Lt.errored}isJoined(){return this.state===Lt.joined}isJoining(){return this.state===Lt.joining}isLeaving(){return this.state===Lt.leaving}},Rd=class{static request(e,t,n,r,s,i,o){if(nr.XDomainRequest){let l=new nr.XDomainRequest;return this.xdomainRequest(l,e,t,r,s,i,o)}else if(nr.XMLHttpRequest){let l=new nr.XMLHttpRequest;return this.xhrRequest(l,e,t,n,r,s,i,o)}else{if(nr.fetch&&nr.AbortController)return this.fetchRequest(e,t,n,r,s,i,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,s,i,o){let l={method:e,headers:n,body:r},c=null;return s&&(c=new AbortController,setTimeout(()=>c.abort(),s),l.signal=c.signal),nr.fetch(t,l).then(u=>u.text()).then(u=>this.parseJSON(u)).then(u=>o&&o(u)).catch(u=>{u.name==="AbortError"&&i?i():o&&o(null)}),c}static xdomainRequest(e,t,n,r,s,i,o){return e.timeout=s,e.open(t,n),e.onload=()=>{let l=this.parseJSON(e.responseText);o&&o(l)},i&&(e.ontimeout=i),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,s,i,o,l){e.open(t,n,!0),e.timeout=i;for(let[c,u]of Object.entries(r))e.setRequestHeader(c,u);return e.onerror=()=>l&&l(null),e.onreadystatechange=()=>{if(e.readyState===NL.complete&&l){let c=this.parseJSON(e.responseText);l(c)}},o&&(e.ontimeout=o),e.send(s),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let s=t?`${t}[${r}]`:r,i=e[r];typeof i=="object"?n.push(this.serialize(i,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},AL=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let s=0;s<r;s++)t+=String.fromCharCode(n[s]);return btoa(t)},Bi=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(lg)&&(this.authToken=atob(t[1].slice(lg.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=or.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+ag.websocket),"$1/"+ag.longpoll)}endpointURL(){return Rd.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=or.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===or.open||this.readyState===or.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:s}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:s.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=or.open,this.onopen({}),this.poll();break;
308case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=AL(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(`
309`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let s of this.reqs)s.abort();this.readyState=or.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,s){let i,o=()=>{this.reqs.delete(i),r()};i=Rd.request(e,this.endpointURL(),t,n,this.timeout,o,l=>{this.reqs.delete(i),this.isActive()&&s(l)}),this.reqs.add(i)}},PL=class Ba{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,s=>{let{onJoin:i,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Ba.syncState(this.state,s,i,o),this.pendingDiffs.forEach(c=>{this.state=Ba.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],l()}),this.channel.on(r.diff,s=>{let{onJoin:i,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Ba.syncDiff(this.state,s,i,o),l())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return Ba.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,s){let i=this.clone(t),o={},l={};return this.map(i,(c,u)=>{n[c]||(l[c]=u)}),this.map(n,(c,u)=>{let d=i[c];if(d){let h=u.metas.map(m=>m.phx_ref),f=d.metas.map(m=>m.phx_ref),p=u.metas.filter(m=>f.indexOf(m.phx_ref)<0),y=d.metas.filter(m=>h.indexOf(m.phx_ref)<0);p.length>0&&(o[c]=u,o[c].metas=p),y.length>0&&(l[c]=this.clone(d),l[c].metas=y)}else o[c]=u}),this.syncDiff(i,{joins:o,leaves:l},r,s)}static syncDiff(t,n,r,s){let{joins:i,leaves:o}=this.clone(n);return r||(r=function(){}),s||(s=function(){}),this.map(i,(l,c)=>{let u=t[l];if(t[l]=this.clone(c),u){let d=t[l].metas.map(f=>f.phx_ref),h=u.metas.filter(f=>d.indexOf(f.phx_ref)<0);t[l].metas.unshift(...h)}r(l,u,c)}),this.map(o,(l,c)=>{let u=t[l];if(!u)return;let d=c.metas.map(h=>h.phx_ref);u.metas=u.metas.filter(h=>d.indexOf(h.phx_ref)<0),s(l,u,c),u.metas.length===0&&delete t[l]}),t}static list(t,n){return n||(n=function(r,s){return s}),this.map(t,(r,s)=>n(r,s))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},Qc={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,s,i,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:s,event:i,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:s,payload:i}=e,o=this.META_LENGTH+t.length+n.length+s.length+r.length,l=new ArrayBuffer(this.HEADER_LENGTH+o),c=new DataView(l),u=0;c.setUint8(u++,this.KINDS.push),c.setUint8(u++,t.length),c.setUint8(u++,n.length),c.setUint8(u++,s.length),c.setUint8(u++,r.length),Array.from(t,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(n,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(s,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(r,h=>c.setUint8(u++,h.charCodeAt(0)));var d=new Uint8Array(l.byteLength+i.byteLength);return d.set(new Uint8Array(l),0),d.set(new Uint8Array(i),l.byteLength),d.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}}
vendor: 8,485 bytes, line 309
309,decodePush(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,l=n.decode(e.slice(o,o+r));o=o+r;let c=n.decode(e.slice(o,o+s));o=o+s;let u=n.decode(e.slice(o,o+i));o=o+i;let d=e.slice(o,e.byteLength);return{join_ref:l,ref:null,topic:c,event:u,payload:d}},decodeReply(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=t.getUint8(4),l=this.HEADER_LENGTH+this.META_LENGTH,c=n.decode(e.slice(l,l+r));l=l+r;let u=n.decode(e.slice(l,l+s));l=l+s;let d=n.decode(e.slice(l,l+i));l=l+i;let h=n.decode(e.slice(l,l+o));l=l+o;let f=e.slice(l,e.byteLength),p={status:h,response:f};return{join_ref:c,ref:u,topic:d,event:Er.reply,payload:p}},decodeBroadcast(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=this.HEADER_LENGTH+2,o=n.decode(e.slice(i,i+r));i=i+r;let l=n.decode(e.slice(i,i+s));i=i+s;let c=e.slice(i,e.byteLength);return{join_ref:null,ref:null,topic:o,event:l,payload:c}}},$L=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||TL,this.transport=t.transport||nr.WebSocket||Bi,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=nr&&nr.sessionStorage}catch{}this.sessionStore=t.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=Qc.encode.bind(Qc),this.defaultDecoder=Qc.decode.bind(Qc),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==Bi?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;Xi&&Xi.addEventListener&&(Xi.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),r=this.connectClock)}),Xi.addEventListener("pageshow",s=>{r===this.connectClock&&(r=null,this.connect())}),Xi.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,i,o)=>{console.log(`${s}: ${i}`,o)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=ll(t.params||{}),this.endPoint=`${e}/${ag.websocket}`,this.vsn=t.vsn||kL,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new o4(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return Bi}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Rd.appendParams(Rd.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=ll(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Bi?this.connectWithFallback(Bi,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(s=>{s.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case Bi:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${lg}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,s,i,o=this.transportName(e),l=c=>{this.log("transport",`falling back to ${o}...`,c),this.off([s,i]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return l("memorized");this.fallbackTimer=setTimeout(l,t),i=this.onError(c=>{this.log("transport","error",c),r&&!n&&(clearTimeout(this.fallbackTimer),l(c))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let c=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${c}`,"true"),this.log("transport",`established ${c} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(l,t),this.ping(c=>{this.log("transport","connected to primary after",c),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),EL,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===or.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}
vendor: 4,126 bytes, line 309
309triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Er.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case or.connecting:return"connecting";case or.open:return"open";case or.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new RL(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:s,join_ref:i}=e;this.log("push",`${t} ${n} (${i}, ${s})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:s,ref:i,join_ref:o}=t;if(i&&i===this.pendingHeartbeatRef){const l=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(s.status==="ok"?"ok":"error",l)}catch(c){this.log("error","error in heartbeat callback",c)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${s.status||""} ${n} ${r} ${i&&"("+i+")"||""}`.trim(),s);for(let l=0;l<this.channels.length;l++){const c=this.channels[l];c.isMember(n,r,s,o)&&c.trigger(r,s,i,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class cl{constructor(t,n){const r=OL(n);this.presence=new PL(t.getChannel(),r),this.presence.onJoin((s,i,o)=>{const l=cl.onJoinPayload(s,i,o);t.getChannel().trigger("presence",l)}),this.presence.onLeave((s,i,o)=>{const l=cl.onLeavePayload(s,i,o);t.getChannel().trigger("presence",l)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return cl.transformState(this.presence.state)}static transformState(t){return t=ML(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return n[r]=Du(s),n},{})}static onJoinPayload(t,n,r){const s=Mx(n),i=Du(r);return{event:"join",key:t,currentPresences:s,newPresences:i}}static onLeavePayload(t,n,r){const s=Mx(n),i=Du(r);return{event:"leave",key:t,currentPresences:s,leftPresences:i}}}function Du(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function ML(e){return JSON.parse(JSON.stringify(e))}function OL(e){return(e==null?void 0:e.events)&&{events:e.events}}function Mx(e){return e!=null&&e.metas?Du(e):[]}var Ox;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Ox||(Ox={}));class IL{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new cl(this.channel.channelAdapter,n)}}function DL(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
309if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const n=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${n}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class LL{constructor(t,n,r){const s=zL(r);this.channel=t.getSocket().channel(n,s),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let s;try{s=this.channel.push(t,n,r)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>vL){const i=this.channel.pushBuffer.shift();i.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload())}return s}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===ds.joined}isJoined(){return this.state===ds.joined}isJoining(){return this.state===ds.joining}isClosed(){return this.state===ds.closed}isLeaving(){return this.state===ds.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function zL(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}const FL=/[,()"\\]/,UL=e=>FL.test(e)||e!==e.trim(),BL=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,Ix=e=>{const t=e===null?"null":String(e);return UL(t)?BL(t):t},VL=e=>e===null?"null":String(e),HL=(e,t)=>{if(e==="in"){const n=Array.isArray(t)?t:[t];if(n.length===0)throw new Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(n)).map(s=>Ix(s)).join(",")})`}return e==="is"?`is.${VL(t)}`:`${e}.${Ix(t)}`};class WL{constructor(){this.filters=[]}add(t,n,r,s=!1){const i=s?"not.":"";return this.filters.push(`${t}=${i}${HL(n,r)}`),this}eq(t,n){return this.add(t,"eq",n)}neq(t,n){return this.add(t,"neq",n)}gt(t,n){return this.add(t,"gt",n)}gte(t,n){return this.add(t,"gte",n)}lt(t,n){return this.add(t,"lt",n)}lte(t,n){return this.add(t,"lte",n)}in(t,n){return this.add(t,"in",n)}like(t,n){return this.add(t,"like",n)}ilike(t,n){return this.add(t,"ilike",n)}match(t,n){return this.add(t,"match",n)}imatch(t,n){return this.add(t,"imatch",n)}is(t,n){return this.add(t,"is",n)}isDistinct(t,n){return this.add(t,"isdistinct",n)}not(t,n,r){return this.add(t,n,r,!0)}build(){return this.filters.join(",")}toString(){return this.build()}}var Dx;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Dx||(Dx={}));var bo;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(bo||(bo={}));var Nr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Nr||(Nr={}));class ul{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new LL(this.socket.socketAdapter,t,this.params),this.presence=new IL(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=i4(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:l,private:c}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&s!==void 0?s:[],d=!!this.bindings[bo.PRESENCE]&&this.bindings[bo.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},f={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(p=>{t==null||t(Nr.CHANNEL_ERROR,DL(p))}),this._onClose(()=>t==null?void 0:t(Nr.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:p})=>{if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){t==null||t(Nr.SUBSCRIBED);return}this._updatePostgresBindings(p,t)}
309).receive("error",p=>{this.state=ds.errored;const y=Object.values(p).join(", ")||"error";t==null||t(Nr.CHANNEL_ERROR,new Error(y,{cause:p}))}).receive("timeout",()=>{t==null||t(Nr.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const s=this.bindings.postgres_changes,i=(r=s==null?void 0:s.length)!==null&&r!==void 0?r:0,o=[];for(let l=0;l<i;l++){const c=s[l],{filter:{event:u,schema:d,table:h,filter:f}}=c,p=t&&t[l];if(p&&p.event===u&&ul.isFilterValueEqual(p.schema,d)&&ul.isFilterValueEqual(p.table,h)&&ul.isFilterValueEqual(p.filter,f))o.push(Object.assign(Object.assign({},c),{id:p.id}));else{this.unsubscribe(),this.state=ds.errored,n==null||n(Nr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=ds.errored&&n&&n(Nr.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=t===bo.PRESENCE||t===bo.POSTGRES_CHANGES;if(s&&i)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const i=n instanceof ArrayBuffer||ArrayBuffer.isView(n),o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":i?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l=new URL(this.broadcastEndpointURL);l.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(t)}`,this.private&&l.searchParams.set("private","true");const c={method:"POST",headers:o,body:i?n:JSON.stringify(n)},u=await this._fetchWithTimeout(l.toString(),c,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(u.status===202)return{success:!0};if(u.status===404)return Promise.reject(new Error("httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realtime-js/migrations/httpsend-server-version.md"));let d=u.statusText;try{const h=await u.json();d=h.error||h.message||d}catch{}return Promise.reject(new Error(d))}async send(t,n={}){var r,s;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated 
309in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u instanceof Error&&u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,l,c;const u=this.channelAdapter.push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_on(t,n,r){const s=t.toLocaleLowerCase(),i=n==null?void 0:n.filter;(i instanceof WL||typeof i=="object"&&i!==null&&typeof i.build=="function")&&(n=Object.assign(Object.assign({},n),{filter:i.build()}));const o=this.channelAdapter.on(t,r),l={type:s,filter:n,callback:r,ref:o};return this.bindings[s]?this.bindings[s].push(l):this.bindings[s]=[l],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var s,i,o,l,c,u,d;const h=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(h,r))return!1;const f=(s=this.bindings[h])===null||s===void 0?void 0:s.find(p=>p.ref===t.ref);if(!f)return!0;if(["broadcast","presence","postgres_changes"].includes(h))if("id"in f){const p=f.id,y=(i=f.filter)===null||i===void 0?void 0:i.event;return p&&((o=n.ids)===null||o===void 0?void 0:o.includes(p))&&(y==="*"||(y==null?void 0:y.toLocaleLowerCase())===((l=n.data)===null||l===void 0?void 0:l.type.toLocaleLowerCase()))}else{const p=(u=(c=f==null?void 0:f.filter)===null||c===void 0?void 0:c.event)===null||u===void 0?void 0:u.toLocaleLowerCase();return p==="*"||p===((d=n==null?void 0:n.event)===null||d===void 0?void 0:d.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===h})}_notThisChannelEvent(t,n){const{close:r,error:s,leave:i,join:o}=r4;return n&&[r,s,i,o].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const s=n.data,{schema:i,table:o,commit_timestamp:l,type:c,errors:u}=s;return Object.assign(Object.assign({},{schema:i,table:o,commit_timestamp:l,eventType:c,new:{},old:{},errors:u}),this._getPayloadRecords(s))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const r of t.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=$x(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=$x(t.columns,t.old_record)),n}}class qL{constructor(t,n){this.socket=new $L(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,s=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),s),this.socket.disconnect(()=>{t(),i("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==ig.connecting}isDisconnecting(){return this.socket.connectionState()==ig.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Lx={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},KL=[1e3,2e3,5e3,1e4],ZL=1e4;function GL(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var n;return(n=Array.from(e.keys())[t])!==null&&n!==void 0?n:null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function JL(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return GL()}const YL=`
310  addEventListener("message", (e) => {
311    if (e.data.event === "start") {
312      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
313    }
314  });`;class QL{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
314,this.ref=0,this.serializer=new yL,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=i=>i?(...o)=>i(...o):(...o)=>fetch(...o),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const s=this._initializeOptions(n);this.socketAdapter=new qL(t,s),this.httpEndpoint=i4(t),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const s=await r.unsubscribe();return r.teardown(),s}),n=await Promise.all(t);return await this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||ig.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new ul(`realtime:${t}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(i),i}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
314this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const i={access_token:n,version:fL};n&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(r4.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n=="sent"&&this._setAuthSafely(),t&&t(n,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([YL],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,s,i,o,l,c,u,d,h,f,p;this.worker=(n=t==null?void 0:t.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t==null?void 0:t.accessToken)!==null&&r!==void 0?r:null;const y={};y.timeout=(s=t==null?void 0:t.timeout)!==null&&s!==void 0?s:gL,y.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:Lx.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(o=t==null?void 0:t.disconnectOnEmptyChannelsAfterMs)!==null&&o!==void 0?o:2*((l=t==null?void 0:t.heartbeatIntervalMs)!==null&&l!==void 0?l:Lx.HEARTBEAT_INTERVAL),y.transport=(c=t==null?void 0:t.transport)!==null&&c!==void 0?c:dL.getWebSocketConstructor(),y.params=t==null?void 0:t.params,y.logger=t==null?void 0:t.logger,y.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),y.sessionStorage=(u=t==null?void 0:t.sessionStorage)!==null&&u!==void 0?u:JL(),y.reconnectAfterMs=(d=t==null?void 0:t.reconnectAfterMs)!==null&&d!==void 0?d:g=>KL[g-1]||ZL;let m,w;const v=(h=t==null?void 0:t.vsn)!==null&&h!==void 0?h:mL;switch(v){case pL:m=(g,x)=>x(JSON.stringify(g)),w=(g,x)=>x(JSON.parse(g));break;case n4:m=this.serializer.encode.bind(this.serializer),w=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${y.vsn}`)}if(y.vsn=v,y.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:m,y.decode=(p=t==null?void 0:t.decode)!==null&&p!==void 0?p:w,y.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,y.params=Object.assign(Object.assign({},y.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,y.autoSendHeartbeat=!this.worker}return y}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
314var Wl=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function XL(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function ez(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function tz(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const l=XL(e.baseUrl,r,s),c=await ez(e.auth),u=await t(l,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...c,...o},body:i?JSON.stringify(i):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),f=h&&d?JSON.parse(d):d;if(!u.ok){const p=h?f:void 0,y=p==null?void 0:p.error;throw new Wl((y==null?void 0:y.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:y==null?void 0:y.type,icebergCode:y==null?void 0:y.code,details:p})}return{status:u.status,headers:u.headers,data:f}}}}function Xc(e){return e.join("�")}var nz=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Xc(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Xc(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Xc(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Xc(e.namespace)}`}),!0}catch(t){if(t instanceof Wl&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Wl&&n.status===409)return;throw n}}};function Vi(e){return e.join("�")}var rz=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Vi(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Vi(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Vi(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Vi(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Vi(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Vi(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Wl&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Wl&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},sz=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=tz({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new nz(this.client,t),this.tableOps=new rz(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
314async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function ql(e){"@babel/helpers - typeof";return ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ql(e)}function iz(e,t){if(ql(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ql(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oz(e){var t=iz(e,"string");return ql(t)=="symbol"?t:t+""}function az(e,t,n){return(t=oz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zx(Object(n),!0).forEach(function(r){az(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ph=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function $h(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var cg=class extends Ph{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return te({},super.toJSON())}},a4=class extends Ph{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function Ad(e,t,n){const r=te({},e),s=t.toLowerCase();for(const i of Object.keys(r))i.toLowerCase()===s&&delete r[i];return r[s]=n,r}function lz(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}const cz=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),uz=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ug=e=>{if(Array.isArray(e))return e.map(n=>ug(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=ug(r)}),t},dz=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),Fx=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const n=t.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(e)},hz=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const s=e;let i=parseInt(String(s.status),10);Number.isFinite(i)||(i=500),s.json().then(o=>{const l=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";t(new cg(Fx(o),i,l,r))}).catch(()=>{const o=i+"";t(new cg(s.statusText||`HTTP ${i} error`,i,o,r))})}else t(new a4(Fx(e),e,r))},fz=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!r)return te(te({},s),n);if(uz(r)){var i;const o=(t==null?void 0:t.headers)||{};let l;for(const[c,u]of Object.entries(o))c.toLowerCase()==="content-type"&&(l=u);s.headers=Ad(o,"Content-Type",(i=l)!==null&&i!==void 0?i:"application/json"),s.body=JSON.stringify(r)}else s.body=r;return t!=null&&t.duplex&&(s.duplex=t.duplex),te(te({},s),n)};async function $a(e,t,n,r,s,i,o){return new Promise((l,c)=>{e(n,fz(t,r,s,i)).then(u=>{if(!u.ok)throw u;if(r!=null&&r.noResolveJson)return u;if(o==="vectors"){const d=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!d||!d.includes("application/json"))return{}}return u.json()}).then(u=>l(u)).catch(u=>hz(u,c,r,o))})}function l4(e="storage"){return{get:async(t,n,r,s)=>$a(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>$a(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>$a(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>$a(t,"HEAD",n,te(te({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>$a(t,"DELETE",n,s,i,r,e)}}const pz=l4("storage"),{get:Kl,post:On,put:dg,head:mz,remove:Zl}=pz,Gt=l4("vectors");var pa=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=lz(t),this.fetch=cz(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=Ad(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if($h(n))return{data:null,error:n};throw n}}};let c4;c4=Symbol.toStringTag;var gz=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[c4]="StreamDownloadBuilder",this.promise=null}
314then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if($h(t))return{data:null,error:t};throw t}}};let u4;u4=Symbol.toStringTag;var vz=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[u4]="BlobDownloadBuilder",this.promise=null}asStream(){return new gz(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if($h(t))return{data:null,error:t};throw t}}};const ip={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ux={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var yz=class extends pa{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let i;const o=te(te({},Ux),r);let l=te(te({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;if(typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",s.encodeMetadata(c)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),c&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(c))):(i=n,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=s.toBase64(s.encodeMetadata(c))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers)for(const[f,p]of Object.entries(r.headers))l=Ad(l,f,p);const u=s._removeEmptyFolders(t),d=s._getFinalPath(u),h=await(e=="PUT"?dg:On)(s.fetch,`${s.url}/object/${d}`,i,te({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:u,id:h.Id,fullPath:h.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),l=new URL(s.url+`/object/upload/sign/${o}`);return l.searchParams.set("token",t),s.handleOperation(async()=>{let c;const u=te(te({},Ux),r);let d=te(te({},s.headers),{"x-upsert":String(u.upsert)});const h=u.metadata;if(typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),h&&c.append("metadata",s.encodeMetadata(h)),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.has("cacheControl")||c.append("cacheControl",u.cacheControl),h&&!c.has("metadata")&&c.append("metadata",s.encodeMetadata(h))):(c=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType,h&&(d["x-metadata"]=s.toBase64(s.encodeMetadata(h))),(typeof ReadableStream<"u"&&c instanceof ReadableStream||c&&typeof c=="object"&&"pipe"in c&&typeof c.pipe=="function")&&!u.duplex&&(u.duplex="half")),r!=null&&r.headers)for(const[f,p]of Object.entries(r.headers))d=Ad(d,f,p);return{path:i,fullPath:(await dg(s.fetch,l.toString(),c,te({headers:d},u!=null&&u.duplex?{duplex:u.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=te({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await On(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(n.url+i.url),l=o.searchParams.get("token");if(!l)throw new Ph("No token returned by API");return{signedUrl:o.toString(),path:e,token:l}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await On(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
314stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await On(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e);const i=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let o=await On(r.fetch,`${r.url}/object/sign/${s}`,te({expiresIn:t},i?{transform:n.transform}:{}),{headers:r.headers});const l=new URLSearchParams;n!=null&&n.download&&l.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&l.set("cacheNonce",String(n.cacheNonce));const c=l.toString();return{signedUrl:encodeURI(`${r.url}${o.signedURL}${c?`&${c}`:""}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await On(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=new URLSearchParams;n!=null&&n.download&&i.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&i.set("cacheNonce",String(n.cacheNonce));const o=i.toString();return s.map(l=>te(te({},l),{},{signedUrl:l.signedURL?encodeURI(`${r.url}${l.signedURL}${o?`&${o}`:""}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(s,t.transform),(t==null?void 0:t.cacheNonce)!=null&&s.set("cacheNonce",String(t.cacheNonce));const i=s.toString(),o=this._getFinalPath(e),l=()=>Kl(this.fetch,`${this.url}/${r}/${o}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new vz(l,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>ug(await Kl(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await mz(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if($h(s)){var r;const i=s instanceof cg?s.status:s instanceof a4?(r=s.originalError)===null||r===void 0?void 0:r.status:void 0;if(i!==void 0&&[400,404].includes(i))return{data:!1,error:s}}throw s}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=new URLSearchParams;t!=null&&t.download&&r.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(r,t.transform),(t==null?void 0:t.cacheNonce)!=null&&r.set("cacheNonce",String(t.cacheNonce));const s=r.toString(),i=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}`)+(s?`?${s}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await Zl(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async purgeCache(e,t,n){var r=this;return r.handleOperation(async()=>{const s=r._getFinalPath(e),i=new URLSearchParams;t!=null&&t.transformations&&i.set("transformations","true");const o=i.toString();return await Zl(r.fetch,`${r.url}/cdn/${s}${o?`?${o}`:""}`,{},{headers:r.headers},n)})}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const s=t!=null&&t.sortBy?te(te({},ip.sortBy),t.sortBy):ip.sortBy,i=te(te(te({},ip),t),{},{sortBy:s,prefix:e||""});return await On(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=te({},e);return await On(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("qual
314ity",t.quality.toString()),e}};const bz="2.110.0",gc={"X-Client-Info":`storage-js/${bz}`};var xz=class extends pa{constructor(e,t={},n,r){const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),o=te(te({},gc),t);super(i,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Kl(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Kl(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await On(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await dg(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await On(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Zl(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}async purgeBucketCache(e,t,n){var r=this;return r.handleOperation(async()=>{const s=new URLSearchParams;t!=null&&t.transformations&&s.set("transformations","true");const i=s.toString();return await Zl(r.fetch,`${r.url}/cdn/${e}${i?`?${i}`:""}`,{},{headers:r.headers},n)})}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},wz=class extends pa{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=te(te({},gc),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await On(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Kl(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Zl(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!dz(e))throw new Ph("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new sz({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...l)=>{try{return{data:await o.apply(s,l),error:null}}catch(c){if(r)throw c;return{data:null,error:c}}}}})}},Cz=class extends pa{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=te(te({},gc),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Gt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Gt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Gt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Gt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},_z=class extends pa{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=te(te({},gc),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Gt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Gt.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
314if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Gt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Gt.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Gt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},jz=class extends pa{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=te(te({},gc),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Gt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Gt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Gt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Gt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},Sz=class extends jz{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new kz(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},kz=class extends Cz{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,te(te({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,te(te({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new Tz(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},Tz=class extends _z{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,te(te({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,te(te({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,te(te({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,te(te({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,te(te({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},Ez=class extends xz{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new yz(this.url,this.headers,e,this.fetch)}get vectors(){return new Sz(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new wz(this.url+"/iceberg",this.headers,this.fetch)}};function Mh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}const d4="2.110.0",Rr=30*1e3,Va=3,op=Va*Rr,Nz=2*Rr,Rz="http://localhost:9999",Az="supabase.auth.token",Pz={"X-Client-Info":`gotrue-js/${d4}`},hg="X-Supabase-Api-Version",h4={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},$z=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Mz=10*60*1e3;
314class Gl extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function H(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Oz extends Gl{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function Iz(e){return H(e)&&e.name==="AuthApiError"}class Fn extends Gl{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class yr extends Gl{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class lt extends yr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function eu(e){return H(e)&&e.name==="AuthSessionMissingError"}class Hi extends yr{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class tu extends yr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class nu extends yr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function Dz(e){return H(e)&&e.name==="AuthImplicitGrantRedirectError"}class Bx extends yr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class Lz extends yr{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class fg extends yr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Vx(e){return H(e)&&e.name==="AuthRetryableFetchError"}class Hx extends yr{constructor(t="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(t,"AuthRefreshDiscardedError",409,void 0)}}function zz(e){return H(e)&&e.name==="AuthRefreshDiscardedError"}class Wx extends yr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Pd extends yr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const $d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),qx=` 	
315\r=`.split(""),Fz=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<qx.length;t+=1)e[qx[t].charCodeAt(0)]=-2;for(let t=0;t<$d.length;t+=1)e[$d[t].charCodeAt(0)]=t;return e})();function Kx(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n($d[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n($d[r]),t.queuedBits-=6}}function f4(e,t,n){const r=Fz[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Zx(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{Vz(o,r,n)};for(let o=0;o<e.length;o+=1)f4(e.charCodeAt(o),s,i);return t.join("")}function Uz(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function Bz(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}Uz(r,t)}}function Vz(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Ao(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)f4(e.charCodeAt(s),n,r);return new Uint8Array(t)}function Hz(e){const t=[];return Bz(e,n=>t.push(n)),new Uint8Array(t)}function ci(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>Kx(s,n,r)),Kx(null,n,r),t.join("")}function Wz(e){return Math.round(Date.now()/1e3)+e}function qz(){return Symbol("auth-callback")}const _t=()=>typeof window<"u"&&typeof document<"u",Ys={tested:!1,writable:!1},p4=()=>{if(!_t())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Ys.tested)return Ys.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Ys.tested=!0,Ys.writable=!0}catch{Ys.tested=!0,Ys.writable=!1}return Ys.writable};function Kz(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
315h((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const m4=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Zz=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",eo=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Tn=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}},Ye=async(e,t)=>{await e.removeItem(t)};class Oh{constructor(){this.promise=new Oh.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Oh.promiseConstructor=Promise;function ru(e){const t=e.split(".");if(t.length!==3)throw new Pd("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!$z.test(t[r]))throw new Pd("JWT not in base64url format");return{header:JSON.parse(Zx(t[0])),payload:JSON.parse(Zx(t[1])),signature:Ao(t[2]),raw:{header:t[0],payload:t[1]}}}async function Gz(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Jz(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function Yz(e){return("0"+e.toString(16)).substr(-2)}function Qz(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,Yz).join("")}async function Xz(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function eF(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await Xz(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Qs(e,t,n=!1){const r=Qz();let s=r;n&&(s+="/recovery"),await eo(e,`${t}-code-verifier`,s);const i=await eF(r);return[i,r===i?"plain":"s256"]}const tF=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function nF(e){const t=e.headers.get(hg);if(!t||!t.match(tF))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function rF(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function sF(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const iF=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function _r(e){if(!iF.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Rn(e){if(!e.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function ap(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function oF(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
315if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function Gx(e){return JSON.parse(JSON.stringify(e))}const si=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},aF=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function Jx(e){var t;if(!Zz(e))throw new fg(si(e),0);if(aF.includes(e.status))throw new fg(si(e),e.status);let n;try{n=await e.json()}catch(i){throw new Fn(si(i),i)}let r;const s=nF(e);if(s&&s.getTime()>=h4["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Wx(si(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new lt}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new Wx(si(n),e.status,n.weak_password.reasons);throw new Oz(si(n),e.status||500,r)}const lF=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function G(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[hg]||(i[hg]=h4["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await cF(e,t,n+l,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(c):{data:Object.assign({},c),error:null}}async function cF(e,t,n,r,s,i){const o=lF(t,r,s,i);let l;try{l=await e(n,Object.assign({},o))}catch(c){throw console.error(c),new fg(si(c),0)}if(l.ok||await Jx(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(c){await Jx(c)}}function on(e){var t;let n=null;hF(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=Wz(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:typeof(e==null?void 0:e.id)=="string"?e:null;return{data:{session:n,user:r},error:null}}function Yx(e){const t=on(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function hs(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function uF(e){return{data:e,error:null}}function dF(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=Mh(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function Qx(e){return e}function hF(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const lp=["global","local","others"];class fF{constructor({url:t="",headers:n={},fetch:r,experimental:s}){this.url=t,this.headers=n,this.fetch=m4(r),this.experimental=s??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(t,n=lp[0]){if(lp.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${lp.join(", ")}`);try{return await G(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(H(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await G(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:hs})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Mh(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await G(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:dF,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(H(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await G(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:hs})}catch(n){if(H(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await G(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Qx});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>
3150&&(p.forEach(y=>{const m=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(y.split(";")[1].split("=")[1]);u[`${w}Page`]=m}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(H(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){_r(t);try{return await G(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:hs})}catch(n){if(H(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){_r(t);try{return await G(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:hs})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){_r(t);try{return await G(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:hs})}catch(r){if(H(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){_r(t.userId);try{const{data:n,error:r}=await G(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(H(n))return{data:null,error:n};throw n}}async _deleteFactor(t){_r(t.userId),_r(t.id);try{return{data:await G(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(H(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await G(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Qx});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>0&&(p.forEach(y=>{const m=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(y.split(";")[1].split("=")[1]);u[`${w}Page`]=m}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(H(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await G(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await G(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await G(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(H(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await G(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(H(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await G(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await G(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var s;return{data:{providers:(s=r==null?void 0:r.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(n){if(H(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await G(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await G(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await G(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(H(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await G(this.fetch,"DELET
315E",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(H(n))return{data:null,error:n};throw n}}async _adminListPasskeys(t){Rn(this.experimental),_r(t.userId);try{return await G(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(H(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(t){Rn(this.experimental),_r(t.userId),_r(t.passkeyId);try{return await G(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(H(n))return{data:null,error:n};throw n}}}function Xx(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}globalThis&&p4()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class pF extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}function mF(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function g4(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function gF(e){return parseInt(e,16)}function vF(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function yF(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:l,requestId:c,resources:u,scheme:d,uri:h,version:f}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
316`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=g4(e.address),y=d?`${d}://${r}`:r,m=e.statement?`${e.statement}
317`:"",w=`${y} wants you to sign in with your Ethereum account:
318${p}
319
320${m}`;let v=`URI: ${h}
321Version: ${f}
322Chain ID: ${n}${o?`
323Nonce: ${o}`:""}
324Issued At: ${i.toISOString()}`;if(s&&(v+=`
325Expiration Time: ${s.toISOString()}`),l&&(v+=`
326Not Before: ${l.toISOString()}`),c&&(v+=`
327Request ID: ${c}`),u){let g=`
328Resources:`;for(const x of u){if(!x||typeof x!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${x}`);g+=`
329- ${x}`}v+=g}return`${w}
330${v}`}class et extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class Md extends et{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function bF({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new et({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new et({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new et({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new et({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new et({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new et({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new et({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new et({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(v4(o)){if(i.rp.id!==o)return new et({message:`The RP ID "${i.rp.id}
330" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new et({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new et({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new et({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new et({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function xF({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new et({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new et({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(v4(r)){if(n.rpId!==r)return new et({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new et({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new et({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new et({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class wF{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const pg=new wF;function ew(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,s=Mh(e,["challenge","user","excludeCredentials"]),i=Ao(t).buffer,o=Object.assign(Object.assign({},n),{id:Ao(n.id).buffer}),l=Object.assign(Object.assign({},s),{challenge:i,user:o});if(r&&r.length>0){l.excludeCredentials=new Array(r.length);for(let c=0;c<r.length;c++){const u=r[c];l.excludeCredentials[c]=Object.assign(Object.assign({},u),{id:Ao(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return l}function tw(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Mh(e,["challenge","allowCredentials"]),s=Ao(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const l=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},l),{id:Ao(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return i}function nw(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:ci(new Uint8Array(e.response.attestationObject)),clientDataJSON:ci(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function rw(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:ci(new Uint8Array(s.authenticatorData)),clientDataJSON:ci(new Uint8Array(s.clientDataJSON)),signature:ci(new Uint8Array(s.signature)),userHandle:s.userHandle?ci(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function v4(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Od(){var e,t;return!!(_t()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function y4(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Md("Browser returned unexpected credential type",t)}:{data:null,error:new Md("Empty credential response",t)}}
330catch(t){return{data:null,error:bF({error:t,options:e})}}}async function b4(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Md("Browser returned unexpected credential type",t)}:{data:null,error:new Md("Empty credential response",t)}}catch(t){return{data:null,error:xF({error:t,options:e})}}}const CF={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},_F={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Id(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(t(o)){const l=r[i];t(l)?r[i]=Id(l,o):r[i]=Id(o)}else r[i]=o}return r}function jF(e,t){return Id(CF,e,t||{})}function SF(e,t){return Id(_F,e,t||{})}class kF{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},i){var o;try{const{data:l,error:c}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!l)return{data:null,error:c};const u=s??pg.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:d}=l.webauthn.credential_options.publicKey;if(!d.name){const h=r;if(h)d.name=`${d.id}:${h}`;else{const p=(await this.client.getUser()).data.user,y=((o=p==null?void 0:p.user_metadata)===null||o===void 0?void 0:o.name)||(p==null?void 0:p.email)||(p==null?void 0:p.id)||"User";d.name=`${d.id}:${y}`}}d.displayName||(d.displayName=d.name)}switch(l.webauthn.type){case"create":{const d=jF(l.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:h,error:f}=await y4({publicKey:d,signal:u});return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}case"request":{const d=SF(l.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:h,error:f}=await b4(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:d,signal:u}));return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}}}catch(l){return H(l)?{data:null,error:l}:{data:null,error:new Fn("Unexpected error in challenge",l)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Gl("rpId is required for WebAuthn authentication")};try{if(!Od())return{data:null,error:new Fn("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:l};const{webauthn:c}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:c.type,rpId:n,rpOrigins:r,credential_response:c.credential_response}})}catch(o){return H(o)?{data:null,error:o}:{data:null,error:new Fn("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new Gl("rpId is required for WebAuthn registration")};try{if(!Od())return{data:null,error:new Fn("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(d=>{var h;
330return(h=d.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:l};const{data:c,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return c?this._verify({factorId:o.id,challengeId:c.challengeId,webauthn:{rpId:n,rpOrigins:r,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(o){return H(o)?{data:null,error:o}:{data:null,error:new Fn("Unexpected error in register",o)}}}}mF();const TF={url:Rz,storageKey:Az,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Pz,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},Wi={};class Jl{get jwks(){var t,n;return(n=(t=Wi[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Wi[this.storageKey]=Object.assign(Object.assign({},Wi[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Wi[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Wi[this.storageKey]=Object.assign(Object.assign({},Wi[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},TF),t);if(this.storageKey=i.storageKey,this.instanceID=(n=Jl.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Jl.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&_t()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.experimental=(r=i.experimental)!==null&&r!==void 0?r:{},this.admin=new fF({url:i.url,headers:i.headers,fetch:i.fetch,experimental:this.experimental}),this.url=i.url,this.headers=i.headers,this.fetch=m4(i.fetch),this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock!=null&&(this.lock=i.lock),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new kF(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:p4()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Xx(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=Xx(this.memoryStorage)),_t()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),(o.data.event==="TOKEN_REFRESHED"||o.data.event==="SIGNED_IN")&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}i.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${d4}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(_t()&&(n=Kz(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),_t()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),Dz(i)){const c=(t=i.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:l}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return H(n)?this._returnResult({error:n}):this._returnResult({error:new Fn("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:on}),{data:o,error:l}=i;if(l||!o)return this._returnResult({data:{user:null,session:null},error:l});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(H(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:d,password:h,options:f}=t;let p=null,y=null;this.flowType==="pkce"&&([p,y]=await Qs(this.storage,this.storageKey)),i=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:d,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:p,code_challenge_method:y},xform:on})}else if("phone"in t){const{phone:d,password:h,options:f}=t;i=await G(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:on})}else throw new tu("You must provide either an email or phone number and a password");const{data:o,error:l}=i;if(l||!o)return await Ye(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),H(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:l}=t;n=await G(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Yx})}else if("phone"in t){const{phone:i,password:o,options:l}=t;n=await G(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Yx})}else throw new tu("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new Hi;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(H(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t)):this._exchangeCodeForSession(t)}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,o,l,c,u,d,h,f;let p,y;if("message"in t)p=t.message,y=t.signature;else{const{chain:m,wallet:w,statement:v,options:g}=t;let x;if(_t())if(typeof w=="object")x=w;else{const T=window;if("ethereum"in T&&typeof T.ethereum=="object"&&"request"in T.ethereum&&typeof T.ethereum.request=="function")x=T.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof w!="object"||!(g!=null&&g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=w}const C=new URL((n=g==null?void 0:g.url)!==null&&n!==void 0?n:window.location.href),_=await x.request({method:"eth_requestAccounts"}).then(T=>T).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!_||_.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const S=g4(_[0]);let j=(r=g==null?void 0:g.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!j){const T=await x.request({method:"eth_chainId"});j=gF(T)}const k={domain:C.host,address:S,statement:v,uri:C.href,version:"1",chainId:j,nonce:(s=g==null?void 0:g.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=g==null?void 0:g.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(l=g==null?void 0:g.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=g==null?void 0:g.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=g==null?void 0:g.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=g==null?void 0:g.signInWithEthereum)===null||d===void 0?void 0:d.resources};p=yF(k),y=await x.request({method:"personal_sign",params:[vF(p),S]})}try{const{data:m,error:w}=await G(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:y}
330,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:on});if(w)throw w;if(!m||!m.session||!m.user){const v=new Hi;return this._returnResult({data:{user:null,session:null},error:v})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:w})}catch(m){if(H(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var n,r,s,i,o,l,c,u,d,h,f,p;let y,m;if("message"in t)y=t.message,m=t.signature;else{const{chain:w,wallet:v,statement:g,options:x}=t;let C;if(_t())if(typeof v=="object")C=v;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))C=S.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");C=v}const _=new URL((n=x==null?void 0:x.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in C&&C.signIn){const S=await C.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},x==null?void 0:x.signInWithSolana),{version:"1",domain:_.host,uri:_.href}),g?{statement:g}:null));let j;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")j=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)j=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in j&&"signature"in j&&(typeof j.signedMessage=="string"||j.signedMessage instanceof Uint8Array)&&j.signature instanceof Uint8Array)y=typeof j.signedMessage=="string"?j.signedMessage:new TextDecoder().decode(j.signedMessage),m=j.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in C)||typeof C.signMessage!="function"||!("publicKey"in C)||typeof C!="object"||!C.publicKey||!("toBase58"in C.publicKey)||typeof C.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${_.host} wants you to sign in with your Solana account:`,C.publicKey.toBase58(),...g?["",g,""]:[""],"Version: 1",`URI: ${_.href}`,`Issued At: ${(s=(r=x==null?void 0:x.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=x==null?void 0:x.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${x.signInWithSolana.notBefore}`]:[],...!((o=x==null?void 0:x.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${x.signInWithSolana.expirationTime}`]:[],...!((l=x==null?void 0:x.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${x.signInWithSolana.chainId}`]:[],...!((c=x==null?void 0:x.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${x.signInWithSolana.nonce}`]:[],...!((u=x==null?void 0:x.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${x.signInWithSolana.requestId}`]:[],...!((h=(d=x==null?void 0:x.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...x.signInWithSolana.resources.map(j=>`- ${j}`)]:[]].join(`
331`);const S=await C.signMessage(new TextEncoder().encode(y),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=S}}try{const{data:w,error:v}=await G(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:ci(m)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:on});if(v)throw v;if(!w||!w.session||!w.user){const g=new Hi;return this._returnResult({data:{user:null,session:null},error:g})}return w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),this._returnResult({data:Object.assign({},w),error:v})}catch(w){if(H(w))return this._returnResult({data:{user:null,session:null},error:w});throw w}}async _exchangeCodeForSession(t){const n=await Tn(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new Lz;const{data:i,error:o}=await G(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:on});if(await Ye(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const l=new Hi;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers(s==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),H(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,l=await G(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:on}),{data:c,error:u}=l;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!c||!c.session||!c.user){const d=new Hi;return this._returnResult({data:{user:null,session:null},error:d})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:u})}catch(n){if(H(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:l,options:c}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Qs(this.storage,this.storageKey));const{error:h}=await G(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(r=c==null?void 0:c.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:l,options:c}=t,{data:u,error:d}=await G(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(s=c==null?void 0:c.data)!==null&&s!==void 0?s:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new tu("You must provide either an email or phone number.")}catch(l){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),H(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:l}=await G(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:on});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,u=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(s){if(H(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,o;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await Qs(this.storage,this.storageKey));const u=await G(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:uF});return!((i=u.data)===null||i===void 0)&&i.url&&_t()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(l){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),H(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):await this._reauthenticate()}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new lt;const{error:s}=await G(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(H(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t;let o=null,l=null;this.flowType==="pkce"&&([o,l]=await Qs(this.storage,this.storageKey));const{error:c}=await G(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}
331,code_challenge:o,code_challenge_method:l},redirectTo:i==null?void 0:i.emailRedirectTo});return c&&await Ye(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:c})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:l}=await G(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l})}throw new tu("You must provide either an email or phone number and a type")}catch(n){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),H(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async t=>t)):await this._useSession(async t=>t)}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Tn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<op:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Tn(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=ap()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=oF(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);if(i){if(!!(t.expires_at&&t.expires_at*1e3>Date.now())){const l=await Tn(this.storage,this.storageKey);if(l&&l.refresh_token===t.refresh_token)return this._returnResult({data:{session:t},error:null})}return this._returnResult({data:{session:null},error:i})}return this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;let n;return this.lock!=null?n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):n=await this._getUser(),n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await G(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:hs}):await this._useSession(async n=>{var r,s,i;const{data:o,error:l}=n;if(l)throw l;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new lt}:await G(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:hs})})}catch(n){if(H(n))return eu(n)&&(await this._removeSession(),await Ye(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n)):await this._updateUser(t,n)}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new lt;const o=s.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await Qs(this.storage,this.storageKey));const{data:u,error:d}=await G(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:hs});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),H(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t)):await this._setSession(t)}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new lt;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=ru(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});i={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(H(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t)):await this._refreshSession(t)}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:l}=n;if(l)throw l;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new lt;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(H(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){var r;try{if(!_t())throw new nu("No browser detected.");
331if(t.error||t.error_description||t.error_code)throw new nu(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Bx("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new nu("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Bx("No code detected.");const{data:x,error:C}=await this._exchangeCodeForSession(t.code);if(C)throw C;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:x.session,redirectType:(r=x.redirectType)!==null&&r!==void 0?r:null},error:null}}const{provider_token:s,provider_refresh_token:i,access_token:o,refresh_token:l,expires_in:c,expires_at:u,token_type:d}=t;if(!o||!c||!l||!d)throw new nu("No session defined in URL");const h=Math.round(Date.now()/1e3),f=parseInt(c);let p=h+f;u&&(p=parseInt(u));const y=p-h;y*1e3<=Rr&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${y}s, should have been closer to ${f}s`);const m=p-f;h-m>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",m,p,h):h-m<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",m,p,h);const{data:w,error:v}=await this._getUser(o);if(v)throw v;const g={provider_token:s,provider_refresh_token:i,access_token:o,expires_in:f,expires_at:p,refresh_token:l,token_type:d,user:w.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:t.type},error:null})}catch(s){if(H(s))return this._returnResult({data:{session:null,redirectType:null},error:s});throw s}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error||t.error_description||t.error_code)}async _isPKCECallback(t){const n=await Tn(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t)):await this._signOut(t)}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i&&!eu(i))return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:l}=await this.admin.signOut(o,t);if(l&&!(Iz(l)&&(l.status===404||l.status===401||l.status===403)||eu(l)))return this._returnResult({error:l})}return t!=="others"&&(await this._removeSession(),await Ye(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=qz(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)}):await this._emitInitialSession(n)))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),eu(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Qs(this.storage,this.storageKey,!0));try{return await G(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),H(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,l,c,u,d;const{data:h,error:f}=i;if(f)throw f;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await G(this.fetch,"GET",p,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return _t()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(H(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;
331if(s)throw s;const{options:o,provider:l,token:c,access_token:u,nonce:d}=t,h=await G(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:l,id_token:c,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:on}),{data:f,error:p}=h;return p?this._returnResult({data:{user:null,session:null},error:p}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new Hi}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:p}))}catch(s){if(await Ye(this.storage,`${this.storageKey}-code-verifier`),H(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await G(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n="#_refreshAccessToken()";this._debug(n,"begin");try{const r=Date.now();return await Jz(async s=>(s>0&&await Gz(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await G(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:on})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Vx(i)&&Date.now()+o-r<Rr})}catch(r){if(this._debug(n,"error",r),H(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),_t()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await Tn(this.storage,this.storageKey);if(s&&this.userStorage){let o=await Tn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await eo(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:ap()}else if(s&&!s.user&&!s.user){const o=await Tn(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Ye(this.storage,this.storageKey+"-user"),await eo(this.storage,this.storageKey,s)):s.user=ap()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<op;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${op}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(zz(o)?this._debug(r,"refresh discarded by commit guard",o):this._debug(r,"refresh failed",o))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(s.access_token);!l&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new lt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===t&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug("#_callRefreshToken()","returning c
331ached failure (cooldown active)"),this.lastRefreshFailure.result;const s="#_callRefreshToken()";this._debug(s,"begin");try{this.refreshingDeferred=new Oh;const i=await Tn(this.storage,this.storageKey),{data:o,error:l}=await this._refreshAccessToken(t);if(l)throw l;if(!o.session)throw new lt;const c=await Tn(this.storage,this.storageKey);if(i!==null&&(c===null||c.refresh_token!==i.refresh_token)){this._debug(s,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:c?"replaced":"cleared"});const f={data:null,error:new Hx};return this.refreshingDeferred.resolve(f),f}const d=this._sessionRemovalEpoch;if(await this._saveSession(o.session),this._sessionRemovalEpoch!==d){this._debug(s,"commit guard (post-save): _removeSession ran during _saveSession, undoing write"),await Ye(this.storage,this.storageKey),this.userStorage&&await Ye(this.userStorage,this.storageKey+"-user");const f={data:null,error:new Hx};return this.refreshingDeferred.resolve(f),f}await this._notifyAllSubscribers("TOKEN_REFRESHED",o.session);const h={data:o.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(h),h}catch(i){if(this._debug(s,"error",i),H(i)){const o={data:null,error:i};if(!Vx(i)){const l=await Tn(this.storage,this.storageKey);!!(l!=null&&l.expires_at&&l.expires_at*1e3>Date.now())?this._debug(s,"proactive refresh failed, access token still valid — preserving session"):await this._removeSession()}return this.lastRefreshFailure={refreshToken:t,result:o,expiresAt:Date.now()+Nz},(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,n)}catch(c){i.push(c)}});if(await Promise.all(o),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Ye(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await eo(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=Gx(s);await eo(this.storage,this.storageKey,i)}else{const s=Gx(n);await eo(this.storage,this.storageKey,s)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await Ye(this.storage,this.storageKey),await Ye(this.storage,this.storageKey+"-code-verifier"),await Ye(this.storage,this.storageKey+"-user"),this.userStorage&&await Ye(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&_t()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Rr);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var t;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(t=this.broadcastChannel)===null||t===void 0||t.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Rr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Rr}ms, refresh threshold is ${Va} ticks`),s<=Va&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof pF)this._debug("auto refresh token tick lock not available");else throw t}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const t=Date.now();try{await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Rr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Rr}ms, refresh threshold is ${Va} ticks`),s<=Va&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!_t()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;if(this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!t)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>
331{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()});else{if(document.visibilityState!=="visible"){this._debug(n,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await Qs(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(l.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await G(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:c,error:u}=await G(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&c.type==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const l=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?nw(t.webauthn.credential_response):rw(t.webauthn.credential_response)})}:{code:t.code}),{data:c,error:u}=await G(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:l,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});return u?this._returnResult({data:null,error:u}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+c.expires_in},c)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",c),this._returnResult({data:c,error:u}))})}catch(r){if(H(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challenge(t){const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const l=await G(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});if(l.error)return l;const{data:c}=l;if(c.type!=="webauthn")return{data:c,error:null};switch(c.webauthn.type){case"create":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:ew(c.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:tw(c.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(H(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,s,i;if(t)try{const{payload:p}=ru(t);let y=null;p.aal&&(y=p.aal);let m=y;const{data:{user:w},error:v}=await this.getUser(t);if(v)return this._returnResult({data:null,error:v});((r=(n=w==null?void 0:w.factors)===null||n===void 0?void 0:n.filter(C=>C.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(m="aal2");const x=p.amr||[];return{data:{currentLevel:y,nextLevel:m,currentAuthenticationMethods:x},error:null}}catch(p){if(H(p))return this._returnResult({data:null,error:p});throw p}const{data:{session:o},error:l}
331=await this.getSession();if(l)return this._returnResult({data:null,error:l});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:c}=ru(o.access_token);let u=null;c.aal&&(u=c.aal);let d=u;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(p=>p.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(d="aal2");const f=c.amr||[];return{data:{currentLevel:u,nextLevel:d,currentAuthenticationMethods:f},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await G(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new lt})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new lt});const o=await G(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&_t()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(H(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new lt});const o=await G(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&_t()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(H(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await G(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new lt})})}catch(t){if(H(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await G(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new lt})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(l=>l.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(l=>l.kid===t),r&&this.jwks_cached_at+Mz>s)return r;const{data:i,error:o}=await G(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(l=>l.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:p,error:y}
331=await this.getSession();if(y||!p.session)return this._returnResult({data:null,error:y});r=p.session.access_token}const{header:s,payload:i,signature:o,raw:{header:l,payload:c}}=ru(r);if(!(n!=null&&n.allowExpired))try{rF(i.exp)}catch(p){throw new Pd(p instanceof Error?p.message:"JWT validation failed")}const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:i,header:s,signature:o},error:null}}const d=sF(s.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,o,Hz(`${l}.${c}`)))throw new Pd("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(H(r))return this._returnResult({data:null,error:r});throw r}}async signInWithPasskey(t){var n,r,s;Rn(this.experimental);try{if(!Od())return this._returnResult({data:null,error:new Fn("Browser does not support WebAuthn",null)});const{data:i,error:o}=await this._startPasskeyAuthentication({options:{captchaToken:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}});if(o||!i)return this._returnResult({data:null,error:o});const l=tw(i.options),c=(s=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.signal)!==null&&s!==void 0?s:pg.createNewAbortSignal(),{data:u,error:d}=await b4({publicKey:l,signal:c});if(d||!u)return this._returnResult({data:null,error:d??new Fn("WebAuthn ceremony failed",null)});const h=rw(u);return this._verifyPasskeyAuthentication({challengeId:i.challenge_id,credential:h})}catch(i){if(H(i))return this._returnResult({data:null,error:i});throw i}}async registerPasskey(t){var n,r;Rn(this.experimental);try{if(!Od())return this._returnResult({data:null,error:new Fn("Browser does not support WebAuthn",null)});const{data:s,error:i}=await this._startPasskeyRegistration();if(i||!s)return this._returnResult({data:null,error:i});const o=ew(s.options),l=(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.signal)!==null&&r!==void 0?r:pg.createNewAbortSignal(),{data:c,error:u}=await y4({publicKey:o,signal:l});if(u||!c)return this._returnResult({data:null,error:u??new Fn("WebAuthn ceremony failed",null)});const d=nw(c);return this._verifyPasskeyRegistration({challengeId:s.challenge_id,credential:d})}catch(s){if(H(s))return this._returnResult({data:null,error:s});throw s}}async _startPasskeyRegistration(){Rn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new lt});const{data:s,error:i}=await G(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(H(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){Rn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new lt});const{data:i,error:o}=await G(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:r.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(t){var n;Rn(this.experimental);try{const{data:r,error:s}=await G(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:r,error:null})}catch(r){if(H(r))return this._returnResult({data:null,error:r});throw r}}async _verifyPasskeyAuthentication(t){Rn(this.experimental);try{const{data:n,error:r}=await G(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:on});return r?this._returnResult({data:null,error:r}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){Rn(this.experimental);try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new lt});const{data:s,error:i}=await G(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(H(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){Rn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new lt});const{data:i,error:o}=await G(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,body:{friendly_name:t.friendlyName}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:i,error:null})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(t){Rn(this.experimental);try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new lt});const{error:i}
331=await G(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(n){if(H(n))return this._returnResult({data:null,error:n});throw n}}}Jl.nextInstanceID={};const EF=Jl,NF="2.110.0";let Ha="",Dd;if(typeof Deno<"u"){var cp;Ha="deno",Dd=(cp=Deno.version)===null||cp===void 0?void 0:cp.deno}else if(typeof document<"u")Ha="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")Ha="react-native";else{var up;Ha="node",Dd=typeof process<"u"?(up=process.version)===null||up===void 0?void 0:up.replace(/^v/,""):void 0}const x4=[`runtime=${Ha}`];Dd&&x4.push(`runtime-version=${Dd}`);const RF={"X-Client-Info":`supabase-js/${NF}; ${x4.join("; ")}`},AF={headers:RF},PF={schema:"public"},$F={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},MF={},OF={enabled:!1,respectSamplingDecision:!0};function IF(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?i(d.value):s(d.value).then(l,c)}u((r=r.apply(e,[])).next())})}let dp=null;const DF="@opentelemetry/api";function LF(){return dp===null&&(dp=import(DF).catch(()=>null)),dp}function zF(){return IF(this,void 0,void 0,function*(){try{const e=yield LF();if(!e||!e.propagation||!e.context)return null;const t={};e.propagation.inject(e.context.active(),t);const n=t.traceparent;return n?{traceparent:n,tracestate:t.tracestate,baggage:t.baggage}:null}catch{return null}})}function FF(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[n,r,s,i]=t;if(n.length!==2||r.length!==32||s.length!==16||i.length!==2)return null;const o=/^[0-9a-f]+$/i;return!o.test(n)||!o.test(r)||!o.test(s)||!o.test(i)||r==="00000000000000000000000000000000"||s==="0000000000000000"?null:{version:n,traceId:r,parentId:s,traceFlags:i,isSampled:(parseInt(i,16)&1)===1}}function UF(e,t){if(!e||!t||t.length===0)return!1;let n;if(e instanceof URL)n=e;else try{n=new URL(e)}catch{return!1}for(const r of t)try{if(typeof r=="string"){if(BF(n.hostname,r))return!0}else if(r instanceof RegExp){if(r.test(n.hostname))return!0}else if(typeof r=="function"&&r(n))return!0}catch{continue}return!1}function BF(e,t){if(t===e)return!0;if(t.startsWith("*.")){const n=t.slice(2);if(e.endsWith(n)&&(e===n||e.endsWith("."+n)))return!0}return!1}function VF(e){const t=[];try{const n=new URL(e);t.push(n.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function Yl(e){"@babel/helpers - typeof";return Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yl(e)}function HF(e,t){if(Yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WF(e){var t=HF(e,"string");return Yl(t)=="symbol"?t:t+""}function qF(e,t,n){return(t=WF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sw(Object(n),!0).forEach(function(r){qF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const KF=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),ZF=()=>Headers,GF=(e,t,n,r,s)=>{const i=KF(r),o=ZF(),l=(s==null?void 0:s.enabled)===!0,c=(s==null?void 0:s.respectSamplingDecision)!==!1,u=l?VF(t):null;return async(d,h)=>{var f;const p=(f=await n())!==null&&f!==void 0?f:e;let y=new o(h==null?void 0:h.headers);if(y.has("apikey")||y.set("apikey",e),y.has("Authorization")||y.set("Authorization",`Bearer ${p}`),u){const m=await JF(d,u,c);m&&(m.traceparent&&!y.has("traceparent")&&y.set("traceparent",m.traceparent),m.tracestate&&!y.has("tracestate")&&y.set("tracestate",m.tracestate),m.baggage&&!y.has("baggage")&&y.set("baggage",m.baggage))}return i(d,Ze(Ze({},h),{},{headers:y}))}};async function JF(e,t,n){if(!UF(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const r=await zF();if(!r||!r.traceparent)return null;if(n){const s=FF(r.traceparent);if(s&&!s.isSampled)return null}return r}function iw(e){return typeof e=="boolean"?{enabled:e}:e}function YF(e){return e.endsWith("/")?e:e+"/"}function QF(e,t){var n,r,s,i,o,l;const{db:c,auth:u,realtime:d,global:h}=e,{db:f,auth:p,realtime:y,global:m}=t,w=iw(e.tracePropagation),v=iw(t.tracePropagation),g={db:Ze(Ze({},f),c),auth:Ze(Ze({},p),u),realtime:Ze(Ze({},y),d),storage:{},global:Ze(Ze(Ze({},m),h),{},{headers:Ze(Ze({},(n=m==null?void 0:m.headers)!==null&&n!==void 0?n:{}),(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{})}),tracePropagation:{enabled:(s=(i=w==null?void 0:w.enabled)!==null&&i!==void 0?i:v==null?void 0:v.enabled)!==null&&s!==void 0?s:!1,respectSamplingDecision:(o=(l=w==null?void 0:w.respectSamplingDecision)!==null&&l!==void 0?l:v==null?void 0:v.respectSamplingDecision)!==null&&o!==void 0?o:!0},accessToken:async()=>""};return e.accessToken?g.accessToken=e.accessToken:delete g.accessToken,g}function XF(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
331if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(YF(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var eU=class extends EF{constructor(e){super(e)}},tU=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=XF(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,l={db:PF,realtime:MF,auth:Ze(Ze({},$F),{},{storageKey:o}),global:AF,tracePropagation:OF},c=QF(n??{},l);if(this.settings=c,this.storageKey=(r=c.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=c.auth)!==null&&u!==void 0?u:{},this.headers,c.global.fetch)}this.fetch=GF(t,e,this._getAccessToken.bind(this),c.global.fetch,c.tracePropagation),this.realtime=this._initRealtimeClient(Ze({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},c.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new uL(new URL("rest/v1",i).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch,timeout:c.db.timeout,urlLengthLimit:c.db.urlLengthLimit}),this.storage=new Ez(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new tL(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:l,debug:c,throwOnError:u,experimental:d,lockAcquireTimeout:h,skipAutoInitialize:f},p,y){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new eU({url:this.authUrl.href,headers:Ze(Ze({},m),p),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:l,debug:c,throwOnError:u,experimental:d,fetch:y,lockAcquireTimeout:h,skipAutoInitialize:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(w=>w.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new QL(this.realtimeUrl.href,Ze(Ze({},e),{},{params:Ze(Ze({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const nU=(e,t,n)=>new tU(e,t,n);function rU(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=20:!1}rU()&&console.warn("⚠️  Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
331ode.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715");function sU(){var w,v;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(g=>e===g||e.endsWith("."+g)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",s=n?((w=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:w[1])??((v=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:v[1]):void 0,i=window.parent&&window.parent!==window;if(!s||!i)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),l=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,c=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),u=c&&l.test(c)?[c]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",h=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),p=(g,x,C)=>new Promise(_=>{const S=f();let j=!1,k;const T=O=>{j||(j=!0,clearTimeout(k),window.removeEventListener("message",R),_(O))},R=O=>{if(u.indexOf(O.origin)<0)return;const W=O.data;W&&W.type===d&&W.requestId===S&&T(W)};window.addEventListener("message",R);const D={type:g,requestId:S,projectId:s,key:x};C!==void 0&&(D.value=C);for(const O of u)window.parent.postMessage(D,O);k=setTimeout(()=>T(null),h)});let y=!0;const m=250;return{getItem:async g=>{let x=await p("lovable-preview-auth:get",g);return!x&&y&&(await new Promise(C=>setTimeout(C,m)),x=await p("lovable-preview-auth:get",g)),y=!1,x&&x.ok&&typeof x.value=="string"?x.value===""?(localStorage.removeItem(g),null):x.value:localStorage.getItem(g)},setItem:(g,x)=>(localStorage.setItem(g,x),p("lovable-preview-auth:set",g,x).then(()=>{})),removeItem:g=>(localStorage.removeItem(g),p("lovable-preview-auth:remove",g).then(()=>{}))}}const iU="https://asdrlqrowrxfsulvtunp.supabase.co",ow="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFzZHJscXJvd3J4ZnN1bHZ0dW5wIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODMzODQ1NTUsImV4cCI6MjA5ODk2MDU1NX0.YdTwYzrikmqtN1jxVpjGOeec8IH0mILGcUrBhB_LY-E";function oU(e){return e.startsWith("sb_publishable_")||e.startsWith("sb_secret_")}function aU(e){return(t,n)=>{const r=new Headers(typeof Request<"u"&&t instanceof Request?t.headers:void 0);return n!=null&&n.headers&&new Headers(n.headers).forEach((s,i)=>r.set(i,s)),oU(e)&&r.get("Authorization")===`Bearer ${e}`&&r.delete("Authorization"),r.set("apikey",e),fetch(t,{...n,headers:r})}}const gt=nU(iU,ow,{global:{fetch:aU(ow)},auth:{storage:sU(),persistSession:!0,autoRefreshToken:!0}}),aw=e=>e.toLowerCase().replace(/['’]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80),Ih=e=>e?new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):"",lU=async e=>{if(!e)return null;if(/^https?:\/\//i.test(e)||e.startsWith("/"))return e;const{data:t}=await gt.storage.from("blog-images").createSignedUrl(e,60*60*24*7);return(t==null?void 0:t.signedUrl)??null},cU={about:{title:"About Us",items:[{label:"Mission & Vision",href:"/about/mission"},{label:"Our Staff",href:"/about/staff"},{label:"Our Members",href:"/about/members"},{label:"Board of Directors",href:"/about/board"},{label:"Racial Justice Commitment",href:"/about/racial-justice"},{label:"Our History",href:"/about/history"},{label:"Financials & Reports",href:"/about/financials"}]},programs:{title:"Programs",items:[{label:"Office of Civic Dialogue",href:"/programs/civic-dialogue",children:[{label:"Respectful Conversations",href:"/programs/civic-dialogue/respectful-conversations"},{label:"Hosting a Respectful Conversation",href:"/programs/civic-dialogue/respectful-conversations/hosting"},{label:"Respectful Conversations Testimonials",href:"/programs/civic-dialogue/respectful-conversations/testimonials"},{label:"Additional Programming",href:"/programs/civic-dialogue/additional"}]},{label:"Congregational Member Services",href:"/programs/congregational-services"},{label:"Refugee & Immigrant Services",href:"/programs/refugee-services",children:[{label:"Who are Refugees?",href:"/programs/refugee-services/about-refugees"},{label:"Immigration Legal Services",href:"/programs/refugee-services/legal"},{label:"Twin Cities Programming",href:"/programs/refugee-services/twin-cities"},{label:"Mankato Programming",href:"/programs/refugee-services/mankato"},{label:"How to Help Refugees",href:"/programs/refugee-services/how-to-help"}]},{label:"Justice & Advocacy",href:"/programs/justice-advocacy",children:[{label:"Taking Heart Ramadan Iftars",href:"/programs/justice-advocacy/taking-heart"},{label:"Joint Religious Legislative Coalition",href:"/programs/justice-advocacy/joint-religious-legislative-coalition"},{label:"Partnerships and Opportunities to Engage",href:"/programs/justice-advocacy/partnerships"}]}]},"get-involved":{title:"Get Involved",items:[{label:"Donate",href:"https://minnesota-council-of-churches.givecloud.co/fundraising/forms/8NDR96EK"},{label:"Become a Member",href:"/get-involved/membership"},{label:"Give Items",href:"/get-involved/give-items"},{label:"Resources",href:"/get-involved/resources"}]},news:{title:"News & Events",items:[{label:"In the News",href:"/news/in-the-news"},{label:"CEO Elder Suzanne Kelly's Blog",href:"/news/blog"},{label:"Newsletter Sign-up & Archive",href:"/news/newsletter"},{label:"Events Calendar",href:"/news/events"}]}},lw=({isActive:e})=>`block py-2 text-sm transition-colors border-l-2 -ml-px pl-4 ${e?"border-[hsl(var(--gold))] text-[hsl(var(--navy))] font-semibold":"border-transparent text-muted-foreground hover:text-[hsl(var(--navy))]"}`,cw=({section:e})=>{const{title:t,items:n}=cU[e],{pathname:r}=Zn(),s=n.find(o=>o.children&&(r===o.href||r.startsWith(o.href+"/"))),i=s?[s]:n;return a.jsxs("aside",{className:"lg:sticky lg:top-28 self-start",children:[a.jsx("p",{className:"text-xs font-semibold tracking-widest uppercase text-[hsl(var(--navy))] mb-4",children:t}),a.jsx("nav",{className:"border-l border-border","aria-label":`${t} pages`,children:a.jsx("ul",{children:i.map(o=>a.jsxs("li",{children:[o.href.startsWith("http")?a.jsx("a",{href:o.href,className:lw({isActive:!1}),children:o.label}):a.jsx(E0,{to:o.href,end:!0,className:lw,children:o.label}),o.children&&a.jsx("ul",{className:"ml-4 mb-1",children:o.children.map(l
331=>a.jsx("li",{children:l.href.startsWith("http")?a.jsx("a",{href:l.href,className:"block py-1.5 text-xs transition-colors text-muted-foreground hover:text-[hsl(var(--navy))]",children:l.label}):a.jsx(E0,{to:l.href,end:!0,className:({isActive:c})=>`block py-1.5 text-xs transition-colors ${c?"text-[hsl(var(--navy))] font-semibold":"text-muted-foreground hover:text-[hsl(var(--navy))]"}`,children:l.label})},l.href))})]},o.href))})})]})},uU="https://mcc-pageproof.lovable.app",qi={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.5}}},uw={visible:{transition:{staggerChildren:.08}}},hp=({items:e})=>a.jsx("nav",{"aria-label":"Breadcrumb",className:"mb-6",children:a.jsx("ol",{className:"flex flex-wrap items-center gap-1.5 text-[11px] tracking-widest uppercase text-muted-foreground",children:e.map((t,n)=>a.jsxs("li",{className:"flex items-center gap-1.5",children:[t.href?a.jsx(Y,{to:t.href,className:"hover:text-primary transition-colors",children:t.label}):a.jsx("span",{"aria-current":"page",className:"text-foreground/70",children:t.label}),n<e.length-1&&a.jsx(sN,{className:"h-3 w-3 opacity-50"})]},`${t.label}-${n}`))})}),ae=({title:e,description:t,eyebrow:n,heading:r,intro:s,breadcrumbs:i,path:o,children:l,blank:c=!1,section:u})=>{const d=e.includes("Minnesota Council of Churches")?e:`${e} | Minnesota Council of Churches`,h=`${uU}${o}`,f=a.jsxs(sa,{children:[a.jsx("title",{children:d}),a.jsx("meta",{name:"description",content:t}),a.jsx("link",{rel:"canonical",href:h}),a.jsx("meta",{property:"og:title",content:d}),a.jsx("meta",{property:"og:description",content:t}),a.jsx("meta",{property:"og:url",content:h}),a.jsx("meta",{property:"og:type",content:"website"}),a.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),a.jsx("meta",{name:"twitter:title",content:d}),a.jsx("meta",{name:"twitter:description",content:t})]});return c?a.jsxs($u,{children:[f,a.jsx("section",{className:"bg-secondary border-b border-border",children:a.jsxs("div",{className:"container py-12 lg:py-16",children:[i&&a.jsx(hp,{items:i}),n&&a.jsxs("p",{className:"text-xs font-semibold tracking-[0.2em] uppercase text-[hsl(var(--gold))] mb-4 flex items-center gap-3",children:[a.jsx("span",{className:"h-px w-8 bg-[hsl(var(--gold))]"})," ",n]}),a.jsx("h1",{className:"text-5xl md:text-6xl font-serif text-[hsl(var(--navy))] leading-[1.05]",children:r})]})}),u?a.jsx("section",{className:"py-16 lg:py-20 bg-card min-h-[40vh]",children:a.jsxs("div",{className:"container grid gap-12 lg:grid-cols-[220px_minmax(0,1fr)] lg:gap-16",children:[a.jsx(cw,{section:u}),a.jsx("div",{})]})}):a.jsx("section",{className:"py-16 lg:py-20 bg-card min-h-[40vh]",children:a.jsx("div",{className:"container"})})]}):u?a.jsxs($u,{children:[f,a.jsx("section",{className:"bg-secondary border-b border-border",children:a.jsxs("div",{className:"container py-12 lg:py-16",children:[i&&a.jsx(hp,{items:i}),a.jsxs(Kt.div,{initial:"hidden",animate:"visible",variants:uw,className:"max-w-3xl",children:[n&&a.jsxs(Kt.p,{variants:qi,className:"text-xs font-semibold tracking-[0.2em] uppercase text-[hsl(var(--gold))] mb-4 flex items-center gap-3",children:[a.jsx("span",{className:"h-px w-8 bg-[hsl(var(--gold))]"})," ",n]}),a.jsx(Kt.h1,{variants:qi,className:"text-5xl md:text-6xl font-serif text-[hsl(var(--navy))] leading-[1.05] text-balance",children:r}),s&&a.jsx(Kt.p,{variants:qi,className:"text-base md:text-lg text-foreground/75 leading-relaxed mt-6 max-w-2xl",children:s})]})]})}),a.jsx("section",{className:"py-12 lg:py-20 bg-card",children:a.jsxs("div",{className:"container grid gap-12 lg:grid-cols-[220px_minmax(0,1fr)] lg:gap-16",children:[a.jsx(cw,{section:u}),a.jsx("div",{className:"max-w-3xl",children:l})]})})]}):a.jsxs($u,{children:[f,a.jsx("section",{className:"pt-16 lg:pt-20 pb-8",children:a.jsxs("div",{className:"container",children:[i&&a.jsx(hp,{items:i}),a.jsxs(Kt.div,{initial:"hidden",animate:"visible",variants:uw,className:"max-w-3xl",children:[n&&a.jsx(Kt.p,{variants:qi,className:"text-sm font-semibold tracking-widest uppercase text-primary",children:n}),a.jsx(Kt.h1,{variants:qi,className:"text-4xl md:text-5xl font-serif mt-4 text-balance",children:r}),s&&a.jsx(Kt.p,{variants:qi,className:"text-lg text-muted-foreground leading-relaxed mt-6",children:s})]})]})}),l&&a.jsx("section",{className:"pb-20 lg:pb-28",children:a.jsx("div",{className:"container",children:l})})]})},E=({as:e="section",stagger:t=!1,staggerDelayMs:n=90,className:r="",children:s,...i})=>{const o=b.useRef(null),[l,c]=b.useState(!1),[u,d]=b.useState(!1),[h,f]=b.useState(!1);b.useEffect(()=>{var C;if(typeof window>"u")return;const w=(C=window.matchMedia)==null?void 0:C.call(window,"(prefers-reduced-motion: reduce)"),v=!!(w!=null&&w.matches);if(f(v),v||!("IntersectionObserver"in window)){d(!0),c(!0);return}c(!0);const g=o.current;if(!g)return;const x=new IntersectionObserver(_=>{_.forEach(S=>{S.isIntersecting&&(d(!0),x.disconnect())})},{rootMargin:"0px 0px -8% 0px",threshold:.1});return x.observe(g),()=>x.disconnect()},[]);const p=l&&!u&&!h,y=()=>!t||h?s:b.Children.toArray(s).map((v,g)=>{const x={transitionDelay:u?`${g*n}ms`:"0ms"};if(b.isValidElement(v)){const C=v,_=C.props.className??"";return b.cloneElement(C,{className:`${_} transition-all duration-[600ms] ease-out will-change-[transform,opacity] ${p?"opacity-0 translate-y-6":"opacity-100 translate-y-0"}`.trim(),style:{...C.props.style??{},...x}})}return v}),m=t?r:`transition-all duration-[600ms] ease-out will-change-[transform,opacity] ${p?"opacity-0 translate-y-6":"opacity-100 translate-y-0"} ${r}`.trim();return a.jsx(e,{ref:o,className:m,...i,children:y()})},dU=e=>{const t=e.match(/^(\D*?)(\d[\d,]*)(.*)$/);if(!t)return null;const[,n,r,s]=t,i=parseInt(r.replace(/,/g,""),10);return Number.isFinite(i)?{prefix:n,number:i,suffix:s,hasComma:r.includes(",")}:null},hU=(e,t)=>
331t?e.toLocaleString("en-US"):String(e),fU=({figure:e,active:t})=>{const n=dU(e),[r,s]=b.useState(n?0:null);return b.useEffect(()=>{if(!n||!t)return;const i=1200,o=performance.now();let l=0;const c=u=>{const d=Math.min(1,(u-o)/i),h=1-Math.pow(1-d,3);s(Math.round(n.number*h)),d<1&&(l=requestAnimationFrame(c))};return l=requestAnimationFrame(c),()=>cancelAnimationFrame(l)},[t,n==null?void 0:n.number]),n?a.jsxs(a.Fragment,{children:[n.prefix,hU(r??n.number,n.hasComma),n.suffix]}):a.jsx(a.Fragment,{children:e})},w4=({stats:e,countUp:t=!1,ariaLabel:n="By the numbers",className:r=""})=>{const s=b.useRef(null),[i,o]=b.useState(!1),[l,c]=b.useState(!1);b.useEffect(()=>{var p;if(typeof window>"u")return;const d=(p=window.matchMedia)==null?void 0:p.call(window,"(prefers-reduced-motion: reduce)").matches;if(!t||d||!("IntersectionObserver"in window)){o(!0);return}c(!0);const h=s.current;if(!h)return;const f=new IntersectionObserver(y=>{y.forEach(m=>{m.isIntersecting&&(o(!0),f.disconnect())})},{threshold:.3});return f.observe(h),()=>f.disconnect()},[t]);const u=e.length>=4?"sm:grid-cols-2 lg:grid-cols-4":e.length===3?"sm:grid-cols-3":"sm:grid-cols-2";return a.jsx("section",{ref:s,"aria-label":n,className:`rounded-2xl bg-[hsl(var(--navy))] text-white px-6 md:px-10 py-10 md:py-14 ${r}`,children:a.jsx("ul",{className:`grid grid-cols-1 ${u} gap-8 list-none pl-0 m-0`,children:e.map(d=>a.jsxs("li",{className:"text-center",children:[a.jsx("p",{className:"text-4xl md:text-5xl font-serif text-[hsl(var(--gold))] leading-none",children:t&&l?a.jsx(fU,{figure:d.figure,active:i}):d.figure}),a.jsx("p",{className:"mt-3 text-sm uppercase tracking-[0.18em] text-white/75",children:d.label})]},d.label))})})},ws=({eyebrow:e,heading:t,body:n,image:r,imageClassName:s,wideImage:i=!1,stacked:o=!1,cta:l,reverse:c=!1,className:u=""})=>o?a.jsxs("div",{className:`flex flex-col items-center text-center ${u}`,children:[e&&a.jsx("p",{className:"text-xs font-semibold tracking-[0.22em] uppercase text-[hsl(var(--gold))]",children:e}),a.jsx("h2",{className:`text-3xl md:text-4xl font-serif text-[hsl(var(--navy))] leading-tight ${e?"mt-2":""}`,children:t}),a.jsx("figure",{className:`w-full ${i?"max-w-6xl":"max-w-5xl"} mx-auto mt-8`,children:r?a.jsx("div",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:r.src,alt:r.alt,loading:"lazy",className:`w-full h-auto object-cover aspect-[4/3] ${s??""}`})}):a.jsx("div",{"aria-hidden":"true",className:"relative w-full overflow-hidden rounded-2xl border border-border bg-[hsl(var(--teal))]",children:a.jsx("div",{className:"aspect-[4/3] w-full flex items-center justify-center",children:a.jsx(Mm,{className:"h-16 w-16 text-white/40",strokeWidth:1.25})})})}),a.jsx("p",{className:"mt-8 max-w-3xl text-left text-base md:text-lg text-muted-foreground leading-relaxed",children:n}),l&&a.jsx("div",{className:"pt-2",children:a.jsx(ce,{variant:"gold",asChild:!0,children:a.jsx(Y,{to:l.href,children:l.label})})})]}):a.jsxs("div",{className:`grid ${i?"md:grid-cols-[13fr_7fr]":"md:grid-cols-2"} gap-8 md:gap-12 items-center ${u}`,children:[a.jsx("figure",{className:`${c?"md:order-2":"md:order-1"} m-0`,children:r?a.jsx("div",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:r.src,alt:r.alt,loading:"lazy",className:`w-full h-auto object-cover aspect-[4/3] ${s??""}`})}):a.jsx("div",{"aria-hidden":"true",className:"relative w-full overflow-hidden rounded-2xl border border-border bg-[hsl(var(--teal))]",children:a.jsx("div",{className:"aspect-[4/3] w-full flex items-center justify-center",children:a.jsx(Mm,{className:"h-16 w-16 text-white/40",strokeWidth:1.25})})})}),a.jsxs("div",{className:`${c?"md:order-1":"md:order-2"} space-y-4`,children:[e&&a.jsx("p",{className:"text-xs font-semibold tracking-[0.22em] uppercase text-[hsl(var(--gold))]",children:e}),a.jsx("h2",{className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))] leading-tight",children:t}),a.jsx("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed",children:n}),l&&a.jsx("div",{className:"pt-2",children:a.jsx(ce,{variant:"gold",asChild:!0,children:a.jsx(Y,{to:l.href,children:l.label})})})]})]}),Ly=({items:e,columns:t,className:n=""})=>{const r=t??(e.length>=4?4:e.length>=3?3:2),s=r===4?"sm:grid-cols-2 lg:grid-cols-4":r===3?"sm:grid-cols-2 lg:grid-cols-3":"sm:grid-cols-2";return a.jsx("div",{className:`grid grid-cols-1 ${s} gap-6 ${n}`,children:e.map(i=>{const o=i.icon,l=a.jsxs(a.Fragment,{children:[a.jsx(o,{className:"h-10 w-10 text-[hsl(var(--gold))] mb-4",strokeWidth:1.5,"aria-hidden":"true"}),a.jsx("h3",{className:"font-serif text-xl text-[hsl(var(--navy))] mb-2",children:i.title}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:i.body}),i.href&&a.jsxs("span",{className:"mt-4 inline-flex items-center gap-1 text-sm font-medium text-[hsl(var(--gold))]",children:[i.linkLabel??"Learn more",a.jsx(nt,{className:"h-4 w-4","aria-hidden":"true"})]})]}),c="block h-full rounded-2xl border border-border bg-card p-6 md:p-7 shadow-sm transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2";return i.href?a.jsx(Y,{to:i.href,className:`${c} hover:border-[hsl(var(--teal))] hover:shadow-md hover:-translate-y-0.5`,children:l},i.title):a.jsx("div",{className:c,children:l},i.title)})})},pU=({quote:e,attribution:t,role:n,className:r=""})=>a.jsxs("figure",{className:`relative max-w-3xl mx-auto text-center px-6 md:px-10 py-10 md:py-12 ${r}`,children:[a.jsx(vN,{className:"mx-auto mb-4 h-10 w-10 text-[hsl(var(--gold))]",strokeWidth:1.25,"aria-hidden":"true"}),a.jsxs("blockquote",{className:"text-2xl md:text-3xl font-serif text-[hsl(var(--navy))] leading-snug",children:["“",e,"”"]}),(t||n)&&a.jsxs("figcaption",{className:"mt-6 space-y-1",children:[a.jsx("span",{className:"block h-px w-10 mx-auto bg-[hsl(var(--gold))]","aria-hidden":"true"}),t&&a.jsx("div",{className:"mt-4 font-serif italic text-lg text-[hsl(var(--teal-deep))]",children:t}),n&&a.jsx("div",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:n})]})]}),C4=({eyebrow:e,heading:t,body:n,primary:r,secondary:s,className:i=""})=>a.jsxs("section",{className:`relative overflow-hidden rounded-2xl bg-[hsl(var(--teal-deep))] text-white px-6 md:px-12 py-12 md:py-16 ${i}`,children:[a.jsx("div",{"aria-hidden":"true",className:"absolute inset-0 opacity-20 pointer-events-none",style:{backgroundImage:"radial-gradient(circle at 20% 30%, hsl(var(--gold)/0.4), transparent 45%), radial-gradient(circle at 80% 70%, hsl(var(--teal)/0.6), transparent 45%)"}}),a.jsxs("div",{className:"relative grid lg:grid-cols-[1.6fr_1fr] gap-8 items-center",children:[a.jsxs("div",{children:[e&&a.jsx("p",{className:"text-xs font-semibold tracking-[0.22em] uppercase text-[hsl(var(--gold))] mb-3",children:e}),a.jsx("h2",{className:"font-serif text-3xl md:text-4xl lg:text-5xl !text-white leading-tight",children:t}),n&&a.jsx("p",{className:"mt-4 text-white/85 text-base md:text-lg max-w-2xl leading-relaxed",children:n})]}),a.jsxs("div",{className:"flex flex-wrap gap-3 lg:justify-end",children:[a.jsx(ce,{variant:"gold",size:"lg",asChild:!0,children:a.jsx(Y,{to:r.href,children:r.label})}),s&&a.jsx(ce,{size:"lg",variant:"outline",className:"bg-transparent border-white/60 text-white hover:bg-white hover:text-[hsl(var(--teal-deep))]",asChild:!0,children:a.jsx(Y,{to:s.href,children:s.label})})]})]})]}),mU=e=>`tel:${e.replace(/[^\d+]/g,"")}`,mg=({name:e,role:t,address:n,phone:r,fax:s,email:i,className:o=""})=>{const l=Array.isArray(n)?n:n?[n]:[];return a.jsxs("address",{className:`not-italic block rounded-2xl border border-border bg-card p-6 md:p-7 shadow-sm ${o}`,children:[a.jsxs("div",{className:"mb-4",children:[a.jsx("div",{className:"font-serif text-xl text-[hsl(var(--navy))] leading-snug",children:e}),t&&a.jsx("div",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground mt-1",children:t})]}
331),a.jsxs("ul",{className:"space-y-3 text-sm text-foreground/85 list-none pl-0 m-0",children:[l.length>0&&a.jsxs("li",{className:"flex items-start gap-3",children:[a.jsx(jj,{className:"h-4 w-4 mt-0.5 text-[hsl(var(--gold))] shrink-0","aria-hidden":"true"}),a.jsx("span",{children:l.map((c,u)=>a.jsx("span",{className:"block leading-snug",children:c},u))})]}),r&&a.jsxs("li",{className:"flex items-center gap-3",children:[a.jsx(Iv,{className:"h-4 w-4 text-[hsl(var(--gold))] shrink-0","aria-hidden":"true"}),a.jsx("a",{href:mU(r),className:"text-[hsl(var(--gold))] hover:underline",children:r})]}),s&&a.jsxs("li",{className:"flex items-center gap-3",children:[a.jsx(gN,{className:"h-4 w-4 text-[hsl(var(--gold))] shrink-0","aria-hidden":"true"}),a.jsxs("span",{children:[a.jsx("span",{className:"text-inherit",children:"Fax: "}),s]})]}),i&&a.jsxs("li",{className:"flex items-center gap-3",children:[a.jsx(vh,{className:"h-4 w-4 text-[hsl(var(--gold))] shrink-0","aria-hidden":"true"}),a.jsx("a",{href:`mailto:${i}`,className:"text-[hsl(var(--gold))] hover:underline break-all",children:i})]})]})]})},gU=1,vU="0a5cd800-822e-4b2d-ab4e-0ea7da215775",yU="5317579a-a8ee-431d-9a53-6d8cfe773828",bU="/__l5e/assets-v1/0a5cd800-822e-4b2d-ab4e-0ea7da215775/strib.png",xU="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/0a5cd800-822e-4b2d-ab4e-0ea7da215775/strib.png",wU="strib.png",CU=14170,_U="image/png",jU="2026-09-02T20:12:39Z",dw={version:gU,asset_id:vU,project_id:yU,url:bU,r2_key:xU,original_filename:wU,size:CU,content_type:_U,created_at:jU},SU=1,kU="bd53956a-5288-4d0d-8553-880d2945201a",TU="5317579a-a8ee-431d-9a53-6d8cfe773828",EU="/__l5e/assets-v1/bd53956a-5288-4d0d-8553-880d2945201a/mpr.jpg",NU="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/bd53956a-5288-4d0d-8553-880d2945201a/mpr.jpg",RU="mpr.jpg",AU=162281,PU="image/jpeg",$U="2026-09-02T20:22:20Z",MU={version:SU,asset_id:kU,project_id:TU,url:EU,r2_key:NU,original_filename:RU,size:AU,content_type:PU,created_at:$U},OU=1,IU="e6467986-b65a-414f-89a7-c889f1bf67ac",DU="5317579a-a8ee-431d-9a53-6d8cfe773828",LU="/__l5e/assets-v1/e6467986-b65a-414f-89a7-c889f1bf67ac/mpr-2.jpg",zU="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/e6467986-b65a-414f-89a7-c889f1bf67ac/mpr-2.jpg",FU="mpr-2.jpg",UU=162281,BU="image/jpeg",VU="2026-09-02T20:25:02Z",HU={version:OU,asset_id:IU,project_id:DU,url:LU,r2_key:zU,original_filename:FU,size:UU,content_type:BU,created_at:VU},WU=1,qU="101c8edc-9686-438e-af79-d66b5e8d0c85",KU="5317579a-a8ee-431d-9a53-6d8cfe773828",ZU="/__l5e/assets-v1/101c8edc-9686-438e-af79-d66b5e8d0c85/sahan.png",GU="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/101c8edc-9686-438e-af79-d66b5e8d0c85/sahan.png",JU="sahan.png",YU=16731,QU="image/png",XU="2026-09-02T20:26:03Z",eB={version:WU,asset_id:qU,project_id:KU,url:ZU,r2_key:GU,original_filename:JU,size:YU,content_type:QU,created_at:XU},tB=1,nB="6fbc4ed9-7e5e-44ac-ad07-fbbd94f0e5eb",rB="5317579a-a8ee-431d-9a53-6d8cfe773828",sB="/__l5e/assets-v1/6fbc4ed9-7e5e-44ac-ad07-fbbd94f0e5eb/religion_news_service.png",iB="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/6fbc4ed9-7e5e-44ac-ad07-fbbd94f0e5eb/religion_news_service.png",oB="religion_news_service.png",aB=13748,lB="image/png",cB="2026-09-02T20:30:06Z",uB={version:tB,asset_id:nB,project_id:rB,url:sB,r2_key:iB,original_filename:oB,size:aB,content_type:lB,created_at:cB},dB=1,hB="703a8299-8a40-4dd8-8899-04c23253bb47",fB="5317579a-a8ee-431d-9a53-6d8cfe773828",pB="/__l5e/assets-v1/703a8299-8a40-4dd8-8899-04c23253bb47/sun-this-week.png",mB="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/703a8299-8a40-4dd8-8899-04c23253bb47/sun-this-week.png",gB="sun-this-week.png",vB=34314,yB="image/png",bB="2026-09-02T20:35:53Z",xB={version:dB,asset_id:hB,project_id:fB,url:pB,r2_key:mB,original_filename:gB,size:vB,content_type:yB,created_at:bB},wB=1,CB="da7ac6ca-0547-4a77-897a-6b3acb0f6df0",_B="5317579a-a8ee-431d-9a53-6d8cfe773828",jB="/__l5e/assets-v1/da7ac6ca-0547-4a77-897a-6b3acb0f6df0/ap.png",SB="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/da7ac6ca-0547-4a77-897a-6b3acb0f6df0/ap.png",kB="ap.png",TB=9290,EB="image/png",NB="2026-09-02T20:40:02Z",RB={version:wB,asset_id:CB,project_id:_B,url:jB,r2_key:SB,original_filename:kB,size:TB,content_type:EB,created_at:NB},AB=1,PB="82d47d46-0407-49a2-b712-c345b096b886",$B="5317579a-a8ee-431d-9a53-6d8cfe773828",MB="/__l5e/assets-v1/82d47d46-0407-49a2-b712-c345b096b886/interfaith_america.png",OB="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/82d47d46-0407-49a2-b712-c345b096b886/interfaith_america.png",IB="interfaith_america.png",DB=65935,LB="image/png",zB="2026-09-02T20:42:06Z",FB={version:AB,asset_id:PB,project_id:$B,url:MB,r2_key:OB,original_filename:IB,size:DB,content_type:LB,created_at:zB},UB=1,BB="fd64a645-60cb-4e5e-b385-5706c6ca49b9",VB="5317579a-a8ee-431d-9a53-6d8cfe773828",HB="/__l5e/assets-v1/fd64a645-60cb-4e5e-b385-5706c6ca49b9/gsr.png",WB="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/fd64a645-60cb-4e5e-b385-5706c6ca49b9/gsr.png",qB="gsr.png",KB=57998,ZB="image/png",GB="2026-09-02T20:47:30Z",JB={version:UB,asset_id:BB,project_id:VB,url:HB,r2_key:WB,original_filename:qB,size:KB,content_type:ZB,created_at:GB},YB=[{label:"Home",href:"/"},{label:"News & Events",href:"/news"},{label:"In The News"}],_4=[["AUGUST 19, 2026","NEWS STORY","Minnesotans turned to faith communities to help during the ICE surge. Some stayed for Sunday worship.","The Minnesota Star Tribune"],["AUGUST 18, 2026","NEWS STORY","MN faith group hosts conversations to help community process events from federal surge","Minnesota Public Radio","https://www.mprnews.org/episode/2026/08/18/minnesota-faith-group-hosts-conversations-to-help-community-process-operation-metro-surge"],["AUGUST 8, 2026","NEWS STORY","Minnesota refugee arrivals fall to record lows, reshaping decades-old resettlement system","Minnesota Public Radio","https://www.mprnews.org/story/2026/08/08/refugee-arrivals-fall-to-record-lows-in-minnesota"],["MAY 25, 2026","NEWS STORY","ICE surge exposed lack of legal help, other resources for immigrants in greater Minnesota","Sahan Journal","https://sahanjournal.com/immigration/ice-surge-rural-minnesota-resource-gap/"],["MARCH 20, 2026","NEWS STORY","Federal judge grants injunction allowing clergy visits at Minneapolis ICE holding facility","Associated Press","https://apnews.com/article/minnesota-immigration-enforcement-religion-aee3380f484d6e2554c0ed851c2dd042"],["FEBRUARY 25, 2026","Organizational Update","Lakeville, Rosemount mosques participate in Taking Heart Open Houses","Sun This Week","https://www.hometownsource.com/sun_thisweek/free/lakeville-rosemount-mosques-participate-in-taking-heart-open-houses/article_10b15d64-9c59-43a7-ae33-bb93fa416249.html"],["FEBRUARY 20, 2026","NEWS STORY","After ICE raids, Ramadan in Minnesota is somber, but some hope it offers healing","Religion News Service","https://religionnews.com/2026/02/20/ramadan-in-minnesota-is-somber-but-muslims-hope-it-will-offer-healing/"],["FEBRUARY 9, 2026","NEWS STORY","ICE Raids reignite rituals of resistance in Minneapolis","Interfaith America","https://www.interfaithamerica.org/article/ice-raids-reignite-rituals-of-resistance-in-minneapolis/"],["JANUARY 30, 2026","NEWS STORY","'It's terrifying': Dominicans in Minneapolis on the front lines of ICE surge","Global Sisters Report","https://www.globalsistersreport.org/migration/its-terrifying-dominicans-minneapolis-front-lines-ice-surge"],["JANUARY 25, 2026","OPINION","Opinion: Operation PARRIS is an acronym that spells the end of refuge","Commentary from MCC Refugee Services","https://www.startribune.com/opinion-operation-parris-is-an-acronym-that-spells-the-end-of-refuge/601568066"]],QB=({label:e})=>a.jsxs("div",{"aria-hidden":"true",className:"relative w-full overflow-hidden bg-[hsl(var(--navy))] flex items-center justify-center",children:[a.jsx(Sj,{className:"h-12 w-12 text-white/40",strokeWidth:1.25}),a.jsx("span",{className:"absolute bottom-3 left-4 text-[10px] font-semibold tracking-[0.18em] uppercase text-white/80",children:e})]}),XB=()=>{const[e,...t]=_4,[n,r,s,i]=e;return a.jsxs(ae,{title:"In The News",description:"Press releases, news articles, and organizational updates from the Minnesota Council of Churches.",eyebrow:"News & Events",heading:"In The News",intro:"Press releases, news coverage, and organizational updates from the Minnesota Council of Churches.",breadcrumbs:YB,section:"news",path:"/news/in-the-news",children:[a.jsx(E,{as:"div",className:"mb-10",children:a.jsxs("a",{href:"https://www.startribune.com/mn-churches-renewed-interest-ice-surge/601875977",target:"_blank",rel:"noopener noreferrer",className:"group grid md:grid-cols-2 gap-0 rounded-2xl overflow-hidden border border-border bg-card shadow-sm hover:border-[hsl(var(--teal))] hover:shadow-md transition-all",children:[a.jsx("div",{className:"aspect-[4/3] md:aspect-auto bg-white flex items-center justify-center p-10",children:a.jsx("img",{src:dw.url,alt:"The Minnesota Star Tribune logo",loading:"lazy",width:270,height:232,className:"w-auto max-h-48 object-contain"})}),a.jsxs("div",{className:"p-8 flex flex-col justify-center",children:[a.jsx("div",{className:"text-[11px] font-semibold tracking-[0.14em] uppercase text-[hsl(var(--gold))] mb-3",children:"NEWS STORY"}),a.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-[hsl(var(--navy))] leading-snug group-hover:text-[hsl(var(--teal))] transition-colors",children:s}),a.jsx("div",{className:"text-sm text-muted-foreground mt-3",children:i}
331),a.jsx("div",{className:"text-xs font-mono tracking-wider uppercase text-muted-foreground mt-4",children:n}),a.jsxs("span",{className:"mt-6 inline-flex items-center gap-1 text-sm font-medium text-[hsl(var(--gold))]",children:["Read ",a.jsx(nt,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]})]})]})}),a.jsx(E,{as:"div",stagger:!0,className:"grid gap-6 sm:grid-cols-2",children:t.map(([o,l,c,u,d],h)=>a.jsxs("a",{href:d??"#",...d?{target:"_blank",rel:"noopener noreferrer"}:{},className:"group flex flex-col rounded-2xl overflow-hidden border border-border bg-card shadow-sm hover:border-[hsl(var(--teal))] hover:shadow-md hover:-translate-y-0.5 transition-all",children:[a.jsx("div",{className:"aspect-[16/9]",children:h===0||h===1?a.jsx("div",{className:"w-full h-full bg-[#231F20] flex items-center justify-center p-8",children:a.jsx("img",{src:h===0?MU.url:HU.url,alt:"MPR News logo",loading:"lazy",width:1920,height:1920,className:"w-auto max-h-44 object-contain"})}):h===2?a.jsx("div",{className:"w-full h-full bg-[#FF2C1F] flex items-center justify-center p-10",children:a.jsx("img",{src:eB.url,alt:"Sahan Journal logo",loading:"lazy",width:774,height:509,className:"w-auto max-h-40 object-contain"})}):h===3?a.jsx("div",{className:"w-full h-full bg-white flex items-center justify-center p-10",children:a.jsx("img",{src:RB.url,alt:"Associated Press logo",loading:"lazy",width:360,height:279,className:"w-auto max-h-40 object-contain"})}):h===4?a.jsx("div",{className:"w-full h-full bg-white flex items-center justify-center p-10",children:a.jsx("img",{src:xB.url,alt:"Sun This Week logo",loading:"lazy",width:550,height:302,className:"w-auto max-h-40 object-contain"})}):h===5?a.jsx("div",{className:"w-full h-full bg-[#F7F8F4] flex items-center justify-center p-10",children:a.jsx("img",{src:uB.url,alt:"Religion News Service logo",loading:"lazy",width:405,height:212,className:"w-auto max-h-40 object-contain"})}):h===6?a.jsx("div",{className:"w-full h-full bg-white flex items-center justify-center p-10",children:a.jsx("img",{src:FB.url,alt:"Interfaith America logo",loading:"lazy",width:595,height:291,className:"w-auto max-h-40 object-contain"})}):h===7?a.jsx("div",{className:"w-full h-full bg-white flex items-center justify-center p-10",children:a.jsx("img",{src:JB.url,alt:"Global Sisters Report logo",loading:"lazy",width:761,height:227,className:"w-auto max-h-40 object-contain"})}):h===8?a.jsx("div",{className:"w-full h-full bg-white flex items-center justify-center p-10",children:a.jsx("img",{src:dw.url,alt:"The Minnesota Star Tribune logo",loading:"lazy",width:270,height:232,className:"w-auto max-h-40 object-contain"})}):a.jsx(QB,{label:l})}),a.jsxs("div",{className:"p-6 flex-1 flex flex-col",children:[a.jsx("div",{className:"text-[11px] font-semibold tracking-[0.14em] uppercase text-[hsl(var(--gold))] mb-2",children:l==="Organizational Update"?"NEWS STORY":l}),a.jsx("h3",{className:"font-serif text-xl text-[hsl(var(--navy))] leading-snug group-hover:text-[hsl(var(--teal))] transition-colors",children:c}),a.jsx("div",{className:"text-sm text-muted-foreground mt-2",children:u}),a.jsxs("div",{className:"mt-auto pt-4 flex items-center justify-between",children:[a.jsx("span",{className:"text-xs font-mono tracking-wider uppercase text-muted-foreground",children:o}),a.jsxs("span",{className:"inline-flex items-center gap-1 text-sm font-medium text-[hsl(var(--gold))]",children:["Read ",a.jsx(nt,{className:"h-4 w-4 text-[hsl(var(--teal))] transition-transform group-hover:translate-x-1"})]})]})]})]},c))})]})},j4=[{day:"",month:"Ongoing",title:"Suicide Prevention & Mental Wellness Workshops for Agricultural Communities",when:a.jsx("a",{href:"https://www.eventbrite.com/cc/suicide-prevention-mental-wellness-workshops-4863693",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 hover:opacity-80",children:"Click here for dates, locations, information, and registration."}),whenPlain:"Dates vary",where:"Varied locations",pill:"COMMUNITY SUPPORT",copy:a.jsxs(a.Fragment,{children:["Suicide claims the lives of too many people in agriculture. The Minnesota Farm Suicide Prevention Campaign invites those who live or work in an agricultural community to attend free workshops about how to help when you see someone struggling. Go to"," ",a.jsx("a",{href:"https://www.eventbrite.com/cc/suicide-prevention-mental-wellness-workshops-4863693",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline underline-offset-4 hover:opacity-80",children:"QPR/COMET workshops"})," ","for dates, locations, information, and registration. Questions? Contact Meg at 651-201-6616 or [email protected]"]})},{day:"30",month:"SEPT",title:"Book Launch Event for Former MCC CEO Rev. Dr. Curtiss DeYoung",when:"4:00 p.m.",whenPlain:"4:00 p.m.",where:"United Theological Seminary of the Twin Cities",pill:"COMMUNITY EVENT",copy:'Save the date and join former Minnesota Council of Churches CEO Rev. Dr. Curtiss DeYoung for the Twin Cities launch of "Howard Thurman: Reflections on a Luminous Life," a new book edited by Rev. Dr. DeYoung. The book launch event takes place September 30 at 4:00 p.m. at United Theological Seminary of the Twin Cities, St. Paul.'},{day:"30",month:"SEPT",title:"National Day of Remembrance - Engaging in the Work of Repair Panel",when:"6:30 p.m. CST",whenPlain:"6:30 p.m. CST",where:"Zoom",pill:"COMMUNITY EVENT",copy:a.jsxs(a.Fragment,{children:["The National Day of Remembrance on September 30 is a day to remember and honor the people who attended Indian Boarding Schools, tell the truth about this history, and share about how 
331it continues to impact Native communities today. Many boarding schools were supported and run by Christian denominations and churches. As we remember this legacy, Christians have a responsibility to engage in the work of truth telling. Join the Coalition to Dismantle the Doctrine of Discovery for a panel discussion about how churches are working towards truth telling and repair, and how you can join in this work."," ",a.jsx("a",{href:"https://eds.edu/programs/681/national-day-of-remembrance-engaging-in-the-work-of-repair",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline underline-offset-4 hover:opacity-80",children:"Click here to register."})]})},{day:"1",month:"OCT",title:"Free Westminster Town Hall Forum: Kica Matos",when:"Doors open 11:00 a.m.; forum at 12:00 p.m.",whenPlain:"12:00 p.m.",where:"Westminster Presbyterian Church, 1200 S. Marquette Ave., Minneapolis, MN 55403",pill:"COMMUNITY EVENT",copy:a.jsxs(a.Fragment,{children:[`As our nation celebrates its 250th anniversary, the Westminster Town Hall Forum reflects on the words that enshrine our Republic's founding: "We the People." How do these words ensure the promise and ethical ideals of a thriving democracy? That is the topic Kica Matos, president of the National Immigration Law Center and the Immigrant Justice Fund, will be discussing in her forum "Immigrants as Pillars of Democracy" on Thursday, October 1, at Westminster Presbyterian Church. Doors open at 11:00 a.m. followed by music from Cantus and the forum at 12:00 p.m.`," ",a.jsx("a",{href:"https://westminsterforum.org/2026/kica-matos/",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline underline-offset-4 hover:opacity-80",children:"Click here to learn more."})]})},{day:"3",month:"OCT",title:"Minnesota Truth Council Story Collector Training",when:"1:00 p.m.-3:00 p.m.",whenPlain:"1:00 p.m.-3:00 p.m.",where:"Meisel Room, Westminster Presbyterian Church, 1200 S. Marquette Ave., Minneapolis, MN 55403",pill:"COMMUNITY EVENT",copy:a.jsxs(a.Fragment,{children:["In the wake of Operation Metro Surge, Minnesotans experienced harm — and showed extraordinary courage, compassion, and care for one another. Now, the Minnesota Truth Council is working to ensure these stories of harm and resilience become part of the historical record. Westminster Presbyterian will host a training for volunteer story collectors, and you are invited. The training will take place Saturday, October 3, from 1:00 p.m.-3:00 p.m. in the Meisel Room at Westminster Presbyterian Church."," ","Learn more about the training and the Minnesota Truth Council by"," ",a.jsx("a",{href:"https://acrobat.adobe.com/id/urn:aaid:sc:US:2c90e6bd-c9dd-42a0-93f6-400495022786",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline underline-offset-4 hover:opacity-80",children:"clicking here"}),"."]})}],eV=_4.slice(0,3).map(([e,t,n,r,s])=>({date:e,cat:t,title:n,by:r,href:s??"/news/in-the-news",external:!!s})),tV=[{icon:yh,title:"Office of Civic Dialogue",desc:"Bringing people together to discuss challenging topics, grow empathy, and deepen understanding.",href:"/programs/civic-dialogue"},{icon:Bs,title:"Congregational Member Services",desc:"Supporting member congregations with resources, training, and collaborative ministry opportunities.",href:"/programs/congregational-services"},{icon:Cj,title:"Refugee & Immigrant Services",desc:"Providing welcome, support, and resources for new neighbors resettling in Minnesota.",href:"/programs/refugee-services"},{icon:Dv,title:"Justice & Advocacy",desc:"Advancing racial, economic, and social justice by mobilizing faith voices for the common good.",href:"/programs/justice-advocacy"}],nV=()=>{const[e,t]=b.useState([]);b.useEffect(()=>{let r=!0;return(async()=>{const{data:s}=await gt.from("blog_posts").select("*").eq("published",!0).order("published_at",{ascending:!1}).limit(3);r&&t((s??[]).map(i=>({date:Ih(i.published_at),cat:"Elder Kelly's Blog",title:i.title,by:i.author_name,href:`/news/blog/${i.slug}`})))})(),()=>{r=!1}},[]);const n=[...e,...eV];return a.jsxs($u,{children:[a.jsxs(sa,{children:[a.jsx("title",{children:"Minnesota Council of Churches — Building Bridges to the Common Good"}),a.jsx("meta",{name:"description",content:"Convening, connecting, and catalyzing congregations and people of faith to advance justice, promote healing, and strengthen the spiritual and civic fabric of Minnesota."}),a.jsx("link",{rel:"canonical",href:"https://mcc-pageproof.lovable.app/"}),a.jsx("meta",{property:"og:title",content:"Minnesota Council of Churches"}),a.jsx("meta",{property:"og:description",content:"Convening, connecting, and catalyzing congregations and people of faith to advance justice, promote healing, and strengthen the spiritual and civic fabric of Minnesota."}),a.jsx("meta",{property:"og:url",content:"https://mcc-pageproof.lovable.app/"}),a.jsx("meta",{property:"og:type",content:"website"})]}),a.jsx(vD,{image:wD,imageAlt:"Community members gathered in conversation",title:a.jsxs(a.Fragment,{children:["Building Bridges for ",a.jsx("em",{className:"italic text-gold-light",children:"Justice, Healing, and Reconciliation"})]}),subtitle:"The Minnesota Council of Churches convenes, connects, and catalyzes people of faith to build just, equitable, and livable communities for all Minnesotans.",actions:a.jsxs(a.Fragment,{children:[a.jsx(ce,{variant:"gold",size:"lg",asChild:!0,children:a.jsx(Y,{to:"/programs/civic-dialogue",children:"Join the Dialogue"})}),a.jsx(ce,{size:"lg",variant:"outline",className:"rounded-full border-2 border-ivory/50 bg-[hsl(var(--teal-abyss)/0.72)] font-semibold text-ivory hover:bg-ivory hover:text-[hsl(var(--teal-abyss))]",asChild:!0,children:a.jsx(Y,{to:"/programs",children:"Our Programs"})})]})}),a.jsx(Ui,{className:"relative pb-16 lg:pb-24",children:a.jsx("div",{className:"container",children:a.jsx(bD,{items:tV,columns:4,floating:!0})})}),a.jsx(Ui,{className:"bg-cream py-20 lg:py-28",children:a.jsxs("div",{className:"container max-w-6xl space-y-20 lg:space-y-28",children:[a.jsx(Sx,{eyebrow:"Refugee & Immigrant Services",title:"Welcoming new neighbors to Minnesota.",body:"Providing welcome, support, and resources for new neighbors resettling in Minnesota.",image:AD.url,imageAlt:"Handmade welcome cards and colorful 'All Are Welcome Here' signs strung on a line at an outdoor community event",href:"/programs/refugee-services",cta:"Learn how to help"}),a.jsx(Sx,{eyebrow:"Office of Civic Dialogue",title:"Using Respectful Conversations to bridge differences.",body:"Bringing people together to discu
331ss challenging topics, grow empathy, and deepen understanding.",image:UD.url,imageAlt:"Smiling community member in a light blue garment at an outdoor picnic",href:"/programs/civic-dialogue",cta:"Join the dialogue",reverse:!0})]})}),a.jsxs(Ui,{className:"relative bg-card py-20 lg:py-28 overflow-hidden",children:[a.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-[hsl(var(--gold))]/30 to-transparent"}),a.jsx("div",{className:"container",children:a.jsxs("div",{className:"grid lg:grid-cols-[1fr_1.4fr] gap-12 lg:gap-20 items-center max-w-6xl mx-auto",children:[a.jsx(tr,{children:a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"absolute -top-4 -left-4 w-full h-full rounded-2xl border-2 border-[hsl(var(--gold))]/40","aria-hidden":!0}),a.jsx("div",{className:"relative aspect-[4/5] rounded-2xl overflow-hidden bg-gradient-to-br from-[hsl(var(--navy))] via-[hsl(var(--teal-deep))] to-[hsl(var(--teal))] shadow-xl",children:a.jsx("img",{src:YD.url,alt:"Elder Suzanne Kelly, Chief Executive Officer",className:"absolute inset-0 w-full h-full object-cover"})})]})}),a.jsx(tr,{children:a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.jsx("span",{className:"h-px w-10 bg-[hsl(var(--gold))]"}),a.jsx("div",{className:"text-[11px] font-semibold tracking-[0.18em] uppercase text-[hsl(var(--gold))]",children:"A letter from our Chief Executive Officer"})]}),a.jsx("h2",{className:"font-serif text-3xl md:text-4xl lg:text-5xl text-[hsl(var(--navy))] leading-tight mb-6",children:'"My faith has always been central to who I am."'}),a.jsxs("div",{className:"space-y-4 text-base md:text-lg text-foreground/75 leading-relaxed",children:[a.jsx("p",{children:"I joined the Minnesota Council of Churches in June 2024, bringing a career rooted in service—most recently as Chief of Staff at the Center for Economic Inclusion, and before that across the Minneapolis and Saint Paul Public School Districts as a systems change leader. I see this role as the opportunity to lead with my faith forward."}),a.jsx("p",{children:"My vision for MCC is to unite Christian leaders to deliver light, love, and service to our state—especially to Minnesotans plagued by racial division, by polarization, or by persecution in their homeland. Thank you for walking with us."})]}),a.jsx("div",{className:"mt-8 font-serif italic text-2xl text-[hsl(var(--teal-deep))]",children:"Elder Suzanne Kelly"}),a.jsx("div",{className:"text-xs tracking-[0.14em] uppercase text-muted-foreground mt-1",children:"Chief Executive Officer"}),a.jsx("div",{className:"mt-6",children:a.jsx(ce,{variant:"outline",asChild:!0,children:a.jsx(Y,{to:"/about/staff",children:"Read more about our leadership"})})})]})})]})})]}),a.jsx(Ui,{className:"bg-ivory py-20 lg:py-24",children:a.jsxs("div",{className:"container max-w-6xl",children:[a.jsxs("div",{className:"flex justify-between items-end flex-wrap gap-4 mb-10",children:[a.jsx(tr,{children:a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[a.jsx("span",{className:"h-px w-10 bg-[hsl(var(--gold))]"}),a.jsx("div",{className:"text-[11px] font-semibold tracking-[0.18em] uppercase text-[hsl(var(--gold))]",children:"Latest from MCC"})]}),a.jsx("h2",{className:"font-serif text-3xl md:text-4xl text-[hsl(var(--navy))]",children:"News, updates & happenings"})]})}),a.jsx(tr,{children:a.jsx(ce,{variant:"outline",asChild:!0,children:a.jsx(Y,{to:"/news/blog",children:"View all"})})})]}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:n.map(({date:r,cat:s,title:i,by:o,href:l,external:c})=>a.jsx(tr,{children:(()=>{const u=c?"a":Y,d=c?{href:l,target:"_blank",rel:"noopener noreferrer"}:{to:l};return a.jsxs(u,{...d,className:"group flex flex-col h-full bg-card rounded-2xl border border-border p-6 shadow-sm hover:shadow-lg hover:-translate-y-1 transition-all motion-reduce:transform-none motion-reduce:transition-none",children:[a.jsxs("div",{className:"flex items-center justify-between mb-3",children:[a.jsx("span",{className:"text-[11px] font-semibold tracking-[0.14em] uppercase text-[hsl(var(--gold))]",children:s}
331),a.jsx("span",{className:"text-xs font-mono tracking-wider uppercase text-muted-foreground",children:r})]}),a.jsx("h3",{className:"font-serif text-lg text-[hsl(var(--navy))] leading-snug mb-3 group-hover:text-[hsl(var(--teal))] transition-colors",children:i}),a.jsxs("div",{className:"mt-auto flex items-center justify-between pt-3 border-t border-border",children:[a.jsx("span",{className:"text-sm text-muted-foreground",children:o}),a.jsx(nt,{className:"h-4 w-4 text-[hsl(var(--teal))] transition-transform group-hover:translate-x-1 motion-reduce:transition-none"})]})]})})()},i))})]})}),a.jsxs(Ui,{className:"relative bg-cream py-20 lg:py-24 overflow-hidden",children:[a.jsx("div",{className:"absolute inset-0 opacity-[0.04] pointer-events-none",style:{backgroundImage:"radial-gradient(hsl(var(--navy)) 1px, transparent 1px)",backgroundSize:"28px 28px"},"aria-hidden":!0}),a.jsxs("div",{className:"container relative",children:[a.jsxs("div",{className:"flex justify-between items-end flex-wrap gap-4 mb-10",children:[a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[a.jsx("span",{className:"h-px w-10 bg-[hsl(var(--gold))]"}),a.jsx("div",{className:"text-[11px] font-semibold tracking-[0.18em] uppercase text-[hsl(var(--gold))]",children:"Upcoming"})]}),a.jsx("h2",{className:"font-serif text-3xl md:text-4xl text-[hsl(var(--navy))]",children:"Events Calendar"})]}),a.jsx(ce,{variant:"outline",asChild:!0,children:a.jsx(Y,{to:"/news/events",children:"Full calendar"})})]}),a.jsxs(x3,{opts:{align:"start",loop:!0},className:"w-full",children:[a.jsx(w3,{className:"-ml-4",children:j4.map(({day:r,month:s,title:i,whenPlain:o,where:l,pill:c})=>a.jsx(C3,{className:"pl-4 sm:basis-1/2 lg:basis-1/3 xl:basis-1/4",children:a.jsxs(Y,{to:"/news/events",className:"block h-full rounded-2xl border border-border bg-card p-6 hover:border-[hsl(var(--teal))] hover:shadow-lg hover:-translate-y-1 transition-all shadow-sm motion-reduce:transform-none motion-reduce:transition-none",children:[a.jsxs("div",{className:"flex items-start justify-between gap-4 mb-4",children:[a.jsx("div",{className:"flex flex-col items-center justify-center rounded-md bg-cream border border-border min-w-16 h-16 px-2 shrink-0",children:r?a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"font-serif text-2xl text-[hsl(var(--navy))] leading-none whitespace-nowrap",children:r}),a.jsx("span",{className:"text-[10px] font-semibold tracking-[0.14em] uppercase text-muted-foreground mt-1",children:s})]}):a.jsx("span",{className:"text-[10px] font-semibold tracking-[0.14em] uppercase text-muted-foreground",children:s})}),a.jsx("span",{className:"inline-block text-[10px] font-semibold tracking-[0.14em] uppercase text-[hsl(var(--gold))] border border-[hsl(var(--gold))]/40 rounded-full px-3 py-1",children:c})]}),a.jsx("h4",{className:"font-serif text-lg text-[hsl(var(--navy))] leading-snug mb-3 min-h-[3.5rem]",children:i}),a.jsx("div",{className:"text-sm text-foreground/80",children:o}),a.jsxs("div",{className:"text-sm text-muted-foreground mt-1",children:["↳ ",l]})]})},i))}),a.jsxs("div",{className:"flex justify-end gap-2 mt-8",children:[a.jsx(_3,{className:"static translate-y-0 h-11 w-11"}),a.jsx(j3,{className:"static translate-y-0 h-11 w-11"})]})]})]})]}),a.jsx(xD,{eyebrow:"Sustain the work",title:`Your gift fuels our ongoing mission.
332`,body:"Sustaining gifts keep case managers, facilitators, civic engagement specialists, and immigration experts at the table, helping ensure just, equitable, and livable communities for all Minnesotans.",actions:a.jsxs(a.Fragment,{children:[a.jsx(ce,{variant:"gold",size:"lg",asChild:!0,children:a.jsx("a",{href:"https://minnesota-council-of-churches.givecloud.co/fundraising/forms/8NDR96EK",children:"Donate"})}),a.jsx(ce,{size:"lg",variant:"outline",className:"bg-transparent border-card/60 text-card hover:bg-card hover:text-[hsl(var(--teal-deep))]",asChild:!0,children:a.jsx(Y,{to:"/get-involved",children:"Get Involved"})})]})}),a.jsx(Ui,{className:"bg-card py-20 lg:py-28",children:a.jsx("div",{className:"container max-w-6xl",children:a.jsxs("div",{className:"grid lg:grid-cols-[1fr_1.6fr] gap-10 lg:gap-16 items-center",children:[a.jsx(tr,{children:a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[a.jsx("span",{className:"h-px w-10 bg-[hsl(var(--gold))]"}),a.jsx("div",{className:"text-[11px] font-semibold tracking-[0.18em] uppercase text-[hsl(var(--gold))]",children:"Our members"})]}),a.jsxs("h2",{className:"font-serif text-3xl md:text-4xl lg:text-5xl text-[hsl(var(--navy))] leading-tight",children:["25 denominations.",a.jsx("br",{}),"One table."]})]})}),a.jsx(tr,{children:a.jsxs("div",{children:[a.jsx("p",{className:"text-base md:text-lg text-foreground
332/75 leading-relaxed mb-6",children:"From the African Methodist Episcopal Church to the United Methodist Church, MCC's member bodies represent more than one million Christians across Minnesota—a testament to what ecumenical cooperation has made possible since 1948."}),a.jsx(ce,{variant:"outline",asChild:!0,children:a.jsx(Y,{to:"/about/members",children:"See all members"})})]})})]})})})]})},rV=()=>{const e=Zn();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),a.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:a.jsxs("div",{className:"text-center",children:[a.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),a.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),a.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},sV=1,iV="93dca46b-9135-495b-9cd6-ad8ba320853f",oV="5317579a-a8ee-431d-9a53-6d8cfe773828",aV="/__l5e/assets-v1/93dca46b-9135-495b-9cd6-ad8ba320853f/mcc-logo-stacked.png",lV="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/93dca46b-9135-495b-9cd6-ad8ba320853f/mcc-logo-stacked.png",cV="mcc-logo-stacked.png",uV=54224,dV="image/png",hV="2026-06-03T06:20:30Z",fV={version:sV,asset_id:iV,project_id:oV,url:aV,r2_key:lV,original_filename:cV,size:uV,content_type:dV,created_at:hV},pV=[{title:"Our Mission & Vision",desc:"Foundational mission, vision, and core values driving our work.",href:"/about/mission"},{title:"Our Staff",desc:"Meet Elder Suzanne Kelly and the MCC leadership team.",href:"/about/staff"},{title:"Our Members",desc:"25 member denominations and one million congregants.",href:"/about/members"},{title:"Board of Directors",desc:"The governance team guiding MCC's strategic direction.",href:"/about/board"},{title:"Racial Justice Commitment",desc:"Our daily commitment to racial justice across all programs.",href:"/about/racial-justice"},{title:"Our History",desc:"Our story from 1948 through today.",href:"/about/history"},{title:"Financials & Reports",desc:"Transparency in our finances and annual reporting.",href:"/about/financials"}],mV=()=>a.jsxs(ae,{title:"About Us",description:"Learn about the Minnesota Council of Churches — our mission, staff, members, board, history, and commitment to racial justice.",eyebrow:"About Us",heading:"About Minnesota Council of Churches",intro:"The Minnesota Council of Churches convenes, connects, and catalyzes congregations and people of faith to advance justice, promote healing, and strengthen the spiritual and civic fabric of Minnesota.",breadcrumbs:[{label:"Home",href:"/"},{label:"About Us"}],path:"/about",children:[a.jsx("figure",{className:"max-w-4xl mx-auto mb-12 flex justify-center",children:a.jsx("img",{src:fV.url,alt:"Minnesota Council of Churches logo",loading:"lazy",className:"w-full max-w-4xl h-auto"})}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-5xl mx-auto",children:pV.map(e=>a.jsxs(Y,{to:e.href,className:"group block p-6 bg-card rounded-2xl border border-border hover:shadow-lg hover:-translate-y-1 transition-all",children:[a.jsx("h3",{className:"font-serif text-xl mb-2",children:e.title}),a.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:e.desc}),a.jsxs("span",{className:"inline-flex items-center text-sm font-medium text-primary gap-1 group-hover:gap-2 transition-all",children:["Explore ",a.jsx(nt,{className:"h-4 w-4"})]})]},e.href))})]}),gV=1,vV="71541182-4988-4b37-a1be-6a4f75135802",yV="5317579a-a8ee-431d-9a53-6d8cfe773828",bV="/__l5e/assets-v1/71541182-4988-4b37-a1be-6a4f75135802/all-are-welcome-banner.jpg",xV="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/71541182-4988-4b37-a1be-6a4f75135802/all-are-welcome-banner.jpg",wV="all-are-welcome-banner.jpg",CV=64275,_V="image/jpeg",jV="2026-08-28T21:20:53Z",SV={version:gV,asset_id:vV,project_id:yV,url:bV,r2_key:xV,original_filename:wV,size:CV,content_type:_V,created_at:jV},kV=1,TV="4efe13f5-d950-4b7a-8c9a-ffa5db58d677",EV="5317579a-a8ee-431d-9a53-6d8cfe773828",NV="/__l5e/assets-v1/4efe13f5-d950-4b7a-8c9a-ffa5db58d677/refugee-women-tall.jpg",RV="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/4efe13f5-d950-4b7a-8c9a-ffa5db58d677/refugee-women-tall.jpg",AV="refugee-women-tall.jpg",PV=93693,$V="image/jpeg",MV="2026-08-28T22:31:48Z",OV={version:kV,asset_id:TV,project_id:EV,url:NV,r2_key:RV,original_filename:AV,size:PV,content_type:$V,created_at:MV},IV=[{label:"Home",href:"/"},{label:"About Us",href:"/about"},{label:"Our Mission & Vision"}],DV=[{icon:gd,title:"Public Witness",body:""},{icon:Dv,title:"Justice",body:""},{icon:_j,title:"Faith",body:""},{icon:Bs,title:"Reconciliation",body:""},{icon:yN,title:"Agape Love",body:""}],LV=()=>a.jsx(ae,{title:"Our Mission & Vision",description:"Rooted in Christian ecumenical cooperation, MCC brings together diverse people of faith to build just, equitable, and livable communities for all Minnesotans.",eyebrow:"About Us",heading:"Our Mission & Vision",breadcrumbs:IV,section:"about",path:"/about/mission",children:a.jsxs("div",{className:"space-y-8",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:SV.url,alt:"Handmade welcome signs clipped to a clothesline, including one that reads All Are Welcome Here",loading:"lazy",width:1090,height:456,className:"w-full h-auto object-cover aspect-[16/7]"})})}
332),a.jsxs(E,{className:"max-w-3xl mx-auto space-y-4 text-lg text-muted-foreground leading-relaxed",children:[a.jsx("p",{children:"Rooted in a long tradition of Christian ecumenical cooperation, the Minnesota Council of Churches (MCC) convenes, connects, and catalyzes people of faith to build just, equitable, and livable communities for all Minnesotans."}),a.jsx(pU,{quote:"The Minnesota Council of Churches convenes, connects, and catalyzes people of faith to build just, equitable, and livable communities for all Minnesotans.",className:"-mt-2"})]}),a.jsxs(E,{className:"max-w-3xl mx-auto space-y-4 text-lg text-muted-foreground leading-relaxed",children:[a.jsx("p",{children:"MCC's vision is to equip Minnesota congregations to support the needs of individuals, families, and communities; promote justice, healing, and reconciliation; and enhance ecumenical collaboration and fellowship."}),a.jsx("p",{children:"At the heart of MCC's work are the core values that shape our relationships and commitments:"})]}),a.jsx(E,{stagger:!0,className:"max-w-5xl mx-auto",children:a.jsx(Ly,{items:DV,columns:3})}),a.jsx(E,{className:"max-w-3xl mx-auto space-y-4 text-lg text-muted-foreground leading-relaxed",children:a.jsx("p",{children:"While our work is grounded in Christian ecumenical partnership, MCC warmly welcomes staff, volunteers, and partners from all traditions and backgrounds who share our commitment to justice and community well-being. MCC works to strengthen the capacity of people of faith to listen deeply, bridge divides, and work together for the common good."})}),a.jsx(E,{className:"max-w-6xl mx-auto",children:a.jsx(ws,{heading:"Our Work",body:"Serving people new to the U.S. is a mainstay of MCC's work. We are committed to assisting refugees and immigrants seeking to become New Americans through immigration, housing, and employment support as they transition into their new communities.",image:{src:OV.url,alt:"Three women from MCC's refugee community sitting together outdoors"},imageClassName:"aspect-[3/2]",wideImage:!0,stacked:!0})}),a.jsxs(E,{style:{marginTop:"2rem"},className:"max-w-3xl mx-auto space-y-4 text-lg text-muted-foreground leading-relaxed",children:[a.jsx("p",{children:"MCC also is carefully re-shaping current programs and building new opportunities to respectfully and compassionately address polarization and division across our rural, urban, and suburban communities. This work builds on our long-standing reputation as a trusted organization—grounded in faith and justice—with interfaith connections and statewide reach to provide support to church leaders and congregations around how to interpret and respond to today's complex and shared societal issues."}),a.jsxs("p",{children:["Through our leadership in depolarization efforts—including the well-established"," ",a.jsx(Y,{to:"/programs/civic-dialogue/respectful-conversations",className:"underline decoration-1 underline-offset-2 hover:text-primary transition-colors",children:"MCC Respectful Conversations™"})," ","program—and through partnerships with congregations and community collaborators, MCC equips Minnesotans to:"]}),a.jsxs("ul",{className:"list-disc pl-6 space-y-1",children:[a.jsx("li",{children:"Confront the root causes of polarization"}),a.jsx("li",{children:"Promote understanding and healing"}),a.jsx("li",{children:"Take collective action to improve the spiritual, social, and economic well-being of all"})]}),a.jsx("p",{children:"The breadth of MCC's community of members amplifies our ability to engage diverse voices, share learning, and replicate efforts across the state and region. Years of intentional work transformed MCC into a BIPOC-led agency at both the board and executive leadership levels. Today, MCC reflects a broad spectrum of diversity across geographies (urban, rural, suburban), socioeconomic backgrounds, race, ethnicity, gender identity, and political views. This wealth of perspectives and experiences mirrors the broader community we aim to influence and unite, creating a powerful foundation for change."}),a.jsx("p",{children:"We launched a new three-year strategic plan in 2026, which will guide MCC in continuing to offer educational, truth-telling, and narrative-change resources for congregations and interfaith partners, always delivered with a strong and intentional racial equity lens."})]}),a.jsx(E,{className:"max-w-5xl mx-auto",children:a.jsx(C4,{heading:"Get Involved",primary:{label:"Get Involved",href:"/get-involved"}})})]})}),zV=1,FV="8f6975f2-f235-49d7-a6fd-facab5de54f5",UV="5317579a-a8ee-431d-9a53-6d8cfe773828",BV="/__l5e/assets-v1/8f6975f2-f235-49d7-a6fd-facab5de54f5/mcc-all-staff-meeting.png",VV="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/8f6975f2-f235-49d7-a6fd-facab5de54f5/mcc-all-staff-meeting.png",HV="mcc-all-staff-meeting.png",WV=1430441,qV="image/png",KV="2026-09-01T14:29:41Z",ZV={version:zV,asset_id:FV,project_id:UV,url:BV,r2_key:VV,original_filename:HV,size:WV,content_type:qV,created_at:KV},GV=1,JV="2f6fa040-9010-4ccf-b090-c774229a5e55",YV="5317579a-a8ee-431d-9a53-6d8cfe773828",QV="/__l5e/assets-v1/2f6fa040-9010-4ccf-b090-c774229a5e55/shahid-anwar.jpg",XV="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/2f6fa040-9010-4ccf-b090-c774229a5e55/shahid-anwar.jpg",eH="shahid-anwar.jpg",tH=35188,nH="image/jpeg",rH="2026-09-01T14:44:34Z",sH={version:GV,asset_id:JV,project_id:YV,url:QV,r2_key:XV,original_filename:eH,size:tH,content_type:nH,created_at:rH},iH=1,oH="146b41ad-4248-4ff0-844b-2a8ee2095ec1",aH="5317579a-a8ee-431d-9a53-6d8cfe773828",lH="/__l5e/assets-v1/146b41ad-4248-4ff0-844b-2a8ee2095ec1/chrissie-carver.jpg",cH="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/146b41ad-4248-4ff0-844b-2a8ee2095ec1/chrissie-carver.jpg",uH="chrissie-carver.jpg",dH=422044,hH="image/jpeg",fH="2026-09-01T14:48:20Z",pH={version:iH,asset_id:oH,project_id:aH,url:lH,r2_key:cH,original_filename:uH,size:dH,content_type:hH,created_at:fH},mH=1,gH="20459656-e509-43d9-8667-889ae5212f9f",vH="5317579a-a8ee-431d-9a53-6d8cfe773828",yH="/__l5e/assets-v1/20459656-e509-43d9-8667-889ae5212f9f/suzanne-kelly.jpg",bH="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/20459656-e509-43d9-8667-889ae5212f9f/suzanne-kelly.jpg",xH="suzanne-kelly.jpg",wH=614045,CH="image/png",_H="2026-09-01T14:48:44Z",jH={version:mH,asset_id:gH,project_id:vH,url:yH,r2_key:bH,original_filename:xH,size:wH,content_type:CH,created_at:_H},SH=1,kH="eade3eb1-7ba6-4a8f-a05d-ab5c741dac2a",TH="5317579a-a8ee-431d-9a53-6d8cfe773828",EH="/__l5e/assets-v1/eade3eb1-7ba6-4a8f-a05d-ab5c741dac2a/jerad-morey.jpg",NH="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/eade3eb1-7ba6-4a8f-a05d-ab5c741dac2a/jerad-morey.jpg",RH="jerad-morey.jpg",AH=106858,PH="image/jpeg",$H="2026-09-01T14:49:08Z",MH={version:SH,asset_id:kH,project_id:TH,url:EH,r2_key:NH,original_filename:RH,size:AH,content_type:PH,created_at:$H},OH=1,IH="c7704f43-75ab-40ea-85eb-a48a3f03c223",DH="5317579a-a8ee-431d-9a53-6d8cfe773828",LH="/__l5e/assets-v1/c7704f43-75ab-40ea-85eb-a48a3f03c223/kathleen-motzenbecker.jpg",zH="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/c7704f43-75ab-40ea-85eb-a48a3f03c223/kathleen-motzenbecker.jpg",FH="kathleen-motzenbecker.jpg",UH=88687,BH="image/jpeg",VH="2026-09-01T14:49:24Z",HH={version:OH,asset_id:IH,project_id:DH,url:LH,r2_key:zH,original_filename:FH,size:UH,content_type:BH,created_at:VH},WH=1,qH="bc478257-94ff-4c4e-8245-7b04c160c8a2",KH="5317579a-a8ee-431d-9a53-6d8cfe773828",ZH="/__l5e/assets-v1/bc478257-94ff-4c4e-8245-7b04c160c8a2/cecil-fountain.jpg",GH="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/bc478257-94ff-4c4e-8245-7b04c160c8a2/cecil-fountain.jpg",JH="cecil-fountain.jpg",YH=29842,QH="image/jpeg",XH="2026-09-01T15:11:52Z",eW={version:WH,asset_id:qH,project_id:KH,url:ZH,r2_key:GH,original_filename:JH,size:YH,content_type:QH,created_at:XH},tW=1,nW="582d5ee4-97bc-4ec9-87b5-a6d75bd42a64",rW="5317579a-a8ee-431d-9a53-6d8cfe773828",sW="/__l5e/assets-v1/582d5ee4-97bc-4ec9-87b5-a6d75bd42a64/shane-wider.png",iW="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/582d5ee4-97bc-4ec9-87b5-a6d75bd42a64/shane-wider.png",oW="shane-wider.png",aW=1357581,lW="image/png",cW="2026-09-01T17:56:13Z",uW={version:tW,asset_id:nW,project_id:rW,url:sW,r2_key:iW,original_filename:oW,size:aW,content_type:lW,created_at:cW},dW=1,hW="a4699aee-0a62-4a99-9e37-acf46880f21b",fW="5317579a-a8ee-431d-9a53-6d8cfe773828",pW="/__l5e/assets-v1/a4699aee-0a62-4a99-9e37-acf46880f21b/cearah-2.jpg",mW="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/a4699aee-0a62-4a99-9e37-acf46880f21b/cearah-2.jpg",gW="cearah-2.jpg",vW=94445,yW="image/jpeg",bW="2026-09-01T15:38:25Z",xW={ver
332sion:dW,asset_id:hW,project_id:fW,url:pW,r2_key:mW,original_filename:gW,size:vW,content_type:yW,created_at:bW},wW=1,CW="cf4cb181-e819-4473-9271-0e7a959f0e3c",_W="5317579a-a8ee-431d-9a53-6d8cfe773828",jW="/__l5e/assets-v1/cf4cb181-e819-4473-9271-0e7a959f0e3c/ellen.jpg",SW="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/cf4cb181-e819-4473-9271-0e7a959f0e3c/ellen.jpg",kW="ellen.jpg",TW=115659,EW="image/jpeg",NW="2026-09-01T14:55:17Z",RW={version:wW,asset_id:CW,project_id:_W,url:jW,r2_key:SW,original_filename:kW,size:TW,content_type:EW,created_at:NW},AW=1,PW="65581fa4-c903-4cdc-b3ff-1f32a13f35a5",$W="5317579a-a8ee-431d-9a53-6d8cfe773828",MW="/__l5e/assets-v1/65581fa4-c903-4cdc-b3ff-1f32a13f35a5/micah.jpg",OW="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/65581fa4-c903-4cdc-b3ff-1f32a13f35a5/micah.jpg",IW="micah.jpg",DW=21987,LW="image/jpeg",zW="2026-09-01T14:55:53Z",FW={version:AW,asset_id:PW,project_id:$W,url:MW,r2_key:OW,original_filename:IW,size:DW,content_type:LW,created_at:zW},UW=[{label:"Home",href:"/"},{label:"About Us",href:"/about"},{label:"Our Staff"}],BW=[{name:"Shahid Anwar",title:"Controller",phone:"612-230-3292",email:"[email protected]",photo:{src:sH.url,alt:"Portrait of Shahid Anwar",pos:"50% 0%"}},{name:"Ellen Burkhardt",title:"Senior Director of Communications and Engagement",phone:"651-724-1385",email:"[email protected]",photo:{src:RW.url,alt:"Portrait of Ellen Burkhardt",pos:"50% 28%"}},{name:"Chrissie Carver",title:"Chief of Staff",phone:"612-230-3344",email:"[email protected]",photo:{src:pH.url,alt:"Portrait of Chrissie Carver"}},{name:"Cecil Fountain",title:"Assistant Director of Refugee Services",phone:"612-223-4254",email:"[email protected]",photo:{src:eW.url,alt:"Portrait of Cecil Fountain",pos:"50% 30%"}},{name:"Cearah Hamilton",title:"Assistant Director of Communications and Engagement",phone:"612-750-0907",email:"[email protected]",nameHref:"https://www.linkedin.com/in/cearah-hamilton-a735532b6",photo:{src:xW.url,alt:"Portrait of Cearah Hamilton",pos:"50% 0%"}},{name:"Elder Suzanne Kelly",title:"Chief Executive Officer",phone:"612-230-3202",email:"[email protected]",photo:{src:jH.url,alt:"Portrait of Elder Suzanne Kelly",pos:"50% 4%"}},{name:"Micah Minnema",title:"Senior Grant Writer",phone:"612-230-3204",email:"[email protected]",photo:{src:FW.url,alt:"Portrait of Micah Minnema",pos:"50% 30%"}},{name:"Shane Miller",title:"Chief Operating Officer",phone:"612-230-3201",email:"[email protected]",photo:{src:uW.url,alt:"Portrait of Shane Miller",pos:"50% 66%",zoom:1.55}},{name:"Rev. Jerad Morey",title:"Director of the Office of Civic Dialogue",phone:"612-230-3211",email:"[email protected]",photo:{src:MH.url,alt:"Portrait of Rev. Jerad Morey"}},{name:"Kathleen Motzenbecker",title:"Director of Refugee and Immigrant Services",phone:"612-230-3215",email:"[email protected]",photo:{src:HH.url,alt:"Portrait of Kathleen Motzenbecker",pos:"50% 0%"}}],VW=e=>e.replace(/^(Bishop|Rev\.|Dr\.|Pastor|Ruling Elder|Presiding Elder|Elder|Ms\.|Mr\.|Mrs\.)\s+/gi,"").split(/\s+/).map(t=>t[0]).filter(Boolean).slice(0,2).join(""),HW=({name:e,className:t=""})=>a.jsx("div",{className:`flex items-center justify-center bg-[hsl(var(--teal-light))] text-[hsl(var(--teal-deep))] font-serif ${t}`,"aria-hidden":"true",children:e?a.jsx("span",{className:"text-4xl",children:VW(e)}):a.jsx(xN,{className:"h-10 w-10 opacity-60",strokeWidth:1.25})}),WW=()=>a.jsx(ae,{title:"Our Staff",description:"Meet the staff of the Minnesota Council of Churches, led by Chief Executive Officer Elder Suzanne Kelly.",eyebrow:"About Us",heading:"Our Staff",breadcrumbs:UW,section:"about",path:"/about/staff",children:a.jsxs("div",{className:"space-y-16",children:[a.jsx(E,{children:a.jsx("figure",{className:"max-w-5xl mx-auto overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:ZV.url,alt:"MCC staff gathered together at an all-staff meeting",loading:"lazy",width:1280,height:720,className:"w-full h-auto object-cover aspect-[16/9]"})})}),a.jsxs("div",{className:"max-w-5xl mx-auto",children:[a.jsx(E,{children:a.jsx("h2",{className:"font-serif text-3xl text-[hsl(var(--navy))] mb-8",children:"Senior Leadership Team"})}),a.jsx(E,{stagger:!0,children:a.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-5",children:BW.map(e=>a.jsxs("article",{className:"flex flex-col bg-card rounded-2xl border border-border p-5 shadow-sm hover:-translate-y-0.5 hover:shadow-md hover:border-[hsl(var(--teal))] transition-all",children:[e.photo?a.jsx("div",{className:"aspect-[4/3] w-full overflow-hidden rounded-xl mb-4",children:a.jsx("img",{src:e.photo.src,alt:e.photo.alt,loading:"lazy",style:{objectPosition:e.photo.pos??"50% 22%",transform:e.photo.zoom?`scale(${e.photo.zoom})`:void 0},className:"h-full w-full object-cover"})}):a.jsx(HW,{name:e.name,className:"aspect-[4/3] rounded-xl mb-4"}),a.jsx("h3",{className:"font-serif text-lg text-[hsl(var(--navy))] leading-snug font-bold",children:e.nameHref?a.jsx("a",{href:e.nameHref,target:"_blank",rel:"noopener noreferrer",className:"text-[hsl(var(--navy))] hover:text-[hsl(var(--teal-deep))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",children:e.name}):e.name}
332),a.jsx("p",{className:"text-primary text-sm font-medium mt-1",children:e.title}),a.jsxs("div",{className:"mt-4 space-y-1.5 text-sm text-muted-foreground",children:[a.jsxs("a",{href:`tel:${e.phone.replace(/[^0-9+]/g,"")}`,className:"flex items-center gap-2 hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",children:[a.jsx(Iv,{className:"h-3.5 w-3.5 shrink-0"})," ",e.phone]}),a.jsxs("a",{href:`mailto:${e.email}`,className:"flex items-center gap-2 hover:text-primary break-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",children:[a.jsx(vh,{className:"h-3.5 w-3.5 shrink-0"})," ",e.email]})]})]},e.email))})})]})]})}),qW=1,KW="39db4a1c-b780-4960-953a-14b3c3b0c13a",ZW="5317579a-a8ee-431d-9a53-6d8cfe773828",GW="/__l5e/assets-v1/39db4a1c-b780-4960-953a-14b3c3b0c13a/mcc-25-denominations-4.jpg",JW="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/39db4a1c-b780-4960-953a-14b3c3b0c13a/mcc-25-denominations-4.jpg",YW="mcc-25-denominations-4.jpg",QW=257475,XW="image/jpeg",eq="2026-09-09T14:05:28Z",tq={version:qW,asset_id:KW,project_id:ZW,url:GW,r2_key:JW,original_filename:YW,size:QW,content_type:XW,created_at:eq},nq=[{label:"Home",href:"/"},{label:"About Us",href:"/about"},{label:"Our Members"}],rq=[{name:"African Methodist Episcopal Church",website:"https://www.ame-church.com/",judicatories:["The Fourth Episcopal District"]},{name:"American Baptist Churches USA",website:"https://www.abc-usa.org/",judicatories:["Mid-American Baptist Churches","Rochester-Genesee Region"]},{name:"Christian Church (Disciples of Christ)",website:"https://disciples.org/",judicatories:["Upper Midwest Region"]},{name:"Church of God in Christ",website:"http://www.cogic.org/",judicatories:["MN Ecclesiastical Jurisdiction"]},{name:"Church of the Brethren",website:"http://www.brethren.org/",judicatories:["Northern Plains District"]},{name:"Episcopal Church",website:"https://episcopalchurch.org/",judicatories:["Episcopal Church in Minnesota"]},{name:"Evangelical Lutheran Church in America (ELCA)",website:"https://www.elca.org/",judicatories:["Southwestern Minnesota Synod","Southeastern Minnesota Synod","Saint Paul Area Synod","Minneapolis Area Synod","Northeastern Minnesota Synod","Northwestern Minnesota Synod"]},{name:"Mennonite Church USA",website:"http://mennoniteusa.org/",judicatories:["Central Plains Mennonite Conference"]},{name:"Moravian Church in North America",website:"https://www.moravian.org/",judicatories:["Northern Province"]},{name:"National Baptist Convention USA, Inc.",website:"https://www.nationalbaptist.com/",judicatories:["Minnesota State Baptist Convention, Inc."]},{name:"Pentecostal Assemblies of the World",website:"https://pawinc.org/",judicatories:["Minnesota, Wisconsin, and Dakotas District"]},{name:"Presbyterian Church USA (PCUSA)",website:"https://www.pcusa.org/",judicatories:["Presbytery of MN Valleys","Dakota Presbytery","Presbytery of the Twin Cities Area","Synod of Lakes & Prairies","Presbytery of the Northern Plains","Presbytery of the Northern Waters"]},{name:"United Church of Christ",website:"https://www.ucc.org/",judicatories:["Minnesota Conference"]},{name:"The United Methodist Church",website:"https://www.umc.org/",judicatories:["Minnesota Annual Conference"]}],sq=()=>a.jsx(ae,{title:"Our Members | Minnesota Council of Churches",description:"The Minnesota Council of Churches represents 25 Christian denominations and some one million congregants across Historic Black, Mainline Protestant, and Peace Church faith communities.",eyebrow:"About Us",heading:"Our Members",breadcrumbs:nq,section:"about",path:"/about/members",children:a.jsxs("div",{className:"space-y-12",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:tq.url,alt:"Minnesota Council of Churches member denominations and judicatories",loading:"lazy",width:1920,height:1080,className:"w-full h-auto"})})}),a.jsx(E,{className:"max-w-3xl space-y-4 text-muted-foreground leading-relaxed",children:a.jsx("p",{className:"text-lg",children:"The Minnesota Council of Churches represents 25 Christian denominations and some one million congregants, uniting Historic Black, Mainline Protestant, and Peace Church faith communities across Minnesota to collectively advance the work of the faithful, promote justice, and address systemic inequities."})}),a.jsx(E,{children:a.jsx("h3",{className:"font-serif text-2xl md:text-3xl text-[hsl(var(--navy))]",children:"Member denominations and their correlating judicatories:"})}),a.jsx(E,{stagger:!0,children:a.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 list-none pl-0",children:rq.map(e=>a.jsxs("li",{className:"flex flex-col rounded-2xl border border-border bg-card p-6 shadow-sm",children:[a.jsx("h4",{className:"font-serif text-xl text-[hsl(var(--navy))] leading-snug",children:e.name}),a.jsx("a",{href:e.website,target:"_blank",rel:"noopener noreferrer",className:"mt-2 w-fit text-sm font-medium text-primary underline underline-offset-4 hover:text-[hsl(var(--teal-deep))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",children:"Denomination Website"}),e.judicatories.length>0&&a.jsx("ul",{className:"mt-4 space-y-2 text-sm text-muted-foreground leading-relaxed list-none pl-0",children:e.judicatories.map(t=>a.jsxs("li",{className:"flex gap-2",children:[a.jsx("span",{"aria-hidden":"true",className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-[hsl(var(--gold))]"}),a.jsx("span",{children:t})]},t))})]},e.name))})})]})}),iq=1,oq="73401354-a38e-4b04-93b8-33866b3d2289",aq="5317579a-a8ee-431d-9a53-6d8cfe773828",lq="/__l5e/assets-v1/73401354-a38e-4b04-93b8-33866b3d2289/board-members-gri
332d.png",cq="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/73401354-a38e-4b04-93b8-33866b3d2289/board-members-grid.png",uq="board-members-grid.png",dq=2550998,hq="image/png",fq="2026-08-31T20:47:48Z",pq={version:iq,asset_id:oq,project_id:aq,url:lq,r2_key:cq,original_filename:uq,size:dq,content_type:hq,created_at:fq},mq=1,gq="9adfa159-5619-4e90-8b73-427e10316028",vq="5317579a-a8ee-431d-9a53-6d8cfe773828",yq="/__l5e/assets-v1/9adfa159-5619-4e90-8b73-427e10316028/tawanna-black.jpg",bq="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/9adfa159-5619-4e90-8b73-427e10316028/tawanna-black.jpg",xq="tawanna-black.jpg",wq=23649,Cq="image/jpeg",_q="2026-08-31T18:55:45Z",jq={version:mq,asset_id:gq,project_id:vq,url:yq,r2_key:bq,original_filename:xq,size:wq,content_type:Cq,created_at:_q},Sq=1,kq="43a63170-1580-4e14-9643-4ca7476c7cd7",Tq="5317579a-a8ee-431d-9a53-6d8cfe773828",Eq="/__l5e/assets-v1/43a63170-1580-4e14-9643-4ca7476c7cd7/dee-pederson.jpg",Nq="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/43a63170-1580-4e14-9643-4ca7476c7cd7/dee-pederson.jpg",Rq="dee-pederson.jpg",Aq=16694,Pq="image/jpeg",$q="2026-08-31T18:55:49Z",Mq={version:Sq,asset_id:kq,project_id:Tq,url:Eq,r2_key:Nq,original_filename:Rq,size:Aq,content_type:Pq,created_at:$q},Oq=1,Iq="fe00d754-03c3-472a-9791-44ce63639bbf",Dq="5317579a-a8ee-431d-9a53-6d8cfe773828",Lq="/__l5e/assets-v1/fe00d754-03c3-472a-9791-44ce63639bbf/jacquline-saxon.jpg",zq="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/fe00d754-03c3-472a-9791-44ce63639bbf/jacquline-saxon.jpg",Fq="jacquline-saxon.jpg",Uq=17043,Bq="image/jpeg",Vq="2026-08-31T18:55:51Z",Hq={version:Oq,asset_id:Iq,project_id:Dq,url:Lq,r2_key:zq,original_filename:Fq,size:Uq,content_type:Bq,created_at:Vq},Wq=1,qq="c73fbfeb-1b7d-4afc-8057-5400edba0109",Kq="5317579a-a8ee-431d-9a53-6d8cfe773828",Zq="/__l5e/assets-v1/c73fbfeb-1b7d-4afc-8057-5400edba0109/jenny-moran.jpg",Gq="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/c73fbfeb-1b7d-4afc-8057-5400edba0109/jenny-moran.jpg",Jq="jenny-moran.jpg",Yq=16909,Qq="image/jpeg",Xq="2026-08-31T18:55:54Z",eK={version:Wq,asset_id:qq,project_id:Kq,url:Zq,r2_key:Gq,original_filename:Jq,size:Yq,content_type:Qq,created_at:Xq},tK=1,nK="f8c31998-4786-4d9b-9dd0-d6e92fd1bf9d",rK="5317579a-a8ee-431d-9a53-6d8cfe773828",sK="/__l5e/assets-v1/f8c31998-4786-4d9b-9dd0-d6e92fd1bf9d/stacey-smith.jpg",iK="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/f8c31998-4786-4d9b-9dd0-d6e92fd1bf9d/stacey-smith.jpg",oK="stacey-smith.jpg",aK=38725,lK="image/jpeg",cK="2026-08-31T18:55:57Z",uK={version:tK,asset_id:nK,project_id:rK,url:sK,r2_key:iK,original_filename:oK,size:aK,content_type:lK,created_at:cK},dK=1,hK="b96738bc-4609-49ec-91df-ac29c65e3a3b",fK="5317579a-a8ee-431d-9a53-6d8cfe773828",pK="/__l5e/assets-v1/b96738bc-4609-49ec-91df-ac29c65e3a3b/sandra-hasenauer.jpg",mK="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/b96738bc-4609-49ec-91df-ac29c65e3a3b/sandra-hasenauer.jpg",gK="sandra-hasenauer.jpg",vK=16847,yK="image/jpeg",bK="2026-08-31T18:55:59Z",xK={version:dK,asset_id:hK,project_id:fK,url:pK,r2_key:mK,original_filename:gK,size:vK,content_type:yK,created_at:bK},wK=1,CK="1abc2b88-422f-432d-851a-2a5a63d46551",_K="5317579a-a8ee-431d-9a53-6d8cfe773828",jK="/__l5e/assets-v1/1abc2b88-422f-432d-851a-2a5a63d46551/fred-washington.jpg",SK="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/1abc2b88-422f-432d-851a-2a5a63d46551/fred-washington.jpg",kK="fred-washington.jpg",TK=16676,EK="image/jpeg",NK="2026-08-31T18:56:02Z",RK={version:wK,asset_id:CK,project_id:_K,url:jK,r2_key:SK,original_filename:kK,size:TK,content_type:EK,created_at:NK},AK=1,PK="907b78bd-c537-43c5-890d-07595a0d09e6",$K="5317579a-a8ee-431d-9a53-6d8cfe773828",MK="/__l5e/assets-v1/907b78bd-c537-43c5-890d-07595a0d09e6/greg-davidson-laszakovits.jpg",OK="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/907b78bd-c537-43c5-890d-07595a0d09e6/greg-davidson-laszakovits.jpg",IK="greg-davidson-laszakovits.jpg",DK=19311,LK="image/jpeg",zK="2026-08-31T18:56:05Z",FK={version:AK,asset_id:PK,project_id:$K,url:MK,r2_key:OK,original_filename:IK,size:DK,content_type:LK,created_at:zK},UK=1,BK="cbc834c9-c7ca-4998-a11d-cf63cdcbfcd3",VK="5317579a-a8ee-431d-9a53-6d8cfe773828",HK="/__l5e/assets-v1/cbc834c9-c7ca-4998-a11d-cf63cdcbfcd3/josh-patty.jpg",WK="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/cbc834c9-c7ca-4998-a11d-cf63cdcbfcd3/josh-patty.jpg",qK="josh-patty.jpg",KK=18066,ZK="image/jpeg",GK="2026-08-31T18:56:09Z",JK={version:UK,asset_id:BK,project_id:VK,url:HK,r2_key:WK,original_filename:qK,size:KK,content_type:ZK,created_at:GK},YK=1,QK="4ea24432-3fa1-42ef-aa68-ede9dc89f045",XK="5317579a-a8ee-431d-9a53-6d8cfe773828",eZ="/__l5e/assets-v1/4ea24432-3fa1-42ef-aa68-ede9dc89f045/craig-loya.jpg",tZ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/4ea24432-3fa1-42ef-aa68-ede9dc89f045/craig-loya.jpg",nZ="craig-loya.jpg",rZ=15956,sZ="image/jpeg",iZ="2026-08-31T18:56:12Z",oZ={version:YK,asset_id:QK,project_id:XK,url:eZ,r2_key:tZ,original_filename:nZ,size:rZ,content_type:sZ,created_at:iZ},aZ=1,lZ="e3d11167-8075-4c0c-b0df-5cebb3ffe94e",cZ="5317579a-a8ee-431d-9a53-6d8cfe773828",uZ="/__l5e/assets-v1/e3d11167-8075-4c0c-b0df-5cebb3ffe94e/jen-nagel.jpg",dZ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/e3d11167-8075-4c0c-b0df-5cebb3ffe94e/jen-nagel.jpg",hZ="jen-nagel.jpg",fZ=15081,pZ="image/jpeg",mZ="2026-08-31T18:56:15Z",gZ={version:aZ,asset_id:lZ,project_id:cZ,url:uZ,r2_key:dZ,original_filename:hZ,size:fZ,content_type:pZ,created_at:mZ},vZ=1,yZ="0e33fce1-a82b-40f6-a6f8-8ff94a9b6474",bZ="5317579a-a8ee-431d-9a53-6d8cfe773828",xZ="/__l5e/assets-v1/0e33fce1-a82b-40f6-a6f8-8ff94a9b6474/taryn-montgomery.jpg",wZ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/0e33fce1-a82b-40f6-a6f8-8ff94a9b6474/taryn-montgomery.jpg",CZ="taryn-montgomery.jpg",_Z=19824,jZ="image/jpeg",SZ="2026-08-31T18:56:18Z",kZ={version:vZ,asset_id:yZ,project_id:bZ,url:xZ,r2_key:wZ,original_filename:CZ,size:_Z,content_type:jZ,created_at:SZ},TZ=1,EZ="9af31cb6-586d-4ade-8232-b50810b10d97",NZ="5317579a-a8ee-431d-9a53-6d8cfe773828",RZ="/__l5e/assets-v1/9af31cb6-586d-4ade-8232-b50810b10d97/william-tesch.jpg",AZ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/9af31cb6-586d-4ade-8232-b50810b10d97/william-tesch.jpg",PZ="william-tesch.jpg",$Z=9072,MZ="image/jpeg",OZ="2026-08-31T18:56:21Z",IZ={version:TZ,asset_id:EZ,project_id:NZ,url:RZ,r2_key:AZ,original_filename:PZ,size:$Z,content_type:MZ,created_at:OZ},DZ=1,LZ="3d5ef55b-9271-467a-95dc-f1c3765591c9",zZ="5317579a-a8ee-431d-9a53-6d8cfe773828",FZ="/__l5e/assets-v1/3d5ef55b-9271-467a-95dc-f1c3765591c9/justin-grimm.jpg",UZ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/3d5ef55b-9271-467a-95dc-f1c3765591c9/justin-grimm.jpg",B
332Z="justin-grimm.jpg",VZ=32107,HZ="image/jpeg",WZ="2026-08-31T18:56:23Z",qZ={version:DZ,asset_id:LZ,project_id:zZ,url:FZ,r2_key:UZ,original_filename:BZ,size:VZ,content_type:HZ,created_at:WZ},KZ=1,ZZ="2931e599-feb1-497e-a358-0e3b897d0a38",GZ="5317579a-a8ee-431d-9a53-6d8cfe773828",JZ="/__l5e/assets-v1/2931e599-feb1-497e-a358-0e3b897d0a38/regina-hassanally.jpg",YZ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/2931e599-feb1-497e-a358-0e3b897d0a38/regina-hassanally.jpg",QZ="regina-hassanally.jpg",XZ=23400,eG="image/jpeg",tG="2026-08-31T18:56:27Z",nG={version:KZ,asset_id:ZZ,project_id:GZ,url:JZ,r2_key:YZ,original_filename:QZ,size:XZ,content_type:eG,created_at:tG},rG=1,sG="ecc09915-64df-4dc8-9149-23b92d99a3f9",iG="5317579a-a8ee-431d-9a53-6d8cfe773828",oG="/__l5e/assets-v1/ecc09915-64df-4dc8-9149-23b92d99a3f9/nathan-luitjens.jpg",aG="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/ecc09915-64df-4dc8-9149-23b92d99a3f9/nathan-luitjens.jpg",lG="nathan-luitjens.jpg",cG=4475,uG="image/jpeg",dG="2026-08-31T18:56:31Z",hG={version:rG,asset_id:sG,project_id:iG,url:oG,r2_key:aG,original_filename:lG,size:cG,content_type:uG,created_at:dG},fG=1,pG="875f4576-99f2-4891-b779-3e789148f4c5",mG="5317579a-a8ee-431d-9a53-6d8cfe773828",gG="/__l5e/assets-v1/875f4576-99f2-4891-b779-3e789148f4c5/runney-patterson.jpg",vG="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/875f4576-99f2-4891-b779-3e789148f4c5/runney-patterson.jpg",yG="runney-patterson.jpg",bG=15426,xG="image/jpeg",wG="2026-08-31T18:56:35Z",CG={version:fG,asset_id:pG,project_id:mG,url:gG,r2_key:vG,original_filename:yG,size:bG,content_type:xG,created_at:wG},_G=1,jG="e7364d1a-3548-47da-8068-e5a4cf4cdd3f",SG="5317579a-a8ee-431d-9a53-6d8cfe773828",kG="/__l5e/assets-v1/e7364d1a-3548-47da-8068-e5a4cf4cdd3f/richard-howell.jpg",TG="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/e7364d1a-3548-47da-8068-e5a4cf4cdd3f/richard-howell.jpg",EG="richard-howell.jpg",NG=22539,RG="image/jpeg",AG="2026-08-31T18:56:38Z",PG={version:_G,asset_id:jG,project_id:SG,url:kG,r2_key:TG,original_filename:EG,size:NG,content_type:RG,created_at:AG},$G=1,MG="679c51ce-707e-47f3-91f4-3d9983b0c7ae",OG="5317579a-a8ee-431d-9a53-6d8cfe773828",IG="/__l5e/assets-v1/679c51ce-707e-47f3-91f4-3d9983b0c7ae/fern-cloud.jpg",DG="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/679c51ce-707e-47f3-91f4-3d9983b0c7ae/fern-cloud.jpg",LG="fern-cloud.jpg",zG=8136,FG="image/jpeg",UG="2026-08-31T18:56:41Z",BG={version:$G,asset_id:MG,project_id:OG,url:IG,r2_key:DG,original_filename:LG,size:zG,content_type:FG,created_at:UG},VG=1,HG="f447c8a1-d174-436f-bb5a-f1cdd48918c9",WG="5317579a-a8ee-431d-9a53-6d8cfe773828",qG="/__l5e/assets-v1/f447c8a1-d174-436f-bb5a-f1cdd48918c9/beth-buckwalter-miller.jpg",KG="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/f447c8a1-d174-436f-bb5a-f1cdd48918c9/beth-buckwalter-miller.jpg",ZG="beth-buckwalter-miller.jpg",GG=24325,JG="image/jpeg",YG="2026-08-31T18:56:43Z",QG={version:VG,asset_id:HG,project_id:WG,url:qG,r2_key:KG,original_filename:ZG,size:GG,content_type:JG,created_at:YG},XG=1,eJ="abd3552a-665b-4473-a399-65c031a64103",tJ="5317579a-a8ee-431d-9a53-6d8cfe773828",nJ="/__l5e/assets-v1/abd3552a-665b-4473-a399-65c031a64103/anna-kendig-flores.jpg",rJ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/abd3552a-665b-4473-a399-65c031a64103/anna-kendig-flores.jpg",sJ="anna-kendig-flores.jpg",iJ=17800,oJ="image/jpeg",aJ="2026-08-31T18:56:46Z",lJ={version:XG,asset_id:eJ,project_id:tJ,url:nJ,r2_key:rJ,original_filename:sJ,size:iJ,content_type:oJ,created_at:aJ},cJ=1,uJ="328d5deb-8f05-4f37-b6fc-2745c108d544",dJ="5317579a-a8ee-431d-9a53-6d8cfe773828",hJ="/__l5e/assets-v1/328d5deb-8f05-4f37-b6fc-2745c108d544/elona-street-stewart.jpg",fJ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/328d5deb-8f05-4f37-b6fc-2745c108d544/elona-street-stewart.jpg",pJ="elona-street-stewart.jpg",mJ=18601,gJ="image/jpeg",vJ="2026-08-31T18:56:49Z",yJ={version:cJ,asset_id:uJ,project_id:dJ,url:hJ,r2_key:fJ,original_filename:pJ,size:mJ,content_type:gJ,created_at:vJ},bJ=1,xJ="c5dd863c-2041-4534-9df2-513f91a414e3",wJ="5317579a-a8ee-431d-9a53-6d8cfe773828",CJ="/__l5e/assets-v1/c5dd863c-2041-4534-9df2-513f91a414e3/rev-dr-bonnie-bates-new.jpg",_J="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/c5dd863c-2041-4534-9df2-513f91a414e3/rev-dr-bonnie-bates-new.jpg",jJ="rev-dr-bonnie-bates-new.jpg",SJ=325795,kJ="image/jpeg",TJ="2026-08-31T19:15:34Z",EJ={version:bJ,asset_id:xJ,project_id:wJ,url:CJ,r2_key:_J,original_filename:jJ,size:SJ,content_type:kJ,created_at:TJ},NJ=1,RJ="b60da22b-5f5e-4979-9e3e-f3c98156c03a",AJ="5317579a-a8ee-431d-9a53-6d8cfe773828",PJ="/__l5e/assets-v1/b60da22b-5f5e-4979-9e3e-f3c98156c03a/lanette-plambeck.jpg",$J="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/b60da22b-5f5e-4979-9e3e-f3c98156c03a/lanette-plambeck.jpg",MJ="lanette-plambeck.jpg",OJ=34418,IJ="image/jpeg",DJ="2026-08-31T18:56:55Z",LJ={version:NJ,asset_id:RJ,project_id:AJ,url:PJ,r2_key:$J,original_filename:MJ,size:OJ,content_type:IJ,created_at:DJ},zJ=1,FJ="709359a4-3046-43c5-a1d2-3a635bd4b41a",UJ="5317579a-a8ee-431d-9a53-6d8cfe773828",BJ="/__l5e/assets-v1/709359a4-3046-43c5-a1d2-3a635bd4b41a/anthony-galloway.jpg",VJ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/709359a4-3046-43c5-a1d2-3a635bd4b41a/anthony-galloway.jpg",HJ="anthony-galloway.jpg",WJ=31492,qJ="image/jpeg",KJ="2026-08-31T18:56:57Z",ZJ={version:zJ,asset_id:FJ,project_id:UJ,url:BJ,r2_key:VJ,original_filename:HJ,size:WJ,content_type:qJ,created_at:KJ},GJ=1,JJ="ddc28413-fad0-43b2-b074-06769ea335fb",YJ="5317579a-a8ee-431d-9a53-6d8cfe773828",QJ="/__l5e/assets-v1/ddc28413-fad0-43b2-b074-06769ea335fb/tierre-webster.jpg",XJ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/ddc28413-fad0-43b2-b074-06769ea335fb/tierre-webster.jpg",eY="tierre-webster.jpg",tY=14599,nY="image/jpeg",rY="2026-08-31T18:56:59Z",sY={version:GJ,asset_id:JJ,project_id:YJ,url:QJ,r2_key:XJ,original_filename:eY,size:tY,content_type:nY,created_at:rY},iY=1,oY="22c9c802-22d9-4eb1-929b-a9a7681896c0",aY="5317579a-a8ee-431d-9a53-6d8cfe773828",lY="/__l5e/assets-v1/22c9c802-22d9-4eb1-929b-a9a7681896c0/yolanda-denson-byers.jpg",cY="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/22c9c802-22d9-4eb1-929b-a9a7681896c0/yolanda-denson-byers.jpg",uY="yolanda-denson-byers.jpg",dY=20515,hY="image/jpeg",fY="2026-08-31T18:57:02Z",pY={version:iY,asset_id:oY,project_id:aY,url:lY,r2_key:cY,original_filename:uY,size:dY,content_type:hY,created_at:fY},mY=1,gY="44aa659e-0e26-49e5-a3bd-63da13a5bd25",vY="5317579a-a8ee-431d-9a53-6d8cfe773828",yY="/__l5e/assets-v1/44aa659e-0e26-49e5-a3bd-63da13a5bd25/charles-gill.jpg",bY="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/44aa659e-0e26-49e5-a3bd-63da13a5bd25/charles-gill.jpg",xY="charles-gill.jpg",wY=24345,CY="image/jpeg",_Y="2026-08-31T18:57:05Z",jY={version:mY,asset_id:gY,project_id:vY,url:yY,r2_key:bY,original_filename:xY,size:wY,content_type:CY,created_at:_Y},SY=1,kY="12174193-8887-46ec-b6ae-38e5d02315f2",TY="5317579a-a8ee-431d-9a53-6d8cfe773828",EY="/__l5e/assets-v1/12174193-8887-46ec-b6ae-38e5d02315f2/david-johnson.jpg",NY="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/12174193-8887-46ec-b6ae-38e5d02315f2/david-johnson.jpg",RY="david-johnson.jpg",AY=9883,PY="image/jpeg",$Y="2026-08-31T18:57:08Z",MY={version:SY,asset_id:kY,project_id:TY,url:EY,r2_key:NY,original_filename:RY,size:AY,content_type:PY,created_at:$Y},OY=1,IY="e850feb7-c59b-484a-9371-535425d1316d",DY="5317579a-a8ee-431d-9a53-6d8cfe773828",LY="/__l5e/assets-v1/e850feb7-c59b-484a-9371-535425d1316d/alanna-simone-tyler.jpg",zY="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/e850feb7-c59b-484a-9371-535425d1316d/alanna-simone-tyler.jpg",FY="alanna-simone-tyler.jpg",UY=23143,BY="image/jpeg",VY="2026-08-31T18:57:11Z",HY={version:OY,asset_id:IY,project_id:DY,url:LY,r2_key:zY,original_filename:FY,size:UY,content_type:BY,created_at:VY}
332,WY=1,qY="de48820f-0c93-4b92-8cff-d216f837b3f5",KY="5317579a-a8ee-431d-9a53-6d8cfe773828",ZY="/__l5e/assets-v1/de48820f-0c93-4b92-8cff-d216f837b3f5/dawn-houser.jpg",GY="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/de48820f-0c93-4b92-8cff-d216f837b3f5/dawn-houser.jpg",JY="dawn-houser.jpg",YY=3763,QY="image/jpeg",XY="2026-08-31T18:57:14Z",eQ={version:WY,asset_id:qY,project_id:KY,url:ZY,r2_key:GY,original_filename:JY,size:YY,content_type:QY,created_at:XY},tQ=[{label:"Home",href:"/"},{label:"About Us",href:"/about"},{label:"Board of Directors"}],nQ=e=>e.replace(/^(Bishop|Rev\.|Dr\.|Pastor|Ruling Elder|Presiding Elder|Elder|Ms\.|Mr\.|Mrs\.)\s+/gi,"").split(/\s+/).map(t=>t[0]).filter(Boolean).slice(0,2).join(""),rQ=[{name:"Pastor Tawanna Black",role:"President",affiliation:"Pentecostal Assemblies of the World - Minnesota, Wisconsin & Dakotas District Council",photo:jq.url},{name:"Bishop Dee Pederson",role:"Vice President",affiliation:"Pentecostal Assemblies of the World",photo:Mq.url},{name:"Rev. Jacquline Saxon",role:"TREASURER",affiliation:"Mid-American Baptist Churches of Iowa and Minne
332sota (ABCUSA)",photo:Hq.url},{name:"Rev. Dr. Jenny Moran - Delegate",role:"Secretary",affiliation:"Moravian Church",photo:eK.url}],hw=[{name:"Presiding Elder Stacey Smith - Delegate",affiliation:"African Methodist Episcopal Church, Saint Paul Minneapolis District",photo:uK.url},{name:"Rev. Sandra Hasenauer",affiliation:"American Baptist ABC Rochester Genesee",photo:xK.url},{name:"Bishop Fred Washington",affiliation:"Church of God in Christ - MN Ecclesiastical Jurisdiction",photo:RK.url},{name:"Rev. Greg Davidson Laszakovits",affiliation:"Church of the Brethren, Northern Plains District",photo:FK.url},{name:"Rev. Josh Patty",affiliation:"Christian Church (Disciples of Christ), Upper Midwest Region",photo:JK.url,photoFit:"contain"},{name:"Bishop Craig Loya",affiliation:"Episcopal Church in Minnesota",photo:oZ.url},{name:"Bishop Jen Nagel",affiliation:"Evangelical Lutheran Church in America, Minneapolis Area Synod",photo:gZ.url},{name:"Bishop Taryn Montgomery",affiliation:"Evangelical Lutheran Church in America, Northeastern Minnesota Synod",photo:kZ.url},{name:"Bishop William Tesch",affiliation:"Evangelical Lutheran Church in America, Northwestern Minnesota Synod",photo:IZ.url},{name:"Bishop Justin Grimm",affiliation:"Evangelical Lutheran Church in America, Saint Paul Area Synod",photo:qZ.url},{name:"Bishop Regina Hassanally",affiliation:"Evangelical Lutheran Church in America, Southeastern Minnesota Synod",photo:nG.url},{name:"Rev. Nathan Luitjens",affiliation:"Mennonite Church-Central Plains Mennonite Conference",photo:hG.url},{name:"Rev. Runney Patterson",affiliation:"National Baptist Convention, USA, Inc., Minnesota State Baptist Convention",photo:CG.url},{name:"Bishop Richard Howell, Jr.",affiliation:"Evangelical Lutheran Church in America, Southwestern Minnesota Synod",photo:PG.url},{name:"Pastor Fern Cloud",affiliation:"Presbyterian Church (USA): Dakota Presbytery",photo:BG.url},{name:"Rev. Beth Buckwalter-Miller",affiliation:"Presbyterian Church (USA): Minnesota Valleys",photo:QG.url},{name:"Rev. Anna Kendig Flores",affiliation:"Presbyterian Church (USA): Twin Cities Area",photo:lJ.url},{name:"Ruling Elder Elona Street-Stewart",affiliation:"Presbyterian Church (USA): Synod of Lakes and Prairies",photo:yJ.url},{name:"Rev. Dr. Bonnie Bates",affiliation:"United Church of Christ Minnesota Conference",photo:EJ.url},{name:"Bishop Lanette Plambeck",affiliation:"United Methodist Church Minnesota Conference",photo:LJ.url}],fw=[{name:"Rev. Anthony Galloway",role:"At-Large Director",affiliation:"African Methodist Episcopal Church, Saint Paul Minneapolis District",photo:ZJ.url},{name:"Pastor Tierre Webster",role:"At-Large Director",affiliation:"Church of God in Christ - MN Ecclesiastical Jurisdiction",photo:sY.url},{name:"Rev. Dr. Yolanda Denson-Byers",role:"At-Large Director",affiliation:"ELCA-Minneapolis Area Synod",photo:pY.url},{name:"Rev. Charles Gill",role:"At-Large Director",affiliation:"National Baptist Convention, USA, Inc., Minnesota State Baptist Convention",photo:jY.url},{name:"Bishop David Johnson",role:"At-Large Director",affiliation:"Pentecostal Assemblies of the World - Minnesota, Wisconsin & Dakotas District Council",photo:MY.url,photoFit:"contain"},{name:"Rev. Alanna Simone Tyler",role:"At-Large Director",affiliation:"Presbyterian Church, PTCA",photo:HY.url},{name:"Rev. Dawn Houser",role:"At-Large Director",affiliation:"United Methodist Church Minnesota Conference",photo:eQ.url}],sQ=[{name:"Executive Committee",chair:{name:"Pastor Tawanna Black",role:"President",affiliation:"Pentecostal Assemblies of the World"},members:[{name:"Bishop Dee Pederson",role:"Vice President",affiliation:"Pentecostal Assemblies of the World"},{name:"Rev. Dr. Jenny Moran",role:"Secretary",affiliation:"Moravian Church"},{name:"Rev. Jacquline Saxon",role:"Interim Treasurer",affiliation:"American Baptist Churches"},{name:"Presiding Elder Stacey Smith",affiliation:"African Methodist Episcopal Church"},{name:"Bishop Regina Hassanally",affiliation:"ELCA, Southeastern MN Area Synod"}]},{name:"Endowment Committee",chair:{name:"Terrence Hassanally",role:"Chair",affiliation:"ELCA, Southeastern MN Area Synod"},members:[{name:"Richard Gunderson",affiliation:"ELCA, St. Paul Synod"},{name:"Paul S. Nelson",affiliation:"ELCA, Minneapolis Area Synod"},{name:"Doug Swanson",affiliation:""},{name:"Eric Forbes",affiliation:""}]},{name:"Finance and Facilities Committee",chair:{name:"Rev. Jacquline Saxon",role:"Chair",affiliation:"ABC Mid-American Baptist Church"},members:[{name:"Rev. James Alberts",affiliation:"Church of God in Christ, MN Ecclesiastical Jurisdiction"},{name:"Terrence Hassanally",affiliation:"ELCA, Southeastern MN Area Synod"},{name:"Paul S. Nelson",affiliation:"ELCA, Minneapolis Area Synod"},{name:"Rev. Cynthia L. Ray",affiliation:"Presbyterian Church (USA), Presbytery of the Twin Cities Area"},{name:"Thomas Sehman",affiliation:"PricewaterhouseCoopers"},{name:"Kyle Vlach",affiliation:"Park Nicollet"}]},{name:"Human Resources Committee",chair:{name:"Valton Henderson",role:"Chair",affiliation:"Consultant"},members:[{name:"Reubenna Cooley",affiliation:"Contractor"},{name:"Mercy Olson",affiliation:"Wells Fargo"},{name:"Ta Vongharath-Evenson",affiliation:"The Blake School"},{name:"Joyce Norals",affiliation:"Lutheran Social Service"}]},{name:"Governance Committee",chair:{name:"Pastor Tawanna Black",role:"Chair",affiliation:"Pentecostal Assemblies of the World"},members:[{name:"Rev. Dr. Judith Ganz",affiliation:"Moravian Church"},{name:"Rev. Dr. Karen Smith Sellers",affiliation:"United Church of Christ"}]}],fp=({p:e})=>{const t=e.photo;return a.jsxs("div",{className:"rounded-xl border border-border bg-white p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:shadow-md hover:border-primary/40",children:[a.jsxs("div",{className:"mb-4 aspect-square w-full overflow-hidden rounded-lg bg-ivory",children:[t?a.jsx("img",{src:t,alt:e.name,loading:"lazy",className:Ce("h-full w-full",e.photoFit==="contain"?"object-contain":"object-cover"),style:{objectPosition:e.photoPosition??"50% 0%"},onError:n=>{const r=n.currentTarget;r.style.display="none";const s=r.nextElementSibling;s&&(s.style.display="flex")}}):null,a.jsx("div",{className:"h-full w-full items-center justify-center font-serif text-3xl text-navy/40",style:{display:t?"none":"flex"},children:nQ(e.name)})]}),e.role&&a.jsx("div",{className:"text-xs uppercase tracking-[0.18em] text-primary font-semibold mb-1.5",children:e.role}),a.jsxs("h3",{className:"font-serif text-lg text-navy leading-snug",children:[e.name,e.designee&&a.jsx("span",{className:"text-muted-foreground font-sans text-sm",children:" (designee)"})]}),a.jsx("p",{className:"mt-1.5 text-sm text-muted-foreground leading-relaxed",children:e.affiliation})]})},iQ=()=>a.jsx(ae,{title:"Board of Directors | Minnesota Council of Churches",description:"Meet the officers, directors, and committee leaders who guide the Minnesota Council of Churches across our member denominations.",eyebrow:"About Us",heading:"Board of Directors",breadcrumbs:tQ,section:"about",path:"/about/board",children:a.jsxs("div",{className:"space-y-16",children:[a.jsx(E,{children:a.jsx("figure",{className:"mx-auto w-full max-w-3xl overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:pq.url,alt:"Grid of Minnesota Council of Churches board member headshots",loading:"lazy",width:1890,height:1343,className:"w-full h-auto"})})}),a.jsx(E,{as:"section",className:"max-w-3xl",children:a.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"The Minnesota Council of Churches Board of Directors brings together judicatory heads and lay leaders from our member denominations to guide MCC's mission, ministry, and strategic direction."})}),a.jsxs(E,{as:"section",children:[a.jsxs("div",{className:"mb-6 flex items-end justify-between gap-4 border-b border-border pb-3",children:[a.jsx("h2",{className:"font-serif text-3xl text-navy",children:"Officers"}),a.jsx("span",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Executive leadership"})]}),a.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:rQ.map(e=>a.jsx(fp,{p:e},e.name+(e.role??"")))})]}),a.jsxs(E,{as:"section",children:[a.jsxs("div",{className:"mb-6 flex items-end justify-between gap-4 border-b border-border pb-3",children:[a.jsx("h2",{className:"font-serif text-3xl text-navy",children:"Board Members"}),a.jsxs("span",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:[hw.length," directors"]})]}),a.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:hw.map(e=>a.jsx(fp,{p:e},e.name))})]}),a.jsxs(E,{as:"section",children:[a.jsxs("div",{className:"mb-6 flex items-end justify-between gap-4 border-b border-border pb-3",children:[a.jsx("h2",{className:"font-serif text-3xl text-navy",children:"At-Large Directors"}),a.jsxs("span",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:[fw.length," directors"]})]}),a.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:fw.map(e=>a.jsx(fp,{p:e},e.name))})]}),a.jsxs(E,{as:"section",children:[a.jsxs("div",{className:"mb-8 border-b border-border pb-3",children:[a.jsx("h2",{className:"font-serif text-3xl text-navy",children:"Committees"}),a.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Standing committees support the board of directors' governance, financial stewardship, and operations."})]}),a.jsx("div",{className:"space-y-10",children:sQ.map(e=>a.jsxs("div",{className:"rounded-2xl bg-ivory/60 border border-border p-6 sm:p-8",children:[a.jsx("h3",{className:"font-serif text-2xl text-navy mb-5",children:e.name}),e.chair&&a.jsxs("div",{className:"mb-5",children:[a.jsx("div",{className:"text-xs uppercase tracking-[0.18em] text-primary font-semibold mb-2",children:"Chair"}),a.jsxs("div",{className:"rounded-xl border border-primary/30 bg-white p-4",children:[a.jsx("div",{className:"font-serif text-lg text-navy",children:e.chair.name}),a.jsx("div",{className:"text-sm text-muted-foreground mt-1",children:e.chair.affiliation})]})]}),a.jsx("div",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground font-semibold mb-3",children:"Members"}),a.jsx("div",{className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-3",children:e.members.map(t=>a.jsxs("div",{className:"rounded-lg bg-white border border-border p-3",children:[t.role&&a.jsx("div",{className:"text-[11px] uppercase tracking-wider text-primary font-semibold mb-1",children:t.role}),a.jsx("div",{className:"font-medium text-navy leading-snug",children:t.name}),a.jsx("div",{className:"text-sm text-muted-foreground mt-0.5 leading-relaxed",children:t.affiliation})]},t.name+(t.role??"")))})]},e.name))})]})]})}),oQ=[{label:"Home",href:"/"},{label:"About Us",href:"/about"},{label:"Racial Justice Commitment"}],aQ=()=>a.jsx(ae,{title:"Racial Justice Commitment",description:"MCC's commitment to racial justice — actively seeking out and valuing the perspectives, cultures, and experiences that make Minnesota's communities stronger.",eyebrow:"About Us",heading:"Racial Justice Commitment",breadcrumbs:oQ,section:"about",path:"/about/racial-justice",children:a.jsxs("div",{className:"max-w-3xl mx-auto 
332space-y-10 text-muted-foreground leading-relaxed text-lg",children:[a.jsx(E,{children:a.jsx("p",{children:"The Minnesota Council of Churches was built on the belief that people of different traditions and backgrounds can come together to create something greater than what any one community can achieve alone. That belief shapes everything we do, from how we welcome refugees and immigrants, to how we bring people to the table through MCC Respectful Conversations, to how we build partnerships across 25 denominations."})}),a.jsx(E,{children:a.jsx("p",{children:"For MCC, racial justice means actively seeking out and valuing the perspectives, cultures, and experiences that make our communities stronger. It means working to remove the barriers that have kept some communities from full participation in our programs, congregations, and civic life. And it means ensuring that every voice genuinely matters in how we make decisions, design programs, and serve Minnesota."})}),a.jsx(E,{children:a.jsx("p",{children:"These aren't abstract principles for us. They are practiced daily in our refugee programs, depolarization work, Office of Civic Dialogue initiatives, and partnerships with faith communities and organizations across the state. We hold ourselves accountable to this commitment because the just, equitable, and livable communities we envision for all Minnesotans require nothing less."})})]})}),lQ=1,cQ="d4a62564-8170-4a8a-9598-003fc745ca14",uQ="5317579a-a8ee-431d-9a53-6d8cfe773828",dQ="/__l5e/assets-v1/d4a62564-8170-4a8a-9598-003fc745ca14/nyakhan-headband.jpg",hQ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/d4a62564-8170-4a8a-9598-003fc745ca14/nyakhan-headband.jpg",fQ="nyakhan-headband.jpg",pQ=128886,mQ="image/jpeg",gQ="2026-08-31T18:05:33Z",vQ={version:lQ,asset_id:cQ,project_id:uQ,url:dQ,r2_key:hQ,original_filename:fQ,size:pQ,content_type:mQ,created_at:gQ},yQ="/assets/taking-heart-option-2-EfSCxvkr.jpg",bQ="/assets/respectful-conversations-2012-CaA-vKem.jpg",xQ="/assets/mankato-tapestry-DMzwjKuR.jpg",wQ=1,CQ="0e0c764a-a710-4ed6-a8b1-fc1b70f0b7ab",_Q="5317579a-a8ee-431d-9a53-6d8cfe773828",jQ="/__l5e/assets-v1/0e0c764a-a710-4ed6-a8b1-fc1b70f0b7ab/elder-suzanne-kelly-headshot.png",SQ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/0e0c764a-a710-4ed6-a8b1-fc1b70f0b7ab/elder-suzanne-kelly-headshot.png",kQ="elder-suzanne-kelly-headshot.png",TQ=614045,EQ="image/png",NQ="2026-08-31T17:44:15Z",RQ={version:wQ,asset_id:CQ,project_id:_Q,url:jQ,r2_key:SQ,original_filename:kQ,size:TQ,content_type:EQ,created_at:NQ},AQ=1,PQ="50c46e7e-219b-4599-a96c-218fc6741a2a",$Q="5317579a-a8ee-431d-9a53-6d8cfe773828",MQ="/__l5e/assets-v1/50c46e7e-219b-4599-a96c-218fc6741a2a/truth-and-reparations.png",OQ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/50c46e7e-219b-4599-a96c-218fc6741a2a/truth-and-reparations.png",IQ="truth-and-reparations.png",DQ=637583,LQ="image/png",zQ="2026-08-31T18:26:09Z",FQ={version:AQ,asset_id:PQ,project_id:$Q,url:MQ,r2_key:OQ,original_filename:IQ,size:DQ,content_type:LQ,created_at:zQ},UQ=1,BQ="ac8ac856-5b44-4a55-a7cb-2d23ddb210ce",VQ="5317579a-a8ee-431d-9a53-6d8cfe773828",HQ="/__l5e/assets-v1/ac8ac856-5b44-4a55-a7cb-2d23ddb210ce/jrlc-photo-for-website.jpg",WQ="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/ac8ac856-5b44-4a55-a7cb-2d23ddb210ce/jrlc-photo-for-website.jpg",qQ="jrlc-photo-for-website.jpg",KQ=87175,ZQ="image/jpeg",GQ="2026-08-31T17:58:02Z",JQ={version:UQ,asset_id:BQ,project_id:VQ,url:HQ,r2_key:WQ,original_filename:qQ,size:KQ,content_type:ZQ,created_at:GQ},YQ=1,QQ="c3c1c88c-d4d6-4578-97f7-3e60f9fb9e67",XQ="5317579a-a8ee-431d-9a53-6d8cfe773828",eX="/__l5e/assets-v1/c3c1c88c-d4d6-4578-97f7-3e60f9fb9e67/mpls-skyline.jpg",tX="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/c3c1c88c-d4d6-4578-97f7-3e60f9fb9e67/mpls-skyline.jpg",nX="mpls-skyline.jpg",rX=562992,sX="image/jpeg",iX="2026-08-31T18:10:48Z",oX={version:YQ,asset_id:QQ,project_id:XQ,url:eX,r2_key:tX,original_filename:nX,size:rX,content_type:sX,created_at:iX},aX=1,lX="027dfbfb-377f-4705-a124-636390a1d848",cX="5317579a-a8ee-431d-9a53-6d8cfe773828",uX="/__l5e/assets-v1/027dfbfb-377f-4705-a124-636390a1d848/cc-our-location.jpg",dX="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/027dfbfb-377f-4705-a124-636390a1d848/cc-our-location.jpg",hX="cc-our-location.jpg",fX=1001071,pX="image/jpeg",mX="2026-09-01T18:19:42Z",gX={version:aX,asset_id:lX,project_id:cX,url:uX,r2_key:dX,original_filename:hX,size:fX,content_type:pX,created_at:mX},vX=1,yX="969471fd-99eb-4f1f-95b4-2b924218dd06",bX="5317579a-a8ee-431d-9a53-6d8cfe773828",xX="/__l5e/assets-v1/969471fd-99eb-4f1f-95b4-2b924218dd06/changing-the-narrative-2020.jpg",wX="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/969471fd-99eb-4f1f-95b4-2b924218dd06/changing-the-narrative-2020.jpg",CX="changing-the-narrative-2020.jpg",_X=121419,jX="image/jpeg",SX="2026-09-08T20:17:26Z",S4={ver
332sion:vX,asset_id:yX,project_id:bX,url:xX,r2_key:wX,original_filename:CX,size:_X,content_type:jX,created_at:SX},kX=1,TX="69b5fa0a-94bf-4b43-b5d1-37ac495266d2",EX="5317579a-a8ee-431d-9a53-6d8cfe773828",NX="/__l5e/assets-v1/69b5fa0a-94bf-4b43-b5d1-37ac495266d2/mcc-centennial.jpg",RX="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/69b5fa0a-94bf-4b43-b5d1-37ac495266d2/mcc-centennial.jpg",AX="mcc-centennial.jpg",PX=76465,$X="image/jpeg",MX="2026-09-01T18:35:28Z",OX={version:kX,asset_id:TX,project_id:EX,url:NX,r2_key:RX,original_filename:AX,size:PX,content_type:$X,created_at:MX},IX=1,DX="1458eccc-737c-4850-98b4-936853d9d435",LX="5317579a-a8ee-431d-9a53-6d8cfe773828",zX="/__l5e/assets-v1/1458eccc-737c-4850-98b4-936853d9d435/marchers.jpg",FX="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/1458eccc-737c-4850-98b4-936853d9d435/marchers.jpg",UX="marchers.jpg",BX=69173,VX="image/jpeg",HX="2026-09-01T18:41:40Z",WX={version:IX,asset_id:DX,project_id:LX,url:zX,r2_key:FX,original_filename:UX,size:BX,content_type:VX,created_at:HX},qX=1,KX="91800518-80ad-496e-a904-60adfeed958a",ZX="5317579a-a8ee-431d-9a53-6d8cfe773828",GX="/__l5e/assets-v1/91800518-80ad-496e-a904-60adfeed958a/horace-ropes.jpg",JX="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/91800518-80ad-496e-a904-60adfeed958a/horace-ropes.jpg",YX="horace-ropes.jpg",QX=499062,XX="image/jpeg",eee="2026-09-01T18:49:10Z",tee={version:qX,asset_id:KX,project_id:ZX,url:GX,r2_key:JX,original_filename:YX,size:QX,content_type:XX,created_at:eee},nee=1,ree="73441421-dc18-449a-be08-44629c7e63c4",see="5317579a-a8ee-431d-9a53-6d8cfe773828",iee="/__l5e/assets-v1/73441421-dc18-449a-be08-44629c7e63c4/clergy-silent-march-2.jpg",oee="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/73441421-dc18-449a-be08-44629c7e63c4/clergy-silent-march-2.jpg",aee="clergy-silent-march-2.jpg",lee=422092,cee="image/jpeg",uee="2026-09-13T12:55:28Z",dee={version:nee,asset_id:ree,project_id:see,url:iee,r2_key:oee,original_filename:aee,size:lee,content_type:cee,created_at:uee},hee=[{label:"Home",href:"/"},{label:"About Us",href:"/about"},{label:"Our History"}],fee=({className:e=""})=>a.jsx("div",{className:`relative w-full overflow-hidden rounded-2xl border border-border bg-[hsl(var(--teal))] ${e}`,"aria-hidden":"true",children:a.jsx("div",{className:"aspect-[16/9] w-full flex items-center justify-center",children:a.jsx(Mm,{className:"h-16 w-16 text-white/40",strokeWidth:1.25})})}),k4=({slot:e,className:t=""})=>a.jsx("figure",{"data-image-slot":e.slotId,className:t,children:e.kind==="photo"?a.jsx("div",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:e.src,alt:e.alt,loading:"lazy",className:`w-full h-auto object-cover ${e.imgClassName??"aspect-[16/9]"}`})}):a.jsxs(a.Fragment,{children:[a.jsx(fee,{}),a.jsx("figcaption",{className:"mt-2 text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Archival photo coming soon."})]})}),pee=[{year:"1847",title:"Roots of Cooperation",body:"Ecumenical cooperation in Minnesota reaches back to 1847, more than a decade before statehood, when early congregations and 
332Sunday school leaders first began working together across denominational lines.",image:{kind:"photo",slotId:"history-1847",src:tee.url,alt:"The Minnesota Protestant Center, an early home for cooperative Protestant church work in Minneapolis."}},{year:"Late 1800s to 1940s",title:"Statewide Movements Take Shape",body:"Cooperative work grows through statewide bodies including the Minnesota Sunday School Association, the Minnesota Council of Religious Education, and the Minnesota Federation of Churches, laying the groundwork for a single unified council.",image:{kind:"photo",slotId:"history-late-1800s-1940s",src:OX.url,alt:"A large mid-century gathering of Minnesotans in an assembly hall, reflecting the early tradition of statewide cooperative church work."}},{year:"1948",title:"Minnesota Council of Churches is Founded",body:"Minnesota's cooperative church bodies merge to form the Minnesota Council of Churches, a statewide ecumenical agency created to manifest unity in the church and build the common good in the world.",image:{kind:"photo",slotId:"history-1948",src:gX.url,alt:"The Minnesota Church Center, the longtime Minneapolis home of the Minnesota Council of Churches."}},{year:"1950s and 1960s",title:"A Voice for Justice",body:"MCC takes up the causes of the era, supporting migrant farmworkers, engaging in race relations and civil rights work, and establishing a shared home for Minnesota's church agencies in Minneapolis.",image:{kind:"photo",slotId:"history-1950s-60s",src:WX.url,alt:"Marchers carrying signs in a civil rights demonstration, reflecting MCC's justice work of the 1950s and 1960s."}},{year:"1971",title:"A Founding Member of the Joint Religious Legislative Coalition (JRLC)",body:"MCC helps found the JRLC, the first interfaith public interest lobby group in the U.S., bringing a shared moral voice to the Minnesota Legislature.",image:{kind:"photo",slotId:"history-1971",src:JQ.url,alt:"Advocates gathered at the Joint Religious Legislative Coalition's Day on the Hill"}},{year:"1984",title:"Refugee Services Begins",body:"MCC formally launches its refugee resettlement work, welcoming people from around the world into new lives of freedom, hope, and opportunity in Minnesota.",image:{kind:"photo",slotId:"history-1984",src:vQ.url,alt:"A young girl smiling while holding up a yellow knitted headband with red and blue pom-poms."}},{year:"2005",title:"Taking Heart",body:"MCC and the Muslim American Society of Minnesota co-found Taking Heart, an annual program that opens mosque doors each Ramadan for iftar meals that bring Christians, Muslims, and neighbors of all backgrounds to the same table.",image:{kind:"photo",slotId:"history-2005",src:yQ,alt:"Neighbors of many faiths sharing an iftar meal together during Ramadan through the Taking Heart program."}},{year:"2012",title:"Mankato Office Opens",body:"MCC opens a second Refugee Services hub in Mankato, working with cross-sector partners to welcome and support the growing refugee community in southern Minnesota.",image:{kind:"photo",slotId:"history-2012-mankato",src:xQ,alt:"Community members gathered around tables during the Mankato Tapestry Project."}},{year:"2012",title:"Respectful Conversations Launches",body:"Born out of one of the most divisive public debates in state history, Respectful Conversations brings Minnesotans together at small tables to talk across difference. More than 9,000 people have participated in over 400 conversations since.",image:{kind:"photo",slotId:"history-2012-respectful",src:bQ,alt:"Minnesotans gathered around small tables for a Respectful Conversations dialogue across difference."}},{year:"2020",title:"Truth and Reparations",body:"Truth and Reparations was established as an ambitious 10-year initiative approved by the MCC board of directors in September 2020, with the goal of addressing the structures and repairing the harm of racism in Minnesota.",image:{kind:"photo",slotId:"history-2020",src:FQ.url,alt:"Participants gathered as part of the Truth and Reparations project's work to dismantle racism in Minnesota."}},{year:"2024",title:"New Leadership",body:"Elder Suzanne Kelly is installed as CEO of the Minnesota Council of Churches, leading the organization into its next chapter.",image:{kind:"photo",slotId:"history-2024",src:RQ.url,alt:"Elder Suzanne Kelly, CEO of the Minnesota Council of Churches.",imgClassName:"aspect-[4/3] object-[50%_14%]"}},{year:"2025",title:"Meeting a Changing Moment",body:"Federal policy changes sharply reduce refugee arrivals and the funding that supports already established New Americans. MCC recommits to serving these neighbors while reshaping its programs to meet the moment.",image:{kind:"photo",slotId:"history-2025",src:oX.url,alt:"A Gothic stone church standing among the downtown Minneapolis skyline."}},{year:"2026",title:"A New Chapter",body:"MCC launches the Office of Civic Dialogue, announces a new three-year strategic plan, and moves its headquarters to St. Paul.",image:{kind:"photo",slotId:"history-2026",src:S4.url,alt:"Attendees listening during a Changing the Narrative dialogue session, part of MCC's civic dialogue work."}}],mee=({items:e})=>{const[t,n]=b.useState(()=>new Set),r=b.useRef([]);return b.useEffect(()=>{var o;if(typeof window>"u")return;if(((o=window.matchMedia)==null?void 0:o.call(window,"(prefers-reduced-motion: reduce)").matches)||!("IntersectionObserver"in window)){n(new Set(e.map((l,c)=>c)));return}const i=new IntersectionObserver(l=>{n(c=>{const u=new Set(c);return l.forEach(d=>{if(d.isIntersecting){const h=Number(d.target.dataset.idx);Number.isNaN(h)||u.add(h)}}),u})}
332,{rootMargin:"0px 0px -10% 0px",threshold:.12});return r.current.forEach(l=>l&&i.observe(l)),()=>i.disconnect()},[e]),a.jsxs("ol",{className:"relative list-none pl-0 my-4",children:[a.jsx("span",{"aria-hidden":"true",className:"absolute top-0 bottom-0 w-px bg-border left-4 md:left-1/2 md:-translate-x-1/2"}),e.map((s,i)=>{const o=i%2===0,l=t.has(i);return a.jsxs("li",{"data-idx":i,ref:c=>r.current[i]=c,className:"relative md:grid md:grid-cols-2 md:gap-10 pl-12 md:pl-0 pb-12 md:pb-16 last:pb-0",children:[a.jsx("span",{"aria-hidden":"true",className:"absolute top-2 left-4 md:left-1/2 -translate-x-1/2 h-3.5 w-3.5 rounded-full bg-[hsl(var(--gold))] ring-4 ring-card"}),a.jsxs("div",{className:["md:col-span-1 transition-all duration-500 motion-reduce:transition-none",l?"opacity-100 translate-y-0":"opacity-0 translate-y-3 motion-reduce:opacity-100 motion-reduce:translate-y-0",o?"md:col-start-1 md:pr-10 md:text-right":"md:col-start-2 md:pl-10"].join(" "),children:[a.jsxs("p",{className:"text-xs font-semibold tracking-[0.22em] uppercase text-[hsl(var(--gold))] mb-2 flex items-center gap-3 md:justify-start",style:o?{justifyContent:"flex-end"}:void 0,children:[!o&&a.jsx("span",{className:"h-px w-8 bg-[hsl(var(--gold))] hidden md:inline-block"}),s.year,o&&a.jsx("span",{className:"h-px w-8 bg-[hsl(var(--gold))] hidden md:inline-block"})]}),a.jsx("h3",{className:"text-2xl md:text-[1.6rem] font-serif text-[hsl(var(--navy))] leading-tight mb-3",children:s.title}),a.jsx("p",{className:"text-base text-muted-foreground leading-relaxed",children:s.body})]}),a.jsx("div",{className:["mt-5 md:mt-0 md:col-span-1 transition-all duration-500 delay-75 motion-reduce:transition-none",l?"opacity-100 translate-y-0":"opacity-0 translate-y-3 motion-reduce:opacity-100 motion-reduce:translate-y-0",o?"md:col-start-2 md:pl-10":"md:col-start-1 md:row-start-1 md:pr-10"].join(" "),children:a.jsx(k4,{slot:s.image})})]},`${s.year}-${s.title}`)})]})},gee=[{figure:"1948",label:"Year founded"},{figure:"25",label:"Member denominations"},{figure:"1M+",label:"Minnesotans represented"},{figure:"10,000+",label:"Refugees welcomed since 1984"}],vee={kind:"photo",slotId:"history-hero",src:dee.url,alt:"Clergy and community members march together in a silent protest for racial justice, carrying Black Lives Matter and George Floyd remembrance signs."},yee=()=>a.jsx(ae,{title:"Our History",description:"Explore the history of the Minnesota Council of Churches, from 1847 roots and our 1948 founding to refugee services, Respectful Conversations, and today.",eyebrow:"About Us",heading:"Our History",intro:"People across faith communities working together for the good of all Minnesotans.",breadcrumbs:hee,section:"about",path:"/about/history",children:a.jsxs("div",{className:"space-y-16",children:[a.jsx(k4,{slot:vee}),a.jsxs("div",{className:"max-w-2xl mx-auto space-y-6 text-lg text-muted-foreground leading-relaxed",children:[a.jsx("p",{children:"Minnesota has a long tradition of Christian ecumenical cooperation. Decades before the Minnesota Council of Churches existed by name, congregations, Sunday school associations, and church federations were building the habits of cooperation that still define our work today."}),a.jsx("p",{children:"In 1948, several of those statewide cooperative bodies merged to form the Minnesota Council of Churches, a single ecumenical agency dedicated to manifesting unity in the church and building the common good in the world. In the decades since, that calling has taken many forms: ministry with migrant farmworkers, civil rights advocacy, interfaith partnership, refugee resettlement, and the work of bridging divides in a polarized time."}),a.jsx("p",{children:"Today, MCC represents 25 denominations and more than one million Minnesotans. The story below traces how we got here, and where we are going next."})]}),a.jsx("section",{"aria-label":"Timeline of the Minnesota Council of Churches",children:a.jsx(mee,{items:pee})}),a.jsx("section",{"aria-label":"MCC by the numbers",className:"-mx-4 md:-mx-8 rounded-2xl bg-[hsl(var(--navy))] text-white px-6 md:px-10 py-10 md:py-14",children:a.jsx("ul",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 list-none pl-0",children:gee.map(e=>a.jsxs("li",{className:"text-center",children:[a.jsx("p",{className:"text-4xl md:text-5xl font-serif text-[hsl(var(--gold))] leading-none",children:e.figure}),a.jsx("p",{className:"mt-3 text-sm uppercase tracking-[0.18em] text-white/75",children:e.label})]},e.label))})}),a.jsxs("section",{className:"max-w-2xl mx-auto text-center space-y-6",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",children:"The Story Continues"}),a.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"The history of MCC is still being written by the congregations, partners, communities, and neighbors who carry this work forward. Learn more about where we are headed, or become part of the story yourself."}),a.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3 pt-2",children:[a.jsx(ce,{variant:"gold",size:"lg",asChild:!0,children:a.jsx(Y,{to:"/about/mission",children:"Our Mission & Vision"})}),a.jsx(ce,{variant:"outline-navy",size:"lg",asChild:!0,children:a.jsx(Y,{to:"/get-involved",children:"Get Involved"})})]})]})]})}),bee=1,xee="35c20d7b-324c-4b2b-8ca9-63c49e8a5745",wee="5317579a-a8ee-431d-9a53-6d8cfe773828",Cee="/__l5e/assets-v1/35c20d7b-324c-4b2b-8ca9-63c49e8a5745/finance-page-hero.png",_ee="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/35c20d7b-324c-4b2b-8ca9-63c49e8a5745/finance-page-hero.png",jee="finance-page-hero.png",See=365913,kee="image/png",Tee="2026-09-08T20:52:33Z",Eee={version:bee,asset_id:xee,project_id:wee,url:Cee,r2_key:_ee,original_filename:jee,size:See,content_type:kee,created_at:Tee},Nee=[{label:"Home",href:"/"},{label:"About Us",href:"/about"},{label:"Financials & Reports"}],Ree=()=>a.jsx(ae,{title:"Financials & Reports",description:"Annual reports, revenue overview, operating budget, and grant partners for the Minnesota Council of Churches.",eyebrow:"About Us",heading:"Financials & Reports",breadcrumbs:Nee,section:"about",path:"/about/financials",children:a.jsxs("div",{className:"max-w-3xl mx-auto 
332space-y-10 text-muted-foreground leading-relaxed text-lg",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:Eee.url,alt:"Diverse Minnesotans holding hearts with text thanking supporters of MCC's mission",loading:"lazy",width:823,height:690,className:"w-full h-auto object-cover"})})}),a.jsx(E,{children:a.jsx("p",{children:"Transparent stewardship is core to MCC's mission. Annual reports, audited financials, and grant partner acknowledgements are published here each fiscal year."})}),a.jsx(E,{children:a.jsx("p",{className:"text-base",children:"Updated reports for the current fiscal year are being prepared. Contact the office for the most recent audited statements."})})]})});var Dh="Collapsible",[Aee,T4]=Gn(Dh),[Pee,zy]=Aee(Dh),E4=b.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:i,onOpenChange:o,...l}=e,[c,u]=Br({prop:r,defaultProp:s??!1,onChange:o,caller:Dh});return a.jsx(Pee,{scope:n,disabled:i,contentId:ca(),open:c,onOpenToggle:b.useCallback(()=>u(d=>!d),[u]),children:a.jsx(pe.div,{"data-state":Uy(c),"data-disabled":i?"":void 0,...l,ref:t})})});E4.displayName=Dh;var N4="CollapsibleTrigger",R4=b.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,s=zy(N4,n);return a.jsx(pe.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":Uy(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:re(e.onClick,s.onOpenToggle)})});R4.displayName=N4;var Fy="CollapsibleContent",A4=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=zy(Fy,e.__scopeCollapsible);return a.jsx(aa,{present:n||s.open,children:({present:i})=>a.jsx($ee,{...r,ref:t,present:i})})});A4.displayName=Fy;var $ee=b.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:s,...i}=e,o=zy(Fy,n),[l,c]=b.useState(r),u=b.useRef(null),d=Se(t,u),h=b.useRef(0),f=h.current,p=b.useRef(0),y=p.current,m=o.open||l,w=b.useRef(m),v=b.useRef(void 0);return b.useEffect(()=>{const g=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(g)},[]),dt(()=>{const g=u.current;if(g){v.current=v.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();h.current=x.height,p.current=x.width,w.current||(g.style.transitionDuration=v.current.transitionDuration,g.style.animationName=v.current.animationName),c(r)}},[o.open,r]),a.jsx(pe.div,{"data-state":Uy(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!m,...i,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:m&&s})});function Uy(e){return e?"open":"closed"}var Mee=E4,Oee=R4,Iee=A4,Dee=b.createContext(void 0);function Lh(e){const t=b.useContext(Dee);return e||t||"ltr"}var Jn="Accordion",Lee=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[By,zee,Fee]=fh(Jn),[zh,cge]=Gn(Jn,[Fee,T4]),Vy=T4(),P4=$.forwardRef((e,t)=>{const{type:n,...r}=e,s=r,i=r;return a.jsx(By.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?a.jsx(Hee,{...i,ref:t}):a.jsx(Vee,{...s,ref:t})})});P4.displayName=Jn;var[$4,Uee]=zh(Jn),[M4,Bee]=zh(Jn,{collapsible:!1}),Vee=$.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},collapsible:i=!1,...o}=e,[l,c]=Br({prop:n,defaultProp:r??"",onChange:s,caller:Jn});return a.jsx($4,{scope:e.__scopeAccordion,value:$.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:$.useCallback(()=>i&&c(""),[i,c]),children:a.jsx(M4,{scope:e.__scopeAccordion,collapsible:i,children:a.jsx(O4,{...o,ref:t})})})}),Hee=$.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},...i}=e,[o,l]=Br({prop:n,defaultProp:r??[],onChange:s,caller:Jn}),c=$.useCallback(d=>l((h=[])=>[...h,d]),[l]),u=$.useCallback(d=>l((h=[])=>h.filter(f=>f!==d)),[l]);return a.jsx($4,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:a.jsx(M4,{scope:e.__scopeAccordion,collapsible:!0,children:a.jsx(O4,{...i,ref:t})})})}),[Wee,Fh]=zh(Jn),O4=$.forwardRef((e,t)=>
332{const{__scopeAccordion:n,disabled:r,dir:s,orientation:i="vertical",...o}=e,l=$.useRef(null),c=Se(l,t),u=zee(n),h=Lh(s)==="ltr",f=re(e.onKeyDown,p=>{var k;if(!Lee.includes(p.key))return;const y=p.target,m=u().filter(T=>{var R;return!((R=T.ref.current)!=null&&R.disabled)}),w=m.findIndex(T=>T.ref.current===y),v=m.length;if(w===-1)return;p.preventDefault();let g=w;const x=0,C=v-1,_=()=>{g=w+1,g>C&&(g=x)},S=()=>{g=w-1,g<x&&(g=C)};switch(p.key){case"Home":g=x;break;case"End":g=C;break;case"ArrowRight":i==="horizontal"&&(h?_():S());break;case"ArrowDown":i==="vertical"&&_();break;case"ArrowLeft":i==="horizontal"&&(h?S():_());break;case"ArrowUp":i==="vertical"&&S();break}const j=g%v;(k=m[j].ref.current)==null||k.focus()});return a.jsx(Wee,{scope:n,disabled:r,direction:s,orientation:i,children:a.jsx(By.Slot,{scope:n,children:a.jsx(pe.div,{...o,"data-orientation":i,ref:c,onKeyDown:r?void 0:f})})})}),Ld="AccordionItem",[qee,Hy]=zh(Ld),I4=$.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...s}=e,i=Fh(Ld,n),o=Uee(Ld,n),l=Vy(n),c=ca(),u=r&&o.value.includes(r)||!1,d=i.disabled||e.disabled;return a.jsx(qee,{scope:n,open:u,disabled:d,triggerId:c,children:a.jsx(Mee,{"data-orientation":i.orientation,"data-state":B4(u),...l,...s,ref:t,disabled:d,open:u,onOpenChange:h=>{h?o.onItemOpen(r):o.onItemClose(r)}})})});I4.displayName=Ld;var D4="AccordionHeader",L4=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=Fh(Jn,n),i=Hy(D4,n);return a.jsx(pe.h3,{"data-orientation":s.orientation,"data-state":B4(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});L4.displayName=D4;var gg="AccordionTrigger",z4=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=Fh(Jn,n),i=Hy(gg,n),o=Bee(gg,n),l=Vy(n);return a.jsx(By.ItemSlot,{scope:n,children:a.jsx(Oee,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...l,...r,ref:t})})});z4.displayName=gg;var F4="AccordionContent",U4=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=Fh(Jn,n),i=Hy(F4,n),o=Vy(n);return a.jsx(Iee,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});U4.displayName=F4;function B4(e){return e?"open":"closed"}var Kee=P4,Zee=I4,Gee=L4,V4=z4,H4=U4;const Jee=Kee,W4=b.forwardRef(({className:e,...t},n)=>a.jsx(Zee,{ref:n,className:Ce("border-b",e),...t}));W4.displayName="AccordionItem";const q4=b.forwardRef(({className:e,children:t,...n},r)=>a.jsx(Gee,{className:"flex",children:a.jsxs(V4,{ref:r,className:Ce("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,a.jsx($l,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));q4.displayName=V4.displayName;const K4=b.forwardRef(({className:e,children:t,...n},r)=>a.jsx(H4,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:a.jsx("div",{className:Ce("pb-4 pt-0",e),children:t})}));K4.displayName=H4.displayName;const Yee=[{label:"Home",href:"/"},{label:"About Us",href:"/about"},{label:"FAQ"}],zd="underline decoration-1 underline-offset-2 font-medium text-primary hover:text-[hsl(var(--navy))] transition-colors",ze=({to:e,children:t})=>a.jsx(Y,{to:e,className:zd,children:t}),Z4=[{heading:"About MCC",items:[{q:"What is the Minnesota Council of Churches?",a:a.jsxs(a.Fragment,{children:["The Minnesota Council of Churches (MCC) is a statewide ecumenical organization that brings together faith communities to address some of Minnesota's most pressing challenges. Through programs such as Refugee Services, Respectful Conversations, civic engagement initiatives, leadership convenings, and public advocacy, we help build stronger communities rooted in justice, compassion, and belonging. Founded in 1948, MCC convenes, connects, and catalyzes congregations and people of faith to advance justice, promote healing, and strengthen Minnesota's spiritual and civic fabric. Learn more on our ",a.jsx(ze,{to:"/about/mission",children:"Mission & Vision"})," page."]}),plain:"The Minnesota Council of Churches (MCC) is a statewide ecumenical organization that brings together faith communities to address some of Minnesota's most pressing challenges. Through programs such as Refugee Services, Respectful Conversations, civic engagement initiatives, leadership convenings, and public advocacy, we help build stronger communities rooted in justice, compassion, and belonging. Founded in 1948, MCC convenes, connects, and catalyzes congregations and people of faith to advance justice, promote healing, and strengthen Minnesota's spiritual and civic fabric. Learn more on our Mission & Vision page."},{q:"Is MCC a church?",a:a.jsxs(a.Fragment,{children:["No. MCC is an ecumenical agency that represents and works across many Christian denominations. See the ",a.jsx(ze,{to:"/about/members",children:"Our Members"})," page for the full list of member denominations."]}),plain:"No. MCC is an ecumenical agency that represents and works across many Christian denominations. See the Our Members page for the full list of member denominations."},{q:"Who are MCC's members?",a:a.jsxs(a.Fragment,{children:["MCC represents 25 Christian denominations across Minnesota, together accounting for more than one million Christians statewide. We also partner closely with Muslim, Jewish, and other faith communities throughout the state. View the full list on our"," ",a.jsx(ze,{to:"/about/members",children:"Our Members"})," page."]}),plain:"MCC represents 25 Christian denominations across Minnesota, together accounting for more than one million Christians statewide. We also partner closely with Muslim, Jewish, and other faith communities throughout the state. View the full list on our Our Members page."},{q:"Do I need to be Christian or a church member to work with MCC or receive services?",a:a.jsxs(a.Fragment,{children:["No. While MCC is grounded in Christian ecumenical partnership, we warmly welcome staff, volunteers, and partners from all traditions and backgrounds, and our refugee, immigrant, and civic dialogue services are open to everyone who is eligible, regardless of faith. Learn more about our values on our ",a.jsx(ze,{to:"/about/mission",children:"Mission & Vision"})," page."]}),plain:"No. While MCC is grounded in Christian ecumenical partnership, we warmly welcome staff, volunteers, and partners from all traditions and backgrounds, and our refugee, immigrant, and civic dialogue services are open to everyone who is eligible, regardless of faith. Learn more about our values on our Mission & Vision page."}]},{heading:"Programs and Services",items:[{q:"What programs and services does MCC offer?",a:a.jsxs(a.Fragment,{children:["MCC's work centers on three main areas: Office of Civic Dialogue (including our Respectful Conversations depolarization program and Taking Heart Ramadan Iftars), Refugee and Immigrant Services (employment, case management, education, and immigration legal help in the Twin Cities and Mankato), and Congregational Member Services for our member churches. Explore everything on our ",a.jsx(ze,{to:"/programs",children:"Programs"})," page."]}),plain:"MCC's work centers on three main areas: Office of Civic Dialogue (including our Respectful Conversations depolarization program and Taking Heart Ramadan Iftars), Refugee and Immigrant Services (employment, case management, education, and immigration legal help in the Twin Cities and Mankato), and Congregational Member Services for our member churches. Explore everything on our Programs page."},{q:"What is the MCC Respectful Conversations program?",a:a.jsxs(a.Fragment,{children:["MCC Respectful Conversations is MCC's award-winning depolarization program. We work with faith communities, schools, nonprofits, membership groups, and municipalities to host structured, facilitated small-group conversations that build empathy and help communities navigate difficult topics. Hundreds of groups and thousands of participants have taken part, with nearly three-quarters reporting greater empathy for differing viewpoints and more than 95% saying the process helped them feel heard. Read more on our"," ",a.jsx(ze,{to:"/programs/civic-dialogue/respectful-conversations",children:"Respectful Conversations"})," ","page."]}),plain:"MCC Respectful Conversations is MCC's award-winning depolarization program. We work with faith communities, schools, nonprofits, membership groups, and municipalities to host structured, facilitated small-group conversations that build empathy and help communities navigate difficult topics. Hundreds of groups and thousands of participants have taken part, with nearly three-quarters reporting greater empathy for differing viewpoints and more than 95% saying the process helped them feel heard. Read more on our Respectful Conversations page."},{q:"How do I host a Respectful Conversation?",a:a.jsxs(a.Fragment,{children:["MCC partners with your group over about six weeks to shape the topic and questions, then trains volunteer table facilitators before the event. To get started, reach out to Director of Civic Dialogue Jerad Morey at 612-230-3211 or [email protected], or see the details on our"," ",a.jsx(ze,{to:"/programs/civic-dialogue/respectful-conversations",children:"Respectful Conversations"})," ","page."]}),plain:"MCC partners with your group over about six weeks to shape the topic and questions, then trains volunteer table facilitators before the event. To get started, reach out to Director of Civic Dialogue Jerad Morey at 612-230-3211 or [email protected], or see the details on our Respectful Conversations page."},{q:"What is the Taking Heart program?",a:a.jsxs(a.Fragment,{children:["Taking Heart is a long-running program coordinated by MCC and the Muslim American Society of Minnesota (MAS-MN) that brings Christians and people of other faiths together with Muslim neighbors for shared meals and conversation during Ramadan. Learn how to participate on our"," ",a.jsx(ze,{to:"/programs/justice-advocacy/taking-heart",children:"Taking Heart Ramadan Iftars"})," page."]}),plain:"Taking Heart is a long-running program coordinated by MCC and the Muslim American Society of Minnesota (MAS-MN) that brings Christians and people of other faiths together with Muslim neighbors for shared meals and conversation during Ramadan. Learn how to participate on our Taking Heart Ramadan Iftars page."},{q:"What services are available to MCC's member congregations?",a:a.jsxs(a.Fragment,{children:["Member congregations can access a range of resources and support through MCC. Visit our"," ",a.jsx(ze,{to:"/programs/congregational-services",children:"Congregational Member Services"})," page to see what's available and how to get started."]}),plain:"Member congregations can access a range of resources and support through MCC. Visit our Congregational Member Services page to see what's available and how to get started."}]},{heading:"Refugee and Immigrant Services",items:[{q:"What refugee and immigrant services does MCC provide?",a:a.jsxs(a.Fragment,{children:["Since 1984, MCC has welcomed more than 10,000 refugees to Minnesota. We provide holistic, family-centered services including employment support, case management, education and orientation, community engagement, and immigration legal assistance for eligible refugees, asylees, SIV holders, Cuban and Haitian entrants, victims of trafficking, and others. See the full picture on our"," ",a.jsx(ze,{to:"/programs/refugee-services",children:"Refugee & Immigrant Services"})," page."]}),plain:"Since 1984, MCC has welcomed more than 10,000 refugees to Minnesota. We provide holistic, family-centered services including employment support, case management, education and orientation, community engagement, and immigration legal assistance for eligible refugees, asylees, SIV holders, Cuban and Haitian entrants, victims of trafficking, and others. See the full picture on our Refugee & Immigrant Services page."},{q:"Where are MCC's refugee services offices located?",a:a.jsxs(a.Fragment,{children:["MCC has two Refugee Services offices: one is in the Twin Cities (1600 University Ave. W., Ste. 500, St. Paul, MN 55104); the other is in Mankato (501 S. Second St., Mankato, MN 56001). For hours and additional information, see our"," ",a.jsx(ze,{to:"/contact",children:"Contact Us"})," page."]}),plain:"MCC has two Refugee Services offices: one is in the Twin Cities (1600 University Ave. W., Ste. 500, St. Paul, MN 55104); the other is in Mankato (501 S. Second St., Mankato, MN 56001). For hours and additional information, see our Contact Us page."},{q:"Does MCC offer immigration legal services?",a:a.jsxs(a.Fragment,{children:["Yes. MCC 
332is an accredited, U.S. Department of Justice-recognized agency providing immigration legal help, including adjustment of status, citizenship applications, work permits, and family reunification options for eligible clients. For assistance, call 612-874-8605, or learn more on our"," ",a.jsx(ze,{to:"/programs/refugee-services/legal",children:"Immigration Legal Services"})," page."]}),plain:"Yes. MCC is an accredited, U.S. Department of Justice-recognized agency providing immigration legal help, including adjustment of status, citizenship applications, work permits, and family reunification options for eligible clients. For assistance, call 612-874-8605, or learn more on our Immigration Legal Services page."},{q:"I'm a refugee or immigrant. How do I get help?",a:a.jsxs(a.Fragment,{children:["The best first step is to contact our immigration team at 612-874-8605 or visit our"," ",a.jsx(ze,{to:"/programs/refugee-services/twin-cities",children:"Twin Cities Programming"})," or"," ",a.jsx(ze,{to:"/programs/refugee-services/mankato",children:"Mankato Programming"})," page for current walk-in hours and services."]}),plain:"The best first step is to contact our immigration team at 612-874-8605 or visit our Twin Cities Programming or Mankato Programming page for current walk-in hours and services."}]},{heading:"Get Involved and Give",items:[{q:"How can I donate to MCC?",a:a.jsxs(a.Fragment,{children:["You can give securely online through our donation page. Your gift helps sustain MCC's refugee and immigrant services and civic dialogue work, which is especially important now that federal funding has been sharply reduced. Visit our"," ",a.jsx("a",{href:"https://minnesota-council-of-churches.givecloud.co/fundraising/forms/8NDR96EK",className:zd,children:"Donate"})," page to contribute."]}),plain:"You can give securely online through our donation page. Your gift helps sustain MCC's refugee and immigrant services and civic dialogue work, which is especially important now that federal funding has been sharply reduced. Visit our Donate page to contribute."},{q:"How can I help refugees beyond donating?",a:a.jsxs(a.Fragment,{children:["Beyond financial gifts, one of the most powerful things you can do is advocate by sharing refugees' stories with friends, family, and elected officials. Our"," ",a.jsx(ze,{to:"/programs/refugee-services/how-to-help",children:"How to Help Refugees"})," page and the resources on our ",a.jsx(ze,{to:"/get-involved/resources",children:"Resources"})," page (including partner organizations such as Arrive Ministries) point you to current ways to take action."]}),plain:"Beyond financial gifts, one of the most powerful things you can do is advocate by sharing refugees' stories with friends, family, and elected officials. Our How to Help Refugees page and the resources on our Resources page (including partner organizations such as Arrive Ministries) point you to current ways to take action."},{q:"Can I donate clothing, furniture, or other items?",a:a.jsxs(a.Fragment,{children:["MCC's capacity to accept in-kind donations fluctuates, so please check our"," ",a.jsx(ze,{to:"/get-involved/give-items",children:"Give Items"})," page for the latest on what we can accept and where. If we aren't accepting items at the moment, that page will point you to other organizations doing this work."]}),plain:"MCC's capacity to accept in-kind donations fluctuates, so please check our Give Items page for the latest on what we can accept and where. If we aren't accepting items at the moment, that page will point you to other organizations doing this work."},{q:"What resources does MCC offer congregations and supporters?",a:a.jsxs(a.Fragment,{children:['MCC provides downloadable and purchasable resources, including Blessed Ramadan lawn signs, the MCC-published book "This Much I Can Tell You" (stories from new Minnesotans), and information from partner organizations. Browse them on our'," ",a.jsx(ze,{to:"/get-involved/resources",children:"Resources"})," page."]}),plain:'MCC provides downloadable and purchasable resources, including Blessed Ramadan lawn signs, the MCC-published book "This Much I Can Tell You" (stories from new Minnesotans), and information from partner organizations. Browse them on our Resources page.'}]},{heading:"Membership",items:[{q:"How can my congregation or denomination become a member of MCC?",a:a.jsxs(a.Fragment,{children:["We would love to explore membership with you. Visit our"," ",a.jsx(ze,{to:"/get-involved/membership",children:"Become a Member"})," page for eligibility, the process, and who to contact."]}),plain:"We would love to explore membership with you. Visit our Become a Member page for eligibility, the process, and who to contact."}]},{heading:"News, Events, and Contact",items:[{q:"How do I sign up for MCC's newsletter?",a:a.jsxs(a.Fragment,{children:['MCC sends "News for the Common Good" twice a month, with updates from MCC and partner organizations, thought pieces, engagement opportunities, and more. Sign up on our'," ",a.jsx(ze,{to:"/news/newsletter",children:"Newsletter Sign-up & Archive"})," page."]}),plain:'MCC sends "News for the Common Good" twice a month, with updates from MCC and partner organizations, thought pieces, engagement opportunities, and more. Sign up on our Newsletter Sign-up & Archive page.'},{q:"Where can I find upcoming MCC events?",a:a.jsxs(a.Fragment,{children:["Check our ",a.jsx(ze,{to:"/news/events",children:"Events Calendar"})," for upcoming programs, trainings, and community gatherings."]}),plain:"Check our Events Calendar for upcoming programs, trainings, and community gatherings."},{q:"Can MCC speak at my church, school, or organization?",a:a.jsxs(a.Fragment,{children:["We would love to learn more about how we can engage with your community! Please email Cearah Hamilton, Assistant Director of Communications and Engagement, at"," ",a.jsx("a",{href:"mailto:[email protected]",className:zd,children:"[email protected]"})," ","with your name, phone number, and brief description of the opportunity you have in mind."]}),plain:"We would love to learn more about how we can engage with your community! Please email Cearah Hamilton, Assistant Director of Communications and Engagement, at [email protected] with your name, phone number, and brief description of the opportunity you have in mind."},{q:"Does MCC have job openings?",a:a.jsxs(a.Fragment,{children:["Information about working at MCC can be found on our"," ",a.jsx(ze,{to:"/careers",children:"Careers"})," page."]}),plain:"Information about working at MCC can be found on our Careers page."},{q:"How do I contact MCC?",a:a.jsxs(a.Fragment,{children:["You can reach our main office by email at"," ",a.jsx("a",{href:"mailto:[email protected]",className:"text-[hsl(var(--gold))] hover:underline",children:"[email protected]"}),", or find office addresses phone numbers, and social media links on our ",a.jsx(ze,{to:"/contact",children:"Contact Us"})," page."]}),plain:"You can reach our main office by email at [email protected], or find office addresses, phone numbers, and social media links on our Contact Us page."}]}],Qee={"@context":"https://schema.org","@type":"FAQPage",url:"https://mnchurches.com/faq",mainEntity:Z4.flatMap(e=>e.items.map(t=>
332({"@type":"Question",name:t.q,acceptedAnswer:{"@type":"Answer",text:t.plain}})))},Xee=()=>a.jsxs(ae,{title:"Frequently Asked Questions",description:"Answers to common questions about the Minnesota Council of Churches, our programs and services, refugee and immigrant support, Respectful Conversations, donating, membership, and how to get involved.",eyebrow:"About Us",heading:"Frequently Asked Questions",breadcrumbs:Yee,section:"about",path:"/faq",children:[a.jsx(sa,{children:a.jsx("script",{type:"application/ld+json",children:JSON.stringify(Qee)})}),a.jsxs("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed mb-12",children:["Quick answers about the Minnesota Council of Churches, our programs and services, and how to get involved. Don't see your question?"," ",a.jsx(Y,{to:"/contact",className:zd,children:"Reach out anytime through our Contact page"}),"."]}),a.jsx("div",{className:"space-y-14",children:Z4.map((e,t)=>a.jsxs("section",{"aria-labelledby":`faq-cat-${t}`,children:[a.jsx("h2",{id:`faq-cat-${t}`,className:"font-serif text-2xl md:text-3xl text-[hsl(var(--navy))] mb-2",children:e.heading}),a.jsx("div",{className:"h-0.5 w-12 bg-[hsl(var(--gold))] mb-6"}),a.jsx(Jee,{type:"multiple",className:"border-t border-border",children:e.items.map((n,r)=>a.jsxs(W4,{value:`faq-${t}-${r}`,className:"border-b border-border",children:[a.jsx(q4,{className:"text-left font-serif text-lg md:text-xl text-foreground hover:no-underline py-5",children:n.q}),a.jsx(K4,{className:"text-base text-muted-foreground leading-relaxed pb-5",children:n.a})]},r))})]},e.heading))})]}),ete="/assets/programs-hub-Dn2fryYo.jpg",tte=[{icon:yh,title:"Office of Civic Dialogue",desc:"Advancing courageous, compassionate civic engagement that builds just and thriving communities across Minnesota.",href:"/programs/civic-dialogue"},{icon:Bs,title:"Congregational Member Services",desc:"Services and support for MCC's member congregations.",href:"/programs/congregational-services"},{icon:Cj,title:"Refugee & Immigrant Services",desc:"Since 1984, welcoming more than 10,000 refugees from around the world to lives of freedom, hope and opportunity in Minnesota.",href:"/programs/refugee-services"},{icon:Dv,title:"Justice & Advocacy",desc:"Interfaith justice programming including the long-running Taking Heart Ramadan Iftars.",href:"/programs/justice-advocacy"}],nte=()=>a.jsxs(ae,{title:"Programs",description:"MCC's program areas: Office of Civic Dialogue, Congregational Member Services, Refugee & Immigrant Services, and Justice & Advocacy.",eyebrow:"Our Work",heading:"Programs & Initiatives",intro:"From refugee resettlement to civic dialogue, our programs address Minnesota's most pressing needs.",breadcrumbs:[{label:"Home",href:"/"},{label:"Programs"}],path:"/programs",children:[a.jsx("figure",{className:"max-w-5xl mx-auto mb-12 overflow-hidden rounded-2xl shadow-sm border border-border",children:a.jsx("img",{src:ete,alt:"A diverse Minnesota community gathered in conversation in a sunlit hall",loading:"lazy",width:1536,height:864,className:"w-full h-auto object-cover aspect-[16/7]"})}),a.jsx("div",{className:"grid md:grid-cols-2 gap-6 max-w-5xl mx-auto",children:tte.map(e=>a.jsxs(Y,{to:e.href,className:"group block bg-card rounded-2xl border border-border p-8 hover:shadow-lg hover:-translate-y-1 transition-all",children:[a.jsx(e.icon,{className:"h-10 w-10 text-primary mb-4",strokeWidth:1.5}),a.jsx("h3",{className:"font-serif text-2xl mb-3",children:e.title}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:e.desc}),a.jsxs("span",{className:"inline-flex items-center text-sm font-medium text-primary gap-1 group-hover:gap-2 transition-all",children:["Learn More ",a.jsx(nt,{className:"h-4 w-4"})]})]},e.href))})]}),rte=1,ste="f944e004-6e1a-45f5-9fa2-a825d2ae5f07",ite="5317579a-a8ee-431d-9a53-6d8cfe773828",ote="/__l5e/assets-v1/f944e004-6e1a-45f5-9fa2-a825d2ae5f07/new-chapter.jpg",ate="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/f944e004-6e1a-45f5-9fa2-a825d2ae5f07/new-chapter.jpg",lte="new-chapter.jpg",cte=408187,ute="image/jpeg",dte="2026-08-31T20:53:55Z",hte={ver
332sion:rte,asset_id:ste,project_id:ite,url:ote,r2_key:ate,original_filename:lte,size:cte,content_type:ute,created_at:dte},fte=1,pte="a3234a13-e118-4278-895b-4de4df07a75a",mte="5317579a-a8ee-431d-9a53-6d8cfe773828",gte="/__l5e/assets-v1/a3234a13-e118-4278-895b-4de4df07a75a/respectful-conversations-4.jpg",vte="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/a3234a13-e118-4278-895b-4de4df07a75a/respectful-conversations-4.jpg",yte="respectful-conversations-4.jpg",bte=614465,xte="image/jpeg",wte="2026-08-31T20:59:27Z",Cte={version:fte,asset_id:pte,project_id:mte,url:gte,r2_key:vte,original_filename:yte,size:bte,content_type:xte,created_at:wte},_te=1,jte="a8098ad2-ca33-4ef6-8b09-42bba50734ba",Ste="5317579a-a8ee-431d-9a53-6d8cfe773828",kte="/__l5e/assets-v1/a8098ad2-ca33-4ef6-8b09-42bba50734ba/rc-testimonials-2.jpg",Tte="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/a8098ad2-ca33-4ef6-8b09-42bba50734ba/rc-testimonials-2.jpg",Ete="rc-testimonials-2.jpg",Nte=81993,Rte="image/jpeg",Ate="2026-08-31T21:04:40Z",Pte={version:_te,asset_id:jte,project_id:Ste,url:kte,r2_key:Tte,original_filename:Ete,size:Nte,content_type:Rte,created_at:Ate},$te=1,Mte="ffaaca8e-17dd-4dbd-8644-2f5b51e1d681",Ote="5317579a-a8ee-431d-9a53-6d8cfe773828",Ite="/__l5e/assets-v1/ffaaca8e-17dd-4dbd-8644-2f5b51e1d681/additional-programming-2.jpg",Dte="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/ffaaca8e-17dd-4dbd-8644-2f5b51e1d681/additional-programming-2.jpg",Lte="additional-programming-2.jpg",zte=676534,Fte="image/jpeg",Ute="2026-08-31T21:06:13Z",Bte={version:$te,asset_id:Mte,project_id:Ote,url:Ite,r2_key:Dte,original_filename:Lte,size:zte,content_type:Fte,created_at:Ute},Vte=Cte.url,Hte=Pte.url,Wte=Bte.url,qte=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Office of Civic Dialogue"}],Kte=()=>a.jsx(ae,{title:"Office of Civic Dialogue",description:"MCC advances courageous, compassionate civic engagement that builds just and thriving communities across Minnesota.",eyebrow:"Programs",heading:"Office of Civic Dialogue",breadcrumbs:qte,section:"programs",path:"/programs/civic-dialogue",children:a.jsxs("div",{className:"space-y-16",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:hte.url,alt:"Two people leaning in to listen to each other over coffee, embodying compassionate civic dialogue",loading:"lazy",width:1920,height:1276,className:"w-full h-auto object-cover aspect-[16/7]"})})}),a.jsx(E,{stagger:!0,children:a.jsxs("div",{className:"max-w-3xl space-y-6 text-muted-foreground leading-relaxed",children:[a.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-[hsl(var(--navy))]",children:"Building Connections Across Differences"}),a.jsx("p",{children:"The Minnesota Council of Churches brings people and organizations together to strengthen relationships, navigate differences, and build communities where everyone can belong."}),a.jsx("p",{children:"We work in two connected ways:"}),a.jsxs("p",{children:[a.jsx("strong",{className:"text-[hsl(var(--navy))]",children:"We strengthen Minnesota’s bridge-building network."}),a.jsx("br",{}),"MCC convenes organizations, practitioners, faith communities, and other partners working to bridge divides across Minnesota. Together, we build relationships, share learning and promising practices, and strengthen connections among those working to create more connected and resilient communities."]}),a.jsxs("p",{children:[a.jsx("strong",{className:"text-[hsl(var(--navy))]",children:"We equip people to engage across differences."}),a.jsx("br",{}),"Through MCC Respectful Conversations™  and other opportunities for dialogue and learning, MCC helps people develop the skills to listen deeply, navigate conflict, build trust, engage across differences, and foster belonging in their communities."]}),a.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-[hsl(var(--navy))] pt-2",children:"Who Should Participate?"}),a.jsx("p",{children:"This work is for you if you are:"}),a.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[a.jsx("li",{children:"A congregation or faith community seeking to navigate difficult conversations or strengthen relationships"}),a.jsx("li",{children:"A community organization or leader working to build trust and belonging"}),a.jsx("li",{children:"A bridge-building practitioner or organization interested in connecting with others across Minnesota"}),a.jsx("li",{children:"A campus, institution, or public partner seeking tools or partnerships for engaging across differences"}),a.jsx("li",{children:"An individual who wants to strengthen your ability to listen, engage, and build relationships with people whose experiences or perspectives differ from your own"})]}),a.jsx("p",{children:"Whether you are looking for tools to strengthen your own community or seeking to connect with others doing bridge-building work across Minnesota, there is a place for you in this work."})]})}),a.jsx(E,{children:a.jsx(ws,{eyebrow:"PROGRAMS",heading:"Respectful Conversations",body:"Structured, facilitated conversations designed to foster dialogue on divisive topics by focu
332sing not on changing minds, but softening hearts.",image:{src:Vte,alt:"Group of diverse people in a facilitated Respectful Conversation gathered around round tables"},cta:{label:"Learn more",href:"/programs/civic-dialogue/respectful-conversations"}})}),a.jsx(E,{children:a.jsx(ws,{reverse:!0,eyebrow:"In their own words",heading:"Respectful Conversations Testimonials",body:"Participants and host organizations share what changed for them through MCC Respectful Conversations.",image:{src:Hte,alt:"Participants seated in small groups during a Respectful Conversation"},cta:{label:"Read testimonials",href:"/programs/civic-dialogue/respectful-conversations/testimonials"}})}),a.jsx(E,{children:a.jsx(ws,{eyebrow:"More offerings",heading:"Additional Programming",body:"Learn more about all the ways MCC supports and encourages Minnesotans to connect, convene, and catalyze people to build just, equitable, and livable communities across our state.",image:{src:Wte,alt:"People gathered in conversation at a community event"},cta:{label:"Learn more",href:"/programs/civic-dialogue/additional-programming"}})}),a.jsx(E,{children:a.jsx(C4,{eyebrow:"Join the dialogue",heading:"Bring Respectful Conversations to your community",primary:{label:"Host a Conversation",href:"/programs/civic-dialogue/respectful-conversations"}})})]})}),Zte=1,Gte="41c758d0-1330-41c5-9704-474b15034e31",Jte="5317579a-a8ee-431d-9a53-6d8cfe773828",Yte="/__l5e/assets-v1/41c758d0-1330-41c5-9704-474b15034e31/respectful-conversations-training.jpg",Qte="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/41c758d0-1330-41c5-9704-474b15034e31/respectful-conversations-training.jpg",Xte="respectful-conversations-training.jpg",ene=127201,tne="image/jpeg",nne="2026-09-02T15:38:57Z",rne={version:Zte,asset_id:Gte,project_id:Jte,url:Yte,r2_key:Qte,original_filename:Xte,size:ene,content_type:tne,created_at:nne},sne=rne.url,ine=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Office of Civic Dialogue",href:"/programs/civic-dialogue"},{label:"Respectful Conversations"}],one=[{figure:"84%",label:"REPORT MORE EMPATHY FOR THOSE WITH WHOM THEY DISAGREE"},{figure:"97%",label:"BELIEVE THIS WILL HELP THEM HAVE BETTER CONVERSATIONS IN THE FUTURE"},{figure:"82%",label:"REPORT BETTER RELATIONSHIPS AS A RESULT OF THE CONVERSATION"},{figure:"94%",label:"REPORT FEELING MORE CONFIDENT THAT DIFFICULT TOPICS CAN BE DISCUSSED RESPECTFULLY"}],ane=["Respectful Conversations begin with a meal around small tables, casual interaction, agreement to ground rules, and a mix of structured and unstructured interaction in small groups supported by lead facilitators and table facilitators.","The following three-hour conversation is led by a lead facilitator and one table facilitator for every 6-7 participants. Conversations are highly structured.","Training over a period of six weeks prior to the conversation is provided to prepare hosts and facilitators, refine the topic, design questions, and create an atmosphere that facilitates empathy-building.","During a time of open sharing, evaluations are handed out and, some months afterward, another evaluation is sent to participants."],lne=()=>a.jsx(ae,{title:"Respectful Conversations",description:"Structured, facilitated conversations designed to foster dialogue on divisive topics by focusing not on changing minds, but softening hearts.",eyebrow:"Programs › Office of Civic Dialogue",heading:"Respectful Conversations",breadcrumbs:ine,section:"programs",path:"/programs/civic-dialogue/respectful-conversations",children:a.jsxs("div",{className:"space-y-16",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:sne,alt:"Facilitators and participants at a Respectful Conversations training session",loading:"lazy",width:1920,height:1280,className:"w-full h-auto object-cover aspect-[16/7]"})})}),a.jsx(E,{stagger:!0,children:a.jsxs("div",{className:"max-w-3xl space-y-6 text-muted-foreground leading-relaxed",children:[a.jsx("p",{children:"Respectful Conversations are structured, facilitated conversations designed to foster dialogue on divisive topics by focu
332sing not on changing minds, but softening hearts. Past topics have included guns, race, politics, same-sex marriage, and community policing."}),a.jsx("p",{children:"Congregations, educational institutions, schools, and community groups throughout Minnesota have chosen to be sources of living water, cooling the heat of intense disagreements in their communities through Respectful Conversations."})]})}),a.jsx(E,{stagger:!0,children:a.jsx("ol",{className:"grid gap-4 md:grid-cols-2 list-none pl-0 m-0 max-w-4xl","aria-label":"Process steps",children:ane.map((e,t)=>a.jsxs("li",{className:"rounded-2xl border border-border bg-card p-6 md:p-7 shadow-sm flex gap-4",children:[a.jsx("span",{"aria-hidden":"true",className:"shrink-0 h-10 w-10 rounded-full bg-[hsl(var(--gold))] text-white font-serif text-lg flex items-center justify-center",children:t+1}),a.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed",children:[a.jsxs("span",{className:"sr-only",children:["Step ",t+1,". "]}),e]})]},t))})}),a.jsx(E,{children:a.jsx("p",{className:"max-w-3xl text-lg text-muted-foreground leading-relaxed",children:"Since 2012, more than 9,000 people have participated in 400+ Respectful Conversation events across the state."})}),a.jsx(E,{children:a.jsx("section",{"aria-label":"Respectful Conversations by the numbers",className:"-mx-4 md:-mx-8 rounded-2xl bg-[hsl(var(--navy))] text-white px-6 md:px-10 py-10 md:py-14",children:a.jsx("ul",{className:"grid grid-cols-1 lg:grid-cols-4 gap-8 list-none pl-0",children:one.map(e=>a.jsxs("li",{className:"text-center",children:[a.jsx("p",{className:"text-4xl md:text-5xl font-serif text-[hsl(var(--gold))] leading-none",children:e.figure}),a.jsx("p",{className:"mt-3 text-sm uppercase tracking-[0.18em] text-white/75",children:e.label})]},e.label))})})}),a.jsx(E,{children:a.jsx("div",{className:"max-w-3xl space-y-6 text-muted-foreground leading-relaxed",children:a.jsxs("p",{children:["If you're interested in learning more about holding a Respectful Conversation, please contact Director of Civic Dialogue Jerad Morey at"," ",a.jsx("a",{href:"tel:6122303211",className:"text-primary font-medium hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",children:"612-230-3211"})," ","or at"," ",a.jsx("a",{href:"mailto:[email protected]",className:"text-primary font-medium hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",children:"[email protected]"}),"."]})})}),a.jsxs(E,{children:[a.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[a.jsx(ce,{variant:"gold",size:"lg",asChild:!0,children:a.jsx("a",{href:"https://mnchurch.formstack.com/forms/respectful_conversations_events",target:"_blank",rel:"noopener noreferrer",children:"Respectful Conversations Registration Form"})}),a.jsx(ce,{variant:"gold",size:"lg",asChild:!0,children:a.jsx(Y,{to:"/programs/civic-dialogue/respectful-conversations/hosting",children:"Host a Respectful Conversation"})})]}),a.jsx("div",{className:"mt-4",children:a.jsxs(Y,{to:"/programs/civic-dialogue/respectful-conversations/testimonials",className:"inline-flex items-center gap-2 text-primary font-medium hover:gap-3 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",children:["Read Testimonials ",a.jsx(nt,{className:"h-4 w-4"})]})})]})]})}),cne=1,une="ad085af5-0e2c-48ba-a8d6-ee9e088a716c",dne="5317579a-a8ee-431d-9a53-6d8cfe773828",hne="/__l5e/assets-v1/ad085af5-0e2c-48ba-a8d6-ee9e088a716c/cctraining-063.jpg",fne="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/ad085af5-0e2c-48ba-a8d6-ee9e088a716c/cctraining-063.jpg",pne="cctraining-063.jpg",mne=119983,gne="image/jpeg",vne="2026-09-02T16:54:21Z",yne={version:cne,asset_id:une,project_id:dne,url:hne,r2_key:fne,original_filename:pne,size:mne,content_type:gne,created_at:vne},bne=1,xne="d7229675-38ba-4acb-ac6d-d3b57a9991bd",wne="5317579a-a8ee-431d-9a53-6d8cfe773828",Cne="/__l5e/assets-v1/d7229675-38ba-4acb-ac6d-d3b57a9991bd/cctraining-013.jpg",_ne="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/d7229675-38ba-4acb-ac6d-d3b57a9991bd/cctraining-013.jpg",jne="cctraining-013.jpg",Sne=115006,kne="image/jpeg",Tne="2026-09-02T16:57:30Z",Ene={version:bne,asset_id:xne,project_id:wne,url:Cne,r2_key:_ne,original_filename:jne,size:Sne,content_type:kne,created_at:Tne},Nne=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Office of Civic Dialogue",href:"/programs/civic-dialogue"},{label:"Respectful Conversations",href:"/programs/civic-dialogue/respectful-conversations"},{label:"Hosting a Respectful Conversation"}],Rne=[{title:"What are the benefits?",intro:"Respectful Conversation host organizations have reported multiple benef
332its from the experience. These include:",items:["A sense of achievement and increased morale","Establishing a brand of community engagement and peace building","Energized membership ready to move forward","A sense of calm in the community when addressing the conflict","More confidence to constructively manage future conflict","Relationships with new people"]},{title:"What does hosting a Respectful Conversation entail?",body:`Over a period of six weeks, the host organization and Office of Civic Dialogue Director Jerad Morey refine the topic and questions that best facilitate empathy-building around it. 
333
334
335One week before the conversation volunteers from the host site are trained to be table facilitators (see below). Then the conversation itself is held, beginning with a meal around small tables, casual interaction, agreement to ground rules, and a mix of structured and unstructured interaction in small groups, supported by lead and table facilitators. 
336
337
338During a time of open sharing, evaluations are handed out and, some months afterward, another evaluation is sent to participants. We'll help you select a topic that fits your context and set a date that gives you enough runway to invite widely.`},{title:"What is expected of the host?",intro:"Every conversation is a partnership between Minnesota Council of Churches, a host organization, and a lead facilitator. The host provides:",items:["Space for the conversation","Volunteers to train as table facilitators","Heavy refreshments during the table facilitator training","A meal during the Conversation event itself","Audio/Video equipment to support the training and conversation","Engagement with MCC staff or a lead facilitator as the topic is refined","A fee based on the anticipated number of participants"]},{title:"What is expected of Minnesota Council of Churches?",items:["Experienced guidance on crafting the topic and questions","A well-trained lead facilitator","Materials, curriculum and staffing for the table facilitator training","A training for volunteers in an evidence-based proven empathy building structure","Event registration","Event publicity in the form of press releases and invitations to congregations if desired","A facilitated conversation structure informed by thorough evaluation","Staffing for the conversation to hold the space and support table facilitators","Evaluation data and a summary report on the conversation for use as the host sees fit"]}],Ane=()=>a.jsx(ae,{title:"Hosting a Respectful Conversation",description:"Learn what it takes to host a Respectful Conversation with the Minnesota Council of Churches Office of Civic Dialogue.",eyebrow:"Programs › Office of Civic Dialogue › Respectful Conversations",heading:"Hosting a Respectful Conversation",intro:"Congregations, schools, nonprofits, and civic groups across Minnesota are invited to host a Respectful Conversation in their community.",breadcrumbs:Nne,section:"programs",path:"/programs/civic-dialogue/respectful-conversations/hosting",children:a.jsxs("div",{className:"max-w-3xl mx-auto space-y-12",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:Ene.url,alt:"Participants talking together around small tables at a Respectful Conversations event",width:1920,height:1280,className:"w-full h-auto object-cover object-[50%_25%] aspect-[16/7]",loading:"lazy"})})}),a.jsx(E,{children:a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Respectful Conversations are structured, facilitated gatherings that helps people speak honestly and listen well across differences. As a host, you provide the community, the space, and a meal—we provide the design and trained facilitators."})}),a.jsxs(E,{children:[a.jsx("h2",{className:"font-serif text-2xl md:text-3xl mb-6",children:"Hosting a Respectful Conversation"}),a.jsx("ol",{className:"space-y-6",children:Rne.map(e=>a.jsxs("li",{className:"flex gap-4",children:[a.jsx("span",{className:"flex-none h-6 w-6 rounded-full bg-[hsl(var(--gold))]/15 mt-0.5"}),a.jsxs("div",{children:[a.jsx("h3",{className:"font-medium mb-1",children:e.title}),e.items?a.jsxs("div",{className:"text-muted-foreground leading-relaxed",children:[e.intro&&a.jsx("p",{className:"mb-2",children:e.intro}),a.jsx("ul",{className:"list-disc list-outside pl-5 space-y-1",children:e.items.map(t=>a.jsx("li",{children:t},t))})]}):a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.body})]})]},e.title))})]}),a.jsx(E,{children:a.jsxs("div",{className:"bg-card border border-border rounded-2xl p-8",children:[a.jsx("h2",{className:"font-serif text-2xl mb-3",children:"Ready to host?"}),a.jsxs("p",{className:"text-muted-foreground leading-relaxed mb-6",children:["If you're interested in learning more about holding a Respectful Conversation, please contact Director of Civic Dialogue Jerad Morey at 612-230-3211 or at"," ",a.jsx("a",{href:"mailto:[email protected]?subject=Respectful%20Conversation%20Inquiry",className:"text-primary underline underline-offset-2 hover:opacity-80 transition-opacity",children:"[email protected]"}),"."]}),a.jsx("div",{className:"flex flex-wrap items-center gap-3",children:a.jsxs(Y,{to:"/programs/civic-dialogue/respectful-conversations",className:"inline-flex items-center gap-2 text-primary font-medium hover:gap-3 transition-all rounded",children:["Back to Respectful Conversations ",a.jsx(nt,{className:"h-4 w-4"})]})})]})}),a.jsxs(E,{children:[a.jsx("h2",{className:"font-serif text-2xl md:text-3xl mb-4",children:"Become a Table Facilitator"}),a.jsx("img",{src:yne.url,alt:"Participants gathered at small tables during a table facilitator training session",className:"w-full aspect-[16/6] object-cover rounded-lg mb-6",loading:"lazy"}),a.jsxs("div",{className:"text-muted-foreground leading-relaxed space-y-4",children:[a.jsx("p",{children:"You can help create a culture of respect in Minnesota by volunteering to become a table facilitator in the Respectful Conversations Project. Receive three hours of free training in skills that will help your community talk across differences while strengthening relationships."}),a.jsx("p",{children:"Table facilitators are needed at conversations around the state. Each Respectful Conversation is highly structured and facilitated, with every three-hour conversation led by a team that includes a lead facilitator and one table facilitator for every six or seven participants."}),a.jsx("p",{children:"Table facilitators ensure a respectful process by:"}),a.jsxs("ul",{className:"list-disc list-outside pl-5 space-y-1",children:[a.jsx("li",{children:"Providing table hospital
338ity"}),a.jsx("li",{children:"Reviewing agreements with participants for how conversations will be conducted"}),a.jsx("li",{children:"Assisting the group to follow the prescribed format"}),a.jsx("li",{children:"Remaining neutral in the conversation by not sharing their own opinions"})]}),a.jsx("p",{children:"Regional training sessions are provided to prepare table facilitators to fulfill this role. Those trained may be asked to facilitate at several events (as schedules permit), but no prior commitment is required."}),a.jsx("p",{children:"Interested in learning more or signing up for a training? Contact Director of Civic Dialogue Jerad Morey at 612-230-3211 or [email protected]."})]})]})]})}),Pne=1,$ne="26bae578-c8f0-471c-8f95-72d2d6ce90d4",Mne="5317579a-a8ee-431d-9a53-6d8cfe773828",One="/__l5e/assets-v1/26bae578-c8f0-471c-8f95-72d2d6ce90d4/respectful-conversations-tables.jpg",Ine="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/26bae578-c8f0-471c-8f95-72d2d6ce90d4/respectful-conversations-tables.jpg",Dne="respectful-conversations-tables.jpg",Lne=467562,zne="image/jpeg",Fne="2026-09-02T17:08:52Z",Une={version:Pne,asset_id:$ne,project_id:Mne,url:One,r2_key:Ine,original_filename:Dne,size:Lne,content_type:zne,created_at:Fne},Bne=Une.url,pw="https://storage.googleapis.com/gpt-engineer-file-uploads/XOk7urKH1fgKDbgsThtEVWOxD2y1/social-images/social-1775717878144-MCC_Logo_-_Social_Sharing.webp",Vne=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Office of Civic Dialogue",href:"/programs/civic-dialogue"},{label:"Respectful Conversations",href:"/programs/civic-dialogue/respectful-conversations"},{label:"Respectful Conversations Testimonials"}],Hne=["They felt heard and are more aware of their own attitude when listening to differing opinions","The process would be useful in other settings","The conversation was supportive and uniting rather than a polarizing debate"],Wne=[`"I feel honored to witness peoples' hearts."`,`"I was opposed to small group discussions, [but] upon hearing the first question from my group's moderator, I was immediately impressed. With each succeeding question, I became more and more impressed by the insightful manner in which the questions drew out personal, in-depth statements of clarity from each participant. The overall effect was so beautiful that it was actually dramatic. Suiting me even better was the feeling of goodwill that enveloped the room, regardless of one's expressed opinions or even the outcome of the vote. Thank you very much for showing us a fine manner in which to handle a touchy topic."`],qne=[{quote:`"I can honestly say if we hadn't used the Respectful Conversation process, we would have had a mess. Emotions were intense. But the process worked, a conversation was had, and it was respectful and orderly."`,attr:"~ Rev. Jeff Hansen, United Methodist Church, Alexandria"},{quote:'"We highly recommend that community groups seek out this conversation experience through MCC. It provides a safe, thoughtful arena to learn from each other on topics that typically could cause tension and debate."',attr:"~ Toni Smith, Association of Minnesota Counties"},{quote:'"Thanks again for this wonderful process! It was truly a blessing to our congregation and will hopefully shine a light on a better way of discussing challenging issues and addressing those issues not only as a congregation, but also in our individual lives."',attr:"~ Rev. Kent Claussen Gubrud, Christus Victor Lutheran Church, Apple Valley"}],Kne=['"Because of this experience, I am more aware of my own attitude when listening to others of different opinions."',`"I have recalled the value of great, really open questions, getting rid of 'don't you think' statements, and trying to eliminate my explanations before expressing my question."`,'"I have tried to carefully listen to opposing viewpoints in conversations since then, to listen for the experiences, and often fears, that feed into some viewpoints."','"The fact that we are having open conversations with each other is a triumph."','"I became more aware of the importance of letting a speaker complete his/her comments before interjecting a comment or question."','"In the weeks following the event I found myself using better listening skills."'],Zne=()=>a.jsxs(a.Fragment,{children:[a.jsxs(sa,{children:[a.jsx("meta",{property:"og:image",content:pw}),a.jsx("meta",{name:"twitter:image",content:pw})]}),a.jsx(ae,{title:"Respectful Conversations Testimonials",description:"Participants and host organizations share what changed for them through MCC Respectful Conversations.",eyebrow:"Programs › Office of Civic Dialogue › Respectful Conversations",heading:"Respectful Conversations Testimonials",breadcrumbs:Vne,section:"programs",path:"/programs/civic-dialogue/respectful-conversations/testimonials",children:a.jsxs("div",{className:"space-y-14",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:Bne,alt:"Participants seated at round tables talking together during an outdoor Respectful Conversation",loading:"lazy",width:1529,height:1016,className:"w-full h-auto object-cover aspect-[16/8]"})})}),a.jsx(E,{children:a.jsx("p",{className:"max-w-3xl text-lg md:text-xl text-foreground
338/85 leading-relaxed",children:"Our results speak for themselves: On average, 84% of participants report having a stronger sense of empathy for those whose viewpoint is different from their own."})}),a.jsx(E,{children:a.jsxs("section",{"aria-labelledby":"ninety-five",className:"space-y-6",children:[a.jsx("h2",{id:"ninety-five",className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))] max-w-3xl",children:"Over 95% of Participants Agree That:"}),a.jsx("ul",{className:"grid gap-4 md:grid-cols-3 list-none pl-0",children:Hne.map(e=>a.jsx("li",{className:"bg-card border border-border rounded-xl p-6 text-foreground/85 leading-relaxed",children:e},e))})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-labelledby":"from-participants",className:"space-y-6 max-w-3xl",children:[a.jsx("h2",{id:"from-participants",className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",children:"From Participants"}),a.jsx("div",{className:"space-y-6",children:Wne.map((e,t)=>a.jsx("blockquote",{className:"border-l-4 border-[hsl(var(--gold))] pl-6 italic text-foreground/85 leading-relaxed",children:e},t))})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-labelledby":"from-hosts",className:"space-y-6 max-w-3xl",children:[a.jsx("h2",{id:"from-hosts",className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",children:"From Hosts"}),a.jsx("div",{className:"space-y-6",children:qne.map((e,t)=>a.jsxs("blockquote",{className:"border-l-4 border-[hsl(var(--gold))] pl-6",children:[a.jsx("p",{className:"italic text-foreground/85 leading-relaxed",children:e.quote}),a.jsx("footer",{className:"mt-2 text-sm text-muted-foreground not-italic",children:e.attr})]},t))})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-labelledby":"lasting",className:"space-y-6 max-w-3xl",children:[a.jsx("h2",{id:"lasting",className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",children:"Evidence of Lasting Change"}),a.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"We asked people months after their Respectful Conversation experience whether they had observed any lasting impact on their own behavior. Here's what they shared:"}),a.jsx("div",{className:"space-y-4",children:Kne.map((e,t)=>a.jsx("blockquote",{className:"border-l-4 border-[hsl(var(--gold))] pl-6 italic text-foreground/85 leading-relaxed",children:e},t))})]})}),a.jsx(E,{children:a.jsxs(Y,{to:"/programs/civic-dialogue/respectful-conversations",className:"group inline-flex items-center gap-2 text-[#80abb3] hover:text-[#6d98a0] font-medium hover:gap-3 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#80abb3] focus-visible:ring-offset-2 rounded",children:["Back to Respectful Conversations ",a.jsx(nt,{className:"h-4 w-4"})]})})]})})]}),fe=b.forwardRef(({className:e,type:t,...n},r)=>a.jsx("input",{type:t,className:Ce("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));fe.displayName="Input";const Ls=b.forwardRef(({className:e,...t},n)=>a.jsx("textarea",{className:Ce("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
338ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Ls.displayName="Textarea";var Gne="Label",G4=b.forwardRef((e,t)=>a.jsx(pe.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));G4.displayName=Gne;var J4=G4;const Jne=Pv("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),mr=b.forwardRef(({className:e,...t},n)=>a.jsx(J4,{ref:n,className:Ce(Jne(),e),...t}));mr.displayName=J4.displayName;function Wy(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Uh="Checkbox",[Yne,uge]=Gn(Uh),[Qne,qy]=Yne(Uh);function Xne(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:s,disabled:i,form:o,name:l,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:h}=e,[f,p]=Br({prop:n,defaultProp:s??!1,onChange:c,caller:Uh}),[y,m]=b.useState(null),[w,v]=b.useState(null),g=b.useRef(!1),x=y?!!o||!!y.closest("form"):!0,C={checked:f,disabled:i,setChecked:p,control:y,setControl:m,name:l,form:o,value:d,hasConsumerStoppedPropagationRef:g,required:u,defaultChecked:As(s)?!1:s,isFormControl:x,bubbleInput:w,setBubbleInput:v};return a.jsx(Qne,{scope:t,...C,children:ere(h)?h(C):r})}var Y4="CheckboxTrigger",Q4=b.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},s)=>{const{control:i,value:o,disabled:l,checked:c,required:u,setControl:d,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:y}=qy(Y4,e),m=Se(s,d),w=b.useRef(c);return b.useEffect(()=>{const v=i==null?void 0:i.form;if(v){const g=()=>h(w.current);return v.addEventListener("reset",g),()=>v.removeEventListener("reset",g)}},[i,h]),a.jsx(pe.button,{type:"button",role:"checkbox","aria-checked":As(c)?"mixed":c,"aria-required":u,"data-state":r5(c),"data-disabled":l?"":void 0,disabled:l,value:o,...r,ref:m,onKeyDown:re(t,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:re(n,v=>{h(g=>As(g)?!0:!g),y&&p&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});Q4.displayName=Y4;var Ky=b.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:i,required:o,disabled:l,value:c,onCheckedChange:u,form:d,...h}=e;return a.jsx(Xne,{__scopeCheckbox:n,checked:s,defaultChecked:i,disabled:l,required:o,onCheckedChange:u,name:r,form:d,value:c,internal_do_not_use_render:({isFormControl:f})=>a.jsxs(a.Fragment,{children:[a.jsx(Q4,{...h,ref:t,__scopeCheckbox:n}),f&&a.jsx(n5,{__scopeCheckbox:n})]})})});Ky.displayName=Uh;var X4="CheckboxIndicator",e5=b.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...s}=e,i=qy(X4,n);return a.jsx(aa,{present:r||As(i.checked)||i.checked===!0,children:a.jsx(pe.span,{"data-state":r5(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});e5.displayName=X4;var t5="CheckboxBubbleInput",n5=b.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:o,required:l,disabled:c,name:u,value:d,form:h,bubbleInput:f,setBubbleInput:p}=qy(t5,e),y=Se(n,p),m=Wy(i),w=Kv(r);b.useEffect(()=>{const g=f;if(!g)return;const x=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor(x,"checked").set,S=!s.current;if(m!==i&&_){const j=new Event("click",{bubbles:S});g.indeterminate=As(i),_.call(g,As(i)?!1:i),g.dispatchEvent(j)}},[f,m,i,s]);const v=b.useRef(As(i)?!1:i);return a.jsx(pe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??v.current,required:l,disabled:c,name:u,value:d,form:h,...t,tabIndex:-1,ref:y,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});n5.displayName=t5;function ere(e){return typeof e=="function"}function As(e){return e==="indeterminate"}function r5(e){return As(e)?"indeterminate":e?"checked":"unchecked"}const vg=b.forwardRef(({className:e,...t},n)=>a.jsx(Ky,{ref:n,className:Ce("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:a.jsx(e5,{className:Ce("flex items-center justify-center text-current"),children:a.jsx(wj,{className:"h-4 w-4"})})}));
vendor: 11,684 bytes, line 338
338vg.displayName=Ky.displayName;var pp="rovingFocusGroup.onEntryFocus",tre={bubbles:!1,cancelable:!0},vc="RovingFocusGroup",[yg,s5,nre]=fh(vc),[rre,i5]=Gn(vc,[nre]),[sre,ire]=rre(vc),o5=b.forwardRef((e,t)=>a.jsx(yg.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(yg.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(ore,{...e,ref:t})})}));o5.displayName=vc;var ore=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...h}=e,f=b.useRef(null),p=Se(t,f),y=Lh(i),[m,w]=Br({prop:o,defaultProp:l??null,onChange:c,caller:vc}),[v,g]=b.useState(!1),x=gn(u),C=s5(n),_=b.useRef(!1),[S,j]=b.useState(0);return b.useEffect(()=>{const k=f.current;if(k)return k.addEventListener(pp,x),()=>k.removeEventListener(pp,x)},[x]),a.jsx(sre,{scope:n,orientation:r,dir:y,loop:s,currentTabStopId:m,onItemFocus:b.useCallback(k=>w(k),[w]),onItemShiftTab:b.useCallback(()=>g(!0),[]),onFocusableItemAdd:b.useCallback(()=>j(k=>k+1),[]),onFocusableItemRemove:b.useCallback(()=>j(k=>k-1),[]),children:a.jsx(pe.div,{tabIndex:v||S===0?-1:0,"data-orientation":r,...h,ref:p,style:{outline:"none",...e.style},onMouseDown:re(e.onMouseDown,()=>{_.current=!0}),onFocus:re(e.onFocus,k=>{const T=!_.current;if(k.target===k.currentTarget&&T&&!v){const R=new CustomEvent(pp,tre);if(k.currentTarget.dispatchEvent(R),!R.defaultPrevented){const D=C().filter(B=>B.focusable),O=D.find(B=>B.active),W=D.find(B=>B.id===m),J=[O,W,...D].filter(Boolean).map(B=>B.ref.current);c5(J,d)}}_.current=!1}),onBlur:re(e.onBlur,()=>g(!1))})})}),a5="RovingFocusGroupItem",l5=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:i,children:o,...l}=e,c=ca(),u=i||c,d=ire(a5,n),h=d.currentTabStopId===u,f=s5(n),{onFocusableItemAdd:p,onFocusableItemRemove:y,currentTabStopId:m}=d;return b.useEffect(()=>{if(r)return p(),()=>y()},[r,p,y]),a.jsx(yg.ItemSlot,{scope:n,id:u,focusable:r,active:s,children:a.jsx(pe.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:re(e.onMouseDown,w=>{r?d.onItemFocus(u):w.preventDefault()}),onFocus:re(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:re(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const v=cre(w,d.orientation,d.dir);if(v!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let x=f().filter(C=>C.focusable).map(C=>C.ref.current);if(v==="last")x.reverse();else if(v==="prev"||v==="next"){v==="prev"&&x.reverse();const C=x.indexOf(w.currentTarget);x=d.loop?ure(x,C+1):x.slice(C+1)}setTimeout(()=>c5(x))}}),children:typeof o=="function"?o({isCurrentTabStop:h,hasTabStop:m!=null}):o})})});l5.displayName=a5;var are={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function lre(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cre(e,t,n){const r=lre(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return are[r]}function c5(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function ure(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var dre=o5,hre=l5,Zy="Radio",[fre,u5]=Gn(Zy),[pre,mre]=fre(Zy),d5=b.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:s=!1,required:i,disabled:o,value:l="on",onCheck:c,form:u,...d}=e,[h,f]=b.useState(null),p=Se(t,w=>f(w)),y=b.useRef(!1),m=h?u||!!h.closest("form"):!0;return a.jsxs(pre,{scope:n,checked:s,disabled:o,children:[a.jsx(pe.button,{type:"button",role:"radio","aria-checked":s,"data-state":m5(s),"data-disabled":o?"":void 0,disabled:o,value:l,...d,ref:p,onClick:re(e.onClick,w=>{s||c==null||c(),m&&(y.current=w.isPropagationStopped(),y.current||w.stopPropagation())})}),m&&a.jsx(p5,{control:h,bubbles:!y.current,name:r,value:l,checked:s,required:i,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});d5.displayName=Zy;var h5="RadioIndicator",f5=b.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...s}=e,i=mre(h5,n);return a.jsx(aa,{present:r||i.checked,children:a.jsx(pe.span,{"data-state":m5(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t})})});f5.displayName=h5;var gre="RadioBubbleInput",p5=b.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...s},i)=>{const o=b.useRef(null),l=Se(o,i),c=Wy(n),u=Kv(t);return b.useEffect(()=>{const d=o.current;if(!d)return;const h=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(h,"checked").set;if(c!==n&&p){const y=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(y)}},[c,n,r]),a.jsx(pe.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:l,style:{...s.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});p5.displayName=gre;function m5(e){return e?"checked":"unchecked"}var vre=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Bh="RadioGroup",[yre,dge]=Gn(Bh,[i5,u5]),g5=i5(),v5=u5(),[bre,xre]=yre(Bh),y5=b.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:s,value:i,required:o=!1,disabled:l=!1,orientation:c,dir:u,loop:d=!0,onValueChange:h,...f}=e,p=g5(n),y=Lh(u),[m,w]=Br({prop:i,defaultProp:s??null,onChange:h,caller:Bh});return a.jsx(bre,{scope:n,name:r,required:o,disabled:l,value:m,onValueChange:w,children:a.jsx(dre,{asChild:!0,...p,orientation:c,dir:y,loop:d,children:a.jsx(pe.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:y,...f,ref:t})})})});y5.displayName=Bh;var b5="RadioGroupItem",x5=b.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...s}=e,i=xre(b5,n),o=i.disabled||r,l=g5(n),c=v5(n),u=b.useRef(null),d=Se(t,u),h=i.value===s.value,f=b.useRef(!1);return b.useEffect(()=>{const p=m=>{vre.includes(m.key)&&(f.current=!0)},y=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",y)}},[]),a.jsx(hre,{asChild:!0,...l,focusable:!o,active:h,children:a.jsx(d5,{disabled:o,required:i.required,checked:h,...c,...s,name:i.name,ref:d,onCheck:()=>i.onValueChange(s.value),onKeyDown:re(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:re(s.onFocus,()=>{var p;f.current&&((p=u.current)==null||p.click())})})})});x5.displayName=b5;var wre="RadioGroupIndicator",w5=b.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,s=v5(n);return a.jsx(f5,{...s,...r,ref:t})});w5.displayName=wre;var C5=y5,_5=x5,Cre=w5;const j5=b.forwardRef(({className:e,...t},n)=>a.jsx(C5,{className:Ce("grid gap-2",e),...t,ref:n}));j5.displayName=C5.displayName;const S5=b.forwardRef(({className:e,...t},n)=>a.jsx(_5,{ref:n,className:Ce("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:a.jsx(Cre,{className:"flex items-center justify-center",children:a.jsx(aN,{className:"h-2.5 w-2.5 fill-current text-current"})})}));S5.displayName=_5.displayName;function mw(e,[t,n]){return Math.min(n,Math.max(t,e))}var mp=0;function _re(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gw()),document.body.insertAdjacentElement("beforeend",e[1]??gw()),mp++,()=>{mp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),mp--}},[])}function gw(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var gp="focusScope.autoFocusOnMount",vp="focusScope.autoFocusOnUnmount",vw={bubbles:!1,cancelable:!0},jre="FocusScope",k5=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[l,c]=b.useState(null),u=gn(s),d=gn(i),h=b.useRef(null),f=Se(t,m=>c(m)),p=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let m=function(x){if(p.paused||!l)return;const C=x.target;l.contains(C)?h.current=C:is(h.current,{select:!0})},w=function(x){if(p.paused||!l)return;const C=x.relatedTarget;C!==null&&(l.contains(C)||is(h.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const _ of x)_.removedNodes.length>0&&is(l)};document.addEventListener("focusin",m),document.addEventListener("focusout",w);const g=new MutationObserver(v);return l&&g.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",w),g.disconnect()}}},[r,l,p.paused]),b.useEffect(()=>{if(l){bw.add(p);const m=document.activeElement;if(!l.contains(m)){const v=new CustomEvent(gp,vw);l.addEventListener(gp,u),l.dispatchEvent(v),v.defaultPrevented||(Sre(Rre(T5(l)),{select:!0}),document.activeElement===m&&is(l))}return()=>{l.removeEventListener(gp,u),setTimeout(()=>{const v=new CustomEvent(vp,vw);l.addEventListener(vp,d),l.dispatchEvent(v),v.defaultPrevented||is(m??document.body,{select:!0}),l.removeEventListener(vp,d),bw.remove(p)},0)}}},[l,u,d,p]);const y=b.useCallback(m=>{if(!n&&!r||p.paused)return;const w=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(w&&v){const g=m.currentTarget,[x,C]=kre(g);x&&C?!m.shiftKey&&v===C?(m.preventDefault(),n&&is(x,{select:!0})):m.shiftKey&&v===x&&(m.preventDefault(),n&&is(C,{select:!0})):v===g&&m.preventDefault()}},[n,r,p.paused]);return a.jsx(pe.div,{tabIndex:-1,...o,ref:f,onKeyDown:y})});k5.displayName=jre;function Sre(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(is(r,{select:t}),document.activeElement!==n)return}function kre(e){const t=T5(e),n=yw(t,e),r=yw(t.reverse(),e);return[n,r]}function T5(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function yw(e,t){for(const n of e)if(!Tre(n,{upTo:t}))return n}function Tre(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ere(e){return e instanceof HTMLInputElement&&"select"in e}function is(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ere(e)&&t&&e.select()}}var bw=Nre();function Nre(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=xw(e,t),e.unshift(t)},remove(t){var n;e=xw(e,t),(n=e[0])==null||n.resume()}}}function xw(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Rre(e){return e.filter(t=>t.tagName!=="A")}var Are=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ki=new WeakMap,su=new WeakMap,iu={},yp=0,E5=function(e){return e&&(e.host||E5(e.parentNode))},Pre=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=E5(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$re=function(e,t,n,r){var s=Pre(t,Array.isArray(e)?e:[e]);iu[n]||(iu[n]=new WeakMap);var i=iu[n],o=[],l=new Set,c=new Set(s),u=function(h){!h||l.has(h
vendor: 6,532 bytes, lines 338-353
338)||(l.add(h),u(h.parentNode))};s.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(f){if(l.has(f))d(f);else try{var p=f.getAttribute(r),y=p!==null&&p!=="false",m=(Ki.get(f)||0)+1,w=(i.get(f)||0)+1;Ki.set(f,m),i.set(f,w),o.push(f),m===1&&y&&su.set(f,!0),w===1&&f.setAttribute(n,"true"),y||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return d(t),l.clear(),yp++,function(){o.forEach(function(h){var f=Ki.get(h)-1,p=i.get(h)-1;Ki.set(h,f),i.set(h,p),f||(su.has(h)||h.removeAttribute(r),su.delete(h)),p||h.removeAttribute(n)}),yp--,yp||(Ki=new WeakMap,Ki=new WeakMap,su=new WeakMap,iu={})}},Mre=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=Are(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),$re(r,s,n,"aria-hidden")):function(){return null}},lr=function(){return lr=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},lr.apply(this,arguments)};function N5(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function Ore(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Lu="right-scroll-bar-position",zu="width-before-scroll-bar",Ire="with-scroll-bars-hidden",Dre="--removed-body-scroll-bar-size";function bp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Lre(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var zre=typeof window<"u"?b.useLayoutEffect:b.useEffect,ww=new WeakMap;function Fre(e,t){var n=Lre(null,function(r){return e.forEach(function(s){return bp(s,r)})});return zre(function(){var r=ww.get(n);if(r){var s=new Set(r),i=new Set(e),o=n.current;s.forEach(function(l){i.has(l)||bp(l,null)}),i.forEach(function(l){s.has(l)||bp(l,o)})}ww.set(n,e)},[e]),n}function Ure(e){return e}function Bre(e,t){t===void 0&&(t=Ure);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(i),o=n}var c=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return s}function Vre(e){e===void 0&&(e={});var t=Bre(null);return t.options=lr({async:!0,ssr:!1},e),t}var R5=function(e){var t=e.sideCar,n=N5(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return b.createElement(r,lr({},n))};R5.isSideCarExport=!0;function Hre(e,t){return e.useMedium(t),R5}var A5=Vre(),xp=function(){},Vh=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:xp,onWheelCapture:xp,onTouchMoveCapture:xp}),s=r[0],i=r[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,p=e.noRelative,y=e.noIsolation,m=e.inert,w=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,x=e.gapMode,C=N5(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,S=Fre([n,t]),j=lr(lr({},C),s);return b.createElement(b.Fragment,null,d&&b.createElement(_,{sideCar:A5,removeScrollBar:u,shards:h,noRelative:p,noIsolation:y,inert:m,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:x}),o?b.cloneElement(b.Children.only(l),lr(lr({},j),{ref:S})):b.createElement(g,lr({},j,{className:c,ref:S}),l))});Vh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vh.classNames={fullWidth:zu,zeroRight:Lu};var Wre=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qre(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wre();return t&&e.setAttribute("nonce",t),e}function Kre(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zre(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Gre=function(){var e=0,t=null;return{add:function(n){e==0&&(t=qre())&&(Kre(t,n),Zre(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Jre=function(){var e=Gre();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},P5=function(){var e=Jre(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},Yre={left:0,top:0,right:0,gap:0},wp=function(e){return parseInt(e||"",10)||0},Qre=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[wp(n),wp(r),wp(s)]},Xre=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Yre;var t=Qre(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ese=P5(),Po="data-scroll-locked",tse=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
339  .`.concat(Ire,` {
340   overflow: hidden `).concat(r,`;
341   padding-right: `).concat(l,"px ").concat(r,`;
342  }
343  body[`).concat(Po,`] {
344    overflow: hidden `).concat(r,`;
345    overscroll-behavior: contain;
346    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
347    padding-left: `.concat(s,`px;
348    padding-top: `).concat(i,`px;
349    padding-right: `).concat(o,`px;
350    margin-left:0;
351    margin-top:0;
352    margin-right: `).concat(l,"px ").concat(r,`;
353    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
353")].filter(Boolean).join(""),`
354  }
355  
356  .`).concat(Lu,` {
357    right: `).concat(l,"px ").concat(r,`;
358  }
359  
360  .`).concat(zu,` {
361    margin-right: `).concat(l,"px ").concat(r,`;
362  }
363  
364  .`).concat(Lu," .").concat(Lu,` {
365    right: 0 `).concat(r,`;
366  }
367  
368  .`).concat(zu," .").concat(zu,` {
369    margin-right: 0 `).concat(r,`;
370  }
371  
372  body[`).concat(Po,`] {
373    `).concat(Dre,": ").concat(l,`px;
374  }
375`)},Cw=function(){var e=parseInt(document.body.getAttribute(Po)||"0",10);return isFinite(e)?e:0},nse=function(){b.useEffect(function(){return document.body.setAttribute(Po,(Cw()+1).toString()),function(){var e=Cw()-1;e<=0?document.body.removeAttribute(Po):document.body.setAttribute(Po,e.toString())}},[])},rse=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;nse();var i=b.useMemo(function(){return Xre(s)},[s]);return b.createElement(ese,{styles:tse(i,!t,s,n?"":"!important")})},bg=!1;if(typeof window<"u")try{var ou=Object.defineProperty({},"passive",{get:function(){return bg=!0,!0}});window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{bg=!1}var Zi=bg?{passive:!1}:!1,sse=function(e){return e.tagName==="TEXTAREA"},$5=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!sse(e)&&n[t]==="visible")},ise=function(e){return $5(e,"overflowY")},ose=function(e){return $5(e,"overflowX")},_w=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=M5(e,r);if(s){var i=O5(e,r),o=i[1],l=i[2];if(o>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ase=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},lse=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},M5=function(e,t){return e==="v"?ise(t):ose(t)},O5=function(e,t){return e==="v"?ase(t):lse(t)},cse=function(e,t){return e==="h"&&t==="rtl"?-1:1},use=function(e,t,n,r,s){var i=cse(e,window.getComputedStyle(t).direction),o=i*r,l=n.target,c=t.contains(l),u=!1,d=o>0,h=0,f=0;do{if(!l)break;var p=O5(e,l),y=p[0],m=p[1],w=p[2],v=m-w-i*y;(y||v)&&M5(e,l)&&(h+=v,f+=y);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(f)<1||!s))&&(u=!0),u},au=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jw=function(e){return[e.deltaX,e.deltaY]},Sw=function(e){return e&&"current"in e?e.current:e},dse=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hse=function(e){return`
376  .block-interactivity-`.concat(e,` {pointer-events: none;}
377  .allow-interactivity-`).concat(e,` {pointer-events: all;}
378`)},fse=0,Gi=[];function pse(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),s=b.useState(fse++)[0],i=b.useState(P5)[0],o=b.useRef(e);b.useEffect(function(){o.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var m=Ore([e.lockRef.current],(e.shards||[]).map(Sw),!0).filter(Boolean);return m.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),m.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=b.useCallback(function(m,w){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var v=au(m),g=n.current,x="deltaX"in m?m.deltaX:g[0]-v[0],C="deltaY"in m?m.deltaY:g[1]-v[1],_,S=m.target,j=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in m&&j==="h"&&S.type==="range")return!1;var k=_w(j,S);if(!k)return!0;if(k?_=j:(_=j==="v"?"h":"v",k=_w(j,S)),!k)return!1;if(!r.current&&"changedTouches"in m&&(x||C)&&(r.current=_),!_)return!0;var T=r.current||_;return use(T,w,m,T==="h"?x:C,!0)},[]),c=b.useCallback(function(m){var w=m;if(!(!Gi.length||Gi[Gi.length-1]!==i)){var v="deltaY"in w?jw(w):au(w),g=t.current.filter(function(_){return _.name===w.t
vendor: 4,275 bytes, line 378
378ype&&(_.target===w.target||w.target===_.shadowParent)&&dse(_.delta,v)})[0];if(g&&g.should){w.cancelable&&w.preventDefault();return}if(!g){var x=(o.current.shards||[]).map(Sw).filter(Boolean).filter(function(_){return _.contains(w.target)}),C=x.length>0?l(w,x[0]):!o.current.noIsolation;C&&w.cancelable&&w.preventDefault()}}},[]),u=b.useCallback(function(m,w,v,g){var x={name:m,delta:w,target:v,should:g,shadowParent:mse(v)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),d=b.useCallback(function(m){n.current=au(m),r.current=void 0},[]),h=b.useCallback(function(m){u(m.type,jw(m),m.target,l(m,e.lockRef.current))},[]),f=b.useCallback(function(m){u(m.type,au(m),m.target,l(m,e.lockRef.current))},[]);b.useEffect(function(){return Gi.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Zi),document.addEventListener("touchmove",c,Zi),document.addEventListener("touchstart",d,Zi),function(){Gi=Gi.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,Zi),document.removeEventListener("touchmove",c,Zi),document.removeEventListener("touchstart",d,Zi)}},[]);var p=e.removeScrollBar,y=e.inert;return b.createElement(b.Fragment,null,y?b.createElement(i,{styles:hse(s)}):null,p?b.createElement(rse,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function mse(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gse=Hre(A5,pse);var I5=b.forwardRef(function(e,t){return b.createElement(Vh,lr({},e,{ref:t,sideCar:gse}))});I5.classNames=Vh.classNames;var vse=[" ","Enter","ArrowUp","ArrowDown"],yse=[" ","Enter"],Ti="Select",[Hh,Wh,bse]=fh(Ti),[ma,hge]=Gn(Ti,[bse,Ch]),qh=Ch(),[xse,Hs]=ma(Ti),[wse,Cse]=ma(Ti),D5=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:i,value:o,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:h,disabled:f,required:p,form:y}=e,m=qh(t),[w,v]=b.useState(null),[g,x]=b.useState(null),[C,_]=b.useState(!1),S=Lh(u),[j,k]=Br({prop:r,defaultProp:s??!1,onChange:i,caller:Ti}),[T,R]=Br({prop:o,defaultProp:l,onChange:c,caller:Ti}),D=b.useRef(null),O=w?y||!!w.closest("form"):!0,[W,L]=b.useState(new Set),J=Array.from(W).map(B=>B.props.value).join(";");return a.jsx(jA,{...m,children:a.jsxs(xse,{required:p,scope:t,trigger:w,onTriggerChange:v,valueNode:g,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:_,contentId:ca(),value:T,onValueChange:R,open:j,onOpenChange:k,dir:S,triggerPointerDownPosRef:D,disabled:f,children:[a.jsx(Hh.Provider,{scope:t,children:a.jsx(wse,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(B=>{L(V=>new Set(V).add(B))},[]),onNativeOptionRemove:b.useCallback(B=>{L(V=>{const N=new Set(V);return N.delete(B),N})},[]),children:n})}),O?a.jsxs(aS,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:h,value:T,onChange:B=>R(B.target.value),disabled:f,form:y,children:[T===void 0?a.jsx("option",{value:""}):null,Array.from(W)]},J):null]})})};D5.displayName=Ti;var L5="SelectTrigger",z5=b.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...s}=e,i=qh(n),o=Hs(L5,n),l=o.disabled||r,c=Se(t,o.onTriggerChange),u=Wh(n),d=b.useRef("touch"),[h,f,p]=cS(m=>{const w=u().filter(x=>!x.disabled),v=w.find(x=>x.value===o.value),g=uS(w,m,v);g!==void 0&&o.onValueChange(g.value)}),y=m=>{l||(o.onOpenChange(!0),p()),m&&(o.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return a.jsx(i3,{asChild:!0,...i,children:a.jsx(pe.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":lS(o.value)?"":void 0,...s,ref:c,onClick:re(s.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&y(m)}),onPointerDown:re(s.onPointerDown,m=>{d.current=m.pointerType;const w=m.target;w.hasPointerCapture(m.pointerId)&&w.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(y(m),m.preventDefault())}),onKeyDown:re(s.onKeyDown,m=>{const w=h.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(w&&m.key===" ")&&vse.includes(m.key)&&
vendor: 15,639 bytes, line 378
378(y(),m.preventDefault())})})})});z5.displayName=L5;var F5="SelectValue",U5=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,children:i,placeholder:o="",...l}=e,c=Hs(F5,n),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,h=Se(t,c.onValueNodeChange);return dt(()=>{u(d)},[u,d]),a.jsx(pe.span,{...l,ref:h,style:{pointerEvents:"none"},children:lS(c.value)?a.jsx(a.Fragment,{children:o}):i})});U5.displayName=F5;var _se="SelectIcon",B5=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...s}=e;return a.jsx(pe.span,{"aria-hidden":!0,...s,ref:t,children:r||"▼"})});B5.displayName=_se;var jse="SelectPortal",V5=e=>a.jsx(Ev,{asChild:!0,...e});V5.displayName=jse;var Ei="SelectContent",H5=b.forwardRef((e,t)=>{const n=Hs(Ei,e.__scopeSelect),[r,s]=b.useState();if(dt(()=>{s(new DocumentFragment)},[]),!n.open){const i=r;return i?$i.createPortal(a.jsx(W5,{scope:e.__scopeSelect,children:a.jsx(Hh.Slot,{scope:e.__scopeSelect,children:a.jsx("div",{children:e.children})})}),i):null}return a.jsx(q5,{...e,ref:t})});H5.displayName=Ei;var An=10,[W5,Ws]=ma(Ei),Sse="SelectContentImpl",kse=Pl("SelectContent.RemoveScroll"),q5=b.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:y,hideWhenDetached:m,avoidCollisions:w,...v}=e,g=Hs(Ei,n),[x,C]=b.useState(null),[_,S]=b.useState(null),j=Se(t,U=>C(U)),[k,T]=b.useState(null),[R,D]=b.useState(null),O=Wh(n),[W,L]=b.useState(!1),J=b.useRef(!1);b.useEffect(()=>{if(x)return Mre(x)},[x]),_re();const B=b.useCallback(U=>{const[le,...xe]=O().map(F=>F.ref.current),[ue]=xe.slice(-1),X=document.activeElement;for(const F of U)if(F===X||(F==null||F.scrollIntoView({block:"nearest"}),F===le&&_&&(_.scrollTop=0),F===ue&&_&&(_.scrollTop=_.scrollHeight),F==null||F.focus(),document.activeElement!==X))return},[O,_]),V=b.useCallback(()=>B([k,x]),[B,k,x]);b.useEffect(()=>{W&&V()},[W,V]);const{onOpenChange:N,triggerPointerDownPosRef:P}=g;b.useEffect(()=>{if(x){let U={x:0,y:0};const le=ue=>{var X,F;U={x:Math.abs(Math.round(ue.pageX)-(((X=P.current)==null?void 0:X.x)??0)),y:Math.abs(Math.round(ue.pageY)-(((F=P.current)==null?void 0:F.y)??0))}},xe=ue=>{U.x<=10&&U.y<=10?ue.preventDefault():x.contains(ue.target)||N(!1),document.removeEventListener("pointermove",le),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",xe,{capture:!0})}}},[x,N,P]),b.useEffect(()=>{const U=()=>N(!1);return window.addEventListener("blur",U),window.addEventListener("resize",U),()=>{window.removeEventListener("blur",U),window.removeEventListener("resize",U)}},[N]);const[A,Z]=cS(U=>{const le=O().filter(X=>!X.disabled),xe=le.find(X=>X.ref.current===document.activeElement),ue=uS(le,U,xe);ue&&setTimeout(()=>ue.ref.current.focus())}),K=b.useCallback((U,le,xe)=>{const ue=!J.current&&!xe;(g.value!==void 0&&g.value===le||ue)&&(T(U),ue&&(J.current=!0))},[g.value]),se=b.useCallback(()=>x==null?void 0:x.focus(),[x]),ee=b.useCallback((U,le,xe)=>{const ue=!J.current&&!xe;(g.value!==void 0&&g.value===le||ue)&&D(U)},[g.value]),_e=r==="popper"?xg:K5,Te=_e===xg?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:y,hideWhenDetached:m,avoidCollisions:w}:{};return a.jsx(W5,{scope:n,content:x,viewport:_,onViewportChange:S,itemRefCallback:K,selectedItem:k,onItemLeave:se,itemTextRefCallback:ee,focusSelectedItem:V,selectedItemText:R,position:r,isPositioned:W,searchRef:A,children:a.jsx(I5,{as:kse,allowPinchZoom:!0,children:a.jsx(k5,{asChild:!0,trapped:g.open,onMountAutoFocus:U=>{U.preventDefault()},onUnmountAutoFocus:re(s,U=>{var le;(le=g.trigger)==null||le.focus({preventScroll:!0}),U.preventDefault()}),children:a.jsx(ph,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:U=>U.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:a.jsx(_e,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:U=>U.preventDefault(),...v,...Te,onPlaced:()=>L(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:re(v.onKeyDown,U=>{const le=U.ctrlKey||U.altKey||U.metaKey;if(U.key==="Tab"&&U.preventDefault(),!le&&U.key.length===1&&Z(U.key),["ArrowUp","ArrowDown","Home","End"].includes(U.key)){let ue=O().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(U.key)&&(ue=ue.slice().reverse()),["ArrowUp","ArrowDown"].includes(U.key)){const X=U.target,F=ue.indexOf(X);ue=ue.slice(F+1)}setTimeout(()=>B(ue)),U.preventDefault()}})})})})})})});q5.displayName=Sse;var Tse="SelectItemAlignedPosition",K5=b.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,i=Hs(Ei,n),o=Ws(Ei,n),[l,c]=b.useState(null),[u,d]=b.useState(null),h=Se(t,j=>d(j)),f=Wh(n),p=b.useRef(!1),y=b.useRef(!0),{viewport:m,selectedItem:w,selectedItemText:v,focusSelectedItem:g}=o,x=b.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&m&&w&&v){const j=i.trigger.getBoundingClientRect(),k=u.getBoundingClientRect(),T=i.valueNode.getBoundingClientRect(),R=v.getBoundingClientRect();if(i.dir!=="rtl"){const X=R.left-k.left,F=T.left-X,de=j.left-F,ye=j.width+de,Le=Math.max(ye,k.width),rt=window.innerWidth-An,ht=mw(F,[An,Math.max(An,rt-Le)]);l.style.minWidth=ye+"px",l.style.left=ht+"px"}else{const X=k.right-R.right,F=window.innerWidth-T.right-X,de=window.innerWidth-j.right-F,ye=j.width+de,Le=Math.max(ye,k.width),rt=window.innerWidth-An,ht=mw(F,[An,Math.max(An,rt-Le)]);l.style.minWidth=ye+"px",l.style.right=ht+"px"}const D=f(),O=window.innerHeight-An*2,W=m.scrollHeight,L=window.getComputedStyle(u),J=parseInt(L.borderTopWidth,10),B=parseInt(L.paddingTop,10),V=parseInt(L.borderBottomWidth,10),N=parseInt(L.paddingBottom,10),P=J+B+W+N+V,A=Math.min(w.offsetHeight*5,P),Z=window.getComputedStyle(m),K=parseInt(Z.paddingTop,10),se=parseInt(Z.paddingBottom,10),ee=j.top+j.height/2-An,_e=O-ee,Te=w.offsetHeight/2,U=w.offsetTop+Te,le=J+B+U,xe=P-le;if(le<=ee){const X=D.length>0&&w===D[D.length-1].ref.current;l.style.bottom="0px";const F=u.clientHeight-m.offsetTop-m.offsetHeight,de=Math.max(_e,Te+(X?se:0)+F+V),ye=le+de;l.style.height=ye+"px"}else{const X=D.length>0&&w===D[0].ref.current;l.style.top="0px";const de=Math.max(ee,J+m.offsetTop+(X?K:0)+Te)+xe;l.style.height=de+"px",m.scrollTop=le-ee+m.offsetTop}l.style.margin=`${An}px 0`,l.style.minHeight=A+"px",l.style.maxHeight=O+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[f,i.trigger,i.valueNode,l,u,m,w,v,i.dir,r]);dt(()=>x(),[x]);const[C,_]=b.useState();dt(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const S=b.useCallback(j=>{j&&y.current===!0&&(x(),g==null||g(),y.current=!1)},[x,g]);return a.jsx(Nse,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:a.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:a.jsx(pe.div,{...s,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});K5.displayName=Tse;var Ese="SelectPopperPosition",xg=b.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=An,...i}=e,o=qh(n);return a.jsx(o3,{...o,...i,ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});xg.displayName=Ese;var[Nse,Gy]=ma(Ei,{}),wg="SelectViewport",Z5=b.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...s}=e,i=Ws(wg,n),o=Gy(wg,n),l=Se(t,i.onViewportChange),c=b.useRef(0);return a.jsxs(a.Fragment,{children:[a.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),a.jsx(Hh.Slot,{scope:n,children:a.jsx(pe.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:re(s.onScroll,u=>{const d=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&h){const p=Math.abs(c.current-d.scrollTop);if(p>0){const y=window.innerHeight-An*2,m=parseFloat(h.style.minHeight),w=parseFloat(h.style.height),v=Math.max(m,w);if(v<y){const g=v+p,x=Math.min(y,g),C=g-x;h.style.height=x+"px",h.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,h.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});Z5.displayName=wg;var G5="SelectGroup",[Rse,Ase]=ma(G5),Pse=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=ca();return a.jsx(Rse,{scope:n,id:s,children:a.jsx(pe.div,{role:"group","aria-labelledby":s,...r,ref:t})})});Pse.displayName=G5;var J5="SelectLabel",Y5=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Ase(J5,n);return a.jsx(pe.div,{id:s.id,...r,ref:t})});Y5.displayName=J5;var Fd="SelectItem",[$se,Q5]=ma(Fd),X5=b.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:i,...o}=e,l=Hs(Fd,n),c=Ws(Fd,n),u=l.value===r,[d,h]=b.useState(i??""),[f,p]=b.useState(!1),y=Se(t,g=>{var x;return(x=c.itemRefCallback)==null?void 0:x.call(c,g,r,s)}),m=ca(),w=b.useRef("touch"),v=()=>{s||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.jsx($se,{scope:n,value:r,disabled:s,textId:m,isSelected:u,onItemTextChange:b.useCallback(g=>{h(x=>x||((g==null?void 0:g.textContent)??"").trim())},[]),children:a.jsx(Hh.ItemSlot,{scope:n,value:r,disabled:s,textValue:d,children:a.jsx(pe.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:y,onFocus:re(o.onFocus,()=>p(!0)),onBlur:re(o.onBlur,()=>p(!1)),onClick:re(o.onClick,()=>{w.current!=="mouse"&&v()}),onPointerUp:re(o.onPointerUp,()=>{w.current==="mouse"&&v()}),onPointerDown:re(o.onPointerDown,g=>{w.current=g.pointerType}),onPointerMove:re(o.onPointerMove,g=>{var x;w.current=g.pointerType,s?(x=c.onItemLeave)==null||x.call(c):w.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:re(o.onPointerLeave,g=>{var x;g.currentTarget===document.activeElement&&((x=c.onItemLeave)==null||x.call(c))}),onKeyDown:re(o.onKeyDown,g=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&g.key===" "||(yse.includes(g.key)&&v(),g.key===" "&&g.preventDefault())})})})})});X5.displayName=Fd;var Wa="SelectItemText",eS=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...i}=e,o=Hs(Wa,n),l=Ws(Wa,n),c=Q5(Wa,n),u=Cse(Wa,n),[d,h]=b.useState(null),f=Se(t,v=>h(v),c.onItemTextChange,v=>{var g;return(g=l.itemTextRefCallback)==null?void 0:g.call(l,v,c.value,c.disabled)}),p=d==null?void 0:d.textContent,y=b.useMemo(()=>a.jsx("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:w}=u;return dt(()=>(m(y),()=>w(y)),[m,w,y]),a.jsxs(a.Fragment,{children:[a.jsx(pe.span,{id:c.textId,...i,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?$i.createPortal(i.children,o.valueNode):null]})});eS.displayName=Wa;var tS="SelectItemIndicator",nS=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Q5(tS,n).isSelected?a.jsx(pe.span,{"aria-hidden":!0,...r,ref:t}):null});nS.displayName=tS;var Cg="SelectScrollUpButton",rS=b.forwardRef((e,t)=>{const n=Ws(Cg,e.__scopeSelect),r=Gy(Cg,e.__scopeSelect),[s,i]=b.useState(!1),o=Se(t,r.onScrollButtonChange);return dt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;i(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?a.jsx(iS,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});rS.displayName=Cg;var _g="SelectScrollDownButton",sS=b.forwardRef((e,t)=>{const n=Ws(_g,e.__scopeSelect),r=Gy(_g,e.__scopeSelect),[s,i]=b.useState(!1),o=Se(t,r.onScrollButtonChange);return dt(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;i(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?a.jsx(iS,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});sS.displayName=_g;var iS=b.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=e,i=Ws("SelectScrollButton",n),o=b.useRef(null),l=Wh(n),c=b.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return b.useEffect(()=>()=>c(),[c]),dt(()=>{var d;const u=l().find(h=>h.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),a.jsx(pe.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:re(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:re(s.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:re(s.onPointerLeave,()=>{c()})})}),Mse="SelectSeparator",oS=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return a.jsx(pe.div,{"aria-hidden":!0,...r,ref:t})});oS.displayName=Mse;var jg="SelectArrow",Ose=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=qh(n),i=Hs(jg,n),o=Ws(jg,n);return i.open&&o.position==="popper"?a.jsx(a3,{...s,...r,ref:t}):null});Ose.displayName=jg;var Ise="SelectBubbleInput",aS=b.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const s=b.useRef(null),i=Se(r,s),o=Wy(t);return b.useEffect(()=>{const l=s.current;if(!l)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&d){const h=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(h)}},[o,t]),a.jsx(pe.select,{...n,style:{...G_,...n.style},ref:i,defaultValue:t})});aS.displayName=Ise;function lS(e){return e===""||e===void 0}function cS(e){const t=gn(e),n=b.useRef(""),r=b.useRef(0),s=b.useCallback(o=>{const l=n.current+o;t(l),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),i=b.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,i]}function uS(e,t,n){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=Dse(e,Math.max(i,0));s.length===1&&(o=o.filter(u=>u!==n));const c=o.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==n?c:void 0}function Dse(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Lse=D5,dS=z5,zse=U5,Fse=B5,Use=V5,hS=H5,Bse=Z5,fS=Y5,pS=X5,Vse=eS,Hse=nS,mS=rS,gS=sS,vS=oS;const yS=Lse,bS=zse,Jy=b.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(dS,{ref:r,className:Ce("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
378ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,a.jsx(Fse,{asChild:!0,children:a.jsx($l,{className:"h-4 w-4 opacity-50"})})]}));Jy.displayName=dS.displayName;const xS=b.forwardRef(({className:e,...t},n)=>a.jsx(mS,{ref:n,className:Ce("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(iN,{className:"h-4 w-4"})}));xS.displayName=mS.displayName;const wS=b.forwardRef(({className:e,...t},n)=>a.jsx(gS,{ref:n,className:Ce("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx($l,{className:"h-4 w-4"})}));wS.displayName=gS.displayName;const Yy=b.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>a.jsx(Use,{children:a.jsxs(hS,{ref:s,className:Ce("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[a.jsx(xS,{}),a.jsx(Bse,{className:Ce("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(wS,{})]})}));Yy.displayName=hS.displayName;const Wse=b.forwardRef(({className:e,...t},n)=>a.jsx(fS,{ref:n,className:Ce("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Wse.displayName=fS.displayName;const ls=b.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(pS,{ref:r,className:Ce("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(Hse,{children:a.jsx(wj,{className:"h-4 w-4"})})}),a.jsx(Vse,{children:t})]}));ls.displayName=pS.displayName;const qse=b.forwardRef(({className:e,...t},n)=>a.jsx(vS,{ref:n,className:Ce("-mx-1 my-1 h-px bg-muted",e),...t}));qse.displayName=vS.displayName;const Kse=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Office of Civic Dialogue",href:"/programs/civic-dialogue"},{label:"Respectful Conversations",href:"/programs/civic-dialogue/respectful-conversations"},{label:"Registration"}],Zse=["August 14 — Bethlehem Lutheran in the Midway, St. Paul","August 28 — Our Savior's Lutheran, Cloquet","October 23 — Bethlehem Lutheran Church, St Cloud","November 20 — Valley Community Presbyterian, Golden Valley","February 19 (5:30pm) — Cross Winds UMC, Maple Grove","April 7 — Faith Lutheran Church, Coon Rapids","November 3 — Wedgewood Cove, Albert Lea","November 17 — Grace UMC, Fergus Falls"],Gse=["Minnesota Council of Churches e-news","Radio","Television","Newspaper","Announcement in a worship service","Announcement in another bulletin or newsletter","From a friend or word-of-mouth","Browsing Minnesota Council of Churches' website","Other"],Jse=["News for the Common Good (bi-weekly e-newsletter)","Welcoming the Stranger (quarterly newsletter about Refugee Services)","Muslim-Christian Dialogue Announcements","No, thank you."],ft=({label:e,required:t,children:n,hint:r})=>a.jsxs("div",{className:"mb-5",children:[a.jsxs(mr,{className:"block text-xs font-semibold tracking-widest uppercase text-muted-foreground mb-2",children:[e,t&&a.jsx("span",{className:"text-[hsl(var(--gold))] ml-1",children:"*"})]}),n,r&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:r})]}),Yse=()=>{const[e,t]=b.useState(""),[n,r]=b.useState(""),[s,i]=b.useState(""),[o,l]=b.useState(""),[c,u]=b.useState(""),[d,h]=b.useState(""),[f,p]=b.useState(""),[y,m]=b.useState(""),[w,v]=b.useState(""),[g,x]=b.useState(""),[C,_]=b.useState(""),[S,j]=b.useState(""),[k,T]=b.useState(""),[R,D]=b.useState(""),[O,W]=b.useState([]),[L,J]=b.useState(!1),[B,V]=b.useState(""),N=A=>W(Z=>Z.includes(A)?Z.filter(K=>K!==A):[...Z,A]),P=A=>{A.preventDefault();const Z=`RESPECTFUL CONVERSATIONS — REGISTRATION
379
380Conversation: ${e}
381Dietary restrictions: ${n}
382
383How they heard: ${s}${s==="Other"?` (${o})`:""}
384Radio/TV station: ${c}
385Newspaper: ${d}
386
387Name: ${f} ${y}
388Email: ${w}
389Address: ${g}, ${C} ${S}
390
391Place of worship: ${k}
392City of worship: ${R}
393
394Newsletters: ${O.join(", ")}
395
396Interested in hosting: ${L?"Yes":"No"}
397Host contact info: ${B}
398`;window.location.href=`mailto:[email protected]?subject=${encodeURIComponent("Respectful Conversations Registration")}&body=${encodeURIComponent(Z)}`};return a.jsx(ae,{title:"Register — Respectful Conversations",description:"Register for an upcoming Respectful Conversation hosted by the Minnesota Council of Churches.",eyebrow:"Programs › Office of Civic Dialogue › Respectful Conversations",heading:"Register for a Respectful Conversation",intro:"Thank y
398ou for strengthening your love of neighbor and making ours a more peaceful world by participating in an MCC Respectful Conversation.",breadcrumbs:Kse,section:"programs",path:"/programs/civic-dialogue/respectful-conversations/register",children:a.jsxs("div",{className:"max-w-2xl mx-auto",children:[a.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8",children:"Below you will find a registration form for currently scheduled or soon-to-be arranged conversations. Each Respectful Conversation is a structured, facilitated event beginning with a meal."}),a.jsxs("form",{onSubmit:P,className:"bg-card border border-border rounded-2xl p-8",children:[a.jsx(ft,{label:"Which conversation would you like to attend?",required:!0,children:a.jsxs(yS,{value:e,onValueChange:t,required:!0,children:[a.jsx(Jy,{children:a.jsx(bS,{placeholder:"Select a conversation"})}),a.jsx(Yy,{children:Zse.map(A=>a.jsx(ls,{value:A,children:A},A))})]})}),a.jsx(ft,{label:"What, if any, are your dietary restrictions?",children:a.jsx(fe,{value:n,onChange:A=>r(A.target.value)})}),a.jsx(ft,{label:"How did you hear about this conversation?",required:!0,children:a.jsx(j5,{value:s,onValueChange:i,children:Gse.map(A=>a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(S5,{value:A,id:`hear-${A}`}),a.jsx(mr,{htmlFor:`hear-${A}`,className:"font-normal",children:A})]},A))})}),s==="Other"&&a.jsx(ft,{label:"Other — please specify",children:a.jsx(fe,{value:o,onChange:A=>l(A.target.value)})}),a.jsx(ft,{label:"Which Radio or TV station did you hear about the conversation from?",children:a.jsx(fe,{value:c,onChange:A=>u(A.target.value)})}),a.jsx(ft,{label:"Which newspaper did you read about the conversation in?",children:a.jsx(fe,{value:d,onChange:A=>h(A.target.value)})}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsx(ft,{label:"First Name",required:!0,children:a.jsx(fe,{value:f,onChange:A=>p(A.target.value),required:!0})}),a.jsx(ft,{label:"Last Name",required:!0,children:a.jsx(fe,{value:y,onChange:A=>m(A.target.value),required:!0})})]}),a.jsx(ft,{label:"Email",required:!0,children:a.jsx(fe,{type:"email",value:w,onChange:A=>v(A.target.value),required:!0})}),a.jsx(ft,{label:"Street Address",children:a.jsx(fe,{value:g,onChange:A=>x(A.target.value)})}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsx(ft,{label:"City",children:a.jsx(fe,{value:C,onChange:A=>_(A.target.value)})}),a.jsx(ft,{label:"ZIP Code",children:a.jsx(fe,{value:S,onChange:A=>j(A.target.value)})})]}),a.jsx(ft,{label:"Name of Your Place of Worship (if any)",hint:"Fill in the name of the place where you regularly worship (if any)",children:a.jsx(fe,{value:k,onChange:A=>T(A.target.value)})}),a.jsx(ft,{label:"City of Your Place of Worship (if any)",hint:"Where is your regular place of worship located?",children:a.jsx(fe,{value:R,onChange:A=>D(A.target.value)})}),a.jsx(ft,{label:"Yes, I would like to receive e-mail news, event announcements, resources and more:",required:!0,children:a.jsx("div",{className:"space-y-2",children:Jse.map(A=>a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(vg,{id:`nl-${A}`,checked:O.includes(A),onCheckedChange:()=>N(A)}),a.jsx(mr,{htmlFor:`nl-${A}`,className:"font-normal",children:A})]},A))})}),a.jsx(ft,{label:"I am interested in hosting a Respectful Conversation at my site or through my organization. Please contact me.",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(vg,{id:"host",checked:L,onCheckedChange:A=>J(!!A)}),a.jsx(mr,{htmlFor:"host",className:"font-normal",children:"Yes"})]})}),L&&a.jsx(ft,{label:"Here is my contact information",hint:"Please provide your phone number and the organization through which you would like to host the conversation.",children:a.jsx(Ls,{value:B,onChange:A=>V(A.target.value),rows:3})}),a.jsx(ce,{type:"submit",size:"lg",className:"bg-[hsl(var(--gold))] text-[hsl(var(--gold-foreground))] hover:bg-[hsl(var(--gold))]/90 mt-2",children:"Submit Registration"})]})]})})},Qse=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Office of Civic Dialogue",href:"/programs/civic-dialogue"},{label:"Respectful Conversations",href:"/programs/civic-dialogue/respectful-conversations"},{label:"Inquiry"}],En=({label:e,required:t,children:n,hint:r})=>a.jsxs("div",{className:"mb-5",children:[a.jsxs(mr,{className:"block text-xs font-semibold tracking-widest uppercase text-muted-foreground mb-2",children:[e,t&&a.jsx("span",{className:"text-[hsl(var(--gold))] ml-1",children:"*"})]}),n,r&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:r})]}),Xse=()=>{const[e,t]=b.useState(""),[n,r]=b.useState(""),[s,i]=b.useState(""),[o,l]=b.useState(""),[c,u]=b.useState(""),[d,h]=b.useState(""),[f,p]=b.useState(""),[y,m]=b.useState(""),[w,v]=b.useState(""),[g,x]=b.useState(""),[C,_]=b.useState(""),S=j=>{j.preventDefault();const k=`RESPECTFUL CONVERSATIONS — INQUIRY / REQUEST FOR INFORMATION
399
400Name: ${e} ${n}
401Email: ${s}
402Phone: ${o}
403
404Organization / Congregation: ${c}
405Role at organization: ${d}
406City: ${f}
407
408Topic of interest: ${y}
409Anticipated audience / group size: ${w}
410Approximate timeframe: ${g}
411
412Questions / message:
413${C}
414`;window.location.href=`mailto:[email protected]?subject=${encodeURIComponent("Respectful Conversations Inquiry")}&body=${encodeURIComponent(k)}`};return a.jsx(ae,{title:"Inquire — Respectful Conversations",description:"Request more information about hosting a Respectful Conversation through your congregation, school, or community organization.",eyebrow:"Programs › Office of Civic Dialogue › Respectful Conversations",heading:"Request more information",intro:"Interested in hosting a Respectful Conversation, or want to learn more before signing up? Share a few details below and Director of the Office of Civic Dialogue Jerad Morey will be in touch.",breadcrumbs:Qse,section:"programs",path:"/programs/civic-dialogue/respectful-conversations/inquiry",children:a.jsxs("div",{className:"max-w-2xl mx-auto",children:[a.jsxs("p",{className:"text-muted-foreground leading-relaxed mb-8",children:["Use this form for general questions, or if you'd like to explore bringing a Respectful Conversation to your congregation, school, or community group. If you're ready to register for a scheduled event, please use the"," ",a.jsx("a",{href:"/programs/civic-dialogue/respectful-conversations/register",className:"text-primary font-medium hover:underline",children:"registration form"}
414)," ","instead."]}),a.jsxs("form",{onSubmit:S,className:"bg-card border border-border rounded-2xl p-8",children:[a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsx(En,{label:"First Name",required:!0,children:a.jsx(fe,{value:e,onChange:j=>t(j.target.value),required:!0})}),a.jsx(En,{label:"Last Name",required:!0,children:a.jsx(fe,{value:n,onChange:j=>r(j.target.value),required:!0})})]}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsx(En,{label:"Email",required:!0,children:a.jsx(fe,{type:"email",value:s,onChange:j=>i(j.target.value),required:!0})}),a.jsx(En,{label:"Phone",children:a.jsx(fe,{type:"tel",value:o,onChange:j=>l(j.target.value)})})]}),a.jsx(En,{label:"Organization or Congregation",children:a.jsx(fe,{value:c,onChange:j=>u(j.target.value),placeholder:"e.g. First Lutheran Church, Roosevelt High School"})}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsx(En,{label:"Your role",children:a.jsx(fe,{value:d,onChange:j=>h(j.target.value),placeholder:"Pastor, organizer, member…"})}),a.jsx(En,{label:"City",children:a.jsx(fe,{value:f,onChange:j=>p(j.target.value)})})]}),a.jsx(En,{label:"Topic you're interested in exploring",hint:"Past topics include guns, race, politics, same-sex marriage and community policing.",children:a.jsx(fe,{value:y,onChange:j=>m(j.target.value)})}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsx(En,{label:"Anticipated group size",children:a.jsx(fe,{value:w,onChange:j=>v(j.target.value),placeholder:"e.g. 20-30 participants"})}),a.jsx(En,{label:"Approximate timeframe",children:a.jsx(fe,{value:g,onChange:j=>x(j.target.value),placeholder:"e.g. Spring 2026"})})]}),a.jsx(En,{label:"Questions or additional details",required:!0,children:a.jsx(Ls,{value:C,onChange:j=>_(j.target.value),rows:5,required:!0,placeholder:"Tell us a bit about your community and what you're hoping to learn or plan."})}),a.jsx(ce,{type:"submit",size:"lg",className:"bg-[hsl(var(--gold))] text-[hsl(var(--gold-foreground))] hover:bg-[hsl(var(--gold))]/90 mt-2",children:"Send Inquiry"})]})]})})},eie=S4.url,tie=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Office of Civic Dialogue",href:"/programs/civic-dialogue"},{label:"Additional Programming"}],nie=()=>a.jsx(ae,{title:"Additional Programming",description:"Learn more about how MCC supports and encourages Minnesotans to connect, convene, and catalyze to build just, equitable, and livable communities.",eyebrow:"Programs › Office of Civic Dialogue",heading:"Additional Programming",breadcrumbs:tie,section:"programs",path:"/programs/civic-dialogue/additional",children:a.jsxs("div",{className:"space-y-12",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:eie,alt:"Attendees listening during a Changing the Narrative dialogue event",loading:"lazy",width:1024,height:683,className:"w-full h-auto object-cover aspect-[16/8]"})})}),a.jsx(E,{children:a.jsxs("div",{className:"max-w-3xl space-y-8 text-muted-foreground leading-relaxed text-lg",children:[a.jsx("p",{children:"Beyond Respectful Conversations, MCC convenes a robust array of civic dialogue programming—film screenings, facilitator trainings, leader cohorts, listening sessions, timely community discussions and events—designed to deepen the practice of bridging difference and promoting justice, healing, and reconciliation in Minnesota."}),a.jsxs("p",{className:"text-base",children:["Detailed program listings are coming soon. To learn about current opportunities, please contact Director of Civic Dialogue Jerad Morey at 612-230-3211 or"," ",a.jsx("a",{href:"mailto:[email protected]",className:"underline hover:opacity-80",children:"[email protected]"}),"."]})]})})]})}),rie=1,sie="7ef0b991-e0fc-430c-9f1c-28bdc8586278",iie="5317579a-a8ee-431d-9a53-6d8cfe773828",oie="/__l5e/assets-v1/7ef0b991-e0fc-430c-9f1c-28bdc8586278/congregational-services-hero.jpg",aie="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/7ef0b991-e0fc-430c-9f1c-28bdc8586278/congregational-services-hero.jpg",lie="congregational-services-hero.jpg",cie=272334,uie="image/jpeg",die="2026-09-08T20:14:41Z",hie={version:rie,asset_id:sie,project_id:iie,url:oie,r2_key:aie,original_filename:lie,size:cie,content_type:uie,created_at:die},fie=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Congregational Member Services"}],pie=()=>a.jsx(ae,{title:"Congregational Member Services",description:"Services available to MCC's member congregations across Minnesota.",eyebrow:"Programs",heading:"Congregational Member Services",breadcrumbs:fie,section:"programs",path:"/programs/congregational-services",children:a.jsxs("div",{className:"space-y-12",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:hie.url,alt:"Faith leaders and advocates gathered beneath a Minnesota Without Poverty banner",loading:"lazy",width:1600,height:1067,className:"w-full h-auto object-cover aspect-[16/8]"})})}),a.jsx(E,{children:a.jsxs("div",{className:"max-w-3xl space-y-8 text-muted-foreground leading-relaxed text-lg",children:[a.jsx("p",{children:"MCC offers a growing suite of services to its member congregations — convening, training, consultation, and shared resources that help local communities thrive together across denominational lines."}),a.jsx("p",{className:"text-base",children:"Detailed program listings are being refreshed for this site. Reach out to the office to learn how your congregation can engage."})]})})]})}),mie=1,gie="e66b1ada-c1ef-4816-9349-a3858b517b29",vie="5317579a-a8ee-431d-9a53-6d8cfe773828",yie="/__l5e/assets-v1/e66b1ada-c1ef-4816-9349-a3858b517b29/CBD_7376.jpg",bie="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/e66b1ada-c1ef-4816-9349-a3858b517b29/CBD_7376.jpg",xie="CBD_7376.jpg",wie=314505,Cie="image/jpeg",_ie="2026-09-02T19:34:44Z",jie={version:mie,asset_id:gie,project_id:vie,url:yie,r2_key:bie,original_filename:xie,size:wie,content_type:Cie,created_at:_ie},Sie=1,kie="bb410ee0-7f45-4da7-99fe-977d97073c83",Tie="5317579a-a8ee-431d-9a53-6d8cfe773828",Eie="/__l5e/assets-v1/bb410ee0-7f45-4da7-99fe-977d97073c83/st-paul-high-bridge-2.jpg",Nie="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/bb410ee0-7f45-4da7-99fe-977d97073c83/st-paul-high-bridge-2.jpg",Rie="st-paul-high-bridge-2.jpg",Aie=317687,Pie="image/jpeg",$ie="2026-09-02T19:25:26Z",Mie
414={version:Sie,asset_id:kie,project_id:Tie,url:Eie,r2_key:Nie,original_filename:Rie,size:Aie,content_type:Pie,created_at:$ie},Oie=1,Iie="087f8d8b-968c-4034-bddd-b6839b6758ee",Die="5317579a-a8ee-431d-9a53-6d8cfe773828",Lie="/__l5e/assets-v1/087f8d8b-968c-4034-bddd-b6839b6758ee/greater-mankato-area-scaled-2.jpg",zie="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/087f8d8b-968c-4034-bddd-b6839b6758ee/greater-mankato-area-scaled-2.jpg",Fie="greater-mankato-area-scaled-2.jpg",Uie=813586,Bie="image/jpeg",Vie="2026-09-02T19:25:44Z",Hie={version:Oie,asset_id:Iie,project_id:Die,url:Lie,r2_key:zie,original_filename:Fie,size:Uie,content_type:Bie,created_at:Vie},Wie=1,qie="6fff884d-e453-4e69-8612-bb709b3a106f",Kie="5317579a-a8ee-431d-9a53-6d8cfe773828",Zie="/__l5e/assets-v1/6fff884d-e453-4e69-8612-bb709b3a106f/refugee-family-embrace.jpg",Gie="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/6fff884d-e453-4e69-8612-bb709b3a106f/refugee-family-embrace.jpg",Jie="refugee-family-embrace.jpg",Yie=151331,Qie="image/jpeg",Xie="2026-09-02T19:27:03Z",eoe={version:Wie,asset_id:qie,project_id:Kie,url:Zie,r2_key:Gie,original_filename:Jie,size:Yie,content_type:Qie,created_at:Xie},toe=1,noe="ff108e00-57ec-484b-a4cf-756ac9a1ebf2",roe="5317579a-a8ee-431d-9a53-6d8cfe773828",soe="/__l5e/assets-v1/ff108e00-57ec-484b-a4cf-756ac9a1ebf2/immigration-legal-hero.webp",ioe="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/ff108e00-57ec-484b-a4cf-756ac9a1ebf2/immigration-legal-hero.webp",ooe="immigration-legal-hero.webp",aoe=22920,loe="image/webp",coe="2026-09-01T20:14:44Z",CS={version:toe,asset_id:noe,project_id:roe,url:soe,r2_key:ioe,original_filename:ooe,size:aoe,content_type:loe,created_at:coe},uoe=jie.url,doe=Mie.url,hoe=Hie.url,foe=eoe.url,poe=CS.url,moe=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Refugee & Immigrant Services"}],goe=[{figure:"10,000+",label:"Refugees welcomed since 1984"},{figure:"1984",label:"MCC began welcoming refugees"},{figure:"2012",label:"Mankato hub established"}],voe=()=>a.jsx(ae,{title:"Refugee & Immigrant Services",description:"Since 1984, the Minnesota Council of Churches has welcomed more than 10,000 refugees from around the world to lives of freedom, hope, and opportunity in Minnesota.",eyebrow:"Programs",heading:"Refugee & Immigrant Services",breadcrumbs:moe,section:"programs",path:"/programs/refugee-services",children:a.jsxs("div",{className:"space-y-16",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:uoe,alt:"A man in a kufi sharing a warm hug with a caseworker at a community gathering",loading:"lazy",width:1920,height:1278,className:"w-full h-auto object-cover aspect-[16/7]"})})}),a.jsx(E,{stagger:!0,children:a.jsxs("div",{className:"max-w-3xl space-y-6 text-muted-foreground leading-relaxed",children:[a.jsx("p",{children:"Since 1984, the Minnesota Council of Churches has welcomed more than 10,000 refugees from around the world to lives of freedom, hope, and opportunity in Minnesota."}),a.jsx("p",{children:"In 2025, changes in federal policy drastically reduced the numbers of refugees and immigrants coming to the U.S. as well as the federal funding that MCC has historically utilized to support these individuals. Most of these new Americans are people of color and continue to need support and services."}),a.jsx("p",{children:"MCC continues to provide those services and, through our new strategic plan, is carefully re-shaping programs to address polarization and division in our country with respect and compassion."}),a.jsx("p",{children:"Refugee and Immigrant Services has its primary office in the Twin Cities and, since 2012, has a secondary hub in Mankato for the growing refugee population."})]})}),a.jsx(E,{children:a.jsx(w4,{stats:goe,countUp:!0,ariaLabel:"Refugee & Immigrant Services by the numbers"})}),a.jsx(E,{children:a.jsx(ws,{eyebrow:"Twin Cities",heading:"Twin Cities Programming",body:"Employment, case management, education, and immigration services through our St. Paul office.",image:{src:doe,alt:"St. Paul skyline at twilight with lights reflecting on the Mississippi River"}
414,cta:{label:"Learn more",href:"/programs/refugee-services/twin-cities"}})}),a.jsx(E,{children:a.jsx(ws,{reverse:!0,eyebrow:"Mankato",heading:"Mankato Programming",body:"Employment, community navigation, and immigration support for refugees and immigrants in southern Minnesota.",image:{src:hoe,alt:"Aerial view of Mankato with the river, rail line, and downtown among green trees"},cta:{label:"Learn more",href:"/programs/refugee-services/mankato"}})}),a.jsx(E,{children:a.jsx(ws,{eyebrow:"Legal services",heading:"Immigration Legal Services",body:"MCC is an accredited, U.S. Department of Justice-recognized agency providing immigration legal services for eligible refugees, asylees, and immigrant populations in Minnesota.",image:{src:poe,alt:"An MCC caseworker reviewing immigration paperwork alongside a client"},cta:{label:"Learn more",href:"/programs/refugee-services/legal"}})}),a.jsx(E,{children:a.jsx(ws,{reverse:!0,eyebrow:"Get involved",heading:"How to Help Refugees",body:"Concrete ways to support New Americans through donations, items, and advocacy.",image:{src:foe,alt:"A young girl held in a warm embrace by her mother outdoors"},imageClassName:"object-[50%_25%]",cta:{label:"Learn more",href:"/programs/refugee-services/how-to-help"}})})]})}),yoe=1,boe="51ae3f02-3fd5-43e4-aaf6-fe45e5c66a3b",xoe="5317579a-a8ee-431d-9a53-6d8cfe773828",woe="/__l5e/assets-v1/51ae3f02-3fd5-43e4-aaf6-fe45e5c66a3b/refugees-in-mn-1.jpg",Coe="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/51ae3f02-3fd5-43e4-aaf6-fe45e5c66a3b/refugees-in-mn-1.jpg",_oe="refugees-in-mn-1.jpg",joe=828926,Soe="image/jpeg",koe="2026-09-01T20:09:39Z",Toe={version:yoe,asset_id:boe,project_id:xoe,url:woe,r2_key:Coe,original_filename:_oe,size:joe,content_type:Soe,created_at:koe},Eoe=1,Noe="f6f1d86b-91a5-4346-a055-108ce3b7ae86",Roe="5317579a-a8ee-431d-9a53-6d8cfe773828",Aoe="/__l5e/assets-v1/f6f1d86b-91a5-4346-a055-108ce3b7ae86/refugees-in-mn-2.webp",Poe="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/f6f1d86b-91a5-4346-a055-108ce3b7ae86/refugees-in-mn-2.webp",$oe="refugees-in-mn-2.webp",Moe=148880,Ooe="image/webp",Ioe="2026-09-01T20:09:42Z",Doe={version:Eoe,asset_id:Noe,project_id:Roe,url:Aoe,r2_key:Poe,original_filename:$oe,size:Moe,content_type:Ooe,created_at:Ioe},Loe=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Refugee & Immigrant Services",href:"/programs/refugee-services"},{label:"Who are Refugees?"}],zoe=[["100,000+","Refugees welcomed to Minnesota since 1970"],["$1.8 billion","Spending power of Minnesotans with refugee status"],["57%","Of Minnesotans with refugee status own their homes"],["Since 1984","MCC Refugee Services has welcomed refugees to Minnesota"]],Foe=[["Refugee Resettlement Process","Refugee Council USA","https://rcusa.org/resettlement/resettlement-process/"],["Refugee Facts & Resettlement in the U.S.","UNHCR","https://www.unhcr.org/en-us/resettlement-in-the-united-states.html"],["Detailed Description of Refugee Security Screening","USCIS","https://www.uscis.gov/refugeescreening"],["Economic Impact of Refugees in America","New American Economy","https://www.newamericaneconomy.org/wp-content/uploads/2017/06/NAE_Refugees_V5.pdf"],["Refugee Vetting 101 (video)","NPR","https://www.youtube.com/watch?v=nVHdu4Br3Ds"]],Uoe=()=>a.jsxs(ae,{title:"Who are Refugees?",description:"Who refugees are, how resettlement works, and the contributions people with refugee status make in Minnesota.",eyebrow:"Refugee & Immigrant Services",heading:"Who are Refugees?",intro:"Learn more about what refugee status means, how resettlement works, and the many strengths and benefits refugees bring to Minnesota.",breadcrumbs:Loe,section:"programs",path:"/programs/refugee-services/about-refugees",children:[a.jsxs(E,{as:"div",className:"my-12",children:[a.jsx("img",{src:Toe.url,alt:"Infographic: Welcoming refugees makes Minnesota stronger — people with refugee status contribute in taxes, fill critical jobs, start businesses, and build diverse communities.",loading:"lazy",className:"w-full h-auto rounded-2xl border border-border"}),a.jsx("figcaption",{className:"text-sm text-muted-foreground mt-3",children:"Designed by Daisy Chung"})]}),a.jsxs(E,{as:"div",className:"max-w-2xl",children:[a.jsx("p",{className:"text-base leading-relaxed text-foreground
414/85 mb-5",children:"People with refugee status have fled their home countries because of persecution based on their identity—race, religion, ethnicity, membership in a social group, or political opinion. They are unable to return home for fear of further persecution, imprisonment, or death. Refugees who resettle in the United States come by invitation of the U.S. Department of State and have a direct path to U.S. citizenship. They are authorized to work and to remain in the U.S. indefinitely."}),a.jsx("p",{className:"text-base leading-relaxed text-foreground/85 mb-5",children:"Minnesota has long been a leader in refugee resettlement, welcoming more than 100,000 refugees since 1970. MCC Refugee Services has been welcoming refugees to Minnesota since 1984 through its partnership with Episcopal Migration Ministries. Refugees are survivors who bring hope and invaluable life experience to Minnesota."}),a.jsx("p",{className:"text-base leading-relaxed text-foreground/85",children:"After arriving in the U.S., people with refugee status quickly put down roots and become earners and taxpayers. They have high rates of entrepreneurship and fill critical gaps in the labor market. New arrivals may need some help getting on their feet, but over the long term they contribute more in taxes than they receive in benefits. Minnesotans with refugee status have $1.8 billion in spending power and 57% own homes. Refugees make communities stronger through their life experiences, cultural values, and economic contributions."})]}),a.jsx(E,{as:"div",stagger:!0,className:"grid sm:grid-cols-2 gap-4 my-12",children:zoe.map(([e,t])=>a.jsxs("div",{className:"rounded-2xl border border-border bg-secondary/60 p-6",children:[a.jsx("div",{className:"font-serif text-3xl text-[hsl(var(--teal))]",children:e}),a.jsx("p",{className:"text-sm text-muted-foreground mt-2 leading-relaxed",children:t})]},t))}),a.jsxs(E,{as:"div",className:"max-w-2xl",children:[a.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-[hsl(var(--navy))] mb-4",children:"The process of refugee resettlement"}),a.jsx("p",{className:"text-base leading-relaxed text-foreground/85 mb-5",children:"After fleeing their country to escape persecution, many refugees seek safety in refugee camps or urban areas. Most refugees who resettle in the U.S. have spent years, or even decades, in refugee camps."}),a.jsx("p",{className:"text-base leading-relaxed text-foreground/85 mb-5",children:"Once they have fled, individuals may apply for refugee status, which is conferred by the United Nations High Commissioner for Refugees (UNHCR) upon verification of their claims. The hope is that most refugees will eventually be able to return safely to their home country or settle in a neighboring region. When neither option is possible, families may apply for permanent resettlement in another country. Fewer than half of one percent of the world's refugees have the opportunity to resettle each year."}),a.jsx("p",{className:"text-base leading-relaxed text-foreground/85 mb-5",children:"The U.S. has long been the world's leader in refugee resettlement; since 1980, the U.S. has typically welcomed over 70,000 refugees each year. Refugees applying for resettlement in the U.S. face a long and complex process of interviews, security and health screenings, and cultural orientations before traveling here."}),a.jsx("p",{className:"text-base leading-relaxed text-foreground/85 mb-5",children:"Families resettled in the U.S. come by invitation of the U.S. Department of State and have a direct path to U.S. citizenship. They are authorized to work immediately upon arrival and remain in the U.S. indefinitely. This is different from the temporary refuge sometimes granted to refugees in other countries."}),a.jsx("p",{className:"text-base leading-relaxed text-foreground/85",children:"The U.S. Department of State contracts with nonprofit organizations such as Episcopal Migration Ministries and MCC Refugee Services to welcome and resettle those granted refugee status. Located in cities and towns throughout the country, resettlement agencies place refugees into local communities, following national standards of service designed to help them integrate and become self-sufficient. Resettlement agencies partner with local resources and faith communities to ensure a warm welcome to people with refugee status."})]}),a.jsxs(E,{as:"div",className:"my-12",children:[a.jsx("img",{src:Doe.url,alt:"Infographic: As Minne
414sotans we strive to treat all people with the compassion they deserve — the journey from fleeing home, to living in limbo, to arriving in a U.S. resettlement city, to making Minnesota home, plus ways you can help: talk, support, donate, and volunteer.",loading:"lazy",className:"w-full h-auto rounded-2xl border border-border"}),a.jsx("figcaption",{className:"text-sm text-muted-foreground mt-3",children:"Designed by Daisy Chung"})]}),a.jsxs(E,{as:"div",className:"my-12",children:[a.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-[hsl(var(--navy))] mb-4",children:"Learn more"}),a.jsx("div",{className:"grid gap-3",children:Foe.map(([e,t,n])=>a.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"group flex items-center justify-between gap-3 rounded-xl border border-border bg-card p-5 hover:border-[hsl(var(--teal))] hover:shadow-md transition-all",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"font-serif text-lg text-[hsl(var(--navy))] leading-snug group-hover:text-[hsl(var(--teal))] transition-colors",children:e}),a.jsx("div",{className:"text-xs font-mono tracking-wider uppercase text-muted-foreground mt-1",children:t})]}),a.jsx(md,{className:"h-4 w-4 text-[hsl(var(--teal))] shrink-0"})]},n))})]}),a.jsx(E,{as:"div",children:a.jsxs("div",{className:"rounded-2xl border border-border bg-secondary/60 p-6 md:p-8",children:[a.jsx("h2",{className:"font-serif text-xl md:text-2xl text-[hsl(var(--navy))] mb-2",children:"Ready to welcome a neighbor?"}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:"Congregations, volunteers, and donors make a warm welcome possible across Minnesota."}),a.jsxs(Y,{to:"/programs/refugee-services/how-to-help",className:"inline-flex items-center gap-1 text-sm font-medium text-[hsl(var(--gold))]",children:["How to help refugees ",a.jsx(md,{className:"h-4 w-4"})]})]})})]}),kw="https://storage.googleapis.com/gpt-engineer-file-uploads/XOk7urKH1fgKDbgsThtEVWOxD2y1/social-images/social-1775717878144-MCC_Logo_-_Social_Sharing.webp",Boe=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Refugee & Immigrant Services",href:"/programs/refugee-services"},{label:"Immigration Legal Services"}],Voe=[{title:"Green Card Assistance",body:"Refugees who have been in the United States for one year and asylees with granted asylum for one year can apply for permanent residence."},{title:"Citizenship Guidance",body:"If you have a green card and have been in the United States for five years, you can apply to become a U.S. citizen."}],Hoe=[{title:"Replacing a lost or stolen green card or I-94"},{title:"EAD cards"},{title:"Applying for a travel document"},{title:"I-130 Alien Relative Petitions"},{title:"Immigration legal services for New American long-term care workforce"}],Tw=({s:e})=>a.jsxs("li",{className:"bg-card border border-border rounded-xl p-6 flex flex-col gap-2",children:[a.jsx("p",{className:"font-serif text-lg text-[hsl(var(--navy))]",children:e.title}),e.body&&a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.body})]}),Woe=()=>a.jsxs(a.Fragment,{children:[a.jsxs(sa,{children:[a.jsx("meta",{property:"og:image",content:kw}),a.jsx("meta",{name:"twitter:image",content:kw})]}),a.jsx(ae,{title:"Immigration Legal Services",description:"MCC is an accredited, U.S. Department of Justice-recognized agency providing immigration legal services for eligible refugees, asylees, and immigrant populations in Minnesota.",eyebrow:"Programs › Refugee & Immigrant Services",heading:"Immigration Legal Services",breadcrumbs:Boe,section:"programs",path:"/programs/refugee-services/legal",children:a.jsxs("div",{className:"space-y-14",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:CS.url,alt:"A smiling young woman wearing an olive-green hijab holds two small American flags in front of her in a brightly lit indoor setting",loading:"lazy",width:1090,height:455,className:"w-full h-auto object-cover aspect-[16/8]"})})}),a.jsx(E,{children:a.jsxs("section",{"aria-labelledby":"available-services",className:"space-y-6 max-w-3xl",children:[a.jsx("h2",{id:"available-services",className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",children:"Available Immigration Legal Services through MCC"}),a.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"MCC is an accredited U.S. Department of Justice-recognized agency that provides immigration legal services for eligible refugees, asylees, and immigrant populations in Minnesota. MCC provides assistance with the initial application and maintains a copy of the client's application on file. We provide comprehensive services and follow-up until a decision is reached on each case."})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-labelledby":"services-list",className:"space-y-6",children:[a.jsx("h3",{id:"services-list",className:"text-2xl md:text-3xl font-serif text-[hsl(var(--navy))] max-w-3xl",children:"Immigration Legal Services primarily provides the following services for refugees, asylees, and eligible populations in the Twin Cities and Mankato areas:"}),a.jsx("ul",{className:"grid gap-4 sm:grid-cols-2 list-none pl-0",children:Voe.map(e=>a.jsx(Tw,{s:e},e.title))}),a.jsx("h4",{className:"text-xl md:text-2xl font-serif text-[hsl(var(--navy))] max-w-3xl",children:"Other Immigration Services"}),a.jsx("ul",{className:"grid gap-4 sm:grid-cols-2 list-none pl-0",children:Hoe.map(e=>a.jsx(Tw,{s:e},e.title))})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Walk-in hours",className:"grid gap-6 md:grid-cols-2",children:[a.jsxs("div",{className:"bg-card border border-border rounded-2xl p-6 md:p-8 space-y-3",children:[a.jsx("h3",{className:"font-serif text-xl md:text-2xl text-[hsl(var(--navy))]",children:"Immigration Walk-In Hours in the Twin Cities:"}),a.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["Walk-in hours take place every Thursday, from 9:00 a.m. to 12:00 p.m. at our St. Paul office: 1600 University Ave., Ste. 500, St. Paul, MN 55104. For assistance and more information, please call"," ",a.jsx("a",{href:"tel:6128703600",className:"text-primary font-medium hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",children:"612-870-3600"}),"."]})]}),a.jsxs("div",{className:"bg-card border border-border rounded-2xl p-6 md:p-8 space-y-3",children:[a.jsx("h3",{className:"font-serif text-xl md:text-2xl text-[hsl(var(--navy))]",children:"Immigration Walk-In Hours in Mankato:"}),a.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["Walk-in hours take place every Thursday, from 9:00 a.m. to 12:00 p.m at MCC's Mankato Office (501 S. Second St., Mankato, MN 56001). For assistance and more information, please call",a.jsx("a",{href:"tel:5073451554",className:"text-primary font-medium hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",children:"507-345-1554"}),"."]})]})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-labelledby":"regret",className:"bg-secondary border border-border rounded-2xl p-6 md:p-8 space-y-4 max-w-3xl",children:[a.jsx("h3",{id:"regret",className:"font-serif text-xl md:text-2xl text-[hsl(var(--navy))]",children:"We regret that:"}),a.jsxs("ul",{className:"list-disc pl-6 space-y-2 text-muted-foreground leading-relaxed",children:[a.jsx("li",{children:"We cannot complete new applications during walk-ins"}),a.jsx("li",{children:"We cannot do case follow-up for clients who filed cases with other agencies or on their own"}),a.jsx("li",{children:"We cannot provide interpreters during walk-in sessions"})]})]})})]})})]}),qoe=1,Koe="f5ed37b8-44f2-4d97-b6c3-6a9b62f8f6c1",Zoe="5317579a-a8ee-431d-9a53-6d8cfe773828",Goe="/__l5e/assets-v1/f5ed37b8-44f2-4d97-b6c3-6a9b62f8f6c1/st-paul-high-bridge.jpg",Joe="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/f5ed37b8-44f2-4d97-b6c3-6a9b62f8f6c1/st-paul-high-bridge.jpg",Yoe="st-paul-high-bridge.jpg",Qoe=317687,
414Xoe="image/jpeg",eae="2026-09-01T20:17:22Z",tae={version:qoe,asset_id:Koe,project_id:Zoe,url:Goe,r2_key:Joe,original_filename:Yoe,size:Qoe,content_type:Xoe,created_at:eae},nae=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Refugee & Immigrant Services",href:"/programs/refugee-services"},{label:"Twin Cities Programming"}],rae=[{icon:xj,title:"Employment",body:"Clients get help finding jobs to develop greater independence and self-sufficiency."},{icon:Bs,title:"Case Management",body:"Help with housing, public assistance, health insurance, public school enrollment, and medical needs, including sustained assistance for people with complex medical, mental health, or social adjustment needs."},{icon:bj,title:"Education",body:"Orientation classes covering such topics as using public transportation, housing, public benefits, safety, finances, public schools and education, preparing for work, and cultural values."},{icon:yh,title:"Community Engagement",body:a.jsxs(a.Fragment,{children:["Presentations and workshops focused on refugees, diversity, and other topics related to welcoming our newest neighbors. Email"," ",a.jsx("a",{href:"mailto:[email protected]",className:"text-[hsl(var(--teal))] underline underline-offset-2 hover:opacity-80",children:"[email protected]"})," ","to learn more or request a speaker."]})},{icon:kj,title:"Immigration",body:"DOJ-accredited immigration specialists provide assistance with applications, paperwork, and advice for family reunification, green card applications, citizenship, and more."}],sae=()=>a.jsx(ae,{title:"Twin Cities Programming",description:"MCC provides specialized services for refugees, asylees, SIV holders, Cuban/Haitian entrants, victims of trafficking, and Amerasians in the Twin Cities.",eyebrow:"Programs › Refugee & Immigrant Services",heading:"Twin Cities Programming",breadcrumbs:nae,section:"programs",path:"/programs/refugee-services/twin-cities",children:a.jsxs("div",{className:"space-y-14",children:[a.jsx(E,{children:a.jsxs("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:[a.jsx("img",{src:tae.url,alt:"St. Paul skyline viewed from the High Bridge at sunset",loading:"lazy",className:"w-full h-auto"}),a.jsx("figcaption",{className:"px-4 py-3 text-sm text-muted-foreground",children:"Photo by Greg Benz Photography"})]})}),a.jsx(E,{children:a.jsx("div",{className:"max-w-3xl space-y-6 text-muted-foreground leading-relaxed",children:a.jsx("p",{children:"MCC provides specialized services for individuals with humanitarian protection status to assist them on their path to self-sufficiency. Our services are holistic and family-centered. We serve refugees, asylees, Special Immigrant Visa (SIV) holders, Cuban/Haitian entrants, victims of trafficking, and Amerasians for up to five years from date of admission to the U.S. in qualifying status, date of grant of asylum, or date of certification as a Victim of Trafficking."})})}),a.jsx(E,{stagger:!0,children:a.jsx("ul",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3 list-none pl-0",children:rae.map(e=>a.jsxs("li",{className:"flex flex-col bg-card rounded-2xl border border-border p-6 shadow-sm",children:[a.jsx(e.icon,{className:"h-8 w-8 text-[hsl(var(--gold))] mb-4",strokeWidth:1.5,"aria-hidden":"true"}),a.jsx("h3",{className:"font-serif text-xl text-[hsl(var(--navy))] mb-2",children:e.title}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.body}),e.title==="Immigration"&&a.jsxs(Y,{to:"/programs/refugee-services/legal",className:"mt-4 inline-flex items-center gap-1 text-sm font-medium text-primary hover:gap-2 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",children:["Immigration Legal Services ",a.jsx(nt,{className:"h-4 w-4"})]})]},e.title))})}),a.jsx(E,{children:a.jsxs("section",{"aria-labelledby":"tc-walkin",className:"bg-card border border-border rounded-2xl p-6 md:p-8 space-y-3 max-w-3xl",children:[a.jsx("h3",{id:"tc-walkin",className:"font-serif text-xl md:text-2xl text-[hsl(var(--navy))]",children:"Immigration Walk-In Hours in the Twin Cities:"}),a.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["Walk-in hours take place every Thursday, from 9:00 a.m. to 12:00 p.m. at our St. Paul office: 1600 University Ave., Suite 500, St. Paul, MN 55104. For assistance and more information, please call"," ",a.jsx("a",{href:"tel:6128703600",className:"text-primary font-medium hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",children:"612-870-3600"}),"."]})]})})]})}),iae=1,oae="d26dd1e6-27ef-4fd8-ba01-dd09acb13e61",aae="5317579a-a8ee-431d-9a53-6d8cfe773828",lae="/__l5e/assets-v1/d26dd1e6-27ef-4fd8-ba01-dd09acb13e61/greater-mankato.jpg",cae="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/d26dd1e6-27ef-4fd8-ba01-dd09acb13e61/greater-mankato.jpg",uae="greater-mankato.jpg",dae=813586,hae="image/jpeg",fae="2026-09-01T20:20:03Z",pae={version:iae,asset_id:oae,project_id:aae,url:lae,r2_key:cae,original_filename:uae,size:dae,content_type:hae,created_at:fae},mae=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Refugee & Immigrant Services",href:"/programs/refugee-services"},{label:"Mankato Programming"}],gae=[{icon:xj,title:"Employment",body:"Clients get help finding jobs to develop greater independence and self-sufficiency."},{icon:Bs,title:"Community Navigation",body:"Help with housing, public assistance, health insurance, public school enrollment, and medical needs, including sustained assistance for people with complex medical, mental health, or social adjustment needs."},{icon:yh,title:"Community Engagement",body:a.jsxs(a.Fragment,{children:["Presentations and workshops for communities interested in learning more about refugees, diversity, community welcome, and other topics related to welcoming our newest neighbors. Please contact us at 507-345-1554 or"," ",a.jsx("a",{href:"mailto:[email protected]",className:"text-[hsl(var(--teal))] underline underline-offset-2 hover:opacity-80",children:"[email protected]"})," ","to learn more or request a speaker."]})},{icon:kj,title:"Immigration",body:"DOJ-accredited immigration specialists provide assistance with applications, paperwork, and advice for family reunification, green card applications, citizenship, and more."}],lu="text-primary font-medium hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",vae=()=>a.jsx(ae,{title:"Mankato Programming",description:"The MCC Mankato Office serves refugees, asylees, SIV holders, Cuban/Haitian entrants, victims of trafficking, and others who have immigrated to the Mankato area.",eyebrow:"Programs › Refugee & Immigrant Services",heading:"Mankato Programming",breadcrumbs:mae,section:"programs",path:"/programs/refugee-services/mankato",children:a.jsxs("div",{className:"space-y-14",children:[a.jsx(E,{children:a.jsxs("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:[a.jsx("img",{src:pae.url,alt:"Aerial view of the Greater Mankato area along the Minnesota River",loading:"lazy",className:"w-full h-auto"}),a.jsx("figcaption",{className:"px-4 py-3 text-sm text-muted-foreground",children:"Source: Greater Mankato Relocation Guide"})]})}),a.jsx(E,{children:a.jsx("div",{className:"max-w-3xl space-y-6 text-muted-foreground leading-relaxed",children:a.jsx("p",{children:"The MCC Mankato office serves refugees, asylees, Special Immigrant Visa (SIV) holders, Cuban/Haitian entrants, victims of trafficking, and others who have immigrated to the Mankato area. Appointments required in advance."})})}),a.jsx(E,{stagger:!0,children:a.jsx("ul",{className:"grid gap-6 md:grid-cols-2 list-none pl-0",children:gae.map(e=>a.jsxs("li",{className:"flex flex-col bg-card rounded-2xl border border-border p-6 shadow-sm",children:[a.jsx(e.icon,{className:"h-8 w-8 text-[hsl(var(--gold))] mb-4",strokeWidth:1.5,"aria-hidden":"true"}),a.jsx("h3",{className:"font-serif text-xl text-[hsl(var(--navy))] mb-2",children:e.title}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.body})]},e.title))})}),a.jsx(E,{children:a.jsxs("div",{className:"max-w-3xl space-y-6 text-muted-foreground leading-relaxed",children:[a.jsxs("p",{children:["MCC Mankato is proud to partner with"," ",a.jsx("a",{href:"https://www.mankatounitedway.org/",target:"_blank",rel:"noopener noreferrer",className:lu,children:"Greater Mankato United Way"}),","," ",a.jsx("a",{href:"https://lutheranvolunteercorps.org/",target:"_blank",rel:"noopener noreferrer",className:lu,children:"Lutheran Volunteer Corps"}),", and the"," ",a.jsx("a",{href:"https://mn.gov/dhs/",target:"_blank",rel:"noopener noreferrer",className:lu,children:"Department of Human Services"}),"."]}),a.jsxs("p",{children:["MCC Refugee Services works closely with and represents the"," ",a.jsx(Y,{to:"/about/members",className:lu,children:"denominational and judicatory partners"})," ","of the Minnesota Council of Churches. We partner with individuals, congregations of many denominations, community resources, and public agencies to ensure families are welcomed and have the resources they need to become self-sufficient."]}),a.jsx("p",{children:"MCC serves as a Social Service Access Hub (SSAH) to connect eligible New Americans across southwest Minnesota with housing, food, and transportation assistance through partners within Minnesota's Immigration Legal Services."})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-labelledby":"mankato-walkin",className:"bg-card border border-border rounded-2xl p-6 md:p-8 space-y-3 max-w-3xl",children:[a.jsx("h3",{id:"mankato-walkin",className:"font-serif text-xl md:text-2xl text-[hsl(var(--navy))]",children:"Immigration Walk-In Hours in Mankato:"}),a.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:["Walk-in hours at MCC's Mankato Office at 501 S. Second St., Mankato, MN 56001 take place Thursdays from 9:00 a.m. to 12:00 p.m. For assistance and more information, please call"," ",a.jsx("a",{href:"tel:5073451554",className:"text-primary font-medium hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2 rounded",children:"507-345-1554"}),"."]})]})})]})}),yae=1,bae="1dd47714-7b88-4c97-ad37-349a4c1d51e7",xae="5317579a-a8ee-431d-9a53-6d8cfe773828",wae="/__l5e/assets-v1/1dd47714-7b88-4c97-ad37-349a4c1d51e7/how-to-help-family.jpg",Cae="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/1dd47714-7b88-4c97-ad37-349a4c1d51e7/how-to-help-family.jpg",_ae="how-to-help-family.jpg",jae=607347,Sae="image/jpeg",kae="2026-09-01T19:54:53Z",Tae={version:yae,asset_id:bae,project_id:xae,url:wae,r2_key:Cae,original_filename:_ae,size:jae,content_type:Sae,created_at:kae},Eae=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Refugee & Immigrant Services",href:"/programs/refugee-services"},{label:"How to Help Refugees"}],Nae=[{icon:_j,title:"Make a financial gift",body:"A financial gift is the fastest way to support refugees and immigrants resettling in Minnesota.",href:"/get-involved/donate",linkLabel:"Donate"},{icon:Bs,title:"Join a volunteer orientation",body:"Take the next step toward helping refugees and immigrants resettling in Minnesota through MCC. More information coming soon."},{icon:pN,title:"Contact the office",body:`Contact the office to ask what families need most right now.
415
416
417Call 612-870-3600 or email [email protected].`}],Rae=()=>a.jsx(ae,{title:"How to Help Refugees",description:"Concrete ways to help refugees and immigrants resettling in Minnesota through MCC.",eyebrow:"Programs › Refugee & Immigrant Services",heading:"How to Help Refugees",breadcrumbs:Eae,section:"programs",path:"/programs/refugee-services/how-to-help",children:a.jsxs("div",{className:"space-y-14",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:Tae.url,alt:"A mother and three children sitting together on a couch at home, smiling",loading:"lazy",width:1920,height:1036,className:"w-full h-auto object-cover aspect-[16/8]"})})}),a.jsx(E,{children:a.jsxs("div",{className:"max-w-3xl space-y-6 text-muted-foreground leading-relaxed text-lg",children:[a.jsx("p",{children:"There are many ways to help refugees and immigrants resettling in Minnesota through MCC—from financial gifts and in-kind donations, to volunteering, advocating, and congregational sponsorship."}),a.jsx("p",{className:"text-base",children:"Detailed how-to-help listings are being updated at this time. Currently, the fastest ways to make a difference are a financial gift, joining a volunteer orientation, or contacting the office to ask what families need most right now."})]})}),a.jsx(E,{stagger:!0,children:a.jsx(Ly,{items:Nae,columns:3})})]})}),Aae=1,Pae="c35b869b-24c2-40e4-a911-cbe7ac8c0c94",$ae="5317579a-a8ee-431d-9a53-6d8cfe773828",Mae="/__l5e/assets-v1/c35b869b-24c2-40e4-a911-cbe7ac8c0c94/standing-in-the-gap-2.jpg",Oae="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/c35b869b-24c2-40e4-a911-cbe7ac8c0c94/standing-in-the-gap-2.jpg",Iae="standing-in-the-gap-2.jpg",Dae=480155,Lae="image/jpeg",zae="2026-09-08T20:08:44Z",Fae={version:Aae,asset_id:Pae,project_id:$ae,url:Mae,r2_key:Oae,original_filename:Iae,size:Dae,content_type:Lae,created_at:zae},Uae=1,Bae="6675f7e2-90f3-4969-8587-68727105e83b",Vae="5317579a-a8ee-431d-9a53-6d8cfe773828",Hae="/__l5e/assets-v1/6675f7e2-90f3-4969-8587-68727105e83b/taking-heart-option-3.jpg",Wae="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/6675f7e2-90f3-4969-8587-68727105e83b/taking-heart-option-3.jpg",qae="taking-heart-option-3.jpg",Kae=566112,Zae="image/jpeg",Gae="2026-09-08T20:11:24Z",Jae={version:Uae,asset_id:Bae,project_id:Vae,url:Hae,r2_key:Wae,original_filename:qae,size:Kae,content_type:Zae,created_at:Gae},Ew="https://storage.googleapis.com/gpt-engineer-file-uploads/XOk7urKH1fgKDbgsThtEVWOxD2y1/social-images/social-1775717878144-MCC_Logo_-_Social_Sharing.webp",Yae=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Justice & Advocacy"}],Qae=["Community partnerships and coalition-building","Public dialogue and bridge-building efforts","Shared advocacy initiatives","Educational opportunities and relationship development","Collaborative responses to community challenges and crises"],Xae=()=>a.jsxs(a.Fragment,{children:[a.jsxs(sa,{children:[a.jsx("meta",{property:"og:image",content:Ew}),a.jsx("meta",{name:"twitter:image",content:Ew})]}
417),a.jsx(ae,{title:"Justice & Advocacy",description:"The Minnesota Council of Churches embeds racial justice across its programs, partnerships, advocacy, and interfaith collaboration throughout Minnesota.",eyebrow:"Programs",heading:"Justice & Advocacy",breadcrumbs:Yae,section:"programs",path:"/programs/justice-advocacy",children:a.jsxs("div",{className:"space-y-14",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:Fae.url,alt:"Standing in the Gap for Our Children event with a speaker at the podium",loading:"lazy",className:"w-full h-auto object-cover aspect-[16/8]"})})}),a.jsx(E,{children:a.jsxs("div",{className:"max-w-3xl space-y-6 text-lg text-muted-foreground leading-relaxed",children:[a.jsx("p",{children:"Racial justice work is embedded across MCC's programs, partnerships, advocacy efforts, and organizational practices. MCC seeks to promote equity, reconciliation, public witness, and systems change through both internal organizational work and external community engagement."}),a.jsx("p",{children:"MCC values relationships across faith traditions and works collaboratively with interfaith partners to strengthen understanding, cooperation, and shared action for the common good."})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Interfaith engagement",className:"space-y-6",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",children:"Interfaith engagement includes:"}),a.jsx("ul",{className:"grid gap-3 sm:grid-cols-2 list-none pl-0",children:Qae.map(e=>a.jsxs("li",{className:"flex gap-3 bg-card border border-border rounded-xl p-5 text-foreground/85",children:[a.jsx("span",{"aria-hidden":"true",className:"mt-2 h-2 w-2 shrink-0 rounded-full bg-[hsl(var(--gold))]"}),a.jsx("span",{className:"leading-relaxed",children:e})]},e))})]})}),a.jsx(E,{children:a.jsxs("div",{className:"max-w-3xl space-y-6 text-lg text-muted-foreground leading-relaxed",children:[a.jsx("p",{children:"This work reflects MCC's commitment to reconciliation, public witness, and building stronger communities across lines of faith and difference."}),a.jsx("p",{children:"Key partnerships in this area of MCC's work include Taking Heart, a collaboration with the Muslim American Society of Minnesota (MAS-MN) that has continued for more than 20 years (see the Taking Heart page for more information), and working together with the Minnesota Multifaith Network (MnMN) to strengthen interfaith relationships, support civic engagement, and advance shared efforts for justice, understanding, and community well-being across Minnesota."})]})}),a.jsx(E,{children:a.jsxs(Y,{to:"/programs/justice-advocacy/taking-heart",className:"group grid gap-6 md:grid-cols-[minmax(0,260px)_minmax(0,1fr)] items-stretch bg-card rounded-2xl border border-border overflow-hidden hover:shadow-lg hover:-translate-y-1 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2",children:[a.jsx("div",{className:"overflow-hidden",children:a.jsx("img",{src:Jae.url,alt:"Guests of many faiths serving themselves food at a Taking Heart Ramadan iftar",loading:"lazy",className:"h-full w-full object-cover aspect-[4/3] md:aspect-auto"})}),a.jsxs("div",{className:"p-6 md:p-8 flex flex-col justify-center",children:[a.jsx("p",{className:"text-xs font-semibold tracking-[0.2em] uppercase text-[hsl(var(--gold))] mb-3",children:"Featured Partnership"}),a.jsx("h3",{className:"font-serif text-2xl text-[hsl(var(--navy))] mb-2",children:"Taking Heart Ramadan Iftars"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed mb-4",children:"A more than 20-year collaboration between MCC and the Muslim American Society of Minnesota (MAS-MN) bringing neighbors of many faiths to the same table each Ramadan."}),a.jsxs("span",{className:"inline-flex items-center text-sm font-medium text-primary gap-1 group-hover:gap-2 transition-all",children:["Learn more ",a.jsx(nt,{className:"h-4 w-4"})]})]})]})})]})})]}),ele=1,tle="fd107d7c-769c-43cb-b51b-7ad94a12290b",nle="5317579a-a8ee-431d-9a53-6d8cfe773828",rle="/__l5e/assets-v1/fd107d7c-769c-43cb-b51b-7ad94a12290b/blessed-ramadan-saint-cloud-2.jpg",sle="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/fd107d7c-769c-43cb-b51b-7ad94a12290b/blessed-ramadan-saint-cloud-2.jpg",ile="blessed-ramadan-saint-cloud-2.jpg",ole=326106,ale="image/jpeg",lle="2026-09-08T20:49:13Z",cle={version:ele,asset_id:tle,project_id:nle,url:rle,r2_key:sle,original_filename:ile,size:ole,content_type:ale,created_at:lle},ule=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Justice & Advocacy",href:"/programs/justice-advocacy"},{label:"Partnerships"}],dle=[{label:"Minneapolis ELCA Synod Organizing Team",href:"http://mpls-synod.org/outreach/mas-organizing-team/"},{label:"Minnesota Interfaith Power & Light",href:"https://mnipl.org/"},{label:"ISAIAH",href:"https://isaiahmn.org/",center:!0},{label:"Minnesota Interfaith Coalition on Immigration",href:"https://mnicom.org/"},{label:"Jewish Community Action",href:"https://www.jewishcommunityaction.org/"}],hle=[{label:"Church World Service",href:"https://cwsglobal.org/our-work/refugees-and-immigrants/"},{label:"Interfaith Immigration Coalition",href:"http://www.interfaithimmigration.org/"},{label:"Refugee Council USA",href:"http://rcusa.org/"}],Cp=({items:e})=>a.jsx("ul",{className:"grid gap-3 sm:grid-cols-2 list-none pl-0",children:e.map(t=>a.jsxs("li",{className:`flex gap-2.5 bg-card border border-border rounded-xl px-4 py-2.5 text-foreground
417/85 ${t.center?"items-center":"items-start"}`,children:[a.jsx("span",{"aria-hidden":"true",className:`h-2 w-2 shrink-0 rounded-full bg-[hsl(var(--gold))] ${t.center?"":"mt-1.5"}`}),a.jsxs("span",{className:"leading-snug",children:[t.href?a.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"hover:text-[hsl(var(--navy))] underline underline-offset-4",children:t.label}):t.label,t.note?a.jsxs("span",{className:"text-muted-foreground",children:[" ",t.note]}):null]})]},t.label))}),Ji="text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",Yi="max-w-3xl space-y-6 text-lg text-muted-foreground leading-relaxed",fle=()=>a.jsx(ae,{title:"Partnerships",description:"Education and advocacy for nearly 75 years. MCC's programs, services, and ministries are offered and delivered in, and through, a variety of partnerships.",eyebrow:"Justice & Advocacy",heading:"Partnerships and Opportunities to Engage",intro:"Using the power of community organizing to foster social change",breadcrumbs:ule,section:"programs",path:"/programs/justice-advocacy/partnerships",children:a.jsxs("div",{className:"space-y-14",children:[a.jsx(E,{children:a.jsx("figure",{children:a.jsx("img",{src:cle.url,alt:"A group of people holding a Blessed Ramadan sign",className:"w-full h-auto rounded-xl",loading:"lazy"})})}),a.jsx(E,{children:a.jsx("div",{className:Yi,children:a.jsx("p",{children:"The Minnesota Council of Churches works to achieve education and advocacy goals by partnerting within the religious community, as well as across sectors. All of the work MCC does is done in the spirit of partnership. Our programs, services, and ministries are offered and delivered in and through a variety of partnerships."})})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Faith-based community organizing",className:"space-y-6",children:[a.jsx("h2",{className:Ji,children:"Faith-Based Community Organizing"}),a.jsx("div",{className:Yi,children:a.jsx("p",{children:"MCC believes in the power of community organizing to foster social change. To this end, we work with Minnesota faith-based organizing groups to link them to the congregations and denominations within MCC's membership. Some of the organizations we work with are:"})}),a.jsx(Cp,{items:dle})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Advocating for people with refugee status",className:"space-y-6",children:[a.jsx("h2",{className:Ji,children:"Advocating for People with Refugee Status"}),a.jsx("div",{className:Yi,children:a.jsx("p",{children:"The U.S. has a rich history of welcoming refugees to begin new lives, but restrictive policies and challenges to the resettlement program do arise. We urge supporters of refugees to share their experiences with friends and family, as well as with their elected officials. The organizations linked below provide opportunities to stay informed, learn about what faith communities and others are saying and doing around the country in support of refugees, and what actions are needed as the environment shifts."})}),a.jsx(Cp,{items:hle})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Raise awareness about refugees",className:"space-y-6",children:[a.jsx("h2",{className:Ji,children:"Raise Awareness About Refugees in Your Faith Community"}),a.jsx("div",{className:Yi,children:a.jsx("p",{children:"There are many resources and opportunities to engage in meaningful dialogue with congregational or other discussion groups about welcoming refugees and worship service resources honoring refugees including prayers, litanies, and scriptures."})})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Opportunities",className:"space-y-6",children:[a.jsx("h2",{className:Ji,children:`
418`}),a.jsx(Cp,{items:[{label:"Host a Refugee Speaker from Refugee Services (details below)"},{label:"Dialogues series",href:"https://www.wearesparkhouse.org/store/category/286972/Dialogues-On-The-Refugee-Crisis",note:"from Sparkhouse"},{label:"Worship resources, advocacy kits, and fact sheets",href:"http://church.cwsglobal.org/we-stand-for-welcome/",note:"from Church World Service"},{label:"“My Neighbor Is Muslim”",href:"https://www.lssmn.org/get-involved/church-partnerships/resources/studies/my-neighbor-is-muslim",note:" is a seven-part study guide developed by Lutheran Social Service of Minnesota"}]})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Host a refugee speaker",className:"space-y-6",children:[a.jsx("h2",{className:Ji,children:"Host a Refugee Speaker"}),a.jsxs("div",{className:Yi,children:[a.jsx("p",{children:"The Refugee Speakers Bureau is a group of talented speakers who came to Minnesota as refugees and asylees, and who have worked with MCC Refugee Services. After completing our Public Speaking Skills course, they share their own refugee journeys with churches and community groups. Speakers are accompanied by staff from MCC Refugee Services for presentations of varying length."}),a.jsx("p",{children:"These remarkable individuals give audiences a personal window into their refugee experience and help audie
418nces to better understand global issues and refugee communities here in Minnesota."}),a.jsx("blockquote",{className:"border-l-4 border-[hsl(var(--gold))] pl-6 italic text-foreground/80",children:"“It is one thing to read articles about refugees and workers; it is a lot more meaningful to have someone come and talk about their real life experiences. Having these speakers come and talk to our class completely changed my perspective of how I viewed refugees and what they go through.” -University of Minnesota student"}),a.jsxs("p",{className:"text-foreground/85",children:[a.jsx("strong",{children:"For more information or to schedule a presentation, please send an email to"})," ",a.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline underline-offset-4",children:"[email protected]"})," "]})]})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Blessed Ramadan",className:"space-y-6",children:[a.jsx("h2",{className:Ji,children:"#BlessedRamadan"}),a.jsx("div",{className:Yi,children:a.jsxs("p",{children:["Now more than ever, we need to show our Muslim neighbors that they belong here and are welcome. Join MCC in wishing our Muslim neighbors a #BlessedRamadan."," ",a.jsx(Y,{to:"/get-involved/resources",className:"text-primary underline underline-offset-4",children:"Click here"})," ","to learn more."]})})]})})]})}),ple=1,mle="9a624c74-feb2-47a7-8c1e-6bf2df9aa723",gle="5317579a-a8ee-431d-9a53-6d8cfe773828",vle="/__l5e/assets-v1/9a624c74-feb2-47a7-8c1e-6bf2df9aa723/jrlc-header.jpg",yle="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/9a624c74-feb2-47a7-8c1e-6bf2df9aa723/jrlc-header.jpg",ble="jrlc-header.jpg",xle=87175,wle="image/jpeg",Cle="2026-09-08T20:39:12Z",_le={version:ple,asset_id:mle,project_id:gle,url:vle,r2_key:yle,original_filename:ble,size:xle,content_type:wle,created_at:Cle},jle=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Justice & Advocacy",href:"/programs/justice-advocacy"},{label:"Joint Religious Legislative Coalition"}],Sle=[{label:"Minnesota Council of Churches",href:"https://mnchurches.org/"},{label:"Jewish Community Relations Council, Minnesota & the Dakotas",href:"http://www.minndakjcrc.org/"},{label:"Minnesota Catholic Conference",href:"http://www.mncc.org/"}],kle=({items:e})=>a.jsx("ul",{className:"grid gap-3 sm:grid-cols-2 list-none pl-0",children:e.map(t=>a.jsxs("li",{className:"flex gap-2.5 items-center bg-card border border-border rounded-xl px-4 py-2.5 text-foreground/85",children:[a.jsx("span",{"aria-hidden":"true",className:"h-2 w-2 shrink-0 rounded-full bg-[hsl(var(--gold))]"}),a.jsxs("span",{className:"flex-1 text-center leading-snug",children:[t.href?a.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"hover:text-[hsl(var(--navy))] underline underline-offset-4",children:t.label}):t.label,t.note?a.jsxs("span",{className:"text-muted-foreground",children:[" ",t.note]}):null]})]},t.label))}),Tle="text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",Ele="max-w-3xl space-y-6 text-lg text-muted-foreground leading-relaxed",Nle=()=>a.jsx(ae,{title:"Joint Religious Legislative Coalition",description:"MCC was one of the founding members of JRLC, the largest and most inclusive interfaith public interest group in Minnesota.",eyebrow:"Justice & Advocacy",heading:"Joint Religious Legislative Coalition (JRLC)",intro:"Bi-partisan, multi-issue, faith-based advocacy to advance the common good",breadcrumbs:jle,section:"programs",path:"/programs/justice-advocacy/joint-religious-legislative-coalition",children:a.jsxs("div",{className:"space-y-14",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:_le.url,alt:"Speaker at a Joint Religious Legislative Coalition advocacy event",loading:"lazy",width:1920,height:1282,className:"w-full h-auto object-cover aspect-[16/7]"})})}),a.jsx(E,{children:a.jsxs("div",{className:Ele,children:[a.jsxs("p",{children:[a.jsx("a",{href:"https://www.jrlc.org/",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[hsl(var(--navy))] underline underline-offset-4",children:"The Joint Religious Legislative Coalition"}
418)," ","is the most expansive and inclusive bi-partisan, multi-issue group of its kind in Minnesota using faith-based values to advance the common good. Representing three of the largest faith communities in the state — Catholics, Protestants, and Jews — we uniquely build consensus and find common ground while advocating for targeted policy recommendations based on our policy pillars:"]}),a.jsxs("p",{className:"text-center font-medium text-foreground/90",children:["Human Dignity",a.jsx("br",{}),"Families",a.jsx("br",{}),"Public Life"]}),a.jsxs("p",{children:["When JRLC was founded in 1971, it was the first interfaith public-interest lobby group in the United States. JRLC now has an extensive body of public policy statements and continually influences Minnesota legislation in many policy arenas, including welfare reform, housing, health care, human rights, criminal justice, environmental stewardship, tax policy, ethics in government, gambling, economic justice, bias crimes, firearms regulation, and more.",a.jsx("br",{}),a.jsx("br",{}),"JRLC is governed by a 16-person executive board made up of representatives from each sponsoring faith community. The Board guides policy decisions culminating in a ratification process, requiring each JRLC position to be approved by all the sponsors' governing bodies. JRLC is unique in this accountability structure and thus speaks in a unified voice for these faith groups."]})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"JRLC sponsoring members",className:"space-y-6",children:[a.jsx("h2",{className:Tle,children:"Sponsoring Members"}),a.jsx(kle,{items:Sle}),a.jsx("div",{className:"pt-2 flex justify-center",children:a.jsx(ce,{asChild:!0,className:"scale-[1.3] origin-center",children:a.jsx("a",{href:"https://www.jrlc.org/",target:"_blank",rel:"noopener noreferrer",children:"Visit the JRLC website"})})})]})})]})}),Rle=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Justice & Advocacy",href:"/programs/justice-advocacy"},{label:"Advocating"}],Ale=[{label:"Church World Service",href:"https://cwsglobal.org/our-work/refugees-and-immigrants/"},{label:"Interfaith Immigration Coalition",href:"http://www.interfaithimmigration.org/"},{label:"Refugee Council USA",href:"http://rcusa.org/"}],Nw=({items:e})=>a.jsx("ul",{className:"grid gap-3 sm:grid-cols-2 list-none pl-0",children:e.map(t=>a.jsxs("li",{className:"flex gap-3 bg-card border border-border rounded-xl p-5 text-foreground/85",children:[a.jsx("span",{"aria-hidden":"true",className:"mt-2 h-2 w-2 shrink-0 rounded-full bg-[hsl(var(--gold))]"}),a.jsxs("span",{className:"leading-relaxed",children:[t.href?a.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"hover:text-[hsl(var(--navy))] underline underline-offset-4",children:t.label}):t.label,t.note?a.jsxs("span",{className:"text-muted-foreground",children:[" ",t.note]}):null]})]},t.label))}),Ple=()=>a.jsx(ae,{title:"Advocating",description:"Advocating for people with refugee status: resources, congregational engagement opportunities, and the MCC Refugee Speakers Bureau.",eyebrow:"Justice & Advocacy",heading:"Advocating",breadcrumbs:Rle,section:"programs",path:"/programs/justice-advocacy/advocating",children:a.jsxs("div",{className:"space-y-14",children:[a.jsx(E,{children:a.jsxs("section",{"aria-label":"Advocating for people with refugee status",className:"space-y-6",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",children:"Advocating for People with Refugee Status"}),a.jsx("div",{className:"max-w-3xl space-y-6 text-lg text-muted-foreground leading-relaxed",children:a.jsx("p",{children:"The United States has a rich history of welcoming refugees to begin new lives, but restrictive policies and challenges to the resettlement program do arise. We urge supporters of refugees to share their experiences with friends and family, as well as with their elected officials. There are many great resources to help you get started. We have collected a number of them here. These organizations provide opportunities to stay informed, learn about what faith communities and others are saying and doing around the country in support of refugees, and what actions are needed as the environment shifts. You may want to follow them on Facebook and Twitter, as well as accessing their web resources."})}),a.jsx(Nw,{items:Ale})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Raise awareness about refugees",className:"space-y-6",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",children:"Raise awareness about refugees in your faith community"}),a.jsx("div",{className:"max-w-3xl space-y-6 text-lg text-muted-foreground leading-relaxed",children:a.jsx("p",{children:"There are many resources and opportunities to engage in meaningful dialogue with congregational or other discussion groups about welcoming refugees and worship service resources honoring refugees including prayers, litanies, and scriptures."})})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Opportunities",className:"space-y-6",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",children:"Opportunities"}),a.jsx(Nw,{items:[{label:"Host a Refugee Speaker from Refugee Services (details below)"},{label:"Dialogues series",href:"https://www.wearesparkhouse.org/store/category/286972/Dialogues-On-The-Refugee-Crisis",note:"from Sparkhouse"},{label:"Worship resources, advocacy kits, and fact sheets",href:"http://church.cwsglobal.org/we-stand-for-welcome/",note:"from Church World Service"},{label:"“My Neighbor Is Muslim”",href:"https://www.lssmn.org/get-involved/church-partnerships/resources/studies/my-neighbor-is-muslim",note:"a seven-part study guide for use by local congregations or other discussion groups, developed by Lutheran Social Service of Minnesota and written by professors at Luther College and Luther Seminary for use in Minnesota"}]})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Host a refugee speaker",className:"space-y-6",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",children:"Host a Refugee Speaker"}),a.jsxs("div",{className:"max-w-3xl space-y-6 text-lg text-muted-foreground leading-relaxed",children:[a.jsx("p",{children:"The Refugee Speakers Bureau is a group of talented speakers who came to MN as refugees and asylees, and who have worked with MCC Refugee Services. After completing our Public Speaking Skills course, they share their own refugee journeys with churches and community groups. Speakers are accompanied by staff from MCC Refugee Services for presentations of varying length."}),a.jsx("p",{children:"These remarkable individuals give audiences a personal window into their refugee experience and help audie
418nces to better understand global issues and refugee communities here in MN."}),a.jsx("blockquote",{className:"border-l-4 border-[hsl(var(--gold))] pl-6 italic text-foreground/80",children:"“I want to thank both of you for offering your time to come and speak to our class. It is one thing to read articles about refugees and workers. It is a lot more meaningful to have someone come in and talk about their real life experiences. By you coming and talking to our class it completely changed my perspective of how I viewed refugees and what they go through.” (a note received from a student at the University of MN)"}),a.jsxs("p",{className:"text-foreground/85",children:[a.jsx("strong",{children:"For more information or to schedule a presentation, please contact:"})," ",a.jsx("a",{href:"mailto:[email protected]",className:"text-primary underline underline-offset-4",children:"[email protected]"})," ","or"," ",a.jsx("a",{href:"tel:+16122303219",className:"text-primary underline underline-offset-4",children:"612.230.3219"})]})]})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Blessed Ramadan",className:"space-y-6",children:[a.jsx("h2",{className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))]",children:"#BlessedRamadan"}),a.jsx("div",{className:"max-w-3xl space-y-6 text-lg text-muted-foreground leading-relaxed",children:a.jsx("p",{children:"In September 2018, the National Administration set the refugee admission limit to 30,000 refugees — the second historic low in a row. Moreover, the Administration attempted to explicitly ban refugees from seven Muslim-majority countries. This discrimination does not reflect the values of Minnesotans or our churches. Now more than ever, we need to show our Muslim neighbors that they do belong here and that they are welcome. Join the Minnesota Council of Churches in wishing our Muslim neighbors a #BlessedRamadan."})})]})})]})}),$le=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Justice & Advocacy",href:"/programs/justice-advocacy"},{label:"Faith-Based Community Organizing"}],Mle=[{label:"Minneapolis ELCA Synod Organizing Team",href:"http://mpls-synod.org/outreach/mas-organizing-team/"},{label:"Minnesota Interfaith Power & Light",href:"https://mnipl.org/"},{label:"ISAIAH",href:"https://isaiahmn.org/"},{label:"Minnesota Interfaith Coalition on Immigration",href:"https://mnicom.org/"},{label:"Jewish Community Action",href:"https://www.jewishcommunityaction.org/"}],Ole=()=>a.jsx(ae,{title:"Faith-Based Community Organizing",description:"MCC works with Minnesota faith-based organizing groups to link them to the congregations and denominations within MCC's membership.",eyebrow:"Justice & Advocacy",heading:"Faith-Based Community Organizing",breadcrumbs:$le,section:"programs",path:"/programs/justice-advocacy/faith-based-organizing",children:a.jsxs("div",{className:"space-y-14",children:[a.jsx(E,{children:a.jsx("div",{className:"max-w-3xl space-y-6 text-lg text-muted-foreground leading-relaxed",children:a.jsx("p",{children:"MCC believes in the power of community organizing to foster social change. To this end, MCC works with Minnesota faith-based organizing groups to link them to the congregations and denominations within MCC's membership. Some of the organizations we work with are:"})})}),a.jsx(E,{children:a.jsx("ul",{className:"grid gap-3 sm:grid-cols-2 list-none pl-0",children:Mle.map(e=>a.jsxs("li",{className:"flex gap-3 bg-card border border-border rounded-xl p-5 text-foreground/85",children:[a.jsx("span",{"aria-hidden":"true",className:"mt-2 h-2 w-2 shrink-0 rounded-full bg-[hsl(var(--gold))]"}),a.jsx("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"leading-relaxed hover:text-[hsl(var(--navy))] underline underline-offset-4",children:e.label})]},e.label))})})]})}),Ile=1,Dle="31fd7cec-1d0d-4d1a-a1ab-92311e8de6be",Lle="5317579a-a8ee-431d-9a53-6d8cfe773828",zle="/__l5e/assets-v1/31fd7cec-1d0d-4d1a-a1ab-92311e8de6be/duluth-iftar.jpg",Fle="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/31fd7cec-1d0d-4d1a-a1ab-92311e8de6be/duluth-iftar.
418jpg",Ule="duluth-iftar.jpg",Ble=191622,Vle="image/jpeg",Hle="2026-08-28T16:52:18Z",Wle={version:Ile,asset_id:Dle,project_id:Lle,url:zle,r2_key:Fle,original_filename:Ule,size:Ble,content_type:Vle,created_at:Hle},qle=1,Kle="b794a979-df37-41b6-b003-796a6400901b",Zle="5317579a-a8ee-431d-9a53-6d8cfe773828",Gle="/__l5e/assets-v1/b794a979-df37-41b6-b003-796a6400901b/dar-al-farooq-iftar.jpg",Jle="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/b794a979-df37-41b6-b003-796a6400901b/dar-al-farooq-iftar.jpg",Yle="dar-al-farooq-iftar.jpg",Qle=589260,Xle="image/jpeg",ece="2026-08-28T16:54:32Z",tce={version:qle,asset_id:Kle,project_id:Zle,url:Gle,r2_key:Jle,original_filename:Yle,size:Qle,content_type:Xle,created_at:ece},nce=[{label:"Home",href:"/"},{label:"Programs",href:"/programs"},{label:"Justice & Advocacy",href:"/programs/justice-advocacy"},{label:"Taking Heart Ramadan Iftars"}],rce=["Welcome and opening remarks from your hosts","A recitation from the Quran and the call to prayer","A short presentation on Islam, Ramadan, and its customs","Breaking the fast together with dates and water","An opportunity to respectfully observe the evening prayer","A shared meal and small-group conversation at your table"],sce=[{figure:"20+",label:"Years bringing neighbors together"},{figure:"~20",label:"Mosques and Islamic centers hosting statewide in 2026"},{figure:"1,000+",label:"Community members at the table in a single Ramadan season"}],ice=[{quote:"I was struck by the similarities between faiths and the power of human connection to pray and eat together.",attribution:"Kathleen Motzenbecker",role:"DIRECTOR OF REFUGEE SERVICES, MCC"},{quote:"When people sit together over a meal, suspicion decreases.",attribution:"Asad Zaman",role:"Executive Director, Muslim American Society of Minnesota"},{quote:"As someone immersed in history and different cultures all the time, this was a next-level experience.",attribution:"Dena Gleason",role:"Community member"}],oce=({voice:e})=>a.jsxs("figure",{className:"h-full rounded-2xl border border-border bg-card p-8 shadow-sm flex flex-col",children:[a.jsx("span",{"aria-hidden":"true",className:"font-serif text-5xl leading-none text-[hsl(var(--gold))]",children:"“"}),a.jsx("blockquote",{className:"mt-3 flex-1 font-serif text-lg md:text-xl text-[hsl(var(--navy))] leading-snug",children:e.placeholder?e.quote:`“${e.quote}”`}),a.jsxs("figcaption",{className:"mt-6 space-y-1",children:[a.jsx("span",{className:"block h-px w-10 bg-[hsl(var(--gold))]","aria-hidden":"true"}),a.jsx("div",{className:"mt-3 font-serif italic text-[hsl(var(--teal-deep))]",children:e.attribution}),e.role&&a.jsx("div",{className:"text-xs uppercase tracking-[0.18em] text-muted-foreground",children:e.role})]})]}),ace=()=>a.jsx(ae,{title:"Taking Heart Ramadan Iftars",description:"Taking Heart brings Minnesotans of all faiths together with their Muslim neighbors for iftar meals during Ramadan. A 20-year partnership between MCC and MAS-MN. Free and open to all.",eyebrow:"Programs › Justice & Advocacy",heading:"Taking Heart Ramadan Iftars",intro:"For more than 20 years, Minnesota mosques have opened their doors to their non-Muslim neighbors for an evening of food, prayer, and honest conversation during Ramadan.",breadcrumbs:nce,section:"programs",path:"/programs/justice-advocacy/taking-heart",children:a.jsxs("div",{className:"space-y-20",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm m-0",children:a.jsx("img",{src:tce.url,alt:"Volunteers and guests sharing an iftar meal at Masjid Dar Al-Farooq, photographed by Betty Schilling",width:1600,height:1200,className:"w-full h-auto object-cover aspect-[16/8] object-[50%_0%]"})})}),a.jsx(E,{children:a.jsxs("div",{className:"grid md:grid-cols-2 gap-8 md:gap-12 items-center",children:[a.jsxs("div",{className:"space-y-5",children:[a.jsx("p",{className:"text-xs font-semibold tracking-[0.22em] uppercase text-[hsl(var(--gold))]",children:"About the Program"}),a.jsx("h2",{className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))] leading-tight",children:"A Meal That Builds Bridges"}),a.jsxs("div",{className:"space-y-4 text-base md:text-lg text-muted-foreground leading-relaxed",children:[a.jsx("p",{children:"Taking Heart is a long-running program coordinated by MCC and the Muslim American Society of Minnesota (MAS-MN) designed to bring Christians and members of other faith communities together with Muslims for shared meals and conversations during Ramadan. This partnership helps build relationships between Muslim and n
418on-Muslim communities by increasing understanding and supporting connections between neighbors across the state."}),a.jsx("p",{children:"Ramadan is a blessed month of the Islamic lunar calendar during which Muslims abstain from eating or drinking from sunrise to sunset. Fasting during Ramadan is one of the five pillars of Islam and is performed to develop piety, self-restraint, compassion, and generosity."})]})]}),a.jsx("figure",{className:"m-0",children:a.jsx("div",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:Wle.url,alt:"Volunteers serving an iftar meal to guests during Ramadan, photographed by Tyler Schank for the Duluth News Tribune",loading:"lazy",width:1600,height:900,className:"w-full h-auto object-cover aspect-[4/3]"})})})]})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"What to expect at an iftar",className:"space-y-8",children:[a.jsxs("div",{className:"max-w-2xl space-y-4",children:[a.jsx("p",{className:"text-xs font-semibold tracking-[0.22em] uppercase text-[hsl(var(--gold))]",children:"What to Expect"}),a.jsx("h2",{className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))] leading-tight",children:"What to Expect at an Iftar"}),a.jsx("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed",children:"Every Taking Heart iftar follows a welcoming, guided format. Here is how the evening unfolds."})]}),a.jsxs("ol",{className:"relative list-none pl-0 space-y-6 max-w-3xl",children:[a.jsx("span",{"aria-hidden":"true",className:"absolute top-2 bottom-2 w-px bg-border left-5"}),rce.map((e,t)=>a.jsxs("li",{className:"relative pl-16",children:[a.jsx("span",{"aria-hidden":"true",className:"absolute left-0 top-0 flex h-10 w-10 items-center justify-center rounded-full bg-[hsl(var(--gold))] text-[hsl(var(--navy))] font-serif text-lg ring-4 ring-card",children:t+1}),a.jsx("p",{className:"text-base md:text-lg text-foreground leading-relaxed pt-1.5",children:e})]},e))]}),a.jsx("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed max-w-3xl",children:"Iftars are free and open to the public. Families are welcome. Registration is required so hosts can plan for the meal."})]})}),a.jsx(E,{children:a.jsx(w4,{stats:sce,countUp:!0,ariaLabel:"Taking Heart by the numbers"})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Voices from Taking Heart",className:"space-y-8",children:[a.jsxs("div",{className:"max-w-2xl",children:[a.jsx("p",{className:"text-xs font-semibold tracking-[0.22em] uppercase text-[hsl(var(--gold))]",children:"In Their Own Words"}),a.jsx("h2",{className:"mt-4 text-3xl md:text-4xl font-serif text-[hsl(var(--navy))] leading-tight",children:"Voices from Taking Heart"})]}),a.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:ice.map((e,t)=>a.jsx(oce,{voice:e},t))})]})}),a.jsx(E,{children:a.jsx("section",{"aria-label":"Ramadan 2027 season",className:"rounded-2xl border border-[hsl(var(--gold))]/40 bg-[hsl(var(--ivory,var(--background)))] px-6 md:px-10 py-10 md:py-14",children:a.jsxs("div",{className:"max-w-3xl mx-auto text-center space-y-5",children:[a.jsx("p",{className:"text-xs font-semibold tracking-[0.22em] uppercase text-[hsl(var(--gold))]",children:"Upcoming Iftars"}),a.jsx("h2",{className:"text-3xl md:text-4xl font-serif text-[hsl(var(--navy))] leading-tight",children:"Join Us for Ramadan 2027"}),a.jsxs("div",{className:"space-y-4 text-base md:text-lg text-muted-foreground leading-relaxed",children:[a.jsx("p",{children:"Ramadan 2027 is expected to begin in early February. Taking Heart iftar dates, host mosque locations, and registration will be announced here as the season approaches. Iftars are free, but registration is required."}),a.jsx("p",{children:"Want to be notified when registration opens? Sign up for our newsletter, News for the Common Good, and we will let you know."})]}),a.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3 pt-2",children:[a.jsx(ce,{variant:"gold",size:"lg",asChild:!0,children:a.jsx(Y,{to:"/news/newsletter",children:"Get Notified"})}),a.jsx(ce,{variant:"outline-navy",size:"lg",asChild:!0,children:a.jsx("a",{href:"mailto:[email protected]",children:"Questions? Contact Us"})})]})]})})}),a.jsx(E,{children:a.jsxs("section",{"aria-label":"Attend or volunteer",className:"grid md:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"rounded-2xl border border-border bg-card p-8 md:p-10 shadow-sm flex flex-col",children:[a.jsx("h3",{className:"text-2xl md:text-3xl font-serif text-[hsl(var(--navy))] leading-tight",children:"Attend an Iftar"}),a.jsx("p",{className:"mt-4 flex-1 text-base md:text-lg text-muted-foreground leading-relaxed",children:"Come as you are. Bring your curiosity, your questions, and your appetite."}),a.jsx("div",{className:"pt-6",children:a.jsx(ce,{variant:"gold",asChild:!0,children:a.jsx(Y,{to:"/news/newsletter",children:"Get Notified"})})})]}),a.jsxs("div",{className:"rounded-2xl border border-border bg-card p-8 md:p-10 shadow-sm flex flex-col",children:[a.jsx("h3",{className:"text-2xl md:text-3xl font-serif text-[hsl(var(--navy))] leading-tight",children:"Volunteer at an Iftar"}),a.jsx("p",{className:"mt-4 flex-1 text-base md:text-lg text-muted-foreground leading-relaxed",children:"Help welcome guests and support a host mosque during the Taking Heart season."}),a.jsx("div",{className:"pt-6",children:a.jsx(ce,{variant:"gold",asChild:!0,children:a.jsx("a",{href:"https://MNChurch.formstack.com/forms/iftarvolunteer",target:"_blank",rel:"noopener noreferrer",children:"Volunteer Sign-Up"})})})]})]})}),a.jsx(E,{children:a.jsx("section",{"aria-label":"Related resources",className:"rounded-2xl border border-border bg-muted/30 px-6 md:px-8 py-6 text-center",children:a.jsxs("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed",children:["Looking for Blessed Ramadan lawn signs and social graphics?"," ",a.jsx(Y,{to:"/get-involved/resources",className:"font-medium text-[hsl(var(--teal-deep))] underline underline-offset-4 hover:text-[hsl(var(--navy))] transition-colors",children:"Visit our Resources page."})]})})})]})}),lce=1,cce="02517c25-d461-4ffc-9513-d0a71ec6d8f8",uce="5317579a-a8ee-431d-9a53-6d8cfe773828",dce="/__l5e/assets-v1/02517c25-d461-4ffc-9513-d0a71ec6d8f8/blessed-ramadan-saint-cloud.jpg",hce="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/02517c25-d461-4ffc-9513-d0a71ec6d8f8/blessed-ramadan-saint-cloud.jpg",fce="blessed-ramadan-saint-cloud.jpg",pce=326106,mce="image/jpeg",gce="2026-09-02T22:01:26Z",vce={version:lce,asset_id:cce,project_id:uce,url:dce,r2_key:hce,original_filename:fce,size:pce,content_type:mce,created_at:gce},yce=[{icon:gd,title:"Donate",desc:"Your financial gift helps sustain the MCC programs and initiatives that directly support neighbors across Minnesota.",href:"https://minnesota-council-of-churches.givecloud.co/fundraising/forms/8NDR96EK",featured:!0},{icon:Bs,title:"Become a Member",desc:"Information for denominations and congregations on 
418joining MCC.",href:"/get-involved/membership"},{icon:lN,title:"Give Items",desc:"Donate physical items to support refugees and immigrants.",href:"/get-involved/give-items"},{icon:bj,title:"Resources",desc:"Downloadable resources, publications, and materials for congregations and supporters.",href:"/get-involved/resources"}],bce=()=>a.jsxs(ae,{title:"Get Involved",description:"Support the Minnesota Council of Churches — donate, become a member, give items, or access resources.",eyebrow:"Get Involved",heading:"Make a Difference Today",intro:"There are many ways to support the Minnesota Council of Churches and the communities and congregations we serve across Minnesota.",breadcrumbs:[{label:"Home",href:"/"},{label:"Get Involved"}],path:"/get-involved",children:[a.jsx("figure",{className:"max-w-5xl mx-auto mb-12 overflow-hidden rounded-2xl shadow-sm border border-border",children:a.jsx("img",{src:vce.url,alt:"Community members gathered around a table for a Blessed Ramadan iftar in St. Cloud",loading:"lazy",width:1920,height:1280,className:"w-full h-auto"})}),a.jsx("div",{className:"grid md:grid-cols-2 gap-6 max-w-4xl mx-auto",children:yce.map(e=>{const t=e.href.startsWith("http"),n=`group block p-8 rounded-2xl border transition-all hover:-translate-y-1 hover:shadow-lg ${e.featured?"bg-gold/10 border-gold/30":"bg-card border-border"}`,r=a.jsxs(a.Fragment,{children:[a.jsx(e.icon,{className:`h-10 w-10 mb-4 ${e.featured?"text-gold":"text-primary"}`}),a.jsx("h3",{className:"font-serif text-2xl mb-3",children:e.title}),a.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:e.desc}),a.jsxs("span",{className:"inline-flex items-center font-medium text-primary gap-1 group-hover:gap-2 transition-all",children:["Learn More ",a.jsx(nt,{className:"h-4 w-4"})]})]});return t?a.jsx("a",{href:e.href,className:n,children:r},e.href):a.jsx(Y,{to:e.href,className:n,children:r},e.href)})})]}),xce=({to:e})=>(b.useEffect(()=>{window.location.replace(e)},[e]),null),wce=1,Cce="a1826790-8ed6-45d0-b62b-56dc57638c3e",_ce="5317579a-a8ee-431d-9a53-6d8cfe773828",jce="/__l5e/assets-v1/a1826790-8ed6-45d0-b62b-56dc57638c3e/mcc-25-denominations-membership-v2.jpg",Sce="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/a1826790-8ed6-45d0-b62b-56dc57638c3e/mcc-25-denominations-membership-v2.jpg",kce="mcc-25-denominations-membership-v2.jpg",Tce=257475,Ece="image/jpeg",Nce="2026-09-09T13:08:13Z",Rce={version:wce,asset_id:Cce,project_id:_ce,url:jce,r2_key:Sce,original_filename:kce,size:Tce,content_type:Ece,created_at:Nce},Ace=[{label:"Home",href:"/"},{label:"Get Involved",href:"/get-involved"},{label:"Become a Member"}],Pce=[{icon:wN,title:"Shape MCC's direction",body:"Enjoy representation on the board of directors and participation in the annual assembly."},{icon:dN,title:" Priority access",body:"Members receive priority access to events and resources from MCC."},{icon:cN,title:"Facilitator training",body:"We'll work with you to provide a tailored facilitator training experience for events like Respectful Conversations."},{icon:Bs,title:"Standing relationships",body:"The standing relationships that come from sharing a table for decades."}],cu=({label:e,children:t})=>a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{className:"block text-xs font-semibold tracking-widest uppercase text-muted-foreground mb-2",children:e}),t]}),$ce=()=>{const[e,t]=b.useState(""),[n,r]=b.useState(""),[s,i]=b.useState(""),[o,l]=b.useState(""),c=u=>{u.preventDefault();const d=`Membership inquiry from ${n||"a judicatory leader"}`,h=[`Denomination / Judicatory: ${e}`,`Name: ${n}`,`Email: ${s}`,"",o].join(`
419`).trim();window.location.href=`mailto:[email protected]?subject=${encodeURIComponent(d)}&body=${encodeURIComponent(h)}`};return a.jsx(ae,{title:"Become a Member",description:"MCC's strength comes from its 25 member denominations. Judicatory leaders are warmly invited to begin a conversation about membership.",eyebrow:"Get Involved",heading:"Become a Member",intro:"MCC's strength comes from its 25 member denominations. Judicatory leaders interested in exploring membership are warmly invited to begin a conversation.",breadcrumbs:Ace,section:"get-involved",path:"/get-involved/membership",children:a.jsxs("div",{className:"space-y-14",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:Rce.url,alt:"Minnesota Council of Churches member denomination and judicatory logos",loading:"lazy",width:1920,height:966,className:"w-full h-auto object-cover"})})}),a.jsx(E,{children:a.jsxs("div",{className:"max-w-3xl space-y-6 text-muted-foreground leading-relaxed",children:[a.jsx("h2",{className:"font-serif text-2xl text-[hsl(var(--navy))]",children:"What membership means"}),a.jsx("p",{children:"Member denominations shape MCC's direction through representation on the board of directors and participation in the annual assembly. Members receive priority access to events and resources, tailored facilitator training, and the standing relationships that come from sharing a table for decades."}),a.jsx("h2",{className:"font-serif text-2xl text-[hsl(var(--navy))] mt-8",children:"Our current members"}),a.jsxs("p",{children:["From the African Methodist Episcopal Church to the United Methodist Church, MCC brings 25 Christian denominations together in one council."," ",a.jsx(Y,{to:"/about/members",className:"text-[hsl(var(--teal))] border-b border-[hsl(var(--teal))]",children:"See the full list"}),"."]})]})}),a.jsx(E,{stagger:!0,children:a.jsx(Ly,{items:Pce,columns:4})}),a.jsx(E,{children:a.jsxs("div",{className:"rounded-lg border border-border bg-ivory p-8 lg:p-9 max-w-2xl",children:[a.jsx("h2",{className:"font-serif text-2xl text-[hsl(var(--navy))] mb-5",children:"Start a conversation"}),a.jsxs("form",{onSubmit:c,children:[a.jsx(cu,{label:"Denomination / Judicatory",children:a.jsx(fe,{type:"text",value:e,onCh
419ange:u=>t(u.target.value)})}),a.jsx(cu,{label:"Your name",children:a.jsx(fe,{type:"text",value:n,onChange:u=>r(u.target.value)})}),a.jsx(cu,{label:"Email",children:a.jsx(fe,{type:"email",value:s,onChange:u=>i(u.target.value)})}),a.jsx(cu,{label:"What would you like to explore?",children:a.jsx(Ls,{rows:4,value:o,onChange:u=>l(u.target.value)})}),a.jsx(ce,{type:"submit",size:"lg",className:"w-full bg-[hsl(var(--navy))] text-[hsl(var(--navy-foreground))] hover:bg-[hsl(var(--navy))]/90",children:"Send inquiry"})]})]})})]})})},Mce=1,Oce="0e125986-7c35-4d81-8def-8249ca9f6875",Ice="5317579a-a8ee-431d-9a53-6d8cfe773828",Dce="/__l5e/assets-v1/0e125986-7c35-4d81-8def-8249ca9f6875/food-drive.jpg",Lce="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/0e125986-7c35-4d81-8def-8249ca9f6875/food-drive.jpg",zce="food-drive.jpg",Fce=670476,Uce="image/jpeg",Bce="2026-09-09T13:58:57Z",Vce={version:Mce,asset_id:Oce,project_id:Ice,url:Dce,r2_key:Lce,original_filename:zce,size:Fce,content_type:Uce,created_at:Bce},Hce=[{label:"Home",href:"/"},{label:"Get Involved",href:"/get-involved"},{label:"Give Items"}],Wce=()=>a.jsx(ae,{title:"Give Items",description:"In-kind donations—housewares, clothing, welcome kits—help New American families settle into their Minnesota homes.",eyebrow:"Get Involved",heading:"Give Items",intro:"In-kind donations—housewares, clothing, welcome kits—help New American families settle into their Minnesota homes.",breadcrumbs:Hce,section:"get-involved",path:"/get-involved/give-items",children:a.jsxs("div",{className:"space-y-10 max-w-3xl",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:Vce.url,alt:"Volunteers organize pallets of food and household supplies at an outdoor donation drive",loading:"lazy",width:1920,height:1031,className:"w-full h-auto object-cover rounded-2xl"})})}),a.jsx(E,{children:a.jsxs("div",{className:"rounded-md border border-[hsl(var(--gold))] border-l-4 bg-[hsl(var(--gold))]/10 px-6 py-5",children:[a.jsx("div",{className:"text-[11px] font-semibold tracking-[0.14em] uppercase text-[hsl(var(--gold))] mb-2",children:"Capacity update"}),a.jsxs("p",{className:"text-foreground leading-relaxed",children:["We're currently reviewing what items we can accept as we transition offices. Please"," ",a.jsx(Y,{to:"/contact",className:"text-[hsl(var(--teal))] underline",children:"contact us before bringing donations"})," ","so we can confirm current needs."]})]})}),a.jsx(E,{children:a.jsxs("p",{className:"text-lg text-muted-foreground leading-relaxed",children:["The most reliable way to support New American families right now is through"," ",a.jsx("a",{href:"https://minnesota-council-of-churches.givecloud.co/fundraising/forms/8NDR96EK",className:"text-[hsl(var(--teal))] border-b border-[hsl(var(--teal))]",children:"a financial gift"}),"—it lets us match the exact needs of families as they arrive."]})})]})}),qce=[{label:"Home",href:"/"},{label:"Get Involved",href:"/get-involved"},{label:"Co-sponsor a Refugee Family"}],Kce=["Gathering essential furnishings and helping set up the family's apartment","Welcoming the family at the airport","Providing transportation to initial appointments","Assisting with school and English class registration","Helping refugees learn their way around their new neighborhood","Teaching the family about important local resources like libraries, parks and clinics"],Zce=()=>a.jsx(ae,{title:"Co-sponsor a Refugee Family",description:"Congregations and community groups can partner with MCC Refugee Services to welcome a family with refugee status to Minnesota.",eyebrow:"Get Involved",heading:"Co-sponsor a Refugee Family",intro:"Co-sponsorship gives congregations and community groups the opportunity to partner in welcoming a family with refugee status to Minnesota.",breadcrumbs:qce,section:"get-involved",path:"/get-involved/co-sponsor",children:a.jsxs("div",{className:"space-y-10 max-w-3xl",children:[a.jsxs(E,{children:[a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"MCC Refugee Services leads co-sponsors in a supportive partnership in which co-sponsors assist new families for their first four months in the US and help them on the path to self-sufficiency. By offering support to new families, your community can welcome the stranger and help transform a refugee's new country into a new home."}),a.jsx("p",{className:"text-muted-foreground leading-relaxed mt-5",children:"Once the refugees arrive, the co-sponsorship team works closely with the Refugee Services Volunteer and Outreach Specialist and the family's caseworker, who serve as resources and guides through the resettlement process through weekly phone calls and monthly meetings. Congregations are mentored through the process of decreasing their support as the family becomes settled and MCC Refugee Services facilitates a closing celebration at the end of the co-sponsorship period."})]}),a.jsxs(E,{children:[a.jsx("h2",{className:"font-serif text-2xl text-primary mb-4",children:"What is involved in co-sponsorship?"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed mb-5",children:"Congregations and community groups work with Refugee Services staff to help refugees get to crucial resources and learn their way around their new community. This process might include:"}),a.jsx("ul",{className:"space-y-2.5",children:Kce.map(e=>a.jsxs("li",{className:"flex gap-2.5 items-start bg-card border border-border rounded-xl px-4 py-2.5 text-foreground
419/85",children:[a.jsx("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-[hsl(var(--gold))]"}),a.jsx("span",{className:"leading-snug",children:e})]},e))}),a.jsxs("p",{className:"text-muted-foreground leading-relaxed mt-5",children:["The most important role of a co-sponsoring congregation is to help new arrivals move towards self-sufficiency."," ",a.jsx("a",{href:"https://vimeo.com/39646777",target:"_blank",rel:"noreferrer",className:"text-[hsl(var(--teal))] border-b border-[hsl(var(--teal))]",children:"This video"}),", created by Episcopal Migration Ministries, is a great way to learn more about this opportunity!"]})]}),a.jsxs(E,{children:[a.jsx("h2",{className:"font-serif text-2xl text-primary mb-4",children:"Who can participate?"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"This opportunity is open to congregations in the Twin Cities area. Congregational co-sponsorship utilizes the unique gifts, talents, and resources of an entire faith community, and is steered by the efforts of a committed group within the congregation. A co-sponsorship committee is led by a team leader who coordinates with MCC staff, and other members might focus on furnishings, school, employment, transportation, and hospitality. The co-sponsorship team should range from 8-12 people. Congregations are asked to make a commitment for a 6-month period."})]}),a.jsxs(E,{children:[a.jsx("h2",{className:"font-serif text-2xl text-primary mb-4",children:"How are congregations supported in this work?"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Congregations interested in refugee co-sponsorship begin by meeting with a Refugee Services staff member. Through a series of meetings, Refugee Services will help the congregation organize a co-sponsorship team, provide information about the needs and culture of the family, and inform the team of the family's arrival. Refugee Services matches a congregation with a refugee family overseas after assessing the team's needs and capabilities."})]}),a.jsx(E,{children:a.jsxs("div",{className:"rounded-md border border-[hsl(var(--gold))] border-l-4 bg-[hsl(var(--gold))]/10 px-6 py-5",children:[a.jsx("h2",{className:"font-serif text-2xl text-primary mb-3",children:"Who do I contact to find out more?"}),a.jsxs("p",{className:"text-foreground leading-relaxed",children:["Email our volunteer outreach team at"," ",a.jsx("a",{href:"mailto:[email protected]",className:"text-[hsl(var(--teal))] underline",children:"[email protected]"})," ","to learn more about the co-sponsorship process or set up an informational meeting."]})]})})]})}),Gce=1,Jce="06a584b6-68d5-42b0-8f78-89d52ba0010c",Yce="5317579a-a8ee-431d-9a53-6d8cfe773828",Qce="/__l5e/assets-v1/06a584b6-68d5-42b0-8f78-89d52ba0010c/this-much-i-can-tell-you.jpg",Xce="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/06a584b6-68d5-42b0-8f78-89d52ba0010c/this-much-i-can-tell-you.jpg",eue="this-much-i-can-tell-you.jpg",tue=41329,nue="image/jpeg",rue="2026-09-01T19:17:39Z",sue={version:Gce,asset_id:Jce,project_id:Yce,url:Qce,r2_key:Xce,original_filename:eue,size:tue,content_type:nue,created_at:rue},iue=[{label:"Home",href:"/"},{label:"Get Involved",href:"/get-involved"},{label:"Resources"}],_p=["This Much I Can Tell You","Book","The voices of 18 new Minnesotans—refugees and asylees from nine countries—share stories of fear, courage, sorrow, and hope. Available on Amazon or directly through our office."],oue=[["Blessed Ramadan","LAWN SIGNS","MCC offers Blessed Ramadan lawn signs to show solidarity with our Muslim neighbors.","https://mnchurch.formstack.com/forms/blessedramadansigns2019"],["Respectful Conversations toolkit","PDF downloads","Coming soon!"],["Liturgies for welcome","PDF downloads","Coming soon!"],["Advocate starter kit","Articles & links","Coming soon!"],["Newsletter archive","Newsletters","Coming soon!"]],aue=()=>a.jsx(ae,{title:"Resources",description:"Books, signs, liturgies, and toolkits — materials you can read, share, and use in your own congregation and community.",eyebrow:"Get Involved",heading:"Resources",intro:"Books, signs, liturgies, and toolkits—materials you can read, share, and use in your own congregation and community.",breadcrumbs:iue,section:"get-involved",path:"/get-involved/resources",children:a.jsxs("div",{className:"space-y-12",children:[a.jsx(E,{children:a.jsxs("a",{href:"https://a.co/d/019t4Q4u",target:"_blank",rel:"noopener noreferrer",className:"group grid md:grid-cols-[1.1fr_1.6fr] gap-0 overflow-hidden rounded-2xl border border-border bg-card shadow-sm hover:border-[hsl(var(--teal))] hover:shadow-md transition-all",children:[a.jsx("div",{className:"relative bg-[hsl(var(--teal))] flex items-center justify-center aspect-[4/3] md:aspect-auto overflow-hidden",children:a.jsx("img",{src:sue.url,alt:"Cover of the book “This Much I Can Tell You: Stories of Courage and Hope from Refugees in Minnesota”",loading:"lazy",className:"h-full w-full object-cover"})}),a.jsxs("div",{className:"p-8 md:p-10 flex flex-col",children:[a.jsx("span",{className:"inline-block self-start text-[11px] font-semibold tracking-[0.14em] uppercase text-[hsl(var(--gold))] mb-3",children:_p[1]}),a.jsx("h2",{className:"font-serif text-3xl md:text-4xl text-[hsl(var(--navy))] mb-4 leading-tight",children:_p[0]}),a.jsx("p",{className:"text-muted-foreground leading-relaxed flex-1",children:_p[2]}),a.jsxs("span",{className:"mt-6 inline-flex items-center gap-1.5 text-sm font-semibold text-[hsl(var(--teal))] group-hover:text-[hsl(var(--navy))]",children:["Access ",a.jsx(md,{className:"h-4 w-4"})]})]})]})}),a.jsx(E,{stagger:!0,children:a.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:oue.map(([e,t,n,r])=>a.jsxs("article",{className:"group flex flex-col rounded-2xl border border-border bg-card p-7 hover:border-[hsl(var(--teal))] hover:shadow-md transition-all",children:[a.jsx("span",{className:"inline-block self-start text-[11px] font-semibold tracking-[0.14em] uppercase text-[hsl(var(--gold))] mb-3",children:t}),a.jsx("h3",{className:"font-serif text-xl text-[hsl(var(--navy))] mb-3 leading-tight",children:e}),a.jsx("p",{className:"text-muted-foreground leading-relaxed flex-1",children:n}),r&&a.jsx("span",{className:"mt-5 inline-flex items-center gap-1.5 text-sm font-semibold text-[hsl(var(--teal))] group-hover:text-[hsl(var(--navy))]",children:a.jsxs("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5",children:["Access ",a.jsx(md,{className:"h-4 w-4"})]})})]},e))})})]})}),lue="/assets/news-4mml-Zgf.jpg",cue=[{icon:Sj,title:"In The News",desc:"Press releases, news coverage, and organizational updates from MCC.",href:"/news/in-the-news"},{icon:hN,title:"Elder Kelly's Blog",desc:"Reflections from CEO Elder Suzanne Kelly.",href:"/news/blog"},{icon:vh,title:"Newsletter Signup & Archive",desc:"Sign up for News for the Common Good and browse past issues.",href:"/news/newsletter"},{icon:rN,title:"Events Calendar",desc:"Upcoming MCC programs, trainings, and community events.",href:"/news/events"}],uue=()=>a.jsxs(ae,{title:"News & Events",description:"Latest news, newsletter, and upcoming events from the Minnesota Council of Churches.",eyebrow:"Stay Informed",heading:"News & Events",intro:"The latest from the Minnesota Council of Churches — stories, updates, and upcoming events.",breadcrumbs:[{label:"Home",href:"/"},{label:"News & Events"}],path:"/news",children:[a.jsx(E,{as:"div",children:a.jsx("figure",{className:"max-w-5xl mx-auto mb-12 overflow-hidden rounded-2xl shadow-sm border border-border",children:a.jsx("img",{src:lue,alt:"A quiet morning scene with a coffee mug, reading glasses, and fresh flowers — a moment to catch up on 
419news",loading:"lazy",width:1536,height:864,className:"w-full h-auto object-cover aspect-[16/7]"})})}),a.jsx(E,{as:"div",stagger:!0,className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6 max-w-6xl mx-auto",children:cue.map(e=>a.jsxs(Y,{to:e.href,className:"group block bg-card rounded-2xl border border-border p-6 hover:shadow-lg hover:-translate-y-1 hover:border-[hsl(var(--teal))] transition-all",children:[a.jsx(e.icon,{className:"h-8 w-8 text-[hsl(var(--gold))] mb-3",strokeWidth:1.5}),a.jsx("h2",{className:"font-serif text-xl mb-2 text-[hsl(var(--navy))]",children:e.title}),a.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:e.desc}),a.jsxs("span",{className:"inline-flex items-center text-sm font-medium text-[hsl(var(--gold))] gap-1",children:["Visit ",a.jsx(nt,{className:"h-4 w-4"})]})]},e.href))})]}),due=1,hue="2f7aa93f-2edc-490a-ac6b-28c2a8f22c28",fue="5317579a-a8ee-431d-9a53-6d8cfe773828",pue="/__l5e/assets-v1/2f7aa93f-2edc-490a-ac6b-28c2a8f22c28/elder-suzanne-kelly.png",mue="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/2f7aa93f-2edc-490a-ac6b-28c2a8f22c28/elder-suzanne-kelly.png",gue="elder-suzanne-kelly.png",vue=433517,yue="image/png",bue="2026-09-01T19:39:36Z",xue={version:due,asset_id:hue,project_id:fue,url:pue,r2_key:mue,original_filename:gue,size:vue,content_type:yue,created_at:bue},wue=1,Cue="8c7904b2-8333-4f4a-b5ec-d8f15bd9bf28",_ue="5317579a-a8ee-431d-9a53-6d8cfe773828",jue="/__l5e/assets-v1/8c7904b2-8333-4f4a-b5ec-d8f15bd9bf28/annunciation-anniversary.png",Sue="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/8c7904b2-8333-4f4a-b5ec-d8f15bd9bf28/annunciation-anniversary.png",kue="annunciation-anniversary.png",Tue=476833,Eue="image/png",Nue="2026-09-02T15:24:17Z",Rue={version:wue,asset_id:Cue,project_id:_ue,url:jue,r2_key:Sue,original_filename:kue,size:Tue,content_type:Eue,created_at:Nue},Aue=[{label:"Home",href:"/"},{label:"News & Events",href:"/news"},{label:"Elder Kelly's Blog"}],jp=8,Pue=()=>{const[e,t]=b.useState([]),[n,r]=b.useState(!0),[s]=Q9();b.useEffect(()=>{let u=!0;return(async()=>{const{data:d}=await gt.from("blog_posts").select("*").eq("published",!0).order("published_at",{ascending:!1});u&&(t(d??[]),r(!1))})(),()=>{u=!1}},[]);const i=Number(s.get("page")??"1"),o=Math.max(1,Math.ceil(e.length/jp)),l=Math.min(Math.max(1,Number.isFinite(i)?i:1),o),c=e.slice((l-1)*jp,l*jp);return a.jsxs(ae,{title:"Elder Kelly's Blog",description:"Reflections, letters, and blog posts from Rev. Elder Kelly Chatman, Executive Director of the Minnesota Council of Churches.",eyebrow:"News & Events",heading:"Elder Kelly's Blog",intro:"Reflections, letters, and posts from Elder Suzanne Kelly, CEO of Minnesota Council of Churches, on faith, civic life, and our beloved community.",breadcrumbs:Aue,section:"news",path:"/news/blog",children:[a.jsx(E,{as:"div",className:"mb-10",children:a.jsxs("div",{className:"rounded-2xl border border-border bg-secondary/60 p-6 md:p-8 flex flex-col sm:flex-row gap-6 items-start",children:[a.jsx("img",{src:xue.url,alt:"Headshot of Elder Suzanne Kelly",loading:"lazy",className:"w-20 h-20 rounded-full object-cover object-[50%_20%] shrink-0"}),a.jsxs("div",{children:[a.jsx("div",{className:"text-[11px] font-semibold tracking-[0.14em] uppercase text-[hsl(var(--gold))] mb-1",children:"About the Author"}),a.jsx("h2",{className:"font-serif text-xl md:text-2xl text-[hsl(var(--navy))]",children:"Elder Suzanne Kelly"}),a.jsx("p",{className:"text-sm text-muted-foreground mt-2 leading-relaxed",children:"Elder Suzanne Kelly is the CEO of Minnesota Council of Churches. A pastor, mentor, and community leader writing on faith, civic dialogue, and building the beloved community across Minnesota."})]})]})}),n&&a.jsx("p",{className:"text-muted-foreground",children:"Loading posts…"}),!n&&e.length===0&&a.jsx("p",{className:"text-muted-foreground",children:"No posts published yet. Check back soon."}),a.jsx(E,{as:"div",className:"mb-10",children:a.jsxs("div",{className:"grid md:grid-cols-2 gap-0 rounded-2xl overflow-hidden border border-border bg-card shadow-sm",children:[a.jsx("div",{className:"aspect-[4/3] md:aspect-auto",children:a.jsx("img",{src:Rue.url,alt:"We remember. We grieve. We pray. — candles lit one year after the Annunciation tragedy",loading:"lazy",className:"w-full h-full object-cover object-top"})}),a.jsxs("div",{className:"p-8 flex flex-col justify-center",children:[a.jsx("div",{className:"text-[11px] font-semibold tracking-[0.14em] uppercase text-[hsl(var(--gold))] mb-3",children:"From Elder Kelly · Latest"}),a.jsx("h2",{className:"font-serif text-2xl md:text-3xl text-[hsl(var(--navy))] leading-snug",children:"The Shadow of Violence Will Not Overcome the Light of Love"}),a.jsx("p",{className:"text-sm text-muted-foreground mt-3 leading-relaxed",children:'"The Lord is close to the brokenhearted and saves those who are crushed in spirit." -Psalm 34:18'}),a.jsx("div",{className:"mt-6",children:a.jsxs(Y,{to:"/news/blog/shadow-of-violence-light-of-love",className:"inline-flex items-center gap-2 rounded-full bg-[hsl(var(--gold))] px-6 py-2.5 text-sm font-semibold text-white shadow-sm hover:opacity-90 hover:shadow-md transition-all",children:["Read",a.jsx(nt,{className:"h-4 w-4"})]})})]})]})}),!n&&e.length>0&&a.jsxs("div",{className:"text-[11px] font-semibold tracking-[0.14em] uppercase text-[hsl(var(--gold))] mb-3",children:["Page ",l," of ",o]}),a.jsx(E,{as:"div",stagger:!0,className:"grid gap-4",children:c.map(u=>a.jsxs(Y,{to:`/news/blog/${u.slug}`,className:"group flex flex-col sm:flex-row sm:items-center justify-between gap-3 rounded-xl border border-border bg-card p-5 hover:border-[hsl(var(--teal))] hover:shadow-md transition-all",children:[a.jsxs("div",{className:"flex-1",children:[a.jsx("h3",{className:"font-serif text-lg text-[hsl(var(--navy))] leading-snug group-hover:text-[hsl(var(--teal))] transition-colors",children:u.title}
419),a.jsx("div",{className:"text-xs font-mono tracking-wider uppercase text-muted-foreground mt-1",children:Ih(u.published_at)})]}),a.jsx(nt,{className:"h-4 w-4 text-[hsl(var(--teal))] transition-transform group-hover:translate-x-1 shrink-0"})]},u.id))}),o>1&&a.jsxs("div",{className:"mt-8 flex items-center justify-between gap-4",children:[l>1?a.jsxs(Y,{to:`/news/blog?page=${l-1}`,className:"inline-flex items-center gap-2 text-sm font-semibold text-[hsl(var(--teal))] hover:underline",children:[a.jsx(nt,{className:"h-4 w-4 rotate-180"}),"Page ",l-1]}):a.jsx("span",{}),l<o&&a.jsxs(Y,{to:`/news/blog?page=${l+1}`,className:"inline-flex items-center gap-2 text-sm font-semibold text-[hsl(var(--teal))] hover:underline",children:["More posts on Page ",l+1,a.jsx(nt,{className:"h-4 w-4"})]})]})]})},$ue=/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([\w-]{11})[^\s]*/g,Mue=({para:e})=>{const t=[...e.matchAll($ue)];if(t.length===0)return a.jsx("p",{className:"text-base leading-relaxed text-foreground/85 mb-5 whitespace-pre-line",children:e});const n=[];let r=0;for(const s of t){const i=s.index??0;i>r&&n.push(e.slice(r,i)),n.push({id:s[1]}),r=i+s[0].length}return r<e.length&&n.push(e.slice(r)),a.jsx("div",{className:"mb-5",children:n.map((s,i)=>typeof s=="string"?a.jsx("span",{className:"block text-base leading-relaxed text-foreground/85 whitespace-pre-line mb-3",children:s.trim()},`t${i}`):a.jsx("div",{className:"relative w-full overflow-hidden rounded-2xl border border-border shadow-sm my-3",style:{aspectRatio:"16 / 9"},children:a.jsx("iframe",{src:`https://www.youtube-nocookie.com/embed/${s.id}`,title:"YouTube video",className:"absolute inset-0 h-full w-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"})},`v${i}`))})},Oue=()=>{const{slug:e=""}=_9(),[t,n]=b.useState(null),[r,s]=b.useState(null),[i,o]=b.useState(!0);b.useEffect(()=>{let c=!0;return(async()=>{const{data:u}=await gt.from("blog_posts").select("*").eq("slug",e).maybeSingle();if(c&&(n(u??null),o(!1),u!=null&&u.cover_image_url)){const d=await lU(u.cover_image_url);c&&s(d)}})(),()=>{c=!1}},[e]);const l=(t==null?void 0:t.title)??(i?"Loading…":"Post not found");return a.jsx(ae,{title:l,description:(t==null?void 0:t.excerpt)??"A blog post from the Minnesota Council of Churches.",eyebrow:"Elder Kelly's Blog",heading:l,intro:(t==null?void 0:t.excerpt)??void 0,breadcrumbs:[{label:"Home",href:"/"},{label:"News & Events",href:"/news"},{label:"Elder Kelly's Blog",href:"/news/blog"},{label:(t==null?void 0:t.title)??"Post"}],section:"news",path:`/news/blog/${e}`,children:a.jsxs(E,{as:"div",children:[!i&&!t&&a.jsxs("p",{className:"text-muted-foreground",children:["We couldn't find that post."," ",a.jsx(Y,{to:"/news/blog",className:"text-[hsl(var(--teal))] underline",children:"Back to the blog"}),"."]}),t&&a.jsxs("article",{children:[a.jsxs("div",{className:"text-xs font-mono tracking-wider uppercase text-muted-foreground mb-6",children:[t.author_name,t.published_at&&` · ${Ih(t.published_at)}`]}),r&&a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm mb-8",children:a.jsx("img",{src:r,alt:t.title,loading:"lazy",className:"w-full h-auto object-contain"})}),a.jsx("div",{className:"prose-mcc max-w-2xl",children:t.body.split(/\n{2,}/).map((c,u)=>a.jsx(Mue,{para:c},u))}),a.jsxs(Y,{to:"/news/blog",className:"mt-10 inline-flex items-center gap-2 text-sm font-medium text-[hsl(var(--gold))]",children:[a.jsx(yj,{className:"h-4 w-4"})," All posts"]})]})]})})},Iue=1,Due="d0604c74-bf71-473a-8afd-635c154dc221",Lue="5317579a-a8ee-431d-9a53-6d8cfe773828",zue="/__l5e/assets-v1/d0604c74-bf71-473a-8afd-635c154dc221/hands-holding-bulletin.jpg",Fue="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/d0604c74-bf71-473a-8afd-635c154dc221/hands-holding-bulletin.jpg",Uue="hands-holding-bulletin.jpg",Bue=338340,Vue="image/jpeg",Hue="2026-09-02T19:59:52Z",Wue={version:Iue,asset_id:Due,project_id:Lue,url:zue,r2_key:Fue,original_filename:Uue,size:Bue,content_type:Vue,created_at:Hue},que=Wue.url,Kue=[{label:"Home",href:"/"},{label:"News & Events",href:"/news"},{label:"Newsletter"}],Zue=`<!doctype html><html><head><meta charset="utf-8"><style>
420html,body{margin:0;padding:0;background:transparent}
421[class*="ShareButtons__StyledShareLinksWrapper"]{display:none !important}
422.IN-widget{display:none !important}
423</style></head><body><script type="text/javascript" src="https://mnchurch.formstack.com/forms/js.php/enews_signup"><\/script></body></html>`,Gue=[["August 27, 2026","The Shadow of Violence Will Not Overcome the Light of Love","https://mailchi.mp/mnchurches/2026august12newsforthecommongood-2760810"],["August 12, 2026","Haiti: A Test of Our National Conscience","https://mailchi.mp/mnchurches/2026august12newsforthecommongood"],["July 30, 2026","When the World is Groaning","https://mailchi.mp/mnchurches/free-film-screenings-respectful-conversations-and-more-2760685"],["July 15, 2026","Film Screenings, Respectful Conversations, and More","https://mailchi.mp/mnchurches/free-film-screenings-respectful-conversations-and-more"],["July 1, 2026","America Turns 250: What Does that Mean for People of Faith?","https://mailchi.mp/mnchurches/can-we-love-our-country-without-worshiping-it"]],Jue=()=>{const e=b.useRef(null),[t,n]=b.useState(600);return b.useEffect(()=>{const r=window.setInterval(()=>{var o;const i=(o=e.current)==null?void 0:o.contentDocument;if(i!=null&&i.body){const l=Math.max(i.body.scrollHeight,i.documentElement.scrollHeight);l>50&&n(l)}},400),s=window.setTimeout(()=>window.clearInterval(r),15e3);return()=>{window.clearInterval(r),window.clearTimeout(s)}},[]),a.jsxs(ae,{title:"News for the Common Good",description:"Every three weeks we send news about MCC, reflections from partner organizations, thought pieces, grant opportunities, and job postings.",eyebrow:"News & Events",heading:"News for the Common Good",intro:"Sign up to receive the most recent news, updates, and events from MCC, along with reflections from partner organizations, thought pieces, and more through our enewsletter, News for the Common Good.",breadcrumbs:Kue,section:"news",path:"/news/newsletter",children:[a.jsx(E,{as:"div",children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm mb-10",children:a.jsx("img",{src:que,alt:"Hands holding an in-focus printed bulletin at a gathering",loading:"lazy",width:1920,height:1280,className:"w-full h-auto object-cover aspect-[16/6] object-[50%_32%]"})})}),a.jsxs(E,{as:"div",stagger:!0,className:"grid gap-12 lg:grid-cols-2",children:[a.jsxs("div",{className:"rounded-2xl border border-border bg-card p-8 lg:p-9 h-fit shadow-sm",children:[a.jsx("h2",{className:"font-serif text-2xl text-[hsl(var(--navy))] mb-1",children:"Subscribe"}),a.jsx("iframe",{ref:e,srcDoc:Zue,title:"News for the Common Good newsletter signup form",className:"w-full rounded-xl border-0",height:t,loading:"lazy"})]}),a.jsxs("div",{children:[a.jsx("h2",{className:"font-serif text-2xl text-[hsl(var(--navy))] mb-5",children:"Recent Newsletters"}),a.jsx("ul",{className:"space-y-3 list-none pl-0 m-0",children:Gue.map(([r,s,i])=>a.jsx("li",{children:a.jsxs("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"group block rounded-xl border border-border bg-card p-5 hover:border-[hsl(var(--teal))] hover:shadow-md transition-all",children:[a.jsx("div",{className:"text-sm text-muted-foreground",children:r}),a.jsx("div",{className:"font-serif text-lg text-[hsl(var(--navy))] group-hover:text-[hsl(var(--teal))] transition-colors mt-1",children:s})]})},i))})]})]})]})},Yue=[{label:"Home",href:"/"},{label:"News & Events",href:"/news"},{label:"Events Calendar"}],Que=()=>a.jsxs(ae,{title:"Events Calendar",description:"Respectful Conversations, facilitator trainings, member gatherings, and film screenings — across Minnesota and online.",eyebrow:"News & Events",heading:"Events Calendar",intro:"Explore events across Minnesota focused on convening, connecting, and catalyzing people of faith to build just, equitable, and livable communities for all Minnesotans.",breadcrumbs:Yue,section:"news",path:"/news/events",children:[a.jsx("div",{className:"flex justify-center mb-8",children:a.jsx(ce,{asChild:!0,size:"lg",className:"text-xl px-10 py-7 bg-[hsl(var(--gold))] text-[hsl(var(--gold-foreground))] hover:bg-[hsl(var(--gold))]/90",children:a.jsx("a",{href:"https://mnchurch.formstack.com/forms/event_submission",target:"_blank",rel:"noopener noreferrer",children:"Submit an Event"})})}),a.jsx(E,{as:"div",className:"grid gap-6 sm:grid-cols-2",children:j4.map(({day:e,month:t,title:n,when:r,where:s,pill:i,copy:o})=>
vendor: 41,697 bytes, lines 423-484
423a.jsxs("article",{className:"relative rounded-2xl border border-border bg-card p-6 shadow-sm hover:border-[hsl(var(--teal))] hover:shadow-md transition-all",children:[a.jsxs("div",{className:"flex items-start justify-between gap-4 mb-4",children:[e?a.jsxs("div",{className:"flex flex-col items-center justify-center rounded-xl bg-ivory border border-border min-w-16 px-2 shrink-0",children:[a.jsx("span",{className:"font-serif text-2xl text-[hsl(var(--navy))] leading-none whitespace-nowrap",children:e}),a.jsx("span",{className:"text-[10px] font-semibold tracking-[0.14em] uppercase text-muted-foreground mt-1",children:t})]}):a.jsx("div",{className:"flex items-center justify-center rounded-xl bg-ivory border border-border min-w-16 px-2 shrink-0",children:a.jsx("span",{className:"text-[10px] font-semibold tracking-[0.14em] uppercase text-muted-foreground",children:"Ongoing"})}),a.jsx("span",{className:"inline-block text-[10px] font-semibold tracking-[0.14em] uppercase text-[hsl(var(--gold))] border border-[hsl(var(--gold))]/40 rounded-full px-3 py-1 ml-auto",children:i})]}),a.jsx("h3",{className:"font-serif text-xl text-[hsl(var(--navy))] leading-snug mb-3",children:n}),a.jsx("p",{className:"text-sm text-foreground/90 leading-relaxed mb-3 whitespace-pre-line",children:o||"Event copy goes here — replace this text with your copy."}),a.jsx("div",{className:"text-sm text-[hsl(var(--gold))]",children:r}),a.jsxs("div",{className:"text-sm text-muted-foreground mt-1",children:["↳ ",s]})]},n))})]});var Rw;function I(e,t,n){function r(l,c){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:c,constr:o,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,c);const u=o.prototype,d=Object.keys(u);for(let h=0;h<d.length;h++){const f=d[h];f in l||(l[f]=u[f].bind(l))}}const s=(n==null?void 0:n.Parent)??Object;class i extends s{}Object.defineProperty(i,"name",{value:e});function o(l){var c;const u=n!=null&&n.Parent?new i:this;r(u,l),(c=u._zod).deferred??(c.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:l=>{var c,u;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(u=(c=l==null?void 0:l._zod)==null?void 0:c.traits)==null?void 0:u.has(e)}}),Object.defineProperty(o,"name",{value:e}),o}class $o extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class _S extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Rw=globalThis).__zod_globalConfig??(Rw.__zod_globalConfig={});const Qy=globalThis.__zod_globalConfig;function Ni(e){return Qy}function jS(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,s])=>t.indexOf(+r)===-1).map(([r,s])=>s)}function Sg(e,t){return typeof t=="bigint"?t.toString():t}function Xy(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function e1(e){return e==null}function t1(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const Aw=Symbol("evaluating");function Ee(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Aw)return r===void 0&&(r=Aw,r=n()),r},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function Oi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function qs(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Pw(e){return JSON.stringify(e)}function Xue(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const SS="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ud(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ede=Xy(()=>{var e;if(Qy.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Ql(e){if(Ud(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ud(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function kS(e){return Ql(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const tde=new Set(["string","number","symbol"]);function Kh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ks(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function oe(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function nde(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function rde(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=qs(e._zod.def,{get shape(){const o={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(o[l]=n.shape[l])}return Oi(this,"shape",o),o},checks:[]});return Ks(e,i)}function sde(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=qs(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete o[l]}return Oi(this,"shape",o),o},checks:[]});return Ks(e,i)}function ide(e,t){if(!Ql(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const o in t)if(Object.getOwnPropertyDescriptor(i,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=qs(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Oi(this,"shape",i),i}});return Ks(e,s)}function ode(e,t){if(!Ql(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=qs(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Oi(this,"shape",r),r}});return Ks(e,n)}function ade(e,t){var r;if((r=e._zod.def.checks)!=null&&r.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=qs(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t._zod.def.shape};return Oi(this,"shape",s),s},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Ks(e,n)}function lde(e,t,n){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=qs(t._zod.def,{get shape(){const l=t._zod.def.shape,c={...l};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(const u in l)c[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return Oi(this,"shape",c),c},checks:[]});return Ks(t,o)}function cde(e,t,n){const r=qs(t._zod.def,{get shape(){const s=t._zod.def.shape,i={...s};if(n)for(const o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(i[o]=new e({type:"nonoptional",innerType:s[o]}))}else for(const o in s)i[o]=new e({type:"nonoptional",innerType:s[o]});return Oi(this,"shape",i),i}});return Ks(t,r)}function xo(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function ude(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function TS(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function uu(e){return typeof e=="string"?e:e==null?void 0:e.message}function Ri(e,t,n){var c,u,d,h,f,p;const r=e.message?e.message:uu((d=(u=(c=e.inst)==null?void 0:c._zod.def)==null?void 0:u.error)==null?void 0:d.call(u,e))??uu((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??uu((f=n.customError)==null?void 0:f.call(n,e))??uu((p=n.localeError)==null?void 0:p.call(n,e))??"Invalid input",{inst:s,continue:i,input:o,...l}=e;return l.path??(l.path=[]),l.message=r,t!=null&&t.reportInput&&(l.input=o),l}function n1(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Xl(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const ES=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Sg,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},NS=I("$ZodError",ES),RS=I("$ZodError",ES,{Parent:Error});function dde(e,t=n=>n.message){const n={},r=[];for(const s of e.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}function hde(e,t=n=>n.message){const n={_errors:[]},r=(s,i=[])=>{for(const o of s.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(l=>r({issues:l},[...i,...o.path]));else if(o.code==="invalid_key")r({issues:o.issues},[...i,...o.path]);else if(o.code==="invalid_element")r({issues:o.issues},[...i,...o.path]);else{const l=[...i,...o.path];if(l.length===0)n._errors.push(t(o));else{let c=n,u=0;for(;u<l.length;){const d=l[u];u===l.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(t(o))):c[d]=c[d]||{_errors:[]},c=c[d],u++}}}};return r(e),n}const r1=e=>(t,n,r,s)=>{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new $o;if(o.issues.length){const l=new((s==null?void 0:s.Err)??e)(o.issues.map(c=>Ri(c,i,Ni())));throw SS(l,s==null?void 0:s.callee),l}return o.value},s1=e=>async(t,n,r,s)=>{const i=r?{...r,async:!0}:{async:!0};let o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise&&(o=await o),o.issues.length){const l=new((s==null?void 0:s.Err)??e)(o.issues.map(c=>Ri(c,i,Ni())));throw SS(l,s==null?void 0:s.callee),l}return o.value},Zh=e=>(t,n,r)=>{const s=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise)throw new $o;return i.issues.length?{success:!1,error:new(e??NS)(i.issues.map(o=>Ri(o,s,Ni())))}:{success:!0,data:i.value}},fde=Zh(RS),Gh=e=>async(t,n,r)=>{const s=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},s);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(o=>Ri(o,s,Ni())))}:{success:!0,data:i.value}},pde=Gh(RS),mde=e=>(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return r1(e)(t,n,s)},gde=e=>(t,n,r)=>r1(e)(t,n,r),vde=e=>async(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return s1(e)(t,n,s)},yde=e=>async(t,n,r)=>s1(e)(t,n,r),bde=e=>(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return Zh(e)(t,n,s)},xde=e=>(t,n,r)=>Zh(e)(t,n,r),wde=e=>async(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return Gh(e)(t,n,s)},Cde=e=>async(t,n,r)=>Gh(e)(t,n,r),_de=/^[cC][0-9a-z]{6,}$/,jde=/^[0-9a-z]+$/,Sde=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,kde=/^[0-9a-vA-V]{20}$/,Tde=/^[A-Za-z0-9]{27}$/,Ede=/^[a-zA-Z0-9_-]{21}$/,Nde=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Rde=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$w=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ade=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Pde="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function $de(){return new RegExp(Pde,"u")}const Mde=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ode=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ide=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Dde=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Lde=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,AS=/^[A-Za-z0-9_-]*$/,zde=/^https?$/,Fde=/^\+[1-9]\d{6,14}$/,PS="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Ude=new RegExp(`^${PS}$`);function $S(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Bde(e){return new RegExp(`^${$S(e)}$`)}function Vde(e){const t=$S({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${PS}T(?:${r})$`)}const Hde=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Wde=/^[^A-Z]*$/,qde=/^[^a-z]*$/,br=I("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Kde=I("$ZodCheckMaxLength",(e,t)=>{var n;br.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!e1(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const s=r.value;if(s.length<=t.maximum)return;const o=n1(s);r.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Zde=I("$ZodCheckMinLength",(e,t)=>{var n;br.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!e1(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const s=r.value;if(s.length>=t.minimum)return;const o=n1(s);r.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Gde=I("$ZodCheckLengthEquals",(e,t)=>{var n;br.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!e1(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=r=>{const s=r.value,i=s.length;if(i===t.length)return;const o=n1(s),l=i>t.length;r.issues.push({origin:o,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Jh=I("$ZodCheckStringFormat",(e,t)=>{var n,r;br.init(e,t),e._zod.onattach.push(s=>{const i=s._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Jde=I("$ZodCheckRegex",(e,t)=>{Jh.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Yde=I("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Wde),Jh.init(e,t)}),Qde=I("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=qde),Jh.init(e,t)}),Xde=I("$ZodCheckIncludes",(e,t)=>{br.init(e,t);const n=Kh(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(s=>{const i=s._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),ehe=I("$ZodCheckStartsWith",(e,t)=>{br.init(e,t);const n=new RegExp(`^${Kh(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),the=I("$ZodCheckEndsWith",(e,t)=>{br.init(e,t);const n=new RegExp(`.*${Kh(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),nhe=I("$ZodCheckOverwrite",(e,t)=>{br.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class rhe{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
424`).filter(o=>o),s=Math.min(...r.map(o=>o.length-o.trimStart().length)),i=r.map(o=>o.slice(s)).map(o=>" ".repeat(this.indent*2)+o);for(const o of i)this.content.push(o)}compile(){const t=Function,n=this==null?void 0:this.args,s=[...((this==null?void 0:this.content)??[""]).map(i=>`  ${i}`)];return new t(...n,s.join(`
425`))}}const she={major:4,minor:4,patch:3},ot=I("$ZodType",(e,t)=>{var s;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=she;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const o of i._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(s=e._zod.deferred)==null||s.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,c,u)=>{let d=xo(l),h;for(const f of c){if(f._zod.def.when){if(ude(l)||!f._zod.def.when(l))continue}else if(d)continue;const p=l.issues.length,y=f._zod.check(l);if(y instanceof Promise&&(u==null?void 0:u.async)===!1)throw new $o;if(h||y instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await y,l.issues.length!==p&&(d||(d=xo(l,p)))});else{if(l.issues.length===p)continue;d||(d=xo(l,p))}}return h?h.then(()=>l):l},o=(l,c,u)=>{if(xo(l))return l.aborted=!0,l;const d=i(c,r,u);if(d instanceof Promise){if(u.async===!1)throw new $o;return d.then(h=>e._zod.parse(h,u))}return e._zod.parse(d,u)};e._zod.run=(l,c)=>{if(c.skipChecks)return e._zod.parse(l,c);if(c.direction==="backward"){const d=e._zod.parse({value:l.value,issues:[]},{...c,skipChecks:!0});return d instanceof Promise?d.then(h=>o(h,l,c)):o(d,l,c)}const u=e._zod.parse(l,c);if(u instanceof Promise){if(c.async===!1)throw new $o;return u.then(d=>i(d,r,c))}return i(u,r,c)}}Ee(e,"~standard",()=>({validate:i=>{var o;try{const l=fde(e,i);return l.success?{value:l.data}:{issues:(o=l.error)==null?void 0:o.issues}}catch{return pde(e,i).then(c=>{var u;return c.success?{value:c.data}:{issues:(u=c.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),i1=I("$ZodString",(e,t)=>{var n;ot.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Hde(e._zod.bag),e._zod.parse=(r,s)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),De=I("$ZodStringFormat",(e,t)=>{Jh.init(e,t),i1.init(e,t)}),ihe=I("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Rde),De.init(e,t)}),ohe=I("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=$w(r))}else t.pattern??(t.pattern=$w());De.init(e,t)}),ahe=I("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ade),De.init(e,t)}),lhe=I("$ZodURL",(e,t)=>{De.init(e,t),e._zod.check=n=>{var r;try{const s=n.value.trim();if(!t.normalize&&((r=t.protocol)==null?void 0:r.source)===zde.source&&!/^https?:\/\//i.test(s)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(s);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=s;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),che=I("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=$de()),De.init(e,t)}),uhe=I("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Ede),De.init(e,t)}),dhe=I("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=_de),De.init(e,t)}),hhe=I("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=jde),De.init(e,t)}),fhe=I("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Sde),De.init(e,t)}),phe=I("$ZodXID",(e,t)=>{t.pattern??(t.pattern=kde),De.init(e,t)}),mhe=I("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Tde),De.init(e,t)}),ghe=I("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Vde(t)),De.init(e,t)}),vhe=I("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ude),De.init(e,t)}),yhe=I("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Bde(t)),De.init(e,t)}),bhe=I("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Nde),De.init(e,t)}),xhe=I("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Mde),De.init(e,t),e._zod.bag.format="ipv4"}),whe=I("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ode),De.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Che=I("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ide),De.init(e,t)}),_he=I("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Dde),De.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[s,i]=r;if(!i)throw new Error;const o=Number(i);if(`${o}`!==i)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${s}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function MS(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const jhe=I("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Lde),De.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{MS(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function She(e){if(!AS.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return MS(n)}const khe=I("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=AS),De.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{She(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),The=I("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Fde),De.init(e,t)});function Ehe(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const s=JSON.parse(atob(r));return!("typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}const Nhe=I("$ZodJWT",(e,t)=>{De.init(e,t),e._zod.check=n=>{Ehe(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Rhe=I("$ZodUnknown",(e,t)=>{ot.init(e,t),e._zod.parse=n=>n}),Ahe=I("$ZodNever",(e,t)=>{ot.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Mw(e,t,n){e.issues.length&&t.issues.push(...TS(n,e.issues)),t.value[n]=e.value}const Phe=I("$ZodArray",(e,t)=>{ot.init(e,t),e._zod.parse=(n,r)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),n;n.value=Array(s.length);const i=[];for(let o=0;o<s.length;o++){const l=s[o],c=t.element._zod.run({value:l,issues:[]},r);c instanceof Promise?i.push(c.then(u=>Mw(u,n,o))):Mw(c,n,o)}return i.length?Promise.all(i).then(()=>n):n}});function Bd(e,t,n,r,s,i){const o=n in r;if(e.issues.length){if(s&&i&&!o)return;t.issues.push(...TS(n,e.issues))}if(!o&&!s){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function OS(e){var r,s,i,o;const t=Object.keys(e.shape);for(const l of t)if(!((o=(i=(s=(r=e.shape)==null?void 0:r[l])==null?void 0:s._zod)==null?void 0:i.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=nde(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function IS(e,t,n,r,s,i){const o=[],l=s.keySet,c=s.catchall._zod,u=c.def.type,d=c.optin==="optional",h=c.optout==="optional";for(const f in t){if(f==="__proto__"||l.has(f))continue;if(u==="never"){o.push(f);continue}const p=c.run({value:t[f],issues:[]},r);p instanceof Promise?e.push(p.then(y=>Bd(y,n,f,t,d,h))):Bd(p,n,f,t,d,h)}return o.length&&n.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const $he=I("$ZodObject",(e,t)=>{ot.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...l};return Object.defineProperty(t,"shape",{value:c}),c}})}const r=Xy(()=>OS(t));Ee(e._zod,"propValues",()=>{const l=t.shape,c={};for(const u in l){const d=l[u]._zod;if(d.values){c[u]??(c[u]=new Set);for(const h of d.values)c[u].add(h)}}return c});const s=Ud,i=t.catchall;let o;e._zod.parse=(l,c)=>{o??(o=r.value);const u=l.value;if(!s(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const d=[],h=o.shape;for(const f of o.keys){const p=h[f],y=p._zod.optin==="optional",m=p._zod.optout==="optional",w=p._zod.run({value:u[f],issues:[]},c);w instanceof Promise?d.push(w.then(v=>Bd(v,l,f,u,y,m))):Bd(w,l,f,u,y,m)}return i?IS(d,u,l,c,r.value,e):d.length?Promise.all(d).then(()=>l):l}}),Mhe=I("$ZodObjectJIT",(e,t)=>{$he.init(e,t);const n=e._zod.parse,r=Xy(()=>OS(t)),s=f=>{var x,C;const p=new rhe(["shape","payload","ctx"]),y=r.value,m=_=>{const S=Pw(_);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};p.write("const input = payload.value;");const w=Object.create(null);let v=0;for(const _ of y.keys)w[_]=`key_${v++}`;p.write("const newResult = {};");for(const _ of y.keys){const S=w[_],j=Pw(_),k=f[_],T=((x=k==null?void 0:k._zod)==null?void 0:x.optin)==="optional",R=((C=k==null?void 0:k._zod)==null?void 0:C.optout)==="optional";p.write(`const ${S} = ${m(_)};`),T&&R?p.write(`
426        if (${S}.issues.length) {
427          if (${j} in input) {
428            payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
429              ...iss,
430              path: iss.path ? [${j}, ...iss.path] : [${j}]
431            })));
432          }
433        }
434        
435        if (${S}.value === undefined) {
436          if (${j} in input) {
437            newResult[${j}] = undefined;
438          }
439        } else {
440          newResult[${j}] = ${S}.value;
441        }
442        
443      `):T?p.write(`
444        if (${S}.issues.length) {
445          payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
446            ...iss,
447            path: iss.path ? [${j}, ...iss.path] : [${j}]
448          })));
449        }
450        
451        if (${S}.value === undefined) {
452          if (${j} in input) {
453            newResult[${j}] = undefined;
454          }
455        } else {
456          newResult[${j}] = ${S}.value;
457        }
458        
459      `):p.write(`
460        const ${S}_present = ${j} in input;
461        if (${S}.issues.length) {
462          payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
463            ...iss,
464            path: iss.path ? [${j}, ...iss.path] : [${j}]
465          })));
466        }
467        if (!${S}_present && !${S}.issues.length) {
468          payload.issues.push({
469            code: "invalid_type",
470            expected: "nonoptional",
471            input: undefined,
472            path: [${j}]
473          });
474        }
475
476        if (${S}_present) {
477          if (${S}.value === undefined) {
478            newResult[${j}] = undefined;
479          } else {
480            newResult[${j}] = ${S}.value;
481          }
482        }
483
484      `)}p.write("payload.value = newResult;"),p.write("return payload;");const g=p.compile();return(_,S)=>g(f,_,S)};let i;const o=Ud,l=!Qy.jitless,u=l&&ede.value,d=t.catchall;let h;e._zod.parse=(f,p)=>{h??(h=r.value);const y=f.value;return o(y)?l&&u&&(p==null?void 0:p.async)===!1&&p.jitless!==!0?(i||(i=s(t.shape)),f=i(f,p),d?IS([],y,f,p,h,e):f):n(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),f)}});function Ow(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const s=e.filter(i=>!xo(i));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(o=>Ri(o,r,Ni())))}),t)}const Ohe=I("$ZodUnion",(e,t)=>{ot.init(e,t),Ee(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Ee(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Ee(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Ee(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${r.map(s=>t1(s.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,s)=>{if(n)return n(r,s);let i=!1;const o=[];for(const l of t.options){const c=l._zod.run({value:r.value,issues:[]},s);if(c instanceof Promise)o.push(c),i=!0;else{if(c.issues.length===0)return c;o.push(c)}}return i?Promise.all(o).then(l=>Ow(l,r,e,s)):Ow(o,r,e,s)}}),Ihe=I("$ZodIntersection",(e,t)=>{ot.init(e,t),e._zod.parse=(n,r)=>{const s=n.value,i=t.left._zod.run({value:s,issues:[]},r),o=t.right._zod.run({value:s,issues:[]},r);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([c,u])=>Iw(n,c,u)):Iw(n,i,o)}});function kg(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ql(e)&&Ql(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),s={...e,...t};for(const i of r){const o=kg(e[i],t[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};s[i]=o.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const s=e[r],i=t[r],o=kg(s,i);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Iw(e,t,n){const r=new Map;let s;for(const l of t.issues)if(l.code==="unrecognized_keys"){s??(s=l);for(const c of l.keys)r.has(c)||r.set(c,{}),r.get(c).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const c of l.keys)r.has(c)||r.set(c,{}),r.get(c).r=!0;else e.issues.push(l);const i=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&s&&e.issues.push({...s,keys:i}),xo(e))return e;const o=kg(t.value,n.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Dhe=I("$ZodEnum",(e,t)=>{ot.init(e,t);const n=jS(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(s=>tde.has(typeof s)).map(s=>typeof s=="string"?Kh(s):s.toString()).join("|")})$`),e._zod.parse=(s,i)=>{const o=s.value;return r.has(o)||s.issues.push({code:"invalid_value",values:n,input:o,inst:e}),s}}),Lhe=I("$ZodTransform",(e,t)=>{ot.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new _S(e.constructor.name);const s=t.transform(n.value,n);if(r.async)return(s instanceof Promise?s:Promise.resolve(s)).then(o=>(n.value=o,n.fallback=!0,n));if(s instanceof Promise)throw new $o;return n.value=s,n.fallback=!0,n}});function Dw(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const DS=I("$ZodOptional",(e,t)=>{ot.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ee(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ee(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${t1(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const s=n.value,i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>Dw(o,s)):Dw(i,s)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),zhe=I("$ZodExactOptional",(e,t)=>{DS.init(e,t),Ee(e._zod,"values",()=>t.innerType._zod.values),Ee(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Fhe=I("$ZodNullable",(e,t)=>{ot.init(e,t),Ee(e._zod,"optin",()=>t.innerType._zod.optin),Ee(e._zod,"optout",()=>t.innerType._zod.optout),Ee(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${t1(n.source)}|null)$`):void 0}),Ee(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Uhe=I("$ZodDefault",(e,t)=>{ot.init(e,t),e._zod.optin="optional",Ee(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(i=>Lw(i,t)):Lw(s,t)}});function Lw(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Bhe=I("$ZodPrefault",(e,t)=>{ot.init(e,t),e._zod.optin="optional",Ee(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Vhe=I("$ZodNonOptional",(e,t)=>{ot.init(e,t),Ee(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(i=>zw(i,e)):zw(s,e)}});function zw(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Hhe=I("$ZodCatch",(e,t)=>{ot.init(e,t),e._zod.optin="optional",Ee(e._zod,"optout",()=>t.innerType._zod.optout),Ee(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>Ri(o,r,Ni()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(i=>Ri(i,r,Ni()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Whe=I("$ZodPipe",(e,t)=>{ot.init(e,t),Ee(e._zod,"values",()=>t.in._zod.values),Ee(e._zod,"optin",()=>t.in._zod.optin),Ee(e._zod,"optout",()=>t.out._zod.optout),Ee(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(o=>du(o,t.in,r)):du(i,t.in,r)}const s=t.in._zod.run(n,r);return s instanceof Promise?s.then(i=>du(i,t.out,r)):du(s,t.out,r)}});function du(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const qhe=I("$ZodReadonly",(e,t)=>{ot.init(e,t),Ee(e._zod,"propValues",()=>t.innerType._zod.propValues),Ee(e._zod,"values",()=>t.innerType._zod.values),Ee(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),Ee(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(Fw):Fw(s)}});function Fw(e){return e.value=Object.freeze(e.value),e}const Khe=I("$ZodCustom",(e,t)=>{br.init(e,t),ot.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,s=t.fn(r);if(s instanceof Promise)return s.then(i=>Uw(i,n,r,e));Uw(s,n,r,e)}});function Uw(e,t,n,r){if(!e){const s={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(s.params=r._zod.def.params),t.issues.push(Xl(s))}}var Bw;class Zhe{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const s={...r,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Ghe(){return new Zhe}(Bw=globalThis).__zod_globalRegistry??(Bw.__zod_globalRegistry=Ghe());const qa=globalThis.__zod_globalRegistry;function Jhe(e,t){return new e({type:"string",...oe(t)})}function Yhe(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...oe(t)})}function Vw(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...oe(t)})}function Qhe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...oe(t)})}function Xhe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...oe(t)})}function efe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...oe(t)})}function tfe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...oe(t)})}function nfe(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...oe(t)})}function rfe(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...oe(t)})}function sfe(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...oe(t)})}function ife(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...oe(t)})}function ofe(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...oe(t)})}function afe(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...oe(t)})}function lfe(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...oe(t)})}function cfe(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...oe(t)})}function ufe(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...oe(t)})}function dfe(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...oe(t)})}function hfe(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...oe(t)})}function ffe(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...oe(t)})}function pfe(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...oe(t)})}function mfe(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...oe(t)})}function gfe(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...oe(t)})}function vfe(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...oe(t)})}function yfe(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...oe(t)})}function bfe(e,t){return new e({type:"string",format:"date",check:"string_format",...oe(t)})}function xfe(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...oe(t)})}function wfe(e,t){return new e({type:"string",format:"duration",check:"string_format",...oe(t)})}function Cfe(e){return new e({type:"unknown"})}function _fe(e,t){return new e({type:"never",...oe(t)})}function LS(e,t){return new Kde({check:"max_length",...oe(t),maximum:e})}function Vd(e,t){return new Zde({check:"min_length",...oe(t),minimum:e})}function zS(e,t){return new Gde({check:"length_equals",...oe(t),length:e})}function jfe(e,t){return new Jde({check:"string_format",format:"regex",...oe(t),pattern:e})}function Sfe(e){return new Yde({check:"string_format",format:"lowercase",...oe(e)})}function kfe(e){return new Qde({check:"string_format",format:"up
484percase",...oe(e)})}function Tfe(e,t){return new Xde({check:"string_format",format:"includes",...oe(t),includes:e})}function Efe(e,t){return new ehe({check:"string_format",format:"starts_with",...oe(t),prefix:e})}function Nfe(e,t){return new the({check:"string_format",format:"ends_with",...oe(t),suffix:e})}function ga(e){return new nhe({check:"overwrite",tx:e})}function Rfe(e){return ga(t=>t.normalize(e))}function Afe(){return ga(e=>e.trim())}function Pfe(){return ga(e=>e.toLowerCase())}function $fe(){return ga(e=>e.toUpperCase())}function Mfe(){return ga(e=>Xue(e))}function Ofe(e,t,n){return new e({type:"array",element:t,...oe(n)})}function Ife(e,t,n){return new e({type:"custom",check:"custom",fn:t,...oe(n)})}function Dfe(e,t){const n=Lfe(r=>(r.addIssue=s=>{if(typeof s=="string")r.issues.push(Xl(s,r.value,n._zod.def));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(Xl(i))}},e(r.value,r)),t);return n}function Lfe(e,t){const n=new br({check:"custom",...oe(t)});return n._zod.check=e,n}function FS(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??qa,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function bt(e,t,n={path:[],schemaPath:[]}){var d,h;var r;const s=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);const l=(h=(d=e._zod).toJSONSchema)==null?void 0:h.call(d);if(l)o.schema=l;else{const f={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,f);else{const y=o.schema,m=t.processors[s.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);m(e,t,y,f)}const p=e._zod.parent;p&&(o.ref||(o.ref=p),bt(p,t,f),t.seen.get(p).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io==="input"&&Rt(e)&&(delete o.schema.examples,delete o.schema.default),t.io==="input"&&"_prefault"in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function US(e,t){var o,l,c,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const d of e.seen.entries()){const h=(o=e.metadataRegistry.get(d[0]))==null?void 0:o.id;if(h){const f=r.get(h);if(f&&f!==d[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(h,d[0])}}const s=d=>{var m;const h=e.target==="draft-2020-12"?"$defs":"definitions";
vendor: 6,944 bytes, lines 484-486
484if(e.external){const w=(m=e.external.registry.get(d[0]))==null?void 0:m.id,v=e.external.uri??(x=>x);if(w)return{ref:v(w)};const g=d[1].defId??d[1].schema.id??`schema${e.counter++}`;return d[1].defId=g,{defId:g,ref:`${v("__shared")}#/${h}/${g}`}}if(d[1]===n)return{ref:"#"};const p=`#/${h}/`,y=d[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:p+y}},i=d=>{if(d[1].schema.$ref)return;const h=d[1],{ref:f,defId:p}=s(d);h.def={...h.schema},p&&(h.defId=p);const y=h.schema;for(const m in y)delete y[m];y.$ref=f};if(e.cycles==="throw")for(const d of e.seen.entries()){const h=d[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.cycle)==null?void 0:l.join("/")}/<root>
485
486Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const d of e.seen.entries()){const h=d[1];if(t===d[0]){i(d);continue}if(e.external){const p=(c=e.external.registry.get(d[0]))==null?void 0:c.id;if(t!==d[0]&&p){i(d);continue}}if((u=e.metadataRegistry.get(d[0]))==null?void 0:u.id){i(d);continue}if(h.cycle){i(d);continue}if(h.count>1&&e.reused==="ref"){i(d);continue}}}function BS(e,t){var l,c,u,d;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=h=>{const f=e.seen.get(h);if(f.ref===null)return;const p=f.def??f.schema,y={...p},m=f.ref;if(f.ref=null,m){r(m);const v=e.seen.get(m),g=v.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(p.allOf=p.allOf??[],p.allOf.push(g)):Object.assign(p,g),Object.assign(p,y),h._zod.parent===m)for(const C in p)C==="$ref"||C==="allOf"||C in y||delete p[C];if(g.$ref&&v.def)for(const C in p)C==="$ref"||C==="allOf"||C in v.def&&JSON.stringify(p[C])===JSON.stringify(v.def[C])&&delete p[C]}const w=h._zod.parent;if(w&&w!==m){r(w);const v=e.seen.get(w);if(v!=null&&v.schema.$ref&&(p.$ref=v.schema.$ref,v.def))for(const g in p)g==="$ref"||g==="allOf"||g in v.def&&JSON.stringify(p[g])===JSON.stringify(v.def[g])&&delete p[g]}e.override({zodSchema:h,jsonSchema:p,path:f.path??[]})};for(const h of[...e.seen.entries()].reverse())r(h[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(c=e.external.registry.get(t))==null?void 0:c.id;if(!h)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(h)}Object.assign(s,n.def??n.schema);const i=(u=e.metadataRegistry.get(t))==null?void 0:u.id;i!==void 0&&s.id===i&&delete s.id;const o=((d=e.external)==null?void 0:d.defs)??{};for(const h of e.seen.entries()){const f=h[1];f.def&&f.defId&&(f.def.id===f.defId&&delete f.def.id,o[f.defId]=f.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?s.$defs=o:s.definitions=o);try{const h=JSON.parse(JSON.stringify(s));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:Hd(t,"input",e.processors),output:Hd(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function Rt(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Rt(r.element,n);if(r.type==="set")return Rt(r.valueType,n);if(r.type==="lazy")return Rt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Rt(r.innerType,n);if(r.type==="intersection")return Rt(r.left,n)||Rt(r.right,n);if(r.type==="record"||r.type==="map")return Rt(r.keyType,n)||Rt(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Rt(r.in,n)||Rt(r.out,n);if(r.type==="object"){for(const s in r.shape)if(Rt(r.shape[s],n))return!0;return!1}if(r.type==="union"){for(const s of r.options)if(Rt(s,n))return!0;return!1}if(r.type==="tuple"){for(const s of r.items)if(Rt(s,n))return!0;return!!(r.rest&&Rt(r.rest,n))}return!1}const zfe=(e,t={})=>n=>{const r=FS({...n,processors:t});return bt(e,r),US(r,e),BS(r,e)},Hd=(e,t,n={})=>r=>{const{libraryOptions:s,target:i}=r??{},o=FS({...s??{},target:i,io:t,processors:n});return bt(e,o),US(o,e),BS(o,e)},Ffe={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ufe=(e,t,n,r)=>{const s=n;s.type="string";const{minimum:i,maximum:o,format:l,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(s.minLength=i),typeof o=="number"&&(s.maxLength=o),l&&(s.format=Ffe[l]??l,s.format===""&&delete s.format,l==="time"&&delete s.format),u&&(s.contentEncoding=u),c&&c.size>0){const d=[...c];d.length===1?s.pattern=d[0].source:d.length>1&&(s.allOf=[...d.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},Bfe=(e,t,n,r)=>{n.not={}},Vfe=(e,t,n,r)=>{},Hfe=(e,t,n,r)=>{const s=e._zod.def,i=jS(s.entries);i.every(o=>typeof o=="number")&&(n.type="number"),i.every(o=>typeof o=="string")&&(n.type="string"),n.enum=i},Wfe=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},qfe=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Kfe=(e,t,n,r)=>{const s=n,i=e._zod.def,{minimum:o,maximum:l}=e._zod.bag;typeof o=="number"&&(s.minItems=o),typeof l=="number"&&(s.maxItems=l),s.type="array",s.items=bt(i.element,t,{...r,path:[...r.path,"items"]})},Zfe=(e,t,n,r)=>{var u;const s=n,i=e._zod.def;s.type="object",s.properties={};const o=i.shape;for(const d in o)s.properties[d]=bt(o[d],t,{...r,path:[...r.path,"properties",d]});const l=new Set(Object.keys(o)),c=new Set([...l].filter(d=>{const h=i.shape[d]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));c.size>0&&(s.required=Array.from(c)),((u=i.catchall)==null?void 0:u._zod.def.type)==="never"?s.additionalProperties=!1:i.catchall?i.catchall&&(s.additionalProperties=bt(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},Gfe=(e,t,n,r)=>{const s=e._zod.def,i=s.inclusive===!1,o=s.options.map((l,c)=>bt(l,t,{...r,path:[...r.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=o:n.anyOf=o},Jfe=(e,t,n,r)=>{const s=e._zod.def,i=bt(s.left,t,{...r,path:[...r.path,"allOf",0]}),o=bt(s.right,t,{...r,path:[...r.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,c=[...l(i)?i.allOf:[i],...l(o)?o.allOf:[o]];n.allOf=c},Yfe=(e,t,n,r)=>{const s=e._zod.def,i=bt(s.innerType,t,r),o=t.seen.get(e);t.target==="openapi-3.0"?(o.ref=s.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Qfe=(e,t,n,r)=>{const s=e._zod.def;bt(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType},Xfe=(e,t,n,r)=>{const s=e._zod.def;bt(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType,n.default=JSON.parse(JSON.stringify(s.defaultValue))}
vendor: 4,309 bytes, line 486
486,epe=(e,t,n,r)=>{const s=e._zod.def;bt(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},tpe=(e,t,n,r)=>{const s=e._zod.def;bt(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType;let o;try{o=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=o},npe=(e,t,n,r)=>{const s=e._zod.def,i=s.in._zod.traits.has("$ZodTransform"),o=t.io==="input"?i?s.out:s.in:s.out;bt(o,t,r);const l=t.seen.get(e);l.ref=o},rpe=(e,t,n,r)=>{const s=e._zod.def;bt(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType,n.readOnly=!0},VS=(e,t,n,r)=>{const s=e._zod.def;bt(s.innerType,t,r);const i=t.seen.get(e);i.ref=s.innerType},spe=I("ZodISODateTime",(e,t)=>{ghe.init(e,t),qe.init(e,t)});function ipe(e){return yfe(spe,e)}const ope=I("ZodISODate",(e,t)=>{vhe.init(e,t),qe.init(e,t)});function ape(e){return bfe(ope,e)}const lpe=I("ZodISOTime",(e,t)=>{yhe.init(e,t),qe.init(e,t)});function cpe(e){return xfe(lpe,e)}const upe=I("ZodISODuration",(e,t)=>{bhe.init(e,t),qe.init(e,t)});function dpe(e){return wfe(upe,e)}const hpe=(e,t)=>{NS.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>hde(e,n)},flatten:{value:n=>dde(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Sg,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Sg,2)}},isEmpty:{get(){return e.issues.length===0}}})},vn=I("ZodError",hpe,{Parent:Error}),fpe=r1(vn),ppe=s1(vn),mpe=Zh(vn),gpe=Gh(vn),vpe=mde(vn),ype=gde(vn),bpe=vde(vn),xpe=yde(vn),wpe=bde(vn),Cpe=xde(vn),_pe=wde(vn),jpe=Cde(vn),Hw=new WeakMap;function Yh(e,t,n){const r=Object.getPrototypeOf(e);let s=Hw.get(r);if(s||(s=new Set,Hw.set(r,s)),!s.has(t)){s.add(t);for(const i in n){const o=n[i];Object.defineProperty(r,i,{configurable:!0,enumerable:!1,get(){const l=o.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const at=I("ZodType",(e,t)=>(ot.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Hd(e,"input"),output:Hd(e,"output")}}),e.toJSONSchema=zfe(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>fpe(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>mpe(e,n,r),e.parseAsync=async(n,r)=>ppe(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>gpe(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>vpe(e,n,r),e.decode=(n,r)=>ype(e,n,r),e.encodeAsync=async(n,r)=>bpe(e,n,r),e.decodeAsync=async(n,r)=>xpe(e,n,r),e.safeEncode=(n,r)=>wpe(e,n,r),e.safeDecode=(n,r)=>Cpe(e,n,r),e.safeEncodeAsync=async(n,r)=>_pe(e,n,r),e.safeDecodeAsync=async(n,r)=>jpe(e,n,r),Yh(e,"ZodType",{check(...n){const r=this.def;return this.clone(qs(r,{checks:[...r.checks??[],...n.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Ks(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(vme(n,r))},superRefine(n,r){return this.check(yme(n,r))},overwrite(n){return this.check(ga(n))},optional(){return Kw(this)},exactOptional(){return sme(this)},nullable(){return Zw(this)},nullish(){return Kw(Zw(this))},nonoptional(n){return ume(this,n)},array(){return Kpe(this)},or(n){return Ype([this,n])},and(n){return Xpe(this,n)},transform(n){return Gw(this,nme(n))},default(n){return ame(this,n)},prefault(n){return cme(this,n)},catch(n){return hme(this,n)},pipe(n){return Gw(this,n)},readonly(){return mme(this)},describe(n){const r=this.clone();return qa.add(r,{description:n}),r},meta(...n){if(n.length===0)return qa.get(this);const r=this.clone();return qa.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=qa.get(e))==null?void 0:n.description},configurable:!0}),e)),HS=I("_ZodString",(e,t)=>{i1.init(e,t),at.init(e,t),e._zod.processJSONSchema=(r,s,i)=>Ufe(e,r,s);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Yh(e,"_ZodString",{regex(...r){return this.check(jfe(...r))}
486,includes(...r){return this.check(Tfe(...r))},startsWith(...r){return this.check(Efe(...r))},endsWith(...r){return this.check(Nfe(...r))},min(...r){return this.check(Vd(...r))},max(...r){return this.check(LS(...r))},length(...r){return this.check(zS(...r))},nonempty(...r){return this.check(Vd(1,...r))},lowercase(r){return this.check(Sfe(r))},uppercase(r){return this.check(kfe(r))},trim(){return this.check(Afe())},normalize(...r){return this.check(Rfe(...r))},toLowerCase(){return this.check(Pfe())},toUpperCase(){return this.check($fe())},slugify(){return this.check(Mfe())}})}),Spe=I("ZodString",(e,t)=>{i1.init(e,t),HS.init(e,t),e.email=n=>e.check(Yhe(kpe,n)),e.url=n=>e.check(nfe(Tpe,n)),e.jwt=n=>e.check(vfe(Bpe,n)),e.emoji=n=>e.check(rfe(Epe,n)),e.guid=n=>e.check(Vw(Ww,n)),e.uuid=n=>e.check(Qhe(hu,n)),e.uuidv4=n=>e.check(Xhe(hu,n)),e.uuidv6=n=>e.check(efe(hu,n)),e.uuidv7=n=>e.check(tfe(hu,n)),e.nanoid=n=>e.check(sfe(Npe,n)),e.guid=n=>e.check(Vw(Ww,n)),e.cuid=n=>e.check(ife(Rpe,n)),e.cuid2=n=>e.check(ofe(Ape,n)),e.ulid=n=>e.check(afe(Ppe,n)),e.base64=n=>e.check(pfe(zpe,n)),e.base64url=n=>e.check(mfe(Fpe,n)),e.xid=n=>e.check(lfe($pe,n)),e.ksuid=n=>e.check(cfe(Mpe,n)),e.ipv4=n=>e.check(ufe(Ope,n)),e.ipv6=n=>e.check(dfe(Ipe,n)),e.cidrv4=n=>e.check(hfe(Dpe,n)),e.cidrv6=n=>e.check(ffe(Lpe,n)),e.e164=n=>e.check(gfe(Upe,n)),e.datetime=n=>e.check(ipe(n)),e.date=n=>e.check(ape(n)),e.time=n=>e.check(cpe(n)),e.duration=n=>e.check(dpe(n))});function jr(e){return Jhe(Spe,e)}const qe=I("ZodStringFormat",(e,t)=>{De.init(e,t),HS.init(e,t)}),kpe=I("ZodEmail",(e,t)=>{ahe.init(e,t),qe.init(e,t)}),Ww=I("ZodGUID",(e,t)=>{ihe.init(e,t),qe.init(e,t)}),hu=I("ZodUUID",(e,t)=>{ohe.init(e,t),qe.init(e,t)}),Tpe=I("ZodURL",(e,t)=>{lhe.init(e,t),qe.init(e,t)}),Epe=I("ZodEmoji",(e,t)=>{che.init(e,t),qe.init(e,t)}),Npe=I("ZodNanoID",(e,t)=>{uhe.init(e,t),qe.init(e,t)}),Rpe=I("ZodCUID",(e,t)=>{dhe.init(e,t),qe.init(e,t)}),Ape=I("ZodCUID2",(e,t)=>{hhe.init(e,t),qe.init(e,t)}),Ppe=I("ZodULID",(e,t)=>{fhe.init(e,t),qe.init(e,t)}),$pe=I("ZodXID",(e,t)=>{phe.init(e,t),qe.init(e,t)}),Mpe=I("ZodKSUID",(e,t)=>{mhe.init(e,t),qe.init(e,t)}),Ope=I("ZodIPv4",(e,t)=>{xhe.init(e,t),qe.init(e,t)}),Ipe=I("ZodIPv6",(e,t)=>{whe.init(e,t),qe.init(e,t)}),Dpe=I("ZodCIDRv4",(e,t)=>{Che.init(e,t),qe.init(e,t)}),Lpe=I("ZodCIDRv6",(e,t)=>{_he.init(e,t),qe.init(e,t)}),zpe=I("ZodBase64",(e,t)=>{jhe.init(e,t),qe.init(e,t)}),Fpe=I("ZodBase64URL",(e,t)=>{khe.init(e,t),qe.init(e,t)}),Upe=I("ZodE164",(e,t)=>{The.init(e,t),qe.init(e,t)}),Bpe=I("ZodJWT",(e,t)=>{Nhe.init(e,t),qe.init(e,t)}),Vpe=I("ZodUnknown",(e,t)=>{Rhe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Vfe()});function qw(){return Cfe(Vpe)}const Hpe=I("ZodNever",(e,t)=>{Ahe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Bfe(e,n,r)});function Wpe(e){return _fe(Hpe,e)}const qpe=I("ZodArray",(e,t)=>{Phe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Kfe(e,n,r,s),e.element=t.element,Yh(e,"ZodArray",{min(n,r){return this.check(Vd(n,r))},nonempty(n){return this.check(Vd(1,n))},max(n,r){return this.check(LS(n,r))},length(n,r){return this.check(zS(n,r))},unwrap(){return this.element}})});function Kpe(e,t){return Ofe(qpe,e,t)}const Zpe=I("ZodObject",(e,t)=>{Mhe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Zfe(e,n,r,s),Ee(e,"shape",()=>t.shape),Yh(e,"ZodObject",{keyof(){return eme(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:qw()})},loose(){return this.clone({...this._zod.def,catchall:qw()})},strict(){return this.clone({...this._zod.def,catchall:Wpe()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return ide(this,n)},safeExtend(n){return ode(this,n)},merge(n){return ade(this,n)},pick(n){return rde(this,n)},omit(n){return sde(this,n)},partial(...n){return lde(WS,this,n[0])},required(...n){return cde(qS,this,n[0])}})});function Gpe(e,t){const n={type:"object",shape:e??{},...oe(t)};return new Zpe(n)}const Jpe=I("ZodUnion",(e,t)=>{Ohe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Gfe(e,n,r,s),e.options=t.options});function Ype(e,t){return new Jpe({type:"union",options:e,...oe(t)})}const Qpe=I("ZodIntersection",(e,t)=>{Ihe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Jfe(e,n,r,s)});function Xpe(e,t){return new Qpe({type:"intersection",left:e,right:t})}const Tg=I("ZodEnum",(e,t)=>{Dhe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(r,s,i)=>Hfe(e,r,s),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,s)=>{const i={};for(const o of r)if(n.has(o))i[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);
486return new Tg({...t,checks:[],...oe(s),entries:i})},e.exclude=(r,s)=>{const i={...t.entries};for(const o of r)if(n.has(o))delete i[o];else throw new Error(`Key ${o} not found in enum`);return new Tg({...t,checks:[],...oe(s),entries:i})}});function eme(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Tg({type:"enum",entries:n,...oe(t)})}const tme=I("ZodTransform",(e,t)=>{Lhe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>qfe(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new _S(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(Xl(i,n.value,t));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=e),n.issues.push(Xl(o))}};const s=t.transform(n.value,n);return s instanceof Promise?s.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=s,n.fallback=!0,n)}});function nme(e){return new tme({type:"transform",transform:e})}const WS=I("ZodOptional",(e,t)=>{DS.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>VS(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function Kw(e){return new WS({type:"optional",innerType:e})}const rme=I("ZodExactOptional",(e,t)=>{zhe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>VS(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function sme(e){return new rme({type:"optional",innerType:e})}const ime=I("ZodNullable",(e,t)=>{Fhe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Yfe(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function Zw(e){return new ime({type:"nullable",innerType:e})}const ome=I("ZodDefault",(e,t)=>{Uhe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Xfe(e,n,r,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ame(e,t){return new ome({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():kS(t)}})}const lme=I("ZodPrefault",(e,t)=>{Bhe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>epe(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function cme(e,t){return new lme({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():kS(t)}})}const qS=I("ZodNonOptional",(e,t)=>{Vhe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Qfe(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function ume(e,t){return new qS({type:"nonoptional",innerType:e,...oe(t)})}const dme=I("ZodCatch",(e,t)=>{Hhe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>tpe(e,n,r,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function hme(e,t){return new dme({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const fme=I("ZodPipe",(e,t)=>{Whe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>npe(e,n,r,s),e.in=t.in,e.out=t.out});function Gw(e,t){return new fme({type:"pipe",in:e,out:t})}const pme=I("ZodReadonly",(e,t)=>{qhe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>rpe(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function mme(e){return new pme({type:"readonly",innerType:e})}const gme=I("ZodCustom",(e,t)=>{Khe.init(e,t),at.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Wfe(e,n)});function vme(e,t={}){return Ife(gme,e,t)}function yme(e,t){return Dfe(e,t)}const Jw="[email protected]",bme=[{label:"Home",href:"/"},{label:"News & Events",href:"/news"},{label:"Events Calendar",href:"/news/events"},{label:"Submit an Event"}],xme=Gpe({eventTitle:jr().trim().min(1,"Please enter the event name.").max(150,"Event name must be under 150 characters."),organization:jr().trim().max(150).optional(),eventDate:jr().trim().min(1,"Please choose a date."),eventTime:jr().trim().max(80).optional(),location:jr().trim().min(1,"Please enter a location.").max(200),description:jr().trim().min(1,"Please describe the event.").max(2e3,"Description must be under 2,000 characters."),linkUrl:jr().trim().max(500).refine(e=>e===""||/^https?:\/\/.+/i.test(e),"Link must start with http:// or https://").optional(),contactName:jr().trim().min(1,"Please enter your name.").max(120),contactEmail:jr().trim().email("Please enter a valid email address.").max(255)}),Sr=({label:e,required:t,children:n,hint:r,error:s})=>a.jsxs("div",{className:"mb-5",children:[a.jsxs(mr,{className:"block text-xs font-semibold tracking-widest uppercase text-muted-foreground mb-2",children:[e,t&&a.jsx("span",{className:"text-[hsl(var(--gold))] ml-1",children:"*"})]}),n,r&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:r}),s&&a.jsx("p",{className:"text-xs text-destructive mt-1",children:s})]}),wme=()=>{const[e,t]=b.useState(""),[n,r]=b.useState(""),[s,i]=b.useState(""),[o,l]=b.useState(""),[c,u]=b.useState(""),[d,h]=b.useState(""),[f,p]=b.useState(""),[y,m]=b.useState(""),[w,v]=b.useState(""),[g,x]=b.useState({}),[C,_]=b.useState(!1),S=j=>{j.preventDefault();const k=xme.safeParse({eventTitle:e,organization:n,eventDate:s,eventTime:o,location:c,description:d,linkUrl:f,contactName:y,contactEmail:w});if(!k.success){const R={};for(const D of k.error.issues){const O=D.path[0];R[O]||(R[O]=D.message)}x(R);return}x({});
486const T=`EVENT SUBMISSION — MCC EVENTS CALENDAR
487
488Event name: ${k.data.eventTitle}
489Organization / congregation: ${k.data.organization||""}
490Date: ${k.data.eventDate}
491Time: ${k.data.eventTime||""}
492Location: ${k.data.location}
493Link: ${k.data.linkUrl||""}
494
495Description:
496${k.data.description}
497
498Submitted by: ${k.data.contactName}
499Email: ${k.data.contactEmail}
500`;window.location.href=`mailto:${Jw}?subject=${encodeURIComponent(`[MCC website] Event submission: ${k.data.eventTitle}`)}&body=${encodeURIComponent(T)}`,_(!0)};return a.jsx(ae,{title:"Submit an Event — Events Calendar",description:"Share a congregation or community event with the Minnesota Council of Churches for consideration on our events calendar.",eyebrow:"News & Events › Events Calendar",heading:"Submit an Event",intro:"Know of a gathering, training, screening, or community event that belongs on our calendar? Share the details below and our team will review it for publication.",breadcrumbs:bme,section:"news",path:"/news/events/submit",children:a.jsxs("div",{className:"max-w-2xl mx-auto",children:[!C&&a.jsxs("p",{className:"text-muted-foreground leading-relaxed mb-8",children:['Fill out the form below and "Submit Event" will open your email app with the details addressed to ',Jw,"—ready to send."]}),C?a.jsxs("div",{className:"bg-card border border-border rounded-2xl p-10 text-center",children:[a.jsx(oN,{className:"w-12 h-12 mx-auto text-[hsl(var(--teal))] mb-4"}),a.jsx("h2",{className:"font-serif text-2xl text-[hsl(var(--navy))] mb-3",children:"Almost there — just hit send"}),a.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:"Your email app should have opened with your event details addressed to our team—send that message and we'll review it for the calendar."}),a.jsx(ce,{asChild:!0,className:"bg-[hsl(var(--gold))] text-[hsl(var(--gold-foreground))] hover:bg-[hsl(var(--gold))]/90",children:a.jsx("a",{href:"/news/events",children:"Back to the Events Calendar"})})]}):a.jsxs("form",{onSubmit:S,className:"bg-card border border-border rounded-2xl p-8",noValidate:!0,children:[a.jsx(Sr,{label:"Event name",required:!0,error:g.eventTitle,children:a.jsx(fe,{value:e,onChange:j=>t(j.target.value),maxLength:150,placeholder:"e.g. Community Iftar, CROP Hunger Walk…"})}),a.jsx(Sr,{label:"Organization or congregation",children:a.jsx(fe,{value:n,onChange:j=>r(j.target.value),maxLength:150})}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsx(Sr,{label:"Date",required:!0,error:g.eventDate,children:a.jsx(fe,{type:"date",value:s,onChange:j=>i(j.target.value)})}),a.jsx(Sr,{label:"Time",error:g.eventTime,children:a.jsx(fe,{value:o,onChange:j=>l(j.target.value),maxLength:80,placeholder:"e.g. 6:30 – 9:00 PM"})})]}),a.jsx(Sr,{label:"Location",required:!0,error:g.location,children:a.jsx(fe,{value:c,onChange:j=>u(j.target.value),maxLength:200,placeholder:"Venue, city — or 'Virtual' with platform"})}),a.jsx(Sr,{label:"Description",required:!0,error:g.description,hint:"What's happening, who it's for, and anything attendees need to know.",children:a.jsx(Ls,{value:d,onChange:j=>h(j.target.value),rows:5,maxLength:2e3,placeholder:"Tell us about the event…"})}),a.jsx(Sr,{label:"Link to details or registration",error:g.linkUrl,children:a.jsx(fe,{value:f,onChange:j=>p(j.target.value),type:"url",placeholder:"https://…"})}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsx(Sr,{label:"Your name",required:!0,error:g.contactName,children:a.jsx(fe,{value:y,onChange:j=>m(j.target.value),maxLength:120})}),a.jsx(Sr,{label:"Your email",required:!0,error:g.contactEmail,children:a.jsx(fe,{type:"email",value:w,onChange:j=>v(j.target.value),maxLength:255})})]}),a.jsx(ce,{type:"submit",size:"lg",className:"bg-[hsl(var(--gold))] text-[hsl(var(--gold-foreground))] hover:bg-[hsl(var(--gold))]/90 mt-2",children:"Submit Event"})]})]})})},Cme=1,_me="f996389e-03bb-4dc6-b94b-f95c36b4e591",jme="5317579a-a8ee-431d-9a53-6d8cfe773828",Sme="/__l5e/assets-v1/f996389e-03bb-4dc6-b94b-f95c36b4e591/taking-heart-allen.jpg",kme="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/f996389e-03bb-4dc6-b94b-f95c36b4e591/taking-heart-allen.jpg",Tme="taking-heart-allen.jpg",Eme=487274,Nme="image/jpeg",Rme="2026-09-09T14:11:28Z",Ame={ver
500sion:Cme,asset_id:_me,project_id:jme,url:Sme,r2_key:kme,original_filename:Tme,size:Eme,content_type:Nme,created_at:Rme},Pme=[{label:"Home",href:"/"},{label:"Contact"}],fu=({label:e,children:t})=>a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{className:"block text-xs font-semibold tracking-widest uppercase text-muted-foreground mb-2",children:e}),t]}),$me=[{label:"Facebook",href:"https://www.facebook.com/mnchurches/",Icon:e=>a.jsx($v,{...e})},{label:"X (Twitter)",href:"https://x.com/mnchurches",Icon:e=>a.jsx(ny,{...e})},{label:"LinkedIn",href:"https://www.linkedin.com/company/mnchurches/",Icon:e=>a.jsx(Ov,{...e})},{label:"YouTube",href:"https://www.youtube.com/@MNChurches",Icon:e=>a.jsx(Lv,{...e})},{label:"Instagram",href:"https://www.instagram.com/minnesota_churches/",Icon:e=>a.jsx(Mv,{...e})}],Mme="[email protected]",Ome={general:"General inquiry","respectful-conversations":"Respectful Conversations","refugee-services":"Refugee & Immigrant Services",membership:"Membership",donations:"Donations & giving",media:"Media request"},Ime=()=>{const[e,t]=$.useState(""),[n,r]=$.useState(""),[s,i]=$.useState("general"),[o,l]=$.useState(""),c=u=>{u.preventDefault();const d=Ome[s]??"General inquiry",h=[o,"","—",`Name: ${e}`,`Email: ${n}`,`Topic: ${d}`].join(`
501`),f=`mailto:${Mme}?subject=${encodeURIComponent(`[MCC website] ${d}`)}&body=${encodeURIComponent(h)}`;window.location.href=f};return a.jsxs(ae,{title:"Contact Us",description:"Phone, email, mail, or in person—here's how to reach each of MCC's offices.",eyebrow:"Contact",heading:"Get in touch",intro:"Phone, email, mail, or in person—here's how to reach each of MCC's offices.",breadcrumbs:Pme,path:"/contact",children:[a.jsxs(E,{as:"div",stagger:!0,className:"grid gap-6 lg:grid-cols-2 mb-10",children:[a.jsx(mg,{name:"Twin Cities Office",address:["1600 University Ave. W., Ste. 500","St. Paul, MN 55104"],phone:"612-870-3600",fax:"612-870-3622",email:"[email protected]"}),a.jsx(mg,{name:"Mankato Office",address:["501 S. Second St.","Mankato, MN 56001"],phone:"507-345-1554",email:"[email protected]"})]}),a.jsx(E,{as:"div",className:"mb-14",children:a.jsx("ul",{"aria-label":"Follow MCC on social media",className:"flex flex-wrap items-center gap-3 list-none pl-0",children:$me.map(({label:u,href:d,Icon:h})=>a.jsx("li",{children:a.jsx("a",{href:d,target:"_blank",rel:"noopener noreferrer","aria-label":u,className:"inline-flex h-11 w-11 items-center justify-center rounded-full border border-border bg-card text-[hsl(var(--navy))] hover:text-[hsl(var(--gold))] hover:border-[hsl(var(--gold))] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--gold))] focus-visible:ring-offset-2",children:a.jsx(h,{className:"h-5 w-5"})})},u))})}),a.jsxs(E,{as:"div",className:"grid gap-12 lg:grid-cols-2",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"font-serif text-3xl text-[hsl(var(--navy))] mb-3",children:"Send us a message"}),a.jsx("p",{className:"text-muted-foreground mb-6 max-w-md",children:"Fill out the form below and we'll get in touch with you as soon as we can."}),a.jsxs("form",{onSubmit:c,children:[a.jsx(fu,{label:"Name",children:a.jsx(fe,{type:"text",name:"name",value:e,onChange:u=>t(u.target.value),required:!0})}),a.jsx(fu,{label:"Email",children:a.jsx(fe,{type:"email",name:"email",value:n,onChange:u=>r(u.target.value),required:!0})}),a.jsx(fu,{label:"What's this about?",children:a.jsxs(yS,{value:s,onValueChange:i,children:[a.jsx(Jy,{children:a.jsx(bS,{})}),a.jsxs(Yy,{children:[a.jsx(ls,{value:"general",children:"General inquiry"}),a.jsx(ls,{value:"respectful-conversations",children:"Respectful Conversations"}),a.jsx(ls,{value:"refugee-services",children:"Refugee & Immigrant Services"}),a.jsx(ls,{value:"membership",children:"Membership"}),a.jsx(ls,{value:"donations",children:"Donations & giving"}),a.jsx(ls,{value:"media",children:"Media request"})]})]})}),a.jsx(fu,{label:"Message",children:a.jsx(Ls,{rows:5,name:"message",value:o,onChange:u=>l(u.target.value),required:!0})}),a.jsx(ce,{type:"submit",size:"lg",className:"bg-[hsl(var(--gold))] text-[hsl(var(--gold-foreground))] hover:bg-[hsl(var(--gold))]/90",children:"Send message"})]})]}),a.jsx("div",{className:"rounded-2xl overflow-hidden border border-border shadow-sm",children:a.jsx("img",{src:Ame.url,alt:"Three people talking together at a Taking Heart interfaith gathering",className:"w-full h-full object-cover min-h-[400px]",loading:"lazy",width:1600,height:900})})]})]})},Dme=1,Lme="1663832f-163e-4e56-9699-301710001b6c",zme="5317579a-a8ee-431d-9a53-6d8cfe773828",Fme="/__l5e/assets-v1/1663832f-163e-4e56-9699-301710001b6c/ambassador-alumni-event.jpg",Ume="a/v1/5317579a-a8ee-431d-9a53-6d8cfe773828/1663832f-163e-4e56-9699-301710001b6c/ambassador-alumni-event.jpg",Bme="ambassador-alumni-event.jpg",Vme=308122,Hme="image/jpeg",Wme="2026-09-02T17:31:31Z",qme={ver
501sion:Dme,asset_id:Lme,project_id:zme,url:Fme,r2_key:Ume,original_filename:Bme,size:Vme,content_type:Hme,created_at:Wme},Kme=[{label:"Home",href:"/"},{label:"Careers"}],Zme=()=>a.jsx(ae,{title:"Careers at MCC",description:"Current job openings and career opportunities at the Minnesota Council of Churches.",eyebrow:"Careers",heading:"Work with MCC",intro:"Every MCC role is part of a decades-long ecumenical project that brings together people of different traditions in support of Minnesotans. Join us!",breadcrumbs:Kme,path:"/careers",children:a.jsxs("div",{className:"space-y-14",children:[a.jsx(E,{children:a.jsx("figure",{className:"overflow-hidden rounded-2xl border border-border shadow-sm",children:a.jsx("img",{src:qme.url,alt:"Alumni of the Ambassador Program gathered at a reception event",loading:"lazy",width:1920,height:893,className:"w-full h-auto object-cover aspect-[16/6]"})})}),a.jsx(E,{children:a.jsxs("div",{className:"rounded-2xl border border-border bg-card p-8 md:p-10 lg:p-12 shadow-sm space-y-6",children:[a.jsx("h2",{className:"font-serif text-2xl text-[hsl(var(--navy))]",children:"Job Opportunities at Minnesota Council of Churches"}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"Thank you for your interest in working for the Minnesota Council of Churches. We are pleased to offer a competitive benefits package, including:"}),a.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-10 gap-y-4 pl-5 border-l-2 border-[hsl(var(--teal))]/30",children:["Gold medical insurance plan","Dental insurance","Life insurance","Long-term disability","Vacation and holiday pay","Employer contributing retirement plan","Flexible Spending Accounts","Free parking"].map(e=>a.jsx("li",{className:"text-muted-foreground leading-relaxed -ml-[2px]",children:e},e))}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"As an Equal Opportunity employer, we hire without consideration to race, creed, color, national origin, religion, age, gender, sexual orientation, marital status, veteran status, or disability."}),a.jsx("h3",{className:"font-serif text-xl text-[hsl(var(--navy))] mt-2",children:"Current Openings"}),a.jsxs("p",{className:"leading-relaxed text-muted-foreground",children:["Minnesota Council of Churches partners with MACC (Minnesota Alliance of Connected Communities) to manage our employment opportunities. To view current openings, please visit the"," ",a.jsx("a",{href:"https://recruiting.ultipro.com/MAC1006/JobBoard/927e7380-5b6b-4aff-b065-e820899d1450/?q=&o=postedDateDesc",target:"_blank",rel:"noopener noreferrer",className:"text-[hsl(var(--teal))] border-b border-[hsl(var(--teal))]",children:"MACC Job Board"}),", where all available positions at MCC are posted."]}),a.jsx("div",{className:"flex justify-center pt-2",children:a.jsx(ce,{variant:"gold",className:"h-14 px-11 text-lg rounded-full",asChild:!0,children:a.jsx("a",{href:"https://recruiting.ultipro.com/MAC1006/JobBoard/927e7380-5b6b-4aff-b065-e820899d1450/?q=&o=postedDateDesc",target:"_blank",rel:"noopener noreferrer",children:"View available career opportunities"})})}),a.jsx("h3",{className:"font-serif text-xl text-[hsl(var(--navy))] mt-2",children:"How to Apply"}),a.jsxs("p",{className:"leading-relaxed text-muted-foreground",children:["All applications for Minnesota Council of Churches employment opportunities must be submitted through the"," ",a.jsx("a",{href:"https://recruiting.ultipro.com/MAC1006/JobBoard/927e7380-5b6b-4aff-b065-e820899d1450/?q=&o=postedDateDesc",target:"_blank",rel:"noopener noreferrer",className:"text-[hsl(var(--teal))] border-b border-[hsl(var(--teal))]",children:"MACC Job Board"}),"."]}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"To apply:"}),a.jsxs("ol",{className:"space-y-3 pl-5 list-decimal marker:text-[hsl(var(--teal))]",children:[a.jsxs("li",{className:"text-muted-foreground leading-relaxed",children:["Visit the"," ",a.jsx("a",{href:"https://recruiting.ultipro.com/MAC1006/JobBoard/927e7380-5b6b-4aff-b065-e820899d1450/?q=&o=postedDateDesc",target:"_blank",rel:"noopener noreferrer",className:"text-[hsl(var(--teal))] border-b border-[hsl(var(--teal))]",children:"MACC Job Board"}),"."]}),a.jsx("li",{className:"text-muted-foreground leading-relaxed",children:"Create a free applicant account (or sign in if you already have one)."}),a.jsx("li",{className:"text-muted-foreground leading-relaxed",children:"Complete your application and upload the required documents."}),a.jsx("li",{className:"text-muted-foreground leading-relaxed",children:"Submit your application through the job board."})]}),a.jsxs("p",{className:"leading-relaxed text-muted-foreground",children:["Applications submitted outside of the"," ",a.jsx("a",{href:"https://recruiting.ultipro.com/MAC1006/JobBoard/927e7380-5b6b-4aff-b065-e820899d1450/?q=&o=postedDateDesc",target:"_blank",rel:"noopener noreferrer",className:"text-[hsl(var(--teal))] border-b border-[hsl(var(--teal))]",children:"MACC Job Board"})," ","cannot be considered."]})]})}),a.jsx(E,{children:a.jsxs("div",{className:"rounded-2xl border border-border bg-card p-8 md:p-10 lg:p-12 shadow-sm space-y-6",children:[a.jsx("h3",{className:"font-serif text-xl text-[hsl(var(--navy))]",children:"MCC's Commitment to Diversity, Equity, Inclusion, and Cultural Competency"}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"The Minnesota Council of Churches convenes, connects, and catalyzes people of faith to build just, equitable, and livable communities for all Minnesotans. We are a state-level, judicatory-based council of Christian denominations striving to manifest the unity of the church in order to build the common good in the world."}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"MCC pursues this mission by creating ecumenical and interfaith programmatic partnerships that work toward a vision of racial and social justice lived out in diverse communities throughout Minnesota. Therefore, MCC believes in and is committed to the core values of diversity, equity, and inclusion*."}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"At MCC, we understand the importance and significance of recruiting, employing, and retaining a workforce—and volunteers to serve on boards and committees—that reflects the populations we serve and the demographics of Minnesota. We are committed to ensuring that our employees work in an environment where they feel included, respected, and recognized for the distinct talents they contribute to MCC. We know that diverse teams that work in an inclusive environment spur creativity and innovation."}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"Promoting and supporting a diverse, inclusive workforce and environment is not sufficient alone, however. To fully achieve our sacred mission and serve our members and community, MCC must be both a diverse and a culturally competent organization."}),a.jsx("p",{className:"leading-relaxed text-foreground font-medium",children:"MCC is committed to demonstrating that it is a diverse and culturally competent organization in the following ways:"}),a.jsx("ul",{className:"space-y-4 pl-5 border-l-2 border-[hsl(var(--teal))]/30",children:["MCC's policies, practices, organizational values, and behaviors will align with equitable and culturally competent principles and practices.","Our leaders will be trained in cultural competency practices and will share what they have learned with our fellow churches and the community.","MCC will work to address deeply entrenched practices, cultural norms, and decision-making structures that have perpetuated inequities. These inequities have severely impacted large groups of people in our society. We will approach this work with courage and determination—knowing that it will require a sustained commitment."].map(e=>a.jsx("li",{className:"text-muted-foreground leading-relaxed -ml-[2px]",children:e},e))}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:`
502`}),a.jsx("h3",{className:"font-serif text-xl text-[hsl(var(--navy))] mt-2",children:"Diversity, Equity, Inclusion, and Cultural Competency as Defined by MCC"}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"Diversity means more than just acknowledging and/or tolerating difference. Diversity is a framework that involves understanding and appreciating interdependence of humanity, cultures, and the natural environment; and practicing mutual respect for qualities and experiences that are different from our own. Equity is the fair treatment of all people, ensuring access, opportunity, and advancement for all, while at the same time striving to identify and eliminate barriers that have prevented the full participation of some groups."}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"Inclusion is the practice of authentically engaging and leveraging the opinions, skills, and perspectives of persons of different cultures, and incorporating difference into organizational processes, activities, and methods of decision- and policy-making in an equitable manner."}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"Cultural competency is the ability to identify and challenge the cultural assumptions, values, and beliefs of individuals and groups, and to commit to change behaviors based upon new information and experiences. Therefore, being a culturally competent organization means more than just being respectful of the many cultures represented in our organization and community. It is more than simply having an awareness of cultural differences and a knowledge of the customs and values of those who are “different”."}),a.jsx("p",{className:"leading-relaxed text-muted-foreground",children:"*This information has been informed by similar documents from Blue Cross, Blue Shield and The McKnight Foundation."})]})}),a.jsx(E,{children:a.jsxs("div",{className:"grid gap-6 md:grid-cols-[1.4fr_1fr]",children:[a.jsxs("div",{className:"rounded-2xl border border-border bg-ivory p-8 lg:p-10",children:[a.jsx("h2",{className:"font-serif text-2xl text-[hsl(var(--navy))] mb-2",children:"Don't see a fit?"}),a.jsxs("p",{className:"text-muted-foreground max-w-2xl leading-relaxed",children:["We keep open folders for facilitators, case managers, and interpreters. Send your resume and a short note to"," ",a.jsx("a",{href:"mailto:[email protected]",className:"text-[hsl(var(--teal))] border-b border-[hsl(var(--teal))]",children:"[email protected]"}),"."]})]}),a.jsx(mg,{name:"Employment",role:"MCC Careers",email:"[email protected]"})]})})]})}),Gme=[{label:"Home",href:"/"},{label:"Sign In"}],Jme=()=>{const e=lc(),[t,n]=b.useState("signin"),[r,s]=b.useState(""),[i,o]=b.useState(""),[l,c]=b.useState(!1);b.useEffect(()=>{gt.auth.getSession().then(({data:d})=>{d.session&&e("/admin/blog",{replace:!0})})},[e]);const u=async d=>{d.preventDefault(),c(!0);try{if(t==="signup"){const{error:h}=await gt.auth.signUp({email:r.trim(),password:i,options:{emailRedirectTo:`${window.location.origin}/admin/blog`}});if(h)throw h;Mn({title:"Account created",description:"Check your email if confirmation is required, then sign in."}),n("signin")}else{const{error:h}=await gt.auth.signInWithPassword({email:r.trim(),password:i});if(h)throw h;e("/admin/blog",{replace:!0})}}catch(h){Mn({title:"Something went wrong",description:h instanceof Error?h.message:"Please try again.",variant:"destructive"})}finally{c(!1)}};return a.jsx(ae,{title:"Sign In",description:"Sign in to manage Minnesota Council of Churches blog posts.",eyebrow:"Staff",heading:t==="signin"?"Sign In":"Create an Account",intro:"Staff access for writing and publishing blog posts.",breadcrumbs:Gme,path:"/auth",children:a.jsxs("form",{onSubmit:u,className:"max-w-md rounded-2xl border border-border bg-card p-6 md:p-8 shadow-sm",children:[a.jsxs("div",{className:"mb-5",children:[a.jsx(mr,{className:"block text-xs font-semibold tracking-widest uppercase text-muted-foreground mb-2",children:"Email"}),a.jsx(fe,{type:"email",value:r,onChange:d=>s(d.target.value),required:!0,autoComplete:"email"})]}),a.jsxs("div",{className:"mb-6",children:[a.jsx(mr,{className:"block text-xs font-semibold tracking-widest uppercase text-muted-foreground mb-2",children:"Password"}),a.jsx(fe,{type:"password",value:i,onChange:d=>o(d.target.value),required:!0,minLength:6,autoComplete:t==="signin"?"current-password":"new-password"})]}),a.jsx(ce,{type:"submit",disabled:l,className:"w-full",children:l?"Please wait…":t==="signin"?"Sign In":"Create Account"}),a.jsx("button",{type:"button",onClick:()=>n(t==="signin"?"signup":"signin"),className:"mt-4 w-full text-sm text-muted-foreground hover:text-primary transition-colors",children:t==="signin"?"Need an account? Create one":"Already have an account? Sign in"})]})})},Yme=()=>{const[e,t]=b.useState(null),[n,r]=b.useState(!1),[s,i]=b.useState(!0);return b.useEffect(()=>{let o=!0;const l=async u=>
502{if(!u){o&&r(!1);return}const{data:d}=await gt.from("user_roles").select("role").eq("user_id",u).eq("role","admin").maybeSingle();o&&r(!!d)},{data:c}=gt.auth.onAuthStateChange((u,d)=>{t(d),setTimeout(()=>{var h;return void l((h=d==null?void 0:d.user)==null?void 0:h.id)},0)});return gt.auth.getSession().then(async({data:u})=>{var d,h;o&&(t(u.session),await l((h=(d=u.session)==null?void 0:d.user)==null?void 0:h.id),o&&i(!1))}),()=>{o=!1,c.subscription.unsubscribe()}},[]),{session:e,isAdmin:n,loading:s}},Qme=[{label:"Home",href:"/"},{label:"Elder Kelly's Blog",href:"/news/blog"},{label:"Manage Posts"}],pu={id:"",title:"",slug:"",excerpt:"",body:"",author_name:"Elder Suzanne Kelly",published:!0,published_at:new Date().toISOString().slice(0,10),cover_image_url:""},Xs=({label:e,children:t,hint:n})=>a.jsxs("div",{className:"mb-5",children:[a.jsx(mr,{className:"block text-xs font-semibold tracking-widest uppercase text-muted-foreground mb-2",children:e}),t,n&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:n})]}),Xme=()=>{const e=lc(),{session:t,isAdmin:n,loading:r}=Yme(),[s,i]=b.useState([]),[o,l]=b.useState(pu),[c,u]=b.useState(!1),[d,h]=b.useState(!1),[f,p]=b.useState(!1);b.useEffect(()=>{!r&&!t&&e("/auth",{replace:!0})},[r,t,e]);const y=b.useCallback(async()=>{const{data:C,error:_}=await gt.from("blog_posts").select("*").order("published_at",{ascending:!1,nullsFirst:!1}).order("created_at",{ascending:!1});if(_){Mn({title:"Couldn't load posts",description:_.message,variant:"destructive"});return}i(C??[])},[]);b.useEffect(()=>{n&&y()},[n,y]);const m=()=>{l(pu),u(!0)},w=C=>{l({id:C.id,title:C.title,slug:C.slug,excerpt:C.excerpt??"",body:C.body,author_name:C.author_name,published:C.published,published_at:(C.published_at??new Date().toISOString()).slice(0,10),cover_image_url:C.cover_image_url??""}),u(!0)},v=async C=>{var _;p(!0);try{const S=((_=C.name.split(".").pop())==null?void 0:_.toLowerCase())??"jpg",j=`${crypto.randomUUID()}.${S}`,{error:k}=await gt.storage.from("blog-images").upload(j,C,{cacheControl:"3600",upsert:!1});if(k)throw k;l(T=>({...T,cover_image_url:j})),Mn({title:"Image uploaded"})}catch(S){Mn({title:"Upload failed",description:S instanceof Error?S.message:"Please try again.",variant:"destructive"})}finally{p(!1)}},g=async C=>{var k;C.preventDefault();const _=o.title.trim();if(!_){Mn({title:"Please add a title.",variant:"destructive"});return}h(!0);const S={title:_,slug:o.slug.trim()||aw(_),excerpt:o.excerpt.trim()||null,body:o.body,author_name:o.author_name.trim()||"Elder Suzanne Kelly",published:o.published,published_at:o.published_at?new Date(`${o.published_at}T12:00:00Z`).toISOString():null,cover_image_url:o.cover_image_url.trim()||null,created_by:((k=t==null?void 0:t.user)==null?void 0:k.id)??null},{error:j}=o.id?await gt.from("blog_posts").update(S).eq("id",o.id):await gt.from("blog_posts").insert(S);if(h(!1),j){Mn({title:"Couldn't save",description:j.message,variant:"destructive"});return}Mn({title:o.id?"Post updated":"Post created"}),u(!1),l(pu),y()},x=async C=>{if(!window.confirm(`Delete “${C.title}”? This cannot be undone.`))return;const{error:_}=await gt.from("blog_posts").delete().eq("id",C.id);if(_){Mn({title:"Couldn't delete",description:_.message,variant:"destructive"});return}Mn({title:"Post deleted"}),y()};return a.jsxs(ae,{title:"Manage Blog Posts",description:"Write, edit, and publish Minnesota Council of Churches blog posts.",eyebrow:"Staff",heading:"Manage Blog Posts",intro:"Create posts, upload cover images, and publish to the public blog.",breadcrumbs:Qme,path:"/admin/blog",children:[r&&a.jsx("p",{className:"text-muted-foreground",children:"Loading…"}),!r&&t&&!n&&a.jsxs("div",{className:"rounded-2xl border border-border bg-secondary/60 p-6",children:[a.jsxs("p",{className:"text-sm text-muted-foreground",children:["You're signed in as ",a.jsx("strong",{children:t.user.email}),", but this account isn't an editor yet. Ask a site administrator to grant your account admin access, then reload this page."]}),a.jsx(ce,{variant:"outline",className:"mt-4",onClick:async()=>{await gt.auth.signOut(),e("/auth",{replace:!0})},children:"Sign out"})]}),!r&&n&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex items-center justify-between gap-4 mb-8",children:[a.jsxs(ce,{onClick:m,className:"gap-2",children:[a.jsx(mN,{className:"h-4 w-4"})," New post"]}),a.jsx(ce,{variant:"ghost",onClick:async()=>{await gt.auth.signOut(),e("/",{replace:!0})},children:"Sign out"})]}),c&&a.jsxs("form",{onSubmit:g,className:"rounded-2xl border border-border bg-card p-6 md:p-8 shadow-sm mb-10",children:[a.jsx(Xs,{label:"Title",children:a.jsx(fe,{value:o.title,onChange:C=>l({...o,title:C.target.value}),required:!0})}),a.jsx(Xs,{label:"URL slug",hint:"Leave blank to generate it from the title.",children:a.jsx(fe,{value:o.slug,onChange:C=>l({...o,slug:C.target.value}),placeholder:aw(o.title)})}),a.jsx(Xs,{label:"Author",children:a.jsx(fe,{value:o.author_name,onChange:C=>l({...o,author_name:C.target.value})})}),a.jsx(Xs,{label:"Publish date",children:a.jsx(fe,{type:"date",value:o.published_at,onChange:C=>l({...o,published_at:C.target.value})})}),a.jsx(Xs,{label:"Summary",hint:"Shown on the blog index and in search results.",children:a.jsx(Ls,{rows:3,value:o.excerpt,onChange:C=>l({...o,excerpt:C.target.value})})}),a.jsx(Xs,{label:"Post body",hint:"Separate paragraphs with a blank line.",children:a.jsx(Ls,{rows:14,value:o.body,onChange:C=>l({...o,body:C.target.value})})}),a.jsx(Xs,{label:"Cover image",hint:o.cover_image_url?`Attached: ${o.cover_image_url}`:"Optional. JPG or PNG, up to 10 MB.",children:a.jsx(fe,{type:"file",accept:"image/*",disabled:f,onChange:C=>{var S;const _=(S=C.target.files)==null?void 0:S[0];_&&v(_)}})}),a.jsxs("label",{className:"flex items-center gap-2 text-sm mb-6",children:[a.jsx("input",{type:"checkbox",checked:o.published,onChange:C=>l({...o,published:C.target.checked})}),"Published (visible on the public blog)"]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsx(ce,{type:"submit",disabled:d||f,children:d?"Saving…":"Save post"}),a.jsx(ce,{type:"button",variant:"outline",onClick:()=>{u(!1),l(pu)},children:"Cancel"})]})]}),a.jsxs("div",{className:"grid gap-3",children:[s.map(C=>a.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 rounded-xl border border-border bg-card p-5",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"font-serif text-lg text-[hsl(var(--navy))] leading-snug",children:C.title}
502),a.jsxs("div",{className:"text-xs font-mono tracking-wider uppercase text-muted-foreground mt-1",children:[Ih(C.published_at)," · ",C.published?"Published":"Draft"]})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Y,{to:`/news/blog/${C.slug}`,className:"text-sm text-[hsl(var(--teal))] underline mr-2",children:"View"}),a.jsxs(ce,{size:"sm",variant:"outline",className:"gap-1",onClick:()=>w(C),children:[a.jsx(fN,{className:"h-3.5 w-3.5"})," Edit"]}),a.jsxs(ce,{size:"sm",variant:"ghost",className:"gap-1 text-destructive",onClick:()=>x(C),children:[a.jsx(bN,{className:"h-3.5 w-3.5"})," Delete"]})]})]},C.id)),s.length===0&&a.jsx("p",{className:"text-muted-foreground text-sm",children:"No posts yet — create your first one."})]})]})]})},ege=new jT,tge=()=>a.jsx(tT,{children:a.jsx(kT,{client:ege,children:a.jsxs(BA,{children:[a.jsx(rR,{}),a.jsx(sE,{}),a.jsxs(K9,{children:[a.jsx(eT,{}),a.jsxs(L9,{children:[a.jsx(Q,{path:"/",element:a.jsx(nV,{})}),a.jsx(Q,{path:"/about",element:a.jsx(mV,{})}),a.jsx(Q,{path:"/about/mission",element:a.jsx(LV,{})}),a.jsx(Q,{path:"/about/staff",element:a.jsx(WW,{})}),a.jsx(Q,{path:"/about/leadership",element:a.jsx(wr,{to:"/about/staff",replace:!0})}),a.jsx(Q,{path:"/about/members",element:a.jsx(sq,{})}),a.jsx(Q,{path:"/about/board",element:a.jsx(iQ,{})}),a.jsx(Q,{path:"/about/racial-justice",element:a.jsx(aQ,{})}),a.jsx(Q,{path:"/about/dei",element:a.jsx(wr,{to:"/about/racial-justice",replace:!0})}),a.jsx(Q,{path:"/about/partners",element:a.jsx(wr,{to:"/about",replace:!0})}),a.jsx(Q,{path:"/about/history",element:a.jsx(yee,{})}),a.jsx(Q,{path:"/about/financials",element:a.jsx(Ree,{})}),a.jsx(Q,{path:"/faq",element:a.jsx(Xee,{})}),a.jsx(Q,{path:"/programs",element:a.jsx(nte,{})}),a.jsx(Q,{path:"/programs/civic-dialogue",element:a.jsx(Kte,{})}),a.jsx(Q,{path:"/programs/civic-dialogue/respectful-conversations",element:a.jsx(lne,{})}),a.jsx(Q,{path:"/programs/civic-dialogue/respectful-conversations/testimonials",element:a.jsx(Zne,{})}),a.jsx(Q,{path:"/programs/civic-dialogue/respectful-conversations/hosting",element:a.jsx(Ane,{})}),a.jsx(Q,{path:"/programs/civic-dialogue/respectful-conversations/register",element:a.jsx(Yse,{})}),a.jsx(Q,{path:"/programs/civic-dialogue/respectful-conversations/inquiry",element:a.jsx(Xse,{})}),a.jsx(Q,{path:"/programs/civic-dialogue/additional-programming",element:a.jsx(nie,{})}),a.jsx(Q,{path:"/programs/civic-dialogue/additional",element:a.jsx(wr,{to:"/programs/civic-dialogue/additional-programming",replace:!0})}),a.jsx(Q,{path:"/programs/civic-dialogue/taking-heart",element:a.jsx(wr,{to:"/programs/justice-advocacy/taking-heart",replace:!0})}),a.jsx(Q,{path:"/programs/civic-dialogue/ramadan-iftars",element:a.jsx(wr,{to:"/programs/justice-advocacy/taking-heart",replace:!0})}),a.jsx(Q,{path:"/programs/congregational-services",element:a.jsx(pie,{})}),a.jsx(Q,{path:"/programs/refugee-services",element:a.jsx(voe,{})}),a.jsx(Q,{path:"/programs/refugee-services/about-refugees",element:a.jsx(Uoe,{})}),a.jsx(Q,{path:"/programs/refugee-services/legal",element:a.jsx(Woe,{})}),a.jsx(Q,{path:"/programs/refugee-services/twin-cities",element:a.jsx(sae,{})}),a.jsx(Q,{path:"/programs/refugee-services/mankato",element:a.jsx(vae,{})}),a.jsx(Q,{path:"/programs/refugee-services/how-to-help",element:a.jsx(Rae,{})}),a.jsx(Q,{path:"/programs/how-to-help",element:a.jsx(wr,{to:"/programs/refugee-services/how-to-help",replace:!0})}),a.jsx(Q,{path:"/programs/justice-advocacy",element:a.jsx(Xae,{})}),a.jsx(Q,{path:"/programs/justice-advocacy/partnerships",element:a.jsx(fle,{})}),a.jsx(Q,{path:"/programs/justice-advocacy/joint-religious-legislative-coalition",element:a.jsx(Nle,{})}),a.jsx(Q,{path:"/programs/justice-advocacy/advocating",element:a.jsx(Ple,{})}),a.jsx(Q,{path:"/programs/justice-advocacy/faith-based-organizing",element:a.jsx(Ole,{})}),a.jsx(Q,{path:"/programs/justice-advocacy/taking-heart",element:a.jsx(ace,{})}),a.jsx(Q,{path:"/programs/ramadan-iftars",element:a.jsx(wr,{to:"/programs/justice-advocacy/taking-heart",replace:!0})}),a.jsx(Q,{path:"/get-involved",element:a.jsx(bce,{})}),a.jsx(Q,{path:"/get-involved/donate",element:a.jsx(xce,{to:"https://minnesota-council-of-churches.givecloud.co/fundraising/forms/8NDR96EK"})}),a.jsx(Q,{path:"/get-involved/membership",element:a.jsx($ce,{})}),a.jsx(Q,{path:"/get-involved/give-items",element:a.jsx(Wce,{})}),a.jsx(Q,{path:"/get-involved/co-sponsor",element:a.jsx(Zce,{})}),a.jsx(Q,{path:"/get-involved/resources",element:a.jsx(aue,{})}),a.jsx(Q,{path:"/resources",element:a.jsx(wr,{to:"/get-involved/resources",replace:!0})}),a.jsx(Q,{path:"/news",element:a.jsx(uue,{})}),a.jsx(Q,{path:"/news/in-the-news",element:a.jsx(XB,{})}),a.jsx(Q,{path:"/news/blog",element:a.jsx(Pue,{})}),a.jsx(Q,{path:"/news/blog/:slug",element:a.jsx(Oue,{})}),a.jsx(Q,{path:"/news/newsletter",element:a.jsx(Jue,{})}),a.jsx(Q,{path:"/news/events",element:a.jsx(Que,{})}),a.jsx(Q,{path:"/news/events/submit",element:a.jsx(wme,{})}),a.jsx(Q,{path:"/contact",element:a.jsx(Ime,{})}),a.jsx(Q,{path:"/careers",element:a.jsx(Zme,{})}),a.jsx(Q,{path:"/auth",element:a.jsx(Jme,{})}),a.jsx(Q,{path:"/admin/blog",element:a.jsx(Xme,{})}),a.jsx(Q,{path:"*",element:a.jsx(rV,{})})]})]})]})})});y_(document.getElementById("root")).render(a.jsx(S_,{children:a.jsx(tge,{})}));

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.