@petnow/ui 1.1.0 → 1.1.1

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/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(Q,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],c):(Q=typeof globalThis<"u"?globalThis:Q||self,c(Q["@petnow/ui"]={},Q.React,Q.ReactDOM))})(this,function(Q,c,Mt){"use strict";function Mr(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 Me=Mr(c);var st={exports:{}},Fe={};/**
1
+ (function(fe,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],c):(fe=typeof globalThis<"u"?globalThis:fe||self,c(fe["@petnow/ui"]={},fe.React,fe.ReactDOM))})(this,function(fe,c,Be){"use strict";function Kn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const L=Kn(c),Zo=Kn(Be);var rn={exports:{}},ut={};/**
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 Ft;function Fr(){if(Ft)return Fe;Ft=1;var e=c,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 l(s,u,b){var d,p={},j=null,_=null;b!==void 0&&(j=""+b),u.key!==void 0&&(j=""+u.key),u.ref!==void 0&&(_=u.ref);for(d in u)n.call(u,d)&&!a.hasOwnProperty(d)&&(p[d]=u[d]);if(s&&s.defaultProps)for(d in u=s.defaultProps,u)p[d]===void 0&&(p[d]=u[d]);return{$$typeof:t,type:s,key:j,ref:_,props:p,_owner:o.current}}return Fe.Fragment=r,Fe.jsx=l,Fe.jsxs=l,Fe}var $e={};/**
9
+ */var Xn;function ei(){if(Xn)return ut;Xn=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(s,a,f){var u,p={},b=null,m=null;f!==void 0&&(b=""+f),a.key!==void 0&&(b=""+a.key),a.ref!==void 0&&(m=a.ref);for(u in a)r.call(a,u)&&!i.hasOwnProperty(u)&&(p[u]=a[u]);if(s&&s.defaultProps)for(u in a=s.defaultProps,a)p[u]===void 0&&(p[u]=a[u]);return{$$typeof:t,type:s,key:b,ref:m,props:p,_owner:o.current}}return ut.Fragment=n,ut.jsx=l,ut.jsxs=l,ut}var ct={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,21 +14,23 @@
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 $t;function $r(){return $t||($t=1,process.env.NODE_ENV!=="production"&&function(){var e=c,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"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),g=Symbol.iterator,y="@@iterator";function x(i){if(i===null||typeof i!="object")return null;var f=g&&i[g]||i[y];return typeof f=="function"?f:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(i){{for(var f=arguments.length,w=new Array(f>1?f-1:0),S=1;S<f;S++)w[S-1]=arguments[S];R("error",i,w)}}function R(i,f,w){{var S=v.ReactDebugCurrentFrame,M=S.getStackAddendum();M!==""&&(f+="%s",w=w.concat([M]));var D=w.map(function(N){return String(N)});D.unshift("Warning: "+f),Function.prototype.apply.call(console[i],console,D)}}var F=!1,G=!1,ne=!1,V=!1,re=!1,Y;Y=Symbol.for("react.module.reference");function K(i){return!!(typeof i=="string"||typeof i=="function"||i===n||i===a||re||i===o||i===b||i===d||V||i===_||F||G||ne||typeof i=="object"&&i!==null&&(i.$$typeof===j||i.$$typeof===p||i.$$typeof===l||i.$$typeof===s||i.$$typeof===u||i.$$typeof===Y||i.getModuleId!==void 0))}function h(i,f,w){var S=i.displayName;if(S)return S;var M=f.displayName||f.name||"";return M!==""?w+"("+M+")":w}function m(i){return i.displayName||"Context"}function E(i){if(i==null)return null;if(typeof i.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case b:return"Suspense";case d:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case s:var f=i;return m(f)+".Consumer";case l:var w=i;return m(w._context)+".Provider";case u:return h(i,i.render,"ForwardRef");case p:var S=i.displayName||null;return S!==null?S:E(i.type)||"Memo";case j:{var M=i,D=M._payload,N=M._init;try{return E(N(D))}catch{return null}}}return null}var C=Object.assign,A=0,$,z,J,I,fe,Z,ee;function Ge(){}Ge.__reactDisabledLog=!0;function He(){{if(A===0){$=console.log,z=console.info,J=console.warn,I=console.error,fe=console.group,Z=console.groupCollapsed,ee=console.groupEnd;var i={configurable:!0,enumerable:!0,value:Ge,writable:!0};Object.defineProperties(console,{info:i,log:i,warn:i,error:i,group:i,groupCollapsed:i,groupEnd:i})}A++}}function Ve(){{if(A--,A===0){var i={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C({},i,{value:$}),info:C({},i,{value:z}),warn:C({},i,{value:J}),error:C({},i,{value:I}),group:C({},i,{value:fe}),groupCollapsed:C({},i,{value:Z}),groupEnd:C({},i,{value:ee})})}A<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oe=v.ReactCurrentDispatcher,we;function Pe(i,f,w){{if(we===void 0)try{throw Error()}catch(M){var S=M.stack.trim().match(/\n( *(at )?)/);we=S&&S[1]||""}return`
18
- `+we+i}}var je=!1,pe;{var W=typeof WeakMap=="function"?WeakMap:Map;pe=new W}function oe(i,f){if(!i||je)return"";{var w=pe.get(i);if(w!==void 0)return w}var S;je=!0;var M=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var D;D=Oe.current,Oe.current=null,He();try{if(f){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(X){S=X}Reflect.construct(i,[],N)}else{try{N.call()}catch(X){S=X}i.call(N.prototype)}}else{try{throw Error()}catch(X){S=X}i()}}catch(X){if(X&&S&&typeof X.stack=="string"){for(var k=X.stack.split(`
19
- `),q=S.stack.split(`
20
- `),B=k.length-1,U=q.length-1;B>=1&&U>=0&&k[B]!==q[U];)U--;for(;B>=1&&U>=0;B--,U--)if(k[B]!==q[U]){if(B!==1||U!==1)do if(B--,U--,U<0||k[B]!==q[U]){var te=`
21
- `+k[B].replace(" at new "," at ");return i.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",i.displayName)),typeof i=="function"&&pe.set(i,te),te}while(B>=1&&U>=0);break}}}finally{je=!1,Oe.current=D,Ve(),Error.prepareStackTrace=M}var Ne=i?i.displayName||i.name:"",Se=Ne?Pe(Ne):"";return typeof i=="function"&&pe.set(i,Se),Se}function Ye(i,f,w){return oe(i,!1)}function ai(i){var f=i.prototype;return!!(f&&f.isReactComponent)}function lt(i,f,w){if(i==null)return"";if(typeof i=="function")return oe(i,ai(i));if(typeof i=="string")return Pe(i);switch(i){case b:return Pe("Suspense");case d:return Pe("SuspenseList")}if(typeof i=="object")switch(i.$$typeof){case u:return Ye(i.render);case p:return lt(i.type,f,w);case j:{var S=i,M=S._payload,D=S._init;try{return lt(D(M),f,w)}catch{}}}return""}var qe=Object.prototype.hasOwnProperty,wr={},xr=v.ReactDebugCurrentFrame;function at(i){if(i){var f=i._owner,w=lt(i.type,i._source,f?f.type:null);xr.setExtraStackFrame(w)}else xr.setExtraStackFrame(null)}function si(i,f,w,S,M){{var D=Function.call.bind(qe);for(var N in i)if(D(i,N)){var k=void 0;try{if(typeof i[N]!="function"){var q=Error((S||"React class")+": "+w+" type `"+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[N]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw q.name="Invariant Violation",q}k=i[N](f,N,S,w,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){k=B}k&&!(k instanceof Error)&&(at(M),P("%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).",S||"React class",w,N,typeof k),at(null)),k instanceof Error&&!(k.message in wr)&&(wr[k.message]=!0,at(M),P("Failed %s type: %s",w,k.message),at(null))}}}var ui=Array.isArray;function St(i){return ui(i)}function ci(i){{var f=typeof Symbol=="function"&&Symbol.toStringTag,w=f&&i[Symbol.toStringTag]||i.constructor.name||"Object";return w}}function di(i){try{return Er(i),!1}catch{return!0}}function Er(i){return""+i}function Cr(i){if(di(i))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ci(i)),Er(i)}var Ke=v.ReactCurrentOwner,fi={key:!0,ref:!0,__self:!0,__source:!0},Or,Pr,_t;_t={};function pi(i){if(qe.call(i,"ref")){var f=Object.getOwnPropertyDescriptor(i,"ref").get;if(f&&f.isReactWarning)return!1}return i.ref!==void 0}function mi(i){if(qe.call(i,"key")){var f=Object.getOwnPropertyDescriptor(i,"key").get;if(f&&f.isReactWarning)return!1}return i.key!==void 0}function bi(i,f){if(typeof i.ref=="string"&&Ke.current&&f&&Ke.current.stateNode!==f){var w=E(Ke.current.type);_t[w]||(P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',E(Ke.current.type),i.ref),_t[w]=!0)}}function gi(i,f){{var w=function(){Or||(Or=!0,P("%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)",f))};w.isReactWarning=!0,Object.defineProperty(i,"key",{get:w,configurable:!0})}}function hi(i,f){{var w=function(){Pr||(Pr=!0,P("%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)",f))};w.isReactWarning=!0,Object.defineProperty(i,"ref",{get:w,configurable:!0})}}var vi=function(i,f,w,S,M,D,N){var k={$$typeof:t,type:i,key:f,ref:w,props:N,_owner:D};return k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(k,"_self",{configurable:!1,enumerable:!1,writable:!1,value:S}),Object.defineProperty(k,"_source",{configurable:!1,enumerable:!1,writable:!1,value:M}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k};function yi(i,f,w,S,M){{var D,N={},k=null,q=null;w!==void 0&&(Cr(w),k=""+w),mi(f)&&(Cr(f.key),k=""+f.key),pi(f)&&(q=f.ref,bi(f,M));for(D in f)qe.call(f,D)&&!fi.hasOwnProperty(D)&&(N[D]=f[D]);if(i&&i.defaultProps){var B=i.defaultProps;for(D in B)N[D]===void 0&&(N[D]=B[D])}if(k||q){var U=typeof i=="function"?i.displayName||i.name||"Unknown":i;k&&gi(N,U),q&&hi(N,U)}return vi(i,k,q,M,S,Ke.current,N)}}var Tt=v.ReactCurrentOwner,jr=v.ReactDebugCurrentFrame;function Ae(i){if(i){var f=i._owner,w=lt(i.type,i._source,f?f.type:null);jr.setExtraStackFrame(w)}else jr.setExtraStackFrame(null)}var kt;kt=!1;function At(i){return typeof i=="object"&&i!==null&&i.$$typeof===t}function Sr(){{if(Tt.current){var i=E(Tt.current.type);if(i)return`
17
+ */var Qn;function ti(){return Qn||(Qn=1,process.env.NODE_ENV!=="production"&&function(){var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,v="@@iterator";function x(d){if(d===null||typeof d!="object")return null;var O=g&&d[g]||d[v];return typeof O=="function"?O:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(d){{for(var O=arguments.length,k=new Array(O>1?O-1:0),I=1;I<O;I++)k[I-1]=arguments[I];C("error",d,k)}}function C(d,O,k){{var I=y.ReactDebugCurrentFrame,Y=I.getStackAddendum();Y!==""&&(O+="%s",k=k.concat([Y]));var Q=k.map(function(U){return String(U)});Q.unshift("Warning: "+O),Function.prototype.apply.call(console[d],console,Q)}}var $=!1,j=!1,H=!1,W=!1,D=!1,B;B=Symbol.for("react.module.reference");function z(d){return!!(typeof d=="string"||typeof d=="function"||d===r||d===i||D||d===o||d===f||d===u||W||d===m||$||j||H||typeof d=="object"&&d!==null&&(d.$$typeof===b||d.$$typeof===p||d.$$typeof===l||d.$$typeof===s||d.$$typeof===a||d.$$typeof===B||d.getModuleId!==void 0))}function E(d,O,k){var I=d.displayName;if(I)return I;var Y=O.displayName||O.name||"";return Y!==""?k+"("+Y+")":k}function h(d){return d.displayName||"Context"}function S(d){if(d==null)return null;if(typeof d.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case f:return"Suspense";case u:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case s:var O=d;return h(O)+".Consumer";case l:var k=d;return h(k._context)+".Provider";case a:return E(d,d.render,"ForwardRef");case p:var I=d.displayName||null;return I!==null?I:S(d.type)||"Memo";case b:{var Y=d,Q=Y._payload,U=Y._init;try{return S(U(Q))}catch{return null}}}return null}var T=Object.assign,P=0,M,A,K,N,ie,oe,le;function Ee(){}Ee.__reactDisabledLog=!0;function Qe(){{if(P===0){M=console.log,A=console.info,K=console.warn,N=console.error,ie=console.group,oe=console.groupCollapsed,le=console.groupEnd;var d={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}P++}}function Je(){{if(P--,P===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},d,{value:M}),info:T({},d,{value:A}),warn:T({},d,{value:K}),error:T({},d,{value:N}),group:T({},d,{value:ie}),groupCollapsed:T({},d,{value:oe}),groupEnd:T({},d,{value:le})})}P<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ke=y.ReactCurrentDispatcher,Ce;function Me(d,O,k){{if(Ce===void 0)try{throw Error()}catch(Y){var I=Y.stack.trim().match(/\n( *(at )?)/);Ce=I&&I[1]||""}return`
18
+ `+Ce+d}}var q=!1,X;{var G=typeof WeakMap=="function"?WeakMap:Map;X=new G}function be(d,O){if(!d||q)return"";{var k=X.get(d);if(k!==void 0)return k}var I;q=!0;var Y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Q;Q=ke.current,ke.current=null,Qe();try{if(O){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(me){I=me}Reflect.construct(d,[],U)}else{try{U.call()}catch(me){I=me}d.call(U.prototype)}}else{try{throw Error()}catch(me){I=me}d()}}catch(me){if(me&&I&&typeof me.stack=="string"){for(var V=me.stack.split(`
19
+ `),ce=I.stack.split(`
20
+ `),ee=V.length-1,ne=ce.length-1;ee>=1&&ne>=0&&V[ee]!==ce[ne];)ne--;for(;ee>=1&&ne>=0;ee--,ne--)if(V[ee]!==ce[ne]){if(ee!==1||ne!==1)do if(ee--,ne--,ne<0||V[ee]!==ce[ne]){var ye=`
21
+ `+V[ee].replace(" at new "," at ");return d.displayName&&ye.includes("<anonymous>")&&(ye=ye.replace("<anonymous>",d.displayName)),typeof d=="function"&&X.set(d,ye),ye}while(ee>=1&&ne>=0);break}}}finally{q=!1,ke.current=Q,Je(),Error.prepareStackTrace=Y}var at=d?d.displayName||d.name:"",Ze=at?Me(at):"";return typeof d=="function"&&X.set(d,Ze),Ze}function jt(d,O,k){return be(d,!1)}function Bu(d){var O=d.prototype;return!!(O&&O.isReactComponent)}function tn(d,O,k){if(d==null)return"";if(typeof d=="function")return be(d,Bu(d));if(typeof d=="string")return Me(d);switch(d){case f:return Me("Suspense");case u:return Me("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case a:return jt(d.render);case p:return tn(d.type,O,k);case b:{var I=d,Y=I._payload,Q=I._init;try{return tn(Q(Y),O,k)}catch{}}}return""}var kt=Object.prototype.hasOwnProperty,Ho={},Wo=y.ReactDebugCurrentFrame;function nn(d){if(d){var O=d._owner,k=tn(d.type,d._source,O?O.type:null);Wo.setExtraStackFrame(k)}else Wo.setExtraStackFrame(null)}function zu(d,O,k,I,Y){{var Q=Function.call.bind(kt);for(var U in d)if(Q(d,U)){var V=void 0;try{if(typeof d[U]!="function"){var ce=Error((I||"React class")+": "+k+" type `"+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[U]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ce.name="Invariant Violation",ce}V=d[U](O,U,I,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ee){V=ee}V&&!(V instanceof Error)&&(nn(Y),w("%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).",I||"React class",k,U,typeof V),nn(null)),V instanceof Error&&!(V.message in Ho)&&(Ho[V.message]=!0,nn(Y),w("Failed %s type: %s",k,V.message),nn(null))}}}var Vu=Array.isArray;function zn(d){return Vu(d)}function Uu(d){{var O=typeof Symbol=="function"&&Symbol.toStringTag,k=O&&d[Symbol.toStringTag]||d.constructor.name||"Object";return k}}function Gu(d){try{return Bo(d),!1}catch{return!0}}function Bo(d){return""+d}function zo(d){if(Gu(d))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Uu(d)),Bo(d)}var Mt=y.ReactCurrentOwner,Yu={key:!0,ref:!0,__self:!0,__source:!0},Vo,Uo,Vn;Vn={};function qu(d){if(kt.call(d,"ref")){var O=Object.getOwnPropertyDescriptor(d,"ref").get;if(O&&O.isReactWarning)return!1}return d.ref!==void 0}function Ku(d){if(kt.call(d,"key")){var O=Object.getOwnPropertyDescriptor(d,"key").get;if(O&&O.isReactWarning)return!1}return d.key!==void 0}function Xu(d,O){if(typeof d.ref=="string"&&Mt.current&&O&&Mt.current.stateNode!==O){var k=S(Mt.current.type);Vn[k]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',S(Mt.current.type),d.ref),Vn[k]=!0)}}function Qu(d,O){{var k=function(){Vo||(Vo=!0,w("%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)",O))};k.isReactWarning=!0,Object.defineProperty(d,"key",{get:k,configurable:!0})}}function Ju(d,O){{var k=function(){Uo||(Uo=!0,w("%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)",O))};k.isReactWarning=!0,Object.defineProperty(d,"ref",{get:k,configurable:!0})}}var Zu=function(d,O,k,I,Y,Q,U){var V={$$typeof:t,type:d,key:O,ref:k,props:U,_owner:Q};return V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(V,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(V,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V};function ec(d,O,k,I,Y){{var Q,U={},V=null,ce=null;k!==void 0&&(zo(k),V=""+k),Ku(O)&&(zo(O.key),V=""+O.key),qu(O)&&(ce=O.ref,Xu(O,Y));for(Q in O)kt.call(O,Q)&&!Yu.hasOwnProperty(Q)&&(U[Q]=O[Q]);if(d&&d.defaultProps){var ee=d.defaultProps;for(Q in ee)U[Q]===void 0&&(U[Q]=ee[Q])}if(V||ce){var ne=typeof d=="function"?d.displayName||d.name||"Unknown":d;V&&Qu(U,ne),ce&&Ju(U,ne)}return Zu(d,V,ce,Y,I,Mt.current,U)}}var Un=y.ReactCurrentOwner,Go=y.ReactDebugCurrentFrame;function st(d){if(d){var O=d._owner,k=tn(d.type,d._source,O?O.type:null);Go.setExtraStackFrame(k)}else Go.setExtraStackFrame(null)}var Gn;Gn=!1;function Yn(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function Yo(){{if(Un.current){var d=S(Un.current.type);if(d)return`
22
22
 
23
- Check the render method of \``+i+"`."}return""}}function wi(i){return""}var _r={};function xi(i){{var f=Sr();if(!f){var w=typeof i=="string"?i:i.displayName||i.name;w&&(f=`
23
+ Check the render method of \``+d+"`."}return""}}function tc(d){return""}var qo={};function nc(d){{var O=Yo();if(!O){var k=typeof d=="string"?d:d.displayName||d.name;k&&(O=`
24
24
 
25
- Check the top-level render call using <`+w+">.")}return f}}function Tr(i,f){{if(!i._store||i._store.validated||i.key!=null)return;i._store.validated=!0;var w=xi(f);if(_r[w])return;_r[w]=!0;var S="";i&&i._owner&&i._owner!==Tt.current&&(S=" It was passed a child from "+E(i._owner.type)+"."),Ae(i),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',w,S),Ae(null)}}function kr(i,f){{if(typeof i!="object")return;if(St(i))for(var w=0;w<i.length;w++){var S=i[w];At(S)&&Tr(S,f)}else if(At(i))i._store&&(i._store.validated=!0);else if(i){var M=x(i);if(typeof M=="function"&&M!==i.entries)for(var D=M.call(i),N;!(N=D.next()).done;)At(N.value)&&Tr(N.value,f)}}}function Ei(i){{var f=i.type;if(f==null||typeof f=="string")return;var w;if(typeof f=="function")w=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===u||f.$$typeof===p))w=f.propTypes;else return;if(w){var S=E(f);si(w,i.props,"prop",S,i)}else if(f.PropTypes!==void 0&&!kt){kt=!0;var M=E(f);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",M||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ci(i){{for(var f=Object.keys(i.props),w=0;w<f.length;w++){var S=f[w];if(S!=="children"&&S!=="key"){Ae(i),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",S),Ae(null);break}}i.ref!==null&&(Ae(i),P("Invalid attribute `ref` supplied to `React.Fragment`."),Ae(null))}}var Ar={};function Nr(i,f,w,S,M,D){{var N=K(i);if(!N){var k="";(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(k+=" 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 q=wi();q?k+=q:k+=Sr();var B;i===null?B="null":St(i)?B="array":i!==void 0&&i.$$typeof===t?(B="<"+(E(i.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):B=typeof i,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",B,k)}var U=yi(i,f,w,M,D);if(U==null)return U;if(N){var te=f.children;if(te!==void 0)if(S)if(St(te)){for(var Ne=0;Ne<te.length;Ne++)kr(te[Ne],i);Object.freeze&&Object.freeze(te)}else P("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 kr(te,i)}if(qe.call(f,"key")){var Se=E(i),X=Object.keys(f).filter(function(Ti){return Ti!=="key"}),Nt=X.length>0?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}";if(!Ar[Se+Nt]){var _i=X.length>0?"{"+X.join(": ..., ")+": ...}":"{}";P(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+k+">.")}return O}}function Ko(d,O){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var k=nc(O);if(qo[k])return;qo[k]=!0;var I="";d&&d._owner&&d._owner!==Un.current&&(I=" It was passed a child from "+S(d._owner.type)+"."),st(d),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',k,I),st(null)}}function Xo(d,O){{if(typeof d!="object")return;if(zn(d))for(var k=0;k<d.length;k++){var I=d[k];Yn(I)&&Ko(I,O)}else if(Yn(d))d._store&&(d._store.validated=!0);else if(d){var Y=x(d);if(typeof Y=="function"&&Y!==d.entries)for(var Q=Y.call(d),U;!(U=Q.next()).done;)Yn(U.value)&&Ko(U.value,O)}}}function rc(d){{var O=d.type;if(O==null||typeof O=="string")return;var k;if(typeof O=="function")k=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===a||O.$$typeof===p))k=O.propTypes;else return;if(k){var I=S(O);zu(k,d.props,"prop",I,d)}else if(O.PropTypes!==void 0&&!Gn){Gn=!0;var Y=S(O);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Y||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function oc(d){{for(var O=Object.keys(d.props),k=0;k<O.length;k++){var I=O[k];if(I!=="children"&&I!=="key"){st(d),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),st(null);break}}d.ref!==null&&(st(d),w("Invalid attribute `ref` supplied to `React.Fragment`."),st(null))}}var Qo={};function Jo(d,O,k,I,Y,Q){{var U=z(d);if(!U){var V="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(V+=" 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=tc();ce?V+=ce:V+=Yo();var ee;d===null?ee="null":zn(d)?ee="array":d!==void 0&&d.$$typeof===t?(ee="<"+(S(d.type)||"Unknown")+" />",V=" Did you accidentally export a JSX literal instead of a component?"):ee=typeof d,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ee,V)}var ne=ec(d,O,k,Y,Q);if(ne==null)return ne;if(U){var ye=O.children;if(ye!==void 0)if(I)if(zn(ye)){for(var at=0;at<ye.length;at++)Xo(ye[at],d);Object.freeze&&Object.freeze(ye)}else w("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 Xo(ye,d)}if(kt.call(O,"key")){var Ze=S(d),me=Object.keys(O).filter(function(cc){return cc!=="key"}),qn=me.length>0?"{key: someKey, "+me.join(": ..., ")+": ...}":"{key: someKey}";if(!Qo[Ze+qn]){var uc=me.length>0?"{"+me.join(": ..., ")+": ...}":"{}";w(`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} />`,Nt,Se,_i,Se),Ar[Se+Nt]=!0}}return i===n?Ci(U):Ei(U),U}}function Oi(i,f,w){return Nr(i,f,w,!0)}function Pi(i,f,w){return Nr(i,f,w,!1)}var ji=Pi,Si=Oi;$e.Fragment=n,$e.jsx=ji,$e.jsxs=Si}()),$e}process.env.NODE_ENV==="production"?st.exports=Fr():st.exports=$r();var O=st.exports;function Dt(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Dt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Dr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Dt(e))&&(n&&(n+=" "),n+=t);return n}const ut="-";function Lr(e){const t=Rr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;function o(l){const s=l.split(ut);return s[0]===""&&s.length!==1&&s.shift(),Lt(s,t)||Ir(l)}function a(l,s){const u=r[l]||[];return s&&n[l]?[...u,...n[l]]:u}return{getClassGroupId:o,getConflictingClassGroupIds:a}}function Lt(e,t){var l;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Lt(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(ut);return(l=t.validators.find(({validator:s})=>s(a)))==null?void 0:l.classGroupId}const It=/^\[(.+)\]$/;function Ir(e){if(It.test(e)){const t=It.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Rr(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Wr(Object.entries(e.classGroups),r).forEach(([a,l])=>{ct(l,n,a,t)}),n}function ct(e,t,r,n){e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Rt(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(zr(o)){ct(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,l])=>{ct(l,Rt(t,a),r,n)})})}function Rt(e,t){let r=e;return t.split(ut).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function zr(e){return e.isThemeGetter}function Wr(e,t){return t?e.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,s])=>[t+l,s])):a);return[r,o]}):e}function Br(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function o(a,l){r.set(a,l),t++,t>e&&(t=0,n=r,r=new Map)}return{get(a){let l=r.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){r.has(a)?r.set(a,l):o(a,l)}}}const zt="!";function Ur(e){const t=e.separator,r=t.length===1,n=t[0],o=t.length;return function(l){const s=[];let u=0,b=0,d;for(let y=0;y<l.length;y++){let x=l[y];if(u===0){if(x===n&&(r||l.slice(y,y+o)===t)){s.push(l.slice(b,y)),b=y+o;continue}if(x==="/"){d=y;continue}}x==="["?u++:x==="]"&&u--}const p=s.length===0?l:l.substring(b),j=p.startsWith(zt),_=j?p.substring(1):p,g=d&&d>b?d-b:void 0;return{modifiers:s,hasImportantModifier:j,baseClassName:_,maybePostfixModifierPosition:g}}}function Gr(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t}function Hr(e){return{cache:Br(e.cacheSize),splitModifiers:Ur(e),...Lr(e)}}const Vr=/\s+/;function Yr(e,t){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(Vr).map(l=>{const{modifiers:s,hasImportantModifier:u,baseClassName:b,maybePostfixModifierPosition:d}=r(l);let p=n(d?b.substring(0,d):b),j=!!d;if(!p){if(!d)return{isTailwindClass:!1,originalClassName:l};if(p=n(b),!p)return{isTailwindClass:!1,originalClassName:l};j=!1}const _=Gr(s).join(":");return{isTailwindClass:!0,modifierId:u?_+zt:_,classGroupId:p,originalClassName:l,hasPostfixModifier:j}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:s,classGroupId:u,hasPostfixModifier:b}=l,d=s+u;return a.has(d)?!1:(a.add(d),o(u,b).forEach(p=>a.add(s+p)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function qr(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Wt(t))&&(n&&(n+=" "),n+=r);return n}function Wt(e){if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Wt(e[n]))&&(r&&(r+=" "),r+=t);return r}function Kr(e,...t){let r,n,o,a=l;function l(u){const b=t.reduce((d,p)=>p(d),e());return r=Hr(b),n=r.cache.get,o=r.cache.set,a=s,s(u)}function s(u){const b=n(u);if(b)return b;const d=Yr(u,r);return o(u,d),d}return function(){return a(qr.apply(null,arguments))}}function L(e){const t=r=>r[e]||[];return t.isThemeGetter=!0,t}const Bt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Jr=/^\d+\/\d+$/,Xr=new Set(["px","full","screen"]),Qr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,en=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ie(e){return xe(e)||Xr.has(e)||Jr.test(e)}function me(e){return _e(e,"length",dn)}function xe(e){return!!e&&!Number.isNaN(Number(e))}function Je(e){return _e(e,"number",xe)}function De(e){return!!e&&Number.isInteger(Number(e))}function nn(e){return e.endsWith("%")&&xe(e.slice(0,-1))}function T(e){return Bt.test(e)}function be(e){return Qr.test(e)}const on=new Set(["length","size","percentage"]);function ln(e){return _e(e,on,Ut)}function an(e){return _e(e,"position",Ut)}const sn=new Set(["image","url"]);function un(e){return _e(e,sn,pn)}function cn(e){return _e(e,"",fn)}function Le(){return!0}function _e(e,t,r){const n=Bt.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1}function dn(e){return Zr.test(e)&&!en.test(e)}function Ut(){return!1}function fn(e){return tn.test(e)}function pn(e){return rn.test(e)}function mn(){const e=L("colors"),t=L("spacing"),r=L("blur"),n=L("brightness"),o=L("borderColor"),a=L("borderRadius"),l=L("borderSpacing"),s=L("borderWidth"),u=L("contrast"),b=L("grayscale"),d=L("hueRotate"),p=L("invert"),j=L("gap"),_=L("gradientColorStops"),g=L("gradientColorStopPositions"),y=L("inset"),x=L("margin"),v=L("opacity"),P=L("padding"),R=L("saturate"),F=L("scale"),G=L("sepia"),ne=L("skew"),V=L("space"),re=L("translate"),Y=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],h=()=>["auto",T,t],m=()=>[T,t],E=()=>["",ie,me],C=()=>["auto",xe,T],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",T],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[xe,Je],ee=()=>[xe,T];return{cacheSize:500,separator:":",theme:{colors:[Le],spacing:[ie,me],blur:["none","",be,T],brightness:Z(),borderColor:[e],borderRadius:["none","","full",be,T],borderSpacing:m(),borderWidth:E(),contrast:Z(),grayscale:I(),hueRotate:ee(),invert:I(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[nn,me],inset:h(),margin:h(),opacity:Z(),padding:m(),saturate:Z(),scale:Z(),sepia:I(),skew:ee(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",T]}],container:["container"],columns:[{columns:[be]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...A(),T]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",De,T]}],basis:[{basis:h()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",T]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",De,T]}],"grid-cols":[{"grid-cols":[Le]}],"col-start-end":[{col:["auto",{span:["full",De,T]},T]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[Le]}],"row-start-end":[{row:["auto",{span:[De,T]},T]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",T]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",T]}],gap:[{gap:[j]}],"gap-x":[{"gap-x":[j]}],"gap-y":[{"gap-y":[j]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",T,t]}],"min-w":[{"min-w":[T,t,"min","max","fit"]}],"max-w":[{"max-w":[T,t,"none","full","min","max","fit","prose",{screen:[be]},be]}],h:[{h:[T,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[T,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[T,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[T,t,"auto","min","max","fit"]}],"font-size":[{text:["base",be,me]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Je]}],"font-family":[{font:[Le]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",T]}],"line-clamp":[{"line-clamp":["none",xe,Je]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ie,T]}],"list-image":[{"list-image":["none",T]}],"list-style-type":[{list:["none","disc","decimal",T]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ie,me]}],"underline-offset":[{"underline-offset":["auto",ie,T]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),an]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ln]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},un]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[_]}],"gradient-via":[{via:[_]}],"gradient-to":[{to:[_]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[ie,T]}],"outline-w":[{outline:[ie,me]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[ie,me]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",be,cn]}],"shadow-color":[{shadow:[Le]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",be,T]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[R]}],sepia:[{sepia:[G]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",T]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",T]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",T]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[De,T]}],"translate-x":[{"translate-x":[re]}],"translate-y":[{"translate-y":[re]}],"skew-x":[{"skew-x":[ne]}],"skew-y":[{"skew-y":[ne]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",T]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",T]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",T]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ie,me,Je]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const bn=Kr(mn);function dt(...e){return bn(Dr(e))}const Gt=({className:e,text:t,onClick:r,disabled:n})=>O.jsx("button",{disabled:n,onClick:r,className:dt("w-full rounded-xl bg-petnowOrange py-5 text-2xl font-bold text-white transition-colors duration-200 disabled:bg-lightGray sm:hover:bg-[#DF592C] sm:disabled:hover:bg-lightGray",e),children:t});var Ht={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Vt=c.createContext&&c.createContext(Ht),gn=["attr","size","title"];function hn(e,t){if(e==null)return{};var r=vn(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vn(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xe.apply(this,arguments)}function Yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yt(Object(r),!0).forEach(function(n){yn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yn(e,t,r){return t=wn(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wn(e){var t=xn(e,"string");return typeof t=="symbol"?t:t+""}function xn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qt(e){return e&&e.map((t,r)=>c.createElement(t.tag,Qe({key:r},t.attr),qt(t.child)))}function Ze(e){return t=>c.createElement(En,Xe({attr:Qe({},e.attr)},t),qt(e.child))}function En(e){var t=r=>{var{attr:n,size:o,title:a}=e,l=hn(e,gn),s=o||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),c.createElement("svg",Xe({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,l,{className:u,style:Qe(Qe({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&c.createElement("title",null,a),e.children)};return Vt!==void 0?c.createElement(Vt.Consumer,null,r=>t(r)):t(Ht)}function Cn(e){return Ze({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"},child:[]}]})(e)}function Kt(e){return Ze({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}var On=Object.defineProperty,Pn=(e,t,r)=>t in e?On(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ft=(e,t,r)=>(Pn(e,typeof t!="symbol"?t+"":t,r),r);let jn=class{constructor(){ft(this,"current",this.detect()),ft(this,"handoffState","pending"),ft(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"}},Ee=new jn;function pt(e){return Ee.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function et(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Te(){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 et(()=>{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=Te();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 Sn(){let[e]=c.useState(Te);return c.useEffect(()=>()=>e.dispose(),[e]),e}let le=(e,t)=>{Ee.isServer?c.useEffect(e,t):c.useLayoutEffect(e,t)};function Ie(e){let t=c.useRef(e);return le(()=>{t.current=e},[e]),t}let H=function(e){let t=Ie(e);return c.useCallback((...r)=>t.current(...r),[t])},_n=c.createContext(void 0);function Tn(){return c.useContext(_n)}function Jt(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function ge(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,ge),n}var mt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(mt||{}),kn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(kn||{});function ae({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:a=!0,name:l,mergeRefs:s}){s=s??An;let u=Xt(t,e);if(a)return tt(u,r,n,l,s);let b=o??0;if(b&2){let{static:d=!1,...p}=u;if(d)return tt(p,r,n,l,s)}if(b&1){let{unmount:d=!0,...p}=u;return ge(d?0:1,{0(){return null},1(){return tt({...p,hidden:!0,style:{display:"none"}},r,n,l,s)}})}return tt(u,r,n,l,s)}function tt(e,t={},r,n,o){let{as:a=r,children:l,refName:s="ref",...u}=bt(e,["unmount","static"]),b=e.ref!==void 0?{[s]:e.ref}:{},d=typeof l=="function"?l(t):l;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t)),u["aria-labelledby"]&&u["aria-labelledby"]===u.id&&(u["aria-labelledby"]=void 0);let p={};if(t){let j=!1,_=[];for(let[g,y]of Object.entries(t))typeof y=="boolean"&&(j=!0),y===!0&&_.push(g.replace(/([A-Z])/g,x=>`-${x.toLowerCase()}`));if(j){p["data-headlessui-state"]=_.join(" ");for(let g of _)p[`data-${g}`]=""}}if(a===c.Fragment&&(Object.keys(ke(u)).length>0||Object.keys(ke(p)).length>0))if(!c.isValidElement(d)||Array.isArray(d)&&d.length>1){if(Object.keys(ke(u)).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(ke(u)).concat(Object.keys(ke(p))).map(j=>` - ${j}`).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(j=>` - ${j}`).join(`
30
+ <%s key={someKey} {...props} />`,qn,Ze,uc,Ze),Qo[Ze+qn]=!0}}return d===r?oc(ne):rc(ne),ne}}function ic(d,O,k){return Jo(d,O,k,!0)}function lc(d,O,k){return Jo(d,O,k,!1)}var sc=lc,ac=ic;ct.Fragment=r,ct.jsx=sc,ct.jsxs=ac}()),ct}process.env.NODE_ENV==="production"?rn.exports=ei():rn.exports=ti();var F=rn.exports;function Jn(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Jn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ni(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Jn(e))&&(r&&(r+=" "),r+=t);return r}const on="-";function ri(e){const t=ii(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(l){const s=l.split(on);return s[0]===""&&s.length!==1&&s.shift(),Zn(s,t)||oi(l)}function i(l,s){const a=n[l]||[];return s&&r[l]?[...a,...r[l]]:a}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function Zn(e,t){var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Zn(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(on);return(l=t.validators.find(({validator:s})=>s(i)))==null?void 0:l.classGroupId}const er=/^\[(.+)\]$/;function oi(e){if(er.test(e)){const t=er.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function ii(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return si(Object.entries(e.classGroups),n).forEach(([i,l])=>{ln(l,r,i,t)}),r}function ln(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:tr(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(li(o)){ln(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{ln(l,tr(t,i),n,r)})})}function tr(e,t){let n=e;return t.split(on).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function li(e){return e.isThemeGetter}function si(e,t){return t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,s])=>[t+l,s])):i);return[n,o]}):e}function ai(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(i,l){n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}}const nr="!";function ui(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(l){const s=[];let a=0,f=0,u;for(let v=0;v<l.length;v++){let x=l[v];if(a===0){if(x===r&&(n||l.slice(v,v+o)===t)){s.push(l.slice(f,v)),f=v+o;continue}if(x==="/"){u=v;continue}}x==="["?a++:x==="]"&&a--}const p=s.length===0?l:l.substring(f),b=p.startsWith(nr),m=b?p.substring(1):p,g=u&&u>f?u-f:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:m,maybePostfixModifierPosition:g}}}function ci(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function fi(e){return{cache:ai(e.cacheSize),splitModifiers:ui(e),...ri(e)}}const di=/\s+/;function pi(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(di).map(l=>{const{modifiers:s,hasImportantModifier:a,baseClassName:f,maybePostfixModifierPosition:u}=n(l);let p=r(u?f.substring(0,u):f),b=!!u;if(!p){if(!u)return{isTailwindClass:!1,originalClassName:l};if(p=r(f),!p)return{isTailwindClass:!1,originalClassName:l};b=!1}const m=ci(s).join(":");return{isTailwindClass:!0,modifierId:a?m+nr:m,classGroupId:p,originalClassName:l,hasPostfixModifier:b}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:s,classGroupId:a,hasPostfixModifier:f}=l,u=s+a;return i.has(u)?!1:(i.add(u),o(a,f).forEach(p=>i.add(s+p)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function mi(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=rr(t))&&(r&&(r+=" "),r+=n);return r}function rr(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=rr(e[r]))&&(n&&(n+=" "),n+=t);return n}function gi(e,...t){let n,r,o,i=l;function l(a){const f=t.reduce((u,p)=>p(u),e());return n=fi(f),r=n.cache.get,o=n.cache.set,i=s,s(a)}function s(a){const f=r(a);if(f)return f;const u=pi(a,n);return o(a,u),u}return function(){return i(mi.apply(null,arguments))}}function J(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const or=/^\[(?:([a-z-]+):)?(.+)\]$/i,vi=/^\d+\/\d+$/,hi=new Set(["px","full","screen"]),bi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ei=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Oe(e){return ze(e)||hi.has(e)||vi.test(e)}function Le(e){return et(e,"length",ji)}function ze(e){return!!e&&!Number.isNaN(Number(e))}function Lt(e){return et(e,"number",ze)}function ft(e){return!!e&&Number.isInteger(Number(e))}function Ci(e){return e.endsWith("%")&&ze(e.slice(0,-1))}function R(e){return or.test(e)}function Ae(e){return bi.test(e)}const Oi=new Set(["length","size","percentage"]);function Pi(e){return et(e,Oi,ir)}function Si(e){return et(e,"position",ir)}const Ti=new Set(["image","url"]);function $i(e){return et(e,Ti,Mi)}function Fi(e){return et(e,"",ki)}function dt(){return!0}function et(e,t,n){const r=or.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function ji(e){return yi.test(e)&&!xi.test(e)}function ir(){return!1}function ki(e){return wi.test(e)}function Mi(e){return Ei.test(e)}function Li(){const e=J("colors"),t=J("spacing"),n=J("blur"),r=J("brightness"),o=J("borderColor"),i=J("borderRadius"),l=J("borderSpacing"),s=J("borderWidth"),a=J("contrast"),f=J("grayscale"),u=J("hueRotate"),p=J("invert"),b=J("gap"),m=J("gradientColorStops"),g=J("gradientColorStopPositions"),v=J("inset"),x=J("margin"),y=J("opacity"),w=J("padding"),C=J("saturate"),$=J("scale"),j=J("sepia"),H=J("skew"),W=J("space"),D=J("translate"),B=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",R,t],h=()=>[R,t],S=()=>["",Oe,Le],T=()=>["auto",ze,R],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",R],ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],oe=()=>[ze,Lt],le=()=>[ze,R];return{cacheSize:500,separator:":",theme:{colors:[dt],spacing:[Oe,Le],blur:["none","",Ae,R],brightness:oe(),borderColor:[e],borderRadius:["none","","full",Ae,R],borderSpacing:h(),borderWidth:S(),contrast:oe(),grayscale:N(),hueRotate:le(),invert:N(),gap:h(),gradientColorStops:[e],gradientColorStopPositions:[Ci,Le],inset:E(),margin:E(),opacity:oe(),padding:h(),saturate:oe(),scale:oe(),sepia:N(),skew:le(),space:h(),translate:h()},classGroups:{aspect:[{aspect:["auto","square","video",R]}],container:["container"],columns:[{columns:[Ae]}],"break-after":[{"break-after":ie()}],"break-before":[{"break-before":ie()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...P(),R]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ft,R]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",R]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",ft,R]}],"grid-cols":[{"grid-cols":[dt]}],"col-start-end":[{col:["auto",{span:["full",ft,R]},R]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[dt]}],"row-start-end":[{row:["auto",{span:[ft,R]},R]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",R]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",R]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[W]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[W]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",R,t]}],"min-w":[{"min-w":[R,t,"min","max","fit"]}],"max-w":[{"max-w":[R,t,"none","full","min","max","fit","prose",{screen:[Ae]},Ae]}],h:[{h:[R,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[R,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[R,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[R,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ae,Le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Lt]}],"font-family":[{font:[dt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",R]}],"line-clamp":[{"line-clamp":["none",ze,Lt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Oe,R]}],"list-image":[{"list-image":["none",R]}],"list-style-type":[{list:["none","disc","decimal",R]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Oe,Le]}],"underline-offset":[{"underline-offset":["auto",Oe,R]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",R]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),Si]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Pi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$i]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:M()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...M()]}],"outline-offset":[{"outline-offset":[Oe,R]}],"outline-w":[{outline:[Oe,Le]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Oe,Le]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ae,Fi]}],"shadow-color":[{shadow:[dt]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Ae,R]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[p]}],saturate:[{saturate:[C]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",R]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",R]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",R]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[$]}],"scale-x":[{"scale-x":[$]}],"scale-y":[{"scale-y":[$]}],rotate:[{rotate:[ft,R]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",R]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",R]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",R]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Oe,Le,Lt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Ai=gi(Li);function sn(...e){return Ai(ni(e))}const lr=({className:e,text:t,onClick:n,disabled:r})=>F.jsx("button",{disabled:r,onClick:n,className:sn("w-full rounded-xl bg-petnowOrange py-5 text-2xl font-bold text-white transition-colors duration-200 disabled:bg-lightGray sm:hover:bg-[#DF592C] sm:disabled:hover:bg-lightGray",e),children:t});var sr={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ar=c.createContext&&c.createContext(sr),Di=["attr","size","title"];function _i(e,t){if(e==null)return{};var n=Ii(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ii(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(this,arguments)}function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ur(Object(n),!0).forEach(function(r){Ni(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ni(e,t,n){return t=Ri(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ri(e){var t=Hi(e,"string");return typeof t=="symbol"?t:t+""}function Hi(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cr(e){return e&&e.map((t,n)=>c.createElement(t.tag,Dt({key:n},t.attr),cr(t.child)))}function pt(e){return t=>c.createElement(Wi,At({attr:Dt({},e.attr)},t),cr(e.child))}function Wi(e){var t=n=>{var{attr:r,size:o,title:i}=e,l=_i(e,Di),s=o||n.size||"1em",a;return n.className&&(a=n.className),e.className&&(a=(a?a+" ":"")+e.className),c.createElement("svg",At({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:a,style:Dt(Dt({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&c.createElement("title",null,i),e.children)};return ar!==void 0?c.createElement(ar.Consumer,null,n=>t(n)):t(sr)}function Bi(e){return pt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"},child:[]}]})(e)}function fr(e){return pt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}const dr=typeof document<"u"?c.useLayoutEffect:()=>{};function zi(e){const t=c.useRef(null);return dr(()=>{t.current=e},[e]),c.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const mt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Ve=e=>e&&"window"in e&&e.window===e?e:mt(e).defaultView||window;function Vi(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Ui(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 Gi(){return Ui(/^Mac/i)}function Yi(){return Vi(/Android/i)}function qi(e){return e.mozInputSource===0&&e.isTrusted?!0:Yi()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class Ki{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function pr(e){let t=c.useRef({isFocused:!1,observer:null});dr(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=zi(r=>{e==null||e(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=l=>{t.current.isFocused=!1,o.disabled&&n(new Ki("blur",l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Xi(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=c.useCallback(a=>{if(a.target===a.currentTarget)return r&&r(a),o&&o(!1),!0},[r,o]),l=pr(i),s=c.useCallback(a=>{const f=mt(a.target);a.target===a.currentTarget&&f.activeElement===a.target&&(n&&n(a),o&&o(!0),l(a))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let gt=null,an=new Set,vt=new Map,Ue=!1,un=!1;const Qi={Tab:!0,Escape:!0};function cn(e,t){for(let n of an)n(e,t)}function Ji(e){return!(e.metaKey||!Gi()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function _t(e){Ue=!0,Ji(e)&&(gt="keyboard",cn("keyboard",e))}function he(e){gt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ue=!0,cn("pointer",e))}function mr(e){qi(e)&&(Ue=!0,gt="virtual")}function gr(e){e.target===window||e.target===document||(!Ue&&!un&&(gt="virtual",cn("virtual",e)),Ue=!1,un=!1)}function vr(){Ue=!1,un=!0}function fn(e){if(typeof window>"u"||vt.get(Ve(e)))return;const t=Ve(e),n=mt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ue=!0,r.apply(this,arguments)},n.addEventListener("keydown",_t,!0),n.addEventListener("keyup",_t,!0),n.addEventListener("click",mr,!0),t.addEventListener("focus",gr,!0),t.addEventListener("blur",vr,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",he,!0),n.addEventListener("pointermove",he,!0),n.addEventListener("pointerup",he,!0)):(n.addEventListener("mousedown",he,!0),n.addEventListener("mousemove",he,!0),n.addEventListener("mouseup",he,!0)),t.addEventListener("beforeunload",()=>{hr(e)},{once:!0}),vt.set(t,{focus:r})}const hr=(e,t)=>{const n=Ve(e),r=mt(e);t&&r.removeEventListener("DOMContentLoaded",t),vt.has(n)&&(n.HTMLElement.prototype.focus=vt.get(n).focus,r.removeEventListener("keydown",_t,!0),r.removeEventListener("keyup",_t,!0),r.removeEventListener("click",mr,!0),n.removeEventListener("focus",gr,!0),n.removeEventListener("blur",vr,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",he,!0),r.removeEventListener("pointermove",he,!0),r.removeEventListener("pointerup",he,!0)):(r.removeEventListener("mousedown",he,!0),r.removeEventListener("mousemove",he,!0),r.removeEventListener("mouseup",he,!0)),vt.delete(n))};function Zi(e){const t=mt(e);let n;return t.readyState!=="loading"?fn(e):(n=()=>{fn(e)},t.addEventListener("DOMContentLoaded",n)),()=>hr(e,n)}typeof document<"u"&&Zi();function br(){return gt!=="pointer"}const el=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function tl(e,t,n){var r;const o=typeof window<"u"?Ve(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Ve(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Ve(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?Ve(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!el.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof l&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!Qi[n.key])}function nl(e,t,n){fn(),c.useEffect(()=>{let r=(o,i)=>{tl(!!(n!=null&&n.isTextInput),o,i)&&e(br())};return an.add(r),()=>{an.delete(r)}},t)}function rl(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=c.useRef({isFocusWithin:!1}),l=c.useCallback(f=>{i.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(f),o&&o(!1))},[n,o,i]),s=pr(l),a=c.useCallback(f=>{!i.current.isFocusWithin&&document.activeElement===f.target&&(r&&r(f),o&&o(!0),i.current.isFocusWithin=!0,s(f))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:l}}}let It=!1,dn=0;function pn(){It=!0,setTimeout(()=>{It=!1},50)}function yr(e){e.pointerType==="touch"&&pn()}function ol(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",yr):document.addEventListener("touchend",pn),dn++,()=>{dn--,!(dn>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",yr):document.removeEventListener("touchend",pn))}}function il(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,l]=c.useState(!1),s=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(ol,[]);let{hoverProps:a,triggerHoverEnd:f}=c.useMemo(()=>{let u=(m,g)=>{if(s.pointerType=g,o||g==="touch"||s.isHovered||!m.currentTarget.contains(m.target))return;s.isHovered=!0;let v=m.currentTarget;s.target=v,t&&t({type:"hoverstart",target:v,pointerType:g}),n&&n(!0),l(!0)},p=(m,g)=>{if(s.pointerType="",s.target=null,g==="touch"||!s.isHovered)return;s.isHovered=!1;let v=m.currentTarget;r&&r({type:"hoverend",target:v,pointerType:g}),n&&n(!1),l(!1)},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=m=>{It&&m.pointerType==="mouse"||u(m,m.pointerType)},b.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,m.pointerType)}):(b.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=m=>{!s.ignoreEmulatedMouseEvents&&!It&&u(m,"mouse"),s.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,"mouse")}),{hoverProps:b,triggerHoverEnd:p}},[t,n,r,o,s]);return c.useEffect(()=>{o&&f({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:a,isHovered:i}}function ll(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=c.useRef({isFocused:!1,isFocusVisible:t||br()}),[i,l]=c.useState(!1),[s,a]=c.useState(()=>o.current.isFocused&&o.current.isFocusVisible),f=c.useCallback(()=>a(o.current.isFocused&&o.current.isFocusVisible),[]),u=c.useCallback(m=>{o.current.isFocused=m,l(m),f()},[f]);nl(m=>{o.current.isFocusVisible=m,f()},[],{isTextInput:n});let{focusProps:p}=Xi({isDisabled:r,onFocusChange:u}),{focusWithinProps:b}=rl({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:s,focusProps:r?b:p}}var sl=Object.defineProperty,al=(e,t,n)=>t in e?sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mn=(e,t,n)=>(al(e,typeof t!="symbol"?t+"":t,n),n);let ul=class{constructor(){mn(this,"current",this.detect()),mn(this,"handoffState","pending"),mn(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 ul;function ht(e){return Ge.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Nt(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Pe(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Nt(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Pe();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function De(){let[e]=c.useState(Pe);return c.useEffect(()=>()=>e.dispose(),[e]),e}let Z=(e,t)=>{Ge.isServer?c.useEffect(e,t):c.useLayoutEffect(e,t)};function Ye(e){let t=c.useRef(e);return Z(()=>{t.current=e},[e]),t}let _=function(e){let t=Ye(e);return c.useCallback((...n)=>t.current(...n),[t])};function cl(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function fl(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function dl({disabled:e=!1}={}){let t=c.useRef(null),[n,r]=c.useState(!1),o=De(),i=_(()=>{t.current=null,r(!1),o.dispose()}),l=_(s=>{if(o.dispose(),t.current===null){t.current=s.currentTarget,r(!0);{let a=ht(s.currentTarget);o.addEventListener(a,"pointerup",i,!1),o.addEventListener(a,"pointermove",f=>{if(t.current){let u=cl(f);r(fl(u,t.current.getBoundingClientRect()))}},!1),o.addEventListener(a,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:l,onPointerUp:i,onClick:i}}}let pl=c.createContext(void 0);function gn(){return c.useContext(pl)}function xr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function de(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=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(r,de),r}var bt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(bt||{}),ml=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ml||{});function se({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:l,mergeRefs:s}){s=s??gl;let a=wr(t,e);if(i)return Rt(a,n,r,l,s);let f=o??0;if(f&2){let{static:u=!1,...p}=a;if(u)return Rt(p,n,r,l,s)}if(f&1){let{unmount:u=!0,...p}=a;return de(u?0:1,{0(){return null},1(){return Rt({...p,hidden:!0,style:{display:"none"}},n,r,l,s)}})}return Rt(a,n,r,l,s)}function Rt(e,t={},n,r,o){let{as:i=n,children:l,refName:s="ref",...a}=vn(e,["unmount","static"]),f=e.ref!==void 0?{[s]:e.ref}:{},u=typeof l=="function"?l(t):l;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t)),a["aria-labelledby"]&&a["aria-labelledby"]===a.id&&(a["aria-labelledby"]=void 0);let p={};if(t){let b=!1,m=[];for(let[g,v]of Object.entries(t))typeof v=="boolean"&&(b=!0),v===!0&&m.push(g.replace(/([A-Z])/g,x=>`-${x.toLowerCase()}`));if(b){p["data-headlessui-state"]=m.join(" ");for(let g of m)p[`data-${g}`]=""}}if(i===c.Fragment&&(Object.keys(qe(a)).length>0||Object.keys(qe(p)).length>0))if(!c.isValidElement(u)||Array.isArray(u)&&u.length>1){if(Object.keys(qe(a)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(qe(a)).concat(Object.keys(qe(p))).map(b=>` - ${b}`).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(b=>` - ${b}`).join(`
32
32
  `)].join(`
33
- `))}else{let j=d.props,_=j==null?void 0:j.className,g=typeof _=="function"?(...v)=>Jt(_(...v),u.className):Jt(_,u.className),y=g?{className:g}:{},x=Xt(d.props,ke(bt(u,["ref"])));for(let v in p)v in x&&delete p[v];return c.cloneElement(d,Object.assign({},x,p,b,{ref:o(d.ref,b.ref)},y))}return c.createElement(a,Object.assign({},bt(u,["ref"]),a!==c.Fragment&&b,a!==c.Fragment&&p),d)}function An(...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 Xt(...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 l=r[n];for(let s of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...a)}}});return t}function se(e){var t;return Object.assign(c.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ke(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function bt(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Nn="div";var rt=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(rt||{});function Mn(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 ae({ourProps:a,theirProps:o,slot:{},defaultTag:Nn,name:"Hidden"})}let gt=se(Mn),Fn=c.createContext(null);function $n({children:e}){let t=c.useContext(Fn);if(!t)return c.createElement(c.Fragment,null,e);let{target:r}=t;return r?Mt.createPortal(c.createElement(c.Fragment,null,e),r):null}let Qt=Symbol();function Dn(e,t=!0){return Object.assign(e,{[Qt]:t})}function he(...e){let t=c.useRef(e);c.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[Qt]))?void 0:r}let ht=c.createContext(null);ht.displayName="DescriptionContext";function Zt(){let e=c.useContext(ht);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,Zt),t}return e}function Ln(){let[e,t]=c.useState([]);return[e.length>0?e.join(" "):void 0,c.useMemo(()=>function(r){let n=H(a=>(t(l=>[...l,a]),()=>t(l=>{let s=l.slice(),u=s.indexOf(a);return u!==-1&&s.splice(u,1),s}))),o=c.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 c.createElement(ht.Provider,{value:o},r.children)},[t])]}let In="p";function Rn(e,t){let r=c.useId(),n=Tn(),{id:o=`headlessui-description-${r}`,...a}=e,l=Zt(),s=he(t);le(()=>l.register(o),[o,l.register]);let u=n||!1,b=c.useMemo(()=>({...l.slot,disabled:u}),[l.slot,u]),d={ref:s,...l.props,id:o};return ae({ourProps:d,theirProps:a,slot:b,defaultTag:In,name:l.name||"Description"})}let zn=se(Rn),Wn=Object.assign(zn,{});var er=(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))(er||{});let Bn=c.createContext(()=>{});function Un({value:e,children:t}){return c.createElement(Bn.Provider,{value:e},t)}let vt=new Map,Re=new Map;function tr(e){var t;let r=(t=Re.get(e))!=null?t:0;return Re.set(e,r+1),r!==0?()=>rr(e):(vt.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>rr(e))}function rr(e){var t;let r=(t=Re.get(e))!=null?t:1;if(r===1?Re.delete(e):Re.set(e,r-1),r!==1)return;let n=vt.get(e);n&&(n["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,vt.delete(e))}function Gn({allowed:e,disallowed:t}={},r=!0){le(()=>{var n,o;if(!r)return;let a=Te();for(let s of(n=t==null?void 0:t())!=null?n:[])s&&a.add(tr(s));let l=(o=e==null?void 0:e())!=null?o:[];for(let s of l){if(!s)continue;let u=pt(s);if(!u)continue;let b=s.parentElement;for(;b&&b!==u.body;){for(let d of b.children)l.some(p=>d.contains(p))||a.add(tr(d));b=b.parentElement}}return a.dispose},[r,e,t])}function Hn(e,t,r=!0){let n=Ie(o=>{let a=o.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&t()});c.useEffect(()=>{if(!r)return;let o=e===null?null:e instanceof HTMLElement?e:e.current;if(!o)return;let a=Te();if(typeof ResizeObserver<"u"){let l=new ResizeObserver(()=>n.current(o));l.observe(o),a.add(()=>l.disconnect())}if(typeof IntersectionObserver<"u"){let l=new IntersectionObserver(()=>n.current(o));l.observe(o),a.add(()=>l.disconnect())}return()=>a.dispose()},[e,n,r])}let yt=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Vn=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ue=(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))(ue||{}),wt=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(wt||{}),Yn=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Yn||{});function qn(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(yt)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}function Kn(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Vn)).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 Jn(e,t=0){var r;return e===((r=pt(e))==null?void 0:r.body)?!1:ge(t,{0(){return e.matches(yt)},1(){let n=e;for(;n!==null;){if(n.matches(yt))return!0;n=n.parentElement}return!1}})}var Xn=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Xn||{});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 ce(e){e==null||e.focus({preventScroll:!0})}let Qn=["textarea","input"].join(",");function Zn(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Qn))!=null?r:!1}function eo(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 l=o.compareDocumentPosition(a);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ze(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:o=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?r?eo(e):e:t&64?Kn(e):qn(e);o.length>0&&l.length>1&&(l=l.filter(_=>!o.some(g=>g!=null&&"current"in g?(g==null?void 0:g.current)===_:g===_))),n=n??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")})(),u=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(n))-1;if(t&4)return Math.max(0,l.indexOf(n))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),b=t&32?{preventScroll:!0}:{},d=0,p=l.length,j;do{if(d>=p||d+p<=0)return 0;let _=u+d;if(t&16)_=(_+p)%p;else{if(_<0)return 3;if(_>=p)return 1}j=l[_],j==null||j.focus(b),d+=s}while(j!==a.activeElement);return t&6&&Zn(j)&&j.select(),2}function or(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function to(){return/Android/gi.test(window.navigator.userAgent)}function ro(){return or()||to()}function nt(e,t,r){let n=Ie(t);c.useEffect(()=>{function o(a){n.current(a)}return document.addEventListener(e,o,r),()=>document.removeEventListener(e,o,r)},[e,r])}function ir(e,t,r){let n=Ie(t);c.useEffect(()=>{function o(a){n.current(a)}return window.addEventListener(e,o,r),()=>window.removeEventListener(e,o,r)},[e,r])}function no(e,t,r=!0){let n=c.useRef(!1);c.useEffect(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function o(l,s){if(!n.current||l.defaultPrevented)return;let u=s(l);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let b=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let d of b){if(d===null)continue;let p=d instanceof HTMLElement?d:d.current;if(p!=null&&p.contains(u)||l.composed&&l.composedPath().includes(p))return}return!Jn(u,nr.Loose)&&u.tabIndex!==-1&&l.preventDefault(),t(l,u)}let a=c.useRef(null);nt("pointerdown",l=>{var s,u;n.current&&(a.current=((u=(s=l.composedPath)==null?void 0:s.call(l))==null?void 0:u[0])||l.target)},!0),nt("mousedown",l=>{var s,u;n.current&&(a.current=((u=(s=l.composedPath)==null?void 0:s.call(l))==null?void 0:u[0])||l.target)},!0),nt("click",l=>{ro()||a.current&&(o(l,()=>a.current),a.current=null)},!0),nt("touchend",l=>o(l,()=>l.target instanceof HTMLElement?l.target:null),!0),ir("blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function We(...e){return c.useMemo(()=>pt(...e),[...e])}function lr(e,t,r,n){let o=Ie(r);c.useEffect(()=>{e=e??window;function a(l){o.current(l)}return e.addEventListener(t,a,n),()=>e.removeEventListener(t,a,n)},[e,t,n])}function oo(e){return c.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function io(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 l=t[o].call(r,...a);l&&(r=l,n.forEach(s=>s()))}}}function lo(){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 ao(){return or()?{before({doc:e,d:t,meta:r}){function n(o){return r.containers.flatMap(a=>a()).some(a=>a.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=Te();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let a=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let u=s.target.closest("a");if(!u)return;let{hash:b}=new URL(u.href),d=e.querySelector(b);d&&!n(d)&&(l=d)}catch{}},!0),t.addEventListener(e,"touchstart",s=>{if(s.target instanceof HTMLElement)if(n(s.target)){let u=s.target;for(;u.parentElement&&n(u.parentElement);)u=u.parentElement;t.style(u,"overscrollBehavior","contain")}else t.style(s.target,"touchAction","none")}),t.addEventListener(e,"touchmove",s=>{if(s.target instanceof HTMLElement){if(s.target.tagName==="INPUT")return;if(n(s.target)){let u=s.target;for(;u.parentElement&&u.dataset.headlessuiPortal!==""&&!(u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth);)u=u.parentElement;u.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let u=(s=window.scrollY)!=null?s:window.pageYOffset;a!==u&&window.scrollTo(0,a),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function so(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function uo(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let Ce=io(()=>new Map,{PUSH(e,t){var r;let n=(r=this.get(e))!=null?r:{doc:e,count:0,d:Te(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:uo(r)},o=[ao(),lo(),so()];o.forEach(({before:a})=>a==null?void 0:a(n)),o.forEach(({after:a})=>a==null?void 0:a(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ce.subscribe(()=>{let e=Ce.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)&&Ce.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),r.count===0&&Ce.dispatch("TEARDOWN",r)}});function co(e,t,r=()=>({containers:[]})){let n=oo(Ce),o=e?n.get(e):void 0,a=o?o.count>0:!1;return le(()=>{if(!(!e||!t))return Ce.dispatch("PUSH",e,r),()=>Ce.dispatch("POP",e,r)},[t,e]),a}function fo(e,t,r=()=>[document.body]){co(e,t,n=>{var o;return{containers:[...(o=n.containers)!=null?o:[],r]}})}function xt(e,t){let r=c.useRef([]),n=H(e);c.useEffect(()=>{let o=[...r.current];for(let[a,l]of t.entries())if(r.current[a]!==l){let s=n(t,o);return r.current=t,s}},[n,...t])}let ar=c.createContext(null);ar.displayName="OpenClosedContext";var Be=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Be||{});function po(){return c.useContext(ar)}function mo(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let ve=[];mo(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&ve[0]!==t.target&&(ve.unshift(t.target),ve=ve.filter(r=>r!=null&&r.isConnected),ve.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 sr(e){let t=H(e),r=c.useRef(!1);c.useEffect(()=>(r.current=!1,()=>{r.current=!0,et(()=>{r.current&&t()})}),[t])}function bo(){let e=typeof document>"u";return"useSyncExternalStore"in Me?(t=>t.useSyncExternalStore)(Me)(()=>()=>{},()=>!1,()=>!e):!1}function Et(){let e=bo(),[t,r]=Me.useState(Ee.isHandoffComplete);return t&&Ee.isHandoffComplete===!1&&r(!1),Me.useEffect(()=>{t!==!0&&r(!0)},[t]),Me.useEffect(()=>Ee.handoff(),[]),e?!1:t}let ur=c.createContext(!1);function go(){return c.useContext(ur)}function cr(e){return c.createElement(ur.Provider,{value:e.force},e.children)}function ho(e){let t=go(),r=c.useContext(fr),n=We(e),[o,a]=c.useState(()=>{var l;if(!t&&r!==null)return(l=r.current)!=null?l:null;if(Ee.isServer)return null;let s=n==null?void 0:n.getElementById("headlessui-portal-root");if(s)return s;if(n===null)return null;let u=n.createElement("div");return u.setAttribute("id","headlessui-portal-root"),n.body.appendChild(u)});return c.useEffect(()=>{o!==null&&(n!=null&&n.body.contains(o)||n==null||n.body.appendChild(o))},[o,n]),c.useEffect(()=>{t||r!==null&&a(r.current)},[r,a,t]),o}let dr=c.Fragment,vo=se(function(e,t){let r=e,n=c.useRef(null),o=he(Dn(d=>{n.current=d}),t),a=We(n),l=ho(n),[s]=c.useState(()=>{var d;return Ee.isServer?null:(d=a==null?void 0:a.createElement("div"))!=null?d:null}),u=c.useContext(Ct),b=Et();return le(()=>{!l||!s||l.contains(s)||(s.setAttribute("data-headlessui-portal",""),l.appendChild(s))},[l,s]),le(()=>{if(s&&u)return u.register(s)},[u,s]),sr(()=>{var d;!l||!s||(s instanceof Node&&l.contains(s)&&l.removeChild(s),l.childNodes.length<=0&&((d=l.parentElement)==null||d.removeChild(l)))}),b?!l||!s?null:Mt.createPortal(ae({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:dr,name:"Portal"}),s):null});function yo(e,t){let r=he(t),{enabled:n=!0,...o}=e;return n?c.createElement(vo,{...o,ref:r}):ae({ourProps:{ref:r},theirProps:o,slot:{},defaultTag:dr,name:"Portal"})}let wo=c.Fragment,fr=c.createContext(null);function xo(e,t){let{target:r,...n}=e,o={ref:he(t)};return c.createElement(fr.Provider,{value:r},ae({ourProps:o,theirProps:n,defaultTag:wo,name:"Popover.Group"}))}let Ct=c.createContext(null);function Eo(){let e=c.useContext(Ct),t=c.useRef([]),r=H(a=>(t.current.push(a),e&&e.register(a),()=>n(a))),n=H(a=>{let l=t.current.indexOf(a);l!==-1&&t.current.splice(l,1),e&&e.unregister(a)}),o=c.useMemo(()=>({register:r,unregister:n,portals:t}),[r,n,t]);return[t,c.useMemo(()=>function({children:a}){return c.createElement(Ct.Provider,{value:o},a)},[o])]}let Co=se(yo),Oo=se(xo),pr=Object.assign(Co,{Group:Oo});function Po(){var e;let[t]=c.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[r,n]=c.useState((e=t==null?void 0:t.matches)!=null?e:!1);return le(()=>{if(!t)return;function o(a){n(a.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),r}function jo({defaultContainers:e=[],portals:t,mainTreeNodeRef:r}={}){var n;let o=c.useRef((n=r==null?void 0:r.current)!=null?n:null),a=We(o),l=H(()=>{var s,u,b;let d=[];for(let p of e)p!==null&&(p instanceof HTMLElement?d.push(p):"current"in p&&p.current instanceof HTMLElement&&d.push(p.current));if(t!=null&&t.current)for(let p of t.current)d.push(p);for(let p of(s=a==null?void 0:a.querySelectorAll("html > *, body > *"))!=null?s:[])p!==document.body&&p!==document.head&&p instanceof HTMLElement&&p.id!=="headlessui-portal-root"&&(p.contains(o.current)||p.contains((b=(u=o.current)==null?void 0:u.getRootNode())==null?void 0:b.host)||d.some(j=>p.contains(j))||d.push(p));return d});return{resolveContainers:l,contains:H(s=>l().some(u=>u.contains(s))),mainTreeNodeRef:o,MainTreeNode:c.useMemo(()=>function(){return r!=null?null:c.createElement(gt,{features:rt.Hidden,ref:o})},[o,r])}}let Ot=c.createContext(()=>{});Ot.displayName="StackContext";var Pt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Pt||{});function So(){return c.useContext(Ot)}function _o({children:e,onUpdate:t,type:r,element:n,enabled:o}){let a=So(),l=H((...s)=>{t==null||t(...s),a(...s)});return le(()=>{let s=o===void 0||o===!0;return s&&l(0,r,n),()=>{s&&l(1,r,n)}},[l,r,n,o]),c.createElement(Ot.Provider,{value:l},e)}function mr(){let e=c.useRef(!1);return le(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Ue=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ue||{});function To(){let e=c.useRef(0);return ir("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function br(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}let ko="div";var de=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.AutoFocus=32]="AutoFocus",e[e.All=30]="All",e))(de||{});function Ao(e,t){let r=c.useRef(null),n=he(r,t),{initialFocus:o,initialFocusFallback:a,containers:l,features:s=30,...u}=e;Et()||(s=1);let b=We(r);$o({ownerDocument:b},!!(s&16));let d=Do({ownerDocument:b,container:r,initialFocus:o,initialFocusFallback:a},s);Lo({ownerDocument:b,container:r,containers:l,previousActiveElement:d},!!(s&8));let p=To(),j=H(x=>{let v=r.current;v&&(P=>P())(()=>{ge(p.current,{[Ue.Forwards]:()=>{ze(v,ue.First,{skipElements:[x.relatedTarget,a]})},[Ue.Backwards]:()=>{ze(v,ue.Last,{skipElements:[x.relatedTarget,a]})}})})}),_=Sn(),g=c.useRef(!1),y={ref:n,onKeyDown(x){x.key=="Tab"&&(g.current=!0,_.requestAnimationFrame(()=>{g.current=!1}))},onBlur(x){if(!(s&8))return;let v=br(l);r.current instanceof HTMLElement&&v.add(r.current);let P=x.relatedTarget;P instanceof HTMLElement&&P.dataset.headlessuiFocusGuard!=="true"&&(gr(v,P)||(g.current?ze(r.current,ge(p.current,{[Ue.Forwards]:()=>ue.Next,[Ue.Backwards]:()=>ue.Previous})|ue.WrapAround,{relativeTo:x.target}):x.target instanceof HTMLElement&&ce(x.target)))}};return c.createElement(c.Fragment,null,!!(s&4)&&c.createElement(gt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:j,features:rt.Focusable}),ae({ourProps:y,theirProps:u,defaultTag:ko,name:"FocusTrap"}),!!(s&4)&&c.createElement(gt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:j,features:rt.Focusable}))}let No=se(Ao),Mo=Object.assign(No,{features:de});function Fo(e=!0){let t=c.useRef(ve.slice());return xt(([r],[n])=>{n===!0&&r===!1&&et(()=>{t.current.splice(0)}),n===!1&&r===!0&&(t.current=ve.slice())},[e,ve,t]),H(()=>{var r;return(r=t.current.find(n=>n!=null&&n.isConnected))!=null?r:null})}function $o({ownerDocument:e},t){let r=Fo(t);xt(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&ce(r())},[t]),sr(()=>{t&&ce(r())})}function Do({ownerDocument:e,container:t,initialFocus:r,initialFocusFallback:n},o){let a=!!(o&2),l=c.useRef(null),s=mr();return xt(()=>{if(!a){n!=null&&n.current&&ce(n.current);return}let u=t.current;u&&et(()=>{if(!s.current)return;let b=e==null?void 0:e.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===b){l.current=b;return}}else if(u.contains(b)){l.current=b;return}if(r!=null&&r.current)ce(r.current);else{if(o&32){if(ze(u,ue.First|ue.AutoFocus)!==wt.Error)return}else if(ze(u,ue.First)!==wt.Error)return;if(n!=null&&n.current&&(ce(n.current),(e==null?void 0:e.activeElement)===n.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}l.current=e==null?void 0:e.activeElement})},[n,a,o]),l}function Lo({ownerDocument:e,container:t,containers:r,previousActiveElement:n},o){let a=mr();lr(e==null?void 0:e.defaultView,"focus",l=>{if(!o||!a.current)return;let s=br(r);t.current instanceof HTMLElement&&s.add(t.current);let u=n.current;if(!u)return;let b=l.target;b&&b instanceof HTMLElement?gr(s,b)?(n.current=b,ce(b)):(l.preventDefault(),l.stopPropagation(),ce(u)):ce(n.current)},!0)}function gr(e,t){for(let r of e)if(r.contains(t))return!0;return!1}var Io=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Io||{}),Ro=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ro||{});let zo={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},ot=c.createContext(null);ot.displayName="DialogContext";function jt(e){let t=c.useContext(ot);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jt),r}return t}function Wo(e,t){return ge(t.type,zo,e,t)}let Bo="div",Uo=mt.RenderStrategy|mt.Static;function Go(e,t){let r=c.useId(),{id:n=`headlessui-dialog-${r}`,open:o,onClose:a,initialFocus:l,role:s="dialog",autoFocus:u=!0,__demoMode:b=!1,...d}=e,[p,j]=c.useState(0),_=c.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(_.current||(_.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let g=po();o===void 0&&g!==null&&(o=(g&Be.Open)===Be.Open);let y=c.useRef(null),x=he(y,t),v=We(y),P=e.hasOwnProperty("open")||g!==null,R=e.hasOwnProperty("onClose");if(!P&&!R)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!P)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!R)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof a!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${a}`);let F=o?0:1,[G,ne]=c.useReducer(Wo,{titleId:null,descriptionId:null,panelRef:c.createRef()}),V=H(()=>a(!1)),re=H(W=>ne({type:0,id:W})),Y=Et()?F===0:!1,K=p>1,h=c.useContext(ot)!==null,[m,E]=Eo(),C={get current(){var W;return(W=G.panelRef.current)!=null?W:y.current}},{resolveContainers:A,mainTreeNodeRef:$,MainTreeNode:z}=jo({portals:m,defaultContainers:[C]}),J=K?"parent":"leaf",I=g!==null?(g&Be.Closing)===Be.Closing:!1,fe=K||I?!1:Y;Gn({allowed:H(()=>{var W,oe;return[(oe=(W=y.current)==null?void 0:W.closest("[data-headlessui-portal]"))!=null?oe:null]}),disallowed:H(()=>{var W,oe;return[(oe=(W=$.current)==null?void 0:W.closest("body > *:not(#headlessui-portal-root)"))!=null?oe:null]})},b?!1:fe),no(A,W=>{W.preventDefault(),V()},!(!Y||K));let ee=!(K||F!==0);lr(v==null?void 0:v.defaultView,"keydown",W=>{ee&&(W.defaultPrevented||W.key===er.Escape&&(W.preventDefault(),W.stopPropagation(),V()))}),fo(v,b?!1:!(I||F!==0||h),A),Hn(y,V,F===0);let[He,Ve]=Ln(),Oe=c.useMemo(()=>[{dialogState:F,close:V,setTitleId:re},G],[F,G,V,re]),we=c.useMemo(()=>({open:F===0}),[F]),Pe={ref:x,id:n,role:s,tabIndex:-1,"aria-modal":F===0?!0:void 0,"aria-labelledby":G.titleId,"aria-describedby":He},je=!Po(),pe=Y?ge(J,{parent:de.RestoreFocus,leaf:de.All&~de.FocusLock}):de.None;return u&&(pe|=de.AutoFocus),je||(pe&=~de.InitialFocus),b&&(pe=de.None),c.createElement(_o,{type:"Dialog",enabled:F===0,element:y,onUpdate:H((W,oe)=>{oe==="Dialog"&&ge(W,{[Pt.Add]:()=>j(Ye=>Ye+1),[Pt.Remove]:()=>j(Ye=>Ye-1)})})},c.createElement(cr,{force:!0},c.createElement(pr,null,c.createElement(ot.Provider,{value:Oe},c.createElement(pr.Group,{target:y},c.createElement(cr,{force:!1},c.createElement(Ve,{slot:we,name:"Dialog.Description"},c.createElement(E,null,c.createElement(Mo,{initialFocus:l,initialFocusFallback:y,containers:A,features:pe},c.createElement(Un,{value:V},ae({ourProps:Pe,theirProps:d,slot:we,defaultTag:Bo,features:Uo,visible:F===0,name:"Dialog"})))))))))),c.createElement($n,null,c.createElement(z,null)))}let Ho="div";function Vo(e,t){let r=c.useId(),{id:n=`headlessui-dialog-panel-${r}`,...o}=e,[{dialogState:a},l]=jt("Dialog.Panel"),s=he(t,l.panelRef),u=c.useMemo(()=>({open:a===0}),[a]),b=H(d=>{d.stopPropagation()});return ae({ourProps:{ref:s,id:n,onClick:b},theirProps:o,slot:u,defaultTag:Ho,name:"Dialog.Panel"})}let Yo="h2";function qo(e,t){let r=c.useId(),{id:n=`headlessui-dialog-title-${r}`,...o}=e,[{dialogState:a,setTitleId:l}]=jt("Dialog.Title"),s=he(t);c.useEffect(()=>(l(n),()=>l(null)),[n,l]);let u=c.useMemo(()=>({open:a===0}),[a]);return ae({ourProps:{ref:s,id:n},theirProps:o,slot:u,defaultTag:Yo,name:"Dialog.Title"})}let Ko=se(Go),Jo=se(Vo),Xo=se(qo),ye=Object.assign(Ko,{Panel:Jo,Title:Xo,Description:Wn});const Qo=({checked:e,label:t,onChange:r,termImageUrl:n})=>{const[o,a]=c.useState(!1);return O.jsxs(O.Fragment,{children:[O.jsx(Zo,{isOpen:o,setIsOpen:a,termImageUrl:n}),O.jsxs("div",{className:"inline-flex items-center",children:[O.jsxs("label",{className:"relative flex cursor-pointer items-center rounded-full p-3",htmlFor:"check",children:[O.jsx("input",{type:"checkbox",className:"before:content[''] border-blue-gray-200 before:bg-blue-gray-500 peer relative size-6 cursor-pointer appearance-none rounded-xl border bg-[#C5C8CD] transition-all before:absolute before:left-2/4 before:top-2/4 before:block before:h-12 before:w-12 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-full before:opacity-0 before:transition-opacity checked:border-petnowOrange checked:bg-petnowOrange checked:before:bg-petnowOrange",id:t,checked:e,onChange:l=>{r(l.target.checked)}}),O.jsx("span",{className:"pointer-events-none absolute left-2/4 top-2/4 -translate-x-2/4 -translate-y-2/4 text-[#8B919A] transition peer-checked:text-white",children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:"1",children:O.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})]}),t&&O.jsxs("div",{className:"flex items-center",children:[O.jsx("label",{className:"cursor-pointer font-medium",htmlFor:t,children:t}),O.jsx(Cn,{onClick:()=>{a(!0)},className:"ml-2 mt-[2.5px] cursor-pointer text-deepGray",size:24})]})]})]})},Zo=({isOpen:e,setIsOpen:t,termImageUrl:r})=>O.jsxs(ye,{open:e,onClose:()=>t(!1),className:"relative z-50",children:[O.jsx("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),O.jsx("div",{className:"fixed inset-0 w-screen overflow-y-auto",children:O.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:O.jsxs(ye.Panel,{className:"mx-auto flex max-w-sm flex-col items-center gap-8 rounded bg-white",children:[O.jsx("div",{className:"flex h-[36px] w-full flex-row-reverse items-center bg-[#F0F1F2]",children:O.jsx(Kt,{size:20,className:"mr-2",onClick:()=>t(!1)})}),O.jsx("img",{src:r,alt:"약관동의 이미지"}),O.jsx(Gt,{text:"닫기",className:"mb-4 w-[90%] text-base focus:outline-none",onClick:()=>t(!1)})]})})})]});var hr={},vr={},it={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.postcodeScriptUrl=void 0;var t="https://t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js";e.postcodeScriptUrl="https://t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js";var r=function(){var o=null;return function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:t;return o||(o=new Promise(function(l,s){var u=document.createElement("script");u.src=a,u.onload=function(){var b,d;return(b=window)!==null&&b!==void 0&&(d=b.daum)!==null&&d!==void 0&&d.Postcode?l(window.daum.Postcode):void s(new Error("Script is loaded successfully, but cannot find Postcode module. Check your scriptURL property."))},u.onerror=function(b){return s(b)},u.id="daum_postcode_script",document.body.appendChild(u)}),o)}}(),n=r;e.default=n})(it),function(e){function t(h){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t(h)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(c),n=l(it),o=["scriptUrl","className","style","defaultQuery","autoClose","errorMessage","onComplete","onClose","onResize","onSearch"];function a(h){if(typeof WeakMap!="function")return null;var m=new WeakMap,E=new WeakMap;return(a=function(C){return C?E:m})(h)}function l(h,m){if(h&&h.__esModule)return h;if(h===null||t(h)!=="object"&&typeof h!="function")return{default:h};var E=a(m);if(E&&E.has(h))return E.get(h);var C={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in h)if($!="default"&&Object.prototype.hasOwnProperty.call(h,$)){var z=A?Object.getOwnPropertyDescriptor(h,$):null;z&&(z.get||z.set)?Object.defineProperty(C,$,z):C[$]=h[$]}return C.default=h,E&&E.set(h,C),C}function s(h,m){var E=Object.keys(h);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(h);m&&(C=C.filter(function(A){return Object.getOwnPropertyDescriptor(h,A).enumerable})),E.push.apply(E,C)}return E}function u(h){for(var m,E=1;E<arguments.length;E++)m=arguments[E]==null?{}:arguments[E],E%2?s(Object(m),!0).forEach(function(C){G(h,C,m[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):s(Object(m)).forEach(function(C){Object.defineProperty(h,C,Object.getOwnPropertyDescriptor(m,C))});return h}function b(h,m){if(h==null)return{};var E,C,A=d(h,m);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(h);for(C=0;C<$.length;C++)E=$[C],0<=m.indexOf(E)||Object.prototype.propertyIsEnumerable.call(h,E)&&(A[E]=h[E])}return A}function d(h,m){if(h==null)return{};var E,C,A={},$=Object.keys(h);for(C=0;C<$.length;C++)E=$[C],0<=m.indexOf(E)||(A[E]=h[E]);return A}function p(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function j(h,m){for(var E,C=0;C<m.length;C++)E=m[C],E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(h,E.key,E)}function _(h,m,E){return m&&j(h.prototype,m),h}function g(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),m&&y(h,m)}function y(h,m){return y=Object.setPrototypeOf||function(E,C){return E.__proto__=C,E},y(h,m)}function x(h){var m=R();return function(){var E,C=F(h);if(m){var A=F(this).constructor;E=Reflect.construct(C,arguments,A)}else E=C.apply(this,arguments);return v(this,E)}}function v(h,m){return m&&(t(m)==="object"||typeof m=="function")?m:P(h)}function P(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function R(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function F(h){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},F(h)}function G(h,m,E){return m in h?Object.defineProperty(h,m,{value:E,enumerable:!0,configurable:!0,writable:!0}):h[m]=E,h}var ne=r.default.createElement("p",null,"현재 Daum 우편번호 서비스를 이용할 수 없습니다. 잠시 후 다시 시도해주세요."),V={width:"100%",height:400},re={scriptUrl:n.postcodeScriptUrl,errorMessage:ne,autoClose:!0},Y=function(h){function m(){var C;p(this,m);for(var A=arguments.length,$=Array(A),z=0;z<A;z++)$[z]=arguments[z];return C=E.call.apply(E,[this].concat($)),G(P(C),"mounted",!1),G(P(C),"wrap",(0,r.createRef)()),G(P(C),"state",{hasError:!1}),G(P(C),"initiate",function(J){if(C.wrap.current){var I=C.props;I.scriptUrl,I.className,I.style;var fe=I.defaultQuery,Z=I.autoClose;I.errorMessage;var ee=I.onComplete,Ge=I.onClose,He=I.onResize,Ve=I.onSearch,Oe=b(I,o),we=new J(u(u({},Oe),{},{oncomplete:function(je){ee&&ee(je),Z&&C.wrap.current&&C.wrap.current.remove()},onsearch:Ve,onresize:He,onclose:Ge,width:"100%",height:"100%"}));we.embed(C.wrap.current,{q:fe,autoClose:Z})}}),G(P(C),"onError",function(J){console.error(J),C.setState({hasError:!0})}),C}g(m,h);var E=x(m);return _(m,[{key:"componentDidMount",value:function(){var A=this.initiate,$=this.onError,z=this.props.scriptUrl;z&&(this.mounted||((0,n.default)(z).then(A).catch($),this.mounted=!0))}},{key:"render",value:function(){var A=this.props,$=A.className,z=A.style,J=A.errorMessage,I=this.state.hasError;return r.default.createElement("div",{ref:this.wrap,className:$,style:u(u({},V),z)},I&&J)}}]),m}(r.Component);G(Y,"defaultProps",re);var K=Y;e.default=K}(vr);var yr={};(function(e){function t(g){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},t(g)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c,n=l(it),o=["defaultQuery","left","top","popupKey","popupTitle","autoClose","onComplete","onResize","onClose","onSearch","onError"];function a(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,x=new WeakMap;return(a=function(v){return v?x:y})(g)}function l(g,y){if(g&&g.__esModule)return g;if(g===null||t(g)!=="object"&&typeof g!="function")return{default:g};var x=a(y);if(x&&x.has(g))return x.get(g);var v={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in g)if(R!="default"&&Object.prototype.hasOwnProperty.call(g,R)){var F=P?Object.getOwnPropertyDescriptor(g,R):null;F&&(F.get||F.set)?Object.defineProperty(v,R,F):v[R]=g[R]}return v.default=g,x&&x.set(g,v),v}function s(g,y){var x=Object.keys(g);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(g);y&&(v=v.filter(function(P){return Object.getOwnPropertyDescriptor(g,P).enumerable})),x.push.apply(x,v)}return x}function u(g){for(var y,x=1;x<arguments.length;x++)y=arguments[x]==null?{}:arguments[x],x%2?s(Object(y),!0).forEach(function(v){b(g,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(y)):s(Object(y)).forEach(function(v){Object.defineProperty(g,v,Object.getOwnPropertyDescriptor(y,v))});return g}function b(g,y,x){return y in g?Object.defineProperty(g,y,{value:x,enumerable:!0,configurable:!0,writable:!0}):g[y]=x,g}function d(g,y){if(g==null)return{};var x,v,P=p(g,y);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(g);for(v=0;v<R.length;v++)x=R[v],0<=y.indexOf(x)||Object.prototype.propertyIsEnumerable.call(g,x)&&(P[x]=g[x])}return P}function p(g,y){if(g==null)return{};var x,v,P={},R=Object.keys(g);for(v=0;v<R.length;v++)x=R[v],0<=y.indexOf(x)||(P[x]=g[x]);return P}function j(){var g=0<arguments.length&&arguments[0]!==void 0?arguments[0]:n.postcodeScriptUrl;(0,r.useEffect)(function(){(0,n.default)(g)},[g]);var y=(0,r.useCallback)(function(x){var v=u({},x),P=v.defaultQuery,R=v.left,F=v.top,G=v.popupKey,ne=v.popupTitle,V=v.autoClose,re=v.onComplete,Y=v.onResize,K=v.onClose,h=v.onSearch,m=v.onError,E=d(v,o);return(0,n.default)(g).then(function(C){var A=new C(u(u({},E),{},{oncomplete:re,onsearch:h,onresize:Y,onclose:K}));A.open({q:P,left:R,top:F,popupTitle:ne,popupKey:G,autoClose:V})}).catch(m)},[g]);return y}var _=j;e.default=_})(yr),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DaumPostcodeEmbed",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"useDaumPostcodePopup",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"loadPostcode",{enumerable:!0,get:function(){return n.default}}),e.default=void 0;var t=o(vr),r=o(yr),n=o(it);function o(l){return l&&l.__esModule?l:{default:l}}var a=t.default;e.default=a}(hr);const ei=({label:e,value:t,onFrontChange:r,onBackChange:n,onPostalCodeChange:o,disabled:a})=>{const[l,s]=c.useState(!1),u=p=>{let j=p.address,_="";p.addressType==="R"&&(p.bname!==""&&(_+=p.bname),p.buildingName!==""&&(_+=_!==""?`, ${p.buildingName}`:p.buildingName),j+=_!==""?` (${_})`:""),r(j),o&&o(p.zonecode),s(!1)},b=()=>{s(!0)},d=()=>t.front?t.front:O.jsx("p",{className:"text-[#C5C8CD]",children:"주소를 입력해주세요."});return O.jsxs(O.Fragment,{children:[O.jsx(ti,{isOpen:l,setIsOpen:s,handleComplete:u}),O.jsxs("div",{className:"text-deepGray",children:[O.jsx("label",{htmlFor:e,className:"text-sm font-bold text-lightBlack",children:e}),O.jsxs("div",{className:"relative flex flex-col",children:[O.jsx("div",{className:`mt-4 h-[60px] w-full overflow-hidden whitespace-nowrap rounded-xl bg-[#F8F8F9] p-4 text-base placeholder:text-[#C5C8CD] focus:outline-none ${a&&"opacity-50"}`,onClick:b,children:d()}),O.jsx("input",{disabled:!t.front||a,value:t.back,type:"text",name:e,id:e,placeholder:"상세 주소를 입력해주세요.",className:"mt-4 h-[60px] w-full rounded-xl bg-[#F8F8F9] p-4 text-base placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",autoComplete:"off",onChange:p=>n(p.target.value)})]})]})]})},ti=e=>{const{isOpen:t,setIsOpen:r,handleComplete:n}=e;return O.jsxs(ye,{open:t,onClose:()=>r(!1),className:"relateive z-50",children:[O.jsx("div",{className:"fixed inset-0 bg-black/40","aria-hidden":"true"}),O.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center",children:O.jsx(ye.Panel,{children:O.jsxs("div",{children:[O.jsx("div",{className:"flex h-[36px] w-[90vw] flex-row-reverse items-center bg-[#F0F1F2]",children:O.jsx(Kt,{size:20,className:"mr-2",onClick:()=>r(!1)})}),O.jsx(hr.DaumPostcodeEmbed,{onComplete:n,style:{width:"90vw",height:"65vh",minHeight:"450px",borderRadius:"100px"}})]})})})]})},ri=e=>{const{isOpen:t,setIsOpen:r}=e;return O.jsxs(ye,{open:t,onClose:()=>r(!1),className:"relative z-50",children:[O.jsx("div",{className:"fixed inset-0 bg-black/40","aria-hidden":"true"}),O.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:O.jsxs(ye.Panel,{className:"flex w-[260px] flex-col gap-[16px] rounded-[16px] bg-white p-[20px]",children:[O.jsxs("div",{className:"flex flex-col gap-[8px]",children:[e.title&&O.jsx(ye.Title,{className:"whitespace-pre-wrap text-[18px] font-bold leading-[26px] text-[#2C2F34]",children:e.title}),e.image&&O.jsx("img",{src:e.image.url,alt:e.image.alt}),e.description&&e.description!==""&&O.jsx(ye.Description,{className:"break-all text-[16px] leading-[24px] text-[#585E67]",children:e.description})]}),O.jsxs("div",{className:"flex flex-col gap-[4px]",children:[O.jsx("button",{className:"w-full rounded-[12px] bg-[#FF592C] px-[12px] py-[14px] text-[14px] font-bold leading-[22px] text-white",onClick:e.confirm.onClick,children:e.confirm.text}),e.cancel&&O.jsx("button",{onClick:()=>r(!1),className:"w-full rounded-[12px] bg-[#F0F1F2] px-[12px] py-[14px] text-[14px] font-bold leading-[22px] text-[#585E67]",children:e.cancel.text})]})]})})]})};function ni(e){return Ze({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(e)}function oi(e){return Ze({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 217.9L383 345c9.4 9.4 24.6 9.4 33.9 0 9.4-9.4 9.3-24.6 0-34L273 167c-9.1-9.1-23.7-9.3-33.1-.7L95 310.9c-4.7 4.7-7 10.9-7 17s2.3 12.3 7 17c9.4 9.4 24.6 9.4 33.9 0l127.1-127z"},child:[]}]})(e)}const ii=({title:e,description:t,titleTextClassName:r,descriptionTextClassName:n})=>{const[o,a]=c.useState(!1);return O.jsxs("div",{className:"my-2.5 flex w-full cursor-pointer flex-col justify-center rounded-xl px-4 pt-8 shadow-[0_2px_8px_0_rgba(0,0,0,0.08)] md:rounded-2xl md:pt-10",onClick:()=>a(l=>!l),children:[O.jsxs("div",{className:"flex w-full items-center justify-between px-2 pb-8 transition-all duration-300 md:px-4 md:pb-10",children:[O.jsxs("p",{className:dt("mr-4 text-lg font-medium md:text-xl",r),children:[O.jsx("span",{className:"font-semibold",children:"Q."})," ",e]}),o?O.jsx(oi,{className:"min-w-6 text-petnowOrange",size:24}):O.jsx(ni,{className:"min-w-6 text-petnowOrange",size:24})]}),O.jsx("p",{className:dt(`w-full overflow-hidden whitespace-pre-wrap px-2 text-base leading-6 text-[#8B919A] transition-all duration-300 md:px-4 md:text-lg ${o?"max-h-[24rem] pb-8 sm:max-h-60 md:pb-10 ":"max-h-0"}`,n),children:t})]})},li=({tabList:e,onTabChange:t})=>{const[r,n]=c.useState(e[0]);return O.jsx("div",{className:"flex flex-row text-2xl font-bold",children:e.map(o=>O.jsxs("div",{className:"flex flex-1 flex-col",children:[O.jsx("button",{className:`py-5 hover:text-lightBlack ${o===r?"text-lightBlack":"text-[#8B919A]"}`,onClick:()=>{n(o),t(o)},children:o.displayName}),O.jsx("div",{className:`h-[2px] w-full transition-colors duration-200 ${o===r?"bg-petnowOrange":"bg-lightGray"}`})]},o.key))})};Q.AccordionCard=ii,Q.Checkbox=Qo,Q.CtaButton=Gt,Q.LabeledAddressInput=ei,Q.Modal=ri,Q.Tabs=li,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})});
33
+ `))}else{let b=u.props,m=b==null?void 0:b.className,g=typeof m=="function"?(...y)=>xr(m(...y),a.className):xr(m,a.className),v=g?{className:g}:{},x=wr(u.props,qe(vn(a,["ref"])));for(let y in p)y in x&&delete p[y];return c.cloneElement(u,Object.assign({},x,p,f,{ref:o(u.ref,f.ref)},v))}return c.createElement(i,Object.assign({},vn(a,["ref"]),i!==c.Fragment&&f,i!==c.Fragment&&p),u)}function gl(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function wr(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let s of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...i)}}});return t}function Er(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let i=n[r];for(let l of i)l==null||l(...o)}});return t}function ae(e){var t;return Object.assign(c.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function qe(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function vn(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function vl(e,t,n){let[r,o]=c.useState(n),i=e!==void 0,l=c.useRef(i),s=c.useRef(!1),a=c.useRef(!1);return i&&!l.current&&!s.current?(s.current=!0,l.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&l.current&&!a.current&&(a.current=!0,l.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,_(f=>(i||o(f),t==null?void 0:t(f)))]}function Cr(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Pr(n,Or(t,r),o);return n}function Or(e,t){return e?e+"["+t+"]":t}function Pr(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Pr(e,Or(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Cr(n,t,e)}function hl(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}let bl="div";var tt=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(tt||{});function yl(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&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",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return se({ourProps:i,theirProps:o,slot:{},defaultTag:bl,name:"Hidden"})}let yt=ae(yl),xl=c.createContext(null);function Sr({children:e}){let t=c.useContext(xl);if(!t)return c.createElement(c.Fragment,null,e);let{target:n}=t;return n?Be.createPortal(c.createElement(c.Fragment,null,e),n):null}function wl({data:e,form:t,disabled:n,onReset:r,overrides:o}){let[i,l]=c.useState(null),s=De();return c.useEffect(()=>{if(r&&i)return s.addEventListener(i,"reset",r)},[i,t,r]),c.createElement(Sr,null,c.createElement(El,{setForm:l,formId:t}),Cr(e).map(([a,f])=>c.createElement(yt,{features:tt.Hidden,...qe({key:a,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:a,value:f,...o})})))}function El({setForm:e,formId:t}){return c.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:c.createElement(yt,{features:tt.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let Cl=c.createContext(void 0);function Tr(){return c.useContext(Cl)}function Ol(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&Pl(n)?!1:r}function Pl(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let $r=Symbol();function Sl(e,t=!0){return Object.assign(e,{[$r]:t})}function pe(...e){let t=c.useRef(e);c.useEffect(()=>{t.current=e},[e]);let n=_(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[$r]))?void 0:n}let Ht=c.createContext(null);Ht.displayName="DescriptionContext";function Fr(){let e=c.useContext(Ht);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,Fr),t}return e}function Tl(){var e,t;return(t=(e=c.useContext(Ht))==null?void 0:e.value)!=null?t:void 0}function $l(){let[e,t]=c.useState([]);return[e.length>0?e.join(" "):void 0,c.useMemo(()=>function(n){let r=_(i=>(t(l=>[...l,i]),()=>t(l=>{let s=l.slice(),a=s.indexOf(i);return a!==-1&&s.splice(a,1),s}))),o=c.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return c.createElement(Ht.Provider,{value:o},n.children)},[t])]}let Fl="p";function jl(e,t){let n=c.useId(),r=gn(),{id:o=`headlessui-description-${n}`,...i}=e,l=Fr(),s=pe(t);Z(()=>l.register(o),[o,l.register]);let a=r||!1,f=c.useMemo(()=>({...l.slot,disabled:a}),[l.slot,a]),u={ref:s,...l.props,id:o};return se({ourProps:u,theirProps:i,slot:f,defaultTag:Fl,name:l.name||"Description"})}let kl=ae(jl),Ml=Object.assign(kl,{});var re=(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))(re||{});let Wt=c.createContext(null);Wt.displayName="LabelContext";function jr(){let e=c.useContext(Wt);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,jr),t}return e}function kr(e){var t,n,r;let o=(n=(t=c.useContext(Wt))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function Ll({inherit:e=!1}={}){let t=kr(),[n,r]=c.useState([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,c.useMemo(()=>function(i){let l=_(a=>(r(f=>[...f,a]),()=>r(f=>{let u=f.slice(),p=u.indexOf(a);return p!==-1&&u.splice(p,1),u}))),s=c.useMemo(()=>({register:l,slot:i.slot,name:i.name,props:i.props,value:i.value}),[l,i.slot,i.name,i.props,i.value]);return c.createElement(Wt.Provider,{value:s},i.children)},[r])]}let Al="label";function Dl(e,t){var n;let r=c.useId(),o=jr(),i=Tr(),l=gn(),{id:s=`headlessui-label-${r}`,htmlFor:a=i??((n=o.props)==null?void 0:n.htmlFor),passive:f=!1,...u}=e,p=pe(t);Z(()=>o.register(s),[s,o.register]);let b=_(x=>{let y=x.currentTarget;if(y instanceof HTMLLabelElement&&x.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(x),y instanceof HTMLLabelElement){let w=document.getElementById(y.htmlFor);if(w){let C=w.getAttribute("disabled");if(C==="true"||C==="")return;let $=w.getAttribute("aria-disabled");if($==="true"||$==="")return;(w instanceof HTMLInputElement&&(w.type==="radio"||w.type==="checkbox")||w.role==="radio"||w.role==="checkbox"||w.role==="switch")&&w.click(),w.focus({preventScroll:!0})}}}),m=l||!1,g=c.useMemo(()=>({...o.slot,disabled:m}),[o.slot,m]),v={ref:p,...o.props,id:s,htmlFor:a,onClick:b};return f&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in u&&delete u.onClick),se({ourProps:v,theirProps:u,slot:g,defaultTag:a?Al:"div",name:o.name||"Label"})}let _l=ae(Dl),Mr=Object.assign(_l,{}),Il=c.createContext(()=>{});function Nl({value:e,children:t}){return c.createElement(Il.Provider,{value:e},t)}function Rl(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function Hl(e=Rl){return c.useCallback((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function Wl(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Bl(e,t=!1){let n=e===null?null:"current"in e?e.current:e,[r,o]=c.useReducer(()=>({}),{}),i=c.useMemo(()=>Wl(n),[n,r]);return Z(()=>{if(!n)return;let l=new ResizeObserver(o);return l.observe(n),()=>{l.disconnect()}},[n]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let hn=new Map,xt=new Map;function Lr(e){var t;let n=(t=xt.get(e))!=null?t:0;return xt.set(e,n+1),n!==0?()=>Ar(e):(hn.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Ar(e))}function Ar(e){var t;let n=(t=xt.get(e))!=null?t:1;if(n===1?xt.delete(e):xt.set(e,n-1),n!==1)return;let r=hn.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,hn.delete(e))}function Dr({allowed:e,disallowed:t}={},n=!0){Z(()=>{var r,o;if(!n)return;let i=Pe();for(let s of(r=t==null?void 0:t())!=null?r:[])s&&i.add(Lr(s));let l=(o=e==null?void 0:e())!=null?o:[];for(let s of l){if(!s)continue;let a=ht(s);if(!a)continue;let f=s.parentElement;for(;f&&f!==a.body;){for(let u of f.children)l.some(p=>u.contains(p))||i.add(Lr(u));f=f.parentElement}}return i.dispose},[n,e,t])}function _r(e,t,n=!0){let r=Ye(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&t()});c.useEffect(()=>{if(!n)return;let o=e===null?null:e instanceof HTMLElement?e:e.current;if(!o)return;let i=Pe();if(typeof ResizeObserver<"u"){let l=new ResizeObserver(()=>r.current(o));l.observe(o),i.add(()=>l.disconnect())}if(typeof IntersectionObserver<"u"){let l=new IntersectionObserver(()=>r.current(o));l.observe(o),i.add(()=>l.disconnect())}return()=>i.dispose()},[e,r,n])}let bn=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),zl=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Se=(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))(Se||{}),yn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(yn||{}),Vl=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Vl||{});function Ul(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(bn)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Gl(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(zl)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var xn=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(xn||{});function Ir(e,t=0){var n;return e===((n=ht(e))==null?void 0:n.body)?!1:de(t,{0(){return e.matches(bn)},1(){let r=e;for(;r!==null;){if(r.matches(bn))return!0;r=r.parentElement}return!1}})}var Yl=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Yl||{});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 Te(e){e==null||e.focus({preventScroll:!0})}let ql=["textarea","input"].join(",");function Kl(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,ql))!=null?n:!1}function Nr(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function wt(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?n?Nr(e):e:t&64?Gl(e):Ul(e);o.length>0&&l.length>1&&(l=l.filter(m=>!o.some(g=>g!=null&&"current"in g?(g==null?void 0:g.current)===m:g===m))),r=r??i.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")})(),a=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=t&32?{preventScroll:!0}:{},u=0,p=l.length,b;do{if(u>=p||u+p<=0)return 0;let m=a+u;if(t&16)m=(m+p)%p;else{if(m<0)return 3;if(m>=p)return 1}b=l[m],b==null||b.focus(f),u+=s}while(b!==i.activeElement);return t&6&&Kl(b)&&b.select(),2}function Rr(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Xl(){return/Android/gi.test(window.navigator.userAgent)}function Ql(){return Rr()||Xl()}function Bt(e,t,n){let r=Ye(t);c.useEffect(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function Hr(e,t,n){let r=Ye(t);c.useEffect(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function Wr(e,t,n=!0){let r=c.useRef(!1);c.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(l,s){if(!r.current||l.defaultPrevented)return;let a=s(l);if(a===null||!a.getRootNode().contains(a)||!a.isConnected)return;let f=function u(p){return typeof p=="function"?u(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let u of f){if(u===null)continue;let p=u instanceof HTMLElement?u:u.current;if(p!=null&&p.contains(a)||l.composed&&l.composedPath().includes(p))return}return!Ir(a,xn.Loose)&&a.tabIndex!==-1&&l.preventDefault(),t(l,a)}let i=c.useRef(null);Bt("pointerdown",l=>{var s,a;r.current&&(i.current=((a=(s=l.composedPath)==null?void 0:s.call(l))==null?void 0:a[0])||l.target)},!0),Bt("mousedown",l=>{var s,a;r.current&&(i.current=((a=(s=l.composedPath)==null?void 0:s.call(l))==null?void 0:a[0])||l.target)},!0),Bt("click",l=>{Ql()||i.current&&(o(l,()=>i.current),i.current=null)},!0),Bt("touchend",l=>o(l,()=>l.target instanceof HTMLElement?l.target:null),!0),Hr("blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function nt(...e){return c.useMemo(()=>ht(...e),[...e])}function Br(e,t,n,r){let o=Ye(n);c.useEffect(()=>{e=e??window;function i(l){o.current(l)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function zr(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Jl(e,t){let[n,r]=c.useState(()=>zr(e));return Z(()=>{r(zr(e))},[e.type,e.as]),Z(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}function Zl(e){return c.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function es(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=t[o].call(n,...i);l&&(n=l,r.forEach(s=>s()))}}}function ts(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function ns(){return Rr()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=Pe();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let a=s.target.closest("a");if(!a)return;let{hash:f}=new URL(a.href),u=e.querySelector(f);u&&!r(u)&&(l=u)}catch{}},!0),t.addEventListener(e,"touchstart",s=>{if(s.target instanceof HTMLElement)if(r(s.target)){let a=s.target;for(;a.parentElement&&r(a.parentElement);)a=a.parentElement;t.style(a,"overscrollBehavior","contain")}else t.style(s.target,"touchAction","none")}),t.addEventListener(e,"touchmove",s=>{if(s.target instanceof HTMLElement){if(s.target.tagName==="INPUT")return;if(r(s.target)){let a=s.target;for(;a.parentElement&&a.dataset.headlessuiPortal!==""&&!(a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth);)a=a.parentElement;a.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let a=(s=window.scrollY)!=null?s:window.pageYOffset;i!==a&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function rs(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function os(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ke=es(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Pe(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:os(n)},o=[ns(),ts(),rs()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ke.subscribe(()=>{let e=Ke.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Ke.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ke.dispatch("TEARDOWN",n)}});function is(e,t,n=()=>({containers:[]})){let r=Zl(Ke),o=e?r.get(e):void 0,i=o?o.count>0:!1;return Z(()=>{if(!(!e||!t))return Ke.dispatch("PUSH",e,n),()=>Ke.dispatch("POP",e,n)},[t,e]),i}function Vr(e,t,n=()=>[document.body]){is(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function Ur(e){return[e.screenX,e.screenY]}function ls(){let e=c.useRef([-1,-1]);return{wasMoved(t){let n=Ur(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Ur(t)}}}function wn(e,t){let n=c.useRef([]),r=_(e);c.useEffect(()=>{let o=[...n.current];for(let[i,l]of t.entries())if(n.current[i]!==l){let s=r(t,o);return n.current=t,s}},[r,...t])}function rt(e){return Gr(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $e(e){var t;return(t=(Gr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gr(e){return e instanceof Node||e instanceof ge(e).Node}function ue(e){return e instanceof Element||e instanceof ge(e).Element}function we(e){return e instanceof HTMLElement||e instanceof ge(e).HTMLElement}function Yr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function Et(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ss(e){return["table","td","th"].includes(rt(e))}function En(e){const t=Cn(),n=xe(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function as(e){let t=_e(e);for(;we(t)&&!ot(t);){if(En(t))return t;t=_e(t)}return null}function Cn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ot(e){return["html","body","#document"].includes(rt(e))}function xe(e){return ge(e).getComputedStyle(e)}function zt(e){return ue(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _e(e){if(rt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yr(e)&&e.host||$e(e);return Yr(t)?t.host:t}function qr(e){const t=_e(e);return ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:we(t)&&Et(t)?t:qr(t)}function Ct(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=qr(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=ge(o);return i?t.concat(l,l.visualViewport||[],Et(o)?o:[],l.frameElement&&n?Ct(l.frameElement):[]):t.concat(o,Ct(o,[],n))}function us(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const Ie=Math.min,ve=Math.max,Vt=Math.round,Ut=Math.floor,Ne=e=>({x:e,y:e}),cs={left:"right",right:"left",bottom:"top",top:"bottom"},fs={start:"end",end:"start"};function Kr(e,t,n){return ve(e,Ie(t,n))}function Ot(e,t){return typeof e=="function"?e(t):e}function Re(e){return e.split("-")[0]}function Pt(e){return e.split("-")[1]}function Xr(e){return e==="x"?"y":"x"}function Qr(e){return e==="y"?"height":"width"}function St(e){return["top","bottom"].includes(Re(e))?"y":"x"}function Jr(e){return Xr(St(e))}function ds(e,t,n){n===void 0&&(n=!1);const r=Pt(e),o=Jr(e),i=Qr(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Gt(l)),[l,Gt(l)]}function ps(e){const t=Gt(e);return[On(e),t,On(t)]}function On(e){return e.replace(/start|end/g,t=>fs[t])}function ms(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}function gs(e,t,n,r){const o=Pt(e);let i=ms(Re(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(On)))),i}function Gt(e){return e.replace(/left|right|bottom|top/g,t=>cs[t])}function vs(e){return{top:0,right:0,bottom:0,left:0,...e}}function hs(e){return typeof e!="number"?vs(e):{top:e,right:e,bottom:e,left:e}}function Yt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Zr(e,t,n){let{reference:r,floating:o}=e;const i=St(t),l=Jr(t),s=Qr(l),a=Re(t),f=i==="y",u=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,b=r[s]/2-o[s]/2;let m;switch(a){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-o.width,y:p};break;default:m={x:r.x,y:r.y}}switch(Pt(t)){case"start":m[l]-=b*(n&&f?-1:1);break;case"end":m[l]+=b*(n&&f?-1:1);break}return m}const bs=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:p}=Zr(f,r,a),b=r,m={},g=0;for(let v=0;v<s.length;v++){const{name:x,fn:y}=s[v],{x:w,y:C,data:$,reset:j}=await y({x:u,y:p,initialPlacement:r,placement:b,strategy:o,middlewareData:m,rects:f,platform:l,elements:{reference:e,floating:t}});u=w??u,p=C??p,m={...m,[x]:{...m[x],...$}},j&&g<=50&&(g++,typeof j=="object"&&(j.placement&&(b=j.placement),j.rects&&(f=j.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):j.rects),{x:u,y:p}=Zr(f,b,a)),v=-1)}return{x:u,y:p,placement:b,strategy:o,middlewareData:m}};async function qt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:l,elements:s,strategy:a}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:b=!1,padding:m=0}=Ot(t,e),g=hs(m),x=s[b?p==="floating"?"reference":"floating":p],y=Yt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:f,rootBoundary:u,strategy:a})),w=p==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),$=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},j=Yt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,strategy:a}):w);return{top:(y.top-j.top+g.top)/$.y,bottom:(j.bottom-y.bottom+g.bottom)/$.y,left:(y.left-j.left+g.left)/$.x,right:(j.right-y.right+g.right)/$.x}}const ys=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:s,platform:a,elements:f}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:b,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...x}=Ot(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Re(o),w=Re(s)===s,C=await(a.isRTL==null?void 0:a.isRTL(f.floating)),$=b||(w||!v?[Gt(s)]:ps(s));!b&&g!=="none"&&$.push(...gs(s,v,g,C));const j=[s,...$],H=await qt(t,x),W=[];let D=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&W.push(H[y]),p){const h=ds(o,l,C);W.push(H[h[0]],H[h[1]])}if(D=[...D,{placement:o,overflows:W}],!W.every(h=>h<=0)){var B,z;const h=(((B=i.flip)==null?void 0:B.index)||0)+1,S=j[h];if(S)return{data:{index:h,overflows:D},reset:{placement:S}};let T=(z=D.filter(P=>P.overflows[0]<=0).sort((P,M)=>P.overflows[1]-M.overflows[1])[0])==null?void 0:z.placement;if(!T)switch(m){case"bestFit":{var E;const P=(E=D.map(M=>[M.placement,M.overflows.filter(A=>A>0).reduce((A,K)=>A+K,0)]).sort((M,A)=>M[1]-A[1])[0])==null?void 0:E[0];P&&(T=P);break}case"initialPlacement":T=s;break}if(o!==T)return{reset:{placement:T}}}return{}}}};async function xs(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=Re(n),s=Pt(n),a=St(n)==="y",f=["left","top"].includes(l)?-1:1,u=i&&a?-1:1,p=Ot(t,e);let{mainAxis:b,crossAxis:m,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),a?{x:m*u,y:b*f}:{x:b*f,y:m*u}}const ws=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=t,a=await xs(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},Es=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:x=>{let{x:y,y:w}=x;return{x:y,y:w}}},...a}=Ot(e,t),f={x:n,y:r},u=await qt(t,a),p=St(Re(o)),b=Xr(p);let m=f[b],g=f[p];if(i){const x=b==="y"?"top":"left",y=b==="y"?"bottom":"right",w=m+u[x],C=m-u[y];m=Kr(w,m,C)}if(l){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=g+u[x],C=g-u[y];g=Kr(w,g,C)}const v=s.fn({...t,[b]:m,[p]:g});return{...v,data:{x:v.x-n,y:v.y-r}}}}},Cs=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:l=()=>{},...s}=Ot(e,t),a=await qt(t,s),f=Re(n),u=Pt(n),p=St(n)==="y",{width:b,height:m}=r.floating;let g,v;f==="top"||f==="bottom"?(g=f,v=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=f,g=u==="end"?"top":"bottom");const x=m-a.top-a.bottom,y=b-a.left-a.right,w=Ie(m-a[g],x),C=Ie(b-a[v],y),$=!t.middlewareData.shift;let j=w,H=C;if(p?H=u||$?Ie(C,y):y:j=u||$?Ie(w,x):x,$&&!u){const D=ve(a.left,0),B=ve(a.right,0),z=ve(a.top,0),E=ve(a.bottom,0);p?H=b-2*(D!==0||B!==0?D+B:ve(a.left,a.right)):j=m-2*(z!==0||E!==0?z+E:ve(a.top,a.bottom))}await l({...t,availableWidth:H,availableHeight:j});const W=await o.getDimensions(i.floating);return b!==W.width||m!==W.height?{reset:{rects:!0}}:{}}}};function eo(e){const t=xe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=we(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=Vt(n)!==i||Vt(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Pn(e){return ue(e)?e:e.contextElement}function it(e){const t=Pn(e);if(!we(t))return Ne(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eo(t);let l=(i?Vt(n.width):n.width)/r,s=(i?Vt(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const Os=Ne(0);function to(e){const t=ge(e);return!Cn()||!t.visualViewport?Os:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ps(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ge(e)?!1:t}function Xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Pn(e);let l=Ne(1);t&&(r?ue(r)&&(l=it(r)):l=it(e));const s=Ps(i,n,r)?to(i):Ne(0);let a=(o.left+s.x)/l.x,f=(o.top+s.y)/l.y,u=o.width/l.x,p=o.height/l.y;if(i){const b=ge(i),m=r&&ue(r)?ge(r):r;let g=b,v=g.frameElement;for(;v&&r&&m!==g;){const x=it(v),y=v.getBoundingClientRect(),w=xe(v),C=y.left+(v.clientLeft+parseFloat(w.paddingLeft))*x.x,$=y.top+(v.clientTop+parseFloat(w.paddingTop))*x.y;a*=x.x,f*=x.y,u*=x.x,p*=x.y,a+=C,f+=$,g=ge(v),v=g.frameElement}}return Yt({width:u,height:p,x:a,y:f})}const Ss=[":popover-open",":modal"];function Sn(e){return Ss.some(t=>{try{return e.matches(t)}catch{return!1}})}function Ts(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=$e(r),s=t?Sn(t.floating):!1;if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},f=Ne(1);const u=Ne(0),p=we(r);if((p||!p&&!i)&&((rt(r)!=="body"||Et(l))&&(a=zt(r)),we(r))){const b=Xe(r);f=it(r),u.x=b.x+r.clientLeft,u.y=b.y+r.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x,y:n.y*f.y-a.scrollTop*f.y+u.y}}function $s(e){return Array.from(e.getClientRects())}function no(e){return Xe($e(e)).left+zt(e).scrollLeft}function Fs(e){const t=$e(e),n=zt(e),r=e.ownerDocument.body,o=ve(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ve(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+no(e);const s=-n.scrollTop;return xe(r).direction==="rtl"&&(l+=ve(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function js(e,t){const n=ge(e),r=$e(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const f=Cn();(!f||f&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}function ks(e,t){const n=Xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=we(e)?it(e):Ne(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,a=o*i.x,f=r*i.y;return{width:l,height:s,x:a,y:f}}function ro(e,t,n){let r;if(t==="viewport")r=js(e,n);else if(t==="document")r=Fs($e(e));else if(ue(t))r=ks(t,n);else{const o=to(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Yt(r)}function oo(e,t){const n=_e(e);return n===t||!ue(n)||ot(n)?!1:xe(n).position==="fixed"||oo(n,t)}function Ms(e,t){const n=t.get(e);if(n)return n;let r=Ct(e,[],!1).filter(s=>ue(s)&&rt(s)!=="body"),o=null;const i=xe(e).position==="fixed";let l=i?_e(e):e;for(;ue(l)&&!ot(l);){const s=xe(l),a=En(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Et(l)&&!a&&oo(e,l))?r=r.filter(u=>u!==l):o=s,l=_e(l)}return t.set(e,r),r}function Ls(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?Sn(t)?[]:Ms(t,this._c):[].concat(n),r],s=l[0],a=l.reduce((f,u)=>{const p=ro(t,u,o);return f.top=ve(p.top,f.top),f.right=Ie(p.right,f.right),f.bottom=Ie(p.bottom,f.bottom),f.left=ve(p.left,f.left),f},ro(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function As(e){const{width:t,height:n}=eo(e);return{width:t,height:n}}function Ds(e,t,n){const r=we(t),o=$e(t),i=n==="fixed",l=Xe(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=Ne(0);if(r||!r&&!i)if((rt(t)!=="body"||Et(o))&&(s=zt(t)),r){const p=Xe(t,!0,i,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}else o&&(a.x=no(o));const f=l.left+s.scrollLeft-a.x,u=l.top+s.scrollTop-a.y;return{x:f,y:u,width:l.width,height:l.height}}function Tn(e){return xe(e).position==="static"}function io(e,t){return!we(e)||xe(e).position==="fixed"?null:t?t(e):e.offsetParent}function lo(e,t){const n=ge(e);if(Sn(e))return n;if(!we(e)){let o=_e(e);for(;o&&!ot(o);){if(ue(o)&&!Tn(o))return o;o=_e(o)}return n}let r=io(e,t);for(;r&&ss(r)&&Tn(r);)r=io(r,t);return r&&ot(r)&&Tn(r)&&!En(r)?n:r||as(e)||n}const _s=async function(e){const t=this.getOffsetParent||lo,n=this.getDimensions,r=await n(e.floating);return{reference:Ds(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Is(e){return xe(e).direction==="rtl"}const Ns={convertOffsetParentRelativeRectToViewportRelativeRect:Ts,getDocumentElement:$e,getClippingRect:Ls,getOffsetParent:lo,getElementRects:_s,getClientRects:$s,getDimensions:As,getScale:it,isElement:ue,isRTL:Is};function Rs(e,t){let n=null,r;const o=$e(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const{left:f,top:u,width:p,height:b}=e.getBoundingClientRect();if(s||t(),!p||!b)return;const m=Ut(u),g=Ut(o.clientWidth-(f+p)),v=Ut(o.clientHeight-(u+b)),x=Ut(f),w={rootMargin:-m+"px "+-g+"px "+-v+"px "+-x+"px",threshold:ve(0,Ie(1,a))||1};let C=!0;function $(j){const H=j[0].intersectionRatio;if(H!==a){if(!C)return l();H?l(!1,H):r=setTimeout(()=>{l(!1,1e-7)},1e3)}C=!1}try{n=new IntersectionObserver($,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver($,w)}n.observe(e)}return l(!0),i}function Hs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,f=Pn(e),u=o||i?[...f?Ct(f):[],...Ct(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const p=f&&s?Rs(f,n):null;let b=-1,m=null;l&&(m=new ResizeObserver(y=>{let[w]=y;w&&w.target===f&&m&&(m.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),f&&!a&&m.observe(f),m.observe(t));let g,v=a?Xe(e):null;a&&x();function x(){const y=Xe(e);v&&(y.x!==v.x||y.y!==v.y||y.width!==v.width||y.height!==v.height)&&n(),v=y,g=requestAnimationFrame(x)}return n(),()=>{var y;u.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),p==null||p(),(y=m)==null||y.disconnect(),m=null,a&&cancelAnimationFrame(g)}}const $n=qt,Ws=ws,Bs=Es,zs=ys,Vs=Cs,Us=(e,t,n)=>{const r=new Map,o={platform:Ns,...n},i={...o.platform,_c:r};return bs(e,t,{...o,platform:i})};var Kt=typeof document<"u"?c.useLayoutEffect:c.useEffect;function Xt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Xt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Xt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function so(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ao(e,t){const n=so(e);return Math.round(t*n)/n}function uo(e){const t=L.useRef(e);return Kt(()=>{t.current=e}),t}function Gs(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:f}=e,[u,p]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,m]=L.useState(r);Xt(b,r)||m(r);const[g,v]=L.useState(null),[x,y]=L.useState(null),w=L.useCallback(A=>{A!==H.current&&(H.current=A,v(A))},[]),C=L.useCallback(A=>{A!==W.current&&(W.current=A,y(A))},[]),$=i||g,j=l||x,H=L.useRef(null),W=L.useRef(null),D=L.useRef(u),B=a!=null,z=uo(a),E=uo(o),h=L.useCallback(()=>{if(!H.current||!W.current)return;const A={placement:t,strategy:n,middleware:b};E.current&&(A.platform=E.current),Us(H.current,W.current,A).then(K=>{const N={...K,isPositioned:!0};S.current&&!Xt(D.current,N)&&(D.current=N,Zo.flushSync(()=>{p(N)}))})},[b,t,n,E]);Kt(()=>{f===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,p(A=>({...A,isPositioned:!1})))},[f]);const S=L.useRef(!1);Kt(()=>(S.current=!0,()=>{S.current=!1}),[]),Kt(()=>{if($&&(H.current=$),j&&(W.current=j),$&&j){if(z.current)return z.current($,j,h);h()}},[$,j,h,z,B]);const T=L.useMemo(()=>({reference:H,floating:W,setReference:w,setFloating:C}),[w,C]),P=L.useMemo(()=>({reference:$,floating:j}),[$,j]),M=L.useMemo(()=>{const A={position:n,left:0,top:0};if(!P.floating)return A;const K=ao(P.floating,u.x),N=ao(P.floating,u.y);return s?{...A,transform:"translate("+K+"px, "+N+"px)",...so(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:N}},[n,s,P.floating,u.x,u.y]);return L.useMemo(()=>({...u,update:h,refs:T,elements:P,floatingStyles:M}),[u,h,T,P,M])}const co=(e,t)=>({...Ws(e),options:[e,t]}),Ys=(e,t)=>({...Bs(e),options:[e,t]}),qs=(e,t)=>({...zs(e),options:[e,t]}),Ks=(e,t)=>({...Vs(e),options:[e,t]}),fo={...L},Xs=fo.useInsertionEffect||(e=>e());function po(e){const t=L.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Xs(()=>{t.current=e}),L.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var Fn=typeof document<"u"?c.useLayoutEffect:c.useEffect;let mo=!1,Qs=0;const go=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Qs++;function Js(){const[e,t]=L.useState(()=>mo?go():void 0);return Fn(()=>{e==null&&t(go())},[]),L.useEffect(()=>{mo=!0},[]),e}const Zs=fo.useId||Js;let Tt;process.env.NODE_ENV!=="production"&&(Tt=new Set);function ea(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=Tt)!=null&&e.has(o))){var i;(i=Tt)==null||i.add(o),console.warn(o)}}function ta(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=Tt)!=null&&e.has(o))){var i;(i=Tt)==null||i.add(o),console.error(o)}}function na(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const ra=L.createContext(null),oa=L.createContext(null),ia=()=>{var e;return((e=L.useContext(ra))==null?void 0:e.id)||null},la=()=>L.useContext(oa);function sa(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Zs(),i=L.useRef({}),[l]=L.useState(()=>na()),s=ia()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!ue(m)&&ta("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[a,f]=L.useState(r.reference),u=po((m,g,v)=>{i.current.openEvent=m?g:void 0,l.emit("openchange",{open:m,event:g,reason:v,nested:s}),n==null||n(m,g,v)}),p=L.useMemo(()=>({setPositionReference:f}),[]),b=L.useMemo(()=>({reference:a||r.reference||null,floating:r.floating||null,domReference:r.reference}),[a,r.reference,r.floating]);return L.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:b,events:l,floatingId:o,refs:p}),[t,u,b,l,o,p])}function aa(e){e===void 0&&(e={});const{nodeId:t}=e,n=sa({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,l]=L.useState(null),[s,a]=L.useState(null),u=(o==null?void 0:o.reference)||i,p=L.useRef(null),b=la();Fn(()=>{u&&(p.current=u)},[u]);const m=Gs({...e,elements:{...o,...s&&{reference:s}}}),g=L.useCallback(C=>{const $=ue(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;a($),m.refs.setReference($)},[m.refs]),v=L.useCallback(C=>{(ue(C)||C===null)&&(p.current=C,l(C)),(ue(m.refs.reference.current)||m.refs.reference.current===null||C!==null&&!ue(C))&&m.refs.setReference(C)},[m.refs]),x=L.useMemo(()=>({...m.refs,setReference:v,setPositionReference:g,domReference:p}),[m.refs,v,g]),y=L.useMemo(()=>({...m.elements,domReference:u}),[m.elements,u]),w=L.useMemo(()=>({...m,...r,refs:x,elements:y,nodeId:t}),[m,x,y,t,r]);return Fn(()=>{r.dataRef.current.floatingContext=w;const C=b==null?void 0:b.nodesRef.current.find($=>$.id===t);C&&(C.context=w)}),L.useMemo(()=>({...m,context:w,refs:x,elements:y}),[m,x,y,w])}const vo="active",ho="selected";function jn(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[vo]:l,[ho]:s,...a}=e;i=a}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(l=>{const s=l?l[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((l,s)=>(s&&Object.entries(s).forEach(a=>{let[f,u]=a;if(!(o&&[vo,ho].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof u=="function"){var p;(p=r.get(f))==null||p.push(u),l[f]=function(){for(var b,m=arguments.length,g=new Array(m),v=0;v<m;v++)g[v]=arguments[v];return(b=r.get(f))==null?void 0:b.map(x=>x(...g)).find(x=>x!==void 0)}}}else l[f]=u}),l),{})}}function ua(e){e===void 0&&(e=[]);const t=e,n=L.useCallback(i=>jn(i,e,"reference"),t),r=L.useCallback(i=>jn(i,e,"floating"),t),o=L.useCallback(i=>jn(i,e,"item"),e.map(i=>i==null?void 0:i.item));return L.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}function bo(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const ca=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:l=0,minItemsVisible:s=4,referenceOverflowThreshold:a=0,scrollRef:f,...u}=e,{rects:p,elements:{floating:b}}=t,m=n.current[l];if(process.env.NODE_ENV!=="production"&&(t.placement.startsWith("bottom")||ea('`placement` side must be "bottom" when using the `inner`',"middleware.")),!m)return{};const g={...t,...await co(-m.offsetTop-b.clientTop-p.reference.height/2-m.offsetHeight/2-i).fn(t)},v=(f==null?void 0:f.current)||b,x=await $n(bo(g,v.scrollHeight),u),y=await $n(g,{...u,elementContext:"reference"}),w=Math.max(0,x.top),C=g.y+w,$=Math.max(0,v.scrollHeight-w-Math.max(0,x.bottom));return v.style.maxHeight=$+"px",v.scrollTop=w,o&&(v.offsetHeight<m.offsetHeight*Math.min(s,n.current.length-1)-1||y.top>=-a||y.bottom>=-a?Be.flushSync(()=>o(!0)):Be.flushSync(()=>o(!1))),r&&(r.current=await $n(bo({...g,y:C},v.offsetHeight),u)),{y:C}}});function fa(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:l,onChange:s}=t,a=po(s),f=L.useRef(!1),u=L.useRef(null),p=L.useRef(null);return L.useEffect(()=>{if(!o)return;function b(g){if(g.ctrlKey||!m||i.current==null)return;const v=g.deltaY,x=i.current.top>=-.5,y=i.current.bottom>=-.5,w=m.scrollHeight-m.clientHeight,C=v<0?-1:1,$=v<0?"max":"min";m.scrollHeight<=m.clientHeight||(!x&&v>0||!y&&v<0?(g.preventDefault(),Be.flushSync(()=>{a(j=>j+Math[$](v,w*C))})):/firefox/i.test(us())&&(m.scrollTop+=v))}const m=(l==null?void 0:l.current)||r.floating;if(n&&m)return m.addEventListener("wheel",b),requestAnimationFrame(()=>{u.current=m.scrollTop,i.current!=null&&(p.current={...i.current})}),()=>{u.current=null,p.current=null,m.removeEventListener("wheel",b)}},[o,n,r.floating,i,l,a]),L.useMemo(()=>o?{floating:{onKeyDown(){f.current=!0},onWheel(){f.current=!1},onPointerMove(){f.current=!1},onScroll(){const b=(l==null?void 0:l.current)||r.floating;if(!(!i.current||!b||!f.current)){if(u.current!==null){const m=b.scrollTop-u.current;(i.current.bottom<-.5&&m<-1||i.current.top<-.5&&m>1)&&Be.flushSync(()=>a(g=>g+m))}requestAnimationFrame(()=>{u.current=b.scrollTop})}}}}:{},[o,i,r.floating,l,a])}let lt=c.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});lt.displayName="FloatingContext";let kn=c.createContext(null);kn.displayName="PlacementContext";function da(e){return c.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function pa(){return c.useContext(lt).setReference}function ma(){return c.useContext(lt).getReferenceProps}function ga(){let{getFloatingProps:e,slot:t}=c.useContext(lt);return c.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function va(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=c.useContext(kn),n=c.useMemo(()=>e,[JSON.stringify(e,typeof HTMLElement<"u"?(o,i)=>i instanceof HTMLElement?i.outerHTML:i:void 0)]);Z(()=>{t==null||t(n??null)},[t,n]);let r=c.useContext(lt);return c.useMemo(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let yo=4;function ha({children:e,enabled:t=!0}){let[n,r]=c.useState(null),[o,i]=c.useState(0),l=c.useRef(null),[s,a]=c.useState(null);ba(s);let f=t&&n!==null&&s!==null,{to:u="bottom",gap:p=0,offset:b=0,padding:m=0,inner:g}=ya(n,s),[v,x="center"]=u.split(" ");Z(()=>{f&&i(0)},[f]);let{refs:y,floatingStyles:w,context:C}=aa({open:f,placement:v==="selection"?x==="center"?"bottom":`bottom-${x}`:x==="center"?`${v}`:`${v}-${x}`,strategy:"absolute",transform:!1,middleware:[co({mainAxis:v==="selection"?0:p,crossAxis:b}),Ys({padding:m}),v!=="selection"&&qs({padding:m}),v==="selection"&&g?ca({...g,padding:m,overflowRef:l,offset:o,minItemsVisible:yo,referenceOverflowThreshold:m,onFallbackChange(E){var h,S;if(!E)return;let T=C.elements.floating;if(!T)return;let P=parseFloat(getComputedStyle(T).scrollPaddingBottom)||0,M=Math.min(yo,T.childElementCount),A=0,K=0;for(let N of(S=(h=C.elements.floating)==null?void 0:h.childNodes)!=null?S:[])if(N instanceof HTMLElement){let ie=N.offsetTop,oe=ie+N.clientHeight+P,le=T.scrollTop,Ee=le+T.clientHeight;if(ie>=le&&oe<=Ee)M--;else{K=Math.max(0,Math.min(oe,Ee)-Math.max(ie,le)),A=N.clientHeight;break}}M>=1&&i(N=>{let ie=A*M-K+P;return N>=ie?N:ie})}}):null,Ks({padding:m,apply({availableWidth:E,availableHeight:h,elements:S}){Object.assign(S.floating.style,{overflow:"auto",maxWidth:`${E}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${h}px)`})}})].filter(Boolean),whileElementsMounted:Hs}),[$=v,j=x]=C.placement.split("-");v==="selection"&&($="selection");let H=c.useMemo(()=>({anchor:[$,j].filter(Boolean).join(" ")}),[$,j]),W=fa(C,{overflowRef:l,onChange:i}),{getReferenceProps:D,getFloatingProps:B}=ua([W]),z=_(E=>{a(E),y.setFloating(E)});return L.createElement(kn.Provider,{value:r},L.createElement(lt.Provider,{value:{setFloating:z,setReference:y.setReference,styles:w,getReferenceProps:D,getFloatingProps:B,slot:H}},e))}function ba(e){Z(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=e.style.maxHeight;parseFloat(n)!==parseInt(n)&&(e.style.maxHeight=`${Math.ceil(parseFloat(n))}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function ya(e,t){var n,r,o;let i=Mn((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),l=Mn((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),s=Mn((o=e==null?void 0:e.padding)!=null?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:l,padding:s}}function Mn(e,t,n=void 0){let r=De(),o=_((a,f)=>{if(a==null)return[n,null];if(typeof a=="number")return[a,null];if(typeof a=="string"){if(!f)return[n,null];let u=wo(a,f);return[u,p=>{let b=xo(a);{let m=b.map(g=>window.getComputedStyle(f).getPropertyValue(g));r.requestAnimationFrame(function g(){r.nextFrame(g);let v=!1;for(let[y,w]of b.entries()){let C=window.getComputedStyle(f).getPropertyValue(w);if(m[y]!==C){m[y]=C,v=!0;break}}if(!v)return;let x=wo(a,f);u!==x&&(p(x),u=x)})}return r.dispose}]}return[n,null]}),i=c.useMemo(()=>o(e,t)[0],[e,t]),[l=i,s]=c.useState();return Z(()=>{let[a,f]=o(e,t);if(s(a),!!f)return f(s)},[e,t]),l}function xo(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),o=t[1].slice(n+1).trim();return o?[r,...xo(o)]:[r]}return[]}function wo(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let Ln=c.createContext(null);Ln.displayName="OpenClosedContext";var Fe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Fe||{});function Eo(){return c.useContext(Ln)}function xa({value:e,children:t}){return c.createElement(Ln.Provider,{value:e},t)}function wa(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let He=[];wa(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&He[0]!==t.target&&(He.unshift(t.target),He=He.filter(n=>n!=null&&n.isConnected),He.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 Ea(e){throw new Error("Unexpected object: "+e)}var te=(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))(te||{});function An(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 1:{o===-1&&(o=n.length);for(let i=o-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 2:{for(let i=o+1;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 3:{for(let i=n.length-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 4:{for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===e.id)return i;return r}case 5:return null;default:Ea(e)}}function Co(e){let t=_(e),n=c.useRef(!1);c.useEffect(()=>(n.current=!1,()=>{n.current=!0,Nt(()=>{n.current&&t()})}),[t])}function Ca(){let e=typeof document>"u";return"useSyncExternalStore"in L?(t=>t.useSyncExternalStore)(L)(()=>()=>{},()=>!1,()=>!e):!1}function Dn(){let e=Ca(),[t,n]=L.useState(Ge.isHandoffComplete);return t&&Ge.isHandoffComplete===!1&&n(!1),L.useEffect(()=>{t!==!0&&n(!0)},[t]),L.useEffect(()=>Ge.handoff(),[]),e?!1:t}let Oo=c.createContext(!1);function Oa(){return c.useContext(Oo)}function Po(e){return c.createElement(Oo.Provider,{value:e.force},e.children)}function Pa(e){let t=Oa(),n=c.useContext(To),r=nt(e),[o,i]=c.useState(()=>{var l;if(!t&&n!==null)return(l=n.current)!=null?l:null;if(Ge.isServer)return null;let s=r==null?void 0:r.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return c.useEffect(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),c.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let So=c.Fragment,Sa=ae(function(e,t){let n=e,r=c.useRef(null),o=pe(Sl(u=>{r.current=u}),t),i=nt(r),l=Pa(r),[s]=c.useState(()=>{var u;return Ge.isServer?null:(u=i==null?void 0:i.createElement("div"))!=null?u:null}),a=c.useContext(_n),f=Dn();return Z(()=>{!l||!s||l.contains(s)||(s.setAttribute("data-headlessui-portal",""),l.appendChild(s))},[l,s]),Z(()=>{if(s&&a)return a.register(s)},[a,s]),Co(()=>{var u;!l||!s||(s instanceof Node&&l.contains(s)&&l.removeChild(s),l.childNodes.length<=0&&((u=l.parentElement)==null||u.removeChild(l)))}),f?!l||!s?null:Be.createPortal(se({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:So,name:"Portal"}),s):null});function Ta(e,t){let n=pe(t),{enabled:r=!0,...o}=e;return r?c.createElement(Sa,{...o,ref:n}):se({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:So,name:"Portal"})}let $a=c.Fragment,To=c.createContext(null);function Fa(e,t){let{target:n,...r}=e,o={ref:pe(t)};return c.createElement(To.Provider,{value:n},se({ourProps:o,theirProps:r,defaultTag:$a,name:"Popover.Group"}))}let _n=c.createContext(null);function ja(){let e=c.useContext(_n),t=c.useRef([]),n=_(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=_(i=>{let l=t.current.indexOf(i);l!==-1&&t.current.splice(l,1),e&&e.unregister(i)}),o=c.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,c.useMemo(()=>function({children:i}){return c.createElement(_n.Provider,{value:o},i)},[o])]}let ka=ae(Ta),Ma=ae(Fa),In=Object.assign(ka,{Group:Ma});function La(){var e;let[t]=c.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=c.useState((e=t==null?void 0:t.matches)!=null?e:!1);return Z(()=>{if(!t)return;function o(i){r(i.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),n}function Aa({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=c.useRef((r=n==null?void 0:n.current)!=null?r:null),i=nt(o),l=_(()=>{var s,a,f;let u=[];for(let p of e)p!==null&&(p instanceof HTMLElement?u.push(p):"current"in p&&p.current instanceof HTMLElement&&u.push(p.current));if(t!=null&&t.current)for(let p of t.current)u.push(p);for(let p of(s=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?s:[])p!==document.body&&p!==document.head&&p instanceof HTMLElement&&p.id!=="headlessui-portal-root"&&(p.contains(o.current)||p.contains((f=(a=o.current)==null?void 0:a.getRootNode())==null?void 0:f.host)||u.some(b=>p.contains(b))||u.push(p));return u});return{resolveContainers:l,contains:_(s=>l().some(a=>a.contains(s))),mainTreeNodeRef:o,MainTreeNode:c.useMemo(()=>function(){return n!=null?null:c.createElement(yt,{features:tt.Hidden,ref:o})},[o,n])}}let Nn=c.createContext(()=>{});Nn.displayName="StackContext";var Rn=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Rn||{});function Da(){return c.useContext(Nn)}function _a({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=Da(),l=_((...s)=>{t==null||t(...s),i(...s)});return Z(()=>{let s=o===void 0||o===!0;return s&&l(0,n,r),()=>{s&&l(1,n,r)}},[l,n,r,o]),c.createElement(Nn.Provider,{value:l},e)}function $o(){let e=c.useRef(!1);return Z(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var $t=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))($t||{});function Ia(){let e=c.useRef(0);return Hr("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Fo(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let Na="div";var je=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.AutoFocus=32]="AutoFocus",e[e.All=30]="All",e))(je||{});function Ra(e,t){let n=c.useRef(null),r=pe(n,t),{initialFocus:o,initialFocusFallback:i,containers:l,features:s=30,...a}=e;Dn()||(s=1);let f=nt(n);za({ownerDocument:f},!!(s&16));let u=Va({ownerDocument:f,container:n,initialFocus:o,initialFocusFallback:i},s);Ua({ownerDocument:f,container:n,containers:l,previousActiveElement:u},!!(s&8));let p=Ia(),b=_(x=>{let y=n.current;y&&(w=>w())(()=>{de(p.current,{[$t.Forwards]:()=>{wt(y,Se.First,{skipElements:[x.relatedTarget,i]})},[$t.Backwards]:()=>{wt(y,Se.Last,{skipElements:[x.relatedTarget,i]})}})})}),m=De(),g=c.useRef(!1),v={ref:r,onKeyDown(x){x.key=="Tab"&&(g.current=!0,m.requestAnimationFrame(()=>{g.current=!1}))},onBlur(x){if(!(s&8))return;let y=Fo(l);n.current instanceof HTMLElement&&y.add(n.current);let w=x.relatedTarget;w instanceof HTMLElement&&w.dataset.headlessuiFocusGuard!=="true"&&(jo(y,w)||(g.current?wt(n.current,de(p.current,{[$t.Forwards]:()=>Se.Next,[$t.Backwards]:()=>Se.Previous})|Se.WrapAround,{relativeTo:x.target}):x.target instanceof HTMLElement&&Te(x.target)))}};return c.createElement(c.Fragment,null,!!(s&4)&&c.createElement(yt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:b,features:tt.Focusable}),se({ourProps:v,theirProps:a,defaultTag:Na,name:"FocusTrap"}),!!(s&4)&&c.createElement(yt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:b,features:tt.Focusable}))}let Ha=ae(Ra),Wa=Object.assign(Ha,{features:je});function Ba(e=!0){let t=c.useRef(He.slice());return wn(([n],[r])=>{r===!0&&n===!1&&Nt(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=He.slice())},[e,He,t]),_(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function za({ownerDocument:e},t){let n=Ba(t);wn(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Te(n())},[t]),Co(()=>{t&&Te(n())})}function Va({ownerDocument:e,container:t,initialFocus:n,initialFocusFallback:r},o){let i=!!(o&2),l=c.useRef(null),s=$o();return wn(()=>{if(!i){r!=null&&r.current&&Te(r.current);return}let a=t.current;a&&Nt(()=>{if(!s.current)return;let f=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===f){l.current=f;return}}else if(a.contains(f)){l.current=f;return}if(n!=null&&n.current)Te(n.current);else{if(o&32){if(wt(a,Se.First|Se.AutoFocus)!==yn.Error)return}else if(wt(a,Se.First)!==yn.Error)return;if(r!=null&&r.current&&(Te(r.current),(e==null?void 0:e.activeElement)===r.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}l.current=e==null?void 0:e.activeElement})},[r,i,o]),l}function Ua({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=$o();Br(e==null?void 0:e.defaultView,"focus",l=>{if(!o||!i.current)return;let s=Fo(n);t.current instanceof HTMLElement&&s.add(t.current);let a=r.current;if(!a)return;let f=l.target;f&&f instanceof HTMLElement?jo(s,f)?(r.current=f,Te(f)):(l.preventDefault(),l.stopPropagation(),Te(a)):Te(r.current)},!0)}function jo(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var Ga=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ga||{}),Ya=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ya||{});let qa={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Qt=c.createContext(null);Qt.displayName="DialogContext";function Hn(e){let t=c.useContext(Qt);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Hn),n}return t}function Ka(e,t){return de(t.type,qa,e,t)}let Xa="div",Qa=bt.RenderStrategy|bt.Static;function Ja(e,t){let n=c.useId(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:l,role:s="dialog",autoFocus:a=!0,__demoMode:f=!1,...u}=e,[p,b]=c.useState(0),m=c.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(m.current||(m.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let g=Eo();o===void 0&&g!==null&&(o=(g&Fe.Open)===Fe.Open);let v=c.useRef(null),x=pe(v,t),y=nt(v),w=e.hasOwnProperty("open")||g!==null,C=e.hasOwnProperty("onClose");if(!w&&!C)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!w)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!C)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof i!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let $=o?0:1,[j,H]=c.useReducer(Ka,{titleId:null,descriptionId:null,panelRef:c.createRef()}),W=_(()=>i(!1)),D=_(G=>H({type:0,id:G})),B=Dn()?$===0:!1,z=p>1,E=c.useContext(Qt)!==null,[h,S]=ja(),T={get current(){var G;return(G=j.panelRef.current)!=null?G:v.current}},{resolveContainers:P,mainTreeNodeRef:M,MainTreeNode:A}=Aa({portals:h,defaultContainers:[T]}),K=z?"parent":"leaf",N=g!==null?(g&Fe.Closing)===Fe.Closing:!1,ie=z||N?!1:B;Dr({allowed:_(()=>{var G,be;return[(be=(G=v.current)==null?void 0:G.closest("[data-headlessui-portal]"))!=null?be:null]}),disallowed:_(()=>{var G,be;return[(be=(G=M.current)==null?void 0:G.closest("body > *:not(#headlessui-portal-root)"))!=null?be:null]})},f?!1:ie),Wr(P,G=>{G.preventDefault(),W()},!(!B||z));let le=!(z||$!==0);Br(y==null?void 0:y.defaultView,"keydown",G=>{le&&(G.defaultPrevented||G.key===re.Escape&&(G.preventDefault(),G.stopPropagation(),W()))}),Vr(y,f?!1:!(N||$!==0||E),P),_r(v,W,$===0);let[Qe,Je]=$l(),ke=c.useMemo(()=>[{dialogState:$,close:W,setTitleId:D},j],[$,j,W,D]),Ce=c.useMemo(()=>({open:$===0}),[$]),Me={ref:x,id:r,role:s,tabIndex:-1,"aria-modal":$===0?!0:void 0,"aria-labelledby":j.titleId,"aria-describedby":Qe},q=!La(),X=B?de(K,{parent:je.RestoreFocus,leaf:je.All&~je.FocusLock}):je.None;return a&&(X|=je.AutoFocus),q||(X&=~je.InitialFocus),f&&(X=je.None),c.createElement(_a,{type:"Dialog",enabled:$===0,element:v,onUpdate:_((G,be)=>{be==="Dialog"&&de(G,{[Rn.Add]:()=>b(jt=>jt+1),[Rn.Remove]:()=>b(jt=>jt-1)})})},c.createElement(Po,{force:!0},c.createElement(In,null,c.createElement(Qt.Provider,{value:ke},c.createElement(In.Group,{target:v},c.createElement(Po,{force:!1},c.createElement(Je,{slot:Ce,name:"Dialog.Description"},c.createElement(S,null,c.createElement(Wa,{initialFocus:l,initialFocusFallback:v,containers:P,features:X},c.createElement(Nl,{value:W},se({ourProps:Me,theirProps:u,slot:Ce,defaultTag:Xa,features:Qa,visible:$===0,name:"Dialog"})))))))))),c.createElement(Sr,null,c.createElement(A,null)))}let Za="div";function eu(e,t){let n=c.useId(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},l]=Hn("Dialog.Panel"),s=pe(t,l.panelRef),a=c.useMemo(()=>({open:i===0}),[i]),f=_(u=>{u.stopPropagation()});return se({ourProps:{ref:s,id:r,onClick:f},theirProps:o,slot:a,defaultTag:Za,name:"Dialog.Panel"})}let tu="h2";function nu(e,t){let n=c.useId(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:l}]=Hn("Dialog.Title"),s=pe(t);c.useEffect(()=>(l(r),()=>l(null)),[r,l]);let a=c.useMemo(()=>({open:i===0}),[i]);return se({ourProps:{ref:s,id:r},theirProps:o,slot:a,defaultTag:tu,name:"Dialog.Title"})}let ru=ae(Ja),ou=ae(eu),iu=ae(nu),We=Object.assign(ru,{Panel:ou,Title:iu,Description:Ml});function lu(e,t){let[n,r]=c.useState(e),o=Ye(e);return Z(()=>r(o.current),[o,r,...t]),n}function su(e,t=!0){let n=c.useRef({left:0,top:0});if(Z(()=>{let o=e.current;if(!o)return;let i=o.getBoundingClientRect();i&&(n.current=i)},[t]),e.current==null||!t||e.current===document.activeElement)return!1;let r=e.current.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}let ko=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Mo(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),i=!0;let l=i?(n=o.innerText)!=null?n:"":r;return ko.test(l)&&(l=l.replace(ko,"")),l}function au(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let i=document.getElementById(o);if(i){let l=i.getAttribute("aria-label");return typeof l=="string"?l.trim():Mo(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Mo(e).trim()}function uu(e){let t=c.useRef(""),n=c.useRef("");return _(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=au(r).trim().toLowerCase();return t.current=o,n.current=i,i})}var cu=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(cu||{}),fu=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(fu||{}),du=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(du||{}),pu=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e))(pu||{});function Wn(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Nr(t(e.options.slice()),i=>i.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return o===-1&&(o=null),{options:r,activeOptionIndex:o}}let mu={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(o=>n(o.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,o,i,l;if(e.dataRef.current.disabled||e.listboxState===1)return e;let s={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===te.Nothing)return{...s,activeOptionIndex:null};if(t.focus===te.Specific)return{...s,activeOptionIndex:e.options.findIndex(u=>u.id===t.id)};if(t.focus===te.Previous){let u=e.activeOptionIndex;if(u!==null){let p=e.options[u].dataRef.current.domRef,b=An(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:m=>m.id,resolveDisabled:m=>m.dataRef.current.disabled});if(b!==null){let m=e.options[b].dataRef.current.domRef;if(((r=p.current)==null?void 0:r.previousElementSibling)===m.current||((o=m.current)==null?void 0:o.previousElementSibling)===null)return{...s,activeOptionIndex:b}}}}else if(t.focus===te.Next){let u=e.activeOptionIndex;if(u!==null){let p=e.options[u].dataRef.current.domRef,b=An(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:m=>m.id,resolveDisabled:m=>m.dataRef.current.disabled});if(b!==null){let m=e.options[b].dataRef.current.domRef;if(((i=p.current)==null?void 0:i.nextElementSibling)===m.current||((l=m.current)==null?void 0:l.nextElementSibling)===null)return{...s,activeOptionIndex:b}}}}let a=Wn(e),f=An(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:u=>u.id,resolveDisabled:u=>u.dataRef.current.disabled});return{...s,...a,activeOptionIndex:f}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(l=>{var s;return!l.dataRef.current.disabled&&((s=l.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),i=o?e.options.indexOf(o):-1;return i===-1||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Wn(e,o=>[...o,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Wn(e,r=>{let o=r.findIndex(i=>i.id===t.id);return o!==-1&&r.splice(o,1),r});return{...e,...n,activationTrigger:1}}},Bn=c.createContext(null);Bn.displayName="ListboxActionsContext";function Jt(e){let t=c.useContext(Bn);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Jt),n}return t}let Zt=c.createContext(null);Zt.displayName="ListboxDataContext";function Ft(e){let t=c.useContext(Zt);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ft),n}return t}function gu(e,t){return de(t.type,mu,e,t)}let vu=c.Fragment;function hu(e,t){var n;let r=gn(),{value:o,defaultValue:i,form:l,name:s,onChange:a,by:f,invalid:u=!1,disabled:p=r||!1,horizontal:b=!1,multiple:m=!1,__demoMode:g=!1,...v}=e;const x=b?"horizontal":"vertical";let y=pe(t),[w=m?[]:void 0,C]=vl(o,a,i),[$,j]=c.useReducer(gu,{dataRef:c.createRef(),listboxState:g?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,__demoMode:g}),H=c.useRef({static:!1,hold:!1}),W=c.useRef(null),D=c.useRef(null),B=c.useRef(new Map),z=Hl(f),E=c.useCallback(q=>de(h.mode,{1:()=>w.some(X=>z(X,q)),0:()=>z(w,q)}),[w]),h=c.useMemo(()=>({...$,value:w,disabled:p,invalid:u,mode:m?1:0,orientation:x,compare:z,isSelected:E,optionsPropsRef:H,buttonRef:W,optionsRef:D,listRef:B}),[w,p,u,m,$,B]);Z(()=>{$.dataRef.current=h},[h]),Wr([h.buttonRef,h.optionsRef],(q,X)=>{var G;j({type:1}),Ir(X,xn.Loose)||(q.preventDefault(),(G=h.buttonRef.current)==null||G.focus())},h.listboxState===0);let S=c.useMemo(()=>({open:h.listboxState===0,disabled:p,invalid:u,value:w}),[h,p,w,u]),T=_(q=>{let X=h.options.find(G=>G.id===q);X&&oe(X.dataRef.current.value)}),P=_(()=>{if(h.activeOptionIndex!==null){let{dataRef:q,id:X}=h.options[h.activeOptionIndex];oe(q.current.value),j({type:2,focus:te.Specific,id:X})}}),M=_(()=>j({type:0})),A=_(()=>j({type:1})),K=De(),N=_((q,X,G)=>{K.dispose(),K.microTask(()=>q===te.Specific?j({type:2,focus:te.Specific,id:X,trigger:G}):j({type:2,focus:q,trigger:G}))}),ie=_((q,X)=>(j({type:5,id:q,dataRef:X}),()=>j({type:6,id:q}))),oe=_(q=>de(h.mode,{0(){return C==null?void 0:C(q)},1(){let X=h.value.slice(),G=X.findIndex(be=>z(be,q));return G===-1?X.push(q):X.splice(G,1),C==null?void 0:C(X)}})),le=_(q=>j({type:3,value:q})),Ee=_(()=>j({type:4})),Qe=c.useMemo(()=>({onChange:oe,registerOption:ie,goToOption:N,closeListbox:A,openListbox:M,selectActiveOption:P,selectOption:T,search:le,clearSearch:Ee}),[]),[Je,ke]=Ll({inherit:!0}),Ce={ref:y},Me=c.useCallback(()=>C==null?void 0:C(i),[C]);return c.createElement(ke,{value:Je,props:{htmlFor:(n=h.buttonRef.current)==null?void 0:n.id},slot:{open:h.listboxState===0,disabled:p}},c.createElement(ha,null,c.createElement(Bn.Provider,{value:Qe},c.createElement(Zt.Provider,{value:h},c.createElement(xa,{value:de(h.listboxState,{0:Fe.Open,1:Fe.Closed})},s!=null&&w!=null&&c.createElement(wl,{disabled:p,data:{[s]:w},form:l,onReset:Me}),se({ourProps:Ce,theirProps:v,slot:S,defaultTag:vu,name:"Listbox"}))))))}let bu="button";function yu(e,t){var n;let r=Ft("Listbox.Button"),o=Jt("Listbox.Button"),i=c.useId(),l=Tr(),{id:s=l||`headlessui-listbox-button-${i}`,disabled:a=r.disabled||!1,autoFocus:f=!1,...u}=e,p=pe(r.buttonRef,t,pa()),b=ma(),m=De(),g=_(h=>{switch(h.key){case re.Enter:hl(h.currentTarget);break;case re.Space:case re.ArrowDown:h.preventDefault(),o.openListbox(),m.nextFrame(()=>{r.value||o.goToOption(te.First)});break;case re.ArrowUp:h.preventDefault(),o.openListbox(),m.nextFrame(()=>{r.value||o.goToOption(te.Last)});break}}),v=_(h=>{switch(h.key){case re.Space:h.preventDefault();break}}),x=_(h=>{if(Ol(h.currentTarget))return h.preventDefault();r.listboxState===0?(o.closeListbox(),m.nextFrame(()=>{var S;return(S=r.buttonRef.current)==null?void 0:S.focus({preventScroll:!0})})):(h.preventDefault(),o.openListbox())}),y=_(h=>h.preventDefault()),w=kr([s]),C=Tl(),{isFocusVisible:$,focusProps:j}=ll({autoFocus:f}),{isHovered:H,hoverProps:W}=il({isDisabled:a}),{pressed:D,pressProps:B}=dl({disabled:a}),z=c.useMemo(()=>({open:r.listboxState===0,active:D||r.listboxState===0,disabled:a,invalid:r.invalid,value:r.value,hover:H,focus:$,autofocus:f}),[r.listboxState,r.value,a,H,$,D,r.invalid,f]),E=Er(b(),{ref:p,id:s,type:Jl(e,r.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=r.optionsRef.current)==null?void 0:n.id,"aria-expanded":r.listboxState===0,"aria-labelledby":w,"aria-describedby":C,disabled:a||void 0,autoFocus:f,onKeyDown:g,onKeyUp:v,onKeyPress:y,onClick:x},j,W,B);return se({ourProps:E,theirProps:u,slot:z,defaultTag:bu,name:"Listbox.Button"})}let Lo=c.createContext(!1),xu="div",wu=bt.RenderStrategy|bt.Static;function Eu(e,t){var n;let r=c.useId(),{id:o=`headlessui-listbox-options-${r}`,anchor:i,portal:l=!1,modal:s=!0,...a}=e,f=da(i);f&&(l=!0);let u=Ft("Listbox.Options"),p=Jt("Listbox.Options"),b=nt(u.optionsRef),m=Eo(),g=m!==null?(m&Fe.Open)===Fe.Open:u.listboxState===0;_r(u.buttonRef,p.closeListbox,g),Vr(b,u.__demoMode?!1:s&&u.listboxState===0),Dr({allowed:_(()=>[u.buttonRef.current,u.optionsRef.current])},u.__demoMode?!1:s&&u.listboxState===0);let v=c.useRef(null);c.useEffect(()=>{var P;if(!((P=f==null?void 0:f.to)!=null&&P.includes("selection")))return;if(!g){v.current=null;return}let M=Array.from(u.listRef.current.values());v.current=M.findIndex(A=>(A==null?void 0:A.dataset.selected)===""),v.current===-1&&(v.current=M.findIndex(A=>(A==null?void 0:A.dataset.disabled)===void 0),p.goToOption(te.First))},[g,u.listRef]);let x=su(u.buttonRef,u.listboxState!==0)?!1:g,y=(()=>{if(f==null)return;if(u.listRef.current.size<=0)return{...f,inner:void 0};let P=Array.from(u.listRef.current.values());return{...f,inner:{listRef:{current:P},index:v.current}}})(),[w,C]=va(y),$=ga(),j=pe(u.optionsRef,t,f?w:null),H=De(),W=De();c.useEffect(()=>{var P;let M=u.optionsRef.current;M&&u.listboxState===0&&M!==((P=ht(M))==null?void 0:P.activeElement)&&(M==null||M.focus({preventScroll:!0}))},[u.listboxState,u.optionsRef,u.optionsRef.current]);let D=_(P=>{switch(W.dispose(),P.key){case re.Space:if(u.searchQuery!=="")return P.preventDefault(),P.stopPropagation(),p.search(P.key);case re.Enter:if(P.preventDefault(),P.stopPropagation(),u.activeOptionIndex!==null){let{dataRef:M}=u.options[u.activeOptionIndex];p.onChange(M.current.value)}u.mode===0&&(p.closeListbox(),Pe().nextFrame(()=>{var M;return(M=u.buttonRef.current)==null?void 0:M.focus({preventScroll:!0})}));break;case de(u.orientation,{vertical:re.ArrowDown,horizontal:re.ArrowRight}):return P.preventDefault(),P.stopPropagation(),p.goToOption(te.Next);case de(u.orientation,{vertical:re.ArrowUp,horizontal:re.ArrowLeft}):return P.preventDefault(),P.stopPropagation(),p.goToOption(te.Previous);case re.Home:case re.PageUp:return P.preventDefault(),P.stopPropagation(),p.goToOption(te.First);case re.End:case re.PageDown:return P.preventDefault(),P.stopPropagation(),p.goToOption(te.Last);case re.Escape:return P.preventDefault(),P.stopPropagation(),p.closeListbox(),H.nextFrame(()=>{var M;return(M=u.buttonRef.current)==null?void 0:M.focus({preventScroll:!0})});case re.Tab:P.preventDefault(),P.stopPropagation();break;default:P.key.length===1&&(p.search(P.key),W.setTimeout(()=>p.clearSearch(),350));break}}),B=lu(()=>{var P;return(P=u.buttonRef.current)==null?void 0:P.id},[u.buttonRef.current]),z=c.useMemo(()=>({open:u.listboxState===0}),[u]),E=Er(f?$():{},{id:o,ref:j,"aria-activedescendant":u.activeOptionIndex===null||(n=u.options[u.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":u.mode===1?!0:void 0,"aria-labelledby":B,"aria-orientation":u.orientation,onKeyDown:D,role:"listbox",tabIndex:0,style:{...C,"--button-width":Bl(u.buttonRef,!0).width}}),[h,S]=c.useState(u.value);u.value!==h&&u.listboxState===0&&u.mode!==1&&S(u.value);let T=_(P=>u.compare(h,P));return c.createElement(In,{enabled:l?e.static||g:!1},c.createElement(Zt.Provider,{value:u.mode===1?u:{...u,isSelected:T}},se({ourProps:E,theirProps:a,slot:z,defaultTag:xu,features:wu,visible:x,name:"Listbox.Options"})))}let Cu="div";function Ou(e,t){let n=c.useId(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...l}=e,s=c.useContext(Lo)===!0,a=Ft("Listbox.Option"),f=Jt("Listbox.Option"),u=a.activeOptionIndex!==null?a.options[a.activeOptionIndex].id===r:!1,p=a.isSelected(i),b=c.useRef(null),m=uu(b),g=Ye({disabled:o,value:i,domRef:b,get textValue(){return m()}}),v=pe(t,b,D=>{D?a.listRef.current.set(r,D):a.listRef.current.delete(r)});Z(()=>{if(a.__demoMode||a.listboxState!==0||!u||a.activationTrigger===0)return;let D=Pe();return D.requestAnimationFrame(()=>{var B,z;(z=(B=b.current)==null?void 0:B.scrollIntoView)==null||z.call(B,{block:"nearest"})}),D.dispose},[b,u,a.__demoMode,a.listboxState,a.activationTrigger,a.activeOptionIndex]),Z(()=>{if(!s)return f.registerOption(r,g)},[g,r,s]);let x=_(D=>{if(o)return D.preventDefault();f.onChange(i),a.mode===0&&(f.closeListbox(),Pe().nextFrame(()=>{var B;return(B=a.buttonRef.current)==null?void 0:B.focus({preventScroll:!0})}))}),y=_(()=>{if(o)return f.goToOption(te.Nothing);f.goToOption(te.Specific,r)}),w=ls(),C=_(D=>{w.update(D),!o&&(u||f.goToOption(te.Specific,r,0))}),$=_(D=>{w.wasMoved(D)&&(o||u||f.goToOption(te.Specific,r,0))}),j=_(D=>{w.wasMoved(D)&&(o||u&&f.goToOption(te.Nothing))}),H=c.useMemo(()=>({active:u,focus:u,selected:p,disabled:o,selectedOption:p&&s}),[u,p,o,s]);return!p&&s?null:se({ourProps:s?{}:{id:r,ref:v,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:x,onFocus:y,onPointerEnter:C,onMouseEnter:C,onPointerMove:$,onMouseMove:$,onPointerLeave:j,onMouseLeave:j},theirProps:l,slot:H,defaultTag:Cu,name:"Listbox.Option"})}let Pu=c.Fragment;function Su(e,t){let{options:n,placeholder:r,...o}=e,i={ref:pe(t)},l=Ft("ListboxSelectedOption"),s=c.useMemo(()=>({}),[]),a=l.value===void 0||l.value===null||l.mode===1&&Array.isArray(l.value)&&l.value.length===0;return c.createElement(Lo.Provider,{value:!0},se({ourProps:i,theirProps:{...o,children:c.createElement(c.Fragment,null,r&&a?r:n)},slot:s,defaultTag:Pu,name:"ListboxSelectedOption"}))}let Tu=ae(hu),Ao=ae(yu),$u=Mr,Do=ae(Eu),_o=ae(Ou),Fu=ae(Su),ju=Object.assign(Tu,{Button:Ao,Label:$u,Options:Do,Option:_o,SelectedOption:Fu});const ku=({checked:e,label:t,onChange:n,termImageUrl:r})=>{const[o,i]=c.useState(!1);return F.jsxs(F.Fragment,{children:[F.jsx(Mu,{isOpen:o,setIsOpen:i,termImageUrl:r}),F.jsxs("div",{className:"inline-flex items-center",children:[F.jsxs("label",{className:"relative flex cursor-pointer items-center rounded-full p-3",htmlFor:"check",children:[F.jsx("input",{type:"checkbox",className:"before:content[''] border-blue-gray-200 before:bg-blue-gray-500 peer relative size-6 cursor-pointer appearance-none rounded-xl border bg-[#C5C8CD] transition-all before:absolute before:left-2/4 before:top-2/4 before:block before:h-12 before:w-12 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-full before:opacity-0 before:transition-opacity checked:border-petnowOrange checked:bg-petnowOrange checked:before:bg-petnowOrange",id:t,checked:e,onChange:l=>{n(l.target.checked)}}),F.jsx("span",{className:"pointer-events-none absolute left-2/4 top-2/4 -translate-x-2/4 -translate-y-2/4 text-[#8B919A] transition peer-checked:text-white",children:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:"1",children:F.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})]}),t&&F.jsxs("div",{className:"flex items-center",children:[F.jsx("label",{className:"cursor-pointer font-medium",htmlFor:t,children:t}),F.jsx(Bi,{onClick:()=>{i(!0)},className:"ml-2 mt-[2.5px] cursor-pointer text-deepGray",size:24})]})]})]})},Mu=({isOpen:e,setIsOpen:t,termImageUrl:n})=>F.jsxs(We,{open:e,onClose:()=>t(!1),className:"relative z-50",children:[F.jsx("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),F.jsx("div",{className:"fixed inset-0 w-screen overflow-y-auto",children:F.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:F.jsxs(We.Panel,{className:"mx-auto flex max-w-sm flex-col items-center gap-8 rounded bg-white",children:[F.jsx("div",{className:"flex h-[36px] w-full flex-row-reverse items-center bg-[#F0F1F2]",children:F.jsx(fr,{size:20,className:"mr-2",onClick:()=>t(!1)})}),F.jsx("img",{src:n,alt:"약관동의 이미지"}),F.jsx(lr,{text:"닫기",className:"mb-4 w-[90%] text-base focus:outline-none",onClick:()=>t(!1)})]})})})]});var Io={},No={},en={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.postcodeScriptUrl=void 0;var t="https://t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js";e.postcodeScriptUrl="https://t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js";var n=function(){var o=null;return function(){var i=0<arguments.length&&arguments[0]!==void 0?arguments[0]:t;return o||(o=new Promise(function(l,s){var a=document.createElement("script");a.src=i,a.onload=function(){var f,u;return(f=window)!==null&&f!==void 0&&(u=f.daum)!==null&&u!==void 0&&u.Postcode?l(window.daum.Postcode):void s(new Error("Script is loaded successfully, but cannot find Postcode module. Check your scriptURL property."))},a.onerror=function(f){return s(f)},a.id="daum_postcode_script",document.body.appendChild(a)}),o)}}(),r=n;e.default=r})(en),function(e){function t(E){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},t(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(c),r=l(en),o=["scriptUrl","className","style","defaultQuery","autoClose","errorMessage","onComplete","onClose","onResize","onSearch"];function i(E){if(typeof WeakMap!="function")return null;var h=new WeakMap,S=new WeakMap;return(i=function(T){return T?S:h})(E)}function l(E,h){if(E&&E.__esModule)return E;if(E===null||t(E)!=="object"&&typeof E!="function")return{default:E};var S=i(h);if(S&&S.has(E))return S.get(E);var T={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in E)if(M!="default"&&Object.prototype.hasOwnProperty.call(E,M)){var A=P?Object.getOwnPropertyDescriptor(E,M):null;A&&(A.get||A.set)?Object.defineProperty(T,M,A):T[M]=E[M]}return T.default=E,S&&S.set(E,T),T}function s(E,h){var S=Object.keys(E);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(E);h&&(T=T.filter(function(P){return Object.getOwnPropertyDescriptor(E,P).enumerable})),S.push.apply(S,T)}return S}function a(E){for(var h,S=1;S<arguments.length;S++)h=arguments[S]==null?{}:arguments[S],S%2?s(Object(h),!0).forEach(function(T){j(E,T,h[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(h)):s(Object(h)).forEach(function(T){Object.defineProperty(E,T,Object.getOwnPropertyDescriptor(h,T))});return E}function f(E,h){if(E==null)return{};var S,T,P=u(E,h);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(E);for(T=0;T<M.length;T++)S=M[T],0<=h.indexOf(S)||Object.prototype.propertyIsEnumerable.call(E,S)&&(P[S]=E[S])}return P}function u(E,h){if(E==null)return{};var S,T,P={},M=Object.keys(E);for(T=0;T<M.length;T++)S=M[T],0<=h.indexOf(S)||(P[S]=E[S]);return P}function p(E,h){if(!(E instanceof h))throw new TypeError("Cannot call a class as a function")}function b(E,h){for(var S,T=0;T<h.length;T++)S=h[T],S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(E,S.key,S)}function m(E,h,S){return h&&b(E.prototype,h),E}function g(E,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(h&&h.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),h&&v(E,h)}function v(E,h){return v=Object.setPrototypeOf||function(S,T){return S.__proto__=T,S},v(E,h)}function x(E){var h=C();return function(){var S,T=$(E);if(h){var P=$(this).constructor;S=Reflect.construct(T,arguments,P)}else S=T.apply(this,arguments);return y(this,S)}}function y(E,h){return h&&(t(h)==="object"||typeof h=="function")?h:w(E)}function w(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function C(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $(E){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},$(E)}function j(E,h,S){return h in E?Object.defineProperty(E,h,{value:S,enumerable:!0,configurable:!0,writable:!0}):E[h]=S,E}var H=n.default.createElement("p",null,"현재 Daum 우편번호 서비스를 이용할 수 없습니다. 잠시 후 다시 시도해주세요."),W={width:"100%",height:400},D={scriptUrl:r.postcodeScriptUrl,errorMessage:H,autoClose:!0},B=function(E){function h(){var T;p(this,h);for(var P=arguments.length,M=Array(P),A=0;A<P;A++)M[A]=arguments[A];return T=S.call.apply(S,[this].concat(M)),j(w(T),"mounted",!1),j(w(T),"wrap",(0,n.createRef)()),j(w(T),"state",{hasError:!1}),j(w(T),"initiate",function(K){if(T.wrap.current){var N=T.props;N.scriptUrl,N.className,N.style;var ie=N.defaultQuery,oe=N.autoClose;N.errorMessage;var le=N.onComplete,Ee=N.onClose,Qe=N.onResize,Je=N.onSearch,ke=f(N,o),Ce=new K(a(a({},ke),{},{oncomplete:function(q){le&&le(q),oe&&T.wrap.current&&T.wrap.current.remove()},onsearch:Je,onresize:Qe,onclose:Ee,width:"100%",height:"100%"}));Ce.embed(T.wrap.current,{q:ie,autoClose:oe})}}),j(w(T),"onError",function(K){console.error(K),T.setState({hasError:!0})}),T}g(h,E);var S=x(h);return m(h,[{key:"componentDidMount",value:function(){var P=this.initiate,M=this.onError,A=this.props.scriptUrl;A&&(this.mounted||((0,r.default)(A).then(P).catch(M),this.mounted=!0))}},{key:"render",value:function(){var P=this.props,M=P.className,A=P.style,K=P.errorMessage,N=this.state.hasError;return n.default.createElement("div",{ref:this.wrap,className:M,style:a(a({},W),A)},N&&K)}}]),h}(n.Component);j(B,"defaultProps",D);var z=B;e.default=z}(No);var Ro={};(function(e){function t(g){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},t(g)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=c,r=l(en),o=["defaultQuery","left","top","popupKey","popupTitle","autoClose","onComplete","onResize","onClose","onSearch","onError"];function i(g){if(typeof WeakMap!="function")return null;var v=new WeakMap,x=new WeakMap;return(i=function(y){return y?x:v})(g)}function l(g,v){if(g&&g.__esModule)return g;if(g===null||t(g)!=="object"&&typeof g!="function")return{default:g};var x=i(v);if(x&&x.has(g))return x.get(g);var y={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in g)if(C!="default"&&Object.prototype.hasOwnProperty.call(g,C)){var $=w?Object.getOwnPropertyDescriptor(g,C):null;$&&($.get||$.set)?Object.defineProperty(y,C,$):y[C]=g[C]}return y.default=g,x&&x.set(g,y),y}function s(g,v){var x=Object.keys(g);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(g);v&&(y=y.filter(function(w){return Object.getOwnPropertyDescriptor(g,w).enumerable})),x.push.apply(x,y)}return x}function a(g){for(var v,x=1;x<arguments.length;x++)v=arguments[x]==null?{}:arguments[x],x%2?s(Object(v),!0).forEach(function(y){f(g,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(v)):s(Object(v)).forEach(function(y){Object.defineProperty(g,y,Object.getOwnPropertyDescriptor(v,y))});return g}function f(g,v,x){return v in g?Object.defineProperty(g,v,{value:x,enumerable:!0,configurable:!0,writable:!0}):g[v]=x,g}function u(g,v){if(g==null)return{};var x,y,w=p(g,v);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(g);for(y=0;y<C.length;y++)x=C[y],0<=v.indexOf(x)||Object.prototype.propertyIsEnumerable.call(g,x)&&(w[x]=g[x])}return w}function p(g,v){if(g==null)return{};var x,y,w={},C=Object.keys(g);for(y=0;y<C.length;y++)x=C[y],0<=v.indexOf(x)||(w[x]=g[x]);return w}function b(){var g=0<arguments.length&&arguments[0]!==void 0?arguments[0]:r.postcodeScriptUrl;(0,n.useEffect)(function(){(0,r.default)(g)},[g]);var v=(0,n.useCallback)(function(x){var y=a({},x),w=y.defaultQuery,C=y.left,$=y.top,j=y.popupKey,H=y.popupTitle,W=y.autoClose,D=y.onComplete,B=y.onResize,z=y.onClose,E=y.onSearch,h=y.onError,S=u(y,o);return(0,r.default)(g).then(function(T){var P=new T(a(a({},S),{},{oncomplete:D,onsearch:E,onresize:B,onclose:z}));P.open({q:w,left:C,top:$,popupTitle:H,popupKey:j,autoClose:W})}).catch(h)},[g]);return v}var m=b;e.default=m})(Ro),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DaumPostcodeEmbed",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"useDaumPostcodePopup",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"loadPostcode",{enumerable:!0,get:function(){return r.default}}),e.default=void 0;var t=o(No),n=o(Ro),r=o(en);function o(l){return l&&l.__esModule?l:{default:l}}var i=t.default;e.default=i}(Io);const Lu=({label:e,value:t,onFrontChange:n,onBackChange:r,onPostalCodeChange:o,disabled:i})=>{const[l,s]=c.useState(!1),a=p=>{let b=p.address,m="";p.addressType==="R"&&(p.bname!==""&&(m+=p.bname),p.buildingName!==""&&(m+=m!==""?`, ${p.buildingName}`:p.buildingName),b+=m!==""?` (${m})`:""),n(b),o&&o(p.zonecode),s(!1)},f=()=>{s(!0)},u=()=>t.front?t.front:F.jsx("p",{className:"text-[#C5C8CD]",children:"주소를 입력해주세요."});return F.jsxs(F.Fragment,{children:[F.jsx(Au,{isOpen:l,setIsOpen:s,handleComplete:a}),F.jsxs("div",{className:"text-deepGray",children:[F.jsx("label",{htmlFor:e,className:"text-sm font-bold text-lightBlack",children:e}),F.jsxs("div",{className:"relative flex flex-col",children:[F.jsx("div",{className:`mt-4 h-[60px] w-full overflow-hidden whitespace-nowrap rounded-xl bg-[#F8F8F9] p-4 text-base placeholder:text-[#C5C8CD] focus:outline-none ${i&&"opacity-50"}`,onClick:f,children:u()}),F.jsx("input",{disabled:!t.front||i,value:t.back,type:"text",name:e,id:e,placeholder:"상세 주소를 입력해주세요.",className:"mt-4 h-[60px] w-full rounded-xl bg-[#F8F8F9] p-4 text-base placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",autoComplete:"off",onChange:p=>r(p.target.value)})]})]})]})},Au=e=>{const{isOpen:t,setIsOpen:n,handleComplete:r}=e;return F.jsxs(We,{open:t,onClose:()=>n(!1),className:"relateive z-50",children:[F.jsx("div",{className:"fixed inset-0 bg-black/40","aria-hidden":"true"}),F.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center",children:F.jsx(We.Panel,{children:F.jsxs("div",{children:[F.jsx("div",{className:"flex h-[36px] w-[90vw] flex-row-reverse items-center bg-[#F0F1F2]",children:F.jsx(fr,{size:20,className:"mr-2",onClick:()=>n(!1)})}),F.jsx(Io.DaumPostcodeEmbed,{onComplete:r,style:{width:"90vw",height:"65vh",minHeight:"450px",borderRadius:"100px"}})]})})})]})},Du=e=>{const{isOpen:t,setIsOpen:n}=e;return F.jsxs(We,{open:t,onClose:()=>n(!1),className:"relative z-50",children:[F.jsx("div",{className:"fixed inset-0 bg-black/40","aria-hidden":"true"}),F.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:F.jsxs(We.Panel,{className:"flex w-[260px] flex-col gap-[16px] rounded-[16px] bg-white p-[20px]",children:[F.jsxs("div",{className:"flex flex-col gap-[8px]",children:[e.title&&F.jsx(We.Title,{className:"whitespace-pre-wrap text-[18px] font-bold leading-[26px] text-[#2C2F34]",children:e.title}),e.image&&F.jsx("img",{src:e.image.url,alt:e.image.alt}),e.description&&e.description!==""&&F.jsx(We.Description,{className:"break-all text-[16px] leading-[24px] text-[#585E67]",children:e.description})]}),F.jsxs("div",{className:"flex flex-col gap-[4px]",children:[F.jsx("button",{className:"w-full rounded-[12px] bg-[#FF592C] px-[12px] py-[14px] text-[14px] font-bold leading-[22px] text-white",onClick:e.confirm.onClick,children:e.confirm.text}),e.cancel&&F.jsx("button",{onClick:()=>n(!1),className:"w-full rounded-[12px] bg-[#F0F1F2] px-[12px] py-[14px] text-[14px] font-bold leading-[22px] text-[#585E67]",children:e.cancel.text})]})]})})]})};function _u(e){return pt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(e)}function Iu(e){return pt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 217.9L383 345c9.4 9.4 24.6 9.4 33.9 0 9.4-9.4 9.3-24.6 0-34L273 167c-9.1-9.1-23.7-9.3-33.1-.7L95 310.9c-4.7 4.7-7 10.9-7 17s2.3 12.3 7 17c9.4 9.4 24.6 9.4 33.9 0l127.1-127z"},child:[]}]})(e)}const Nu=({title:e,description:t,titleTextClassName:n,descriptionTextClassName:r})=>{const[o,i]=c.useState(!1);return F.jsxs("div",{className:"my-2.5 flex w-full cursor-pointer flex-col justify-center rounded-xl px-4 pt-8 shadow-[0_2px_8px_0_rgba(0,0,0,0.08)] md:rounded-2xl md:pt-10",onClick:()=>i(l=>!l),children:[F.jsxs("div",{className:"flex w-full items-center justify-between px-2 pb-8 transition-all duration-300 md:px-4 md:pb-10",children:[F.jsxs("p",{className:sn("mr-4 text-lg font-medium md:text-xl",n),children:[F.jsx("span",{className:"font-semibold",children:"Q."})," ",e]}),o?F.jsx(Iu,{className:"min-w-6 text-petnowOrange",size:24}):F.jsx(_u,{className:"min-w-6 text-petnowOrange",size:24})]}),F.jsx("p",{className:sn(`w-full overflow-hidden whitespace-pre-wrap px-2 text-base leading-6 text-[#8B919A] transition-all duration-300 md:px-4 md:text-lg ${o?"max-h-[24rem] pb-8 sm:max-h-60 md:pb-10 ":"max-h-0"}`,r),children:t})]})};function Ru(e){return pt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"},child:[]}]})(e)}const Hu=({label:e,placeholder:t,value:n,options:r,onChange:o,disabled:i})=>F.jsx("div",{className:"relative text-deepGray",children:F.jsxs(ju,{disabled:i,onChange:o,children:[F.jsx(Mr,{className:"text-xl font-bold text-lightBlack",children:e}),F.jsxs(Ao,{className:"relative mt-4 h-[60px] w-full rounded-xl bg-[#F8F8F8] p-4 text-start text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",children:[n.name?F.jsx("p",{children:n.name}):F.jsx("p",{className:"text-[#C5C8CD]",children:t})," ",F.jsx(Ru,{className:"absolute bottom-5 right-4"})]}),F.jsx(Do,{className:"scrollbar absolute max-h-[240px] w-full overflow-hidden overflow-y-auto rounded-xl shadow-md",children:r.map(l=>F.jsx(_o,{value:l,as:F.Fragment,children:({focus:s,selected:a})=>F.jsx("li",{className:`flex w-full cursor-pointer justify-between p-4 text-start text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50
34
+ ${s?"bg-[#E8E8E8]":"bg-[#F8F8F8]"}
35
+ ${a&&"bg-[#D8D8D8]"}`,children:l.name})},l.name))})]})}),Wu=({tabList:e,onTabChange:t})=>{const[n,r]=c.useState(e[0]);return F.jsx("div",{className:"flex flex-row text-2xl font-bold",children:e.map(o=>F.jsxs("div",{className:"flex flex-1 flex-col",children:[F.jsx("button",{className:`py-5 hover:text-lightBlack ${o===n?"text-lightBlack":"text-[#8B919A]"}`,onClick:()=>{r(o),t(o)},children:o.displayName}),F.jsx("div",{className:`h-[2px] w-full transition-colors duration-200 ${o===n?"bg-petnowOrange":"bg-lightGray"}`})]},o.key))})};fe.AccordionCard=Nu,fe.Checkbox=ku,fe.CtaButton=lr,fe.LabeledAddressInput=Lu,fe.LabeledSelect=Hu,fe.Modal=Du,fe.Tabs=Wu,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
34
36
  //# sourceMappingURL=index.umd.js.map