@reactfast/nav 0.2.9 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/realfastnav.cjs.js +34 -14
- package/dist/realfastnav.es.js +6962 -2497
- package/dist/realfastnav.umd.js +34 -14
- package/package.json +1 -1
package/dist/realfastnav.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(qe,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],f):(qe=typeof globalThis<"u"?globalThis:qe||self,f(qe.ReactFastNav={},qe.React,qe.ReactDOM))})(this,function(qe,f,zt){"use strict";function Ea(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const T=Ea(f),vr=Ea(zt);function Jl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yn={exports:{}},Xt={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var xa;function eu(){if(xa)return Xt;xa=1;var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,c){var u,h={},d=null,p=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)n.call(l,u)&&!a.hasOwnProperty(u)&&(h[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)h[u]===void 0&&(h[u]=l[u]);return{$$typeof:t,type:s,key:d,ref:p,props:h,_owner:o.current}}return Xt.Fragment=r,Xt.jsx=i,Xt.jsxs=i,Xt}var Yt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,24 +14,44 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var wa;function tu(){return wa||(wa=1,process.env.NODE_ENV!=="production"&&function(){var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function v(x){if(x===null||typeof x!="object")return null;var I=g&&x[g]||x[m];return typeof I=="function"?I:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(x){{for(var I=arguments.length,W=new Array(I>1?I-1:0),X=1;X<I;X++)W[X-1]=arguments[X];w("error",x,W)}}function w(x,I,W){{var X=b.ReactDebugCurrentFrame,ae=X.getStackAddendum();ae!==""&&(I+="%s",W=W.concat([ae]));var ue=W.map(function(te){return String(te)});ue.unshift("Warning: "+I),Function.prototype.apply.call(console[x],console,ue)}}var _=!1,P=!1,O=!1,N=!1,M=!1,k;k=Symbol.for("react.module.reference");function S(x){return!!(typeof x=="string"||typeof x=="function"||x===n||x===a||M||x===o||x===c||x===u||N||x===p||_||P||O||typeof x=="object"&&x!==null&&(x.$$typeof===d||x.$$typeof===h||x.$$typeof===i||x.$$typeof===s||x.$$typeof===l||x.$$typeof===k||x.getModuleId!==void 0))}function C(x,I,W){var X=x.displayName;if(X)return X;var ae=I.displayName||I.name||"";return ae!==""?W+"("+ae+")":W}function j(x){return x.displayName||"Context"}function $(x){if(x==null)return null;if(typeof x.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof x=="function")return x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof x=="object")switch(x.$$typeof){case s:var I=x;return j(I)+".Consumer";case i:var W=x;return j(W._context)+".Provider";case l:return C(x,x.render,"ForwardRef");case h:var X=x.displayName||null;return X!==null?X:$(x.type)||"Memo";case d:{var ae=x,ue=ae._payload,te=ae._init;try{return $(te(ue))}catch{return null}}}return null}var A=Object.assign,D=0,U,q,R,L,z,K,J;function F(){}F.__reactDisabledLog=!0;function B(){{if(D===0){U=console.log,q=console.info,R=console.warn,L=console.error,z=console.group,K=console.groupCollapsed,J=console.groupEnd;var x={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:x,log:x,warn:x,error:x,group:x,groupCollapsed:x,groupEnd:x})}D++}}function V(){{if(D--,D===0){var x={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},x,{value:U}),info:A({},x,{value:q}),warn:A({},x,{value:R}),error:A({},x,{value:L}),group:A({},x,{value:z}),groupCollapsed:A({},x,{value:K}),groupEnd:A({},x,{value:J})})}D<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=b.ReactCurrentDispatcher,Q;function pe(x,I,W){{if(Q===void 0)try{throw Error()}catch(ae){var X=ae.stack.trim().match(/\n( *(at )?)/);Q=X&&X[1]||""}return`
|
|
18
|
+
`+Q+x}}var G=!1,Ae;{var Pe=typeof WeakMap=="function"?WeakMap:Map;Ae=new Pe}function he(x,I){if(!x||G)return"";{var W=Ae.get(x);if(W!==void 0)return W}var X;G=!0;var ae=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ue;ue=ee.current,ee.current=null,B();try{if(I){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(ke){X=ke}Reflect.construct(x,[],te)}else{try{te.call()}catch(ke){X=ke}x.call(te.prototype)}}else{try{throw Error()}catch(ke){X=ke}x()}}catch(ke){if(ke&&X&&typeof ke.stack=="string"){for(var Z=ke.stack.split(`
|
|
19
|
+
`),Ce=X.stack.split(`
|
|
20
|
+
`),ge=Z.length-1,Ee=Ce.length-1;ge>=1&&Ee>=0&&Z[ge]!==Ce[Ee];)Ee--;for(;ge>=1&&Ee>=0;ge--,Ee--)if(Z[ge]!==Ce[Ee]){if(ge!==1||Ee!==1)do if(ge--,Ee--,Ee<0||Z[ge]!==Ce[Ee]){var Be=`
|
|
21
|
+
`+Z[ge].replace(" at new "," at ");return x.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",x.displayName)),typeof x=="function"&&Ae.set(x,Be),Be}while(ge>=1&&Ee>=0);break}}}finally{G=!1,ee.current=ue,V(),Error.prepareStackTrace=ae}var Gt=x?x.displayName||x.name:"",Nt=Gt?pe(Gt):"";return typeof x=="function"&&Ae.set(x,Nt),Nt}function Bt(x,I,W){return he(x,!1)}function Wt(x){var I=x.prototype;return!!(I&&I.isReactComponent)}function me(x,I,W){if(x==null)return"";if(typeof x=="function")return he(x,Wt(x));if(typeof x=="string")return pe(x);switch(x){case c:return pe("Suspense");case u:return pe("SuspenseList")}if(typeof x=="object")switch(x.$$typeof){case l:return Bt(x.render);case h:return me(x.type,I,W);case d:{var X=x,ae=X._payload,ue=X._init;try{return me(ue(ae),I,W)}catch{}}}return""}var nt=Object.prototype.hasOwnProperty,Tt={},Ot=b.ReactDebugCurrentFrame;function ot(x){if(x){var I=x._owner,W=me(x.type,x._source,I?I.type:null);Ot.setExtraStackFrame(W)}else Ot.setExtraStackFrame(null)}function hr(x,I,W,X,ae){{var ue=Function.call.bind(nt);for(var te in x)if(ue(x,te)){var Z=void 0;try{if(typeof x[te]!="function"){var Ce=Error((X||"React class")+": "+W+" type `"+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof x[te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ce.name="Invariant Violation",Ce}Z=x[te](I,te,X,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){Z=ge}Z&&!(Z instanceof Error)&&(ot(ae),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",X||"React class",W,te,typeof Z),ot(null)),Z instanceof Error&&!(Z.message in Tt)&&(Tt[Z.message]=!0,ot(ae),E("Failed %s type: %s",W,Z.message),ot(null))}}}var gr=Array.isArray;function ne(x){return gr(x)}function ie(x){{var I=typeof Symbol=="function"&&Symbol.toStringTag,W=I&&x[Symbol.toStringTag]||x.constructor.name||"Object";return W}}function Ve(x){try{return mt(x),!1}catch{return!0}}function mt(x){return""+x}function Ut(x){if(Ve(x))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ie(x)),mt(x)}var Vt=b.ReactCurrentOwner,Y={key:!0,ref:!0,__self:!0,__source:!0},je,Ul;function Ah(x){if(nt.call(x,"ref")){var I=Object.getOwnPropertyDescriptor(x,"ref").get;if(I&&I.isReactWarning)return!1}return x.ref!==void 0}function jh(x){if(nt.call(x,"key")){var I=Object.getOwnPropertyDescriptor(x,"key").get;if(I&&I.isReactWarning)return!1}return x.key!==void 0}function kh(x,I){typeof x.ref=="string"&&Vt.current}function Ih(x,I){{var W=function(){je||(je=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};W.isReactWarning=!0,Object.defineProperty(x,"key",{get:W,configurable:!0})}}function $h(x,I){{var W=function(){Ul||(Ul=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};W.isReactWarning=!0,Object.defineProperty(x,"ref",{get:W,configurable:!0})}}var Mh=function(x,I,W,X,ae,ue,te){var Z={$$typeof:t,type:x,key:I,ref:W,props:te,_owner:ue};return Z._store={},Object.defineProperty(Z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.defineProperty(Z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ae}),Object.freeze&&(Object.freeze(Z.props),Object.freeze(Z)),Z};function Lh(x,I,W,X,ae){{var ue,te={},Z=null,Ce=null;W!==void 0&&(Ut(W),Z=""+W),jh(I)&&(Ut(I.key),Z=""+I.key),Ah(I)&&(Ce=I.ref,kh(I,ae));for(ue in I)nt.call(I,ue)&&!Y.hasOwnProperty(ue)&&(te[ue]=I[ue]);if(x&&x.defaultProps){var ge=x.defaultProps;for(ue in ge)te[ue]===void 0&&(te[ue]=ge[ue])}if(Z||Ce){var Ee=typeof x=="function"?x.displayName||x.name||"Unknown":x;Z&&Ih(te,Ee),Ce&&$h(te,Ee)}return Mh(x,Z,Ce,ae,X,Vt.current,te)}}var ga=b.ReactCurrentOwner,Vl=b.ReactDebugCurrentFrame;function qt(x){if(x){var I=x._owner,W=me(x.type,x._source,I?I.type:null);Vl.setExtraStackFrame(W)}else Vl.setExtraStackFrame(null)}var va;va=!1;function ba(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function ql(){{if(ga.current){var x=$(ga.current.type);if(x)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+x+"`."}return""}}function Dh(x){return""}var Gl={};function Fh(x){{var I=ql();if(!I){var W=typeof x=="string"?x:x.displayName||x.name;W&&(I=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+W+">.")}return I}}function zl(x,I){{if(!x._store||x._store.validated||x.key!=null)return;x._store.validated=!0;var W=Fh(I);if(Gl[W])return;Gl[W]=!0;var X="";x&&x._owner&&x._owner!==ga.current&&(X=" It was passed a child from "+$(x._owner.type)+"."),qt(x),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,X),qt(null)}}function Xl(x,I){{if(typeof x!="object")return;if(ne(x))for(var W=0;W<x.length;W++){var X=x[W];ba(X)&&zl(X,I)}else if(ba(x))x._store&&(x._store.validated=!0);else if(x){var ae=v(x);if(typeof ae=="function"&&ae!==x.entries)for(var ue=ae.call(x),te;!(te=ue.next()).done;)ba(te.value)&&zl(te.value,I)}}}function Hh(x){{var I=x.type;if(I==null||typeof I=="string")return;var W;if(typeof I=="function")W=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===l||I.$$typeof===h))W=I.propTypes;else return;if(W){var X=$(I);hr(W,x.props,"prop",X,x)}else if(I.PropTypes!==void 0&&!va){va=!0;var ae=$(I);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ae||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bh(x){{for(var I=Object.keys(x.props),W=0;W<I.length;W++){var X=I[W];if(X!=="children"&&X!=="key"){qt(x),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",X),qt(null);break}}x.ref!==null&&(qt(x),E("Invalid attribute `ref` supplied to `React.Fragment`."),qt(null))}}var Yl={};function Kl(x,I,W,X,ae,ue){{var te=S(x);if(!te){var Z="";(x===void 0||typeof x=="object"&&x!==null&&Object.keys(x).length===0)&&(Z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ce=Dh();Ce?Z+=Ce:Z+=ql();var ge;x===null?ge="null":ne(x)?ge="array":x!==void 0&&x.$$typeof===t?(ge="<"+($(x.type)||"Unknown")+" />",Z=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof x,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,Z)}var Ee=Lh(x,I,W,ae,ue);if(Ee==null)return Ee;if(te){var Be=I.children;if(Be!==void 0)if(X)if(ne(Be)){for(var Gt=0;Gt<Be.length;Gt++)Xl(Be[Gt],x);Object.freeze&&Object.freeze(Be)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Xl(Be,x)}if(nt.call(I,"key")){var Nt=$(x),ke=Object.keys(I).filter(function(zh){return zh!=="key"}),ya=ke.length>0?"{key: someKey, "+ke.join(": ..., ")+": ...}":"{key: someKey}";if(!Yl[Nt+ya]){var Gh=ke.length>0?"{"+ke.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ht,Pe,ro,Pe),un[Pe+Ht]=!0}}return o===s?Za(ne):Ka(ne),ne}}function Qa(o,R,T){return cn(o,R,T,!0)}function Ja(o,R,T){return cn(o,R,T,!1)}var eo=Ja,to=Qa;Me.Fragment=s,Me.jsx=eo,Me.jsxs=to}()),Me}process.env.NODE_ENV==="production"?Qe.exports=pn():Qe.exports=hn();var r=Qe.exports;function mn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const gn=P.forwardRef(mn);function vn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const Je=P.forwardRef(vn);function _n({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"}))}const Gt=P.forwardRef(_n);function xn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 14.15v4.25c0 1.094-.787 2.036-1.872 2.18-2.087.277-4.216.42-6.378.42s-4.291-.143-6.378-.42c-1.085-.144-1.872-1.086-1.872-2.18v-4.25m16.5 0a2.18 2.18 0 0 0 .75-1.661V8.706c0-1.081-.768-2.015-1.837-2.175a48.114 48.114 0 0 0-3.413-.387m4.5 8.006c-.194.165-.42.295-.673.38A23.978 23.978 0 0 1 12 15.75c-2.648 0-5.195-.429-7.577-1.22a2.016 2.016 0 0 1-.673-.38m0 0A2.18 2.18 0 0 1 3 12.489V8.706c0-1.081.768-2.015 1.837-2.175a48.111 48.111 0 0 1 3.413-.387m7.5 0V5.25A2.25 2.25 0 0 0 13.5 3h-3a2.25 2.25 0 0 0-2.25 2.25v.894m7.5 0a48.667 48.667 0 0 0-7.5 0M12 12.75h.008v.008H12v-.008Z"}))}const yn=P.forwardRef(xn);function bn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6a7.5 7.5 0 1 0 7.5 7.5h-7.5V6Z"}),P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5H21A7.5 7.5 0 0 0 13.5 3v7.5Z"}))}const En=P.forwardRef(bn);function Rn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.042 21.672 13.684 16.6m0 0-2.51 2.225.569-9.47 5.227 7.917-3.286-.672ZM12 2.25V4.5m5.834.166-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243-1.59-1.59"}))}const Nn=P.forwardRef(Rn);function Pn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.864 4.243A7.5 7.5 0 0 1 19.5 10.5c0 2.92-.556 5.709-1.568 8.268M5.742 6.364A7.465 7.465 0 0 0 4.5 10.5a7.464 7.464 0 0 1-1.15 3.993m1.989 3.559A11.209 11.209 0 0 0 8.25 10.5a3.75 3.75 0 1 1 7.5 0c0 .527-.021 1.049-.064 1.565M12 10.5a14.94 14.94 0 0 1-3.6 9.75m6.633-4.596a18.666 18.666 0 0 1-2.485 5.33"}))}const wn=P.forwardRef(Pn);function jn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const $t=P.forwardRef(jn);function On({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"}))}const Tn=P.forwardRef(On);function Sn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 0 1-2.25 2.25M16.5 7.5V18a2.25 2.25 0 0 0 2.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 0 0 2.25 2.25h13.5M6 7.5h3v3H6v-3Z"}))}const An=P.forwardRef(Sn);function kn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const Cn=P.forwardRef(kn);function Mn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))}const In=P.forwardRef(Mn);function Ln({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 16.875h3.375m0 0h3.375m-3.375 0V13.5m0 3.375v3.375M6 10.5h2.25a2.25 2.25 0 0 0 2.25-2.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v2.25A2.25 2.25 0 0 0 6 10.5Zm0 9.75h2.25A2.25 2.25 0 0 0 10.5 18v-2.25a2.25 2.25 0 0 0-2.25-2.25H6a2.25 2.25 0 0 0-2.25 2.25V18A2.25 2.25 0 0 0 6 20.25Zm9.75-9.75H18a2.25 2.25 0 0 0 2.25-2.25V6A2.25 2.25 0 0 0 18 3.75h-2.25A2.25 2.25 0 0 0 13.5 6v2.25a2.25 2.25 0 0 0 2.25 2.25Z"}))}const Dn=P.forwardRef(Ln);function Fn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const De=P.forwardRef(Fn);function qn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const we=P.forwardRef(qn);function Un({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{fillRule:"evenodd",d:"M2 3.5A1.5 1.5 0 0 1 3.5 2h1.148a1.5 1.5 0 0 1 1.465 1.175l.716 3.223a1.5 1.5 0 0 1-1.052 1.767l-.933.267c-.41.117-.643.555-.48.95a11.542 11.542 0 0 0 6.254 6.254c.395.163.833-.07.95-.48l.267-.933a1.5 1.5 0 0 1 1.767-1.052l3.223.716A1.5 1.5 0 0 1 18 15.352V16.5a1.5 1.5 0 0 1-1.5 1.5H15c-1.149 0-2.263-.15-3.326-.43A13.022 13.022 0 0 1 2.43 8.326 13.019 13.019 0 0 1 2 5V3.5Z",clipRule:"evenodd"}))}const zn=P.forwardRef(Un);function Xn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{fillRule:"evenodd",d:"M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm6.39-2.908a.75.75 0 0 1 .766.027l3.5 2.25a.75.75 0 0 1 0 1.262l-3.5 2.25A.75.75 0 0 1 8 12.25v-4.5a.75.75 0 0 1 .39-.658Z",clipRule:"evenodd"}))}const Bn=P.forwardRef(Xn);function Hn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{d:"M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z"}))}const Wn=P.forwardRef(Hn);function Vn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{fillRule:"evenodd",d:"M14.5 10a4.5 4.5 0 0 0 4.284-5.882c-.105-.324-.51-.391-.752-.15L15.34 6.66a.454.454 0 0 1-.493.11 3.01 3.01 0 0 1-1.618-1.616.455.455 0 0 1 .11-.494l2.694-2.692c.24-.241.174-.647-.15-.752a4.5 4.5 0 0 0-5.873 4.575c.055.873-.128 1.808-.8 2.368l-7.23 6.024a2.724 2.724 0 1 0 3.837 3.837l6.024-7.23c.56-.672 1.495-.855 2.368-.8.096.007.193.01.291.01ZM5 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}),P.createElement("path",{d:"M14.5 11.5c.173 0 .345-.007.514-.022l3.754 3.754a2.5 2.5 0 0 1-3.536 3.536l-4.41-4.41 2.172-2.607c.052-.063.147-.138.342-.196.202-.06.469-.087.777-.067.128.008.257.012.387.012ZM6 4.586l2.33 2.33a.452.452 0 0 1-.08.09L6.8 8.214 4.586 6H3.309a.5.5 0 0 1-.447-.276l-1.7-3.402a.5.5 0 0 1 .093-.577l.49-.49a.5.5 0 0 1 .577-.094l3.402 1.7A.5.5 0 0 1 6 3.31v1.277Z"}))}const Gn=P.forwardRef(Vn),Yt=[{name:"Analytics",description:"Get a better understanding of your traffic",href:"#",icon:En},{name:"Engagement",description:"Speak directly to your customers",href:"#",icon:Nn},{name:"Security",description:"Your customers’ data will be safe and secure",href:"#",icon:wn},{name:"Integrations",description:"Connect with third-party tools",href:"#",icon:Dn},{name:"Automations",description:"Build strategic funnels that will convert",href:"#",icon:gn}],$n=[{name:"Watch demo",href:"#",icon:Bn},{name:"Contact sales",href:"#",icon:zn}],Kt=[{name:"About us",href:"#",description:"Learn more about our company values and mission to empower others"},{name:"Careers",href:"#",description:"Looking for you next career opportunity? See all of our open positions"},{name:"Support",href:"#",description:"Get in touch with our dedicated support team or reach out on our community forums"},{name:"Blog",href:"#",description:"Read our latest announcements and get perspectives from our team"}];function Yn(){const[e,t]=q.useState(!1);return r.jsxs("header",{className:"bg-white dark:bg-gray-900",children:[r.jsxs("nav",{"aria-label":"Global",className:"mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8",children:[r.jsx("div",{className:"flex lg:flex-1",children:r.jsxs("a",{href:"#",className:"-m-1.5 p-1.5",children:[r.jsx("span",{className:"sr-only",children:"Your Company"}),r.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",className:"h-8 w-auto dark:hidden"}),r.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",className:"hidden h-8 w-auto dark:block"})]})}),r.jsx("div",{className:"flex lg:hidden",children:r.jsxs("button",{type:"button",onClick:()=>t(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 dark:text-gray-400",children:[r.jsx("span",{className:"sr-only",children:"Open main menu"}),r.jsx(Je,{"aria-hidden":"true",className:"size-6"})]})}),r.jsxs(D.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:[r.jsxs(D.Popover,{className:"relative",children:[r.jsxs(D.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white",children:["Product",r.jsx(we,{"aria-hidden":"true",className:"size-5 flex-none text-gray-400 dark:text-gray-500"})]}),r.jsxs(D.PopoverPanel,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-screen max-w-md -translate-x-1/2 overflow-hidden rounded-3xl bg-white shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",children:[r.jsx("div",{className:"p-4",children:Yt.map(n=>r.jsxs("div",{className:"group relative flex items-center gap-x-6 rounded-lg p-4 text-sm/6 hover:bg-gray-50 dark:hover:bg-white/5",children:[r.jsx("div",{className:"flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-700/50 dark:group-hover:bg-gray-700",children:r.jsx(n.icon,{"aria-hidden":"true",className:"size-6 text-gray-600 group-hover:text-indigo-600 dark:text-gray-400 dark:group-hover:text-white"})}),r.jsxs("div",{className:"flex-auto",children:[r.jsxs("a",{href:n.href,className:"block font-semibold text-gray-900 dark:text-white",children:[n.name,r.jsx("span",{className:"absolute inset-0"})]}),r.jsx("p",{className:"mt-1 text-gray-600 dark:text-gray-400",children:n.description})]})]},n.name))}),r.jsx("div",{className:"grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 dark:divide-white/10 dark:bg-gray-700/50",children:$n.map(n=>r.jsxs("a",{href:n.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700/50",children:[r.jsx(n.icon,{"aria-hidden":"true",className:"size-5 flex-none text-gray-400 dark:text-gray-500"}),n.name]},n.name))})]})]}),r.jsx("a",{href:"#",className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:"Features"}),r.jsx("a",{href:"#",className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:"Marketplace"}),r.jsxs(D.Popover,{className:"relative",children:[r.jsxs(D.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white",children:["Company",r.jsx(we,{"aria-hidden":"true",className:"size-5 flex-none text-gray-400 dark:text-gray-500"})]}),r.jsx(D.PopoverPanel,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-96 -translate-x-1/2 rounded-3xl bg-white p-4 shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:-outline-offset-1 dark:outline-white/10",children:Kt.map(n=>r.jsxs("div",{className:"relative rounded-lg p-4 hover:bg-gray-50 dark:hover:bg-white/5",children:[r.jsxs("a",{href:n.href,className:"block text-sm/6 font-semibold text-gray-900 dark:text-white",children:[n.name,r.jsx("span",{className:"absolute inset-0"})]}),r.jsx("p",{className:"mt-1 text-sm/6 text-gray-600 dark:text-gray-400",children:n.description})]},n.name))})]})]}),r.jsx("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:r.jsxs("a",{href:"#",className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:["Log in ",r.jsx("span",{"aria-hidden":"true",children:"→"})]})})]}),r.jsxs(D.Dialog,{open:e,onClose:t,className:"lg:hidden",children:[r.jsx("div",{className:"fixed inset-0 z-10"}),r.jsxs(D.DialogPanel,{className:"fixed inset-y-0 right-0 z-10 flex w-full flex-col justify-between overflow-y-auto bg-white sm:max-w-sm sm:ring-1 sm:ring-gray-900/10 dark:bg-gray-900 dark:sm:ring-white/10",children:[r.jsxs("div",{className:"p-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("a",{href:"#",className:"-m-1.5 p-1.5",children:[r.jsx("span",{className:"sr-only",children:"Your Company"}),r.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",className:"h-8 w-auto dark:hidden"}),r.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",className:"hidden h-8 w-auto dark:block"})]}),r.jsxs("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-gray-400",children:[r.jsx("span",{className:"sr-only",children:"Close menu"}),r.jsx(De,{"aria-hidden":"true",className:"size-6"})]})]}),r.jsx("div",{className:"mt-6 flow-root",children:r.jsxs("div",{className:"-my-6 divide-y divide-gray-500/10 dark:divide-white/10",children:[r.jsx("div",{className:"space-y-2 py-6",children:Yt.map(n=>r.jsxs("a",{href:n.href,className:"group -mx-3 flex items-center gap-x-6 rounded-lg p-3 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:[r.jsx("div",{className:"flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-800 dark:group-hover:bg-gray-700",children:r.jsx(n.icon,{"aria-hidden":"true",className:"size-6 text-gray-600 group-hover:text-indigo-600 dark:text-gray-300 dark:group-hover:text-white"})}),n.name]},n.name))}),r.jsxs("div",{className:"space-y-2 py-6",children:[r.jsx("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:"Features"}),r.jsx("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:"Marketplace"}),Kt.map(n=>r.jsx("a",{href:n.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:n.name},n.name))]}),r.jsx("div",{className:"py-6",children:r.jsx("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:"Log in"})})]})})]}),r.jsx("div",{className:"sticky bottom-0 grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 text-center dark:divide-white/5 dark:bg-gray-800/50",children:item.ctas.map(n=>r.jsx("a",{href:n.href,className:"p-3 text-base/7 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-800",children:n.title},n.title))})]})]})]})}function Kn(){return r.jsxs(D.Disclosure,{as:"nav",className:"relative bg-white shadow dark:bg-gray-800/50 dark:shadow-none dark:after:pointer-events-none dark:after:absolute dark:after:inset-x-0 dark:after:bottom-0 dark:after:h-px dark:after:bg-white/10",children:[r.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:r.jsxs("div",{className:"flex h-16 justify-between",children:[r.jsxs("div",{className:"flex",children:[r.jsx("div",{className:"-ml-2 mr-2 flex items-center md:hidden",children:r.jsxs(D.DisclosureButton,{className:"group relative inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-600 dark:hover:bg-white/5 dark:hover:text-white dark:focus:ring-white",children:[r.jsx("span",{className:"absolute -inset-0.5"}),r.jsx("span",{className:"sr-only",children:"Open main menu"}),r.jsx(Je,{"aria-hidden":"true",className:"block size-6 group-data-[open]:hidden"}),r.jsx(De,{"aria-hidden":"true",className:"hidden size-6 group-data-[open]:block"})]})}),r.jsxs("div",{className:"flex shrink-0 items-center",children:[r.jsx("img",{alt:"Your Company",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",className:"h-8 w-auto dark:hidden"}),r.jsx("img",{alt:"Your Company",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",className:"hidden h-8 w-auto dark:block"})]}),r.jsxs("div",{className:"hidden md:ml-6 md:flex md:space-x-8",children:[r.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-indigo-600 px-1 pt-1 text-sm font-medium text-gray-900 dark:border-indigo-500 dark:text-white",children:"Dashboard"}),r.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",children:"Team"}),r.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",children:"Projects"}),r.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",children:"Calendar"})]})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("div",{className:"shrink-0",children:r.jsxs("button",{type:"button",className:"relative inline-flex items-center gap-x-1.5 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:bg-indigo-500 dark:shadow-none dark:hover:bg-indigo-400 dark:focus-visible:outline-indigo-500",children:[r.jsx(Wn,{"aria-hidden":"true",className:"-ml-0.5 size-5"}),"New Job"]})}),r.jsxs("div",{className:"hidden md:ml-4 md:flex md:shrink-0 md:items-center",children:[r.jsxs("button",{type:"button",className:"relative rounded-full p-1 text-gray-400 hover:text-gray-500 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-indigo-600 dark:hover:text-white dark:focus:outline-indigo-500",children:[r.jsx("span",{className:"absolute -inset-1.5"}),r.jsx("span",{className:"sr-only",children:"View notifications"}),r.jsx(Gt,{"aria-hidden":"true",className:"size-6"})]}),r.jsxs(D.Menu,{as:"div",className:"relative ml-3",children:[r.jsxs(D.MenuButton,{className:"relative flex rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:focus-visible:outline-indigo-500",children:[r.jsx("span",{className:"absolute -inset-1.5"}),r.jsx("span",{className:"sr-only",children:"Open user menu"}),r.jsx("img",{alt:"",src:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",className:"size-8 rounded-full bg-gray-100 outline outline-1 -outline-offset-1 outline-black/5 dark:bg-gray-800 dark:outline-white/10"})]}),r.jsxs(D.MenuItems,{transition:!0,className:"absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white py-1 shadow-lg outline outline-1 outline-black/5 transition data-[closed]:scale-95 data-[closed]:transform data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-75 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",children:[r.jsx(D.MenuItem,{children:r.jsx("a",{href:"#",className:"block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",children:"Your profile"})}),r.jsx(D.MenuItem,{children:r.jsx("a",{href:"#",className:"block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",children:"Settings"})}),r.jsx(D.MenuItem,{children:r.jsx("a",{href:"#",className:"block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",children:"Sign out"})})]})]})]})]})]})}),r.jsxs(D.DisclosurePanel,{className:"md:hidden",children:[r.jsxs("div",{className:"space-y-1 pb-3 pt-2",children:[r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block border-l-4 border-indigo-600 bg-indigo-50 py-2 pl-3 pr-4 text-base font-medium text-indigo-700 sm:pl-5 sm:pr-6 dark:border-indigo-500 dark:bg-indigo-600/10 dark:text-indigo-400",children:"Dashboard"}),r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",children:"Team"}),r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",children:"Projects"}),r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",children:"Calendar"})]}),r.jsxs("div",{className:"border-t border-gray-200 pb-3 pt-4 dark:border-white/10",children:[r.jsxs("div",{className:"flex items-center px-4 sm:px-6",children:[r.jsx("div",{className:"shrink-0",children:r.jsx("img",{alt:"",src:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",className:"size-10 rounded-full bg-gray-100 outline outline-1 -outline-offset-1 outline-black/5 dark:bg-gray-800 dark:outline-white/10"})}),r.jsxs("div",{className:"ml-3",children:[r.jsx("div",{className:"text-base font-medium text-gray-800 dark:text-white",children:"Tom Cook"}),r.jsx("div",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"tom@example.com"})]}),r.jsxs("button",{type:"button",className:"relative ml-auto shrink-0 rounded-full p-1 text-gray-400 hover:text-gray-500 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-indigo-600 dark:hover:text-white dark:focus:outline-indigo-500",children:[r.jsx("span",{className:"absolute -inset-1.5"}),r.jsx("span",{className:"sr-only",children:"View notifications"}),r.jsx(Gt,{"aria-hidden":"true",className:"size-6"})]})]}),r.jsxs("div",{className:"mt-3 space-y-1",children:[r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",children:"Your profile"}),r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",children:"Settings"}),r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",children:"Sign out"})]})]})]})]})}var et={exports:{}},tt={};function Zt(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Zt=function(s){return s?n:t})(e)}function Zn(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Zt(t);if(n&&n.has(e))return n.get(e);var s={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&Object.prototype.hasOwnProperty.call(e,u)){var a=f?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(s,u,a):s[u]=e[u]}return s.default=e,n&&n.set(e,s),s}tt._=Zn;var Fe={exports:{}},rt={},Qt;function Jt(){return Qt||(Qt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,d){for(var i in d)Object.defineProperty(a,i,{enumerable:!0,get:d[i]})}t(e,{assign:function(){return u},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return f}});function n(a){const d={};for(const[i,l]of a.entries()){const p=d[i];typeof p>"u"?d[i]=l:Array.isArray(p)?p.push(l):d[i]=[p,l]}return d}function s(a){return typeof a=="string"?a:typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function f(a){const d=new URLSearchParams;for(const[i,l]of Object.entries(a))if(Array.isArray(l))for(const p of l)d.append(i,s(p));else d.set(i,s(l));return d}function u(a,...d){for(const i of d){for(const l of i.keys())a.delete(l);for(const[l,p]of i.entries())a.append(l,p)}return a}}(rt)),rt}var nt={},er;function tr(){return er||(er=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,l){for(var p in l)Object.defineProperty(i,p,{enumerable:!0,get:l[p]})}t(e,{formatUrl:function(){return u},formatWithValidation:function(){return d},urlObjectKeys:function(){return a}});const s=tt._(Jt()),f=/https?|ftp|gopher|file/;function u(i){let{auth:l,hostname:p}=i,_=i.protocol||"",c=i.pathname||"",g=i.hash||"",y=i.query||"",h=!1;l=l?encodeURIComponent(l).replace(/%3A/i,":")+"@":"",i.host?h=l+i.host:p&&(h=l+(~p.indexOf(":")?`[${p}]`:p),i.port&&(h+=":"+i.port)),y&&typeof y=="object"&&(y=String(s.urlQueryToSearchParams(y)));let m=i.search||y&&`?${y}`||"";return _&&!_.endsWith(":")&&(_+=":"),i.slashes||(!_||f.test(_))&&h!==!1?(h="//"+(h||""),c&&c[0]!=="/"&&(c="/"+c)):h||(h=""),g&&g[0]!=="#"&&(g="#"+g),m&&m[0]!=="?"&&(m="?"+m),c=c.replace(/[?#]/g,encodeURIComponent),m=m.replace("#","%23"),`${_}${h}${c}${m}${g}`}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function d(i){return process.env.NODE_ENV==="development"&&i!==null&&typeof i=="object"&&Object.keys(i).forEach(l=>{a.includes(l)||console.warn(`Unknown key passed via urlObject into url.format: ${l}`)}),u(i)}}(nt)),nt}var at={},rr;function Qn(){return rr||(rr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(n,s){const f={};return Object.keys(n).forEach(u=>{s.includes(u)||(f[u]=n[u])}),f}}(at)),at}var ot={},nr;function qe(){return nr||(nr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,b){for(var j in b)Object.defineProperty(x,j,{enumerable:!0,get:b[j]})}t(e,{DecodeError:function(){return y},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return v},NormalizeError:function(){return h},PageNotFoundError:function(){return m},SP:function(){return c},ST:function(){return g},WEB_VITALS:function(){return n},execOnce:function(){return s},getDisplayName:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return d},isAbsoluteUrl:function(){return u},isResSent:function(){return l},loadGetInitialProps:function(){return _},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function s(x){let b=!1,j;return(...O)=>(b||(b=!0,j=x(...O)),j)}const f=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=x=>f.test(x);function a(){const{protocol:x,hostname:b,port:j}=window.location;return`${x}//${b}${j?":"+j:""}`}function d(){const{href:x}=window.location,b=a();return x.substring(b.length)}function i(x){return typeof x=="string"?x:x.displayName||x.name||"Unknown"}function l(x){return x.finished||x.headersSent}function p(x){const b=x.split("?");return b[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(b[1]?`?${b.slice(1).join("?")}`:"")}async function _(x,b){var L;if(process.env.NODE_ENV!=="production"&&(L=x.prototype)!=null&&L.getInitialProps){const k=`"${i(x)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;throw Object.defineProperty(new Error(k),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}const j=b.res||b.ctx&&b.ctx.res;if(!x.getInitialProps)return b.ctx&&b.Component?{pageProps:await _(b.Component,b.ctx)}:{};const O=await x.getInitialProps(b);if(j&&l(j))return O;if(!O){const k=`"${i(x)}.getInitialProps()" should resolve to an object. But found "${O}" instead.`;throw Object.defineProperty(new Error(k),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}return process.env.NODE_ENV!=="production"&&Object.keys(O).length===0&&!b.ctx&&console.warn(`${i(x)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`),O}const c=typeof performance<"u",g=c&&["mark","measure","getEntriesByName"].every(x=>typeof performance[x]=="function");class y extends Error{}class h extends Error{}class m extends Error{constructor(b){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${b}`}}class v extends Error{constructor(b,j){super(),this.message=`Failed to load static file for page: ${b} ${j}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(x){return JSON.stringify({message:x.message,stack:x.stack})}}(ot)),ot}var Ue={exports:{}},it={},ar;function or(){return ar||(ar=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}}(it)),it}var st={},ir;function lt(){return ir||(ir=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(n){const s=n.indexOf("#"),f=n.indexOf("?"),u=f>-1&&(s<0||f<s);return u||s>-1?{pathname:n.substring(0,u?f:s),query:u?n.substring(f,s>-1?s:void 0):"",hash:s>-1?n.slice(s):""}:{pathname:n,query:"",hash:""}}}(st)),st}var sr;function ze(){return sr||(sr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return f}});const n=or(),s=lt(),f=u=>{if(!u.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return u;const{pathname:a,query:d,hash:i}=(0,s.parsePath)(u);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?`${(0,n.removeTrailingSlash)(a)}${d}${i}`:a.endsWith("/")?`${a}${d}${i}`:`${a}/${d}${i}`:`${(0,n.removeTrailingSlash)(a)}${d}${i}`};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ue,Ue.exports)),Ue.exports}var ut={},Xe={exports:{}},ct={},lr;function ur(){return lr||(lr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=lt();function n(s,f){if(typeof s!="string")return!1;const{pathname:u}=(0,t.parsePath)(s);return u===f||u.startsWith(f+"/")}}(ct)),ct}var cr;function Jn(){return cr||(cr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return f}});const n=ur(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function f(u){return(0,n.pathHasPrefix)(u,s)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Xe,Xe.exports)),Xe.exports}var dr;function fr(){return dr||(dr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return s}});const t=qe(),n=Jn();function s(f){if(!(0,t.isAbsoluteUrl)(f))return!0;try{const u=(0,t.getLocationOrigin)(),a=new URL(f,u);return a.origin===u&&(0,n.hasBasePath)(a.pathname)}catch{return!1}}}(ut)),ut}var dt={},ft={},pr;function ea(){return pr||(pr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,a){for(var d in a)Object.defineProperty(u,d,{enumerable:!0,get:a[d]})}t(e,{getSortedRouteObjects:function(){return f},getSortedRoutes:function(){return s}});class n{insert(a){this._insert(a.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(a="/"){const d=[...this.children.keys()].sort();this.slugName!==null&&d.splice(d.indexOf("[]"),1),this.restSlugName!==null&&d.splice(d.indexOf("[...]"),1),this.optionalRestSlugName!==null&&d.splice(d.indexOf("[[...]]"),1);const i=d.map(l=>this.children.get(l)._smoosh(`${a}${l}/`)).reduce((l,p)=>[...l,...p],[]);if(this.slugName!==null&&i.push(...this.children.get("[]")._smoosh(`${a}[${this.slugName}]/`)),!this.placeholder){const l=a==="/"?"/":a.slice(0,-1);if(this.optionalRestSlugName!=null)throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${l}" and "${l}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});i.unshift(l)}return this.restSlugName!==null&&i.push(...this.children.get("[...]")._smoosh(`${a}[...${this.restSlugName}]/`)),this.optionalRestSlugName!==null&&i.push(...this.children.get("[[...]]")._smoosh(`${a}[[...${this.optionalRestSlugName}]]/`)),i}_insert(a,d,i){if(a.length===0){this.placeholder=!1;return}if(i)throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let l=a[0];if(l.startsWith("[")&&l.endsWith("]")){let c=function(g,y){if(g!==null&&g!==y)throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${g}' !== '${y}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});d.forEach(h=>{if(h===y)throw Object.defineProperty(new Error(`You cannot have the same slug name "${y}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(h.replace(/\W/g,"")===l.replace(/\W/g,""))throw Object.defineProperty(new Error(`You cannot have the slug names "${h}" and "${y}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),d.push(y)},p=l.slice(1,-1),_=!1;if(p.startsWith("[")&&p.endsWith("]")&&(p=p.slice(1,-1),_=!0),p.startsWith("…"))throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${p}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(p.startsWith("...")&&(p=p.substring(3),i=!0),p.startsWith("[")||p.endsWith("]"))throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${p}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(p.startsWith("."))throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${p}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});if(i)if(_){if(this.restSlugName!=null)throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${a[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});c(this.optionalRestSlugName,p),this.optionalRestSlugName=p,l="[[...]]"}else{if(this.optionalRestSlugName!=null)throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${a[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});c(this.restSlugName,p),this.restSlugName=p,l="[...]"}else{if(_)throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${a[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});c(this.slugName,p),this.slugName=p,l="[]"}}this.children.has(l)||this.children.set(l,new n),this.children.get(l)._insert(a.slice(1),d,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function s(u){const a=new n;return u.forEach(d=>a.insert(d)),a.smoosh()}function f(u,a){const d={},i=[];for(let p=0;p<u.length;p++){const _=a(u[p]);d[_]=p,i[p]=_}return s(i).map(p=>u[d[p]])}}(ft)),ft}var pt={},ht={},mt={},gt={},hr;function ta(){return hr||(hr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.startsWith("/")?n:`/${n}`}}(gt)),gt}var vt={},mr;function gr(){return mr||(mr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,c){for(var g in c)Object.defineProperty(_,g,{enumerable:!0,get:c[g]})}t(e,{DEFAULT_SEGMENT_KEY:function(){return l},NOT_FOUND_SEGMENT_KEY:function(){return p},PAGE_SEGMENT_KEY:function(){return i},addSearchParamsIfPageSegment:function(){return u},computeSelectedLayoutSegment:function(){return a},getSegmentValue:function(){return n},getSelectedLayoutSegmentPath:function(){return d},isGroupSegment:function(){return s},isParallelRouteSegment:function(){return f}});function n(_){return Array.isArray(_)?_[1]:_}function s(_){return _[0]==="("&&_.endsWith(")")}function f(_){return _.startsWith("@")&&_!=="@children"}function u(_,c){if(_.includes(i)){const y=JSON.stringify(c);return y!=="{}"?i+"?"+y:i}return _}function a(_,c){if(!_||_.length===0)return null;const g=c==="children"?_[0]:_[_.length-1];return g===l?null:g}function d(_,c,g=!0,y=[]){let h;if(g)h=_[1][c];else{const E=_[1];h=E.children??Object.values(E)[0]}if(!h)return y;const m=h[0];let v=n(m);return!v||v.startsWith(i)?y:(y.push(v),d(h,c,!1,y))}const i="__PAGE__",l="__DEFAULT__",p="/_not-found"}(vt)),vt}var vr;function ra(){return vr||(vr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,d){for(var i in d)Object.defineProperty(a,i,{enumerable:!0,get:d[i]})}t(e,{normalizeAppPath:function(){return f},normalizeRscURL:function(){return u}});const n=ta(),s=gr();function f(a){return(0,n.ensureLeadingSlash)(a.split("/").reduce((d,i,l,p)=>!i||(0,s.isGroupSegment)(i)||i[0]==="@"||(i==="page"||i==="route")&&l===p.length-1?d:`${d}/${i}`,""))}function u(a){return a.replace(/\.rsc($|\?)/,"$1")}}(mt)),mt}var _r;function Be(){return _r||(_r=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,d){for(var i in d)Object.defineProperty(a,i,{enumerable:!0,get:d[i]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return s},extractInterceptionRouteInformation:function(){return u},isInterceptionRouteAppPath:function(){return f}});const n=ra(),s=["(..)(..)","(.)","(..)","(...)"];function f(a){return a.split("/").find(d=>s.find(i=>d.startsWith(i)))!==void 0}function u(a){let d,i,l;for(const p of a.split("/"))if(i=s.find(_=>p.startsWith(_)),i){[d,l]=a.split(i,2);break}if(!d||!i||!l)throw Object.defineProperty(new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(d=(0,n.normalizeAppPath)(d),i){case"(.)":d==="/"?l=`/${l}`:l=d+"/"+l;break;case"(..)":if(d==="/")throw Object.defineProperty(new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});l=d.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":const p=d.split("/");if(p.length<=2)throw Object.defineProperty(new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});l=p.slice(0,-2).concat(l).join("/");break;default:throw Object.defineProperty(new Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:d,interceptedRoute:l}}}(ht)),ht}var xr;function na(){return xr||(xr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return f}});const t=Be(),n=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,s=/\/\[[^/]+\](?=\/|$)/;function f(u,a=!0){return(0,t.isInterceptionRouteAppPath)(u)&&(u=(0,t.extractInterceptionRouteInformation)(u).interceptedRoute),a?s.test(u):n.test(u)}}(pt)),pt}var yr;function aa(){return yr||(yr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,u){for(var a in u)Object.defineProperty(f,a,{enumerable:!0,get:u[a]})}t(e,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return s.isDynamicRoute}});const n=ea(),s=na()}(dt)),dt}var _t={},xt={},yt={},bt={exports:{}},br;function oa(){return br||(br=1,(()=>{typeof __nccwpck_require__<"u"&&(__nccwpck_require__.ab=__dirname+"/");var e={};(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0;function n(h){for(var m=[],v=0;v<h.length;){var E=h[v];if(E==="*"||E==="+"||E==="?"){m.push({type:"MODIFIER",index:v,value:h[v++]});continue}if(E==="\\"){m.push({type:"ESCAPED_CHAR",index:v++,value:h[v++]});continue}if(E==="{"){m.push({type:"OPEN",index:v,value:h[v++]});continue}if(E==="}"){m.push({type:"CLOSE",index:v,value:h[v++]});continue}if(E===":"){for(var w="",x=v+1;x<h.length;){var b=h.charCodeAt(x);if(b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||b===95){w+=h[x++];continue}break}if(!w)throw new TypeError("Missing parameter name at ".concat(v));m.push({type:"NAME",index:v,value:w}),v=x;continue}if(E==="("){var j=1,O="",x=v+1;if(h[x]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(x));for(;x<h.length;){if(h[x]==="\\"){O+=h[x++]+h[x++];continue}if(h[x]===")"){if(j--,j===0){x++;break}}else if(h[x]==="("&&(j++,h[x+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(x));O+=h[x++]}if(j)throw new TypeError("Unbalanced pattern at ".concat(v));if(!O)throw new TypeError("Missing pattern at ".concat(v));m.push({type:"PATTERN",index:v,value:O}),v=x;continue}m.push({type:"CHAR",index:v,value:h[v++]})}return m.push({type:"END",index:v,value:""}),m}function s(h,m){m===void 0&&(m={});for(var v=n(h),E=m.prefixes,w=E===void 0?"./":E,x=m.delimiter,b=x===void 0?"/#?":x,j=[],O=0,L=0,k="",N=function(oe){if(L<v.length&&v[L].type===oe)return v[L++].value},A=function(oe){var Z=N(oe);if(Z!==void 0)return Z;var ie=v[L],te=ie.type,ve=ie.index;throw new TypeError("Unexpected ".concat(te," at ").concat(ve,", expected ").concat(oe))},S=function(){for(var oe="",Z;Z=N("CHAR")||N("ESCAPED_CHAR");)oe+=Z;return oe},C=function(oe){for(var Z=0,ie=b;Z<ie.length;Z++){var te=ie[Z];if(oe.indexOf(te)>-1)return!0}return!1},F=function(oe){var Z=j[j.length-1],ie=oe||(Z&&typeof Z=="string"?Z:"");if(Z&&!ie)throw new TypeError('Must have text between two parameters, missing text after "'.concat(Z.name,'"'));return!ie||C(ie)?"[^".concat(i(b),"]+?"):"(?:(?!".concat(i(ie),")[^").concat(i(b),"])+?")};L<v.length;){var M=N("CHAR"),$=N("NAME"),J=N("PATTERN");if($||J){var K=M||"";w.indexOf(K)===-1&&(k+=K,K=""),k&&(j.push(k),k=""),j.push({name:$||O++,prefix:K,suffix:"",pattern:J||F(K),modifier:N("MODIFIER")||""});continue}var B=M||N("ESCAPED_CHAR");if(B){k+=B;continue}k&&(j.push(k),k="");var ae=N("OPEN");if(ae){var K=S(),ue=N("NAME")||"",ee=N("PATTERN")||"",se=S();A("CLOSE"),j.push({name:ue||(ee?O++:""),pattern:ue&&!ee?F(K):ee,prefix:K,suffix:se,modifier:N("MODIFIER")||""});continue}A("END")}return j}t.parse=s;function f(h,m){return u(s(h,m),m)}t.compile=f;function u(h,m){m===void 0&&(m={});var v=l(m),E=m.encode,w=E===void 0?function(O){return O}:E,x=m.validate,b=x===void 0?!0:x,j=h.map(function(O){if(typeof O=="object")return new RegExp("^(?:".concat(O.pattern,")$"),v)});return function(O){for(var L="",k=0;k<h.length;k++){var N=h[k];if(typeof N=="string"){L+=N;continue}var A=O?O[N.name]:void 0,S=N.modifier==="?"||N.modifier==="*",C=N.modifier==="*"||N.modifier==="+";if(Array.isArray(A)){if(!C)throw new TypeError('Expected "'.concat(N.name,'" to not repeat, but got an array'));if(A.length===0){if(S)continue;throw new TypeError('Expected "'.concat(N.name,'" to not be empty'))}for(var F=0;F<A.length;F++){var M=w(A[F],N);if(b&&!j[k].test(M))throw new TypeError('Expected all "'.concat(N.name,'" to match "').concat(N.pattern,'", but got "').concat(M,'"'));L+=N.prefix+M+N.suffix}continue}if(typeof A=="string"||typeof A=="number"){var M=w(String(A),N);if(b&&!j[k].test(M))throw new TypeError('Expected "'.concat(N.name,'" to match "').concat(N.pattern,'", but got "').concat(M,'"'));L+=N.prefix+M+N.suffix;continue}if(!S){var $=C?"an array":"a string";throw new TypeError('Expected "'.concat(N.name,'" to be ').concat($))}}return L}}t.tokensToFunction=u;function a(h,m){var v=[],E=y(h,v,m);return d(E,v,m)}t.match=a;function d(h,m,v){v===void 0&&(v={});var E=v.decode,w=E===void 0?function(x){return x}:E;return function(x){var b=h.exec(x);if(!b)return!1;for(var j=b[0],O=b.index,L=Object.create(null),k=function(A){if(b[A]===void 0)return"continue";var S=m[A-1];S.modifier==="*"||S.modifier==="+"?L[S.name]=b[A].split(S.prefix+S.suffix).map(function(C){return w(C,S)}):L[S.name]=w(b[A],S)},N=1;N<b.length;N++)k(N);return{path:j,index:O,params:L}}}t.regexpToFunction=d;function i(h){return h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function l(h){return h&&h.sensitive?"":"i"}function p(h,m){if(!m)return h;for(var v=/\((?:\?<(.*?)>)?(?!\?)/g,E=0,w=v.exec(h.source);w;)m.push({name:w[1]||E++,prefix:"",suffix:"",modifier:"",pattern:""}),w=v.exec(h.source);return h}function _(h,m,v){var E=h.map(function(w){return y(w,m,v).source});return new RegExp("(?:".concat(E.join("|"),")"),l(v))}function c(h,m,v){return g(s(h,v),m,v)}function g(h,m,v){v===void 0&&(v={});for(var E=v.strict,w=E===void 0?!1:E,x=v.start,b=x===void 0?!0:x,j=v.end,O=j===void 0?!0:j,L=v.encode,k=L===void 0?function(Z){return Z}:L,N=v.delimiter,A=N===void 0?"/#?":N,S=v.endsWith,C=S===void 0?"":S,F="[".concat(i(C),"]|$"),M="[".concat(i(A),"]"),$=b?"^":"",J=0,K=h;J<K.length;J++){var B=K[J];if(typeof B=="string")$+=i(k(B));else{var ae=i(k(B.prefix)),ue=i(k(B.suffix));if(B.pattern)if(m&&m.push(B),ae||ue)if(B.modifier==="+"||B.modifier==="*"){var ee=B.modifier==="*"?"?":"";$+="(?:".concat(ae,"((?:").concat(B.pattern,")(?:").concat(ue).concat(ae,"(?:").concat(B.pattern,"))*)").concat(ue,")").concat(ee)}else $+="(?:".concat(ae,"(").concat(B.pattern,")").concat(ue,")").concat(B.modifier);else{if(B.modifier==="+"||B.modifier==="*")throw new TypeError('Can not repeat "'.concat(B.name,'" without a prefix and suffix'));$+="(".concat(B.pattern,")").concat(B.modifier)}else $+="(?:".concat(ae).concat(ue,")").concat(B.modifier)}}if(O)w||($+="".concat(M,"?")),$+=v.endsWith?"(?=".concat(F,")"):"$";else{var se=h[h.length-1],oe=typeof se=="string"?M.indexOf(se[se.length-1])>-1:se===void 0;w||($+="(?:".concat(M,"(?=").concat(F,"))?")),oe||($+="(?=".concat(M,"|").concat(F,")"))}return new RegExp($,l(v))}t.tokensToRegexp=g;function y(h,m,v){return h instanceof RegExp?p(h,m):Array.isArray(h)?_(h,m,v):c(h,m,v)}t.pathToRegexp=y})(),bt.exports=e})()),bt.exports}var Et={},Er;function ia(){return Er||(Er=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,l){for(var p in l)Object.defineProperty(i,p,{enumerable:!0,get:l[p]})}t(e,{PARAM_SEPARATOR:function(){return n},hasAdjacentParameterIssues:function(){return s},normalizeAdjacentParameters:function(){return f},normalizeTokensForRegexp:function(){return u},stripNormalizedSeparators:function(){return a},stripParameterSeparators:function(){return d}});const n="_NEXTSEP_";function s(i){return typeof i!="string"?!1:!!(/\/\(\.{1,3}\):[^/\s]+/.test(i)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(i))}function f(i){let l=i;return l=l.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${n}:$2`),l=l.replace(/:([^:/\s)]+)(?=:)/g,`:$1${n}`),l}function u(i){return i.map(l=>typeof l=="object"&&l!==null&&"modifier"in l&&(l.modifier==="*"||l.modifier==="+")&&"prefix"in l&&"suffix"in l&&l.prefix===""&&l.suffix===""?{...l,prefix:"/"}:l)}function a(i){return i.replace(new RegExp(`\\)${n}`,"g"),")")}function d(i){const l={};for(const[p,_]of Object.entries(i))typeof _=="string"?l[p]=_.replace(new RegExp(`^${n}`),""):Array.isArray(_)?l[p]=_.map(c=>typeof c=="string"?c.replace(new RegExp(`^${n}`),""):c):l[p]=_;return l}}(Et)),Et}var Rr;function sa(){return Rr||(Rr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,l){for(var p in l)Object.defineProperty(i,p,{enumerable:!0,get:l[p]})}t(e,{safeCompile:function(){return u},safePathToRegexp:function(){return f},safeRegexpToFunction:function(){return a},safeRouteMatcher:function(){return d}});const n=oa(),s=ia();function f(i,l,p){if(typeof i!="string")return(0,n.pathToRegexp)(i,l,p);const _=(0,s.hasAdjacentParameterIssues)(i),c=_?(0,s.normalizeAdjacentParameters)(i):i;try{return(0,n.pathToRegexp)(c,l,p)}catch(g){if(!_)try{const y=(0,s.normalizeAdjacentParameters)(i);return(0,n.pathToRegexp)(y,l,p)}catch{throw g}throw g}}function u(i,l){const p=(0,s.hasAdjacentParameterIssues)(i),_=p?(0,s.normalizeAdjacentParameters)(i):i;try{const c=(0,n.compile)(_,l);return p?g=>(0,s.stripNormalizedSeparators)(c(g)):c}catch(c){if(!p)try{const g=(0,s.normalizeAdjacentParameters)(i),y=(0,n.compile)(g,l);return h=>(0,s.stripNormalizedSeparators)(y(h))}catch{throw c}throw c}}function a(i,l){const p=(0,n.regexpToFunction)(i,l||[]);return _=>{const c=p(_);return c?{...c,params:(0,s.stripParameterSeparators)(c.params)}:!1}}function d(i){return l=>{const p=i(l);return p?(0,s.stripParameterSeparators)(p):!1}}}(yt)),yt}var Nr;function Pr(){return Nr||(Nr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return s}});const t=qe(),n=sa();function s({re:f,groups:u}){const a=d=>{const i=f.exec(d);if(!i)return!1;const l=_=>{try{return decodeURIComponent(_)}catch{throw Object.defineProperty(new t.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},p={};for(const[_,c]of Object.entries(u)){const g=i[c.pos];g!==void 0&&(c.repeat?p[_]=g.split("/").map(y=>l(y)):p[_]=l(g))}return p};return(0,n.safeRouteMatcher)(a)}}(xt)),xt}var Rt={},Nt={},wr;function la(){return wr||(wr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(Ee,Te){for(var Se in Te)Object.defineProperty(Ee,Se,{enumerable:!0,get:Te[Se]})}t(e,{ACTION_SUFFIX:function(){return g},APP_DIR_ALIAS:function(){return B},CACHE_ONE_YEAR:function(){return k},DOT_NEXT_ALIAS:function(){return J},ESLINT_DEFAULT_DIRS:function(){return ye},GSP_NO_RETURNED_VALUE:function(){return je},GSSP_COMPONENT_MEMBER_ERROR:function(){return xe},GSSP_NO_RETURNED_VALUE:function(){return Oe},HTML_CONTENT_TYPE_HEADER:function(){return s},INFINITE_CACHE:function(){return N},INSTRUMENTATION_HOOK_FILENAME:function(){return M},JSON_CONTENT_TYPE_HEADER:function(){return f},MATCHED_PATH_HEADER:function(){return d},MIDDLEWARE_FILENAME:function(){return A},MIDDLEWARE_LOCATION_REGEXP:function(){return S},NEXT_BODY_SUFFIX:function(){return m},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return L},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return E},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return w},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return O},NEXT_CACHE_TAGS_HEADER:function(){return v},NEXT_CACHE_TAG_MAX_ITEMS:function(){return b},NEXT_CACHE_TAG_MAX_LENGTH:function(){return j},NEXT_DATA_SUFFIX:function(){return y},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return a},NEXT_META_SUFFIX:function(){return h},NEXT_QUERY_PARAM_PREFIX:function(){return u},NEXT_RESUME_HEADER:function(){return x},NON_STANDARD_NODE_ENV:function(){return Re},PAGES_DIR_ALIAS:function(){return $},PRERENDER_REVALIDATE_HEADER:function(){return i},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return l},PROXY_FILENAME:function(){return C},PROXY_LOCATION_REGEXP:function(){return F},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return te},ROOT_DIR_ALIAS:function(){return K},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return ie},RSC_ACTION_ENCRYPTION_ALIAS:function(){return Z},RSC_ACTION_PROXY_ALIAS:function(){return ee},RSC_ACTION_VALIDATE_ALIAS:function(){return ue},RSC_CACHE_WRAPPER_ALIAS:function(){return se},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return oe},RSC_MOD_REF_PROXY_ALIAS:function(){return ae},RSC_SEGMENTS_DIR_SUFFIX:function(){return p},RSC_SEGMENT_SUFFIX:function(){return _},RSC_SUFFIX:function(){return c},SERVER_PROPS_EXPORT_ERROR:function(){return le},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return z},SERVER_PROPS_SSG_CONFLICT:function(){return _e},SERVER_RUNTIME:function(){return Ie},SSG_FALLBACK_EXPORT_ERROR:function(){return Ne},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return ve},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return pe},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return n},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Q},WEBPACK_LAYERS:function(){return G},WEBPACK_RESOURCE_QUERIES:function(){return me},WEB_SOCKET_MAX_RECONNECTIONS:function(){return Le}});const n="text/plain",s="text/html; charset=utf-8",f="application/json; charset=utf-8",u="nxtP",a="nxtI",d="x-matched-path",i="x-prerender-revalidate",l="x-prerender-revalidate-if-generated",p=".segments",_=".segment.rsc",c=".rsc",g=".action",y=".json",h=".meta",m=".body",v="x-next-cache-tags",E="x-next-revalidated-tags",w="x-next-revalidate-tag-token",x="next-resume",b=128,j=256,O=1024,L="_N_T_",k=31536e3,N=4294967294,A="middleware",S=`(?:src/)?${A}`,C="proxy",F=`(?:src/)?${C}`,M="instrumentation",$="private-next-pages",J="private-dot-next",K="private-next-root-dir",B="private-next-app-dir",ae="private-next-rsc-mod-ref-proxy",ue="private-next-rsc-action-validate",ee="private-next-rsc-server-reference",se="private-next-rsc-cache-wrapper",oe="private-next-rsc-track-dynamic-import",Z="private-next-rsc-action-encryption",ie="private-next-rsc-action-client-wrapper",te="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",ve="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",z="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",_e="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",pe="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",le="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",je="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",Oe="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Q="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",xe="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Re='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Ne="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ye=["app","pages","components","lib","src"],Ie={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},Le=12,W={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},G={...W,GROUP:{builtinReact:[W.reactServerComponents,W.actionBrowser],serverOnly:[W.reactServerComponents,W.actionBrowser,W.instrument,W.middleware],neutralTarget:[W.apiNode,W.apiEdge],clientOnly:[W.serverSideRendering,W.appPagesBrowser],bundled:[W.reactServerComponents,W.actionBrowser,W.serverSideRendering,W.appPagesBrowser,W.shared,W.instrument,W.middleware],appPages:[W.reactServerComponents,W.serverSideRendering,W.appPagesBrowser,W.actionBrowser]}},me={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}(Nt)),Nt}var Pt={},jr;function ua(){return jr||(jr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return s}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function s(f){return t.test(f)?f.replace(n,"\\$&"):f}}(Pt)),Pt}var wt={},jt={},Or;function Ot(){return Or||(Or=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"InvariantError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(s,f){super(`Invariant: ${s.endsWith(".")?s:s+"."} This is a bug in Next.js.`,f),this.name="InvariantError"}}}(jt)),jt}var Tt={},Tr;function ca(){return Tr||(Tr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseLoaderTree",{enumerable:!0,get:function(){return n}});const t=gr();function n(s){const[f,u,a]=s,{layout:d,template:i}=a;let{page:l}=a;l=f===t.DEFAULT_SEGMENT_KEY?a.defaultPage:l;const p=(d==null?void 0:d[1])||(i==null?void 0:i[1])||(l==null?void 0:l[1]);return{page:l,segment:f,modules:a,conventionPath:p,parallelRoutes:u}}}(Tt)),Tt}var St={},At={},Sr;function da(){return Sr||(Sr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,d){for(var i in d)Object.defineProperty(a,i,{enumerable:!0,get:d[i]})}t(e,{getParamProperties:function(){return u},getSegmentParam:function(){return s},isCatchAll:function(){return f}});const n=Be();function s(a){const d=n.INTERCEPTION_ROUTE_MARKERS.find(i=>a.startsWith(i));return d&&(a=a.slice(d.length)),a.startsWith("[[...")&&a.endsWith("]]")?{paramType:"optional-catchall",paramName:a.slice(5,-2)}:a.startsWith("[...")&&a.endsWith("]")?{paramType:d?`catchall-intercepted-${d}`:"catchall",paramName:a.slice(4,-1)}:a.startsWith("[")&&a.endsWith("]")?{paramType:d?`dynamic-intercepted-${d}`:"dynamic",paramName:a.slice(1,-1)}:null}function f(a){return a==="catchall"||a==="catchall-intercepted-(..)(..)"||a==="catchall-intercepted-(.)"||a==="catchall-intercepted-(..)"||a==="catchall-intercepted-(...)"||a==="optional-catchall"}function u(a){let d=!1,i=!1;switch(a){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":d=!0;break;case"optional-catchall":d=!0,i=!0;break}return{repeat:d,optional:i}}}(At)),At}var Ar;function fa(){return Ar||(Ar=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,p){for(var _ in p)Object.defineProperty(l,_,{enumerable:!0,get:p[_]})}t(e,{isInterceptionAppRoute:function(){return d},isNormalizedAppRoute:function(){return a},parseAppRoute:function(){return i},parseAppRouteSegment:function(){return u}});const n=Ot(),s=da(),f=Be();function u(l){if(l==="")return null;const p=f.INTERCEPTION_ROUTE_MARKERS.find(c=>l.startsWith(c)),_=(0,s.getSegmentParam)(l);return _?{type:"dynamic",name:l,param:_,interceptionMarker:p}:l.startsWith("(")&&l.endsWith(")")?{type:"route-group",name:l,interceptionMarker:p}:l.startsWith("@")?{type:"parallel-route",name:l,interceptionMarker:p}:{type:"static",name:l,interceptionMarker:p}}function a(l){return l.normalized}function d(l){return l.interceptionMarker!==void 0&&l.interceptingRoute!==void 0&&l.interceptedRoute!==void 0}function i(l,p){const _=l.split("/").filter(Boolean),c=[];let g,y,h;for(const v of _){const E=u(v);if(E){if(p&&(E.type==="route-group"||E.type==="parallel-route"))throw Object.defineProperty(new n.InvariantError(`${l} is being parsed as a normalized route, but it has a route group or parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E923",enumerable:!1,configurable:!0});if(c.push(E),E.interceptionMarker){const w=l.split(E.interceptionMarker);if(w.length!==2)throw Object.defineProperty(new Error(`Invalid interception route: ${l}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});y=p?i(w[0],!0):i(w[0],!1),h=p?i(w[1],!0):i(w[1],!1),g=E.interceptionMarker}}}const m=c.filter(v=>v.type==="dynamic");return{normalized:p,pathname:l,segments:c,dynamicSegments:m,interceptionMarker:g,interceptingRoute:y,interceptedRoute:h}}}(St)),St}var kt={},Ct={},kr;function pa(){return kr||(kr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return t}});function t(n){switch(n){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";case"catchall":case"dynamic":case"optional-catchall":default:return null}}}(Ct)),Ct}var Cr;function ha(){return Cr||(Cr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveParamValue",{enumerable:!0,get:function(){return f}});const t=Ot(),n=pa();function s(u,a,d){return u.type==="dynamic"?a[u.param.paramName]:(0,n.interceptionPrefixFromParamType)(d)===u.interceptionMarker?u.name.replace(u.interceptionMarker,""):u.name}function f(u,a,d,i,l){switch(a){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":const p=[];for(let _=d;_<i.segments.length;_++){const c=i.segments[_];if(c.type==="static"){let g=c.name;const y=(0,n.interceptionPrefixFromParamType)(a);y&&_===d&&y===c.interceptionMarker&&(g=g.replace(c.interceptionMarker,"")),p.push(g)}else{if(!l.hasOwnProperty(c.param.paramName)){if(c.param.paramType==="optional-catchall")break;return}const g=l[c.param.paramName];Array.isArray(g)?p.push(...g):p.push(g)}}if(p.length>0)return p;if(a==="optional-catchall")return;throw Object.defineProperty(new t.InvariantError(`Unexpected empty path segments match for a route "${i.pathname}" with param "${u}" of type "${a}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(d<i.segments.length){const _=i.segments[d];return _.type==="dynamic"&&!l.hasOwnProperty(_.param.paramName)?void 0:s(_,l,a)}return}}}(kt)),kt}var Mr;function ma(){return Mr||(Mr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var y in g)Object.defineProperty(c,y,{enumerable:!0,get:g[y]})}t(e,{PARAMETER_PATTERN:function(){return l},getDynamicParam:function(){return i},interpolateParallelRouteParams:function(){return d},parseMatchedParameter:function(){return _},parseParameter:function(){return p}});const n=Ot(),s=ca(),f=fa(),u=ha();function a(c,g,y){let h=c[g];if(y!=null&&y.has(g)){const[m]=y.get(g);h=m}else Array.isArray(h)?h=h.map(m=>encodeURIComponent(m)):typeof h=="string"&&(h=encodeURIComponent(h));return h}function d(c,g,y,h){const m=structuredClone(g),v=[{tree:c,depth:0}],E=(0,f.parseAppRoute)(y,!0);for(;v.length>0;){const{tree:w,depth:x}=v.pop(),{segment:b,parallelRoutes:j}=(0,s.parseLoaderTree)(w),O=(0,f.parseAppRouteSegment)(b);if((O==null?void 0:O.type)==="dynamic"&&!m.hasOwnProperty(O.param.paramName)&&!(h!=null&&h.has(O.param.paramName))){const{paramName:k,paramType:N}=O.param,A=(0,u.resolveParamValue)(k,N,x,E,m);if(A!==void 0)m[k]=A;else if(N!=="optional-catchall")throw Object.defineProperty(new n.InvariantError(`Could not resolve param value for segment: ${k}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let L=x;O&&O.type!=="route-group"&&O.type!=="parallel-route"&&L++;for(const k of Object.values(j))v.push({tree:k,depth:L})}return m}function i(c,g,y,h){let m=a(c,g,h);if(!m||m.length===0){if(y==="oc")return{param:g,value:null,type:y,treeSegment:[g,"",y]};throw Object.defineProperty(new n.InvariantError(`Missing value for segment key: "${g}" with dynamic param type: ${y}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}return{param:g,value:m,treeSegment:[g,Array.isArray(m)?m.join("/"):m,y],type:y}}const l=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function p(c){const g=c.match(l);return _(g?g[2]:c)}function _(c){const g=c.startsWith("[")&&c.endsWith("]");g&&(c=c.slice(1,-1));const y=c.startsWith("...");return y&&(c=c.slice(3)),{key:c,repeat:y,optional:g}}}(wt)),wt}var Ir;function Lr(){return Ir||(Ir=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,h){for(var m in h)Object.defineProperty(y,m,{enumerable:!0,get:h[m]})}t(e,{getNamedMiddlewareRegex:function(){return g},getNamedRouteRegex:function(){return c},getRouteRegex:function(){return i}});const n=la(),s=Be(),f=ua(),u=or(),a=ma();function d(y,h,m){const v={};let E=1;const w=[];for(const x of(0,u.removeTrailingSlash)(y).slice(1).split("/")){const b=s.INTERCEPTION_ROUTE_MARKERS.find(O=>x.startsWith(O)),j=x.match(a.PARAMETER_PATTERN);if(b&&j&&j[2]){const{key:O,optional:L,repeat:k}=(0,a.parseMatchedParameter)(j[2]);v[O]={pos:E++,repeat:k,optional:L},w.push(`/${(0,f.escapeStringRegexp)(b)}([^/]+?)`)}else if(j&&j[2]){const{key:O,repeat:L,optional:k}=(0,a.parseMatchedParameter)(j[2]);v[O]={pos:E++,repeat:L,optional:k},m&&j[1]&&w.push(`/${(0,f.escapeStringRegexp)(j[1])}`);let N=L?k?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";m&&j[1]&&(N=N.substring(1)),w.push(N)}else w.push(`/${(0,f.escapeStringRegexp)(x)}`);h&&j&&j[3]&&w.push((0,f.escapeStringRegexp)(j[3]))}return{parameterizedRoute:w.join(""),groups:v}}function i(y,{includeSuffix:h=!1,includePrefix:m=!1,excludeOptionalTrailingSlash:v=!1}={}){const{parameterizedRoute:E,groups:w}=d(y,h,m);let x=E;return v||(x+="(?:/)?"),{re:new RegExp(`^${x}$`),groups:w}}function l(){let y=0;return()=>{let h="",m=++y;for(;m>0;)h+=String.fromCharCode(97+(m-1)%26),m=Math.floor((m-1)/26);return h}}function p({interceptionMarker:y,getSafeRouteKey:h,segment:m,routeKeys:v,keyPrefix:E,backreferenceDuplicateKeys:w}){const{key:x,optional:b,repeat:j}=(0,a.parseMatchedParameter)(m);let O=x.replace(/\W/g,"");E&&(O=`${E}${O}`);let L=!1;(O.length===0||O.length>30)&&(L=!0),isNaN(parseInt(O.slice(0,1)))||(L=!0),L&&(O=h());const k=O in v;E?v[O]=`${E}${x}`:v[O]=x;const N=y?(0,f.escapeStringRegexp)(y):"";let A;return k&&w?A=`\\k<${O}>`:j?A=`(?<${O}>.+?)`:A=`(?<${O}>[^/]+?)`,{key:x,pattern:b?`(?:/${N}${A})?`:`/${N}${A}`,cleanedKey:O,optional:b,repeat:j}}function _(y,h,m,v,E,w={names:{},intercepted:{}}){var L,k;const x=l(),b={},j=[],O=[];w=structuredClone(w);for(const N of(0,u.removeTrailingSlash)(y).slice(1).split("/")){const A=s.INTERCEPTION_ROUTE_MARKERS.some(M=>N.startsWith(M)),S=N.match(a.PARAMETER_PATTERN),C=A?S==null?void 0:S[1]:void 0;let F;if(C&&(S!=null&&S[2])?(F=h?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,w.intercepted[S[2]]=C):S!=null&&S[2]&&w.intercepted[S[2]]?F=h?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:F=h?n.NEXT_QUERY_PARAM_PREFIX:void 0,C&&S&&S[2]){const{key:M,pattern:$,cleanedKey:J,repeat:K,optional:B}=p({getSafeRouteKey:x,interceptionMarker:C,segment:S[2],routeKeys:b,keyPrefix:F,backreferenceDuplicateKeys:E});j.push($),O.push(`/${S[1]}:${w.names[M]??J}${K?B?"*":"+":""}`),(L=w.names)[M]??(L[M]=J)}else if(S&&S[2]){v&&S[1]&&(j.push(`/${(0,f.escapeStringRegexp)(S[1])}`),O.push(`/${S[1]}`));const{key:M,pattern:$,cleanedKey:J,repeat:K,optional:B}=p({getSafeRouteKey:x,segment:S[2],routeKeys:b,keyPrefix:F,backreferenceDuplicateKeys:E});let ae=$;v&&S[1]&&(ae=ae.substring(1)),j.push(ae),O.push(`/:${w.names[M]??J}${K?B?"*":"+":""}`),(k=w.names)[M]??(k[M]=J)}else j.push(`/${(0,f.escapeStringRegexp)(N)}`),O.push(`/${N}`);m&&S&&S[3]&&(j.push((0,f.escapeStringRegexp)(S[3])),O.push(S[3]))}return{namedParameterizedRoute:j.join(""),routeKeys:b,pathToRegexpPattern:O.join(""),reference:w}}function c(y,h){const m=_(y,h.prefixRouteKeys,h.includeSuffix??!1,h.includePrefix??!1,h.backreferenceDuplicateKeys??!1,h.reference);let v=m.namedParameterizedRoute;return h.excludeOptionalTrailingSlash||(v+="(?:/)?"),{...i(y,h),namedRegex:`^${v}$`,routeKeys:m.routeKeys,pathToRegexpPattern:m.pathToRegexpPattern,reference:m.reference}}function g(y,h){const{parameterizedRoute:m}=d(y,!1,!1),{catchAll:v=!0}=h;if(m==="/")return{namedRegex:`^/${v?".*":""}$`};const{namedParameterizedRoute:E}=_(y,!1,!1,!1,!1,void 0);return{namedRegex:`^${E}${v?"(?:(/.*)?)":""}$`}}}(Rt)),Rt}var Dr;function ga(){return Dr||(Dr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return s}});const t=Pr(),n=Lr();function s(f,u,a){let d="";const i=(0,n.getRouteRegex)(f),l=i.groups,p=(u!==f?(0,t.getRouteMatcher)(i)(u):"")||a;d=f;const _=Object.keys(l);return _.every(c=>{let g=p[c]||"";const{repeat:y,optional:h}=l[c];let m=`[${y?"...":""}${c}]`;return h&&(m=`${g?"":"/"}[${m}]`),y&&!Array.isArray(g)&&(g=[g]),(h||c in p)&&(d=d.replace(m,y?g.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(g))||"/")})||(d=""),{params:_,result:d}}}(_t)),_t}var Fr;function va(){return Fr||(Fr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return c}});const n=Jt(),s=tr(),f=Qn(),u=qe(),a=ze(),d=fr(),i=aa(),l=ga(),p=Lr(),_=Pr();function c(g,y,h){let m,v=typeof y=="string"?y:(0,s.formatWithValidation)(y);const E=v.match(/^[a-z][a-z0-9+.-]*:\/\//i),w=E?v.slice(E[0].length):v;if((w.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${v}' passed to next/router in page: '${g.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);const b=(0,u.normalizeRepeatedSlashes)(w);v=(E?E[0]:"")+b}if(!(0,d.isLocalURL)(v))return h?[v]:v;try{let b=v.startsWith("#")?g.asPath:g.pathname;if(v.startsWith("?")&&(b=g.asPath,(0,i.isDynamicRoute)(g.pathname))){b=g.pathname;const j=(0,p.getRouteRegex)(g.pathname);(0,_.getRouteMatcher)(j)(g.asPath)||(b=g.asPath)}m=new URL(b,"http://n")}catch{m=new URL("/","http://n")}try{const b=new URL(v,m);b.pathname=(0,a.normalizePathTrailingSlash)(b.pathname);let j="";if((0,i.isDynamicRoute)(b.pathname)&&b.searchParams&&h){const L=(0,n.searchParamsToUrlQuery)(b.searchParams),{result:k,params:N}=(0,l.interpolateAs)(b.pathname,b.pathname,L);k&&(j=(0,s.formatWithValidation)({pathname:k,hash:b.hash,query:(0,f.omit)(L,N)}))}const O=b.origin===m.origin?b.href.slice(b.origin.length):b.href;return h?[O,j||O]:O}catch{return h?[v]:v}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Fe,Fe.exports)),Fe.exports}var He={exports:{}},Mt={},It={},qr;function Ur(){return qr||(qr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=lt();function n(s,f){if(!s.startsWith("/")||!f)return s;const{pathname:u,query:a,hash:d}=(0,t.parsePath)(s);return`${f}${u}${a}${d}`}}(It)),It}var zr;function _a(){return zr||(zr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return s}});const t=Ur(),n=ur();function s(f,u,a,d){if(!u||u===a)return f;const i=f.toLowerCase();return!d&&((0,n.pathHasPrefix)(i,"/api")||(0,n.pathHasPrefix)(i,`/${u.toLowerCase()}`))?f:(0,t.addPathPrefix)(f,`/${u}`)}}(Mt)),Mt}var Xr;function xa(){return Xr||(Xr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return s}});const n=ze(),s=(f,...u)=>process.env.__NEXT_I18N_SUPPORT?(0,n.normalizePathTrailingSlash)(_a().addLocale(f,...u)):f;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(He,He.exports)),He.exports}var Lt={},Dt={},Br;function ya(){if(Br)return Dt;Br=1;function e(t){return t&&t.__esModule?t:{default:t}}return Dt._=e,Dt}var Hr;function ba(){return Hr||(Hr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return s}});const s=ya()._(q).default.createContext(null);process.env.NODE_ENV!=="production"&&(s.displayName="RouterContext")}(Lt)),Lt}var We={exports:{}},Ve={exports:{}},Wr;function Ea(){return Wr||(Wr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(u,a){for(var d in a)Object.defineProperty(u,d,{enumerable:!0,get:a[d]})}n(t,{cancelIdleCallback:function(){return f},requestIdleCallback:function(){return s}});const s=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(u){let a=Date.now();return self.setTimeout(function(){u({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},f=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(u){return clearTimeout(u)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ve,Ve.exports)),Ve.exports}var Vr;function Ra(){return Vr||(Vr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const n=q,s=Ea(),f=typeof IntersectionObserver=="function",u=new Map,a=[];function d(p){const _={root:p.root||null,margin:p.rootMargin||""},c=a.find(m=>m.root===_.root&&m.margin===_.margin);let g;if(c&&(g=u.get(c),g))return g;const y=new Map,h=new IntersectionObserver(m=>{m.forEach(v=>{const E=y.get(v.target),w=v.isIntersecting||v.intersectionRatio>0;E&&w&&E(w)})},p);return g={id:_,observer:h,elements:y},a.push(_),u.set(_,g),g}function i(p,_,c){const{id:g,observer:y,elements:h}=d(c);return h.set(p,_),y.observe(p),function(){if(h.delete(p),y.unobserve(p),h.size===0){y.disconnect(),u.delete(g);const v=a.findIndex(E=>E.root===g.root&&E.margin===g.margin);v>-1&&a.splice(v,1)}}}function l({rootRef:p,rootMargin:_,disabled:c}){const g=c||!f,[y,h]=(0,n.useState)(!1),m=(0,n.useRef)(null),v=(0,n.useCallback)(w=>{m.current=w},[]);(0,n.useEffect)(()=>{if(f){if(g||y)return;const w=m.current;if(w&&w.tagName)return i(w,b=>b&&h(b),{root:p==null?void 0:p.current,rootMargin:_})}else if(!y){const w=(0,s.requestIdleCallback)(()=>h(!0));return()=>(0,s.cancelIdleCallback)(w)}},[g,_,p,y,m.current]);const E=(0,n.useCallback)(()=>{h(!1)},[]);return[v,y,E]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(We,We.exports)),We.exports}var Ge={exports:{}},$e={exports:{}},Ft={},Gr;function Na(){return Gr||(Gr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const t=new WeakMap;function n(s,f){if(!f)return{pathname:s};let u=t.get(f);u||(u=f.map(p=>p.toLowerCase()),t.set(f,u));let a;const d=s.split("/",2);if(!d[1])return{pathname:s};const i=d[1].toLowerCase(),l=u.indexOf(i);return l<0?{pathname:s}:(a=f[l],s=s.slice(a.length+1)||"/",{pathname:s,detectedLocale:a})}}(Ft)),Ft}var $r;function Pa(){return $r||($r=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(s,f)=>process.env.__NEXT_I18N_SUPPORT?Na().normalizeLocalePath(s,f):{pathname:s,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}($e,$e.exports)),$e.exports}var Ye={exports:{}},qt={},Yr;function wa(){return Yr||(Yr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(n,s,f){var u,a;if(n){f&&(f=f.toLowerCase());for(const d of n){const i=(u=d.domain)==null?void 0:u.split(":",1)[0].toLowerCase();if(s===i||f===d.defaultLocale.toLowerCase()||(a=d.locales)!=null&&a.some(l=>l.toLowerCase()===f))return d}}}}(qt)),qt}var Kr;function ja(){return Kr||(Kr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=(...s)=>{if(process.env.__NEXT_I18N_SUPPORT)return wa().detectDomainLocale(...s)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ye,Ye.exports)),Ye.exports}var Zr;function Oa(){return Zr||(Zr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return f}});const n=ze(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function f(u,a,d,i){if(process.env.__NEXT_I18N_SUPPORT){const l=Pa().normalizeLocalePath,p=ja().detectDomainLocale,_=a||l(u,d).detectedLocale,c=p(i,void 0,_);if(c){const g=`http${c.http?"":"s"}://`,y=_===c.defaultLocale?"":`/${_}`;return`${g}${c.domain}${(0,n.normalizePathTrailingSlash)(`${s}${y}${u}`)}`}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ge,Ge.exports)),Ge.exports}var Ke={exports:{}},Qr;function Ta(){return Qr||(Qr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return u}});const n=Ur(),s=ze(),f=process.env.__NEXT_ROUTER_BASEPATH||"";function u(a,d){return(0,s.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!d?a:(0,n.addPathPrefix)(a,f))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ke,Ke.exports)),Ke.exports}var Ze={exports:{}},Jr;function Sa(){return Jr||(Jr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return s}});const n=q;function s(u,a){const d=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(l=>{if(l===null){const p=d.current;p&&(d.current=null,p());const _=i.current;_&&(i.current=null,_())}else u&&(d.current=f(u,l)),a&&(i.current=f(a,l))},[u,a])}function f(u,a){if(typeof u=="function"){const d=u(a);return typeof d=="function"?d:()=>u(null)}else return u.current=a,()=>{u.current=null}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ze,Ze.exports)),Ze.exports}var Ut={},en;function Aa(){return en||(en=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"errorOnce",{enumerable:!0,get:function(){return t}});let t=n=>{};if(process.env.NODE_ENV!=="production"){const n=new Set;t=s=>{n.has(s)||console.error(s),n.add(s)}}}(Ut)),Ut}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function n(N,A){for(var S in A)Object.defineProperty(N,S,{enumerable:!0,get:A[S]})}n(t,{default:function(){return k},useLinkStatus:function(){return L}});const s=tt,f=r,u=s._(q),a=va(),d=fr(),i=tr(),l=qe(),p=xa(),_=ba(),c=Ra(),g=Oa(),y=Ta(),h=Sa(),m=Aa(),v=new Set;function E(N,A,S,C){if(!(typeof window>"u")&&(0,d.isLocalURL)(A)){if(!C.bypassPrefetchedCheck){const F=typeof C.locale<"u"?C.locale:"locale"in N?N.locale:void 0,M=A+"%"+S+"%"+F;if(v.has(M))return;v.add(M)}N.prefetch(A,S,C).catch(F=>{if(process.env.NODE_ENV!=="production")throw F})}}function w(N){const S=N.currentTarget.getAttribute("target");return S&&S!=="_self"||N.metaKey||N.ctrlKey||N.shiftKey||N.altKey||N.nativeEvent&&N.nativeEvent.which===2}function x(N,A,S,C,F,M,$,J,K){const{nodeName:B}=N.currentTarget;if(B.toUpperCase()==="A"&&w(N)||N.currentTarget.hasAttribute("download"))return;if(!(0,d.isLocalURL)(S)){F&&(N.preventDefault(),location.replace(S));return}N.preventDefault(),(()=>{if(K){let se=!1;if(K({preventDefault:()=>{se=!0}}),se)return}const ee=$??!0;"beforePopState"in A?A[F?"replace":"push"](S,C,{shallow:M,locale:J,scroll:ee}):A[F?"replace":"push"](C||S,{scroll:ee})})()}function b(N){return typeof N=="string"?N:(0,i.formatUrl)(N)}const j=u.default.forwardRef(function(A,S){let C;const{href:F,as:M,children:$,prefetch:J=null,passHref:K,replace:B,shallow:ae,scroll:ue,locale:ee,onClick:se,onNavigate:oe,onMouseEnter:Z,onTouchStart:ie,legacyBehavior:te=!1,...ve}=A;C=$,te&&(typeof C=="string"||typeof C=="number")&&(C=(0,f.jsx)("a",{children:C}));const z=u.default.useContext(_.RouterContext),_e=J!==!1;if(process.env.NODE_ENV!=="production"){let G=function(U){return Object.defineProperty(new Error(`Failed prop type: The prop \`${U.key}\` expects a ${U.expected} in \`<Link>\`, but got \`${U.actual}\` instead.`+(typeof window<"u"?`
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`),"__NEXT_ERROR_CODE",{value:"E209",enumerable:!1,configurable:!0});const xe=te?Q&&typeof Q=="object"&&Q.ref:S,[Re,Ne,ye]=(0,c.useIntersection)({rootMargin:"200px"}),Ie=u.default.useCallback(G=>{(Oe.current!==le||je.current!==pe)&&(ye(),Oe.current=le,je.current=pe),Re(G)},[le,pe,ye,Re]),Le=(0,h.useMergedRef)(Ie,xe);u.default.useEffect(()=>{process.env.NODE_ENV==="production"&&z&&(!Ne||!_e||E(z,pe,le,{locale:ee}))},[le,pe,Ne,ee,_e,z==null?void 0:z.locale,z]);const W={ref:Le,onClick(G){if(process.env.NODE_ENV!=="production"&&!G)throw Object.defineProperty(new Error('Component rendered inside next/link has to pass click event to "onClick" prop.'),"__NEXT_ERROR_CODE",{value:"E312",enumerable:!1,configurable:!0});!te&&typeof se=="function"&&se(G),te&&Q.props&&typeof Q.props.onClick=="function"&&Q.props.onClick(G),z&&(G.defaultPrevented||x(G,z,pe,le,B,ae,ue,ee,oe))},onMouseEnter(G){!te&&typeof Z=="function"&&Z(G),te&&Q.props&&typeof Q.props.onMouseEnter=="function"&&Q.props.onMouseEnter(G),z&&E(z,pe,le,{locale:ee,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:process.env.__NEXT_LINK_NO_TOUCH_START?void 0:function(me){!te&&typeof ie=="function"&&ie(me),te&&Q.props&&typeof Q.props.onTouchStart=="function"&&Q.props.onTouchStart(me),z&&E(z,pe,le,{locale:ee,priority:!0,bypassPrefetchedCheck:!0})}};if((0,l.isAbsoluteUrl)(le))W.href=le;else if(!te||K||Q.type==="a"&&!("href"in Q.props)){const G=typeof ee<"u"?ee:z==null?void 0:z.locale,me=(z==null?void 0:z.isLocaleDomain)&&(0,g.getDomainLocale)(le,G,z==null?void 0:z.locales,z==null?void 0:z.domainLocales);W.href=me||(0,y.addBasePath)((0,p.addLocale)(le,G,z==null?void 0:z.defaultLocale))}return te?(process.env.NODE_ENV==="development"&&(0,m.errorOnce)(`\`legacyBehavior\` is deprecated and will be removed in a future release. A codemod is available to upgrade your components:
|
|
30
|
+
<%s key={someKey} {...props} />`,ya,Nt,Gh,Nt),Yl[Nt+ya]=!0}}return x===n?Bh(Ee):Hh(Ee),Ee}}function Wh(x,I,W){return Kl(x,I,W,!0)}function Uh(x,I,W){return Kl(x,I,W,!1)}var Vh=Uh,qh=Wh;Yt.Fragment=n,Yt.jsx=Vh,Yt.jsxs=qh}()),Yt}process.env.NODE_ENV==="production"?yn.exports=eu():yn.exports=tu();var y=yn.exports;const ru=typeof document<"u"?f.useLayoutEffect:()=>{},at=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ht=e=>e&&"window"in e&&e.window===e?e:at(e).defaultView||window;function nu(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function ou(e){return nu(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let au=!1;function En(){return au}function _a(e,t){if(!En())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:ou(r)?r=r.host:r=r.parentNode}return!1}const xn=(e=document)=>{var t;if(!En())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function Pa(e){return En()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function iu(e){if(su())e.focus({preventScroll:!0});else{let t=lu(e);e.focus(),uu(t)}}let br=null;function su(){if(br==null){br=!1;try{document.createElement("div").focus({get preventScroll(){return br=!0,!0}})}catch{}}return br}function lu(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function uu(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function yr(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function wn(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ze(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Kt=Ze(function(){return wn(/^Mac/i)}),cu=Ze(function(){return wn(/^iPhone/i)}),Sa=Ze(function(){return wn(/^iPad/i)||Kt()&&navigator.maxTouchPoints>1}),du=Ze(function(){return cu()||Sa()});Ze(function(){return Kt()||du()});const fu=Ze(function(){return yr(/AppleWebKit/i)&&!pu()}),pu=Ze(function(){return yr(/Chrome/i)}),mu=Ze(function(){return yr(/Android/i)}),hu=Ze(function(){return yr(/Firefox/i)});function Qt(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}=t;hu()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Kt()?a=!0:i=!0);let c=fu()&&Kt()&&!Sa()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Qt.isOpening=r,iu(e),e.dispatchEvent(c),Qt.isOpening=!1}Qt.isOpening=!1;function Ta(){let e=f.useRef(new Map),t=f.useCallback((o,a,i,s)=>{let l=s!=null&&s.once?(...c)=>{e.current.delete(i),i(...c)}:i;e.current.set(i,{type:a,eventTarget:o,fn:l,options:s}),o.addEventListener(a,l,s)},[]),r=f.useCallback((o,a,i,s)=>{var l;let c=((l=e.current.get(i))===null||l===void 0?void 0:l.fn)||i;o.removeEventListener(a,c,s),e.current.delete(i)},[]),n=f.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function gu(e){return e.pointerType===""&&e.isTrusted?!0:mu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Oa(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function vu(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Na(e){let t=f.useRef({isFocused:!1,observer:null});return ru(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),f.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=a=>{if(t.current.isFocused=!1,n.disabled){let i=Oa(a);e==null||e(i)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let i=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let bu=!1,Zt=null,_n=new Set,Jt=new Map,gt=!1,Pn=!1;const yu={Tab:!0,Escape:!0};function Sn(e,t){for(let r of _n)r(e,t)}function Eu(e){return!(e.metaKey||!Kt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Er(e){gt=!0,!Qt.isOpening&&Eu(e)&&(Zt="keyboard",Sn("keyboard",e))}function De(e){Zt="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(gt=!0,Sn("pointer",e))}function Ca(e){!Qt.isOpening&&gu(e)&&(gt=!0,Zt="virtual")}function Ra(e){e.target===window||e.target===document||bu||!e.isTrusted||(!gt&&!Pn&&(Zt="virtual",Sn("virtual",e)),gt=!1,Pn=!1)}function Aa(){gt=!1,Pn=!0}function Tn(e){if(typeof window>"u"||typeof document>"u"||Jt.get(ht(e)))return;const t=ht(e),r=at(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){gt=!0,n.apply(this,arguments)},r.addEventListener("keydown",Er,!0),r.addEventListener("keyup",Er,!0),r.addEventListener("click",Ca,!0),t.addEventListener("focus",Ra,!0),t.addEventListener("blur",Aa,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",De,!0),r.addEventListener("pointermove",De,!0),r.addEventListener("pointerup",De,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",De,!0),r.addEventListener("mousemove",De,!0),r.addEventListener("mouseup",De,!0)),t.addEventListener("beforeunload",()=>{ja(e)},{once:!0}),Jt.set(t,{focus:n})}const ja=(e,t)=>{const r=ht(e),n=at(e);t&&n.removeEventListener("DOMContentLoaded",t),Jt.has(r)&&(r.HTMLElement.prototype.focus=Jt.get(r).focus,n.removeEventListener("keydown",Er,!0),n.removeEventListener("keyup",Er,!0),n.removeEventListener("click",Ca,!0),r.removeEventListener("focus",Ra,!0),r.removeEventListener("blur",Aa,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",De,!0),n.removeEventListener("pointermove",De,!0),n.removeEventListener("pointerup",De,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",De,!0),n.removeEventListener("mousemove",De,!0),n.removeEventListener("mouseup",De,!0)),Jt.delete(r))};function xu(e){const t=at(e);let r;return t.readyState!=="loading"?Tn(e):(r=()=>{Tn(e)},t.addEventListener("DOMContentLoaded",r)),()=>ja(e,r)}typeof document<"u"&&xu();function ka(){return Zt!=="pointer"}const wu=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _u(e,t,r){let n=at(r==null?void 0:r.target);const o=typeof window<"u"?ht(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?ht(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?ht(r==null?void 0:r.target).HTMLElement:HTMLElement,s=typeof window<"u"?ht(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!wu.has(n.activeElement.type)||n.activeElement instanceof a||n.activeElement instanceof i&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof s&&!yu[r.key])}function Pu(e,t,r){Tn(),f.useEffect(()=>{let n=(o,a)=>{_u(!!(r!=null&&r.isTextInput),o,a)&&e(ka())};return _n.add(n),()=>{_n.delete(n)}},t)}function Su(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const a=f.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),i=Na(a),s=f.useCallback(l=>{const c=at(l.target),u=c?xn(c):xn();l.target===l.currentTarget&&u===Pa(l.nativeEvent)&&(r&&r(l),o&&o(!0),i(l))},[o,r,i]);return{focusProps:{onFocus:!t&&(r||o||n)?s:void 0,onBlur:!t&&(n||o)?a:void 0}}}function Tu(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=f.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:s}=Ta(),l=f.useCallback(h=>{h.currentTarget.contains(h.target)&&a.current.isFocusWithin&&!h.currentTarget.contains(h.relatedTarget)&&(a.current.isFocusWithin=!1,s(),r&&r(h),o&&o(!1))},[r,o,a,s]),c=Na(l),u=f.useCallback(h=>{if(!h.currentTarget.contains(h.target))return;const d=at(h.target),p=xn(d);if(!a.current.isFocusWithin&&p===Pa(h.nativeEvent)){n&&n(h),o&&o(!0),a.current.isFocusWithin=!0,c(h);let g=h.currentTarget;i(d,"focus",m=>{if(a.current.isFocusWithin&&!_a(g,m.target)){let v=new d.defaultView.FocusEvent("blur",{relatedTarget:m.target});vu(v,g);let b=Oa(v);l(b)}},{capture:!0})}},[n,o,c,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let xr=!1,wr=0;function On(){xr=!0,setTimeout(()=>{xr=!1},50)}function Ia(e){e.pointerType==="touch"&&On()}function Ou(){if(!(typeof document>"u"))return wr===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Ia):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",On)),wr++,()=>{wr--,!(wr>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ia):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",On))}}function Nn(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[a,i]=f.useState(!1),s=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(Ou,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=Ta(),{hoverProps:u,triggerHoverEnd:h}=f.useMemo(()=>{let d=(m,v)=>{if(s.pointerType=v,o||v==="touch"||s.isHovered||!m.currentTarget.contains(m.target))return;s.isHovered=!0;let b=m.currentTarget;s.target=b,l(at(m.target),"pointerover",E=>{s.isHovered&&s.target&&!_a(s.target,E.target)&&p(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:v}),r&&r(!0),i(!0)},p=(m,v)=>{let b=s.target;s.pointerType="",s.target=null,!(v==="touch"||!s.isHovered||!b)&&(s.isHovered=!1,c(),n&&n({type:"hoverend",target:b,pointerType:v}),r&&r(!1),i(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=m=>{xr&&m.pointerType==="mouse"||d(m,m.pointerType)},g.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,m.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=m=>{!s.ignoreEmulatedMouseEvents&&!xr&&d(m,"mouse"),s.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,"mouse")}),{hoverProps:g,triggerHoverEnd:p}},[t,r,n,o,s,l,c]);return f.useEffect(()=>{o&&h({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:u,isHovered:a}}function Cn(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||ka()}),[a,i]=f.useState(!1),[s,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(p=>{o.current.isFocused=p,i(p),c()},[c]);Pu(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:r});let{focusProps:h}=Su({isDisabled:n,onFocusChange:u}),{focusWithinProps:d}=Tu({isDisabled:!n,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:n?d:h}}var Nu=Object.defineProperty,Cu=(e,t,r)=>t in e?Nu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rn=(e,t,r)=>(Cu(e,typeof t!="symbol"?t+"":t,r),r);let Ru=class{constructor(){Rn(this,"current",this.detect()),Rn(this,"handoffState","pending"),Rn(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ge=new Ru;function Je(e){var t;return Ge.isServer?null:e==null?document:(t=e==null?void 0:e.ownerDocument)!=null?t:document}function it(e){var t,r;return Ge.isServer?null:e==null?document:(r=(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))!=null?r:document}function st(e){var t,r;return(r=(t=it(e))==null?void 0:t.activeElement)!=null?r:null}function $a(e){return st(e)===e}function _r(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Re(){let e=[],t={addEventListener(r,n,o,a){return r.addEventListener(n,o,a),t.add(()=>r.removeEventListener(n,o,a))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return _r(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let a=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:a})})},group(r){let n=Re();return r(n),this.add(()=>n.dispose())},add(r){return e.includes(r)||e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function vt(){let[e]=f.useState(Re);return f.useEffect(()=>()=>e.dispose(),[e]),e}let ce=(e,t)=>{Ge.isServer?f.useEffect(e,t):f.useLayoutEffect(e,t)};function et(e){let t=f.useRef(e);return ce(()=>{t.current=e},[e]),t}let H=function(e){let t=et(e);return f.useCallback((...r)=>t.current(...r),[t])};function Au(e){let t=e.width/2,r=e.height/2;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function ju(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function An({disabled:e=!1}={}){let t=f.useRef(null),[r,n]=f.useState(!1),o=vt(),a=H(()=>{t.current=null,n(!1),o.dispose()}),i=H(s=>{if(o.dispose(),t.current===null){t.current=s.currentTarget,n(!0);{let l=Je(s.currentTarget);o.addEventListener(l,"pointerup",a,!1),o.addEventListener(l,"pointermove",c=>{if(t.current){let u=Au(c);n(ju(u,t.current.getBoundingClientRect()))}},!1),o.addEventListener(l,"pointercancel",a,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:i,onPointerUp:a,onClick:a}}}function we(e){return f.useMemo(()=>e,Object.values(e))}let ku=f.createContext(void 0);function Ma(){return f.useContext(ku)}function jn(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function ve(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ve),n}var Fe=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Fe||{}),lt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(lt||{});function se(){let e=$u();return f.useCallback(t=>Iu({mergeRefs:e,...t}),[e])}function Iu({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:a=!0,name:i,mergeRefs:s}){s=s??Mu;let l=La(t,e);if(a)return Pr(l,r,n,i,s);let c=o??0;if(c&2){let{static:u=!1,...h}=l;if(u)return Pr(h,r,n,i,s)}if(c&1){let{unmount:u=!0,...h}=l;return ve(u?0:1,{0(){return null},1(){return Pr({...h,hidden:!0,style:{display:"none"}},r,n,i,s)}})}return Pr(l,r,n,i,s)}function Pr(e,t={},r,n,o){let{as:a=r,children:i,refName:s="ref",...l}=kn(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},u=typeof i=="function"?i(t):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let h={};if(t){let d=!1,p=[];for(let[g,m]of Object.entries(t))typeof m=="boolean"&&(d=!0),m===!0&&p.push(g.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(d){h["data-headlessui-state"]=p.join(" ");for(let g of p)h[`data-${g}`]=""}}if(Ct(a)&&(Object.keys(yt(l)).length>0||Object.keys(yt(h)).length>0))if(!f.isValidElement(u)||Array.isArray(u)&&u.length>1||Du(u)){if(Object.keys(yt(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(yt(l)).concat(Object.keys(yt(h))).map(d=>` - ${d}`).join(`
|
|
31
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
|
|
32
|
+
`)].join(`
|
|
33
|
+
`))}else{let d=u.props,p=d==null?void 0:d.className,g=typeof p=="function"?(...b)=>jn(p(...b),l.className):jn(p,l.className),m=g?{className:g}:{},v=La(u.props,yt(kn(l,["ref"])));for(let b in h)b in v&&delete h[b];return f.cloneElement(u,Object.assign({},v,h,c,{ref:o(Lu(u),c.ref)},m))}return f.createElement(a,Object.assign({},kn(l,["ref"]),!Ct(a)&&c,!Ct(a)&&h),u)}function $u(){let e=f.useRef([]),t=f.useCallback(r=>{for(let n of e.current)n!=null&&(typeof n=="function"?n(r):n.current=r)},[]);return(...r)=>{if(!r.every(n=>n==null))return e.current=r,t}}function Mu(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function La(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];if(t.disabled||t["aria-disabled"])for(let n in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(n)&&(r[n]=[o=>{var a;return(a=o==null?void 0:o.preventDefault)==null?void 0:a.call(o)}]);for(let n in r)Object.assign(t,{[n](o,...a){let i=r[n];for(let s of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...a)}}});return t}function bt(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];for(let n in r)Object.assign(t,{[n](...o){let a=r[n];for(let i of a)i==null||i(...o)}});return t}function re(e){var t;return Object.assign(f.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function yt(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function kn(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function Lu(e){return f.version.split(".")[0]>="19"?e.props.ref:e.ref}function Ct(e){return e===f.Fragment||e===Symbol.for("react.fragment")}function Du(e){return Ct(e.type)}let Fu="span";var Et=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Et||{});function Hu(e,t){var r;let{features:n=1,...o}=e,a={ref:t,"aria-hidden":(n&2)===2?!0:(r=o["aria-hidden"])!=null?r:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return se()({ourProps:a,theirProps:o,slot:{},defaultTag:Fu,name:"Hidden"})}let Rt=re(Hu),Bu=f.createContext(void 0);function Wu(){return f.useContext(Bu)}function Da(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function tt(e){return Da(e)&&"tagName"in e}function Se(e){return tt(e)&&"accessKey"in e}function Ie(e){return tt(e)&&"tabIndex"in e}function Uu(e){return tt(e)&&"style"in e}function Vu(e){return Se(e)&&e.nodeName==="IFRAME"}function Fa(e){return Se(e)&&e.nodeName==="INPUT"}function Ha(e){return Se(e)&&e.nodeName==="LABEL"}function qu(e){return Se(e)&&e.nodeName==="FIELDSET"}function Ba(e){return Se(e)&&e.nodeName==="LEGEND"}function Gu(e){return tt(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function er(e){let t=e.parentElement,r=null;for(;t&&!qu(t);)Ba(t)&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&zu(r)?!1:n}function zu(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(Ba(t))return!1;t=t.previousElementSibling}return!0}let Wa=Symbol();function In(e,t=!0){return Object.assign(e,{[Wa]:t})}function fe(...e){let t=f.useRef(e);f.useEffect(()=>{t.current=e},[e]);let r=H(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[Wa]))?void 0:r}let $n=f.createContext(null);$n.displayName="DescriptionContext";function Ua(){let e=f.useContext($n);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Ua),t}return e}function Va(){let[e,t]=f.useState([]);return[e.length>0?e.join(" "):void 0,f.useMemo(()=>function(r){let n=H(a=>(t(i=>[...i,a]),()=>t(i=>{let s=i.slice(),l=s.indexOf(a);return l!==-1&&s.splice(l,1),s}))),o=f.useMemo(()=>({register:n,slot:r.slot,name:r.name,props:r.props,value:r.value}),[n,r.slot,r.name,r.props,r.value]);return f.createElement($n.Provider,{value:o},r.children)},[t])]}let Xu="p";function Yu(e,t){let r=f.useId(),n=Ma(),{id:o=`headlessui-description-${r}`,...a}=e,i=Ua(),s=fe(t);ce(()=>i.register(o),[o,i.register]);let l=we({...i.slot,disabled:n||!1}),c={ref:s,...i.props,id:o};return se()({ourProps:c,theirProps:a,slot:l,defaultTag:Xu,name:i.name||"Description"})}let Ku=re(Yu),Qu=Object.assign(Ku,{});var oe=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(oe||{});let Sr=f.createContext(null);Sr.displayName="LabelContext";function Mn(){let e=f.useContext(Sr);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Mn),t}return e}function Zu(e){var t,r,n;let o=(r=(t=f.useContext(Sr))==null?void 0:t.value)!=null?r:void 0;return((n=void 0)!=null?n:0)>0?[o,...e].filter(Boolean).join(" "):o}function qa({inherit:e=!1}={}){let t=Zu(),[r,n]=f.useState([]),o=e?[t,...r].filter(Boolean):r;return[o.length>0?o.join(" "):void 0,f.useMemo(()=>function(a){let i=H(l=>(n(c=>[...c,l]),()=>n(c=>{let u=c.slice(),h=u.indexOf(l);return h!==-1&&u.splice(h,1),u}))),s=f.useMemo(()=>({register:i,slot:a.slot,name:a.name,props:a.props,value:a.value}),[i,a.slot,a.name,a.props,a.value]);return f.createElement(Sr.Provider,{value:s},a.children)},[n])]}let Ju="label";function ec(e,t){var r;let n=f.useId(),o=Mn(),a=Wu(),i=Ma(),{id:s=`headlessui-label-${n}`,htmlFor:l=a??((r=o.props)==null?void 0:r.htmlFor),passive:c=!1,...u}=e,h=fe(t);ce(()=>o.register(s),[s,o.register]);let d=H(m=>{let v=m.currentTarget;if(!(m.target!==m.currentTarget&&Gu(m.target))&&(Ha(v)&&m.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(m),Ha(v))){let b=document.getElementById(v.htmlFor);if(b){let E=b.getAttribute("disabled");if(E==="true"||E==="")return;let w=b.getAttribute("aria-disabled");if(w==="true"||w==="")return;(Fa(b)&&(b.type==="file"||b.type==="radio"||b.type==="checkbox")||b.role==="radio"||b.role==="checkbox"||b.role==="switch")&&b.click(),b.focus({preventScroll:!0})}}}),p=we({...o.slot,disabled:i||!1}),g={ref:h,...o.props,id:s,htmlFor:l,onClick:d};return c&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in u&&delete u.onClick),se()({ourProps:g,theirProps:u,slot:p,defaultTag:l?Ju:"div",name:o.name||"Label"})}let tc=re(ec);Object.assign(tc,{});let rc=f.createContext(()=>{});function Tr({value:e,children:t}){return f.createElement(rc.Provider,{value:e},t)}function Ga(e){if(e===null)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}function za(e,t,r=!1){let[n,o]=f.useState(()=>Ga(t));return ce(()=>{if(!t||!e)return;let a=Re();return a.requestAnimationFrame(function i(){a.requestAnimationFrame(i),o(s=>{let l=Ga(t);return l.width===s.width&&l.height===s.height?s:l})}),()=>{a.dispose()}},[t,e]),r?{width:`${n.width}px`,height:`${n.height}px`}:n}var Xa=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Xa||{});function nc(e){let t=f.useRef(null),r=H(o=>{t.current=o.pointerType,!er(o.currentTarget)&&o.pointerType==="mouse"&&o.button===Xa.Left&&(o.preventDefault(),e(o))}),n=H(o=>{t.current!=="mouse"&&(er(o.currentTarget)||e(o))});return{onPointerDown:r,onClick:n}}let Ya=class extends Map{constructor(t){super(),this.factory=t}get(t){let r=super.get(t);return r===void 0&&(r=this.factory(t),this.set(t,r)),r}};var oc=Object.defineProperty,ac=(e,t,r)=>t in e?oc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ic=(e,t,r)=>(ac(e,t+"",r),r),Ka=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},He=(e,t,r)=>(Ka(e,t,"read from private field"),r?r.call(e):t.get(e)),Ln=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Qa=(e,t,r,n)=>(Ka(e,t,"write to private field"),t.set(e,r),r),ze,tr,rr;let Dn=class{constructor(t){Ln(this,ze,{}),Ln(this,tr,new Ya(()=>new Set)),Ln(this,rr,new Set),ic(this,"disposables",Re()),Qa(this,ze,t),Ge.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return He(this,ze)}subscribe(t,r){if(Ge.isServer)return()=>{};let n={selector:t,callback:r,current:t(He(this,ze))};return He(this,rr).add(n),this.disposables.add(()=>{He(this,rr).delete(n)})}on(t,r){return Ge.isServer?()=>{}:(He(this,tr).get(t).add(r),this.disposables.add(()=>{He(this,tr).get(t).delete(r)}))}send(t){let r=this.reduce(He(this,ze),t);if(r!==He(this,ze)){Qa(this,ze,r);for(let n of He(this,rr)){let o=n.selector(He(this,ze));Za(n.current,o)||(n.current=o,n.callback(o))}for(let n of He(this,tr).get(t.type))n(He(this,ze),t)}}};ze=new WeakMap,tr=new WeakMap,rr=new WeakMap;function Za(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Fn(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Fn(e.entries(),t.entries()):Ja(e)&&Ja(t)?Fn(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Fn(e,t){do{let r=e.next(),n=t.next();if(r.done&&n.done)return!0;if(r.done||n.done||!Object.is(r.value,n.value))return!1}while(!0)}function Ja(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function ei(e){let[t,r]=e(),n=Re();return(...o)=>{t(...o),n.dispose(),n.microTask(r)}}var sc=Object.defineProperty,lc=(e,t,r)=>t in e?sc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ti=(e,t,r)=>(lc(e,typeof t!="symbol"?t+"":t,r),r),ri=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(ri||{});let uc={0(e,t){let r=t.id,n=e.stack,o=e.stack.indexOf(r);if(o!==-1){let a=e.stack.slice();return a.splice(o,1),a.push(r),n=a,{...e,stack:n}}return{...e,stack:[...e.stack,r]}},1(e,t){let r=t.id,n=e.stack.indexOf(r);if(n===-1)return e;let o=e.stack.slice();return o.splice(n,1),{...e,stack:o}}},cc=class Ql extends Dn{constructor(){super(...arguments),ti(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),ti(this,"selectors",{isTop:(t,r)=>t.stack[t.stack.length-1]===r,inStack:(t,r)=>t.stack.includes(r)})}static new(){return new Ql({stack:[]})}reduce(t,r){return ve(r.type,uc,t,r)}};const nr=new Ya(()=>cc.new());var Hn={exports:{}},Bn={};/**
|
|
34
|
+
* @license React
|
|
35
|
+
* use-sync-external-store-with-selector.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var ni;function dc(){if(ni)return Bn;ni=1;var e=f;function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,a=e.useEffect,i=e.useMemo,s=e.useDebugValue;return Bn.useSyncExternalStoreWithSelector=function(l,c,u,h,d){var p=o(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=i(function(){function v(P){if(!b){if(b=!0,E=P,P=h(P),d!==void 0&&g.hasValue){var O=g.value;if(d(O,P))return w=O}return w=P}if(O=w,r(E,P))return O;var N=h(P);return d!==void 0&&d(O,N)?(E=P,O):(E=P,w=N)}var b=!1,E,w,_=u===void 0?null:u;return[function(){return v(c())},_===null?void 0:function(){return v(_())}]},[c,u,h,d]);var m=n(l,p[0],p[1]);return a(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},Bn}var Wn={};/**
|
|
42
|
+
* @license React
|
|
43
|
+
* use-sync-external-store-with-selector.development.js
|
|
44
|
+
*
|
|
45
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the MIT license found in the
|
|
48
|
+
* LICENSE file in the root directory of this source tree.
|
|
49
|
+
*/var oi;function fc(){return oi||(oi=1,process.env.NODE_ENV!=="production"&&function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=f,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,a=t.useEffect,i=t.useMemo,s=t.useDebugValue;Wn.useSyncExternalStoreWithSelector=function(l,c,u,h,d){var p=o(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=i(function(){function v(P){if(!b){if(b=!0,E=P,P=h(P),d!==void 0&&g.hasValue){var O=g.value;if(d(O,P))return w=O}return w=P}if(O=w,r(E,P))return O;var N=h(P);return d!==void 0&&d(O,N)?(E=P,O):(E=P,w=N)}var b=!1,E,w,_=u===void 0?null:u;return[function(){return v(c())},_===null?void 0:function(){return v(_())}]},[c,u,h,d]);var m=n(l,p[0],p[1]);return a(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Wn}process.env.NODE_ENV==="production"?Hn.exports=dc():Hn.exports=fc();var pc=Hn.exports;function _e(e,t,r=Za){return pc.useSyncExternalStoreWithSelector(H(n=>e.subscribe(mc,n)),H(()=>e.state),H(()=>e.state),H(t),r)}function mc(e){return e}function or(e,t){let r=f.useId(),n=nr.get(t),[o,a]=_e(n,f.useCallback(i=>[n.selectors.isTop(i,r),n.selectors.inStack(i,r)],[n,r]));return ce(()=>{if(e)return n.actions.push(r),()=>n.actions.pop(r)},[n,e,r]),e?a?o:!0:!1}let Un=new Map,ar=new Map;function ai(e){var t;let r=(t=ar.get(e))!=null?t:0;return ar.set(e,r+1),r!==0?()=>ii(e):(Un.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>ii(e))}function ii(e){var t;let r=(t=ar.get(e))!=null?t:1;if(r===1?ar.delete(e):ar.set(e,r-1),r!==1)return;let n=Un.get(e);n&&(n["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,Un.delete(e))}function si(e,{allowed:t,disallowed:r}={}){let n=or(e,"inert-others");ce(()=>{var o,a;if(!n)return;let i=Re();for(let l of(o=r==null?void 0:r())!=null?o:[])l&&i.add(ai(l));let s=(a=t==null?void 0:t())!=null?a:[];for(let l of s){if(!l)continue;let c=Je(l);if(!c)continue;let u=l.parentElement;for(;u&&u!==c.body;){for(let h of u.children)s.some(d=>h.contains(d))||i.add(ai(h));u=u.parentElement}}return i.dispose},[n,t,r])}function Vn(e,t,r){let n=et(o=>{let a=o.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&r()});f.useEffect(()=>{if(!e)return;let o=t===null?null:Se(t)?t:t.current;if(!o)return;let a=Re();if(typeof ResizeObserver<"u"){let i=new ResizeObserver(()=>n.current(o));i.observe(o),a.add(()=>i.disconnect())}if(typeof IntersectionObserver<"u"){let i=new IntersectionObserver(()=>n.current(o));i.observe(o),a.add(()=>i.disconnect())}return()=>a.dispose()},[t,n,e])}let Or=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),hc=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var xe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(xe||{}),At=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(At||{}),gc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(gc||{});function ir(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Or)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}function vc(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(hc)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var Nr=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Nr||{});function Cr(e,t=0){var r;return e===((r=Je(e))==null?void 0:r.body)?!1:ve(t,{0(){return e.matches(Or)},1(){let n=e;for(;n!==null;){if(n.matches(Or))return!0;n=n.parentElement}return!1}})}function li(e){Re().nextFrame(()=>{let t=st(e);t&&Ie(t)&&!Cr(t,0)&&Xe(e)})}var bc=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(bc||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Xe(e){e==null||e.focus({preventScroll:!0})}let yc=["textarea","input"].join(",");function Ec(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,yc))!=null?r:!1}function ui(e,t=r=>r){return e.slice().sort((r,n)=>{let o=t(r),a=t(n);if(o===null||a===null)return 0;let i=o.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function xc(e,t,r=e===null?document.body:it(e)){return $e(ir(r),t,{relativeTo:e})}function $e(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:o=[]}={}){let a=Array.isArray(e)?e.length>0?it(e[0]):document:it(e),i=Array.isArray(e)?r?ui(e):e:t&64?vc(e):ir(e);o.length>0&&i.length>1&&(i=i.filter(p=>!o.some(g=>g!=null&&"current"in g?(g==null?void 0:g.current)===p:g===p))),n=n??(a==null?void 0:a.activeElement);let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(n))-1;if(t&4)return Math.max(0,i.indexOf(n))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},u=0,h=i.length,d;do{if(u>=h||u+h<=0)return 0;let p=l+u;if(t&16)p=(p+h)%h;else{if(p<0)return 3;if(p>=h)return 1}d=i[p],d==null||d.focus(c),u+=s}while(d!==st(d));return t&6&&Ec(d)&&d.select(),2}function ci(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function wc(){return/Android/gi.test(window.navigator.userAgent)}function di(){return ci()||wc()}function jt(e,t,r,n){let o=et(r);f.useEffect(()=>{if(!e)return;function a(i){o.current(i)}return document.addEventListener(t,a,n),()=>document.removeEventListener(t,a,n)},[e,t,n])}function fi(e,t,r,n){let o=et(r);f.useEffect(()=>{if(!e)return;function a(i){o.current(i)}return window.addEventListener(t,a,n),()=>window.removeEventListener(t,a,n)},[e,t,n])}const pi=30;function qn(e,t,r){let n=et(r),o=f.useCallback(function(s,l){if(s.defaultPrevented)return;let c=l(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let u=function h(d){return typeof d=="function"?h(d()):Array.isArray(d)||d instanceof Set?d:[d]}(t);for(let h of u)if(h!==null&&(h.contains(c)||s.composed&&s.composedPath().includes(h)))return;return!Cr(c,Nr.Loose)&&c.tabIndex!==-1&&s.preventDefault(),n.current(s,c)},[n,t]),a=f.useRef(null);jt(e,"pointerdown",s=>{var l,c;di()||(a.current=((c=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:c[0])||s.target)},!0),jt(e,"pointerup",s=>{if(di()||!a.current)return;let l=a.current;return a.current=null,o(s,()=>l)},!0);let i=f.useRef({x:0,y:0});jt(e,"touchstart",s=>{i.current.x=s.touches[0].clientX,i.current.y=s.touches[0].clientY},!0),jt(e,"touchend",s=>{let l={x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY};if(!(Math.abs(l.x-i.current.x)>=pi||Math.abs(l.y-i.current.y)>=pi))return o(s,()=>Ie(s.target)?s.target:null)},!0),fi(e,"blur",s=>o(s,()=>Vu(window.document.activeElement)?window.document.activeElement:null),!0)}function xt(...e){return f.useMemo(()=>Je(...e),[...e])}function _c(...e){return f.useMemo(()=>it(...e),[...e])}var Pc=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(Pc||{});const Rr={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},Sc=200,mi=5;function Tc(e,{trigger:t,action:r,close:n,select:o}){let a=f.useRef(null),i=f.useRef(null),s=f.useRef(null);jt(e&&t!==null,"pointerdown",l=>{Da(l==null?void 0:l.target)&&t!=null&&t.contains(l.target)&&(i.current=l.x,s.current=l.y,a.current=l.timeStamp)}),jt(e&&t!==null,"pointerup",l=>{var c,u;let h=a.current;if(h===null||(a.current=null,!Ie(l.target))||Math.abs(l.x-((c=i.current)!=null?c:l.x))<mi&&Math.abs(l.y-((u=s.current)!=null?u:l.y))<mi)return;let d=r(l);switch(d.kind){case 0:return;case 1:{l.timeStamp-h>Sc&&(o(d.target),n());break}case 2:{n();break}}},{capture:!0})}function Gn(e,t,r,n){let o=et(r);f.useEffect(()=>{e=e??window;function a(i){o.current(i)}return e.addEventListener(t,a,n),()=>e.removeEventListener(t,a,n)},[e,t,n])}function zn(e,t){return f.useMemo(()=>{var r;if(e.type)return e.type;let n=(r=e.as)!=null?r:"button";if(typeof n=="string"&&n.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function Oc(e){return f.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function Nc(e,t){let r=e(),n=new Set;return{getSnapshot(){return r},subscribe(o){return n.add(o),()=>n.delete(o)},dispatch(o,...a){let i=t[o].call(r,...a);i&&(r=i,n.forEach(s=>s()))}}}function Cc(){let e;return{before({doc:t}){var r;let n=t.documentElement,o=(r=t.defaultView)!=null?r:window;e=Math.max(0,o.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,o=Math.max(0,n.clientWidth-n.offsetWidth),a=Math.max(0,e-o);r.style(n,"paddingRight",`${a}px`)}}}function Rc(){return ci()?{before({doc:e,d:t,meta:r}){function n(o){for(let a of r().containers)for(let i of a())if(i.contains(o))return!0;return!1}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=Re();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let a=(o=window.scrollY)!=null?o:window.pageYOffset,i=null;t.addEventListener(e,"click",s=>{if(Ie(s.target))try{let l=s.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),u=e.querySelector(c);Ie(u)&&!n(u)&&(i=u)}catch{}},!0),t.group(s=>{t.addEventListener(e,"touchstart",l=>{if(s.dispose(),Ie(l.target)&&Uu(l.target))if(n(l.target)){let c=l.target;for(;c.parentElement&&n(c.parentElement);)c=c.parentElement;s.style(c,"overscrollBehavior","contain")}else s.style(l.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",s=>{if(Ie(s.target)){if(Fa(s.target))return;if(n(s.target)){let l=s.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let l=(s=window.scrollY)!=null?s:window.pageYOffset;a!==l&&window.scrollTo(0,a),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function Ac(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function hi(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let wt=Nc(()=>new Map,{PUSH(e,t){var r;let n=(r=this.get(e))!=null?r:{doc:e,count:0,d:Re(),meta:new Set,computedMeta:{}};return n.count++,n.meta.add(t),n.computedMeta=hi(n.meta),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t),r.computedMeta=hi(r.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},r=[Rc(),Cc(),Ac()];r.forEach(({before:n})=>n==null?void 0:n(t)),r.forEach(({after:n})=>n==null?void 0:n(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});wt.subscribe(()=>{let e=wt.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let n=t.get(r.doc)==="hidden",o=r.count!==0;(o&&!n||!o&&n)&&wt.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),r.count===0&&wt.dispatch("TEARDOWN",r)}});function jc(e,t,r=()=>({containers:[]})){let n=Oc(wt),o=t?n.get(t):void 0,a=o?o.count>0:!1;return ce(()=>{if(!(!t||!e))return wt.dispatch("PUSH",t,r),()=>wt.dispatch("POP",t,r)},[e,t]),a}function Xn(e,t,r=()=>[document.body]){let n=or(e,"scroll-lock");jc(n,t,o=>{var a;return{containers:[...(a=o.containers)!=null?a:[],r]}})}function gi(e){return[e.screenX,e.screenY]}function kc(){let e=f.useRef([-1,-1]);return{wasMoved(t){let r=gi(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=gi(t)}}}function Ic(e=0){let[t,r]=f.useState(e),n=f.useCallback(l=>r(l),[]),o=f.useCallback(l=>r(c=>c|l),[]),a=f.useCallback(l=>(t&l)===l,[t]),i=f.useCallback(l=>r(c=>c&~l),[]),s=f.useCallback(l=>r(c=>c^l),[]);return{flags:t,setFlag:n,addFlag:o,hasFlag:a,removeFlag:i,toggleFlag:s}}var vi,bi;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((vi=process==null?void 0:process.env)==null?void 0:vi.NODE_ENV)==="test"&&typeof((bi=Element==null?void 0:Element.prototype)==null?void 0:bi.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
50
|
+
`)),[]});var $c=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))($c||{});function sr(e){let t={};for(let r in e)e[r]===!0&&(t[`data-${r}`]="");return t}function lr(e,t,r,n){let[o,a]=f.useState(r),{hasFlag:i,addFlag:s,removeFlag:l}=Ic(e&&o?3:0),c=f.useRef(!1),u=f.useRef(!1),h=vt();return ce(()=>{var d;if(e){if(r&&a(!0),!t){r&&s(3);return}return(d=n==null?void 0:n.start)==null||d.call(n,r),Mc(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(r?(s(3),l(4)):(s(4),l(2)))},run(){u.current?r?(l(3),s(4)):(l(4),s(3)):r?l(1):s(1)},done(){var p;u.current&&Fc(t)||(c.current=!1,l(7),r||a(!1),(p=n==null?void 0:n.end)==null||p.call(n,r))}})}},[e,r,t,h]),e?[o,{closed:i(1),enter:i(2),leave:i(4),transition:i(2)||i(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Mc(e,{prepare:t,run:r,done:n,inFlight:o}){let a=Re();return Dc(e,{prepare:t,inFlight:o}),a.nextFrame(()=>{r(),a.requestAnimationFrame(()=>{a.add(Lc(e,n))})}),a.dispose}function Lc(e,t){var r,n;let o=Re();if(!e)return o.dispose;let a=!1;o.add(()=>{a=!0});let i=(n=(r=e.getAnimations)==null?void 0:r.call(e).filter(s=>s instanceof CSSTransition))!=null?n:[];return i.length===0?(t(),o.dispose):(Promise.allSettled(i.map(s=>s.finished)).then(()=>{a||t()}),o.dispose)}function Dc(e,{inFlight:t,prepare:r}){if(t!=null&&t.current){r();return}let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}function Fc(e){var t,r;return((r=(t=e.getAnimations)==null?void 0:t.call(e))!=null?r:[]).some(n=>n instanceof CSSTransition&&n.playState!=="finished")}function Hc(e,{container:t,accept:r,walk:n}){let o=f.useRef(r),a=f.useRef(n);f.useEffect(()=>{o.current=r,a.current=n},[r,n]),ce(()=>{if(!t||!e)return;let i=Je(t);if(!i)return;let s=o.current,l=a.current,c=Object.assign(h=>s(h),{acceptNode:s}),u=i.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,c,!1);for(;u.nextNode();)l(u.currentNode)},[t,e,o,a])}function Yn(e,t){let r=f.useRef([]),n=H(e);f.useEffect(()=>{let o=[...r.current];for(let[a,i]of t.entries())if(r.current[a]!==i){let s=n(t,o);return r.current=t,s}},[n,...t])}function Ar(){return typeof window<"u"}function kt(e){return yi(e)?(e.nodeName||"").toLowerCase():"#document"}function Me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ye(e){var t;return(t=(yi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yi(e){return Ar()?e instanceof Node||e instanceof Me(e).Node:!1}function Te(e){return Ar()?e instanceof Element||e instanceof Me(e).Element:!1}function Ke(e){return Ar()?e instanceof HTMLElement||e instanceof Me(e).HTMLElement:!1}function Ei(e){return!Ar()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Me(e).ShadowRoot}const Bc=new Set(["inline","contents"]);function ur(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=We(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Bc.has(o)}const Wc=new Set(["table","td","th"]);function Uc(e){return Wc.has(kt(e))}const Vc=[":popover-open",":modal"];function jr(e){return Vc.some(t=>{try{return e.matches(t)}catch{return!1}})}const qc=["transform","translate","scale","rotate","perspective"],Gc=["transform","translate","scale","rotate","perspective","filter"],zc=["paint","layout","strict","content"];function Kn(e){const t=Qn(),r=Te(e)?We(e):e;return qc.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Gc.some(n=>(r.willChange||"").includes(n))||zc.some(n=>(r.contain||"").includes(n))}function Xc(e){let t=ut(e);for(;Ke(t)&&!It(t);){if(Kn(t))return t;if(jr(t))return null;t=ut(t)}return null}function Qn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yc=new Set(["html","body","#document"]);function It(e){return Yc.has(kt(e))}function We(e){return Me(e).getComputedStyle(e)}function kr(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ut(e){if(kt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ei(e)&&e.host||Ye(e);return Ei(t)?t.host:t}function xi(e){const t=ut(e);return It(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ke(t)&&ur(t)?t:xi(t)}function cr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=xi(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=Me(o);if(a){const s=Zn(i);return t.concat(i,i.visualViewport||[],ur(o)?o:[],s&&r?cr(s):[])}return t.concat(o,cr(o,[],r))}function Zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kc(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}const _t=Math.min,Oe=Math.max,dr=Math.round,Ir=Math.floor,Qe=e=>({x:e,y:e}),Qc={left:"right",right:"left",bottom:"top",top:"bottom"},Zc={start:"end",end:"start"};function wi(e,t,r){return Oe(e,_t(t,r))}function $t(e,t){return typeof e=="function"?e(t):e}function ct(e){return e.split("-")[0]}function fr(e){return e.split("-")[1]}function _i(e){return e==="x"?"y":"x"}function Pi(e){return e==="y"?"height":"width"}const Jc=new Set(["top","bottom"]);function rt(e){return Jc.has(ct(e))?"y":"x"}function Si(e){return _i(rt(e))}function ed(e,t,r){r===void 0&&(r=!1);const n=fr(e),o=Si(e),a=Pi(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=$r(i)),[i,$r(i)]}function td(e){const t=$r(e);return[Jn(e),t,Jn(t)]}function Jn(e){return e.replace(/start|end/g,t=>Zc[t])}const Ti=["left","right"],Oi=["right","left"],rd=["top","bottom"],nd=["bottom","top"];function od(e,t,r){switch(e){case"top":case"bottom":return r?t?Oi:Ti:t?Ti:Oi;case"left":case"right":return t?rd:nd;default:return[]}}function ad(e,t,r,n){const o=fr(e);let a=od(ct(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Jn)))),a}function $r(e){return e.replace(/left|right|bottom|top/g,t=>Qc[t])}function id(e){return{top:0,right:0,bottom:0,left:0,...e}}function sd(e){return typeof e!="number"?id(e):{top:e,right:e,bottom:e,left:e}}function Mr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Ni(e,t,r){let{reference:n,floating:o}=e;const a=rt(t),i=Si(t),s=Pi(i),l=ct(t),c=a==="y",u=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,d=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:h};break;case"left":p={x:n.x-o.width,y:h};break;default:p={x:n.x,y:n.y}}switch(fr(t)){case"start":p[i]-=d*(r&&c?-1:1);break;case"end":p[i]+=d*(r&&c?-1:1);break}return p}const ld=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:h}=Ni(c,n,l),d=n,p={},g=0;for(let m=0;m<s.length;m++){const{name:v,fn:b}=s[m],{x:E,y:w,data:_,reset:P}=await b({x:u,y:h,initialPlacement:n,placement:d,strategy:o,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});u=E??u,h=w??h,p={...p,[v]:{...p[v],..._}},P&&g<=50&&(g++,typeof P=="object"&&(P.placement&&(d=P.placement),P.rects&&(c=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:u,y:h}=Ni(c,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:o,middlewareData:p}};async function Lr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=$t(t,e),g=sd(p),v=s[d?h==="floating"?"reference":"floating":h],b=Mr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),E=h==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),_=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},P=Mr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:E,offsetParent:w,strategy:l}):E);return{top:(b.top-P.top+g.top)/_.y,bottom:(P.bottom-b.bottom+g.bottom)/_.y,left:(b.left-P.left+g.left)/_.x,right:(P.right-b.right+g.right)/_.x}}const ud=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...v}=$t(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const b=ct(o),E=rt(s),w=ct(s)===s,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),P=d||(w||!m?[$r(s)]:td(s)),O=g!=="none";!d&&O&&P.push(...ad(s,m,g,_));const N=[s,...P],M=await Lr(t,v),k=[];let S=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&k.push(M[b]),h){const A=ed(o,i,_);k.push(M[A[0]],M[A[1]])}if(S=[...S,{placement:o,overflows:k}],!k.every(A=>A<=0)){var C,j;const A=(((C=a.flip)==null?void 0:C.index)||0)+1,D=N[A];if(D&&(!(h==="alignment"?E!==rt(D):!1)||S.every(R=>rt(R.placement)===E?R.overflows[0]>0:!0)))return{data:{index:A,overflows:S},reset:{placement:D}};let U=(j=S.filter(q=>q.overflows[0]<=0).sort((q,R)=>q.overflows[1]-R.overflows[1])[0])==null?void 0:j.placement;if(!U)switch(p){case"bestFit":{var $;const q=($=S.filter(R=>{if(O){const L=rt(R.placement);return L===E||L==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(L=>L>0).reduce((L,z)=>L+z,0)]).sort((R,L)=>R[1]-L[1])[0])==null?void 0:$[0];q&&(U=q);break}case"initialPlacement":U=s;break}if(o!==U)return{reset:{placement:U}}}return{}}}},cd=new Set(["left","top"]);async function dd(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=ct(r),s=fr(r),l=rt(r)==="y",c=cd.has(i)?-1:1,u=a&&l?-1:1,h=$t(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof g=="number"&&(p=s==="end"?g*-1:g),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}const fd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await dd(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},pd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:v=>{let{x:b,y:E}=v;return{x:b,y:E}}},...l}=$t(e,t),c={x:r,y:n},u=await Lr(t,l),h=rt(ct(o)),d=_i(h);let p=c[d],g=c[h];if(a){const v=d==="y"?"top":"left",b=d==="y"?"bottom":"right",E=p+u[v],w=p-u[b];p=wi(E,p,w)}if(i){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",E=g+u[v],w=g-u[b];g=wi(E,g,w)}const m=s.fn({...t,[d]:p,[h]:g});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[d]:a,[h]:i}}}}}},md=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=$t(e,t),u=await Lr(t,c),h=ct(o),d=fr(o),p=rt(o)==="y",{width:g,height:m}=a.floating;let v,b;h==="top"||h==="bottom"?(v=h,b=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(b=h,v=d==="end"?"top":"bottom");const E=m-u.top-u.bottom,w=g-u.left-u.right,_=_t(m-u[v],E),P=_t(g-u[b],w),O=!t.middlewareData.shift;let N=_,M=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(M=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(N=E),O&&!d){const S=Oe(u.left,0),C=Oe(u.right,0),j=Oe(u.top,0),$=Oe(u.bottom,0);p?M=g-2*(S!==0||C!==0?S+C:Oe(u.left,u.right)):N=m-2*(j!==0||$!==0?j+$:Oe(u.top,u.bottom))}await l({...t,availableWidth:M,availableHeight:N});const k=await i.getDimensions(s.floating);return g!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};function Ci(e){const t=We(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ke(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=dr(r)!==a||dr(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function eo(e){return Te(e)?e:e.contextElement}function Mt(e){const t=eo(e);if(!Ke(t))return Qe(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Ci(t);let i=(a?dr(r.width):r.width)/n,s=(a?dr(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const hd=Qe(0);function Ri(e){const t=Me(e);return!Qn()||!t.visualViewport?hd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gd(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Me(e)?!1:t}function Pt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=eo(e);let i=Qe(1);t&&(n?Te(n)&&(i=Mt(n)):i=Mt(e));const s=gd(a,r,n)?Ri(a):Qe(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,h=o.height/i.y;if(a){const d=Me(a),p=n&&Te(n)?Me(n):n;let g=d,m=Zn(g);for(;m&&n&&p!==g;){const v=Mt(m),b=m.getBoundingClientRect(),E=We(m),w=b.left+(m.clientLeft+parseFloat(E.paddingLeft))*v.x,_=b.top+(m.clientTop+parseFloat(E.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,h*=v.y,l+=w,c+=_,g=Me(m),m=Zn(g)}}return Mr({width:u,height:h,x:l,y:c})}function Dr(e,t){const r=kr(e).scrollLeft;return t?t.left+r:Pt(Ye(e)).left+r}function Ai(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Dr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function vd(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=Ye(n),s=t?jr(t.floating):!1;if(n===i||s&&a)return r;let l={scrollLeft:0,scrollTop:0},c=Qe(1);const u=Qe(0),h=Ke(n);if((h||!h&&!a)&&((kt(n)!=="body"||ur(i))&&(l=kr(n)),Ke(n))){const p=Pt(n);c=Mt(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const d=i&&!h&&!a?Ai(i,l):Qe(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:r.y*c.y-l.scrollTop*c.y+u.y+d.y}}function bd(e){return Array.from(e.getClientRects())}function yd(e){const t=Ye(e),r=kr(e),n=e.ownerDocument.body,o=Oe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Oe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Dr(e);const s=-r.scrollTop;return We(n).direction==="rtl"&&(i+=Oe(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const ji=25;function Ed(e,t){const r=Me(e),n=Ye(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const u=Qn();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=Dr(n);if(c<=0){const u=n.ownerDocument,h=u.body,d=getComputedStyle(h),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(n.clientWidth-h.clientWidth-p);g<=ji&&(a-=g)}else c<=ji&&(a+=c);return{width:a,height:i,x:s,y:l}}const xd=new Set(["absolute","fixed"]);function wd(e,t){const r=Pt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ke(e)?Mt(e):Qe(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,c=n*a.y;return{width:i,height:s,x:l,y:c}}function ki(e,t,r){let n;if(t==="viewport")n=Ed(e,r);else if(t==="document")n=yd(Ye(e));else if(Te(t))n=wd(t,r);else{const o=Ri(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Mr(n)}function Ii(e,t){const r=ut(e);return r===t||!Te(r)||It(r)?!1:We(r).position==="fixed"||Ii(r,t)}function _d(e,t){const r=t.get(e);if(r)return r;let n=cr(e,[],!1).filter(s=>Te(s)&&kt(s)!=="body"),o=null;const a=We(e).position==="fixed";let i=a?ut(e):e;for(;Te(i)&&!It(i);){const s=We(i),l=Kn(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&xd.has(o.position)||ur(i)&&!l&&Ii(e,i))?n=n.filter(u=>u!==i):o=s,i=ut(i)}return t.set(e,n),n}function Pd(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?jr(t)?[]:_d(t,this._c):[].concat(r),n],s=i[0],l=i.reduce((c,u)=>{const h=ki(t,u,o);return c.top=Oe(h.top,c.top),c.right=_t(h.right,c.right),c.bottom=_t(h.bottom,c.bottom),c.left=Oe(h.left,c.left),c},ki(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Sd(e){const{width:t,height:r}=Ci(e);return{width:t,height:r}}function Td(e,t,r){const n=Ke(t),o=Ye(t),a=r==="fixed",i=Pt(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Qe(0);function c(){l.x=Dr(o)}if(n||!n&&!a)if((kt(t)!=="body"||ur(o))&&(s=kr(t)),n){const p=Pt(t,!0,a,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();a&&!n&&o&&c();const u=o&&!n&&!a?Ai(o,s):Qe(0),h=i.left+s.scrollLeft-l.x-u.x,d=i.top+s.scrollTop-l.y-u.y;return{x:h,y:d,width:i.width,height:i.height}}function to(e){return We(e).position==="static"}function $i(e,t){if(!Ke(e)||We(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ye(e)===r&&(r=r.ownerDocument.body),r}function Mi(e,t){const r=Me(e);if(jr(e))return r;if(!Ke(e)){let o=ut(e);for(;o&&!It(o);){if(Te(o)&&!to(o))return o;o=ut(o)}return r}let n=$i(e,t);for(;n&&Uc(n)&&to(n);)n=$i(n,t);return n&&It(n)&&to(n)&&!Kn(n)?r:n||Xc(e)||r}const Od=async function(e){const t=this.getOffsetParent||Mi,r=this.getDimensions,n=await r(e.floating);return{reference:Td(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Nd(e){return We(e).direction==="rtl"}const Cd={convertOffsetParentRelativeRectToViewportRelativeRect:vd,getDocumentElement:Ye,getClippingRect:Pd,getOffsetParent:Mi,getElementRects:Od,getClientRects:bd,getDimensions:Sd,getScale:Mt,isElement:Te,isRTL:Nd};function Li(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Rd(e,t){let r=null,n;const o=Ye(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:h,width:d,height:p}=c;if(s||t(),!d||!p)return;const g=Ir(h),m=Ir(o.clientWidth-(u+d)),v=Ir(o.clientHeight-(h+p)),b=Ir(u),w={rootMargin:-g+"px "+-m+"px "+-v+"px "+-b+"px",threshold:Oe(0,_t(1,l))||1};let _=!0;function P(O){const N=O[0].intersectionRatio;if(N!==l){if(!_)return i();N?i(!1,N):n=setTimeout(()=>{i(!1,1e-7)},1e3)}N===1&&!Li(c,e.getBoundingClientRect())&&i(),_=!1}try{r=new IntersectionObserver(P,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(P,w)}r.observe(e)}return i(!0),a}function Ad(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=eo(e),u=o||a?[...c?cr(c):[],...cr(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});const h=c&&s?Rd(c,r):null;let d=-1,p=null;i&&(p=new ResizeObserver(b=>{let[E]=b;E&&E.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let g,m=l?Pt(e):null;l&&v();function v(){const b=Pt(e);m&&!Li(m,b)&&r(),m=b,g=requestAnimationFrame(v)}return r(),()=>{var b;u.forEach(E=>{o&&E.removeEventListener("scroll",r),a&&E.removeEventListener("resize",r)}),h==null||h(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const ro=Lr,jd=fd,kd=pd,Id=ud,$d=md,Md=(e,t,r)=>{const n=new Map,o={platform:Cd,...r},a={...o.platform,_c:n};return ld(e,t,{...o,platform:a})};var Ld=typeof document<"u",Dd=function(){},Fr=Ld?f.useLayoutEffect:Dd;function Hr(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Hr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Hr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Di(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fi(e,t){const r=Di(e);return Math.round(t*r)/r}function no(e){const t=T.useRef(e);return Fr(()=>{t.current=e}),t}function Fd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,h]=T.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=T.useState(n);Hr(d,n)||p(n);const[g,m]=T.useState(null),[v,b]=T.useState(null),E=T.useCallback(R=>{R!==O.current&&(O.current=R,m(R))},[]),w=T.useCallback(R=>{R!==N.current&&(N.current=R,b(R))},[]),_=a||g,P=i||v,O=T.useRef(null),N=T.useRef(null),M=T.useRef(u),k=l!=null,S=no(l),C=no(o),j=no(c),$=T.useCallback(()=>{if(!O.current||!N.current)return;const R={placement:t,strategy:r,middleware:d};C.current&&(R.platform=C.current),Md(O.current,N.current,R).then(L=>{const z={...L,isPositioned:j.current!==!1};A.current&&!Hr(M.current,z)&&(M.current=z,vr.flushSync(()=>{h(z)}))})},[d,t,r,C,j]);Fr(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(R=>({...R,isPositioned:!1})))},[c]);const A=T.useRef(!1);Fr(()=>(A.current=!0,()=>{A.current=!1}),[]),Fr(()=>{if(_&&(O.current=_),P&&(N.current=P),_&&P){if(S.current)return S.current(_,P,$);$()}},[_,P,$,S,k]);const D=T.useMemo(()=>({reference:O,floating:N,setReference:E,setFloating:w}),[E,w]),U=T.useMemo(()=>({reference:_,floating:P}),[_,P]),q=T.useMemo(()=>{const R={position:r,left:0,top:0};if(!U.floating)return R;const L=Fi(U.floating,u.x),z=Fi(U.floating,u.y);return s?{...R,transform:"translate("+L+"px, "+z+"px)",...Di(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:L,top:z}},[r,s,U.floating,u.x,u.y]);return T.useMemo(()=>({...u,update:$,refs:D,elements:U,floatingStyles:q}),[u,$,D,U,q])}const Hi=(e,t)=>({...jd(e),options:[e,t]}),Hd=(e,t)=>({...kd(e),options:[e,t]}),Bd=(e,t)=>({...Id(e),options:[e,t]}),Wd=(e,t)=>({...$d(e),options:[e,t]}),Bi={...T},Ud=Bi.useInsertionEffect||(e=>e());function Wi(e){const t=T.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Ud(()=>{t.current=e}),T.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current==null?void 0:t.current(...n)},[])}var oo=typeof document<"u"?f.useLayoutEffect:f.useEffect;let Ui=!1,Vd=0;const Vi=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Vd++;function qd(){const[e,t]=T.useState(()=>Ui?Vi():void 0);return oo(()=>{e==null&&t(Vi())},[]),T.useEffect(()=>{Ui=!0},[]),e}const Gd=Bi.useId||qd;let pr;process.env.NODE_ENV!=="production"&&(pr=new Set);function zd(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const o="Floating UI: "+r.join(" ");if(!((e=pr)!=null&&e.has(o))){var a;(a=pr)==null||a.add(o),console.warn(o)}}function Xd(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const o="Floating UI: "+r.join(" ");if(!((e=pr)!=null&&e.has(o))){var a;(a=pr)==null||a.add(o),console.error(o)}}function Yd(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(o=>o!==r))||[])}}}const Kd=T.createContext(null),Qd=T.createContext(null),Zd=()=>{var e;return((e=T.useContext(Kd))==null?void 0:e.id)||null},Jd=()=>T.useContext(Qd),ef="data-floating-ui-focusable";function tf(e){const{open:t=!1,onOpenChange:r,elements:n}=e,o=Gd(),a=T.useRef({}),[i]=T.useState(()=>Yd()),s=Zd()!=null;if(process.env.NODE_ENV!=="production"){const p=n.reference;p&&!Te(p)&&Xd("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=T.useState(n.reference),u=Wi((p,g,m)=>{a.current.openEvent=p?g:void 0,i.emit("openchange",{open:p,event:g,reason:m,nested:s}),r==null||r(p,g,m)}),h=T.useMemo(()=>({setPositionReference:c}),[]),d=T.useMemo(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return T.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:d,events:i,floatingId:o,refs:h}),[t,u,d,i,o,h])}function rf(e){e===void 0&&(e={});const{nodeId:t}=e,r=tf({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,o=n.elements,[a,i]=T.useState(null),[s,l]=T.useState(null),u=(o==null?void 0:o.domReference)||a,h=T.useRef(null),d=Jd();oo(()=>{u&&(h.current=u)},[u]);const p=Fd({...e,elements:{...o,...s&&{reference:s}}}),g=T.useCallback(w=>{const _=Te(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;l(_),p.refs.setReference(_)},[p.refs]),m=T.useCallback(w=>{(Te(w)||w===null)&&(h.current=w,i(w)),(Te(p.refs.reference.current)||p.refs.reference.current===null||w!==null&&!Te(w))&&p.refs.setReference(w)},[p.refs]),v=T.useMemo(()=>({...p.refs,setReference:m,setPositionReference:g,domReference:h}),[p.refs,m,g]),b=T.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),E=T.useMemo(()=>({...p,...n,refs:v,elements:b,nodeId:t}),[p,v,b,t,n]);return oo(()=>{n.dataRef.current.floatingContext=E;const w=d==null?void 0:d.nodesRef.current.find(_=>_.id===t);w&&(w.context=E)}),T.useMemo(()=>({...p,context:E,refs:v,elements:b}),[p,v,b,E])}const qi="active",Gi="selected";function ao(e,t,r){const n=new Map,o=r==="item";let a=e;if(o&&e){const{[qi]:i,[Gi]:s,...l}=e;a=l}return{...r==="floating"&&{tabIndex:-1,[ef]:""},...a,...t.map(i=>{const s=i?i[r]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((i,s)=>(s&&Object.entries(s).forEach(l=>{let[c,u]=l;if(!(o&&[qi,Gi].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof u=="function"){var h;(h=n.get(c))==null||h.push(u),i[c]=function(){for(var d,p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return(d=n.get(c))==null?void 0:d.map(v=>v(...g)).find(v=>v!==void 0)}}}else i[c]=u}),i),{})}}function nf(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),r=e.map(s=>s==null?void 0:s.floating),n=e.map(s=>s==null?void 0:s.item),o=T.useCallback(s=>ao(s,e,"reference"),t),a=T.useCallback(s=>ao(s,e,"floating"),r),i=T.useCallback(s=>ao(s,e,"item"),n);return T.useMemo(()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i}),[o,a,i])}function zi(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const of=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:a=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=$t(e,t),{rects:h,elements:{floating:d}}=t,p=r.current[i],g=(c==null?void 0:c.current)||d,m=d.clientTop||g.clientTop,v=d.clientTop!==0,b=g.clientTop!==0,E=d===g;if(process.env.NODE_ENV!=="production"&&(t.placement.startsWith("bottom")||zd('`placement` side must be "bottom" when using the `inner`',"middleware.")),!p)return{};const w={...t,...await Hi(-p.offsetTop-d.clientTop-h.reference.height/2-p.offsetHeight/2-a).fn(t)},_=await ro(zi(w,g.scrollHeight+m+d.clientTop),u),P=await ro(w,{...u,elementContext:"reference"}),O=Oe(0,_.top),N=w.y+O,S=(g.scrollHeight>g.clientHeight?C=>C:dr)(Oe(0,g.scrollHeight+(v&&E||b?m*2:0)-O-Oe(0,_.bottom)));if(g.style.maxHeight=S+"px",g.scrollTop=O,o){const C=g.offsetHeight<p.offsetHeight*_t(s,r.current.length)-1||P.top>=-l||P.bottom>=-l;vr.flushSync(()=>o(C))}return n&&(n.current=await ro(zi({...w,y:N},g.offsetHeight+m+d.clientTop),u)),{y:N}}});function af(e,t){const{open:r,elements:n}=e,{enabled:o=!0,overflowRef:a,scrollRef:i,onChange:s}=t,l=Wi(s),c=T.useRef(!1),u=T.useRef(null),h=T.useRef(null);T.useEffect(()=>{if(!o)return;function p(m){if(m.ctrlKey||!g||a.current==null)return;const v=m.deltaY,b=a.current.top>=-.5,E=a.current.bottom>=-.5,w=g.scrollHeight-g.clientHeight,_=v<0?-1:1,P=v<0?"max":"min";g.scrollHeight<=g.clientHeight||(!b&&v>0||!E&&v<0?(m.preventDefault(),vr.flushSync(()=>{l(O=>O+Math[P](v,w*_))})):/firefox/i.test(Kc())&&(g.scrollTop+=v))}const g=(i==null?void 0:i.current)||n.floating;if(r&&g)return g.addEventListener("wheel",p),requestAnimationFrame(()=>{u.current=g.scrollTop,a.current!=null&&(h.current={...a.current})}),()=>{u.current=null,h.current=null,g.removeEventListener("wheel",p)}},[o,r,n.floating,a,i,l]);const d=T.useMemo(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const p=(i==null?void 0:i.current)||n.floating;if(!(!a.current||!p||!c.current)){if(u.current!==null){const g=p.scrollTop-u.current;(a.current.bottom<-.5&&g<-1||a.current.top<-.5&&g>1)&&vr.flushSync(()=>l(m=>m+g))}requestAnimationFrame(()=>{u.current=p.scrollTop})}}}),[n.floating,l,a,i]);return T.useMemo(()=>o?{floating:d}:{},[o,d])}let Lt=f.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Lt.displayName="FloatingContext";let io=f.createContext(null);io.displayName="PlacementContext";function Xi(e){return f.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function Yi(){return f.useContext(Lt).setReference}function sf(){return f.useContext(Lt).getReferenceProps}function Ki(){let{getFloatingProps:e,slot:t}=f.useContext(Lt);return f.useCallback((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor}),[e,t])}function Qi(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=f.useContext(io),r=f.useMemo(()=>e,[JSON.stringify(e,(o,a)=>{var i;return(i=a==null?void 0:a.outerHTML)!=null?i:a})]);ce(()=>{t==null||t(r??null)},[t,r]);let n=f.useContext(Lt);return f.useMemo(()=>[n.setFloating,e?n.styles:{}],[n.setFloating,e,n.styles])}let Zi=4;function Ji({children:e,enabled:t=!0}){let[r,n]=f.useState(null),[o,a]=f.useState(0),i=f.useRef(null),[s,l]=f.useState(null);lf(s);let c=t&&r!==null&&s!==null,{to:u="bottom",gap:h=0,offset:d=0,padding:p=0,inner:g}=uf(r,s),[m,v="center"]=u.split(" ");ce(()=>{c&&a(0)},[c]);let{refs:b,floatingStyles:E,context:w}=rf({open:c,placement:m==="selection"?v==="center"?"bottom":`bottom-${v}`:v==="center"?`${m}`:`${m}-${v}`,strategy:"absolute",transform:!1,middleware:[Hi({mainAxis:m==="selection"?0:h,crossAxis:d}),Hd({padding:p}),m!=="selection"&&Bd({padding:p}),m==="selection"&&g?of({...g,padding:p,overflowRef:i,offset:o,minItemsVisible:Zi,referenceOverflowThreshold:p,onFallbackChange(C){var j,$;if(!C)return;let A=w.elements.floating;if(!A)return;let D=parseFloat(getComputedStyle(A).scrollPaddingBottom)||0,U=Math.min(Zi,A.childElementCount),q=0,R=0;for(let L of($=(j=w.elements.floating)==null?void 0:j.childNodes)!=null?$:[])if(Se(L)){let z=L.offsetTop,K=z+L.clientHeight+D,J=A.scrollTop,F=J+A.clientHeight;if(z>=J&&K<=F)U--;else{R=Math.max(0,Math.min(K,F)-Math.max(z,J)),q=L.clientHeight;break}}U>=1&&a(L=>{let z=q*U-R+D;return L>=z?L:z})}}):null,Wd({padding:p,apply({availableWidth:C,availableHeight:j,elements:$}){Object.assign($.floating.style,{overflow:"auto",maxWidth:`${C}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${j}px)`})}})].filter(Boolean),whileElementsMounted:Ad}),[_=m,P=v]=w.placement.split("-");m==="selection"&&(_="selection");let O=f.useMemo(()=>({anchor:[_,P].filter(Boolean).join(" ")}),[_,P]),N=af(w,{overflowRef:i,onChange:a}),{getReferenceProps:M,getFloatingProps:k}=nf([N]),S=H(C=>{l(C),b.setFloating(C)});return T.createElement(io.Provider,{value:n},T.createElement(Lt.Provider,{value:{setFloating:S,setReference:b.setReference,styles:E,getReferenceProps:M,getFloatingProps:k,slot:O}},e))}function lf(e){ce(()=>{if(!e)return;let t=new MutationObserver(()=>{let r=window.getComputedStyle(e).maxHeight,n=parseFloat(r);if(isNaN(n))return;let o=parseInt(r);isNaN(o)||n!==o&&(e.style.maxHeight=`${Math.ceil(n)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function uf(e,t){var r,n,o;let a=so((r=e==null?void 0:e.gap)!=null?r:"var(--anchor-gap, 0)",t),i=so((n=e==null?void 0:e.offset)!=null?n:"var(--anchor-offset, 0)",t),s=so((o=e==null?void 0:e.padding)!=null?o:"var(--anchor-padding, 0)",t);return{...e,gap:a,offset:i,padding:s}}function so(e,t,r=void 0){let n=vt(),o=H((l,c)=>{if(l==null)return[r,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!c)return[r,null];let u=ts(l,c);return[u,h=>{let d=es(l);{let p=d.map(g=>window.getComputedStyle(c).getPropertyValue(g));n.requestAnimationFrame(function g(){n.nextFrame(g);let m=!1;for(let[b,E]of d.entries()){let w=window.getComputedStyle(c).getPropertyValue(E);if(p[b]!==w){p[b]=w,m=!0;break}}if(!m)return;let v=ts(l,c);u!==v&&(h(v),u=v)})}return n.dispose}]}return[r,null]}),a=f.useMemo(()=>o(e,t)[0],[e,t]),[i=a,s]=f.useState();return ce(()=>{let[l,c]=o(e,t);if(s(l),!!c)return c(s)},[e,t]),i}function es(e){let t=/var\((.*)\)/.exec(e);if(t){let r=t[1].indexOf(",");if(r===-1)return[t[1]];let n=t[1].slice(0,r).trim(),o=t[1].slice(r+1).trim();return o?[n,...es(o)]:[n]}return[]}function ts(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}let Br=f.createContext(null);Br.displayName="OpenClosedContext";var de=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(de||{});function dt(){return f.useContext(Br)}function Wr({value:e,children:t}){return f.createElement(Br.Provider,{value:e},t)}function lo({children:e}){return f.createElement(Br.Provider,{value:null},e)}function cf(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let ft=[];cf(()=>{function e(t){if(!Ie(t.target)||t.target===document.body||ft[0]===t.target)return;let r=t.target;r=r.closest(Or),ft.unshift(r??t.target),ft=ft.filter(n=>n!=null&&n.isConnected),ft.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function df(e){throw new Error("Unexpected object: "+e)}var be=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(be||{});function Ur(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=n??-1;switch(e.focus){case 0:{for(let a=0;a<r.length;++a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 1:{o===-1&&(o=r.length);for(let a=o-1;a>=0;--a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 2:{for(let a=o+1;a<r.length;++a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 3:{for(let a=r.length-1;a>=0;--a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 4:{for(let a=0;a<r.length;++a)if(t.resolveId(r[a],a,r)===e.id)return a;return n}case 5:return null;default:df(e)}}function Vr(e){let t=H(e),r=f.useRef(!1);f.useEffect(()=>(r.current=!1,()=>{r.current=!0,_r(()=>{r.current&&t()})}),[t])}let rs=f.createContext(!1);function ff(){return f.useContext(rs)}function ns(e){return f.createElement(rs.Provider,{value:e.force},e.children)}function pf(e){let t=ff(),r=f.useContext(as),[n,o]=f.useState(()=>{var a;if(!t&&r!==null)return(a=r.current)!=null?a:null;if(Ge.isServer)return null;let i=e==null?void 0:e.getElementById("headlessui-portal-root");if(i)return i;if(e===null)return null;let s=e.createElement("div");return s.setAttribute("id","headlessui-portal-root"),e.body.appendChild(s)});return f.useEffect(()=>{n!==null&&(e!=null&&e.body.contains(n)||e==null||e.body.appendChild(n))},[n,e]),f.useEffect(()=>{t||r!==null&&o(r.current)},[r,o,t]),n}let os=f.Fragment,mf=re(function(e,t){let{ownerDocument:r=null,...n}=e,o=f.useRef(null),a=fe(In(d=>{o.current=d}),t),i=xt(o.current),s=r??i,l=pf(s),c=f.useContext(uo),u=vt(),h=se();return Vr(()=>{var d;l&&l.childNodes.length<=0&&((d=l.parentElement)==null||d.removeChild(l))}),l?zt.createPortal(f.createElement("div",{"data-headlessui-portal":"",ref:d=>{u.dispose(),c&&d&&u.add(c.register(d))}},h({ourProps:{ref:a},theirProps:n,slot:{},defaultTag:os,name:"Portal"})),l):null});function hf(e,t){let r=fe(t),{enabled:n=!0,ownerDocument:o,...a}=e,i=se();return n?f.createElement(mf,{...a,ownerDocument:o,ref:r}):i({ourProps:{ref:r},theirProps:a,slot:{},defaultTag:os,name:"Portal"})}let gf=f.Fragment,as=f.createContext(null);function vf(e,t){let{target:r,...n}=e,o={ref:fe(t)},a=se();return f.createElement(as.Provider,{value:r},a({ourProps:o,theirProps:n,defaultTag:gf,name:"Popover.Group"}))}let uo=f.createContext(null);function is(){let e=f.useContext(uo),t=f.useRef([]),r=H(a=>(t.current.push(a),e&&e.register(a),()=>n(a))),n=H(a=>{let i=t.current.indexOf(a);i!==-1&&t.current.splice(i,1),e&&e.unregister(a)}),o=f.useMemo(()=>({register:r,unregister:n,portals:t}),[r,n,t]);return[t,f.useMemo(()=>function({children:a}){return f.createElement(uo.Provider,{value:o},a)},[o])]}let bf=re(hf),ss=re(vf),co=Object.assign(bf,{Group:ss});const qr={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function ls(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function yf(e,t,r){let n=Re();if(t.kind==="Tracked"){let o=function(){a!==ls(e)&&(n.dispose(),r())},{position:a}=t,i=new ResizeObserver(o);i.observe(e),n.add(()=>i.disconnect()),n.addEventListener(window,"scroll",o,{passive:!0}),n.addEventListener(window,"resize",o)}return()=>n.dispose()}function Ef(e,t=typeof document<"u"?document.defaultView:null,r){let n=or(e,"escape");Gn(t,"keydown",o=>{n&&(o.defaultPrevented||o.key===oe.Escape&&r(o))})}function xf(){var e;let[t]=f.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[r,n]=f.useState((e=t==null?void 0:t.matches)!=null?e:!1);return ce(()=>{if(!t)return;function o(a){n(a.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),r}function us({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let n=H(()=>{var o,a;let i=Je(r),s=[];for(let l of e)l!==null&&(tt(l)?s.push(l):"current"in l&&tt(l.current)&&s.push(l.current));if(t!=null&&t.current)for(let l of t.current)s.push(l);for(let l of(o=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&tt(l)&&l.id!=="headlessui-portal-root"&&(r&&(l.contains(r)||l.contains((a=r==null?void 0:r.getRootNode())==null?void 0:a.host))||s.some(c=>l.contains(c))||s.push(l));return s});return{resolveContainers:n,contains:H(o=>n().some(a=>a.contains(o)))}}let cs=f.createContext(null);function Gr({children:e,node:t}){let[r,n]=f.useState(null),o=fo(t??r);return f.createElement(cs.Provider,{value:o},e,o===null&&f.createElement(Rt,{features:Et.Hidden,ref:a=>{var i,s;if(a){for(let l of(s=(i=Je(a))==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?s:[])if(l!==document.body&&l!==document.head&&tt(l)&&l!=null&&l.contains(a)){n(l);break}}}}))}function fo(e=null){var t;return(t=f.useContext(cs))!=null?t:e}function wf(){let e=typeof document>"u";return"useSyncExternalStore"in T?(t=>t.useSyncExternalStore)(T)(()=>()=>{},()=>!1,()=>!e):!1}function zr(){let e=wf(),[t,r]=T.useState(Ge.isHandoffComplete);return t&&Ge.isHandoffComplete===!1&&r(!1),T.useEffect(()=>{t!==!0&&r(!0)},[t]),T.useEffect(()=>Ge.handoff(),[]),e?!1:t}function po(){let e=f.useRef(!1);return ce(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Le=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Le||{});function mo(){let e=f.useRef(0);return fi(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function ds(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let r of e.current)tt(r.current)&&t.add(r.current);return t}let _f="div";var St=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(St||{});function Pf(e,t){let r=f.useRef(null),n=fe(r,t),{initialFocus:o,initialFocusFallback:a,containers:i,features:s=15,...l}=e;zr()||(s=0);let c=xt(r.current);Nf(s,{ownerDocument:c});let u=Cf(s,{ownerDocument:c,container:r,initialFocus:o,initialFocusFallback:a});Rf(s,{ownerDocument:c,container:r,containers:i,previousActiveElement:u});let h=mo(),d=H(E=>{if(!Se(r.current))return;let w=r.current;(_=>_())(()=>{ve(h.current,{[Le.Forwards]:()=>{$e(w,xe.First,{skipElements:[E.relatedTarget,a]})},[Le.Backwards]:()=>{$e(w,xe.Last,{skipElements:[E.relatedTarget,a]})}})})}),p=or(!!(s&2),"focus-trap#tab-lock"),g=vt(),m=f.useRef(!1),v={ref:n,onKeyDown(E){E.key=="Tab"&&(m.current=!0,g.requestAnimationFrame(()=>{m.current=!1}))},onBlur(E){if(!(s&4))return;let w=ds(i);Se(r.current)&&w.add(r.current);let _=E.relatedTarget;Ie(_)&&_.dataset.headlessuiFocusGuard!=="true"&&(fs(w,_)||(m.current?$e(r.current,ve(h.current,{[Le.Forwards]:()=>xe.Next,[Le.Backwards]:()=>xe.Previous})|xe.WrapAround,{relativeTo:E.target}):Ie(E.target)&&Xe(E.target)))}},b=se();return f.createElement(f.Fragment,null,p&&f.createElement(Rt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:Et.Focusable}),b({ourProps:v,theirProps:l,defaultTag:_f,name:"FocusTrap"}),p&&f.createElement(Rt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:Et.Focusable}))}let Sf=re(Pf),Tf=Object.assign(Sf,{features:St});function Of(e=!0){let t=f.useRef(ft.slice());return Yn(([r],[n])=>{n===!0&&r===!1&&_r(()=>{t.current.splice(0)}),n===!1&&r===!0&&(t.current=ft.slice())},[e,ft,t]),H(()=>{var r;return(r=t.current.find(n=>n!=null&&n.isConnected))!=null?r:null})}function Nf(e,{ownerDocument:t}){let r=!!(e&8),n=Of(r);Yn(()=>{r||$a(t==null?void 0:t.body)&&Xe(n())},[r]),Vr(()=>{r&&Xe(n())})}function Cf(e,{ownerDocument:t,container:r,initialFocus:n,initialFocusFallback:o}){let a=f.useRef(null),i=or(!!(e&1),"focus-trap#initial-focus"),s=po();return Yn(()=>{if(e===0)return;if(!i){o!=null&&o.current&&Xe(o.current);return}let l=r.current;l&&_r(()=>{if(!s.current)return;let c=t==null?void 0:t.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===c){a.current=c;return}}else if(l.contains(c)){a.current=c;return}if(n!=null&&n.current)Xe(n.current);else{if(e&16){if($e(l,xe.First|xe.AutoFocus)!==At.Error)return}else if($e(l,xe.First)!==At.Error)return;if(o!=null&&o.current&&(Xe(o.current),(t==null?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=t==null?void 0:t.activeElement})},[o,i,e]),a}function Rf(e,{ownerDocument:t,container:r,containers:n,previousActiveElement:o}){let a=po(),i=!!(e&4);Gn(t==null?void 0:t.defaultView,"focus",s=>{if(!i||!a.current)return;let l=ds(n);Se(r.current)&&l.add(r.current);let c=o.current;if(!c)return;let u=s.target;Se(u)?fs(l,u)?(o.current=u,Xe(u)):(s.preventDefault(),s.stopPropagation(),Xe(c)):Xe(o.current)},!0)}function fs(e,t){for(let r of e)if(r.contains(t))return!0;return!1}function ps(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!Ct((t=e.as)!=null?t:hs)||f.Children.count(e.children)===1}let Xr=f.createContext(null);Xr.displayName="TransitionContext";var Af=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Af||{});function jf(){let e=f.useContext(Xr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function kf(){let e=f.useContext(Yr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Yr=f.createContext(null);Yr.displayName="NestingContext";function Kr(e){return"children"in e?Kr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function ms(e,t){let r=et(e),n=f.useRef([]),o=po(),a=vt(),i=H((p,g=lt.Hidden)=>{let m=n.current.findIndex(({el:v})=>v===p);m!==-1&&(ve(g,{[lt.Unmount](){n.current.splice(m,1)},[lt.Hidden](){n.current[m].state="hidden"}}),a.microTask(()=>{var v;!Kr(n)&&o.current&&((v=r.current)==null||v.call(r))}))}),s=H(p=>{let g=n.current.find(({el:m})=>m===p);return g?g.state!=="visible"&&(g.state="visible"):n.current.push({el:p,state:"visible"}),()=>i(p,lt.Unmount)}),l=f.useRef([]),c=f.useRef(Promise.resolve()),u=f.useRef({enter:[],leave:[]}),h=H((p,g,m)=>{l.current.splice(0),t&&(t.chains.current[g]=t.chains.current[g].filter(([v])=>v!==p)),t==null||t.chains.current[g].push([p,new Promise(v=>{l.current.push(v)})]),t==null||t.chains.current[g].push([p,new Promise(v=>{Promise.all(u.current[g].map(([b,E])=>E)).then(()=>v())})]),g==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>m(g)):m(g)}),d=H((p,g,m)=>{Promise.all(u.current[g].splice(0).map(([v,b])=>b)).then(()=>{var v;(v=l.current.shift())==null||v()}).then(()=>m(g))});return f.useMemo(()=>({children:n,register:s,unregister:i,onStart:h,onStop:d,wait:c,chains:u}),[s,i,n,h,d,u,c])}let hs=f.Fragment,gs=Fe.RenderStrategy;function If(e,t){var r,n;let{transition:o=!0,beforeEnter:a,afterEnter:i,beforeLeave:s,afterLeave:l,enter:c,enterFrom:u,enterTo:h,entered:d,leave:p,leaveFrom:g,leaveTo:m,...v}=e,[b,E]=f.useState(null),w=f.useRef(null),_=ps(e),P=fe(..._?[w,t,E]:t===null?[]:[t]),O=(r=v.unmount)==null||r?lt.Unmount:lt.Hidden,{show:N,appear:M,initial:k}=jf(),[S,C]=f.useState(N?"visible":"hidden"),j=kf(),{register:$,unregister:A}=j;ce(()=>$(w),[$,w]),ce(()=>{if(O===lt.Hidden&&w.current){if(N&&S!=="visible"){C("visible");return}return ve(S,{hidden:()=>A(w),visible:()=>$(w)})}},[S,w,$,A,N,O]);let D=zr();ce(()=>{if(_&&D&&S==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,S,D,_]);let U=k&&!M,q=M&&N&&k,R=f.useRef(!1),L=ms(()=>{R.current||(C("hidden"),A(w))},j),z=H(Q=>{R.current=!0;let pe=Q?"enter":"leave";L.onStart(w,pe,G=>{G==="enter"?a==null||a():G==="leave"&&(s==null||s())})}),K=H(Q=>{let pe=Q?"enter":"leave";R.current=!1,L.onStop(w,pe,G=>{G==="enter"?i==null||i():G==="leave"&&(l==null||l())}),pe==="leave"&&!Kr(L)&&(C("hidden"),A(w))});f.useEffect(()=>{_&&o||(z(N),K(N))},[N,_,o]);let J=!(!o||!_||!D||U),[,F]=lr(J,b,N,{start:z,end:K}),B=yt({ref:P,className:((n=jn(v.className,q&&c,q&&u,F.enter&&c,F.enter&&F.closed&&u,F.enter&&!F.closed&&h,F.leave&&p,F.leave&&!F.closed&&g,F.leave&&F.closed&&m,!F.transition&&N&&d))==null?void 0:n.trim())||void 0,...sr(F)}),V=0;S==="visible"&&(V|=de.Open),S==="hidden"&&(V|=de.Closed),N&&S==="hidden"&&(V|=de.Opening),!N&&S==="visible"&&(V|=de.Closing);let ee=se();return f.createElement(Yr.Provider,{value:L},f.createElement(Wr,{value:V},ee({ourProps:B,theirProps:v,defaultTag:hs,features:gs,visible:S==="visible",name:"Transition.Child"})))}function $f(e,t){let{show:r,appear:n=!1,unmount:o=!0,...a}=e,i=f.useRef(null),s=ps(e),l=fe(...s?[i,t]:t===null?[]:[t]);zr();let c=dt();if(r===void 0&&c!==null&&(r=(c&de.Open)===de.Open),r===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,h]=f.useState(r?"visible":"hidden"),d=ms(()=>{r||h("hidden")}),[p,g]=f.useState(!0),m=f.useRef([r]);ce(()=>{p!==!1&&m.current[m.current.length-1]!==r&&(m.current.push(r),g(!1))},[m,r]);let v=f.useMemo(()=>({show:r,appear:n,initial:p}),[r,n,p]);ce(()=>{r?h("visible"):!Kr(d)&&i.current!==null&&h("hidden")},[r,d]);let b={unmount:o},E=H(()=>{var P;p&&g(!1),(P=e.beforeEnter)==null||P.call(e)}),w=H(()=>{var P;p&&g(!1),(P=e.beforeLeave)==null||P.call(e)}),_=se();return f.createElement(Yr.Provider,{value:d},f.createElement(Xr.Provider,{value:v},_({ourProps:{...b,as:f.Fragment,children:f.createElement(vs,{ref:l,...b,...a,beforeEnter:E,beforeLeave:w})},theirProps:{},defaultTag:f.Fragment,features:gs,visible:u==="visible",name:"Transition"})))}function Mf(e,t){let r=f.useContext(Xr)!==null,n=dt()!==null;return f.createElement(f.Fragment,null,!r&&n?f.createElement(ho,{ref:t,...e}):f.createElement(vs,{ref:t,...e}))}let ho=re($f),vs=re(If),go=re(Mf),Lf=Object.assign(ho,{Child:go,Root:ho});var Df=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Df||{}),Ff=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ff||{});let Hf={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},vo=f.createContext(null);vo.displayName="DialogContext";function Qr(e){let t=f.useContext(vo);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Qr),r}return t}function Bf(e,t){return ve(t.type,Hf,e,t)}let bs=re(function(e,t){let r=f.useId(),{id:n=`headlessui-dialog-${r}`,open:o,onClose:a,initialFocus:i,role:s="dialog",autoFocus:l=!0,__demoMode:c=!1,unmount:u=!1,...h}=e,d=f.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(d.current||(d.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=dt();o===void 0&&p!==null&&(o=(p&de.Open)===de.Open);let g=f.useRef(null),m=fe(g,t),v=xt(g.current),b=o?0:1,[E,w]=f.useReducer(Bf,{titleId:null,descriptionId:null,panelRef:f.createRef()}),_=H(()=>a(!1)),P=H(F=>w({type:0,id:F})),O=zr()?b===0:!1,[N,M]=is(),k={get current(){var F;return(F=E.panelRef.current)!=null?F:g.current}},S=fo(),{resolveContainers:C}=us({mainTreeNode:S,portals:N,defaultContainers:[k]}),j=p!==null?(p&de.Closing)===de.Closing:!1;si(c||j?!1:O,{allowed:H(()=>{var F,B;return[(B=(F=g.current)==null?void 0:F.closest("[data-headlessui-portal]"))!=null?B:null]}),disallowed:H(()=>{var F;return[(F=S==null?void 0:S.closest("body > *:not(#headlessui-portal-root)"))!=null?F:null]})});let $=nr.get(null);ce(()=>{if(O)return $.actions.push(n),()=>$.actions.pop(n)},[$,n,O]);let A=_e($,f.useCallback(F=>$.selectors.isTop(F,n),[$,n]));qn(A,C,F=>{F.preventDefault(),_()}),Ef(A,v==null?void 0:v.defaultView,F=>{F.preventDefault(),F.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),_()}),Xn(c||j?!1:O,v,C),Vn(O,g,_);let[D,U]=Va(),q=f.useMemo(()=>[{dialogState:b,close:_,setTitleId:P,unmount:u},E],[b,_,P,u,E]),R=we({open:b===0}),L={ref:m,id:n,role:s,tabIndex:-1,"aria-modal":c?void 0:b===0?!0:void 0,"aria-labelledby":E.titleId,"aria-describedby":D,unmount:u},z=!xf(),K=St.None;O&&!c&&(K|=St.RestoreFocus,K|=St.TabLock,l&&(K|=St.AutoFocus),z&&(K|=St.InitialFocus));let J=se();return f.createElement(lo,null,f.createElement(ns,{force:!0},f.createElement(co,null,f.createElement(vo.Provider,{value:q},f.createElement(ss,{target:g},f.createElement(ns,{force:!1},f.createElement(U,{slot:R},f.createElement(M,null,f.createElement(Tf,{initialFocus:i,initialFocusFallback:g,containers:C,features:K},f.createElement(Tr,{value:_},J({ourProps:L,theirProps:h,slot:R,defaultTag:Wf,features:Uf,visible:b===0,name:"Dialog"})))))))))))}),Wf="div",Uf=Fe.RenderStrategy|Fe.Static;function Vf(e,t){let{transition:r=!1,open:n,...o}=e,a=dt(),i=e.hasOwnProperty("open")||a!==null,s=e.hasOwnProperty("onClose");if(!i&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!i)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!a&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(n!==void 0||r)&&!o.static?f.createElement(Gr,null,f.createElement(Lf,{show:n,transition:r,unmount:o.unmount},f.createElement(bs,{ref:t,...o}))):f.createElement(Gr,null,f.createElement(bs,{ref:t,open:n,...o}))}let qf="div";function Gf(e,t){let r=f.useId(),{id:n=`headlessui-dialog-panel-${r}`,transition:o=!1,...a}=e,[{dialogState:i,unmount:s},l]=Qr("Dialog.Panel"),c=fe(t,l.panelRef),u=we({open:i===0}),h=H(v=>{v.stopPropagation()}),d={ref:c,id:n,onClick:h},p=o?go:f.Fragment,g=o?{unmount:s}:{},m=se();return f.createElement(p,{...g},m({ourProps:d,theirProps:a,slot:u,defaultTag:qf,name:"Dialog.Panel"}))}let zf="div";function Xf(e,t){let{transition:r=!1,...n}=e,[{dialogState:o,unmount:a}]=Qr("Dialog.Backdrop"),i=we({open:o===0}),s={ref:t,"aria-hidden":!0},l=r?go:f.Fragment,c=r?{unmount:a}:{},u=se();return f.createElement(l,{...c},u({ourProps:s,theirProps:n,slot:i,defaultTag:zf,name:"Dialog.Backdrop"}))}let Yf="h2";function Kf(e,t){let r=f.useId(),{id:n=`headlessui-dialog-title-${r}`,...o}=e,[{dialogState:a,setTitleId:i}]=Qr("Dialog.Title"),s=fe(t);f.useEffect(()=>(i(n),()=>i(null)),[n,i]);let l=we({open:a===0}),c={ref:s,id:n};return se()({ourProps:c,theirProps:o,slot:l,defaultTag:Yf,name:"Dialog.Title"})}let Qf=re(Vf),Zr=re(Gf);re(Xf);let Zf=re(Kf),bo=Object.assign(Qf,{Panel:Zr,Title:Zf,Description:Qu});var ys;let Jf=(ys=f.startTransition)!=null?ys:function(e){e()};var ep=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ep||{}),tp=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.SetButtonElement=4]="SetButtonElement",e[e.SetPanelElement=5]="SetPanelElement",e))(tp||{});let rp={0:e=>({...e,disclosureState:ve(e.disclosureState,{0:1,1:0})}),1:e=>e.disclosureState===1?e:{...e,disclosureState:1},2(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},3(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}},4(e,t){return e.buttonElement===t.element?e:{...e,buttonElement:t.element}},5(e,t){return e.panelElement===t.element?e:{...e,panelElement:t.element}}},yo=f.createContext(null);yo.displayName="DisclosureContext";function Eo(e){let t=f.useContext(yo);if(t===null){let r=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Eo),r}return t}let xo=f.createContext(null);xo.displayName="DisclosureAPIContext";function Es(e){let t=f.useContext(xo);if(t===null){let r=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Es),r}return t}let wo=f.createContext(null);wo.displayName="DisclosurePanelContext";function np(){return f.useContext(wo)}function op(e,t){return ve(t.type,rp,e,t)}let ap=f.Fragment;function ip(e,t){let{defaultOpen:r=!1,...n}=e,o=f.useRef(null),a=fe(t,In(m=>{o.current=m},e.as===void 0||Ct(e.as))),i=f.useReducer(op,{disclosureState:r?0:1,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:s,buttonId:l},c]=i,u=H(m=>{c({type:1});let v=Je(o.current);if(!v||!l)return;let b=m?Ie(m)?m:"current"in m&&Ie(m.current)?m.current:v.getElementById(l):v.getElementById(l);b==null||b.focus()}),h=f.useMemo(()=>({close:u}),[u]),d=we({open:s===0,close:u}),p={ref:a},g=se();return f.createElement(yo.Provider,{value:i},f.createElement(xo.Provider,{value:h},f.createElement(Tr,{value:u},f.createElement(Wr,{value:ve(s,{0:de.Open,1:de.Closed})},g({ourProps:p,theirProps:n,slot:d,defaultTag:ap,name:"Disclosure"})))))}let sp="button";function lp(e,t){let r=f.useId(),{id:n=`headlessui-disclosure-button-${r}`,disabled:o=!1,autoFocus:a=!1,...i}=e,[s,l]=Eo("Disclosure.Button"),c=np(),u=c===null?!1:c===s.panelId,h=f.useRef(null),d=fe(h,t,H(k=>{if(!u)return l({type:4,element:k})}));f.useEffect(()=>{if(!u)return l({type:2,buttonId:n}),()=>{l({type:2,buttonId:null})}},[n,l,u]);let p=H(k=>{var S;if(u){if(s.disclosureState===1)return;switch(k.key){case oe.Space:case oe.Enter:k.preventDefault(),k.stopPropagation(),l({type:0}),(S=s.buttonElement)==null||S.focus();break}}else switch(k.key){case oe.Space:case oe.Enter:k.preventDefault(),k.stopPropagation(),l({type:0});break}}),g=H(k=>{switch(k.key){case oe.Space:k.preventDefault();break}}),m=H(k=>{var S;er(k.currentTarget)||o||(u?(l({type:0}),(S=s.buttonElement)==null||S.focus()):l({type:0}))}),{isFocusVisible:v,focusProps:b}=Cn({autoFocus:a}),{isHovered:E,hoverProps:w}=Nn({isDisabled:o}),{pressed:_,pressProps:P}=An({disabled:o}),O=we({open:s.disclosureState===0,hover:E,active:_,disabled:o,focus:v,autofocus:a}),N=zn(e,s.buttonElement),M=bt(u?{ref:d,type:N,disabled:o||void 0,autoFocus:a,onKeyDown:p,onClick:m}:{ref:d,id:n,type:N,"aria-expanded":s.disclosureState===0,"aria-controls":s.panelElement?s.panelId:void 0,disabled:o||void 0,autoFocus:a,onKeyDown:p,onKeyUp:g,onClick:m},b,w,P);return se()({ourProps:M,theirProps:i,slot:O,defaultTag:sp,name:"Disclosure.Button"})}let up="div",cp=Fe.RenderStrategy|Fe.Static;function dp(e,t){let r=f.useId(),{id:n=`headlessui-disclosure-panel-${r}`,transition:o=!1,...a}=e,[i,s]=Eo("Disclosure.Panel"),{close:l}=Es("Disclosure.Panel"),[c,u]=f.useState(null),h=fe(t,H(E=>{Jf(()=>s({type:5,element:E}))}),u);f.useEffect(()=>(s({type:3,panelId:n}),()=>{s({type:3,panelId:null})}),[n,s]);let d=dt(),[p,g]=lr(o,c,d!==null?(d&de.Open)===de.Open:i.disclosureState===0),m=we({open:i.disclosureState===0,close:l}),v={ref:h,id:n,...sr(g)},b=se();return f.createElement(lo,null,f.createElement(wo.Provider,{value:i.panelId},b({ourProps:v,theirProps:a,slot:m,defaultTag:up,features:cp,visible:p,name:"Disclosure.Panel"})))}let fp=re(ip),Ue=re(lp),_o=re(dp),xs=Object.assign(fp,{Button:Ue,Panel:_o}),ws=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function _s(e){var t,r;let n=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!Se(o))return n;let a=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let i=a?(r=o.innerText)!=null?r:"":n;return ws.test(i)&&(i=i.replace(ws,"")),i}function pp(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(o=>{let a=document.getElementById(o);if(a){let i=a.getAttribute("aria-label");return typeof i=="string"?i.trim():_s(a).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return _s(e).trim()}function mp(e){let t=f.useRef(""),r=f.useRef("");return H(()=>{let n=e.current;if(!n)return"";let o=n.innerText;if(t.current===o)return r.current;let a=pp(n).trim().toLowerCase();return t.current=o,r.current=a,a})}var hp=Object.defineProperty,gp=(e,t,r)=>t in e?hp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ps=(e,t,r)=>(gp(e,typeof t!="symbol"?t+"":t,r),r),Ne=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ne||{}),Jr=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Jr||{}),le=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItems=5]="RegisterItems",e[e.UnregisterItems=6]="UnregisterItems",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e[e.SortItems=9]="SortItems",e[e.MarkButtonAsMoved=10]="MarkButtonAsMoved",e))(le||{});function Ss(e,t=r=>r){let r=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,n=ui(t(e.items.slice()),a=>a.dataRef.current.domRef.current),o=r?n.indexOf(r):null;return o===-1&&(o=null),{items:n,activeItemIndex:o}}let vp={1(e){if(e.menuState===1)return e;let t=e.buttonElement?qr.Tracked(ls(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:be.Nothing},menuState:1,buttonPositionState:t}},0(e,t){return e.menuState===0?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:qr.Idle}},2:(e,t)=>{var r,n,o,a,i;if(e.menuState===1)return e;let s={...e,searchQuery:"",activationTrigger:(r=t.trigger)!=null?r:1,__demoMode:!1};if(t.focus===be.Nothing)return{...s,activeItemIndex:null};if(t.focus===be.Specific)return{...s,activeItemIndex:e.items.findIndex(u=>u.id===t.id)};if(t.focus===be.Previous){let u=e.activeItemIndex;if(u!==null){let h=e.items[u].dataRef.current.domRef,d=Ur(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(d!==null){let p=e.items[d].dataRef.current.domRef;if(((n=h.current)==null?void 0:n.previousElementSibling)===p.current||((o=p.current)==null?void 0:o.previousElementSibling)===null)return{...s,activeItemIndex:d}}}}else if(t.focus===be.Next){let u=e.activeItemIndex;if(u!==null){let h=e.items[u].dataRef.current.domRef,d=Ur(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(d!==null){let p=e.items[d].dataRef.current.domRef;if(((a=h.current)==null?void 0:a.nextElementSibling)===p.current||((i=p.current)==null?void 0:i.nextElementSibling)===null)return{...s,activeItemIndex:d}}}}let l=Ss(e),c=Ur(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:u=>u.id,resolveDisabled:u=>u.dataRef.current.disabled});return{...s,...l,activeItemIndex:c}},3:(e,t)=>{let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),o=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(i=>{var s;return((s=i.dataRef.current.textValue)==null?void 0:s.startsWith(n))&&!i.dataRef.current.disabled}),a=o?e.items.indexOf(o):-1;return a===-1||a===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:a,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,t)=>{let r=e.items.concat(t.items.map(o=>o)),n=e.activeItemIndex;return e.pendingFocus.focus!==be.Nothing&&(n=Ur(e.pendingFocus,{resolveItems:()=>r,resolveActiveIndex:()=>e.activeItemIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled})),{...e,items:r,activeItemIndex:n,pendingFocus:{focus:be.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let r=e.items,n=[],o=new Set(t.items);for(let[a,i]of r.entries())if(o.has(i.id)&&(n.push(a),o.delete(i.id),o.size===0))break;if(n.length>0){r=r.slice();for(let a of n.reverse())r.splice(a,1)}return{...e,items:r,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...Ss(e),pendingShouldSort:!1}:e,10(e){return e.buttonPositionState.kind!=="Tracked"?e:{...e,buttonPositionState:qr.Moved}}},bp=class Zl extends Dn{constructor(t){super(t),Ps(this,"actions",{registerItem:ei(()=>{let r=[],n=new Set;return[(o,a)=>{n.has(a)||(n.add(a),r.push({id:o,dataRef:a}))},()=>(n.clear(),this.send({type:5,items:r.splice(0)}))]}),unregisterItem:ei(()=>{let r=[];return[n=>r.push(n),()=>this.send({type:6,items:r.splice(0)})]})}),Ps(this,"selectors",{activeDescendantId(r){var n;let o=r.activeItemIndex,a=r.items;return o===null||(n=a[o])==null?void 0:n.id},isActive(r,n){var o;let a=r.activeItemIndex,i=r.items;return a!==null?((o=i[a])==null?void 0:o.id)===n:!1},shouldScrollIntoView(r,n){return r.__demoMode||r.menuState!==0||r.activationTrigger===0?!1:this.isActive(r,n)},didButtonMove(r){return r.buttonPositionState.kind==="Moved"}}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let r=this.state.id,n=nr.get(null);this.disposables.add(n.on(ri.Push,o=>{!n.selectors.isTop(o,r)&&this.state.menuState===0&&this.send({type:1})})),this.on(0,()=>n.actions.push(r)),this.on(1,()=>n.actions.pop(r))}this.disposables.group(r=>{this.on(1,n=>{n.buttonElement&&(r.dispose(),r.add(yf(n.buttonElement,n.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:t,__demoMode:r=!1}){return new Zl({id:t,__demoMode:r,menuState:r?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:be.Nothing},buttonPositionState:qr.Idle})}reduce(t,r){return ve(r.type,vp,t,r)}};const Ts=f.createContext(null);function Po(e){let t=f.useContext(Ts);if(t===null){let r=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Os),r}return t}function Os({id:e,__demoMode:t=!1}){let r=f.useMemo(()=>bp.new({id:e,__demoMode:t}),[]);return Vr(()=>r.dispose()),r}let yp=f.Fragment;function Ep(e,t){let r=f.useId(),{__demoMode:n=!1,...o}=e,a=Os({id:r,__demoMode:n}),[i,s,l]=_e(a,v=>[v.menuState,v.itemsElement,v.buttonElement]),c=fe(t),u=nr.get(null),h=_e(u,f.useCallback(v=>u.selectors.isTop(v,r),[u,r]));qn(h,[l,s],(v,b)=>{var E;a.send({type:le.CloseMenu}),Cr(b,Nr.Loose)||(v.preventDefault(),(E=a.state.buttonElement)==null||E.focus())});let d=H(()=>{a.send({type:le.CloseMenu})}),p=we({open:i===Ne.Open,close:d}),g={ref:c},m=se();return f.createElement(Ji,null,f.createElement(Ts.Provider,{value:a},f.createElement(Wr,{value:ve(i,{[Ne.Open]:de.Open,[Ne.Closed]:de.Closed})},m({ourProps:g,theirProps:o,slot:p,defaultTag:yp,name:"Menu"}))))}let xp="button";function wp(e,t){let r=Po("Menu.Button"),n=f.useId(),{id:o=`headlessui-menu-button-${n}`,disabled:a=!1,autoFocus:i=!1,...s}=e,l=f.useRef(null),c=sf(),u=fe(t,l,Yi(),H(S=>r.send({type:le.SetButtonElement,element:S}))),h=H(S=>{switch(S.key){case oe.Space:case oe.Enter:case oe.ArrowDown:S.preventDefault(),S.stopPropagation(),r.send({type:le.OpenMenu,focus:{focus:be.First}});break;case oe.ArrowUp:S.preventDefault(),S.stopPropagation(),r.send({type:le.OpenMenu,focus:{focus:be.Last}});break}}),d=H(S=>{switch(S.key){case oe.Space:S.preventDefault();break}}),[p,g,m]=_e(r,S=>[S.menuState,S.buttonElement,S.itemsElement]),v=p===Ne.Open;Tc(v,{trigger:g,action:f.useCallback(S=>{if(g!=null&&g.contains(S.target))return Rr.Ignore;let C=S.target.closest('[role="menuitem"]:not([data-disabled])');return Se(C)?Rr.Select(C):m!=null&&m.contains(S.target)?Rr.Ignore:Rr.Close},[g,m]),close:f.useCallback(()=>r.send({type:le.CloseMenu}),[]),select:f.useCallback(S=>S.click(),[])});let b=nc(S=>{var C;a||(p===Ne.Open?(zt.flushSync(()=>r.send({type:le.CloseMenu})),(C=l.current)==null||C.focus({preventScroll:!0})):(S.preventDefault(),r.send({type:le.OpenMenu,focus:{focus:be.Nothing},trigger:Jr.Pointer})))}),{isFocusVisible:E,focusProps:w}=Cn({autoFocus:i}),{isHovered:_,hoverProps:P}=Nn({isDisabled:a}),{pressed:O,pressProps:N}=An({disabled:a}),M=we({open:p===Ne.Open,active:O||p===Ne.Open,disabled:a,hover:_,focus:E,autofocus:i}),k=bt(c(),{ref:u,id:o,type:zn(e,l.current),"aria-haspopup":"menu","aria-controls":m==null?void 0:m.id,"aria-expanded":p===Ne.Open,disabled:a||void 0,autoFocus:i,onKeyDown:h,onKeyUp:d},b,w,P,N);return se()({ourProps:k,theirProps:s,slot:M,defaultTag:xp,name:"Menu.Button"})}let _p="div",Pp=Fe.RenderStrategy|Fe.Static;function Sp(e,t){let r=f.useId(),{id:n=`headlessui-menu-items-${r}`,anchor:o,portal:a=!1,modal:i=!0,transition:s=!1,...l}=e,c=Xi(o),u=Po("Menu.Items"),[h,d]=Qi(c),p=Ki(),[g,m]=f.useState(null),v=fe(t,c?h:null,H(R=>u.send({type:le.SetItemsElement,element:R})),m),[b,E]=_e(u,R=>[R.menuState,R.buttonElement]),w=xt(E),_=xt(g);c&&(a=!0);let P=dt(),[O,N]=lr(s,g,P!==null?(P&de.Open)===de.Open:b===Ne.Open);Vn(O,E,()=>{u.send({type:le.CloseMenu})});let M=_e(u,R=>R.__demoMode),k=M?!1:i&&b===Ne.Open;Xn(k,_);let S=M?!1:i&&b===Ne.Open;si(S,{allowed:f.useCallback(()=>[E,g],[E,g])});let C=_e(u,u.selectors.didButtonMove)?!1:O;f.useEffect(()=>{let R=g;R&&b===Ne.Open&&($a(R)||R.focus({preventScroll:!0}))},[b,g]),Hc(b===Ne.Open,{container:g,accept(R){return R.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:R.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(R){R.setAttribute("role","none")}});let j=vt(),$=H(R=>{var L,z,K;switch(j.dispose(),R.key){case oe.Space:if(u.state.searchQuery!=="")return R.preventDefault(),R.stopPropagation(),u.send({type:le.Search,value:R.key});case oe.Enter:if(R.preventDefault(),R.stopPropagation(),u.state.activeItemIndex!==null){let{dataRef:J}=u.state.items[u.state.activeItemIndex];(z=(L=J.current)==null?void 0:L.domRef.current)==null||z.click()}u.send({type:le.CloseMenu}),li(u.state.buttonElement);break;case oe.ArrowDown:return R.preventDefault(),R.stopPropagation(),u.send({type:le.GoToItem,focus:be.Next});case oe.ArrowUp:return R.preventDefault(),R.stopPropagation(),u.send({type:le.GoToItem,focus:be.Previous});case oe.Home:case oe.PageUp:return R.preventDefault(),R.stopPropagation(),u.send({type:le.GoToItem,focus:be.First});case oe.End:case oe.PageDown:return R.preventDefault(),R.stopPropagation(),u.send({type:le.GoToItem,focus:be.Last});case oe.Escape:R.preventDefault(),R.stopPropagation(),zt.flushSync(()=>u.send({type:le.CloseMenu})),(K=u.state.buttonElement)==null||K.focus({preventScroll:!0});break;case oe.Tab:R.preventDefault(),R.stopPropagation(),zt.flushSync(()=>u.send({type:le.CloseMenu})),xc(u.state.buttonElement,R.shiftKey?xe.Previous:xe.Next);break;default:R.key.length===1&&(u.send({type:le.Search,value:R.key}),j.setTimeout(()=>u.send({type:le.ClearSearch}),350));break}}),A=H(R=>{switch(R.key){case oe.Space:R.preventDefault();break}}),D=we({open:b===Ne.Open}),U=bt(c?p():{},{"aria-activedescendant":_e(u,u.selectors.activeDescendantId),"aria-labelledby":_e(u,R=>{var L;return(L=R.buttonElement)==null?void 0:L.id}),id:n,onKeyDown:$,onKeyUp:A,role:"menu",tabIndex:b===Ne.Open?0:void 0,ref:v,style:{...l.style,...d,"--button-width":za(O,E,!0).width},...sr(N)}),q=se();return f.createElement(co,{enabled:a?e.static||O:!1,ownerDocument:w},q({ourProps:U,theirProps:l,slot:D,defaultTag:_p,features:Pp,visible:C,name:"Menu.Items"}))}let Tp=f.Fragment;function Op(e,t){let r=f.useId(),{id:n=`headlessui-menu-item-${r}`,disabled:o=!1,...a}=e,i=Po("Menu.Item"),s=_e(i,C=>i.selectors.isActive(C,n)),l=f.useRef(null),c=fe(t,l),u=_e(i,C=>i.selectors.shouldScrollIntoView(C,n));ce(()=>{if(u)return Re().requestAnimationFrame(()=>{var C,j;(j=(C=l.current)==null?void 0:C.scrollIntoView)==null||j.call(C,{block:"nearest"})})},[u,l]);let h=mp(l),d=f.useRef({disabled:o,domRef:l,get textValue(){return h()}});ce(()=>{d.current.disabled=o},[d,o]),ce(()=>(i.actions.registerItem(n,d),()=>i.actions.unregisterItem(n)),[d,n]);let p=H(()=>{i.send({type:le.CloseMenu})}),g=H(C=>{if(o)return C.preventDefault();i.send({type:le.CloseMenu}),li(i.state.buttonElement)}),m=H(()=>{if(o)return i.send({type:le.GoToItem,focus:be.Nothing});i.send({type:le.GoToItem,focus:be.Specific,id:n})}),v=kc(),b=H(C=>v.update(C)),E=H(C=>{v.wasMoved(C)&&(o||s||i.send({type:le.GoToItem,focus:be.Specific,id:n,trigger:Jr.Pointer}))}),w=H(C=>{v.wasMoved(C)&&(o||s&&i.state.activationTrigger===Jr.Pointer&&i.send({type:le.GoToItem,focus:be.Nothing}))}),[_,P]=qa(),[O,N]=Va(),M=we({active:s,focus:s,disabled:o,close:p}),k={id:n,ref:c,role:"menuitem",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-labelledby":_,"aria-describedby":O,disabled:void 0,onClick:g,onFocus:m,onPointerEnter:b,onMouseEnter:b,onPointerMove:E,onMouseMove:E,onPointerLeave:w,onMouseLeave:w},S=se();return f.createElement(P,null,f.createElement(N,null,S({ourProps:k,theirProps:a,slot:M,defaultTag:Tp,name:"Menu.Item"})))}let Np="div";function Cp(e,t){let[r,n]=qa(),o=e,a={ref:t,"aria-labelledby":r,role:"group"},i=se();return f.createElement(n,null,i({ourProps:a,theirProps:o,slot:{},defaultTag:Np,name:"Menu.Section"}))}let Rp="header";function Ap(e,t){let r=f.useId(),{id:n=`headlessui-menu-heading-${r}`,...o}=e,a=Mn();ce(()=>a.register(n),[n,a.register]);let i={id:n,ref:t,role:"presentation",...a.props};return se()({ourProps:i,theirProps:o,slot:{},defaultTag:Rp,name:"Menu.Heading"})}let jp="div";function kp(e,t){let r=e,n={ref:t,role:"separator"};return se()({ourProps:n,theirProps:r,slot:{},defaultTag:jp,name:"Menu.Separator"})}let Ip=re(Ep),Ns=re(wp),Cs=re(Sp),en=re(Op),$p=re(Cp),Mp=re(Ap),Lp=re(kp),Dp=Object.assign(Ip,{Button:Ns,Items:Cs,Item:en,Section:$p,Heading:Mp,Separator:Lp});var Fp=Object.defineProperty,Hp=(e,t,r)=>t in e?Fp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rs=(e,t,r)=>(Hp(e,typeof t!="symbol"?t+"":t,r),r),ye=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ye||{}),Bp=(e=>(e[e.OpenPopover=0]="OpenPopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(Bp||{});let Wp={0:e=>e.popoverState===0?e:{...e,popoverState:0,__demoMode:!1},1(e){return e.popoverState===1?e:{...e,popoverState:1,__demoMode:!1}},2(e,t){return e.button===t.button?e:{...e,button:t.button}},3(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},4(e,t){return e.panel===t.panel?e:{...e,panel:t.panel}},5(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}};class So extends Dn{constructor(t){super(t),Rs(this,"actions",{close:()=>this.send({type:1}),refocusableClose:r=>{this.actions.close();let n=r?Se(r)?r:"current"in r&&Se(r.current)?r.current:this.state.button:this.state.button;n==null||n.focus()},open:()=>this.send({type:0}),setButtonId:r=>this.send({type:3,buttonId:r}),setButton:r=>this.send({type:2,button:r}),setPanelId:r=>this.send({type:5,panelId:r}),setPanel:r=>this.send({type:4,panel:r})}),Rs(this,"selectors",{isPortalled:r=>{var n;if(!r.button||!r.panel)return!1;let o=(n=Je(r.button))!=null?n:document;for(let h of o.querySelectorAll("body > *"))if(Number(h==null?void 0:h.contains(r.button))^Number(h==null?void 0:h.contains(r.panel)))return!0;let a=ir(o),i=a.indexOf(r.button),s=(i+a.length-1)%a.length,l=(i+1)%a.length,c=a[s],u=a[l];return!r.panel.contains(c)&&!r.panel.contains(u)}});{let r=this.state.id,n=nr.get(null);this.on(0,()=>n.actions.push(r)),this.on(1,()=>n.actions.pop(r))}}static new({id:t,__demoMode:r=!1}){return new So({id:t,__demoMode:r,popoverState:r?0:1,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(t,r){return ve(r.type,Wp,t,r)}}const As=f.createContext(null);function tn(e){let t=f.useContext(As);if(t===null){let r=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,tn),r}return t}function Up({id:e,__demoMode:t=!1}){let r=f.useMemo(()=>So.new({id:e,__demoMode:t}),[]);return Vr(()=>r.dispose()),r}let To=f.createContext(null);To.displayName="PopoverGroupContext";function js(){return f.useContext(To)}let rn=f.createContext(null);rn.displayName="PopoverPanelContext";function Vp(){return f.useContext(rn)}let qp="div";function Gp(e,t){var r;let n=f.useId(),{__demoMode:o=!1,...a}=e,i=Up({id:n,__demoMode:o}),s=f.useRef(null),l=fe(t,In(A=>{s.current=A})),[c,u,h,d,p]=_e(i,f.useCallback(A=>[A.popoverState,A.button,A.panel,A.buttonId,A.panelId],[])),g=_c((r=s.current)!=null?r:u),m=et(d),v=et(p),b=f.useMemo(()=>({buttonId:m,panelId:v,close:i.actions.close}),[m,v,i]),E=js(),w=E==null?void 0:E.registerPopover,_=H(()=>{var A,D;let U=st((A=s.current)!=null?A:u);return(D=E==null?void 0:E.isFocusWithinPopoverGroup())!=null?D:U&&((u==null?void 0:u.contains(U))||(h==null?void 0:h.contains(U)))});f.useEffect(()=>w==null?void 0:w(b),[w,b]);let[P,O]=is(),N=fo(u),M=us({mainTreeNode:N,portals:P,defaultContainers:[{get current(){return i.state.button}},{get current(){return i.state.panel}}]});Gn(g,"focus",A=>{var D,U,q,R,L,z;A.target!==window&&Ie(A.target)&&i.state.popoverState===ye.Open&&(_()||i.state.button&&i.state.panel&&(M.contains(A.target)||(U=(D=i.state.beforePanelSentinel.current)==null?void 0:D.contains)!=null&&U.call(D,A.target)||(R=(q=i.state.afterPanelSentinel.current)==null?void 0:q.contains)!=null&&R.call(q,A.target)||(z=(L=i.state.afterButtonSentinel.current)==null?void 0:L.contains)!=null&&z.call(L,A.target)||i.actions.close()))},!0);let k=c===ye.Open;qn(k,M.resolveContainers,(A,D)=>{i.actions.close(),Cr(D,Nr.Loose)||(A.preventDefault(),u==null||u.focus())});let S=we({open:c===ye.Open,close:i.actions.refocusableClose}),C=_e(i,f.useCallback(A=>ve(A.popoverState,{[ye.Open]:de.Open,[ye.Closed]:de.Closed}),[])),j={ref:l},$=se();return f.createElement(Gr,{node:N},f.createElement(Ji,null,f.createElement(rn.Provider,{value:null},f.createElement(As.Provider,{value:i},f.createElement(Tr,{value:i.actions.refocusableClose},f.createElement(Wr,{value:C},f.createElement(O,null,$({ourProps:j,theirProps:a,slot:S,defaultTag:qp,name:"Popover"}))))))))}let zp="button";function Xp(e,t){let r=f.useId(),{id:n=`headlessui-popover-button-${r}`,disabled:o=!1,autoFocus:a=!1,...i}=e,s=tn("Popover.Button"),[l,c,u,h,d,p,g]=_e(s,f.useCallback(B=>[B.popoverState,s.selectors.isPortalled(B),B.button,B.buttonId,B.panel,B.panelId,B.afterButtonSentinel],[])),m=f.useRef(null),v=`headlessui-focus-sentinel-${f.useId()}`,b=js(),E=b==null?void 0:b.closeOthers,w=Vp()!==null;f.useEffect(()=>{if(!w)return s.actions.setButtonId(n),()=>s.actions.setButtonId(null)},[w,n,s]);let[_]=f.useState(()=>Symbol()),P=fe(m,t,Yi(),H(B=>{if(!w){if(B)s.state.buttons.current.push(_);else{let V=s.state.buttons.current.indexOf(_);V!==-1&&s.state.buttons.current.splice(V,1)}s.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),B&&s.actions.setButton(B)}})),O=fe(m,t),N=H(B=>{var V,ee,Q;if(w){if(s.state.popoverState===ye.Closed)return;switch(B.key){case oe.Space:case oe.Enter:B.preventDefault(),(ee=(V=B.target).click)==null||ee.call(V),s.actions.close(),(Q=s.state.button)==null||Q.focus();break}}else switch(B.key){case oe.Space:case oe.Enter:B.preventDefault(),B.stopPropagation(),s.state.popoverState===ye.Closed?(E==null||E(s.state.buttonId),s.actions.open()):s.actions.close();break;case oe.Escape:if(s.state.popoverState!==ye.Open)return E==null?void 0:E(s.state.buttonId);if(!m.current)return;let pe=st(m.current);if(pe&&!m.current.contains(pe))return;B.preventDefault(),B.stopPropagation(),s.actions.close();break}}),M=H(B=>{w||B.key===oe.Space&&B.preventDefault()}),k=H(B=>{var V,ee;er(B.currentTarget)||o||(w?(s.actions.close(),(V=s.state.button)==null||V.focus()):(B.preventDefault(),B.stopPropagation(),s.state.popoverState===ye.Closed?(E==null||E(s.state.buttonId),s.actions.open()):s.actions.close(),(ee=s.state.button)==null||ee.focus()))}),S=H(B=>{B.preventDefault(),B.stopPropagation()}),{isFocusVisible:C,focusProps:j}=Cn({autoFocus:a}),{isHovered:$,hoverProps:A}=Nn({isDisabled:o}),{pressed:D,pressProps:U}=An({disabled:o}),q=l===ye.Open,R=we({open:q,active:D||q,disabled:o,hover:$,focus:C,autofocus:a}),L=zn(e,u),z=bt(w?{ref:O,type:L,onKeyDown:N,onClick:k,disabled:o||void 0,autoFocus:a}:{ref:P,id:h,type:L,"aria-expanded":l===ye.Open,"aria-controls":d?p:void 0,disabled:o||void 0,autoFocus:a,onKeyDown:N,onKeyUp:M,onClick:k,onMouseDown:S},j,A,U),K=mo(),J=H(()=>{if(!Se(s.state.panel))return;let B=s.state.panel;function V(){ve(K.current,{[Le.Forwards]:()=>$e(B,xe.First),[Le.Backwards]:()=>$e(B,xe.Last)})===At.Error&&$e(ir(it(s.state.button)).filter(ee=>ee.dataset.headlessuiFocusGuard!=="true"),ve(K.current,{[Le.Forwards]:xe.Next,[Le.Backwards]:xe.Previous}),{relativeTo:s.state.button})}V()}),F=se();return f.createElement(f.Fragment,null,F({ourProps:z,theirProps:i,slot:R,defaultTag:zp,name:"Popover.Button"}),q&&!w&&c&&f.createElement(Rt,{id:v,ref:g,features:Et.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:J}))}let Yp="div",Kp=Fe.RenderStrategy|Fe.Static;function ks(e,t){let r=f.useId(),{id:n=`headlessui-popover-backdrop-${r}`,transition:o=!1,...a}=e,i=tn("Popover.Backdrop"),s=_e(i,f.useCallback(b=>b.popoverState,[])),[l,c]=f.useState(null),u=fe(t,c),h=dt(),[d,p]=lr(o,l,h!==null?(h&de.Open)===de.Open:s===ye.Open),g=H(b=>{if(er(b.currentTarget))return b.preventDefault();i.actions.close()}),m=we({open:s===ye.Open}),v={ref:u,id:n,"aria-hidden":!0,onClick:g,...sr(p)};return se()({ourProps:v,theirProps:a,slot:m,defaultTag:Yp,features:Kp,visible:d,name:"Popover.Backdrop"})}let Qp="div",Zp=Fe.RenderStrategy|Fe.Static;function Jp(e,t){let r=f.useId(),{id:n=`headlessui-popover-panel-${r}`,focus:o=!1,anchor:a,portal:i=!1,modal:s=!1,transition:l=!1,...c}=e,u=tn("Popover.Panel"),h=_e(u,u.selectors.isPortalled),[d,p,g,m,v]=_e(u,f.useCallback(F=>[F.popoverState,F.button,F.__demoMode,F.beforePanelSentinel,F.afterPanelSentinel],[])),b=`headlessui-focus-sentinel-before-${r}`,E=`headlessui-focus-sentinel-after-${r}`,w=f.useRef(null),_=Xi(a),[P,O]=Qi(_),N=Ki();_&&(i=!0);let[M,k]=f.useState(null),S=fe(w,t,_?P:null,u.actions.setPanel,k),C=xt(p),j=xt(w.current);ce(()=>(u.actions.setPanelId(n),()=>u.actions.setPanelId(null)),[n,u]);let $=dt(),[A,D]=lr(l,M,$!==null?($&de.Open)===de.Open:d===ye.Open);Vn(A,p,u.actions.close),Xn(g?!1:s&&A,j);let U=H(F=>{var B;switch(F.key){case oe.Escape:if(u.state.popoverState!==ye.Open||!w.current)return;let V=st(w.current);if(V&&!w.current.contains(V))return;F.preventDefault(),F.stopPropagation(),u.actions.close(),(B=u.state.button)==null||B.focus();break}});f.useEffect(()=>{var F;e.static||d===ye.Closed&&((F=e.unmount)==null||F)&&u.actions.setPanel(null)},[d,e.unmount,e.static,u]),f.useEffect(()=>{if(g||!o||d!==ye.Open||!w.current)return;let F=st(w.current);w.current.contains(F)||$e(w.current,xe.First)},[g,o,w.current,d]);let q=we({open:d===ye.Open,close:u.actions.refocusableClose}),R=bt(_?N():{},{ref:S,id:n,onKeyDown:U,onBlur:o&&d===ye.Open?F=>{var B,V,ee,Q,pe;let G=F.relatedTarget;G&&w.current&&((B=w.current)!=null&&B.contains(G)||(u.actions.close(),((ee=(V=m.current)==null?void 0:V.contains)!=null&&ee.call(V,G)||(pe=(Q=v.current)==null?void 0:Q.contains)!=null&&pe.call(Q,G))&&G.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...c.style,...O,"--button-width":za(A,p,!0).width},...sr(D)}),L=mo(),z=H(()=>{let F=w.current;if(!F)return;function B(){ve(L.current,{[Le.Forwards]:()=>{var V;$e(F,xe.First)===At.Error&&((V=u.state.afterPanelSentinel.current)==null||V.focus())},[Le.Backwards]:()=>{var V;(V=u.state.button)==null||V.focus({preventScroll:!0})}})}B()}),K=H(()=>{let F=w.current;if(!F)return;function B(){ve(L.current,{[Le.Forwards]:()=>{var V;if(!u.state.button)return;let ee=(V=it(u.state.button))!=null?V:document.body,Q=ir(ee),pe=Q.indexOf(u.state.button),G=Q.slice(0,pe+1),Ae=[...Q.slice(pe+1),...G];for(let Pe of Ae.slice())if(Pe.dataset.headlessuiFocusGuard==="true"||M!=null&&M.contains(Pe)){let he=Ae.indexOf(Pe);he!==-1&&Ae.splice(he,1)}$e(Ae,xe.First,{sorted:!1})},[Le.Backwards]:()=>{var V;$e(F,xe.Previous)===At.Error&&((V=u.state.button)==null||V.focus())}})}B()}),J=se();return f.createElement(lo,null,f.createElement(rn.Provider,{value:n},f.createElement(Tr,{value:u.actions.refocusableClose},f.createElement(co,{enabled:i?e.static||A:!1,ownerDocument:C},A&&h&&f.createElement(Rt,{id:b,ref:m,features:Et.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:z}),J({ourProps:R,theirProps:c,slot:q,defaultTag:Qp,features:Zp,visible:A,name:"Popover.Panel"}),A&&h&&f.createElement(Rt,{id:E,ref:v,features:Et.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:K})))))}let em="div";function tm(e,t){let r=f.useRef(null),n=fe(r,t),[o,a]=f.useState([]),i=H(m=>{a(v=>{let b=v.indexOf(m);if(b!==-1){let E=v.slice();return E.splice(b,1),E}return v})}),s=H(m=>(a(v=>[...v,m]),()=>i(m))),l=H(()=>{var m;let v=it(r.current);if(!v)return!1;let b=st(r.current);return(m=r.current)!=null&&m.contains(b)?!0:o.some(E=>{var w,_;return((w=v.getElementById(E.buttonId.current))==null?void 0:w.contains(b))||((_=v.getElementById(E.panelId.current))==null?void 0:_.contains(b))})}),c=H(m=>{for(let v of o)v.buttonId.current!==m&&v.close()}),u=f.useMemo(()=>({registerPopover:s,unregisterPopover:i,isFocusWithinPopoverGroup:l,closeOthers:c}),[s,i,l,c]),h=we({}),d=e,p={ref:n},g=se();return f.createElement(Gr,null,f.createElement(To.Provider,{value:u},g({ourProps:p,theirProps:d,slot:h,defaultTag:em,name:"Popover.Group"})))}let rm=re(Gp),Dt=re(Xp),nm=re(ks),om=re(ks),Ft=re(Jp),Oo=re(tm),mr=Object.assign(rm,{Button:Dt,Backdrop:om,Overlay:nm,Panel:Ft,Group:Oo});function am({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const im=T.forwardRef(am);function sm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const No=T.forwardRef(sm);function lm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"}))}const Is=T.forwardRef(lm);function um({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 14.15v4.25c0 1.094-.787 2.036-1.872 2.18-2.087.277-4.216.42-6.378.42s-4.291-.143-6.378-.42c-1.085-.144-1.872-1.086-1.872-2.18v-4.25m16.5 0a2.18 2.18 0 0 0 .75-1.661V8.706c0-1.081-.768-2.015-1.837-2.175a48.114 48.114 0 0 0-3.413-.387m4.5 8.006c-.194.165-.42.295-.673.38A23.978 23.978 0 0 1 12 15.75c-2.648 0-5.195-.429-7.577-1.22a2.016 2.016 0 0 1-.673-.38m0 0A2.18 2.18 0 0 1 3 12.489V8.706c0-1.081.768-2.015 1.837-2.175a48.111 48.111 0 0 1 3.413-.387m7.5 0V5.25A2.25 2.25 0 0 0 13.5 3h-3a2.25 2.25 0 0 0-2.25 2.25v.894m7.5 0a48.667 48.667 0 0 0-7.5 0M12 12.75h.008v.008H12v-.008Z"}))}const cm=T.forwardRef(um);function dm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6a7.5 7.5 0 1 0 7.5 7.5h-7.5V6Z"}),T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5H21A7.5 7.5 0 0 0 13.5 3v7.5Z"}))}const fm=T.forwardRef(dm);function pm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.042 21.672 13.684 16.6m0 0-2.51 2.225.569-9.47 5.227 7.917-3.286-.672ZM12 2.25V4.5m5.834.166-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243-1.59-1.59"}))}const mm=T.forwardRef(pm);function hm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.864 4.243A7.5 7.5 0 0 1 19.5 10.5c0 2.92-.556 5.709-1.568 8.268M5.742 6.364A7.465 7.465 0 0 0 4.5 10.5a7.464 7.464 0 0 1-1.15 3.993m1.989 3.559A11.209 11.209 0 0 0 8.25 10.5a3.75 3.75 0 1 1 7.5 0c0 .527-.021 1.049-.064 1.565M12 10.5a14.94 14.94 0 0 1-3.6 9.75m6.633-4.596a18.666 18.666 0 0 1-2.485 5.33"}))}const gm=T.forwardRef(hm);function vm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const $s=T.forwardRef(vm);function bm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"}))}const ym=T.forwardRef(bm);function Em({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 0 1-2.25 2.25M16.5 7.5V18a2.25 2.25 0 0 0 2.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 0 0 2.25 2.25h13.5M6 7.5h3v3H6v-3Z"}))}const xm=T.forwardRef(Em);function wm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const _m=T.forwardRef(wm);function Pm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))}const Sm=T.forwardRef(Pm);function Tm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 16.875h3.375m0 0h3.375m-3.375 0V13.5m0 3.375v3.375M6 10.5h2.25a2.25 2.25 0 0 0 2.25-2.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v2.25A2.25 2.25 0 0 0 6 10.5Zm0 9.75h2.25A2.25 2.25 0 0 0 10.5 18v-2.25a2.25 2.25 0 0 0-2.25-2.25H6a2.25 2.25 0 0 0-2.25 2.25V18A2.25 2.25 0 0 0 6 20.25Zm9.75-9.75H18a2.25 2.25 0 0 0 2.25-2.25V6A2.25 2.25 0 0 0 18 3.75h-2.25A2.25 2.25 0 0 0 13.5 6v2.25a2.25 2.25 0 0 0 2.25 2.25Z"}))}const Om=T.forwardRef(Tm);function Nm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const nn=T.forwardRef(Nm);function Cm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const Ht=T.forwardRef(Cm);function Rm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{fillRule:"evenodd",d:"M2 3.5A1.5 1.5 0 0 1 3.5 2h1.148a1.5 1.5 0 0 1 1.465 1.175l.716 3.223a1.5 1.5 0 0 1-1.052 1.767l-.933.267c-.41.117-.643.555-.48.95a11.542 11.542 0 0 0 6.254 6.254c.395.163.833-.07.95-.48l.267-.933a1.5 1.5 0 0 1 1.767-1.052l3.223.716A1.5 1.5 0 0 1 18 15.352V16.5a1.5 1.5 0 0 1-1.5 1.5H15c-1.149 0-2.263-.15-3.326-.43A13.022 13.022 0 0 1 2.43 8.326 13.019 13.019 0 0 1 2 5V3.5Z",clipRule:"evenodd"}))}const Am=T.forwardRef(Rm);function jm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{fillRule:"evenodd",d:"M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm6.39-2.908a.75.75 0 0 1 .766.027l3.5 2.25a.75.75 0 0 1 0 1.262l-3.5 2.25A.75.75 0 0 1 8 12.25v-4.5a.75.75 0 0 1 .39-.658Z",clipRule:"evenodd"}))}const km=T.forwardRef(jm);function Im({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{d:"M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z"}))}const $m=T.forwardRef(Im);function Mm({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{fillRule:"evenodd",d:"M14.5 10a4.5 4.5 0 0 0 4.284-5.882c-.105-.324-.51-.391-.752-.15L15.34 6.66a.454.454 0 0 1-.493.11 3.01 3.01 0 0 1-1.618-1.616.455.455 0 0 1 .11-.494l2.694-2.692c.24-.241.174-.647-.15-.752a4.5 4.5 0 0 0-5.873 4.575c.055.873-.128 1.808-.8 2.368l-7.23 6.024a2.724 2.724 0 1 0 3.837 3.837l6.024-7.23c.56-.672 1.495-.855 2.368-.8.096.007.193.01.291.01ZM5 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}),T.createElement("path",{d:"M14.5 11.5c.173 0 .345-.007.514-.022l3.754 3.754a2.5 2.5 0 0 1-3.536 3.536l-4.41-4.41 2.172-2.607c.052-.063.147-.138.342-.196.202-.06.469-.087.777-.067.128.008.257.012.387.012ZM6 4.586l2.33 2.33a.452.452 0 0 1-.08.09L6.8 8.214 4.586 6H3.309a.5.5 0 0 1-.447-.276l-1.7-3.402a.5.5 0 0 1 .093-.577l.49-.49a.5.5 0 0 1 .577-.094l3.402 1.7A.5.5 0 0 1 6 3.31v1.277Z"}))}const Lm=T.forwardRef(Mm),Ms=[{name:"Analytics",description:"Get a better understanding of your traffic",href:"#",icon:fm},{name:"Engagement",description:"Speak directly to your customers",href:"#",icon:mm},{name:"Security",description:"Your customers’ data will be safe and secure",href:"#",icon:gm},{name:"Integrations",description:"Connect with third-party tools",href:"#",icon:Om},{name:"Automations",description:"Build strategic funnels that will convert",href:"#",icon:im}],Dm=[{name:"Watch demo",href:"#",icon:km},{name:"Contact sales",href:"#",icon:Am}],Ls=[{name:"About us",href:"#",description:"Learn more about our company values and mission to empower others"},{name:"Careers",href:"#",description:"Looking for you next career opportunity? See all of our open positions"},{name:"Support",href:"#",description:"Get in touch with our dedicated support team or reach out on our community forums"},{name:"Blog",href:"#",description:"Read our latest announcements and get perspectives from our team"}];function Fm(){const[e,t]=f.useState(!1);return y.jsxs("header",{className:"bg-white dark:bg-gray-900",children:[y.jsxs("nav",{"aria-label":"Global",className:"mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8",children:[y.jsx("div",{className:"flex lg:flex-1",children:y.jsxs("a",{href:"#",className:"-m-1.5 p-1.5",children:[y.jsx("span",{className:"sr-only",children:"Your Company"}),y.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",className:"h-8 w-auto dark:hidden"}),y.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",className:"hidden h-8 w-auto dark:block"})]})}),y.jsx("div",{className:"flex lg:hidden",children:y.jsxs("button",{type:"button",onClick:()=>t(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 dark:text-gray-400",children:[y.jsx("span",{className:"sr-only",children:"Open main menu"}),y.jsx(No,{"aria-hidden":"true",className:"size-6"})]})}),y.jsxs(Oo,{className:"hidden lg:flex lg:gap-x-12",children:[y.jsxs(mr,{className:"relative",children:[y.jsxs(Dt,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white",children:["Product",y.jsx(Ht,{"aria-hidden":"true",className:"size-5 flex-none text-gray-400 dark:text-gray-500"})]}),y.jsxs(Ft,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-screen max-w-md -translate-x-1/2 overflow-hidden rounded-3xl bg-white shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",children:[y.jsx("div",{className:"p-4",children:Ms.map(r=>y.jsxs("div",{className:"group relative flex items-center gap-x-6 rounded-lg p-4 text-sm/6 hover:bg-gray-50 dark:hover:bg-white/5",children:[y.jsx("div",{className:"flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-700/50 dark:group-hover:bg-gray-700",children:y.jsx(r.icon,{"aria-hidden":"true",className:"size-6 text-gray-600 group-hover:text-indigo-600 dark:text-gray-400 dark:group-hover:text-white"})}),y.jsxs("div",{className:"flex-auto",children:[y.jsxs("a",{href:r.href,className:"block font-semibold text-gray-900 dark:text-white",children:[r.name,y.jsx("span",{className:"absolute inset-0"})]}),y.jsx("p",{className:"mt-1 text-gray-600 dark:text-gray-400",children:r.description})]})]},r.name))}),y.jsx("div",{className:"grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 dark:divide-white/10 dark:bg-gray-700/50",children:Dm.map(r=>y.jsxs("a",{href:r.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700/50",children:[y.jsx(r.icon,{"aria-hidden":"true",className:"size-5 flex-none text-gray-400 dark:text-gray-500"}),r.name]},r.name))})]})]}),y.jsx("a",{href:"#",className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:"Features"}),y.jsx("a",{href:"#",className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:"Marketplace"}),y.jsxs(mr,{className:"relative",children:[y.jsxs(Dt,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white",children:["Company",y.jsx(Ht,{"aria-hidden":"true",className:"size-5 flex-none text-gray-400 dark:text-gray-500"})]}),y.jsx(Ft,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-96 -translate-x-1/2 rounded-3xl bg-white p-4 shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:-outline-offset-1 dark:outline-white/10",children:Ls.map(r=>y.jsxs("div",{className:"relative rounded-lg p-4 hover:bg-gray-50 dark:hover:bg-white/5",children:[y.jsxs("a",{href:r.href,className:"block text-sm/6 font-semibold text-gray-900 dark:text-white",children:[r.name,y.jsx("span",{className:"absolute inset-0"})]}),y.jsx("p",{className:"mt-1 text-sm/6 text-gray-600 dark:text-gray-400",children:r.description})]},r.name))})]})]}),y.jsx("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:y.jsxs("a",{href:"#",className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:["Log in ",y.jsx("span",{"aria-hidden":"true",children:"→"})]})})]}),y.jsxs(bo,{open:e,onClose:t,className:"lg:hidden",children:[y.jsx("div",{className:"fixed inset-0 z-10"}),y.jsxs(Zr,{className:"fixed inset-y-0 right-0 z-10 flex w-full flex-col justify-between overflow-y-auto bg-white sm:max-w-sm sm:ring-1 sm:ring-gray-900/10 dark:bg-gray-900 dark:sm:ring-white/10",children:[y.jsxs("div",{className:"p-6",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("a",{href:"#",className:"-m-1.5 p-1.5",children:[y.jsx("span",{className:"sr-only",children:"Your Company"}),y.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",className:"h-8 w-auto dark:hidden"}),y.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",className:"hidden h-8 w-auto dark:block"})]}),y.jsxs("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-gray-400",children:[y.jsx("span",{className:"sr-only",children:"Close menu"}),y.jsx(nn,{"aria-hidden":"true",className:"size-6"})]})]}),y.jsx("div",{className:"mt-6 flow-root",children:y.jsxs("div",{className:"-my-6 divide-y divide-gray-500/10 dark:divide-white/10",children:[y.jsx("div",{className:"space-y-2 py-6",children:Ms.map(r=>y.jsxs("a",{href:r.href,className:"group -mx-3 flex items-center gap-x-6 rounded-lg p-3 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:[y.jsx("div",{className:"flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-800 dark:group-hover:bg-gray-700",children:y.jsx(r.icon,{"aria-hidden":"true",className:"size-6 text-gray-600 group-hover:text-indigo-600 dark:text-gray-300 dark:group-hover:text-white"})}),r.name]},r.name))}),y.jsxs("div",{className:"space-y-2 py-6",children:[y.jsx("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:"Features"}),y.jsx("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:"Marketplace"}),Ls.map(r=>y.jsx("a",{href:r.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:r.name},r.name))]}),y.jsx("div",{className:"py-6",children:y.jsx("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:"Log in"})})]})})]}),y.jsx("div",{className:"sticky bottom-0 grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 text-center dark:divide-white/5 dark:bg-gray-800/50",children:item.ctas.map(r=>y.jsx("a",{href:r.href,className:"p-3 text-base/7 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-800",children:r.title},r.title))})]})]})]})}function Hm(){return y.jsxs(xs,{as:"nav",className:"relative bg-white shadow dark:bg-gray-800/50 dark:shadow-none dark:after:pointer-events-none dark:after:absolute dark:after:inset-x-0 dark:after:bottom-0 dark:after:h-px dark:after:bg-white/10",children:[y.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:y.jsxs("div",{className:"flex h-16 justify-between",children:[y.jsxs("div",{className:"flex",children:[y.jsx("div",{className:"-ml-2 mr-2 flex items-center md:hidden",children:y.jsxs(Ue,{className:"group relative inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-600 dark:hover:bg-white/5 dark:hover:text-white dark:focus:ring-white",children:[y.jsx("span",{className:"absolute -inset-0.5"}),y.jsx("span",{className:"sr-only",children:"Open main menu"}),y.jsx(No,{"aria-hidden":"true",className:"block size-6 group-data-[open]:hidden"}),y.jsx(nn,{"aria-hidden":"true",className:"hidden size-6 group-data-[open]:block"})]})}),y.jsxs("div",{className:"flex shrink-0 items-center",children:[y.jsx("img",{alt:"Your Company",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",className:"h-8 w-auto dark:hidden"}),y.jsx("img",{alt:"Your Company",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",className:"hidden h-8 w-auto dark:block"})]}),y.jsxs("div",{className:"hidden md:ml-6 md:flex md:space-x-8",children:[y.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-indigo-600 px-1 pt-1 text-sm font-medium text-gray-900 dark:border-indigo-500 dark:text-white",children:"Dashboard"}),y.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",children:"Team"}),y.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",children:"Projects"}),y.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",children:"Calendar"})]})]}),y.jsxs("div",{className:"flex items-center",children:[y.jsx("div",{className:"shrink-0",children:y.jsxs("button",{type:"button",className:"relative inline-flex items-center gap-x-1.5 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:bg-indigo-500 dark:shadow-none dark:hover:bg-indigo-400 dark:focus-visible:outline-indigo-500",children:[y.jsx($m,{"aria-hidden":"true",className:"-ml-0.5 size-5"}),"New Job"]})}),y.jsxs("div",{className:"hidden md:ml-4 md:flex md:shrink-0 md:items-center",children:[y.jsxs("button",{type:"button",className:"relative rounded-full p-1 text-gray-400 hover:text-gray-500 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-indigo-600 dark:hover:text-white dark:focus:outline-indigo-500",children:[y.jsx("span",{className:"absolute -inset-1.5"}),y.jsx("span",{className:"sr-only",children:"View notifications"}),y.jsx(Is,{"aria-hidden":"true",className:"size-6"})]}),y.jsxs(Dp,{as:"div",className:"relative ml-3",children:[y.jsxs(Ns,{className:"relative flex rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:focus-visible:outline-indigo-500",children:[y.jsx("span",{className:"absolute -inset-1.5"}),y.jsx("span",{className:"sr-only",children:"Open user menu"}),y.jsx("img",{alt:"",src:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",className:"size-8 rounded-full bg-gray-100 outline outline-1 -outline-offset-1 outline-black/5 dark:bg-gray-800 dark:outline-white/10"})]}),y.jsxs(Cs,{transition:!0,className:"absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white py-1 shadow-lg outline outline-1 outline-black/5 transition data-[closed]:scale-95 data-[closed]:transform data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-75 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",children:[y.jsx(en,{children:y.jsx("a",{href:"#",className:"block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",children:"Your profile"})}),y.jsx(en,{children:y.jsx("a",{href:"#",className:"block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",children:"Settings"})}),y.jsx(en,{children:y.jsx("a",{href:"#",className:"block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",children:"Sign out"})})]})]})]})]})]})}),y.jsxs(_o,{className:"md:hidden",children:[y.jsxs("div",{className:"space-y-1 pb-3 pt-2",children:[y.jsx(Ue,{as:"a",href:"#",className:"block border-l-4 border-indigo-600 bg-indigo-50 py-2 pl-3 pr-4 text-base font-medium text-indigo-700 sm:pl-5 sm:pr-6 dark:border-indigo-500 dark:bg-indigo-600/10 dark:text-indigo-400",children:"Dashboard"}),y.jsx(Ue,{as:"a",href:"#",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",children:"Team"}),y.jsx(Ue,{as:"a",href:"#",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",children:"Projects"}),y.jsx(Ue,{as:"a",href:"#",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",children:"Calendar"})]}),y.jsxs("div",{className:"border-t border-gray-200 pb-3 pt-4 dark:border-white/10",children:[y.jsxs("div",{className:"flex items-center px-4 sm:px-6",children:[y.jsx("div",{className:"shrink-0",children:y.jsx("img",{alt:"",src:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",className:"size-10 rounded-full bg-gray-100 outline outline-1 -outline-offset-1 outline-black/5 dark:bg-gray-800 dark:outline-white/10"})}),y.jsxs("div",{className:"ml-3",children:[y.jsx("div",{className:"text-base font-medium text-gray-800 dark:text-white",children:"Tom Cook"}),y.jsx("div",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"tom@example.com"})]}),y.jsxs("button",{type:"button",className:"relative ml-auto shrink-0 rounded-full p-1 text-gray-400 hover:text-gray-500 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-indigo-600 dark:hover:text-white dark:focus:outline-indigo-500",children:[y.jsx("span",{className:"absolute -inset-1.5"}),y.jsx("span",{className:"sr-only",children:"View notifications"}),y.jsx(Is,{"aria-hidden":"true",className:"size-6"})]})]}),y.jsxs("div",{className:"mt-3 space-y-1",children:[y.jsx(Ue,{as:"a",href:"#",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",children:"Your profile"}),y.jsx(Ue,{as:"a",href:"#",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",children:"Settings"}),y.jsx(Ue,{as:"a",href:"#",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",children:"Sign out"})]})]})]})]})}var Co={exports:{}},Ro={};function Ds(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Ds=function(n){return n?r:t})(e)}function Bm(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Ds(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}Ro._=Bm;var on={exports:{}},Ao={},Fs;function Hs(){return Fs||(Fs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var l in s)Object.defineProperty(i,l,{enumerable:!0,get:s[l]})}t(e,{assign:function(){return a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}});function r(i){const s={};for(const[l,c]of i.entries()){const u=s[l];typeof u>"u"?s[l]=c:Array.isArray(u)?u.push(c):s[l]=[u,c]}return s}function n(i){return typeof i=="string"?i:typeof i=="number"&&!isNaN(i)||typeof i=="boolean"?String(i):""}function o(i){const s=new URLSearchParams;for(const[l,c]of Object.entries(i))if(Array.isArray(c))for(const u of c)s.append(l,n(u));else s.set(l,n(c));return s}function a(i,...s){for(const l of s){for(const c of l.keys())i.delete(c);for(const[c,u]of l.entries())i.append(c,u)}return i}}(Ao)),Ao}var jo={},Bs;function Ws(){return Bs||(Bs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}t(e,{formatUrl:function(){return a},formatWithValidation:function(){return s},urlObjectKeys:function(){return i}});const n=Ro._(Hs()),o=/https?|ftp|gopher|file/;function a(l){let{auth:c,hostname:u}=l,h=l.protocol||"",d=l.pathname||"",p=l.hash||"",g=l.query||"",m=!1;c=c?encodeURIComponent(c).replace(/%3A/i,":")+"@":"",l.host?m=c+l.host:u&&(m=c+(~u.indexOf(":")?`[${u}]`:u),l.port&&(m+=":"+l.port)),g&&typeof g=="object"&&(g=String(n.urlQueryToSearchParams(g)));let v=l.search||g&&`?${g}`||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||o.test(h))&&m!==!1?(m="//"+(m||""),d&&d[0]!=="/"&&(d="/"+d)):m||(m=""),p&&p[0]!=="#"&&(p="#"+p),v&&v[0]!=="?"&&(v="?"+v),d=d.replace(/[?#]/g,encodeURIComponent),v=v.replace("#","%23"),`${h}${m}${d}${v}${p}`}const i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(c=>{i.includes(c)||console.warn(`Unknown key passed via urlObject into url.format: ${c}`)}),a(l)}}(jo)),jo}var ko={},Us;function Wm(){return Us||(Us=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const o={};return Object.keys(r).forEach(a=>{n.includes(a)||(o[a]=r[a])}),o}}(ko)),ko}var Io={},Vs;function an(){return Vs||(Vs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var O in P)Object.defineProperty(_,O,{enumerable:!0,get:P[O]})}t(e,{DecodeError:function(){return g},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return b},NormalizeError:function(){return m},PageNotFoundError:function(){return v},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return i},getURL:function(){return s},isAbsoluteUrl:function(){return a},isResSent:function(){return c},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return u},stringifyError:function(){return w}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(_){let P=!1,O;return(...N)=>(P||(P=!0,O=_(...N)),O)}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=_=>o.test(_);function i(){const{protocol:_,hostname:P,port:O}=window.location;return`${_}//${P}${O?":"+O:""}`}function s(){const{href:_}=window.location,P=i();return _.substring(P.length)}function l(_){return typeof _=="string"?_:_.displayName||_.name||"Unknown"}function c(_){return _.finished||_.headersSent}function u(_){const P=_.split("?");return P[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(P[1]?`?${P.slice(1).join("?")}`:"")}async function h(_,P){var M;if(process.env.NODE_ENV!=="production"&&(M=_.prototype)!=null&&M.getInitialProps){const k=`"${l(_)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;throw Object.defineProperty(new Error(k),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}const O=P.res||P.ctx&&P.ctx.res;if(!_.getInitialProps)return P.ctx&&P.Component?{pageProps:await h(P.Component,P.ctx)}:{};const N=await _.getInitialProps(P);if(O&&c(O))return N;if(!N){const k=`"${l(_)}.getInitialProps()" should resolve to an object. But found "${N}" instead.`;throw Object.defineProperty(new Error(k),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}return process.env.NODE_ENV!=="production"&&Object.keys(N).length===0&&!P.ctx&&console.warn(`${l(_)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`),N}const d=typeof performance<"u",p=d&&["mark","measure","getEntriesByName"].every(_=>typeof performance[_]=="function");class g extends Error{}class m extends Error{}class v extends Error{constructor(P){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${P}`}}class b extends Error{constructor(P,O){super(),this.message=`Failed to load static file for page: ${P} ${O}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(_){return JSON.stringify({message:_.message,stack:_.stack})}}(Io)),Io}var sn={exports:{}},$o={},qs;function Gs(){return qs||(qs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\/$/,"")||"/"}}($o)),$o}var Mo={},zs;function Lo(){return zs||(zs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),o=r.indexOf("?"),a=o>-1&&(n<0||o<n);return a||n>-1?{pathname:r.substring(0,a?o:n),query:a?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(Mo)),Mo}var Xs;function ln(){return Xs||(Xs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Gs(),n=Lo(),o=a=>{if(!a.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return a;const{pathname:i,query:s,hash:l}=(0,n.parsePath)(a);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(i)?`${(0,r.removeTrailingSlash)(i)}${s}${l}`:i.endsWith("/")?`${i}${s}${l}`:`${i}/${s}${l}`:`${(0,r.removeTrailingSlash)(i)}${s}${l}`};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(sn,sn.exports)),sn.exports}var Do={},un={exports:{}},Fo={},Ys;function Ks(){return Ys||(Ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=Lo();function r(n,o){if(typeof n!="string")return!1;const{pathname:a}=(0,t.parsePath)(n);return a===o||a.startsWith(o+"/")}}(Fo)),Fo}var Qs;function Um(){return Qs||(Qs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=Ks(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(a){return(0,r.pathHasPrefix)(a,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(un,un.exports)),un.exports}var Zs;function Js(){return Zs||(Zs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=an(),r=Um();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const a=(0,t.getLocationOrigin)(),i=new URL(o,a);return i.origin===a&&(0,r.hasBasePath)(i.pathname)}catch{return!1}}}(Do)),Do}var Ho={},Bo={},el;function Vm(){return el||(el=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,i){for(var s in i)Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}t(e,{getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return n}});class r{insert(i){this._insert(i.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(i="/"){const s=[...this.children.keys()].sort();this.slugName!==null&&s.splice(s.indexOf("[]"),1),this.restSlugName!==null&&s.splice(s.indexOf("[...]"),1),this.optionalRestSlugName!==null&&s.splice(s.indexOf("[[...]]"),1);const l=s.map(c=>this.children.get(c)._smoosh(`${i}${c}/`)).reduce((c,u)=>[...c,...u],[]);if(this.slugName!==null&&l.push(...this.children.get("[]")._smoosh(`${i}[${this.slugName}]/`)),!this.placeholder){const c=i==="/"?"/":i.slice(0,-1);if(this.optionalRestSlugName!=null)throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${c}" and "${c}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});l.unshift(c)}return this.restSlugName!==null&&l.push(...this.children.get("[...]")._smoosh(`${i}[...${this.restSlugName}]/`)),this.optionalRestSlugName!==null&&l.push(...this.children.get("[[...]]")._smoosh(`${i}[[...${this.optionalRestSlugName}]]/`)),l}_insert(i,s,l){if(i.length===0){this.placeholder=!1;return}if(l)throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let c=i[0];if(c.startsWith("[")&&c.endsWith("]")){let d=function(p,g){if(p!==null&&p!==g)throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${p}' !== '${g}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});s.forEach(m=>{if(m===g)throw Object.defineProperty(new Error(`You cannot have the same slug name "${g}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(m.replace(/\W/g,"")===c.replace(/\W/g,""))throw Object.defineProperty(new Error(`You cannot have the slug names "${m}" and "${g}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),s.push(g)},u=c.slice(1,-1),h=!1;if(u.startsWith("[")&&u.endsWith("]")&&(u=u.slice(1,-1),h=!0),u.startsWith("…"))throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${u}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(u.startsWith("...")&&(u=u.substring(3),l=!0),u.startsWith("[")||u.endsWith("]"))throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${u}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(u.startsWith("."))throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${u}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});if(l)if(h){if(this.restSlugName!=null)throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${i[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});d(this.optionalRestSlugName,u),this.optionalRestSlugName=u,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${i[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});d(this.restSlugName,u),this.restSlugName=u,c="[...]"}else{if(h)throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${i[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});d(this.slugName,u),this.slugName=u,c="[]"}}this.children.has(c)||this.children.set(c,new r),this.children.get(c)._insert(i.slice(1),s,l)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(a){const i=new r;return a.forEach(s=>i.insert(s)),i.smoosh()}function o(a,i){const s={},l=[];for(let u=0;u<a.length;u++){const h=i(a[u]);s[h]=u,l[u]=h}return n(l).map(u=>a[s[u]])}}(Bo)),Bo}var Wo={},Uo={},Vo={},qo={},tl;function qm(){return tl||(tl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.startsWith("/")?r:`/${r}`}}(qo)),qo}var Go={},rl;function nl(){return rl||(rl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,d){for(var p in d)Object.defineProperty(h,p,{enumerable:!0,get:d[p]})}t(e,{DEFAULT_SEGMENT_KEY:function(){return c},NOT_FOUND_SEGMENT_KEY:function(){return u},PAGE_SEGMENT_KEY:function(){return l},addSearchParamsIfPageSegment:function(){return a},computeSelectedLayoutSegment:function(){return i},getSegmentValue:function(){return r},getSelectedLayoutSegmentPath:function(){return s},isGroupSegment:function(){return n},isParallelRouteSegment:function(){return o}});function r(h){return Array.isArray(h)?h[1]:h}function n(h){return h[0]==="("&&h.endsWith(")")}function o(h){return h.startsWith("@")&&h!=="@children"}function a(h,d){if(h.includes(l)){const g=JSON.stringify(d);return g!=="{}"?l+"?"+g:l}return h}function i(h,d){if(!h||h.length===0)return null;const p=d==="children"?h[0]:h[h.length-1];return p===c?null:p}function s(h,d,p=!0,g=[]){let m;if(p)m=h[1][d];else{const E=h[1];m=E.children??Object.values(E)[0]}if(!m)return g;const v=m[0];let b=r(v);return!b||b.startsWith(l)?g:(g.push(b),s(m,d,!1,g))}const l="__PAGE__",c="__DEFAULT__",u="/_not-found"}(Go)),Go}var ol;function Gm(){return ol||(ol=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var l in s)Object.defineProperty(i,l,{enumerable:!0,get:s[l]})}t(e,{normalizeAppPath:function(){return o},normalizeRscURL:function(){return a}});const r=qm(),n=nl();function o(i){return(0,r.ensureLeadingSlash)(i.split("/").reduce((s,l,c,u)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&c===u.length-1?s:`${s}/${l}`,""))}function a(i){return i.replace(/\.rsc($|\?)/,"$1")}}(Vo)),Vo}var al;function cn(){return al||(al=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var l in s)Object.defineProperty(i,l,{enumerable:!0,get:s[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},extractInterceptionRouteInformation:function(){return a},isInterceptionRouteAppPath:function(){return o}});const r=Gm(),n=["(..)(..)","(.)","(..)","(...)"];function o(i){return i.split("/").find(s=>n.find(l=>s.startsWith(l)))!==void 0}function a(i){let s,l,c;for(const u of i.split("/"))if(l=n.find(h=>u.startsWith(h)),l){[s,c]=i.split(l,2);break}if(!s||!l||!c)throw Object.defineProperty(new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(s=(0,r.normalizeAppPath)(s),l){case"(.)":s==="/"?c=`/${c}`:c=s+"/"+c;break;case"(..)":if(s==="/")throw Object.defineProperty(new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});c=s.split("/").slice(0,-1).concat(c).join("/");break;case"(...)":c="/"+c;break;case"(..)(..)":const u=s.split("/");if(u.length<=2)throw Object.defineProperty(new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});c=u.slice(0,-2).concat(c).join("/");break;default:throw Object.defineProperty(new Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:s,interceptedRoute:c}}}(Uo)),Uo}var il;function zm(){return il||(il=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return o}});const t=cn(),r=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,n=/\/\[[^/]+\](?=\/|$)/;function o(a,i=!0){return(0,t.isInterceptionRouteAppPath)(a)&&(a=(0,t.extractInterceptionRouteInformation)(a).interceptedRoute),i?n.test(a):r.test(a)}}(Wo)),Wo}var sl;function Xm(){return sl||(sl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,a){for(var i in a)Object.defineProperty(o,i,{enumerable:!0,get:a[i]})}t(e,{getSortedRouteObjects:function(){return r.getSortedRouteObjects},getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=Vm(),n=zm()}(Ho)),Ho}var zo={},Xo={},Yo={},Ko={exports:{}},ll;function Ym(){return ll||(ll=1,(()=>{typeof __nccwpck_require__<"u"&&(__nccwpck_require__.ab=__dirname+"/");var e={};(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0;function r(m){for(var v=[],b=0;b<m.length;){var E=m[b];if(E==="*"||E==="+"||E==="?"){v.push({type:"MODIFIER",index:b,value:m[b++]});continue}if(E==="\\"){v.push({type:"ESCAPED_CHAR",index:b++,value:m[b++]});continue}if(E==="{"){v.push({type:"OPEN",index:b,value:m[b++]});continue}if(E==="}"){v.push({type:"CLOSE",index:b,value:m[b++]});continue}if(E===":"){for(var w="",_=b+1;_<m.length;){var P=m.charCodeAt(_);if(P>=48&&P<=57||P>=65&&P<=90||P>=97&&P<=122||P===95){w+=m[_++];continue}break}if(!w)throw new TypeError("Missing parameter name at ".concat(b));v.push({type:"NAME",index:b,value:w}),b=_;continue}if(E==="("){var O=1,N="",_=b+1;if(m[_]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(_));for(;_<m.length;){if(m[_]==="\\"){N+=m[_++]+m[_++];continue}if(m[_]===")"){if(O--,O===0){_++;break}}else if(m[_]==="("&&(O++,m[_+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(_));N+=m[_++]}if(O)throw new TypeError("Unbalanced pattern at ".concat(b));if(!N)throw new TypeError("Missing pattern at ".concat(b));v.push({type:"PATTERN",index:b,value:N}),b=_;continue}v.push({type:"CHAR",index:b,value:m[b++]})}return v.push({type:"END",index:b,value:""}),v}function n(m,v){v===void 0&&(v={});for(var b=r(m),E=v.prefixes,w=E===void 0?"./":E,_=v.delimiter,P=_===void 0?"/#?":_,O=[],N=0,M=0,k="",S=function(B){if(M<b.length&&b[M].type===B)return b[M++].value},C=function(B){var V=S(B);if(V!==void 0)return V;var ee=b[M],Q=ee.type,pe=ee.index;throw new TypeError("Unexpected ".concat(Q," at ").concat(pe,", expected ").concat(B))},j=function(){for(var B="",V;V=S("CHAR")||S("ESCAPED_CHAR");)B+=V;return B},$=function(B){for(var V=0,ee=P;V<ee.length;V++){var Q=ee[V];if(B.indexOf(Q)>-1)return!0}return!1},A=function(B){var V=O[O.length-1],ee=B||(V&&typeof V=="string"?V:"");if(V&&!ee)throw new TypeError('Must have text between two parameters, missing text after "'.concat(V.name,'"'));return!ee||$(ee)?"[^".concat(l(P),"]+?"):"(?:(?!".concat(l(ee),")[^").concat(l(P),"])+?")};M<b.length;){var D=S("CHAR"),U=S("NAME"),q=S("PATTERN");if(U||q){var R=D||"";w.indexOf(R)===-1&&(k+=R,R=""),k&&(O.push(k),k=""),O.push({name:U||N++,prefix:R,suffix:"",pattern:q||A(R),modifier:S("MODIFIER")||""});continue}var L=D||S("ESCAPED_CHAR");if(L){k+=L;continue}k&&(O.push(k),k="");var z=S("OPEN");if(z){var R=j(),K=S("NAME")||"",J=S("PATTERN")||"",F=j();C("CLOSE"),O.push({name:K||(J?N++:""),pattern:K&&!J?A(R):J,prefix:R,suffix:F,modifier:S("MODIFIER")||""});continue}C("END")}return O}t.parse=n;function o(m,v){return a(n(m,v),v)}t.compile=o;function a(m,v){v===void 0&&(v={});var b=c(v),E=v.encode,w=E===void 0?function(N){return N}:E,_=v.validate,P=_===void 0?!0:_,O=m.map(function(N){if(typeof N=="object")return new RegExp("^(?:".concat(N.pattern,")$"),b)});return function(N){for(var M="",k=0;k<m.length;k++){var S=m[k];if(typeof S=="string"){M+=S;continue}var C=N?N[S.name]:void 0,j=S.modifier==="?"||S.modifier==="*",$=S.modifier==="*"||S.modifier==="+";if(Array.isArray(C)){if(!$)throw new TypeError('Expected "'.concat(S.name,'" to not repeat, but got an array'));if(C.length===0){if(j)continue;throw new TypeError('Expected "'.concat(S.name,'" to not be empty'))}for(var A=0;A<C.length;A++){var D=w(C[A],S);if(P&&!O[k].test(D))throw new TypeError('Expected all "'.concat(S.name,'" to match "').concat(S.pattern,'", but got "').concat(D,'"'));M+=S.prefix+D+S.suffix}continue}if(typeof C=="string"||typeof C=="number"){var D=w(String(C),S);if(P&&!O[k].test(D))throw new TypeError('Expected "'.concat(S.name,'" to match "').concat(S.pattern,'", but got "').concat(D,'"'));M+=S.prefix+D+S.suffix;continue}if(!j){var U=$?"an array":"a string";throw new TypeError('Expected "'.concat(S.name,'" to be ').concat(U))}}return M}}t.tokensToFunction=a;function i(m,v){var b=[],E=g(m,b,v);return s(E,b,v)}t.match=i;function s(m,v,b){b===void 0&&(b={});var E=b.decode,w=E===void 0?function(_){return _}:E;return function(_){var P=m.exec(_);if(!P)return!1;for(var O=P[0],N=P.index,M=Object.create(null),k=function(C){if(P[C]===void 0)return"continue";var j=v[C-1];j.modifier==="*"||j.modifier==="+"?M[j.name]=P[C].split(j.prefix+j.suffix).map(function($){return w($,j)}):M[j.name]=w(P[C],j)},S=1;S<P.length;S++)k(S);return{path:O,index:N,params:M}}}t.regexpToFunction=s;function l(m){return m.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function c(m){return m&&m.sensitive?"":"i"}function u(m,v){if(!v)return m;for(var b=/\((?:\?<(.*?)>)?(?!\?)/g,E=0,w=b.exec(m.source);w;)v.push({name:w[1]||E++,prefix:"",suffix:"",modifier:"",pattern:""}),w=b.exec(m.source);return m}function h(m,v,b){var E=m.map(function(w){return g(w,v,b).source});return new RegExp("(?:".concat(E.join("|"),")"),c(b))}function d(m,v,b){return p(n(m,b),v,b)}function p(m,v,b){b===void 0&&(b={});for(var E=b.strict,w=E===void 0?!1:E,_=b.start,P=_===void 0?!0:_,O=b.end,N=O===void 0?!0:O,M=b.encode,k=M===void 0?function(V){return V}:M,S=b.delimiter,C=S===void 0?"/#?":S,j=b.endsWith,$=j===void 0?"":j,A="[".concat(l($),"]|$"),D="[".concat(l(C),"]"),U=P?"^":"",q=0,R=m;q<R.length;q++){var L=R[q];if(typeof L=="string")U+=l(k(L));else{var z=l(k(L.prefix)),K=l(k(L.suffix));if(L.pattern)if(v&&v.push(L),z||K)if(L.modifier==="+"||L.modifier==="*"){var J=L.modifier==="*"?"?":"";U+="(?:".concat(z,"((?:").concat(L.pattern,")(?:").concat(K).concat(z,"(?:").concat(L.pattern,"))*)").concat(K,")").concat(J)}else U+="(?:".concat(z,"(").concat(L.pattern,")").concat(K,")").concat(L.modifier);else{if(L.modifier==="+"||L.modifier==="*")throw new TypeError('Can not repeat "'.concat(L.name,'" without a prefix and suffix'));U+="(".concat(L.pattern,")").concat(L.modifier)}else U+="(?:".concat(z).concat(K,")").concat(L.modifier)}}if(N)w||(U+="".concat(D,"?")),U+=b.endsWith?"(?=".concat(A,")"):"$";else{var F=m[m.length-1],B=typeof F=="string"?D.indexOf(F[F.length-1])>-1:F===void 0;w||(U+="(?:".concat(D,"(?=").concat(A,"))?")),B||(U+="(?=".concat(D,"|").concat(A,")"))}return new RegExp(U,c(b))}t.tokensToRegexp=p;function g(m,v,b){return m instanceof RegExp?u(m,v):Array.isArray(m)?h(m,v,b):d(m,v,b)}t.pathToRegexp=g})(),Ko.exports=e})()),Ko.exports}var Qo={},ul;function Km(){return ul||(ul=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}t(e,{PARAM_SEPARATOR:function(){return r},hasAdjacentParameterIssues:function(){return n},normalizeAdjacentParameters:function(){return o},normalizeTokensForRegexp:function(){return a},stripNormalizedSeparators:function(){return i},stripParameterSeparators:function(){return s}});const r="_NEXTSEP_";function n(l){return typeof l!="string"?!1:!!(/\/\(\.{1,3}\):[^/\s]+/.test(l)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(l))}function o(l){let c=l;return c=c.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${r}:$2`),c=c.replace(/:([^:/\s)]+)(?=:)/g,`:$1${r}`),c}function a(l){return l.map(c=>typeof c=="object"&&c!==null&&"modifier"in c&&(c.modifier==="*"||c.modifier==="+")&&"prefix"in c&&"suffix"in c&&c.prefix===""&&c.suffix===""?{...c,prefix:"/"}:c)}function i(l){return l.replace(new RegExp(`\\)${r}`,"g"),")")}function s(l){const c={};for(const[u,h]of Object.entries(l))typeof h=="string"?c[u]=h.replace(new RegExp(`^${r}`),""):Array.isArray(h)?c[u]=h.map(d=>typeof d=="string"?d.replace(new RegExp(`^${r}`),""):d):c[u]=h;return c}}(Qo)),Qo}var cl;function Qm(){return cl||(cl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}t(e,{safeCompile:function(){return a},safePathToRegexp:function(){return o},safeRegexpToFunction:function(){return i},safeRouteMatcher:function(){return s}});const r=Ym(),n=Km();function o(l,c,u){if(typeof l!="string")return(0,r.pathToRegexp)(l,c,u);const h=(0,n.hasAdjacentParameterIssues)(l),d=h?(0,n.normalizeAdjacentParameters)(l):l;try{return(0,r.pathToRegexp)(d,c,u)}catch(p){if(!h)try{const g=(0,n.normalizeAdjacentParameters)(l);return(0,r.pathToRegexp)(g,c,u)}catch{throw p}throw p}}function a(l,c){const u=(0,n.hasAdjacentParameterIssues)(l),h=u?(0,n.normalizeAdjacentParameters)(l):l;try{const d=(0,r.compile)(h,c);return u?p=>(0,n.stripNormalizedSeparators)(d(p)):d}catch(d){if(!u)try{const p=(0,n.normalizeAdjacentParameters)(l),g=(0,r.compile)(p,c);return m=>(0,n.stripNormalizedSeparators)(g(m))}catch{throw d}throw d}}function i(l,c){const u=(0,r.regexpToFunction)(l,c||[]);return h=>{const d=u(h);return d?{...d,params:(0,n.stripParameterSeparators)(d.params)}:!1}}function s(l){return c=>{const u=l(c);return u?(0,n.stripParameterSeparators)(u):!1}}}(Yo)),Yo}var dl;function fl(){return dl||(dl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const t=an(),r=Qm();function n({re:o,groups:a}){const i=s=>{const l=o.exec(s);if(!l)return!1;const c=h=>{try{return decodeURIComponent(h)}catch{throw Object.defineProperty(new t.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},u={};for(const[h,d]of Object.entries(a)){const p=l[d.pos];p!==void 0&&(d.repeat?u[h]=p.split("/").map(g=>c(g)):u[h]=c(p))}return u};return(0,r.safeRouteMatcher)(i)}}(Xo)),Xo}var Zo={},Jo={},pl;function Zm(){return pl||(pl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(mt,Ut){for(var Vt in Ut)Object.defineProperty(mt,Vt,{enumerable:!0,get:Ut[Vt]})}t(e,{ACTION_SUFFIX:function(){return p},APP_DIR_ALIAS:function(){return L},CACHE_ONE_YEAR:function(){return k},DOT_NEXT_ALIAS:function(){return q},ESLINT_DEFAULT_DIRS:function(){return ot},GSP_NO_RETURNED_VALUE:function(){return Bt},GSSP_COMPONENT_MEMBER_ERROR:function(){return nt},GSSP_NO_RETURNED_VALUE:function(){return Wt},HTML_CONTENT_TYPE_HEADER:function(){return n},INFINITE_CACHE:function(){return S},INSTRUMENTATION_HOOK_FILENAME:function(){return D},JSON_CONTENT_TYPE_HEADER:function(){return o},MATCHED_PATH_HEADER:function(){return s},MIDDLEWARE_FILENAME:function(){return C},MIDDLEWARE_LOCATION_REGEXP:function(){return j},NEXT_BODY_SUFFIX:function(){return v},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return M},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return E},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return w},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return N},NEXT_CACHE_TAGS_HEADER:function(){return b},NEXT_CACHE_TAG_MAX_ITEMS:function(){return P},NEXT_CACHE_TAG_MAX_LENGTH:function(){return O},NEXT_DATA_SUFFIX:function(){return g},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return i},NEXT_META_SUFFIX:function(){return m},NEXT_QUERY_PARAM_PREFIX:function(){return a},NEXT_RESUME_HEADER:function(){return _},NON_STANDARD_NODE_ENV:function(){return Tt},PAGES_DIR_ALIAS:function(){return U},PRERENDER_REVALIDATE_HEADER:function(){return l},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return c},PROXY_FILENAME:function(){return $},PROXY_LOCATION_REGEXP:function(){return A},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return Q},ROOT_DIR_ALIAS:function(){return R},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return ee},RSC_ACTION_ENCRYPTION_ALIAS:function(){return V},RSC_ACTION_PROXY_ALIAS:function(){return J},RSC_ACTION_VALIDATE_ALIAS:function(){return K},RSC_CACHE_WRAPPER_ALIAS:function(){return F},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return B},RSC_MOD_REF_PROXY_ALIAS:function(){return z},RSC_SEGMENTS_DIR_SUFFIX:function(){return u},RSC_SEGMENT_SUFFIX:function(){return h},RSC_SUFFIX:function(){return d},SERVER_PROPS_EXPORT_ERROR:function(){return he},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return G},SERVER_PROPS_SSG_CONFLICT:function(){return Ae},SERVER_RUNTIME:function(){return hr},SSG_FALLBACK_EXPORT_ERROR:function(){return Ot},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return pe},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Pe},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return r},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return me},WEBPACK_LAYERS:function(){return ie},WEBPACK_RESOURCE_QUERIES:function(){return Ve},WEB_SOCKET_MAX_RECONNECTIONS:function(){return gr}});const r="text/plain",n="text/html; charset=utf-8",o="application/json; charset=utf-8",a="nxtP",i="nxtI",s="x-matched-path",l="x-prerender-revalidate",c="x-prerender-revalidate-if-generated",u=".segments",h=".segment.rsc",d=".rsc",p=".action",g=".json",m=".meta",v=".body",b="x-next-cache-tags",E="x-next-revalidated-tags",w="x-next-revalidate-tag-token",_="next-resume",P=128,O=256,N=1024,M="_N_T_",k=31536e3,S=4294967294,C="middleware",j=`(?:src/)?${C}`,$="proxy",A=`(?:src/)?${$}`,D="instrumentation",U="private-next-pages",q="private-dot-next",R="private-next-root-dir",L="private-next-app-dir",z="private-next-rsc-mod-ref-proxy",K="private-next-rsc-action-validate",J="private-next-rsc-server-reference",F="private-next-rsc-cache-wrapper",B="private-next-rsc-track-dynamic-import",V="private-next-rsc-action-encryption",ee="private-next-rsc-action-client-wrapper",Q="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",pe="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",G="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",Ae="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Pe="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",he="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Bt="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",Wt="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",me="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",nt="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Tt='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Ot="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ot=["app","pages","components","lib","src"],hr={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},gr=12,ne={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},ie={...ne,GROUP:{builtinReact:[ne.reactServerComponents,ne.actionBrowser],serverOnly:[ne.reactServerComponents,ne.actionBrowser,ne.instrument,ne.middleware],neutralTarget:[ne.apiNode,ne.apiEdge],clientOnly:[ne.serverSideRendering,ne.appPagesBrowser],bundled:[ne.reactServerComponents,ne.actionBrowser,ne.serverSideRendering,ne.appPagesBrowser,ne.shared,ne.instrument,ne.middleware],appPages:[ne.reactServerComponents,ne.serverSideRendering,ne.appPagesBrowser,ne.actionBrowser]}},Ve={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}(Jo)),Jo}var ea={},ml;function Jm(){return ml||(ml=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return t.test(o)?o.replace(r,"\\$&"):o}}(ea)),ea}var ta={},ra={},hl;function na(){return hl||(hl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"InvariantError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(n,o){super(`Invariant: ${n.endsWith(".")?n:n+"."} This is a bug in Next.js.`,o),this.name="InvariantError"}}}(ra)),ra}var oa={},gl;function eh(){return gl||(gl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseLoaderTree",{enumerable:!0,get:function(){return r}});const t=nl();function r(n){const[o,a,i]=n,{layout:s,template:l}=i;let{page:c}=i;c=o===t.DEFAULT_SEGMENT_KEY?i.defaultPage:c;const u=(s==null?void 0:s[1])||(l==null?void 0:l[1])||(c==null?void 0:c[1]);return{page:c,segment:o,modules:i,conventionPath:u,parallelRoutes:a}}}(oa)),oa}var aa={},ia={},vl;function th(){return vl||(vl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var l in s)Object.defineProperty(i,l,{enumerable:!0,get:s[l]})}t(e,{getParamProperties:function(){return a},getSegmentParam:function(){return n},isCatchAll:function(){return o}});const r=cn();function n(i){const s=r.INTERCEPTION_ROUTE_MARKERS.find(l=>i.startsWith(l));return s&&(i=i.slice(s.length)),i.startsWith("[[...")&&i.endsWith("]]")?{paramType:"optional-catchall",paramName:i.slice(5,-2)}:i.startsWith("[...")&&i.endsWith("]")?{paramType:s?`catchall-intercepted-${s}`:"catchall",paramName:i.slice(4,-1)}:i.startsWith("[")&&i.endsWith("]")?{paramType:s?`dynamic-intercepted-${s}`:"dynamic",paramName:i.slice(1,-1)}:null}function o(i){return i==="catchall"||i==="catchall-intercepted-(..)(..)"||i==="catchall-intercepted-(.)"||i==="catchall-intercepted-(..)"||i==="catchall-intercepted-(...)"||i==="optional-catchall"}function a(i){let s=!1,l=!1;switch(i){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":s=!0;break;case"optional-catchall":s=!0,l=!0;break}return{repeat:s,optional:l}}}(ia)),ia}var bl;function rh(){return bl||(bl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var h in u)Object.defineProperty(c,h,{enumerable:!0,get:u[h]})}t(e,{isInterceptionAppRoute:function(){return s},isNormalizedAppRoute:function(){return i},parseAppRoute:function(){return l},parseAppRouteSegment:function(){return a}});const r=na(),n=th(),o=cn();function a(c){if(c==="")return null;const u=o.INTERCEPTION_ROUTE_MARKERS.find(d=>c.startsWith(d)),h=(0,n.getSegmentParam)(c);return h?{type:"dynamic",name:c,param:h,interceptionMarker:u}:c.startsWith("(")&&c.endsWith(")")?{type:"route-group",name:c,interceptionMarker:u}:c.startsWith("@")?{type:"parallel-route",name:c,interceptionMarker:u}:{type:"static",name:c,interceptionMarker:u}}function i(c){return c.normalized}function s(c){return c.interceptionMarker!==void 0&&c.interceptingRoute!==void 0&&c.interceptedRoute!==void 0}function l(c,u){const h=c.split("/").filter(Boolean),d=[];let p,g,m;for(const b of h){const E=a(b);if(E){if(u&&(E.type==="route-group"||E.type==="parallel-route"))throw Object.defineProperty(new r.InvariantError(`${c} is being parsed as a normalized route, but it has a route group or parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E923",enumerable:!1,configurable:!0});if(d.push(E),E.interceptionMarker){const w=c.split(E.interceptionMarker);if(w.length!==2)throw Object.defineProperty(new Error(`Invalid interception route: ${c}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});g=u?l(w[0],!0):l(w[0],!1),m=u?l(w[1],!0):l(w[1],!1),p=E.interceptionMarker}}}const v=d.filter(b=>b.type==="dynamic");return{normalized:u,pathname:c,segments:d,dynamicSegments:v,interceptionMarker:p,interceptingRoute:g,interceptedRoute:m}}}(aa)),aa}var sa={},la={},yl;function nh(){return yl||(yl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return t}});function t(r){switch(r){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";case"catchall":case"dynamic":case"optional-catchall":default:return null}}}(la)),la}var El;function oh(){return El||(El=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveParamValue",{enumerable:!0,get:function(){return o}});const t=na(),r=nh();function n(a,i,s){return a.type==="dynamic"?i[a.param.paramName]:(0,r.interceptionPrefixFromParamType)(s)===a.interceptionMarker?a.name.replace(a.interceptionMarker,""):a.name}function o(a,i,s,l,c){switch(i){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":const u=[];for(let h=s;h<l.segments.length;h++){const d=l.segments[h];if(d.type==="static"){let p=d.name;const g=(0,r.interceptionPrefixFromParamType)(i);g&&h===s&&g===d.interceptionMarker&&(p=p.replace(d.interceptionMarker,"")),u.push(p)}else{if(!c.hasOwnProperty(d.param.paramName)){if(d.param.paramType==="optional-catchall")break;return}const p=c[d.param.paramName];Array.isArray(p)?u.push(...p):u.push(p)}}if(u.length>0)return u;if(i==="optional-catchall")return;throw Object.defineProperty(new t.InvariantError(`Unexpected empty path segments match for a route "${l.pathname}" with param "${a}" of type "${i}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(s<l.segments.length){const h=l.segments[s];return h.type==="dynamic"&&!c.hasOwnProperty(h.param.paramName)?void 0:n(h,c,i)}return}}}(sa)),sa}var xl;function ah(){return xl||(xl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,p){for(var g in p)Object.defineProperty(d,g,{enumerable:!0,get:p[g]})}t(e,{PARAMETER_PATTERN:function(){return c},getDynamicParam:function(){return l},interpolateParallelRouteParams:function(){return s},parseMatchedParameter:function(){return h},parseParameter:function(){return u}});const r=na(),n=eh(),o=rh(),a=oh();function i(d,p,g){let m=d[p];if(g!=null&&g.has(p)){const[v]=g.get(p);m=v}else Array.isArray(m)?m=m.map(v=>encodeURIComponent(v)):typeof m=="string"&&(m=encodeURIComponent(m));return m}function s(d,p,g,m){const v=structuredClone(p),b=[{tree:d,depth:0}],E=(0,o.parseAppRoute)(g,!0);for(;b.length>0;){const{tree:w,depth:_}=b.pop(),{segment:P,parallelRoutes:O}=(0,n.parseLoaderTree)(w),N=(0,o.parseAppRouteSegment)(P);if((N==null?void 0:N.type)==="dynamic"&&!v.hasOwnProperty(N.param.paramName)&&!(m!=null&&m.has(N.param.paramName))){const{paramName:k,paramType:S}=N.param,C=(0,a.resolveParamValue)(k,S,_,E,v);if(C!==void 0)v[k]=C;else if(S!=="optional-catchall")throw Object.defineProperty(new r.InvariantError(`Could not resolve param value for segment: ${k}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let M=_;N&&N.type!=="route-group"&&N.type!=="parallel-route"&&M++;for(const k of Object.values(O))b.push({tree:k,depth:M})}return v}function l(d,p,g,m){let v=i(d,p,m);if(!v||v.length===0){if(g==="oc")return{param:p,value:null,type:g,treeSegment:[p,"",g]};throw Object.defineProperty(new r.InvariantError(`Missing value for segment key: "${p}" with dynamic param type: ${g}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}return{param:p,value:v,treeSegment:[p,Array.isArray(v)?v.join("/"):v,g],type:g}}const c=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function u(d){const p=d.match(c);return h(p?p[2]:d)}function h(d){const p=d.startsWith("[")&&d.endsWith("]");p&&(d=d.slice(1,-1));const g=d.startsWith("...");return g&&(d=d.slice(3)),{key:d,repeat:g,optional:p}}}(ta)),ta}var wl;function _l(){return wl||(wl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var v in m)Object.defineProperty(g,v,{enumerable:!0,get:m[v]})}t(e,{getNamedMiddlewareRegex:function(){return p},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return l}});const r=Zm(),n=cn(),o=Jm(),a=Gs(),i=ah();function s(g,m,v){const b={};let E=1;const w=[];for(const _ of(0,a.removeTrailingSlash)(g).slice(1).split("/")){const P=n.INTERCEPTION_ROUTE_MARKERS.find(N=>_.startsWith(N)),O=_.match(i.PARAMETER_PATTERN);if(P&&O&&O[2]){const{key:N,optional:M,repeat:k}=(0,i.parseMatchedParameter)(O[2]);b[N]={pos:E++,repeat:k,optional:M},w.push(`/${(0,o.escapeStringRegexp)(P)}([^/]+?)`)}else if(O&&O[2]){const{key:N,repeat:M,optional:k}=(0,i.parseMatchedParameter)(O[2]);b[N]={pos:E++,repeat:M,optional:k},v&&O[1]&&w.push(`/${(0,o.escapeStringRegexp)(O[1])}`);let S=M?k?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";v&&O[1]&&(S=S.substring(1)),w.push(S)}else w.push(`/${(0,o.escapeStringRegexp)(_)}`);m&&O&&O[3]&&w.push((0,o.escapeStringRegexp)(O[3]))}return{parameterizedRoute:w.join(""),groups:b}}function l(g,{includeSuffix:m=!1,includePrefix:v=!1,excludeOptionalTrailingSlash:b=!1}={}){const{parameterizedRoute:E,groups:w}=s(g,m,v);let _=E;return b||(_+="(?:/)?"),{re:new RegExp(`^${_}$`),groups:w}}function c(){let g=0;return()=>{let m="",v=++g;for(;v>0;)m+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return m}}function u({interceptionMarker:g,getSafeRouteKey:m,segment:v,routeKeys:b,keyPrefix:E,backreferenceDuplicateKeys:w}){const{key:_,optional:P,repeat:O}=(0,i.parseMatchedParameter)(v);let N=_.replace(/\W/g,"");E&&(N=`${E}${N}`);let M=!1;(N.length===0||N.length>30)&&(M=!0),isNaN(parseInt(N.slice(0,1)))||(M=!0),M&&(N=m());const k=N in b;E?b[N]=`${E}${_}`:b[N]=_;const S=g?(0,o.escapeStringRegexp)(g):"";let C;return k&&w?C=`\\k<${N}>`:O?C=`(?<${N}>.+?)`:C=`(?<${N}>[^/]+?)`,{key:_,pattern:P?`(?:/${S}${C})?`:`/${S}${C}`,cleanedKey:N,optional:P,repeat:O}}function h(g,m,v,b,E,w={names:{},intercepted:{}}){var M,k;const _=c(),P={},O=[],N=[];w=structuredClone(w);for(const S of(0,a.removeTrailingSlash)(g).slice(1).split("/")){const C=n.INTERCEPTION_ROUTE_MARKERS.some(D=>S.startsWith(D)),j=S.match(i.PARAMETER_PATTERN),$=C?j==null?void 0:j[1]:void 0;let A;if($&&(j!=null&&j[2])?(A=m?r.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,w.intercepted[j[2]]=$):j!=null&&j[2]&&w.intercepted[j[2]]?A=m?r.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:A=m?r.NEXT_QUERY_PARAM_PREFIX:void 0,$&&j&&j[2]){const{key:D,pattern:U,cleanedKey:q,repeat:R,optional:L}=u({getSafeRouteKey:_,interceptionMarker:$,segment:j[2],routeKeys:P,keyPrefix:A,backreferenceDuplicateKeys:E});O.push(U),N.push(`/${j[1]}:${w.names[D]??q}${R?L?"*":"+":""}`),(M=w.names)[D]??(M[D]=q)}else if(j&&j[2]){b&&j[1]&&(O.push(`/${(0,o.escapeStringRegexp)(j[1])}`),N.push(`/${j[1]}`));const{key:D,pattern:U,cleanedKey:q,repeat:R,optional:L}=u({getSafeRouteKey:_,segment:j[2],routeKeys:P,keyPrefix:A,backreferenceDuplicateKeys:E});let z=U;b&&j[1]&&(z=z.substring(1)),O.push(z),N.push(`/:${w.names[D]??q}${R?L?"*":"+":""}`),(k=w.names)[D]??(k[D]=q)}else O.push(`/${(0,o.escapeStringRegexp)(S)}`),N.push(`/${S}`);v&&j&&j[3]&&(O.push((0,o.escapeStringRegexp)(j[3])),N.push(j[3]))}return{namedParameterizedRoute:O.join(""),routeKeys:P,pathToRegexpPattern:N.join(""),reference:w}}function d(g,m){const v=h(g,m.prefixRouteKeys,m.includeSuffix??!1,m.includePrefix??!1,m.backreferenceDuplicateKeys??!1,m.reference);let b=v.namedParameterizedRoute;return m.excludeOptionalTrailingSlash||(b+="(?:/)?"),{...l(g,m),namedRegex:`^${b}$`,routeKeys:v.routeKeys,pathToRegexpPattern:v.pathToRegexpPattern,reference:v.reference}}function p(g,m){const{parameterizedRoute:v}=s(g,!1,!1),{catchAll:b=!0}=m;if(v==="/")return{namedRegex:`^/${b?".*":""}$`};const{namedParameterizedRoute:E}=h(g,!1,!1,!1,!1,void 0);return{namedRegex:`^${E}${b?"(?:(/.*)?)":""}$`}}}(Zo)),Zo}var Pl;function ih(){return Pl||(Pl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=fl(),r=_l();function n(o,a,i){let s="";const l=(0,r.getRouteRegex)(o),c=l.groups,u=(a!==o?(0,t.getRouteMatcher)(l)(a):"")||i;s=o;const h=Object.keys(c);return h.every(d=>{let p=u[d]||"";const{repeat:g,optional:m}=c[d];let v=`[${g?"...":""}${d}]`;return m&&(v=`${p?"":"/"}[${v}]`),g&&!Array.isArray(p)&&(p=[p]),(m||d in u)&&(s=s.replace(v,g?p.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(p))||"/")})||(s=""),{params:h,result:s}}}(zo)),zo}var Sl;function sh(){return Sl||(Sl=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});const r=Hs(),n=Ws(),o=Wm(),a=an(),i=ln(),s=Js(),l=Xm(),c=ih(),u=_l(),h=fl();function d(p,g,m){let v,b=typeof g=="string"?g:(0,n.formatWithValidation)(g);const E=b.match(/^[a-z][a-z0-9+.-]*:\/\//i),w=E?b.slice(E[0].length):b;if((w.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${b}' passed to next/router in page: '${p.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);const P=(0,a.normalizeRepeatedSlashes)(w);b=(E?E[0]:"")+P}if(!(0,s.isLocalURL)(b))return m?[b]:b;try{let P=b.startsWith("#")?p.asPath:p.pathname;if(b.startsWith("?")&&(P=p.asPath,(0,l.isDynamicRoute)(p.pathname))){P=p.pathname;const O=(0,u.getRouteRegex)(p.pathname);(0,h.getRouteMatcher)(O)(p.asPath)||(P=p.asPath)}v=new URL(P,"http://n")}catch{v=new URL("/","http://n")}try{const P=new URL(b,v);P.pathname=(0,i.normalizePathTrailingSlash)(P.pathname);let O="";if((0,l.isDynamicRoute)(P.pathname)&&P.searchParams&&m){const M=(0,r.searchParamsToUrlQuery)(P.searchParams),{result:k,params:S}=(0,c.interpolateAs)(P.pathname,P.pathname,M);k&&(O=(0,n.formatWithValidation)({pathname:k,hash:P.hash,query:(0,o.omit)(M,S)}))}const N=P.origin===v.origin?P.href.slice(P.origin.length):P.href;return m?[N,O||N]:N}catch{return m?[b]:b}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(on,on.exports)),on.exports}var dn={exports:{}},ua={},ca={},Tl;function Ol(){return Tl||(Tl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=Lo();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:a,query:i,hash:s}=(0,t.parsePath)(n);return`${o}${a}${i}${s}`}}(ca)),ca}var Nl;function lh(){return Nl||(Nl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Ol(),r=Ks();function n(o,a,i,s){if(!a||a===i)return o;const l=o.toLowerCase();return!s&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,`/${a.toLowerCase()}`))?o:(0,t.addPathPrefix)(o,`/${a}`)}}(ua)),ua}var Cl;function uh(){return Cl||(Cl=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=ln(),n=(o,...a)=>process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(lh().addLocale(o,...a)):o;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(dn,dn.exports)),dn.exports}var da={},fa={},Rl;function ch(){if(Rl)return fa;Rl=1;function e(t){return t&&t.__esModule?t:{default:t}}return fa._=e,fa}var Al;function dh(){return Al||(Al=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=ch()._(f).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(da)),da}var fn={exports:{}},pn={exports:{}},jl;function fh(){return jl||(jl=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(a,i){for(var s in i)Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}r(t,{cancelIdleCallback:function(){return o},requestIdleCallback:function(){return n}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let i=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-i))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(pn,pn.exports)),pn.exports}var kl;function ph(){return kl||(kl=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return c}});const r=f,n=fh(),o=typeof IntersectionObserver=="function",a=new Map,i=[];function s(u){const h={root:u.root||null,margin:u.rootMargin||""},d=i.find(v=>v.root===h.root&&v.margin===h.margin);let p;if(d&&(p=a.get(d),p))return p;const g=new Map,m=new IntersectionObserver(v=>{v.forEach(b=>{const E=g.get(b.target),w=b.isIntersecting||b.intersectionRatio>0;E&&w&&E(w)})},u);return p={id:h,observer:m,elements:g},i.push(h),a.set(h,p),p}function l(u,h,d){const{id:p,observer:g,elements:m}=s(d);return m.set(u,h),g.observe(u),function(){if(m.delete(u),g.unobserve(u),m.size===0){g.disconnect(),a.delete(p);const b=i.findIndex(E=>E.root===p.root&&E.margin===p.margin);b>-1&&i.splice(b,1)}}}function c({rootRef:u,rootMargin:h,disabled:d}){const p=d||!o,[g,m]=(0,r.useState)(!1),v=(0,r.useRef)(null),b=(0,r.useCallback)(w=>{v.current=w},[]);(0,r.useEffect)(()=>{if(o){if(p||g)return;const w=v.current;if(w&&w.tagName)return l(w,P=>P&&m(P),{root:u==null?void 0:u.current,rootMargin:h})}else if(!g){const w=(0,n.requestIdleCallback)(()=>m(!0));return()=>(0,n.cancelIdleCallback)(w)}},[p,h,u,g,v.current]);const E=(0,r.useCallback)(()=>{m(!1)},[]);return[b,g,E]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(fn,fn.exports)),fn.exports}var mn={exports:{}},hn={exports:{}},pa={},Il;function mh(){return Il||(Il=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const t=new WeakMap;function r(n,o){if(!o)return{pathname:n};let a=t.get(o);a||(a=o.map(u=>u.toLowerCase()),t.set(o,a));let i;const s=n.split("/",2);if(!s[1])return{pathname:n};const l=s[1].toLowerCase(),c=a.indexOf(l);return c<0?{pathname:n}:(i=o[c],n=n.slice(i.length+1)||"/",{pathname:n,detectedLocale:i})}}(pa)),pa}var $l;function hh(){return $l||($l=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?mh().normalizeLocalePath(n,o):{pathname:n,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(hn,hn.exports)),hn.exports}var gn={exports:{}},ma={},Ml;function gh(){return Ml||(Ml=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){var a,i;if(r){o&&(o=o.toLowerCase());for(const s of r){const l=(a=s.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(n===l||o===s.defaultLocale.toLowerCase()||(i=s.locales)!=null&&i.some(c=>c.toLowerCase()===o))return s}}}}(ma)),ma}var Ll;function vh(){return Ll||(Ll=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=(...n)=>{if(process.env.__NEXT_I18N_SUPPORT)return gh().detectDomainLocale(...n)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(gn,gn.exports)),gn.exports}var Dl;function bh(){return Dl||(Dl=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=ln(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(a,i,s,l){if(process.env.__NEXT_I18N_SUPPORT){const c=hh().normalizeLocalePath,u=vh().detectDomainLocale,h=i||c(a,s).detectedLocale,d=u(l,void 0,h);if(d){const p=`http${d.http?"":"s"}://`,g=h===d.defaultLocale?"":`/${h}`;return`${p}${d.domain}${(0,r.normalizePathTrailingSlash)(`${n}${g}${a}`)}`}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(mn,mn.exports)),mn.exports}var vn={exports:{}},Fl;function yh(){return Fl||(Fl=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const r=Ol(),n=ln(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function a(i,s){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!s?i:(0,r.addPathPrefix)(i,o))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(vn,vn.exports)),vn.exports}var bn={exports:{}},Hl;function Eh(){return Hl||(Hl=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return n}});const r=f;function n(a,i){const s=(0,r.useRef)(null),l=(0,r.useRef)(null);return(0,r.useCallback)(c=>{if(c===null){const u=s.current;u&&(s.current=null,u());const h=l.current;h&&(l.current=null,h())}else a&&(s.current=o(a,c)),i&&(l.current=o(i,c))},[a,i])}function o(a,i){if(typeof a=="function"){const s=a(i);return typeof s=="function"?s:()=>a(null)}else return a.current=i,()=>{a.current=null}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(bn,bn.exports)),bn.exports}var ha={},Bl;function xh(){return Bl||(Bl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"errorOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=n=>{r.has(n)||console.error(n),r.add(n)}}}(ha)),ha}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(S,C){for(var j in C)Object.defineProperty(S,j,{enumerable:!0,get:C[j]})}r(t,{default:function(){return k},useLinkStatus:function(){return M}});const n=Ro,o=y,a=n._(f),i=sh(),s=Js(),l=Ws(),c=an(),u=uh(),h=dh(),d=ph(),p=bh(),g=yh(),m=Eh(),v=xh(),b=new Set;function E(S,C,j,$){if(!(typeof window>"u")&&(0,s.isLocalURL)(C)){if(!$.bypassPrefetchedCheck){const A=typeof $.locale<"u"?$.locale:"locale"in S?S.locale:void 0,D=C+"%"+j+"%"+A;if(b.has(D))return;b.add(D)}S.prefetch(C,j,$).catch(A=>{if(process.env.NODE_ENV!=="production")throw A})}}function w(S){const j=S.currentTarget.getAttribute("target");return j&&j!=="_self"||S.metaKey||S.ctrlKey||S.shiftKey||S.altKey||S.nativeEvent&&S.nativeEvent.which===2}function _(S,C,j,$,A,D,U,q,R){const{nodeName:L}=S.currentTarget;if(L.toUpperCase()==="A"&&w(S)||S.currentTarget.hasAttribute("download"))return;if(!(0,s.isLocalURL)(j)){A&&(S.preventDefault(),location.replace(j));return}S.preventDefault(),(()=>{if(R){let F=!1;if(R({preventDefault:()=>{F=!0}}),F)return}const J=U??!0;"beforePopState"in C?C[A?"replace":"push"](j,$,{shallow:D,locale:q,scroll:J}):C[A?"replace":"push"]($||j,{scroll:J})})()}function P(S){return typeof S=="string"?S:(0,l.formatUrl)(S)}const O=a.default.forwardRef(function(C,j){let $;const{href:A,as:D,children:U,prefetch:q=null,passHref:R,replace:L,shallow:z,scroll:K,locale:J,onClick:F,onNavigate:B,onMouseEnter:V,onTouchStart:ee,legacyBehavior:Q=!1,...pe}=C;$=U,Q&&(typeof $=="string"||typeof $=="number")&&($=(0,o.jsx)("a",{children:$}));const G=a.default.useContext(h.RouterContext),Ae=q!==!1;if(process.env.NODE_ENV!=="production"){let ie=function(Y){return Object.defineProperty(new Error(`Failed prop type: The prop \`${Y.key}\` expects a ${Y.expected} in \`<Link>\`, but got \`${Y.actual}\` instead.`+(typeof window<"u"?`
|
|
51
|
+
Open your browser's console to view the Component stack trace.`:"")),"__NEXT_ERROR_CODE",{value:"E319",enumerable:!1,configurable:!0})};Object.keys({href:!0}).forEach(Y=>{if(Y==="href"&&(C[Y]==null||typeof C[Y]!="string"&&typeof C[Y]!="object"))throw ie({key:Y,expected:"`string` or `object`",actual:C[Y]===null?"null":typeof C[Y]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0,onNavigate:!0}).forEach(Y=>{const je=typeof C[Y];if(Y==="as"){if(C[Y]&&je!=="string"&&je!=="object")throw ie({key:Y,expected:"`string` or `object`",actual:je})}else if(Y==="locale"){if(C[Y]&&je!=="string")throw ie({key:Y,expected:"`string`",actual:je})}else if(Y==="onClick"||Y==="onMouseEnter"||Y==="onTouchStart"||Y==="onNavigate"){if(C[Y]&&je!=="function")throw ie({key:Y,expected:"`function`",actual:je})}else if(Y==="replace"||Y==="scroll"||Y==="shallow"||Y==="passHref"||Y==="legacyBehavior"){if(C[Y]!=null&&je!=="boolean")throw ie({key:Y,expected:"`boolean`",actual:je})}else if(Y==="prefetch"&&C[Y]!=null&&je!=="boolean"&&C[Y]!=="auto")throw ie({key:Y,expected:'`boolean | "auto"`',actual:je})})}const{href:Pe,as:he}=a.default.useMemo(()=>{if(!G){const mt=P(A);return{href:mt,as:D?P(D):mt}}const[ie,Ve]=(0,i.resolveHref)(G,A,!0);return{href:ie,as:D?(0,i.resolveHref)(G,D):Ve||ie}},[G,A,D]),Bt=a.default.useRef(Pe),Wt=a.default.useRef(he);let me;if(Q)if(process.env.NODE_ENV==="development"){F&&console.warn(`"onClick" was passed to <Link> with \`href\` of \`${A}\` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link`),V&&console.warn(`"onMouseEnter" was passed to <Link> with \`href\` of \`${A}\` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`);try{me=a.default.Children.only($)}catch{throw $?Object.defineProperty(new Error(`Multiple children were passed to <Link> with \`href\` of \`${A}\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children`+(typeof window<"u"?`
|
|
52
|
+
Open your browser's console to view the Component stack trace.`:"")),"__NEXT_ERROR_CODE",{value:"E266",enumerable:!1,configurable:!0}):Object.defineProperty(new Error(`No children were passed to <Link> with \`href\` of \`${A}\` but one child is required https://nextjs.org/docs/messages/link-no-children`),"__NEXT_ERROR_CODE",{value:"E320",enumerable:!1,configurable:!0})}}else me=a.default.Children.only($);else if(process.env.NODE_ENV==="development"&&($==null?void 0:$.type)==="a")throw Object.defineProperty(new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
|
|
53
|
+
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`),"__NEXT_ERROR_CODE",{value:"E209",enumerable:!1,configurable:!0});const nt=Q?me&&typeof me=="object"&&me.ref:j,[Tt,Ot,ot]=(0,d.useIntersection)({rootMargin:"200px"}),hr=a.default.useCallback(ie=>{(Wt.current!==he||Bt.current!==Pe)&&(ot(),Wt.current=he,Bt.current=Pe),Tt(ie)},[he,Pe,ot,Tt]),gr=(0,m.useMergedRef)(hr,nt);a.default.useEffect(()=>{process.env.NODE_ENV==="production"&&G&&(!Ot||!Ae||E(G,Pe,he,{locale:J}))},[he,Pe,Ot,J,Ae,G==null?void 0:G.locale,G]);const ne={ref:gr,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw Object.defineProperty(new Error('Component rendered inside next/link has to pass click event to "onClick" prop.'),"__NEXT_ERROR_CODE",{value:"E312",enumerable:!1,configurable:!0});!Q&&typeof F=="function"&&F(ie),Q&&me.props&&typeof me.props.onClick=="function"&&me.props.onClick(ie),G&&(ie.defaultPrevented||_(ie,G,Pe,he,L,z,K,J,B))},onMouseEnter(ie){!Q&&typeof V=="function"&&V(ie),Q&&me.props&&typeof me.props.onMouseEnter=="function"&&me.props.onMouseEnter(ie),G&&E(G,Pe,he,{locale:J,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:process.env.__NEXT_LINK_NO_TOUCH_START?void 0:function(Ve){!Q&&typeof ee=="function"&&ee(Ve),Q&&me.props&&typeof me.props.onTouchStart=="function"&&me.props.onTouchStart(Ve),G&&E(G,Pe,he,{locale:J,priority:!0,bypassPrefetchedCheck:!0})}};if((0,c.isAbsoluteUrl)(he))ne.href=he;else if(!Q||R||me.type==="a"&&!("href"in me.props)){const ie=typeof J<"u"?J:G==null?void 0:G.locale,Ve=(G==null?void 0:G.isLocaleDomain)&&(0,p.getDomainLocale)(he,ie,G==null?void 0:G.locales,G==null?void 0:G.domainLocales);ne.href=Ve||(0,g.addBasePath)((0,u.addLocale)(he,ie,G==null?void 0:G.defaultLocale))}return Q?(process.env.NODE_ENV==="development"&&(0,v.errorOnce)(`\`legacyBehavior\` is deprecated and will be removed in a future release. A codemod is available to upgrade your components:
|
|
34
54
|
|
|
35
55
|
npx @next/codemod@latest new-link .
|
|
36
56
|
|
|
37
|
-
Learn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components`),u.default.cloneElement(Q,W)):(0,f.jsx)("a",{...ve,...W,children:C})}),O=(0,u.createContext)({pending:!1}),L=()=>(0,u.useContext)(O),k=j;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(et,et.exports);var ka=et.exports,Ca=ka;const be=fn(Ca);function Ma({item:e,onHover:t}){const n=q.useRef(null);return r.jsx(D.Popover,{children:({open:s})=>r.jsxs("div",{className:"relative",onMouseEnter:()=>{var f;t&&!s&&((f=n.current)==null||f.click())},onMouseLeave:()=>{var f;t&&s&&((f=n.current)==null||f.click())},children:[r.jsxs("div",{className:"flex items-center gap-x-1",children:[e.useLink?r.jsx(be,{href:e.href,className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:e.title}):r.jsx("span",{className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:e.title}),r.jsx(D.PopoverButton,{ref:n,className:"inline-flex items-center p-1 text-gray-700 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white","aria-label":`Open ${e.title} menu`,children:r.jsx(we,{"aria-hidden":"true",className:"size-5 flex-none"})})]}),r.jsxs(D.PopoverPanel,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-screen max-w-md -translate-x-1/2 overflow-hidden rounded-3xl bg-white shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",children:[r.jsx("div",{className:"p-4",children:e.subMenu.map(f=>r.jsxs("div",{className:"group relative flex items-center gap-x-6 rounded-lg p-4 text-sm/6 hover:bg-gray-50 dark:hover:bg-white/5",children:[r.jsx("div",{className:"flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-700/50 dark:group-hover:bg-gray-700",children:(()=>{const u=f.icon;if(!u)return null;if(q.isValidElement(u))return q.cloneElement(u,{className:"size-6 text-gray-600 group-hover:text-primary","aria-hidden":!0});if(typeof u=="function"){const a=u;return r.jsx(a,{"aria-hidden":!0,className:"size-6 text-gray-600 group-hover:text-primary"})}return null})()}),r.jsxs("div",{className:"flex-auto",children:[r.jsxs("a",{href:f.href,className:"block font-semibold text-gray-900 dark:text-white",children:[f.title,r.jsx("span",{className:"absolute inset-0"})]}),r.jsx("p",{className:"mt-1 text-gray-600 dark:text-gray-400",children:f.description})]})]},f.title))}),r.jsx("div",{className:"grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 dark:divide-white/10 dark:bg-gray-700/50",children:e.ctas&&e.ctas.map(f=>r.jsxs("a",{href:f.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700/50",children:[(()=>{const u=f.icon;if(!u)return null;if(q.isValidElement(u))return q.cloneElement(u,{className:"size-5 flex-none text-gray-400","aria-hidden":!0});if(typeof u=="function"){const a=u;return r.jsx(a,{"aria-hidden":!0,className:"size-5 flex-none text-gray-400"})}return null})(),f.title]},f.title))})]})]})})}function Ia({item:e,onHover:t}){const n=q.useRef(null);return r.jsx(D.Popover,{children:({open:s})=>r.jsxs("div",{onMouseEnter:()=>{var f;t&&!s&&((f=n.current)==null||f.click())},onMouseLeave:()=>{var f;t&&s&&((f=n.current)==null||f.click())},children:[r.jsxs("div",{className:"flex items-center gap-x-1",children:[e.useLink?r.jsx(be,{href:e.href,className:"text-sm/6 font-semibold text-gray-900",children:e.title}):r.jsx("span",{className:"text-sm/6 font-semibold text-gray-900",children:e.title}),r.jsx(D.PopoverButton,{ref:n,className:"inline-flex items-center p-1 text-gray-700 hover:text-gray-900","aria-label":`Open ${e.title} menu`,children:r.jsx(we,{"aria-hidden":"true",className:"size-5 flex-none"})})]}),r.jsxs(D.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-white pt-14 shadow-lg ring-1 ring-gray-900/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[r.jsx("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8",children:e.subMenu.map(f=>r.jsxs("div",{className:"group relative rounded-lg p-6 text-sm/6 hover:bg-gray-50",children:[f.image?r.jsx("div",{className:"aspect-[4/3] w-full overflow-hidden rounded-md bg-gray-100",children:r.jsx("img",{alt:f.imageAlt||f.title,src:f.image,className:"h-full w-full object-cover transition-transform duration-200 group-hover:scale-105"})}):r.jsx("div",{className:"flex size-11 items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white",children:(()=>{const u=f.icon;if(!u)return null;if(q.isValidElement(u))return q.cloneElement(u,{className:"size-6 text-gray-600 group-hover:text-primary","aria-hidden":!0});if(typeof u=="function"){const a=u;return r.jsx(a,{"aria-hidden":!0,className:"size-6 text-gray-600 group-hover:text-primary"})}return null})()}),r.jsxs("a",{href:f.href,className:`${f.image?"mt-4":"mt-6"} block font-semibold text-gray-900`,children:[f.title,r.jsx("span",{className:"absolute inset-0"})]}),r.jsx("p",{className:"mt-1 text-gray-600",children:f.description})]},f.title))}),r.jsx("div",{className:"bg-gray-50",children:e.ctas&&r.jsx("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:r.jsx("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:e.ctas.map(f=>r.jsxs("a",{href:f.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(()=>{const u=f.icon;if(!u)return null;if(q.isValidElement(u))return q.cloneElement(u,{className:"size-5 flex-none text-gray-400","aria-hidden":!0});if(typeof u=="function"){const a=u;return r.jsx(a,{"aria-hidden":!0,className:"size-5 flex-none text-gray-400"})}return null})(),f.title]},f.title))})})})]})]})},e.id)}function La({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"}))}const tn=P.forwardRef(La);function Da({item:e,onHover:t}){const n=q.useRef(null);return r.jsx(D.Popover,{children:({open:s})=>{var f,u;return r.jsxs("div",{className:"relative",onMouseEnter:()=>{var a;t&&!s&&((a=n.current)==null||a.click())},onMouseLeave:()=>{var a;t&&s&&((a=n.current)==null||a.click())},children:[r.jsxs("div",{className:"flex items-center gap-x-1",children:[e.useLink?r.jsx(be,{href:e.href,className:"text-sm/6 font-semibold text-gray-900",children:e.title}):r.jsx("span",{className:"text-sm/6 font-semibold text-gray-900",children:e.title}),r.jsx(D.PopoverButton,{ref:n,className:"inline-flex items-center p-1 text-gray-700 hover:text-gray-900","aria-label":`Open ${e.title} menu`,children:r.jsx(we,{"aria-hidden":"true",className:"size-5 flex-none"})})]}),r.jsx(D.PopoverPanel,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-72 -translate-x-1/2 overflow-hidden rounded-2xl bg-white p-2 shadow-lg ring-1 ring-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:r.jsxs("ul",{className:"space-y-1",children:[(f=e.subMenu)==null?void 0:f.map(a=>r.jsx("li",{className:"group",children:r.jsxs(be,{href:a.href,className:"flex items-center rounded-md px-3 py-2 text-sm text-gray-400 transition-colors duration-300 group-hover:text-black",children:[(()=>{const d=a.icon;if(!d)return r.jsx(tn,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"});if(q.isValidElement(d))return q.cloneElement(d,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary","aria-hidden":!0});if(typeof d=="function"){const i=d;return r.jsx(i,{"aria-hidden":!0,className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"})}return null})(),r.jsx("span",{children:a.title})]})},a.title)),(u=e.ctas)==null?void 0:u.map(a=>r.jsx("li",{className:"group",children:r.jsxs("a",{href:a.href,className:"flex items-center rounded-md px-3 py-2 text-sm text-gray-400 transition-colors duration-300 group-hover:text-black",children:[(()=>{const d=a.icon;if(!d)return r.jsx(tn,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"});if(q.isValidElement(d))return q.cloneElement(d,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary","aria-hidden":!0});if(typeof d=="function"){const i=d;return r.jsx(i,{"aria-hidden":!0,className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"})}return null})(),r.jsx("span",{children:a.title})]})},a.title))]})})]})}})}function Fa({config:e,onScrolledChange:t,scrollThreshold:n=10,quickSearchResults:s=[]}){const[f,u]=q.useState(!1),[a,d]=q.useState(!1),[i,l]=q.useState(!1),[p,_]=q.useState("");return q.useEffect(()=>{typeof(e==null?void 0:e.onSearchOpenChange)=="function"&&e.onSearchOpenChange(i),i||(_(""),typeof(e==null?void 0:e.onClearQuickResults)=="function"&&e.onClearQuickResults())},[i]),q.useEffect(()=>{const c=()=>{const g=window.scrollY>n;d(y=>(y!==g&&typeof t=="function"&&t(g),g))};return c(),window.addEventListener("scroll",c,{passive:!0}),()=>window.removeEventListener("scroll",c)},[t,n]),r.jsxs("header",{className:`${e!=null&&e.sticky?"sticky top-0 z-50 bg-white/95 backdrop-blur supports-[backdrop-filter]:bg-white/70":"relative z-10"} isolate bg-white`,children:[r.jsxs("nav",{"aria-label":"Global",className:"mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8",children:[r.jsx("div",{className:"flex lg:flex-1",children:r.jsx(be,{href:"/","aria-label":e.logoAlt||"Home",children:e.logo?r.jsx("img",{alt:e.logoAlt||"Logo",src:e.logo,className:`w-auto transition-all duration-300 ${a?"h-8 md:h-14":"h-12 md:h-20"}`}):r.jsx("div",{className:`h-auto transition-all duration-300 ${a?"w-28":"w-32"}`,children:r.jsx("h1",{className:`transition-all duration-300 ${a?"text-xl":"text-2xl"}`,children:e.fallbackText||"<NovaNav>"})})})}),r.jsx("div",{className:"flex lg:hidden",children:r.jsxs("button",{type:"button",onClick:()=>u(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",children:[r.jsx("span",{className:"sr-only",children:"Open main menu"}),r.jsx(Je,{"aria-hidden":"true",className:"size-6"})]})}),r.jsx(D.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:e.menuItems.map(c=>{const g=c.type||(c.full?"full":"default");return c.subMenu?g==="full"?r.jsx(Ia,{item:c,onHover:c.onHover},c.id||c.title):g==="simple"?r.jsx(Da,{item:c,onHover:c.onHover},c.id||c.title):r.jsx(Ma,{item:c,onHover:c.onHover},c.id||c.title):c.useLink?r.jsx(be,{href:c.href,className:"text-sm/6 font-semibold text-gray-900",children:c.title},c.id):r.jsx("a",{href:c.href,className:"text-sm/6 font-semibold text-gray-900",children:c.title},c.id)})}),r.jsxs("div",{className:"hidden gap-4 lg:flex lg:flex-1 lg:justify-end",children:[e.search&&r.jsx("button",{type:"button",onClick:()=>l(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 hover:bg-gray-100","aria-label":"Open search",children:r.jsx($t,{"aria-hidden":"true",className:"size-6"})}),e.login&&r.jsxs("a",{href:e.loginHref,className:"text-sm/6 font-semibold text-gray-900",children:["Log in ",r.jsx("span",{"aria-hidden":"true",children:"→"})]}),e.cta&&r.jsx("a",{href:e.ctaBtnHref,className:"rounded-md bg-gray-900 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",children:e.ctaTitle||"Sign up"})]})]}),r.jsxs(D.Dialog,{open:i,onClose:l,children:[r.jsx("div",{className:"fixed inset-0 z-50 bg-black/30"}),r.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:r.jsxs(D.DialogPanel,{className:"w-full max-w-lg rounded-lg bg-white p-6 shadow-lg ring-1 ring-gray-900/10",children:[r.jsxs("div",{className:"flex items-center justify-between pb-2",children:[r.jsx("h2",{className:"text-base font-semibold text-gray-900",children:"Search"}),r.jsx("button",{type:"button",onClick:()=>l(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 hover:bg-gray-100","aria-label":"Close search",children:r.jsx(De,{"aria-hidden":"true",className:"size-5"})})]}),r.jsxs("form",{className:"mt-2",onSubmit:c=>{c.preventDefault(),typeof(e==null?void 0:e.onSearch)=="function"&&e.onSearch(p),l(!1)},children:[r.jsx("label",{htmlFor:"site-search",className:"sr-only",children:"Search"}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("input",{id:"site-search",type:"search",placeholder:"Search...",autoFocus:!0,value:p,onChange:c=>{const g=c.target.value;_(g),typeof(e==null?void 0:e.onSearchChange)=="function"&&e.onSearchChange(g)},className:"w-full rounded-md border border-gray-300 px-3 py-2 text-gray-900 shadow-sm placeholder:text-gray-400 focus:border-gray-900 focus:outline-none focus:ring-2 focus:ring-gray-900"}),r.jsx("button",{type:"submit",className:"rounded-md bg-gray-900 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",children:"Search"})]})]}),Array.isArray(s)&&s.length>0&&r.jsx("div",{className:"mt-4 divide-y divide-gray-200",children:s.map((c,g)=>{if(!c||typeof c!="object")return null;const y=c.title||c.q||c.name||"Result",h=c.desc||c.description||c.summary||c.a||"",m=typeof(e==null?void 0:e.searchTitleMax)=="number"?e.searchTitleMax:60,v=typeof(e==null?void 0:e.searchDescMax)=="number"?e.searchDescMax:100,E=typeof y=="string"&&y.length>m?`${y.slice(0,m-1)}…`:y,w=typeof h=="string"&&h.length>v?`${h.slice(0,v-1)}…`:h,x=typeof c.link=="string"?c.link:void 0,b=typeof x=="string"&&x.startsWith("/"),j=r.jsxs("div",{className:"flex items-start gap-3 py-3",children:[c!=null&&c.icon?r.jsx("div",{className:"mt-0.5 h-6 w-6 text-gray-500",children:c.icon}):c!=null&&c.image?r.jsx("img",{src:c.image,alt:y,className:"mt-0.5 h-6 w-6 rounded object-cover"}):r.jsx($t,{"aria-hidden":"true",className:"mt-0.5 size-6 text-gray-400"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:E}),w?r.jsx("div",{className:"text-sm text-gray-500 truncate",children:w}):null]})]});return x?b?r.jsx("a",{href:x,className:"block hover:bg-gray-50",onClick:()=>{typeof(e==null?void 0:e.onBeginNavigate)=="function"&&e.onBeginNavigate(),typeof(e==null?void 0:e.onClearQuickResults)=="function"&&e.onClearQuickResults(),l(!1)},children:j},x||g):r.jsx("a",{href:x,className:"block hover:bg-gray-50",onClick:()=>{typeof(e==null?void 0:e.onBeginNavigate)=="function"&&e.onBeginNavigate(),typeof(e==null?void 0:e.onClearQuickResults)=="function"&&e.onClearQuickResults(),l(!1)},children:j},x||g):r.jsx("div",{className:"block hover:bg-gray-50",children:j},g)})})]})})]}),r.jsxs(D.Dialog,{open:f,onClose:u,className:"lg:hidden",children:[r.jsx("div",{className:"fixed inset-0 z-50"}),r.jsxs(D.DialogPanel,{className:"fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white p-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(be,{href:"/",className:"-m-1.5 p-1.5","aria-label":e.logoAlt||"Home",children:e.logo?r.jsx("img",{alt:e.logoAlt||"Logo",src:e.logo,className:"h-8 w-auto"}):r.jsx("span",{className:"text-lg font-semibold",children:e.fallbackText||"NEXGEN Roofing Systems"})}),r.jsxs("button",{type:"button",onClick:()=>u(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700",children:[r.jsx("span",{className:"sr-only",children:"Close menu"}),r.jsx(De,{"aria-hidden":"true",className:"size-6"})]})]}),r.jsx("div",{className:"mt-6 flow-root",children:r.jsxs("div",{className:"-my-6 divide-y divide-gray-500/10",children:[r.jsx("div",{className:"space-y-2 py-6",children:e.menuItems.map(c=>c.subMenu?r.jsxs(D.Disclosure,{as:"div",className:"-mx-3",children:[r.jsxs(D.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:[c.title,r.jsx(we,{"aria-hidden":"true",className:"size-5 flex-none group-data-[open]:rotate-180"})]}),r.jsx(D.DisclosurePanel,{className:"mt-2 space-y-2",children:[...c.subMenu,...c.ctas||[]].map(g=>r.jsx(D.DisclosureButton,{as:"a",href:g.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm/7 font-semibold text-gray-900 hover:bg-gray-50",children:g.title},g.title))})]},c.id):c.useLink?r.jsx(be,{href:c.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:c.title},c.id):r.jsx("a",{href:c.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:c.title},c.id))}),r.jsxs("div",{className:"space-y-2 py-6",children:[e.login&&r.jsxs("a",{href:e.loginHref,className:"-mx-3 block rounded-lg px-3 py-2.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:["Log in ",r.jsx("span",{"aria-hidden":"true",children:"→"})]}),e.cta&&r.jsx("a",{href:e.ctaBtnHref,className:"-mx-3 block rounded-lg bg-gray-900 px-3 py-2.5 text-base/7 font-semibold text-white hover:bg-gray-800",children:e.ctaTitle||"Sign up"})]})]})})]})]})]})}function qa(){return r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/70",children:r.jsxs("svg",{className:"h-10 w-10 animate-spin text-gray-900",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]})})}function Ua({baseConfig:e}){const[t,n]=q.useState([]),[s,f]=q.useState(""),u=q.useRef(null),[a,d]=q.useState(!1),i=async g=>{const y=(g||"").trim();if(!y){n([]);return}try{const h=await fetch(`/api/search?q=${encodeURIComponent(y)}`);if(!h.ok)throw new Error("search failed");const m=await h.json(),v=[...Array.isArray(m==null?void 0:m.services)?m.services:[],...Array.isArray(m==null?void 0:m.faqs)?m.faqs:[],...Array.isArray(m==null?void 0:m.gallery)?m.gallery:[],...Array.isArray(m==null?void 0:m.posts)?m.posts:[],...Array.isArray(m==null?void 0:m.projects)?m.projects:[],...Array.isArray(m==null?void 0:m.locations)?m.locations:[]].filter(x=>x&&typeof x=="object"),E=new Set,w=v.filter(x=>{const b=`${(x.link||"").toLowerCase()}|${(x.title||x.q||"").toLowerCase()}`;return E.has(b)?!1:(E.add(b),!0)}).map(x=>{if(x!=null&&x.icon)return x;const b="h-6 w-6 text-gray-400";switch(x==null?void 0:x.kind){case"faq":return{...x,icon:r.jsx(In,{"aria-hidden":"true",className:b})};case"service":return{...x,icon:r.jsx(Gn,{"aria-hidden":"true",className:b})};case"project":return{...x,icon:r.jsx(yn,{"aria-hidden":"true",className:b})};case"post":return{...x,icon:r.jsx(An,{"aria-hidden":"true",className:b})};case"gallery":return{...x,icon:r.jsx(Cn,{"aria-hidden":"true",className:b})};case"location":return{...x,icon:r.jsx(Tn,{"aria-hidden":"true",className:b})};default:return x}});n(w)}catch{n([])}},l=g=>{f(g),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>i(g),300)},p=g=>{const y=(g||"").trim();y&&(d(!0),typeof window<"u"&&(window.location.href=`/search?q=${encodeURIComponent(y)}`))},_=g=>{g||(f(""),n([]),u.current&&clearTimeout(u.current))},c=q.useMemo(()=>({...e,search:!0,onSearchChange:l,onSearch:p,onSearchOpenChange:_,onClearQuickResults:()=>n([]),onBeginNavigate:()=>d(!0)}),[e]);return r.jsxs(r.Fragment,{children:[a&&r.jsx("div",{className:"fixed inset-0 z-[60]",children:r.jsx(qa,{})}),r.jsx(Fa,{config:c,quickSearchResults:t})]})}ge.NavController=Ua,ge.SimpleLight=Kn,ge.WithFlyout=Yn,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"})});
|
|
57
|
+
Learn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components`),a.default.cloneElement(me,ne)):(0,o.jsx)("a",{...pe,...ne,children:$})}),N=(0,a.createContext)({pending:!1}),M=()=>(0,a.useContext)(N),k=O;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Co,Co.exports);var wh=Co.exports,_h=wh;const pt=Jl(_h);function Ph({item:e,onHover:t}){const r=f.useRef(null);return y.jsx(mr,{children:({open:n})=>y.jsxs("div",{className:"relative",onMouseEnter:()=>{var o;t&&!n&&((o=r.current)==null||o.click())},onMouseLeave:()=>{var o;t&&n&&((o=r.current)==null||o.click())},children:[y.jsxs("div",{className:"flex items-center gap-x-1",children:[e.useLink?y.jsx(pt,{href:e.href,className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:e.title}):y.jsx("span",{className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:e.title}),y.jsx(Dt,{ref:r,className:"inline-flex items-center p-1 text-gray-700 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white","aria-label":`Open ${e.title} menu`,children:y.jsx(Ht,{"aria-hidden":"true",className:"size-5 flex-none"})})]}),y.jsxs(Ft,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-screen max-w-md -translate-x-1/2 overflow-hidden rounded-3xl bg-white shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",children:[y.jsx("div",{className:"p-4",children:e.subMenu.map(o=>y.jsxs("div",{className:"group relative flex items-center gap-x-6 rounded-lg p-4 text-sm/6 hover:bg-gray-50 dark:hover:bg-white/5",children:[y.jsx("div",{className:"flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-700/50 dark:group-hover:bg-gray-700",children:(()=>{const a=o.icon;if(!a)return null;if(f.isValidElement(a))return f.cloneElement(a,{className:"size-6 text-gray-600 group-hover:text-primary","aria-hidden":!0});if(typeof a=="function"){const i=a;return y.jsx(i,{"aria-hidden":!0,className:"size-6 text-gray-600 group-hover:text-primary"})}return null})()}),y.jsxs("div",{className:"flex-auto",children:[y.jsxs("a",{href:o.href,className:"block font-semibold text-gray-900 dark:text-white",children:[o.title,y.jsx("span",{className:"absolute inset-0"})]}),y.jsx("p",{className:"mt-1 text-gray-600 dark:text-gray-400",children:o.description})]})]},o.title))}),y.jsx("div",{className:"grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 dark:divide-white/10 dark:bg-gray-700/50",children:e.ctas&&e.ctas.map(o=>y.jsxs("a",{href:o.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700/50",children:[(()=>{const a=o.icon;if(!a)return null;if(f.isValidElement(a))return f.cloneElement(a,{className:"size-5 flex-none text-gray-400","aria-hidden":!0});if(typeof a=="function"){const i=a;return y.jsx(i,{"aria-hidden":!0,className:"size-5 flex-none text-gray-400"})}return null})(),o.title]},o.title))})]})]})})}function Sh({item:e,onHover:t}){const r=f.useRef(null);return y.jsx(mr,{children:({open:n})=>y.jsxs("div",{onMouseEnter:()=>{var o;t&&!n&&((o=r.current)==null||o.click())},onMouseLeave:()=>{var o;t&&n&&((o=r.current)==null||o.click())},children:[y.jsxs("div",{className:"flex items-center gap-x-1",children:[e.useLink?y.jsx(pt,{href:e.href,className:"text-sm/6 font-semibold text-gray-900",children:e.title}):y.jsx("span",{className:"text-sm/6 font-semibold text-gray-900",children:e.title}),y.jsx(Dt,{ref:r,className:"inline-flex items-center p-1 text-gray-700 hover:text-gray-900","aria-label":`Open ${e.title} menu`,children:y.jsx(Ht,{"aria-hidden":"true",className:"size-5 flex-none"})})]}),y.jsxs(Ft,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-white pt-14 shadow-lg ring-1 ring-gray-900/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[y.jsx("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8",children:e.subMenu.map(o=>y.jsxs("div",{className:"group relative rounded-lg p-6 text-sm/6 hover:bg-gray-50",children:[o.image?y.jsx("div",{className:"aspect-[4/3] w-full overflow-hidden rounded-md bg-gray-100",children:y.jsx("img",{alt:o.imageAlt||o.title,src:o.image,className:"h-full w-full object-cover transition-transform duration-200 group-hover:scale-105"})}):y.jsx("div",{className:"flex size-11 items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white",children:(()=>{const a=o.icon;if(!a)return null;if(f.isValidElement(a))return f.cloneElement(a,{className:"size-6 text-gray-600 group-hover:text-primary","aria-hidden":!0});if(typeof a=="function"){const i=a;return y.jsx(i,{"aria-hidden":!0,className:"size-6 text-gray-600 group-hover:text-primary"})}return null})()}),y.jsxs("a",{href:o.href,className:`${o.image?"mt-4":"mt-6"} block font-semibold text-gray-900`,children:[o.title,y.jsx("span",{className:"absolute inset-0"})]}),y.jsx("p",{className:"mt-1 text-gray-600",children:o.description})]},o.title))}),y.jsx("div",{className:"bg-gray-50",children:e.ctas&&y.jsx("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:y.jsx("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:e.ctas.map(o=>y.jsxs("a",{href:o.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(()=>{const a=o.icon;if(!a)return null;if(f.isValidElement(a))return f.cloneElement(a,{className:"size-5 flex-none text-gray-400","aria-hidden":!0});if(typeof a=="function"){const i=a;return y.jsx(i,{"aria-hidden":!0,className:"size-5 flex-none text-gray-400"})}return null})(),o.title]},o.title))})})})]})]})},e.id)}function Th({title:e,titleId:t,...r},n){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?T.createElement("title",{id:t},e):null,T.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"}))}const Wl=T.forwardRef(Th);function Oh({item:e,onHover:t}){const r=f.useRef(null);return y.jsx(mr,{children:({open:n})=>{var o,a;return y.jsxs("div",{className:"relative",onMouseEnter:()=>{var i;t&&!n&&((i=r.current)==null||i.click())},onMouseLeave:()=>{var i;t&&n&&((i=r.current)==null||i.click())},children:[y.jsxs("div",{className:"flex items-center gap-x-1",children:[e.useLink?y.jsx(pt,{href:e.href,className:"text-sm/6 font-semibold text-gray-900",children:e.title}):y.jsx("span",{className:"text-sm/6 font-semibold text-gray-900",children:e.title}),y.jsx(Dt,{ref:r,className:"inline-flex items-center p-1 text-gray-700 hover:text-gray-900","aria-label":`Open ${e.title} menu`,children:y.jsx(Ht,{"aria-hidden":"true",className:"size-5 flex-none"})})]}),y.jsx(Ft,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-72 -translate-x-1/2 overflow-hidden rounded-2xl bg-white p-2 shadow-lg ring-1 ring-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:y.jsxs("ul",{className:"space-y-1",children:[(o=e.subMenu)==null?void 0:o.map(i=>y.jsx("li",{className:"group",children:y.jsxs(pt,{href:i.href,className:"flex items-center rounded-md px-3 py-2 text-sm text-gray-400 transition-colors duration-300 group-hover:text-black",children:[(()=>{const s=i.icon;if(!s)return y.jsx(Wl,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"});if(f.isValidElement(s))return f.cloneElement(s,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary","aria-hidden":!0});if(typeof s=="function"){const l=s;return y.jsx(l,{"aria-hidden":!0,className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"})}return null})(),y.jsx("span",{children:i.title})]})},i.title)),(a=e.ctas)==null?void 0:a.map(i=>y.jsx("li",{className:"group",children:y.jsxs("a",{href:i.href,className:"flex items-center rounded-md px-3 py-2 text-sm text-gray-400 transition-colors duration-300 group-hover:text-black",children:[(()=>{const s=i.icon;if(!s)return y.jsx(Wl,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"});if(f.isValidElement(s))return f.cloneElement(s,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary","aria-hidden":!0});if(typeof s=="function"){const l=s;return y.jsx(l,{"aria-hidden":!0,className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"})}return null})(),y.jsx("span",{children:i.title})]})},i.title))]})})]})}})}function Nh({config:e,onScrolledChange:t,scrollThreshold:r=10,quickSearchResults:n=[]}){const[o,a]=f.useState(!1),[i,s]=f.useState(!1),[l,c]=f.useState(!1),[u,h]=f.useState("");return f.useEffect(()=>{typeof(e==null?void 0:e.onSearchOpenChange)=="function"&&e.onSearchOpenChange(l),l||(h(""),typeof(e==null?void 0:e.onClearQuickResults)=="function"&&e.onClearQuickResults())},[l]),f.useEffect(()=>{const d=()=>{const p=window.scrollY>r;s(g=>(g!==p&&typeof t=="function"&&t(p),p))};return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[t,r]),y.jsxs("header",{className:`${e!=null&&e.sticky?"sticky top-0 z-50 bg-white/95 backdrop-blur supports-[backdrop-filter]:bg-white/70":"relative z-10"} isolate bg-white`,children:[y.jsxs("nav",{"aria-label":"Global",className:"mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8",children:[y.jsx("div",{className:"flex lg:flex-1",children:y.jsx(pt,{href:"/","aria-label":e.logoAlt||"Home",children:e.logo?y.jsx("img",{alt:e.logoAlt||"Logo",src:e.logo,className:`w-auto transition-all duration-300 ${i?"h-8 md:h-14":"h-12 md:h-20"}`}):y.jsx("div",{className:`h-auto transition-all duration-300 ${i?"w-28":"w-32"}`,children:y.jsx("h1",{className:`transition-all duration-300 ${i?"text-xl":"text-2xl"}`,children:e.fallbackText||"<NovaNav>"})})})}),y.jsx("div",{className:"flex lg:hidden",children:y.jsxs("button",{type:"button",onClick:()=>a(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",children:[y.jsx("span",{className:"sr-only",children:"Open main menu"}),y.jsx(No,{"aria-hidden":"true",className:"size-6"})]})}),y.jsx(Oo,{className:"hidden lg:flex lg:gap-x-12",children:e.menuItems.map(d=>{const p=d.type||(d.full?"full":"default");return d.subMenu?p==="full"?y.jsx(Sh,{item:d,onHover:d.onHover},d.id||d.title):p==="simple"?y.jsx(Oh,{item:d,onHover:d.onHover},d.id||d.title):y.jsx(Ph,{item:d,onHover:d.onHover},d.id||d.title):d.useLink?y.jsx(pt,{href:d.href,className:"text-sm/6 font-semibold text-gray-900",children:d.title},d.id):y.jsx("a",{href:d.href,className:"text-sm/6 font-semibold text-gray-900",children:d.title},d.id)})}),y.jsxs("div",{className:"hidden gap-4 lg:flex lg:flex-1 lg:justify-end",children:[e.search&&y.jsx("button",{type:"button",onClick:()=>c(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 hover:bg-gray-100","aria-label":"Open search",children:y.jsx($s,{"aria-hidden":"true",className:"size-6"})}),e.login&&y.jsxs("a",{href:e.loginHref,className:"text-sm/6 font-semibold text-gray-900",children:["Log in ",y.jsx("span",{"aria-hidden":"true",children:"→"})]}),e.cta&&y.jsx("a",{href:e.ctaBtnHref,className:"rounded-md bg-gray-900 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",children:e.ctaTitle||"Sign up"})]})]}),y.jsxs(bo,{open:l,onClose:c,children:[y.jsx("div",{className:"fixed inset-0 z-50 bg-black/30"}),y.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:y.jsxs(Zr,{className:"w-full max-w-lg rounded-lg bg-white p-6 shadow-lg ring-1 ring-gray-900/10",children:[y.jsxs("div",{className:"flex items-center justify-between pb-2",children:[y.jsx("h2",{className:"text-base font-semibold text-gray-900",children:"Search"}),y.jsx("button",{type:"button",onClick:()=>c(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 hover:bg-gray-100","aria-label":"Close search",children:y.jsx(nn,{"aria-hidden":"true",className:"size-5"})})]}),y.jsxs("form",{className:"mt-2",onSubmit:d=>{d.preventDefault(),typeof(e==null?void 0:e.onSearch)=="function"&&e.onSearch(u),c(!1)},children:[y.jsx("label",{htmlFor:"site-search",className:"sr-only",children:"Search"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("input",{id:"site-search",type:"search",placeholder:"Search...",autoFocus:!0,value:u,onChange:d=>{const p=d.target.value;h(p),typeof(e==null?void 0:e.onSearchChange)=="function"&&e.onSearchChange(p)},className:"w-full rounded-md border border-gray-300 px-3 py-2 text-gray-900 shadow-sm placeholder:text-gray-400 focus:border-gray-900 focus:outline-none focus:ring-2 focus:ring-gray-900"}),y.jsx("button",{type:"submit",className:"rounded-md bg-gray-900 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",children:"Search"})]})]}),Array.isArray(n)&&n.length>0&&y.jsx("div",{className:"mt-4 divide-y divide-gray-200",children:n.map((d,p)=>{if(!d||typeof d!="object")return null;const g=d.title||d.q||d.name||"Result",m=d.desc||d.description||d.summary||d.a||"",v=typeof(e==null?void 0:e.searchTitleMax)=="number"?e.searchTitleMax:60,b=typeof(e==null?void 0:e.searchDescMax)=="number"?e.searchDescMax:100,E=typeof g=="string"&&g.length>v?`${g.slice(0,v-1)}…`:g,w=typeof m=="string"&&m.length>b?`${m.slice(0,b-1)}…`:m,_=typeof d.link=="string"?d.link:void 0,P=typeof _=="string"&&_.startsWith("/"),O=y.jsxs("div",{className:"flex items-start gap-3 py-3",children:[d!=null&&d.icon?y.jsx("div",{className:"mt-0.5 h-6 w-6 text-gray-500",children:d.icon}):d!=null&&d.image?y.jsx("img",{src:d.image,alt:g,className:"mt-0.5 h-6 w-6 rounded object-cover"}):y.jsx($s,{"aria-hidden":"true",className:"mt-0.5 size-6 text-gray-400"}),y.jsxs("div",{children:[y.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:E}),w?y.jsx("div",{className:"text-sm text-gray-500 truncate",children:w}):null]})]});return _?P?y.jsx("a",{href:_,className:"block hover:bg-gray-50",onClick:()=>{typeof(e==null?void 0:e.onBeginNavigate)=="function"&&e.onBeginNavigate(),typeof(e==null?void 0:e.onClearQuickResults)=="function"&&e.onClearQuickResults(),c(!1)},children:O},_||p):y.jsx("a",{href:_,className:"block hover:bg-gray-50",onClick:()=>{typeof(e==null?void 0:e.onBeginNavigate)=="function"&&e.onBeginNavigate(),typeof(e==null?void 0:e.onClearQuickResults)=="function"&&e.onClearQuickResults(),c(!1)},children:O},_||p):y.jsx("div",{className:"block hover:bg-gray-50",children:O},p)})})]})})]}),y.jsxs(bo,{open:o,onClose:a,className:"lg:hidden",children:[y.jsx("div",{className:"fixed inset-0 z-50"}),y.jsxs(Zr,{className:"fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white p-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx(pt,{href:"/",className:"-m-1.5 p-1.5","aria-label":e.logoAlt||"Home",children:e.logo?y.jsx("img",{alt:e.logoAlt||"Logo",src:e.logo,className:"h-8 w-auto"}):y.jsx("span",{className:"text-lg font-semibold",children:e.fallbackText||"NEXGEN Roofing Systems"})}),y.jsxs("button",{type:"button",onClick:()=>a(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700",children:[y.jsx("span",{className:"sr-only",children:"Close menu"}),y.jsx(nn,{"aria-hidden":"true",className:"size-6"})]})]}),y.jsx("div",{className:"mt-6 flow-root",children:y.jsxs("div",{className:"-my-6 divide-y divide-gray-500/10",children:[y.jsx("div",{className:"space-y-2 py-6",children:e.menuItems.map(d=>d.subMenu?y.jsxs(xs,{as:"div",className:"-mx-3",children:[y.jsxs(Ue,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:[d.title,y.jsx(Ht,{"aria-hidden":"true",className:"size-5 flex-none group-data-[open]:rotate-180"})]}),y.jsx(_o,{className:"mt-2 space-y-2",children:[...d.subMenu,...d.ctas||[]].map(p=>y.jsx(Ue,{as:"a",href:p.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm/7 font-semibold text-gray-900 hover:bg-gray-50",children:p.title},p.title))})]},d.id):d.useLink?y.jsx(pt,{href:d.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:d.title},d.id):y.jsx("a",{href:d.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:d.title},d.id))}),y.jsxs("div",{className:"space-y-2 py-6",children:[e.login&&y.jsxs("a",{href:e.loginHref,className:"-mx-3 block rounded-lg px-3 py-2.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:["Log in ",y.jsx("span",{"aria-hidden":"true",children:"→"})]}),e.cta&&y.jsx("a",{href:e.ctaBtnHref,className:"-mx-3 block rounded-lg bg-gray-900 px-3 py-2.5 text-base/7 font-semibold text-white hover:bg-gray-800",children:e.ctaTitle||"Sign up"})]})]})})]})]})]})}function Ch(){return y.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/70",children:y.jsxs("svg",{className:"h-10 w-10 animate-spin text-gray-900",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[y.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),y.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]})})}function Rh({baseConfig:e}){const[t,r]=f.useState([]),[n,o]=f.useState(""),a=f.useRef(null),[i,s]=f.useState(!1),l=async p=>{const g=(p||"").trim();if(!g){r([]);return}try{const m=await fetch(`/api/search?q=${encodeURIComponent(g)}`);if(!m.ok)throw new Error("search failed");const v=await m.json(),b=[...Array.isArray(v==null?void 0:v.services)?v.services:[],...Array.isArray(v==null?void 0:v.faqs)?v.faqs:[],...Array.isArray(v==null?void 0:v.gallery)?v.gallery:[],...Array.isArray(v==null?void 0:v.posts)?v.posts:[],...Array.isArray(v==null?void 0:v.projects)?v.projects:[],...Array.isArray(v==null?void 0:v.locations)?v.locations:[]].filter(_=>_&&typeof _=="object"),E=new Set,w=b.filter(_=>{const P=`${(_.link||"").toLowerCase()}|${(_.title||_.q||"").toLowerCase()}`;return E.has(P)?!1:(E.add(P),!0)}).map(_=>{if(_!=null&&_.icon)return _;const P="h-6 w-6 text-gray-400";switch(_==null?void 0:_.kind){case"faq":return{..._,icon:y.jsx(Sm,{"aria-hidden":"true",className:P})};case"service":return{..._,icon:y.jsx(Lm,{"aria-hidden":"true",className:P})};case"project":return{..._,icon:y.jsx(cm,{"aria-hidden":"true",className:P})};case"post":return{..._,icon:y.jsx(xm,{"aria-hidden":"true",className:P})};case"gallery":return{..._,icon:y.jsx(_m,{"aria-hidden":"true",className:P})};case"location":return{..._,icon:y.jsx(ym,{"aria-hidden":"true",className:P})};default:return _}});r(w)}catch{r([])}},c=p=>{o(p),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>l(p),300)},u=p=>{const g=(p||"").trim();g&&(s(!0),typeof window<"u"&&(window.location.href=`/search?q=${encodeURIComponent(g)}`))},h=p=>{p||(o(""),r([]),a.current&&clearTimeout(a.current))},d=f.useMemo(()=>({...e,search:!0,onSearchChange:c,onSearch:u,onSearchOpenChange:h,onClearQuickResults:()=>r([]),onBeginNavigate:()=>s(!0)}),[e]);return y.jsxs(y.Fragment,{children:[i&&y.jsx("div",{className:"fixed inset-0 z-[60]",children:y.jsx(Ch,{})}),y.jsx(Nh,{config:d,quickSearchResults:t})]})}qe.NavController=Rh,qe.SimpleLight=Hm,qe.WithFlyout=Fm,Object.defineProperty(qe,Symbol.toStringTag,{value:"Module"})});
|