@petnow/ui 1.0.1 → 1.1.0
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.css +1 -1
- package/dist/index.es.js +1542 -1516
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +12 -12
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/select/LabeledSelect.d.ts +19 -0
- package/dist/src/components/select/LabeledSelect.stories.d.ts +7 -0
- package/package.json +2 -2
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,
|
|
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={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var 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={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var $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`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+i+"`."}return""}}function
|
|
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=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
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:
|
|
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,Re,Ii,Re),Nr[Re+Nt]=!0}}return i===n?Ni(H):Mi(H),H}}function Ai(i,f,y){return Ar(i,f,y,!0)}function Di(i,f,y){return Ar(i,f,y,!1)}var Fi=Di,Li=Ai;De.Fragment=n,De.jsx=Fi,De.jsxs=Li}()),De}process.env.NODE_ENV==="production"?dt.exports=Lr():dt.exports=Ir();var P=dt.exports;function Ft(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=Ft(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function zr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ft(e))&&(n&&(n+=" "),n+=t);return n}const ft="-";function Wr(e){const t=Ur(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;function o(a){const s=a.split(ft);return s[0]===""&&s.length!==1&&s.shift(),Lt(s,t)||Br(a)}function l(a,s){const u=r[a]||[];return s&&n[a]?[...u,...n[a]]:u}return{getClassGroupId:o,getConflictingClassGroupIds:l}}function Lt(e,t){var a;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 l=e.join(ft);return(a=t.validators.find(({validator:s})=>s(l)))==null?void 0:a.classGroupId}const It=/^\[(.+)\]$/;function Br(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 Ur(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Gr(Object.entries(e.classGroups),r).forEach(([l,a])=>{pt(a,n,l,t)}),n}function pt(e,t,r,n){e.forEach(o=>{if(typeof o=="string"){const l=o===""?t:zt(t,o);l.classGroupId=r;return}if(typeof o=="function"){if(Hr(o)){pt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([l,a])=>{pt(a,zt(t,l),r,n)})})}function zt(e,t){let r=e;return t.split(ft).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function Hr(e){return e.isThemeGetter}function Gr(e,t){return t?e.map(([r,n])=>{const o=n.map(l=>typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([a,s])=>[t+a,s])):l);return[r,o]}):e}function Vr(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function o(l,a){r.set(l,a),t++,t>e&&(t=0,n=r,r=new Map)}return{get(l){let a=r.get(l);if(a!==void 0)return a;if((a=n.get(l))!==void 0)return o(l,a),a},set(l,a){r.has(l)?r.set(l,a):o(l,a)}}}const Wt="!";function Yr(e){const t=e.separator,r=t.length===1,n=t[0],o=t.length;return function(a){const s=[];let u=0,w=0,d;for(let b=0;b<a.length;b++){let E=a[b];if(u===0){if(E===n&&(r||a.slice(b,b+o)===t)){s.push(a.slice(w,b)),w=b+o;continue}if(E==="/"){d=b;continue}}E==="["?u++:E==="]"&&u--}const m=s.length===0?a:a.substring(w),j=m.startsWith(Wt),R=j?m.substring(1):m,h=d&&d>w?d-w:void 0;return{modifiers:s,hasImportantModifier:j,baseClassName:R,maybePostfixModifierPosition:h}}}function qr(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 $r(e){return{cache:Vr(e.cacheSize),splitModifiers:Yr(e),...Wr(e)}}const Kr=/\s+/;function Jr(e,t){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,l=new Set;return e.trim().split(Kr).map(a=>{const{modifiers:s,hasImportantModifier:u,baseClassName:w,maybePostfixModifierPosition:d}=r(a);let m=n(d?w.substring(0,d):w),j=!!d;if(!m){if(!d)return{isTailwindClass:!1,originalClassName:a};if(m=n(w),!m)return{isTailwindClass:!1,originalClassName:a};j=!1}const R=qr(s).join(":");return{isTailwindClass:!0,modifierId:u?R+Wt:R,classGroupId:m,originalClassName:a,hasPostfixModifier:j}}).reverse().filter(a=>{if(!a.isTailwindClass)return!0;const{modifierId:s,classGroupId:u,hasPostfixModifier:w}=a,d=s+u;return l.has(d)?!1:(l.add(d),o(u,w).forEach(m=>l.add(s+m)),!0)}).reverse().map(a=>a.originalClassName).join(" ")}function Xr(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Bt(t))&&(n&&(n+=" "),n+=r);return n}function Bt(e){if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Bt(e[n]))&&(r&&(r+=" "),r+=t);return r}function Qr(e,...t){let r,n,o,l=a;function a(u){const w=t.reduce((d,m)=>m(d),e());return r=$r(w),n=r.cache.get,o=r.cache.set,l=s,s(u)}function s(u){const w=n(u);if(w)return w;const d=Jr(u,r);return o(u,d),d}return function(){return l(Xr.apply(null,arguments))}}function L(e){const t=r=>r[e]||[];return t.isThemeGetter=!0,t}const Ut=/^\[(?:([a-z-]+):)?(.+)\]$/i,Zr=/^\d+\/\d+$/,en=new Set(["px","full","screen"]),tn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rn=/\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$/,nn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,on=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,an=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function se(e){return we(e)||en.has(e)||Zr.test(e)}function me(e){return Te(e,"length",mn)}function we(e){return!!e&&!Number.isNaN(Number(e))}function $e(e){return Te(e,"number",we)}function Fe(e){return!!e&&Number.isInteger(Number(e))}function ln(e){return e.endsWith("%")&&we(e.slice(0,-1))}function _(e){return Ut.test(e)}function ge(e){return tn.test(e)}const sn=new Set(["length","size","percentage"]);function un(e){return Te(e,sn,Ht)}function cn(e){return Te(e,"position",Ht)}const dn=new Set(["image","url"]);function fn(e){return Te(e,dn,bn)}function pn(e){return Te(e,"",gn)}function Le(){return!0}function Te(e,t,r){const n=Ut.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1}function mn(e){return rn.test(e)&&!nn.test(e)}function Ht(){return!1}function gn(e){return on.test(e)}function bn(e){return an.test(e)}function hn(){const e=L("colors"),t=L("spacing"),r=L("blur"),n=L("brightness"),o=L("borderColor"),l=L("borderRadius"),a=L("borderSpacing"),s=L("borderWidth"),u=L("contrast"),w=L("grayscale"),d=L("hueRotate"),m=L("invert"),j=L("gap"),R=L("gradientColorStops"),h=L("gradientColorStopPositions"),b=L("inset"),E=L("margin"),O=L("opacity"),S=L("padding"),M=L("saturate"),W=L("scale"),V=L("sepia"),q=L("skew"),ie=L("space"),Z=L("translate"),Y=()=>["auto","contain","none"],te=()=>["auto","hidden","clip","visible","scroll"],g=()=>["auto",_,t],p=()=>[_,t],x=()=>["",se,me],v=()=>["auto",we,_],k=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",_],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[we,$e],re=()=>[we,_];return{cacheSize:500,separator:":",theme:{colors:[Le],spacing:[se,me],blur:["none","",ge,_],brightness:ee(),borderColor:[e],borderRadius:["none","","full",ge,_],borderSpacing:p(),borderWidth:x(),contrast:ee(),grayscale:I(),hueRotate:re(),invert:I(),gap:p(),gradientColorStops:[e],gradientColorStopPositions:[ln,me],inset:g(),margin:g(),opacity:ee(),padding:p(),saturate:ee(),scale:ee(),sepia:I(),skew:re(),space:p(),translate:p()},classGroups:{aspect:[{aspect:["auto","square","video",_]}],container:["container"],columns:[{columns:[ge]}],"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:[...k(),_]}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fe,_]}],basis:[{basis:g()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",Fe,_]}],"grid-cols":[{"grid-cols":[Le]}],"col-start-end":[{col:["auto",{span:["full",Fe,_]},_]}],"col-start":[{"col-start":v()}],"col-end":[{"col-end":v()}],"grid-rows":[{"grid-rows":[Le]}],"row-start-end":[{row:["auto",{span:[Fe,_]},_]}],"row-start":[{"row-start":v()}],"row-end":[{"row-end":v()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_]}],gap:[{gap:[j]}],"gap-x":[{"gap-x":[j]}],"gap-y":[{"gap-y":[j]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[ie]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ie]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_,t]}],"min-w":[{"min-w":[_,t,"min","max","fit"]}],"max-w":[{"max-w":[_,t,"none","full","min","max","fit","prose",{screen:[ge]},ge]}],h:[{h:[_,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ge,me]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$e]}],"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",_]}],"line-clamp":[{"line-clamp":["none",we,$e]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",se,_]}],"list-image":[{"list-image":["none",_]}],"list-style-type":[{list:["none","disc","decimal",_]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",se,me]}],"underline-offset":[{"underline-offset":["auto",se,_]}],"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:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_]}],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",_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[O]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...k(),cn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",un]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fn]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"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":[O]}],"border-style":[{border:[...D(),"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":[O]}],"divide-style":[{divide:D()}],"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:["",...D()]}],"outline-offset":[{"outline-offset":[se,_]}],"outline-w":[{outline:[se,me]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:x()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[se,me]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ge,pn]}],"shadow-color":[{shadow:[Le]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",ge,_]}],grayscale:[{grayscale:[w]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[m]}],saturate:[{saturate:[M]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",_]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",_]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[W]}],"scale-x":[{"scale-x":[W]}],"scale-y":[{"scale-y":[W]}],rotate:[{rotate:[Fe,_]}],"translate-x":[{"translate-x":[Z]}],"translate-y":[{"translate-y":[Z]}],"skew-x":[{"skew-x":[q]}],"skew-y":[{"skew-y":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_]}],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",_]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"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",_]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[se,me,$e]}],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 vn=Qr(hn);function mt(...e){return vn(zr(e))}const Gt=({className:e,text:t,onClick:r,disabled:n})=>P.jsx("button",{disabled:n,onClick:r,className:mt("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 Vt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Yt=c.createContext&&c.createContext(Vt),yn=["attr","size","title"];function wn(e,t){if(e==null)return{};var r=xn(e,t),n,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xn(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 Ke(){return Ke=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},Ke.apply(this,arguments)}function qt(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 Je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qt(Object(r),!0).forEach(function(n){En(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function En(e,t,r){return t=On(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function On(e){var t=Pn(e,"string");return typeof t=="symbol"?t:t+""}function Pn(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 $t(e){return e&&e.map((t,r)=>c.createElement(t.tag,Je({key:r},t.attr),$t(t.child)))}function Xe(e){return t=>c.createElement(jn,Ke({attr:Je({},e.attr)},t),$t(e.child))}function jn(e){var t=r=>{var{attr:n,size:o,title:l}=e,a=wn(e,yn),s=o||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),c.createElement("svg",Ke({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:u,style:Je(Je({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),l&&c.createElement("title",null,l),e.children)};return Yt!==void 0?c.createElement(Yt.Consumer,null,r=>t(r)):t(Vt)}function Sn(e){return Xe({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 Xe({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 Rn=Object.defineProperty,Tn=(e,t,r)=>t in e?Rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gt=(e,t,r)=>(Tn(e,typeof t!="symbol"?t+"":t,r),r);let _n=class{constructor(){gt(this,"current",this.detect()),gt(this,"handoffState","pending"),gt(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"}},ue=new _n,ce=(e,t)=>{ue.isServer?c.useEffect(e,t):c.useLayoutEffect(e,t)};function Qe(e){let t=c.useRef(e);return ce(()=>{t.current=e},[e]),t}let G=function(e){let t=Qe(e);return c.useCallback((...r)=>t.current(...r),[t])};function Ze(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function et(){let e=[],t={addEventListener(r,n,o,l){return r.addEventListener(n,o,l),t.add(()=>r.removeEventListener(n,o,l))},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 Ze(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let l=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:l})})},group(r){let n=et();return r(n),this.add(()=>n.dispose())},add(r){return 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 kn(){let[e]=c.useState(et);return c.useEffect(()=>()=>e.dispose(),[e]),e}function Cn(){let e=typeof document>"u";return"useSyncExternalStore"in pe?(t=>t.useSyncExternalStore)(pe)(()=>()=>{},()=>!1,()=>!e):!1}function tt(){let e=Cn(),[t,r]=pe.useState(ue.isHandoffComplete);return t&&ue.isHandoffComplete===!1&&r(!1),pe.useEffect(()=>{t!==!0&&r(!0)},[t]),pe.useEffect(()=>ue.handoff(),[]),e?!1:t}var Jt;let _e=(Jt=c.useId)!=null?Jt:function(){let e=tt(),[t,r]=c.useState(e?()=>ue.nextId():null);return ce(()=>{t===null&&r(ue.nextId())},[t]),t!=null?""+t:void 0};function be(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,be),n}function Xt(e){return ue.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let bt=["[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(",");var xe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(xe||{}),Qt=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Qt||{}),Mn=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Mn||{});function Nn(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(bt)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var Zt=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Zt||{});function An(e,t=0){var r;return e===((r=Xt(e))==null?void 0:r.body)?!1:be(t,{0(){return e.matches(bt)},1(){let n=e;for(;n!==null;){if(n.matches(bt))return!0;n=n.parentElement}return!1}})}var Dn=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Dn||{});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 Ee(e){e==null||e.focus({preventScroll:!0})}let Fn=["textarea","input"].join(",");function Ln(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Fn))!=null?r:!1}function In(e,t=r=>r){return e.slice().sort((r,n)=>{let o=t(r),l=t(n);if(o===null||l===null)return 0;let a=o.compareDocumentPosition(l);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function rt(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:o=[]}={}){let l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?r?In(e):e:Nn(e);o.length>0&&a.length>1&&(a=a.filter(R=>!o.includes(R))),n=n??l.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,a.indexOf(n))-1;if(t&4)return Math.max(0,a.indexOf(n))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),w=t&32?{preventScroll:!0}:{},d=0,m=a.length,j;do{if(d>=m||d+m<=0)return 0;let R=u+d;if(t&16)R=(R+m)%m;else{if(R<0)return 3;if(R>=m)return 1}j=a[R],j==null||j.focus(w),d+=s}while(j!==l.activeElement);return t&6&&Ln(j)&&j.select(),2}function er(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function zn(){return/Android/gi.test(window.navigator.userAgent)}function Wn(){return er()||zn()}function nt(e,t,r){let n=Qe(t);c.useEffect(()=>{function o(l){n.current(l)}return document.addEventListener(e,o,r),()=>document.removeEventListener(e,o,r)},[e,r])}function tr(e,t,r){let n=Qe(t);c.useEffect(()=>{function o(l){n.current(l)}return window.addEventListener(e,o,r),()=>window.removeEventListener(e,o,r)},[e,r])}function Bn(e,t,r=!0){let n=c.useRef(!1);c.useEffect(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function o(a,s){if(!n.current||a.defaultPrevented)return;let u=s(a);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let w=function d(m){return typeof m=="function"?d(m()):Array.isArray(m)||m instanceof Set?m:[m]}(e);for(let d of w){if(d===null)continue;let m=d instanceof HTMLElement?d:d.current;if(m!=null&&m.contains(u)||a.composed&&a.composedPath().includes(m))return}return!An(u,Zt.Loose)&&u.tabIndex!==-1&&a.preventDefault(),t(a,u)}let l=c.useRef(null);nt("pointerdown",a=>{var s,u;n.current&&(l.current=((u=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:u[0])||a.target)},!0),nt("mousedown",a=>{var s,u;n.current&&(l.current=((u=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:u[0])||a.target)},!0),nt("click",a=>{Wn()||l.current&&(o(a,()=>l.current),l.current=null)},!0),nt("touchend",a=>o(a,()=>a.target instanceof HTMLElement?a.target:null),!0),tr("blur",a=>o(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ie(...e){return c.useMemo(()=>Xt(...e),[...e])}let rr=Symbol();function Un(e,t=!0){return Object.assign(e,{[rr]:t})}function de(...e){let t=c.useRef(e);c.useEffect(()=>{t.current=e},[e]);let r=G(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[rr]))?void 0:r}function ht(e,t){let r=c.useRef([]),n=G(e);c.useEffect(()=>{let o=[...r.current];for(let[l,a]of t.entries())if(r.current[l]!==a){let s=n(t,o);return r.current=t,s}},[n,...t])}function nr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var vt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(vt||{}),Hn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Hn||{});function ae({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:l=!0,name:a,mergeRefs:s}){s=s??Gn;let u=or(t,e);if(l)return ot(u,r,n,a,s);let w=o??0;if(w&2){let{static:d=!1,...m}=u;if(d)return ot(m,r,n,a,s)}if(w&1){let{unmount:d=!0,...m}=u;return be(d?0:1,{0(){return null},1(){return ot({...m,hidden:!0,style:{display:"none"}},r,n,a,s)}})}return ot(u,r,n,a,s)}function ot(e,t={},r,n,o){let{as:l=r,children:a,refName:s="ref",...u}=yt(e,["unmount","static"]),w=e.ref!==void 0?{[s]:e.ref}:{},d=typeof a=="function"?a(t):a;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let m={};if(t){let j=!1,R=[];for(let[h,b]of Object.entries(t))typeof b=="boolean"&&(j=!0),b===!0&&R.push(h);j&&(m["data-headlessui-state"]=R.join(" "))}if(l===c.Fragment&&Object.keys(ir(u)).length>0){if(!c.isValidElement(d)||Array.isArray(d)&&d.length>1)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(u).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(
|
|
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(`
|
|
32
32
|
`)].join(`
|
|
33
|
-
`));let j=d.props,R=typeof(j==null?void 0:j.className)=="function"?(...b)=>nr(j==null?void 0:j.className(...b),u.className):nr(j==null?void 0:j.className,u.className),h=R?{className:R}:{};return c.cloneElement(d,Object.assign({},or(d.props,ir(yt(u,["ref"]))),m,w,{ref:o(d.ref,w.ref)},h))}return c.createElement(l,Object.assign({},yt(u,["ref"]),l!==c.Fragment&&w,l!==c.Fragment&&m),d)}function Gn(...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 or(...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"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](o,...l){let a=r[n];for(let s of a){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...l)}}});return t}function le(e){var t;return Object.assign(c.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ir(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function yt(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Vn="div";var it=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(it||{});function Yn(e,t){var r;let{features:n=1,...o}=e,l={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:l,theirProps:o,slot:{},defaultTag:Vn,name:"Hidden"})}let wt=le(Yn),ar=c.createContext(null);ar.displayName="OpenClosedContext";var ze=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ze||{});function qn(){return c.useContext(ar)}function $n(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let he=[];$n(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&he[0]!==t.target&&(he.unshift(t.target),he=he.filter(r=>r!=null&&r.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 Kn(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&Jn(r)?!1:n}function Jn(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}var lr=(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))(lr||{});function sr(e,t,r,n){let o=Qe(r);c.useEffect(()=>{e=e??window;function l(a){o.current(a)}return e.addEventListener(t,l,n),()=>e.removeEventListener(t,l,n)},[e,t,n])}function ur(){let e=c.useRef(!1);return ce(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function cr(e){let t=G(e),r=c.useRef(!1);c.useEffect(()=>(r.current=!1,()=>{r.current=!0,Ze(()=>{r.current&&t()})}),[t])}var We=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(We||{});function Xn(){let e=c.useRef(0);return tr("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function dr(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 Qn="div";var fr=(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.All=30]="All",e))(fr||{});function Zn(e,t){let r=c.useRef(null),n=de(r,t),{initialFocus:o,containers:l,features:a=30,...s}=e;tt()||(a=1);let u=Ie(r);ro({ownerDocument:u},!!(a&16));let w=no({ownerDocument:u,container:r,initialFocus:o},!!(a&2));oo({ownerDocument:u,container:r,containers:l,previousActiveElement:w},!!(a&8));let d=Xn(),m=G(b=>{let E=r.current;E&&(O=>O())(()=>{be(d.current,{[We.Forwards]:()=>{rt(E,xe.First,{skipElements:[b.relatedTarget]})},[We.Backwards]:()=>{rt(E,xe.Last,{skipElements:[b.relatedTarget]})}})})}),j=kn(),R=c.useRef(!1),h={ref:n,onKeyDown(b){b.key=="Tab"&&(R.current=!0,j.requestAnimationFrame(()=>{R.current=!1}))},onBlur(b){let E=dr(l);r.current instanceof HTMLElement&&E.add(r.current);let O=b.relatedTarget;O instanceof HTMLElement&&O.dataset.headlessuiFocusGuard!=="true"&&(pr(E,O)||(R.current?rt(r.current,be(d.current,{[We.Forwards]:()=>xe.Next,[We.Backwards]:()=>xe.Previous})|xe.WrapAround,{relativeTo:b.target}):b.target instanceof HTMLElement&&Ee(b.target)))}};return c.createElement(c.Fragment,null,!!(a&4)&&c.createElement(wt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:it.Focusable}),ae({ourProps:h,theirProps:s,defaultTag:Qn,name:"FocusTrap"}),!!(a&4)&&c.createElement(wt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:it.Focusable}))}let eo=le(Zn),Be=Object.assign(eo,{features:fr});function to(e=!0){let t=c.useRef(he.slice());return ht(([r],[n])=>{n===!0&&r===!1&&Ze(()=>{t.current.splice(0)}),n===!1&&r===!0&&(t.current=he.slice())},[e,he,t]),G(()=>{var r;return(r=t.current.find(n=>n!=null&&n.isConnected))!=null?r:null})}function ro({ownerDocument:e},t){let r=to(t);ht(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Ee(r())},[t]),cr(()=>{t&&Ee(r())})}function no({ownerDocument:e,container:t,initialFocus:r},n){let o=c.useRef(null),l=ur();return ht(()=>{if(!n)return;let a=t.current;a&&Ze(()=>{if(!l.current)return;let s=e==null?void 0:e.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===s){o.current=s;return}}else if(a.contains(s)){o.current=s;return}r!=null&&r.current?Ee(r.current):rt(a,xe.First)===Qt.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[n]),o}function oo({ownerDocument:e,container:t,containers:r,previousActiveElement:n},o){let l=ur();sr(e==null?void 0:e.defaultView,"focus",a=>{if(!o||!l.current)return;let s=dr(r);t.current instanceof HTMLElement&&s.add(t.current);let u=n.current;if(!u)return;let w=a.target;w&&w instanceof HTMLElement?pr(s,w)?(n.current=w,Ee(w)):(a.preventDefault(),a.stopPropagation(),Ee(u)):Ee(n.current)},!0)}function pr(e,t){for(let r of e)if(r.contains(t))return!0;return!1}let mr=c.createContext(!1);function io(){return c.useContext(mr)}function xt(e){return c.createElement(mr.Provider,{value:e.force},e.children)}function ao(e){let t=io(),r=c.useContext(gr),n=Ie(e),[o,l]=c.useState(()=>{if(!t&&r!==null||ue.isServer)return null;let a=n==null?void 0:n.getElementById("headlessui-portal-root");if(a)return a;if(n===null)return null;let s=n.createElement("div");return s.setAttribute("id","headlessui-portal-root"),n.body.appendChild(s)});return c.useEffect(()=>{o!==null&&(n!=null&&n.body.contains(o)||n==null||n.body.appendChild(o))},[o,n]),c.useEffect(()=>{t||r!==null&&l(r.current)},[r,l,t]),o}let lo=c.Fragment;function so(e,t){let r=e,n=c.useRef(null),o=de(Un(d=>{n.current=d}),t),l=Ie(n),a=ao(n),[s]=c.useState(()=>{var d;return ue.isServer?null:(d=l==null?void 0:l.createElement("div"))!=null?d:null}),u=c.useContext(Et),w=tt();return ce(()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))},[a,s]),ce(()=>{if(s&&u)return u.register(s)},[u,s]),cr(()=>{var d;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&((d=a.parentElement)==null||d.removeChild(a)))}),w?!a||!s?null:Dr.createPortal(ae({ourProps:{ref:o},theirProps:r,defaultTag:lo,name:"Portal"}),s):null}let uo=c.Fragment,gr=c.createContext(null);function co(e,t){let{target:r,...n}=e,o={ref:de(t)};return c.createElement(gr.Provider,{value:r},ae({ourProps:o,theirProps:n,defaultTag:uo,name:"Popover.Group"}))}let Et=c.createContext(null);function fo(){let e=c.useContext(Et),t=c.useRef([]),r=G(l=>(t.current.push(l),e&&e.register(l),()=>n(l))),n=G(l=>{let a=t.current.indexOf(l);a!==-1&&t.current.splice(a,1),e&&e.unregister(l)}),o=c.useMemo(()=>({register:r,unregister:n,portals:t}),[r,n,t]);return[t,c.useMemo(()=>function({children:l}){return c.createElement(Et.Provider,{value:o},l)},[o])]}let po=le(so),mo=le(co),Ot=Object.assign(po,{Group:mo});function go(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const bo=typeof Object.is=="function"?Object.is:go,{useState:ho,useEffect:vo,useLayoutEffect:yo,useDebugValue:wo}=pe;function xo(e,t,r){const n=t(),[{inst:o},l]=ho({inst:{value:n,getSnapshot:t}});return yo(()=>{o.value=n,o.getSnapshot=t,Pt(o)&&l({inst:o})},[e,n,t]),vo(()=>(Pt(o)&&l({inst:o}),e(()=>{Pt(o)&&l({inst:o})})),[e]),wo(n),n}function Pt(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!bo(r,n)}catch{return!0}}function Eo(e,t,r){return t()}const Oo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Po=!Oo,jo=Po?Eo:xo,So="useSyncExternalStore"in pe?(e=>e.useSyncExternalStore)(pe):jo;function Ro(e){return So(e.subscribe,e.getSnapshot,e.getSnapshot)}function To(e,t){let r=e(),n=new Set;return{getSnapshot(){return r},subscribe(o){return n.add(o),()=>n.delete(o)},dispatch(o,...l){let a=t[o].call(r,...l);a&&(r=a,n.forEach(s=>s()))}}}function _o(){let e;return{before({doc:t}){var r;let n=t.documentElement;e=((r=t.defaultView)!=null?r:window).innerWidth-n.clientWidth},after({doc:t,d:r}){let n=t.documentElement,o=n.clientWidth-n.offsetWidth,l=e-o;r.style(n,"paddingRight",`${l}px`)}}}function ko(){return er()?{before({doc:e,d:t,meta:r}){function n(o){return r.containers.flatMap(l=>l()).some(l=>l.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=et();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let l=(o=window.scrollY)!=null?o:window.pageYOffset,a=null;t.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let u=s.target.closest("a");if(!u)return;let{hash:w}=new URL(u.href),d=e.querySelector(w);d&&!n(d)&&(a=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(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;l!==u&&window.scrollTo(0,l),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function Co(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Mo(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let Oe=To(()=>new Map,{PUSH(e,t){var r;let n=(r=this.get(e))!=null?r:{doc:e,count:0,d:et(),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:Mo(r)},o=[ko(),_o(),Co()];o.forEach(({before:l})=>l==null?void 0:l(n)),o.forEach(({after:l})=>l==null?void 0:l(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Oe.subscribe(()=>{let e=Oe.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)&&Oe.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),r.count===0&&Oe.dispatch("TEARDOWN",r)}});function No(e,t,r){let n=Ro(Oe),o=e?n.get(e):void 0,l=o?o.count>0:!1;return ce(()=>{if(!(!e||!t))return Oe.dispatch("PUSH",e,r),()=>Oe.dispatch("POP",e,r)},[t,e]),l}let jt=new Map,Ue=new Map;function br(e,t=!0){ce(()=>{var r;if(!t)return;let n=typeof e=="function"?e():e.current;if(!n)return;function o(){var a;if(!n)return;let s=(a=Ue.get(n))!=null?a:1;if(s===1?Ue.delete(n):Ue.set(n,s-1),s!==1)return;let u=jt.get(n);u&&(u["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",u["aria-hidden"]),n.inert=u.inert,jt.delete(n))}let l=(r=Ue.get(n))!=null?r:0;return Ue.set(n,l+1),l!==0||(jt.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0),o},[e,t])}function Ao({defaultContainers:e=[],portals:t,mainTreeNodeRef:r}={}){var n;let o=c.useRef((n=r==null?void 0:r.current)!=null?n:null),l=Ie(o),a=G(()=>{var s,u,w;let d=[];for(let m of e)m!==null&&(m instanceof HTMLElement?d.push(m):"current"in m&&m.current instanceof HTMLElement&&d.push(m.current));if(t!=null&&t.current)for(let m of t.current)d.push(m);for(let m of(s=l==null?void 0:l.querySelectorAll("html > *, body > *"))!=null?s:[])m!==document.body&&m!==document.head&&m instanceof HTMLElement&&m.id!=="headlessui-portal-root"&&(m.contains(o.current)||m.contains((w=(u=o.current)==null?void 0:u.getRootNode())==null?void 0:w.host)||d.some(j=>m.contains(j))||d.push(m));return d});return{resolveContainers:a,contains:G(s=>a().some(u=>u.contains(s))),mainTreeNodeRef:o,MainTreeNode:c.useMemo(()=>function(){return r!=null?null:c.createElement(wt,{features:it.Hidden,ref:o})},[o,r])}}let St=c.createContext(()=>{});St.displayName="StackContext";var Rt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Rt||{});function Do(){return c.useContext(St)}function Fo({children:e,onUpdate:t,type:r,element:n,enabled:o}){let l=Do(),a=G((...s)=>{t==null||t(...s),l(...s)});return ce(()=>{let s=o===void 0||o===!0;return s&&a(0,r,n),()=>{s&&a(1,r,n)}},[a,r,n,o]),c.createElement(St.Provider,{value:a},e)}let hr=c.createContext(null);function vr(){let e=c.useContext(hr);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,vr),t}return e}function Lo(){let[e,t]=c.useState([]);return[e.length>0?e.join(" "):void 0,c.useMemo(()=>function(r){let n=G(l=>(t(a=>[...a,l]),()=>t(a=>{let s=a.slice(),u=s.indexOf(l);return u!==-1&&s.splice(u,1),s}))),o=c.useMemo(()=>({register:n,slot:r.slot,name:r.name,props:r.props}),[n,r.slot,r.name,r.props]);return c.createElement(hr.Provider,{value:o},r.children)},[t])]}let Io="p";function zo(e,t){let r=_e(),{id:n=`headlessui-description-${r}`,...o}=e,l=vr(),a=de(t);ce(()=>l.register(n),[n,l.register]);let s={ref:a,...l.props,id:n};return ae({ourProps:s,theirProps:o,slot:l.slot||{},defaultTag:Io,name:l.name||"Description"})}let Wo=le(zo),Bo=Object.assign(Wo,{});var Uo=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Uo||{}),Ho=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ho||{});let Go={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},at=c.createContext(null);at.displayName="DialogContext";function He(e){let t=c.useContext(at);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,He),r}return t}function Vo(e,t,r=()=>[document.body]){No(e,t,n=>{var o;return{containers:[...(o=n.containers)!=null?o:[],r]}})}function Yo(e,t){return be(t.type,Go,e,t)}let qo="div",$o=vt.RenderStrategy|vt.Static;function Ko(e,t){let r=_e(),{id:n=`headlessui-dialog-${r}`,open:o,onClose:l,initialFocus:a,role:s="dialog",__demoMode:u=!1,...w}=e,[d,m]=c.useState(0),j=c.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(j.current||(j.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let R=qn();o===void 0&&R!==null&&(o=(R&ze.Open)===ze.Open);let h=c.useRef(null),b=de(h,t),E=Ie(h),O=e.hasOwnProperty("open")||R!==null,S=e.hasOwnProperty("onClose");if(!O&&!S)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!O)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!S)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(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 l!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${l}`);let M=o?0:1,[W,V]=c.useReducer(Yo,{titleId:null,descriptionId:null,panelRef:c.createRef()}),q=G(()=>l(!1)),ie=G(z=>V({type:0,id:z})),Z=tt()?u?!1:M===0:!1,Y=d>1,te=c.useContext(at)!==null,[g,p]=fo(),x={get current(){var z;return(z=W.panelRef.current)!=null?z:h.current}},{resolveContainers:v,mainTreeNodeRef:k,MainTreeNode:D}=Ao({portals:g,defaultContainers:[x]}),B=Y?"parent":"leaf",$=R!==null?(R&ze.Closing)===ze.Closing:!1,I=te||$?!1:Z,fe=c.useCallback(()=>{var z,ne;return(ne=Array.from((z=E==null?void 0:E.querySelectorAll("body > *"))!=null?z:[]).find(J=>J.id==="headlessui-portal-root"?!1:J.contains(k.current)&&J instanceof HTMLElement))!=null?ne:null},[k]);br(fe,I);let ee=Y?!0:Z,re=c.useCallback(()=>{var z,ne;return(ne=Array.from((z=E==null?void 0:E.querySelectorAll("[data-headlessui-portal]"))!=null?z:[]).find(J=>J.contains(k.current)&&J instanceof HTMLElement))!=null?ne:null},[k]);br(re,ee),Bn(v,z=>{z.preventDefault(),q()},!(!Z||Y));let Ve=!(Y||M!==0);sr(E==null?void 0:E.defaultView,"keydown",z=>{Ve&&(z.defaultPrevented||z.key===lr.Escape&&(z.preventDefault(),z.stopPropagation(),q()))}),Vo(E,!($||M!==0||te),v),c.useEffect(()=>{if(M!==0||!h.current)return;let z=new ResizeObserver(ne=>{for(let J of ne){let Ce=J.target.getBoundingClientRect();Ce.x===0&&Ce.y===0&&Ce.width===0&&Ce.height===0&&q()}});return z.observe(h.current),()=>z.disconnect()},[M,h,q]);let[Pe,je]=Lo(),Se=c.useMemo(()=>[{dialogState:M,close:q,setTitleId:ie},W],[M,W,q,ie]),ye=c.useMemo(()=>({open:M===0}),[M]),ke={ref:b,id:n,role:s,"aria-modal":M===0?!0:void 0,"aria-labelledby":W.titleId,"aria-describedby":Pe};return c.createElement(Fo,{type:"Dialog",enabled:M===0,element:h,onUpdate:G((z,ne)=>{ne==="Dialog"&&be(z,{[Rt.Add]:()=>m(J=>J+1),[Rt.Remove]:()=>m(J=>J-1)})})},c.createElement(xt,{force:!0},c.createElement(Ot,null,c.createElement(at.Provider,{value:Se},c.createElement(Ot.Group,{target:h},c.createElement(xt,{force:!1},c.createElement(je,{slot:ye,name:"Dialog.Description"},c.createElement(Be,{initialFocus:a,containers:v,features:Z?be(B,{parent:Be.features.RestoreFocus,leaf:Be.features.All&~Be.features.FocusLock}):Be.features.None},c.createElement(p,null,ae({ourProps:ke,theirProps:w,slot:ye,defaultTag:qo,features:$o,visible:M===0,name:"Dialog"}))))))))),c.createElement(D,null))}let Jo="div";function Xo(e,t){let r=_e(),{id:n=`headlessui-dialog-overlay-${r}`,...o}=e,[{dialogState:l,close:a}]=He("Dialog.Overlay"),s=de(t),u=G(d=>{if(d.target===d.currentTarget){if(Kn(d.currentTarget))return d.preventDefault();d.preventDefault(),d.stopPropagation(),a()}}),w=c.useMemo(()=>({open:l===0}),[l]);return ae({ourProps:{ref:s,id:n,"aria-hidden":!0,onClick:u},theirProps:o,slot:w,defaultTag:Jo,name:"Dialog.Overlay"})}let Qo="div";function Zo(e,t){let r=_e(),{id:n=`headlessui-dialog-backdrop-${r}`,...o}=e,[{dialogState:l},a]=He("Dialog.Backdrop"),s=de(t);c.useEffect(()=>{if(a.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[a.panelRef]);let u=c.useMemo(()=>({open:l===0}),[l]);return c.createElement(xt,{force:!0},c.createElement(Ot,null,ae({ourProps:{ref:s,id:n,"aria-hidden":!0},theirProps:o,slot:u,defaultTag:Qo,name:"Dialog.Backdrop"})))}let ei="div";function ti(e,t){let r=_e(),{id:n=`headlessui-dialog-panel-${r}`,...o}=e,[{dialogState:l},a]=He("Dialog.Panel"),s=de(t,a.panelRef),u=c.useMemo(()=>({open:l===0}),[l]),w=G(d=>{d.stopPropagation()});return ae({ourProps:{ref:s,id:n,onClick:w},theirProps:o,slot:u,defaultTag:ei,name:"Dialog.Panel"})}let ri="h2";function ni(e,t){let r=_e(),{id:n=`headlessui-dialog-title-${r}`,...o}=e,[{dialogState:l,setTitleId:a}]=He("Dialog.Title"),s=de(t);c.useEffect(()=>(a(n),()=>a(null)),[n,a]);let u=c.useMemo(()=>({open:l===0}),[l]);return ae({ourProps:{ref:s,id:n},theirProps:o,slot:u,defaultTag:ri,name:"Dialog.Title"})}let oi=le(Ko),ii=le(Zo),ai=le(ti),li=le(Xo),si=le(ni),ve=Object.assign(oi,{Backdrop:ii,Panel:ai,Overlay:li,Title:si,Description:Bo});const ui=({checked:e,label:t,onChange:r,termImageUrl:n})=>{const[o,l]=c.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(ci,{isOpen:o,setIsOpen:l,termImageUrl:n}),P.jsxs("div",{className:"inline-flex items-center",children:[P.jsxs("label",{className:"relative flex cursor-pointer items-center rounded-full p-3",htmlFor:"check",children:[P.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:a=>{r(a.target.checked)}}),P.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:P.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:P.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&&P.jsxs("div",{className:"flex items-center",children:[P.jsx("label",{className:"cursor-pointer font-medium",htmlFor:t,children:t}),P.jsx(Sn,{onClick:()=>{l(!0)},className:"ml-2 mt-[2.5px] cursor-pointer text-deepGray",size:24})]})]})]})},ci=({isOpen:e,setIsOpen:t,termImageUrl:r})=>P.jsxs(ve,{open:e,onClose:()=>t(!1),className:"relative z-50",children:[P.jsx("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),P.jsx("div",{className:"fixed inset-0 w-screen overflow-y-auto",children:P.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:P.jsxs(ve.Panel,{className:"mx-auto flex max-w-sm flex-col items-center gap-8 rounded bg-white",children:[P.jsx("div",{className:"flex h-[36px] w-full flex-row-reverse items-center bg-[#F0F1F2]",children:P.jsx(Kt,{size:20,className:"mr-2",onClick:()=>t(!1)})}),P.jsx("img",{src:r,alt:"약관동의 이미지"}),P.jsx(Gt,{text:"닫기",className:"mb-4 w-[90%] text-base focus:outline-none",onClick:()=>t(!1)})]})})})]});var yr={},wr={},lt={};(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 l=0<arguments.length&&arguments[0]!==void 0?arguments[0]:t;return o||(o=new Promise(function(a,s){var u=document.createElement("script");u.src=l,u.onload=function(){var w,d;return(w=window)!==null&&w!==void 0&&(d=w.daum)!==null&&d!==void 0&&d.Postcode?a(window.daum.Postcode):void s(new Error("Script is loaded successfully, but cannot find Postcode module. Check your scriptURL property."))},u.onerror=function(w){return s(w)},u.id="daum_postcode_script",document.body.appendChild(u)}),o)}}(),n=r;e.default=n})(lt),function(e){function t(g){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},t(g)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(c),n=a(lt),o=["scriptUrl","className","style","defaultQuery","autoClose","errorMessage","onComplete","onClose","onResize","onSearch"];function l(g){if(typeof WeakMap!="function")return null;var p=new WeakMap,x=new WeakMap;return(l=function(v){return v?x:p})(g)}function a(g,p){if(g&&g.__esModule)return g;if(g===null||t(g)!=="object"&&typeof g!="function")return{default:g};var x=l(p);if(x&&x.has(g))return x.get(g);var v={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in g)if(D!="default"&&Object.prototype.hasOwnProperty.call(g,D)){var B=k?Object.getOwnPropertyDescriptor(g,D):null;B&&(B.get||B.set)?Object.defineProperty(v,D,B):v[D]=g[D]}return v.default=g,x&&x.set(g,v),v}function s(g,p){var x=Object.keys(g);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(g);p&&(v=v.filter(function(k){return Object.getOwnPropertyDescriptor(g,k).enumerable})),x.push.apply(x,v)}return x}function u(g){for(var p,x=1;x<arguments.length;x++)p=arguments[x]==null?{}:arguments[x],x%2?s(Object(p),!0).forEach(function(v){V(g,v,p[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(p)):s(Object(p)).forEach(function(v){Object.defineProperty(g,v,Object.getOwnPropertyDescriptor(p,v))});return g}function w(g,p){if(g==null)return{};var x,v,k=d(g,p);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(g);for(v=0;v<D.length;v++)x=D[v],0<=p.indexOf(x)||Object.prototype.propertyIsEnumerable.call(g,x)&&(k[x]=g[x])}return k}function d(g,p){if(g==null)return{};var x,v,k={},D=Object.keys(g);for(v=0;v<D.length;v++)x=D[v],0<=p.indexOf(x)||(k[x]=g[x]);return k}function m(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function j(g,p){for(var x,v=0;v<p.length;v++)x=p[v],x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}function R(g,p,x){return p&&j(g.prototype,p),g}function h(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),p&&b(g,p)}function b(g,p){return b=Object.setPrototypeOf||function(x,v){return x.__proto__=v,x},b(g,p)}function E(g){var p=M();return function(){var x,v=W(g);if(p){var k=W(this).constructor;x=Reflect.construct(v,arguments,k)}else x=v.apply(this,arguments);return O(this,x)}}function O(g,p){return p&&(t(p)==="object"||typeof p=="function")?p:S(g)}function S(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function M(){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 W(g){return W=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},W(g)}function V(g,p,x){return p in g?Object.defineProperty(g,p,{value:x,enumerable:!0,configurable:!0,writable:!0}):g[p]=x,g}var q=r.default.createElement("p",null,"현재 Daum 우편번호 서비스를 이용할 수 없습니다. 잠시 후 다시 시도해주세요."),ie={width:"100%",height:400},Z={scriptUrl:n.postcodeScriptUrl,errorMessage:q,autoClose:!0},Y=function(g){function p(){var v;m(this,p);for(var k=arguments.length,D=Array(k),B=0;B<k;B++)D[B]=arguments[B];return v=x.call.apply(x,[this].concat(D)),V(S(v),"mounted",!1),V(S(v),"wrap",(0,r.createRef)()),V(S(v),"state",{hasError:!1}),V(S(v),"initiate",function($){if(v.wrap.current){var I=v.props;I.scriptUrl,I.className,I.style;var fe=I.defaultQuery,ee=I.autoClose;I.errorMessage;var re=I.onComplete,Ge=I.onClose,Ve=I.onResize,st=I.onSearch,Pe=w(I,o),je=new $(u(u({},Pe),{},{oncomplete:function(ye){re&&re(ye),ee&&v.wrap.current&&v.wrap.current.remove()},onsearch:st,onresize:Ve,onclose:Ge,width:"100%",height:"100%"}));je.embed(v.wrap.current,{q:fe,autoClose:ee})}}),V(S(v),"onError",function($){console.error($),v.setState({hasError:!0})}),v}h(p,g);var x=E(p);return R(p,[{key:"componentDidMount",value:function(){var k=this.initiate,D=this.onError,B=this.props.scriptUrl;B&&(this.mounted||((0,n.default)(B).then(k).catch(D),this.mounted=!0))}},{key:"render",value:function(){var k=this.props,D=k.className,B=k.style,$=k.errorMessage,I=this.state.hasError;return r.default.createElement("div",{ref:this.wrap,className:D,style:u(u({},ie),B)},I&&$)}}]),p}(r.Component);V(Y,"defaultProps",Z);var te=Y;e.default=te}(wr);var xr={};(function(e){function t(h){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},t(h)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c,n=a(lt),o=["defaultQuery","left","top","popupKey","popupTitle","autoClose","onComplete","onResize","onClose","onSearch","onError"];function l(h){if(typeof WeakMap!="function")return null;var b=new WeakMap,E=new WeakMap;return(l=function(O){return O?E:b})(h)}function a(h,b){if(h&&h.__esModule)return h;if(h===null||t(h)!=="object"&&typeof h!="function")return{default:h};var E=l(b);if(E&&E.has(h))return E.get(h);var O={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in h)if(M!="default"&&Object.prototype.hasOwnProperty.call(h,M)){var W=S?Object.getOwnPropertyDescriptor(h,M):null;W&&(W.get||W.set)?Object.defineProperty(O,M,W):O[M]=h[M]}return O.default=h,E&&E.set(h,O),O}function s(h,b){var E=Object.keys(h);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(h);b&&(O=O.filter(function(S){return Object.getOwnPropertyDescriptor(h,S).enumerable})),E.push.apply(E,O)}return E}function u(h){for(var b,E=1;E<arguments.length;E++)b=arguments[E]==null?{}:arguments[E],E%2?s(Object(b),!0).forEach(function(O){w(h,O,b[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(b)):s(Object(b)).forEach(function(O){Object.defineProperty(h,O,Object.getOwnPropertyDescriptor(b,O))});return h}function w(h,b,E){return b in h?Object.defineProperty(h,b,{value:E,enumerable:!0,configurable:!0,writable:!0}):h[b]=E,h}function d(h,b){if(h==null)return{};var E,O,S=m(h,b);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(h);for(O=0;O<M.length;O++)E=M[O],0<=b.indexOf(E)||Object.prototype.propertyIsEnumerable.call(h,E)&&(S[E]=h[E])}return S}function m(h,b){if(h==null)return{};var E,O,S={},M=Object.keys(h);for(O=0;O<M.length;O++)E=M[O],0<=b.indexOf(E)||(S[E]=h[E]);return S}function j(){var h=0<arguments.length&&arguments[0]!==void 0?arguments[0]:n.postcodeScriptUrl;(0,r.useEffect)(function(){(0,n.default)(h)},[h]);var b=(0,r.useCallback)(function(E){var O=u({},E),S=O.defaultQuery,M=O.left,W=O.top,V=O.popupKey,q=O.popupTitle,ie=O.autoClose,Z=O.onComplete,Y=O.onResize,te=O.onClose,g=O.onSearch,p=O.onError,x=d(O,o);return(0,n.default)(h).then(function(v){var k=new v(u(u({},x),{},{oncomplete:Z,onsearch:g,onresize:Y,onclose:te}));k.open({q:S,left:M,top:W,popupTitle:q,popupKey:V,autoClose:ie})}).catch(p)},[h]);return b}var R=j;e.default=R})(xr),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(wr),r=o(xr),n=o(lt);function o(a){return a&&a.__esModule?a:{default:a}}var l=t.default;e.default=l}(yr);const di=({label:e,value:t,onFrontChange:r,onBackChange:n,onPostalCodeChange:o,disabled:l})=>{const[a,s]=c.useState(!1),u=m=>{let j=m.address,R="";m.addressType==="R"&&(m.bname!==""&&(R+=m.bname),m.buildingName!==""&&(R+=R!==""?`, ${m.buildingName}`:m.buildingName),j+=R!==""?` (${R})`:""),r(j),o&&o(m.zonecode),s(!1)},w=()=>{s(!0)},d=()=>t.front?t.front:P.jsx("p",{className:"text-[#C5C8CD]",children:"주소를 입력해주세요."});return P.jsxs(P.Fragment,{children:[P.jsx(fi,{isOpen:a,setIsOpen:s,handleComplete:u}),P.jsxs("div",{className:"text-deepGray",children:[P.jsx("label",{htmlFor:e,className:"text-sm font-bold text-lightBlack",children:e}),P.jsxs("div",{className:"relative flex flex-col",children:[P.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 ${l&&"opacity-50"}`,onClick:w,children:d()}),P.jsx("input",{disabled:!t.front||l,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:m=>n(m.target.value)})]})]})]})},fi=e=>{const{isOpen:t,setIsOpen:r,handleComplete:n}=e;return P.jsxs(ve,{open:t,onClose:()=>r(!1),className:"relateive z-50",children:[P.jsx("div",{className:"fixed inset-0 bg-black/40","aria-hidden":"true"}),P.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center",children:P.jsx(ve.Panel,{children:P.jsxs("div",{children:[P.jsx("div",{className:"flex h-[36px] w-[90vw] flex-row-reverse items-center bg-[#F0F1F2]",children:P.jsx(Kt,{size:20,className:"mr-2",onClick:()=>r(!1)})}),P.jsx(yr.DaumPostcodeEmbed,{onComplete:n,style:{width:"90vw",height:"65vh",minHeight:"450px",borderRadius:"100px"}})]})})})]})},pi=e=>{const{isOpen:t,setIsOpen:r}=e;return P.jsxs(ve,{open:t,onClose:()=>r(!1),className:"relative z-50",children:[P.jsx("div",{className:"fixed inset-0 bg-black/40","aria-hidden":"true"}),P.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:P.jsxs(ve.Panel,{className:"flex w-[260px] flex-col gap-[16px] rounded-[16px] bg-white p-[20px]",children:[P.jsxs("div",{className:"flex flex-col gap-[8px]",children:[e.title&&P.jsx(ve.Title,{className:"whitespace-pre-wrap text-[18px] font-bold leading-[26px] text-[#2C2F34]",children:e.title}),e.image&&P.jsx("img",{src:e.image.url,alt:e.image.alt}),e.description&&e.description!==""&&P.jsx(ve.Description,{className:"break-all text-[16px] leading-[24px] text-[#585E67]",children:e.description})]}),P.jsxs("div",{className:"flex flex-col gap-[4px]",children:[P.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&&P.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 mi(e){return Xe({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 gi(e){return Xe({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 bi=({title:e,description:t,titleTextClassName:r,descriptionTextClassName:n})=>{const[o,l]=c.useState(!1);return P.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:()=>l(a=>!a),children:[P.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:[P.jsxs("p",{className:mt("mr-4 text-lg font-medium md:text-xl",r),children:[P.jsx("span",{className:"font-semibold",children:"Q."})," ",e]}),o?P.jsx(gi,{className:"min-w-6 text-petnowOrange",size:24}):P.jsx(mi,{className:"min-w-6 text-petnowOrange",size:24})]}),P.jsx("p",{className:mt(`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})]})},hi=({tabList:e,onTabChange:t})=>{const[r,n]=c.useState(e[0]);return P.jsx("div",{className:"flex flex-row text-2xl font-bold",children:e.map(o=>P.jsxs("div",{className:"flex flex-1 flex-col",children:[P.jsx("button",{className:`py-5 hover:text-lightBlack ${o===r?"text-lightBlack":"text-[#8B919A]"}`,onClick:()=>{n(o),t(o)},children:o.displayName}),P.jsx("div",{className:`h-[2px] w-full transition-colors duration-200 ${o===r?"bg-petnowOrange":"bg-lightGray"}`})]},o.key))})};Q.AccordionCard=bi,Q.Checkbox=ui,Q.CtaButton=Gt,Q.LabeledAddressInput=di,Q.Modal=pi,Q.Tabs=hi,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})});
|
|
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"})});
|
|
34
34
|
//# sourceMappingURL=index.umd.js.map
|