(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Sb="modulepreload",wb=function(s){return"/"+s},Mh={},Eb=function(r,o,u){let f=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),x=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=m(o.map(p=>{if(p=wb(p),p in Mh)return;Mh[p]=!0;const y=p.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const j=document.createElement("link");if(j.rel=y?"stylesheet":Sb,y||(j.as="script"),j.crossOrigin="",j.href=p,x&&j.setAttribute("nonce",x),document.head.appendChild(j),y)return new Promise((w,N)=>{j.addEventListener("load",w),j.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return f.then(m=>{for(const g of m||[])g.status==="rejected"&&d(g.reason);return r().catch(d)})};var $o={exports:{}},Os={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Oh;function zb(){if(Oh)return Os;Oh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(u,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:s,type:u,key:m,ref:f!==void 0?f:null,props:d}}return Os.Fragment=r,Os.jsx=o,Os.jsxs=o,Os}var Dh;function Tb(){return Dh||(Dh=1,$o.exports=zb()),$o.exports}var n=Tb(),Yo={exports:{}},ue={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Rh;function kb(){if(Rh)return ue;Rh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,L={};function H(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}H.prototype.isReactComponent={},H.prototype.setState=function(E,q){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,q,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=H.prototype;function R(E,q,J){this.props=E,this.context=q,this.refs=L,this.updater=J||N}var Z=R.prototype=new G;Z.constructor=R,k(Z,H.prototype),Z.isPureReactComponent=!0;var X=Array.isArray;function V(){}var Y={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,q,J){var F=J.ref;return{$$typeof:s,type:E,key:q,ref:F!==void 0?F:null,props:J}}function xe(E,q){return le(E.type,q,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function K(E){var q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return q[J]})}var he=/\/+/g;function Xe(E,q){return typeof E=="object"&&E!==null&&E.key!=null?K(""+E.key):q.toString(36)}function ie(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(q){E.status==="pending"&&(E.status="fulfilled",E.value=q)},function(q){E.status==="pending"&&(E.status="rejected",E.reason=q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,q,J,F,re){var fe=typeof E;(fe==="undefined"||fe==="boolean")&&(E=null);var oe=!1;if(E===null)oe=!0;else switch(fe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(E.$$typeof){case s:case r:oe=!0;break;case y:return oe=E._init,O(oe(E._payload),q,J,F,re)}}if(oe)return re=re(E),oe=F===""?"."+Xe(E,0):F,X(re)?(J="",oe!=null&&(J=oe.replace(he,"$&/")+"/"),O(re,q,J,"",function(at){return at})):re!=null&&(ce(re)&&(re=xe(re,J+(re.key==null||E&&E.key===re.key?"":(""+re.key).replace(he,"$&/")+"/")+oe)),q.push(re)),1;oe=0;var ze=F===""?".":F+":";if(X(E))for(var Te=0;Te>>1,Ne=O[pe];if(0>>1;pef(J,ae))Ff(re,J)?(O[pe]=re,O[F]=ae,pe=F):(O[pe]=J,O[q]=ae,pe=q);else if(Ff(re,ae))O[pe]=re,O[F]=ae,pe=F;else break e}}return Q}function f(O,Q){var ae=O.sortIndex-Q.sortIndex;return ae!==0?ae:O.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();s.unstable_now=function(){return m.now()-g}}var x=[],p=[],y=1,v=null,j=3,w=!1,N=!1,k=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Z(O){for(var Q=o(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=O)u(p),Q.sortIndex=Q.expirationTime,r(x,Q);else break;Q=o(p)}}function X(O){if(k=!1,Z(O),!N)if(o(x)!==null)N=!0,V||(V=!0,K());else{var Q=o(p);Q!==null&&ie(X,Q.startTime-O)}}var V=!1,Y=-1,W=5,le=-1;function xe(){return L?!0:!(s.unstable_now()-leO&&xe());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,j=v.priorityLevel;var Ne=pe(v.expirationTime<=O);if(O=s.unstable_now(),typeof Ne=="function"){v.callback=Ne,Z(O),Q=!0;break t}v===o(x)&&u(x),Z(O)}else u(x);v=o(x)}if(v!==null)Q=!0;else{var E=o(p);E!==null&&ie(X,E.startTime-O),Q=!1}}break e}finally{v=null,j=ae,w=!1}Q=void 0}}finally{Q?K():V=!1}}}var K;if(typeof R=="function")K=function(){R(ce)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Xe=he.port2;he.port1.onmessage=ce,K=function(){Xe.postMessage(null)}}else K=function(){H(ce,0)};function ie(O,Q){Y=H(function(){O(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(O){O.callback=null},s.unstable_forceFrameRate=function(O){0>O||125pe?(O.sortIndex=ae,r(p,O),o(x)===null&&O===o(p)&&(k?(G(Y),Y=-1):k=!0,ie(X,ae-pe))):(O.sortIndex=Ne,r(x,O),N||w||(N=!0,V||(V=!0,K()))),O},s.unstable_shouldYield=xe,s.unstable_wrapCallback=function(O){var Q=j;return function(){var ae=j;j=Q;try{return O.apply(this,arguments)}finally{j=ae}}}})(Qo)),Qo}var Lh;function Ab(){return Lh||(Lh=1,Xo.exports=_b()),Xo.exports}var Vo={exports:{}},xt={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Bh;function Cb(){if(Bh)return xt;Bh=1;var s=fu();function r(x){var p="https://react.dev/errors/"+x;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Vo.exports=Cb(),Vo.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var $h;function Ob(){if($h)return Ds;$h=1;var s=Ab(),r=fu(),o=Mb();function u(e){var t="https://react.dev/errors/"+e;if(1Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function J(e,t){Ne++,pe[Ne]=e.current,e.current=t}var F=E(null),re=E(null),fe=E(null),oe=E(null);function ze(e,t){switch(J(fe,t),J(re,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?th(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=th(t),e=lh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),J(F,e)}function Te(){q(F),q(re),q(fe)}function at(e){e.memoizedState!==null&&J(oe,e);var t=F.current,l=lh(t,e.type);t!==l&&(J(re,e),J(F,l))}function Oe(e){re.current===e&&(q(F),q(re)),oe.current===e&&(q(oe),_s._currentValue=ae)}var te,Ae;function De(e){if(te===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);te=t&&t[1]||"",Ae=-1)":-1i||S[a]!==A[i]){var U=` `+S[a].replace(" at new "," at ");return e.displayName&&U.includes("")&&(U=U.replace("",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?De(l):""}function It(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return jt(e.type,!1);case 11:return jt(e.type.render,!1);case 1:return jt(e.type,!0);case 31:return De("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=It(e,l),l=e,e=e.return;while(e);return t}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}var Bt=Object.prototype.hasOwnProperty,Pt=s.unstable_scheduleCallback,gl=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Ln=s.unstable_requestPaint,pt=s.unstable_now,Js=s.unstable_getCurrentPriorityLevel,Fs=s.unstable_ImmediatePriority,Bn=s.unstable_UserBlockingPriority,Ba=s.unstable_NormalPriority,qn=s.unstable_LowPriority,bl=s.unstable_IdlePriority,$n=s.log,Yn=s.unstable_setDisableYieldValue,sl=null,gt=null;function il(e){if(typeof $n=="function"&&Yn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(sl,e)}catch{}}var bt=Math.clz32?Math.clz32:Ws,zr=Math.log,Tr=Math.LN2;function Ws(e){return e>>>=0,e===0?32:31-(zr(e)/Tr|0)|0}var qa=256,xa=262144,ga=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?i=rl(a):(h&=b,h!==0?i=rl(h):l||(l=b&~e,l!==0&&(i=rl(l))))):(b=a&~c,b!==0?i=rl(b):h!==0?i=rl(h):l||(l=a&~e,l!==0&&(i=rl(l)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:i}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Is(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ps(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function kr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fx(e,t,l,a,i,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,A=e.hiddenUpdates;for(l=h&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gx=/[\n"\\]/g;function $t(e){return e.replace(gx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Dr(e,t,l,a,i,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Rr(e,h,qt(t)):l!=null?Rr(e,h,qt(l)):a!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+qt(b):e.removeAttribute("name")}function Ku(e,t,l,a,i,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Or(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Or(e)}function Rr(e,t,l){t==="number"&&li(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Za(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qr=!1;if(jl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){qr=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{qr=!1}var Yl=null,$r=null,ni=null;function tf(){if(ni)return ni;var e,t=$r,l=t.length,a,i="value"in Yl?Yl.value:Yl.textContent,c=i.length;for(e=0;e=Fn),cf=" ",of=!1;function uf(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function Zx(e,t){switch(e){case"compositionend":return ff(t);case"keypress":return t.which!==32?null:(of=!0,cf);case"textInput":return e=t.data,e===cf&&of?null:e;default:return null}}function Kx(e,t){if(Wa)return e==="compositionend"||!Vr&&uf(e,t)?(e=tf(),ni=$r=Yl=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=vf(l)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=li(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=li(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lg=jl&&"documentMode"in document&&11>=document.documentMode,Ia=null,Fr=null,es=null,Wr=!1;function Sf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wr||Ia==null||Ia!==li(a)||(a=Ia,"selectionStart"in a&&Jr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),es&&Pn(es,a)||(es=a,a=Wi(Fr,"onSelect"),0>=h,i-=h,cl=1<<32-bt(t)+i|l<me?(ye=ee,ee=null):ye=ee.sibling;var Ee=C(T,ee,_[me],B);if(Ee===null){ee===null&&(ee=ye);break}e&&ee&&Ee.alternate===null&&t(T,ee),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee,ee=ye}if(me===_.length)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;me<_.length;me++)ee=$(T,_[me],B),ee!==null&&(z=c(ee,z,me),we===null?ne=ee:we.sibling=ee,we=ee);return je&&Sl(T,me),ne}for(ee=a(ee);me<_.length;me++)ye=D(ee,T,me,_[me],B),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?me:ye.key),z=c(ye,z,me),we===null?ne=ye:we.sibling=ye,we=ye);return e&&ee.forEach(function(ua){return t(T,ua)}),je&&Sl(T,me),ne}function se(T,z,_,B){if(_==null)throw Error(u(151));for(var ne=null,we=null,ee=z,me=z=0,ye=null,Ee=_.next();ee!==null&&!Ee.done;me++,Ee=_.next()){ee.index>me?(ye=ee,ee=null):ye=ee.sibling;var ua=C(T,ee,Ee.value,B);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(T,ee),z=c(ua,z,me),we===null?ne=ua:we.sibling=ua,we=ua,ee=ye}if(Ee.done)return l(T,ee),je&&Sl(T,me),ne;if(ee===null){for(;!Ee.done;me++,Ee=_.next())Ee=$(T,Ee.value,B),Ee!==null&&(z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return je&&Sl(T,me),ne}for(ee=a(ee);!Ee.done;me++,Ee=_.next())Ee=D(ee,T,me,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?me:Ee.key),z=c(Ee,z,me),we===null?ne=Ee:we.sibling=Ee,we=Ee);return e&&ee.forEach(function(Nb){return t(T,Nb)}),je&&Sl(T,me),ne}function He(T,z,_,B){if(typeof _=="object"&&_!==null&&_.type===k&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case w:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===k){if(z.tag===7){l(T,z.sibling),B=i(z,_.props.children),B.return=T,T=B;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===W&&ka(ne)===z.type){l(T,z.sibling),B=i(z,_.props),is(B,_),B.return=T,T=B;break e}l(T,z);break}else t(T,z);z=z.sibling}_.type===k?(B=Sa(_.props.children,T.mode,B,_.key),B.return=T,T=B):(B=hi(_.type,_.key,_.props,null,T.mode,B),is(B,_),B.return=T,T=B)}return h(T);case N:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(T,z.sibling),B=i(z,_.children||[]),B.return=T,T=B;break e}else{l(T,z);break}else t(T,z);z=z.sibling}B=nc(_,T.mode,B),B.return=T,T=B}return h(T);case W:return _=ka(_),He(T,z,_,B)}if(ie(_))return I(T,z,_,B);if(K(_)){if(ne=K(_),typeof ne!="function")throw Error(u(150));return _=ne.call(_),se(T,z,_,B)}if(typeof _.then=="function")return He(T,z,ji(_),B);if(_.$$typeof===R)return He(T,z,gi(T,_),B);Ni(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(T,z.sibling),B=i(z,_),B.return=T,T=B):(l(T,z),B=ac(_,T.mode,B),B.return=T,T=B),h(T)):l(T,z)}return function(T,z,_,B){try{ss=0;var ne=He(T,z,_,B);return un=null,ne}catch(ee){if(ee===on||ee===vi)throw ee;var we=Mt(29,ee,null,T.mode);return we.lanes=B,we.return=T,we}finally{}}}var Aa=Vf(!0),Zf=Vf(!1),Zl=!1;function xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ke&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=mi(e),Af(e,null,l),t}return di(e,a,t,l),mi(e)}function rs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}function bc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?i=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?i=c=t:c=c.next=t}else i=c=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function cs(){if(vc){var e=cn;if(e!==null)throw e}}function os(e,t,l,a){vc=!1;var i=e.updateQueue;Zl=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var S=b,A=S.next;S.next=null,h===null?c=A:h.next=A,h=S;var U=e.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=A:b.next=A,U.lastBaseUpdate=S))}if(c!==null){var $=i.baseState;h=0,U=A=S=null,b=c;do{var C=b.lane&-536870913,D=C!==b.lane;if(D?(ve&C)===C:(a&C)===C){C!==0&&C===rn&&(vc=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var I=e,se=b;C=t;var He=l;switch(se.tag){case 1:if(I=se.payload,typeof I=="function"){$=I.call(He,$,C);break e}$=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=se.payload,C=typeof I=="function"?I.call(He,$,C):I,C==null)break e;$=v({},$,C);break e;case 2:Zl=!0}}C=b.callback,C!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[C]:D.push(C))}else D={lane:C,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(A=U=D,S=$):U=U.next=D,h|=C;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;D=b,b=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(S=$),i.baseState=S,i.firstBaseUpdate=A,i.lastBaseUpdate=U,c===null&&(i.shared.lanes=0),ea|=h,e.lanes=h,e.memoizedState=$}}function Kf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Jf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ec?c:8;var h=O.T,b={};O.T=b,Lc(e,!1,t,l);try{var S=i(),A=O.S;if(A!==null&&A(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=fg(S,a);ds(e,t,U,Ht(e))}else ds(e,t,a,Ht(e))}catch($){ds(e,t,{then:function(){},status:"rejected",reason:$},Ht())}finally{Q.p=c,h!==null&&b.types!==null&&(h.types=b.types),O.T=h}}function gg(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=Td(e).queue;zd(e,i,t,ae,l===null?gg:function(){return kd(e),l(a)})}function Td(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Td(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},Ht())}function Hc(){return ut(_s)}function _d(){return Je().memoizedState}function Ad(){return Je().memoizedState}function bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Kl(l);var a=Jl(t,e,l);a!==null&&(kt(a,t,l),rs(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function vg(e,t,l){var a=Ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Md(t,l):(l=tc(e,t,l,a),l!==null&&(kt(l,e,a),Od(l,t,a)))}function Cd(e,t,l){var a=Ht();ds(e,t,l,a)}function ds(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Md(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,l);if(i.hasEagerState=!0,i.eagerState=b,Ct(b,h))return di(e,t,i,0),Le===null&&fi(),!1}catch{}finally{}if(l=tc(e,t,i,a),l!==null)return kt(l,e,a),Od(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(u(479))}else t=tc(e,l,a,2),t!==null&&kt(t,e,2)}function Mi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Md(e,t){dn=Ei=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Od(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Hu(e,l)}}var ms={readContext:ut,use:ki,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ms.useEffectEvent=Qe;var Dd={readContext:ut,use:ki,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:gd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,jd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var a=e();if(Ca){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=vt();if(l!==void 0){var i=l(t);if(Ca){il(!0);try{l(t)}finally{il(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=vg.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Cc(e);var t=e.queue,l=Cd.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=vt();return Rc(l,e,t)},useTransition:function(){var e=Cc(!1);return e=zd.bind(null,de,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,i=vt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Le===null)throw Error(u(349));(ve&127)!==0||td(a,t,l)}i.memoizedState=l;var c={value:l,getSnapshot:t};return i.queue=c,gd(ad.bind(null,a,c,e),[e]),a.flags|=2048,hn(9,{destroy:void 0},ld.bind(null,a,c,l,t),null),l},useId:function(){var e=vt(),t=Le.identifierPrefix;if(je){var l=ol,a=cl;l=(a&~(1<<32-bt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zi++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(i,{is:a.is}):h.createElement(i)}}c[ct]=t,c[Nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(dt(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_l(t)}}return qe(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_l(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,nn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=ot,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Pm(e.nodeValue,l)),e||Ql(t,!0)}else e=Ii(e).createTextNode(a),e[ct]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=nn(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ct]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hi(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&jo(t.stateNode.containerInfo),qe(t),null;case 10:return El(t.type),qe(t),null;case 19:if(q(Ke),a=t.memoizedState,a===null)return qe(t),null;if(i=(t.flags&128)!==0,c=a.rendering,c===null)if(i)ps(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ps(a,!1),e=c.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Cf(l,e),l=l.sibling;return J(Ke,Ke.current&1|2),je&&Sl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Yi&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304)}else{if(!i)if(e=wi(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),ps(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!je)return qe(t),null}else 2*pt()-a.renderingStartTime>Yi&&l!==536870912&&(t.flags|=128,i=!0,ps(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Ke.current,J(Ke,i?l&1|2:l&1),je&&Sl(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Dt(t),jc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Hi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&q(Ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),El(We),qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function wg(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return El(We),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Oe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Te(),null;case 10:return El(t.type),null;case 22:case 23:return Dt(t),jc(),e!==null&&q(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return El(We),null;case 25:return null;default:return null}}function nm(e,t){switch(ic(t),t.tag){case 3:El(We),Te();break;case 26:case 27:case 5:Oe(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:q(Ke);break;case 10:El(t.type);break;case 22:case 23:Dt(t),jc(),e!==null&&q(Ta);break;case 24:El(We)}}function xs(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==i)}}catch(b){Me(t,t.return,b)}}function Il(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,i=t;var S=l,A=b;try{A()}catch(U){Me(i,S,U)}}}a=a.next}while(a!==c)}}catch(U){Me(t,t.return,U)}}function sm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Jf(t,l)}catch(a){Me(e,e.return,a)}}}function im(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function gs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function ul(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function rm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Pc(e,t,l){try{var a=e.stateNode;Vg(a,e.type,l,t),a[Nt]=t}catch(i){Me(e,e.return,i)}}function cm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sa(e.type)||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=yl));else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(to(e,t,l),e=e.sibling;e!==null;)to(e,t,l),e=e.sibling}function Li(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&sa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Li(e,t,l),e=e.sibling;e!==null;)Li(e,t,l),e=e.sibling}function om(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,a,l),t[ct]=e,t[Nt]=l}catch(c){Me(e,e.return,c)}}var Al=!1,et=!1,lo=!1,um=typeof WeakSet=="function"?WeakSet:Set,st=null;function Eg(e,t){if(e=e.containerInfo,wo=sr,e=Nf(e),Jr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,b=-1,S=-1,A=0,U=0,$=e,C=null;t:for(;;){for(var D;$!==l||i!==0&&$.nodeType!==3||(b=h+i),$!==c||a!==0&&$.nodeType!==3||(S=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(D=$.firstChild)!==null;)C=$,$=D;for(;;){if($===e)break t;if(C===l&&++A===i&&(b=h),C===c&&++U===a&&(S=h),(D=$.nextSibling)!==null)break;$=C,C=$.parentNode}$=D}l=b===-1||S===-1?null:{start:b,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},sr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),dt(c,a,l),c[ct]=e,nt(c),a=c;break e;case"link":var h=xh("link","href",i).get(a+(l.href||""));if(h){for(var b=0;bHe&&(h=He,He=se,se=h);var T=yf(b,se),z=yf(b,He);if(T&&z&&(D.rangeCount!==1||D.anchorNode!==T.node||D.anchorOffset!==T.offset||D.focusNode!==z.node||D.focusOffset!==z.offset)){var _=$.createRange();_.setStart(T.node,T.offset),D.removeAllRanges(),se>He?(D.addRange(_),D.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),D.addRange(_))}}}}for($=[],D=b;D=D.parentNode;)D.nodeType===1&&$.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++){var B=$[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}sr=!!wo,Eo=wo=null}finally{ke=i,Q.p=a,O.T=l}}e.current=t,lt=2}}function Hm(){if(lt===2){lt=0;var e=la,t=vn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var i=ke;ke|=4;try{fm(e,t.alternate,t)}finally{ke=i,Q.p=a,O.T=l}}lt=3}}function Lm(){if(lt===4||lt===3){lt=0,Ln();var e=la,t=vn,l=Rl,a=wm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,vn=la=null,Bm(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ta=null),Ar(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,i=Q.p,Q.p=2,O.T=null;try{for(var c=e.onRecoverableError,h=0;hl?32:l,O.T=null,l=oo,oo=null;var c=la,h=Rl;if(lt=0,vn=la=null,Rl=0,(ke&6)!==0)throw Error(u(331));var b=ke;if(ke|=4,jm(c.current),bm(c,c.current,h,l),ke=b,Ss(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(sl,c)}catch{}return!0}finally{Q.p=i,O.T=a,Bm(e,t)}}function $m(e,t,l){t=Gt(l,t),t=Yc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Gn(e,2),fl(e))}function Me(e,t,l){if(e.tag===3)$m(e,e,l);else for(;t!==null;){if(t.tag===3){$m(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Gt(l,e),l=Yd(2),a=Jl(t,l,2),a!==null&&(Gd(l,a,t,e),Gn(a,2),fl(a));break}}t=t.return}}function ho(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new kg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(so=!0,i.add(l),e=Og.bind(null,e,t,l),t.then(e,e))}function Og(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(ve&l)===l&&(Ve===4||Ve===3&&(ve&62914560)===ve&&300>pt()-$i?(ke&2)===0&&yn(e,0):io|=l,bn===ve&&(bn=0)),fl(e)}function Ym(e,t){t===0&&(t=Ps()),e=Na(e,t),e!==null&&(Gn(e,t),fl(e))}function Dg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Rg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Ym(e,l)}function Ug(e,t){return Pt(e,t)}var Ki=null,Nn=null,po=!1,Ji=!1,xo=!1,na=0;function fl(e){e!==Nn&&e.next===null&&(Nn===null?Ki=Nn=e:Nn=Nn.next=e),Ji=!0,po||(po=!0,Lg())}function Ss(e,t){if(!xo&&Ji){xo=!0;do for(var l=!1,a=Ki;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var h=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-bt(42|e)+1)-1,c&=i&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Vm(a,c))}else c=ve,c=$a(a,a===Le?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ql(a,c)||(l=!0,Vm(a,c));a=a.next}while(l);xo=!1}}function Hg(){Gm()}function Gm(){Ji=po=!1;var e=0;na!==0&&Kg()&&(e=na);for(var t=pt(),l=null,a=Ki;a!==null;){var i=a.next,c=Xm(a,t);c===0?(a.next=null,l===null?Ki=i:l.next=i,i===null&&(Nn=l)):(l=a,(e!==0||(c&3)!==0)&&(Ji=!0)),a=i}lt!==0&<!==5||Ss(e),na!==0&&(na=0)}function Xm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var U=S.transferSize,$=S.initiatorType;U&&eh($)&&(S=S.responseEnd,h+=U*(S"u"?null:document;function dh(e,t,l){var a=Sn;if(a&&typeof t=="string"&&t){var i=$t(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),fh.has(i)||(fh.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ab(e){Ul.D(e),dh("dns-prefetch",e,null)}function nb(e,t){Ul.C(e,t),dh("preconnect",e,t)}function sb(e,t,l){Ul.L(e,t,l);var a=Sn;if(a&&e&&t){var i='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+$t(l.imageSizes)+'"]')):i+='[href="'+$t(e)+'"]';var c=i;switch(t){case"style":c=wn(e);break;case"script":c=En(e)}Jt.has(c)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Jt.set(c,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(ks(c))||(t=a.createElement("link"),dt(t,"link",e),nt(t),a.head.appendChild(t)))}}function ib(e,t){Ul.m(e,t);var l=Sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=En(e)}if(!Jt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Jt.set(c,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ks(c)))return}a=l.createElement("link"),dt(a,"link",e),nt(a),l.head.appendChild(a)}}}function rb(e,t,l){Ul.S(e,t,l);var a=Sn;if(a&&e){var i=Qa(a).hoistableStyles,c=wn(e);t=t||"default";var h=i.get(c);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(Ts(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Jt.get(c))&&Mo(e,l);var S=h=a.createElement("link");nt(S),dt(S,"link",e),S._p=new Promise(function(A,U){S.onload=A,S.onerror=U}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,er(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},i.set(c,h)}}}function cb(e,t){Ul.X(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function ob(e,t){Ul.M(e,t);var l=Sn;if(l&&e){var a=Qa(l).hoistableScripts,i=En(e),c=a.get(i);c||(c=l.querySelector(ks(i)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Jt.get(i))&&Oo(e,t),c=l.createElement("script"),nt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function mh(e,t,l,a){var i=(i=fe.current)?Pi(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=Qa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var c=Qa(i).hoistableStyles,h=c.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=i.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),c||ub(i,e,l,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=En(l),l=Qa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wn(e){return'href="'+$t(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function hh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function ub(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),dt(t,"link",l),nt(t),e.head.appendChild(t))}function En(e){return'[src="'+$t(e)+'"]'}function ks(e){return"script[async]"+e}function ph(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(a)return t.instance=a,nt(a),a;var i=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),dt(a,"style",i),er(a,l.precedence,e),t.instance=a;case"stylesheet":i=wn(l.href);var c=e.querySelector(Ts(i));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=hh(l),(i=Jt.get(i))&&Mo(a,i),c=(e.ownerDocument||e).createElement("link"),nt(c);var h=c;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),t.state.loading|=4,er(c,l.precedence,e),t.instance=c;case"script":return c=En(l.src),(i=e.querySelector(ks(c)))?(t.instance=i,nt(i),i):(a=l,(i=Jt.get(c))&&(a=v({},l),Oo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),nt(i),dt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,er(a,l.precedence,e));return t.instance}function er(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,h=0;h title"):null)}function fb(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function db(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=wn(a.href),c=t.querySelector(Ts(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,nt(c);return}c=t.ownerDocument||t,a=hh(a),(i=Jt.get(i))&&Mo(a,i),c=c.createElement("link"),nt(c);var h=c;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),dt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=lr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function mb(e,t){return e.stylesheets&&e.count===0&&nr(e,e.stylesheets),0Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function lr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function nr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(hb,e),ar=null,lr.call(e))}function hb(e,t){if(!(t.state.loading&4)){var l=ar.get(e);if(l)var a=l.get(null);else{l=new Map,ar.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Go.exports=Ob(),Go.exports}var au=Db();/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rb=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ub=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,u)=>u?u.toUpperCase():o.toLowerCase()),Gh=s=>{const r=Ub(s);return r.charAt(0).toUpperCase()+r.slice(1)},Cp=(...s)=>s.filter((r,o,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===o).join(" ").trim(),Hb=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Lb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bb=M.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:f="",children:d,iconNode:m,...g},x)=>M.createElement("svg",{ref:x,...Lb,width:r,height:r,stroke:s,strokeWidth:u?Number(o)*24/Number(r):o,className:Cp("lucide",f),...!d&&!Hb(g)&&{"aria-hidden":"true"},...g},[...m.map(([p,y])=>M.createElement(p,y)),...Array.isArray(d)?d:[d]]));/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _e=(s,r)=>{const o=M.forwardRef(({className:u,...f},d)=>M.createElement(Bb,{ref:d,iconNode:r,className:Cp(`lucide-${Rb(Gh(s))}`,`lucide-${s}`,u),...f}));return o.displayName=Gh(s),o};/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qb=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ll=_e("arrow-up-right",qb);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $b=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Yb=_e("bed-double",$b);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Xb=_e("calendar-check",Gb);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Vb=_e("calendar-days",Qb);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zb=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Kb=_e("car",Zb);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],du=_e("check",Jb);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mu=_e("chevron-down",Fb);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_n=_e("chevron-left",Wb);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ib=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ua=_e("chevron-right",Ib);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Pb=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e0=_e("clock",Pb);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const t0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],l0=_e("cloud-rain",t0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]],n0=_e("cloud-snow",a0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const s0=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],i0=_e("cloud",s0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const r0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],c0=_e("copy",r0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],u0=_e("external-link",o0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const f0=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],d0=_e("instagram",f0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const m0=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Mp=_e("mail",m0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const h0=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],vr=_e("map-pin",h0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const p0=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Op=_e("menu",p0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const x0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],hu=_e("message-circle",x0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const g0=[["path",{d:"M5 12h14",key:"1ays0h"}]],b0=_e("minus",g0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const v0=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Zo=_e("navigation",v0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const y0=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],At=_e("phone",y0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const j0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],N0=_e("play",j0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const S0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],w0=_e("plus",S0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],z0=_e("rotate-ccw",E0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const T0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],k0=_e("sun",T0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _0=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],A0=_e("utensils",_0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const C0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yr=_e("x",C0);/** * @license lucide-react v0.546.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const M0=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],O0=_e("youtube",M0),Dp=M.createContext(null);function D0({payload:s,children:r}){return n.jsx(Dp.Provider,{value:s,children:r})}function P(){const s=M.useContext(Dp);if(!s)throw new Error("SiteProvider ๋ฐ–์—์„œ useSite() ๋ฅผ ๋ถˆ๋ €์Šต๋‹ˆ๋‹ค. payload ์—†์ด๋Š” ๋ Œ๋”ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.");return s}function R0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[n.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"8.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M8.5 9.4v5.2M5.9 12h5.2"})]}),n.jsxs("g",{className:"w4d-reel",children:[n.jsx("circle",{cx:"15.5",cy:"12",r:"2.6"}),n.jsx("path",{d:"M15.5 9.4v5.2M12.9 12h5.2"})]}),n.jsx("path",{d:"M6 19l1.5-2.4h9L18 19"})]})}function U0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M8 5v14l11-7z"})})}function H0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M7 5h3.4v14H7zm6.6 0H17v14h-3.4z"})})}function L0(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[n.jsx("path",{d:"M4 7h11M4 12h11M4 17h7"}),n.jsx("path",{d:"M19 17.5V9l3 1.2"}),n.jsx("circle",{cx:"17.4",cy:"17.6",r:"1.7",fill:"currentColor",stroke:"none"})]})}function B0(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:n.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}function Xh(s){if(typeof s!="number"||!Number.isFinite(s))return"";const r=Math.floor(s/60),o=Math.floor(s%60);return`${r}:${o<10?"0":""}${o}`}function q0(){const s=P(),r=(s.songs??[]).filter(X=>X.audioUrl),[o,u]=M.useState(0),[f,d]=M.useState(!1),[m,g]=M.useState(!1),[x,p]=M.useState({now:0,total:0}),[y,v]=M.useState({}),j=M.useRef(null),w=M.useRef(null),N=M.useRef(null),k=r.length;M.useEffect(()=>{k>1&&u(Math.floor(Math.random()*k))},[k]);const L=M.useCallback(()=>{var W;const X=document.querySelector("header"),V=X==null?void 0:X.getBoundingClientRect(),Y={top:`${V?V.bottom+6:66}px`};if(window.innerWidth<=640)Y.left="8px",Y.right="8px";else{Y.left="auto";const le=(W=w.current)==null?void 0:W.getBoundingClientRect();Y.right=`${Math.max(12,window.innerWidth-((le==null?void 0:le.right)??0))}px`}v(Y)},[]);if(M.useEffect(()=>{if(!m)return;L();const X=()=>L(),V=Y=>{var le,xe;const W=Y.target;(le=N.current)!=null&&le.contains(W)||(xe=w.current)!=null&&xe.contains(W)||g(!1)};return window.addEventListener("resize",X),window.addEventListener("scroll",X,{passive:!0}),document.addEventListener("click",V),()=>{window.removeEventListener("resize",X),window.removeEventListener("scroll",X),document.removeEventListener("click",V)}},[m,L]),M.useEffect(()=>()=>{var X;return(X=j.current)==null?void 0:X.pause()},[]),r.length===0)return null;const H=r[o]??r[0],G=(X=o)=>{const V=j.current,Y=r[X];!V||!Y||(V.getAttribute("src")!==Y.audioUrl&&(V.src=Y.audioUrl),V.play().then(()=>d(!0),()=>d(!1)))},R=()=>{var X;(X=j.current)==null||X.pause(),d(!1)},Z=X=>{const V=(X%r.length+r.length)%r.length;u(V),p({now:0,total:0}),G(V)};return n.jsxs(n.Fragment,{children:[n.jsxs("span",{id:"w4d-mini",ref:w,"data-playing":f?"1":"0",children:[n.jsx("span",{id:"w4d-tape","aria-hidden":!0,title:`${s.place.name}์ด(๊ฐ€) ๋งŒ๋“  ๋…ธ๋ž˜`,children:n.jsx(R0,{})}),n.jsx("span",{id:"w4d-now","aria-live":"polite",children:H.title}),n.jsx("button",{type:"button",id:"w4d-play","data-playing":f?"1":"0",title:`${f?"๋ฉˆ์ถค":"์žฌ์ƒ"} ยท ${H.title}`,onClick:()=>f?R():G(),children:f?n.jsx(H0,{}):n.jsx(U0,{})}),n.jsx("button",{type:"button",id:"w4d-toggle",title:"๋…ธ๋ž˜ ๋ชฉ๋ก","aria-expanded":m,onClick:()=>g(X=>!X),children:n.jsx(L0,{})})]}),n.jsx("audio",{ref:j,src:r[0].audioUrl,preload:"none",onTimeUpdate:X=>p({now:X.currentTarget.currentTime,total:X.currentTarget.duration}),onDurationChange:X=>p(V=>({...V,total:X.currentTarget.duration})),onEnded:()=>Z(o+1),onError:()=>d(!1)}),n.jsxs("div",{id:"w4d-panel",ref:N,hidden:!m,style:y,children:[n.jsxs("div",{className:"w4d-head",children:[n.jsxs("span",{className:"w4d-head-t",children:[s.place.name,"์ด(๊ฐ€) ๋งŒ๋“  ๋…ธ๋ž˜"]}),n.jsxs("span",{className:"w4d-head-n",children:[r.length,"๊ณก"]}),n.jsx("button",{type:"button",id:"w4d-close",title:"๋‹ซ๊ธฐ","aria-label":"๋‹ซ๊ธฐ",onClick:()=>g(!1),children:n.jsx(B0,{})})]}),n.jsx("ol",{children:r.map((X,V)=>n.jsx("li",{children:n.jsxs("button",{type:"button",className:"w4d-item","aria-current":V===o,"data-playing":V===o&&f?"1":"0",onClick:()=>Z(V),children:[n.jsxs("span",{className:"w4d-mark",children:[n.jsx("span",{className:"w4d-disc-sm"}),n.jsxs("span",{className:"w4d-eq","aria-hidden":!0,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})]}),n.jsxs("span",{className:"w4d-info",children:[n.jsx("span",{className:"w4d-t",children:X.title}),n.jsx("span",{className:"w4d-sub",children:s.place.name})]}),n.jsx("span",{className:"w4d-time",children:V===o&&(f||x.now>0)?`${Xh(x.now)}${x.total?` / ${Xh(x.total)}`:""}`:""})]})},X.songId))}),n.jsx("div",{id:"w4d-lyrics-box",hidden:!H.lyrics,children:(H.lyrics??"").replace(/^\[.*\]$/gm,"").replace(/\n{3,}/g,` `).trim()})]})]})}const dl={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},$0={OWNER:1,CRAWL:3,TEMPLATE:5},Qh={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Y0=[Qh.VERIFIED,Qh.CORRECTED];function Rp(s){return Y0.includes(s)}const it={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,NAVER_BOOKING:7,ETC:99},kj={PUBLISHED:3};function An(s){return s.filter(r=>Rp(r.status)&&r.value!=null&&r.value!=="")}function Up(s){const r=new Map;for(const o of An(s))r.set(o.key,o);return r}function fa(s,r){const o=Up(s).get(r);return(o==null?void 0:o.value)??void 0}function _t(s,r){const o=Up(s).get(r);if(!(o!=null&&o.value))return;const u=o.type==="number"?G0(o.value):o.value;return o.unit?`${u}${o.unit}`:u}function G0(s){const r=Number(s.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):s}function pu(s){return s.type!=="bool"?s.label:s.label.replace(/\s*(๊ฐ€๋Šฅ|์—ฌ๋ถ€)$/,"")||s.label}function X0(s){return s.filter(r=>Rp(r.status)&&r.question&&r.answer).sort((r,o)=>r.sortOrder-o.sortOrder)}function xu(s){return s.map(r=>({...r,facts:An(r.facts)})).sort((r,o)=>r.sortOrder-o.sortOrder)}const Q0={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",reading:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function V0(s){const r=(s??"").trim();if(!r)return;const o=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return o==null?void 0:o[1]}function Z0(s){return/youtube\.com\/shorts\//.test((s??"").trim())}function K0(s){return`https://i.ytimg.com/vi/${s}/hqdefault.jpg`}function J0(s){return`https://www.youtube-nocookie.com/embed/${s}?autoplay=1&rel=0&modestbranding=1`}const dr={items:[],unverified:0,sourced:0};function F0(s,r){var p,y;const o=v=>{const j=s.slice(0,Math.max(0,v)),w=j.split(` `).length,N=v-j.lastIndexOf(` `);return`${w}๋ฒˆ์งธ ์ค„ ${N}๋ฒˆ์งธ ๊ธ€์ž`},u=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=u==="}"||u==="]"?"๋‹ซ๋Š” ๊ด„ํ˜ธ ๋ฐ”๋กœ ์•ž์— ์‰ผํ‘œ๊ฐ€ ํ•˜๋‚˜ ๋” ์žˆ๋Š”์ง€ ๋ณด์„ธ์š”.":"๊ทธ ์•ž์˜ ์‰ผํ‘œยท๋”ฐ์˜ดํ‘œยท๊ด„ํ˜ธ๋ฅผ ํ™•์ธํ•ด ์ฃผ์„ธ์š”.",d=/line (\d+) column (\d+)/.exec(r);if(d)return`${d[1]}๋ฒˆ์งธ ์ค„ ${d[2]}๋ฒˆ์งธ ๊ธ€์ž์—์„œ JSON ์ด ๋Š๊น๋‹ˆ๋‹ค. ${f}`;const m=/position (\d+)/.exec(r);if(m)return`${o(Number(m[1]))}์—์„œ JSON ์ด ๋Š๊น๋‹ˆ๋‹ค. ${f}`;const g=(y=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:y[1],x=g?s.indexOf(g):-1;return x>=0?`${o(x+g.length)} ๋ถ€๊ทผ์—์„œ JSON ์ด ๋Š๊น๋‹ˆ๋‹ค. ${f}`:"JSON ์ด ์•„๋‹™๋‹ˆ๋‹ค. ChatGPT ๊ฐ€ ์ค€ ๋‹ต์—์„œ { ๋กœ ์‹œ์ž‘ํ•ด } ๋กœ ๋๋‚˜๋Š” ๋ถ€๋ถ„๋งŒ ๋ถ™์—ฌ๋„ฃ์–ด ์ฃผ์„ธ์š”."}function W0(s,r){const o=Q0[s],u=(r??"").trim();if(!o||!u)return dr;let f;try{f=JSON.parse(u)}catch(v){return{...dr,error:F0(u,v instanceof Error?v.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...dr,error:"๋ฐ”๊นฅ์ด { } ๋กœ ๊ฐ์‹ธ์ธ JSON ์ด์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค."};const d=f,m=typeof d.kind=="string"?d.kind:void 0,g=d.items;if(!Array.isArray(g))return{...dr,error:"items ๋ฐฐ์—ด์ด ์—†์Šต๋‹ˆ๋‹ค. ํ”„๋กฌํ”„ํŠธ๋กœ ๋‹ค์‹œ ๋งŒ๋“ค์–ด ์ฃผ์„ธ์š”."};const x=g.filter(v=>typeof v=="object"&&v!==null&&!Array.isArray(v)&&typeof v[o]=="string"&&v[o].trim().length>0);let p=0,y=0;for(const v of x){const j=v;j.verified!=="ํ™•์ธ"&&(p+=1),j.source&&typeof j.source=="object"&&(y+=1)}return{items:x,title:typeof d.title=="string"?d.title:void 0,subtitle:typeof d.subtitle=="string"?d.subtitle:void 0,linkUrl:typeof d.linkUrl=="string"&&/^https?:\/\//.test(d.linkUrl)?d.linkUrl:void 0,linkLabel:typeof d.linkLabel=="string"?d.linkLabel:void 0,kindMismatch:m&&m!==s?m:void 0,unverified:p,sourced:y}}const I0=1260,P0=60,ev="10:00",Vh=["๋ด„","์—ฌ๋ฆ„","๊ฐ€์„","๊ฒจ์šธ"];function Zh(s){const r=/^(\d{1,2}):(\d{2})$/.exec(s.trim());if(!r)return;const o=Number(r[1]),u=Number(r[2]);if(!(o>23||u>59))return o*60+u}function mr(s){const r=(s%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function tv(s){const r=Zh(s.startTime??"")??Zh(ev)??600,o=[];let u=r,f=0;for(const d of s.stops??[]){const m=Math.max(0,d.moveMinutes??0),g=Math.max(1,d.minutes??P0),x=u+m;if(x+g>I0){f+=1;continue}o.push({stop:d,time:mr(x),until:mr(x+g),move:m}),u=x+g}return{stops:o,from:mr(r),to:mr(u),totalMinutes:u-r,dropped:f}}function lv(s=new Date){const r=s.getMonth()+1,o=Math.floor((r-3+12)%12/3),u=Vh[o];return r%3===0&&s.getDate()<=15?[Vh[(o+3)%4],u]:[u]}function Kh(s){const r=parseInt(s.replace("#",""),16);return[r>>16&255,r>>8&255,r&255]}function Jh(s,r,o){if(!/^#[0-9a-fA-F]{6}$/.test(s)||!/^#[0-9a-fA-F]{6}$/.test(r))return s;const[u,f,d]=Kh(s),[m,g,x]=Kh(r),p=(v,j)=>Math.round(v+(j-v)*o),y=v=>v.toString(16).padStart(2,"0");return`#${y(p(u,m))}${y(p(f,g))}${y(p(d,x))}`}function av(s){return{surface:Jh(s.bg,s.text,.06),surfaceAlt:s.card,inverse:"#1c1917",border:Jh(s.bg,s.text,.2)}}const Hp={[dl.LODGING]:{type:"HotelRoom",path:"rooms",label:"๊ฐ์‹ค"},[dl.CAFE]:{type:"MenuItem",path:"menu",label:"๋ฉ”๋‰ด"},[dl.RESTAURANT]:{type:"MenuItem",path:"menu",label:"๋ฉ”๋‰ด"},[dl.CLINIC]:{type:"Product",path:"programs",label:"์‹œ์ˆ "}};function nv(s){return s.links.filter(r=>r.confirmed&&/^https?:\/\//i.test(r.url??""))}function Lp(s){var r;for(const[o,u]of[["weekday_price","์ฃผ์ค‘ 1๋ฐ•"],["price","1๋ฐ•"],["weekend_price","์ฃผ๋ง 1๋ฐ•"],["peak_price","์„ฑ์ˆ˜๊ธฐ 1๋ฐ•"]]){const f=Number((r=fa(s.facts,o))==null?void 0:r.replace(/[^0-9]/g,""));if(Number.isFinite(f)&&f>0)return{price:f,label:u}}}const Fh=[it.NAVER_BOOKING,it.YANOLJA,it.GOODCHOICE,it.NAVER_PLACE];function sv(s){return/\/p\/search\/|[?&]query=/.test(s)}function Bp(s){const r=new Map(Fh.map((f,d)=>[f,d])),o=s.links.filter(f=>f.confirmed&&Fh.includes(f.channel)&&!sv(f.url)),u=o.some(f=>f.channel===it.NAVER_BOOKING);return o.filter(f=>!(u&&f.channel===it.NAVER_PLACE)).sort((f,d)=>(r.get(f.channel)??99)-(r.get(d.channel)??99))}function gu(s){return s.links.find(r=>r.confirmed&&r.channel===it.OFFICIAL_SITE)??Bp(s)[0]??nv(s)[0]}function bu(s){return An(s.facts).filter(r=>r.scope==="place").map(r=>({key:r.key,label:pu(r),value:vu(r,s.facts)})).filter(r=>r.value!=="")}function vu(s,r){var u;if(s.key==="intro"&&((u=s.summary)!=null&&u.trim()))return s.summary.trim();const o=_t(r,s.key);return o?s.type!=="bool"?o:/์—ฌ๋ถ€$/.test(s.label)?o==="true"?"์žˆ์Œ":o==="false"?"์—†์Œ":o:o==="true"?"๊ฐ€๋Šฅ":o==="false"?"๋ถˆ๊ฐ€":o:""}const iv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function rv(s){const r=new Set;return s.filter(o=>{const u=o.value.trim();return r.has(u)?!1:(r.add(u),!0)})}function pl(s){const r=Hp[s.place.category],o=new Map(s.media.map(u=>[u.mediaId,u]));return xu(s.units).map(u=>{const f=_t(u.facts,"room_intro")??_t(u.facts,"description"),d=s.place.category===dl.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:u.unitId,slug:u.slug,name:u.name,intro:f,chips:d.map(m=>{var p;const g=_t(u.facts,m),x=((p=u.facts.find(y=>y.key===m))==null?void 0:p.label)??m;return g?{label:x,value:g}:null}).filter(m=>m!==null),rows:rv(u.facts.filter(m=>!iv.has(m.key)).filter(m=>!d.includes(m.key)).filter(m=>m.key!=="room_intro"&&m.key!=="description").map(m=>({label:pu(m),value:vu(m,u.facts)})).filter(m=>m.value!==""&&m.value.trim()!==(f??"").trim())),images:u.mediaIds.map(m=>o.get(m)).filter(m=>{var g;return!!((g=m==null?void 0:m.alt)!=null&&g.trim())}),priceText:cv(u),prices:uv(u),href:`/${r.path}/${u.slug}`}})}function cv(s){var d,m;const r=_t(s.facts,"price_range");if(r)return r;const o=Number((d=_t(s.facts,"weekday_price"))==null?void 0:d.replace(/[^0-9]/g,"")),u=Number((m=_t(s.facts,"price"))==null?void 0:m.replace(/[^0-9]/g,"")),f=Number.isFinite(o)&&o>0?o:u;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}์›๋ถ€ํ„ฐ`}const ov=[["weekday_price","์ฃผ์ค‘"],["weekend_price","์ฃผ๋ง"],["peak_price","์„ฑ์ˆ˜๊ธฐ"]];function uv(s){return _t(s.facts,"price_range")?[]:_t(s.facts,"weekday_price")?ov.map(([r,o])=>({label:o,value:_t(s.facts,r)??"๋ฌธ์˜"})):[]}function fv(s){const r=s??"";return/๋ˆˆ|์„ค/.test(r)?"๋ˆˆ":/๋น„|์šฐ|์†Œ๋‚˜๊ธฐ/.test(r)?"๋น„":/ํ๋ฆผ|๊ตฌ๋ฆ„|์•ˆ๊ฐœ|๋ฐ•๋ฌด/.test(r)?"ํ๋ฆผ":"๋ง‘์Œ"}function dv(s){return s>=30?"ํ˜น์„œ":s>=25?"๋”์›€":s>=20?"์„ ์„ ":s>=10?"์Œ€์Œ€":"์ถ”์›€"}function yu(s){return s.media.filter(r=>{var o;return((o=r.alt)==null?void 0:o.trim())&&!r.unitId})}function mv(s){return X0(s.faqs)}function hv(s){return s.theme.sections.filter(r=>r.enabled)}function Lt(s,r){var o;return((o=s.theme.sections.find(u=>u.id===r))==null?void 0:o.enabled)??!1}function pv(s,r){var u;const o=(u=s.theme.sections.find(f=>f.id===r))==null?void 0:u.body;return(o==null?void 0:o.split(/\n\s*\n/).map(f=>f.trim()).filter(Boolean))??[]}function Wt(s,r){var d;const o=s.theme.sections.find(m=>m.id===r),u=W0(r,o==null?void 0:o.data),f=(d=s.local.story)==null?void 0:d[r];return!Array.isArray(f)||f.length===0?u:{...u,items:[...u.items,...f]}}function ht(s){return Hp[s.place.category]}function $e(s,r,o){var f,d;const u=(d=(f=s.theme.sections.find(m=>m.id===r))==null?void 0:f.name)==null?void 0:d.trim();return u||o}function Cn(s,r){const o=new Map(An(s.facts).filter(u=>u.scope==="place").map(u=>[u.key,u]));return r.map(u=>o.get(u)).filter(u=>u!==void 0).map(u=>({label:pu(u),value:vu(u,s.facts)})).filter(u=>u.value!=="")}function xv(s,r){return Cn(s,[r])[0]}const gv=["reservation_required","reservation_channel"];function bv(s){return Cn(s,gv)}const vv=["seat_count","terrace","room_available","group_seat_max","power_outlet","study_allowed","wheelchair_accessible"];function yv(s){return Cn(s,vv)}const jv=["operating_hours","session_times","closed_days","age_limit","guide_language"];function Nv(s){return Cn(s,jv)}const Sv=["check_in_time","check_out_time","operating_hours","closed_days","parking","reservation_required"];function Ha(s){return Cn(s,Sv).slice(0,4)}function Mn(s){const r=pl(s).map(u=>u.priceText).filter(u=>!!u);if(r.length===0)return;const o=u=>Number(u.replace(/[^0-9]/g,""))||Number.MAX_SAFE_INTEGER;return r.reduce((u,f)=>o(f)o.confirmed&&r.includes(o.channel))}const Fe=Bp,zv=["check_in_time","check_out_time","cancel_policy","extra_person_fee","reception_hours","cooking_allowed","pet_allowed","smoking"];function Tv(s){return xu(s.units).map(r=>{const o=_t(r.facts,"standard_capacity"),u=_t(r.facts,"max_capacity"),f=Lp(r);return{unitId:r.unitId,name:r.name,capacityText:[o&&`๊ธฐ์ค€ ${o}`,u&&`์ตœ๋Œ€ ${u}`].filter(Boolean).join(" ยท ")||void 0,rateRows:["weekday_price","weekend_price","peak_price"].map(d=>{var x;const m=_t(r.facts,d),g=((x=r.facts.find(p=>p.key===d))==null?void 0:x.label)??d;return m?{label:g,value:m}:null}).filter(d=>d!==null),baseRateText:f?`${f.label} ${f.price.toLocaleString("ko-KR")}์›`:void 0,href:"#units"}})}function jr(s){if(s.place.category!==dl.LODGING)return null;const r={offers:Tv(s).filter(u=>u.rateRows.length>0||u.capacityText!==void 0),notices:Cn(s,zv),links:Fe(s),contacts:On(s).filter(u=>!Fe(s).some(f=>f.url===u.url)),phone:s.place.phone};return r.offers.length===0&&r.links.length===0&&r.contacts.length===0&&!r.phone?null:r}function kv(s,r){return s.theme.sections.some(o=>o.id===r)}function On(s){return Ev(s,wv)}function yt(s,r){const o=kn(s),u=o.endsWith("์˜ˆ์•ฝ")?o:`${o} ์˜ˆ์•ฝ`;return r?`${r} ${u}`:u}function ju(s){return s.channel===it.NAVER_BOOKING?"๋„ค์ด๋ฒ„ ์˜ˆ์•ฝ์œผ๋กœ ๋ฐ”๋กœ ์˜ˆ์•ฝํ•˜๊ธฐ":`${Bl(s)}์—์„œ ์˜ˆ์•ฝ`}function _v(){var u;const s=P(),r=ht(s),o=[{label:"์†Œ๊ฐœ",href:"#about",show:Lt(s,"intro")},{label:"์ด์šฉ ์ •๋ณด",href:"#info",show:!0},{label:r.label,href:"#units",show:s.units.length>0},{label:"์˜ค์‹œ๋Š” ๊ธธ",href:"#location",show:!0},{label:"์ถ•์ œ",href:"#festival",show:(((u=s.local.festivals)==null?void 0:u.length)??0)>0},{label:"์ฃผ๋ณ€ ์ •๋ณด",href:"#guide",show:Lt(s,"local")},{label:"FAQ",href:"#faq",show:s.faqs.length>0}].filter(f=>f.show);return n.jsx("header",{className:"border-line safe-t sticky top-0 z-40 w-full border-b backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 88%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsxs("a",{href:"#top",className:"flex min-w-0 items-center gap-2.5",children:[n.jsx("span",{className:"serif flex size-8 shrink-0 items-center justify-center rounded-md text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",fontWeight:"var(--tpl-heading-weight, 700)"},"aria-hidden":!0,children:s.place.name.slice(0,1)}),n.jsxs("span",{className:"flex min-w-0 flex-col",children:[n.jsx("span",{className:"serif truncate text-[length:var(--fs-lead)] leading-tight",style:{fontWeight:"var(--tpl-heading-weight, 700)"},children:s.place.name}),s.place.englishName&&n.jsx("span",{className:"text-muted truncate text-[length:var(--fs-xs)] uppercase leading-tight tracking-[0.14em]",children:s.place.englishName})]})]}),n.jsx("nav",{"aria-label":"์ฃผ์š” ๋ฉ”๋‰ด",className:"hidden items-center gap-7 lg:flex",children:o.map(f=>n.jsx("a",{href:f.href,className:"text-muted py-1 text-[length:var(--fs-sm)] font-medium transition-colors hover:text-current",children:f.label},f.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n.jsx(q0,{}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap inline-flex items-center gap-1.5 rounded-lg px-3 text-[length:var(--fs-xs)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{className:"hidden sm:inline",children:s.place.phone}),n.jsx("span",{className:"sr-only sm:hidden",children:"์ „ํ™”"})]}),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-lg marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"๋ฉ”๋‰ด ์—ด๊ธฐ",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"์ „์ฒด ๋ฉ”๋‰ด",className:"border-line tpl-border absolute right-0 top-[calc(100%+0.5rem)] z-50 w-52 overflow-hidden rounded-xl border shadow-lg",style:{backgroundColor:"var(--tpl-surface, #fff)"},children:n.jsx("ul",{className:"divide-line divide-y",children:o.map(f=>n.jsx("li",{children:n.jsx("a",{href:f.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-medium",children:f.label})},f.label))})})]})]})]})})}const Av=["์ž ์‹œ ๊ฑธ์Œ์„ ๋ฉˆ์ถ”๊ณ  ์˜จ์ „ํ•œ ์‰ผ์„ ๋งˆ์ฃผํ•˜๋Š” ์‹œ๊ฐ„","๋ฐ”์œ ์ผ์ƒ์„ ๋‚ด๋ ค๋†“๊ณ  ๋‚˜๋ฅผ ์œ„ํ•œ ์—ฌ์œ ๋ฅผ ๋‹ด์•„๊ฐ‘๋‹ˆ๋‹ค","์—ฌํ–‰์˜ ๊ธธ๋ชฉ์—์„œ ๋งŒ๋‚˜๋Š” ์กฐ์šฉํ•˜๊ณ  ํŽธ์•ˆํ•œ ๋จธ๋ฌด๋ฆ„","์•„๋ฌด๊ฒƒ๋„ ํ•˜์ง€ ์•Š์•„๋„ ํŽธ์•ˆํ•ด์ง€๋Š” ์˜ค๋Š˜์˜ ํœด์‹","๋‚ฏ์„  ๊ณณ์—์„œ ๋А๋ผ๋Š” ๋‹ค์ •ํ•œ ์˜จ๊ธฐ์™€ ์ž‘์€ ์‰ผํ‘œ","์ง€์นœ ํ•˜๋ฃจ์˜ ๋์— ์ฐพ์•„์˜ค๋Š” ๋‚˜๋งŒ์˜ ๋”ฐ๋œปํ•œ ์—ฌ๋ฐฑ","์ฒœ์ฒœํžˆ ํ˜๋Ÿฌ๊ฐ€๋Š” ์‹œ๊ฐ„ ์†์—์„œ ๋งˆ์ฃผํ•˜๋Š” ๊นŠ์€ ํœด์‹","์Šค์ณ ๊ฐ€๋Š” ์—ฌํ–‰ ์†์—์„œ ์˜ค๋ž˜ ๊ธฐ์–ต๋  ์•„๋Š‘ํ•œ ์ˆœ๊ฐ„","๋ณต์žกํ•œ ์ƒ๊ฐ์€ ์ž ์‹œ ์žŠ๊ณ  ํŽธ์•ˆํ•˜๊ฒŒ ์‰ฌ์–ด๊ฐ€์„ธ์š”","์ž‘์€ ์‰ผ์ด ๋ชจ์—ฌ ๋‚ด์ผ์„ ์‚ด์•„๊ฐˆ ๋”ฐ๋œปํ•œ ํž˜์ด ๋ฉ๋‹ˆ๋‹ค"];function pa({children:s}){var p;const{place:r,narrative:o}=P(),u=r.category===dl.LODGING,[f,d]=M.useState(0),m=(((p=o.catchphrases)==null?void 0:p.items)??[]).filter(y=>(y.kind??"general")==="general").map(y=>y.text.trim()).filter(Boolean),g=m.length>0?m:Av;if(M.useEffect(()=>{if(!u)return;const y=window.matchMedia("(prefers-reduced-motion: reduce)"),v=window.setInterval(()=>{!document.hidden&&!y.matches&&d(j=>(j+1)%g.length)},6e3);return()=>window.clearInterval(v)},[u,g.length]),!u)return s;const x=g[f%g.length];return n.jsxs("span",{className:"hero-catchphrase",children:[s&&n.jsx("span",{className:"hero-catchphrase-fixed",children:s}),n.jsx("span",{className:"w4d-line w4d-line--in",children:x.split(/\s+/).map((y,v)=>n.jsxs("span",{children:[v>0&&" ",n.jsx("span",{className:"w4d-w",children:n.jsx("span",{style:{"--w4d-d":`${v*55}ms`},children:y})})]},v))},f)]})}function Nr(s){return s.media.find(r=>{var o;return r.isPrimary&&((o=r.alt)==null?void 0:o.trim())})??s.media.find(r=>{var o;return(o=r.alt)==null?void 0:o.trim()})}function Cv(s){return Mv(s).join(" ")}function Mv(s){const{place:r,facts:o}=s,u=[],f=r.addressLocality??r.addressRegion??r.roadAddress??r.address;u.push(f?`${f}์— ์žˆ๋Š” ${r.name}์ž…๋‹ˆ๋‹ค.`:`${r.name}์ž…๋‹ˆ๋‹ค.`);const d=fa(o,"check_in_time"),m=fa(o,"check_out_time");d&&m&&u.push(`์ฒดํฌ์ธ ${d}, ์ฒดํฌ์•„์›ƒ ${m}.`);const g=fa(o,"business_hours")??fa(o,"open_hours");g&&u.push(`์˜์—…์‹œ๊ฐ„ ${g}.`);const x=fa(o,"pet_allowed");if(x==="false"&&u.push("๋ฐ˜๋ ค๋™๋ฌผ ๋™๋ฐ˜ ๋ถˆ๊ฐ€."),x==="true"&&u.push("๋ฐ˜๋ ค๋™๋ฌผ ๋™๋ฐ˜ ๊ฐ€๋Šฅ."),fa(o,"parking")==="true"){const y=fa(o,"parking_capacity");u.push(y?`์ฃผ์ฐจ ${y}๋Œ€ ๊ฐ€๋Šฅ.`:"์ฃผ์ฐจ ๊ฐ€๋Šฅ.")}return r.phone&&u.push(`๋ฌธ์˜ ${r.phone}.`),u}const Ov=6e3,Dv=5;function Rv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=r.addressLocality??r.addressRegion,g=[...s.media].filter(N=>{var k;return(k=N.alt)==null?void 0:k.trim()}).sort((N,k)=>Number(k.isPrimary)-Number(N.isPrimary)).slice(0,Dv),[x,p]=M.useState(0),[y,v]=M.useState(!1),j=M.useRef(null),w=M.useCallback(N=>p(k=>(k+N+g.length)%g.length),[g.length]);return M.useEffect(()=>{if(y||g.length<2)return;const N=setInterval(()=>w(1),Ov);return()=>clearInterval(N)},[y,w,g.length]),n.jsxs("section",{id:"top",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"clamp(24rem, 76vh, 42rem)"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onFocusCapture:()=>v(!0),onBlurCapture:()=>v(!1),onTouchStart:N=>{j.current=N.touches[0].clientX},onTouchEnd:N=>{const k=j.current;if(j.current=null,k===null)return;const L=N.changedTouches[0].clientX-k;Math.abs(L)>40&&w(L<0?1:-1)},children:[g.map((N,k)=>n.jsx("img",{src:N.url,alt:N.alt,fetchPriority:k===0?"high":"low",loading:k===0?void 0:"lazy",decoding:"async",className:"absolute inset-0 size-full object-cover object-center transition-opacity duration-700",style:{opacity:k===x?1:0}},N.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 45%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 60%, transparent) 100%)"}}),n.jsxs("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center px-6 text-center",children:[m&&n.jsx("p",{className:"label opacity-100",children:m}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),(o.tagline??o.heroSubline)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline})})]}),g.length>1&&n.jsxs(n.Fragment,{children:[n.jsx(Wh,{dir:"prev",onClick:()=>w(-1)}),n.jsx(Wh,{dir:"next",onClick:()=>w(1)}),n.jsx("ul",{className:"absolute inset-x-0 bottom-5 flex items-center justify-center gap-2",children:g.map((N,k)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>p(k),"aria-label":`${k+1}๋ฒˆ์งธ ์‚ฌ์ง„`,"aria-current":k===x,className:`h-1.5 rounded-full bg-current transition-all ${k===x?"w-7 opacity-100":"w-1.5 opacity-100 hover:opacity-100"}`})},N.mediaId))})]})]}),(f||u.length>0||d.length>0||r.phone)&&n.jsx("div",{className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:n.jsxs("div",{className:"shell flex flex-col items-center gap-4 py-4 lg:flex-row lg:justify-between lg:gap-8",children:[n.jsxs("dl",{className:"divide-line flex flex-wrap justify-center gap-y-2 sm:divide-x",children:[f&&n.jsxs("div",{className:"px-5 text-center sm:first:pl-0",children:[n.jsx("dt",{className:"label",children:"1๋ฐ• ์ตœ์ €๊ฐ€"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:f})]}),u.map(N=>n.jsxs("div",{className:"px-5 text-center",children:[n.jsx("dt",{className:"label",children:N.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:N.value})]},N.label))]}),n.jsxs("div",{className:"flex shrink-0 gap-2",children:[r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border inline-flex items-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:r.phone})]}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]})]})})]})}function Wh({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,"aria-label":s==="prev"?"์ด์ „ ์‚ฌ์ง„":"๋‹ค์Œ ์‚ฌ์ง„",className:`tap absolute top-1/2 hidden -translate-y-1/2 items-center justify-center rounded-full bg-current/15 px-3 backdrop-blur-sm transition-colors hover:bg-current/25 sm:inline-flex ${s==="prev"?"left-4":"right-4"}`,children:n.jsx(o,{className:"size-5"})})}function Uv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s).slice(0,3),f=Mn(s),d=Fe(s),m=xv(s,"extra_person_fee"),g=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary))[0],x=r.addressLocality??r.addressRegion;return n.jsx("section",{id:"top",className:"border-line w-full border-b",children:n.jsxs("div",{className:"grid lg:grid-cols-2",children:[n.jsx("div",{className:"relative order-1 min-h-[16rem] lg:order-none lg:min-h-[34rem]",children:g&&n.jsx("img",{src:g.url,alt:g.alt,fetchPriority:"high",decoding:"async",className:"absolute inset-0 size-full object-cover"})}),n.jsxs("div",{className:"order-2 flex flex-col justify-center gap-6 px-6 py-10 sm:px-10 lg:order-none lg:px-14 lg:py-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},children:[n.jsxs("div",{children:[x&&n.jsx("p",{className:"label",children:x}),n.jsx("h1",{className:"serif mt-2",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:r.name}),n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:o.tagline??o.heroSubline??o.summary})})]}),n.jsxs("div",{className:"panel p-5 sm:p-6",children:[f&&n.jsxs("p",{className:"flex items-baseline gap-2",children:[n.jsx("span",{className:"text-[length:var(--fs-h3)] font-bold tabular-nums",children:f}),n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)]",children:"1๋ฐ• ๊ธฐ์ค€"})]}),u.length>0&&n.jsxs("dl",{className:"divide-line mt-4 divide-y border-t pt-1",children:[u.map(p=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{className:"font-semibold",children:p.value})]},p.label)),m&&n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted",children:m.label}),n.jsx("dd",{className:"font-semibold tabular-nums",children:m.value})]})]}),n.jsxs("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row",children:[d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])}),r.phone&&n.jsxs("a",{href:`tel:${r.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-5 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:r.phone})]})]})]})]})]})})}const Hv={"stay-reservation":"reservation","stay-oasi":"oasi","stay-studio":"studio","stay-pastel":"pastel","stay-editorial":"editorial"};function $p(s){return Hv[s??""]??"default"}function Sr(){return $p(P().theme.templateId)}const xr=5,nu=1.8,Lv=3;function Bv(s){const r=s*xr,o=f=>`${(f/r*100).toFixed(3)}%`;return`${s<2?"":` .stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; } @keyframes stay2-hero-fade { 0% { opacity: 1; } ${o(xr)} { opacity: 1; } ${o(xr+nu)} { opacity: 0; } ${o(r-nu)} { opacity: 0; } 100% { opacity: 1; } }`} .stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; } @keyframes stay2-hero-focus { 0% { opacity: 0; filter: blur(0.22em); } 40% { opacity: 1; } 100% { opacity: 1; filter: blur(0); } } @media (prefers-reduced-motion: reduce) { .stay2-hero-slide, .stay2-hero-focus { animation: none; } } `}function qv(s,r){return((r-s)%r*xr+nu).toFixed(1)}function $v(){const s=P(),{place:r,narrative:o}=s,u=ht(s),f=Fe(s)[0],d=o.tagline??o.heroSubline,m=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)),g=m.length<2?0:Math.min(m.length,Lv),x=f?{href:f.url,label:`${kn(f)}์—์„œ ์˜ˆ์•ฝ`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} ์˜ˆ์•ฝ ๋ฌธ์˜`,external:!1}:s.units.length>0?{href:"#units",label:`${u.label} ๋ณด๊ธฐ`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:Bv(g)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[m.map((p,y)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:y===0?"high":y0?m:bu(s).slice(0,4),x=(u==null?void 0:u.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),o.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o.heroHeadline}),u&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:x})]}),(f||g.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"์ตœ์ €๊ฐ€"}),n.jsx("dd",{children:f})]}),g.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),d.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:d.map(p=>n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(p)})},p.url))})]})}function Gv(){const s=P(),r=yu(s),o=Nr(s),u=o&&r.some(f=>f.mediaId===o.mediaId)?[o,...r.filter(f=>f.mediaId!==o.mediaId)]:r;return u.length===0?null:n.jsx("section",{id:"top","aria-label":`${s.place.name} ์‚ฌ์ง„`,className:"w-full",children:n.jsx("div",{className:"columns-1 gap-2 sm:columns-2",children:u.map((f,d)=>n.jsx("figure",{className:"mb-2 break-inside-avoid",children:n.jsx("img",{src:f.url,alt:f.alt,loading:d===0?"eager":"lazy",fetchPriority:d===0?"high":void 0,decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})})}function Xv(){const s=P(),{place:r,narrative:o}=s,u=Ha(s),f=Mn(s),d=Fe(s),m=o.tagline??o.summary,g=r.addressLocality??r.addressRegion,x=[...s.media].filter(p=>{var y;return(y=p.alt)==null?void 0:y.trim()}).sort((p,y)=>Number(y.isPrimary)-Number(p.isPrimary)).slice(0,3);return n.jsxs("section",{id:"top","data-pastel":"own",className:"w-full",children:[n.jsxs("div",{className:"relative w-full overflow-hidden",style:{backgroundColor:"var(--pastel-1)"},children:[n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(12rem, 26vw, 22rem)",aspectRatio:"1",backgroundColor:"var(--pastel-2)",right:"-6%",top:"-6%",opacity:.75}}),n.jsx("span",{className:"absolute rounded-full",style:{width:"clamp(8rem, 18vw, 15rem)",aspectRatio:"1",backgroundColor:"var(--pastel-3)",left:"46%",bottom:"-10%",opacity:.7}})]}),n.jsxs("div",{className:"shell relative grid items-center gap-8 lg:grid-cols-2 lg:gap-14",style:{paddingBlock:"var(--section-space)"},children:[n.jsxs("div",{className:"order-2 lg:order-1",children:[g&&n.jsx("p",{className:"inline-flex items-center rounded-full px-3 py-1 text-[length:var(--fs-xs)] font-extrabold",style:{backgroundColor:"var(--tpl-bg, #fff)",color:"var(--pastel-ink)"},children:g}),n.jsx("h1",{className:"mt-4 break-keep",style:{fontSize:"var(--fs-display)",fontWeight:800,lineHeight:1.2,letterSpacing:"var(--tpl-heading-tracking, -0.03em)"},children:r.name}),m&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-lead)] font-medium leading-relaxed opacity-100",children:n.jsx(pa,{children:m})}),d.length>0&&n.jsx("a",{href:d[0].url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-7 inline-flex items-center justify-center rounded-full px-8 text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(d[0])})]}),n.jsxs("div",{className:"order-1 lg:order-2",children:[x[0]&&n.jsx("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"1 / 1",borderRadius:"calc(var(--tpl-radius, 24px) * 1.6)",boxShadow:"0 0 0 clamp(6px, 1.4vw, 12px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:x[0].url,alt:x[0].alt,fetchPriority:"high",decoding:"async",className:"size-full object-cover"})}),x.length>1&&n.jsx("ul",{className:"mt-3 grid grid-cols-2 gap-3",children:x.slice(1).map(p=>n.jsx("li",{className:"relative overflow-hidden",style:{aspectRatio:"4 / 3",borderRadius:"var(--tpl-radius, 24px)",boxShadow:"0 0 0 clamp(4px, 1vw, 8px) var(--tpl-bg, #fff)"},children:n.jsx("img",{src:p.url,alt:p.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},p.mediaId))})]})]})]}),(f||u.length>0)&&n.jsx("div",{className:"w-full",style:{backgroundColor:"var(--pastel-2)"},children:n.jsxs("dl",{className:"shell flex flex-wrap items-center justify-center gap-x-12 gap-y-5 py-8 text-center",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:"์ตœ์ €๊ฐ€"}),n.jsx("dd",{className:"mt-1 font-extrabold tabular-nums",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:f})]}),u.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-[length:var(--fs-xs)] font-extrabold",style:{color:"var(--tpl-bg, #fff)",opacity:.85},children:p.label}),n.jsx("dd",{className:"mt-1 font-extrabold",style:{fontSize:"var(--fs-h3)",color:"var(--tpl-bg, #fff)"},children:p.value})]},p.label))]})})]})}const Ys="repeating-linear-gradient(90deg, color-mix(in oklab, currentColor 3%, transparent) 0 1px, transparent 1px 6px),repeating-linear-gradient(0deg, color-mix(in oklab, currentColor 2%, transparent) 0 1px, transparent 1px 6px)",Qv={intro:"about",info:"info",rooms:"units",menu:"units",programs:"units",pricing:"pricing",booking:"booking",space:"space",inquiry:"inquiry",exhibition:"exhibition",photos:"gallery",local:"guide",weather:"weather",map:"location",faq:"faq",songs:"songs",daily:"daily",chronicle:"chronicle",reading:"reading",people:"people",quiz:"quiz",postcard:"postcard",video:"video",itinerary:"itinerary"},Vv={about:"์†Œ๊ฐœ",info:"์ด์šฉ ์ •๋ณด",pricing:"์š”๊ธˆ",booking:"์˜ˆ์•ฝ ์•ˆ๋‚ด",space:"๊ณต๊ฐ„",inquiry:"๋ฌธ์˜",exhibition:"๊ด€๋žŒ ์•ˆ๋‚ด",gallery:"์‚ฌ์ง„",guide:"์ฃผ๋ณ€",weather:"๋‚ ์”จ",location:"์˜ค์‹œ๋Š” ๊ธธ",faq:"์ž์ฃผ ๋ฌป๋Š” ์งˆ๋ฌธ",songs:"๋…ธ๋ž˜",daily:"์ผ๋ ฅ",chronicle:"์—ฐํ‘œ",reading:"์ฝ๊ธฐ",people:"์ธ๋ฌผ",quiz:"ํ€ด์ฆˆ",postcard:"์—ฝ์„œ",video:"์˜์ƒ",itinerary:"์ผ์ •"};function Ih(s){return String(s).padStart(2,"0")}function Yp(){var f;const s=P(),r=ht(s),o=new Set,u=[];for(const d of hv(s)){const m=Qv[d.id];if(!m||o.has(m)||m==="units"&&s.units.length===0)continue;o.add(m);const g=(f=d.name)==null?void 0:f.trim();u.push({no:Ih(u.length+1),label:g||Vv[m]||r.label,anchor:m})}return o.has("location")||u.push({no:Ih(u.length+1),label:"์˜ค์‹œ๋Š” ๊ธธ",anchor:"location"}),u}function Nu({id:s,title:r,lead:o,aside:u}){var d;const f=(d=Yp().find(m=>m.anchor===s))==null?void 0:d.no;return n.jsxs("header",{className:"mb-7 sm:mb-10",children:[n.jsx("div",{"aria-hidden":!0,className:"mb-5 h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between lg:gap-10",children:[n.jsxs("div",{className:"relative min-w-0 flex-1",children:[f&&n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 select-none leading-none tabular-nums",style:{fontSize:"clamp(2.5rem, 7vw, 5rem)",fontWeight:800,opacity:.12},children:f}),n.jsx("h2",{id:`${s}-heading`,className:"h2 relative pl-9 sm:pl-14 xl:pl-20",style:{fontWeight:800},children:r}),o&&n.jsx("p",{className:"text-muted measure relative mt-2 pl-9 font-serif text-[length:var(--fs-sm)] leading-relaxed sm:pl-14 xl:pl-20",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})]})}function Zv(){const s=P(),{place:r,narrative:o}=s,u=Nr(s),f=ht(s),d=pl(s),m=Ha(s),g=Mn(s),x=Fe(s)[0],p=On(s)[0],y=o.tagline??o.heroSubline,j=[r.addressSubLocality??r.addressLocality??r.addressRegion,d.length>0?`${f.label} ${d.length}๊ฐœ`:void 0,g].filter(w=>!!w);return n.jsx("section",{id:"top",className:"relative w-full",style:{backgroundImage:Ys},children:n.jsxs("div",{className:"grid grid-cols-12",children:[u&&n.jsx("div",{className:"relative col-span-12 xl:col-span-8 xl:col-start-5 xl:row-start-1",style:{minHeight:"clamp(15rem, 52vh, 34rem)",backgroundColor:"var(--tpl-inverse)"},children:n.jsx("img",{src:u.url,alt:u.alt,fetchPriority:"high",decoding:"async",width:u.width,height:u.height,className:"absolute inset-0 size-full object-cover"})}),n.jsx("div",{className:"z-10 col-span-12 xl:col-start-1 xl:row-start-1 xl:mb-12 xl:mr-16 xl:self-end",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse) 88%, transparent)",color:"var(--tpl-bg)"},children:n.jsx("h1",{className:"serif px-4 py-5 sm:px-6 xl:py-8 xl:pl-10 xl:pr-16",style:{fontSize:"clamp(2.25rem, 7.5vw, 5.5rem)",fontWeight:800,lineHeight:.98,letterSpacing:"-0.035em"},children:r.name})}),n.jsxs("div",{className:"col-span-12 flex flex-col gap-5 px-4 py-8 sm:px-6 xl:col-span-4 xl:col-start-1 xl:row-start-1 xl:py-12 xl:pb-56 xl:pl-10 xl:pr-8",children:[y&&n.jsx("p",{className:"measure font-serif text-[length:var(--fs-lead)] leading-relaxed",children:n.jsx(pa,{children:y})}),j.length>0&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums",children:j.join(" ยท ")}),(x||r.phone||p)&&n.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(x)}),r.phone&&n.jsx("a",{href:`tel:${r.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:r.phone}),p&&n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:[Bl(p)," ๋ฌธ์˜"]})]}),m.length>0&&n.jsx("dl",{className:"mt-1",children:m.map(w=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-4 border-t py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:w.label}),n.jsx("dd",{className:"text-right font-semibold",children:w.value})]},w.label))})]})]})})}function Kv(){var x;const s=P(),r=Sr();if(r==="reservation")return n.jsx($v,{});if(r==="oasi")return n.jsx(Yv,{});if(r==="studio")return n.jsx(Gv,{});if(r==="pastel")return n.jsx(Xv,{});if(r==="editorial")return n.jsx(Zv,{});const o=(x=s.theme.sections.find(p=>p.id==="hero"))==null?void 0:x.variantId;if(o==="hero.slideshow")return n.jsx(Rv,{});if(o==="hero.split")return n.jsx(Uv,{});const{place:u,narrative:f}=s,d=Nr(s),m=ht(s);Fe(s);const g=u.addressLocality??u.addressRegion;return n.jsx("section",{id:"top",className:"w-full",children:n.jsxs("div",{className:"relative flex w-full items-end overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",minHeight:"clamp(24rem, 62vh, 36rem)"},children:[d&&n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("img",{src:d.url,alt:d.alt,fetchPriority:"high",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover object-center"}),n.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in srgb, var(--tpl-inverse, #1c1917) 88%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 45%, transparent) 34%, transparent 66%)"}})]}),n.jsxs("div",{className:"shell relative z-10 pb-10 pt-24 sm:pb-12",children:[g&&n.jsxs("p",{className:"mb-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx(vr,{className:"size-3.5"}),n.jsx("span",{children:g})]}),n.jsx("h1",{className:"serif",style:{fontSize:"var(--fs-display)",fontWeight:"var(--tpl-heading-weight, 700)",lineHeight:1.15},children:u.name}),(f.tagline??f.heroSubline??f.summary)&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-lead)] leading-relaxed opacity-100",children:n.jsx(pa,{children:f.tagline??f.heroSubline??f.summary})}),s.units.length>0&&n.jsxs("a",{href:"#units",className:"mt-6 inline-flex items-center gap-1 text-[length:var(--fs-sm)] font-medium underline-offset-4 opacity-100 transition-opacity hover:opacity-100",children:[n.jsxs("span",{children:[m.label," ๋ณด๊ธฐ"]}),n.jsx(mu,{className:"size-4"})]})]})]})})}function Gp(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":`${r.getFullYear()}๋…„ ${r.getMonth()+1}์›” ${r.getDate()}์ผ`}function Dn(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})}function Jv(s){return`https://search.naver.com/search.naver?query=${encodeURIComponent(s)}`}function Ph(s){return`https://map.naver.com/p/search/${encodeURIComponent(s)}`}function Fv(s){return`https://www.youtube.com/results?search_query=${encodeURIComponent(s)}`}function Su(s){return s.replace(/,/g," ").replace(/\s+/g," ").trim()}function Wv(s,r,o){return r==null||o==null?`https://map.kakao.com/link/search/${encodeURIComponent(s)}`:`https://map.kakao.com/link/to/${encodeURIComponent(Su(s))},${r},${o}`}function Iv(s,r){const o=u=>`${u.lng},${u.lat},${encodeURIComponent(Su(u.name))}`;return`https://map.naver.com/p/directions/${o(s)}/${o(r)}/-/car`}function Xp(s,r,o){return r==null||o==null?`https://map.naver.com/p/search/${encodeURIComponent(s)}`:`https://map.naver.com/p/directions/-/${o},${r},${encodeURIComponent(Su(s))}/-/transit`}function Pv(s,r,o=16/9,u=.0022){const f=Math.max(Math.cos(s*Math.PI/180),.01),d=o*u/f;return`https://www.openstreetmap.org/export/embed.html?bbox=${[r-d,s-u,r+d,s+u].map(g=>g.toFixed(6)).join(",")}&layer=mapnik&marker=${s},${r}`}function ey(s,r,o){if(r==null||o==null)return;const u=encodeURIComponent(s);return`tmap://route?goalname=${u}&goalx=${o}&goaly=${r}&rGoName=${u}&rGoX=${o}&rGoY=${r}`}function wu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-10 flex flex-col items-center gap-4 text-center sm:mb-14",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif max-w-full",style:{fontSize:"var(--fs-h2)",fontWeight:300,letterSpacing:"0.04em",lineHeight:1.35},children:r}),n.jsx("i",{"aria-hidden":!0,className:"block h-px w-10 bg-current opacity-25"}),o&&n.jsx("p",{className:"text-muted measure text-[length:var(--fs-sm)] leading-loose",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-xs)]",children:u})]})}function Eu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-8",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:["[",r,"]"]}),o&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})}function zu({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-7 sm:mb-10",children:n.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-10",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("h2",{id:`${s}-heading`,className:"serif min-w-0 font-extrabold",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.01em",lineHeight:1.2,color:"var(--tpl-text)"},children:r}),o&&n.jsx("p",{className:"text-muted measure mt-2 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:o})]}),u&&n.jsx("div",{className:"shrink-0 text-[length:var(--fs-xs)]",children:u})]})})}function Tu({id:s,title:r,lead:o,aside:u}){return n.jsxs("header",{className:"mb-8 flex flex-col items-center gap-3 text-center sm:mb-10",children:[n.jsx("i",{"aria-hidden":!0,className:"block h-[6px] w-10 rounded-full",style:{backgroundColor:"var(--pastel-2, currentColor)",opacity:.9}}),n.jsx("h2",{id:`${s}-heading`,className:"h2 break-keep",style:{fontSize:"calc(var(--fs-h2) * 1.15)",fontWeight:800},children:r}),o&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-65",children:o}),u&&n.jsx("div",{className:"text-[length:var(--fs-sm)]",children:u})]})}const ty={base:{backgroundColor:"var(--tpl-surface, #ffffff)"},alt:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)"},dark:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"}};function rt({id:s,title:r,lead:o,tone:u="base",aside:f,footnote:d,children:m,wide:g,bare:x}){const p=Sr(),y=p==="reservation"?wu:p==="oasi"?Eu:p==="studio"?zu:p==="pastel"?Tu:p==="editorial"?Nu:ly;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{...ty[u],paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:g?"w-full":"shell",children:[!x&&n.jsx("div",{className:g?"shell":void 0,children:n.jsx(y,{id:s,title:r,lead:o,aside:f})}),m,d&&n.jsx("p",{className:`text-muted mt-5 text-[length:var(--fs-xs)] ${g?"shell":""}`,children:d})]})})}function ly({id:s,title:r,lead:o,aside:u}){return n.jsx("header",{className:"mb-6 sm:mb-8",children:n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsxs("h2",{id:`${s}-heading`,className:"h2 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:r})]}),o&&n.jsx("p",{className:"text-muted measure mt-2 pl-[calc(3px+0.625rem)] text-[length:var(--fs-sm)]",children:o})]}),u&&n.jsx("div",{className:"shrink-0",children:u})]})})}function ay(s){return Object.prototype.toString.call(s)==="[object Object]"}function ep(s){return ay(s)||Array.isArray(s)}function ny(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ku(s,r){const o=Object.keys(s),u=Object.keys(r);if(o.length!==u.length)return!1;const f=JSON.stringify(Object.keys(s.breakpoints||{})),d=JSON.stringify(Object.keys(r.breakpoints||{}));return f!==d?!1:o.every(m=>{const g=s[m],x=r[m];return typeof g=="function"?`${g}`==`${x}`:!ep(g)||!ep(x)?g===x:ku(g,x)})}function tp(s){return s.concat().sort((r,o)=>r.name>o.name?1:-1).map(r=>r.options)}function sy(s,r){if(s.length!==r.length)return!1;const o=tp(s),u=tp(r);return o.every((f,d)=>{const m=u[d];return ku(f,m)})}function _u(s){return typeof s=="number"}function su(s){return typeof s=="string"}function wr(s){return typeof s=="boolean"}function lp(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ge(s){return Math.abs(s)}function Au(s){return Math.sign(s)}function Bs(s,r){return Ge(s-r)}function iy(s,r){if(s===0||r===0||Ge(s)<=Ge(r))return 0;const o=Bs(Ge(s),Ge(r));return Ge(o/s)}function ry(s){return Math.round(s*100)/100}function Gs(s){return Xs(s).map(Number)}function al(s){return s[Zs(s)]}function Zs(s){return Math.max(0,s.length-1)}function Cu(s,r){return r===Zs(s)}function ap(s,r=0){return Array.from(Array(s),(o,u)=>r+u)}function Xs(s){return Object.keys(s)}function Qp(s,r){return[s,r].reduce((o,u)=>(Xs(u).forEach(f=>{const d=o[f],m=u[f],g=lp(d)&&lp(m);o[f]=g?Qp(d,m):m}),o),{})}function iu(s,r){return typeof r.MouseEvent<"u"&&s instanceof r.MouseEvent}function cy(s,r){const o={start:u,center:f,end:d};function u(){return 0}function f(x){return d(x)/2}function d(x){return r-x}function m(x,p){return su(s)?o[s](x):s(r,x,p)}return{measure:m}}function Qs(){let s=[];function r(f,d,m,g={passive:!0}){let x;if("addEventListener"in f)f.addEventListener(d,m,g),x=()=>f.removeEventListener(d,m,g);else{const p=f;p.addListener(m),x=()=>p.removeListener(m)}return s.push(x),u}function o(){s=s.filter(f=>f())}const u={add:r,clear:o};return u}function oy(s,r,o,u){const f=Qs(),d=1e3/60;let m=null,g=0,x=0;function p(){f.add(s,"visibilitychange",()=>{s.hidden&&N()})}function y(){w(),f.clear()}function v(L){if(!x)return;m||(m=L,o(),o());const H=L-m;for(m=L,g+=H;g>=d;)o(),g-=d;const G=g/d;u(G),x&&(x=r.requestAnimationFrame(v))}function j(){x||(x=r.requestAnimationFrame(v))}function w(){r.cancelAnimationFrame(x),m=null,g=0,x=0}function N(){m=null,g=0}return{init:p,destroy:y,start:j,stop:w,update:o,render:u}}function uy(s,r){const o=r==="rtl",u=s==="y",f=u?"y":"x",d=u?"x":"y",m=!u&&o?-1:1,g=y(),x=v();function p(N){const{height:k,width:L}=N;return u?k:L}function y(){return u?"top":o?"right":"left"}function v(){return u?"bottom":o?"left":"right"}function j(N){return N*m}return{scroll:f,cross:d,startEdge:g,endEdge:x,measureSize:p,direction:j}}function Ra(s=0,r=0){const o=Ge(s-r);function u(p){return pr}function d(p){return u(p)||f(p)}function m(p){return d(p)?u(p)?s:r:p}function g(p){return o?p-o*Math.ceil((p-r)/o):p}return{length:o,max:r,min:s,constrain:m,reachedAny:d,reachedMax:f,reachedMin:u,removeOffset:g}}function Vp(s,r,o){const{constrain:u}=Ra(0,s),f=s+1;let d=m(r);function m(j){return o?Ge((f+j)%f):u(j)}function g(){return d}function x(j){return d=m(j),v}function p(j){return y().set(g()+j)}function y(){return Vp(s,g(),o)}const v={get:g,set:x,add:p,clone:y};return v}function fy(s,r,o,u,f,d,m,g,x,p,y,v,j,w,N,k,L,H,G){const{cross:R,direction:Z}=s,X=["INPUT","SELECT","TEXTAREA"],V={passive:!1},Y=Qs(),W=Qs(),le=Ra(50,225).constrain(w.measure(20)),xe={mouse:300,touch:400},ce={mouse:500,touch:600},K=N?43:25;let he=!1,Xe=0,ie=0,O=!1,Q=!1,ae=!1,pe=!1;function Ne(te){if(!G)return;function Ae(tt){(wr(G)||G(te,tt))&&fe(tt)}const De=r;Y.add(De,"dragstart",tt=>tt.preventDefault(),V).add(De,"touchmove",()=>{},V).add(De,"touchend",()=>{}).add(De,"touchstart",Ae).add(De,"mousedown",Ae).add(De,"touchcancel",ze).add(De,"contextmenu",ze).add(De,"click",Te,!0)}function E(){Y.clear(),W.clear()}function q(){const te=pe?o:r;W.add(te,"touchmove",oe,V).add(te,"touchend",ze).add(te,"mousemove",oe,V).add(te,"mouseup",ze)}function J(te){const Ae=te.nodeName||"";return X.includes(Ae)}function F(){return(N?ce:xe)[pe?"mouse":"touch"]}function re(te,Ae){const De=v.add(Au(te)*-1),tt=y.byDistance(te,!N).distance;return N||Ge(te)=2,!(Ae&&te.button!==0)&&(J(te.target)||(O=!0,d.pointerDown(te),p.useFriction(0).useDuration(0),f.set(m),q(),Xe=d.readPoint(te),ie=d.readPoint(te,R),j.emit("pointerDown")))}function oe(te){if(!iu(te,u)&&te.touches.length>=2)return ze(te);const De=d.readPoint(te),tt=d.readPoint(te,R),jt=Bs(De,Xe),It=Bs(tt,ie);if(!Q&&!pe&&(!te.cancelable||(Q=jt>It,!Q)))return ze(te);const nl=d.pointerMove(te);jt>k&&(ae=!0),p.useFriction(.3).useDuration(.75),g.start(),f.add(Z(nl)),te.preventDefault()}function ze(te){const De=y.byDistance(0,!1).index!==v.get(),tt=d.pointerUp(te)*F(),jt=re(Z(tt),De),It=iy(tt,jt),nl=K-10*It,Bt=H+It/50;Q=!1,O=!1,W.clear(),p.useDuration(nl).useFriction(Bt),x.distance(jt,!N),pe=!1,j.emit("pointerUp")}function Te(te){ae&&(te.stopPropagation(),te.preventDefault(),ae=!1)}function at(){return O}return{init:Ne,destroy:E,pointerDown:at}}function dy(s,r){let u,f;function d(v){return v.timeStamp}function m(v,j){const N=`client${(j||s.scroll)==="x"?"X":"Y"}`;return(iu(v,r)?v:v.touches[0])[N]}function g(v){return u=v,f=v,m(v)}function x(v){const j=m(v)-m(f),w=d(v)-d(u)>170;return f=v,w&&(u=v),j}function p(v){if(!u||!f)return 0;const j=m(f)-m(u),w=d(v)-d(u),N=d(v)-d(f)>170,k=j/w;return w&&!N&&Ge(k)>.1?k:0}return{pointerDown:g,pointerMove:x,pointerUp:p,readPoint:m}}function my(){function s(o){const{offsetTop:u,offsetLeft:f,offsetWidth:d,offsetHeight:m}=o;return{top:u,right:f+d,bottom:u+m,left:f,width:d,height:m}}return{measure:s}}function hy(s){function r(u){return s*(u/100)}return{measure:r}}function py(s,r,o,u,f,d,m){const g=[s].concat(u);let x,p,y=[],v=!1;function j(L){return f.measureSize(m.measure(L))}function w(L){if(!d)return;p=j(s),y=u.map(j);function H(G){for(const R of G){if(v)return;const Z=R.target===s,X=u.indexOf(R.target),V=Z?p:y[X],Y=j(Z?s:u[X]);if(Ge(Y-V)>=.5){L.reInit(),r.emit("resize");break}}}x=new ResizeObserver(G=>{(wr(d)||d(L,G))&&H(G)}),o.requestAnimationFrame(()=>{g.forEach(G=>x.observe(G))})}function N(){v=!0,x&&x.disconnect()}return{init:w,destroy:N}}function xy(s,r,o,u,f,d){let m=0,g=0,x=f,p=d,y=s.get(),v=0;function j(){const V=u.get()-s.get(),Y=!x;let W=0;return Y?(m=0,o.set(u),s.set(u),W=V):(o.set(s),m+=V/x,m*=p,y+=m,s.add(m),W=y-v),g=Au(W),v=y,X}function w(){const V=u.get()-r.get();return Ge(V)<.001}function N(){return x}function k(){return g}function L(){return m}function H(){return R(f)}function G(){return Z(d)}function R(V){return x=V,X}function Z(V){return p=V,X}const X={direction:k,duration:N,velocity:L,seek:j,settled:w,useBaseFriction:G,useBaseDuration:H,useFriction:Z,useDuration:R};return X}function gy(s,r,o,u,f){const d=f.measure(10),m=f.measure(50),g=Ra(.1,.99);let x=!1;function p(){return!(x||!s.reachedAny(o.get())||!s.reachedAny(r.get()))}function y(w){if(!p())return;const N=s.reachedMin(r.get())?"min":"max",k=Ge(s[N]-r.get()),L=o.get()-r.get(),H=g.constrain(k/m);o.subtract(L*H),!w&&Ge(L){const{min:L,max:H}=d,G=d.constrain(N),R=!k,Z=Cu(o,k);return R?H:Z||p(L,G)?L:p(H,G)?H:G}).map(N=>parseFloat(N.toFixed(3)))}function j(){if(r<=s+f)return[d.max];if(u==="keepSnaps")return m;const{min:N,max:k}=g;return m.slice(N,k)}return{snapsContained:x,scrollContainLimit:g}}function vy(s,r,o){const u=r[0],f=o?u-s:al(r);return{limit:Ra(f,u)}}function yy(s,r,o,u){const d=r.min+.1,m=r.max+.1,{reachedMin:g,reachedMax:x}=Ra(d,m);function p(j){return j===1?x(o.get()):j===-1?g(o.get()):!1}function y(j){if(!p(j))return;const w=s*(j*-1);u.forEach(N=>N.add(w))}return{loop:y}}function jy(s){const{max:r,length:o}=s;function u(d){const m=d-r;return o?m/-o:0}return{get:u}}function Ny(s,r,o,u,f){const{startEdge:d,endEdge:m}=s,{groupSlides:g}=f,x=v().map(r.measure),p=j(),y=w();function v(){return g(u).map(k=>al(k)[m]-k[0][d]).map(Ge)}function j(){return u.map(k=>o[d]-k[d]).map(k=>-Ge(k))}function w(){return g(p).map(k=>k[0]).map((k,L)=>k+x[L])}return{snaps:p,snapsAligned:y}}function Sy(s,r,o,u,f,d){const{groupSlides:m}=f,{min:g,max:x}=u,p=y();function y(){const j=m(d),w=!s||r==="keepSnaps";return o.length===1?[d]:w?j:j.slice(g,x).map((N,k,L)=>{const H=!k,G=Cu(L,k);if(H){const R=al(L[0])+1;return ap(R)}if(G){const R=Zs(d)-al(L)[0]+1;return ap(R,al(L)[0])}return N})}return{slideRegistry:p}}function wy(s,r,o,u,f){const{reachedAny:d,removeOffset:m,constrain:g}=u;function x(N){return N.concat().sort((k,L)=>Ge(k)-Ge(L))[0]}function p(N){const k=s?m(N):g(N),L=r.map((G,R)=>({diff:y(G-k,0),index:R})).sort((G,R)=>Ge(G.diff)-Ge(R.diff)),{index:H}=L[0];return{index:H,distance:k}}function y(N,k){const L=[N,N+o,N-o];if(!s)return N;if(!k)return x(L);const H=L.filter(G=>Au(G)===k);return H.length?x(H):al(L)-o}function v(N,k){const L=r[N]-f.get(),H=y(L,k);return{index:N,distance:H}}function j(N,k){const L=f.get()+N,{index:H,distance:G}=p(L),R=!s&&d(L);if(!k||R)return{index:H,distance:N};const Z=r[H]-G,X=N+y(Z,0);return{index:H,distance:X}}return{byDistance:j,byIndex:v,shortcut:y}}function Ey(s,r,o,u,f,d,m){function g(v){const j=v.distance,w=v.index!==r.get();d.add(j),j&&(u.duration()?s.start():(s.update(),s.render(1),s.update())),w&&(o.set(r.get()),r.set(v.index),m.emit("select"))}function x(v,j){const w=f.byDistance(v,j);g(w)}function p(v,j){const w=r.clone().set(v),N=f.byIndex(w.get(),j);g(N)}return{distance:x,index:p}}function zy(s,r,o,u,f,d,m,g){const x={passive:!0,capture:!0};let p=0;function y(w){if(!g)return;function N(k){if(new Date().getTime()-p>10)return;m.emit("slideFocusStart"),s.scrollLeft=0;const G=o.findIndex(R=>R.includes(k));_u(G)&&(f.useDuration(0),u.index(G,0),m.emit("slideFocus"))}d.add(document,"keydown",v,!1),r.forEach((k,L)=>{d.add(k,"focus",H=>{(wr(g)||g(w,H))&&N(L)},x)})}function v(w){w.code==="Tab"&&(p=new Date().getTime())}return{init:y}}function Us(s){let r=s;function o(){return r}function u(x){r=m(x)}function f(x){r+=m(x)}function d(x){r-=m(x)}function m(x){return _u(x)?x:x.get()}return{get:o,set:u,add:f,subtract:d}}function Zp(s,r){const o=s.scroll==="x"?m:g,u=r.style;let f=null,d=!1;function m(j){return`translate3d(${j}px,0px,0px)`}function g(j){return`translate3d(0px,${j}px,0px)`}function x(j){if(d)return;const w=ry(s.direction(j));w!==f&&(u.transform=o(w),f=w)}function p(j){d=!j}function y(){d||(u.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:y,to:x,toggleActive:p}}function Ty(s,r,o,u,f,d,m,g,x){const y=Gs(f),v=Gs(f).reverse(),j=H().concat(G());function w(Y,W){return Y.reduce((le,xe)=>le-f[xe],W)}function N(Y,W){return Y.reduce((le,xe)=>w(le,W)>0?le.concat([xe]):le,[])}function k(Y){return d.map((W,le)=>({start:W-u[le]+.5+Y,end:W+r-.5+Y}))}function L(Y,W,le){const xe=k(W);return Y.map(ce=>{const K=le?0:-o,he=le?o:0,Xe=le?"end":"start",ie=xe[ce][Xe];return{index:ce,loopPoint:ie,slideLocation:Us(-1),translate:Zp(s,x[ce]),target:()=>g.get()>ie?K:he}})}function H(){const Y=m[0],W=N(v,Y);return L(W,o,!1)}function G(){const Y=r-m[0]-1,W=N(y,Y);return L(W,-o,!0)}function R(){return j.every(({index:Y})=>{const W=y.filter(le=>le!==Y);return w(W,r)<=.1})}function Z(){j.forEach(Y=>{const{target:W,translate:le,slideLocation:xe}=Y,ce=W();ce!==xe.get()&&(le.to(ce),xe.set(ce))})}function X(){j.forEach(Y=>Y.translate.clear())}return{canLoop:R,clear:X,loop:Z,loopPoints:j}}function ky(s,r,o){let u,f=!1;function d(x){if(!o)return;function p(y){for(const v of y)if(v.type==="childList"){x.reInit(),r.emit("slidesChanged");break}}u=new MutationObserver(y=>{f||(wr(o)||o(x,y))&&p(y)}),u.observe(s,{childList:!0})}function m(){u&&u.disconnect(),f=!0}return{init:d,destroy:m}}function _y(s,r,o,u){const f={};let d=null,m=null,g,x=!1;function p(){g=new IntersectionObserver(N=>{x||(N.forEach(k=>{const L=r.indexOf(k.target);f[L]=k}),d=null,m=null,o.emit("slidesInView"))},{root:s.parentElement,threshold:u}),r.forEach(N=>g.observe(N))}function y(){g&&g.disconnect(),x=!0}function v(N){return Xs(f).reduce((k,L)=>{const H=parseInt(L),{isIntersecting:G}=f[H];return(N&&G||!N&&!G)&&k.push(H),k},[])}function j(N=!0){if(N&&d)return d;if(!N&&m)return m;const k=v(N);return N&&(d=k),N||(m=k),k}return{init:p,destroy:y,get:j}}function Ay(s,r,o,u,f,d){const{measureSize:m,startEdge:g,endEdge:x}=s,p=o[0]&&f,y=N(),v=k(),j=o.map(m),w=L();function N(){if(!p)return 0;const G=o[0];return Ge(r[g]-G[g])}function k(){if(!p)return 0;const G=d.getComputedStyle(al(u));return parseFloat(G.getPropertyValue(`margin-${x}`))}function L(){return o.map((G,R,Z)=>{const X=!R,V=Cu(Z,R);return X?j[R]+y:V?j[R]+v:Z[R+1][g]-G[g]}).map(Ge)}return{slideSizes:j,slideSizesWithGaps:w,startGap:y,endGap:v}}function Cy(s,r,o,u,f,d,m,g,x){const{startEdge:p,endEdge:y,direction:v}=s,j=_u(o);function w(H,G){return Gs(H).filter(R=>R%G===0).map(R=>H.slice(R,R+G))}function N(H){return H.length?Gs(H).reduce((G,R,Z)=>{const X=al(G)||0,V=X===0,Y=R===Zs(H),W=f[p]-d[X][p],le=f[p]-d[R][y],xe=!u&&V?v(m):0,ce=!u&&Y?v(g):0,K=Ge(le-ce-(W+xe));return Z&&K>r+x&&G.push(R),Y&&G.push(H.length),G},[]).map((G,R,Z)=>{const X=Math.max(Z[R-1]||0);return H.slice(X,G)}):[]}function k(H){return j?w(H,o):N(H)}return{groupSlides:k}}function My(s,r,o,u,f,d,m){const{align:g,axis:x,direction:p,startIndex:y,loop:v,duration:j,dragFree:w,dragThreshold:N,inViewThreshold:k,slidesToScroll:L,skipSnaps:H,containScroll:G,watchResize:R,watchSlides:Z,watchDrag:X,watchFocus:V}=d,Y=2,W=my(),le=W.measure(r),xe=o.map(W.measure),ce=uy(x,p),K=ce.measureSize(le),he=hy(K),Xe=cy(g,K),ie=!v&&!!G,O=v||!!G,{slideSizes:Q,slideSizesWithGaps:ae,startGap:pe,endGap:Ne}=Ay(ce,le,xe,o,O,f),E=Cy(ce,K,L,v,le,xe,pe,Ne,Y),{snaps:q,snapsAligned:J}=Ny(ce,Xe,le,xe,E),F=-al(q)+al(ae),{snapsContained:re,scrollContainLimit:fe}=by(K,F,J,G,Y),oe=ie?re:J,{limit:ze}=vy(F,oe,v),Te=Vp(Zs(oe),y,v),at=Te.clone(),Oe=Gs(o),te=({dragHandler:bl,scrollBody:$n,scrollBounds:Yn,options:{loop:sl}})=>{sl||Yn.constrain(bl.pointerDown()),$n.seek()},Ae=({scrollBody:bl,translate:$n,location:Yn,offsetLocation:sl,previousLocation:gt,scrollLooper:il,slideLooper:bt,dragHandler:zr,animation:Tr,eventHandler:Ws,scrollBounds:qa,options:{loop:xa}},ga)=>{const rl=bl.settled(),$a=!qa.shouldConstrain(),ql=xa?rl:rl&&$a,Is=ql&&!zr.pointerDown();Is&&Tr.stop();const Ps=Yn.get()*ga+gt.get()*(1-ga);sl.set(Ps),xa&&(il.loop(bl.direction()),bt.loop()),$n.to(sl.get()),Is&&Ws.emit("settle"),ql||Ws.emit("scroll")},De=oy(u,f,()=>te(qn),bl=>Ae(qn,bl)),tt=.68,jt=oe[Te.get()],It=Us(jt),nl=Us(jt),Bt=Us(jt),Pt=Us(jt),gl=xy(It,Bt,nl,Pt,j,tt),Hn=wy(v,oe,F,ze,Pt),Ln=Ey(De,Te,at,gl,Hn,Pt,m),pt=jy(ze),Js=Qs(),Fs=_y(r,o,m,k),{slideRegistry:Bn}=Sy(ie,G,oe,fe,E,Oe),Ba=zy(s,o,Bn,Ln,gl,Js,m,V),qn={ownerDocument:u,ownerWindow:f,eventHandler:m,containerRect:le,slideRects:xe,animation:De,axis:ce,dragHandler:fy(ce,s,u,f,Pt,dy(ce,f),It,De,Ln,gl,Hn,Te,m,he,w,N,H,tt,X),eventStore:Js,percentOfView:he,index:Te,indexPrevious:at,limit:ze,location:It,offsetLocation:Bt,previousLocation:nl,options:d,resizeHandler:py(r,m,f,o,ce,R,W),scrollBody:gl,scrollBounds:gy(ze,Bt,Pt,gl,he),scrollLooper:yy(F,ze,Bt,[It,Bt,nl,Pt]),scrollProgress:pt,scrollSnapList:oe.map(pt.get),scrollSnaps:oe,scrollTarget:Hn,scrollTo:Ln,slideLooper:Ty(ce,K,F,Q,ae,q,oe,Bt,o),slideFocus:Ba,slidesHandler:ky(r,m,Z),slidesInView:Fs,slideIndexes:Oe,slideRegistry:Bn,slidesToScroll:E,target:Pt,translate:Zp(ce,r)};return qn}function Oy(){let s={},r;function o(p){r=p}function u(p){return s[p]||[]}function f(p){return u(p).forEach(y=>y(r,p)),x}function d(p,y){return s[p]=u(p).concat([y]),x}function m(p,y){return s[p]=u(p).filter(v=>v!==y),x}function g(){s={}}const x={init:o,emit:f,off:m,on:d,clear:g};return x}const Dy={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ry(s){function r(d,m){return Qp(d,m||{})}function o(d){const m=d.breakpoints||{},g=Xs(m).filter(x=>s.matchMedia(x).matches).map(x=>m[x]).reduce((x,p)=>r(x,p),{});return r(d,g)}function u(d){return d.map(m=>Xs(m.breakpoints||{})).reduce((m,g)=>m.concat(g),[]).map(s.matchMedia)}return{mergeOptions:r,optionsAtMedia:o,optionsMediaQueries:u}}function Uy(s){let r=[];function o(d,m){return r=m.filter(({options:g})=>s.optionsAtMedia(g).active!==!1),r.forEach(g=>g.init(d,s)),m.reduce((g,x)=>Object.assign(g,{[x.name]:x}),{})}function u(){r=r.filter(d=>d.destroy())}return{init:o,destroy:u}}function br(s,r,o){const u=s.ownerDocument,f=u.defaultView,d=Ry(f),m=Uy(d),g=Qs(),x=Oy(),{mergeOptions:p,optionsAtMedia:y,optionsMediaQueries:v}=d,{on:j,off:w,emit:N}=x,k=ce;let L=!1,H,G=p(Dy,br.globalOptions),R=p(G),Z=[],X,V,Y;function W(){const{container:Oe,slides:te}=R;V=(su(Oe)?s.querySelector(Oe):Oe)||s.children[0];const De=su(te)?V.querySelectorAll(te):te;Y=[].slice.call(De||V.children)}function le(Oe){const te=My(s,V,Y,u,f,Oe,x);if(Oe.loop&&!te.slideLooper.canLoop()){const Ae=Object.assign({},Oe,{loop:!1});return le(Ae)}return te}function xe(Oe,te){L||(G=p(G,Oe),R=y(G),Z=te||Z,W(),H=le(R),v([G,...Z.map(({options:Ae})=>Ae)]).forEach(Ae=>g.add(Ae,"change",ce)),R.active&&(H.translate.to(H.location.get()),H.animation.init(),H.slidesInView.init(),H.slideFocus.init(at),H.eventHandler.init(at),H.resizeHandler.init(at),H.slidesHandler.init(at),H.options.loop&&H.slideLooper.loop(),V.offsetParent&&Y.length&&H.dragHandler.init(at),X=m.init(at,Z)))}function ce(Oe,te){const Ae=E();K(),xe(p({startIndex:Ae},Oe),te),x.emit("reInit")}function K(){H.dragHandler.destroy(),H.eventStore.clear(),H.translate.clear(),H.slideLooper.clear(),H.resizeHandler.destroy(),H.slidesHandler.destroy(),H.slidesInView.destroy(),H.animation.destroy(),m.destroy(),g.clear()}function he(){L||(L=!0,g.clear(),K(),x.emit("destroy"),x.clear())}function Xe(Oe,te,Ae){!R.active||L||(H.scrollBody.useBaseFriction().useDuration(te===!0?0:R.duration),H.scrollTo.index(Oe,Ae||0))}function ie(Oe){const te=H.index.add(1).get();Xe(te,Oe,-1)}function O(Oe){const te=H.index.add(-1).get();Xe(te,Oe,1)}function Q(){return H.index.add(1).get()!==E()}function ae(){return H.index.add(-1).get()!==E()}function pe(){return H.scrollSnapList}function Ne(){return H.scrollProgress.get(H.offsetLocation.get())}function E(){return H.index.get()}function q(){return H.indexPrevious.get()}function J(){return H.slidesInView.get()}function F(){return H.slidesInView.get(!1)}function re(){return X}function fe(){return H}function oe(){return s}function ze(){return V}function Te(){return Y}const at={canScrollNext:Q,canScrollPrev:ae,containerNode:ze,internalEngine:fe,destroy:he,off:w,on:j,emit:N,plugins:re,previousScrollSnap:q,reInit:k,rootNode:oe,scrollNext:ie,scrollPrev:O,scrollProgress:Ne,scrollSnapList:pe,scrollTo:Xe,selectedScrollSnap:E,slideNodes:Te,slidesInView:J,slidesNotInView:F};return xe(r,o),setTimeout(()=>x.emit("init"),0),at}br.globalOptions=void 0;function Mu(s={},r=[]){const o=M.useRef(s),u=M.useRef(r),[f,d]=M.useState(),[m,g]=M.useState(),x=M.useCallback(()=>{f&&f.reInit(o.current,u.current)},[f]);return M.useEffect(()=>{ku(o.current,s)||(o.current=s,x())},[s,x]),M.useEffect(()=>{sy(u.current,r)||(u.current=r,x())},[r,x]),M.useEffect(()=>{if(ny()&&m){br.globalOptions=Mu.globalOptions;const p=br(m,o.current,u.current);return d(p),()=>p.destroy()}else d(void 0)},[m,d]),[g,f]}Mu.globalOptions=void 0;const Kp=4e3;function Jp({box:s,interval:r,advance:o}){const u=M.useRef(o);u.current=o,M.useEffect(()=>{const f=s.current;if(!f||r<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let d=0,m=!0;const g=()=>{d+=1},x=()=>{d=Math.max(0,d-1)},p=window.setInterval(()=>{d>0||document.hidden||!m||u.current()||window.clearInterval(p)},r),y=new IntersectionObserver(([k])=>{m=k.isIntersecting},{threshold:.25});y.observe(f);const v=window.matchMedia("(hover: hover) and (pointer: fine)").matches;v&&(f.addEventListener("pointerenter",g),f.addEventListener("pointerleave",x));let j=!1;const w=k=>{const L=k.target;!(L instanceof Element)||!L.matches(":focus-visible")||j||(j=!0,g())},N=()=>{j&&(j=!1,x())};return f.addEventListener("focusin",w),f.addEventListener("focusout",N),f.addEventListener("pointerdown",g,!0),window.addEventListener("pointerup",x,!0),window.addEventListener("pointercancel",x,!0),()=>{window.clearInterval(p),y.disconnect(),v&&(f.removeEventListener("pointerenter",g),f.removeEventListener("pointerleave",x)),f.removeEventListener("focusin",w),f.removeEventListener("focusout",N),f.removeEventListener("pointerdown",g,!0),window.removeEventListener("pointerup",x,!0),window.removeEventListener("pointercancel",x,!0)}},[s,r])}function Hy(s,r=.85){if(!s)return!1;const o=s.scrollWidth-s.clientWidth;if(o<=8||s.scrollLeft>=o-8)return!1;const u=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return s.scrollBy({left:s.clientWidth*r,behavior:u?"auto":"smooth"}),!0}const Fp=M.createContext(null);function La({label:s,children:r,align:o="start",loop:u=!1,dots:f=!0,arrows:d="header",gap:m=1,autoplay:g=Kp,onSelect:x,onReady:p,className:y}){const v=g===!1?0:g,[j,w]=Mu({align:o,loop:u,containScroll:"trimSnaps",watchDrag:!0}),[N,k]=M.useState([]),[L,H]=M.useState(0),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=M.useRef(null),Y=M.useId();M.useEffect(()=>{var Q;if(!w)return;const ie=()=>{H(w.selectedScrollSnap()),R(w.canScrollPrev()),X(w.canScrollNext())},O=()=>{k(w.scrollSnapList()),ie()};return O(),w.on("select",ie),w.on("reInit",O),(Q=V.current)==null||Q.setAttribute("data-slider","on"),()=>{w.off("select",ie),w.off("reInit",O)}},[w]),M.useEffect(()=>{if(!w)return;const ie=V.current,O=()=>ie==null?void 0:ie.setAttribute("data-dragging","true"),Q=()=>ie==null?void 0:ie.removeAttribute("data-dragging");return w.on("pointerDown",O),w.on("pointerUp",Q),()=>{w.off("pointerDown",O),w.off("pointerUp",Q)}},[w]),Jp({box:V,interval:v,advance:()=>!w||w.scrollSnapList().length<=1?!0:w.canScrollNext()?(w.scrollNext(),!0):!1});const W=M.useCallback(ie=>w==null?void 0:w.scrollTo(ie),[w]),le=M.useRef(x);le.current=x;const xe=M.useRef(p);xe.current=p,M.useEffect(()=>{var O;if(!w)return;const ie=()=>{var Q;return(Q=le.current)==null?void 0:Q.call(le,w.selectedScrollSnap())};return ie(),w.on("select",ie),w.on("reInit",ie),(O=xe.current)==null||O.call(xe,{scrollTo:Q=>w.scrollTo(Q)}),()=>{w.off("select",ie),w.off("reInit",ie)}},[w]);const ce=M.useCallback(()=>w==null?void 0:w.scrollPrev(),[w]),K=M.useCallback(()=>w==null?void 0:w.scrollNext(),[w]),he=N.length>1,Xe=f&&he&&N.length<=12;return n.jsxs("div",{className:y,children:[d==="header"&&he&&n.jsxs("div",{className:"mb-3 flex justify-end gap-2",children:[n.jsx(np,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(np,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]}),n.jsxs("div",{className:"relative",children:[n.jsx("div",{ref:ie=>{V.current=ie,j(ie)},className:"slider-viewport",role:"group","aria-roledescription":"์บ๋Ÿฌ์…€","aria-label":s,tabIndex:0,onKeyDown:ie=>{ie.key==="ArrowLeft"&&(ie.preventDefault(),ce()),ie.key==="ArrowRight"&&(ie.preventDefault(),K())},children:n.jsx("div",{className:"slider-track",style:{gap:u?0:`${m}rem`},id:Y,children:n.jsx(Fp.Provider,{value:u?m:null,children:r})})}),d==="overlay"&&he&&n.jsxs(n.Fragment,{children:[n.jsx(sp,{dir:"prev",onClick:ce,disabled:!u&&!G,label:s}),n.jsx(sp,{dir:"next",onClick:K,disabled:!u&&!Z,label:s})]})]}),he&&n.jsxs("div",{className:"mt-4 flex items-center justify-center gap-3",children:[Xe&&n.jsx("ul",{className:"flex items-center gap-1.5",children:N.map((ie,O)=>n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>W(O),"aria-label":`${O+1}๋ฒˆ์งธ๋กœ`,"aria-current":O===L,"aria-controls":Y,className:`h-1.5 rounded-full transition-all ${O===L?"w-6 bg-current opacity-100":"w-1.5 bg-current opacity-20 hover:opacity-100"}`})},O))}),n.jsxs("span",{className:"text-current/80 text-[length:var(--fs-xs)] tabular-nums",children:[L+1," / ",N.length]})]})]})}function Ks({basis:s,children:r}){const o=M.useContext(Fp);return n.jsx("div",{className:`min-w-0 shrink-0 grow-0 ${s}`,style:o!=null?{marginInlineEnd:`${o}rem`}:void 0,"aria-roledescription":"์Šฌ๋ผ์ด๋“œ",children:r})}function np({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"์ด์ „":"๋‹ค์Œ"}`,className:"tap border-line flex items-center justify-center rounded-full border transition-opacity hover:opacity-100 disabled:opacity-25",children:n.jsx(f,{className:"size-5"})})}function sp({dir:s,onClick:r,disabled:o,label:u}){const f=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":`${u} ${s==="prev"?"์ด์ „":"๋‹ค์Œ"}`,className:`tap absolute top-1/2 z-10 hidden -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:opacity-0 sm:flex ${s==="prev"?"left-2":"right-2"}`,children:n.jsx(f,{className:"size-5"})})}function Ou({children:s,className:r="",as:o="div"}){return n.jsx(o,{className:`panel ${r}`,children:s})}function Du({children:s}){return n.jsx("span",{className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/5 px-2.5 py-1 text-[length:var(--fs-xs)]",children:s})}function Wp({label:s,value:r,note:o}){return n.jsxs("div",{className:"divide-line flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:justify-between sm:gap-6",children:[n.jsx("dt",{className:"text-muted shrink-0 text-[length:var(--fs-sm)] font-medium sm:w-40",children:s}),n.jsxs("dd",{className:"flex-1 text-[length:var(--fs-sm)] font-semibold sm:text-right",children:[r,o&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:o})]})]})}function ip({href:s,children:r,variant:o="solid",external:u,icon:f}){const d=o==="solid";return n.jsxs("a",{href:s,...u?{target:"_blank",rel:"noopener noreferrer"}:{},className:`tap inline-flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-semibold transition-opacity hover:opacity-100 ${d?"":"border-line tpl-border border bg-current/5"}`,style:d?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:[f,n.jsx("span",{children:r}),u&&n.jsx(Ll,{className:"size-4 shrink-0"})]})}function Ip({children:s,initial:r=3,label:o}){const[u,f]=M.useState(!1),d=Math.max(0,s.length-r);return n.jsxs(n.Fragment,{children:[s.map((m,g)=>n.jsx("div",{style:{display:u||g0&&n.jsx("button",{type:"button",onClick:()=>f(!0),className:"tap border-line tpl-border mt-3 w-full rounded-lg border text-[length:var(--fs-sm)] font-bold",children:o?o(d):`${d}๊ฐœ ๋” ๋ณด๊ธฐ`})]})}function ma({open:s,onClose:r,label:o,title:u,children:f,wide:d}){return M.useEffect(()=>{if(!s)return;const m=w=>{w.key==="Escape"&&r()},g=window.scrollY,x=document.body,p=x.style.position,y=x.style.top,v=x.style.width,j=x.style.overflow;return x.style.position="fixed",x.style.top=`-${g}px`,x.style.width="100%",x.style.overflow="hidden",window.addEventListener("keydown",m),()=>{x.style.position=p,x.style.top=y,x.style.width=v,x.style.overflow=j,window.scrollTo(0,g),window.removeEventListener("keydown",m)}},[s,r]),s?n.jsxs("div",{className:"fixed inset-0 z-[60]",children:[n.jsx("button",{type:"button","aria-label":"๋‹ซ๊ธฐ",onClick:r,className:"absolute inset-0 bg-black/55"}),n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":o,className:`absolute inset-x-0 bottom-0 flex max-h-[88svh] flex-col overflow-hidden rounded-t-2xl sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:max-h-[85vh] sm:w-full sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-2xl ${d?"sm:max-w-3xl":"sm:max-w-lg"}`,style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("div",{className:"border-line flex shrink-0 items-center justify-between gap-3 border-b p-5 pb-4",children:[u&&n.jsx("h3",{className:"h3 min-w-0 truncate",children:u}),n.jsx("button",{type:"button",onClick:r,"aria-label":"๋‹ซ๊ธฐ",className:"tap ml-auto flex size-10 shrink-0 items-center justify-center rounded-full shadow-md",style:{backgroundColor:"var(--color-surface)",boxShadow:"0 1px 2px rgba(0,0,0,.18), 0 0 0 1px color-mix(in oklab, currentColor 12%, transparent)"},children:n.jsx(yr,{className:"size-5"})})]}),n.jsx("div",{className:"overflow-y-auto p-5 pb-8",children:f})]})]}):null}function Ly(){const s=P(),{narrative:r,place:o}=s,u=pv(s,"intro"),f=u.length>0?u:r.about;if(f.length===0)return null;const d=yu(s).find(g=>!g.isPrimary),m=r.heroSubline??`${o.name} ์†Œ๊ฐœ`;return n.jsx(rt,{id:"about",bare:!0,title:m,children:n.jsxs("div",{className:"grid grid-cols-1 items-center gap-8 lg:grid-cols-12 lg:gap-14",children:[d&&n.jsxs("figure",{className:"lg:col-span-7",children:[n.jsx("div",{className:"tpl-border border-line relative aspect-4/3 max-h-[26rem] overflow-hidden rounded-xl border lg:aspect-3/2",children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"size-full object-cover"})}),d.caption&&n.jsx("figcaption",{className:"text-muted mt-2 text-[length:var(--fs-xs)]",children:d.caption})]}),n.jsxs("div",{className:d?"lg:col-span-5":"lg:col-span-12",children:[n.jsxs("h2",{id:"about-heading",className:"h2 mb-6 flex items-center gap-2.5",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0 bg-current opacity-25"}),n.jsx("span",{className:"min-w-0",children:m})]}),n.jsx("div",{className:"measure space-y-4 text-[length:var(--fs-lead)] leading-[1.8]",children:f.map((g,x)=>n.jsx("p",{children:g},x))})]})]})})}const By={spr:"#4f7942",sum:"#c9820a",aut:"#bf2f1b",win:"#3b6ea5"};function qy(s){return s>=3&&s<=5?"spr":s>=6&&s<=8?"sum":s>=9&&s<=11?"aut":"win"}function Pp(s){const[,r,o]=Dn(s).split("-").map(Number),u=new Intl.DateTimeFormat("ko-KR",{weekday:"long",timeZone:"Asia/Seoul"}).format(new Date(s));return{month:r,day:o,weekday:u}}function rp(){const s=P(),r=s.posts??[],[o,u]=M.useState(null);if(r.length===0)return null;const f=r.find(g=>g.postId===o)??null,d=f?Pp(f.publishedAt):null,m=d?`${d.month}์›” ${d.day}์ผ ยท ${d.weekday}`:"";return n.jsxs(rt,{id:"blog",tone:"alt",title:"๋ฏธ๋‹ˆ ๋ธ”๋กœ๊ทธ",lead:"์‚ฌ์žฅ๋‹˜์ด ๋‚จ๊ธฐ๋Š” ์ˆ™์†Œ ์ด์•ผ๊ธฐ์ž…๋‹ˆ๋‹ค.",children:[n.jsx(La,{label:`${s.place.name} ๋ฏธ๋‹ˆ ๋ธ”๋กœ๊ทธ`,align:"start",gap:.875,loop:!0,children:r.map(g=>n.jsx(Ks,{basis:"basis-[225px]",children:n.jsx($y,{post:g,onOpen:()=>u(g.postId)})},g.postId))}),n.jsx(ma,{open:f!=null,onClose:()=>u(null),label:`๋ฏธ๋‹ˆ ๋ธ”๋กœ๊ทธ ยท ${m}`,title:m,children:f&&n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-body)] leading-relaxed",children:f.body})})]})}function $y({post:s,onOpen:r}){const{month:o,day:u,weekday:f}=Pp(s.publishedAt),d=qy(o),m=By[d],g=`${o}์›” ${u}์ผ ยท ${f}`;return n.jsxs("button",{type:"button",onClick:r,className:"panel flex aspect-square w-full flex-col gap-2 p-4 text-left",style:{backgroundColor:`color-mix(in srgb, ${m} 9%, var(--tpl-card, #efe7d3))`},children:[n.jsx("time",{dateTime:s.publishedAt,className:"block shrink-0 text-[length:var(--fs-xs)] font-bold tracking-wide",style:{color:m},children:g}),n.jsx("p",{className:"line-clamp-5 min-h-0 flex-1 whitespace-pre-line break-keep text-[length:var(--fs-xs)] leading-relaxed",children:s.body})]})}const Yy=new Set(["๊ฐ€๋Šฅ","๋ถˆ๊ฐ€","์žˆ์Œ","์—†์Œ"]),Ko=s=>!s.note&&Yy.has(s.value.trim()),Gy=new Set(["์ฒดํฌ์ธ ยท ์ฒดํฌ์•„์›ƒ","์ฒดํฌ์ธ ์‹œ๊ฐ„","์ฒดํฌ์•„์›ƒ ์‹œ๊ฐ„","์ทจ์†Œยทํ™˜๋ถˆ ๊ทœ์ •","์ทจ์‚ฌ ๊ฐ€๋Šฅ","๋ฐ˜๋ ค๋™๋ฌผ ๋™๋ฐ˜","ํก์—ฐ ๊ฐ€๋Šฅ","์ธ์› ์ถ”๊ฐ€ ์š”๊ธˆ"]);function Xy(s){const r=s.find(u=>u.key==="check_in_time"),o=s.find(u=>u.key==="check_out_time");return!r||!o?s:s.map(u=>u.key==="check_in_time"?{key:u.key,label:"์ฒดํฌ์ธ ยท ์ฒดํฌ์•„์›ƒ",value:`${r.value} ยท ${o.value}`}:u).filter(u=>u.key!=="check_out_time")}function Qy(){var j,w;const s=P(),r=bu(s),o=An(s.facts).find(N=>N.key==="intro"),u=((j=o==null?void 0:o.summary)==null?void 0:j.trim())||((w=o==null?void 0:o.value)==null?void 0:w.trim())||s.narrative.summary||Cv(s),f=s.links.filter(N=>{var k,L,H;return N.confirmed&&[(k=N.stayGuide)==null?void 0:k.policy,(L=N.stayGuide)==null?void 0:L.service,(H=N.stayGuide)==null?void 0:H.reservation].some(G=>G==null?void 0:G.trim())}),d=f.flatMap(N=>{var k;return((k=N.stayGuide)==null?void 0:k.fields)??[]}),m=Xy([...r]),g=new Set(r.map(N=>N.key));for(const N of d)g.has(N.key)||(m.push(N),g.add(N.key));const x=N=>Ko(N)?!1:Gy.has(N.label)||d.some(k=>k.key===N.key&&k.group==="rules"),p=f.map(N=>{var k;return((k=N.stayGuide)==null?void 0:k.reservation)??""}).filter(N=>N.trim());if(r.length===0&&d.length===0&&p.length===0)return null;const y=m.filter(x),v=m.filter(N=>!x(N)&&N.key!=="intro");return n.jsx(rt,{id:"info",tone:"alt",title:"์ด์šฉ์•ˆ๋‚ด",lead:"๋ฐฉ๋ฌธ ์ „ ํ™•์ธ์ด ํ•„์š”ํ•œ ์šด์˜ ๊ทœ์ •๊ณผ ์‹œ์„ค ์•ˆ๋‚ด์ž…๋‹ˆ๋‹ค.",children:n.jsxs("div",{className:"space-y-8",children:[u&&n.jsx("p",{className:"measure text-[length:var(--fs-body)] leading-relaxed",children:u}),y.length>0&&n.jsx(cp,{title:"์˜ˆ์•ฝ ์ „ ํ™•์ธ",rows:y,emphasis:!0}),v.length>0&&n.jsx(cp,{title:"์‹œ์„ค ยท ํŽธ์˜",rows:v.filter(N=>!Ko(N)),children:n.jsx(Ky,{rows:v.filter(Ko)})}),p.map(N=>n.jsx(Jy,{text:N},N.slice(0,32)))]})})}function cp({title:s,rows:r,emphasis:o,children:u}){return n.jsxs("section",{children:[n.jsxs("h3",{className:"border-line mb-3 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[o&&n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{children:s})]}),u,r.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:r.map((f,d)=>{const m=!f.note&&f.value.length<=24;return n.jsxs("div",{className:m?"flex flex-row items-baseline gap-3 py-2.5 sm:gap-6":"flex flex-col gap-1 py-3 sm:flex-row sm:items-baseline sm:gap-6",children:[n.jsx("dt",{className:`text-muted text-[length:var(--fs-sm)] ${m?"w-24 shrink-0 sm:w-40":"sm:w-40 sm:shrink-0"}`,children:f.label}),n.jsxs("dd",{className:"measure min-w-0 whitespace-pre-line break-words text-[length:var(--fs-sm)] font-semibold",children:[f.value,f.note&&n.jsx("span",{className:"text-muted mt-0.5 block font-normal",children:f.note})]})]},`${f.label}-${d}`)})})]})}const Jo=new Set(["๊ฐ€๋Šฅ","์žˆ์Œ"]),Vy="#16a34a",Zy="#e04b25";function Ky({rows:s}){if(s.length===0)return null;const r=[...s].sort((o,u)=>Number(Jo.has(u.value))-Number(Jo.has(o.value)));return n.jsx("ul",{className:"mb-2 grid grid-cols-2 gap-x-5 sm:grid-cols-3 lg:grid-cols-4",children:r.map(o=>{const u=Jo.has(o.value),f=u?Vy:Zy;return n.jsxs("li",{className:"flex items-center gap-2 py-2 text-[length:var(--fs-sm)]",children:[u?n.jsx(du,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}):n.jsx(yr,{className:"size-4 shrink-0",style:{color:f},"aria-hidden":!0}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"font-semibold",children:o.label})," ",o.value]})]},o.key??o.label)})})}function Jy({text:s}){return s.trim()?n.jsxs("details",{className:"panel group overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-2 px-4 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("i",{"aria-hidden":!0,className:"h-[1em] w-[3px] shrink-0",style:{backgroundColor:"var(--color-accent)"}}),n.jsx("span",{className:"flex-1",children:"์˜ˆ์•ฝ ๊ณต์ง€"}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line whitespace-pre-line border-t px-4 pb-4 pt-3 text-[length:var(--fs-sm)] leading-relaxed",children:s})]}):null}const Fy="/v1/site/booking-request";function Wy({stay:s,guests:r}){const o=P(),u=M.useRef(Date.now()),[f,d]=M.useState(!1),[m,g]=M.useState(null);M.useEffect(()=>{u.current=Date.now()},[]);async function x(p){if(p.preventDefault(),f)return;const y=new FormData(p.currentTarget);d(!0);try{const j=await(await fetch(Fy,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:o.site.placeId,name:String(y.get("name")??""),phone:String(y.get("phone")??""),email:String(y.get("email")??"")||null,stay:s??(String(y.get("stay")??"")||null),guests:r??(String(y.get("guests")??"")||null),message:String(y.get("message")??"")||null,consent:y.get("consent")==="on",company:String(y.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();g({ok:!!(j!=null&&j.success),message:String((j==null?void 0:j.message)??"")})}catch{g({ok:!1,message:"์ง€๊ธˆ์€ ์ „๋‹ฌํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค. ์ „ํ™”๋กœ ๋ฌธ์˜ํ•ด ์ฃผ์„ธ์š”."})}finally{d(!1)}}return m!=null&&m.ok?n.jsxs("div",{className:"border-line tpl-border rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:m.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"์˜ˆ์•ฝ์ด ํ™•์ •๋œ ๊ฒƒ์€ ์•„๋‹™๋‹ˆ๋‹ค. ์‚ฌ์žฅ๋‹˜์ด ํ™•์ธ ํ›„ ์—ฐ๋ฝ๋“œ๋ฆฝ๋‹ˆ๋‹ค."})]}):n.jsxs("form",{onSubmit:x,className:"border-line tpl-border flex flex-col gap-3 rounded-lg border p-5",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:"์˜ˆ์•ฝ ์š”์ฒญํ•˜๊ธฐ"}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"๋นˆ ๋ฐฉ์„ ํ™•์ธํ•ด ์‚ฌ์žฅ๋‹˜์ด ์ง์ ‘ ์—ฐ๋ฝ๋“œ๋ฆฝ๋‹ˆ๋‹ค."})]}),s||r?n.jsx("p",{className:"border-line tpl-border rounded-lg border px-4 py-3 text-[length:var(--fs-sm)] font-semibold",children:[s,r].filter(Boolean).join(" ยท ")}):n.jsxs(n.Fragment,{children:[n.jsx(Rs,{id:"br-stay",label:"๋‚ ์งœ",name:"stay",placeholder:"9์›” 20์ผ โ€“ 21์ผ"}),n.jsx(Rs,{id:"br-guests",label:"์ธ์›",name:"guests",placeholder:"์„ฑ์ธ 2๋ช…"})]}),n.jsx(Rs,{id:"br-name",label:"์„ฑํ•จ",name:"name",placeholder:"์ด๋ฆ„์„ ์ ์–ด ์ฃผ์„ธ์š”",required:!0}),n.jsx(Rs,{id:"br-phone",label:"์—ฐ๋ฝ์ฒ˜",name:"phone",type:"tel",placeholder:"010-0000-0000",required:!0,hint:"์‚ฌ์žฅ๋‹˜์ด ์ „ํ™”๋“œ๋ฆด ๋ฒˆํ˜ธ์ž…๋‹ˆ๋‹ค."}),n.jsx(Rs,{id:"br-email",label:"์ด๋ฉ”์ผ",name:"email",type:"email",placeholder:"์„ ํƒ โ€” ๋‹ต๋ณ€์„ ๋ฉ”์ผ๋กœ๋„ ๋ฐ›์Šต๋‹ˆ๋‹ค"}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"br-message",className:"text-[length:var(--fs-sm)] font-bold",children:"์š”์ฒญ์‚ฌํ•ญ"}),n.jsx("textarea",{id:"br-message",name:"message",rows:3,maxLength:1e3,placeholder:"๋Šฆ์€ ๋„์ฐฉ, ์ฃผ์ฐจ ๋Œ€์ˆ˜ ๋“ฑ",className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"br-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"br-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"์˜ˆ์•ฝ ์ƒ๋‹ด์„ ์œ„ํ•œ ์—ฐ๋ฝ์ฒ˜ ์ˆ˜์ง‘ยท์ด์šฉ์— ๋™์˜ํ•ฉ๋‹ˆ๋‹ค. ์ƒ๋‹ด์ด ๋๋‚˜๋ฉด ํŒŒ๊ธฐํ•ฉ๋‹ˆ๋‹ค."})]}),m&&!m.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:m.message}),n.jsx("button",{type:"submit",disabled:f,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:f?"๋ณด๋‚ด๋Š” ์ค‘โ€ฆ":"์˜ˆ์•ฝ ์š”์ฒญ ๋ณด๋‚ด๊ธฐ"}),n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:"์˜ˆ์•ฝ์ด ํ™•์ •๋˜๋Š” ๊ฒƒ์€ ์•„๋‹™๋‹ˆ๋‹ค. ์‚ฌ์žฅ๋‹˜ ํ™•์ธ ํ›„ ์—ฐ๋ฝ๋“œ๋ฆฝ๋‹ˆ๋‹ค."})]})}function Rs({id:s,label:r,name:o,placeholder:u,type:f="text",required:d,hint:m}){return n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:s,className:"text-[length:var(--fs-sm)] font-bold",children:[r,!d&&n.jsx("span",{className:"text-muted font-normal",children:" (์„ ํƒ)"})]}),n.jsx("input",{id:s,name:o,type:f,required:d,maxLength:60,placeholder:u,className:"border-line w-full min-w-0 rounded border p-2.5 text-[length:var(--fs-sm)]",style:{backgroundColor:"var(--color-surface)"}}),m&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:m})]})}const Fo=["์ผ","์›”","ํ™”","์ˆ˜","๋ชฉ","๊ธˆ","ํ† "],op=2;function up(s){return`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`}function Iy(s,r,o){const u=new Date(s,r,1),f=new Date(s,r+1,0).getDate(),d=up(o),m=Array.from({length:u.getDay()},()=>null);for(let g=1;g<=f;g+=1){const x=new Date(s,r,g),p=up(x);m.push({iso:p,day:g,weekday:x.getDay(),isWeekend:x.getDay()===0||x.getDay()===6,past:po+d).filter(f=>f<=23).map(f=>`${String(f).padStart(2,"0")}:${u}`):[]}function Wo(s){return s.replace(/\s*\(.*\)\s*$/,"").trim()||s}function e1(s){return xu(s.units).map(r=>{var u;const o=f=>{var m;const d=Number((m=_t(r.facts,f))==null?void 0:m.replace(/[^0-9]/g,""));return Number.isFinite(d)&&d>0?d:void 0};return{unitId:r.unitId,name:r.name,weekdayPrice:(u=Lp(r))==null?void 0:u.price,weekendPrice:o("weekend_price"),maxCapacity:o("max_capacity")}})}function Er(){var ce;const s=P(),r=M.useMemo(()=>e1(s),[s]),o=M.useMemo(()=>{var K;return((K=An(s.facts).find(he=>he.key==="check_in_time"))==null?void 0:K.value)??void 0},[s]),u=M.useMemo(()=>Py(o),[o]),[f,d]=M.useState(null),[m,g]=M.useState(0);M.useEffect(()=>d(new Date),[]);const x=M.useMemo(()=>f?new Date(f.getFullYear(),f.getMonth()+m,1):null,[f,m]),p=M.useMemo(()=>f&&x?Iy(x.getFullYear(),x.getMonth(),f):[],[f,x]),[y,v]=M.useState(null),[j,w]=M.useState(null),[N,k]=M.useState(((ce=r[0])==null?void 0:ce.unitId)??null),[L,H]=M.useState(2),[G,R]=M.useState(!1),[Z,X]=M.useState(!1),V=p.find(K=>K!==null&&K.iso===y)??null,Y=r.find(K=>K.unitId===N)??null,W=(Y==null?void 0:Y.maxCapacity)??8,le=V&&Y?V.isWeekend?Y.weekendPrice??Y.weekdayPrice:Y.weekdayPrice:void 0,xe=!!(y&&Y&&(u.length===0||j));return M.useEffect(()=>{H(K=>Math.min(K,(Y==null?void 0:Y.maxCapacity)??8))},[Y]),r.length===0?null:n.jsxs("div",{className:"mt-4 overflow-hidden rounded-2xl border border-black/8 lg:mt-6",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("button",{type:"button",onClick:()=>X(K=>!K),"aria-expanded":Z,className:"tap flex w-full items-center gap-2 border-b border-black/8 px-4 text-[length:var(--fs-sm)] font-bold sm:px-5",children:[n.jsx(Vb,{className:"size-4 opacity-100"}),n.jsx("span",{className:"flex-1 text-left",children:"๋‚ ์งœ ยท ์‹œ๊ฐ„ ์„ ํƒ"}),n.jsx("span",{className:"opacity-100",children:Z?"โˆ’":"+"})]}),f===null||x===null?n.jsx("p",{className:"px-4 py-6 text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:px-5",children:"๋‚ ์งœ ์„ ํƒ์€ ๋ธŒ๋ผ์šฐ์ €์—์„œ ์—ด๋ฆฝ๋‹ˆ๋‹ค. ์‹ค์ œ ์˜ˆ์•ฝ ๊ฐ€๋Šฅ ์—ฌ๋ถ€์™€ ๊ฒฐ์ œ๋Š” ์•„๋ž˜ ์˜ˆ์•ฝ ์ฐฝ๊ตฌ์—์„œ ํ™•์ธํ•ด ์ฃผ์„ธ์š”."}):!Z&&!G?null:G?n.jsx(t1,{payload:s,onReset:()=>R(!1),stay:[V?`${x.getMonth()+1}์›” ${V.day}์ผ(${Fo[V.weekday]})`:null,j?`๋„์ฐฉ ${j}`:null,Y?Wo(Y.name):null].filter(Boolean).join(" ยท "),guests:`${L}๋ช…`,summary:[V?`${x.getMonth()+1}์›” ${V.day}์ผ(${Fo[V.weekday]})`:null,j?`๋„์ฐฉ ${j}`:null,Y?Wo(Y.name):null,`${L}๋ช…`].filter(K=>!!K).join(" ยท ")}):n.jsxs("div",{className:"space-y-5 p-4 sm:p-5",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"๋‚ ์งœ"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{type:"button",onClick:()=>g(K=>Math.max(0,K-1)),disabled:m===0,"aria-label":"์ด์ „ ๋‹ฌ",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(_n,{className:"size-3.5"})}),n.jsxs("span",{className:"w-24 text-center text-[length:var(--fs-xs)] font-bold",children:[x.getFullYear(),"๋…„ ",x.getMonth()+1,"์›”"]}),n.jsx("button",{type:"button",onClick:()=>g(K=>Math.min(op,K+1)),disabled:m>=op,"aria-label":"๋‹ค์Œ ๋‹ฌ",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-30",children:n.jsx(Ua,{className:"size-3.5"})})]})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 border-b border-black/8 pb-1.5",children:Fo.map((K,he)=>n.jsx("span",{className:"text-center text-[length:var(--fs-xs)] font-semibold",style:{opacity:he===0||he===6?.75:.45},children:K},K))}),n.jsx("div",{className:"mt-1.5 grid grid-cols-7 gap-1",children:p.map((K,he)=>K===null?n.jsx("span",{"aria-hidden":!0},`pad-${he}`):n.jsx("button",{type:"button",disabled:K.past,onClick:()=>v(K.iso),"aria-pressed":K.iso===y,"aria-label":`${x.getMonth()+1}์›” ${K.day}์ผ`,className:"flex h-9 items-center justify-center rounded-lg border text-[length:var(--fs-xs)] transition-colors disabled:cursor-not-allowed",style:{borderColor:K.iso===y?"var(--color-brand)":"transparent",backgroundColor:K.iso===y?"var(--color-brand)":"var(--color-surface-alt)",color:K.iso===y?"#fff":void 0,opacity:K.past?.25:1,fontWeight:K.iso===y?700:400},children:K.day},K.iso))}),(V==null?void 0:V.isWeekend)&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:"์ฃผ๋ง ์š”๊ธˆ์ด ์ ์šฉ๋˜๋Š” ๋‚ ์งœ์ž…๋‹ˆ๋‹ค."})]}),u.length>0&&n.jsxs("div",{children:[n.jsxs("p",{className:"mb-2 flex items-center gap-1.5 text-[length:var(--fs-xs)] font-semibold opacity-100",children:[n.jsx(e0,{className:"size-3"}),n.jsxs("span",{children:["๋„์ฐฉ ์˜ˆ์ • ์‹œ๊ฐ„ (์ฒดํฌ์ธ ",o," ์ดํ›„)"]})]}),n.jsx("ul",{className:"flex flex-wrap gap-1.5",children:u.map(K=>{const he=K===j;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>w(K),"aria-pressed":he,className:"rounded-lg border px-3 py-1.5 text-[length:var(--fs-xs)] font-medium transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:he?"var(--color-brand)":"var(--color-surface-alt)",color:he?"#fff":void 0},children:K})},K)})})]}),n.jsxs("div",{children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] font-semibold opacity-100",children:"๊ฐ์‹ค"}),n.jsx("ul",{className:"grid gap-1.5 sm:grid-cols-2",children:r.map(K=>{const he=K.unitId===N;return n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:()=>k(K.unitId),"aria-pressed":he,className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2.5 text-left text-[length:var(--fs-xs)] transition-colors",style:{borderColor:he?"var(--color-brand)":"rgba(0,0,0,0.10)",backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{className:"min-w-0 truncate font-semibold",children:K.name}),K.maxCapacity&&n.jsxs("span",{className:"shrink-0 opacity-100",children:["์ตœ๋Œ€ ",K.maxCapacity,"๋ช…"]})]})},K.unitId)})})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-semibold opacity-100",children:"์ธ์›"}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("button",{type:"button",onClick:()=>H(K=>Math.max(1,K-1)),"aria-label":"์ธ์› ์ค„์ด๊ธฐ",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(b0,{className:"size-3.5"})}),n.jsxs("span",{className:"w-10 text-center text-[length:var(--fs-sm)] font-bold",children:[L,"๋ช…"]}),n.jsx("button",{type:"button",onClick:()=>H(K=>Math.min(W,K+1)),"aria-label":"์ธ์› ๋Š˜๋ฆฌ๊ธฐ",className:"flex size-7 items-center justify-center rounded-lg border border-black/10 transition-colors hover:bg-black/5",children:n.jsx(w0,{className:"size-3.5"})})]})]}),n.jsxs("div",{className:"rounded-xl border border-black/8 p-3",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:V?`${x.getMonth()+1}์›” ${V.day}์ผ ยท ${Y?Wo(Y.name):""} ยท ${L}๋ช…`:"๋‚ ์งœ๋ฅผ ๊ณจ๋ผ ์ฃผ์„ธ์š”"}),le!=null&&n.jsxs("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:[le.toLocaleString("ko-KR"),"์›"]})]}),le!=null&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:"1๋ฐ• ๊ธฐ์ค€ ์•ˆ๋‚ด ์š”๊ธˆ์ž…๋‹ˆ๋‹ค. ์ธ์› ์ถ”๊ฐ€ยท์„ฑ์ˆ˜๊ธฐ ์š”๊ธˆ์€ ์˜ˆ์•ฝ ์ฐฝ๊ตฌ์—์„œ ํ™•์ธ๋ฉ๋‹ˆ๋‹ค."})]}),n.jsx("button",{type:"button",disabled:!xe,onClick:()=>R(!0),className:"w-full rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity disabled:cursor-not-allowed disabled:opacity-40",style:{backgroundColor:"var(--color-brand)"},children:"์˜ˆ์•ฝ ์š”์ฒญ ํ™•์ธํ•˜๊ธฐ"})]})]})}function t1({payload:s,summary:r,stay:o,guests:u,onReset:f}){const d=s.place.phone;return n.jsxs("div",{className:"space-y-4 p-4 sm:p-5",children:[n.jsxs("div",{className:"flex items-start gap-2.5",children:[n.jsx("span",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-white",style:{backgroundColor:"var(--color-brand)"},children:n.jsx(du,{className:"size-4"})}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"์˜ˆ์•ฝ ๋‚ด์šฉ ํ™•์ธ"}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:r})]})]}),n.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[d&&n.jsxs("a",{href:`tel:${d}`,className:"flex flex-1 items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["์ „ํ™”๋กœ ์˜ˆ์•ฝํ•˜๊ธฐ ",d]})]}),n.jsxs("button",{type:"button",onClick:f,className:"tap flex items-center justify-center gap-1.5 rounded-xl border border-black/10 px-4 text-[length:var(--fs-sm)] font-semibold transition-colors hover:bg-black/5",children:[n.jsx(z0,{className:"size-4"}),n.jsx("span",{children:"๋‹ค์‹œ ๊ณ ๋ฅด๊ธฐ"})]})]}),n.jsx(Wy,{stay:o,guests:u})]})}function l1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx(rt,{id:"units",title:$e(s,r.path,`${r.label} ์•ˆ๋‚ด`),children:n.jsx("ul",{className:"mt-2 flex flex-col gap-14 lg:gap-20",children:o.map((f,d)=>n.jsxs("li",{className:"grid items-center gap-7 lg:grid-cols-12 lg:gap-12",children:[n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-2":""}`,children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 rounded-lg overflow-hidden",children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),f.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:f.images.slice(1,4).map(m=>n.jsx("li",{className:"relative aspect-16/10 rounded-md overflow-hidden",children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]}),n.jsxs("div",{className:`lg:col-span-6 ${d%2===1?"lg:order-1":""}`,children:[n.jsx("h3",{className:"h2",children:f.name}),f.intro&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-body)] leading-relaxed opacity-100",children:f.intro}),f.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:m.label}),n.jsx("span",{className:"font-medium",children:m.value})]})},m.label))}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,f.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border inline-flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"์ „ํ™”"})]})]}),f.rows.length>0&&n.jsxs("details",{className:"group border-line mt-4 border-t pt-2",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-semibold",children:[n.jsxs("span",{children:[f.name," ๊ตฌ์„ฑ ์ž์„ธํžˆ"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right font-semibold",children:m.value})]},m.label))})]})]})]},f.unitId))})})}function a1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0],[f,d]=M.useState(0);return o.length===0?null:n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ์•ˆ๋‚ด`),children:[n.jsx("div",{className:"border-line mb-6 flex gap-1 border-b",role:"tablist","aria-label":r.label,children:o.map((m,g)=>n.jsx("button",{type:"button",role:"tab","aria-selected":g===f,"aria-controls":`unit-panel-${m.slug}`,onClick:()=>d(g),className:`tap -mb-px border-b-2 px-5 text-[length:var(--fs-sm)] font-bold transition-colors ${g===f?"opacity-100":"border-transparent opacity-100 hover:opacity-100"}`,style:g===f?{borderColor:"var(--color-brand)"}:void 0,children:m.name},m.unitId))}),o.map((m,g)=>n.jsxs("div",{id:`unit-panel-${m.slug}`,role:"tabpanel",hidden:g!==f,className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"lg:col-span-7",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden rounded-lg",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),m.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-3 gap-2",children:m.images.slice(1,4).map(x=>n.jsx("li",{className:"relative aspect-16/10 overflow-hidden rounded-md",children:n.jsx("img",{src:x.url,alt:x.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},x.mediaId))})]}),n.jsxs("div",{className:"lg:col-span-5",children:[n.jsx("h3",{className:"h3",children:m.name}),m.intro&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"mt-4 flex flex-wrap items-center gap-1.5",children:m.chips.map(x=>n.jsx("li",{children:n.jsxs(Du,{children:[n.jsx("span",{className:"text-muted",children:x.label}),n.jsx("span",{className:"font-medium",children:x.value})]})},x.label))}),m.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-4 divide-y border-t",children:m.rows.map(x=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:x.label}),n.jsx("dd",{className:"text-right font-semibold",children:x.value})]},x.label))}),n.jsxs("div",{className:"mt-5 flex gap-2",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-lg px-6 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u,m.name)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-1.5 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"์ „ํ™”"})]})]})]})]},m.unitId))]})}function n1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];if(o.length===0)return null;const f=o.length===1?"grid-cols-1 max-w-2xl mx-auto":o.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",d=Lt(s,"info")?[]:bu(s);return n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"border-line paper w-full border-b",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"calc(var(--section-space) * 1.4)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(wu,{id:"units",title:$e(s,r.path,`${r.label} ์•ˆ๋‚ด`)}),n.jsx("ul",{className:`grid gap-x-8 gap-y-14 lg:gap-x-12 ${f}`,children:o.map(m=>n.jsxs("li",{className:"flex min-w-0 flex-col",children:[m.images[0]&&n.jsx("div",{className:"relative aspect-4/3 w-full overflow-hidden",children:n.jsx("img",{src:m.images[0].url,alt:m.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})}),n.jsx("h3",{className:"serif mt-6",style:{fontSize:"var(--fs-h3)",fontWeight:300,letterSpacing:"0.04em"},children:m.name}),m.intro&&n.jsx("p",{className:"text-muted mt-3 line-clamp-2 text-[length:var(--fs-sm)] font-light leading-loose",children:m.intro}),m.chips.length>0&&n.jsx("ul",{className:"text-muted mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)] font-light",children:m.chips.map(g=>n.jsxs("li",{children:[g.label," ",g.value]},g.label))}),(m.rows.length>0||m.images.length>1)&&n.jsxs("details",{className:"border-line mt-5 border-t",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center text-[length:var(--fs-sm)] font-light opacity-100 marker:content-none [&::-webkit-details-marker]:hidden",children:"์ž์„ธํžˆ ๋ณด๊ธฐ"}),n.jsxs("div",{className:"space-y-6 pb-2",children:[m.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:m.rows.map(g=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:g.label}),n.jsx("dd",{className:"text-right",children:g.value})]},g.label))}),m.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-3",children:m.images.slice(1).map(g=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",children:n.jsx("img",{src:g.url,alt:g.alt,loading:"lazy",decoding:"async",className:"size-full object-cover object-center"})},g.mediaId))})]})]})]},m.unitId))}),d.length>0&&n.jsx("dl",{className:"divide-line border-line mx-auto mt-16 max-w-2xl divide-y border-t",children:d.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-3 text-[length:var(--fs-sm)] font-light",children:[n.jsx("dt",{className:"text-muted shrink-0",children:m.label}),n.jsx("dd",{className:"text-right",children:m.value})]},m.label))}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-14 flex flex-wrap items-center justify-center gap-4",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-opacity hover:opacity-100",children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap border-line inline-flex items-center justify-center border px-9 text-[length:var(--fs-sm)] font-light tabular-nums tracking-[0.08em] transition-opacity hover:opacity-100",children:s.place.phone})]})]})})}function s1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsxs("section",{id:"units","data-oasi":!0,"aria-labelledby":"units-heading",className:"pt-[var(--oasi-gap)]",children:[n.jsx(Eu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}๊ฐœ ์•ˆ๋‚ด`)}),n.jsx("ul",{className:"space-y-20 lg:space-y-28",children:o.map(f=>n.jsxs("li",{children:[f.images[0]&&n.jsxs("figure",{className:"relative mx-auto w-full max-w-[34rem]",children:[n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"block h-[clamp(15rem,24vw,21rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:f.name})]}),n.jsx("h3",{className:"mt-8 text-[length:var(--fs-sm)] font-normal tracking-[0.08em]",children:f.name}),f.chips.length>0&&n.jsx("p",{className:"text-muted mt-2 text-[length:var(--fs-xs)] leading-[1.9]",children:f.chips.map(d=>`${d.label} ${d.value}`).join(" ยท ")}),f.intro&&n.jsx("p",{className:"measure mt-4 text-[length:var(--fs-xs)] leading-[1.9]",children:f.intro}),f.rows.length>0&&n.jsx("dl",{className:"divide-line border-line mt-6 divide-y border-t text-[length:var(--fs-xs)]",children:f.rows.map(d=>n.jsxs("div",{className:"flex items-baseline justify-between gap-6 py-2.5",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right",children:d.value})]},d.label))}),f.images.length>1&&n.jsx("ul",{className:"mx-auto mt-6 grid w-full max-w-[34rem] grid-cols-2 gap-2",children:f.images.slice(1).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",className:"block aspect-[4/3] w-full object-cover"})},d.mediaId))}),(u||s.place.phone)&&n.jsxs("p",{className:"mt-6 flex flex-wrap items-center gap-x-8 text-[length:var(--fs-sm)]",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(u)}),s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:"tap text-muted inline-flex items-center underline underline-offset-[6px]",children:s.place.phone})]})]},f.unitId))})]})}function i1(){const s=P(),r=ht(s),o=pl(s);return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading",className:"w-full",style:{paddingBlock:"var(--section-space)",backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(zu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}๊ฐœ ์•ˆ๋‚ด`)}),n.jsx("ul",{className:"space-y-16 sm:space-y-24",children:o.map(u=>n.jsxs("li",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-10",children:[n.jsxs("div",{className:"min-w-0 lg:col-span-7",children:[u.images[0]&&n.jsx("img",{src:u.images[0].url,alt:u.images[0].alt,loading:"lazy",decoding:"async",width:u.images[0].width,height:u.images[0].height,className:"block h-auto w-full"}),u.images.length>1&&n.jsx("ul",{className:"mt-2 grid grid-cols-2 gap-2",children:u.images.slice(1).map(f=>n.jsx("li",{children:n.jsx("img",{src:f.url,alt:f.alt,loading:"lazy",decoding:"async",width:f.width,height:f.height,className:"block h-auto w-full"})},f.mediaId))})]}),n.jsxs("div",{className:"min-w-0 lg:col-span-5",children:[n.jsx("h3",{className:"serif min-w-0 break-keep font-extrabold",style:{fontSize:"var(--fs-h3)",letterSpacing:"0.02em",lineHeight:1.35},children:u.name}),u.chips.length>0&&n.jsx("dl",{className:"mt-4 space-y-1.5",children:u.chips.map(f=>n.jsxs("div",{className:"flex gap-3 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted w-20 shrink-0",children:f.label}),n.jsx("dd",{className:"min-w-0 font-medium",children:f.value})]},f.label))}),u.intro&&n.jsx("p",{className:"text-muted measure mt-5 text-[length:var(--fs-sm)]",style:{lineHeight:1.8},children:u.intro})]})]},u.unitId))})]})})}function r1(){const s=P(),r=ht(s),o=pl(s),u=Fe(s)[0];return o.length===0?null:n.jsx("section",{id:"units","aria-labelledby":"units-heading","data-pastel":"own",className:"w-full",style:{backgroundColor:"var(--tpl-surface, #fff)",paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsx(Tu,{id:"units",title:$e(s,r.path,`${r.label} ${o.length}๊ฐœ ์•ˆ๋‚ด`)}),n.jsx("ul",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:gap-8",children:o.map((f,d)=>n.jsxs("li",{className:"flex flex-col overflow-hidden p-4 sm:p-5",style:{backgroundColor:d%2===0?"var(--pastel-1)":"var(--pastel-2)",borderRadius:"calc(var(--tpl-radius, 0.75rem) * 1.35)"},children:[f.images[0]&&n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",style:{borderRadius:"var(--tpl-radius, 0.75rem)"},children:n.jsx("img",{src:f.images[0].url,alt:f.images[0].alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 px-1 pt-4",children:[n.jsx("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:n.jsx("h3",{className:"h3",style:{fontWeight:800},children:f.name})}),f.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:f.chips.map(m=>n.jsxs("li",{className:"inline-flex items-center gap-1 rounded-full px-3 py-1 text-[length:var(--fs-xs)]",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 70%, transparent)"},children:[n.jsx("span",{className:"opacity-100",children:m.label}),n.jsx("span",{className:"font-bold",children:m.value})]},m.label))}),f.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.intro})]}),(u||s.place.phone)&&n.jsxs("div",{className:"mt-4 flex gap-2 px-1",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex flex-1 items-center justify-center rounded-full text-[length:var(--fs-sm)] font-extrabold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--pastel-ink)",color:"var(--tpl-bg, #fff)"},children:yt(u)}),s.place.phone&&n.jsxs("a",{href:`tel:${s.place.phone}`,className:"tap flex items-center justify-center gap-1.5 rounded-full px-5 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 75%, transparent)"},children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"์ „ํ™”"})]})]}),(f.rows.length>0||f.images.length>1)&&n.jsxs("details",{className:"group mt-3 px-1",children:[n.jsxs("summary",{className:"tap flex cursor-pointer list-none items-center justify-between gap-2 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsxs("span",{children:[f.name," ์ž์„ธํžˆ"]}),n.jsx(mu,{className:"size-4 shrink-0 transition-transform group-open:rotate-180"})]}),n.jsxs("div",{className:"space-y-4 pb-1",children:[f.rows.length>0&&n.jsx("dl",{className:"divide-line divide-y",children:f.rows.map(m=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"shrink-0 opacity-100",children:m.label}),n.jsx("dd",{className:"text-right font-bold",children:m.value})]},m.label))}),f.images.length>1&&n.jsx("ul",{className:"grid grid-cols-2 gap-2",children:f.images.slice(1).map(m=>n.jsx("li",{className:"relative aspect-4/3 overflow-hidden",style:{borderRadius:"calc(var(--tpl-radius, 0.75rem) * 0.7)"},children:n.jsx("img",{src:m.url,alt:m.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})},m.mediaId))})]})]})]},f.unitId))})]})})}function c1(){const s=P(),r=pl(s),o=ht(s),u=Fe(s)[0];return r.length===0?null:n.jsxs("section",{id:"units","aria-labelledby":"units-heading",className:"border-line w-full border-b",style:{backgroundColor:"var(--tpl-surface)",backgroundImage:Ys,paddingBlock:"var(--section-space)"},children:[n.jsx("div",{className:"shell",children:n.jsx(Nu,{id:"units",title:$e(s,o.path,`${o.label} ${r.length}๊ฐœ ์•ˆ๋‚ด`)})}),r.map((f,d)=>n.jsx(o1,{unit:f,no:String(d+1).padStart(2,"0"),dark:d%2===1,booking:u,phone:s.place.phone},f.unitId))]})}function o1({unit:s,no:r,dark:o,booking:u,phone:f}){return n.jsx("article",{className:"w-full",style:o?{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys}:void 0,children:n.jsxs("div",{className:"shell grid grid-cols-12 gap-y-6 py-10 xl:gap-x-10 xl:py-16",children:[n.jsxs("div",{className:"col-span-12 xl:col-span-5 xl:pr-8",children:[n.jsxs("div",{className:"relative",children:[n.jsx("span",{"aria-hidden":!0,className:"serif pointer-events-none absolute -top-1 left-0 select-none leading-none tabular-nums",style:{fontSize:"clamp(3rem, 8vw, 6rem)",fontWeight:800,opacity:.1},children:r}),n.jsx("h3",{className:"serif relative pt-7 xl:pt-12",style:{fontSize:"clamp(1.5rem, 3vw, 2.25rem)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.02em"},children:s.name})]}),s.intro&&n.jsx("p",{className:"measure mt-4 font-serif text-[length:var(--fs-body)] leading-relaxed opacity-100",children:s.intro}),s.rows.length>0&&n.jsx("dl",{className:"border-line mt-6 border-t",children:s.rows.map(d=>n.jsxs("div",{className:"border-line flex items-baseline justify-between gap-6 border-b py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:d.label}),n.jsx("dd",{className:"text-right font-semibold",children:d.value})]},d.label))}),(u||f)&&n.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-6 gap-y-1 text-[length:var(--fs-sm)] font-bold",children:[u&&n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center underline underline-offset-4",children:yt(u)}),f&&n.jsx("a",{href:`tel:${f}`,className:"tap inline-flex items-center underline underline-offset-4",children:f})]})]}),n.jsxs("div",{className:"col-span-12 xl:col-span-7 xl:-ml-10",children:[s.images[0]&&n.jsx("figure",{className:"w-full xl:w-[64%]",children:n.jsx("img",{src:s.images[0].url,alt:s.images[0].alt,loading:"lazy",decoding:"async",width:s.images[0].width,height:s.images[0].height,className:"w-full object-cover",style:{aspectRatio:"4 / 5"}})}),s.images[1]&&n.jsx("figure",{className:"mt-3 w-full xl:-mt-24 xl:ml-auto xl:w-[50%]",children:n.jsx("img",{src:s.images[1].url,alt:s.images[1].alt,loading:"lazy",decoding:"async",width:s.images[1].width,height:s.images[1].height,className:"w-full object-cover",style:{aspectRatio:"4 / 3"}})})]}),s.images.length>2&&n.jsx("ul",{className:"col-span-12 grid grid-cols-3 gap-2 xl:grid-cols-6",children:s.images.slice(2).map(d=>n.jsx("li",{children:n.jsx("img",{src:d.url,alt:d.alt,loading:"lazy",decoding:"async",width:d.width,height:d.height,className:"w-full object-cover",style:{aspectRatio:"3 / 2"}})},d.mediaId))})]})})}function Io(){var v;const s=P(),r=ht(s),o=jr(s),[u,f]=M.useState(null),[d,m]=M.useState(!1),g=Sr();if(g==="reservation")return n.jsx(n1,{});if(g==="oasi")return n.jsx(s1,{});if(g==="studio")return n.jsx(i1,{});if(g==="pastel")return n.jsx(r1,{});if(g==="editorial")return n.jsx(c1,{});const x=(v=s.theme.sections.find(j=>j.id===r.path))==null?void 0:v.variantId;if(x==="rooms.bands")return n.jsx(l1,{});if(x==="rooms.tabs")return n.jsx(a1,{});const p=pl(s);if(p.length===0)return null;const y=p.length===1?"grid-cols-1":p.length===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 xl:grid-cols-3";return n.jsxs(rt,{id:"units",title:$e(s,r.path,`${r.label} ${p.length}๊ฐœ ์•ˆ๋‚ด`),children:[n.jsx("ul",{className:`grid gap-5 lg:gap-7 ${y}`,children:p.map(j=>n.jsxs(Ou,{as:"li",className:"flex flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex flex-1 flex-col",children:[j.images.length>0&&n.jsx(u1,{images:j.images,name:j.name}),n.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[n.jsx("h3",{className:"h3",children:j.name}),j.chips.length>0&&n.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:j.chips.map(w=>n.jsx("li",{children:n.jsxs(Du,{children:[!w.value.includes(w.label)&&n.jsx("span",{className:"text-muted",children:w.label}),n.jsx("span",{className:"font-medium",children:w.value})]})},w.label))}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro})]})]}),(j.rows.length>0||o)&&n.jsxs("button",{type:"button",onClick:()=>f(j.unitId),className:"tap border-line flex items-center justify-between gap-2 border-t px-5 py-3 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:"์ž์„ธํžˆ ยท ์˜ˆ์•ฝ"}),n.jsx(Ua,{className:"size-4 shrink-0"})]})]},j.unitId))}),p.map(j=>{const w=o==null?void 0:o.offers.find(N=>N.unitId===j.unitId);return n.jsx(ma,{open:u===j.unitId,onClose:()=>f(null),label:`${j.name} ์ƒ์„ธ ยท ์˜ˆ์•ฝ`,title:j.name,children:n.jsxs("div",{className:"flex flex-col gap-5",children:[(w==null?void 0:w.baseRateText)&&n.jsx("p",{className:"text-[length:var(--fs-lead)] font-bold",style:{color:"var(--color-brand)"},children:w.baseRateText}),(w==null?void 0:w.capacityText)&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:w.capacityText}),j.intro&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:j.intro}),j.rows.length>0&&n.jsx("dl",{className:"divide-line border-line divide-y border-t",children:j.rows.map(N=>n.jsxs("div",{className:"flex items-baseline justify-between gap-4 py-2.5 text-[length:var(--fs-sm)]",children:[n.jsx("dt",{className:"text-muted shrink-0",children:N.label}),n.jsx("dd",{className:"text-right font-semibold",children:N.value})]},N.label))}),w&&w.rateRows.length>0&&n.jsx("dl",{className:"border-line flex flex-wrap gap-x-4 gap-y-1.5 border-t pt-4",children:w.rateRows.map(N=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"text-muted",children:N.label}),n.jsx("dd",{className:"font-semibold",children:N.value})]},N.label))}),o&&n.jsxs("div",{className:"border-line flex flex-col gap-2 border-t pt-4",children:[n.jsx("p",{className:"text-[length:var(--fs-sm)] font-bold",children:"์˜ˆ์•ฝ"}),n.jsx("button",{type:"button",onClick:()=>{f(null),m(!0)},className:"tap flex items-center justify-center gap-2 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:n.jsx("span",{children:"๋‚ ์งœ ์„ ํƒํ•˜๊ณ  ์˜ˆ์•ฝ ์š”์ฒญํ•˜๊ธฐ"})}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap border-line tpl-border flex items-center justify-center gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["์ „ํ™” ์˜ˆ์•ฝ ",o.phone]})]}),o.links.map(N=>n.jsxs("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line tpl-border flex items-center justify-between gap-2 rounded-lg border px-4 text-[length:var(--fs-sm)] font-semibold",children:[n.jsx("span",{children:ju(N)}),n.jsx(Ll,{className:"size-4 shrink-0"})]},N.url))]})]})},j.unitId)}),o&&n.jsx(ma,{open:d,onClose:()=>m(!1),label:"์˜ˆ์•ฝ ์š”์ฒญ",title:"์˜ˆ์•ฝ ์š”์ฒญ",wide:!0,children:n.jsx(Er,{})})]})}function u1({images:s,name:r}){return n.jsx(La,{label:`${r} ์‚ฌ์ง„`,align:"center",gap:0,arrows:"overlay",children:s.map(o=>n.jsx(Ks,{basis:"basis-full",children:n.jsx("div",{className:"relative aspect-16/10 overflow-hidden",children:n.jsx("img",{src:o.url,alt:o.alt,loading:"lazy",decoding:"async",className:"size-full object-cover"})})},o.mediaId))})}function f1(){const s=P(),r=Fe(s),o=bv(s),u=s.place.phone;return r.length===0&&o.length===0&&!u?null:n.jsx(rt,{id:"booking",tone:"alt",title:$e(s,"booking","์˜ˆ์•ฝ ์•ˆ๋‚ด"),lead:`${s.place.name} ์˜ˆ์•ฝ์€ ์•„๋ž˜ ๊ฒฝ๋กœ๋กœ ๋ฐ›์Šต๋‹ˆ๋‹ค.`,children:n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-10",children:[o.length>0&&n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5 lg:col-span-7",children:o.map(f=>n.jsx(Wp,{label:f.label,value:f.value},f.label))}),n.jsx("div",{className:o.length>0?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:o.length>0?"flex flex-col gap-2.5 sm:flex-row sm:flex-wrap lg:flex-col":"flex flex-col items-start gap-2.5 sm:flex-row sm:flex-wrap",children:[u&&n.jsxs(ip,{href:`tel:${u}`,icon:n.jsx(At,{className:"size-4"}),children:["์ „ํ™” ์˜ˆ์•ฝ ",u]}),r.map(f=>n.jsx(ip,{href:f.url,variant:"outline",external:!0,children:ju(f)},f.url))]})})]})})}function fp(){const s=P(),r=jr(s);if(!r)return null;const{offers:o,links:u,contacts:f,phone:d}=r;return n.jsx("section",{id:"booking","aria-labelledby":"booking-heading",className:"w-full border-b border-black/8 py-16 sm:py-24",style:{backgroundColor:"var(--color-surface-alt)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("p",{className:"mb-2 flex items-center gap-2 text-[length:var(--fs-xs)] font-semibold uppercase tracking-wider opacity-100",children:[n.jsx(Xb,{className:"size-4"}),n.jsx("span",{children:"Reservation"})]}),n.jsx("h2",{id:"booking-heading",className:"serif mb-2 text-2xl font-bold tracking-tight sm:text-3xl lg:text-4xl",children:$e(s,"booking","์˜ˆ์•ฝ ์•ˆ๋‚ด")}),n.jsx("p",{className:"mb-8 max-w-2xl text-[length:var(--fs-xs)] leading-relaxed opacity-100 sm:text-[length:var(--fs-sm)]",children:"๋นˆ ๋ฐฉ ํ™•์ธ๊ณผ ๊ฒฐ์ œ๋Š” ์•„๋ž˜ ์˜ˆ์•ฝ ์ฐฝ๊ตฌ์—์„œ ์ง„ํ–‰๋ฉ๋‹ˆ๋‹ค. ์ด ํŽ˜์ด์ง€์—์„œ๋Š” ์š”๊ธˆ๊ณผ ์ด์šฉ ์กฐ๊ฑด๋งŒ ์•ˆ๋‚ดํ•ฉ๋‹ˆ๋‹ค."}),n.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5 lg:gap-6",children:[o.length>0&&n.jsxs("div",{className:"overflow-hidden rounded-2xl border border-black/8 lg:col-span-3",style:{backgroundColor:"var(--color-surface)"},children:[n.jsxs("p",{className:"flex items-center gap-2 border-b border-black/8 px-4 py-3 text-[length:var(--fs-xs)] font-bold sm:px-5",children:[n.jsx(Yb,{className:"size-3.5 opacity-100"}),n.jsx("span",{children:"๊ฐ์‹ค๋ณ„ ์š”๊ธˆ ยท ์ธ์›"})]}),n.jsx("ul",{className:"divide-y divide-black/5",children:o.map(m=>n.jsxs("li",{className:"p-4 sm:p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1",children:[n.jsx("h3",{className:"serif text-base font-bold sm:text-lg",children:m.name}),m.baseRateText&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",style:{color:"var(--color-brand)"},children:m.baseRateText})]}),m.capacityText&&n.jsx("p",{className:"mt-1 text-[length:var(--fs-xs)] opacity-100",children:m.capacityText}),m.rateRows.length>0&&n.jsx("dl",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:m.rateRows.map(g=>n.jsxs("div",{className:"flex items-baseline gap-1.5 text-[length:var(--fs-xs)]",children:[n.jsx("dt",{className:"opacity-100",children:g.label}),n.jsx("dd",{className:"font-semibold",children:g.value})]},g.label))}),n.jsx("a",{href:m.href,className:"mt-3 inline-flex items-center gap-1 text-[length:var(--fs-xs)] font-semibold underline decoration-black/20 underline-offset-4 transition-opacity hover:opacity-100",children:n.jsx("span",{children:"์‚ฌ์ง„ ยท ์ƒ์„ธ ๋ณด๊ธฐ"})})]},m.unitId))})]}),n.jsxs("div",{className:"flex h-fit flex-col gap-3 rounded-2xl border border-black/8 p-4 sm:p-5 lg:col-span-2",style:{backgroundColor:"var(--color-surface)"},children:[n.jsx("p",{className:"text-[length:var(--fs-xs)] font-bold",children:"์˜ˆ์•ฝ ์ฐฝ๊ตฌ"}),d&&n.jsxs("a",{href:`tel:${d}`,className:"flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)"},children:[n.jsx(At,{className:"size-4"}),n.jsxs("span",{children:["์ „ํ™” ์˜ˆ์•ฝ ",d]})]}),u.map(m=>n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between gap-2 rounded-xl border border-black/10 px-4 py-3 text-[length:var(--fs-xs)] font-semibold transition-colors hover:bg-black/5",style:{backgroundColor:"var(--color-surface-alt)"},children:[n.jsx("span",{children:ju(m)}),n.jsx(Ll,{className:"size-3.5 shrink-0"})]},m.url)),f.length>0&&n.jsxs("div",{className:"mt-1 border-t border-black/8 pt-3",children:[n.jsx("p",{className:"mb-2 text-[length:var(--fs-xs)] opacity-100",children:"๋ฌธ์˜"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:f.map(m=>n.jsx("li",{children:n.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-lg border border-black/10 px-2.5 py-1.5 text-[length:var(--fs-xs)] transition-colors hover:bg-black/5",children:[n.jsx("span",{children:Bl(m)}),n.jsx(Ll,{className:"size-3"})]})},m.url))})]}),u.length===0&&n.jsx("p",{className:"text-[length:var(--fs-xs)] leading-relaxed opacity-100",children:"์˜จ๋ผ์ธ ์˜ˆ์•ฝ ์ฑ„๋„์€ ๋“ฑ๋ก๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ์˜ˆ์•ฝ์€ ์ „ํ™”๋กœ ๋ฌธ์˜ํ•ด ์ฃผ์„ธ์š”."})]})]}),n.jsx(Er,{})]})})}function d1(){const s=P(),r=yv(s);return r.length===0?null:n.jsx(rt,{id:"space",title:$e(s,"space","๊ณต๊ฐ„ ์•ˆ๋‚ด"),lead:"์ขŒ์„๊ณผ ์ด์šฉ ํ™˜๊ฒฝ ์•ˆ๋‚ด์ž…๋‹ˆ๋‹ค.",children:n.jsx("dl",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4 lg:gap-4",children:r.map(o=>n.jsxs(Ou,{className:"p-4 sm:p-5",children:[n.jsx("dt",{className:"text-muted mb-1 text-[length:var(--fs-xs)] font-medium",children:o.label}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold",children:o.value})]},o.label))})})}function m1(){const s=P(),{place:r}=s,o=On(s);if(!r.phone&&!r.email&&o.length===0)return null;const u=[...r.phone?[{key:"phone",icon:At,label:"์ „ํ™”",value:r.phone,href:`tel:${r.phone}`}]:[],...r.email?[{key:"email",icon:Mp,label:"์ด๋ฉ”์ผ",value:r.email,href:`mailto:${r.email}`}]:[],...o.map(f=>({key:f.url,icon:hu,label:Bl(f),value:"๋ฐ”๋กœ ๊ฐ€๊ธฐ",href:f.url,external:!0}))];return n.jsx(rt,{id:"inquiry",title:$e(s,"inquiry","๋ฌธ์˜ ์•ˆ๋‚ด"),lead:`๊ถ๊ธˆํ•œ ์ ์€ ์•„๋ž˜๋กœ ์—ฐ๋ฝ ์ฃผ์‹œ๋ฉด ${r.name}์—์„œ ์ง์ ‘ ์•ˆ๋‚ดํ•ด ๋“œ๋ฆฝ๋‹ˆ๋‹ค.`,children:n.jsx("ul",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 lg:gap-4",children:u.map(f=>{const d=f.icon,m="external"in f&&f.external;return n.jsx("li",{children:n.jsxs("a",{href:f.href,...m?{target:"_blank",rel:"noopener noreferrer"}:{},className:"panel flex h-full items-center justify-between gap-3 p-5 transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[n.jsx(d,{className:"size-5 shrink-0 opacity-40"}),n.jsxs("span",{className:"min-w-0",children:[n.jsx("span",{className:"text-muted block text-[length:var(--fs-xs)] font-medium",children:f.label}),n.jsx("span",{className:"block break-all text-[length:var(--fs-sm)] font-semibold",children:f.value})]})]}),m&&n.jsx(Ll,{className:"size-4 shrink-0 opacity-40"})]})},f.key)})})})}function h1(){const s=P(),r=Nv(s);return r.length===0?null:n.jsx(rt,{id:"exhibition",tone:"alt",title:$e(s,"exhibition","๊ด€๋žŒ ์•ˆ๋‚ด"),lead:"๋ฐฉ๋ฌธ ์ „ ๊ด€๋žŒ ์กฐ๊ฑด์„ ํ™•์ธํ•ด ์ฃผ์„ธ์š”.",children:n.jsx("dl",{className:"panel divide-line divide-y overflow-hidden px-5",children:r.map(o=>n.jsx(Wp,{label:o.label,value:o.value},o.label))})})}function p1(){const[s,r]=M.useState([]);return M.useEffect(()=>r(lv()),[]),s}const x1=["๋ด„","์—ฌ๋ฆ„","๊ฐ€์„","๊ฒจ์šธ"];function g1(){const s=P(),r=s.local.festivals,o=p1(),[u,f]=M.useState(null);if(r.length===0)return null;const d=x1.filter(v=>r.some(j=>j.season===v)),m=r.filter(v=>{var j;return!((j=v.season)!=null&&j.trim())}),g=[...o].reverse().find(v=>d.includes(v)),x="์ „์ฒด",p=u??g??null,y=p===x;return n.jsxs(rt,{id:"festival",title:"๊ณ„์ ˆ๋ณ„ ์ถ•์ œ",lead:`${s.place.addressLocality??"์ด ์ง€์—ญ"}์˜ ์ถ•์ œ์™€ ํ–‰์‚ฌ๋ฅผ ๊ณ„์ ˆ๋กœ ๋ฌถ์—ˆ์Šต๋‹ˆ๋‹ค.`,aside:g&&p===g&&!y?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["์ง€๊ธˆ์€ ",g," ์ถ•์ œ์ž…๋‹ˆ๋‹ค"]}):void 0,footnote:n.jsx(n.Fragment,{children:"ํ•œ๊ตญ๊ด€๊ด‘๊ณต์‚ฌ TourAPI ๊ธฐ์ค€. ์ผ์ •์€ ์ฃผ์ตœ ์ธก ์‚ฌ์ •์œผ๋กœ ๋ฐ”๋€” ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."}),children:[d.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"๊ณ„์ ˆ",children:[...d,x].map(v=>{const j=p===v;return n.jsx("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>f(v),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:v},v)})}),n.jsxs("div",{className:"space-y-8",children:[d.map(v=>{const j=r.filter(w=>w.season===v);return n.jsxs("div",{hidden:!y&&p!==null&&p!==v,children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:v}),n.jsx(dp,{items:j,label:`${v} ์ถ•์ œ`,remount:p})]},v)}),m.length>0&&n.jsxs("div",{children:[n.jsx("h3",{className:"border-line mb-4 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:"๊ณ„์ ˆ ์—†์ด ์—ด๋ฆฌ๋Š” ํ–‰์‚ฌ"}),n.jsx(dp,{items:m,label:"๊ณ„์ ˆ ์—†์ด ์—ด๋ฆฌ๋Š” ํ–‰์‚ฌ"})]})]})]})}function dp({items:s,label:r,remount:o}){const[u,f]=M.useState(null);return n.jsxs(n.Fragment,{children:[n.jsx(La,{label:r,children:s.map(d=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>f(d),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-4/3 overflow-hidden",children:[d.imageUrl?n.jsx("img",{src:d.imageUrl,alt:`${d.name} ์‚ฌ์ง„`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:d.name}),n.jsx("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:d.month})]}),n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1 p-3.5",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:d.name}),d.period&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-medium opacity-100",children:d.period}),d.description&&n.jsx("span",{className:"text-muted line-clamp-2 pt-0.5 text-[length:var(--fs-xs)] leading-relaxed",children:d.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1.5 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"์ž์„ธํžˆ ๋ณด๊ธฐ"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},d.name))},o??"all"),n.jsx(ma,{open:u!=null,onClose:()=>f(null),label:(u==null?void 0:u.name)??"์ถ•์ œ",title:u==null?void 0:u.name,children:u&&n.jsxs("div",{className:"flex flex-col gap-4",children:[u.imageUrl&&n.jsx("img",{src:u.imageUrl,alt:`${u.name} ์‚ฌ์ง„`,className:"aspect-4/3 w-full rounded-lg object-cover"}),u.period&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:u.period}),u.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.description}),n.jsxs("a",{href:Jv(u.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"๊ฒ€์ƒ‰์œผ๋กœ ์—ด๊ธฐ"}),n.jsx(Ll,{className:"size-4"})]})]})})]})}const qs=80,mp=[{id:"all",label:"์ „์ฒด",test:()=>!0},{id:"w5",label:"๊ฑธ์–ด์„œ 5๋ถ„ ์ด๋‚ด",test:s=>s<=5*qs},{id:"w10",label:"๊ฑธ์–ด์„œ 10๋ถ„ ์ด๋‚ด",test:s=>s<=10*qs},{id:"far",label:"๊ฑธ์–ด์„œ 10๋ถ„ ์ด์ƒ",test:s=>s>10*qs}];function hr(s){if(Number.isFinite(s))return`๋„๋ณด ์•ฝ ${Math.max(1,Math.round(s/qs))}๋ถ„`}function b1(s){const r=/^([\d.]+)\s*(km|m)$/i.exec((s??"").trim());return r?Number(r[1])*(r[2].toLowerCase()==="km"?1e3:1):1/0}function da(s){return s.distanceMeters!=null?Number.isFinite(s.distanceMeters)&&s.distanceMeters>=0?s.distanceMeters:1/0:b1(s.distanceText)}function v1(){const s=P(),{local:r}=s,o=r.restaurants.filter(v=>v.imageUrl),u=o.length>0||r.attractions.length>0,[f,d]=M.useState("all");if(!u)return null;const m=[...o,...r.attractions],g=v=>m.filter(j=>v.test(da(j))).length,x=mp.filter((v,j)=>j===0||g(v)>0&&g(v)v.id===f)??mp[0],y=v=>p.test(da(v));return n.jsxs(rt,{id:"guide",tone:"alt",title:"์ฃผ๋ณ€ ์•ˆ๋‚ด",lead:`${s.place.addressLocality??"์ฃผ๋ณ€"} ์ง€์—ญ์˜ ๋ง›์ง‘ ยท ๋ช…์†Œ ์•ˆ๋‚ด์ž…๋‹ˆ๋‹ค.`,aside:r.syncedAt?n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:[Gp(r.syncedAt)," ๊ฐฑ์‹ "]}):void 0,footnote:n.jsxs(n.Fragment,{children:["๋„๋ณด ์‹œ๊ฐ„์€ ์ˆ™์†Œ์—์„œ ์žฐ ์ง์„ ๊ฑฐ๋ฆฌ๋ฅผ ๋ถ„์† ",qs,"m ๋กœ ํ™˜์‚ฐํ•œ ๊ฐ’์ž…๋‹ˆ๋‹ค. ์‹ค์ œ๋กœ ๊ฑท๋Š” ๊ธธ์€ ์ด๋ณด๋‹ค ๊น๋‹ˆ๋‹ค."]}),children:[x.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"๊ฑฐ๋ฆฌ",children:x.map(v=>{const j=v.id===f,w=g(v);return n.jsxs("button",{type:"button",role:"tab","aria-selected":j,onClick:()=>d(v.id),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:j?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[v.label," ",n.jsx("span",{className:"tabular-nums opacity-100",children:w})]},v.id)})}),n.jsxs("div",{className:"space-y-10",children:[o.length>0&&n.jsx(hp,{title:"์ฃผ๋ณ€ ๋ง›์ง‘",icon:A0,places:o,within:y}),r.attractions.length>0&&n.jsx(hp,{title:"์ฃผ๋ณ€ ๋ช…์†Œ",icon:vr,places:r.attractions,within:y})]})]})}function y1({icon:s,children:r}){return n.jsxs("h3",{className:"border-line mb-4 flex items-center gap-2 border-b pb-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(s,{className:"size-4 opacity-100"}),n.jsx("span",{children:r})]})}function hp({title:s,icon:r,places:o,within:u}){const f=o.filter(u),[d,m]=M.useState(null);return n.jsxs("div",{children:[n.jsx(y1,{icon:r,children:s}),n.jsx(La,{label:s,children:f.map(g=>n.jsx(Ks,{basis:"basis-[76%] sm:basis-1/3 lg:basis-1/4",children:n.jsxs("button",{type:"button",onClick:()=>m(g),className:"panel group flex h-full w-full flex-col overflow-hidden text-left transition-opacity hover:opacity-100",children:[n.jsxs("span",{className:"relative block aspect-[16/10] overflow-hidden",children:[g.imageUrl?n.jsx("img",{src:g.imageUrl,alt:`${g.name} ์‚ฌ์ง„`,loading:"lazy",decoding:"async",className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"}):n.jsx("span",{className:"serif grid size-full place-items-center px-3 text-center text-[length:var(--fs-lead)] leading-tight",style:{backgroundColor:"color-mix(in oklab, currentColor 9%, transparent)"},"aria-hidden":!0,children:g.name}),(Number.isFinite(da(g))||g.distanceText)&&n.jsxs("span",{className:"absolute bottom-2 left-2 rounded-md px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 78%, transparent)",color:"var(--tpl-bg, #fff)"},children:[hr(da(g))??g.distanceText,n.jsx("span",{className:"ml-1 font-normal opacity-100",children:g.distanceText})]})]}),n.jsxs("span",{className:"flex flex-1 flex-col gap-0.5 p-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:g.name}),g.location&&n.jsx("span",{className:"text-muted text-[length:var(--fs-xs)] break-words",children:g.location}),g.description&&n.jsx("span",{className:"text-muted line-clamp-2 text-[length:var(--fs-xs)] leading-relaxed",children:g.description}),n.jsxs("span",{className:"text-muted mt-auto flex items-center gap-0.5 pt-1 text-[length:var(--fs-xs)] opacity-100 transition-opacity group-hover:opacity-100",children:[n.jsx("span",{children:"์ž์„ธํžˆ ๋ณด๊ธฐ"}),n.jsx(Ll,{className:"size-3.5"})]})]})]})},g.name))},f.length),n.jsx(ma,{open:d!=null,onClose:()=>m(null),label:(d==null?void 0:d.name)??"์žฅ์†Œ",title:d==null?void 0:d.name,children:d&&n.jsxs("div",{className:"flex flex-col gap-4",children:[d.imageUrl&&n.jsx("img",{src:d.imageUrl,alt:`${d.name} ์‚ฌ์ง„`,className:"aspect-[16/10] w-full rounded-lg object-cover"}),(Number.isFinite(da(d))||d.distanceText)&&n.jsxs("p",{className:"text-[length:var(--fs-sm)] font-semibold opacity-100",children:[hr(da(d))??d.distanceText,d.distanceText&&n.jsx("span",{className:"ml-1 font-normal opacity-70",children:d.distanceText})]}),d.location&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:d.location}),d.description&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.description}),n.jsxs("a",{href:Ph(d.searchQuery),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex items-center justify-center gap-1.5 rounded-lg px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:[n.jsx("span",{children:"๊ฒ€์ƒ‰์œผ๋กœ ์—ด๊ธฐ"}),n.jsx(Ll,{className:"size-4"})]})]})}),n.jsx("ul",{hidden:!0,children:o.filter(g=>!u(g)).map(g=>n.jsxs("li",{children:[n.jsx("a",{href:Ph(g.searchQuery),rel:"nofollow",children:g.name}),g.distanceText&&n.jsxs("span",{children:[" ",g.distanceText,hr(da(g))&&` ยท ${hr(da(g))}`]}),g.description&&n.jsx("p",{children:g.description}),g.location&&n.jsx("p",{children:g.location})]},g.name))}),f.length===0&&n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"์ด ๊ฑฐ๋ฆฌ ์•ˆ์—๋Š” ์—†์Šต๋‹ˆ๋‹ค."})]})}function j1(s){return s===0?"๋ง‘์Œ":s>=1&&s<=2?"๊ตฌ๋ฆ„๋งŽ์Œ":s===3?"ํ๋ฆผ":s===45||s===48?"์•ˆ๊ฐœ":s>=51&&s<=57?"์ด์Šฌ๋น„":s>=61&&s<=67?"๋น„":s>=71&&s<=77||s===85||s===86?"๋ˆˆ":s>=80&&s<=82?"์†Œ๋‚˜๊ธฐ":s>=95&&s<=99?"๋‡Œ์šฐ":"ํ๋ฆผ"}function N1({initial:s,regionCode:r,latitude:o,longitude:u}){const[f,d]=M.useState(s);return M.useEffect(()=>{if(!r||o==null||u==null)return;const m=new AbortController;async function g(){var p;try{const y=new URLSearchParams({region_code:r,latitude:String(o),longitude:String(u)}),v=await fetch(`/v1/local/weather?${y}`,{signal:m.signal});if(!v.ok)return;const j=await v.json();if(!((p=j==null?void 0:j.result)!=null&&p.success)||!j.weather)return;d(w=>({temperature:Number(j.weather.temperature),condition:j1(Number(j.weather.weather_code)),note:w==null?void 0:w.note,observedAt:j.weather.observed_at,stale:!!j.stale}))}catch{}}g();const x=window.setInterval(()=>void g(),600*1e3);return()=>{m.abort(),window.clearInterval(x)}},[o,u,r]),f}function pp(s){let r=[],o=-1;return()=>{r.length||(r=s.map((m,g)=>g));const u=r.filter(m=>m!==o),f=u.length?u:r,d=f[Math.floor(Math.random()*f.length)];return r=r.filter(m=>m!==d),o=d,s[d]}}function S1(s,r,o,u){const[f,d]=M.useState({});return M.useEffect(()=>{if(!(s!=null&&s.length)&&!(o!=null&&o.length))return;const m=s!=null&&s.length?pp(s):void 0,g=o!=null&&o.length?pp(o):void 0,x=()=>d({sky:m==null?void 0:m(),temp:g==null?void 0:g()}),p=window.setTimeout(x,0),y=window.setInterval(x,2e4);return()=>{window.clearTimeout(p),window.clearInterval(y)}},[s,o]),[f.sky??(s==null?void 0:s[0])??r,f.temp??(o==null?void 0:o[0])??u]}const w1={๋ง‘์Œ:k0,ํ๋ฆผ:i0,๋น„:l0,๋ˆˆ:n0};function E1(s){const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(s??"");if(!r)return;const[,,o,u,f,d]=r;return`${Number(o)}์›” ${Number(u)}์ผ ${f}:${d} ๊ด€์ธก`}function z1(){var v,j,w,N,k;const s=P(),r=N1({initial:s.local.weather,regionCode:s.place.regionCode,latitude:s.place.latitude,longitude:s.place.longitude}),o=fv((r==null?void 0:r.condition)??""),u=dv((r==null?void 0:r.temperature)??0),f=s.local.weather,d=(r==null?void 0:r.condition)??"",m=(v=f==null?void 0:f.noteSets)!=null&&v[d]?d:o,[g,x]=S1((j=f==null?void 0:f.noteSets)==null?void 0:j[m],((w=f==null?void 0:f.notes)==null?void 0:w[o])??(r==null?void 0:r.note),(N=f==null?void 0:f.tempNoteSets)==null?void 0:N[u],(k=f==null?void 0:f.tempNotes)==null?void 0:k[u]);if(!r)return null;const p=E1(r.observedAt),y=w1[o];return n.jsx(rt,{id:"weather",tone:"alt",title:"์˜ค๋Š˜์˜ ๋‚ ์”จ",children:n.jsxs(Ou,{className:"relative min-h-64 overflow-hidden",children:[n.jsx(y,{"aria-hidden":!0,strokeWidth:1,className:"pointer-events-none absolute -bottom-10 -right-10 size-64 opacity-[0.08]"}),n.jsxs("div",{className:"relative flex flex-col gap-5 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-4 gap-y-1",children:[n.jsxs("p",{className:"flex items-baseline gap-2.5",children:[n.jsx("span",{className:"serif tabular-nums leading-none",style:{fontSize:"var(--fs-display)"},children:Math.round(r.temperature)}),n.jsx("span",{className:"text-[length:var(--fs-lead)] opacity-100",children:"ยฐC"}),n.jsx("span",{className:"text-[length:var(--fs-lead)] font-semibold",children:r.condition})]}),p&&n.jsxs("span",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[p,r.stale&&" ยท ์ตœ๊ทผ ๊ด€์ธก๊ฐ’"]})]}),g&&n.jsx("p",{className:"w4-note-fade measure serif text-[length:var(--fs-lead)] leading-loose opacity-100",children:g},g),x&&n.jsxs("p",{className:"w4-note-fade measure flex items-start gap-2.5 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:[n.jsx("span",{className:"border-line mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold","aria-hidden":!0,children:u}),n.jsx("span",{children:x})]},x)]})]})})}function T1(){const s=P(),r=yu(s),o=s.theme.sections.find(x=>x.id==="photos"),u=(o==null?void 0:o.variantId)??"photos.grid",[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]),g=M.useCallback(x=>d(p=>p===null?null:(p+x+r.length)%r.length),[r.length]);return M.useEffect(()=>{if(f===null)return;const x=k=>{k.key==="Escape"&&m(),k.key==="ArrowLeft"&&g(-1),k.key==="ArrowRight"&&g(1)},p=window.scrollY,y=document.body,v=y.style.position,j=y.style.top,w=y.style.width,N=y.style.overflow;return y.style.position="fixed",y.style.top=`-${p}px`,y.style.width="100%",y.style.overflow="hidden",window.addEventListener("keydown",x),()=>{y.style.position=v,y.style.top=j,y.style.width=w,y.style.overflow=N,window.scrollTo(0,p),window.removeEventListener("keydown",x)}},[f,m,g]),r.length===0?null:n.jsxs(rt,{id:"gallery",title:(o==null?void 0:o.name)||"๊ณต๊ฐ„ ๊ฐค๋Ÿฌ๋ฆฌ",children:[u==="photos.carousel"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"lg:hidden",children:n.jsx(La,{label:"๊ณต๊ฐ„ ๊ฐค๋Ÿฌ๋ฆฌ",align:"center",gap:0,arrows:"overlay",children:r.map((x,p)=>n.jsx(Ks,{basis:"basis-full",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})}),n.jsx("ul",{className:"hidden lg:grid lg:grid-cols-4 lg:gap-3",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-4/3 rounded-lg"})},x.mediaId))})]}):u==="photos.masonry"?n.jsx("ul",{className:"columns-2 gap-3 sm:columns-3 lg:columns-4 [&>li]:mb-3",children:r.map((x,p)=>n.jsx("li",{className:"break-inside-avoid",children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"rounded-lg",free:!0})},x.mediaId))}):n.jsx("ul",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:r.map((x,p)=>n.jsx("li",{children:n.jsx(pr,{image:x,onOpen:()=>d(p),className:"aspect-square rounded-lg"})},x.mediaId))}),f!==null&&n.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"์‚ฌ์ง„ ํฌ๊ฒŒ ๋ณด๊ธฐ",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/92 p-4 backdrop-blur-md",onClick:m,children:[n.jsx("button",{type:"button",onClick:m,"aria-label":"๋‹ซ๊ธฐ",className:"tap absolute right-3 top-3 z-10 flex items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 sm:right-5 sm:top-5",children:n.jsx(yr,{className:"size-6"})}),n.jsx(xp,{dir:"prev",onClick:()=>g(-1)}),n.jsx(xp,{dir:"next",onClick:()=>g(1)}),n.jsxs("figure",{className:"flex max-h-[85vh] w-full max-w-5xl flex-col items-center gap-3",onClick:x=>x.stopPropagation(),children:[n.jsx("img",{src:r[f].url,alt:r[f].alt,className:"max-h-[72vh] w-auto max-w-full rounded-lg object-contain"}),n.jsxs("figcaption",{className:"text-center text-[length:var(--fs-xs)] text-white/70",children:[r[f].caption??r[f].alt,n.jsxs("span",{className:"ml-2 tabular-nums",children:[f+1," / ",r.length]})]})]})]})]})}function xp({dir:s,onClick:r}){const o=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:u=>{u.stopPropagation(),r()},"aria-label":s==="prev"?"์ด์ „ ์‚ฌ์ง„":"๋‹ค์Œ ์‚ฌ์ง„",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/25 ${s==="prev"?"left-2 sm:left-6":"right-2 sm:right-6"}`,children:n.jsx(o,{className:"size-6"})})}function pr({image:s,onOpen:r,className:o,free:u=!1}){return n.jsx("button",{type:"button",onClick:r,className:`border-line tpl-border group relative block w-full cursor-pointer overflow-hidden border ${o}`,"aria-label":`${s.alt} ํฌ๊ฒŒ ๋ณด๊ธฐ`,children:n.jsx("img",{src:s.url,alt:s.alt,loading:"lazy",decoding:"async",width:s.width,height:s.height,className:u?"h-auto w-full":"size-full object-cover transition-transform duration-500 group-hover:scale-105"})})}function gp(){const s=P(),{place:r,routes:o}=s,[u,f]=M.useState(!1),d=r.roadAddress??r.address;if(!d)return null;const{latitude:m,longitude:g}=r,x=m!=null&&g!=null,p=ey(r.name,m,g),y=async()=>{try{await navigator.clipboard.writeText(d),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return n.jsxs(rt,{id:"location",title:"์˜ค์‹œ๋Š” ๊ธธ",lead:"์ฃผ์†Œ์™€ ์ฃผ์š” ๊ฑฐ์ ๊นŒ์ง€์˜ ์ด๋™ ์‹œ๊ฐ„์„ ์•ˆ๋‚ดํ•ฉ๋‹ˆ๋‹ค.",children:[n.jsxs("div",{className:"grid gap-6 lg:grid-cols-12 lg:gap-8",children:[x&&n.jsx("div",{className:"border-line tpl-border overflow-hidden rounded-xl border lg:col-span-7",children:n.jsx("iframe",{title:`${r.name} ์œ„์น˜ ์ง€๋„`,src:Pv(m,g),loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"block aspect-4/3 w-full border-0 sm:aspect-video lg:aspect-auto lg:h-full lg:min-h-[24rem]"})}),n.jsx("div",{className:x?"lg:col-span-5":"lg:col-span-12",children:n.jsxs("div",{className:"panel p-5 sm:p-6",children:[n.jsx("p",{className:"label mb-2",children:"์ฃผ์†Œ"}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.jsx("address",{className:"text-[length:var(--fs-lead)] font-bold not-italic",children:d}),n.jsxs("button",{type:"button",onClick:y,title:"์ฃผ์†Œ ๋ณต์‚ฌ",className:"border-line tpl-border inline-flex items-center gap-1 rounded-md border bg-current/8 px-2.5 py-1.5 text-[length:var(--fs-xs)] font-medium transition-opacity hover:opacity-100",children:[u?n.jsx(du,{className:"size-3.5"}):n.jsx(c0,{className:"size-3.5"}),n.jsx("span",{children:u?"๋ณต์‚ฌ์™„๋ฃŒ":"๋ณต์‚ฌ"})]})]}),r.phone&&n.jsxs("p",{className:"text-muted mt-2 text-[length:var(--fs-sm)]",children:["๋ฌธ์˜:"," ",n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),n.jsxs("div",{className:"mt-5 flex flex-wrap gap-2.5",children:[n.jsxs("a",{href:Xp(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#03C75A] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"๋„ค์ด๋ฒ„ ๊ธธ์ฐพ๊ธฐ"})]}),n.jsxs("a",{href:Wv(r.name,m,g),target:"_blank",rel:"noopener noreferrer nofollow",className:"tap flex flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#FEE500] px-4 text-[length:var(--fs-sm)] font-bold text-[#191600] transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"์นด์นด์˜ค ๊ธธ์ฐพ๊ธฐ"})]}),p&&n.jsxs("a",{href:p,className:"tap only-touch flex-1 basis-40 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-[#0064FF] px-4 text-[length:var(--fs-sm)] font-bold text-white transition-opacity hover:opacity-100",children:[n.jsx(Zo,{className:"size-4"}),n.jsx("span",{children:"ํ‹ฐ๋งต ๊ธธ์ฐพ๊ธฐ"})]})]})]})})]}),o.length>0&&n.jsxs("div",{className:"mt-8",children:[n.jsxs("h3",{className:"mb-3 flex items-center gap-2 text-[length:var(--fs-sm)] font-bold",children:[n.jsx(Kb,{className:"size-4 opacity-100"}),n.jsx("span",{children:"์ฃผ์š” ๊ฑฐ์  ์†Œ์š”์‹œ๊ฐ„"})]}),n.jsx("div",{className:"panel overflow-hidden",children:n.jsx("div",{className:"slider-viewport",children:n.jsxs("table",{className:"w-full min-w-[34rem] text-left text-[length:var(--fs-sm)]",children:[n.jsxs("caption",{className:"sr-only",children:[s.place.name,"์—์„œ ์ฃผ์š” ๊ฑฐ์ ๊นŒ์ง€์˜ ์ด๋™ ์‹œ๊ฐ„"]}),n.jsx("thead",{className:"panel-sunken border-line border-b font-semibold",children:n.jsxs("tr",{children:[n.jsx("th",{scope:"col",className:"p-4",children:"๋ชฉ์ ์ง€"}),n.jsx("th",{scope:"col",className:"p-4",children:"์ฐจ๋Ÿ‰"}),n.jsx("th",{scope:"col",className:"p-4",children:"๋„๋ณด / ๋Œ€์ค‘๊ตํ†ต"}),n.jsx("th",{scope:"col",className:"p-4",children:"๊ฑฐ๋ฆฌ"}),n.jsx("th",{scope:"col",className:"hidden p-4 md:table-cell",children:"๋น„๊ณ "})]})}),n.jsx("tbody",{className:"divide-line divide-y",children:o.map(v=>n.jsxs("tr",{children:[n.jsx("th",{scope:"row",className:"p-4 text-left font-bold",children:v.destination}),n.jsx("td",{className:"p-4 font-semibold",children:v.byCar??"โ€”"}),n.jsx("td",{className:"p-4 opacity-100",children:v.byTransit??"โ€”"}),n.jsx("td",{className:"text-muted p-4 tabular-nums",children:v.distanceText??"โ€”"}),n.jsx("td",{className:"text-muted hidden p-4 md:table-cell",children:v.note??""})]},v.destination))})]})})})]})]})}function k1(){const s=P(),r=mv(s);if(r.length===0)return null;const o=r.some(u=>u.sourceType===$0.TEMPLATE);return n.jsx(rt,{id:"faq",tone:"alt",title:"์ž์ฃผ ๋ฌป๋Š” ์งˆ๋ฌธ",lead:o?void 0:"์•„๋ž˜ ๋‹ต๋ณ€์€ ๋ชจ๋‘ ์‚ฌ์—…์ž๊ฐ€ ํ™•์ธํ•œ ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค.",children:n.jsx("div",{className:r.length>4?"grid gap-3 lg:grid-cols-2 lg:gap-4":"space-y-3",children:n.jsx(Ip,{initial:6,label:u=>`์งˆ๋ฌธ ${u}๊ฐœ ๋” ๋ณด๊ธฐ`,children:r.map(u=>n.jsxs("details",{className:"panel group h-fit overflow-hidden",children:[n.jsxs("summary",{className:"tap flex cursor-pointer items-center gap-3 px-5 text-[length:var(--fs-sm)] font-bold marker:content-none [&::-webkit-details-marker]:hidden",children:[n.jsx("span",{className:"serif text-muted shrink-0",children:"Q."}),n.jsx("span",{className:"flex-1",children:u.question}),n.jsx("span",{className:"text-muted shrink-0 transition-transform group-open:rotate-45",children:"+"})]}),n.jsx("div",{className:"border-line border-t px-5 pb-5 pt-4 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:u.answer})]},u.faqId))})})})}function ex(){var x,p,y,v;const s=P(),{place:r,site:o}=s,u=gu(s),f=r.roadAddress??r.address,d=r.category===dl.LODGING?jr(s):null,[m,g]=M.useState(!1);return n.jsxs("footer",{className:"w-full pb-28 pt-14 md:pb-14",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)"},children:[n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid grid-cols-1 gap-8 border-b border-current/15 pb-10 md:grid-cols-12",children:[n.jsxs("div",{className:"space-y-4 md:col-span-7",children:[n.jsx("p",{className:"serif text-[length:var(--fs-lead)] font-bold",children:r.name}),n.jsxs("div",{className:"space-y-2 text-[length:var(--fs-sm)] opacity-100",children:[f&&n.jsxs("p",{className:"flex items-start gap-2",children:[n.jsx(vr,{className:"mt-1 size-4 shrink-0 opacity-100"}),n.jsx("span",{children:f})]}),r.phone&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(At,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-2 hover:underline",children:r.phone})]}),r.email&&n.jsxs("p",{className:"flex items-center gap-2",children:[n.jsx(Mp,{className:"size-4 shrink-0 opacity-100"}),n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-2 hover:underline",children:r.email})]})]})]}),u&&n.jsxs("nav",{"aria-label":"๊ณต์‹ ์ฑ„๋„",className:"md:col-span-5",children:[n.jsx("h2",{className:"label mb-3 !text-current opacity-100",children:"๊ณต์‹ ์ฑ„๋„"}),n.jsx("ul",{className:"flex flex-wrap gap-2",children:n.jsx("li",{children:d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:n.jsx("span",{children:"์˜ˆ์•ฝํ•˜๊ธฐ"})}):n.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-lg border border-current/25 px-3 py-2 text-[length:var(--fs-xs)] font-medium transition-colors hover:bg-current/10",children:[n.jsx("span",{children:kn(u)}),n.jsx(u0,{className:"size-3.5"})]})})})]})]}),n.jsxs("div",{className:"flex flex-col gap-3 pt-6 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["์ƒํ˜ธ: ",r.name]}),((x=r.legal)==null?void 0:x.representative)&&n.jsxs("span",{children:["๋Œ€ํ‘œ: ",r.legal.representative]}),((p=r.legal)==null?void 0:p.businessRegistrationNumber)&&n.jsxs("span",{children:["์‚ฌ์—…์ž๋“ฑ๋ก๋ฒˆํ˜ธ: ",r.legal.businessRegistrationNumber]}),((y=r.legal)==null?void 0:y.mailOrderNumber)&&n.jsxs("span",{children:["ํ†ต์‹ ํŒ๋งค์—…์‹ ๊ณ : ",r.legal.mailOrderNumber]}),((v=r.legal)==null?void 0:v.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"์ธํ—ˆ๊ฐ€๋ฒˆํ˜ธ",": ",r.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["์ž‘์„ฑยท์šด์˜ ",r.name]})," ยท ์ตœ์ข… ์—…๋ฐ์ดํŠธ: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]}),n.jsxs("p",{className:"pt-3 text-[length:var(--fs-xs)] opacity-100",children:[n.jsx("a",{href:"https://www.o2osolution.ai/",target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:"AI O2O"}),"์˜ Web4Ai๋กœ ๋งŒ๋“  ์‚ฌ์ดํŠธ์ž…๋‹ˆ๋‹ค."]})]}),d&&n.jsx(ma,{open:m,onClose:()=>g(!1),label:"์˜ˆ์•ฝ ์š”์ฒญ",title:"์˜ˆ์•ฝ ์š”์ฒญ",wide:!0,children:n.jsx(Er,{})})]})}function Rn(){const s=P(),r=s.place.phone,u=Fe(s)[0],f=s.links.find(x=>x.confirmed&&/kakao/i.test(x.url)),d=s.place.category===dl.LODGING?jr(s):null,[m,g]=M.useState(!1);return!r&&!u&&!f?null:n.jsxs(n.Fragment,{children:[n.jsxs("nav",{"aria-label":"์—ฐ๋ฝ ยท ์˜ˆ์•ฝ",className:"border-line safe-b fixed inset-x-0 bottom-0 z-50 flex items-stretch gap-2 border-t px-3 pt-2 backdrop-blur-md lg:hidden",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 94%, transparent)"},children:[n.jsxs("a",{href:"#location",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":"์˜ค์‹œ๋Š” ๊ธธ",children:[n.jsx(vr,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"์œ„์น˜"})]}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap border-line flex w-12 shrink-0 flex-col items-center justify-center rounded-lg border text-[length:var(--fs-xs)] leading-none font-medium","aria-label":Bl(f),children:[n.jsx(hu,{className:"size-4"}),n.jsx("span",{className:"mt-0.5",children:"๋ฌธ์˜"})]}),r&&n.jsxs("a",{href:`tel:${r}`,className:"tap border-line flex flex-1 items-center justify-center gap-1.5 rounded-lg border text-[length:var(--fs-sm)] font-bold",children:[n.jsx(At,{className:"size-4"}),n.jsx("span",{children:"์ „ํ™”"})]}),u&&(d?n.jsx("button",{type:"button",onClick:()=>g(!0),className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:"์˜ˆ์•ฝํ•˜๊ธฐ"}):n.jsx("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"tap flex min-w-0 flex-[1.4] items-center justify-center truncate rounded-lg px-2 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:yt(u)}))]}),d&&n.jsx(ma,{open:m,onClose:()=>g(!1),label:"์˜ˆ์•ฝ ์š”์ฒญ",title:"์˜ˆ์•ฝ ์š”์ฒญ",wide:!0,children:n.jsx(Er,{})})]})}const tx=M.createContext(!1),Ft="var(--tpl-card, #fafafa)",Se="var(--tpl-border, #d6d3d1)",Ze="color-mix(in oklab, var(--tpl-accent, #2563eb) 55%, currentColor)",$s="var(--tpl-inverse, #1c1917)",ha="var(--tpl-bg, #ffffff)",ml="var(--tpl-text, #09090b)";function _1({n:s}){return n.jsx("span",{className:"mr-1.5 inline-grid size-[22px] shrink-0 place-items-center rounded-full text-[length:var(--fs-xs)] leading-none tabular-nums",style:{backgroundColor:Ze,color:ha},children:s})}function xl({id:s,name:r,subtitle:o,count:u,link:f,children:d,dark:m}){const g=Sr(),x=M.useContext(tx),p=g==="reservation"?wu:g==="oasi"?Eu:g==="studio"?zu:g==="pastel"?Tu:g==="editorial"?Nu:null,y=f?n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-semibold underline-offset-4 opacity-100 transition-opacity hover:opacity-100 hover:underline",children:[f.label," โ†’"]}):void 0;return n.jsx("section",{id:s,"aria-labelledby":`${s}-heading`,className:"border-line paper w-full border-b",style:{backgroundColor:m?$s:"var(--tpl-surface, #fafafa)",color:m?ha:ml,paddingBlock:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[p?n.jsx(p,{id:s,title:r,lead:o,aside:y}):n.jsxs("header",{className:x?"":"mb-8 sm:mb-10",children:[n.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-x-4 gap-y-2",children:[n.jsx("h2",{id:`${s}-heading`,className:x?"sr-only":"h2",children:r}),y]}),o&&n.jsx("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:o})]}),d,u&&n.jsx("p",{className:"mt-6 text-[length:var(--fs-xs)] opacity-100",children:u})]})})}function Un({children:s,label:r,arrows:o="header",onSelect:u,onReady:f}){return n.jsx(La,{label:r,gap:1,arrows:o,onSelect:u,onReady:f,children:s})}function hl({source:s,verified:r,imageCredit:o}){return!(s!=null&&s.name)&&!o?null:n.jsxs("p",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-[length:var(--fs-xs)] opacity-100",children:[(s==null?void 0:s.name)&&n.jsxs("span",{children:["์ถœ์ฒ˜ ยท"," ",s.url?n.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-2",children:s.name}):s.name]}),o&&n.jsxs("span",{children:["์‚ฌ์ง„ ยท ",o]})]})}function Vs(s,r,o){return`์ด ${s}${o}`}const bp=["#d4551f","#1d3c74","#2a6053","#7a3b52","#a34a2a","#334b6d","#4f6b3a","#6b2f3a","#2b6b7a","#8a4b2a","#4a3f6b","#3a5a4a","#b5603a","#356b8a","#6b4a2a","#2f5b6b","#a3562a","#4a4a6b","#c8873a","#2f6b4f","#7a4a6b","#5a5a4a","#3f5f6b"];function vp(s){if(s.labelColor)return s.labelColor;const r=s.title??"";let o=0;for(let u=0;u>>0;return bp[o%bp.length]}function lx(){const s=P(),r=Wt(s,"songs"),u=new Set(r.items.map(x=>{var p,y;return`${((p=x.source)==null?void 0:p.name)??""}|${((y=x.source)==null?void 0:y.url)??""}`})).size===1&&r.items.length>1,[f,d]=M.useState(0);if(r.items.length===0)return null;const m=r.items[f]??r.items[0],g=x=>[x.artist,x.year?String(x.year):void 0,x.lyricist||x.composer?`์ž‘์‚ฌ ${x.lyricist??"๋ฏธ์ƒ"} / ์ž‘๊ณก ${x.composer??"๋ฏธ์ƒ"}`:void 0,x.label].filter(Boolean).join(" ยท ");return n.jsxs(xl,{id:"songs",name:r.title||$e(s,"songs","๊ฐ€์š” ๋‹ค๋ฐฉ"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"๊ณก"),children:[n.jsxs("div",{className:"tpl-border grid items-center gap-8 border p-6 sm:p-8 md:grid-cols-[240px_minmax(0,1fr)]",style:{backgroundColor:$s,color:ha,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsxs("div",{className:"relative mx-auto size-[220px]",children:[n.jsx("div",{className:"absolute inset-0 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 16%, transparent)"}}),n.jsx("div",{className:"w4-disc w4-spin absolute inset-2 rounded-full",style:{"--lbl":vp(m),"--w4-vinyl":$s},children:n.jsx("span",{className:"absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 30%, transparent)"}})}),n.jsxs("div",{"aria-hidden":!0,className:"absolute -right-1 top-3 h-2 w-[110px] origin-right rotate-6",children:[n.jsx("span",{className:"absolute inset-y-[3px] left-0 right-4 rounded-sm",style:{backgroundColor:"color-mix(in oklab, currentColor 65%, transparent)"}}),n.jsx("span",{className:"absolute -top-2 right-0 size-6 rounded-full",style:{backgroundColor:"color-mix(in oklab, currentColor 55%, transparent)"}})]})]}),n.jsx("div",{className:"min-w-0",children:r.items.map((x,p)=>n.jsxs("div",{hidden:p!==f,className:"space-y-3",children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.24em]",style:{color:Ze},children:["A๋ฉด ยท ",p+1," / ",r.items.length]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h2)] leading-tight",children:x.title}),n.jsx("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:g(x)}),x.story&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:x.story}),x.connection&&n.jsx("p",{className:"measure text-[length:var(--fs-sm)] leading-relaxed",style:{color:Ze},children:x.connection}),n.jsxs("a",{href:Fv(`${x.title} ${x.artist??""}`.trim()),target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1.5 text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",style:{color:Ze},children:[n.jsx(O0,{className:"size-4"}),n.jsx("span",{children:"์œ ํŠœ๋ธŒ์—์„œ ๋“ฃ๊ธฐ"})]}),!u&&n.jsx(hl,{source:x.source,verified:x.verified})]},`disc-${x.title}-${p}`))})]}),r.items.length>1&&n.jsx("div",{className:"mt-4 flex flex-wrap justify-center gap-4",children:r.items.map((x,p)=>n.jsxs("button",{type:"button",onClick:()=>d(p),"aria-pressed":p===f,className:"w-24 text-center",children:[n.jsx("span",{className:"w4-disc-mini mx-auto block size-[76px] rounded-full transition-transform hover:scale-105",style:{"--lbl":vp(x),"--w4-vinyl":$s,boxShadow:p===f?`0 0 0 2px ${Ze}`:void 0}}),n.jsx("span",{className:"mt-2 block truncate text-[length:var(--fs-xs)] leading-tight opacity-100",children:x.title})]},`${x.title}-${p}`))}),n.jsxs("div",{className:"mt-6 flex flex-col items-center gap-2 text-center",children:[n.jsx("span",{className:"block w-fit border border-dashed px-2 py-1 text-[length:var(--fs-xs)] tracking-[0.1em]",style:{borderColor:"color-mix(in oklab, currentColor 35%, transparent)"},children:"โ—Ž ๊ฐ€์‚ฌ ๋Œ€์‹  ์ด์•ผ๊ธฐ โ€” ์›๋ฌธ์€ ์‹ฃ์ง€ ์•Š์Šต๋‹ˆ๋‹ค"}),u&&r.items[0]&&n.jsx(hl,{source:r.items[0].source,verified:r.items[0].verified})]})]})}function A1(){const s=P(),r=Wt(s,"daily"),[o,u]=M.useState();if(M.useEffect(()=>{const x=new Date;u(`${String(x.getMonth()+1).padStart(2,"0")}-${String(x.getDate()).padStart(2,"0")}`)},[]),r.items.length===0)return null;const f=[...r.items].sort((x,p)=>x.monthDay.localeCompare(p.monthDay)),d=o===void 0?1:Math.max(0,(()=>{const x=f.findIndex(y=>y.monthDay===o);if(x>=0)return x;const p=f.findIndex(y=>y.monthDay>o);return p>=0?p:0})()),m=x=>f[(d+x+f.length)%f.length],g=f.length===1?[m(0)]:f.length===2?[m(0),m(1)]:[m(-1),m(0),m(1)];return n.jsx(xl,{id:"daily",name:r.title||$e(s,"daily","์˜ค๋Š˜์˜ ํ•œ ์žฅ"),subtitle:r.subtitle,count:Vs(f.length,r.unverified,"์žฅ"),children:n.jsx("div",{className:"flex items-start justify-center gap-4 sm:gap-6",children:f.map((x,p)=>{const y=g.indexOf(x);return n.jsx(C1,{page:x,hidden:y<0,isToday:g.length===1||y===1,muted:g.length>1&&y!==1},`${x.monthDay}-${p}`)})})})}function C1({page:s,isToday:r,muted:o,hidden:u}){const[f,d]=s.monthDay.split("-");return n.jsxs("article",{hidden:u,className:`w4-paper shrink-0 border transition-opacity ${o?"hidden w-[168px] opacity-100 sm:block":"w-[254px] max-w-full"}`,style:{backgroundColor:Ft,borderColor:r?Ze:Se,boxShadow:r?"5px 6px 0 color-mix(in oklab, currentColor 14%, transparent)":void 0},"aria-current":r?"date":void 0,children:[n.jsx("div",{className:"w4-perf h-3.5 border-b border-dashed",style:{"--tear":Ft,borderColor:Se}}),n.jsxs("div",{className:"border-b px-5 pb-3 pt-5 text-center",style:{borderColor:Se},children:[n.jsxs("p",{className:"text-[length:var(--fs-xs)] tracking-[0.2em] opacity-100",children:[f,"ๆœˆ"]}),n.jsx("p",{className:`serif mt-1 font-bold leading-none ${o?"text-4xl":"text-6xl"}`,style:{color:Ze},children:String(Number(d)||d)}),r&&n.jsx("p",{className:"mt-1.5 text-[length:var(--fs-xs)] tracking-[0.3em]",style:{color:Ze},children:"์˜ค๋Š˜"})]}),n.jsxs("div",{className:"space-y-2 px-5 pb-5 pt-4",children:[s.category&&n.jsx("p",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:s.category}),n.jsx("h3",{className:"serif text-base font-bold leading-snug",children:s.title}),!o&&s.body&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.body}),!o&&n.jsx("div",{className:"border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}function ax(){const s=P(),r=Wt(s,"people");return r.items.length===0?null:n.jsx(xl,{id:"people",name:r.title||$e(s,"people","์ธ๋ฌผ ์—ด์ „"),subtitle:r.subtitle,count:r.items.some(o=>!o.imageUrl)?`${Vs(r.items.length,r.unverified,"๋ช…")} ยท ์‚ฌ์ง„์ด ์—†๋Š” ์ธ๋ฌผ์€ ์ด๋ฆ„ ํ™œ์ž๋กœ ๋Œ€์‹ ํ•ฉ๋‹ˆ๋‹ค`:Vs(r.items.length,r.unverified,"๋ช…"),dark:!0,children:n.jsxs("div",{className:"tpl-border border",style:{backgroundColor:$s,borderColor:"color-mix(in oklab, currentColor 22%, transparent)"},children:[n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"}),n.jsx("div",{className:"px-3 py-4",children:n.jsx(Un,{label:"์ธ๋ฌผ ๋ชฉ๋ก",arrows:"overlay",children:r.items.map((o,u)=>n.jsxs("article",{className:"w-[210px] shrink-0 snap-center",children:[o.imageUrl?n.jsx("img",{src:o.imageUrl,alt:`${o.name} ์‚ฌ์ง„`,loading:"lazy",decoding:"async",className:"aspect-3/4 w-full border object-cover",style:{borderColor:"color-mix(in oklab, currentColor 28%, transparent)"}}):n.jsx("span",{className:"serif grid aspect-3/4 w-full place-items-center border text-5xl",style:{backgroundColor:"color-mix(in oklab, currentColor 14%, transparent)",borderColor:"color-mix(in oklab, currentColor 28%, transparent)"},"aria-hidden":!0,children:o.name.trim().charAt(0)}),n.jsxs("h3",{className:"serif mt-3 text-base font-bold",children:[o.name,o.aka&&n.jsxs("span",{className:"ml-1.5 text-[length:var(--fs-xs)] opacity-100",children:["ํ˜ธ ",o.aka]})]}),n.jsx("p",{className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[o.role,o.years].filter(Boolean).join(" ยท ")}),o.oneLine&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:o.oneLine}),n.jsx("div",{className:"mt-2",children:n.jsx(hl,{source:o.source,verified:o.verified,imageCredit:o.imageCredit})})]},`${o.name}-${u}`))})}),n.jsx("div",{className:"w4-film-perf h-2.5 opacity-100"})]})})}function nx(){const s=P(),r=Wt(s,"chronicle");if(r.items.length===0)return null;const o=[...r.items].sort((f,d)=>f.year==null?d.year==null?0:1:d.year==null?-1:f.year-d.year),u=o.filter(f=>f.turning===!0).length;return n.jsx(xl,{id:"chronicle",name:r.title||$e(s,"chronicle","์‹œ๊ฐ„์˜ ๊ณจ๋ชฉ"),subtitle:r.subtitle,count:`๋ถ‰์€ ์ ์€ ๋„์‹œ์˜ ์„ฑ๊ฒฉ์ด ๋ฐ”๋€ ํ•ด์ž…๋‹ˆ๋‹ค ยท ${u}๊ฐœ / ์ „์ฒด ${o.length}๊ฐœ`,children:n.jsx(Un,{label:"์—ฐํ‘œ",children:o.map((f,d)=>{const m=f.turning===!0;return n.jsxs("article",{className:"w-[228px] shrink-0 snap-center",children:[n.jsx("p",{className:"serif text-3xl font-bold leading-none",style:{color:m?Ze:void 0},children:f.year??"์—ฐ๋„ ๋ฏธ์ƒ"}),n.jsxs("div",{className:"relative my-3 h-3",children:[n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 border-t",style:{borderColor:Se,right:d===o.length-1?"calc(100% - 12px)":0}}),n.jsx("i",{"aria-hidden":!0,className:"absolute top-1/2 left-0 size-3 -translate-y-1/2 rounded-full border-2",style:{backgroundColor:m?Ze:Ft,borderColor:m?Ze:Se}})]}),n.jsxs("div",{className:"flex gap-2.5 pr-5",children:[f.imageUrl&&n.jsx("img",{src:f.imageUrl,alt:`${f.title} ์‚ฌ์ง„`,loading:"lazy",decoding:"async",className:"size-14 shrink-0 border object-cover",style:{borderColor:Se}}),n.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[n.jsx("h3",{className:"serif text-base font-bold",children:f.title}),f.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:f.summary}),f.place&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:["์ง€๊ธˆ ์ด ์ž๋ฆฌ ยท ",f.place]}),n.jsx(hl,{source:f.source,verified:f.verified,imageCredit:f.imageCredit})]})]})]},`${f.year??"x"}-${f.title}-${d}`)})})})}function sx(){const s=P(),r=M.useMemo(()=>Wt(s,"reading"),[s]),o=r.items;if(o.length===0)return null;const u=new Set(o.map(d=>d.group).filter(Boolean)).size>1,f=s.place.addressLocality??"์ง€์—ญ";return n.jsx(xl,{id:"reading",name:r.title||$e(s,"reading",`${f} ์ฝ๊ธฐ`),subtitle:r.subtitle,children:n.jsx(Un,{label:`${f} ์ฝ๊ธฐ`,children:o.map((d,m)=>n.jsx("article",{className:"w-[86%] shrink-0 grow-0 sm:w-[min(600px,56%)]",children:n.jsxs("div",{className:"h-full border p-5",style:{backgroundColor:Ft,borderColor:Se},children:[(u||d.year!=null)&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] font-bold tracking-[0.18em]",style:{color:Ze},children:[u&&d.group,u&&d.year!=null&&" ยท ",d.year!=null&&n.jsx("span",{className:"font-normal",children:d.year})]}),n.jsx("h3",{className:"serif text-xl leading-snug font-bold",children:d.title}),n.jsx("span",{"aria-hidden":!0,className:"mt-3 mb-3 block h-px w-10",style:{backgroundColor:Ze}}),n.jsx("p",{className:"text-[length:var(--fs-body)] leading-[1.9] break-keep",children:d.body}),n.jsx("div",{className:"mt-4 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:d.source,verified:d.verified})})]})},`${d.title}-${m}`))})})}function ix(){const s=P(),r=Wt(s,"postcard");return r.items.length===0?null:n.jsx(xl,{id:"postcard",name:r.title||$e(s,"postcard","์˜ค๋Š˜์˜ ์—ฝ์„œ"),subtitle:r.subtitle,count:Vs(r.items.length,r.unverified,"์žฅ"),children:n.jsx(Un,{label:"์—ฝ์„œ ๋ชฉ๋ก",children:r.items.map((o,u)=>n.jsxs("article",{className:"w4-paper w-[304px] shrink-0 snap-center border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[o.imageUrl&&n.jsx("img",{src:o.imageUrl,alt:`${o.place||o.postmark||"์—ฝ์„œ"} ์‚ฌ์ง„`,loading:"lazy",decoding:"async",className:"block aspect-3/2 w-full border object-cover",style:{borderColor:Se}}),o.imageUrl&&n.jsxs("p",{className:"mt-1 mb-3.5 text-[length:var(--fs-xs)] leading-tight opacity-100",children:["์‚ฌ์ง„ ยท ",o.imageCredit||"์ถœ์ฒ˜ ํ‘œ๊ธฐ ์—†์Œ"]}),n.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[n.jsxs("div",{className:"min-w-0 border-r pr-3",style:{borderColor:Se},children:[n.jsxs("p",{className:"serif text-[17px] leading-snug",children:["โ€œ",o.line,"โ€"]}),o.hashtags&&o.hashtags.length>0&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] opacity-100",children:o.hashtags.join(" ")})]}),n.jsxs("div",{className:"flex w-[62px] flex-col items-center gap-3",children:[n.jsxs("span",{className:"grid h-[56px] w-[44px] place-items-center border border-dashed text-center text-[length:var(--fs-xs)] leading-tight opacity-100",style:{borderColor:Se},children:["้ƒต็ฅจ",n.jsx("br",{}),"10์›"]}),n.jsx("span",{className:"serif grid size-[54px] -rotate-6 place-items-center rounded-full border-2 px-1 text-center text-[length:var(--fs-xs)] leading-tight",style:{borderColor:Ze,color:Ze},children:o.postmark||o.place||"์†Œ์ธ"})]})]}),n.jsx("div",{className:"mt-3 border-t border-dashed pt-2.5",style:{borderColor:Se},children:n.jsx(hl,{source:o.source,verified:o.verified})})]},`${o.line}-${u}`))})})}function M1(){const s=P(),r=Wt(s,"quiz"),[o,u]=M.useState(new Set);if(r.items.length===0)return null;const f=d=>u(m=>{const g=new Set(m);return g.has(d)?g.delete(d):g.add(d),g});return n.jsx(xl,{id:"quiz",name:r.title||$e(s,"quiz","๋’ค์ง‘์–ด ๋ณด๋Š” ์งˆ๋ฌธ"),subtitle:r.subtitle,count:`์ •๋‹ต์€ ๋‘์ง€ ์•Š์Šต๋‹ˆ๋‹ค โ€” ํžŒํŠธ์™€ ์ถœ์ฒ˜๊นŒ์ง€๋งŒ ยท ์ด ${r.items.length}๋ฌธํ•ญ`,children:n.jsx(Un,{label:"์งˆ๋ฌธ ๋ชฉ๋ก",children:r.items.map((d,m)=>{const g=o.has(m);return n.jsx("button",{type:"button",onClick:()=>f(m),"aria-pressed":g,"aria-label":`${m+1}๋ฒˆ ๋ฌธ์ œ ${g?"์•ž๋ฉด ๋ณด๊ธฐ":"ํžŒํŠธ ๋ณด๊ธฐ"}`,className:`w4-flip ${g?"w4-flip-on":""} h-[260px] w-[262px] shrink-0 text-left`,children:n.jsxs("span",{className:"w4-flip-inner block size-full",children:[n.jsxs("span",{className:"w4-flip-face w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:ml},children:[n.jsxs("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em] opacity-100",children:["๋ฌธ์ œ ",m+1,d.level?` ยท ${d.level}`:""]}),n.jsx("span",{className:"serif text-[17px] font-bold leading-snug",children:d.question}),n.jsx("span",{className:"mt-auto text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"๋ˆŒ๋Ÿฌ์„œ ํžŒํŠธ ๋ณด๊ธฐ โ†’"})]}),n.jsxs("span",{className:"w4-flip-face w4-flip-back w4-paper flex size-full flex-col gap-3 border p-4",style:{backgroundColor:Ft,borderColor:Ze},children:[n.jsx("span",{className:"text-[length:var(--fs-xs)] tracking-[0.16em]",style:{color:Ze},children:"ํžŒํŠธ"}),n.jsx("span",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:d.hint??"ํžŒํŠธ๊ฐ€ ์•„์ง ์—†์Šต๋‹ˆ๋‹ค."}),n.jsxs("span",{className:"mt-auto space-y-1 border-t border-dashed pt-2.5",style:{borderColor:Se},children:[d.topic&&n.jsx("span",{className:"block text-[length:var(--fs-xs)] opacity-100",children:d.topic}),n.jsx(hl,{source:d.source,verified:d.verified})]})]})]})},`${d.question}-${m}`)})})})}const Hl=256,Hs=318,Tn=168,yp=34,O1=16,jp=4;function rx(s,r,o){const u=Hl*2**o,f=s*Math.PI/180;return{x:(r+180)/360*u,y:(1-Math.log(Math.tan(f)+1/Math.cos(f))/Math.PI)/2*u}}function D1(s){if(s.length<2)return 15;for(let r=O1;r>jp;r-=1){const o=s.map(d=>rx(d.lat,d.lng,r)),u=Math.max(...o.map(d=>d.x))-Math.min(...o.map(d=>d.x)),f=Math.max(...o.map(d=>d.y))-Math.min(...o.map(d=>d.y));if(u<=Hs-yp*2&&f<=Tn-yp*2)return r}return jp}function R1(s,r){const o=d=>d.latitude!=null&&d.longitude!=null?{name:d.searchQuery??d.name,lat:d.latitude,lng:d.longitude}:void 0,u=[];let f=r;return s.forEach((d,m)=>{const g=o(d);g&&(u.push({label:String(m+1),...g,stop:d,from:f&&!U1(f,g)?f:void 0}),f=g)}),u}function U1(s,r){return Math.abs(s.lat-r.lat)<1e-5&&Math.abs(s.lng-r.lng)<1e-5}function H1(s){const o=s.map(u=>({...u}));for(let u=1;uMath.hypot(o[u].x-y.x,o[u].y-y.y)<27);if(!d)break;const m=o[u].x-d.x,g=o[u].y-d.y,x=Math.hypot(m,g)||1,p=(27-x)/x;o[u].x+=(m||1)*p,o[u].y+=g*p}return o}function L1(s){return s.from?Iv(s.from,{name:s.stop.name,lat:s.lat,lng:s.lng}):Xp(s.stop.searchQuery??s.stop.name,s.lat,s.lng)}function B1({stops:s}){const{place:r}=P(),o=r.latitude!=null&&r.longitude!=null?{name:r.name,lat:r.latitude,lng:r.longitude}:void 0,u=s.filter(N=>N.latitude!=null&&N.longitude!=null);if(u.length===0||u.length===1&&s.length>1)return null;const f=R1(s,o),d=D1(f),m=H1(f.map(N=>rx(N.lat,N.lng,d))),g=(Math.min(...m.map(N=>N.x))+Math.max(...m.map(N=>N.x)))/2,x=(Math.min(...m.map(N=>N.y))+Math.max(...m.map(N=>N.y)))/2,p=g-Hs/2,y=x-Tn/2,v=2**d,j=[];for(let N=Math.floor(p/Hl);N<=Math.floor((p+Hs)/Hl);N+=1)for(let k=Math.floor(y/Hl);k<=Math.floor((y+Tn)/Hl);k+=1){if(k<0||k>=v)continue;const L=(N%v+v)%v;j.push({key:`${N}-${k}`,url:`https://tile.openstreetmap.org/${d}/${L}/${k}.png`,left:N*Hl-p,top:k*Hl-y})}const w=m.map(N=>`${(N.x-p).toFixed(1)},${(N.y-y).toFixed(1)}`).join(" ");return n.jsxs("div",{className:"relative mt-3.5 overflow-hidden border-y",style:{height:Tn,borderColor:Se,backgroundColor:"#e8e5df"},children:[j.map(N=>n.jsx("img",{src:N.url,alt:"",width:Hl,height:Hl,loading:"lazy",decoding:"async",className:"pointer-events-none absolute max-w-none",style:{left:N.left,top:N.top,filter:"grayscale(1) contrast(0.95) opacity(0.55)"}},N.key)),n.jsx("svg",{className:"pointer-events-none absolute inset-0",width:Hs,height:Tn,viewBox:`0 0 ${Hs} ${Tn}`,children:n.jsx("polyline",{points:w,fill:"none",stroke:Ze,strokeWidth:"2",strokeDasharray:"5 4",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.85"})}),f.map((N,k)=>{const L=m[k];return n.jsx("a",{href:L1(N),target:"_blank",rel:"noopener noreferrer",title:N.from?`${N.from.name} โ†’ ${N.stop.name} ๊ธธ์ฐพ๊ธฐ`:`${N.stop.name} โ€” ๋„ค์ด๋ฒ„ ์ง€๋„`,className:"absolute grid h-[22px] min-w-[22px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full px-1.5 text-[length:var(--fs-xs)] font-bold whitespace-nowrap shadow-sm transition-transform hover:scale-110",style:{left:L.x-p,top:L.y-y,backgroundColor:Ze,color:ha,border:`1.5px solid ${ha}`},children:N.label},N.label)}),n.jsx("span",{className:"absolute right-1 bottom-0.5 bg-white/70 px-1 text-[length:var(--fs-xs)] leading-tight text-stone-600",children:"ยฉ OpenStreetMap"})]})}function q1(s){const r=Math.floor(s/60),o=s%60;return[r>0?`${r}์‹œ๊ฐ„`:"",o>0?`${o}๋ถ„`:""].filter(Boolean).join(" ")||"0๋ถ„"}function ru(s){var r;return(r=s.days)!=null&&r.length?s.days.map(o=>({label:o.label,startTime:o.startTime,stops:o.stops??[]})):[{startTime:s.startTime,stops:s.stops??[]}]}function $1({item:s,badge:r,startTime:o,stops:u,first:f,placeName:d,continuesFrom:m,continuesTo:g}){const x=tv({name:s.name,startTime:o,stops:u}),[p,y]=M.useState(!1);return M.useEffect(()=>{window.matchMedia("(min-width: 768px)").matches&&y(!0)},[]),n.jsxs("article",{className:`w4-paper w-[320px] shrink-0 snap-center border-y ${m?"-ml-4 border-l-0":"border-l"} ${g?"":"border-r"}`,style:{backgroundColor:Ft,borderColor:Se,...g?{borderRight:`2px dashed ${Se}`}:null},children:[n.jsxs("div",{className:"flex items-center justify-between gap-2 border-b px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("span",{className:"border px-2 py-0.5 text-[length:var(--fs-xs)] font-bold",style:f?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:r}),n.jsxs("span",{className:"text-[length:var(--fs-xs)] opacity-100",children:[x.from,"โ€“",x.to," ยท ",q1(x.totalMinutes)]})]}),n.jsxs("div",{className:"space-y-1.5 px-4 pt-3.5",children:[n.jsx("h3",{className:"serif text-lg font-bold",children:s.name}),f&&s.audience&&n.jsx("p",{className:"text-[length:var(--fs-sm)] opacity-100",children:s.audience}),f&&s.why&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:s.why}),f&&n.jsxs("p",{className:"text-[length:var(--fs-xs)] opacity-100",children:[d,"์—์„œ ์ถœ๋ฐœ ยท ",x.from]})]}),p&&n.jsx(B1,{stops:x.stops.map(v=>v.stop)}),n.jsx("ol",{className:"mt-3 px-4 pb-3",children:x.stops.map((v,j)=>n.jsxs("li",{className:"grid grid-cols-[46px_minmax(0,1fr)] gap-2.5",children:[n.jsx("span",{className:"serif pt-2 text-[length:var(--fs-sm)] tabular-nums opacity-100",children:v.time}),n.jsxs("div",{className:`border-l pl-3 ${p?"pb-5":"pb-2"}`,style:{borderColor:Se},children:[v.move>0&&n.jsxs("p",{className:"pt-1 text-[length:var(--fs-xs)] opacity-100",children:["โ†“ ",v.move,"๋ถ„ ์ด๋™"]}),n.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[v.stop.imageUrl&&p&&n.jsx("img",{src:v.stop.imageUrl,alt:`${v.stop.name} ์‚ฌ์ง„`,loading:"lazy",decoding:"async",className:"size-12 shrink-0 object-cover",style:{border:`1px solid ${Se}`}}),n.jsxs("span",{className:"min-w-0",children:[n.jsxs("span",{className:"block text-[length:var(--fs-sm)] font-bold",children:[n.jsx(_1,{n:j+1}),v.stop.name]}),v.stop.note&&n.jsx("span",{hidden:!p,className:"mt-0.5 block text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:v.stop.note})]})]}),n.jsxs("p",{hidden:!p,className:"mt-0.5 text-[length:var(--fs-xs)] opacity-100",children:[v.time,"โ€“",v.until,v.stop.searchQuery&&` ยท ์ง€๋„ ๊ฒ€์ƒ‰ ${v.stop.searchQuery}`]})]})]},`${v.stop.name}-${j}`))}),n.jsxs("div",{className:"border-t border-dashed px-4 py-2.5",style:{borderColor:Se},children:[n.jsx("button",{type:"button",onClick:()=>y(v=>!v),className:"tap w-full border text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:p?"์ ‘๊ธฐ":"์ง€๋„ ยท ์„ค๋ช… ๋ณด๊ธฐ"}),n.jsx("div",{hidden:!p,className:"pt-2.5",children:n.jsx(hl,{source:s.source,verified:s.verified})})]})]})}const Po="๊ทธ ๋ฐ–์˜ ์ผ์ •";function Y1(){var x;const s=P(),r=Wt(s,"itinerary"),u=(r.items.length>0?r.items:((x=s.local)==null?void 0:x.itineraries)??[]).filter(p=>ru(p).some(y=>y.stops.length>0)),f=[...new Set(u.map(p=>{var y;return((y=p.duration)==null?void 0:y.trim())||Po}))],[d,m]=M.useState(null),g=d??f[0];return u.length===0?null:n.jsxs(xl,{id:"itinerary",name:r.title||$e(s,"itinerary","์ถ”์ฒœ ์ผ์ •"),subtitle:r.subtitle,count:"์‹œ๊ฐ์€ ์ถœ๋ฐœ ์‹œ๊ฐ๊ณผ ๋จธ๋ฌด๋Š” ์‹œ๊ฐ„์œผ๋กœ ๊ณ„์‚ฐํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค",children:[f.length>1&&n.jsx("div",{className:"mb-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":"๋ฌต๋Š” ๊ธฐ๊ฐ„",children:f.map(p=>{const y=g===p;return n.jsxs("button",{type:"button",role:"tab","aria-selected":y,onClick:()=>m(p),className:"border-line rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)",borderColor:"transparent"}:void 0,children:[p,n.jsx("span",{className:"ml-1.5 font-normal opacity-100",children:u.filter(v=>{var j;return(((j=v.duration)==null?void 0:j.trim())||Po)===p}).length})]},p)})}),f.map(p=>n.jsx("div",{hidden:p!==g,children:n.jsx(G1,{tab:p,items:u.filter(y=>{var v;return(((v=y.duration)==null?void 0:v.trim())||Po)===p}),placeName:s.place.name},g)},p))]})}function G1({tab:s,items:r,placeName:o}){const u=M.useMemo(()=>{let p=0;return r.map(y=>{const v=p;return p+=ru(y).length,{item:y,start:v}})},[r]),[f,d]=M.useState(0),m=M.useRef(null),g=M.useCallback(p=>{m.current=p},[]),x=u.reduce((p,y)=>y.start<=f?y.start:p,0);return n.jsxs(n.Fragment,{children:[u.length>1&&n.jsx("ul",{className:"border-line mb-5 flex flex-wrap items-center gap-x-4 gap-y-2 border-b pb-3",children:u.map(({item:p,start:y})=>{const v=y===x;return n.jsx("li",{children:n.jsx("button",{type:"button",onClick:()=>{var j;return(j=m.current)==null?void 0:j.scrollTo(y)},"aria-current":v,className:`text-left text-[length:var(--fs-sm)] underline-offset-4 transition-opacity hover:opacity-100 ${v?"font-bold underline":"opacity-100 hover:underline"}`,children:p.name})},`${p.name}-${y}`)})}),n.jsx(Un,{label:`${s} ์ผ์ •`,onSelect:d,onReady:g,children:u.flatMap(({item:p,start:y})=>{const v=ru(p);return v.map((j,w)=>n.jsx($1,{item:p,badge:j.label??p.duration??`${w+1}์ผ์ฐจ`,startTime:j.startTime,stops:j.stops,first:w===0,placeName:o,continuesFrom:w>0,continuesTo:w{const y=f.current;if(!y)return;const v=y.scrollWidth-y.clientWidth;m({prev:y.scrollLeft>8,next:y.scrollLeft(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g]);const x=M.useCallback(y=>{const v=f.current;if(!v)return;const j=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollBy({left:y*v.clientWidth*.85,behavior:j?"auto":"smooth"})},[]);if(Jp({box:f,interval:Kp,advance:()=>Hy(f.current)}),r.items.length===0)return null;const p=r.items.length>1;return n.jsx(xl,{id:"video",name:r.title||$e(s,"video","์˜์ƒ์œผ๋กœ ๋ณด๊ธฐ"),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"๋” ๋ณด๊ธฐ"}:void 0,children:n.jsxs("div",{className:"relative",children:[n.jsx("ul",{ref:f,onScroll:g,className:p?"flex snap-x snap-mandatory gap-4 overflow-x-auto [touch-action:pan-y_pinch-zoom] pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"grid grid-cols-1 gap-4 sm:max-w-md sm:mx-auto",children:r.items.map((y,v)=>{const j=V0(y.url),w=Z0(y.url),N=o===v;return n.jsx("li",{className:p?"shrink-0 basis-[46%] snap-start sm:basis-[30%] lg:basis-[200px]":"",children:n.jsxs("figure",{className:"space-y-2",children:[n.jsx("div",{className:"tpl-border relative mx-auto overflow-hidden border",style:{borderColor:Se,backgroundColor:Ft,aspectRatio:w?"9 / 16":"16 / 9",width:w?"min(100%, 14rem)":"100%"},children:N&&j?n.jsx("iframe",{src:J0(j),title:y.caption||"์˜์ƒ",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"size-full border-0"}):n.jsxs("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",onClick:k=>{j&&(k.preventDefault(),u(v))},"aria-label":`${y.caption||"์˜์ƒ"} ์žฌ์ƒ`,className:"group block size-full",children:[j?n.jsx("img",{src:K0(j),alt:"",loading:"lazy",decoding:"async",className:"size-full object-cover"}):n.jsx("span",{className:"text-muted grid size-full place-items-center px-4 text-center text-[length:var(--fs-xs)]",children:"์œ ํŠœ๋ธŒ ์˜์ƒ์ด ์•„๋‹™๋‹ˆ๋‹ค โ€” ๋ˆŒ๋Ÿฌ์„œ ์›๋ณธ์œผ๋กœ ๊ฐ‘๋‹ˆ๋‹ค"}),n.jsx("span",{className:"absolute inset-0 grid place-items-center",children:n.jsx("span",{className:"grid size-14 place-items-center rounded-full backdrop-blur transition-transform group-hover:scale-110",style:{backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 70%, transparent)",color:"var(--tpl-bg, #fff)"},children:n.jsx(N0,{className:"size-6"})})})]})}),y.caption&&n.jsx("figcaption",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:y.caption}),n.jsx(hl,{source:y.source,verified:y.verified})]})},`${y.url}-${v}`)})}),p&&n.jsxs(n.Fragment,{children:[n.jsx(Np,{dir:"prev",onClick:()=>x(-1),disabled:!d.prev}),n.jsx(Np,{dir:"next",onClick:()=>x(1),disabled:!d.next})]})]})})}function Np({dir:s,onClick:r,disabled:o}){const u=s==="prev"?_n:Ua;return n.jsx("button",{type:"button",onClick:r,disabled:o,"aria-label":s==="prev"?"์ด์ „ ์˜์ƒ":"๋‹ค์Œ ์˜์ƒ",className:`tap absolute top-1/2 z-10 flex -translate-y-1/2 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur transition hover:bg-black/75 disabled:pointer-events-none disabled:opacity-0 ${s==="prev"?"left-1":"right-1"}`,children:n.jsx(u,{className:"size-5"})})}const Q1={1:"ํ•œ",2:"๋‘",3:"์„ธ",4:"๋„ค",5:"๋‹ค์„ฏ",6:"์—ฌ์„ฏ",7:"์ผ๊ณฑ"},V1=s=>[{id:"songs",label:"๊ฐ€์š” ๋‹ค๋ฐฉ",Component:lx,dark:!1},{id:"people",label:"์ธ๋ฌผ ์—ด์ „",Component:ax,dark:!0},{id:"chronicle",label:"์‹œ๊ฐ„์˜ ๊ณจ๋ชฉ",Component:nx,dark:!1},{id:"reading",label:s,Component:sx,dark:!1},{id:"postcard",label:"์˜ค๋Š˜์˜ ์—ฝ์„œ",Component:ix,dark:!1}];function Z1(){var g;const s=P(),r=s.place.addressLocality??"์ง€์—ญ",o=$e(s,"story",`${r} ์ด์•ผ๊ธฐ`),u=Wt(s,"reading").title||`${r} ์ฝ๊ธฐ`,f=V1(u).filter(x=>Wt(s,x.id).items.length>0),[d,m]=M.useState(0);return f.length===0?null:n.jsxs(n.Fragment,{children:[n.jsx("section",{id:"story","aria-labelledby":"story-heading",className:"paper w-full",style:{backgroundColor:"var(--tpl-surface, #fafafa)",color:ml,paddingTop:"var(--section-space)",paddingBottom:(g=f[d])!=null&&g.dark?"calc(var(--section-space) * 0.55)":0},children:n.jsxs("div",{className:"shell",children:[n.jsx("h2",{id:"story-heading",className:"h2",children:o}),n.jsxs("p",{className:"measure mt-3 text-[length:var(--fs-sm)] opacity-100",children:["์ด ๋„์‹œ๋ฅผ ",Q1[f.length]??`${f.length}`," ๊ฐˆ๋ž˜๋กœ ๋ด…๋‹ˆ๋‹ค. ํ•˜๋‚˜์”ฉ ๊ณจ๋ผ ๋ณด์„ธ์š”."]}),n.jsx("div",{className:"mt-6 flex flex-wrap gap-1.5",role:"tablist","aria-label":o,children:f.map((x,p)=>{const y=p===d;return n.jsx("button",{type:"button",role:"tab","aria-selected":y,"aria-controls":x.id,onClick:()=>m(p),className:"rounded-full border px-4 py-1.5 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:y?{backgroundColor:ml,color:ha,borderColor:ml}:{borderColor:Se},children:x.label},x.id)})})]})}),n.jsx(tx.Provider,{value:!0,children:f.map((x,p)=>n.jsx("div",{hidden:p!==d,children:n.jsx(x.Component,{})},x.id))})]})}const K1={open:"์ง„ํ–‰ ์ค‘",soon:"๊ณง ์‹œ์ž‘",closed:"์ข…๋ฃŒ"};function Sp(s,r){return s.endDate&&s.endDater?"soon":"open"}function eu(s,r){return s.kind==="๊ณต์ง€"&&!s.startDate&&!s.endDate?"๊ณต์ง€":r&&K1[r]}function tu(s){const r=f=>{const d=/^(\d{4})-(\d{2})-(\d{2})$/.exec(f??"");return d?`${Number(d[2])}์›” ${Number(d[3])}์ผ`:void 0},o=r(s.startDate),u=r(s.endDate);if(o&&u)return o===u?o:`${o} โ€“ ${u}`;if(o)return`${o}๋ถ€ํ„ฐ`;if(u)return`${u}๊นŒ์ง€`}function J1(){const s=P(),r=Wt(s,"event"),[o,u]=M.useState();M.useEffect(()=>u(new Date().toLocaleDateString("sv-SE")),[]);const[f,d]=M.useState(null),m=M.useCallback(()=>d(null),[]);if(M.useEffect(()=>{if(f===null)return;const p=L=>{L.key==="Escape"&&m()},y=window.scrollY,v=document.body,j=v.style.position,w=v.style.top,N=v.style.width,k=v.style.overflow;return v.style.position="fixed",v.style.top=`-${y}px`,v.style.width="100%",v.style.overflow="hidden",window.addEventListener("keydown",p),()=>{v.style.position=j,v.style.top=w,v.style.width=N,v.style.overflow=k,window.scrollTo(0,y),window.removeEventListener("keydown",p)}},[f,m]),r.items.length===0)return null;const g=f===null?void 0:r.items[f],x=g&&o?Sp(g,o):void 0;return n.jsxs(xl,{id:"event",name:r.title||$e(s,"event",`${s.place.name} ์†Œ์‹`),subtitle:r.subtitle,link:r.linkUrl?{url:r.linkUrl,label:r.linkLabel??"๋” ๋ณด๊ธฐ"}:void 0,count:"์ž์„ธํ•œ ๋‚ด์šฉ๊ณผ ์ตœ์‹  ์†Œ์‹์€ ์›๋ฌธ์—์„œ ํ™•์ธํ•ด ์ฃผ์„ธ์š”.",children:[n.jsx("ul",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:n.jsx(Ip,{initial:2,label:p=>`์†Œ์‹ ${p}๊ฐœ ๋” ๋ณด๊ธฐ`,children:r.items.map((p,y)=>{const v=o?Sp(p,o):void 0,j=eu(p,v),w=tu(p),N=v==="closed";return n.jsxs("li",{className:"w4-paper relative flex flex-col border-2",style:{backgroundColor:Ft,borderColor:Se,opacity:N?.6:1,boxShadow:N?"none":"3px 3px 0 color-mix(in oklab, currentcolor 12%, transparent)"},children:[n.jsx("button",{type:"button",onClick:()=>d(y),"aria-label":`${p.title} ์ž์„ธํžˆ ๋ณด๊ธฐ`,className:"absolute inset-0 z-20 cursor-pointer"}),n.jsx("div",{className:p.imageUrl?"relative overflow-hidden border-b-2":"contents",style:p.imageUrl?{borderColor:Se}:void 0,children:p.imageUrl?n.jsx("img",{src:p.imageUrl,alt:`${p.title} ์•ˆ๋‚ด ์ด๋ฏธ์ง€`,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full object-cover",style:N?{filter:"grayscale(1)"}:void 0}):null}),n.jsxs("div",{className:"flex flex-1 flex-col gap-2.5 p-5",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[j&&n.jsx("span",{className:"border-2 px-2 py-0.5 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{transform:"rotate(-3deg)",backgroundColor:v==="open"&&j!=="๊ณต์ง€"?Ze:Ft,color:v==="open"&&j!=="๊ณต์ง€"?ha:ml,borderColor:v==="open"&&j!=="๊ณต์ง€"?Ze:Se},children:j}),w&&n.jsx("span",{className:"text-[length:var(--fs-xs)] font-semibold tabular-nums opacity-100",children:w})]}),n.jsx("h3",{className:"serif text-lg font-bold leading-snug",children:p.title}),p.summary&&n.jsx("p",{className:"line-clamp-2 text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:p.summary}),p.howTo&&n.jsx("p",{className:"border-2 border-dashed px-3 py-2 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:p.howTo}),p.body&&n.jsx("p",{className:`whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100 ${p.imageUrl?"line-clamp-3":"line-clamp-[9]"}`,children:p.body}),n.jsx("p",{className:"mt-auto pt-2 text-[length:var(--fs-sm)] font-bold opacity-100",children:"์ž์„ธํžˆ ๋ณด๊ธฐ โ†’"})]})]},`${p.title}-${y}`)})})}),g&&n.jsx("div",{role:"dialog","aria-modal":"true","aria-label":g.title,className:"fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 backdrop-blur-sm sm:items-center sm:p-6",onClick:m,children:n.jsxs("article",{onClick:p=>p.stopPropagation(),className:"w4-paper max-h-[88vh] w-full max-w-2xl overflow-y-auto border-2",style:{backgroundColor:Ft,borderColor:Se,color:ml},children:[g.imageUrl&&n.jsx("img",{src:g.imageUrl,alt:`${g.title} ์•ˆ๋‚ด ์ด๋ฏธ์ง€`,className:"max-h-[46vh] w-full object-contain",style:{backgroundColor:"color-mix(in oklab, currentcolor 6%, transparent)"}}),n.jsxs("div",{className:"space-y-4 p-6 sm:p-8",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[eu(g,x)&&n.jsx("span",{className:"border-2 px-2.5 py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.08em]",style:{borderColor:Se},children:eu(g,x)}),tu(g)&&n.jsx("span",{className:"text-[length:var(--fs-sm)] font-semibold tabular-nums opacity-100",children:tu(g)})]}),n.jsx("h3",{className:"serif text-[length:var(--fs-h3)] font-bold leading-snug",children:g.title}),g.summary&&n.jsx("p",{className:"text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.summary}),g.howTo&&n.jsx("p",{className:"border-2 border-dashed px-4 py-3 text-[length:var(--fs-sm)] leading-relaxed",style:{borderColor:Se},children:g.howTo}),g.body&&n.jsx("p",{className:"whitespace-pre-line text-[length:var(--fs-sm)] leading-relaxed opacity-100",children:g.body}),n.jsxs("div",{className:"flex items-center justify-between gap-4 pt-2",children:[g.postUrl?n.jsx("a",{href:g.postUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[length:var(--fs-sm)] font-bold underline-offset-4 hover:underline",children:"์›๋ฌธ ๋ณด๊ธฐ โ†’"}):n.jsx("span",{}),n.jsxs("button",{type:"button",onClick:m,className:"tap inline-flex items-center gap-1.5 border-2 px-4 text-[length:var(--fs-sm)] font-bold",style:{borderColor:Se},children:[n.jsx(yr,{className:"size-4"}),n.jsx("span",{children:"๋‹ซ๊ธฐ"})]})]})]})]})})]})}const F1={songs:lx,daily:A1,people:ax,chronicle:nx,reading:sx,postcard:ix,quiz:M1,itinerary:Y1,video:X1,event:J1,story:Z1},W1="/v1/site/review",I1="/v1/site/reviews",wp=5,Ep=500;function P1(){const s=P(),[r,o]=M.useState(s.reviews??[]),u=M.useRef(Date.now()),[f,d]=M.useState(0),[m,g]=M.useState(""),[x,p]=M.useState(!1),[y,v]=M.useState(!1),[j,w]=M.useState(null),N=s.site.placeId,k=M.useCallback(async()=>{try{const G=await fetch(`${I1}?place_id=${encodeURIComponent(N)}`);if(!G.ok)return;const R=await G.json();Array.isArray(R==null?void 0:R.items)&&o(R.items)}catch{}},[N]);M.useEffect(()=>{u.current=Date.now(),k()},[k]),M.useEffect(()=>{y&&(u.current=Date.now())},[y]);async function L(G){if(G.preventDefault(),x)return;const R=new FormData(G.currentTarget);p(!0);try{const X=await(await fetch(W1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({place_id:s.site.placeId,body:m,nickname:String(R.get("nickname")??"")||null,consent:R.get("consent")==="on",company:String(R.get("company")??""),elapsed_ms:Date.now()-u.current})})).json();w({ok:!!(X!=null&&X.success),message:String((X==null?void 0:X.message)??"")}),X!=null&&X.success&&(g(""),d(0),v(!1),await k())}catch{w({ok:!1,message:"์ง€๊ธˆ์€ ๋‚จ๊ธฐ์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค. ์ž ์‹œ ๋’ค ๋‹ค์‹œ ์‹œ๋„ํ•ด ์ฃผ์„ธ์š”."})}finally{p(!1)}}const H=Math.ceil(r.length/wp);return n.jsxs(rt,{id:"reviews",tone:"alt",title:"๋‹ค๋…€์˜ค์‹  ์ด์•ผ๊ธฐ",lead:"๋‹ค๋…€๊ฐ€์‹  ๋ถ„๋“ค์ด ๋‚จ๊ธด ์ด์•ผ๊ธฐ์ž…๋‹ˆ๋‹ค.",children:[r.length>0&&n.jsx("ul",{className:"mb-7 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((G,R)=>n.jsxs("li",{hidden:Math.floor(R/wp)!==f,className:"panel flex flex-col gap-3 p-5",children:[n.jsx("p",{className:"whitespace-pre-line break-keep text-[length:var(--fs-sm)] leading-relaxed line-clamp-6",children:G.body}),n.jsxs("p",{className:"border-line mt-auto flex flex-wrap items-baseline justify-between gap-2 border-t pt-3",children:[n.jsx("span",{className:"text-[length:var(--fs-sm)] font-bold",children:G.nickname||"์†๋‹˜"}),n.jsx("time",{dateTime:G.publishedAt,className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:Gp(G.publishedAt)})]})]},G.reviewId))}),H>1&&n.jsx("nav",{"aria-label":"ํ›„๊ธฐ ํŽ˜์ด์ง€",className:"mb-7 flex flex-wrap justify-center gap-1.5",children:Array.from({length:H},(G,R)=>n.jsx("button",{type:"button",onClick:()=>d(R),"aria-current":R===f?"page":void 0,className:"border-line tpl-border min-w-9 rounded border px-3 py-1.5 text-[length:var(--fs-sm)] font-semibold tabular-nums",style:R===f?{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"}:void 0,children:R+1},R))}),(j==null?void 0:j.ok)&&n.jsxs("div",{className:"border-line tpl-border mb-5 rounded-lg border p-5",children:[n.jsx("p",{className:"text-[length:var(--fs-body)] font-bold",children:j.message}),n.jsx("p",{className:"text-muted mt-1 text-[length:var(--fs-sm)]",children:"์œ„ ๋ชฉ๋ก์— ๋ฐ”๋กœ ์˜ฌ๋ผ๊ฐ”์Šต๋‹ˆ๋‹ค."})]}),n.jsx("button",{type:"button",onClick:()=>{w(null),v(!0)},className:"tap border-line tpl-border w-full rounded-lg border text-[length:var(--fs-body)] font-bold",children:"ํ›„๊ธฐ ๋‚จ๊ธฐ๊ธฐ"}),n.jsx(ma,{open:y,onClose:()=>v(!1),label:"ํ›„๊ธฐ ๋‚จ๊ธฐ๊ธฐ",title:"ํ›„๊ธฐ ๋‚จ๊ธฐ๊ธฐ",children:n.jsxs("form",{onSubmit:L,className:"flex flex-col gap-3",children:[n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"review-body",className:"text-[length:var(--fs-sm)] font-bold",children:"ํ›„๊ธฐ"}),n.jsx("textarea",{id:"review-body",rows:4,maxLength:Ep,value:m,onChange:G=>g(G.target.value),placeholder:"์–ด๋–ค ์ ์ด ์ข‹์•˜๋Š”์ง€, ๋‹ค์Œ ์†๋‹˜์ด ์•Œ๋ฉด ์ข‹์„ ๊ฒƒ์„ ์ ์–ด ์ฃผ์„ธ์š”",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)] tabular-nums",children:[m.length," / ",Ep,"์ž"]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("label",{htmlFor:"review-nickname",className:"text-[length:var(--fs-sm)] font-bold",children:["ํ‘œ์‹œ ์ด๋ฆ„ ",n.jsx("span",{className:"text-muted font-normal",children:"(์„ ํƒ)"})]}),n.jsx("input",{id:"review-nickname",name:"nickname",maxLength:40,placeholder:"๋น„์šฐ๋ฉด '์†๋‹˜'์œผ๋กœ ์˜ฌ๋ผ๊ฐ‘๋‹ˆ๋‹ค",className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}})]}),n.jsx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":!0,className:"absolute size-0 overflow-hidden opacity-0"}),n.jsxs("label",{htmlFor:"review-consent",className:"text-muted flex items-start gap-2 text-[length:var(--fs-sm)]",children:[n.jsx("input",{id:"review-consent",name:"consent",type:"checkbox",required:!0,className:"mt-1 size-4 shrink-0"}),n.jsx("span",{children:"๋‚จ๊ธด ๊ธ€์ด ์ด ์‚ฌ์ดํŠธ์— ๊ณต๊ฐœ๋˜๋Š” ๊ฒƒ์— ๋™์˜ํ•ฉ๋‹ˆ๋‹ค."})]}),j&&!j.ok&&n.jsx("p",{className:"text-[length:var(--fs-sm)] font-semibold",style:{color:"var(--color-accent)"},children:j.message}),n.jsx("button",{type:"submit",disabled:x,className:"tap rounded-lg px-6 text-[length:var(--fs-body)] font-bold disabled:opacity-60",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg, #fff)"},children:x?"๋ณด๋‚ด๋Š” ์ค‘โ€ฆ":"ํ›„๊ธฐ ๋ณด๋‚ด๊ธฐ"})]})})]})}function ej(){const s=P().socialPosts??[];return s.length?n.jsxs("section",{id:"social-posts",className:"mx-auto w-full max-w-5xl px-6 py-12",children:[n.jsx("h2",{className:"mb-3 text-2xl font-semibold",children:"ํ•จ๊ป˜ ๋ฐœํ–‰ํ•œ ์†Œ์‹"}),n.jsx("p",{className:"mb-6 text-sm opacity-70",children:"์‚ฌ์žฅ๋‹˜์ด ์Šน์ธํ•ด ํ™ˆํŽ˜์ด์ง€์™€ Threads์— ํ•จ๊ป˜ ์ „ํ•œ ์†Œ์‹์ž…๋‹ˆ๋‹ค."}),n.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(r=>n.jsxs("article",{className:"rounded-xl border border-current/15 p-5",children:[n.jsxs("time",{dateTime:r.postedAt,className:"text-sm opacity-70",children:[new Date(r.postedAt).toLocaleDateString("sv-SE",{timeZone:"Asia/Seoul"})," (ํ•œ๊ตญ์‹œ๊ฐ„)"]}),n.jsx("p",{className:"my-4 whitespace-pre-wrap break-words",children:r.body}),r.permalink&&n.jsx("a",{href:r.permalink,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-4",children:"SNS์— ์˜ฌ๋ฆฐ ๊ธ€ ๋ณด๊ธฐ"})]},r.postId))})]}):null}const cu=1080,Ls=4,mt=56,ou=190,lu="#1b1a15",tj="#efe7d3",zp="#bf2f1b";function cx(s=cu){return s-mt-ou-mt-24}function ox(s,r,o){const u=[];return r.split(` `).forEach(f=>{if(f.trim()===""){u.push("");return}let d="";f.split(" ").forEach(m=>{const g=d?`${d} ${m}`:m;if(s.measureText(g).width<=o){d=g;return}if(d&&u.push(d),s.measureText(m).width<=o){d=m;return}let x="";for(const p of m){const y=x+p;s.measureText(y).width>o&&x?(u.push(x),x=p):x=y}d=x}),d&&u.push(d)}),u}function lj(s,r,o){const u=[];let f="";return r.split(/[,\s]+/).filter(Boolean).forEach(d=>{const m=f?`${f} ${d}`:d;if(s.measureText(m).width<=o){f=m;return}if(f&&u.push(f),s.measureText(d).width<=o){f=d;return}let g="";for(const x of d){const p=g+x;s.measureText(p).width>o&&g?(u.push(g),g=x):g=p}f=g}),f&&u.push(f),u}const aj="/v1/image/relay?url=";async function nj(s){const r=(o,u)=>new Promise((f,d)=>{const m=new Image;u&&(m.crossOrigin=u),m.onload=()=>f(m),m.onerror=d,m.src=o});try{return{img:await r(s,"anonymous"),exportable:!0}}catch{}if(/^https?:\/\//i.test(s))try{return{img:await r(`${aj}${encodeURIComponent(s)}`,"anonymous"),exportable:!0}}catch{}return{img:await r(s,null),exportable:!1}}function sj(){const s=document.querySelector(".serif");return(s?getComputedStyle(s).fontFamily:"")||"serif"}async function Tp(s,{photoUrl:r,text:o,placeName:u,region:f}){const d=s.getContext("2d");if(!d)return!1;const m=s.width,g=sj();d.clearRect(0,0,m,m),d.fillStyle=tj,d.fillRect(0,0,m,m);const{img:x,exportable:p}=await nj(r),y=m-mt*2,v=y/1.5,j=Math.max(y/x.width,v/x.height),w=x.width*j,N=x.height*j;d.save(),d.beginPath(),d.rect(mt,mt,y,v),d.clip(),d.drawImage(x,mt+(y-w)/2,mt+(v-N)/2,w,N),d.restore(),d.strokeStyle="rgba(27,26,21,0.25)",d.lineWidth=1,d.strokeRect(mt+.5,mt+.5,y-1,v-1);const k=mt+v+36,L=m-mt-ou,H=cx(m);d.strokeStyle="rgba(27,26,21,0.35)",d.beginPath(),d.moveTo(L,k),d.lineTo(L,m-mt-46),d.stroke(),d.fillStyle=lu,d.font=`600 46px ${g}`,d.textAlign="left",d.textBaseline="alphabetic";const G=ox(d,`โ€œ${o.trim()||"์˜ค๋Š˜, ์ด ์ˆ™์†Œ์—์„œ ํ•˜๋ฃจ๋ฅผ ๋ณด๋ƒ…๋‹ˆ๋‹ค."}โ€`,H),R=G.slice(0,Ls);if(G.length>Ls){let W=R[Ls-1];for(;W.length&&d.measureText(`${W}โ€ฆ`).width>H;)W=W.slice(0,-1);R[Ls-1]=`${W}โ€ฆ`}R.forEach((W,le)=>d.fillText(W,mt,k+50+le*60));const Z=L+ou/2;d.strokeStyle=lu,d.lineWidth=1.5,d.setLineDash([4,4]),d.strokeRect(Z-44,k,88,108),d.setLineDash([]),d.fillStyle=lu,d.font=`400 20px ${g}`,d.textAlign="center",d.fillText("้ƒต็ฅจ",Z,k+46),d.fillText("10์›",Z,k+78),d.save(),d.translate(Z,k+210),d.rotate(-6*Math.PI/180),d.strokeStyle=zp,d.lineWidth=3,d.beginPath(),d.arc(0,0,62,0,Math.PI*2),d.stroke(),d.fillStyle=zp,d.font=`600 22px ${g}`;const X=lj(d,u,100).slice(0,2),V=8-(X.length-1)*26/2;X.forEach((W,le)=>d.fillText(W,0,V+le*26)),d.restore();const Y=m-mt-30;return d.strokeStyle="rgba(27,26,21,0.3)",d.setLineDash([3,3]),d.beginPath(),d.moveTo(mt,Y-20),d.lineTo(m-mt,Y-20),d.stroke(),d.setLineDash([]),d.fillStyle="rgba(27,26,21,0.6)",d.font=`400 22px ${g}`,d.textAlign="left",d.fillText(`${u} ยท ${f}`,mt,Y+6),p}const kp="postcard.png";function ij(){const s=P(),r=(s.media??[]).filter(R=>R.url),o=M.useRef(null),[u,f]=M.useState(0),[d,m]=M.useState(""),[g,x]=M.useState(""),[p,y]=M.useState(!1),[v,j]=M.useState(!0);M.useEffect(()=>{var R;y(((R=window.matchMedia)==null?void 0:R.call(window,"(pointer: coarse)").matches)??!1)},[]);const w=s.place.name,N=String(s.place.address??"").split(" ").slice(0,2).join(" ");if(M.useEffect(()=>{const R=o.current,Z=r[u];if(!R||!(Z!=null&&Z.url))return;const X=window.setTimeout(()=>{Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j)},80);return()=>window.clearTimeout(X)},[u,d,w,N,r]),M.useEffect(()=>{var X;const R=o.current,Z=r[u];!R||!(Z!=null&&Z.url)||!((X=document.fonts)!=null&&X.ready)||document.fonts.ready.then(()=>Tp(R,{photoUrl:Z.url,text:d,placeName:w,region:N}).then(j))},[]),r.length===0)return null;function k(R){var X;const Z=(X=o.current)==null?void 0:X.getContext("2d");return Z?(Z.font="600 46px serif",ox(Z,`โ€œ${R}โ€`,cx()).length<=Ls):!0}function L(){return new Promise(R=>{const Z=o.current;if(!Z)return R(null);Z.toBlob(X=>R(X),"image/png",.95)})}function H(R){const Z=URL.createObjectURL(R),X=document.createElement("a");X.href=Z,X.download=kp,X.click(),URL.revokeObjectURL(Z)}async function G(){var V,Y;const R=await L();if(!R)return;const Z=((V=document.querySelector('meta[property="og:url"]'))==null?void 0:V.content)??`${location.origin}${location.pathname}`,X=new File([R],kp,{type:"image/png"});if((Y=navigator.canShare)!=null&&Y.call(navigator,{files:[X]})){await navigator.share({files:[X],title:`${w} ์—ฝ์„œ`,text:Z}).catch(()=>{});return}if(navigator.share){await navigator.share({title:`${w} ์—ฝ์„œ`,url:Z}).catch(()=>{}),x('์ด ๋ธŒ๋ผ์šฐ์ €๋Š” ์‚ฌ์ง„์„ ๊ฐ™์ด ๋ชป ๋ณด๋‚ด ๋งํฌ๋งŒ ๋ณด๋ƒˆ์Šต๋‹ˆ๋‹ค. ์‚ฌ์ง„์€ "์ด๋ฏธ์ง€๋กœ ์ €์žฅ" ์„ ๋ˆŒ๋Ÿฌ ์ฃผ์„ธ์š”.');return}H(R),x("์ด ๋ธŒ๋ผ์šฐ์ €๋Š” ๊ณต์œ  ์‹œํŠธ๋ฅผ ๋ชป ์—ด์–ด ์ €์žฅ์œผ๋กœ ๋Œ€์‹ ํ–ˆ์Šต๋‹ˆ๋‹ค.")}return n.jsx(rt,{id:"postcard-maker",title:"์—ฝ์„œ ์“ฐ๊ธฐ",lead:`${w}์—์„œ ๋ณด๋‚ด๋Š” ํ•œ ์žฅ์„ ์ง์ ‘ ์จ ๋ด…๋‹ˆ๋‹ค. ์‚ฌ์ง„์„ ๊ณ ๋ฅด๊ณ  ํ•œ ๋งˆ๋””๋ฅผ ์ ์œผ๋ฉด ๊ทธ ์ž๋ฆฌ์—์„œ ์—ฝ์„œ๊ฐ€ ๋˜๊ณ , ๊ทธ๋Œ€๋กœ ๊ณต์œ ํ•˜๊ฑฐ๋‚˜ ์ €์žฅํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.`,children:n.jsxs("div",{className:"mx-auto grid max-w-3xl gap-5 sm:grid-cols-[minmax(0,360px)_minmax(0,1fr)] sm:items-start",children:[n.jsx("canvas",{ref:o,width:cu,height:cu,"aria-label":"๋‚ด๊ฐ€ ๋งŒ๋“  ์—ฝ์„œ ๋ฏธ๋ฆฌ๋ณด๊ธฐ",className:"border-line mx-auto block aspect-square h-auto w-full max-w-[360px] border"}),n.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[n.jsx("div",{className:"min-w-0",role:"radiogroup","aria-label":`์—ฝ์„œ ์‚ฌ์ง„ ๊ณ ๋ฅด๊ธฐ(${r.length}์žฅ)`,children:n.jsx(La,{label:"์—ฝ์„œ ์‚ฌ์ง„",gap:.5,dots:!1,autoplay:!1,children:r.map((R,Z)=>n.jsx("button",{type:"button",onClick:()=>f(Z),role:"radio","aria-checked":Z===u,"aria-label":`์‚ฌ์ง„ ${Z+1}`,className:"border-line size-10 shrink-0 overflow-hidden rounded border transition-opacity",style:{opacity:Z===u?1:.5},children:n.jsx("img",{src:R.url,alt:"",loading:"lazy",className:"size-full object-cover"})},R.url))})}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsx("label",{htmlFor:"postcard-text",className:"text-[length:var(--fs-sm)] font-bold",children:"์—ฝ์„œ์— ์ ์„ ๋ง"}),n.jsx("textarea",{id:"postcard-text",rows:3,maxLength:60,value:d,placeholder:"์—ฌ๊ธฐ์— ์ ์œผ๋ฉด ์—ฝ์„œ์— ๋ฐ”๋กœ ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค",onChange:R=>{k(R.target.value)&&m(R.target.value)},className:"border-line w-full rounded border-2 p-3 text-[length:var(--fs-body)]",style:{backgroundColor:"var(--color-surface)"}}),n.jsxs("p",{className:"text-muted text-[length:var(--fs-xs)]",children:["๋„ค ์ค„๊นŒ์ง€ ยท ",d.length,"/60"]})]}),v?n.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.jsx("button",{type:"button",onClick:()=>void G(),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)] font-bold",children:p?"์นด์นด์˜คํ†ก ๋“ฑ์œผ๋กœ ๊ณต์œ ":"๊ณต์œ ํ•˜๊ธฐ"}),n.jsx("button",{type:"button",onClick:()=>void L().then(R=>R&&H(R)),className:"tap border-line rounded-full border px-3.5 py-1.5 text-[length:var(--fs-sm)]",children:"์ด๋ฏธ์ง€๋กœ ์ €์žฅ"})]}):n.jsx("p",{className:"text-muted text-[length:var(--fs-sm)]",children:"์ด ์‚ฌ์ง„์€ ๋‹ค๋ฅธ ์‚ฌ์ดํŠธ์— ์˜ฌ๋ผ์™€ ์žˆ์–ด ์ €์žฅยท๊ณต์œ ๊ฐ€ ๋ง‰ํ˜€ ์žˆ์Šต๋‹ˆ๋‹ค. ํ™”๋ฉด์œผ๋กœ๋งŒ ๋ณด์—ฌ ๋“œ๋ฆฝ๋‹ˆ๋‹ค."}),g&&n.jsx("p",{className:"text-muted text-[length:var(--fs-xs)]",children:g})]})]})})}function rj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(uj,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(fj,{}),n.jsx(Rn,{})]})}function ux(){const s=P(),r=ht(s);return[{id:"intro",href:"#about",fallback:"์†Œ๊ฐœ"},{id:r.path,href:"#units",fallback:r.label},{id:"info",href:"#info",fallback:"์ด์šฉ ์ •๋ณด"},{id:"booking",href:"#booking",fallback:"์˜ˆ์•ฝ ์•ˆ๋‚ด"},{id:"photos",href:"#gallery",fallback:"์‚ฌ์ง„"},{id:"map",href:"#location",fallback:"์˜ค์‹œ๋Š” ๊ธธ"},{id:"local",href:"#guide",fallback:"์ฃผ๋ณ€ ์ •๋ณด"},{id:"faq",href:"#faq",fallback:"์ž์ฃผ ๋ฌป๋Š” ์งˆ๋ฌธ"}].filter(o=>Lt(s,o.id)).map(o=>({label:$e(s,o.id,o.fallback),href:o.href}))}const cj=24,oj="0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)";function uj(){const s=P(),r=ux(),[o,u]=M.useState(!1);M.useEffect(()=>{const d=()=>u(window.scrollY>cj);return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]);const f=o?"opacity-100 transition-opacity hover:opacity-100":"underline-offset-4 hover:underline";return n.jsx("header",{className:`fixed inset-x-0 top-0 z-40 w-full transition-colors duration-300 ${o?"border-line border-b backdrop-blur-md":""}`,style:o?{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"}:{color:"var(--tpl-bg, #ffffff)",textShadow:oj},children:n.jsxs("div",{className:"shell grid h-20 grid-cols-[1fr_auto] items-center gap-4 lg:grid-cols-[1fr_auto_1fr]",children:[n.jsx("a",{href:"#top",className:"min-w-0",children:n.jsx("span",{className:"serif block truncate",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.12em"},children:s.place.name})}),n.jsx("nav",{"aria-label":"์ฃผ์š” ๋ฉ”๋‰ด",className:"hidden items-center justify-center gap-10 lg:flex",children:r.map(d=>n.jsx("a",{href:d.href,className:`py-1 text-[length:var(--fs-sm)] font-light ${f}`,children:d.label},d.href))}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.place.phone&&n.jsx("a",{href:`tel:${s.place.phone}`,className:`tap hidden items-center text-[length:var(--fs-sm)] font-light tabular-nums sm:inline-flex ${f}`,children:s.place.phone}),r.length>0&&n.jsxs("details",{className:"lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer list-none items-center justify-center px-2 text-[length:var(--fs-sm)] font-light marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"๋ฉ”๋‰ด ์—ด๊ธฐ",children:"๋ฉ”๋‰ด"}),n.jsx("nav",{"aria-label":"์ „์ฒด ๋ฉ”๋‰ด",className:"border-line absolute inset-x-0 top-full border-b border-t",style:{backgroundColor:"var(--tpl-surface, #fff)",color:"var(--tpl-text)",textShadow:"none"},children:n.jsx("ul",{className:"divide-line shell divide-y",children:r.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center text-[length:var(--fs-sm)] font-light",children:d.label})},d.href))})})]})]})]})})}function fj(){var p,y,v,j;const s=P(),{place:r,site:o,narrative:u}=s,f=ux(),d=r.roadAddress??r.address,m=Fe(s)[0],g=On(s),x=u.about[0]??u.summary;return n.jsx("footer",{className:"border-line paper w-full border-t pb-28 md:pb-16",style:{backgroundColor:"var(--tpl-surface-alt, #f5f5f4)",paddingTop:"var(--section-space)"},children:n.jsxs("div",{className:"shell",children:[n.jsxs("div",{className:"grid gap-10 md:grid-cols-3 md:gap-12",children:[n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"serif",style:{fontSize:"var(--fs-lead)",fontWeight:300,letterSpacing:"0.1em"},children:r.name}),x&&n.jsx("p",{className:"text-muted measure mt-4 text-[length:var(--fs-sm)] leading-loose",children:x})]}),n.jsxs("dl",{className:"min-w-0 space-y-5",children:[d&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"์ฃผ์†Œ"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:d})]}),r.phone&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"์ „ํ™”"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light tabular-nums",children:n.jsx("a",{href:`tel:${r.phone}`,className:"underline-offset-4 hover:underline",children:r.phone})})]}),r.email&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"์ด๋ฉ”์ผ"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:`mailto:${r.email}`,className:"underline-offset-4 hover:underline",children:r.email})})]}),m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"์˜ˆ์•ฝ"}),n.jsx("dd",{className:"mt-1 text-[length:var(--fs-sm)] font-light",children:n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-4 hover:underline",children:kn(m)})})]})]}),f.length>0&&n.jsx("nav",{"aria-label":"์‚ฌ์ดํŠธ ๋ฉ”๋‰ด",className:"min-w-0",children:n.jsx("ul",{className:"space-y-3",children:f.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.href,className:"text-muted text-[length:var(--fs-sm)] font-light underline-offset-4 hover:underline",children:w.label})},w.href))})})]}),n.jsx("hr",{className:"border-line mt-12 border-t"}),g.length>0&&n.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:g.map(w=>n.jsx("li",{children:n.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted text-[length:var(--fs-xs)] font-light underline-offset-4 hover:underline",children:kn(w)})},w.url))}),n.jsxs("div",{className:"text-muted mt-8 flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-center text-[length:var(--fs-xs)] font-light",children:[n.jsxs("span",{children:["์ƒํ˜ธ ",r.name]}),((p=r.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["๋Œ€ํ‘œ ",r.legal.representative]}),((y=r.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["์‚ฌ์—…์ž๋“ฑ๋ก๋ฒˆํ˜ธ ",r.legal.businessRegistrationNumber]}),((v=r.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["ํ†ต์‹ ํŒ๋งค์—…์‹ ๊ณ  ",r.legal.mailOrderNumber]}),((j=r.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[r.legal.licenseLabel??"์ธํ—ˆ๊ฐ€๋ฒˆํ˜ธ"," ",r.legal.licenseNumber]}),n.jsxs("span",{className:"byline",children:[n.jsxs("span",{className:"author",children:["์ž‘์„ฑยท์šด์˜ ",r.name]})," ยท ์ตœ์ข… ์—…๋ฐ์ดํŠธ: ",n.jsx("time",{dateTime:o.updatedAt,children:Dn(o.updatedAt)})]})]})]})})}const dj=` .oasi-page main > section:not([data-oasi]) { background-color: transparent !important; background-image: none !important; border-color: transparent !important; color: var(--tpl-text) !important; padding-block: var(--oasi-gap) 0 !important; } .oasi-page main > section:not([data-oasi]) .shell { max-width: none; padding-inline: 0; } .oasi-page main > section#about > .shell > .grid { display: block; } .oasi-page main > section#about > .shell > .grid > * + * { margin-top: 2.5rem; } .oasi-page main > section#summary dl { grid-template-columns: minmax(0, 1fr); } /* * ๋ถ™์—ฌ๋„ฃ๊ธฐ ์•„์ดํ…œ ์นด๋“œ โ€” ์†Œ์‹ ยท ์˜์ƒ ยท ์ถ”์ฒœ ์ผ์ • (2026-09-04, ์‚ฌ์žฅ๋‹˜: "1,2,3์•ˆ ๋‹ค ๋งž์ถ”์„ธ์š”") * * โ˜… ์ด ์นด๋“œ๋“ค์€ .panel ์ด ์•„๋‹ˆ๋ผ ์ œ ์ธ๋ผ์ธ style ๋กœ ๋ฉด์„ ๊ทธ๋ฆฐ๋‹ค(items/common.tsx ์˜ * ITEM_CARDยทITEM_BORDER). ๊ทธ๋ž˜์„œ ์œ„ .panel ๊ทœ์น™์ด ์•ˆ ๋‹ฟ์•˜๊ณ , ์„น์…˜ ๋ ๋ฅผ ๋‹ค ์ง€์šด 3์•ˆ์—์„œ * **์†Œ์‹ ์นด๋“œ๋งŒ ๊ฐฑ์ง€ ๊ฒฐ์— 2px ํ…Œ๋‘๋ฆฌ๋ฅผ ๋‘๋ฅธ ์ƒ์ž๋กœ ํ˜ผ์ž ์„œ ์žˆ์—ˆ๋‹ค.** * โ˜… w4-paper ์˜ ๊ฒฐ์€ 1์•ˆ(๋ ˆํŠธ๋กœ ๊ฐฑ์ง€)์˜ ๊ฒƒ์ด๋‹ค. ์—ฌ๊ธฐ์„œ๋Š” ๊ฒฐ์„ ์ง€์šฐ๊ณ  ํ…Œ๋‘๋ฆฌ๋ฅผ ์‹ค์„  ํ•œ ๊ฒน์œผ๋กœ * ๋‚ฎ์ถ˜๋‹ค. ์ƒ์ž๋ฅผ ์•„์˜ˆ ์—†์• ์ง€๋Š” ์•Š๋Š”๋‹ค โ€” ์ „๋‹จ ์—ฌ์„ฏ ์žฅ์ด ๊ฒฝ๊ณ„ ์—†์ด ๋ถ™์œผ๋ฉด ์–ด๋””๊นŒ์ง€๊ฐ€ ํ•œ ์žฅ์ธ์ง€ * ์•ˆ ๋ณด์ธ๋‹ค. ๋ฉด์€ ๋นผ๊ณ  ํ…Œ๋‘๋ฆฌ๋งŒ ๋‚จ๊ธฐ๋Š” ๊ฒŒ ์ด ์•ˆ์˜ ํƒ€ํ˜‘์ ์ด๋‹ค. * โ˜… ๋ฐฐ๊ฒฝ์€ transparent ๋กœ ๋‘์ง€ ์•Š๋Š”๋‹ค. ์‚ฌ์ง„ ์—†๋Š” ๊ณต์ง€ ์นด๋“œ๊ฐ€ ์ข…์ด์— ๋ฐ”๋กœ ์–นํžˆ๋ฉด * ๋ณธ๋ฌธ๊ณผ ๊ตฌ๋ถ„์ด ์‚ฌ๋ผ์ง„๋‹ค โ€” ์•„์ฃผ ์˜…์€ ํ‹ดํŠธ ํ•œ ๊ฒน๋งŒ ๋‚จ๊ธด๋‹ค. * โ˜… ์˜์ƒ์€ ๋บ๋‹ค (2026-09-04, ์‚ฌ์žฅ๋‹˜: "์˜์ƒ border ์•ˆ ์˜ˆ์˜๋‹ค") * ์˜์ƒ ์นด๋“œ๋Š” ์ƒ์ž๊ฐ€ ์•„๋‹ˆ๋ผ **ํ‘œ์ง€ ์‚ฌ์ง„ ํ•œ ์žฅ**์ด๊ณ , ์‡ผ์ธ ๋ผ 9:16 ์„ธ๋กœ๋‹ค. li ์— ํ‹ดํŠธ๋ฅผ ๊น”๋ฉด * ์˜์ƒ๋ณด๋‹ค ๋„“์€ ํšŒ์ƒ‰ ํŒ์ด ๋’ค์— ๊น”๋ ค ์•ก์ž์ฒ˜๋Ÿผ ๋ณด์ธ๋‹ค. ์‚ฌ์ง„์€ ์ œ ํ…Œ๋‘๋ฆฌ๊ฐ€ ๊ณง ๊ฒฝ๊ณ„๋‹ค. */ .oasi-page section#event li, .oasi-page section#itinerary article { background-image: none !important; background-color: color-mix(in oklab, currentcolor 3%, transparent) !important; border-width: 1px !important; box-shadow: none !important; } .oasi-page .panel, .oasi-page .panel-sunken { background-color: transparent; border-width: 0; border-radius: 0; box-shadow: none; } .oasi-page main > section#faq > .shell > div:last-of-type { row-gap: 0; column-gap: 2.5rem; } .oasi-page main > section#faq details { margin-block: 0; border-top: 1px solid var(--site-line); } .oasi-page main > section#faq summary { padding-inline: 0; } .oasi-page main > section#faq summary > span:first-child { width: 1.125rem; } .oasi-page main > section#faq summary + div { border-top-width: 0; padding-inline: 1.875rem 0; padding-top: 0.5rem; } .oasi-page main > section#info dl.panel > div { padding-inline: 0; } .oasi-page main > section#info dl > div.panel { border-top: 1px solid var(--site-line); padding-inline: 0; } .oasi-page main > section#location .panel { border-top: 1px solid var(--site-line); padding-inline: 0; } .oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child { padding-left: 0; } .oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child { padding-right: 0; } .oasi-page main > section#weather .panel { padding-inline: 0; } .oasi-page main > section#guide .panel > span:last-child { padding-inline: 0; } @media (min-width: 40rem) { .oasi-page main > section#festival .panel > span:last-child { padding-inline: 0; } } `,mj={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function hj({children:s}){var y,v,j,w;const r=P(),{place:o}=r,u=ht(r),f=Fe(r)[0],d=On(r),m=[{label:"์ฒ˜์Œ",href:"#top",show:!0},{label:"์†Œ๊ฐœ",href:"#about",show:Lt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"์ด์šฉ ์ •๋ณด",href:"#info",show:!0},{label:"์ฃผ๋ณ€",href:"#guide",show:Lt(r,"local")},{label:"์˜ค์‹œ๋Š” ๊ธธ",href:"#location",show:!0},{label:"์ž์ฃผ ๋ฌป๋Š” ์งˆ๋ฌธ",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),g=[...Ha(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var k;return N.enabled&&((k=N.name)==null?void 0:k.trim())}).map(N=>N.name.trim())].slice(0,3),x=r.narrative.tagline??r.narrative.heroSubline,p=o.roadAddress??o.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:mj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:dj}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:o.name}),o.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:o.englishName})]}),n.jsx("nav",{"aria-label":"์ฃผ์š” ๋ฉ”๋‰ด",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:m.map((N,k)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":k===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${k===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsx("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:yt(f)})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(g.length>0||x)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[g.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:g.map((N,k)=>n.jsxs("li",{className:"flex items-center gap-4",children:[k>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),x&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:n.jsx(pa,{children:x})})]}),s]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",o.name,"]"]}),d.length>0?n.jsx("ul",{className:"space-y-1",children:d.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:kn(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-[5px]",children:o.phone})}),o.email&&n.jsx("p",{children:o.email}),((y=o.legal)==null?void 0:y.representative)&&n.jsxs("p",{children:["๋Œ€ํ‘œ ",o.legal.representative]}),((v=o.legal)==null?void 0:v.businessRegistrationNumber)&&n.jsxs("p",{children:["์‚ฌ์—…์ž๋“ฑ๋ก๋ฒˆํ˜ธ ",o.legal.businessRegistrationNumber]}),((j=o.legal)==null?void 0:j.mailOrderNumber)&&n.jsxs("p",{children:["ํ†ต์‹ ํŒ๋งค์—…์‹ ๊ณ  ",o.legal.mailOrderNumber]}),((w=o.legal)==null?void 0:w.licenseNumber)&&n.jsxs("p",{children:[o.legal.licenseLabel??"์ธํ—ˆ๊ฐ€๋ฒˆํ˜ธ"," ",o.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["์ž‘์„ฑยท์šด์˜ ",o.name]})," ยท ์ตœ์ข… ์—…๋ฐ์ดํŠธ: ",n.jsx("time",{dateTime:r.site.updatedAt,children:Dn(r.site.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function pj({children:s}){var j,w,N,k;const r=P(),{place:o,narrative:u,site:f}=r,d=ht(r),m=Mn(r),g=Ha(r),x=Fe(r)[0],p=gu(r),y=o.roadAddress??o.address,v=[{label:"์†Œ๊ฐœ",href:"#about",show:Lt(r,"intro")},{label:d.label,href:"#units",show:r.units.length>0},{label:"์ด์šฉ ์ •๋ณด",href:"#info",show:!0},{label:"์ฃผ๋ณ€ ์ •๋ณด",href:"#guide",show:Lt(r,"local")},{label:"์˜ค์‹œ๋Š” ๊ธธ",href:"#location",show:!0},{label:"์ž์ฃผ ๋ฌป๋Š” ์งˆ๋ฌธ",href:"#faq",show:r.faqs.length>0}].filter(L=>L.show);return n.jsxs("div",{className:"flex min-h-screen w-full flex-col lg:flex-row",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("aside",{className:"w-full shrink-0 px-6 pb-8 pt-8 lg:sticky lg:top-0 lg:h-screen lg:w-[260px] lg:overflow-y-auto lg:px-7 lg:py-10",style:{backgroundColor:"var(--tpl-bg)"},children:n.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[n.jsx("a",{href:"#top",className:"block min-w-0",children:n.jsx("h1",{className:"serif min-w-0 break-keep font-black",style:{fontSize:"var(--fs-h2)",letterSpacing:"0.12em",lineHeight:1.25},children:o.name})}),(u.tagline??u.heroSubline)&&n.jsx("p",{className:"text-muted mt-3 text-[length:var(--fs-sm)]",style:{lineHeight:1.7},children:n.jsx(pa,{children:u.tagline??u.heroSubline})}),(m||g.length>0)&&n.jsxs("dl",{className:"mt-7 space-y-2.5",children:[m&&n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:"์ตœ์ €๊ฐ€"}),n.jsx("dd",{className:"text-[length:var(--fs-lead)] font-bold tabular-nums",children:m})]}),g.map(L=>n.jsxs("div",{children:[n.jsx("dt",{className:"label",children:L.label}),n.jsx("dd",{className:"text-[length:var(--fs-sm)] font-semibold",children:L.value})]},L.label))]}),x&&n.jsx("a",{href:x.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-5 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold transition-opacity hover:opacity-100",style:{backgroundColor:"var(--color-brand)",color:"var(--tpl-bg)"},children:yt(x)}),o.phone&&n.jsxs("a",{href:`tel:${o.phone}`,className:"tap mt-2 inline-flex w-full items-center justify-center px-4 text-[length:var(--fs-sm)] font-bold",style:{backgroundColor:"var(--tpl-surface-alt)",color:"var(--tpl-text)"},children:["์ „ํ™” ",o.phone]}),n.jsx("nav",{"aria-label":"์ฃผ์š” ๋ฉ”๋‰ด",className:"mt-10",children:n.jsx("ul",{className:"space-y-0.5",children:v.map(L=>n.jsx("li",{children:n.jsx("a",{href:L.href,className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-sm)] transition-colors hover:text-current",children:L.label})},L.label))})}),p&&n.jsx("nav",{"aria-label":"๊ณต์‹ ์ฑ„๋„",className:"mt-12",children:n.jsx("ul",{className:"space-y-0.5",children:n.jsx("li",{children:n.jsx("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted flex min-h-[2rem] items-center text-[length:var(--fs-xs)] underline-offset-4 transition-colors hover:text-current hover:underline",children:Bl(p)})})})}),n.jsxs("div",{className:"text-muted mt-14 space-y-1 pb-2 text-[length:var(--fs-xs)] lg:mt-auto lg:pt-14",children:[y&&n.jsx("p",{className:"break-keep",children:y}),o.phone&&n.jsx("p",{children:o.phone}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline-offset-2 hover:underline",children:o.email})}),n.jsxs("div",{className:"flex flex-wrap gap-x-2 gap-y-0.5 pt-3",children:[n.jsxs("span",{children:["์ƒํ˜ธ: ",o.name]}),((j=o.legal)==null?void 0:j.representative)&&n.jsxs("span",{children:["๋Œ€ํ‘œ: ",o.legal.representative]}),((w=o.legal)==null?void 0:w.businessRegistrationNumber)&&n.jsxs("span",{children:["์‚ฌ์—…์ž๋“ฑ๋ก๋ฒˆํ˜ธ: ",o.legal.businessRegistrationNumber]}),((N=o.legal)==null?void 0:N.mailOrderNumber)&&n.jsxs("span",{children:["ํ†ต์‹ ํŒ๋งค์—…์‹ ๊ณ : ",o.legal.mailOrderNumber]}),((k=o.legal)==null?void 0:k.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"์ธํ—ˆ๊ฐ€๋ฒˆํ˜ธ",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline pt-1",children:[n.jsxs("span",{className:"author",children:["์ž‘์„ฑยท์šด์˜ ",o.name]})," ยท ์ตœ์ข… ์—…๋ฐ์ดํŠธ: ",n.jsx("time",{dateTime:f.updatedAt,children:Dn(f.updatedAt)})]})]})]})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col pb-24 lg:pb-0",children:s}),n.jsx(Rn,{})]})}const xj=` .pastel-page > main > section:not([data-pastel]) { border-color: transparent; background-image: none; color: var(--pastel-ink) !important; } .pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; } .pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; } .pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; } .pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; } `,gj={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function bj({children:s}){const r=P(),o=ht(r),u=On(r),f=[{label:"์†Œ๊ฐœ",href:"#about",show:Lt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"์ด์šฉ ์ •๋ณด",href:"#info",show:!0},{label:"์ฃผ๋ณ€",href:"#guide",show:Lt(r,"local")},{label:"์˜ค์‹œ๋Š” ๊ธธ",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(d=>d.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:gj,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:xj}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"์ฃผ์š” ๋ฉ”๋‰ด",className:"hidden items-center gap-8 lg:flex",children:f.map(d=>n.jsx("a",{href:d.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-100 transition-opacity hover:opacity-100",children:d.label},d.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"์ „ํ™”",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(At,{className:"size-4"})}),u.map(d=>n.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":Bl(d),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(d.url)?n.jsx(d0,{className:"size-4"}):n.jsx(hu,{className:"size-4"})},d.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"๋ฉ”๋‰ด ์—ด๊ธฐ",children:n.jsx(Op,{className:"size-5"})}),n.jsx("nav",{"aria-label":"์ „์ฒด ๋ฉ”๋‰ด",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(d=>n.jsx("li",{children:n.jsx("a",{href:d.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:d.label})},d.label))})})]})]})]})}),s,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(ex,{})}),n.jsx(Rn,{})]})}function vj({children:s}){var p,y,v,j;const r=P(),{place:o,site:u}=r,f=Yp(),d=yj(f),m=Fe(r)[0],g=gu(r),x=o.roadAddress??o.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:o.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[o.phone&&n.jsx("a",{href:`tel:${o.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:o.phone}),m&&n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:yt(m)})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ys},children:n.jsx("nav",{"aria-label":"์ฐจ๋ก€",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(w=>{const N=w.anchor===d;return n.jsxs("a",{href:`#${w.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:w.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:w.label})]},w.anchor)})})}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:s})]}),n.jsx("footer",{className:"w-full pb-28 pt-12 md:pb-16",style:{backgroundColor:"var(--tpl-inverse)",color:"var(--tpl-bg)",backgroundImage:Ys},children:n.jsxs("div",{className:"shell",children:[n.jsx("div",{"aria-hidden":!0,className:"h-0.5 w-full bg-current opacity-100"}),n.jsxs("div",{className:"grid grid-cols-1 gap-8 pt-8 md:grid-cols-12",children:[n.jsxs("div",{className:"md:col-span-5",children:[n.jsx("p",{className:"serif",style:{fontSize:"clamp(1.5rem, 4vw, 2.5rem)",fontWeight:800,lineHeight:1.05},children:o.name}),o.englishName&&n.jsx("p",{className:"mt-2 text-[length:var(--fs-xs)] uppercase tracking-[0.18em] opacity-100",children:o.englishName})]}),n.jsxs("address",{className:"space-y-2 font-serif text-[length:var(--fs-sm)] not-italic opacity-100 md:col-span-4",children:[x&&n.jsx("p",{children:x}),o.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${o.phone}`,className:"underline underline-offset-4",children:o.phone})}),o.email&&n.jsx("p",{children:n.jsx("a",{href:`mailto:${o.email}`,className:"underline underline-offset-4",children:o.email})})]}),g&&n.jsx("nav",{"aria-label":"๊ณต์‹ ์ฑ„๋„",className:"md:col-span-3",children:n.jsx("ul",{className:"space-y-1.5 text-[length:var(--fs-sm)]",children:n.jsx("li",{children:n.jsx("a",{href:g.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 opacity-80 transition-opacity hover:opacity-100",children:Bl(g)})})})})]}),n.jsxs("div",{className:"mt-10 flex flex-col gap-2 border-t border-current/20 pt-5 text-[length:var(--fs-xs)] opacity-100 sm:flex-row sm:items-center sm:justify-between",children:[n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[n.jsxs("span",{children:["์ƒํ˜ธ: ",o.name]}),((p=o.legal)==null?void 0:p.representative)&&n.jsxs("span",{children:["๋Œ€ํ‘œ: ",o.legal.representative]}),((y=o.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("span",{children:["์‚ฌ์—…์ž๋“ฑ๋ก๋ฒˆํ˜ธ: ",o.legal.businessRegistrationNumber]}),((v=o.legal)==null?void 0:v.mailOrderNumber)&&n.jsxs("span",{children:["ํ†ต์‹ ํŒ๋งค์—…์‹ ๊ณ : ",o.legal.mailOrderNumber]}),((j=o.legal)==null?void 0:j.licenseNumber)&&n.jsxs("span",{children:[o.legal.licenseLabel??"์ธํ—ˆ๊ฐ€๋ฒˆํ˜ธ",": ",o.legal.licenseNumber]})]}),n.jsxs("p",{className:"byline shrink-0",children:[n.jsxs("span",{className:"author",children:["์ž‘์„ฑยท์šด์˜ ",o.name]})," ยท ์ตœ์ข… ์—…๋ฐ์ดํŠธ: ",n.jsx("time",{dateTime:u.updatedAt,children:Dn(u.updatedAt)})]})]})]})}),n.jsx(Rn,{})]})}function yj(s){const r=s.map(f=>f.anchor).join(","),[o,u]=M.useState("");return M.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const f=r.split(",").map(m=>document.getElementById(m)).filter(m=>m!==null);if(f.length===0)return;const d=new IntersectionObserver(m=>{const g=m.find(x=>x.isIntersecting);g&&u(g.target.id)},{rootMargin:"-45% 0px -50% 0px"});return f.forEach(m=>d.observe(m)),()=>d.disconnect()},[r]),o}function jj(){const s=P(),r=s.place.category===dl.LODGING,o={intro:Ly,info:Qy,rooms:Io,menu:Io,programs:Io,booking:r?fp:f1,space:d1,inquiry:m1,exhibition:h1,photos:T1,festival:g1,local:v1,weather:z1,map:gp,faq:k1,...F1},u=new Set;return n.jsxs("main",{className:"w-full flex-1",children:[n.jsx(Kv,{}),s.theme.sections.filter(f=>f.enabled&&f.id!=="hero"&&f.id!=="social").map(f=>{const d=o[f.id];if(!d)return null;const m=d.name;return u.has(m)?null:(u.add(m),n.jsxs("div",{"data-editor-id":f.id,style:{display:"contents"},children:[n.jsx(d,{}),f.id==="intro"&&n.jsx(rp,{})]},f.id))}),!Lt(s,"map")&&n.jsx(gp,{}),r&&!kv(s,"booking")&&n.jsx(fp,{}),!Lt(s,"intro")&&n.jsx(rp,{}),n.jsx(P1,{}),n.jsx(ij,{}),Lt(s,"social")&&n.jsx("div",{"data-editor-id":"social",children:n.jsx(ej,{})})]})}function uu({payload:s}){const r=$p(s.theme.templateId),o=r==="reservation"?rj:r==="oasi"?hj:r==="studio"?pj:r==="pastel"?bj:r==="editorial"?vj:Nj;return n.jsx(D0,{payload:s,children:n.jsx(o,{children:n.jsx(jj,{})})})}function Nj({children:s}){return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",children:[n.jsx(_v,{}),n.jsx("div",{className:"flex w-full flex-1 flex-col",children:s}),n.jsx(ex,{}),n.jsx(Rn,{})]})}function Sj(s){const{colors:r,look:o}=s.theme,u=av(r),f={"--tpl-primary":r.primary,"--tpl-secondary":r.secondary,"--tpl-bg":r.bg,"--tpl-card":r.card,"--tpl-text":r.text,"--tpl-accent":r.accent,"--tpl-surface":u.surface,"--tpl-surface-alt":u.surfaceAlt,"--tpl-inverse":u.inverse,"--tpl-border":u.border};if(o){const d=g=>g&&!/[<>{};]/.test(g)?g:void 0,m=[["--tpl-font-heading",d(o.fontHeading)],["--tpl-font-body",d(o.fontBody)],["--tpl-heading-tracking",d(o.headingTracking)],["--tpl-heading-weight",d(o.headingWeight)],["--tpl-section-space",d(o.sectionSpace)],["--tpl-border-width",d(o.borderWidth)],["--tpl-radius",d(o.radius)],["--tpl-shadow",d(o.shadow)],["--tpl-texture",d(o.texture)]];for(const[g,x]of m)x&&(f[g]=x)}return f}const wj=[[/Noto Sans KR/i,"family=Noto+Sans+KR:wght@300..900"],[/Noto Serif KR/i,"family=Noto+Serif+KR:wght@300..700"],[/Gugi/i,"family=Gugi"],[/Gowun Batang/i,"family=Gowun+Batang:wght@400;700"],[/Nanum Pen Script/i,"family=Nanum+Pen+Script"]];function Ej(s){var u,f;const r=["Noto Sans KR","Noto Serif KR",((u=s.theme.look)==null?void 0:u.fontHeading)??"",((f=s.theme.look)==null?void 0:f.fontBody)??""].join(" ");return`https://fonts.googleapis.com/css2?${wj.filter(([d])=>d.test(r)).map(([,d])=>d).join("&")}&display=swap`}const gr=document.getElementById("root"),_p=window.__SITE_PAYLOAD__;function Ru(s){if(window.parent===window)return;const r=()=>window.parent.postMessage({type:"o2o:preview-painted",ok:s},window.location.origin);requestAnimationFrame(()=>requestAnimationFrame(r))}function zj(){return M.useEffect(()=>Ru(!0),[]),null}async function Tj(s){const r=(()=>{try{return localStorage.getItem("o2o-web4ai.accessToken")}catch{return null}})(),o=await fetch(`/v1/place/${s}/site/preview`,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw new Error(`HTTP ${o.status}`);const u=await o.json();for(const[d,m]of Object.entries(Sj(u)))document.documentElement.style.setProperty(d,m);const f=document.createElement("link");f.rel="stylesheet",f.href=Ej(u),document.head.appendChild(f),await new Promise(d=>{f.addEventListener("load",()=>d(),{once:!0}),f.addEventListener("error",()=>d(),{once:!0}),setTimeout(d,2500)});try{await document.fonts.ready}catch{}au.createRoot(gr).render(n.jsxs(M.StrictMode,{children:[n.jsx(uu,{payload:u}),n.jsx(zj,{})]})),Ru(!0)}const Ap=new URLSearchParams(window.location.search).get("placeId");_p?au.hydrateRoot(gr,n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:_p})})):Ap?Tj(Ap).catch(s=>{gr.textContent=`๋ฏธ๋ฆฌ๋ณด๊ธฐ๋ฅผ ๋ถˆ๋Ÿฌ์˜ค์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค โ€” ${s instanceof Error?s.message:String(s)}`,Ru(!1)}):Eb(async()=>{const{MOONLIGHT_STAY_PAYLOAD:s}=await import("./moonlight-stay-CxhTmtlu.js");return{MOONLIGHT_STAY_PAYLOAD:s}},[]).then(({MOONLIGHT_STAY_PAYLOAD:s})=>{au.createRoot(gr).render(n.jsx(M.StrictMode,{children:n.jsx(uu,{payload:s})}))});export{Qh as F,it as L,dl as P,$0 as S,kj as a};