@hua-labs/ui 2.0.2 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/README.md +34 -161
  2. package/dist/{ComponentLayout-btJq4TjA.d.mts → ComponentLayout-DrZpz0yv.d.mts} +1 -1
  3. package/dist/Section-BWzyshgX.d.mts +67 -0
  4. package/dist/advanced/dashboard.d.ts.map +1 -1
  5. package/dist/advanced-dashboard.d.mts +1 -1
  6. package/dist/advanced-dashboard.js +4 -4
  7. package/dist/advanced-dashboard.js.map +1 -1
  8. package/dist/advanced-dashboard.mjs +3 -3
  9. package/dist/advanced-dashboard.mjs.map +1 -1
  10. package/dist/advanced-emotion.mjs +1 -1
  11. package/dist/advanced-motion.d.mts +65 -1
  12. package/dist/advanced-motion.js +14 -14
  13. package/dist/advanced-motion.js.map +1 -1
  14. package/dist/advanced-motion.mjs +1 -1
  15. package/dist/advanced.d.mts +4 -4
  16. package/dist/advanced.js +16 -16
  17. package/dist/advanced.js.map +1 -1
  18. package/dist/advanced.mjs +3 -3
  19. package/dist/advanced.mjs.map +1 -1
  20. package/dist/chunk-3CCF7U3P.mjs +3 -0
  21. package/dist/{chunk-IFSEJVOR.mjs.map → chunk-3CCF7U3P.mjs.map} +1 -1
  22. package/dist/chunk-3GAUTZXQ.mjs +3 -0
  23. package/dist/{chunk-X7ZIWYRC.mjs.map → chunk-3GAUTZXQ.mjs.map} +1 -1
  24. package/dist/chunk-42RGFEL2.mjs +3 -0
  25. package/dist/chunk-42RGFEL2.mjs.map +1 -0
  26. package/dist/chunk-4NJE7D6X.mjs +3 -0
  27. package/dist/chunk-4NJE7D6X.mjs.map +1 -0
  28. package/dist/chunk-6HVJFEDA.mjs +3 -0
  29. package/dist/{chunk-FSL373O6.mjs.map → chunk-6HVJFEDA.mjs.map} +1 -1
  30. package/dist/chunk-7OYT3QSY.mjs +3 -0
  31. package/dist/chunk-7OYT3QSY.mjs.map +1 -0
  32. package/dist/chunk-ANYZ56VB.mjs +3 -0
  33. package/dist/{chunk-QQCELXFD.mjs.map → chunk-ANYZ56VB.mjs.map} +1 -1
  34. package/dist/chunk-AOSXB5JJ.mjs +4 -0
  35. package/dist/{chunk-GLZKT7JN.mjs.map → chunk-AOSXB5JJ.mjs.map} +1 -1
  36. package/dist/chunk-B544MRF7.mjs +3 -0
  37. package/dist/{chunk-SDFHJ4GB.mjs.map → chunk-B544MRF7.mjs.map} +1 -1
  38. package/dist/chunk-CVWWS25A.mjs +3 -0
  39. package/dist/chunk-CVWWS25A.mjs.map +1 -0
  40. package/dist/chunk-DYNBM24D.mjs +3 -0
  41. package/dist/{chunk-OSCMSA2Q.mjs.map → chunk-DYNBM24D.mjs.map} +1 -1
  42. package/dist/{chunk-NBJUE7NR.mjs → chunk-FX57OSYG.mjs} +2 -2
  43. package/dist/{chunk-NBJUE7NR.mjs.map → chunk-FX57OSYG.mjs.map} +1 -1
  44. package/dist/chunk-IJSYSNM5.mjs +3 -0
  45. package/dist/{chunk-IN7RWQCJ.mjs.map → chunk-IJSYSNM5.mjs.map} +1 -1
  46. package/dist/chunk-KJZGOL2Z.mjs +3 -0
  47. package/dist/{chunk-LOYAJIWO.mjs.map → chunk-KJZGOL2Z.mjs.map} +1 -1
  48. package/dist/chunk-KYRIUUQP.mjs +3 -0
  49. package/dist/{chunk-PAEKNQWW.mjs.map → chunk-KYRIUUQP.mjs.map} +1 -1
  50. package/dist/chunk-LSA7DU3N.mjs +73 -0
  51. package/dist/chunk-LSA7DU3N.mjs.map +1 -0
  52. package/dist/chunk-MDLCJASB.mjs +3 -0
  53. package/dist/{chunk-LH77I6HO.mjs.map → chunk-MDLCJASB.mjs.map} +1 -1
  54. package/dist/chunk-N56BUOCD.mjs +3 -0
  55. package/dist/{chunk-XV3Y7QVU.mjs.map → chunk-N56BUOCD.mjs.map} +1 -1
  56. package/dist/chunk-OFYITQXI.mjs +13 -0
  57. package/dist/chunk-OFYITQXI.mjs.map +1 -0
  58. package/dist/chunk-OZNST3EZ.mjs +3 -0
  59. package/dist/{chunk-SGEP3CQE.mjs.map → chunk-OZNST3EZ.mjs.map} +1 -1
  60. package/dist/chunk-RS6RKW5U.mjs +13 -0
  61. package/dist/{chunk-6KTHJ3EL.mjs.map → chunk-RS6RKW5U.mjs.map} +1 -1
  62. package/dist/{chunk-C4OACMTB.mjs → chunk-TXBZZJNR.mjs} +2 -2
  63. package/dist/{chunk-C4OACMTB.mjs.map → chunk-TXBZZJNR.mjs.map} +1 -1
  64. package/dist/chunk-TZ4YSHMC.mjs +3 -0
  65. package/dist/{chunk-UWHCM3S6.mjs.map → chunk-TZ4YSHMC.mjs.map} +1 -1
  66. package/dist/chunk-U6CTBZ2U.mjs +3 -0
  67. package/dist/chunk-U6CTBZ2U.mjs.map +1 -0
  68. package/dist/{chunk-5BMH7223.mjs → chunk-WP7VFE77.mjs} +2 -2
  69. package/dist/{chunk-5BMH7223.mjs.map → chunk-WP7VFE77.mjs.map} +1 -1
  70. package/dist/{chunk-FFH4ZFKS.mjs → chunk-XCZMLKPK.mjs} +2 -2
  71. package/dist/{chunk-FFH4ZFKS.mjs.map → chunk-XCZMLKPK.mjs.map} +1 -1
  72. package/dist/chunk-XGHT7WMO.mjs +3 -0
  73. package/dist/chunk-XGHT7WMO.mjs.map +1 -0
  74. package/dist/chunk-XL4KTJ4L.mjs +3 -0
  75. package/dist/{chunk-VWSBJUNI.mjs.map → chunk-XL4KTJ4L.mjs.map} +1 -1
  76. package/dist/chunk-Z74YUUVT.mjs +3 -0
  77. package/dist/chunk-Z74YUUVT.mjs.map +1 -0
  78. package/dist/chunk-ZXZIHU7J.mjs +8 -0
  79. package/dist/{chunk-N7M6RIN4.mjs.map → chunk-ZXZIHU7J.mjs.map} +1 -1
  80. package/dist/components/DatePicker.d.ts.map +1 -1
  81. package/dist/components/Modal.d.ts.map +1 -1
  82. package/dist/components/Popover.d.ts +2 -0
  83. package/dist/components/Popover.d.ts.map +1 -1
  84. package/dist/components/Progress.d.ts +1 -0
  85. package/dist/components/Progress.d.ts.map +1 -1
  86. package/dist/components/Section.d.ts +44 -0
  87. package/dist/components/Section.d.ts.map +1 -0
  88. package/dist/components/advanced/AnimatedGradient.d.ts.map +1 -1
  89. package/dist/components/advanced/DotNav.d.ts +26 -0
  90. package/dist/components/advanced/DotNav.d.ts.map +1 -0
  91. package/dist/components/advanced/HorizontalScroll.d.ts +20 -0
  92. package/dist/components/advanced/HorizontalScroll.d.ts.map +1 -0
  93. package/dist/components/advanced/ImageReveal.d.ts +24 -0
  94. package/dist/components/advanced/ImageReveal.d.ts.map +1 -0
  95. package/dist/components/advanced/index.d.ts +6 -0
  96. package/dist/components/advanced/index.d.ts.map +1 -1
  97. package/dist/data.mjs +2 -2
  98. package/dist/data.mjs.map +1 -1
  99. package/dist/feedback.mjs +1 -1
  100. package/dist/form.js +3 -3
  101. package/dist/form.js.map +1 -1
  102. package/dist/form.mjs +4 -4
  103. package/dist/form.mjs.map +1 -1
  104. package/dist/{icons-Bj_nr8Ba.d.mts → icons-DmhQEH_E.d.mts} +6 -1
  105. package/dist/index.d.mts +9 -27
  106. package/dist/index.d.ts +4 -0
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +6 -6
  109. package/dist/index.js.map +1 -1
  110. package/dist/index.mjs +2 -2
  111. package/dist/index.mjs.map +1 -1
  112. package/dist/interactive.js +1 -1
  113. package/dist/interactive.js.map +1 -1
  114. package/dist/interactive.mjs +1 -1
  115. package/dist/interactive.mjs.map +1 -1
  116. package/dist/landing/LandingAbout.d.ts +3 -0
  117. package/dist/landing/LandingAbout.d.ts.map +1 -0
  118. package/dist/landing/LandingCTA.d.ts +3 -0
  119. package/dist/landing/LandingCTA.d.ts.map +1 -0
  120. package/dist/landing/LandingContact.d.ts +3 -0
  121. package/dist/landing/LandingContact.d.ts.map +1 -0
  122. package/dist/landing/LandingExperience.d.ts +3 -0
  123. package/dist/landing/LandingExperience.d.ts.map +1 -0
  124. package/dist/landing/LandingFeatures.d.ts +3 -0
  125. package/dist/landing/LandingFeatures.d.ts.map +1 -0
  126. package/dist/landing/LandingHero.d.ts +3 -0
  127. package/dist/landing/LandingHero.d.ts.map +1 -0
  128. package/dist/landing/LandingLogoCloud.d.ts +3 -0
  129. package/dist/landing/LandingLogoCloud.d.ts.map +1 -0
  130. package/dist/landing/LandingMetrics.d.ts +3 -0
  131. package/dist/landing/LandingMetrics.d.ts.map +1 -0
  132. package/dist/landing/LandingProjects.d.ts +3 -0
  133. package/dist/landing/LandingProjects.d.ts.map +1 -0
  134. package/dist/landing/LandingProvider.d.ts +4 -0
  135. package/dist/landing/LandingProvider.d.ts.map +1 -0
  136. package/dist/landing/LandingShowcase.d.ts +3 -0
  137. package/dist/landing/LandingShowcase.d.ts.map +1 -0
  138. package/dist/landing/LandingSkills.d.ts +3 -0
  139. package/dist/landing/LandingSkills.d.ts.map +1 -0
  140. package/dist/landing/LandingStats.d.ts +3 -0
  141. package/dist/landing/LandingStats.d.ts.map +1 -0
  142. package/dist/landing/LandingTestimonials.d.ts +3 -0
  143. package/dist/landing/LandingTestimonials.d.ts.map +1 -0
  144. package/dist/landing/index.d.ts +47 -0
  145. package/dist/landing/index.d.ts.map +1 -0
  146. package/dist/landing/themes/app.d.ts +3 -0
  147. package/dist/landing/themes/app.d.ts.map +1 -0
  148. package/dist/landing/themes/corporate.d.ts +3 -0
  149. package/dist/landing/themes/corporate.d.ts.map +1 -0
  150. package/dist/landing/themes/dashboard.d.ts +3 -0
  151. package/dist/landing/themes/dashboard.d.ts.map +1 -0
  152. package/dist/landing/themes/immersive.d.ts +3 -0
  153. package/dist/landing/themes/immersive.d.ts.map +1 -0
  154. package/dist/landing/themes/index.d.ts +15 -0
  155. package/dist/landing/themes/index.d.ts.map +1 -0
  156. package/dist/landing/themes/marketing.d.ts +3 -0
  157. package/dist/landing/themes/marketing.d.ts.map +1 -0
  158. package/dist/landing/themes/portfolio.d.ts +3 -0
  159. package/dist/landing/themes/portfolio.d.ts.map +1 -0
  160. package/dist/landing/themes/product.d.ts +3 -0
  161. package/dist/landing/themes/product.d.ts.map +1 -0
  162. package/dist/landing/types.d.ts +346 -0
  163. package/dist/landing/types.d.ts.map +1 -0
  164. package/dist/landing.d.mts +417 -0
  165. package/dist/landing.js +100 -0
  166. package/dist/landing.js.map +1 -0
  167. package/dist/landing.mjs +31 -0
  168. package/dist/landing.mjs.map +1 -0
  169. package/dist/lib/icons.d.ts +6 -1
  170. package/dist/lib/icons.d.ts.map +1 -1
  171. package/dist/navigation.d.mts +1 -1
  172. package/dist/navigation.js +2 -2
  173. package/dist/navigation.js.map +1 -1
  174. package/dist/navigation.mjs +1 -1
  175. package/dist/navigation.mjs.map +1 -1
  176. package/dist/overlay.d.mts +2 -0
  177. package/dist/overlay.js +1 -1
  178. package/dist/overlay.js.map +1 -1
  179. package/dist/overlay.mjs +1 -1
  180. package/dist/overlay.mjs.map +1 -1
  181. package/dist/sdui.js +4 -4
  182. package/dist/sdui.js.map +1 -1
  183. package/dist/sdui.mjs +1 -1
  184. package/dist/sdui.mjs.map +1 -1
  185. package/package.json +18 -7
  186. package/src/styles/landing.css +107 -0
  187. package/src/styles/utilities.css +58 -0
  188. package/dist/chunk-6KTHJ3EL.mjs +0 -13
  189. package/dist/chunk-COR6CDMA.mjs +0 -83
  190. package/dist/chunk-COR6CDMA.mjs.map +0 -1
  191. package/dist/chunk-FSL373O6.mjs +0 -3
  192. package/dist/chunk-GLZKT7JN.mjs +0 -4
  193. package/dist/chunk-HN5LSP6L.mjs +0 -3
  194. package/dist/chunk-HN5LSP6L.mjs.map +0 -1
  195. package/dist/chunk-IFSEJVOR.mjs +0 -3
  196. package/dist/chunk-IN7RWQCJ.mjs +0 -3
  197. package/dist/chunk-LH77I6HO.mjs +0 -3
  198. package/dist/chunk-LOYAJIWO.mjs +0 -3
  199. package/dist/chunk-LPAG7DCA.mjs +0 -3
  200. package/dist/chunk-LPAG7DCA.mjs.map +0 -1
  201. package/dist/chunk-N7M6RIN4.mjs +0 -8
  202. package/dist/chunk-OSCMSA2Q.mjs +0 -3
  203. package/dist/chunk-PAEKNQWW.mjs +0 -3
  204. package/dist/chunk-QQCELXFD.mjs +0 -3
  205. package/dist/chunk-RPUS7G7Q.mjs +0 -3
  206. package/dist/chunk-RPUS7G7Q.mjs.map +0 -1
  207. package/dist/chunk-SDFHJ4GB.mjs +0 -3
  208. package/dist/chunk-SGEP3CQE.mjs +0 -3
  209. package/dist/chunk-UUHAXGMO.mjs +0 -3
  210. package/dist/chunk-UUHAXGMO.mjs.map +0 -1
  211. package/dist/chunk-UWHCM3S6.mjs +0 -3
  212. package/dist/chunk-VWSBJUNI.mjs +0 -3
  213. package/dist/chunk-X7ZIWYRC.mjs +0 -3
  214. package/dist/chunk-XV3Y7QVU.mjs +0 -3
package/dist/advanced.js CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var le=require('react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),classVarianceAuthority=require('class-variance-authority'),ssr=require('@phosphor-icons/react/dist/ssr');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var le__default=/*#__PURE__*/_interopDefault(le);function i(...t){return tailwindMerge.twMerge(clsx.clsx(t))}function Vt(t){let e=Object.entries(t).filter(([,r])=>r).map(([r])=>r);return i(...e)}var ke=le__default.default.forwardRef(({children:t,className:e,type:r="fade",duration:o=500,easing:n="smooth",delay:s=0,autoStart:c=true,onStart:b,onComplete:g,showProgress:l=false,progressClassName:x},d)=>{let[m,v]=le.useState(false),[u,a]=le.useState(0),[h,p]=le.useState(false),C=le.useRef(null),f=le.useRef(null),y=R=>({linear:k=>k,"ease-in":k=>k*k,"ease-out":k=>1-Math.pow(1-k,2),"ease-in-out":k=>k<.5?2*k*k:1-Math.pow(-2*k+2,2)/2,bounce:k=>k<.36363636363636365?7.5625*k*k:k<.7272727272727273?7.5625*(k-=.5454545454545454)*k+.75:k<.9090909090909091?7.5625*(k-=.8181818181818182)*k+.9375:7.5625*(k-=.9545454545454546)*k+.984375,elastic:k=>Math.pow(2,-10*k)*Math.sin((k-.075)*(2*Math.PI)/.3)+1,smooth:k=>k*k*(3-2*k)})[R],T=le.useCallback(R=>{f.current||(f.current=R);let L=R-f.current,k=y(n),S=Math.min(L/o,1);S=k(S),a(S),v(S>.1),S<1?C.current=requestAnimationFrame(U=>T(U)):(p(false),a(1),g==null||g());},[o,n,g]),w=le.useCallback(()=>{p(true),a(0),b==null||b(),f.current=null,C.current=requestAnimationFrame(T);},[T,b]);le.useEffect(()=>{if(c){let R=setTimeout(()=>{w();},s);return ()=>clearTimeout(R)}},[c,s,w]),le.useEffect(()=>()=>{C.current&&cancelAnimationFrame(C.current);},[]);let B=(()=>{switch(r){case "fade":return {opacity:m?1:0,transform:"none"};case "slide":return {opacity:m?1:0,transform:`translateX(${(1-u)*100}%)`};case "slide-up":return {opacity:m?1:0,transform:`translateY(${(1-u)*100}%)`};case "slide-down":return {opacity:m?1:0,transform:`translateY(-${(1-u)*100}%)`};case "slide-left":return {opacity:m?1:0,transform:`translateX(-${(1-u)*100}%)`};case "slide-right":return {opacity:m?1:0,transform:`translateX(${(1-u)*100}%)`};case "scale":return {opacity:m?1:0,transform:`scale(${.8+u*.2})`};case "flip":return {opacity:m?1:0,transform:`perspective(1000px) rotateY(${(1-u)*90}deg)`};case "morph":return {opacity:m?1:0,transform:`scale(${.9+u*.1}) rotate(${(1-u)*5}deg)`};case "cube":return {opacity:m?1:0,transform:`perspective(1000px) rotateX(${(1-u)*90}deg) rotateY(${(1-u)*45}deg)`};case "zoom":return {opacity:m?1:0,transform:`scale(${.5+u*.5})`};default:return {opacity:m?1:0,transform:"none"}}})();return jsxRuntime.jsxs("div",{className:"relative",children:[l&&jsxRuntime.jsxs("div",{className:i("fixed top-4 right-4 z-50 bg-background rounded-lg px-3 py-2 shadow-lg border",x),children:[jsxRuntime.jsxs("div",{className:"text-sm font-medium text-foreground",children:["Progress: ",Math.round(u*100),"%"]}),jsxRuntime.jsx("div",{className:"w-24 h-2 bg-muted rounded-full mt-2",children:jsxRuntime.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-100",style:{width:`${u*100}%`}})})]}),jsxRuntime.jsx("div",{ref:d,className:i("transition-all duration-500 ease-out",e),style:{...B,transitionDuration:`${o}ms`,transitionTimingFunction:n==="smooth"?"cubic-bezier(0.4, 0, 0.2, 1)":n==="bounce"?"cubic-bezier(0.68, -0.55, 0.265, 1.55)":n==="elastic"?"cubic-bezier(0.175, 0.885, 0.32, 1.275)":n},children:t})]})});ke.displayName="AdvancedPageTransition";var Qo=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"fade",...t})),Jo=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"slide",...t})),en=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"scale",...t})),tn=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"flip",...t})),rn=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"morph",...t})),on=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"cube",...t})),nn=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"zoom",...t}));Qo.displayName="FadePageTransition";Jo.displayName="SlidePageTransition";en.displayName="ScalePageTransition";tn.displayName="FlipPageTransition";rn.displayName="MorphPageTransition";on.displayName="CubePageTransition";nn.displayName="ZoomPageTransition";var ln=(t={})=>{let[e,r]=le.useState({isTransitioning:false,isVisible:false,currentStep:0,progress:0}),o=le.useRef(null),n=le.useRef(null),s=le.useRef({type:"fade",duration:500,easing:"smooth",delay:0,stagger:0,direction:"forward",...t}),c=le.useCallback(v=>({linear:a=>a,"ease-in":a=>a*a,"ease-out":a=>1-Math.pow(1-a,2),"ease-in-out":a=>a<.5?2*a*a:1-Math.pow(-2*a+2,2)/2,bounce:a=>a<.36363636363636365?7.5625*a*a:a<.7272727272727273?7.5625*(a-=.5454545454545454)*a+.75:a<.9090909090909091?7.5625*(a-=.8181818181818182)*a+.9375:7.5625*(a-=.9545454545454546)*a+.984375,elastic:a=>Math.pow(2,-10*a)*Math.sin((a-.075)*(2*Math.PI)/.3)+1,smooth:a=>a*a*(3-2*a)})[v],[]),b=le.useCallback(v=>{var C;n.current||(n.current=v);let u=v-n.current,a=s.current,h=c(a.easing),p=Math.min(u/a.duration,1);p=h(p),r(f=>({...f,progress:p,isVisible:a.direction==="forward"?p>.1:p<.9,currentStep:Math.floor(p*10)})),p<1?o.current=requestAnimationFrame(b):(r(f=>({...f,isTransitioning:false,progress:a.direction==="forward"?1:0})),(C=a.onComplete)==null||C.call(a));},[c]),g=le.useCallback(async v=>new Promise(u=>{var h;v&&(s.current={...s.current,...v});let a=s.current;a.onComplete=()=>u(),r(p=>({...p,isTransitioning:true,progress:a.direction==="forward"?0:1})),n.current=null,(h=a.onStart)==null||h.call(a),a.delay?setTimeout(()=>{o.current=requestAnimationFrame(b);},a.delay):o.current=requestAnimationFrame(b);}),[b]),l=le.useCallback(async()=>new Promise(v=>{let u=s.current;u.direction="backward",u.onComplete=()=>v(),g();}),[g]),x=le.useCallback(()=>{o.current&&cancelAnimationFrame(o.current);},[]),d=le.useCallback(()=>{e.isTransitioning&&(o.current=requestAnimationFrame(b));},[e.isTransitioning,b]),m=le.useCallback(()=>{o.current&&cancelAnimationFrame(o.current),r({isTransitioning:false,isVisible:false,currentStep:0,progress:0});},[]);return le.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current);},[]),[e,{start:g,reverse:l,pause:x,resume:d,reset:m}]};var un=(t={})=>{let{defaultType:e="fade",defaultDuration:r=500,defaultEasing:o="smooth",enableHistory:n=true,enableProgress:s=true,enableDebug:c=false}=t,[b,g]=le.useState({isTransitioning:false,currentTransition:null,transitionHistory:[],totalTransitions:0,averageDuration:0}),l=le.useRef(new Map),x=le.useRef(0),d=le.useCallback((f,y)=>{c&&console.log(`[PageTransitionManager] ${f}`,y);},[c]),m=le.useCallback(f=>{g(y=>{let T=n?[...y.transitionHistory,f]:y.transitionHistory,w=T.length,N=T.reduce((B,R)=>B+R.duration,0)/w;return {...y,totalTransitions:w,averageDuration:N,transitionHistory:T}});},[n]),v=le.useCallback(async f=>{let y=`transition_${++x.current}`,T={type:e,duration:r,easing:o,...f},w={id:y,type:T.type,duration:T.duration,easing:T.easing,timestamp:Date.now(),status:"pending"};d("Starting transition",{id:y,config:T}),g(B=>({...B,isTransitioning:true,currentTransition:w}));let N=setTimeout(()=>{var R;let B={...w,status:"completed"};g(L=>({...L,isTransitioning:false,currentTransition:null})),m(B),l.current.delete(y),d("Transition completed",{id:y}),(R=T.onComplete)==null||R.call(T);},T.duration);return l.current.set(y,{timer:N,config:T}),setTimeout(()=>{g(B=>({...B,currentTransition:{...B.currentTransition,status:"active"}}));},50),y},[e,r,o,d,m]),u=le.useCallback(f=>{let y=l.current.get(f);y&&(clearTimeout(y.timer),l.current.delete(f),g(T=>{var w;return {...T,isTransitioning:l.current.size>0,currentTransition:((w=T.currentTransition)==null?void 0:w.id)===f?null:T.currentTransition}}),d("Transition cancelled",{id:f}));},[d]),a=le.useCallback(()=>{l.current.forEach(({timer:f},y)=>{clearTimeout(f),d("Transition paused",{id:y});});},[d]),h=le.useCallback(()=>{l.current.forEach(({config:f},y)=>{v(f);});},[v]),p=le.useCallback(()=>{g(f=>({...f,transitionHistory:[],totalTransitions:0,averageDuration:0})),d("History cleared");},[d]),C=le.useCallback(()=>{let{transitionHistory:f}=b,y=f.reduce((w,N)=>(w[N.type]=(w[N.type]||0)+1,w),{}),T=f.reduce((w,N)=>(w[N.status]=(w[N.status]||0)+1,w),{});return {total:f.length,average:b.averageDuration,byType:y,byStatus:T}},[b]);return le.useEffect(()=>{let f=l.current;return ()=>{f.forEach(({timer:y})=>{clearTimeout(y);}),f.clear();}},[]),[b,{startTransition:v,cancelTransition:u,pauseAll:a,resumeAll:h,clearHistory:p,getTransitionStats:C}]};var Pr=le__default.default.forwardRef(({children:t,className:e,speed:r=.5,direction:o="up",offset:n=0,disabled:s=false,scale:c=false,opacity:b=false,rotate:g=false,rotateDirection:l="cw",style:x,...d},m)=>{let v=le.useRef(null),[u,a]=le.useState({x:0,y:0,scale:1,opacity:1,rotate:0}),h=fn(),p=le.useCallback(()=>{if(s||h)return;let f=v.current;if(!f)return;let y=f.getBoundingClientRect(),T=window.innerHeight,N=y.top+y.height/2,R=(T/2-N)/T,L=R*r*100+n,k=0,S=0;switch(o){case "up":S=-L;break;case "down":S=L;break;case "left":k=-L;break;case "right":k=L;break}let U=c?1+Math.abs(R)*.1:1,O=b?Math.max(.3,1-Math.abs(R)*.5):1,F=g?R*10*(l==="cw"?1:-1):0;a({x:k,y:S,scale:U,opacity:O,rotate:F});},[s,h,r,o,n,c,b,g,l]);le.useEffect(()=>{if(s||h)return;p();let f=()=>{requestAnimationFrame(p);};return window.addEventListener("scroll",f,{passive:true}),window.addEventListener("resize",f,{passive:true}),()=>{window.removeEventListener("scroll",f),window.removeEventListener("resize",f);}},[p,s,h]);let C={...x,transform:s||h?void 0:`translate3d(${u.x}px, ${u.y}px, 0) scale(${u.scale}) rotate(${u.rotate}deg)`,opacity:s||h?1:u.opacity,willChange:s||h?void 0:"transform, opacity"};return jsxRuntime.jsx("div",{ref:bn(m,v),className:i("transition-none",e),style:C,...d,children:t})});Pr.displayName="Parallax";function fn(){let[t,e]=le.useState(false);return le.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");e(r.matches);let o=n=>{e(n.matches);};return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),t}function bn(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e);});}}var Lr=le__default.default.forwardRef(({children:t,className:e,direction:r="left",speed:o=50,pauseOnHover:n=true,pauseOnClick:s=false,gap:c=16,gradient:b=true,gradientColor:g="hsl(var(--background))",gradientWidth:l=100,style:x,...d},m)=>{let v=le.useRef(null),[u,a]=le.useState(0),[h,p]=le.useState(0),[C,f]=le.useState(false),y=r==="left"||r==="right",T=r==="right"||r==="down";le.useEffect(()=>{let R=v.current;if(!R)return;let L=R.firstElementChild;if(!L)return;let k=()=>{y?a(L.offsetWidth):p(L.offsetHeight);};k();let S=new ResizeObserver(k);return S.observe(L),()=>S.disconnect()},[y,t]);let N={"--marquee-duration":`${y?u/o:h/o}s`,"--marquee-gap":`${c}px`},B=b?{"--gradient-color":g,"--gradient-width":`${l}px`}:{};return jsxRuntime.jsxs("div",{ref:m,className:i("relative overflow-hidden",b&&"marquee-gradient",e),style:{...x,...B},onMouseEnter:()=>n&&f(true),onMouseLeave:()=>n&&f(false),onClick:()=>s&&f(!C),...d,children:[jsxRuntime.jsxs("div",{ref:v,className:i("flex",y?"flex-row":"flex-col",C?"animate-pause":"",y?T?"animate-marquee-right":"animate-marquee-left":T?"animate-marquee-down":"animate-marquee-up"),style:N,children:[jsxRuntime.jsx("div",{className:i("flex shrink-0",y?"flex-row":"flex-col"),style:{gap:c},children:t}),jsxRuntime.jsx("div",{className:i("flex shrink-0",y?"flex-row":"flex-col"),style:{gap:c,[y?"marginLeft":"marginTop"]:c},"aria-hidden":"true",children:t})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
1
+ 'use strict';var le=require('react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),classVarianceAuthority=require('class-variance-authority'),ssr=require('@phosphor-icons/react/dist/ssr');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var le__default=/*#__PURE__*/_interopDefault(le);function i(...t){return tailwindMerge.twMerge(clsx.clsx(t))}function qt(t){let e=Object.entries(t).filter(([,r])=>r).map(([r])=>r);return i(...e)}var ke=le__default.default.forwardRef(({children:t,className:e,type:r="fade",duration:o=500,easing:n="smooth",delay:s=0,autoStart:u=true,onStart:h,onComplete:g,showProgress:l=false,progressClassName:x},m)=>{let[c,v]=le.useState(false),[d,a]=le.useState(0),[f,p]=le.useState(false),w=le.useRef(null),b=le.useRef(null),y=P=>({linear:C=>C,"ease-in":C=>C*C,"ease-out":C=>1-Math.pow(1-C,2),"ease-in-out":C=>C<.5?2*C*C:1-Math.pow(-2*C+2,2)/2,bounce:C=>C<.36363636363636365?7.5625*C*C:C<.7272727272727273?7.5625*(C-=.5454545454545454)*C+.75:C<.9090909090909091?7.5625*(C-=.8181818181818182)*C+.9375:7.5625*(C-=.9545454545454546)*C+.984375,elastic:C=>Math.pow(2,-10*C)*Math.sin((C-.075)*(2*Math.PI)/.3)+1,smooth:C=>C*C*(3-2*C)})[P],T=le.useCallback(P=>{b.current||(b.current=P);let L=P-b.current,C=y(n),S=Math.min(L/o,1);S=C(S),a(S),v(S>.1),S<1?w.current=requestAnimationFrame(U=>T(U)):(p(false),a(1),g==null||g());},[o,n,g]),k=le.useCallback(()=>{p(true),a(0),h==null||h(),b.current=null,w.current=requestAnimationFrame(T);},[T,h]);le.useEffect(()=>{if(u){let P=setTimeout(()=>{k();},s);return ()=>clearTimeout(P)}},[u,s,k]),le.useEffect(()=>()=>{w.current&&cancelAnimationFrame(w.current);},[]);let B=(()=>{switch(r){case "fade":return {opacity:c?1:0,transform:"none"};case "slide":return {opacity:c?1:0,transform:`translateX(${(1-d)*100}%)`};case "slide-up":return {opacity:c?1:0,transform:`translateY(${(1-d)*100}%)`};case "slide-down":return {opacity:c?1:0,transform:`translateY(-${(1-d)*100}%)`};case "slide-left":return {opacity:c?1:0,transform:`translateX(-${(1-d)*100}%)`};case "slide-right":return {opacity:c?1:0,transform:`translateX(${(1-d)*100}%)`};case "scale":return {opacity:c?1:0,transform:`scale(${.8+d*.2})`};case "flip":return {opacity:c?1:0,transform:`perspective(1000px) rotateY(${(1-d)*90}deg)`};case "morph":return {opacity:c?1:0,transform:`scale(${.9+d*.1}) rotate(${(1-d)*5}deg)`};case "cube":return {opacity:c?1:0,transform:`perspective(1000px) rotateX(${(1-d)*90}deg) rotateY(${(1-d)*45}deg)`};case "zoom":return {opacity:c?1:0,transform:`scale(${.5+d*.5})`};default:return {opacity:c?1:0,transform:"none"}}})();return jsxRuntime.jsxs("div",{className:"relative",children:[l&&jsxRuntime.jsxs("div",{className:i("fixed top-4 right-4 z-50 bg-background rounded-lg px-3 py-2 shadow-lg border",x),children:[jsxRuntime.jsxs("div",{className:"text-sm font-medium text-foreground",children:["Progress: ",Math.round(d*100),"%"]}),jsxRuntime.jsx("div",{className:"w-24 h-2 bg-muted rounded-full mt-2",children:jsxRuntime.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-100",style:{width:`${d*100}%`}})})]}),jsxRuntime.jsx("div",{ref:m,className:i("transition-all duration-500 ease-out",e),style:{...B,transitionDuration:`${o}ms`,transitionTimingFunction:n==="smooth"?"cubic-bezier(0.4, 0, 0.2, 1)":n==="bounce"?"cubic-bezier(0.68, -0.55, 0.265, 1.55)":n==="elastic"?"cubic-bezier(0.175, 0.885, 0.32, 1.275)":n},children:t})]})});ke.displayName="AdvancedPageTransition";var mn=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"fade",...t})),pn=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"slide",...t})),gn=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"scale",...t})),fn=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"flip",...t})),bn=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"morph",...t})),hn=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"cube",...t})),vn=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(ke,{ref:e,type:"zoom",...t}));mn.displayName="FadePageTransition";pn.displayName="SlidePageTransition";gn.displayName="ScalePageTransition";fn.displayName="FlipPageTransition";bn.displayName="MorphPageTransition";hn.displayName="CubePageTransition";vn.displayName="ZoomPageTransition";var wn=(t={})=>{let[e,r]=le.useState({isTransitioning:false,isVisible:false,currentStep:0,progress:0}),o=le.useRef(null),n=le.useRef(null),s=le.useRef({type:"fade",duration:500,easing:"smooth",delay:0,stagger:0,direction:"forward",...t}),u=le.useCallback(v=>({linear:a=>a,"ease-in":a=>a*a,"ease-out":a=>1-Math.pow(1-a,2),"ease-in-out":a=>a<.5?2*a*a:1-Math.pow(-2*a+2,2)/2,bounce:a=>a<.36363636363636365?7.5625*a*a:a<.7272727272727273?7.5625*(a-=.5454545454545454)*a+.75:a<.9090909090909091?7.5625*(a-=.8181818181818182)*a+.9375:7.5625*(a-=.9545454545454546)*a+.984375,elastic:a=>Math.pow(2,-10*a)*Math.sin((a-.075)*(2*Math.PI)/.3)+1,smooth:a=>a*a*(3-2*a)})[v],[]),h=le.useCallback(v=>{var w;n.current||(n.current=v);let d=v-n.current,a=s.current,f=u(a.easing),p=Math.min(d/a.duration,1);p=f(p),r(b=>({...b,progress:p,isVisible:a.direction==="forward"?p>.1:p<.9,currentStep:Math.floor(p*10)})),p<1?o.current=requestAnimationFrame(h):(r(b=>({...b,isTransitioning:false,progress:a.direction==="forward"?1:0})),(w=a.onComplete)==null||w.call(a));},[u]),g=le.useCallback(async v=>new Promise(d=>{var f;v&&(s.current={...s.current,...v});let a=s.current;a.onComplete=()=>d(),r(p=>({...p,isTransitioning:true,progress:a.direction==="forward"?0:1})),n.current=null,(f=a.onStart)==null||f.call(a),a.delay?setTimeout(()=>{o.current=requestAnimationFrame(h);},a.delay):o.current=requestAnimationFrame(h);}),[h]),l=le.useCallback(async()=>new Promise(v=>{let d=s.current;d.direction="backward",d.onComplete=()=>v(),g();}),[g]),x=le.useCallback(()=>{o.current&&cancelAnimationFrame(o.current);},[]),m=le.useCallback(()=>{e.isTransitioning&&(o.current=requestAnimationFrame(h));},[e.isTransitioning,h]),c=le.useCallback(()=>{o.current&&cancelAnimationFrame(o.current),r({isTransitioning:false,isVisible:false,currentStep:0,progress:0});},[]);return le.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current);},[]),[e,{start:g,reverse:l,pause:x,resume:m,reset:c}]};var Tn=(t={})=>{let{defaultType:e="fade",defaultDuration:r=500,defaultEasing:o="smooth",enableHistory:n=true,enableProgress:s=true,enableDebug:u=false}=t,[h,g]=le.useState({isTransitioning:false,currentTransition:null,transitionHistory:[],totalTransitions:0,averageDuration:0}),l=le.useRef(new Map),x=le.useRef(0),m=le.useCallback((b,y)=>{u&&console.log(`[PageTransitionManager] ${b}`,y);},[u]),c=le.useCallback(b=>{g(y=>{let T=n?[...y.transitionHistory,b]:y.transitionHistory,k=T.length,N=T.reduce((B,P)=>B+P.duration,0)/k;return {...y,totalTransitions:k,averageDuration:N,transitionHistory:T}});},[n]),v=le.useCallback(async b=>{let y=`transition_${++x.current}`,T={type:e,duration:r,easing:o,...b},k={id:y,type:T.type,duration:T.duration,easing:T.easing,timestamp:Date.now(),status:"pending"};m("Starting transition",{id:y,config:T}),g(B=>({...B,isTransitioning:true,currentTransition:k}));let N=setTimeout(()=>{var P;let B={...k,status:"completed"};g(L=>({...L,isTransitioning:false,currentTransition:null})),c(B),l.current.delete(y),m("Transition completed",{id:y}),(P=T.onComplete)==null||P.call(T);},T.duration);return l.current.set(y,{timer:N,config:T}),setTimeout(()=>{g(B=>({...B,currentTransition:{...B.currentTransition,status:"active"}}));},50),y},[e,r,o,m,c]),d=le.useCallback(b=>{let y=l.current.get(b);y&&(clearTimeout(y.timer),l.current.delete(b),g(T=>{var k;return {...T,isTransitioning:l.current.size>0,currentTransition:((k=T.currentTransition)==null?void 0:k.id)===b?null:T.currentTransition}}),m("Transition cancelled",{id:b}));},[m]),a=le.useCallback(()=>{l.current.forEach(({timer:b},y)=>{clearTimeout(b),m("Transition paused",{id:y});});},[m]),f=le.useCallback(()=>{l.current.forEach(({config:b},y)=>{v(b);});},[v]),p=le.useCallback(()=>{g(b=>({...b,transitionHistory:[],totalTransitions:0,averageDuration:0})),m("History cleared");},[m]),w=le.useCallback(()=>{let{transitionHistory:b}=h,y=b.reduce((k,N)=>(k[N.type]=(k[N.type]||0)+1,k),{}),T=b.reduce((k,N)=>(k[N.status]=(k[N.status]||0)+1,k),{});return {total:b.length,average:h.averageDuration,byType:y,byStatus:T}},[h]);return le.useEffect(()=>{let b=l.current;return ()=>{b.forEach(({timer:y})=>{clearTimeout(y);}),b.clear();}},[]),[h,{startTransition:v,cancelTransition:d,pauseAll:a,resumeAll:f,clearHistory:p,getTransitionStats:w}]};var Mr=le__default.default.forwardRef(({children:t,className:e,speed:r=.5,direction:o="up",offset:n=0,disabled:s=false,scale:u=false,opacity:h=false,rotate:g=false,rotateDirection:l="cw",style:x,...m},c)=>{let v=le.useRef(null),[d,a]=le.useState({x:0,y:0,scale:1,opacity:1,rotate:0}),f=Pn(),p=le.useCallback(()=>{if(s||f)return;let b=v.current;if(!b)return;let y=b.getBoundingClientRect(),T=window.innerHeight,N=y.top+y.height/2,P=(T/2-N)/T,L=P*r*100+n,C=0,S=0;switch(o){case "up":S=-L;break;case "down":S=L;break;case "left":C=-L;break;case "right":C=L;break}let U=u?1+Math.abs(P)*.1:1,O=h?Math.max(.3,1-Math.abs(P)*.5):1,F=g?P*10*(l==="cw"?1:-1):0;a({x:C,y:S,scale:U,opacity:O,rotate:F});},[s,f,r,o,n,u,h,g,l]);le.useEffect(()=>{if(s||f)return;p();let b=()=>{requestAnimationFrame(p);};return window.addEventListener("scroll",b,{passive:true}),window.addEventListener("resize",b,{passive:true}),()=>{window.removeEventListener("scroll",b),window.removeEventListener("resize",b);}},[p,s,f]);let w={...x,transform:s||f?void 0:`translate3d(${d.x}px, ${d.y}px, 0) scale(${d.scale}) rotate(${d.rotate}deg)`,opacity:s||f?1:d.opacity,willChange:s||f?void 0:"transform, opacity"};return jsxRuntime.jsx("div",{ref:Ln(c,v),className:i("transition-none",e),style:w,...m,children:t})});Mr.displayName="Parallax";function Pn(){let[t,e]=le.useState(false);return le.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");e(r.matches);let o=n=>{e(n.matches);};return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),t}function Ln(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e);});}}var Ir=le__default.default.forwardRef(({children:t,className:e,direction:r="left",speed:o=50,pauseOnHover:n=true,pauseOnClick:s=false,gap:u=16,gradient:h=true,gradientColor:g="hsl(var(--background))",gradientWidth:l=100,style:x,...m},c)=>{let v=le.useRef(null),[d,a]=le.useState(0),[f,p]=le.useState(0),[w,b]=le.useState(false),y=r==="left"||r==="right",T=r==="right"||r==="down";le.useEffect(()=>{let P=v.current;if(!P)return;let L=P.firstElementChild;if(!L)return;let C=()=>{y?a(L.offsetWidth):p(L.offsetHeight);};C();let S=new ResizeObserver(C);return S.observe(L),()=>S.disconnect()},[y,t]);let N={"--marquee-duration":`${y?d/o:f/o}s`,"--marquee-gap":`${u}px`},B=h?{"--gradient-color":g,"--gradient-width":`${l}px`}:{};return jsxRuntime.jsxs("div",{ref:c,className:i("relative overflow-hidden",h&&"marquee-gradient",e),style:{...x,...B},onMouseEnter:()=>n&&b(true),onMouseLeave:()=>n&&b(false),onClick:()=>s&&b(!w),...m,children:[jsxRuntime.jsxs("div",{ref:v,className:i("flex",y?"flex-row":"flex-col",w?"animate-pause":"",y?T?"animate-marquee-right":"animate-marquee-left":T?"animate-marquee-down":"animate-marquee-up"),style:N,children:[jsxRuntime.jsx("div",{className:i("flex shrink-0",y?"flex-row":"flex-col"),style:{gap:u},children:t}),jsxRuntime.jsx("div",{className:i("flex shrink-0",y?"flex-row":"flex-col"),style:{gap:u,[y?"marginLeft":"marginTop"]:u},"aria-hidden":"true",children:t})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
2
2
  @keyframes marquee-left {
3
3
  from { transform: translateX(0); }
4
4
  to { transform: translateX(calc(-50% - var(--marquee-gap) / 2)); }
@@ -37,17 +37,17 @@
37
37
  right: 0;
38
38
  background: linear-gradient(to left, var(--gradient-color), transparent);
39
39
  }
40
- `}})]})});Lr.displayName="Marquee";var Sr=le__default.default.forwardRef(({children:t,className:e,glowColor:r="rgba(120, 119, 198, 0.3)",glowSize:o=400,glowOpacity:n=.6,border:s=true,borderColor:c,style:b,...g},l)=>{let x=le.useRef(null),[d,m]=le.useState({x:0,y:0}),[v,u]=le.useState(false),a=le.useCallback(C=>{if(!x.current)return;let f=x.current.getBoundingClientRect();m({x:C.clientX-f.left,y:C.clientY-f.top});},[]),h={position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",opacity:v?n:0,background:`radial-gradient(${o}px circle at ${d.x}px ${d.y}px, ${r}, transparent 40%)`,transition:"opacity 0.3s ease",pointerEvents:"none"},p=s?{position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",opacity:v?1:0,background:`radial-gradient(${o/2}px circle at ${d.x}px ${d.y}px, ${c||r}, transparent 40%)`,transition:"opacity 0.3s ease",pointerEvents:"none",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",maskComposite:"exclude",WebkitMaskComposite:"xor",padding:"1px"}:{};return jsxRuntime.jsxs("div",{ref:Tn(l,x),className:i("relative overflow-hidden rounded-xl bg-card border border-border p-6","transition-all duration-300",v&&"border-transparent",e),style:b,onMouseMove:a,onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),...g,children:[jsxRuntime.jsx("div",{style:h,"aria-hidden":"true"}),s&&jsxRuntime.jsx("div",{style:p,"aria-hidden":"true"}),jsxRuntime.jsx("div",{className:"relative z-10",children:t})]})});Sr.displayName="GlowCard";function Tn(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e);});}}var Br=le__default.default.forwardRef(({children:t,className:e,spotlightColor:r="rgba(255, 255, 255, 0.1)",spotlightSize:o=300,gradient:n=true,gradientFrom:s="rgba(255, 255, 255, 0.05)",gradientTo:c="transparent",style:b,...g},l)=>{let x=le.useRef(null),[d,m]=le.useState({x:0,y:0}),[v,u]=le.useState(false),a=le.useCallback(C=>{if(!x.current)return;let f=x.current.getBoundingClientRect();m({x:C.clientX-f.left,y:C.clientY-f.top});},[]),h={position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",opacity:v?1:0,background:`radial-gradient(${o}px circle at ${d.x}px ${d.y}px, ${r}, transparent 60%)`,transition:"opacity 0.4s ease",pointerEvents:"none"},p=n?{position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",background:`linear-gradient(135deg, ${s} 0%, ${c} 100%)`,pointerEvents:"none"}:{};return jsxRuntime.jsxs("div",{ref:Ln(l,x),className:i("relative overflow-hidden rounded-xl","bg-gray-900 border border-gray-800","transition-all duration-300",v&&"border-gray-700 shadow-2xl shadow-black/20",e),style:b,onMouseMove:a,onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),...g,children:[n&&jsxRuntime.jsx("div",{style:p,"aria-hidden":"true"}),jsxRuntime.jsx("div",{style:h,"aria-hidden":"true"}),jsxRuntime.jsx("div",{className:"relative z-10",children:t})]})});Br.displayName="SpotlightCard";function Ln(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e);});}}var Dr=le__default.default.forwardRef(({text:t,className:e,revealColor:r="currentColor",hiddenColor:o="rgba(128, 128, 128, 0.3)",threshold:n=.5,byWord:s=false,byChar:c=false,style:b,...g},l)=>{let x=le.useRef(null),[d,m]=le.useState(0),v=Hn(),u=le.useCallback(()=>{if(!x.current)return;let h=x.current.getBoundingClientRect(),p=window.innerHeight,C=p*(1-n),f=p*n,y=h.top+h.height/2,T=0;y<=C&&y>=f?T=(C-y)/(C-f):y<f&&(T=1),m(Math.max(0,Math.min(1,T)));},[n]);le.useEffect(()=>{if(v){m(1);return}u();let h=()=>{requestAnimationFrame(u);};return window.addEventListener("scroll",h,{passive:true}),window.addEventListener("resize",h,{passive:true}),()=>{window.removeEventListener("scroll",h),window.removeEventListener("resize",h);}},[u,v]);let a=()=>{if(c){let h=t.split("");return h.map((p,C)=>{let f=d*h.length,y=C<f;return jsxRuntime.jsx("span",{style:{color:y?r:o,transition:"color 0.1s ease-out"},children:p},C)})}if(s){let h=t.split(" ");return h.map((p,C)=>{let f=d*h.length,y=C<f;return jsxRuntime.jsxs("span",{children:[jsxRuntime.jsx("span",{style:{color:y?r:o,transition:"color 0.15s ease-out"},children:p}),C<h.length-1&&" "]},C)})}return jsxRuntime.jsx("span",{style:{background:`linear-gradient(90deg, ${r} ${d*100}%, ${o} ${d*100}%)`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",transition:"background 0.1s ease-out"},children:t})};return jsxRuntime.jsx("div",{ref:An(l,x),className:i("font-medium",e),style:b,...g,children:a()})});Dr.displayName="TextReveal";function Hn(){let[t,e]=le.useState(false);return le.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");e(r.matches);let o=n=>{e(n.matches);};return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),t}function An(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e);});}}var zn=["#ff0080","#7928ca","#0070f3","#00dfd8"],Or=le__default.default.forwardRef(({children:t,className:e,colors:r=zn,speed:o=3,blur:n=true,blurAmount:s=100,type:c="mesh",animate:b=true,style:g,...l},x)=>{let[d,m]=le.useState(false),v=On(),u=b&&!v;le.useEffect(()=>{m(true);},[]);let a=()=>{switch(c){case "linear":return jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(
41
- ${u?"var(--gradient-angle, 0deg)":"135deg"},
40
+ `}})]})});Ir.displayName="Marquee";var Hr=le__default.default.forwardRef(({children:t,className:e,glowColor:r="rgba(120, 119, 198, 0.3)",glowSize:o=400,glowOpacity:n=.6,border:s=true,borderColor:u,style:h,...g},l)=>{let x=le.useRef(null),[m,c]=le.useState({x:0,y:0}),[v,d]=le.useState(false),a=le.useCallback(w=>{if(!x.current)return;let b=x.current.getBoundingClientRect();c({x:w.clientX-b.left,y:w.clientY-b.top});},[]),f={position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",opacity:v?n:0,background:`radial-gradient(${o}px circle at ${m.x}px ${m.y}px, ${r}, transparent 40%)`,transition:"opacity 0.3s ease",pointerEvents:"none"},p=s?{position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",opacity:v?1:0,background:`radial-gradient(${o/2}px circle at ${m.x}px ${m.y}px, ${u||r}, transparent 40%)`,transition:"opacity 0.3s ease",pointerEvents:"none",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",maskComposite:"exclude",WebkitMaskComposite:"xor",padding:"1px"}:{};return jsxRuntime.jsxs("div",{ref:zn(l,x),className:i("relative overflow-hidden rounded-xl bg-card border border-border p-6","transition-all duration-300",v&&"border-transparent",e),style:h,onMouseMove:a,onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),...g,children:[jsxRuntime.jsx("div",{style:f,"aria-hidden":"true"}),s&&jsxRuntime.jsx("div",{style:p,"aria-hidden":"true"}),jsxRuntime.jsx("div",{className:"relative z-10",children:t})]})});Hr.displayName="GlowCard";function zn(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e);});}}var Dr=le__default.default.forwardRef(({children:t,className:e,spotlightColor:r="rgba(255, 255, 255, 0.1)",spotlightSize:o=300,gradient:n=true,gradientFrom:s="rgba(255, 255, 255, 0.05)",gradientTo:u="transparent",style:h,...g},l)=>{let x=le.useRef(null),[m,c]=le.useState({x:0,y:0}),[v,d]=le.useState(false),a=le.useCallback(w=>{if(!x.current)return;let b=x.current.getBoundingClientRect();c({x:w.clientX-b.left,y:w.clientY-b.top});},[]),f={position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",opacity:v?1:0,background:`radial-gradient(${o}px circle at ${m.x}px ${m.y}px, ${r}, transparent 60%)`,transition:"opacity 0.4s ease",pointerEvents:"none"},p=n?{position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",background:`linear-gradient(135deg, ${s} 0%, ${u} 100%)`,pointerEvents:"none"}:{};return jsxRuntime.jsxs("div",{ref:qn(l,x),className:i("relative overflow-hidden rounded-xl","bg-gray-900 border border-gray-800","transition-all duration-300",v&&"border-gray-700 shadow-2xl shadow-black/20",e),style:h,onMouseMove:a,onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),...g,children:[n&&jsxRuntime.jsx("div",{style:p,"aria-hidden":"true"}),jsxRuntime.jsx("div",{style:f,"aria-hidden":"true"}),jsxRuntime.jsx("div",{className:"relative z-10",children:t})]})});Dr.displayName="SpotlightCard";function qn(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e);});}}var Or=le__default.default.forwardRef(({text:t,className:e,revealColor:r="currentColor",hiddenColor:o="rgba(128, 128, 128, 0.3)",threshold:n=.5,byWord:s=false,byChar:u=false,style:h,...g},l)=>{let x=le.useRef(null),[m,c]=le.useState(0),v=Gn(),d=le.useCallback(()=>{if(!x.current)return;let f=x.current.getBoundingClientRect(),p=window.innerHeight,w=p*(1-n),b=p*n,y=f.top+f.height/2,T=0;y<=w&&y>=b?T=(w-y)/(w-b):y<b&&(T=1),c(Math.max(0,Math.min(1,T)));},[n]);le.useEffect(()=>{if(v){c(1);return}d();let f=()=>{requestAnimationFrame(d);};return window.addEventListener("scroll",f,{passive:true}),window.addEventListener("resize",f,{passive:true}),()=>{window.removeEventListener("scroll",f),window.removeEventListener("resize",f);}},[d,v]);let a=()=>{if(u){let f=t.split("");return f.map((p,w)=>{let b=m*f.length,y=w<b;return jsxRuntime.jsx("span",{style:{color:y?r:o,transition:"color 0.1s ease-out"},children:p},w)})}if(s){let f=t.split(" ");return f.map((p,w)=>{let b=m*f.length,y=w<b;return jsxRuntime.jsxs("span",{children:[jsxRuntime.jsx("span",{style:{color:y?r:o,transition:"color 0.15s ease-out"},children:p}),w<f.length-1&&" "]},w)})}return jsxRuntime.jsx("span",{style:{background:`linear-gradient(90deg, ${r} ${m*100}%, ${o} ${m*100}%)`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",transition:"background 0.1s ease-out"},children:t})};return jsxRuntime.jsx("div",{ref:Xn(l,x),className:i("font-medium",e),style:h,...g,children:a()})});Or.displayName="TextReveal";function Gn(){let[t,e]=le.useState(false);return le.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");e(r.matches);let o=n=>{e(n.matches);};return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),t}function Xn(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e);});}}var Kn=["#ff0080","#7928ca","#0070f3","#00dfd8"],qr=le__default.default.forwardRef(({children:t,className:e,colors:r=Kn,speed:o=3,blur:n=true,blurAmount:s=100,type:u="mesh",animate:h=true,style:g,...l},x)=>{let[m,c]=le.useState(false),v=Qn(),d=h&&!v;le.useEffect(()=>{c(true);},[]);let a=()=>{switch(u){case "linear":return jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(
41
+ ${d?"var(--gradient-angle, 0deg)":"135deg"},
42
42
  ${r.join(", ")}
43
- )`,animation:u?`gradient-rotate ${o}s linear infinite`:void 0}});case "radial":return jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`radial-gradient(
44
- circle at ${u?"var(--gradient-x, 50%) var(--gradient-y, 50%)":"50% 50%"},
43
+ )`,animation:d?`gradient-rotate ${o}s linear infinite`:void 0}});case "radial":return jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`radial-gradient(
44
+ circle at ${d?"var(--gradient-x, 50%) var(--gradient-y, 50%)":"50% 50%"},
45
45
  ${r.join(", ")}
46
- )`,animation:u?`gradient-move ${o}s ease-in-out infinite`:void 0}});case "conic":return jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`conic-gradient(
47
- from ${u?"var(--gradient-angle, 0deg)":"0deg"} at 50% 50%,
46
+ )`,animation:d?`gradient-move ${o}s ease-in-out infinite`:void 0}});case "conic":return jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`conic-gradient(
47
+ from ${d?"var(--gradient-angle, 0deg)":"0deg"} at 50% 50%,
48
48
  ${r.join(", ")},
49
49
  ${r[0]}
50
- )`,animation:u?`gradient-spin ${o}s linear infinite`:void 0}});default:return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map((h,p)=>{let C=360/r.length*p,f=o/r.length*p;return jsxRuntime.jsx("div",{className:"absolute rounded-full mix-blend-screen",style:{width:"60%",height:"60%",background:`radial-gradient(circle at center, ${h} 0%, transparent 70%)`,top:`${30+Math.sin(C*Math.PI/180)*20}%`,left:`${30+Math.cos(C*Math.PI/180)*20}%`,animation:u?`gradient-blob ${o}s ease-in-out infinite`:void 0,animationDelay:u?`${-f}s`:void 0,opacity:d?1:0,transition:"opacity 0.5s ease-out"}},p)})})}};return jsxRuntime.jsxs("div",{ref:x,className:i("relative overflow-hidden",e),style:g,...l,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{filter:n?`blur(${s}px)`:void 0},children:a()}),t&&jsxRuntime.jsx("div",{className:"relative z-10",children:t}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
50
+ )`,animation:d?`gradient-spin ${o}s linear infinite`:void 0}});default:return m?jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map((f,p)=>{let w=360/r.length*p,b=o/r.length*p;return jsxRuntime.jsx("div",{className:"absolute rounded-full mix-blend-screen",style:{width:"60%",height:"60%",background:`radial-gradient(circle at center, ${f} 0%, transparent 70%)`,top:`${30+Math.sin(w*Math.PI/180)*20}%`,left:`${30+Math.cos(w*Math.PI/180)*20}%`,animation:d?`gradient-blob ${o}s ease-in-out infinite`:void 0,animationDelay:d?`${-b}s`:void 0}},p)})}):null}};return jsxRuntime.jsxs("div",{ref:x,className:i("relative overflow-hidden",e),style:g,...l,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{filter:n?`blur(${s}px)`:void 0},children:a()}),t&&jsxRuntime.jsx("div",{className:"relative z-10",children:t}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
51
51
  @keyframes gradient-rotate {
52
52
  0% { --gradient-angle: 0deg; }
53
53
  100% { --gradient-angle: 360deg; }
@@ -68,17 +68,17 @@
68
68
  50% { transform: translate(0, 20%) scale(0.9); }
69
69
  75% { transform: translate(-20%, -10%) scale(1.05); }
70
70
  }
71
- `}})]})});Or.displayName="AnimatedGradient";function On(){let[t,e]=le.useState(false);return le.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");e(r.matches);let o=n=>{e(n.matches);};return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),t}var Vr=le__default.default.forwardRef(({children:t,className:e,maxTilt:r=15,perspective:o=1e3,scale:n=1.02,speed:s=400,glare:c=true,maxGlare:b=.3,reset:g=true,style:l,...x},d)=>{let m=le.useRef(null),[v,u]=le.useState({rotateX:0,rotateY:0,scale:1}),[a,h]=le.useState({x:50,y:50}),[p,C]=le.useState(false),f=le.useCallback(R=>{if(!m.current)return;let L=m.current.getBoundingClientRect(),k=L.left+L.width/2,S=L.top+L.height/2,U=R.clientX-k,O=R.clientY-S,F=U/(L.width/2)*r,Q=-(O/(L.height/2))*r;u({rotateX:Q,rotateY:F,scale:n});let K=(R.clientX-L.left)/L.width*100,$=(R.clientY-L.top)/L.height*100;h({x:K,y:$});},[r,n]),y=()=>{C(true);},T=()=>{C(false),g&&u({rotateX:0,rotateY:0,scale:1});},w={...l,perspective:`${o}px`},N={transform:`rotateX(${v.rotateX}deg) rotateY(${v.rotateY}deg) scale(${v.scale})`,transition:p?"none":`transform ${s}ms ease-out`,transformStyle:"preserve-3d"},B={position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",background:`linear-gradient(
71
+ `}})]})});qr.displayName="AnimatedGradient";function Qn(){let[t,e]=le.useState(false);return le.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");e(r.matches);let o=n=>{e(n.matches);};return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),t}var _r=le__default.default.forwardRef(({children:t,className:e,maxTilt:r=15,perspective:o=1e3,scale:n=1.02,speed:s=400,glare:u=true,maxGlare:h=.3,reset:g=true,style:l,...x},m)=>{let c=le.useRef(null),[v,d]=le.useState({rotateX:0,rotateY:0,scale:1}),[a,f]=le.useState({x:50,y:50}),[p,w]=le.useState(false),b=le.useCallback(P=>{if(!c.current)return;let L=c.current.getBoundingClientRect(),C=L.left+L.width/2,S=L.top+L.height/2,U=P.clientX-C,O=P.clientY-S,F=U/(L.width/2)*r,Q=-(O/(L.height/2))*r;d({rotateX:Q,rotateY:F,scale:n});let K=(P.clientX-L.left)/L.width*100,z=(P.clientY-L.top)/L.height*100;f({x:K,y:z});},[r,n]),y=()=>{w(true);},T=()=>{w(false),g&&d({rotateX:0,rotateY:0,scale:1});},k={...l,perspective:`${o}px`},N={transform:`rotateX(${v.rotateX}deg) rotateY(${v.rotateY}deg) scale(${v.scale})`,transition:p?"none":`transform ${s}ms ease-out`,transformStyle:"preserve-3d"},B={position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",background:`linear-gradient(
72
72
  ${Math.atan2(a.y-50,a.x-50)*(180/Math.PI)+90}deg,
73
- rgba(255, 255, 255, ${p?b:0}) 0%,
73
+ rgba(255, 255, 255, ${p?h:0}) 0%,
74
74
  transparent 80%
75
- )`,transition:p?"opacity 0.1s ease-out":`opacity ${s}ms ease-out`,pointerEvents:"none",opacity:p?1:0};return jsxRuntime.jsx("div",{ref:Wn(d,m),className:i("relative",e),style:w,onMouseMove:f,onMouseEnter:y,onMouseLeave:T,...x,children:jsxRuntime.jsxs("div",{style:N,className:"relative",children:[t,c&&jsxRuntime.jsx("div",{style:B,"aria-hidden":"true"})]})})});Vr.displayName="TiltCard";function Wn(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e);});}}var Ur=le__default.default.forwardRef(({src:t,type:e="native",poster:r,autoPlay:o=true,loop:n=true,muted:s=true,controls:c=false,objectFit:b="cover",overlay:g=true,overlayColor:l="rgba(0, 0, 0, 0.4)",gradient:x=false,gradientDirection:d="bottom",playbackRate:m=1,fadeIn:v=true,children:u,className:a,style:h,...p},C)=>{let f=le.useRef(null),[y,T]=le.useState(false),[w,N]=le.useState(false);le.useEffect(()=>{e==="native"&&f.current&&(f.current.playbackRate=m);},[m,e]);let B=()=>{T(true);},R=()=>{N(true);},L=F=>{let Q=new URLSearchParams({autoplay:o?"1":"0",mute:s?"1":"0",loop:n?"1":"0",controls:c?"1":"0",playlist:F,modestbranding:"1",rel:"0",showinfo:"0",iv_load_policy:"3",disablekb:"1",enablejsapi:"1",playsinline:"1"});return `https://www.youtube.com/embed/${F}?${Q.toString()}`},k=F=>{let Q=new URLSearchParams({autoplay:o?"1":"0",muted:s?"1":"0",loop:n?"1":"0",controls:c?"1":"0",background:"1",quality:"auto",dnt:"1"});return `https://player.vimeo.com/video/${F}?${Q.toString()}`},S=()=>{let F={cover:"object-cover",contain:"object-contain",fill:"object-fill"}[b];switch(e){case "youtube":return jsxRuntime.jsx("iframe",{src:L(t),className:i("absolute inset-0 w-full h-full pointer-events-none","scale-[1.2]"),style:{opacity:y||!v?1:0,transition:v?"opacity 0.8s ease-out":void 0},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:true,onLoad:()=>T(true),title:"YouTube video background"});case "vimeo":return jsxRuntime.jsx("iframe",{src:k(t),className:"absolute inset-0 w-full h-full pointer-events-none",style:{opacity:y||!v?1:0,transition:v?"opacity 0.8s ease-out":void 0},allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:true,onLoad:()=>T(true),title:"Vimeo video background"});default:return jsxRuntime.jsx("video",{ref:f,src:t,poster:r,autoPlay:o,loop:n,muted:s,controls:c,playsInline:true,className:i("absolute inset-0 w-full h-full",F),style:{opacity:w||!v?1:0,transition:v?"opacity 0.8s ease-out":void 0},onLoadedData:B,onPlaying:R})}},U=()=>{if(!x)return null;let F=[];return (d==="top"||d==="both")&&F.push(jsxRuntime.jsx("div",{className:"absolute top-0 left-0 right-0 h-1/3",style:{background:`linear-gradient(to bottom, ${l}, transparent)`},"aria-hidden":"true"},"top")),(d==="bottom"||d==="both")&&F.push(jsxRuntime.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-1/3",style:{background:`linear-gradient(to top, ${l}, transparent)`},"aria-hidden":"true"},"bottom")),jsxRuntime.jsx(jsxRuntime.Fragment,{children:F})},O=a&&/\b(fixed|absolute|sticky)\b/.test(a);return jsxRuntime.jsxs("div",{ref:C,className:i("overflow-hidden",!O&&"relative",a),style:h,...p,children:[r&&v&&!y&&!w&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${r})`},"aria-hidden":"true"}),S(),g&&!x&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backgroundColor:l},"aria-hidden":"true"}),U(),u&&jsxRuntime.jsx("div",{className:"relative z-10 h-full",children:u})]})});Ur.displayName="VideoBackground";var _r=le__default.default.forwardRef(({children:t,autoPlay:e=false,interval:r=5e3,loop:o=true,pauseOnHover:n=true,indicators:s="dots",indicatorPosition:c="bottom",showArrows:b=true,arrowPosition:g="inside",transition:l="slide",transitionDuration:x=500,onSlideChange:d,showPlayPause:m=false,playPausePosition:v="right",className:u,style:a,...h},p)=>{let C=()=>l==="slide"&&o?1:0,[f,y]=le.useState(C),[T,w]=le.useState(!e),[N,B]=le.useState(false),[R,L]=le.useState(false),[k,S]=le.useState(false),[U,O]=le.useState(null),[F,Q]=le.useState(null),K=le.useRef(null),$=le__default.default.Children.count(t),q=Jn(),V=le.useCallback(I=>l!=="slide"||!o?I:I===0?$-1:I===$+1?0:I-1,[o,$,l]),Y=le.useCallback(I=>{if(R)return;let E=I;if(o?l!=="slide"&&(I<0?E=$-1:I>=$&&(E=0)):E=Math.max(0,Math.min(I,$-1)),E!==f){L(true),y(E);let A=o&&l==="slide"?E===0?$-1:E===$+1?0:E-1:E;d==null||d(A),setTimeout(()=>L(false),x);}},[f,$,o,R,x,l,d]);le.useEffect(()=>{!o||R||l!=="slide"||(f===0?setTimeout(()=>{S(true),y($),setTimeout(()=>S(false),50);},x):f===$+1&&setTimeout(()=>{S(true),y(1),setTimeout(()=>S(false),50);},x));},[f,$,o,R,x,l]);let de=le.useCallback(()=>{Y(f+1);},[f,Y]),Le=le.useCallback(()=>{Y(f-1);},[f,Y]),gt=le.useCallback(()=>{B(I=>!I);},[]);le.useCallback(()=>{B(false);},[]);le.useCallback(()=>{B(true);},[]);le.useEffect(()=>{if(!e||T||N||q)return;let I=setInterval(de,r);return ()=>clearInterval(I)},[e,r,T,N,de,q]);let ft=I=>{O(I.targetTouches[0].clientX);},bt=I=>{Q(I.targetTouches[0].clientX);},ht=()=>{if(!U||!F)return;let I=U-F;Math.abs(I)>=50&&(I>0?de():Le()),O(null),Q(null);};le.useEffect(()=>{let I=A=>{A.key==="ArrowLeft"?Le():A.key==="ArrowRight"&&de();},E=K.current;return E==null||E.addEventListener("keydown",I),()=>E==null?void 0:E.removeEventListener("keydown",I)},[de,Le]);let Ot=()=>{let I=q||k?0:x,E=V(f);switch(l){case "fade":return le__default.default.Children.map(t,(A,G)=>jsxRuntime.jsx("div",{className:i("absolute inset-0 w-full h-full",G===E?"z-10":"z-0"),style:{opacity:G===E?1:0,transition:`opacity ${I}ms ease-in-out`},children:A},G));case "scale":return le__default.default.Children.map(t,(A,G)=>jsxRuntime.jsx("div",{className:i("absolute inset-0 w-full h-full",G===E?"z-10":"z-0"),style:{opacity:G===E?1:0,transform:`scale(${G===E?1:.9})`,transition:`opacity ${I}ms ease-in-out, transform ${I}ms ease-in-out`},children:A},G));default:{let A=le__default.default.Children.toArray(t);return (o?[A[A.length-1],...A,A[0]]:A).map((te,ue)=>jsxRuntime.jsx("div",{className:"absolute inset-0 w-full h-full",style:{transform:`translateX(${(ue-f)*100}%)`,transition:k?"none":`transform ${I}ms ease-in-out`},children:te},ue))}}},et=()=>{if(s==="none")return null;let I=c.includes("inside"),E=c.includes("top"),A=V(f),G=i("flex items-center justify-center gap-2",I?i("absolute left-1/2 -translate-x-1/2 z-20",E?"top-4":"bottom-4"):i("mt-4",E&&"order-first mb-4 mt-0")),te=ue=>{Y(o&&l==="slide"?ue+1:ue);};return jsxRuntime.jsx("div",{className:G,role:"tablist",children:Array.from({length:$},(ue,se)=>{let be=se===A;switch(s){case "bars":return jsxRuntime.jsx("button",{onClick:()=>te(se),className:i("h-1 rounded-full transition-all duration-300",be?"w-8 bg-white":"w-4 bg-white/50 hover:bg-white/70"),role:"tab","aria-selected":be,"aria-label":`\uC2AC\uB77C\uC774\uB4DC ${se+1}`},se);case "numbers":return jsxRuntime.jsx("button",{onClick:()=>te(se),className:i("w-8 h-8 rounded-full text-sm font-medium transition-all duration-300",be?"bg-white text-gray-900":"bg-white/30 text-white hover:bg-white/50"),role:"tab","aria-selected":be,"aria-label":`\uC2AC\uB77C\uC774\uB4DC ${se+1}`,children:se+1},se);default:return jsxRuntime.jsx("button",{onClick:()=>te(se),className:i("w-2.5 h-2.5 rounded-full transition-all duration-300",be?"bg-white scale-125":"bg-white/50 hover:bg-white/70"),role:"tab","aria-selected":be,"aria-label":`\uC2AC\uB77C\uC774\uB4DC ${se+1}`},se)}})})},xt=()=>{if(!m||!e)return null;let I=!N;return jsxRuntime.jsx("button",{onClick:gt,className:i("absolute bottom-4 z-20","w-8 h-8 rounded-full flex items-center justify-center","bg-white/80 hover:bg-white text-gray-800","transition-all duration-200","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white",{left:"left-4",center:"left-1/2 -translate-x-1/2",right:"right-4"}[v]),"aria-label":I?"\uC77C\uC2DC\uC815\uC9C0":"\uC7AC\uC0DD",children:I?jsxRuntime.jsx(oa,{className:"w-4 h-4"}):jsxRuntime.jsx(ra,{className:"w-4 h-4"})})},vt=()=>{if(!b||g==="hidden")return null;let I=o||f>0,E=o||f<$-1,A=i("absolute top-1/2 -translate-y-1/2 z-20","w-10 h-10 rounded-full flex items-center justify-center","bg-white/80 hover:bg-white text-gray-800","transition-all duration-200","disabled:opacity-30 disabled:cursor-not-allowed","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white"),G=g==="outside"?"-left-14":"left-4",te=g==="outside"?"-right-14":"right-4";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:Le,disabled:!I,className:i(A,G),"aria-label":"\uC774\uC804 \uC2AC\uB77C\uC774\uB4DC",children:jsxRuntime.jsx(ea,{className:"w-5 h-5"})}),jsxRuntime.jsx("button",{onClick:de,disabled:!E,className:i(A,te),"aria-label":"\uB2E4\uC74C \uC2AC\uB77C\uC774\uB4DC",children:jsxRuntime.jsx(ta,{className:"w-5 h-5"})})]})};return jsxRuntime.jsxs("div",{ref:p,className:i("flex flex-col w-full h-full",g==="outside"&&"px-16",u),style:a,...h,children:[jsxRuntime.jsxs("div",{ref:K,className:"relative overflow-hidden w-full flex-1",onMouseEnter:()=>n&&w(true),onMouseLeave:()=>n&&w(false),onTouchStart:ft,onTouchMove:bt,onTouchEnd:ht,tabIndex:0,role:"region","aria-roledescription":"carousel","aria-label":"\uC774\uBBF8\uC9C0 \uC2AC\uB77C\uC774\uB354",children:[Ot(),vt(),xt(),c.includes("inside")&&et()]}),!c.includes("inside")&&et()]})});_r.displayName="Carousel";function Jn(){let[t,e]=le.useState(false);return le.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");e(r.matches);let o=n=>{e(n.matches);};return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),t}function ea({className:t}){return jsxRuntime.jsx("svg",{className:t,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}function ta({className:t}){return jsxRuntime.jsx("svg",{className:t,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}function ra({className:t}){return jsxRuntime.jsx("svg",{className:t,fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M8 5v14l11-7z"})})}function oa({className:t}){return jsxRuntime.jsx("svg",{className:t,fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})})}var sa=classVarianceAuthority.cva("rounded-lg",{variants:{variant:{default:"bg-card text-card-foreground border border-border",outline:"bg-transparent border-2 border-border",elevated:"bg-card text-card-foreground shadow-lg border border-border"},shadow:{none:"shadow-none",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg"},padding:{none:"",sm:"p-3",md:"p-4",lg:"p-6"}},defaultVariants:{variant:"default",padding:"none"}}),ot=le__default.default.forwardRef(({className:t,variant:e="default",shadow:r,padding:o="none",hoverable:n,...s},c)=>jsxRuntime.jsx("div",{ref:c,className:i(sa({variant:e,shadow:r,padding:o}),n&&"transition-shadow hover:shadow-lg cursor-pointer",t),...s}));ot.displayName="Card";var Kt=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex flex-col space-y-1 p-3",t),...e}));Kt.displayName="CardHeader";var Qt=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("h3",{ref:r,className:i("text-base md:text-lg font-semibold leading-tight tracking-tight",t),...e}));Qt.displayName="CardTitle";var Jt=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("p",{ref:r,className:i("text-sm text-muted-foreground",t),...e}));Jt.displayName="CardDescription";var nt=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("div",{ref:r,className:i("px-3 pb-3",t),...e}));nt.displayName="CardContent";var ia=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center px-3 pb-3",t),...e}));ia.displayName="CardFooter";var ca=classVarianceAuthority.cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors duration-200 ease-in-out focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{default:"bg-[var(--badge-default-bg)] text-[var(--badge-default-text)] hover:opacity-80",secondary:"bg-[var(--badge-secondary-bg)] text-[var(--badge-secondary-text)] hover:opacity-80",destructive:"bg-[var(--badge-destructive-bg)] text-slate-50 hover:opacity-80",error:"bg-[var(--badge-destructive-bg)] text-slate-50 hover:opacity-80",outline:"bg-transparent text-[var(--badge-outline-text)] border border-[var(--badge-outline-border)] hover:bg-[var(--badge-outline-hover-bg)]",glass:"bg-[var(--badge-glass-bg)] backdrop-blur-sm border border-[var(--badge-glass-border)] text-[var(--badge-glass-text)] hover:opacity-80"}},defaultVariants:{variant:"default"}}),xe=le__default.default.memo(le__default.default.forwardRef(({className:t,variant:e="default",...r},o)=>jsxRuntime.jsx("div",{ref:o,className:i(ca({variant:e}),t),...r})));xe.displayName="Badge";function kt(t){return t.toLowerCase().replace(/[^a-z0-9가-힣ぁ-んァ-ン一-龯_.~\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").trim()}function jr(t){return !t||t.length===0||t.length>200?false:/^[a-z0-9가-힣ぁ-んァ-ン一-龯_.~-]+$/.test(t)}function Ct(t){return t.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9가-힣ぁ-んァ-ン一-龯_.~-]/g,"").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}var pa={pageTitle:"\uC0C8 \uAE00 \uC791\uC131",editTitle:"\uAE00 \uC218\uC815",preview:"\uBBF8\uB9AC\uBCF4\uAE30",editMode:"\uD3B8\uC9D1",basicInfo:"\uAE30\uBCF8 \uC815\uBCF4",slug:"\uC2AC\uB7EC\uADF8",slugPrefix:"/blog/",tags:"\uD0DC\uADF8",tagsPlaceholder:"\uAC1C\uBC1C, \uC77C\uC0C1, \uC5C5\uB370\uC774\uD2B8",coverImage:"\uCEE4\uBC84 \uC774\uBBF8\uC9C0 URL",coverImagePlaceholder:"https://example.com/image.jpg",publishDate:"\uBC1C\uD589 \uC608\uC57D\uC77C\uC2DC",publishDateHint:"\uBE44\uC6CC\uB450\uBA74 \uC989\uC2DC \uBC1C\uD589\uB428",expiresAt:"\uB9CC\uB8CC \uC77C\uC2DC",expiresAtHint:"\uBE44\uC6CC\uB450\uBA74 \uB9CC\uB8CC\uB418\uC9C0 \uC54A\uC74C",titleLabel:"\uC81C\uBAA9",titlePlaceholder:"\uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694",excerpt:"\uC694\uC57D",excerptPlaceholder:"\uCE74\uB4DC\uC5D0 \uD45C\uC2DC\uB420 \uC9E7\uC740 \uC694\uC57D",contentLabel:"\uBCF8\uBB38",contentPlaceholder:"\uB9C8\uD06C\uB2E4\uC6B4\uC73C\uB85C \uC791\uC131\uD558\uC138\uC694...",cancel:"\uCDE8\uC18C",saveDraft:"\uC784\uC2DC\uC800\uC7A5",publish:"\uBC1C\uD589",update:"\uC218\uC815 \uC644\uB8CC",saving:"\uC800\uC7A5 \uC911...",translateHint:"AI \uBC88\uC5ED \uAE30\uB2A5",translateButton:"AI \uBC88\uC5ED",translating:"\uBC88\uC5ED \uC911...",translateSuccess:"\uBC88\uC5ED \uC644\uB8CC!",requiredFields:"\uD544\uC218 \uD544\uB4DC\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694",saveError:"\uC800\uC7A5 \uC911 \uC624\uB958 \uBC1C\uC0DD",translateError:"\uBC88\uC5ED \uC911 \uC624\uB958 \uBC1C\uC0DD",noTitle:"\uC81C\uBAA9 \uC5C6\uC74C",bold:"\uAD75\uAC8C",italic:"\uAE30\uC6B8\uC784",strikethrough:"\uCDE8\uC18C\uC120",heading:"\uC81C\uBAA9",link:"\uB9C1\uD06C",image:"\uC774\uBBF8\uC9C0",code:"\uCF54\uB4DC",codeBlock:"\uCF54\uB4DC\uBE14\uB85D",quote:"\uC778\uC6A9\uBB38",list:"\uBAA9\uB85D",orderedList:"\uC21C\uC11C \uBAA9\uB85D",horizontalRule:"\uC218\uD3C9\uC120"},ga={enableSlug:true,enableTags:true,enableCoverImage:true,enablePublishDate:true,enableExcerpt:true,enableTranslation:true,enablePreview:true,enableMarkdownToolbar:true,enableAutoSave:true,enableExpiresAt:false},fa=[{key:"ko",label:"\uD55C\uAD6D\uC5B4",isPrimary:true,flag:"\u{1F1F0}\u{1F1F7}"},{key:"en",label:"English",flag:"\u{1F1FA}\u{1F1F8}"},{key:"ja",label:"\u65E5\u672C\u8A9E",flag:"\u{1F1EF}\u{1F1F5}"}];function tr(t){let e={};return t.forEach(r=>{e[r.key]="";}),e}function ba(t,e){var r,o,n,s,c,b,g,l;return {slug:(r=e==null?void 0:e.slug)!=null?r:"",title:(o=e==null?void 0:e.title)!=null?o:tr(t),excerpt:(n=e==null?void 0:e.excerpt)!=null?n:tr(t),content:(s=e==null?void 0:e.content)!=null?s:tr(t),tags:(c=e==null?void 0:e.tags)!=null?c:[],coverImage:(b=e==null?void 0:e.coverImage)!=null?b:"",publishedAt:(g=e==null?void 0:e.publishedAt)!=null?g:null,expiresAt:(l=e==null?void 0:e.expiresAt)!=null?l:null}}var Yr=le.createContext(null);function Z(){let t=le.useContext(Yr);if(!t)throw new Error("useBlogEditor must be used within a BlogEditorProvider");return t}function Tt({children:t,initialData:e,isEditMode:r=false,languages:o=fa,defaultLanguage:n,labels:s,callbacks:c,features:b,variant:g="default",autoSaveKey:l,autoSaveInterval:x=3e3}){var et,xt,vt,I;let d=(I=(vt=(et=o.find(E=>E.isPrimary))==null?void 0:et.key)!=null?vt:(xt=o[0])==null?void 0:xt.key)!=null?I:"ko",m=n!=null?n:d,v=le.useMemo(()=>({...pa,...s}),[s]),u=le.useMemo(()=>({...ga,...b}),[b]),[a,h]=le.useState(()=>ba(o,e)),[p,C]=le.useState(m),[f,y]=le.useState(false),[T,w]=le.useState(false),[N,B]=le.useState(false),[R,L]=le.useState(false),[k,S]=le.useState(null),[U,O]=le.useState(false),[F,Q]=le.useState(r||!!(e!=null&&e.slug)),[K,$]=le.useState("idle"),q=le.useRef(null),V=le.useRef(true),Y=l||(r?null:"blog-editor-draft");le.useEffect(()=>{if(!(!u.enableAutoSave||!Y||r))try{let E=localStorage.getItem(Y);if(E){let A=JSON.parse(E);h(A);}}catch{}},[]),le.useEffect(()=>{if(!(!u.enableAutoSave||!Y)){if(V.current){V.current=false;return}return q.current&&clearTimeout(q.current),$("saving"),q.current=setTimeout(()=>{try{localStorage.setItem(Y,JSON.stringify(a)),$("saved"),setTimeout(()=>$("idle"),2e3);}catch{$("idle");}},x),()=>{q.current&&clearTimeout(q.current);}}},[a,u.enableAutoSave,Y,x]);let de=le.useCallback(()=>{if(Y)try{localStorage.removeItem(Y);}catch{}},[Y]),Le=le.useCallback((E,A)=>{h(G=>({...G,[E]:A}));},[]),gt=le.useCallback((E,A,G)=>{h(te=>({...te,[E]:{...te[E],[A]:G}}));},[]),$t=le.useCallback(E=>kt(E),[]),zt=le.useCallback(async E=>{let A=a.title[d],G=a.content[d];if(!A||!G){S(v.requiredFields);return}if(u.enableSlug&&!a.slug){S(v.requiredFields);return}w(true),S(null);try{await c.onSave(a,E),de();}catch{S(v.saveError);}finally{w(false);}},[a,d,v,u,c,de]),ft=le.useCallback(async()=>{if(!c.onTranslate)return;let E=a.title[d],A=a.content[d],G=a.excerpt[d];if(!E||!A){S(v.requiredFields);return}B(true),S(null),O(false);try{let te=await c.onTranslate({sourceLanguage:d,title:E,content:A,excerpt:G||void 0});h(ue=>{let se={...ue.title},be={...ue.content},yr={...ue.excerpt};return Object.keys(te).forEach(tt=>{if(tt!==d){let Ft=te[tt];if(typeof Ft=="object"&&Ft!==null){let He=Ft;He.title&&(se[tt]=He.title),He.content&&(be[tt]=He.content),He.excerpt&&(yr[tt]=He.excerpt);}}}),{...ue,title:se,content:be,excerpt:yr}}),O(!0),setTimeout(()=>O(!1),3e3);}catch{S(v.translateError);}finally{B(false);}},[a,d,v,c]),bt=le.useCallback(async E=>{if(!c.onUploadImage)return null;L(true),S(null);try{return await c.onUploadImage(E)}catch{return S("\uC774\uBBF8\uC9C0 \uC5C5\uB85C\uB4DC \uC2E4\uD328"),null}finally{L(false);}},[c]),ht=le.useCallback(()=>{var E;(E=c.onCancel)==null||E.call(c);},[c]),Ot=le.useMemo(()=>({formData:a,activeLanguage:p,showPreview:f,submitting:T,translating:N,uploading:R,error:k,translateSuccess:U,autoSaveStatus:K,languages:o,features:u,labels:v,variant:g,isEditMode:r,setActiveLanguage:C,setShowPreview:y,updateField:Le,updateMultilingualField:gt,handleSave:zt,handleTranslate:ft,handleUploadImage:bt,handleCancel:ht,setError:S,generateSlug:$t,slugManuallyEdited:F,setSlugManuallyEdited:Q}),[a,p,f,T,N,R,k,U,K,o,u,v,g,r,Le,gt,zt,ft,bt,ht,$t,F,Q]);return jsxRuntime.jsx(Yr.Provider,{value:Ot,children:t})}var ro={home:ssr.House,arrowLeft:ssr.ArrowLeft,arrowRight:ssr.ArrowRight,arrowUp:ssr.ArrowUp,arrowDown:ssr.ArrowDown,menu:ssr.List,close:ssr.X,search:ssr.MagnifyingGlass,settings:ssr.Gear,externalLink:ssr.ArrowSquareOut,chevronLeft:ssr.CaretLeft,chevronRight:ssr.CaretRight,chevronDown:ssr.CaretDown,chevronUp:ssr.CaretUp,edit:ssr.Pencil,delete:ssr.Trash,add:ssr.Plus,remove:ssr.Minus,download:ssr.Download,upload:ssr.Upload,refresh:ssr.ArrowClockwise,save:ssr.FloppyDisk,copy:ssr.Copy,loader:ssr.SpinnerGap,success:ssr.CheckCircle,error:ssr.XCircle,alertCircle:ssr.WarningCircle,warning:ssr.WarningCircle,info:ssr.Info,check:ssr.Check,circle:ssr.Circle,helpCircle:ssr.Question,user:ssr.User,users:ssr.Users,userPlus:ssr.UserPlus,logIn:ssr.SignIn,logOut:ssr.SignOut,eye:ssr.Eye,eyeOff:ssr.EyeSlash,chart:ssr.ChartBar,barChart:ssr.ChartBar,trendingUp:ssr.TrendUp,activity:ssr.Pulse,database:ssr.Database,zap:ssr.Lightning,fileText:ssr.FileText,file:ssr.File,folder:ssr.Folder,book:ssr.Book,bookOpen:ssr.BookOpen,mail:ssr.Envelope,message:ssr.ChatCircle,phone:ssr.Phone,image:ssr.Image,video:ssr.Video,camera:ssr.Camera,smile:ssr.Smiley,frown:ssr.SmileySad,meh:ssr.SmileyMeh,lock:ssr.Lock,unlock:ssr.LockOpen,shield:ssr.Shield,wallet:ssr.Wallet,key:ssr.Key,clock:ssr.Clock,calendar:ssr.Calendar,calendarPlus:ssr.CalendarPlus,bell:ssr.Bell,heart:ssr.Heart,star:ssr.Star,bookmark:ssr.Bookmark,share:ssr.Share,monitor:ssr.Monitor,sun:ssr.Sun,moon:ssr.Moon,lightbulb:ssr.Lightbulb,brain:ssr.Brain,flag:ssr.Flag,square:ssr.Square,sparkle:ssr.Sparkle,sparkles:ssr.Sparkle,globe:ssr.Globe,smartphone:ssr.DeviceMobile,deviceMobile:ssr.DeviceMobile,floppyDisk:ssr.FloppyDisk,ticket:ssr.Ticket,clipboard:ssr.Clipboard,wifi:ssr.WifiHigh,wifiOff:ssr.WifiSlash,cpu:ssr.Cpu,mask:ssr.MaskHappy,bold:ssr.TextB,italic:ssr.TextItalic,strikethrough:ssr.TextStrikethrough,heading:ssr.TextHOne,link:ssr.Link,code:ssr.Code,fileCode:ssr.FileCode,quote:ssr.Quotes,list:ssr.List,listOrdered:ssr.ListNumbers,minus:ssr.Minus},oo={happy:"smile",sad:"frown",neutral:"meh",excited:"smile",angry:"frown",love:"heart",like:"heart",dislike:"frown"},no={loading:"loader",success:"success",error:"error",warning:"warning",info:"info",locked:"lock",unlocked:"unlock",visible:"eye",hidden:"eyeOff"};function ao(t){return !t||!/[-_]/.test(t)&&/^[a-z]/.test(t)?t:/^[A-Z]+$/.test(t)?t.toLowerCase():/^[A-Z]/.test(t)&&!/[-_]/.test(t)?t.charAt(0).toLowerCase()+t.slice(1):t.split(/[-_]/).map((e,r)=>r===0?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")}var J=null,ee=null;var so={home:{lucide:"Home",phosphor:"House",iconsax:"Home2"},"layout-dashboard":{lucide:"LayoutDashboard",phosphor:"SquaresFour"},folder:{lucide:"Folder",phosphor:"Folder",iconsax:"Folder"},"alert-circle":{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},alertCircle:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},columns:{lucide:"Columns",phosphor:"Columns"},users:{lucide:"Users",phosphor:"Users",iconsax:"People"},settings:{lucide:"Settings",phosphor:"Gear"},menu:{lucide:"Menu",phosphor:"List",iconsax:"Menu"},close:{lucide:"X",phosphor:"X",iconsax:"CloseCircle"},chevronLeft:{lucide:"ChevronLeft",phosphor:"CaretLeft",iconsax:"ArrowLeft2"},chevronRight:{lucide:"ChevronRight",phosphor:"CaretRight",iconsax:"ArrowRight2"},chevronDown:{lucide:"ChevronDown",phosphor:"CaretDown",iconsax:"ArrowDown2"},chevronUp:{lucide:"ChevronUp",phosphor:"CaretUp",iconsax:"ArrowUp2"},arrowLeft:{lucide:"ArrowLeft",phosphor:"ArrowLeft",iconsax:"ArrowLeft"},arrowRight:{lucide:"ArrowRight",phosphor:"ArrowRight",iconsax:"ArrowRight"},arrowUp:{lucide:"ArrowUp",phosphor:"ArrowUp",iconsax:"ArrowUp"},arrowDown:{lucide:"ArrowDown",phosphor:"ArrowDown",iconsax:"ArrowDown"},add:{lucide:"Plus",phosphor:"Plus",iconsax:"Add"},edit:{lucide:"Edit",phosphor:"Pencil"},pencil:{lucide:"Pencil",phosphor:"Pencil"},delete:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},trash:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},upload:{lucide:"Upload",phosphor:"Upload",iconsax:"Upload"},download:{lucide:"Download",phosphor:"Download",iconsax:"Download"},x:{lucide:"X",phosphor:"X"},check:{lucide:"Check",phosphor:"Check",iconsax:"Check"},search:{lucide:"Search",phosphor:"MagnifyingGlass",iconsax:"SearchNormal"},share:{lucide:"Share",phosphor:"Share"},copy:{lucide:"Copy",phosphor:"Copy"},save:{lucide:"Save",phosphor:"FloppyDisk"},loader:{lucide:"Loader2",phosphor:"Spinner"},loader2:{lucide:"Loader2",phosphor:"Spinner"},"check-circle":{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},checkCircle:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},success:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},error:{lucide:"XCircle",phosphor:"XCircle",iconsax:"CloseCircle"},warning:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Warning2"},info:{lucide:"Info",phosphor:"Info",iconsax:"InfoCircle"},refresh:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},refreshCw:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},bell:{lucide:"Bell",phosphor:"Bell",iconsax:"Bell"},heart:{lucide:"Heart",phosphor:"Heart",iconsax:"Heart"},star:{lucide:"Star",phosphor:"Star",iconsax:"Star"},bookmark:{lucide:"Bookmark",phosphor:"Bookmark"},user:{lucide:"User",phosphor:"User",iconsax:"User"},userPlus:{lucide:"UserPlus",phosphor:"UserPlus",iconsax:"UserAdd"},logIn:{lucide:"LogIn",phosphor:"SignIn",iconsax:"Login"},logOut:{lucide:"LogOut",phosphor:"SignOut",iconsax:"Logout"},chrome:{lucide:"Chrome",phosphor:"ChromeLogo",iconsax:"Chrome"},github:{lucide:"Github",phosphor:"GithubLogo"},message:{lucide:"MessageCircle",phosphor:"ChatCircle"},messageSquare:{lucide:"MessageSquare",phosphor:"ChatSquare"},"message-square":{lucide:"MessageSquare",phosphor:"ChatSquare"},inbox:{lucide:"Inbox",phosphor:"Inbox"},calendar:{lucide:"Calendar",phosphor:"Calendar"},calendarPlus:{lucide:"CalendarPlus",phosphor:"CalendarPlus"},checkSquare:{lucide:"CheckSquare",phosphor:"CheckSquare",iconsax:"TickSquare"},clock:{lucide:"Clock",phosphor:"Clock"},book:{lucide:"Book",phosphor:"Book",iconsax:"Book"},bookOpen:{lucide:"BookOpen",phosphor:"BookOpen",iconsax:"Book"},monitor:{lucide:"Monitor",phosphor:"Monitor",iconsax:"Monitor"},sun:{lucide:"Sun",phosphor:"Sun",iconsax:"Sun"},moon:{lucide:"Moon",phosphor:"Moon",iconsax:"Moon"},sparkle:{lucide:"Sparkle",phosphor:"Sparkle"},sparkles:{lucide:"Sparkles",phosphor:"Sparkle"},lightbulb:{lucide:"Lightbulb",phosphor:"Lightbulb"},brain:{lucide:"Brain",phosphor:"Brain"},zap:{lucide:"Zap",phosphor:"Lightning"},globe:{lucide:"Globe",phosphor:"Globe",iconsax:"Global"},deviceMobile:{lucide:"Smartphone",phosphor:"DeviceMobile"},smartphone:{lucide:"Smartphone",phosphor:"DeviceMobile"},floppyDisk:{lucide:"Save",phosphor:"FloppyDisk"},chart:{lucide:"BarChart3",phosphor:"ChartBar"},barChart:{lucide:"BarChart",phosphor:"ChartBar"},trendingUp:{lucide:"TrendingUp",phosphor:"TrendUp"},trendingDown:{lucide:"TrendingDown",phosphor:"TrendDown"},activity:{lucide:"Activity",phosphor:"Pulse"},database:{lucide:"Database",phosphor:"Database"},dollarSign:{lucide:"DollarSign",phosphor:"CurrencyDollar"},dollar:{lucide:"DollarSign",phosphor:"CurrencyDollar"},currency:{lucide:"DollarSign",phosphor:"CurrencyDollar"},layers:{lucide:"Layers",phosphor:"Stack"},ban:{lucide:"Ban",phosphor:"Prohibit"},lock:{lucide:"Lock",phosphor:"Lock",iconsax:"Lock"},unlock:{lucide:"Unlock",phosphor:"LockOpen",iconsax:"Unlock"},shield:{lucide:"Shield",phosphor:"Shield",iconsax:"Shield"},key:{lucide:"Key",phosphor:"Key"},play:{lucide:"Play",phosphor:"Play",iconsax:"Play"},pause:{lucide:"Pause",phosphor:"Pause",iconsax:"Pause"},image:{lucide:"Image",phosphor:"Image",iconsax:"Image"},video:{lucide:"Video",phosphor:"Video",iconsax:"Video"},camera:{lucide:"Camera",phosphor:"Camera",iconsax:"Camera"},fileText:{lucide:"FileText",phosphor:"FileText"},file:{lucide:"File",phosphor:"File"},externalLink:{lucide:"ExternalLink",phosphor:"ArrowSquareOut"},link:{lucide:"Link",phosphor:"Link",iconsax:"Link"},moreHorizontal:{lucide:"MoreHorizontal",phosphor:"DotsThreeOutline"},moreVertical:{lucide:"MoreVertical",phosphor:"DotsThreeVertical"},remove:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"},eye:{lucide:"Eye",phosphor:"Eye",iconsax:"Eye"},eyeOff:{lucide:"EyeOff",phosphor:"EyeSlash",iconsax:"EyeSlash"},smile:{lucide:"Smile",phosphor:"Smiley",iconsax:"EmojiHappy"},frown:{lucide:"Frown",phosphor:"SmileySad",iconsax:"EmojiSad"},meh:{lucide:"Meh",phosphor:"SmileyMeh",iconsax:"EmojiNormal"},mail:{lucide:"Mail",phosphor:"Envelope"},phone:{lucide:"Phone",phosphor:"Phone"},flag:{lucide:"Flag",phosphor:"Flag",iconsax:"Flag"},rocket:{lucide:"Rocket",phosphor:"Rocket",iconsax:"Rocket"},ticket:{lucide:"Ticket",phosphor:"Ticket",iconsax:"Ticket"},clipboard:{lucide:"ClipboardList",phosphor:"Clipboard",iconsax:"Sticker"},wifi:{lucide:"Wifi",phosphor:"WifiHigh",iconsax:"Wifi"},wifiOff:{lucide:"WifiOff",phosphor:"WifiSlash"},cpu:{lucide:"Cpu",phosphor:"Cpu",iconsax:"Computing"},mask:{lucide:"Drama",phosphor:"MaskHappy",iconsax:"EmojiHappy"},bold:{lucide:"Bold",phosphor:"TextB"},italic:{lucide:"Italic",phosphor:"TextItalic"},strikethrough:{lucide:"Strikethrough",phosphor:"TextStrikethrough"},heading:{lucide:"Heading",phosphor:"TextHOne"},code:{lucide:"Code",phosphor:"Code",iconsax:"Code"},fileCode:{lucide:"FileCode",phosphor:"FileCode"},quote:{lucide:"Quote",phosphor:"Quotes",iconsax:"QuoteUp"},list:{lucide:"List",phosphor:"List"},listOrdered:{lucide:"ListOrdered",phosphor:"ListNumbers"},minus:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"}};async function io(){if(typeof window=="undefined")return null;if(!J)try{J=await import('@phosphor-icons/react');}catch{return console.warn("Phosphor Icons not available. Install @phosphor-icons/react to use."),null}return J}async function lo(){if(typeof window=="undefined")return null;if(!ee)try{ee=await import('lucide-react');}catch{return console.warn("Lucide Icons not available. Install lucide-react to use lucide provider."),null}return ee}function Et(t,e="phosphor"){let r=so[t];if(!r)return ei(t,e);let o=r[e];switch(e){case "phosphor":return !o||!J?null:(J==null?void 0:J[o])||null;case "lucide":return !o||!ee?null:(ee==null?void 0:ee[o])||null;case "iconsax":{return null;}default:return null}}function ei(t,e){switch(e){case "phosphor":{if(!J)return null;let r=t.charAt(0).toUpperCase()+t.slice(1),o=t.split(/(?=[A-Z])/).map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("");return (J==null?void 0:J[r])||(J==null?void 0:J[o])||(J==null?void 0:J[t])||null}case "lucide":{if(!ee)return null;let r=t.charAt(0).toUpperCase()+t.slice(1),o=t.replace(/([A-Z])/g,n=>n===t[0]?n.toLowerCase():n);return (ee==null?void 0:ee[r])||(ee==null?void 0:ee[t])||(ee==null?void 0:ee[o])||null}case "iconsax":{return null;}default:return null}}function co(t,e){let r=so[t];if(r){let o=r[e];if(o)return o}return t}var or={"arrow-left":"arrowLeft","arrow-right":"arrowRight","arrow-up":"arrowUp","arrow-down":"arrowDown","chevron-left":"chevronLeft","chevron-right":"chevronRight","chevron-up":"chevronUp","chevron-down":"chevronDown","external-link":"externalLink","more-horizontal":"moreHorizontal","more-vertical":"moreVertical","user-plus":"userPlus","log-in":"logIn","log-out":"logOut","check-circle":"checkCircle","check-square":"checkSquare","alert-circle":"alertCircle","eye-off":"eyeOff","file-text":"fileText","book-open":"bookOpen","bar-chart":"barChart","trending-up":"trendingUp","trending-down":"trendingDown","message-square":"messageSquare","calendar-plus":"calendarPlus","refresh-cw":"refreshCw","dollar-sign":"dollarSign","layout-dashboard":"layoutDashboard","device-mobile":"deviceMobile","floppy-disk":"floppyDisk",back:"arrowLeft",prev:"arrowLeft",previous:"arrowLeft",forward:"arrowRight",next:"arrowRight",close:"x",cancel:"x",remove:"delete",trash:"delete",plus:"add",new:"add",pencil:"edit",modify:"edit",store:"save",floppy:"save",magnify:"search",person:"user",account:"user",profile:"user",gear:"settings",config:"settings",preferences:"settings",house:"home",main:"home",done:"check",complete:"check",tick:"check",information:"info",help:"info",alert:"warning",caution:"warning",checkmark:"success",checkCircle:"success",fail:"error",cross:"error",xCircle:"error",spinner:"loader",loading:"loader",wait:"loader",reload:"refresh",update:"refresh",sync:"refresh",show:"eye",view:"eye",hide:"eyeOff",hidden:"eyeOff",secure:"lock",locked:"lock",unsecure:"unlock",unlocked:"unlock",get:"download",fetch:"download",post:"upload",send:"share",export:"share",duplicate:"copy",clone:"copy",email:"mail",envelope:"mail",chat:"message",comment:"message",talk:"message",date:"calendar",schedule:"calendar",time:"clock",watch:"clock",document:"fileText",doc:"fileText",text:"fileText",directory:"folder",dir:"folder",picture:"image",img:"image",movie:"video",film:"video",photo:"camera",capture:"camera",start:"play",run:"play",stop:"pause",halt:"pause",like:"heart",love:"heart",favorite:"star",saveBookmark:"bookmark",notification:"bell",notify:"bell",alarm:"bell",prefs:"settings",lookup:"search",dots:"moreHorizontal",moreMenu:"moreHorizontal",moreOptions:"moreVertical",external:"externalLink",outbound:"externalLink",open:"externalLink",url:"link",hyperlink:"link",graph:"barChart",stats:"barChart",analytics:"barChart",db:"database",storage:"database",pulse:"activity",monitor:"activity",up:"trendingUp",down:"trendingDown",lightning:"zap",bolt:"zap",flash:"zap",security:"shield",protect:"shield",password:"key",secret:"key",signin:"logIn",login:"logIn",enter:"logIn",signout:"logOut",logout:"logOut",exit:"logOut",people:"users",group:"users",team:"users",addUser:"userPlus",invite:"userPlus",read:"book",library:"book",reading:"bookOpen",openBook:"bookOpen",light:"sun",day:"sun",dark:"moon",night:"moon",screen:"monitor",display:"monitor",ai:"brain",intelligence:"brain",think:"brain",idea:"lightbulb",bulb:"lightbulb",inspiration:"lightbulb",magic:"sparkles",stars:"sparkles",glitter:"sparkles"};function uo(t){if(!t||typeof t!="string")return {normalized:t||"",wasAlias:false};let e=ao(t),r=or[t]||or[e];return r?{normalized:r,wasAlias:true,originalAlias:t}:{normalized:e,wasAlias:false}}var mo={set:"lucide",weight:"regular",size:20,color:"currentColor",strokeWidth:1.25,iconsaxVariant:"line"};var oi=le.createContext(mo);function po(){return le.useContext(oi)}var go=le__default.default.forwardRef(({name:t,size:e,className:r,emotion:o,status:n,provider:s,weight:c,animated:b=false,pulse:g=false,spin:l=false,bounce:x=false,variant:d="default","aria-label":m,"aria-hidden":v},u)=>{var $,q;let a=po(),h=s||a.set,p=e!=null?e:a.size,C=c||a.weight,f=a.color,y=($=a.strokeWidth)!=null?$:1.25,T=(q=a.iconsaxVariant)!=null?q:"line",[w,N]=le__default.default.useState(false),[B,R]=le__default.default.useState(false);le__default.default.useEffect(()=>{N(true),h==="lucide"?lo().then(()=>R(true)):h==="phosphor"?io().then(()=>R(true)):R(true);},[h]);let L=le__default.default.useMemo(()=>{let V=o?oo[o]:n?no[n]:t,{normalized:Y}=uo(V),de=co(Y,h);return {normalized:Y,providerName:de}},[t,o,n,h]),k=L.normalized,S=le__default.default.useMemo(()=>{return null},[h,L.providerName,w,T]),U=Vt({"text-current":d==="default","text-primary":d==="primary","text-muted-foreground":d==="secondary"||d==="muted","text-green-600 dark:text-green-400":d==="success","text-yellow-600 dark:text-yellow-400":d==="warning","text-destructive":d==="error"});if(!w)return jsxRuntime.jsx("span",{style:{width:p,height:p},className:i(U,r),"aria-hidden":v!==void 0?v:true,"aria-label":m});let O=null;if(h==="phosphor"?(O=ro[k]||null,!O&&B&&(O=Et(k,h))):h==="iconsax"?(O=S,O||(O=Et(k,h))):O=Et(k,h),!O)return h==="iconsax"&&true?process.env.NODE_ENV==="development"&&console.warn(`Icon "${k}" \u2014 iconsax resolver not registered. Use HuaProvider with icons.set='iconsax', or add: import '@hua-labs/ui/iconsax'`):console.warn(`Icon "${k}" not found for provider "${h}"`),jsxRuntime.jsx("span",{ref:u,className:i("inline-flex items-center justify-center rounded-full border-2 border-dashed border-border",U,r),style:{width:p,height:p},"aria-label":m||`\uC544\uC774\uCF58\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC74C: ${k}`,title:`Icon not found: ${k}`,children:jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground","aria-hidden":"true",children:"?"})});let F={size:typeof p=="number"?p:void 0,width:p,height:p,color:f};h==="phosphor"?F.weight=C:F.strokeWidth=y;let Q=Vt({"animate-pulse":g,"animate-spin":l,"animate-bounce":x,"transition-all duration-200 ease-in-out":b}),K={};return m?(K["aria-label"]=m,K["aria-hidden"]=false):v!==void 0?K["aria-hidden"]=v:K["aria-hidden"]=true,jsxRuntime.jsx("span",{ref:u,className:i("inline-flex items-center justify-center",Q,U,r),style:{width:p,height:p},...K,children:O&&le__default.default.createElement(O,{...F,className:U,"aria-hidden":true})})});go.displayName="Icon";var ni=le__default.default.memo(go,(t,e)=>t.name===e.name&&t.size===e.size&&t.className===e.className&&t.emotion===e.emotion&&t.status===e.status&&t.provider===e.provider&&t.animated===e.animated&&t.pulse===e.pulse&&t.spin===e.spin&&t.bounce===e.bounce&&t.variant===e.variant&&t.weight===e.weight&&t["aria-label"]===e["aria-label"]&&t["aria-hidden"]===e["aria-hidden"]),M=ni;M.displayName="Icon";var fo=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(M,{ref:e,name:"smile",...t}));fo.displayName="EmotionIcon";var bo=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(M,{ref:e,name:"info",...t}));bo.displayName="StatusIcon";var ho=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(M,{ref:e,name:"loader",status:"loading",spin:true,"aria-label":"\uB85C\uB529 \uC911",...t}));ho.displayName="LoadingIcon";var xo=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(M,{ref:e,name:"check",status:"success",variant:"success","aria-label":"\uC131\uACF5",...t}));xo.displayName="SuccessIcon";var vo=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(M,{ref:e,name:"alertCircle",status:"error",variant:"error","aria-label":"\uC624\uB958",...t}));vo.displayName="ErrorIcon";var $e=le__default.default.forwardRef(({onBack:t,backLink:e,className:r},o)=>{let{labels:n,isEditMode:s,formData:c}=Z();return jsxRuntime.jsx("header",{ref:o,className:i("flex items-center justify-between mb-8",r),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[e||t&&jsxRuntime.jsx("button",{type:"button",onClick:t,className:"p-2 text-muted-foreground hover:text-foreground transition-colors","aria-label":"\uB4A4\uB85C\uAC00\uAE30",children:jsxRuntime.jsx(M,{name:"chevronLeft",size:24})}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("h1",{className:"text-2xl font-bold text-foreground",children:s?n.editTitle:n.pageTitle}),s&&c.slug&&jsxRuntime.jsxs("p",{className:"text-sm text-muted-foreground",children:[n.slugPrefix,c.slug]})]})]})})});$e.displayName="BlogEditorHeader";var ze=le__default.default.forwardRef(({className:t},e)=>{var y,T;let{formData:r,updateField:o,features:n,labels:s,variant:c,handleUploadImage:b,uploading:g,setSlugManuallyEdited:l}=Z(),[x,d]=le.useState(""),m=le.useRef(null),v=i("rounded-xl p-6 space-y-4",c==="glass"?"bg-white/10 backdrop-blur-sm border border-white/20 dark:bg-background/20 dark:border-border/50":c==="minimal"?"bg-transparent":"bg-background",t),u="w-full px-3 py-2 border border-border rounded-lg bg-background text-foreground focus:ring-1 focus:ring-ring focus:border-transparent transition-colors",a="block text-sm font-medium text-foreground mb-1",h=le.useCallback(w=>{let N=w.trim();N&&!r.tags.includes(N)&&o("tags",[...r.tags,N]),d("");},[r.tags,o]),p=le.useCallback(w=>{o("tags",r.tags.filter(N=>N!==w));},[r.tags,o]),C=le.useCallback(w=>{let N=w.target.value;if(N.includes(",")){let B=N.split(",");B.forEach((R,L)=>{L<B.length-1?h(R):d(R);});}else d(N);},[h]),f=le.useCallback(w=>{w.key==="Enter"?(w.preventDefault(),h(x)):w.key==="Backspace"&&!x&&r.tags.length>0&&p(r.tags[r.tags.length-1]);},[x,r.tags,h,p]);return jsxRuntime.jsxs("div",{ref:e,className:v,children:[jsxRuntime.jsx("h2",{className:"font-semibold text-foreground",children:s.basicInfo}),jsxRuntime.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.enableSlug&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("label",{className:a,children:[s.slug," *"]}),jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsx("span",{className:"text-muted-foreground mr-1 text-sm",children:s.slugPrefix}),jsxRuntime.jsx("input",{type:"text",value:r.slug,onChange:w=>{o("slug",Ct(w.target.value)),l(true);},className:i(u,"flex-1"),placeholder:"my-post-slug"})]})]}),n.enableTags&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:a,children:s.tags}),jsxRuntime.jsxs("div",{className:i("flex flex-wrap items-center gap-2 min-h-[42px] px-3 py-2 border border-border rounded-lg bg-background focus-within:ring-1 focus-within:ring-ring focus-within:border-transparent transition-colors"),children:[r.tags.map(w=>jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 bg-primary/10 text-primary text-sm rounded-md",children:[w,jsxRuntime.jsx("button",{type:"button",onClick:()=>p(w),className:"hover:text-primary transition-colors","aria-label":`${w} \uD0DC\uADF8 \uC0AD\uC81C`,children:jsxRuntime.jsx(M,{name:"x",size:14})})]},w)),jsxRuntime.jsx("input",{type:"text",value:x,onChange:C,onKeyDown:f,className:"flex-1 min-w-[100px] bg-transparent outline-none text-foreground text-sm",placeholder:r.tags.length===0?s.tagsPlaceholder:"\uD0DC\uADF8 \uCD94\uAC00..."})]}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"\uC27C\uD45C(,) \uB610\uB294 Enter\uB85C \uD0DC\uADF8 \uCD94\uAC00"})]})]}),n.enableCoverImage&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:a,children:s.coverImage}),jsxRuntime.jsxs("div",{className:"space-y-3",children:[r.coverImage&&jsxRuntime.jsxs("div",{className:"relative w-full h-40 rounded-lg overflow-hidden bg-muted",children:[jsxRuntime.jsx("img",{src:r.coverImage,alt:"\uCEE4\uBC84 \uC774\uBBF8\uC9C0 \uBBF8\uB9AC\uBCF4\uAE30",className:"w-full h-full object-cover"}),jsxRuntime.jsx("button",{type:"button",onClick:()=>o("coverImage",""),className:"absolute top-2 right-2 p-1.5 bg-red-500 text-white rounded-full hover:bg-red-600 transition-colors","aria-label":"\uC774\uBBF8\uC9C0 \uC0AD\uC81C",children:jsxRuntime.jsx(M,{name:"x",size:14})})]}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx("input",{type:"text",value:r.coverImage,onChange:w=>o("coverImage",w.target.value),className:i(u,"flex-1"),placeholder:s.coverImagePlaceholder}),jsxRuntime.jsx("input",{ref:m,type:"file",accept:"image/*",className:"hidden",onChange:async w=>{var B;let N=(B=w.target.files)==null?void 0:B[0];if(N){let R=await b(N);R&&o("coverImage",R);}w.target.value="";}}),jsxRuntime.jsx("button",{type:"button",onClick:()=>{var w;return (w=m.current)==null?void 0:w.click()},disabled:g,className:"px-3 py-2 border border-border rounded-lg hover:bg-muted disabled:opacity-50 disabled:cursor-not-allowed transition-colors",title:"\uC774\uBBF8\uC9C0 \uC5C5\uB85C\uB4DC",children:g?jsxRuntime.jsx(M,{name:"loader",size:20,spin:true}):jsxRuntime.jsx(M,{name:"upload",size:20})})]})]})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.enablePublishDate&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:a,children:s.publishDate}),jsxRuntime.jsx("input",{type:"datetime-local",value:(y=r.publishedAt)!=null?y:"",onChange:w=>o("publishedAt",w.target.value||null),className:u}),jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:s.publishDateHint})]}),n.enableExpiresAt&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:a,children:s.expiresAt}),jsxRuntime.jsx("input",{type:"datetime-local",value:(T=r.expiresAt)!=null?T:"",onChange:w=>o("expiresAt",w.target.value||null),className:u}),jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:s.expiresAtHint})]})]})]})});ze.displayName="BlogEditorMetadata";var Oe=le__default.default.forwardRef(({className:t},e)=>{let{languages:r,activeLanguage:o,setActiveLanguage:n,showPreview:s,setShowPreview:c,features:b,labels:g}=Z();return jsxRuntime.jsxs("div",{ref:e,className:i("flex items-center border-b border-border sticky top-0 z-10 bg-background",t),role:"tablist","aria-label":"\uC5B8\uC5B4 \uC120\uD0DD",children:[jsxRuntime.jsx("div",{className:"flex flex-1",children:r.map(l=>{let x=o===l.key,d=l.isPrimary;return jsxRuntime.jsxs("button",{type:"button",role:"tab","aria-selected":x,"aria-controls":`tabpanel-${l.key}`,id:`tab-${l.key}`,onClick:()=>n(l.key),className:i("flex-1 px-4 py-3 text-sm font-medium transition-colors",x?"bg-primary/10 text-primary border-b-2 border-primary":"text-muted-foreground hover:bg-muted"),children:[l.flag&&jsxRuntime.jsx("span",{className:"mr-1.5",children:l.flag}),l.label,d&&" *"]},l.key)})}),b.enablePreview&&jsxRuntime.jsxs("button",{type:"button",onClick:()=>c(!s),className:"inline-flex items-center gap-1.5 px-3 py-2 mx-2 text-sm border border-border rounded-lg hover:bg-muted transition-colors shrink-0",children:[jsxRuntime.jsx(M,{name:s?"pencil":"eye",size:14}),s?g.editMode:g.preview]})]})});Oe.displayName="BlogEditorLanguageTabs";var Fe=le__default.default.forwardRef(({className:t,textareaRef:e},r)=>{var f;let{formData:o,activeLanguage:n,updateMultilingualField:s,updateField:c,features:b,labels:g,languages:l,generateSlug:x,isEditMode:d,slugManuallyEdited:m}=Z(),v=((f=l.find(y=>y.isPrimary))==null?void 0:f.key)===n,u=l.find(y=>y.key===n),a="w-full px-3 py-2 border border-border rounded-lg bg-background text-foreground focus:ring-1 focus:ring-ring focus:border-transparent transition-colors",h="block text-sm font-medium text-foreground mb-1",p=y=>{s("title",n,y),n==="en"&&!d&&!m&&c("slug",x(y));},C=y=>v?`${y} *`:`${y} (${(u==null?void 0:u.label)||n})`;return jsxRuntime.jsxs("div",{ref:r,className:i("p-6 space-y-4",t),children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:h,children:C(g.titleLabel)}),jsxRuntime.jsx("input",{type:"text",value:o.title[n]||"",onChange:y=>p(y.target.value),className:a,placeholder:g.titlePlaceholder})]}),b.enableExcerpt&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:h,children:C(g.excerpt)}),jsxRuntime.jsx("textarea",{value:o.excerpt[n]||"",onChange:y=>s("excerpt",n,y.target.value),rows:2,className:i(a,"resize-none"),placeholder:g.excerptPlaceholder})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("label",{className:h,children:[C(g.contentLabel)," (\uB9C8\uD06C\uB2E4\uC6B4)"]}),jsxRuntime.jsx("textarea",{ref:e,value:o.content[n]||"",onChange:y=>s("content",n,y.target.value),rows:15,className:i(a,"font-mono text-sm resize-y min-h-[300px]"),placeholder:g.contentPlaceholder})]})]})});Fe.displayName="BlogEditorContent";function ui(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function Lt(t){if(!t)return "";let e=t;return e=e.replace(/```(\w*)\n?([\s\S]*?)```/g,(r,o,n)=>`<pre class="bg-gray-100 dark:bg-gray-800 rounded-lg p-4 overflow-x-auto my-4"><code class="text-sm">${ui(n.trim())}</code></pre>`),e=e.replace(/`([^`]+)`/g,'<code class="bg-gray-100 dark:bg-gray-700 px-1.5 py-0.5 rounded text-sm">$1</code>'),e=e.replace(/^######\s+(.+)$/gm,'<h6 class="text-base font-semibold mt-4 mb-2">$1</h6>'),e=e.replace(/^#####\s+(.+)$/gm,'<h5 class="text-lg font-semibold mt-4 mb-2">$1</h5>'),e=e.replace(/^####\s+(.+)$/gm,'<h4 class="text-xl font-semibold mt-5 mb-2">$1</h4>'),e=e.replace(/^###\s+(.+)$/gm,'<h3 class="text-2xl font-semibold mt-5 mb-3">$1</h3>'),e=e.replace(/^##\s+(.+)$/gm,'<h2 class="text-2xl font-bold mt-6 mb-3">$1</h2>'),e=e.replace(/^#\s+(.+)$/gm,'<h1 class="text-3xl font-bold mt-6 mb-4">$1</h1>'),e=e.replace(/^---+$/gm,'<hr class="my-6 border-gray-300 dark:border-gray-600" />'),e=e.replace(/^>\s+(.+)$/gm,'<blockquote class="border-l-4 border-gray-300 dark:border-gray-600 pl-4 my-4 italic text-gray-600 dark:text-gray-400">$1</blockquote>'),e=e.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>"),e=e.replace(/\*(.+?)\*/g,"<em>$1</em>"),e=e.replace(/~~(.+?)~~/g,'<del class="text-gray-500">$1</del>'),e=e.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" class="text-cyan-600 hover:text-cyan-700 dark:text-cyan-400 dark:hover:text-cyan-300 underline" target="_blank" rel="noopener noreferrer">$1</a>'),e=e.replace(/^[-*]\s+(.+)$/gm,'<li class="ml-4">$1</li>'),e=e.replace(/(<li[^>]*>.*<\/li>\n?)+/g,r=>`<ul class="list-disc list-inside my-4 space-y-1">${r}</ul>`),e=e.replace(/\n(?!<)/g,`<br />
75
+ )`,transition:p?"opacity 0.1s ease-out":`opacity ${s}ms ease-out`,pointerEvents:"none",opacity:p?1:0};return jsxRuntime.jsx("div",{ref:na(m,c),className:i("relative",e),style:k,onMouseMove:b,onMouseEnter:y,onMouseLeave:T,...x,children:jsxRuntime.jsxs("div",{style:N,className:"relative",children:[t,u&&jsxRuntime.jsx("div",{style:B,"aria-hidden":"true"})]})})});_r.displayName="TiltCard";function na(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e);});}}var jr=le__default.default.forwardRef(({src:t,type:e="native",poster:r,autoPlay:o=true,loop:n=true,muted:s=true,controls:u=false,objectFit:h="cover",overlay:g=true,overlayColor:l="rgba(0, 0, 0, 0.4)",gradient:x=false,gradientDirection:m="bottom",playbackRate:c=1,fadeIn:v=true,children:d,className:a,style:f,...p},w)=>{let b=le.useRef(null),[y,T]=le.useState(false),[k,N]=le.useState(false);le.useEffect(()=>{e==="native"&&b.current&&(b.current.playbackRate=c);},[c,e]);let B=()=>{T(true);},P=()=>{N(true);},L=F=>{let Q=new URLSearchParams({autoplay:o?"1":"0",mute:s?"1":"0",loop:n?"1":"0",controls:u?"1":"0",playlist:F,modestbranding:"1",rel:"0",showinfo:"0",iv_load_policy:"3",disablekb:"1",enablejsapi:"1",playsinline:"1"});return `https://www.youtube.com/embed/${F}?${Q.toString()}`},C=F=>{let Q=new URLSearchParams({autoplay:o?"1":"0",muted:s?"1":"0",loop:n?"1":"0",controls:u?"1":"0",background:"1",quality:"auto",dnt:"1"});return `https://player.vimeo.com/video/${F}?${Q.toString()}`},S=()=>{let F={cover:"object-cover",contain:"object-contain",fill:"object-fill"}[h];switch(e){case "youtube":return jsxRuntime.jsx("iframe",{src:L(t),className:i("absolute inset-0 w-full h-full pointer-events-none","scale-[1.2]"),style:{opacity:y||!v?1:0,transition:v?"opacity 0.8s ease-out":void 0},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:true,onLoad:()=>T(true),title:"YouTube video background"});case "vimeo":return jsxRuntime.jsx("iframe",{src:C(t),className:"absolute inset-0 w-full h-full pointer-events-none",style:{opacity:y||!v?1:0,transition:v?"opacity 0.8s ease-out":void 0},allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:true,onLoad:()=>T(true),title:"Vimeo video background"});default:return jsxRuntime.jsx("video",{ref:b,src:t,poster:r,autoPlay:o,loop:n,muted:s,controls:u,playsInline:true,className:i("absolute inset-0 w-full h-full",F),style:{opacity:k||!v?1:0,transition:v?"opacity 0.8s ease-out":void 0},onLoadedData:B,onPlaying:P})}},U=()=>{if(!x)return null;let F=[];return (m==="top"||m==="both")&&F.push(jsxRuntime.jsx("div",{className:"absolute top-0 left-0 right-0 h-1/3",style:{background:`linear-gradient(to bottom, ${l}, transparent)`},"aria-hidden":"true"},"top")),(m==="bottom"||m==="both")&&F.push(jsxRuntime.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-1/3",style:{background:`linear-gradient(to top, ${l}, transparent)`},"aria-hidden":"true"},"bottom")),jsxRuntime.jsx(jsxRuntime.Fragment,{children:F})},O=a&&/\b(fixed|absolute|sticky)\b/.test(a);return jsxRuntime.jsxs("div",{ref:w,className:i("overflow-hidden",!O&&"relative",a),style:f,...p,children:[r&&v&&!y&&!k&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${r})`},"aria-hidden":"true"}),S(),g&&!x&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backgroundColor:l},"aria-hidden":"true"}),U(),d&&jsxRuntime.jsx("div",{className:"relative z-10 h-full",children:d})]})});jr.displayName="VideoBackground";var Gr=le__default.default.forwardRef(({children:t,autoPlay:e=false,interval:r=5e3,loop:o=true,pauseOnHover:n=true,indicators:s="dots",indicatorPosition:u="bottom",showArrows:h=true,arrowPosition:g="inside",transition:l="slide",transitionDuration:x=500,onSlideChange:m,showPlayPause:c=false,playPausePosition:v="right",className:d,style:a,...f},p)=>{let w=()=>l==="slide"&&o?1:0,[b,y]=le.useState(w),[T,k]=le.useState(!e),[N,B]=le.useState(false),[P,L]=le.useState(false),[C,S]=le.useState(false),[U,O]=le.useState(null),[F,Q]=le.useState(null),K=le.useRef(null),z=le__default.default.Children.count(t),q=ma(),V=le.useCallback(I=>l!=="slide"||!o?I:I===0?z-1:I===z+1?0:I-1,[o,z,l]),Y=le.useCallback(I=>{if(P)return;let E=I;if(o?l!=="slide"&&(I<0?E=z-1:I>=z&&(E=0)):E=Math.max(0,Math.min(I,z-1)),E!==b){L(true),y(E);let A=o&&l==="slide"?E===0?z-1:E===z+1?0:E-1:E;m==null||m(A),setTimeout(()=>L(false),x);}},[b,z,o,P,x,l,m]);le.useEffect(()=>{!o||P||l!=="slide"||(b===0?setTimeout(()=>{S(true),y(z),setTimeout(()=>S(false),50);},x):b===z+1&&setTimeout(()=>{S(true),y(1),setTimeout(()=>S(false),50);},x));},[b,z,o,P,x,l]);let de=le.useCallback(()=>{Y(b+1);},[b,Y]),Le=le.useCallback(()=>{Y(b-1);},[b,Y]),gt=le.useCallback(()=>{B(I=>!I);},[]);le.useCallback(()=>{B(false);},[]);le.useCallback(()=>{B(true);},[]);le.useEffect(()=>{if(!e||T||N||q)return;let I=setInterval(de,r);return ()=>clearInterval(I)},[e,r,T,N,de,q]);let ft=I=>{O(I.targetTouches[0].clientX);},bt=I=>{Q(I.targetTouches[0].clientX);},ht=()=>{if(!U||!F)return;let I=U-F;Math.abs(I)>=50&&(I>0?de():Le()),O(null),Q(null);};le.useEffect(()=>{let I=A=>{A.key==="ArrowLeft"?Le():A.key==="ArrowRight"&&de();},E=K.current;return E==null||E.addEventListener("keydown",I),()=>E==null?void 0:E.removeEventListener("keydown",I)},[de,Le]);let Ft=()=>{let I=q||C?0:x,E=V(b);switch(l){case "fade":return le__default.default.Children.map(t,(A,G)=>jsxRuntime.jsx("div",{className:i("absolute inset-0 w-full h-full",G===E?"z-10":"z-0"),style:{opacity:G===E?1:0,transition:`opacity ${I}ms ease-in-out`},children:A},G));case "scale":return le__default.default.Children.map(t,(A,G)=>jsxRuntime.jsx("div",{className:i("absolute inset-0 w-full h-full",G===E?"z-10":"z-0"),style:{opacity:G===E?1:0,transform:`scale(${G===E?1:.9})`,transition:`opacity ${I}ms ease-in-out, transform ${I}ms ease-in-out`},children:A},G));default:{let A=le__default.default.Children.toArray(t);return (o?[A[A.length-1],...A,A[0]]:A).map((te,ue)=>jsxRuntime.jsx("div",{className:"absolute inset-0 w-full h-full",style:{transform:`translateX(${(ue-b)*100}%)`,transition:C?"none":`transform ${I}ms ease-in-out`},children:te},ue))}}},et=()=>{if(s==="none")return null;let I=u.includes("inside"),E=u.includes("top"),A=V(b),G=i("flex items-center justify-center gap-2",I?i("absolute left-1/2 -translate-x-1/2 z-20",E?"top-4":"bottom-4"):i("mt-4",E&&"order-first mb-4 mt-0")),te=ue=>{Y(o&&l==="slide"?ue+1:ue);};return jsxRuntime.jsx("div",{className:G,role:"tablist",children:Array.from({length:z},(ue,se)=>{let be=se===A;switch(s){case "bars":return jsxRuntime.jsx("button",{onClick:()=>te(se),className:i("h-1 rounded-full transition-all duration-300",be?"w-8 bg-white":"w-4 bg-white/50 hover:bg-white/70"),role:"tab","aria-selected":be,"aria-label":`\uC2AC\uB77C\uC774\uB4DC ${se+1}`},se);case "numbers":return jsxRuntime.jsx("button",{onClick:()=>te(se),className:i("w-8 h-8 rounded-full text-sm font-medium transition-all duration-300",be?"bg-white text-gray-900":"bg-white/30 text-white hover:bg-white/50"),role:"tab","aria-selected":be,"aria-label":`\uC2AC\uB77C\uC774\uB4DC ${se+1}`,children:se+1},se);default:return jsxRuntime.jsx("button",{onClick:()=>te(se),className:i("w-2.5 h-2.5 rounded-full transition-all duration-300",be?"bg-white scale-125":"bg-white/50 hover:bg-white/70"),role:"tab","aria-selected":be,"aria-label":`\uC2AC\uB77C\uC774\uB4DC ${se+1}`},se)}})})},vt=()=>{if(!c||!e)return null;let I=!N;return jsxRuntime.jsx("button",{onClick:gt,className:i("absolute bottom-4 z-20","w-8 h-8 rounded-full flex items-center justify-center","bg-white/80 hover:bg-white text-gray-800","transition-all duration-200","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white",{left:"left-4",center:"left-1/2 -translate-x-1/2",right:"right-4"}[v]),"aria-label":I?"\uC77C\uC2DC\uC815\uC9C0":"\uC7AC\uC0DD",children:I?jsxRuntime.jsx(ba,{className:"w-4 h-4"}):jsxRuntime.jsx(fa,{className:"w-4 h-4"})})},xt=()=>{if(!h||g==="hidden")return null;let I=o||b>0,E=o||b<z-1,A=i("absolute top-1/2 -translate-y-1/2 z-20","w-10 h-10 rounded-full flex items-center justify-center","bg-white/80 hover:bg-white text-gray-800","transition-all duration-200","disabled:opacity-30 disabled:cursor-not-allowed","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white"),G=g==="outside"?"-left-14":"left-4",te=g==="outside"?"-right-14":"right-4";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:Le,disabled:!I,className:i(A,G),"aria-label":"\uC774\uC804 \uC2AC\uB77C\uC774\uB4DC",children:jsxRuntime.jsx(pa,{className:"w-5 h-5"})}),jsxRuntime.jsx("button",{onClick:de,disabled:!E,className:i(A,te),"aria-label":"\uB2E4\uC74C \uC2AC\uB77C\uC774\uB4DC",children:jsxRuntime.jsx(ga,{className:"w-5 h-5"})})]})};return jsxRuntime.jsxs("div",{ref:p,className:i("flex flex-col w-full h-full",g==="outside"&&"px-16",d),style:a,...f,children:[jsxRuntime.jsxs("div",{ref:K,className:"relative overflow-hidden w-full flex-1",onMouseEnter:()=>n&&k(true),onMouseLeave:()=>n&&k(false),onTouchStart:ft,onTouchMove:bt,onTouchEnd:ht,tabIndex:0,role:"region","aria-roledescription":"carousel","aria-label":"\uC774\uBBF8\uC9C0 \uC2AC\uB77C\uC774\uB354",children:[Ft(),xt(),vt(),u.includes("inside")&&et()]}),!u.includes("inside")&&et()]})});Gr.displayName="Carousel";function ma(){let[t,e]=le.useState(false);return le.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");e(r.matches);let o=n=>{e(n.matches);};return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),t}function pa({className:t}){return jsxRuntime.jsx("svg",{className:t,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}function ga({className:t}){return jsxRuntime.jsx("svg",{className:t,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}function fa({className:t}){return jsxRuntime.jsx("svg",{className:t,fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M8 5v14l11-7z"})})}function ba({className:t}){return jsxRuntime.jsx("svg",{className:t,fill:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})})}var Kr=le__default.default.forwardRef(({src:t,alt:e,direction:r="left",threshold:o=.3,height:n="400px",overlayColor:s,className:u,style:h,...g},l)=>{let x=le.useRef(null),[m,c]=le.useState(0),v=ka(),d=le.useCallback(()=>{if(!x.current)return;let f=x.current.getBoundingClientRect(),p=window.innerHeight,w=p*(1-o),b=p*o,y=f.top+f.height/2,T=0;y<=w&&y>=b?T=(w-y)/(w-b):y<b&&(T=1),c(Math.max(0,Math.min(1,T)));},[o]);le.useEffect(()=>{if(v){c(1);return}d();let f=()=>requestAnimationFrame(d);return window.addEventListener("scroll",f,{passive:true}),window.addEventListener("resize",f,{passive:true}),()=>{window.removeEventListener("scroll",f),window.removeEventListener("resize",f);}},[d,v]);let a=wa(r,m);return jsxRuntime.jsxs("div",{ref:Ca(l,x),className:i("relative overflow-hidden",u),style:{height:n,...h},...g,children:[jsxRuntime.jsx("img",{src:t,alt:e,className:"absolute inset-0 w-full h-full object-cover",style:{clipPath:a,transition:"clip-path 0.1s ease-out"}}),s&&jsxRuntime.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:s,opacity:1-m,transition:"opacity 0.3s ease-out"},"aria-hidden":"true"})]})});Kr.displayName="ImageReveal";function wa(t,e){switch(t){case "left":return `inset(0 ${100-e*100}% 0 0)`;case "right":return `inset(0 0 0 ${100-e*100}%)`;case "up":return `inset(0 0 ${100-e*100}% 0)`;case "down":return `inset(${100-e*100}% 0 0 0)`;default:return `inset(0 ${100-e*100}% 0 0)`}}function ka(){let[t,e]=le.useState(false);return le.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");e(r.matches);let o=n=>e(n.matches);return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),t}function Ca(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e);});}}var Jr=le__default.default.forwardRef(({items:t,position:e="right",activeColor:r="bg-primary",inactiveColor:o="bg-muted-foreground/30",className:n,...s},u)=>{let[h,g]=le.useState(0),l=le.useCallback(()=>{let c=window.innerHeight,v=0,d=1/0;t.forEach((a,f)=>{let p=document.getElementById(a.id);if(!p)return;let w=p.getBoundingClientRect(),b=Math.abs(w.top-c*.3);b<d&&(d=b,v=f);}),g(v);},[t]);le.useEffect(()=>(l(),window.addEventListener("scroll",l,{passive:true}),()=>window.removeEventListener("scroll",l)),[l]);let x=le.useCallback(c=>{let v=document.getElementById(c);v&&v.scrollIntoView({behavior:"smooth",block:"start"});},[]),m=le.useMemo(()=>e==="left"?"left-4":"right-4",[e]);return jsxRuntime.jsx("nav",{ref:u,className:i("fixed top-1/2 -translate-y-1/2 z-40 flex flex-col gap-3",m,n),"aria-label":"Section navigation",...s,children:t.map((c,v)=>jsxRuntime.jsx("button",{onClick:()=>x(c.id),className:i("group relative w-3 h-3 rounded-full transition-all duration-300",v===h?`${r} scale-125`:`${o} hover:scale-110`),"aria-label":c.label||c.id,"aria-current":v===h?"true":void 0,children:c.label&&jsxRuntime.jsx("span",{className:i("absolute top-1/2 -translate-y-1/2 whitespace-nowrap px-2 py-1 text-xs rounded bg-popover text-popover-foreground shadow-md opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",e==="right"?"right-full mr-2":"left-full ml-2"),children:c.label})},c.id))})});Jr.displayName="DotNav";var oo=le__default.default.forwardRef(({children:t,heightMultiplier:e=1,snap:r=false,onProgress:o,className:n,style:s,...u},h)=>{let g=le.useRef(null),l=le.useRef(null),[x,m]=le.useState(0),[c,v]=le.useState(0);le.useEffect(()=>{if(!l.current)return;let p=()=>{l.current&&m(l.current.scrollWidth-window.innerWidth);};p();let w=new ResizeObserver(p);return w.observe(l.current),()=>w.disconnect()},[t]);let d=le.useCallback(()=>{if(!g.current||x<=0)return;let p=g.current.getBoundingClientRect(),w=g.current.offsetHeight-window.innerHeight,b=-p.top,y=Math.max(0,Math.min(1,b/w));v(y),o==null||o(y);},[x,o]);le.useEffect(()=>(window.addEventListener("scroll",d,{passive:true}),()=>window.removeEventListener("scroll",d)),[d]);let f=`${le__default.default.Children.count(t)*e*100}vh`;return jsxRuntime.jsx("div",{ref:Ma(h,g),className:i("relative",n),style:{height:f,...s},...u,children:jsxRuntime.jsx("div",{className:"sticky top-0 h-screen overflow-hidden",children:jsxRuntime.jsx("div",{ref:l,className:i("flex h-full will-change-transform",r&&"scroll-snap-x"),style:{transform:`translateX(${-c*x}px)`},children:le__default.default.Children.map(t,(p,w)=>jsxRuntime.jsx("div",{className:i("flex-shrink-0 w-screen h-full",r&&"snap-start"),children:p},w))})})})});oo.displayName="HorizontalScroll";function Ma(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e);});}}var Ia=classVarianceAuthority.cva("rounded-lg",{variants:{variant:{default:"bg-card text-card-foreground border border-border",outline:"bg-transparent border-2 border-border",elevated:"bg-card text-card-foreground shadow-lg border border-border"},shadow:{none:"shadow-none",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg"},padding:{none:"",sm:"p-3",md:"p-4",lg:"p-6"}},defaultVariants:{variant:"default",padding:"none"}}),ot=le__default.default.forwardRef(({className:t,variant:e="default",shadow:r,padding:o="none",hoverable:n,...s},u)=>jsxRuntime.jsx("div",{ref:u,className:i(Ia({variant:e,shadow:r,padding:o}),n&&"transition-shadow hover:shadow-lg cursor-pointer",t),...s}));ot.displayName="Card";var er=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex flex-col space-y-1 p-3",t),...e}));er.displayName="CardHeader";var tr=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("h3",{ref:r,className:i("text-base md:text-lg font-semibold leading-tight tracking-tight",t),...e}));tr.displayName="CardTitle";var rr=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("p",{ref:r,className:i("text-sm text-muted-foreground",t),...e}));rr.displayName="CardDescription";var nt=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("div",{ref:r,className:i("px-3 pb-3",t),...e}));nt.displayName="CardContent";var Ba=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center px-3 pb-3",t),...e}));Ba.displayName="CardFooter";var Aa=classVarianceAuthority.cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors duration-200 ease-in-out focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{default:"bg-[var(--badge-default-bg)] text-[var(--badge-default-text)] hover:opacity-80",secondary:"bg-[var(--badge-secondary-bg)] text-[var(--badge-secondary-text)] hover:opacity-80",destructive:"bg-[var(--badge-destructive-bg)] text-slate-50 hover:opacity-80",error:"bg-[var(--badge-destructive-bg)] text-slate-50 hover:opacity-80",outline:"bg-transparent text-[var(--badge-outline-text)] border border-[var(--badge-outline-border)] hover:bg-[var(--badge-outline-hover-bg)]",glass:"bg-[var(--badge-glass-bg)] backdrop-blur-sm border border-[var(--badge-glass-border)] text-[var(--badge-glass-text)] hover:opacity-80"}},defaultVariants:{variant:"default"}}),ve=le__default.default.memo(le__default.default.forwardRef(({className:t,variant:e="default",...r},o)=>jsxRuntime.jsx("div",{ref:o,className:i(Aa({variant:e}),t),...r})));ve.displayName="Badge";function Ct(t){return t.toLowerCase().replace(/[^a-z0-9가-힣ぁ-んァ-ン一-龯_.~\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").trim()}function ao(t){return !t||t.length===0||t.length>200?false:/^[a-z0-9가-힣ぁ-んァ-ン一-龯_.~-]+$/.test(t)}function Tt(t){return t.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9가-힣ぁ-んァ-ン一-龯_.~-]/g,"").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}var Oa={pageTitle:"\uC0C8 \uAE00 \uC791\uC131",editTitle:"\uAE00 \uC218\uC815",preview:"\uBBF8\uB9AC\uBCF4\uAE30",editMode:"\uD3B8\uC9D1",basicInfo:"\uAE30\uBCF8 \uC815\uBCF4",slug:"\uC2AC\uB7EC\uADF8",slugPrefix:"/blog/",tags:"\uD0DC\uADF8",tagsPlaceholder:"\uAC1C\uBC1C, \uC77C\uC0C1, \uC5C5\uB370\uC774\uD2B8",coverImage:"\uCEE4\uBC84 \uC774\uBBF8\uC9C0 URL",coverImagePlaceholder:"https://example.com/image.jpg",publishDate:"\uBC1C\uD589 \uC608\uC57D\uC77C\uC2DC",publishDateHint:"\uBE44\uC6CC\uB450\uBA74 \uC989\uC2DC \uBC1C\uD589\uB428",expiresAt:"\uB9CC\uB8CC \uC77C\uC2DC",expiresAtHint:"\uBE44\uC6CC\uB450\uBA74 \uB9CC\uB8CC\uB418\uC9C0 \uC54A\uC74C",titleLabel:"\uC81C\uBAA9",titlePlaceholder:"\uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694",excerpt:"\uC694\uC57D",excerptPlaceholder:"\uCE74\uB4DC\uC5D0 \uD45C\uC2DC\uB420 \uC9E7\uC740 \uC694\uC57D",contentLabel:"\uBCF8\uBB38",contentPlaceholder:"\uB9C8\uD06C\uB2E4\uC6B4\uC73C\uB85C \uC791\uC131\uD558\uC138\uC694...",cancel:"\uCDE8\uC18C",saveDraft:"\uC784\uC2DC\uC800\uC7A5",publish:"\uBC1C\uD589",update:"\uC218\uC815 \uC644\uB8CC",saving:"\uC800\uC7A5 \uC911...",translateHint:"AI \uBC88\uC5ED \uAE30\uB2A5",translateButton:"AI \uBC88\uC5ED",translating:"\uBC88\uC5ED \uC911...",translateSuccess:"\uBC88\uC5ED \uC644\uB8CC!",requiredFields:"\uD544\uC218 \uD544\uB4DC\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694",saveError:"\uC800\uC7A5 \uC911 \uC624\uB958 \uBC1C\uC0DD",translateError:"\uBC88\uC5ED \uC911 \uC624\uB958 \uBC1C\uC0DD",noTitle:"\uC81C\uBAA9 \uC5C6\uC74C",bold:"\uAD75\uAC8C",italic:"\uAE30\uC6B8\uC784",strikethrough:"\uCDE8\uC18C\uC120",heading:"\uC81C\uBAA9",link:"\uB9C1\uD06C",image:"\uC774\uBBF8\uC9C0",code:"\uCF54\uB4DC",codeBlock:"\uCF54\uB4DC\uBE14\uB85D",quote:"\uC778\uC6A9\uBB38",list:"\uBAA9\uB85D",orderedList:"\uC21C\uC11C \uBAA9\uB85D",horizontalRule:"\uC218\uD3C9\uC120"},Fa={enableSlug:true,enableTags:true,enableCoverImage:true,enablePublishDate:true,enableExcerpt:true,enableTranslation:true,enablePreview:true,enableMarkdownToolbar:true,enableAutoSave:true,enableExpiresAt:false},Va=[{key:"ko",label:"\uD55C\uAD6D\uC5B4",isPrimary:true,flag:"\u{1F1F0}\u{1F1F7}"},{key:"en",label:"English",flag:"\u{1F1FA}\u{1F1F8}"},{key:"ja",label:"\u65E5\u672C\u8A9E",flag:"\u{1F1EF}\u{1F1F5}"}];function nr(t){let e={};return t.forEach(r=>{e[r.key]="";}),e}function qa(t,e){var r,o,n,s,u,h,g,l;return {slug:(r=e==null?void 0:e.slug)!=null?r:"",title:(o=e==null?void 0:e.title)!=null?o:nr(t),excerpt:(n=e==null?void 0:e.excerpt)!=null?n:nr(t),content:(s=e==null?void 0:e.content)!=null?s:nr(t),tags:(u=e==null?void 0:e.tags)!=null?u:[],coverImage:(h=e==null?void 0:e.coverImage)!=null?h:"",publishedAt:(g=e==null?void 0:e.publishedAt)!=null?g:null,expiresAt:(l=e==null?void 0:e.expiresAt)!=null?l:null}}var lo=le.createContext(null);function Z(){let t=le.useContext(lo);if(!t)throw new Error("useBlogEditor must be used within a BlogEditorProvider");return t}function Nt({children:t,initialData:e,isEditMode:r=false,languages:o=Va,defaultLanguage:n,labels:s,callbacks:u,features:h,variant:g="default",autoSaveKey:l,autoSaveInterval:x=3e3}){var et,vt,xt,I;let m=(I=(xt=(et=o.find(E=>E.isPrimary))==null?void 0:et.key)!=null?xt:(vt=o[0])==null?void 0:vt.key)!=null?I:"ko",c=n!=null?n:m,v=le.useMemo(()=>({...Oa,...s}),[s]),d=le.useMemo(()=>({...Fa,...h}),[h]),[a,f]=le.useState(()=>qa(o,e)),[p,w]=le.useState(c),[b,y]=le.useState(false),[T,k]=le.useState(false),[N,B]=le.useState(false),[P,L]=le.useState(false),[C,S]=le.useState(null),[U,O]=le.useState(false),[F,Q]=le.useState(r||!!(e!=null&&e.slug)),[K,z]=le.useState("idle"),q=le.useRef(null),V=le.useRef(true),Y=l||(r?null:"blog-editor-draft");le.useEffect(()=>{if(!(!d.enableAutoSave||!Y||r))try{let E=localStorage.getItem(Y);if(E){let A=JSON.parse(E);f(A);}}catch{}},[]),le.useEffect(()=>{if(!(!d.enableAutoSave||!Y)){if(V.current){V.current=false;return}return q.current&&clearTimeout(q.current),z("saving"),q.current=setTimeout(()=>{try{localStorage.setItem(Y,JSON.stringify(a)),z("saved"),setTimeout(()=>z("idle"),2e3);}catch{z("idle");}},x),()=>{q.current&&clearTimeout(q.current);}}},[a,d.enableAutoSave,Y,x]);let de=le.useCallback(()=>{if(Y)try{localStorage.removeItem(Y);}catch{}},[Y]),Le=le.useCallback((E,A)=>{f(G=>({...G,[E]:A}));},[]),gt=le.useCallback((E,A,G)=>{f(te=>({...te,[E]:{...te[E],[A]:G}}));},[]),$t=le.useCallback(E=>Ct(E),[]),Ot=le.useCallback(async E=>{let A=a.title[m],G=a.content[m];if(!A||!G){S(v.requiredFields);return}if(d.enableSlug&&!a.slug){S(v.requiredFields);return}k(true),S(null);try{await u.onSave(a,E),de();}catch{S(v.saveError);}finally{k(false);}},[a,m,v,d,u,de]),ft=le.useCallback(async()=>{if(!u.onTranslate)return;let E=a.title[m],A=a.content[m],G=a.excerpt[m];if(!E||!A){S(v.requiredFields);return}B(true),S(null),O(false);try{let te=await u.onTranslate({sourceLanguage:m,title:E,content:A,excerpt:G||void 0});f(ue=>{let se={...ue.title},be={...ue.content},Cr={...ue.excerpt};return Object.keys(te).forEach(tt=>{if(tt!==m){let Vt=te[tt];if(typeof Vt=="object"&&Vt!==null){let He=Vt;He.title&&(se[tt]=He.title),He.content&&(be[tt]=He.content),He.excerpt&&(Cr[tt]=He.excerpt);}}}),{...ue,title:se,content:be,excerpt:Cr}}),O(!0),setTimeout(()=>O(!1),3e3);}catch{S(v.translateError);}finally{B(false);}},[a,m,v,u]),bt=le.useCallback(async E=>{if(!u.onUploadImage)return null;L(true),S(null);try{return await u.onUploadImage(E)}catch{return S("\uC774\uBBF8\uC9C0 \uC5C5\uB85C\uB4DC \uC2E4\uD328"),null}finally{L(false);}},[u]),ht=le.useCallback(()=>{var E;(E=u.onCancel)==null||E.call(u);},[u]),Ft=le.useMemo(()=>({formData:a,activeLanguage:p,showPreview:b,submitting:T,translating:N,uploading:P,error:C,translateSuccess:U,autoSaveStatus:K,languages:o,features:d,labels:v,variant:g,isEditMode:r,setActiveLanguage:w,setShowPreview:y,updateField:Le,updateMultilingualField:gt,handleSave:Ot,handleTranslate:ft,handleUploadImage:bt,handleCancel:ht,setError:S,generateSlug:$t,slugManuallyEdited:F,setSlugManuallyEdited:Q}),[a,p,b,T,N,P,C,U,K,o,d,v,g,r,Le,gt,Ot,ft,bt,ht,$t,F,Q]);return jsxRuntime.jsx(lo.Provider,{value:Ft,children:t})}var bo={home:ssr.House,arrowLeft:ssr.ArrowLeft,arrowRight:ssr.ArrowRight,arrowUp:ssr.ArrowUp,arrowDown:ssr.ArrowDown,menu:ssr.List,close:ssr.X,search:ssr.MagnifyingGlass,settings:ssr.Gear,externalLink:ssr.ArrowSquareOut,chevronLeft:ssr.CaretLeft,chevronRight:ssr.CaretRight,chevronDown:ssr.CaretDown,chevronUp:ssr.CaretUp,edit:ssr.Pencil,delete:ssr.Trash,add:ssr.Plus,remove:ssr.Minus,download:ssr.Download,upload:ssr.Upload,refresh:ssr.ArrowClockwise,save:ssr.FloppyDisk,copy:ssr.Copy,loader:ssr.SpinnerGap,success:ssr.CheckCircle,error:ssr.XCircle,alertCircle:ssr.WarningCircle,warning:ssr.WarningCircle,info:ssr.Info,check:ssr.Check,circle:ssr.Circle,helpCircle:ssr.Question,user:ssr.User,users:ssr.Users,userPlus:ssr.UserPlus,logIn:ssr.SignIn,logOut:ssr.SignOut,eye:ssr.Eye,eyeOff:ssr.EyeSlash,chart:ssr.ChartBar,barChart:ssr.ChartBar,trendingUp:ssr.TrendUp,activity:ssr.Pulse,database:ssr.Database,zap:ssr.Lightning,fileText:ssr.FileText,file:ssr.File,folder:ssr.Folder,book:ssr.Book,bookOpen:ssr.BookOpen,mail:ssr.Envelope,message:ssr.ChatCircle,phone:ssr.Phone,image:ssr.Image,video:ssr.Video,camera:ssr.Camera,smile:ssr.Smiley,frown:ssr.SmileySad,meh:ssr.SmileyMeh,lock:ssr.Lock,unlock:ssr.LockOpen,shield:ssr.Shield,wallet:ssr.Wallet,key:ssr.Key,clock:ssr.Clock,calendar:ssr.Calendar,calendarPlus:ssr.CalendarPlus,bell:ssr.Bell,heart:ssr.Heart,star:ssr.Star,bookmark:ssr.Bookmark,share:ssr.Share,monitor:ssr.Monitor,sun:ssr.Sun,moon:ssr.Moon,lightbulb:ssr.Lightbulb,brain:ssr.Brain,flag:ssr.Flag,square:ssr.Square,sparkle:ssr.Sparkle,sparkles:ssr.Sparkle,globe:ssr.Globe,smartphone:ssr.DeviceMobile,deviceMobile:ssr.DeviceMobile,floppyDisk:ssr.FloppyDisk,ticket:ssr.Ticket,clipboard:ssr.Clipboard,wifi:ssr.WifiHigh,wifiOff:ssr.WifiSlash,cpu:ssr.Cpu,mask:ssr.MaskHappy,rocket:ssr.Rocket,layout:ssr.Layout,megaphone:ssr.Megaphone,layers:ssr.Stack,ban:ssr.Prohibit,bold:ssr.TextB,italic:ssr.TextItalic,strikethrough:ssr.TextStrikethrough,heading:ssr.TextHOne,link:ssr.Link,code:ssr.Code,fileCode:ssr.FileCode,quote:ssr.Quotes,list:ssr.List,listOrdered:ssr.ListNumbers,minus:ssr.Minus},ho={happy:"smile",sad:"frown",neutral:"meh",excited:"smile",angry:"frown",love:"heart",like:"heart",dislike:"frown"},vo={loading:"loader",success:"success",error:"error",warning:"warning",info:"info",locked:"lock",unlocked:"unlock",visible:"eye",hidden:"eyeOff"};function xo(t){return !t||!/[-_]/.test(t)&&/^[a-z]/.test(t)?t:/^[A-Z]+$/.test(t)?t.toLowerCase():/^[A-Z]/.test(t)&&!/[-_]/.test(t)?t.charAt(0).toLowerCase()+t.slice(1):t.split(/[-_]/).map((e,r)=>r===0?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")}var J=null,ee=null;var yo={home:{lucide:"Home",phosphor:"House",iconsax:"Home2"},"layout-dashboard":{lucide:"LayoutDashboard",phosphor:"SquaresFour"},folder:{lucide:"Folder",phosphor:"Folder",iconsax:"Folder"},"alert-circle":{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},alertCircle:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Danger"},columns:{lucide:"Columns",phosphor:"Columns"},users:{lucide:"Users",phosphor:"Users",iconsax:"People"},settings:{lucide:"Settings",phosphor:"Gear"},menu:{lucide:"Menu",phosphor:"List",iconsax:"Menu"},close:{lucide:"X",phosphor:"X",iconsax:"CloseCircle"},chevronLeft:{lucide:"ChevronLeft",phosphor:"CaretLeft",iconsax:"ArrowLeft2"},chevronRight:{lucide:"ChevronRight",phosphor:"CaretRight",iconsax:"ArrowRight2"},chevronDown:{lucide:"ChevronDown",phosphor:"CaretDown",iconsax:"ArrowDown2"},chevronUp:{lucide:"ChevronUp",phosphor:"CaretUp",iconsax:"ArrowUp2"},arrowLeft:{lucide:"ArrowLeft",phosphor:"ArrowLeft",iconsax:"ArrowLeft"},arrowRight:{lucide:"ArrowRight",phosphor:"ArrowRight",iconsax:"ArrowRight"},arrowUp:{lucide:"ArrowUp",phosphor:"ArrowUp",iconsax:"ArrowUp"},arrowDown:{lucide:"ArrowDown",phosphor:"ArrowDown",iconsax:"ArrowDown"},add:{lucide:"Plus",phosphor:"Plus",iconsax:"Add"},edit:{lucide:"Edit",phosphor:"Pencil"},pencil:{lucide:"Pencil",phosphor:"Pencil"},delete:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},trash:{lucide:"Trash2",phosphor:"Trash",iconsax:"Trash"},upload:{lucide:"Upload",phosphor:"Upload",iconsax:"Upload"},download:{lucide:"Download",phosphor:"Download",iconsax:"Download"},x:{lucide:"X",phosphor:"X"},check:{lucide:"Check",phosphor:"Check",iconsax:"Check"},search:{lucide:"Search",phosphor:"MagnifyingGlass",iconsax:"SearchNormal"},share:{lucide:"Share",phosphor:"Share"},copy:{lucide:"Copy",phosphor:"Copy"},save:{lucide:"Save",phosphor:"FloppyDisk"},loader:{lucide:"Loader2",phosphor:"Spinner"},loader2:{lucide:"Loader2",phosphor:"Spinner"},"check-circle":{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},checkCircle:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},success:{lucide:"CheckCircle",phosphor:"CheckCircle",iconsax:"TickCircle"},error:{lucide:"XCircle",phosphor:"XCircle",iconsax:"CloseCircle"},warning:{lucide:"AlertCircle",phosphor:"WarningCircle",iconsax:"Warning2"},info:{lucide:"Info",phosphor:"Info",iconsax:"InfoCircle"},refresh:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},refreshCw:{lucide:"RefreshCw",phosphor:"ArrowClockwise",iconsax:"Refresh"},bell:{lucide:"Bell",phosphor:"Bell",iconsax:"Bell"},heart:{lucide:"Heart",phosphor:"Heart",iconsax:"Heart"},star:{lucide:"Star",phosphor:"Star",iconsax:"Star"},bookmark:{lucide:"Bookmark",phosphor:"Bookmark"},user:{lucide:"User",phosphor:"User",iconsax:"User"},userPlus:{lucide:"UserPlus",phosphor:"UserPlus",iconsax:"UserAdd"},logIn:{lucide:"LogIn",phosphor:"SignIn",iconsax:"Login"},logOut:{lucide:"LogOut",phosphor:"SignOut",iconsax:"Logout"},chrome:{lucide:"Chrome",phosphor:"ChromeLogo",iconsax:"Chrome"},github:{lucide:"Github",phosphor:"GithubLogo"},message:{lucide:"MessageCircle",phosphor:"ChatCircle"},messageSquare:{lucide:"MessageSquare",phosphor:"ChatSquare"},"message-square":{lucide:"MessageSquare",phosphor:"ChatSquare"},inbox:{lucide:"Inbox",phosphor:"Inbox"},calendar:{lucide:"Calendar",phosphor:"Calendar"},calendarPlus:{lucide:"CalendarPlus",phosphor:"CalendarPlus"},checkSquare:{lucide:"CheckSquare",phosphor:"CheckSquare",iconsax:"TickSquare"},clock:{lucide:"Clock",phosphor:"Clock"},book:{lucide:"Book",phosphor:"Book",iconsax:"Book"},bookOpen:{lucide:"BookOpen",phosphor:"BookOpen",iconsax:"Book"},monitor:{lucide:"Monitor",phosphor:"Monitor",iconsax:"Monitor"},sun:{lucide:"Sun",phosphor:"Sun",iconsax:"Sun"},moon:{lucide:"Moon",phosphor:"Moon",iconsax:"Moon"},sparkle:{lucide:"Sparkle",phosphor:"Sparkle"},sparkles:{lucide:"Sparkles",phosphor:"Sparkle"},lightbulb:{lucide:"Lightbulb",phosphor:"Lightbulb"},brain:{lucide:"Brain",phosphor:"Brain"},zap:{lucide:"Zap",phosphor:"Lightning"},globe:{lucide:"Globe",phosphor:"Globe",iconsax:"Global"},deviceMobile:{lucide:"Smartphone",phosphor:"DeviceMobile"},smartphone:{lucide:"Smartphone",phosphor:"DeviceMobile"},floppyDisk:{lucide:"Save",phosphor:"FloppyDisk"},chart:{lucide:"BarChart3",phosphor:"ChartBar"},barChart:{lucide:"BarChart",phosphor:"ChartBar"},trendingUp:{lucide:"TrendingUp",phosphor:"TrendUp"},trendingDown:{lucide:"TrendingDown",phosphor:"TrendDown"},activity:{lucide:"Activity",phosphor:"Pulse"},database:{lucide:"Database",phosphor:"Database"},dollarSign:{lucide:"DollarSign",phosphor:"CurrencyDollar"},dollar:{lucide:"DollarSign",phosphor:"CurrencyDollar"},currency:{lucide:"DollarSign",phosphor:"CurrencyDollar"},layers:{lucide:"Layers",phosphor:"Stack"},ban:{lucide:"Ban",phosphor:"Prohibit"},lock:{lucide:"Lock",phosphor:"Lock",iconsax:"Lock"},unlock:{lucide:"Unlock",phosphor:"LockOpen",iconsax:"Unlock"},shield:{lucide:"Shield",phosphor:"Shield",iconsax:"Shield"},key:{lucide:"Key",phosphor:"Key"},play:{lucide:"Play",phosphor:"Play",iconsax:"Play"},pause:{lucide:"Pause",phosphor:"Pause",iconsax:"Pause"},image:{lucide:"Image",phosphor:"Image",iconsax:"Image"},video:{lucide:"Video",phosphor:"Video",iconsax:"Video"},camera:{lucide:"Camera",phosphor:"Camera",iconsax:"Camera"},fileText:{lucide:"FileText",phosphor:"FileText"},file:{lucide:"File",phosphor:"File"},externalLink:{lucide:"ExternalLink",phosphor:"ArrowSquareOut"},link:{lucide:"Link",phosphor:"Link",iconsax:"Link"},moreHorizontal:{lucide:"MoreHorizontal",phosphor:"DotsThreeOutline"},moreVertical:{lucide:"MoreVertical",phosphor:"DotsThreeVertical"},remove:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"},eye:{lucide:"Eye",phosphor:"Eye",iconsax:"Eye"},eyeOff:{lucide:"EyeOff",phosphor:"EyeSlash",iconsax:"EyeSlash"},smile:{lucide:"Smile",phosphor:"Smiley",iconsax:"EmojiHappy"},frown:{lucide:"Frown",phosphor:"SmileySad",iconsax:"EmojiSad"},meh:{lucide:"Meh",phosphor:"SmileyMeh",iconsax:"EmojiNormal"},mail:{lucide:"Mail",phosphor:"Envelope"},phone:{lucide:"Phone",phosphor:"Phone"},flag:{lucide:"Flag",phosphor:"Flag",iconsax:"Flag"},rocket:{lucide:"Rocket",phosphor:"Rocket",iconsax:"Rocket"},ticket:{lucide:"Ticket",phosphor:"Ticket",iconsax:"Ticket"},clipboard:{lucide:"ClipboardList",phosphor:"Clipboard",iconsax:"Sticker"},wifi:{lucide:"Wifi",phosphor:"WifiHigh",iconsax:"Wifi"},wifiOff:{lucide:"WifiOff",phosphor:"WifiSlash"},cpu:{lucide:"Cpu",phosphor:"Cpu",iconsax:"Computing"},mask:{lucide:"Drama",phosphor:"MaskHappy",iconsax:"EmojiHappy"},bold:{lucide:"Bold",phosphor:"TextB"},italic:{lucide:"Italic",phosphor:"TextItalic"},strikethrough:{lucide:"Strikethrough",phosphor:"TextStrikethrough"},heading:{lucide:"Heading",phosphor:"TextHOne"},code:{lucide:"Code",phosphor:"Code",iconsax:"Code"},fileCode:{lucide:"FileCode",phosphor:"FileCode"},quote:{lucide:"Quote",phosphor:"Quotes",iconsax:"QuoteUp"},list:{lucide:"List",phosphor:"List"},listOrdered:{lucide:"ListOrdered",phosphor:"ListNumbers"},minus:{lucide:"Minus",phosphor:"Minus",iconsax:"Minus"}};async function wo(){if(typeof window=="undefined")return null;if(!J)try{J=await import('@phosphor-icons/react');}catch{return console.warn("Phosphor Icons not available. Install @phosphor-icons/react to use."),null}return J}async function ko(){if(typeof window=="undefined")return null;if(!ee)try{ee=await import('lucide-react');}catch{return console.warn("Lucide Icons not available. Install lucide-react to use lucide provider."),null}return ee}function Rt(t,e="phosphor"){let r=yo[t];if(!r)return Si(t,e);let o=r[e];switch(e){case "phosphor":return !o||!J?null:(J==null?void 0:J[o])||null;case "lucide":return !o||!ee?null:(ee==null?void 0:ee[o])||null;case "iconsax":{return null;}default:return null}}function Si(t,e){switch(e){case "phosphor":{if(!J)return null;let r=t.charAt(0).toUpperCase()+t.slice(1),o=t.split(/(?=[A-Z])/).map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("");return (J==null?void 0:J[r])||(J==null?void 0:J[o])||(J==null?void 0:J[t])||null}case "lucide":{if(!ee)return null;let r=t.charAt(0).toUpperCase()+t.slice(1),o=t.replace(/([A-Z])/g,n=>n===t[0]?n.toLowerCase():n);return (ee==null?void 0:ee[r])||(ee==null?void 0:ee[t])||(ee==null?void 0:ee[o])||null}case "iconsax":{return null;}default:return null}}function Co(t,e){let r=yo[t];if(r){let o=r[e];if(o)return o}return t}var sr={"arrow-left":"arrowLeft","arrow-right":"arrowRight","arrow-up":"arrowUp","arrow-down":"arrowDown","chevron-left":"chevronLeft","chevron-right":"chevronRight","chevron-up":"chevronUp","chevron-down":"chevronDown","external-link":"externalLink","more-horizontal":"moreHorizontal","more-vertical":"moreVertical","user-plus":"userPlus","log-in":"logIn","log-out":"logOut","check-circle":"checkCircle","check-square":"checkSquare","alert-circle":"alertCircle","eye-off":"eyeOff","file-text":"fileText","book-open":"bookOpen","bar-chart":"barChart","trending-up":"trendingUp","trending-down":"trendingDown","message-square":"messageSquare","calendar-plus":"calendarPlus","refresh-cw":"refreshCw","dollar-sign":"dollarSign","layout-dashboard":"layoutDashboard","device-mobile":"deviceMobile","floppy-disk":"floppyDisk",back:"arrowLeft",prev:"arrowLeft",previous:"arrowLeft",forward:"arrowRight",next:"arrowRight",close:"x",cancel:"x",remove:"delete",trash:"delete",plus:"add",new:"add",pencil:"edit",modify:"edit",store:"save",floppy:"save",magnify:"search",person:"user",account:"user",profile:"user",gear:"settings",config:"settings",preferences:"settings",house:"home",main:"home",done:"check",complete:"check",tick:"check",information:"info",help:"info",alert:"warning",caution:"warning",checkmark:"success",checkCircle:"success",fail:"error",cross:"error",xCircle:"error",spinner:"loader",loading:"loader",wait:"loader",reload:"refresh",update:"refresh",sync:"refresh",show:"eye",view:"eye",hide:"eyeOff",hidden:"eyeOff",secure:"lock",locked:"lock",unsecure:"unlock",unlocked:"unlock",get:"download",fetch:"download",post:"upload",send:"share",export:"share",duplicate:"copy",clone:"copy",email:"mail",envelope:"mail",chat:"message",comment:"message",talk:"message",date:"calendar",schedule:"calendar",time:"clock",watch:"clock",document:"fileText",doc:"fileText",text:"fileText",directory:"folder",dir:"folder",picture:"image",img:"image",movie:"video",film:"video",photo:"camera",capture:"camera",start:"play",run:"play",stop:"pause",halt:"pause",like:"heart",love:"heart",favorite:"star",saveBookmark:"bookmark",notification:"bell",notify:"bell",alarm:"bell",prefs:"settings",lookup:"search",dots:"moreHorizontal",moreMenu:"moreHorizontal",moreOptions:"moreVertical",external:"externalLink",outbound:"externalLink",open:"externalLink",url:"link",hyperlink:"link",graph:"barChart",stats:"barChart",analytics:"barChart",db:"database",storage:"database",pulse:"activity",monitor:"activity",up:"trendingUp",down:"trendingDown",lightning:"zap",bolt:"zap",flash:"zap",security:"shield",protect:"shield",password:"key",secret:"key",signin:"logIn",login:"logIn",enter:"logIn",signout:"logOut",logout:"logOut",exit:"logOut",people:"users",group:"users",team:"users",addUser:"userPlus",invite:"userPlus",read:"book",library:"book",reading:"bookOpen",openBook:"bookOpen",light:"sun",day:"sun",dark:"moon",night:"moon",screen:"monitor",display:"monitor",ai:"brain",intelligence:"brain",think:"brain",idea:"lightbulb",bulb:"lightbulb",inspiration:"lightbulb",magic:"sparkles",stars:"sparkles",glitter:"sparkles"};function To(t){if(!t||typeof t!="string")return {normalized:t||"",wasAlias:false};let e=xo(t),r=sr[t]||sr[e];return r?{normalized:r,wasAlias:true,originalAlias:t}:{normalized:e,wasAlias:false}}var No={set:"phosphor",weight:"regular",size:20,color:"currentColor",strokeWidth:1.25,iconsaxVariant:"line"};var Hi=le.createContext(No);function Eo(){return le.useContext(Hi)}var Ro=le__default.default.forwardRef(({name:t,size:e,className:r,emotion:o,status:n,provider:s,weight:u,animated:h=false,pulse:g=false,spin:l=false,bounce:x=false,variant:m="default","aria-label":c,"aria-hidden":v},d)=>{var z,q;let a=Eo(),f=s||a.set,p=e!=null?e:a.size,w=u||a.weight,b=a.color,y=(z=a.strokeWidth)!=null?z:1.25,T=(q=a.iconsaxVariant)!=null?q:"line",[k,N]=le__default.default.useState(false),[B,P]=le__default.default.useState(false);le__default.default.useEffect(()=>{N(true),f==="lucide"?ko().then(()=>P(true)):f==="phosphor"?wo().then(()=>P(true)):P(true);},[f]);let L=le__default.default.useMemo(()=>{let V=o?ho[o]:n?vo[n]:t,{normalized:Y}=To(V),de=Co(Y,f);return {normalized:Y,providerName:de}},[t,o,n,f]),C=L.normalized,S=le__default.default.useMemo(()=>{return null},[f,L.providerName,k,T]),U=qt({"text-current":m==="default","text-primary":m==="primary","text-muted-foreground":m==="secondary"||m==="muted","text-green-600 dark:text-green-400":m==="success","text-yellow-600 dark:text-yellow-400":m==="warning","text-destructive":m==="error"});if(!k)return jsxRuntime.jsx("span",{style:{width:p,height:p},className:i(U,r),"aria-hidden":v!==void 0?v:true,"aria-label":c});let O=null;if(f==="phosphor"?(O=bo[C]||null,!O&&B&&(O=Rt(C,f))):f==="iconsax"?(O=S,O||(O=Rt(C,f))):O=Rt(C,f),!O)return f==="iconsax"&&true?process.env.NODE_ENV==="development"&&console.warn(`Icon "${C}" \u2014 iconsax resolver not registered. Use HuaProvider with icons.set='iconsax', or add: import '@hua-labs/ui/iconsax'`):console.warn(`Icon "${C}" not found for provider "${f}"`),jsxRuntime.jsx("span",{ref:d,className:i("inline-flex items-center justify-center rounded-full border-2 border-dashed border-border",U,r),style:{width:p,height:p},"aria-label":c||`\uC544\uC774\uCF58\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC74C: ${C}`,title:`Icon not found: ${C}`,children:jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground","aria-hidden":"true",children:"?"})});let F={size:typeof p=="number"?p:void 0,width:p,height:p,color:b};f==="phosphor"?F.weight=w:F.strokeWidth=y;let Q=qt({"animate-pulse":g,"animate-spin":l,"animate-bounce":x,"transition-all duration-200 ease-in-out":h}),K={};return c?(K["aria-label"]=c,K["aria-hidden"]=false):v!==void 0?K["aria-hidden"]=v:K["aria-hidden"]=true,jsxRuntime.jsx("span",{ref:d,className:i("inline-flex items-center justify-center",Q,U,r),style:{width:p,height:p},...K,children:O&&le__default.default.createElement(O,{...F,className:U,"aria-hidden":true})})});Ro.displayName="Icon";var Ai=le__default.default.memo(Ro,(t,e)=>t.name===e.name&&t.size===e.size&&t.className===e.className&&t.emotion===e.emotion&&t.status===e.status&&t.provider===e.provider&&t.animated===e.animated&&t.pulse===e.pulse&&t.spin===e.spin&&t.bounce===e.bounce&&t.variant===e.variant&&t.weight===e.weight&&t["aria-label"]===e["aria-label"]&&t["aria-hidden"]===e["aria-hidden"]),M=Ai;M.displayName="Icon";var Po=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(M,{ref:e,name:"smile",...t}));Po.displayName="EmotionIcon";var Lo=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(M,{ref:e,name:"info",...t}));Lo.displayName="StatusIcon";var Mo=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(M,{ref:e,name:"loader",status:"loading",spin:true,"aria-label":"\uB85C\uB529 \uC911",...t}));Mo.displayName="LoadingIcon";var So=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(M,{ref:e,name:"check",status:"success",variant:"success","aria-label":"\uC131\uACF5",...t}));So.displayName="SuccessIcon";var Io=le__default.default.forwardRef((t,e)=>jsxRuntime.jsx(M,{ref:e,name:"alertCircle",status:"error",variant:"error","aria-label":"\uC624\uB958",...t}));Io.displayName="ErrorIcon";var ze=le__default.default.forwardRef(({onBack:t,backLink:e,className:r},o)=>{let{labels:n,isEditMode:s,formData:u}=Z();return jsxRuntime.jsx("header",{ref:o,className:i("flex items-center justify-between mb-8",r),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[e||t&&jsxRuntime.jsx("button",{type:"button",onClick:t,className:"p-2 text-muted-foreground hover:text-foreground transition-colors","aria-label":"\uB4A4\uB85C\uAC00\uAE30",children:jsxRuntime.jsx(M,{name:"chevronLeft",size:24})}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("h1",{className:"text-2xl font-bold text-foreground",children:s?n.editTitle:n.pageTitle}),s&&u.slug&&jsxRuntime.jsxs("p",{className:"text-sm text-muted-foreground",children:[n.slugPrefix,u.slug]})]})]})})});ze.displayName="BlogEditorHeader";var $e=le__default.default.forwardRef(({className:t},e)=>{var y,T;let{formData:r,updateField:o,features:n,labels:s,variant:u,handleUploadImage:h,uploading:g,setSlugManuallyEdited:l}=Z(),[x,m]=le.useState(""),c=le.useRef(null),v=i("rounded-xl p-6 space-y-4",u==="glass"?"bg-white/10 backdrop-blur-sm border border-white/20 dark:bg-background/20 dark:border-border/50":u==="minimal"?"bg-transparent":"bg-background",t),d="w-full px-3 py-2 border border-border rounded-lg bg-background text-foreground focus:ring-1 focus:ring-ring focus:border-transparent transition-colors",a="block text-sm font-medium text-foreground mb-1",f=le.useCallback(k=>{let N=k.trim();N&&!r.tags.includes(N)&&o("tags",[...r.tags,N]),m("");},[r.tags,o]),p=le.useCallback(k=>{o("tags",r.tags.filter(N=>N!==k));},[r.tags,o]),w=le.useCallback(k=>{let N=k.target.value;if(N.includes(",")){let B=N.split(",");B.forEach((P,L)=>{L<B.length-1?f(P):m(P);});}else m(N);},[f]),b=le.useCallback(k=>{k.key==="Enter"?(k.preventDefault(),f(x)):k.key==="Backspace"&&!x&&r.tags.length>0&&p(r.tags[r.tags.length-1]);},[x,r.tags,f,p]);return jsxRuntime.jsxs("div",{ref:e,className:v,children:[jsxRuntime.jsx("h2",{className:"font-semibold text-foreground",children:s.basicInfo}),jsxRuntime.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.enableSlug&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("label",{className:a,children:[s.slug," *"]}),jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsx("span",{className:"text-muted-foreground mr-1 text-sm",children:s.slugPrefix}),jsxRuntime.jsx("input",{type:"text",value:r.slug,onChange:k=>{o("slug",Tt(k.target.value)),l(true);},className:i(d,"flex-1"),placeholder:"my-post-slug"})]})]}),n.enableTags&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:a,children:s.tags}),jsxRuntime.jsxs("div",{className:i("flex flex-wrap items-center gap-2 min-h-[42px] px-3 py-2 border border-border rounded-lg bg-background focus-within:ring-1 focus-within:ring-ring focus-within:border-transparent transition-colors"),children:[r.tags.map(k=>jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 bg-primary/10 text-primary text-sm rounded-md",children:[k,jsxRuntime.jsx("button",{type:"button",onClick:()=>p(k),className:"hover:text-primary transition-colors","aria-label":`${k} \uD0DC\uADF8 \uC0AD\uC81C`,children:jsxRuntime.jsx(M,{name:"x",size:14})})]},k)),jsxRuntime.jsx("input",{type:"text",value:x,onChange:w,onKeyDown:b,className:"flex-1 min-w-[100px] bg-transparent outline-none text-foreground text-sm",placeholder:r.tags.length===0?s.tagsPlaceholder:"\uD0DC\uADF8 \uCD94\uAC00..."})]}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"\uC27C\uD45C(,) \uB610\uB294 Enter\uB85C \uD0DC\uADF8 \uCD94\uAC00"})]})]}),n.enableCoverImage&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:a,children:s.coverImage}),jsxRuntime.jsxs("div",{className:"space-y-3",children:[r.coverImage&&jsxRuntime.jsxs("div",{className:"relative w-full h-40 rounded-lg overflow-hidden bg-muted",children:[jsxRuntime.jsx("img",{src:r.coverImage,alt:"\uCEE4\uBC84 \uC774\uBBF8\uC9C0 \uBBF8\uB9AC\uBCF4\uAE30",className:"w-full h-full object-cover"}),jsxRuntime.jsx("button",{type:"button",onClick:()=>o("coverImage",""),className:"absolute top-2 right-2 p-1.5 bg-red-500 text-white rounded-full hover:bg-red-600 transition-colors","aria-label":"\uC774\uBBF8\uC9C0 \uC0AD\uC81C",children:jsxRuntime.jsx(M,{name:"x",size:14})})]}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx("input",{type:"text",value:r.coverImage,onChange:k=>o("coverImage",k.target.value),className:i(d,"flex-1"),placeholder:s.coverImagePlaceholder}),jsxRuntime.jsx("input",{ref:c,type:"file",accept:"image/*",className:"hidden",onChange:async k=>{var B;let N=(B=k.target.files)==null?void 0:B[0];if(N){let P=await h(N);P&&o("coverImage",P);}k.target.value="";}}),jsxRuntime.jsx("button",{type:"button",onClick:()=>{var k;return (k=c.current)==null?void 0:k.click()},disabled:g,className:"px-3 py-2 border border-border rounded-lg hover:bg-muted disabled:opacity-50 disabled:cursor-not-allowed transition-colors",title:"\uC774\uBBF8\uC9C0 \uC5C5\uB85C\uB4DC",children:g?jsxRuntime.jsx(M,{name:"loader",size:20,spin:true}):jsxRuntime.jsx(M,{name:"upload",size:20})})]})]})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.enablePublishDate&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:a,children:s.publishDate}),jsxRuntime.jsx("input",{type:"datetime-local",value:(y=r.publishedAt)!=null?y:"",onChange:k=>o("publishedAt",k.target.value||null),className:d}),jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:s.publishDateHint})]}),n.enableExpiresAt&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:a,children:s.expiresAt}),jsxRuntime.jsx("input",{type:"datetime-local",value:(T=r.expiresAt)!=null?T:"",onChange:k=>o("expiresAt",k.target.value||null),className:d}),jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:s.expiresAtHint})]})]})]})});$e.displayName="BlogEditorMetadata";var Oe=le__default.default.forwardRef(({className:t},e)=>{let{languages:r,activeLanguage:o,setActiveLanguage:n,showPreview:s,setShowPreview:u,features:h,labels:g}=Z();return jsxRuntime.jsxs("div",{ref:e,className:i("flex items-center border-b border-border sticky top-0 z-10 bg-background",t),role:"tablist","aria-label":"\uC5B8\uC5B4 \uC120\uD0DD",children:[jsxRuntime.jsx("div",{className:"flex flex-1",children:r.map(l=>{let x=o===l.key,m=l.isPrimary;return jsxRuntime.jsxs("button",{type:"button",role:"tab","aria-selected":x,"aria-controls":`tabpanel-${l.key}`,id:`tab-${l.key}`,onClick:()=>n(l.key),className:i("flex-1 px-4 py-3 text-sm font-medium transition-colors",x?"bg-primary/10 text-primary border-b-2 border-primary":"text-muted-foreground hover:bg-muted"),children:[l.flag&&jsxRuntime.jsx("span",{className:"mr-1.5",children:l.flag}),l.label,m&&" *"]},l.key)})}),h.enablePreview&&jsxRuntime.jsxs("button",{type:"button",onClick:()=>u(!s),className:"inline-flex items-center gap-1.5 px-3 py-2 mx-2 text-sm border border-border rounded-lg hover:bg-muted transition-colors shrink-0",children:[jsxRuntime.jsx(M,{name:s?"pencil":"eye",size:14}),s?g.editMode:g.preview]})]})});Oe.displayName="BlogEditorLanguageTabs";var Fe=le__default.default.forwardRef(({className:t,textareaRef:e},r)=>{var b;let{formData:o,activeLanguage:n,updateMultilingualField:s,updateField:u,features:h,labels:g,languages:l,generateSlug:x,isEditMode:m,slugManuallyEdited:c}=Z(),v=((b=l.find(y=>y.isPrimary))==null?void 0:b.key)===n,d=l.find(y=>y.key===n),a="w-full px-3 py-2 border border-border rounded-lg bg-background text-foreground focus:ring-1 focus:ring-ring focus:border-transparent transition-colors",f="block text-sm font-medium text-foreground mb-1",p=y=>{s("title",n,y),n==="en"&&!m&&!c&&u("slug",x(y));},w=y=>v?`${y} *`:`${y} (${(d==null?void 0:d.label)||n})`;return jsxRuntime.jsxs("div",{ref:r,className:i("p-6 space-y-4",t),children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:f,children:w(g.titleLabel)}),jsxRuntime.jsx("input",{type:"text",value:o.title[n]||"",onChange:y=>p(y.target.value),className:a,placeholder:g.titlePlaceholder})]}),h.enableExcerpt&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:f,children:w(g.excerpt)}),jsxRuntime.jsx("textarea",{value:o.excerpt[n]||"",onChange:y=>s("excerpt",n,y.target.value),rows:2,className:i(a,"resize-none"),placeholder:g.excerptPlaceholder})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("label",{className:f,children:[w(g.contentLabel)," (\uB9C8\uD06C\uB2E4\uC6B4)"]}),jsxRuntime.jsx("textarea",{ref:e,value:o.content[n]||"",onChange:y=>s("content",n,y.target.value),rows:15,className:i(a,"font-mono text-sm resize-y min-h-[300px]"),placeholder:g.contentPlaceholder})]})]})});Fe.displayName="BlogEditorContent";function qi(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function Mt(t){if(!t)return "";let e=t;return e=e.replace(/```(\w*)\n?([\s\S]*?)```/g,(r,o,n)=>`<pre class="bg-gray-100 dark:bg-gray-800 rounded-lg p-4 overflow-x-auto my-4"><code class="text-sm">${qi(n.trim())}</code></pre>`),e=e.replace(/`([^`]+)`/g,'<code class="bg-gray-100 dark:bg-gray-700 px-1.5 py-0.5 rounded text-sm">$1</code>'),e=e.replace(/^######\s+(.+)$/gm,'<h6 class="text-base font-semibold mt-4 mb-2">$1</h6>'),e=e.replace(/^#####\s+(.+)$/gm,'<h5 class="text-lg font-semibold mt-4 mb-2">$1</h5>'),e=e.replace(/^####\s+(.+)$/gm,'<h4 class="text-xl font-semibold mt-5 mb-2">$1</h4>'),e=e.replace(/^###\s+(.+)$/gm,'<h3 class="text-2xl font-semibold mt-5 mb-3">$1</h3>'),e=e.replace(/^##\s+(.+)$/gm,'<h2 class="text-2xl font-bold mt-6 mb-3">$1</h2>'),e=e.replace(/^#\s+(.+)$/gm,'<h1 class="text-3xl font-bold mt-6 mb-4">$1</h1>'),e=e.replace(/^---+$/gm,'<hr class="my-6 border-gray-300 dark:border-gray-600" />'),e=e.replace(/^>\s+(.+)$/gm,'<blockquote class="border-l-4 border-gray-300 dark:border-gray-600 pl-4 my-4 italic text-gray-600 dark:text-gray-400">$1</blockquote>'),e=e.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>"),e=e.replace(/\*(.+?)\*/g,"<em>$1</em>"),e=e.replace(/~~(.+?)~~/g,'<del class="text-gray-500">$1</del>'),e=e.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" class="text-cyan-600 hover:text-cyan-700 dark:text-cyan-400 dark:hover:text-cyan-300 underline" target="_blank" rel="noopener noreferrer">$1</a>'),e=e.replace(/^[-*]\s+(.+)$/gm,'<li class="ml-4">$1</li>'),e=e.replace(/(<li[^>]*>.*<\/li>\n?)+/g,r=>`<ul class="list-disc list-inside my-4 space-y-1">${r}</ul>`),e=e.replace(/\n(?!<)/g,`<br />
76
76
  `),e=e.replace(/(<br \/>[\n\s]*){3,}/g,`<br /><br />
77
- `),e}function ir(t){return t?t.replace(/```[\s\S]*?```/g,"").replace(/`[^`]+`/g,"").replace(/^#{1,6}\s+/gm,"").replace(/\*\*(.+?)\*\*/g,"$1").replace(/\*(.+?)\*/g,"$1").replace(/~~(.+?)~~/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/^[-*]\s+/gm,"").replace(/^>\s+/gm,"").replace(/^---+$/gm,"").replace(/\n{3,}/g,`
77
+ `),e}function dr(t){return t?t.replace(/```[\s\S]*?```/g,"").replace(/`[^`]+`/g,"").replace(/^#{1,6}\s+/gm,"").replace(/\*\*(.+?)\*\*/g,"$1").replace(/\*(.+?)\*/g,"$1").replace(/~~(.+?)~~/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/^[-*]\s+/gm,"").replace(/^>\s+/gm,"").replace(/^---+$/gm,"").replace(/\n{3,}/g,`
78
78
 
79
- `).trim():""}function yo(t,e=150){let r=ir(t);return r.length<=e?r:r.slice(0,e).trim()+"..."}function lr(t,e,r,o,n){let s=t.slice(e,r),c=t.slice(0,e),b=t.slice(r),g=c+o+s+n+b,l=e+o.length+s.length+n.length;return {text:g,cursorPosition:l}}var gi=[{icon:"bold",label:"bold",markdown:{before:"**",after:"**"},shortcut:"Ctrl+B"},{icon:"italic",label:"italic",markdown:{before:"*",after:"*"},shortcut:"Ctrl+I"},{icon:"strikethrough",label:"strikethrough",markdown:{before:"~~",after:"~~"}},{icon:"heading",label:"heading",markdown:{before:"## ",after:""}},{icon:"link",label:"link",markdown:{before:"[",after:"](url)"},shortcut:"Ctrl+K"},{icon:"image",label:"image",markdown:{before:"![alt](",after:")"}},{icon:"code",label:"code",markdown:{before:"`",after:"`"}},{icon:"fileCode",label:"codeBlock",markdown:{before:"```\n",after:"\n```"}},{icon:"quote",label:"quote",markdown:{before:"> ",after:""}},{icon:"list",label:"list",markdown:{before:"- ",after:""}},{icon:"listOrdered",label:"orderedList",markdown:{before:"1. ",after:""}},{icon:"minus",label:"horizontalRule",markdown:{before:`
79
+ `).trim():""}function Bo(t,e=150){let r=dr(t);return r.length<=e?r:r.slice(0,e).trim()+"..."}function ur(t,e,r,o,n){let s=t.slice(e,r),u=t.slice(0,e),h=t.slice(r),g=u+o+s+n+h,l=e+o.length+s.length+n.length;return {text:g,cursorPosition:l}}var Wi=[{icon:"bold",label:"bold",markdown:{before:"**",after:"**"},shortcut:"Ctrl+B"},{icon:"italic",label:"italic",markdown:{before:"*",after:"*"},shortcut:"Ctrl+I"},{icon:"strikethrough",label:"strikethrough",markdown:{before:"~~",after:"~~"}},{icon:"heading",label:"heading",markdown:{before:"## ",after:""}},{icon:"link",label:"link",markdown:{before:"[",after:"](url)"},shortcut:"Ctrl+K"},{icon:"image",label:"image",markdown:{before:"![alt](",after:")"}},{icon:"code",label:"code",markdown:{before:"`",after:"`"}},{icon:"fileCode",label:"codeBlock",markdown:{before:"```\n",after:"\n```"}},{icon:"quote",label:"quote",markdown:{before:"> ",after:""}},{icon:"list",label:"list",markdown:{before:"- ",after:""}},{icon:"listOrdered",label:"orderedList",markdown:{before:"1. ",after:""}},{icon:"minus",label:"horizontalRule",markdown:{before:`
80
80
  ---
81
- `,after:""}}],Ve=le__default.default.forwardRef(({textareaRef:t,className:e},r)=>{let{labels:o,activeLanguage:n,updateMultilingualField:s,formData:c,features:b}=Z(),g=le.useCallback(l=>{let x=t.current;if(!x)return;let{selectionStart:d,selectionEnd:m}=x,v=c.content[n]||"",{text:u,cursorPosition:a}=lr(v,d,m,l.markdown.before,l.markdown.after);s("content",n,u),requestAnimationFrame(()=>{x.focus(),x.setSelectionRange(a,a);});},[t,c,n,s]);return b.enableMarkdownToolbar?jsxRuntime.jsx("div",{ref:r,className:i("flex flex-wrap gap-1 px-4 py-2 border-b border-border bg-muted",e),role:"toolbar","aria-label":"\uB9C8\uD06C\uB2E4\uC6B4 \uC11C\uC2DD",children:gi.map(l=>jsxRuntime.jsx("button",{type:"button",onClick:()=>g(l),className:"p-2 text-muted-foreground hover:text-foreground hover:bg-muted rounded transition-colors",title:`${o[l.label]||l.label}${l.shortcut?` (${l.shortcut})`:""}`,"aria-label":o[l.label]||l.label,children:jsxRuntime.jsx(M,{name:l.icon,size:16})},l.icon))}):null});Ve.displayName="BlogEditorToolbar";var qe=le__default.default.forwardRef(({renderMarkdown:t,className:e},r)=>{var d,m;let{formData:o,activeLanguage:n,languages:s,labels:c}=Z(),b=((d=s.find(v=>v.isPrimary))==null?void 0:d.key)||((m=s[0])==null?void 0:m.key),g=o.title[n]||o.title[b]||c.noTitle,l=o.content[n]||o.content[b]||"",x=le__default.default.useMemo(()=>t?t(l):jsxRuntime.jsx("div",{dangerouslySetInnerHTML:{__html:Lt(l)}}),[l,t]);return jsxRuntime.jsxs("div",{ref:r,className:i("p-6",e),children:[jsxRuntime.jsx("h3",{className:"text-xl font-bold text-foreground mb-4",children:g}),jsxRuntime.jsx("div",{className:"prose dark:prose-invert max-w-none",children:x})]})});qe.displayName="BlogEditorPreview";var _e=le__default.default.forwardRef(({cancelLink:t,className:e},r)=>{let{labels:o,submitting:n,handleSave:s,handleCancel:c,isEditMode:b,autoSaveStatus:g,features:l}=Z();return jsxRuntime.jsxs("div",{ref:r,className:i("flex items-center justify-end gap-3",e),children:[l.enableAutoSave&&g!=="idle"&&jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground flex items-center gap-1",children:[g==="saving"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"loader",size:14,spin:true}),"\uC800\uC7A5 \uC911..."]}),g==="saved"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"check",size:14}),"\uC790\uB3D9\uC800\uC7A5\uB428"]})]}),t||jsxRuntime.jsx("button",{type:"button",onClick:c,className:"px-4 py-2 text-foreground hover:text-foreground transition-colors",children:o.cancel}),jsxRuntime.jsx("button",{type:"button",onClick:()=>s(false),disabled:n,className:"px-4 py-2 border border-border rounded-lg hover:bg-muted disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:o.saveDraft}),jsxRuntime.jsx("button",{type:"button",onClick:()=>s(true),disabled:n,className:"px-6 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center gap-2 transition-colors",children:n?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"loader",size:16,spin:true}),o.saving]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"check",size:16}),b?o.update:o.publish]})})]})});_e.displayName="BlogEditorActions";var je=le__default.default.forwardRef(({hint:t,className:e},r)=>{var u,a;let{labels:o,translating:n,translateSuccess:s,handleTranslate:c,formData:b,languages:g,features:l}=Z();if(!l.enableTranslation)return null;let x=((u=g.find(h=>h.isPrimary))==null?void 0:u.key)||((a=g[0])==null?void 0:a.key),d=b.title[x]||"",m=b.content[x]||"",v=d&&m;return jsxRuntime.jsxs("div",{ref:r,className:i("px-6 py-3 bg-muted border-b border-border flex items-center justify-between",e),children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx(M,{name:"sparkles",size:16}),jsxRuntime.jsx("span",{children:t||o.translateHint})]}),jsxRuntime.jsx("button",{type:"button",onClick:c,disabled:n||!v,className:i("inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg transition-colors",s?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-primary text-white hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed"),children:n?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"loader",size:16,spin:true}),o.translating]}):s?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"check",size:16}),o.translateSuccess]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"sparkles",size:16}),o.translateButton]})})]})});je.displayName="BlogEditorTranslate";function yi({onBack:t,backLink:e,cancelLink:r,renderMarkdown:o,translateHint:n,maxWidth:s="max-w-4xl",className:c,children:b}){let{showPreview:g,error:l,variant:x,features:d}=Z(),m=le.useRef(null),v=i(x==="glass"?"bg-gradient-to-br from-gray-100 to-gray-200 dark:from-gray-900 dark:to-gray-800":x==="minimal"?"":"bg-muted"),u=i("rounded-xl overflow-hidden",x==="glass"?"bg-white/10 backdrop-blur-sm border border-white/20 dark:bg-slate-800/20 dark:border-slate-700/50":x==="minimal"?"bg-transparent border border-border":"bg-background");return b?jsxRuntime.jsx("div",{className:i(v,c),children:jsxRuntime.jsx("div",{className:i(s,"mx-auto px-4 py-8"),children:b})}):jsxRuntime.jsx("div",{className:i(v,c),children:jsxRuntime.jsxs("div",{className:i(s,"mx-auto px-4 py-8"),children:[jsxRuntime.jsx($e,{onBack:t,backLink:e}),l&&jsxRuntime.jsx("div",{className:"mb-6 p-4 bg-red-50 dark:bg-red-900/30 border border-red-200 dark:border-red-800 rounded-lg text-red-600 dark:text-red-400",children:l}),jsxRuntime.jsxs("div",{className:"space-y-6",children:[jsxRuntime.jsx(ze,{}),jsxRuntime.jsxs("div",{className:u,children:[d.enableTranslation&&jsxRuntime.jsx(je,{hint:n}),jsxRuntime.jsx(Oe,{}),g?jsxRuntime.jsx(qe,{renderMarkdown:o}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d.enableMarkdownToolbar&&jsxRuntime.jsx(Ve,{textareaRef:m}),jsxRuntime.jsx(Fe,{textareaRef:m})]})]}),jsxRuntime.jsx(_e,{cancelLink:r})]})]})})}var ko=le__default.default.forwardRef(({initialData:t,isEditMode:e,languages:r,defaultLanguage:o,labels:n,callbacks:s,features:c,variant:b,onBack:g,backLink:l,cancelLink:x,renderMarkdown:d,translateHint:m,maxWidth:v,className:u,children:a,autoSaveKey:h,autoSaveInterval:p},C)=>jsxRuntime.jsx(Tt,{initialData:t,isEditMode:e,languages:r,defaultLanguage:o,labels:n,callbacks:s,features:c,variant:b,autoSaveKey:h,autoSaveInterval:p,children:jsxRuntime.jsx("div",{ref:C,children:jsxRuntime.jsx(yi,{onBack:g,backLink:l,cancelLink:x,renderMarkdown:d,translateHint:m,maxWidth:v,className:u,children:a})})}));ko.displayName="BlogEditor";var ge=ko;ge.Header=$e;ge.Metadata=ze;ge.LanguageTabs=Oe;ge.Content=Fe;ge.Toolbar=Ve;ge.Preview=qe;ge.Actions=_e;ge.Translate=je;var It={spacing:{md:"1rem",lg:"1.5rem",xl:"2rem"}};var Co="M1.83795 0.0849609C3.16041 -0.269391 4.51968 0.515459 4.87408 1.83789L11.7335 27.4395L17.8184 21.3545L13.9464 6.90332C13.5921 5.58102 14.3771 4.22171 15.6993 3.86719C16.2369 3.72314 16.78 3.76987 17.2598 3.96191C17.3834 3.97561 17.5081 3.99515 17.6319 4.02832L38.1182 9.51855C39.4407 9.87293 40.2255 11.2322 39.8712 12.5547C39.5166 13.8769 38.1574 14.6619 36.835 14.3076L32.9249 13.2598L23.3487 22.8359L24.4893 27.0908C24.8437 28.4133 24.0588 29.7735 22.7364 30.1279C21.4141 30.4822 20.0548 29.6972 19.7003 28.375L19.3008 26.8838L13.3506 32.835C13.3068 32.8789 13.2592 32.9181 13.213 32.958L14.2637 36.8789C14.6179 38.2012 13.8331 39.5606 12.5108 39.915C11.1884 40.2694 9.82913 39.4845 9.47467 38.1621L0.085022 3.12109C-0.269246 1.79868 0.515578 0.439365 1.83795 0.0849609ZM21.8672 17.3057L27.3946 11.7773L19.8438 9.75488L21.8672 17.3057Z",Ci="M40.8865 0.0761719C41.2577 0.0762268 41.5614 0.211458 41.7976 0.481445C42.0507 0.751482 42.1605 1.08058 42.1267 1.46875L39.823 23.165C39.5361 25.933 40.042 28.0937 41.3416 29.6465C42.658 31.1823 44.5825 31.9502 47.114 31.9502C49.8482 31.9502 51.9919 31.1984 53.5447 29.6963C55.1142 28.1942 56.059 25.9832 56.3796 23.0635L58.6833 1.19043C58.7171 0.886659 58.8524 0.624671 59.0886 0.405273C59.3418 0.185863 59.6293 0.0761719 59.95 0.0761719H62.6589C63.0132 0.0762861 63.3085 0.211518 63.5447 0.481445C63.7978 0.751463 63.899 1.07211 63.8484 1.44336L61.4685 24.0254C61.0466 28.0084 59.5278 31.1565 56.9119 33.4688C54.2958 35.7641 50.9029 36.9121 46.7341 36.9121C42.6667 36.9121 39.5025 35.7215 37.241 33.3418C34.9794 30.962 34.0593 27.7639 34.4812 23.7471L36.8865 1.21582C36.9034 0.912022 37.0301 0.650074 37.2664 0.430664C37.5195 0.194523 37.8061 0.0761804 38.1267 0.0761719H40.8865ZM157.419 0.0761719C157.756 0.0762579 158.026 0.203032 158.228 0.456055C158.448 0.709181 158.532 1.01283 158.481 1.36719L156.502 12.4541C157.226 11.6092 158.164 10.9091 159.317 10.3545C160.667 9.71319 162.127 9.39258 163.697 9.39258C166.279 9.39262 168.355 10.3468 169.925 12.2539C171.494 14.1611 172.01 16.6756 171.469 19.7979L170.33 26.2539C169.756 29.5448 168.439 32.1437 166.381 34.0508C164.322 35.958 161.941 36.9121 159.241 36.9121C157.553 36.9121 156.102 36.5404 154.886 35.7979C153.815 35.1281 153.052 34.2874 152.597 33.2764L152.127 35.7979C152.093 36.0004 151.983 36.1857 151.798 36.3545C151.612 36.5063 151.393 36.583 151.139 36.583H148.861C148.524 36.5829 148.245 36.4561 148.026 36.2031C147.824 35.9501 147.756 35.6547 147.823 35.3174L153.899 1.0127C153.933 0.75964 154.06 0.540084 154.279 0.354492C154.498 0.168895 154.735 0.0761719 154.988 0.0761719H157.419ZM139.621 9.39258C142.203 9.39258 144.178 10.135 145.545 11.6201C146.929 13.1053 147.401 15.0885 146.963 17.5693L143.748 35.6455C143.714 35.8986 143.587 36.1181 143.368 36.3037C143.165 36.4894 142.92 36.582 142.634 36.582H140.33C140.026 36.582 139.773 36.4723 139.57 36.2529C139.368 36.0336 139.292 35.7723 139.343 35.4688L139.753 33.2568C138.858 34.4755 137.845 35.3911 136.71 36C135.562 36.6076 134.279 36.9111 132.861 36.9111C130.684 36.9111 128.987 36.27 127.772 34.9873C126.574 33.7047 126.161 31.9917 126.532 29.8486L127.09 26.6582C127.478 24.4306 128.515 22.6923 130.203 21.4434C131.891 20.1945 133.992 19.5694 136.507 19.5693C137.452 19.5693 138.389 19.6961 139.317 19.9492C140.245 20.1855 141.047 20.5316 141.722 20.9873L142.304 17.5947C142.541 16.2448 142.296 15.2156 141.57 14.5068C140.844 13.798 139.883 13.4434 138.684 13.4434C137.959 13.4434 137.3 13.5616 136.71 13.7979C136.136 14.0341 135.603 14.3547 135.114 14.7598C134.625 15.1479 134.161 15.6209 133.722 16.1777C133.301 16.7174 132.98 17.004 132.76 17.0381C132.541 17.0718 132.329 17.0293 132.127 16.9111L130.456 15.8486C130.27 15.7305 130.144 15.5527 130.077 15.3164C130.026 15.0801 130.254 14.5742 130.76 13.7979C131.284 13.0046 131.983 12.2613 132.861 11.5693C133.739 10.8605 134.726 10.3205 135.823 9.94922C136.937 9.57791 138.203 9.39258 139.621 9.39258ZM184.457 9.39258C185.587 9.39262 186.592 9.57795 187.469 9.94922C188.347 10.3205 189.064 10.8862 189.621 11.6455C190.195 12.405 190.566 13.1142 190.735 13.7725C190.921 14.4305 190.962 14.878 190.861 15.1143C190.76 15.3503 190.6 15.5104 190.381 15.5947L188.431 16.4307C188.178 16.5319 187.942 16.5489 187.722 16.4814C187.52 16.3971 187.318 16.1181 187.115 15.6455C186.912 15.173 186.659 14.7512 186.355 14.3799C186.068 13.9917 185.714 13.7127 185.292 13.5439C184.87 13.3584 184.355 13.2656 183.748 13.2656C182.803 13.2656 181.975 13.5105 181.266 14C180.574 14.4726 180.144 15.1818 179.975 16.127L179.899 16.5312C179.747 17.4931 179.866 18.2782 180.254 18.8857C180.659 19.4764 181.882 20.3124 183.925 21.3926C186.22 22.5065 187.74 23.6375 188.482 24.7852C189.225 25.9328 189.41 27.5113 189.039 29.5195L189.013 29.6963C188.558 32.2279 187.478 34.0681 185.773 35.2158C184.085 36.3466 182.119 36.9111 179.874 36.9111C178.406 36.9111 177.132 36.6671 176.052 36.1777C174.988 35.6714 174.169 34.9962 173.595 34.1523C173.038 33.3085 172.692 32.4981 172.557 31.7217C172.422 30.9453 172.422 30.4555 172.557 30.2529C172.692 30.0336 172.879 29.8822 173.115 29.7979L175.14 29.0381C175.377 28.9707 175.596 28.9791 175.799 29.0635C176.018 29.1481 176.22 29.4943 176.406 30.1016C176.609 30.6922 176.853 31.2067 177.14 31.6455C177.444 32.0843 177.857 32.4304 178.381 32.6836C178.921 32.9199 179.604 33.0381 180.431 33.0381C181.427 33.038 182.296 32.7761 183.039 32.2529C183.798 31.7297 184.263 30.9788 184.431 30L184.507 29.6709C184.692 28.6584 184.625 27.8232 184.304 27.165C183.984 26.4899 182.954 25.671 181.216 24.709C178.684 23.477 177.004 22.2532 176.177 21.0381C175.367 19.8061 175.115 18.3884 175.419 16.7852L175.545 16.1523C175.916 13.9751 176.879 12.3042 178.431 11.1396C180.001 9.97511 182.01 9.39258 184.457 9.39258ZM7.92456 0.0507812C8.3294 0.0508971 8.6588 0.202195 8.91187 0.505859C9.16494 0.792681 9.26609 1.13054 9.21558 1.51855L7.72632 15.5439H25.7742L27.2917 1.24023C27.3255 0.936656 27.4685 0.666822 27.7214 0.430664C27.9746 0.177499 28.2706 0.0507812 28.6082 0.0507812H31.4685C31.8566 0.0507849 32.1773 0.202255 32.4304 0.505859C32.7004 0.792695 32.81 1.13051 32.7595 1.51855L29.1648 35.418C29.131 35.7217 28.9872 35.9998 28.7341 36.2529C28.481 36.4892 28.1859 36.6074 27.8484 36.6074H24.9871C24.5822 36.6073 24.2528 36.4645 23.9998 36.1777C23.7467 35.874 23.6455 35.5277 23.696 35.1396L25.2371 20.6074H7.18921L5.61987 35.3926C5.60297 35.7131 5.46 35.9999 5.19019 36.2529C4.93702 36.4892 4.64953 36.6074 4.32886 36.6074H1.44312C1.05506 36.6074 0.725803 36.4645 0.455811 36.1777C0.202712 35.874 0.10156 35.5277 0.1521 35.1396L3.74683 1.26562C3.7806 0.945022 3.92439 0.666913 4.17749 0.430664C4.43063 0.177522 4.72572 0.0508046 5.06323 0.0507812H7.92456ZM81.2156 0.0507812C81.57 0.050791 81.8821 0.168994 82.1521 0.405273C82.4389 0.624614 82.6328 0.902832 82.7341 1.24023L92.4304 34.9111C92.5654 35.3837 92.5068 35.7894 92.2537 36.127C92.0005 36.4475 91.6458 36.6074 91.1902 36.6074H88.2283C87.9414 36.6074 87.6709 36.5148 87.4177 36.3291C87.1816 36.1266 87.0301 35.8986 86.9626 35.6455L84.6492 27.3418H69.4958L65.3171 35.8232C65.2159 36.0426 65.055 36.228 64.8357 36.3799C64.6163 36.5149 64.3799 36.582 64.1267 36.582H61.1394C60.6838 36.582 60.3376 36.3967 60.1013 36.0254C59.8651 35.6542 59.8652 35.2407 60.1013 34.7852L77.0632 1.0127C77.2151 0.708897 77.4185 0.472488 77.6716 0.303711C77.9416 0.135061 78.2453 0.0507812 78.5828 0.0507812H81.2156ZM111.368 0.0507812C111.773 0.050882 112.102 0.210697 112.355 0.53125C112.608 0.835009 112.692 1.18973 112.608 1.59473L107.368 31.3672H122.634C123.039 31.3672 123.359 31.511 123.595 31.7979C123.832 32.0847 123.916 32.4139 123.848 32.7852L123.368 35.418C123.334 35.7048 123.19 35.9498 122.937 36.1523C122.701 36.3548 122.439 36.4561 122.152 36.4561H102.405C102.017 36.456 101.696 36.3207 101.443 36.0508C101.207 35.7639 101.123 35.4177 101.19 35.0127L107.19 1.13965C107.241 0.869608 107.393 0.624683 107.646 0.405273C107.899 0.169049 108.177 0.0508458 108.481 0.0507812H111.368ZM136.81 23.0889C135.41 23.0889 134.254 23.384 133.343 23.9746C132.431 24.5653 131.883 25.4346 131.697 26.582L131.165 29.5947C130.979 30.6747 131.182 31.4938 131.772 32.0508C132.363 32.6077 133.283 32.8867 134.532 32.8867C136.085 32.8867 137.418 32.3295 138.532 31.2158C139.663 30.085 140.304 28.9115 140.456 27.6963L141.013 24.6328C140.676 24.1266 140.127 23.7473 139.368 23.4941C138.608 23.2241 137.755 23.0889 136.81 23.0889ZM162.052 13.8232C160.364 13.8232 158.853 14.3972 157.519 15.5449C156.186 16.6757 155.351 18.1946 155.013 20.1016L153.925 26.2793C153.604 28.085 153.857 29.5784 154.684 30.7598C155.511 31.9243 156.836 32.5068 158.659 32.5068C160.296 32.5068 161.782 31.9584 163.115 30.8613C164.465 29.7475 165.3 28.2115 165.621 26.2539L166.71 20.0762C167.047 18.1353 166.785 16.608 165.925 15.4941C165.064 14.3803 163.773 13.8233 162.052 13.8232ZM79.0134 8.02539L71.5916 23.0889H83.4636L79.2664 8.02539L79.1902 7.64551L79.0134 8.02539Z";function Ti(t){return typeof t=="number"?`${t}rem`:{sm:It.spacing.md,md:It.spacing.lg,lg:It.spacing.xl}[t]}function Ni({variant:t="symbol",size:e="md",animated:r=false,className:o,...n}){let s=Ti(e);if(le.useEffect(()=>{if(!r)return;let b="hua-logo-animation";if(document.getElementById(b))return;let g=document.createElement("style");return g.id=b,g.textContent=`
81
+ `,after:""}}],Ve=le__default.default.forwardRef(({textareaRef:t,className:e},r)=>{let{labels:o,activeLanguage:n,updateMultilingualField:s,formData:u,features:h}=Z(),g=le.useCallback(l=>{let x=t.current;if(!x)return;let{selectionStart:m,selectionEnd:c}=x,v=u.content[n]||"",{text:d,cursorPosition:a}=ur(v,m,c,l.markdown.before,l.markdown.after);s("content",n,d),requestAnimationFrame(()=>{x.focus(),x.setSelectionRange(a,a);});},[t,u,n,s]);return h.enableMarkdownToolbar?jsxRuntime.jsx("div",{ref:r,className:i("flex flex-wrap gap-1 px-4 py-2 border-b border-border bg-muted",e),role:"toolbar","aria-label":"\uB9C8\uD06C\uB2E4\uC6B4 \uC11C\uC2DD",children:Wi.map(l=>jsxRuntime.jsx("button",{type:"button",onClick:()=>g(l),className:"p-2 text-muted-foreground hover:text-foreground hover:bg-muted rounded transition-colors",title:`${o[l.label]||l.label}${l.shortcut?` (${l.shortcut})`:""}`,"aria-label":o[l.label]||l.label,children:jsxRuntime.jsx(M,{name:l.icon,size:16})},l.icon))}):null});Ve.displayName="BlogEditorToolbar";var qe=le__default.default.forwardRef(({renderMarkdown:t,className:e},r)=>{var m,c;let{formData:o,activeLanguage:n,languages:s,labels:u}=Z(),h=((m=s.find(v=>v.isPrimary))==null?void 0:m.key)||((c=s[0])==null?void 0:c.key),g=o.title[n]||o.title[h]||u.noTitle,l=o.content[n]||o.content[h]||"",x=le__default.default.useMemo(()=>t?t(l):jsxRuntime.jsx("div",{dangerouslySetInnerHTML:{__html:Mt(l)}}),[l,t]);return jsxRuntime.jsxs("div",{ref:r,className:i("p-6",e),children:[jsxRuntime.jsx("h3",{className:"text-xl font-bold text-foreground mb-4",children:g}),jsxRuntime.jsx("div",{className:"prose dark:prose-invert max-w-none",children:x})]})});qe.displayName="BlogEditorPreview";var _e=le__default.default.forwardRef(({cancelLink:t,className:e},r)=>{let{labels:o,submitting:n,handleSave:s,handleCancel:u,isEditMode:h,autoSaveStatus:g,features:l}=Z();return jsxRuntime.jsxs("div",{ref:r,className:i("flex items-center justify-end gap-3",e),children:[l.enableAutoSave&&g!=="idle"&&jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground flex items-center gap-1",children:[g==="saving"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"loader",size:14,spin:true}),"\uC800\uC7A5 \uC911..."]}),g==="saved"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"check",size:14}),"\uC790\uB3D9\uC800\uC7A5\uB428"]})]}),t||jsxRuntime.jsx("button",{type:"button",onClick:u,className:"px-4 py-2 text-foreground hover:text-foreground transition-colors",children:o.cancel}),jsxRuntime.jsx("button",{type:"button",onClick:()=>s(false),disabled:n,className:"px-4 py-2 border border-border rounded-lg hover:bg-muted disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:o.saveDraft}),jsxRuntime.jsx("button",{type:"button",onClick:()=>s(true),disabled:n,className:"px-6 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center gap-2 transition-colors",children:n?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"loader",size:16,spin:true}),o.saving]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"check",size:16}),h?o.update:o.publish]})})]})});_e.displayName="BlogEditorActions";var je=le__default.default.forwardRef(({hint:t,className:e},r)=>{var d,a;let{labels:o,translating:n,translateSuccess:s,handleTranslate:u,formData:h,languages:g,features:l}=Z();if(!l.enableTranslation)return null;let x=((d=g.find(f=>f.isPrimary))==null?void 0:d.key)||((a=g[0])==null?void 0:a.key),m=h.title[x]||"",c=h.content[x]||"",v=m&&c;return jsxRuntime.jsxs("div",{ref:r,className:i("px-6 py-3 bg-muted border-b border-border flex items-center justify-between",e),children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx(M,{name:"sparkles",size:16}),jsxRuntime.jsx("span",{children:t||o.translateHint})]}),jsxRuntime.jsx("button",{type:"button",onClick:u,disabled:n||!v,className:i("inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-lg transition-colors",s?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-primary text-white hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed"),children:n?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"loader",size:16,spin:true}),o.translating]}):s?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"check",size:16}),o.translateSuccess]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{name:"sparkles",size:16}),o.translateButton]})})]})});je.displayName="BlogEditorTranslate";function Ki({onBack:t,backLink:e,cancelLink:r,renderMarkdown:o,translateHint:n,maxWidth:s="max-w-4xl",className:u,children:h}){let{showPreview:g,error:l,variant:x,features:m}=Z(),c=le.useRef(null),v=i(x==="glass"?"bg-gradient-to-br from-gray-100 to-gray-200 dark:from-gray-900 dark:to-gray-800":x==="minimal"?"":"bg-muted"),d=i("rounded-xl overflow-hidden",x==="glass"?"bg-white/10 backdrop-blur-sm border border-white/20 dark:bg-slate-800/20 dark:border-slate-700/50":x==="minimal"?"bg-transparent border border-border":"bg-background");return h?jsxRuntime.jsx("div",{className:i(v,u),children:jsxRuntime.jsx("div",{className:i(s,"mx-auto px-4 py-8"),children:h})}):jsxRuntime.jsx("div",{className:i(v,u),children:jsxRuntime.jsxs("div",{className:i(s,"mx-auto px-4 py-8"),children:[jsxRuntime.jsx(ze,{onBack:t,backLink:e}),l&&jsxRuntime.jsx("div",{className:"mb-6 p-4 bg-red-50 dark:bg-red-900/30 border border-red-200 dark:border-red-800 rounded-lg text-red-600 dark:text-red-400",children:l}),jsxRuntime.jsxs("div",{className:"space-y-6",children:[jsxRuntime.jsx($e,{}),jsxRuntime.jsxs("div",{className:d,children:[m.enableTranslation&&jsxRuntime.jsx(je,{hint:n}),jsxRuntime.jsx(Oe,{}),g?jsxRuntime.jsx(qe,{renderMarkdown:o}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[m.enableMarkdownToolbar&&jsxRuntime.jsx(Ve,{textareaRef:c}),jsxRuntime.jsx(Fe,{textareaRef:c})]})]}),jsxRuntime.jsx(_e,{cancelLink:r})]})]})})}var Ao=le__default.default.forwardRef(({initialData:t,isEditMode:e,languages:r,defaultLanguage:o,labels:n,callbacks:s,features:u,variant:h,onBack:g,backLink:l,cancelLink:x,renderMarkdown:m,translateHint:c,maxWidth:v,className:d,children:a,autoSaveKey:f,autoSaveInterval:p},w)=>jsxRuntime.jsx(Nt,{initialData:t,isEditMode:e,languages:r,defaultLanguage:o,labels:n,callbacks:s,features:u,variant:h,autoSaveKey:f,autoSaveInterval:p,children:jsxRuntime.jsx("div",{ref:w,children:jsxRuntime.jsx(Ki,{onBack:g,backLink:l,cancelLink:x,renderMarkdown:m,translateHint:c,maxWidth:v,className:d,children:a})})}));Ao.displayName="BlogEditor";var ge=Ao;ge.Header=ze;ge.Metadata=$e;ge.LanguageTabs=Oe;ge.Content=Fe;ge.Toolbar=Ve;ge.Preview=qe;ge.Actions=_e;ge.Translate=je;var Bt={spacing:{md:"1rem",lg:"1.5rem",xl:"2rem"}};var Do="M1.83795 0.0849609C3.16041 -0.269391 4.51968 0.515459 4.87408 1.83789L11.7335 27.4395L17.8184 21.3545L13.9464 6.90332C13.5921 5.58102 14.3771 4.22171 15.6993 3.86719C16.2369 3.72314 16.78 3.76987 17.2598 3.96191C17.3834 3.97561 17.5081 3.99515 17.6319 4.02832L38.1182 9.51855C39.4407 9.87293 40.2255 11.2322 39.8712 12.5547C39.5166 13.8769 38.1574 14.6619 36.835 14.3076L32.9249 13.2598L23.3487 22.8359L24.4893 27.0908C24.8437 28.4133 24.0588 29.7735 22.7364 30.1279C21.4141 30.4822 20.0548 29.6972 19.7003 28.375L19.3008 26.8838L13.3506 32.835C13.3068 32.8789 13.2592 32.9181 13.213 32.958L14.2637 36.8789C14.6179 38.2012 13.8331 39.5606 12.5108 39.915C11.1884 40.2694 9.82913 39.4845 9.47467 38.1621L0.085022 3.12109C-0.269246 1.79868 0.515578 0.439365 1.83795 0.0849609ZM21.8672 17.3057L27.3946 11.7773L19.8438 9.75488L21.8672 17.3057Z",el="M40.8865 0.0761719C41.2577 0.0762268 41.5614 0.211458 41.7976 0.481445C42.0507 0.751482 42.1605 1.08058 42.1267 1.46875L39.823 23.165C39.5361 25.933 40.042 28.0937 41.3416 29.6465C42.658 31.1823 44.5825 31.9502 47.114 31.9502C49.8482 31.9502 51.9919 31.1984 53.5447 29.6963C55.1142 28.1942 56.059 25.9832 56.3796 23.0635L58.6833 1.19043C58.7171 0.886659 58.8524 0.624671 59.0886 0.405273C59.3418 0.185863 59.6293 0.0761719 59.95 0.0761719H62.6589C63.0132 0.0762861 63.3085 0.211518 63.5447 0.481445C63.7978 0.751463 63.899 1.07211 63.8484 1.44336L61.4685 24.0254C61.0466 28.0084 59.5278 31.1565 56.9119 33.4688C54.2958 35.7641 50.9029 36.9121 46.7341 36.9121C42.6667 36.9121 39.5025 35.7215 37.241 33.3418C34.9794 30.962 34.0593 27.7639 34.4812 23.7471L36.8865 1.21582C36.9034 0.912022 37.0301 0.650074 37.2664 0.430664C37.5195 0.194523 37.8061 0.0761804 38.1267 0.0761719H40.8865ZM157.419 0.0761719C157.756 0.0762579 158.026 0.203032 158.228 0.456055C158.448 0.709181 158.532 1.01283 158.481 1.36719L156.502 12.4541C157.226 11.6092 158.164 10.9091 159.317 10.3545C160.667 9.71319 162.127 9.39258 163.697 9.39258C166.279 9.39262 168.355 10.3468 169.925 12.2539C171.494 14.1611 172.01 16.6756 171.469 19.7979L170.33 26.2539C169.756 29.5448 168.439 32.1437 166.381 34.0508C164.322 35.958 161.941 36.9121 159.241 36.9121C157.553 36.9121 156.102 36.5404 154.886 35.7979C153.815 35.1281 153.052 34.2874 152.597 33.2764L152.127 35.7979C152.093 36.0004 151.983 36.1857 151.798 36.3545C151.612 36.5063 151.393 36.583 151.139 36.583H148.861C148.524 36.5829 148.245 36.4561 148.026 36.2031C147.824 35.9501 147.756 35.6547 147.823 35.3174L153.899 1.0127C153.933 0.75964 154.06 0.540084 154.279 0.354492C154.498 0.168895 154.735 0.0761719 154.988 0.0761719H157.419ZM139.621 9.39258C142.203 9.39258 144.178 10.135 145.545 11.6201C146.929 13.1053 147.401 15.0885 146.963 17.5693L143.748 35.6455C143.714 35.8986 143.587 36.1181 143.368 36.3037C143.165 36.4894 142.92 36.582 142.634 36.582H140.33C140.026 36.582 139.773 36.4723 139.57 36.2529C139.368 36.0336 139.292 35.7723 139.343 35.4688L139.753 33.2568C138.858 34.4755 137.845 35.3911 136.71 36C135.562 36.6076 134.279 36.9111 132.861 36.9111C130.684 36.9111 128.987 36.27 127.772 34.9873C126.574 33.7047 126.161 31.9917 126.532 29.8486L127.09 26.6582C127.478 24.4306 128.515 22.6923 130.203 21.4434C131.891 20.1945 133.992 19.5694 136.507 19.5693C137.452 19.5693 138.389 19.6961 139.317 19.9492C140.245 20.1855 141.047 20.5316 141.722 20.9873L142.304 17.5947C142.541 16.2448 142.296 15.2156 141.57 14.5068C140.844 13.798 139.883 13.4434 138.684 13.4434C137.959 13.4434 137.3 13.5616 136.71 13.7979C136.136 14.0341 135.603 14.3547 135.114 14.7598C134.625 15.1479 134.161 15.6209 133.722 16.1777C133.301 16.7174 132.98 17.004 132.76 17.0381C132.541 17.0718 132.329 17.0293 132.127 16.9111L130.456 15.8486C130.27 15.7305 130.144 15.5527 130.077 15.3164C130.026 15.0801 130.254 14.5742 130.76 13.7979C131.284 13.0046 131.983 12.2613 132.861 11.5693C133.739 10.8605 134.726 10.3205 135.823 9.94922C136.937 9.57791 138.203 9.39258 139.621 9.39258ZM184.457 9.39258C185.587 9.39262 186.592 9.57795 187.469 9.94922C188.347 10.3205 189.064 10.8862 189.621 11.6455C190.195 12.405 190.566 13.1142 190.735 13.7725C190.921 14.4305 190.962 14.878 190.861 15.1143C190.76 15.3503 190.6 15.5104 190.381 15.5947L188.431 16.4307C188.178 16.5319 187.942 16.5489 187.722 16.4814C187.52 16.3971 187.318 16.1181 187.115 15.6455C186.912 15.173 186.659 14.7512 186.355 14.3799C186.068 13.9917 185.714 13.7127 185.292 13.5439C184.87 13.3584 184.355 13.2656 183.748 13.2656C182.803 13.2656 181.975 13.5105 181.266 14C180.574 14.4726 180.144 15.1818 179.975 16.127L179.899 16.5312C179.747 17.4931 179.866 18.2782 180.254 18.8857C180.659 19.4764 181.882 20.3124 183.925 21.3926C186.22 22.5065 187.74 23.6375 188.482 24.7852C189.225 25.9328 189.41 27.5113 189.039 29.5195L189.013 29.6963C188.558 32.2279 187.478 34.0681 185.773 35.2158C184.085 36.3466 182.119 36.9111 179.874 36.9111C178.406 36.9111 177.132 36.6671 176.052 36.1777C174.988 35.6714 174.169 34.9962 173.595 34.1523C173.038 33.3085 172.692 32.4981 172.557 31.7217C172.422 30.9453 172.422 30.4555 172.557 30.2529C172.692 30.0336 172.879 29.8822 173.115 29.7979L175.14 29.0381C175.377 28.9707 175.596 28.9791 175.799 29.0635C176.018 29.1481 176.22 29.4943 176.406 30.1016C176.609 30.6922 176.853 31.2067 177.14 31.6455C177.444 32.0843 177.857 32.4304 178.381 32.6836C178.921 32.9199 179.604 33.0381 180.431 33.0381C181.427 33.038 182.296 32.7761 183.039 32.2529C183.798 31.7297 184.263 30.9788 184.431 30L184.507 29.6709C184.692 28.6584 184.625 27.8232 184.304 27.165C183.984 26.4899 182.954 25.671 181.216 24.709C178.684 23.477 177.004 22.2532 176.177 21.0381C175.367 19.8061 175.115 18.3884 175.419 16.7852L175.545 16.1523C175.916 13.9751 176.879 12.3042 178.431 11.1396C180.001 9.97511 182.01 9.39258 184.457 9.39258ZM7.92456 0.0507812C8.3294 0.0508971 8.6588 0.202195 8.91187 0.505859C9.16494 0.792681 9.26609 1.13054 9.21558 1.51855L7.72632 15.5439H25.7742L27.2917 1.24023C27.3255 0.936656 27.4685 0.666822 27.7214 0.430664C27.9746 0.177499 28.2706 0.0507812 28.6082 0.0507812H31.4685C31.8566 0.0507849 32.1773 0.202255 32.4304 0.505859C32.7004 0.792695 32.81 1.13051 32.7595 1.51855L29.1648 35.418C29.131 35.7217 28.9872 35.9998 28.7341 36.2529C28.481 36.4892 28.1859 36.6074 27.8484 36.6074H24.9871C24.5822 36.6073 24.2528 36.4645 23.9998 36.1777C23.7467 35.874 23.6455 35.5277 23.696 35.1396L25.2371 20.6074H7.18921L5.61987 35.3926C5.60297 35.7131 5.46 35.9999 5.19019 36.2529C4.93702 36.4892 4.64953 36.6074 4.32886 36.6074H1.44312C1.05506 36.6074 0.725803 36.4645 0.455811 36.1777C0.202712 35.874 0.10156 35.5277 0.1521 35.1396L3.74683 1.26562C3.7806 0.945022 3.92439 0.666913 4.17749 0.430664C4.43063 0.177522 4.72572 0.0508046 5.06323 0.0507812H7.92456ZM81.2156 0.0507812C81.57 0.050791 81.8821 0.168994 82.1521 0.405273C82.4389 0.624614 82.6328 0.902832 82.7341 1.24023L92.4304 34.9111C92.5654 35.3837 92.5068 35.7894 92.2537 36.127C92.0005 36.4475 91.6458 36.6074 91.1902 36.6074H88.2283C87.9414 36.6074 87.6709 36.5148 87.4177 36.3291C87.1816 36.1266 87.0301 35.8986 86.9626 35.6455L84.6492 27.3418H69.4958L65.3171 35.8232C65.2159 36.0426 65.055 36.228 64.8357 36.3799C64.6163 36.5149 64.3799 36.582 64.1267 36.582H61.1394C60.6838 36.582 60.3376 36.3967 60.1013 36.0254C59.8651 35.6542 59.8652 35.2407 60.1013 34.7852L77.0632 1.0127C77.2151 0.708897 77.4185 0.472488 77.6716 0.303711C77.9416 0.135061 78.2453 0.0507812 78.5828 0.0507812H81.2156ZM111.368 0.0507812C111.773 0.050882 112.102 0.210697 112.355 0.53125C112.608 0.835009 112.692 1.18973 112.608 1.59473L107.368 31.3672H122.634C123.039 31.3672 123.359 31.511 123.595 31.7979C123.832 32.0847 123.916 32.4139 123.848 32.7852L123.368 35.418C123.334 35.7048 123.19 35.9498 122.937 36.1523C122.701 36.3548 122.439 36.4561 122.152 36.4561H102.405C102.017 36.456 101.696 36.3207 101.443 36.0508C101.207 35.7639 101.123 35.4177 101.19 35.0127L107.19 1.13965C107.241 0.869608 107.393 0.624683 107.646 0.405273C107.899 0.169049 108.177 0.0508458 108.481 0.0507812H111.368ZM136.81 23.0889C135.41 23.0889 134.254 23.384 133.343 23.9746C132.431 24.5653 131.883 25.4346 131.697 26.582L131.165 29.5947C130.979 30.6747 131.182 31.4938 131.772 32.0508C132.363 32.6077 133.283 32.8867 134.532 32.8867C136.085 32.8867 137.418 32.3295 138.532 31.2158C139.663 30.085 140.304 28.9115 140.456 27.6963L141.013 24.6328C140.676 24.1266 140.127 23.7473 139.368 23.4941C138.608 23.2241 137.755 23.0889 136.81 23.0889ZM162.052 13.8232C160.364 13.8232 158.853 14.3972 157.519 15.5449C156.186 16.6757 155.351 18.1946 155.013 20.1016L153.925 26.2793C153.604 28.085 153.857 29.5784 154.684 30.7598C155.511 31.9243 156.836 32.5068 158.659 32.5068C160.296 32.5068 161.782 31.9584 163.115 30.8613C164.465 29.7475 165.3 28.2115 165.621 26.2539L166.71 20.0762C167.047 18.1353 166.785 16.608 165.925 15.4941C165.064 14.3803 163.773 13.8233 162.052 13.8232ZM79.0134 8.02539L71.5916 23.0889H83.4636L79.2664 8.02539L79.1902 7.64551L79.0134 8.02539Z";function tl(t){return typeof t=="number"?`${t}rem`:{sm:Bt.spacing.md,md:Bt.spacing.lg,lg:Bt.spacing.xl}[t]}function rl({variant:t="symbol",size:e="md",animated:r=false,className:o,...n}){let s=tl(e);if(le.useEffect(()=>{if(!r)return;let h="hua-logo-animation";if(document.getElementById(h))return;let g=document.createElement("style");return g.id=h,g.textContent=`
82
82
  @keyframes hua-logo-draw {
83
83
  from {
84
84
  stroke-dashoffset: 1000;
@@ -107,6 +107,6 @@
107
107
  fill: none;
108
108
  animation: hua-logo-draw-wordmark 2s ease-in-out 0.5s forwards;
109
109
  }
110
- `,document.head.appendChild(g),()=>{let l=document.getElementById(b);l&&l.remove();}},[r]),t==="symbol")return jsxRuntime.jsx("svg",{width:s,height:s,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("text-foreground",o),children:jsxRuntime.jsx("path",{d:Co,fill:r?"none":"currentColor",stroke:r?"currentColor":"none",strokeWidth:r?"0.5":void 0,strokeLinecap:"round",strokeLinejoin:"round",className:r?"hua-logo-path":void 0})});let c=152/37;return jsxRuntime.jsxs("div",{className:i("inline-flex items-center gap-1 flex-shrink-0 min-w-max",o),...n,children:[jsxRuntime.jsx("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"flex-shrink-0",style:{width:s,height:s},children:jsxRuntime.jsx("path",{d:Co,fill:r?"none":"currentColor",stroke:r?"currentColor":"none",strokeWidth:r?"0.5":void 0,strokeLinecap:"round",strokeLinejoin:"round",className:r?"hua-logo-path":void 0})}),jsxRuntime.jsx("svg",{viewBox:"40 0 152 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"flex-shrink-0",style:{height:s,width:`calc(${s} * ${c})`},children:jsxRuntime.jsx("path",{d:Ci,fill:r?"none":"currentColor",stroke:r?"currentColor":"none",strokeWidth:r?"0.5":void 0,strokeLinecap:"round",strokeLinejoin:"round",className:r?"hua-logo-wordmark":void 0})})]})}var No=le__default.default.forwardRef(({className:t,id:e,storageKey:r="bookmarks",defaultBookmarked:o=false,onBookmarkChange:n,size:s="md",variant:c="default",...b},g)=>{let[l,x]=le.useState(o);le.useEffect(()=>{let u=localStorage.getItem(r);if(u){let a=JSON.parse(u);x(a.includes(e));}},[e,r]);let d=()=>{let u=!l;x(u);let a=localStorage.getItem(r),h=a?JSON.parse(a):[];if(u)h.includes(e)||h.push(e);else {let p=h.indexOf(e);p>-1&&h.splice(p,1);}localStorage.setItem(r,JSON.stringify(h)),n==null||n(u);},m={sm:"w-6 h-6",md:"w-8 h-8",lg:"w-10 h-10"},v={default:"text-muted-foreground hover:text-yellow-500 transition-colors",filled:"text-yellow-500 hover:text-yellow-600 transition-colors",outline:"border border-border text-muted-foreground hover:text-yellow-500 hover:border-yellow-500 transition-colors rounded"};return jsxRuntime.jsx("button",{ref:g,onClick:d,className:i("flex items-center justify-center transition-colors duration-200 ease-in-out focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-yellow-500 focus-visible:ring-offset-2",m[s],v[c],t),...b,children:jsxRuntime.jsx(M,{name:"star",className:i("transition-all duration-200",l&&"fill-current")})})});No.displayName="Bookmark";var Ii=classVarianceAuthority.cva("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-12 h-12 text-base"},variant:{default:"",glass:"ring-1 ring-white/30 backdrop-blur-sm"}},defaultVariants:{size:"md",variant:"default"}}),dt=le__default.default.forwardRef(({className:t,size:e="md",variant:r="default",src:o,alt:n,fallbackText:s,children:c,...b},g)=>{let[l,x]=le.useState(false),d=()=>s||c||(n?n.charAt(0).toUpperCase():"U"),m=o&&!l;return jsxRuntime.jsx("div",{ref:g,className:i(Ii({size:e,variant:r}),t),...b,children:m?jsxRuntime.jsx(Xe,{src:o,alt:n||"avatar",onError:()=>x(true)}):jsxRuntime.jsx(Ye,{children:d()})})});dt.displayName="Avatar";var Xe=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("img",{ref:r,className:i("aspect-square h-full w-full object-cover object-center",t),...e}));Xe.displayName="AvatarImage";var Ye=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex h-full w-full items-center justify-center rounded-full bg-primary text-primary-foreground font-semibold",t),...e}));Ye.displayName="AvatarFallback";var Eo=le__default.default.forwardRef(({className:t,message:e,user:r={name:"\uC0AC\uC6A9\uC790",color:"#3b82f6"},assistant:o={name:"AI",color:"#10b981"},showAvatar:n=true,showTimestamp:s=true,showEmotion:c=true,variant:b="default",theme:g={userBubbleBg:"#3b82f6",userBubbleText:"#ffffff",aiBubbleBg:"#f3f4f6",aiBubbleText:"#1f2937"},...l},x)=>{var h,p,C;let d=e.role==="user";e.role==="assistant";e.role==="system";let u=f=>f?{joy:"bg-yellow-100 text-yellow-800",sadness:"bg-indigo-100 text-cyan-800",anger:"bg-red-100 text-red-800",calm:"bg-green-100 text-green-800",excitement:"bg-pink-100 text-pink-800",worry:"bg-gray-100 text-gray-800",gratitude:"bg-purple-100 text-purple-800",loneliness:"bg-indigo-100 text-indigo-800"}[f]||"bg-gray-100 text-gray-800":"bg-gray-100",a=f=>f.toLocaleTimeString("ko-KR",{hour:"2-digit",minute:"2-digit"});return b==="bubble"?jsxRuntime.jsx("div",{ref:x,className:i("flex w-full",d?"justify-end":"justify-start",t),...l,children:jsxRuntime.jsxs("div",{className:i("flex max-w-[80%] space-x-2",d?"flex-row-reverse space-x-reverse":"flex-row"),children:[n&&jsxRuntime.jsxs(dt,{className:"w-8 h-8 flex-shrink-0",children:[jsxRuntime.jsx(Xe,{src:d?r.avatar:o.avatar,alt:d?r.name:o.name}),jsxRuntime.jsx(Ye,{style:{backgroundColor:d?r.color:o.color},children:(h=d?r.name:o.name)==null?void 0:h.charAt(0)})]}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("div",{className:i("px-4 py-2 rounded-2xl max-w-full break-words",d?"rounded-br-md":"rounded-bl-md"),style:{backgroundColor:d?g.userBubbleBg:g.aiBubbleBg,color:d?g.userBubbleText:g.aiBubbleText},children:e.isTyping?jsxRuntime.jsxs("div",{className:"flex space-x-1",children:[jsxRuntime.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),jsxRuntime.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce delay-100"}),jsxRuntime.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce delay-200"})]}):jsxRuntime.jsx("div",{className:"whitespace-pre-wrap",children:e.content})}),jsxRuntime.jsxs("div",{className:i("flex items-center space-x-2 text-xs text-muted-foreground",d?"justify-end":"justify-start"),children:[s&&jsxRuntime.jsx("span",{children:a(e.timestamp)}),c&&e.emotion&&jsxRuntime.jsx(xe,{variant:"secondary",className:i("text-xs",u(e.emotion)),children:e.emotion})]})]})]})}):b==="compact"?jsxRuntime.jsxs("div",{ref:x,className:i("flex items-start space-x-3 py-2",t),...l,children:[n&&jsxRuntime.jsxs(dt,{className:"w-6 h-6 flex-shrink-0",children:[jsxRuntime.jsx(Xe,{src:d?r.avatar:o.avatar,alt:d?r.name:o.name}),jsxRuntime.jsx(Ye,{style:{backgroundColor:d?r.color:o.color},children:(p=d?r.name:o.name)==null?void 0:p.charAt(0)})]}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center space-x-2 mb-1",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:d?r.name:o.name}),s&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:a(e.timestamp)}),c&&e.emotion&&jsxRuntime.jsx(xe,{variant:"secondary",className:i("text-xs",u(e.emotion)),children:e.emotion})]}),jsxRuntime.jsx("div",{className:"text-sm",children:e.isTyping?jsxRuntime.jsxs("div",{className:"flex space-x-1",children:[jsxRuntime.jsx("div",{className:"w-1.5 h-1.5 bg-muted-foreground rounded-full animate-bounce"}),jsxRuntime.jsx("div",{className:"w-1.5 h-1.5 bg-muted-foreground rounded-full animate-bounce delay-100"}),jsxRuntime.jsx("div",{className:"w-1.5 h-1.5 bg-muted-foreground rounded-full animate-bounce delay-200"})]}):jsxRuntime.jsx("div",{className:"whitespace-pre-wrap",children:e.content})})]})]}):jsxRuntime.jsxs("div",{ref:x,className:i("flex items-start space-x-3 py-4",t),...l,children:[n&&jsxRuntime.jsxs(dt,{className:"w-10 h-10 flex-shrink-0",children:[jsxRuntime.jsx(Xe,{src:d?r.avatar:o.avatar,alt:d?r.name:o.name}),jsxRuntime.jsx(Ye,{style:{backgroundColor:d?r.color:o.color},children:(C=d?r.name:o.name)==null?void 0:C.charAt(0)})]}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[jsxRuntime.jsx("span",{className:"font-medium",children:d?r.name:o.name}),s&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:a(e.timestamp)}),c&&e.emotion&&jsxRuntime.jsx(xe,{variant:"secondary",className:i("text-xs",u(e.emotion)),children:e.emotion})]}),jsxRuntime.jsx(ot,{className:i("inline-block",d?"bg-primary text-primary-foreground":"bg-muted"),children:jsxRuntime.jsx(nt,{className:"p-3",children:e.isTyping?jsxRuntime.jsxs("div",{className:"flex space-x-1",children:[jsxRuntime.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),jsxRuntime.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce delay-100"}),jsxRuntime.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce delay-200"})]}):jsxRuntime.jsx("div",{className:"whitespace-pre-wrap",children:e.content})})})]})]})});Eo.displayName="ChatMessage";var pr=le__default.default.forwardRef(({className:t,children:e,items:r,maxItems:o,showHomeIcon:n,homeLabel:s="Home",separator:c=jsxRuntime.jsx(M,{name:"chevronRight",className:"w-3 h-3 text-muted-foreground flex-shrink-0"}),variant:b="default",...g},l)=>{let x={default:"inline-flex items-center text-sm w-fit",subtle:"inline-flex items-center text-xs bg-background/40 backdrop-blur-md rounded-md px-3 py-2 border border-border/30 w-fit shadow-sm",transparent:"inline-flex items-center text-xs w-fit",glass:"inline-flex items-center text-xs bg-background/30 backdrop-blur-lg rounded-lg px-4 py-2 border border-border/25 w-fit shadow-lg"},m=(()=>{if(r){let u=[...r];if(o&&u.length>o){let a=u[0],h=u.slice(-(o-1));u=[a,{label:"...",href:void 0},...h];}return u.map((a,h)=>{let C=h===u.length-1&&!a.href;return jsxRuntime.jsxs(ut,{href:a.href,isCurrent:C,children:[a.icon&&jsxRuntime.jsx(M,{name:a.icon,className:"w-4 h-4 mr-1"}),a.label]},h)})}return e?le__default.default.Children.map(e,(u,a)=>le__default.default.isValidElement(u)?jsxRuntime.jsxs("li",{className:"flex items-center",children:[u,a<le__default.default.Children.count(e)-1&&jsxRuntime.jsx("span",{className:"mx-3 text-muted-foreground flex items-center justify-center","aria-hidden":"true",children:c})]},a):u):null})(),v=r?r.length:e?le__default.default.Children.count(e):0;return jsxRuntime.jsx("nav",{ref:l,"aria-label":"Breadcrumb",className:i(x[b],t),...g,children:jsxRuntime.jsxs("ol",{className:"inline-flex items-center",children:[n&&jsxRuntime.jsxs("li",{className:"flex items-center",children:[jsxRuntime.jsxs(ut,{href:"/",children:[jsxRuntime.jsx(M,{name:"home",className:"w-4 h-4 mr-1"}),s]}),v>0&&jsxRuntime.jsx("span",{className:"mx-3 text-muted-foreground flex items-center justify-center","aria-hidden":"true",children:c})]}),r?m==null?void 0:m.map((u,a)=>jsxRuntime.jsxs("li",{className:"flex items-center",children:[u,a<((m==null?void 0:m.length)||0)-1&&jsxRuntime.jsx("span",{className:"mx-3 text-muted-foreground flex items-center justify-center","aria-hidden":"true",children:c})]},a)):m]})})});pr.displayName="Breadcrumb";var ut=le__default.default.forwardRef(({className:t,href:e,isCurrent:r=false,children:o,...n},s)=>r?jsxRuntime.jsx("span",{ref:s,"aria-current":"page",className:i("text-muted-foreground font-medium",t),...n,children:o}):e?jsxRuntime.jsx("a",{href:e,className:i("text-muted-foreground hover:text-foreground transition-colors",t),...n,children:o}):jsxRuntime.jsx("span",{ref:s,className:i("text-muted-foreground",t),...n,children:o}));ut.displayName="BreadcrumbItem";var Po=le__default.default.forwardRef(({className:t,title:e,description:r,children:o,prevPage:n,nextPage:s,breadcrumbItems:c=[{label:"Components",href:"/components"}],...b},g)=>jsxRuntime.jsxs("div",{className:"relative min-h-screen",children:[jsxRuntime.jsx("div",{className:"fixed right-4 top-4 z-50 hidden lg:block",children:jsxRuntime.jsx("div",{className:"flex flex-col space-y-4",children:n&&jsxRuntime.jsx("a",{href:n.href,className:"group p-3 bg-white/80 backdrop-blur-sm border border-border rounded-full shadow-lg hover:shadow-2xl hover:bg-white/90 active:scale-95 transition-all duration-200",title:`\uC774\uC804: ${n.title}`,children:jsxRuntime.jsx("svg",{className:"w-5 h-5 text-muted-foreground group-hover:text-indigo-600 group-active:text-indigo-800 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})})})})}),jsxRuntime.jsx("div",{className:"fixed right-4 bottom-4 z-50 hidden lg:block",children:jsxRuntime.jsx("div",{className:"flex flex-col space-y-4",children:s&&jsxRuntime.jsx("a",{href:s.href,className:"group p-3 bg-white/80 backdrop-blur-sm border border-border rounded-full shadow-lg hover:shadow-2xl hover:bg-white/90 active:scale-95 transition-all duration-200",title:`\uB2E4\uC74C: ${s.title}`,children:jsxRuntime.jsx("svg",{className:"w-5 h-5 text-muted-foreground group-hover:text-indigo-600 group-active:text-indigo-800 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})})}),jsxRuntime.jsx("div",{ref:g,className:i("container mx-auto px-4 py-8",t),...b,children:jsxRuntime.jsxs("div",{className:"max-w-4xl mx-auto",children:[jsxRuntime.jsx(pr,{className:"mb-6",children:c.map((l,x)=>jsxRuntime.jsx(ut,{href:l.href,isCurrent:x===c.length-1,children:l.label},x))}),jsxRuntime.jsxs("div",{className:"mb-8",children:[jsxRuntime.jsx("h1",{className:"text-4xl font-bold mb-4",children:e}),jsxRuntime.jsx("p",{className:"text-lg text-muted-foreground",children:r})]}),jsxRuntime.jsx("div",{className:"space-y-8",children:o}),jsxRuntime.jsx("div",{className:"mt-12 lg:hidden",children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between py-4 border-t border-border",children:[n&&jsxRuntime.jsxs("a",{href:n.href,className:"flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[jsxRuntime.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),n.title]}),s&&jsxRuntime.jsxs("a",{href:s.href,className:"flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[s.title,jsxRuntime.jsx("svg",{className:"w-4 h-4 ml-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})})]})})]}));Po.displayName="ComponentLayout";var Pe=le__default.default.forwardRef(({className:t,value:e,max:r=100,size:o="md",color:n="blue",...s},c)=>{let b={sm:"h-2",md:"h-3",lg:"h-4"},g={blue:"bg-indigo-500",green:"bg-green-500",yellow:"bg-yellow-500",red:"bg-red-500",purple:"bg-purple-500",orange:"bg-orange-500",indigo:"bg-indigo-500",pink:"bg-pink-500",gray:"bg-gray-500"},l=Math.min(Math.max(e/r*100,0),100);return jsxRuntime.jsx("div",{ref:c,className:i("w-full bg-gray-200 rounded-full dark:bg-gray-700",b[o],t),...s,children:jsxRuntime.jsx("div",{className:i("h-full rounded-full transition-all duration-300",g[n]||g.blue),style:{width:`${l}%`}})})});Pe.displayName="EmotionMeter";var Mo=le__default.default.forwardRef(({className:t,primaryEmotion:e,emotionDistribution:r=[],keywords:o=[],intensity:n=50,positivity:s=70,energy:c=60,showMeter:b=true,showDistribution:g=true,showKeywords:l=true,showMetrics:x=true,layout:d="detailed",...m},v)=>{let u=p=>p<30?"\uC57D\uD568":p<70?"\uBCF4\uD1B5":"\uAC15\uD568",a=p=>p<30?"\uBD80\uC815\uC801":p<70?"\uC911\uB9BD\uC801":"\uAE0D\uC815\uC801",h=p=>p<30?"\uB0AE\uC74C":p<70?"\uBCF4\uD1B5":"\uB192\uC74C";return d==="compact"?jsxRuntime.jsxs("div",{ref:v,className:i("space-y-3",t),...m,children:[e&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"\uC8FC\uC694 \uAC10\uC815:"}),jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:[e.name," (",e.intensity,"%)"]}),b&&jsxRuntime.jsx(Pe,{value:e.intensity,size:"sm",color:"blue"})]})]}),x&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"\uAC10\uC815 \uAC15\uB3C4:"}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:u(n)})]}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"\uAE0D\uC815\uC131:"}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:a(s)})]}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"\uC5D0\uB108\uC9C0:"}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:h(c)})]})]}),l&&o.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"\uD0A4\uC6CC\uB4DC:"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:o.map(p=>jsxRuntime.jsx(xe,{variant:"secondary",className:"text-xs",children:p},p))})]})]}):d==="card"?jsxRuntime.jsxs(ot,{ref:v,className:i("",t),...m,children:[jsxRuntime.jsxs(Kt,{children:[jsxRuntime.jsxs(Qt,{className:"flex items-center",children:[jsxRuntime.jsx("span",{className:"text-2xl mr-2",children:"\u2728"}),"AI \uBD84\uC11D"]}),jsxRuntime.jsx(Jt,{children:"\uAC10\uC815 \uBD84\uC11D \uACB0\uACFC"})]}),jsxRuntime.jsxs(nt,{className:"space-y-4",children:[e&&jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsxs("div",{className:"text-sm",children:[jsxRuntime.jsx("span",{className:"font-medium",children:"\uC8FC\uC694 \uAC10\uC815:"}),jsxRuntime.jsxs("span",{className:"ml-2 text-muted-foreground",children:[e.name," (",e.intensity,"%)"]})]}),b&&jsxRuntime.jsx("div",{className:"flex justify-center",children:jsxRuntime.jsx(Pe,{value:e.intensity,size:"md",color:"blue"})})]}),x&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"text-sm",children:[jsxRuntime.jsx("span",{className:"font-medium",children:"\uAC10\uC815 \uAC15\uB3C4:"}),jsxRuntime.jsx("span",{className:"ml-2 text-muted-foreground",children:u(n)})]}),jsxRuntime.jsxs("div",{className:"text-sm",children:[jsxRuntime.jsx("span",{className:"font-medium",children:"\uAE0D\uC815\uC131:"}),jsxRuntime.jsx("span",{className:"ml-2 text-muted-foreground",children:a(s)})]}),jsxRuntime.jsxs("div",{className:"text-sm",children:[jsxRuntime.jsx("span",{className:"font-medium",children:"\uC5D0\uB108\uC9C0:"}),jsxRuntime.jsx("span",{className:"ml-2 text-muted-foreground",children:h(c)})]})]}),l&&o.length>0&&jsxRuntime.jsxs("div",{className:"text-sm",children:[jsxRuntime.jsx("span",{className:"font-medium",children:"\uD0A4\uC6CC\uB4DC:"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:o.map(p=>jsxRuntime.jsx(xe,{variant:"secondary",className:"text-xs",children:p},p))})]})]})]}):jsxRuntime.jsxs("div",{ref:v,className:i("space-y-6",t),...m,children:[e&&jsxRuntime.jsxs("div",{className:"space-y-4",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold",children:"\uC8FC\uC694 \uAC10\uC815"}),jsxRuntime.jsxs("div",{className:"flex items-center space-x-4",children:[jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("div",{className:"text-2xl font-bold text-primary",children:e.name}),jsxRuntime.jsxs("div",{className:"text-sm text-muted-foreground",children:[e.intensity,"% \uAC15\uB3C4"]})]}),b&&jsxRuntime.jsx(Pe,{value:e.intensity,size:"lg",color:"blue"})]})]}),g&&r.length>0&&jsxRuntime.jsxs("div",{className:"space-y-4",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold",children:"\uAC10\uC815 \uBD84\uD3EC"}),jsxRuntime.jsx("div",{className:"space-y-3",children:r.map((p,C)=>jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:p.emotion}),jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:[p.percentage,"%"]})]}),jsxRuntime.jsx("div",{className:"w-full bg-muted rounded-full h-2",children:jsxRuntime.jsx("div",{className:`${p.color} h-2 rounded-full transition-all duration-300`,style:{width:`${p.percentage}%`}})})]},C))})]}),x&&jsxRuntime.jsxs("div",{className:"space-y-4",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold",children:"\uBD84\uC11D \uC9C0\uD45C"}),jsxRuntime.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("div",{className:"text-sm font-medium",children:"\uAC10\uC815 \uAC15\uB3C4"}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-primary",children:u(n)}),jsxRuntime.jsx("div",{className:"w-full bg-muted rounded-full h-2",children:jsxRuntime.jsx("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${n}%`}})})]}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("div",{className:"text-sm font-medium",children:"\uAE0D\uC815\uC131"}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-green-600",children:a(s)}),jsxRuntime.jsx("div",{className:"w-full bg-muted rounded-full h-2",children:jsxRuntime.jsx("div",{className:"bg-green-500 h-2 rounded-full transition-all duration-300",style:{width:`${s}%`}})})]}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("div",{className:"text-sm font-medium",children:"\uC5D0\uB108\uC9C0"}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-orange-600",children:h(c)}),jsxRuntime.jsx("div",{className:"w-full bg-muted rounded-full h-2",children:jsxRuntime.jsx("div",{className:"bg-orange-500 h-2 rounded-full transition-all duration-300",style:{width:`${c}%`}})})]})]})]}),l&&o.length>0&&jsxRuntime.jsxs("div",{className:"space-y-4",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold",children:"\uAC10\uC815 \uD0A4\uC6CC\uB4DC"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2",children:o.map(p=>jsxRuntime.jsx(xe,{variant:"outline",className:"text-sm",children:p},p))})]})]})});Mo.displayName="EmotionAnalysis";var Bt=le__default.default.forwardRef(({className:t,emotion:e,isSelected:r=false,size:o="md",...n},s)=>jsxRuntime.jsx("button",{ref:s,className:i("rounded-full border-2 transition-all duration-200 hover:scale-105 focus:outline-none focus:ring-1 focus:ring-ring",{sm:"w-8 h-8 text-sm",md:"w-12 h-12 text-lg",lg:"w-16 h-16 text-xl"}[o],r?"border-indigo-500 bg-indigo-50 dark:bg-indigo-900/20":"border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-800",t),...n,children:e}));Bt.displayName="EmotionButton";var Fi=[{key:"joy",label:"\uAE30\uC068",icon:"smile",color:"yellow"},{key:"sadness",label:"\uC2AC\uD514",icon:"frown",color:"blue"},{key:"anger",label:"\uD654\uB0A8",icon:"angry",color:"red"},{key:"calm",label:"\uD3C9\uC628",icon:"heart",color:"green"},{key:"excitement",label:"\uC124\uB818",icon:"star",color:"pink"},{key:"worry",label:"\uAC71\uC815",icon:"meh",color:"gray"},{key:"gratitude",label:"\uAC10\uC0AC",icon:"heart",color:"purple"},{key:"loneliness",label:"\uC678\uB85C\uC6C0",icon:"user",color:"indigo"}],So=le__default.default.forwardRef(({className:t,selectedEmotion:e,onEmotionSelect:r,layout:o="grid",showIntensity:n=false,intensity:s=50,onIntensityChange:c,emotions:b=Fi,size:g="md",variant:l="button",...x},d)=>{let m=a=>{r==null||r(a);},v=a=>{let h=e===a.key;return l==="button"?jsxRuntime.jsx(Bt,{emotion:a.key,isSelected:h,size:g,onClick:()=>m(a.key),className:i("transition-all duration-200",h&&"ring-1 ring-offset-2 ring-primary"),children:a.label},a.key):l==="card"?jsxRuntime.jsx("div",{className:i("p-4 rounded-lg border-2 cursor-pointer transition-all duration-200 hover:shadow-md",h?"border-primary bg-primary/5":"border-border hover:border-primary/50"),onClick:()=>m(a.key),children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-3",children:[jsxRuntime.jsx("div",{className:i("w-8 h-8 rounded-full flex items-center justify-center",h?"bg-primary text-primary-foreground":"bg-muted"),children:a.icon&&jsxRuntime.jsxs("span",{className:"text-lg",children:[a.icon==="smile"&&"\u{1F60A}",a.icon==="frown"&&"\u{1F622}",a.icon==="angry"&&"\u{1F620}",a.icon==="heart"&&"\u2764\uFE0F",a.icon==="star"&&"\u2B50",a.icon==="meh"&&"\u{1F610}",a.icon==="user"&&"\u{1F464}"]})}),jsxRuntime.jsx("span",{className:"font-medium truncate max-w-[120px]",children:a.label})]})},a.key):l==="chip"?jsxRuntime.jsx("div",{className:i("px-3 py-1 rounded-full cursor-pointer transition-all duration-200 text-sm font-medium",h?"bg-primary text-primary-foreground":"bg-muted hover:bg-muted/80"),onClick:()=>m(a.key),children:jsxRuntime.jsx("span",{className:"truncate max-w-[100px]",children:a.label})},a.key):null},u={grid:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-2 md:gap-3",list:"space-y-2",compact:"flex flex-wrap gap-1"};return jsxRuntime.jsxs("div",{ref:d,className:i("space-y-4",t),...x,children:[jsxRuntime.jsx("div",{className:u[o],children:b.map(v)}),n&&e&&jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"\uAC10\uC815 \uAC15\uB3C4"}),jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:[s,"%"]})]}),jsxRuntime.jsx("input",{type:"range",min:"0",max:"100",value:s,onChange:a=>c==null?void 0:c(Number(a.target.value)),className:"w-full h-2 bg-muted rounded-lg appearance-none cursor-pointer slider"}),jsxRuntime.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[jsxRuntime.jsx("span",{children:"\uC57D\uD568"}),jsxRuntime.jsx("span",{children:"\uBCF4\uD1B5"}),jsxRuntime.jsx("span",{children:"\uAC15\uD568"})]})]}),e&&n&&jsxRuntime.jsx("div",{className:"flex justify-center",children:jsxRuntime.jsx(Pe,{value:s,size:"md",color:"blue"})})]})});So.displayName="EmotionSelector";var Io=le__default.default.forwardRef(({className:t,size:e="md",variant:r="button",showLabel:o=false,languages:n=[{code:"ko",name:"\uD55C\uAD6D\uC5B4",flag:"\u{1F1F0}\u{1F1F7}"},{code:"en",name:"English",flag:"\u{1F1FA}\u{1F1F8}"},{code:"ja",name:"\u65E5\u672C\u8A9E",flag:"\u{1F1EF}\u{1F1F5}"},{code:"zh",name:"\u4E2D\u6587",flag:"\u{1F1E8}\u{1F1F3}"}],currentLanguage:s="ko",onLanguageChange:c,...b},g)=>{let [l,x]=le__default.default.useState(false),d=le__default.default.useRef(null),m=n.find(p=>p.code===s)||n[0],v={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-14 w-14"};le__default.default.useEffect(()=>{let p=C=>{d.current&&!d.current.contains(C.target)&&x(false);};return l&&document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p);}},[l]);let a=p=>{c==null||c(p),x(false);},h=()=>jsxRuntime.jsx("div",{className:"flex items-center justify-center",children:jsxRuntime.jsx("span",{className:"text-lg",children:m.flag})});return r==="icon"?jsxRuntime.jsxs("div",{ref:d,className:"relative",children:[jsxRuntime.jsx("button",{onClick:()=>x(!l),className:i("inline-flex items-center justify-center rounded-lg transition-all duration-300 hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 focus-visible:ring-offset-2",v[e],t),...b,children:h()}),l&&jsxRuntime.jsx("div",{className:"absolute top-full right-0 mt-2 w-48 bg-background rounded-lg shadow-lg border border-border py-2 z-50",children:n.map(p=>jsxRuntime.jsxs("button",{onClick:()=>a(p.code),className:i("w-full px-4 py-3 text-left hover:bg-muted transition-colors duration-200 flex items-center gap-3",s===p.code&&"bg-indigo-50 dark:bg-indigo-900/20 text-indigo-600 dark:text-indigo-400"),children:[jsxRuntime.jsx("span",{className:"text-lg",children:p.flag}),jsxRuntime.jsx("span",{className:"text-sm font-medium",children:p.name})]},p.code))})]}):r==="dropdown"?jsxRuntime.jsxs("div",{ref:d,className:"relative",children:[jsxRuntime.jsxs("button",{onClick:()=>x(!l),className:i("inline-flex items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-all duration-300 hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 focus-visible:ring-offset-2",t),...b,children:[jsxRuntime.jsx("span",{className:"text-lg",children:m.flag}),o&&jsxRuntime.jsx("span",{className:"text-foreground",children:m.name}),jsxRuntime.jsx("svg",{className:i("w-4 h-4 transition-transform duration-200",l&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),l&&jsxRuntime.jsx("div",{className:"absolute top-full right-0 mt-2 w-48 bg-background rounded-lg shadow-lg border border-border py-2 z-50",children:n.map(p=>jsxRuntime.jsxs("button",{onClick:()=>a(p.code),className:i("w-full px-4 py-3 text-left hover:bg-muted transition-colors duration-200 flex items-center gap-3",s===p.code&&"bg-indigo-50 dark:bg-indigo-900/20 text-indigo-600 dark:text-indigo-400"),children:[jsxRuntime.jsx("span",{className:"text-lg",children:p.flag}),jsxRuntime.jsx("span",{className:"text-sm font-medium",children:p.name})]},p.code))})]}):jsxRuntime.jsxs("button",{onClick:()=>{let C=(n.findIndex(f=>f.code===s)+1)%n.length;c==null||c(n[C].code);},className:i("inline-flex items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-all duration-300 hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 focus-visible:ring-offset-2",t),...b,children:[jsxRuntime.jsx("span",{className:"text-lg",children:m.flag}),o&&jsxRuntime.jsx("span",{className:"text-foreground",children:m.name})]})});Io.displayName="LanguageToggle";var Bo="[transition:transform_180ms_cubic-bezier(0.34,1.56,0.64,1),box-shadow_200ms_ease-out]",Ho=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap font-medium transition-all duration-200 disabled:pointer-events-none disabled:opacity-50 min-w-fit focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-background)]",{variants:{variant:{default:"bg-[var(--color-primary)] text-[var(--color-primary-foreground)] hover:opacity-90",destructive:"bg-[var(--color-destructive)] text-[var(--color-destructive-foreground)] hover:opacity-90 focus-visible:ring-[var(--color-destructive)]",outline:"border-2 border-[var(--color-border)] bg-transparent text-[var(--color-foreground)] hover:bg-[var(--color-accent)] hover:text-[var(--color-accent-foreground)] focus-visible:ring-offset-0",secondary:"bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)] hover:opacity-80",ghost:"bg-transparent text-[var(--color-foreground)] hover:bg-[var(--color-accent)] hover:text-[var(--color-accent-foreground)] focus-visible:ring-offset-0",link:"bg-transparent text-[var(--color-primary)] underline hover:opacity-80 focus-visible:ring-offset-0",gradient:"bg-gradient-to-r from-[var(--btn-gradient-from,theme(colors.teal.500))] to-[var(--btn-gradient-to,theme(colors.cyan.500))] text-white hover:shadow-lg",neon:"bg-slate-900 dark:bg-slate-950 text-teal-400 border border-teal-500/50 shadow-lg shadow-[var(--btn-neon-glow,theme(colors.teal.500/20%))] hover:shadow-[var(--btn-neon-glow,theme(colors.teal.500/40%))] hover:border-teal-400",glass:"bg-white/50 dark:bg-slate-900/50 backdrop-blur-md border border-slate-200/50 dark:border-slate-700/50 text-slate-900 dark:text-slate-100 hover:bg-white/70 dark:hover:bg-slate-900/70"},size:{sm:"h-8 px-4 py-2 text-sm",md:"h-10 px-6 py-2 text-base",lg:"h-12 px-8 py-3 text-lg",xl:"h-14 px-10 py-4 text-xl",icon:"h-10 w-10 p-0"},rounded:{sm:"rounded",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},shadow:{none:"",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl"},hover:{springy:`hover:scale-[1.015] hover:shadow-md active:scale-[0.985] ${Bo} transform-gpu`,scale:"hover:scale-[1.015] active:scale-[0.985] transition-transform duration-150 ease-out transform-gpu",glow:"hover:shadow-lg hover:shadow-primary/25 transition-shadow duration-200",slide:`hover:-translate-y-0.5 hover:shadow-md ${Bo} transform-gpu`,none:""},fullWidth:{true:"w-full",false:""}},defaultVariants:{variant:"default",size:"md",rounded:"md",shadow:"md",hover:"springy",fullWidth:false}}),gr={blue:"from-teal-500 to-cyan-500",purple:"from-purple-500 to-pink-500",green:"from-green-500 to-emerald-500 dark:from-green-400 dark:to-emerald-400",orange:"from-orange-500 to-red-500 dark:from-orange-300 dark:to-red-300",pink:"from-pink-500 to-rose-500"};function Ui(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e);});}}function _i(t,e){return r=>{t==null||t(r),r.defaultPrevented||e==null||e(r);}}function Wi(t,e){if(!(!t&&!e))return clsx.clsx(t,e)}function ji(t,e){if(!(!t&&!e))return {...t,...e}}function Gi(t,e){let r={...t};for(let o in e){let n=t[o],s=e[o];/^on[A-Z]/.test(o)?n&&s?r[o]=_i(n,s):r[o]=s||n:o==="className"?r[o]=Wi(n,s):o==="style"?r[o]=ji(n,s):r[o]=s!==void 0?s:n;}return r}function Xi(t){return le__default.default.isValidElement(t)}var fr=le__default.default.forwardRef(({children:t,...e},r)=>{let o=le__default.default.Children.toArray(t);if(o.length!==1)return process.env.NODE_ENV!=="production"&&console.warn("[Slot] asChild\uB294 \uC815\uD655\uD788 \uD558\uB098\uC758 \uC790\uC2DD \uC694\uC18C\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4."),null;let n=o[0];if(!Xi(n))return process.env.NODE_ENV!=="production"&&console.warn("[Slot] \uC790\uC2DD\uC740 \uC720\uD6A8\uD55C React \uC694\uC18C\uC5EC\uC57C \uD569\uB2C8\uB2E4."),null;let s=n.props,c=n.ref,b=Gi(e,s),g=Ui(r,c);return le__default.default.cloneElement(n,{...b,ref:g})});fr.displayName="Slot";var Yi=typeof window!="undefined";function Zi(){let[t,e]=le__default.default.useState(false);return le__default.default.useEffect(()=>{var n;if(!Yi||!("matchMedia"in window))return;let r=window.matchMedia("(prefers-reduced-motion: reduce)"),o=()=>e(!!r.matches);return o(),(n=r.addEventListener)==null||n.call(r,"change",o),()=>{var s;return (s=r.removeEventListener)==null?void 0:s.call(r,"change",o)}},[]),t}var Ao=le__default.default.forwardRef(function({variant:e="default",size:r="md",loading:o=false,icon:n,iconPosition:s="left",gradient:c="blue",customGradient:b,rounded:g="md",shadow:l="md",hover:x="springy",fullWidth:d,iconOnly:m,className:v,children:u,disabled:a,asChild:h=false,...p},C){let f=Zi(),y=e==="gradient"?b?`bg-gradient-to-r ${b}`:`bg-gradient-to-r ${gr[c]||gr.blue}`:void 0,T=i(Ho({variant:e,size:r,rounded:g,shadow:l,hover:f?"none":x,fullWidth:d!=null?d:false}),y,v),N=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsxs("span",{role:"status","aria-live":"polite",className:"-ml-1 mr-2 inline-flex",children:[jsxRuntime.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",fill:"none",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),jsxRuntime.jsx("span",{className:"sr-only",children:"\uB85C\uB529 \uC911"})]}),!o&&n&&s==="left"&&jsxRuntime.jsx("span",{className:"mr-2",children:n}),u,!o&&n&&s==="right"&&jsxRuntime.jsx("span",{className:"ml-2",children:n})]});if(m&&!("aria-label"in p)&&process.env.NODE_ENV!=="production"&&console.warn("[Button] iconOnly \uC0AC\uC6A9 \uC2DC aria-label\uC744 \uC81C\uACF5\uD558\uC138\uC694."),h){let k={className:T,ref:C,disabled:a||o,"aria-busy":o||void 0,"aria-disabled":a||o||void 0,...p};return jsxRuntime.jsx(fr,{...k,children:u})}if("href"in p&&p.href){let{onClick:k,target:S,rel:U,href:O,"aria-label":F,className:Q,...K}=p,$=!!a||o,q=V=>{if($){V.preventDefault(),V.stopPropagation();return}k==null||k(V);};return jsxRuntime.jsx("a",{ref:C,href:O,className:i(T,Q),onClick:q,"aria-busy":o||void 0,"aria-disabled":$||void 0,tabIndex:$?-1:K.tabIndex,target:S,rel:S==="_blank"?U!=null?U:"noopener noreferrer":U,...K,children:N})}let{className:B,...R}=p,L=!!a||o;return jsxRuntime.jsx("button",{ref:C,className:i(T,B),type:"button",disabled:L,"aria-busy":o||void 0,"aria-disabled":L||void 0,...R,children:N})});Ao.displayName="Button";var mt=Ao;var Do=le__default.default.forwardRef(({className:t,targetId:e,text:r="Scroll down",iconName:o="arrowDown",iconSize:n=20,position:s="bottom-center",variant:c="default",size:b="md",animated:g=true,autoHide:l=true,hideThreshold:x=100,...d},m)=>{let[v,u]=le.useState(true);le.useEffect(()=>{if(!l)return;let f=()=>{let y=window.scrollY;u(y<x);};return f(),window.addEventListener("scroll",f,{passive:true}),()=>window.removeEventListener("scroll",f)},[l,x]);let a=()=>{if(e){let f=document.getElementById(e);f&&f.scrollIntoView({behavior:"smooth"});}else {let f=m;if(f.current){let y=f.current.nextElementSibling;y&&y.scrollIntoView({behavior:"smooth"});}}},h={"bottom-center":"bottom-8 left-1/2 transform -translate-x-1/2","bottom-left":"bottom-8 left-8","bottom-right":"bottom-8 right-8"},p={sm:"text-sm",md:"text-base",lg:"text-lg"},C={default:"text-muted-foreground hover:text-foreground",primary:"text-primary hover:text-primary/80",secondary:"text-secondary-foreground hover:text-secondary-foreground/80",outline:"text-foreground hover:text-foreground"};return v?jsxRuntime.jsx("div",{ref:m,className:i("absolute z-10",h[s],t),...d,children:jsxRuntime.jsxs(mt,{onClick:a,variant:"ghost",size:"sm",className:i("flex flex-col items-center space-y-2 transition-all duration-300",p[b],C[c],g&&"animate-in fade-in-0 slide-in-from-bottom-2 duration-500"),"aria-label":r,children:[jsxRuntime.jsx("span",{className:"text-xs opacity-80",children:r}),jsxRuntime.jsx(M,{name:o,size:n,className:i(g&&"animate-bounce")})]})}):null});Do.displayName="ScrollIndicator";var Oo=le__default.default.forwardRef(({className:t,height:e=2,color:r="gradient",position:o="top",animated:n=true,showPercentage:s=false,...c},b)=>{let[g,l]=le.useState(0);le.useEffect(()=>{let m=()=>{let v=window.scrollY,u=document.documentElement.scrollHeight-window.innerHeight,a=u>0?v/u*100:0;l(a);};return m(),window.addEventListener("scroll",m,{passive:true}),window.addEventListener("resize",m,{passive:true}),()=>{window.removeEventListener("scroll",m),window.removeEventListener("resize",m);}},[]);let x={default:"bg-foreground",primary:"bg-primary",secondary:"bg-muted-foreground",gradient:"bg-gradient-to-r from-teal-600 via-cyan-500 to-teal-600"};return jsxRuntime.jsxs("div",{ref:b,className:i("fixed z-50",{top:"top-0 left-0 right-0",bottom:"bottom-0 left-0 right-0"}[o],t),style:{height:`${e}px`},...c,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 w-full h-full bg-border/30"}),jsxRuntime.jsx("div",{className:i("absolute top-0 left-0 h-full origin-left transition-all duration-100 ease-out",x[r]||x.gradient),style:{width:`${g}%`,transformOrigin:"left"}}),s&&jsxRuntime.jsxs("div",{className:"absolute top-2 right-2 text-xs text-muted-foreground bg-card px-2 py-1 rounded border border-border",children:[Math.round(g),"%"]})]})});Oo.displayName="ScrollProgress";var Fo=le__default.default.forwardRef(({className:t,variant:e="default",size:r="md",orientation:o="both",autoHide:n=true,smooth:s=true,children:c,...b},g)=>{let l=()=>{switch(e){case "glass":return "scrollbar-thumb-white/20 hover:scrollbar-thumb-white/30 backdrop-blur-sm";case "colorful":return "scrollbar-thumb-gradient-to-b scrollbar-thumb-from-indigo-500 scrollbar-thumb-to-purple-500 hover:scrollbar-thumb-from-cyan-600 hover:scrollbar-thumb-to-purple-600";case "minimal":return "scrollbar-thumb-slate-200/50 hover:scrollbar-thumb-slate-300/70 dark:scrollbar-thumb-slate-700/50 dark:hover:scrollbar-thumb-slate-600/70";case "neon":return "scrollbar-thumb-cyan-400/60 hover:scrollbar-thumb-cyan-300/80 scrollbar-thumb-shadow-lg scrollbar-thumb-shadow-cyan-500/25";default:return "scrollbar-thumb-slate-300 hover:scrollbar-thumb-slate-400 dark:scrollbar-thumb-slate-600 dark:hover:scrollbar-thumb-slate-500"}},x=()=>{switch(r){case "sm":return "scrollbar-w-1";case "lg":return "scrollbar-w-3";case "xl":return "scrollbar-w-4";default:return "scrollbar-w-2"}},d=()=>{switch(o){case "vertical":return "overflow-y-auto overflow-x-hidden";case "horizontal":return "overflow-x-auto overflow-y-hidden";default:return "overflow-auto"}},m=i("scrollbar-thin scrollbar-track-transparent scrollbar-thumb-rounded-full transition-all duration-200",l(),x(),d(),n&&"scrollbar-hide",s&&"scroll-smooth",t);return jsxRuntime.jsx("div",{className:m,ref:g,...b,children:c})});Fo.displayName="Scrollbar";var Vo=le__default.default.forwardRef(({className:t,icon:e,title:r,description:o,variant:n="default",size:s="md",hover:c="scale",gradient:b="blue",customGradient:g,...l},x)=>{let d={sm:"p-4",md:"p-6",lg:"p-8"},m={default:"bg-background/90 backdrop-blur-sm border border-border/50",gradient:`bg-gradient-to-br ${g||ll(b)}`,glass:"bg-white/10 dark:bg-gray-800/10 backdrop-blur-md border border-white/20 dark:border-gray-700/20",neon:"bg-gray-900/90 dark:bg-gray-900/90 border border-cyan-400/30 dark:border-cyan-400/30 shadow-lg shadow-cyan-400/20"},v={scale:"hover:scale-105 transition-transform duration-300",glow:"hover:shadow-2xl hover:shadow-cyan-500/25 dark:hover:shadow-cyan-400/25 transition-shadow duration-300",slide:"hover:-translate-y-2 transition-transform duration-300",none:""},u=s==="lg"?"text-5xl":s==="md"?"text-4xl":"text-3xl";return jsxRuntime.jsxs("div",{ref:x,className:i("rounded-2xl shadow-lg transition-all duration-300 flex flex-col items-center text-center",d[s],m[n],v[c],t),...l,children:[e&&jsxRuntime.jsx("div",{className:`mb-4 ${u} ${n==="neon"?"text-cyan-400":""}`,children:typeof e=="string"&&e.startsWith("http")?jsxRuntime.jsx("img",{src:e,alt:r,className:"w-full h-full object-contain"}):jsxRuntime.jsx(M,{name:e,className:"w-full h-full"})}),jsxRuntime.jsx("h3",{className:i("font-bold mb-2",s==="lg"?"text-2xl":s==="md"?"text-xl":"text-lg",n==="gradient"?"text-white":"text-foreground"),children:r}),jsxRuntime.jsx("p",{className:i(s==="lg"?"text-base":"text-sm",n==="gradient"?"text-white/90":"text-muted-foreground"),children:o})]})});Vo.displayName="FeatureCard";function ll(t){let e={blue:"from-indigo-500 via-cyan-500 to-cyan-600",purple:"from-purple-500 via-pink-500 to-purple-600",green:"from-green-500 via-emerald-500 to-green-600",orange:"from-orange-500 via-red-500 to-orange-600",pink:"from-pink-500 via-rose-500 to-pink-600"};return e[t]||e.blue}var _o=le__default.default.forwardRef(({className:t,title:e,subtitle:r,description:o,primaryAction:n,secondaryAction:s,slides:c,autoPlay:b=false,interval:g=5e3,indicator:l="dots",showControls:x=true,pauseOnHover:d=true,background:m="gradient",customBackground:v,size:u="lg",fullBleed:a=false,...h},p)=>{let[C,f]=le.useState(0),[y,T]=le.useState(false),w=c&&c.length>0,N=(c==null?void 0:c.length)||0,B=le.useCallback(()=>{w&&f(q=>(q+1)%N);},[w,N]),R=le.useCallback(()=>{w&&f(q=>(q-1+N)%N);},[w,N]),L=le.useCallback(q=>{f(q);},[]);le.useEffect(()=>{if(!b||!w||y)return;let q=setInterval(B,g);return ()=>clearInterval(q)},[b,w,y,g,B]);let k=w?c[C]:{title:e||"",subtitle:r,description:o||"",primaryAction:n,secondaryAction:s,background:m},S={sm:"min-h-[400px]",md:"min-h-[500px]",lg:"min-h-[600px]",xl:"min-h-[700px]",full:"min-h-screen"},U={sm:"text-2xl sm:text-3xl md:text-4xl leading-tight",md:"text-3xl sm:text-4xl md:text-5xl leading-tight",lg:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl leading-tight",xl:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl leading-tight",full:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl leading-tight"},O={sm:"text-base sm:text-lg md:text-xl leading-snug",md:"text-lg sm:text-xl md:text-2xl leading-snug",lg:"text-lg sm:text-xl md:text-2xl lg:text-3xl leading-snug",xl:"text-xl sm:text-2xl md:text-3xl leading-snug",full:"text-xl sm:text-2xl md:text-3xl lg:text-4xl leading-snug"},F={sm:"text-sm sm:text-base md:text-lg leading-relaxed",md:"text-base sm:text-lg md:text-xl leading-relaxed",lg:"text-base sm:text-lg md:text-xl leading-relaxed",xl:"text-base sm:text-lg md:text-xl leading-relaxed",full:"text-lg sm:text-xl md:text-2xl leading-relaxed"},Q=w&&k.background||m,K={none:null,gradient:jsxRuntime.jsxs("div",{className:"absolute inset-0 z-0 pointer-events-none",children:[jsxRuntime.jsx("div",{className:"absolute top-0 left-0 w-80 h-80 sm:w-96 sm:h-96 md:w-[500px] md:h-[500px] -translate-x-1/3 -translate-y-1/3 rounded-full bg-gradient-to-br from-teal-400 via-cyan-500 to-teal-600 opacity-40 blur-3xl"}),jsxRuntime.jsx("div",{className:"absolute bottom-0 right-0 w-72 h-72 sm:w-80 sm:h-80 md:w-[400px] md:h-[400px] translate-x-1/4 translate-y-1/4 rounded-full bg-gradient-to-tr from-cyan-400 via-teal-500 to-emerald-500 opacity-35 blur-3xl"}),jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-48 h-48 sm:w-64 sm:h-64 md:w-80 md:h-80 rounded-full bg-teal-500/20 blur-2xl"})]}),particles:jsxRuntime.jsx("div",{className:"absolute inset-0 z-0 pointer-events-none",children:jsxRuntime.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-secondary/50 via-background to-secondary/30"})}),video:v?jsxRuntime.jsx("div",{className:"absolute inset-0 z-0 pointer-events-none",children:jsxRuntime.jsx("video",{autoPlay:true,loop:true,muted:true,playsInline:true,className:"absolute inset-0 w-full h-full object-cover opacity-20",children:jsxRuntime.jsx("source",{src:v,type:"video/mp4"})})}):null,image:v||w&&k.backgroundImage?jsxRuntime.jsxs("div",{className:"absolute inset-0 z-0 pointer-events-none",children:[jsxRuntime.jsx("img",{src:w&&k.backgroundImage||v,alt:"",className:"absolute inset-0 w-full h-full object-cover opacity-30"}),jsxRuntime.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/50 to-transparent"})]}):null},$=()=>{if(!w||l==="none")return null;switch(l){case "dots":return jsxRuntime.jsx("div",{className:"flex gap-2 justify-center mt-8",children:c.map((q,V)=>jsxRuntime.jsx("button",{onClick:()=>L(V),className:i("w-2.5 h-2.5 rounded-full transition-all duration-300",C===V?"bg-primary w-8":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),"aria-label":`Go to slide ${V+1}`},V))});case "line":return jsxRuntime.jsx("div",{className:"flex gap-1 justify-center mt-8 max-w-xs mx-auto",children:c.map((q,V)=>jsxRuntime.jsx("button",{onClick:()=>L(V),className:"flex-1 h-1 rounded-full overflow-hidden bg-muted-foreground/20","aria-label":`Go to slide ${V+1}`,children:jsxRuntime.jsx("div",{className:i("h-full bg-primary transition-all duration-300",C===V?"w-full":"w-0")})},V))});case "numbers":return jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-2 mt-8 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{className:"text-foreground font-semibold",children:C+1}),jsxRuntime.jsx("span",{children:"/"}),jsxRuntime.jsx("span",{children:N})]});default:return null}};return jsxRuntime.jsxs("section",{ref:p,className:i("relative w-full flex flex-col justify-center items-center text-center px-4 sm:px-6 lg:px-8 overflow-hidden",S[u],a&&"-mt-16 pt-16",t),onMouseEnter:()=>d&&T(true),onMouseLeave:()=>d&&T(false),...h,children:[K[Q],jsxRuntime.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto",children:[jsxRuntime.jsxs("div",{className:"animate-in fade-in slide-in-from-bottom-4 duration-500",children:[jsxRuntime.jsxs("h1",{className:i("font-extrabold mb-4 sm:mb-6 text-foreground",U[u]),children:[jsxRuntime.jsx("span",{className:"block gradient-text",children:k.title}),k.subtitle&&jsxRuntime.jsx("span",{className:i("block font-semibold mt-2 sm:mt-4 text-muted-foreground",O[u]),children:k.subtitle})]}),jsxRuntime.jsx("div",{className:i("text-muted-foreground mb-6 sm:mb-8 md:mb-10 max-w-2xl mx-auto",F[u]),children:k.description.split(`
111
- `).map((q,V,Y)=>jsxRuntime.jsxs(le__default.default.Fragment,{children:[q,V<Y.length-1&&jsxRuntime.jsx("br",{})]},V))}),(k.primaryAction||k.secondaryAction)&&jsxRuntime.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[k.primaryAction&&jsxRuntime.jsxs(mt,{href:k.primaryAction.href,size:u==="xl"||u==="full"?"lg":"md",hover:"scale",className:"inline-flex items-center gap-2",children:[k.primaryAction.icon,k.primaryAction.label]}),k.secondaryAction&&jsxRuntime.jsxs(mt,{href:k.secondaryAction.href,variant:"outline",size:u==="xl"||u==="full"?"lg":"md",hover:"scale",className:"inline-flex items-center gap-2",children:[k.secondaryAction.icon,k.secondaryAction.label]})]})]},w?C:0),$()]}),w&&x&&N>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:R,className:"absolute left-4 top-1/2 -translate-y-1/2 z-20 p-2 rounded-full bg-card/80 backdrop-blur-sm border border-border text-foreground hover:bg-card transition-colors","aria-label":"Previous slide",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),jsxRuntime.jsx("button",{onClick:B,className:"absolute right-4 top-1/2 -translate-y-1/2 z-20 p-2 rounded-full bg-card/80 backdrop-blur-sm border border-border text-foreground hover:bg-card transition-colors","aria-label":"Next slide",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]})]})});_o.displayName="HeroSection";var pl={blue:{container:"bg-gradient-to-r from-indigo-50 to-indigo-50 dark:from-indigo-900/20 dark:to-indigo-900/20 rounded-lg p-4 border border-indigo-200 dark:border-indigo-700",icon:"h-5 w-5 text-indigo-600 dark:text-indigo-400 mr-3 mt-0.5 flex-shrink-0",title:"text-sm font-medium text-indigo-900 dark:text-indigo-100 mb-2 block",body:"text-foreground text-sm leading-relaxed"},purple:{container:"bg-gradient-to-r from-purple-50 to-pink-50 dark:from-purple-900/20 dark:to-pink-900/20 rounded-lg p-4 border border-purple-200 dark:border-purple-700",icon:"h-5 w-5 text-purple-600 dark:text-purple-400 mr-3 mt-0.5 flex-shrink-0",title:"text-sm font-medium text-purple-900 dark:text-purple-100 mb-2 block",body:"text-foreground text-sm leading-relaxed"},green:{container:"bg-gradient-to-r from-green-50 to-emerald-50 dark:from-green-900/20 dark:to-emerald-900/20 rounded-lg p-4 border border-green-200 dark:border-green-700",icon:"h-5 w-5 text-green-600 dark:text-green-400 mr-3 mt-0.5 flex-shrink-0",title:"text-sm font-medium text-green-900 dark:text-green-100 mb-2 block",body:"text-foreground text-sm leading-relaxed"},orange:{container:"bg-gradient-to-r from-orange-50 to-rose-50 dark:from-orange-900/20 dark:to-rose-900/20 rounded-lg p-4 border border-orange-200 dark:border-orange-700",icon:"h-5 w-5 text-orange-600 dark:text-orange-400 mr-3 mt-0.5 flex-shrink-0",title:"text-sm font-medium text-orange-900 dark:text-orange-100 mb-2 block",body:"text-foreground text-sm leading-relaxed"}},jo=le__default.default.forwardRef(({className:t,title:e,icon:r,tone:o="blue",children:n,...s},c)=>{let b=pl[o];return jsxRuntime.jsx("div",{ref:c,className:i(b.container,t),...s,children:jsxRuntime.jsxs("div",{className:"flex items-start mb-2",children:[jsxRuntime.jsx(M,{name:r,className:b.icon}),jsxRuntime.jsxs("div",{className:"flex-1",children:[jsxRuntime.jsx("span",{className:b.title,children:e}),jsxRuntime.jsx("div",{className:b.body,children:n})]})]})})});jo.displayName="InfoCard";var Go={completed:{dot:"bg-emerald-500 border-emerald-500 shadow-[0_0_8px_rgba(16,185,129,0.4)]",border:"border-emerald-200 dark:border-emerald-500/40",text:"text-emerald-700 dark:text-emerald-300 bg-emerald-50 dark:bg-emerald-500/10",label:"\uC644\uB8CC",labelEn:"Completed"},active:{dot:"bg-sky-500 border-sky-500 shadow-[0_0_8px_rgba(14,165,233,0.4)] animate-pulse",border:"border-sky-200 dark:border-sky-500/40",text:"text-sky-700 dark:text-sky-200 bg-sky-50 dark:bg-sky-500/10",label:"\uC9C4\uD589 \uC911",labelEn:"Active"},pending:{dot:"bg-muted-foreground/40 border-muted-foreground/40",border:"border-border",text:"text-muted-foreground bg-muted",label:"\uB300\uAE30",labelEn:"Pending"},error:{dot:"bg-rose-500 border-rose-500 shadow-[0_0_8px_rgba(244,63,94,0.4)]",border:"border-rose-200 dark:border-rose-500/40",text:"text-rose-700 dark:text-rose-300 bg-rose-50 dark:bg-rose-500/10",label:"\uC624\uB958",labelEn:"Error"},warning:{dot:"bg-amber-500 border-amber-500 shadow-[0_0_8px_rgba(245,158,11,0.4)]",border:"border-amber-200 dark:border-amber-500/40",text:"text-amber-700 dark:text-amber-300 bg-amber-50 dark:bg-amber-500/10",label:"\uACBD\uACE0",labelEn:"Warning"},info:{dot:"bg-violet-500 border-violet-500 shadow-[0_0_8px_rgba(139,92,246,0.4)]",border:"border-violet-200 dark:border-violet-500/40",text:"text-violet-700 dark:text-violet-300 bg-violet-50 dark:bg-violet-500/10",label:"\uC815\uBCF4",labelEn:"Info"}},gl={sm:{dot:"h-2.5 w-2.5",gap:"gap-3",padding:"p-3",text:"text-xs"},md:{dot:"h-3.5 w-3.5",gap:"gap-4",padding:"p-4",text:"text-sm"},lg:{dot:"h-4 w-4",gap:"gap-5",padding:"p-5",text:"text-base"}},Xo=(t,e="ko-KR")=>{if(!t)return;let r=t instanceof Date?t:new Date(t);if(!Number.isNaN(r.getTime()))return r.toLocaleString(e,{dateStyle:"medium",timeStyle:"short"})},Yo=({items:t,orientation:e="vertical",align:r="left",highlightedId:o,locale:n="ko-KR",emptyState:s,showConnector:c=true,size:b="md",className:g,...l})=>{let x=t.length>0,d=gl[b];return x?e==="horizontal"?jsxRuntime.jsx("div",{className:i("overflow-x-auto",g),...l,children:jsxRuntime.jsx("ol",{className:"flex min-w-max",role:"list","aria-label":"\uD0C0\uC784\uB77C\uC778",children:t.map((m,v)=>{var f;let u=(f=m.status)!=null?f:"pending",a=Go[u],h=Xo(m.date,n),p=o===m.id,C=c&&v!==t.length-1;return jsxRuntime.jsxs("li",{className:"flex items-start",role:"listitem",children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx("span",{className:i("rounded-full border-2 shrink-0",d.dot,a.dot,p&&"scale-125 ring-1 ring-offset-2 ring-border"),"aria-label":a.label}),jsxRuntime.jsxs("div",{className:i("mt-3 text-center max-w-[160px]",d.text),children:[jsxRuntime.jsx("p",{className:"font-semibold text-foreground truncate",children:m.title}),m.description&&jsxRuntime.jsx("p",{className:"text-muted-foreground mt-0.5 line-clamp-2",children:m.description}),h&&jsxRuntime.jsx("time",{className:"text-xs text-muted-foreground mt-1 block",dateTime:m.date instanceof Date?m.date.toISOString():m.date,children:h})]})]}),C&&jsxRuntime.jsx("span",{className:"h-0.5 w-16 bg-border mt-[0.4375rem] mx-2","aria-hidden":"true"})]},m.id)})})}):jsxRuntime.jsx("div",{className:i("",g),...l,children:jsxRuntime.jsx("ol",{className:"space-y-4",role:"list","aria-label":"\uD0C0\uC784\uB77C\uC778",children:t.map((m,v)=>{var N;let u=(N=m.status)!=null?N:"pending",a=Go[u],h=Xo(m.date,n),p=o===m.id,C=c&&v!==t.length-1,f=r==="alternate"&&v%2===1,y=r==="right"||f,T=()=>m.icon?typeof m.icon=="string"?jsxRuntime.jsx(M,{name:m.icon,className:"h-4 w-4"}):m.icon:null,w=jsxRuntime.jsxs("div",{className:i("flex-1 rounded-xl border transition-all",d.padding,a.border,p&&"border-2 shadow-md ring-1 ring-border"),children:[jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[T()&&jsxRuntime.jsx("span",{className:"text-muted-foreground",children:T()}),jsxRuntime.jsx("span",{className:i("font-semibold text-foreground",d.text),children:m.title}),jsxRuntime.jsx("span",{className:i("text-xs font-medium rounded-full px-2 py-0.5",a.text),children:a.label}),m.meta&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:m.meta})]}),m.description&&jsxRuntime.jsx("p",{className:i("mt-1 text-muted-foreground",d.text),children:m.description}),m.content&&jsxRuntime.jsx("div",{className:"mt-3",children:m.content}),h&&jsxRuntime.jsxs("div",{className:"mt-3 flex items-center gap-1 text-xs text-muted-foreground",children:[jsxRuntime.jsx(M,{name:"clock",className:"h-3 w-3","aria-hidden":true}),jsxRuntime.jsx("time",{dateTime:m.date instanceof Date?m.date.toISOString():m.date,children:h})]})]});return jsxRuntime.jsxs("li",{role:"listitem",className:i("relative flex",d.gap,y&&"flex-row-reverse"),children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx("span",{className:i("z-10 rounded-full border-2 shrink-0",d.dot,a.dot,p&&"scale-110"),"aria-label":a.label}),C&&jsxRuntime.jsx("span",{className:"mt-1 flex-1 w-px bg-border","aria-hidden":"true"})]}),w]},m.id)})})}):jsxRuntime.jsx("div",{className:i("",g),...l,children:s!=null?s:jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[jsxRuntime.jsx(M,{name:"clock",className:"h-10 w-10 text-muted-foreground/50 mb-3"}),jsxRuntime.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"\uD0C0\uC784\uB77C\uC778\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4"}),jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"\uC774\uBCA4\uD2B8\uAC00 \uCD94\uAC00\uB418\uBA74 \uC5EC\uAE30\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4."})]})})};Yo.displayName="Timeline";exports.AdvancedPageTransition=ke;exports.AnimatedGradient=Or;exports.BlogEditor=ge;exports.BlogEditorActions=_e;exports.BlogEditorContent=Fe;exports.BlogEditorHeader=$e;exports.BlogEditorLanguageTabs=Oe;exports.BlogEditorMetadata=ze;exports.BlogEditorPreview=qe;exports.BlogEditorProvider=Tt;exports.BlogEditorToolbar=Ve;exports.BlogEditorTranslate=je;exports.Bookmark=No;exports.Carousel=_r;exports.ChatMessage=Eo;exports.ComponentLayout=Po;exports.CubePageTransition=on;exports.EmotionAnalysis=Mo;exports.EmotionButton=Bt;exports.EmotionMeter=Pe;exports.EmotionSelector=So;exports.FadePageTransition=Qo;exports.FeatureCard=Vo;exports.FlipPageTransition=tn;exports.GlowCard=Sr;exports.HeroSection=_o;exports.InfoCard=jo;exports.LanguageToggle=Io;exports.Logo=Ni;exports.Marquee=Lr;exports.MorphPageTransition=rn;exports.Parallax=Pr;exports.ScalePageTransition=en;exports.ScrollIndicator=Do;exports.ScrollProgress=Oo;exports.Scrollbar=Fo;exports.SlidePageTransition=Jo;exports.SpotlightCard=Br;exports.TextReveal=Dr;exports.TiltCard=Vr;exports.Timeline=Yo;exports.VideoBackground=Ur;exports.ZoomPageTransition=nn;exports.generateSlug=kt;exports.getMarkdownPreview=yo;exports.insertMarkdown=lr;exports.isValidSlug=jr;exports.normalizeSlug=Ct;exports.parseMarkdown=Lt;exports.stripMarkdown=ir;exports.useBlogEditor=Z;exports.usePageTransition=ln;exports.usePageTransitionManager=un;//# sourceMappingURL=advanced.js.map
110
+ `,document.head.appendChild(g),()=>{let l=document.getElementById(h);l&&l.remove();}},[r]),t==="symbol")return jsxRuntime.jsx("svg",{width:s,height:s,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("text-foreground",o),children:jsxRuntime.jsx("path",{d:Do,fill:r?"none":"currentColor",stroke:r?"currentColor":"none",strokeWidth:r?"0.5":void 0,strokeLinecap:"round",strokeLinejoin:"round",className:r?"hua-logo-path":void 0})});let u=152/37;return jsxRuntime.jsxs("div",{className:i("inline-flex items-center gap-1 flex-shrink-0 min-w-max",o),...n,children:[jsxRuntime.jsx("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"flex-shrink-0",style:{width:s,height:s},children:jsxRuntime.jsx("path",{d:Do,fill:r?"none":"currentColor",stroke:r?"currentColor":"none",strokeWidth:r?"0.5":void 0,strokeLinecap:"round",strokeLinejoin:"round",className:r?"hua-logo-path":void 0})}),jsxRuntime.jsx("svg",{viewBox:"40 0 152 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"flex-shrink-0",style:{height:s,width:`calc(${s} * ${u})`},children:jsxRuntime.jsx("path",{d:el,fill:r?"none":"currentColor",stroke:r?"currentColor":"none",strokeWidth:r?"0.5":void 0,strokeLinecap:"round",strokeLinejoin:"round",className:r?"hua-logo-wordmark":void 0})})]})}var $o=le__default.default.forwardRef(({className:t,id:e,storageKey:r="bookmarks",defaultBookmarked:o=false,onBookmarkChange:n,size:s="md",variant:u="default",...h},g)=>{let[l,x]=le.useState(o);le.useEffect(()=>{let d=localStorage.getItem(r);if(d){let a=JSON.parse(d);x(a.includes(e));}},[e,r]);let m=()=>{let d=!l;x(d);let a=localStorage.getItem(r),f=a?JSON.parse(a):[];if(d)f.includes(e)||f.push(e);else {let p=f.indexOf(e);p>-1&&f.splice(p,1);}localStorage.setItem(r,JSON.stringify(f)),n==null||n(d);},c={sm:"w-6 h-6",md:"w-8 h-8",lg:"w-10 h-10"},v={default:"text-muted-foreground hover:text-yellow-500 transition-colors",filled:"text-yellow-500 hover:text-yellow-600 transition-colors",outline:"border border-border text-muted-foreground hover:text-yellow-500 hover:border-yellow-500 transition-colors rounded"};return jsxRuntime.jsx("button",{ref:g,onClick:m,className:i("flex items-center justify-center transition-colors duration-200 ease-in-out focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-yellow-500 focus-visible:ring-offset-2",c[s],v[u],t),...h,children:jsxRuntime.jsx(M,{name:"star",className:i("transition-all duration-200",l&&"fill-current")})})});$o.displayName="Bookmark";var cl=classVarianceAuthority.cva("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-12 h-12 text-base"},variant:{default:"",glass:"ring-1 ring-white/30 backdrop-blur-sm"}},defaultVariants:{size:"md",variant:"default"}}),dt=le__default.default.forwardRef(({className:t,size:e="md",variant:r="default",src:o,alt:n,fallbackText:s,children:u,...h},g)=>{let[l,x]=le.useState(false),m=()=>s||u||(n?n.charAt(0).toUpperCase():"U"),c=o&&!l;return jsxRuntime.jsx("div",{ref:g,className:i(cl({size:e,variant:r}),t),...h,children:c?jsxRuntime.jsx(Xe,{src:o,alt:n||"avatar",onError:()=>x(true)}):jsxRuntime.jsx(Ye,{children:m()})})});dt.displayName="Avatar";var Xe=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("img",{ref:r,className:i("aspect-square h-full w-full object-cover object-center",t),...e}));Xe.displayName="AvatarImage";var Ye=le__default.default.forwardRef(({className:t,...e},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex h-full w-full items-center justify-center rounded-full bg-primary text-primary-foreground font-semibold",t),...e}));Ye.displayName="AvatarFallback";var Oo=le__default.default.forwardRef(({className:t,message:e,user:r={name:"\uC0AC\uC6A9\uC790",color:"#3b82f6"},assistant:o={name:"AI",color:"#10b981"},showAvatar:n=true,showTimestamp:s=true,showEmotion:u=true,variant:h="default",theme:g={userBubbleBg:"#3b82f6",userBubbleText:"#ffffff",aiBubbleBg:"#f3f4f6",aiBubbleText:"#1f2937"},...l},x)=>{var f,p,w;let m=e.role==="user";e.role==="assistant";e.role==="system";let d=b=>b?{joy:"bg-yellow-100 text-yellow-800",sadness:"bg-indigo-100 text-cyan-800",anger:"bg-red-100 text-red-800",calm:"bg-green-100 text-green-800",excitement:"bg-pink-100 text-pink-800",worry:"bg-gray-100 text-gray-800",gratitude:"bg-purple-100 text-purple-800",loneliness:"bg-indigo-100 text-indigo-800"}[b]||"bg-gray-100 text-gray-800":"bg-gray-100",a=b=>b.toLocaleTimeString("ko-KR",{hour:"2-digit",minute:"2-digit"});return h==="bubble"?jsxRuntime.jsx("div",{ref:x,className:i("flex w-full",m?"justify-end":"justify-start",t),...l,children:jsxRuntime.jsxs("div",{className:i("flex max-w-[80%] space-x-2",m?"flex-row-reverse space-x-reverse":"flex-row"),children:[n&&jsxRuntime.jsxs(dt,{className:"w-8 h-8 flex-shrink-0",children:[jsxRuntime.jsx(Xe,{src:m?r.avatar:o.avatar,alt:m?r.name:o.name}),jsxRuntime.jsx(Ye,{style:{backgroundColor:m?r.color:o.color},children:(f=m?r.name:o.name)==null?void 0:f.charAt(0)})]}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("div",{className:i("px-4 py-2 rounded-2xl max-w-full break-words",m?"rounded-br-md":"rounded-bl-md"),style:{backgroundColor:m?g.userBubbleBg:g.aiBubbleBg,color:m?g.userBubbleText:g.aiBubbleText},children:e.isTyping?jsxRuntime.jsxs("div",{className:"flex space-x-1",children:[jsxRuntime.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),jsxRuntime.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce delay-100"}),jsxRuntime.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce delay-200"})]}):jsxRuntime.jsx("div",{className:"whitespace-pre-wrap",children:e.content})}),jsxRuntime.jsxs("div",{className:i("flex items-center space-x-2 text-xs text-muted-foreground",m?"justify-end":"justify-start"),children:[s&&jsxRuntime.jsx("span",{children:a(e.timestamp)}),u&&e.emotion&&jsxRuntime.jsx(ve,{variant:"secondary",className:i("text-xs",d(e.emotion)),children:e.emotion})]})]})]})}):h==="compact"?jsxRuntime.jsxs("div",{ref:x,className:i("flex items-start space-x-3 py-2",t),...l,children:[n&&jsxRuntime.jsxs(dt,{className:"w-6 h-6 flex-shrink-0",children:[jsxRuntime.jsx(Xe,{src:m?r.avatar:o.avatar,alt:m?r.name:o.name}),jsxRuntime.jsx(Ye,{style:{backgroundColor:m?r.color:o.color},children:(p=m?r.name:o.name)==null?void 0:p.charAt(0)})]}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center space-x-2 mb-1",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:m?r.name:o.name}),s&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:a(e.timestamp)}),u&&e.emotion&&jsxRuntime.jsx(ve,{variant:"secondary",className:i("text-xs",d(e.emotion)),children:e.emotion})]}),jsxRuntime.jsx("div",{className:"text-sm",children:e.isTyping?jsxRuntime.jsxs("div",{className:"flex space-x-1",children:[jsxRuntime.jsx("div",{className:"w-1.5 h-1.5 bg-muted-foreground rounded-full animate-bounce"}),jsxRuntime.jsx("div",{className:"w-1.5 h-1.5 bg-muted-foreground rounded-full animate-bounce delay-100"}),jsxRuntime.jsx("div",{className:"w-1.5 h-1.5 bg-muted-foreground rounded-full animate-bounce delay-200"})]}):jsxRuntime.jsx("div",{className:"whitespace-pre-wrap",children:e.content})})]})]}):jsxRuntime.jsxs("div",{ref:x,className:i("flex items-start space-x-3 py-4",t),...l,children:[n&&jsxRuntime.jsxs(dt,{className:"w-10 h-10 flex-shrink-0",children:[jsxRuntime.jsx(Xe,{src:m?r.avatar:o.avatar,alt:m?r.name:o.name}),jsxRuntime.jsx(Ye,{style:{backgroundColor:m?r.color:o.color},children:(w=m?r.name:o.name)==null?void 0:w.charAt(0)})]}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[jsxRuntime.jsx("span",{className:"font-medium",children:m?r.name:o.name}),s&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:a(e.timestamp)}),u&&e.emotion&&jsxRuntime.jsx(ve,{variant:"secondary",className:i("text-xs",d(e.emotion)),children:e.emotion})]}),jsxRuntime.jsx(ot,{className:i("inline-block",m?"bg-primary text-primary-foreground":"bg-muted"),children:jsxRuntime.jsx(nt,{className:"p-3",children:e.isTyping?jsxRuntime.jsxs("div",{className:"flex space-x-1",children:[jsxRuntime.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),jsxRuntime.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce delay-100"}),jsxRuntime.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce delay-200"})]}):jsxRuntime.jsx("div",{className:"whitespace-pre-wrap",children:e.content})})})]})]})});Oo.displayName="ChatMessage";var br=le__default.default.forwardRef(({className:t,children:e,items:r,maxItems:o,showHomeIcon:n,homeLabel:s="Home",separator:u=jsxRuntime.jsx(M,{name:"chevronRight",className:"w-3 h-3 text-muted-foreground flex-shrink-0"}),variant:h="default",...g},l)=>{let x={default:"inline-flex items-center text-sm w-fit",subtle:"inline-flex items-center text-xs bg-background/40 backdrop-blur-md rounded-md px-3 py-2 border border-border/30 w-fit shadow-sm",transparent:"inline-flex items-center text-xs w-fit",glass:"inline-flex items-center text-xs bg-background/30 backdrop-blur-lg rounded-lg px-4 py-2 border border-border/25 w-fit shadow-lg"},c=(()=>{if(r){let d=[...r];if(o&&d.length>o){let a=d[0],f=d.slice(-(o-1));d=[a,{label:"...",href:void 0},...f];}return d.map((a,f)=>{let w=f===d.length-1&&!a.href;return jsxRuntime.jsxs(ut,{href:a.href,isCurrent:w,children:[a.icon&&jsxRuntime.jsx(M,{name:a.icon,className:"w-4 h-4 mr-1"}),a.label]},f)})}return e?le__default.default.Children.map(e,(d,a)=>le__default.default.isValidElement(d)?jsxRuntime.jsxs("li",{className:"flex items-center",children:[d,a<le__default.default.Children.count(e)-1&&jsxRuntime.jsx("span",{className:"mx-3 text-muted-foreground flex items-center justify-center","aria-hidden":"true",children:u})]},a):d):null})(),v=r?r.length:e?le__default.default.Children.count(e):0;return jsxRuntime.jsx("nav",{ref:l,"aria-label":"Breadcrumb",className:i(x[h],t),...g,children:jsxRuntime.jsxs("ol",{className:"inline-flex items-center",children:[n&&jsxRuntime.jsxs("li",{className:"flex items-center",children:[jsxRuntime.jsxs(ut,{href:"/",children:[jsxRuntime.jsx(M,{name:"home",className:"w-4 h-4 mr-1"}),s]}),v>0&&jsxRuntime.jsx("span",{className:"mx-3 text-muted-foreground flex items-center justify-center","aria-hidden":"true",children:u})]}),r?c==null?void 0:c.map((d,a)=>jsxRuntime.jsxs("li",{className:"flex items-center",children:[d,a<((c==null?void 0:c.length)||0)-1&&jsxRuntime.jsx("span",{className:"mx-3 text-muted-foreground flex items-center justify-center","aria-hidden":"true",children:u})]},a)):c]})})});br.displayName="Breadcrumb";var ut=le__default.default.forwardRef(({className:t,href:e,isCurrent:r=false,children:o,...n},s)=>r?jsxRuntime.jsx("span",{ref:s,"aria-current":"page",className:i("text-muted-foreground font-medium",t),...n,children:o}):e?jsxRuntime.jsx("a",{href:e,className:i("text-muted-foreground hover:text-foreground transition-colors",t),...n,children:o}):jsxRuntime.jsx("span",{ref:s,className:i("text-muted-foreground",t),...n,children:o}));ut.displayName="BreadcrumbItem";var Fo=le__default.default.forwardRef(({className:t,title:e,description:r,children:o,prevPage:n,nextPage:s,breadcrumbItems:u=[{label:"Components",href:"/components"}],...h},g)=>jsxRuntime.jsxs("div",{className:"relative min-h-screen",children:[jsxRuntime.jsx("div",{className:"fixed right-4 top-4 z-50 hidden lg:block",children:jsxRuntime.jsx("div",{className:"flex flex-col space-y-4",children:n&&jsxRuntime.jsx("a",{href:n.href,className:"group p-3 bg-white/80 backdrop-blur-sm border border-border rounded-full shadow-lg hover:shadow-2xl hover:bg-white/90 active:scale-95 transition-all duration-200",title:`\uC774\uC804: ${n.title}`,children:jsxRuntime.jsx("svg",{className:"w-5 h-5 text-muted-foreground group-hover:text-indigo-600 group-active:text-indigo-800 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})})})})}),jsxRuntime.jsx("div",{className:"fixed right-4 bottom-4 z-50 hidden lg:block",children:jsxRuntime.jsx("div",{className:"flex flex-col space-y-4",children:s&&jsxRuntime.jsx("a",{href:s.href,className:"group p-3 bg-white/80 backdrop-blur-sm border border-border rounded-full shadow-lg hover:shadow-2xl hover:bg-white/90 active:scale-95 transition-all duration-200",title:`\uB2E4\uC74C: ${s.title}`,children:jsxRuntime.jsx("svg",{className:"w-5 h-5 text-muted-foreground group-hover:text-indigo-600 group-active:text-indigo-800 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})})}),jsxRuntime.jsx("div",{ref:g,className:i("container mx-auto px-4 py-8",t),...h,children:jsxRuntime.jsxs("div",{className:"max-w-4xl mx-auto",children:[jsxRuntime.jsx(br,{className:"mb-6",children:u.map((l,x)=>jsxRuntime.jsx(ut,{href:l.href,isCurrent:x===u.length-1,children:l.label},x))}),jsxRuntime.jsxs("div",{className:"mb-8",children:[jsxRuntime.jsx("h1",{className:"text-4xl font-bold mb-4",children:e}),jsxRuntime.jsx("p",{className:"text-lg text-muted-foreground",children:r})]}),jsxRuntime.jsx("div",{className:"space-y-8",children:o}),jsxRuntime.jsx("div",{className:"mt-12 lg:hidden",children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between py-4 border-t border-border",children:[n&&jsxRuntime.jsxs("a",{href:n.href,className:"flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[jsxRuntime.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),n.title]}),s&&jsxRuntime.jsxs("a",{href:s.href,className:"flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[s.title,jsxRuntime.jsx("svg",{className:"w-4 h-4 ml-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})})]})})]}));Fo.displayName="ComponentLayout";var Re=le__default.default.forwardRef(({className:t,value:e,max:r=100,size:o="md",color:n="blue",...s},u)=>{let h={sm:"h-2",md:"h-3",lg:"h-4"},g={blue:"bg-indigo-500",green:"bg-green-500",yellow:"bg-yellow-500",red:"bg-red-500",purple:"bg-purple-500",orange:"bg-orange-500",indigo:"bg-indigo-500",pink:"bg-pink-500",gray:"bg-gray-500"},l=Math.min(Math.max(e/r*100,0),100);return jsxRuntime.jsx("div",{ref:u,className:i("w-full bg-gray-200 rounded-full dark:bg-gray-700",h[o],t),...s,children:jsxRuntime.jsx("div",{className:i("h-full rounded-full transition-all duration-300",g[n]||g.blue),style:{width:`${l}%`}})})});Re.displayName="EmotionMeter";var Uo=le__default.default.forwardRef(({className:t,primaryEmotion:e,emotionDistribution:r=[],keywords:o=[],intensity:n=50,positivity:s=70,energy:u=60,showMeter:h=true,showDistribution:g=true,showKeywords:l=true,showMetrics:x=true,layout:m="detailed",...c},v)=>{let d=p=>p<30?"\uC57D\uD568":p<70?"\uBCF4\uD1B5":"\uAC15\uD568",a=p=>p<30?"\uBD80\uC815\uC801":p<70?"\uC911\uB9BD\uC801":"\uAE0D\uC815\uC801",f=p=>p<30?"\uB0AE\uC74C":p<70?"\uBCF4\uD1B5":"\uB192\uC74C";return m==="compact"?jsxRuntime.jsxs("div",{ref:v,className:i("space-y-3",t),...c,children:[e&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"\uC8FC\uC694 \uAC10\uC815:"}),jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:[e.name," (",e.intensity,"%)"]}),h&&jsxRuntime.jsx(Re,{value:e.intensity,size:"sm",color:"blue"})]})]}),x&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"\uAC10\uC815 \uAC15\uB3C4:"}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:d(n)})]}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"\uAE0D\uC815\uC131:"}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:a(s)})]}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"\uC5D0\uB108\uC9C0:"}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:f(u)})]})]}),l&&o.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"\uD0A4\uC6CC\uB4DC:"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:o.map(p=>jsxRuntime.jsx(ve,{variant:"secondary",className:"text-xs",children:p},p))})]})]}):m==="card"?jsxRuntime.jsxs(ot,{ref:v,className:i("",t),...c,children:[jsxRuntime.jsxs(er,{children:[jsxRuntime.jsxs(tr,{className:"flex items-center",children:[jsxRuntime.jsx("span",{className:"text-2xl mr-2",children:"\u2728"}),"AI \uBD84\uC11D"]}),jsxRuntime.jsx(rr,{children:"\uAC10\uC815 \uBD84\uC11D \uACB0\uACFC"})]}),jsxRuntime.jsxs(nt,{className:"space-y-4",children:[e&&jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsxs("div",{className:"text-sm",children:[jsxRuntime.jsx("span",{className:"font-medium",children:"\uC8FC\uC694 \uAC10\uC815:"}),jsxRuntime.jsxs("span",{className:"ml-2 text-muted-foreground",children:[e.name," (",e.intensity,"%)"]})]}),h&&jsxRuntime.jsx("div",{className:"flex justify-center",children:jsxRuntime.jsx(Re,{value:e.intensity,size:"md",color:"blue"})})]}),x&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"text-sm",children:[jsxRuntime.jsx("span",{className:"font-medium",children:"\uAC10\uC815 \uAC15\uB3C4:"}),jsxRuntime.jsx("span",{className:"ml-2 text-muted-foreground",children:d(n)})]}),jsxRuntime.jsxs("div",{className:"text-sm",children:[jsxRuntime.jsx("span",{className:"font-medium",children:"\uAE0D\uC815\uC131:"}),jsxRuntime.jsx("span",{className:"ml-2 text-muted-foreground",children:a(s)})]}),jsxRuntime.jsxs("div",{className:"text-sm",children:[jsxRuntime.jsx("span",{className:"font-medium",children:"\uC5D0\uB108\uC9C0:"}),jsxRuntime.jsx("span",{className:"ml-2 text-muted-foreground",children:f(u)})]})]}),l&&o.length>0&&jsxRuntime.jsxs("div",{className:"text-sm",children:[jsxRuntime.jsx("span",{className:"font-medium",children:"\uD0A4\uC6CC\uB4DC:"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:o.map(p=>jsxRuntime.jsx(ve,{variant:"secondary",className:"text-xs",children:p},p))})]})]})]}):jsxRuntime.jsxs("div",{ref:v,className:i("space-y-6",t),...c,children:[e&&jsxRuntime.jsxs("div",{className:"space-y-4",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold",children:"\uC8FC\uC694 \uAC10\uC815"}),jsxRuntime.jsxs("div",{className:"flex items-center space-x-4",children:[jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("div",{className:"text-2xl font-bold text-primary",children:e.name}),jsxRuntime.jsxs("div",{className:"text-sm text-muted-foreground",children:[e.intensity,"% \uAC15\uB3C4"]})]}),h&&jsxRuntime.jsx(Re,{value:e.intensity,size:"lg",color:"blue"})]})]}),g&&r.length>0&&jsxRuntime.jsxs("div",{className:"space-y-4",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold",children:"\uAC10\uC815 \uBD84\uD3EC"}),jsxRuntime.jsx("div",{className:"space-y-3",children:r.map((p,w)=>jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:p.emotion}),jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:[p.percentage,"%"]})]}),jsxRuntime.jsx("div",{className:"w-full bg-muted rounded-full h-2",children:jsxRuntime.jsx("div",{className:`${p.color} h-2 rounded-full transition-all duration-300`,style:{width:`${p.percentage}%`}})})]},w))})]}),x&&jsxRuntime.jsxs("div",{className:"space-y-4",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold",children:"\uBD84\uC11D \uC9C0\uD45C"}),jsxRuntime.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("div",{className:"text-sm font-medium",children:"\uAC10\uC815 \uAC15\uB3C4"}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-primary",children:d(n)}),jsxRuntime.jsx("div",{className:"w-full bg-muted rounded-full h-2",children:jsxRuntime.jsx("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${n}%`}})})]}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("div",{className:"text-sm font-medium",children:"\uAE0D\uC815\uC131"}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-green-600",children:a(s)}),jsxRuntime.jsx("div",{className:"w-full bg-muted rounded-full h-2",children:jsxRuntime.jsx("div",{className:"bg-green-500 h-2 rounded-full transition-all duration-300",style:{width:`${s}%`}})})]}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("div",{className:"text-sm font-medium",children:"\uC5D0\uB108\uC9C0"}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-orange-600",children:f(u)}),jsxRuntime.jsx("div",{className:"w-full bg-muted rounded-full h-2",children:jsxRuntime.jsx("div",{className:"bg-orange-500 h-2 rounded-full transition-all duration-300",style:{width:`${u}%`}})})]})]})]}),l&&o.length>0&&jsxRuntime.jsxs("div",{className:"space-y-4",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold",children:"\uAC10\uC815 \uD0A4\uC6CC\uB4DC"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2",children:o.map(p=>jsxRuntime.jsx(ve,{variant:"outline",className:"text-sm",children:p},p))})]})]})});Uo.displayName="EmotionAnalysis";var Ht=le__default.default.forwardRef(({className:t,emotion:e,isSelected:r=false,size:o="md",...n},s)=>jsxRuntime.jsx("button",{ref:s,className:i("rounded-full border-2 transition-all duration-200 hover:scale-105 focus:outline-none focus:ring-1 focus:ring-ring",{sm:"w-8 h-8 text-sm",md:"w-12 h-12 text-lg",lg:"w-16 h-16 text-xl"}[o],r?"border-indigo-500 bg-indigo-50 dark:bg-indigo-900/20":"border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-800",t),...n,children:e}));Ht.displayName="EmotionButton";var hl=[{key:"joy",label:"\uAE30\uC068",icon:"smile",color:"yellow"},{key:"sadness",label:"\uC2AC\uD514",icon:"frown",color:"blue"},{key:"anger",label:"\uD654\uB0A8",icon:"angry",color:"red"},{key:"calm",label:"\uD3C9\uC628",icon:"heart",color:"green"},{key:"excitement",label:"\uC124\uB818",icon:"star",color:"pink"},{key:"worry",label:"\uAC71\uC815",icon:"meh",color:"gray"},{key:"gratitude",label:"\uAC10\uC0AC",icon:"heart",color:"purple"},{key:"loneliness",label:"\uC678\uB85C\uC6C0",icon:"user",color:"indigo"}],_o=le__default.default.forwardRef(({className:t,selectedEmotion:e,onEmotionSelect:r,layout:o="grid",showIntensity:n=false,intensity:s=50,onIntensityChange:u,emotions:h=hl,size:g="md",variant:l="button",...x},m)=>{let c=a=>{r==null||r(a);},v=a=>{let f=e===a.key;return l==="button"?jsxRuntime.jsx(Ht,{emotion:a.key,isSelected:f,size:g,onClick:()=>c(a.key),className:i("transition-all duration-200",f&&"ring-1 ring-offset-2 ring-primary"),children:a.label},a.key):l==="card"?jsxRuntime.jsx("div",{className:i("p-4 rounded-lg border-2 cursor-pointer transition-all duration-200 hover:shadow-md",f?"border-primary bg-primary/5":"border-border hover:border-primary/50"),onClick:()=>c(a.key),children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-3",children:[jsxRuntime.jsx("div",{className:i("w-8 h-8 rounded-full flex items-center justify-center",f?"bg-primary text-primary-foreground":"bg-muted"),children:a.icon&&jsxRuntime.jsxs("span",{className:"text-lg",children:[a.icon==="smile"&&"\u{1F60A}",a.icon==="frown"&&"\u{1F622}",a.icon==="angry"&&"\u{1F620}",a.icon==="heart"&&"\u2764\uFE0F",a.icon==="star"&&"\u2B50",a.icon==="meh"&&"\u{1F610}",a.icon==="user"&&"\u{1F464}"]})}),jsxRuntime.jsx("span",{className:"font-medium truncate max-w-[120px]",children:a.label})]})},a.key):l==="chip"?jsxRuntime.jsx("div",{className:i("px-3 py-1 rounded-full cursor-pointer transition-all duration-200 text-sm font-medium",f?"bg-primary text-primary-foreground":"bg-muted hover:bg-muted/80"),onClick:()=>c(a.key),children:jsxRuntime.jsx("span",{className:"truncate max-w-[100px]",children:a.label})},a.key):null},d={grid:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-2 md:gap-3",list:"space-y-2",compact:"flex flex-wrap gap-1"};return jsxRuntime.jsxs("div",{ref:m,className:i("space-y-4",t),...x,children:[jsxRuntime.jsx("div",{className:d[o],children:h.map(v)}),n&&e&&jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"\uAC10\uC815 \uAC15\uB3C4"}),jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:[s,"%"]})]}),jsxRuntime.jsx("input",{type:"range",min:"0",max:"100",value:s,onChange:a=>u==null?void 0:u(Number(a.target.value)),className:"w-full h-2 bg-muted rounded-lg appearance-none cursor-pointer slider"}),jsxRuntime.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[jsxRuntime.jsx("span",{children:"\uC57D\uD568"}),jsxRuntime.jsx("span",{children:"\uBCF4\uD1B5"}),jsxRuntime.jsx("span",{children:"\uAC15\uD568"})]})]}),e&&n&&jsxRuntime.jsx("div",{className:"flex justify-center",children:jsxRuntime.jsx(Re,{value:s,size:"md",color:"blue"})})]})});_o.displayName="EmotionSelector";var Wo=le__default.default.forwardRef(({className:t,size:e="md",variant:r="button",showLabel:o=false,languages:n=[{code:"ko",name:"\uD55C\uAD6D\uC5B4",flag:"\u{1F1F0}\u{1F1F7}"},{code:"en",name:"English",flag:"\u{1F1FA}\u{1F1F8}"},{code:"ja",name:"\u65E5\u672C\u8A9E",flag:"\u{1F1EF}\u{1F1F5}"},{code:"zh",name:"\u4E2D\u6587",flag:"\u{1F1E8}\u{1F1F3}"}],currentLanguage:s="ko",onLanguageChange:u,...h},g)=>{let [l,x]=le__default.default.useState(false),m=le__default.default.useRef(null),c=n.find(p=>p.code===s)||n[0],v={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-14 w-14"};le__default.default.useEffect(()=>{let p=w=>{m.current&&!m.current.contains(w.target)&&x(false);};return l&&document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p);}},[l]);let a=p=>{u==null||u(p),x(false);},f=()=>jsxRuntime.jsx("div",{className:"flex items-center justify-center",children:jsxRuntime.jsx("span",{className:"text-lg",children:c.flag})});return r==="icon"?jsxRuntime.jsxs("div",{ref:m,className:"relative",children:[jsxRuntime.jsx("button",{onClick:()=>x(!l),className:i("inline-flex items-center justify-center rounded-lg transition-all duration-300 hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 focus-visible:ring-offset-2",v[e],t),...h,children:f()}),l&&jsxRuntime.jsx("div",{className:"absolute top-full right-0 mt-2 w-48 bg-background rounded-lg shadow-lg border border-border py-2 z-50",children:n.map(p=>jsxRuntime.jsxs("button",{onClick:()=>a(p.code),className:i("w-full px-4 py-3 text-left hover:bg-muted transition-colors duration-200 flex items-center gap-3",s===p.code&&"bg-indigo-50 dark:bg-indigo-900/20 text-indigo-600 dark:text-indigo-400"),children:[jsxRuntime.jsx("span",{className:"text-lg",children:p.flag}),jsxRuntime.jsx("span",{className:"text-sm font-medium",children:p.name})]},p.code))})]}):r==="dropdown"?jsxRuntime.jsxs("div",{ref:m,className:"relative",children:[jsxRuntime.jsxs("button",{onClick:()=>x(!l),className:i("inline-flex items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-all duration-300 hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 focus-visible:ring-offset-2",t),...h,children:[jsxRuntime.jsx("span",{className:"text-lg",children:c.flag}),o&&jsxRuntime.jsx("span",{className:"text-foreground",children:c.name}),jsxRuntime.jsx("svg",{className:i("w-4 h-4 transition-transform duration-200",l&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),l&&jsxRuntime.jsx("div",{className:"absolute top-full right-0 mt-2 w-48 bg-background rounded-lg shadow-lg border border-border py-2 z-50",children:n.map(p=>jsxRuntime.jsxs("button",{onClick:()=>a(p.code),className:i("w-full px-4 py-3 text-left hover:bg-muted transition-colors duration-200 flex items-center gap-3",s===p.code&&"bg-indigo-50 dark:bg-indigo-900/20 text-indigo-600 dark:text-indigo-400"),children:[jsxRuntime.jsx("span",{className:"text-lg",children:p.flag}),jsxRuntime.jsx("span",{className:"text-sm font-medium",children:p.name})]},p.code))})]}):jsxRuntime.jsxs("button",{onClick:()=>{let w=(n.findIndex(b=>b.code===s)+1)%n.length;u==null||u(n[w].code);},className:i("inline-flex items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-all duration-300 hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 focus-visible:ring-offset-2",t),...h,children:[jsxRuntime.jsx("span",{className:"text-lg",children:c.flag}),o&&jsxRuntime.jsx("span",{className:"text-foreground",children:c.name})]})});Wo.displayName="LanguageToggle";var jo="[transition:transform_180ms_cubic-bezier(0.34,1.56,0.64,1),box-shadow_200ms_ease-out]",Go=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap font-medium transition-all duration-200 disabled:pointer-events-none disabled:opacity-50 min-w-fit focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-background)]",{variants:{variant:{default:"bg-[var(--color-primary)] text-[var(--color-primary-foreground)] hover:opacity-90",destructive:"bg-[var(--color-destructive)] text-[var(--color-destructive-foreground)] hover:opacity-90 focus-visible:ring-[var(--color-destructive)]",outline:"border-2 border-[var(--color-border)] bg-transparent text-[var(--color-foreground)] hover:bg-[var(--color-accent)] hover:text-[var(--color-accent-foreground)] focus-visible:ring-offset-0",secondary:"bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)] hover:opacity-80",ghost:"bg-transparent text-[var(--color-foreground)] hover:bg-[var(--color-accent)] hover:text-[var(--color-accent-foreground)] focus-visible:ring-offset-0",link:"bg-transparent text-[var(--color-primary)] underline hover:opacity-80 focus-visible:ring-offset-0",gradient:"bg-gradient-to-r from-[var(--btn-gradient-from,theme(colors.teal.500))] to-[var(--btn-gradient-to,theme(colors.cyan.500))] text-white hover:shadow-lg",neon:"bg-slate-900 dark:bg-slate-950 text-teal-400 border border-teal-500/50 shadow-lg shadow-[var(--btn-neon-glow,theme(colors.teal.500/20%))] hover:shadow-[var(--btn-neon-glow,theme(colors.teal.500/40%))] hover:border-teal-400",glass:"bg-white/50 dark:bg-slate-900/50 backdrop-blur-md border border-slate-200/50 dark:border-slate-700/50 text-slate-900 dark:text-slate-100 hover:bg-white/70 dark:hover:bg-slate-900/70"},size:{sm:"h-8 px-4 py-2 text-sm",md:"h-10 px-6 py-2 text-base",lg:"h-12 px-8 py-3 text-lg",xl:"h-14 px-10 py-4 text-xl",icon:"h-10 w-10 p-0"},rounded:{sm:"rounded",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},shadow:{none:"",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl"},hover:{springy:`hover:scale-[1.015] hover:shadow-md active:scale-[0.985] ${jo} transform-gpu`,scale:"hover:scale-[1.015] active:scale-[0.985] transition-transform duration-150 ease-out transform-gpu",glow:"hover:shadow-lg hover:shadow-primary/25 transition-shadow duration-200",slide:`hover:-translate-y-0.5 hover:shadow-md ${jo} transform-gpu`,none:""},fullWidth:{true:"w-full",false:""}},defaultVariants:{variant:"default",size:"md",rounded:"md",shadow:"md",hover:"springy",fullWidth:false}}),hr={blue:"from-teal-500 to-cyan-500",purple:"from-purple-500 to-pink-500",green:"from-green-500 to-emerald-500 dark:from-green-400 dark:to-emerald-400",orange:"from-orange-500 to-red-500 dark:from-orange-300 dark:to-red-300",pink:"from-pink-500 to-rose-500"};function yl(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e);});}}function wl(t,e){return r=>{t==null||t(r),r.defaultPrevented||e==null||e(r);}}function kl(t,e){if(!(!t&&!e))return clsx.clsx(t,e)}function Cl(t,e){if(!(!t&&!e))return {...t,...e}}function Tl(t,e){let r={...t};for(let o in e){let n=t[o],s=e[o];/^on[A-Z]/.test(o)?n&&s?r[o]=wl(n,s):r[o]=s||n:o==="className"?r[o]=kl(n,s):o==="style"?r[o]=Cl(n,s):r[o]=s!==void 0?s:n;}return r}function Nl(t){return le__default.default.isValidElement(t)}var vr=le__default.default.forwardRef(({children:t,...e},r)=>{let o=le__default.default.Children.toArray(t);if(o.length!==1)return process.env.NODE_ENV!=="production"&&console.warn("[Slot] asChild\uB294 \uC815\uD655\uD788 \uD558\uB098\uC758 \uC790\uC2DD \uC694\uC18C\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4."),null;let n=o[0];if(!Nl(n))return process.env.NODE_ENV!=="production"&&console.warn("[Slot] \uC790\uC2DD\uC740 \uC720\uD6A8\uD55C React \uC694\uC18C\uC5EC\uC57C \uD569\uB2C8\uB2E4."),null;let s=n.props,u=n.ref,h=Tl(e,s),g=yl(r,u);return le__default.default.cloneElement(n,{...h,ref:g})});vr.displayName="Slot";var El=typeof window!="undefined";function Rl(){let[t,e]=le__default.default.useState(false);return le__default.default.useEffect(()=>{var n;if(!El||!("matchMedia"in window))return;let r=window.matchMedia("(prefers-reduced-motion: reduce)"),o=()=>e(!!r.matches);return o(),(n=r.addEventListener)==null||n.call(r,"change",o),()=>{var s;return (s=r.removeEventListener)==null?void 0:s.call(r,"change",o)}},[]),t}var Xo=le__default.default.forwardRef(function({variant:e="default",size:r="md",loading:o=false,icon:n,iconPosition:s="left",gradient:u="blue",customGradient:h,rounded:g="md",shadow:l="md",hover:x="springy",fullWidth:m,iconOnly:c,className:v,children:d,disabled:a,asChild:f=false,...p},w){let b=Rl(),y=e==="gradient"?h?`bg-gradient-to-r ${h}`:`bg-gradient-to-r ${hr[u]||hr.blue}`:void 0,T=i(Go({variant:e,size:r,rounded:g,shadow:l,hover:b?"none":x,fullWidth:m!=null?m:false}),y,v),N=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsxs("span",{role:"status","aria-live":"polite",className:"-ml-1 mr-2 inline-flex",children:[jsxRuntime.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",fill:"none",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),jsxRuntime.jsx("span",{className:"sr-only",children:"\uB85C\uB529 \uC911"})]}),!o&&n&&s==="left"&&jsxRuntime.jsx("span",{className:"mr-2",children:n}),d,!o&&n&&s==="right"&&jsxRuntime.jsx("span",{className:"ml-2",children:n})]});if(c&&!("aria-label"in p)&&process.env.NODE_ENV!=="production"&&console.warn("[Button] iconOnly \uC0AC\uC6A9 \uC2DC aria-label\uC744 \uC81C\uACF5\uD558\uC138\uC694."),f){let C={className:T,ref:w,disabled:a||o,"aria-busy":o||void 0,"aria-disabled":a||o||void 0,...p};return jsxRuntime.jsx(vr,{...C,children:d})}if("href"in p&&p.href){let{onClick:C,target:S,rel:U,href:O,"aria-label":F,className:Q,...K}=p,z=!!a||o,q=V=>{if(z){V.preventDefault(),V.stopPropagation();return}C==null||C(V);};return jsxRuntime.jsx("a",{ref:w,href:O,className:i(T,Q),onClick:q,"aria-busy":o||void 0,"aria-disabled":z||void 0,tabIndex:z?-1:K.tabIndex,target:S,rel:S==="_blank"?U!=null?U:"noopener noreferrer":U,...K,children:N})}let{className:B,...P}=p,L=!!a||o;return jsxRuntime.jsx("button",{ref:w,className:i(T,B),type:"button",disabled:L,"aria-busy":o||void 0,"aria-disabled":L||void 0,...P,children:N})});Xo.displayName="Button";var mt=Xo;var Yo=le__default.default.forwardRef(({className:t,targetId:e,text:r="Scroll down",iconName:o="arrowDown",iconSize:n=20,position:s="bottom-center",variant:u="default",size:h="md",animated:g=true,autoHide:l=true,hideThreshold:x=100,...m},c)=>{let[v,d]=le.useState(true);le.useEffect(()=>{if(!l)return;let b=()=>{let y=window.scrollY;d(y<x);};return b(),window.addEventListener("scroll",b,{passive:true}),()=>window.removeEventListener("scroll",b)},[l,x]);let a=()=>{if(e){let b=document.getElementById(e);b&&b.scrollIntoView({behavior:"smooth"});}else {let b=c;if(b.current){let y=b.current.nextElementSibling;y&&y.scrollIntoView({behavior:"smooth"});}}},f={"bottom-center":"bottom-8 left-1/2 transform -translate-x-1/2","bottom-left":"bottom-8 left-8","bottom-right":"bottom-8 right-8"},p={sm:"text-sm",md:"text-base",lg:"text-lg"},w={default:"text-muted-foreground hover:text-foreground",primary:"text-primary hover:text-primary/80",secondary:"text-secondary-foreground hover:text-secondary-foreground/80",outline:"text-foreground hover:text-foreground"};return v?jsxRuntime.jsx("div",{ref:c,className:i("absolute z-10",f[s],t),...m,children:jsxRuntime.jsxs(mt,{onClick:a,variant:"ghost",size:"sm",className:i("flex flex-col items-center space-y-2 transition-all duration-300",p[h],w[u],g&&"animate-in fade-in-0 slide-in-from-bottom-2 duration-500"),"aria-label":r,children:[jsxRuntime.jsx("span",{className:"text-xs opacity-80",children:r}),jsxRuntime.jsx(M,{name:o,size:n,className:i(g&&"animate-bounce")})]})}):null});Yo.displayName="ScrollIndicator";var Qo=le__default.default.forwardRef(({className:t,height:e=2,color:r="gradient",position:o="top",animated:n=true,showPercentage:s=false,...u},h)=>{let[g,l]=le.useState(0);le.useEffect(()=>{let c=()=>{let v=window.scrollY,d=document.documentElement.scrollHeight-window.innerHeight,a=d>0?v/d*100:0;l(a);};return c(),window.addEventListener("scroll",c,{passive:true}),window.addEventListener("resize",c,{passive:true}),()=>{window.removeEventListener("scroll",c),window.removeEventListener("resize",c);}},[]);let x={default:"bg-foreground",primary:"bg-primary",secondary:"bg-muted-foreground",gradient:"bg-gradient-to-r from-teal-600 via-cyan-500 to-teal-600"};return jsxRuntime.jsxs("div",{ref:h,className:i("fixed z-50",{top:"top-0 left-0 right-0",bottom:"bottom-0 left-0 right-0"}[o],t),style:{height:`${e}px`},...u,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 w-full h-full bg-border/30"}),jsxRuntime.jsx("div",{className:i("absolute top-0 left-0 h-full origin-left transition-all duration-100 ease-out",x[r]||x.gradient),style:{width:`${g}%`,transformOrigin:"left"}}),s&&jsxRuntime.jsxs("div",{className:"absolute top-2 right-2 text-xs text-muted-foreground bg-card px-2 py-1 rounded border border-border",children:[Math.round(g),"%"]})]})});Qo.displayName="ScrollProgress";var Jo=le__default.default.forwardRef(({className:t,variant:e="default",size:r="md",orientation:o="both",autoHide:n=true,smooth:s=true,children:u,...h},g)=>{let l=()=>{switch(e){case "glass":return "scrollbar-thumb-white/20 hover:scrollbar-thumb-white/30 backdrop-blur-sm";case "colorful":return "scrollbar-thumb-gradient-to-b scrollbar-thumb-from-indigo-500 scrollbar-thumb-to-purple-500 hover:scrollbar-thumb-from-cyan-600 hover:scrollbar-thumb-to-purple-600";case "minimal":return "scrollbar-thumb-slate-200/50 hover:scrollbar-thumb-slate-300/70 dark:scrollbar-thumb-slate-700/50 dark:hover:scrollbar-thumb-slate-600/70";case "neon":return "scrollbar-thumb-cyan-400/60 hover:scrollbar-thumb-cyan-300/80 scrollbar-thumb-shadow-lg scrollbar-thumb-shadow-cyan-500/25";default:return "scrollbar-thumb-slate-300 hover:scrollbar-thumb-slate-400 dark:scrollbar-thumb-slate-600 dark:hover:scrollbar-thumb-slate-500"}},x=()=>{switch(r){case "sm":return "scrollbar-w-1";case "lg":return "scrollbar-w-3";case "xl":return "scrollbar-w-4";default:return "scrollbar-w-2"}},m=()=>{switch(o){case "vertical":return "overflow-y-auto overflow-x-hidden";case "horizontal":return "overflow-x-auto overflow-y-hidden";default:return "overflow-auto"}},c=i("scrollbar-thin scrollbar-track-transparent scrollbar-thumb-rounded-full transition-all duration-200",l(),x(),m(),n&&"scrollbar-hide",s&&"scroll-smooth",t);return jsxRuntime.jsx("div",{className:c,ref:g,...h,children:u})});Jo.displayName="Scrollbar";var en=le__default.default.forwardRef(({className:t,icon:e,title:r,description:o,variant:n="default",size:s="md",hover:u="scale",gradient:h="blue",customGradient:g,...l},x)=>{let m={sm:"p-4",md:"p-6",lg:"p-8"},c={default:"bg-background/90 backdrop-blur-sm border border-border/50",gradient:`bg-gradient-to-br ${g||Ol(h)}`,glass:"bg-white/10 dark:bg-gray-800/10 backdrop-blur-md border border-white/20 dark:border-gray-700/20",neon:"bg-gray-900/90 dark:bg-gray-900/90 border border-cyan-400/30 dark:border-cyan-400/30 shadow-lg shadow-cyan-400/20"},v={scale:"hover:scale-105 transition-transform duration-300",glow:"hover:shadow-2xl hover:shadow-cyan-500/25 dark:hover:shadow-cyan-400/25 transition-shadow duration-300",slide:"hover:-translate-y-2 transition-transform duration-300",none:""},d=s==="lg"?"text-5xl":s==="md"?"text-4xl":"text-3xl";return jsxRuntime.jsxs("div",{ref:x,className:i("rounded-2xl shadow-lg transition-all duration-300 flex flex-col items-center text-center",m[s],c[n],v[u],t),...l,children:[e&&jsxRuntime.jsx("div",{className:`mb-4 ${d} ${n==="neon"?"text-cyan-400":""}`,children:typeof e=="string"&&e.startsWith("http")?jsxRuntime.jsx("img",{src:e,alt:r,className:"w-full h-full object-contain"}):jsxRuntime.jsx(M,{name:e,className:"w-full h-full"})}),jsxRuntime.jsx("h3",{className:i("font-bold mb-2",s==="lg"?"text-2xl":s==="md"?"text-xl":"text-lg",n==="gradient"?"text-white":"text-foreground"),children:r}),jsxRuntime.jsx("p",{className:i(s==="lg"?"text-base":"text-sm",n==="gradient"?"text-white/90":"text-muted-foreground"),children:o})]})});en.displayName="FeatureCard";function Ol(t){let e={blue:"from-indigo-500 via-cyan-500 to-cyan-600",purple:"from-purple-500 via-pink-500 to-purple-600",green:"from-green-500 via-emerald-500 to-green-600",orange:"from-orange-500 via-red-500 to-orange-600",pink:"from-pink-500 via-rose-500 to-pink-600"};return e[t]||e.blue}var on=le__default.default.forwardRef(({className:t,title:e,subtitle:r,description:o,primaryAction:n,secondaryAction:s,slides:u,autoPlay:h=false,interval:g=5e3,indicator:l="dots",showControls:x=true,pauseOnHover:m=true,background:c="gradient",customBackground:v,size:d="lg",fullBleed:a=false,...f},p)=>{let[w,b]=le.useState(0),[y,T]=le.useState(false),k=u&&u.length>0,N=(u==null?void 0:u.length)||0,B=le.useCallback(()=>{k&&b(q=>(q+1)%N);},[k,N]),P=le.useCallback(()=>{k&&b(q=>(q-1+N)%N);},[k,N]),L=le.useCallback(q=>{b(q);},[]);le.useEffect(()=>{if(!h||!k||y)return;let q=setInterval(B,g);return ()=>clearInterval(q)},[h,k,y,g,B]);let C=k?u[w]:{title:e||"",subtitle:r,description:o||"",primaryAction:n,secondaryAction:s,background:c},S={sm:"min-h-[400px]",md:"min-h-[500px]",lg:"min-h-[600px]",xl:"min-h-[700px]",full:"min-h-screen"},U={sm:"text-2xl sm:text-3xl md:text-4xl leading-tight",md:"text-3xl sm:text-4xl md:text-5xl leading-tight",lg:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl leading-tight",xl:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl leading-tight",full:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl leading-tight"},O={sm:"text-base sm:text-lg md:text-xl leading-snug",md:"text-lg sm:text-xl md:text-2xl leading-snug",lg:"text-lg sm:text-xl md:text-2xl lg:text-3xl leading-snug",xl:"text-xl sm:text-2xl md:text-3xl leading-snug",full:"text-xl sm:text-2xl md:text-3xl lg:text-4xl leading-snug"},F={sm:"text-sm sm:text-base md:text-lg leading-relaxed",md:"text-base sm:text-lg md:text-xl leading-relaxed",lg:"text-base sm:text-lg md:text-xl leading-relaxed",xl:"text-base sm:text-lg md:text-xl leading-relaxed",full:"text-lg sm:text-xl md:text-2xl leading-relaxed"},Q=k&&C.background||c,K={none:null,gradient:jsxRuntime.jsxs("div",{className:"absolute inset-0 z-0 pointer-events-none",children:[jsxRuntime.jsx("div",{className:"absolute top-0 left-0 w-80 h-80 sm:w-96 sm:h-96 md:w-[500px] md:h-[500px] -translate-x-1/3 -translate-y-1/3 rounded-full bg-gradient-to-br from-teal-400 via-cyan-500 to-teal-600 opacity-40 blur-3xl"}),jsxRuntime.jsx("div",{className:"absolute bottom-0 right-0 w-72 h-72 sm:w-80 sm:h-80 md:w-[400px] md:h-[400px] translate-x-1/4 translate-y-1/4 rounded-full bg-gradient-to-tr from-cyan-400 via-teal-500 to-emerald-500 opacity-35 blur-3xl"}),jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-48 h-48 sm:w-64 sm:h-64 md:w-80 md:h-80 rounded-full bg-teal-500/20 blur-2xl"})]}),particles:jsxRuntime.jsx("div",{className:"absolute inset-0 z-0 pointer-events-none",children:jsxRuntime.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-secondary/50 via-background to-secondary/30"})}),video:v?jsxRuntime.jsx("div",{className:"absolute inset-0 z-0 pointer-events-none",children:jsxRuntime.jsx("video",{autoPlay:true,loop:true,muted:true,playsInline:true,className:"absolute inset-0 w-full h-full object-cover opacity-20",children:jsxRuntime.jsx("source",{src:v,type:"video/mp4"})})}):null,image:v||k&&C.backgroundImage?jsxRuntime.jsxs("div",{className:"absolute inset-0 z-0 pointer-events-none",children:[jsxRuntime.jsx("img",{src:k&&C.backgroundImage||v,alt:"",className:"absolute inset-0 w-full h-full object-cover opacity-30"}),jsxRuntime.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/50 to-transparent"})]}):null},z=()=>{if(!k||l==="none")return null;switch(l){case "dots":return jsxRuntime.jsx("div",{className:"flex gap-2 justify-center mt-8",children:u.map((q,V)=>jsxRuntime.jsx("button",{onClick:()=>L(V),className:i("w-2.5 h-2.5 rounded-full transition-all duration-300",w===V?"bg-primary w-8":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),"aria-label":`Go to slide ${V+1}`},V))});case "line":return jsxRuntime.jsx("div",{className:"flex gap-1 justify-center mt-8 max-w-xs mx-auto",children:u.map((q,V)=>jsxRuntime.jsx("button",{onClick:()=>L(V),className:"flex-1 h-1 rounded-full overflow-hidden bg-muted-foreground/20","aria-label":`Go to slide ${V+1}`,children:jsxRuntime.jsx("div",{className:i("h-full bg-primary transition-all duration-300",w===V?"w-full":"w-0")})},V))});case "numbers":return jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-2 mt-8 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{className:"text-foreground font-semibold",children:w+1}),jsxRuntime.jsx("span",{children:"/"}),jsxRuntime.jsx("span",{children:N})]});default:return null}};return jsxRuntime.jsxs("section",{ref:p,className:i("relative w-full flex flex-col justify-center items-center text-center px-4 sm:px-6 lg:px-8 overflow-hidden",S[d],a&&"-mt-16 pt-16",t),onMouseEnter:()=>m&&T(true),onMouseLeave:()=>m&&T(false),...f,children:[K[Q],jsxRuntime.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto",children:[jsxRuntime.jsxs("div",{className:"animate-in fade-in slide-in-from-bottom-4 duration-500",children:[jsxRuntime.jsxs("h1",{className:i("font-extrabold mb-4 sm:mb-6 text-foreground",U[d]),children:[jsxRuntime.jsx("span",{className:"block gradient-text",children:C.title}),C.subtitle&&jsxRuntime.jsx("span",{className:i("block font-semibold mt-2 sm:mt-4 text-muted-foreground",O[d]),children:C.subtitle})]}),jsxRuntime.jsx("div",{className:i("text-muted-foreground mb-6 sm:mb-8 md:mb-10 max-w-2xl mx-auto",F[d]),children:C.description.split(`
111
+ `).map((q,V,Y)=>jsxRuntime.jsxs(le__default.default.Fragment,{children:[q,V<Y.length-1&&jsxRuntime.jsx("br",{})]},V))}),(C.primaryAction||C.secondaryAction)&&jsxRuntime.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[C.primaryAction&&jsxRuntime.jsxs(mt,{href:C.primaryAction.href,size:d==="xl"||d==="full"?"lg":"md",hover:"scale",className:"inline-flex items-center gap-2",children:[C.primaryAction.icon,C.primaryAction.label]}),C.secondaryAction&&jsxRuntime.jsxs(mt,{href:C.secondaryAction.href,variant:"outline",size:d==="xl"||d==="full"?"lg":"md",hover:"scale",className:"inline-flex items-center gap-2",children:[C.secondaryAction.icon,C.secondaryAction.label]})]})]},k?w:0),z()]}),k&&x&&N>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:P,className:"absolute left-4 top-1/2 -translate-y-1/2 z-20 p-2 rounded-full bg-card/80 backdrop-blur-sm border border-border text-foreground hover:bg-card transition-colors","aria-label":"Previous slide",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),jsxRuntime.jsx("button",{onClick:B,className:"absolute right-4 top-1/2 -translate-y-1/2 z-20 p-2 rounded-full bg-card/80 backdrop-blur-sm border border-border text-foreground hover:bg-card transition-colors","aria-label":"Next slide",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]})]})});on.displayName="HeroSection";var _l={blue:{container:"bg-gradient-to-r from-indigo-50 to-indigo-50 dark:from-indigo-900/20 dark:to-indigo-900/20 rounded-lg p-4 border border-indigo-200 dark:border-indigo-700",icon:"h-5 w-5 text-indigo-600 dark:text-indigo-400 mr-3 mt-0.5 flex-shrink-0",title:"text-sm font-medium text-indigo-900 dark:text-indigo-100 mb-2 block",body:"text-foreground text-sm leading-relaxed"},purple:{container:"bg-gradient-to-r from-purple-50 to-pink-50 dark:from-purple-900/20 dark:to-pink-900/20 rounded-lg p-4 border border-purple-200 dark:border-purple-700",icon:"h-5 w-5 text-purple-600 dark:text-purple-400 mr-3 mt-0.5 flex-shrink-0",title:"text-sm font-medium text-purple-900 dark:text-purple-100 mb-2 block",body:"text-foreground text-sm leading-relaxed"},green:{container:"bg-gradient-to-r from-green-50 to-emerald-50 dark:from-green-900/20 dark:to-emerald-900/20 rounded-lg p-4 border border-green-200 dark:border-green-700",icon:"h-5 w-5 text-green-600 dark:text-green-400 mr-3 mt-0.5 flex-shrink-0",title:"text-sm font-medium text-green-900 dark:text-green-100 mb-2 block",body:"text-foreground text-sm leading-relaxed"},orange:{container:"bg-gradient-to-r from-orange-50 to-rose-50 dark:from-orange-900/20 dark:to-rose-900/20 rounded-lg p-4 border border-orange-200 dark:border-orange-700",icon:"h-5 w-5 text-orange-600 dark:text-orange-400 mr-3 mt-0.5 flex-shrink-0",title:"text-sm font-medium text-orange-900 dark:text-orange-100 mb-2 block",body:"text-foreground text-sm leading-relaxed"}},an=le__default.default.forwardRef(({className:t,title:e,icon:r,tone:o="blue",children:n,...s},u)=>{let h=_l[o];return jsxRuntime.jsx("div",{ref:u,className:i(h.container,t),...s,children:jsxRuntime.jsxs("div",{className:"flex items-start mb-2",children:[jsxRuntime.jsx(M,{name:r,className:h.icon}),jsxRuntime.jsxs("div",{className:"flex-1",children:[jsxRuntime.jsx("span",{className:h.title,children:e}),jsxRuntime.jsx("div",{className:h.body,children:n})]})]})})});an.displayName="InfoCard";var sn={completed:{dot:"bg-emerald-500 border-emerald-500 shadow-[0_0_8px_rgba(16,185,129,0.4)]",border:"border-emerald-200 dark:border-emerald-500/40",text:"text-emerald-700 dark:text-emerald-300 bg-emerald-50 dark:bg-emerald-500/10",label:"\uC644\uB8CC",labelEn:"Completed"},active:{dot:"bg-sky-500 border-sky-500 shadow-[0_0_8px_rgba(14,165,233,0.4)] animate-pulse",border:"border-sky-200 dark:border-sky-500/40",text:"text-sky-700 dark:text-sky-200 bg-sky-50 dark:bg-sky-500/10",label:"\uC9C4\uD589 \uC911",labelEn:"Active"},pending:{dot:"bg-muted-foreground/40 border-muted-foreground/40",border:"border-border",text:"text-muted-foreground bg-muted",label:"\uB300\uAE30",labelEn:"Pending"},error:{dot:"bg-rose-500 border-rose-500 shadow-[0_0_8px_rgba(244,63,94,0.4)]",border:"border-rose-200 dark:border-rose-500/40",text:"text-rose-700 dark:text-rose-300 bg-rose-50 dark:bg-rose-500/10",label:"\uC624\uB958",labelEn:"Error"},warning:{dot:"bg-amber-500 border-amber-500 shadow-[0_0_8px_rgba(245,158,11,0.4)]",border:"border-amber-200 dark:border-amber-500/40",text:"text-amber-700 dark:text-amber-300 bg-amber-50 dark:bg-amber-500/10",label:"\uACBD\uACE0",labelEn:"Warning"},info:{dot:"bg-violet-500 border-violet-500 shadow-[0_0_8px_rgba(139,92,246,0.4)]",border:"border-violet-200 dark:border-violet-500/40",text:"text-violet-700 dark:text-violet-300 bg-violet-50 dark:bg-violet-500/10",label:"\uC815\uBCF4",labelEn:"Info"}},Wl={sm:{dot:"h-2.5 w-2.5",gap:"gap-3",padding:"p-3",text:"text-xs"},md:{dot:"h-3.5 w-3.5",gap:"gap-4",padding:"p-4",text:"text-sm"},lg:{dot:"h-4 w-4",gap:"gap-5",padding:"p-5",text:"text-base"}},ln=(t,e="ko-KR")=>{if(!t)return;let r=t instanceof Date?t:new Date(t);if(!Number.isNaN(r.getTime()))return r.toLocaleString(e,{dateStyle:"medium",timeStyle:"short"})},cn=({items:t,orientation:e="vertical",align:r="left",highlightedId:o,locale:n="ko-KR",emptyState:s,showConnector:u=true,size:h="md",className:g,...l})=>{let x=t.length>0,m=Wl[h];return x?e==="horizontal"?jsxRuntime.jsx("div",{className:i("overflow-x-auto",g),...l,children:jsxRuntime.jsx("ol",{className:"flex min-w-max",role:"list","aria-label":"\uD0C0\uC784\uB77C\uC778",children:t.map((c,v)=>{var b;let d=(b=c.status)!=null?b:"pending",a=sn[d],f=ln(c.date,n),p=o===c.id,w=u&&v!==t.length-1;return jsxRuntime.jsxs("li",{className:"flex items-start",role:"listitem",children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx("span",{className:i("rounded-full border-2 shrink-0",m.dot,a.dot,p&&"scale-125 ring-1 ring-offset-2 ring-border"),"aria-label":a.label}),jsxRuntime.jsxs("div",{className:i("mt-3 text-center max-w-[160px]",m.text),children:[jsxRuntime.jsx("p",{className:"font-semibold text-foreground truncate",children:c.title}),c.description&&jsxRuntime.jsx("p",{className:"text-muted-foreground mt-0.5 line-clamp-2",children:c.description}),f&&jsxRuntime.jsx("time",{className:"text-xs text-muted-foreground mt-1 block",dateTime:c.date instanceof Date?c.date.toISOString():c.date,children:f})]})]}),w&&jsxRuntime.jsx("span",{className:"h-0.5 w-16 bg-border mt-[0.4375rem] mx-2","aria-hidden":"true"})]},c.id)})})}):jsxRuntime.jsx("div",{className:i("",g),...l,children:jsxRuntime.jsx("ol",{className:"space-y-4",role:"list","aria-label":"\uD0C0\uC784\uB77C\uC778",children:t.map((c,v)=>{var N;let d=(N=c.status)!=null?N:"pending",a=sn[d],f=ln(c.date,n),p=o===c.id,w=u&&v!==t.length-1,b=r==="alternate"&&v%2===1,y=r==="right"||b,T=()=>c.icon?typeof c.icon=="string"?jsxRuntime.jsx(M,{name:c.icon,className:"h-4 w-4"}):c.icon:null,k=jsxRuntime.jsxs("div",{className:i("flex-1 rounded-xl border transition-all",m.padding,a.border,p&&"border-2 shadow-md ring-1 ring-border"),children:[jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[T()&&jsxRuntime.jsx("span",{className:"text-muted-foreground",children:T()}),jsxRuntime.jsx("span",{className:i("font-semibold text-foreground",m.text),children:c.title}),jsxRuntime.jsx("span",{className:i("text-xs font-medium rounded-full px-2 py-0.5",a.text),children:a.label}),c.meta&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:c.meta})]}),c.description&&jsxRuntime.jsx("p",{className:i("mt-1 text-muted-foreground",m.text),children:c.description}),c.content&&jsxRuntime.jsx("div",{className:"mt-3",children:c.content}),f&&jsxRuntime.jsxs("div",{className:"mt-3 flex items-center gap-1 text-xs text-muted-foreground",children:[jsxRuntime.jsx(M,{name:"clock",className:"h-3 w-3","aria-hidden":true}),jsxRuntime.jsx("time",{dateTime:c.date instanceof Date?c.date.toISOString():c.date,children:f})]})]});return jsxRuntime.jsxs("li",{role:"listitem",className:i("relative flex",m.gap,y&&"flex-row-reverse"),children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx("span",{className:i("z-10 rounded-full border-2 shrink-0",m.dot,a.dot,p&&"scale-110"),"aria-label":a.label}),w&&jsxRuntime.jsx("span",{className:"mt-1 flex-1 w-px bg-border","aria-hidden":"true"})]}),k]},c.id)})})}):jsxRuntime.jsx("div",{className:i("",g),...l,children:s!=null?s:jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[jsxRuntime.jsx(M,{name:"clock",className:"h-10 w-10 text-muted-foreground/50 mb-3"}),jsxRuntime.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"\uD0C0\uC784\uB77C\uC778\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4"}),jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"\uC774\uBCA4\uD2B8\uAC00 \uCD94\uAC00\uB418\uBA74 \uC5EC\uAE30\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4."})]})})};cn.displayName="Timeline";exports.AdvancedPageTransition=ke;exports.AnimatedGradient=qr;exports.BlogEditor=ge;exports.BlogEditorActions=_e;exports.BlogEditorContent=Fe;exports.BlogEditorHeader=ze;exports.BlogEditorLanguageTabs=Oe;exports.BlogEditorMetadata=$e;exports.BlogEditorPreview=qe;exports.BlogEditorProvider=Nt;exports.BlogEditorToolbar=Ve;exports.BlogEditorTranslate=je;exports.Bookmark=$o;exports.Carousel=Gr;exports.ChatMessage=Oo;exports.ComponentLayout=Fo;exports.CubePageTransition=hn;exports.DotNav=Jr;exports.EmotionAnalysis=Uo;exports.EmotionButton=Ht;exports.EmotionMeter=Re;exports.EmotionSelector=_o;exports.FadePageTransition=mn;exports.FeatureCard=en;exports.FlipPageTransition=fn;exports.GlowCard=Hr;exports.HeroSection=on;exports.HorizontalScroll=oo;exports.ImageReveal=Kr;exports.InfoCard=an;exports.LanguageToggle=Wo;exports.Logo=rl;exports.Marquee=Ir;exports.MorphPageTransition=bn;exports.Parallax=Mr;exports.ScalePageTransition=gn;exports.ScrollIndicator=Yo;exports.ScrollProgress=Qo;exports.Scrollbar=Jo;exports.SlidePageTransition=pn;exports.SpotlightCard=Dr;exports.TextReveal=Or;exports.TiltCard=_r;exports.Timeline=cn;exports.VideoBackground=jr;exports.ZoomPageTransition=vn;exports.generateSlug=Ct;exports.getMarkdownPreview=Bo;exports.insertMarkdown=ur;exports.isValidSlug=ao;exports.normalizeSlug=Tt;exports.parseMarkdown=Mt;exports.stripMarkdown=dr;exports.useBlogEditor=Z;exports.usePageTransition=wn;exports.usePageTransitionManager=Tn;//# sourceMappingURL=advanced.js.map
112
112
  //# sourceMappingURL=advanced.js.map